| 123456789101112131415161718192021222324252627282930313233343536373839 |
- try{let Et=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},ke=new Et.Error().stack;ke&&(Et._sentryDebugIds=Et._sentryDebugIds||{},Et._sentryDebugIds[ke]="bc429821-ed7d-454e-9f97-61e082b1dead",Et._sentryDebugIdIdentifier="sentry-dbid-bc429821-ed7d-454e-9f97-61e082b1dead")}catch(Et){}{let Et=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};Et.SENTRY_RELEASE={id:"20.13.2"}}(self.webpackChunk_mb2024_mb_proto=self.webpackChunk_mb2024_mb_proto||[]).push([[347],{99681:(Et,ke,e)=>{"use strict";e.d(ke,{r:()=>m});var o="@mb2024/mb-flat-json",m="0.18.4"},56507:(Et,ke,e)=>{"use strict";e.d(ke,{jl:()=>k,rQ:()=>C,tb:()=>A,v:()=>p,vU:()=>T});var o=e(38944),m=e(93839),g=e(90503),l=e(57464);const C=r=>{let{title:x,type:f}=r;return x===null?null:(0,l.jsx)(o.h9,{className:"header",type:f,children:x})},T={type:"linear",className:"cancel-btn",disabled:!1,children:"\u53D6\u6D88"},A={type:"primary",className:"confirm-btn",disabled:!1,children:"\u786E\u8BA4"},k=r=>{let{footer:x,onCancel:f,onConfirm:u,renderFooterSide:b,cancelBtnProps:h,confirmBtnProps:E}=r;if(x===null)return null;const N={...T,...h},z={...A,...E};return(0,l.jsx)(o.Tb,{children:x||(0,l.jsxs)(l.Fragment,{children:[b&&b(),f&&(0,l.jsx)(m.A,{...N}),u&&(0,l.jsx)(m.A,{...z})]})})},p=r=>{let{canClose:x,closeIcon:f,onClick:u}=r;return x?(0,l.jsx)(o.xP,{className:"close-btn",onClick:u,children:f||(0,l.jsx)(g.A,{name:"general/modal/times",label:"Close the Modal"})}):null}},56940:(Et,ke,e)=>{"use strict";e.d(ke,{v:()=>o});const o=m=>{let{data:g,params:l,productId:C="315118",isWonderShare:T=!1,wsLink:A="https://mockitt.wondershare.com/feedback.html"}=m;if(T){window.open(A,"_blank");return}const k=document.createElement("form");k.id="TucaoForm",k.name="form",document.body.appendChild(k);for(const p in g){const r=document.createElement("input");r.type="text",r.name=p,r.value=g[p],k.appendChild(r)}k.method="POST",k.target="_blank",k.action="https://support.qq.com/product/"+C+l,k.submit(),document.body.removeChild(k)}},49866:(Et,ke,e)=>{"use strict";e.d(ke,{w:()=>o});class o{constructor(g){this.permissions=g}}},27e3:(Et,ke,e)=>{"use strict";e.d(ke,{K:()=>o});class o{constructor(g){this.user=g}getIsMdMember(){const{member:g}=this.user||{};return g}getIsMktMember(){const{mt_next_billing_on:g}=this.user||{};return+new Date(g)-+new Date>1e3*60*60*24}getIsSoloMdMember(){const{next_billing_on:g}=this.user||{};return+new Date(g)-+new Date>1e3*60*60*24}getIsBeforeMdMember(){const{mt_vip_old:g}=this.user||{};return this.getIsMdMember()&&g}getIsNewMdMember(){const{mt_vip_old:g}=this.user||{};return this.getIsMdMember()&&!g}getFreeUsePaidProjectMtCount(){const{usePaidProtoProjectMktInfo:g}=this.user||{},{downloadeds:l}=g||{};return l}getLeftFreeUsePaidProjectMtCount(){const{usePaidProtoProjectMktInfo:g}=this.user||{},{left_downloads:l}=g||{};return l}getUsesPaidProjectMtCidsThisMonth(){const{usePaidProtoProjectMktInfo:g}=this.user||{},{user_uses_vip_mt_cids_this_month:l=[]}=g||{};return l}}},16709:(Et,ke,e)=>{"use strict";e.d(ke,{BW:()=>k,IN:()=>p,X9:()=>T,Z3:()=>C,bj:()=>g,gp:()=>m,pR:()=>o,pX:()=>l,u$:()=>r,u5:()=>A,us:()=>f,uv:()=>x,xO:()=>u});const o=80,m=217,g=209,l=81,C=177,T=49,A=20,k=157,p=149,r=21,x=147,f=19,u=16},89300:(Et,ke,e)=>{"use strict";e.d(ke,{c:()=>ve});var o=e(74059),m=e(51044),g=e(49622),l=e(21865),C=e(86634),T=e.n(C);class A{constructor(){(0,o.A)(this,"inputFocused",!1),(0,o.A)(this,"editorMouseDown",!1),(0,o.A)(this,"onEditorMouseDown",()=>{this.editorFocused=!0}),(0,o.A)(this,"onInputMouseDown",()=>{this.inputFocused=!0}),(0,o.A)(this,"isEditorBlur",R=>(R.target.tagName==="INPUT"||R.target.tagName==="LABEL"||R.target.tagName==="TEXTAREA")&&!this.editorFocused?(this.inputFocused=!1,!0):(R.target.tagName!=="INPUT"||R.target.tagName!=="LABEL"||R.target.tagName!=="TEXTAREA")&&!this.inputFocused?(this.editorFocused=!1,!0):!1),(0,o.A)(this,"isEditorFocused",()=>this.inputFocused?(this.inputFocused=!1,!1):!0),(0,o.A)(this,"isToolbarFocused",()=>this.editorFocused?(this.editorFocused=!1,!1):!0),(0,o.A)(this,"isInputFocused",()=>this.inputFocused)}}let k=[];const p={onKeyDown:D=>{k.forEach(R=>{R(D)})},registerCallBack:D=>{k.push(D)},deregisterCallBack:D=>{k=k.filter(R=>R!==D)}};let r;const x={open:()=>{r=!0},close:()=>{r=!1},isOpen:()=>r},u=D=>R=>{if(!D)return"";const V=R.getData()&&R.getData().get("text-align");return V?"rdw-"+V+"-aligned-block":""};function b(D,R){if(D)for(const V in D)({}).hasOwnProperty.call(D,V)&&R(V,D[V])}function h(D,R){let V=!1;if(D){for(const O in D)if({}.hasOwnProperty.call(D,O)&&R===O){V=!0;break}}return V}function E(D){return!D||!D.trim()}function N(D){return Object.prototype.toString.call(D)==="[object Object]"}function z(D,R){const V=Object.keys(D).filter(Ce=>R.indexOf(Ce)<0),O={};return V&&V.length>0&&V.forEach(Ce=>{O[Ce]=D[Ce]}),O}function S(D){D.stopPropagation()}const y=(D,R)=>V=>{if(typeof R=="function"){const O=R(V,D,D.getEditorState);if(O)return O}},a=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,$=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i;function ce(D){return String(D).replace(a,"").match($)?D:"#"}var de=e(57464);function fe(D,R,V){D.findEntityRanges(O=>{const Ce=O.getEntity();return Ce!==null&&V.getEntity(Ce).getType()==="LINK"},R)}function se(D){return class extends m.Component{constructor(){super(...arguments),(0,o.A)(this,"state",{showPopOver:!1}),(0,o.A)(this,"openLink",()=>{const{entityKey:V,contentState:O}=this.props,{url:Ce}=O.getEntity(V).getData(),ae=window.open(ce(Ce),"blank");ae&&ae.focus()}),(0,o.A)(this,"toggleShowPopOver",()=>{const V=!this.state.showPopOver;this.setState({showPopOver:V})})}render(){const{children:V,entityKey:O,contentState:Ce}=this.props,{url:ae,targetOption:q}=Ce.getEntity(O).getData();return(0,de.jsx)("span",{className:"rdw-link-decorator-wrapper",onMouseEnter:this.toggleShowPopOver,onMouseLeave:this.toggleShowPopOver,children:(0,de.jsx)("a",{href:ce(ae),target:q,children:V})})}}}const J=D=>({strategy:fe,component:se(D)});class ve extends m.Component{constructor(R){super(R),(0,o.A)(this,"onEditorBlur",()=>{this.setState({editorFocused:!1})}),(0,o.A)(this,"onEditorFocus",Ce=>{const{onFocus:ae}=this.props;this.setState({editorFocused:!0});const q=this.focusHandler.isEditorFocused();ae&&q&&ae(Ce)}),(0,o.A)(this,"onEditorMouseDown",Ce=>{Ce.button===2||this.focusHandler.onEditorMouseDown()}),(0,o.A)(this,"keyBindingFn",Ce=>{if(Ce.key==="Tab"){const{onTab:ae}=this.props;if(!ae||!ae(Ce)){const q=(0,l.ar)(this.state.editorState,Ce.shiftKey?-1:1,4);q&&q!==this.state.editorState&&(this.onChange(q),Ce.preventDefault())}return null}return(Ce.key==="ArrowUp"||Ce.key==="ArrowDown")&&x.isOpen()&&Ce.preventDefault(),(0,g.K6)(Ce)}),(0,o.A)(this,"onWrapperBlur",Ce=>{const{onBlur:ae}=this.props;ae&&this.focusHandler.isEditorBlur(Ce)&&ae(Ce,this.getEditorState())}),(0,o.A)(this,"onChange",Ce=>{const{readOnly:ae,onEditorStateChange:q}=this.props;!ae&&!((0,l.iG)(Ce)==="atomic"&&Ce.getSelection().isCollapsed)&&(q&&q(Ce,this.props.wrapperId),h(this.props,"editorState")?this.afterChange(Ce):this.setState({editorState:Ce},this.afterChange(Ce)))}),(0,o.A)(this,"setWrapperReference",Ce=>{this.props.editorRef&&this.props.editorRef(Ce),this.wrapper=Ce}),(0,o.A)(this,"setEditorReference",Ce=>{this.editor=Ce}),(0,o.A)(this,"getCompositeDecorator",()=>{const Ce=[...this.props.customDecorators||[],J({})];return new g.t8(Ce)}),(0,o.A)(this,"getWrapperRef",()=>this.wrapper),(0,o.A)(this,"getEditorState",()=>this.state?this.state.editorState:null),(0,o.A)(this,"afterChange",Ce=>{setTimeout(()=>{const{onChange:ae,onContentStateChange:q}=this.props;ae&&ae((0,g.dM)(Ce.getCurrentContent())),q&&q((0,g.dM)(Ce.getCurrentContent()))})}),(0,o.A)(this,"isReadOnly",()=>this.props.readOnly),(0,o.A)(this,"createEditorState",Ce=>{let ae;if(h(this.props,"editorState"))this.props.editorState&&(ae=g.$t.set(this.props.editorState,{decorator:Ce}));else if(h(this.props,"defaultEditorState"))this.props.defaultEditorState&&(ae=g.$t.set(this.props.defaultEditorState,{decorator:Ce}));else if(h(this.props,"contentState")){if(this.props.contentState){const q=(0,g.Ot)(this.props.contentState);ae=g.$t.createWithContent(q,Ce),ae=g.$t.moveSelectionToEnd(ae)}}else if(h(this.props,"defaultContentState")||h(this.props,"initialContentState")){let q=this.props.defaultContentState||this.props.initialContentState;q&&(q=(0,g.Ot)(q),ae=g.$t.createWithContent(q,Ce),ae=g.$t.moveSelectionToEnd(ae))}return ae||(ae=g.$t.createEmpty(Ce)),ae}),(0,o.A)(this,"filterEditorProps",Ce=>z(Ce,["onChange","onEditorStateChange","onContentStateChange","initialContentState","defaultContentState","contentState","editorState","defaultEditorState","editorClassName","wrapperClassName","editorStyle","wrapperStyle","uploadCallback","onFocus","onBlur","onTab","mention","hashtag","ariaLabel","customBlockRenderFunc","customDecorators","handlePastedText","customStyleMap"])),(0,o.A)(this,"getStyleMap",Ce=>({...(0,l.RM)(),...Ce.customStyleMap})),(0,o.A)(this,"changeEditorState",Ce=>{const ae=(0,g.Ot)(Ce);let{editorState:q}=this.state;return q=g.$t.push(q,ae,"insert-characters"),q=g.$t.moveSelectionToEnd(q),q}),(0,o.A)(this,"focusEditor",()=>{setTimeout(()=>{var Ce;(Ce=this.editor)==null||Ce.focus()})}),(0,o.A)(this,"handleKeyCommand",Ce=>!1),(0,o.A)(this,"handleReturn",Ce=>{if(x.isOpen())return!0;const{editorState:ae}=this.state,q=(0,l.h_)(ae,Ce);return q?(this.onChange(q),!0):!1}),(0,o.A)(this,"handlePastedTextFn",(Ce,ae)=>{const{editorState:q}=this.state,{handlePastedText:K}=this.props;return K?K(Ce,ae,q,this.onChange):!1}),(0,o.A)(this,"preventDefault",Ce=>{Ce.target.tagName==="INPUT"||Ce.target.tagName==="LABEL"||Ce.target.tagName==="TEXTAREA"?this.focusHandler.onInputMouseDown():Ce.preventDefault()});const V=R.wrapperId?R.wrapperId:Math.floor(Math.random()*1e4);this.wrapperId="rdw-wrapper-"+V,this.focusHandler=new A,this.blockRendererFn=y({isReadOnly:this.isReadOnly,getEditorState:this.getEditorState,onChange:this.onChange},R.customBlockRenderFunc),this.editorProps=this.filterEditorProps(R),this.customStyleMap=this.getStyleMap(R),this.compositeDecorator=this.getCompositeDecorator();const O=this.createEditorState(this.compositeDecorator);(0,l.Mn)(O),this.state={editorState:O,editorFocused:!1}}componentDidCatch(){this.forceUpdate()}componentDidUpdate(R){if(R===this.props)return;const V={},{editorState:O,contentState:Ce}=this.props;if(h(this.props,"editorState")&&O!==R.editorState)O?V.editorState=g.$t.set(O,{decorator:this.compositeDecorator}):V.editorState=g.$t.createEmpty(this.compositeDecorator);else if(h(this.props,"contentState")&&Ce!==R.contentState)if(Ce){const ae=this.changeEditorState(Ce);ae&&(V.editorState=ae)}else V.editorState=g.$t.createEmpty(this.compositeDecorator);(R.editorState!==O||R.contentState!==Ce)&&(0,l.Mn)(V.editorState),Object.keys(V).length&&this.setState(V),this.editorProps=this.filterEditorProps(this.props),this.customStyleMap=this.getStyleMap(this.props)}render(){const{editorState:R}=this.state,{editorClassName:V,wrapperClassName:O,editorStyle:Ce,wrapperStyle:ae,ariaLabel:q,canBlockAlign:K=!1,lhVersion:xe}=this.props;return(0,de.jsx)("div",{id:this.wrapperId,className:T()(O,"rdw-editor-wrapper"),style:ae,onBlur:this.onWrapperBlur,"aria-label":"rdw-wrapper",children:(0,de.jsx)("div",{ref:this.setWrapperReference,className:T()(V,"rdw-editor-main"),style:Ce,onClick:this.focusEditor,onFocus:this.onEditorFocus,onBlur:this.onEditorBlur,onKeyDown:p.onKeyDown,onMouseDown:this.onEditorMouseDown,children:(0,de.jsx)(g.KE,{ref:this.setEditorReference,keyBindingFn:this.keyBindingFn,editorState:R,onChange:this.onChange,blockStyleFn:u(K),customStyleMap:this.getStyleMap(this.props),handleReturn:this.handleReturn,handlePastedText:this.handlePastedTextFn,blockRendererFn:this.blockRendererFn,handleKeyCommand:this.handleKeyCommand,ariaLabel:q||"rdw-editor",blockRenderMap:l.qq,lhVersion:xe,...this.editorProps})})})}}},71544:(Et,ke,e)=>{"use strict";e.d(ke,{EP:()=>y,Ey:()=>_,hp:()=>S});var o=e(99478);const m=(a,$)=>{const ce=[];for(let de=0;de<$;de++)ce.push(a(de));return ce},g=(a,$)=>m(ce=>ce+a,$-a+1),l=a=>m($=>$/a,1+a),C=(a,$)=>({[Symbol.iterator]:()=>{let ce=0;return{next:()=>ce<$?{value:a(ce++),done:!1}:{value:a(ce),done:!0}}}}),T=(a,$)=>C(ce=>ce+a,$-a+1),A=a=>C($=>$/a,1+a);var k=e(74301),p=e(43105);const r="\u{1F631}\u{1F47E}",x=4,f=256,u=32*1024*1024,b=1024*1024*1024,h=a=>(0,p.l)(new TextEncoder().encode(JSON.stringify(a)).buffer),E=a=>JSON.parse(new TextDecoder().decode((0,p.D)(a))),N=async()=>{try{const{quota:a=0,usage:$=0}=await navigator.storage.estimate(),ce=(0,k.qE)(a*.5,u,b);return{quota:a,usage:$,maxDataSize:ce}}catch(a){console.warn("#FS|estimate",a)}return{maxDataSize:u}},z=async()=>{const{maxDataSize:a}=await N(),$=new Set(g(-4,2).map(fe=>{const se=new Date;return se.setUTCDate(se.getUTCDate()+fe),""+r+(0,o.J8)(se)}));let ce=0;const de=[];if(typeof caches<"u"){for(const fe of await caches.keys()){if(!fe.startsWith(r))continue;if(!$.has(fe)){console.log("#FS|trim outdated",fe),await caches.delete(fe);continue}const se=await caches.open(fe);for(const J of await se.keys())try{const ve=await se.match(J),{time:D=0,size:R=0}=E(ve.statusText);de.push({key:fe,keyC:J,time:D,size:R})}catch(ve){console.warn("#FS|trim",J,ve)}}for(de.sort((fe,se)=>se.time-fe.time),ce=de.reduce((fe,se)=>{let{size:J}=se;return fe+J},0);(ce>=a||de.length>=f)&&de.length>=x;){const{key:fe,keyC:se,time:J,size:ve}=de.pop();console.log("#FS|trim size",fe,se,ve,new Date(J).toISOString()),await(await caches.open(fe)).delete(se),ce-=ve}}return{maxDataSize:a,sizeSum:ce,ciList:de}},S=async(a,$,ce)=>{const de={...ce,time:Date.now(),size:$.size};if(typeof caches<"u"){const fe=await caches.open(""+r+(0,o.J8)());await z(),await fe.put(a,new Response($,{statusText:h(de),headers:{"content-length":String($.size)}}))}return de},_=async a=>{const $=[];if(typeof caches<"u"){for(const ce of await caches.keys()){const fe=await(await caches.open(ce)).match(a);if(fe!==void 0)try{const se=await fe.blob(),J=E(fe.statusText);$.push({data:se,extra:J})}catch(se){console.warn("#FS|load",a,se)}}$.sort((ce,de)=>de.extra.time-ce.extra.time)}return $},y=async function(a,$){$===void 0&&($=Date.now());let ce=0;if(typeof caches<"u")for(const de of await caches.keys()){const fe=await caches.open(de),se=await fe.match(a);if(se!==void 0)try{if(E(se.statusText).time>$)continue;await fe.delete(a),ce++}catch(J){console.warn("#FS|free",a,de,J)}}return ce}},54704:(Et,ke,e)=>{"use strict";e.d(ke,{J6:()=>g});const o="_cmt",m=p=>p.endsWith(o),g=p=>{if(m(p))throw new Error("bad datKey: "+p);return""+p+o},l=p=>{if(!m(p))throw new Error("bad cmtKey: "+p);return p.slice(0,-o.length)},C="_cur",T=p=>p.endsWith(C),A=p=>{if(T(p))throw new Error("bad datKey: "+p);return""+p+C},k=p=>{if(!T(p))throw new Error("bad curKey: "+p);return p.slice(0,-C.length)}},17255:(Et,ke,e)=>{"use strict";e.d(ke,{$7:()=>a,$r:()=>p,Am:()=>$,CH:()=>g,Ei:()=>b,I4:()=>r,Ip:()=>E,LZ:()=>o,NX:()=>de,VU:()=>u,pL:()=>ce,s5:()=>fe,sP:()=>se,uB:()=>f,zS:()=>h});const o=J=>{let{flpakKey:ve,needDat:D,needCmt:R,needCur:V}=J;const O=(D?4:0)+(R?2:0)+(V?1:0);return!ve||!O?"":ve+"!"+O.toString(8)},m=J=>{const[ve,D]=(J||"").split("!"),R=parseInt(D,8)||0;return!ve||!R?void 0:{flpakKey:ve,needDat:!!(R&4),needCmt:!!(R&2),needCur:!!(R&1)}},g="-",l="P2e",C="P2eu",T="P2eo",A="P2v",k="P2vd",p="/flat-ws",r="/",x="[DROP|client]",f="[DROP|client|no-retry]",u="@drop-client",b="@error",h="@ready",E=">time",N=">close",z=">DBG-long",S=">DBG-error",_="<DBG",y=">room",a="<r-cur",$=">r-skt",ce=">cur",de="<cur",fe=">save",se="<save"},88080:(Et,ke,e)=>{"use strict";e.d(ke,{$:()=>m,e:()=>o});const o=(g,l)=>{let{x:C,y:T}=g;const A=Math.sin(l),k=Math.cos(l);return{x:C*k-T*A,y:C*A+T*k}},m=(g,l,C)=>{let{x:T,y:A}=l;const k=Math.sin(C),p=Math.cos(C);return g.x=T*p-A*k,g.y=T*k+A*p,g}},19371:(Et,ke,e)=>{"use strict";e.d(ke,{a:()=>o});const o="CMT:CHG"},46584:(Et,ke,e)=>{"use strict";e.d(ke,{P:()=>m});var o=e(46795);const m=async g=>{let{keyword:l,size:C=6,uId:T,projectCid:A="0",triggerSensitiveWord:k=()=>null}=g;const p={uId:T,upperCid:A,Q:l,N:C};try{return(await(0,o.zi)("/js-hpr/v8ai2408/pick-image-list?"+new URLSearchParams(p))).map(x=>{const{size:f,sizeThmb:u,imageUrl:b="",imageUrlThmb:h}=x,E=b.split("/").pop().split(".")[0],N=Number.isNaN(Number(E))?E:b;let z=u.w,S=u.h;return z!==200&&(z=200,S=Math.floor(200*S/z)),{asset_cid:N,image:b,width:z,height:S,img_tag:[l],copyright:{},size:f,thumb:h,name:"\u793A\u4F8B\u56FE\u7247",group_cid:"",from:""}})}catch(r){return console.log("#### error:",r),r.status===451&&r.errors==="detected illegal text"&&k(),[]}}},30768:(Et,ke,e)=>{"use strict";e.d(ke,{b:()=>m});const o=g=>["\u5171\u4EA7\u515A","\u515A\u5FBD","\u56FD\u65D7","\u56FD\u6B4C","\u515A\u7AE0","\u56FD\u5FBD","\u56FD\u6B4C","\u515A\u7EC4\u7EC7","\u5927\u9009","\u7F8E\u56FD","\u4E2D\u56FD","\u4EE5\u8272\u5217","\u4E4C\u514B\u5170","\u5DF4\u52D2\u65AF\u5766","\u65E5\u672C","\u8272\u60C5","\u4E09\u7EA7","\u6210\u4EBA","\u4E73","\u5904\u5973","\u4EBA\u4F53","\u5171\u548C","\u4E73","\u9634\u5507","\u4E73","\u6027\u7231","\u4E2D\u5171","\u7834\u5904","1989","\u5929\u5B89\u95E8","\u6CD5\u8F6E","\u53F0\u6E7E","\u53F0\u6D77","\u592B\u59BB","\u591C\u60C5","\u98CE\u6D41","\u9A9A","av","\u65E0\u7801","\u540C\u5E8A","\u6BD2","\u7EA6\u70AE","\u5F3A\u8FEB","\u6DEB","\u88F8","\u5927\u9EBB","\u7A74","\u8D4C\u535A","\u535A\u5F69","\u4E09\u4EBA\u884C","\u4E8B\u4EF6","\u5C38","\u6B7B","\u5973\u4F18","\u897F\u85CF","\u65B0\u7586","\u6B7C","\u8B66\u5BDF","sex","\u5C3F","\u5C4E","\u5993","\u6309\u6469","\u966A\u7761","\u7845\u80F6","\u6DEB","\u53EF\u5361\u56E0","\u8B66\u5FBD","\u8B66\u68CD","\u8B66\u7528","\u4E1C\u4EAC","\u4E1D\u889C","\u4E24\u4F1A","\u515A","\u4E3B\u5E2D","\u4E2D\u5357\u6D77","\u8FB9\u754C","\u771F\u76F8","\u5206\u88C2","\u50A8\u541B","\u9886\u5BFC\u4EBA","\u592A\u5B50","\u653F\u6CBB","\u519B\u59D4","\u5C04","\u4EBA\u517D","\u9E21","\u59B9","\u5730\u56FE","\u56FD\u754C","\u4EE5\u8272\u5217","\u653F\u5E9C","\u66B4","\u8840","\u5B89\u5168\u5957","\u6B27\u7F8E","\u9E26\u7247","\u6C11\u4E3B","\u81EA\u7531","\u6C13","\u5211","\u6FC0\u60C5","\u75F4","\u5974","gay","\u7537\u7537","\u5199\u771F","\u79CD\u65CF","\u7CBE\u6DB2","\u7D20\u4EBA","\u8F6E\u76D8","\u8089\u68D2","\u809B","\u8131","\u8499\u53E4","\u8D8A\u5357","\u83F2\u5F8B\u5BBE","\u5370\u5EA6","\u5B55"].some(C=>g.includes(C)),m=g=>["\u5171\u4EA7\u515A","\u515A\u5FBD","\u56FD\u65D7","\u56FD\u6B4C","\u515A\u7AE0","\u56FD\u5FBD","\u56FD\u6B4C","\u515A\u7EC4\u7EC7","\u5927\u9009","\u7F8E\u56FD","\u4E2D\u56FD","\u4EE5\u8272\u5217","\u4E4C\u514B\u5170","\u5DF4\u52D2\u65AF\u5766","\u65E5\u672C"].some(C=>g.includes(C))},7039:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>u});var o=e(51044),m=e(86634),g=e.n(m),l=e(56146),C=e(15336),T=e(5683),A=e(21676);const k=A.Ay.div.withConfig({displayName:"styles__StyledAIPointTag",componentId:"sc-w3t3ub-0"})(["background:",";font-weight:500;font-size:12px;border-radius:12px;padding:0 10px;display:flex;height:24px;align-items:center;min-width:70px;justify-content:center;&:not(.isbeta):hover{background:",";}&:not(.disable){cursor:pointer;}&.disable{pointer-events:none;}&.free-limited-time{background:none;}svg{width:14px;height:14px;margin-right:5px;}span{line-height:16px;background:linear-gradient(265.2deg,"," -21.19%,"," 105.08%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-fill-color:transparent;flex:none;order:0;flex-grow:0;}&.isbeta{pointer-events:none;span{padding:0 12px;}}&.right-tag-red{background:",";&:not(.isbeta):hover{background:",";}span{line-height:16px;background:linear-gradient(265.2deg,#EC4954 -21.19%,#FA52D6 105.08%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-fill-color:transparent;}}&.ai-semantic{padding:0 10px;min-width:0;height:20px;font-size:10px;svg{width:12px;height:12px;}}"],b=>b.theme.color_background_AI_head_tag,b=>b.theme.color_background_AI_head_tag_hover,b=>b.theme.color_AI_switch_gradient_start,b=>b.theme.color_AI_switch_gradient_end,b=>b.theme.color_background_AI_head_tag_red,b=>b.theme.color_background_AI_head_tag_red_hover);var p=e(57464);const r=b=>{const{from:h,user:E,org:N,project:z}=b,S=(0,o.useCallback)(ce=>{ce.preventDefault(),ce.stopPropagation(),ENV.IS_WONDER_SHARE?(0,C.Ix)(T.Jh,"_blank","noreferrer"):MB.global.popupHelper.chargeAsync({orgCid:(N==null?void 0:N.cid)||"",checkoutArea:"workspace",checkoutPlace:"workspace-V8_AI_popup",isChatGPT:!0})},[N]),_=(0,o.useMemo)(()=>({aiPoints:(0,T._F)({user:E,org:N}),aiUseTimes:(0,T.kK)({user:E,org:N})}),[E,N]);let y="",a=!1;const $=(0,T.vW)(E,N,z);return ENV.IS_WONDER_SHARE?(y=$?"Beta":I18N.ChatGPT.Limit+": "+(T.Dw-_.aiUseTimes<0?0:T.Dw-_.aiUseTimes),a=!$&&T.Dw-_.aiUseTimes<=3):(y=""+_.aiPoints,a=_.aiPoints<=200),h!=="ai-left-panel"&&(a=!1,y=I18N.ChatGPT.ai_limited_time_free),h!=="ai-left-panel"&&ENV.IS_WONDER_SHARE?null:(0,p.jsxs)(k,{className:g()(a&&"right-tag-red",h==="ai-semantic"&&"ai-semantic","disable"),onMouseDown:S,children:[h==="ai-left-panel"&&!ENV.IS_WONDER_SHARE&&(0,p.jsx)(l.C,{name:"chatGPT/ai-point-icon"+(a?"-red":""),isColorPure:!0}),(0,p.jsx)("span",{children:y})]})},x=(0,o.memo)(r),f=A.Ay.div.withConfig({displayName:"styles__StyledAIToolBar",componentId:"sc-1rvrsfz-0"})(["display:flex;justify-content:space-between;flex-direction:row;align-items:center;width:100%;height:100%;position:relative;&.tool-bar{padding:0 20px;height:50px;}.title{display:flex;align-items:center;}.tool-title{font-family:PingFang SC;font-style:normal;display:flex;align-items:center;color:",";font-weight:500;font-size:14px;line-height:40px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.ai-beta{width:40px;margin-left:4px;}.ai-help{margin-left:4px;&:hover{path{fill:#666666;}}}.tips{z-index:1;max-width:351px;background-color:#fff;box-sizing:border-box;padding:20px 24px;background:#333333;border-radius:4px;font-weight:400;font-size:12px;line-height:18px;color:#FFFFFF;flex-direction:column;text-align:left;position:fixed;div{white-space:pre-line;line-height:18px;margin-top:10px;}span{color:white;}.tip-title{font-size:14px;font-weight:500;margin-top:0;display:flex;svg{margin-right:2px;}}.tip-desc{margin-top:10px;font-size:12px;line-height:18px;display:flex;align-items:center;color:rgba(255,255,255,0.5);}}.tool-right{display:flex;align-items:center;white-space:nowrap;order:2;margin-left:6px;.close-modal{cursor:pointer;width:24px;height:24px;margin-left:6px;border-radius:4px;path{fill:",";}&:hover{path{fill:",";}}}}"],b=>b.theme.color_text_L1,b=>b.theme.color_text_L2,b=>b.theme.color_text_L1);function u(b){const{title:h,closeModal:E,isHeaderPanel:N,project:z,org:S,user:_,isAIChatPanel:y=!1}=b,a=(0,o.useRef)(null);return(0,p.jsxs)(f,{ref:a,className:g()(N?"ai-panel-header":"tool-bar"),type:y&&"draggable",children:[(0,p.jsxs)("div",{className:N?"title":"tool-title",type:y&&"draggable",children:[h||I18N.ChatGPT.mockitt_ai,N&&!ENV.IS_WONDER_SHARE&&(0,p.jsx)(l.C,{className:"ai-beta",name:"chatGPT/ai-beta",isColorPure:!0})]}),(0,p.jsxs)("div",{className:"tool-right",children:[(0,p.jsx)(x,{from:N?"ai-left-panel":"ai-component",user:_,org:S,project:z}),!N&&(0,p.jsx)(l.C,{name:"chatGPT/ai_commponent_close",className:"close-modal",onClick:E})]})]})}},13566:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>te});var o=e(74059),m=e(51044);let g=function(H){return H[H.message=0]="message",H[H.picture=1]="picture",H[H.video=2]="video",H[H.unknown=3]="unknown",H}({}),l=function(H){return H.user="user",H.assistant="assistant",H}({}),C=function(H){return H[H.success=0]="success",H[H.input=1]="input",H[H.generating=2]="generating",H[H.fail=3]="fail",H[H.streaming=4]="streaming",H}({});var T=e(5683);const A=()=>({content:"You are the intelligent AI assistant of the prototyping tool Mockitt",role:"system"}),k=(H,re,be,Le)=>{const Ve=""+(H.length+1),Ne=(0,T.AM)({user:be,project:Le}),We={id:Ve,role:l.user,associateID:Ne,status:C.success,message:re},ze={id:Ne,role:l.assistant,associateID:Ve,status:C.generating,message:""};return{chatList:H.concat([We]),streamChat:ze}};async function p(H){if(H){try{return await navigator.clipboard.writeText(H),!0}catch(re){const be=document.createElement("textarea");be.value=H,document.body.appendChild(be),be.focus(),be.select();try{return document.execCommand("copy"),document.body.removeChild(be),!0}catch(Le){console.log("### \u590D\u5236\u5931\u8D25"),document.body.removeChild(be)}}return!1}}const r=H=>{let re=0;for(let be=0;be<H.length;be++){const Le=H.charCodeAt(be);Le>=19968&&Le<=40869?re+=2:(Le>=32&&Le<=126,re+=1)}return re},x=(H,re)=>{const be=[...re],Le=re.filter(We=>{const ze=be.find(ft=>ft.associateID===We.id);return ze&&ze.role===l.assistant&&ze.status!==C.success||We.role===l.assistant&&We.status!==C.success?!1:ze});let Ve=13+r(H);const Ne=[];for(let We=0;We<Le.length;We++){const ze=Le[Le.length-We-1];if(ze&&(Ve=Ve+r(ze.message),Ve<2e3)){Ne.push({content:ze.message,role:ze.role});continue}}return Ne.reverse(),Ne.length>0&&Ne[Ne.length-1].role===l.user&&Ne.pop(),ENV.IS_WONDER_SHARE&&(Ne.unshift(A()),Ne.push({content:H,role:l.user})),Ne};var f=e(38045),u=e(86634),b=e.n(u),h=e(56146),E=e(21676);const N=E.Ay.div.withConfig({displayName:"styles__StyledChatBottomTool",componentId:"sc-1m3zz5y-0"})(["padding-top:10px;padding-bottom:16px;padding-right:9px;.new-dialogue{font-size:12px;margin-bottom:10px;background:",";border-radius:6px;display:flex;align-items:center;width:fit-content;padding:0px 6px;text-align:center;line-height:26px;color:",";cursor:pointer;svg{width:12px;height:12px;margin-right:2px;path{stroke:",";}}&.disabled{pointer-events:none;color:",";svg{path{stroke:",";}}}&:not(.disabled):hover{background:",";}}"],H=>H.isDark?"#363738":"#F5F8FD",H=>H.isDark?"#FFFFFFE5":"#1684FC",H=>H.isDark?"#FFFFFFE5":"#1684FC",H=>H.isDark?"#808080":"#1685FC66",H=>H.isDark?"#808080":"#1685FC66",H=>H.isDark?"#454647":"#DAEBFE"),z=E.Ay.div.withConfig({displayName:"styles__StyledChatTextArea",componentId:"sc-1m3zz5y-1"})(["width:100%;flex-direction:column;font-size:12px;background:linear-gradient(97.39deg,#D5CCFF 1.15%,#FFCCFF 33.16%,#BBFAFA 66.15%,#BFDFFF 99.64%);padding:2px;border-radius:6px;&:hover{background:linear-gradient(90deg,#7F66FF 0%,#FF66FF 32.5%,#6699FF 67%,#64FAFA 100%);}&.isFocus{background:linear-gradient(90deg,#7F66FF 0%,#FF66FF 32.5%,#6699FF 67%,#64FAFA 100%);}.colorful-border-content{padding:10px;border-radius:4px;background-color:",";}&.generating{pointer-events:none;}.chat-input{width:100%;height:42px;font-family:inherit;resize:none;outline:none;border:none;background:rgba(0,0,0,0);color:",";caret-color:",";word-break:break-all;}.chat-input::-webkit-scrollbar{width:4px;height:4px;margin-left:5px;}.chat-input::-webkit-scrollbar-thumb{border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;background:rgba(22,132,252,0.25);}.chat-input::-webkit-scrollbar-track{background-color:transparent;}.chat-input::-webkit-input-placeholder{color:",";}.chat-input:-moz-placeholder{color:",";}.chat-input::-moz-placeholder{color:",";}.chat-input::-ms-input-placeholder{color:",";}.bottom-tool{display:flex;align-items:baseline;justify-content:space-between;.input-number{color:",";font-size:12px;line-height:17px;&.error{color:",";}}.send-message{display:flex;font-family:PingFang SC;align-items:center;justify-content:center;background:",";height:28px;width:66px;border-radius:6px;color:white;cursor:pointer;font-weight:500;font-size:12px;svg{margin-right:4px;width:12px;path{fill:rgba(0,0,0,0);}}&.disabled{pointer-events:none;color:",";background:",";svg{path{stroke:",";}}}&:not(.disabled):hover{background:",";}&:active{background:",";}}}"],H=>H.theme.color_bg_white,H=>H.theme.color_text_L1,H=>H.theme.color_text_L1,H=>H.theme.color_text_L3,H=>H.theme.color_text_L3,H=>H.theme.color_text_L3,H=>H.theme.color_text_L3,H=>H.theme.color_text_L1,H=>H.theme.color_primary_brand02,H=>H.theme.color_btn_primary_normal,H=>H.isDark?"#808080":"#FFFFFF",H=>H.theme.color_btn_primary_disabled,H=>H.isDark?"#808080":"#FFFFFF",H=>H.theme.color_btn_primary_hover,H=>H.theme.color_btn_primary_clicked);var S=e(57464);function _(H){let{sendMessageHandle:re,isEmpty:be,createNewDialogueHandle:Le,generating:Ve,handleChatInputValue:Ne,userInput:We,isDark:ze}=H;const[ft,mt]=(0,m.useState)(!1),i=(0,m.useRef)(null),gt=bt=>{bt.keyCode===13&&!bt.shiftKey&&(We.length>0&&Je(),bt.preventDefault())},Je=()=>{var bt;i==null||(bt=i.current)==null||bt.blur(),re(We)},Pt=()=>{Le()};return(0,S.jsxs)(N,{isDark:ze,children:[(0,S.jsxs)("div",{className:b()("new-dialogue",be&&"disabled"),onClick:Pt,children:[(0,S.jsx)(h.C,{name:"chatGPT/ai-add_new_dialogue",isColorPure:!0}),I18N.ChatGPT.add_new_chat]}),(0,S.jsx)(z,{isDark:ze,className:b()(ft&&"isFocus",Ve&&"generating"),children:(0,S.jsxs)("div",{className:"colorful-border-content",children:[(0,S.jsx)("textarea",{ref:i,id:"chat-input",className:"chat-input",maxLength:200,value:We,onChange:bt=>Ne(bt.target.value),onKeyDown:gt,onFocus:()=>{mt(!0)},rows:3,onBlur:()=>{mt(!1)},placeholder:I18N.ChatGPT.ask_me_anything}),(0,S.jsxs)("div",{className:"bottom-tool",children:[(0,S.jsxs)("div",{className:b()("input-number",{error:We.length>=200}),children:[We.length>=200?200:We.length,"/200"]}),(0,S.jsxs)("div",{className:b()("send-message",We.length===0&&"disabled"),onClick:Je,children:[(0,S.jsx)(h.C,{name:"chatGPT/send_message"}),I18N.ChatGPT.Send]})]})]})})]})}const y=E.Ay.div.withConfig({displayName:"styles__StyledLoading",componentId:"sc-1j982sr-0"})(["display:block;font-size:0;color:#72B4FF;height:14px;& > div{position:relative;box-sizing:border-box;display:inline-block;float:none;background-color:currentColor;border:0 solid currentColor;width:8px;height:8px;margin:4px;border-radius:100%;animation:ball-beat 0.7s -0.15s infinite linear;}& > div:nth-child(2n-1){animation-delay:-0.5s;}@keyframes ball-beat{50%{opacity:0.25;transform:scale(0.75);}100%{opacity:1;transform:scale(1);}}"]);class a extends m.PureComponent{render(){return(0,S.jsxs)(y,{children:[(0,S.jsx)("div",{}),(0,S.jsx)("div",{}),(0,S.jsx)("div",{})]})}}var $=e(36429),ce=e(36875),de=e(53955);class fe extends m.Component{constructor(){super(...arguments),(0,o.A)(this,"state",{hasError:!1,libRehype:$.zl.hasLLG()?$.zl.getLLG():void 0})}componentDidMount(){this.state.libRehype||$.zl.loadLLG().then(re=>this.setState({libRehype:re}))}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(re,be){var Le;const{message:Ve,id:Ne}=this.props,ze=(((Le=(0,de.dP)())==null||(Le=Le.ai)==null?void 0:Le.chatMessages)||[]).find(ft=>ft.associateID===Ne);(0,ce.Cp)(re,{level:"debug",fingerprint:["ai chat render error"],extra:{message:Ve,question:ze==null?void 0:ze.message}})}render(){const{hasError:re,libRehype:be}=this.state;if(!be)return null;const{ReactMarkdown:Le,RehypeHighlight:Ve,RemarkMath:Ne,RemarkBreaks:We,RehypeKatex:ze,RemarkGfm:ft}=be,{message:mt}=this.props;return(0,S.jsx)(Le,{remarkPlugins:[Ne,ft,We],rehypePlugins:re?[ze]:[ze,[Ve,{detect:!1,ignoreMissing:!0}]],linkTarget:"_blank",children:mt})}}const se=fe,J=E.Ay.div.withConfig({displayName:"styles__StyledChatMessageItem",componentId:"sc-18jikxs-0"})(["width:100%;display:flex;flex-direction:column;.row-content{display:flex;width:100%;align-items:center;margin-top:10px;&.user{justify-content:flex-end;}&.assistant{justify-content:flex-start;}}.message-content{-webkit-user-select:auto !important;-ms-user-select:auto !important;user-select:auto !important;padding:10px;border-radius:10px;max-width:100%;color:",";&.loading{width:66px;padding:12px 0;display:flex;justify-content:center;}&.fail{background:",";border:1px solid rgba(245,63,63,0.2);}&.user{border:1px solid rgba(22,132,252,0.2);background:rgba(22,132,252,0.25);}&.assistant{border:1px solid rgba(22,132,252,0.2);background:",";}.item-line{width:100%;height:1px;margin:10px 0px;background:",";}}"],H=>H.theme.color_text_L1,H=>H.theme.color_ai_chat_item_fail_bg,H=>H.theme.color_ai_chat_item_assistant_bg,H=>H.isDark?"#1685FC33":"rgba(181, 191, 215, 0.6)"),ve=(0,E.DU)(['.markdown-body{-webkit-user-select:auto !important;-ms-user-select:auto !important;user-select:auto !important;*{-webkit-user-select:text !important;-ms-user-select:text !important;user-select:text !important;}pre{padding:0;}pre,code{font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;}pre code{display:block;overflow-x:auto;padding:1em;}code{padding:3px 5px;}.hljs,pre{background:#1a1b26;color:#cbd2ea;}.hljs-comment,.hljs-meta{color:#565f89;}.hljs-deletion,.hljs-doctag,.hljs-regexp,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-selector-pseudo,.hljs-tag,.hljs-template-tag,.hljs-variable.language_{color:#f7768e;}.hljs-link,.hljs-literal,.hljs-number,.hljs-params,.hljs-template-variable,.hljs-type,.hljs-variable{color:#ff9e64;}.hljs-attribute,.hljs-built_in{color:#e0af68;}.hljs-keyword,.hljs-property,.hljs-subst,.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#7dcfff;}.hljs-selector-tag{color:#73daca;}.hljs-addition,.hljs-bullet,.hljs-quote,.hljs-string,.hljs-symbol{color:#9ece6a;}.hljs-code,.hljs-formula,.hljs-section{color:#7aa2f7;}.hljs-attr,.hljs-char.escape_,.hljs-keyword,.hljs-name,.hljs-operator{color:#bb9af7;}.hljs-punctuation{color:#c0caf5;}.hljs-emphasis{font-style:italic;}.hljs-strong{font-weight:700;}}.markdown-body{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;margin:0;background-color:var(--color-canvas-default);font-size:12px;line-height:1.5;word-wrap:break-word;}.markdown-body .octicon{display:inline-block;fill:currentColor;vertical-align:text-bottom;}.markdown-body h1:hover .anchor .octicon-link:before,.markdown-body h2:hover .anchor .octicon-link:before,.markdown-body h3:hover .anchor .octicon-link:before,.markdown-body h4:hover .anchor .octicon-link:before,.markdown-body h5:hover .anchor .octicon-link:before,.markdown-body h6:hover .anchor .octicon-link:before{width:16px;height:16px;content:" ";display:inline-block;background-color:currentColor;}.markdown-body details,.markdown-body figcaption,.markdown-body figure{display:block;}.markdown-body summary{display:list-item;}.markdown-body [hidden]{display:none !important;}.markdown-body a{background-color:transparent;color:var(--color-accent-fg);text-decoration:none;}.markdown-body abbr[title]{border-bottom:none;text-decoration:underline dotted;}.markdown-body b,.markdown-body strong{font-weight:var(--base-text-weight-semibold,600);}.markdown-body dfn{font-style:italic;}.markdown-body h1{margin:0.67em 0;font-weight:var(--base-text-weight-semibold,600);padding-bottom:0.3em;font-size:2em;border-bottom:1px solid var(--color-border-muted);}.markdown-body mark{background-color:var(--color-attention-subtle);color:var(--color-fg-default);}.markdown-body small{font-size:90%;}.markdown-body sub,.markdown-body sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}.markdown-body sub{bottom:-0.25em;}.markdown-body sup{top:-0.5em;}.markdown-body img{border-style:none;max-width:100%;box-sizing:content-box;background-color:var(--color-canvas-default);}.markdown-body code,.markdown-body kbd,.markdown-body pre,.markdown-body samp{font-family:monospace;font-size:1em;}.markdown-body figure{margin:1em 40px;}.markdown-body hr{box-sizing:content-box;overflow:hidden;background:transparent;border-bottom:1px solid var(--color-border-muted);height:0.25em;padding:0;margin:24px 0;background-color:var(--color-border-default);border:0;}.markdown-body input{font:inherit;margin:0;overflow:visible;font-family:inherit;font-size:inherit;line-height:inherit;}.markdown-body [type="button"],.markdown-body [type="reset"],.markdown-body [type="submit"]{-webkit-appearance:button;}.markdown-body [type="checkbox"],.markdown-body [type="radio"]{box-sizing:border-box;padding:0;}.markdown-body [type="number"]::-webkit-inner-spin-button,.markdown-body [type="number"]::-webkit-outer-spin-button{height:auto;}.markdown-body [type="search"]::-webkit-search-cancel-button,.markdown-body [type="search"]::-webkit-search-decoration{-webkit-appearance:none;}.markdown-body ::-webkit-input-placeholder{color:inherit;opacity:0.54;}.markdown-body ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}.markdown-body a:hover{text-decoration:underline;}.markdown-body ::placeholder{color:var(--color-fg-subtle);opacity:1;}.markdown-body hr::before{display:table;content:"";}.markdown-body hr::after{display:table;clear:both;content:"";}.markdown-body table{border-spacing:0;border-collapse:collapse;display:block;width:max-content;max-width:100%;overflow:auto;}.markdown-body td,.markdown-body th{padding:0;}.markdown-body details summary{cursor:pointer;}.markdown-body details:not([open]) > *:not(summary){display:none !important;}.markdown-body a:focus,.markdown-body [role="button"]:focus,.markdown-body input[type="radio"]:focus,.markdown-body input[type="checkbox"]:focus{outline:2px solid var(--color-accent-fg);outline-offset:-2px;box-shadow:none;}.markdown-body a:focus:not(:focus-visible),.markdown-body [role="button"]:focus:not(:focus-visible),.markdown-body input[type="radio"]:focus:not(:focus-visible),.markdown-body input[type="checkbox"]:focus:not(:focus-visible){outline:solid 1px transparent;}.markdown-body a:focus-visible,.markdown-body [role="button"]:focus-visible,.markdown-body input[type="radio"]:focus-visible,.markdown-body input[type="checkbox"]:focus-visible{outline:2px solid var(--color-accent-fg);outline-offset:-2px;box-shadow:none;}.markdown-body a:not([class]):focus,.markdown-body a:not([class]):focus-visible,.markdown-body input[type="radio"]:focus,.markdown-body input[type="radio"]:focus-visible,.markdown-body input[type="checkbox"]:focus,.markdown-body input[type="checkbox"]:focus-visible{outline-offset:0;}.markdown-body kbd{display:inline-block;padding:3px 5px;font:11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;line-height:10px;color:var(--color-fg-default);vertical-align:middle;background-color:var(--color-canvas-subtle);border:solid 1px var(--color-neutral-muted);border-bottom-color:var(--color-neutral-muted);border-radius:6px;box-shadow:inset 0 -1px 0 var(--color-neutral-muted);}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4,.markdown-body h5,.markdown-body h6{margin-top:24px;margin-bottom:16px;font-weight:var(--base-text-weight-semibold,600);line-height:1.25;}.markdown-body h2{font-weight:var(--base-text-weight-semibold,600);padding-bottom:0.3em;font-size:1.5em;border-bottom:1px solid var(--color-border-muted);}.markdown-body h3{font-weight:var(--base-text-weight-semibold,600);font-size:1.25em;}.markdown-body h4{font-weight:var(--base-text-weight-semibold,600);font-size:1em;}.markdown-body h5{font-weight:var(--base-text-weight-semibold,600);font-size:0.875em;}.markdown-body h6{font-weight:var(--base-text-weight-semibold,600);font-size:0.85em;color:var(--color-fg-muted);}.markdown-body p{margin-top:0;margin-bottom:10px;}.markdown-body blockquote{margin:0;padding:0 1em;color:var(--color-fg-muted);border-left:0.25em solid var(--color-border-default);}.markdown-body ul,.markdown-body ol{margin-top:0;margin-bottom:0;padding-left:2em;}.markdown-body ol ol,.markdown-body ul ol{list-style-type:lower-roman;}.markdown-body ul ul ol,.markdown-body ul ol ol,.markdown-body ol ul ol,.markdown-body ol ol ol{list-style-type:lower-alpha;}.markdown-body dd{margin-left:0;}.markdown-body tt,.markdown-body code,.markdown-body samp{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;}.markdown-body pre{margin-top:0;margin-bottom:0;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;word-wrap:normal;}.markdown-body .octicon{display:inline-block;overflow:visible !important;vertical-align:text-bottom;fill:currentColor;}.markdown-body input::-webkit-outer-spin-button,.markdown-body input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none;appearance:none;}.markdown-body::before{display:table;content:"";}.markdown-body::after{display:table;clear:both;content:"";}.markdown-body > *:first-child{margin-top:0 !important;}.markdown-body > *:last-child{margin-bottom:0 !important;}.markdown-body a:not([href]){color:inherit;text-decoration:none;}.markdown-body .absent{color:var(--color-danger-fg);}.markdown-body .anchor{float:left;padding-right:4px;margin-left:-20px;line-height:1;}.markdown-body .anchor:focus{outline:none;}.markdown-body p,.markdown-body blockquote,.markdown-body ul,.markdown-body ol,.markdown-body dl,.markdown-body table,.markdown-body pre,.markdown-body details{margin-top:0;margin-bottom:16px;}.markdown-body blockquote > :first-child{margin-top:0;}.markdown-body blockquote > :last-child{margin-bottom:0;}.markdown-body h1 .octicon-link,.markdown-body h2 .octicon-link,.markdown-body h3 .octicon-link,.markdown-body h4 .octicon-link,.markdown-body h5 .octicon-link,.markdown-body h6 .octicon-link{color:var(--color-fg-default);vertical-align:middle;visibility:hidden;}.markdown-body h1:hover .anchor,.markdown-body h2:hover .anchor,.markdown-body h3:hover .anchor,.markdown-body h4:hover .anchor,.markdown-body h5:hover .anchor,.markdown-body h6:hover .anchor{text-decoration:none;}.markdown-body h1:hover .anchor .octicon-link,.markdown-body h2:hover .anchor .octicon-link,.markdown-body h3:hover .anchor .octicon-link,.markdown-body h4:hover .anchor .octicon-link,.markdown-body h5:hover .anchor .octicon-link,.markdown-body h6:hover .anchor .octicon-link{visibility:visible;}.markdown-body h1 tt,.markdown-body h1 code,.markdown-body h2 tt,.markdown-body h2 code,.markdown-body h3 tt,.markdown-body h3 code,.markdown-body h4 tt,.markdown-body h4 code,.markdown-body h5 tt,.markdown-body h5 code,.markdown-body h6 tt,.markdown-body h6 code{padding:0 0.2em;font-size:inherit;}.markdown-body summary h1,.markdown-body summary h2,.markdown-body summary h3,.markdown-body summary h4,.markdown-body summary h5,.markdown-body summary h6{display:inline-block;}.markdown-body summary h1 .anchor,.markdown-body summary h2 .anchor,.markdown-body summary h3 .anchor,.markdown-body summary h4 .anchor,.markdown-body summary h5 .anchor,.markdown-body summary h6 .anchor{margin-left:-40px;}.markdown-body summary h1,.markdown-body summary h2{padding-bottom:0;border-bottom:0;}.markdown-body ul.no-list,.markdown-body ol.no-list{padding:0;list-style-type:none;}.markdown-body ol[type="a"]{list-style-type:lower-alpha;}.markdown-body ol[type="A"]{list-style-type:upper-alpha;}.markdown-body ol[type="i"]{list-style-type:lower-roman;}.markdown-body ol[type="I"]{list-style-type:upper-roman;}.markdown-body ol[type="1"]{list-style-type:decimal;}.markdown-body div > ol:not([type]){list-style-type:decimal;}.markdown-body ul ul,.markdown-body ul ol,.markdown-body ol ol,.markdown-body ol ul{margin-top:0;margin-bottom:0;}.markdown-body li > p{margin-top:16px;}.markdown-body li + li{margin-top:0.25em;}.markdown-body dl{padding:0;}.markdown-body dl dt{padding:0;margin-top:16px;font-size:1em;font-style:italic;font-weight:var(--base-text-weight-semibold,600);}.markdown-body dl dd{padding:0 16px;margin-bottom:16px;}.markdown-body table th{font-weight:var(--base-text-weight-semibold,600);}.markdown-body table th,.markdown-body table td{padding:6px 13px;border:1px solid var(--color-border-default);}.markdown-body table tr{background-color:var(--color-canvas-default);border-top:1px solid var(--color-border-muted);}.markdown-body table tr:nth-child(2n){background-color:var(--color-canvas-subtle);}.markdown-body table img{background-color:transparent;}.markdown-body img[align="right"]{padding-left:20px;}.markdown-body img[align="left"]{padding-right:20px;}.markdown-body .emoji{max-width:none;vertical-align:text-top;background-color:transparent;}.markdown-body span.frame{display:block;overflow:hidden;}.markdown-body span.frame > span{display:block;float:left;width:auto;padding:7px;margin:13px 0 0;overflow:hidden;border:1px solid var(--color-border-default);}.markdown-body span.frame span img{display:block;float:left;}.markdown-body span.frame span span{display:block;padding:5px 0 0;clear:both;color:var(--color-fg-default);}.markdown-body span.align-center{display:block;overflow:hidden;clear:both;}.markdown-body span.align-center > span{display:block;margin:13px auto 0;overflow:hidden;text-align:center;}.markdown-body span.align-center span img{margin:0 auto;text-align:center;}.markdown-body span.align-right{display:block;overflow:hidden;clear:both;}.markdown-body span.align-right > span{display:block;margin:13px 0 0;overflow:hidden;text-align:right;}.markdown-body span.align-right span img{margin:0;text-align:right;}.markdown-body span.float-left{display:block;float:left;margin-right:13px;overflow:hidden;}.markdown-body span.float-left span{margin:13px 0 0;}.markdown-body span.float-right{display:block;float:right;margin-left:13px;overflow:hidden;}.markdown-body span.float-right > span{display:block;margin:13px auto 0;overflow:hidden;text-align:right;}.markdown-body code,.markdown-body tt{padding:0.2em 0.4em;margin:0;font-size:85%;white-space:break-spaces;background-color:var(--color-neutral-muted);border-radius:6px;}.markdown-body code br,.markdown-body tt br{display:none;}.markdown-body del code{text-decoration:inherit;}.markdown-body samp{font-size:85%;}.markdown-body pre code{font-size:100%;}.markdown-body pre > code{padding:0;margin:0;word-break:normal;white-space:pre;background:transparent;border:0;}.markdown-body .highlight{margin-bottom:16px;}.markdown-body .highlight pre{margin-bottom:0;word-break:normal;}.markdown-body .highlight pre,.markdown-body pre{padding:16px 16px 8px 16px;overflow:auto;font-size:85%;line-height:1.45;border-radius:6px;}.markdown-body pre code,.markdown-body pre tt{display:inline-block;max-width:100%;padding:0;margin:0;overflow-x:scroll;line-height:inherit;word-wrap:normal;background-color:transparent;border:0;}.markdown-body .csv-data td,.markdown-body .csv-data th{padding:5px;overflow:hidden;font-size:12px;line-height:1;text-align:left;white-space:nowrap;}.markdown-body .csv-data .blob-num{padding:10px 8px 9px;text-align:right;background:var(--color-canvas-default);border:0;}.markdown-body .csv-data tr{border-top:0;}.markdown-body .csv-data th{font-weight:var(--base-text-weight-semibold,600);background:var(--color-canvas-subtle);border-top:0;}.markdown-body [data-footnote-ref]::before{content:"[";}.markdown-body [data-footnote-ref]::after{content:"]";}.markdown-body .footnotes{font-size:12px;color:var(--color-fg-muted);border-top:1px solid var(--color-border-default);}.markdown-body .footnotes ol{padding-left:16px;}.markdown-body .footnotes ol ul{display:inline-block;padding-left:16px;margin-top:16px;}.markdown-body .footnotes li{position:relative;}.markdown-body .footnotes li:target::before{position:absolute;top:-8px;right:-8px;bottom:-8px;left:-24px;pointer-events:none;content:"";border:2px solid var(--color-accent-emphasis);border-radius:6px;}.markdown-body .footnotes li:target{color:var(--color-fg-default);}.markdown-body .footnotes .data-footnote-backref g-emoji{font-family:monospace;}.markdown-body .pl-c{color:var(--color-prettylights-syntax-comment);}.markdown-body .pl-c1,.markdown-body .pl-s .pl-v{color:var(--color-prettylights-syntax-constant);}.markdown-body .pl-e,.markdown-body .pl-en{color:var(--color-prettylights-syntax-entity);}.markdown-body .pl-smi,.markdown-body .pl-s .pl-s1{color:var(--color-prettylights-syntax-storage-modifier-import);}.markdown-body .pl-ent{color:var(--color-prettylights-syntax-entity-tag);}.markdown-body .pl-k{color:var(--color-prettylights-syntax-keyword);}.markdown-body .pl-s,.markdown-body .pl-pds,.markdown-body .pl-s .pl-pse .pl-s1,.markdown-body .pl-sr,.markdown-body .pl-sr .pl-cce,.markdown-body .pl-sr .pl-sre,.markdown-body .pl-sr .pl-sra{color:var(--color-prettylights-syntax-string);}.markdown-body .pl-v,.markdown-body .pl-smw{color:var(--color-prettylights-syntax-variable);}.markdown-body .pl-bu{color:var(--color-prettylights-syntax-brackethighlighter-unmatched);}.markdown-body .pl-ii{color:var(--color-prettylights-syntax-invalid-illegal-text);background-color:var(--color-prettylights-syntax-invalid-illegal-bg);}.markdown-body .pl-c2{color:var(--color-prettylights-syntax-carriage-return-text);background-color:var(--color-prettylights-syntax-carriage-return-bg);}.markdown-body .pl-sr .pl-cce{font-weight:bold;color:var(--color-prettylights-syntax-string-regexp);}.markdown-body .pl-ml{color:var(--color-prettylights-syntax-markup-list);}.markdown-body .pl-mh,.markdown-body .pl-mh .pl-en,.markdown-body .pl-ms{font-weight:bold;color:var(--color-prettylights-syntax-markup-heading);}.markdown-body .pl-mi{font-style:italic;color:var(--color-prettylights-syntax-markup-italic);}.markdown-body .pl-mb{font-weight:bold;color:var(--color-prettylights-syntax-markup-bold);}.markdown-body .pl-md{color:var(--color-prettylights-syntax-markup-deleted-text);background-color:var(--color-prettylights-syntax-markup-deleted-bg);}.markdown-body .pl-mi1{color:var(--color-prettylights-syntax-markup-inserted-text);background-color:var(--color-prettylights-syntax-markup-inserted-bg);}.markdown-body .pl-mc{color:var(--color-prettylights-syntax-markup-changed-text);background-color:var(--color-prettylights-syntax-markup-changed-bg);}.markdown-body .pl-mi2{color:var(--color-prettylights-syntax-markup-ignored-text);background-color:var(--color-prettylights-syntax-markup-ignored-bg);}.markdown-body .pl-mdr{font-weight:bold;color:var(--color-prettylights-syntax-meta-diff-range);}.markdown-body .pl-ba{color:var(--color-prettylights-syntax-brackethighlighter-angle);}.markdown-body .pl-sg{color:var(--color-prettylights-syntax-sublimelinter-gutter-mark);}.markdown-body .pl-corl{text-decoration:underline;color:var(--color-prettylights-syntax-constant-other-reference-link);}.markdown-body g-emoji{display:inline-block;min-width:1ch;font-family:"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:1em;font-style:normal !important;font-weight:var(--base-text-weight-normal,400);line-height:1;vertical-align:-0.075em;}.markdown-body g-emoji img{width:1em;height:1em;}.markdown-body .task-list-item{list-style-type:none;}.markdown-body .task-list-item label{font-weight:var(--base-text-weight-normal,400);}.markdown-body .task-list-item.enabled label{cursor:pointer;}.markdown-body .task-list-item + .task-list-item{margin-top:4px;}.markdown-body .task-list-item .handle{display:none;}.markdown-body .task-list-item-checkbox{margin:0 0.2em 0.25em -1.4em;vertical-align:middle;}.markdown-body .contains-task-list:dir(rtl) .task-list-item-checkbox{margin:0 -1.6em 0.25em 0.2em;}.markdown-body .contains-task-list{position:relative;}.markdown-body .contains-task-list:hover .task-list-item-convert-container,.markdown-body .contains-task-list:focus-within .task-list-item-convert-container{display:block;width:auto;height:24px;overflow:visible;clip:auto;}.markdown-body ::-webkit-calendar-picker-indicator{filter:invert(50%);}']),D=E.Ay.div.withConfig({displayName:"styles__StyledChatGPTModal",componentId:"sc-nbqxms-0"})(["display:flex;justify-content:center;align-items:center;color:",";width:100%;padding:0 11px 0 20px;height:calc(100% - 54px);&.show-switch{height:calc(100% - 88px);}.chat-content{display:flex;position:relative;width:100%;height:100%;flex-direction:column;scroll-behavior:smooth;.chat-body{flex:1 1;overflow:auto;overflow-y:overlay;padding-right:9px;::-webkit-scrollbar{--bar-width:6px;width:var(--bar-width);height:var(--bar-width);}::-webkit-scrollbar-track{background-color:transparent;}::-webkit-scrollbar-thumb{background-color:",";border-radius:4px;&:hover{background-color:",";}border-radius:20px;border:1px solid transparent;}}.stop-generating{position:absolute;left:50%;bottom:158px;transform:translateX(-50%);background:",";padding:6px 9px;line-height:14px;text-align:center;border:1px solid ",";border-radius:6px;font-size:12px;color:",";&:hover{background:",";}&:active{background:",";}}}"],H=>H.theme.color_text_L1,H=>H.theme.color_background,H=>H.theme.color_text_disabled,H=>H.theme.color_background_white,H=>H.theme.color_background_white_modal_active,H=>H.theme.color_text_L1,H=>H.theme.color_background_icon_hover,H=>H.theme.color_background_white_modal_hover),R=E.Ay.div.withConfig({displayName:"styles__StyledChatBorderButton",componentId:"sc-nbqxms-1"})(["border:1px solid ",";border-radius:6px;font-size:12px;display:flex;align-items:center;text-align:center;color:",";padding:0px 10px;width:fit-content;height:28px;cursor:pointer;background:",";&:hover{background:",";}&:active{background:",";}"],H=>H.theme.color_ai_button_border,H=>H.theme.color_text_L0,H=>H.theme.color_ai_button_bg,H=>H.theme.color_ai_button_bg_hover,H=>H.theme.color_ai_button_bg_active);class V extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"copyMessageHandle",async()=>{const{chatMessage:{message:re}}=this.props;if(await p(re)){var Le;(Le=MB)==null||Le.notice({text:I18N.ChatGPT.copied_successfully,svgName:"chatGPT/copy-success"})}}),(0,o.A)(this,"handleMouseDown",re=>{re.stopPropagation()})}render(){const{chatMessage:{role:re,status:be,id:Le,message:Ve}}=this.props,Ne=re===l.user,We=be===C.generating,ze=be===C.fail,ft=be===C.streaming;return(0,S.jsxs)(J,{id:"message-"+Le,children:[(0,S.jsx)("div",{className:b()("row-content",Ne?"user":"assistant"),children:(0,S.jsx)("div",{className:b()("message-content",We&&"loading",ze?"fail":Ne?"user":"assistant"),children:We?(0,S.jsx)(a,{}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("div",{className:"markdown-body",onMouseDown:this.handleMouseDown,children:(0,S.jsx)(se,{message:Ve,id:Le})}),!Ne&&!ze&&!ft&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("div",{className:"item-line"}),(0,S.jsx)("div",{style:{display:"flex"},children:(0,S.jsx)(R,{onClick:this.copyMessageHandle,children:I18N.ChatGPT.Copy})})]})]})})}),(0,S.jsx)(ve,{})]})}}const O=V,Ce=E.Ay.div.withConfig({displayName:"styles__StyledChatMessageEmpty",componentId:"sc-b70yeb-0"})(["width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;text-align:center;.question-tip{font-size:12px;line-height:20px;color:",";}.chat-recommend-item{font-family:PingFang SC;font-style:normal;font-weight:400;font-size:12px;line-height:20px;align-items:center;color:",";width:fit-content;margin:0 auto;margin-top:14px;cursor:pointer;&:hover{color:",";}}.refresh{font-size:12px;line-height:20px;display:flex;align-items:center;color:",";justify-content:center;width:fit-content;margin:0 auto;margin-top:14px;cursor:pointer;&:hover{color:",";path{stroke:",";}}svg{width:24px;height:24px;margin-right:4px;path{fill:white;}}}"],H=>H.theme.color_text_L3,H=>H.theme.color_text_L1,H=>H.theme.color_primary_proto01,H=>H.theme.color_primary_proto01,H=>H.theme.color_primary_proto02,H=>H.theme.color_primary_proto02);class ae extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"state",{currentPage:0,recommendedDialogues:[[I18N.ChatGPT.recommended_dialogue1,I18N.ChatGPT.recommended_dialogue2,I18N.ChatGPT.recommended_dialogue3],[I18N.ChatGPT.recommended_dialogue4,I18N.ChatGPT.recommended_dialogue5,I18N.ChatGPT.recommended_dialogue6],[I18N.ChatGPT.recommended_dialogue7,I18N.ChatGPT.recommended_dialogue8,I18N.ChatGPT.recommended_dialogue9]]}),(0,o.A)(this,"changePage",()=>{const{currentPage:re}=this.state;this.setState({currentPage:re===2?0:re+1})}),(0,o.A)(this,"selectItemHandle",re=>{const{sendMessageHandle:be}=this.props;be&&be(re.target.dataset.item)})}render(){const{currentPage:re,recommendedDialogues:be}=this.state,Le=be[re];return(0,S.jsxs)(Ce,{children:[(0,S.jsx)("div",{className:"question-tip",children:I18N.ChatGPT.you_can_ask}),Le.map((Ve,Ne)=>(0,S.jsx)("div",{"data-item":Ve,className:"chat-recommend-item",onClick:this.selectItemHandle,children:Ve},Ve+"-"+Ne)),(0,S.jsx)("div",{className:"refresh",onClick:this.changePage,children:I18N.ChatGPT.Change})]})}}var q=e(35853),K=e(60185);let xe;class te extends m.PureComponent{constructor(){var re;super(...arguments),re=this,(0,o.A)(this,"state",{style:{left:0,top:0},inputChat:"",streamChat:null,chatMessages:[],generating:!1}),(0,o.A)(this,"setElemRef",be=>this.$chatBody=be),(0,o.A)(this,"getOrgID",()=>{const{commonData:{org:be,user:Le}}=this.props;return(0,T.WX)({user:Le,org:be})}),(0,o.A)(this,"onChatBodyScrollBottom",()=>{this.$chatBody&&setTimeout(()=>this.$chatBody.scrollTop=this.$chatBody.scrollHeight,1)}),(0,o.A)(this,"sendMessageHandle",async function(be,Le){Le===void 0&&(Le=!1),re.setState({inputChat:""});const{commonData:{user:Ve,project:Ne}}=re.props,{chatMessages:We}=re.state,{chatList:ze,streamChat:ft}=k(We,be,Ve,Ne);re.setState({chatMessages:ze,streamChat:ft,generating:!0},()=>{mt()});const mt=async()=>{re.onChatBodyScrollBottom(),ENV.IS_WONDER_SHARE?await re.handleWonderShareChat(be,ft):await re.handleStreamChat(be,ft,Le)}}),(0,o.A)(this,"handleUpdateAIUsedTimes",be=>{const{commonData:{user:Le,org:Ve,project:Ne},actions:{updateCurrentOrg:We,updateCurrentUser:ze}}=this.props;Ne.is_org_project&&Ve?We({org:Object.assign(Ve,{used_times:be})}):ze({user:Object.assign(Le,{used_times:be})})}),(0,o.A)(this,"handleUpdateAIPoints",be=>{const{commonData:{user:Le,org:Ve,project:Ne},actions:{updateCurrentOrg:We,updateCurrentUser:ze}}=this.props;Ne.is_org_project&&Ve?We({org:Object.assign(Ve,{ai_points:be})}):ze({user:Object.assign(Le,{ai_points:be})})}),(0,o.A)(this,"handleWonderShareChat",async(be,Le)=>{const Ve=performance.now();try{const{chatMessages:Ne,generating:We,streamChat:ze}=this.state,{commonData:{user:ft,org:mt}}=this.props,i=await(0,f.om)(x(be,Ne),this.getOrgID(),Le.id);if(!We)return;const{reply:gt,loadingID:Je}=i;if(Je!==ze.id)return;let{limited:Pt}=i;if(gt&>){const{limited:qt,success:pt}=await(0,f.GM)({user:ft,org:mt,onUpdateAIUsedTimes:this.handleUpdateAIUsedTimes});pt&&(Pt=qt)}const bt=gt&&!Pt;this.setState({chatMessages:[...Ne,{...ze,message:Pt?I18N.ChatGPT.chat_restricted:gt||I18N.ChatGPT.chat_error,status:bt?C.success:C.fail}],streamChat:null,generating:!1}),this.onChatBodyScrollBottom(),this.aiFunctionTrackHandle(bt,Pt?403:402,Ve)}catch(Ne){this.setState({streamChat:null,generating:!1}),this.onChatBodyScrollBottom(),this.aiFunctionTrackHandle(!1,402,Ve)}}),(0,o.A)(this,"handleStreamChat",async(be,Le,Ve)=>{const{chatMessages:Ne}=this.state,{commonData:{user:We,org:ze}}=this.props,ft=performance.now();xe&&xe.abort(),xe=new AbortController,await(0,f.g1)(be,x(be,Ne),Le.id,We,ze,xe.signal,async(mt,i,gt,Je)=>{const{chatMessages:Pt,streamChat:bt,generating:qt}=this.state;if(qt&&bt&&bt.id===gt){const $t={...bt},go=!!mt;$t.status=go?C.success:C.fail,$t.message=$t.message||"\u62B1\u6B49\uFF0C\u5C0F\u58A8\u6682\u65F6\u8FD8\u6CA1\u6709\u5B66\u5230\u76F8\u5173\u77E5\u8BC6\uFF0C\u60A8\u53EF\u4EE5\u6362\u4E2A\u95EE\u6CD5\uFF0C\u6216\u70B9\u51FB\u201C\u65B0\u5BF9\u8BDD\u201D\u91CD\u65B0\u5C1D\u8BD5\u3002",mt||($t.message=i),(0,K.flushSync)(()=>{this.setState({generating:!1,streamChat:null,chatMessages:[...Pt,$t]})}),this.onChatBodyScrollBottom(),this.aiFunctionTrackHandle(go,Je,ft)}if(Ve)return;const pt=document.getElementById("chat-input");pt&&pt.focus()},async(mt,i)=>{const{streamChat:gt,generating:Je}=this.state;if(Je&>&>.id===i){const Pt={...gt};Pt.status=C.streaming,Pt.message+=mt,(0,K.flushSync)(()=>{this.setState({streamChat:Pt})}),this.onChatBodyScrollBottom()}})}),(0,o.A)(this,"stopGeneratingHandle",async function(be){be===void 0&&(be=!1);const{chatMessages:Le,streamChat:Ve}=re.state,Ne=be?[]:Le;!be&&Ve&&Ve.message&&Ne.push({...Ve,status:C.success}),re.setState({chatMessages:Ne,streamChat:null,generating:!1});const We=document.getElementById("chat-input");We&&We.focus()}),(0,o.A)(this,"aiFunctionTrackHandle",(be,Le,Ve)=>{const{commonData:{user:Ne,org:We,project:ze},actions:{track:ft}}=this.props,i=performance.now()-Ve;let gt=be?"":"\u5176\u4ED6";be||(Le===403&&(gt="\u8D85\u9650"),Le===451&&(gt="\u654F\u611F\u8BCD"));const Je={source:"\u5DE6\u4FA7AI\u5165\u53E3",ai_type:"\u53D1\u8D77\u5BF9\u8BDD",ai_duration:i,ai_consume_type:ENV.IS_WONDER_SHARE?"\u6B21\u6570":"\u70B9\u6570",ai_consume_belong:We?"\u56E2\u961F":"\u4E2A\u4EBA",current_points:ENV.IS_WONDER_SHARE?(0,T.kK)({user:Ne,org:We}):(0,T._F)({user:Ne,org:We}),error_reason:gt,generate_success:be,is_pay:(0,T.vW)(Ne,We,ze)};ft("ai_function",Je)}),(0,o.A)(this,"createNewDialogueHandle",async()=>{this.setState({inputChat:""}),await this.stopGeneratingHandle(!0)}),(0,o.A)(this,"modalOnMouseOver",()=>{const{actions:{updateIsInChatModal:be}}=this.props;be(!0)}),(0,o.A)(this,"modalOnMouseLeave",()=>{const{actions:{updateIsInChatModal:be}}=this.props;be(!1)}),(0,o.A)(this,"handleSelectRecommend",be=>{this.handleChatInputValue(be);const Le=document.getElementById("chat-input");Le&&Le.focus()}),(0,o.A)(this,"handleChatInputValue",be=>{this.setState({inputChat:be})})}componentDidMount(){q.A.addListener(q.d,re=>{this.stopGeneratingHandle(!1),this.sendMessageHandle(re,!0)})}componentWillUnmount(){q.A.removeAllListeners()}render(){const{inputChat:re,generating:be,streamChat:Le,chatMessages:Ve}=this.state,{commonData:{theme:Ne,showHeadSwitch:We}}=this.props,ze=!Ve||Ve.length===0,ft=Ne==="dark";return(0,S.jsx)(D,{className:We?"show-switch":"",onMouseOver:this.modalOnMouseOver,onMouseLeave:this.modalOnMouseLeave,children:(0,S.jsxs)("div",{className:"chat-content",children:[(0,S.jsx)("div",{className:"chat-body",ref:this.setElemRef,children:ze?(0,S.jsx)(ae,{sendMessageHandle:this.handleSelectRecommend}):(0,S.jsxs)(S.Fragment,{children:[Ve.map((mt,i)=>(0,S.jsx)(O,{chatMessage:mt},i+"-"+mt.id)),Le&&(0,S.jsx)(O,{chatMessage:Le})]})}),(0,S.jsx)(_,{isDark:ft,sendMessageHandle:this.sendMessageHandle,isEmpty:ze,userInput:re,generating:be,createNewDialogueHandle:this.createNewDialogueHandle,handleChatInputValue:this.handleChatInputValue}),be&&(0,S.jsx)("div",{className:"stop-generating",onClick:()=>this.stopGeneratingHandle(!1),children:I18N.ChatGPT.stop_generating})]})})}}},27374:(Et,ke,e)=>{"use strict";e.d(ke,{$I:()=>T,Rj:()=>p,SR:()=>m,Tq:()=>C,UP:()=>k});var o=e(4114);let m=function(r){return r.AIAssistant="AIAssistant",r.Page="Page",r.Flow="flow",r.Mind="mind",r.Table="table",r.Chart="chart",r.AutoFill="autofill",r.Semantic="semantic",r.Component="Component",r.PageV9="PageV9",r.Chat="Chat",r}({}),g=function(r){return r.page="page",r.component="component",r.other="other",r.semantic="semantic ",r}({}),l=function(r){return r.hot="hot",r.other="other",r.semantic="semantic ",r}({});const C="GENERATE_AI_COMPONENT",T=(0,o.R)(()=>[{label:I18N.ChatGPT.ai_prototype,title:I18N.ChatGPT.ai_prototype_title,type:m.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:g.page,hotMenu:l.hot,icon:"chatGPT/ai-component-page",desc:I18N.ChatGPT.ai_prototype_desc,className:"ai-page",componentTitle:I18N.ChatGPT.ai_prototype_component_title},{label:C,title:I18N.ChatGPT.ai_component_title,type:m.Component,points:200,aiType:"\u751F\u6210AI\u7EC4\u4EF6",source:"",menu:g.component,hotMenu:l.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:m.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:g.component,hotMenu:l.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:m.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:g.component,hotMenu:l.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:m.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:g.component,hotMenu:l.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:m.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:g.component,hotMenu:l.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:m.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:g.other,hotMenu:l.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:m.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:g.semantic,hotMenu:l.semantic,icon:"chatGPT/ai-component-autofill",desc:I18N.ChatGPT.ai_magicFill_desc,className:"ai-magic-fill"}]),A=(0,o.R)(()=>[{title:I18N.ChatGPT.ai_prototype,items:T().filter(x=>x.menu===g.page)},{title:I18N.ChatGPT.ai_advanced_components,items:T().filter(x=>x.menu===g.component)},{title:I18N.ChatGPT.ai_magic_fill,items:T().filter(x=>x.menu===g.other)}]),k=(0,o.R)(()=>[{title:I18N.ChatGPT.ai_hot_menu,items:T().filter(x=>x.hotMenu===l.hot)},{title:I18N.ChatGPT.ai_other_menu,items:T().filter(x=>x.hotMenu===l.other)}]),p=(0,o.R)(()=>T().reduce((r,x)=>(r[x.type]=x,r),{}))},35853:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>l,d:()=>g});var o=e(34471),m=e.n(o);const g="ai-chat-event-notice",l=new o.EventEmitter},38045:(Et,ke,e)=>{"use strict";e.d(ke,{AP:()=>p,GE:()=>y,GM:()=>b,Kd:()=>x,L4:()=>A,Ni:()=>f,Rn:()=>h,Uy:()=>$,cD:()=>r,g1:()=>S,nI:()=>T,om:()=>N,ri:()=>k,x$:()=>a});var o=e(46795),m=e(36132),g=e(5683);const l=async()=>{try{await(0,o.DE)("/api/web/v3/initial"),location.reload()}catch(ce){location.href=location.origin+"/signin?next="+location.pathname}},C=()=>{window.top.postMessage(JSON.stringify({sharingMessage:"sharing:loginInvalid"}),"*")},T=async ce=>{let{success:de,status:fe,user:se,org:J,isAuto:ve=!1,updateAIState:D,notice:R}=ce;if(ve||D({aiGenerating:!1}),de)return;const V=u({code:fe,user:se,org:J,isChat:!1});V&&R({text:V,svgName:fe===451?"chatGPT/tip-warning":"chatGPT/tip-error"}),fe===401&&(C(),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(()=>l()))},A=async ce=>{let{prompt:de,workspace:fe,taskID:se,user:J,org:ve,updateAIState:D,notice:R}=ce;try{const V=await(0,o.zi)("/go/ai/chatbot/generate_page"+(ENV.IS_WONDER_SHARE?"2":""),{prompt:de,workspace:fe,task_id:se});return await T({success:!0,status:200,user:J,org:ve,updateAIState:D,notice:R}),{result:V,status:200}}catch(V){const O=V.status;return await T({success:!1,status:O,user:J,org:ve,updateAIState:D,notice:R}),{status:O}}},k=async ce=>{let{message:de}=ce;try{return{res:await(await fetch("/js-hpr/demo2405/genproto/genFlow?"+new URLSearchParams({uId:MB.user.id,upperCid:"0",Q:de}),{method:"POST"})).json(),status:200}}catch(fe){return{res:"",status:0}}},p=async ce=>{let{prompt:de,type:fe,workspace:se,taskID:J,user:ve,org:D,updateAIState:R,notice:V}=ce;try{const O=await(0,o.zi)("/go/ai/chatbot/generate_widget"+(ENV.IS_WONDER_SHARE?"2":""),{prompt:de,type:fe,workspace:se,task_id:J});return await T({success:!0,status:200,user:ve,org:D,updateAIState:R,notice:V}),{result:O,status:200}}catch(O){const Ce=O.status;return await T({success:!1,status:Ce,user:ve,org:D,updateAIState:R,notice:V}),{status:Ce}}},r=async ce=>{let{prompt:de,textListLength:fe,workspace:se,taskID:J,user:ve,org:D,updateAIState:R,notice:V}=ce;const O=de+(" ,textList.length ==="+fe);try{const Ce=await(0,o.zi)("/go/ai/chatbot/generate_widget"+(ENV.IS_WONDER_SHARE?"2":""),{prompt:O,type:"autofill",workspace:se,task_id:J});return await T({success:!0,status:200,user:ve,org:D,isAuto:!0,updateAIState:R,notice:V}),{result:Ce,status:200}}catch(Ce){const ae=Ce.status;return await T({success:!1,status:ae,user:ve,org:D,isAuto:!0,updateAIState:R,notice:V}),{status:ae}}},x=async(ce,de)=>{const{selectedTrees:fe,selectedCarouseImage:se,user:J,org:ve,updateAIState:D,notice:R}=de;try{const V=(0,m.t)({selectedTrees:fe,selectedCarouseImage:se}),O=await(0,o.zi)("/go/ai/chatbot/smart_generate",{...ce,size:V});return await T({success:!0,status:200,user:J,org:ve,isAuto:!0,updateAIState:D,notice:R}),{result:O,status:200}}catch(V){const O=V.status;return await T({success:!1,status:O,user:J,org:ve,isAuto:!0,updateAIState:D,notice:R}),{status:O}}},f=async ce=>{try{return await(0,o.zi)("/go/ai/chatbot/edit_text",ce)}catch(de){return null}},u=ce=>{let{code:de,user:fe,org:se,isChat:J=!0}=ce,ve=J?I18N.ChatGPT.ai_api_conversation_error:I18N.ChatGPT.ai_api_error_create;if(de===403){J||(ve="");const D=(0,g.WX)({user:fe,org:se});MB.global.popupHelper.upgradeChatGPTAsync({orgCid:D,checkoutArea:"workspace",checkoutPlace:"workspace-V8_AI_Remaining"})}else de===451?ve=I18N.ChatGPT.ai_api_error_illegal:de===405&&(ve=I18N.ChatGPT.ai_api_conversation_progress);return ve},b=async ce=>{let{user:de,org:fe,onUpdateAIUsedTimes:se}=ce;if(!ENV.IS_WONDER_SHARE)return{success:!1};try{const J=(0,g.WX)({user:de,org:fe}),{used_times:ve,limited:D}=await(0,o.DE)("/go/ai/chatbot/count_chat?workspace="+J);return se(ve),{times:ve,limited:D,success:!0}}catch(J){return console.log("#### error:",J),{success:!1}}},h=async ce=>{let{user:de,org:fe,onUpdateAIPoints:se}=ce;if(!ENV.IS_WONDER_SHARE)try{const J=(0,g.WX)({user:de,org:fe}),{points:ve}=await(0,o.DE)("/go/ai/chatbot/chat/points?workspace="+J);se(ve)}catch(J){console.log("#### error:",J)}},E=async ce=>{let{taskID:de,points:fe=0,confirm:se="stop",lane:J="generate",user:ve,org:D,onUpdateAIPoints:R}=ce;if(!ENV.IS_WONDER_SHARE)try{const V=getAIWorkspace({user:ve,org:D});await fetchPostJSON("/go/ai/chatbot/chat/confirm ",{workspace:V,points:fe,confirm:se,lane:J,task_id:de}),await h({user:ve,org:D,onUpdateAIPoints:R})}catch(V){console.log("### error:",V)}},N=async(ce,de,fe)=>{try{const{reply:se,used_times:J,limited:ve,usage:D}=await(0,o.zi)("/go/ai/chatbot/chat",{messages:ce,workspace:de,task_id:fe});return{reply:se,limited:ve,times:J,loadingID:fe,usage:D}}catch(se){return(se.status===401||/401/.test(se.message))&&(C(),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(()=>l())),{loadingID:fe}}},z=async(ce,de,fe,se,J,ve,D,R)=>{try{const V=await fetch("/go/ai/kb/knowledge_base_chat",{method:"POST",credentials:"same-origin",headers:{"content-type":"application/json"},body:JSON.stringify({messages:ce,workspace:de,task_id:fe})});if(!V||!V.ok||!V.body){ve(!1,u({code:V.status,user:se,org:J}),fe,V.status),(V==null?void 0:V.status)===401&&(C(),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(()=>l()));return}const O=V.body.getReader(),Ce=new TextDecoder;for(;;){const{value:ae,done:q}=await O.read(),K=Ce.decode(ae);if(D(K,fe),q)break}ve(!0,"",fe,200),await h({user:se,org:J,onUpdateAIPoints:R})}catch(V){ve(!1,u({code:0,user:se,org:J}),fe,402)}},S=async(ce,de,fe,se,J,ve,D,R)=>{try{const V=await fetch("/go/ai/kb/knowledge_base_chat",{signal:ve,method:"POST",credentials:"same-origin",headers:{"content-type":"application/json"},body:JSON.stringify({query:ce,history:de})});if(!V||!V.ok||!V.body){D(!1,u({code:V.status,user:se,org:J}),fe,V.status),(V==null?void 0:V.status)===401&&(C(),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(()=>l()));return}const O=V.body.getReader(),Ce=new TextDecoder;for(;;){const{value:ae,done:q}=await O.read(),K=Ce.decode(ae);if(R(K,fe),q)break}D(!0,"",fe,200)}catch(V){D(!1,u({code:0,user:se,org:J}),fe,402)}};function _(ce,de){throw new Error("Function not implemented.")}const y=async function(ce,de){let{searchValue:fe,signal:se}=ce;if(de===void 0&&(de="8081"),!fe||!fe.trim())return null;const J=de==="8081"?"/go/ai/nlp/analyse_custom":"/go/ai/nlp/analyse";try{const ve=await fetch(J+"?q="+fe.toLowerCase(),{signal:se,method:"GET",mode:"cors",headers:{"content-type":"application/json"}});if(!ve.ok)throw _("[fetchPostText] failed with "+ve.status+": /go/ai/nlp/analyse",{status:ve.status});return ve.json()}catch(ve){return null}},a=async function(ce,de){de===void 0&&(de="8081");try{return await(0,o.zi)("/go/ai/nlp/attr_conversion",{attrs:ce})}catch(fe){return null}},$=async ce=>{try{return await(0,o.zi)("/go/ai/nlp/log",{...ce})}catch(de){return null}}},36132:(Et,ke,e)=>{"use strict";e.d(ke,{Q:()=>A,t:()=>T});var o=e(97958),m=e.n(o),g=e(5683),l=e(43004),C=e(59026);const T=k=>{let{selectedTrees:p,selectedCarouseImage:r}=k;try{const f=(0,g.n3)(p).filter(b=>b.type===(l.x.WImage||l.x.WCarousel));let u=0;return f.forEach(b=>{b.type===l.x.WImage&&(u=u+1),b.type===l.x.WCarousel&&(r==null?u=u+b.carousel.slides.length:u=u+1)}),u=Math.max(u,3),u}catch(x){return console.error("getImageAutoFillNumber error:",x),3}},A=(k,p)=>{try{if(!k||Object.keys(k).length===0)return null;const{images:r}=k;if(!r||r.length===0)return null;const x=r.map((f,u)=>{const{keyword:b,originalSize:{width:h,height:E},url:N}=f,z=200,S=m()(200*E/h);return{asset_cid:"ai_"+u,image:N,width:z,height:S,img_tag:[b],size:"",thumb:N,name:"\u793A\u4F8B\u56FE\u7247",group_cid:""}});(0,C.bY)({result:x,...p})}catch(r){return null}}},47124:(Et,ke,e)=>{"use strict";e.d(ke,{c:()=>g,l:()=>m});var o=e(43004),m=function(l){return l.MD="MD",l.NLP="NLP",l.AI="AI",l}(m||{}),g=function(l){return l.CategoryNLP="CategoryNLP",l.CategoryFile="CategoryFile",l.CategoryLayoutView="CategoryLayoutView",l.CategoryPreference="CategoryPreference",l.CategoryQuickCreate="CategoryQuickCreate",l.CategoryCommonOperation="CategoryCommonOperation",l.CategoryHelpCenter="CategoryHelpCenter",l.CategoryBW="CategoryBW",l.CategoryForm="CategoryForm",l.CategoryNavigation="CategoryNavigation",l.CategoryChart="CategoryChart",l.CategoryMultimedia="CategoryMultimedia",l.CategoryShape="CategoryShape",l.CategoryDelete="CategoryDelete",l.CategorySelected="CategorySelected",l.CategoryEdit="CategoryEdit",l.CategoryPage="CategoryPage",l.CategoryCanvas="CategoryCanvas",l.CategoryIntEvents="CategoryIntEvents",l.CategoryLayer="CategoryLayer",l.CategoryAI="CategoryAI",l.AIGC="AIGC",l.AIQ="AIQ",l.AI3Help="AI3Help",l.AIInDev="AIInDev",l.Save="Save",l.ViewFileInfo="ViewFileInfo",l.ViewVersionRecord="ViewVersionRecord",l.ToggleViewShare="ToggleViewShare",l.ProjectRename="ProjectRename",l.CreateNewVersion="CreateNewVersion",l.OpenColorPicker="OpenColorPicker",l.ZoomIn="ZoomIn",l.ZoomOut="ZoomOut",l.ZoomToHundred="ZoomToHundred",l.ZoomSelection="ZoomSelection",l.FitCanvas="FitCanvas",l.FullScreenMode="FullScreenMode",l.QuickCreateCanvas="QuickCreateCanvas",l.QuickCreateRect="QuickCreateRect",l.QuickCreateOval="QuickCreateOval",l.QuickCreateLine="QuickCreateLine",l.QuickCreateLr="QuickCreateLr",l.QuickCreateImage="QuickCreateImage",l.QuickCreateVector="QuickCreateVector",l.QuickCreateRichText="QuickCreateRichText",l.QuickCreateElbow="QuickCreateElbow",l.QuickCreateSticky="QuickCreateSticky",l.QuickCreateTear="QuickCreateTear",l.QuickCreateComment="QuickCreateComment",l.Undo="Undo",l.Redo="Redo",l.ToggleExport="ToggleExport",l.ComSelectAll="ComSelectAll",l.ComSelectPart="ComSelectPart",l.GlobalFindAndReplace="GlobalFindAndReplace",l.GlobalFind="GlobalFind",l.GlobalReplace="GlobalReplace",l.Preview="Preview",l.Group="Group",l.UnGroup="UnGroup",l.AddComponent="AddComponent",l.Delete="Delete",l.Cut="Cut",l.Copy="Copy",l.Past="Past",l.PastProperties="PastProperties",l.CreateMaster="CreateMaster",l.CreatePanel="CreatePanel",l.TogglePanelTransState="TogglePanelTransState",l.TogglePageTransState="TogglePageTransState",l.LinkDisplayChange="LinkDisplayChange",l.ToggleSelectMode="ToggleSelectMode",l.ToggleEyedropper="ToggleEyedropper",l.ToggleDynamicSpacing="ToggleDynamicSpacing",l.ToggleHandTool="ToggleHandTool",l.Alignment="Alignment",l.AlignmentTop="AlignmentTop",l.AlignmentMiddle="AlignmentMiddle",l.AlignmentBottom="AlignmentBottom",l.AlignmentLeft="AlignmentLeft",l.AlignmentCenter="AlignmentCenter",l.AlignmentRight="AlignmentRight",l.AlignmentHorizontal="AlignmentHorizontal",l.AlignmentVertical="AlignmentVertical",l.SearchMktSource="SearchMktSource",l.ToggleTheme="ToggleTheme",l.ToggleRuler="ToggleRuler",l.ToggleReferenceLine="ToggleReferenceLine",l.ToggleSticky="ToggleSticky",l.ToggleComment="ToggleComment",l.ToggleMultiplayerMouse="ToggleMultiplayerMouse",l.ToggleLeftSide="ToggleLeftSide",l.ToggleRightSide="ToggleRightSide",l.ToggleAlignLine="ToggleAlignLine",l.NewFeature="NewFeature",l.ToggleShortcutKey="ToggleShortcutKey",l.OpenHelperCenter="OpenHelperCenter",l.Feedback="Feedback",l.OnlineSupport="OnlineSupport",l.CRichText="C-"+o.x.WRichText,l.CWRect="C-"+o.x.WRect,l.CWOval="C-"+o.x.WOval,l.CWImage="C-"+o.x.WImage,l.CWButton="C-"+o.x.WButton,l.CWPolygon="C-"+o.x.WPolygon,l.CWStar="C-"+o.x.WStar,l.CWTriangle="C-"+o.x.WTriangle,l.CWArrow="C-"+o.x.WArrow,l.CWLine="C-"+o.x.WLine,l.CWPlaceholder="C-"+o.x.WPlaceholder,l.CWTable="C-"+o.x.WTable,l.CWSticky="C-"+o.x.WSticky,l.CWTear="C-"+o.x.WTear,l.CWIphoneXSB="C-"+o.x.WIphoneXSB,l.CDynCpts="CDynCpts",l.CScrollPanel="CScrollPanel",l.CWLr="C-"+o.x.WLR,l.CComment="CComment",l.CElbow="CElbow",l.CVector="CVector",l.CCustomComponent="CCustomComponent",l.CWebPage="CWebPage",l.CWPicture="C-Picture",l.CWIcon="C-"+o.x.WIcon,l.CLargeScreenPage="CLargeScreenPage",l.CWMTextInput="C-"+o.x.WMTextInput,l.CWMTextArea="C-"+o.x.WMTextArea,l.CWMSelect="C-"+o.x.WMSelect,l.CWMFileInput="C-"+o.x.WMFileInput,l.CWSelectionControlRadio="C-"+o.x.WSelectionControlRadio,l.CWSelectionControlCheckbox="C-"+o.x.WSelectionControlCheckbox,l.CWAndroidSwitch="C-"+o.x.WAndroidSwitch,l.CWIosSwitch="C-"+o.x.WIOSSwitch,l.CWSlider="C-"+o.x.WSlider,l.CWDigitalStepper="C-"+o.x.WDigitalStepper,l.CWDropMenu="C-"+o.x.WDropMenu,l.CDynamicDropMenu="CDynamicDropMenu",l.CWNavigationMenu="C-"+o.x.WNavigationMenu,l.CWNavigationMenuV="C-"+o.x.WNavigationMenuV,l.CWNavigationMenuH="C-"+o.x.WNavigationMenuH,l.CWMobileTabBars="C-"+o.x.WMobileTabBars,l.CWSegmentedControl="C-"+o.x.WSegmentedControl,l.CWCollapse="C-"+o.x.WCollapse,l.CWTabs="C-"+o.x.WTabs,l.CWPaginationMobile="C-"+o.x.WPaginationMobile,l.CWPaginationWeb="C-"+o.x.WPaginationWeb,l.CreateChart="CreateChart",l.CWCarousel="C-"+o.x.WCarousel,l.CWWebpage="C-"+o.x.WWebpage,l.CWVideo="C-"+o.x.WVideo,l.CWAudio="C-"+o.x.WAudio,l.CWQRCode="C-"+o.x.WQRCode,l.CWMapView="C-"+o.x.WMapView,l.CWMTooltip="C-"+o.x.WMTooltip,l.DWRichText="D-"+o.x.WRichText,l.DWRect="D-"+o.x.WRect,l.DWOval="D-"+o.x.WOval,l.DWLine="D-"+o.x.WLine,l.DWButton="D-"+o.x.WButton,l.DWArrow="D-"+o.x.WArrow,l.DWPolygon="D-"+o.x.WPolygon,l.DWStar="D-"+o.x.WStar,l.DWTriangle="D-"+o.x.WTriangle,l.DWCarousel="D-"+o.x.WCarousel,l.DWWebpage="D-"+o.x.WWebpage,l.DWVideo="D-"+o.x.WVideo,l.DWAudio="D-"+o.x.WAudio,l.DWQRCode="D-"+o.x.WQRCode,l.DWMapView="D-"+o.x.WMapView,l.DWMTooltip="D-"+o.x.WMTooltip,l.DWImage="D-"+o.x.WImage,l.DWLr="D-"+o.x.WLR,l.DWPlaceholder="D-"+o.x.WPlaceholder,l.DWTable="D-"+o.x.WTable,l.DWSticker="D-"+o.x.WSticky,l.DWTear="D-"+o.x.WTear,l.DWIphoneSB="D-"+o.x.WIphoneXSB,l.DWMTextInput="D-"+o.x.WMTextInput,l.DWMTextArea="D-"+o.x.WMTextArea,l.DWMSelect="D-"+o.x.WMSelect,l.DWMFileInput="D-"+o.x.WMFileInput,l.DWSelectionControlRadio="D-"+o.x.WSelectionControlRadio,l.DWSelectionControlCheckbox="D-"+o.x.WSelectionControlCheckbox,l.DWAndroidSwitch="D-"+o.x.WAndroidSwitch,l.DWIosSwitch="D-"+o.x.WIOSSwitch,l.DWSlider="D-"+o.x.WSlider,l.DWDigitalStepper="D-"+o.x.WDigitalStepper,l.DWDropMenu="D-"+o.x.WDropMenu,l.DWBasket="DWBasket",l.DWNavigationMenu="D-"+o.x.WNavigationMenu,l.DWNavigationMenuV="D-"+o.x.WNavigationMenuV,l.DWNavigationMenuH="D-"+o.x.WNavigationMenuH,l.DWMobileTabBars="D-"+o.x.WMobileTabBars,l.DWSegmentedControl="D-"+o.x.WSegmentedControl,l.DWCollapse="D-"+o.x.WCollapse,l.DWTabs="D-"+o.x.WTabs,l.DWPaginationMobile="D-"+o.x.WPaginationMobile,l.DWPaginationWeb="D-"+o.x.WPaginationWeb,l.DWChart="DWChart",l.DWidgets="DWidgets",l.SWRichText="S-"+o.x.WRichText,l.SWRect="S-"+o.x.WRect,l.SWOval="S-"+o.x.WOval,l.SWLine="S-"+o.x.WLine,l.SWButton="S-"+o.x.WButton,l.SWArrow="S-"+o.x.WArrow,l.SWPolygon="S-"+o.x.WPolygon,l.SWStar="S-"+o.x.WStar,l.SWTriangle="S-"+o.x.WTriangle,l.SWCarousel="S-"+o.x.WCarousel,l.SWWebpage="S-"+o.x.WWebpage,l.SWVideo="S-"+o.x.WVideo,l.SWAudio="S-"+o.x.WAudio,l.SWQRCode="S-"+o.x.WQRCode,l.SWMapView="S-"+o.x.WMapView,l.SWMTooltip="S-"+o.x.WMTooltip,l.SWImage="S-"+o.x.WImage,l.SWLr="S-"+o.x.WLR,l.SWPlaceholder="S-"+o.x.WPlaceholder,l.SWTable="S-"+o.x.WTable,l.SWSticker="S-"+o.x.WSticky,l.SWTear="S-"+o.x.WTear,l.SWIphoneSB="S-"+o.x.WIphoneXSB,l.SWMTextInput="S-"+o.x.WMTextInput,l.SWMTextArea="S-"+o.x.WMTextArea,l.SWMSelect="S-"+o.x.WMSelect,l.SWMFileInput="S-"+o.x.WMFileInput,l.SWSelectionControlRadio="S-"+o.x.WSelectionControlRadio,l.SWSelectionControlCheckbox="S-"+o.x.WSelectionControlCheckbox,l.SWAndroidSwitch="S-"+o.x.WAndroidSwitch,l.SWIosSwitch="S-"+o.x.WIOSSwitch,l.SWSlider="S-"+o.x.WSlider,l.SWDigitalStepper="S-"+o.x.WDigitalStepper,l.SWDropMenu="S-"+o.x.WDropMenu,l.SWBasket="SWBasket",l.SWNavigationMenu="S-"+o.x.WNavigationMenu,l.SWNavigationMenuV="S-"+o.x.WNavigationMenuV,l.SWNavigationMenuH="S-"+o.x.WNavigationMenuH,l.SWMobileTabBars="S-"+o.x.WMobileTabBars,l.SWSegmentedControl="S-"+o.x.WSegmentedControl,l.SWCollapse="S-"+o.x.WCollapse,l.SWTabs="S-"+o.x.WTabs,l.SWPaginationMobile="S-"+o.x.WPaginationMobile,l.SWPaginationWeb="S-"+o.x.WPaginationWeb,l.SWChart="SWChart",l.SWidgets="SWidgets",l.EWRichText="E-"+o.x.WRichText,l.EWRect="E-"+o.x.WRect,l.EWOval="E-"+o.x.WOval,l.EWLine="E-"+o.x.WLine,l.EWButton="E-"+o.x.WButton,l.EWArrow="E-"+o.x.WArrow,l.EWPolygon="E-"+o.x.WPolygon,l.EWStar="E-"+o.x.WStar,l.EWTriangle="E-"+o.x.WTriangle,l.EWCarousel="E-"+o.x.WCarousel,l.EWWebpage="E-"+o.x.WWebpage,l.EWVideo="E-"+o.x.WVideo,l.EWAudio="E-"+o.x.WAudio,l.EWQRCode="E-"+o.x.WQRCode,l.EWMapView="E-"+o.x.WMapView,l.EWMTooltip="E-"+o.x.WMTooltip,l.EWImage="E-"+o.x.WImage,l.EWLr="E-"+o.x.WLR,l.EWPlaceholder="E-"+o.x.WPlaceholder,l.EWTable="E-"+o.x.WTable,l.EWSticker="E-"+o.x.WSticky,l.EWTear="E-"+o.x.WTear,l.EWIphoneSB="E-"+o.x.WIphoneXSB,l.EWMTextInput="E-"+o.x.WMTextInput,l.EWMTextArea="E-"+o.x.WMTextArea,l.EWMSelect="E-"+o.x.WMSelect,l.EWMFileInput="E-"+o.x.WMFileInput,l.EWSelectionControlRadio="E-"+o.x.WSelectionControlRadio,l.EWSelectionControlCheckbox="E-"+o.x.WSelectionControlCheckbox,l.EWAndroidSWitch="E-"+o.x.WAndroidSwitch,l.EWIosSWitch="E-"+o.x.WIOSSwitch,l.EWSlider="E-"+o.x.WSlider,l.EWDigitalStepper="E-"+o.x.WDigitalStepper,l.EWDropMenu="E-"+o.x.WDropMenu,l.EWBasket="EWBasket",l.EWNavigationMenu="E-"+o.x.WNavigationMenu,l.EWNavigationMenuV="E-"+o.x.WNavigationMenuV,l.EWNavigationMenuH="E-"+o.x.WNavigationMenuH,l.EWMobileTabBars="E-"+o.x.WMobileTabBars,l.EWSegmentedControl="E-"+o.x.WSegmentedControl,l.EWCollapse="E-"+o.x.WCollapse,l.EWTabs="E-"+o.x.WTabs,l.EWPaginationMobile="E-"+o.x.WPaginationMobile,l.EWPaginationWeb="E-"+o.x.WPaginationWeb,l.EWElbow="E-"+o.x.WElbow,l.EWChart="E-"+o.x.WChart,l.EWidgets="EWidgets",l.CPage="CPage",l.EPage="EPage",l.EPageLayout="EPageLayout",l.CPageCopy="CPageCopy",l.CopyPage="CopyPage",l.CutPage="CutPage",l.PastePage="PastePage",l.ToggleClipContent="ToggleClipContent",l.CCanvas="CCanvas",l.CSubCanvas="CSubCanvas",l.CDirectory="CDirectory",l.ECanvas="ECanvas",l.DCanvas="DCanvas",l.CCanvasCopy="CCanvasCopy",l.MoveCanvas="MoveCanvas",l.CanvasViewRecycle="CanvasViewRecycle",l.CollapseCanvas="CollapseCanvas",l.ExpandCanvas="ExpandCanvas",l.Other="Other",l.ToggleLayerLock="ToggleLayerLock",l.ToggleLayerVisible="ToggleLayerVisible",l.ToggleLayerExpand="ToggleLayerExpand",l.OpenEventsPanel="OpenEventsPanel",l.OUnableRecognize="OUnableRecognize",l.OFreeChat="OFreeChat",l.OFreeChatQuestion="OFreeChatQuestion",l}(g||{})},62026:(Et,ke,e)=>{"use strict";e.d(ke,{Yt:()=>A,a0:()=>k,qW:()=>T});const m=function(){const p={getItem(){return null},setItem(){},removeItem(){},clear(){}};return function(){try{return window.localStorage.setItem("localStorage",String(1)),window.localStorage.removeItem("localStorage"),!0}catch(x){return!1}}()?window.localStorage:p}(),g=p=>m.getItem(p),l=(p,r)=>m.setItem(p,r),C=p=>m.removeItem(p),T={String:1,Number:2,Boolean:3,Object:4,Array:5},A=(p,r,x)=>{const f=m.getItem(p);if(f===null)return r;switch(x){case T.String:return f;case T.Number:return Number(f);case T.Boolean:return JSON.parse(f);case T.Object:return JSON.parse(f);case T.Array:return JSON.parse(f)}},k=(p,r,x)=>{switch(x){case T.String:return m.setItem(p,String(r));case T.Number:return m.setItem(p,String(Number(r)));case T.Boolean:return m.setItem(p,JSON.stringify(r));case T.Object:return m.setItem(p,JSON.stringify(r));case T.Array:return m.setItem(p,JSON.stringify(r))}}},27935:(Et,ke,e)=>{"use strict";e.d(ke,{Hy:()=>C,SR:()=>m});var o=e(4114);let m=function(T){return T.AIAssistant="AIAssistant",T.Page="Page",T.Flow="flow",T.Mind="mind",T.Table="table",T.Chart="chart",T.AutoFill="autofill",T.Semantic="semantic",T.PageV9="PageV9",T.Chat="Chat",T}({}),g=function(T){return T.page="page",T.component="component",T.other="other",T.semantic="semantic ",T}({});const l=(0,o.R)(()=>[{label:I18N.ChatGPT.ai_prototype,title:I18N.ChatGPT.ai_prototype_title,type:m.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:g.page,icon:"chatGPT/ai-component-page",desc:I18N.ChatGPT.ai_prototype_desc,className:"ai-page",componentTitle:I18N.ChatGPT.ai_prototype_component_title},{label:I18N.ArtBoard.flow,title:I18N.ChatGPT.ai_flow_title,type:m.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:g.component,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:m.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:g.component,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:m.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:g.component,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:m.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:g.component,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:m.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:g.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:m.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:g.semantic,icon:"chatGPT/ai-component-autofill",desc:I18N.ChatGPT.ai_magicFill_desc,className:"ai-magic-fill"}]),C={[m.Page]:"\u751F\u6210APP\u9875\u9762",[m.Flow]:"\u751F\u6210\u6D41\u7A0B\u56FE",[m.Mind]:"\u751F\u6210\u601D\u7EF4\u5BFC\u56FE",[m.Table]:"\u751F\u6210\u667A\u80FD\u8868\u683C",[m.Chart]:"\u751F\u6210\u56FE\u8868",[m.AutoFill]:"\u667A\u80FD\u586B\u5145",[m.Semantic]:"\u8BED\u4E49\u5316\u6307\u4EE4",[m.AIAssistant]:"AI\u52A9\u624B"}},79461:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>S});var o=e(51044),m=e(60185);const g=_=>("0"+_.toString(16)).slice(-2),l=_=>{let{r:y,g:a,b:$}=_;const{a:ce}=_;return y=Math.floor(y*ce),a=Math.floor(a*ce),$=Math.floor($*ce),"#"+g(y)+g(a)+g($)},C=()=>{const _="abcdefghijklmnopqrstuvwxyz",y=Array.from({length:8},()=>_[Math.floor(Math.random()*_.length)]).join("");return new Date().getTime()+y};var T=e(19418);const A={canvasContainer:{position:"fixed",top:"0px",left:"0px",width:"100vw",height:"100vh",zIndex:999,display:"none",cursor:"none"},floatContainer:{position:"fixed",top:"0px",left:"0px",width:"165px",height:"195px",borderRadius:"5px",overflow:"hidden",display:"flex",visibility:"hidden",flexWrap:"wrap",zIndex:1e3},colorItem:{width:"15px",height:"15px",border:"solid 1px rgba(0,0,0,0.2)",boxSizing:"border-box"},text:{width:"165px",height:"30px",color:"#000000",textAlign:"center",lineHeight:"30px",backgroundColor:"rgba(0,0,0,0.1)",fontWeight:"bold"}},k=11,r=k*10/2,x=Math.floor(k/3),f={COLOR_ITEM_SIZE:11,GRID_SIZE:12,get MAGNIFIER_SIZE(){return this.COLOR_ITEM_SIZE*this.GRID_SIZE},get ITEM_SIZE(){return this.MAGNIFIER_SIZE/this.COLOR_ITEM_SIZE},get CENTER_INDEX(){return Math.floor(this.COLOR_ITEM_SIZE/2)}};var u=e(21676);const b=u.Ay.div.withConfig({displayName:"styles__StyledMagnifier",componentId:"sc-1w57q74-0"})([".float-container{position:fixed;top:0;left:0;width:110px;height:110px;background-color:black;border-radius:50%;box-shadow:0 0 0 1px black,0 0 0 3px white;overflow:hidden;display:flex;visibility:hidden;flex-wrap:wrap;z-index:1000;.text{width:62px;height:16px;position:absolute;left:50%;bottom:12px;border-radius:10px;transform:translateX(-50%);color:#fff;text-align:center;line-height:16px;background-color:rgba(56,56,56,1);font-weight:bold;text-transform:uppercase;}.md-magnifier-color-item{width:10px;height:10px;border:solid 1px #D2D2D2;box-sizing:border-box;}}"]);var h=e(57464);const E=_=>{let{elementId:y,style:a,color:$,onMouseDown:ce}=_;const de=(0,o.useRef)(null),fe=f.CENTER_INDEX,se=Array.from({length:f.COLOR_ITEM_SIZE*f.COLOR_ITEM_SIZE},(J,ve)=>{const D=Math.floor(ve/f.COLOR_ITEM_SIZE),R=ve%f.COLOR_ITEM_SIZE,V=D===fe&&R===fe;return(0,h.jsx)("div",{id:y+"-"+(ve+1),className:"md-magnifier-color-item",style:{borderColor:V?"#000000":A.colorItem.borderColor}},ve)});return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(b,{children:(0,h.jsxs)("div",{ref:de,className:"float-container",style:{...a,gridTemplateColumns:"repeat("+f.COLOR_ITEM_SIZE+", 1fr)"},children:[se,(0,h.jsx)("div",{id:y+"-text",className:"text",style:{color:"#fff"},children:$})]})}),(0,h.jsx)(T.A,{target:document,onMouseDown:(0,T.t)(ce,{capture:!0})})]})},S=_=>{let{open:y,event:a,onChange:$,onClose:ce,handleOpenDownloadPluginModal:de}=_,fe="";const se=(0,o.useRef)(null),J=(0,o.useRef)(null),ve=(0,o.useRef)(""),[D,R]=(0,o.useState)({visibility:"hidden"}),[V,O]=(0,o.useState)(null),Ce=(0,o.useRef)(!1),ae=(Ve,Ne)=>{if(J.current){const{data:We}=J.current.getImageData(Ve-x,Ne-x,k,k),ze=[];for(let ft=0;ft<We.length;ft+=4)ze.push([We[ft],We[ft+1],We[ft+2],We[ft+3]]);return ze}},q=(Ve,Ne)=>{if(Ve&&J.current){const We=Ve.pageX*window.devicePixelRatio,ze=Ve.pageY*window.devicePixelRatio,ft=ae(We,ze);if(ft){R({visibility:Ne,transform:"translate("+(Ve.pageX-r)+"px, "+(Ve.pageY-r)+"px)"});const mt=Math.ceil(k/2),i=Math.ceil(k/2),gt=document.getElementById(ve.current+"-text");for(let Je=0,Pt=k*k;Je<Pt;Je++){const bt=document.getElementById(ve.current+"-"+(Je+1));if(bt){const[qt,pt,$t,go]=ft[Je],Co=l({r:qt,g:pt,b:$t,a:go/255}),Tt=Math.ceil((Je+1)/k),mo=(Je+1)%k;Tt===mt&&mo===i&>&&(gt.textContent=Co,fe=Co),bt.style.backgroundColor=Co}}}}},K=(0,o.useCallback)(Ve=>{Ve.ctrlKey&&Ve.preventDefault()},[]),xe=(0,o.useCallback)(Ve=>{q(Ve,"visible")},[q]),te=(0,o.useCallback)(()=>{if(Ce.current)return;const Ve=document.getElementById("md-color-picker-container");Ve&&document.body.removeChild(Ve),window.removeEventListener("mousemove",xe),O(null),R({visibility:"hidden"}),Ce.current=!0,ce()},[xe,ce]),H=(0,o.useCallback)(Ve=>{Ve.stopPropagation(),Ve.buttons===1&&$&&$(fe),te()},[$]),re=Ve=>{const Ne=new Image;Ne.onload=()=>{const We=document.createElement("canvas");We.width=Ne.width,We.height=Ne.height;const ze=We.getContext("2d");ze&&(ze.drawImage(Ne,0,0),se.current=We,J.current=ze,window.addEventListener("mousemove",xe))},Ne.src=Ve.payload},be=Ve=>{if(Ve.type==="mb-extend-send"){const Ne=Ve.data;re(Ne)}},Le=()=>{var Ve;if((Ve=window.chrome)!=null&&Ve.runtime&&window.mbRequestMessage){const Ne=window.localStorage.getItem("mb-assistant-for-chrome")||"";Ne?window.chrome.runtime.sendMessage(Ne,{msg:"captured"},We=>{if((We==null?void 0:We.message)==="ok"){re(We);return}We||(de==null||de(),te())}):window.mbRequestMessage({msg:"captured"})}else window.mbRequestMessage&&window.mbRequestMessage({msg:"captured"})};return(0,o.useEffect)(()=>{if(y){Ce.current=!1,ve.current=C();const Ve=document.createElement("div");Ve.id="color-picker-container",document.body.appendChild(Ve),O(Ve),window.addEventListener("mb-extend-send",be),window.addEventListener("wheel",K,{passive:!1});try{Le()}catch(Ne){console.error("[plugin error]",Ne)}q(a,"hidden")}return()=>{te(),window.removeEventListener("mb-extend-send",be),window.removeEventListener("wheel",K,{passive:!1})}},[y]),V?(0,m.createPortal)((0,h.jsx)(E,{elementId:ve.current,style:D,color:fe,onMouseDown:H,onMouseMove:xe}),V):null}},80452:(Et,ke,e)=>{"use strict";e.d(ke,{K:()=>m});var o=e(47124);const m={["v8Cmd/"+o.c.Save]:[18,18,'<path fill="#000" d="m15.33 6.57-3.91-3.92c-.2-.18-.45-.29-.72-.3H3.46a1.11 1.11 0 0 0-1.11 1.11v11.09a1.1 1.1 0 0 0 .33.78c.21.2.5.32.78.32h11.09c.29 0 .57-.12.78-.32.2-.21.32-.5.32-.79v-7.2c0-.29-.12-.57-.32-.77Zm-5.87-.94h.03-.03ZM8.34 3.6V5H5.81V3.61h2.53Zm4.88 6.28a.41.41 0 0 0-.28-.12c.1.01.19.05.26.12v.05c0 .05.02-.03 0-.05h.02Zm.13.26v.08l-.03-.08h.03Zm-1.1 2.47v1.78H5.82v-3.54h6.45v1.76Zm2.18 1.8h-.91v-4.19a.63.63 0 0 0-.22-.46.62.62 0 0 0-.45-.18h-7.7a.63.63 0 0 0-.44.18.63.63 0 0 0-.19.44v4.17h-.9V3.6h.9v2.02c0 .16.07.33.19.45.11.11.27.18.44.18H9c.17 0 .33-.07.45-.18a.65.65 0 0 0 .19-.45V3.6h.97l3.8 3.8.02 7.02Zm.83.83a.98.98 0 0 1-.53.25c.2-.03.38-.12.52-.25l.14-.2-.16.17.03.03Zm.27-.68v.14-.14Z"/>'],["v8Cmd/"+o.c.CreateNewVersion]:[18,18,'<path fill="#000" d="m15.33 6.57-3.91-3.92c-.2-.18-.45-.29-.72-.3H3.46a1.11 1.11 0 0 0-1.11 1.11v11.09a1.1 1.1 0 0 0 .33.78c.21.2.5.32.78.32h11.09c.29 0 .57-.12.78-.32.2-.21.32-.5.32-.79v-7.2c0-.29-.12-.57-.32-.77Zm-5.87-.94h.03-.03ZM8.34 3.6V5H5.81V3.61h2.53Zm4.88 6.28a.41.41 0 0 0-.28-.12c.1.01.19.05.26.12v.05c0 .05.02-.03 0-.05h.02Zm.13.26v.08l-.03-.08h.03Zm-1.1 2.47v1.78H5.82v-3.54h6.45v1.76Zm2.18 1.8h-.91v-4.19a.63.63 0 0 0-.22-.46.62.62 0 0 0-.45-.18h-7.7a.63.63 0 0 0-.44.18.63.63 0 0 0-.19.44v4.17h-.9V3.6h.9v2.02c0 .16.07.33.19.45.11.11.27.18.44.18H9c.17 0 .33-.07.45-.18a.65.65 0 0 0 .19-.45V3.6h.97l3.8 3.8.02 7.02Zm.83.83a.98.98 0 0 1-.53.25c.2-.03.38-.12.52-.25l.14-.2-.16.17.03.03Zm.27-.68v.14-.14Z"/>'],["v8Cmd/"+o.c.ViewFileInfo]:[18,18,'<g clip-path="url(#a)" fill="#000" ><path d="M9 1.85a7.15 7.15 0 1 0 0 14.3 7.15 7.15 0 0 0 0-14.3Zm0 13a5.83 5.83 0 1 1 5.83-5.83A5.83 5.83 0 0 1 9 14.83v.02Z"/><path d="M9 8.1a.86.86 0 0 0-.86.86v3.07a.86.86 0 0 0 .86.86.85.85 0 0 0 .86-.86V8.96A.85.85 0 0 0 9 8.1ZM9 6.82A.86.86 0 1 0 9 5.1a.86.86 0 0 0 0 1.72Z"/></g><defs><clipPath id="a"><path fill="#fff" transform="translate(1.85 1.85)" d="M0 0h14.3v14.3H0z"/></clipPath></defs>'],["v8Cmd/"+o.c.ProjectRename]:[18,18,'<g fill="#000" clip-path="url(#clip0_3164_596)"><path d="M3.63 3.63v10.74h10.74V9.6c0-.26.1-.46.33-.58.41-.24.95.06.95.54v4.95c0 .57-.46 1.08-1.03 1.13-.2.02-.41 0-.62 0H3.52a1.16 1.16 0 0 1-1.17-1.18V3.5c0-.58.45-1.07 1.03-1.13.2-.02.42 0 .62 0h4.47a.64.64 0 0 1 .57.92.61.61 0 0 1-.58.35H3.63Z"/><path d="m9.52 5.41-.15-.14a.59.59 0 0 1 .02-.84c.22-.22.6-.21.82.01l.13.15.05-.04 1.6-1.6a1.16 1.16 0 0 1 1.63 0l1.44 1.44a1.14 1.14 0 0 1 0 1.6l-1.6 1.6a.35.35 0 0 1-.05.04l.16.17a.59.59 0 0 1-.83.83l-.16-.17a15492.69 15492.69 0 0 1-4.03 4.05.6.6 0 0 1-.45.19H5.9a.59.59 0 0 1-.6-.6V9.9a.6.6 0 0 1 .18-.45L7.3 7.63 9.5 5.45a.3.3 0 0 1 .03-.04Zm-3.05 6.1.05.01h1.31c.03 0 .06-.02.08-.04l3.8-3.8.03-.03h-.01l-1.39-1.4-.36.37a9194.77 9194.77 0 0 1-3.5 3.51V11.52Zm7.72-6.3L12.8 3.8l-1.6 1.6 1.39 1.4 1.6-1.6Z"/></g><defs><clipPath id="clip0_3164_596"><path fill="#fff" d="M2.35 2.35h13.3v13.3H2.35z"/></clipPath></defs>'],["v8Cmd/"+o.c.ViewVersionRecord]:[18,18,'<g fill="#000" clip-path="url(#clip0_3164_636)"><path d="m4.17 5.36.08.06.68.53.05.04c.06.05.1.1.07.19-.02.07-.07.1-.14.12l-.31.08-2.23.54-.04.01c-.14.04-.23-.06-.23-.18v-.78l-.01-1.84c0-.09.01-.16.1-.2.08-.05.15 0 .21.05l.64.5.08.05.06-.08a7.13 7.13 0 0 1 6.27-2.64A7.2 7.2 0 1 1 2 11.46c-.03-.1.02-.17.11-.2l.72-.25.18-.06c.14-.05.21-.01.26.12a5.84 5.84 0 0 0 5.64 3.8 5.82 5.82 0 0 0 3.88-1.59 5.76 5.76 0 0 0 1.84-4.75 5.77 5.77 0 0 0-1.53-3.5 5.79 5.79 0 0 0-4.69-1.9c-1.7.13-3.1.84-4.19 2.15l-.06.08Z"/><path d="M9.7 7.45V9.73c0 .12-.04.2-.14.28a263.87 263.87 0 0 0-2.7 1.97.38.38 0 0 1-.21.09.3.3 0 0 1-.26-.12l-.49-.67c-.1-.14-.06-.32.09-.43l1.11-.8c.37-.28.74-.54 1.11-.8.06-.05.07-.09.07-.15V5.12a.3.3 0 0 1 .3-.28h.83a.3.3 0 0 1 .3.28v2.33Z"/></g><defs><clipPath id="clip0_3164_636"><path fill="#fff" d="M2 1.78h14v14.44H2z"/></clipPath></defs>'],["v8Cmd/"+o.c.ToggleViewShare]:[18,18,'<path fill="#000" d="m8.5 12.87-2.1-1.34c-.64.58-1.38.83-2.23.72a2.65 2.65 0 0 1-1.48-4.57 2.62 2.62 0 0 1 1.98-.73c.76.04 1.38.36 1.9.93l3.1-1.6c-.21-1.03 0-1.97.67-2.8a3.27 3.27 0 0 1 5.61 3.2 3.26 3.26 0 0 1-3.8 2.06 3.25 3.25 0 0 1-1.99-1.33L7.13 8.97c.13.5.1 1.03-.07 1.53L9.1 11.8a2.27 2.27 0 0 1 1.97-.61 2.26 2.26 0 0 1 1.5 3.53 2.29 2.29 0 0 1-4.08-1.86Zm4.37-5.27a2.04 2.04 0 1 0 0-4.08 2.05 2.05 0 1 0 0 4.08Zm-8.34 3.45a1.45 1.45 0 0 0 1.45-1.43 1.45 1.45 0 0 0-2.9-.01c0 .79.65 1.44 1.45 1.44Zm6.18 3.42c.57 0 1.04-.46 1.04-1.03a1.05 1.05 0 1 0-1.79.73 1.05 1.05 0 0 0 .74.3Z"/>'],["v8Cmd/"+o.c.CategoryCommonOperation]:[18,18,'<g fill="#000" clip-path="url(#clip0_3164_753)"><path d="m15.69 10.1-4.3-7.81a.83.83 0 0 0-1.15-.32.83.83 0 0 0-.3.32L5.62 10.1a.82.82 0 0 0 .73 1.23h8.6a.83.83 0 0 0 .73-1.23Zm-8.45-.12 3.42-6.22 3.42 6.22H7.24Z"/><path d="M11.45 12.28a.67.67 0 0 0-.9.34A3.65 3.65 0 1 1 5.77 7.8a.66.66 0 0 0 .37-.88.67.67 0 0 0-.84-.32 4.99 4.99 0 1 0 6.5 6.6.65.65 0 0 0-.34-.92Z"/></g><defs><clipPath id="clip0_3164_753"><path fill="#fff" d="M2.2 1.85H15.8v14.3H2.2z"/></clipPath></defs>'],["v8Cmd/"+o.c.Undo]:[18,18,'<g clip-path="url(#clip0_3158_857)"><path fill="#000" d="M13.88 6.63a4.52 4.52 0 0 0-3.34-1.48H5.1L6.18 4a.79.79 0 0 0 0-1 .65.65 0 0 0-1 0L2.93 5.39a1 1 0 0 0-.15.24.87.87 0 0 0 0 .57 1 1 0 0 0 .15.24l2.29 2.44a.68.68 0 0 0 .49.23c.1 0 .2-.02.29-.06a.57.57 0 0 0 .22-.16.61.61 0 0 0 .15-.24c.02-.1.02-.2 0-.29a.92.92 0 0 0 0-.28.78.78 0 0 0-.16-.24L5 6.62h5.5a3.22 3.22 0 0 1 2.38 1 3.75 3.75 0 0 1-1.05 5.87c-.4.2-.85.3-1.29.31H4.05a.64.64 0 0 0-.47.21.73.73 0 0 0-.21.52c0 .2.08.39.21.53a.66.66 0 0 0 .47.21h6.49a4.56 4.56 0 0 0 3.34-1.48 5.27 5.27 0 0 0 0-7.16Z"/></g><defs><clipPath id="clip0_3158_857"><path fill="#fff" d="M2.73 2.73h12.54v12.54H2.73z"/></clipPath></defs>'],["v8Cmd/"+o.c.Redo]:[18,18,'<g clip-path="url(#clip0_3164_711)"><path fill="#000" d="M4.12 6.63a4.52 4.52 0 0 1 3.34-1.48h5.44L11.82 4a.79.79 0 0 1 0-1 .65.65 0 0 1 1 0l2.25 2.39a1 1 0 0 1 .15.24.87.87 0 0 1 0 .57 1 1 0 0 1-.15.24l-2.29 2.44a.68.68 0 0 1-.49.23c-.1 0-.2-.02-.29-.06a.57.57 0 0 1-.22-.16.61.61 0 0 1-.15-.24.71.71 0 0 1 0-.29.92.92 0 0 1 0-.28c.04-.09.1-.17.16-.24L13 6.62H7.5a3.22 3.22 0 0 0-2.38 1 3.75 3.75 0 0 0 1.05 5.87c.4.2.85.3 1.29.31h6.49a.64.64 0 0 1 .47.21.73.73 0 0 1 .21.52c0 .2-.08.39-.21.53a.66.66 0 0 1-.47.21H7.46a4.56 4.56 0 0 1-3.34-1.48 5.27 5.27 0 0 1 0-7.16Z"/></g><defs><clipPath id="clip0_3164_711"><path fill="#fff" d="M2.73 2.73h12.54v12.54H2.73z"/></clipPath></defs>'],["v8Cmd/"+o.c.Cut]:[18,18,'<path fill="#000" d="m9.77 7.58.59.85a.16.16 0 0 0 .27 0l3.5-5.04a.61.61 0 0 0 .12-.5.67.67 0 0 0-.27-.42.62.62 0 0 0-.5-.12.68.68 0 0 0-.43.28L9.73 7.35a.16.16 0 0 0 .04.23Z"/><path fill="#000" d="M15.7 11.83a2.7 2.7 0 0 0-4.63-.47L4.95 2.62a.68.68 0 0 0-.69-.27.62.62 0 0 0-.24.11.68.68 0 0 0-.28.43.62.62 0 0 0 .12.5l4.33 6.18-1.26 1.78a2.71 2.71 0 1 0 .53 1.57L9 10.72l1.54 2.2a2.7 2.7 0 1 0 5.17-1.1Zm-9.57 1.25a1.37 1.37 0 0 1-2.16 1 1.37 1.37 0 0 1-.5-1.4c.03-.17.11-.34.22-.48a1.31 1.31 0 0 1 1.85-.35c.2.14.36.32.47.54.1.22.14.46.12.7Zm7.91.99a1.37 1.37 0 0 1-2.1-.83 1.35 1.35 0 0 1 .53-1.4c.19-.14.41-.23.65-.26h.13c.2 0 .4.04.58.13a1.3 1.3 0 0 1 .79 1.12 1.35 1.35 0 0 1-.58 1.24Z"/>'],["v8Cmd/"+o.c.Copy]:[18,18,'<g fill="#000" clip-path="url(#clip0_3164_510)"><path d="M7.73 10.63h1.69v1.69a.6.6 0 0 0 .62.62c.16 0 .32-.07.44-.18a.65.65 0 0 0 .18-.44v-1.7h1.69a.61.61 0 0 0 .44-.18.58.58 0 0 0 .18-.43.62.62 0 0 0-.62-.56h-1.7V7.73a.6.6 0 0 0-.18-.44.58.58 0 0 0-.43-.18.62.62 0 0 0-.58.38.6.6 0 0 0-.04.24v1.69h-1.7a.61.61 0 0 0-.61.62.58.58 0 0 0 .62.59Z"/><path d="M15.47 4.75c-.4-.4-.94-.64-1.5-.66a2.42 2.42 0 0 0-2.4-2.26H4.22a2.39 2.39 0 0 0-2.39 2.39v7.3c0 .61.24 1.2.65 1.64.4.43.94.7 1.51.75a2.25 2.25 0 0 0 2.25 2.25h7.6a2.25 2.25 0 0 0 2.24-2.25V6.34c.01-.6-.2-1.17-.62-1.6ZM5.23 6.34A1.06 1.06 0 0 1 6.3 5.28h7.6a1.06 1.06 0 0 1 1.04 1.06v7.59a1.06 1.06 0 0 1-1.05 1.06h-7.6a1.06 1.06 0 0 1-1.05-1.06v-7.6ZM3.06 4.23c0-.33.13-.63.35-.86.22-.22.52-.34.82-.35h7.31a1.21 1.21 0 0 1 1.2 1.07H6.27a2.25 2.25 0 0 0-2.25 2.25v6.37c-.25-.06-.49-.2-.67-.38-.19-.23-.3-.51-.3-.8v-7.3Z"/></g><defs><clipPath id="clip0_3164_510"><path fill="#fff" d="M1.88 1.83h14.25v14.35H1.88z"/></clipPath></defs>'],["v8Cmd/"+o.c.Past]:[18,18,'<mask id="path-1-outside-1_3164_553" width="15" height="15" x="1.07" y="1.07" fill="#000" maskUnits="userSpaceOnUse"><path fill="#fff" d="M1.07 1.07h15v15h-15z"/><path d="M13.74 14.94a.5.5 0 1 1 0 1h-1.98a.5.5 0 0 1 0-1h1.98Zm-3.96 0a.5.5 0 0 1 0 1H7.8a.5.5 0 0 1 0-1h1.98Zm2.29-12.87a1.98 1.98 0 0 1 1.98 1.98v.86h.32a1.55 1.55 0 0 1 1.55 1.4V6.6a.5.5 0 0 1-.98 0v-.15a.56.56 0 0 0-.57-.55h-.32v6.17a1.98 1.98 0 0 1-1.98 1.98h-6.3v.41a.55.55 0 0 0 .23.37l.07.05.08.05a.5.5 0 1 1-.55.82 1.56 1.56 0 0 1-.8-1.23l-.01-.48h-.74a1.98 1.98 0 0 1-1.98-1.98v-8a1.98 1.98 0 0 1 1.98-1.99h8.02Zm3.36 9.98a.5.5 0 0 1 .5.5v1.84c0 .07 0 .13-.02.2a.5.5 0 0 1-.98-.13.5.5 0 0 0 0-.07v-1.85a.5.5 0 0 1 .5-.5Zm-3.36-9H4.05a.99.99 0 0 0-.98.88v8.12a.99.99 0 0 0 .87 1H12.07a.99.99 0 0 0 .98-.88l.01-.11V4.05a.99.99 0 0 0-.88-.98l-.11-.01Zm3.36 5.03a.5.5 0 0 1 .5.5v1.98a.5.5 0 0 1-1 0V8.58a.5.5 0 0 1 .5-.5Zm-4.2-2.16a.6.6 0 0 1 .08.76l-.07.08-3.46 3.49a.6.6 0 0 1-.75.07l-.08-.07L4.97 8.3a.6.6 0 0 1 .75-.92l.08.07 1.56 1.54 3.04-3.07a.6.6 0 0 1 .84 0Z"/></mask><path fill="#000" d="M13.74 14.94a.5.5 0 1 1 0 1h-1.98a.5.5 0 0 1 0-1h1.98Zm-3.96 0a.5.5 0 0 1 0 1H7.8a.5.5 0 0 1 0-1h1.98Zm2.29-12.87a1.98 1.98 0 0 1 1.98 1.98v.86h.32a1.55 1.55 0 0 1 1.55 1.4V6.6a.5.5 0 0 1-.98 0v-.15a.56.56 0 0 0-.57-.55h-.32v6.17a1.98 1.98 0 0 1-1.98 1.98h-6.3v.41a.55.55 0 0 0 .23.37l.07.05.08.05a.5.5 0 1 1-.55.82 1.56 1.56 0 0 1-.8-1.23l-.01-.48h-.74a1.98 1.98 0 0 1-1.98-1.98v-8a1.98 1.98 0 0 1 1.98-1.99h8.02Zm3.36 9.98a.5.5 0 0 1 .5.5v1.84c0 .07 0 .13-.02.2a.5.5 0 0 1-.98-.13.5.5 0 0 0 0-.07v-1.85a.5.5 0 0 1 .5-.5Zm-3.36-9H4.05a.99.99 0 0 0-.98.88v8.12a.99.99 0 0 0 .87 1H12.07a.99.99 0 0 0 .98-.88l.01-.11V4.05a.99.99 0 0 0-.88-.98l-.11-.01Zm3.36 5.03a.5.5 0 0 1 .5.5v1.98a.5.5 0 0 1-1 0V8.58a.5.5 0 0 1 .5-.5Zm-4.2-2.16a.6.6 0 0 1 .08.76l-.07.08-3.46 3.49a.6.6 0 0 1-.75.07l-.08-.07L4.97 8.3a.6.6 0 0 1 .75-.92l.08.07 1.56 1.54 3.04-3.07a.6.6 0 0 1 .84 0Z"/><path stroke="#000" stroke-opacity=".4" stroke-width=".16" d="M13.74 14.94a.5.5 0 1 1 0 1h-1.98a.5.5 0 0 1 0-1h1.98Zm-3.96 0a.5.5 0 0 1 0 1H7.8a.5.5 0 0 1 0-1h1.98Zm2.29-12.87a1.98 1.98 0 0 1 1.98 1.98v.86h.32a1.55 1.55 0 0 1 1.55 1.4V6.6a.5.5 0 0 1-.98 0v-.15a.56.56 0 0 0-.57-.55h-.32v6.17a1.98 1.98 0 0 1-1.98 1.98h-6.3v.41a.55.55 0 0 0 .23.37l.07.05.08.05a.5.5 0 1 1-.55.82 1.56 1.56 0 0 1-.8-1.23l-.01-.48h-.74a1.98 1.98 0 0 1-1.98-1.98v-8a1.98 1.98 0 0 1 1.98-1.99h8.02Zm3.36 9.98a.5.5 0 0 1 .5.5v1.84c0 .07 0 .13-.02.2a.5.5 0 0 1-.98-.13.5.5 0 0 0 0-.07v-1.85a.5.5 0 0 1 .5-.5Zm-3.36-9H4.05a.99.99 0 0 0-.98.88v8.12a.99.99 0 0 0 .87 1H12.07a.99.99 0 0 0 .98-.88l.01-.11V4.05a.99.99 0 0 0-.88-.98l-.11-.01Zm3.36 5.03a.5.5 0 0 1 .5.5v1.98a.5.5 0 0 1-1 0V8.58a.5.5 0 0 1 .5-.5Zm-4.2-2.16a.6.6 0 0 1 .08.76l-.07.08-3.46 3.49a.6.6 0 0 1-.75.07l-.08-.07L4.97 8.3a.6.6 0 0 1 .75-.92l.08.07 1.56 1.54 3.04-3.07a.6.6 0 0 1 .84 0Z" mask="url(#path-1-outside-1_3164_553)"/>'],["v8Cmd/"+o.c.PastProperties]:[18,18,'<mask id="path-1-outside-1_3164_553" width="15" height="15" x="1.07" y="1.07" fill="#000" maskUnits="userSpaceOnUse"><path fill="#fff" d="M1.07 1.07h15v15h-15z"/><path d="M13.74 14.94a.5.5 0 1 1 0 1h-1.98a.5.5 0 0 1 0-1h1.98Zm-3.96 0a.5.5 0 0 1 0 1H7.8a.5.5 0 0 1 0-1h1.98Zm2.29-12.87a1.98 1.98 0 0 1 1.98 1.98v.86h.32a1.55 1.55 0 0 1 1.55 1.4V6.6a.5.5 0 0 1-.98 0v-.15a.56.56 0 0 0-.57-.55h-.32v6.17a1.98 1.98 0 0 1-1.98 1.98h-6.3v.41a.55.55 0 0 0 .23.37l.07.05.08.05a.5.5 0 1 1-.55.82 1.56 1.56 0 0 1-.8-1.23l-.01-.48h-.74a1.98 1.98 0 0 1-1.98-1.98v-8a1.98 1.98 0 0 1 1.98-1.99h8.02Zm3.36 9.98a.5.5 0 0 1 .5.5v1.84c0 .07 0 .13-.02.2a.5.5 0 0 1-.98-.13.5.5 0 0 0 0-.07v-1.85a.5.5 0 0 1 .5-.5Zm-3.36-9H4.05a.99.99 0 0 0-.98.88v8.12a.99.99 0 0 0 .87 1H12.07a.99.99 0 0 0 .98-.88l.01-.11V4.05a.99.99 0 0 0-.88-.98l-.11-.01Zm3.36 5.03a.5.5 0 0 1 .5.5v1.98a.5.5 0 0 1-1 0V8.58a.5.5 0 0 1 .5-.5Zm-4.2-2.16a.6.6 0 0 1 .08.76l-.07.08-3.46 3.49a.6.6 0 0 1-.75.07l-.08-.07L4.97 8.3a.6.6 0 0 1 .75-.92l.08.07 1.56 1.54 3.04-3.07a.6.6 0 0 1 .84 0Z"/></mask><path fill="#000" d="M13.74 14.94a.5.5 0 1 1 0 1h-1.98a.5.5 0 0 1 0-1h1.98Zm-3.96 0a.5.5 0 0 1 0 1H7.8a.5.5 0 0 1 0-1h1.98Zm2.29-12.87a1.98 1.98 0 0 1 1.98 1.98v.86h.32a1.55 1.55 0 0 1 1.55 1.4V6.6a.5.5 0 0 1-.98 0v-.15a.56.56 0 0 0-.57-.55h-.32v6.17a1.98 1.98 0 0 1-1.98 1.98h-6.3v.41a.55.55 0 0 0 .23.37l.07.05.08.05a.5.5 0 1 1-.55.82 1.56 1.56 0 0 1-.8-1.23l-.01-.48h-.74a1.98 1.98 0 0 1-1.98-1.98v-8a1.98 1.98 0 0 1 1.98-1.99h8.02Zm3.36 9.98a.5.5 0 0 1 .5.5v1.84c0 .07 0 .13-.02.2a.5.5 0 0 1-.98-.13.5.5 0 0 0 0-.07v-1.85a.5.5 0 0 1 .5-.5Zm-3.36-9H4.05a.99.99 0 0 0-.98.88v8.12a.99.99 0 0 0 .87 1H12.07a.99.99 0 0 0 .98-.88l.01-.11V4.05a.99.99 0 0 0-.88-.98l-.11-.01Zm3.36 5.03a.5.5 0 0 1 .5.5v1.98a.5.5 0 0 1-1 0V8.58a.5.5 0 0 1 .5-.5Zm-4.2-2.16a.6.6 0 0 1 .08.76l-.07.08-3.46 3.49a.6.6 0 0 1-.75.07l-.08-.07L4.97 8.3a.6.6 0 0 1 .75-.92l.08.07 1.56 1.54 3.04-3.07a.6.6 0 0 1 .84 0Z"/><path stroke="#000" stroke-opacity=".4" stroke-width=".16" d="M13.74 14.94a.5.5 0 1 1 0 1h-1.98a.5.5 0 0 1 0-1h1.98Zm-3.96 0a.5.5 0 0 1 0 1H7.8a.5.5 0 0 1 0-1h1.98Zm2.29-12.87a1.98 1.98 0 0 1 1.98 1.98v.86h.32a1.55 1.55 0 0 1 1.55 1.4V6.6a.5.5 0 0 1-.98 0v-.15a.56.56 0 0 0-.57-.55h-.32v6.17a1.98 1.98 0 0 1-1.98 1.98h-6.3v.41a.55.55 0 0 0 .23.37l.07.05.08.05a.5.5 0 1 1-.55.82 1.56 1.56 0 0 1-.8-1.23l-.01-.48h-.74a1.98 1.98 0 0 1-1.98-1.98v-8a1.98 1.98 0 0 1 1.98-1.99h8.02Zm3.36 9.98a.5.5 0 0 1 .5.5v1.84c0 .07 0 .13-.02.2a.5.5 0 0 1-.98-.13.5.5 0 0 0 0-.07v-1.85a.5.5 0 0 1 .5-.5Zm-3.36-9H4.05a.99.99 0 0 0-.98.88v8.12a.99.99 0 0 0 .87 1H12.07a.99.99 0 0 0 .98-.88l.01-.11V4.05a.99.99 0 0 0-.88-.98l-.11-.01Zm3.36 5.03a.5.5 0 0 1 .5.5v1.98a.5.5 0 0 1-1 0V8.58a.5.5 0 0 1 .5-.5Zm-4.2-2.16a.6.6 0 0 1 .08.76l-.07.08-3.46 3.49a.6.6 0 0 1-.75.07l-.08-.07L4.97 8.3a.6.6 0 0 1 .75-.92l.08.07 1.56 1.54 3.04-3.07a.6.6 0 0 1 .84 0Z" mask="url(#path-1-outside-1_3164_553)"/>'],["v8Cmd/"+o.c.ComSelectAll]:[18,18,'<path fill="#000" fill-rule="evenodd" d="M3.2 3.15v-.03h7.13c.08 0 .15 0 .23-.03a.6.6 0 0 0 .26-.98.61.61 0 0 0-.47-.2H8.98a6259 6259 0 0 0-6 0c-.63.12-1.06.65-1.04 1.25v6.87a.63.63 0 1 0 1.25 0V3.14Zm3.6 3.47h8.01V9.9a.62.62 0 0 0 .7.63c.33-.04.55-.29.55-.6V6.62A1.23 1.23 0 0 0 14.8 5.4H6.83c-.1 0-.2 0-.3.03-.6.13-.98.65-.97 1.22v6.87c0 .43.17.76.51 1 .23.18.5.25.79.25H9.4c.24-.03.46-.21.52-.46a.6.6 0 0 0-.23-.64.66.66 0 0 0-.4-.12H6.9a.9.9 0 0 1-.06 0H6.8V6.61ZM5 4.87v.1a28385.6 28385.6 0 0 1-.03 6.97.62.62 0 0 1-.6.47.62.62 0 0 1-.63-.65 7538.9 7538.9 0 0 1 0-6.06v-.79A1.24 1.24 0 0 1 5 3.65h7.16a.62.62 0 0 1 .58.4.6.6 0 0 1-.44.8 3451.98 3451.98 0 0 1-4.26.02H5Zm7.4 8.24v-.07l.02.01.03.04 1.06 1.83.16.27.35.58c.24.42.83.44 1.1.05a.64.64 0 0 0 .04-.72l-.19-.32-.09-.15-1.31-2.25a1.11 1.11 0 0 1-.04-.07l.06.02.28.17.37.22c.16.1.34.13.52.08a.63.63 0 0 0 .48-.54.63.63 0 0 0-.31-.67l-1.57-.95a618.13 618.13 0 0 1-1.27-.76.66.66 0 0 0-.56-.07.66.66 0 0 0-.46.63v3.58a.66.66 0 0 0 1.2.39.66.66 0 0 0 .12-.4 81.05 81.05 0 0 0 0-.9Z" clip-rule="evenodd"/>'],["v8Cmd/"+o.c.GlobalFind]:[18,18,'<path fill="#000" d="m14.92 14.47-1.88-2.15.1-.1a5.9 5.9 0 0 0 1.07-1.65 6.02 6.02 0 0 0 0-4.58 5.91 5.91 0 0 0-9.58-1.87 5.91 5.91 0 0 0-1.27 6.45A6 6 0 0 0 6.5 13.7a5.92 5.92 0 0 0 5.36-.42l.12-.08 1.9 2.18a.72.72 0 0 0 .98.06.68.68 0 0 0 .06-.97Zm-1.99-4.43a4.52 4.52 0 0 1-7.33 1.43 4.48 4.48 0 0 1 3.2-7.68 4.57 4.57 0 0 1 3.17 1.3 4.46 4.46 0 0 1 .96 4.94Z"/>'],["v8Cmd/"+o.c.GlobalReplace]:[18,18,'<path fill="#000" d="m14.92 14.47-1.88-2.15.1-.1a5.9 5.9 0 0 0 1.07-1.65 6.02 6.02 0 0 0 0-4.58 5.91 5.91 0 0 0-9.58-1.87 5.91 5.91 0 0 0-1.27 6.45A6 6 0 0 0 6.5 13.7a5.92 5.92 0 0 0 5.36-.42l.12-.08 1.9 2.18a.72.72 0 0 0 .98.06.68.68 0 0 0 .06-.97Zm-1.99-4.43a4.52 4.52 0 0 1-7.33 1.43 4.48 4.48 0 0 1 3.2-7.68 4.57 4.57 0 0 1 3.17 1.3 4.46 4.46 0 0 1 .96 4.94Z"/>'],["v8Cmd/"+o.c.ToggleHandTool]:[18,18,'<g clip-path="url(#clip0_3158_967)"><path fill="#000" d="M10.54 15.83a4.68 4.68 0 0 0 4.36-4.73V6.69a1.59 1.59 0 0 0-1.56-1.61h-.3v-.31a1.63 1.63 0 0 0-2.08-1.58h-.1.08A1.78 1.78 0 0 0 9.3 2.12a1.67 1.67 0 0 0-1.56 1.09l-.09.24.07-.22a1.63 1.63 0 0 0-2.16 1.54v3.21a2 2 0 0 0-.6-.09h-.05a1.8 1.8 0 0 0-.97.32 1.93 1.93 0 0 0-.5 2.63l1.28 2 .58.79a5.39 5.39 0 0 0 3.66 2.21H9.88l.65-.01Zm-.92-1.25a4.12 4.12 0 0 1-3.33-1.71l-.56-.77-1.28-2a.6.6 0 0 1 .16-.83.57.57 0 0 1 .8.14l.26.36.08.15a.63.63 0 0 0 .86.24.67.67 0 0 0 .23-.89v-4.5a.36.36 0 0 1 .35-.36.44.44 0 0 1 .44.4v4.28a.63.63 0 1 0 1.25 0V3.86a.44.44 0 0 1 .43-.45.52.52 0 0 1 .52.53V9.1a.63.63 0 1 0 1.26 0V4.77a.36.36 0 0 1 .35-.36.35.35 0 0 1 .35.36V9.1a.64.64 0 0 0 .63.65.64.64 0 0 0 .63-.65V6.69a.31.31 0 1 1 .61 0v4.41a3.41 3.41 0 0 1-3.19 3.44h-.63l-.22.04Z"/></g><defs><clipPath id="clip0_3158_967"><path fill="#fff" d="M3.1 2.12h11.8v13.76H3.1z"/></clipPath></defs>'],["v8Cmd/"+o.c.ToggleExport]:[18,18,'<g fill="#000" clip-path="url(#clip0_3164_743)"><path d="m6.15 8.94 2.23 2.57c.07.08.13.16.21.22.3.22.7.16.95-.12a302.2 302.2 0 0 1 2.9-3.35l.4-.47a.69.69 0 0 0-.14-.96.7.7 0 0 0-.97.11L9.81 9.16l-.11.13V3.01c0-.05 0-.1-.02-.15a.7.7 0 0 0-1.38.16V9.28l-.08-.09-1.96-2.26a.7.7 0 0 0-1.2.68.7.7 0 0 0 .14.24l.95 1.09Z"/><path d="M15.7 11.72a.7.7 0 1 0-1.4 0v1.05c0 .1 0 .21-.02.31-.13.7-.75 1.22-1.46 1.22H5.21c-.1 0-.2 0-.31-.03a1.48 1.48 0 0 1-1.2-1.47v-1.06a.7.7 0 0 0-.56-.71.7.7 0 0 0-.84.67v1.11a2.85 2.85 0 0 0 1.07 2.24c.52.43 1.1.64 1.77.65h7.66a2.8 2.8 0 0 0 2.17-.96c.47-.54.71-1.16.73-1.87v-1.15Z"/></g><defs><clipPath id="clip0_3164_743"><path fill="#fff" d="M2.3 2.3h13.4v13.4H2.3z"/></clipPath></defs>'],["v8Cmd/"+o.c.Preview]:[18,18,'<path fill="#000" d="M13.27 8.02 6.8 2.87a1.6 1.6 0 0 0-1.74-.2 1.64 1.64 0 0 0-.94 1.48v9.7a1.66 1.66 0 0 0 2.6 1.36l6.46-4.58a1.66 1.66 0 0 0 .1-2.64v.03Zm-.97 1.37-6.66 4.65V3.9l.26.22 6.52 5.18-.12.1Z"/>'],["v8Cmd/"+o.c.AddComponent]:[18,18,'<path fill="#000" fill-rule="evenodd" d="M9.43 1.53a.87.87 0 0 0-.86 0L2.58 4.95a.65.65 0 0 0-.33.57v6.84c0 .31.17.6.44.76l5.87 3.35c.28.16.63.15.9-.02l5.89-3.79c.25-.16.4-.43.4-.73V5.64c0-.3-.17-.6-.44-.75L9.43 1.53ZM3.56 6.4c0-.31.16-.6.44-.75l4.57-2.62c.27-.15.6-.15.86 0L14 5.65c.28.15.44.44.44.75v4.82c0 .3-.15.57-.4.73l-4.62 2.97a.87.87 0 0 1-.9.02L4 12.36a.87.87 0 0 1-.44-.76V6.4Zm1.96 1.23L8.23 9.4v3.08h1.53V9.4l2.72-1.77-.85-1.24L9 8.1 6.36 6.4l-.84 1.24Z" clip-rule="evenodd"/>'],["v8Cmd/"+o.c.CreateMaster]:[18,18,'<path fill="#000" fill-rule="evenodd" d="M7.25 4.67 9 2.92l1.75 1.75L9 6.4 7.25 4.67Zm2.5-2.86a1.07 1.07 0 0 0-1.5 0l-2.1 2.1c-.42.42-.42 1.1 0 1.51l2.1 2.1c.41.42 1.09.42 1.5 0l2.1-2.1c.42-.41.42-1.1 0-1.51l-2.1-2.1Zm1.84 7.52 1.74-1.74 1.75 1.74-1.75 1.75-1.74-1.75Zm2.5-2.85a1.07 1.07 0 0 0-1.51 0l-2.1 2.1c-.42.41-.42 1.1 0 1.51l2.1 2.1c.41.41 1.1.41 1.51 0l2.1-2.1c.41-.42.41-1.1 0-1.51l-2.1-2.1ZM9 11.58l-1.75 1.75L9 15.08l1.75-1.75L9 11.6Zm-.76-1.1c.42-.42 1.1-.42 1.52 0l2.1 2.1c.41.41.41 1.1 0 1.51l-2.1 2.1c-.42.41-1.1.41-1.52 0l-2.1-2.1a1.07 1.07 0 0 1 0-1.51l2.1-2.1ZM2.92 9l1.75-1.75L6.4 9l-1.74 1.75L2.92 9Zm2.5-2.85a1.07 1.07 0 0 0-1.51 0l-2.1 2.1c-.41.41-.41 1.09 0 1.5l2.1 2.1c.42.42 1.1.42 1.51 0l2.1-2.1c.42-.41.42-1.09 0-1.5l-2.1-2.1Z" clip-rule="evenodd"/>'],["v8Cmd/"+o.c.CreatePanel]:[18,18,'<g fill="#000" clip-path="url(#clip0_3158_1024)"><path d="M9.36 10.38h-.24c-.15 0-.3-.03-.44-.08l-.37-.12-5.74 5.09h5.84a2 2 0 0 0 1.29-.47l1.81-2.5.05-.08-2.17-1.82-.03-.02Zm.43 2.06-1 1.39c-.1.1-.24.16-.38.17H6.06l2.58-2.34h.23l.92.78ZM3.3 9.59l2.52 1.8.07.06 1.82-2.19V9c0-.15.02-.3.07-.44l.12-.37-4.91-5.51-.17-.19v5.8a2 2 0 0 0 .47 1.28l.01.02ZM7.64 9c0-.16.02-.32.07-.48l.11-.31-.11.3c-.05.16-.07.32-.07.49Zm-1.12-.22v-.25.29-.04Zm-.1 0-.76.88-1.4-1a.63.63 0 0 1-.08-.37V6l2.27 2.52-.03.26Zm-3.06.72v.06l.24.14-.19-.14V9.5a1.88 1.88 0 0 1-.23-.23c.05.08.11.16.18.23ZM8.48 7.72l.37-.07c.24-.06.48-.06.72 0l.39.14L14.9 2.9l.17-.17H9.83a2 2 0 0 0-1.28.47L6.71 5.72l1.73 2h.04Zm1.13-1.38h-.62l-.58-.66 1-1.46a.64.64 0 0 1 .38-.12h2L9.61 6.34Zm-.6.07L8.59 6l.36.41h.06Zm-.5 1.2.32-.06h.29-.29l-.32.06ZM14.93 8.39l-2.1-2-.07-.06-2.31 2 .08.38a2.13 2.13 0 0 1-.07.7l-.12.37 4.94 5.51.17.19V9.71a2 2 0 0 0-.52-1.32Zm-3.09.49.88-.77 1.23 1.18c.1.12.15.27.15.42v2.34l-2.3-2.57a2.6 2.6 0 0 0 0-.48l.04-.12Zm-.1.19a3.41 3.41 0 0 1 0-.07v.07Zm-1.31.72.1-.31-.1.3 2.62 2.92-2.62-2.91Zm3.75-.08a.74.74 0 0 0-.18-.49L12.75 8l1.27 1.22c.11.14.17.31.16.49Z"/></g><defs><clipPath id="clip0_3158_1024"><path fill="#fff" d="M2.57 2.49h12.86v13.02H2.57z"/></clipPath></defs>'],["v8Cmd/"+o.c.TogglePageTransState]:[18,18,'<g fill="#000" clip-path="url(#clip0_3158_1027)"><path d="M14.86 7.5a2.1 2.1 0 0 0-2-.54c-.74.17-1.26.63-1.53 1.35l-.03.05H3.18l-.12.01a.64.64 0 0 0-.26 1.17c.11.07.24.1.37.1h8.11a.03.03 0 0 1 .04.02v.04c.13.32.3.6.56.82.59.53 1.27.7 2.04.5a2.09 2.09 0 0 0 .94-3.52Zm-.92 2.1c-.34.32-.9.3-1.22-.05a.82.82 0 0 1 .15-1.24.9.9 0 0 1 .52-.14c.27 0 .52.13.69.39a.8.8 0 0 1-.14 1.04ZM15.3 12.93a.62.62 0 0 0-.46-.17H10.6l-.02-.05c-.27-.77-1-1.36-1.9-1.41a2.14 2.14 0 0 0-2.25 2.4c.07.49.29.9.65 1.23.55.49 1.19.67 1.9.52a2.07 2.07 0 0 0 1.62-1.42h4.37c.25-.06.42-.2.5-.45a.6.6 0 0 0-.18-.65Zm-6.15 1.05a.87.87 0 0 1-1.4-.3.83.83 0 0 1 .6-1.1c.33-.06.62.02.85.27a.8.8 0 0 1-.05 1.13ZM8.25 6.1c.54.5 1.2.7 1.92.56a2.08 2.08 0 0 0 1.56-1.25l.07-.17h3.15a.64.64 0 0 0 .54-.56.64.64 0 0 0-.67-.71h-2.95c-.09 0-.07 0-.1-.07a2.12 2.12 0 0 0-1.86-1.4 2.1 2.1 0 0 0-1.2.26 2.08 2.08 0 0 0-.46 3.34ZM9.16 4c.34-.32.9-.3 1.22.04a.82.82 0 0 1-.33 1.34c-.1.03-.2.05-.3.05a.84.84 0 0 1-.68-.33.8.8 0 0 1 .1-1.1ZM3.16 5.24H7.1V3.97H3.11a.6.6 0 0 0-.55.38.6.6 0 0 0 .1.67c.13.15.3.22.5.22ZM3.14 12.76a.64.64 0 0 0-.64.62c0 .35.28.65.63.65H5.89v-1.27H3.14Z"/></g><defs><clipPath id="clip0_3158_1027"><path fill="#fff" d="M2.5 2.5h13v13h-13z"/></clipPath></defs>'],["v8Cmd/"+o.c.TogglePanelTransState]:[18,18,'<g fill="#000" clip-path="url(#clip0_3158_1027)"><path d="M14.86 7.5a2.1 2.1 0 0 0-2-.54c-.74.17-1.26.63-1.53 1.35l-.03.05H3.18l-.12.01a.64.64 0 0 0-.26 1.17c.11.07.24.1.37.1h8.11a.03.03 0 0 1 .04.02v.04c.13.32.3.6.56.82.59.53 1.27.7 2.04.5a2.09 2.09 0 0 0 .94-3.52Zm-.92 2.1c-.34.32-.9.3-1.22-.05a.82.82 0 0 1 .15-1.24.9.9 0 0 1 .52-.14c.27 0 .52.13.69.39a.8.8 0 0 1-.14 1.04ZM15.3 12.93a.62.62 0 0 0-.46-.17H10.6l-.02-.05c-.27-.77-1-1.36-1.9-1.41a2.14 2.14 0 0 0-2.25 2.4c.07.49.29.9.65 1.23.55.49 1.19.67 1.9.52a2.07 2.07 0 0 0 1.62-1.42h4.37c.25-.06.42-.2.5-.45a.6.6 0 0 0-.18-.65Zm-6.15 1.05a.87.87 0 0 1-1.4-.3.83.83 0 0 1 .6-1.1c.33-.06.62.02.85.27a.8.8 0 0 1-.05 1.13ZM8.25 6.1c.54.5 1.2.7 1.92.56a2.08 2.08 0 0 0 1.56-1.25l.07-.17h3.15a.64.64 0 0 0 .54-.56.64.64 0 0 0-.67-.71h-2.95c-.09 0-.07 0-.1-.07a2.12 2.12 0 0 0-1.86-1.4 2.1 2.1 0 0 0-1.2.26 2.08 2.08 0 0 0-.46 3.34ZM9.16 4c.34-.32.9-.3 1.22.04a.82.82 0 0 1-.33 1.34c-.1.03-.2.05-.3.05a.84.84 0 0 1-.68-.33.8.8 0 0 1 .1-1.1ZM3.16 5.24H7.1V3.97H3.11a.6.6 0 0 0-.55.38.6.6 0 0 0 .1.67c.13.15.3.22.5.22ZM3.14 12.76a.64.64 0 0 0-.64.62c0 .35.28.65.63.65H5.89v-1.27H3.14Z"/></g><defs><clipPath id="clip0_3158_1027"><path fill="#fff" d="M2.5 2.5h13v13h-13z"/></clipPath></defs>'],["v8Cmd/"+o.c.Delete]:[18,18,'<g fill="#000" clip-path="url(#clip0_3158_1042)"><path d="M15.5 4.26a.71.71 0 0 0-.43-.14H3.04a.75.75 0 0 0-.48.18.61.61 0 0 0 0 .92c.13.11.3.18.48.18h.58v8.46a2 2 0 0 0 2.13 1.94h6.5a2 2 0 0 0 2.14-1.94v-7.3a.64.64 0 0 0-.21-.46.77.77 0 0 0-1 0 .63.63 0 0 0-.2.46v7.15a.65.65 0 0 1-.22.46 1 1 0 0 1-.24.15 1 1 0 0 1-.3.05h-6.5c-.1 0-.2-.02-.29-.05a1 1 0 0 1-.25-.15.83.83 0 0 1-.16-.21.74.74 0 0 1-.05-.25V5.26h10c.18 0 .35-.07.48-.18a.6.6 0 0 0 .21-.46.59.59 0 0 0-.16-.36Z"/><path d="M7.07 7.4a.63.63 0 0 0-.2.46v3.9a.65.65 0 0 0 .2.46c.14.11.31.18.49.18s.35-.07.48-.18a.62.62 0 0 0 .21-.46v-3.9a.64.64 0 0 0-.21-.46.77.77 0 0 0-.97 0ZM9.96 7.4a.63.63 0 0 0-.2.46v3.9a.65.65 0 0 0 .2.46.74.74 0 0 0 1 0 .62.62 0 0 0 .21-.46v-3.9a.64.64 0 0 0-.21-.46.77.77 0 0 0-1 0ZM7.56 3.62h2.89a.7.7 0 0 0 .59-.37.6.6 0 0 0-.1-.67l-.05-.05h-.05a.7.7 0 0 0-.42-.13H7.56a.68.68 0 0 0-.48.18.58.58 0 0 0-.21.45.61.61 0 0 0 .2.46c.14.1.32.15.49.13Z"/></g><defs><clipPath id="clip0_3158_1042"><path fill="#fff" d="M2.35 2.35h13.3v13.3H2.35z"/></clipPath></defs>'],["v8Cmd/"+o.c.SearchMktSource]:[18,18,'<path fill="#000" d="m14.92 14.47-1.88-2.15.1-.1a5.9 5.9 0 0 0 1.07-1.65 6.02 6.02 0 0 0 0-4.58 5.91 5.91 0 0 0-9.58-1.87 5.91 5.91 0 0 0-1.27 6.45A6 6 0 0 0 6.5 13.7a5.92 5.92 0 0 0 5.36-.42l.12-.08 1.9 2.18a.72.72 0 0 0 .98.06.68.68 0 0 0 .06-.97Zm-1.99-4.43a4.52 4.52 0 0 1-7.33 1.43 4.48 4.48 0 0 1 3.2-7.68 4.57 4.57 0 0 1 3.17 1.3 4.46 4.46 0 0 1 .96 4.94Z"/>'],["v8Cmd/"+o.c.CategoryPreference]:[18,18,'<g fill="#000" clip-path="url(#clip0_3158_1027)"><path d="M14.86 7.5a2.1 2.1 0 0 0-2-.54c-.74.17-1.26.63-1.53 1.35l-.03.05H3.18l-.12.01a.64.64 0 0 0-.26 1.17c.11.07.24.1.37.1h8.11a.03.03 0 0 1 .04.02v.04c.13.32.3.6.56.82.59.53 1.27.7 2.04.5a2.09 2.09 0 0 0 .94-3.52Zm-.92 2.1c-.34.32-.9.3-1.22-.05a.82.82 0 0 1 .15-1.24.9.9 0 0 1 .52-.14c.27 0 .52.13.69.39a.8.8 0 0 1-.14 1.04ZM15.3 12.93a.62.62 0 0 0-.46-.17H10.6l-.02-.05c-.27-.77-1-1.36-1.9-1.41a2.14 2.14 0 0 0-2.25 2.4c.07.49.29.9.65 1.23.55.49 1.19.67 1.9.52a2.07 2.07 0 0 0 1.62-1.42h4.37c.25-.06.42-.2.5-.45a.6.6 0 0 0-.18-.65Zm-6.15 1.05a.87.87 0 0 1-1.4-.3.83.83 0 0 1 .6-1.1c.33-.06.62.02.85.27a.8.8 0 0 1-.05 1.13ZM8.25 6.1c.54.5 1.2.7 1.92.56a2.08 2.08 0 0 0 1.56-1.25l.07-.17h3.15a.64.64 0 0 0 .54-.56.64.64 0 0 0-.67-.71h-2.95c-.09 0-.07 0-.1-.07a2.12 2.12 0 0 0-1.86-1.4 2.1 2.1 0 0 0-1.2.26 2.08 2.08 0 0 0-.46 3.34ZM9.16 4c.34-.32.9-.3 1.22.04a.82.82 0 0 1-.33 1.34c-.1.03-.2.05-.3.05a.84.84 0 0 1-.68-.33.8.8 0 0 1 .1-1.1ZM3.16 5.24H7.1V3.97H3.11a.6.6 0 0 0-.55.38.6.6 0 0 0 .1.67c.13.15.3.22.5.22ZM3.14 12.76a.64.64 0 0 0-.64.62c0 .35.28.65.63.65H5.89v-1.27H3.14Z"/></g><defs><clipPath id="clip0_3158_1027"><path fill="#fff" d="M2.5 2.5h13v13h-13z"/></clipPath></defs>'],["v8Cmd/"+o.c.CategoryLayoutView]:[18,18,'<g clip-path="url(#clip0_3154_473)"><path fill="#000" d="M14.15 2.83H3.85a1.6 1.6 0 0 0-1.6 1.6v9.18a1.6 1.6 0 0 0 1.6 1.6h10.3a1.6 1.6 0 0 0 1.6-1.6V4.4a1.6 1.6 0 0 0-1.6-1.58Zm-8 11.07h-2.3a.29.29 0 0 1-.3-.3V4.42a.29.29 0 0 1 .3-.3H6.1l.05 9.8Zm8.35-.3a.29.29 0 0 1-.3.3H7.4V9.46h7l.1 4.14Zm0-5.42h-7V4.11h6.75a.29.29 0 0 1 .3.3l-.05 3.77Z"/></g><defs><clipPath id="clip0_3154_473"><path fill="#fff" d="M2.25 2.81h13.5v12.37H2.25z"/></clipPath></defs>'],["v8Cmd/"+o.c.LinkDisplayChange]:[18,18,'<g fill="#000" clip-path="url(#clip0_3168_1042)"><path d="M14.86 7.5a2.1 2.1 0 0 0-2-.54c-.74.17-1.26.63-1.53 1.35l-.03.05H3.18l-.12.01a.64.64 0 0 0-.26 1.17c.11.07.24.1.37.1h8.11a.03.03 0 0 1 .04.02v.04c.13.32.3.6.56.82.59.53 1.27.7 2.04.5a2.09 2.09 0 0 0 .94-3.52Zm-.92 2.1c-.34.32-.9.3-1.22-.05a.82.82 0 0 1 .15-1.24.9.9 0 0 1 .52-.14c.27 0 .52.13.69.39a.8.8 0 0 1-.14 1.04ZM15.3 12.93a.62.62 0 0 0-.46-.17H10.6l-.02-.05c-.27-.77-1-1.36-1.9-1.41a2.14 2.14 0 0 0-2.25 2.4c.07.49.29.9.65 1.23.55.49 1.19.67 1.9.52.78-.16 1.3-.62 1.6-1.36l.02-.06h4.37c.25-.06.42-.2.5-.45a.6.6 0 0 0-.18-.65Zm-6.14 1.05a.87.87 0 0 1-1.41-.3.83.83 0 0 1 .6-1.1c.33-.06.62.02.85.27a.8.8 0 0 1-.04 1.13ZM8.25 6.1c.54.5 1.2.7 1.92.56a2.08 2.08 0 0 0 1.56-1.25l.07-.17h3.15a.64.64 0 0 0 .54-.56.64.64 0 0 0-.67-.71h-2.95c-.09 0-.07 0-.1-.07a2.12 2.12 0 0 0-1.86-1.4 2.1 2.1 0 0 0-1.2.26 2.08 2.08 0 0 0-.46 3.34ZM9.16 4c.34-.32.9-.3 1.22.04a.82.82 0 0 1-.33 1.34c-.1.03-.2.05-.3.05a.84.84 0 0 1-.68-.33.8.8 0 0 1 .1-1.1ZM3.16 5.24H7.1V3.97H3.11a.6.6 0 0 0-.55.38.6.6 0 0 0 .1.67c.13.15.3.22.5.22ZM3.14 12.76a.64.64 0 0 0-.64.62c0 .35.28.65.63.65H5.89v-1.27H3.14Z"/></g><defs><clipPath id="clip0_3168_1042"><path fill="#fff" d="M2.5 2.5h13v13h-13z"/></clipPath></defs>'],["v8Cmd/"+o.c.ToggleEyedropper]:[18,18,'<path fill="#000" d="M15.27 2.74a1.96 1.96 0 0 0-2.75.16l-2 2.01-.05.05-1.35-1.3a1.43 1.43 0 0 0-1.99 0 1.4 1.4 0 0 0 0 1.98l.9.87-4.8 4.8-.13.14c-1.04 1.17-1.14 2.75-.22 3.67a2.2 2.2 0 0 0 1.58.62h.3a3.26 3.26 0 0 0 1.93-.96l4.8-4.8.9.91a1.41 1.41 0 0 0 2-2l-1.34-1.36.04-.05 2-2.01.1-.1a1.94 1.94 0 0 0 .08-2.63ZM4.5 14.59a1.06 1.06 0 0 1-.77-.3A1.55 1.55 0 0 1 4 12.24l5.2-5.2 1.76 1.83-5.08 5.09a2.1 2.1 0 0 1-1.4.64h.03Z"/>'],["v8Cmd/"+o.c.ToggleSelectMode]:[18,18,'<path fill="#000" fill-rule="evenodd" d="M3.2 3.15v-.03h7.13c.08 0 .15 0 .23-.03a.6.6 0 0 0 .26-.98.61.61 0 0 0-.47-.2H8.98a6258.98 6258.98 0 0 0-6 0c-.63.12-1.06.65-1.04 1.25v6.87a.63.63 0 1 0 1.25 0V3.2a1 1 0 0 1 0-.06Zm3.6 3.47h8.01V9.9a.62.62 0 0 0 .7.63c.33-.04.55-.29.55-.6V6.62A1.23 1.23 0 0 0 14.8 5.4H6.83c-.1 0-.2 0-.3.03-.59.13-.98.65-.97 1.22v6.87c0 .43.18.76.51 1 .23.18.5.25.79.25H9.4c.24-.03.46-.21.52-.46a.6.6 0 0 0-.23-.64.66.66 0 0 0-.4-.12H6.9a.9.9 0 0 1-.06 0H6.8V6.61ZM5 4.87v.1a28385.6 28385.6 0 0 1-.03 6.97.62.62 0 0 1-.6.47.62.62 0 0 1-.63-.65 7538.9 7538.9 0 0 1 0-6.06v-.79A1.24 1.24 0 0 1 5 3.65h7.16a.62.62 0 0 1 .58.4.6.6 0 0 1-.44.8 3451.95 3451.95 0 0 1-4.26.02H5Zm7.4 8.24v-.07l.02.01.03.04 1.06 1.83.16.27.35.58c.24.42.83.44 1.1.05a.64.64 0 0 0 .04-.72l-.19-.32-.09-.15-1.31-2.25-.03-.05v-.02l.06.02.27.17.38.22c.16.1.33.13.5.08a.63.63 0 0 0 .49-.54.63.63 0 0 0-.31-.67l-1.57-.95a803.81 803.81 0 0 1-1.27-.76.66.66 0 0 0-.56-.07.66.66 0 0 0-.46.63 424.71 424.71 0 0 0 0 3.58.66.66 0 0 0 1.2.39.66.66 0 0 0 .12-.4 86.84 86.84 0 0 0 0-.9Z" clip-rule="evenodd"/>'],["v8Cmd/"+o.c.CategoryCanvas]:[18,18,'<path fill="#000" fill-rule="evenodd" d="M3.85 2.81c-.88 0-1.6.72-1.6 1.6v9.17c0 .89.72 1.6 1.6 1.6h10.3c.88 0 1.6-.71 1.6-1.6V4.41c0-.88-.72-1.6-1.6-1.6H3.85Zm.12 2.5a.6.6 0 0 0-.6.6v7.47c0 .33.27.6.6.6h10.05a.6.6 0 0 0 .6-.6V5.9a.6.6 0 0 0-.6-.6H3.97Z" clip-rule="evenodd"/>'],["v8Cmd/"+o.c.CategoryPage]:[18,18,'<g clip-path="url(#clip0_3154_505)"><path fill="#000" d="m13.83 4.87-1.91-2.12a2 2 0 0 0-1.45-.65H5.61a2.08 2.08 0 0 0-2 2.15v9.5a2.08 2.08 0 0 0 2 2.15h6.78a2.08 2.08 0 0 0 2-2.15V6.37c0-.55-.2-1.09-.56-1.5Zm-.73 8.88a.79.79 0 0 1-.71.85H5.61a.79.79 0 0 1-.71-.85v-9.5a.79.79 0 0 1 .71-.85h3.6v2.85a1.61 1.61 0 0 0 1.55 1.65h2.34v5.85Zm0-7.15h-2.34c-.13 0-.25-.16-.25-.35V3.4a.64.64 0 0 1 .44.23l1.92 2.12c.15.17.23.4.23.62v.23Z"/></g><defs><clipPath id="clip0_3154_505"><path fill="#fff" d="M3.6 2.1h10.8v13.8H3.6z"/></clipPath></defs>'],["v8Cmd/"+o.c.CategoryLayer]:[18,18,'<g fill="#000" clip-path="url(#clip0_3168_1154)"><path d="M9 2.17c.11 0 .22.04.32.1a581.6 581.6 0 0 0 4.52 2.45c.38.2.77.4 1.14.62.23.12.33.33.33.58 0 .26-.11.46-.33.58l-1.47.8-1.5.8-1.6.88-1.12.6a.6.6 0 0 1-.6-.01l-1-.54a947.61 947.61 0 0 0-3.68-2L3 6.5a.63.63 0 0 1-.33-.62c.02-.28.17-.46.41-.6.59-.3 1.16-.62 1.75-.94l1.73-.94a1872.05 1872.05 0 0 0 2.15-1.16.57.57 0 0 1 .28-.07Zm4.33 3.75-.04-.02-.7-.38-1.85-1A5416.11 5416.11 0 0 1 9 3.58l-.04.01A363.83 363.83 0 0 1 4.9 5.8l-.25.12.04.02.62.34A1436.03 1436.03 0 0 0 9 8.25l.04-.01a491.7 491.7 0 0 1 3-1.63l1.06-.57.23-.12Z"/><path d="M9 12.74a.6.6 0 0 1-.3-.08l-.89-.48a4740.74 4740.74 0 0 0-4.42-2.4l-.36-.19a.64.64 0 0 1-.35-.6c0-.25.11-.45.34-.58.18-.1.37-.1.55 0l1.5.8a1087 1087 0 0 0 3.86 2.1c.05.02.08.03.13 0a363.55 363.55 0 0 1 3.62-1.96l1.74-.94a.6.6 0 0 1 .81.25.7.7 0 0 1-.09.8c-.07.08-.16.12-.26.17l-2.44 1.33a6377.76 6377.76 0 0 1-3.18 1.72.53.53 0 0 1-.26.06Z"/><path d="M3.3 11.42c.11 0 .21.04.31.1.4.2.79.42 1.19.63l1.46.8 1.03.56 1.42.76.26.14a.05.05 0 0 0 .05 0l1.34-.72 1.38-.75 1.82-.98.83-.45c.28-.15.6-.08.78.17.24.33.14.8-.22 1l-.56.3-1.75.95-1.84 1-1.52.82c-.19.1-.38.1-.57 0a557.19 557.19 0 0 1-2.63-1.43l-1.64-.88-1.33-.72a.84.84 0 0 1-.3-.23.68.68 0 0 1 .21-1 .56.56 0 0 1 .28-.07Z"/></g><defs><clipPath id="clip0_3168_1154"><path fill="#fff" d="M2.68 2.17h12.64v13.65H2.68z"/></clipPath></defs>'],"v8Cmd/create":[18,18,'<g fill="#000" clip-path="url(#clip0_3168_1164)"><path d="M15.7 6.16A7.28 7.28 0 0 0 2.3 11.82a7.42 7.42 0 0 0 3.87 3.86 7.23 7.23 0 0 0 7.96-1.55 7.28 7.28 0 0 0 1.55-8v.03ZM14.96 9a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"/><path d="M9.65 8.35v-3.1a.65.65 0 1 0-1.3 0v3.1h-3.1a.65.65 0 1 0 0 1.3h3.1v3.12a.65.65 0 1 0 1.3 0V9.64h3.1a.65.65 0 1 0 0-1.3h-3.1Z"/></g><defs><clipPath id="clip0_3168_1164"><path fill="#fff" d="M1.73 1.73h14.53v14.53H1.73z"/></clipPath></defs>'],["v8Cmd/"+o.c.CVector]:[18,18,'<g clip-path="url(#clip0_3154_546)"><path fill="#000" d="m15.44 10.88-1.87-1.87v-.06l-.21-3.71a1.53 1.53 0 0 0-1.25-1.43L4.16 2.39c-.1-.01-.19-.01-.28 0a1.51 1.51 0 0 0-1.07.45 1.51 1.51 0 0 0-.45 1.32l1.43 8a1.52 1.52 0 0 0 1.43 1.26l3.77.2 1.87 1.87a.68.68 0 0 0 1 0l3.59-3.59a.7.7 0 0 0-.01-1.02Zm-4.08 3.11L9.6 12.23l-3.63-.19a1 1 0 0 1-.94-.83l-1.2-6.68 3.74 3.74v.08a.93.93 0 0 0 .26.81.92.92 0 0 0 1.02.2.94.94 0 0 0 .3-1.54 1 1 0 0 0-.74-.26h-.05l-.05-.06-3.67-3.64 6.57 1.18a1 1 0 0 1 .82.94l.2 3.63 1.75 1.76-2.62 2.62Z"/></g><defs><clipPath id="clip0_3154_546"><path fill="#fff" d="M2.36 2.36h13.28v13.28H2.36z"/></clipPath></defs>'],["v8Cmd/"+o.c.OpenColorPicker]:[18,18,'<path fill="#000" d="M15.27 2.74a1.96 1.96 0 0 0-2.75.16l-2 2.01-.05.05-1.35-1.3a1.43 1.43 0 0 0-1.99 0 1.4 1.4 0 0 0 0 1.98l.9.87-4.8 4.8-.13.14c-1.04 1.17-1.14 2.75-.22 3.67a2.2 2.2 0 0 0 1.58.62h.3a3.26 3.26 0 0 0 1.93-.96l4.8-4.8.9.91a1.41 1.41 0 0 0 2-2l-1.34-1.36.04-.05 2-2.01.1-.1a1.94 1.94 0 0 0 .08-2.63ZM4.5 14.59a1.06 1.06 0 0 1-.77-.3A1.55 1.55 0 0 1 4 12.24l5.2-5.2 1.76 1.83-5.08 5.09a2.1 2.1 0 0 1-1.4.64h.03Z"/>'],["v8Cmd/"+o.c.CategoryEdit]:[18,18,'<g fill="#000" clip-path="url(#clip0_3168_1231)"><path d="M3.63 3.63v10.74h10.74V9.6c0-.26.1-.46.33-.58.41-.24.95.06.95.54v4.95c0 .57-.46 1.08-1.03 1.13-.2.02-.41 0-.62 0H3.52a1.16 1.16 0 0 1-1.17-1.18V3.5c0-.58.45-1.07 1.03-1.13.2-.02.41 0 .62 0h4.47a.64.64 0 0 1 .57.92.61.61 0 0 1-.58.35H3.63Z"/><path d="m9.52 5.41-.15-.14a.59.59 0 0 1 .02-.84c.22-.22.6-.21.82.01l.13.15.05-.04 1.6-1.6a1.16 1.16 0 0 1 1.63 0l1.44 1.44a1.14 1.14 0 0 1 0 1.6l-1.6 1.6a.35.35 0 0 1-.05.04l.16.17a.59.59 0 0 1-.83.83l-.16-.17a16543.94 16543.94 0 0 1-4.03 4.05.6.6 0 0 1-.45.19H5.9a.59.59 0 0 1-.6-.6V9.9a.6.6 0 0 1 .18-.45L7.3 7.63l2.18-2.18a.3.3 0 0 1 .04-.04Zm-3.05 6.1.05.01h1.31c.03 0 .06-.02.08-.04l3.8-3.8.03-.03h-.01l-1.39-1.4-.36.37a9194.77 9194.77 0 0 1-3.5 3.51V11.52Zm7.72-6.3L12.8 3.8l-1.6 1.6 1.39 1.4 1.6-1.6Z"/></g><defs><clipPath id="clip0_3168_1231"><path fill="#fff" d="M2.35 2.35h13.3v13.3H2.35z"/></clipPath></defs>'],["v8Cmd/"+o.c.CategoryDelete]:[18,18,'<g fill="#000" clip-path="url(#clip0_3168_1242)"><path d="M15.5 4.26a.71.71 0 0 0-.43-.14H3.04a.75.75 0 0 0-.48.18.61.61 0 0 0 0 .92c.13.11.3.18.48.18h.58v8.46a2 2 0 0 0 2.13 1.94h6.5a2 2 0 0 0 2.14-1.94v-7.3a.64.64 0 0 0-.21-.46.77.77 0 0 0-1 0 .63.63 0 0 0-.2.46v7.15a.65.65 0 0 1-.22.46 1 1 0 0 1-.24.15 1 1 0 0 1-.3.05h-6.5c-.1 0-.2-.02-.29-.05a1 1 0 0 1-.25-.15.83.83 0 0 1-.16-.21.74.74 0 0 1-.05-.25V5.26h10c.18 0 .35-.07.48-.18a.6.6 0 0 0 .21-.46.59.59 0 0 0-.16-.36Z"/><path d="M7.07 7.4a.63.63 0 0 0-.2.46v3.9a.65.65 0 0 0 .2.46c.14.11.31.18.49.18s.35-.07.48-.18a.62.62 0 0 0 .21-.46v-3.9a.64.64 0 0 0-.21-.46.77.77 0 0 0-.97 0ZM9.96 7.4a.63.63 0 0 0-.2.46v3.9a.65.65 0 0 0 .2.46.74.74 0 0 0 1 0 .62.62 0 0 0 .21-.46v-3.9a.64.64 0 0 0-.21-.46.77.77 0 0 0-1 0ZM7.56 3.62h2.89a.7.7 0 0 0 .59-.37.6.6 0 0 0-.1-.67l-.05-.05h-.05a.7.7 0 0 0-.42-.13H7.56a.68.68 0 0 0-.48.18.58.58 0 0 0-.21.45.61.61 0 0 0 .2.46c.14.1.32.15.49.13Z"/></g><defs><clipPath id="clip0_3168_1242"><path fill="#fff" d="M2.35 2.35h13.3v13.3H2.35z"/></clipPath></defs>'],["v8Cmd/"+o.c.CategoryIntEvents]:[18,18,'<path fill="#000" fill-rule="evenodd" d="M4.39 7A1.27 1.27 0 0 1 3.1 5.7V3.3a1.25 1.25 0 0 1 1.25-1.26h2.46a1.25 1.25 0 0 1 1.25 1.28 366.8 366.8 0 0 0 0 2.4c0 .33-.1.61-.31.85a1.2 1.2 0 0 1-.93.43H4.39Zm2.38-3.76H4.39c-.07 0-.08.01-.08.08V5.7c0 .08.02.1.1.1h2.36c.07 0 .09-.01.09-.09V3.33c0-.08-.02-.09-.1-.09Zm4.87 8.7h2.34a.84.84 0 0 1 .84.84v2.34a.84.84 0 0 1-.85.85h-2.32a.83.83 0 0 1-.85-.83V12.8c0-.33.15-.59.43-.75.13-.07.26-.1.4-.1Zm-.01-5.86c.89.7 1.44 1.61 1.68 2.72h-.7v.02l.02.02.78 1.36.16.27a9.44 9.44 0 0 1 .47.88l.01.02.59-1c.3-.52.61-1.05.94-1.57H14.72c-.03 0-.05 0-.05-.04a5.81 5.81 0 0 0-3.58-4.55 5.92 5.92 0 0 0-2.47-.44h-.03v1.35a4.55 4.55 0 0 1 3.04.96Zm-6.94 4.05a4.52 4.52 0 0 0 4.72 3.68v1.35h-.03a5.93 5.93 0 0 1-6.1-5.03H2.41c.52-.83 1-1.67 1.49-2.53l.05.08.07.12a1129.98 1129.98 0 0 1 1.24 2.07l.14.23.02.03H4.7Z" clip-rule="evenodd"/>'],["v8Cmd/"+o.c.AI3Help]:[18,18,'<g fill="#000" clip-path="url(#clip0_3154_584)"><path d="M9.7 13.63a.68.68 0 0 0-.18-.28.99.99 0 0 0-.28-.14H8.16a.9.9 0 0 0-.29.14.7.7 0 0 0-.2.26c-.03.1-.03.2 0 .29v.29a.52.52 0 0 0 0 .31c.05.11.13.2.22.28.1.06.2.11.3.14h1.07a.84.84 0 0 0 .41-.43.8.8 0 0 0 0-.31v-.3a.62.62 0 0 0 0-.3l.03.05ZM12.44 4.6c-.35-.45-.8-.82-1.32-1.07A4.9 4.9 0 0 0 9.31 3a4.42 4.42 0 0 0-2.16.38A6.1 6.1 0 0 0 5.3 4.72a.7.7 0 0 0-.2.27v.3c.04.08.1.15.15.22.07.08.17.15.28.19l.4.2a1 1 0 0 0 .66.14c.22-.06.43-.18.6-.34.25-.28.55-.5.89-.68.33-.16.7-.23 1.08-.18.3 0 .59.07.86.2.21.08.4.23.53.41.1.18.16.39.15.6 0 .21-.05.42-.15.61-.08.17-.2.32-.34.44-.15.13-.35.29-.6.47-.35.24-.68.51-1 .8-.26.3-.47.63-.62 1-.15.23-.26.49-.32.76-.04.28-.04.56 0 .84v.17c-.04.1-.04.2 0 .3.03.1.08.2.15.28a.98.98 0 0 0 .68.12h.42c.22 0 .44-.05.63-.17a.8.8 0 0 0 .3-.56v-.18a2.16 2.16 0 0 1 0-.53 1.29 1.29 0 0 1 .45-.82l.67-.48c.4-.29.7-.54.97-.78.28-.27.5-.58.68-.92.19-.43.28-.88.29-1.34a2.4 2.4 0 0 0-.48-1.45Z"/></g><defs><clipPath id="clip0_3154_584"><path fill="#fff" d="M5.1 3h7.8v12H5.1z"/></clipPath></defs>'],["v8Cmd/"+o.c.AIQ]:[18,18,'<g fill="#000" clip-path="url(#clip0_3154_590)"><path d="M14.44 3.35H3.56a1.75 1.75 0 0 0-1.71 1.79v5.47a1.75 1.75 0 0 0 1.71 1.79H6.8a.38.38 0 0 1 .32.18L8 14.06a1.16 1.16 0 0 0 2 0l.87-1.48a.38.38 0 0 1 .32-.18h3.24a1.75 1.75 0 0 0 1.71-1.79V5.14a1.75 1.75 0 0 0-1.7-1.79Zm.37 7.26a.38.38 0 0 1-.37.4H11.2a1.66 1.66 0 0 0-1.45.84L9 13.11l-.75-1.26A1.66 1.66 0 0 0 6.8 11H3.56a.38.38 0 0 1-.37-.4V5.14a.38.38 0 0 1 .37-.4h10.88a.38.38 0 0 1 .37.4v5.47Z"/><path d="M12.11 6.63a1 1 0 1 0-.14 2 1 1 0 0 0 .14-2ZM9 6.63a1 1 0 1 0-.14 2 1 1 0 0 0 .14-2ZM5.89 6.63a1 1 0 1 0-.14 2 1 1 0 0 0 .14-2Z"/></g><defs><clipPath id="clip0_3154_590"><path fill="#fff" d="M1.85 3.35h14.3v11.3H1.85z"/></clipPath></defs>'],["v8Cmd/"+o.c.AIGC]:[18,18,'<path fill="#000" d="M8.7 12.63v2.78a.7.7 0 0 1-1.39-.07v-2.78a.69.69 0 0 1 .96-.58.7.7 0 0 1 .43.65ZM5 11.02a.7.7 0 0 1 .93 1.04L4 13.98l-.05.05A.7.7 0 0 1 3.02 13l1.93-1.93.05-.05ZM4.38 8.3h.06a.7.7 0 0 1-.06 1.39H1.6a.7.7 0 0 1 .07-1.39h2.72ZM14.34 8.3h.07a.7.7 0 0 1-.07 1.39h-2.79a.69.69 0 0 1-.62-.69.7.7 0 0 1 .7-.7h2.7ZM3.03 4A.68.68 0 0 1 4 4l1.93 1.92.06.06a.7.7 0 1 1-1.05.92L3.02 5.01l-.04-.06a.69.69 0 0 1 .04-.92l.01-.02ZM12.05 4a.7.7 0 0 1 .91 1.01l-1.91 1.92-.06.05a.7.7 0 0 1-.93-1.04L11.99 4l.06-.05V4ZM8.7 2.66v2.79a.7.7 0 0 1-1.39-.07V2.6a.7.7 0 0 1 1.39.07Z"/><path fill="#000" fill-rule="evenodd" d="m14.7 14.26-3.73-3.76-.53-.53-1.42-1.42-.11-.12a1.02 1.02 0 0 0-.94-.19.95.95 0 0 0-.7.63 1 1 0 0 0 .25 1.05l.67.68.54.53 4.5 4.53.12.12a1.02 1.02 0 0 0 1.35-1.53v.01Zm-5.17-3.1L7.97 9.59a.46.46 0 0 1 0-.63.48.48 0 0 1 .66 0l.75.76.84.84-.7.6Z" clip-rule="evenodd"/>'],["v8Cmd/"+o.c.CCustomComponent]:[18,18,'<path fill="#000" d="M8.7 12.63v2.78a.7.7 0 0 1-1.39-.07v-2.78a.69.69 0 0 1 .96-.58.7.7 0 0 1 .43.65ZM5 11.02a.7.7 0 0 1 .93 1.04L4 13.98l-.05.05A.7.7 0 0 1 3.02 13l1.93-1.93.05-.05ZM4.38 8.3h.06a.7.7 0 0 1-.06 1.39H1.6a.7.7 0 0 1 .07-1.39h2.72ZM14.34 8.3h.07a.7.7 0 0 1-.07 1.39h-2.79a.69.69 0 0 1-.62-.69.7.7 0 0 1 .7-.7h2.7ZM3.03 4A.68.68 0 0 1 4 4l1.93 1.92.06.06a.7.7 0 1 1-1.05.92L3.02 5.01l-.04-.06a.69.69 0 0 1 .04-.92l.01-.02ZM12.05 4a.7.7 0 0 1 .91 1.01l-1.91 1.92-.06.05a.7.7 0 0 1-.93-1.04L11.99 4l.06-.05V4ZM8.7 2.66v2.79a.7.7 0 0 1-1.39-.07V2.6a.7.7 0 0 1 1.39.07Z"/><path fill="#000" fill-rule="evenodd" d="m14.7 14.26-3.73-3.76-.53-.53-1.42-1.42-.11-.12a1.02 1.02 0 0 0-.94-.19.95.95 0 0 0-.7.63 1 1 0 0 0 .25 1.05l.67.68.54.53 4.5 4.53.12.12a1.02 1.02 0 0 0 1.35-1.53v.01Zm-5.17-3.1L7.97 9.59a.46.46 0 0 1 0-.63.48.48 0 0 1 .66 0l.75.76.84.84-.7.6Z" clip-rule="evenodd"/>'],["v8Cmd/"+o.c.CategoryHelpCenter]:[18,18,'<g fill="#000" clip-path="url(#clip0_3154_584)"><path d="M9.7 13.63a.68.68 0 0 0-.18-.28.99.99 0 0 0-.28-.14H8.16a.9.9 0 0 0-.29.14.7.7 0 0 0-.2.26c-.03.1-.03.2 0 .29v.29a.52.52 0 0 0 0 .31c.05.11.13.2.22.28.1.06.2.11.3.14h1.07a.84.84 0 0 0 .41-.43.8.8 0 0 0 0-.31v-.3a.62.62 0 0 0 0-.3l.03.05ZM12.44 4.6c-.35-.45-.8-.82-1.32-1.07A4.9 4.9 0 0 0 9.31 3a4.42 4.42 0 0 0-2.16.38A6.1 6.1 0 0 0 5.3 4.72a.7.7 0 0 0-.2.27v.3c.04.08.1.15.15.22.07.08.17.15.28.19l.4.2a1 1 0 0 0 .66.14c.22-.06.43-.18.6-.34.25-.28.55-.5.89-.68.33-.16.7-.23 1.08-.18.3 0 .59.07.86.2.21.08.4.23.53.41.1.18.16.39.15.6 0 .21-.05.42-.15.61-.08.17-.2.32-.34.44-.15.13-.35.29-.6.47-.35.24-.68.51-1 .8-.26.3-.47.63-.62 1-.15.23-.26.49-.32.76-.04.28-.04.56 0 .84v.17c-.04.1-.04.2 0 .3.03.1.08.2.15.28a.98.98 0 0 0 .68.12h.42c.22 0 .44-.05.63-.17a.8.8 0 0 0 .3-.56v-.18a2.16 2.16 0 0 1 0-.53 1.29 1.29 0 0 1 .45-.82l.67-.48c.4-.29.7-.54.97-.78.28-.27.5-.58.68-.92.19-.43.28-.88.29-1.34a2.4 2.4 0 0 0-.48-1.45Z"/></g><defs><clipPath id="clip0_3154_584"><path fill="#fff" d="M5.1 3h7.8v12H5.1z"/></clipPath></defs>'],["v8Cmd/"+o.c.CategoryBW]:[18,18,'<g fill="#000" clip-path="url(#clip0_3168_1164)"><path d="M15.7 6.16A7.28 7.28 0 0 0 2.3 11.82a7.42 7.42 0 0 0 3.87 3.86 7.23 7.23 0 0 0 7.96-1.55 7.28 7.28 0 0 0 1.55-8v.03ZM14.96 9a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"/><path d="M9.65 8.35v-3.1a.65.65 0 1 0-1.3 0v3.1h-3.1a.65.65 0 1 0 0 1.3h3.1v3.12a.65.65 0 1 0 1.3 0V9.64h3.1a.65.65 0 1 0 0-1.3h-3.1Z"/></g><defs><clipPath id="clip0_3168_1164"><path fill="#fff" d="M1.73 1.73h14.53v14.53H1.73z"/></clipPath></defs>'],["v8Cmd/"+o.c.CategoryForm]:[18,18,'<g fill="#000" clip-path="url(#clip0_3168_1164)"><path d="M15.7 6.16A7.28 7.28 0 0 0 2.3 11.82a7.42 7.42 0 0 0 3.87 3.86 7.23 7.23 0 0 0 7.96-1.55 7.28 7.28 0 0 0 1.55-8v.03ZM14.96 9a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"/><path d="M9.65 8.35v-3.1a.65.65 0 1 0-1.3 0v3.1h-3.1a.65.65 0 1 0 0 1.3h3.1v3.12a.65.65 0 1 0 1.3 0V9.64h3.1a.65.65 0 1 0 0-1.3h-3.1Z"/></g><defs><clipPath id="clip0_3168_1164"><path fill="#fff" d="M1.73 1.73h14.53v14.53H1.73z"/></clipPath></defs>'],["v8Cmd/"+o.c.CategoryMultimedia]:[18,18,'<g fill="#000" clip-path="url(#clip0_3168_1164)"><path d="M15.7 6.16A7.28 7.28 0 0 0 2.3 11.82a7.42 7.42 0 0 0 3.87 3.86 7.23 7.23 0 0 0 7.96-1.55 7.28 7.28 0 0 0 1.55-8v.03ZM14.96 9a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"/><path d="M9.65 8.35v-3.1a.65.65 0 1 0-1.3 0v3.1h-3.1a.65.65 0 1 0 0 1.3h3.1v3.12a.65.65 0 1 0 1.3 0V9.64h3.1a.65.65 0 1 0 0-1.3h-3.1Z"/></g><defs><clipPath id="clip0_3168_1164"><path fill="#fff" d="M1.73 1.73h14.53v14.53H1.73z"/></clipPath></defs>'],["v8Cmd/"+o.c.CategoryNavigation]:[18,18,'<g fill="#000" clip-path="url(#clip0_3168_1164)"><path d="M15.7 6.16A7.28 7.28 0 0 0 2.3 11.82a7.42 7.42 0 0 0 3.87 3.86 7.23 7.23 0 0 0 7.96-1.55 7.28 7.28 0 0 0 1.55-8v.03ZM14.96 9a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"/><path d="M9.65 8.35v-3.1a.65.65 0 1 0-1.3 0v3.1h-3.1a.65.65 0 1 0 0 1.3h3.1v3.12a.65.65 0 1 0 1.3 0V9.64h3.1a.65.65 0 1 0 0-1.3h-3.1Z"/></g><defs><clipPath id="clip0_3168_1164"><path fill="#fff" d="M1.73 1.73h14.53v14.53H1.73z"/></clipPath></defs>'],["v8Cmd/"+o.c.CategoryShape]:[18,18,'<g fill="#000" clip-path="url(#clip0_3168_1164)"><path d="M15.7 6.16A7.28 7.28 0 0 0 2.3 11.82a7.42 7.42 0 0 0 3.87 3.86 7.23 7.23 0 0 0 7.96-1.55 7.28 7.28 0 0 0 1.55-8v.03ZM14.96 9a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"/><path d="M9.65 8.35v-3.1a.65.65 0 1 0-1.3 0v3.1h-3.1a.65.65 0 1 0 0 1.3h3.1v3.12a.65.65 0 1 0 1.3 0V9.64h3.1a.65.65 0 1 0 0-1.3h-3.1Z"/></g><defs><clipPath id="clip0_3168_1164"><path fill="#fff" d="M1.73 1.73h14.53v14.53H1.73z"/></clipPath></defs>'],["v8Cmd/"+o.c.CategorySelected]:[18,18,'<path fill="#000" fill-rule="evenodd" d="M3.2 3.15v-.03h7.13c.08 0 .15 0 .23-.03a.6.6 0 0 0 .26-.98.61.61 0 0 0-.47-.2H8.98a6259 6259 0 0 0-6 0c-.63.12-1.06.65-1.04 1.25v6.87a.63.63 0 1 0 1.25 0V3.14Zm3.6 3.47h8.01V9.9a.62.62 0 0 0 .7.63c.33-.04.55-.29.55-.6V6.62A1.23 1.23 0 0 0 14.8 5.4H6.83c-.1 0-.2 0-.3.03-.6.13-.98.65-.97 1.22v6.87c0 .43.17.76.51 1 .23.18.5.25.79.25H9.4c.24-.03.46-.21.52-.46a.6.6 0 0 0-.23-.64.66.66 0 0 0-.4-.12H6.9a.9.9 0 0 1-.06 0H6.8V6.61ZM5 4.87v.1a28385.6 28385.6 0 0 1-.03 6.97.62.62 0 0 1-.6.47.62.62 0 0 1-.63-.65 7538.9 7538.9 0 0 1 0-6.06v-.79A1.24 1.24 0 0 1 5 3.65h7.16a.62.62 0 0 1 .58.4.6.6 0 0 1-.44.8 3451.98 3451.98 0 0 1-4.26.02H5Zm7.4 8.24v-.07l.02.01.03.04 1.06 1.83.16.27.35.58c.24.42.83.44 1.1.05a.64.64 0 0 0 .04-.72l-.19-.32-.09-.15-1.31-2.25a1.11 1.11 0 0 1-.04-.07l.06.02.28.17.37.22c.16.1.34.13.52.08a.63.63 0 0 0 .48-.54.63.63 0 0 0-.31-.67l-1.57-.95a618.13 618.13 0 0 1-1.27-.76.66.66 0 0 0-.56-.07.66.66 0 0 0-.46.63v3.58a.66.66 0 0 0 1.2.39.66.66 0 0 0 .12-.4 81.05 81.05 0 0 0 0-.9Z" clip-rule="evenodd"/>']}},56146:(Et,ke,e)=>{"use strict";e.d(ke,{C:()=>T});var o=e(80452);const g={...{"design/autoFillPanel/person":[21,21,'<path d="m15.34 16.916.008-.002c.194-.031.584-.095.928-.268.35-.176.662-.47.662-.966v-.266c0-2.52-2.082-4.569-4.638-4.569H9.588c-2.556 0-4.638 2.049-4.638 4.57v.265c0 .506.311.805.662.982.349.176.745.237.938.266.794.122 1.885.122 3.033.122H12.298c1.196 0 2.253-.009 3.042-.134zm-.142-.863c-.72.116-1.738.125-2.902.125H9.585c-1.122 0-2.176 0-2.904-.112a2.865 2.865 0 0 1-.595-.147.683.683 0 0 1-.199-.114c-.046-.041-.066-.083-.066-.125v-.266c0-2.037 1.689-3.696 3.765-3.696h2.708c2.077 0 3.766 1.659 3.766 3.696v.266c0 .04-.025.082-.083.126a.903.903 0 0 1-.234.117 3.2 3.2 0 0 1-.545.13zM7.242 6.586c0 2.004 1.656 3.635 3.69 3.635 2.033 0 3.689-1.63 3.689-3.635S12.965 2.95 10.93 2.95c-2.033 0-3.689 1.63-3.689 3.636zm.873 0c0-1.524 1.263-2.764 2.816-2.764 1.554 0 2.817 1.24 2.817 2.764 0 1.523-1.263 2.763-2.816 2.763-1.554 0-2.817-1.24-2.817-2.763z" fill="#333" stroke="#333" stroke-width=".1"/>'],"design/autoFillPanel/more":[12,3,'<circle cx="1.2" cy="1.2" r="1.2" fill="#999"/><circle cx="6" cy="1.2" r="1.2" fill="#999"/><circle cx="10.8" cy="1.2" r="1.2" fill="#999"/>'],"design/autoFillPanel/phone":[21,21,'<path d="M6.888 3.873c-2.269 1.693-2.55 5.408-.532 9.152 1.972 3.658 5.098 5.602 8.33 4.604.84-.26 1.646-.977 1.646-1.786 0-1.405-1.608-4.204-2.813-4.422-.338-.06-.747.061-1.354.324l-.194.086-.152.07c-.148.068-.272.129-.483.233l-.091.045-.004-.004a2.006 2.006 0 0 1-.11-.116 6.013 6.013 0 0 1-.587-.826l-.06-.1a9.607 9.607 0 0 1-.686-1.399l-.015-.04.383-.165.235-.103.224-.1.172-.081c.436-.207.695-.356.84-.515.833-.905-.817-5.28-2.17-5.532-.805-.15-1.778.112-2.5.618l-.08.057h.001zm2.371.44c.173.032.677.81 1.055 1.813.189.5.332 1.006.399 1.404l.011.07c.018.112.028.225.03.34l-.002.051-.071.042-.04.021c-.125.068-.29.15-.49.241l-.329.148c-.116.051-.233.102-.377.163l-.521.222-.078.036-.026.014-.015-.015c-.03-.021-.058.055-.265.644.344 1.475 1.798 3.867 2.692 3.869l.11-.012a.323.323 0 0 0 .049-.01l.075-.026.065-.028.234-.114.397-.194c.061-.03.12-.057.184-.087l.181-.082.087-.038c.173-.077.35-.144.53-.2l.063-.018c.077-.02.122-.028.111-.03.567.102 1.88 2.388 1.88 3.306 0 .193-.427.574-.847.703-2.623.81-5.254-.825-6.997-4.06-1.778-3.296-1.543-6.395.212-7.704.488-.365 1.19-.563 1.693-.47zM13.29 3c1.544 1.258 1.995 3.176 1.327 5.07l-.037.101-1.062-.397c.545-1.457.247-2.875-.872-3.835l-.072-.06L13.29 3z" fill="#333"/>'],"design/autoFillPanel/city":[21,21,'<path d="M3.136 17.203v.344H16.789V6.907a.7.7 0 0 0-.412-.637l-3.784-1.712-.003-.001-.006-.003a.997.997 0 0 0-.392-.079H7.775a.702.702 0 0 0-.702.702v4.825H3.802a.702.702 0 0 0-.702.701v6.5h.036zm5.083-7.201H7.86v-4.74h4.15v6.356l-3.392-1.534h-.002l-.007-.004a.997.997 0 0 0-.391-.078zm3.792 2.483v4.274H8.825v-5.714l3.186 1.44zm-3.974-1.694v5.968h-4.15v-5.968h4.15zm7.965 5.968h-3.204V5.517l3.204 1.45v9.792z" fill="#333" stroke="#333" stroke-width=".1"/><path d="M9.003 7.056h1.842a.344.344 0 1 0 0-.687H9.003a.343.343 0 0 0-.344.344c0 .19.153.343.344.343zm0 1.842h1.842a.344.344 0 1 0 0-.687H9.003a.343.343 0 0 0-.344.344c0 .19.153.343.344.343zm-3.992 4.299h1.842c.19 0 .344-.153.344-.344a.343.343 0 0 0-.344-.344H5.011a.343.343 0 0 0-.344.344c0 .19.153.344.344.344zm0 1.842h1.842c.19 0 .344-.153.344-.344a.343.343 0 0 0-.344-.343H5.011a.343.343 0 0 0-.344.343c0 .19.153.344.344.344z" fill="#333"/>'],"design/autoFillPanel/country":[21,21,'<path d="M10.848 8.351c.41 0 .796.16 1.086.45.29.29.45.676.45 1.086 0 .41-.16.796-.45 1.086-.29.29-.676.45-1.086.45a1.537 1.537 0 0 1 0-3.071zm0-1.024a2.56 2.56 0 1 0 0 5.119 2.56 2.56 0 0 0 0-5.119z" fill="#333"/><path d="M10.848 5.024c1.407 0 2.748.612 3.677 1.68 1.665 1.913 1.504 4.878-.367 6.75l-3.31 3.31-3.311-3.31c-1.871-1.872-2.032-4.837-.366-6.75a4.875 4.875 0 0 1 3.677-1.68zm0-1.024c-1.636 0-3.27.677-4.45 2.031-2.048 2.355-1.792 5.94.415 8.146l3.673 3.673a.51.51 0 0 0 .724 0l3.672-3.673c2.207-2.207 2.464-5.791.415-8.146A5.874 5.874 0 0 0 10.847 4z" fill="#333"/>'],"design/autoFillPanel/content":[21,21,'<path d="M10.381 6.99H6.836v.98h3.545v-.98zm-3.545 3.92h7.09v-.98h-7.09v.98zm0 2.94h7.09v-.98h-7.09v.98zm9.785-7.63-3.404-3.08a.54.54 0 0 0-.283-.14H4.496A.482.482 0 0 0 4 3.49v13.02c0 .28.213.49.496.49h11.841c.284 0 .496-.21.496-.49V6.57c-.07-.07-.141-.21-.212-.35zm-3.475-1.89L15.7 6.71h-2.553V4.33zm2.624 11.69H4.993V3.98h7.16V7.2c0 .28.213.49.497.49h3.19v8.33h-.07z" fill="#333"/>'],"design/autoFillPanel/dateTime":[21,21,'<path d="M16 10a6 6 0 1 0-12 0 6 6 0 0 0 12 0zm1 0a7 7 0 1 1-14 0 7 7 0 0 1 14 0z" fill="#333"/><path d="m10.5 10.522 1.855 1.85a.502.502 0 1 1-.71.71l-2-2a.5.5 0 0 1-.145-.355v-4.5a.5.5 0 0 1 1 0v4.295z" fill="#333"/>'],"design/autoFillPanel/email":[21,21,'<path d="M5.313 15.55h11.375c.75 0 1.362-.611 1.362-1.363V6.314c0-.752-.611-1.363-1.363-1.363H5.313c-.752 0-1.363.611-1.363 1.362v7.875c0 .752.611 1.363 1.363 1.363zm-.274-9.512a.387.387 0 0 1 .274-.113h11.375a.387.387 0 0 1 .387.388v7.875a.389.389 0 0 1-.387.387H5.313a.387.387 0 0 1-.388-.387V6.311c0-.102.04-.2.114-.274z" fill="#333" stroke="#333" stroke-width=".1"/><path d="M15.106 7.11a.487.487 0 0 1 .54.81v.001l-4.376 2.917a.478.478 0 0 1-.27.082m4.106-3.81-4.376 3.728c.08.053.174.082.27.082m4.106-3.81h-.001L11 9.846 6.896 7.11a.487.487 0 1 0-.54.812l4.374 2.916 4.376-3.729zM11 10.92v-.05.05z" fill="#333" stroke="#333" stroke-width=".1"/>'],"design/autoFillPanel/number":[21,21,'<path d="M15.505 4h-9.69c-1.071 0-1.939.896-1.939 2v6.981c0 1.105.868 2.003 1.94 2.003h2.018c.17 0 .335.045.482.132a.983.983 0 0 1 .354.361l1.152 2.029a.954.954 0 0 0 1.672 0l1.154-2.03a.984.984 0 0 1 .355-.36.946.946 0 0 1 .481-.132h2.022c1.069 0 1.934-.895 1.934-1.997V5.996C17.44 4.894 16.574 4 15.505 4zm.967 8.987c0 .264-.102.518-.283.705a.952.952 0 0 1-.683.293h-2.022c-.338 0-.67.09-.963.263a1.966 1.966 0 0 0-.708.723L10.66 17v-.001l-1.153-2.028c-.171-.3-.416-.55-.709-.723a1.888 1.888 0 0 0-.963-.263H5.815a.958.958 0 0 1-.687-.294 1.02 1.02 0 0 1-.284-.71v-6.98a1.03 1.03 0 0 1 .285-.709A.969.969 0 0 1 5.815 5h9.69a.94.94 0 0 1 .684.292 1 1 0 0 1 .283.705v6.991z" fill="#333"/><path d="M12.116 7.491a.47.47 0 0 0-.343.146.501.501 0 0 0-.141.353v2.502L9.591 7.69a.47.47 0 0 0-.54-.174.485.485 0 0 0-.239.183.51.51 0 0 0-.091.291v3.997c0 .132.05.26.142.353a.477.477 0 0 0 .684 0 .508.508 0 0 0 .142-.353v-2.5l2.039 2.801a.47.47 0 0 0 .78-.008.51.51 0 0 0 .09-.291V7.99a.514.514 0 0 0-.141-.353.483.483 0 0 0-.342-.146z" fill="#333"/>'],"design/autoFillPanel/animal":[21,21,'<mask id="a" maskUnits="userSpaceOnUse" x="2" y="2" width="18" height="16" fill="#000"><path fill="#fff" d="M2 2h18v16H2z"/><path d="M5.263 10.934c-.1 0-.202-.01-.303-.027-.606-.105-1.164-.513-1.534-1.117a2.884 2.884 0 0 1-.415-1.748c.055-.623.32-1.156.747-1.5a1.684 1.684 0 0 1 1.366-.35c.606.105 1.165.512 1.535 1.117.322.526.468 1.147.415 1.747-.055.624-.32 1.157-.747 1.5a1.683 1.683 0 0 1-1.064.378zm-.446-4.007a.91.91 0 0 0-.58.208c-.264.214-.43.559-.468.976-.04.438.07.894.307 1.283.256.417.625.695 1.014.764a.928.928 0 0 0 .757-.193c.263-.213.428-.558.467-.975a2.12 2.12 0 0 0-.307-1.283c-.256-.417-.625-.696-1.014-.764a1.108 1.108 0 0 0-.176-.016zM9.01 7.934c-.364 0-.726-.126-1.042-.366-.522-.397-.871-1.06-.96-1.816-.075-.633.043-1.262.333-1.77.309-.539.772-.882 1.307-.964.442-.068.898.056 1.281.347.522.397.871 1.06.96 1.817.075.632-.043 1.261-.333 1.768-.309.54-.772.883-1.307.965-.078.013-.159.019-.239.019zm-.118-4.172a.98.98 0 0 0-.126.01c-.3.045-.57.255-.76.588-.21.366-.293.83-.238 1.302.063.543.312 1.03.665 1.298a.92.92 0 0 0 .703.2c.301-.046.57-.255.76-.589.21-.366.294-.829.239-1.302-.063-.543-.313-1.029-.665-1.298a.974.974 0 0 0-.578-.21zm8.48 7.172c-.387 0-.755-.13-1.062-.378-.425-.343-.69-.876-.747-1.5-.054-.6.093-1.221.415-1.747.37-.606.929-1.012 1.535-1.117.493-.086.98.038 1.366.35.425.344.69.877.747 1.5.053.6-.093 1.222-.415 1.748-.37.606-.928 1.012-1.534 1.117a1.66 1.66 0 0 1-.305.027zm.445-4.007c-.057 0-.116.006-.175.016-.389.066-.758.345-1.014.764a2.128 2.128 0 0 0-.307 1.283c.037.415.202.762.467.975a.914.914 0 0 0 .757.193c.389-.067.758-.345 1.014-.764.236-.387.345-.843.307-1.283-.037-.415-.202-.762-.467-.976a.91.91 0 0 0-.582-.208zM13.7 7.934c-.08 0-.16-.006-.24-.02-.534-.081-.999-.424-1.308-.964-.29-.507-.408-1.136-.333-1.768.088-.757.438-1.418.96-1.817a1.683 1.683 0 0 1 1.281-.347c.534.082.999.425 1.308.965.29.507.407 1.136.333 1.769-.088.756-.438 1.417-.96 1.816-.313.24-.675.366-1.041.366zm.12-4.172a.98.98 0 0 0-.578.21c-.352.268-.6.752-.665 1.297-.055.473.03.936.239 1.302.19.334.46.543.76.589.301.046.549-.084.703-.2.353-.269.6-.753.665-1.298.056-.473-.03-.936-.238-1.302-.19-.333-.461-.543-.76-.589a.978.978 0 0 0-.126-.01zM14.286 17c-.038 0-.076-.002-.114-.004-.4-.023-.79-.16-1.123-.4-.536-.385-1.113-.58-1.713-.58-.6 0-1.176.195-1.714.58-.333.24-.722.377-1.122.4a2.168 2.168 0 0 1-1.925-.982 2.123 2.123 0 0 1-.336-1.143v-.044c0-1.677.52-3.257 1.464-4.45a5.16 5.16 0 0 1 1.618-1.376 4.226 4.226 0 0 1 2.015-.513c.7 0 1.378.174 2.014.513a5.16 5.16 0 0 1 1.618 1.376c.944 1.193 1.464 2.773 1.464 4.45v.044a2.123 2.123 0 0 1-.335 1.144 2.153 2.153 0 0 1-.832.747 2.135 2.135 0 0 1-.98.238zm-2.95-1.744c.752 0 1.498.25 2.157.722.427.305.959.345 1.428.107.466-.238.747-.694.75-1.216v-.04c0-3.074-1.944-5.576-4.333-5.576-2.39 0-4.334 2.502-4.334 5.576v.04c.003.524.284.978.75 1.216.467.238 1.001.198 1.428-.107.656-.472 1.4-.722 2.154-.722z"/></mask><path d="M5.263 10.934c-.1 0-.202-.01-.303-.027-.606-.105-1.164-.513-1.534-1.117a2.884 2.884 0 0 1-.415-1.748c.055-.623.32-1.156.747-1.5a1.684 1.684 0 0 1 1.366-.35c.606.105 1.165.512 1.535 1.117.322.526.468 1.147.415 1.747-.055.624-.32 1.157-.747 1.5a1.683 1.683 0 0 1-1.064.378zm-.446-4.007a.91.91 0 0 0-.58.208c-.264.214-.43.559-.468.976-.04.438.07.894.307 1.283.256.417.625.695 1.014.764a.928.928 0 0 0 .757-.193c.263-.213.428-.558.467-.975a2.12 2.12 0 0 0-.307-1.283c-.256-.417-.625-.696-1.014-.764a1.108 1.108 0 0 0-.176-.016zM9.01 7.934c-.364 0-.726-.126-1.042-.366-.522-.397-.871-1.06-.96-1.816-.075-.633.043-1.262.333-1.77.309-.539.772-.882 1.307-.964.442-.068.898.056 1.281.347.522.397.871 1.06.96 1.817.075.632-.043 1.261-.333 1.768-.309.54-.772.883-1.307.965-.078.013-.159.019-.239.019zm-.118-4.172a.98.98 0 0 0-.126.01c-.3.045-.57.255-.76.588-.21.366-.293.83-.238 1.302.063.543.312 1.03.665 1.298a.92.92 0 0 0 .703.2c.301-.046.57-.255.76-.589.21-.366.294-.829.239-1.302-.063-.543-.313-1.029-.665-1.298a.974.974 0 0 0-.578-.21zm8.48 7.172c-.387 0-.755-.13-1.062-.378-.425-.343-.69-.876-.747-1.5-.054-.6.093-1.221.415-1.747.37-.606.929-1.012 1.535-1.117.493-.086.98.038 1.366.35.425.344.69.877.747 1.5.053.6-.093 1.222-.415 1.748-.37.606-.928 1.012-1.534 1.117a1.66 1.66 0 0 1-.305.027zm.445-4.007c-.057 0-.116.006-.175.016-.389.066-.758.345-1.014.764a2.128 2.128 0 0 0-.307 1.283c.037.415.202.762.467.975a.914.914 0 0 0 .757.193c.389-.067.758-.345 1.014-.764.236-.387.345-.843.307-1.283-.037-.415-.202-.762-.467-.976a.91.91 0 0 0-.582-.208zM13.7 7.934c-.08 0-.16-.006-.24-.02-.534-.081-.999-.424-1.308-.964-.29-.507-.408-1.136-.333-1.768.088-.757.438-1.418.96-1.817a1.683 1.683 0 0 1 1.281-.347c.534.082.999.425 1.308.965.29.507.407 1.136.333 1.769-.088.756-.438 1.417-.96 1.816-.313.24-.675.366-1.041.366zm.12-4.172a.98.98 0 0 0-.578.21c-.352.268-.6.752-.665 1.297-.055.473.03.936.239 1.302.19.334.46.543.76.589.301.046.549-.084.703-.2.353-.269.6-.753.665-1.298.056-.473-.03-.936-.238-1.302-.19-.333-.461-.543-.76-.589a.978.978 0 0 0-.126-.01zM14.286 17c-.038 0-.076-.002-.114-.004-.4-.023-.79-.16-1.123-.4-.536-.385-1.113-.58-1.713-.58-.6 0-1.176.195-1.714.58-.333.24-.722.377-1.122.4a2.168 2.168 0 0 1-1.925-.982 2.123 2.123 0 0 1-.336-1.143v-.044c0-1.677.52-3.257 1.464-4.45a5.16 5.16 0 0 1 1.618-1.376 4.226 4.226 0 0 1 2.015-.513c.7 0 1.378.174 2.014.513a5.16 5.16 0 0 1 1.618 1.376c.944 1.193 1.464 2.773 1.464 4.45v.044a2.123 2.123 0 0 1-.335 1.144 2.153 2.153 0 0 1-.832.747 2.135 2.135 0 0 1-.98.238zm-2.95-1.744c.752 0 1.498.25 2.157.722.427.305.959.345 1.428.107.466-.238.747-.694.75-1.216v-.04c0-3.074-1.944-5.576-4.333-5.576-2.39 0-4.334 2.502-4.334 5.576v.04c.003.524.284.978.75 1.216.467.238 1.001.198 1.428-.107.656-.472 1.4-.722 2.154-.722z" fill="#333"/><path d="M5.263 10.934c-.1 0-.202-.01-.303-.027-.606-.105-1.164-.513-1.534-1.117a2.884 2.884 0 0 1-.415-1.748c.055-.623.32-1.156.747-1.5a1.684 1.684 0 0 1 1.366-.35c.606.105 1.165.512 1.535 1.117.322.526.468 1.147.415 1.747-.055.624-.32 1.157-.747 1.5a1.683 1.683 0 0 1-1.064.378zm-.446-4.007a.91.91 0 0 0-.58.208c-.264.214-.43.559-.468.976-.04.438.07.894.307 1.283.256.417.625.695 1.014.764a.928.928 0 0 0 .757-.193c.263-.213.428-.558.467-.975a2.12 2.12 0 0 0-.307-1.283c-.256-.417-.625-.696-1.014-.764a1.108 1.108 0 0 0-.176-.016zM9.01 7.934c-.364 0-.726-.126-1.042-.366-.522-.397-.871-1.06-.96-1.816-.075-.633.043-1.262.333-1.77.309-.539.772-.882 1.307-.964.442-.068.898.056 1.281.347.522.397.871 1.06.96 1.817.075.632-.043 1.261-.333 1.768-.309.54-.772.883-1.307.965-.078.013-.159.019-.239.019zm-.118-4.172a.98.98 0 0 0-.126.01c-.3.045-.57.255-.76.588-.21.366-.293.83-.238 1.302.063.543.312 1.03.665 1.298a.92.92 0 0 0 .703.2c.301-.046.57-.255.76-.589.21-.366.294-.829.239-1.302-.063-.543-.313-1.029-.665-1.298a.974.974 0 0 0-.578-.21zm8.48 7.172c-.387 0-.755-.13-1.062-.378-.425-.343-.69-.876-.747-1.5-.054-.6.093-1.221.415-1.747.37-.606.929-1.012 1.535-1.117.493-.086.98.038 1.366.35.425.344.69.877.747 1.5.053.6-.093 1.222-.415 1.748-.37.606-.928 1.012-1.534 1.117a1.66 1.66 0 0 1-.305.027zm.445-4.007c-.057 0-.116.006-.175.016-.389.066-.758.345-1.014.764a2.128 2.128 0 0 0-.307 1.283c.037.415.202.762.467.975a.914.914 0 0 0 .757.193c.389-.067.758-.345 1.014-.764.236-.387.345-.843.307-1.283-.037-.415-.202-.762-.467-.976a.91.91 0 0 0-.582-.208zM13.7 7.934c-.08 0-.16-.006-.24-.02-.534-.081-.999-.424-1.308-.964-.29-.507-.408-1.136-.333-1.768.088-.757.438-1.418.96-1.817a1.683 1.683 0 0 1 1.281-.347c.534.082.999.425 1.308.965.29.507.407 1.136.333 1.769-.088.756-.438 1.417-.96 1.816-.313.24-.675.366-1.041.366zm.12-4.172a.98.98 0 0 0-.578.21c-.352.268-.6.752-.665 1.297-.055.473.03.936.239 1.302.19.334.46.543.76.589.301.046.549-.084.703-.2.353-.269.6-.753.665-1.298.056-.473-.03-.936-.238-1.302-.19-.333-.461-.543-.76-.589a.978.978 0 0 0-.126-.01zM14.286 17c-.038 0-.076-.002-.114-.004-.4-.023-.79-.16-1.123-.4-.536-.385-1.113-.58-1.713-.58-.6 0-1.176.195-1.714.58-.333.24-.722.377-1.122.4a2.168 2.168 0 0 1-1.925-.982 2.123 2.123 0 0 1-.336-1.143v-.044c0-1.677.52-3.257 1.464-4.45a5.16 5.16 0 0 1 1.618-1.376 4.226 4.226 0 0 1 2.015-.513c.7 0 1.378.174 2.014.513a5.16 5.16 0 0 1 1.618 1.376c.944 1.193 1.464 2.773 1.464 4.45v.044a2.123 2.123 0 0 1-.335 1.144 2.153 2.153 0 0 1-.832.747 2.135 2.135 0 0 1-.98.238zm-2.95-1.744c.752 0 1.498.25 2.157.722.427.305.959.345 1.428.107.466-.238.747-.694.75-1.216v-.04c0-3.074-1.944-5.576-4.333-5.576-2.39 0-4.334 2.502-4.334 5.576v.04c.003.524.284.978.75 1.216.467.238 1.001.198 1.428-.107.656-.472 1.4-.722 2.154-.722z" stroke="#333" stroke-width=".2" mask="url(#a)"/>'],"design/autoFillPanel/tech":[21,21,'<path d="M9.089 12.568a3.131 3.131 0 0 0-2.044-.758A3.15 3.15 0 0 0 3.9 14.955 3.148 3.148 0 0 0 7.045 18.1a3.148 3.148 0 0 0 3.145-3.145c0-.702-.232-1.351-.623-1.875l.7-.7c.353.217.768.343 1.211.343a2.3 2.3 0 0 0 1.453-.515l.718.719a2.266 2.266 0 0 0 1.91 3.476 2.266 2.266 0 0 0 2.264-2.263 2.266 2.266 0 0 0-2.264-2.264c-.55 0-1.053.197-1.446.524l-.71-.71c.244-.366.386-.806.386-1.278 0-.442-.125-.856-.341-1.208l.682-.682a1.922 1.922 0 0 0 2.918-1.638 1.92 1.92 0 1 0-3.44 1.17l-.615.614a2.301 2.301 0 0 0-1.515-.566c-.472 0-.911.142-1.277.386l-.695-.695A2.443 2.443 0 0 0 7.546 3.9a2.442 2.442 0 0 0-2.44 2.44 2.443 2.443 0 0 0 2.44 2.44c.55 0 1.058-.182 1.467-.49l.67.67a2.3 2.3 0 0 0-.515 1.452 2.3 2.3 0 0 0 .565 1.512l-.644.644zm4-2.154c0 .386-.136.74-.363 1.018a.355.355 0 0 0-.097.109c-.292.298-.7.484-1.15.484a1.613 1.613 0 0 1-1.612-1.611c0-.889.724-1.611 1.611-1.611.889 0 1.611.722 1.611 1.61zM4.6 14.955a2.448 2.448 0 0 1 2.446-2.445 2.448 2.448 0 0 1 2.445 2.445 2.447 2.447 0 0 1-2.445 2.446 2.447 2.447 0 0 1-2.446-2.446zM5.806 6.34c0-.959.78-1.739 1.74-1.739.959 0 1.74.78 1.74 1.74 0 .959-.781 1.739-1.74 1.739-.96 0-1.74-.78-1.74-1.74zm8.19 7.8c0-.863.701-1.565 1.563-1.565.863 0 1.565.702 1.565 1.565 0 .862-.702 1.564-1.565 1.564a1.566 1.566 0 0 1-1.564-1.564zm-.085-7.256a1.22 1.22 0 1 1 1.218 1.218 1.22 1.22 0 0 1-1.218-1.218z" fill="#333" stroke="#333" stroke-width=".2"/>'],"design/autoFillPanel/nature":[21,21,'<path d="M18.03 14.774h-.768c-.007-.01-.007-.021-.015-.032l-6.015-7.516a.386.386 0 0 0-.306-.143.382.382 0 0 0-.3.162l-2.642 3.763-.422-.56a.37.37 0 0 0-.296-.152c-.113-.016-.229.05-.302.143l-3.421 4.3c-.008.01-.011.024-.019.035H2.318c-.21 0-.38.173-.38.385 0 .213.17.385.38.385h15.713c.21 0 .38-.172.38-.385a.383.383 0 0 0-.38-.385zm-7.073-6.668 5.335 6.668h-5.487c-.005-.008-.005-.016-.013-.024L8.464 11.65l2.493-3.545zm-3.705 3.197 2.606 3.468H4.494l2.758-3.468zm-2.194-4.06c.88 0 1.6-.729 1.6-1.622 0-.895-.72-1.621-1.6-1.621-.881 0-1.6.728-1.6 1.621 0 .896.719 1.621 1.6 1.621zm0-2.472c.464 0 .839.382.839.85 0 .47-.378.85-.84.85a.846.846 0 0 1-.838-.85c0-.468.378-.85.839-.85zm9.551 12.458H5.865c-.21 0-.38.173-.38.386 0 .212.17.385.38.385h8.744c.21 0 .38-.173.38-.385a.383.383 0 0 0-.38-.386z" fill="#333"/><path fill-rule="evenodd" clip-rule="evenodd" d="M17.247 14.742c.004.005.006.01.008.016l.008.016h.768c.21 0 .38.173.38.385 0 .213-.17.385-.38.385H2.318a.383.383 0 0 1-.38-.385c0-.213.17-.385.38-.385h1.206l.01-.017.009-.018 3.421-4.3c.073-.093.189-.16.301-.143a.37.37 0 0 1 .297.151l.422.561 2.643-3.763c.07-.098.18-.16.298-.162.124 0 .231.05.307.143l6.015 7.516zm-9.266-3.9 2.568-3.657a.477.477 0 0 1 .374-.202h.002c.151 0 .286.062.381.179h.001l6.01 7.512h.714c.261 0 .477.216.477.485 0 .27-.216.485-.477.485H2.318a.481.481 0 0 1-.477-.485c0-.27.216-.485.477-.485H3.47l3.42-4.298c.086-.108.229-.199.383-.18a.466.466 0 0 1 .367.19l.342.455zm2.976-2.736L8.464 11.65l2.328 3.099c.005.005.006.01.008.014l.005.01h5.487l-5.335-6.668zm.005.163-2.377 3.38 2.272 3.025h5.23l-5.125-6.405zm-3.71 3.034-2.758 3.468h5.364l-2.606-3.468zm-.002.16L4.7 14.671h4.96l-2.41-3.208zm-.496-5.842c0 .95-.763 1.721-1.696 1.721a1.71 1.71 0 0 1-1.696-1.72c0-.95.763-1.722 1.696-1.722a1.71 1.71 0 0 1 1.696 1.721zm-.954 0c0-.41-.33-.75-.742-.75-.41 0-.742.34-.742.75 0 .411.33.75.742.75.41 0 .742-.337.742-.75zm.065 11.508h8.744c.262 0 .477.216.477.486s-.215.485-.477.485H5.865a.481.481 0 0 1-.477-.485c0-.27.216-.486.477-.486zm.792-11.508c0 .893-.718 1.621-1.6 1.621-.88 0-1.598-.725-1.598-1.62C3.459 4.727 4.177 4 5.058 4c.88 0 1.6.726 1.6 1.621zm-.76 0a.846.846 0 0 0-.84-.85.847.847 0 0 0-.838.85c0 .468.375.85.839.85.461 0 .839-.38.839-.85zM5.865 17.23h8.744c.21 0 .38.173.38.386 0 .212-.17.385-.38.385H5.865a.383.383 0 0 1-.38-.385c0-.213.17-.386.38-.386z" fill="#333"/>'],"design/autoFillPanel/business":[21,21,'<path d="M16.473 5.867c0-.562-.475-1.06-1.342-1.4-.76-.3-1.77-.467-2.833-.467-1.063 0-2.073.166-2.834.467-.874.34-1.35.838-1.35 1.4v2.681a10.867 10.867 0 0 0-1.032-.055c-1.062 0-2.072.166-2.833.466-.867.348-1.342.847-1.342 1.408v5.766c0 .562.475 1.06 1.341 1.4.762.3 1.772.467 2.834.467 1.063 0 2.073-.166 2.834-.467.754-.3 1.213-.712 1.319-1.186.347.04.7.055 1.055.055 1.063 0 2.073-.166 2.834-.466.867-.34 1.341-.839 1.341-1.4v-.048l.008-8.621zm-.67 6.525c0 .483-1.373 1.17-3.513 1.17-.354 0-.7-.015-1.032-.055v-1.44c.339.04.678.056 1.032.056 1.063 0 2.073-.166 2.834-.466a3.49 3.49 0 0 0 .678-.348v1.083zm-5.209-.016c0 .483-1.371 1.17-3.512 1.17-2.14 0-3.512-.695-3.512-1.17v-.957c.189.127.415.245.679.348.76.3 1.77.467 2.833.467 1.063 0 2.073-.166 2.834-.467.264-.103.49-.221.678-.348v.957zM3.57 13.428c.189.127.415.245.679.348.76.3 1.77.467 2.833.467 1.063 0 2.073-.166 2.834-.467a3.49 3.49 0 0 0 .678-.348v.83c0 .483-1.371 1.171-3.512 1.171-2.14 0-3.512-.696-3.512-1.17v-.83zm12.232-3.171c0 .482-1.371 1.17-3.512 1.17-.354 0-.7-.016-1.032-.055v-1.005c0-.15-.038-.3-.106-.443.37.04.746.064 1.138.064 1.063 0 2.073-.167 2.834-.467.264-.103.49-.222.678-.348v1.084zm0-2.144c0 .482-1.371 1.17-3.512 1.17-2.14 0-3.512-.695-3.512-1.17V6.919c.188.126.415.245.678.348.761.3 1.771.466 2.834.466 1.063 0 2.073-.166 2.834-.466.264-.103.49-.222.678-.348v1.194zM12.29 4.688c2.14 0 3.512.696 3.512 1.17 0 .475-1.364 1.18-3.512 1.18-2.14 0-3.512-.697-3.512-1.171 0-.475 1.372-1.179 3.512-1.179zm-5.208 4.5c.475 0 .905.032 1.297.096.015 0 .022.008.037.008 1.357.205 2.178.703 2.178 1.075 0 .483-1.371 1.17-3.512 1.17-2.14 0-3.512-.695-3.512-1.17 0-.474 1.364-1.178 3.512-1.178zm0 8.124c-2.14 0-3.512-.696-3.512-1.17V15.31c.189.126.415.245.679.348.76.3 1.77.466 2.833.466 1.063 0 2.073-.166 2.834-.466a3.49 3.49 0 0 0 .678-.348v.83c0 .475-1.371 1.17-3.512 1.17zm5.208-1.606c-.354 0-.7-.016-1.032-.055v-1.44c.339.04.678.056 1.032.056 1.063 0 2.073-.166 2.834-.467a3.49 3.49 0 0 0 .678-.348v1.091c0 .467-1.364 1.163-3.512 1.163z" fill="#262435"/>'],"design/autoFillPanel/food":[21,21,'<path d="M17 15.5v-1a.5.5 0 0 0-.5-.5h-13a.5.5 0 0 0-.5.5v1c0 1.103.897 2 2 2h10c1.103 0 2-.897 2-2zm-13 0V15h12v.5c0 .552-.448 1-1 1H5c-.551 0-1-.448-1-1zm12.5-5h-13c-.827 0-1.5.673-1.5 1.5s.673 1.5 1.5 1.5h13c.827 0 1.5-.673 1.5-1.5s-.673-1.5-1.5-1.5zm0 2h-13a.5.5 0 0 1 0-1h13a.501.501 0 0 1 0 1zM3.5 10h13.01a.5.5 0 0 0 .488-.609C16.907 6.817 13.613 4.5 10 4.5c-3.663 0-7 2.383-7 5a.5.5 0 0 0 .5.5zM10 5.5c3.078 0 5.527 1.784 5.939 3.5H4.061C4.473 7.284 6.922 5.5 10 5.5z" fill="#333"/><path d="M7 7.5a.5.5 0 1 0 1 0 .5.5 0 0 0-1 0zM10 6.5a.5.5 0 1 0 1 0 .5.5 0 0 0-1 0zM12.5 8a.5.5 0 1 0 1 0 .5.5 0 0 0-1 0z" fill="#333"/>'],"design/autoFillPanel/close":[24,24,'<path fill-rule="evenodd" clip-rule="evenodd" d="M15.854 8.146a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708-.708l7-7a.5.5 0 0 1 .708 0z" fill="#333"/><path fill-rule="evenodd" clip-rule="evenodd" d="M15.854 15.854a.5.5 0 0 1-.708 0l-7-7a.5.5 0 1 1 .708-.708l7 7a.5.5 0 0 1 0 .708z" fill="#333"/>'],"chatGPT/ai-help":[16,16,'<path fill="#999" fill-rule="evenodd" d="M2.67 8a5.33 5.33 0 1 1 10.66 0A5.33 5.33 0 0 1 2.67 8ZM8 1.33a6.67 6.67 0 1 0 0 13.34A6.67 6.67 0 0 0 8 1.33ZM6.87 6.66v-.15c0-.19.06-.39.2-.54.14-.14.4-.3.93-.3.48 0 .82.23 1 .5.18.28.15.51.06.63a2.98 2.98 0 0 1-.59.6l-.36.3c-.37.37-.78.86-.78 1.63v.34h1.34v-.34c0-.23.1-.4.36-.66l.27-.24.24-.2c.19-.18.4-.38.59-.63.5-.69.39-1.55-.02-2.17A2.5 2.5 0 0 0 8 4.33c-.82 0-1.46.27-1.88.72-.42.43-.59.98-.59 1.45v.16h1.34Zm.47 3.67v1.34h1.33v-1.34H7.34Z" clip-rule="evenodd"/>'],"embed/question/circle":[12,12,'<path fill-rule="evenodd" clip-rule="evenodd" d="M6.199 9.156a.618.618 0 0 1-.404.162c-.162 0-.324-.08-.486-.162-.08-.161-.161-.323-.161-.485 0-.161.08-.323.161-.485.162-.08.324-.161.486-.161.161 0 .323.08.485.161.08.162.161.324.161.485 0 .162-.08.324-.242.485Zm1.617-4.042c-.08.242-.162.404-.324.485l-.727.728-.243.242c-.05 0-.069.031-.095.074a.451.451 0 0 1-.066.088v.162c-.081.08-.081.161-.081.323-.081.243-.243.404-.566.404-.081 0-.243-.08-.324-.161-.161-.081-.161-.243-.161-.405 0-.242 0-.485.08-.647.081-.161.162-.323.324-.485.08-.08.242-.242.485-.404l.404-.404c.081-.081.162-.162.162-.243.03-.062.062-.112.088-.154.043-.07.074-.12.074-.17 0-.242-.162-.484-.324-.646-.161-.08-.323-.162-.647-.162-.323 0-.566.081-.646.162a1.563 1.563 0 0 0-.405.728c-.08.323-.323.485-.566.485a.618.618 0 0 1-.404-.162c-.08-.08-.162-.242-.162-.323 0-.324.081-.566.243-.89.162-.242.485-.485.808-.647.324-.242.728-.323 1.132-.323.405 0 .809.08 1.132.243.324.161.566.404.728.646.162.243.243.566.243.89 0 .242 0 .404-.162.566Z" fill="#333"/><circle cx="6" cy="6" r="5.5" stroke="#333"/>'],"preview/inspect/color_absorber":[24,24,'<path fill-rule="evenodd" clip-rule="evenodd" d="M18.181 5.937c.671.667.627 1.802-.077 2.598L18 8.647l-2.182 2.167a2.347 2.347 0 01-.19.17l1.6 1.591a1.335 1.335 0 010 1.897 1.356 1.356 0 01-1.91 0l-1.113-1.106-5.346 5.311c-.553.55-1.243.894-1.932.983-.691.09-1.42-.077-1.95-.604-1.025-1.018-.701-2.66.236-3.702l.006-.007.133-.14 5.353-5.318L9.59 8.782a1.335 1.335 0 010-1.897 1.356 1.356 0 011.91 0l1.6 1.59.067-.078.105-.112 2.182-2.167c.803-.798 2.024-.88 2.727-.181zm-6.522 4.9l-5.34 5.305-.106.111c-.672.753-.598 1.542-.282 1.855.173.172.451.27.82.222.37-.048.792-.243 1.153-.601l5.345-5.311-1.59-1.581z" fill="#000" />'],"chatGPT/ai-switch-left":[14,14,'<path fill="url(#paint_linear_0)" fill-rule="evenodd" d="M3.16.36c.08-.22.4-.22.49 0l.62 1.58c.03.07.08.12.15.15L6 2.7c.22.1.22.4 0 .5l-1.58.62a.26.26 0 0 0-.15.15l-.62 1.58a.26.26 0 0 1-.5 0l-.62-1.58a.26.26 0 0 0-.15-.15L.8 3.2a.26.26 0 0 1 0-.49l1.58-.62a.26.26 0 0 0 .15-.15L3.16.36Zm6.8.96c.24-.03.47.16.49.41l.05.57a.46.46 0 0 1-.92.08l-.05-.57a.46.46 0 0 1 .42-.5Zm2.27 1.76a.46.46 0 0 0-.65-.65l-.4.4a.46.46 0 1 0 .65.65l.4-.4ZM2.3 12.8l5.45-5.46-.43-.43-5.46 5.45a.3.3 0 1 0 .44.44Zm5.67-6.54.43.43 1.7-1.7a.3.3 0 0 0-.43-.43l-1.7 1.7ZM9.02 3.9l-1.7 1.7-.65.65L1.2 11.7a1.23 1.23 0 0 0 1.74 1.74L8.4 7.99l.65-.65 1.7-1.7a1.23 1.23 0 1 0-1.73-1.73Zm3.92.32a.46.46 0 0 1-.08.91l-.57-.05a.46.46 0 0 1 .08-.91l.57.05ZM7.9 2.08c.2-.14.5-.1.64.12l.33.47a.46.46 0 0 1-.76.52l-.33-.46c-.14-.21-.1-.5.12-.65Zm4.4 3.87a.46.46 0 1 1-.54.76l-.46-.33a.46.46 0 0 1 .52-.76l.47.33Zm-1.83 2.92a.17.17 0 0 0-.32 0l-.33.86a.17.17 0 0 1-.1.1l-.86.33a.17.17 0 0 0 0 .31l.86.34c.05.02.08.05.1.1l.33.85c.06.14.26.14.31 0l.34-.86a.17.17 0 0 1 .1-.09l.86-.34a.17.17 0 0 0 0-.3l-.86-.35a.17.17 0 0 1-.1-.09l-.33-.86Z" clip-rule="evenodd"/><defs><linearGradient id="paint_linear_0" x1="-.02" x2="12.17" y1="1.49" y2="11.91" gradientUnits="userSpaceOnUse"><stop stop-color="#4AD2FF"/><stop offset=".47" stop-color="#1684FC"/><stop offset="1" stop-color="#6559FF"/></linearGradient><linearGradient id="paint_linear_1" x1="15.7" x2="-1.61" y1="-7.29" y2="-5.94" gradientUnits="userSpaceOnUse"><stop stop-color="#BA52FA"/><stop offset="1" stop-color="#7EBCFF"/></linearGradient></defs>'],"chatGPT/ai-switch-right":[15,14,'<path fill="url(#paint_linear_0)" fill-rule="evenodd" d="M1.17 4.3a2.5 2.5 0 0 1 2.5-2.5h7.66a2.5 2.5 0 0 1 2.5 2.5v4.74a2.5 2.5 0 0 1-2.5 2.5H6.74l-2.8 1.4a.5.5 0 0 1-.73-.44v-1a2.5 2.5 0 0 1-2.04-2.46V4.3Zm2.5-1.5c-.83 0-1.5.66-1.5 1.5v4.74c0 .83.67 1.5 1.5 1.5h.04c.27 0 .5.23.5.5v.65l2.2-1.1a.5.5 0 0 1 .22-.05h4.7c.83 0 1.5-.67 1.5-1.5V4.3c0-.83-.67-1.5-1.5-1.5H3.67ZM9.5 5.24c.28 0 .5.22.5.5v1.5a.5.5 0 0 1-1 0v-1.5c0-.28.22-.5.5-.5Zm-3.5.5a.5.5 0 0 0-1 0v1.5a.5.5 0 0 0 1 0v-1.5Z" clip-rule="evenodd"/><defs><linearGradient id="paint_linear_0" x1="16.16" x2="-1.02" y1="-4.37" y2="-2.74" gradientUnits="userSpaceOnUse"><stop stop-color="#642EFF"/><stop offset="1" stop-color="#1684FC"/><linearGradient id="paint_linear_1" x1="16.16" x2="-1.02" y1="-4.37" y2="-2.74" gradientUnits="userSpaceOnUse"><stop stop-color="#BA52FA"/><stop offset="1" stop-color="#7EBCFF"/></linearGradient></defs>'],"chatGPT/tip-loading":[20,20,'<path fill="url(#paint0_linear_758_23907)" fill-rule="evenodd" d="M10.73 2.73a.73.73 0 1 0-1.46 0v1.45a.73.73 0 0 0 1.46 0V2.73Zm3.54 1.34A.73.73 0 0 0 13 3.34l-.73 1.26a.73.73 0 0 0 1.26.73l.73-1.26ZM16.93 6c.2.35.08.8-.27 1l-1.26.72a.73.73 0 0 1-.72-1.26l1.25-.73c.35-.2.8-.08 1 .27Zm-1.11 3.27a.73.73 0 1 0 0 1.46h1.45a.73.73 0 1 0 0-1.46h-1.45Zm-1.36 3.28a.73.73 0 0 1 1-.27l1.25.73a.73.73 0 1 1-.72 1.26l-1.26-.73a.73.73 0 0 1-.27-1Zm-.92 2.13a.73.73 0 1 0-1.26.72l.73 1.26a.73.73 0 1 0 1.26-.73l-.73-1.25Zm-3.54.41c.4 0 .73.33.73.73v1.45a.73.73 0 1 1-1.46 0v-1.45c0-.4.33-.73.73-.73Zm-2.28.31a.73.73 0 0 0-1.26-.72l-.73 1.25a.73.73 0 1 0 1.26.73l.73-1.26ZM5.6 12.55c.2.34.08.79-.26.99l-1.26.73A.73.73 0 0 1 3.34 13l1.26-.73c.35-.2.79-.08 1 .27ZM2.73 9.27a.73.73 0 0 0 0 1.46h1.45a.73.73 0 1 0 0-1.46H2.73ZM3.07 6a.73.73 0 0 1 1-.27l1.26.73a.73.73 0 1 1-.73 1.26L3.34 7A.73.73 0 0 1 3.07 6ZM7 3.34a.73.73 0 1 0-1.26.73l.73 1.26a.73.73 0 1 0 1.26-.73L7 3.34Z" clip-rule="evenodd"/><defs><linearGradient id="paint0_linear_758_23907" x1="1.18" x2="15.63" y1="3.52" y2="16.73" gradientUnits="userSpaceOnUse"><stop stop-color="#4AD2FF"/><stop offset=".47" stop-color="#1684FC"/><stop offset="1" stop-color="#6559FF"/></linearGradient></defs>'],"chatGPT/create-comment-send":[20,20,'<path fill-rule="evenodd" clip-rule="evenodd" d="M18.2131 11.035C18.5022 10.8933 18.6838 10.5976 18.6795 10.2757C18.6752 9.95372 18.4858 9.66304 18.193 9.52905L2.83162 2.49873C2.492 2.3433 2.09044 2.43282 1.849 2.7178C1.60757 3.00277 1.58524 3.41359 1.79436 3.72305L6.2495 10.316L2.10701 17.2255C1.91714 17.5422 1.95832 17.9461 2.2082 18.218C2.45809 18.4898 2.85708 18.5648 3.18862 18.4022L18.2131 11.035ZM7.68133 9.45816L4.83745 5.24964L15.9005 10.3128L4.98608 15.6646L7.70784 11.1248H10.5729C11.0331 11.1248 11.4062 10.7517 11.4062 10.2915C11.4062 9.83126 11.0331 9.45816 10.5729 9.45816H7.68133Z" fill="#1685FC"/>'],"chatGPT/ai-point-icon":[16,16,'<circle cx="8" cy="8" r="7.31" fill="#1684FC" stroke="url(#paint0_linear_1039_38488)" stroke-width=".62"/><path fill="#fff" fill-rule="evenodd" d="M9.28 3.53a.2.2 0 0 0-.3-.17l-3.1 1.8a.2.2 0 0 0-.08.07l-1.05-.6a.2.2 0 0 0-.3.16v3.6l.03.1-1.05.6a.2.2 0 0 0 0 .34l3.1 1.8a.2.2 0 0 0 .1.03v1.21c0 .15.17.25.3.17l3.1-1.79a.2.2 0 0 0 .08-.07l1.05.6a.2.2 0 0 0 .3-.17V7.6a.2.2 0 0 0-.03-.1l1.06-.6a.2.2 0 0 0 0-.35l-3.1-1.8a.2.2 0 0 0-.1-.02l-.01-1.2ZM6.83 8.68a.2.2 0 0 1 .1.03l1.05.6a.2.2 0 0 1 .07-.06l1.06-.62a.2.2 0 0 1-.02-.1V7.32a.2.2 0 0 1-.1-.03l-1.05-.6a.2.2 0 0 1-.08.07l-1.05.6a.2.2 0 0 1 .02.1v1.22Z" clip-rule="evenodd"/><defs><linearGradient id="paint0_linear_1039_38488" x1="8" x2="8" y1="1" y2="15" gradientUnits="userSpaceOnUse"><stop stop-color="#8FC5FF"/><stop offset="1" stop-color="#0076F8"/></linearGradient></defs>'],"chatGPT/ai-point-icon-red":[16,16,'<circle cx="8" cy="8" r="7" fill="url(#paint0_linear_1370_37031)" stroke="url(#paint1_linear_1370_37031)" stroke-width=".5"/><path fill="#fff" fill-rule="evenodd" d="M9.28 3.53a.2.2 0 0 0-.3-.17l-3.1 1.8a.2.2 0 0 0-.08.07l-1.05-.6a.2.2 0 0 0-.3.16v3.6l.03.1-1.05.6a.2.2 0 0 0 0 .34l3.1 1.8a.2.2 0 0 0 .1.03v1.21c0 .15.17.25.3.17l3.1-1.79a.2.2 0 0 0 .08-.07l1.05.6a.2.2 0 0 0 .3-.17V7.6a.2.2 0 0 0-.03-.1l1.06-.6a.2.2 0 0 0 0-.35l-3.1-1.8a.2.2 0 0 0-.1-.02l-.01-1.2ZM6.83 8.68a.2.2 0 0 1 .1.03l1.05.6a.2.2 0 0 1 .07-.06l1.06-.62a.2.2 0 0 1-.02-.1V7.32a.2.2 0 0 1-.1-.03l-1.05-.6a.2.2 0 0 1-.08.07l-1.05.6a.2.2 0 0 1 .02.1v1.22Z" clip-rule="evenodd"/><defs><linearGradient id="paint0_linear_1370_37031" x1="17.57" x2="-1.46" y1="-6.7" y2="-5.1" gradientUnits="userSpaceOnUse"><stop stop-color="#EC4954"/><stop offset="1" stop-color="#FA52D6"/></linearGradient><linearGradient id="paint1_linear_1370_37031" x1="8" x2="8" y1="1" y2="15" gradientUnits="userSpaceOnUse"><stop stop-color="#FFBBCE"/><stop offset="1" stop-color="#F750B1"/></linearGradient></defs>'],"chatGPT/ai-cmd-help":[24,24,'<path fill="#000" fill-rule="evenodd" d="M11.56 5.4a6.6 6.6 0 1 0 .08 13.2 6.6 6.6 0 0 0-.08-13.2Zm.04 12.1a5.5 5.5 0 1 1 0-11 5.5 5.5 0 0 1 0 11Zm.84-8.53a2.63 2.63 0 0 0-1.4-.05 1.9 1.9 0 0 0-1.3.96 2.13 2.13 0 0 0-.26 1.15v.1h1.11l.01-.04V11c.01-.23.03-.45.13-.66.1-.23.28-.38.52-.44.2-.05.4-.06.6-.02.25.04.46.17.56.42.16.37.12.73-.15 1.04-.08.1-.17.18-.26.27-.25.23-.5.47-.72.74-.1.13-.19.28-.24.45a2.59 2.59 0 0 0-.09.92H12.1v-.28c0-.18.04-.36.13-.51.08-.17.2-.3.34-.43l.6-.53c.12-.1.2-.22.28-.35.22-.42.26-.86.18-1.31a1.64 1.64 0 0 0-1.18-1.34ZM11.45 14c.21 0 .4.04.56.18.23.2.3.46.22.74a.67.67 0 0 1-.53.52c-.3.07-.57-.01-.77-.26a.67.67 0 0 1-.16-.45.72.72 0 0 1 .68-.73Z" clip-rule="evenodd"/>'],"chatGPT/ai-cmd-send":[24,24,'<path fill="#000" fill-rule="evenodd" d="M7.77 14.94h6.43a3.5 3.5 0 0 0 2.48-1.03 3.49 3.49 0 0 0 1.04-2.49V7.18a.43.43 0 0 0-.87 0v4.24a2.66 2.66 0 0 1-2.65 2.65H7.77l1.57-1.57a.43.43 0 1 0-.61-.61l-2.28 2.28a.43.43 0 0 0 0 .68l2.28 2.28a.43.43 0 0 0 .61 0 .43.43 0 0 0 0-.61l-1.57-1.58Z" clip-rule="evenodd"/>'],"common/expand":[8,8,'<path fill-rule="evenodd" clip-rule="evenodd" d="M7.18198 2.64658C7.37724 2.84184 7.37724 3.15842 7.18198 3.35369L4.35355 6.18211C4.15829 6.37738 3.84171 6.37738 3.64645 6.18211L0.81802 3.35369C0.622757 3.15842 0.622757 2.84184 0.81802 2.64658C1.01328 2.45132 1.32986 2.45132 1.52513 2.64658L4 5.12145L6.47487 2.64658C6.67014 2.45132 6.98672 2.45132 7.18198 2.64658Z" fill="#333"/>']},...o.K};var l=e(90503),C=e(57464);l.C.ICON_MAP={...l.C.ICON_MAP,...g};function T(A){return(0,C.jsx)(l.C,{...A})}},90643:(Et,ke,e)=>{"use strict";e.d(ke,{SP:()=>ci,I$:()=>Hs});var o=e(74059),m=e(51044),g=e(21676),l=e(60185);const C=(Re,je)=>{if(Re===je)return!0;if(Re.length!==je.length)return!1;for(let et=0,St=Re.length;et<St;et++)if(Re[et]!==je[et])return!1;return!0},T=Re=>{let je=null,et=null;return function(){for(var St=arguments.length,vt=new Array(St),no=0;no<St;no++)vt[no]=arguments[no];return(!et||!C(et,vt))&&(je=Re.apply(null,vt),et=vt),je}};var A=e(6523),k=e(63711),p=e.n(k),r=e(66748),x=e.n(r),f=e(19418),u=e(86634),b=e.n(u),h=e(60260),E=e.n(h),N=e(77017),z=e.n(N),S=e(98236),_=e.n(S),y=e(17956),a=e.n(y),$=e(68431),ce=e.n($),de=e(27221),fe=e.n(de),se=e(30108),J=e(64209),ve=e.n(J),D=e(67231),R=e.n(D),V='<svg width="6" height="4" viewBox="0 0 6 4"><path d="M3 0l3 4H0"></path></svg>',O='<svg viewBox="0 0 8 3"><path d="M4.654.233L8 3H0L3.383.23c.37-.303.902-.302 1.27.003z" /></svg>',Ce='<svg width="27" height="8"><path d="M15.069 6.66a3.27 3.27 0 0 1-3.13 0L0 0h27.008l-11.94 6.66z" /></svg>',ae='<svg width="16" height="16"><path d="M8 6.945L6.218 5.163a.688.688 0 0 0-.973.972l1.783 1.782L5.245 9.7a.688.688 0 0 0 .973.972L8 8.89l1.782 1.782a.688.688 0 0 0 .973-.972L8.972 7.917l1.783-1.782a.688.688 0 0 0-.973-.972L8 6.945zm-5.185 6.24a7.333 7.333 0 1 1 10.37-10.37 7.333 7.333 0 0 1-10.37 10.37z"/></svg>',q=Object.freeze({__proto__:null,INPUT_ARROW:V,DROPDOWN_ARROW:O,GUIDE_ARROW:Ce,CLOSE_FILLED:ae});function K(Re,je,et){return je in Re?Object.defineProperty(Re,je,{value:et,enumerable:!0,configurable:!0,writable:!0}):Re[je]=et,Re}function xe(Re,je){return re(Re)||H(Re,je)||Ve(Re,je)||te()}function te(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function H(Re,je){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(Re)))){var et=[],St=!0,vt=!1,no=void 0;try{for(var $o=Re[Symbol.iterator](),gn;!(St=(gn=$o.next()).done)&&(et.push(gn.value),!(je&&et.length===je));St=!0);}catch(En){vt=!0,no=En}finally{try{!St&&$o.return!=null&&$o.return()}finally{if(vt)throw no}}return et}}function re(Re){if(Array.isArray(Re))return Re}function be(Re){return We(Re)||Ne(Re)||Ve(Re)||Le()}function Le(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ve(Re,je){if(Re){if(typeof Re=="string")return ze(Re,je);var et=Object.prototype.toString.call(Re).slice(8,-1);if(et==="Object"&&Re.constructor&&(et=Re.constructor.name),et==="Map"||et==="Set")return Array.from(Re);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return ze(Re,je)}}function Ne(Re){if(typeof Symbol<"u"&&Symbol.iterator in Object(Re))return Array.from(Re)}function We(Re){if(Array.isArray(Re))return ze(Re)}function ze(Re,je){(je==null||je>Re.length)&&(je=Re.length);for(var et=0,St=new Array(je);et<je;et++)St[et]=Re[et];return St}var ft=/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z0-9-]{2,63}$/i,mt={OPEN_MODAL_STACK:[]};function i(Re){return mt.OPEN_MODAL_STACK.indexOf(Re)}function gt(){var Re=mt.OPEN_MODAL_STACK;return Re.length===0||Re.every(function(je){return!je.state.isOpen})}function Je(Re){return Object.assign(mt,{OPEN_MODAL_STACK:[Re].concat(be(mt.OPEN_MODAL_STACK))})}function Pt(Re){return Object.assign(mt,{OPEN_MODAL_STACK:mt.OPEN_MODAL_STACK.filter(function(je){return je!==Re})})}function bt(Re){return ve()(Re).join(" ")}function qt(Re,je){var et=Re.propTypes,St=et===void 0?{}:et,vt=Object.keys(St);return Object.entries(je).reduce(function(no,$o){var gn=xe($o,2),En=gn[0],cs=gn[1];return vt.includes(En)?no:Object.assign(no,K({},En,cs))},{})}function pt(Re){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document;return je.querySelector(Re)}function $t(Re){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document;return Array.from(je.querySelectorAll(Re))}function go(Re,je){var et=Object.assign(document.createElement("div"),{className:je});return Re.appendChild(et),et}function Co(Re){!Re||!(Re instanceof Element)||Re.addEventListener("wheel",function(je){var et=Re.scrollTop,St=Re.scrollHeight,vt=Re.getBoundingClientRect(),no=vt.height,$o=je.deltaY*-1,gn=$o>0,En=function(){return je.stopPropagation(),je.preventDefault(),!1};if(!gn&&-$o>St-no-et)return Re.scrollTop=St,En();if(gn&&$o>et)return Re.scrollTop=0,En()})}function Tt(Re){var je=document.documentElement,et=document.body,St=pt(".ContentRoot"),vt=window,no=vt.innerWidth,$o=vt.scrollX,gn=vt.scrollY,En=isBoolean(Re)?Re:et.classList.toggle("is-content-fixed");return isBoolean(Re)&&et.classList[Re?"add":"remove"]("is-content-fixed"),St&&(En?(St.style.left="-".concat($o,"px"),St.style.top="-".concat(gn,"px"),window.scrollTo(Math.max((je.scrollWidth-no)/2,0),0)):window.scrollTo(Math.abs(parseInt(St.style.left,10)),Math.abs(parseInt(St.style.top,10)))),En}function mo(Re,je){return isString(Re)||isNumber(Re)||isValidElement(Re)?Re:Re[je||"label"]?Re[je||"label"]:void 0}function jo(Re){return isString(Re)||isNumber(Re)?String(Re):Re.value||Re.label?String(Re.value||Re.label):void 0}function Kt(Re){return new Set(Array.from(Re||[]).map(String))}function Ft(Re,je){return!!je&&jo(Re)===String(je)}function nt(Re,je){return Kt(je).has(jo(Re))}function Rt(Re){return Re!==""&&isNumber(Number(Re))?Number(Re):""}function yt(){var Re=vo(["\n &.TipBase {\n position: fixed;\n z-index: 1200;\n pointer-events: none;\n }\n .Tip {\n position: absolute;\n padding: 0.33em 0.5em;\n font-size: 12px;\n line-height: 1.4;\n pointer-events: none;\n speak: none;\n transition-property: opacity, transform;\n transition-duration: 0.15s;\n user-select: none;\n filter: opacity(0.8);\n &.arrowed {\n padding: 0.33em 0.75em;\n }\n & > .arrow {\n position: absolute;\n z-index: 10;\n display: block;\n font-size: 14px;\n line-height: 0;\n svg {\n width: 1em;\n height: 0.375em;\n fill: #415058;\n }\n }\n &:not(.is-open) {\n opacity: 0 !important;\n }\n &.is-open {\n opacity: 1;\n }\n &.on-top {\n left: 50%;\n bottom: 100%;\n transform: translate(-50%, -10%);\n &.arrowed {\n margin-bottom: 0.25em;\n }\n &.is-open {\n transform: translate(-50%);\n }\n }\n &.on-bottom {\n left: 50%;\n top: 100%;\n transform: translate(-50%, 10%);\n &.arrowed {\n margin-top: 0.25em;\n }\n &.is-open {\n transform: translate(-50%);\n }\n }\n &.on-left {\n right: 100%;\n top: 50%;\n transform: translate(-10%, -50%);\n &.is-open {\n transform: translate(0, -50%);\n }\n }\n &.on-right {\n left: 100%;\n top: 50%;\n transform: translate(10%, -50%);\n &.is-open {\n transform: translate(0, -50%);\n }\n }\n &.on-top > .arrow {\n left: 50%;\n bottom: 0;\n transform: translateX(-50%);\n &.on-top > .arrow svg {\n transform: rotate(180deg);\n }\n }\n &.on-bottom > .arrow {\n top: 0;\n left: 50%;\n transform: translateX(-50%);\n }\n &.on-right > .arrow {\n top: 50%;\n left: 0;\n font-size: 16px;\n transform: translateY(-50%);\n svg {\n transform: rotate(-90deg);\n }\n }\n &.on-left > .arrow {\n top: 50%;\n right: 0;\n font-size: 16px;\n transform: translateY(-50%);\n svg {\n transform: rotate(90deg);\n }\n }\n > .content {\n position: relative;\n z-index: 20;\n padding: 0.5em;\n width: -moz-max-content;\n width: max-content;\n min-width: 3em;\n max-width: 20em;\n min-height: 2em;\n background-color: #415058;\n -webkit-backdrop-filter: blur(2px);\n backdrop-filter: blur(2px);\n border-radius: 2px;\n color: #fff;\n }\n }\n .CoreTip {\n filter: opacity(0.9);\n > .arrow svg {\n fill: #1e292e;\n }\n > .content {\n padding: 0.5em 0.75em;\n background-color: #1e292e;\n border-radius: 4px;\n box-shadow: 0 2px 8px 0 rgba(0,0,0,0.15);\n }\n }\n"]);return yt=function(){return Re},Re}function Jt(){var Re=vo(["\n div.Tooltip {\n width: -moz-fit-content;\n width: -webkit-fit-content;\n width: fit-content;\n }\n &.Ellipsis {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n display: inline-block;\n max-width: 100%;\n vertical-align: bottom;\n &.isnt-truncated {\n display: inline;\n max-width: initial !important;\n }\n &.is-truncated:before {\n content: '';\n display: block;\n }\n &[data-type=user],\n &[data-type=id] {\n max-width: 10em;\n }\n &[data-type=email] {\n max-width: 12em;\n }\n &[data-type=org] {\n max-width: 15em;\n }\n &[data-type=team] {\n max-width: 10em;\n }\n &[data-type=app] {\n max-width: 15em;\n }\n &[data-type=widget] {\n max-width: 12em;\n }\n }\n"]);return Jt=function(){return Re},Re}function vo(Re,je){return je||(je=Re.slice(0)),Object.freeze(Object.defineProperties(Re,{raw:{value:Object.freeze(je)}}))}var Yo=g.Ay.span.withConfig({displayName:"tooltip__StyledToolTipSpan",componentId:"sc-k1px3u-0"})(Jt()),Ho=g.Ay.div.withConfig({displayName:"tooltip__StyledToolTip",componentId:"sc-k1px3u-1"})(yt());function kt(Re){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?kt=function(et){return typeof et}:kt=function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},kt(Re)}function Ze(){return Ze=Object.assign||function(Re){for(var je=1;je<arguments.length;je++){var et=arguments[je];for(var St in et)Object.prototype.hasOwnProperty.call(et,St)&&(Re[St]=et[St])}return Re},Ze.apply(this,arguments)}function it(Re,je){if(!(Re instanceof je))throw new TypeError("Cannot call a class as a function")}function st(Re,je){for(var et=0;et<je.length;et++){var St=je[et];St.enumerable=St.enumerable||!1,St.configurable=!0,"value"in St&&(St.writable=!0),Object.defineProperty(Re,St.key,St)}}function dt(Re,je,et){return je&&st(Re.prototype,je),et&&st(Re,et),Re}function Ot(Re,je){if(typeof je!="function"&&je!==null)throw new TypeError("Super expression must either be null or a function");Re.prototype=Object.create(je&&je.prototype,{constructor:{value:Re,writable:!0,configurable:!0}}),je&&Ct(Re,je)}function Ct(Re,je){return Ct=Object.setPrototypeOf||function(St,vt){return St.__proto__=vt,St},Ct(Re,je)}function wo(Re){var je=Lo();return function(){var St=Ao(Re),vt;if(je){var no=Ao(this).constructor;vt=Reflect.construct(St,arguments,no)}else vt=St.apply(this,arguments);return ln(this,vt)}}function ln(Re,je){return je&&(kt(je)==="object"||typeof je=="function")?je:Io(Re)}function Io(Re){if(Re===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Re}function Lo(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(Re){return!1}}function Ao(Re){return Ao=Object.setPrototypeOf?Object.getPrototypeOf:function(et){return et.__proto__||Object.getPrototypeOf(et)},Ao(Re)}function xt(Re,je,et){return je in Re?Object.defineProperty(Re,je,{value:et,enumerable:!0,configurable:!0,writable:!0}):Re[je]=et,Re}var Ut=["hover","click"],Wo="IBOT_TOOLTIP_ROOT",qo=document.getElementById(Wo)||Object.assign(document.createElement("div"),{id:Wo}),sn=document.body;sn.contains(qo)||sn.appendChild(qo);function Kn(Re){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"hover";return ce()(Re)||z()(Re)||(0,m.isValidElement)(Re)?Re:Ut.includes(je)&&fe()(Re)?Re[je]||Re.hover:null}var ds=function(Re){Ot(et,Re);var je=wo(et);function et(){var St;it(this,et);for(var vt=arguments.length,no=new Array(vt),$o=0;$o<vt;$o++)no[$o]=arguments[$o];return St=je.call.apply(je,[this].concat(no)),xt(Io(St),"state",{isOpen:!1,isClicked:!1,$text:null}),xt(Io(St),"ref",m.createRef()),xt(Io(St),"onClick",function(gn){St.setState({isOpen:!!Kn(St.props.content,"click"),isClicked:!0}),gn.persist(),St.props.onClick(gn)}),xt(Io(St),"onMouseEnter",function(){return Object.assign(Io(St),{hoverTimeout:setTimeout(function(){return St.setState({isOpen:!!Kn(St.props.content,"hover")},St.props.onMouseEnter)},St.props.delay)})}),xt(Io(St),"onMouseLeave",function(){clearTimeout(St.hoverTimeout),St.setState({isOpen:!1,isClicked:!1},St.props.onMouseLeave)}),St}return dt(et,[{key:"componentDidMount",value:function(){this.props.setRef(this.ref.current)}},{key:"componentDidUpdate",value:function(vt,no){var $o=this,gn=no.isOpen,En=this.props.duration,cs=this.state.isOpen;En>0&&!gn&&cs&&(this.timeout=setTimeout(function(){return $o.setState({isOpen:!1})},En))}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),clearTimeout(this.hoverTimeout)}},{key:"render",value:function(){var vt=this.props,no=vt.theme,$o=vt.position,gn=vt.inflexible,En=vt.arrowed,cs=vt.className,Zn=vt.tipClassName,fs=vt.content,ks=vt.children,Zs=this.state,ni=Zs.isOpen,wi=Zs.isClicked,xi=bt(["Tooltip",cs,ni?"is-open":"",wi?"is-clicked":""]),Fi=wi?"click":"hover";return m.createElement(Yo,Ze({ref:this.ref,className:xi,onMouseEnter:this.onMouseEnter,onClick:this.onClick,onMouseLeave:this.onMouseLeave},qt(this.constructor,this.props)),m.createElement(m.Fragment,null,ks,m.createElement(_s,{$text:this.ref.current,isOpen:ni,className:Zn,eventName:Fi,theme:no,position:$o,inflexible:gn,arrowed:En},Kn(fs,Fi))))}}]),et}(m.PureComponent);xt(ds,"propTypes",{theme:x().oneOf(["core","plain"]),position:x().oneOf(["top","right","bottom","left"]).isRequired,arrowed:x().bool,inflexible:x().bool,className:x().string,tipClassName:x().string,content:x().oneOfType([x().node,x().shape(Ut.reduce(function(Re,je){return Object.assign(Re,xt({},je,x().node))},{}))]),onMouseEnter:x().func,onClick:x().func,onMouseLeave:x().func,delay:x().oneOfType([x().number,x().string]),duration:x().oneOfType([x().number,x().string]),children:x().node,setRef:x().func}),xt(ds,"defaultProps",{theme:"plain",position:"right",arrowed:!0,inflexible:!1,delay:200,className:"",tipClassName:"",setRef:function(){return null},onClick:function(){return null}});var _s=function(Re){Ot(et,Re);var je=wo(et);function et(){var St;it(this,et);for(var vt=arguments.length,no=new Array(vt),$o=0;$o<vt;$o++)no[$o]=arguments[$o];return St=je.call.apply(je,[this].concat(no)),xt(Io(St),"state",{prevProps:St.props,isOpen:St.props.isOpen,position:St.props.position}),xt(Io(St),"ref",m.createRef()),xt(Io(St),"position",function(){var gn=St.props,En=gn.$text,cs=gn.position,Zn=gn.inflexible,fs=Io(St),ks=fs.$tipBase,Zs=fs.$tip;if(!(!En||!ks||!Zs)){var ni=!Zn,wi=10,xi=10,Fi=window.innerWidth-10,$i=window.innerHeight-10,ga=En.getBoundingClientRect(),Ia=ga.top,_a=ga.right,za=ga.bottom,la=ga.left,qa=En.offsetWidth,rr=En.offsetHeight,pr=Zs.offsetWidth,yr=Zs.offsetHeight,Lr=la+qa/2,Tr=Ia+rr/2,Nl={},Il={},rl=function(cc){return Object.assign(Nl,cc)},Ol=function(cc){return Object.assign(Il,cc)};switch(rl({top:"".concat(Ia,"px"),left:"".concat(la,"px"),width:"".concat(qa,"px"),height:"".concat(rr,"px")}),ni&&(cs==="top"&&Ia-yr<xi?St.setState({position:"bottom"}):cs==="bottom"&&za+yr>$i?St.setState({position:"top"}):cs==="left"&&la-pr<wi?St.setState({position:"right"}):cs==="right"&&_a+pr>Fi&&St.setState({position:"left"})),cs){case"top":case"bottom":{var Ur=(pr-18)/2+6,bc=Lr-pr/2<10?Math.min(pr/2-Lr-6,Ur):Lr+pr/2>Fi?Math.max(-(pr/2-(Fi+10-Lr))+6,-Ur):0;bc!==0&&Ol({transform:"translateX(".concat(bc,"px)")});break}case"left":case"right":{var Ll=(yr-18)/2-6,tp=yr>50&&(Tr-5<=$i/2&&Tr-yr/2<10?Math.min(yr/2-Tr-6,Ll):Tr-5>$i/2&&Tr+yr/2>$i?Math.max(-(yr/2-($i+10-Tr)),-Ll):0);tp!==0&&Ol({transform:"translateY(".concat(tp,"px)")});break}}Object.assign(ks.style,Nl),Object.assign(pt(".content",Zs).style,Il),Zs.classList.add("is-open")}}),xt(Io(St),"onTransitionEnd",function(){var gn=St.props.isOpen;gn?St.$tip.classList.add("is-open"):St.setState({isOpen:!1})}),St}return dt(et,[{key:"componentDidUpdate",value:function(vt){var no=vt.isOpen,$o=this.props.isOpen;!no&&$o?this.position():no&&!$o&&this.$tip&&this.$tip.classList.remove("is-open")}},{key:"render",value:function(){return(0,l.createPortal)(this.tip,qo)}},{key:"$tipBase",get:function(){return this.ref.current}},{key:"$tip",get:function(){return this.$tipBase&&pt(".Tip",this.$tipBase)}},{key:"tip",get:function(){var vt=this.props,no=vt.className,$o=vt.theme,gn=vt.inflexible,En=vt.arrowed,cs=vt.children,Zn=this.state,fs=Zn.isOpen,ks=Zn.position,Zs=bt([$o==="core"?"Tip CoreTip":"Tip",no,"on-".concat(ks),gn&&"inflexible",En&&"arrowed"]);return fs&&m.createElement(Ho,{className:"TipBase",ref:this.ref},m.createElement("div",{className:Zs,onTransitionEnd:this.onTransitionEnd},En&&m.createElement("div",{className:"arrow",dangerouslySetInnerHTML:{__html:q.DROPDOWN_ARROW}}),m.createElement("div",{className:"content"},cs)))}}],[{key:"getDerivedStateFromProps",value:function(vt,no){var $o=no.prevProps;return _()($o,vt)?null:{prevProps:vt,isOpen:vt.isOpen,position:vt.position}}}]),et}(m.PureComponent);xt(_s,"propTypes",{isOpen:x().bool,className:x().string,eventName:x().oneOf(Ut),$text:x().instanceOf(Element),theme:x().oneOf(["plain","core"]),position:x().oneOf(["top","right","bottom","left"]),inflexible:x().bool,arrowed:x().bool,children:x().node});const Ls=ds;function gs(){var Re=ns([void 0],["\n &.Punctuation {\n display: inline-flex;\n display: inline-flex;\n &.isnt-truncated {\n display: inline;\n }\n &.with-period {\n &:after {\n content: '. ';\n }\n &:lang(zh):after {\n content: '\\3002';\n }\n }\n &.with-comma {\n &:after {\n content: ', ';\n }\n &:lang(zh):after {\n content: '\\FF0C';\n }\n }\n &.with-question-mark:after {\n &:after {\n content: '? ';\n }\n &:lang(zh):after {\n content: '\\FF1F';\n }\n\n }\n &.with-quote {\n &:before {\n content: '\\201C';\n }\n &:after {\n content: '\\201D';\n }\n &.with-period:after {\n content: '\\201D. ';\n }\n &.with-comma:after {\n content: '\\201D, ';\n }\n &.with-question-mark:after {\n content: '\\201D? ';\n }\n &:lang(zh):before {\n content: '\\300C';\n }\n &:lang(zh):after {\n content: '\\300D';\n }\n &.with-period:lang(zh):after {\n content: '\\300D\\3002';\n }\n &.with-comma:lang(zh):after {\n content: '\\300D\\FF0C';\n }\n &.with-question-mark:lang(zh):after {\n content: '\\300D\\FF1F';\n }\n }\n }\n"]);return gs=function(){return Re},Re}function ns(Re,je){return je||(je=Re.slice(0)),Object.freeze(Object.defineProperties(Re,{raw:{value:Object.freeze(je)}}))}var Wn=g.Ay.span.withConfig({displayName:"ellipsis__StyledEllipsis",componentId:"sc-15mnwib-0"})(gs());function Do(Re){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Do=function(et){return typeof et}:Do=function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},Do(Re)}function Go(){return Go=Object.assign||function(Re){for(var je=1;je<arguments.length;je++){var et=arguments[je];for(var St in et)Object.prototype.hasOwnProperty.call(et,St)&&(Re[St]=et[St])}return Re},Go.apply(this,arguments)}function an(Re,je){var et=Object.keys(Re);if(Object.getOwnPropertySymbols){var St=Object.getOwnPropertySymbols(Re);je&&(St=St.filter(function(vt){return Object.getOwnPropertyDescriptor(Re,vt).enumerable})),et.push.apply(et,St)}return et}function Mo(Re){for(var je=1;je<arguments.length;je++){var et=arguments[je]!=null?arguments[je]:{};je%2?an(Object(et),!0).forEach(function(St){vs(Re,St,et[St])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Re,Object.getOwnPropertyDescriptors(et)):an(Object(et)).forEach(function(St){Object.defineProperty(Re,St,Object.getOwnPropertyDescriptor(et,St))})}return Re}function Cn(Re,je){if(Re==null)return{};var et=Tn(Re,je),St,vt;if(Object.getOwnPropertySymbols){var no=Object.getOwnPropertySymbols(Re);for(vt=0;vt<no.length;vt++)St=no[vt],!(je.indexOf(St)>=0)&&Object.prototype.propertyIsEnumerable.call(Re,St)&&(et[St]=Re[St])}return et}function Tn(Re,je){if(Re==null)return{};var et={},St=Object.keys(Re),vt,no;for(no=0;no<St.length;no++)vt=St[no],!(je.indexOf(vt)>=0)&&(et[vt]=Re[vt]);return et}function cn(Re,je){if(!(Re instanceof je))throw new TypeError("Cannot call a class as a function")}function bs(Re,je){for(var et=0;et<je.length;et++){var St=je[et];St.enumerable=St.enumerable||!1,St.configurable=!0,"value"in St&&(St.writable=!0),Object.defineProperty(Re,St.key,St)}}function Vn(Re,je,et){return je&&bs(Re.prototype,je),et&&bs(Re,et),Re}function ti(Re,je){if(typeof je!="function"&&je!==null)throw new TypeError("Super expression must either be null or a function");Re.prototype=Object.create(je&&je.prototype,{constructor:{value:Re,writable:!0,configurable:!0}}),je&&oi(Re,je)}function oi(Re,je){return oi=Object.setPrototypeOf||function(St,vt){return St.__proto__=vt,St},oi(Re,je)}function Gt(Re){var je=Ti();return function(){var St=di(Re),vt;if(je){var no=di(this).constructor;vt=Reflect.construct(St,arguments,no)}else vt=St.apply(this,arguments);return Rs(this,vt)}}function Rs(Re,je){return je&&(Do(je)==="object"||typeof je=="function")?je:Xs(Re)}function Xs(Re){if(Re===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Re}function Ti(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(Re){return!1}}function di(Re){return di=Object.setPrototypeOf?Object.getPrototypeOf:function(et){return et.__proto__||Object.getPrototypeOf(et)},di(Re)}function vs(Re,je,et){return je in Re?Object.defineProperty(Re,je,{value:et,enumerable:!0,configurable:!0,writable:!0}):Re[je]=et,Re}var ei=function(Re){ti(et,Re);var je=Gt(et);function et(){var St;cn(this,et);for(var vt=arguments.length,no=new Array(vt),$o=0;$o<vt;$o++)no[$o]=arguments[$o];return St=je.call.apply(je,[this].concat(no)),vs(Xs(St),"state",{isTruncated:!1,isDetected:!1}),vs(Xs(St),"set$ellipsis",function(gn){return Object.assign(Xs(St),{$ellipsis:gn})}),vs(Xs(St),"detectTruncation",function(){var gn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:St.$ellipsis;return gn.offsetWidth<gn.scrollWidth}),St}return Vn(et,[{key:"componentDidMount",value:function(){return this.setState({isDetected:!0,isTruncated:this.detectTruncation()})}},{key:"componentDidUpdate",value:function(vt){var no=vt.children,$o=this.props,gn=$o.children,En=this.state.isDetected;if(no!==gn)return this.setState({isDetected:!1});if(!En)return this.setState({isDetected:!0,isTruncated:this.detectTruncation()})}},{key:"render",value:function(){var vt=this.props,no=vt.className,$o=vt.to,gn=vt.type,En=vt.max,cs=vt.display,Zn=vt.lang,fs=vt.theme,ks=vt.noTooltip,Zs=vt.withTooltip,ni=vt.withQuote,wi=vt.withPeriod,xi=vt.withComma,Fi=vt.withQuestionMark,$i=vt.children,ga=Cn(vt,["className","to","type","max","display","lang","theme","noTooltip","withTooltip","withQuote","withPeriod","withComma","withQuestionMark","children"]),Ia=this.state,_a=Ia.isTruncated,za=Ia.isDetected,la={children:$i},qa=za&&(_a?"is-truncated":"isnt-truncated"),rr=Mo({type:$o?"link":"inline",theme:fs,className:bt(["Ellipsis",qa,no,(ni||wi||xi||Fi)&&"Punctuation",ni&&"with-quote",wi&&"with-period",xi&&"with-comma",Fi&&"with-question-mark"]),href:$o,"data-type":gn,"data-max":En,style:{display:cs,maxWidth:isFinite(En)?"".concat(En,"em"):En},content:(Zs||_a&&!ks)&&m.createElement("div",Go({lang:Zn,className:"EllipsisTip"},la)),children:$i,setRef:this.set$ellipsis},ga),pr=m.createElement(Ls,rr);return ni||wi||xi||Fi?m.createElement(Wn,{className:bt(["Punctuation",ni&&"with-quote",wi&&"with-period",xi&&"with-comma",Fi&&"with-question-mark",qa])},pr):pr}}]),et}(m.PureComponent);vs(ei,"propTypes",{className:x().string,theme:x().oneOf(["core","plain"]),type:x().oneOf(["user","id","email","org","team","app","widget"]),max:x().oneOfType([x().string,x().number]),display:x().oneOf(["inline-block","block"]),lang:x().string,to:x().string,children:x().node,noTooltip:x().bool,withTooltip:x().bool,withQuote:x().bool,withComma:x().bool,withPeriod:x().bool,withQuestionMark:x().bool}),vs(ei,"defaultProps",{lang:"en",theme:"core"});const Si=ei;function Gs(Re){let{$opener:je,$menuBase:et,$menuContainer:St,isShowButton:vt,placement:no,width:$o,deltaY:gn}=Re;if(!je||!et)return;const En=vt?je.closest("label"):je.closest("div"),cs=et.querySelector("*"),fs=(pt("li[role=option].is-active",cs)||pt("li[role=option]",cs)||pt("li[role=empty-msg]",cs)).getBoundingClientRect(),ks=cs.getBoundingClientRect(),Zs={styleFor$menuBase:{},styleFor$menu:{},styleFor$menuContainer:{},styleFor$fontTip:{}},ni=Tr=>Object.assign(Zs.styleFor$menuBase,Tr),wi=Tr=>Object.assign(Zs.styleFor$menuContainer,Tr),{top:xi}=je.getBoundingClientRect(),Fi=En.getBoundingClientRect(),{top:$i,left:ga,width:Ia,height:_a}=Fi,za=16,la=72,qa=8;let rr,pr=0,yr=la-qa*2;const Lr=fs.top-ks.top;switch(zn(ks,fs)?pr=-Lr:(yr=fs.bottom-ks.bottom,pr=-Lr+yr),no){case"bottom":ni({top:$i+_a+za+gn+"px",left:ga-($o/2-Ia/2)+"px"});break;case"rightBottom":ni({top:$i+_a+za+gn+"px",left:ga+"px"});break;case"leftBottom":ni({top:$i+_a+za+gn+"px",left:ga-($o-Ia)+"px"});break;default:{const Tr=document.body.clientWidth,Nl=document.body.clientHeight,Il=et.getBoundingClientRect().height;let rl,Ol;rr=-pr-xi,rl=$i+gn,Ol=xi+pr+gn<la?xi+Il+pr+gn:Nl-xi-pr+gn,rl=xi+pr<la?rl+rr:rl;const Ur=Math.abs(pr),bc=Ur+la>xi,Ll=Il-Ur+qa>Nl-xi;bc&&Ll?(Ol=Nl-la-qa,rl=rl+la-qa):bc?(Ol=Ol-la+qa,rl=rl+la-qa):Ll&&(Ol=Ol-qa*2),wi({top:pr+gn+"px",maxHeight:Ol+"px"}),ni({top:rl+"px",left:($o+ga>Tr?Tr-$o-16:ga)+"px"})}}return Object.assign(et.style,Zs.styleFor$menuBase),Object.assign(St.style,Zs.styleFor$menuContainer),rr&&(St.scrollTop=yr+rr+gn+za),Zs}function Vs(Re){return ce()(Re)||R()(Re)||(0,m.isValidElement)(Re)?Re:Re.label||Re.value?Re.label||Re.value:void 0}function ps(Re){return ce()(Re)||R()(Re)?String(Re):Re.value||Re.label?String(Re.value||Re.label):void 0}function kn(Re,je){return!!je&&ps(Re)===String(je)}function zn(Re,je){return je.top>=Re.top&&je.bottom<=Re.bottom}var hs=e(83931);const Ss=g.Ay.label.withConfig({displayName:"styles__StyledSelect",componentId:"sc-374bve-0"})(["position:relative;display:inline-flex;align-items:center;max-width:",";min-width:",";height:",";"," font-size:12px;color:",";cursor:pointer;.btn-wp{display:inline-flex;justify-content:flex-start;width:auto;align-items:center;border-radius:4px;text-align:start;cursor:inherit;white-space:nowrap;text-overflow:ellipsis;height:28px;padding:8px 7px;border:solid 1px transparent;box-sizing:border-box;.select-icon{margin-right:8px;}button{cursor:inherit;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;align-items:center;line-height:inherit;padding:0;& > .question-icon{display:flex;align-items:center;width:16px;margin-right:8px;}}&:not(.is-toolbar):hover:not(.is-disabled){border:solid 1px ",";justify-content:flex-start;transition:all 0.2s;}&.is-active{border:solid 1px ",";}&.is-toolbar{border:none;padding:8px 6px 8px 10px;width:auto;&:hover{background-color:",";}}}.caret{margin-left:8px;display:inline-flex;align-items:center;svg{margin:auto;}path{fill:",";transition:transform 0.2s ease-out;}&.is-disabled{.down-arrow{fill:#999999}}}&{border:1px solid transparent;border-radius:2px;}&.is-open{.caret{svg{transform:rotate(180deg);}}}&.is-disabled{cursor:not-allowed;color:#999999;}&.readonly{cursor:default;}&.single-menu{cursor:default;.btn-wp{&:hover{border:1px solid transparent !important;transition:none !important;}}}"],Re=>Re.isShowButton?"100%":0,Re=>Re.isShowButton?"3em":0,Re=>Re.isShowButton?"28px":0,Re=>Re.isShowButton?"":"border: none !important;",Re=>Re.theme.color_text_L1,Re=>Re.theme.input.hover.border,Re=>Re.theme.input.hover.border,Re=>Re.theme.input.hover.border,Re=>Re.theme.color_text_L1),fi=(0,g.i7)(["from{opacity:0;transform:scale(0.8);}to{opacity:1;transform:scale(1);}"]),ri=(0,g.i7)(["from{opacity:1;transform:scale(1);}to{opacity:0;transform:scale(0.8);}"]),Li=g.Ay.div.withConfig({displayName:"styles__StyledSelectMenu",componentId:"sc-374bve-1"})(["position:fixed;pointer-events:none;z-index:",";.WorkspaceSelectMenu{position:relative;padding:0;display:block;width:",";overflow-x:hidden;overflow-y:auto;list-style:none;box-shadow:",";color:#fff;border-radius:4px;background-color:#333;font-size:12px;pointer-events:all;transition:opacity,transform 0.2s ease-in-out;transform-origin:50% 0;&.blur-select{.SelectOption{padding:6px 0 6px 26px;}}&.LeftPanelCBShape{width:120px;.SelectOption{height:25px;padding:6px 0 6px 24px;&.is-empty{margin:4px 0;}}}&:nth-of-type(1){padding-top:8px;}&:nth-last-of-type(1){padding-bottom:8px;}&::-webkit-scrollbar{display:block;width:4px;height:4px;}&::-webkit-scrollbar-thumb{background-color:",";border-radius:2px;}&::-webkit-scrollbar-track{background-color:rgba(#fff,0.5);}&.is-empty{width:fit-content;}&:not(.is-open){animation:"," 0.1s;animation-fill-mode:forwards;}&.is-open{opacity:1;pointer-events:initial;}&.stroke-select-option .SelectOption{padding:6px 0 6px 28px;}& .missingFont{padding-left:9px;height:30px;border-bottom:1px solid rgba(243,244,245,0.1);color:rgba(255,255,255,0.5);line-height:21px;white-space:nowrap;text-overflow:ellipsis;span{margin-right:10px;path{fill:rgba(255,255,255,0.5);}}}.SelectOption{position:relative;display:flex;align-items:center;justify-content:space-between;padding:3px 0 3px 27px;cursor:pointer;margin-bottom:2px;& > .Ellipsis{padding:0 16px;}&.is-disabled{cursor:not-allowed;opacity:0.5;}&:not(.is-empty):not(.is-disabled):not(.with-input):hover{background-color:#666;}&.with-input{padding:2px 16px;input{font-size:12px;width:100%;height:100%;border-radius:2px;border:solid 1px #298DF8;color:#fff;padding:6px 0 5px 8px;&::selection{background-color:",";}}}&.is-empty{margin:4px 0;padding:0 !important;height:1px;background-color:rgba(243,244,245,0.1);}.checked{position:absolute;left:10px;}.value-wp{display:inline-flex;align-items:center;.value{word-break:keep-all;}.icon{width:20px;height:20px;display:inline-flex;justify-content:center;align-items:center;margin-right:9px;}.all-fill{fill:#ffffff;}.all-stroke{stroke:#ffffff;}}.shortcut{display:inline-flex;align-items:center;color:#999999;margin-right:9px;}}.SelectOption.noCheck{padding:6px 15px;.shortcut{margin-right:0;}}&.cant-select .SelectOption{cursor:default;}.SelectGroup{.divider{height:1px;margin:4px 16px;background:",";}& > .title{font-size:12px;padding:0 8px 0 16px;width:100%;height:30px;line-height:30px;color:",";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:",";margin-left:10px;text-decoration:underline;}&:not(.is-show){opacity:0;}&.is-show{opacity:1;}}"],Re=>Re.zIndex||1100,Re=>typeof Re.width=="number"?Re.width+"px":Re.width,Re=>Re.theme.common.shadow.shadow_3,Re=>Re.theme.scrollbar.thumb.y_bg,ri,Re=>""+hs.Q.hex2rgbaStr(Re.theme.themeColor,.3),Re=>Re.theme.select.divider,Re=>Re.theme.common.text_22.cr,Re=>Re.theme.menu.font.family.link_tc);var ji=e(18001),_t=e(57464);const Aa="IBOT_SELECT_MENU_ROOT",Ki=(0,_t.jsx)("svg",{width:"8",height:"6",xmlns:"http://www.w3.org/2000/svg",children:(0,_t.jsxs)("g",{transform:"translate(-2 -3)",fill:"none",fillRule:"evenodd",children:[(0,_t.jsx)("rect",{width:"12",height:"12",rx:"1.867"}),(0,_t.jsx)("path",{d:"M2.4 5.883a.64.64 0 00.194.471l1.949 1.903c.129.129.29.193.48.193a.643.643 0 00.473-.193l4.01-3.93a.627.627 0 00.202-.468.614.614 0 00-.201-.465.667.667 0 00-.479-.194.667.667 0 00-.479.194l-3.526 3.46-1.472-1.441a.667.667 0 00-.479-.194.667.667 0 00-.478.194.64.64 0 00-.194.47z",fill:"#F2F4F5"})]})}),bi=(0,_t.jsx)("svg",{width:"6",height:"4",xmlns:"http://www.w3.org/2000/svg",children:(0,_t.jsx)("g",{fill:"none",fillRule:"evenodd",children:(0,_t.jsx)("path",{d:"M3.622 2.973c-.344.43-.899.43-1.244 0L.622.777C.278.347.45 0 .99 0h4.018c.547 0 .714.346.37.777L3.621 2.973z",className:"down-arrow",fill:"#1F292E"})})}),sa=(0,_t.jsx)("svg",{width:"16",height:"14",xmlns:"http://www.w3.org/2000/svg",children:(0,_t.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,_t.jsx)("rect",{fill:"#FFFA00",width:"16",height:"14",rx:"2.667"}),(0,_t.jsx)("path",{d:"M8.658 9.147v-.19c0-.269.056-.515.179-.74.1-.201.257-.403.47-.582.527-.459.84-.75.941-.873.28-.359.426-.818.426-1.367 0-.672-.224-1.21-.672-1.601-.448-.404-1.03-.594-1.748-.594-.828 0-1.478.235-1.948.717-.47.47-.706 1.109-.706 1.926h1.176c0-.493.1-.873.302-1.142.224-.325.594-.482 1.098-.482.403 0 .728.112.952.336.213.224.325.527.325.919 0 .29-.112.56-.314.817l-.19.213c-.695.616-1.12 1.075-1.266 1.389-.157.291-.224.65-.224 1.064v.19h1.199zm-.605 2.207a.841.841 0 00.582-.224.795.795 0 00.247-.583.743.743 0 00-.236-.571c-.156-.157-.358-.224-.593-.224a.793.793 0 00-.583.224.743.743 0 00-.235.571.803.803 0 00.818.806z",fill:"#333",fillRule:"nonzero"})]})}),Zi=document.getElementById(Aa)||Object.assign(document.createElement("div"),{id:Aa}),Fa=document.body;Fa.contains(Zi)||Fa.appendChild(Zi);class to extends m.PureComponent{constructor(je){super(je),(0,o.A)(this,"set$select",et=>this.setState({$select:et})),(0,o.A)(this,"open",()=>this.setState({isOpen:!0})),(0,o.A)(this,"close",()=>this.setState({isOpen:!1})),(0,o.A)(this,"toggle",()=>{this.props.optionList.length!==1&&this.setState({isOpen:!this.state.isOpen})}),(0,o.A)(this,"onResizeWindow",()=>this.state.isOpen&&this.close()),(0,o.A)(this,"onChange",et=>{const{isToolBar:St}=this.props;this.setState({value:et},()=>{St||this.close(),this.props.onChange(et,this.props.attr)})}),(0,o.A)(this,"onSelect",et=>{const{value:St}=this.props,vt=et.currentTarget;if(vt.tagName==="INPUT")return this.onChange(vt.value);{const{canSelect:no}=this,$o=vt.dataset.value;return this.onChange(no?typeof St=="number"?+$o:$o:St)}}),this.state={isOpen:!1,prevProps:this.props,value:this.props.value},this.Select=(0,m.createRef)()}static getDerivedStateFromProps(je,et){let{prevProps:St,value:vt,isOpen:no}=et;return je.onClose(no),_()(St,je)?null:{prevProps:je,value:je.value}}componentDidMount(){const{isShowButton:je}=this.props;window.addEventListener("resize",this.onResizeWindow),je||this.Select.current.parentElement.addEventListener("click",this.toggle)}componentWillUnmount(){const{isShowButton:je}=this.props;je||this.Select.current.parentElement.removeEventListener("click",this.toggle)}get isDisabled(){const{isDisabled:je,disabled:et}=this.props;return je||et}get readOnly(){return this.props.readOnly}get canSelect(){const{isDisabled:je,readOnly:et}=this;return!je&&!et}get displayText(){const{optionList:je,placeholder:et,withInput:St,showQuestionMark:vt}=this.props,{value:no}=this.state;if(vt)return no;const gn=(je.find(En=>z()(En)&&En.slice(0).some(cs=>kn(cs,no)))||je).find(En=>!z()(En)&&Object.keys(En).length>0&&En.value===no);return typeof gn=="number"||gn?Vs(gn):St?no:et}render(){var je;const{optionList:et,children:St,menuClassName:vt,size:no,unstyled:$o,className:gn,textAlign:En,onMouseEnter:cs,onMouseLeave:Zn,isShowButton:fs,placement:ks,selectWidth:Zs,width:ni,withInput:wi,zIndex:xi,isToolBar:Fi,noCheck:$i,showQuestionMark:ga,missingFont:Ia,prefix:_a,suffix:za}=this.props,la=(je=this.props.arrow)!=null?je:bi,{isOpen:qa,$select:rr,value:pr}=this.state,{Select:yr}=this,{isDisabled:Lr,readOnly:Tr,canSelect:Nl}=this,Il=bt(["WorkspaceSelect",no,$o&&"unstyled",gn,qa&&"is-open",Lr&&"is-disabled",Tr&&"readonly",et.length===1&&"single-menu"]),rl=b()("btn-wp",{"is-active":qa,"is-toolbar":Fi},{"is-disabled":Lr});return(0,_t.jsxs)(Ss,{className:Il,role:"listbox",isShowButton:fs,ref:yr,width:Zs==="auto"?void 0:Zs||ni,children:[fs&&(0,_t.jsxs)("div",{className:rl,style:En==="right"?{justifyContent:"flex-end"}:{},children:[St,(0,_t.jsxs)("button",{disabled:Lr,onClick:this.toggle,children:[_a,ga&&(0,_t.jsx)("span",{className:"question-icon",children:sa}),this.displayText,za]}),et.length!==1&&(0,_t.jsx)("span",{className:b()("caret",{"is-disabled":Lr}),children:la})]}),qa&&(0,_t.jsx)(Qt,{menuClassName:vt,isOpen:qa,...this.props,value:pr,$select:yr.current,isShowButton:fs,placement:ks,width:ni,withInput:wi,zIndex:xi,canSelect:Nl,onChange:this.onSelect,onMouseEnter:cs,onMouseLeave:Zn,onClose:this.close,noCheck:$i,missingFont:Ia})]})}}(0,o.A)(to,"propTypes",{children:x().node,size:x().oneOf(["regular","small"]),menuTheme:x().oneOf(["core","plain","check"]),unstyled:x().bool,className:x().string,menuClassName:x().string,placeholder:x().string,range:x().array,optionList:x().arrayOf(x().oneOfType([x().node,x().shape({label:x().node,value:x().any,isDisabled:x().bool}),x().arrayOf(x().oneOfType([x().node,x().shape({label:x().node,value:x().any,isDisabled:x().bool})]))])).isRequired,value:x().oneOfType([x().number,x().string,x().bool]),isDisabled:x().bool,disabled:x().bool,readOnly:x().bool,onClose:x().func,onChange:x().func,onMouseEnter:x().func,onMouseLeave:x().func,textAlign:x().oneOf(["left","right"]),isShowButton:x().bool,placement:x().oneOf(["rightBottom","bottom","leftBottom","center"]),width:x().oneOfType([x().number,x().string]),selectWidth:x().oneOfType([x().number,x().string]),withInput:x().bool,zIndex:x().number,isToolBar:x().bool,noCheck:x().bool,showQuestionMark:x().bool,missingFont:x().string,prefix:x().string,suffix:x().string}),(0,o.A)(to,"defaultProps",{size:"regular",menuTheme:"plain",className:"",menuClassName:"",placeholder:"Choose one\u2026",emptyMsg:"Nothing to display\u2026",optionList:[],isDisabled:!1,textAlign:"left",onClose:()=>null,onChange:()=>null,onMouseEnter:()=>null,onMouseLeave:()=>null,isShowButton:!0,placement:"center",withInput:!1,zIndex:void 0,isToolBar:!1,noCheck:!1,showQuestionMark:!1,missingFont:""});class Qt extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"state",{isTransform:!1}),(0,o.A)(this,"portal",go(Zi,"SelectMenuPortal")),(0,o.A)(this,"menuBaseRef",(0,m.createRef)()),(0,o.A)(this,"menuContainerRef",(0,m.createRef)()),(0,o.A)(this,"position",je=>{const{$select:et,isShowButton:St,placement:vt,width:no,optionList:$o,value:gn}=this.props,{menuBaseRef:{current:En},menuContainerRef:{current:cs}}=this,Zn=je?je.deltaY:0;if(je){const ks=E()(je,"target");if(ks&&a()(ks)&&ks.matches(".WorkspaceSelectMenu"))return}let fs=$o.findIndex(ks=>ks.value===gn);fs=fs>-1?fs:0,Gs({$menuBase:En,$opener:et,$menuContainer:cs,isShowButton:St,placement:vt,width:no,activeIndex:fs,deltaY:Zn}),this.setState({isTransform:!0})}),(0,o.A)(this,"onChange",je=>{const{onChange:et}=this.props,St=je.currentTarget,vt=St.closest(".WorkspaceSelectMenu");if(!St||!vt)return this.onClose();et(je)}),(0,o.A)(this,"onClose",()=>{const{onClose:je}=this.props;je()}),(0,o.A)(this,"onClickOutside",je=>{const{target:et}=je,{$select:St,isShowButton:vt}=this.props,no=!Zi.contains(et),$o=et.closest("label");let gn;if(vt)gn=$o&&$o.contains(St);else{const En=et.closest("div");gn=En&&St.parentElement.parentNode===En}no&&!gn&&(je.stopPropagation(),this.onClose())})}componentDidMount(){const{menuBaseRef:{current:je}}=this,{$select:et,isShowButton:St,withInput:vt}=this.props;Co(pt(".WorkspaceSelectMenu",je)),this.position(),St||et.parentElement.classList.add("is-active"),vt&&this.menuBaseRef.current.getElementsByTagName("input")[0].focus()}componentWillUnmount(){const{$select:je,isShowButton:et}=this.props;et||je.parentElement.classList.remove("is-active"),this.portal&&this.portal.remove()}render(){return(0,l.createPortal)(this.menu,this.portal)}get menu(){const{isOpen:je,isDisabled:et,menuTheme:St,menuClassName:vt,optionList:no,emptyMsg:$o,value:gn,canSelect:En,onMouseEnter:cs,onMouseLeave:Zn,width:fs,withInput:ks,zIndex:Zs,range:ni,noCheck:wi,missingFont:xi}=this.props,{isTransform:Fi}=this.state,$i=no.length===0,ga=bt(["WorkspaceSelectMenu",vt,Fi&&"is-open",et&&"is-disabled",$i&&"is-empty",En?"can-select":"cant-select"]);return(0,_t.jsxs)(Li,{ref:this.menuBaseRef,width:fs,zIndex:Zs,children:[(0,_t.jsx)(ji.lZ,{dismiss:this.onClose}),(0,_t.jsx)("ul",{className:ga,ref:this.menuContainerRef,style:{overflow:"auto"},children:$i?(0,_t.jsx)("li",{className:"SelectOption empty-msg",role:"empty-msg",children:$o}):(0,_t.jsxs)(_t.Fragment,{children:[ks&&(0,_t.jsx)(ho,{value:gn,range:ni,onChange:this.onChange}),xi!==""&&(0,_t.jsxs)("div",{className:"missingFont",children:[(0,_t.jsx)("span",{children:Ki}),xi]}),no.map((Ia,_a)=>z()(Ia)?(0,_t.jsx)(Sn,{menuTheme:St,optionList:Ia,value:gn,onChange:this.onChange,onClose:this.onClose,onMouseEnter:cs,onMouseLeave:Zn},_a):(0,_t.jsx)(Vo,{menuTheme:St,isActive:gn===Ia.value,option:Ia,isDisabled:Ia.isDisabled,onChange:this.onChange,onClose:this.onClose,onMouseEnter:cs,onMouseLeave:Zn,noCheck:wi},_a))]})}),je&&(0,_t.jsx)(f.A,{target:document,onClickCapture:this.onClickOutside})]})}}(0,o.A)(Qt,"propTypes",{...to.propTypes,isOpen:x().bool,canSelect:x().bool,menuClassName:x().string,onChange:x().func,onClose:x().func,$select:x().instanceOf(Element),noCheck:x().bool,missingFont:x().string}),(0,o.A)(Qt,"defaultProps",{isOpen:!1,isTransform:!1,noCheck:!1});function Sn(Re){let{value:je,optionList:[et,...St],menuTheme:vt,onChange:no,onClose:$o,onMouseEnter:gn,onMouseLeave:En}=Re;return(0,_t.jsxs)("li",{className:"SelectGroup",children:[et==="HIDDELINE"?null:et==="DIVIDER"?(0,_t.jsx)("div",{className:"divider"}):(0,_t.jsx)(Si,{className:"title",onClick:no,children:et}),(0,_t.jsx)("ul",{children:St.map((cs,Zn)=>(0,_t.jsx)(Vo,{menuTheme:vt,option:cs,isActive:kn(cs,je),isDisabled:cs.isDisabled,onChange:no,onClose:$o,onMouseEnter:gn,onMouseLeave:En},Zn))})]})}Sn.propTypes={value:x().oneOfType([x().string,x().number]),optionList:x().array,onChange:x().func,onClose:x().func,menuTheme:x().string,onMouseEnter:x().func,onMouseLeave:x().func};function Vo(Re){let{option:je,isActive:et,isDisabled:St,menuTheme:vt,onChange:no,onClose:$o,onMouseEnter:gn,onMouseLeave:En,noCheck:cs}=Re;const Zn=Object.keys(je).length===0,fs=bt(["SelectOption",cs&&"noCheck",et&&"is-active",St&&"is-disabled",Zn&&"is-empty"]),{icon:ks,label:Zs,value:ni,shortcut:wi,onClick:xi}=je,Fi=()=>{xi()};return(0,_t.jsx)("li",{role:"option","data-value":ni,className:fs,onClick:St||Zn?void 0:xi?Fi:no,onMouseEnter:gn,onMouseLeave:En,children:Zn?(0,_t.jsx)(_t.Fragment,{}):(0,_t.jsxs)(_t.Fragment,{children:[!cs&&et&&(0,_t.jsx)("span",{className:"checked",children:Ki}),(0,_t.jsxs)("div",{className:"value-wp",children:[ks&&(0,_t.jsx)("div",{className:"icon",children:ks}),(0,_t.jsx)("span",{className:"value",children:Zs||ni})]}),(0,_t.jsx)("span",{className:"shortcut",children:wi})]})})}Vo.propTypes={isActive:x().bool,option:x().oneOfType([x().node,x().object]),isDisabled:x().bool,menuTheme:x().string,onChange:x().func,onClose:x().func,onMouseEnter:x().func,onMouseLeave:x().func,noCheck:x().bool};function ho(Re){let{value:je,range:et,onChange:St}=Re;const[vt,no]=(0,m.useState)(je);(0,m.useEffect)(()=>{no(je)},[je]);const $o=(0,m.useRef)(),gn=Zn=>{if(Zn.key==="Enter")if(et){const[fs,ks]=et;vt>=fs&&vt<=ks?St(Zn):no(je)}else St(Zn)},En=Zn=>{Zn.target.select()},cs=Zn=>{const fs=Zn.target.value.replace(/\D/g,"");no(fs),Zn.target.focus()};return(0,_t.jsx)("li",{className:"SelectOption with-input",children:(0,_t.jsx)("input",{type:"text",value:vt,ref:$o,onFocus:En,onKeyDown:gn,onChange:cs})})}ho.propTypes={value:x().any,range:x().array,onChange:x().func};function Uo(Re){if(Re.isIdentity())return null;if(Re.isTranslate())return"translate("+Number(Re.x)+", "+Number(Re.y)+")";{const{a:je,b:et,c:St,d:vt,x:no,y:$o}=Re;return"matrix("+Number(je)+", "+Number(et)+", "+Number(St)+", "+Number(vt)+", "+Number(no)+", "+Number($o)+")"}}var pn=e(73523);const ys=g.Ay.div.withConfig({displayName:"styles__StyledColorThumbnail",componentId:"sc-1fxfprf-0"})(["position:relative;display:inline-flex;width:18px;height:18px;background-image:linear-gradient(45deg,#ccc 25%,transparent 0),linear-gradient(-45deg,#ccc 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ccc 0),linear-gradient(-45deg,transparent 75%,#ccc 0);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0;background-clip:padding-box;border-radius:2px;border:solid 1px #f1f1f1;background-color:#f1f1f1;box-sizing:border-box;.thumbnail{width:100%;height:100%;z-index:1;border-radius:2px;background-size:cover;border:1px solid rgba(0,0,0,0.17);box-sizing:border-box;&.gradient-btn{border:unset;}&.img-type{height:100%;width:auto;margin:auto;max-width:16px;}}&:before{content:'';position:absolute;width:20px;height:20px;left:-2px;top:-2px;border-radius:2px;background-color:transparent;z-index:0;border:solid 3px #f1f1f1;box-sizing:border-box;}.transparent{position:absolute;top:50%;left:50%;width:40px;border-top:2px solid #eb5648;transform-origin:0 0;transform:rotate(-22deg) translate(-50%,-50%);}"]),Dn=Re=>{let{color:je,attr:et,index:St,alpha:vt}=Re;const{colors:no,stops:$o,type:gn}=je,En=[];no.map((ks,Zs)=>{const ni=ks[3],xi={hex:A.Q1.toHexAndAlpha(ks)[0],alpha:ni,point:$o[Zs]};En.push(xi)});const cs="colorButton-"+et+"-"+gn+"-"+St,Zn=A.dL.parse(je),fs=Uo(Zn);return(0,_t.jsxs)("svg",{className:"thumbnail gradient-btn",children:[(0,_t.jsx)("defs",{children:gn===A.LA.LinearGradient?(0,_t.jsx)("linearGradient",{id:cs,x1:0,x2:1,y1:0,y2:0,gradientTransform:fs,children:En.sort((ks,Zs)=>ks.point-Zs.point).map((ks,Zs)=>{let{alpha:ni,hex:wi,point:xi}=ks;return(0,_t.jsx)("stop",{stopColor:wi,stopOpacity:ni,offset:xi},Zs)})}):(0,_t.jsx)("radialGradient",{id:cs,cx:0,cy:0,r:1,gradientTransform:fs,children:En.map((ks,Zs)=>{let{alpha:ni,hex:wi,point:xi}=ks;return(0,_t.jsx)("stop",{stopColor:wi,stopOpacity:ni,offset:xi},Zs)})})}),(0,_t.jsx)("rect",{width:"100%",height:"100%",fill:"url(#"+cs+")",style:{opacity:vt/100}})]})},Hs=(0,m.forwardRef)((Re,je)=>{let{className:et,color:St,attr:vt,index:no,handleColorThumbnailMouseDown:$o}=Re,gn=0,En="";if(St.type===A.LA.Solid){const Zn=St.color[3];En=A.Q1.toHexAndAlpha(St.color)[0],gn=Math.floor(Zn*100)}else gn=St.o*100;const cs=Zn=>$o&&$o(Zn,{color:St,attr:vt,index:no});return(0,_t.jsxs)(ys,{ref:je,className:b()("thumbnail-wrapper",et),onMouseDown:cs,children:[St.type===A.LA.Solid&&(0,_t.jsx)("div",{className:"thumbnail",style:{backgroundColor:En,opacity:gn/100}}),(0,pn.NT)(St.type)&&(0,_t.jsx)(Dn,{color:St,attr:vt,index:no,alpha:gn}),St.type===A.LA.Image&&(0,_t.jsx)("img",{className:"thumbnail img-type",src:St.src,style:{opacity:gn/100}})]})});Hs.displayName="ColorThumbnail";const Qn=Re=>{let{color:je,attr:et,index:St}=Re,vt=0,no="";if(je.type===A.LA.Solid){const $o=je.color[3];no=A.Q1.toHexAndAlpha(je.color)[0],vt=Math.floor($o*100)}else vt=je.o*100;return(0,_t.jsxs)(m.Fragment,{children:[je.type===A.LA.Solid&&(0,_t.jsx)("div",{className:"thumbnail",style:{backgroundColor:no,opacity:vt/100}}),(0,pn.NT)(je.type)&&(0,_t.jsx)(Dn,{color:je,attr:et,index:St,alpha:vt}),je.type===A.LA.Image&&(0,_t.jsx)("img",{className:"thumbnail img-type",src:je.src,style:{opacity:vt/100}})]})};Qn.displayName="ColorRender";const Gi=Re=>{let{color:je,attr:et,colorPanelPosOffset:St={offsetLeft:266,offsetTop:140},enable:vt,index:no,onChange:$o,onChangeState:gn,length:En}=Re;const[cs,Zn]=(0,m.useState)(!1),[fs,ks]=(0,m.useState)({left:0,top:0}),[Zs,ni]=(0,m.useState)(!1),wi=(0,m.useRef)(null),xi=!!et&&(et==="text"||et==="shadows"||et==="LGColor"),Fi=et==="LGColor"||et==="text",$i=za=>{if(!vt)return;if(cs)return ga();const{offsetLeft:la,offsetTop:qa}=St,{left:rr,top:pr,height:yr}=za.target.getBoundingClientRect(),Lr={left:rr-la>>0,top:pr+yr/2-qa>>0};ks(Lr),Zn(!0)},ga=()=>{Zn(!1),gn&&gn(void 0)},Ia=za=>{const la=za.target;if(la.closest(".create-icon-arrow")||wi.current.contains(la))return za.preventDefault();(la.closest("#mb-toolbar")||la.closest(".thumbnail-wrapper")||la.closest(".appearance-mode")||la.closest(".appearance-shadow")||la.closest(".appearance-blur")||la.closest(".appearance-fills")||la.closest(".export-setting")||la.closest(".rows"))&&Zn(!1)},_a=za=>{ni(za)};return(0,_t.jsxs)(_t.Fragment,{children:[(0,_t.jsx)(Hs,{ref:wi,color:je,attr:et,index:no,handleColorThumbnailMouseDown:$i}),cs&&(0,_t.jsxs)(_t.Fragment,{children:[(0,_t.jsx)(ci,{colorObj:je,attr:et,position:fs,isSolidColorOnly:xi,isHideBlendMode:Fi,index:En-no,onClose:ga,onPositionChanged:ks,onColorSave:$o,onChangeShowColorList:_a,isShowColorList:Zs}),(0,_t.jsx)(f.A,{target:document,onMouseDown:(0,f.t)(Ia,{capture:!0})})]})]})};var oa=e(44057);const ta=(0,_t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,_t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8492 0.94971C10.5075 0.608001 9.95349 0.608001 9.61178 0.94971L5.89952 4.66197L2.18724 0.949699C1.84553 0.60799 1.29151 0.60799 0.949802 0.949699C0.608093 1.29141 0.608093 1.84543 0.949802 2.18714L4.66208 5.89941L0.949721 9.61176C0.608012 9.95347 0.608012 10.5075 0.949721 10.8492C1.29143 11.1909 1.84545 11.1909 2.18716 10.8492L5.89952 7.13685L9.61186 10.8492C9.95357 11.1909 10.5076 11.1909 10.8493 10.8492C11.191 10.5075 11.191 9.95346 10.8493 9.61175L7.13695 5.89941L10.8492 2.18715C11.1909 1.84544 11.1909 1.29142 10.8492 0.94971Z",fill:"#666666"})}),Sa=(Re,je)=>(0,_t.jsx)("svg",{width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",children:(0,_t.jsx)("circle",{cx:"8",cy:"8",r:"7.5",fill:Re?je:"#6c6c6c",stroke:Re?je:"#6c6c6c",strokeWidth:Re?"1px":"0.5px",fillRule:"evenodd",fillOpacity:".54"})}),La=(Re,je)=>(0,_t.jsxs)("svg",{width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",children:[(0,_t.jsx)("defs",{children:(0,_t.jsxs)("linearGradient",{x1:"50%",y1:"39.897%",x2:"50%",y2:"81.179%",id:"LINEAR_ICON",children:[(0,_t.jsx)("stop",{stopColor:Re?"#ffffff":"#f9f9f9",offset:"0%"}),(0,_t.jsx)("stop",{stopColor:Re?je:"#939393",offset:"100%"})]})}),(0,_t.jsx)("circle",{cx:"32",cy:"8",r:"7.5",transform:"translate(-24)",fill:"url(#LINEAR_ICON)",stroke:Re?je:"#6c6c6c",strokeWidth:Re?"1px":"0.5px",fillRule:"evenodd"})]}),ya=(Re,je)=>(0,_t.jsxs)("svg",{width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",children:[(0,_t.jsx)("defs",{children:(0,_t.jsxs)("radialGradient",{cx:"50%",cy:"50%",fx:"50%",fy:"50%",r:"50%",id:"RADIAL_ICON",children:[(0,_t.jsx)("stop",{stopColor:"#ffffff",offset:"0%"}),(0,_t.jsx)("stop",{stopColor:"#ffffff",offset:"37.844%"}),(0,_t.jsx)("stop",{stopColor:Re?je:"#a0a0a0",offset:"100%"})]})}),(0,_t.jsx)("circle",{cx:"56",cy:"8",r:"7.5",transform:"translate(-48)",fill:"url(#RADIAL_ICON)",stroke:Re?je:"#6c6c6c",strokeWidth:Re?"1px":"0.5px",fillRule:"evenodd"})]}),Ja=Re=>(0,_t.jsxs)("svg",{width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",xlinkHref:"http://www.w3.org/1999/xlink",children:[(0,_t.jsxs)("defs",{children:[(0,_t.jsx)("circle",{id:"IMAGE_ICONa",cx:"8",cy:"8",r:"8"}),(0,_t.jsx)("circle",{id:"IMAGE_ICONc",cx:"8",cy:"8",r:"8"})]}),(0,_t.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,_t.jsx)("mask",{id:"IMAGE_ICONb",fill:"#fff",children:(0,_t.jsx)("use",{href:"#IMAGE_ICONa"})}),(0,_t.jsx)("circle",{stroke:"#1169C9",strokeWidth:".5",cx:"8",cy:"8",r:"7.75"}),(0,_t.jsx)("circle",{fill:Re?"#9881e1":"#9f9f9f",mask:"url(#IMAGE_ICONb)",cx:"10",cy:"5",r:"2"}),(0,_t.jsx)("path",{d:"M-3.376 17l7.137-8.785a2 2 0 012.999-.12l1.955 2.047c.62.65 1.642.691 2.313.095a1.65 1.65 0 012.302.106L18.624 16l-22 1z",fill:Re?"#9881e1":"#9f9f9f",mask:"url(#IMAGE_ICONb)"}),(0,_t.jsx)("circle",{stroke:Re?"#6c4bd5":"#6c6c6c",cx:"8",cy:"8",r:"7.5"})]})]}),No=(0,_t.jsx)("svg",{width:"8",height:"12",xmlns:"http://www.w3.org/2000/svg",children:(0,_t.jsx)("path",{d:"M3.41 1.925C1.626 4.367.668 6.162.668 7.333c0 .92.373 1.754.976 2.357A3.323 3.323 0 004 10.667c.92 0 1.754-.373 2.357-.977a3.323 3.323 0 00.976-2.357c0-1.136-.907-2.858-3.221-5.701-.218 0-.454.104-.701.293z",stroke:"#666",strokeWidth:"1.333",fill:"none",fillRule:"evenodd"})}),ct=(0,_t.jsx)("svg",{width:"8px",height:"13px",viewBox:"0 0 8 13",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:(0,_t.jsx)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,_t.jsx)("g",{transform:"translate(-46.000000, -161.000000)",children:(0,_t.jsxs)("g",{transform:"translate(46.000000, 161.049808)",children:[(0,_t.jsx)("path",{d:"M4.11191096,1.58215796 C6.42605214,4.42488591 7.33333333,6.14723803 7.33333333,7.28352545 C7.33333333,8.20400004 6.96023729,9.03733337 6.3570226,9.64054806 C5.75380792,10.2437627 4.92047458,10.6168588 4,10.6168588 C3.07952542,10.6168588 2.24619208,10.2437627 1.6429774,9.64054806 C1.03976271,9.03733337 0.666666667,8.20400004 0.666666667,7.28352545 C0.666666667,6.11218556 1.62493917,4.31685542 3.410905,1.87530515 C3.65755854,1.68591297 3.89402263,1.58215794 4.11191096,1.58215796 Z",id:"\u692D\u5706\u5F62",stroke:"#666666",strokeWidth:"1.33333333"}),(0,_t.jsx)("path",{d:"M4,11.2835255 C6.209139,11.2835255 8,9.49266445 8,7.28352545 C8,5.07438645 5.54839832,7.62780603 4,6.4999772 C2.45160168,5.37214836 0,5.07438645 0,7.28352545 C0,9.49266445 1.790861,11.2835255 4,11.2835255 Z",id:"\u692D\u5706\u5F62",fill:"#666666"})]})})})}),Mt=(0,_t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,_t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.76578 1.75693C3.99458 -0.461347 7.53404 -0.579013 9.90206 1.40373L10.4456 0.862785C10.9119 0.398628 11.7134 0.684349 11.7736 1.34253L11.9967 3.78593C12.041 4.27099 11.6331 4.67457 11.1494 4.63081L8.69439 4.40868C8.03742 4.34924 7.7441 3.5515 8.21376 3.08406L8.79225 2.5083C7.03888 1.13004 4.48664 1.2465 2.86807 2.85743C1.12409 4.59316 1.12409 7.40684 2.86807 9.14257C4.61271 10.879 7.44183 10.879 9.18648 9.14257C9.31171 9.01793 9.42778 8.88795 9.53477 8.75343C9.7844 8.43956 10.2464 8.3154 10.6166 8.54538C10.9762 8.76881 11.1086 9.26101 10.8322 9.62341C10.6675 9.83936 10.4863 10.0465 10.2888 10.2431C7.93507 12.5856 4.11947 12.5856 1.76578 10.2431C-0.588592 7.89982 -0.588592 4.10017 1.76578 1.75693Z",fill:"#666666"})}),ht=(0,_t.jsx)("svg",{width:"9",height:"9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,_t.jsx)("path",{d:"M4.892 1.042a.475.475 0 1 0-.95 0v2.9h-2.9a.475.475 0 0 0 0 .95h2.9v2.9a.475.475 0 0 0 .95 0v-2.9h2.9a.475.475 0 1 0 0-.95h-2.9v-2.9z",fill:"#999",stroke:"#999",strokeWidth:".2",strokeLinecap:"round"})}),oo=(0,_t.jsx)("svg",{width:"9",height:"5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,_t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.424 4.667a.6.6 0 0 1 0-.849L3.818.424a.6.6 0 0 1 .848 0l3.395 3.394a.6.6 0 1 1-.849.849l-2.97-2.97-2.97 2.97a.6.6 0 0 1-.848 0z",fill:"#999"})}),uo=(0,_t.jsx)("svg",{width:"14",height:"15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,_t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.522 3.959zm2.098 1.88a.524.524 0 0 1-.172.274.641.641 0 0 1-.816 0L1.186 4.022l2.446 2.091a.641.641 0 0 0 .816 0 .524.524 0 0 0 .172-.275zm7.609-1.67h-9.14 9.14c.245 0 .491-.145.569-.38-.078.235-.324.38-.569.38zM3.089 3.09 4.45 1.93 3.088 3.09zm1.457 2.125-1.05-.898h8.733c.354 0 .744-.255.744-.688 0-.433-.39-.689-.744-.689H3.496l1.05-.897a.656.656 0 0 0 0-1.012.791.791 0 0 0-1.012 0L1.088 3.124a.656.656 0 0 0 0 1.012l2.446 2.091a.791.791 0 0 0 1.012 0 .656.656 0 0 0 0-1.011zm6.433 4.51-.003-.002.003.002zm-9.837 1.521a.51.51 0 0 0-.014.122c0 .327.298.539.594.539h9.14-9.14c-.296 0-.594-.212-.594-.539 0-.043.005-.083.014-.122zm9.72-.416-1.36-1.162 1.36 1.162zm-1.36 3.022a.641.641 0 0 0 .817 0l2.446-2.092-2.446 2.092a.641.641 0 0 1-.816 0zm-.097-4.07 1.05.898H1.722c-.354 0-.744.255-.744.688 0 .434.39.689.744.689h8.733l-1.05.897a.656.656 0 0 0 0 1.012.791.791 0 0 0 1.011 0l2.447-2.092a.656.656 0 0 0 0-1.011l-2.447-2.092a.791.791 0 0 0-1.01 0 .656.656 0 0 0 0 1.011z",fill:"#666"})}),So=(0,_t.jsx)("svg",{width:"9",height:"12",xmlns:"http://www.w3.org/2000/svg",children:(0,_t.jsxs)("g",{stroke:"#666",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,_t.jsx)("path",{d:"M1 10.5v-4a3 3 0 013-3h4"}),(0,_t.jsx)("path",{d:"M6.333 1.5l2 2.003-2 1.997"})]})}),zo=(0,_t.jsxs)("svg",{width:"22",height:"22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_t.jsxs)("g",{clipPath:"url(#a)",children:[(0,_t.jsx)("path",{d:"M5.6 11.278c0 .111.043.219.121.298a.41.41 0 0 0 .586 0 .426.426 0 0 0 0-.597.41.41 0 0 0-.586 0 .426.426 0 0 0-.121.299zM6.24 9.145c0 .176.069.344.19.468a.644.644 0 0 0 .92 0 .668.668 0 0 0 0-.936.644.644 0 0 0-.92 0 .668.668 0 0 0-.19.468zM8.64 7.412c0 .226.089.444.246.604a.831.831 0 0 0 1.187 0 .862.862 0 0 0 0-1.208.831.831 0 0 0-1.187 0 .862.862 0 0 0-.245.604zM11.815 7.412c0 .284.11.557.308.758a1.044 1.044 0 0 0 1.49 0 1.083 1.083 0 0 0 0-1.517 1.044 1.044 0 0 0-1.49 0 1.083 1.083 0 0 0-.308.759z",fill:"#666"}),(0,_t.jsxs)("g",{filter:"url(#b)",children:[(0,_t.jsx)("path",{d:"m18.207 6.365-.011-.01a.366.366 0 0 0-.523.037l-5.582 6.546-.706 1.413 1.266-.898 5.593-6.556a.382.382 0 0 0-.037-.532z",fill:"#666"}),(0,_t.jsx)("path",{d:"M18.262 6.28a.466.466 0 0 0-.665.048l-5.583 6.545a.097.097 0 0 0-.013.02l-.706 1.413a.1.1 0 0 0 .148.126l1.266-.897a.1.1 0 0 0 .018-.017l5.593-6.557-.076-.064.076.064a.482.482 0 0 0-.047-.671l-.011-.01z",stroke:"#666",strokeWidth:".2",strokeLinejoin:"round"})]}),(0,_t.jsx)("path",{d:"M17.727 10.411a.481.481 0 0 0-.477-.505.48.48 0 0 0-.474.43l.951.075zm0 0v.019c-.008.099-.068.373-.185.743-.118.374-.297.854-.547 1.366-.5 1.022-1.289 2.185-2.46 2.892-3.863 2.334-6.431.597-6.964-.28-.155-.254-.293-.52-.415-.755l-.048-.091c-.137-.261-.247-.465-.34-.573-.02-.023-.052-.042-.11-.053a.94.94 0 0 0-.229-.005 5.95 5.95 0 0 0-.29.03l-.026.003a7.005 7.005 0 0 1-.376.038c-.532.036-1.173-.023-1.692-.615-.265-.302-.433-.816-.47-1.435-.038-.623.056-1.366.329-2.139.545-1.548 1.808-3.22 4.172-4.301 4.332-1.982 7.44.427 7.943.857a.475.475 0 0 1-.279.853.461.461 0 0 1-.303-.113c-1.131-.96-3.4-1.829-6.07-1.108-1.901.504-3.237 1.775-4.017 3.12-.39.672-.639 1.36-.75 1.976-.112.619-.083 1.155.072 1.53.073.178.214.274.412.325.204.052.456.053.733.043l.157-.005c.224-.01.458-.018.673-.002.265.02.522.08.714.242.073.062.154.166.235.286.083.123.171.27.26.425.107.188.218.392.32.58l.182.335c.117.208.37.419.736.59.364.17.83.296 1.359.343a5.577 5.577 0 0 0 3.562-.923c1.119-.74 1.81-1.805 2.22-2.69a8.117 8.117 0 0 0 .514-1.457l.02-.09.004-.022.001-.006v-.001l.953.068z",fill:"#666",stroke:"#666",strokeWidth:".2",strokeLinejoin:"round"})]}),(0,_t.jsxs)("defs",{children:[(0,_t.jsx)("clipPath",{id:"a",children:(0,_t.jsx)("path",{d:"M0 4a4 4 0 0 1 4-4h14a4 4 0 0 1 4 4v14a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4V4z",fill:"#fff"})}),(0,_t.jsxs)("filter",{id:"b",x:"7.185",y:"6.063",width:"15.35",height:"16.488",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,_t.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,_t.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,_t.jsx)("feOffset",{dy:"4"}),(0,_t.jsx)("feGaussianBlur",{stdDeviation:"2"}),(0,_t.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,_t.jsx)("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),(0,_t.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_5734_103268"}),(0,_t.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_5734_103268",result:"shape"})]})]})]}),en=(0,_t.jsxs)("svg",{width:"22",height:"22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_t.jsxs)("g",{clipPath:"url(#a)",children:[(0,_t.jsx)("path",{d:"M5.6 11.278c0 .111.043.219.121.298a.41.41 0 0 0 .586 0 .426.426 0 0 0 0-.597.41.41 0 0 0-.586 0 .426.426 0 0 0-.121.299zM6.24 9.145c0 .176.069.344.19.468a.644.644 0 0 0 .92 0 .668.668 0 0 0 0-.936.644.644 0 0 0-.92 0 .668.668 0 0 0-.19.468zM8.64 7.412c0 .226.089.444.246.604a.831.831 0 0 0 1.187 0 .862.862 0 0 0 0-1.208.831.831 0 0 0-1.187 0 .862.862 0 0 0-.245.604zM11.815 7.412c0 .284.11.557.308.758a1.044 1.044 0 0 0 1.49 0 1.083 1.083 0 0 0 0-1.517 1.044 1.044 0 0 0-1.49 0 1.083 1.083 0 0 0-.308.759z",fill:"#F2F4F5"}),(0,_t.jsxs)("g",{filter:"url(#b)",children:[(0,_t.jsx)("path",{d:"m18.207 6.365-.011-.01a.366.366 0 0 0-.523.037l-5.582 6.546-.706 1.413 1.266-.898 5.593-6.556a.382.382 0 0 0-.037-.532z",fill:"#F2F4F5"}),(0,_t.jsx)("path",{d:"M18.262 6.28a.466.466 0 0 0-.665.048l-5.583 6.545a.097.097 0 0 0-.013.02l-.706 1.413a.1.1 0 0 0 .148.126l1.266-.897a.1.1 0 0 0 .018-.017l5.593-6.557-.076-.064.076.064a.482.482 0 0 0-.047-.671l-.011-.01z",stroke:"#666",strokeWidth:".2",strokeLinejoin:"round"})]}),(0,_t.jsx)("path",{d:"M17.727 10.411a.481.481 0 0 0-.477-.505.48.48 0 0 0-.474.43l.951.075zm0 0v.019c-.008.099-.068.373-.185.743-.118.374-.297.854-.547 1.366-.5 1.022-1.289 2.185-2.46 2.892-3.863 2.334-6.431.597-6.964-.28-.155-.254-.293-.52-.415-.755l-.048-.091c-.137-.261-.247-.465-.34-.573-.02-.023-.052-.042-.11-.053a.94.94 0 0 0-.229-.005 5.95 5.95 0 0 0-.29.03l-.026.003a7.005 7.005 0 0 1-.376.038c-.532.036-1.173-.023-1.692-.615-.265-.302-.433-.816-.47-1.435-.038-.623.056-1.366.329-2.139.545-1.548 1.808-3.22 4.172-4.301 4.332-1.982 7.44.427 7.943.857a.475.475 0 0 1-.279.853.461.461 0 0 1-.303-.113c-1.131-.96-3.4-1.829-6.07-1.108-1.901.504-3.237 1.775-4.017 3.12-.39.672-.639 1.36-.75 1.976-.112.619-.083 1.155.072 1.53.073.178.214.274.412.325.204.052.456.053.733.043l.157-.005c.224-.01.458-.018.673-.002.265.02.522.08.714.242.073.062.154.166.235.286.083.123.171.27.26.425.107.188.218.392.32.58l.182.335c.117.208.37.419.736.59.364.17.83.296 1.359.343a5.577 5.577 0 0 0 3.562-.923c1.119-.74 1.81-1.805 2.22-2.69a8.117 8.117 0 0 0 .514-1.457l.02-.09.004-.022.001-.006v-.001l.953.068z",fill:"#F2F4F5",stroke:"#666",strokeWidth:".2",strokeLinejoin:"round"})]}),(0,_t.jsxs)("defs",{children:[(0,_t.jsx)("clipPath",{id:"a",children:(0,_t.jsx)("path",{d:"M0 4a4 4 0 0 1 4-4h14a4 4 0 0 1 4 4v14a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4V4z",fill:"#fff"})}),(0,_t.jsxs)("filter",{id:"b",x:"7.185",y:"6.063",width:"15.35",height:"16.488",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,_t.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,_t.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,_t.jsx)("feOffset",{dy:"4"}),(0,_t.jsx)("feGaussianBlur",{stdDeviation:"2"}),(0,_t.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,_t.jsx)("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),(0,_t.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_5756_104341"}),(0,_t.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_5756_104341",result:"shape"})]})]})]}),mn=(0,_t.jsxs)("svg",{width:"22",height:"22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_t.jsx)("rect",{x:"4.583",y:"4.583",width:"3.55",height:"3.55",rx:".5",fill:"#999"}),(0,_t.jsx)("rect",{x:"4.583",y:"9.133",width:"3.55",height:"3.55",rx:".5",fill:"#999"}),(0,_t.jsx)("rect",{x:"4.583",y:"13.683",width:"3.55",height:"3.55",rx:".5",fill:"#C4C4C4"}),(0,_t.jsx)("rect",{x:"9.225",y:"4.583",width:"3.55",height:"3.55",rx:".5",fill:"#999"}),(0,_t.jsx)("rect",{x:"9.225",y:"9.133",width:"3.55",height:"3.55",rx:".5",fill:"#666"}),(0,_t.jsx)("rect",{x:"9.225",y:"13.683",width:"3.55",height:"3.55",rx:".5",fill:"#999"}),(0,_t.jsx)("rect",{x:"13.867",y:"4.583",width:"3.55",height:"3.55",rx:".5",fill:"#C4C4C4"}),(0,_t.jsx)("rect",{x:"13.867",y:"9.133",width:"3.55",height:"3.55",rx:".5",fill:"#999"}),(0,_t.jsx)("rect",{x:"13.867",y:"13.683",width:"3.55",height:"3.55",rx:".5",fill:"#999"})]}),jn=(0,_t.jsxs)("svg",{width:"22",height:"22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_t.jsx)("rect",{x:"4.583",y:"4.583",width:"3.55",height:"3.55",rx:".5",fill:"#999"}),(0,_t.jsx)("rect",{x:"4.583",y:"9.133",width:"3.55",height:"3.55",rx:".5",fill:"#999"}),(0,_t.jsx)("rect",{x:"4.583",y:"13.683",width:"3.55",height:"3.55",rx:".5",fill:"#C4C4C4"}),(0,_t.jsx)("rect",{x:"9.225",y:"4.583",width:"3.55",height:"3.55",rx:".5",fill:"#999"}),(0,_t.jsx)("rect",{x:"9.225",y:"9.133",width:"3.55",height:"3.55",rx:".5",fill:"#F2F4F5"}),(0,_t.jsx)("rect",{x:"9.225",y:"13.683",width:"3.55",height:"3.55",rx:".5",fill:"#999"}),(0,_t.jsx)("rect",{x:"13.867",y:"4.583",width:"3.55",height:"3.55",rx:".5",fill:"#C4C4C4"}),(0,_t.jsx)("rect",{x:"13.867",y:"9.133",width:"3.55",height:"3.55",rx:".5",fill:"#999"}),(0,_t.jsx)("rect",{x:"13.867",y:"13.683",width:"3.55",height:"3.55",rx:".5",fill:"#999"})]}),Oo=["zh","en"],Nn="zh",es={"popup.colorPanel.colorSpace":["\u8272\u5F69\u7A7A\u95F4","Color Space"],"popup.colorPanel.colorChart":["\u8272\u677F","Color Chart"],"popup.colorPanel.history":["\u6700\u8FD1\u4F7F\u7528","Recently used"],"popup.colorPanel.favorite":["\u6211\u7684\u6536\u85CF","Favorite colors"],"helper.color_breakpoint_tips":["\u989C\u8272\u65AD\u70B9\u4E0D\u80FD\u8D85\u8FC7128\u4E2A","No more than 128 color breakpoints"],"popup.colorPanel.basic":["\u901A\u7528\u989C\u8272","Basic colors"],"components.reverse_gradient":["\u53CD\u5411\u6E10\u53D8","Invert Gradient"],"components.rotate_gradient":["\u65CB\u8F6C\u6E10\u53D8","Rotate Gradient"],"common.delete":["\u5220\u9664","Delete"],"common.hide":["\u9690\u85CF","Hide"],"common.show":["\u663E\u793A","Show"],"common.resetColor":["\u91CD\u7F6E\u989C\u8272","Reset Color"],"settingPanel.blendModeList.normal":["\u6B63\u5E38","Normal"],"settingPanel.blendModeList.darken":["\u53D8\u6697","Darken"],"settingPanel.blendModeList.multiply":["\u6B63\u7247\u53E0\u5E95","Multiply"],"settingPanel.blendModeList.colorBurn":["\u989C\u8272\u52A0\u6DF1","Color Burn"],"settingPanel.blendModeList.lighten":["\u53D8\u4EAE","Lighten"],"settingPanel.blendModeList.screen":["\u6EE4\u8272","Screen"],"settingPanel.blendModeList.colorDodge":["\u989C\u8272\u51CF\u6DE1"," Color dodge"],"settingPanel.blendModeList.overlay":["\u53E0\u52A0","Overlay"],"settingPanel.blendModeList.softLight":["\u67D4\u5149","Soft light"],"settingPanel.blendModeList.hardLight":["\u5F3A\u5149","Hard light"],"settingPanel.blendModeList.difference":["\u5DEE\u96C6","Difference"],"settingPanel.blendModeList.exclusion":["\u6392\u9664","Exclusion"],"settingPanel.blendModeList.hue":["\u8272\u76F8","Hue"],"settingPanel.blendModeList.saturation":["\u9971\u548C\u5EA6","Saturation"],"settingPanel.blendModeList.color":["\u989C\u8272","Color"],"settingPanel.blendModeList.luminosity":["\u660E\u5EA6","Luminosity"],"settingPanel.blendModeList.passThrough":["\u7A7F\u900F","Pass through"],"components.solidFill":["\u7EAF\u8272\u586B\u5145","Solid Color"],"settingPanel.linearGradient":["\u7EBF\u6027\u6E10\u53D8","Linear"],"settingPanel.radialGradient":["\u5F84\u5411\u6E10\u53D8","Radial"],"settingPanel.imageFill":["\u56FE\u7247\u586B\u5145","Image Fill"],"components.chooseImage":["\u9009\u62E9\u56FE\u7247","Choose Image"],"shortcuts.image":["\u56FE\u7247","Image"],"components.pictureFill":["\u586B\u5145","Fill"],"components.pictureFit":["\u9002\u5408","Fit"],"components.addToCollection":["\u70B9\u51FB + \u53F7\u6DFB\u52A0\u5230\u4F60\u7684\u6536\u85CF",'Click "+" to add to Assets'],"common.multipleValues":["\u591A\u4E2A\u503C","Multiple Values"]},zt={locale:Nn,localeIndex:Oo.indexOf(Nn)},po={"zh-CN":"zh",zh:"zh",en:"en","mockitt-en":"en"},Fo=Re=>es[Re]&&es[Re][zt.localeIndex]||"\u2426\u2426\u2426\u2426",Mn=Re=>{if(Re=po[Re],Re=Re.toLowerCase(),Re=Oo.find(je=>Re.includes(je))||"",!Re)throw new Error("[I18N] invalid locale: "+Re);zt.locale=Re,zt.localeIndex=Oo.indexOf(Re)},Fn=()=>zt.locale;function ts(Re,je,et){const St=je.getBoundingClientRect(),vt=Math.min(St.left,document.documentElement.clientWidth-St.right);return Re.offsetWidth+je.offsetWidth+et+vt<document.documentElement.clientWidth}function As(Re,je){const et=Re.getBoundingClientRect(),St=et.bottom>window.innerHeight,vt=et.top<0;if(vt&&St)return!0;if(Re.offsetHeight>je.offsetHeight){const no=Re.offsetHeight/2,$o=et.bottom-window.innerHeight,gn=-et.top,En=no-$o,cs=no-gn;return En>=0&&cs>=0}return!St&&!vt}function Is(Re,je,et,St,vt){if(!et)return Re;const no=et.getBoundingClientRect(),$o=je.offsetHeight+St,gn=window.innerHeight-no.bottom,En=no.top,cs=gn>=$o,Zn=En>=$o;switch(Re){case"right":return!ts(je,et,St)||!As(et,je)?Is("up",je,et,St,!0):document.documentElement.clientWidth-no.right<je.offsetWidth+St?"left":"right";case"left":return!ts(je,et,St)||!As(et,je)?Is("up",je,et,St,!0):no.left<je.offsetWidth+St?"right":"left";case"up":if(!Zn){if(cs)return"down";if(!vt&&ts(je,et,St))return Is("right",je,et,St,!0)}return"up";case"down":default:if(!cs){if(Zn)return"up";if(!vt&&ts(je,et,St))return Is("right",je,et,St,!0)}return"down"}}function io(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function Jo(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0}function Zo(){return typeof document<"u"?document.documentElement.clientWidth:1e3}function Un(Re){const je=Re.split("-");return je.length>1?je[1]:"middle"}function On(Re,je,et,St,vt){let no=-1e7,$o;if(Re){const gn=Jo(),En=je.getBoundingClientRect(),cs=En.left+gn,Zn=Math.round(je.offsetWidth/2),fs=Math.min(Zo(),Re.offsetWidth);if(St==="start")no=cs;else if(St==="end"){const wi=cs+je.offsetWidth;no=Math.max(wi-fs,gn)}else{const wi=cs+Zn-Math.round(fs/2);no=Math.max(wi,gn)}const ks=no+fs,Zs=gn+document.documentElement.clientWidth,ni=ks-Zs;ni>0&&(no-=ni),et==="up"?$o=En.top+io()-(Re.offsetHeight+vt):$o=En.bottom+io()+vt}return{left:no,top:$o}}function us(Re,je,et,St,vt){let no=-1e7,$o=0;if(Re){const gn=io(),En=Jo(),cs=je.getBoundingClientRect(),Zn=cs.top+gn,fs=Math.round(je.offsetHeight/2),ks=Zn+fs,Zs=cs.top+gn+fs;if(St==="start")$o=Zn;else if(St==="end")$o=cs.bottom+gn-Re.offsetHeight;else{const wi=Math.max(Zn+fs-Math.round(Re.offsetHeight/2),gn);$o=Math.min(wi,ks)}const ni=$o-gn+Re.offsetHeight-window.innerHeight;ni>0&&($o=Math.max($o-ni,Zs-Re.offsetHeight)),et==="right"?no=cs.right+vt+En:no=cs.left-vt-Re.offsetWidth+En}return{left:no,top:$o}}function bn(Re,je,et){let{direction:St,distance:vt,forceDirection:no}=et;const $o=Un(St),gn=St.split("-")[0];let En=gn;return!no&&je&&(En=Is(gn,je,Re,vt)),{sourceNodePosition:En==="up"||En==="down"?On(je,Re,En,$o,vt):us(je,Re,En,$o,vt),realDirection:En}}class Gn extends m.Component{constructor(je){super(je),this.container=document.createElement("div"),document.body.appendChild(this.container)}componentWillUnmount(){document.body.removeChild(this.container)}render(){return(0,l.createPortal)(this.props.children,this.container)}}Gn.propTypes={children:x().node.isRequired};const xs=g.Ay.div.withConfig({displayName:"styles__StyledTips",componentId:"sc-1ffkypo-0"})(["display:flex;justify-content:center;align-items:center;flex-direction:column;position:absolute;opacity:0;background:rgb(69,70,71);color:#fff;width:auto;text-align:center;text-decoration:none;word-break:break-all;max-width:200px;padding:4px 8px;box-sizing:border-box;z-index:1101;border-radius:4px;box-shadow:0 2px 8px 0 rgba(0,0,0,0.15);line-height:18px;font-size:12px;transition:all 0.2s ease-in-out;&.show{opacity:0.9;}.shortcut-key{white-space:nowrap;display:inline-block;font-family:inherit;text-align:center;margin-left:12px;color:rgb(200,205,208);}"]);function Es(Re,je,et){return(je=Ys(je))in Re?Object.defineProperty(Re,je,{value:et,enumerable:!0,configurable:!0,writable:!0}):Re[je]=et,Re}function Ys(Re){var je=lo(Re,"string");return typeof je=="symbol"?je:je+""}function lo(Re,je){if(typeof Re!="object"||!Re)return Re;var et=Re[Symbol.toPrimitive];if(et!==void 0){var St=et.call(Re,je||"default");if(typeof St!="object")return St;throw new TypeError("@@toPrimitive must return a primitive value.")}return(je==="string"?String:Number)(Re)}function Ko(Re){const je=Re.getBoundingClientRect(),{paddingTop:et,paddingLeft:St,paddingRight:vt,paddingBottom:no}=getComputedStyle(Re),$o=parseInt(et),gn=parseInt(St),En=parseInt(vt),cs=parseInt(no);return{top:je.top+$o,left:je.left+gn,width:je.width-(gn+En),height:je.height-($o+cs)}}let ro=document.createElement("canvas").getContext("2d");ro.font="12px -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif";const Yt=Re=>ro.measureText(Re);class Be extends m.PureComponent{constructor(){var je;super(),je=this,Es(this,"hideTip",et=>{clearTimeout(this.timer),this.timer=null;const St=this.props.children.props;St.onMouseLeave&&St.onMouseLeave(et),this.state.showTip&&this.setState({showTip:!1})}),Es(this,"startHover",et=>{const{isTruncated:St,hangingTime:vt}=this.props,no=this.props.children.props;no.onMouseEnter&&no.onMouseEnter(et);const{isShowTipsByTarget:$o}=this.props;$o(this.tip,(0,l.findDOMNode)(this),et)&&(!St||this.detectTruncation(this.tip))&&(vt?this.timer=setTimeout(()=>{this.setState(gn=>{if(!gn.showTip)return{showTip:!0}})},vt):this.setState({showTip:!0}))}),Es(this,"onHiddenTips",et=>{const{onMouseEvent:St}=this.props,vt=this.props.children.props;vt[St]&&vt[St](et),this.state.showTip&&this.setState({showTip:!1})}),Es(this,"detectTruncation",function(et){return et===void 0&&(et=je.$ellipsis),et.offsetWidth<et.scrollWidth}),Es(this,"adjustPositionForToolTips",()=>{const{direction:et,distance:St,forceDirection:vt,content:no,maxWidth:$o}=this.props,gn={direction:et,distance:St,forceDirection:vt},{sourceNodePosition:En}=bn((0,l.findDOMNode)(this),this.tip,gn),cs=document.body.clientWidth,Zn=Math.min($o,Yt(no).width),fs=no&&typeof no=="string"?Zn+16:0;for(;En.left+fs>cs;)En.left-=5;this.setState({tipPosition:En})}),Es(this,"setTipsRef",et=>this.tip=et),this.state={showTip:!1,tipPosition:{}}}componentDidUpdate(je,et){(!et.showTip&&this.state.showTip||this.state.showTip&&je.content!==this.props.content)&&this.adjustPositionForToolTips(),setTimeout(()=>{this.tip&&this.tip.classList&&this.tip.classList.add("show")},10)}render(){const{children:je,content:et,isShowTipsByProps:St,isShowTips:vt,onMouseEvent:no,maxWidth:$o,autoHeight:gn,isHideMouseDown:En,hotKey:cs}=this.props,{showTip:Zn,tipPosition:fs}=this.state,ks={key:"trigger"};St&&vt&&(ks.onMouseEnter=this.startHover,ks.onMouseLeave=this.hideTip,En&&(ks.onMouseDown=this.hideTip),no&&(ks[no]=this.onHiddenTips));const Zs=m.Children.only(je),ni=(0,m.cloneElement)(Zs,ks);let wi=null;if(Zn&&St&&vt){const xi={maxWidth:$o,...fs,whiteSpace:gn?"wrap":"nowrap"};wi=et&&(0,_t.jsx)(Gn,{children:(0,_t.jsx)(xs,{style:xi,ref:this.setTipsRef,children:(0,_t.jsxs)("span",{children:[et,cs&&(0,_t.jsx)("span",{className:"shortcut-key",children:cs})]})})},"portal")}return[ni,wi]}}Es(Be,"propTypes",{isTruncated:x().bool,forceDirection:x().bool,isShowTipsByProps:x().bool,isShowTips:x().bool,autoHeight:x().bool,children:x().node.isRequired,content:x().node,maxWidth:x().number,hangingTime:x().number,onMouseEvent:x().string,direction:x().string,distance:x().number,isShowTipsByTarget:x().func,isHideMouseDown:x().bool,hotKey:x().string}),Es(Be,"defaultProps",{direction:"up",distance:3,forceDirection:!1,isShowTipsByProps:!0,isShowTips:!0,isShowTipsByTarget:()=>!0,isTruncated:!1,onMouseEvent:"",maxWidth:void 0,isHideMouseDown:!0,autoHeight:!1});const Wt=()=>[{name:Fo("popup.colorPanel.basic"),key:"theme",colors:["transparent","#000000","#FF2525","#FF6200","#fcca00","#27B148","#00C7FF","#3291F8","#A411D1","#8CA2AA","#505559","#FF7272","#FF9959","#FEDD59","#52CC6F","#59DBFF","#7AB8FB","#C465E2","#C1CDD1","#C2C7CC","#FFB3B3","#FFC9A6","#FEEDA6","#7EE697","#A6ECFF","#B8D9FD","#E0ACEF","#EDF1F2","#E1E3E6","#FFE9E9","#FFEFE5","#FFFAE5","#DDFAE4","#E5FAFF","#EBF4FF","#F6E7FB"]},{name:"Ant Design",key:"ant",colors:["#fbfbfb","#F7F7F7","#F5F5F5","#E9E9E9","#D9D9D9","#BFBFBF","#919191","#5A5A5A","#404040","#FFF1F0","#FFCCC7","#FFA39E","#FF7875","#FF4D4F","#F5222D","#CF1322","#A8071A","#820014","#FFF7E6","#FFE7BA","#FFD591","#FFC069","#FFA940","#FA8C16","#D46B08","#AD4E00","#873800","#FEFFE6","#FFFFB8","#FFFB8F","#FFF566","#FFEC3D","#FADB14","#D4B106","#AD8B00","#876800","#F6FFED","#D9F7BE","#B7EB8F","#95DE64","#73D13D","#52C41A","#389E0D","#237804","#135200","#E6FFFB","#B5F5EC","#87E8DE","#5CDBD3","#36CFC9","#13C2C2","#08979C","#006D75","#00474F","#E6F7FF","#BAE7FF","#91D5FF","#69C0FF","#40A9FF","#1890FF","#096DD9","#0050B3","#003A8C","#F9F0FF","#EFDBFF","#D3ADF7","#B37FEB","#9254DE","#722ED1","#531DAB","#391085","#22075e","#FFF0F6","#FFD6E7","#FFADD2","#FF85C0","#F759AB","#EB2F96","#C41D7F","#9E1068","#780650"]},{name:"Apple iOS UI",key:"apple",colors:["#FF3A30","#FF2D55","#FF9502","#FFCB01","#34C758","#5AC8FA","#007AFF","#5756D7","#AF52DE","#8E8E93","#AEAEB2","#C7C7CC","#E5E5EA","#F2F2F7"]},{name:"Material Design",key:"Material",colors:["#FF1744","#F50057","#D500F9","#651FFF","#3D5AFE","#2979FF","#00B0FF","#00E5FF","#1DE9B6","#00E676","#76FF03","#C6FF00","#FFEA00","#FFC400","#FF9100","#FF3D00","#212121","#424242","#616161","#757575","#9E9E9E","#BDBDBD","#E0E0E0","#EEEEEE","#F5F5F5","#FAFAFA","#FFFFFF"]},{name:Fo("settingPanel.linearGradient"),key:"lg",colors:[{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[0,1],colors:[[.996,.639,.451,1],[1,.404,.545,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[0,.504,1],colors:[[.996,.337,.302,1],[.984,.608,.212,1],[.976,.792,.149,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[0,.42,1],colors:[[.953,.941,.643,1],[.929,.914,.463,1],[.902,.882,.282,1]]},{v:!0,blend:1,type:1,o:1,x:.5,y:1.207,complex:{a:-.7069999999999999,b:-.707,c:.707,d:-.7069999999999999},stops:[0,1],colors:[[.788,1,.749,1],[.047,.643,.318,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[0,.5,1],colors:[[.678,.792,.667,1],[.518,.686,.498,1],[.357,.58,.329,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[0,.5,1],colors:[[.608,.89,.878,1],[.349,.769,.769,1],[.086,.643,.655,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[0,.5,.99],colors:[[.51,.82,.965,1],[.161,.714,.957,1],[0,.537,.804,1]]},{v:!0,blend:1,type:1,o:1,x:1,y:0,complex:{a:6123233995736766e-32,b:1,c:-1,d:6123233995736766e-32},stops:[0,1],colors:[[0,.482,.827,1],[.012,.263,.451,1]]},{v:!0,blend:1,type:1,o:1,x:1,y:0,complex:{a:6123233995736766e-32,b:1,c:-1,d:6123233995736766e-32},stops:[0,1],colors:[[.482,.196,.698,1],[.251,.102,.365,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[.19,.44,.64,.84],colors:[[1,.725,.725,1],[.996,.62,.624,1],[1,.561,.557,1],[1,.451,.451,1]]},{v:!0,blend:1,type:1,o:1,x:.5,y:-.207,complex:{a:.707,b:.7069999999999999,c:-.7069999999999999,d:.707},stops:[.4,1],colors:[[1,.863,.565,1],[.992,.745,.161,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[0,.5,1],colors:[[.965,.82,.655,1],[.961,.741,.486,1],[.957,.659,.314,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[0,1],colors:[[1,.945,.624,1],[.678,.882,.722,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[.06,1],colors:[[.494,.784,.733,1],[.937,.949,.714,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[0,.42,1],colors:[[.769,.894,.859,1],[.671,.851,.792,1],[.569,.808,.725,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[0,.5,1],colors:[[.725,.89,.957,1],[.596,.843,.945,1],[.467,.796,.929,1]]},{v:!0,blend:1,type:1,o:1,x:-.183,y:.683,complex:{a:.4999999999999999,b:-.8660000000000001,c:.8660000000000001,d:.4999999999999999},stops:[0,.99],colors:[[.231,.714,.996,1],[.557,.298,.718,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[0,.506,1],colors:[[.988,.851,.871,1],[.925,.737,.8,1],[.651,.553,.729,1]]},{v:!0,blend:1,type:1,o:1,x:-.207,y:.5,complex:{a:.707,b:-.7069999999999999,c:.7069999999999999,d:.707},stops:[0,.52,.99],colors:[[.976,.878,.894,1],[.988,.659,.659,1],[1,.584,.584,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[0,1],colors:[[.973,.855,.467,1],[.929,.42,.788,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[0,1],colors:[[.537,.882,.933,1],[1,.765,.831,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[0,.99],colors:[[.788,1,.749,1],[1,.69,.745,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[0,1],colors:[[.576,.91,.835,1],[.627,.678,.882,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[0,.5,1],colors:[[.922,.584,.98,1],[.388,.816,.976,1],[.471,.984,.576,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[0,1],colors:[[.78,.706,.925,1],[1,.733,.737,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[0,1],colors:[[.741,.839,.988,1],[.855,.337,.325,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[0,.5,1],colors:[[.835,.635,.867,1],[.91,.753,.667,1],[.98,.867,.467,1]]}]},{name:Fo("settingPanel.radialGradient"),key:"rg",colors:[{v:!0,blend:1,type:2,o:1,x:0,y:1,complex:{a:6123233995736766e-32,b:-1,c:1,d:6123233995736766e-32},stops:[.47,.63,.73,.82,.99],colors:[[.992,.784,.957,1],[.957,.988,.702,1],[.698,.984,.714,1],[.69,.933,.976,1],[.902,.69,.984,1]]},{v:!0,blend:1,type:2,o:1,x:1,y:1,complex:{a:6123233995736766e-32,b:-1,c:1,d:6123233995736766e-32},stops:[0,1],colors:[[.38,.847,.863,1],[.91,.251,.969,1]]},{v:!0,blend:1,type:2,o:1,x:1,y:1,complex:{a:6123233995736766e-32,b:-1,c:1,d:6123233995736766e-32},stops:[.03,.487,1],colors:[[.761,1,.847,1],[.541,.714,.91,1],[.322,.431,.973,1]]},{v:!0,blend:1,type:2,o:1,x:.5,y:.5,complex:{a:-.5,b:6123233995736766e-32,c:-6123233995736766e-32,d:-.5},stops:[0,1],colors:[[.565,.996,.624,1],[.008,.792,.992,1]]},{v:!0,blend:1,type:2,o:1,x:1,y:1,complex:{a:6123233995736766e-32,b:-1,c:1,d:6123233995736766e-32},stops:[0,.5,1],colors:[[.976,.502,.004,1],[.839,.871,.561,1],[.212,.733,.651,1]]},{v:!0,blend:1,type:2,o:1,x:1,y:1,complex:{a:6123233995736766e-32,b:-1,c:1,d:6123233995736766e-32},stops:[0,.32,.58,.86],colors:[[.922,.31,.18,1],[.957,.804,.576,1],[.439,.694,.902,1],[.161,.345,.584,1]]},{v:!0,blend:1,type:2,o:1,x:1,y:1,complex:{a:6123233995736766e-32,b:-1,c:1,d:6123233995736766e-32},stops:[.01,.31,.62,.98],colors:[[.961,.714,.431,1],[.89,.475,.494,1],[.596,.42,.675,1],[.298,.333,.682,1]]}]}],At=["\u6CE2\u65AF\u83CA","\u843D\u65E5\u4F59\u6656","\u9999\u69AD\u4E3D\u820D","\u722C\u5C71\u864E\u7684\u811A","\u7EFF\u8272\u591A\u8089","1837\u84DD","\u5546\u52A1\u6E10\u53D8\u84DD","\u5927\u6D77\u7684\u4F20\u8BF4","\u7D2B\u8272\u70DF\u82B1","\u8349\u8393\u5976\u971C","\u6A58\u5B50\u6C7D\u6C34","\u7ACB\u79CB","\u54C8\u5BC6\u74DC","\u9752\u67E0\u5473","\u4E00\u7247\u8584\u8377","\u6625\u65E5\u6674","\u79D1\u6280\u611F","\u85B0\u8863\u8349","\u6C34\u871C\u6843","\u5C11\u5973\u65F6\u4EE3","\u51B0\u6FC0\u51CC","\u9A6C\u5361\u9F99","\u5C0F\u7CBE\u7075","\u68C9\u82B1\u7CD6","\u9999\u828B\u5976\u8336","\u5E72\u67AF\u73AB\u7470","\u5348\u540E\u5FAE\u91BA"],Xe=["\u5F69\u8679\u751C\u5FC3","\u5706\u821E\u66F2","\u62C2\u6653","\u6D77\u84DD\u4E4B\u5FC3","\u82A6\u82C7\u4E1B","\u5C11\u5E74\u7684\u68A6","\u5915\u9633\u665A\u971E"],Vt={theme:"\u901A\u7528\u989C\u8272",ant:"Ant Design",apple:"Apple IOS UI",Material:"Material Design",lg:"\u7EBF\u6027\u6E10\u53D8",rg:"\u5F84\u5411\u6E10\u53D8",favorite:"\u6211\u7684\u6536\u85CF"};class Xo extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"state",{index:-1,showDeleteMenu:!1}),(0,o.A)(this,"handleChangeSelect",je=>{this.props.onChangeSelect(je),this.setState({index:-1})}),(0,o.A)(this,"getOpacityPerc",je=>{if(typeof je!="string")return!1;const et=je.split(","),St=et.length;return St>3&&+et[St-1].replace(")","")!=1}),(0,o.A)(this,"handleSelect",(je,et,St)=>{const{currentSelect:vt}=this.props;this.setState({index:St}),je.button===2&&vt==="favorite"?this.setState({showDeleteMenu:{left:je.clientX,top:je.clientY-18}}):(this.props.handleSelect(et,Vt[vt],1),this.setState({showDeleteMenu:!1}))}),(0,o.A)(this,"toggleShowColorList",()=>{const{isShowColorList:je,onChangeShowColorList:et}=this.props;et(!je),this.props.onToggleExpand()}),(0,o.A)(this,"getSolidColor",(je,et)=>{const{index:St}=this.state,[vt,no=1]=je.split("&"),$o=b()("current-palette-color-li gradient-bg",{transparent:je==="transparent"},{"is-active":St===et&&this.props.isFocus});return(0,_t.jsx)("li",{className:$o,onMouseDown:gn=>this.handleSelect(gn,je,et),children:(0,_t.jsx)("div",{className:"color-box",style:{backgroundColor:vt,opacity:Number(no)}})})}),(0,o.A)(this,"getGradientColor",(je,et)=>{const{index:St}=this.state,vt=b()("current-palette-color-li gradient-bg",{"is-active":St===et&&this.props.isFocus});return(0,_t.jsx)("li",{className:vt,onMouseDown:no=>this.handleSelect(no,je,et),children:(0,_t.jsx)(Dn,{color:je,attr:"dropDown",index:et,alpha:je.o*100})})}),(0,o.A)(this,"handleDelete",()=>{const{onDeleteFavorite:je}=this.props,{index:et}=this.state;je(et),this.setState({showDeleteMenu:!1})}),(0,o.A)(this,"handleClose",()=>{this.setState({showDeleteMenu:!1})})}render(){const{colorPanelList:je,currentSelect:et="theme",onAddToFavorite:St}=this.props,{showDeleteMenu:vt}=this.state,{isShowColorList:no}=this.props,$o=je.filter(Zn=>{let{key:fs}=Zn;return fs!=="history"}).map(Zn=>{let{key:fs,name:ks}=Zn;return{value:fs,label:ks}}),{colors:gn}=je.find(Zn=>Zn.key===et)||{},En=document.documentElement.lang,cs=et==="lg"?At:et==="rg"?Xe:null;return(0,_t.jsxs)("div",{className:"panel-color-list",style:{paddingTop:0},children:[(0,_t.jsxs)("header",{className:b()({"is-alone":!no}),children:[(0,_t.jsx)(to,{width:140,value:et,optionList:$o,selectWidth:En==="en"?120:118,onChange:this.handleChangeSelect}),(0,_t.jsxs)("div",{className:"btns-wp",children:[et==="favorite"&&(0,_t.jsx)("div",{className:"icon",onClick:St,children:ht}),(0,_t.jsx)("div",{className:b()("icon",{"is-rotate":!no}),onClick:this.toggleShowColorList,children:oo})]})]}),no&&(0,_t.jsx)("ul",{className:"current-palette",style:{marginTop:-5},children:gn&&gn.length>0?gn.map((Zn,fs)=>cs?(0,_t.jsx)(Be,{content:cs[fs],direction:"down",children:(0,_t.jsx)("div",{className:"current-palette-color "+(this.getOpacityPerc(Zn)?"current-palette-color-imagback":""),children:typeof Zn=="string"?this.getSolidColor(Zn,fs):this.getGradientColor(Zn,fs)})},fs):(0,_t.jsx)("div",{className:"current-palette-color "+(this.getOpacityPerc(Zn)?"current-palette-color-imagback":""),children:typeof Zn=="string"?this.getSolidColor(Zn,fs):this.getGradientColor(Zn,fs)},fs)):(0,_t.jsxs)("div",{className:"block",children:[(0,_t.jsx)("div",{className:"placeholder-icon"}),et==="favorite"&&(0,_t.jsx)("span",{children:Fo("components.addToCollection")})]})}),et==="favorite"&&vt&&(0,_t.jsx)(oa.Ay,{position:vt,style:{minWidth:55,height:30,padding:"4px 0"},onClose:this.handleClose,children:(0,_t.jsx)(oa.Dr,{text:Fo("common.delete"),onClick:this.handleDelete})})]})}}const rn=Re=>{Re.stopPropagation(),Re.nativeEvent.stopImmediatePropagation()},Ps=g.Ay.div.withConfig({displayName:"styles__StyledHSVPicker",componentId:"sc-i7fbzf-0"})([".inline{display:flex;flex-direction:row;height:122px;margin-bottom:8px;.s-v-plane{position:relative;height:122px;width:208px;margin-right:8px;border-radius:4px;background-clip:content-box;overflow:hidden;.pointer{position:absolute;width:14px;height:14px;margin:calc(-14px / 2);box-shadow:0 0 2px 0 rgba(0,0,0,0.5);border:2px solid white;border-radius:50%;background-color:transparent;pointer-events:none;}.base-hue-layer,.s-layer,.v-layer{position:absolute;width:100%;height:100%;pointer-events:none;}.s-layer{-ms-filter:\"progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#ffffff', endColorstr='#00ffffff')\";background:-moz-linear-gradient(left,white 0%,rgba(255,255,255,0) 100%);background:-webkit-gradient(linear,left top,right top,color-stop(0%,white),color-stop(100%,rgba(255,255,255,0)));background:-webkit-linear-gradient(left,white 0%,rgba(255,255,255,0) 100%);background:-o-linear-gradient(left,white 0%,rgba(255,255,255,0) 100%);background:-ms-linear-gradient(left,white 0%,rgba(255,255,255,0) 100%);background:linear-gradient(to right,white 0%,rgba(255,255,255,0) 100%);filter:progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#ffffff',endColorstr='#00ffffff');}.v-layer{-ms-filter:\"progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#00000000', endColorstr='#000000')\";background:-moz-linear-gradient(top,transparent 0%,black 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,transparent),color-stop(100%,black));background:-webkit-linear-gradient(top,transparent 0%,black 100%);background:-o-linear-gradient(top,transparent 0%,black 100%);background:-ms-linear-gradient(top,transparent 0%,black 100%);background:linear-gradient(to bottom,transparent 0%,black 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000',endColorstr='#000000',GradientType=0 );}}}.row{display:flex;align-items:center;padding:0 2px;}.outside-color-picker-btn{width:28px;height:28px;margin-left:-5px;margin-right:8px;cursor:pointer;border-radius:4px;display:flex;justify-content:center;align-items:center;background:transparent;color:",";&:hover{background:",";}}.h-a-bands{display:flex;flex-direction:row;align-items:center;flex:1;}.h-band,.a-band{position:relative;height:10px;border:0.5px solid rgba(0,0,0,0.12);border-radius:8px;cursor:pointer;background-clip:padding-box;.rail{position:absolute;top:1px;bottom:1px;left:calc(5px / 2 + 1px);right:calc(5px / 2 + 1px);}.slider{position:absolute;top:-3.5px;width:14px;height:14px;margin-left:calc(-14px / 2);background:transparent;border:solid 2px #ffffff;box-shadow:0 1px 4px 0 rgba(0,0,0,0.2);border-radius:50%;z-index:2;pointer-events:none;}}.h-band{height:122px;width:10px;margin-bottom:10px;background-image:linear-gradient(to top,red,#ff0080,magenta,#8000ff,blue,#0080ff,cyan,#00ff80,lime,#80ff00,yellow,#ff8000,red);.rail{top:-3px;bottom:9px;left:4px;}}.a-band{width:195px;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:6px 6px;background-position:0 0,0 3px,3px -3px,-3px 0;}.preview-container{width:24px;height:24px;border:1px solid ",";border-radius:2px;background-image:linear-gradient(45deg,#ccc 25%,transparent 0),linear-gradient(-45deg,#ccc 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ccc 0),linear-gradient(-45deg,transparent 75%,#ccc 0);background-size:12px 12px;background-position:-1px -1px,-1px 5px,5px -7px,-7px -1px;}"],Re=>Re.theme.color_text_L1,Re=>Re.theme.icon_bg_hover,Re=>Re.theme.borderColor);class Os extends m.PureComponent{constructor(je){super(je),(0,o.A)(this,"$SVPlane",null),(0,o.A)(this,"$HBand",null),(0,o.A)(this,"$ABand",null),(0,o.A)(this,"setSVPlaneRef",En=>{this.$SVPlane=En}),(0,o.A)(this,"setHBandRef",En=>{this.$HBand=En}),(0,o.A)(this,"setABandRef",En=>{this.$ABand=En}),(0,o.A)(this,"_getBaseHue",En=>A.Q1.rgb2hex(A.Q1.hsv2rgb({h:En,s:1,v:1}))),(0,o.A)(this,"_getSVPointerStyle",(En,cs)=>({top:100-cs*100+"%",left:En*100+"%"})),(0,o.A)(this,"_getSVValue",(En,cs)=>{const Zn=this.$SVPlane.getBoundingClientRect();return{s:Math.min(1,Math.max(0,En-Zn.left)/Zn.width),v:1-Math.min(1,Math.max(0,cs-Zn.top)/Zn.height)}}),(0,o.A)(this,"_getHPointerStyle",()=>{const{h:En}=this.state,cs=this._getBaseHue(En);return{top:En*100+"%",backgroundColor:cs}}),(0,o.A)(this,"_getAPointerStyle",En=>{const{h:cs,s:Zn,v:fs}=this.state,{r:ks,g:Zs,b:ni}=A.Q1.hsv2rgb({h:cs,s:Zn,v:fs});return{left:En*100+"%",backgroundColor:"rgba("+ks+", "+Zs+", "+ni+", "+En+")"}}),(0,o.A)(this,"_getHValue",En=>{const cs=this.$HBand.getBoundingClientRect();return{h:Math.min(1,Math.max(0,En-cs.top)/cs.height)}}),(0,o.A)(this,"_getAValue",En=>{const cs=this.$ABand.getBoundingClientRect(),Zn=Math.min(1,Math.max(0,En-cs.left)/cs.width);return{a:Math.round(Zn*100)/100}}),(0,o.A)(this,"handleDragSVPlane",En=>{rn(En),En.preventDefault();const{color:cs,onChange:Zn,onMouseDownCallback:fs,onMouseUpCallback:ks}=this.props,{h:Zs}=this.state,[,,,ni]=cs;this.setState({changeInside:!0}),fs();const wi=Fi=>{if(Fi.stopPropagation(),Fi.stopImmediatePropagation(),Fi.preventDefault(),!this.$SVPlane)return;const{s:$i,v:ga}=this._getSVValue(Fi.clientX,Fi.clientY),{r:Ia,g:_a,b:za}=A.Q1.hsv2rgb({h:Zs,s:$i,v:ga}),la=[Ia,_a,za,ni];this.setState({s:$i,v:ga,changeInside:!0}),Zn({color:la},!0)},xi=Fi=>{if(!this.$SVPlane)return;const{s:$i,v:ga}=this._getSVValue(Fi.clientX,Fi.clientY),{r:Ia,g:_a,b:za}=A.Q1.hsv2rgb({h:Zs,s:$i,v:ga}),la=[Ia,_a,za,ni];this.setState({s:$i,v:ga}),Zn({color:la},!1),document.removeEventListener("mousemove",wi),document.removeEventListener("mouseup",xi),this.setState({changeInside:!1}),ks()};document.addEventListener("mousemove",wi),document.addEventListener("mouseup",xi)}),(0,o.A)(this,"handleDragHBand",En=>{rn(En),En.preventDefault();const{color:cs,onChange:Zn,onMouseDownCallback:fs,onMouseUpCallback:ks}=this.props,{s:Zs,v:ni}=this.state,[,,,wi]=cs;this.setState({changeInside:!0}),fs();const xi=$i=>{if($i.stopPropagation(),$i.stopImmediatePropagation(),$i.preventDefault(),!this.$HBand)return;const{h:ga}=this._getHValue($i.clientY),{r:Ia,g:_a,b:za}=A.Q1.hsv2rgb({h:ga,s:Zs,v:ni}),la=[Ia,_a,za,wi];this.setState({h:ga,changeInside:!0}),Zn({color:la},!0)},Fi=$i=>{if(!this.$HBand)return;const{h:ga}=this._getHValue($i.clientY),{r:Ia,g:_a,b:za}=A.Q1.hsv2rgb({h:ga,s:Zs,v:ni}),la=[Ia,_a,za,wi];this.setState({h:ga}),Zn({color:la},!1),document.removeEventListener("mousemove",xi),document.removeEventListener("mouseup",Fi),this.setState({changeInside:!1}),ks()};document.addEventListener("mousemove",xi),document.addEventListener("mouseup",Fi)}),(0,o.A)(this,"handleDragABand",En=>{rn(En),En.preventDefault();const{a:cs}=this._getAValue(En.clientX),{color:Zn,onChange:fs,onMouseDownCallback:ks,onMouseUpCallback:Zs}=this.props;Zn[3]=cs,this.setState({changeInside:!0}),ks();const ni=xi=>{if(xi.stopPropagation(),xi.stopImmediatePropagation(),xi.preventDefault(),!this.$ABand)return;const{a:Fi}=this._getAValue(xi.clientX);Zn[3]=Fi,fs({color:Zn},!0),this.setState({changeInside:!0})},wi=xi=>{if(!this.$ABand)return;const{a:Fi}=this._getAValue(xi.clientX);Zn[3]=Fi,fs({color:Zn},!1),document.removeEventListener("mousemove",ni),document.removeEventListener("mouseup",wi),this.setState({changeInside:!1}),Zs()};document.addEventListener("mousemove",ni),document.addEventListener("mouseup",wi)}),(0,o.A)(this,"handleChangeShowGradientBar",()=>{const{isShowGradientBar:En,onChangeIsShowGradientBar:cs}=this.props;cs(!En)});const[et,St,vt]=je.color,{s:no,v:$o,h:gn}=A.Q1.rgb2hsv({r:et,g:St,b:vt});this.state={s:no,v:$o,h:gn,changeInside:!1,currentTab:0}}static getDerivedStateFromProps(je,et){const[St,vt,no]=je.color,{r:$o,g:gn,b:En}=A.Q1.hsv2rgb({h:et.h,s:et.s,v:et.v});if([St,vt,no].toString()!==[$o,gn,En].toString()&&!et.changeInside){const{s:cs,v:Zn,h:fs}=A.Q1.rgb2hsv({r:St,g:vt,b:no});return{s:cs,v:Zn,h:fs}}return null}render(){const{color:je,isEyedropperOpen:et,toggleColorPicker:St,colorPickerEnabled:vt}=this.props,[,,,no]=je,{h:$o,s:gn,v:En}=this.state,cs=this._getBaseHue($o),Zn=this._getSVPointerStyle(gn,En),fs=this._getHPointerStyle(),ks=this._getAPointerStyle(no);return(0,_t.jsxs)(Ps,{className:"hsv-picker",children:[(0,_t.jsxs)("div",{className:"inline",children:[(0,_t.jsxs)("section",{className:"s-v-plane",ref:this.setSVPlaneRef,onMouseDown:this.handleDragSVPlane,children:[(0,_t.jsx)("div",{className:"base-hue-layer",style:{background:cs}}),(0,_t.jsx)("div",{className:"s-layer"}),(0,_t.jsx)("div",{className:"v-layer"}),(0,_t.jsx)("i",{className:"pointer",style:Zn})]}),(0,_t.jsx)("div",{className:"h-band",onMouseDown:this.handleDragHBand,children:(0,_t.jsx)("div",{className:"rail",ref:this.setHBandRef,children:(0,_t.jsx)("span",{className:"slider",style:fs})})})]}),(0,_t.jsx)("div",{className:"row",children:(0,_t.jsxs)("div",{className:"h-a-bands",children:[(0,_t.jsx)(Be,{content:"\u53D6\u8272\u5668",hotKey:"I",direction:"down",hangingTime:"1000",children:(0,_t.jsx)("div",{className:b()("outside-color-picker-btn",{"color-picker-enabled":vt}),onClick:St,children:et?(0,_t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",children:[(0,_t.jsx)("rect",{width:"24",height:"24",rx:"4",fill:"#0077FF","fill-opacity":"0.15"}),(0,_t.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.9142 5.24234C19.6598 5.98788 19.6112 7.25801 18.8289 8.1483L18.7122 8.2728L16.2878 10.6972C16.2196 10.7654 16.1486 10.829 16.0753 10.8878L17.8543 12.6668C18.4401 13.2526 18.4401 14.2023 17.8543 14.7881C17.2685 15.3739 16.3188 15.3739 15.733 14.7881L14.4957 13.5509C14.4956 13.551 14.4955 13.5511 14.4953 13.5513L8.55563 19.491C7.94111 20.1055 7.17438 20.4902 6.40809 20.5901C5.64078 20.6902 4.83142 20.5044 4.24228 19.9152C3.10291 18.7759 3.46287 16.9403 4.50402 15.7739L4.51111 15.7659L4.65905 15.6094L10.6062 9.6622C10.6064 9.66206 10.6065 9.66192 10.6066 9.66179L9.36903 8.42417C8.78324 7.83838 8.78324 6.88863 9.36903 6.30285C9.95481 5.71706 10.9046 5.71706 11.4903 6.30285L13.2687 8.0812C13.2926 8.0515 13.3172 8.02217 13.3426 7.99324L13.4594 7.86874L15.8838 5.44437C16.7764 4.55174 18.1332 4.46129 18.9142 5.24234ZM11.6673 10.7224C11.6672 10.7226 11.667 10.7227 11.6669 10.7229L5.7347 16.6551L5.61639 16.7803C4.87011 17.6221 4.95226 18.5039 5.30294 18.8546C5.49484 19.0465 5.80414 19.1562 6.21408 19.1027C6.62503 19.0491 7.09413 18.8312 7.49497 18.4303L13.4347 12.4906C13.4348 12.4905 13.4349 12.4903 13.4351 12.4902L11.6673 10.7224Z",fill:"#0077FF"})]}):(0,_t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_t.jsx)("path",{d:"M14.8284 10.5858C15.2189 10.9763 15.2189 11.6095 14.8284 12L8.18155 18.6468C7.16619 19.6622 5.70991 19.8521 4.92886 19.0711C4.18331 18.3255 4.3225 16.9647 5.21979 15.9595L5.35312 15.8184L11.9999 9.17158C12.3904 8.78105 13.0236 8.78105 13.4141 9.17158L14.8284 10.5858Z",stroke:"currentColor",strokeWidth:"1.5"}),(0,_t.jsx)("path",{d:"M19.071 4.92894C19.8165 5.67448 19.768 6.94461 18.9857 7.83489L18.8689 7.9594L16.4446 10.3838C15.5519 11.2764 14.1951 11.3668 13.4141 10.5858C12.6686 9.84025 12.7171 8.57012 13.4994 7.67984L13.6161 7.55533L16.0405 5.13097C16.9331 4.23834 18.2899 4.14789 19.071 4.92894Z",fill:"currentColor",fillRule:"nonzero"}),(0,_t.jsx)("rect",{x:"10.5857",y:"4.92893",width:"12",height:"3",rx:"1.5",transform:"rotate(45 10.5857 4.92893)",fill:"currentColor",fillRule:"nonzero"})]})})}),(0,_t.jsxs)("div",{className:"a-band",onMouseDown:this.handleDragABand,children:[(0,_t.jsx)("div",{style:{width:"100%",height:"100%",borderRadius:8,background:"linear-gradient(to right, transparent 0%, "+A.Q1.rgb2rgbaStr({...A.Q1.hsv2rgb({h:$o,s:gn,v:En}),a:1})+" 100%)"}}),(0,_t.jsx)("div",{className:"rail",ref:this.setABandRef,children:(0,_t.jsx)("span",{className:"slider",style:ks})})]})]})})]})}}var ss=e(70235),Fs=e.n(ss),Ei=[15,18,'<path d="M9.32 16.345H5.68c.062.422.248.798.518 1.085.331.351.793.57 1.302.57s.97-.219 1.302-.57c.27-.287.456-.663.517-1.085zM8.528 1.901a1.275 1.275 0 0 0-.233-.36 1.09 1.09 0 0 0-.796-.348c-.31 0-.593.132-.796.348a1.275 1.275 0 0 0-.233.36 4.945 4.945 0 0 1 2.058 0zm-3.278.42A2.444 2.444 0 0 1 5.908.7c.41-.432.97-.7 1.592-.7.622 0 1.183.268 1.59.7.395.416.642.989.66 1.62a5.52 5.52 0 0 1 1.548 1.15 5.87 5.87 0 0 1 1.578 4.028c0 .878.096 2.046.276 3.214.157 1.026.38 2.055.665 2.89.041.12.149.198.262.198.253 0 .482.11.65.286l.012.013a1.01 1.01 0 0 1-.011 1.365.902.902 0 0 1-.651.286H.918a.89.89 0 0 1-.648-.286l-.01-.014a1.015 1.015 0 0 1 .012-1.365.89.89 0 0 1 .647-.286.287.287 0 0 0 .273-.225c.28-.83.5-1.846.657-2.863.18-1.168.273-2.336.273-3.214 0-1.569.608-2.993 1.581-4.028a5.52 5.52 0 0 1 1.549-1.15z"/>'],vi=[32,32,'<circle cx="16" cy="16" r="16"/><path class="fore" d="M16 14.336l4.992-4.991a1.177 1.177 0 0 1 1.663 1.663L17.664 16l4.991 4.992a1.177 1.177 0 1 1-1.663 1.663L16 17.664l-4.992 4.991a1.177 1.177 0 1 1-1.663-1.663L14.336 16l-4.991-4.992a1.177 1.177 0 0 1 1.663-1.663L16 14.336z"/>'],li=[18,18,'<path d="M16 11a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm-7 0a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm-7 0a2 2 0 1 1 0-4 2 2 0 0 1 0 4z"/>'],Ci=[16,16,'<path d="M8.825 8.05a3.366 3.366 0 0 0 1.316-2.662C10.141 3.52 8.604 2 6.713 2c-1.89 0-3.428 1.52-3.428 3.388a3.37 3.37 0 0 0 1.316 2.663C2.495 8.883 1 10.917 1 13.292v1.13c0 .311.256.564.571.564h10.284a.568.568 0 0 0 .571-.565v-1.129c0-2.376-1.494-4.41-3.601-5.241zM6.713 3.13C7.973 3.13 9 4.141 9 5.387c0 1.245-1.025 2.258-2.286 2.258-1.26 0-2.285-1.013-2.285-2.258 0-1.246 1.025-2.259 2.285-2.259zm4.57 10.727h-9.14v-.565c0-2.49 2.05-4.517 4.57-4.517 2.52 0 4.57 2.026 4.57 4.517v.565zm.97-6.01a4.492 4.492 0 0 1 2.456 4.007v.873a.568.568 0 0 1-.57.565.568.568 0 0 1-.572-.565v-.873a3.378 3.378 0 0 0-2.587-3.28.565.565 0 0 1-.444-.327c-.016-.034-.016-.07-.024-.106-.005-.021-.011-.042-.014-.064a.542.542 0 0 1 .004-.131c.002-.023-.003-.045.002-.068.004-.014.013-.024.017-.036.009-.025.021-.047.033-.07a.556.556 0 0 1 .085-.134l.015-.014a.558.558 0 0 1 .182-.125 1.695 1.695 0 0 0 1.017-1.546 1.7 1.7 0 0 0-1.268-1.637.564.564 0 1 1 .297-1.09 2.833 2.833 0 0 1 2.113 2.727 2.8 2.8 0 0 1-.742 1.894z"/>'],yi=[24,24,'<path d="M12 24C5.373 24 0 18.627 0 12S5.373 0 12 0s12 5.373 12 12-5.373 12-12 12zm0-2.25c5.385 0 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25 2.25 6.615 2.25 12s4.365 9.75 9.75 9.75zm1.926-5.643c-.942 1.396-1.902 2.475-3.516 2.475-1.101-.177-1.554-.957-1.314-1.75l2.076-6.79c.05-.165-.035-.345-.188-.397-.154-.053-.454.144-.713.425l-1.255 1.49c-.034-.25-.004-.664-.004-.83.944-1.399 2.492-2.501 3.543-2.501.999.1 1.47.89 1.296 1.755l-2.09 6.822a.318.318 0 0 0 .196.36c.154.052.476-.144.737-.425l1.254-1.49c.035.25-.022.69-.022.854v.002zm-.363-8.784c-.795 0-1.439-.57-1.439-1.41 0-.843.646-1.413 1.439-1.413S15 5.07 15 5.912c0 .841-.645 1.411-1.437 1.411z"/>'],ea=[12,12,'<path d="M6 0a6 6 0 1 0 0 12A6 6 0 1 0 6 0zm3.646 9.646A5.13 5.13 0 0 1 6 11.156a5.127 5.127 0 0 1-3.646-1.51A5.13 5.13 0 0 1 .844 6a5.127 5.127 0 0 1 1.51-3.646A5.13 5.13 0 0 1 6 .844a5.127 5.127 0 0 1 3.646 1.51A5.13 5.13 0 0 1 11.156 6a5.127 5.127 0 0 1-1.51 3.646zM5.939 7.78a.422.422 0 0 1-.42-.464c.057-.585.486-1.057.958-1.53.756-.755.769-.995.782-1.25a1.085 1.085 0 0 0-.31-.81 1.317 1.317 0 0 0-.951-.405h-.003a1.262 1.262 0 0 0-1.257 1.26.422.422 0 1 1-.844 0c0-.561.218-1.089.614-1.486a2.089 2.089 0 0 1 1.485-.618 2.165 2.165 0 0 1 1.568.668c.376.396.568.906.54 1.436-.03.542-.196.97-1.028 1.802-.421.422-.687.738-.714 1.016a.422.422 0 0 1-.42.381zm-.523 1.234a.507.507 0 1 0 1.015 0 .507.507 0 0 0-1.015 0z"/>'],ii=[12,12,'<path d="M6 0a6 6 0 1 0 0 12A6 6 0 1 0 6 0zm0 8a.667.667 0 0 1-.667-.667v-4a.667.667 0 0 1 1.334 0v4A.667.667 0 0 1 6 8zm.667 1.333a.666.666 0 1 1-1.332.002.666.666 0 0 1 1.332-.002z"/>'],Wi=[14,14,'<path d="M12 9.576l6.06-6.061a1.714 1.714 0 1 1 2.425 2.424L14.425 12l6.06 6.06a1.714 1.714 0 1 1-2.424 2.425L12 14.425l-6.06 6.06a1.714 1.714 0 1 1-2.425-2.424L9.575 12l-6.06-6.06a1.714 1.714 0 1 1 2.424-2.425L12 9.575z"></path>'],ua=[14,14,'<path d="M8.253 10.253l3.89-4.596.706.707.707-.707-4.95-4.95-.707.707.708.707-4.597 3.89-1.767-.354-.707.707L4.01 8.839.828 12.728l.708.707 3.889-3.182 2.474 2.475.708-.707z"/>'],va=[20,20,'<path d="M5.5 3.833h11.667c.92 0 1.666.747 1.666 1.667v11.667c0 .92-.746 1.666-1.666 1.666H5.5c-.92 0-1.667-.746-1.667-1.666V5.5c0-.92.747-1.667 1.667-1.667zm1.667 3.334V15.5H15.5V7.167H7.167z"/><path d="M15.5 2.167H3.833c-.92 0-1.666.746-1.666 1.666V15.5C1.247 15.5.5 14.754.5 13.833V2.167C.5 1.247 1.246.5 2.167.5h11.666c.92 0 1.667.746 1.667 1.667z"/>'],tr=[20,20,'<path d="M18.546 11.32c0 .405.322.734.718.734a.726.726 0 0 0 .718-.734.726.726 0 0 0-.718-.734.726.726 0 0 0-.718.734z" /><path d="M19.978 6.567l.002 9.49c0 1.617-1.278 2.927-2.854 2.927H2.856c-1.576 0-2.854-1.31-2.854-2.927V3.931c0-1.616 1.278-2.926 2.854-2.926l5.396.002c.207-.005.444.07.609.366L10.7 3.64h6.423c1.576 0 2.854 1.31 2.854 2.927zm-7.404 9.214l3.172-3.22a.768.768 0 0 0 .04-1.1L12.6 8.227a.735.735 0 0 0-1.05-.002.768.768 0 0 0-.016 1.08l1.921 1.951H4.74a.747.747 0 0 0-.738.75c0 .412.333.75.738.75h8.687L11.513 14.7a.772.772 0 0 0-.002 1.08.745.745 0 0 0 1.063 0z"/>'],xa=[20,20,'<path d="M2.8 5.455h14.4V18a2 2 0 0 1-2 2H4.8a2 2 0 0 1-2-2V5.455zM7.3 9.09a.9.9 0 0 0-.9.9v5.473a.9.9 0 0 0 1.8 0V9.99a.9.9 0 0 0-.9-.9zm5.4 0a.9.9 0 0 0-.9.9v5.473a.9.9 0 0 0 1.8 0V9.99a.9.9 0 0 0-.9-.9zM8.2.909C8.2.407 8.603 0 9.1 0h1.8c.497 0 .9.407.9.91 0 .501.403.908.9.908h5.39a.91.91 0 0 1 0 1.818H1.91a.91.91 0 0 1 0-1.818H7.3c.497 0 .9-.407.9-.909z"/>'],dr=[20,20,'<path d="M8.258 8.69L16.446.617c.8-.824 2.111-.824 2.935 0 .824.797.824 2.11 0 2.935l-8.215 8.071a2.38 2.38 0 0 1-.621.424l-3.356 1.49c-.596.267-1.109-.246-.865-.87l1.512-3.356a1.92 1.92 0 0 1 .421-.623zm9.193 2.534h-.001c.69 0 1.245.556 1.245 1.242v3.822A3.715 3.715 0 0 1 14.987 20H3.707A3.712 3.712 0 0 1 0 16.288V4.99c0-2.045 1.662-3.714 3.707-3.737h3.66a1.245 1.245 0 0 1 0 2.492h-3.66A1.24 1.24 0 0 0 2.463 4.99v11.298c0 .688.554 1.245 1.244 1.245h11.257c.69 0 1.243-.558 1.243-1.245v-3.822c0-.687.557-1.242 1.244-1.242z"/>'],gr=[20,20,'<path d="M5 6v10a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V6h2v10.846c0 1.19-.895 2.154-2 2.154H5c-1.105 0-2-.964-2-2.154V6h2zm3-5V.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5V1a1 1 0 0 0 1 1h4.5a1 1 0 0 1 0 2h-15a1 1 0 1 1 0-2H7a1 1 0 0 0 1-1zm5.741 10.864c.305.479.344 1.011.1 1.447-.249.437-.735.689-1.338.689h-1.67l-.695-.707.696-.707H12.5l-.58-.962.877.06.364-.782.58.962zM10.007 8.51l-.682 1.126-.384-.739-.856.016.69-1.14C9.09 7.279 9.544 7 10.028 7s.94.278 1.245.76l1.1 1.83-.253.965-.989-.246-1.089-1.815-.013-.02c-.007.012-.016.022-.023.036zm-2.508 4.075h1.775l-.514.707.513.708H7.496c-.6 0-1.086-.243-1.333-.667-.246-.423-.212-.958.093-1.468l.977-1.667.995-.22.256.926-.985 1.68z"/>'],ir=[16,16,'<path d="M7.992 0a7.993 7.993 0 0 0 0 15.985.783.783 0 0 0 0-1.565 6.427 6.427 0 1 1 6.428-6.428.783.783 0 1 0 1.565 0A7.993 7.993 0 0 0 7.992 0z" fill-rule="nonzero"/>'],Wr=[9,10,'<path d="M2.425 3.762h4.15V3.12c0-.506-.45-1.906-2.075-1.906-1.625 0-2.075 1.4-2.075 1.906v.643zm-1.3 0V3.12C1.125 1.324 2.55 0 4.5 0s3.375 1.324 3.375 3.119v.643h.345c.43 0 .78.35.78.78V9.22c0 .43-.35.78-.78.78H.78A.78.78 0 0 1 0 9.22V4.542c0-.43.35-.78.78-.78h.345z"/>'],pl=[12,9,'<path d="M8.575 1.553L6.928 2.786a2.4 2.4 0 0 0-3.314 2.482L1.26 7.032C.456 6.256.004 5.446 0 5c-.01-1.029 2.49-4 6-4 .941 0 1.81.217 2.575.553zm1.798 1.124C11.4 3.542 12 4.515 12 5c0 .988-2.403 4-6 4a6.606 6.606 0 0 1-3.057-.758l1.692-1.268A2.4 2.4 0 0 0 8.28 4.245l2.094-1.568z"/><path d="M11.898.192a.476.476 0 0 1-.094.677L.801 8.905a.508.508 0 0 1-.7-.097.476.476 0 0 1 .095-.677L11.199.095a.508.508 0 0 1 .7.097z" fill-rule="nonzero"/>'],br=[16,16,'<path d="M10 6V4.889A.889.889 0 0 0 9.111 4H8.89A.889.889 0 0 0 8 4.889V6H6.889A.889.889 0 0 0 6 6.889v.222c0 .491.398.889.889.889H8v1.111c0 .491.398.889.889.889h.222c.491 0 .889-.398.889-.889V8h1.111c.491 0 .889-.398.889-.889V6.89A.889.889 0 0 0 11.111 6H10zm-7.436 9.56l2.653-2.652a6.97 6.97 0 0 0 3.77 1.115 7.012 7.012 0 1 0-7.01-7.011c0 1.39.416 2.68 1.115 3.77L.44 13.435a1.502 1.502 0 1 0 2.124 2.126zM9.017 1.924a5.057 5.057 0 1 1 0 10.116 5.057 5.057 0 1 1 0-10.116z" fill-rule="nonzero"/>'],Na=[16,16,'<path d="M2.564 15.56l2.653-2.652a6.97 6.97 0 0 0 3.77 1.115 7.012 7.012 0 1 0-7.01-7.011c0 1.39.416 2.68 1.115 3.77L.44 13.435a1.502 1.502 0 1 0 2.124 2.126zM9.017 1.924a5.057 5.057 0 1 1 0 10.116 5.057 5.057 0 1 1 0-10.116zM11.11 8c.491 0 .889-.398.889-.889V6.89A.889.889 0 0 0 11.111 6H6.89A.889.889 0 0 0 6 6.889v.222c0 .491.398.889.889.889h4.222z" fill-rule="nonzero"/>'],Nr=[12,12,'<path d="M8.224 2.142L9.859 3.78l-7.026 7.014L1.175 11a.156.156 0 0 1-.174-.174l.206-1.66 7.017-7.023zm1.27-1.108a.117.117 0 0 0-.164 0l-.788.79 1.635 1.636.789-.79a.117.117 0 0 0-.006-.17L9.495 1.034z"/>'],ma=[12,12,'<path d="M10.077 11.67l-1.99-1.99a5.227 5.227 0 0 1-2.828.837 5.259 5.259 0 1 1 5.259-5.258c0 1.043-.313 2.01-.837 2.828l1.989 1.988a1.128 1.128 0 0 1-1.593 1.595zM5.237 1.443a3.795 3.795 0 1 0 .002 7.59 3.795 3.795 0 0 0-.002-7.59z"/>'],hr=[32,32,'<path d="M8.97 8.558a1.849 1.849 0 0 0-2.664 0L.552 14.457a1.963 1.963 0 0 0 0 2.73l5.754 5.9c.368.376.85.565 1.332.565.482 0 .964-.189 1.332-.565a1.966 1.966 0 0 0 0-2.73l-4.423-4.535 4.423-4.534a1.965 1.965 0 0 0 0-2.73zm21.686 5.912l-5.754-5.898a1.848 1.848 0 0 0-2.663 0 1.965 1.965 0 0 0 0 2.73l4.422 4.534-4.422 4.534a1.966 1.966 0 0 0 0 2.73c.367.377.85.566 1.331.566s.964-.19 1.332-.565l5.754-5.9a1.964 1.964 0 0 0 0-2.73z" fill-rule="nonzero"/><rect class="fore" transform="rotate(18 15.014 15.696)" x="13.585" y="2.125" width="2.857" height="27.143" rx="1.429"/>'],Ir=[32,32,'<path d="M15.786 29.786c-7.732 0-14-6.268-14-14s6.268-14 14-14 14 6.268 14 14-6.268 14-14 14zm0-3c6.075 0 11-4.925 11-11s-4.925-11-11-11-11 4.925-11 11 4.925 11 11 11z"/><path class="fore" d="M13.643 21.5c-.38 0-.707-.157-.945-.454-.237-.297-.369-.722-.369-1.194V11.72c0-.472.132-.897.37-1.193.237-.297.564-.455.944-.455.285 0 .58.094.87.274l6.175 4.078c.517.326.812.821.812 1.363 0 .547-.295 1.036-.828 1.374L14.54 21.21c-.317.198-.607.291-.897.291z" fill-rule="nonzero"/>'],Jr=[32,32,'<path class="fore" d="M20.567 7.637V4.575a.98.98 0 0 1 1.689-.676l5.238 5.498a1.96 1.96 0 0 1 0 2.703l-5.238 5.498a.98.98 0 0 1-1.69-.676v-3.248c-2.393-.281-5.635 1.815-9.726 6.288a.659.659 0 0 1-1.132-.578c1.565-7.6 5.184-11.516 10.859-11.747z"/><path d="M28.786 21.214v4.204a2.939 2.939 0 0 1-2.94 2.94H5.93A2.857 2.857 0 0 1 3.07 25.5V6.929A2.857 2.857 0 0 1 5.93 4.07h5.714a1.429 1.429 0 1 1 0 2.858h-4c-.947 0-1.714.767-1.714 1.714v15.143c0 .946.767 1.714 1.714 1.714h16.571c.947 0 1.715-.768 1.715-1.714v-2.572a1.429 1.429 0 0 1 2.857 0z"/>'],ml=[32,32,'<path d="M25.929 14.429v-6c0-.947-.768-1.715-1.715-1.715h-14v2.857h12.857v4.858c0 .473.384.857.858.857h1.142a.857.857 0 0 0 .858-.857z"/><path class="fore" d="M5.929 12.429h2.857a2.857 2.857 0 0 0 2.857-2.858V6.714a2.857 2.857 0 0 0-2.857-2.857H5.929A2.857 2.857 0 0 0 3.07 6.714v2.857a2.857 2.857 0 0 0 2.86 2.859z"/><path d="M5.929 17.571v6c0 .947.767 1.715 1.714 1.715h14v-2.857H8.786V17.57a.857.857 0 0 0-.857-.857H6.786a.857.857 0 0 0-.857.857z"/><path class="fore" d="M23.071 28.143h2.858a2.857 2.857 0 0 0 2.857-2.857v-2.857a2.857 2.857 0 0 0-2.857-2.858H23.07a2.857 2.857 0 0 0-2.857 2.858v2.857a2.857 2.857 0 0 0 2.857 2.857z"/>'],zc=[32,32,'<g transform="translate(3 3)"><path d="M3.774 21.1c-.723.373-1.642.126-2.051-.55l-1.52-2.507c-.41-.676-.178-1.554.527-1.965l1.07-.624c.407-.237.737-.797.737-1.252l-.002-2.676c0-.454-.33-1.015-.737-1.252L.728 9.65C.025 9.24-.209 8.36.201 7.685l1.52-2.506c.411-.676 1.326-.924 2.052-.549l1.103.57c.42.217 1.095.208 1.51-.019l2.436-1.337c.414-.227.76-.778.772-1.232l.033-1.194C9.65.636 10.334.002 11.154.002L14.196 0c.821 0 1.504.629 1.526 1.415l.033 1.194c.012.454.358 1.006.772 1.234l2.436 1.338c.414.227 1.09.236 1.51.02l1.103-.571c.723-.373 1.642-.126 2.051.55l1.52 2.506c.41.677.178 1.554-.527 1.965l-1.07.624c-.407.237-.737.798-.737 1.253l.002 2.675c0 .455.33 1.015.737 1.253l1.07.624c.702.408.936 1.289.526 1.964l-1.52 2.506c-.411.676-1.326.925-2.052.55l-1.103-.57c-.42-.217-1.095-.209-1.51.018l-2.436 1.337c-.414.227-.76.778-.772 1.233l-.033 1.194c-.022.781-.706 1.415-1.526 1.416l-3.042.001c-.821 0-1.504-.628-1.526-1.414l-.033-1.195c-.012-.454-.358-1.006-.772-1.233l-2.436-1.338c-.414-.228-1.09-.237-1.51-.02l-1.103.57zm8.901-.85c4.173 0 7.556-3.307 7.556-7.385 0-4.08-3.383-7.386-7.556-7.386s-7.556 3.307-7.556 7.386c0 4.078 3.383 7.385 7.556 7.385z" fill-rule="nonzero"/><ellipse class="fore" cx="12.675" cy="12.865" rx="2.681" ry="2.621"/></g>'],zl=[10,7,'<path d="M4.95 2.828l2.828 2.829a1 1 0 1 0 1.414-1.414L5.657.707a.997.997 0 0 0-1.414 0L.707 4.243a1 1 0 1 0 1.414 1.414L4.95 2.828z"/>'],Wl=[10,7,'<path d="M4.95 4.071l2.828-2.828a1 1 0 1 1 1.414 1.414L5.657 6.192a.997.997 0 0 1-1.414 0L.707 2.657a1 1 0 0 1 1.414-1.414L4.95 4.07z"/>'],$r=[8,12,'<path d="M7.137 10.872a1.04 1.04 0 0 0 0-1.578L2.994 5.6l4.143-3.694a1.04 1.04 0 0 0 0-1.578 1.343 1.343 0 0 0-1.759 0L.363 4.81a1.042 1.042 0 0 0 0 1.58l5.015 4.482a1.343 1.343 0 0 0 1.76 0z"/>'],Bl=[8,12,'<path d="M.363 10.872a1.04 1.04 0 0 1 0-1.578L4.506 5.6.363 1.906a1.04 1.04 0 0 1 0-1.578 1.343 1.343 0 0 1 1.759 0L7.137 4.81a1.042 1.042 0 0 1 0 1.58l-5.015 4.482a1.343 1.343 0 0 1-1.76 0z"/>'],Jl=[6,4,'<path d="M3 0l3 4H0z"/>'],$l=[6,4,'<path d="M3 4l3-4H0z"/>'],Rl=[24,24,'<path d="M10.286 10.286V1.714a1.714 1.714 0 1 1 3.428 0v8.572h8.572a1.714 1.714 0 1 1 0 3.428h-8.572v8.572a1.714 1.714 0 1 1-3.428 0v-8.572H1.714a1.714 1.714 0 1 1 0-3.428h8.572z"/>'],Ic=[24,24,'<rect y="10.286" width="24" height="3.429" rx="1.714"/>'],Sl=[24,24,'<path d="M12 9.576l6.06-6.061a1.714 1.714 0 1 1 2.425 2.424L14.425 12l6.06 6.06a1.714 1.714 0 1 1-2.424 2.425L12 14.425l-6.06 6.06a1.714 1.714 0 1 1-2.425-2.424L9.575 12l-6.06-6.06a1.714 1.714 0 1 1 2.424-2.425L12 9.575z"/>'],ql=[24,24,'<path d="M12 24C5.373 24 0 18.627 0 12S5.373 0 12 0s12 5.373 12 12-5.373 12-12 12zM6 12.106c0 .338.117.625.35.861l3.52 3.479c.234.236.523.354.868.354.336 0 .62-.118.854-.354l7.244-7.184c.243-.236.364-.522.364-.858a1.13 1.13 0 0 0-.364-.85 1.197 1.197 0 0 0-.864-.354c-.334 0-.622.118-.865.354l-6.369 6.327-2.66-2.636a1.197 1.197 0 0 0-.864-.354c-.333 0-.621.118-.864.354a1.18 1.18 0 0 0-.35.861z"/>'],uc=[10,10,'<path d="M.8 4.864c0 .215.075.398.226.55L3.3 7.632c.15.15.337.226.56.226a.75.75 0 0 0 .552-.226l4.679-4.584a.73.73 0 0 0 .235-.547.717.717 0 0 0-.235-.543.778.778 0 0 0-.558-.226.778.778 0 0 0-.559.226L3.861 5.996 2.143 4.315a.778.778 0 0 0-.559-.226.778.778 0 0 0-.558.226.748.748 0 0 0-.226.549z" fill="#FFF" fill-rule="evenodd"/>'],mc=[14,14,'<rect x="3" y="2" width="10" height="4" rx="1" class="secondary"/><rect x="3" y="8" width="5" height="4" rx="1" class="tertiary"/><path d="M1 1h1v12H1z" class="main"/>'],ld=[14,14,'<path d="M0 7h14v1H0z" class="main"/><rect x="2" width="4" height="13" rx="1" class="secondary"/><rect x="8" y="4" width="4" height="7" rx="1" class="tertiary"/>'],Gc=[14,14,'<path class="main" d="M12 1h1v12h-1z"/><rect class="secondary" y="2" width="10" height="4" rx="1"/><rect class="tertiary" x="5" y="8" width="6" height="4" rx="1"/>'],ar=[14,14,'<rect class="secondary" x="2" y="3" width="4" height="10" rx="1"/><rect class="tertiary" x="8" y="3" width="4" height="5" rx="1"/><path class="main" d="M1 1h12v1H1z"/>'],ec=[14,14,'<path class="main" d="M7 0h1v14H7z"/><rect class="secondary" y="2" width="13" height="4" rx="1"/><rect class="tertiary" x="4" y="8" width="7" height="4" rx="1"/>'],gd=[14,14,'<rect class="secondary" x="2" width="4" height="10" rx="1"/><rect class="tertiary" x="8" y="6" width="4" height="5" rx="1"/><path class="main" d="M1 12h12v1H1z"/>'],Yc=[14,14,'<rect class="secondary" x="5" y="3" width="4" height="8" rx="1"/><path class="main" d="M1 1h1v12H1zM12 1h1v12h-1z"/>'],_c=[14,14,'<rect class="secondary" x="3" y="5" width="8" height="4" rx="1"/><path class="main" d="M1 1h12v1H1zM1 12h12v1H1z"/>'],Zc=[12,12,'<path class="main" d="M0 1h5v2H0zm0 8h12v2H0z"/><path class="secondary" d="M0 5h8v2H0z"/>'],i0=[12,12,'<path class="main" d="M3 1h6v2H3zm0 8h6v2H3z"/><path class="secondary" d="M0 5h12v2H0z"/>'],Mc=[12,12,'<path class="main" d="M7 1h5v2H7zM0 9h12v2H0z"/><path class="secondary" d="M4 5h8v2H4z"/>'],Id=[12,12,'<path class="main" d="M1 1h10v2H1zm0 8h10v2H1z"/><path class="secondary" d="M1 5h10v2H1z"/>'],Tc=[14,14,'<path d="M8 6h2l-3 4-3-4h2V2h2v4zm-7 5h12v1H1v-1z"/>'],jd=[14,14,'<path d="M6 12H4l3-3 3 3H8v2H6v-2zm2-9h2L7 6 4 3h2V1h2v2zM1 7h12v1H1V7z"/>'],mp=[14,14,'<path d="M8 8h2L7 4 4 8h2v4h2V8zM1 3h12V2H1v1z"/>'],H0=[34,24,'<path d="M10.72 16.588l.564 1.966a.782.782 0 0 0 .075.178l-6.537-1.153a1 1 0 0 1-.807-1.16L6.588 1.83a1.001 1.001 0 0 1 1.16-.814l11.837 2.088-.191.387-3.476.997L8.385 3.16 6.158 15.785l4.562.804zm-.463-8.227a.998.998 0 0 1 .707-1.22L24.64 3.478a1.001 1.001 0 0 1 1.222.703L29.565 18a.998.998 0 0 1-.707 1.22l-13.676 3.664a1.001 1.001 0 0 1-1.222-.703L10.257 8.36zm2.192.453l3.183 11.877 11.74-3.145L24.19 5.668 12.45 8.814zm2.712 5.735l-.259-.966 9.548-2.559.26.966-9.55 2.559zm-.844-3.149l-.258-.966 9.548-2.558.259.966-9.549 2.558zm1.687 6.297l-.258-.966 7.207-1.932.26.966-7.209 1.932z"/>'],K0=[34,24,'<path d="M0 7.006C0 4.793 1.82 3 4.061 3H29.94C32.18 3 34 4.792 34 7.006v9.988C34 19.207 32.18 21 29.939 21H4.06C1.82 21 0 19.208 0 16.994V7.006zm2 0v9.988C2 18.103 2.913 19 4.038 19h25.924C31.086 19 32 18.102 32 16.994V7.006C32 5.897 31.087 5 29.962 5H4.038C2.914 5 2 5.898 2 7.006zm4.729 7.9H4V9h2.682c1.157 0 1.883.569 1.883 1.473 0 .647-.504 1.187-1.158 1.281v.033c.837.062 1.452.647 1.452 1.429 0 1.04-.815 1.69-2.13 1.69zM5.289 9.92v1.535h.927c.688 0 1.08-.29 1.08-.79 0-.475-.345-.745-.948-.745H5.29zm0 4.064H6.4c.744 0 1.145-.303 1.145-.868 0-.552-.414-.847-1.174-.847H5.29v1.715zm8.425-3.467v4.388H12.51v-.79h-.026c-.226.552-.678.872-1.37.872-.99 0-1.648-.618-1.648-1.641v-2.829h1.246v2.579c0 .585.304.896.854.896.556 0 .901-.38.901-.962v-2.513h1.247zm1.145-1.01h1.246v1.01h.846v.9h-.846v2.1c0 .336.171.496.538.496.111 0 .227-.009.304-.02v.88a3.058 3.058 0 0 1-.594.048c-1.076 0-1.494-.344-1.494-1.199V11.42h-.645v-.9h.645V9.507zm3.108 0h1.247v1.01h.845v.9h-.845v2.1c0 .336.17.496.538.496.111 0 .226-.009.303-.02v.88a3.047 3.047 0 0 1-.593.048c-1.076 0-1.495-.344-1.495-1.199V11.42h-.645v-.9h.645V9.507zM22.843 15c-1.383 0-2.267-.851-2.267-2.292 0-1.42.897-2.284 2.267-2.284 1.371 0 2.268.86 2.268 2.284 0 1.445-.884 2.292-2.268 2.292zm0-.913c.611 0 1-.495 1-1.375 0-.872-.393-1.375-1-1.375-.606 0-1.003.503-1.003 1.375 0 .88.389 1.375 1.003 1.375zm2.908.819v-4.388h1.204v.782h.026c.244-.544.726-.863 1.43-.863 1.017 0 1.589.613 1.589 1.64v2.829h-1.247v-2.579c0-.573-.282-.9-.841-.9-.56 0-.914.393-.914.962v2.517h-1.247z"/>'],S0=[34,24,'<path d="M15.764 8.697a.835.835 0 0 0-.081.303v9a1 1 0 0 1-1.625.78l-2.543-2.035a.886.886 0 0 0-.1-.063c-.152-.083-.244-.091-.328-.037-.044.03-.059.049-.07.086a.598.598 0 0 0-.005.25L14.23 22h7.585l.76-5.356-5.2-1.693a1 1 0 0 1-.691-.951V9a.799.799 0 0 0-.083-.293c-.071-.14-.163-.2-.426-.207-.257.001-.34.058-.41.197zm-2.081 7.222V9c0-.329.07-.752.293-1.197.398-.797 1.157-1.303 2.207-1.303 1.049.019 1.797.516 2.196 1.293.23.448.304.875.304 1.207v4.274l5.309 1.728a1 1 0 0 1 .68 1.091l-1 7.047a1 1 0 0 1-.99.86h-9a1 1 0 0 1-.841-.46l-3.6-5.617a1 1 0 0 1-.102-.208 2.28 2.28 0 0 1-.075-.275 2.55 2.55 0 0 1 .04-1.293 2.13 2.13 0 0 1 .893-1.179c.798-.518 1.642-.443 2.378-.04.208.113.367.23.432.291l.876.7zm6.415-3.42l-1.193-1.606a4.35 4.35 0 0 0 1.778-3.499c0-2.422-2.01-4.394-4.5-4.394s-4.5 1.972-4.5 4.394c0 1.4.674 2.69 1.8 3.517l-1.182 1.613a6.351 6.351 0 0 1-2.618-5.13c0-3.536 2.914-6.394 6.5-6.394 3.585 0 6.5 2.858 6.5 6.394a6.35 6.35 0 0 1-2.585 5.104z"/>'],Ch=[34,24,'<path d="M27 8.667V4H7v4.667h20zm0 1H7V20h20V9.667zM5 2.992A.996.996 0 0 1 6 2h22c.552 0 1 .455 1 .992v18.016A.996.996 0 0 1 28 22H6c-.552 0-1-.455-1-.992V2.992zm4.645 4.473a1.062 1.062 0 1 1 0-2.124 1.062 1.062 0 0 1 0 2.124zm4.332 0a1.062 1.062 0 1 1 0-2.124 1.062 1.062 0 0 1 0 2.124zm4.33 0a1.062 1.062 0 1 1 0-2.124 1.062 1.062 0 0 1 0 2.124z"/>'],a0=[34,24,'<path d="M18 22l-3.828-3.862H6.998C5.34 18.138 4 16.774 4 15.11V5.028A3.01 3.01 0 0 1 7.003 2h20.994C29.655 2 31 3.362 31 5.028V15.11c0 1.67-1.346 3.028-2.997 3.028h-6.175L18 22zM6 5.002v9.996c0 .546.447 1.002.998 1.002H15l3 3 3-3h7.003c.544 0 .997-.449.997-1.002V5.002C29 4.456 28.55 4 27.997 4H7.003A.996.996 0 0 0 6 5.002zM11.5 11a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm6 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm6 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"/>'],gp=[34,24,'<path d="M6 2.993C6 2.445 6.44 2 7.002 2h19.996A.998.998 0 0 1 28 2.993v18.014c0 .548-.44.993-1.002.993H7.002A.998.998 0 0 1 6 21.007V2.993zM8 4v16h18V4H8zm6.335 12.976a.448.448 0 0 1-.196-.132c-.156-.18-.186-.473-.063-.712l1.695-3.317-1.345-1.198a.618.618 0 0 1-.193-.492.596.596 0 0 1 .246-.476l4.71-3.55a.444.444 0 0 1 .602.04c.16.167.202.464.09.707l-1.594 3.51 1.468.959c.153.1.24.289.245.494 0 .22-.095.405-.26.52l-4.99 3.575a.437.437 0 0 1-.415.072z"/>'],Qd=[34,24,'<path d="M21.61 19.632l2.08 3.604-.866.5-2.08-3.604-2.64 1.524-.35-7.75 6.538 4.177-2.682 1.55zM19 4.5h8a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-2v-2h.5a.5.5 0 0 0 .5-.5V7a.5.5 0 0 0-.5-.5h-17A.5.5 0 0 0 8 7v10a.5.5 0 0 0 .5.5H16v2H7a1 1 0 0 1-1-1v-17a1 1 0 0 1 1-1h8l4 4zm0 0h-2.828L14 2.5H8.5A.5.5 0 0 0 8 3v1.5H6h13z"/>'],Md=[34,24,'<path d="M3 7c0-.553.44-1 1-1h26c.554 0 1 .447 1 1v11c0 .553-.44 1-1 1H4c-.554 0-1-.447-1-1V7zm2 1v9h24V8H5zm2 1h1v7H7V9z"/>'],Up=[34,24,'<path d="M28 13.586V5H6v15h15.586L28 13.586zm0 2.828L24.414 20H28v-3.586zM4 3.992A.999.999 0 0 1 5.003 3h23.994C29.55 3 30 3.455 30 3.992v17.016a.999.999 0 0 1-1.003.992H5.003A1.005 1.005 0 0 1 4 21.008V3.992zM8 6h1v6H8V6z"/>'],_r=[34,24,'<path d="M19.749 18.974v-8.682a.5.5 0 1 1 1 0v8.631l5.817 1.293V6.859l-4.817-1.093V3.715l6.038 1.37a1 1 0 0 1 .779.975v15.402a1 1 0 0 1-1.217.977l-6.768-1.504a1 1 0 0 0-.437 0l-6.72 1.52a1 1 0 0 1-.438.001l-7.204-1.607A1 1 0 0 1 5 19.871l.04-15.44a1 1 0 0 1 1.224-.972l5.734 1.317v2.052l-4.961-1.14-.035 13.384 5.747 1.282V10.292a.5.5 0 1 1 1 0v10.04l6-1.358zm-3-6.736s-3.959-4.12-3.959-7.28a3.958 3.958 0 1 1 7.917 0c0 3.173-3.958 7.28-3.958 7.28zm0-5.3a1.98 1.98 0 1 0 0-3.959 1.98 1.98 0 0 0 0 3.958z"/>'],r0=[34,24,'<path d="M2 6.007C2 5.451 2.447 5 2.998 5h28.004c.551 0 .998.449.998 1.007v12.986c0 .556-.447 1.007-.998 1.007H2.998C2.447 20 2 19.551 2 18.993V6.007zM4 7v11h26V7H4zm21 8l-3-4h6l-3 4z"/>'],Hh=[34,24,'<path d="M6 2.002A.997.997 0 0 1 7.002 1h19.996A.997.997 0 0 1 28 2.002v19.996A.997.997 0 0 1 26.998 23H7.002A.997.997 0 0 1 6 21.998V2.002zM8 3v18h18V3H8zm2 5V5h14v3H10z"/>'],wh=[34,24,'<path d="M17.128 4.613L8.025 21.025h18.207L17.128 4.613zm-.482-3.253c.266-.48.7-.479.965 0l11.535 20.795c.266.48.027.87-.513.87H5.623c-.55 0-.778-.391-.512-.87L16.646 1.36z"/>'],ul=[34,24,'<path d="M8 4.38v16.717h16.718L8 4.38zM6 1.559C6 .45 6.63.18 7.42.97l20.706 20.706c.785.785.526 1.42-.587 1.42H6.997A.999.999 0 0 1 6 22.101V1.559z"/>'],ui=[34,24,'<path d="M28.5 6.5v1.007l2-.01v10.035h-2v.968H31a.5.5 0 0 0 .5-.5V7a.5.5 0 0 0-.5-.5h-2.5zm-23 0H3a.5.5 0 0 0-.5.5v11a.5.5 0 0 0 .5.5h2.5v-.968h-2V7.498l2 .009V6.5z" stroke-width="1" /><path d="M9 5v15h16V5H9zM8 3h18a1 1 0 0 1 1 1v17a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z"/><path d="M14 11a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm-2.253 7.664l-1.494-1.328 4.787-5.386L17 14.4l3.917-4.897 3.79 3.79-1.414 1.414-2.21-2.21L17 17.601l-2.04-2.55z"/>'],Sh=[34,24,'<path d="M19 14H8v8h18v-8h-2l-2.5-2-2.5 2zM7 12h12l2.5-2 2.5 2h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V13a1 1 0 0 1 1-1zm14.5-3a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9zm0-1.5a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"/><path d="M21 4V3h1v1h1.001v1H22v1h-1V5h-.999V4H21zM10 19v-2h14v2z"/>'],zp=[14,14,'<path d="M7.762.18l4.445 2.5c.49.275.793.794.793 1.356v4.928c0 .562-.303 1.08-.793 1.356l-4.445 2.5a1.556 1.556 0 0 1-1.524 0l-4.445-2.5A1.556 1.556 0 0 1 1 8.964V4.036c0-.562.303-1.08.793-1.356L6.238.18a1.556 1.556 0 0 1 1.524 0z"/><path d="M7.727 7.013v3.25A.732.732 0 0 1 7 11a.732.732 0 0 1-.727-.737v-3.25L3.374 5.38a.742.742 0 0 1-.282-1.002.722.722 0 0 1 .989-.286L7 5.736l2.92-1.643a.722.722 0 0 1 .988.286.742.742 0 0 1-.282 1.002L7.727 7.013z" class="fore"/>'],A0=[14,14,'<path d="M12.59 4.712c-1.16.66-1.684 1.64-1.57 2.937.114 1.297.774 2.174 1.98 2.629-.273.57-.58 1.127-.922 1.673C11.191 13.317 10.383 14 9.655 14c-.273 0-.637-.102-1.092-.307a3.23 3.23 0 0 0-1.332-.308c-.432 0-.87.103-1.314.308-.443.205-.802.307-1.075.307-.774 0-1.581-.637-2.423-1.912-.797-1.23-1.258-2.521-1.383-3.876-.125-1.354.074-2.407.598-3.158.75-1.184 1.729-1.776 2.935-1.776.387 0 .86.102 1.417.307.557.205.972.308 1.245.308.274 0 .672-.103 1.195-.308.524-.205 1.013-.307 1.468-.307 1.024 0 1.923.478 2.696 1.434z"/><path d="M8.938 2.288c-.592.774-1.308 1.138-2.15 1.092-.114-.75.125-1.49.717-2.219C8.096.455 8.802.068 9.62 0c.114.774-.114 1.537-.683 2.288z" class="fore"/>'],ur=[14,14,'<path d="M7 14A7 7 0 1 1 7 0a7 7 0 0 1 0 14zM4.324 7a1.03 1.03 0 1 0 0-2.059 1.03 1.03 0 0 0 0 2.059zm5.352-.03a1 1 0 1 0 0-2 1 1 0 0 0 0 2zM4 9a3.046 3.046 0 0 0 6 0H4z"/>'],ic=[14,14,'<g transform="translate(1)"><path d="M6.875 0v2.625c0 .966.784 1.75 1.75 1.75h2.625v7.875A1.75 1.75 0 0 1 9.5 14h-7a1.75 1.75 0 0 1-1.75-1.75V1.75C.75.784 1.534 0 2.5 0h4.375zm.875 0l3.5 3.5H8.625a.875.875 0 0 1-.875-.875V0z"/><rect class="fore" x="2.5" y="6.125" width="7" height="1.75" rx=".875"/><rect class="fore" x="2.5" y="9.625" width="7" height="1.75" rx=".875"/></g>'],Wp=[14,14,'<path d="M2.01 7.37l3.78 2.511a2.188 2.188 0 0 0 2.42 0l3.78-2.51 1.73 1.155c.14.14.28.351.28.562 0 .21-.07.42-.28.561l-5.769 3.735a1.75 1.75 0 0 1-1.902 0L.28 9.65C.14 9.51 0 9.3 0 9.088c0-.21.14-.421.28-.562L2.01 7.37z" class="fore"/><path d="M.28 5.439C.14 5.299 0 5.088 0 4.877c0-.21.14-.42.35-.561l5.702-3.7A1.75 1.75 0 0 1 7.951.61l5.769 3.705c.14.14.28.35.28.561 0 .21-.14.421-.28.562L7.972 9.28a1.75 1.75 0 0 1-1.944 0L2.59 6.982.28 5.44z"/>'],fp=[14,14,'<path d="M6 5h7v6.267c0 .957-.776 1.733-1.733 1.733H6V5z" class="fore"/><path d="M2.733 13A1.733 1.733 0 0 1 1 11.267V5h4v8H2.733zM13 4H1V2.733C1 1.776 1.776 1 2.733 1h8.534C12.224 1 13 1.776 13 2.733V4z"/>'],Yl=[14,14,'<path d="M12.82 1.016l-5.397-.008c-.2-.01-.355-.027-.458.065l-2.613 2.34a.243.243 0 0 0-.008.351L6.85 6.36c.099.103.238.132.341.04l5.686-5.081c.186-.167.157-.308-.057-.303zM6.807 7.602l-5.686 5.08c-.184.166-.157.307.059.302l5.396.008c.201.01.355.027.458-.065l2.613-2.337a.243.243 0 0 0 .008-.352L7.151 7.642c-.1-.102-.24-.132-.343-.04z"/><path d="M1.075 7.037c-.094-.103-.076-.257-.065-.46l.008-5.396c-.005-.216.136-.243.302-.059L6.4 6.811c.091.103.063.242-.04.34L3.764 9.658a.243.243 0 0 1-.352-.008L1.075 7.037zm9.513-2.684l2.34 2.61c.091.103.074.257.064.458l-.008 5.397c.005.215-.136.242-.303.058l-5.08-5.685c-.092-.103-.063-.242.04-.34l2.595-2.506a.243.243 0 0 1 .352.008z" class="fore"/>'],G0=[14,14,'<path d="M13 7h-2V4.2A1.2 1.2 0 0 0 9.8 3H7V1h2.8A3.2 3.2 0 0 1 13 4.2V7zm-6 6H4.2A3.2 3.2 0 0 1 1 9.8V7h2v2.8A1.2 1.2 0 0 0 4.2 11H7v2z"/><path d="M3 5a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm8 8a2 2 0 1 1 0-4 2 2 0 0 1 0 4z" class="fore"/>'],Al=[14,14,'<path d="M7.512.295l5.039 2.91c.316.182.511.52.511.886v5.818c0 .366-.195.704-.511.886l-5.04 2.91a1.023 1.023 0 0 1-1.023 0l-5.039-2.91a1.023 1.023 0 0 1-.511-.886V4.091c0-.366.195-.704.511-.886L6.49.295a1.023 1.023 0 0 1 1.023 0zM7 9a2 2 0 1 0 0-4 2 2 0 0 0 0 4z" class="fore"/>'],Y0=[14,14,'<path d="M5.66 14a.735.735 0 0 1-.727-.89l1.006-4.64-2.422-.854a.767.767 0 0 1-.485-.501.675.675 0 0 1 .15-.668L8.378.267a.754.754 0 0 1 .876-.204c.298.13.484.464.428.798l-.782 4.825 2.496.52c.26.055.466.24.559.482.093.26.037.52-.15.724L6.219 13.74a.727.727 0 0 1-.559.26z" class="fore"/>'],I0=[12,12,'<path d="M4.81 12h6.38c.447 0 .81-.448.81-1s-.363-1-.81-1H4.81c-.447 0-.81.448-.81 1s.363 1 .81 1zm0-10h6.38c.447 0 .81-.448.81-1s-.363-1-.81-1H4.81C4.363 0 4 .448 4 1s.363 1 .81 1zm0 5h6.38c.447 0 .81-.448.81-1s-.363-1-.81-1H4.81C4.363 5 4 5.448 4 6s.363 1 .81 1zM0 0h2v2H0V0zm0 5h2v2H0V5zm0 5h2v2H0v-2z" class="fore"/>'],_l=[12,12,'<path d="M1 7h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm7-7h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1z"/><path d="M8 7h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1z" fill-opacity=".4"/><path d="M1 0h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1z"/>'],gl=[12,12,'<path d="M8.322 2.743A4 4 0 1 0 9.714 7.49a1 1 0 1 1 1.856.745 6 6 0 1 1-1.855-6.947l1.053-1.1a.5.5 0 0 1 .862.345v3.69a.5.5 0 0 1-.503.498l-3.512-.018a.5.5 0 0 1-.36-.845l1.067-1.115z" class="fore"/>'],Vl=[18,18,'<path d="M8 14V4.332H5V6H3V2.332h12V6h-2V4.332h-3V14h2v2H6v-2h2z"/>'],fd=[18,18,'<path d="M4 4v10h10V4H4zM2 2h14v14H2V2z"/>'],yd=[18,18,'<path d="M9 15A6 6 0 1 0 9 3a6 6 0 0 0 0 12zm0 2A8 8 0 1 1 9 1a8 8 0 0 1 0 16z"/>'],M0=[18,18,'<path d="M12.642 6.419L5.42 13.642c.116.261.181.552.181.858 0 1.16-.932 2.1-2.1 2.1-1.16 0-2.1-.932-2.1-2.1 0-1.16.932-2.1 2.1-2.1.306 0 .596.065.858.181l7.223-7.223A2.103 2.103 0 0 1 11.4 4.5c0-1.16.932-2.1 2.1-2.1 1.16 0 2.1.932 2.1 2.1 0 1.16-.932 2.1-2.1 2.1-.306 0-.596-.065-.858-.181z"/>'],Fr=[18,18,'<path d="M15 13.108V5H3v7.992l1.776-1.48 1.954 1.466 4.07-4.07 4.2 4.2zM1 3h16v13H1V3zm5.5 7a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"/>'],Vp=[12,12,'<path d="M2.138 9.84a.658.658 0 0 1-.89-.256l-.66-1.169A.689.689 0 0 1 .817 7.5l.464-.291a.764.764 0 0 0 .32-.584L1.6 5.376a.764.764 0 0 0-.32-.585l-.464-.29a.69.69 0 0 1-.228-.917l.66-1.168a.657.657 0 0 1 .89-.257l.478.266a.73.73 0 0 0 .655-.009l1.058-.623a.762.762 0 0 0 .335-.575l.014-.557a.674.674 0 0 1 .662-.66L6.66 0c.356 0 .653.293.662.66l.014.557c.006.212.156.47.335.575l1.058.624c.18.106.472.11.655.01l.478-.267a.658.658 0 0 1 .89.257l.66 1.169a.689.689 0 0 1-.229.916l-.464.291a.764.764 0 0 0-.32.584l.001 1.248c0 .212.143.474.32.585l.464.29a.69.69 0 0 1 .228.917l-.66 1.168a.657.657 0 0 1-.89.257l-.478-.266a.73.73 0 0 0-.655.009l-1.058.623a.762.762 0 0 0-.335.575l-.014.557a.674.674 0 0 1-.662.66L5.34 12a.672.672 0 0 1-.662-.66l-.014-.557a.763.763 0 0 0-.335-.575L3.27 9.584a.729.729 0 0 0-.655-.01l-.478.267zM6 8.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5z"/>'],Ah=[12,12,'<path d="M2 3.5h8v7a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-7zm2.5 2A.5.5 0 0 0 4 6v3a.5.5 0 0 0 1 0V6a.5.5 0 0 0-.5-.5zm3 0A.5.5 0 0 0 7 6v3a.5.5 0 0 0 1 0V6a.5.5 0 0 0-.5-.5zM5 1a.5.5 0 0 1 .5-.5h1A.5.5 0 0 1 7 1a.5.5 0 0 0 .5.5h3a.5.5 0 1 1 0 1h-9a.5.5 0 0 1 0-1h3A.5.5 0 0 0 5 1z"/>'],Z0=[12,12,'<path d="M3.5 2.5h7a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1h-7a1 1 0 0 1-1-1v-7a1 1 0 0 1 1-1zm1 2h5v5h-5v-5zm5-3h-7a1 1 0 0 0-1 1v7a1 1 0 0 1-1-1v-7a1 1 0 0 1 1-1h7a1 1 0 0 1 1 1z" fill-rule="evenodd"/>'],Zl=[12,12,'<path d="M3.5 9.5H9a.5.5 0 0 0 .5-.5V3.5l-1-1h-5v-1a1 1 0 0 1 1-1h4.586a1 1 0 0 1 .707.293l1.414 1.414a1 1 0 0 1 .293.707V10.5a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1v-1z"/><path d="M5.526 5.5H1.833a.5.5 0 0 0 0 1h3.693v1.57a.2.2 0 0 0 .329.154l2.19-1.841a.5.5 0 0 0 0-.766l-2.19-1.84a.2.2 0 0 0-.329.152V5.5z"/>'],yp=[14,14,'<path d="M3 12V1h3.842c.606 0 1.15.06 1.632.178.483.118.891.298 1.225.54.333.241.589.55.766.925.177.375.266.82.266 1.334 0 .503-.14.957-.416 1.36-.277.402-.683.715-1.217.936.324.086.605.21.843.374a2.33 2.33 0 0 1 .944 1.311c.077.267.115.544.115.831 0 .529-.089.994-.266 1.394-.177.4-.433.735-.77 1.005-.336.27-.744.472-1.224.608A5.977 5.977 0 0 1 7.112 12H3zm1.948-4.964v3.438h2.164c.318 0 .599-.04.843-.121.244-.08.448-.195.612-.344.164-.148.287-.326.37-.532.082-.207.123-.436.123-.688 0-.544-.147-.972-.44-1.284-.292-.312-.767-.469-1.424-.469H4.948zm0-1.405h1.91c.605 0 1.079-.135 1.42-.404.342-.27.512-.651.512-1.145 0-.544-.158-.936-.473-1.178C8 2.662 7.509 2.54 6.842 2.54H4.948v3.09z"/>'],xp=[14,14,'<path d="M5 11l2-9H5V1h6v1H9l-2 9h2v1H3v-1h2z"/>'],vp=[14,14,'<path d="M2 12h10v1H2v-1zm9-5.753c0 1.25-.333 2.045-1 2.67C9.333 9.544 8.247 10 7.014 10 5.754 10 4.708 9.598 4 9c-.708-.598-1-1.447-1-2.753V1h2v5.247C5 7.123 5.5 8 7 8s2-.877 2-1.753V1h2v5.247z"/>'],Od=[14,14,'<path d="M6.092 7H1V6h3.244a2.775 2.775 0 0 1-.66-.84 2.522 2.522 0 0 1-.255-1.15c0-.429.09-.828.272-1.196a2.87 2.87 0 0 1 .771-.958 3.65 3.65 0 0 1 1.187-.631C6.02 1.075 6.527 1 7.086 1c.615 0 1.166.092 1.651.278.484.185.893.431 1.226.739a3.119 3.119 0 0 1 1.016 2.305v.193H9.166v-.193c0-.268-.043-.515-.128-.74a1.495 1.495 0 0 0-.378-.568 1.748 1.748 0 0 0-.637-.371 2.87 2.87 0 0 0-.937-.136c-.344 0-.64.04-.887.117-.244.076-.442.18-.595.31-.153.128-.266.28-.34.455-.076.182-.115.38-.115.6 0 .19.04.36.12.514.08.154.205.298.378.432.179.139.414.27.704.39a9.27 9.27 0 0 0 1.079.36c.352.098.677.203.975.315H13v1h-2.853c.282.266.494.564.635.893.146.34.218.722.218 1.147 0 .447-.092.855-.277 1.221a2.7 2.7 0 0 1-.79.94c-.339.259-.745.457-1.217.594A5.555 5.555 0 0 1 7.157 12c-.334 0-.668-.03-1.002-.093a5.01 5.01 0 0 1-.964-.279 4.304 4.304 0 0 1-.86-.464 3.345 3.345 0 0 1-.697-.65 2.91 2.91 0 0 1-.466-.833A2.937 2.937 0 0 1 3 8.671v-.193h1.813v.193c0 .327.063.601.188.826.127.228.295.414.505.562.214.15.46.26.741.331.288.074.592.11.91.11.678 0 1.184-.134 1.527-.394.336-.255.503-.6.503-1.052 0-.22-.033-.411-.098-.573a1.083 1.083 0 0 0-.336-.43 2.93 2.93 0 0 0-.708-.401 10.97 10.97 0 0 0-1.19-.406A11.9 11.9 0 0 1 6.093 7z"/>'],Wc=[12,12,'<path class="main" d="M11 1v2H9V1z"/><path class="secondary" d="M7 1v2H5V1z"/><path class="main" d="M3 1v2H1V1z"/><path class="secondary" d="M11 5v2H9V5z"/><path class="main" d="M7 5v2H5V5z"/><path class="secondary" d="M3 5v2H1V5z"/><path class="main" d="M11 9v2H9V9z"/><path class="secondary" d="M7 9v2H5V9z"/><path class="main" d="M3 9v2H1V9z"/>'],gc=[12,12,'<path class="main" d="M1 1h2v10H1z"/><path class="secondary" d="M5 1h2v10H5z"/><path class="main" d="M9 1h2v10H9z"/>'],Fd=[12,12,'<path class="main" d="M11 1v2H1V1z"/><path class="secondary" d="M11 5v2H1V5z"/><path class="main" d="M11 9v2H1V9z"/>'],il=[18,18,'<path d="M15.893 13.45c0-.041 0-.084-.004-.127a1.258 1.258 0 0 0-.883-1.121L10 10.49V4h5a1 1 0 0 1 1 1v8a.996.996 0 0 1-.107.45zM6 4v10a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1z" class="fore"/><path d="M3 3v12h4V3H3zm6 7.15a1.236 1.236 0 0 0-.989.068c-.157.08-.288.189-.396.319a1.27 1.27 0 0 0-.157 1.406L9 14.97V17H1V1h8v9.15z" class="main"/><path d="M14.892 13.4c.01.128-.039.219-.147.274l-1.473.75 2.31 1.93c.06.052.093.117.1.195a.286.286 0 0 1-.06.205l-.531.646a.262.262 0 0 1-.19.097.285.285 0 0 1-.203-.067l-2.224-1.854-.57 1.854a.26.26 0 0 1-.238.19.266.266 0 0 1-.272-.156L8.349 11.49a.267.267 0 0 1 .034-.313.26.26 0 0 1 .294-.08l6.02 2.057a.26.26 0 0 1 .195.247z" class="main"/>'],l0=[18,18,'<path d="M13 10.635l-1.716-.587a1.236 1.236 0 0 0-.989.068c-.157.08-.289.19-.397.32a1.27 1.27 0 0 0-.156 1.406l.59 1.158H6a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v4.635z" class="fore"/><path d="M17 12.002l-2-.684V3H3v12h8.351l1.02 2H1V1h16v11.002z" class="main"/><path d="M17.175 13.298c.01.129-.038.22-.147.275l-1.473.75 2.311 1.93c.06.052.093.117.1.194a.286.286 0 0 1-.06.206l-.532.646a.262.262 0 0 1-.189.097.285.285 0 0 1-.204-.067l-2.223-1.854-.57 1.854a.26.26 0 0 1-.238.19.266.266 0 0 1-.273-.156l-3.044-5.975a.267.267 0 0 1 .034-.313.26.26 0 0 1 .294-.08l6.02 2.057a.26.26 0 0 1 .194.246z"/>'],Xc=[14,14,'<path d="M11 1v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1zM5 3.5v7a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5z"/>'],Td=[14,14,'<path d="M13 11H1a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1zm-2.5-6h-7a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5z"/>'],Hp=[14,14,'<path d="M3 7.83a2.995 2.995 0 0 1-2 0v5.198c0 .537.435.972.972.972h.056A.972.972 0 0 0 3 13.028V7.829zm0-5.66V.973A.972.972 0 0 0 2.028 0h-.056A.972.972 0 0 0 1 .972v1.199a2.995 2.995 0 0 1 2 0zm5 10.66a2.995 2.995 0 0 1-2 0v.198c0 .537.435.972.972.972h.056A.972.972 0 0 0 8 13.028v-.199zm0-5.66V.973A.972.972 0 0 0 7.028 0h-.056A.972.972 0 0 0 6 .972v6.199a2.995 2.995 0 0 1 2 0zm5-2.34a2.995 2.995 0 0 1-2 0V13a1 1 0 1 0 2 0V4.83zM10 2a2 2 0 1 0 4 0 2 2 0 0 0-4 0zm1 0a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-6 8a2 2 0 1 0 4 0 2 2 0 0 0-4 0zm1 0a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM0 5a2 2 0 1 0 4 0 2 2 0 0 0-4 0zm1 0a1 1 0 1 1 2 0 1 1 0 0 1-2 0z"/>'],bp=[14,14,'<path d="M0 4h12.364c.351 0 .636.285.636.636v7.728a.636.636 0 0 1-.636.636H.636A.636.636 0 0 1 0 12.364V4zm6 4H4.5a.5.5 0 0 0 0 1H6v1.5a.5.5 0 1 0 1 0V9h1.5a.5.5 0 0 0 0-1H7V6.5a.5.5 0 0 0-1 0V8z" class="main"/><path d="M8 4L6 2H.636A.636.636 0 0 0 0 2.636V4h8z" class="secondary"/>'],X0=[16,15,'<path class="fore" d="M6.757 3.454l3.528 2.117a.5.5 0 0 1 0 .858L6.757 8.546A.5.5 0 0 1 6 8.116V3.884a.5.5 0 0 1 .757-.429z"/><path d="M7 14v-2H.875A.875.875 0 0 1 0 11.125V.875C0 .392.392 0 .875 0h14.25c.483 0 .875.392.875.875v10.25a.875.875 0 0 1-.875.875H9v2h3v1H4v-1h3zm2-4h5V2H2v8h7z" fill-rule="nonzero"/>'],Kp=[16,16,'<path d="M11.781 9H6.625a1 1 0 1 1 0-2h5.156V3.5L16 8l-4.219 4.5V9zm-1.937 6a1 1 0 0 1-1 1H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3h5.844a1 1 0 1 1 0 2H2.875a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h5.969a1 1 0 0 1 1 1z"/>'],Gp=[18,18,'<path d="M9 18A9 9 0 1 1 9 0a9 9 0 0 1 0 18zM9 2v14A7 7 0 0 0 9 2z" fill-rule="evenodd"/>'],Jd=[16,16,'<path d="M12.38 10.514l-.002-.001-.044.017-.074.074c.135.547.138 1.123.01 1.683a3.691 3.691 0 0 1-1.003 1.808l-.028.028a3.86 3.86 0 0 1-1.954 1.006 3.596 3.596 0 0 1-2.175-.294.545.545 0 0 1-.221-.728c.03-.03.06-.09.09-.12.196-.223.36-.475.484-.741l.06-.119c-.147.003-.293.036-.441.068-.44.067-.88.104-1.305.098a.51.51 0 0 1-.363-.153l-2.37-2.37a.506.506 0 0 1-.153-.422A7.002 7.002 0 0 1 2.99 9.1c.018-.161.05-.308.083-.456l-.134.047c-.251.108-.517.26-.74.484-.21.21-.562.186-.762-.015a.382.382 0 0 1-.1-.13 3.627 3.627 0 0 1-.28-2.161A3.633 3.633 0 0 1 2.09 4.887c.523-.523 1.146-.857 1.776-.973a3.383 3.383 0 0 1 1.67-.003l.12-.12A9.443 9.443 0 0 1 9.79 1.353a9.1 9.1 0 0 1 4.733-.077c.19.04.318.198.373.373l.014.015a9.204 9.204 0 0 1-.093 4.716 9.666 9.666 0 0 1-2.438 4.134zm-8.202 2.973h-.001a.33.33 0 0 1 .47-.01c.114.145.125.335-.01.47l-.821.82a.328.328 0 0 1-.47.01.33.33 0 0 1 .01-.469l.822-.821zm6.053-5.45c1.172-.022 2.158-1.008 2.195-2.166a2.057 2.057 0 0 0-2.112-2.111c-1.185.008-2.158 1.009-2.18 2.18a2.05 2.05 0 0 0 2.097 2.098zm-8.384 4.764V12.8c-.133.134-.338.138-.453-.006a.323.323 0 0 1-.006-.454l.82-.82a.34.34 0 0 1 .47-.01.325.325 0 0 1-.009.468l-.822.823zm1.808-.284c.13.1.126.304.006.453l-1.866 1.866a.328.328 0 0 1-.47.01.323.323 0 0 1-.006-.453l1.867-1.867a.328.328 0 0 1 .469-.01z"/>'],c0=[16,16,'<path d="M8.623 6.691v-3.48a8.548 8.548 0 0 1-.511-.06v-.007h-.033.032v.007h-.025c-.001 0-.007.006-.013.006-.195.024-.435.054-.706.079v3.456H0V3.918c0-.437.359-.786.808-.786h3.357c-.901-.184-1.578-.56-1.602-1.252-.026-.817.921-2.137 2.304-1.835C6.294.357 7.29 1.43 8.054 2.352c.77-.939 1.863-2.148 3.352-2.339 1.244-.153 2.273 1.056 2.14 1.854-.113.7-.802 1.08-1.68 1.264h3.315c.448 0 .808.35.808.786v2.774H8.623zM5.019.768c-.69-.264-1.093.02-1.383.486-.158.263-.328.614-.076.871.663.663 2.48.614 3.7.491-.575-.699-1.282-1.479-2.241-1.848zm7.53 1.352c.473-.59-.455-1.818-1.452-1.364-.953.436-1.641 1.148-2.234 1.848.51.043 1.028.055 1.54.03.625-.024 1.78-.067 2.146-.514zM7.417 14.99H1.414a.724.724 0 0 1-.733-.718V7.25h6.736v7.738zm7.89-.718a.723.723 0 0 1-.732.717H8.572V7.251h6.735v7.02z"/>'],Ks=[14,12,'<path d="M10.915 4.5H14L7.115 12 0 4.5h3.027L7.115 12l3.8-7.5zm-.74 0l-3.06 6.185L3.773 4.5h6.402zm-9.96-.657L2.5.886l.334 2.957H.215zm13.565 0h-2.675V.384l2.675 3.459zm-3.196 0H3.382L6.88.384l3.704 3.459zM3.225.347L6.388 0 3.594 2.795 3.225.347zM7.408.001l2.993.31v2.484L7.408.001z"/>'],Hl=[18,18,'<path d="M13.096 4.922a.853.853 0 0 0 0-1.187L9.63.25a.841.841 0 0 0-1.18 0L.342 8.408a.853.853 0 0 0 0 1.186l8.11 8.158a.841.841 0 0 0 1.18 0l3.465-3.487a.853.853 0 0 0 0-1.187.841.841 0 0 0-1.18 0l-2.285 2.3a.841.841 0 0 1-1.18 0L2.7 9.591a.853.853 0 0 1 0-1.186L8.452 2.62a.841.841 0 0 1 1.18 0l2.286 2.3a.84.84 0 0 0 1.178 0zm4.646 3.486l-2.287-2.301a.841.841 0 0 0-1.18 0 .834.834 0 0 0 0 1.186l1.108 1.113c.32.332.32.863 0 1.186l-1.108 1.113a.853.853 0 0 0 0 1.187.841.841 0 0 0 1.18 0l2.287-2.3a.851.851 0 0 0 0-1.184zM6.404 9a2.643 2.643 0 0 0 2.638 2.653A2.641 2.641 0 0 0 11.68 9 2.643 2.643 0 0 0 9.04 6.347 2.641 2.641 0 0 0 6.404 9zm4.013-.01c-.01.77-.62 1.383-1.377 1.383a1.379 1.379 0 0 1-1.376-1.384c0-.759.61-1.383 1.376-1.383.767 0 1.377.614 1.377 1.383z"/>'],fr=[23,20,'<path d="M15.96 6.627c-2.126.111-3.974.761-5.475 2.229-1.516 1.482-2.208 3.299-2.019 5.551-.83-.103-1.587-.218-2.348-.282-.263-.023-.575.01-.798.136-.739.42-1.447.895-2.287 1.424.154-.703.254-1.318.43-1.91.13-.434.07-.676-.327-.96C.584 11-.491 8.282.314 5.484 1.058 2.895 2.887 1.325 5.372.507c3.392-1.117 7.203.022 9.265 2.737a6.427 6.427 0 0 1 1.323 3.383zm-9.783-.872c.02-.512-.42-.973-.943-.989a.955.955 0 0 0-.99.928.945.945 0 0 0 .931.984.97.97 0 0 0 1.002-.923zm5.104-.989c-.524.01-.967.46-.958.974a.96.96 0 0 0 .983.943.944.944 0 0 0 .946-.972.949.949 0 0 0-.97-.945zm9.454 15.219c-.673-.302-1.29-.755-1.948-.825-.654-.069-1.343.312-2.028.383-2.087.215-3.956-.371-5.498-1.808C8.33 15 8.75 10.81 12.141 8.569c3.014-1.99 7.435-1.327 9.56 1.436 1.856 2.41 1.638 5.61-.627 7.635-.655.587-.89 1.069-.47 1.842.077.142.086.323.131.503zm-7.661-7.478a.796.796 0 0 0 .797-.764.8.8 0 0 0-.792-.832.81.81 0 0 0-.8.827c.014.425.37.769.795.77zm4.939-1.595a.795.795 0 0 0-.786.764.783.783 0 0 0 .775.826c.43.001.77-.327.786-.758a.79.79 0 0 0-.775-.832z"/>'],fc=[24,17,'<path d="M12.005 4.702L13.94.649C14.128.253 14.53 0 14.973 0h7.882c.17 0 .338.037.491.11.571.268.814.944.543 1.51l-7.066 14.733c-.19.395-.592.647-1.033.647h-.142c-.44 0-.841-.25-1.032-.644L12.5 11.982l1.532-3.13 1.588 3.095a.23.23 0 0 0 .412-.008l4.03-8.646a.452.452 0 0 0-.415-.644h-3.295a.458.458 0 0 0-.415.262l-2.274 4.837a.45.45 0 0 0-.024.064l-1.623 3.104-2.632 5.44c-.19.394-.592.644-1.032.644H8.21c-.441 0-.844-.252-1.033-.647L.11 1.62A1.129 1.129 0 0 1 .654.11C.807.037.974 0 1.144 0h7.883c.442 0 .845.253 1.034.65l1.491 3.125L9.944 6.91l-1.88-4a.458.458 0 0 0-.416-.262H4.353a.452.452 0 0 0-.416.643l4.031 8.647a.23.23 0 0 0 .412.008l1.926-3.807c.026-.051.05-.11.072-.156l1.627-3.282z"/>'],Ec={"general/alarm":Ei,"general/close":vi,"general/ellipsis":li,"general/group":Ci,"general/info":yi,"general/question":ea,"general/warning_filled":ii,"general/close_new":Wi,"general/pin":ua,"general/duplicate":va,"general/move":tr,"general/trash":xa,"general/edit":dr,"general/recycle":gr,"general/loading":ir,"general/lock":Wr,"general/invisible":pl,"general/scale_enlarge":br,"general/scale_reduce":Na,"general/pen":Nr,"general/search":ma,"general/code":hr,"general/play":Ir,"general/share":Jr,"general/workflow":ml,"general/setting":zc,"general/angle_bracket_up":zl,"general/angle_bracket_down":Wl,"general/angle_bracket_left":$r,"general/angle_bracket_right":Bl,"general/triangle_up":Jl,"general/triangle_down":$l,"general/plus":Rl,"general/minus":Ic,"general/times":Sl,"general/check_filled":ql,"general/check":uc,"design/align_left":mc,"design/align_center_h":ld,"design/align_right":Gc,"design/align_top":ar,"design/align_center_v":ec,"design/align_bottom":gd,"design/dist_evenly_h":Yc,"design/dist_evenly_v":_c,"design/text_align_left":Zc,"design/text_align_center":i0,"design/text_align_right":Mc,"design/text_align_justify":Id,"design/text_align_v_bottom":Tc,"design/text_align_v_center":jd,"design/text_align_v_top":mp,"design/note":H0,"design/button":K0,"design/gesture":S0,"design/webpage":Ch,"design/dialog":a0,"design/linkarea":gp,"design/file":Qd,"design/input":Md,"design/textarea":Up,"design/map":_r,"design/select":r0,"design/topbar":Hh,"design/eq_triangle":wh,"design/triangle":ul,"design/carousel":ui,"design/dropdown":Sh,"design/common_widget":zp,"design/platform_widget":A0,"design/smiley":ur,"design/screen":ic,"design/layer":Wp,"design/master":fp,"design/dynamic_widget":Yl,"design/my_widget":G0,"design/attribute_setting":Al,"design/link":Y0,"design/list":I0,"design/thumbnail":_l,"design/onekey_recovery":gl,"design/text":Vl,"design/rectangle":fd,"design/circle":yd,"design/line":M0,"design/image":Fr,"design/settings":Vp,"design/trash":Ah,"design/copy":Z0,"design/enchase":Zl,"design/font_bold":yp,"design/font_italic":xp,"design/font_underline":vp,"design/font_line_through":Od,"design/grid":Wc,"design/grid_column":gc,"design/grid_row":Fd,"design/intersect_select":il,"design/include_select":l0,"design/screen_portrait":Xc,"design/screen_landscape":Td,"design/preference":Hp,"design/new_widgets":bp,"preview/fullscreen":X0,"preview/exit":Kp,"preview/daynight":Gp,"misc/rocket":Jd,"misc/gift":c0,"brand/sketch":Ks,"brand/antd":Hl,"brand/wechat":fr,"brand/wps":fc};function _i(){var Re=yc(["\n fill: currentColor;\n width: 1em;\n"]);return _i=function(){return Re},Re}function yc(Re,je){return je||(je=Re.slice(0)),Object.freeze(Object.defineProperties(Re,{raw:{value:Object.freeze(je)}}))}var T0=g.Ay.svg.withConfig({displayName:"svg__StyledSvg",componentId:"sc-tmzb4u-0"})(_i());function Qc(){return Qc=Object.assign||function(Re){for(var je=1;je<arguments.length;je++){var et=arguments[je];for(var St in et)Object.prototype.hasOwnProperty.call(et,St)&&(Re[St]=et[St])}return Re},Qc.apply(this,arguments)}function Yp(Re,je){var et=Object.keys(Re);if(Object.getOwnPropertySymbols){var St=Object.getOwnPropertySymbols(Re);je&&(St=St.filter(function(vt){return Object.getOwnPropertyDescriptor(Re,vt).enumerable})),et.push.apply(et,St)}return et}function Sr(Re){for(var je=1;je<arguments.length;je++){var et=arguments[je]!=null?arguments[je]:{};je%2?Yp(Object(et),!0).forEach(function(St){Kh(Re,St,et[St])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Re,Object.getOwnPropertyDescriptors(et)):Yp(Object(et)).forEach(function(St){Object.defineProperty(Re,St,Object.getOwnPropertyDescriptor(et,St))})}return Re}function Kh(Re,je,et){return je in Re?Object.defineProperty(Re,je,{value:et,enumerable:!0,configurable:!0,writable:!0}):Re[je]=et,Re}function Gh(Re,je){if(Re==null)return{};var et=Ih(Re,je),St,vt;if(Object.getOwnPropertySymbols){var no=Object.getOwnPropertySymbols(Re);for(vt=0;vt<no.length;vt++)St=no[vt],!(je.indexOf(St)>=0)&&Object.prototype.propertyIsEnumerable.call(Re,St)&&(et[St]=Re[St])}return et}function Ih(Re,je){if(Re==null)return{};var et={},St=Object.keys(Re),vt,no;for(no=0;no<St.length;no++)vt=St[no],!(je.indexOf(vt)>=0)&&(et[vt]=Re[vt]);return et}function Mh(Re,je){return Pc(Re)||E0(Re,je)||Cp(Re,je)||Jc()}function Jc(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Cp(Re,je){if(Re){if(typeof Re=="string")return Th(Re,je);var et=Object.prototype.toString.call(Re).slice(8,-1);if(et==="Object"&&Re.constructor&&(et=Re.constructor.name),et==="Map"||et==="Set")return Array.from(Re);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return Th(Re,je)}}function Th(Re,je){(je==null||je>Re.length)&&(je=Re.length);for(var et=0,St=new Array(je);et<je;et++)St[et]=Re[et];return St}function E0(Re,je){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(Re)))){var et=[],St=!0,vt=!1,no=void 0;try{for(var $o=Re[Symbol.iterator](),gn;!(St=(gn=$o.next()).done)&&(et.push(gn.value),!(je&&et.length===je));St=!0);}catch(En){vt=!0,no=En}finally{try{!St&&$o.return!=null&&$o.return()}finally{if(vt)throw no}}return et}}function Pc(Re){if(Array.isArray(Re))return Re}function ac(Re){var je=Re.name,et=Re.className,St=Re.label,vt=Gh(Re,["name","className","label"]),no=Ec[je&&je.includes("/")?je:"general/"+je];if(!no)return null;var $o=Mh(no,3),gn=$o[0],En=$o[1],cs=St?{"aria-label":St}:{"aria-hidden":!0};return m.createElement(T0,Qc({xmlns:"http://www.w3.org/2000/svg",className:bt(["svg-icon",je,et]),viewBox:"0 0 ".concat(gn," ").concat(En)},Sr(Sr({},cs),vt),{dangerouslySetInnerHTML:{__html:$o[2]}}))}ac.propTypes={name:x().string,className:x().string,label:x().string},ac.ICON_MAP=Ec;const k0=ac;function Mr(){var Re=wp(["\n &.RegularButton,\n &.PrimaryButton,\n &.PrimaryCoreButton,\n &.RegularCoreButton,\n &.SecondaryCoreButton,\n &.TertiaryCoreButton {\n padding: 0 0.5em;\n height: 2.125rem;\n font-size: 0.875rem;\n border: 1px solid;\n border-radius: 2px;\n cursor: pointer; \n transition: all 0.2s ease-out;\n &:not(button) {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n }\n &:disabled {\n cursor: not-allowed;\n opacity: 0.6;\n }\n .icon {\n margin-right: 0.125em;\n }\n &.small {\n height: 2em;\n font-size: 0.75rem;\n }\n .svg-icon.loading {\n margin-right: 0.5em;\n vertical-align: -.15em;\n animation: ibot-ani-spinning 1.5s infinite ease-out;\n }\n }\n\n &.PrimaryCoreButton,\n &.RegularCoreButton,\n &.SecondaryCoreButton,\n &.TertiaryCoreButton {\n padding: 0 1em;\n height: 2.375rem;\n &.small {\n height: 2em;\n }\n &:disabled {\n background-color: #f6f7f8;\n border-color: #dedee4;\n color: #c8cdd1;\n opacity: 1;\n }\n }\n\n &.PrimaryCoreButton {\n background-color: #eb5648;\n &,\n &:link,\n &:visited {\n border-color: transparent;\n color: #fff;\n }\n &:enabled:hover,\n a&:hover {\n background-color: #ef776c;\n color: #fff;\n }\n &:enabled:active,\n a&:active {\n background-color: #bc4439;\n color: #e4b4b0;\n }\n }\n\n &.RegularCoreButton,\n &.SecondaryCoreButton {\n background-color: #fff;\n &,\n &:link,\n &:visited {\n color: #eb5648;\n }\n &:enabled:hover,\n a&:hover {\n border-color: #ffa39e;\n color: #ef776c;\n }\n &:enabled:active,\n a&:active {\n border-color: #e84030;\n color: #bc4439;\n }\n }\n\n &.TertiaryCoreButton {\n background-color: #fff;\n border-color: #c8cdd1;\n &,\n &:link,\n &:visited {\n color: #415058;\n }\n &:enabled:hover,\n a&:hover {\n background-color: #8d9ea7;\n border-color: #7d8694;\n color: #fff;\n }\n &:enabled:active,\n a&:active {\n background-color: #5b6b73;\n border-color: #415058;\n }\n }\n\n &.RegularButton {\n &,\n &:link,\n &:visited {\n color: #8d9ea7;\n }\n &:enabled:hover,\n a&:hover {\n color: #5b6b73;\n }\n &:disabled {\n opacity: 0.6;\n }\n }\n\n &.PrimaryButton {\n background-color: #8d9ea7;\n border-color: transparent;\n &,\n &:link,\n &:visited {\n color: #fff;\n }\n &:enabled:hover,\n a&:hover {\n background-color: #5b6b73;\n color: #fff;\n }\n &:enabled:active,\n a&:active {\n color: rgba(255,255,255,0.6);\n }\n }\n\n &.TextButton,\n &.TextCoreButton {\n transition: all 0.1s ease-out;\n &,\n &:link,\n &:visited {\n color: #298df8;\n }\n &:disabled {\n cursor: not-allowed;\n opacity: 0.6;\n }\n &:enabled:hover,\n a&:hover {\n color: #0d7ef7;\n text-decoration: underline;\n }\n .svg-icon.loading {\n margin-right: 0.25em;\n vertical-align: -.15em;\n animation: ibot-ani-spinning 1.5s infinite ease-out;\n }\n .icon {\n margin-right: 0.125em;\n }\n &.small {\n height: 2em;\n font-size: 0.75rem;\n }\n }\n\n &.TextCoreButton {\n &,\n &:link,\n &:visited {\n color: #eb5648;\n }\n &:enabled:hover,\n a&:hover {\n color: #ef776c;\n text-decoration: none;\n }\n &:enabled:active,\n a&:active {\n color: #bc4439;\n }\n }\n"]);return Mr=function(){return Re},Re}function wp(Re,je){return je||(je=Re.slice(0)),Object.freeze(Object.defineProperties(Re,{raw:{value:Object.freeze(je)}}))}var _0=g.Ay.button.withConfig({displayName:"button__StyledButton",componentId:"sc-1h2gqlg-0"})(Mr());function Ud(Re){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ud=function(et){return typeof et}:Ud=function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},Ud(Re)}function El(){return El=Object.assign||function(Re){for(var je=1;je<arguments.length;je++){var et=arguments[je];for(var St in et)Object.prototype.hasOwnProperty.call(et,St)&&(Re[St]=et[St])}return Re},El.apply(this,arguments)}function Vc(Re,je){if(Re==null)return{};var et=Q0(Re,je),St,vt;if(Object.getOwnPropertySymbols){var no=Object.getOwnPropertySymbols(Re);for(vt=0;vt<no.length;vt++)St=no[vt],!(je.indexOf(St)>=0)&&Object.prototype.propertyIsEnumerable.call(Re,St)&&(et[St]=Re[St])}return et}function Q0(Re,je){if(Re==null)return{};var et={},St=Object.keys(Re),vt,no;for(no=0;no<St.length;no++)vt=St[no],!(je.indexOf(vt)>=0)&&(et[vt]=Re[vt]);return et}function xc(Re,je){if(!(Re instanceof je))throw new TypeError("Cannot call a class as a function")}function Sp(Re,je){for(var et=0;et<je.length;et++){var St=je[et];St.enumerable=St.enumerable||!1,St.configurable=!0,"value"in St&&(St.writable=!0),Object.defineProperty(Re,St.key,St)}}function xd(Re,je,et){return je&&Sp(Re.prototype,je),et&&Sp(Re,et),Re}function J0(Re,je){if(typeof je!="function"&&je!==null)throw new TypeError("Super expression must either be null or a function");Re.prototype=Object.create(je&&je.prototype,{constructor:{value:Re,writable:!0,configurable:!0}}),je&&P0(Re,je)}function P0(Re,je){return P0=Object.setPrototypeOf||function(St,vt){return St.__proto__=vt,St},P0(Re,je)}function cd(Re){var je=Ap();return function(){var St=bl(Re),vt;if(je){var no=bl(this).constructor;vt=Reflect.construct(St,arguments,no)}else vt=St.apply(this,arguments);return rc(this,vt)}}function rc(Re,je){return je&&(Ud(je)==="object"||typeof je=="function")?je:N0(Re)}function N0(Re){if(Re===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Re}function Ap(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(Re){return!1}}function bl(Re){return bl=Object.setPrototypeOf?Object.getPrototypeOf:function(et){return et.__proto__||Object.getPrototypeOf(et)},bl(Re)}function d0(Re,je,et){return je in Re?Object.defineProperty(Re,je,{value:et,enumerable:!0,configurable:!0,writable:!0}):Re[je]=et,Re}var Kl={primary:"Primary",regular:"Regular",secondary:"Regular",tertiary:"Tertiary",text:"Text"},fl=function(Re){J0(et,Re);var je=cd(et);function et(){return xc(this,et),je.apply(this,arguments)}return xd(et,[{key:"render",value:function(){var vt=this.className,no=this.isLoading,$o=this.isDisabled,gn=this.props,En=gn.iconType,cs=gn.icon,Zn=gn.children,fs=Vc(gn,["iconType","icon","children"]);return m.createElement(_0,El({className:vt,disabled:$o,onClick:function(Zs){return $o&&Zs.preventDefault()},type:"button"},Fs()(fs,["className","type","theme","isDisabled","disabled","isLoading","loading"])),m.createElement(m.Fragment,null,no&&m.createElement(k0,{name:"loading"}),cs&&En==="svg"&&m.createElement(k0,{name:cs}),Zn))}},{key:"className",get:function(){var vt=this.props,no=vt.type,$o=vt.theme,gn=vt.size,En=vt.className,cs=this.isDisabled,Zn=this.isLoading;return bt(["Button","".concat(Kl[no]).concat($o==="core"?"CoreButton":"Button"),gn!=="regular"&&gn,Zn&&"is-loading",cs&&"is-disabled",En])}},{key:"isDisabled",get:function(){var vt=this.props,no=vt.isDisabled,$o=vt.disabled;return no||$o}},{key:"isLoading",get:function(){var vt=this.props,no=vt.isLoading,$o=vt.loading;return no||$o}}]),et}(m.PureComponent);d0(fl,"propTypes",{type:x().oneOf(["primary","regular","secondary","tertiary","text"]),size:x().oneOf(["regular","small"]),theme:x().oneOf(["core","plain"]),iconType:x().oneOf(["svg","dora","mb","icon","fa","md"]),icon:x().string,className:x().string,isDisabled:x().bool,disabled:x().bool,isLoading:x().bool,loading:x().bool,children:x().any}),d0(fl,"defaultProps",{type:"regular",size:"regular",theme:"plain",icon:"",className:"",isDisabled:!1});function L0(Re){return React.createElement(fl,El({},Re,{theme:"core"}))}function Yh(Re){return React.createElement(L0,El({},Re,{type:"primary"}))}function D0(Re){return React.createElement(L0,El({},Re,{type:"tertiary"}))}const zd=fl,jl=(0,g.DU)([".no-pointer-events{&::after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;z-index:10000;}&.col-resize{cursor:url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzEiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGQ9Ik0xNyAzLjVWMGw4IDUtOCA1VjYuNUg4VjEwTDAgNWw4LTV2My41aDl6IiBpZD0iYiIvPjxmaWx0ZXIgeD0iLTIwJSIgeT0iLTQwJSIgd2lkdGg9IjE0MCUiIGhlaWdodD0iMjAwJSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94IiBpZD0iYSI+PGZlT2Zmc2V0IGR5PSIxIiBpbj0iU291cmNlQWxwaGEiIHJlc3VsdD0ic2hhZG93T2Zmc2V0T3V0ZXIxIi8+PGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0iMS41IiBpbj0ic2hhZG93T2Zmc2V0T3V0ZXIxIiByZXN1bHQ9InNoYWRvd0JsdXJPdXRlcjEiLz48ZmVDb2xvck1hdHJpeCB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuNDEyMTA5Mzc1IDAiIGluPSJzaGFkb3dCbHVyT3V0ZXIxIi8+PC9maWx0ZXI+PC9kZWZzPjxnIGZpbGwtcnVsZT0ibm9uemVybyIgZmlsbD0ibm9uZSI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMyAyKSI+PHVzZSBmaWxsPSIjMDAwIiBmaWx0ZXI9InVybCgjYSkiIHhsaW5rOmhyZWY9IiNiIi8+PHVzZSBmaWxsPSIjRkZGIiB4bGluazpocmVmPSIjYiIvPjwvZz48cGF0aCBkPSJNMjEgNi41VjRsNSAzLTUgM1Y3LjVIMTBWMTBMNSA3bDUtM3YyLjVoMTF6IiBmaWxsPSIjMDAwIi8+PC9nPjwvc3ZnPg==') 12 5,default;}&.row-resize{cursor:url(\"data:image/svg+xml,%3Csvg width='31' height='31' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cfilter x='-52.3%25' y='-175.5%25' width='204.6%25' height='450.9%25' filterUnits='objectBoundingBox' id='a'%3E%3CfeOffset dy='1' in='SourceAlpha' result='shadowOffsetOuter1'/%3E%3CfeGaussianBlur stdDeviation='1.5' in='shadowOffsetOuter1' result='shadowBlurOuter1'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0' in='shadowBlurOuter1' result='shadowMatrixOuter1'/%3E%3CfeMerge%3E%3CfeMergeNode in='shadowMatrixOuter1'/%3E%3CfeMergeNode in='SourceGraphic'/%3E%3C/feMerge%3E%3C/filter%3E%3C/defs%3E%3Cg fill='%23000' fill-rule='nonzero'%3E%3Cg filter='url(%23a)' stroke='%23FFF' transform='translate(7 13)'%3E%3Cpath d='M1.5 1.5h14v2h-14z'/%3E%3Cpath d='M-.607 2.72L3.09-.82l.488 6.39L-.607 2.72zM17.607 2.28L13.91 5.82l-.488-6.39 4.185 2.852z'/%3E%3C/g%3E%3Cpath d='M9 15h13v1H9z'/%3E%3Cpath d='M7.184 15.346l2.488-2.073a.2.2 0 01.328.154v4.146a.2.2 0 01-.328.154l-2.488-2.073a.2.2 0 010-.308zM23.816 15.654l-2.488 2.073a.2.2 0 01-.328-.154v-4.146a.2.2 0 01.328-.154l2.488 2.073a.2.2 0 010 .308z'/%3E%3C/g%3E%3C/svg%3E\") 8 15,default;}}"]),Pl=g.Ay.label.withConfig({displayName:"styles__StyledInputNumber",componentId:"sc-n99ip8-0"})(["position:relative;display:flex;align-items:center;flex:0 0 80px;padding:8px 0 8px 8px;font-size:12px;border-radius:4px;height:28px;overflow:hidden;transition:border 0.2s ease-out 0s,outline,opacity;box-sizing:border-box;.title{display:flex;align-items:center;justify-content:center;width:12px;height:15px;line-height:15px;user-select:none;margin-right:9px;color:rgba(153,153,153,0.7);&.title-cursor{&.col-resize{cursor:url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjdweCIgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSIwIDAgMjcgMTYiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDU1ICg3ODA3NikgLSBodHRwczovL3NrZXRjaGFwcC5jb20gLS0+CiAgICA8dGl0bGU+57yW57uEPC90aXRsZT4KICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPgogICAgPGRlZnM+CiAgICAgICAgPHBhdGggZD0iTTEzLDMuNSBMMTMsLTEuNTMxNDI3NDhlLTE1IEwyMSw1IEwxMywxMCBMMTMsNi41IEw4LDYuNSBMOCwxMCBMLTMuMDYxNjE3ZS0xNiw1IEw4LDIuNDQ5MjkzNmUtMTYgTDgsMy41IEwxMywzLjUgWiIgaWQ9InBhdGgtMSI+PC9wYXRoPgogICAgICAgIDxmaWx0ZXIgeD0iLTIzLjglIiB5PSItNDAuMCUiIHdpZHRoPSIxNDcuNiUiIGhlaWdodD0iMjAwLjAlIiBmaWx0ZXJVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giIGlkPSJmaWx0ZXItMiI+CiAgICAgICAgICAgIDxmZU9mZnNldCBkeD0iMCIgZHk9IjEiIGluPSJTb3VyY2VBbHBoYSIgcmVzdWx0PSJzaGFkb3dPZmZzZXRPdXRlcjEiPjwvZmVPZmZzZXQ+CiAgICAgICAgICAgIDxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjEuNSIgaW49InNoYWRvd09mZnNldE91dGVyMSIgcmVzdWx0PSJzaGFkb3dCbHVyT3V0ZXIxIj48L2ZlR2F1c3NpYW5CbHVyPgogICAgICAgICAgICA8ZmVDb2xvck1hdHJpeCB2YWx1ZXM9IjAgMCAwIDAgMCAgIDAgMCAwIDAgMCAgIDAgMCAwIDAgMCAgMCAwIDAgMC40MTIxMDkzNzUgMCIgdHlwZT0ibWF0cml4IiBpbj0ic2hhZG93Qmx1ck91dGVyMSI+PC9mZUNvbG9yTWF0cml4PgogICAgICAgIDwvZmlsdGVyPgogICAgPC9kZWZzPgogICAgPGcgaWQ9Iuiuvue9rumdouadvyIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9Iue7hOS7tuagt+W8jyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTQwLjAwMDAwMCwgLTYyMS4wMDAwMDApIiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgICAgICA8ZyBpZD0i57yW57uEIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg0My4wMDAwMDAsIDYyMy4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxnIGlkPSJDb21iaW5lZC1TaGFwZSI+CiAgICAgICAgICAgICAgICAgICAgPHVzZSBmaWxsPSJibGFjayIgZmlsbC1vcGFjaXR5PSIxIiBmaWx0ZXI9InVybCgjZmlsdGVyLTIpIiB4bGluazpocmVmPSIjcGF0aC0xIj48L3VzZT4KICAgICAgICAgICAgICAgICAgICA8dXNlIGZpbGw9IiNGRkZGRkYiIHhsaW5rOmhyZWY9IiNwYXRoLTEiPjwvdXNlPgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTE0LDQuNSBMMTQsMiBMMTksNSBMMTQsOCBMMTQsNS41IEw3LDUuNSBMNyw4IEwyLDUgTDcsMiBMNyw0LjUgTDE0LDQuNSBaIiBpZD0i5b2i54q257uT5ZCIIiBmaWxsPSIjMDAwMDAwIj48L3BhdGg+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==') 10 5,default;}&.row-resize{cursor:url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMjYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGQ9Ik0xMyAzLjVWMGw4IDUtOCA1VjYuNUg4VjEwTDAgNWw4LTV2My41aDV6IiBpZD0iYiIvPjxmaWx0ZXIgeD0iLTIzLjglIiB5PSItNDAlIiB3aWR0aD0iMTQ3LjYlIiBoZWlnaHQ9IjIwMCUiIGZpbHRlclVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgaWQ9ImEiPjxmZU9mZnNldCBkeT0iMSIgaW49IlNvdXJjZUFscGhhIiByZXN1bHQ9InNoYWRvd09mZnNldE91dGVyMSIvPjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjEuNSIgaW49InNoYWRvd09mZnNldE91dGVyMSIgcmVzdWx0PSJzaGFkb3dCbHVyT3V0ZXIxIi8+PGZlQ29sb3JNYXRyaXggdmFsdWVzPSIwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwLjQxMjEwOTM3NSAwIiBpbj0ic2hhZG93Qmx1ck91dGVyMSIvPjwvZmlsdGVyPjwvZGVmcz48ZyBmaWxsLXJ1bGU9Im5vbnplcm8iIGZpbGw9Im5vbmUiPjxnIHRyYW5zZm9ybT0icm90YXRlKDkwIDUuNSA4KSI+PHVzZSBmaWxsPSIjMDAwIiBmaWx0ZXI9InVybCgjYSkiIHhsaW5rOmhyZWY9IiNiIi8+PHVzZSBmaWxsPSIjRkZGIiB4bGluazpocmVmPSIjYiIvPjwvZz48cGF0aCBkPSJNOSAxNi41aDIuNWwtMyA1LTMtNUg4di03SDUuNWwzLTUgMyA1SDl2N3oiIGZpbGw9IiMwMDAiLz48L2c+PC9zdmc+') 8 13,default;}}}input{color:",";width:36px;transition:0.2s ease-out;cursor:default;caret-color:",";font-size:12px;&::selection{background-color:",";}}.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;right:0;top:0;display:flex;flex-direction:column;justify-content:center;width:16px;height:100%;text-align:center;visibility:hidden;transition:0.2s ease-out;transition-property:background,border,opacity;border-radius:4px;svg{height:4px;fill:currentColor;fill-rule:evenodd;}button{display:flex;justify-content:center;margin:0;padding:0;width:100%;height:50%;line-height:0;color:",";transition:all 0.1s ease-out;&:nth-of-type(1){align-items:flex-end;padding-bottom:3px;}&:nth-of-type(2){align-items:flex-start;padding-top:3px;}&:hover{color:",";svg path{fill:#333;}}&:active{color:",";}}&.caret{width:22px;svg{height:10px;width:10px;margin-right:0;}button{height:100%;}}}&.is-disabled{> *{opacity:0.5;cursor:not-allowed;}}&.is-readOnly{pointer-events:none;.action{visibility:hidden;}}&:hover:not(.has-menu):not(.is-disabled){box-shadow:inset 0 0 0 1px #e5e5e5;.action{visibility:visible;color:#c8cdd0;}}&.is-active:not(.has-menu):not(.is-disabled){box-shadow:inset 0 0 0 2px ",";.action{&:not(.caret){visibility:visible;}}}&.is-active-title{box-shadow:inset 0 0 0 2px ",";}&.has-menu{input{width:calc(100% - 22px);border-radius:4px;margin-left:0;padding-left:5px;transition:0.2s ease-out;transition-property:outline,border;}&:hover:not(.is-active):not(.is-disabled){.action.caret{visibility:visible;background:",";}}&.is-active{input{box-shadow:inset 0 0 0 2px ",";}.action.caret{visibility:visible;color:#c8cdd0;&:hover{background:",";}}}}"],Re=>Re.theme.color_text_L1,Re=>Re.theme.themeColor,Re=>""+hs.Q.hex2rgbaStr(Re.theme.themeColor,.3),Re=>Re.theme.color_text_L1,Re=>Re.theme.common.text_20.cr,Re=>Re.theme.common.text_20.hover,Re=>Re.theme.themeColor,Re=>Re.theme.themeColor,Re=>Re.theme.themeColor,Re=>Re.theme.inputNumber.caret_bg_hover,Re=>Re.theme.themeColor,Re=>Re.theme.inputNumber.caret_bg_hover);var Ed=e(72605);function Nc(Re){for(var je=[],et=/\s*([0-9\.]+|\S)\s*/g,St;(St=et.exec(Re))!==null;)je.push(St[1]);return je}function Ip(Re){return Re!==void 0&&Re.match(/^[0-9\.]+$/)!==null}function Mp(Re,je){var et=Nc(je),St=0;function vt(){return et[St]}function no(ks){St++}function $o(){var ks=vt();if(ks==="-"){no(ks);const ni=vt();return no(ni),{type:"number",value:ks+ni}}else if(ks==="+"){no(ks);const ni=vt();return no(ni),{type:"number",value:ni}}else{if(Ip(ks))return no(ks),{type:"number",value:ks};if(ks==="("){no(ks);var Zs=cs();if(vt()!==")")throw new SyntaxError("expected )");return no(")"),Zs}else throw new SyntaxError("expected a number, a variable, or parentheses")}}function gn(ks){return vt()==="%"?(no("%"),gn({type:"%",expr:ks})):ks}function En(){for(var ks=gn($o()),Zs=vt();Zs==="*"||Zs==="/";){no(Zs);var ni=gn($o());ks={type:Zs,left:ks,right:ni},Zs=vt()}return ks}function cs(){for(var ks=En(),Zs=vt();Zs==="+"||Zs==="-";){no(Zs);var ni=En();ks={type:Zs,left:ks,right:ni},Zs=vt()}return ks}var Zn=cs();if(St!==et.length)throw new SyntaxError("unexpected '"+vt()+"'");function fs(ks){switch(ks.type){case"number":return parseFloat(ks.value);case"%":if(typeof Re=="number")return Re*fs(ks.expr)*.01;throw new Error("% of non-number");case"+":return fs(ks.left)+fs(ks.right);case"-":return fs(ks.left)-fs(ks.right);case"*":return fs(ks.left)*fs(ks.right);case"/":return fs(ks.left)/fs(ks.right)}}return fs(Zn)}const $c=(0,_t.jsx)("svg",{width:"6",height:"4",xmlns:"http://www.w3.org/2000/svg",children:(0,_t.jsx)("path",{d:"M5.52 3.601l-4.514.057a.5.5 0 01-.35-.863L2.942.637a.5.5 0 01.686 0l2.23 2.1a.5.5 0 01-.337.864z",fill:"#999",fillRule:"nonzero"})}),vc=(0,_t.jsx)("svg",{width:"6",height:"4",xmlns:"http://www.w3.org/2000/svg",children:(0,_t.jsx)("path",{d:"M5.52.715L1.006.658a.5.5 0 00-.35.864L2.942 3.68a.5.5 0 00.686 0l2.23-2.1A.5.5 0 005.52.714z",fill:"#999",fillRule:"nonzero"})}),lc=500,Wd=30,Xl=(Re,je)=>Math.round(Number(Re)*Math.pow(10,je))/Math.pow(10,je);function vd(Re,je,et){return Re===Fo("common.multipleValues")?Re:je||Re!==""&&R()(Number(Re))?Xl(Re,et):""}const $0=function(Re,je){let{shiftKey:et}=Re;return je===void 0&&(je=1),et?je*10:je},q0=Re=>{let{currentTarget:je}=Re;return setTimeout(()=>je.select(),50)};class kd extends m.PureComponent{constructor(je){var et;super(je),et=this,(0,o.A)(this,"setElemRef",vt=>this.$title=vt),(0,o.A)(this,"setLabelRef",vt=>this.$label=vt),(0,o.A)(this,"setInputRef",vt=>this.$input=vt),(0,o.A)(this,"onChange",vt=>{const{target:{value:no}}=vt;this.setValue(no.trim(),vt)}),(0,o.A)(this,"correctNumber",vt=>{typeof vt=="string"&&(vt=Number.parseFloat(vt));const{value:no,min:$o,max:gn,precision:En}=this.props,cs=Xl(Math.min(Math.max(vt,$o),gn),En);if(isNaN(cs)){if(isNaN(no))return 0}else return cs}),(0,o.A)(this,"checkValidity",vt=>/^\+$/.test(vt)?this.canBePositive:/^\-$/.test(vt)?this.canBeNegative:vt===""||isFinite(vt)&&this.correctNumber(vt)===Number(vt)||vt===Fo("common.multipleValues")),(0,o.A)(this,"setValue",(vt,no,$o)=>{if(no.persist&&no.persist(),vt===this.state.value){$o();return}this.setState({value:vt},$o)}),(0,o.A)(this,"setConfirmedValue",(vt,no,$o)=>this.setValue(vt,no,()=>this.onConfirm(no,$o))),(0,o.A)(this,"setConfirmedValueWhenResize",(vt,no,$o)=>this.setValue(vt,no,()=>this.onConfirm(no,$o))),(0,o.A)(this,"onConfirm",function(vt,no){no===void 0&&(no=!1);const{attr:$o,value:gn,precision:En,onConfirm:cs,isNotVerify:Zn,canReturnUndefined:fs}=et.props,ks=et.materializeToNumber(),Zs=et.checkValidity(ks);if(Zn&&!Zs||et.props.isDisabled||et.props.disabled)return;vt.persist&&vt.persist();const wi=et.correctNumber(ks),xi=isNaN(wi)?gn:wi,Fi=ks===""?fs?void 0:gn:Zs?/^[\+\-]$/.test(ks)?0:wi:wi===Xl(ks,En)?wi:gn||xi,$i=Fi||xi;if(!(!R()(Fi)&&!fs))return et.setState({value:$i},()=>cs(Fi,$o,vt,no))}),(0,o.A)(this,"focusOnInput",vt=>{try{const no=vt.currentTarget.closest("label").querySelector("input");setTimeout(()=>no.focus())}catch(no){console.error(no)}}),(0,o.A)(this,"stepStopCompress",void 0),(0,o.A)(this,"onStep",vt=>{vt.persist(),vt.nativeEvent.stopPropagation();const{action:no}=vt.currentTarget.dataset,$o=$0(vt,this.props.step)*(no==="up"?1:-1);this.stepStopCompress!==void 0&&clearTimeout(this.stepStopCompress),this.stepStopCompress=setTimeout(()=>{this.stepStopCompress=void 0},1e3),this.setConfirmedValue(this.correctNumber(this.materializeToNumber()+$o),vt,!0),Object.assign(this,{longPressedTimeout:setTimeout(()=>Object.assign(this,{steppingInterval:setInterval(()=>this.setConfirmedValue(this.correctNumber(this.materializeToNumber()+$o),vt,!0),Wd)}),lc)})}),(0,o.A)(this,"onRelease",()=>{clearTimeout(this.longPressedTimeout),clearInterval(this.steppingInterval)}),(0,o.A)(this,"onFocus",vt=>{const{attr:no,onFocus:$o=q0}=this.props;$o(vt,no)}),(0,o.A)(this,"onKeyDown",vt=>{const{key:no,currentTarget:$o}=vt,gn=no==="ArrowUp"?"up":no==="ArrowDown"?"down":no==="Enter"?"enter":no==="Tab"?"tab":null,En=$o instanceof Element&&$o.matches("input");if(gn){if(vt.persist&&vt.persist(),gn!=="tab"&&vt.preventDefault(),En&&gn==="tab")return this.setInactive(),this.onConfirm(vt);if(En&&gn==="enter"){this.onConfirm(vt),this.setInactive(),this.$label.querySelector("input").select();return}if(En){if(!this.shouldEnableByValue(this.state.value))return;const cs=$0(vt,this.props.step)*(gn==="up"?1:-1);this.setConfirmedValue(this.correctNumber(this.materializeToNumber()+cs),vt,!0)}}}),(0,o.A)(this,"setActive",vt=>{vt.target.closest(".action")||this.setState({isActive:!0})}),(0,o.A)(this,"setInactive",()=>{this.setState({isActive:!1})}),(0,o.A)(this,"toggleMenu",()=>this.setState({isMenuOpen:!this.state.isMenuOpen})),(0,o.A)(this,"closeMenu",()=>this.setState({isMenuOpen:!1})),(0,o.A)(this,"onSelect",vt=>{vt.persist();const{currentTarget:no}=vt;this.setConfirmedValue(no.dataset.value,vt),this.setInactive(),this.closeMenu()}),(0,o.A)(this,"onClickOutside",vt=>{const{target:no}=vt,{onBlur:$o}=this.props;no.closest("label")&&this.$label.contains(no)||(this.onConfirm(vt),this.setInactive(),$o&&$o())}),(0,o.A)(this,"handleRectResize",vt=>{vt.stopPropagation();const{isDisabled:no,disabled:$o,cursorSize:gn,cursorDirection:En}=this.props;if(no||$o||!this.shouldEnableByValue(this.state.value))return;const{left:cs,right:Zn,top:fs,bottom:ks}=this.$title.getBoundingClientRect();this.lastRecordedClientX=gn==="col-resize"?(cs+Zn)/2:(fs+ks)/2,this.lastRecordedValue=this.materializeToNumber(),this.setState({isTitleActive:!0}),document.body.classList.add("no-pointer-events",gn),this.props.onRectResize&&this.props.onRectResize(!0);const Zs=wi=>{const xi=(gn==="col-resize"?wi.pageX:wi.pageY)-this.lastRecordedClientX;this.setConfirmedValueWhenResize(this.correctNumber(this.lastRecordedValue+(En?Number(xi):-Number(xi))),wi,!0)},ni=wi=>{this.setState({isTitleActive:!1}),document.body.classList.remove("no-pointer-events",gn),this.props.onRectResize&&this.props.onRectResize(!1),document.removeEventListener("mousemove",Zs),document.removeEventListener("mouseup",ni)};document.addEventListener("mousemove",Zs),document.addEventListener("mouseup",ni)}),(0,o.A)(this,"handleChangeCursor",vt=>{const{isDisabled:no,disabled:$o}=this.props;no||$o||this.shouldEnableByValue(this.state.value)&&this.setState({isCursor:!this.state.isCursor})});const St=vd(this.props.value,this.props.isNotVerify,this.props.precision);this.state={prevProps:this.props,value:St,isActive:!1,isMenuOpen:!1,isTitleActive:!1,isCursor:!1,suffixStyle:null},this.lastRecordedClientX=null,this.lastRecordedValue=St}static getDerivedStateFromProps(je,et){let{prevProps:St,value:vt}=et;return(0,Ed.bN)(St,je)?null:{prevProps:je,value:vd(je.value,je.isNotVerify,je.precision)}}componentDidMount(){this.positionEverything()}positionEverything(){const{value:je,suffix:et,suffixOffsetLeft:St}=this.props;if(et){const vt={left:this.$input.offsetLeft+St};this.setState({suffixStyle:vt})}}get canBePositive(){return this.props.max>0}get canBeNegative(){return this.props.min<0}materializeToNumber(){try{return Mp(this.props.value,this.state.value.toString())}catch(je){return(this.props.value===""||this.props.value===void 0)&&this.setState({value:""}),this.props.value}}shouldEnableByValue(je){return R()(je)||/[0-9+\%\*\-\(\)]+/.test(je)}render(){const{className:je,placeholder:et,title:St,cursorSize:vt,suffix:no,formatter:$o,optionList:gn,canSlidingAdjustment:En,readOnly:cs,onMouseEnter:Zn,onMouseLeave:fs,withBtns:ks,showCursorResize:Zs}=this.props,{value:ni,isActive:wi,isMenuOpen:xi,isTitleActive:Fi,isCursor:$i,suffixStyle:ga}=this.state,Ia=this.props.isDisabled||this.props.disabled,_a=Ia||!this.shouldEnableByValue(ni),za=gn&&gn.length>0,la=b()(je,"WorkspaceInputNumber",{"is-disabled":Ia,"is-active":wi&&!Ia,"is-menu-open":xi,"is-active-title":Fi,"can-sliding-adjustment":En,"has-menu":za,"is-readOnly":cs});return(0,_t.jsxs)(Pl,{className:la,ref:this.setLabelRef,onMouseDown:this.setActive,onMouseEnter:Zn,onMouseLeave:fs,children:[St&&(0,_t.jsx)("div",{className:b()("title",{"title-cursor":$i},vt),ref:this.setElemRef,onMouseDown:this.handleRectResize,onMouseEnter:this.handleChangeCursor,onMouseLeave:this.handleChangeCursor,children:St}),!St&&Zs&&(0,_t.jsx)("div",{className:b()("title no-title",{"title-cursor":$i},vt),ref:this.setElemRef,onMouseDown:this.handleRectResize,onMouseEnter:this.handleChangeCursor,onMouseLeave:this.handleChangeCursor}),(0,_t.jsx)("input",{type:"text",value:$o(ni),placeholder:et,ref:this.setInputRef,disabled:Ia,onChange:this.onChange,onKeyDown:this.onKeyDown,onKeyUp:this.handleAfterChangeValue,onFocus:this.onFocus}),no&&(0,_t.jsx)("span",{className:"suffix",style:ga,"data-value":$o(ni),"data-suffix":no,children:(0,_t.jsx)("span",{children:no})}),ks&&(0,_t.jsx)(Zp,{hasMenu:za,isDisabled:_a,onToggleMenu:this.toggleMenu,onStep:this.onStep,onRelease:this.onRelease}),za&&xi&&(0,_t.jsx)(Qt,{isOpen:xi,menuClassName:"SelectNumberMenu",$select:this.$label,optionList:gn,value:ni,onChange:this.onSelect,onClose:this.closeMenu}),wi&&(0,_t.jsx)(f.A,{target:document,onMouseDown:(0,f.t)(this.onClickOutside,{capture:!0})}),(0,_t.jsx)(jl,{})]})}}(0,o.A)(kd,"propTypes",{step:x().number,precision:x().number,formatter:x().func,parser:x().func,value:x().oneOfType([x().string,x().number]),placeholder:x().oneOfType([x().string,x().number]),readOnly:x().bool,canReturnUndefined:x().bool,title:x().node,suffix:x().string,cursorSize:x().string,min:x().number,max:x().number,suffixOffsetLeft:x().number,cursorDirection:x().bool,isDisabled:x().bool,isNotVerify:x().bool,disabled:x().bool,canSlidingAdjustment:x().bool,withBtns:x().bool,showCursorResize:x().bool,onRectResize:x().func,onFocus:x().func,onBlur:x().func,onConfirm:x().func.isRequired,attr:x().oneOfType([x().string,x().array]),className:x().string,optionList:x().array,onMouseEnter:x().func,onMouseLeave:x().func}),(0,o.A)(kd,"defaultProps",{unstyled:!1,value:"",placeholder:"",cursorSize:"col-resize",cursorDirection:!0,step:1,suffixOffsetLeft:0,isNotVerify:!1,parser:Re=>Re,formatter:Re=>Re,min:-1/0,max:1/0,isDisabled:!1,disabled:!1,readOnly:!1,canReturnUndefined:!1,withBtns:!0,showCursorResize:!1,onConfirm:()=>null,onBlur:()=>null,onMouseEnter:()=>null,onMouseLeave:()=>null,onRectResize:()=>null,precision:0,canSlidingAdjustment:!0});const Zp=(0,m.memo)(Re=>{let{hasMenu:je,onToggleMenu:et,onStep:St,isDisabled:vt,onRelease:no}=Re;return(0,_t.jsx)(_t.Fragment,{children:je?(0,_t.jsx)("div",{className:"action caret",children:(0,_t.jsx)(zd,{type:"text",tabIndex:"-1",onClick:et})}):(0,_t.jsxs)("div",{className:"action",children:[(0,_t.jsx)(zd,{type:"text",tabIndex:"-1","data-action":"up",isDisabled:vt,onMouseDown:St,onMouseLeave:no,onMouseUp:no,children:$c}),(0,_t.jsx)(zd,{type:"text",tabIndex:"-1","data-action":"down",isDisabled:vt,onMouseDown:St,onMouseLeave:no,onMouseUp:no,children:vc})]})})});Zp.propTypes={hasMenu:x().bool,isDisabled:x().bool,onToggleMenu:x().func,onStep:x().func,onRelease:x().func};class Xp extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"_invalid",!1),(0,o.A)(this,"_originalValueOfInput",""),(0,o.A)(this,"_changedMannually",!1),(0,o.A)(this,"$input",null),(0,o.A)(this,"state",{hexValue:"",prevHexValueFromProps:""}),(0,o.A)(this,"setInputRef",je=>{this.$input=je}),(0,o.A)(this,"selectWhenClick",je=>{const et=je.target;et.select(),this._originalValueOfInput=et.value}),(0,o.A)(this,"_correctInput",je=>je.toUpperCase().replace(/[^0-9A-F]/g,"").slice(0,6)),(0,o.A)(this,"handleChange",je=>{this._changedMannually=!0;const et=this._correctInput(je.target.value);et.length===3||et.length===6?this._invalid=!1:this._invalid=!0,this.setState({hexValue:et})}),(0,o.A)(this,"_format3DigitValue",je=>""+je[0]+je[0]+je[1]+je[1]+je[2]+je[2]),(0,o.A)(this,"formatAndHandleChange",()=>{if(!this._changedMannually)return;const{hexValue:je}=this.state;let et=je;return je.length===3&&(et=this._format3DigitValue(et),this.setState({hexValue:et})),et.toLowerCase(),this.props.handleChange("#"+et),et}),(0,o.A)(this,"handleBlur",je=>{this._invalid?this.setState({hexValue:this._originalValueOfInput}):this.formatAndHandleChange(),this._invalid=!1,this._originalValueOfInput="",this.props.onBlur&&this.props.onBlur(je)}),(0,o.A)(this,"handleEnter",je=>{if(je.key==="Enter"){if(this._invalid)this.setState({hexValue:this._originalValueOfInput});else{const et=this.formatAndHandleChange();this._originalValueOfInput=et}this._invalid=!1,je.target.select()}})}static getDerivedStateFromProps(je,et){const St=je.hexValue.toUpperCase();return St!==et.prevHexValueFromProps?{prevHexValueFromProps:St,hexValue:St}:null}render(){const{className:je,onFocus:et}=this.props,{hexValue:St}=this.state;return(0,_t.jsxs)(_t.Fragment,{children:[(0,_t.jsx)("a",{className:"hex-suffix",children:"#"}),(0,_t.jsx)("input",{className:je,ref:this.setInputRef,value:St,onFocus:et,onClick:this.selectWhenClick,onKeyUp:this.handleEnter,onChange:this.handleChange,onBlur:this.handleBlur})]})}}const _d=g.Ay.div.withConfig({displayName:"styles__StyledInputGroup",componentId:"sc-kybwl8-0"})(["display:flex;align-items:center;justify-content:flex-start;width:100%;height:33px;margin-left:-7px;input{color:",";transition:all 0.2s;caret-color:#333333;&::selection{background-color:",";}}.is-active-title{box-shadow:none;}.hex-input-wp{display:flex;flex:0 0 160px;position:relative;align-items:center;border-radius:4px;padding-left:0;margin-left:7px;margin-right:0;height:28px;.bgColorText{padding:7px 0 7px 15px;font-size:12px;width:58px;background-color:transparent;box-sizing:content-box;color:",";margin-left:4px;}.hex-suffix{position:absolute;left:9px;font-size:12px;color:#ccc;cursor:default;}&:hover:not(.disable):not(.is-active){box-shadow:inset 0 0 0 1px ",";&::after{content:'';position:absolute;left:100px;top:1px;width:1px;height:calc(100% - 2px);background-color:",";}}&.is-rect-resize{box-shadow:inset 0 0 0 2px ",";&::after{content:'';position:absolute;left:100px;top:1px;width:2px;height:calc(100% - 2px);background-color:",";}}&.is-active{box-shadow:inset 0 0 0 2px ",";&::after{content:'';position:absolute;left:100px;top:2px;width:1px;height:calc(100% - 4px);background-color:",";}}&.hide-line{.bgColorText,.alphaText{opacity:0.4;}}&:hover::after{left:100px;}}.rgba-input-wp{display:flex;align-items:center;margin-left:20px;border:solid 1px transparent;border-radius:4px;transition:all 0.2s;width:178px;height:30px;input{font-size:12px;}input:nth-of-type(3){border-right:solid 1px transparent;}&:hover{box-shadow:inset 0 0 0 1px ",";input:not(:nth-of-type(1)){border-left:solid 1px ",";}input:nth-of-type(3){border-right:solid 1px ",";}}&.is-active{box-shadow:inset 0 0 0 2px ",";input:not(:nth-of-type(1)){border-left:solid 1px ",";height:24px;}input:nth-of-type(3){border-right:solid 1px ",";height:24px;}}&.is-rect-resize{box-shadow:inset 0 0 0 2px ",";input:nth-of-type(3){border-right:solid 2px ",";height:24px;}input:not(:nth-of-type(1)){border-left:solid 1px ",";height:24px;}}input{width:39px;height:28px;margin-left:-1px;border-left:solid 1px transparent;padding:7px 2px 7px 0;text-align:center;&:nth-child(1){margin-left:0;border-left:none;}}.alpha-input{padding:7px 0 7px 8px;text-align:left;width:64px;}}.css-input{width:150px;margin-left:7px;padding:7px 0 7px 8px;border-radius:4px;font-size:12px;&:hover{box-shadow:inset 0 0 0 1px ",";}&:focus{box-shadow:inset 0 0 0 2px ",";}}.input-with-no-title{padding:8px 2px;flex:0 0 58px;font-size:12px;input{padding-left:0;}.no-title{margin:0;width:6px;}.suffix{left:12px;}.action{right:-1px;width:12px;background:",";height:18px;margin:5px 0;}&.hex-a-input{right:-25px;padding:8px 0;flex:0 0 53px;font-size:12px;box-shadow:none;input,.suffix{color:",";line-height:28px;left:8px !important;}&:hover:not(.has-menu):not(.is-disabled){box-shadow:none;}&.is-active:not(.has-menu):not(.is-disabled){box-shadow:none;}.no-title{margin-right:0;width:6px;}.action{width:10px;}}&.rgba-a-input{outline:none;input{width:50px;text-align:start;}.action{right:4px;}.suffix{left:8px !important;}&:hover:not(.has-menu):not(.is-disabled){outline:none;box-shadow:none;}&.is-active:not(.has-menu):not(.is-disabled){outline:none;box-shadow:none;}}}"],Re=>Re.theme.color_text_L0,Re=>""+hs.Q.hex2rgbaStr(Re.theme.themeColor,.3),Re=>Re.theme.color_text_L0,Re=>Re.theme.input.hover.border,Re=>Re.theme.input.hover.border,Re=>Re.theme.themeColor,Re=>Re.theme.themeColor,Re=>Re.theme.themeColor,Re=>Re.theme.themeColor,Re=>Re.theme.input.hover.border,Re=>Re.theme.input.hover.border,Re=>Re.theme.input.hover.border,Re=>Re.theme.themeColor,Re=>Re.theme.input.hover.border,Re=>Re.theme.input.hover.border,Re=>Re.theme.themeColor,Re=>Re.theme.themeColor,Re=>Re.theme.input.hover.border,Re=>Re.theme.input.hover.border,Re=>Re.theme.themeColor,Re=>Re.theme.bgColor,Re=>Re.theme.color_text_L0),Vd=[{value:"HEX"},{value:"RGB"},{value:"CSS"},{value:"HSB"}],Qp={h:360,s:100,v:100};class Tp extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"_originalValueOfInput",0),(0,o.A)(this,"_invalidFace",""),(0,o.A)(this,"_changedMannually",!1),(0,o.A)(this,"state",{r:this.props.color[0],g:this.props.color[1],b:this.props.color[2],a:this.props.color[3],cssStr:"rgba("+Math.round(this.props.color[0])+", "+Math.round(this.props.color[1])+", "+Math.round(this.props.color[2])+", "+this.props.color[3]+")",h:0,s:0,v:0,prevHexFromProps:null,isRgbaInputActive:!1,isRectResize:!1}),(0,o.A)(this,"selectWhenClick",je=>{const et=je.target;et.select(),this._originalValueOfInput=Number(et.value)}),(0,o.A)(this,"_correctInput",je=>je.replace(/\D/g,"").slice(0,3)),(0,o.A)(this,"handleChange",je=>{this._changedMannually=!0;const et=je.target,St=et.dataset.face,vt=Number(this._correctInput(et.value));this.setState({[St]:vt})}),(0,o.A)(this,"validate",(je,et)=>{const St=this.props.colorInputOption==="HSB"?Qp[je]:255;return et===""||Number(et)>St?(this._invalidFace=je,!1):(this._invalidFace="",!0)}),(0,o.A)(this,"emitChange",()=>{if(!this._changedMannually)return;const{r:je,g:et,b:St,h:vt,s:no,v:$o}=this.state;if(this.props.colorInputOption==="HSB"){const gn=A.Q1.hsv2rgb({h:vt/360,s:no/100,v:$o/100});this.props.onRgbaChange(gn)}else this.props.onRgbaChange({r:je,g:et,b:St})}),(0,o.A)(this,"handleBlur",je=>{const et=je.target.dataset.face;et===this._invalidFace?this.setState({[et]:this._originalValueOfInput}):this.emitChange(),this._invalidFace="",this._originalValueOfInput=0,this.rgbaInputCancel()}),(0,o.A)(this,"handleEnter",je=>{if(je.key!=="Enter")return;const et=je.target,St=et.dataset.face;St===this._invalidFace?this.setState({[St]:this._originalValueOfInput}):(this._originalValueOfInput=this.state[St],this.emitChange()),this._invalidFace="",et.select()}),(0,o.A)(this,"rgbaInputActive",je=>{je&&je.target.select&&je.target.select(),this.setState({isRgbaInputActive:!0})}),(0,o.A)(this,"rgbaInputCancel",()=>{this.setState({isRgbaInputActive:!1})}),(0,o.A)(this,"handleCssInput",je=>{this.setState({cssStr:je.target.value})}),(0,o.A)(this,"handleRectResize",je=>{this.setState({isRectResize:je})}),(0,o.A)(this,"handleHexChange",je=>{const{r:et,g:St,b:vt}=A.Q1.hex2rgb(je),{onHexChange:no}=this.props,{a:$o}=this.state;no({color:[et/255,St/255,vt/255,$o]}),this.rgbaInputCancel()}),(0,o.A)(this,"handleCssSubmit",je=>{je.preventDefault();const{onRgbaChange:et}=this.props,{cssStr:St}=this.state,vt=St.match(/rgba?\(\s*([\w.+]+)\s*,\s*([\w.+]+)\s*,\s*([\w.+]+)\s*(?:,\s*([\w%.+]+)\s*)?\)/);if(vt){const no=Math.min(Math.max(+vt[1],0),255),$o=Math.min(Math.max(+vt[2],0),255),gn=Math.min(Math.max(+vt[3],0),255);let En=Number(vt[4]);En=isNaN(En)?1:Math.max(Math.min(En,1),0),et({r:no,g:$o,b:gn,a:En})}else{const[no,$o,gn,En]=this.props.color;this.setState({cssStr:"rgba("+Math.round(no)+", "+Math.round($o)+", "+Math.round(gn)+", "+En+")"})}this.rgbaInputCancel()}),(0,o.A)(this,"handleCssEnter",je=>{!je||!je.key||je.key==="Enter"&&je.target.blur()})}static getDerivedStateFromProps(je,et){if(je.color!==et.prevHexFromProps){const[St,vt,no,$o]=je.color;let gn={r:St,g:vt,b:no,a:$o,cssStr:"rgba("+Math.round(St)+", "+Math.round(vt)+", "+Math.round(no)+", "+$o+")",prevHexFromProps:je.color};if(je.colorInputOption==="HSB"){const{h:En,s:cs,v:Zn}=A.Q1.rgb2hsv({r:St,g:vt,b:no});gn={...gn,h:En*360,s:cs*100,v:Zn*100}}return gn}else return null}render(){const{colorInputOption:je,onHexChange:et,onChangeInputType:St,onAlphaChange:vt}=this.props,{r:no,g:$o,b:gn,a:En,cssStr:cs,h:Zn,s:fs,v:ks,isRgbaInputActive:Zs,isRectResize:ni}=this.state;return(0,_t.jsxs)(_d,{children:[(0,_t.jsx)(to,{width:80,selectWidth:70,optionList:Vd,value:je,onChange:St}),je==="HEX"&&(0,_t.jsxs)("div",{className:"hex-input-wp "+(Zs?"is-active":"")+" "+(ni?"is-rect-resize":"")+" color-input-wp",children:[(0,_t.jsx)(Xp,{hexValue:A.Q1.toHexAndAlpha([no/255,$o/255,gn/255,En])[0].substring(1),className:"bgColorText",handleChange:this.handleHexChange,onFocus:this.rgbaInputActive,onBlur:this.handleBlur}),(0,_t.jsx)(kd,{className:"input-with-no-title hex-a-input",min:0,max:100,suffix:"%",showCursorResize:!0,value:En*100,onChange:vt,onConfirm:vt,onFocus:this.rgbaInputActive,onRectResize:this.handleRectResize,onBlur:this.rgbaInputCancel})]}),je==="RGB"&&(0,_t.jsxs)("div",{className:"rgba-input-wp "+(Zs?"is-active":"")+" "+(ni?"is-rect-resize":"")+" color-input-wp",children:[(0,_t.jsx)("input",{type:"text",value:Math.round(no),"data-face":"r",onChange:this.handleChange,onKeyUp:this.handleEnter,onFocus:this.rgbaInputActive,onBlur:this.handleBlur}),(0,_t.jsx)("input",{type:"text",value:Math.round($o),"data-face":"g",onChange:this.handleChange,onKeyUp:this.handleEnter,onFocus:this.rgbaInputActive,onBlur:this.handleBlur}),(0,_t.jsx)("input",{type:"text",value:Math.round(gn),"data-face":"b",onChange:this.handleChange,onKeyUp:this.handleEnter,onFocus:this.rgbaInputActive,onBlur:this.handleBlur}),(0,_t.jsx)(kd,{className:"input-with-no-title rgba-a-input",min:0,max:100,suffix:"%",showCursorResize:!0,value:En*100,onChange:vt,onConfirm:vt,onFocus:this.rgbaInputActive,onRectResize:this.handleRectResize,onBlur:this.rgbaInputCancel})]}),je==="CSS"&&(0,_t.jsx)("div",{className:(Zs?"is-active":"")+" color-input-wp",children:(0,_t.jsx)("input",{type:"text",value:cs,onChange:this.handleCssInput,onKeyUp:this.handleCssEnter,onFocus:this.rgbaInputActive,onBlur:this.handleCssSubmit,className:"css-input"})}),je==="HSB"&&(0,_t.jsxs)("div",{className:"rgba-input-wp "+(Zs?"is-active":"")+" "+(ni?"is-rect-resize":"")+" color-input-wp",children:[(0,_t.jsx)("input",{type:"text",value:Math.round(Zn),"data-face":"h",onChange:this.handleChange,onKeyUp:this.handleEnter,onFocus:this.rgbaInputActive,onBlur:this.handleBlur}),(0,_t.jsx)("input",{type:"text",value:Math.round(fs),"data-face":"s",onChange:this.handleChange,onKeyUp:this.handleEnter,onFocus:this.rgbaInputActive,onBlur:this.handleBlur}),(0,_t.jsx)("input",{type:"text",value:Math.round(ks),"data-face":"v",onChange:this.handleChange,onKeyUp:this.handleEnter,onFocus:this.rgbaInputActive,onBlur:this.handleBlur}),(0,_t.jsx)(kd,{className:"input-with-no-title rgba-a-input",min:0,max:100,suffix:"%",showCursorResize:!0,value:En*100,onChange:vt,onConfirm:vt,onFocus:this.rgbaInputActive,onRectResize:this.handleRectResize,onBlur:this.rgbaInputCancel})]})]})}}const Jp=g.Ay.div.withConfig({displayName:"styles__StyledGradientPanel",componentId:"sc-12bpo4d-0"})(["width:100%;height:16px;margin:18px 0 12px 0;padding-left:2px;display:flex;justify-content:space-between;align-items:center;.operate-bar{position:relative;display:inline-block;width:195px;height:10px;border:solid 0.5px #cccccc;border-radius:8px;.backSvg{position:absolute;left:0;top:0;width:100%;height:100%;z-index:0;border-radius:8px;}&:after{content:'';position:absolute;left:0;top:0;width:100%;height:100%;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:6px 6px;background-position:0 0,0 3px,3px -3px,-3px 0;z-index:-1}.rail{position:absolute;top:1px;bottom:1px;left:calc(5px / 2 + 1px);right:calc(5px / 2 + 1px);cursor:pointer;}}.gradient-btns{height:24px;margin-right:-6px;margin-left:15px;.icon{width:24px !important;height:24px !important;}svg{path{fill:","}}}.operate-point-list{position:absolute;left:0;top:0;padding:0;margin:0;list-style:none;cursor:pointer;}.operate-point{display:inline-flex;position:absolute;width:14px;height:14px;top:-3px;margin-left:-7px;border:solid 2px white;border-radius:50%;outline:none;box-shadow:0 0 2px 0 #999999;&.active{box-shadow:0 0 2px 0 #999999,0 0 2px 2px rgba(41,141,248,0.8);z-index:999 !important;}.operate-point-color{position:absolute;display:flex;top:2px;left:2px;width:calc(100% - 4px);height:calc(100% - 4px);pointer-events:none;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:6px 6px;background-position:0 0,0 3px,3px -3px,-3px 0;& > div{flex:1;}}}"],Re=>Re.theme.icon.reverse);class $p extends m.PureComponent{constructor(){var je;super(...arguments),je=this,(0,o.A)(this,"operateBar",(0,m.createRef)()),(0,o.A)(this,"state",{prevIndex:null,prevPoint:null}),(0,o.A)(this,"onColorListChange",function(et,St,vt){vt===void 0&&(vt=!1);const{color:no,onChangeColor:$o}=je.props,gn={...no,colors:et,stops:St};$o(gn,vt)}),(0,o.A)(this,"addPoint",et=>{const{color:St,onActivePointChange:vt,onMouseDownCallback:no,onMouseUpCallback:$o}=this.props,{colors:gn,stops:En}=St;if(En.length>=128){alert(Fo("helper.color_breakpoint_tips"));return}const{left:cs,width:Zn}=this.operateBar.current.getBoundingClientRect(),fs=et.clientX,Zs=[...En.map(ga=>cs+Zn*ga),fs].sort((ga,Ia)=>ga-Ia),ni=Zs.map(ga=>(ga-cs)/Zn),wi=Zs.findIndex(ga=>ga===fs);let xi=[...gn];if(wi===0)xi=[xi[0],...gn];else if(wi===xi.length)xi=[...gn,xi[xi.length-1]];else{xi.splice(wi,0,null);const ga=Math.min(Math.max(wi,Zs.length-1),0),Ia=Math.max(Math.min(wi,0),Zs.length-1),_a=xi[ga],za=xi[Ia],la=Zs[ga],qa=Zs[Ia],rr=(et.clientX-la)/(qa-la||1);xi[wi]=[_a[0]+(za[0]-_a[0])*rr,_a[1]+(za[1]-_a[1])*rr,_a[2]+(za[2]-_a[2])*rr,_a[3]+(za[3]-_a[3])*rr]}this.onColorListChange(xi,ni),vt(wi),no();const Fi=ga=>{const{activeIndex:Ia}=this.props,{prevPoint:_a,prevIndex:za}=this.state,la=ga.pageX,qa=this.operateBar.current,rr=qa.getBoundingClientRect().left,pr=qa.clientWidth;let yr;if(la-rr<0?yr=0:la-rr>pr?yr=1:yr=+((la-rr)/pr).toFixed(2),yr!==_a||Ia!==za){const{color:Lr}=this.props,{colors:Tr,stops:Nl}=Lr,Il=[...Nl];Il[Ia]=yr,this.onColorListChange(Tr,Il,!0)}this.setState({prevPoint:yr,prevIndex:Ia})},$i=()=>{document.removeEventListener("mousemove",Fi),document.removeEventListener("mouseup",$i),$o()};document.addEventListener("mousemove",Fi),document.addEventListener("mouseup",$i)}),(0,o.A)(this,"handleMouseDown",et=>{rn(et);const{onActivePointChange:St,activeIndex:vt,onMouseDownCallback:no,onMouseUpCallback:$o}=this.props,{index:gn}=et.target.dataset;if(St(+gn),et.altKey){const{color:Zn}=this.props,{colors:fs,stops:ks}=Zn;if(ks.length>=128){alert(Fo("helper.color_breakpoint_tips"));return}const Zs=[...fs],ni=[...ks];Zs.splice(vt,0,fs[vt]),ni.splice(vt,0,ks[vt]),this.onColorListChange(Zs,ni),St(vt+1)}no();const En=Zn=>{const{activeIndex:fs}=this.props,{prevPoint:ks,prevIndex:Zs}=this.state,ni=Zn.pageX,wi=this.operateBar.current,xi=wi.getBoundingClientRect().left,Fi=wi.clientWidth;let $i;if(ni-xi<0?$i=0:ni-xi>Fi?$i=1:$i=+((ni-xi)/Fi).toFixed(2),$i!==ks||fs!==Zs){const{color:ga}=this.props,{colors:Ia,stops:_a}=ga,za=[..._a];za[fs]=$i,this.onColorListChange(Ia,za,!0)}this.setState({prevPoint:$i,prevIndex:fs})},cs=()=>{document.removeEventListener("mousemove",En),document.removeEventListener("mouseup",cs),$o()};document.addEventListener("mousemove",En),document.addEventListener("mouseup",cs)}),(0,o.A)(this,"reverseGradient",()=>{const{color:et}=this.props,{colors:St,stops:vt}=et,no=[...St].reverse();this.onColorListChange(no,vt)}),(0,o.A)(this,"rotate90Gradient",()=>{const{color:et,onChangeColor:St,widgetProps:vt}=this.props,{w:no,h:$o}=vt;let gn=et;if(et.type===A.LA.LinearGradient){const En=A.dL.parse(et),cs={x:no*En.x,y:$o*En.y},Zn=En.translate({x:-En.x,y:-En.y}),fs=A.ZY.add(cs,Zn.apply({x:no,y:0})),ks=et.type===A.LA.LinearGradient?A.ZY.average(cs,fs):cs,Zs=A.ZY.rotate(ks,Math.PI/2,cs),{a:ni,b:wi,c:xi,d:Fi,x:$i,y:ga}=Zn.clone().rotate(Math.PI/2).translate(A.ZY.divVec2(Zs,A.ZY.xy(no,$o)));gn={...et,x:$i,y:ga,complex:{a:ni,b:wi,c:xi,d:Fi}}}else if(et.type===A.LA.RadialGradient){const En=A.ZY.zero,cs=A.ZY.horizontal,Zn=A.ZY.vertical;let fs=A.ZY.zero,ks=A.ZY.zero,Zs=A.ZY.zero;const{x:ni,y:wi,complex:xi}=et,Fi=A.dL.parse({x:ni,y:wi,complex:xi}).scale(no,$o);fs=Fi.apply(En);const $i=Fi.apply(cs),ga={x:$i.x,y:$i.y};ks=A.ZY.rotate(fs,Math.PI/2,$i),Zs=Fi.apply(Zn);const Ia=A.ZY.distance(ks,fs)/A.ZY.distance(ga,fs),_a=ga.x-fs.x,za=ga.y-fs.y,la=ks.x-fs.x,qa=ks.y-fs.y,rr=(qa*za+_a*la)/(Ia*(Math.pow(_a,2)+Math.pow(za,2))),pr=(qa*_a-za*la)/(Ia*(Math.pow(_a,2)+Math.pow(za,2)));Zs=new A.hP(Ia*rr,Ia*pr,-Ia*pr,Ia*rr,0,0).apply({x:Zs.x-fs.x,y:Zs.y-fs.y}),Zs=A.ZY.add(Zs,fs);const Lr=A.dL.serialize(new A.hP(ks.x-fs.x,ks.y-fs.y,Zs.x-fs.x,Zs.y-fs.y,fs.x,fs.y).scale(1/no,1/$o));gn={...et,...Lr}}St(gn)})}render(){const{color:je,activeIndex:et,widgetProps:St}=this.props,{colors:vt,stops:no}=je,$o=(0,pn.Ez)(vt,no),gn=(0,pn.zS)(je),En=(0,pn.Ez)(gn.colors,gn.stops);return(0,_t.jsxs)(Jp,{children:[(0,_t.jsxs)("div",{className:"operate-bar",ref:this.operateBar,onMouseDown:this.addPoint,children:[(0,_t.jsxs)("svg",{height:"100%",className:"backSvg",children:[(0,_t.jsx)("defs",{children:(0,_t.jsx)("linearGradient",{id:"Gradient",x1:"0",x2:"1",y1:"1",y2:"1",children:En.map((cs,Zn)=>(0,_t.jsx)("stop",{stopColor:cs.hex,stopOpacity:cs.alpha,offset:cs.point},Zn))})}),(0,_t.jsx)("rect",{width:"100%",height:10,fill:"url(#Gradient)"})]}),(0,_t.jsx)("div",{className:"rail",children:$o.map((cs,Zn)=>(0,_t.jsx)(ep,{point:cs.point*100,zIndex:Zn+1,index:Zn,hex:cs.hex,className:"operate-point "+(et===Zn?"active":""),activeIndex:et,handleMouseDown:this.handleMouseDown},Zn))})]}),(0,_t.jsx)("div",{className:"gradient-btns",children:(0,_t.jsx)(Be,{content:Fo("components.reverse_gradient"),direction:"down",children:(0,_t.jsx)("div",{className:"icon",onClick:this.reverseGradient,children:uo})})})]})}}class ep extends m.PureComponent{render(){const{point:je,zIndex:et,index:St,className:vt,handleMouseDown:no,handleKeyDown:$o,activeIndex:gn,hex:En}=this.props;return(0,_t.jsx)("div",{"data-index":St,tabIndex:gn===St?0:St+1,className:vt,style:{left:"calc("+je+"%)",backgroundColor:En,zIndex:et},onKeyDown:$o,onMouseDown:no,onClick:rn})}}const qp=g.Ay.div.withConfig({displayName:"styles__StyledPicture",componentId:"sc-mhm08d-0"})(["width:100%;margin:16px 0;.toolbar{display:flex;align-items:center;justify-content:space-between;width:100%;.btns{.icon{width:16px !important;height:16px !important;}}}.image-wp{position:relative;height:168px;margin:9px 0 10px;border-radius:4px;background-clip:content-box;overflow:hidden;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:12px 12px;background-position:0 0,0 6px,6px -6px,-6px 0;border:solid 1px #ccc;img{width:100%;height:100%;object-fit:contain;}&:hover{.mask{display:flex;}}.mask{position:absolute;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,0.4);display:none;justify-content:center;align-items:center;span{color:#fff;font-size:12px;display:inline-block;text-align:center;border-radius:4px;border:solid 1px #fff;width:60px;height:30px;line-height:30px;&:lang(en){width:100px;}&:hover{border:solid 1px #ccc;}}}}"]),eh=[{value:A.wp.Fill,label:"pictureFill"},{value:A.wp.Fit,label:"pictureFit"}];class th extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"$upload",(0,m.createRef)()),(0,o.A)(this,"onChangePicture",je=>{const{color:et,onChange:St}=this.props;St({...et,src:je})}),(0,o.A)(this,"changeObjectFit",je=>{const{color:et,onChange:St}=this.props;St({...et,scale:je})}),(0,o.A)(this,"addPicture",()=>{var je;(je=this.$upload.current)==null||je.click()}),(0,o.A)(this,"uploadPicture",async()=>{var je;const{createAssetFromFiles:et}=this.props,St=(((je=this.$upload.current)==null?void 0:je.files)||[])[0];if(!(!St||!window.FileReader)&&/^image/.test(St.type)){const vt=await et([St])||[];vt[0]&&this.onChangePicture(vt[0].image)}})}render(){const{color:{src:je,scale:et}}=this.props,St={transform:"scale("+A.wp[et]+")"};return(0,_t.jsxs)(qp,{children:[(0,_t.jsx)("div",{className:"toolbar",children:(0,_t.jsx)(to,{optionList:eh.map(vt=>({...vt,label:Fo("components."+vt.label)})),value:et,width:90,onChange:this.changeObjectFit})}),(0,_t.jsxs)("div",{className:"image-wp",children:[(0,_t.jsx)("img",{src:je,alt:Fo("shortcuts.image"),style:St}),(0,_t.jsxs)("div",{className:"mask",onClick:this.addPicture,children:[(0,_t.jsx)("span",{children:Fo("components.chooseImage")}),(0,_t.jsx)("input",{type:"file",accept:".png,.jpeg",hidden:!0,onChange:this.uploadPicture,ref:this.$upload})]})]})]})}}const Lc=g.Ay.div.withConfig({displayName:"styles__StyledColorPicker",componentId:"sc-tanz9d-0"})(["box-sizing:border-box;position:absolute;width:256px;color:",";background:",";border-radius:8px;box-shadow:0 3px 10px 0 rgba(0,0,0,0.1);font-size:12px;text-align:left;border:1px solid ",";input{background:none;border:0;}button{background:none;border:0;outline:0;border-radius:0;color:inherit;cursor:pointer;}*{box-sizing:border-box;}input{outline:none;}.icon{display:inline-flex;justify-content:center;align-items:center;width:24px;height:24px;border-radius:4px;cursor:pointer;&:hover{background-color:",";}&:active{background-color:",";}&:nth-of-type(1){margin-right:4px;}&:only-of-type{margin-right:0;}&.close-icon{margin:0;}}.header-text{display:flex;font-size:12px;line-height:1;font-weight:normal;cursor:pointer;.header-icon{display:flex;align-items:center;margin-right:12px;}}.input-section{display:flex;justify-content:space-between;padding-right:1px;margin:8px 0;.hex-input{input{padding-left:11px;}}}.divider{padding:0 8px;width:100%;height:1px;background-color:rgba(204,204,204,0.2);}.color-picker-header{display:flex;justify-content:space-between;align-items:center;padding:12px 8px 12px 12px;height:40px;cursor:move;border-bottom:solid 1px ",";.header-btn{display:flex;.icon{cursor:pointer;}svg{path{fill:","}}}}.color-picker-body{margin-top:12px;padding:0 15px;.tab-line{color:",";margin-bottom:8px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;}}.gradientPanel{position:absolute;display:flex;flex-direction:column;top:0;right:100%;width:120px;height:100%;background-color:rgb(254,254,254);z-index:-1;transform:translateX(100%);transition:transform 0.3s 0.1s,box-shadow 0.2s;&.open{box-shadow:0 -2px 20px 0 rgba(39,54,78,0.11);transform:translateX(0);z-index:0;transition:transform 0.3s,box-shadow 0.2s 0.1s,z-index 0.6s;}.gradient-header{display:flex;justify-content:space-between;align-items:center;padding:0 10px;.CoreSelect{border:none !important;padding:10px 0 0 !important;height:auto;background-color:"," !important;&.is-open:not(.unstyled){background:none;box-shadow:none;}button{border:none;padding:0;height:auto;background-color:",";span{color:",";}&:focus{outline:0;}}.caret{margin:0 6px;color:",";}}.close-gradient{margin-top:10px;cursor:pointer;path{fill:",";}&:hover path{fill:",";}}}.gradient-body{flex:1;padding:20px 0;text-align:center;}}.panel-color-list{padding-top:8px;padding-bottom:7px;header{display:flex;justify-content:space-between;align-items:center;color:",";margin-top:5px;margin-bottom:4px;label{margin-left:-10px;}div{margin-right:-7px;}&.is-alone{margin-bottom:8px;}.btns-wp{display:flex;}}.icon{width:24px !important;height:24px !important;margin-right:6px;&.is-rotate{transform:rotate(180deg);}}.CoreSelect{border:none !important;padding:10px 0 0 !important;height:auto;background-color:"," !important;&.is-open:not(.unstyled){background:none;box-shadow:none;}button{border:none;padding:0;height:auto;background-color:",";span{color:",";}&:focus{outline:0;}}.caret{margin:0 6px;color:",';}}.current-palette{display:flex;flex-wrap:wrap;margin:0;padding:0;margin-bottom:8px;max-height:115px;overflow:hidden auto;width:239px;margin-left:-2px;padding-left:2px;&::-webkit-scrollbar{width:4px;}&::-webkit-scrollbar-thumb{background-color:#e6e6e6;border-radius:2px;}&::-webkit-scrollbar-track{background-color:transparent;}}.block{display:flex;align-items:center;font-size:12px;color:#999999;margin-top:9px;.placeholder-icon{width:18px;height:18px;margin-right:8px;border:dashed 1px #cccccc;}}.current-palette-color-imagback{background-image:linear-gradient(45deg,#ccc 26%,transparent 26%),linear-gradient(-45deg,#ccc 26%,transparent 26%),linear-gradient(45deg,transparent 73%,#ccc 73%),linear-gradient(-45deg,transparent 73%,#ccc 73%);background-size:6px 6px;border-radius:2px;background-position:0 0,0 3px,3px -3px,-3px 0;background-clip:padding-box;overflow:hidden;}.current-palette-color-li{position:relative;height:100%;.color-box{height:100%;width:100%;}&.is-active{&:after{content:"";position:absolute;left:-2px;top:-2px;width:20px;height:20px;border:1px solid #298df8;border-radius:2px;box-sizing:border-box;}}&.transparent{position:relative;overflow:hidden;background-image:linear-gradient(45deg,#ccc 26%,transparent 26%),linear-gradient(-45deg,#ccc 26%,transparent 26%),linear-gradient(45deg,transparent 73%,#ccc 73%),linear-gradient(-45deg,transparent 73%,#ccc 73%);background-size:6px 6px;background-position:0 0,0 3px,3px -3px,-3px 0;}&.gradient-bg{background-image:linear-gradient(45deg,rgb(204,204,204) 25%,transparent 0px),linear-gradient(-45deg,rgb(204,204,204) 25%,transparent 0px),linear-gradient(45deg,transparent 75%,rgb(204,204,204) 0px),linear-gradient(-45deg,transparent 75%,rgb(204,204,204) 0px);background-size:10px 10px;background-position:0px 0px,0px 5px,5px -5px,-5px 0px;background-clip:padding-box;svg{height:18px;width:18px;position:absolute;top:-1px;left:-1px;border-radius:2px;}}}.current-palette-color{list-style:none;width:18px;height:18px;cursor:pointer;margin-top:8px;margin-bottom:2px;position:relative;li{border-radius:2px;border:1px solid ',";}&:not(:nth-child(9n)){margin-right:8px;}}}"],Re=>Re.theme.tc,Re=>Re.theme.bgColor,Re=>Re.theme.header_border,Re=>Re.theme.icon_bg_hover,Re=>Re.theme.icon_bg_hover,Re=>Re.theme.header_border,Re=>Re.theme.icon.close.color,Re=>Re.theme.color_text_L1,Re=>Re.theme.bgColor,Re=>Re.theme.bgColor,Re=>Re.theme.tc,Re=>Re.theme.icon.select,Re=>Re.theme.darkTc,Re=>Re.theme.icon.close.hover,Re=>Re.theme.color_text_L1,Re=>Re.theme.bgColor,Re=>Re.theme.bgColor,Re=>Re.theme.tc,Re=>Re.theme.icon.select,Re=>Re.theme.colorBlock.border),qc=[{label:"normal",value:A.Nx.Normal},{},{label:"darken",value:A.Nx.Darken},{label:"multiply",value:A.Nx.Multiply},{label:"colorBurn",value:A.Nx.ColorBurn},{},{label:"lighten",value:A.Nx.Lighten},{label:"screen",value:A.Nx.Screen},{label:"colorDodge",value:A.Nx.ColorDodge},{},{label:"overlay",value:A.Nx.Overlay},{label:"softLight",value:A.Nx.SoftLight},{label:"hardLight",value:A.Nx.HardLight},{},{label:"difference",value:A.Nx.Difference},{label:"exclusion",value:A.Nx.Exclusion},{},{label:"hue",value:A.Nx.Hue},{label:"saturation",value:A.Nx.Saturation},{label:"color",value:A.Nx.Color},{label:"luminosity",value:A.Nx.Luminosity}],ed=Re=>Re.map(je=>je.label?{...je,label:Fo("settingPanel.blendModeList."+je.label)}:{}),Pd=g.Ay.div.withConfig({displayName:"styles__StyledPanelSelector",componentId:"sc-12z6co1-0"})(["width:54px;height:26px;border-radius:4px;display:flex;background:",";overflow:hidden;div{width:27px;height:22px;display:flex;justify-content:center;align-items:center;cursor:pointer;overflow:hidden;margin:2px;border-radius:4px;}.selected{background:",";filter:drop-shadow(0px 0px 4px rgba(0,0,0,0.2));}"],Re=>Re.theme.panel_picker.bg,Re=>Re.theme.bgColor),oh=Re=>{let{onChangeTab:je,currentTab:et,theme:St}=Re;const vt=no=>{je(no)};return(0,_t.jsxs)(Pd,{children:[(0,_t.jsx)("div",{style:{marginRight:0},className:et===0?"selected":"",onClick:()=>vt(0),children:St==="light"?zo:en}),(0,_t.jsx)("div",{className:et===1?"selected":"",onClick:()=>vt(1),children:St==="light"?mn:jn})]})},Ep=g.Ay.div.withConfig({displayName:"styles__StyledColorPanel",componentId:"sc-b21sek-0"})(["width:226px;font-size:0;line-height:0;.colors-container{width:226px;height:122px;font-size:0;line-height:0;margin-bottom:8px;}.row{display:flex;align-items:center;padding:0 2px;.h-a-bands{display:flex;flex-direction:row;align-items:center;flex:1;}.outside-color-picker-btn{width:28px;height:28px;margin-left:-5px;margin-right:8px;cursor:pointer;border-radius:4px;display:flex;justify-content:center;align-items:center;background:transparent;color:",";&:hover{background:",";}}.a-band{position:relative;height:10px;border:0.5px solid rgba(0,0,0,0.12);border-radius:8px;cursor:pointer;background-clip:padding-box;.rail{position:absolute;top:1px;bottom:1px;left:calc(5px / 2 + 1px);right:calc(5px / 2 + 1px);}.slider{position:absolute;top:-3.5px;width:14px;height:14px;margin-left:calc(-14px / 2);background:transparent;border:solid 2px #ffffff;box-shadow:0 1px 4px 0 rgba(0,0,0,0.2);border-radius:50%;z-index:2;pointer-events:none;}}.a-band{width:195px;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:6px 6px;background-position:0 0,0 3px,3px -3px,-3px 0;}}"],Re=>Re.theme.color_text_L1,Re=>Re.theme.icon_bg_hover),Eh=g.Ay.div.withConfig({displayName:"styles__StyledColorItem",componentId:"sc-b21sek-1"})(["width:18px;height:18px;border-radius:2px;display:inline-block;background-color:",';margin-right:8px;margin-bottom:8px;border:1px solid rgba(0,0,0,0.08);cursor:pointer;position:relative;&:nth-child(9n+9){margin-right:0;}&.is-active{&:after{content:"";position:absolute;left:-2px;top:-2px;width:20px;height:20px;border:1px solid #298df8;border-radius:2px;box-sizing:border-box;}}'],Re=>Re.color),p0=["#000000","#333333","#4F4F4F","#6c6c6c","#9a9a9a","#bebebe","#cecece","#efefef","#ffffff","#de868f","#fcca00","#f4ce98","#fefa83","#ccf783","#B4FDFF","#93D2F3","#7F83F7","#B886F8","#BD3124","#E99D42","#FFBF6B","#FFF81D","#A2EF4D","#75F9FD","#4095E5","#0F40F5","#7728F5","#951D1D","#A16222","#CBA43F","#BFBF3D","#81B337","#54BCBD","#347CAF","#0014B7","#591BB7","#641013","#744E20","#9B7D31","#817F26","#567722","#377F7F","#215476","#000A7B","#3B0E7B"],kh=Re=>{let{onChangeSelect:je,colorPickerEnabled:et,color:St,isEyedropperOpen:vt,onChange:no,toggleColorPicker:$o,isFocus:gn}=Re;const[En,cs]=(0,m.useState)(-1),[Zn,fs,ks]=St,{s:Zs,v:ni,h:wi}=A.Q1.rgb2hsv({r:Zn,g:fs,b:ks}),xi=(0,m.useRef)(null),Fi=la=>{const[qa,rr,pr]=St;return{left:la*100+"%",backgroundColor:"rgba("+qa+", "+rr+", "+pr+", "+la+")"}},[,,,$i]=St,ga=Fi($i),Ia=(la,qa)=>{cs(la),je(qa+"&"+$i,"\u8272\u677F",2)},_a=la=>{const qa=xi.current.getBoundingClientRect(),rr=Math.min(1,Math.max(0,la-qa.left)/qa.width);return{a:Math.round(rr*100)/100}},za=la=>{rn(la),la.preventDefault();const{a:qa}=_a(la.clientX);St[3]=qa;const rr=yr=>{if(yr.stopPropagation(),yr.stopImmediatePropagation(),yr.preventDefault(),!xi.current)return;const{a:Lr}=_a(yr.clientX);St[3]=Lr,no({color:St},!0)},pr=yr=>{if(!xi.current)return;const{a:Lr}=_a(yr.clientX);St[3]=Lr,no({color:St},!1),document.removeEventListener("mousemove",rr),document.removeEventListener("mouseup",pr)};document.addEventListener("mousemove",rr),document.addEventListener("mouseup",pr)};return(0,_t.jsxs)(Ep,{children:[(0,_t.jsx)("div",{className:"colors-container",children:p0.map((la,qa)=>(0,_t.jsx)(Eh,{className:En===qa&&gn?"is-active":"",color:la,onClick:()=>Ia(qa,la)},la))}),(0,_t.jsx)("div",{className:"row",children:(0,_t.jsxs)("div",{className:"h-a-bands",children:[(0,_t.jsx)(Be,{content:"\u53D6\u8272\u5668",hotKey:"I",direction:"down",hangingTime:"1000",children:(0,_t.jsx)("div",{className:b()("outside-color-picker-btn",{"color-picker-enabled":et}),onClick:$o,children:vt?(0,_t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",children:[(0,_t.jsx)("rect",{width:"24",height:"24",rx:"4",fill:"#0077FF","fill-opacity":"0.15"}),(0,_t.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.9142 5.24234C19.6598 5.98788 19.6112 7.25801 18.8289 8.1483L18.7122 8.2728L16.2878 10.6972C16.2196 10.7654 16.1486 10.829 16.0753 10.8878L17.8543 12.6668C18.4401 13.2526 18.4401 14.2023 17.8543 14.7881C17.2685 15.3739 16.3188 15.3739 15.733 14.7881L14.4957 13.5509C14.4956 13.551 14.4955 13.5511 14.4953 13.5513L8.55563 19.491C7.94111 20.1055 7.17438 20.4902 6.40809 20.5901C5.64078 20.6902 4.83142 20.5044 4.24228 19.9152C3.10291 18.7759 3.46287 16.9403 4.50402 15.7739L4.51111 15.7659L4.65905 15.6094L10.6062 9.6622C10.6064 9.66206 10.6065 9.66192 10.6066 9.66179L9.36903 8.42417C8.78324 7.83838 8.78324 6.88863 9.36903 6.30285C9.95481 5.71706 10.9046 5.71706 11.4903 6.30285L13.2687 8.0812C13.2926 8.0515 13.3172 8.02217 13.3426 7.99324L13.4594 7.86874L15.8838 5.44437C16.7764 4.55174 18.1332 4.46129 18.9142 5.24234ZM11.6673 10.7224C11.6672 10.7226 11.667 10.7227 11.6669 10.7229L5.7347 16.6551L5.61639 16.7803C4.87011 17.6221 4.95226 18.5039 5.30294 18.8546C5.49484 19.0465 5.80414 19.1562 6.21408 19.1027C6.62503 19.0491 7.09413 18.8312 7.49497 18.4303L13.4347 12.4906C13.4348 12.4905 13.4349 12.4903 13.4351 12.4902L11.6673 10.7224Z",fill:"#0077FF"})]}):(0,_t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_t.jsx)("path",{d:"M14.8284 10.5858C15.2189 10.9763 15.2189 11.6095 14.8284 12L8.18155 18.6468C7.16619 19.6622 5.70991 19.8521 4.92886 19.0711C4.18331 18.3255 4.3225 16.9647 5.21979 15.9595L5.35312 15.8184L11.9999 9.17158C12.3904 8.78105 13.0236 8.78105 13.4141 9.17158L14.8284 10.5858Z",stroke:"currentColor",strokeWidth:"1.5"}),(0,_t.jsx)("path",{d:"M19.071 4.92894C19.8165 5.67448 19.768 6.94461 18.9857 7.83489L18.8689 7.9594L16.4446 10.3838C15.5519 11.2764 14.1951 11.3668 13.4141 10.5858C12.6686 9.84025 12.7171 8.57012 13.4994 7.67984L13.6161 7.55533L16.0405 5.13097C16.9331 4.23834 18.2899 4.14789 19.071 4.92894Z",fill:"currentColor",fillRule:"nonzero"}),(0,_t.jsx)("rect",{x:"10.5857",y:"4.92893",width:"12",height:"3",rx:"1.5",transform:"rotate(45 10.5857 4.92893)",fill:"currentColor",fillRule:"nonzero"})]})})}),(0,_t.jsxs)("div",{className:"a-band",onMouseDown:za,children:[(0,_t.jsx)("div",{style:{width:"100%",height:"100%",borderRadius:8,background:"linear-gradient(to right, transparent 0%, "+A.Q1.rgb2rgbaStr({...A.Q1.hsv2rgb({h:wi,s:Zs,v:ni}),a:1})+" 100%)"}}),(0,_t.jsx)("div",{className:"rail",ref:xi,children:(0,_t.jsx)("span",{className:"slider",style:ga})})]})]})})]})};class Dc extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"state",{index:-1,isShowColorList:!0,showDeleteMenu:!1}),(0,o.A)(this,"handleChangeSelect",je=>{this.props.onChangeSelect(je),this.setState({index:-1})}),(0,o.A)(this,"getOpacityPerc",je=>{if(typeof je!="string")return!1;const et=je.split(","),St=et.length;return St>3&&+et[St-1].replace(")","")!=1}),(0,o.A)(this,"handleSelect",(je,et,St)=>{const{currentSelect:vt}=this.props;this.setState({index:St}),je.button===2&&vt==="favorite"?this.setState({showDeleteMenu:{left:je.clientX,top:je.clientY-18}}):(this.props.handleSelect(et,"\u6700\u8FD1\u4F7F\u7528",0),this.setState({showDeleteMenu:!1}))}),(0,o.A)(this,"toggleShowColorList",()=>{const{isShowColorList:je}=this.state;this.setState({isShowColorList:!je}),this.props.onToggleExpand()}),(0,o.A)(this,"getSolidColor",(je,et)=>{const{index:St}=this.state,[vt,no=1]=je.split("&"),$o=b()("current-palette-color-li gradient-bg",{transparent:je==="transparent"},{"is-active":St===et&&this.props.isFocus});return(0,_t.jsx)("li",{className:$o,onMouseDown:gn=>this.handleSelect(gn,je,et),children:(0,_t.jsx)("div",{className:"color-box",style:{backgroundColor:vt,opacity:Number(no)}})})}),(0,o.A)(this,"getGradientColor",(je,et)=>{const{index:St}=this.state,vt=b()("current-palette-color-li gradient-bg",{"is-active":St===et&&this.props.isFocus});return(0,_t.jsx)("li",{className:vt,onMouseDown:no=>this.handleSelect(no,je,et),children:(0,_t.jsx)(Dn,{color:je,attr:"dropDown",index:et,alpha:je.o*100})})}),(0,o.A)(this,"handleDelete",()=>{const{onDeleteFavorite:je}=this.props,{index:et}=this.state;je(et),this.setState({showDeleteMenu:!1})}),(0,o.A)(this,"handleClose",()=>{this.setState({showDeleteMenu:!1})})}render(){const{colorPanelList:je,currentSelect:et}=this.props,{isShowColorList:St}=this.state,{colors:vt}=je.find(no=>no.key==="history")||{};return(0,_t.jsxs)("div",{className:"panel-color-list",style:{paddingBottom:0},children:[(0,_t.jsx)("header",{className:b()({"is-alone":!St}),children:(0,_t.jsx)("span",{children:Fo("popup.colorPanel.history")})}),St&&(0,_t.jsx)("ul",{className:"current-palette",children:vt&&vt.length>0?vt.map((no,$o)=>(0,_t.jsx)("div",{className:"current-palette-color "+(this.getOpacityPerc(no)?"current-palette-color-imagback":""),children:typeof no=="string"?this.getSolidColor(no,$o):this.getGradientColor(no,$o)},$o)):(0,_t.jsxs)("div",{className:"block",children:[(0,_t.jsx)("div",{className:"placeholder-icon"}),et==="favorite"&&(0,_t.jsx)("span",{children:Fo("components.addToCollection")})]})})]})}}const Ge=()=>null;class jt extends m.PureComponent{constructor(je){var et,St;super(je),(0,o.A)(this,"outsideListener",vt=>(this.handleHexChange({color:vt}),[])),(0,o.A)(this,"handleToggleExpand",()=>{this.setState({isClickExpand:!this.state.isClickExpand},()=>{this.props.applyDidMountSideEffect(this.$container.current)})}),(0,o.A)(this,"handleColorChangeFromExternal",(vt,no,$o)=>{const{color:gn,isSolidColorOnly:En,colorType:cs,activeIndex:Zn,onChangeColor:fs,onChangeGradientMode:ks}=this.props;if(this.setState({focusingTab:$o}),typeof vt=="string"){const[Zs,ni=this.currentColor[3]]=vt.split("&"),wi=Number(ni),{r:xi,g:Fi,b:$i}=A.Q1.hex2rgb(Zs),ga=Zs==="transparent"?0:wi>1?wi/100:wi;let Ia;if((0,pn.NT)(cs)){const _a=[...gn.colors];_a[Zn]=A.Q1.rgb255a(xi,Fi,$i,ga),Ia={...gn,colors:_a}}else Ia={type:A.LA.Solid,v:!0,blend:gn.blend,color:A.Q1.rgb255a(xi,Fi,$i,ga)};fs(Ia,!1,no)}else{let Zs=vt;cs!==vt.type&&(En?Zs={type:A.LA.Solid,v:vt.v,blend:vt.blend,color:vt.colors[0]}:ks(vt.type)),fs(Zs,!1,no)}}),(0,o.A)(this,"handleRgbChange",vt=>{let{r:no,g:$o,b:gn,a:En}=vt;this.hsvChange({color:[no,$o,gn,En!=null?En:this.currentColor[3]]})}),(0,o.A)(this,"handleHexChange",(vt,no)=>{let{color:$o}=vt;const{color:gn,onChangeColor:En,colorType:cs,activeIndex:Zn}=this.props;let fs;if(cs===A.LA.Solid)fs={...gn,color:$o};else{const ks=[...gn.colors];ks[Zn]=$o,fs={...gn,colors:ks}}En(fs,no,this.state.currentTab===1?Fo("popup.colorPanel.colorChart"):Fo("popup.colorPanel.colorSpace"))}),(0,o.A)(this,"hsvChange",(vt,no)=>{let{color:$o}=vt;const{color:gn,activeIndex:En,colorType:cs,onChangeColor:Zn}=this.props,[fs,ks,Zs,ni]=$o,wi=ni>1?ni/100:ni,xi=A.Q1.rgb255a(fs,ks,Zs,wi);if(cs===A.LA.Solid){const Fi={...gn,color:xi};Zn(Fi,no,this.state.currentTab===1?Fo("popup.colorPanel.colorChart"):Fo("popup.colorPanel.colorSpace"))}else if((0,pn.NT)(cs)){const Fi=[...gn.colors];Fi[En]=xi;const $i={...gn,colors:Fi};Zn($i,no,this.state.currentTab===1?Fo("popup.colorPanel.colorChart"):Fo("popup.colorPanel.colorSpace"))}}),(0,o.A)(this,"isShowGradientBarChange",vt=>{const{onChangeGradientMode:no}=this.props,{cachedMode:$o}=this.state;this.setState({isShowGradientBar:vt}),no(vt?$o||A.LA.LinearGradient:A.LA.Solid)}),(0,o.A)(this,"gradientModeChange",vt=>{const{onChangeGradientMode:no,onChangeActiveIndex:$o}=this.props,gn=Number(vt.currentTarget.dataset.value);this.setState({cachedMode:gn}),$o(0),no(gn)}),(0,o.A)(this,"handleAlphaChange",(vt,no,$o,gn)=>{const En=[...this.currentColor];En[3]=vt*.01,this.hsvChange({color:En},gn)}),(0,o.A)(this,"handleBlendModeChange",vt=>{this.props.onChangeColor({...this.props.color,blend:Number(vt)},!1,"blendMode")}),(0,o.A)(this,"handleAddToFavorite",()=>{const{colorType:vt,onAddToFavorite:no,color:$o}=this.props;if(vt===A.LA.Solid){const[gn,En,cs,Zn]=this.currentColor;let fs=A.Q1.rgb2hex({r:gn,g:En,b:cs});fs=fs.length>7?fs.slice(0,7):fs,no(fs+"&"+Zn)}else(vt===A.LA.LinearGradient||vt===A.LA.RadialGradient)&&no($o)}),(0,o.A)(this,"handleChangeTab",vt=>{this.setState({currentTab:vt}),this.props.onChangeTab&&this.props.onChangeTab(vt)}),this.state={isClickExpand:!1,isShowGradientBar:je.colorType===A.LA.LinearGradient||je.colorType===A.LA.RadialGradient||je.colorType===A.LA.AngularGradient,cachedMode:null,currentTab:(et=je.defaultTab)!=null?et:1,focusingTab:(St=je.defaultTab)!=null?St:1},this.$container=(0,m.createRef)()}componentDidMount(){setTimeout(()=>{this.props.applyDidMountSideEffect(this.$container.current)},10),this.props.setInteraction({colorPickerListener:this.outsideListener})}componentDidUpdate(){const{color:je,activeIndex:et,colorType:St,onChangeActiveIndex:vt}=this.props;if((0,pn.NT)(St)){const no=je.colors.length,$o=et===no?no-1:et;et===no&&vt($o)}}componentWillUnmount(){if(this.props.colorType!==A.LA.Image){const je=[...this.currentColor],[et,St,vt,no]=je;this.props.applyWillUnmountSideEffect(A.Q1.rgb2hex({r:et,g:St,b:vt})+"&"+no)}this.props.setInteraction({colorPickerListener:null})}get currentColor(){const{color:je,activeIndex:et,colorType:St}=this.props;if(St===A.LA.Image)return je;let vt=St===A.LA.Solid?je.color:je.colors[et]||je.colors.at(-1);const[no,$o,gn,En]=vt;return vt=[Math.round(no*255),Math.round($o*255),Math.round(gn*255),En],vt}render(){const{themeColor:je,color:et,onClose:St,colorPanelList:vt,colorType:no,onDragStart:$o,onChangeSelect:gn,currentSelect:En,onChangeColor:cs,onChangeActiveIndex:Zn,activeIndex:fs,colorInputOption:ks,onChangeInputType:Zs,onDeleteFavorite:ni,colorPickerEnabled:wi,widgetProps:xi,isEyedropperOpen:Fi,isDefaultColor:$i,onResetColor:ga,isSolidColorOnly:Ia,isHideBlendMode:_a,createAssetFromFiles:za,dropdownColorFilter:la,onMouseDownCallback:qa,onMouseUpCallback:rr}=this.props,{isShowGradientBar:pr}=this.state,yr=p()(this.currentColor),Lr=la?vt.filter(la):vt;return(0,_t.jsxs)(Lc,{className:"--mb--color-picker",ref:this.$container,onMouseDown:rn,onClick:rn,children:[(0,_t.jsxs)("header",{className:"color-picker-header",onMouseDown:$o,children:[(0,_t.jsxs)("div",{className:"header-text",children:[(0,_t.jsx)(Be,{content:Fo("components.solidFill"),direction:"down",children:(0,_t.jsx)("div",{className:"header-icon","data-value":A.LA.Solid,onClick:this.gradientModeChange,children:Sa(no===A.LA.Solid,je)})}),!Ia&&(0,_t.jsxs)(_t.Fragment,{children:[(0,_t.jsx)(Be,{content:Fo("settingPanel.linearGradient"),direction:"down",children:(0,_t.jsx)("div",{className:"header-icon","data-value":A.LA.LinearGradient,onClick:this.gradientModeChange,children:La(no===A.LA.LinearGradient,je)})}),(0,_t.jsx)(Be,{content:Fo("settingPanel.radialGradient"),direction:"down",children:(0,_t.jsx)("div",{className:"header-icon","data-value":A.LA.RadialGradient,onClick:this.gradientModeChange,children:ya(no===A.LA.RadialGradient,je)})}),za&&(0,_t.jsx)(Be,{content:Fo("settingPanel.imageFill"),direction:"down",children:(0,_t.jsx)("div",{className:"header-icon","data-value":A.LA.Image,onClick:this.gradientModeChange,children:Ja(no===A.LA.Image)})})]})]}),(0,_t.jsxs)("div",{className:"header-btn",children:[!_a&&(0,_t.jsxs)("div",{className:"icon",children:[et.blend===A.Nx.Normal?No:ct,(0,_t.jsx)(to,{optionList:ed(qc),value:et.blend,isShowButton:!1,width:160,onChange:this.handleBlendModeChange})]}),ga&&!$i&&(0,_t.jsx)(Be,{content:Fo("common.resetColor"),direction:"down",children:(0,_t.jsx)("div",{className:"icon",onClick:ga,children:Mt})}),St&&(0,_t.jsx)("div",{className:"icon close-icon",onClick:St,children:ta})]})]}),(0,_t.jsxs)("div",{className:"color-picker-body",children:[no===A.LA.Image&&(0,_t.jsx)(th,{color:et,createAssetFromFiles:za,onChange:cs}),(0,pn.NT)(no)&&(0,_t.jsx)($p,{color:et,widgetProps:xi,activeIndex:fs,onActivePointChange:Zn,onChangeColor:cs,onMouseDownCallback:qa,onMouseUpCallback:rr}),no!==A.LA.Image&&(0,_t.jsxs)(_t.Fragment,{children:[(0,_t.jsxs)("div",{className:"tab-line",children:[(0,_t.jsx)("span",{children:this.state.currentTab===0?Fo("popup.colorPanel.colorSpace"):Fo("popup.colorPanel.colorChart")}),(0,_t.jsx)(oh,{theme:this.props.theme,currentTab:this.state.currentTab,onChangeTab:this.handleChangeTab})]}),this.state.currentTab===0&&(0,_t.jsx)(Os,{color:yr,onChange:this.hsvChange,isShowGradientBar:pr,colorPickerEnabled:wi,isEyedropperOpen:Fi,toggleColorPicker:this.props.toggleColorPicker,onChangeIsShowGradientBar:this.isShowGradientBarChange,onMouseDownCallback:qa,onMouseUpCallback:rr}),this.state.currentTab===1&&(0,_t.jsx)(kh,{color:yr,onChange:this.hsvChange,colorPickerEnabled:wi,isEyedropperOpen:Fi,toggleColorPicker:this.props.toggleColorPicker,onChangeSelect:this.handleColorChangeFromExternal,isFocus:this.state.focusingTab===2}),(0,_t.jsx)("div",{className:"input-section",children:(0,_t.jsx)(Tp,{color:yr,colorInputOption:ks,onHexChange:this.handleHexChange,onRgbaChange:this.handleRgbChange,onChangeInputType:Zs,onAlphaChange:this.handleAlphaChange})})]}),(0,_t.jsx)("div",{className:"divider"}),no!==A.LA.Image&&(0,_t.jsxs)(_t.Fragment,{children:[(0,_t.jsx)(Dc,{colorPanelList:vt,currentSelect:En,onChangeSelect:gn,onToggleExpand:this.handleToggleExpand,onAddToFavorite:this.handleAddToFavorite,onDeleteFavorite:ni,handleSelect:this.handleColorChangeFromExternal,isFocus:this.state.focusingTab===0}),(0,_t.jsx)(Xo,{colorPanelList:Lr,currentSelect:En,onChangeSelect:gn,onToggleExpand:this.handleToggleExpand,onAddToFavorite:this.handleAddToFavorite,onDeleteFavorite:ni,handleSelect:this.handleColorChangeFromExternal,isFocus:this.state.focusingTab===1,isShowColorList:this.props.isShowColorList,onChangeShowColorList:this.props.onChangeShowColorList})]})]})]})}}(0,o.A)(jt,"defaultProps",{applyDidMountSideEffect:Ge,applyWillUnmountSideEffect:Ge,isShowGradient:!0});const Dt=jt,Zt=g.Ay.div.withConfig({displayName:"style__ControlBarDiv",componentId:"sc-dby9rv-0"})(["position:absolute;left:0px;top:0px;width:100%;height:100%;.backSvg{position:absolute;left:0;top:0;width:100%;height:100%;filter:drop-shadow(0 0 2px rgba(0,0,0,0.4));}.hover-add{&:hover{cursor:crosshair;}}"]),fo=4.5;class Eo extends m.PureComponent{componentDidMount(){this.props.setInteraction({disablePointerEvents:!0})}componentWillUnmount(){this.props.setInteraction({disablePointerEvents:!1})}render(){const{selectedItem:je}=this.props,{x:et,y:St}=je;return(0,_t.jsx)("div",{style:{position:"absolute",top:et,left:St},children:(0,_t.jsx)(Bo,{...this.props})})}}(0,o.A)(Eo,"defaultProps",{screenOffset:A.ZY.zero,setInetraction:()=>null});class Bo extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"$circle1",(0,m.createRef)()),(0,o.A)(this,"$circle2",(0,m.createRef)()),(0,o.A)(this,"state",{hoverColor:null,hoverStop:null,alignmentLines:[]}),(0,o.A)(this,"handleOperatePoint",je=>{const{color:et,boundingBox:St,screenOffset:vt,onChangePosition:no,contextTransform:$o=new A.hP,onMouseDownCallback:gn,onMouseUpCallback:En}=this.props,{transform:cs,rect:{w:Zn,h:fs}}=St,{complex:ks,x:Zs,y:ni,type:wi}=et,xi=cs.clone().prepend($o),Fi=xi.clone().append(A.dL.parse({x:Zs,y:ni,complex:ks}).scale(Zn,fs)),{tl:$i,tr:ga,bl:Ia,br:_a}=A.a$.fromRect(A.oi.axisAligned(A.oi.prepend($o,St))),za=[[$i,ga],[Ia,_a],[$i,Ia],[ga,_a],[A.ZY.average($i,ga),A.ZY.average(Ia,_a)],[A.ZY.average($i,Ia),A.ZY.average(ga,_a)]],la=A.ZY.xy(je.clientX,je.clientY),{number:qa}=je.target.dataset;gn();const rr=yr=>{let Lr=A.ZY.subtract(A.ZY.xy(yr.clientX,yr.clientY),la);const Tr={x:yr.offsetX,y:yr.offsetY},Nl=[];if(za.forEach(kl=>{const cc=A.oi.projectOnePoint2Line(Tr,kl);A.ZY.distance(cc,Tr)<=8&&Nl.push(kl)}),this.setState({alignmentLines:Nl}),Nl.length===1){const[kl,cc]=Nl[0];kl.x===cc.x&&(Lr=A.ZY.subtract(A.ZY.xy(kl.x+vt.x,yr.clientY),la)),kl.y===cc.y&&(Lr=A.ZY.subtract(A.ZY.xy(yr.clientX,kl.y+vt.y),la))}else if(Nl.length>1){const kl=A.ZY.getIntersect(Nl[0],Nl[1]);Lr=A.ZY.subtract(A.ZY.add(kl,vt),la)}const Il=A.ZY.zero,rl=A.ZY.horizontal,Ol=A.ZY.vertical;let Ur=A.ZY.zero,bc=A.ZY.zero,Ll=A.ZY.zero;if(wi===A.LA.RadialGradient)switch(parseInt(qa)){case 1:{const kl=Fi.apply(Il),cc=Fi.apply(rl),Nd=Fi.apply(Ol);Ur=A.ZY.add(kl,Lr),bc=A.ZY.add(cc,Lr),Ll=A.ZY.add(Nd,Lr);break}case 2:{Ur=Fi.apply(Il);const kl=Fi.apply(rl),cc={x:kl.x,y:kl.y};bc=A.ZY.add(kl,Lr),Ll=Fi.apply(Ol);const Nd=A.ZY.distance(bc,Ur)/A.ZY.distance(cc,Ur),bd=cc.x-Ur.x,B0=cc.y-Ur.y,kp=bc.x-Ur.x,_h=bc.y-Ur.y,Dl=(_h*B0+bd*kp)/(Nd*(Math.pow(bd,2)+Math.pow(B0,2))),_p=(_h*bd-B0*kp)/(Nd*(Math.pow(bd,2)+Math.pow(B0,2)));Ll=new A.hP(Nd*Dl,Nd*_p,-Nd*_p,Nd*Dl,0,0).apply({x:Ll.x-Ur.x,y:Ll.y-Ur.y}),Ll=A.ZY.add(Ll,Ur);break}case 3:{const kl=Fi.apply(Il),cc=Fi.apply(rl),Nd=Fi.apply(Ol);Ur=kl,bc=cc;const bd={x:Nd.x-kl.x,y:Nd.y-kl.y},B0=(bd.x*Lr.x+bd.y*Lr.y)/(Math.pow(bd.x,2)+Math.pow(bd.y,2)),kp={x:bd.x*B0,y:bd.y*B0};Ll=A.ZY.add(Nd,kp);break}}else if(wi===A.LA.LinearGradient){if(parseInt(qa)===2){const kl=Fi.apply(rl);Ur=Fi.apply(Il),bc=A.ZY.add(kl,Lr)}else{const kl=Fi.apply(Il);Ur=A.ZY.add(kl,Lr),bc=Fi.apply(rl)}Ll={x:bc.y-Ur.y+Ur.x,y:Ur.x-bc.x+Ur.y}}const tp=xi.clone().inverted().append(new A.hP(bc.x-Ur.x,bc.y-Ur.y,Ll.x-Ur.x,Ll.y-Ur.y,Ur.x,Ur.y)).scale(1/Zn,1/fs);no(tp,!0)},pr=()=>{this.setState({alignmentLines:[]}),document.removeEventListener("mousemove",rr),document.removeEventListener("mouseup",pr),En()};document.addEventListener("mousemove",rr),document.addEventListener("mouseup",pr)}),(0,o.A)(this,"addPoint",je=>{const{color:et,onChangeGradient:St,onChangeActiveIndex:vt,onMouseDownCallback:no,onMouseUpCallback:$o}=this.props,{colors:gn,stops:En}=et;if(En.length>=128)return;const{hoverColor:cs,hoverStop:Zn}=this.state;if(!cs||!Zn)return;const fs=(0,pn.fC)(je.pageX,je.pageY,this.$circle1,this.$circle2)/100,{nextColors:ks,nextStops:Zs,index:ni}=(0,pn.rk)(En,gn,fs),wi={...et,colors:ks,stops:Zs};St(wi),vt(ni);let xi,Fi=!1;no();const $i=Ia=>{const{color:_a,activeIndex:za}=this.props,{stops:la}=_a;Fi=!0;const qa=Ia.pageX,rr=Ia.pageY,pr=(0,pn.fC)(qa,rr,this.$circle1,this.$circle2),yr=[...la];yr[za]=pr/100,xi={..._a,stops:yr},St(xi,!0)},ga=()=>{Fi&&St(xi,!1),document.removeEventListener("mousemove",$i),document.removeEventListener("mouseup",ga),$o()};document.addEventListener("mousemove",$i),document.addEventListener("mouseup",ga)}),(0,o.A)(this,"addPointHover",je=>{const{color:et}=this.props,{colors:St,stops:vt}=et,no=(0,pn.fC)(je.pageX,je.pageY,this.$circle1,this.$circle2)/100,{nextColors:$o,nextStops:gn,index:En}=(0,pn.rk)(vt,St,no);this.setState({hoverColor:$o[En],hoverStop:gn[En]})}),(0,o.A)(this,"addPointLeave",()=>{this.setState({hoverColor:null,hoverStop:null})}),(0,o.A)(this,"handleMouseDown",je=>{rn(je);const{color:et,onChangeGradient:St,onChangeActiveIndex:vt,onMouseDownCallback:no,onMouseUpCallback:$o}=this.props,{stops:gn}=et,{number:En}=je.target.dataset;vt(+En);let cs,Zn=!1;no();const fs=Zs=>{Zn=!0;const ni=Zs.pageX,wi=Zs.pageY,xi=(0,pn.fC)(ni,wi,this.$circle1,this.$circle2),Fi=[...gn];Fi[En]=xi/100,cs={...et,stops:Fi},St(cs,!0)},ks=()=>{Zn&&St(cs,!1),document.removeEventListener("mousemove",fs),document.removeEventListener("mouseup",ks),$o()};document.addEventListener("mousemove",fs),document.addEventListener("mouseup",ks)})}render(){const{activeIndex:je,color:et,viewport:{scale:St},boundingBox:vt,onClose:no,containerEle:$o,contextTransform:gn=new A.hP}=this.props,{hoverColor:En,hoverStop:cs,alignmentLines:Zn}=this.state,{colors:fs,stops:ks,complex:Zs,x:ni,y:wi,type:xi}=et,{w:Fi,h:$i,x:ga,y:Ia}=vt.rect,_a=vt.transform.clone().prepend(gn).translate(A.ZY.xy(ga*St,Ia*St)),za=A.dL.parse({x:ni,y:wi,complex:Zs}).scale(Fi,$i),{x:la,y:qa}=_a.apply(za.apply(A.ZY.zero)),{x:rr,y:pr}=_a.apply(za.apply(A.ZY.horizontal)),{x:yr,y:Lr}=_a.apply(za.apply(A.ZY.vertical)),Tr=ks.map((Il,rl)=>{const{x:Ol,y:Ur}=_a.apply(za.apply({x:Il,y:0}));return{x:Ol,y:Ur,index:rl,color:fs[rl]}}),Nl=xn(la,qa,rr,pr);return(0,l.createPortal)((0,_t.jsx)(Zt,{onDoubleClick:no,children:(0,_t.jsx)("div",{className:"gradient-control-bar",children:(0,_t.jsxs)("svg",{className:"backSvg",children:[(0,_t.jsxs)("g",{className:"hover-add",onPointerDown:this.addPoint,onPointerMove:this.addPointHover,onPointerLeave:this.addPointLeave,children:[(0,_t.jsx)("line",{x1:la,x2:rr,y1:qa,y2:pr,stroke:"#fff",strokeWidth:1}),(0,_t.jsx)("line",{x1:la,x2:rr,y1:qa,y2:pr,stroke:"transparent",strokeWidth:8}),(0,_t.jsx)($n,{color:En,stop:cs,angle:Nl,boundingBoxTransform:_a,colorTransform:za})]}),(0,_t.jsx)("circle",{id:"circle1",ref:this.$circle1,style:{cursor:"move"},cx:la,cy:qa,r:fo,fill:"#fff","data-number":1,onPointerDown:this.handleOperatePoint}),(0,_t.jsx)("circle",{id:"circle2",ref:this.$circle2,style:{cursor:"move"},cx:rr,cy:pr,r:fo,fill:"#fff","data-number":2,onPointerDown:this.handleOperatePoint}),Tr.map(Il=>{const{x:rl,y:Ol,index:Ur,color:bc}=Il;return(0,_t.jsx)(Yn,{x:rl,y:Ol,color:bc,angle:Nl,index:Ur,active:je===Ur,onActivePoint:this.handleMouseDown},Ur)}),xi!==A.LA.LinearGradient&&(0,_t.jsx)("circle",{id:"circle3",style:{cursor:"move"},cx:yr,cy:Lr,r:fo,"data-number":3,fill:"#fff",onPointerDown:this.handleOperatePoint}),Zn.map((Il,rl)=>{const[Ol,Ur]=Il;return(0,_t.jsx)("line",{x1:Ol.x,x2:Ur.x,y1:Ol.y,y2:Ur.y,stroke:"#ff0000",strokeWidth:1},rl)})]})})}),$o)}}const xn=(Re,je,et,St)=>180-Math.atan2(Re-et,je-St)*180/Math.PI,Qo=(0,_t.jsxs)("g",{fill:"#d7d7d7",transform:"translate(10, 2)",children:[(0,_t.jsx)("rect",{x:"0",y:"4",width:"4",height:"4"}),(0,_t.jsx)("rect",{x:"8",y:"4",width:"4",height:"4"}),(0,_t.jsx)("rect",{x:"4",y:"8",width:"4",height:"4"}),(0,_t.jsx)("rect",{x:"0",y:"12",width:"4",height:"4"}),(0,_t.jsx)("rect",{x:"8",y:"12",width:"4",height:"4"})]}),Yn=(0,m.memo)(Re=>{let{x:je,y:et,color:St,index:vt,angle:no,active:$o,onActivePoint:gn}=Re;const[En,cs,Zn,fs]=St,ks="rgba("+En*255+", "+cs*255+", "+Zn*255+", "+fs+")";return(0,_t.jsxs)("g",{className:"color-stop",transform:"translate("+(je+fo)+", "+(et-fo*2)+") rotate("+no+" -6 "+fo*2+")",children:[(0,_t.jsx)("path",{fill:$o?"#298df8":"#fff",d:"M16.083 0c6.628 0 12 5.373 12 12s-5.372 12-12 12c-5.63 0-10.355-3.878-11.649-9.108a20.86 20.86 0 00-1.733-.975c-.49-.246-1.07-.51-1.74-.792l-.342-.142a1 1 0 01.006-1.852c.684-.276 1.376-.59 2.076-.94.641-.32 1.207-.63 1.699-.931C5.637 3.953 10.399 0 16.083 0z",fillRule:"evenodd"}),(0,_t.jsx)("circle",{cx:16,cy:12,r:9,fill:"#fff",strokeWidth:1,stroke:"#fff"}),Qo,(0,_t.jsx)("circle",{cx:16,cy:12,r:8,fill:ks,strokeWidth:2,stroke:"rgba(0, 0, 0, 0.16)","data-number":vt,onPointerDown:gn})]})});Yn.displayName="ControlBarOptimize";const $n=(0,m.memo)(Re=>{let{color:je,stop:et,angle:St,boundingBoxTransform:vt,colorTransform:no}=Re;if(!je||!et)return null;const[$o,gn,En,cs]=je,Zn="rgba("+$o*255+", "+gn*255+", "+En*255+", "+cs+")",{x:fs,y:ks}=vt.apply(no.apply({x:et,y:0}));return(0,_t.jsxs)("g",{className:"color-stop",transform:"translate("+(fs+fo)+", "+(ks-fo*2)+") rotate("+St+" -6 "+fo*2+")",children:[(0,_t.jsx)("circle",{cx:16,cy:12,r:12,fill:"#fff"}),Qo,(0,_t.jsx)("circle",{cx:16,cy:12,r:8,fill:Zn,strokeWidth:2,stroke:"rgba(0, 0, 0, 0.16)"})]})});$n.displayName="ControlBarHover";const ls=g.Ay.div.withConfig({displayName:"styles__StyledColorPanel",componentId:"sc-1bezuz8-0"})(['position:fixed;z-index:200;[type="color-picker"]{transform:translate(-50%);}']),Ns={bgColor:["#fff","#252626"],tc:["#415058","#d7dde0"],lightTc:["#415058","#f2f4f5"],darkTc:["#8d9ea7","#b8bcbf"],borderColor:["#dedee4","#151515"],colorBlock:{border:["rgba(0, 0, 0, 0.08)","rgba(255, 255, 255, 0.15)"]},header_border:["rgba(51, 51, 51, 0.05)","#4F5052"],icon:{close:{color:["#666666 ","#d8d8d8"],hover:["#415058","#dbdbdb"]},piker:{bg:["#fff","#454647"],border:["#8d9ea7","#595a5c"]},drop:{tc:["#8d9ea7","#999999"],hover:["#5b6b73","#d7dde0"]},select:["#8d9ea7","#d7dde0"],reverse:["#999999","#979797"]},input:{bg:["#f6f7f8","#252626"],border:["#f2f2f3","#454647"],hover:{border:["#dbdbdb","#4f5052"]}},color_text_L0:["#000","#fff"],color_text_L1:["#333","#f2f4f5"],color_text_L2:["#666","#b8bcbf"],color_text_L3:["#999","#999"],icon_bg_hover:["#f2f2f2","#363738"],icon_bg_active:["#e5e5e5","#454647"],common:{bg:{bg_4:["#fff","#454647"],menu_bg:["#333","#363738"]},radio:{bg:["#f6f7f8","#454647"]},divider:{divider_2:["rgba(243, 244, 245, 0.1)","#252626"]},menu:{panel:{bg:["#fff","#363738"]},tc:["#415058","#d7dde0"],disabled_tc:["#c8cdd0","#999999"]},text_2:{cr:["#415058","#d7dde0"],active:["#298df8","#f2f4f5"]},text_3:{cr:["#415058","#d7dde0"]},text_5:{cr:["#5b6b73","#d7dde0"]},text_11:{cr:["#8d9ea7","#999999"]},text_12:{cr:["#415058","#f2f4f5"]},text_disabled:{cr:["rgb(242 244 245 / 0.4)","#808080"]},text_13:{cr:["#1f292e","#f2f4f5"]},text_17:{cr:["#5b6b73","#f2f4f5"],hover_active:["#298df8","#f2f4f5"]},text_20:{cr:["#8d9ea7","#999999"],hover:["#5b6b73","#f2f4f5"]},text_22:{cr:["#8d9ea7","#999999"]},text_23:{cr:["#5b6b73","#b8bcbf"]},shadow:{shadow_1:["0 2px 4px 0 rgba(39, 54, 78, 0.08), 0 6px 16px 0 rgba(39, 54, 78, 0.1)","0 2px 6px 0 rgba(0,0,0,0.30), 0 10px 30px 0 rgba(0,0,0,0.15), inset 0 1px 0 0 #252626"],shadow_3:["0 2px 8px 0 rgba(0, 0, 0, 0.1)","0 2px 7px 0 rgba(0, 0, 0, 0.26), 0 12px 36px 0 rgba(0, 0, 0, 0.1)"]}},inputNumber:{caret_bg_hover:["#ededed","#363738"]},select:{divider:["#7d8694","#363738"]},toolbar:{shadow:["0 0 5px 0 rgba(0, 0, 0, 0.10)",null],bg:["#fff","#353738"],border_bottom:["0px solid transparent","1px solid #151515"]},leftpane:{shadow:["0 0 5px 0 rgba(0, 0, 0, 0.10)",null]},rightpane:{shadow:["0 0 5px 0 rgba(0, 0, 0, 0.10)",null]},basicWidgets:{bg:["#fff","#363738"],icon:{color:["#6c6d6e","#d7dde0"],hover:{bg:["#f2f2f2","#252626"],border_color:["#e8e8e8","#252626"]},active:{bg:["#f2f2f2","#252626"],color:["#ff6161","#b8bcbf"],border_color:["#e8e8e8","#252626"]}},nav:{divider:["#d8d8d8","#808080"]}},scrollbar:{thumb:{x_bg:["#d2d2d8","#454647"],y_bg:["#dedee4","#454647"],x_hover_bg:["#bec3c5","#595a5c"],y_hover_bg:["#c8cdd0","#595a5c"]}},listItem:{action_color:["#8d9ea7","#b8bcbf"],action_hover_color:["#5b6b73","#f2f4f5"],icon_expander:["#8d9ea7","#e6e9eb"],hover:{tc:["#298df8","#d7dde0"],bg:["#f7f7f7","#151515"],transfer_bg:["#f7f7f7","#252626"],action:["#8d9ea7","#f2f4f5"],action_icon:["#298df8","#f2f4f5"]},group_icon:{main:{hover_active:["#298df8","#d7dde0"]},secondary:{hover_active:["#76b8ff","#f2f4f5"]}},link_icon:{tc:["#298df8","#b8bcbf"],tc_hover:["#298df8","#f2f4f5"]},active:{slice_item_bg:["#ebebeb","#196ad4"],bg:["#f2f2f2","#151515"]}},colorButton:{border_color_hover:["#8d9ea7","#808080"]},menu:{context:{item_hover_bg:["#666666","#196ad4"],icon:{cr:["#8d9ea7","#999999"],hover:["#298df8","#f2f4f5"]}},font:{family:{divider:["#7d8694","#363738"],link_tc:["#fff","#298df8"]}}},modal:{close_btn:["#8d9ea7","#b8bcbf"],bg:["#fff","#363738"],bg1:["linear-gradient(to bottom,#fafafa,#f5f5f5)","#595a5c"],bg2:["#298df8","#196ad4"],bg3:["#1a70d8","#0b55b6"],footer_bg:["#f7f7f7","#454647"],border_color:["#f2f2f3","#454647"],select_active_bg:["#f6f7f8","#196ad4"],select_hover_bg:["#f6f7f8","#363738"],shadow:["0 2px 10px 0 rgba(0, 0, 0, 0.1), 0 12px 40px 0 rgba(0, 0, 0, 0.1)",null],input:{border:["#f2f2f3","#595a5c"]},cancel_btn:{bg:["#fff","#595a5c"],hover:["#8d9ea7","#252626"],active:["#5b6b73","#252626"],border:["#c8cdd0","#808080"]},confirm_btn:{border:["#dedee4","transparent"],disabled:["#fff","rgba(235, 86, 72, 0.6)"]},border:{cancel_hover:["#7d8694","#595a5c"],cancel_active:["#415058","#595a5c"],input_border:["#c8cdd0","#595a5c"]},tc:{hover:["#fff","#f2f4f5"],active:["#fff","rgba(242, 244, 245, 0.6)"]}},workspace_dropdown_menu:{shadow:{shadow_3:["0 2px 8px 0 rgba(0, 0, 0, 0.1)","0 2px 7px 0 rgba(0, 0, 0, 0.26), 0 12px 36px 0 rgba(0, 0, 0, 0.1)"]},bg:{bg_4:["#fff","#454647"]},text_5:{cr:["#5b6b73","#d7dde0"]},dark:{tc:["#fff","#415058"],hover_tc:["#fff","#1f292e"],bg:["rgba(30, 41, 46, 0.9)","rgba(242, 244, 245)"]}},panel_picker:{bg:["#F2F2F2","#4F4F4F"]}},Cs=(Re,je)=>{const et={};return Object.entries(Re).forEach(St=>{let[vt,no]=St;Array.isArray(no)?et[vt]=no[je]:typeof no=="object"?et[vt]=Cs(no,je):et[vt]=no}),et},Us={light:Cs(Ns,0),dark:Cs(Ns,1)},Qs=T((Re,je,et)=>[...Re,{key:"history",name:Fo("popup.colorPanel.history"),colors:je},{key:"favorite",name:Fo("popup.colorPanel.favorite"),colors:et}]),Bs=new Map;class Ws extends m.PureComponent{constructor(je){var et;super(je),et=this,(0,o.A)(this,"state",{activeIndex:0}),(0,o.A)(this,"interactionsSetTo",!1),(0,o.A)(this,"delayedSetter",null),(0,o.A)(this,"addLastColorToHistory",vt=>{const{historyColors:no}=this.props;if(!no)return;const $o=[...no];no.includes(vt)?$o.splice(no.indexOf(vt),1):$o.splice(17),$o.unshift(vt),this.props.saveColorPreference({historyColors:$o})}),(0,o.A)(this,"keepColorPickerInViewport",vt=>{const{position:no,onPositionChanged:$o}=this.props;if(!vt)return;const gn=vt.getBoundingClientRect(),{top:En,left:cs,right:Zn,bottom:fs}=gn;let ks=0,Zs=0;if(cs<0&&(ks=0-cs),Zn>window.innerWidth&&(ks=window.innerWidth-Zn),En<56&&(Zs=56-En),fs>window.innerHeight-18&&(Zs=window.innerHeight-fs-18),ks||Zs){const ni={left:no.left+ks,top:no.top+Zs};$o(ni)}}),(0,o.A)(this,"handlePanelDown",vt=>{const no=vt.clientX,$o=vt.clientY,{position:gn,onPositionChanged:En}=this.props,{top:cs,left:Zn}=gn,fs=Zs=>{const ni=Zs.clientX-no,wi=Zs.clientY-$o,xi={left:Zn+ni,top:cs+wi};En(xi)},ks=()=>{document.removeEventListener("mousemove",fs),document.removeEventListener("mouseup",ks)};document.addEventListener("mousemove",fs),document.addEventListener("mouseup",ks)}),(0,o.A)(this,"changePosition",function(vt,no){no===void 0&&(no=!1);const{colorObj:$o}=et.props,{a:gn,b:En,c:cs,d:Zn,x:fs,y:ks}=vt;et.onChangeColor({...$o,complex:{a:gn,b:En,c:cs,d:Zn},x:fs,y:ks},no)}),(0,o.A)(this,"handleChangeSelect",vt=>{const no=document.querySelector(".--mb--color-picker");this.props.saveColorPreference({colorDropdownOption:vt}),this.keepColorPickerInViewport(no)}),(0,o.A)(this,"handleActiveIndex",vt=>this.setState({activeIndex:vt})),(0,o.A)(this,"handleGradientMode",async vt=>{const{colorObj:no,attr:$o,index:gn,widgetProps:En,onColorSave:cs}=this.props,Zn=(En==null?void 0:En.cid)||"";Bs.set(Zn+$o+gn+no.type,no);let fs;if(vt===A.LA.Solid?this.setInteractions(!1,2e3):this.setInteractions(!0),Bs.get(Zn+$o+gn+vt))fs=Bs.get(Zn+$o+gn+vt);else switch(vt){case A.LA.Solid:fs={type:A.LA.Solid,v:!0,blend:no.blend,color:A.Pi.convertColorsToColor(no)};break;case A.LA.LinearGradient:fs={type:A.LA.LinearGradient,v:!0,o:1,stops:[0,1],blend:no.blend,...A.dL.serialize(new A.hP().rotate(Math.PI/2).translate({x:.5,y:0})),colors:A.Pi.convertColorsToColors(no)};break;case A.LA.RadialGradient:fs={type:A.LA.RadialGradient,v:!0,o:1,stops:[0,1],blend:no.blend,...A.dL.serialize(new A.hP().scale(.5,.5).translate({x:.5,y:.5})),colors:A.Pi.convertColorsToColors(no)};break;case A.LA.Image:fs={...A.Pi.image("/src/public/default.png"),blend:no.blend};break;default:break}cs(fs)}),(0,o.A)(this,"addToFavorite",vt=>{const{favoriteColors:no}=this.props;this.props.saveColorPreference({favoriteColors:[...no,vt]})}),(0,o.A)(this,"deleteFavorite",vt=>{const{favoriteColors:no}=this.props,$o=[...no];$o.splice(vt,1),this.props.saveColorPreference({favoriteColors:$o})}),(0,o.A)(this,"handleChangeInputType",vt=>{this.props.saveColorPreference({colorInputOption:vt})}),(0,o.A)(this,"deleteStop",()=>{const{colorObj:vt,attr:no}=this.props;if(!((0,pn.NT)(this.colorType)&&no))return;const{activeIndex:gn}=this.state,{colors:En,stops:cs}=vt;if(cs.length>2){const Zn=[...cs],fs=[...En];Zn.splice(gn,1),fs.splice(gn,1);let ks;gn===0?ks=0:gn===cs.length-1?ks=gn-1:ks=gn;const Zs={...vt,colors:fs,stops:Zn};this.handleActiveIndex(ks),this.onChangeColor(Zs)}}),(0,o.A)(this,"moveStop",vt=>{const{colorObj:no,attr:$o}=this.props;if(!((0,pn.NT)(this.colorType)&&$o))return;const{activeIndex:En}=this.state,{colors:cs,stops:Zn}=no;let fs=Zn[En],ks=fs;if(vt==="ArrowUp"||vt==="ArrowLeft"?ks=fs===0?fs:fs-=.01:(vt==="ArrowDown"||vt==="ArrowRight")&&(ks=fs===1?fs:fs+=.01),ks=Number(ks.toFixed(2)),ks){const Zs=[...Zn];Zs[En]=ks;const ni={...no,colors:cs,stops:Zs};this.onChangeColor(ni)}}),(0,o.A)(this,"shortcuts",{keys:{esc:()=>(this.props.nativeEyedropperIsOpen===void 0?!0:this.props.nativeEyedropperIsOpen)&&this.props.onClose(),del:()=>this.deleteStop(),backspace:()=>this.deleteStop(),up:()=>this.moveStop("ArrowUp"),left:()=>this.moveStop("ArrowLeft"),down:()=>this.moveStop("ArrowDown"),right:()=>this.moveStop("ArrowRight")},priority:ji.zu.FloatingPanel}),(0,o.A)(this,"onChangeColor",function(vt,no,$o){no===void 0&&(no=!1),$o===void 0&&($o=""),et.props.onColorSave(vt,no,$o),et.setInteractions(!0),et.colorType===A.LA.Solid&&et.setInteractions(!1,2e3)}),this.el=document.createElement("div"),this.el.style.zIndex="5",this.el.style.position="relative";const{locale:St}=je;Mn(St)}componentDidMount(){document.body.appendChild(this.el)}setInteractions(je,et){et===void 0&&(et=0),this.delayedSetter!==null&&clearTimeout(this.delayedSetter),je!==this.interactionsSetTo&&(et!==0?this.delayedSetter=setTimeout(()=>{this.props.setInteraction({disableRenderSelections:je}),this.interactionsSetTo=je,this.delayedSetter=null},et):(this.props.setInteraction({disableRenderSelections:je}),this.interactionsSetTo=je))}componentWillUnmount(){document.body.removeChild(this.el),this.setInteractions(!1)}get colorType(){var je;return((je=this.props.colorObj)==null?void 0:je.type)||A.LA.Solid}render(){const{themeColor:je,attr:et,theme:St,isDefaultColor:vt,onResetColor:no,historyColors:$o,colorPickerEnabled:gn,isEyedropperOpen:En,favoriteColors:cs,widgetProps:Zn,colorInputOption:fs,position:{top:ks,left:Zs},colorObj:ni,currentSelect:wi,onColorSave:xi,isSolidColorOnly:Fi,isHideBlendMode:$i,createAssetFromFiles:ga,viewport:Ia,boundingBox:_a,screenOffset:za,controlBarInteract:la,onClose:qa,containerEle:rr,contextTransform:pr,onChangeTab:yr,dropdownColorFilter:Lr,onMouseDownCallback:Tr,onMouseUpCallback:Nl}=this.props,{activeIndex:Il}=this.state,{colorType:rl}=this,Ol=Qs(Wt(),$o,cs),Ur=(0,pn.NT)(rl)&&et&&Zn;return(0,l.createPortal)((0,_t.jsxs)(g.NP,{theme:{...Us[St],themeColor:je},children:[(0,_t.jsxs)(ls,{style:{top:ks,left:Zs},children:[(0,_t.jsx)(Dt,{theme:St,themeColor:je,color:ni,isDefaultColor:vt,onResetColor:no,widgetProps:Zn,colorType:rl,activeIndex:Il,colorInputOption:fs,currentSelect:wi,colorPanelList:Ol,onDragStart:this.handlePanelDown,onClose:this.props.onClose,onChangeSelect:this.handleChangeSelect,onChangeInputType:this.handleChangeInputType,onAddToFavorite:this.addToFavorite,onDeleteFavorite:this.deleteFavorite,applyDidMountSideEffect:this.keepColorPickerInViewport,applyWillUnmountSideEffect:this.addLastColorToHistory,onChangeColor:this.onChangeColor,onChangeActiveIndex:this.handleActiveIndex,onChangeGradientMode:this.handleGradientMode,colorPickerEnabled:gn,isEyedropperOpen:En,setInteraction:this.props.setInteraction,toggleColorPicker:this.props.toggleColorPicker,isSolidColorOnly:Fi,isHideBlendMode:$i,createAssetFromFiles:ga,defaultTab:this.props.defaultTab,onChangeTab:yr,isShowColorList:this.props.isShowColorList,onChangeShowColorList:this.props.onChangeShowColorList,dropdownColorFilter:Lr,onMouseDownCallback:Tr,onMouseUpCallback:Nl}),(0,_t.jsx)(ji.NH,{sheet:this.shortcuts})]}),Ur&&(0,_t.jsx)(Eo,{containerEle:rr,color:ni,activeIndex:Il,selectedItem:Zn,viewport:Ia,boundingBox:_a,screenOffset:za,setInteraction:la,contextTransform:pr,onClose:qa,onChangeGradient:xi,onChangeActiveIndex:this.handleActiveIndex,onChangePosition:this.changePosition,onMouseDownCallback:Tr,onMouseUpCallback:Nl})]}),this.el)}}(0,o.A)(Ws,"defaultProps",{theme:"light",locale:"zh-CN"});const ci=Ws;class Ai extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"_invalid",!1),(0,o.A)(this,"_originalValueOfInput",""),(0,o.A)(this,"_changedMannually",!1),(0,o.A)(this,"$input",null),(0,o.A)(this,"state",{hexValue:null,prevHexValueFromProps:null}),(0,o.A)(this,"setInputRef",je=>{this.$input=je}),(0,o.A)(this,"selectWhenClick",je=>{je.target.select(),this._originalValueOfInput=je.target.value}),(0,o.A)(this,"_correctInput",je=>je.toUpperCase().replace(/[^0-9A-F]/g,"").slice(0,6)),(0,o.A)(this,"handleChange",je=>{this._changedMannually=!0;const et=this._correctInput(je.target.value);et.length===3||et.length===6?this._invalid=!1:this._invalid=!0,this.setState({hexValue:et})}),(0,o.A)(this,"_format3DigitValue",je=>""+je[0]+je[0]+je[1]+je[1]+je[2]+je[2]),(0,o.A)(this,"formatAndHandleChange",()=>{if(!this._changedMannually)return;const{hexValue:je}=this.state;let et=je;return je.length===3&&(et=this._format3DigitValue(et),this.setState({hexValue:et})),et.toLowerCase(),this.props.handleChange("#"+et),et}),(0,o.A)(this,"handleBlur",je=>{this._invalid?this.setState({hexValue:this._originalValueOfInput}):this.formatAndHandleChange(),this._invalid=!1,this._originalValueOfInput="",this.props.onBlur&&this.props.onBlur()}),(0,o.A)(this,"handleEnter",je=>{if(je.key==="Enter"){if(this._invalid)this.setState({hexValue:this._originalValueOfInput});else{const et=this.formatAndHandleChange();this._originalValueOfInput=et}this._invalid=!1,je.target.select()}})}static getDerivedStateFromProps(je,et){const St=je.hexValue.toUpperCase();return St!==et.prevHexValueFromProps?{prevHexValueFromProps:St,hexValue:St}:null}render(){const{className:je,onFocus:et}=this.props,{hexValue:St}=this.state;return(0,_t.jsxs)(_t.Fragment,{children:[(0,_t.jsx)("a",{className:"hex-suffix",children:"#"}),(0,_t.jsx)("input",{className:je,ref:this.setInputRef,value:St,onFocus:et,onClick:this.selectWhenClick,onKeyUp:this.handleEnter,onChange:this.handleChange,onBlur:this.handleBlur})]})}}(0,o.A)(Ai,"propTypes",{className:x().string,hexValue:x().string,handleChange:x().func,onFocus:x().func,onBlur:x().func});const Qi=g.Ay.div.withConfig({displayName:"styles__StyledColorInput",componentId:"sc-5a4lom-0"})(["position:relative;display:flex;align-items:center;height:32px;.color-wrapper{display:flex;align-items:center;border-radius:4px;padding-left:6px;height:28px;width:147px;.hex-suffix{position:absolute;left:40px;font-size:12px;color:#ccc;cursor:default;}&:hover:not(.disable):not(.is-active){box-shadow:inset 0 0 0 1px #e5e5e5;&::after{content:'';position:absolute;left:92px;top:3px;width:1px;height:calc(100% - 6px);background-color:#e5e5e5;}}&.is-rect-resize{box-shadow:inset 0 0 0 2px #6C4BD5;&::after{content:'';position:absolute;left:92px;top:3px;width:2px;height:calc(100% - 6px);background-color:#6C4BD5;}}&.is-active{box-shadow:inset 0 0 0 2px #6C4BD5;&::after{content:'';position:absolute;left:92px;top:4px;width:1px;height:calc(100% - 8px);background-color:#e5e5e5;}}&.hide-line{.bgColorText,.alphaText{opacity:0.4;}}}&.text{margin-left:19px;}.transparent{position:absolute;top:50%;left:50%;width:42px;border-top:2px solid #eb5648;transform-origin:0 0;transform:rotate(-22deg) translate(-50%,-50%);}.is-active-title{box-shadow:none;}.thumbnail-wrapper{position:relative;display:inline-flex;width:18px;height:18px;background-image:linear-gradient(45deg,#ccc 25%,transparent 0),linear-gradient(-45deg,#ccc 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ccc 0),linear-gradient(-45deg,transparent 75%,#ccc 0);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0;background-clip:padding-box;border-radius:2px;border:solid 1px #f1f1f1;background-color:#f1f1f1;.thumbnail{width:100%;height:100%;z-index:1;border-radius:2px;background-size:cover;border:1px solid rgba(0,0,0,0.17);&.gradient-btn{border:unset;}&.img-type{height:100%;width:auto;margin:auto;max-width:16px;}}&:before{content:'';position:absolute;width:20px;height:20px;left:-2px;top:-2px;border-radius:2px;background-color:transparent;z-index:0;border:solid 3px #f1f1f1;}.transparent{position:absolute;top:50%;left:50%;width:40px;border-top:2px solid #eb5648;transform-origin:0 0;transform:rotate(-22deg) translate(-50%,-50%);}}.bgColorText{font-size:12px;width:58px;padding:7px 0 7px 8px;background-color:transparent;box-sizing:content-box;margin-left:4px;&::selection{background-color:",";}}.gradient-text{color:",";padding:7px 0 7px 8px;}.alphaText{width:54px;height:28px;padding:6px 9px;box-sizing:border-box;font-size:12px;}.input-with-no-title{padding:8px 0;flex:0 0 53px;font-size:12px;box-shadow:none;input,.suffix{color:#000;line-height:28px;left:8px !important;}&:hover:not(.has-menu):not(.is-disabled){box-shadow:none;}&.is-active:not(.has-menu):not(.is-disabled){box-shadow:none;}.no-title{margin-right:0;width:9px;}.action{right:-1px;width:10px;background:",";height:18px;margin:5px 0;}}.icon{display:inline-flex;justify-content:center;align-items:center;}"],Re=>""+hs.Q.hex2rgbaStr(Re.theme.themeColor,.3),Re=>Re.theme.color_text_L1,Re=>Re.theme.bgColor),Oi={[A.LA.LinearGradient]:"linearGradient",[A.LA.RadialGradient]:"radialGradient",[A.LA.AngularGradient]:"angularGradient"};class Ii extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"colorRef",(0,m.createRef)()),(0,o.A)(this,"state",{isRgbaInputActive:!1,isRectResize:!1}),(0,o.A)(this,"handleColorChange",je=>{const{type:et,value:St,onChange:vt}=this.props;if(et!==A.LA.Solid)return;const{r:no,g:$o,b:gn}=A.Q1.hex2rgb(je),En=St.color[3];vt({...St,color:A.Q1.rgb255a(no,$o,gn,En)}),this.handleInputCancel()}),(0,o.A)(this,"handleGradientOrImageAlphaChange",(je,et,St,vt)=>{const{value:no,onChange:$o}=this.props;$o({...no,o:je/100},vt),this.handleInputCancel()}),(0,o.A)(this,"handleSolidAlphaChange",(je,et,St,vt)=>{const{type:no,value:$o,onChange:gn}=this.props;if(no!==A.LA.Solid)return;const[En,cs,Zn]=$o.color;gn({...$o,color:[En,cs,Zn,je/100]},vt),this.handleInputCancel()}),(0,o.A)(this,"handleClick",()=>{const{attr:je,onChangeState:et,onSelected:St}=this.props;St&&St(["",-1]),et&&et(je),this.handleInputCancel()}),(0,o.A)(this,"handleInputActive",je=>{je&&je.target.select&&je.target.select(),this.setState({isRgbaInputActive:!0})}),(0,o.A)(this,"handleInputCancel",()=>this.setState({isRgbaInputActive:!1})),(0,o.A)(this,"handleRectResize",je=>this.setState({isRectResize:je}))}render(){const{attr:je,value:et,type:St,index:vt,className:no,colorPanelPosOffset:$o,onChange:gn,onChangeState:En,length:cs,enable:Zn=!0}=this.props,{isRgbaInputActive:fs,isRectResize:ks}=this.state,Zs=b()("color-wrapper",{"hide-line disable":!Zn},{"is-active":fs},{"is-rect-resize":ks});return(0,_t.jsx)(Qi,{className:no,children:(0,_t.jsxs)("div",{className:Zs,onClick:this.handleClick,children:[(0,_t.jsx)(Gi,{color:et,attr:je,enable:Zn,index:vt,onChangeState:En,onChange:gn,length:cs,colorPanelPosOffset:$o}),St===A.LA.Solid&&(0,_t.jsxs)(_t.Fragment,{children:[(0,_t.jsx)(Ai,{hexValue:A.Q1.toHexAndAlpha(et.color)[0].substring(1),className:"bgColorText",handleChange:this.handleColorChange,onFocus:this.handleInputActive,onBlur:this.handleInputCancel}),(0,_t.jsx)(kd,{className:"alphaText input-with-no-title",min:0,max:100,suffix:"%",showCursorResize:!0,value:Math.floor(et.color[3]*100),onRectResize:this.handleRectResize,onConfirm:this.handleSolidAlphaChange,onFocus:this.handleInputActive,onBlur:this.handleInputCancel})]}),(St===A.LA.LinearGradient||St===A.LA.RadialGradient||St===A.LA.AngularGradient)&&(0,_t.jsxs)(_t.Fragment,{children:[(0,_t.jsx)("span",{className:"bgColorText gradient-text",children:Fo("settingPanel."+Oi[St])}),(0,_t.jsx)(kd,{className:"alphaText input-with-no-title",min:0,max:100,suffix:"%",showCursorResize:!0,value:et.o*100,onRectResize:this.handleRectResize,onConfirm:this.handleGradientOrImageAlphaChange,onFocus:this.handleInputActive,onBlur:this.handleInputCancel})]}),St===A.LA.Image&&(0,_t.jsxs)(_t.Fragment,{children:[(0,_t.jsx)("span",{className:"bgColorText",children:Fo("settingPanel.imageFill")}),(0,_t.jsx)(kd,{className:"alphaText input-with-no-title",min:0,max:100,suffix:"%",showCursorResize:!0,value:et.o*100,onRectResize:this.handleRectResize,onConfirm:this.handleGradientOrImageAlphaChange,onFocus:this.handleInputActive,onBlur:this.handleInputCancel})]})]})})}}(0,o.A)(Ii,"defaultProps",{hideColor:!1,enable:!0,index:0,length:1,className:""});const $a=(Re,je)=>Re+je},73523:(Et,ke,e)=>{"use strict";e.d(ke,{Ez:()=>g,NT:()=>x,fC:()=>m,l$:()=>p,rk:()=>l,rp:()=>r,zS:()=>C});var o=e(6523);function m(f,u,b,h){const{top:E,left:N}=b.current.getBoundingClientRect(),{top:z,left:S}=h.current.getBoundingClientRect();let _;if(N===S)u<Math.min(E,z)?_=E<z?0:100:u>Math.max(E,z)?_=E<z?100:0:_=Math.abs((u-E)/Math.abs(z-E)*100).toFixed(0);else if(E===z)f<Math.min(N,S)?_=N<S?0:100:f>Math.max(N,S)?_=N<S?100:0:_=Math.abs((f-N)/Math.abs(S-N)*100).toFixed(0);else{const y=(E-z)/(N-S),a=E-y*N,$=-1/y,de=(u-$*f-a)/(y-$),fe=Math.abs(N-S);de<Math.min(N,S)?_=N<S?0:100:de>Math.max(N,S)?_=N<S?100:0:_=Math.round(Math.abs(N-de)/fe*100)}return _}const g=(f,u)=>{const b=[];return f.map((h,E)=>{const N=h[3],S={hex:o.Q1.toHexAndAlpha(h)[0],alpha:N,point:u[E]};b.push(S)}),b},l=(f,u,b)=>{const h=[...f,b].sort((z,S)=>z-S),E=h.findIndex(z=>z===b);let N=[...u];if(E===0)N=[N[0],...u];else if(E===N.length)N=[...u,N[N.length-1]];else{N.splice(E,0,null);const z=Math.min(Math.max(E,h.length-1),0),S=Math.max(Math.min(E,0),h.length-1),_=N[z],y=N[S],a=h[z],$=h[S],ce=(b-a)/($-a||1);N[E]=[_[0]+(y[0]-_[0])*ce,_[1]+(y[1]-_[1])*ce,_[2]+(y[2]-_[2])*ce,_[3]+(y[3]-_[3])*ce]}return{nextColors:N,nextStops:h,index:E}},C=f=>{const u={...f,colors:[...f.colors],stops:[...f.stops]},b=u.stops.map((h,E)=>[h,u.colors[E]]);return b.sort((h,E)=>h[0]-E[0]),u.colors=b.map(h=>h[1]),u.stops=b.map(h=>h[0]),u},T=(f,u)=>Math.round(Number(f)*Math.pow(10,u))/Math.pow(10,u),A=function(f,u,b,h){u===void 0&&(u=2),b===void 0&&(b=-1/0),h===void 0&&(h=1/0);const E=T(Math.min(Math.max(f,b),h),u);return isNaN(E)?0:E},k=f=>f.length===4?"rgba("+A(f[0]*255,0)+","+A(f[1]*255,0)+","+A(f[2]*255,0)+","+A(f[3])+")":"rgba(16,16,16,1)",p=f=>{const{colors:u,stops:b,complex:h,x:E,y:N}=f,z=o.dL.parse({x:E,y:N,complex:h}),S=z.decompose().ro,_=S*180/Math.PI,y=z.apply(o.ZY.xy(0,0)),a=z.apply(o.ZY.xy(1,0)),$=o.ZY.xy(.5,.5),ce=Math.abs(Math.sin(S))+Math.abs(Math.cos(S)),de=o.ZY.rotate($,S,o.ZY.xy((1-ce)/2,.5)),fe=o.ZY.rotate($,S,o.ZY.xy((1+ce)/2,.5)),se=o.oi.projectOnePoint2Line(y,[de,fe]),J=o.ZY.dot(o.ZY.subtract(se,de),o.ZY.subtract(fe,de))>0?o.ZY.distance(se,de)/ce:-o.ZY.distance(se,de)/ce,ve=o.oi.projectOnePoint2Line(a,[de,fe]),D=o.ZY.dot(o.ZY.subtract(ve,de),o.ZY.subtract(fe,de))>0?o.ZY.distance(ve,de)/ce:-o.ZY.distance(ve,de)/ce,R=b.map((V,O)=>{const Ce=(D-J)*V+J;return k(u[O])+" "+A(Ce*100)+"%"});return"linear-gradient("+A(_+90)+"deg, "+R.toString()+")"},r=f=>{const{colors:u,stops:b,complex:h,x:E,y:N}=f,{a:z,b:S,c:_,d:y}=h,a=new o.hP(z,S,_,y,0,0),{x:$,y:ce}=a.apply(o.ZY.xy(1,1)),de=b.map((fe,se)=>k(u[se])+" "+A(fe*100)+"%");return"radial-gradient("+Math.abs($)+"% "+Math.abs(ce)+"% at "+E*100+"% "+N*100+"%, "+de.toString()+")"},x=f=>f===o.LA.LinearGradient||f===o.LA.RadialGradient||f===o.LA.AngularGradient},6523:(Et,ke,e)=>{"use strict";e.d(ke,{LA:()=>o.LA,Nx:()=>g.N,Pi:()=>o.Pi,Q1:()=>p.Q,ZY:()=>C.Z,a$:()=>A.a,dL:()=>m.dL,hP:()=>l.h,oi:()=>T.o,wp:()=>o.wp});var o=e(17599),m=e(35611),g=e(83480),l=e(83573),C=e(2302),T=e(98620),A=e(70877),k=e(13780),p=e(83931)},23492:(Et,ke,e)=>{"use strict";e.d(ke,{Qt:()=>m,Ue:()=>l});var o=e(46795);const m=C=>(0,o.zi)("/api/payment/v4/coupon/workspace_guide_2203_coupon",{space_type:C}),g=C=>fetchPostJSON("/api/web/v3/account/workspace_guide_days",{org_cid:C}),l=()=>(0,o.SN)("/api/dashboard/v4/users/enable_trial")},10858:(Et,ke,e)=>{"use strict";e.d(ke,{GA:()=>A,e_:()=>T,jb:()=>x,kh:()=>k});var o=e(96828),m=e(56927),g=e(44864),l=e(98040),C=e(11016);const T=(b,h)=>{let{key:E,sup:N,attr:z}=h;return b.push({type:m.UF,key:E,keySup:N}),b.push({type:m.qC,key:E,attrDiff:z}),b},A=b=>(0,g.xH)({type:"rResBunch",bunch:b}),k=function(b,h,E,N,z,S,_){return h===void 0&&(h=0),E===void 0&&(E="customize"),N===void 0&&(N=375),z===void 0&&(z=812),S===void 0&&(S="portrait"),_===void 0&&(_="vertical"),(0,g.KQ)({type:"rResBunch",bunch:"rbPage",name:b,zIndex:h,icon:""+C.KL+C.wv+"0",asFolder:!1,device:E,deviceW:N,deviceH:z,deviceOrientation:S,deviceScroll:_,alignH:[],alignV:[],scroll:1,scrollWay:"none",layout:"row",w:N,h:z,defaultCanvasKey:"",deleteInfo:{deleteTime:0,deleteUserName:""},fill:{fillIsVisible:!1,fill:"solid",solidColor:4126537215},"!liVersion":1})},p=function(b,h,E,N){h===void 0&&(h=0);let{x:z,y:S,w:_,h:y}=E;return N===void 0&&(N=1),packResCanvasAttr({type:"rResCanvas",name:b,zIndex:h,x:z,y:S,r:0,w:_,h:y,isLock:!1,isVisible:!0,isLockAspect:!0,isClipContent:!0,device:"customize",orientation:"portrait",stickyHeaderHeight:10,stickyFooterHeight:10,interactions:[],fill:{fillIsVisible:!0,fill:"solid",solidColor:4294967295},layoutGrid:{isGridLayout:!1,gridSize:10,isRowLayout:!1,rowHeight:10,rowGutter:10,isColLayout:!1,colCount:10,colGutter:10},alignH:[],alignV:[],order:N})},r={type:"extImage",key:"mockImageNode",hotAttr:{type:"rResExt",name:"\u793A\u4F8B\u56FE\u7247",zIndex:0,extData:"/res-img/org/hot/12.jpg",extType:"extImage"},sup:g.JC,sub:[]},x=b=>{const h=[];return T(h,{key:g.$k,sup:o.gT,attr:A("rbMain")}),T(h,{key:g.Ex,sup:o.gT,attr:A("rbTrash")}),T(h,{key:g.JC,sup:o.gT,attr:A("rbExt")}),T(h,{key:g.fW,sup:o.gT,attr:A("rbRefMuban")}),T(h,{key:g.W4,sup:o.gT,attr:A("rbRefDanli")}),T(h,{key:g.YZ,sup:o.gT,attr:A("rbRefMind")}),b.updateHotItem(r),h},f=b=>function(h){return h===void 0&&(h=KEY_MAIN),console.log(__devAttrFlatTree(b.getFlatTree(),h))},u=b=>function(h){return h===void 0&&(h=KEY_MAIN),console.log(b.__devHotTree(h))}},60043:(Et,ke,e)=>{"use strict";e.d(ke,{ax:()=>l,r_:()=>g,wr:()=>m});var o=e(46795);const m=async C=>{let{flpakKey:T}=C;return await(0,o.HS)("/flatkiq/htmlzip/build?fKey="+T)},g=async C=>{let{flpakKey:T}=C;return await(0,o.HS)("/flatkiq/apk/build?fKey="+T)},l=async C=>{let{flpakKey:T}=C;return await(0,o.HS)("/go/v1/mdrp/build?fKey="+T)}},92907:(Et,ke,e)=>{"use strict";e.d(ke,{J:()=>g,r:()=>m});var o=e(46795);const m=()=>(0,o.DE)("/api/web/v3/guide/guide_data"),g=l=>(0,o.iv)("/api/web/v3/guide/workspace_guides",{guide:{workspace_guides:l}})},63785:(Et,ke,e)=>{"use strict";e.d(ke,{F3:()=>l,Go:()=>g,Iw:()=>m,VX:()=>A,jm:()=>C,zb:()=>T});var o=e(46795);const m=k=>(0,o.SN)("/api/dashboard/v4/orgs/"+k+"/enable_trial"),g=async k=>{try{const p=await(0,o.zi)("/api/payment/v4/coupon/double_coupon",{type:k});if(p.msg){if(p.msg==="already redeemed")return MB.notice({text:"\u{1F389} \u4F18\u60E0\u5238\u9886\u53D6\u6210\u529F\uFF0C\u8BF7\u524D\u5F80\u5347\u7EA7"}),!0;if(p.msg==="coupon not found")return MB.notice({text:"\u4F18\u60E0\u5238\u4E0D\u5B58\u5728"}),!1}return MB.notice({text:"\u{1F389} \u4F18\u60E0\u5238\u9886\u53D6\u6210\u529F\uFF0C\u8BF7\u524D\u5F80\u5347\u7EA7"}),!0}catch(p){return MB.notice({text:"\u4F18\u60E0\u5238\u9886\u53D6\u5931\u8D25"}),!1}},l=()=>(0,o.DE)("/api/dashboard/v4/orgs/list"),C=async k=>{const{members:p}=await(0,o.DE)("/api/dashboard/v5/orgs/"+k+"/members");return p},T=async k=>{const{library_accesses:p}=await(0,o.DE)("/api/library/v3/orgs/"+k+"/library_accesses");return{library_accesses:p}},A=async k=>{let{actionType:p,action:r,orgCid:x,teamCid:f,projectCid:u,extra:b}=k;await(0,o.zi)("/go/v1/org-operation-logs/new-log",{action_type:p,action:r,org_cid:x,team_cid:f,project_cid:u,extra:b})}},82218:(Et,ke,e)=>{"use strict";e.d(ke,{F2:()=>K,LK:()=>R,Ok:()=>te,sH:()=>ve,yk:()=>q,z0:()=>J});var o=e(62427);if(e.j==467)var m=e(99478);var g=e(72907);if(e.j==467)var l=e(46795);var C=e(81811),T=e(40778),A=e(53955),k=e(103),p=e(33386),r=e(42226),x=e(56511),f=e(36875),u=e(78922),b=e(98236),h=e.n(b),E=e(6527),N=e.n(E),z=e(28749),S=e.n(z),_=e(19371),y=e(7997),a=e(33924),$=e(28565),ce=e(63555),de=e(90827),fe=e(61269),se=e(44580);ENV.IS_SKT_HTTP&&(0,C.pX)(!0),(0,p.Z)(f.wd,u.Z);const J=async(H,re)=>{if(console.warn("[onTransferError]",H,re),H==="Tot"||H==="5XX")MB.notice&&MB.notice({text:I18N.Common.offline_alert,duration:32*1e3,showClose:!0,priority:1,type:"super"});else if(H==="4XX"&&re&&/403/.test(re.message)){if(MB.global.popupHelper.alertAsyncBlocked({title:I18N.dModule.cant_edit,confirmText:I18N.dModule.exit_editing,desc:I18N.dModule.cant_edit_desc}).then(()=>MB.global.onBackButtonClick()),/Error: bad flpak-save/.test(re.message)){var be,Le,Ve;(0,p.p)("saveFlpakError",re,{uId:(be=MB)==null||(be=be.user)==null?void 0:be.id,orgCid:(Le=MB)==null||(Le=Le.currentOrg)==null?void 0:Le.cid,projectCid:(Ve=MB)==null||(Ve=Ve.getRootProject())==null?void 0:Ve.cid})}}else H==="4XX"&&re&&/401/.test(re.message)?(window.onbeforeunload=void 0,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(()=>(0,g.AG)())):H==="4XX"?(window.onbeforeunload=void 0,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(()=>(0,g.AG)())):await MB.global.popupHelper.alertAsyncBlocked({desc:window.I18N.dModule.unknown_error.replace(/%s/i,status),isHTML:!0})},ve=async(H,re)=>{console.warn("[onReadOnlyError]",H,re),H!=="Cur"&&MB.notice&&MB.notice({text:I18N.Common.offline_alert,duration:5*1e3,showClose:!0,priority:1})},D=H=>{let{sendCur:re,cssCur:be}=H;const Le=()=>{try{if((0,T.oK)()){const Ne=(0,A.ll)();if(!Ne)return;const{container:{runner:{activePageKey:We}}}=Ne;if(!We)return;re(We,void 0,void 0)}else{const Ne=(0,A.dP)();if(!Ne)return;const{current:{currentScreen:We},screencontainer:{cursorPos:ze}}=Ne,ft=We&&(We.cid||We.key);if(!ft)return;const{x:mt,y:i}=ze||{};re(ft,mt,i)}}catch(Ve){console.error("cssCur push error",Ve)}};setInterval(()=>{be.pollRoomChg()&&Le()},3*1e3),document.addEventListener("pointermove",Le,{passive:!0})},R=function(H,re){var be,Le,Ve,Ne,We,ze,ft,mt,i,gt,Je,Pt;re===void 0&&(re=rootSdk);const bt=(0,A.dP)();if(!bt||!MB.action)return;try{(0,de.G_)()}catch(ns){console.error(ns)}const qt=new Set;if(Array.isArray(H)&&H.forEach(ns=>{typeof ns=="string"&&re.sdkStore.isTrashed(ns)&&re.sdkStore.walkHotItemSubtree2(ns,Wn=>{var Do;Wn!=null&&(Do=Wn.hotAttr)!=null&&Do.mktCid&&qt.add(Wn.hotAttr.mktCid)})}),qt.size&&(0,se.uC)([...qt]),((be=rootSdk)==null||(be=be.cssCur)==null?void 0:be.getRoomStat().length)<=1)return;const pt=bt.ui.leftLayout.directory.screen.currentPage,$t=bt.editor.state.mode.selections;if((Le=bt.ui.leftLayout.directory.screen.contextMenuState)!=null&&Le.show&&N()(bt.ui.leftLayout.directory.screen.contextMenuState.contextScreenSelection,H).length>0){const ns=S()(bt.ui.leftLayout.directory.screen.contextMenuState.contextScreenSelection,H);ns.length===0&&MB.action("screen:close:contextmenu"),MB.action("screen:update:contextmenu:contextScreenSelection",ns),MB.action("screen:update:screen-selection",{screenSelection:ns})}if(bt.ui.leftLayout.directory.screen.currentPage&&H.includes(bt.ui.leftLayout.directory.screen.currentPage.key)&&((Ve=re.sdkStore.getHotItem(bt.ui.leftLayout.directory.screen.currentPage.key))==null?void 0:Ve.sup)==="B@trash"&&(bt.editor.state.mode.basketEditor.key&&MB.action("entry:exit:edit:basket"),bt.editor.state.mode.basketEditor.refPage?MB.action("entry:update:screen:list"):MB.action("entry:activate:root-project:home-screen"),MB.notice({text:"\u5F53\u524D\u9009\u4E2D\u753B\u5E03\u5DF2\u88AB\u6B63\u5728\u534F\u540C\u7684\u6210\u5458\u5220\u9664",type:"warning"})),bt.editor.state.mode.basketEditor.key&&re.sdkStore.isTrashed(bt.editor.state.mode.basketEditor.key)&&(MB.action("entry:exit:edit:basket"),MB.notice({text:"\u5F53\u524D\u7F16\u8F91\u52A8\u6001\u7EC4\u4EF6\u5DF2\u88AB\u6B63\u5728\u534F\u540C\u7684\u6210\u5458\u5220\u9664",type:"warning"})),H[0]&&(bt.editor.state.mode.basketEditor.key||bt.editor.state.mode.basketEditor.refPage)&&!re.sdkStore.isTrashed(H[0])){var go,Co,Tt;const ns=re.sdkStore.getHotItem(H[0]);((ns==null||(go=ns.hotAttr)==null?void 0:go.type)===ce.x.WBasket||(ns==null||(Co=ns.hotAttr)==null?void 0:Co.type)==="rResBunch"&&(ns==null||(Tt=ns.hotAttr)==null?void 0:Tt.bunch)===ce.x.RbPage)&&MB.action("artboard:update:state",{basketPathCacheTag:Math.random()})}if(bt.editor.state.mode.basketEditor.key&&H[0]){const ns=re.sdkStore.getHotItem(H[0]);if((ns==null?void 0:ns.sup)==="@@T"){var mo;if((ns==null||(mo=ns.hotAttr)==null?void 0:mo.type)==="rResCanvas"){var jo;const Wn=re.sdkStore.getHotItem(bt.editor.state.mode.basketEditor.key);if(Wn&&Wn!=null&&(jo=Wn.hotAttr)!=null&&jo.refRBPageKey){const Do=re.sdkStore.findAllTypeUnder(Wn.hotAttr.refRBPageKey,"rResCanvas");(Do==null?void 0:Do.length)===0&&(MB.action("entry:exit:edit:basket"),sdkStore.deleteHotItem(bt.editor.state.mode.basketEditor.key))}}}else bt.editor.state.mode.basketEditor.key===H[0]&&MB.action("mode:update:basketEditor:hotItem",ns)}if(bt.editor.state.mode.basketEditor.refPage&&H.includes(bt.editor.state.mode.basketEditor.refPage)){var Kt;if(((Kt=re.sdkStore.getHotItem(bt.editor.state.mode.basketEditor.refPage))==null?void 0:Kt.sup)==="@@T"){var Ft;if(MB.action("entry:exit:edit:basket"),MB.notice({text:"\u5F53\u524D\u7F16\u8F91\u6BCD\u7248\u5DF2\u88AB\u6B63\u5728\u534F\u540C\u7684\u6210\u5458\u5220\u9664",type:"warning"}),((Ft=re.sdkStore.getSubHotItemList(bt.editor.state.mode.basketEditor.refPage))==null?void 0:Ft.length)===0){const ns=re.sdkStore.findAllBasketFRBPage(bt.editor.state.mode.basketEditor.refPage);re.sdkStore.deleteHotItemBatch([...ns.map(Wn=>Wn.key),bt.editor.state.mode.basketEditor.refPage])}}else bt.editor.state.mode.basketEditor.refPage===H[0]&&MB.action("mode:update:basketEditor:hotItem",re.sdkStore.getHotItem(H[0]))}if(((Ne=re.sdkStore.getHotItem(H[0]))==null?void 0:Ne.hotAttr.type)==="rResBunch"&&((We=re.sdkStore.getHotItem(H[0]))==null?void 0:We.hotAttr.bunch)==="rbPage")if(!bt.ui.leftLayout.directory.screen.screenDataMap[H[0]])MB.action("entry:update:screen:list");else if(re.sdkStore.isTrashed(H[0]))MB.action("entry:update:screen:list");else{const ns=bt.ui.leftLayout.directory.screen.screenDataMap[H[0]],Wn=re.sdkStore.getHotItem(H[0]);if(Wn&&!h()(Wn==null?void 0:Wn.hotAttr,ns==null?void 0:ns.hotAttr)){var nt,Rt,yt,Jt,vo,Yo;((ns==null||(nt=ns.hotAttr)==null?void 0:nt.name)!==(Wn==null||(Rt=Wn.hotAttr)==null?void 0:Rt.name)||(ns==null||(yt=ns.hotAttr)==null?void 0:yt.icon)!==(Wn==null||(Jt=Wn.hotAttr)==null?void 0:Jt.icon)||(ns==null||(vo=ns.hotAttr)==null?void 0:vo.zIndex)!==(Wn==null||(Yo=Wn.hotAttr)==null?void 0:Yo.zIndex))&&MB.action("entry:update:screen:list"),(pt==null?void 0:pt.key)===(Wn==null?void 0:Wn.key)&&MB.action("entry:update:current:screen-mata",{screenMeta:{cid:Wn==null?void 0:Wn.key,sup:Wn==null?void 0:Wn.sup,sub:Wn==null?void 0:Wn.sub,...Wn==null?void 0:Wn.hotAttr},updateWidgetTreeData:!1})}}const Ho=H.find(ns=>{var Wn;return((Wn=re.sdkStore.getHotItem(ns))==null?void 0:Wn.hotAttr.type)===ce.x.Canvas}),kt=bt.editor.data.widgetTree.widgetStore;if(Ho&&kt){var Ze;const ns=kt.getNode(Ho),Wn=re.sdkStore.getHotItem(Ho);if(ns){if(((Ze=bt.editor.state.mode.basketEditor.hotItem)==null||(Ze=Ze.hotAttr)==null?void 0:Ze.refRBPageKey)===(ns==null?void 0:ns.sup)||bt.editor.state.mode.basketEditor.refPage===(ns==null?void 0:ns.sup)){if(re.sdkStore.isTrashed(Ho))MB.action("entry:layout:basket-canvas");else if(!h()(Wn==null?void 0:Wn.hotAttr,ns==null?void 0:ns.hotAttr)){var st,dt;(ns==null||(st=ns.hotAttr)==null?void 0:st.order)!==(Wn==null||(dt=Wn.hotAttr)==null?void 0:dt.order)&&MB.action("entry:layout:basket-canvas")}}else if((ns==null?void 0:ns.sup)===(pt==null?void 0:pt.key)){if(re.sdkStore.isTrashed(Ho))MB.action("directory-panel:bottom:update",{canvasListCacheTag:Math.random()});else if(!h()(Wn==null?void 0:Wn.hotAttr,ns==null?void 0:ns.hotAttr)){var Ot,Ct,wo,ln,Io,Lo;((ns==null||(Ot=ns.hotAttr)==null?void 0:Ot.name)!==(Wn==null||(Ct=Wn.hotAttr)==null?void 0:Ct.name)||(ns==null||(wo=ns.hotAttr)==null?void 0:wo.order)!==(Wn==null||(ln=Wn.hotAttr)==null?void 0:ln.order)||(ns==null||(Io=ns.hotAttr)==null?void 0:Io.isVisible)!==(Wn==null||(Lo=Wn.hotAttr)==null?void 0:Lo.isVisible))&&MB.action("directory-panel:bottom:update",{canvasListCacheTag:Math.random()})}}}else{var it;(pt==null?void 0:pt.key)===Wn.sup&&MB.action("directory-panel:bottom:update",{canvasListCacheTag:Math.random()}),(((it=bt.editor.state.mode.basketEditor.hotItem)==null||(it=it.hotAttr)==null?void 0:it.refRBPageKey)===(Wn==null?void 0:Wn.sup)||bt.editor.state.mode.basketEditor.refPage===(Wn==null?void 0:Wn.sup))&&MB.action("entry:layout:basket-canvas")}}if((ze=bt.editor.state.table)!=null&&ze.selectTableCellInfo&&H[0]===((ft=bt.editor.state.table)==null||(ft=ft.widget)==null?void 0:ft.key)&&((mt=re.sdkStore.getHotItem(H[0]))==null?void 0:mt.hotAttr.type)==="wTable")if(re.sdkStore.isTrashed(H[0]))MB.action("entry:clear:selection"),MB.action("table:update:info",{selectTableCellInfo:null,isShowTableMenu:!1,widget:null,isEditTable:!1}),MB.f.isEditTable=!1;else{var Ao;const{selectionLeftTopInfo:{x:ns,y:Wn},selectionRightBottomInfo:{x:Do,y:Go}}=(Ao=bt.editor.state.table)==null?void 0:Ao.selectTableCellInfo,an=re.sdkStore.getHotItem(H[0]);if(!an)return;const{maxX:Mo,maxY:Cn}=(0,fe.II)(an.hotAttr);let Tn=Do,cn=Go,bs=ns,Vn=Wn;ns>Mo&&(bs=Mo),Do>Mo&&(Tn=Mo),Wn>Cn&&(Vn=Cn),Go>Cn&&(cn=Cn);const ti={...bt.editor.state.table.widget,...an.hotAttr};(0,y.Z)({widget:ti,x1:bs,y1:Vn,x2:Tn,y2:cn})}(i=bt.editor.state.mind)!=null&&i.editMindKey&&H.includes((gt=bt.editor.state.mind)==null?void 0:gt.editMindKey)&&re.sdkStore.isTrashed((Je=bt.editor.state.mind)==null?void 0:Je.editMindKey)&&MB.action("mind:exit:edit:state"),(Pt=bt.editor.state.mode.vectorEditor)!=null&&Pt.key&&H.includes(bt.editor.state.mode.vectorEditor.key)&&re.sdkStore.isTrashed(bt.editor.state.mode.vectorEditor.key)&&MB.action("entry:vector:exit:edit");const xt=bt.ui.fixedLayout.modals.previewModal;if(xt!=null&&xt.isOpen){const ns=xt.basketKey;if(ns){var Ut;re.sdkStore.isTrashed(ns)&&MB.action("modal:update:state",{previewModal:{isOpen:!1}});const Wn=re.sdkStore.getHotItem(ns);if(Wn&&Wn!=null&&(Ut=Wn.hotAttr)!=null&&Ut.refRBPageKey){const Do=sdkStore.findAllTypeUnder(Wn.hotAttr.refRBPageKey,"rResCanvas");Do!=null&&Do.length||(MB.action("modal:update:state",{previewModal:{isOpen:!1}}),MB.action("entry:widget:delete",{keys:[ns],shouldBreakLayerUICache:!0,shouldRefreshLinkList:!0}))}}}const Wo=bt.ui.fixedLayout.modals.previewComboModal;if(Wo!=null&&Wo.isOpen){const ns=Wo.activeWidgetKey;ns&&sdkStore.isTrashed(ns)&&MB.action("modal:update:state",{previewComboModal:{isOpen:!1}})}if(!kt)return;const qo=new Map;$t.forEach(ns=>{if(!re.sdkStore.isTrashed(ns)){const Wn=re.sdkStore.findUpHotItemList(ns,pt.key).filter(Do=>Do.key!==ns).map(Do=>Do.key);qo.set(ns,Wn)}});const sn=[],Kn=[],ds=[];let _s=!1,Ls=!1;for(let ns=0;ns<H.length;ns++){const Wn=H[ns],Do=kt.getNode(Wn),Go=re.sdkStore.getHotItem(Wn);if(Do)if(re.sdkStore.isTrashed(Wn))Kn.push(Wn);else{const an={...Go==null?void 0:Go.hotAttr,cid:Go==null?void 0:Go.key,key:Go==null?void 0:Go.key};if(h()(Do==null?void 0:Do.hotAttr,an)&&Do.sup===Go.sup&&h()(Do.sub,Go.sub))return;if(Go.hotAttr.type===ce.x.WBasket&&Go.hotAttr.basket==="bMuban"?Ls=!0:Go.hotAttr.type===ce.x.WMind&&(Ls=!!H.find(Cn=>{var Tn;return((Tn=re.sdkStore.getHotItem(Cn))==null||(Tn=Tn.hotAttr)==null?void 0:Tn.type)===ce.x.WMindNode})),ds.push(Go),[ce.x.Canvas,ce.x.WWrap].includes(Go.hotAttr.type)&&qo.size){for(const[Mo,Cn]of qo)if(Cn.includes(Wn)){const Tn=re.sdkStore.getHotItem(Mo);Tn&&ds.push(Tn)}}}else if(Go&&!re.sdkStore.isTrashed(Wn)){var gs;const an=bt.editor.state.mode.basketEditor.hotItem,Mo=an?an.refRBPageKey:pt==null?void 0:pt.key;if(re.sdkStore.locUpRBPageKey(Wn)===Mo||(Go==null||(gs=Go.hotAttr)==null?void 0:gs.type)===ce.x.WMindNode)sn.push(Go);else if(re.sdkStore.findUpHotItemList(Wn).find(cn=>{let{key:bs}=cn;return bs==="B@ref-danli"||bs==="B@ref-muban"})){const cn=re.sdkStore.locUpRBPageKey(Wn),bs=re.sdkStore.findAllBasketFRBPage(cn).filter(Vn=>re.sdkStore.locUpRBPageKey(Vn)===Mo);if(!(bs!=null&&bs.length)){_s=!0;break}bs.forEach(Vn=>{ds.push(re.sdkStore.getHotItem(Vn))}),Ls=!0}}}if(_s){MB.action("entry:rebuild:screen-widget-tree"),MB.action("entry:refresh:link-list");return}MB.action("entry:collaborate:widget:change",{creates:sn,updates:ds,deletes:Kn,shouldReBuildChildren:Ls})},V=(0,o.nF)(H=>{R(H),xe(H.map(re=>sdkStore.getHotItem(re)).filter(re=>{var be;return(re==null||(be=re.hotAttr)==null?void 0:be.type)==="wChart"}))},.5*1e3),O={repaint:H=>{let{type:re,payload:be}=H;re===k.a&&V(be.changedKeyList)}},Ce=(0,o.nF)(()=>{!(0,A.dP)()||!MB.action||MB.action("entry:comment:rebuild:commentList")},.5*1e3),ae={repaint:H=>{let{type:re,payload:be}=H;re===_.a&&Ce()}},q=async H=>{let{projectBasicCid:re}=H;try{const{userId:be,flatKey:Le}=await(0,l.DE)("/api/flat/web_v1/proj2-edit-info?prj2Cid="+re);return{userId:be,flatKey:Le}}catch(be){await(0,g.FY)(be)}},K=async(H,re)=>{try{const Le=await(0,C.ur)(H),Ve=Le.sdkStore.createRoSdkStore();Object.assign(globalThis,{...Le,rootSdk:Le,roSdkStore:Ve}),D(Le),Le.sdkStore.subscribe(O.repaint),Le.cmtStore.subscribe(ae.repaint),re&&(0,T.OB)()&&((0,a.nU)(Le.flatStore,re),(0,a.lb)(Le.flatStore),(0,a.a3)(Le.flatStore,re)),await $.h.Map100000.loadMLG(),xe(Le.sdkStore.findAllTypeUnder("B@main","wChart"))}catch(Le){var be;const Ve=Le?Number(Le.status)||Number((be=Le.toString().split("status")[1])==null||(be=be.split(":")[1])==null?void 0:be.split(",")[0]):void 0;console.warn("[initRootSdk]",Le,Ve),(0,p.p)("initRootSdk",Le,{status:Ve,sdkOption:H,projectBasic:re}),await(0,g.FY)({status:Ve}),await new Promise(()=>{})}},xe=async H=>{for(const re of H){const{chartType:be,mapAdCode:Le}=re.hotAttr.chartConfig;if(be==="map_chart"){const Ve=$.h["Map"+Le];Ve.hasMLG()||await Ve.loadMLG()}}},te=H=>async re=>{let{fssDat:be}=re;try{const Le=await be.loadSOS();if(!Le)return;if(console.warn("[afterStoreCreate] found unsaved proj tree",Le),await MB.global.popupHelper.confirmAsync({isClose:!0,isHTML:!0,title:"\u6062\u590D\u6570\u636E",desc:["<p>\u68C0\u6D4B\u5230\u672A\u6210\u529F\u4FDD\u5B58\u5230\u4E91\u7AEF\u7684\u6587\u4EF6\u6570\u636E\uFF0C\u6700\u540E\u8BB0\u5F55\u65F6\u95F4\u4E3A\uFF1A"+(0,r.JQ)(new Date(Le.time).getTime(),"","-")+"\u3002</p>","<p>\u662F\u5426\u6062\u590D\u6570\u636E\u5230\u65B0\u6587\u4EF6\uFF1F</p>"].join(""),confirmText:"\u6062\u590D"})){const{clientData:{upperCid:Ne}}=await(0,x.N)(Le.tree,H.team_cid,{...H,name:H.name+"-\u6062\u590D\u6570\u636E"}).catch(async We=>{await MB.global.popupHelper.alertAsync({title:"\u6062\u590D\u5931\u8D25",desc:"\u672A\u6210\u529F\u6062\u590D\u6570\u636E\u5230\u65B0\u6587\u4EF6\uFF0C\u8BF7\u91CD\u65B0\u52A0\u8F7D\u9875\u9762\u5E76\u91CD\u8BD5\u3002\u62A5\u9519\u4FE1\u606F\uFF1A"+(We.message||String(We))}),location.reload(),await(0,m.Y_)(1e9)});await be.freeSOS(),location.href="/proto/design/"+Ne}else await be.freeSOS()}catch(Le){(0,p.p)("loadSOS err",Le)}}},88753:(Et,ke,e)=>{"use strict";e.d(ke,{Bk:()=>y,aQ:()=>z,i_:()=>a,mK:()=>$,wV:()=>ce,zR:()=>N});var o=e(82218),m=e(81811),g=e(99611),l=e(46795),C=e(52781),T=e(103),A=e(53955),k=e(62427);if(e.j==467)var p=e(99478);var r=e(31360),x=e(33924),f=e(35236),u=e(85782),b=e(56511),h=e(39271),E=e(44580);const N=async de=>{const[[fe,se],[J,ve]]=await Promise.all([(async()=>{const{project_basic:D,project_metas:[R]}=await(0,l.DE)("/api/upper/web_v1/basics/"+de);return[D,R]})(),(async()=>{const{userId:D,flatKey:R}=await(0,o.yk)({projectBasicCid:de});return console.log("[p2edit] uId="+D+" key="+R+" pbCid="+de),[D,R]})()]);return await(0,o.F2)({userId:J,flpakKey:ve,afterStoreCreate:(0,o.Ok)(fe),onTransferError:o.z0,onReadOnlyError:o.sH,isAllowDat:!0,isAllowCmt:!0,isAllowCur:!0,__fetchFlpakAsync:async(D,R)=>{const V=await(0,g.T)(D,R);if(location.hash.includes("CHOP-PROTO")){const K=new Date(/CHOP-PROTO-([\w:-]+)/.exec(location.hash)[1]);if(K&&await MB.global.popupHelper.confirmAsync({title:"\u6570\u636E\u56DE\u9000?",desc:"\u6570\u636E\u56DE\u9000\u5230: "+K.toISOString()})){const xe=[K.getTime(),0,0,0],te=await(0,u.w0)(f.r,V,xe),{clientData:{upperCid:H}}=await(0,b.N)(te,fe.team_cid,{...fe,name:fe.name+"-\u56DE\u9000\u6570\u636E"});await MB.global.popupHelper.alertAsync({title:"\u6570\u636E\u56DE\u9000\u6210\u529F",desc:"\u6570\u636E\u56DE\u9000\u6210\u529F\u5230\u65B0\u6587\u4EF6: "+H}),location.href="/proto/design/"+H,await(0,p.Y_)(1e9)}}const O=(0,r.tv)(V),Ce=Number(((O.treGz+O.flpbxGz+O.flpch)/1024/1024).toFixed(1)),ae=ENV.IS_FEAT_FLPAK4GB;return ENV["@FLPAK_SIZE_INFO"]={isFlpakSizeWarn:(0,r.Ou)(V,ENV.IS_FEAT_FLPAK4GB),isFlpakSizeLimit:(0,r.NT)(V,ENV.IS_FEAT_FLPAK4GB),currentSize:Ce,warnSize:(0,r.Ku)(ae)},V}},fe),await(0,E.NF)(),{projectBasic:fe,projectMeta:se}},z=async de=>{const{market_template:fe,project_metas:[se]}=await(0,C.Yk)(de);return await(0,o.F2)({userId:void 0,flpakKey:se.cid,isAllowDat:!1,isAllowCmt:!1,isAllowCur:!1,onTransferError:o.z0,onReadOnlyError:o.sH},fe),(0,E.B9)(),{projectBasic:fe,projectMeta:se}},S={repaint:de=>{let{type:fe,payload:se}=de;fe===T.a&&_(se.changedKeyList)}},_=(0,k.nF)(de=>{const fe=(0,A.dP)();if(!fe||!MB.action)return;const se=fe.ui.leftLayout.popups.currentPopupPanel,J=fe.current.currentOrg,ve=fe.current.currentUser,D=fe.editor.state.mode.editingOrgComboMode,R=fe.editor.state.mode.editingUserComboMode;if(se!=="builtin"&&!(ve&&R)&&!(J&&D))return;const V=fe.ui.leftLayout.widget.navIndex;if(R||D){const K=R?userSdk:orgSdk;if(!K)return;(0,o.LK)(de,K)}else if(ve&&V===1&&userSdk){var O,Ce;((O=userSdk.sdkStore.getHotItem(de[0]))==null?void 0:O.hotAttr.type)==="rResBunch"&&((Ce=userSdk.sdkStore.getHotItem(de[0]))==null?void 0:Ce.hotAttr.bunch)==="rbPage"&&MB.action("entry:load:user:combo:group:list")}else if(J&&V===2&&orgSdk){var ae,q;((ae=orgSdk.sdkStore.getHotItem(de[0]))==null?void 0:ae.hotAttr.type)==="rResBunch"&&((q=orgSdk.sdkStore.getHotItem(de[0]))==null?void 0:q.hotAttr.bunch)==="rbPage"&&MB.action("entry:load:org:combo:group:list")}},.5*1e3),y=()=>{var de,fe,se;const J=(de=MB)==null?void 0:de.user,ve=(fe=MB)==null?void 0:fe.currentOrg,D=(se=MB)==null||(se=se.currentOrg)==null?void 0:se.library_accesses;return(0,h.RD)(J,ve,D)?!0:"RO"},a=async de=>{let{project_meta_cid:fe,userId:se,repaint:J,isAllowDat:ve=!0}=de;try{const D=await(0,m.ur)({userId:se,flpakKey:fe,isDummyCmt:!0,isAllowDat:ve,onTransferError:o.z0,onReadOnlyError:o.sH});return J&&D.sdkStore.subscribe(S.repaint),(0,x.lb)(D.flatStore),D}catch(D){console.warn("[initComboStore]",D)}},$=()=>(0,l.DE)("/api/web/v3/market_template/mt_vip/mt_vip_downloads"),ce=de=>(0,l.DE)("/api/upper/web_v1/design/init2403?project_cid="+de)},33924:(Et,ke,e)=>{"use strict";e.d(ke,{y2:()=>_,a3:()=>ce,nU:()=>a,lb:()=>$});var o=e(44864),m=e(56927),g=e(35332),l=e(98040),C=e(96828),T=e(23848),A=e(833),k=e(74138),p=e(91463);const r=de=>{let fe=0;return(0,C.yc)(de,o.$k,se=>{const J=se.attr;if(J.T!==p._b)return k.NU;const ve=(0,o.mq)(J);ve.bunch==="rbPage"&&!ve.asFolder&&fe++}),fe},x=new Set([p._b,p.e]),f=de=>{const fe=[];let se=0,J=0;return walkFlatTreeItem2(de,KEY_RB_MAIN,ve=>{const D=ve.attr;if(!x.has(D.T))return;const R=toProto2HotAttr(D);fe.push([ve.key,ve.sup,R]),R.type==="rResBunch"&&R.bunch==="rbPage"&&!R.asFolder?se++:R.type==="rResCanvas"&&J++}),{p2mList:fe,p2mStat:{countPG:se,countCV:J}}};var u=e(63555),b=e(10858),h=e(79700),E=e(43859),N=e(14517);const z={iphone_16_pro_max:54,iphone_16_pro:54,iphone_16_plus:54,iphone_16:54,iphone_15_pro_max:54,iphone_15_pro:54,iphone_15_plus:54,iphone_15:54,iphone_13_pro_max:44,iphone_13_pro:44,iphone_13_mini:44,iphone_11_pro_max:44,iphone_se:20,Huawei_mate70:48,Huawei_mate70_pro:48,Huawei_mate70_pro_plus:48,Huawei_mateXT_one_screen:48,Huawei_mateXT_two_screen:48,Huawei_mateXT_three_screen:48,Huawei_mate60:48,Huawei_mate60_pro:48,Huawei_mateX5_fold:48,Xiaomi_14:48,Xiaomi_15:48,samsung_galaxy_s23:48,ipad_pro_11:24,ipad_pro_12:24,ipad_2023:24,Huawei_mate_pad_pro_13_2:24,Huawei_mate_pad_pro_11:24},S={iphone_16_pro_max:34,iphone_16_pro:34,iphone_16_plus:34,iphone_16:34},_=de=>{var fe;let se=!1,J=!1,ve="",D=de.hotAttr.device;if(D==="customize")for(const O of["android","iphone","ipad"]){const Ce=E.Am[O]||[];for(const ae of Ce){const q=E.v2[ae];if(q&&q.height===de.hotAttr.h&&q.width===de.hotAttr.w){D=ae;break}}}const R=(fe=E.v2[D])==null?void 0:fe.device;["android","iphone","ipad"].includes(R)&&(se=!0,J=!0,ve=R,R==="android"&&(J=!1),["iphone_se","Huawei_mate_pad_pro_13_2","Huawei_mate_pad_pro_11"].includes(D)&&(J=!1),["Huawei_mateX5_expand"].includes(D)&&(se=!1));let V;if(se){V=[];let O;O=h.N.wIphoneXSB(I18N.w.wIphoneXSB),O.h=z[de.hotAttr.device]||44,O.w=de.hotAttr.w,O.x=de.hotAttr.w/2,O.y=O.h/2,O.zIndex=6,O.fixPosTo="none";const Ce={key:(0,g.cF)(),attr:(0,T.Xd)(O),hotAttr:O,sup:de.key,sub:[]};V.push(Ce)}if(J){let O=h.N.wRect(I18N.w.tab_bar);O={...O,zIndex:7,fixPosTo:"none",fill:{fillIsVisible:!0,fill:"solid",solidColor:4177066239},border:{bdrIsVisible:!1,bdrColor:4278190080,bdrWidth:1,bdrStyle:"solid"},borderRadius:0,borderVisibility:{bdrIsVisibleT:!0,bdrIsVisibleL:!0,bdrIsVisibleB:!0,bdrIsVisibleR:!0}},O.h=S[de.hotAttr.device]||21,O.w=de.hotAttr.w,O.x=de.hotAttr.w/2,O.y=de.hotAttr.h-O.h/2;const Ce={key:(0,g.cF)(),attr:(0,T.Xd)(O),hotAttr:O,sup:de.key,sub:[]};V.push(Ce);let ae=h.N.wRect(I18N.w.wRect);ae={...ae,zIndex:8,fixPosTo:"none",fill:{fillIsVisible:!0,fill:"solid",solidColor:255},borderRadius:3,border:{bdrIsVisible:!1,bdrColor:3149642751,bdrWidth:1,bdrStyle:"solid"}},ae.h=5,ae.w=134,ae.x=de.hotAttr.w/2,ae.y=O.y;const q={key:(0,g.cF)(),attr:(0,T.Xd)(ae),hotAttr:ae,sup:de.key,sub:[]};V.push(q)}return V},y=(de,fe)=>{var se,J;const{model:ve,height:D,width:R,attr:V}=fe,O=(0,g.cF)("rbp");if((0,b.e_)(de,{key:O,sup:o.$k,attr:(0,b.kh)(I18N.LeftSidePanel.page,1,ve,R,D,(se=V==null?void 0:V.orientation)!=null?se:"portrait")}),!ENV.IS_ON_PREMISES&&(J=(0,N.jN)(fe))!=null&&J.isToShow)return de;const Ce=h.N[u.x.Canvas](I18N.LeftSidePanel.artboard+" 1",5,R/2,D/2,R,D,ve),ae=(0,l.XR)(Ce),q=(0,g.cF)("rc");de.push({type:m.UF,key:q,keySup:O}),de.push({type:m.qC,key:q,attrDiff:ae});const K=_({hotAttr:Ce,key:q});if(K!==void 0){for(const xe of K)de.push({type:m.UF,key:xe.key,keySup:xe.sup}),de.push({type:m.qC,key:xe.key,attrDiff:xe.attr});K.length===1?de.push({type:m.qC,key:q,attrDiff:{shh:(0,A.c5)(K[0].hotAttr.h)}}):de.push({type:m.qC,key:q,attrDiff:{shh:(0,A.c5)(K[0].hotAttr.h),sfh:(0,A.c5)(K[1].hotAttr.h)}})}return de},a=(de,fe)=>{if(de.getFlatTree().get("B@main").sub.length===0){const se=y([],fe);de.applyDiff(se),de.resetUndo()}},$=de=>{(!de.getFlatTree().get("B@ref-mind")||de.getFlatTree().get("B@ref-mind").sup!==C.gT)&&(de.applyDiff([{type:m.UF,key:o.YZ,keySup:C.gT},{type:m.qC,key:o.YZ,attrDiff:(0,b.GA)("rbRefMind")}]),de.resetUndo())},ce=(de,fe)=>{let{cid:se,screens_count:J}=fe,ve=J;const D=()=>{const R=r(de.getFlatTree());ve!==R&&(ve=R,fetch("/api/flat/web_v1/proj2-stat-sync?"+new URLSearchParams({prj2Cid:se,countPG:String(R)}),{method:"PUT"}).catch(console.error))};setInterval(D,15*1e3),D()}},90827:(Et,ke,e)=>{"use strict";e.d(ke,{CH:()=>h,G_:()=>x,JL:()=>f,LD:()=>u,QV:()=>b,c4:()=>r});var o=e(46795),m=e(72907),g=e(76713),l=e.n(g),C=e(54606),T=e(53955),A=e(5115),k=e(20029),p=e(76445);const r=async(E,N)=>{const z=new URL("/api/upper/web_v1/version/"+E+"/all",window.location.origin);N&&z.searchParams.append("access_token",N);let S=[];try{S=await(0,o.DE)(z.href)}catch(_){_.status===403||/403/.test(_.message)?N?MB.global.popupHelper.alertAsync({title:I18N.dModule.project_share_p_changed,confirmText:I18N.dModule.confirm,desc:I18N.dModule.project_share_p_changed_desc}).then(()=>location.reload()):MB.global.popupHelper.alertAsyncBlocked({title:I18N.dModule.cant_edit,confirmText:I18N.dModule.exit_editing,desc:I18N.dModule.cant_edit_desc,isHTML:!1}).then(()=>location.reload()):(_.status===401||/401/.test(_.message))&&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,isHTML:!1}).then(()=>(0,m.AG)())}return S},x=async()=>{const E=(0,T.dP)(),N=(0,k.jx)(E),{isEditingCombo:z}=(0,C.r)(E);if(z||N===p.qi.OnlyView||MB.versionNextCheckpoint&&l()(l()()).isBefore(MB.versionNextCheckpoint*1e3)||!MB.getRootProject())return;const{nextCheckpoint:S,clientData:_}=await f({projectCid:MB.getRootProject().cid,title:l()().format("YYYY.MM.DD HH:mm"),desc:"",category:"auto"});if(MB.versionNextCheckpoint=S,_){const y=(0,T.dP)();(0,A.vr)(y)&&MB.action("versions:create",{newVersion:_})}},f=E=>{let{projectCid:N,title:z,desc:S,category:_="auto"}=E;return(0,o.zi)("/flpak/w-pakv-new?upperCid="+N+"&category="+_,{title:z,description:S})},u=async E=>{let{projectCid:N,versionCid:z,newTitle:S,newDesc:_}=E;return(0,o.SN)("/api/upper/web_v1/version/"+N+"/"+z,{title:S,description:_})},b=async E=>{let{versionCid:N,title:z,description:S}=E;return(0,o.zi)("/flpak/w-pakv-reset?upperCid="+N+"&category=auto",{title:z,description:S})},h=async E=>{let{projectCid:N,versionCid:z}=E;try{return(0,o.OD)("/api/upper/web_v1/version/"+N+"/"+z)}catch(S){await(0,m.FY)(S)}}},57789:(Et,ke,e)=>{"use strict";e.d(ke,{E:()=>m});var o=e(56511);const m=async g=>{MB.safeLoading&&MB.safeLoading(I18N.dApis.save);const l=MB.getRootProject(),C={name:l.title,device:l.device,model:l.model,width:l.width,height:l.height,attr:l.attr};try{const{clientData:{upperCid:T}}=await(0,o.N)(rootSdk.fssDat.getFlatStore().getFlatTree(),g,C);location.href="/proto/design/"+T}catch(T){console.error("eTASAL",T)}}},14941:(Et,ke,e)=>{"use strict";e.d(ke,{n:()=>g});var o=e(51044),m=e(57464);const g=l=>{let{className:C=""}=l;return(0,m.jsxs)("svg",{width:"66",height:"44",className:C,viewBox:"0 0 66 44",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,m.jsxs)("g",{filter:"url(#filter0_d_13824_24706)",children:[(0,m.jsx)("path",{d:"M6.8418 7.95926C6.8418 7.95926 10.0696 2.55718 17.3766 2.03655C24.6836 1.51593 30.7478 7.00253 33.2817 9.60121C35.8155 12.1999 38.4583 17.5352 41.4601 17.3751C44.462 17.2149 44.8736 16.5696 47.0362 17.3394C49.1988 18.1092 49.2432 19.8892 51.3373 19.5198C53.4313 19.1505 53.863 16.3205 53.863 16.3205L55.8804 17.3439C55.8804 17.3439 55.3801 21.3843 53.2982 23.6537C51.2162 25.9231 50.5626 26.0166 48.6138 25.4915C46.665 24.9664 44.4741 23.538 41.1011 26.7152C37.728 29.8923 35.646 33.3409 32.2246 32.6601L21.4719 19.3107L6.8418 7.95926Z",fill:"#FF2E4A"}),(0,m.jsx)("path",{d:"M54.1026 17.7438C53.5297 19.0788 54.6917 19.052 54.5989 19.7818C54.5061 20.5116 53.2594 22.0868 50.9676 23.533C48.6759 24.9792 46.3397 21.9533 42.8981 22.8032C39.4564 23.6532 36.5716 31.6049 32.9524 24.9124C29.3332 18.2199 20.7996 14.9004 20.7996 14.9004L19.9927 18.1354L21.4815 19.2923L32.2342 32.6417C35.6718 33.3226 37.7578 29.874 41.1107 26.6968C44.4636 23.5197 46.6786 24.948 48.6234 25.4731C50.5682 25.9982 51.2259 25.9181 53.3078 23.6353C55.0831 21.7041 55.7044 18.4825 55.8537 17.5747C55.067 17.2988 54.3568 17.2098 54.1026 17.7438Z",fill:"#DB0F2A"}),(0,m.jsx)("path",{d:"M30.5782 39.587C30.5782 39.587 36.001 36.174 31.1593 26.9407C26.3175 17.7073 18.0301 11.8113 14.6409 10.2317C11.2517 8.65198 1.61261 4.20662 2.01205 12.105C2.01205 12.105 8.26997 11.9493 16.0651 19.1713C23.8603 26.3933 29.6866 35.7646 29.275 39.9964L30.5782 39.587Z",fill:"white"}),(0,m.jsx)("mask",{id:"mask0_13824_24706",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"2",y:"7",width:"32",height:"33",children:(0,m.jsx)("path",{d:"M30.5782 39.5909C30.5782 39.5909 36.001 36.1779 31.1593 26.9446C26.3175 17.7113 18.0301 11.8152 14.6409 10.2356C11.2517 8.65589 1.61261 4.21052 2.01205 12.1089C2.01205 12.1089 8.26997 11.9532 16.0651 19.1752C23.8603 26.3972 29.6866 35.7685 29.275 40.0003L30.5782 39.5909Z",fill:"white"})}),(0,m.jsxs)("g",{mask:"url(#mask0_13824_24706)",children:[(0,m.jsx)("g",{style:{mixBlendMode:"multiply"},opacity:"0.4",children:(0,m.jsx)("path",{d:"M27.102 42.3735C27.102 42.3735 33.017 41.2254 28.147 31.249C23.277 21.2726 15.147 15.2298 11.7537 13.6456C8.36048 12.0615 0.694416 8.71522 0.262695 15.1185C0.262695 15.1185 5.38282 15.3632 13.174 22.5897C20.9651 29.8162 26.7954 39.1786 26.3798 43.4148L27.102 42.3735Z",fill:"#988AA3"})}),(0,m.jsx)("g",{style:{mixBlendMode:"multiply"},opacity:"0.4",children:(0,m.jsx)("path",{d:"M2.01367 12.1028C2.01367 12.1028 7.05309 11.333 14.2874 16.6906C22.2037 22.551 27.0817 31.148 28.3486 33.8668C29.1949 35.6866 29.4985 37.7548 29.2161 39.7761L25.4678 41.4848L2.01367 12.1028Z",fill:"#988AA3"})})]}),(0,m.jsx)("path",{d:"M61.6599 20.0998C62.6242 17.777 61.4743 14.9558 59.0293 13.8701C56.8182 12.9 54.1875 13.6253 52.9771 15.205C51.0646 17.8037 53.1788 22.4849 56.4752 23.0188C58.5007 23.3793 60.8126 22.1422 61.6599 20.0998Z",fill:"white"}),(0,m.jsx)("mask",{id:"mask1_13824_24706",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"52",y:"13",width:"10",height:"11",children:(0,m.jsx)("path",{d:"M61.657 20.1037C62.6213 17.7809 61.4714 14.9597 59.0263 13.874C56.8153 12.9039 54.1846 13.6292 52.9742 15.2089C51.0617 17.8076 53.1759 22.4888 56.4723 23.0227C58.4978 23.3832 60.8097 22.1462 61.657 20.1037Z",fill:"white"})}),(0,m.jsx)("g",{mask:"url(#mask1_13824_24706)",children:(0,m.jsx)("g",{style:{mixBlendMode:"multiply"},opacity:"0.4",children:(0,m.jsx)("path",{d:"M62.1224 21.6901C62.1224 21.6901 55.4327 24.1374 53.9762 19.0647C52.5196 13.9919 56.1267 11.5 56.1267 11.5L47.9482 14.3345L55.921 26.2911L62.1224 21.6901Z",fill:"#988AA3"})})})]}),(0,m.jsx)("defs",{children:(0,m.jsxs)("filter",{id:"filter0_d_13824_24706",x:"0",y:"0.00195312",width:"66",height:"43.998",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,m.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,m.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,m.jsx)("feOffset",{dx:"1",dy:"1"}),(0,m.jsx)("feGaussianBlur",{stdDeviation:"1.5"}),(0,m.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,m.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.21 0"}),(0,m.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_13824_24706"}),(0,m.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_13824_24706",result:"shape"})]})})]})}},14116:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>A});var o=e(74059),m=e(66748),g=e.n(m),l=e(51044),C=e(13020),T=e(57464);class A extends l.PureComponent{constructor(p){super(p),(0,o.A)(this,"handleChange",r=>{this.setState({value:r});const{onChange:x}=this.props;x&&x(r)}),(0,o.A)(this,"handleBlur",()=>{const{onConfirm:r}=this.props,{value:x}=this.state,f=x!==this.initialValue;r&&r(this.state.value,f)}),this.state={value:p.value,isPreviouslyEditing:p.isEditing},this.initialValue=p.value}static getDerivedStateFromProps(p,r){return p.isEditing!==r.isPreviouslyEditing?{value:p.value,isPreviouslyEditing:p.isEditing}:null}render(){const{isEditing:p,className:r,isShowToolTips:x,highlightKeyword:f}=this.props,{value:u}=this.state;return(0,T.jsx)(C.A,{value:u,className:r,editing:p,onBlur:this.handleBlur,onChange:this.handleChange,isShowToolTips:x,highlightKeyword:f})}}(0,o.A)(A,"propTypes",{value:g().string,className:g().string,isEditing:g().bool,onConfirm:g().func,onChange:g().func,isShowToolTips:g().bool}),(0,o.A)(A,"defaultProps",{isShowToolTips:!1})},77242:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>b});var o=e(74059),m=e(51044),g=e(60185),l=e(86634),C=e.n(l),T=e(88223),A=e(2313),k=e(21676),p=e(59475);const r=k.Ay.div.withConfig({displayName:"styles__StyledDraggingItem",componentId:"sc-2bnk9y-0"})(["position:absolute;width:180px;pointer-events:none;z-index:200;& > li,& > div{background:"," !important;box-shadow:"," !important;opacity:0.7;input{background:"," !important;border:none !important;}.expander,.actions,.operations,.dragHandArea{display:none !important;}}.layer-item{display:flex;align-items:center;.layer-item-icon{",";}}*{pointer-events:none !important;}&.is-outside-container{pointer-events:auto;cursor:not-allowed !important;}"],z=>z.theme.color_bg_canvas,z=>z.theme.drag_sort_box_shadow,z=>z.theme.color_bg_canvas,p.u6),x=k.Ay.div.withConfig({displayName:"styles__StyledDnd",componentId:"sc-2bnk9y-1"})(["position:absolute;top:0;bottom:-3px;right:0;left:0;color:#298df8;overflow:hidden;&.is-invalid{cursor:not-allowed;}.group-indicator{position:absolute;&::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;border:2px solid currentColor;opacity:0.6;border-radius:6px;}}.indicator{position:absolute;&.self-prev,&.self-next,&.prevSibling,&.nextSibling{width:152px !important;.indicator-line{position:absolute;left:0;width:100%;}.indicator-circle{position:absolute;right:100%;width:8px;height:8px;border-radius:50%;border:2px solid currentColor;}}&.self-prev,&.prevSibling{.indicator-line{top:0;border-bottom:2px solid currentColor;}.indicator-circle{top:-3px;}}&.self-next,&.nextSibling{.indicator-line{bottom:0;border-top:2px solid currentColor;}.indicator-circle{bottom:-3px;}}}"]);var f=e(57464);const u={cid:"",type:null,parentCid:"",isValid:!1};class b extends m.PureComponent{constructor(S){super(S),(0,o.A)(this,"checkAutoScroll",(y,a)=>{const{containerRect:$}=this.props;let ce=!1,de=0;y>$.left&&y<$.right&&(a>0&&a<$.top+20?(ce=!0,de=-10):a>$.bottom-20&&a<window.innerHeight&&(ce=!0,de=10)),ce?this.createAutoScrollTask(de):this.destroyAutoScrollTask()}),(0,o.A)(this,"createAutoScrollTask",y=>{if(this.timer)return;const{getContainerElement:a}=this.props,$=a();this.timer=setInterval(()=>{$.scrollTop+=y},50)}),(0,o.A)(this,"destroyAutoScrollTask",()=>{clearInterval(this.timer),this.timer=null});const _=S.draggingElement.cloneNode(!0);_.style.cssText=getComputedStyle(S.draggingElement).cssText,this.state={isDragStart:!1,$element:_,x:0,y:0,matchData:u}}componentDidMount(){const{matchDataList:S,containerRect:_,getContainerElement:y,onDrop:a,rectQueryMap:$,onDragStartCallback:ce}=this.props;(0,T.FJ)({onDragStart:()=>{this.setState({isDragStart:!0}),ce==null||ce()},onDrag:(de,fe)=>{const se=y(),J=de-_.left+se.scrollLeft,ve=fe-_.top+se.scrollTop;if(de<_.left||de>_.right||fe<_.top-20||fe>_.bottom+20)this.setState({x:de,y:fe,matchData:u});else{const D=S.find(R=>{const{min:{x:V,y:O},max:{x:Ce,y:ae}}=R;return J>=V&&J<Ce&&ve>=O&&ve<ae})||u;this.setState({x:de,y:fe,matchData:D})}this.checkAutoScroll(de,fe)},onDrop:()=>{const{matchData:de}=this.state;this.destroyAutoScrollTask(),a(de)}})}render(){const{offsetX:S,offsetY:_,containerRect:y,rectQueryMap:a,protalClassName:$,noGroupIndicator:ce}=this.props,{isDragStart:de,$element:fe,x:se,y:J,matchData:ve}=this.state;if(!de)return null;const D=!(0,A.El)(se,J,y);return(0,f.jsx)(h,{element:fe,x:se,y:J,offsetX:S,offsetY:_,matchData:ve,rectQueryMap:a,isOutSideContainer:D,protalClassName:$,noGroupIndicator:ce})}}class h extends m.PureComponent{constructor(S){super(S),this.$portalElem=document.createElement("div")}componentDidMount(){document.body.appendChild(this.$portalElem)}componentWillUnmount(){document.body.removeChild(this.$portalElem)}render(){const{element:S,x:_,y,offsetX:a,offsetY:$,matchData:ce,rectQueryMap:de,isOutSideContainer:fe,protalClassName:se,noGroupIndicator:J}=this.props,{cid:ve,parentCid:D,type:R,isValid:V,type2:O}=ce;return(0,f.jsxs)(x,{className:C()("dnd",{"is-invalid":!V}),children:[!J&&V&&D&&de[D]&&(0,f.jsx)(E,{rect:de[D].rect}),O==="lastChild"&&V&&(0,f.jsx)(E,{rect:de[D].rect}),V&&ve&&de[ve]&&(0,f.jsx)(N,{type:R,rect:R==="nextSibling"?de[ve].treeRect:de[ve].contentRect}),(0,g.createPortal)((0,f.jsx)(r,{className:C()("dragging-item",{"is-outside-container":fe},se),style:{marginTop:-$,marginLeft:-a,left:_,top:y},dangerouslySetInnerHTML:{__html:S.outerHTML}}),this.$portalElem)]})}}const E=z=>{let{rect:S}=z;const _={top:S.top,left:S.left,width:S.width,height:S.height};return(0,f.jsx)("div",{className:"group-indicator",style:_})},N=z=>{let{type:S,rect:_}=z;if(S==="firstChild")return null;const y={top:_.top,left:_.left,width:_.width,height:_.height};return(0,f.jsxs)("div",{className:C()("indicator",S),style:y,children:[(0,f.jsx)("span",{className:"indicator-line"}),(0,f.jsx)("span",{className:"indicator-circle"})]})}},52367:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>k});var o=e(51044),m=e(5868),g=e(33386),l=e(57464);function C(p){return class extends o.Component{constructor(x){super(x),this.state={hasError:!1}}static getDerivaedStateFromError(){return{hasError:!0}}componentDidCatch(x,f){console.error(x,f),(0,g.p)("[fatal]: ErrorBoundary",x,f,this.props)}render(){return this.state.hasError?null:(0,l.jsx)(p,{...this.props})}}}const T=C;function A(p){const{value:r,highlightKeyword:x}=p,f=(0,o.useMemo)(()=>{if(!r||!x||typeof r!="string"||typeof x!="string")return null;const u=new RegExp((0,m.$)(x),"ig");return u.test(r)?r.replaceAll(u,'<span class="highlight-keyword">'+x+"</span>"):null},[r,x]);return f?(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:f}}):(0,l.jsx)(o.Fragment,{children:r})}const k=T((0,o.memo)(A))},88512:(Et,ke,e)=>{"use strict";e.d(ke,{O:()=>m});var o=e(21676);const m=o.Ay.div.withConfig({displayName:"styles__StyledEditableSpan",componentId:"sc-1g9q1xw-0"})(["width:100%;height:24px;line-height:22px;overflow:hidden;border-top:1px solid transparent;border-bottom:1px solid transparent;white-space:nowrap;text-overflow:ellipsis;&.is-editing{width:100%;display:flex;align-items:stretch;border-bottom:1px solid ",";textarea{resize:none;border:none;outline:none;width:100%;height:100%;background:",";color:",";white-space:nowrap;overflow:hidden;overflow-x:auto;&::-webkit-scrollbar{display:none;}&::selection{background:color(#f55d54 a(0.2));}}}"],g=>g.theme.color_proto,g=>g.theme.color_bg_white,g=>g.theme.color_text_L1)},54852:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>p});var o=e(51044),m=e(29815),g=e(7718),l=e(29601),C=e(96828),T=e(53955),A=e(36820),k=e(57464);class p extends o.Component{render(){return(0,k.jsx)(g.tH,{fallback:(0,k.jsx)(m.A,{locale:(0,l.w)()}),beforeCapture:(x,f)=>{x.setLevel("fatal");const u=window.reduxLogList.filter(Boolean).map(a=>a.type),b=JSON.stringify(u,null,2);x.setExtra("reduxLogList",b),(0,A.kH)("fatal_error",{name:f.name,message:f.message});const h=(0,T.dP)(),E=[];if(h){var N;const a=(h==null||(N=h.editor)==null||(N=N.state)==null||(N=N.mode)==null?void 0:N.selections)||[];for(const $ of a){var z,S,_,y;!((z=sdkStore)!=null&&z.isTrashed($))&&(S=sdkStore)!=null&&(_=(y=S).findUpHotItemList)!=null&&_.call(y,$,C.gT)&&E.push(sdkStore.findUpHotItemList($,C.gT).map(ce=>({key:ce.key,type:ce.hotAttr.type,name:ce.hotAttr.name})))}}x.setExtra("selectionKeyPathList",JSON.stringify(E,null,2))},children:this.props.children})}}},77211:(Et,ke,e)=>{"use strict";e.d(ke,{Ay:()=>x,NI:()=>r,V:()=>p});var o=e(74059),m=e(66748),g=e.n(m),l=e(51044),C=e(99267),T=e(83984),A=e(57464);const{push:k}=(0,C.O)(),p="/mb-proto2/images/preview/image-load.png",r=f=>{let{flpakKey:u,ssKey:b,ssTaskMode:h,ssZoomMode:E}=f;return u&&b&&h&&E?"/flatshot/sync.png?tMod="+h+"&zMod="+E+"&k="+u+"&ssK="+b:p};class x extends l.PureComponent{constructor(u){super(u),(0,o.A)(this,"setElementRef",b=>this.$elem=b),(0,o.A)(this,"loadSnapshot",async()=>{const{projectMetaCid:b,snapshotKey:h,isVisible:E,mode:N,ssZoomMode:z}=this.props;if(E&&!this.isUnmounted){{const S=this.$elem;await new Promise((_,y)=>{const a=r({flpakKey:b,ssKey:h,ssTaskMode:N||T.rY.PNG_PAGE,ssZoomMode:z||T.BU.LETTERBOX_256});S.onerror=()=>{S.src=p,y(new Error("failed to load "+a))},S.onload=()=>_(S),S.src=a})}this.imageDidLoad=!0}}),this.isUnmounted=!1,this.retryTimer=null,this.imageDidLoad=!1}componentDidMount(){const{isVisible:u}=this.props;u&&!this.imageDidLoad&&this.loadSnapshot()}componentDidUpdate(u){const{isVisible:b}=this.props;b&&!this.imageDidLoad&&(clearTimeout(this.retryTimer),this.generateSnapshotTask())}componentWillUnmount(){this.isUnmounted=!0,clearTimeout(this.retryTimer)}generateSnapshotTask(u){u===void 0&&(u=5),k(this.loadSnapshot).catch(h=>{this.retryTimer=setTimeout(()=>{this.generateSnapshotTask(u*2)},u*1e3)})}render(){return(0,A.jsx)("img",{ref:this.setElementRef,src:p})}}(0,o.A)(x,"propTypes",{projectMetaCid:g().string.isRequired,isVisible:g().bool.isRequired})},88319:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>f});var o=e(74059),m=e(51044),g=e(60185),l=e(7290),C=e(86634),T=e.n(C),A=e(26437),k=e(21676);const p=k.Ay.div.withConfig({displayName:"styles__StyledActionList",componentId:"sc-1ef2tfi-0"})(["position:absolute;z-index:1101;font-size:12px;.list-content{padding:8px;background:",";box-shadow:",";min-width:160px;cursor:pointer;border-radius:8px;border:1px solid ",";.action{display:flex;align-items:center;padding:0 16px;border-radius:4px;height:28px;color:",";white-space:nowrap;.new{margin-left:5px;}&.disabled{color:",";}.svg-icon{color:",";transition:flex 0.2s ease-in-out;.fore{fill:#c8cdd0;}}.item-icon{margin-right:6px;}a{width:100%;line-height:26px;height:100%;color:unset;}&:not(.disabled):hover{background:",";color:",";.svg-icon{color:",";.fore{fill:",";}}}.item-select{margin-left:10px;}}}"],u=>u.theme.color_bg_white,u=>u.theme.shadow_m,u=>u.theme.color_bg_border_01,u=>u.theme.color_text_L1,u=>u.theme.color_text_disabled01,u=>u.theme.color_text_L1,u=>u.theme.color_btn_secondary_hover,u=>u.theme.color_text_L1,u=>u.theme.color_proto,u=>u.theme.color_proto),r=k.Ay.div.withConfig({displayName:"styles__Divider",componentId:"sc-1ef2tfi-1"})(["margin:8px 0;border-top:1px solid ",";"],u=>u.theme.color_bg_border_01);var x=e(57464);class f extends m.PureComponent{constructor(b){super(b),(0,o.A)(this,"handStopPropagation",h=>{h.stopPropagation()}),(0,o.A)(this,"setMenuRef",h=>this.$menu=h),this.state={listMenuPosition:{}},this.el=document.createElement("div")}componentDidMount(){const{targetNode:b,direction:h,distance:E}=this.props;document.body.appendChild(this.el);const{sourceNodePosition:N}=(0,A.A)(b,this.$menu,{direction:h,distance:E,forceDirection:!1});this.setState({listMenuPosition:N})}componentWillUnmount(){document.body.removeChild(this.el)}render(){const{menuItems:b,className:h}=this.props,{listMenuPosition:E}=this.state,N=b.filter(S=>{let{isShow:_}=S;return _}),z={...E};return(0,g.createPortal)((0,x.jsx)(p,{ref:this.setMenuRef,style:z,children:(0,x.jsx)("div",{id:"list-menu",className:T()("list-content",h),onMouseDown:this.handStopPropagation,onDoubleClick:this.handStopPropagation,children:N.map(S=>{let{key:_,label:y,isActive:a,iconName:$,onClick:ce,renderAction:de,isNew:fe}=S;return typeof de=="function"?de():y==="divider"?(0,x.jsx)(m.Fragment,{children:(0,x.jsx)(r,{})},y):(0,x.jsxs)("div",{"data-item":_,className:"action",onClick:ce,children:[$&&(0,x.jsx)(l.C,{className:"item-icon",name:$}),(0,x.jsx)("span",{children:y}),a&&(0,x.jsx)(l.C,{className:"item-select",name:"library/select/new"}),fe&&(0,x.jsx)(l.C,{className:"new",name:"design/find_picture/new",isColorPure:!0,style:{width:27,height:12}})]},y)})})}),this.el)}}(0,o.A)(f,"defaultProps",{menuX:"",direction:"down",distance:0})},9126:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>f,D:()=>x});var o=e(51044),m=e(86634),g=e.n(m),l=e(7290),C=e(56812),T=e(60475),A=e(63555),k=e(14495),p=e(57464);const r=(0,o.memo)(u=>{let{widget:b,className:h,isDynamic:E,isExpanded:N}=u;const{type:z,chartConfig:S}=b;switch(z){case A.x.WBasket:return E?(0,p.jsx)(l.C,{className:g()(h,"design-dynamic-new"),name:"left_panel/dynamic/new"}):(0,p.jsx)(l.C,{className:g()(h,"design-master-new"),name:"left_panel/master/new"});case A.x.WIcon:{const{key:_,iconData:{viewBox:y,path:a,svgAttr:$,isMultiColorIcon:ce}}=b;return(0,p.jsx)(x,{cid:_,isMultiColorIcon:ce,view_box:y,path:a,svgAttr:$})}case A.x.WWrap:{const _=N?"group_open":"group_close";return(0,p.jsx)(l.C,{className:g()("icon","group-icon",h),name:"left_panel/"+_})}case A.x.WChart:{const{chartType:_}=S;return(0,p.jsx)(l.C,{className:g()(h,"design-"+_+"-new"),name:"left_panel/"+_+"/new"})}case A.x.WSelectionControl:return(0,p.jsx)(l.C,{className:g()(h,"highWidget"),name:"left_panel/deluxe_widget/new"});case A.x.WSticky:return(0,p.jsx)(l.C,{className:g()(h,"highWidget"),name:"left_panel/canvas_list_/sticky/sticky_20"});case A.x.WTear:return(0,p.jsx)(l.C,{className:g()(h,"highWidget"),name:"left_panel/canvas_list_/sticky/tear_20"});case A.x.WElbow:return(0,p.jsx)(l.C,{className:g()(h,"highWidget"),name:"left_panel/canvas_list_/sticky/elbow_24"});case A.x.WSwimlane:{const{swimlaneType:_}=b;return(0,p.jsx)(l.C,{className:g()(h,"design-"+_+"-new"),name:"left_panel/"+_+"/new"})}case A.x.wFlowClosed:case A.x.WFlowOpened:{const{subType:_}=b;return(0,p.jsx)(l.C,{className:g()(h,"highWidget"),name:"left_panel/flow_"+_})}case A.x.WTree:return(0,p.jsx)(l.C,{className:g()(h,"highWidget"),name:"left_panel/tree"});case A.x.WCode:return(0,p.jsx)(l.C,{className:g()(h,"highWidget"),name:"left_panel/code"});case A.x.Canvas:{const _=b.asOverlay?"overlay":"rResCanvas";return(0,p.jsx)(l.C,{className:g()(h,"design-"+_+"-new"),name:"left_panel/"+_+"/new"})}default:{const _=T.G[z];return _?(0,k.X3)(z)?(0,p.jsx)(l.C,{className:g()(h,"design-"+_.svg_icon+"-new","highWidget"),name:"left_panel/deluxe_widget/new"}):_.svg_icon?(0,p.jsx)(l.C,{className:g()(h,"design-"+_.svg_icon+"-new"),name:"left_panel/"+_.svg_icon+"/new"}):_.icon_name==="text"?(0,p.jsx)(l.C,{className:g()(h,"design-"+_.icon_name),name:"left_panel/text/new"}):_.name==="ios_check"||_.name==="android_check"?(0,p.jsx)(l.C,{className:g()(h,'design-checkbox-new"'),name:"left_panel/checkbox/new"}):_.name==="android_radio"?(0,p.jsx)(l.C,{className:g()(h,"design-android_radio-new"),name:"left_panel/radio/new"}):_.icon_name==="battery"?(0,p.jsx)(l.C,{className:g()(h,"design-"+_.icon_name+"-new"),name:"left_panel/"+_.icon_name+"/new"}):_.name.includes("keyboard")?(0,p.jsx)(l.C,{className:g()(h,"design-keyboard-new"),name:"left_panel/keyboard/new"}):_.name.includes("switch")?(0,p.jsx)(l.C,{className:g()(h,"design-switch-new"),name:"left_panel/toggle/new"}):_.name==="nav_bar"?(0,p.jsx)(l.C,{className:g()(h,"design-nav-bar-new"),name:"left_panel/topbar/new"}):(0,p.jsx)("i",{className:g()("icon","icon-widget-"+(_.icon_name||""),h)}):null}}}),x=(0,o.memo)(u=>{let{cid:b,isMultiColorIcon:h,view_box:E,path:N,svgAttr:z}=u;const S=z&&z.fill?{fill:z.fill}:z&&z.stroke?{stroke:z.stroke}:{};return h&&b?(0,p.jsx)(C.F,{className:g()({"is-multi-color-icon":h}),cid:b,path:N,viewBox:E}):(0,p.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:g()("icon","svg-icon-path-icon","fill"),viewBox:E,dangerouslySetInnerHTML:{__html:N},...S})}),f=r},9819:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>f});var o=e(74059),m=e(51044),g=e(86634),l=e.n(g),C=e(7290),T=e(78869),A=e.n(T),k=e(73773),p=e(21676);const r=p.Ay.div.withConfig({displayName:"styles__StyledSearchBar",componentId:"sc-eqavh3-0"})(["position:relative;height:26px;display:flex;align-items:center;width:100%;border-radius:2px;background:",";border-width:1px;border-style:solid;border-color:",";transition:all 0.2s ease-out;overflow:hidden;&.tempDisabled{opacity:0.4;}.search-icon{flex:0 0 14px;margin-left:10px;width:13px;height:14px;path{fill:",";}}.autoCompleteInput{position:absolute;width:1px;height:1px;top:-2000px;}input{width:100%;height:100%;margin-left:5px;color:",";&::placeholder{color:",";}&:focus{border-color:",";}}.clear-icon{flex:0 0 8px;margin-right:14px;margin-left:5px;width:8px;height:8px;transition:all 0.15s ease-in-out;cursor:pointer;path{fill:",";}&:hover{path{fill:",";}}}&.isFocus{background:",";border-color:",";}.search-bar-right-devider{width:1px;height:16px;background:rgb(222,224,226);}.search-bar-exit-word{width:40px;flex:0 0 40px;padding:0 8px;font-size:12px;font-weight:400;color:",";&:hover{color:",";}}"],u=>u.theme.color_bg_canvas,u=>u.theme.color_bg_border_02,u=>u.theme.color_text_L3,u=>u.theme.color_text_L1,u=>u.theme.color_text_L3,u=>u.theme.color_proto,u=>u.theme.color_text_L2,u=>u.theme.color_text_L1,u=>u.theme.color_bg_canvas,u=>u.theme.color_proto,u=>u.theme.color_text_L2,u=>u.theme.color_text_L1);var x=e(57464);class f extends m.PureComponent{constructor(b){super(b),(0,o.A)(this,"setInputRef",h=>this.$input=h),(0,o.A)(this,"focus",()=>this.$input.focus()),(0,o.A)(this,"handleUpdateValue",h=>{const{onChange:E}=this.props;E?E(h):this.setState({value:h})}),(0,o.A)(this,"handleChange",h=>{const E=h.target.value;this.handleUpdateValue(E),!this.state.isInputComposition&&this.handleSearch(E)}),(0,o.A)(this,"handleSearch",A()(h=>{const{onSearch:E}=this.props;E&&E(h.trim())},this.props.wait)),(0,o.A)(this,"handleClear",()=>{const{onClear:h,onSearch:E}=this.props;this.handleUpdateValue(""),h?h():E&&E("")}),(0,o.A)(this,"handleMouseDown",h=>h.preventDefault()),(0,o.A)(this,"handleKeyDown",h=>{if(h.key===k._.Enter){const{value:E,onChange:N}=this.props,{value:z}=this.state,S=N?E:z;this.handleSearch(S)}}),(0,o.A)(this,"handleFocus",()=>{const{onFocus:h}=this.props;this.setState({isFocus:!0}),h&&h()}),(0,o.A)(this,"handleBlur",()=>{this.setState({isFocus:!1})}),(0,o.A)(this,"handleClick",h=>{h&&MB.notice({text:I18N.Common.feature_is_not_available,type:"warning"})}),(0,o.A)(this,"handleCompositionEnd",h=>{this.setState({isInputComposition:!1},()=>this.handleChange(h))}),this.state={value:b.value,isFocus:b.isFocus,isInputComposition:!1}}render(){const{placeholder:b,className:h,inputStyle:E,value:N,tempDisabled:z,canClear:S=!0,onChange:_,renderRightNode:y=null}=this.props,{isFocus:a,value:$}=this.state,ce=_?N:$;return(0,x.jsxs)(r,{type:"search",className:l()(h,a?"isFocus":"",z&&"tempDisabled"),onClick:()=>this.handleClick(z),children:[(0,x.jsx)(C.C,{name:"design/scale_search",className:"search-icon"}),(0,x.jsx)("input",{ref:this.setInputRef,style:E,type:"text",value:ce,placeholder:b,onChange:this.handleChange,onKeyDown:this.handleKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,onCompositionStart:()=>this.setState({isInputComposition:!0}),onCompositionEnd:this.handleCompositionEnd,disabled:z}),ce.length>0&&S&&(0,x.jsx)(C.C,{name:"design/scale_clear",className:"clear-icon",onMouseDown:this.handleMouseDown,onClick:this.handleClear}),y&&y()]})}}(0,o.A)(f,"defaultProps",{wait:1e3})},27754:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>T});var o=e(74059),m=e(51044),g=e(95230),l=e(9376),C=e(57464);class T extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"setElementRef",k=>this.$elem=k),(0,o.A)(this,"handleWheel",k=>{const{x:p,y:r,scale:x,isDisabled:f,onOffsetChange:u}=this.props;if(f)return;k.preventDefault();const b=Math.max(-1,Math.min(k.deltaY,1));if(k.ctrlKey||k.metaKey){const{top:h,left:E,right:N,bottom:z}=this.$elem.getBoundingClientRect(),S=(E+N)/2,_=(h+z)/2,y=x<=100?x-b*5:x-x*b*.05,a=k.pageX-S,$=k.pageY-_;this.handleZoom(y,a,$)}else{if((0,l.uF)()&&k.shiftKey){u(p-k.deltaY,r-k.deltaX);return}u(p-k.deltaX,r-k.deltaY)}}),(0,o.A)(this,"renderChild",k=>{const{x:p,y:r,scale:x,isDisabled:f}=this.props;return typeof k=="function"?k(p,r,x,f):k})}componentDidMount(){this.$elem.addEventListener("wheel",this.handleWheel,{passive:!1})}componentWillUnmount(){this.$elem.removeEventListener("wheel",this.handleWheel)}handleZoom(k,p,r){const{x,y:f,scale:u,onScaleAndOffsetChange:b}=this.props;k=Math.min(Math.max(k,g.sI),g.sH);const h=k/u;if(h===1)return;const E=p+h*(x-p),N=r+h*(f-r);b(E,N,k)}render(){const{x:k,y:p,scale:r,children:x,isDisabled:f,onOffsetChange:u,onScaleAndOffsetChange:b,...h}=this.props;return(0,C.jsx)("div",{...h,ref:this.setElementRef,children:x.length>1?x.map(E=>this.renderChild(E)):this.renderChild(x)})}}},86075:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>k,z:()=>x});var o=e(74059),m=e(51044),g=e(86634),l=e.n(g),C=e(11777),T=e(6304),A=e(57464);class k extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleChange",u=>{if(this.props.disabled||u.currentTarget.classList.contains("disabled"))return;const b=u.currentTarget.dataset.value;this.props.handleChange(b)})}render(){const{options:u,value:b,disabled:h,className:E,isLongTimeHover:N}=this.props;return(0,A.jsx)(T.N,{className:l()("radio-line",E,{disabled:h}),children:u.map((z,S)=>{const{label:_,value:y,compatibleValues:a,disabled:$,tip_title:ce}=z;return N?(0,A.jsx)(r,{label:_,value:b,optionValue:y,compatibleValues:a,disabled:$,tip_title:ce,handleChange:this.handleChange},y):(0,A.jsx)(p,{label:_,value:b,optionValue:y,compatibleValues:a,disabled:$,tip_title:ce,handleChange:this.handleChange},y)})})}}(0,o.A)(k,"defaultProps",{isLongTimeHover:!1});const p=f=>{const{label:u,value:b,optionValue:h,compatibleValues:E,disabled:N,tip_title:z,handleChange:S}=f,_=(0,m.useRef)(null),y=!N&&(E?E.includes(b):b===h),a=$=>{S&&S($)};return(0,A.jsx)(C.A,{content:z,direction:"down",children:(0,A.jsx)("li",{className:l()("radio-option",{active:y,disabled:N}),"data-value":h,onClick:a,ref:_,children:(0,A.jsx)("div",{className:"radio-content",children:u})},h)})},r=f=>(0,A.jsx)(C.A,{component:(0,A.jsx)(p,{...f})}),x=f=>(0,A.jsx)(C.A,{component:(0,A.jsx)(k,{...f})})},6304:(Et,ke,e)=>{"use strict";e.d(ke,{N:()=>m});var o=e(21676);const m=o.Ay.ol.withConfig({displayName:"style__StyledRadioLine",componentId:"sc-awuumb-0"})(["display:flex;justify-content:center;height:100%;align-items:center;background:",";color:",";overflow:hidden;text-align:center;border:",";&.radio-line{height:24px;}&.quick-radius{margin-bottom:0;li:first-child{border-right:",";}}.radio-option{flex:1;display:flex;width:100%;height:100%;justify-content:center;align-items:center;position:relative;cursor:pointer;&:not(.active):hover{background:",";border-radius:4px;}.radio-content{display:flex;justify-content:center;align-items:center;position:relative;}&.active{background:",";}.main{fill:#7d8694;}.secondary{fill:#c8cdd0;}&.disabled{color:",";background-color:#f7f7f7;cursor:not-allowed;svg{color:"," !important;}}}&.link-guesture-list{.radio-option:not(.active):hover{background:",";}}&.disabled{cursor:not-allowed;.radio-option{cursor:not-allowed;pointer-events:none;svg{color:"," !important;}}}.image_view_flipH,.image_view_flipV{path:first-child{fill:",";}}"],g=>g.theme.color_bg_white,g=>g.theme.color_text_L2,g=>g.theme.color_bg_border_02,g=>g.theme.color_bg_border_02,g=>g.theme.color_btn_secondary_hover,g=>g.theme.color_btn_secondary_active,g=>g.theme.color_text_disabled01,g=>g.theme.color_text_disabled01,g=>g.theme.color_btn_secondary_hover,g=>g.theme.color_text_disabled01,g=>g.theme.color_text_L1)},70522:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>C});var o=e(74059),m=e(51044);const g={detector:"nT4U2_NOIS7CAZHovWxY"};var l=e(57464);class C extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleResize",()=>{const A=this.elem.getBoundingClientRect();this.props.onResize(A)})}componentDidMount(){var A;((A=this.elem)==null?void 0:A.contentWindow)&&this.elem.contentWindow.addEventListener("resize",this.handleResize)}componentWillUnmount(){var A;const k=(A=this.elem)==null?void 0:A.contentWindow;k&&k.removeEventListener("resize",this.handleResize)}render(){return(0,l.jsx)("iframe",{ref:A=>this.elem=A,className:g.detector})}}},94498:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>k});var o=e(74059),m=e(51044),g=e(9819),l=e(19722),C=e(21676);const T=C.Ay.div.withConfig({displayName:"styles__StyledSearchComponent",componentId:"sc-tgw1rb-0"})(["display:flex;width:100%;height:100%;align-items:center;padding:0 12px 0 8px;.nav-back-icon{flex-shrink:0;margin-right:4px;svg.svg-icon{width:9px;height:14px;path{stroke:",";fill:none;}}}.searchBar{height:28px;border:1px solid ",";border-radius:6px;background:",";color:",";flex:1;&:hover,&.isFocus{background:",";border-color:",";}}.WorkspaceInput{border-radius:13px;}"],p=>p.theme.color_text_L1,p=>p.theme.color_bg_border_02,p=>p.theme.color_bg_white,p=>p.theme.color_text_L3,p=>p.theme.color_bg_white,p=>p.theme.color_text_link_normal);var A=e(57464);class k extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"setSearchBarRef",r=>this.searchBar=r)}componentDidMount(){this.searchBar&&this.searchBar.focus()}render(){const{keyword:r,placeholder:x,onChangeKeyword:f,onExitSearch:u}=this.props;return(0,A.jsxs)(T,{children:[(0,A.jsx)(l.A,{className:"nav-back-icon",name:"left_panel/back/arrow",onClick:u}),(0,A.jsx)(g.A,{className:"searchBar",ref:this.setSearchBarRef,value:r,placeholder:x,onChange:f})]})}}},66965:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>T});var o=e(51044),m=e(21676);const g=m.Ay.ul.withConfig({displayName:"styles__StyledScreenList",componentId:"sc-1pj18ld-0"})(["&,ol,li{list-style:none;}"]);var l=e(57464);const T=(0,o.memo)(k=>{let{activeScreenMetaCid:p="",editingScreenMetaCid:r="",screenSelection:x=[],renderScreenMetaItem:f,screenTreeData:u,dummySelect:b=new Set,collapseScreenMetaCidSet:h=new Set,continuousGroup:E=[],dispatch:N}=k;return(0,l.jsx)(g,{children:u.children.map((z,S)=>(0,l.jsx)(A,{treeNode:z,depth:0,screenSelection:x,activeScreenMetaCid:p,editingScreenMetaCid:r,renderScreenMetaItem:f,dummySelect:b,collapseScreenMetaCidSet:h,continuousGroup:E,dispatch:N},z.cid))})});class A extends o.PureComponent{render(){const{treeNode:p,depth:r,activeScreenMetaCid:x,editingScreenMetaCid:f,screenSelection:u,renderScreenMetaItem:b,dummySelect:h,collapseScreenMetaCidSet:E,continuousGroup:N,dispatch:z}=this.props,{cid:S,data:_,children:y}=p,a=!E.has(S),$=!!y.length;return(0,l.jsxs)("li",{"data-cid":S,className:"rn-content-item",id:"mobile-page-item",children:[b({depth:r,screenMeta:_,hasScreenMetaChildren:$,screenSelection:u,activeScreenMetaCid:x,editingScreenMetaCid:f,dummySelect:h,collapseScreenMetaCidSet:E,continuousGroup:N,dispatch:z}),y.length>0&&a&&(0,l.jsx)("ol",{type:"screen-list",className:"child-screens",children:y.map((ce,de)=>(0,l.jsx)(A,{treeNode:ce,depth:r+1,screenSelection:u,activeScreenMetaCid:x,editingScreenMetaCid:f,renderScreenMetaItem:b,dummySelect:h,collapseScreenMetaCidSet:E,continuousGroup:N,dispatch:z},ce.cid))})]})}}},87644:(Et,ke,e)=>{"use strict";e.d(ke,{$T:()=>k,yP:()=>p});var o=e(51044),m=e(86634),g=e.n(m),l=e(21676),C=e(9376),T=e(57464);const A={vertical:{offsetSize:"offsetHeight",scrollPosition:"scrollTop",scrollSize:"scrollHeight",clientSize:"clientHeight",scrollDirection:"scrollY",size:"height",client:"clientY",direction:"top",page:"pageY",barClassName:"bar-vertical",thumbClassName:"thumb-vertical"},horizontal:{offsetSize:"offsetWidth",scrollPosition:"scrollLeft",scrollSize:"scrollWidth",clientSize:"clientWidth",scrollDirection:"scrollX",size:"width",client:"clientX",direction:"left",page:"pageX",barClassName:"bar-horizontal",thumbClassName:"thumb-horizontal"}},k=o.memo(function(u){const{isAutoHideBar:b,containerRef:h,verticalOffset:E=0,horizontalOffset:N=0,verticalDragCallback:z=()=>null,horizontalCallback:S=()=>null}=u;return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(p,{type:"vertical",containerRef:h,isAutoHideBar:b,offset:E,dragCallback:z}),(0,T.jsx)(p,{type:"horizontal",containerRef:h,isAutoHideBar:b,offset:N,dragCallback:S})]})}),p=o.memo(function(u){const{type:b,containerRef:h,isAutoHideBar:E,offset:N=0,dragCallback:z=()=>null}=u,S=o.useRef(null),_=o.useRef(null),y=o.useRef(0),[a,$]=(0,o.useState)(0),[ce,de]=(0,o.useState)(0),fe=o.useRef(1),[se,J]=(0,o.useState)(!1),[ve,D]=(0,o.useState)(E?0:1),[R,V]=(0,o.useState)(!1),O=(0,o.useCallback)(()=>{const Le=h.current,Ve=S.current;if(!Le||!Ve)return;const Ne=Le[A[b].clientSize],We=Le[A[b].scrollSize],ze=We>Ne;let ft,mt,i;if(ze){const gt=Ve[A[b].clientSize]-N*2;ft=Ne/We*gt,mt=(gt-ft)/(We-Ne),i=Le[A[b].scrollPosition]*mt,i=Math.max(i,0),i=Math.min(i,gt-ft)}else ft=0,mt=1,i=0;y.current=ft,fe.current=mt,$(ft),de(i),V(ze)},[h,b,N]),Ce=(0,o.useCallback)(()=>{const Le=h.current,Ve=S.current,Ne=y.current;if(!Le||!Ve)return;const We=Ve[A[b].clientSize]-N*2;let ze=Le[A[b].scrollPosition]*fe.current;ze=Math.max(ze,0),ze=Math.min(ze,We-Ne),de(ze)},[h,b,N]),ae=(Le,Ve)=>{const{left:Ne,right:We,top:ze,bottom:ft}=Ve.getBoundingClientRect();return Le.clientX>=Ne&&Le.clientX<=We&&Le.clientY>=ze&&Le.clientY<=ft},q=(0,o.useCallback)(Le=>{const Ve=h.current;if(!Ve)return;if(ae(Le,Ve))D(1),document.addEventListener("mouseleave",()=>{D(0)});else{if(se)return;D(0)}},[h,se]);(0,o.useEffect)(()=>{const Le=h.current,Ve=Le==null?void 0:Le.children,Ne=S.current;O();let We,ze;if(Le&&Ne)if(E&&document.addEventListener("mousemove",q),Le.addEventListener("scroll",Ce),ResizeObserver){if(We=new ResizeObserver(O),We.observe(Le),Ve){var ft;We.observe(Ve[0]),(ft=Ve[0].children)!=null&&ft[0]&&We.observe(Ve[0].children[0])}}else ze=new MutationObserver(()=>setTimeout(O,200)),window.addEventListener("resize",O),Ve&&ze.observe(Ve[0],{subtree:!0,attributeFilter:["style"]});return()=>{We&&We.disconnect(),ze&&ze.disconnect(),window.removeEventListener("resize",O),Le&&Le.removeEventListener("scroll",Ce),E&&document.removeEventListener("mousemove",q)}},[h,S,E,b,q,Ce,O]);const K=(0,o.useCallback)(Le=>{if(Le.preventDefault(),!_.current||!h.current)return;const Ve=Le[A[b].page],Ne=h.current[A[b].scrollPosition]*fe.current;let We;const ze=mt=>{J(!0),z(!0);const i=mt[A[b].page]-Ve;We=(Ne+i)/fe.current,h.current[A[b].scrollPosition]=We,Ce()},ft=()=>{document.removeEventListener("mousemove",ze),document.removeEventListener("mouseup",ft),J(!1),z(!1)};document.addEventListener("mousemove",ze),document.addEventListener("mouseup",ft)},[h,b,Ce,z]),xe=(0,o.useCallback)(Le=>{if(Le.preventDefault(),!(!S.current||!_.current||!h.current)&&Le.target!==_.current){const Ne=(Le[A[b].page]-S.current.getBoundingClientRect()[A[b].direction]-window[A[b].scrollDirection]-_.current[A[b].clientSize]/2)/fe.current;h.current[A[b].scrollPosition]=Ne,Ce()}},[h,b,Ce]);if((0,C.nr)())return null;const te={opacity:R?ve:0},H={[A[b].direction]:ce,[A[b].size]:a},re=A[b].barClassName,be=g()(A[b].thumbClassName,{"is-dragging":se});return(0,T.jsx)(r,{className:re,ref:S,style:te,onMouseDown:xe,children:(0,T.jsx)(x,{className:be,ref:_,style:H,onMouseDown:K})})}),r=l.Ay.div.withConfig({displayName:"ScrollBar2__StyledScrollBar",componentId:"sc-18qqocw-0"})(["position:absolute;&.bar-vertical{right:0;top:0;width:10px;height:100%;}&.bar-horizontal{bottom:0;left:0;width:100%;height:10px;}"]),x=l.Ay.div.withConfig({displayName:"ScrollBar2__StyledThumb",componentId:"sc-18qqocw-1"})(["position:absolute;transition:0.3s background-color;background-color:",";border-radius:4px;&.thumb-vertical{top:0;right:0;width:6px;}&.thumb-horizontal{bottom:0;left:0;height:6px;}&:hover,&.is-dragging{background-color:",";}"],f=>f.theme.color_slider_normal,f=>f.theme.color_slider_hover)},4578:(Et,ke,e)=>{"use strict";e.d(ke,{v:()=>b});var o=e(51044),m=e(76713),g=e.n(m),l=e(7290),C=e(36521),T=e(8580),A=e(15336),k=e(36820),p=e(21676);const r=p.Ay.div.withConfig({displayName:"styles__StyledSignUpPrompt",componentId:"sc-1iuu3ne-0"})(["svg.close-btn{cursor:pointer;width:24px;height:24px;border-radius:4px;transition:background-color 0.2s ease-in-out;&:hover{background:#f2f2f2;}&:active{background:#e5e5e5;}}position:absolute;display:flex;align-items:center;flex-direction:row;left:50%;top:78px;transform:translateX(-50%);padding:16px;width:430px;height:64px;background-color:#fff;box-shadow:0 2px 10px rgba(82,94,113,0.1);border-radius:4px;pointer-events:auto;z-index:11;.content{display:flex;flex-direction:column;> span:first-child{font-weight:500;font-size:14px;line-height:14px;color:#333;margin-bottom:4px;}}.login-btn{cursor:pointer;&:lang(en){color:#5303AF;}}button.signup-btn{display:flex;flex-direction:row;justify-content:center;align-items:center;margin-left:auto;margin-right:12px;padding:8px 15px;white-space:nowrap;width:77px;height:28px;color:#fff;border-radius:6px;font-size:13px;&:lang(en){background:#FFC401;color:#000;&:hover{color:#000;border:1px solid #000;}}}svg.close-btn{bottom:36px;}.logo{width:62px;height:32px;margin-right:16px;}.login-btn{color:#f33;}button.signup-btn{background:linear-gradient(230.47deg,#ffa41c -0.87%,#fe4141 25.89%,#f4153e 77.87%,#ff27c3 97.94%),#e73828;}"]);var x=e(95230),f=e(57464);const u="local_signup_prompt_close",b=h=>{let{withOffset:E}=h;const N=()=>{setTimeout(()=>{if((0,T.BG)()){window.top.location.reload();return}location.reload()},50),(0,A.JW)("/dashboard/me","_blank","noreferrer")},z=()=>{MB.global.popupHelper.loginAsync({onConfirm:N,type:"signin",source:"proto-preview"}),ENV.IS_WONDER_SHARE&&(0,k.lW)("Readonly-Middlie-Signin")},S=()=>{MB.global.popupHelper.loginAsync({onConfirm:N,type:"signup",source:"proto-preview"}),ENV.IS_WONDER_SHARE&&(0,k.lW)("Readonly-Middle-Join Now")},_=(0,C.Yt)(u,null,C.qW.Object),y=_?g()().isAfter(g()(_.expired)):!0,a=I18N.SignUpPrompt.after_sigin_1,$=(0,x.Y8)("light");return(0,f.jsx)(f.Fragment,{children:y&&(0,f.jsxs)(r,{withOffset:E,children:[ENV.IS_WONDER_SHARE?(0,f.jsx)(l.C,{className:"logo",name:"common/mockitt-logo/new",isColorPure:!0}):(0,f.jsx)("img",{className:"logo",src:$}),(0,f.jsxs)("div",{className:"content",children:[(0,f.jsx)("span",{children:I18N.SignUpPrompt.welcome}),(0,f.jsxs)("span",{children:[(0,f.jsx)("span",{className:"login-btn",onClick:z,children:I18N.SignUpPrompt.signin}),(0,f.jsxs)("span",{children:[" ",a]})]})]}),(0,f.jsx)("button",{className:"signup-btn",onClick:S,children:I18N.pComment.signIn}),(0,f.jsx)(l.C,{className:"close-btn",onClick:ce=>{ce.currentTarget.parentElement.style.display="none";const de=g()().add(1,"week").startOf("week").format("YYYY-MM-DD");(0,C.a0)(u,{expired:de},C.qW.Object)},name:"common/close_sm"})]})})}},82149:(Et,ke,e)=>{"use strict";e.d(ke,{s:()=>f});var o=e(51044),m=e(88223),g=e(2302),l=e(8723),C=e(3732),T=e(72605),A=e(18575),k=e(73807),p=e(91344),r=e(9199),x=e(57464);function f(u){const{activeTear:b,mode:h,isReadonly:E,scale:N,tearOffset:z,editingCid:S,activeCanvasKey:_,activePageKey:y,STBasketMap:a,scrollLeft:$,scrollTop:ce,basketScrollTopMap:de,basketScrollLeftMap:fe}=u,{hotAttr:se}=b,J=(0,T.wA)(),ve=(0,o.useRef)(null),D=(0,o.useCallback)(Ce=>{var ae;Ce.stopPropagation(),(Ce.metaKey||Ce.ctrlKey)&&Ce.preventDefault(),((ae=document.elementFromPoint(Ce.clientX,Ce.clientY))==null?void 0:ae.closest("a"))||(J({type:k.k.EntryKey["entry:draft:activeEntityKey:update"],payload:{activeEntityKey:""}}),p.A.emit("draft:link-toast:hide"))},[J]),R=(0,o.useCallback)(Ce=>{Ce.stopPropagation();const ae=document.elementFromPoint(Ce.clientX,Ce.clientY);if(E&&ae&&(ae.tagName==="SPAN"||ae.tagName==="P"||ae.tagName==="IMG"))return;const q={x:Ce.clientX,y:Ce.clientY},K=z;J({type:"ST:update",payload:{isDraggingWTear:!1}}),J({type:"ST:update",payload:{isDraggingTearSticky:!0}}),(0,m.FJ)({onDrag:(xe,te)=>{const H={x:xe,y:te},re=g.Z.subtract(H,q),{x:be,y:Le}=g.Z.add(g.Z.xy(K.left,K.top),re),Ve={...K,left:be,top:Le};J({type:"ST:update",payload:{tearOffset:Ve}})},onDrop:()=>{J({type:"ST:update",payload:{isDraggingTearSticky:!1}})}})},[J,E,z]),V=(0,o.useCallback)(()=>{se.isLock||E||J({type:"set:editing:cid",payload:{cid:b.key}})},[b.key,J,E,se.isLock]);if((0,o.useEffect)(()=>{var Ce;return(Ce=ve.current)==null||Ce.addEventListener("wheel",D,{passive:!1}),J({type:"ST:update",payload:{isShowTearSticky:!0}}),()=>{var ae;(ae=ve.current)==null||ae.removeEventListener("wheel",D,{passive:!1}),J({type:"ST:update",payload:{isDraggingTearSticky:!1,isShowTearSticky:!1,isLeftDown:!1,tearOffset:{left:0,top:0}}})}},[J,D]),(b==null?void 0:b.key)===S)return null;const O=h==="design"?(0,A._l)(b==null?void 0:b.hotAttr,N,z):(0,A.Ot)({tearAttr:se,scale:N,activeCanvasKey:_,scrollTop:ce,scrollLeft:$,activePageKey:y,STBasketMap:a,basketScrollTopMap:de,basketScrollLeftMap:fe,tearOffset:z});if(h==="preview"){const Ce=document.querySelector("#pscreen"+_);if(Ce){const{translateX:ae,translateY:q}=(0,r.qg)(Ce);O.transform="translate("+ae*N/100+"px, "+q*N/100+"px)"}}return(0,x.jsx)("div",{"data-cid":b.key,className:"STSticky tear-sticky-panel-container wiggle--wiggle--animate",style:{...O,width:"280px",position:"absolute"},onMouseDown:R,onDoubleClick:V,ref:ve,children:(0,x.jsx)(l.A,{widget:{...se,w:280,h:se.stickyH},children:h==="design"?(0,x.jsx)(C.M,{is4Tear:!0,widget:{...se,w:280,h:se.stickyH,cid:b.key},placeHolderColor:"#7D8694"}):(0,x.jsx)(C.a,{is4Tear:!0,widget:{...se,w:280,h:se.stickyH,cid:b.key},placeHolderColor:"#7D8694",isPreview:!0})})})}},18575:(Et,ke,e)=>{"use strict";e.d(ke,{Ot:()=>l,SW:()=>C,_l:()=>g,qz:()=>T});var o=e(24858),m=e(51794);const g=(A,k,p)=>{const{x:r,y:x}=A,f=k/100;return{left:r*f+18+((p==null?void 0:p.left)||0),top:x*f-10+((p==null?void 0:p.top)||0)}},l=A=>{let{tearAttr:k,scale:p,activeCanvasKey:r,scrollTop:x,scrollLeft:f,activePageKey:u,STBasketMap:b,basketScrollTopMap:h,basketScrollLeftMap:E,tearOffset:N}=A;const z=p/100;let S={left:0,top:0};return k.isInBasket?S=(0,m.OL)(k,z,x,f,b,h,E):(0,o.r)(k.refWCKey)?S=(0,m.hr)(k,r,z,u):S=(0,m.TE)(k,r,z,x,f),{left:S.left+((N==null?void 0:N.left)||0),top:S.top+((N==null?void 0:N.top)||0)}},C=A=>A>120,T=A=>A>300?300:A},1190:(Et,ke,e)=>{"use strict";e.d(ke,{$:()=>A});var o=e(51044),m=e(86634),g=e.n(m),l=e(21676),C=e(7290),T=e(57464);const A=p=>x=>{const[f,u]=(0,o.useState)(!1),b=(0,o.useRef)(null),{className:h=""}=x,E=()=>{clearTimeout(b.current),u(!0)},N=()=>{b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{u(!1)},200)};return(0,T.jsxs)(k,{orientation:x.orientation,vacuum:x.vacuum,onMouseLeave:N,className:h,children:[(0,T.jsx)("div",{className:g()("toggleable-zone",{"is-visible":x.isVisible,"pane-visible":x.isVisible}),onMouseEnter:E,children:(0,T.jsx)(p,{...x})}),(0,T.jsx)("button",{className:g()("toggle-button",x.guideKey||"",{[x.orientation]:x.orientation,visible:f,"pane-visible":x.isVisible}),onClick:x.toggleFunc,onMouseEnter:E,children:(0,T.jsx)(C.C,{name:"common/back/new"})})]})},k=l.Ay.div.withConfig({displayName:"ToggleVisibilityButtonHOC__StyledToggleWrapper",componentId:"sc-10pgtyu-0"})(["display:flex;height:100%;width:100%;position:relative;.toggleable-zone{display:flex;flex-direction:column;height:100%;width:0;&.is-visible{width:100%;}&:not(.pane-visible)::after{width:48px;",";}&::after{content:'';position:absolute;top:0;",";width:","px;height:100%;}}.toggle-button{position:absolute;display:flex;align-items:center;justify-content:center;background-color:",";border:1px solid ",";transition:all 0.3s ease-in-out;visibility:hidden;opacity:0;width:16px;height:44px;flex-shrink:0;border-radius:8px;top:40%;.svg-icon:not(.progress):not(.pane-visible){width:6px;height:12px;path{fill:",";}}&:hover{.svg-icon:not(.pane-visible) > path{fill :",";}}&:not(.pane-visible){visibility:visible;opacity:1;}&.visible{visibility:visible;opacity:1;}&.left:not(.pane-visible){.svg-icon{rotate:180deg;}}&.right.pane-visible{.svg-icon{rotate:180deg;}}&.left{transform:translateY(-40%);}",";}"],p=>p.orientation==="right"?"left: -48px":"right: -48px",p=>p.orientation==="right"?"left: -"+(p.vacuum>0?14+p.vacuum:20)+"px":"right: -"+(p.vacuum>0?14+p.vacuum:20)+"px",p=>p.vacuum>0?14:20,p=>p.theme.color_bg_white,p=>p.theme.color_bg_border_02,p=>p.theme.color_text_L3,p=>p.theme.color_text_L1,p=>p.orientation==="right"?"left: -"+(p.vacuum>0?14+p.vacuum:22)+"px":"right: -"+(p.vacuum>0?14+p.vacuum:22)+"px")},50485:(Et,ke,e)=>{"use strict";e.d(ke,{I:()=>A});var o=e(51044),m=e(60185),g=e(7290),l=e(21676);const C=l.Ay.div.withConfig({displayName:"style__StyledTip",componentId:"sc-gehcds-0"})(["position:absolute;left:0;top:0;z-index:1;width:auto;height:auto;padding:",";background-color:#454647;border-radius:6px;color:#fff;a{color:#70BCF6;&:hover,&:focus{color:#95D1F8;}}.arrow{position:absolute;width:12px;height:6px;svg{width:100%;height:100%;}&.bottom{transform:rotate(180deg);}}"],f=>f.isWrap?"12px 16px":"6px");var T=e(57464);const A=o.memo(f=>{let{className:u,children:b,content:h,onMoundedCallback:E,onToggleHover:N,isWrap:z=!1}=f;const[S,_]=(0,o.useState)(!1),y=(0,o.useRef)(null),a=(0,o.useRef)(null),$=se=>{_(se),N&&N(se)},ce=se=>{se.buttons===0&&(clearTimeout(y.current),$(!0))},de=()=>{y.current=setTimeout(()=>{$(!1)},200)};o.Children.count(b)!==1&&console.error("TooltipWithHover\u7EC4\u4EF6\u53EA\u80FD\u6709\u4E00\u4E2A\u5B50\u5143\u7D20");const fe=o.Children.map(b,se=>o.isValidElement(se)?o.cloneElement(se,{onMouseEnter:ce,onMouseLeave:de,ref:a}):se);return(0,T.jsxs)(T.Fragment,{children:[fe,S&&(0,T.jsx)(x,{isWrap:z,className:u,onMoundedCallback:E,content:h,targetNode:a.current,handMouseEnter:ce,handMouseLeave:de})]})}),k=12,p=6,r=10,x=f=>{let{onMoundedCallback:u,content:b,className:h,targetNode:E,handMouseEnter:N,handMouseLeave:z,isWrap:S}=f;const _=(0,o.useRef)(null),[y,a]=(0,o.useState)({});(0,o.useEffect)(()=>{_.current&&u&&u(_)},[u,_]),(0,o.useEffect)(()=>{a((()=>{if(!E||!_.current)return{};const{left:J,top:ve,width:D,height:R}=E.getBoundingClientRect(),{offsetWidth:V,offsetHeight:O}=_.current,Ce=J+D/2,ae=ve+R,q=()=>{let be=Ce-V/2;be<4&&(be=4),be+V>window.innerWidth-4&&(be=window.innerWidth-V-4);let Le=ae+r;return Le+O>window.innerHeight&&(Le=ve-O-r),{tooltipLeft:be,tooltipTop:Le}},K=(be,Le)=>{const Ve=J-be+D/2-k/2;return Le<ve?{position:{left:Ve+"px",top:"100%"},className:"bottom"}:{position:{left:Ve+"px",top:-p+"px"},className:"top"}},{tooltipLeft:xe,tooltipTop:te}=q(),{position:H,className:re}=K(xe,te);return{tooltipPosition:{left:xe+"px",top:te+"px"},arrowPosition:H,arrowClassName:re}})())},[E,_]);const $=se=>{se.stopPropagation()};if(E===null)return null;const{tooltipPosition:ce,arrowPosition:de,arrowClassName:fe}=y;return(0,m.createPortal)((0,T.jsx)(T.Fragment,{children:(0,T.jsxs)(C,{isWrap:S,className:h,ref:_,style:ce,onMouseEnter:N,onMouseLeave:z,onMouseDown:$,children:[b,(0,T.jsx)(g.C,{className:"arrow "+fe,style:de,name:"design/view/prompt/arrow",isColorPure:!0})]})}),document.body)}},35176:(Et,ke,e)=>{"use strict";e.d(ke,{j:()=>m,q:()=>o});const o=function(f,u,b){if(b===void 0&&(b=100),f==="auto"||f==="none")return[{display:"none"},{display:""}];const[h,E]=l(f,u),[N,z]=T(f),[S,_]=r(f,u),[y,a]=x(f,u,b);return[{display:h,...S,zIndex:N,transform:y},{display:E,..._,zIndex:z,transform:a}]},m=f=>{switch(f){case"none":return"none";case"auto":return"auto";case"leftmenu":return"leftmenu-reverse";case"rightmenu":return"rightmenu-reverse";case"leftdrawer":return"leftdrawer-reverse";case"rightdrawer":return"rightdrawer-reverse";case"slideright":return"slideleft";case"slideleft":return"slideright";case"slidetop":return"slidebottom";case"slidebottom":return"slidetop";case"slideleft2":return"leftout";case"slideright2":return"rightout";case"topin":return"topout";case"popin":return"popout";case"leftout":return"slideleft2";case"rightout":return"slideright2";case"topout":return"topin";case"popout":return"popin"}},g=["leftmenu","rightmenu","leftdrawer","rightdrawer"],l=(f,u)=>f==="none"?u<1?["","none"]:["none",""]:u<1?["",""]:[g.includes(f)?"":"none",""],C=["leftout","rightout","topout","popout","slideleft2-reverse","slideright2-reverse","topin-reverse","popin-reverse","leftmenu","rightmenu","leftdrawer-reverse","rightdrawer-reverse"],T=f=>C.includes(f)?[3,2]:[2,3],A={boxShadow:"0 0 8px #aaa",borderLeft:"1px solid #bbb"},k={boxShadow:"0 0 8px #aaa",borderRight:"1px solid #bbb"},p={boxShadow:"0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22), 0 0 10px 1000px rgba(0, 0, 0, 0.2)"},r=(f,u)=>{switch(f){case"leftmenu":return[A,null];case"leftmenu-reverse":return u<1?[null,A]:[null,null];case"rightmenu":return[k,null];case"rightmenu-reverse":return u<1?[null,k]:[null,null];case"leftdrawer":case"rightdrawer":return[null,p];case"leftdrawer-reverse":case"rightdrawer-reverse":return u<1?[p,null]:[null,null];default:return[null,null]}},x=(f,u,b)=>{const h=u*b;switch(f){case"none":return["none","none"];case"leftmenu":return["translateX("+(0+h)+"%)","translateX("+(-100+h)+"%)"];case"leftmenu-reverse":return["translateX("+(-100+b-h)+"%)","translateX("+(0+b-h)+"%)"];case"rightmenu":return["translateX("+(0-h)+"%)","translateX("+(100-h)+"%)"];case"rightmenu-reverse":return["translateX("+(100-b+h)+"%)","translateX("+(0-b+h)+"%)"];case"leftdrawer":return["none","translateX("+(-100+h)+"%)"];case"leftdrawer-reverse":return["translateX("+(-100+b-h)+"%)","none"];case"rightdrawer":return["none","translateX("+(100-h)+"%)"];case"rightdrawer-reverse":return["translateX("+(100-b+h)+"%)","none"];case"slideright":return["translateX("+h+"%)","translateX("+(-100+h)+"%)"];case"slideleft":return["translateX("+(0-h)+"%)","translateX("+(100-h)+"%)"];case"slidetop":return["translateY("+h+"%)","translateY("+(-100+h)+"%)"];case"slidebottom":return["translateY("+(0-h)+"%)","translateY("+(100-h)+"%)"];case"slideleft2":return["none","translateX("+(-100+h)+"%)"];case"slideright2":return["none","translateX("+(100-h)+"%)"];case"topin":return["none","translateY("+(-100+h)+"%)"];case"popin":return["none","translateY("+(100-h)+"%)"];case"leftout":return["translateX("+(0-h)+"%)","none"];case"rightout":return["translateX("+h+"%)","none"];case"topout":return["translateY("+(0-h)+"%)","none"];case"popout":return["translateY("+h+"%)","none"];default:return console.error("\u53D1\u73B0\u672A\u77E5\u52A8\u753B\u540D\u79F0: "+f),["none","none"]}}},3930:(Et,ke,e)=>{"use strict";e.d(ke,{H:()=>k});var o=e(74059),m=e(51044),g=e(86634),l=e.n(g),C=e(60185),T=e(3794),A=e(57464);class k extends m.PureComponent{constructor(r){super(r),(0,o.A)(this,"handleCancel",()=>{const{onCancel:x}=this.props;x&&x()}),(0,o.A)(this,"handleConfirm",()=>{const{onConfirm:x}=this.props;x&&x()}),this.el=document.createElement("div")}render(){const{className:r,portalClassName:x,children:f,renderFooterContent:u,confirmText:b,onClose:h,canCancel:E,canConfirm:N,cancelBtnProps:z,confirmBtnProps:S={},isUsePortal:_,...y}=this.props;return(0,A.jsxs)(m.Fragment,{children:[(0,C.createPortal)((0,A.jsx)("div",{className:"workspace-modal-mask"}),this.el),(0,A.jsx)(T.O0,{portalClassName:l()("new-model-portal",x),className:l()("workspace-modal",r),onClose:h,onConfirm:this.handleConfirm,canCloseOnEsc:!1,cancelBtnProps:z,canCloseOnClickMask:!1,canConfirmOnEnter:!1,confirmText:b||I18N.Common.confirm,isConfirmDisabled:!N,confirmBtnProps:S,renderFooterSide:u,cancelText:I18N.Common.cancel,onCancel:E?this.handleCancel:null,...y,children:(0,A.jsx)("div",{className:"modal-content",children:f})}),_&&(0,A.jsx)(T.CO,{})]})}}(0,o.A)(k,"defaultProps",{canCancel:!0,canConfirm:!0,cancelBtnProps:{type:"secondary"},isUsePortal:!0})},3794:(Et,ke,e)=>{"use strict";e.d(ke,{C0:()=>A,CO:()=>C,O0:()=>k,wy:()=>T});var o=e(21676),m=e(82152),g=e(70085),l=e(54909);const C=(0,o.DU)([".new-model-portal{overflow:hidden;.ModalMask{visibility:hidden;}&.ModalPortal{z-index:1051;}.Modal{background-color:",";color:",";&.workspace-modal{margin-top:-50px;visibility:visible;box-shadow:",";}}.workspace-modal-mask{z-index:1;position:fixed;height:100%;width:100%;top:0;left:0;}.FunctionalModal{&.library-transfer-modal{margin-top:-50px;}}}.library-model-portal{&.ModalPortal{z-index:1051;}.workspace-modal{&::after{display:none;}}}#IBOT_SELECT_MENU_ROOT{.SelectMenu{color:#fff;background-color:#333;padding:8px 0;border:1px solid ",";&::-webkit-scrollbar-thumb{background-color:#7f7f7f;}&::-webkit-scrollbar-track{background-color:transparent;}.SelectOption{&.is-active{color:#fff;background-color:#666;}&:not(.is-active):hover{background-color:#666;color:#fff;}}}}#IBOT_MODAL_ROOT{.new-model-portal{.workspace-modal{width:480px;}}}"],p=>p.theme.color_bg_white,p=>p.theme.color_text_L2,p=>p.theme.modal_shadow,l.f.color_bg_border_02.value_dark),T=(0,o.AH)([".header{border-bottom:1px solid ",";color:",";background-color:",";}.close-btn{color:",";&:hover{color:",";}&:active{color:",";}}"],p=>p.theme.color_bg_border_02,p=>p.theme.color_text_L1,p=>p.theme.color_bg_white,p=>p.theme.color_text_L2,p=>p.theme.color_text_L1,p=>p.theme.color_text_L1),A=(0,o.AH)([".button-root{","}"],m.in),k=(0,o.Ay)(g.FO).withConfig({displayName:"styles__StyledWorkspaceModal",componentId:"sc-c2h429-0"})(["&.workspace-modal{border-radius:10px;z-index:2;overflow:hidden;border:",";box-shadow:0 3px 6px rgba(0,0,0,0.02),0 6px 16px rgba(0,0,0,0.02),0 9px 28px rgba(0,0,0,0.09);background-color:",";&.top-modal{top:",";border-radius:0 0 10px 10px;}",";.content{color:",";background-color:",";font-weight:400;p{color:",";}}footer{background:",";.button-root{","}}.modal-content{.modal-title{font-size:16px;color:",";line-height:24px;margin-bottom:24px;font-weight:500;border-bottom:1px solid ",";}.span-box{display:inline-flex;.del-screen-folder-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:12em;display:inline-block;}}}.Select{width:180px;&.is-open:not(.unstyled){background-color:",";box-shadow:none;}.Ellipsis{display:inherit;}}.Select,.Input input{background-color:",";border-color:",";color:",";border-radius:6px;&:enabled:not([readonly]):focus{background-color:",";box-shadow:none;border-color:",";}&::placeholder{color:",";}}.content{footer{padding:0px 20px 24px 20px;background-color:"," !important;border-color:",";border-radius:0 0 10px 10px;border-top:none;.footer-actions{width:166px;.Input{width:128px;input{border-color:",";border-radius:6px;}}}}}}"],p=>p.theme.border_modal,p=>p.theme.color_bg_white,p=>p.theme.color_proto===l.f.color_proto.value_dark?"48px":"49px",T,p=>p.theme.color_text_L1,p=>p.theme.color_bg_white,p=>p.theme.color_text_L1,p=>p.theme.color_bg_white,m.in,p=>p.theme.color_text_L1,p=>p.theme.color_bg_border_02,p=>p.theme.color_bg_white,p=>p.theme.color_bg_white,p=>p.theme.color_border_state,p=>p.theme.color_text_L2,p=>p.theme.color_bg_white,p=>p.theme.color_proto,p=>p.theme.color_text_L3,p=>p.theme.color_bg_white,p=>p.theme.color_btn_secondary_active,p=>p.theme.color_border_state)},24695:(Et,ke,e)=>{"use strict";e.d(ke,{V:()=>l});var o=e(9376);const m={copy:["Ctrl + C","\u2318 C"],cut:["Ctrl + X","\u2318 X"],group:["Ctrl + G","\u2318 G"],past:["Ctrl + V","\u2318 V"],ungroup:["Shift + Ctrl + G","\u21E7 \u2318 G"],lock:["Shift + Ctrl + L","\u21E7 \u2318 L"],hide:["Shift + Ctrl + H","\u21E7 \u2318 H"],pastToPoint:["Shift + Ctrl + V","\u21E7 \u2318 V"],sendFront:["Shift + Ctrl + \u2191","\u21E7 \u2318 \u2191"],sendBack:["Shift + Ctrl + \u2193","\u21E7 \u2318 \u2193"],zForward:["Alt + Ctrl + \u2191","\u2325 \u2318 \u2191"],zBackward:["Alt + Ctrl + \u2193","\u2325 \u2318 \u2193"],undo:["Ctrl + Z","\u2318 Z"],redo:["Shift + Ctrl + Z"," \u21E7 \u2318 Z"],selectAll:["Ctrl + A","\u2318 A"],zoomIn:["Ctrl + +","\u2318 +"],zoomOut:["Ctrl + -","\u2318 -"],zoomToHundred:["Ctrl + 0","\u2318 0"],fitCanvas:["Ctrl + 1","\u2318 1"],zoomSelection:["Ctrl + 2","\u2318 2"],showLeftPanel:["Ctrl + [","\u2318 ["],showRightPanel:["Ctrl + ]","\u2318 ]"],sticky:["Alt + Ctrl + A","\u2325 \u2318 A"],findReplace:["Ctrl + F","\u2318 F"],pasteProperties:["Alt + Ctrl + V","\u2325 \u2318 V"],preview:["Ctrl + P","\u2318 P"],addSameLevelPage:["Ctrl + Enter","\u2318 \u21B5"],moveUpPage:["Ctrl + \u2191","\u2318 \u2191"],moveDownPage:["Ctrl + \u2193","\u2318 \u2193"],upgradePage:["Ctrl + \u2190","\u2318 \u2190"],downGradePage:["Ctrl + \u2192","\u2318 \u2192"],insertSubTheme:["Tab/Insert","Tab/Insert"],insertPeerTheme:["Enter","Enter"],save:["Ctrl + S","\u2318 S"]},g=(0,o.cX)()?1:0,l=Object.entries(m).reduce((C,T)=>{let[A,k]=T;return C[A]=k[g].split(" "),C},{})},55560:(Et,ke,e)=>{"use strict";e.d(ke,{Gd:()=>C,XY:()=>o,g6:()=>l,xk:()=>m,y5:()=>g});let o=function(T){return T.SHELL="download_settings_show_shell",T.STATE="download_settings_state_type",T.SCALE="download_settings_scale",T.STICKY="download_settings_show_sticky",T.FULLSCREEN="download_settings_full_screen",T.DOWNLOADTYPE="download_settings_downloadTypePage",T.CANVASNAME="download_settings_canvasName",T}({}),m=function(T){return T.PNG="png",T.PDF="pdf",T.HTMLZIP="htmlzip",T.APK="apk",T.SVG="svg",T.SOURCE_FILE="source_file",T.GIF="gif",T}({}),g=function(T){return T.PAGE="page",T.CANVAS="canvas",T}({}),l=function(T){return T.CURRENT_PAGE="currentPage",T.ALL_PAGE="allPage",T}({}),C=function(T){return T.ALL="allState",T.SOME="someState",T}({})},34637:(Et,ke,e)=>{"use strict";e.d(ke,{F:()=>o});const o=["leftmenu","rightmenu","leftdrawer","rightdrawer"]},64303:(Et,ke,e)=>{"use strict";e.d(ke,{$:()=>o});let o=function(m){return m[m.MOVEUP=1]="MOVEUP",m[m.MOVEDOWN=-1]="MOVEDOWN",m[m.UPGRADE=2]="UPGRADE",m[m.DOWNGRADE=0]="DOWNGRADE",m}({})},40472:(Et,ke,e)=>{"use strict";e.d(ke,{_N:()=>O,Vc:()=>g.A,qK:()=>o.A});var o=e(45286),m=e(38747),g=e(34728),l=e(51044);function C(Ce){const ae=(0,l.useRef)(Ce);return ae.current=Ce,ae}const T=C,k=Ce=>{const ae=T(Ce);(0,l.useEffect)(()=>()=>{ae.current()},[])};function p(Ce){const ae=useRef(0),[q,K]=useState(Ce),xe=useCallback(te=>{cancelAnimationFrame(ae.current),ae.current=requestAnimationFrame(()=>{K(te)})},[]);return useUnmount(()=>{cancelAnimationFrame(ae.current)}),[q,xe]}const r=null;var x=e(36290),f=e(9376);const u=(Ce,ae)=>{if(!f.Bd)return;if(!Ce)return ae;let q;return(0,x.Tn)(Ce)?q=Ce():"current"in Ce?q=Ce.current:q=Ce,q};function b(Ce,ae){if(Ce===ae)return!0;for(let q=0;q<Ce.length;q++)if(!Object.is(Ce[q],ae[q]))return!1;return!0}const z=(Ce=>(q,K,xe)=>{const te=(0,l.useRef)(!1),H=(0,l.useRef)([]),re=(0,l.useRef)([]),be=(0,l.useRef)();Ce(()=>{const Ve=(Array.isArray(xe)?xe:[xe]).map(We=>u(We));if(!te.current){te.current=!0,H.current=Ve,re.current=K,be.current=q();return}if(Ve.length!==H.current.length||!b(H.current,Ve)||!b(re.current,K)){var Ne;(Ne=be.current)==null||Ne.call(be),H.current=Ve,re.current=K,be.current=q()}}),k(()=>{var Le;(Le=be.current)==null||Le.call(be),te.current=!1})})(l.useLayoutEffect);function S(Ce){const[ae,q]=useRafState(()=>{const K=getTargetElement(Ce);return K?{width:K.clientWidth,height:K.clientHeight}:void 0});return useEffectWithTarget(()=>{const K=getTargetElement(Ce);if(!K)return;const xe=new ResizeObserver(te=>{te.forEach(H=>{const{clientWidth:re,clientHeight:be}=H.target;q({width:re,height:be})})});return xe.observe(K),()=>{xe.disconnect()}},[],Ce),ae}const _=null,y={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:f.lg?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222};var a=e(98236),$=e.n(a);const de=(Ce,ae,q)=>{const K=(0,l.useRef)(),xe=(0,l.useRef)(0);$()(ae,K.current)||(K.current=ae,xe.current+=1),z(Ce,[xe.current],q)},fe={ctrl:Ce=>Ce.ctrlKey,shift:Ce=>Ce.shiftKey,alt:Ce=>Ce.altKey,meta:Ce=>Ce.type==="keyup"?y.meta.includes(Ce.keyCode):Ce.metaKey};function se(Ce){return(0,x.Kg)(Ce)||(0,x.Et)(Ce)}function J(Ce){const ae=Object.keys(fe).reduce((q,K)=>fe[K](Ce)?q+1:q,0);return[16,17,18,91,92].includes(Ce.keyCode)?ae:ae+1}function ve(Ce,ae,q){if(!Ce.key)return!1;if((0,x.Et)(ae))return Ce.keyCode===ae?ae:!1;const K=ae.split(".");let xe=0;for(const te of K){const H=fe[te],re=y[te.toLowerCase()];(H&&H(Ce)||re&&re===Ce.keyCode)&&xe++}return q?xe===K.length&&J(Ce)===K.length?ae:!1:xe===K.length?ae:!1}function D(Ce,ae){return(0,x.Tn)(Ce)?Ce:se(Ce)?q=>ve(q,Ce,ae):Array.isArray(Ce)?q=>Ce.find(K=>ve(q,K,ae)):()=>!!Ce}const R=["keydown"];function V(Ce,ae,q){const{events:K=R,target:xe,exactMatch:te=!1,useCapture:H=!1}=q||{},re=T(ae),be=T(Ce);de(()=>{const Le=u(xe,window);if(!Le)return;const Ve=We=>{const ft=D(be.current,te)(We),mt=se(ft)?ft:We.key;if(ft){var i;return(i=re.current)==null?void 0:i.call(re,We,mt)}};for(const We of K){var Ne;Le==null||(Ne=Le.addEventListener)==null||Ne.call(Le,We,Ve,H)}return()=>{for(const ze of K){var We;Le==null||(We=Le.removeEventListener)==null||We.call(Le,ze,Ve,H)}}},[K],xe)}const O=V},34728:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>k});var o=e(51044),m=e(45286),g=e(38747),l=e(36290);function C(p){function r(x,f){f===void 0&&(f={});let u;const{onError:b=y=>{console.error(y)}}=f;try{u=p()}catch(y){b(y)}const h=y=>f.serializer?f.serializer(y):JSON.stringify(y),E=y=>f.deserializer?f.deserializer(y):JSON.parse(y);function N(){try{var y;const a=(y=u)==null?void 0:y.getItem(x);if(a)return E(a)}catch(a){b(a)}return(0,l.Tn)(f.defaultValue)?f.defaultValue():f.defaultValue}const[z,S]=(0,o.useState)(N);(0,g.A)(()=>{S(N())},[x]);const _=y=>{const a=(0,l.Tn)(y)?y(z):y;if(S(a),(0,l.XB)(a)){var $;($=u)==null||$.removeItem(x)}else try{var ce;(ce=u)==null||ce.setItem(x,h(a))}catch(de){console.error(de)}};return[z,(0,m.A)(_)]}return r}var T=e(9376);const k=C(()=>T.Bd?window.localStorage:void 0)},45286:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>g});var o=e(51044);function m(l){const C=(0,o.useRef)(l);C.current=(0,o.useMemo)(()=>l,[l]);const T=(0,o.useRef)();return T.current||(T.current=function(){for(var A=arguments.length,k=new Array(A),p=0;p<A;p++)k[p]=arguments[p];return C.current.apply(this,k)}),T.current}const g=m},10923:(Et,ke,e)=>{"use strict";e.d(ke,{x:()=>m,z:()=>g});var o=e(51044);const m=l=>{let{ref:C,leftUse:T="right",xOffset:A=0}=l;const[k,p]=(0,o.useState)({isOpenContextMenu:!1,position:{top:0,left:0}}),r=()=>{const b=C.current.getBoundingClientRect();return{top:b.bottom,left:T==="right"?b.right-1:b.left+A}};return{menuStatus:k,handleClick:()=>{p({isOpenContextMenu:!k.isOpenContextMenu,position:r()})},handleClose:b=>{b.target.tagName!=="UL"&&p({...k,isOpenContextMenu:!1})},handleToggle:()=>{p({isOpenContextMenu:!k.isOpenContextMenu,position:r()})}}},g=()=>{const[l,C]=(0,o.useState)(void 0),[T,A]=(0,o.useState)({isOpenContextMenu:!1,position:{top:0,left:0}}),k=(0,o.useCallback)((x,f)=>{C(x),A({isOpenContextMenu:!T.isOpenContextMenu,position:f})},[T.isOpenContextMenu]),p=(0,o.useCallback)(()=>{A({position:{top:0,left:0},isOpenContextMenu:!1})},[]),r=(0,o.useCallback)(x=>{A({isOpenContextMenu:!T.isOpenContextMenu,position:{top:x.clientY,left:x.clientX}})},[T.isOpenContextMenu]);return{menuStatus:T,clickedItem:l,handleClick:k,handleClose:p,handleToggle2:r}}},72093:(Et,ke,e)=>{"use strict";e.d(ke,{J:()=>m});var o=e(51044);const m=g=>{const[l,C]=(0,o.useState)(g);return(0,o.useLayoutEffect)(()=>{C(g)},[g,C]),{position:l,setPosition:C}}},38747:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>l});var o=e(51044);const m=C=>(T,A)=>{const k=(0,o.useRef)(!1);C(()=>()=>{k.current=!1},[]),C(()=>{if(!k.current)k.current=!0;else return T()},A)},g=null,l=m(o.useEffect)},19994:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>k});var o=e(7290),m=e(51044),g=e(21676),l=e(3930);const C=(0,g.Ay)(l.H).withConfig({displayName:"styles__StyledImagePreviewModal",componentId:"sc-4glxva-0"})(["&.image-preview-modal{height:100%;background:transparent;.container{width:100%;height:100%;position:relative;}.image-wrapper{width:initial;height:initial;position:absolute;left:50%;top:50%;padding:10px;background-color:#ffffff;border-radius:4px;transform:translate(-50%,-50%);transition:transform .2s;img{display:block;width:auto;height:auto;max-width:80vw;max-height:80vh;}}.close-btn{position:absolute;top:40px;right:40px;display:flex;flex-direction:row;justify-content:center;align-items:center;background-color:transparent;cursor:pointer;.svg-icon{width:32px;height:32px;circle{fill:#333333;}path{fill:#ffffff;}}}}}"]);var T=e(57464);const A=p=>{const{isOpen:r,alt:x,imgSrc:f,onClose:u}=p,b=(0,m.useRef)(null),h=(0,m.useCallback)(N=>{if(b&&b.current){const z=document.elementFromPoint(N.clientX,N.clientY);b.current.contains(z)||r&&u();return}r&&u()},[b,r,u]),E=(0,m.useCallback)(N=>{N.preventDefault(),N.stopPropagation(),N.key==="Escape"&&r&&u()},[r,u]);return(0,m.useEffect)(()=>(document.addEventListener("keydown",E,!0),()=>{document.removeEventListener("keydown",E,!0)})),(0,T.jsx)(C,{className:"image-preview-modal",portalClassName:"image-preview-modal-portal",title:"\u56FE\u7247\u9884\u89C8",isOpen:r,canCloseOnClickMask:!0,onClose:u,centered:!0,width:"100%",modalRender:()=>(0,T.jsxs)("div",{className:"container",onClick:h,children:[(0,T.jsx)("div",{className:"image-wrapper",ref:b,children:(0,T.jsx)("img",{src:f,alt:x})}),(0,T.jsx)("span",{className:"close-btn",onClick:u,children:(0,T.jsx)(o.C,{name:"draft/close"})})]})})},k=(0,m.memo)(A)},93240:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>p});var o=e(51044),m=e(86634),g=e.n(m),l=e(7290),C=e(21676),T=e(3930);const A=(0,C.Ay)(T.H).withConfig({displayName:"styles__StyledPreOpenHyperlinkModal",componentId:"sc-1sxrjtt-0"})(["&.pre-open-hyperlink-modal{.content{padding:0;.title{display:flex;padding:9px 20px;font-size:12px;background-color:",";.tips-icon{color:#FF7100;margin-right:8px;}p{color:",";}}.hyperlink-content{padding:20px;.hyperlink-container{display:flex;padding:8px;border-radius:6px;align-items:center;color:",";border:1px solid ",";background-color:",";.svg-container{width:28px;height:28px;color:#fff;margin-right:8px;border-radius:6px;line-height:32px;text-align:center;background-color:",";}span{width:405px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;align-self:center;color:",";font-weight:500;}}}}&.is-mobile{width:295px;height:auto;padding:32px 20px 0 20px;header{display:none;}.content{padding:0;.wechat-internal-url-new-tab-tip{margin:8px 26px 20px 26px;text-align:center;font-size:18px;}.hyperlink-container{height:72px;padding:16px 12px;.svg-container{display:none;}}}.wechat-tip{margin-top:20px;margin-bottom:-10px;font-size:12px;color:#1f292e;}footer{margin-top:10px;margin-bottom:22px;padding:0;button{width:124px;}}}}"],r=>r.theme.color_background_white_modal_tips,r=>r.theme.color_title_text_state,r=>r.theme.color_text_L1,r=>r.theme.color_bg_border_02,r=>r.theme.color_bg_card,r=>r.theme.color_bg_border_02,r=>r.theme.color_text_L2);var k=e(57464);class p extends o.PureComponent{render(){const{isOpen:x,isMobile:f,displayWeChatNewTabExternalUrlTip:u,displayWeChatNewTabInternalUrlTip:b,confirmText:h,onConfirm:E,onClose:N,hyperlink:z}=this.props;return(0,k.jsx)(A,{isOpen:x,onClose:()=>N("preOpenHyperlinkModal"),onConfirm:E,confirmText:h,onCancel:()=>N("preOpenHyperlinkModal"),cancelText:I18N.Common.cancel,title:I18N.SettingPanel.about_to_jump_to_an_external_website,className:g()("pre-open-hyperlink-modal",{"is-mobile":f}),modalStyle:{width:f?"100%":480,borderRadius:f?0:10},children:b?(0,k.jsx)("div",{className:"wechat-internal-url-new-tab-tip",children:I18N.SettingPanel.open_link_in_a_new_tab_on_wechat_tip}):(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)("div",{className:"title",children:[(0,k.jsx)(l.C,{className:"tips-icon",name:"common/screen_trash"}),(0,k.jsx)("p",{children:I18N.SettingPanel.if_you_wish_to_continue})]}),(0,k.jsx)("div",{className:"hyperlink-content",children:(0,k.jsxs)("div",{className:"hyperlink-container",children:[(0,k.jsx)("div",{className:"svg-container",children:(0,k.jsx)(l.C,{name:"link/link_icon"})}),(0,k.jsx)("span",{children:z})]})}),u&&(0,k.jsxs)("p",{className:"wechat-tip",children:["*",I18N.SettingPanel.open_link_in_a_new_tab_on_wechat_tip]})]})})}}},68160:(Et,ke,e)=>{"use strict";e.d(ke,{Nd:()=>N});var o=e(51044),m=e(26114),g=e(88223),l=e(15336),C=e(21676),T=e(3930);const A=(0,C.Ay)(T.H).withConfig({displayName:"styles__StyledWSRenewModal",componentId:"sc-1m4aq3c-0"})(["",""],z=>ENV.IS_WONDER_SHARE&&z.action==="comment_deny_limitation"?"&.functional-modal {\n .confirm-btn {\n background-color: #425fff;\n border-radius: 2px;\n color: #fff;\n padding: 0 1em;\n font-weight: normal;\n\n &:not([disabled]):hover {\n background-color: #3c4ee5;\n color: #fff;\n }\n }\n }":null),k=(0,C.DU)([".renew-modal{z-index:1049 !important;}"]);var p=e(57464);function r(z,S){const _=(0,g.XN)(),y=(0,m.createRoot)(_),a=()=>setTimeout(()=>{y.unmount(),document.body.removeChild(_)});y.render((0,p.jsx)(z,{...S,onClose:a}))}const x=z=>(0,l.JW)("/renew?"+new URLSearchParams(z).toString(),"_blank","noreferrer"),f=()=>(0,l.JW)("/pricing?next="+location.href,"_blank","noreferrer"),u=(z,S)=>{const _={...S,orgCid:z,checkoutArea:S.from||"proto"};MB.global.popupHelper.chargeAsync(_)},b=(z,S)=>{z?MB.global.popupHelper.chargeAsync({mode:"org",orgCid:z,payEntrance:S.payEntrance}):MB.global.popupHelper.chargeAsync({mode:"solo",payEntrance:S.payEntrance})},h=z=>{let{reason:S,data:_,onClose:y}=z;return(0,p.jsxs)(A,{isOpen:!0,portalClassName:"renew-modal",title:I18N.dModals.renew_prompt.title,isUsePortal:!1,onConfirm:ENV.IS_WONDER_SHARE?()=>{b(_.orgCid,_.paymentRenewModalParams),y()}:_&&_.renewRedirectParams?()=>x(_.renewRedirectParams):_.gotoPrice?()=>f():_.paymentRenewModalParams?()=>{u(_.orgCid,_.paymentRenewModalParams),y()}:null,confirmText:_&&_.renewRedirectParams?I18N.dModals.renew_now:_.submit?_.submit:null,canConfirm:!0,onClose:y,action:_.action,canCancel:!1,children:[_.format===I18N.dModals.apk_file?(0,p.jsx)("p",{children:I18N.dModals.renew_prompt.apk_exportable_on_web}):(0,p.jsx)("p",{children:E(S,_)}),(0,p.jsx)(k,{})]})},E=(z,S)=>{let{storage:_="",format:y="",action:a=MB.user&&MB.user.expired?"renew":"upgrade",role:$="user"}=S;return(I18N.dModals.renew_prompt[z]+(a?I18N.dModals.renew_prompt[$+"_"+a]:"")).replace("{storage}",_).replace("{format}",y)},N=function(z,S){S===void 0&&(S={}),r(h,{reason:z,data:S})}},75188:(Et,ke,e)=>{"use strict";e.d(ke,{y:()=>o});const o=function(m,g,l){return l===void 0&&(l=!1),m.map(C=>{var T;const{key:A}=C,k=(T=sdkStore.getHotItem(A))==null?void 0:T.hotAttr;if(k){var p;const r=Math.floor(Date.now()/1e3),x=((p=k.deleteInfo)==null?void 0:p.deleteTime)||0,f=r-x,u=g*24*60*60;if(l?f>u:f<=u)return{...C}}return null}).filter(Boolean)}},96010:(Et,ke,e)=>{"use strict";e.d(ke,{G:()=>xe,X:()=>We});var o=e(17036),m=e(77885),g=e(35332),l=e(96828),C=e(88031),T=e(20592),A=e(78463),k=e(23848),p=e(44864),r=e(98040),x=e(59742),f=e(30768),u=e(36875),b=e(10858),h=e(62427),E=e(99895),N=e(96851),z=e(47143),S=e(61535),_=e(30127),y=e(64792),a=e(24201);const $=async ze=>{let{uId:ft,upperCid:mt,V8AHText:i,V8AHImgUri:gt,handleGenerateStream:Je}=ze;const Pt=new URLSearchParams({uId:ft,upperCid:mt}),bt=await fetch("/js-hpr/v8aihtml/gen?"+Pt.toString(),{method:"POST",headers:{"Content-Type":"application"},body:JSON.stringify({V8AHText:i,V8AHImgUri:gt})});await fe(bt,Je)},ce=async ze=>{let{uId:ft,upperCid:mt,V8AHText:i,V8AHPrevHtml:gt,V8AHTargetTag:Je,handleGenerateStream:Pt}=ze;const bt=new URLSearchParams({uId:ft,upperCid:mt}),qt=await fetch("/js-hpr/v8aihtml/regen?"+bt.toString(),{method:"POST",headers:{"Content-Type":"application"},body:JSON.stringify({V8AHText:i,V8AHPrevHtml:gt,V8AHTargetTag:Je})});await fe(qt,Pt)},de=async ze=>{let{uId:ft,upperCid:mt,V8AHText:i,V8AHImgUri:gt,handleGenerateStream:Je}=ze;const Pt=new URLSearchParams({uId:ft,upperCid:mt}),bt=await fetch("/js-hpr/v8aihtml/optimization-prompt?"+Pt.toString(),{method:"POST",headers:{"Content-Type":"application"},body:JSON.stringify({V8AHText:i})});await fe(bt,Je)},fe=async(ze,ft)=>{if(!ze.ok){const gt=ze.status,Je={429:"\u5F53\u524D\u4F7F\u7528\u4EBA\u6570\u8FC7\u591A\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5",451:"\u8F93\u5165\u5185\u5BB9\u6D89\u5ACC\u8FDD\u89C4\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165",default:"\u8BF7\u6C42\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5"};MB.notice({text:Je[gt]||Je.default,type:"error"});const Pt=new Error("HTTP error! status: "+gt);throw Pt.status=gt,Pt}if(!ze.body)throw new Error("Response body is missing");const mt=ze.body.getReader(),i=new TextDecoder("utf-8");for(;;){const{done:gt,value:Je}=await mt.read();if(Je){const Pt=i.decode(Je,{stream:!0});ft({status:"generating",chunk:Pt})}if(gt){ft({status:"done"});break}}};var se=e(26464),J=e(36521),ve=e(2302),D=e(76445),R=e(6637),V=e(99388),O=e(71604),Ce=e(37051),ae=e(66976),q=e(33386),K=e(29107);const xe={"entry:aiComponent:open:mode":(ze,ft)=>{let{getState:mt,dispatch:i}=ze,{payload:gt}=ft;const Je=mt(),{isLoading:Pt,key:bt}=(0,E.L4)(Je),qt=sdkStore.getHotItem(bt),pt=bt?qt&&sdkStore.isTrashed(bt):!1;if(Pt&&!pt){MB.notice({text:"AI \u7EC4\u4EF6\u6B63\u5728\u751F\u6210\u4E2D\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5",type:"info"});return}if(i(D.GO.select([])),i({type:"ai-component:update:isInAIComponentCreateMode",payload:{isInAIComponentCreateMode:!0}}),i({type:"ai-component:update:isShowInputContainer",payload:{isShowInputContainer:!0}}),gt!=null&>.userTextContent){const{setGenerateContentCache:$t}=a.s5;i({type:"ai-component:update:inputContainerMode",payload:{inputContainerMode:"input"}}),$t(gt.userTextContent)}},"entry:aiComponent:exit:mode":(ze,ft)=>{let{getState:mt,dispatch:i}=ze,{payload:gt}=ft;i({type:"ai-component:update:isInAIComponentCreateMode",payload:{isInAIComponentCreateMode:!1}}),i({type:"ai-component:update:isShowInputContainer",payload:{isShowInputContainer:!1}}),i({type:"ai-component:update:createStartPoint",payload:{createStartPoint:null}}),i({type:"ai-component:update:createEndPoint",payload:{createEndPoint:null}}),i({type:"ai-component:update:isInAIComponentSnapshotMode",payload:{isInAIComponentSnapshotMode:!1}}),i({type:"ai-component:update:isOptimumLoading",payload:{isOptimumLoading:!1}})},"entry:aiComponent:exit:mode:for-toolbar":ze=>{let{getState:ft,dispatch:mt}=ze;const i=ft();(0,E.y1)(i)&&mt({type:"entry:aiComponent:exit:mode"})},"entry:aiComponent:create:mousedown":(ze,ft)=>{let{getState:mt,dispatch:i}=ze,{payload:{event:gt}}=ft;const Je=mt();if(i({type:"ai-component:update:createEndPoint",payload:{createEndPoint:null}}),i({type:"ai-component:update:createStartPoint",payload:{createStartPoint:null}}),!(0,E.y1)(Je))return;const bt=(0,z.X_)(Je),qt=(0,z.ER)(Je),pt=(0,z.$S)(Je),$t=(0,N.mG)(gt,{scale:bt,offset:qt,viewportRect:pt});i({type:"ai-component:update:createStartPoint",payload:{createStartPoint:$t}}),i({type:"ai-component:update:isDraggingMouse",payload:{isDraggingMouse:!0}})},"entry:aiComponent:create:mousemove":(ze,ft)=>{let{getState:mt,dispatch:i}=ze,{payload:{event:gt}}=ft;const Je=mt(),Pt=(0,E.y1)(Je),bt=(0,E.iM)(Je);if(!Pt||!bt)return;const qt=(0,z.X_)(Je),pt=(0,z.ER)(Je),$t=(0,z.$S)(Je),go=(0,E.m7)(Je),Co=(0,N.mG)(gt,{scale:qt,offset:pt,viewportRect:$t});i({type:"ai-component:update:createEndPoint",payload:{createEndPoint:Co}}),i({type:"ai-component:update:isShowInputContainer",payload:{isShowInputContainer:!1}}),!(0,E.m9)(Je)||ve.Z.distance(go,Co)<5||((0,J.cH)("AI_COMPONENT_CURSOR_HAS_SHOWN",!0),i({type:"ai-component:update:isShowAIComponentTextCursor",payload:{isShowAIComponentTextCursor:!1}}))},"entry:aiComponent:create:mouseup":ze=>{let{getState:ft,dispatch:mt}=ze;const i=ft(),gt=(0,E.y1)(i),Je=(0,E.iM)(i);if(!gt||!Je)return;mt({type:"ai-component:update:isDraggingMouse",payload:{isDraggingMouse:!1}}),mt({type:"ai-component:update:isShowInputContainer",payload:{isShowInputContainer:!0}});const Pt=(0,E.m7)(i),bt=(0,E.F6)(i);ve.Z.distance(Pt,bt||Pt)>5?mt({type:"entry:aiComponent:set:snapshot:base64Url",payload:{startAnchorPoint:Pt,endAnchorPoint:bt}}):(mt({type:"ai-component:update:createStartPoint",payload:{createStartPoint:null}}),mt({type:"ai-component:update:createEndPoint",payload:{createEndPoint:null}}),a.F7.clearCache())},"entry:aiComponent:set:snapshot:base64Url":async(ze,ft)=>{let{getState:mt,dispatch:i}=ze,{payload:gt}=ft;const Je=mt(),Pt=(0,z.X_)(Je),bt=(0,S.RX)(Je),{startAnchorPoint:qt,endAnchorPoint:pt}=gt,$t=We(qt,pt),go=await Ne({createRect:$t,scale:Pt,widgetTreeData:bt});if(go)try{const Co=await(0,o.G6)(go);a.F7.setCache(Co)}catch(Co){console.error(Co)}},"entry:aiComponent:switch-snapshot-mode:handler":(ze,ft)=>{let{getState:mt,dispatch:i}=ze,{payload:gt}=ft;const{nextIsSnapshotMode:Je}=gt;i({type:"ai-component:update:isInAIComponentSnapshotMode",payload:{isInAIComponentSnapshotMode:Je}}),Je&&(i({type:"entry:comment:disabled",payload:{noWigglingCommentCid:!0}}),i({type:"entry:toolbar:toggle:handTool"}),i(D.GO.toggleInspectMode(!1)),i(D.GO.toggleHandMode(!1)),i({type:"elbow:update",payload:{isInElbowMode:!1}}),i({type:"entry:ST:STMode:disable"}))},"entry:aiComponent:optimum:handler":async(ze,ft)=>{let{getState:mt,dispatch:i}=ze,{payload:gt}=ft;const{userTextContent:Je,updateUserTextContent:Pt,handleSelectEnd:bt}=gt;if((0,f.b)(Je)){H("[FILTERED]","prompt");return}i({type:"ai-component:update:isOptimumLoading",payload:{isOptimumLoading:!0}});const qt=(0,a.FG)(),pt=(Co,Tt,mo)=>{if(mo({type:"ai-component:update:isOptimumLoading",payload:{isOptimumLoading:!1}}),!Co){$t(Tt);return}Pt(Co),bt()},$t=Co=>{H(Co,"prompt"),bt()},go=async Co=>{let{status:Tt,chunk:mo}=Co;try{const Kt=mt(),Ft=(0,E.sA)(Kt),nt=(0,E.xn)(Kt);if(!Ft||!nt||qt.getChunkUpdatedFlag()){qt.setChunkUpdatedFlag(!0);return}if(qt.saveChunk(mo),Tt==="done"){var jo;const Rt=qt.parseChunk(),yt=((jo=(0,a.bF)(Rt))==null?void 0:jo.trim())||"";await pt(yt,Rt,i),i({type:"ai-component:update:isOptimumLoading",payload:{isOptimumLoading:!1}})}}catch(Kt){console.error("\u89E3\u6790txt\u62A5\u9519",Kt)}};try{await de({uId:MB.user.id,upperCid:(0,z.YT)(mt()).upper_cid,V8AHText:Je,handleGenerateStream:go})}catch(Co){console.error(Co),bt(),i({type:"ai-component:update:isOptimumLoading",payload:{isOptimumLoading:!1}})}},"entry:aiComponent:send:handler":async(ze,ft)=>{let{getState:mt,dispatch:i}=ze,{payload:gt}=ft;const{editComponentKey:Je,userTextContent:Pt,snapshotBase64Url:bt,selectedElementList:qt}=gt;if((0,f.b)(Pt)){H("[FILTERED]","component");return}const pt=()=>{i({type:"ai-component:update:isShowInputContainer",payload:{isShowInputContainer:!0}})},$t=Co=>{i({type:"ai-component:update:isInAIComponentCreateMode",payload:{isInAIComponentCreateMode:!0}}),i({type:"ai-component:update:isShowInputContainer",payload:{isShowInputContainer:!0}})},go=()=>{a.F7.clearCache(),i({type:"ai-component:update:isShowInputContainer",payload:{isShowInputContainer:!1}}),i({type:"ai-component:update:editingAIComponentKey",payload:{editingAIComponentKey:null}}),i({type:"ai-component:update:selectedElementList",payload:{selectedElementList:[]}})};Je?(i({type:"ai-component:update:editingAIComponentKey",payload:{editingAIComponentKey:null}}),i({type:"ai-component:update:selectedElementList",payload:{selectedElementList:[]}}),i({type:"ai-component:update:isShowInputContainer",payload:{isShowInputContainer:!1}}),i({type:"entry:aiComponent:request:edit-component",payload:{editComponentKey:Je,userTextContent:Pt,selectedElementList:[...qt],onError:pt,onDone:go}})):(i({type:"entry:aiComponent:exit:mode"}),i({type:"entry:aiComponent:request:generate-component",payload:{userTextContent:Pt,snapshotBase64Url:bt,onError:$t,onDone:go}}))},"entry:aiComponent:request:generate-component":async(ze,ft)=>{let{getState:mt,dispatch:i}=ze,{payload:gt}=ft;const Je=mt(),{userTextContent:Pt,snapshotBase64Url:bt,onError:qt,onDone:pt}=gt,$t=(0,a.FG)();$t.setChunkId((0,g.cF)());const go=async(nt,Rt,yt,Jt,vo,Yo)=>{const{cid:Ho}=(0,z.Ur)(vo),kt=MB.getScale(),{top:Ze,left:it}=(0,R.u5)({width:yt,height:Jt,scale:kt}),st=it+yt/2,dt=Ze+Jt/2;re({key:nt,injection:Rt,x:st,y:dt,w:yt,h:Jt,sup:Ho});const Ot=(0,ae.Tg)({x:st,y:dt},Ho);Ot&&sdkStore.changeRndSup(nt,Ot);const Ct=sdkStore.getHotItem(nt);Yo({type:"entry:widget:change",payload:{isCreateWidget:!0,sup:Ct.sup,isCombineChange:!1,flatChgList:[Ct]}}),Yo(D.GO.select([nt])),Yo({type:"ai-component:update:requestLoading",payload:{isLoading:!0,key:nt}}),MB.notice({isShow:!1})},Co=async(nt,Rt,yt,Jt,vo,Yo,Ho)=>{if(!nt){Tt(Rt,vo,Yo);return}mo(yt,Jt,vo),MB.notice({type:"success",text:"AI \u7EC4\u4EF6\u751F\u6210\u6210\u529F"}),Ho&&Ho(),(0,a.e$)({code:200,userTextContent:Pt,snapshotBase64Url:bt,startTimestamp:Ft})},Tt=(nt,Rt,yt)=>{H(nt,"component"),Rt({type:"ai-component:clear:requestLoading"}),Kt(),yt&&yt(),(0,a.e$)({code:999,userTextContent:Pt,snapshotBase64Url:bt,startTimestamp:Ft})},mo=(nt,Rt,yt)=>{yt({type:"entry:aiComponent:update:codeWidget",payload:{widgetKey:nt,injection:Rt}}),yt(D.GO.select([nt])),sdkStore.combineMerge("ai-component-generate"),yt({type:"entry:aiComponent:update:generatedTmpList",payload:{injection:Rt,widgetKey:nt,type:"first-request"}}),yt({type:"ai-component:update:floatBarOperation",payload:{type:"generate",key:nt,isLoading:!1}}),yt({type:"ai-component:clear:requestLoading"})},jo=async nt=>{let{status:Rt,chunk:yt}=nt;try{if($t.getChunkUpdatedFlag())return;$t.saveChunk(yt);const Jt=$t.parseChunk(),{htmlContent:vo,defaultWidth:Yo,defaultHeight:Ho}=await Ve(Jt),kt=(0,V.o)(vo),Ze=$t.getChunkId(),it=sdkStore.getHotItem(Ze);if(!it&&Yo&&Ho){await go(Ze,kt,Yo,Ho,Je,i);return}if(it&&sdkStore.isTrashed(Ze)){i({type:"ai-component:clear:requestLoading"}),$t.setChunkUpdatedFlag(!0);return}await te({chunkId:Ze,injection:kt,dispatch:i}),Rt==="done"&&await Co(vo,Jt,Ze,kt,i,qt,pt)}catch(Jt){console.error("\u4EE3\u7801\u89E3\u6790\u62A5\u9519",Jt)}},Kt=()=>{sdkStore.combineMerge("ai-component-generate"),sdkStore.deleteHotItem($t.getChunkId()),i({type:"entry:rebuild:screen-widget-tree"}),i({type:"ai-component:update:editingAIComponentKey",payload:{editingAIComponentKey:null}})};if(!(0,K._c)({type:"widget",count:1})){i({type:"ai-component:clear:requestLoading"});return}sdkStore.combineMergeMark("ai-component-generate"),i({type:"ai-component:update:requestLoading",payload:{isLoading:!0,key:""}}),MB.notice({text:"\u601D\u8003\u4E2D",type:"loading",svgName:"chatGPT/tip-loading",showClose:!0,duration:0}),a.iC.setCache({key:$t.getChunkId(),text:Pt,img:bt});const Ft=Date.now();try{await $({uId:MB.user.id,upperCid:(0,z.YT)(Je).upper_cid,V8AHText:Pt,V8AHImgUri:bt,handleGenerateStream:jo})}catch(nt){i({type:"ai-component:clear:requestLoading"}),qt&&qt(),Kt(),(0,a.e$)({code:nt.status,userTextContent:Pt,snapshotBase64Url:bt,startTimestamp:Ft}),(0,q.p)("aiComponent generate fail",nt,{uId:MB.user.id,userTextContent:Pt})}},"entry:aiComponent:request:edit-component":async(ze,ft)=>{var mt;let{getState:i,dispatch:gt}=ze,{payload:Je}=ft;const Pt=i(),{editComponentKey:bt,userTextContent:qt,selectedElementList:pt,onError:$t,onDone:go}=Je,Co=(0,a.FG)();Co.setChunkId(bt);const Tt=async(Yo,Ho,kt,Ze,it,st,dt)=>{if(!Yo){mo(Ho,it,st);return}jo(kt,Ze,it),MB.notice({type:"success",text:"AI \u7EC4\u4EF6\u7F16\u8F91\u6210\u529F"}),dt&&dt(),(0,a.e$)({code:200,userTextContent:qt,startTimestamp:vo})},mo=(Yo,Ho,kt)=>{H(Yo,"component"),Ho({type:"ai-component:clear:requestLoading"}),Ft(),kt&&kt(),(0,a.e$)({code:999,userTextContent:qt,startTimestamp:vo})},jo=(Yo,Ho,kt)=>{kt({type:"entry:aiComponent:update:codeWidget",payload:{widgetKey:Yo,injection:Ho}}),sdkStore.combineMerge("ai-component-edit"),kt(D.GO.select([Yo])),kt({type:"entry:aiComponent:update:generatedTmpList",payload:{injection:Ho,widgetKey:Yo,type:"first-request"}}),kt({type:"ai-component:update:floatBarOperation",payload:{type:"edit",key:Yo,isLoading:!1}}),kt({type:"ai-component:clear:requestLoading"})},Kt=async Yo=>{let{status:Ho,chunk:kt}=Yo;try{Co.saveChunk(kt);const Ze=Co.parseChunk(),{htmlContent:it}=await Ve(Ze),st=(0,V.o)(it),dt=Co.getChunkId();if(sdkStore.isTrashed(dt)){gt({type:"ai-component:clear:requestLoading"});return}await te({dispatch:gt,injection:st,chunkId:dt}),Ho==="done"&&await Tt(it,Ze,dt,st,gt,$t,go)}catch(Ze){console.error("\u4EE3\u7801\u89E3\u6790\u62A5\u9519",Ze)}},Ft=()=>{sdkStore.combineMerge("ai-component-edit"),sdkStore.canUndo&&sdkStore.undo(),gt({type:"entry:rebuild:screen-widget-tree"});const Yo=Co.getChunkId();gt(D.GO.select([Yo])),gt({type:"ai-component:update:editingAIComponentKey",payload:{editingAIComponentKey:Yo}});const{targetTags:Ho}=a.iC.getCache(Yo);Ho&>({type:"ai-component:update:selectedElementList",payload:{selectedElementList:Ho}})},nt=MB.user.id,{upper_cid:Rt}=(0,z.YT)(Pt),yt=Co.getChunkId(),Jt=(0,V.f)((mt=sdkStore.getHotItem(yt))==null?void 0:mt.hotAttr.injection);sdkStore.combineMergeMark("ai-component-edit"),gt({type:"entry:aiComponent:update:codeWidget",payload:{widgetKey:yt,injection:(0,V.o)("")}}),gt({type:"ai-component:update:requestLoading",payload:{isLoading:!0,key:yt}}),gt(D.GO.select([yt])),a.iC.setCache({key:yt,text:qt,prevHtml:Jt,targetTags:pt});const vo=Date.now();try{await ce({uId:nt,upperCid:Rt,V8AHText:qt,V8AHPrevHtml:Jt,V8AHTargetTag:pt.join(""),handleGenerateStream:Kt})}catch(Yo){gt({type:"ai-component:clear:requestLoading"}),$t&&$t(),Ft(),(0,a.e$)({code:Yo.status,userTextContent:qt,startTimestamp:vo}),(0,q.p)("aiComponent generate fail",Yo,{uId:MB.user.id,userTextContent:qt})}},"entry:aiComponent:update:generatedTmpList":(ze,ft)=>{let{getState:mt,dispatch:i}=ze,{payload:gt}=ft;const{injection:Je,widgetKey:Pt,type:bt}=gt;if(!Pt)return;if(sdkStore.isTrashed(Pt)){i({type:"entry:aiComponent:generatedTmpList:next",payload:{action:"delete",params:{key:Pt}}});return}const qt=sdkStore.getHotItem(Pt),{w:pt,h:$t}=qt.hotAttr,go=Date.now(),Co={injection:Je,w:pt,h:$t,timestamp:go};bt==="first-request"?i({type:"entry:aiComponent:generatedTmpList:next",payload:{action:"add",params:{key:Pt,item:Co}}}):bt==="retry-request"&&i({type:"entry:aiComponent:generatedTmpList:next",payload:{action:"update",params:{key:Pt,item:Co}}}),i({type:"ai-component:update:feedbackStatus",payload:{feedbackStatus:""}})},"entry:aiComponent:generatedTmpList:next":(ze,ft)=>{let{getState:mt,dispatch:i}=ze,{payload:gt}=ft;const Je=mt(),Pt=(0,E.J_)(Je),{action:bt,params:qt}=gt,$t={add:()=>{const{key:go,item:Co}=qt,Tt=Pt.filter(mo=>mo.key!==go);return Tt.push({key:go,activeIndex:0,list:[Co]}),Tt},delete:()=>{const{key:go}=qt;return Pt.filter(Co=>Co.key!==go)},update:()=>{const{key:go,activeIndex:Co,item:Tt}=qt;if(Co!==void 0)return Pt.map(jo=>jo.key===go?{...jo,activeIndex:Co}:jo);const mo=jo=>[...jo,Tt];return Pt.map(jo=>{if(jo.key===go){const Kt=mo(jo.list);return{...jo,activeIndex:Kt.length-1,list:Kt}}return jo})},updateItem:()=>{const{key:go,item:Co}=qt,Tt=mo=>mo.map(jo=>jo.injection===Co.injection?{...jo,...Co}:jo);return Pt.map(mo=>mo.key===go?{...mo,list:Tt(mo.list)}:mo)},clear:()=>[]}[bt]();i({type:"ai-component:update:generatedTmpList",payload:{generatedTmpList:$t}})},"entry:aiComponent:update:codeWidget":async(ze,ft)=>{var mt;let{getState:i,dispatch:gt}=ze,{payload:Je}=ft;const{widgetKey:Pt,injection:bt,x:qt,y:pt,w:$t,h:go}=Je;if(sdkStore.isTrashed(Pt)||!((mt=sdkStore.getHotItem(Pt))==null?void 0:mt.hotAttr))return;const Tt={};bt!==void 0&&(Tt.injection=bt),qt&&(Tt.x=qt),pt&&(Tt.y=pt),$t&&(Tt.w=$t),go&&(Tt.h=go),gt({type:"entry:widget:change",payload:{isCombineChange:!1,flatChgList:[{key:Pt,hotAttr:Tt}]}})},"entry:aiComponent:in:edit":async(ze,ft)=>{let{getState:mt,dispatch:i}=ze,{payload:gt}=ft;const Je=mt(),Pt=(0,E.Lu)(Je),bt=(0,E.ul)(Je),qt=(0,E.L2)(Je),{cids:[pt]}=gt;pt!==bt&&(Pt||(pt===qt&&i({type:"ai-component:clear:floatBarOperation"}),i({type:"ai-component:update:selectedElementList",payload:{selectedElementList:[]}})),i({type:"ai-component:update:isShowInputContainer",payload:{isShowInputContainer:!0}}),i({type:"ai-component:update:editingAIComponentKey",payload:{editingAIComponentKey:pt}}),a.ZF.setCache("\u7EC4\u4EF6\u4E8C\u6B21\u7F16\u8F91"))},"entry:aiComponent:quit:edit":async ze=>{let{getState:ft,dispatch:mt}=ze;const i=ft();(0,E.Lu)(i)||(mt({type:"ai-component:update:floatBarOperation",payload:{isLoading:!1}}),mt({type:"ai-component:update:selectedElementList",payload:{selectedElementList:[]}})),mt({type:"ai-component:update:isShowInputContainer",payload:{isShowInputContainer:!1}}),mt({type:"ai-component:update:editingAIComponentKey",payload:{editingAIComponentKey:null}})},"entry:aiComponent:float-bar:retry":async ze=>{let{getState:ft,dispatch:mt}=ze;const i=ft(),{type:gt,key:Je}=(0,E.qY)(i),{text:Pt,img:bt,prevHtml:qt,targetTags:pt}=a.iC.getCache(Je),$t=(0,a.FG)();$t.setChunkId(Je),mt({type:"ai-component:update:floatBarOperation",payload:{type:gt,key:Je,isLoading:!0}});const go=async(vo,Yo,Ho,kt,Ze)=>{if(!vo){Co(Yo,Ze,Ho);return}Tt(Ho,kt,Ze),MB.notice({type:"success",text:"AI \u7EC4\u4EF6\u91CD\u65B0\u751F\u6210\u6210\u529F"})},Co=(vo,Yo,Ho)=>{H(vo,"component"),Yo({type:"ai-component:clear:requestLoading"}),Yo({type:"ai-component:update:floatBarOperation",payload:{type:gt,key:Ho,isLoading:!1}}),sdkStore.combineMerge("ai-component-request-retry"),sdkStore.canUndo&&sdkStore.undo(),Yo(D.GO.select([Ho])),Yo({type:"entry:rebuild:screen-widget-tree"})},Tt=(vo,Yo,Ho)=>{Ho({type:"entry:aiComponent:update:codeWidget",payload:{widgetKey:vo,injection:Yo}}),sdkStore.combineMerge("ai-component-request-retry"),Ho(D.GO.select([vo])),Ho({type:"entry:aiComponent:update:generatedTmpList",payload:{injection:Yo,widgetKey:vo,type:"retry-request"}}),Ho({type:"ai-component:update:floatBarOperation",payload:{type:gt,key:vo,isLoading:!1}}),Ho({type:"ai-component:clear:requestLoading"})},mo=()=>{mt({type:"ai-component:clear:floatBarOperation"}),mt({type:"ai-component:update:requestLoading",payload:{isLoading:!0,key:Je}})},jo=async vo=>{let{status:Yo,chunk:Ho}=vo;try{const kt=$t.getChunkId();if(sdkStore.isTrashed(kt)){mt({type:"ai-component:clear:requestLoading"}),mt({type:"ai-component:clear:floatBarOperation"});return}$t.saveChunk(Ho);const Ze=$t.parseChunk(),{htmlContent:it,defaultWidth:st,defaultHeight:dt}=await Ve(Ze),Ot=(0,V.o)(it);if(gt==="generate"&&st&&dt)if(mo(),$t.getChunkUpdatedFlag())te({dispatch:mt,injection:Ot,chunkId:kt});else{const Ct=sdkStore.getHotItem(kt).hotAttr,{x:wo,y:ln}=Le(be(Ct),st,dt);te({dispatch:mt,injection:Ot,chunkId:kt,x:wo,y:ln,w:st,h:dt})}else gt==="edit"&&(mo(),te({dispatch:mt,injection:Ot,chunkId:kt}));Yo==="done"&&await go(it,Ze,kt,Ot,mt)}catch(kt){console.error("\u4EE3\u7801\u89E3\u6790\u62A5\u9519",kt)}};sdkStore.combineMergeMark("ai-component-request-retry");const{requestAIHtml:Kt,requestParams:Ft}=await(async()=>gt==="generate"?{requestAIHtml:$,requestParams:{uId:MB.user.id,upperCid:(0,z.YT)(i).upper_cid,V8AHText:Pt,V8AHImgUri:bt,handleGenerateStream:jo}}:{requestAIHtml:ce,requestParams:{uId:MB.user.id,upperCid:(0,z.YT)(i).upper_cid,V8AHText:Pt,V8AHPrevHtml:qt,V8AHTargetTag:pt.join(""),handleGenerateStream:jo}})();mt({type:"ai-component:update:requestLoading",payload:{isLoading:!0,key:""}});const nt=$t.getChunkId(),{injection:Rt,w:yt,h:Jt}=sdkStore.getHotItem(nt).hotAttr;mt({type:"entry:aiComponent:generatedTmpList:next",payload:{action:"updateItem",params:{key:nt,item:{injection:Rt,w:yt,h:Jt}}}});try{await Kt({...Ft})}catch(vo){console.error(vo),mt({type:"ai-component:clear:requestLoading"}),mt({type:"ai-component:update:floatBarOperation",payload:{type:gt,key:$t.getChunkId(),isLoading:!1}})}},"entry:aiComponent:float-bar:confirm":async ze=>{let{getState:ft,dispatch:mt}=ze;mt({type:"entry:aiComponent:float-bar:quit"})},"entry:aiComponent:float-bar:handle-order":async(ze,ft)=>{let{getState:mt,dispatch:i}=ze,{payload:gt}=ft;const Je=mt(),Pt=(0,E.ys)(Je),bt=(0,E.wk)(Je),qt=(0,E.L2)(Je),{type:pt}=gt,$t=pt==="prev"?Pt-1:Pt+1,go=bt[$t];if(!go)return;const Co=sdkStore.getHotItem(qt).hotAttr,{w:Tt,h:mo,injection:jo}=Co;i({type:"entry:aiComponent:generatedTmpList:next",payload:{action:"updateItem",params:{key:qt,item:{injection:jo,w:Tt,h:mo}}}});const{w:Kt,h:Ft,injection:nt,timestamp:Rt}=go,{x:yt,y:Jt}=Le(be(Co),Kt,Ft);i({type:"entry:aiComponent:generatedTmpList:next",payload:{action:"update",params:{key:qt,activeIndex:$t}}}),i({type:"entry:aiComponent:update:codeWidget",payload:{widgetKey:qt,injection:nt,x:yt,y:Jt,w:Kt,h:Ft}});const vo=a.YR.getCache(Rt);i({type:"ai-component:update:feedbackStatus",payload:{feedbackStatus:vo}})},"entry:aiComponent:float-bar:feedback":async(ze,ft)=>{let{getState:mt,dispatch:i}=ze,{payload:gt}=ft;const{type:Je}=gt,Pt=mt(),bt=(0,E.wk)(Pt),qt=(0,E.ys)(Pt),pt=bt[qt];if(!pt)return;const{timestamp:$t,injection:go}=pt,Co=a.YR.getCache($t);a.YR.setCache($t,Je),i({type:"ai-component:update:feedbackStatus",payload:{feedbackStatus:Je}}),!Co&&MB.notice({text:"\u611F\u8C22\u60A8\u7684\u53CD\u9988!"});const Tt=(0,V.f)(go),mo=(0,E.L2)(Pt),{text:jo,img:Kt}=a.iC.getCache(mo);(0,a.y1)({ai_component_feedback:Je==="satisfied"?2:0,generate_content:Tt,userTextContent:jo,snapshotBase64Url:Kt})},"entry:aiComponent:float-bar:quit":async ze=>{let{getState:ft,dispatch:mt}=ze;const i=ft();(0,E.eU)(i)||(mt({type:"ai-component:clear:floatBarOperation"}),mt({type:"entry:aiComponent:generatedTmpList:next",payload:{action:"clear"}}),mt({type:"ai-component:clear:requestLoading"}),mt({type:"ai-component:update:createStartPoint",payload:{createStartPoint:null}}),mt({type:"ai-component:update:createEndPoint",payload:{createEndPoint:null}}),a.F7.clearCache())},"entry:aiComponent:undo":async ze=>{let{getState:ft,dispatch:mt}=ze;mt({type:"entry:aiComponent:undo-redo"})},"entry:aiComponent:redo":async ze=>{let{getState:ft,dispatch:mt}=ze;mt({type:"entry:aiComponent:undo-redo"})},"entry:aiComponent:undo-redo":async(ze,ft)=>{let{getState:mt,dispatch:i}=ze,{payload:gt}=ft;const{type:Je,key:Pt}=(0,E.qY)(mt());if(!Je||!Pt){i({type:"ai-component:clear:floatBarOperation"});return}let bt;try{var qt;bt=(qt=sdkStore.getHotItem(Pt))==null||(qt=qt.hotAttr)==null?void 0:qt.injection}catch(go){}const pt=(0,E.wk)(mt()),$t=bt?pt.findIndex(go=>go.injection===bt):-1;if($t!==-1){i({type:"entry:aiComponent:generatedTmpList:next",payload:{action:"update",params:{key:Pt,activeIndex:$t}}});return}i({type:"ai-component:clear:floatBarOperation"}),i({type:"entry:aiComponent:generatedTmpList:next",payload:{action:"clear"}})}},te=(0,h.nF)(ze=>{let{dispatch:ft,chunkId:mt,injection:i,x:gt,y:Je,w:Pt,h:bt}=ze;ft({type:"entry:aiComponent:update:codeWidget",payload:{widgetKey:mt,injection:i,x:gt,y:Je,w:Pt,h:bt}})},1500,!0),H=(ze,ft)=>{const mt=ze.includes("[FILTERED]"),i={prompt:{filtered:"\u63D0\u793A\u8BCD\u4F18\u5316\u5931\u8D25\uFF0C\u751F\u6210\u5185\u5BB9\u5305\u542B\u654F\u611F\u8BCD\u6C47",default:"\u63D0\u793A\u8BCD\u4F18\u5316\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u68C0\u67E5\u53D1\u9001\u5185\u5BB9"},component:{filtered:"AI\u7EC4\u4EF6\u751F\u6210\u5931\u8D25\uFF0C\u751F\u6210\u5185\u5BB9\u5305\u542B\u654F\u611F\u8BCD\u6C47",default:"AI\u7EC4\u4EF6\u751F\u6210\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u68C0\u67E5\u53D1\u9001\u5185\u5BB9"}},gt=mt?i[ft].filtered:i[ft].default;MB.notice({text:gt,type:"error"})},re=ze=>{let{key:ft,injection:mt,x:i,y:gt,w:Je,h:Pt,sup:bt}=ze;const qt=(0,se.xz)("AI\u7EC4\u4EF6");qt.x=i,qt.y=gt,qt.w=Je,qt.h=Pt,qt.isLockAspect=!1,qt.injection=mt,qt.zIndex=(0,Ce._)(bt),qt.name=(0,O.aw)({type:"wCode",sup:bt});const pt={key:ft,attr:(0,k.Xd)(qt),hotAttr:qt,sup:bt,sub:[]};return sdkStore.updateHotItem(pt),ft},be=ze=>({x:ze.x,y:ze.y-ze.h/2}),Le=(ze,ft,mt)=>{const i=ze.x,gt=ze.y+mt/2;return{x:i,y:gt}},Ve=async ze=>{const{htmlContent:ft,jsonContent:mt}=(0,a.VY)(ze),{defaultWidth:i,defaultHeight:gt}=JSON.parse(mt||"{}");return{htmlContent:ft,defaultWidth:i,defaultHeight:gt}},Ne=async ze=>{let{createRect:ft,widgetTreeData:mt,scale:i}=ze;const gt=!1,Je=!0,Pt=(0,y.I)(mt,ft,!0,gt,i),bt={format:"png",scale:"1",affix:"suffix",isWithDeviceFrame:!1},{x:qt,y:pt,w:$t,h:go}=ft,Co=[qt,pt,qt+$t,pt+go];for(const Yo of Pt)Je||(0,T.il)(Co,sdkStore.getHotAABB(Yo));const Tt=(0,C.v)((0,l.Id)(),(0,m.aF)({}),(Yo,Ho,kt)=>console.log("flat|onPatch",{diffList:Yo,clock:Ho,isLocal:kt}),(Yo,Ho)=>console.log("flat|requestResync",{error:Yo,message:Ho})),mo=(0,A.uq)(Tt),jo=(0,b.jb)(sdkStore);Tt.applyDiff(jo);const Kt=(0,p.gO)("",9,10,10,"",0,0,""),Ft={key:(0,g.cF)("rbp"),hotAttr:Kt,sup:p.$k,sub:[]},nt=(0,r.Nc)("asdf");nt.w=Co[2]-Co[0],nt.h=Co[3]-Co[1],nt.x=Co[0]+nt.w/2,nt.y=Co[1]+nt.h/2,nt.fill.fillIsVisible=!1;const Rt={key:(0,g.cF)("rc"),hotAttr:nt,sup:Ft.key,sub:[]};mo.updateHotItem(Ft),mo.updateHotItem(Rt);const yt=Yo=>{let{hi:Ho,supKey:kt}=Yo;const Ze=sdkStore.saveSubtree([Ho.key]),{x:it,y:st}=sdkStore.getHotBound(Ho.key);let dt=it-Co[0],Ot=st-Co[1];kt!==Rt.key&&(dt=Ho.hotAttr.x,Ot=Ho.hotAttr.y);const Ct=mo.loadSubtree(Ze,p.$k,dt,Ot);mo.moveHotItem(Ct[0],kt)},Jt=Yo=>{const Ho=sdkStore.getHotItem(Yo);if(Ho.hotAttr.type==="wBasket"||Ho.hotAttr.type==="wMind")yt({hi:Ho,supKey:Ho.sup});else{const kt=sdkStore.getHotItem(Ho.sup);let Ze,it;if(kt.hotAttr.type==="wWrap"){const{x:dt,y:Ot}=sdkStore.getCCSBound2308(Ho.key),{w:Ct,h:wo}=sdkStore.getCCSBound2308(Ho.sup);Ze=dt-Ct/2,it=Ot-wo/2}else if(Ho.hotAttr.type==="wWrap"){const{x:dt,y:Ot}=sdkStore.getCCSBound2308(Ho.key);Ze=dt,it=Ot}else Ze=Ho.hotAttr.x,it=Ho.hotAttr.y;const st={...Ho,hotAttr:{...Ho.hotAttr,x:Ze,y:it}};mo.updateHotItem(st)}for(const kt of Ho.sub)!(0,x.OO)(kt)&&Jt(kt)};for(const Yo of Pt){const Ho=sdkStore.getHotItem(Yo);if((0,x.OO)(Ho.key)||Ho.hotAttr.type==="wBasket"||Ho.hotAttr.type==="wMind")yt({hi:Ho,supKey:Rt.key});else{const{x:kt,y:Ze}=sdkStore.getHotBound(Ho.key),it=kt-Co[0],st=Ze-Co[1],dt={...Ho,sup:Rt.key,hotAttr:{...Ho.hotAttr,x:it,y:st}};mo.updateHotItem(dt);for(const Ot of Ho.sub)!(0,x.OO)(Ot)&&Jt(Ot)}}const vo=(0,_.gD)({itemKey:Rt.key,pseudoSdkStore:mo,...bt,hasWatermark:!1,isExportSticky:!0});try{return vo.validateIE(bt.format),await vo.toIE(bt.format)}catch(Yo){return Yo instanceof _.ku?MB.notice({text:"\u622A\u56FE\u8D85\u8FC7\u5927\u5C0F\u9650\u5236",type:"error"}):Yo.name!=="NotAllowedError"&&(MB.notice({text:"\u622A\u56FE\u64CD\u4F5C\u5F02\u5E38\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5",type:"error"}),(0,u.Cp)(Yo)),null}},We=(ze,ft)=>{const{x:mt,y:i}=ze,{x:gt,y:Je}=ft;return{x:mt<=gt?mt:gt,y:i<=Je?i:Je,w:Math.abs(gt-mt),h:Math.abs(Je-i),r:0}}},12473:(Et,ke,e)=>{"use strict";e.d(ke,{v:()=>l});var o=e(72605),m=e(99895),g=e(96010);const l=()=>{const C=(0,o.d4)(m.m7),T=(0,o.d4)(m.F6);return!C||!T?{rect:null,is:!1}:{is:!0,rect:(0,g.X)(C,T)}}},24201:(Et,ke,e)=>{"use strict";e.d(ke,{ZF:()=>N,FG:()=>k,YR:()=>u,VY:()=>f,bF:()=>p,iC:()=>E,F7:()=>h,y1:()=>_,e$:()=>S,U2:()=>y,s5:()=>b});var o=e(46569);const m=(a,$)=>{try{let ce="/memo/"+encodeURI(a);$!==void 0&&(ce+="?"+new URLSearchParams($)),fetch(ce).catch(de=>console.warn("memoG+f",de))}catch(ce){console.warn("memoG",ce)}},g=(a,$)=>{try{const ce=typeof $=="string"?$:JSON.stringify($);fetch("/memo/"+encodeURI(a),{method:"POST",body:ce}).catch(de=>console.warn("memoP+f",de))}catch(ce){console.warn("memoP",ce)}};var l=e(51691),C=e(5683);const T=o.A.get.bind(o.A),A=o.A.set.bind(o.A),k=()=>{let a="",$="",ce=!1;return{getChunkId:()=>$,setChunkId:V=>{$=V},saveChunk:V=>{V&&(a+=V)},parseChunk:()=>{let V="";const O=a.trim().split("\n");for(const Ce of O)if(Ce.trim())try{const{value:ae,done:q}=JSON.parse(Ce);if(q)return ae.answer;V+=ae.partialAnswer}catch(ae){break}return V},getChunk:()=>a,setChunkUpdatedFlag:V=>{ce=V},getChunkUpdatedFlag:()=>ce}},p=a=>{var $,ce;return(($=a.match(/```txt([\s\S]*?)```/))==null?void 0:$[1])||((ce=a.match(/```txt([\s\S]*)/))==null||(ce=ce[1])==null?void 0:ce.replace(/(<\/|<)$/,""))},r=a=>{var $,ce;return(($=a.match(/```html([\s\S]*?)```/))==null?void 0:$[1])||((ce=a.match(/```html([\s\S]*)/))==null||(ce=ce[1])==null?void 0:ce.replace(/(<\/|<)$/,""))},x=a=>{var $;return($=a.match(/```json([\s\S]*?)```/))==null?void 0:$[1]},f=a=>{if(!a)return{htmlContent:"",jsonContent:""};const $=r(a),ce=x(a);return{htmlContent:$,jsonContent:ce}},u=(()=>{const a=$=>"ai-component-feedback-"+$;return{setCache:($,ce)=>{A(a($),ce)},getCache:$=>T(a($))}})(),b=(()=>{const a="ai-component-user-input-key",$="user-input-generate-content-key",ce=se=>"user-input-edit-content-key-"+se,de=(se,J)=>{const ve=JSON.parse(T(a)||"{}");A(a,JSON.stringify({...ve,[se]:J}))},fe=se=>JSON.parse(T(a)||"{}")[se];return{setGenerateContentCache:se=>{de($,se)},getGenerateContentCache:()=>fe($),setEditContentCache:(se,J)=>{de(ce(se),J)},getEditContentCache:se=>fe(ce(se))}})(),h=(()=>{const a="ai-component-snapshot-base64-url-key";return{setCache:$=>{A(a,$)},getCache:()=>T(a),clearCache:()=>{A(a,"")}}})(),E=(()=>{const a=$=>"ai-component-sent-message-"+$;return{setCache:$=>{let{key:ce,text:de,img:fe,prevHtml:se,targetTags:J}=$;A(a(ce),JSON.stringify({text:de,img:fe,prevHtml:se,targetTags:J}))},getCache:$=>JSON.parse(T(a($))||"{}")}})(),N=(()=>{const a="ai-component-source-cache-key";return{setCache:$=>{A(a,$)},getCache:()=>T(a)}})(),z=(a,$)=>a!==""&&$!==""?"img + "+a:a!==""?a:"img",S=a=>{let{code:$,userTextContent:ce,snapshotBase64Url:de="",startTimestamp:fe}=a;const se=N.getCache(),J=Date.now()-fe,ve=z(ce,de),R={200:"\u6210\u529F",403:"\u8BF7\u6C42\u53C2\u6570\u9519\u8BEF",429:"\u8BF7\u6C42\u6B21\u6570\u9891\u7E41",451:"\u7528\u6237\u8F93\u5165\u5185\u5BB9\u89E6\u53D1\u654F\u611F\u8BCD",500:"\u670D\u52A1\u5668\u9519\u8BEF",999:"openai \u56DE\u590D\u5185\u5BB9\u4E0D\u7B26\u5408\u9884\u671F\u6216\u89E6\u53D1\u654F\u611F\u8BCD"}[$]||"\u5176\u4ED6\u9519\u8BEF\uFF0C\u9519\u8BEF\u7F16\u7801\uFF1A"+$;g("aiComponent/trackAIFunction",{uid:MB.user.id,source:se,duration:J,result:R,userInput:ve,code:$}),(0,l.Im)({source:se,ai_type:"AI\u7EC4\u4EF6\u751F\u6210",ai_duration:J,result:R,ai_user_input:ve,generate_success:$===200,is_pay:(0,C.vW)(MB.user,MB.currentOrg,MB.getRootProject())})},_=a=>{let{ai_component_feedback:$,generate_content:ce,userTextContent:de,snapshotBase64Url:fe=""}=a;const se=z(de,fe);g("aiComponent/trackAIComponentFeedback",{uid:MB.user.id,ai_component_feedback:$,generate_content:ce,user_input:se}),(0,l.u1)({ai_component_feedback:$,generate_content:ce,user_input:se})},y=a=>{let{source:$}=a;g("aiComponent/trackAIOpen",{uid:MB.user.id,source:$}),(0,l.Ue)({source:$})}},35556:(Et,ke,e)=>{"use strict";e.d(ke,{F:()=>p,u:()=>k});var o=e(35592),m=e(96343),g=e(47143),l=e(76445),C=e(40778),T=e(66456),A=e(78570);const k={"entry:comment:toggle":(r,x)=>{var f;let{getState:u,dispatch:b}=r,{payload:h}=x;const E=u(),N=(0,o.sI)(E);if((f=MB.user)!=null&&f.id){if(h!=null&&h.onlyView){const z=(0,g.z$)(E);if((z==null?void 0:z.comment_permission)==="off")return}b({type:"entry:vector:exit:edit"}),b({type:"entry:pencil:vector:exit:edit"}),N?(b({type:"entry:comment:disabled"}),b({type:"set:quick-create-widget",payload:{widget:null}})):(b({type:"entry:comment:enable",payload:h}),b({type:"set:quick-create-widget",payload:{widget:null}}))}},"entry:comment:enable":(r,x)=>{let{getState:f,dispatch:u}=r,{payload:b}=x;u({type:"comment:update:isInCommentMode",payload:{isInCommentMode:!0}}),u({type:"entry:observe:dom:right-panel-width"}),b!=null&&b.onlyView&&(u(l.GO.toggleInspectMode(!1)),u(l.GO.toggleHandMode(!1)),u(l.GO.select([])))},"entry:comment:disabled":(r,x)=>{var f;let{getState:u,dispatch:b}=r,{payload:h}=x;const E=u(),N=E==null||(f=E.editor)==null||(f=f.state)==null||(f=f.mode)==null?void 0:f.previewViewMode,{noWigglingCommentCid:z}=h||{};if(!z){const S=p();if(S){b({type:"entry:comment:wigglingCommentCid",payload:{wigglingCommentCid:S}});return}}b(l.GO.hoverItem("")),b({type:"entry:comment:clear"}),b({type:"comment:update:isInCommentMode",payload:{isInCommentMode:!1}}),b({type:"entry:observe:dom:right-panel-width"}),N==="inspect"&&(b(l.GO.toggleHandMode(!1)),b(l.GO.toggleInspectMode(!0)),b(l.GO.select([])))},"entry:comment:clear":r=>{let{dispatch:x}=r;x({type:"comment:update:creatingComment",payload:{creatingComment:null}}),x({type:"comment:update:activeCommentCid",payload:{activeCommentCid:""}}),x({type:"comment:update:editorRawContentObject",payload:{editorRawContentObject:{}}}),x({type:"comment:update:editorIsEditing",payload:{editorIsEditing:!1}}),x({type:"entry:comment:wigglingCommentCid",payload:{wigglingCommentCid:""}}),x({type:"comment:update:startCommentAnchorPoint",payload:{startCommentAnchorPoint:null}}),x({type:"comment:update:editingCommentCid",payload:{editingCommentCid:""}}),x({type:"comment:update:editingRecordCid",payload:{editingRecordCid:""}}),x({type:"entry:comment:benot-dragging"})},"entry:comment:init:item":(r,x)=>{let{getState:f,dispatch:u}=r,{payload:{type:b,curComment:h,message:E}}=x;if(b==="thread"){if(!rootSdk.cmtStore.getHotItem(h.screenCid)){const D=(0,m.$S)(h.screenCid);rootSdk.cmtStore.updateHotItem(D)}const{cid:z,x:S,y:_,w:y,h:a,z:$,userInfo:ce,canvasVec2:de,canvasCid:fe,screenCid:se,threadType:J}=h,ve=(0,m.Ch)(se,z,{message:E,x:S,y:_,w:y,h:a,z:$,userInfo:ce,canvasCid:fe,canvasVec2:de,threadType:J});rootSdk.cmtStore.updateHotItem(ve)}else if(b==="content"){const{cid:N}=h,z=(0,m.Bh)(N,{userInfo:MB.user,message:E});rootSdk.cmtStore.updateHotItem(z)}u({type:"entry:comment:rebuild:commentList"})},"entry:comment:del:item":(r,x)=>{let{getState:f,dispatch:u}=r,{payload:{cid:b}}=x;rootSdk.cmtStore.deleteHotItem(b),u({type:"entry:comment:rebuild:commentList"})},"entry:comment:update:item":(r,x)=>{let{getState:f,dispatch:u}=r,{payload:{cid:b,attr:h}}=x;const E=rootSdk.cmtStore.getHotItem(b),N={...E,hotAttr:{...E.hotAttr,...h}};rootSdk.cmtStore.updateHotItem(N),u({type:"entry:comment:rebuild:commentList"})},"entry:comment:create:esc":r=>{let{getState:x,dispatch:f}=r;const u=x(),b=(0,o.V8)(u),h=(0,o.QV)(u),E=(0,o.uX)(u);b&&h?(0,m.IP)(b,E)?f({type:"entry:comment:wigglingCommentCid",payload:{wigglingCommentCid:b.cid}}):f({type:"entry:comment:cancel"}):f({type:"entry:comment:disabled"})},"enter:comment:shortcut:del":r=>{var x;let{getState:f,dispatch:u}=r;const b=f(),h=(0,o.Cb)(b),E=(0,o.EH)(b),N=(0,o.sI)(b),S=(0,o.Vr)(b).find($=>$.cid===h),_=(0,o.QV)(b),y=(0,A.O4)(b);if(!(N||E)||_||!S)return;if((0,m.ug)(S.userInfo).cid!==((x=MB.user)==null?void 0:x.cid)){MB.notice({text:"\u5220\u9664\u8BC4\u8BBA\u6743\u9650\u4E0D\u8DB3"});return}MB.global.popupHelper.confirmAsync({className:"DeleteCommentModal",title:I18N.Comment.delete_comment_title,confirmText:I18N.Common.confirm,desc:I18N.Comment.delete_comment_desc,theme:y}).then($=>{var ce;$&&(u({type:"entry:comment:delete",payload:{cid:h}}),(0,T.i4)({operation_type:T.nU.deleteInPanel,comment_type:T.ej[S.threadType],relation:!!h,operation_from:T.HI[(ce=b.editor)==null?void 0:ce.state.mode.viewType]||T.HI.edit}))})},"entry:comment:wigglingCommentCid":(r,x)=>{let{dispatch:f}=r,{payload:{wigglingCommentCid:u}}=x;f({type:"comment:update:wigglingCommentCid",payload:{wigglingCommentCid:u}}),f({type:"comment:update:activeCommentCid",payload:{activeCommentCid:u}}),u&&setTimeout(()=>{f({type:"comment:update:wigglingCommentCid",payload:{wigglingCommentCid:""}})},1e3)},"entry:comment:checked":(r,x)=>{let{getState:f,dispatch:u}=r,{payload:{cid:b,status:h}}=x;const E=f(),z=(0,o.Vr)(E).find(_=>_.cid===b);if(!z)return;const S={isCompleted:!z.isCompleted};u({type:"entry:comment:update:item",payload:{cid:b,attr:S}}),u({type:"comment:update:editorIsEditing",payload:{editorIsEditing:!1}})}},p=()=>{const r=(0,C.oK)()?MB.webpackInterface.store.getState():MB.__store__.getState(),x=(0,o.QV)(r),f=(0,o.az)(r),u=(0,o.Ou)(r),b=(0,o.uX)(r),h=(0,o.V8)(r),E=(0,C.oK)()?(0,o.CI)(r):(0,o.AU)(r);let N;h&&x&&(0,m.IP)(h,b)&&(N=h.cid);const z=E.find(S=>S.cid===f);if(z&&x&&(0,m.IP)(z,b)&&(N=z.cid),u){const S=rootSdk.cmtStore.getHotItem(u),{hotAttr:{type:_}}=S;_==="cCmtContent"?N=S.sup:_==="cCmtThread"&&(N=u)}return N}},86899:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>p});var o=e(36521),m=e(40778);const g="SHOW_COMMENT_IN_CANVAS_KEY",l="RO_SHOW_COMMENT_IN_CANVAS_KEY",C="COMMENT_FILTER_SELECTED",T=m.eT?!1:(0,o.Yt)((0,m.OB)()?g:l,!0,o.qW.Boolean),A=(0,o.Yt)(C,"",o.qW.String),k={isInCommentMode:!1,isShowCommentInCanvas:T,isShowCompletedComment:!1,commentFilterSelected:A,allCommentList:[],activeCommentCid:"",wigglingCommentCid:"",startCommentAnchorPoint:null,isCommentDragging:!1,emojiToastStyle:{left:0,top:0},atStyle:{display:"",recordCid:"",keywords:"",left:0,top:0},creatingComment:null,editorRawContentObject:{},editorIsEditing:!1,editingCommentCid:"",editingRecordCid:"",previewCommentCacheTag:0};function p(r,x){r===void 0&&(r=k);const{type:f,payload:u}=x;switch(f){case"comment:clear:state":return k;case"comment:update:state":return Object.assign({},r,u);case"comment:update:isInCommentMode":return Object.assign({},r,{isInCommentMode:u.isInCommentMode});case"comment:set:showCommentInCanvas":return(0,o.a0)((0,m.OB)()?g:l,!0,o.qW.Boolean),Object.assign({},r,{isShowCommentInCanvas:!0});case"comment:toggle:isShowCommentInCanvas":return(0,o.a0)((0,m.OB)()?g:l,!r.isShowCommentInCanvas,o.qW.Boolean),Object.assign({},r,{isShowCommentInCanvas:!r.isShowCommentInCanvas});case"comment:update:commentFilterSelected":return(0,o.a0)(C,u.commentFilterSelected,o.qW.String),Object.assign({},r,{commentFilterSelected:u.commentFilterSelected});case"comment:toggle:isShowCompletedComment":return Object.assign({},r,{isShowCompletedComment:!r.isShowCompletedComment});case"comment:update:allCommentList":return Object.assign({},r,{allCommentList:u.allCommentList});case"comment:update:activeCommentCid":return Object.assign({},r,{activeCommentCid:u.activeCommentCid});case"comment:update:wigglingCommentCid":return Object.assign({},r,{wigglingCommentCid:u.wigglingCommentCid});case"comment:update:startCommentAnchorPoint":return Object.assign({},r,{startCommentAnchorPoint:u.startCommentAnchorPoint});case"comment:update:isCommentDragging":return Object.assign({},r,{isCommentDragging:u.isCommentDragging});case"comment:update:emojiToastStyle":return Object.assign({},r,{emojiToastStyle:u.emojiToastStyle});case"comment:update:atStyle":return Object.assign({},r,{atStyle:{...r.atStyle,recordCid:"",...u.atStyle}});case"comment:update:creatingComment":return Object.assign({},r,{creatingComment:u.creatingComment});case"comment:update:editorRawContentObject":return Object.assign({},r,{editorRawContentObject:u.editorRawContentObject});case"comment:update:editorIsEditing":return Object.assign({},r,{editorIsEditing:u.editorIsEditing});case"comment:update:editingCommentCid":return Object.assign({},r,{editingCommentCid:u.editingCommentCid});case"comment:update:editingRecordCid":return Object.assign({},r,{editingRecordCid:u.editingRecordCid});case"comment:update:isShowCommentInCanvas":return Object.assign({},r,{isShowCommentInCanvas:u.isShowCommentInCanvas});default:return r}}},64726:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>l});var o=e(72907),m=e(46795);const l={noticeCommentAtUsers:async C=>{let{projectCid:T,noticeType:A,userCids:k,content:p,screenCid:r,commentCid:x,basketCid:f=""}=C;try{await(0,m.Ds)("/api/aboard/web_v1/comment_notice",{project_cid:T,notice_type:A,content:p,user_cids:k,screen_cid:r,comment_cid:x,basket_cid:f})}catch(u){await(0,o.FY)(u)}}}},39943:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>Wn});var o=e(74059),m=e(51044),g=e(86634),l=e.n(g),C=e(7290),T=e(96343),A=e(13780),k=e(58197),p=e(2302),r=e(48451);function x(Do,Go,an,Mo,Cn,Tn,cn){const{rotate:bs}=Do,{w:Vn}=Go,ti=(0,r.WG)(an,Mo,-bs),oi=(0,r.WG)({x:Mo.x,y:ti.y},Mo,bs);let Gt=Math.sqrt((oi.x-Mo.x)**2+(oi.y-Mo.y)**2);const Rs={x:oi.x-(oi.x-Mo.x)/2,y:oi.y+(Mo.y-oi.y)/2};if(Cn)return{x:Rs.x-Gt/2,y:Rs.y-Gt/2,w:Gt,h:Gt};if(cn){const{h:Xs}=cn;if(Gt<Xs&&(Rs.y=Rs.y-(Xs-Gt)/2,Gt=Xs),oi.y>=Mo.y)return Go}return{x:Rs.x-Vn/2,y:Rs.y-Gt/2,w:Vn,h:Gt}}function f(Do,Go,an,Mo,Cn,Tn,cn){const{rotate:bs}=Do,{w:Vn}=Go,ti=(0,r.WG)(an,Mo,-bs),oi=(0,r.WG)({x:Mo.x,y:ti.y},Mo,bs);let Gt=Math.sqrt((oi.x-Mo.x)**2+(oi.y-Mo.y)**2);const Rs={x:oi.x-(oi.x-Mo.x)/2,y:oi.y+(Mo.y-oi.y)/2};if(Cn)return{x:Rs.x-Gt/2,y:Rs.y-Gt/2,w:Gt,h:Gt};if(cn){const{h:Xs}=cn;if(Gt<Xs&&(Rs.y=Rs.y+(Xs-Gt)/2,Gt=Xs),oi.y<=Mo.y)return Go}return{x:Rs.x-Vn/2,y:Rs.y-Gt/2,w:Vn,h:Gt}}function u(Do,Go,an,Mo,Cn,Tn,cn){const{rotate:bs}=Do,{h:Vn}=Go,ti=(0,r.WG)(an,Mo,-bs),oi=(0,r.WG)({x:ti.x,y:Mo.y},Mo,bs);let Gt=Math.sqrt((oi.x-Mo.x)**2+(oi.y-Mo.y)**2);const Rs={x:oi.x-(oi.x-Mo.x)/2,y:oi.y+(Mo.y-oi.y)/2};if(Cn)return{x:Rs.x-Gt/2,y:Rs.y-Gt/2,w:Gt,h:Gt};if(cn){const{w:Xs}=cn;if(Gt<Xs&&(Rs.x=Rs.x-(Xs-Gt)/2,Gt=Xs),oi.x>=Mo.x)return Go}return{x:Rs.x-Gt/2,y:Rs.y-Vn/2,w:Gt,h:Vn}}function b(Do,Go,an,Mo,Cn,Tn,cn){const{rotate:bs}=Do,{h:Vn}=Go,ti=(0,r.WG)(an,Mo,-bs),oi=(0,r.WG)({x:ti.x,y:Mo.y},Mo,bs);let Gt=Math.sqrt((oi.x-Mo.x)**2+(oi.y-Mo.y)**2);const Rs={x:oi.x-(oi.x-Mo.x)/2,y:oi.y+(Mo.y-oi.y)/2};if(Cn)return{x:Rs.x-Gt/2,y:Rs.y-Gt/2,w:Gt,h:Gt};if(cn){const{w:Xs}=cn;if(Gt<Xs&&(Rs.x=Rs.x+(Xs-Gt)/2,Gt=Xs),oi.x<=Mo.x)return Go}return{x:Rs.x-Gt/2,y:Rs.y-Vn/2,w:Gt,h:Vn}}function h(Do,Go,an,Mo,Cn,Tn,cn){let bs=Go,Vn=an;if(Cn){const Xs=Math.atan2(Mo.y-Tn.y,Tn.x-Mo.x),Ti=p.Z.distance(an,Mo),di={x:Mo.x+Ti,y:Mo.y};an.x<Mo.x||an.y<Mo.y?Vn=p.Z.rotate(Mo,-Xs,di):Vn=p.Z.rotate(Mo,Math.PI-Xs,di)}const{rotate:ti}=Do,oi=(0,r.EX)(Vn,Mo),Gt=(0,r.WG)(Vn,oi,-ti),Rs=(0,r.WG)(Mo,oi,-ti);if(cn){const{w:Xs,h:Ti}=cn,di=Rs.x-Gt.x,vs=Rs.y-Gt.y;if(di<=0||vs<=0)return Go;di<Xs&&(Gt.x=Gt.x-(Xs-di)),vs<Ti&&(Gt.y=Gt.y-(Ti-vs))}return bs={x:Gt.x<Rs.x?Gt.x:Rs.x,y:Gt.y<Rs.y?Gt.y:Rs.y,w:Math.abs(Rs.x-Gt.x),h:Math.abs(Rs.y-Gt.y)},bs}function E(Do,Go,an,Mo,Cn,Tn,cn){let bs=Go,Vn=an;if(Cn){const Xs=Math.atan2(Mo.y-Tn.y,Tn.x-Mo.x),Ti=p.Z.distance(an,Mo),di={x:Mo.x+Ti,y:Mo.y};an.x>Mo.x||an.y<Mo.y?Vn=p.Z.rotate(Mo,-Xs,di):Vn=p.Z.rotate(Mo,Math.PI-Xs,di)}const{rotate:ti}=Do,oi=(0,r.EX)(Vn,Mo),Gt=(0,r.WG)(Vn,oi,-ti),Rs=(0,r.WG)(Mo,oi,-ti);if(cn){const{w:Xs,h:Ti}=cn,di=Gt.x-Rs.x,vs=Rs.y-Gt.y;if(di<=0||vs<=0)return Go;di<Xs&&(Gt.x=Gt.x+(Xs-di)),vs<Ti&&(Gt.y=Gt.y-(Ti-vs))}return bs={x:Rs.x<Gt.x?Rs.x:Gt.x,y:Rs.y<Gt.y?Rs.y:Gt.y,w:Math.abs(Gt.x-Rs.x),h:Math.abs(Rs.y-Gt.y)},bs}function N(Do,Go,an,Mo,Cn,Tn,cn){let bs=Go,Vn=an;if(Cn){const Xs=Math.atan2(Mo.y-Tn.y,Tn.x-Mo.x),Ti=p.Z.distance(an,Mo),di={x:Mo.x+Ti,y:Mo.y};an.x<Mo.x||an.y>Mo.y?Vn=p.Z.rotate(Mo,-Xs,di):Vn=p.Z.rotate(Mo,Math.PI-Xs,di)}const{rotate:ti}=Do,oi=(0,r.EX)(Vn,Mo),Gt=(0,r.WG)(Mo,oi,-ti),Rs=(0,r.WG)(Vn,oi,-ti);if(cn){const{w:Xs,h:Ti}=cn,di=Gt.x-Rs.x,vs=Rs.y-Gt.y;if(di<=0||vs<=0)return Go;di<Xs&&(Rs.x=Rs.x-(Xs-di)),vs<Ti&&(Rs.y=Rs.y+(Ti-vs))}return bs={x:Rs.x<Gt.x?Rs.x:Gt.x,y:Rs.y<Gt.y?Rs.y:Gt.y,w:Math.abs(Gt.x-Rs.x),h:Math.abs(Rs.y-Gt.y)},bs}function z(Do,Go,an,Mo,Cn,Tn,cn){let bs=Go,Vn=an;if(Cn){const Xs=Math.atan2(Mo.y-Tn.y,Tn.x-Mo.x),Ti=p.Z.distance(an,Mo),di={x:Mo.x+Ti,y:Mo.y};an.x>Mo.x||an.y>Mo.y?Vn=p.Z.rotate(Mo,-Xs,di):Vn=p.Z.rotate(Mo,Math.PI-Xs,di)}const{rotate:ti}=Do,oi=(0,r.EX)(Vn,Mo),Gt=(0,r.WG)(Mo,oi,-ti),Rs=(0,r.WG)(Vn,oi,-ti);if(cn){const{w:Xs,h:Ti}=cn,di=Rs.x-Gt.x,vs=Rs.y-Gt.y;if(di<=0||vs<=0)return Go;di<Xs&&(Rs.x=Rs.x+(Xs-di)),vs<Ti&&(Rs.y=Rs.y+(Ti-vs))}return bs={x:Gt.x<Rs.x?Gt.x:Rs.x,y:Gt.y<Rs.y?Gt.y:Rs.y,w:Math.abs(Rs.x-Gt.x),h:Math.abs(Rs.y-Gt.y)},bs}const S={t:x,r:b,l:u,b:f,tl:h,tr:E,bl:N,br:z};function _(Do,Go,an,Mo,Cn,Tn,cn,bs){return S[Do](Go,an,Mo,Cn,Tn,cn,bs)}const y=["tl","t","tr","r","br","b","bl","l"],a=["tl","tr","br","bl"],$={tl:0,t:45,tr:90,r:135,br:180,b:225,bl:270,l:315},ce=[{start:338,end:23,cursor:"nw",rotateCursor:"url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAnIGhlaWdodD0nMjAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zycgc3R5bGU9J3RyYW5zZm9ybTogcm90YXRlKDI3Ni45Nzc5MjU2ODcyNDkzNWRlZyknPjxkZWZzPjxmaWx0ZXIgeD0nLTc1JScgeT0nLTc1JScgd2lkdGg9JzI1MCUnIGhlaWdodD0nMjUwJScgZmlsdGVyVW5pdHM9J29iamVjdEJvdW5kaW5nQm94JyBpZD0nYSc+PGZlT2Zmc2V0IGR5PScxJyBpbj0nU291cmNlQWxwaGEnIHJlc3VsdD0nc2hhZG93T2Zmc2V0T3V0ZXIxJy8+PGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0nMS41JyBpbj0nc2hhZG93T2Zmc2V0T3V0ZXIxJyByZXN1bHQ9J3NoYWRvd0JsdXJPdXRlcjEnLz48ZmVDb2xvck1hdHJpeCB2YWx1ZXM9JzAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuNCAwJyBpbj0nc2hhZG93Qmx1ck91dGVyMScgcmVzdWx0PSdzaGFkb3dNYXRyaXhPdXRlcjEnLz48ZmVNZXJnZT48ZmVNZXJnZU5vZGUgaW49J3NoYWRvd01hdHJpeE91dGVyMScvPjxmZU1lcmdlTm9kZSBpbj0nU291cmNlR3JhcGhpYycvPjwvZmVNZXJnZT48L2ZpbHRlcj48L2RlZnM+PGcgZmlsdGVyPSd1cmwoI2EpJyB0cmFuc2Zvcm09J3RyYW5zbGF0ZSg0IDMpJyBmaWxsPScjMDAwJyBmaWxsLXJ1bGU9J25vbnplcm8nIHN0cm9rZT0nI0ZGRic+PHBhdGggZD0nTTIuOTkxLS43MjRMMy40MTQgMS41SDVjMS41MTkgMCAyLjg5NC42MTYgMy44OSAxLjYxQTUuNDgzIDUuNDgzIDAgMDExMC41IDdoMHYxLjVoMi4wMTlsLTIuOCA0LjEwN0w2LjI3NiA5LjAxIDguNSA4LjU4NlY3YzAtLjk2Ni0uMzkyLTEuODQxLTEuMDI1LTIuNDc1QTMuNDg5IDMuNDg5IDAgMDA1IDMuNWgwLTEuNXYyLjAxOWwtNC4xMDctMi44TDIuOTktLjcyNHonLz48L2c+PC9zdmc+) 12 12, auto"},{start:23,end:68,cursor:"n",rotateCursor:"url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAnIGhlaWdodD0nMjAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zycgc3R5bGU9J3RyYW5zZm9ybTogcm90YXRlKDMxMi45OTIzMDc4MzEwMDM3ZGVnKSc+PGRlZnM+PGZpbHRlciB4PSctNzUlJyB5PSctNzUlJyB3aWR0aD0nMjUwJScgaGVpZ2h0PScyNTAlJyBmaWx0ZXJVbml0cz0nb2JqZWN0Qm91bmRpbmdCb3gnIGlkPSdhJz48ZmVPZmZzZXQgZHk9JzEnIGluPSdTb3VyY2VBbHBoYScgcmVzdWx0PSdzaGFkb3dPZmZzZXRPdXRlcjEnLz48ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPScxLjUnIGluPSdzaGFkb3dPZmZzZXRPdXRlcjEnIHJlc3VsdD0nc2hhZG93Qmx1ck91dGVyMScvPjxmZUNvbG9yTWF0cml4IHZhbHVlcz0nMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC40IDAnIGluPSdzaGFkb3dCbHVyT3V0ZXIxJyByZXN1bHQ9J3NoYWRvd01hdHJpeE91dGVyMScvPjxmZU1lcmdlPjxmZU1lcmdlTm9kZSBpbj0nc2hhZG93TWF0cml4T3V0ZXIxJy8+PGZlTWVyZ2VOb2RlIGluPSdTb3VyY2VHcmFwaGljJy8+PC9mZU1lcmdlPjwvZmlsdGVyPjwvZGVmcz48ZyBmaWx0ZXI9J3VybCgjYSknIHRyYW5zZm9ybT0ndHJhbnNsYXRlKDQgMyknIGZpbGw9JyMwMDAnIGZpbGwtcnVsZT0nbm9uemVybycgc3Ryb2tlPScjRkZGJz48cGF0aCBkPSdNMi45OTEtLjcyNEwzLjQxNCAxLjVINWMxLjUxOSAwIDIuODk0LjYxNiAzLjg5IDEuNjFBNS40ODMgNS40ODMgMCAwMTEwLjUgN2gwdjEuNWgyLjAxOWwtMi44IDQuMTA3TDYuMjc2IDkuMDEgOC41IDguNTg2VjdjMC0uOTY2LS4zOTItMS44NDEtMS4wMjUtMi40NzVBMy40ODkgMy40ODkgMCAwMDUgMy41aDAtMS41djIuMDE5bC00LjEwNy0yLjhMMi45OS0uNzI0eicvPjwvZz48L3N2Zz4=) 12 12, auto"},{start:68,end:113,cursor:"ne",rotateCursor:"url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAnIGhlaWdodD0nMjAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zycgc3R5bGU9J3RyYW5zZm9ybTogcm90YXRlKDQuOTY0NDg0NzY1NjM0MjExZGVnKSc+PGRlZnM+PGZpbHRlciB4PSctNzUlJyB5PSctNzUlJyB3aWR0aD0nMjUwJScgaGVpZ2h0PScyNTAlJyBmaWx0ZXJVbml0cz0nb2JqZWN0Qm91bmRpbmdCb3gnIGlkPSdhJz48ZmVPZmZzZXQgZHk9JzEnIGluPSdTb3VyY2VBbHBoYScgcmVzdWx0PSdzaGFkb3dPZmZzZXRPdXRlcjEnLz48ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPScxLjUnIGluPSdzaGFkb3dPZmZzZXRPdXRlcjEnIHJlc3VsdD0nc2hhZG93Qmx1ck91dGVyMScvPjxmZUNvbG9yTWF0cml4IHZhbHVlcz0nMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC40IDAnIGluPSdzaGFkb3dCbHVyT3V0ZXIxJyByZXN1bHQ9J3NoYWRvd01hdHJpeE91dGVyMScvPjxmZU1lcmdlPjxmZU1lcmdlTm9kZSBpbj0nc2hhZG93TWF0cml4T3V0ZXIxJy8+PGZlTWVyZ2VOb2RlIGluPSdTb3VyY2VHcmFwaGljJy8+PC9mZU1lcmdlPjwvZmlsdGVyPjwvZGVmcz48ZyBmaWx0ZXI9J3VybCgjYSknIHRyYW5zZm9ybT0ndHJhbnNsYXRlKDQgMyknIGZpbGw9JyMwMDAnIGZpbGwtcnVsZT0nbm9uemVybycgc3Ryb2tlPScjRkZGJz48cGF0aCBkPSdNMi45OTEtLjcyNEwzLjQxNCAxLjVINWMxLjUxOSAwIDIuODk0LjYxNiAzLjg5IDEuNjFBNS40ODMgNS40ODMgMCAwMTEwLjUgN2gwdjEuNWgyLjAxOWwtMi44IDQuMTA3TDYuMjc2IDkuMDEgOC41IDguNTg2VjdjMC0uOTY2LS4zOTItMS44NDEtMS4wMjUtMi40NzVBMy40ODkgMy40ODkgMCAwMDUgMy41aDAtMS41djIuMDE5bC00LjEwNy0yLjhMMi45OS0uNzI0eicvPjwvZz48L3N2Zz4=) 12 12, auto"},{start:113,end:158,cursor:"e",rotateCursor:"url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAnIGhlaWdodD0nMjAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zycgc3R5bGU9J3RyYW5zZm9ybTogcm90YXRlKDM4LjQ1NTk0Nzc2NzY3MzcwNmRlZyknPjxkZWZzPjxmaWx0ZXIgeD0nLTc1JScgeT0nLTc1JScgd2lkdGg9JzI1MCUnIGhlaWdodD0nMjUwJScgZmlsdGVyVW5pdHM9J29iamVjdEJvdW5kaW5nQm94JyBpZD0nYSc+PGZlT2Zmc2V0IGR5PScxJyBpbj0nU291cmNlQWxwaGEnIHJlc3VsdD0nc2hhZG93T2Zmc2V0T3V0ZXIxJy8+PGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0nMS41JyBpbj0nc2hhZG93T2Zmc2V0T3V0ZXIxJyByZXN1bHQ9J3NoYWRvd0JsdXJPdXRlcjEnLz48ZmVDb2xvck1hdHJpeCB2YWx1ZXM9JzAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuNCAwJyBpbj0nc2hhZG93Qmx1ck91dGVyMScgcmVzdWx0PSdzaGFkb3dNYXRyaXhPdXRlcjEnLz48ZmVNZXJnZT48ZmVNZXJnZU5vZGUgaW49J3NoYWRvd01hdHJpeE91dGVyMScvPjxmZU1lcmdlTm9kZSBpbj0nU291cmNlR3JhcGhpYycvPjwvZmVNZXJnZT48L2ZpbHRlcj48L2RlZnM+PGcgZmlsdGVyPSd1cmwoI2EpJyB0cmFuc2Zvcm09J3RyYW5zbGF0ZSg0IDMpJyBmaWxsPScjMDAwJyBmaWxsLXJ1bGU9J25vbnplcm8nIHN0cm9rZT0nI0ZGRic+PHBhdGggZD0nTTIuOTkxLS43MjRMMy40MTQgMS41SDVjMS41MTkgMCAyLjg5NC42MTYgMy44OSAxLjYxQTUuNDgzIDUuNDgzIDAgMDExMC41IDdoMHYxLjVoMi4wMTlsLTIuOCA0LjEwN0w2LjI3NiA5LjAxIDguNSA4LjU4NlY3YzAtLjk2Ni0uMzkyLTEuODQxLTEuMDI1LTIuNDc1QTMuNDg5IDMuNDg5IDAgMDA1IDMuNWgwLTEuNXYyLjAxOWwtNC4xMDctMi44TDIuOTktLjcyNHonLz48L2c+PC9zdmc+) 12 12, auto"},{start:158,end:203,cursor:"se",rotateCursor:"url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAnIGhlaWdodD0nMjAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zycgc3R5bGU9J3RyYW5zZm9ybTogcm90YXRlKDEwMC42MTE5NjU2NDIyMTg1OWRlZyknPjxkZWZzPjxmaWx0ZXIgeD0nLTc1JScgeT0nLTc1JScgd2lkdGg9JzI1MCUnIGhlaWdodD0nMjUwJScgZmlsdGVyVW5pdHM9J29iamVjdEJvdW5kaW5nQm94JyBpZD0nYSc+PGZlT2Zmc2V0IGR5PScxJyBpbj0nU291cmNlQWxwaGEnIHJlc3VsdD0nc2hhZG93T2Zmc2V0T3V0ZXIxJy8+PGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0nMS41JyBpbj0nc2hhZG93T2Zmc2V0T3V0ZXIxJyByZXN1bHQ9J3NoYWRvd0JsdXJPdXRlcjEnLz48ZmVDb2xvck1hdHJpeCB2YWx1ZXM9JzAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuNCAwJyBpbj0nc2hhZG93Qmx1ck91dGVyMScgcmVzdWx0PSdzaGFkb3dNYXRyaXhPdXRlcjEnLz48ZmVNZXJnZT48ZmVNZXJnZU5vZGUgaW49J3NoYWRvd01hdHJpeE91dGVyMScvPjxmZU1lcmdlTm9kZSBpbj0nU291cmNlR3JhcGhpYycvPjwvZmVNZXJnZT48L2ZpbHRlcj48L2RlZnM+PGcgZmlsdGVyPSd1cmwoI2EpJyB0cmFuc2Zvcm09J3RyYW5zbGF0ZSg0IDMpJyBmaWxsPScjMDAwJyBmaWxsLXJ1bGU9J25vbnplcm8nIHN0cm9rZT0nI0ZGRic+PHBhdGggZD0nTTIuOTkxLS43MjRMMy40MTQgMS41SDVjMS41MTkgMCAyLjg5NC42MTYgMy44OSAxLjYxQTUuNDgzIDUuNDgzIDAgMDExMC41IDdoMHYxLjVoMi4wMTlsLTIuOCA0LjEwN0w2LjI3NiA5LjAxIDguNSA4LjU4NlY3YzAtLjk2Ni0uMzkyLTEuODQxLTEuMDI1LTIuNDc1QTMuNDg5IDMuNDg5IDAgMDA1IDMuNWgwLTEuNXYyLjAxOWwtNC4xMDctMi44TDIuOTktLjcyNHonLz48L2c+PC9zdmc+) 12 12, auto"},{start:203,end:248,cursor:"s",rotateCursor:"url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAnIGhlaWdodD0nMjAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zycgc3R5bGU9J3RyYW5zZm9ybTogcm90YXRlKDEzMC4wMDY5MDQxMzM2NjA5ZGVnKSc+PGRlZnM+PGZpbHRlciB4PSctNzUlJyB5PSctNzUlJyB3aWR0aD0nMjUwJScgaGVpZ2h0PScyNTAlJyBmaWx0ZXJVbml0cz0nb2JqZWN0Qm91bmRpbmdCb3gnIGlkPSdhJz48ZmVPZmZzZXQgZHk9JzEnIGluPSdTb3VyY2VBbHBoYScgcmVzdWx0PSdzaGFkb3dPZmZzZXRPdXRlcjEnLz48ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPScxLjUnIGluPSdzaGFkb3dPZmZzZXRPdXRlcjEnIHJlc3VsdD0nc2hhZG93Qmx1ck91dGVyMScvPjxmZUNvbG9yTWF0cml4IHZhbHVlcz0nMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC40IDAnIGluPSdzaGFkb3dCbHVyT3V0ZXIxJyByZXN1bHQ9J3NoYWRvd01hdHJpeE91dGVyMScvPjxmZU1lcmdlPjxmZU1lcmdlTm9kZSBpbj0nc2hhZG93TWF0cml4T3V0ZXIxJy8+PGZlTWVyZ2VOb2RlIGluPSdTb3VyY2VHcmFwaGljJy8+PC9mZU1lcmdlPjwvZmlsdGVyPjwvZGVmcz48ZyBmaWx0ZXI9J3VybCgjYSknIHRyYW5zZm9ybT0ndHJhbnNsYXRlKDQgMyknIGZpbGw9JyMwMDAnIGZpbGwtcnVsZT0nbm9uemVybycgc3Ryb2tlPScjRkZGJz48cGF0aCBkPSdNMi45OTEtLjcyNEwzLjQxNCAxLjVINWMxLjUxOSAwIDIuODk0LjYxNiAzLjg5IDEuNjFBNS40ODMgNS40ODMgMCAwMTEwLjUgN2gwdjEuNWgyLjAxOWwtMi44IDQuMTA3TDYuMjc2IDkuMDEgOC41IDguNTg2VjdjMC0uOTY2LS4zOTItMS44NDEtMS4wMjUtMi40NzVBMy40ODkgMy40ODkgMCAwMDUgMy41aDAtMS41djIuMDE5bC00LjEwNy0yLjhMMi45OS0uNzI0eicvPjwvZz48L3N2Zz4=) 12 12, auto"},{start:248,end:293,cursor:"sw",rotateCursor:"url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAnIGhlaWdodD0nMjAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zycgc3R5bGU9J3RyYW5zZm9ybTogcm90YXRlKDE3OC4xNjgxMzM0MTgxMDYzZGVnKSc+PGRlZnM+PGZpbHRlciB4PSctNzUlJyB5PSctNzUlJyB3aWR0aD0nMjUwJScgaGVpZ2h0PScyNTAlJyBmaWx0ZXJVbml0cz0nb2JqZWN0Qm91bmRpbmdCb3gnIGlkPSdhJz48ZmVPZmZzZXQgZHk9JzEnIGluPSdTb3VyY2VBbHBoYScgcmVzdWx0PSdzaGFkb3dPZmZzZXRPdXRlcjEnLz48ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPScxLjUnIGluPSdzaGFkb3dPZmZzZXRPdXRlcjEnIHJlc3VsdD0nc2hhZG93Qmx1ck91dGVyMScvPjxmZUNvbG9yTWF0cml4IHZhbHVlcz0nMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC40IDAnIGluPSdzaGFkb3dCbHVyT3V0ZXIxJyByZXN1bHQ9J3NoYWRvd01hdHJpeE91dGVyMScvPjxmZU1lcmdlPjxmZU1lcmdlTm9kZSBpbj0nc2hhZG93TWF0cml4T3V0ZXIxJy8+PGZlTWVyZ2VOb2RlIGluPSdTb3VyY2VHcmFwaGljJy8+PC9mZU1lcmdlPjwvZmlsdGVyPjwvZGVmcz48ZyBmaWx0ZXI9J3VybCgjYSknIHRyYW5zZm9ybT0ndHJhbnNsYXRlKDQgMyknIGZpbGw9JyMwMDAnIGZpbGwtcnVsZT0nbm9uemVybycgc3Ryb2tlPScjRkZGJz48cGF0aCBkPSdNMi45OTEtLjcyNEwzLjQxNCAxLjVINWMxLjUxOSAwIDIuODk0LjYxNiAzLjg5IDEuNjFBNS40ODMgNS40ODMgMCAwMTEwLjUgN2gwdjEuNWgyLjAxOWwtMi44IDQuMTA3TDYuMjc2IDkuMDEgOC41IDguNTg2VjdjMC0uOTY2LS4zOTItMS44NDEtMS4wMjUtMi40NzVBMy40ODkgMy40ODkgMCAwMDUgMy41aDAtMS41djIuMDE5bC00LjEwNy0yLjhMMi45OS0uNzI0eicvPjwvZz48L3N2Zz4=) 12 12, auto"},{start:293,end:338,cursor:"w",rotateCursor:"url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAnIGhlaWdodD0nMjAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zycgc3R5bGU9J3RyYW5zZm9ybTogcm90YXRlKDIyMi41OTMwMjg0OTU4OTM5OGRlZyknPjxkZWZzPjxmaWx0ZXIgeD0nLTc1JScgeT0nLTc1JScgd2lkdGg9JzI1MCUnIGhlaWdodD0nMjUwJScgZmlsdGVyVW5pdHM9J29iamVjdEJvdW5kaW5nQm94JyBpZD0nYSc+PGZlT2Zmc2V0IGR5PScxJyBpbj0nU291cmNlQWxwaGEnIHJlc3VsdD0nc2hhZG93T2Zmc2V0T3V0ZXIxJy8+PGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0nMS41JyBpbj0nc2hhZG93T2Zmc2V0T3V0ZXIxJyByZXN1bHQ9J3NoYWRvd0JsdXJPdXRlcjEnLz48ZmVDb2xvck1hdHJpeCB2YWx1ZXM9JzAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuNCAwJyBpbj0nc2hhZG93Qmx1ck91dGVyMScgcmVzdWx0PSdzaGFkb3dNYXRyaXhPdXRlcjEnLz48ZmVNZXJnZT48ZmVNZXJnZU5vZGUgaW49J3NoYWRvd01hdHJpeE91dGVyMScvPjxmZU1lcmdlTm9kZSBpbj0nU291cmNlR3JhcGhpYycvPjwvZmVNZXJnZT48L2ZpbHRlcj48L2RlZnM+PGcgZmlsdGVyPSd1cmwoI2EpJyB0cmFuc2Zvcm09J3RyYW5zbGF0ZSg0IDMpJyBmaWxsPScjMDAwJyBmaWxsLXJ1bGU9J25vbnplcm8nIHN0cm9rZT0nI0ZGRic+PHBhdGggZD0nTTIuOTkxLS43MjRMMy40MTQgMS41SDVjMS41MTkgMCAyLjg5NC42MTYgMy44OSAxLjYxQTUuNDgzIDUuNDgzIDAgMDExMC41IDdoMHYxLjVoMi4wMTlsLTIuOCA0LjEwN0w2LjI3NiA5LjAxIDguNSA4LjU4NlY3YzAtLjk2Ni0uMzkyLTEuODQxLTEuMDI1LTIuNDc1QTMuNDg5IDMuNDg5IDAgMDA1IDMuNWgwLTEuNXYyLjAxOWwtNC4xMDctMi44TDIuOTktLjcyNHonLz48L2c+PC9zdmc+) 12 12, auto"}];var de=e(21676);const fe=de.Ay.div.withConfig({displayName:"styles__StyledResizerDiv",componentId:"sc-2o9ura-0"})(["position:absolute;z-index:2;& > *{pointer-events:auto;}.square{position:absolute;width:15px;height:15px;&::before{content:'';display:block;width:7px;height:7px;position:absolute;left:4px;top:4px;background-color:#fff;border:1px solid #1684FC;}}.rotate{position:absolute;width:14px;height:14px;background-color:transparent;&.tr{top:-14px;right:-14px;transform:scale(1.5);}&.tl{top:-14px;left:-14px;transform:scale(1.5);}&.br{bottom:-14px;right:-14px;transform:scale(1.5);}&.bl{bottom:-14px;left:-14px;transform:scale(1.5);}}.resizable-handler{position:absolute;width:14px;height:14px;cursor:pointer;z-index:1;&.tl,&.tr,&.bl,&.br{z-index:2;}&.tl,&.tr{top:-7px;}&.tl,&.bl{left:-7px;}&.bl,&.br{bottom:-7px;}&.br,&.tr{right:-7px;}&.r,&.l{height:100%;top:3px;}&.r{right:-7px;}&.l{left:-7px;}&.t,&.b{left:3px;width:100%;}&.t{top:-7px;}&.b{bottom:-7px;}}.t,.tl,.tr{top:-7px;}.b,.bl,.br{bottom:-7px;}.r,.tr,.br{right:-7px;}.tl,.l,.bl{left:-7px;}.l,.r{top:50%;margin-top:-7px;}.t,.b{left:50%;margin-left:-7px;}"]);var se=e(57464);class J extends m.Component{constructor(){super(...arguments),(0,o.A)(this,"onResize",Go=>{const{style:an,comment:{canvasCid:Mo,cid:Cn,rect:Tn},viewport:{scale:cn,offset:bs},mode:Vn,dispatch:ti}=this.props,oi={offset:{x:0,y:0},scale:cn/100},{direction:Gt}=Go.currentTarget.dataset,{rotate:Rs=0}=Tn||{rotate:0};let Xs={...A.L.applyRect(oi,Tn),rotate:Rs};Vn==="preview"&&(Xs={...k.rw.xywh(Number(an.left),Number(an.top),Number(an.width),Number(an.height)),rotate:Rs});const Ti=k.rw.center(Xs),di=(0,r.mk)(Xs,Ti,Gt),vs={x:Go.clientX,y:Go.clientY},ei={x:Ti.x-(di.x-Ti.x),y:Ti.y-(di.y-Ti.y)};let Si=!0;const Gs=ps=>{if(Si){Si=!1;return}ti({type:"entry:comment:be-dragging"});const{style:kn}=this.props,zn={x:ps.clientX,y:ps.clientY},hs=p.Z.add(di,p.Z.subtract(zn,vs)),Ss=_(Gt,Xs,{x:kn.left,y:kn.top,w:kn.width,h:kn.height},hs,ei),fi={x:Ss.x,y:Ss.y},ri={x:Ss.x+Ss.w,y:Ss.y+Ss.h};if(Vn==="design"){const Li=A.L.applyInverse(oi,fi),ji=A.L.applyInverse(oi,ri),_t={x:Li.x,y:Li.y,w:ji.x-Li.x,h:ji.y-Li.y,rotate:Rs};ti({type:"entry:comment:resize",payload:{cid:Cn,rect:_t}})}else{const Li=(0,T._p)(fi,Mo,{offset:bs,scale:cn/100}),ji=(0,T._p)(ri,Mo,{offset:bs,scale:cn/100}),_t={x:Li.x,y:Li.y,w:ji.x-Li.x,h:ji.y-Li.y,rotate:Rs};ti({type:"entry:comment:resize",payload:{cid:Cn,rect:_t,screenRect:Ss}})}},Vs=()=>{ti({type:"entry:comment:benot-dragging",payload:{cid:Cn,undo:!0}}),document.removeEventListener("mousemove",Gs,!1),document.removeEventListener("mouseup",Vs,!1)};document.addEventListener("mousemove",Gs,!1),document.addEventListener("mouseup",Vs,!1)}),(0,o.A)(this,"getCursor",Go=>{const an=(0,r.WR)(Go),Mo={};let Cn=-1;return y.forEach(Tn=>{const cn=(0,r.WR)($[Tn]+an),bs=ce.length;for(;;){Cn=(Cn+1)%bs;const Vn=ce[Cn];if(cn<23||cn>=338){Mo[Tn]={cursor:ce[0].cursor+"-resize",rotateCursor:ce[0].rotateCursor};return}if(Vn.start<=cn&&cn<Vn.end){Mo[Tn]={cursor:Vn.cursor+"-resize",rotateCursor:Vn.rotateCursor};return}}}),Mo})}render(){const{style:Go,comment:{rect:an}}=this.props,Mo=(an==null?void 0:an.rotate)||0,Cn=this.getCursor(Mo);return(0,se.jsxs)(fe,{className:"single-resizer",style:Go,children:[a.map(Tn=>(0,se.jsx)("div",{className:Tn+" square"},Tn)),y.map(Tn=>{const cn=Cn[Tn].cursor;return(0,se.jsx)("div",{style:{cursor:cn},"data-direction":Tn,className:Tn+" resizable-handler",onMouseDown:this.onResize},Tn)})]})}}const ve=J;class D extends m.Component{constructor(){super(...arguments),(0,o.A)(this,"onAnchorMouseDown",Go=>{Go.stopPropagation();const{comment:an,dispatch:Mo}=this.props;Mo({type:"entry:comment:anchor:mousedown",payload:{event:Go,comment:an}})}),(0,o.A)(this,"getAvatar",(Go,an)=>{if(an!=null&&an.includes("/images/avatar.png")||!an){var Mo;return(0,se.jsx)("div",{className:l()("anchor--anchorLabel"),style:{color:"#FFF",fontSize:"14px",lineHeight:"24px",backgroundColor:"rgba(22, 132, 252)"},children:(Mo=Go.slice(0,1))==null?void 0:Mo.toUpperCase()})}else return(0,se.jsx)("img",{className:"anchor--anchorLabel",src:an,draggable:"false",alt:""})}),(0,o.A)(this,"getAnchorRenderDom",(Go,an,Mo)=>{const Cn=(0,T.ug)(Mo),Tn=this.getAvatar(Cn.name,Cn.avatar);return(0,se.jsxs)(se.Fragment,{children:[Go==="creating"&&(0,se.jsx)(C.C,{className:"comment-icon",name:"comment/creating_comment",size:38}),Go==="created"&&(0,se.jsxs)(se.Fragment,{children:[(0,se.jsx)(C.C,{className:"comment-icon comment-created-icon "+(an&&"is-active"),name:"comment/created_comment",size:32}),Tn]}),Go==="checked"&&(0,se.jsxs)("span",{style:{opacity:.5},children:[(0,se.jsx)(C.C,{className:"comment-icon comment-created-icon "+(an&&"is-active"),name:"comment/created_comment",size:32}),Tn]})]})})}render(){const{mode:Go,viewport:an,comment:Mo,activeCommentCid:Cn,dispatch:Tn,creatingComment:cn}=this.props,{cid:bs,status:Vn,userInfo:ti}=Mo,oi=bs===Cn,Gt=bs===(cn==null?void 0:cn.cid),Rs=this.getAnchorRenderDom(Vn,oi,ti),{threadType:Xs}=Mo,Ti=(0,T.V3)({comment:Mo,mode:Go,viewport:an});return(0,se.jsx)(se.Fragment,{children:Xs==="point"?(0,se.jsx)("div",{"data-cid":bs,className:l()({"comment-anchor-container point comment-anchor":!0,active:oi}),style:Ti,onMouseDown:this.onAnchorMouseDown,children:Rs}):(0,se.jsxs)("div",{"data-cid":bs,className:l()("rect-anchor-container",{active:oi,creating:Gt}),style:{pointerEvents:"none"},children:[(0,se.jsx)("div",{className:"comment-anchor-container frame",style:{pointerEvents:"none",position:"absolute",...Ti},children:(0,se.jsx)("div",{className:l()({"comment-anchor":!0,active:oi}),style:{right:-36.5,top:-32},onMouseDown:this.onAnchorMouseDown,children:Rs})}),(0,se.jsx)("div",{className:"comment-rect-anchor",style:{...Ti},onMouseDown:this.onAnchorMouseDown}),oi&&(0,se.jsx)(ve,{mode:Go,style:Ti,viewport:an,comment:Mo,dispatch:Tn})]})})}}var R=e(88223),V=e(66456),O=e(52098),Ce=e(89300),ae=e(81962);function q(){return{handleReturn:(Do,Go,an)=>{const Mo=Do.setEditorState,Cn=(0,ae.h_)(an,Go);return Cn?(Mo(Cn),"handled"):"not-handled"},keyBindingFn:(Do,Go)=>[13,38,40].includes(Go.keyCode)?Go.keyCode:(0,O.K6)(Go),handleKeyCommand:(Do,Go)=>{const an=Do.getIsInSearch,Mo=Do.handleConfirm,{isInSearch:Cn}=an(),Tn=Do.getIsAt();return Cn&&[13,38,40].includes(Go)?"handled":[13,"split-block"].includes(Go)&&!Tn?(Mo(),"handled"):"not-handled"}}}const xe=q();var te=e(91344),H=e(15668),re=e(11542),be=e(54909);const Le=de.Ay.span.withConfig({displayName:"styles__StyledEmojiIconDiv",componentId:"sc-1uxa3yv-0"})([".emoji-btn{margin:0 4px;width:28px;height:28px;cursor:pointer;border-radius:4px;color:",";&.free-width{width:auto;}&.disabled{background-color:transparent;opacity:.3;cursor:not-allowed;}&:hover{background-color:",";}&:active,&.active{background-color:",";}}.emoji-btn .svg-icon{width:32px;height:32px;}"],Do=>Do.theme.color_text_L1,Do=>Do.theme.color_btn_secondary_active,Do=>Do.theme.color_btn_secondary_active),Ve=de.Ay.div.withConfig({displayName:"styles__StyledEmojiToastDiv",componentId:"sc-1uxa3yv-1"})(["pointer-events:auto;position:absolute;width:282px;border-radius:8px;background-color:",";border:1px solid ",";filter:drop-shadow(2px 8px 20px rgba(0,0,0,0.10));cursor:default;z-index:5;.emoji-triangle{width:24px;height:12px;position:absolute;left:24px;top:-12px;g{path{&:nth-child(1){fill:",";}&:nth-child(2){stroke:",";stroke-opacity:1;fill:none;}}}}.expression-container{width:100%;box-sizing:border-box;padding:10px 0;.expression-title{font-size:12px;flex-wrap:500;line-height:16px;padding:0 20px;margin-bottom:8px;color:",";}.expression-list{color:black;width:100%;height:236px;padding:0 16px;overflow-y:auto;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;flex-wrap:wrap;.emoji-span{width:30px;height:30px;padding:6px;font-size:20px;border-radius:50%;display:flex;flex-direction:row;justify-content:center;align-items:center;&:hover{background-color:",";}}}}.icon-list{width:100%;box-sizing:border-box;border-top:1px solid ",";padding:15px 16px;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;}.emoji-btn{margin:0 4px;width:32px;cursor:pointer;border-radius:4px;.svg-icon{color:",";}&.free-width{width:auto;}&.disabled{background-color:transparent;opacity:.3;cursor:not-allowed;}&:hover{background-color:",";}&:active,&.active{background-color:",";.svg-icon{color:",";}}}.emoji-btn .svg-icon{width:32px;height:32px;}"],Do=>Do.theme.color_bg_white,Do=>Do.theme.color_bg_border_01,Do=>Do.theme.color_bg_white,Do=>Do.theme.color_bg_border_01,Do=>Do.theme.color_text_L1,Do=>Do.theme.color_btn_secondary_hover,Do=>Do.theme.color_bg_border_01,Do=>Do.theme.color_text_L3,Do=>Do.theme.color_btn_secondary_active,Do=>Do.theme.color_btn_secondary_active,Do=>Do.theme.color_text_L1);class Ne extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"ref",null),(0,o.A)(this,"state",{active:!1}),(0,o.A)(this,"handleEmojiAdd",Go=>{let{commentCid:an,emoji:Mo}=Go;const{active:Cn}=this.state;if(!Cn)return;const{commentCid:Tn,onValueChange:cn}=this.props;Tn===an&&cn&&cn(Mo)}),(0,o.A)(this,"handleClick",()=>{if(!this.ref){this.setState({active:!1});return}const Go=this.ref.getBoundingClientRect();if(!Go){this.setState({active:!1});return}const{recordCid:an,dispatch:Mo}=this.props;let Cn=0;if(an){const cn=document.querySelector(".comment-panel-container .comment-record-list");Cn=cn&&cn.scrollTop||0}const Tn={clientX:Go.x,clientY:Go.y};Mo({type:"entry:comment:update:emojiToastStyle",payload:{event:Tn,scrollTop:Cn,dom:this.ref}}),this.setState({active:!0})})}componentDidMount(){te.A.on("comment:emoji:add",this.handleEmojiAdd)}componentDidUpdate(){const{emojiToastStyle:Go}=this.props,{left:an,top:Mo}=Go,{active:Cn}=this.state;!an&&!Mo&&Cn&&this.setState({active:!1})}componentWillUnmount(){te.A.off("comment:emoji:add",this.handleEmojiAdd)}render(){const{active:Go}=this.state;return(0,se.jsx)(Le,{className:"emoji-icon",children:(0,se.jsx)(re.A,{iconRef:an=>{this.ref=an},className:"emoji-btn",name:I18N.Comment.emoji,icon:"expressions",active:Go,onClick:this.handleClick})})}}const We=Ne,ze=Do=>{const{confirmIsDisabled:Go,commentCid:an,recordCid:Mo,onAddEmoji:Cn,emojiToastStyle:Tn,dispatch:cn,onConfirm:bs,onCancel:Vn}=Do,ti=(0,m.useCallback)(()=>{Vn&&Vn()},[Vn]),oi=(0,m.useCallback)(()=>{Go||bs&&bs()},[Go,bs]),Gt=(0,m.useCallback)(Xs=>{Cn&&Cn(Xs)},[Cn]),Rs=Xs=>{Xs.stopPropagation()};return(0,se.jsxs)("div",{className:"comment-operation-container clearfix",children:[(0,se.jsx)("div",{className:"pull-left",onMouseDown:Rs,children:(0,se.jsx)(We,{commentCid:an,recordCid:Mo,emojiToastStyle:Tn,dispatch:cn,onValueChange:Gt})}),(0,se.jsxs)("div",{className:"pull-right",onMouseDown:Rs,children:[(0,se.jsx)(H.Oc,{forceTheme:"light",type:"text",size:"tiny",corner:"soft",className:"operation-btn cancel-btn",onClick:ti,children:I18N.Comment.cancel}),(0,se.jsx)(H.Oc,{forceTheme:"light",type:"primary",size:"tiny",corner:"soft",className:"operation-btn confirm-btn",disabled:Go,onClick:oi,children:I18N.Comment.submit})]})]})},ft=(0,m.memo)(ze),{handleKeyCommand:mt,handleReturn:i,keyBindingFn:gt}=xe;class Je extends m.PureComponent{constructor(Go){super(Go),(0,o.A)(this,"editorRef",null),(0,o.A)(this,"handleCompositionstart",()=>{const{editorState:an}=this.state,Mo=(0,ae.AR)(an);this.setState({editorState:Mo})}),(0,o.A)(this,"getPluginMethods",()=>({setEditorState:this.handleEditorStateChange,getEditorState:this.getEditorState,getIsInSearch:this.getIsInSearch,handleConfirm:this.handleConfirm,getIsAt:this.getIsAt})),(0,o.A)(this,"getEditorState",()=>this.state.editorState),(0,o.A)(this,"getIsInSearch",()=>this.state.isInSearch),(0,o.A)(this,"getIsAt",()=>{var an,Mo;return((an=this.props.atStyle)==null?void 0:an.left)!==0&&((Mo=this.props.atStyle)==null?void 0:Mo.top)!==0}),(0,o.A)(this,"initFocus",()=>{const an=O.$t.moveFocusToEnd(this.state.editorState);this.handleEditorStateChange(an)}),(0,o.A)(this,"handleKeyDown",an=>{const{atStyle:Mo}=this.props,{isInSearch:Cn}=this.state,Tn=(Mo==null?void 0:Mo.left)!==0&&(Mo==null?void 0:Mo.top)!==0;if((Cn||Tn)&&[13,38,40].includes(an.keyCode))return an.preventDefault(),!1;const{dispatch:cn}=this.props;an.keyCode===27&&cn({type:"entry:comment:create:esc"})}),(0,o.A)(this,"handleAddEmoji",an=>{const{editorState:Mo}=this.state,Cn=O.e6.insertText(Mo.getCurrentContent(),Mo.getSelection(),an,Mo.getCurrentInlineStyle()),Tn=O.$t.push(Mo,Cn,"insert-characters");this.handleEditorStateChange(Tn)}),(0,o.A)(this,"handleCancel",()=>{const{onCancel:an}=this.props;an&&an()}),(0,o.A)(this,"handleConfirm",()=>{var an;const{editorRawContentObject:Mo,onConfirm:Cn}=this.props;(an=Mo.blocks)!=null&&(an=an[0])!=null&&an.text&&Cn&&Cn()}),(0,o.A)(this,"handleFocus",()=>{var an;const{isEditing:Mo,editorRawContentObject:Cn,isCreating:Tn,onChange:cn}=this.props;if(!Mo&&cn({isEditing:!0}),(an=Cn.blocks)!=null&&(an=an[0])!=null&&an.text||Tn)return;const{insertText:bs,insertUrl:Vn}=this.insertEntity;if(!bs||!Vn)return;const{editorState:ti}=this.state,oi=(0,ae.ts)(ti,bs,Vn);this.handleEditorStateChange(oi)}),(0,o.A)(this,"onSearchChange",an=>{const{isInSearch:Mo}=this.state,{dispatch:Cn}=this.props,[Tn,cn,bs]=(0,ae.Aw)(an);if(!Tn){this.state.isInSearch&&(Cn({type:"comment:update:atStyle",payload:{atStyle:{keywords:"",top:0,left:0}}}),this.setState({isInSearch:!1,inSearchSelectionJson:null}));return}if(!Mo){const Vn=this.editorRef.getBoundingClientRect(),ti={clientX:Vn.x,clientY:Vn.y};Cn({type:"entry:comment:update:atStyle",payload:{event:ti,dom:this.editorRef}}),Cn({type:"comment:update:atStyle",payload:{atStyle:{keywords:cn}}}),this.setState({isInSearch:!0,inSearchSelectionJson:bs});return}Cn({type:"comment:update:atStyle",payload:{atStyle:{keywords:cn}}}),this.setState({inSearchSelectionJson:bs})}),(0,o.A)(this,"handleAtChange",an=>{let{user:Mo,commentCid:Cn,recordCid:Tn}=an;if(Tn)return;const{cid:cn}=this.props;if(cn!==Cn||!Mo)return;const Vn="@"+(Mo.name||Mo.email||Mo.mobile||Mo.user_cid),ti="userCid:"+Mo.user_cid,{editorState:oi,inSearchSelectionJson:Gt}=this.state,Rs=(0,ae.dy)(oi,Gt,Vn,ti);this.handleEditorStateChange(Rs,!0,!0)}),(0,o.A)(this,"handleEditorStateChange",(an,Mo,Cn)=>{const{onChange:Tn,dispatch:cn}=this.props;Cn?(cn({type:"comment:update:atStyle",payload:{atStyle:{keywords:"",top:0,left:0}}}),this.setState({editorState:an,isInSearch:!1,inSearchSelectionJson:null})):this.setState({editorState:an}),setTimeout(()=>{Mo||this.onSearchChange(an)},10);const bs=(0,O.dM)(an.getCurrentContent());Tn({editorRawContentObject:bs})}),(0,o.A)(this,"handlePastedText",(an,Mo,Cn)=>{if(!an)return"not-handled";const Tn=O.e6.replaceText(Cn.getCurrentContent(),Cn.getSelection(),an.replace(/\s/g,"").replace(/ /g,"").trim());return this.handleEditorStateChange(O.$t.push(Cn,Tn,"insert-fragment")),"handled"}),(0,o.A)(this,"handleTextareaClick",()=>{if(document.activeElement.contentEditable!=="true"){const{isInSearch:an}=this.state;an||this.initFocus()}}),(0,o.A)(this,"handleMouseDown",(an,Mo)=>{let{confirmIsDisabled:Cn}=Mo;Cn||an.stopPropagation()}),this.state={editorState:O.$t.createEmpty(),isInSearch:!1,inSearchSelectionJson:null}}get insertEntity(){const{isCreating:Go,comment:an,members:Mo}=this.props;if(Go)return{insertText:"",insertUrl:""};const{user:Cn}=window.MB,{userInfo:Tn}=an;if(Cn.cid===Tn.cid)return{insertText:"",insertUrl:""};const cn=Mo.find(oi=>oi.user_cid===Tn.cid);cn&&(Tn.name=cn.name,Tn.avatar=cn.avatar,Tn.email=cn.email);const Vn="\u56DE\u590D@"+((Tn==null?void 0:Tn.name)||Tn.email||Tn.mobile||Tn.cid)+": ",ti="replyUserCid:"+Tn.cid;return{insertText:Vn,insertUrl:ti}}componentDidMount(){const{isCreating:Go}=this.props;if(Go&&this.initFocus(),window.addEventListener("keydown",this.handleKeyDown,!1),te.A.on("comment:at:add",this.handleAtChange),this.editorRef){const an=document.querySelector('.public-DraftEditor-content[contenteditable="true"]');an&&an.addEventListener("compositionstart",this.handleCompositionstart)}}componentDidUpdate(Go){Go.length!==this.props.length&&this.props.editorRawContentObject===""&&this.setState({editorState:O.$t.createEmpty()},()=>{setTimeout(()=>{this.editorRef&&this.editorRef.blur()},16.7)}),Go.isEditing!==this.props.isEditing&&this.props.isEditing===!1&&this.setState({editorState:O.$t.createEmpty()},()=>{setTimeout(()=>{this.editorRef&&this.editorRef.blur()},16.7)})}componentWillUnmount(){if(window.removeEventListener("keydown",this.handleKeyDown,!1),te.A.off("comment:at:add",this.handleAtChange),this.editorRef){const Go=document.querySelector('.public-DraftEditor-content[contenteditable="true"]');Go&&Go.removeEventListener("compositionstart",this.handleCompositionstart)}}render(){var Go;const{cid:an,placeholder:Mo,isEditing:Cn,isRecordEditing:Tn,editorRawContentObject:cn,emojiToastStyle:bs,dispatch:Vn}=this.props,{editorState:ti}=this.state,{insertText:oi}=this.insertEntity,Gt=oi||Mo,Rs=Tn||!(cn&&(Go=cn.blocks)!=null&&(Go=Go[0])!=null&&Go.text);return(0,se.jsxs)("div",{className:"comment-text-area",children:[(0,se.jsx)("div",{className:"comment-editor-container",onClick:this.handleTextareaClick,onMouseDown:Xs=>this.handleMouseDown(Xs,{confirmIsDisabled:Rs}),children:(0,se.jsx)(Ce.c,{editorRef:Xs=>{this.editorRef=Xs},stripPastedStyles:!0,wrapperClassName:"comment-editor-wrapper",editorClassName:"comment-editor",textAlignment:"left",placeholder:Gt,editorState:ti,onEditorStateChange:this.handleEditorStateChange,onFocus:this.handleFocus,handlePastedText:this.handlePastedText,keyBindingFn:gt.bind(this,this.getPluginMethods()),handleKeyCommand:mt.bind(this,this.getPluginMethods()),handleReturn:i.bind(this,this.getPluginMethods()),toolbarHidden:!0,toolbar:{link:{showOpenOptionOnHover:!1}}},an)}),Cn&&(0,se.jsx)(ft,{commentCid:an,confirmIsDisabled:Rs,emojiToastStyle:bs,onAddEmoji:this.handleAddEmoji,onConfirm:this.handleConfirm,onCancel:this.handleCancel,dispatch:Vn})]})}}const Pt=Je,bt=Do=>{const{cid:Go,commentIsEditing:an,isRecordEditing:Mo,length:Cn,isCreating:Tn,placeholder:cn,comment:bs,emojiToastStyle:Vn,editorRawContentObject:ti,viewType:oi,members:Gt,atStyle:Rs,dispatch:Xs}=Do,{threadType:Ti,canvasCid:di}=bs,vs=(0,m.useCallback)(()=>{Xs({type:"entry:comment:confirm",payload:{cid:Go}}),(0,V.i4)({operation_type:Tn?V.nU.Create:V.nU.Response,comment_type:V.ej[Ti],relation:!!di,operation_from:V.HI[oi]})},[di,Go,Xs,Tn,Ti,oi]),ei=(0,m.useCallback)(()=>{Xs({type:"entry:comment:cancel"})},[Xs]),Si=(0,m.useCallback)(Gs=>{let{isEditing:Vs,rawContent:ps,editorRawContentObject:kn}=Gs;Vs&&(Xs({type:"comment:update:editorIsEditing",payload:{editorIsEditing:!0}}),Xs({type:"comment:update:editingCommentCid",payload:{editingCommentCid:Go}})),kn&&Xs({type:"comment:update:editorRawContentObject",payload:{editorRawContentObject:kn}})},[Go,Xs]);return(0,se.jsx)("div",{className:"comment-text-input-component",children:(0,se.jsx)(Pt,{cid:Go,editorRawContentObject:ti,isEditing:an,isRecordEditing:Mo,placeholder:cn,comment:bs,length:Cn,isCreating:Tn,emojiToastStyle:Vn,members:Gt,atStyle:Rs,onChange:Si,onConfirm:vs,onCancel:ei,dispatch:Xs})})},qt=(0,m.memo)(bt);var pt=e(42226),$t=e(40778),go=e(12056),Co=e(57465),Tt=e(8907),mo=e(62543);const{handleKeyCommand:jo,handleReturn:Kt,keyBindingFn:Ft}=xe;class nt extends m.PureComponent{constructor(Go){super(Go),(0,o.A)(this,"editorRef",null),(0,o.A)(this,"getInitData",Cn=>{const Tn=(0,Tt.mx)(Cn);return(0,mo.n)(Tn)}),(0,o.A)(this,"handleCompositionstart",()=>{const{editorState:Cn}=this.state,Tn=(0,ae.AR)(Cn);this.setState({editorState:Tn})}),(0,o.A)(this,"getPluginMethods",()=>({setEditorState:this.handleEditorStateChange,getEditorState:this.getEditorState,getIsInSearch:this.getIsInSearch,handleConfirm:this.handleConfirm,getIsAt:this.getIsAt})),(0,o.A)(this,"handleCompositionstart",()=>{const{editorState:Cn}=this.state,Tn=(0,ae.AR)(Cn);this.setState({editorState:Tn})}),(0,o.A)(this,"getEditorState",()=>this.state.editorState),(0,o.A)(this,"getIsInSearch",()=>this.state.isInSearch),(0,o.A)(this,"getIsAt",()=>{var Cn,Tn;return((Cn=this.props.atStyle)==null?void 0:Cn.left)!==0&&((Tn=this.props.atStyle)==null?void 0:Tn.top)!==0}),(0,o.A)(this,"initFocus",()=>{const Cn=O.$t.moveFocusToEnd(this.state.editorState);this.handleEditorStateChange(Cn)}),(0,o.A)(this,"handleKeyDown",Cn=>{const{isInSearch:Tn}=this.state;if(Tn&&[13,38,40].includes(Cn.keyCode))return Cn.preventDefault(),!1}),(0,o.A)(this,"handleAddEmoji",Cn=>{const{editorState:Tn}=this.state,cn=O.e6.insertText(Tn.getCurrentContent(),Tn.getSelection(),Cn,Tn.getCurrentInlineStyle()),bs=O.$t.push(Tn,cn,"insert-characters");this.handleEditorStateChange(bs)}),(0,o.A)(this,"handleCancel",()=>{const{onCancel:Cn}=this.props;Cn&&Cn()}),(0,o.A)(this,"handleConfirm",()=>{const{onConfirm:Cn}=this.props,{editorState:Tn}=this.state,cn=(0,O.dM)(Tn.getCurrentContent());Cn&&Cn(cn)}),(0,o.A)(this,"onSearchChange",Cn=>{const{isInSearch:Tn}=this.state,{recordCid:cn,dispatch:bs}=this.props,[Vn,ti,oi]=(0,ae.Aw)(Cn);if(!Vn){this.state.isInSearch&&(bs({type:"comment:update:atStyle",payload:{atStyle:{keywords:"",top:0,left:0}}}),this.setState({isInSearch:!1,inSearchSelectionJson:null}));return}if(!Tn){const Gt=this.editorRef.getBoundingClientRect(),Rs={clientX:Gt.x,clientY:Gt.y};bs({type:"entry:comment:update:atStyle",payload:{event:Rs,dom:this.editorRef}}),bs({type:"comment:update:atStyle",payload:{atStyle:{keywords:ti,recordCid:cn}}}),this.setState({isInSearch:!0,inSearchSelectionJson:oi});return}ti!==this.state.searchText&&(bs({type:"comment:update:atStyle",payload:{atStyle:{keywords:ti,recordCid:cn}}}),this.setState({inSearchSelectionJson:oi}))}),(0,o.A)(this,"handleAtChange",Cn=>{let{user:Tn,commentCid:cn,recordCid:bs}=Cn;const{commentCid:Vn,recordCid:ti}=this.props;if(Vn!==cn||ti!==bs||!Tn)return;const Gt="@"+(Tn.name||Tn.email||Tn.mobile||Tn.user_cid),Rs="userCid:"+Tn.user_cid,{editorState:Xs,inSearchSelectionJson:Ti}=this.state,di=(0,ae.dy)(Xs,Ti,Gt,Rs);this.handleEditorStateChange(di,!0,!0)}),(0,o.A)(this,"handleEditorStateChange",(Cn,Tn,cn)=>{const{dispatch:bs}=this.props,Vn=(0,O.dM)(Cn.getCurrentContent());cn?(bs({type:"comment:update:atStyle",payload:{atStyle:{keywords:"",top:0,left:0}}}),this.setState({editorState:Cn,curContentObject:Vn,isInSearch:!1,inSearchSelectionJson:null})):this.setState({editorState:Cn,curContentObject:Vn}),setTimeout(()=>{Tn||this.onSearchChange(Cn)},10)}),(0,o.A)(this,"handlePastedText",(Cn,Tn,cn)=>{if(!Cn)return"not-handled";const bs=O.e6.replaceText(cn.getCurrentContent(),cn.getSelection(),Cn.replace(/\s/g,"").replace(/ /g,"").trim());return this.handleEditorStateChange(O.$t.push(cn,bs,"insert-fragment")),"handled"}),(0,o.A)(this,"handleTextareaClick",()=>{if(document.activeElement.contentEditable!=="true"){const{isInSearch:Cn}=this.state;Cn||this.initFocus()}}),(0,o.A)(this,"handleMouseDown",(Cn,Tn)=>{let{confirmIsDisabled:cn}=Tn;cn||Cn.stopPropagation()});const{message:an}=Go,Mo=this.getInitData(an);this.state={searchText:"",editorState:Mo,curContentObject:(0,Tt.mx)(an),isInSearch:!1,inSearchSelectionJson:null}}componentDidMount(){if(this.initFocus(),window.addEventListener("keydown",this.handleKeyDown,!1),te.A.on("comment:at:add",this.handleAtChange),this.editorRef){const Go=document.querySelector('.public-DraftEditor-content[contenteditable="true"]');Go&&Go.addEventListener("compositionstart",this.handleCompositionstart)}}componentWillUnmount(){if(window.removeEventListener("keydown",this.handleKeyDown,!1),te.A.off("comment:at:add",this.handleAtChange),this.editorRef){const Go=document.querySelector('.public-DraftEditor-content[contenteditable="true"]');Go&&Go.removeEventListener("compositionstart",this.handleCompositionstart)}}render(){var Go;const{commentCid:an,recordCid:Mo,emojiToastStyle:Cn,dispatch:Tn}=this.props,{editorState:cn,curContentObject:bs}=this.state,Vn=!(bs&&(Go=bs.blocks)!=null&&(Go=Go[0])!=null&&Go.text);return(0,se.jsxs)("div",{className:"comment-text-area comment-record-text-area",onMouseDown:ti=>{this.handleMouseDown(ti,{confirmIsDisabled:Vn})},children:[(0,se.jsx)("div",{className:"comment-editor-container",onClick:this.handleTextareaClick,children:(0,se.jsx)(Ce.c,{editorRef:ti=>{this.editorRef=ti},stripPastedStyles:!0,wrapperClassName:"comment-editor-wrapper",editorClassName:"comment-editor",textAlignment:"left",placeholder:"\u8F93\u5165\u8BC4\u8BBA",editorState:cn,onEditorStateChange:this.handleEditorStateChange,handlePastedText:this.handlePastedText,keyBindingFn:Ft.bind(this,this.getPluginMethods()),handleKeyCommand:jo.bind(this,this.getPluginMethods()),handleReturn:Kt.bind(this,this.getPluginMethods()),toolbarHidden:!0,toolbar:{link:{showOpenOptionOnHover:!1}}})}),(0,se.jsx)(ft,{recordCid:Mo,commentCid:an,emojiToastStyle:Cn,onAddEmoji:this.handleAddEmoji,onConfirm:this.handleConfirm,onCancel:this.handleCancel,dispatch:Tn,confirmIsDisabled:Vn})]})}}const Rt=nt,yt=Do=>{const{isEditing:Go,commentCid:an,record:Mo,emojiToastStyle:Cn,atStyle:Tn,dispatch:cn}=Do,{cid:bs,message:Vn}=Mo,ti=(0,m.useMemo)(()=>(0,Co.vp)(Vn,!0),[Vn]),oi=(0,m.useCallback)(Rs=>{cn({type:"entry:comment:record:confirm",payload:{cid:an,recordCid:bs,rawContent:Rs}})},[an,bs,cn]),Gt=(0,m.useCallback)(()=>{cn({type:"entry:comment:record:cancel",payload:{cid:an,recordCid:bs}})},[an,bs,cn]);return(0,se.jsx)("div",{className:"record-content-component",children:Go?(0,se.jsx)(Rt,{commentCid:an,recordCid:bs,message:Vn,emojiToastStyle:Cn,atStyle:Tn,onConfirm:oi,onCancel:Gt,dispatch:cn}):(0,se.jsx)("div",{onMouseDown:Rs=>{Rs.stopPropagation()},className:"record-plain-text",readOnly:!0,dangerouslySetInnerHTML:{__html:ti}})})},Jt=(0,m.memo)(yt),vo=[{label:"edit",value:"edit"},{label:"delete",value:"delete"}],Ho=Do=>{var Go;const{commentCid:an,commentStatus:Mo,index:Cn,record:Tn,editingRecordCid:cn,prevRecord:bs,emojiToastStyle:Vn,dispatch:ti,comment:oi,viewType:Gt,atStyle:Rs,theme:Xs}=Do,{cid:Ti,userInfo:di,ctime:vs,mtime:ei}=Tn,{threadType:Si,canvasCid:Gs}=oi||{},[Vs,ps]=(0,m.useState)(""),kn=!!ei,{user:zn}=window.MB,hs=(0,m.useMemo)(()=>Cn!==0,[Cn]),Ss=(0,T.ug)(di);(0,m.useEffect)(()=>{const Ki=kn?ei:vs,bi=(0,pt.zW)(Ki);ps(bi)},[ei]);const fi=(0,m.useMemo)(()=>{let Ki=vo;return(zn==null?void 0:zn.cid)!==(Ss==null?void 0:Ss.cid)&&(Ki=Ki.filter(bi=>!["edit","delete"].includes(bi.value))),Ki},[zn,Ss]),ri=(0,m.useMemo)(()=>cn===Ti,[cn,Ti]),Li=(0,m.useMemo)(()=>zn.cid!==(Ss==null?void 0:Ss.cid)?!1:ri,[ri,zn,Ss]),ji=(0,m.useCallback)(Ki=>{Ki==="edit"&&(!ri&&ti({type:"entry:comment:record:editing",payload:{cid:an,recordCid:Ti}}),(0,V.i4)({operation_type:V.nU.edit,comment_type:V.ej[Si],relation:!!Gs,operation_from:V.HI[Gt]})),Ki==="delete"&&(Cn===0&&MB.global.popupHelper.confirmAsync({className:"DeleteCommentModal",title:I18N.Comment.delete_comment_title,theme:Xs,confirmText:I18N.Common.confirm,desc:I18N.Comment.delete_comment_desc}).then(bi=>{bi&&ti({type:"entry:comment:delete",payload:{cid:an}}),bi&&(0,V.i4)({operation_type:V.nU.deleteInEditArea,comment_type:V.ej[Si],relation:!!Gs,operation_from:V.HI[Gt]})}),Cn!==0&&ti({type:"entry:comment:record:delete",payload:{cid:an,recordCid:Ti}}))},[ri,ti,an,Ti,Si,Gs,Gt,Cn]),_t=(0,m.useCallback)(()=>{ti({type:"entry:comment:checked",payload:{cid:an,status:Mo!=="checked"}}),(0,V.i4)({operation_type:Mo==="checked"?V.nU.CancelFinishInEditArea:V.nU.FinishInEditArea,comment_type:V.ej[Si],relation:!!Gs,operation_from:V.HI[Gt]})},[ti,an,Mo,Si,Gs,Gt]),Aa=(0,m.useMemo)(()=>Cn===1,[Cn]);return(0,se.jsxs)("div",{className:l()("record-item-container",{isReply:hs,isFirstReplay:Aa}),children:[(0,se.jsxs)("div",{className:"top-area",children:[(0,se.jsxs)("div",{className:"left-content",children:[(0,se.jsx)("div",{className:"avatar-container",children:Ss.avatar&&!Ss.avatar.includes("/images/avatar.png")?(0,se.jsx)("img",{className:"image-avatar",src:Ss.avatar,alt:"avatar"}):(0,se.jsx)("span",{className:"image-avatar isSpan",children:(Go=Ss.name.substring(0,1))==null?void 0:Go.toUpperCase()})}),(0,se.jsxs)("div",{className:"name-item",children:[Ss.name&&(0,se.jsx)("h3",{className:"user-name",children:Ss.name}),(0,se.jsxs)("p",{className:"update-time",children:[Vs,kn&&(0,se.jsx)("span",{className:"isEdited-text",children:I18N.Comment.edited})]})]})]}),(0,se.jsxs)("div",{className:"operation-item",children:[!bs&&((0,$t.OB)()||MB.canEditByCurrentUser||Ss.cid===zn.cid)&&(0,se.jsx)(re.A,{className:"toolbar-btn comment-check-btn",name:Mo==="checked"?I18N.Comment.cancel_confirm:I18N.Comment.resolve,icon:Mo==="checked"?"checked":"un_checked",onClick:_t}),fi.length>0&&(0,se.jsx)(go.A,{options:fi,onChange:ji})]})]}),(0,se.jsx)("div",{className:"bottom-area",children:(0,se.jsx)(Jt,{commentCid:an,record:Tn,isEditing:Li,emojiToastStyle:Vn,atStyle:Rs,dispatch:ti})})]})};class kt extends m.Component{constructor(Go){super(Go),(0,o.A)(this,"panelRef",null),(0,o.A)(this,"listRef",null),(0,o.A)(this,"handleWheel",cn=>{cn.stopPropagation(),(cn.metaKey||cn.ctrlKey)&&cn.preventDefault()}),(0,o.A)(this,"handleMouseDown",cn=>{cn.stopPropagation();const{mode:bs}=this.props,Vn={x:cn.clientX,y:cn.clientY},ti=this.state.style,oi=document.elementFromPoint(cn.clientX,cn.clientY),Gt=document.querySelector("#"+bs+"-comment-view-container .comment-check-btn");if(Gt&&Gt.contains(oi))return;const Rs=document.querySelector("#"+bs+"-comment-view-container .comment-more-btn");Rs&&Rs.contains(oi)||(0,R.FJ)({onDrag:(Xs,Ti)=>{const di={x:Xs,y:Ti},vs=p.Z.subtract(di,Vn),{x:ei,y:Si}=p.Z.add(p.Z.xy(ti.left,ti.top),vs),Gs={...ti,left:ei,top:Si};this.setState({style:Gs})},onDrop:()=>{}})}),(0,o.A)(this,"scrollToBottom",()=>{if(!this.listRef)return;const{scrollHeight:cn,clientHeight:bs}=this.listRef;cn!==bs&&(0,R.VG)(this.listRef,cn-bs,200)});const{comment:an,viewport:Mo,mode:Cn}=Go,Tn=an.status==="creating"?[]:[{...an},...an.comments];this.state={style:(0,T.KA)({comment:an,viewport:Mo,mode:Cn,recordList:Tn})}}componentDidMount(){this.panelRef&&this.panelRef.addEventListener("wheel",this.handleWheel,{passive:!1})}componentDidUpdate(Go){const{viewport:an,emojiToastStyle:Mo,atStyle:Cn,comment:Tn,dispatch:cn,activeCommentCid:bs,mode:Vn}=this.props,{left:ti,top:oi}=Mo,{left:Gt,top:Rs}=Cn;JSON.stringify(Go.viewport)!==JSON.stringify(an)&&(ti||oi)&&cn({type:"comment:update:emojiToastStyle",payload:{emojiToastStyle:{left:0,top:0}}}),JSON.stringify(Go.viewport)!==JSON.stringify(an)&&(Gt||Rs)&&cn({type:"comment:update:atStyle",payload:{atStyle:{keywords:"",top:0,left:0}}});const{comments:Xs}=Tn,Ti=Tn.status==="creating"?[]:[{...Tn},...Tn.comments];Go.comment.comments.length!==Xs.length&&this.scrollToBottom(),bs!==Go.activeCommentCid&&this.setState({style:(0,T.KA)({comment:Tn,viewport:an,mode:Vn,recordList:Ti})}),Go.viewport.scale!==an.scale&&this.setState({style:(0,T.KA)({comment:Tn,viewport:an,mode:Vn,recordList:Ti})})}componentWillUnmount(){this.panelRef&&this.panelRef.removeEventListener("wheel",this.handleWheel,{passive:!1});const{emojiToastStyle:Go,dispatch:an}=this.props,{left:Mo,top:Cn}=Go;(Mo||Cn)&&an({type:"comment:update:emojiToastStyle",payload:{emojiToastStyle:{left:0,top:0}}})}render(){const{comment:Go,wigglingCommentCid:an,editorRawContentObject:Mo,commentIsEditing:Cn,editingRecordCid:Tn,emojiToastStyle:cn,viewType:bs,members:Vn,atStyle:ti,theme:oi,dispatch:Gt}=this.props,{cid:Rs,comments:Xs,status:Ti}=Go,di=Ti==="creating";let vs,ei;di?(ei=I18N.Comment.add_a_comment,vs=[]):(ei=I18N.Comment.reply,vs=[{...Go},...Xs]);const{style:Si}=this.state,Gs=vs.some(Vs=>Vs.cid===Tn);return(0,se.jsxs)("div",{className:l()({"comment-panel-container":!0,"wiggle--wiggle--animate":Rs===an}),style:Si,ref:Vs=>{this.panelRef=Vs},onMouseDown:this.handleMouseDown,children:[vs&&vs.length>0&&(0,se.jsx)("div",{className:"comment-record-list",ref:Vs=>{this.listRef=Vs},children:vs.map((Vs,ps)=>{let kn=null;return ps>0&&(kn=vs[ps-1]),(0,se.jsx)(Ho,{index:ps,commentStatus:Ti,commentCid:Rs,record:Vs,editingRecordCid:Tn,emojiToastStyle:cn,prevRecord:kn,dispatch:Gt,comment:Go,viewType:bs,atStyle:ti,theme:oi},Vs.cid)})}),(0,se.jsx)(qt,{cid:Rs,commentIsEditing:Cn,isRecordEditing:Gs,isCreating:di,length:vs.length,placeholder:ei,editorRawContentObject:Mo,comment:Go,emojiToastStyle:cn,viewType:bs,members:Vn,atStyle:ti,dispatch:Gt})]})}}const Ze=kt;var it=e(4114);const st=["\u{1F604}","\u{1F606}","\u{1F60A}","\u{1F603}","\u{1F60F}","\u{1F60D}","\u{1F618}","\u{1F61A}","\u{1F633}","\u{1F60C}","\u{1F601}","\u{1F609}","\u{1F61C}","\u{1F61D}","\u{1F600}","\u{1F617}","\u{1F619}","\u{1F61B}","\u{1F634}","\u{1F61F}","\u{1F626}","\u{1F627}","\u{1F62E}","\u{1F62C}","\u{1F615}","\u{1F62F}","\u{1F611}","\u{1F612}","\u{1F605}","\u{1F613}","\u{1F625}","\u{1F629}","\u{1F614}","\u{1F61E}","\u{1F616}","\u{1F628}","\u{1F630}","\u{1F623}","\u{1F622}","\u{1F62D}","\u{1F602}","\u{1F632}","\u{1F631}","\u{1F62B}","\u{1F620}","\u{1F621}","\u{1F624}","\u{1F62A}","\u{1F60B}","\u{1F637}","\u{1F60E}","\u{1F635}","\u{1F47F}","\u{1F608}","\u{1F610}","\u{1F636}","\u{1F607}","\u{1F47D}","\u{1F49B}","\u{1F499}","\u{1F49C}","\u2764\uFE0F","\u{1F49A}","\u{1F494}","\u{1F493}","\u{1F497}","\u{1F495}","\u{1F49E}","\u{1F498}","\u{1F496}","\u2728","\u2B50","\u{1F31F}","\u{1F4AB}","\u{1F4A5}","\u{1F4A2}","\u2757","\u2753","\u2755","\u2754","\u{1F4A4}","\u{1F4A8}","\u{1F4A6}","\u{1F3B6}","\u{1F3B5}","\u{1F525}","\u{1F4A9}","\u{1F44D}","\u{1F44E}","\u{1F44C}","\u{1F44A}","\u270A","\u270C\uFE0F","\u{1F44B}","\u270B","\u{1F450}","\u261D\uFE0F","\u{1F447}","\u{1F448}","\u{1F449}","\u{1F64C}","\u{1F64F}","\u{1F446}","\u{1F44F}","\u{1F4AA}","\u{1F918}","\u{1F595}","\u{1F6B6}","\u{1F3C3}","\u{1F46B}","\u{1F46A}","\u{1F46C}","\u{1F46D}","\u{1F483}","\u{1F46F}","\u{1F646}\u200D\u2640\uFE0F","\u{1F645}","\u{1F481}","\u{1F64B}","\u{1F470}","\u{1F647}","\u{1F48F}","\u{1F491}","\u{1F486}","\u{1F487}","\u{1F485}","\u{1F466}","\u{1F467}","\u{1F469}","\u{1F468}","\u{1F476}","\u{1F475}","\u{1F474}","\u{1F472}","\u{1F473}\u200D\u2642\uFE0F","\u{1F477}","\u{1F46E}","\u{1F47C}","\u{1F478}","\u{1F63A}","\u{1F638}","\u{1F63B}","\u{1F63D}","\u{1F63C}","\u{1F640}","\u{1F63F}","\u{1F639}","\u{1F63E}","\u{1F479}","\u{1F47A}","\u{1F648}","\u{1F649}","\u{1F64A}","\u{1F482}\u200D\u2642\uFE0F","\u{1F480}","\u{1F43E}","\u{1F444}","\u{1F48B}","\u{1F4A7}","\u{1F442}","\u{1F440}","\u{1F443}","\u{1F445}","\u{1F48C}","\u{1F464}","\u{1F465}","\u{1F4AC}","\u{1F4AD}"],dt=["\u2600\uFE0F","\u2614","\u2601\uFE0F","\u2744\uFE0F","\u26C4","\u26A1","\u{1F300}","\u{1F301}","\u{1F30A}","\u{1F431}","\u{1F436}","\u{1F42D}","\u{1F439}","\u{1F430}","\u{1F43A}","\u{1F438}","\u{1F42F}","\u{1F428}","\u{1F43B}","\u{1F437}","\u{1F43D}","\u{1F42E}","\u{1F417}","\u{1F435}","\u{1F412}","\u{1F434}","\u{1F40E}","\u{1F42B}","\u{1F411}","\u{1F418}","\u{1F43C}","\u{1F40D}","\u{1F426}","\u{1F424}","\u{1F425}","\u{1F423}","\u{1F414}","\u{1F427}","\u{1F422}","\u{1F41B}","\u{1F41D}","\u{1F41C}","\u{1F41E}","\u{1F40C}","\u{1F419}","\u{1F420}","\u{1F41F}","\u{1F433}","\u{1F40B}","\u{1F42C}","\u{1F404}","\u{1F40F}","\u{1F400}","\u{1F403}","\u{1F405}","\u{1F407}","\u{1F409}","\u{1F410}","\u{1F413}","\u{1F415}","\u{1F416}","\u{1F401}","\u{1F402}","\u{1F432}","\u{1F421}","\u{1F40A}","\u{1F42A}","\u{1F406}","\u{1F408}","\u{1F429}","\u{1F43E}","\u{1F490}","\u{1F338}","\u{1F337}","\u{1F340}","\u{1F339}","\u{1F33B}","\u{1F33A}","\u{1F341}","\u{1F343}","\u{1F342}","\u{1F33F}","\u{1F344}","\u{1F335}","\u{1F334}","\u{1F332}","\u{1F333}","\u{1F330}","\u{1F331}","\u{1F33C}","\u{1F33E}","\u{1F41A}","\u{1F310}","\u{1F31E}","\u{1F31D}","\u{1F31A}","\u{1F311}","\u{1F312}","\u{1F313}","\u{1F314}","\u{1F315}","\u{1F316}","\u{1F317}","\u{1F318}","\u{1F31C}","\u{1F31B}","\u{1F30D}","\u{1F30E}","\u{1F30F}","\u{1F30B}","\u{1F30C}","\u26C5"],Ot=["\u{1F38D}","\u{1F49D}","\u{1F38E}","\u{1F392}","\u{1F393}","\u{1F38F}","\u{1F386}","\u{1F387}","\u{1F390}","\u{1F391}","\u{1F383}","\u{1F47B}","\u{1F385}","\u{1F384}","\u{1F381}","\u{1F514}","\u{1F515}","\u{1F38B}","\u{1F389}","\u{1F38A}","\u{1F388}","\u{1F52E}","\u{1F4BF}","\u{1F4C0}","\u{1F4BE}","\u{1F4F7}","\u{1F4F9}","\u{1F3A5}","\u{1F4BB}","\u{1F4FA}","\u{1F4F1}","\u260E\uFE0F","\u{1F4DE}","\u{1F4DF}","\u{1F4E0}","\u{1F4BD}","\u{1F4FC}","\u{1F509}","\u{1F508}","\u{1F507}","\u{1F4E2}","\u{1F4E3}","\u231B","\u23F3","\u23F0","\u231A","\u{1F4FB}","\u{1F4E1}","\u27BF","\u{1F50D}","\u{1F50E}","\u{1F513}","\u{1F512}","\u{1F50F}","\u{1F510}","\u{1F511}","\u{1F4A1}","\u{1F526}","\u{1F506}","\u{1F505}","\u{1F50C}","\u{1F50B}","\u{1F4F2}","\u2709\uFE0F","\u{1F4EB}","\u{1F4EE}","\u{1F6C0}","\u{1F6C1}","\u{1F6BF}","\u{1F6BD}","\u{1F527}","\u{1F529}","\u{1F528}","\u{1F4BA}","\u{1F4B0}","\u{1F4B4}","\u{1F4B5}","\u{1F4B7}","\u{1F4B6}","\u{1F4B3}","\u{1F4B8}","\u{1F4E7}","\u{1F4E5}","\u{1F4E4}","\u{1F4E8}","\u{1F4EF}","\u{1F4EA}","\u{1F4EC}","\u{1F4ED}","\u{1F4E6}","\u{1F6AA}","\u{1F6AC}","\u{1F4A3}","\u{1F52B}","\u{1F52A}","\u{1F48A}","\u{1F489}","\u{1F4C4}","\u{1F4C3}","\u{1F4D1}","\u{1F4CA}","\u{1F4C8}","\u{1F4C9}","\u{1F4DC}","\u{1F4CB}","\u{1F4C6}","\u{1F4C5}","\u{1F4C7}","\u{1F4C1}","\u{1F4C2}","\u2702\uFE0F","\u{1F4CC}","\u{1F4CE}","\u2712\uFE0F","\u270F\uFE0F","\u{1F4CF}","\u{1F4D0}","\u{1F4D5}","\u{1F4D7}","\u{1F4D8}","\u{1F4D9}","\u{1F4D3}","\u{1F4D4}","\u{1F4D2}","\u{1F4DA}","\u{1F516}","\u{1F4DB}","\u{1F52C}","\u{1F52D}","\u{1F4F0}","\u{1F3C8}","\u{1F3C0}","\u26BD","\u26BE","\u{1F3BE}","\u{1F3B1}","\u{1F3C9}","\u{1F3B3}","\u26F3","\u{1F6B5}","\u{1F6B4}","\u{1F3C7}","\u{1F3C2}","\u{1F3CA}","\u{1F3C4}","\u{1F3BF}","\u2660\uFE0F","\u2665\uFE0F","\u2663\uFE0F","\u2666\uFE0F","\u{1F48E}","\u{1F48D}","\u{1F3C6}","\u{1F3BC}","\u{1F3B9}","\u{1F3BB}","\u{1F47E}","\u{1F3AE}","\u{1F0CF}","\u{1F3B4}","\u{1F3B2}","\u{1F3AF}","\u{1F004}","\u{1F3AC}","\u{1F4DD}","\u{1F4D6}","\u{1F3A8}","\u{1F3A4}","\u{1F3A7}","\u{1F3BA}","\u{1F3B7}","\u{1F3B8}","\u{1F45E}","\u{1F461}","\u{1F460}","\u{1F484}","\u{1F462}","\u{1F455}","\u{1F454}","\u{1F45A}","\u{1F457}","\u{1F3BD}","\u{1F456}","\u{1F458}","\u{1F459}","\u{1F380}","\u{1F3A9}","\u{1F451}","\u{1F452}","\u{1F302}","\u{1F4BC}","\u{1F45C}","\u{1F45D}","\u{1F45B}","\u{1F453}","\u{1F3A3}","\u2615","\u{1F375}","\u{1F376}","\u{1F37C}","\u{1F37A}","\u{1F37B}","\u{1F378}","\u{1F379}","\u{1F377}","\u{1F374}","\u{1F355}","\u{1F354}","\u{1F35F}","\u{1F357}","\u{1F356}","\u{1F35D}","\u{1F35B}","\u{1F364}","\u{1F371}","\u{1F363}","\u{1F365}","\u{1F359}","\u{1F358}","\u{1F35A}","\u{1F35C}","\u{1F372}","\u{1F362}","\u{1F361}","\u{1F95A}","\u{1F35E}","\u{1F369}","\u{1F36E}","\u{1F366}","\u{1F368}","\u{1F367}","\u{1F382}","\u{1F370}","\u{1F36A}","\u{1F36B}","\u{1F36C}","\u{1F36D}","\u{1F36F}","\u{1F34E}","\u{1F34F}","\u{1F34A}","\u{1F34B}","\u{1F352}","\u{1F347}","\u{1F349}","\u{1F353}","\u{1F351}","\u{1F348}","\u{1F34C}","\u{1F350}","\u{1F34D}","\u{1F360}","\u{1F346}","\u{1F345}","\u{1F33D}"],Ct=["\u{1F3E0}","\u{1F3E1}","\u{1F3EB}","\u{1F3E2}","\u{1F3E3}","\u{1F3E5}","\u{1F3E6}","\u{1F3EA}","\u{1F3E9}","\u{1F3E8}","\u{1F492}","\u26EA","\u{1F3EC}","\u{1F3E4}","\u{1F307}","\u{1F306}","\u{1F3EF}","\u{1F3F0}","\u26FA","\u{1F3ED}","\u{1F5FC}","\u{1F5FE}","\u{1F5FB}","\u{1F304}","\u{1F305}","\u{1F320}","\u{1F5FD}","\u{1F309}","\u{1F3A0}","\u{1F308}","\u{1F3A1}","\u26F2","\u{1F3A2}","\u{1F6A2}","\u{1F6A4}","\u26F5","\u{1F6A3}","\u2693","\u{1F680}","\u2708\uFE0F","\u{1F681}","\u{1F682}","\u{1F68A}","\u{1F69E}","\u{1F6B2}","\u{1F6A1}","\u{1F69F}","\u{1F6A0}","\u{1F69C}","\u{1F699}","\u{1F698}","\u{1F697}","\u{1F695}","\u{1F696}","\u{1F69B}","\u{1F68C}","\u{1F68D}","\u{1F6A8}","\u{1F693}","\u{1F694}","\u{1F692}","\u{1F691}","\u{1F690}","\u{1F69A}","\u{1F68B}","\u{1F689}","\u{1F686}","\u{1F685}","\u{1F684}","\u{1F688}","\u{1F69D}","\u{1F683}","\u{1F68E}","\u{1F3AB}","\u26FD","\u{1F6A6}","\u{1F6A5}","\u26A0\uFE0F","\u{1F6A7}","\u{1F530}","\u{1F3E7}","\u{1F3B0}","\u{1F68F}","\u{1F488}","\u2668\uFE0F","\u{1F3C1}","\u{1F38C}","\u{1F3EE}","\u{1F5FF}","\u{1F3AA}","\u{1F3AD}","\u{1F4CD}","\u{1F6A9}","\u{1F1EF}\u{1F1F5}","\u{1F1F0}\u{1F1F7}","\u{1F1E8}\u{1F1F3}","\u{1F1FA}\u{1F1F8}","\u{1F1EB}\u{1F1F7}","\u{1F1EA}\u{1F1F8}","\u{1F1EE}\u{1F1F9}","\u{1F1F7}\u{1F1FA}","\u{1F1EC}\u{1F1E7}","\u{1F1E9}\u{1F1EA}"],wo=["1\uFE0F\u20E3","2\uFE0F\u20E3","3\uFE0F\u20E3","4\uFE0F\u20E3","5\uFE0F\u20E3","6\uFE0F\u20E3","7\uFE0F\u20E3","8\uFE0F\u20E3","9\uFE0F\u20E3","\u{1F51F}","\u{1F522}","0\uFE0F\u20E3","#\uFE0F\u20E3","\u{1F523}","\u25C0\uFE0F","\u2B07\uFE0F","\u25B6\uFE0F","\u2B05\uFE0F","\u{1F520}","\u{1F521}","\u{1F524}","\u2199\uFE0F","\u2198\uFE0F","\u27A1\uFE0F","\u2B06\uFE0F","\u2196\uFE0F","\u2197\uFE0F","\u23EC","\u23EB","\u{1F53D}","\u2935\uFE0F","\u2934\uFE0F","\u21A9\uFE0F","\u21AA\uFE0F","\u2194\uFE0F","\u2195\uFE0F","\u{1F53C}","\u{1F503}","\u{1F504}","\u23EA","\u23E9","\u2139\uFE0F","\u{1F197}","\u{1F500}","\u{1F501}","\u{1F502}","\u{1F195}","\u{1F51D}","\u{1F199}","\u{1F192}","\u{1F193}","\u{1F196}","\u{1F3A6}","\u{1F201}","\u{1F4F6}","\u{1F239}","\u{1F234}","\u{1F23A}","\u{1F22F}","\u{1F237}\uFE0F","\u{1F236}","\u{1F235}","\u{1F21A}","\u{1F238}","\u{1F233}","\u{1F232}","\u{1F202}\uFE0F","\u{1F6BB}","\u{1F6B9}","\u{1F6BA}","\u{1F6BC}","\u{1F6AD}","\u{1F17F}\uFE0F","\u267F","\u{1F687}","\u{1F6C4}","\u{1F251}","\u{1F6BE}","\u{1F6B0}","\u{1F6AE}","\u3299\uFE0F","\u3297\uFE0F","\u24C2\uFE0F","\u{1F6C2}","\u{1F6C5}","\u{1F6C3}","\u{1F250}","\u{1F191}","\u{1F198}","\u{1F194}","\u{1F6AB}","\u{1F51E}","\u{1F4F5}","\u{1F6AF}","\u{1F6B1}","\u{1F6B3}","\u{1F6B7}","\u{1F6B8}","\u26D4","\u2733\uFE0F","\u2747\uFE0F","\u2734\uFE0F","\u{1F49F}","\u{1F19A}","\u{1F4F3}","\u{1F4F4}","\u{1F4B9}","\u{1F4B1}","\u274E","\u{1F170}\uFE0F","\u{1F171}\uFE0F","\u{1F18E}","\u{1F17E}\uFE0F","\u{1F4A0}","\u267B\uFE0F","\u{1F51A}","\u{1F519}","\u{1F51B}","\u{1F51C}","\u{1F550}","\u{1F55C}","\u{1F559}","\u{1F565}","\u{1F55A}","\u{1F566}","\u{1F55B}","\u{1F567}","\u{1F551}","\u{1F55D}","\u{1F552}","\u{1F55E}","\u{1F553}","\u{1F55F}","\u{1F554}","\u{1F560}","\u{1F555}","\u{1F561}","\u{1F556}","\u{1F562}","\u{1F557}","\u{1F563}","\u{1F558}","\u{1F564}","\u{1F4B2}","\xA9\uFE0F","\xAE\uFE0F","\u2122\uFE0F","\u274C","\u2757","\u203C\uFE0F","\u2049\uFE0F","\u2B55","\u2716\uFE0F","\u2795","\u2796","\u2797","\u{1F4AE}","\u{1F4AF}","\u2714\uFE0F","\u2611\uFE0F","\u{1F518}","\u{1F517}","\u27B0","\u3030\uFE0F","\u303D\uFE0F","\u{1F531}","\u25AA\uFE0F","\u25AB\uFE0F","\u25FE","\u25FD","\u25FC\uFE0F","\u25FB\uFE0F","\u2B1B","\u2B1C","\u2705","\u{1F532}","\u{1F533}","\u26AB","\u26AA","\u{1F534}","\u{1F535}","\u{1F537}","\u{1F536}","\u{1F539}","\u{1F538}","\u{1F53A}","\u{1F53B}"],ln=(0,it.R)(()=>({expressions:{label:I18N.Comment.smileys_people,options:st},animals:{label:I18N.Comment.animals_nature,options:dt},goods:{label:I18N.Comment.food_drinks,options:Ot},locations:{label:I18N.Comment.travel_places,options:Ct},symbols:{label:I18N.Comment.symbols,options:wo}}));class Io extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"emojiRef",null),(0,o.A)(this,"state",{value:"expressions"}),(0,o.A)(this,"handleWheel",Go=>{Go.stopPropagation()}),(0,o.A)(this,"handleGlobalClick",Go=>{if(!this.emojiRef||!Go.target||this.emojiRef===Go.target||this.emojiRef.contains(Go.target))return;const{dispatch:an}=this.props;an({type:"comment:update:emojiToastStyle",payload:{emojiToastStyle:{left:0,top:0}}})}),(0,o.A)(this,"handleTab",Go=>{const{icon:an}=Go.currentTarget.dataset;this.setState({value:an})}),(0,o.A)(this,"handleSelect",Go=>()=>{const{commentCid:an,dispatch:Mo}=this.props;an&&(te.A.emit("comment:emoji:add",{commentCid:an,emoji:Go}),Mo({type:"comment:update:emojiToastStyle",payload:{emojiToastStyle:{left:0,top:0}}}))}),(0,o.A)(this,"stopPropagation",Go=>{Go.stopPropagation()})}componentDidMount(){this.emojiRef&&this.emojiRef.addEventListener("wheel",this.handleWheel,!1),document.addEventListener("click",this.handleGlobalClick,!1)}componentWillUnmount(){this.emojiRef&&this.emojiRef.removeEventListener("wheel",this.handleWheel,!1),document.removeEventListener("click",this.handleGlobalClick,!1)}render(){const{left:Go=0,top:an=0}=this.props,{value:Mo}=this.state,Cn=ln(),Tn=Cn[Mo]||Cn.expressions,cn=Tn.label,bs=Tn.options;return(0,se.jsxs)(Ve,{className:"emoji-toast",style:{top:an,left:Go},onClick:this.stopPropagation,ref:Vn=>{this.emojiRef=Vn},children:[(0,se.jsx)(C.C,{name:"art_board/emoji_triangle",className:"emoji-triangle"}),(0,se.jsxs)("div",{className:"expression-container",children:[(0,se.jsx)("h3",{className:"expression-title",children:cn}),(0,se.jsx)("div",{className:"expression-list",children:bs&&bs.length>0&&bs.map((Vn,ti)=>(0,se.jsx)("span",{className:"emoji-span",onClick:this.handleSelect(Vn),children:Vn},ti))})]}),(0,se.jsxs)("div",{className:"icon-list",children:[(0,se.jsx)("span",{"data-icon":"expressions",onClick:this.handleTab,children:(0,se.jsx)(re.A,{svgClassName:"fill",className:"emoji-btn",name:I18N.Comment.smileys_people,icon:"expressions",active:Mo==="expressions"})}),(0,se.jsx)("span",{"data-icon":"animals",onClick:this.handleTab,children:(0,se.jsx)(re.A,{svgClassName:"fill",className:"emoji-btn",name:I18N.Comment.animals_nature,icon:"animals",active:Mo==="animals"})}),(0,se.jsx)("span",{"data-icon":"goods",onClick:this.handleTab,children:(0,se.jsx)(re.A,{svgClassName:"fill",className:"emoji-btn",name:I18N.Comment.food_drinks,icon:"goods",active:Mo==="goods"})}),(0,se.jsx)("span",{"data-icon":"locations",onClick:this.handleTab,children:(0,se.jsx)(re.A,{svgClassName:"fill",className:"emoji-btn",name:I18N.Comment.travel_places,icon:"locations",active:Mo==="locations"})}),(0,se.jsx)("span",{"data-icon":"symbols",onClick:this.handleTab,children:(0,se.jsx)(re.A,{svgClassName:"fill",className:"emoji-btn",name:I18N.Comment.symbols,icon:"symbols",active:Mo==="symbols"})})]})]})}}const Lo=Io;function Ao(Do){const Go=Do.length,an=[];for(let Cn=0;Cn<Go;Cn+=1){let cn=Do[Cn],bs=Cn+1,Vn=Do[bs];for(;Vn;)cn=cn+" "+Vn,an.push(cn),bs+=1,Vn=Do[bs]}const Mo=[...Do];return an.concat(Mo)}function xt(Do,Go){return Go.map(an=>{if(an.name===Do||an.email===Do)return{...an,priority:0};let Mo,Cn;if(an.name){const Tn=an.name.indexOf(Do);Tn!==-1&&(Mo={...an,priority:Tn+1})}if(an.email){const Tn=an.email.indexOf(Do);Tn!==-1&&(Cn={...an,priority:Tn+1})}if(Mo&&Cn){const Tn=Mo.priority,cn=Cn.priority;return Tn<=cn?Mo:Cn}return Mo||Cn||null}).filter(Boolean)}function Ut(Do){const Go=Do.reduce((Cn,Tn)=>Cn.concat(Tn.map(cn=>cn.user_cid)),[]);return Array.from(new Set(Go)).map(Cn=>Do.map(cn=>cn.find(bs=>bs.user_cid===Cn)).filter(Boolean).sort((cn,bs)=>cn.priority-bs.priority)[0]).sort((Cn,Tn)=>Cn.priority===Tn.priority?Cn.id-Tn.id:Cn.priority-Tn.priority)}function Wo(Do,Go){if(!Do)return Go;let an=Do.trim();an=an.replace(/( )+/g," ");const Mo=an.split(" "),Tn=Ao(Mo).map(bs=>xt(bs,Go));return Ut(Tn)}const qo=de.Ay.div.withConfig({displayName:"styles__StyledProjectMembersListDiv",componentId:"sc-ibhzo0-0"})(["pointer-events:auto;width:253px;height:238px;position:absolute;overflow:hidden;overflow-y:auto;background-color:#fff;box-shadow:0 3px 10px rgba(0,0,0,.1);border-radius:4px;box-sizing:border-box;padding:6px 0;cursor:default;z-index:3;::-webkit-scrollbar{width:0px;}.member-item-container{width:100%;position:relative;box-sizing:border-box;padding:6px 12px;display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;&:hover,&.active{background-color:#f2f2f2;}.left-area{width:32px;height:32px;margin-right:12px;position:relative;display:flex;flex-direction:row;justify-content:center;align-items:flex-start;.image-avatar{display:block;width:100%;height:100%;border-radius:50%;color:#fff;font-size:12px;text-align:center;line-height:32px;&.isSpan{background-color:#e96d2c;}}}.right-area{width:calc(100% - 44px);position:relative;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;.user-name{font-size:14px;font-weight:500;line-height:18px;color:#333333;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.user-email{font-size:12px;font-weight:normal;line-height:14px;color:rgba(51,51,51,0.5);width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}}.empty-item-container{width:100%;height:44px;position:relative;box-sizing:border-box;font-size:12px;font-weight:normal;line-height:14px;color:rgba(51,51,51,0.5);display:flex;flex-direction:row;justify-content:center;align-items:center;}"]);class sn extends m.Component{constructor(){super(...arguments),(0,o.A)(this,"state",{filterMembers:[],activeCid:""}),(0,o.A)(this,"handleWheel",Go=>{Go.stopPropagation()}),(0,o.A)(this,"handleGlobalClick",Go=>{if(!this.atRef||!Go.target||this.atRef===Go.target||this.atRef.contains(Go.target))return;const{dispatch:an}=this.props;an({type:"comment:update:atStyle",payload:{atStyle:{keywords:"",top:0,left:0}}})}),(0,o.A)(this,"getMembers",Go=>{const{members:an,dispatch:Mo,recordCid:Cn,commentCid:Tn}=this.props,cn=Wo(Go,an);if(!cn.length)Mo({type:"comment:update:atStyle",payload:{atStyle:{display:"none"}}});else{Mo({type:"comment:update:atStyle",payload:{atStyle:{display:"block",recordCid:Cn,commentCid:Tn}}});const bs={filterMembers:cn};this.state.activeCid||(bs.activeCid=cn[0].user_cid),this.setState(bs)}}),(0,o.A)(this,"handleKeyDown",Go=>{if(![13,38,40].includes(Go.keyCode))return;const{filterMembers:an,activeCid:Mo}=this.state;if(an.length===0)return;if(!Mo){this.setState({activeCid:an[0].user_cid});return}if(Go.keyCode===13){let oi;Mo&&(oi=an.find(Ti=>Ti.user_cid===Mo)),oi||(oi=an[0]);const{commentCid:Gt,recordCid:Rs,dispatch:Xs}=this.props;te.A.emit("comment:at:add",{user:oi,commentCid:Gt,recordCid:Rs}),Xs({type:"comment:update:atStyle",payload:{atStyle:{keywords:"",top:0,left:0}}});return}const Cn=an.findIndex(oi=>oi.user_cid===Mo);let Tn;Go.keyCode===40&&(Tn=Cn+1),Go.keyCode===38&&(Tn=Cn-1),Tn>=an.length&&(Tn=0),Tn<0&&(Tn=an.length-1);const{clientHeight:cn,scrollTop:bs}=this.atRef,Vn=6+Tn*44,ti=Vn-bs;ti<0&&(this.atRef.scrollTop=Vn),ti+44>cn&&(this.atRef.scrollTop=Vn+44),this.setState({activeCid:an[Tn].user_cid})}),(0,o.A)(this,"handleSelect",Go=>()=>{const{commentCid:an,recordCid:Mo,dispatch:Cn}=this.props;te.A.emit("comment:at:add",{user:Go,commentCid:an,recordCid:Mo}),Cn({type:"comment:update:atStyle",payload:{atStyle:{keywords:"",top:0,left:0}}})})}componentDidMount(){this.getMembers(this.props.keywords),window.addEventListener("keydown",this.handleKeyDown,!1),this.atRef&&this.atRef.addEventListener("wheel",this.handleWheel,!1),document.addEventListener("click",this.handleGlobalClick,!1)}componentDidUpdate(Go){Go.keywords!==this.props.keywords&&this.getMembers(this.props.keywords)}componentWillUnmount(){window.removeEventListener("keydown",this.handleKeyDown,!1),this.atRef&&this.atRef.removeEventListener("wheel",this.handleWheel,!1),document.removeEventListener("click",this.handleGlobalClick,!1)}render(){const{activeCid:Go,filterMembers:an}=this.state,{left:Mo,top:Cn,atDisplay:Tn}=this.props;return(0,se.jsxs)(qo,{style:{left:Mo,top:Cn,display:Tn},ref:cn=>{this.atRef=cn},className:"project-member-list",children:[an.length>0&&an.map(cn=>(0,se.jsxs)("div",{className:Go===cn.user_cid?"member-item-container active":"member-item-container",onClick:this.handleSelect(cn),children:[(0,se.jsx)("div",{className:"left-area",children:cn.avatar?(0,se.jsx)("img",{className:"image-avatar",src:cn.avatar,alt:cn.name||cn.email||cn.mobile||cn.user_cid}):(0,se.jsx)("span",{className:"image-avatar isSpan",children:(cn.name||cn.email||cn.mobile||cn.user_cid).substring(0,1)})}),(0,se.jsxs)("div",{className:"right-area",children:[(0,se.jsx)("div",{className:"user-name",children:cn.name||cn.email||cn.mobile||cn.user_cid}),(0,se.jsx)("div",{className:"user-email",children:cn.email||"--"})]})]},cn.user_cid)),an.length===0&&(0,se.jsx)("div",{className:"empty-item-container",children:"\u6682\u65E0\u6570\u636E"})]})}}const Kn=sn;var ds=e(63785),_s=e(82152);const Ls=de.Ay.div.withConfig({displayName:"styles__StyledCommentsViewContainerDiv",componentId:"sc-i62rwr-0"})(["position:absolute;top:0;left:0;z-index:10;.clearfix:before,.clearfix:after{content:'';display:table;}.clearfix:after{clear:both;}.pull-right{float:right !important;.operation-btn{border-radius:6px;font-size:13px;}.cancel-btn{background-color:",";border:1px solid ",";color:",";&:hover:not([class*='is-disabled']){color:",";background-color:",";border:1px solid ",";}&:active:not([class*='is-disabled']){color:",";background-color:",";border:1px solid ",";}&[class*='is-disabled']{background-color:",";border:1px solid ",";}}.confirm-btn{background-color:",";&:hover:not([class*='is-disabled']){color:",";background-color:",";}&:active:not([class*='is-disabled']){color:",";background-color:",";}&[class*='is-disabled']{opacity:1;background-color:",";color:",";}}}.pull-left{float:left !important;}.comment-anchor{width:37px;height:35px;pointer-events:auto;position:absolute;cursor:default;filter:drop-shadow(1px 1px 2px rgba(0,0,0,.2));transform-origin:left bottom;transition:transform .12s ease-in-out;z-index:3;&:hover{transform:scale(1.2);}&.active{.comment-created-icon{color:#1684FC;}}.comment-icon{filter:drop-shadow(0px 1px 3px rgba(0,0,0,0.2));}.comment-created-icon{color:#fff;}.anchor--anchorLabel{position:absolute;left:4px;top:4px;width:24px;height:24px;border-radius:50%;display:block;text-align:center;}}.rect-anchor-container{.comment-rect-anchor{position:absolute;pointer-events:auto;cursor:pointer;border:2px dashed #1684FC;display:none;}&:hover,&.active,&.creating{.comment-rect-anchor{display:block;}}}.comment-panel-container{background-color:",";pointer-events:auto;position:absolute;box-shadow:",";border:1px solid ",";border-radius:8px;box-sizing:border-box;cursor:default;z-index:3;.comment-record-list{width:100%;max-height:472px;position:relative;overflow-y:auto;border-bottom:1px solid ",";.record-item-container{width:100%;min-height:106px;box-sizing:border-box;padding:20px 0 15px 0;flex-direction:row;justify-content:flex-start;align-items:flex-start;.top-area{display:flex;padding:0 20px;.left-content{flex:1;display:flex;align-items:center;.avatar-container{width:40px;height:40px;margin-right:10px;.image-avatar{display:block;width:100%;height:100%;border-radius:50%;color:#fff;font-size:14px;text-align:center;line-height:40px;&.isSpan{font-size:18px;display:flex;align-items:center;justify-content:center;background-color:#1684FC;}}}.name-item{flex:1;.user-name{font-size:14px;font-weight:500;line-height:14px;color:",";margin-bottom:4px;}.update-time{font-size:12px;font-weight:normal;line-height:12px;color:",";opacity:0.5;.isEdited-text{margin-left:16px;}}}}.operation-item{display:flex;flex-direction:row;justify-content:flex-end;align-items:flex-start;}}.bottom-area{margin-top:10px;padding-left:70px;padding-right:20px;.record-content-component{margin:0;.record-plain-text{p{font-size:14px;line-height:20px;color:",";text-align:justify;}}}}&.isFirstReplay{border-top:1px solid ",";}&.isReply{position:relative;&:not(:last-child)::after{position:absolute;bottom:0;left:41px;content:'';width:258px;height:1px;background-color:#f2f2f2;}.top-area{.avatar-container{width:28px;height:28px;margin-left:22px;.image-avatar.isSpan{font-size:14px;}}}.bottom-area{padding-left:80px;}}}.toolbar-btn{margin:0 2px;width:24px;height:24px;cursor:pointer;border-radius:4px;&.free-width{width:auto;}&.disabled{background-color:transparent;opacity:.3;cursor:not-allowed;}&:hover{background:",";}&:active,&.active{background:",";}}.toolbar-btn .svg-icon{width:24px;height:24px;}}.record-content-component{margin:10px 0;.record-plain-text{width:100%;text-align:left;word-break:break-all;word-wrap:break-word;a{color:#298DF8;display:inline-block;padding-left:2px;padding-right:2px;border-radius:2px;text-decoration:none;background-color:#e6f3ff;}p{user-select:text;font-size:14px;line-height:20px;color:",";padding:2px 0;}}}.record-content-component:hover{cursor:text;}.comment-text-input-component{width:100%;box-sizing:border-box;padding:16px;position:relative;}.comment-operation-container{width:100%;margin-top:16px;.emoji-icon{color:black;display:flex;flex-direction:row;justify-content:center;align-items:center;}.operation-btn{margin-left:1em;transition:color ease-in-out 0.1s;transition:100ms;}}.comment-text-area{width:100%;box-sizing:border-box;position:relative;}.comment-editor-container{cursor:text;}.comment-editor-wrapper{width:100%;}.comment-editor{width:100%;max-height:280px;overflow-y:auto;a{color:#298DF8;display:inline-block;padding-left:2px;padding-right:2px;border-radius:2px;text-decoration:none;background-color:#e6f3ff;}.DraftEditor-editorContainer,.DraftEditor-root,.public-DraftEditor-content{height:inherit;text-align:initial;}.public-DraftEditor-content[contenteditable=true]{-webkit-user-modify:read-write-plaintext-only;}.DraftEditor-root{position:relative;margin-top:-5px;}.DraftEditor-editorContainer{background-color:rgba(255,255,255,0);position:relative;z-index:1;}.public-DraftEditor-block{position:relative;}.DraftEditor-alignLeft .public-DraftStyleDefault-block{text-align:left;}.DraftEditor-alignLeft .public-DraftEditorPlaceholder-root{left:0;text-align:left;}.DraftEditor-alignCenter .public-DraftStyleDefault-block{text-align:center;}.DraftEditor-alignCenter .public-DraftEditorPlaceholder-root{margin:0 auto;text-align:center;width:100%;}.DraftEditor-alignRight .public-DraftStyleDefault-block{text-align:right;}.DraftEditor-alignRight .public-DraftEditorPlaceholder-root{right:0;text-align:right;}.public-DraftEditorPlaceholder-root{color:#9197a3;position:absolute;width:100%;z-index:1;padding:2px 0;}.public-DraftEditorPlaceholder-hasFocus{color:#bdc1c9;}.DraftEditorPlaceholder-hidden{display:none;}.public-DraftStyleDefault-block{position:relative;white-space:pre-wrap;margin:0;padding:2px 0;word-break:break-all;word-wrap:break-word;font-size:14px;line-height:20px;color:",';}.public-DraftStyleDefault-ltr{direction:ltr;text-align:left;}.public-DraftStyleDefault-rtl{direction:rtl;text-align:right;}.public-DraftStyleDefault-listLTR{direction:ltr;}.public-DraftStyleDefault-listRTL{direction:rtl;}.public-DraftStyleDefault-ol,.public-DraftStyleDefault-ul{margin:0;padding:0;}.public-DraftStyleDefault-depth0.public-DraftStyleDefault-listLTR{margin-left:1.5em;}.public-DraftStyleDefault-depth0.public-DraftStyleDefault-listRTL{margin-right:1.5em;}.public-DraftStyleDefault-depth1.public-DraftStyleDefault-listLTR{margin-left:3em;}.public-DraftStyleDefault-depth1.public-DraftStyleDefault-listRTL{margin-right:3em;}.public-DraftStyleDefault-depth2.public-DraftStyleDefault-listLTR{margin-left:4.5em;}.public-DraftStyleDefault-depth2.public-DraftStyleDefault-listRTL{margin-right:4.5em;}.public-DraftStyleDefault-depth3.public-DraftStyleDefault-listLTR{margin-left:6em;}.public-DraftStyleDefault-depth3.public-DraftStyleDefault-listRTL{margin-right:6em;}.public-DraftStyleDefault-depth4.public-DraftStyleDefault-listLTR{margin-left:7.5em;}.public-DraftStyleDefault-depth4.public-DraftStyleDefault-listRTL{margin-right:7.5em;}.public-DraftStyleDefault-unorderedListItem{list-style-type:disc;position:relative;}.public-DraftStyleDefault-orderedListItem{list-style-type:none;position:relative;}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-listLTR:before{left:-36px;position:absolute;text-align:right;width:30px;}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-listRTL:before{position:absolute;right:-36px;text-align:left;width:30px;}.public-DraftStyleDefault-orderedListItem:before{content:counter(ol0) ". ";counter-increment:ol0;}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth1:before{content:counter(ol1,lower-alpha) ". ";counter-increment:ol1;}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth2:before{content:counter(ol2,lower-roman) ". ";counter-increment:ol2;}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth3:before{content:counter(ol3) ". ";counter-increment:ol3;}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth4:before{content:counter(ol4,lower-alpha) ". ";counter-increment:ol4;}.public-DraftStyleDefault-depth0.public-DraftStyleDefault-reset{counter-reset:ol0;}.public-DraftStyleDefault-depth1.public-DraftStyleDefault-reset{counter-reset:ol1;}.public-DraftStyleDefault-depth2.public-DraftStyleDefault-reset{counter-reset:ol2;}.public-DraftStyleDefault-depth3.public-DraftStyleDefault-reset{counter-reset:ol3;}.public-DraftStyleDefault-depth4.public-DraftStyleDefault-reset{counter-reset:ol4;}.public-DraftEditorPlaceholder-inner{color:#999999;font-size:14px;line-height:20px;}}}.wiggle--wiggle--animate{animation:wiggle-wiggle-01 .6s linear;transform-origin:center;}@keyframes wiggle-wiggle-01{0%{transform:translate(0)}20%{transform:translate(-24px) rotate(-1deg)}40%{transform:translate(24px) rotate(1deg)}60%{transform:translate(-24px) rotate(-1deg)}80%{transform:translate(24px) rotate(1deg)}to{transform:translate(0)}}'],Do=>Do.theme.color_bg_white,Do=>Do.theme.color_bg_border_02,Do=>Do.theme.color_text_L1,Do=>Do.theme.color_text_L1,Do=>Do.theme.color_btn_secondary_hover,Do=>Do.theme.color_bg_border_02,Do=>Do.theme.color_text_L1,Do=>Do.theme.color_btn_secondary_active,Do=>Do.theme.color_bg_border_02,Do=>Do.theme.color_bg_white,Do=>Do.theme.color_bg_border_02,Do=>Do.theme.color_btn_primary_normal,Do=>Do.theme.color_text_btn,Do=>Do.theme.color_btn_primary_hover,Do=>Do.theme.color_text_btn,Do=>Do.theme.color_btn_primary_clicked,Do=>Do.theme.color_btn_primary_disabled,Do=>Do.theme.color_text_disabled02,Do=>Do.theme.color_bg_white,Do=>Do.theme.shadow_l,Do=>Do.theme.color_bg_border_01,Do=>Do.theme.color_bg_border_01,Do=>Do.theme.color_text_L1,Do=>Do.theme.color_text_L1,Do=>Do.theme.color_text_L1,Do=>Do.theme.color_bg_border_01,Do=>Do.theme.color_btn_secondary_active,Do=>Do.theme.color_btn_secondary_active,Do=>Do.theme.color_text_L1,Do=>Do.theme.color_text_L1),gs=(0,de.DU)([".DeleteCommentModal{background:",";box-shadow:0px 4px 20px 6px rgba(31,41,46,0.103438);border-radius:8px;width:400px;border:1px solid ",";.header{border-bottom:1px solid ",";color:",";background-color:",";}.close-btn{color:",";&:hover{color:",";}&:active{color:",";}}.content{color:",";background-color:",";p{color:",";}}footer{background:",";.button-root{","}}}"],Do=>Do.theme.color_bg_white,Do=>Do.theme.color_bg_border_02,Do=>Do.theme.color_bg_border_02,Do=>Do.theme.color_text_L1,Do=>Do.theme.color_bg_white,Do=>Do.theme.color_text_L2,Do=>Do.theme.color_text_L1,Do=>Do.theme.color_text_L1,Do=>Do.theme.color_text_L1,Do=>Do.theme.color_bg_white,Do=>Do.theme.color_text_L2,Do=>Do.theme.color_bg_white,_s.in);class ns extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"setOrgMembers",async()=>{var Go,an;const{currentOrg:Mo}=this.props;if(!(!((Go=MB.user)!=null&&Go.id)||!Mo||!(Mo!=null&&Mo.cid)||Mo!=null&&(an=Mo.members)!=null&&an.length))try{const Cn=await(0,ds.jm)(Mo.cid);this.props.dispatch({type:"update:org:member:list",payload:{orgMembers:Cn}})}catch(Cn){console.error("requestOrgMembers",Cn)}})}async componentDidMount(){this.props.dispatch({type:"entry:comment:rebuild:commentList"}),await this.setOrgMembers(),this.handleShowAnchor(),this.updateAnchor()}componentDidUpdate(Go,an){this.props.commentList.length!==(Go==null?void 0:Go.commentList.length)&&this.handleShowAnchor(),this.props.runnerCacheTag!==(Go==null?void 0:Go.runnerCacheTag)&&this.updateAnchor()}handleShowAnchor(){this.props.dispatch({type:"entry:comment:show-or-hide:anchor-node"})}updateAnchor(){this.props.dispatch({type:"entry:comment:update:view-container-style"})}render(){const{viewport:Go,commentList:an=[],activeCommentCid:Mo,wigglingCommentCid:Cn,editorRawContentObject:Tn,commentIsEditing:cn,editingRecordCid:bs,isCommentDragging:Vn,dispatch:ti,creatingComment:oi,mode:Gt,viewType:Rs,currentOrg:Xs,theme:Ti}=this.props,di=an.concat(oi||[]);if((di==null?void 0:di.length)===0)return null;let vs;Mo&&(vs=di.find(fi=>fi.cid===Mo));const{emojiToastStyle:ei,atStyle:Si}=this.props,{left:Gs,top:Vs}=ei,{left:ps,top:kn,keywords:zn,recordCid:hs,display:Ss}=Si;return(0,se.jsxs)(se.Fragment,{children:[(0,se.jsxs)(Ls,{id:Gt+"-comment-view-container",className:Gt+"-comment",children:[di.map(fi=>(0,se.jsx)(D,{mode:Gt,creatingComment:oi,viewport:Go,comment:fi,activeCommentCid:Mo,dispatch:ti},fi.cid)),!Vn&&vs&&(0,se.jsx)(Ze,{mode:Gt,viewport:Go,activeCommentCid:Mo,comment:vs,wigglingCommentCid:Cn,editorRawContentObject:Tn,commentIsEditing:cn,editingRecordCid:bs,emojiToastStyle:ei,atStyle:Si,viewType:Rs,members:(Xs==null?void 0:Xs.members)||[],theme:Ti,dispatch:ti}),vs&&(Gs!==0||Vs!==0)&&(0,se.jsx)(Lo,{commentCid:vs.cid,left:Gs,top:Vs,dispatch:ti}),vs&&(ps!==0||kn!==0)&&(0,se.jsx)(Kn,{atDisplay:Ss,commentCid:vs.cid,recordCid:hs,keywords:zn,left:ps,top:kn,members:(Xs==null?void 0:Xs.members)||[],dispatch:ti})]}),(0,se.jsx)(gs,{})]})}}const Wn=ns},11542:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>r});var o=e(74059),m=e(51044),g=e(86634),l=e.n(g),C=e(7290),T=e(11777),A=e(21676);const k=A.Ay.span.withConfig({displayName:"styles__StyledCommentIcon",componentId:"sc-ruhsdd-0"})(["position:relative;height:28px;width:28px;display:flex;flex-direction:column;justify-content:center;align-items:center;color:",";&.active{background-color:#e5e5e5;}"],x=>x.theme.color_text_L1);var p=e(57464);class r extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"ref",null),(0,o.A)(this,"handleClick",f=>{const{disabled:u,onClick:b}=this.props;u||(b&&f.stopPropagation(),b&&b(f))}),(0,o.A)(this,"setRef",f=>{this.props.iconRef&&this.props.iconRef(f),this.ref=f})}render(){const{id:f,disabled:u,active:b,name:h,icon:E,className:N,selected:z,svgClassName:S}=this.props,_=this.props.content||h;return(0,p.jsx)(T.A,{content:_,direction:"down",children:(0,p.jsx)(k,{ref:this.setRef,id:f,className:l()("comment-icon",{"is-selected":z},N,{disabled:u,active:b}),onClick:this.handleClick,children:E?(0,p.jsx)(C.C,{style:{},className:S,name:"comment/"+E}):(0,p.jsx)("p",{children:h})})})}}},12056:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>r});var o=e(51044),m=e(11542),g=e(88319),l=e(19418),C=e(21676);const T=C.Ay.span.withConfig({displayName:"styles__StyledTriggerContainerDiv",componentId:"sc-1dwln2t-0"})([".toolbar-btn{margin:0 4px;width:32px;cursor:pointer;border-radius:4px;&.free-width{width:auto;}&.disabled{background-color:transparent;opacity:.3;cursor:not-allowed;}&:hover{background-color:#f7f7f7;}&:active,&.active{background-color:#e5e5e5;}&.active:hover{background-color:#e5e5e5;}}.toolbar-btn .svg-icon{width:32px;height:32px;}"]),A=(0,C.DU)([".more-drop-menu.list-content{min-width:96px;}"]);var k=e(57464);const r=x=>{const{onChange:f,options:u}=x,b=(0,o.useRef)(null),[h,E]=(0,o.useState)(!1),N=(0,o.useCallback)($=>()=>{f&&f($),S()},[f]),z=()=>{E(!0)},S=()=>{E(!1)},_=()=>{h?S():z()},y=$=>{var ce;let{target:de}=$;!h||!(b!=null&&b.current)||b!=null&&(ce=b.current)!=null&&ce.contains(de)||de.closest(".list-content")||S()},a=()=>u.map($=>({isShow:!0,label:I18N.Comment[$.label],onClick:N($.value)}));return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(T,{ref:b,onClick:_,children:(0,k.jsx)(m.A,{className:"toolbar-btn comment-more-btn",name:I18N.Comment.more,icon:"more",active:h})}),h&&(b==null?void 0:b.current)&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(g.A,{className:"more-drop-menu",menuItems:a(),targetNode:b==null?void 0:b.current,direction:"down",distance:2}),(0,k.jsx)(l.A,{target:document,onMouseDown:(0,l.t)(y,{capture:!0})}),(0,k.jsx)(A,{})]})]})}},63033:(Et,ke,e)=>{"use strict";e.d(ke,{L:()=>A});var o=e(51044),m=e(63065),g=e(57464);function l(k){var p;const{isShowCompletedComment:r,dispatch:x,selected:f,viewType:u}=k;return(0,g.jsxs)("div",{className:"filter-header",children:[(0,g.jsx)("h3",{children:I18N.Comment.comment}),((p=MB)==null||(p=p.user)==null?void 0:p.id)&&(0,g.jsx)(m.A,{selected:f,isShowCompletedComment:r,viewType:u,dispatch:x})]})}var C=e(36702),T=e(19146);const A=k=>{const{commentList:p,activeCommentCid:r,viewType:x,commentPanelWidth:f,isHtmlZipPreview:u,selected:b,isShowCompletedComment:h,dispatch:E}=k;return(0,g.jsxs)(T.A,{className:"comment-panel",style:{width:f},children:[(0,g.jsx)(l,{isShowCompletedComment:h,selected:b,viewType:x,dispatch:E}),(0,g.jsx)(C.K,{activeCommentCid:r,commentList:p,viewType:x,commentPanelWidth:f,isHtmlZipPreview:u})]})}},36702:(Et,ke,e)=>{"use strict";e.d(ke,{K:()=>a});var o=e(51044),m=e(86634),g=e.n(m),l=e(42226),C=e(12056),T=e(11777),A=e(11542),k=e(72605),p=e(96343),r=e(40778),x=e(66456),f=e(57465),u=e(57464);const b=[{label:"delete",value:"delete"}],E=$=>{var ce,de;const fe=(0,k.wA)(),[se,J]=(0,o.useState)(""),ve=(0,o.useRef)(),{comment:D,activeCommentCid:R,viewType:V,commentPanelWidth:O}=$,{cid:Ce,screenCid:ae,status:q,comments:K,userInfo:xe,ctime:te,mtime:H,message:re,threadType:be,canvasCid:Le}=D,{user:Ve}=window.MB,Ne=K.length,We=(0,p.ug)(xe),ze=(0,o.useMemo)(()=>{let qt=b;return(Ve==null?void 0:Ve.cid)!==(xe==null?void 0:xe.cid)&&(qt=qt.filter(pt=>!["edit","delete"].includes(pt.value))),qt},[Ve,xe]),ft=(0,o.useMemo)(()=>{const qt=H||te;return(0,l.zW)(qt)},[te,H]),mt=(0,o.useMemo)(()=>(0,f.vp)(re,!0),[re]),i=(0,o.useMemo)(()=>{var qt;return((qt=rootSdk.sdkStore.getHotItem(ae))==null||(qt=qt.hotAttr)==null?void 0:qt.name)||"\u672A\u5173\u8054\u9875\u9762"},[ae]),gt=(0,o.useCallback)(qt=>{qt.stopPropagation(),fe({type:"preference:update",payload:{commentOptionsShowCommentChecked:!0}}),fe({type:"entry:comment:rightPanel:active",payload:{commentCid:Ce}}),(0,x.i4)({operation_type:x.nU.SelectComment,comment_type:x.ej[be],relation:!!Le,operation_from:x.HI[V]})},[Le,Ce,fe,be,V]),Je=(0,o.useCallback)(qt=>{qt==="delete"&&MB.global.popupHelper.confirmAsync({className:"DeleteCommentModal",title:I18N.Comment.delete_comment_title,confirmText:I18N.Common.confirm,desc:I18N.Comment.delete_comment_desc}).then(pt=>{pt&&fe({type:"entry:comment:delete",payload:{cid:Ce}}),pt&&(0,x.i4)({operation_type:x.nU.deleteInEditArea,comment_type:x.ej[be],relation:!!Le,operation_from:x.HI[V]})})},[Le,Ce,fe,be,V]),Pt=(0,o.useCallback)(()=>{fe({type:"entry:comment:checked",payload:{cid:Ce,status:q!=="checked"}}),(0,x.i4)({operation_type:q==="checked"?x.nU.CancelFinishInPanel:x.nU.FinishInPanel,comment_type:x.ej[be],relation:!!Le,operation_from:x.HI[V]})},[Le,Ce,fe,q,be,V]),bt=(0,o.useCallback)(qt=>{qt.stopPropagation(),se===I18N.Comment.expand?J(I18N.Comment.collapse):se===I18N.Comment.collapse&&J(I18N.Comment.expand)},[se]);return(0,o.useEffect)(()=>{if(!ve||!ve.current)return;const{scrollHeight:qt}=ve.current;qt>90?J(I18N.Comment.expand):J("")},[mt,O]),(0,u.jsxs)("div",{className:g()({"comment-card":!0,"comment-active":Ce===R}),onClick:gt,children:[(0,u.jsxs)("header",{className:"comment-card-header",children:[(0,u.jsxs)("div",{className:"comment-summary",children:[We.avatar&&!((ce=We.avatar)!=null&&ce.includes("/images/avatar.png"))?(0,u.jsx)("img",{className:"user-avatar",src:We.avatar,alt:"avatar"}):(0,u.jsx)("span",{className:"user-avatar isSpan",children:(de=We.name.substring(0,1))==null?void 0:de.toUpperCase()}),(0,u.jsxs)("div",{className:"text-container",children:[(0,u.jsx)(T.A,{content:We.name,distance:5,direction:"left",children:(0,u.jsx)("div",{className:"user-name",children:We.name})}),(0,u.jsx)(T.A,{content:i||"\u8FD9\u91CC\u662F\u9875\u9762\u540D\u79F0",distance:5,direction:"left",children:(0,u.jsx)("div",{className:"page-name",children:i||"\u8FD9\u91CC\u662F\u9875\u9762\u540D\u79F0"})})]})]}),(0,u.jsx)("div",{className:"more-btn",children:ze.length>0&&(0,u.jsx)(C.A,{options:ze,onChange:Je,style:{width:96,top:24,right:0}})})]}),(0,u.jsxs)("section",{className:"comment-card-content",children:[(0,u.jsx)("div",{className:g()("raw-content",{"fold-content":se===I18N.Comment.expand}),ref:ve,dangerouslySetInnerHTML:{__html:mt}}),se&&(0,u.jsx)("div",{className:"fold-btn",onClick:bt,children:se}),Ne>0&&(0,u.jsxs)("div",{className:"replay-info",children:[Ne," ",I18N.Comment.num_replies]})]}),(0,u.jsxs)("footer",{className:"comment-card-footer",children:[(0,u.jsxs)("div",{className:"time",children:[I18N.Comment.comment_on," ",ft]}),((0,r.OB)()||MB.canEditByCurrentUser||We.cid===Ve.cid)&&(0,u.jsx)(A.A,{className:g()("toolbar-btn",{checked:q==="checked"}),name:q==="checked"?I18N.Comment.cancel_confirm:I18N.Comment.resolve,icon:q==="checked"?"checked":"un_checked",onClick:Pt})]})]})};var N=e(88223),z=e(19146),S=e(15336),_=e(36820);const y=(0,u.jsxs)("svg",{width:"123",height:"89",viewBox:"0 0 123 89",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,u.jsx)("path",{d:"M47.434 24.4479C46.851 24.4478 46.2702 24.5195 45.705 24.6616C45.705 24.5868 45.705 24.5227 45.705 24.4479C45.7986 23.4797 45.6877 22.5028 45.3795 21.5797C45.0712 20.6567 44.5725 19.808 43.9152 19.0881C43.2579 18.3681 42.4565 17.7929 41.5626 17.3992C40.6687 17.0056 39.702 16.8022 38.7244 16.8022C37.7469 16.8022 36.7801 17.0056 35.8862 17.3992C34.9923 17.7929 34.191 18.3681 33.5337 19.0881C32.8764 19.808 32.3776 20.6567 32.0694 21.5797C31.7612 22.5028 31.6503 23.4797 31.7439 24.4479V24.512C30.7145 24.6494 29.7286 25.0127 28.8575 25.5754C27.9864 26.1382 27.2518 26.8865 26.7068 27.7663C26.1618 28.646 25.82 29.6352 25.7061 30.6624C25.5922 31.6896 25.709 32.7291 26.0481 33.7059C26.3873 34.6827 26.9402 35.5723 27.6671 36.3105C28.3939 37.0487 29.2765 37.6171 30.251 37.9745C31.2256 38.3319 32.2677 38.4695 33.3022 38.3773C34.3367 38.2851 35.3377 37.9654 36.2329 37.4413C37.1564 37.862 38.1598 38.0806 39.1755 38.0824C40.5825 38.0908 41.9582 37.6694 43.1168 36.875C43.9936 37.5663 45.0241 38.0385 46.122 38.2521C47.2199 38.4657 48.3532 38.4144 49.4271 38.1026C50.501 37.7908 51.4842 37.2275 52.2943 36.4599C53.1045 35.6923 53.7179 34.7427 54.0834 33.6907C54.4489 32.6387 54.5557 31.5149 54.3949 30.4134C54.2341 29.3118 53.8104 28.2647 53.1593 27.3596C52.5082 26.4545 51.6485 25.7178 50.6524 25.2112C49.6563 24.7046 48.5527 24.4429 47.434 24.4479Z",fill:"url(#paint0_linear_3145_29864)"}),(0,u.jsx)("path",{d:"M16.4602 14.5624C16.2337 14.5654 16.0083 14.5951 15.7888 14.6507C15.7888 14.6507 15.7888 14.5918 15.7888 14.5624C15.7524 13.8656 15.4493 13.2093 14.942 12.729C14.4347 12.2486 13.7619 11.9808 13.0624 11.9808C12.363 11.9808 11.6901 12.2486 11.1828 12.729C10.6755 13.2093 10.3724 13.8656 10.3361 14.5624V14.5624C9.93745 14.6175 9.55601 14.7601 9.21923 14.9799C8.88245 15.1996 8.59871 15.4912 8.38843 15.8334C8.17815 16.1757 8.04656 16.5602 8.00314 16.9593C7.95971 17.3584 8.00553 17.7621 8.1373 18.1415C8.26906 18.5208 8.48349 18.8662 8.76516 19.153C9.04682 19.4397 9.38872 19.6606 9.76623 19.7997C10.1437 19.9388 10.5475 19.9928 10.9484 19.9576C11.3493 19.9224 11.7374 19.7991 12.0848 19.5963C12.4426 19.7645 12.8329 19.8524 13.2284 19.8539C13.7757 19.8535 14.3103 19.6894 14.7632 19.3829C15.1041 19.6505 15.5042 19.8329 15.9301 19.915C16.3561 19.9971 16.7955 19.9765 17.2118 19.8549C17.6282 19.7333 18.0093 19.5142 18.3236 19.2159C18.6378 18.9176 18.8761 18.5488 19.0185 18.14C19.1609 17.7313 19.2033 17.2945 19.1422 16.8662C19.0811 16.4378 18.9183 16.0301 18.6672 15.6772C18.4162 15.3243 18.0843 15.0364 17.6991 14.8373C17.3139 14.6383 16.8866 14.5339 16.4528 14.5329L16.4602 14.5624Z",fill:"url(#paint1_linear_3145_29864)"}),(0,u.jsx)("path",{d:"M114.874 22.4274C114.205 22.4213 113.538 22.5035 112.89 22.6721C112.902 22.591 112.902 22.5085 112.89 22.4274C112.89 20.2989 112.044 18.2576 110.537 16.7526C109.031 15.2475 106.987 14.402 104.857 14.402C102.726 14.402 100.683 15.2475 99.1767 16.7526C97.6702 18.2576 96.8238 20.2989 96.8238 22.4274V22.4274C95.6461 22.5873 94.5185 23.0063 93.5224 23.6542C92.5263 24.3021 91.6866 25.1628 91.0637 26.1741C90.4409 27.1855 90.0503 28.3223 89.9204 29.5026C89.7905 30.683 89.9245 31.8774 90.3125 32.9998C90.7006 34.1222 91.3331 35.1446 92.1644 35.9932C92.9958 36.8419 94.0053 37.4957 95.1201 37.9074C96.235 38.3191 97.4274 38.4785 98.6114 38.3741C99.7954 38.2698 100.942 37.9042 101.967 37.3038C103.029 37.7856 104.181 38.0359 105.347 38.0379C106.952 38.0383 108.52 37.5613 109.853 36.6677C110.861 37.4658 112.045 38.0106 113.308 38.2562C114.57 38.5019 115.872 38.4413 117.106 38.0794C118.34 37.7176 119.469 37.0652 120.398 36.177C121.327 35.2887 122.029 34.1907 122.445 32.9751C122.861 31.7595 122.979 30.4619 122.788 29.1914C122.598 27.9209 122.105 26.7146 121.351 25.6739C120.598 24.6332 119.605 23.7884 118.456 23.2107C117.308 22.633 116.037 22.3392 114.751 22.354L114.874 22.4274Z",fill:"url(#paint2_linear_3145_29864)"}),(0,u.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.90176 37.1733L4.90324 37.1729ZM8.65186 35.7022C9.70263 35.8729 10.6948 36.0989 11.5664 36.3513C12.4956 36.6203 14.0915 38.1778 14.8039 39.845C15.0106 40.6438 14.3011 39.7244 12.9295 39.0635C12.4627 38.8322 11.799 38.5813 10.9887 38.3467C9.37042 37.8782 7.27736 37.5061 5.22562 37.4582C4.94556 37.4517 4.69139 37.4339 4.4848 37.3996C4.3869 37.3833 4.25499 37.3563 4.12261 37.3054C4.0572 37.2802 3.95266 37.2346 3.84296 37.1553C3.74245 37.0827 3.54633 36.916 3.44691 36.6217C3.33059 36.2775 3.40929 35.9522 3.54552 35.7267C3.66096 35.5355 3.80798 35.4256 3.88299 35.3751C4.03669 35.2717 4.19537 35.2176 4.28354 35.1901C4.48554 35.1271 4.73901 35.0801 5.01407 35.0423C5.52094 34.9728 6.00593 34.8887 6.40008 34.764C6.59465 34.7024 6.7401 34.6391 6.84201 34.5794C6.88988 34.5513 6.92107 34.5282 6.94047 34.5119C6.9311 34.4739 6.90814 34.4096 6.8557 34.3104C6.6666 33.9524 6.19839 33.3836 5.21298 32.5671C5.10851 32.4805 5.00717 32.39 4.91836 32.2971C4.83988 32.215 4.72105 32.08 4.63376 31.9023C4.55253 31.7369 4.39542 31.3093 4.6506 30.8512C4.88221 30.4354 5.27802 30.3268 5.40891 30.2974C5.69252 30.2336 5.99792 30.2711 6.15944 30.2927C6.36943 30.3207 6.61309 30.3666 6.86192 30.4167C7.02845 30.4503 7.20259 30.4867 7.38233 30.5242C8.33198 30.7224 9.43768 30.9532 10.4011 30.9787C10.976 30.9939 11.3654 30.9284 11.589 30.8261C11.7427 30.7557 11.7803 30.6991 11.7987 30.5602C11.8303 30.3211 11.7731 29.8099 11.3334 28.8898C10.9045 27.9923 10.1642 26.8133 8.99745 25.286C8.81692 25.0497 8.65692 24.7827 8.56414 24.4963C8.47749 24.2288 8.40483 23.7973 8.62344 23.3664C8.8697 22.881 9.32814 22.6918 9.6944 22.6517C10.0352 22.6143 10.3705 22.6877 10.6554 22.7856C12.3008 23.3508 14.8172 24.2125 17.3406 23.7777C19.7277 23.3664 22.3472 21.7437 24.1075 16.7793C24.2545 16.3647 24.5483 15.9526 24.8783 15.7054C24.9682 15.638 25.1023 15.5513 25.2735 15.493C25.437 15.4372 25.7441 15.3719 26.0859 15.5107C26.4614 15.6632 26.6534 15.9677 26.7341 16.2075C26.8073 16.4249 26.8068 16.6271 26.7972 16.7595C26.7752 17.0647 26.7068 17.4559 26.626 17.9176C26.2517 20.0582 26.9826 24.187 28.7319 27.5793C29.3612 28.7995 29.2972 28.9553 28.3943 27.921C26.8671 26.1715 24.6585 23.0481 24.6827 19.7134C23.4252 24.1759 20.049 25.419 17.6933 25.8249C15.4192 26.2167 13.2069 25.7565 11.5606 25.2673C12.2927 26.3099 12.8341 27.2124 13.2077 27.9941C13.7116 29.0485 13.968 30.001 13.8581 30.8323C13.735 31.7638 13.1762 32.3843 12.4534 32.715C11.8003 33.0139 11.0331 33.0735 10.3461 33.0553C9.7077 33.0384 9.02213 32.9477 8.37872 32.8367C8.5009 33.0078 8.60551 33.1754 8.69249 33.34C9.09911 34.1097 9.17519 34.9526 8.67172 35.6742C8.66517 35.6836 8.65855 35.6929 8.65186 35.7022ZM6.94442 34.5577C6.94442 34.5577 6.94165 34.5482 6.94497 34.5342C6.94756 34.5515 6.94442 34.5577 6.94442 34.5577Z",fill:"#FF6161"}),(0,u.jsxs)("g",{clipPath:"url(#clip0_3145_29864)",children:[(0,u.jsx)("path",{d:"M82.2023 43.6661C81.6241 45.5153 82.6591 47.4903 84.5082 48.0685C86.3593 48.6473 88.3351 47.6137 88.9133 45.7646C89.4915 43.9155 88.4568 41.9394 86.6058 41.3606C84.7566 40.7824 82.7805 41.8171 82.2023 43.6661Z",fill:"#90C0FA"}),(0,u.jsx)("path",{d:"M107.887 33.2812C108.728 30.5905 107.224 27.7171 104.531 26.8751L58.776 12.5678C56.0854 11.7265 53.2101 13.2303 52.3687 15.921L41.8762 49.4762C41.0349 52.1669 42.5412 55.0408 45.2319 55.8821L60.2812 60.5879C61.2934 60.9044 62.1384 61.6099 62.6306 62.5492L64.3007 65.7367C65.3257 67.6929 67.7421 68.4483 69.6987 67.4242L72.8855 65.7563C73.8252 65.2644 74.9218 65.166 75.9341 65.4825L90.9869 70.1894C93.6797 71.0314 96.553 69.527 97.3943 66.8364L99.1036 61.37L99.1242 61.2833L107.887 33.2812ZM94.2106 64.1666C94.2106 64.1666 94.2106 64.1666 94.2106 64.1666C93.7368 65.6819 92.1238 66.5265 90.6085 66.0527L75.3016 61.2663C74.2888 60.9496 73.1917 61.0483 72.2517 61.5407L71.4013 61.9862C69.4436 63.0117 67.0251 62.2552 66.0007 60.2967L65.5568 59.448C65.0649 58.5074 64.2192 57.8009 63.2061 57.4841L47.9017 52.6985C46.3864 52.2247 45.5399 50.611 46.0137 49.0957L55.5524 18.5908C56.0262 17.0755 57.6422 16.2286 59.1574 16.7024L101.864 30.0566C103.379 30.5304 104.223 32.1464 103.749 33.6616L95.5386 59.9193L94.79 62.3136L94.2105 64.1666C94.2105 64.1666 94.2106 64.1666 94.2106 64.1666V64.1666Z",fill:"#90C0FA"}),(0,u.jsx)("path",{d:"M71.5266 40.328C70.9484 42.1771 71.9833 44.1522 73.8324 44.7304C75.6816 45.3086 77.6573 44.275 78.2355 42.4258C78.8137 40.5767 77.7791 38.6006 75.9299 38.0224C74.0808 37.4443 72.1048 38.4789 71.5266 40.328Z",fill:"#90C0FA"}),(0,u.jsx)("path",{d:"M60.8509 36.9897C60.2727 38.8389 61.3077 40.8139 63.1568 41.3921C65.0059 41.9703 66.9816 40.9367 67.5598 39.0876C68.138 37.2384 67.1034 35.2624 65.2543 34.6842C63.4051 34.106 61.4291 35.1407 60.8509 36.9897Z",fill:"#90C0FA"})]}),(0,u.jsx)("path",{d:"M46.897 62.7862C46.6285 62.7862 46.3712 62.8942 46.1831 63.086C45.995 63.2777 45.892 63.5371 45.8972 63.8056L45.9242 65.1939L46.924 65.1745L46.978 67.9511L45.9789 67.9705L44.5249 67.0945L44.0088 67.9511L39.4 65.1745L39.916 64.3179L37.6116 62.9296C37.4558 62.8358 37.2774 62.7862 37.0955 62.7862H35.3172V63.7862H31.7606V62.7862H28.204V63.7862H24.6474V62.7862H22.9584C22.9265 62.7364 22.888 62.6408 22.888 62.5058V60.4422H21.888V56.3149H22.888V52.1876H21.888V48.0603H22.888V43.933H21.888V39.8057H22.888V37.742C22.888 37.6071 22.9265 37.5114 22.9584 37.4617H24.8896V36.4617H28.9307V37.4617H32.9717V36.4617H37.0128V37.4617H41.0538V36.4617H45.0948V37.4617H49.1359V36.4617H53.1769V37.4617H55.1081C55.14 37.5114 55.1785 37.6071 55.1785 37.742V39.8061H56.1785V43.9342H55.1785V48.0623H56.1785V52.1904H55.1785V56.3185H56.1785V60.4466H55.1785V62.5064C55.1771 62.6423 55.1377 62.7373 55.1059 62.7862H53.1186V63.7862H48.9709V62.7862H46.897ZM46.9745 69.3806C46.9524 69.4068 46.9272 69.4301 46.8994 69.4501L46.8225 69.3429L46.9273 69.3409L46.9745 69.3806ZM46.6879 69.3455L46.7489 69.3444L46.8095 69.499C46.7776 69.5115 46.7443 69.52 46.7103 69.5242L46.6879 69.3455ZM46.6302 69.3467L46.6079 69.5242C46.574 69.52 46.5406 69.5115 46.5088 69.499L46.568 69.3479L46.6302 69.3467ZM46.4912 69.3494L46.4189 69.4501C46.391 69.4301 46.3658 69.4068 46.3438 69.3806L46.3783 69.3516L46.4912 69.3494Z",fill:"white",stroke:"#90C0FA",strokeWidth:"2",strokeLinejoin:"round",strokeDasharray:"4 4"}),(0,u.jsx)("path",{d:"M38.1109 43.1309H27.8924C27.486 43.1309 27.1566 43.4603 27.1566 43.8667V44.5584C27.1566 44.9648 27.486 45.2943 27.8924 45.2943H38.1109C38.5173 45.2943 38.8467 44.9648 38.8467 44.5584V43.8667C38.8467 43.4603 38.5173 43.1309 38.1109 43.1309Z",fill:"#9EA9BC"}),(0,u.jsx)("path",{d:"M45.1652 48.9392H27.8924C27.486 48.9392 27.1566 49.2687 27.1566 49.6751V50.3667C27.1566 50.7731 27.486 51.1026 27.8924 51.1026H45.1652C45.5716 51.1026 45.9011 50.7731 45.9011 50.3667V49.6751C45.9011 49.2687 45.5716 48.9392 45.1652 48.9392Z",fill:"#9EA9BC"}),(0,u.jsx)("path",{d:"M50.7773 54.7526H27.8924C27.486 54.7526 27.1566 55.082 27.1566 55.4884V56.1801C27.1566 56.5865 27.486 56.916 27.8924 56.916H50.7773C51.1837 56.916 51.5131 56.5865 51.5131 56.1801V55.4884C51.5131 55.082 51.1837 54.7526 50.7773 54.7526Z",fill:"#9EA9BC"}),(0,u.jsx)("ellipse",{cx:"61.3847",cy:"80.3806",rx:"33.3764",ry:"6.92983",transform:"rotate(2.57165 61.3847 80.3806)",fill:"url(#paint3_linear_3145_29864)"}),(0,u.jsxs)("defs",{children:[(0,u.jsxs)("linearGradient",{id:"paint0_linear_3145_29864",x1:"31.1854",y1:"10.0012",x2:"42.8441",y2:"38.4977",gradientUnits:"userSpaceOnUse",children:[(0,u.jsx)("stop",{stopColor:"#CEE1FF"}),(0,u.jsx)("stop",{offset:"1",stopColor:"#FCF7FF"})]}),(0,u.jsxs)("linearGradient",{id:"paint1_linear_3145_29864",x1:"10.1443",y1:"8.91019",x2:"14.6989",y2:"20.0093",gradientUnits:"userSpaceOnUse",children:[(0,u.jsx)("stop",{stopColor:"#CEE1FF"}),(0,u.jsx)("stop",{offset:"1",stopColor:"#FCF7FF"})]}),(0,u.jsxs)("linearGradient",{id:"paint2_linear_3145_29864",x1:"105.812",y1:"12.3956",x2:"106.545",y2:"34.1475",gradientUnits:"userSpaceOnUse",children:[(0,u.jsx)("stop",{stopColor:"#E9EEFF"}),(0,u.jsx)("stop",{offset:"1",stopColor:"#FCF7FF"})]}),(0,u.jsxs)("linearGradient",{id:"paint3_linear_3145_29864",x1:"46.1107",y1:"73.4508",x2:"68.9711",y2:"94.6006",gradientUnits:"userSpaceOnUse",children:[(0,u.jsx)("stop",{stopColor:"#CDE1FF"}),(0,u.jsx)("stop",{offset:"1",stopColor:"#FBF6FF"})]}),(0,u.jsx)("clipPath",{id:"clip0_3145_29864",children:(0,u.jsx)("rect",{width:"71.0369",height:"71.0369",fill:"white",transform:"translate(50.606) rotate(17.3641)"})})]})]});function a($){var ce;const{commentList:de,activeCommentCid:fe,viewType:se,isHtmlZipPreview:J,commentPanelWidth:ve}=$,D=(0,o.useRef)();return(0,o.useEffect)(()=>{var R;if(!D||!D.current)return;const{clientHeight:V,scrollTop:O}=D.current,Ce=D==null||(R=D.current)==null?void 0:R.querySelector(".comment-active");if(!Ce)return;const{scrollHeight:ae,offsetTop:q}=Ce,K=q-O;(K<0||K>V||V-K<ae/2)&&(0,N.VG)(D.current,q-V/2,200)},[D,fe]),J?null:(0,u.jsx)(z.$,{children:(0,u.jsx)("div",{className:"comment-list",ref:D,children:de.length>0?(0,u.jsxs)(u.Fragment,{children:[de.map(R=>(0,u.jsx)(E,{comment:R,activeCommentCid:fe,viewType:se,commentPanelWidth:ve},R.cid)),(0,u.jsxs)("div",{className:"no-more-tips",children:["- ",I18N.Comment.no_more_comment," -"]})]}):(ce=MB)!=null&&(ce=ce.user)!=null&&ce.id?(0,u.jsxs)("div",{className:"blank-list",children:[(0,u.jsx)("span",{className:"icon",children:y}),(0,u.jsx)("span",{className:"text",children:I18N.Comment.click_drag_to_add_comment})]}):(0,u.jsxs)("div",{className:"blank-list",children:[(0,u.jsx)("span",{className:"icon",children:y}),(0,u.jsx)("span",{className:"text",children:I18N.Comment.view_comments_after_login}),(0,u.jsx)("button",{className:"login",onClick:()=>{MB.global.popupHelper.loginAsync({onConfirm:()=>{setTimeout(()=>location.reload(),50),(0,S.JW)("/workspace","_blank","noreferrer"),ENV.IS_WONDER_SHARE&&(0,_.lW)("Device-Comment-Signin")},type:"signin",source:"proto-preview-comment"})},children:I18N.pPreviewToolbar.login})]})})})}},63065:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>f});var o=e(51044),m=e(86634),g=e.n(m),l=e(21676),C=e(98712),T=e(7290),A=e(66456),k=e(89535),p=e(57464);const r=u=>{const{selected:b,dispatch:h,isShowCompletedComment:E,viewType:N}=u,[z,S]=(0,o.useState)(!1),_=[{label:"all",value:""},{label:"only_your_treads",value:"me"},{label:"mentioned_you",value:"@me"}],y=(0,o.useCallback)(de=>{de!==b&&h({type:"comment:update:commentFilterSelected",payload:{commentFilterSelected:de}})},[b]),a=(0,o.useCallback)((de,fe)=>()=>{de==="selected"&&(y&&y(fe),(0,A.i4)({operation_type:A.nU[fe]||A.nU.all,comment_type:"",relation:"",operation_from:A.HI[N]}))},[y,N]),$=()=>{h({type:"comment:toggle:isShowCompletedComment"}),(0,A.i4)({operation_type:A.nU.ShowFinishedComment,comment_type:"",relation:"",operation_from:A.HI[N]})},ce=b!=="";return(0,p.jsx)(x,{children:(0,p.jsx)(C.A,{dark:!0,top:30,right:0,className:"comment-filter-dropdown",onShow:()=>S(!0),onClose:()=>S(!1),trigger:(0,p.jsx)(k.A,{content:I18N.Comment.filter,direction:"down",children:(0,p.jsx)("div",{className:g()("filter-trigger-container",z?"active":""),children:ce?(0,p.jsx)(T.C,{className:"filter-active-icon",name:"comment/filter-active"}):(0,p.jsx)(T.C,{name:"comment/filter"})})}),children:(0,p.jsx)("div",{className:"filter-content-container",children:(0,p.jsxs)("div",{className:"list-container",children:[_.map(de=>(0,p.jsxs)("div",{className:"item-container",onClick:a("selected",de.value),children:[(0,p.jsx)("div",{className:"icon-left",children:de.value===b&&(0,p.jsx)(T.C,{size:20,isColorPure:!0,name:"comment/right_panel/filter_checked"})}),(0,p.jsx)("div",{className:"value-right",children:I18N.Comment[de.label]})]},de.value)),(0,p.jsx)("div",{className:"separate-line"}),(0,p.jsxs)("div",{className:"item-container",onClick:$,children:[(0,p.jsx)("div",{className:"icon-left",children:E&&(0,p.jsx)(T.C,{size:20,isColorPure:!0,name:"comment/right_panel/filter_checked"})}),(0,p.jsx)("div",{className:"value-right",children:I18N.Comment.show_resolved_comments})]})]})})})})},x=l.Ay.div.withConfig({displayName:"FilterDropdown__StyledFilterDropdown",componentId:"sc-1m6lf97-0"})([".comment-filter-dropdown{margin:0;.svg-icon{circle{fill:none;stroke:currentColor;}}}.filter-trigger-container{width:max-content;display:flex;flex-direction:row;justify-content:flex-end;align-items:center;.svg-icon{circle{fill:none;}}.filter-active-icon{circle{fill:#1684FC !important;}path{fill:#FFF !important;stroke:#FFF !important;}}}.filter-content-container{min-width:144px;width:max-content;display:flex;justify-content:center;position:relative;padding:8px;.list-container{width:100%;position:relative;box-sizing:border-box;.item-container{width:100%;height:28px;padding-left:8px;padding-right:8px;color:",";cursor:pointer;margin:2px 0;display:flex;align-items:center;&:hover{background:",";}.icon-left{font-size:12px;line-height:24px;display:inline-flex;align-items:center;width:20px;text-align:right;margin-right:2px;}.value-right{font-size:12px;line-height:24px;display:inline-block;width:max-content;text-align:left;}}}.separate-line{width:100%;height:1px;background-color:",";margin:6px 0;}}.filter-content-container{border-radius:8px;border:1px solid ",";background:",";box-shadow:0px 4px 10px 0px ",";.list-container{.item-container{border-radius:4px;.icon-left svg path{fill:",";}}}}"],u=>u.theme.color_text_L1,u=>u.theme.color_btn_secondary_hover,u=>u.theme.color_bg_border_01,u=>u.theme.color_bg_border_01,u=>u.theme.color_bg_white,u=>u.theme.shadow_m,u=>u.theme.color_text_L1),f=(0,o.memo)(r)},19146:(Et,ke,e)=>{"use strict";e.d(ke,{$:()=>m,A:()=>g});var o=e(21676);const m=o.Ay.div.withConfig({displayName:"styles__StyledCommentList",componentId:"sc-16m80ox-0"})(["height:calc(100% - 40px);flex:1;.comment-list{width:100%;height:100%;overflow-y:auto;position:relative;.blank-list{width:100%;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;position:absolute;top:calc(50%);left:50%;transform:translate(-50%,-50%);.text{margin-top:16px;font-size:12px;line-height:16px;color:",";}.login{margin-top:20px;border:1px solid ",";border-radius:4px;font-size:12px;line-height:16px;color:",";width:78px;height:28px;}.icon{width:123px;height:89px;}}.comment-card{width:100%;position:relative;box-sizing:border-box;border-bottom:1px solid ",";.comment-card-header{padding:15px 10px 15px 20px;display:flex;position:relative;width:100%;.comment-summary{flex:1;display:flex;position:relative;width:calc(100% - 20px);.user-avatar{width:26px;height:26px;border-radius:50%;margin-right:6px;&.isSpan{color:#fff;background-color:",";font-size:14px;display:flex;justify-content:center;align-items:center;}}.text-container{position:relative;width:calc(100% - 31px);.user-name,.page-name{font-size:12px;line-height:12px;}.user-name{font-weight:500;color:",";width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.page-name{margin-top:4px;transform:scale(0.834);transform-origin:left center;color:",";width:calc(100% / 0.834);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}}.more-btn{width:20px;height:20px;.toolbar-btn{width:20px;height:20px;margin:0;cursor:pointer;border-radius:4px;.svg-icon{color:",";width:20px;height:20px;}}}}.comment-card-content{padding:0 15px 0 20px;.raw-content{width:100%;margin-bottom:4px;word-break:break-all;word-wrap:break-word;a{color:#298df8;display:inline-block;padding-left:2px;padding-right:2px;border-radius:2px;text-decoration:none;background-color:#e6f3ff;}p{user-select:text;font-size:12px;line-height:18px;text-align:justify;color:",";}&.fold-content{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;}}.fold-btn{font-size:12px;line-height:17px;color:",";cursor:pointer;}.replay-info{font-size:12px;line-height:16px;font-weight:normal;color:",";}}.comment-card-footer{padding:10px 10px 10px 20px;display:flex;align-items:center;.time{flex:1;font-size:12px;line-height:12px;transform:scale(0.834);transform-origin:left center;font-weight:normal;color:",";}.toolbar-btn{width:24px;height:24px;cursor:pointer;border-radius:4px;.svg-icon{color:",";width:24px;height:24px;}&.checked{.svg-icon{color:",";}}}}.related-info{display:flex;flex-direction:row;justify-content:space-between;align-items:center;margin-bottom:8px;.star-container{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;.star-icon{margin-right:6px;display:flex;justify-content:center;align-items:center;}.star-count{font-size:12px;font-weight:500;line-height:16px;color:",";}}.artboard-name{font-size:12px;line-height:16px;font-weight:normal;text-align:right;color:",";width:167px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-left:8px;}}.user-info{display:flex;flex-direction:row;justify-content:space-between;align-items:center;margin-bottom:8px;.user-name{font-size:12px;line-height:16px;font-weight:500;color:",";}}&:hover{background-color:",";.more-btn,.comment-card-footer{.toolbar-btn:hover{background:",";}.toolbar-btn.active{background:",";}}}&.comment-active{background:",";.more-btn,.comment-card-footer{.toolbar-btn:hover{background:",";}.toolbar-btn.active{background:",";}}}}.no-more-tips{font-size:12px;transform:scale(0.834);transform-origin:center;line-height:24px;text-align:center;color:",";margin-top:2px;}}"],l=>l.theme.color_text_L2,l=>l.theme.color_text_L1,l=>l.theme.color_text_L1,l=>l.theme.color_bg_border_02,l=>l.theme.color_proto,l=>l.theme.color_text_L1,l=>l.theme.color_text_L2,l=>l.theme.color_text_L1,l=>l.theme.color_text_L1,l=>l.theme.color_proto,l=>l.theme.color_text_L3,l=>l.theme.color_text_L2,l=>l.theme.color_text_L1,l=>l.theme.color_proto,l=>l.theme.color_text_L1,l=>l.theme.color_text_L3,l=>l.theme.color_text_L1,l=>l.theme.color_ruler_shadow_color,l=>l.theme.color_btn_secondary_hover,l=>l.theme.color_btn_secondary_active,l=>l.theme.comment_active,l=>l.theme.color_btn_secondary_hover,l=>l.theme.color_btn_secondary_active,l=>l.theme.color_text_L3),g=o.Ay.div.withConfig({displayName:"styles__StyledCommentPanelContainer",componentId:"sc-16m80ox-1"})(["&.comment-panel{width:100%;height:100%;position:relative;right:0;top:0;background:",";border-radius:4px;.filter-header{width:100%;height:40px;box-sizing:border-box;border-bottom:1px solid ",";padding:0 10px 0 16px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;background:",";h3{flex:1;font-size:12px;font-weight:500;line-height:16px;color:",";}.comment-filter-dropdown,.comment-options-dropdown{width:auto;}.options-trigger-container{width:24px;height:24px;margin-left:4px;}.options-content-container{padding:2px 0;width:240px;background:",";box-shadow:0px 3px 6px -4px rgba(0,0,0,0.12),0px 6px 16px rgba(0,0,0,0.08),0px 9px 28px 8px rgba(0,0,0,0.05);border-radius:4px;.options-item-container{padding:0 15px;display:flex;align-items:center;justify-content:space-between;margin:2px 0;.info-content{flex:1;.main-info{font-size:12px;line-height:12px;color:",";}.desc-info{margin-top:3px;font-size:12px;transform:scale(0.75);transform-origin:left center;line-height:16px;color:",";white-space:nowrap;margin-right:-50px;}}}.end-comment{height:45px;}.show-comment-in-canvas{height:45px;}}.filter-trigger-container,.options-trigger-container{color:",";cursor:pointer;border-radius:4px;transition:300ms;color:",";&.active{color:",";background:",";}&:not(.active):hover{color:",";background:",";}.svg-icon{width:24px;height:24px;path[fill]{fill:currentColor;}path[stroke]{stroke:currentColor;}}}}}"],l=>l.theme.color_bg_white,l=>l.theme.color_bg_border_01,l=>l.theme.color_bg_white,l=>l.theme.color_text_L1,l=>l.theme.color_text_btn,l=>l.theme.color_text_L1,l=>l.theme.color_text_L3,l=>l.theme.color_text_L3,l=>l.theme.color_text_L1,l=>l.theme.color_text_L1,l=>l.theme.color_btn_secondary_active,l=>l.theme.color_text_L1,l=>l.theme.color_btn_secondary_hover)},35592:(Et,ke,e)=>{"use strict";e.d(ke,{AU:()=>$,CI:()=>ce,Cb:()=>p,EH:()=>A,Li:()=>h,M5:()=>k,Ou:()=>_,QV:()=>N,RF:()=>b,V8:()=>z,VT:()=>fe,Vr:()=>T,YW:()=>r,ZA:()=>de,az:()=>S,c1:()=>u,fd:()=>f,nO:()=>x,sI:()=>C,sT:()=>y,uX:()=>E,ud:()=>a});var o=e(8907),m=e(47143),g=e(91560),l=e(63686);const C=se=>se.comment.isInCommentMode,T=se=>se.comment.allCommentList,A=se=>se.comment.isShowCommentInCanvas,k=se=>se.comment.isShowCompletedComment,p=se=>se.comment.activeCommentCid,r=se=>se.comment.wigglingCommentCid,x=se=>se.comment.startCommentAnchorPoint,f=se=>se.comment.isCommentDragging,u=se=>se.comment.commentFilterSelected,b=se=>se.comment.emojiToastStyle,h=se=>se.comment.atStyle,E=se=>se.comment.editorRawContentObject,N=se=>se.comment.editorIsEditing,z=se=>se.comment.creatingComment,S=se=>se.comment.editingCommentCid,_=se=>se.comment.editingRecordCid,y=se=>se.comment.previewCommentCacheTag,a=(0,l.Mz)([S,_],(se,J)=>se||J),$=(0,l.Mz)([T,m.Ur],(se,J)=>{if(!J)return[];const{cid:ve}=J;return se.filter(D=>D.screenCid===ve)}),ce=(0,l.Mz)([T,g.mf],(se,J)=>{const{activePageKey:ve,activeCanvasKey:D}=J;return se.filter(V=>V.screenCid===ve&&V.canvasCid===D)}),de=(0,l.Mz)([$,u,k],(se,J,ve)=>{const{user:D}=window.MB;return se.filter(R=>{const{status:V,userInfo:O,comments:Ce,message:ae}=R;if(V==="creating")return!1;if(J==="")return!0;if(J==="me")return O.cid===D.cid;if(J==="@me"){const q=(0,o.mx)(ae),{entityMap:K={}}=q;return Object.values(K).some(te=>te.type==="LINK"&&te.data&&te.data.url.includes(D.cid))?!0:Ce.some(te=>{let H;try{const re=(0,o.mx)(te.message),{entityMap:be}=re;H=Object.values(be).some(Le=>Le.type==="LINK"&&Le.data&&Le.data.url.includes(D.cid))}catch(re){H=!1}return H})}return!1}).filter(R=>R.status==="checked"?ve:!0)}),fe=(0,l.Mz)([ce,u,k],(se,J,ve)=>{const{user:D}=window.MB;return se.filter(R=>{const{status:V,userInfo:O,comments:Ce,message:ae}=R;if(V==="creating")return!1;if(J==="")return!0;if(J==="me")return O.cid===D.cid;if(J==="@me"){const q=(0,o.mx)(ae),{entityMap:K={}}=q;return Object.values(K).some(te=>te.type==="LINK"&&te.data&&te.data.url.includes(D.cid))?!0:Ce.some(te=>{let H;try{const re=(0,o.mx)(te.message),{entityMap:be}=re;H=Object.values(be).some(Le=>Le.type==="LINK"&&Le.data&&Le.data.url.includes(D.cid))}catch(re){H=!1}return H})}return!1}).filter(R=>R.status==="checked"?ve:!0)})},96343:(Et,ke,e)=>{"use strict";e.d(ke,{$S:()=>$,Bh:()=>de,Bt:()=>fe,Ch:()=>ce,GY:()=>J,IP:()=>y,KA:()=>b,RR:()=>D,V3:()=>r,_p:()=>_,bL:()=>a,gR:()=>se,kJ:()=>V,m0:()=>E,ug:()=>h,v0:()=>S,vl:()=>N,xJ:()=>R,xb:()=>p,yG:()=>k});var o=e(17534),m=e(81962),g=e(2302),l=e(13780),C=e(29758),T=e(48451),A=e(66976);const k=32,p=32,r=O=>{let{comment:Ce,mode:ae,viewport:q}=O,K;const xe=q.scale/100;if(ae==="design"){const{x:te,y:H,w:re,h:be,threadType:Le,status:Ve}=Ce;Le==="point"&&(K={width:k,height:p,left:te*xe,top:H*xe-(Ve==="creating"?36:p)}),Le==="frame"&&(K={width:re*xe,height:be*xe,left:te*xe,top:H*xe})}else if(ae==="preview"){const{w:te,h:H,canvasCid:re,canvasVec2:be,threadType:Le,status:Ve}=Ce;if(re&&be){const{x:Ne,y:We}=be;Le==="point"&&(K={width:k,height:p,left:Ne*xe,top:We*xe-(Ve==="creating"?36:p)}),Le==="frame"&&(K={width:te*xe,height:H*xe,left:Ne*xe,top:We*xe})}}return K},x=260,f=160,u=340,b=O=>{var Ce;let{comment:ae,mode:q,viewport:K,recordList:xe}=O,te={width:340};const H=K.scale/100;let{x:re,y:be}=ae||{};const{w:Le,threadType:Ve,canvasCid:Ne,canvasVec2:We}=ae||{},{left:ze=0,top:ft=0}=((Ce=document.querySelector("#"+q+"-comment-view-container"))==null?void 0:Ce.getBoundingClientRect())||{},mt=ze+re*H+u+x<window.innerWidth,i=ft+be*H+f<window.innerHeight;if(q==="preview"&&Ne&&We){const{x:gt,y:Je}=We||{};re=gt,be=Je}if(mt?te={...te,left:re*H+38+10}:te={...te,right:-(re*H)+10},i?te={...te,top:be*H-36}:te={...te,bottom:-(be*H-36)},q==="design"&&Ve==="frame"&&(te={width:340,left:(re+Le)*H+38+10,top:be*H}),q==="preview"){const{canvasCid:gt,canvasVec2:Je}=ae;gt&&Je&&Ve==="frame"&&(te={width:340,left:(re+Le)*H+38+10,top:be*H})}return te},h=O=>{const{members:Ce=[]}=window.MB,ae=Ce.find(q=>q.user_cid===O.cid)||{};return{...O,...ae}};function E(O){const Ce=document.elementFromPoint(O.clientX,O.clientY);return!Ce||!Ce.closest?!1:[".ModalPortal","#mb-toolbar",".comment-panel-container",".emoji-toast",".project-member-list",".comment-anchor",".comment-rect-anchor",".single-resizer"].some(ae=>Ce.closest(ae))}function N(O,Ce){if(!Ce)return;const{x:ae,y:q,w:K,h:xe}=rootSdk.sdkStore.getHotItem(Ce).hotAttr,te={x:ae-K/2,y:q-xe/2};return g.Z.subtract(O,te)}function z(O,Ce,ae){if(!Ce)return;const q=document.querySelector('div[data-cid="'+Ce+'"]').getBoundingClientRect(),K=Vec2.xy(q.x,q.y);return Viewport.applyInverse(ae,Vec2.subtract(O,K))}function S(O,Ce,ae,q,K){const{scale:xe}=ae,te=document.querySelector('#preview-content-container div[data-cid="'+Ce+'"]').getBoundingClientRect();return{x:(O.x-te.x)/xe-q,y:(O.y-te.y)/xe-K}}function _(O,Ce,ae){const{x:q,y:K,w:xe,h:te}=rootSdk.sdkStore.getHotItem(Ce).hotAttr,H={x:q-xe/2,y:K-te/2};return g.Z.add(H,l.L.applyInverse(ae,O))}const y=(O,Ce)=>{if(!Ce)return!1;const{user:ae}=window.MB,q=[O,...O.comments];let K="";try{const{blocks:te}=Ce;te&&te.length>0&&(K=te.map(H=>H.text.trim()).join(""))}catch(te){K=""}let xe=!0;if(q.length>0){const te=O.userInfo;if(ae.cid!==te.cid){const H=h(te),be=("\u56DE\u590D@"+((H==null?void 0:H.name)||"\u533F\u540D")+": ").trim();K&&K===be&&(xe=!1)}else!K.trim()&&(xe=!1)}else!K.trim()&&(xe=!1);return xe},a=O=>{const Ce=(0,m.HL)(O);let ae="";const q=[];if(!O)return{content:Ce,replyUserCid:ae,userCids:q};const K=(0,C.Ew)(O),xe=Object.keys(K);return xe.length?(xe.map(te=>K[te].url).forEach(te=>{te.includes("replyUserCid:")&&(ae=te.split("replyUserCid:")[1]),te.includes("userCid:")&&q.push(te.split("userCid:")[1])}),{content:Ce,replyUserCid:ae,userCids:q}):{content:Ce,userCids:q}},$=O=>({key:O,sub:[],sup:"C@main",hotAttr:{type:"cCmtPack",refKey:O}}),ce=(O,Ce,ae)=>{let{x:q,y:K,w:xe,h:te,z:H,userInfo:re,message:be,canvasCid:Le,canvasVec2:Ve,threadType:Ne}=ae;return{key:Ce,sub:[],sup:O,hotAttr:{type:"cCmtThread",threadType:Ne,isCompleted:!1,mtime:null,canvasCid:Le,canvasVec2:Ve,message:be,x:q,y:K,w:xe,h:te,z:H,userInfo:re,userId:re.id,ctime:rootSdk.fssCmt.getClockStore().getMtime()}}},de=(O,Ce)=>{let{userInfo:ae,message:q}=Ce;return{key:(0,o.xc)(),sub:[],sup:O,hotAttr:{type:"cCmtContent",ctime:rootSdk.fssCmt.getClockStore().getMtime(),mtime:null,userInfo:ae,userId:ae.id,message:q}}},fe=O=>({...O.hotAttr,cid:O.key,screenCid:O.sup,comments:[],rect:{x:O.hotAttr.x,y:O.hotAttr.y,w:O.hotAttr.w,h:O.hotAttr.h,rotate:O.hotAttr.rotate||0},vec2:O.hotAttr.threadType==="point"?{x:O.hotAttr.x,y:O.hotAttr.y}:null,status:O.hotAttr.isCompleted?"checked":"created"}),se=O=>({...O.hotAttr,cid:O.key});function J(O,Ce){let ae=O.offsetLeft,q=O.offsetTop;const K=O.offsetWidth,xe=O.offsetHeight;let te=O.offsetParent;for(;te&&te!==Ce;)ae+=te.offsetLeft,q+=te.offsetTop,te=te.offsetParent;return{top:q,left:ae,width:K,height:xe}}function ve(O,Ce){const ae=Math.atan2(O.y-Ce.y,Ce.x-O.x),q=(0,T.av)(ae,"radian"),K=g.Z.distance(Ce,O),xe={x:O.x+K,y:O.y},te=g.Z.rotate(O,-q,xe);return[O,te]}function D(O,Ce,ae,q){return ae&&q?[O,Ce]:q?ve(Ce,O).reverse():ve(O,Ce)}const R=(O,Ce)=>{var ae;let q=(0,A.Tg)(O,Ce)||"";return(ae=sdkStore.getHotItem(q))!=null&&ae.hotAttr.asOverlay&&(q=""),q},V=(O,Ce)=>{var ae;let q=(0,A.TW)(O,Ce)||"";return(ae=sdkStore.getHotItem(q))!=null&&ae.hotAttr.asOverlay&&(q=""),q}},35372:(Et,ke,e)=>{"use strict";e.d(ke,{c:()=>T});var o=e(78647),m=e(48141),g=e(51691),l=e(93443),C=e(83012);const T=A=>({[o.c.INTER_SWITCHABLE_VIEW_MODE_RELOCATED_INSPECT_TOGGLE]:{selector:"."+o.c.INTER_SWITCHABLE_VIEW_MODE_RELOCATED_INSPECT_TOGGLE,relativePos:"top",content:A.CommonGuides.inspect_feature_locate_bottom},[o.c.INTER_SWITCHABLE_VIEW_MODE_OV_TOGGLE_PANE_BTN]:{selector:"."+o.c.INTER_SWITCHABLE_VIEW_MODE_OV_TOGGLE_PANE_BTN+".left",relativePos:"right",content:A.CommonGuides.toggle_left_panel},[o.c.INTER_SWITCHABLE_VIEW_MODE_PV_TOGGLE_PANE_BTN]:{selector:"."+o.c.INTER_SWITCHABLE_VIEW_MODE_PV_TOGGLE_PANE_BTN+".left",relativePos:"right",content:A.CommonGuides.toggle_left_panel},[o.c.GUIDE_2309_CLICK_SHARE]:{selector:"."+o.c.GUIDE_2309_CLICK_SHARE,relativePos:"bottom",content:"\u70B9\u51FB\u5206\u4EAB\u6309\u94AE\u5373\u53EF\u5FEB\u901F\u5C06\u539F\u578B\u5206\u4EAB\u7ED9\u4ED6\u4EBA\uFF0C\u5FEB\u6765\u8BD5\u8BD5\u5427\uFF01",offset:{x:-82,y:-8},arrowPosition:{left:196},howToShow:k=>{let{isInDesign:p=!0}=k;(0,m.CK)()&&setTimeout(()=>{var r;const x=(r=MB.getRootProject())==null?void 0:r.scene_tag;if((0,g.IP)(x),!(0,m.CK)())return!1;MB.commonGuideHelper.tryToShowGuide(o.c.GUIDE_2309_CLICK_SHARE),MB.commonGuideHelper.markGuideAsRead(o.c.GUIDE_2309_CLICK_SHARE)},p?l.b:0)}},[o.c.GUIDE_2407_PREVIEW]:{selector:"."+o.c.GUIDE_2407_PREVIEW,relativePos:"bottom",content:"\u70B9\u51FB\u6309\u94AE\u5373\u53EF\u4F53\u9A8C\u771F\u673A\u4EA4\u4E92\u6548\u679C\uFF0C\u5FEB\u6765\u8BD5\u8BD5\u5427\uFF01",offset:{x:-82,y:-3},arrowPosition:{left:196},howToShow:k=>{let{isInDesign:p=!0}=k;(0,m.WM)()&&setTimeout(()=>{var r;const x=(r=MB.getRootProject())==null?void 0:r.scene_tag;if((0,g.t4)(x),!(0,m.WM)())return!1;MB.commonGuideHelper.tryToShowGuide(o.c.GUIDE_2407_PREVIEW),MB.commonGuideHelper.markGuideAsRead(o.c.GUIDE_2407_PREVIEW)},p?l.b:0)}},[o.c.GUIDE_DRAW_IO_NAV]:{selector:"."+o.c.GUIDE_DRAW_IO_NAV,relativePos:"right",content:'\n <p class="title">\u65B0\u589E-\u7ED8\u56FE\u5DE5\u5177</p>\n <p class="desc">\u5168\u65B0\u7ED8\u56FE\u5DE5\u5177\u4E0A\u7EBF\uFF0C\u66F4\u591A\u521B\u610F\u5229\u5668\u7B49\u4F60\u6765\u63A2\u7D22\uFF01</p>',offset:{x:4,y:-3},arrowPosition:{left:-2},hasKnow:!0,howToShow:k=>{let{currentUser:p}=k;if(MB.commonGuideHelper.checkGuideHasShown(o.c.GUIDE_DRAW_IO_NAV))return;const r=(0,C.yX)();r!=null&&r.isCompleted&&(0,m.Zm)(p)&&MB.commonGuideHelper.tryToShowGuide(o.c.GUIDE_DRAW_IO_NAV)}},[o.c.GUIDE_DRAW_IO_NAV_RIGHT_LAYOUT]:{selector:"."+o.c.GUIDE_DRAW_IO_NAV_RIGHT_LAYOUT,relativePos:"right",content:'\n <p class="title">\u65B0\u589E-\u7ED8\u56FE\u5DE5\u5177</p>\n <p class="desc">\u5168\u65B0\u7ED8\u56FE\u5DE5\u5177\u4E0A\u7EBF\uFF0C\u66F4\u591A\u521B\u610F\u5229\u5668\u7B49\u4F60\u6765\u63A2\u7D22\uFF01</p>',offset:{x:-348,y:0},arrowPosition:{left:290},hasKnow:!0,howToShow:k=>{let{currentUser:p}=k;if(MB.commonGuideHelper.checkGuideHasShown(o.c.GUIDE_DRAW_IO_NAV))return;const r=(0,C.yX)();r!=null&&r.isCompleted&&(0,m.Zm)(p)&&MB.commonGuideHelper.tryToShowGuide(o.c.GUIDE_DRAW_IO_NAV_RIGHT_LAYOUT)}}})},48141:(Et,ke,e)=>{"use strict";e.d(ke,{CK:()=>k,WM:()=>p,Zm:()=>x,iX:()=>r});var o=e(76713),m=e.n(o),g=e(78647),l=e(14517),C=e(40778);const T="2024-02-27",A=()=>{var f;return dayjs((f=MB.user)==null?void 0:f.created_at).isBefore(dayjs(T))},k=()=>{var f;const u=(f=MB)==null?void 0:f.user;if(!!!(u!=null&&u.id)||ENV.IS_WONDER_SHARE)return!1;const h=(0,C.OB)(),E=24*60*60*1e3,N=new Date().getTime(),z=new Date(u.created_at).getTime();return N-7*E>z||MB.commonGuideHelper.checkGuideHasShown(g.c.GUIDE_NOVICE_2309_TASK_5)||MB.commonGuideHelper.checkGuideHasShown(g.c.GUIDE_NOVICE_2309_TASK_5_DEVICE_MODE)||MB.commonGuideHelper.checkGuideHasShown(g.c.GUIDE_2309_CLICK_SHARE)||h?!1:!MB.commonGuideHelper.checkGuideHasShown(g.c.GUIDE_NOVICE_2309_START)},p=()=>{var f;const u=(f=MB)==null?void 0:f.user;if(!!!(u!=null&&u.id)||ENV.IS_WONDER_SHARE)return!1;const h=(0,C.OB)(),E=24*60*60*1e3,N=new Date().getTime(),z=new Date(u.created_at).getTime();return!(N-7*E>z||MB.commonGuideHelper.checkGuideHasShown(g.c.GUIDE_NOVICE_2309_TASK_4)||MB.commonGuideHelper.checkGuideHasShown(g.c.GUIDE_2407_PREVIEW_CLOSE)||MB.commonGuideHelper.checkGuideHasShown(g.c.GUIDE_2407_PREVIEW)||h&&!MB.commonGuideHelper.checkGuideHasShown(g.c.GUIDE_NOVICE_2309)&&!(0,l.p7)())},r=()=>{const f=(0,l.Po)();if(f!=null&&f.isAllGuidesCompleted){if(MB.commonGuideHelper.checkGuideHasShown(g.c.GUIDE_NOVICE_2408_CREATE_PAGE)||MB.commonGuideHelper.checkGuideHasShown(g.c.GUIDE_NOVICE_2309_TASK_1))return;MB.commonGuideHelper.tryToShowGuide(g.c.GUIDE_NOVICE_2408_CREATE_PAGE),MB.action("entry:move:screen:right")}},x=f=>m()(f.created_at).isBefore(m()("2025-02-20"))},82821:(Et,ke,e)=>{"use strict";e.d(ke,{K:()=>A});var o=e(78647),m=e(98195),g=e(83012),l=e(63555),C=e(51691),T=e(85984);const A=function(k,p){return p===void 0&&(p=!1),{[o.c.GUIDE_ALL_REPLACE_PAGE]:{selector:o.c.GUIDE_ALL_REPLACE_PAGE,guide:{position:{top:20,left:-308},title:k.CommonGuides.v8guide35,content:"\n <p>"+k.CommonGuides.v8guide36+"</p>\n <p>"+k.CommonGuides.v8guide37+"</p>\n "+((0,g.Ge)()?"<span />":"<p>"+k.CommonGuides.v8guide38+"</p>")+"\n "},arrow:{position:{top:56,right:-19},direction:"right",color:"#6874FF"},icon:{name:"art_board/guide/"+o.c.GUIDE_ALL_REPLACE_PAGE,width:28,height:28},howToShow:r=>{const x=f=>f.type===l.x.Canvas&&!f.asOverlay;(0,T.YD)({selectedCids:r,guideType:o.c.GUIDE_ALL_REPLACE_PAGE,onCondition:x})}},[o.c.GUIDE_BASKET_QUICK_COPY_CANVAS]:{selector:o.c.GUIDE_BASKET_QUICK_COPY_CANVAS,guide:{position:{top:40,left:-140},title:k.CommonGuides.v8guide4,content:k.CommonGuides.v8guide5},arrow:{position:{top:-25,right:136},direction:"top",color:"#3E7CFE"},icon:{name:"art_board/guide/"+o.c.GUIDE_BASKET_QUICK_COPY_CANVAS,width:12,height:14}},[o.c.GUIDE_PAGE_CREAT_LINK]:{selector:o.c.GUIDE_PAGE_CREAT_LINK,guide:{position:{top:230,left:-305},title:k.CommonGuides.v8guide10,content:k.CommonGuides.v8guide11},arrow:{position:{top:33,right:-18},direction:"right",color:"#6874FF"},icon:{name:"art_board/guide/"+o.c.GUIDE_PAGE_CREAT_LINK,width:12,height:12}},[o.c.GUIDE_PAGE_CREAT_LINK2]:{selector:o.c.GUIDE_PAGE_CREAT_LINK2,guide:{position:{top:190,left:-298},title:k.CommonGuides.v8guide10,content:k.CommonGuides.v8guide11},arrow:{position:{top:33,right:-18},direction:"right",color:"#6874FF"},icon:{name:"art_board/guide/"+o.c.GUIDE_PAGE_CREAT_LINK,width:12,height:12}},[o.c.GUIDE_TO_PREVIEW_IN_SHARE]:{selector:o.c.GUIDE_TO_PREVIEW_IN_SHARE,guide:{position:{top:114,left:135},title:k.CommonGuides.v8guide6,content:k.CommonGuides.v8guide7},arrow:{position:{top:-23,right:76},direction:"top",color:"#3E7CFE"},icon:{name:"art_board/guide/"+o.c.GUIDE_TO_PREVIEW_IN_SHARE,width:12,height:14}},[o.c.GUIDE_MORE_PAGE]:{selector:o.c.GUIDE_MORE_PAGE,guide:{position:{top:-7,left:62},title:k.CommonGuides.v8guide12,content:k.CommonGuides.v8guide13},arrow:{position:{top:10,left:-19},direction:"left",color:"#1B84FD"},icon:{name:"art_board/guide/"+o.c.GUIDE_MORE_PAGE,width:12,height:14},howToShow:r=>{let{currentPopupPanel:x,sup:f}=r;const u=sdkStore.getSubHotItemList(f).filter(h=>h.hotAttr.type==="rResCanvas"),b=sdkStore.getHotItem("B@main");if(u.length>=4&&b.sub.length===1&&x!==m.lS.Directory){const h=(0,g.Ge)();!MB.commonGuideHelper.checkGuideHasShown(o.c.GUIDE_MORE_PAGE)&&h&&MB.commonGuideHelper.tryToShowGuide(o.c.GUIDE_MORE_PAGE)}}},[o.c.GUIDE_PREVIEW_VIEW_BTN]:{selector:o.c.GUIDE_PREVIEW_VIEW_BTN,guide:{position:{top:53,left:-211},title:k.CommonGuides.v8guide8,content:k.CommonGuides.v8guide9},arrow:{position:{top:-24,right:56},direction:"top",color:"#3E7CFE"},icon:{name:"art_board/guide/"+o.c.GUIDE_PREVIEW_VIEW_BTN,width:12,height:12},callback:()=>{MB.webpackInterface.store.dispatch({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!0,isSetTimeout:!0}})}},[o.c.GUIDE_BASKET_MUBAN_USE]:{selector:o.c.GUIDE_BASKET_MUBAN_USE,guide:{position:{top:-71,left:-308},title:k.CommonGuides.v8guide39,content:"\n <p>"+k.CommonGuides.v8guide40+"</p>\n <p>"+k.CommonGuides.v8guide41+"</p>\n <br />\n <p>"+k.CommonGuides.v8guide42+"</p>\n "},arrow:{position:{top:93,right:-19},direction:"right",color:"#6874FF"},icon:{name:"art_board/guide/"+o.c.GUIDE_BASKET_MUBAN_USE,width:28,height:28},moreLink:k.link.link_article_master_intro,howToShow:r=>{const x=f=>f.type===l.x.WBasket&&f.basket==="bMuban";(0,T.YD)({selectedCids:r,guideType:o.c.GUIDE_BASKET_MUBAN_USE,onCondition:x})}},[o.c.GUIDE_SELECT_STICKY]:{selector:o.c.GUIDE_SELECT_STICKY,guide:{position:{top:0,left:18},title:k.CommonGuides.v8guide43,content:"\n <p>"+k.CommonGuides.v8guide44+"</p>\n <p>"+k.CommonGuides.v8guide45+"</p>\n <br/>\n "},arrow:{position:{top:14,right:295},direction:"left",color:"#1b83fc"},icon:{name:"art_board/guide/"+o.c.GUIDE_SELECT_STICKY,width:28,height:28},howToShow:r=>{const x=f=>f.type===l.x.WSticky;(0,T.YD)({selectedCids:r,guideType:o.c.GUIDE_SELECT_STICKY,onCondition:x})}},[o.c.GUIDE_PUBLISH_COMBO_TO_MKT]:{selector:o.c.GUIDE_PUBLISH_COMBO_TO_MKT,guide:{position:{top:0,right:-313},title:k.CommonGuides.publish_combo_title,content:k.CommonGuides.publish_combo_desc},icon:{name:"art_board/guide/"+o.c.GUIDE_PUBLISH_COMBO_TO_MKT,width:20,height:20},callback:()=>{MB.action("widget-panel:update:showComboUploadGuide",{showComboUploadGuide:!1})},howToShow:r=>{var x,f;let{sceneTag:u,hasComboFolder:b}=r;ENV.IS_WONDER_SHARE||b&&(!((x=MB)!=null&&(x=x.user)!=null&&x.id)||(f=MB)!=null&&(f=f.commonGuideHelper)!=null&&f.checkGuideHasShown(o.c.GUIDE_PUBLISH_COMBO_TO_MKT)||(MB.action("widget-panel:update:showComboUploadGuide",{showComboUploadGuide:!0}),MB.commonGuideHelper.tryToShowGuide(o.c.GUIDE_PUBLISH_COMBO_TO_MKT),(0,C.YB)(u)))}},[o.c.GUIDE_COPY_AS_PNG]:{selector:o.c.GUIDE_COPY_AS_PNG,guide:{position:{top:0,left:-313},title:k.CommonGuides.copy_as_png_title,content:k.CommonGuides.copy_as_png_desc},icon:{name:"art_board/guide/"+o.c.GUIDE_COPY_AS_PNG,width:20,height:20},getPositionOffset:(r,x,f,u,b)=>r<b+290+20?{top:0-x+48+30,left:0-r+b+30+313}:{top:u/2-136/2,left:0}}}}},65474:(Et,ke,e)=>{"use strict";e.d(ke,{$D:()=>f,GT:()=>T,K6:()=>A,NW:()=>l,id:()=>r,mO:()=>C,no:()=>u,ss:()=>x,yP:()=>p});var o=e(21676),m=e(78647),g=e(42627);const l=260,C=250,T=o.Ay.div.withConfig({displayName:"styles__StyledGuideStepRect",componentId:"sc-130n2mx-0"})(["position:fixed;z-index:1050;inset:0;width:100vw;height:100vh;pointer-events:none;background-color:transparent;&.grabbing{pointer-events:initial;cursor:grabbing;}.context{position:absolute;pointer-events:initial;width:","px;padding:10px;pointer-events:auto;background-color:#1684FC;border-radius:8px;display:flex;&:not(.grabbing){cursor:default;transition:all 0.2s ease-out;}&:hover{.grab-box{display:flex;}&.grabbing{.grab-box{cursor:grabbing;}}.content .top .close{display:block;}}.grab-box{display:none;position:absolute;top:0px;left:118px;&:hover{cursor:grab;}}.content{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;.top{position:relative;background-color:#ffffff;border-radius:4px;overflow:hidden;width:240px;height:150px;img{width:100%;height:100%;}.close{cursor:pointer;display:none;position:absolute;top:6px;left:202px;width:20px;border-radius:4px;color:#fff;background:rgba(0,0,0,0.2);}.close-btn{position:absolute;right:4px;top:4px;width:20px;height:20px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#ffffff;border-radius:4px;&:hover{background:rgba(0,0,0,0.2);}svg{width:20px;}}}.bottom{flex:1;display:flex;flex-direction:column;margin-top:10px;color:#ffffff;font-size:12px;.desc-guide{flex:1;max-width:240px;min-height:44px;.handler{width:16px;height:16px;border:1px solid #ffffff;border-radius:50%;display:inline-block;margin:0 5px;line-height:16px;text-align:center;}.guide-title{font-size:14px;font-weight:500;line-height:18px;margin-bottom:8px;}.text{font-weight:500;font-size:12px;line-height:18px;margin-bottom:16px;align-items:center;img{vertical-align:text-top;}}}.steps-guide{display:flex;justify-content:space-between;align-items:flex-end;.step-info{margin-bottom:6px;}.action-btn{display:flex;.btn{&.prev{margin-right:20px;}&.next{}&.know{width:70px;height:28px;display:flex;justify-content:center;align-items:center;border-radius:6px;background:#ffffff;color:#1684FC;font-size:12px;line-height:20px;&:hover{background:#F1F8FF}}}}}}}}"],l),A='\n outline: 2px solid #1685FC;\n position: relative;\n\n ::after,\n ::before {\n content: "";\n position: absolute;\n background: transparent;\n pointer-events: none;\n\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n width: 100%;\n height: 100%;\n border-radius: 4px;\n outline: 2px solid #1685FC;\n }\n\n ::after {\n z-index: 0;\n -webkit-animation: ripple-animate 2s linear infinite;\n animation: ripple-animate 2s linear infinite;\n }\n\n ::before {\n z-index: 1;\n -webkit-animation: ripple-animate 2s linear 1s infinite;\n animation: ripple-animate 2s linear 1s infinite;\n }\n\n @keyframes ripple-animate{\n 0% {\n width: 100%;\n height: 100%;\n opacity: 0.5;\n }\n\n 100% {\n width: calc(100% + 10px);\n height: calc(100% + 10px);\n opacity: 0.0;\n }\n }\n',k=(0,o.DU)(['#workspace{#popups-page-panel{.market-template-masonry-list-container.mobile{ul{li:first-child{margin-top:10px;}}li[data-cid="','"]{.img-wrapper{overflow:visible;',';::before,::after{border-radius:6px;}}}}.market-template-masonry-list-container.web{ul{li:first-child{margin-top:10px;}}li[data-cid="','"]{.img-wrapper{overflow:visible;',";::before,::after{border-radius:6px;}}}}}}"],b=>(0,g.NR)(b.sceneTag),A,b=>(0,g.NR)(b.sceneTag),A),p=(0,o.DU)(['#workspace{#popups-builtin-panel{div[data-guide-id="button_solid"]{',"}}}"],A),r=(0,o.DU)(["#workspace{#mb-toolbar{.toolbar-right{.","{width:50px;height:34px;border-radius:8px;transition:none;",";::before,::after{border-radius:8px;}}}}}"],m.c.GUIDE_NOVICE_2309_STEP_4,A),x=(0,o.DU)(["#workspace{#mb-toolbar{.","{",";border-radius:8px;::before,::after{border-radius:8px;}}}}"],m.c.GUIDE_NOVICE_2309_STEP_5,A),f=(0,o.DU)(["#workspace{#mb-toolbar{.","{",";}}}"],m.c.GUIDE_DS_SCREEN_STEP_1,A),u=(0,o.DU)(['#workspace{#popups-builtin-panel{.widget-panel-container{div[data-cid="','"]{ul{padding:6px 12px 0 12px;li{border-radius:4px;padding-bottom:4px;}li[data-cid="','"]{',"}}}}}}"],b=>g.g7[b.currentStep-2],b=>g.CJ[b.currentStep-2],A)},42627:(Et,ke,e)=>{"use strict";e.d(ke,{CJ:()=>y,Dx:()=>f,H:()=>l,NR:()=>S,VC:()=>a,bu:()=>g,g7:()=>_,jI:()=>z,xR:()=>N});var o=e(78647);const m=+(ENV.IS_WONDER_SHARE===!0),g=[o.c.GUIDE_NOVICE_2309_STEP_2,o.c.GUIDE_NOVICE_2309_STEP_3,o.c.GUIDE_NOVICE_2309_STEP_4,o.c.GUIDE_NOVICE_2309_STEP_5],l=[o.c.GUIDE_NOVICE_2309_STEP_1,o.c.GUIDE_NOVICE_2309_STEP_2,o.c.GUIDE_NOVICE_2309_STEP_3,o.c.GUIDE_NOVICE_2309_STEP_4,o.c.GUIDE_NOVICE_2309_STEP_5],C={[o.c.GUIDE_NOVICE_2309_STEP_2]:["/mb-proto2/images/guide/noviceGuides2309/"+o.c.GUIDE_NOVICE_2309_TASK_2+".gif","https://cdn-release.modao.cc/mb_proto/guide/GUIDE_NOVICE_2309_TASK_2_ws.gif"],[o.c.GUIDE_NOVICE_2309_STEP_3]:["/mb-proto2/images/guide/noviceGuides2309/"+o.c.GUIDE_NOVICE_2309_TASK_3+".gif","https://cdn-release.modao.cc/mb_proto/guide/GUIDE_NOVICE_2309_TASK_3_ws.gif"],[o.c.GUIDE_NOVICE_2309_STEP_4]:["/mb-proto2/images/guide/noviceGuides2309/"+o.c.GUIDE_NOVICE_2309_TASK_4+".gif","https://cdn-release.modao.cc/mb_proto/guide/GUIDE_NOVICE_2309_TASK_4_ws.gif"],[o.c.GUIDE_NOVICE_2309_STEP_5]:["/mb-proto2/images/guide/DSGuides2403/"+o.c.GUIDE_NOVICE_2309_STEP_5+".gif","https://cdn-release.modao.cc/mb_proto/guide/GUIDE_NOVICE_2309_TASK_5_ws.gif"],[o.c.GUIDE_NOVICE_2309_TIP_1]:["/mb-proto2/images/guide/noviceGuides2309/"+o.c.GUIDE_NOVICE_2309_TIP_1+".gif","https://cdn-release.modao.cc/mb_proto/guide/GUIDE_NOVICE_2309_TIP_1_ws.gif"],[o.c.GUIDE_NOVICE_2408_CREATE_PAGE]:["/mb-proto2/images/guide/noviceGuides2309/"+o.c.GUIDE_NOVICE_2309_TASK_1+".gif","https://cdn-release.modao.cc/mb_proto/guide/GUIDE_NOVICE_2309_STEP_1_ws.gif"]},T={[o.c.GUIDE_NOVICE_2309_STEP_2]:["/mb-proto2/images/guide/webGuides2403/"+o.c.GUIDE_NOVICE_2309_STEP_2+".gif","/mb-proto2/images/guide/webGuides2403/"+o.c.GUIDE_NOVICE_2309_STEP_2+".gif"],[o.c.GUIDE_NOVICE_2309_STEP_3]:["/mb-proto2/images/guide/webGuides2403/"+o.c.GUIDE_NOVICE_2309_STEP_3+".gif","/mb-proto2/images/guide/webGuides2403/"+o.c.GUIDE_NOVICE_2309_STEP_3+".gif"],[o.c.GUIDE_NOVICE_2309_STEP_4]:["/mb-proto2/images/guide/webGuides2403/"+o.c.GUIDE_NOVICE_2309_STEP_4+".gif","/mb-proto2/images/guide/webGuides2403/"+o.c.GUIDE_NOVICE_2309_STEP_4+".gif"],[o.c.GUIDE_NOVICE_2309_STEP_5]:["/mb-proto2/images/guide/DSGuides2403/"+o.c.GUIDE_NOVICE_2309_STEP_5+".gif","/mb-proto2/images/guide/DSGuides2403/"+o.c.GUIDE_NOVICE_2309_STEP_5+".gif"],[o.c.GUIDE_NOVICE_2309_TIP_1]:["/mb-proto2/images/guide/webGuides2403/"+o.c.GUIDE_NOVICE_2309_TIP_1+".gif","/mb-proto2/images/guide/webGuides2403/"+o.c.GUIDE_NOVICE_2309_TIP_1+".gif"],[o.c.GUIDE_NOVICE_2408_CREATE_PAGE]:["/mb-proto2/images/guide/webGuides2403/"+o.c.GUIDE_NOVICE_2309_STEP_1+".gif","/mb-proto2/images/guide/webGuides2403/"+o.c.GUIDE_NOVICE_2309_STEP_1+".gif"]},A={[o.c.GUIDE_NOVICE_2309_STEP_1]:["/mb-proto2/images/guide/DSGuides2403/"+o.c.GUIDE_NOVICE_2309_STEP_1+".gif","/mb-proto2/images/guide/DSGuides2403/"+o.c.GUIDE_NOVICE_2309_STEP_1+".gif"],[o.c.GUIDE_NOVICE_2309_STEP_2]:["/mb-proto2/images/guide/DSGuides2403/"+o.c.GUIDE_NOVICE_2309_STEP_2+".gif","/mb-proto2/images/guide/DSGuides2403/"+o.c.GUIDE_NOVICE_2309_STEP_2+".gif"],[o.c.GUIDE_NOVICE_2309_STEP_3]:["/mb-proto2/images/guide/DSGuides2403/"+o.c.GUIDE_NOVICE_2309_STEP_3+".gif","/mb-proto2/images/guide/DSGuides2403/"+o.c.GUIDE_NOVICE_2309_STEP_3+".gif"],[o.c.GUIDE_NOVICE_2309_STEP_4]:["/mb-proto2/images/guide/DSGuides2403/"+o.c.GUIDE_NOVICE_2309_STEP_4+".gif","/mb-proto2/images/guide/DSGuides2403/"+o.c.GUIDE_NOVICE_2309_STEP_4+".gif"],[o.c.GUIDE_NOVICE_2309_STEP_5]:["/mb-proto2/images/guide/DSGuides2403/"+o.c.GUIDE_NOVICE_2309_STEP_5+".gif","/mb-proto2/images/guide/DSGuides2403/"+o.c.GUIDE_NOVICE_2309_STEP_5+".gif"],[o.c.GUIDE_NOVICE_2309_TIP_1]:["/mb-proto2/images/guide/webGuides2403/"+o.c.GUIDE_NOVICE_2309_TIP_1+".gif","/mb-proto2/images/guide/webGuides2403/"+o.c.GUIDE_NOVICE_2309_TIP_1+".gif"]},k=$=>({[o.c.GUIDE_NOVICE_2309_STEP_2]:{selector:o.c.GUIDE_NOVICE_2309,guide:{offset:{y:398,x:220},content:$.CommonGuides.v8guide_novice_step2},imgUrl:C[o.c.GUIDE_NOVICE_2309_STEP_2][m]},[o.c.GUIDE_NOVICE_2309_STEP_3]:{selector:o.c.GUIDE_NOVICE_2309,guide:{offset:{y:66,x:50},content:$.CommonGuides.v8guide_novice_step3},imgUrl:C[o.c.GUIDE_NOVICE_2309_STEP_3][m]},[o.c.GUIDE_NOVICE_2309_STEP_4]:{selector:o.c.GUIDE_NOVICE_2309_STEP_4,guide:{offset:{y:40,x:-104},content:$.CommonGuides.v8guide_novice_step4},imgUrl:C[o.c.GUIDE_NOVICE_2309_STEP_4][m]},[o.c.GUIDE_NOVICE_2309_STEP_5]:{selector:o.c.GUIDE_NOVICE_2309_STEP_5,guide:{offset:{y:43,x:-91},content:$.CommonGuides.v8guide_novice_step5},imgUrl:C[o.c.GUIDE_NOVICE_2309_STEP_5][m]},[o.c.GUIDE_NOVICE_2309_TIP_1]:{selector:o.c.GUIDE_NOVICE_2309_TIP_1,guide:{offset:{y:68,x:260},content:$.CommonGuides.v8guide_novice_tip1},imgUrl:C[o.c.GUIDE_NOVICE_2309_TIP_1][m]},[o.c.GUIDE_NOVICE_2408_CREATE_PAGE]:{selector:o.c.GUIDE_NOVICE_2408_CREATE_PAGE,guide:{offset:{y:48,x:0},content:$.CommonGuides.v8guide_novice_step1},imgUrl:C[o.c.GUIDE_NOVICE_2408_CREATE_PAGE][m]}}),p=$=>({[o.c.GUIDE_NOVICE_2309_STEP_2]:{selector:o.c.GUIDE_NOVICE_2309,guide:{offset:{y:398,x:220},content:$.CommonGuides.v8guide_novice_step2},imgUrl:T[o.c.GUIDE_NOVICE_2309_STEP_2][m]},[o.c.GUIDE_NOVICE_2309_STEP_3]:{selector:o.c.GUIDE_NOVICE_2309,guide:{offset:{y:66,x:50},content:$.CommonGuides.v8guide_novice_step3},imgUrl:T[o.c.GUIDE_NOVICE_2309_STEP_3][m]},[o.c.GUIDE_NOVICE_2309_STEP_4]:{selector:o.c.GUIDE_NOVICE_2309_STEP_4,guide:{offset:{y:40,x:-104},content:$.CommonGuides.v8guide_novice_step4},imgUrl:T[o.c.GUIDE_NOVICE_2309_STEP_4][m]},[o.c.GUIDE_NOVICE_2309_STEP_5]:{selector:o.c.GUIDE_NOVICE_2309_STEP_5,guide:{offset:{y:43,x:-91},content:$.CommonGuides.v8guide_novice_step5},imgUrl:T[o.c.GUIDE_NOVICE_2309_STEP_5][m]},[o.c.GUIDE_NOVICE_2309_TIP_1]:{selector:o.c.GUIDE_NOVICE_2309_TIP_1,guide:{offset:{y:68,x:260},content:$.CommonGuides.v8guide_novice_tip1},imgUrl:T[o.c.GUIDE_NOVICE_2309_TIP_1][m]},[o.c.GUIDE_NOVICE_2408_CREATE_PAGE]:{selector:o.c.GUIDE_NOVICE_2408_CREATE_PAGE,guide:{offset:{y:48,x:0},content:$.CommonGuides.v8guide_novice_step1},imgUrl:T[o.c.GUIDE_NOVICE_2408_CREATE_PAGE][m]}}),r=$=>({[o.c.GUIDE_NOVICE_2309_STEP_1]:{selector:o.c.GUIDE_NOVICE_2408_CREATE_PAGE,guide:{offset:{y:48,x:0},content:$.CommonGuides.v8guide_novice_step1},imgUrl:A[o.c.GUIDE_NOVICE_2309_STEP_1][m]},[o.c.GUIDE_NOVICE_2309_STEP_2]:{selector:o.c.GUIDE_NOVICE_2309,guide:{offset:{y:254,x:178},content:$.CommonGuides.v8guide_novice_step2_DS},imgUrl:A[o.c.GUIDE_NOVICE_2309_STEP_2][m]},[o.c.GUIDE_NOVICE_2309_STEP_3]:{selector:o.c.GUIDE_NOVICE_2309,guide:{offset:{y:254,x:178},content:$.CommonGuides.v8guide_novice_step3_DS},imgUrl:A[o.c.GUIDE_NOVICE_2309_STEP_3][m]},[o.c.GUIDE_NOVICE_2309_STEP_4]:{selector:o.c.GUIDE_NOVICE_2309_STEP_4,guide:{offset:{y:40,x:-104},content:$.CommonGuides.v8guide_novice_step4},imgUrl:A[o.c.GUIDE_NOVICE_2309_STEP_4][m]},[o.c.GUIDE_NOVICE_2309_STEP_5]:{selector:o.c.GUIDE_NOVICE_2309_STEP_5,guide:{offset:{y:43,x:-91},content:$.CommonGuides.v8guide_novice_step5},imgUrl:A[o.c.GUIDE_NOVICE_2309_STEP_5][m]},[o.c.GUIDE_NOVICE_2309_TIP_1]:{selector:o.c.GUIDE_NOVICE_2309_TIP_1,guide:{offset:{y:53,x:150},content:$.CommonGuides.v8guide_novice_tip1},imgUrl:A[o.c.GUIDE_NOVICE_2309_TIP_1][m]}}),x=new Map([["MP",k],["PC",p],["DS",r]]),f=($,ce)=>{const de=a($);return x.has(de)?x.get(de)(ce):x.get("MP")(ce)},u=new Map([["MP",["mtlnslwr5rypkaqh","mtlzqys30zwyejs"]],["PC",["mtlnslwr5rypkaqh","mtlzwbocy0zzxbvn"]]]),b=new Map([["MP",["rcTnYFbNTspk9Oq1IW6BNo",["rcTnYFbNULCdungtfnN8ST","rcTnYHQXULCdunhG5Sz8GJ"]]],["PC",["rcTnYFbNTspk9Oq1IW6BNo",["rcU55LSYU55wSd6rxYCo1U","rcU4swuuU4ufqiHYqNOzk8"]]]]),h=new Map([["MP",["rcTnYHQXTspk9OpcBxaoMz","rcTnYHQXULCdunhG5Sz8GJ"]],["PC",["rcTnYHQXTspk9OpcBxaoMz","rcU4swuuU4ufqiHYqNOzk8"]]]),E=($,ce)=>{var de;let fe=((de=$.split("-"))==null?void 0:de[0])||"MP";ce.has(fe)||(fe="MP");const se=ce.get(fe);return Array.isArray(se)?se[+!ENV.IS_WONDER_SHARE]:se},N=$=>E($,u),z=$=>E($,b),S=$=>E($,h),_=["mtltnojakmadr9kr","mtltnolur84xkk9k"],y=["rbpU6lViN5GdzBr9G","rbpU6lWXjFqf4SBnp"],a=$=>$?$.split("-")[0]:""},14517:(Et,ke,e)=>{"use strict";e.d(ke,{EG:()=>r,Gq:()=>p,Po:()=>k,jN:()=>T,p7:()=>C,rw:()=>f,wl:()=>x});var o=e(78647),m=e(83012),g=e(40778);const l=[o.c.GUIDE_NEW_CREATE_PAGE,o.c.GUIDE_NEW_SHOW_WIDGET_LIBRARY,o.c.GUIDE_NEW_FLOW_AND_MIND,o.c.GUIDE_NEW_CREATE_LINK,o.c.GUIDE_NEW_USE_PREVIEW,o.c.GUIDE_NEW_USE_SHARE,o.c.GUIDE_NEW_USE_COMMENT],C=function(u){var b;u===void 0&&(u=null);const h=(0,m.cz)(),E=u||((b=MB)==null?void 0:b.getRootProject()),{source_upper_cid:N,parent_cid:z,scene_tag:S}=E||{},_=S==null?void 0:S.includes("axure_import"),y=["MP","PC","DS","axure_import"],a=S?S.split("-")[0]:"",ce=!!ENV.IS_WONDER_SHARE||S&&y.includes(a),de=(0,g.OB)();return(N||z||_)&&de||E&&!ce&&!h},T=function(u){var b,h,E;if(u===void 0&&(u=null),!(0,m.Ge)())return{};if(!((b=MB)!=null&&(b=b.commonGuideHelper)!=null&&(b=b.getState())!=null&&b.commonGuidesHasShown))return{};const z=((h=MB)==null||(h=h.commonGuideHelper)==null||(h=h.getState())==null?void 0:h.commonGuidesHasShown)||[],S=[o.c.GUIDE_NOVICE_2309,...l].find(_=>_&&z.includes(_));return S?(S!==o.c.GUIDE_NOVICE_2309&&MB.commonGuideHelper.markGuideAsRead(o.c.GUIDE_NOVICE_2309),{isCompleted:!0}):z!=null&&z.includes(o.c.GUIDE_NOVICE_2309_START)?{isInProgress:!0}:typeof((E=MB)==null?void 0:E.getRootProject)!="function"?{}:C(u)?(setTimeout(()=>MB.commonGuideHelper.markGuideAsRead(o.c.GUIDE_NOVICE_2309),2e3),{isCompleted:!0,isShowTaskList:!0}):{isToShow:!0}},A=[o.c.GUIDE_NOVICE_2309_START,o.c.GUIDE_NOVICE_2309_STEP_2,o.c.GUIDE_NOVICE_2309_TASK_2,o.c.GUIDE_NOVICE_2309_STEP_3,o.c.GUIDE_NOVICE_2309_TASK_3,o.c.GUIDE_NOVICE_2309_STEP_4,o.c.GUIDE_NOVICE_2309_TASK_4,o.c.GUIDE_NOVICE_2309_STEP_5,o.c.GUIDE_AWARDED,o.c.GUIDE_NOVICE_2309_TASK_5,o.c.GUIDE_NOVICE_2309],k=()=>{var u;const b=((u=MB)==null||(u=u.commonGuideHelper)==null||(u=u.getState())==null?void 0:u.commonGuidesHasShown)||[];return A.every(h=>b.includes(h))?{isAllGuidesCompleted:!0}:{isAllGuidesCompleted:!1}},p=()=>{var u;const b=T();!b||!b.isToShow||(u=MB)==null||(u=u.commonGuideHelper)==null||u.tryToShowGuide(o.c.GUIDE_NOVICE_2309)},r=u=>{var b,h,E;const N=((b=MB)==null||(b=b.commonGuideHelper)==null||(b=b.getState())==null?void 0:b.commonGuidesHasShown)||[],z=((h=MB)==null||(h=h.commonGuideHelper)==null||(h=h.getState())==null?void 0:h.mountGuidesMap)||new Map;N.includes(u)||z.get(o.c.GUIDE_NOVICE_2309)&&((E=MB)==null||(E=E.commonGuideHelper)==null||E.tryToContinueMountGuide(o.c.GUIDE_NOVICE_2309,u))},x=()=>{var u,b;const h=T();!(h!=null&&h.isInProgress)||!(((u=MB)==null||(u=u.commonGuideHelper)==null||(u=u.getState())==null?void 0:u.mountGuidesMap)||new Map).get(o.c.GUIDE_NOVICE_2309)||(b=MB)==null||(b=b.commonGuideHelper)==null||b.tryToCloseMountGuide(o.c.GUIDE_NOVICE_2309)},f=()=>{var u,b,h;const E=T();if(!(E!=null&&E.isToShow||E!=null&&E.isInProgress)||E!=null&&E.isCompleted||!((u=MB)!=null&&(u=u.commonGuideHelper)!=null&&(u=u.getState())!=null&&u.commonGuidesHasShown))return!1;const N=((b=MB)==null||(b=b.commonGuideHelper)==null||(b=b.getState())==null?void 0:b.commonGuidesHasShown)||[];return N.includes(o.c.GUIDE_NOVICE_2309_TIP_1)?!N.includes(o.c.GUIDE_NOVICE_2309):(!N.includes(o.c.GUIDE_NOVICE_2309)&&!N.includes(o.c.GUIDE_NOVICE_2309_START)||(h=MB)==null||(h=h.commonGuideHelper)==null||h.tryToShowGuide(o.c.GUIDE_NOVICE_2309_TIP_1),!0)}},90424:(Et,ke,e)=>{"use strict";e.d(ke,{E:()=>g,K:()=>l});var o=e(78647),m=e(29601);const g=[o.c.GUIDE_OLD_NEW_CREATE_PAGE],l=function(C,T){T===void 0&&(T=!1);const A=!(0,m.k)();return{[o.c.GUIDE_OLD_NEW_CREATE_PAGE]:{selector:o.c.GUIDE_OLD_NEW_CREATE_PAGE,guide:{position:{top:53,left:-28},title:C.CommonGuides.v8guide28,content:C.CommonGuides.v8guide29},arrow:{position:{top:-24,left:36},direction:"top"},imgUrl:"/mb-proto2/images/guide/newGuides/guide_"+o.c.GUIDE_OLD_NEW_CREATE_PAGE+(A?"_en":"")+".png"},[o.c.GUIDE_TOOLBAR_COMMON]:{position:{top:78,left:320}}}}},88711:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>y,_:()=>S});var o=e(51044),m=e(86634),g=e.n(m),l=e(78647);const C=[l.c.GUIDE_NOVICE_V9_2408_STEP_1,l.c.GUIDE_NOVICE_V9_2408_STEP_2,l.c.GUIDE_NOVICE_V9_2408_STEP_3],T=function(a){return a===void 0&&(a=!1),{[l.c.GUIDE_NOVICE_V9_2408_STEP_1]:{selector:"."+l.c.GUIDE_NOVICE_V9_2408_STEP_1,arrowPosition:a?{right:-8}:{left:-8},relativePos:a?"left":"right",title:"\u529F\u80FD\u4F4D\u7F6E\u8C03\u6574-\u6D41\u7A0B\u56FE",content:"\u6D41\u7A0B\u56FE\u79FB\u81F3\u7EC4\u4EF6-\u53D1\u73B0-\u6D41\u7A0B\u4E2D\u3002"},[l.c.GUIDE_NOVICE_V9_2408_STEP_2]:{selector:"."+l.c.GUIDE_NOVICE_V9_2408_STEP_2,arrowPosition:a?{right:-8}:{left:-8},relativePos:a?"left":"right",title:"\u529F\u80FD\u4F4D\u7F6E\u8C03\u6574-\u601D\u7EF4\u5BFC\u56FE",content:"\u601D\u7EF4\u5BFC\u56FE\u79FB\u81F3\u7EC4\u4EF6-\u53D1\u73B0-\u57FA\u7840\u7EC4\u4EF6\u4E2D\u3002"},[l.c.GUIDE_NOVICE_V9_2408_STEP_3]:{selector:"."+l.c.GUIDE_NOVICE_V9_2408_STEP_3,arrowPosition:{top:-5},relativePos:"bottom",title:"\u529F\u80FD\u4F4D\u7F6E\u8C03\u6574-\u58A8\u5200AI",content:"Al \u529F\u80FD\u805A\u5408\u81F3\u9876\u90E8\u5DE5\u5177\u680F\u3002"}}},A=function(a,$){return a===void 0&&(a=!1),$===void 0&&($=!1),{[l.c.GUIDE_NOVICE_V9_2408_STEP_1]:{offset:{x:$?a?300:168:a?310:-12,y:$?-432:0}},[l.c.GUIDE_NOVICE_V9_2408_STEP_2]:{offset:{x:a?310:-12,y:0}},[l.c.GUIDE_NOVICE_V9_2408_STEP_3]:{offset:{x:0,y:-2}}}};var k=e(31347),p=e(78570),r=e(98195),x=e(48411),f=e(94153),u=e(73262),b=e(36521),h=e(57464);const E=10,N=(a,$,ce)=>{const de=document.querySelector(a);if(!de)return null;const{top:fe,left:se,bottom:J,right:ve,width:D,height:R}=de.getBoundingClientRect(),{x:V=0,y:O=0}=ce||{};switch($){case"top":return{bottom:O+window.innerHeight-fe+4,left:V+se+D/2};case"bottom":return{top:O+J+4,left:V+se+D/2};case"left":return{top:O+fe+R/2,left:se-V-6};case"right":return{top:O+fe+R/2,left:ve-V+4}}},z=(a,$,ce)=>{if(!a||!$)return!1;const de=a.top-$.top,fe=a.bottom-$.top;return de>=ce&&fe<=$.height&&a.left>=$.left&&a.right<=$.right},S=(a,$,ce)=>{if(!a||!$)return;const de=a.getBoundingClientRect(),fe=$.getBoundingClientRect(),se=60;if(z(de,fe,se)){ce&&ce();return}let J=a.offsetTop-fe.top-se;const ve=$.scrollHeight-$.clientHeight;J>ve&&(J=ve);let D=!1;const R=()=>{const V=$.scrollTop;Math.abs(V-J)<E&&!D&&($.removeEventListener("scroll",R),ce&&ce(),D=!0)};$.addEventListener("scroll",R),$.scrollTo({top:J,behavior:"smooth"})},_=a=>{var $,ce,de,fe;let{guideType:se,onClose:J,store:ve}=a;const{dispatch:D,getState:R}=ve,V=R(),Ce=(0,p.bP)(V)==="old_right",ae=T(Ce),q=ae[se],{relativePos:K,selector:xe,title:te,content:H,arrowPosition:re}=q,be=Object.keys(ae),Le=be.indexOf(se),Ve=(0,p.MZ)(V),Ne=(0,f.S2)(V),We=(0,u.y)(),{sceName:ze}=We;let ft=!1;if(se===l.c.GUIDE_NOVICE_V9_2408_STEP_1){const pt=document.querySelector(xe),$t=document.querySelector(".widget-panel-container");if(!pt||!$t)return null;pt.getAttribute("data-cid")==="\u6D41\u7A0B"&&(ft=!0)}const i=A(Ce,ft)[se],{offset:gt}=i,Je=N(xe,K,gt),Pt=()=>{var pt,$t;J(),(pt=MB.commonGuideHelper)==null||pt.markGuideAsRead(l.c.GUIDE_NOVICE_V9_2408);const go=($t=MB.commonGuideHelper)==null?void 0:$t.getState().commonGuidesHasShown;D({type:"update:taskList:data",payload:{completeList:go}})},bt=()=>{var pt;if(J(),Le>=be.length)return;const $t=be[Le+1];if(Le===0){D({type:"left-panel:collapse:panel:show"}),D({type:"entry:active:popup:panel",payload:{name:r.lS.Builtin}}),D({type:"widget-panel:update:selectedPLabel:by:name",payload:x.P8});const go=Ne.filter(Co=>Co!=="\u57FA\u7840");D({type:"widget-panel:update:sceCollapsedCategories",payload:{sceCollapsedCategories:go}}),(0,b.a0)(ze+"-collapsed-categories",go,b.qW.Array),setTimeout(()=>{const Co=document.querySelector('[data-guide-id="mind"]'),Tt=document.querySelector(".widget-panel-container");S(Co,Tt,()=>{var mo;return(mo=MB.commonGuideHelper)==null?void 0:mo.tryToShowGuide($t)})},200);return}(pt=MB.commonGuideHelper)==null||pt.tryToShowGuide($t)},qt=()=>{const pt=[k.EH,k.yP,k.cZ];if(Le>=pt.length)return;const $t=pt[Le];return(0,h.jsx)($t,{})};return($=MB.commonGuideHelper)!=null&&$.checkGuideHasShown(l.c.GUIDE_NOVICE_V9_2408)||(ce=MB.commonGuideHelper)!=null&&ce.checkGuideHasShown(l.c.GUIDE_NOVICE_V9_2408+("_STEP_"+(Le+1)))||!Je?null:((de=MB.commonGuideHelper)==null||de.markGuideAsRead(l.c.GUIDE_NOVICE_V9_2408+("_STEP_"+(Le+1))),Le===2&&((fe=MB.commonGuideHelper)==null||fe.markGuideAsRead(l.c.GUIDE_NOVICE_V9_2408)),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(k.eA,{id:"MD_"+se,className:g()("on-"+K),style:Je,children:[(0,h.jsx)("div",{className:"arrow",style:re,children:(0,h.jsx)("svg",{width:"12",height:"16",fill:"none",viewBox:"0 0 12 16",children:(0,h.jsx)("path",{fill:"#07F",d:"M1.04 9.74a2 2 0 0 1 0-3.48L12 0v16z"})})}),(0,h.jsxs)("div",{className:"content",children:[(0,h.jsx)("svg",{className:"close-icon",onClick:Pt,width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M8.11 7.4a.5.5 0 1 0-.7.71L11.28 12 7.4 15.89a.5.5 0 1 0 .71.7L12 12.72l3.89 3.89a.5.5 0 1 0 .7-.71L12.72 12l3.89-3.89a.5.5 0 1 0-.71-.7L12 11.28z",clipRule:"evenodd",opacity:".9"})}),(0,h.jsx)("span",{className:"title",children:te}),(0,h.jsx)("span",{className:"main-content",children:H}),(0,h.jsxs)("div",{className:"footer",children:[(0,h.jsx)("span",{className:"count",children:Le+1+"/3"}),(0,h.jsx)("span",{className:"btn-next",onClick:bt,children:Le===2?"\u77E5\u9053\u4E86":"\u4E0B\u4E00\u4E2A"})]})]})]}),qt()]}))},y=(0,o.memo)(_)},31347:(Et,ke,e)=>{"use strict";e.d(ke,{EH:()=>l,cZ:()=>T,eA:()=>g,yP:()=>C});var o=e(21676),m=e(65474);const g=o.Ay.div.withConfig({displayName:"styles__StyledV9UserGuide",componentId:"sc-xzm77o-0"})(["width:300px;height:120px;position:absolute;font-size:12px;line-height:20px;speak:none;transition-property:opacity,transform;transition-duration:0.15s;user-select:text;z-index:1049;& > .arrow{position:absolute;z-index:10;display:block;font-size:14px;line-height:0;svg{width:16px;height:14px;fill:",";}}&.on-top{left:50%;bottom:100%;transform:translate(-50%,-10%);& > .arrow{left:50%;bottom:1px;transform:translate(-50%,30%);svg{transform:rotate(180deg);}}}&.on-bottom{left:50%;top:100%;transform:translate(-50%,10%);& > .arrow{top:1px;left:50%;transform:translate(-50%,-30%) rotate(90deg);}}&.on-left{right:100%;top:50%;transform:translate(0%,-50%);& > .arrow{top:50%;right:0;transform:translate(30%,-50%);svg{transform:rotate(180deg);}}}&.on-right{left:100%;top:50%;transform:translate(0,-50%);& > .arrow{top:50%;left:0;transform:translate(-30%,-50%);svg{}}}> .content{width:100%;height:100%;position:relative;z-index:20;min-width:2em;min-height:2em;padding:18px 20px 20px;background-color:",";border-radius:10px;color:#fff;display:flex;flex-direction:column;span{width:100%;}.title{margin-bottom:8px;font-size:14px;font-weight:500;}.main-content{margin-bottom:8px;}.footer{display:flex;justify-content:space-between;.count{max-width:max-content;line-height:28px;}.btn-next{width:64px;height:28px;padding:6px 12px;border:1px solid transparent;border-radius:6px;background-color:#fff;color:",";line-height:12px;font-weight:500;cursor:pointer;}}}.close-icon{position:absolute;top:16px;right:19px;cursor:pointer;}"],A=>A.theme.color_proto,A=>A.theme.color_proto,A=>A.theme.color_proto),l=(0,o.DU)(["#workspace{#popups-builtin-panel{.widget-insertable-cagegory-nav{.GUIDE_NOVICE_V9_2408_STEP_1{",";}}}}"],m.K6),C=(0,o.DU)(["#workspace{#popups-builtin-panel{.widget-panel-container{.widget-insertable-list .GUIDE_NOVICE_V9_2408_STEP_2{",";}}}}"],m.K6),T=(0,o.DU)(["#workspace{#mb-toolbar{.toolbar-center{div.GUIDE_NOVICE_V9_2408_STEP_3{a{",";}}}}}"],m.K6)},83012:(Et,ke,e)=>{"use strict";e.d(ke,{rB:()=>b,jo:()=>h,cz:()=>E,Ge:()=>x,XM:()=>f,yX:()=>u});var o=e(76713),m=e.n(o),g=e(80208),l=e(90424);const C=()=>{var N,z;if(x())return{};if(!((N=MB)!=null&&(N=N.commonGuideHelper)!=null&&(N=N.getState())!=null&&N.commonGuidesHasShown))return{};const _=((z=MB)==null||(z=z.commonGuideHelper)==null||(z=z.getState())==null?void 0:z.commonGuidesHasShown)||[],y=l.E.every(fe=>fe&&_.includes(fe));if(y)return{isCompleted:y};const a=l.E.slice().reverse().findIndex(fe=>_.includes(fe)),$=a===-1?-1:l.E.length-1-a,ce=l.E[$],de=l.E[$+1];return{isToShow:!0,lastShownGuideIndex:$,lastShownGuideType:ce,nextShownGuideType:de}},T=()=>{const N=C();!N||!N.isToShow||(N!=null&&N.nextShownGuideType&&MB.commonGuideHelper.tryToShowGuide(N.nextShownGuideType),g.Y.showNewGuideTrack())};var A=e(14517);const k="2023-01-04",p="2024-08-22",r=()=>{var N;return dayjs((N=MB.user)==null?void 0:N.created_at).isAfter(dayjs(k))},x=()=>{var N;return m()((N=MB.user)==null?void 0:N.created_at).isAfter(m()(k))},f=()=>{var N;return m()((N=MB.user)==null?void 0:N.created_at).isAfter(m()(p))},u=()=>x()?(0,A.jN)():C(),b=N=>{x()?(0,A.Gq)():T()},h=()=>{var N;return(0,A.rw)()?!0:(typeof((N=MB)==null||(N=N.commonGuideHelper)==null?void 0:N.checkGuideHasShown)!="function",!1)},E=()=>!1},85984:(Et,ke,e)=>{"use strict";e.d(ke,{BT:()=>g,YD:()=>l,gd:()=>m});var o=e(83012);function m(C){const T=document.querySelector(C);if(!T)return null;const{top:A,left:k,width:p,height:r}=T.getBoundingClientRect();return{x:k,y:A,width:p,height:r}}function g(C){return!C||(C==null?void 0:C.length)<1?[]:C.filter(T=>!!T).map(T=>new Promise((A,k)=>{const p=new Image;p.src=T,p.onload=()=>A(!0),p.onerror=()=>k(new Error("[NO SENTRY] failed with loading image "+T))}))}const l=C=>{var T,A;let{selectedCids:k,guideType:p,onCondition:r}=C;if(!((T=MB)!=null&&(T=T.user)!=null&&T.id)||(A=MB)!=null&&(A=A.commonGuideHelper)!=null&&A.checkGuideHasShown(p))return;const x=(0,o.yX)();if(x!=null&&x.isCompleted&&(k==null?void 0:k.length)===1){const u=sdkStore.getHotItem(k[0]);if(r(u.hotAttr)){var f;const b=(f=document)==null?void 0:f.querySelector('.group-list .tree-node[data-cid="'+u.key+'"]');if(!b)return;new Promise(h=>{b.classList.add(p),h()}).then(()=>{MB.commonGuideHelper.checkGuideHasShown(p)||MB.commonGuideHelper.tryToShowGuide(p)})}}}},78647:(Et,ke,e)=>{"use strict";e.d(ke,{c:()=>o});let o=function(m){return m.GUIDE_TOOLBAR_TRASH="GUIDE_TOOLBAR_TRASH_6",m.GUIDE_TOOLBAR_EXPORT_TO_ABOARD="guide_toolbar_export_to_aboard",m.GUIDE_RESOURCES_SHOW="GUIDE_RESOURCES_SHOW",m.GUIDE_SHORT_CUT_PANEL="GUIDE_SHORT_CUT_PANEL",m.GUIDE_PREVIEW_ADD_COMMENT="guide_preview_add_comment",m.GUIDE_POPUP_PANEL="guide_popup_panel",m.WIDGET_BUILTIN_PANEL="widget_builtin_panel",m.PAGE_PANEL="page_panel",m.GUIDE_SEARCH_RESOURCES_DETAILS="guide_search_resources_details",m.GUIDE_IMAGE_SLICING="guide_image_slicing",m.GUIDE_IMAGE_RESOURCE="guide_image_resource",m.GUIDE_GRADIENT_FILL="guide_gradient_fill",m.GUIDE_RULER_V1="guide_ruler_v1",m.GUIDE_TOOLBAR_COMMON="GUIDE_TOOLBAR_COMMON",m.GUIDE_NOVICE_V9_2408="GUIDE_NOVICE_V9_2408",m.GUIDE_NOVICE_V9_2408_STEP_1="GUIDE_NOVICE_V9_2408_STEP_1",m.GUIDE_NOVICE_V9_2408_STEP_2="GUIDE_NOVICE_V9_2408_STEP_2",m.GUIDE_NOVICE_V9_2408_STEP_3="GUIDE_NOVICE_V9_2408_STEP_3",m.GUIDE_COMMON_V9_OPERATIONS_GUIDE="GUIDE_COMMON_V9_OPERATIONS_GUIDE",m.GUIDE_NOVICE_2309="GUIDE_NOVICE_2309",m.GUIDE_NOVICE_2309_START="GUIDE_NOVICE_2309_START",m.GUIDE_NOVICE_2309_STEP_1="GUIDE_NOVICE_2309_STEP_1",m.GUIDE_NOVICE_2309_STEP_2="GUIDE_NOVICE_2309_STEP_2",m.GUIDE_NOVICE_2309_STEP_3="GUIDE_NOVICE_2309_STEP_3",m.GUIDE_NOVICE_2309_STEP_4="GUIDE_NOVICE_2309_STEP_4",m.GUIDE_NOVICE_2309_STEP_5="GUIDE_NOVICE_2309_STEP_5",m.GUIDE_NOVICE_2309_TIP_1="GUIDE_NOVICE_2309_TIP_1",m.GUIDE_NOVICE_2408_CREATE_PAGE="GUIDE_NOVICE_2408_CREATE_PAGE",m.GUIDE_NOVICE_2309_TASK_1="GUIDE_NOVICE_2309_TASK_1",m.GUIDE_NOVICE_2309_TASK_2="GUIDE_NOVICE_2309_TASK_2",m.GUIDE_NOVICE_2309_TASK_3="GUIDE_NOVICE_2309_TASK_3",m.GUIDE_NOVICE_2309_TASK_4="GUIDE_NOVICE_2309_TASK_4",m.GUIDE_NOVICE_2309_TASK_5="GUIDE_NOVICE_2309_TASK_5",m.GUIDE_NOVICE_2309_TASK_5_DEVICE_MODE="GUIDE_NOVICE_2309_TASK_5_DEVICE_MODE",m.GUIDE_DS_SCREEN_STEP_1="GUIDE_DS_SCREEN_STEP_1",m.GUIDE_AWARDED="GUIDE_AWARDED",m.GUIDE_NEW_CREATE_PAGE="GUIDE_NEW_CREATE_PAGE",m.GUIDE_NEW_SHOW_WIDGET_LIBRARY="GUIDE_NEW_SHOW_WIDGET_LIBRARY",m.GUIDE_NEW_FLOW_AND_MIND="GUIDE_NEW_FLOW_AND_MIND",m.GUIDE_NEW_CREATE_LINK="GUIDE_NEW_CREATE_LINK",m.GUIDE_NEW_USE_PREVIEW="GUIDE_NEW_USE_PREVIEW",m.GUIDE_NEW_USE_SHARE="GUIDE_NEW_USE_SHARE",m.GUIDE_NEW_USE_COMMENT="GUIDE_NEW_USE_COMMENT",m.GUIDE_2309_CLICK_SHARE="GUIDE_2309_CLICK_SHARE",m.GUIDE_2407_PREVIEW="GUIDE_2407_PREVIEW",m.GUIDE_2407_PREVIEW_CLOSE="GUIDE_2407_PREVIEW_CLOSE",m.GUIDE_OLD_NEW_CREATE_PAGE="GUIDE_OLD_NEW_CREATE_PAGE",m.GUIDE_OLD_ADD_LINE_FEATURE="GUIDE_OLD_ADD_LINE_FEATURE",m.GUIDE_OLD_UPGRADE_ANNOTATE="GUIDE_OLD_UPGRADE_ANNOTATE",m.GUIDE_OLD_USE_COMMENT="GUIDE_OLD_USE_COMMENT",m.GUIDE_BASKET_QUICK_COPY_CANVAS="GUIDE_BASKET_QUICK_COPY_CANVAS",m.GUIDE_PAGE_CREAT_LINK="GUIDE_PAGE_CREAT_LINK",m.GUIDE_PAGE_CREAT_LINK2="GUIDE_PAGE_CREAT_LINK2",m.GUIDE_TO_PREVIEW_IN_SHARE="GUIDE_TO_PREVIEW_IN_SHARE",m.GUIDE_MORE_PAGE="GUIDE_MORE_PAGE",m.GUIDE_PREVIEW_VIEW_BTN="GUIDE_PREVIEW_VIEW_BTN",m.GUIDE_ALL_REPLACE_PAGE="GUID_ALL_REPLACE_PAGE",m.GUIDE_BASKET_MUBAN_USE="GUIDE_BASKET_MUBAN_USE",m.GUIDE_FIND_MORE_SCENE_COMBO="GUIDE_FIND_MORE_SCENE_COMBO",m.GUIDE_PUBLISH_COMBO_TO_MKT="GUIDE_PUBLISH_COMBO_TO_MKT",m.GUIDE_COPY_AS_PNG="GUIDE_COPY_AS_PNG",m.GUIDE_VECTOR_TASK_QUICK_CREATE="GUIDE_VECTOR_TASK_QUICK_CREATE",m.GUIDE_VECTOR_TASK_ENDING_EDITING="GUIDE_VECTOR_TASK_ENDING_EDITING",m.GUIDE_VECTOR_TASK_EDITING_EXIST_VECTOR="GUIDE_VECTOR_TASK_EDITING_EXIST_VECTOR",m.GUIDE_POSITION_STICKY_FEATURES="GUIDE_POSITION_STICKY_FEATURES",m.GUIDE_SELECT_STICKY="GUIDE_SELECT_STICKY",m.TASK_GUIDE_NEW_CREATE_PAGE="TASK_GUIDE_NEW_CREATE_PAGE",m.TASK_GUIDE_NEW_SHOW_WIDGET_LIBRARY="TASK_GUIDE_NEW_SHOW_WIDGET_LIBRARY",m.TASK_GUIDE_NEW_CREATE_LINK="TASK_GUIDE_NEW_CREATE_LINK",m.TASK_GUIDE_NEW_USE_PREVIEW="TASK_GUIDE_NEW_USE_PREVIEW",m.TASK_GUIDE_NEW_USE_SHARE="TASK_GUIDE_NEW_USE_SHARE",m.TASK_GUIDE_NEW_USE_COMMENT="TASK_GUIDE_NEW_USE_COMMENT",m.TASK_GUIDE_NEW_CREATE_ANNOTATE="TASK_GUIDE_NEW_CREATE_ANNOTATE",m.TASK_GUIDE_NEW_CREATE_FLOW="TASK_GUIDE_NEW_CREATE_FLOW",m.TASK_GUIDE_NEW_CREATE_MIND="TASK_GUIDE_NEW_CREATE_MIND",m.GUIDE_SEMANTIC_PANEL="GUIDE_SEMANTIC_PANEL",m.ENTER_DESIGN_PROTO_IN_SPACE_CREATED_DAY="ENTER_DESIGN_PROTO_IN_SPACE_CREATED_DAY",m.UPGRADE_V8_COMMUNITY_GROUP="UPGRADE_V8_COMMUNITY_GROUP",m.GUIDE_NEWBIE_VIDEO="GUIDE_NEWBIE_VIDEO",m.DS_SCREEN_SCENE_BANNER="DS_SCREEN_SCENE_BANNER",m.DS_CUSTOMIZE_SCENE_BANNER="DS_CUSTOMIZE_SCENE_BANNER",m.HMI_INDUS_SCENE_BANNER="HMI_INDUS_SCENE_BANNER",m.HMI_CUSTOMIZE_SCENE_BANNER="HMI_CUSTOMIZE_SCENE_BANNER",m.INTER_SWITCHABLE_VIEW_MODE_RELOCATED_INSPECT_TOGGLE="INTER_SWITCHABLE_VIEW_MODE_RELOCATED_INSPECT_TOGGLE",m.INTER_SWITCHABLE_VIEW_MODE_OV_TOGGLE_PANE_BTN="INTER_SWITCHABLE_VIEW_MODE_OV_TOGGLE_PANE_BTN",m.INTER_SWITCHABLE_VIEW_MODE_PV_TOGGLE_PANE_BTN="INTER_SWITCHABLE_VIEW_MODE_PV_TOGGLE_PANE_BTN",m.GUIDE_NEW_OVERLAY_ONCE="GUIDE_NEW_OVERLAY_ONCE",m.UNGROUP_WITH_WM="UNGROUP_WITH_WM",m.GUIDE_DRAW_IO_NAV="GUIDE_DRAW_IO_NAV",m.GUIDE_DRAW_IO_NAV_RIGHT_LAYOUT="GUIDE_DRAW_IO_NAV_RIGHT_LAYOUT",m}({})},73387:(Et,ke,e)=>{"use strict";e.d(ke,{H:()=>$,d:()=>ce});var o=e(74059),m=e(51044),g=e(72605),l=e(63686),C=e(78869),T=e.n(C),A=e(7290),k=e(91344),p=e(47143),r=e(20029),x=e(91560),f=e(73807),u=e(76445),b=e(63555),h=e(73773),E=e(86803),N=e(21676);const z=N.Ay.div.withConfig({displayName:"styles__StyledDraftLinkToastDiv",componentId:"sc-bordw3-0"})(["position:absolute;width:max-content;z-index:107;left:50%;-webkit-transform:translate(-50%) scale(0);-ms-transform:translate(-50%) scale(0);transform:translate(-50%) scale(0);transition:transform 0.15s cubic-bezier(.3,1.2,.2,1);.container{width:100%;height:32px;box-sizing:border-box;border:1px solid ",";background:",";border-radius:4px;padding:1px 3px;position:relative;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;box-sizing:border-box;&::after{top:100%;left:10%;border:solid transparent;content:' ';position:absolute;pointer-events:none;transform:rotate(-45deg);border-radius:2px;border-width:1px;background-color:",";border-color:transparent transparent "," ",";margin-left:-4px;margin-top:-5px;height:10px;width:10px;}.link-hot-area{position:relative;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;}.link-input{min-width:120px;height:18px;border:none;outline:none;margin:0 5px;color:",";&::placeholder{font-size:12px;}}.link-separator-v{height:18px;border-right:1px solid ",";}.link-icon{display:flex;flex-direction:row;justify-content:center;align-items:center;cursor:pointer;.svg-icon{width:24px;height:24px;}}}.modal{width:100%;height:8px;position:relative;background:transparent;}"],de=>de.theme.color_border_state,de=>de.theme.color_bg_white,de=>de.theme.color_bg_white,de=>de.theme.color_border_state,de=>de.theme.color_border_state,de=>de.theme.color_text_L1,de=>de.theme.color_bg_border_01);var S=e(57464);class _ extends m.Component{constructor(){var fe;super(...arguments),fe=this,(0,o.A)(this,"$inputRef",null),(0,o.A)(this,"$containerRef",null),(0,o.A)(this,"state",{widget:null,linkMode:"",linkTitle:"",originLinkTarget:"",linkTarget:"",linkStyle:{top:0,left:0},blockKey:"",start:void 0,end:void 0,fromType:void 0,canEditLink:!1,settingLevel:"editing",selection:void 0,isPreviewModal:!1}),(0,o.A)(this,"setContainerRef",se=>{this.$containerRef=se}),(0,o.A)(this,"setInputRef",se=>{this.$inputRef=se}),(0,o.A)(this,"handleLinkToastAdd",se=>{var J;let{widget:ve,linkTitle:D,linkTarget:R,style:V,blockKey:O,start:Ce,end:ae,fromType:q,settingLevel:K,selection:xe}=se;!ve||!(ve.cid||ve.key)||(this.setState({widget:ve,linkMode:"add",linkTitle:D,originLinkTarget:R,linkTarget:R,linkStyle:V,blockKey:O,start:Ce,end:ae,fromType:q,settingLevel:K,selection:xe},()=>{this.$inputRef&&this.$inputRef.focus()}),(J=MB)!=null&&J.action&&MB.action("draft:update:state",{linkToastShow:!0}))}),(0,o.A)(this,"handleLinkToastView",T()(se=>{let{widget:J,linkTitle:ve,linkTarget:D,style:R,blockKey:V,start:O,end:Ce,fromType:ae,canEditLink:q=!0,isPreviewModal:K}=se;!J||!(J.cid||J.key)||(this.setState({widget:J,linkMode:"view",linkTitle:ve,originLinkTarget:D,linkTarget:D,linkStyle:R,blockKey:V,start:O,end:Ce,fromType:ae,canEditLink:q,isPreviewModal:K}),this.setLinkToastShow(K))},300,{leading:!1,trailing:!0})),(0,o.A)(this,"handleLinkToastEdit",se=>{let{widget:J,linkTitle:ve,linkTarget:D,style:R,blockKey:V,start:O,end:Ce,fromType:ae,settingLevel:q}=se;!J||!(J.cid||J.key)||(this.setState({widget:J,linkMode:"edit",linkTitle:ve,originLinkTarget:D,linkTarget:D,linkStyle:R,blockKey:V,start:O,end:Ce,fromType:ae,settingLevel:q}),this.setLinkToastShow())}),(0,o.A)(this,"handleLinkToastHide",()=>{const{linkMode:se}=this.state;["add","edit"].includes(se)||this.resetState()}),(0,o.A)(this,"handleLinkToastQuit",()=>{if(!this.props.linkToastShow)return;const{linkMode:se}=this.state;if(["add","edit"].includes(se)){this.onLink();return}this.resetState()}),(0,o.A)(this,"setLinkToastShow",function(se){se===void 0&&(se=!1);const{linkToastShow:J,dispatch:ve}=fe.props;if(!J){if(se){var D,R;!((D=MB)==null||(D=D.webpackInterface)==null)&&D.store&&((R=MB)==null||(R=R.webpackInterface)==null||R.store.dispatch({type:"draft:update:state",payload:{linkToastShow:!0}}));return}ve({type:f.k.EntryKey["entry:draft:linkToastShow:update"],payload:{linkToastShow:!0}})}}),(0,o.A)(this,"resetState",T()(()=>{this.setState({widget:null,linkMode:"",linkTitle:"",originLinkTarget:"",linkTarget:"",linkStyle:{top:0,left:0},blockKey:"",start:void 0,end:void 0,fromType:void 0});const{linkToastShow:se,dispatch:J}=this.props;se&&J({type:f.k.EntryKey["entry:draft:batch:update"],payload:{linkToastShow:!1,isCreatingLink:!1}})},10,{leading:!1,trailing:!0})),(0,o.A)(this,"getStyle",(se,J)=>{if(!se||!J)return{left:0,top:-100,visibility:"hidden"};const{left:ve,top:D}=J;return{top:D,left:ve,visibility:"visible",transform:"scale(1)"}}),(0,o.A)(this,"onLink",()=>{const{linkTitle:se,linkTarget:J,originLinkTarget:ve,blockKey:D,start:R,end:V,fromType:O,widget:Ce,settingLevel:ae}=this.state;ae==="editing"?k.A.emit("draft:inline-toolbar:link",{action:"link",linkTitle:se,linkTarget:J,originLinkTarget:ve,blockKey:D,start:R,end:V,fromType:O,widget:Ce}):k.A.emit("draft:inline-toolbar:link-widget",{action:"link",linkTitle:se,linkTarget:J,originLinkTarget:ve,fromType:O,widget:Ce}),this.resetState()}),(0,o.A)(this,"handleUrlChange",se=>{this.setState({linkTarget:se.target.value})}),(0,o.A)(this,"handleInputKeyDown",se=>{se.keyCode===h.Ju.Enter&&(se.preventDefault(),se.stopPropagation(),this.onLink()),se.key==="Escape"&&(se.preventDefault(),se.stopPropagation(),this.resetState())}),(0,o.A)(this,"handleEdit",se=>{var J;se.preventDefault(),se.stopPropagation();const{dispatch:ve}=this.props,{widget:D,linkTitle:R,originLinkTarget:V,blockKey:O,start:Ce,end:ae,fromType:q}=this.state;ve({type:f.k.EntryKey["entry:draft:isCreatingLink:update"],payload:{isCreatingLink:!0}});const K=D.cid||D.key,xe=((0,E.HO)((D==null?void 0:D.hotAttr)||D)==="exist","editing");(D.type||((J=D.hotAttr)==null?void 0:J.type))===b.x.WMindNode?ve({type:"mind:update:state",payload:{selectedMindNodeKeys:[K]}}):xe!=="widget"&&(ve({type:"entry:select:items",payload:{cids:[K]}}),ve({type:"set:editing:cid",payload:{cid:K}})),setTimeout(()=>{q==="settingPanel"?k.A.emit("draft:design:editorState:selection:basic",{widget:D,linkTitle:R,originLinkTarget:V,blockKey:O,start:Ce,end:ae}):k.A.emit("draft:design:editorState:selection",{widget:D,linkTitle:R,originLinkTarget:V,blockKey:O,start:Ce,end:ae}),this.setLinkToastShow(),this.setState({linkMode:"edit",settingLevel:xe,widget:D},()=>{setTimeout(()=>{this.$inputRef&&this.$inputRef.focus()},16.7)})},16.7)}),(0,o.A)(this,"handleUnlink",se=>{se.preventDefault(),se.stopPropagation();const{linkTitle:J,linkTarget:ve,originLinkTarget:D,blockKey:R,start:V,end:O,fromType:Ce,widget:ae,settingLevel:q}=this.state;q!=="widget"?k.A.emit("draft:inline-toolbar:link",{action:"unlink",linkTitle:J,linkTarget:ve,originLinkTarget:D,blockKey:R,start:V,end:O,fromType:Ce,widget:ae}):k.A.emit("draft:inline-toolbar:link-widget",{action:"unlink",linkTitle:J,linkTarget:ve,originLinkTarget:D,blockKey:R,start:V,end:O,fromType:Ce,widget:ae}),this.resetState()}),(0,o.A)(this,"handleView",se=>{se.preventDefault(),se.stopPropagation();const{linkMode:J,linkTarget:ve,isPreviewModal:D}=this.state;if(J!=="view")return;const{dispatch:R}=this.props;R({type:f.k.EntryKey["entry:draft:open:hyperlink"],payload:{hyperlink:ve,transition:"newTab",isPreviewModal:D}})})}componentDidMount(){k.A.on("draft:link-toast:add",this.handleLinkToastAdd),k.A.on("draft:link-toast:view",this.handleLinkToastView),k.A.on("draft:link-toast:edit",this.handleLinkToastEdit),k.A.on("draft:link-toast:hide",this.handleLinkToastHide),k.A.on("draft:link-toast:quit",this.handleLinkToastQuit)}componentDidUpdate(fe){const{canvasScale:se,canvasOffset:{x:J=0,y:ve=0}={}}=fe,{canvasScale:D,canvasOffset:{x:R=0,y:V=0}={},linkToastShow:O}=this.props;(D!==se||R+"$"+V!=J+"$"+ve)&&O&&this.resetState()}componentWillUnmount(){this.setState=()=>!1,k.A.off("draft:link-toast:add",this.handleLinkToastAdd),k.A.off("draft:link-toast:view",this.handleLinkToastView),k.A.off("draft:link-toast:edit",this.handleLinkToastEdit),k.A.off("draft:link-toast:hide",this.handleLinkToastHide),k.A.off("draft:link-toast:quit",this.handleLinkToastQuit)}render(){const{linkMode:fe,linkStyle:se,linkTarget:J,canEditLink:ve}=this.state,{linkToastShow:D}=this.props;if(!D)return null;const R=this.getStyle(D,se),{isReadOnly:V}=this.props;return(0,S.jsxs)(z,{className:"draft-link-toast",style:R,ref:this.setContainerRef,children:[(0,S.jsxs)("div",{className:"container",children:[(0,S.jsxs)("div",{className:"link-hot-area",onClick:this.handleView,children:[fe==="view"&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("span",{className:"link-icon",children:(0,S.jsx)(A.C,{name:"draft/link/add"})}),(0,S.jsx)("span",{className:"link-separator-v"})]}),(0,S.jsx)("input",{ref:this.setInputRef,type:"text",className:"link-input",placeholder:I18N.TextToolbar.url1,readOnly:fe==="view",style:{cursor:fe==="view"?"pointer":"default"},value:J,onChange:this.handleUrlChange,onBlur:this.handleUrlChange,onKeyDown:this.handleInputKeyDown})]}),fe==="view"&&!V&&ve&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("span",{className:"link-separator-v"}),(0,S.jsx)("span",{className:"link-icon",onClick:this.handleEdit,children:(0,S.jsx)(A.C,{name:"draft/link/edit"})})]}),fe==="edit"&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("span",{className:"link-separator-v"}),(0,S.jsx)("span",{className:"link-icon",onClick:this.handleUnlink,children:(0,S.jsx)(A.C,{name:"draft/link/remove"})})]})]}),(0,S.jsx)("div",{className:"modal",style:{display:se&&(se.left||se.top)?"block":"none"}})]})}}const y=(0,l.Mz)([f.k.Query.getLinkToastShow,p.X_,p.ER,r.jx],(de,fe,se,J)=>{const ve=J===u.qi.OnlyView;return{linkToastShow:de,canvasScale:fe,canvasOffset:se,isReadOnly:ve}}),a=(0,l.Mz)([f.k.Query.getLinkToastShow,x.X_,x.A3],(de,fe,se)=>({linkToastShow:de,canvasScale:fe,canvasOffset:se,isReadOnly:!0})),$=(0,g.Ng)(de=>y(de))(_),ce=(0,g.Ng)(de=>a(de))(_)},70549:(Et,ke,e)=>{"use strict";e.d(ke,{vd:()=>$,ag:()=>ce,DL:()=>a,Ld:()=>de});var o=e(52098),m=e(6312),g=e(8907),l=e(40938),C=e(57465),T=e(17383);const A=fe=>{let{arrayLength:se,excludedIntervals:J,appendStyle:ve}=fe;const D=[];let R=0;J.sort((V,O)=>V.offset-O.offset);for(const V of J)V.offset>R&&D.push({offset:R,length:V.offset-R,style:ve}),R=V.offset+V.length;return R<se&&D.push({offset:R,length:se-R,style:ve}),D},k=fe=>{let{arrayLength:se,originalISR:J,richTextV1:ve}=fe;const R="fontsize-"+ve.fontSize;return A({arrayLength:se,excludedIntervals:J.filter(V=>V.style.includes("fontsize")),appendStyle:R})},p=fe=>{let{arrayLength:se,originalISR:J,richTextV1:ve}=fe;const R="color-"+ve.textColor;return A({arrayLength:se,excludedIntervals:J.filter(V=>V.style.includes("color")),appendStyle:R})},r=fe=>{let{arrayLength:se,originalISR:J,richTextV1:ve}=fe;const R="fontfamily-"+ve.fontFamily;return A({arrayLength:se,excludedIntervals:J.filter(V=>V.style.includes("fontfamily")),appendStyle:R})},x=fe=>{let{arrayLength:se,originalISR:J,richTextV1:ve}=fe;const R="letterspacing-"+ve.letterSpacing+"px";return A({arrayLength:se,excludedIntervals:J.filter(V=>V.style.includes("letterspacing")),appendStyle:R})},f=fe=>{let{arrayLength:se,originalISR:J,richTextV1:ve}=fe;const R="lineheight-"+ve.lineHeight+"px";return A({arrayLength:se,excludedIntervals:J.filter(V=>V.style.includes("lineheight")),appendStyle:R})},u=fe=>{let{arrayLength:se,originalISR:J,richTextV1:ve}=fe;const R="fontweight-"+(0,T._y)(ve.fontWeight,ve.bold);return A({arrayLength:se,excludedIntervals:J.filter(V=>V.style.includes("fontweight")),appendStyle:R})},b=fe=>{let{arrayLength:se,originalISR:J,richTextV1:ve}=fe;const D="bold".toUpperCase();return ve.bold?A({arrayLength:se,excludedIntervals:J.filter(R=>R.style.includes(D)),appendStyle:D}):[]},h=fe=>{let{arrayLength:se,originalISR:J,richTextV1:ve}=fe;const D="italic".toUpperCase();return ve.italic?A({arrayLength:se,excludedIntervals:J.filter(R=>R.style.includes(D)),appendStyle:D}):[]},E=fe=>{let{arrayLength:se,originalISR:J,richTextV1:ve}=fe;const D="underline".toUpperCase();return ve.underline?A({arrayLength:se,excludedIntervals:J.filter(R=>R.style.includes(D)),appendStyle:D}):[]},N=fe=>{let{arrayLength:se,originalISR:J,richTextV1:ve}=fe;const D="strikethrough".toUpperCase();return ve.strikethrough?A({arrayLength:se,excludedIntervals:J.filter(R=>R.style.includes(D)),appendStyle:D}):[]},z=fe=>{let{richTextV1:se,textV1:J}=fe;const ve={};for(const[D,R]of Object.entries(J.blocks)){const V=R.text.length,Ce=R.inlineStyleRanges.map(ze=>ze.style==="BOLD"?{...ze,style:"fontweight-700"}:ze),ae=k({arrayLength:V,originalISR:Ce,richTextV1:se}),q=p({arrayLength:V,originalISR:Ce,richTextV1:se}),K=r({arrayLength:V,originalISR:Ce,richTextV1:se}),xe=x({arrayLength:V,originalISR:Ce,richTextV1:se}),te=f({arrayLength:V,originalISR:Ce,richTextV1:se}),H=u({arrayLength:V,originalISR:Ce,richTextV1:se}),re=b({arrayLength:V,originalISR:Ce,richTextV1:se}),be=h({arrayLength:V,originalISR:Ce,richTextV1:se}),Le=E({arrayLength:V,originalISR:Ce,richTextV1:se}),Ve=N({arrayLength:V,originalISR:Ce,richTextV1:se}),Ne=[...Ce,...ae,...q,...K,...xe,...te,...H,...re,...be,...Le,...Ve],We={...R,inlineStyleRanges:Ne};ve[D]=We}return ve};var S=e(47483),_=e(23340);const y={type:"html"},a=fe=>{let{html:se,editorState:J,inlineProcessType:ve,componentType:D}=fe;if(!se)return J;const R=[...J.getCurrentInlineStyle()],V=(0,S.A)({html:se,componentType:D,inlineProcessType:ve}),O=J.getSelection();let Ce=J.getCurrentContent();Ce=o.e6.replaceWithFragment(Ce,J.getSelection(),(0,m.B8)(V.contentBlocks));let ae=o.$t.push(J,Ce,"insert-characters");const q=ae.getSelection(),K=new o.wc({anchorKey:O.anchorKey,anchorOffset:O.anchorOffset,focusKey:q.focusKey,focusOffset:q.focusOffset,isBackward:!1,hasFocus:!1});ve!=="total"&&R.forEach(te=>{Ce=o.e6.applyInlineStyle(Ce,K,te)});const xe=new o.wc({anchorKey:q.anchorKey,anchorOffset:q.anchorOffset,focusKey:q.focusKey,focusOffset:q.focusOffset,isBackward:!1,hasFocus:!1});return ae=o.$t.push(ae,Ce,"insert-characters"),o.$t.forceSelection(ae,xe)},$=fe=>{var se,J;let{editorState:ve,richTextV1:D,w:R,h:V}=fe,O=ve.getCurrentContent(),Ce=[];if(D){Ce=[...O.getBlockMap().keys()];const go=(0,o.dM)(ve.getCurrentContent()),Co=(0,g.qn)(go),Tt=z({richTextV1:D,textV1:Co});Co.blocks=Tt,O=(0,o.Ot)((0,g.mx)(Co))}const ae=ve.getSelection(),q=O.getBlockMap(),K=[...q.keys()],xe=Ce.findIndex(go=>go===ae.getStartKey()),te=xe===-1?ae.getStartKey():K[xe],H=q.toJS()[te].type,re=ae.getStartOffset(),be=Ce.findIndex(go=>go===ae.getEndKey()),Le=be===-1?ae.getEndKey():K[be],Ve=ae.getEndOffset(),Ne=K.findIndex(go=>go===te),We=K.findIndex(go=>go===Le),ze=new o.wc({anchorKey:q.first().key,anchorOffset:0,focusKey:te,focusOffset:re,isBackward:!1,hasFocus:!1}),ft=o.e6.removeRange(O,ze),mt=We-Ne,i=ft.getBlockMap(),gt=i.toArray(),Je=te===Le?Ve-re:Ve,Pt=new o.wc({anchorKey:(se=(J=gt[mt])==null?void 0:J.key)!=null?se:i.last().key,anchorOffset:Je,focusKey:i.last().key,focusOffset:i.last().text.length,isBackward:!1,hasFocus:!1}),bt=o.e6.removeRange(ft,Pt),qt=(0,g.qn)((0,o.dM)(bt)),pt=(0,g.mx)(qt);pt.blocks[0].type=H;let $t=(0,l.A)({editorContent:pt,widgetKey:"",isForCopy:!0});return $t+=_.ze,D&&R&&V&&($t+="<meta data-mb-richdata="+JSON.stringify({richData:{richTextV1:D,w:R,h:V}})+">"),$t},ce=fe=>{let{richTextV1:se,w:J,h:ve}=fe;const{_getEditorState:D,_setEditorState:R}=(0,C.DT)(),V=D(),O=$({editorState:V,richTextV1:se,w:J,h:ve}),Ce=V.getSelection(),ae=V.getCurrentContent(),q=o.e6.removeRange(ae,Ce);return R(o.$t.push(V,q,"remove-range")),O},de=fe=>{let{html:se,isClearStyle:J}=fe;const ve=(0,S.A)({html:se,componentType:1}),D=o.z6.createFromBlockArray(ve.contentBlocks,ve.entityMap),R=o.$t.createWithContent(D),V=(0,o.dM)(R.getCurrentContent());return(0,g.qn)(V,J)}},77757:(Et,ke,e)=>{"use strict";e.d(ke,{F:()=>C,c:()=>T});var o=e(46795),m=e(8580),g=e(57789),l=e(79619);const C=function(A){var k;A===void 0&&(A="");const{isExperience:p,isLoggedExperience:r}=(k=MB.global)==null?void 0:k.designOptions;if(A==="isSave"){if(p)return MB.global.popupHelper.loginAsync({onConfirm:T}),!0;if(r){const x=MB.getRootProject&&MB.getRootProject();return MB.global.popupHelper.teamSelectModalAsync({projectCid:x==null?void 0:x.cid,onConfirm:f=>(0,g.E)(f)}),!0}else return!1}else return p?(MB.global.popupHelper.loginAsync({onConfirm:T}),!0):!1},T=async()=>{if((0,m.BG)()){window.top.location.reload();return}const{user:A}=await(0,o.DE)("/api/web/v3/initial"),{currentUser:k}=(0,l.n)({user:A,org:{}});(0,o.iv)("/api/web/v3/guide/complete_workspace_guide"),MB.user=A,Object.assign(MB.global.designOptions,{isExperience:!1,isLoggedExperience:!0}),MB.action("update:design:options",{designOptions:{...MB.global.designOptions}}),MB.action("current:update:state",{currentUser:k});const p=MB.getRootProject&&MB.getRootProject();MB.global.popupHelper.teamSelectModalAsync({projectCid:p==null?void 0:p.cid,onConfirm:r=>(0,g.E)(r)})}},98712:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>p});var o=e(51044),m=e(86634),g=e.n(m),l=e(11777),C=e(21676);const T=C.Ay.div.withConfig({displayName:"styles__StyledDraftDropdownDiv",componentId:"sc-loihs8-0"})(["position:relative;width:100%;margin-left:1px;margin-right:1px;&.center{&.visible > .content{transform:translateX(-50%) scale(1);}> .content{left:50%;transform:translateX(-50%) scale(.9);}}&.visible > .content{border-radius:4px;opacity:1;transform:scale(1);visibility:visible;}&.transparent > .content{background-color:transparent;}> .content{position:absolute;top:100%;opacity:0;transform:scale(.9);transform-origin:50% 0;transition:visibility .2s,transform .2s,opacity .2s;visibility:hidden;z-index:1000;}.trigger-container{height:28px;border-radius:4px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-right:6px;&.disabled{opacity:0.3;cursor:not-allowed;background-color:unset!important;}&:hover{background-color:",";}.icon{flex:1;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;position:relative;color:",";svg{fill:none;}}.trigger{display:flex;flex-direction:row;justify-content:center;align-items:center;.tri-drop{width:6px;height:4px;color:#999;}}}.content-container{position:absolute;top:0;left:0;background-color:",";color:",";border:1px solid transparent;border-radius:4px;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;filter:drop-shadow(4px 12px 40px rgba(39,54,78,0.1)) drop-shadow(0px 2px 10px rgba(39,54,78,0.08));}"],r=>r.theme.color_btn_secondary_hover,r=>r.theme.color_text_L1,r=>r.theme.color_bg_white,r=>r.theme.color_text_L1);var A=e(57464);const k=(r,x)=>{const{disabled:f,title:u,position:b,top:h,right:E,bottom:N,left:z,dark:S,center:_,className:y,trigger:a,onBeforeShow:$,onShow:ce,onClose:de,onBeforeClose:fe,closeOnContentClick:se,onClickOutside:J}=r,[ve,D]=(0,o.useState)(!1),[R,V]=(0,o.useState)(!1),O=(0,o.useRef)(),Ce=(0,o.useRef)(),ae=(0,o.useMemo)(()=>({position:b,top:h,right:E,bottom:N,left:z}),[b,h,E,z,N]),q=(0,o.useCallback)(async K=>{const xe=O&&O.current&&O.current.contains(K.target),te=Ce&&Ce.current&&Ce.current.contains(K.target);if(O.current===K.target||xe){if(!ve&&$&&!await $())return;!f&&D(H=>!H)}else Ce.current===K.target||te?se&&D(!1):fe?fe(K)!==!1&&D(!1):J?J(K)!==!1&&D(!1):D(!1)},[f,ve,$,fe,se,J]);return(0,o.useImperativeHandle)(x,()=>({setDropdownVisible:D,show:()=>D(!0),close:()=>D(!1)})),(0,o.useEffect)(()=>(!f&&document.addEventListener("click",q,!0),()=>{document.removeEventListener("click",q,!0)}),[f,q]),(0,o.useEffect)(()=>{ce&&ve&&ce()},[ve,ce]),(0,o.useEffect)(()=>{R&&de&&!ve&&de()},[ve,R,de]),(0,o.useEffect)(()=>{V(!0)},[]),(0,A.jsxs)(T,{className:g()(y,{dark:S,center:_,visible:!f&&ve}),children:[(0,A.jsx)("a",{ref:O,className:"trigger",id:"drop-trigger",children:u?(0,A.jsx)(l.A,{className:"floating-tooltip",content:u,direction:"down",distance:12,children:a}):a}),(0,A.jsx)("div",{ref:Ce,className:"content",style:ae,children:r.children})]})},p=o.memo(o.forwardRef(k))},5434:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>r});var o=e(51044),m=e(86634),g=e.n(m),l=e(11777),C=e(7972),T=e(21676);const A=T.Ay.div.withConfig({displayName:"styles__StyledDraftDropdownOptionDiv",componentId:"sc-v8z8h3-0"})(["&.draft-toolbar-dropdown-option{width:100%;height:28px;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;padding:0 10px;margin:1px 0;background-color:transparent;color:",";cursor:pointer;border-radius:4px;&:hover{background-color:",";}&.active{background-color:",";}&.disabled{cursor:not-allowed;opacity:0.3;background-color:unset!important;}}"],x=>x.theme.color_text_L1,x=>x.theme.color_btn_secondary_hover,x=>x.theme.color_btn_secondary_hover);var k=e(57464);const r=x=>{const{disabled:f,value:u,preventDefault:b=!0,active:h,children:E,title:N,showTitle:z,supTitle:S,widget:_,onClick:y,onNativeClick:a}=x,$=(0,o.useCallback)(ce=>{if(b&&ce.preventDefault(),ce.stopPropagation(),f)return;y&&y(u),a&&a(ce);const de=C.Mh[S];(0,C.Uz)({operation_type:de||C.P6[u],widget:_})},[f,y,u,a,_,S]);return(0,k.jsx)(A,{className:g()("draft-toolbar-dropdown-option",{active:h,disabled:f}),onClick:$,children:z?(0,k.jsx)(l.A,{content:N,direction:"down",distance:12,children:E}):E})}},99048:(Et,ke,e)=>{"use strict";e.d(ke,{B:()=>A,l:()=>k});var o=e(65164),m=e(82274),g=e(64978),l=e(82576),C=e(38422),T=e(75221);const A=p=>[{theme:C.d.DEFAULT,src:"default",title:p.FloatingToolbar.Mind.themeSelect.default},{theme:C.d.RAINBOW,src:"rainbow",title:p.FloatingToolbar.Mind.themeSelect.rainbow},{theme:C.d.RETRO,src:"retro",title:p.FloatingToolbar.Mind.themeSelect.retro},{theme:C.d.YOUTH,src:"youth",title:p.FloatingToolbar.Mind.themeSelect.youth},{theme:C.d.CLASSICAL,src:"classical",title:p.FloatingToolbar.Mind.themeSelect.classical},{theme:C.d.DARK,src:"dark",title:p.FloatingToolbar.Mind.themeSelect.dark}],k=(0,o.s)(p=>({controlConfig:[{component:m.e,styleConfig:{inDropdown:!0,icon:"floating_toolbar/mind/theme",className:"floating_toolbar-mind-theme",title:p.FloatingToolbar.Mind.theme,options:A(p)},getMiddleProps:r=>{const{theme:x,widget:f,refresh:u,dispatch:b}=r;return{theme:x,onChange:E=>{b({type:"entry:widget:change",payload:{flatChgList:[{key:f.key,hotAttr:{theme:E}}]}}),(0,T.h)("\u4FEE\u6539\u4E3B\u9898"),u()}}}},{component:g.p,styleConfig:{inDropdown:!0,title:p.FloatingToolbar.Mind.bgColor,colors:["#ffffff","#e6e6e6","#ff9e93","#9dc4ff","#54d691","#daa3ff","#fdd143","#ff9e47"]},getMiddleProps:r=>{const{widget:x,refresh:f,dispatch:u}=r;return{onChange:h=>{u({type:"entry:widget:change",payload:{flatChgList:[{key:x.key,hotAttr:{fill:h}}]}}),(0,T.h)("\u4FEE\u6539\u80CC\u666F\u8272"),f()}}}},{component:l.x,styleConfig:{inDropdown:!0,title:p.FloatingToolbar.Mind.stroke,className:"mind-node-stroke",colors:["#191919","#666666","#ffffff","#1684fc","#00A056","#9B33E1","#E96200","#EC4954"]},getMiddleProps:r=>{const{widget:x,theme:f,refresh:u,dispatch:b}=r;return{theme:f,onChange:E=>{b({type:"entry:widget:change",payload:{flatChgList:[{key:x.key,hotAttr:{border:E}}]}}),(0,T.h)("\u4FEE\u6539\u63CF\u8FB9"),u()}}}}]}))},65164:(Et,ke,e)=>{"use strict";e.d(ke,{s:()=>o});const o=m=>g=>m(g)},64978:(Et,ke,e)=>{"use strict";e.d(ke,{p:()=>u});var o=e(74059),m=e(51044),g=e(7290),l=e(98712),C=e(5434),T=e(2743),A=e(68496),k=e(91416),p=e(98236),r=e.n(p),x=e(19832),f=e(57464);class u extends m.Component{constructor(){super(...arguments),(0,o.A)(this,"$ref",null),(0,o.A)(this,"setDropdownRef",h=>{this.$ref=h}),(0,o.A)(this,"toggleColor",h=>{const E=(0,k.zX)(h);this.props.onChange({fillIsVisible:!0,fill:"solid",solidColor:E}),this.$ref&&this.$ref.close&&this.$ref.close()}),(0,o.A)(this,"handleVisibleChange",()=>{const{widget:{hotAttr:{fill:h}},onChange:E}=this.props;E({...h,fillIsVisible:!1})}),(0,o.A)(this,"handleChangeColor",h=>{const{onChange:E}=this.props;E({...h,fillIsVisible:!0})})}shouldComponentUpdate(h,E,N){return h.widget.key!==this.props.widget.key||!r()(h.widget.hotAttr.fill,this.props.widget.hotAttr.fill)}render(){const{config:h,dropdownPosition:E,widget:N,onOpenColorPanel:z,onCloseColorPanel:S}=this.props,{colors:_}=h,{hotAttr:{fill:y,fill:{fillIsVisible:a,solidColor:$}}}=N,ce=(0,A.t0)($);return(0,f.jsx)(l.A,{ref:this.setDropdownRef,top:E==="bottom"?40:-93,left:-61,closeOnContentClick:!1,title:h.title,trigger:(0,f.jsx)(x.Pu,{className:"trigger-container",children:a?(0,f.jsx)(x.tF,{color:ce}):(0,f.jsx)(g.C,{name:"floating_toolbar/mind/bg/transparent",className:"noSetColor"})}),children:(0,f.jsx)(x.BM,{className:"content-container mind-bgColor-options",children:(0,f.jsxs)("div",{className:"color-option-container",children:[(0,f.jsxs)(C.A,{value:"",title:"",active:!a,onClick:this.handleVisibleChange,children:[(0,f.jsx)(g.C,{name:"floating_toolbar/mind/noSetColor",className:"noSetColor"}),(0,f.jsx)("span",{className:"frame"})]}),_.map((de,fe)=>{const se=(0,k.dT)($).solidColor,J=(0,k.dT)(de).solidColor;return(0,f.jsx)(C.A,{value:de,active:a&&se===J,title:"",widget:N,onClick:this.toggleColor,children:(0,f.jsx)(x.tF,{size:18,color:de,children:(0,f.jsx)("span",{className:"frame"})})},fe)}),(0,f.jsx)(T.R_,{attr:"fill",color:y,pIsSolidColorOnly:!0,iconImg:{src:"/mb-proto2/images/font_color_picker.png",width:18,height:18},colorPanelPosOffset:{offsetLeft:380,offsetTop:340},onChange:this.handleChangeColor,onOpenColorPanel:z,onCloseColorPanel:S})]})})})}}},19832:(Et,ke,e)=>{"use strict";e.d(ke,{BM:()=>l,Pu:()=>m,tF:()=>g});var o=e(21676);const m=o.Ay.div.withConfig({displayName:"styles__StyledMindBgColorTriggerContainer",componentId:"sc-1e0e3hw-0"})(["&.trigger-container{width:28px;padding:0;display:flex;align-items:center;justify-content:center;margin-right:5px;.icon.noSetColor{width:28px;height:28px;circle{fill:none;}mask{circle{fill:#fbfbfb;}}}}"]),g=o.Ay.div.withConfig({displayName:"styles__StyledMindBgColorContainer",componentId:"sc-1e0e3hw-1"})(["width:","px;height:","px;border-radius:50%;border-width:1px;border-color:rgba(102,102,102,0.3);border-style:solid;background:",";position:relative;.frame{position:absolute;border-radius:50%;pointer-events:none;inset:-4px;}&.dark{border-color:","}"],C=>C.size||14,C=>C.size||14,C=>C.color?C.color:"unset",C=>C.color==="#191919"?"#606060":"rgba(102, 102, 102, 0.3)"),l=o.Ay.div.withConfig({displayName:"styles__StyledMindBgColorOptionContainers",componentId:"sc-1e0e3hw-2"})(["width:150px;padding:20px 13px;.color-option-container{width:122px;display:grid;grid-template-columns:repeat(auto-fill,18px);grid-row-gap:5px;grid-column-gap:8px;.icon.noSetColor{width:18px;circle{fill:none;}&.dark{circle,path{stroke:#606060;}}}.draft-toolbar-dropdown-option{width:18px;height:18px;padding:0;margin:0;position:relative;.frame{position:absolute;border-radius:50%;pointer-events:none;inset:-4px;}&:active{background-color:unset;}&:not(.active):hover{background-color:unset;.frame{box-shadow:"," 0 0 0 2px inset;}}&.active{background-color:unset;.frame{box-shadow:"," 0 0 0 2px inset;}}}}.border-style-option-container{display:grid;align-items:center;justify-content:center;grid-template-columns:repeat(3,33.33%);background:",";width:124px;padding:0 2px;height:24px;border-radius:4px;.border-style-option{display:flex;align-items:center;justify-content:center;height:20px;border-radius:4px;cursor:pointer;.icon{width:16px;}&.selected{background:",";box-shadow:0 2px 4px rgba(0,0,0,0.09);&.dark{box-shadow:0 2px 3px rgba(0,0,0,0.15);}}}}.border-width-container{margin-top:14px;margin-bottom:15px;width:122px;display:flex;align-items:center;justify-content:space-between;.left{display:flex;align-items:center;justify-content:center;.icon{width:13px;margin-right:4px;}}.right{width:50px;}.bdr-input{width:54px;height:28px;border-radius:4px;}}"],C=>C.theme.color_bg_select01,C=>C.theme.color_proto,C=>C.theme.color_background_icon_hover2,C=>C.theme.color_bg_white)},82576:(Et,ke,e)=>{"use strict";e.d(ke,{x:()=>se});var o=e(74059),m=e(51044),g=e(86634),l=e.n(g),C=e(7290),T=e(98712),A=e(5434),k=e(2743),p=e(68496),r=e(91416),x=e(4114),f=e(60081),u=e(49133),b=e(98236),h=e.n(b),E=e(21676),N=e(95230),z=e(54909);const S=(0,r.zX)(z.f.color_bg_white.value_light),_=(0,r.zX)(z.f.color_bg_white.value_dark),y=J=>{const{borderColor:ve,configTheme:D}=J,R=(0,r.dT)(ve).solidColor;return D===N.Sx.LIGHT&&R===S||D===N.Sx.DARK&&R===_?"block":"none"},a=E.Ay.div.withConfig({displayName:"styles__StyledMindStrokeTriggerContainer",componentId:"sc-1ormd06-0"})(["&.trigger-container{width:28px;padding:0;display:flex;align-items:center;justify-content:center;margin-right:5px;.icon.noSetColor{width:28px;height:28px;path{fill:#f5f5f5;}g{path{fill:#9fa0a4;}}}&.mind-node-stroke{margin-right:0;}}"]),$=E.Ay.div.withConfig({displayName:"styles__StyledMindStrokeDiv",componentId:"sc-1ormd06-1"})(["width:14px;height:14px;border-radius:50%;border-width:3px;border-color:",";border-style:",";position:relative;&::after{content:'';display:",";width:8px;height:8px;position:absolute;top:0;left:0;border:1px solid ",";border-radius:50%;}&::before{content:'';display:",";width:14px;height:14px;position:absolute;top:-3px;left:-3px;border:1px solid ",";border-radius:50%;}"],J=>J.borderColor,J=>J.bdrStyle,J=>y(J),J=>J.configTheme===N.Sx.LIGHT?"rgba(0, 0, 0, 0.2)":"rgba(255, 255, 255, 0.2)",J=>y(J),J=>J.configTheme===N.Sx.LIGHT?"rgba(0, 0, 0, 0.2)":"rgba(255, 255, 255, 0.2)");var ce=e(19832),de=e(57464);const fe=(0,x.R)(()=>[{label:(0,de.jsx)(C.C,{name:"floating_toolbar/mind/bs_solid"}),value:"solid"},{label:(0,de.jsx)(C.C,{name:"floating_toolbar/mind/bs_dotted"}),value:"dashed"},{label:(0,de.jsx)(C.C,{name:"floating_toolbar/mind/bs_dashed"}),value:"dotted"}]);class se extends m.Component{constructor(){super(...arguments),(0,o.A)(this,"$ref",null),(0,o.A)(this,"setDropdownRef",ve=>{this.$ref=ve}),(0,o.A)(this,"toggleColor",ve=>{const{widget:{hotAttr:{border:D}},onChange:R}=this.props,V=(0,r.zX)(ve);R({...D,bdrIsVisible:!0,bdrColor:V}),this.$ref&&this.$ref.close&&this.$ref.close()}),(0,o.A)(this,"handleVisibleChange",()=>{const{widget:{hotAttr:{border:ve}},onChange:D}=this.props;D({...ve,bdrIsVisible:!1})}),(0,o.A)(this,"handleChangeMore",ve=>{const{widget:{hotAttr:{border:D}},onChange:R}=this.props;R({...D,bdrIsVisible:!0,bdrColor:ve})}),(0,o.A)(this,"handleTabChange",ve=>{const{widget:{hotAttr:{border:D}},onChange:R}=this.props;R({...D,bdrStyle:ve})}),(0,o.A)(this,"handleChangeBorder",(ve,D)=>{const{widget:{hotAttr:{border:R}},onChange:V}=this.props;V({...R,[D]:ve})})}shouldComponentUpdate(ve,D,R){return ve.widget.key!==this.props.widget.key||!h()(ve.widget.hotAttr.border,this.props.widget.hotAttr.border)}render(){const{config:ve,dropdownPosition:D,widget:R,theme:V,onOpenColorPanel:O,onCloseColorPanel:Ce}=this.props,{colors:ae,title:q,className:K}=ve,{hotAttr:{border:{bdrIsVisible:xe,bdrColor:te,bdrStyle:H,bdrWidth:re}}}=R,be=(0,p.t0)(te),Le=fe();return(0,de.jsx)(T.A,{ref:this.setDropdownRef,top:D==="bottom"?40:-168,left:-61,closeOnContentClick:!1,title:ve.title,trigger:(0,de.jsx)(a,{className:l()("trigger-container",K),children:xe?(0,de.jsx)($,{borderColor:be,bdrStyle:H,configTheme:V}):(0,de.jsx)(C.C,{name:"floating_toolbar/mind/stroke/transparent",className:"noSetColor"})}),children:(0,de.jsxs)(ce.BM,{className:"content-container mind-bgColor-options mind-stroke-options",children:[(0,de.jsx)("div",{className:"border-style-option-container",children:Le.map(Ve=>{let{label:Ne,value:We}=Ve;return(0,de.jsx)("div",{className:l()("border-style-option",{selected:H===We},V),onClick:()=>this.handleTabChange(We),children:Ne},We)})}),(0,de.jsxs)("div",{className:"border-width-container",children:[(0,de.jsxs)("div",{className:"left",children:[(0,de.jsx)(C.C,{name:"floating_toolbar/mind/stroke"}),(0,de.jsx)("span",{children:q})]}),(0,de.jsx)("div",{className:"right",children:(0,de.jsx)(f.A,{className:"bdr-input",attr:"bdrWidth",value:re,optionList:u.xq,onConfirm:this.handleChangeBorder})})]}),(0,de.jsxs)("div",{className:"color-option-container",children:[(0,de.jsxs)(A.A,{value:"",title:"",active:!xe,onClick:this.handleVisibleChange,children:[(0,de.jsx)(C.C,{name:"floating_toolbar/mind/noSetColor",className:l()("noSetColor",V)}),(0,de.jsx)("span",{className:"frame"})]}),ae.map((Ve,Ne)=>{const We=(0,r.dT)(te).solidColor,ze=(0,r.dT)(Ve).solidColor;return(0,de.jsx)(A.A,{value:Ve,active:xe&&We===ze,title:"",widget:R,onClick:this.toggleColor,children:(0,de.jsx)(ce.tF,{className:V,size:18,color:Ve,children:(0,de.jsx)("span",{className:"frame"})})},Ne)}),(0,de.jsx)(k.R_,{attr:"bdrColor",color:te,pIsSolidColorOnly:!0,iconImg:{src:"/mb-proto2/images/font_color_picker.png",width:18,height:18},colorPanelPosOffset:{offsetLeft:380,offsetTop:340},onChange:this.handleChangeMore,onOpenColorPanel:O,onCloseColorPanel:Ce})]})]})})}}},82274:(Et,ke,e)=>{"use strict";e.d(ke,{e:()=>x,k:()=>f});var o=e(51044),m=e(7290),g=e(98712),l=e(5434),C=e(21676);const T=C.Ay.div.withConfig({displayName:"styles__StyledMindThemeTriggerContainer",componentId:"sc-fg56ub-0"})(["width:42px;padding:0;margin-right:5px;.icon.floating_toolbar-mind-theme{width:14px;height:14px;path{fill:none;stroke:",";}circle{fill:",";}}"],u=>u.theme.color_text_L1,u=>u.theme.color_text_L1),A=C.Ay.div.withConfig({displayName:"styles__StyledMindCard",componentId:"sc-fg56ub-1"})(["&.theme-container{display:flex;flex-direction:column;justify-content:center;align-items:center;.img-container{width:110px;height:82px;border-radius:4px;border:1px solid ",";position:relative;box-sizing:content-box;background-color:",";img{width:100%;border-radius:4px;}.frame{position:absolute;border-radius:6px;pointer-events:none;inset:-2px;}}.theme-title{margin-top:4px;}}"],u=>u.theme.color_bg_border_02,u=>u.theme.color_text_btn),k=C.Ay.div.withConfig({displayName:"styles__StyledMindThemeOptionContainers",componentId:"sc-fg56ub-2"})(["&.mind-theme-options{display:grid;grid-row-gap:8px;grid-column-gap:16px;border-radius:8px;padding:20px;grid-template-columns:repeat(2,110px);.draft-toolbar-dropdown-option{width:110px;height:103px;padding:0;margin:0;&:active{background-color:unset;}&:not(.active):hover{background-color:unset;.frame{box-shadow:#79BAFF 0 0 0 2px inset;}}&.active{background-color:unset;.frame{box-shadow:"," 0 0 0 2px inset;}}}}"],u=>u.theme.color_proto);var p=e(29601),r=e(57464);class x extends o.PureComponent{render(){const{config:b,dropdownPosition:h,widget:E,onChange:N}=this.props,{title:z,icon:S,className:_,options:y}=b,{hotAttr:{theme:a}}=E;return(0,r.jsx)(g.A,{title:z,top:h==="bottom"?40:-260,left:-29,closeOnContentClick:!0,trigger:(0,r.jsxs)(T,{className:"trigger-container",children:[(0,r.jsx)("div",{className:"icon",children:(0,r.jsx)(m.C,{name:S,className:_})}),(0,r.jsx)("div",{className:"trigger",children:(0,r.jsx)(m.C,{name:"draft/tri-drop",className:"tri-drop"})})]}),children:(0,r.jsx)(k,{className:"content-container mind-theme-options",children:y.map(($,ce)=>{let{theme:de,src:fe,title:se}=$;return(0,r.jsx)(l.A,{value:de,active:a===de,title:"",supTitle:se,widget:E,onClick:N,children:(0,r.jsx)(f,{src:fe,title:se})},ce)})})})}}const f=u=>{let{src:b,title:h}=u;return(0,r.jsxs)(A,{className:"theme-container",children:[(0,r.jsxs)("div",{className:"img-container",children:[(0,r.jsx)("img",{src:"/mb-proto2/images/floatingToolbar/mind_v1/"+b+((0,p.k)()?"":"_en")+".png",alt:""}),(0,r.jsx)("span",{className:"frame"})]}),(0,r.jsx)("span",{className:"theme-title",children:h})]})}},18578:(Et,ke,e)=>{"use strict";e.d(ke,{R7:()=>de,iA:()=>a,mJ:()=>$});var o=e(35332),m=e(28497),g=e(40829),l=e(61269),C=e(19216),T=e(78647),A=e(58724),k=e(77777),p=e(50167),r=e(97788),x=e(32460),f=e(47143),u=e(54606),b=e(61535),h=e(7173),E=e(20029),N=e(30797),z=e(61724),S=e(30939),_=e(14672),y=e(62065);const a=-999,$=250,de=(()=>{const fe={isEditorFloatOpen:!1,editorFloatPosition:{top:a,left:a},editorFloatOpenFrom:"treePanelRightNormal",selectInteractionKeyList:[],selectItaInfo:{type:"empty",keyList:[]},newInteractionTypeEditingKey:"",stateStack:[]},se=function(kt,Ze){kt===void 0&&(kt=fe);let{type:it="interaction:state:update",payload:st=fe}=Ze,dt=[];if(st)if(st.stateStack)dt=[];else{dt=[...kt.stateStack];const Ot={};st.selectInteractionKeyList?Ot.selectInteractionKeyList=st.selectInteractionKeyList:Ot.selectInteractionKeyList=kt.selectInteractionKeyList,st.selectItaInfo?Ot.selectItaInfo=st.selectItaInfo:Ot.selectItaInfo=kt.selectItaInfo,dt.push(Ot)}switch(it){case"interaction:state:update":return{...kt,...st,stateStack:dt};default:return kt}},J=(kt,Ze)=>{Ze({type:"interaction:state:update",payload:{...kt}})},[ve,D]=S.B.genCommand({name:"interaction:interactionKeyList:select",impl:(kt,Ze)=>{let{dispatch:it,getState:st}=kt,{payload:{selectInteractionKeyList:dt,isScroll:Ot}}=Ze;const Ct=st(),wo=Yo.getNewInteractionTypeEditingKey(Ct);let ln="";wo===dt[0]&&(ln=wo),J({...(0,r.qL)(dt),newInteractionTypeEditingKey:ln},it),Ot&&dt.length>0&&setTimeout(()=>{(0,r._6)({itaKey:dt[0]})},4)}}),[R,V]=S.B.genCommand({name:"interaction:clear:all",impl:(kt,Ze)=>{let{dispatch:it}=kt,{payload:st}=Ze;J({...(0,r.qL)([]),isEditorFloatOpen:!1,newInteractionTypeEditingKey:"",editorFloatOpenFrom:"treePanelRightNormal",stateStack:[]},it),st.withClearCellLinks&&it({type:"links:active:link",payload:{cid:[]}})}}),[O,Ce]=S.B.genCommand({name:"interaction:interactionEditorFloat:open",impl:(kt,Ze)=>{let{dispatch:it,getState:st}=kt,{payload:dt}=Ze;const Ot=st(),wo=Yo.getSelectInteractionKeyList(Ot)[0],ln=document.querySelector('#interaction-tree-list [data-key="'+wo+'"]');if(!ln)return;const{top:Io,left:Lo}=ln.getBoundingClientRect(),Ao=document.getElementById("tree-editor-float");let xt;Ao?xt=Ao.getBoundingClientRect().height:xt=r.CS[dt==null?void 0:dt.interactionType]||107;const{finalTop:Ut,finalLeft:Wo}=(0,r.X2)({top:Io,left:Lo,height:xt}),qo=()=>{dt!=null&&dt.alignTop?J({isEditorFloatOpen:!0,editorFloatOpenFrom:"alignTop",editorFloatPosition:{top:102,left:Wo-$}},it):J({isEditorFloatOpen:!0,editorFloatOpenFrom:"treePanelRightNormal",editorFloatPosition:{top:Ut,left:Wo-$}},it),it({type:"settings:update:state",payload:{selectCarouselImageIndex:null}})};dt!=null&&dt.directlySelect?qo():(0,r._6)({itaKey:wo,callback:qo})}}),[ae,q]=S.B.genCommand({name:"interaction:intActConnector:select",impl:(kt,Ze)=>{var it;let{dispatch:st}=kt,{payload:{interaction:dt,e:Ot}}=Ze;(it=dt.data)!=null&&it.triggerItemKey&&st({type:"entry:select:items",payload:{cids:[dt.data.triggerItemKey]}}),st({type:"right-side-panel:show:panel"}),st({type:"settings:set:autoTabIndex",payload:{autoTabIndex:1}});let Ct=r.CS[dt.interactionType];dt.interactionType===m.O2.SetVisibility&&(Ct=r.CS[dt.actionType]);const{finalTop:wo,finalLeft:ln}=(0,r.X2)({top:Ot.clientY+20,left:Ot.clientX-120,height:Ct});J({isEditorFloatOpen:!0,editorFloatOpenFrom:"itaConnector",...(0,r.qL)([dt.key]),editorFloatPosition:{top:wo,left:ln}},st),setTimeout(()=>{(0,r._6)({itaKey:dt.key})},4)}}),[K,xe]=S.B.genCommand({name:"interaction:editingInteraction:create",impl:(kt,Ze)=>{let{getState:it,dispatch:st}=kt,{payload:{interactionType:dt,interactionTrigger:Ot,openEditorFloat:Ct,uiFrom:wo,isActionDummy:ln,interactionStore:Io}}=Ze;const Lo=it(),Ao=(0,z.zX)(Lo),Ut=(0,N.Z9)(Lo)[0].key,Wo=sdkStore.getHotItem(Ut),qo=(0,r.P8)(dt);if(!qo)return;qo.interactionTrigger=Ot,(0,p.cM)({ita:qo,state:Lo});const{selectSubItaType:sn}=(0,p.ju)(Lo,wo);if(sn!=="empty"&&(qo.subKey=(0,o.cF)("sub")),Wo.hotAttr.type==="wTable"&&Ao&&(0,r.PP)(Ao)>1){if((0,g.SS)(Wo.hotAttr)){const{newHi:Kn,selectKeyList:ds,activeLinkList:_s}=(0,r.OT)({item:Wo,selectTableCellInfo:Ao,newInteraction:qo});if(st({type:"entry:widget:change",payload:{flatChgList:[Kn]}}),ln)return;st({type:"links:active:link",payload:{cid:_s}}),st(D({selectInteractionKeyList:ds})),setTimeout(()=>{(0,r._6)({itaKey:qo.key}),Ct&&st(Ce({}))},4),st(be({newIta:qo}))}}else{const Kn=(0,r.Md)(qo.interactionTrigger),ds=[];Io.command.insertNodeIta(qo,Kn),ds.push(qo);const{mergePair:_s,tableMisc:Ls}=(0,r.Bj)({hi:Wo,selectSubItaType:sn,state:Lo,newItaList:ds});if(_s.hotAttr.interactions=Io.command.getInteractionsWithUV([qo.interactionTrigger]),st({type:"entry:widget:change",payload:{flatChgList:[_s]}}),Ls&&st({type:"links:active:link",payload:{cid:Ls.activeCidList}}),ln)return;J({...(0,r.qL)([qo.key]),newInteractionTypeEditingKey:qo.key},st),setTimeout(()=>{(0,r._6)({itaKey:qo.key}),Ct&&st(Ce({interactionType:qo.interactionType})),st(be({newIta:qo}))},4)}st({type:"entry:refresh:link-list"})}}),[te,H]=S.B.genCommand({name:"interaction:linkDesignCreateIta",impl:(kt,Ze)=>{let{getState:it,dispatch:st}=kt,{payload:{interactionTrigger:dt,newInteraction:Ot,e:Ct}}=Ze;const wo=it(),ln=(0,N.Z9)(wo)[0],Io={...Ot};(0,p.cM)({ita:Io,state:wo});const Lo=(0,x.W)(ln.interactions.filter(Ut=>!Ut.subKey)),Ao=(0,k.E)({buildTreeRes:{itaTree:(0,r.Yj)({interactions:Lo}).itaTree,runTimeInteraction:Lo.map(Ut=>({...Ut,data:{...Ut}}))},selectSubItaType:"empty",type:"hasData",widget:ln});Ao.command.insertNode((0,r.db)({attr:{...Io,data:{...Io}},supKey:(0,r.Md)(dt)}));const xt={key:ln.key,hotAttr:{interactions:Ao.command.getInteractionsWithUV([dt])}};st({type:"entry:widget:change",payload:{flatChgList:[xt]}}),st({type:"entry:refresh:link-list"}),st(de.command.intActConnectorSelectCommand({interaction:Io,e:Ct})),setTimeout(()=>{st(be({newIta:Io}))},4)}}),[re,be]=S.B.genCommand({name:"interaction:interaction:guide",impl:(kt,Ze)=>{let{getState:it,dispatch:st}=kt,{payload:{newIta:dt}}=Ze;const Ot=it(),{scene_tag:Ct}=(0,f.PL)(Ot);dt.transition==="auto"&&dt.interactionType===m.O2.LinkToCanvas&&setTimeout(()=>{MB.commonGuideHelper.tryToShowGuide(T.c.GUIDE_PAGE_CREAT_LINK2)},30),Ct&&(Ct.split("-")[0]==="DS"?st({type:"entry:update:novice:guide:and:task",payload:{taskType:T.c.GUIDE_NOVICE_2309_TASK_3}}):st({type:"entry:update:novice:guide:and:task",payload:{guideType:T.c.GUIDE_NOVICE_2309_STEP_3,taskType:T.c.GUIDE_NOVICE_2309_TASK_3}}))}}),[Le,Ve]=S.B.genCommand({name:"interaction:treePanelSingle:create",impl:(kt,Ze)=>{let{getState:it,dispatch:st}=kt,{payload:{triggerList:dt,interactionStore:Ot}}=Ze;const Ct=it(),ln=(0,N.Z9)(Ct)[0].key,Io=sdkStore.getHotItem(ln),Lo=Ot.query.getSelectSubItaType(),Ao=dt.map(Ut=>({...(0,m.SL)(),interactionTrigger:Ut,subKey:(0,o.cF)("sub")}));for(const Ut of Ao)Ot.command.insertNode((0,r.db)({attr:{...Ut,data:Ut},supKey:(0,r.Md)(Ut.interactionTrigger)}));const xt={key:ln,hotAttr:{interactions:Ot.query.getInteractions()}};if(Lo==="optionData"){const{updateNode:Ut}=(0,r.DL)({type:"create",interactionList:Ao,optionData:Io.hotAttr.optionData,state:Ct,mergePair:xt});st({type:Ho["interaction:sub:optionData:craete"],payload:{updateNode:Ut}})}else Lo==="carouselImage"&&(0,r.e7)({type:"create",interactionList:Ao,carousel:Io.hotAttr.carousel,state:Ct,mergePair:xt});st({type:"entry:widget:change",payload:{flatChgList:[xt]}}),st({type:"entry:refresh:link-list"}),st(D({selectInteractionKeyList:[(0,r.Yw)(dt[0])]}))}}),[Ne,We]=S.B.genCommand({name:"interaction:instant:create",impl:(kt,Ze)=>{let{getState:it,dispatch:st}=kt,{payload:{triggerType:dt,uiFrom:Ot,interactionTree:Ct,interactionStore:wo}}=Ze;const ln=Ct==null?void 0:Ct.sub.find(Io=>Io.attr.trigger===dt);Ct&&ln||st(xe({interactionType:m.O2.TriggerPlaceHolder,interactionTrigger:dt,uiFrom:Ot,isActionDummy:!0,interactionStore:wo})),J({...(0,r.qL)([(0,r.Yw)(dt)])},st)}}),[ze,ft]=S.B.genCommand({name:"interaction:editingInteraction:edit",impl:(kt,Ze)=>{let{getState:it,dispatch:st}=kt,{payload:{link:dt,attr:Ot,value:Ct,uiFrom:wo,interactionTree:ln,interactionStore:Io,isNewTriggerPlaceHolder:Lo=!0}}=Ze;const Ao=it(),Ut=(0,N.Z9)(Ao)[0].key,Wo=Yo.getSelectInteractionKeyList(Ao);if(Wo.length>1){var qo;const Do=(qo=sdkStore.getHotItem(dt.triggerItemKey))==null?void 0:qo.hotAttr.interactions;if(!Do)return;let Go=[...Do];for(const Mo of Do)if(Wo.includes(Mo.key)){const Cn=(0,r.GE)({link:dt,attr:Ot,v:Ct,state:Ao,attrInteraction:Mo}),{newInteractions:Tn}=(0,r.bH)({interactions:Go},Cn);Go=Tn}const an=[{key:dt.triggerItemKey,hotAttr:{interactions:Go}}];st({type:"entry:widget:change",payload:{flatChgList:an}});return}const sn=sdkStore.getHotItem(Ut);if(!sn)return;let Kn=[...sn.hotAttr.interactions];const ds=Kn.find(Do=>{let{key:Go,interactionType:an}=Do;return Go===dt.key&&an===dt.interactionType})||dt;let _s={};if(Ot==="interactionTrigger"){var Ls;const Do=ds.interactionTrigger;if(Io.command.moveNodeToNewSup(ds.key,(0,r.Md)(Ct)),Kn=Io.command.getInteractionsWithUV([Do,Ct]),Lo&&ln.sub.length>1&&((Ls=Io.query.getTriggerNode(ds.interactionTrigger))==null?void 0:Ls.sub.length)===1){const an=Io.query.getSelectSubItaType(),Mo={...(0,r.P8)(m.O2.TriggerPlaceHolder),interactionTrigger:ds.interactionTrigger,"!validVersion":2};_s=(0,r.gk)({hi:{...sn,hotAttr:{...sn==null?void 0:sn.hotAttr,interactions:Kn}},selectSubItaType:an,newIta:Mo,state:Ao,interactionTrigger:ds.interactionTrigger,preserveOrder:ds.order}).newFlatChg,_s&&(Kn=_s.hotAttr.interactions)}const Go=[{key:sn.key,hotAttr:{..._s.hotAttr,interactions:Kn}}];st({type:"entry:widget:change",payload:{flatChgList:Go}}),st({type:"entry:refresh:link-list"}),setTimeout(()=>{(0,r._6)({itaKey:dt.key})},4);return}const gs=(0,r.GE)({link:dt,attr:Ot,v:Ct,state:Ao,attrInteraction:ds});Io.command.replaceIta(gs);const ns=Io.command.getInteractionsWithUV([gs.interactionTrigger]),Wn=[{key:Ut,hotAttr:{..._s.hotAttr,interactions:ns}}];st({type:"entry:widget:change",payload:{flatChgList:Wn}}),st({type:"entry:refresh:link-list"}),Ot==="interactionType"&&(wo==="treePanelRight"&&st(de.command.interactionEditorFloatOpenCommand({directlySelect:!0,interactionType:Ct})),J({newInteractionTypeEditingKey:dt.key},st))}}),[mt,i]=S.B.genCommand({name:"interaction:editingInteraction:edit:batch",impl:(kt,Ze)=>{let{getState:it,dispatch:st}=kt,{payload:{attr:dt,value:Ot,trigger:Ct,interactionStore:wo}}=Ze,ln;dt==="interactionTrigger"?(wo.command.updateTriggerNodeTrigger({trigger:Ct,attr:dt,value:Ot}),ln=[{key:wo.query.getCurrentWidget().key,hotAttr:{interactions:wo.command.getInteractionsWithUV([Ot])}}]):(wo.command.updateTriggerNode({trigger:Ct,attr:dt,value:Ot}),ln=[{key:wo.query.getCurrentWidget().key,hotAttr:{interactions:wo.command.getInteractionsWithUV([Ct])}}]),st({type:"entry:widget:change",payload:{flatChgList:ln}}),st({type:"entry:refresh:link-list"})}}),[gt,Je]=S.B.genCommand({name:"interaction:interaction:delete2",impl:(kt,Ze)=>{let{getState:it,dispatch:st}=kt,{payload:{uiFrom:dt,interactionStore:Ot,deleteNode:Ct,deleteUiFrom:wo,onCloseCallback:ln}}=Ze;const Io=it(),Lo=(0,N.x$)(Io),Ao=(0,z.zX)(Io),xt=Lo[0].key,Ut=sdkStore.getHotItem(xt),{selectSubItaType:Wo}=(0,p.ju)(Io,dt);let qo;if(dt==="treePanelFloat"){const gs=Yo.getSelectInteractionKeyList(Io)[0],{renderContentType:ns,nextKey:Wn}=(0,r.H4)(Ot._interactionTree);if(ns==="multiple"){const Do=Ot.query.findUpNodeList(Ot.query.getNode(gs));gs===Ct.attr.key||Do.map(Go=>Go.attr.key).includes(Ct.attr.key)?qo=(0,r.he)({selectNode:Ct,interactionTree:Ot._interactionTree}):qo=[gs]}else ns==="single"?qo=[Wn]:qo=[Wn]}Ot.command.deleteByTreeNode({treeNode:Ct,uiFrom:dt});const sn=[];if(wo==="treePanelFloat"&&Wo!=="empty"&&Wo!=="tableCell"&&Ot._interactionTree.sub.length===1){const gs=Ot._interactionTree.sub[0];if((0,r.xx)(gs.sub).length===1&&!gs.sub.find(ns=>ns.interactionType===m.O2.TriggerPlaceHolder)){const ns={...(0,m.SL)(),subKey:(0,o.cF)("sub"),interactionTrigger:gs.attr.trigger};Ot.command.insertNodeIta(ns,gs.attr.key),sn.push(ns)}}const Kn=Ot.command.getInteractionsWithUV([Ct.type==="action"?Ct.attr.interactionTrigger:Ct.attr.trigger]),ds={key:xt,hotAttr:{interactions:Kn}};if(Wo==="optionData"){var _s;let gs;const{updateNode:ns}=(0,r.DL)({type:"delete",interactionList:Kn,optionData:Ut.hotAttr.optionData,state:Io,mergePair:ds});if(gs=ns,sn.length>0){const{updateNode:Wn}=(0,r.DL)({type:"create",interactionList:sn,optionData:ds.hotAttr.optionData,state:Io,mergePair:ds});gs=Wn}((_s=qo)==null?void 0:_s.length)===0&&(ln==null||ln()),st({type:Ho["interaction:sub:optionData:delete"],payload:{updateNode:gs}})}else if(Wo==="carouselImage"){var Ls;(0,r.e7)({type:"delete",interactionList:Kn,carousel:Ut.hotAttr.carousel,state:Io,mergePair:ds}),sn.length>0&&(0,r.e7)({type:"create",interactionList:sn,carousel:ds.hotAttr.carousel,state:Io,mergePair:ds}),((Ls=qo)==null?void 0:Ls.length)===0&&(ln==null||ln())}else if(Wo==="tableCell"){const{activeLinkList:gs}=(0,r.g)({type:"delete",oldHi:Ut,selectTableCellInfo:Ao,interactionList:Kn,mergePair:ds});st({type:"links:active:link",payload:{cid:gs}})}st(D(qo?{selectInteractionKeyList:qo}:{selectInteractionKeyList:[]})),st({type:"entry:widget:change",payload:{flatChgList:[ds]}}),st({type:"entry:refresh:link-list"})}}),[Pt,bt]=S.B.genCommand({name:"interaction:intActConnector:delete2",impl:(kt,Ze)=>{let{getState:it,dispatch:st}=kt,{payload:{interactionKeyList:dt}}=Ze;const Ot=it(),wo=(0,N.x$)(Ot)[0].key,ln=sdkStore.getHotItem(wo),Io=ln.hotAttr.interactions,{nextItaList:Lo}=(0,r.BX)({prevInteractionList:Io,deleteKeyList:dt,hasSubKey:!1}),Ao={key:ln.key,hotAttr:{interactions:Lo}};st({type:"entry:widget:change",payload:{flatChgList:[Ao]}}),st({type:"entry:refresh:link-list"}),st(D({selectInteractionKeyList:[]}))}}),[qt,pt]=S.B.genCommand({name:"interaction:insert",impl:(kt,Ze)=>{let{getState:it,dispatch:st}=kt,{payload:{sourceInteractionKey:dt,targetInteractionKey:Ot,insertType:Ct,selectTreeNode:wo,interactionStore:ln}}=Ze;const Io=it(),Ao=(0,N.Z9)(Io)[0].key,xt=sdkStore.getHotItem(Ao);let Ut=[],Wo={hotAttr:{}},qo;ln.command.moveNodeToSibiling(dt,Ot,Ct);const sn=ln.query.getSelectSubItaType(),Kn=ln.query.findUpTriggerNode(dt),ds=ln.query.findUpTriggerNode(Ot);if(Kn.sub.length===1){const Ls={...(0,r.P8)(m.O2.TriggerPlaceHolder),interactionTrigger:wo.attr.interactionTrigger};if(sn!=="empty"&&(Ls.subKey=(0,o.cF)("sub")),ln.command.insertNode((0,r.db)({attr:{...Ls,data:Ls},supKey:Kn.attr.key})),sn!=="empty"){const{tableMisc:gs,mergePair:ns}=(0,r.Bj)({hi:xt,selectSubItaType:sn,newItaList:[Ls],state:Io});Wo=ns,qo=gs}}Ut=ln.command.getInteractionsWithUV([Kn.attr.trigger,ds.attr.trigger]);const _s=[{key:Ao,hotAttr:{...Wo.hotAttr,interactions:Ut}}];st({type:"entry:widget:change",payload:{flatChgList:_s}}),qo&&st({type:"links:active:link",payload:{cid:qo.activeCidList}})}}),[$t,go]=S.B.genCommand({name:"interaction:copy",impl:(kt,Ze)=>{let{getState:it,dispatch:st}=kt,{payload:{isCanvasLayerItemContext:dt}}=Ze;const Ot=it(),Ct=(0,N.p$)(Ot),wo=(0,b.UV)(Ot),ln=(0,E.jI)(Ot),{isEditingCombo:Io}=(0,u.r)(Ot);if(Ct.length!==1)return;const Lo=sdkStore.getHotItem(Ct[0]);if(Lo.hotAttr.interactions.length===0)return;let Ao=(0,C.Xr)(wo.sdkStore,Ct[0],Io,ln);if(dt){const Wo=(0,y.G$)(sdkStore.getInteractionsOf(Lo.key)).reduce((qo,sn)=>{if(sn.subKey)return qo;const Kn=Lo.hotAttr.interactions.find(ds=>ds.key===sn.key);return Kn?qo.concat([{...sn,data:{...Kn,triggerItemKey:Lo.key}}]):qo},[]);Ao=(0,C.I3)(sdkStore,Wo,Lo.key,"non-combo")}const xt=(0,y.mV)(Lo.hotAttr.type,Ao),Ut=(0,y.QP)({oldInteractions:xt});(0,_.b1)({beCopiedInteractions:Ut,copyType:"trigger"})}}),[Co,Tt]=S.B.genCommand({name:"interaction:tableCell:copy",impl:(kt,Ze)=>{let{getState:it,dispatch:st}=kt,{payload:dt}=Ze;const{widget:Ot,selectTableCellInfo:Ct}=(0,h.wm)(it),{selectionLeftTopInfo:{x:wo,y:ln},selectionRightBottomInfo:{x:Io,y:Lo},isCanRemoveMerge:Ao}=Ct;if(wo===Io&&ln===Lo||Ao){let Wo;if((0,g.SS)(Ot)){var Ut;const{table:sn,cells:Kn}=Ot;Wo=(((Ut=(0,g.j)(Kn,sn,ln,wo))==null?void 0:Ut.link)||"").split(",")}else Wo=Ot.tableData.links[ln][wo].split(",");const qo=Ot.interactions.filter(sn=>Wo.find(Kn=>Kn===sn.subKey)).map(sn=>({...sn,subKey:null}));(0,_.b1)({beCopiedInteractions:qo,copyType:"trigger"})}}}),[mo,jo]=S.B.genCommand({name:"interaction:select:copy",impl:(kt,Ze)=>{let{getState:it,dispatch:st}=kt,{payload:{selectInteraction:dt,copyType:Ot}}=Ze;const Ct=(0,y.QP)({oldInteractions:dt});(0,_.b1)({beCopiedInteractions:Ct,copyType:Ot})}}),[Kt,Ft]=S.B.genCommand({name:"interaction:paste",impl:async(kt,Ze)=>{let{getState:it,dispatch:st}=kt,{payload:{targetInteractionKey:dt,uiFrom:Ot}}=Ze;const Ct=it(),{isEditingBasket:wo}=(0,u.r)(Ct),ln=(0,E.jI)(Ct),{beCopiedInteractions:Io,copyType:Lo}=await(0,_.V5)({isShowPrompt:!0}),{selectSubItaType:Ao}=(0,p.ju)(Ct,Ot);if(Ao==="tableCell"){const xt=(0,z.zX)(Ct),Ut=(0,N.Z9)(Ct),Wo=sdkStore.getHotItem(Ut[0].key);let qo=[...Wo.hotAttr.interactions];const{cells:sn,table:Kn}=Wo.hotAttr,ds=JSON.parse(JSON.stringify(sn)),_s=[],{selectionLeftTopInfo:{x:Ls,y:gs},selectionRightBottomInfo:{x:ns,y:Wn}}=xt,Do=Ls===ns&&gs===Wn;let Go=[];(0,r.In)({x1:Ls,x2:ns,y1:gs,y2:Wn},(Mo,Cn)=>{const{oldCellItas:Tn,oldCellItaKeys:cn}=(0,y.iL)({cells:sn,table:Kn,interactions:qo,j:Cn,i:Mo}),bs=(0,r.ZE)(Tn);let Vn,ti;Lo==="action"?(Vn=dt?bs.findIndex(Xs=>Xs.key===dt):bs.length,ti=dt?bs[Vn]:void 0):(Vn=bs.length,ti=void 0);const oi=(0,r.Ge)({clipboardItas:Io,editingBasketKey:ln,isEditingBasket:wo,hasSubKey:!0,targetInteraction:ti,prevItas:bs});Go=oi.map(Xs=>Xs.key);const Gt=(0,g.j)(ds,Kn,Cn,Mo);if(!Gt)return"CONTINUE";Gt.link?Gt.link=Gt.link+","+oi.map(Xs=>Xs.subKey).join(","):Gt.link=oi.map(Xs=>Xs.subKey).join(",");for(const Xs of cn)qo=qo.filter(Ti=>Ti.subKey!==Xs);const Rs=(0,r.ow)({nextItas0:Tn,bePastedItas:oi,insertPos:Do?Vn+1:Tn.length});_s.push(...Rs)});const an={...Wo,hotAttr:{...Wo.hotAttr,cells:ds,interactions:[...qo,..._s]}};st({type:"entry:widget:change",payload:{flatChgList:[an],shouldReBuildTree:!0}}),st({type:"links:active:link",payload:{cid:Do?(0,l.J5)(an.hotAttr,xt):[]}}),setTimeout(()=>{Lo==="action"?(0,r._6)({itaKey:Go[0]}):(0,r._6)({itaKey:Go.at(-1)});for(const Mo of Go)(0,r.cF)({itaKey:Mo})},4)}else{const xt=(0,N.p$)(Ct),Ut=[];let Wo;const qo=Ao!=="empty";for(const sn of xt){const Kn=sdkStore.getHotItem(sn);if(y.eX.includes(Kn.hotAttr.type))continue;const ds=Kn.hotAttr.interactions,_s=(0,r.ZE)([...ds]);let Ls,gs;Lo==="action"?(Ls=dt?_s.findIndex(Go=>Go.key===dt):_s.length,gs=dt?_s[Ls]:void 0):(Ls=_s.length,gs=void 0);const ns=(0,r.Ge)({clipboardItas:Io,editingBasketKey:ln,isEditingBasket:wo,hasSubKey:qo,targetInteraction:gs,prevItas:_s});xt.length===1&&(Wo=ns);const Wn=(0,r.ow)({nextItas0:_s,bePastedItas:ns,insertPos:Ls+1}),Do={key:Kn.key,hotAttr:{interactions:Wn}};if(Ao==="optionData"){const{updateNode:Go}=(0,r.DL)({type:"create",interactionList:ns,optionData:Kn.hotAttr.optionData,state:Ct,mergePair:Do});st({type:Ho["interaction:sub:optionData:craete"],payload:{updateNode:Go}})}else Ao==="carouselImage"&&(0,r.e7)({type:"create",interactionList:ns,carousel:Kn.hotAttr.carousel,state:Ct,mergePair:Do});Ut.push(Do)}if(st({type:"entry:widget:change",payload:{flatChgList:Ut}}),st({type:"entry:refresh:link-list"}),!Ot)return;if(xt.length===1){const sn=Wo[0].key;!dt&&Ot==="treePanelFloat"&&st(de.command.interactionSelectCommand({selectInteractionKeyList:[sn]})),setTimeout(()=>{if(Lo==="action")(0,r._6)({itaKey:Wo[0].key});else{var Kn;(0,r._6)({itaKey:(Kn=Wo.at(-1))==null?void 0:Kn.key})}for(const{key:ds}of Wo)(0,r.cF)({itaKey:ds})},4)}}}}),[nt,Rt]=S.B.genCommand({name:"interaction:subIta:select",impl:async(kt,Ze)=>{let{getState:it,dispatch:st}=kt,{payload:dt}=Ze;const Ot=it(),Ct=(0,N.Z9)(Ot)[0];let wo="";if(dt.type==="optionData"?wo=dt.node.data.linkCids:wo=Ct.carousel.slides[dt.imageIndex].linkCids,!wo)st(D({selectInteractionKeyList:[(0,r.Yw)("tap")]})),(0,A.X)();else if(Ct.interactions.length===0)st(D({selectInteractionKeyList:[(0,r.Yw)("tap")]})),(0,A.X)();else{var ln;const{itaTree:Io}=(0,r.Yj)({interactions:Ct.interactions.filter(xt=>wo.includes(xt.subKey))});let Lo;const Ao=Ct.key;if(dt.type==="carouselImage"?Lo=r.e4.getSelection(Ao+"-"+dt.imageIndex):dt.type==="optionData"&&(Lo=r.e4.getSelection(Ao+"-"+dt.path)),Lo&&(0,r.zS)(Lo,Io)){st(D({selectInteractionKeyList:[Lo],isScroll:!0}));return}for(const xt of Io.sub){const Ut=(0,r.aW)(xt.sub);if(Ut.length>0){st(D({selectInteractionKeyList:[Ut[0].attr.key],isScroll:!0}));return}}st(D({selectInteractionKeyList:[(0,r.Yw)(((ln=Io.sub[0])==null?void 0:ln.attr.trigger)||"tap")],isScroll:!0}))}}}),[yt,Jt]=S.B.genCommand({name:"interaction:edit:undo",impl:async(kt,Ze)=>{let{getState:it,dispatch:st}=kt,{payload:dt}=Ze;const Ot=it(),Ct=Yo.getStateStack(Ot),wo=Ct.pop(),ln=Ct.pop();ln&&J(ln,st)}}),vo={...ve,...R,...O,...ae,...K,...Ne,...ze,...mt,...gt,...qt,...$t,...mo,...Kt,...Co,...nt,...Le,...Pt,...te,...re,...yt,"interaction:sub:optionData:craete":(kt,Ze)=>{let{getState:it,dispatch:st}=kt,{payload:dt}=Ze;const{updateNode:Ot}=dt;st({type:"settings:set:select:option:node",payload:{node:Ot}})},"interaction:sub:optionData:delete":(kt,Ze)=>{let{getState:it,dispatch:st}=kt,{payload:dt}=Ze;const{updateNode:Ot}=dt;st({type:"settings:set:select:option:node",payload:{node:Ot}})}},Yo=S.B.genQuery(fe,{getStateFn:kt=>kt.editor.state.interaction}),Ho=S.B.genEntryKey(vo);return{__initialState:fe,__reducer:se,__entry:vo,entryKey:Ho,query:Yo,dispatchState:J,command:{interactionSelectCommand:D,subItaSelectCommand:Rt,undoCommand:Jt,clearAllCommand:V,interactionEditorFloatOpenCommand:Ce,intActConnectorSelectCommand:q,editingInteractionCreateCommand:xe,linkDesignCreateIta:H,treePanelSingleCreateCommand:Ve,addIta:We,updateItaKV:ft,updateItaBatch:i,deleteIta:Je,interactionInsertCommand:pt,intActConnectorDeleteCommand:bt,interactionCopyCommand:go,interactionCopyTableCellCommand:Tt,selectCopyCommand:jo,pasteIta:Ft}}})()},75212:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>x});var o=e(74059),m=e(51044),g=e(86634),l=e.n(g),C=e(7290),T=e(88768),A=e(97788),k=e(89535),p=e(57464);const r=["tap","dtap","hold","shake-divider",,"mouseIn","mouseOut","rightClick","shake-divider","left","right","up","down","shake-divider","shake","timer"];class x extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleSelect",u=>{if(u.currentTarget.classList.contains("disabled"))return;const{gesture:b}=u.currentTarget.dataset;this.props.onSelect(b)})}render(){const{isGlobalLink:u,currentGesture:b,interactionTree:h,isLimitTrigger:E}=this.props,N=r;return(0,p.jsx)(T.A,{children:(0,p.jsx)("ul",{children:N.map((z,S)=>{const _=z===b,y=z==="shake-divider",a=E&&z!==b&&(h==null?void 0:h.sub.find(ce=>ce.attr.trigger===z)),$=l()({gesture:z!=="shake-divider",current:_,disabled:a,"shake-divider":y,"is-active":_});return(0,p.jsxs)("li",{role:z!=="shake-divider"?"option":"","data-gesture":z,className:$,"aria-label":I18N.SettingPanel.link_tips,"data-microtip-position":"left",onClick:this.handleSelect,children:[_&&(0,p.jsx)(C.C,{name:"common/checked",className:"checked display-gesture"}),!y&&(0,p.jsx)(C.C,{name:"interaction/trigger/"+z,className:"display-gesture"}),!y&&(a?(0,p.jsx)(k.A,{content:I18N.SettingPanel.link_tips,children:(0,p.jsxs)("p",{children:[(0,A.vc)(z)," "]})}):(0,p.jsxs)("p",{children:[(0,A.vc)(z)," "]}))]},S)})})})}}},88768:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>m});var o=e(21676);const m=o.Ay.div.withConfig({displayName:"styles__StyledGestures",componentId:"sc-1ofywp4-0"})(["width:100%;color:",";li{list-style:none;}.gesture{height:26px;display:flex;align-items:center;cursor:pointer;padding-left:26px;transition:all 0.2s ease-out;position:relative;.svg-icon{width:16px;height:16px;margin-right:7px;&.checked{position:absolute;left:8px;}}&:not(.disabled):hover{background:#666;}&.disabled{color:rgba(255,255,255,0.22);cursor:not-allowed;}}.shake-divider{pointer-events:none;margin:8px 0;height:1px;background:",";}li{border-radius:4px;}.gesture{&:not(.disabled):hover{background:",";}&.disabled{color:",";}}.shake-divider{background:",";}li.gesture:not(.disabled) .display-gesture{color:",";}"],g=>g.theme.color_text_L1,g=>g.theme.color_bg_border_01,g=>g.theme.color_btn_secondary_hover,g=>g.theme.color_text_disabled01,g=>g.theme.color_bg_border_01,g=>g.theme.color_text_L0)},11573:(Et,ke,e)=>{"use strict";e.d(ke,{S:()=>u});var o=e(51044),m=e(18578),g=e(97788),l=e(54606),C=e(72605),T=e(86634),A=e.n(T),k=e(58724),p=e(78336),r=e(72400),x=e(50167),f=e(57464);const u=(0,o.memo)(b=>{let{interactionDummyKey:h,interactionTree:E,selectItaInfo:N,uiFrom:z,interactionStore:S}=b;const _=(0,C.wA)(),{isEditingCombo:y}=(0,C.d4)(l.r),a=(0,C.d4)(x.wN),$=N.type==="action",ce=$?(0,g.W4)(h):(0,g.Oz)(h),de=se=>{_(m.R7.command.editingInteractionCreateCommand({interactionType:se,interactionTrigger:ce,uiFrom:z,interactionStore:S}))},fe=se=>{const J=$?(0,g.Yw)(se):(0,g.Md)(se),ve=()=>{_(m.R7.command.interactionSelectCommand({selectInteractionKeyList:[J]})),setTimeout(()=>(0,g._6)({itaKey:J}),4)};if($){const D=S.query.getTriggerNode(ce);D&&(0,g.xx)(D.sub).length===0?(_(m.R7.command.updateItaBatch({attr:"interactionTrigger",value:se,trigger:ce,interactionStore:S})),ve()):(_(m.R7.command.addIta({interactionTree:E,triggerType:se,uiFrom:z,interactionStore:S})),setTimeout(()=>(0,g._6)({itaKey:J}),4))}else _(m.R7.command.updateItaBatch({attr:"interactionTrigger",value:se,trigger:ce,interactionStore:S})),ve()};return(0,f.jsxs)(p.pn,{className:A()("link-editor duumy-editor"),children:[(0,f.jsx)(r.A,{trigger:ce,isGlobalLink:a,onChange:fe,interactionTree:E,isLimitTrigger:!$}),$&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("div",{className:"divider"}),(0,f.jsx)(k.A,{isDummy:!0,link:void 0,isEditingCombo:y,onChange:de})]}),(0,f.jsx)(p.fl,{})]})})},41434:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>Vo});var o=e(51044),m=e(86634),g=e.n(m),l=e(28497),C=e(58724),T=e(72400),A=e(74059),k=e(29073),p=e(67234),r=e(60081),x=e(66748),f=e.n(x);const u={transition:"qRgP_Qr24z5uG7DHsBje"};var b=e(7290),h=e(57464);const E="icon-arrow-top",N="icon-arrow-left",z="icon-arrow-right",S="icon-arrow-bottom",_={none:"",leftmenu:z,rightmenu:N,leftdrawer:z,rightdrawer:N,slideright:z,slideleft:N,slidetop:S,slidebottom:E,slideleft2:z,slideright2:N,topin:S,popin:E,leftout:N,rightout:z,topout:E,popout:S};class y extends o.PureComponent{constructor(){super(...arguments),(0,A.A)(this,"updateTransition",()=>this.props.onChange&&this.props.onChange(this.props.id,"transition"))}render(){const{id:Uo,name:pn,isActive:ys,viewClassName:Dn}=this.props,Hs=ys?"current":"",Qn=u.transition+" "+Uo+" "+Hs+" transitionView",Gi=_[Uo];return(0,h.jsxs)("div",{className:g()(Qn,Dn),onClick:this.updateTransition,children:[(0,h.jsxs)("div",{className:"pages",children:[(0,h.jsx)("div",{className:"page1 "+Gi,children:(0,h.jsx)(b.C,{name:"setting_panel/link/transition/arrow"})}),(0,h.jsx)("div",{className:"page2 "+Gi,children:(0,h.jsx)(b.C,{name:"setting_panel/link/transition/arrow"})},Gi)]}),(0,h.jsx)("span",{className:"name",children:pn})]})}}(0,A.A)(y,"propTypes",{id:f().string,viewClassName:f().string,name:f().string,isActive:f().bool,onChange:f().func});var a=e(21676),$=e(72605),ce=e(78570);const de=a.Ay.div.withConfig({displayName:"NoneOrAutoIcon__StyledNoneIcon",componentId:"sc-p4fhae-0"})(["width:24px;height:24px;&:hover{}color:"," !important;.transition-none{path{stroke:",";}}font-size:14px;display:flex;justify-content:center;align-content:center;border-radius:4px;&.is-dark{.transition-move{path{&:first-child{fill:rgb(255,255,255,0.26);}&:nth-child(2){fill:rgb(255,255,255,0.4);}&:last-child{fill:rgb(255,255,255,0.9);}}}}"],ho=>ho.theme.color_text_L1,ho=>ho.theme.color_text_L1),fe=ho=>{let{transition:Uo}=ho;const ys=(0,$.d4)(ce.O4)==="dark";return(0,h.jsx)(de,{className:g()({"is-dark":ys}),children:Uo==="auto"?(0,h.jsx)(b.C,{isColorPure:!0,className:"transition-move",name:"setting_panel/link/transition/move"}):(0,h.jsx)(b.C,{className:"transition-none",name:"setting_panel/link/transition/none"})})};var se=e(4114);const J=["leftmenu","rightmenu","leftdrawer","rightdrawer","slideright","slideleft","slidetop","slidebottom","slideleft2","slideright2","topin","popin","leftout","rightout","topout","popout"],ve=(0,se.R)(ho=>{const Uo=J.map(pn=>({value:pn,label:I18N.dConst.tr[pn]}));return ho?Uo.filter(pn=>{let{value:ys}=pn;return!/drawer|menu/.test(ys)}):Uo}),D=(0,se.R)(()=>["slideleft2","slideright2","topin","popin"].map(ho=>({value:ho,label:I18N.dConst.tr[ho]}))),R=[{label:"0ms",value:"0"},{label:"10ms",value:10},{label:"50ms",value:50},{label:"100ms",value:100},{label:"200ms",value:200},{label:"500ms",value:500},{label:"1000ms",value:1e3},{label:"2000ms",value:2e3},{label:"5000ms",value:5e3}],V=[{label:"0ms",value:"0"},{label:"10ms",value:10},{label:"50ms",value:50},{label:"100ms",value:100},{label:"200ms",value:200},{label:"500ms",value:500},{label:"1000ms",value:1e3},{label:"2000ms",value:2e3},{label:"5000ms",value:5e3}];var O=e(585);const Ce=a.Ay.div.withConfig({displayName:"styles__StyledTransitionPanel",componentId:"sc-wc49k4-0"})([".top{display:flex;align-items:center;.transition-default{padding:12px 16px 9px 0;cursor:pointer;.none-icon{height:34px;width:34px;border-radius:2px;display:flex;justify-content:center;align-items:center;background:#f2f2f2;transition:all 0.15s ease-in-out;.svg-icon{width:20px;height:20px;}&.active{background:white;border:1px solid ",";box-shadow:0 0 4px 0 rgba(41,141,248,0.74);}}span{color:",";}&:first-child{padding-left:16px;}}}.divider{margin:1px 14px 12px 14px;border-top:1px solid #e7e9ea;}.transition-list{padding:0 16px 7px 16px;display:flex;flex-wrap:wrap;.pages{background-color:#f2f2f2;.page1{display:flex;align-items:center;justify-content:center;}.page2{&.icon-arrow-bottom,&.icon-arrow-top,&.icon-arrow-left,&.icon-arrow-right{display:flex;align-items:center;justify-content:center;}}.page1,.page2{&.icon-arrow-top{.icon{transform:rotate(-90deg);}}&.icon-arrow-left{.icon{transform:rotate(-180deg);}}&.icon-arrow-bottom{.icon{transform:rotate(90deg);}}&::before{display:none;}.icon{width:12px;height:7px;}}}.name{color:",";}.transitionView{.pages{border:none;}}.transitionView:hover{.pages{border:none;}}}"],ho=>ho.theme.color_proto,ho=>ho.theme.color_text_L1,ho=>ho.theme.color_text_L1);class ae extends o.PureComponent{constructor(){super(...arguments),(0,A.A)(this,"handleNone",()=>this.props.onSelect("none")),(0,A.A)(this,"handleMove",()=>this.props.onSelect("auto"))}render(){const{transitions:Uo,currentTransition:pn,onSelect:ys}=this.props;return(0,h.jsxs)(Ce,{children:[(0,h.jsxs)("div",{className:"top",children:[(0,h.jsxs)("div",{className:"transition-default",onClick:this.handleNone,children:[(0,h.jsx)("div",{className:g()("none-icon",{active:pn==="none"}),children:(0,h.jsx)(b.C,{className:"transition-none",name:"setting_panel/link/transition/none"})}),(0,h.jsx)("span",{children:I18N.SettingPanel.link_none_ani})]}),(0,h.jsxs)("div",{className:"transition-default",onClick:this.handleMove,children:[(0,h.jsx)("div",{className:g()("none-icon",{active:pn==="auto"}),children:(0,h.jsx)(b.C,{size:18,isColorPure:!0,className:"transition-none",name:"setting_panel/link/transition/move"})}),(0,h.jsx)("span",{children:I18N.SettingPanel.link_move})]})]}),(0,h.jsx)("div",{className:"transition-list",children:Uo.map(Dn=>{let{value:Hs,label:Qn}=Dn;return(0,h.jsx)(y,{id:Hs,name:Qn,isActive:Hs===pn,onChange:ys},Hs)})})]})}}var q=e(63686),K=e(98386),xe=e(22379),te=e(19722),H=e(20769),re=e(5868),be=e(89099);const Le=a.Ay.div.withConfig({displayName:"styles__StyledInteractionTargetCollapsibleSelectOption",componentId:"sc-7qoyp3-0"})(["display:flex;align-items:center;cursor:pointer;font-size:12px;font-weight:400;min-width:fit-content;color:#fff;padding-left:","px;padding-top:2px;padding-bottom:2px;position:relative;svg.svg-icon,svg.svg-icon-path-icon{width:20px;height:20px;margin-right:6px;fill:currentColor;&.checked{position:absolute;left:0;}&.expander{color:#999;width:16px;margin-left:-16px;margin-right:0;&:not(.is-collapsed){transform:rotate(90deg);}}}.screen-icon{height:20px;svg.svg-icon{margin-right:0px;}}svg.svg-icon-path-icon{transform:scale(0.7);}& > .Ellipsis{flex:1;}&.is-disabled{cursor:not-allowed;opacity:0.5;}&.is-active{color:#fff;background:rgba(22,132,252,0.25);mix-blend-mode:normal;position:relative;}&:not(.is-disabled):hover{background:rgb(102,102,102);}&.isV9Layout{color:",";border-radius:4px;svg.group-icon path{fill:transparent;}&.is-active{color:",";background:",";}&:not(.is-disabled):hover{background:",";}}&:not(.isV9Layout){svg.svg-icon-path-icon{color:#F2F4F5;}}"],ho=>18+ho.depth*22,ho=>ho.theme.color_text_L0,ho=>ho.theme.color_text_L0,ho=>ho.theme.color_btn_secondary_hover,ho=>ho.theme.color_btn_secondary_hover),Ve=a.Ay.div.withConfig({displayName:"styles__StyledSelectWithSearchBar",componentId:"sc-7qoyp3-1"})(['display:flex;flex-direction:column;width:100%;height:100%;[type="search"]{margin:8px 0px;}&.isV9Layout{[type="search"]{svg.search-icon{color:',"}input{border-radius:4px;border-color:",";color:",";background:",";&:focus{border-color:",";}}}}"],ho=>ho.theme.color_text_L2,ho=>ho.theme.color_bg_border_01,ho=>ho.theme.color_text_L0,ho=>ho.theme.color_bg_white,ho=>ho.theme.color_proto),Ne=a.Ay.div.withConfig({displayName:"styles__StyledTargetCanvasSelect",componentId:"sc-7qoyp3-2"})(['display:flex;flex-direction:column;width:100%;height:100%;[type="search"]{margin:8px 0px;}&.isV9Layout{[type="search"]{svg.search-icon{color:',"}input{border-radius:4px;border-color:",";color:",";background:",";}}}"],ho=>ho.theme.color_text_L2,ho=>ho.theme.color_bg_border_01,ho=>ho.theme.color_text_L0,ho=>ho.theme.color_bg_white),We=a.Ay.div.withConfig({displayName:"styles__StyledBackToPageSelectOption",componentId:"sc-7qoyp3-3"})(["display:flex;align-items:center;cursor:pointer;.back{width:16px;height:16px;margin-left:2px;&:not(.disabled):hover{background:#363738;}&:not(.disabled):active{background:#454647;}svg.svg-icon{path{fill:#999;}}}.sm-icon{width:20px;height:20px;path{fill:#fff;}}& > .Ellipsis{flex:1;color:#fff;}&.isV9Layout{.back{&:not(.disabled):hover{background:",";}&:not(.disabled):active{background:",";}svg.svg-icon{path{fill:",";}}}.sm-icon{path{fill:",";}}& > .Ellipsis{color:",";}}"],ho=>ho.theme.color_btn_secondary_hover,ho=>ho.theme.color_btn_secondary_hover,ho=>ho.theme.color_text_L1,ho=>ho.theme.color_text_L1,ho=>ho.theme.color_text_L0),ze=a.Ay.div.withConfig({displayName:"styles__StyledTargetSelect",componentId:"sc-7qoyp3-4"})(["width:100%;flex:1;overflow-x:auto;overflow-y:auto;list-style:none;color:#fff;pointer-events:all;.scroll-able-container{min-width:100%;width:max-content;display:flex;flex-direction:column;}::-webkit-scrollbar-thumb{background-color:",";border-radius:4px;&:hover{background-color:",";}}"],ho=>ho.theme.color_bg_border_02,ho=>ho.theme.color_background_split_hover),ft=a.Ay.span.withConfig({displayName:"styles__StyledDividerOption",componentId:"sc-7qoyp3-5"})(["display:inline-block;width:calc(100% - 20px);flex:0 0 1px;background:",";margin:5px 0 5px 10px;"],ho=>ho.theme.color_bg_border_01),mt=a.Ay.div.withConfig({displayName:"styles__StyledEmptyOptionOverlayPrompt",componentId:"sc-7qoyp3-6"})(["position:relative;display:flex;width:100%;height:190px;padding-top:42px;align-items:center;justify-content:flex-start;flex-direction:column;.alert{width:40px;height:40px;path:nth-child(1){fill:white;fill-opacity:0.22;}path:nth-child(2),path:nth-child(3){fill:white;fill-opacity:0.7;}}span{padding:16px 22px 0;text-wrap:wrap;text-align:center;color:rgba(255,255,255,0.7);}a{color:#80bcff;:hover,:active{color:#95d1f8;}}&.isV9Layout{.alert{path:nth-child(1){fill:",";fill-opacity:1;}path:nth-child(2),path:nth-child(3){fill:",";fill-opacity:1;}}span{color:",";}a{color:",";:hover,:active{color:",";}}}"],ho=>ho.theme.color_btn_secondary_active,ho=>ho.theme.color_text_L3,ho=>ho.theme.color_text_L0,ho=>ho.theme.color_text_link_normal,ho=>ho.theme.color_text_link_hover);var i=e(59742),gt=e(63555),Je=e(25399),Pt=e(71604);const bt=[gt.x.WSticky,gt.x.WTear],qt=(ho,Uo)=>{const pn=sdkStore.getHotItem(ho);if(!pn)return null;const ys=pn.sub;return{...pn,subHotItemList:ys.reduce((Dn,Hs)=>{const Qn=sdkStore.getHotItem(Hs);if(Qn.hotAttr.bunch==="rbPage"){const Gi=qt(Hs,Uo);return Gi?(Qn.hotAttr.asFolder&&(Gi.forDisplayOnly=!0),Gi.subHotItemList.length>0||Uo((0,Pt.KD)(Hs))?[...Dn,Gi]:Dn):Dn}return Dn},[]).sort((Dn,Hs)=>Dn.hotAttr.zIndex-Hs.hotAttr.zIndex)}},pt=(ho,Uo)=>{const pn=sdkStore.getHotItem(ho);if(!pn)return null;if(pn.hotAttr.type==="wBasket"&&!sdkStore.getHotItem(pn.hotAttr.refRBPageKey))return console.error("sdkStore.getHotItem(hi.hotAttr.refRBPageKey) is undefined",pn.hotAttr.refRBPageKey),null;const ys=pn.hotAttr.type==="wBasket"?sdkStore.getHotItem(pn.hotAttr.refRBPageKey).sub.map(Dn=>(0,i.iK)((0,i.OO)(ho)?(0,i.QL)(ho):[ho],Dn)):pn.hotAttr.type==="wMind"?[]:pn.sub;return{...pn,key:pn.sup==="B@ref-muban"?Je.VZ:pn.key,hotAttr:{...pn.hotAttr,name:(0,Pt.KD)(ho),...pn.sup==="B@ref-muban"&&{type:"wBasket",basket:"bMuban",bunch:""}},subHotItemList:ys.reduce((Dn,Hs)=>{const Qn=pt(Hs,Uo);return!Qn||bt.includes(Qn.hotAttr.type)?Dn:(Qn.hotAttr.type==="rResCanvas"&&(Qn.forDisplayOnly=!0),Qn.subHotItemList.length>0||Uo((0,Pt.KD)(Hs))?[...Dn,Qn]:Dn)},[])}},$t=(ho,Uo)=>{const pn=sdkStore.getHotItem(ho);if(!pn)return null;if(pn.hotAttr.type==="wBasket"&&!sdkStore.getHotItem(pn.hotAttr.refRBPageKey))return console.error("sdkStore.getHotItem(hi.hotAttr.refRBPageKey) is undefined",pn.hotAttr.refRBPageKey),null;const ys=pn.hotAttr.type==="wBasket"?sdkStore.getHotItem(pn.hotAttr.refRBPageKey).sub.map(Dn=>(0,i.iK)((0,i.OO)(ho)?(0,i.QL)(ho):[ho],Dn)):pn.sub;return{...pn,key:pn.sup==="B@ref-muban"?Je.VZ:pn.key,hotAttr:{...pn.hotAttr,name:(0,Pt.KD)(ho),...pn.sup==="B@ref-muban"&&{type:"wBasket",basket:"bMuban",bunch:""}},subHotItemList:ys.reduce((Dn,Hs)=>{const Qn=$t(Hs,Uo);return Qn?[gt.x.Canvas,gt.x.WWrap].includes(Qn.hotAttr.type)&&(Qn.forDisplayOnly=!0,Qn.subHotItemList.length>0)?[...Dn,Qn]:Qn.hotAttr.type==="wBasket"&&(Qn.subHotItemList.length>0||Uo((0,Pt.KD)(Hs)))?[...Dn,Qn]:Dn:Dn},[])}},go=(ho,Uo,pn)=>sdkStore.getSubHotItemList(ho).filter(ys=>ys.hotAttr.type==="rResCanvas"&&(pn?ys.hotAttr.asOverlay:!ys.hotAttr.asOverlay)&&Uo(ys.hotAttr.name)).sort((ys,Dn)=>ys.hotAttr.order-Dn.hotAttr.order);var Co=e(9126);const Tt=ho=>{let{depth:Uo,withSubOptions:pn=!0,optionItem:ys,isOptionActive:Dn,isOptionDisabled:Hs=()=>!1,isOptionCollapsed:Qn=()=>!1,onSelect:Gi,onToggleCollapsed:oa,onMouseEnterOption:ta,onMouseLeaveOption:Sa}=ho;const{key:La,hotAttr:{name:ya}}=ys,Ja=pn?ys.subHotItemList:[],No=Hs(ys),ct=Dn(ys),Mt=Qn(ys),ht=(0,o.useCallback)(zo=>{zo.stopPropagation(),!No&&Gi(La)},[No,Gi,La]),oo=(0,o.useCallback)(zo=>{zo.stopPropagation(),oa(La)},[oa,La]),uo=(0,o.useCallback)(zo=>{zo.stopPropagation(),ta&&ta(La)},[ta,La]),So=(0,o.useCallback)(zo=>{zo.stopPropagation(),Sa&&Sa(La)},[Sa,La]);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(Le,{role:"option",depth:Uo,"data-value":La,onClick:ht,onMouseEnter:uo,onMouseLeave:So,className:g()("dropmenu-no-exit","isV9Layout",{" is-disabled":No,"is-active":ct}),children:[Ja.length>0&&(0,h.jsx)(b.C,{className:g()("expander",{"is-collapsed":Mt}),name:"common/solid-arrow",onClick:oo}),ys.hotAttr.bunch==="rbPage"?(0,h.jsx)(be.k,{icon:ys.hotAttr.icon,isExpand:!Mt,theme:"dark"}):La===Je.rE?(0,h.jsx)(b.C,{name:"setting_panel/event/current_widget"}):(0,h.jsx)(Co.A,{widget:{...ys.hotAttr},isDynamic:ys.hotAttr.basket==="bDanli"}),(0,h.jsx)(xe.A,{children:La===Je.rE?I18N.SettingPanel.current_widget:ya})]}),!Mt&&Ja.map(zo=>(0,h.jsx)(Tt,{depth:Uo+1,withSubOptions:pn,optionItem:zo,isOptionActive:Dn,isOptionDisabled:Hs,isOptionCollapsed:Qn,onToggleCollapsed:oa,onMouseEnterOption:ta,onMouseLeaveOption:Sa,onSelect:Gi},zo.key))]})},mo=(0,o.memo)((0,o.forwardRef)((ho,Uo)=>{let{children:pn,query:ys,setQuery:Dn}=ho;const[Hs,Qn]=(0,o.useState)([]),Gi=(0,o.useCallback)(oa=>Hs.includes(oa)?Qn(Hs.filter(ta=>ta!==oa)):Qn([...Hs,oa]),[Hs]);return(0,h.jsxs)(Ve,{ref:Uo,className:g()("isV9Layout"),children:[(0,h.jsx)(H.A,{value:ys,onChange:oa=>Dn(oa),forceDarkTheme:!0}),pn({toToggleCollapsed:Gi,keyItemCollapsed:Hs})]})})),jo=()=>(0,h.jsxs)(mt,{className:g()("isV9Layout"),children:[(0,h.jsx)(b.C,{className:"alert",name:"setting_panel/link/alert"}),(0,h.jsxs)("span",{children:["\xA0\xA0",I18N.SettingPanel.no_overlay_in_page]}),(0,h.jsx)("a",{href:"/hc/articles/441",target:"_blank",children:I18N.CommonGuides.version_guide_learn_more})]}),Kt=(0,o.memo)(ho=>{let{keyCanvasSrc:Uo,keyPage:pn,keyCanvasSelected:ys,onSelectTargetCanvas:Dn,isSelectOverlay:Hs=!1}=ho;const[Qn,Gi]=(0,o.useState)(pn),[oa,ta]=(0,o.useState)(""),[Sa,La]=(0,o.useState)(""),ya=(0,o.useCallback)(en=>new RegExp((0,re.$)(oa),"i").test(en),[oa]),Ja=(0,o.useCallback)(en=>new RegExp((0,re.$)(Sa),"i").test(en),[Sa]),No=qt("B@main",ya).subHotItemList,ct=sdkStore.findAllTypeUnder("B@main","rResBunch").filter(en=>!en.hotAttr.asFolder).length,Mt=(0,o.useRef)(null),ht=(0,o.useRef)(null),oo=(0,$.wA)(),uo=en=>{oo({type:"set:echo:item",payload:{cid:en}})},So=en=>{oo({type:"set:echo:item",payload:{cid:void 0}})};(0,o.useEffect)(()=>()=>{oo({type:"set:echo:item",payload:{cid:void 0}})},[]),(0,o.useEffect)(()=>{var en,mn;(en=Mt.current)==null||(en=en.querySelector('div[role="option"][data-value="'+ys+'"]'))==null||en.scrollIntoView(),(mn=ht.current)==null||(mn=mn.querySelector('div[role="option"][data-value="'+(pn||"")+'"]'))==null||mn.scrollIntoView()},[ys,Uo,pn]);const zo=(0,o.useMemo)(()=>Qn?go(Qn,Ja,Hs):[],[Qn,Sa,Hs]);return Qn?(0,h.jsxs)(Ne,{className:g()("isV9Layout"),children:[(0,h.jsx)(H.A,{value:Sa,onChange:en=>La(en),forceDarkTheme:!0}),ct>1&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(We,{className:g()("dropmenu-no-exit","isV9Layout"),onClick:()=>Gi(""),children:[(0,h.jsx)(te.A,{size:16,name:"sharing/back_to_page_16",className:"back"}),(0,h.jsx)(be.k,{icon:sdkStore.getHotItem(Qn).hotAttr.icon,isExpand:!1,theme:"dark"}),(0,h.jsx)(xe.A,{children:sdkStore.getHotItem(Qn).hotAttr.name})]}),(0,h.jsx)(ft,{})]}),zo.length>0?(0,h.jsx)(ze,{ref:Mt,className:g()("isV9Layout"),children:(0,h.jsx)("div",{className:"scroll-able-container",children:zo.map(en=>en.hotAttr.type==="rResCanvas"?(0,h.jsx)(Tt,{depth:0,withSubOptions:!1,optionItem:en,isOptionActive:mn=>{let{key:jn}=mn;return jn===ys},isOptionDisabled:mn=>{let{key:jn,forDisplayOnly:Oo}=mn;return!!(jn===Uo||Oo)},onSelect:mn=>Dn(Qn,mn),onMouseEnterOption:uo,onMouseLeaveOption:So},en.key):null)})}):Hs?(0,h.jsx)(jo,{}):null]}):(0,h.jsx)(mo,{ref:ht,query:oa,setQuery:ta,children:en=>{let{toToggleCollapsed:mn,keyItemCollapsed:jn}=en;return(0,h.jsx)(ze,{className:g()("isV9Layout"),children:(0,h.jsx)("div",{className:"scroll-able-container",children:No.map(Oo=>(0,h.jsx)(Tt,{depth:0,withSubOptions:!0,optionItem:Oo,isOptionActive:()=>!1,onSelect:Nn=>Gi(Nn),isOptionCollapsed:Nn=>{let{key:es}=Nn;return jn.includes(es)},isOptionDisabled:Nn=>{let{forDisplayOnly:es}=Nn;return es},onToggleCollapsed:mn},Oo.key))})})}})});Kt.displayName="InteractionTargetCanvasSelect";const Ft=(0,a.DU)([".DropdownMenuPortal{.DesignDropdownMenu.dropScreenMenu{width:190px;height:274px;.content{width:100%;height:100%;padding:0;}}}"]),nt=(0,a.DU)([".DropdownMenuPortal{.DesignDropdownMenu.dropScreenMenu{width:190px;height:274px;.content{width:100%;height:100%;padding:8px;}}}"]),Rt=ho=>{let{renderItem:Uo,targetKey:pn}=ho;return pn===Je.rE?(0,h.jsx)(yt,{children:(0,h.jsx)(b.C,{size:20,name:"setting_panel/event/current_widget"})}):pn===Je.VZ?(0,h.jsx)(yt,{children:(0,h.jsx)(b.C,{size:20,name:"left_panel/master/new"})}):Uo?(0,h.jsx)(yt,{children:Uo.hotAttr.bunch==="rbPage"?(0,h.jsx)(be.k,{icon:Uo.hotAttr.icon,isExpand:!0,theme:"dark"}):(0,h.jsx)(Co.A,{widget:{...Uo.hotAttr},isDynamic:(Uo==null?void 0:Uo.hotAttr.basket)==="bDanli"})}):null},yt=a.Ay.div.withConfig({displayName:"RenderIcon__StyledRenderIcon",componentId:"sc-l7b8tv-0"})(["display:flex;svg{width:20px;height:20px;}"]),Jt=ho=>{switch(ho.data.interactionType){case l.O2.LinkToCanvas:return ho.isTargetValid?sdkStore.getHotItem(ho.data.targetResCanvasKey).hotAttr.name:I18N.Interaction.ita_please;case l.O2.OpenOverlay:case l.O2.SwapOverlay:return ho.isTargetValid?sdkStore.getHotItem(ho.data.targetOverlayKey).hotAttr.name:I18N.Interaction.ita_please;default:return I18N.Interaction.ita_please}};class vo extends o.PureComponent{constructor(){super(...arguments),(0,A.A)(this,"setTargetDropdownRef",Uo=>this.targetDropdown=Uo),(0,A.A)(this,"handleTargetCanvasChanged",(Uo,pn)=>{const{isSelectOverlay:ys,onChange:Dn}=this.props;Dn(Uo,"targetRBPageKey"),setTimeout(()=>Dn(pn,ys?"targetOverlayKey":"targetResCanvasKey")),this.targetDropdown.close()})}render(){const{interaction:Uo,isSelectOverlay:pn,currSelectedCanvasKey:ys,targetRBPageKey:Dn,isEditingCombo:Hs}=this.props,Qn=Jt(Uo),Gi=Qn===I18N.SettingPanel.select_artboard||Qn===I18N.SettingPanel.select_overlay,oa=Uo.data.interactionType===l.O2.LinkToCanvas?Uo.data.targetResCanvasKey:Uo.data.targetOverlayKey;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(k.A,{isOpen:!1,ref:this.setTargetDropdownRef,menux:"right",title:Qn,isPlaceholder:Gi,shouldPreventScrollingPropagation:!1,className:"dropScreenMenu",forceDarkTheme:!0,isOpenerAttrDisabled:Hs,icon:Gi?null:(0,h.jsx)(Rt,{renderItem:sdkStore.getHotItem(oa),targetKey:oa}),renderMenu:(0,h.jsx)(Kt,{keyPage:Dn,keyCanvasSelected:oa,keyCanvasSrc:ys,onSelectTargetCanvas:this.handleTargetCanvasChanged,isSelectOverlay:pn})}),(0,h.jsx)(nt,{})]})}}const Yo=(0,q.Mz)([K.He],ho=>{var Uo;return{isShowCanvasBack:((Uo=Object.keys(ho))==null?void 0:Uo.length)>1}}),Ho=(0,$.Ng)(ho=>Yo(ho))(vo),kt=a.Ay.div.withConfig({displayName:"linkStyles__StyledLinkItemGroup",componentId:"sc-oyrlgq-0"})(["padding:0px 16px 0px 16px;"]),Ze=a.Ay.div.withConfig({displayName:"linkStyles__StyledLinkTransitionGroup",componentId:"sc-oyrlgq-1"})(["padding:0px 16px 0 16px;.group-name{font-weight:500;display:flex;align-items:center;color:",";}"],ho=>ho.theme.color_text_L1);var it=e(34637);const st=a.Ay.div.withConfig({displayName:"styles__StyledScreenLinkActions",componentId:"sc-1ksrbtu-0"})([".is-placeholder{button{color:",";}}.transition-view{width:24px;height:24px;margin-bottom:unset;margin-right:0px;.pages{width:24px;height:24px;border:none;line-height:24px;border-radius:4px;background-color:",';[class*=" icon-"]{margin-left:unset;width:100%;height:100%;}.page2{color:#fff;background:',";border-radius:4px;}}}.link--drop-screen-list{width:108px;}.state-action{.state-link-select{&.isPlaceholder{button{color:",";}}}}.screen-action{.link-opener-wrapper{.dropScreenMenu{width:108px;}&.is-disabled{.dropScreenMenu:hover{border-color:transparent;}}}}.screen-reset{display:flex;align-items:center;margin-left:-6px;.Check-label{color:",";}}.link--drop-transition-list{width:108px;}.screen-link-fragment{.select-number{width:108px;display:flex;align-items:center;}}&.hasPaddingTop{padding-top:4px;}"],ho=>ho.theme.color_text_disabled01,ho=>ho.theme.color_btn_secondary_active,ho=>ho.theme.color_proto,ho=>ho.theme.color_proto,ho=>ho.theme.color_text_L2);var dt=e(67737);const Ot=a.Ay.div.withConfig({displayName:"style__StyledTransitionView",componentId:"sc-apitc3-0"})([".pages{background-color:unset !important;background:unset !important;&:hover{.page1{background-color:"," !important;}}}.page1{transition:unset;background-color:"," !important;color:",";}"],ho=>ho.theme.color_btn_secondary_active,ho=>ho.theme.color_bg_white,ho=>ho.theme.color_text_L1),Ct="icon-arrow-top",wo="icon-arrow-left",ln="icon-arrow-right",Io="icon-arrow-bottom",Lo={none:"",leftmenu:ln,rightmenu:wo,leftdrawer:ln,rightdrawer:wo,slideright:ln,slideleft:wo,slidetop:Io,slidebottom:Ct,slideleft2:ln,slideright2:wo,topin:Io,popin:Ct,leftout:wo,rightout:ln,topout:Ct,popout:Io};class Ao extends o.PureComponent{constructor(){super(...arguments),(0,A.A)(this,"updateTransition",()=>this.props.onChange&&this.props.onChange(this.props.id,"transition"))}render(){const{id:Uo,name:pn,isActive:ys,viewClassName:Dn}=this.props,Hs=ys?"current":"",Qn=u.transition+" "+Uo+" "+Hs+" transitionView",Gi=Lo[Uo];return(0,h.jsxs)(Ot,{className:g()(Qn,Dn),onClick:this.updateTransition,children:[(0,h.jsxs)("div",{className:"pages",children:[(0,h.jsx)("div",{className:"page1 "+Gi,children:(0,h.jsx)(b.C,{name:"setting_panel/link/transition/arrow"})}),(0,h.jsx)("div",{className:"page2 "+Gi,children:(0,h.jsx)(b.C,{name:"setting_panel/link/transition/arrow"})},Gi)]}),(0,h.jsx)("span",{className:"name",children:pn})]})}}(0,A.A)(Ao,"propTypes",{id:f().string,viewClassName:f().string,name:f().string,isActive:f().bool,onChange:f().func});class xt extends o.PureComponent{constructor(){super(...arguments),(0,A.A)(this,"setTransitionDropdownRef",Uo=>this.transitionDropdown=Uo),(0,A.A)(this,"handleTransitionChange",Uo=>{const{onChange:pn}=this.props;this.transitionDropdown.close(),pn(Uo,"transition")}),(0,A.A)(this,"handleTargetCanvasChanged",Uo=>{const{onChange:pn}=this.props;pn(Uo,"targetResCanvasKey")}),(0,A.A)(this,"handleMenuOffset",Uo=>{const pn=Math.max(1,Math.min(parseInt(Uo),99));this.props.onChange(pn,"menuOrDrawerOffset")})}render(){const{link:Uo,targetScreen:pn,currentCanvas:ys,editingPanelCid:Dn,isEditingCombo:Hs,onChange:Qn}=this.props,Gi=it.F.includes(Uo.data.transition),oa=ve(!!Dn),ta=oa.find(uo=>Uo.data.transition===uo.value),Sa=ta?ta.label:Uo.data.transition==="auto"?I18N.SettingPanel.link_move:I18N.SettingPanel.link_none_ani,La=Uo.data.interactionType===l.O2.LinkToCanvas,ya=_[Uo.data.transition],Ja=Uo.data.interactionTrigger!=="timer",No=Uo.data.interactionTrigger==="timer"||!!Uo.data.timerDuration,ct=(0,O.W7)(Uo.data.transitionDelay),Mt=(0,O.W7)(Uo.data.transitionDuration),ht=(0,O.W7)(Uo.data.timerDuration),oo=ya?(0,h.jsx)(Ao,{id:Uo.data.transition,viewClassName:"transition-view"}):(0,h.jsx)(fe,{transition:Uo.data.transition});return(0,h.jsxs)(st,{children:[La&&(0,h.jsxs)(kt,{className:"link-item-group",children:[(0,h.jsx)(dt.A,{linkTitle:I18N.SettingPanel.artboard,className:"screen-action",children:(0,h.jsx)(Ho,{interaction:Uo,isSelectOverlay:!1,targetRBPageKey:pn.key,currSelectedCanvasKey:ys==null?void 0:ys.key,isEditingCombo:Hs,onChange:Qn})}),(0,h.jsx)(p.A,{attr:"resetTargetCanvasScrollOffset",className:g()("screen-reset","height-32",p.p),label:I18N.ScreenPanel.reset,isChecked:Uo.data.resetTargetCanvasScrollOffset,onChange:Qn})]}),(0,h.jsx)("div",{className:"divider"}),(0,h.jsxs)(Ze,{className:"link-transition-group",children:[(0,h.jsx)(dt.A,{linkTitle:I18N.SettingPanel.ani_name,children:(0,h.jsx)(k.A,{ref:this.setTransitionDropdownRef,menux:"right",title:Sa,icon:oo,className:"link--drop-transition-list",renderMenu:(0,h.jsx)(ae,{transitions:oa,currentTransition:Uo.data.transition,onSelect:this.handleTransitionChange})})}),Gi&&(0,h.jsx)(dt.A,{linkTitle:I18N.SettingPanel.menu_offset,className:"screen-link-fragment",children:(0,h.jsx)("div",{className:"select-number",children:(0,h.jsx)(r.A,{className:"link-number-select",unstyled:!0,attr:"menuOrDrawerOffset",max:99,value:parseInt(Uo.data.menuOrDrawerOffset),onConfirm:this.handleMenuOffset,suffix:"%"})})}),Uo.data.transition!=="none"&&(0,h.jsx)(dt.A,{linkTitle:I18N.SettingPanel.ani_duration,className:"state-action",children:(0,h.jsx)("div",{className:"state-link-select",children:(0,h.jsx)(r.A,{attr:"transitionDuration",value:Mt,suffix:"ms",min:0,max:1e4,optionList:R,onConfirm:Qn})})}),Ja&&(0,h.jsx)(dt.A,{linkTitle:I18N.SettingPanel.ani_delay,className:"state-action",children:(0,h.jsx)("div",{className:"state-link-select",children:(0,h.jsx)(r.A,{attr:"transitionDelay",value:ct,suffix:"ms",min:0,max:1e4,optionList:R,onConfirm:Qn})})}),No&&(0,h.jsx)(dt.A,{linkTitle:I18N.SettingPanel.ani_delay,className:"state-action",children:(0,h.jsx)("div",{className:"state-link-select",children:(0,h.jsx)(r.A,{attr:"timerDuration",value:ht,suffix:"ms",min:0,max:1e4,optionList:V,onConfirm:Qn})})})]})]})}}var Ut=e(7775);const Wo=a.Ay.div.withConfig({displayName:"styles__StyledStateTransitionMenu",componentId:"sc-91lwjs-0"})(["display:flex;justify-content:space-between;align-items:center;height:100%;padding:0 16px;&:lang(en){padding:0 10px;}.transition-view{position:relative;height:53px;display:flex;flex-direction:column;align-items:center;cursor:pointer;&:lang(en){width:70px;}.view-icon{position:relative;height:34px;width:34px;display:flex;align-items:center;justify-content:center;background:#ebebeb;border:1px solid #ebebeb;transition:all 0.15s ease-in-out;border-radius:2px;&.active{background:white;border:1px solid ",";box-shadow:0 0 4px 0 rgba(41,141,248,0.74);}.svg-icon{width:18px;height:18px;}.transition-none{width:20px;height:20px;}.transition-move{path{&:first-child{fill:#ccc;}&:nth-child(2){fill:#999;}&:last-child{fill:#333;}}}}.view-title{position:absolute;white-space:nowrap;bottom:0;left:50%;transform:translateX(-50%);color:",";}}.containerBottom{display:flex;align-items:center;justify-content:center;height:100%;}"],ho=>ho.theme.color_proto,ho=>ho.theme.color_text_L1);class qo extends o.PureComponent{constructor(){super(...arguments),(0,A.A)(this,"setComponentRef",Uo=>this.dropdown=Uo),(0,A.A)(this,"handleChange",Uo=>{this.dropdown.close(),this.props.onChange(Uo)})}render(){const{enable:Uo}=this.props,pn=Uo?I18N.SettingPanel.link_move:I18N.SettingPanel.link_none_ani;return(0,h.jsx)(k.A,{ref:this.setComponentRef,title:pn,menux:"right",icon:(0,h.jsx)(fe,{transition:Uo?"auto":"none"}),className:"link--drop-transition-state-list",renderMenu:(0,h.jsx)(sn,{enable:Uo,onChange:this.handleChange})})}}class sn extends o.PureComponent{constructor(){super(...arguments),(0,A.A)(this,"handleDisableTransition",()=>this.props.onChange(!1)),(0,A.A)(this,"handleEnableTransition",()=>this.props.onChange(!0))}render(){const{enable:Uo}=this.props;return(0,h.jsxs)(Wo,{children:[(0,h.jsxs)("div",{className:"transition-view",children:[(0,h.jsx)("div",{className:g()("view-icon",{active:Uo===!1}),onClick:this.handleDisableTransition,children:(0,h.jsx)(b.C,{className:"transition-none",name:"setting_panel/link/transition/none"})}),(0,h.jsx)("span",{className:"view-title",children:I18N.SettingPanel.link_none_ani})]}),(0,h.jsxs)("div",{className:"transition-view",children:[(0,h.jsx)("div",{className:g()("view-icon",{active:Uo===!0}),onClick:this.handleEnableTransition,children:(0,h.jsx)(b.C,{className:"transition-move",name:"setting_panel/link/transition/move"})}),(0,h.jsx)("span",{className:"view-title",children:I18N.SettingPanel.link_move})]})]})}}const Kn=a.Ay.div.withConfig({displayName:"styles__StyledPanelLinkActions",componentId:"sc-1pwfofu-0"})([".link--drop-screen-list{width:108px;}.link--drop-transition-state-list{width:108px;}.panel-state-link-select{width:130px;padding-right:7px;}.is-placeholder{button{color:",";}&.value-erased{button{color:",";}}}.panel-link-item{&:not(:last-child){margin-bottom:4px;}}.panel-link-select{width:130px;padding-right:7px;&:lang(ja){width:120px;}}"],ho=>ho.theme.color_text_disabled01,ho=>ho.theme.color_proto),ds=a.Ay.div.withConfig({displayName:"styles__StyledSelectOptionItem",componentId:"sc-okkrx5-0"})(["display:flex;justify-content:flex-start;align-items:center;.svg-icon{min-width:16px;min-height:16px;margin-right:4px;}.number-index{display:flex;align-items:center;justify-content:center;min-width:16px;min-height:16px;margin-right:4px;}"]),_s=ho=>{let{icon:Uo,name:pn,number:ys}=ho;return(0,h.jsxs)(ds,{children:[Uo?(0,h.jsx)(b.C,{name:Uo}):(0,h.jsx)("p",{className:"number-index",children:ys}),(0,h.jsx)(xe.A,{children:pn})]})},Ls=(0,o.memo)(_s);var gs=e(54606),ns=e(20029),Wn=e(19216);const Do=[gt.x.WSticky,gt.x.WTear],Go=(0,o.memo)(ho=>{var Uo;let{keyTriggerItem:pn,keyTargetItem:ys,onSelectTargetItem:Dn}=ho;const Hs=(0,$.d4)(ns.bt),Qn=(0,$.wA)(),{isEditingCombo:Gi}=(0,$.d4)(gs.r);let oa="";Hs?oa=Hs:oa=(Gi?(0,Wn.n$)(sdkStore,pn):(0,Wn.ao)(sdkStore,pn))||(0,Wn.OV)(sdkStore,pn);const ta=(Uo=sdkStore.getHotItem(oa))==null?void 0:Uo.hotAttr.asOverlay,[Sa,La]=(0,o.useState)(""),ya=(0,o.useCallback)(oo=>new RegExp((0,re.$)(Sa),"i").test(oo),[Sa]),Ja=(0,o.useMemo)(()=>$t(oa,ya),[oa,ya]),No=Ja?Ja.hotAttr.type==="wBasket"?[Ja]:Ja.subHotItemList:[],ct=oo=>{Qn({type:"set:echo:item",payload:{cid:oo}})},Mt=oo=>{Qn({type:"set:echo:item",payload:{cid:void 0}})},ht=(0,o.useRef)(null);return(0,o.useEffect)(()=>{var oo;return(oo=ht.current)==null||(oo=oo.querySelector('div[role="option"][data-value="'+ys+'"]'))==null||oo.scrollIntoView(),()=>Qn({type:"set:echo:item",payload:{cid:void 0}})},[Qn,ys,pn]),(0,h.jsx)(h.Fragment,{children:No.length===0&&!Sa?(0,h.jsx)("div",{className:"empty-target-option",children:ta?I18N.SettingPanel.no_dynamic_in_overlay:I18N.SettingPanel.no_dynamic_in_screen}):(0,h.jsx)(mo,{ref:ht,query:Sa,setQuery:La,children:oo=>{let{toToggleCollapsed:uo,keyItemCollapsed:So}=oo;return(0,h.jsx)(ze,{className:g()("isV9Layout"),children:(0,h.jsx)("div",{className:"scroll-able-container",children:No.map(zo=>!Do.includes(zo.hotAttr.type)&&(0,h.jsx)(Tt,{depth:0,withSubOptions:!0,optionItem:zo,isOptionActive:en=>{let{key:mn}=en;return ys===mn},onSelect:Dn,isOptionCollapsed:en=>{let{key:mn}=en;return So.includes(mn)},isOptionDisabled:en=>{let{forDisplayOnly:mn}=en;return mn},onToggleCollapsed:uo,onMouseEnterOption:ct,onMouseLeaveOption:Mt},zo.key))})})}})})});Go.displayName="InteractionTargetBasketSelect";class an extends o.PureComponent{constructor(Uo){super(Uo),(0,A.A)(this,"handleTransitionChange",pn=>{const ys=pn?"auto":"none";this.props.onChange(ys,"transition")}),(0,A.A)(this,"handleTargetChange",(pn,ys)=>{const{onChange:Dn}=this.props;Dn(pn,ys),this.handleClearEchoItem()}),(0,A.A)(this,"handleClearEchoItem",()=>MB.action("clear:echo:item")),(0,A.A)(this,"getStateOptionList",()=>{var pn,ys;const{link:Dn,editingPanelRefPage:Hs}=this.props,Qn=Dn.data.targetBasketKey===Je.VZ?((pn=sdkStore.getHotItem((0,Wn.Ik)(sdkStore,Dn.triggerItemKey)))==null||(pn=pn.hotAttr)==null?void 0:pn.refRBPageKey)||Hs:Dn.data.targetBasketKey?(ys=sdkStore.getHotItem(Dn.data.targetBasketKey))==null||(ys=ys.hotAttr)==null?void 0:ys.refRBPageKey:"";return Qn?[{label:(0,h.jsx)(Ls,{name:I18N.SettingPanel.first_state,icon:"link/state/first"}),value:Je.L8},{label:(0,h.jsx)(Ls,{name:I18N.SettingPanel.pre_state,icon:"link/state/prev"}),value:Je.Gp},{label:(0,h.jsx)(Ls,{name:I18N.SettingPanel.next_state,icon:"link/state/next"}),value:Je.Oh},{label:(0,h.jsx)(Ls,{name:I18N.SettingPanel.last_state,icon:"link/state/last"}),value:Je.Hg},["DIVIDER",...sdkStore.findAllTypeUnder(Qn,"rResCanvas").sort((Gi,oa)=>Gi.hotAttr.order-oa.hotAttr.order).map((Gi,oa)=>{let{key:ta,hotAttr:Sa}=Gi;return{label:(0,h.jsx)(Ls,{name:Sa.name,number:oa+1}),value:ta}})]]:[]}),this.targetDropdownRef=o.createRef()}render(){const{currentWidgetKey:Uo,link:pn,onChange:ys,editingPanelRefPage:Dn}=this.props,Hs=pn.data.targetBasketKey===Je.VZ?(0,Wn.Ik)(sdkStore,pn.triggerItemKey)||Dn:pn.data.targetBasketKey,Qn=pn.isTargetCanvasSupValid||!pn.dataIntegrity&&Hs,Gi=Dn?pn.data.targetBasketKey:Hs,oa=!(Hs&&(pn.isTargetCanvasSupValid||!pn.dataIntegrity)),ta=Qn?this.getStateOptionList():[],Sa=!ta.flat(1).find(La=>La.value===pn.data.targetResCanvasKey);return(0,h.jsxs)(Kn,{children:[(0,h.jsx)(kt,{className:"link-item-group",children:(0,h.jsx)(dt.A,{linkTitle:I18N.SettingPanel.dynamic_widget,className:"panel-link-item",children:(0,h.jsx)(k.A,{ref:this.targetDropdownRef,menux:"right",title:Hs&&(pn.isTargetCanvasSupValid||!pn.dataIntegrity)?sdkStore.getHotItem(Hs).hotAttr.name:I18N.Interaction.ita_please,isPlaceholder:oa,shouldPreventScrollingPropagation:!1,className:"link--drop-screen-list",forceDarkTheme:!0,icon:oa?null:(0,h.jsx)(Rt,{renderItem:sdkStore.getHotItem(Gi),targetKey:Gi}),renderMenu:(0,h.jsx)(Go,{keyTriggerItem:Uo,keyTargetItem:Gi,onSelectTargetItem:La=>this.handleTargetChange(La,"targetBasketKey")})})})}),(0,h.jsx)("div",{className:"divider"}),(0,h.jsx)(Ze,{className:"link-transition-group",children:(0,h.jsx)(dt.A,{linkTitle:I18N.SettingPanel.link_target,children:(0,h.jsx)(Ut.mq,{isDisabled:!pn.data.targetBasketKey||!Qn,className:g()("panel-state-link-select",{"is-placeholder":!pn.data.targetBasketKey||Sa,"value-erased":pn.data.targetBasketKey&&Qn&&Sa}),menuClassName:"link-state-select",attr:"targetResCanvasKey",value:pn.data.targetResCanvasKey,optionList:ta,placeholder:I18N.SettingPanel.link_select_state,onChange:ys})})}),(0,h.jsx)("div",{className:"divider"}),(0,h.jsxs)(Ze,{className:"link-transition-group",children:[(0,h.jsx)(dt.A,{linkTitle:I18N.SettingPanel.ani_name,children:(0,h.jsx)(qo,{link:pn,enable:pn.data.transition==="auto",onChange:this.handleTransitionChange})}),pn.data.transition==="auto"&&(0,h.jsx)(dt.A,{linkTitle:I18N.SettingPanel.ani_duration,className:"state-action",children:(0,h.jsx)("div",{className:"state-link-select",children:(0,h.jsx)(r.A,{attr:"transitionDuration",value:(0,O.W7)(pn.data.transitionDuration),suffix:"ms",min:0,max:1e4,optionList:R,onConfirm:ys})})}),pn.data.interactionTrigger!=="timer"&&(0,h.jsx)(dt.A,{linkTitle:I18N.SettingPanel.ani_delay,className:"state-action",children:(0,h.jsx)("div",{className:"state-link-select",children:(0,h.jsx)(r.A,{attr:"transitionDelay",value:(0,O.W7)(pn.data.transitionDelay),suffix:"ms",min:0,max:1e4,optionList:R,onConfirm:ys})})}),pn.data.interactionTrigger==="timer"&&(0,h.jsx)(dt.A,{linkTitle:I18N.SettingPanel.ani_delay,className:"state-action",children:(0,h.jsx)("div",{className:"state-link-select",children:(0,h.jsx)(r.A,{attr:"timerDuration",value:(0,O.W7)(pn.data.timerDuration),suffix:"ms",min:0,max:1e4,optionList:V,onConfirm:ys})})})]})]})}}var Mo=e(30797);const Cn=a.Ay.div.withConfig({displayName:"styles__StyledVisibilitySelector",componentId:"sc-17brab8-0"})(["display:flex;margin:10px 16px;.item{width:68px;height:26px;display:flex;align-items:center;justify-content:center;border:1px solid ",";border-right:none;overflow:hidden;cursor:pointer;color:",";&:first-child{border-radius:4px 0px 0px 4px;}&:last-child{border-radius:0px 4px 4px 0px;border-right:1px solid ","}&:hover{background-color:",";}&.active{background-color:",";}}"],ho=>ho.theme.color_bg_border_02,ho=>ho.theme.color_text_L1,ho=>ho.theme.color_bg_border_02,ho=>ho.theme.color_btn_secondary_active,ho=>ho.theme.color_btn_secondary_active),Tn=ho=>{let{value:Uo,onChange:pn}=ho;return(0,h.jsxs)(Cn,{children:[(0,h.jsxs)("div",{className:"item "+(Uo==="setVisible"?"active":""),onClick:()=>pn("setVisible"),children:[(0,h.jsx)(b.C,{name:"setting_panel/event/show",size:20}),I18N.SettingPanel.show]}),(0,h.jsxs)("div",{className:"item "+(Uo==="setHidden"?"active":""),onClick:()=>pn("setHidden"),children:[(0,h.jsx)(b.C,{name:"setting_panel/event/hide",size:20}),I18N.SettingPanel.hide]}),(0,h.jsxs)("div",{className:"item "+(Uo==="toggleVisibility"?"active":""),onClick:()=>pn("toggleVisibility"),children:[(0,h.jsx)(b.C,{name:"setting_panel/event/change",size:20}),I18N.SettingPanel.switch]})]})},cn=ho=>{let{value:Uo,onChange:pn}=ho;return(0,h.jsxs)(Cn,{children:[(0,h.jsxs)("div",{className:"item "+(Uo==="vertical"?"active":""),onClick:()=>pn("vertical"),children:[(0,h.jsx)(b.C,{name:"setting_panel/link/scroll_to_vertical",size:20}),I18N.SettingPanel.scroll_to_vertical]}),(0,h.jsxs)("div",{className:"item "+(Uo==="horizontal"?"active":""),onClick:()=>pn("horizontal"),children:[(0,h.jsx)(b.C,{name:"setting_panel/link/scroll_to_horizontal",size:20}),I18N.SettingPanel.scroll_to_horizontal]}),(0,h.jsxs)("div",{className:"item "+(Uo==="both"?"active":""),onClick:()=>pn("both"),children:[(0,h.jsx)(b.C,{name:"setting_panel/link/scroll_to_both",size:20}),I18N.SettingPanel.scroll_to_both]})]})},bs=a.Ay.div.withConfig({displayName:"linkStyles__StyledLinkItemGroup",componentId:"sc-1nyf930-0"})(["padding:0px 16px 0px 16px;"]),Vn=a.Ay.div.withConfig({displayName:"linkStyles__StyledLinkTransitionGroup",componentId:"sc-1nyf930-1"})(["padding:0px 16px 0 16px;.group-name{font-weight:500;display:flex;align-items:center;color:",";}"],ho=>ho.theme.color_text_L1),ti=(0,o.memo)(ho=>{let{keyTriggerItem:Uo,keyTargetItem:pn,onSelectTargetItem:ys}=ho;const Dn=(0,$.d4)(ns.bt),Hs=(0,$.wA)(),{isEditingCombo:Qn}=(0,$.d4)(gs.r);let Gi="";Dn?Gi=Dn:Gi=(Qn?(0,Wn.n$)(sdkStore,Uo):(0,Wn.ao)(sdkStore,Uo))||(0,Wn.OV)(sdkStore,Uo);const[oa,ta]=(0,o.useState)(""),Sa=(0,o.useCallback)(Mt=>new RegExp((0,re.$)(oa),"i").test(Mt),[oa]),La=(0,o.useMemo)(()=>pt(Gi,Sa),[Gi,Sa]),ya=La.hotAttr.type==="wBasket"?[La]:La.subHotItemList,Ja=Mt=>{Hs({type:"set:echo:item",payload:{cid:Mt===Je.rE?Uo:Mt}})},No=Mt=>{Hs({type:"set:echo:item",payload:{cid:void 0}})},ct=(0,o.useRef)(null);return(0,o.useEffect)(()=>{var Mt;return(Mt=ct.current)==null||(Mt=Mt.querySelector('div[role="option"][data-value="'+pn+'"]'))==null||Mt.scrollIntoView(),()=>Hs({type:"set:echo:item",payload:{cid:void 0}})}),(0,h.jsx)(mo,{ref:ct,query:oa,setQuery:ta,children:Mt=>{let{toToggleCollapsed:ht,keyItemCollapsed:oo}=Mt;return(0,h.jsx)(ze,{className:g()("isV9Layout"),children:(0,h.jsxs)("div",{className:"scroll-able-container",children:[(0,h.jsx)(Tt,{depth:0,withSubOptions:!1,optionItem:{...sdkStore.getHotItem(Uo),key:Je.rE},isOptionActive:()=>pn===Je.rE,isOptionDisabled:uo=>{let{hotAttr:{type:So}}=uo;return So==="rResCanvas"},onMouseEnterOption:Ja,onMouseLeaveOption:No,onSelect:ys},Je.rE),(0,h.jsx)(ft,{}),(0,h.jsx)(h.Fragment,{children:ya.map(uo=>(0,h.jsx)(Tt,{depth:0,withSubOptions:!0,optionItem:uo,isOptionActive:So=>{let{key:zo}=So;return pn===zo},onSelect:ys,isOptionCollapsed:So=>{let{key:zo}=So;return oo.includes(zo)},isOptionDisabled:So=>{let{forDisplayOnly:zo}=So;return zo},onToggleCollapsed:ht,onMouseEnterOption:Ja,onMouseLeaveOption:No},uo.key))})]})})}})});ti.displayName="InteractionTargetItemSelect";const oi=a.Ay.div.withConfig({displayName:"styles__StyledVisibilityActions",componentId:"sc-99fmsd-0"})([".is-placeholder{button{color:",';}}.transition-view{width:20px;height:20px;margin-bottom:unset;margin-right:8px;.pages{width:20px;height:20px;border:1px solid transparent;line-height:20px;[class*=" icon-"]{margin-left:unset;width:100%;height:100%;}.page2{color:#fff;background:',";}}}.link--drop-screen-list{width:108px;}.link--drop-transition-state-list{width:108px;&:lang(ja){width:120px;}}.link--drop-transition-list{width:108px;}.screen-link-fragment{padding:4px 7px 0 0;.select-number{width:60px;display:flex;align-items:center;.time-unit{margin-left:2px;}}}.panel-link-item{&:not(:last-child){margin-bottom:4px;}}.panel-link-screen-select{width:130px;padding-right:7px;button{justify-content:flex-end;}}"],ho=>ho.theme.color_text_disabled01,ho=>ho.theme.color_proto),Gt=ho=>{let{link:Uo,onChange:pn}=ho;const ys=(0,o.useRef)(null),Dn=(0,$.d4)(So=>(0,Mo.x$)(So)),Hs=(0,$.d4)(ns.bt),Qn=(0,O.W7)(Uo.data.setVisibleTransitionDuration),Gi=(0,O.W7)(Uo.data.setHiddenTransitionDuration),oa=(0,O.W7)(Uo.data.transitionDelay),ta=(0,O.W7)(Uo.data.timerDuration),Sa=Uo.data.setVisibleTransition==="auto",La=Uo.data.setHiddenTransition==="auto",ya=Uo.data.interactionTrigger!=="timer",Ja=Uo.data.interactionTrigger==="timer"||!!Uo.data.timerDuration,No=So=>{pn(So?"auto":"none","setVisibleTransition")},ct=So=>{pn(So?"auto":"none","setHiddenTransition")},Mt=So=>{ys.current.close(),pn(So,"targetWidgetKey")},ht=So=>{pn(So,"actionType")},oo=Uo.data.targetWidgetKey===Je.VZ&&!Hs?(0,Wn.JC)(sdkStore,Uo.triggerItemKey):Uo.targetWidgetKey,uo=!Uo.isTargetWidgetValid;return(0,h.jsxs)(oi,{children:[(0,h.jsx)(bs,{className:"link-item-group",children:(0,h.jsx)(dt.A,{linkTitle:I18N.SettingPanel.target_widget,children:(0,h.jsx)(k.A,{ref:ys,menux:"right",icon:uo?null:(0,h.jsx)(Rt,{renderItem:sdkStore.getHotItem(oo),targetKey:oo}),title:(0,O.iI)(Uo,Hs),isPlaceholder:uo,shouldPreventScrollingPropagation:!1,className:"link--drop-screen-list",forceDarkTheme:!0,renderMenu:(0,h.jsx)(ti,{keyTriggerItem:Dn[0].keyToAccessIntAct,keyTargetItem:oo,onSelectTargetItem:Mt})})})}),(0,h.jsx)("div",{className:"divider"}),(0,h.jsx)(Tn,{value:Uo.data.actionType,onChange:ht}),Uo.data.actionType!=="setHidden"&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"divider"}),(0,h.jsxs)(Vn,{className:"link-transition-group",children:[Uo.data.actionType==="toggleVisibility"&&(0,h.jsx)("div",{className:"group-name height-32",children:I18N.ToolBar.text_show}),(0,h.jsx)(dt.A,{linkTitle:I18N.SettingPanel.ani_name,children:(0,h.jsx)(qo,{link:Uo,enable:Sa,onChange:No})}),Sa&&(0,h.jsx)(dt.A,{linkTitle:I18N.SettingPanel.ani_duration,className:"state-action",children:(0,h.jsx)("div",{className:"state-link-select",children:(0,h.jsx)(r.A,{attr:"setVisibleTransitionDuration",value:Qn,suffix:"ms",min:0,max:1e4,optionList:R,onConfirm:pn})})}),Uo.data.actionType!=="toggleVisibility"&&ya&&(0,h.jsx)(dt.A,{linkTitle:I18N.SettingPanel.ani_delay,className:"state-action",children:(0,h.jsx)("div",{className:"state-link-select",children:(0,h.jsx)(r.A,{attr:"transitionDelay",value:oa,suffix:"ms",min:0,max:1e4,optionList:R,onConfirm:pn})})})]})]}),Uo.data.actionType!=="setVisible"&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"divider"}),(0,h.jsxs)(Vn,{className:"link-transition-group",children:[Uo.data.actionType==="toggleVisibility"&&(0,h.jsx)("div",{className:"group-name height-32",children:I18N.ToolBar.text_hidden}),(0,h.jsx)(dt.A,{linkTitle:I18N.SettingPanel.ani_name,children:(0,h.jsx)(qo,{link:Uo,enable:La,onChange:ct})}),La&&(0,h.jsx)(dt.A,{linkTitle:I18N.SettingPanel.ani_duration,className:"state-action",children:(0,h.jsx)("div",{className:"state-link-select",children:(0,h.jsx)(r.A,{attr:"setHiddenTransitionDuration",value:Gi,suffix:"ms",min:0,max:1e4,optionList:R,onConfirm:pn})})}),Uo.data.actionType!=="toggleVisibility"&&ya&&(0,h.jsx)(dt.A,{linkTitle:I18N.SettingPanel.ani_delay,className:"state-action",children:(0,h.jsx)("div",{className:"state-link-select",children:(0,h.jsx)(r.A,{attr:"transitionDelay",value:oa,suffix:"ms",min:0,max:1e4,optionList:R,onConfirm:pn})})})]})]}),Uo.data.actionType==="toggleVisibility"&&ya&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"divider"}),(0,h.jsx)(Vn,{className:"link-transition-group",children:(0,h.jsx)(dt.A,{linkTitle:I18N.SettingPanel.ani_delay,className:"state-action",children:(0,h.jsx)("div",{className:"state-link-select",children:(0,h.jsx)(r.A,{attr:"transitionDelay",value:oa,suffix:"ms",min:0,max:1e4,optionList:R,onConfirm:pn})})})})]}),Ja&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"divider"}),(0,h.jsx)(Vn,{className:"link-transition-group",children:(0,h.jsx)(dt.A,{linkTitle:I18N.SettingPanel.ani_delay,className:"state-action",children:(0,h.jsx)("div",{className:"state-link-select",children:(0,h.jsx)(r.A,{attr:"timerDuration",value:ta,suffix:"ms",min:0,max:1e4,optionList:V,onConfirm:pn})})})})]})]})};var Rs=e(2743);const Xs=a.Ay.div.withConfig({displayName:"styles__StyledOverlayActions",componentId:"sc-1omos11-0"})([".is-placeholder{button{color:",";}}.transition-view{width:24px;height:24px;margin-bottom:unset;margin-right:0px;.pages{width:24px;height:24px;border:none;line-height:24px;border-radius:4px;background-color:",';[class*=" icon-"]{margin-left:unset;width:100%;height:100%;}.page2{color:#fff;background:',";border-radius:4px;}}}.transition-action{.link--drop-transition-list,.transition-param-input{width:108px;&.isPlaceholder{button{color:",";}}}}.overlay-action{.link-opener-wrapper{.dropScreenMenu{width:108px;}&.is-disabled{.dropScreenMenu:hover{border-color:transparent;}}}}"],ho=>ho.theme.color_text_disabled01,ho=>ho.theme.color_btn_secondary_active,ho=>ho.theme.color_proto,ho=>ho.theme.color_proto),Ti=a.Ay.div.withConfig({displayName:"styles__StyledOverlayConfigGroup",componentId:"sc-1omos11-1"})(["padding:0 16px;.overlay-action{.overlay-input-wrapper,.overlay-relative-pos-select{width:108px;}.overlay-xy-input-wrapper{display:flex;align-items:center;justify-content:flex-start;> label{flex:0 0 72px;&:not(:last-child){margin-right:4px;}}}}.overlay-check{display:flex;align-items:center;.Check-label{color:",";}}.margin-left-n6{margin-left:-6px;}.backdrop-line{display:flex;align-items:center;color:",";.left-label{height:14px;color:",';line-height:14px;white-space:nowrap;}[type="color-btn"]{margin:0 6px;}}'],ho=>ho.theme.color_text_L2,ho=>ho.theme.color_text_L2,ho=>ho.theme.color_text_L2),di=(0,se.R)(()=>[{value:"ce",label:(0,h.jsx)(Ls,{name:I18N.SettingPanel.overlay_relative_pos.center,icon:"setting_panel/link/overlay_relative_pos/ce"})},{value:"tl",label:(0,h.jsx)(Ls,{name:I18N.SettingPanel.overlay_relative_pos.topleft,icon:"setting_panel/link/overlay_relative_pos/tl"})},{value:"tc",label:(0,h.jsx)(Ls,{name:I18N.SettingPanel.overlay_relative_pos.topcenter,icon:"setting_panel/link/overlay_relative_pos/tc"})},{value:"tr",label:(0,h.jsx)(Ls,{name:I18N.SettingPanel.overlay_relative_pos.topright,icon:"setting_panel/link/overlay_relative_pos/tr"})},{value:"bl",label:(0,h.jsx)(Ls,{name:I18N.SettingPanel.overlay_relative_pos.bottomleft,icon:"setting_panel/link/overlay_relative_pos/bl"})},{value:"bc",label:(0,h.jsx)(Ls,{name:I18N.SettingPanel.overlay_relative_pos.bottomcenter,icon:"setting_panel/link/overlay_relative_pos/bc"})},{value:"br",label:(0,h.jsx)(Ls,{name:I18N.SettingPanel.overlay_relative_pos.bottomright,icon:"setting_panel/link/overlay_relative_pos/br"})},{type:"divider"},{value:"manual",label:(0,h.jsx)(Ls,{name:I18N.SettingPanel.overlay_relative_pos.manual,icon:"setting_panel/link/overlay_relative_pos/manual"})}]),vs=ho=>{let{interaction:Uo,currRBPageKey:pn,currSelectedCanvasKey:ys,onChange:Dn}=ho;const Hs=(0,o.useRef)(null),{isEditingCombo:Qn}=(0,$.d4)(gs.r),Gi=D(),oa=Gi.find(oo=>Uo.data.transition===oo.value),ta=oa?oa.label:Uo.data.transition==="auto"?I18N.SettingPanel.link_move:I18N.SettingPanel.link_none_ani,Sa=(0,O.W7)(Uo.data.transitionDuration),La=Uo.data.interactionTrigger!=="timer",ya=(0,O.W7)(Uo.data.transitionDelay),Ja=Uo.data.interactionTrigger==="timer",No=Uo.data.interactionTrigger==="timer"?(0,O.W7)(Uo.data.timerDuration):null,ct=_[Uo.data.transition],Mt=(0,o.useMemo)(()=>ct?(0,h.jsx)(Ao,{id:Uo.data.transition,viewClassName:"transition-view"}):(0,h.jsx)(fe,{transition:Uo.data.transition}),[Uo.data.transition,ct]),ht=oo=>{var uo;(uo=Hs.current)==null||uo.close(),Dn(oo,"transition")};return(0,h.jsxs)(Xs,{children:[(0,h.jsx)(bs,{className:"link-item-group",children:(0,h.jsx)(dt.A,{linkTitle:I18N.w.rResCanvasAsOverlay,className:"overlay-action",children:(0,h.jsx)(Ho,{interaction:Uo,isSelectOverlay:!0,targetRBPageKey:pn,currSelectedCanvasKey:ys,isEditingCombo:Qn,onChange:Dn})})}),Uo.data.interactionType===l.O2.OpenOverlay&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"divider"}),(0,h.jsxs)(Ti,{children:[(0,h.jsx)(p.A,{attr:"closeWhenClickingOutside",className:g()("overlay-check","height-32","margin-left-n6",p.p),label:I18N.SettingPanel.close_overlay_when_clicking_outside,isChecked:Uo.data.closeWhenClickingOutside,onChange:Dn}),(0,h.jsxs)("div",{className:"backdrop-line height-32 margin-left-n6",children:[(0,h.jsx)(p.A,{attr:"addBackdrop",className:"style-check "+p.p,isChecked:Uo.data.addBackdrop,onChange:Dn}),(0,h.jsx)(Rs.R_,{className:Rs.Fw,attr:"backdropColor",color:Uo.data.backdropColor,onChange:Dn}),(0,h.jsx)("label",{className:"left-label",children:I18N.SettingPanel.backdrop})]}),Uo.data.addBackdrop&&(0,h.jsx)(dt.A,{linkTitle:I18N.SettingPanel.backdrop_filter_blur_radius,className:"overlay-action",children:(0,h.jsx)("div",{className:"overlay-input-wrapper",children:(0,h.jsx)(r.A,{attr:"backdropFilterBlurRadius",value:Uo.data.backdropFilterBlurRadius,min:0,max:1e4,onConfirm:Dn})})}),(0,h.jsx)(dt.A,{linkTitle:I18N.pInspect.position,className:"overlay-action",children:(0,h.jsx)(Ut.mq,{className:g()("overlay-relative-pos-select"),menuClassName:"overlay-relative-pos-select",attr:"overlayRelativePos",value:Uo.data.overlayRelativePos,optionList:di(),onChange:Dn})}),Uo.data.overlayRelativePos==="manual"&&(0,h.jsx)(dt.A,{className:"overlay-action",children:(0,h.jsxs)("div",{className:"overlay-xy-input-wrapper margin-left-n6",children:[(0,h.jsx)(r.A,{attr:"overlayRelativePosX",title:"X",value:Uo.data.overlayRelativePosX,min:-99999,max:99999,onConfirm:Dn}),(0,h.jsx)(r.A,{attr:"overlayRelativePosY",title:"Y",value:Uo.data.overlayRelativePosY,min:-99999,max:99999,onConfirm:Dn})]})})]})]}),(0,h.jsx)("div",{className:"divider"}),(0,h.jsxs)(Vn,{className:"link-transition-group",children:[(0,h.jsx)(dt.A,{linkTitle:I18N.SettingPanel.ani_name,className:"transition-action",children:(0,h.jsx)(k.A,{ref:Hs,menux:"right",title:ta,icon:Mt,className:"link--drop-transition-list",renderMenu:(0,h.jsx)(ae,{transitions:Gi,currentTransition:Uo.data.transition,onSelect:ht})})}),Uo.data.transition!=="none"&&(0,h.jsx)(dt.A,{linkTitle:I18N.SettingPanel.ani_duration,className:"transition-action",children:(0,h.jsx)("div",{className:"transition-param-input",children:(0,h.jsx)(r.A,{attr:"transitionDuration",value:Sa,suffix:"ms",min:0,max:1e4,optionList:R,onConfirm:Dn})})}),La&&(0,h.jsx)(dt.A,{linkTitle:I18N.SettingPanel.ani_delay,className:"transition-action",children:(0,h.jsx)("div",{className:"transition-param-input",children:(0,h.jsx)(r.A,{attr:"transitionDelay",value:ya,suffix:"ms",min:0,max:1e4,optionList:R,onConfirm:Dn})})}),Ja&&(0,h.jsx)(dt.A,{linkTitle:I18N.SettingPanel.ani_delay,className:"transition-action",children:(0,h.jsx)("div",{className:"transition-param-input",children:(0,h.jsx)(r.A,{attr:"timerDuration",value:No,suffix:"ms",min:0,max:1e4,optionList:V,onConfirm:Dn})})})]})]})},ei=ho=>{let{interaction:Uo,onChange:pn}=ho;const ys=Uo.data.interactionTrigger==="timer",Dn=Uo.data.interactionTrigger!=="timer",Hs=Uo.data.interactionTrigger==="timer"?(0,O.W7)(Uo.data.timerDuration):null,Qn=(0,O.W7)(Uo.data.transitionDelay);return(0,h.jsx)(Xs,{children:(0,h.jsxs)(Vn,{className:"link-transition-group",children:[ys&&(0,h.jsx)(dt.A,{linkTitle:I18N.SettingPanel.ani_delay,className:"transition-action",children:(0,h.jsx)("div",{className:"transition-param-input",children:(0,h.jsx)(r.A,{attr:"timerDuration",value:Hs,suffix:"ms",min:0,max:1e4,optionList:V,onConfirm:pn})})}),Dn&&(0,h.jsx)(dt.A,{linkTitle:I18N.SettingPanel.ani_delay,className:"transition-action",children:(0,h.jsx)("div",{className:"transition-param-input",children:(0,h.jsx)(r.A,{attr:"transitionDelay",value:Qn,suffix:"ms",min:0,max:1e4,optionList:R,onConfirm:pn})})})]})})},Si=a.Ay.div.withConfig({displayName:"styles__StyledScrollLinkActions",componentId:"sc-xw7n8u-0"})([".is-placeholder{button{color:",';}}.transition-view{width:20px;height:20px;margin-bottom:unset;margin-right:8px;.pages{width:20px;height:20px;border:1px solid transparent;line-height:20px;[class*=" icon-"]{margin-left:unset;width:100%;height:100%;}.page2{color:#fff;background:',";}}}.link--drop-screen-list{width:108px;}.link--drop-transition-state-list{width:130px;width:108px;&:lang(ja){width:120px;}}.link--drop-transition-list{width:108px;}.no-both{width:65px;}.screen-link-fragment{padding:4px 7px 0 0;.select-number{width:60px;display:flex;align-items:center;.time-unit{margin-left:2px;}}}.panel-link-item{&:not(:last-child){margin-bottom:4px;}}.panel-link-screen-select{width:130px;padding-right:7px;button{justify-content:flex-end;}}.scroll-link-offset{.link-action-title{flex-shrink:0;margin-right:6px;}&.both{.state-link-select.offset-x{margin-right:3px;}.state-link-select.offset-y{margin-left:3px;}}}"],ho=>ho.theme.color_text_disabled01,ho=>ho.theme.color_proto),Gs=ho=>{var Uo,pn,ys,Dn,Hs,Qn,Gi,oa,ta,Sa,La,ya,Ja,No,ct,Mt,ht,oo,uo,So;let{link:zo,onChange:en,currentCanvas:mn,isEditingCombo:jn}=ho;const Oo=(0,o.useRef)(null),Nn=(0,$.d4)(On=>(0,Mo.x$)(On)),es=(0,$.d4)(ns.bt),zt=(0,O.W7)((Uo=zo.data)==null?void 0:Uo.transitionDuration),po=(0,O.W7)((pn=zo.data)==null?void 0:pn.transitionDelay),Fo=(0,O.W7)((ys=zo.data)==null?void 0:ys.timerDuration),Mn=((Dn=zo.data)==null?void 0:Dn.transition)==="auto",Fn=((Hs=zo.data)==null?void 0:Hs.interactionTrigger)!=="timer",ts=((Qn=zo.data)==null?void 0:Qn.interactionTrigger)==="timer"||!!((Gi=zo.data)!=null&&Gi.timerDuration),As=(oa=(ta=zo.data)==null?void 0:ta.scrollToOffsetX)!=null?oa:0,Is=(Sa=(La=zo.data)==null?void 0:La.scrollToOffsetY)!=null?Sa:0,io=On=>{en(On?"auto":"none","transition")},Jo=On=>{var us;(us=Oo.current)==null||us.close(),en(On,"targetWidgetKey")},Zo=((ya=zo.data)==null?void 0:ya.targetWidgetKey)===Je.VZ&&!es?(0,Wn.JC)(sdkStore,zo.triggerItemKey):zo.targetWidgetKey,Un=!zo.isTargetWidgetValid;return(0,h.jsxs)(Si,{children:[(0,h.jsx)(bs,{className:"link-item-group",children:(0,h.jsx)(dt.A,{linkTitle:I18N.SettingPanel.target_widget,children:(0,h.jsx)(k.A,{ref:Oo,menux:"right",title:(0,O.iI)(zo,es),isPlaceholder:!zo.isTargetWidgetValid,shouldPreventScrollingPropagation:!1,className:"link--drop-screen-list",forceDarkTheme:!0,icon:Un?null:(0,h.jsx)(Rt,{renderItem:sdkStore.getHotItem(Zo),targetKey:Zo}),renderMenu:(0,h.jsx)(ti,{keyTriggerItem:Nn[0].keyToAccessIntAct,keyTargetItem:Zo,onSelectTargetItem:Jo})})})}),(0,h.jsx)("div",{className:"divider"}),(0,h.jsx)(cn,{value:(Ja=zo.data)==null?void 0:Ja.scrollToDir,onChange:On=>en(On,"scrollToDir")}),(0,h.jsx)(Vn,{className:g()("scroll-link-offset",{both:((No=zo.data)==null?void 0:No.scrollToDir)==="both"}),children:(0,h.jsxs)(dt.A,{linkTitle:I18N.SettingPanel.scroll_to_offset,children:[(((ct=zo.data)==null?void 0:ct.scrollToDir)==="horizontal"||((Mt=zo.data)==null?void 0:Mt.scrollToDir)==="both")&&(0,h.jsx)("div",{className:g()("state-link-select offset-x",{"no-both":((ht=zo.data)==null?void 0:ht.scrollToDir)!=="both"}),children:(0,h.jsx)(r.A,{attr:"scrollToOffsetX",value:As,title:"X",min:-99999,max:99999,isDisabled:jn?!0:!mn,onConfirm:en})}),(((oo=zo.data)==null?void 0:oo.scrollToDir)==="vertical"||((uo=zo.data)==null?void 0:uo.scrollToDir)==="both")&&(0,h.jsx)("div",{className:g()("state-link-select offset-y",{"no-both":((So=zo.data)==null?void 0:So.scrollToDir)!=="both"}),children:(0,h.jsx)(r.A,{attr:"scrollToOffsetY",title:"Y",value:Is,min:-99999,max:99999,isDisabled:jn?!0:!mn,onConfirm:en})})]})}),(0,h.jsx)("div",{className:"divider"}),(0,h.jsxs)(Vn,{className:"link-transition-group",children:[(0,h.jsx)(dt.A,{linkTitle:I18N.SettingPanel.ani_name,children:(0,h.jsx)(qo,{enable:Mn,onChange:io})}),Mn&&(0,h.jsx)(dt.A,{linkTitle:I18N.SettingPanel.ani_duration,className:"state-action",children:(0,h.jsx)("div",{className:"state-link-select",children:(0,h.jsx)(r.A,{attr:"transitionDuration",value:zt,suffix:"ms",min:0,max:1e4,optionList:R,onConfirm:en})})}),Fn&&(0,h.jsx)(dt.A,{linkTitle:I18N.SettingPanel.ani_delay,className:"state-action",children:(0,h.jsx)("div",{className:"state-link-select",children:(0,h.jsx)(r.A,{attr:"transitionDelay",value:po,suffix:"ms",min:0,max:1e4,optionList:R,onConfirm:en})})}),ts&&(0,h.jsx)(dt.A,{linkTitle:I18N.SettingPanel.ani_delay,className:"state-action",children:(0,h.jsx)("div",{className:"state-link-select",children:(0,h.jsx)(r.A,{attr:"timerDuration",value:Fo,suffix:"ms",min:0,max:1e4,optionList:V,onConfirm:en})})})]})]})},Vs=ho=>{let Uo;try{Uo=new URL(ho)}catch(pn){return!1}return Uo.protocol==="http:"||Uo.protocol==="https:"},ps=a.Ay.div.withConfig({displayName:"styles__StyledHyperlinkActions",componentId:"sc-12fp4my-0"})(["padding:0 16px;.hyperlink-transition{.hyperlink-open-select{width:108px;}}.hyperlink-input{header{display:flex;align-items:center;color:",";}.content-box-container{padding:8px 0;textarea{height:80px;background:",";}}}.tip-icon{margin-left:2px;color:",";&:hover{color:",";}}"],ho=>ho.theme.color_text_L2,ho=>ho.theme.color_bg_white,ho=>ho.theme.color_text_L2,ho=>ho.theme.color_text_L1);var kn=e(72175),zn=e(89535);class hs extends o.PureComponent{constructor(Uo){super(Uo),(0,A.A)(this,"handleContentChange",pn=>{this.props.onChange(pn[0],"interactionExternalUrl")}),(0,A.A)(this,"handleContentBoxBlur",pn=>{pn[0]&&!Vs(pn[0])?(MB.notice({text:I18N.SettingPanel.invalid_url_notice}),this.setState({isURLValid:!1})):this.setState({isURLValid:!0})}),this.state={isURLValid:Uo.link.data.interactionExternalUrl?Vs(Uo.link.data.interactionExternalUrl):!0}}render(){const{link:Uo,link:{interactionExternalUrl:pn,openIn:ys},onChange:Dn}=this.props,Hs=Uo.data.interactionTrigger==="timer",Qn=Uo.data.interactionTrigger!=="timer",Gi=Uo.data.interactionTrigger==="timer"?(0,O.W7)(Uo.data.timerDuration):null,oa=(0,O.W7)(Uo.data.transitionDelay),{isURLValid:ta}=this.state,Sa=[{label:I18N.SettingPanel.new_tab,value:"newTab"},{label:I18N.SettingPanel.current_artboard_transition,value:"inPage"}];return(0,h.jsxs)(ps,{className:"hyper-link-actions",children:[(0,h.jsx)(dt.A,{linkTitle:I18N.SettingPanel.jump,className:"hyperlink-transition",children:(0,h.jsx)(Ut.mq,{className:"hyperlink-open-select",attr:"openIn",value:ys,optionList:Sa,isRightAlign:!0,onChange:Dn})}),(0,h.jsxs)("div",{className:"hyperlink-input",children:[(0,h.jsxs)("header",{className:"height-32",children:[I18N.SettingPanel.address,!ta&&(0,h.jsx)(zn.A,{maxWidth:"252px",content:I18N.SettingPanel.invalid_url_tip,children:(0,h.jsx)(b.C,{size:16,name:"design/warning",className:"tip-icon"})})]}),(0,h.jsx)("div",{className:"content-box-container",children:(0,h.jsx)(kn.k,{placeholder:I18N.SettingPanel.input_address,onChange:this.handleContentChange,onBlur:this.handleContentBoxBlur,content:pn,ita:Uo})})]}),Hs&&(0,h.jsx)(dt.A,{linkTitle:I18N.SettingPanel.ani_delay,className:"transition-action",children:(0,h.jsx)("div",{className:"transition-param-input",children:(0,h.jsx)(r.A,{attr:"timerDuration",value:Gi,suffix:"ms",min:0,max:1e4,optionList:V,onConfirm:Dn})})}),Qn&&(0,h.jsx)(dt.A,{linkTitle:I18N.SettingPanel.ani_delay,className:"state-action",children:(0,h.jsx)("div",{className:"state-link-select",children:(0,h.jsx)(r.A,{attr:"transitionDelay",value:oa,suffix:"ms",min:0,max:1e4,optionList:R,onConfirm:Dn})})})]})}}var Ss=e(78336),fi=e(47143),ri=e(18578),Li=e(50167),ji=e(97788);const{LinkToCanvas:_t,LinkToSourceCanvas:Aa,SetBasketCanvas:Ki,OpenExternalUrl:bi,ScrollTo:sa,SetVisibility:Zi,OpenOverlay:Fa,SwapOverlay:to,CloseOverlay:Qt}=l.O2,Sn=(0,q.Mz)([K.He,ns.jI,ns.bt,gs.r,fi.Ur,Li.wN],(ho,Uo,pn,ys,Dn,Hs)=>{let{isEditingCombo:Qn,isEditingMuban:Gi}=ys;return{screenDataMap:ho,editingPanelCid:Uo,editingPanelRefPage:pn,isEditingCombo:Qn,currentScreen:Dn,isEditingMuban:Gi,isGlobalLink:Hs}}),Vo=(0,o.memo)(ho=>{const{link:Uo,currentWidgetKey:pn,currentCanvas:ys,hasTrash:Dn,interactionTree:Hs,selectTreeNode:Qn,uiFrom:Gi,interactionStore:oa,isNewTriggerPlaceHolder:ta=!0}=ho,Sa=(0,$.wA)(),{currentScreen:La,editingPanelRefPage:ya,isEditingCombo:Ja,screenDataMap:No,editingPanelCid:ct,isGlobalLink:Mt}=(0,$.d4)(Sn),ht=(uo,So)=>{Sa(ri.R7.command.updateItaKV({link:Uo,attr:So,value:uo,uiFrom:Gi,interactionTree:Hs,interactionStore:oa,isNewTriggerPlaceHolder:ta}))},oo=()=>{Sa(ri.R7.command.deleteIta({deleteNode:Qn,uiFrom:Gi,interactionStore:oa}))};return(0,o.useEffect)(()=>()=>{ji.Wv.clear()},[]),(0,h.jsxs)(Ss.pn,{"data-cid":Uo.key,className:g()("link-editor",{disabled:!1}),id:Mt?"twinkling-global-link-"+Uo.key:"",children:[(0,h.jsx)("div",{className:g()("link-content"),children:(0,h.jsxs)("div",{className:"link-main",children:[(0,h.jsx)(T.A,{trigger:Uo.data.interactionTrigger,isGlobalLink:Mt,onChange:ht,hasTrash:Dn,interactionTree:Hs,isLimitTrigger:!1,handleDelete:oo}),(0,h.jsx)("div",{className:"divider"}),(0,h.jsx)(C.A,{link:Uo,isEditingCombo:Ja,onChange:ht}),[_t,Aa].includes(Uo.interactionType)&&(0,h.jsx)(xt,{link:Uo,editingPanelCid:ct,targetScreen:No[Uo.targetRBPageKey||(ys==null?void 0:ys.sup)]||La,currentCanvas:ys,isEditingCombo:Ja,onChange:ht}),Uo.interactionType===Ki&&(0,h.jsx)(an,{link:Uo,editingPanelRefPage:ya,currentWidgetKey:pn,onChange:ht}),Uo.interactionType===bi&&(0,h.jsx)(hs,{link:Uo,onChange:ht}),Uo.interactionType===sa&&(0,h.jsx)(Gs,{link:Uo,currentCanvas:ys,isEditingCombo:Ja,onChange:ht}),Uo.interactionType===Zi&&(0,h.jsx)(Gt,{link:Uo,onChange:ht}),(Uo.interactionType===Fa||Uo.interactionType===to)&&(0,h.jsx)(vs,{interaction:Uo,currRBPageKey:(No[Uo.targetRBPageKey||(ys==null?void 0:ys.sup)]||La).key,currSelectedCanvasKey:(ys==null?void 0:ys.key)||"",onChange:ht}),Uo.interactionType===Qt&&(0,h.jsx)(ei,{interaction:Uo,onChange:ht})]})}),(0,h.jsx)(Ss.fl,{})]})})},72400:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>x});var o=e(74059),m=e(51044),g=e(29073),l=e(75212),C=e(7290),T=e(21676);const A=T.Ay.div.withConfig({displayName:"style__StyledLinkHeader",componentId:"sc-5r07sc-0"})(["display:flex;flex-direction:column;padding-top:16px;.link-header{display:flex;align-items:center;justify-content:space-between;padding:0 10px 0 16px;.link-title{color:",";font-weight:500;flex:1;}.action{display:flex;.svg-icon{color:",";}.trash-icon{display:flex;align-items:center;color:",";width:10px;height:12px;&:hover{.svg-icon{color:#298df8;}}}}}.link-info{display:flex;align-items:center;padding:0 16px;.options-opener{width:137px;}.link-name{margin:0 4px;}.arrow-icon{font-size:12px;color:",";transform:rotate(90deg);}}"],f=>f.theme.color_text_L1,f=>f.theme.color_text_L2,f=>f.theme.color_text_L2,f=>f.theme.color_text_L3);var k=e(97788),p=e(67737),r=e(57464);class x extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"setDropdownRef",u=>this.Dropdown=u),(0,o.A)(this,"handleGesture",u=>{this.props.onChange(u,"interactionTrigger")}),(0,o.A)(this,"handleTrashClick",()=>{const{handleDelete:u,hasTrash:b}=this.props;b&&u()})}render(){const{trigger:u,isGlobalLink:b,hasTrash:h,interactionTree:E,isLimitTrigger:N}=this.props;return(0,r.jsx)(A,{children:(0,r.jsx)("div",{className:"link-info height-32",children:(0,r.jsx)(p.A,{linkTitle:I18N.Interaction.trigger_desc,className:"state-action",children:(0,r.jsx)(g.A,{isPosition2:!0,isOpenerAttrDisabled:!1,ref:this.setDropdownRef,menux:"left",title:(0,k.vc)(u),icon:(0,r.jsx)(C.C,{size:16,name:"interaction/trigger/"+u}),className:"link--drop-gesture-list",renderMenu:(0,r.jsx)(l.A,{isGlobalLink:b,currentGesture:u,onSelect:this.handleGesture,interactionTree:E,isLimitTrigger:N})})})})})}}},58724:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>se,X:()=>fe});var o=e(74059),m=e(51044),g=e(44864),l=e(8681),C=e(21676);const T=C.Ay.div.withConfig({displayName:"styles__StyledLinkTypeSelect",componentId:"sc-lmbucw-0"})(['display:flex;align-items:center;justify-content:space-between;padding:0 16px;.placeholder-style{[type="button"]{span{color:',";}}}.link-type-select{width:108px;}.link-title{display:flex;color:",";}"],J=>J.theme.color_proto,J=>J.theme.color_text_L2),A=C.Ay.div.withConfig({displayName:"styles__StyledScrollToTip",componentId:"sc-lmbucw-1"})(['position:absolute;top:-122px;left:-35px;width:196px;background:#454647;color:#fff;flex-direction:column;justify-content:space-around;padding:12px 16px;border-radius:6px;z-index:1;&.no-scroll{top:-102px;}&::before{content:"";position:absolute;top:100%;left:19%;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #454647;}p{font-weight:400;line-height:20px;}']);var k=e(19216),p=e(28497),r=e(25399),x=e(97788),f=e(29073),u=e(86634),b=e.n(u),h=e(7290),E=e(88768),N=e(57464);const{LinkToCanvas:z,OpenOverlay:S,SwapOverlay:_}=p.O2;class y extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"LINK_TYPE_OPTIONS",(0,x.gu)()),(0,o.A)(this,"handleGetLinkTypeOptions",()=>{const{isEditingCombo:ve}=this.props;return this.LINK_TYPE_OPTIONS.map(D=>ve&&[z,S,_].some(R=>R===D.value)?{...D,isDisabled:!0}:D)}),(0,o.A)(this,"handleSelect",ve=>{if(ve.currentTarget.classList.contains("disabled"))return;const{action:D}=ve.currentTarget.dataset;this.props.onSelect(D)})}render(){const{currentInteractionType:ve}=this.props,D=this.handleGetLinkTypeOptions();return(0,N.jsx)(E.A,{children:(0,N.jsx)("ul",{children:D.map((R,V)=>{const O=R.value===ve,Ce=R.type==="divider",ae=b()({gesture:R.type!=="divider",current:O,disabled:R.isDisabled,"shake-divider":Ce,"is-active":O});return(0,N.jsxs)("li",{role:R.type!=="divider"?"option":"","data-action":R.value,className:ae,"aria-label":I18N.SettingPanel.link_tips,"data-microtip-position":"left",onClick:this.handleSelect,children:[O&&(0,N.jsx)(h.C,{name:"common/checked",className:"checked display-gesture"}),!Ce&&(0,N.jsx)(h.C,{name:"interaction/action/"+R.value,className:"display-gesture"}),!Ce&&(0,N.jsx)("p",{children:R.label})]},V)})})})}}const{LinkToCanvas:a,OpenOverlay:$,SwapOverlay:ce}=p.O2;let de=null;const fe=()=>{setTimeout(()=>{var J;(J=de)==null||J.open()},100)};class se extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"setDropdownRef",ve=>{de=ve}),(0,o.A)(this,"LINK_TYPE_OPTIONS",(0,x.gu)()),(0,o.A)(this,"handleLinkType",ve=>{const D=Number(ve);this.props.onChange(D,"interactionType")}),(0,o.A)(this,"handleGetLinkTypeOptions",()=>{const{isEditingCombo:ve}=this.props;return this.LINK_TYPE_OPTIONS.map(D=>ve&&[a,$,ce].some(R=>R===D.value)?{...D,isDisabled:!0}:D)}),(0,o.A)(this,"showScrollToInteractionTip",()=>{const{isDummy:ve,link:D}=this.props;if(ve||D.data.interactionType!==p.O2.ScrollTo)return null;try{const R=D.targetWidgetKey===r.rE?D.triggerItemKey:D.targetWidgetKey===r.VZ?(0,k.JC)(sdkStore,D.triggerItemKey):D.targetWidgetKey,V=(0,k.Ik)(sdkStore,R||"")||sdkStore.locUpColdCanvasKey(R||""),O=sdkStore.getHotItem(V||"");if(!O)return null;let Ce=!0,ae=!0;if(O.hotAttr.type==="wBasket")Ce=O.hotAttr.scroll===2||O.hotAttr.scroll===3,ae=O.hotAttr.scroll===2||O.hotAttr.scroll===4;else if(O.hotAttr.type==="rResCanvas"&&!O.hotAttr.asOverlay){const xe=sdkStore.getHotItem(O.sup);if(!xe)return null;xe.sup===g.fW?(Ce=xe.hotAttr.scroll===2||xe.hotAttr.scroll===3,ae=xe.hotAttr.scroll===2||xe.hotAttr.scroll===4):(Ce=xe.hotAttr.deviceScroll==="vertical"||xe.hotAttr.deviceScroll==="auto",ae=xe.hotAttr.deviceScroll==="horizontal"||xe.hotAttr.deviceScroll==="auto")}let q=null,K="";return!Ce&&!ae?(q=I18N.SettingPanel.no_scroll_tip,K="no-scroll"):!Ce&&D.data.scrollToDir!=="horizontal"?q=I18N.SettingPanel.no_vertical_scroll_tip:!ae&&D.data.scrollToDir!=="vertical"&&(q=I18N.SettingPanel.no_horizontal_scroll_tip),q?(0,N.jsx)(l.A,{className:"fixed-reminder-tips",renderContent:()=>(0,N.jsx)(A,{className:K,children:(0,N.jsx)("p",{children:q})})}):null}catch(R){return null}})}componentWillUnmount(){de=null}render(){const{link:ve,isDummy:D,isEditingCombo:R}=this.props;return(0,N.jsxs)(T,{className:"link-type height-32 title-content",children:[(0,N.jsxs)("p",{className:"link-title",children:[(0,N.jsx)("span",{children:I18N.SettingPanel.link_action}),this.showScrollToInteractionTip()]}),(0,N.jsx)(f.A,{isPosition2:!0,ref:this.setDropdownRef,menux:"left",isPlaceholder:D,title:D?I18N.Interaction.ita_please:(0,x.Qe)(ve.data.interactionType),icon:D?null:(0,N.jsx)(h.C,{size:16,name:"interaction/action/"+ve.data.interactionType}),className:"link-type-select link-drop-action-list",renderMenu:(0,N.jsx)(y,{isGlobalLink:!1,currentInteractionType:D?-1:ve.data.interactionType,onSelect:this.handleLinkType,isEditingCombo:R})})]})}}},67737:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>T});var o=e(51044),m=e(21676);const g=m.Ay.div.withConfig({displayName:"styles__StyledLinkAction",componentId:"sc-1tyil2l-0"})(["display:flex;justify-content:space-between;align-items:center;.link-action-title{color:",";&:lang(ja){font-size:10px;}}"],A=>A.theme.color_text_L2);var l=e(57464);const C=A=>{let{className:k="",linkTitle:p,children:r}=A;return(0,l.jsxs)(g,{className:k+" height-32 title-content",children:[(0,l.jsx)("p",{className:"link-action-title",children:p}),r]})},T=(0,o.memo)(C)},78336:(Et,ke,e)=>{"use strict";e.d(ke,{fl:()=>g,pn:()=>l});var o=e(21676),m=e(44057);const g=(0,o.DU)([".SelectMenuPortal{.link-type-list{transform:translateX(-20px);}.SelectNumberMenu{transform:translateX(-20px);}}.WorkspaceSelectMenu{&.link-time-menu{width:100%;}&.link-state-select{max-width:136px;li.SelectGroup .divider{background:",';}&::-webkit-scrollbar-thumb{background-color:#666;}}&.overlay-relative-pos-select{left:-30px;.svg-icon{margin-right:8px;}}}.DesignDropdownMenuBase{.DesignDropdownMenu{border:none;}.link--drop-screen-list{[type="search"]{}.content{padding:8px;width:190px;height:275px;&:has(.empty-target-option){padding-top:8px;width:144px;height:auto;}.empty-target-option{padding-left:6px;color:',";opacity:0.9;}.rn-list-item{color:",";&:not(.active):hover{background-color:",";color:",";}&[data-forcedarktheme='true']{color:#b8bcbf;&:not(.active):hover{background-color:#363738;color:#1684fc;}}}}}.link--drop-transition-list{border-radius:8px;background:",";.content{padding:0;width:218px;}}.link--drop-transition-state-list{.content{padding:0;width:116px;height:76px;&:lang(en){width:max-content;}}}.link--drop-gesture-list{transition:unset;transform:unset;border-radius:8px;width:208px;.content{border-radius:8px;}}.link-drop-action-list{transition:unset;transform:unset;transition-delay:0.1s;filter:unset;border-radius:8px;width:160px;.content{border-radius:8px;}}}"],T=>T.theme.color_bg_border_01,T=>T.theme.color_text_L0,T=>T.theme.color_text_L2,T=>T.theme.color_bg_canvas,T=>T.theme.color_proto,T=>T.theme.color_background_white_modal),l=o.Ay.div.withConfig({displayName:"styles__StyledLinkEditor",componentId:"sc-1exmbd1-0"})([".divider{border-top:1px solid ",";margin:8px 16px;}.link-main{padding-bottom:16px;.link-title{color:",";}}.panel-footer{margin:12px 10px;display:flex;justify-content:flex-end;.cancel-btn{color:#7d8694;margin-right:16px;}.confirm-btn{width:68px;height:24px;border-radius:2px;font-size:12px;background:",";color:#fff;&[disabled]{cursor:not-allowed;color:rgb(200,205,208);background:rgb(246,247,248);border-width:1px;border-style:solid;border-color:rgb(222,222,228);border-image:initial;}}}.height-32{height:32px;justify-content:unset;.opener-icon-container{margin-left:1px;}}.title-content{> p{min-width:64px;width:64px;}> :nth-child(2){&:not(.state-link-select){width:144px;.options-opener{width:144px;}}}}&.duumy-editor{padding-bottom:16px;}"],T=>T.theme.color_bg_border_02,T=>T.theme.color_text_L2,T=>T.theme.color_proto),C=(0,o.Ay)(m.Ay).withConfig({displayName:"styles__StyledMenuContent",componentId:"sc-1exmbd1-1"})(["ul{min-width:64px;}&.isV9Layout ul{padding:8px;border-radius:8px;border:1px solid ",";color:",";background:",";box-shadow:",";li.MenuItem{a{border-radius:4px;background:",";color:",";svg path{fill:",";}.right-arrow svg > path{fill:",";}.shortfont kbd{color:",";}}&:not(.disabled).active{a{background:",";}}&.disabled{a{color:",";svg path{fill:",";}.shortfont kbd{color:",";}}}}}"],T=>T.theme.color_bg_border_01,T=>T.theme.color_text_L0,T=>T.theme.color_bg_white,T=>T.theme.shadow_m,T=>T.theme.color_bg_white,T=>T.theme.color_text_L0,T=>T.theme.color_text_L0,T=>T.theme.color_text_L2,T=>T.theme.color_text_L2,T=>T.theme.color_btn_secondary_hover,T=>T.theme.color_text_disabled01,T=>T.theme.color_text_disabled01,T=>T.theme.color_text_disabled01)},77777:(Et,ke,e)=>{"use strict";e.d(ke,{E:()=>C});var o=e(28497),m=e(19216),g=e(97788),l=e(2937);const C=T=>{let{buildTreeRes:A,selectSubItaType:k,widget:p,type:r}=T;const{itaTree:x,runTimeInteraction:f}=A,u=new Map;(0,g._k)(x,H=>{u.set(H.attr.key,H)});const b=new Map(JSON.parse(JSON.stringify(f)).map(H=>[H.key,H])),h=x,E=[...p.interactions],N=[],z=H=>b.get(H),S=H=>u.get(H),_=(H,re,be)=>{const Le=b.get(H);Le&&(Le[re]=be,Le.data[re]=be)},y=(H,re)=>{b.get(H)||b.set(H,re)},a=H=>{h.sub=h.sub.filter(re=>re.attr.trigger!==H)},$=H=>{(0,g.Z_)(h,H,N),h.sub=h.sub.filter(re=>re.attr.trigger!==H.attr.trigger)},ce=()=>{const H=h.sub;H.length===1&&(0,g.xx)(H[0].sub).length===0&&$(H[0])},de=H=>{let{treeNode:re,uiFrom:be}=H;if(be==="treePanelFloat"){if(re.type==="trigger")$(re),ce();else{N.push(re.attr.key);const Le=h.sub,Ve=(0,g.Mc)({interactionTree:h,trigger:re.attr.interactionTrigger});Le.length===1?(0,g.xx)(Ve.sub).length===1?($(Ve),ce()):(0,g.is)(h,re):Ve.sub.length===2?_(Ve.sub[0].attr.key,"interactionType",o.O2.TriggerPlaceHolder):(0,g.is)(h,re)}return}if(re.type==="trigger")$(re);else{const Le=(0,g.Mc)({interactionTree:h,trigger:re.attr.interactionTrigger});N.push(re.attr.key),Le.sub.length===2?_(Le.sub[0].attr.key,"interactionType",o.O2.TriggerPlaceHolder):(0,g.is)(h,re)}},fe=()=>{const H=[],re=h.sub;for(const Ve of re)for(const Ne of Ve.sub){if(Ne.attr.interactionType==="dummy")continue;const We=z(Ne.attr.key);We&&H.push(We.data)}const be=(0,g.RO)(H);return(0,g.RO)(E.filter(Ve=>!N.includes(Ve.key)&&!be.find(Ne=>Ne.key===Ve.key))).concat(be)},se=H=>{const re=[],be=h.sub;for(const Ve of be)for(const Ne of Ve.sub){if(Ne.attr.interactionType==="dummy")continue;const We=z(Ne.attr.key);We&&(H.includes(We.data.interactionTrigger)&&_(Ne.attr.key,"!validVersion",2),re.push(We.data))}const Le=(0,g.RO)(re);return E.filter(Ve=>!N.includes(Ve.key)&&!Le.find(Ne=>Ne.key===Ve.key)).concat(Le)},J=H=>h.sub.find(re=>re.attr.trigger===(0,m.oS)(H)),ve=(H,re)=>{D((0,g.db)({attr:{...H,data:{...H}},supKey:re}))},D=H=>{const re=H.sup;if((0,g.sJ)(re)){const be=h.sub.find(Le=>Le.attr.key===re);if(y(H.attr.key,H.attr),be){const Le={...H,attr:{...H.attr,triggerDisable:be.attr.disabled,data:{...H.attr.data,triggerDisable:be.attr.disabled}}};_(H.attr.key,"triggerDisable",be.attr.disabled),be.sub.push(Le)}else h.sub.push((0,g.TK)({key:re,trigger:(0,g.Oz)(re),sub:[H],triggerDisable:!1})),_(H.attr.key,"triggerDisable",!1)}};return{_interactionTree:h,type:r,query:{getNode:S,getInteractionByKey:z,deleteInteractionByTrigger:a,getInteractions:fe,getTriggerNode:J,getSelectSubItaType:()=>k,findUpNodeList:H=>{if(!H)return[];const re=[H];let be=H.sup;for(;be!=="root";){const Le=S(be);if(!Le)break;re.push(Le),be=Le.sup}return re},findUpTriggerNode:H=>{let re=S(H);if(re){for(;re.type!=="trigger"&&(re=u.get(re.sup),!!re););return re}},getCurrentWidget:()=>p},command:{deleteByTreeNode:de,insertNode:D,insertNodeIta:ve,moveNodeToNewSup:(H,re)=>{const be=(0,g.zS)(H,h);if(be&&(0,g.sJ)(re)&&(0,g.sJ)(be.sup)){const Le=h.sub.find(We=>We.attr.key===be.sup),Ve=(0,g.Oz)(re),Ne=(0,g.xx)(Le.sub);if(Ne.length===0||Ne.length===1){Le.attr.trigger=Ve;const We=h.sub.find(ft=>ft.attr.key===re);let ze;We?ze=We.attr.disabled:ze=Le.attr.disabled;for(const ft of Le.sub)_(ft.attr.key,"interactionTrigger",Ve),_(ft.attr.key,"triggerDisable",ze)}else{Le.sub=Le.sub.filter(ze=>ze.attr.key!==be.attr.key);const We=h.sub.find(ze=>ze.attr.key===re);if(_(be.attr.key,"interactionTrigger",Ve),We){const ze={...be,attr:{...be.attr,triggerDisable:We.attr.disabled,data:{...be.attr.data,triggerDisable:We.attr.disabled}}};We.sub.push(ze),_(be.attr.key,"triggerDisable",We.attr.disabled)}else h.sub.push((0,g.TK)({key:re,trigger:(0,g.Oz)(re),sub:[be],triggerDisable:!1})),_(be.attr.key,"triggerDisable",!1)}}},moveNodeToSibiling:(H,re,be)=>{const Le=S(H),Ve=S(re);if(!(!Le||!Ve)&&(0,g.sJ)(Le.sup)&&(0,g.sJ)(Ve.sup)){const Ne=S(Le.sup),We=S(Ve.sup);if(!Ne||!We)return;Ne.sub=Ne.sub.filter(ft=>ft.attr.key!==Le.attr.key);const ze=We.sub.findIndex(ft=>ft.attr.key===Ve.attr.key);be==="prevSibling"?We.sub=(0,l.nK)(We.sub,ze,Le):We.sub=(0,l.nK)(We.sub,ze+1,Le),_(H,"interactionTrigger",We.attr.trigger),_(H,"triggerDisable",We.attr.disabled)}},updateTriggerNode:H=>{let{trigger:re,attr:be,value:Le}=H;const Ve=(0,g.Mc)({interactionTree:h,trigger:re});(0,g._k)(Ve,Ne=>{_(Ne.attr.key,be,Le)})},updateTriggerNodeTrigger:H=>{let{trigger:re,attr:be,value:Le}=H;const Ve=(0,g.Mc)({interactionTree:h,trigger:re});Ve.attr.key=(0,g.Md)(Le),Ve.attr.trigger=Le,(0,g._k)(Ve,Ne=>{_(Ne.attr.key,be,Le)})},replaceIta:H=>{const re=b.get(H.key);re&&(re.data=H)},getInteractionsWithUV:se}}}},50824:(Et,ke,e)=>{"use strict";e.d(ke,{U:()=>N});var o=e(51044),m=e(72605),g=e(86634),l=e.n(g),C=e(28497),T=e(10923),A=e(18578),k=e(31284),p=e(44057),r=e(82152),x=e(97788),f=e(7290),u=e(78570),b=e(14672),h=e(57464);const E=(z,S)=>(0,h.jsxs)(k.kS,{children:[(0,h.jsx)("span",{children:(0,x.vc)(z)}),(0,h.jsx)(f.C,{className:"arrow",size:12,name:"interaction/empty_new_arrow"}),(0,h.jsx)("span",{children:(0,x.Qe)(S)})]}),N=z=>{let{isEditingCombo:S,showImg:_=!0,openEditorFloat:y,uiFrom:a,interactionStore:$}=z;const ce=(0,m.wA)(),de=(0,m.d4)(u.O4),{menuStatus:fe,handleToggle2:se,handleClose:J}=(0,T.z)(),ve=ae=>q=>{ce(A.R7.command.editingInteractionCreateCommand({interactionType:ae,interactionTrigger:"tap",openEditorFloat:y,uiFrom:a,interactionStore:$}))},D=()=>{ce(A.R7.command.pasteIta({targetInteractionKey:void 0,uiFrom:a}))},R=ae=>{ae.button===2&&se(ae)},V=S?[{text:E("tap",C.O2.SetBasketCanvas),interactionType:C.O2.SetBasketCanvas},{text:E("tap",C.O2.SetVisibility),interactionType:C.O2.SetVisibility},{text:E("tap",C.O2.ScrollTo),interactionType:C.O2.ScrollTo}]:[{text:E("tap",C.O2.LinkToCanvas),interactionType:C.O2.LinkToCanvas},{text:E("tap",C.O2.OpenOverlay),interactionType:C.O2.OpenOverlay},{text:E("tap",C.O2.SetBasketCanvas),interactionType:C.O2.SetBasketCanvas}],[O,Ce]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{(0,b.YF)().then(ae=>{Ce(ae)})},[fe.isOpenContextMenu]),(0,h.jsxs)(k.Jr,{onMouseDown:R,className:l()(a),children:[_&&(0,h.jsx)("img",{src:x.AQ["empty_panel_"+de]}),a==="treePanelRight"&&(0,h.jsx)("p",{className:"tip0",children:I18N.SettingPanel.create_links_desc}),(0,h.jsx)("p",{className:"tip1",children:I18N.Interaction.create_tip1}),V.map((ae,q)=>(0,h.jsx)(r.Yr,{onClick:ve(ae.interactionType),type:"secondary",size:"tiny",className:"secBtn quickCreateItaBtn",children:ae.text},q)),fe.isOpenContextMenu&&(0,h.jsx)(k.Sv,{position:fe.position,onClose:J,children:(0,h.jsx)(p.Dr,{text:I18N.Interaction.paste,onClick:D,disabled:!O})})]})}},27288:(Et,ke,e)=>{"use strict";e.d(ke,{I:()=>k,q:()=>A});var o=e(72605),m=e(31284),g=e(78570),l=e(97788),C=e(34708),T=e(57464);const A=p=>{let{disableType:r}=p;const x=(0,o.d4)(g.O4);let f="",u="";return r==="notInCanvas"?(f=I18N.Interaction.disable.notInCanvas,u=l.AQ["canvas_outer_"+x]):r==="isWCode"?(f=I18N.Interaction.disable.isWCode,u=l.AQ["empty_panel_"+x]):r==="isMultiSelectItem"&&(f=I18N.Interaction.disable.multiSelect,u=l.AQ["empty_panel_"+x]),(0,T.jsxs)(m.i7,{className:"no-ita-content",children:[u&&(0,T.jsx)("img",{src:u}),(0,T.jsx)("p",{className:"tips",children:f})]})},k=p=>{let{disableType:r,onClose:x}=p;return(0,T.jsxs)(m.Ps,{children:[(0,T.jsx)(C.C,{uiFrom:"treePanelFloat",onClose:x}),(0,T.jsx)(A,{disableType:r})]})}},96391:(Et,ke,e)=>{"use strict";e.d(ke,{L:()=>se});var o=e(51044),m=e(72605),g=e(44057),l=e(18578),C=e(97788),T=e(86634),A=e.n(T),k=e(31284),p=e(10923),r=e(7290),x=e(77242),f=e(88223),u=e(28497);const b=(D,R)=>{const V=[...R.sub];for(;V.length;){const O=V.pop();if(O.attr.key===D)return O;V.push(...O.sub)}},h=(D,R)=>{var V;const O=[],Ce=R(D);return Ce&&O.push(Ce),D==null||(V=D.sub)==null||V.forEach(ae=>{O.push(...h(ae,R))}),O},E=D=>{let R=1;if(D.sub.length){const V=D.sub.map(O=>E(O));R+=Math.max.apply(null,V)}return R},N=D=>D.isLast,z=(D,R,V)=>{let{interactionTree:O,collapseList:Ce}=V;const ae=document.querySelector("#interaction-tree-container"),q=ae.firstChild,K=Array.from(ae.querySelectorAll(".rn-content-item")),xe=ae.getBoundingClientRect(),te=q.getBoundingClientRect(),H=[],re={};let be=new Set,Le=1;if(D){const Ne=new Set(R),We=new Set;for(const ft of R){const mt=b(ft,O);mt&&Ne.has(mt.sup)&&We.add(mt.attr.key)}for(const ft of We)Ne.delete(ft);be=Ne;const ze=[];h(O,ft=>{var mt;if(ft.type==="root"||(ft==null||(mt=ft.attr)==null?void 0:mt.interactionType)===u.O2.TriggerPlaceHolder)return;const{attr:{key:i},sub:gt}=ft;if(be.has(i)&>.length>0)for(const Je of ft.sub)be.add(Je.attr.key);R.includes(i)&&ze.push(ft)});for(const ft of ze){const mt=E(ft);Le=Math.max(mt,Le)}}const Ve=K.length;return K.forEach((Ne,We)=>{const{key:ze}=Ne.dataset,ft=b(ze,O),mt=ft,i=ft.level,gt=Ne.querySelector(":scope > .rn-list-item"),Je=gt.getBoundingClientRect(),Pt=(0,f.yB)(gt),bt=Ne.getBoundingClientRect(),qt=(0,C.Es)(ze)?"action":(0,C.sJ)(ze)?"trigger":"none",pt={top:Je.top-te.top,left:Je.left-te.left,width:bt.width,height:Je.height};qt==="trigger"&&(pt.left+=8);const $t={top:Pt.top-te.top,left:Pt.left-te.left,width:Pt.width,height:Pt.height},go={top:bt.top-te.top,left:$t.left,width:$t.width,height:bt.height};re[ze]={rect:pt,contentRect:$t,treeRect:go};const{left:Co,top:Tt,width:mo,height:jo}=pt,Kt=Co+mo,Ft=Tt+jo/2,nt=Tt+jo/3,Rt=Tt+jo/3*2,yt=Tt+jo;if(be.has(ze)){H.push({cid:ze,type:"self-next",parentCid:mt.sup,min:{x:Co,y:Tt},max:{x:Kt,y:yt},isValid:!0});return}(0,C.Es)(ze);const Jt=7,vo=i+Le<=Jt,Yo=i-1+Le<=Jt;if(ft.sub.length>0)if(Ce.includes(ft.attr.key)){const{attr:{key:Ho}}=ft.sub.at(-1);H.push({cid:Ho,type:"prevSibling",type2:"lastChild",parentCid:ze,min:{x:Co,y:Tt},max:{x:Kt,y:yt},isValid:vo&&Ho!==R[0]})}else{const Ho=(0,C.aW)(ft.sub),{attr:{key:kt}}=Ho[0];kt===R[0]?H.push({cid:kt,type:"self-prev",parentCid:mt.sup,min:{x:Co,y:Tt},max:{x:Kt,y:yt},isValid:!0}):H.push({cid:kt,type:"prevSibling",parentCid:ze,min:{x:Co,y:Tt},max:{x:Kt,y:yt},isValid:vo})}else{const Ho=b(mt.sup,O);N(ze)&&Ho?H.push({cid:ze,type:"nextSibling",parentCid:mt.sup,min:{x:re[ze].contentRect.left,y:Rt},max:{x:Kt,y:yt},isValid:Yo}):qt==="action"?H.push({cid:ze,type:"prevSibling",parentCid:mt.sup,min:{x:Co,y:Tt},max:{x:Kt,y:yt},isValid:Yo}):(H.push({cid:ze,type:"prevSibling",parentCid:mt.sup,min:{x:Co,y:Tt},max:{x:Kt,y:Ft},isValid:Yo}),H.push({cid:ze,type:"nextSibling",parentCid:mt.sup,min:{x:Co,y:Ft},max:{x:Kt,y:yt},isValid:Yo}))}}),{matchDataList:H,containerRect:xe,rectQueryMap:re}};var S=e(80814),_=e(11777),y=e(89535),a=e(19216),$=e(25399),ce=e(585),de=e(14672),fe=e(57464);const se=(0,o.memo)(D=>{let{interactionTree:R,selectInteractionKey:V,editingPanelRefPage:O,extraClick:Ce,uiFrom:ae,collapseList:q,handleCollapse:K,interactionStore:xe,extraClick2:te,onCloseCallback:H}=D;const{handleClick:re,handleClose:be,menuStatus:Le,clickedItem:Ve}=(0,p.z)(),{menuStatus:Ne,handleToggle2:We,handleClose:ze}=(0,p.z)(),ft=(0,m.d4)(l.R7.query.getNewInteractionTypeEditingKey),{handleHover:mt,hovered:i}=(0,S.Em)(Le),gt=(0,m.wA)(),Je=(0,o.useCallback)(()=>{if(!Ve){be();return}gt(l.R7.command.deleteIta({deleteNode:Ve,uiFrom:ae,interactionStore:xe,deleteUiFrom:ae,onCloseCallback:H})),be(),te==null||te(Ve)},[Ve,gt,be,ae,xe,te,H]),Pt=(0,o.useCallback)(Jt=>{if(!Ve){be();return}if(Ve.type==="trigger"){const vo=R.sub.find(Yo=>Yo.attr.trigger===Ve.attr.trigger).sub.filter(Yo=>!(0,C.Es)(Yo.attr.key)).map(Yo=>Yo.attr);gt(l.R7.command.selectCopyCommand({selectInteraction:vo,copyType:"trigger"}))}else gt(l.R7.command.selectCopyCommand({selectInteraction:[Ve.attr],copyType:"action"}));be()},[Ve,gt,be,R.sub]),bt=(0,o.useCallback)(Jt=>{if(!Ve){be();return}if(Ve.type==="trigger"){var vo;const Yo=xe==null||(vo=xe.query.getTriggerNode(Ve.attr.trigger))==null?void 0:vo.sub.findLast(Ho=>Ho.attr.interactionTrigger);K(Ve.attr.key,"del"),Yo&>(l.R7.command.pasteIta({targetInteractionKey:Yo.attr.key,uiFrom:ae}))}else gt(l.R7.command.pasteIta({targetInteractionKey:Ve.attr.key,uiFrom:ae}));be()},[Ve,gt,be,ae,K,xe]),qt=(0,o.useCallback)(()=>{if(!Ve){be();return}if(Ve.type==="trigger"){const Jt=(0,C.Mc)({interactionTree:R,trigger:Ve.attr.trigger}).sub.map(vo=>vo.attr);gt(l.R7.command.updateItaBatch({attr:"triggerDisable",value:!Jt[0].triggerDisable,interactionStore:xe,trigger:Ve.attr.trigger}))}else gt(l.R7.command.updateItaKV({link:Ve.attr,attr:"actionDisable",value:!Ve.attr.actionDisable,uiFrom:ae,interactionTree:R,interactionStore:xe}));be()},[Ve,gt,be,R,ae,xe]),[pt,$t]=(0,o.useState)(null),go=(0,o.useCallback)((Jt,vo)=>{const Yo=document.querySelector('#interaction-tree-list [data-key="'+vo.attr.key+'"]'),{top:Ho,left:kt}=Yo.getBoundingClientRect(),Ze=Jt.clientX-kt,it=Jt.clientY-Ho,st=[vo.attr.key],dt=z(vo,st,{interactionTree:R,collapseList:q}),Ot={screen:vo,$element:Yo,offsetX:Ze,offsetY:it,...dt};$t(Ot)},[R,q]),Co=(0,o.useCallback)(Jt=>{let{cid:vo,type:Yo,isValid:Ho}=Jt;if(pt&&($t(null),!!Ho&&(Yo==="prevSibling"||Yo==="nextSibling"))){var kt;K(((kt=xe.query.findUpTriggerNode(vo))==null?void 0:kt.attr.key)||"","del"),gt(l.R7.command.interactionInsertCommand({sourceInteractionKey:pt.screen.attr.key,targetInteractionKey:vo,insertType:Yo,interactionTree:R,selectTreeNode:pt.screen,uiFrom:ae,interactionStore:xe})),ae==="treePanelFloat"&>(l.R7.command.interactionSelectCommand({selectInteractionKeyList:[pt.screen.attr.key]}))}},[gt,pt,R,ae,xe,K]),Tt=(0,o.useRef)(),mo=(0,o.useCallback)(()=>Tt.current,[]),jo=()=>{be()},Kt=()=>{gt(l.R7.command.pasteIta({targetInteractionKey:void 0,uiFrom:ae}))};(0,o.useEffect)(()=>{Le.isOpenContextMenu||mt(void 0)},[Le.isOpenContextMenu,mt]);const Ft=Jt=>{Jt.button===2&&We(Jt)},nt=(0,o.useCallback)(()=>{ae==="treePanelRight"&>(l.R7.command.interactionSelectCommand({selectInteractionKeyList:[]}))},[gt,ae]),[Rt,yt]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{(0,de.YF)().then(Jt=>{yt(Jt)})},[Le.isOpenContextMenu,Ne.isOpenContextMenu]),(0,fe.jsxs)(k.UD,{id:"interaction-tree-container",className:A()({treePanelFloat:ae==="treePanelFloat",treePanelRight:ae==="treePanelRight"}),ref:Tt,onMouseDown:Ft,children:[(0,fe.jsx)(S.wM.Provider,{value:{hovered:i,handleHover:mt,handleScreenMetaDropDown:go,editingPanelRefPage:O,selectInteractionKey:V,handleContextMenuClick:re,extraClick:Ce,newInteractionTypeEditingKey:ft},children:(0,fe.jsx)("div",{id:"interaction-tree-list",children:R.sub.map((Jt,vo)=>(0,fe.jsx)(J,{interactionTriggerNode:Jt,collapseList:q,handleCollapse:K},vo))})}),pt&&(0,fe.jsx)(x.A,{draggingElement:pt.$element,getContainerElement:mo,matchDataList:pt.matchDataList,containerRect:pt.containerRect,rectQueryMap:pt.rectQueryMap,offsetX:pt.offsetX,offsetY:pt.offsetY,onDrop:Co,noGroupIndicator:!0,onDragStartCallback:nt}),Le.isOpenContextMenu&&Ve&&(0,fe.jsxs)(k.Sv,{position:Le.position,onClose:jo,children:[(0,fe.jsx)(g.Dr,{text:"\u5220\u9664",onClick:Je}),(0,fe.jsx)(g.Dr,{text:"\u590D\u5236",onClick:Pt}),(0,fe.jsx)(g.Dr,{text:"\u7C98\u8D34",onClick:bt,disabled:!Rt}),(0,fe.jsx)(g.Dr,{text:(0,C.Pk)(Ve)?"\u542F\u7528":"\u7981\u7528",onClick:qt})]}),Ne.isOpenContextMenu&&(0,fe.jsx)(k.Sv,{position:Ne.position,onClose:ze,children:(0,fe.jsx)(g.Dr,{text:I18N.Interaction.paste,onClick:Kt,disabled:!Rt})})]})}),J=(0,o.memo)(D=>{let{interactionTriggerNode:R,collapseList:V,handleCollapse:O}=D;const{handleHover:Ce,hovered:ae,selectInteractionKey:q,handleContextMenuClick:K,extraClick:xe}=(0,o.useContext)(S.wM),te=q===R.attr.key,H=ae===R,re=V.includes(R.attr.key),be=(0,m.wA)(),Le=(0,o.useCallback)(ze=>{ze.button===2&&(ze.stopPropagation(),K(R,{top:ze.clientY,left:ze.clientX}))},[K,R]),Ve=(0,o.useCallback)(ze=>{be(l.R7.command.interactionSelectCommand({selectInteractionKeyList:[(0,C.Md)(R.attr.trigger)]})),xe==null||xe(ze,void 0)},[be,xe,R.attr.trigger]),Ne=(0,o.useCallback)(ze=>{ze.stopPropagation(),K(R,{top:ze.clientY,left:ze.clientX})},[K,R]),We=(0,o.useCallback)(ze=>{ze.stopPropagation(),O(R.attr.key,re?"del":"add")},[O,R.attr.key,re]);return(0,fe.jsxs)(k.H0,{className:A()("interaction-trigger-node","rn-content-item",{active:te,hovered:!te&&H,disabled:R.attr.disabled,collapsed:re}),"data-key":R.attr.key,children:[(0,fe.jsxs)(k.Wu,{className:A()("rn-list-item",{disabled:R.attr.disabled}),onClick:Ve,onMouseDown:Le,onMouseEnter:()=>Ce(R),onMouseOver:()=>Ce(R),onMouseLeave:()=>Ce(void 0),children:[(0,fe.jsx)(r.C,{size:8,onClick:We,className:"trigger-collapse",name:"interaction/down_arrow"}),(0,fe.jsx)(r.C,{size:16,name:"interaction/trigger/"+R.attr.trigger,className:"interaction-icon"}),(0,fe.jsx)("span",{children:(0,C.vc)(R.attr.trigger)}),(H||te)&&(0,fe.jsx)(r.C,{size:24,onClick:Ne,className:"hover-more",name:"interaction/more"})]}),!re&&R.sub.map((ze,ft)=>ze.attr.interactionType===u.O2.TriggerPlaceHolder?null:(0,fe.jsx)(ve,{interactionTreeActionNode:ze,isSupSelect:te},ft))]})}),ve=(0,o.memo)(D=>{let{interactionTreeActionNode:R,isSupSelect:V}=D;const{handleHover:O,handleScreenMetaDropDown:Ce,hovered:ae,editingPanelRefPage:q,selectInteractionKey:K,handleContextMenuClick:xe,extraClick:te,newInteractionTypeEditingKey:H}=(0,o.useContext)(S.wM),re=(0,m.wA)(),be=pt=>{re(l.R7.command.interactionSelectCommand({selectInteractionKeyList:[R.attr.key]})),te==null||te(pt,R)},Le=pt=>{Ve||(pt.button===2?(pt.stopPropagation(),xe(R,{top:pt.clientY,left:pt.clientX})):Ce(pt,R))},Ve=(0,C.Es)(R.attr.key),Ne=K===R.attr.key,We=Ve?"dummy":R.attr.interactionType,{isUiValid:ze,isTargetValid:ft}=R.attr,mt=(0,o.useMemo)(()=>{let pt=" "+(0,C.iA)(R.attr);if(ft)switch(R.attr.interactionType){case u.O2.SetBasketCanvas:{const{data:$t,triggerItemKey:go}=R.attr,Co=$t.targetBasketKey===$.VZ?(0,a.Ik)(sdkStore,go)||q:$t.targetBasketKey,Tt=(0,ce.Xg)({ita:R.attr,editingPanelRefPage:q,targetResCanvasKey:$t.targetResCanvasKey});pt=I18N.Interaction.name.from_to.replace(/{from}/,sdkStore.getHotItem(Co).hotAttr.name).replace(/{to}/,Tt);break}case u.O2.OpenExternalUrl:case u.O2.LinkToCanvas:{pt=I18N.Interaction.name.jump_to+" "+(0,C.j$)(R,{editingPanelRefPage:q});break}case u.O2.OpenOverlay:{pt=I18N.Interaction.name.open+" "+(0,C.j$)(R,{editingPanelRefPage:q});break}case u.O2.SwapOverlay:{pt=I18N.Interaction.name.change_to+" "+(0,C.j$)(R,{editingPanelRefPage:q});break}default:{pt+=" "+(0,C.j$)(R,{editingPanelRefPage:q});break}}return pt},[q,R,ft]),i=(ae==null?void 0:ae.attr.key)===R.attr.key,gt=pt=>{Ve||(pt.stopPropagation(),xe(R,{top:pt.clientY,left:pt.clientX}))},Je=(0,o.useCallback)((pt,$t)=>(0,C.JT)(mt)>142,[mt]),Pt=H===R.attr.key||ft,bt=!Ve&&i,qt=pt=>{const $t=document.getElementsByClassName("long-name-trigger"),go=Co=>{Co.style.display=pt?"unset":"none"};for(let Co=0;Co<$t.length;Co++)go($t.item(Co))};return(0,fe.jsx)(_.A,{content:mt,maxWidth:"224px",style:{padding:"12px 16px",wordWrap:"break-word"},tipClassName:"long-name-trigger",isShowTipsByTarget:Je,distance2:-10,enterHoverTime:200,children:(0,fe.jsx)(k.yF,{"data-key":R.attr.key,className:A()("interaction-action-node","rn-content-item",{active:Ne,hovered:!Ne&&!V&&i,disabled:R.attr.triggerDisable||R.attr.actionDisable}),onMouseDown:Le,onClick:be,onMouseEnter:()=>O(R),onMouseOver:()=>O(R),onMouseLeave:()=>O(void 0),children:(0,fe.jsxs)("div",{className:"rn-list-item",children:[(0,fe.jsx)(r.C,{size:16,className:"interaction-icon",name:"interaction/action/"+We}),(0,fe.jsx)("span",{className:A()("strange-name",{valid:Pt,inValid:!Pt,"is-ui-invalid":!ze,isShowMore:bt}),children:mt}),H===R.attr.key?null:ft?ze?null:(0,fe.jsx)(y.A,{direction:"down",content:I18N.Interaction.invalid_redit,maxWidth:"80px",enterCallback:()=>qt(!1),leaveCallback:()=>qt(!0),children:(0,fe.jsx)(r.C,{size:16,isColorPure:!0,name:"interaction/invalid"})}):(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)("span",{className:"no-target-span",children:["\xA0","\u672A\u8BBE\u7F6E"]}),(0,fe.jsx)(r.C,{size:16,isColorPure:!0,name:"interaction/invalid"})]}),bt&&(0,fe.jsx)(r.C,{size:24,onClick:gt,className:"hover-more",name:"interaction/more"})]})})})})},11199:(Et,ke,e)=>{"use strict";e.d(ke,{m:()=>h});var o=e(51044),m=e(21676);const g=m.Ay.div.withConfig({displayName:"style__StyledItaQuickCreateBtn",componentId:"sc-wcmqfo-0"})(["display:flex;align-items:center;justify-content:space-between;padding:16px;.create-btn{height:28px;width:100%;border-radius:6px;}.icon-container{margin-left:6px;}.btn-group{border:1px solid ",";width:","px;height:28px;border-radius:6px;display:flex;align-items:center;color:",";cursor:pointer;.btn{height:100%;display:flex;align-items:center;justify-content:center;}.btn1{width:150px;width:","px;border-right:1px solid ",";}.dropdown-container{height:100%;width:32px;display:flex;justify-content:center;align-items:center;border-top-right-radius:6px;border-bottom-right-radius:6px;&.is-open{background:",";}}.btn1,.btn2{&:hover{background:",";}&:active{background:",";}}}&.disabled{pointer-events:none;.btn-group{color:",";}}"],E=>E.theme.color_bg_border_02,E=>E.uiFrom==="treePanelFloat"?204:182,E=>E.theme.color_text_L1,E=>E.uiFrom==="treePanelFloat"?174:150,E=>E.theme.color_bg_border_02,E=>E.theme.color_btn_secondary_active,E=>E.theme.color_btn_secondary_hover,E=>E.theme.color_btn_secondary_active,E=>E.theme.color_text_disabled01),l=m.Ay.div.withConfig({displayName:"style__StyledTriggerList",componentId:"sc-wcmqfo-1"})(["padding:16px 8px 8px 8px;width:208px;border-radius:8px;border:1px solid ",";color:",";background:",";box-shadow:",";"],E=>E.theme.color_bg_border_01,E=>E.theme.color_text_L0,E=>E.theme.color_bg_white,E=>E.theme.shadow_m);var C=e(72605),T=e(86634),A=e.n(T),k=e(18578),p=e(19722),r=e(97788),x=e(75212),f=e(8066),u=e(58724),b=e(57464);const h=(0,o.memo)(E=>{let{disabled:N,showPreference:z,buttonType:S,uiFrom:_,handleCollapse:y,interactionTree:a,interactionStore:$}=E;const ce=(0,C.wA)(),de=(0,o.useCallback)(D=>{ce(k.R7.command.addIta({triggerType:D,uiFrom:_,interactionTree:a,interactionStore:$})),y((0,r.Md)(D),"del"),setTimeout(_==="treePanelRight"?()=>{ce(k.R7.command.interactionEditorFloatOpenCommand({alignTop:!0}))}:()=>{(0,r._6)({itaKey:(0,r.Yw)(D)})},4),(0,u.X)()},[ce,y,_,a,$]),fe=(0,o.useCallback)(D=>{D.stopPropagation(),de("tap")},[de]),se=(0,o.useCallback)(D=>{D.stopPropagation(),de("timer")},[de]),J=D=>{D.stopPropagation(),ce({type:"preference:update:state",payload:{preferenceNav:"actions"}}),ce({type:"preference:open:appearance"})},ve=D=>{de(D)};return(0,b.jsxs)(g,{uiFrom:_,className:A()({disabled:N}),children:[(0,b.jsxs)("div",{className:"btn-group",children:[(0,b.jsx)("div",{className:"btn btn1",onClick:fe,children:(0,b.jsx)("span",{children:I18N.Interaction.header_title1})}),(0,b.jsx)(f.A,{isOpenerAttrDisabled:!1,ref:null,distance:4,offsetX:_==="treePanelFloat"?-86:-16,className:"dropdown-container btn2",menuClassName:"dropdown-trigger-list",renderOpener:(0,b.jsx)("svg",{width:"12",height:"6",fill:"none",viewBox:"0 0 12 6",children:(0,b.jsx)("path",{fill:"currentColor",fillOpacity:".85",fillRule:"evenodd",d:"M.65.15c.2-.2.5-.2.7 0L6 4.79 10.65.15a.5.5 0 0 1 .7.7l-5 5a.5.5 0 0 1-.7 0l-5-5a.5.5 0 0 1 0-.7",clipRule:"evenodd"})}),renderMenu:(0,b.jsx)(l,{children:(0,b.jsx)(x.A,{isGlobalLink:S==="global",currentGesture:"dap",onSelect:ve,isLimitTrigger:!1})})})]}),(0,b.jsxs)("div",{className:"icon-container",children:[z&&(0,b.jsx)(p.A,{name:"right_panel/link/setting",isDisabled:N,onClick:J}),S==="global"&&(0,b.jsx)(p.A,{size:16,name:"interaction/trigger/timer",onClick:se})]})]})})},34708:(Et,ke,e)=>{"use strict";e.d(ke,{C:()=>x});var o=e(51044),m=e(31284),g=e(72605),l=e(18578),C=e(19722),T=e(29073),A=e(75212),k=e(58724),p=e(11777),r=e(57464);const x=(0,o.memo)(f=>{let{hasTrash:u=!1,onClose:b,uiFrom:h,selectTreeNode:E,interactionStore:N,hasAddTrigger:z,treePanelFloatContentType:S,isClearAll:_}=f;const y=(0,g.wA)(),a=()=>{!u||!N||!E||(y(l.R7.command.deleteIta({interactionStore:N,deleteNode:E,uiFrom:h,treePanelFloatContentType:S})),_&&b())},$=(0,o.useCallback)(de=>{if(!z||!N||!E)return;const fe=de===E.attr.interactionTrigger?[de]:[de,E.attr.interactionTrigger];y(l.R7.command.treePanelSingleCreateCommand({triggerList:fe,interactionStore:N})),u&&(0,k.X)()},[y,N,E,z]),ce=()=>{b==null||b(),y(l.R7.command.clearAllCommand({})),y({type:"links:singleSelectLink:update",payload:{singleSelectLink:void 0}})};return(0,r.jsxs)(m.it,{type:"draggable",children:[(0,r.jsxs)("div",{className:"container",type:"draggable",children:[I18N.Interaction.editor_header,(0,r.jsxs)("div",{className:"icon-container",children:[z&&(0,r.jsx)(T.A,{menux:"center",className:"link--drop-gesture-list",menuClassName:"dropdown-trigger-list",customOpener:(0,r.jsx)(p.A,{content:I18N.Interaction.header_title1,children:(0,r.jsx)(C.A,{name:"interaction/tree_panel_float_new",size:24})}),renderMenu:(0,r.jsx)(A.A,{isGlobalLink:!1,currentGesture:"dap",onSelect:$,interactionTree:void 0,isLimitTrigger:!1})}),u&&(0,r.jsx)(C.A,{name:"interaction/trash",onClick:a}),(0,r.jsx)(C.A,{className:"close",name:"interaction/close",onClick:ce})]})]}),(0,r.jsx)("div",{className:"divider"})]})})},80814:(Et,ke,e)=>{"use strict";e.d(ke,{Cl:()=>N,Em:()=>_,_C:()=>z,wM:()=>y,zi:()=>$});var o=e(51044),m=e(63686),g=e(18578),l=e(97788),C=e(54606),T=e(20029),A=e(30797),k=e(72605),p=e(8508),r=e(5115),x=e(61724),f=e(63555),u=e(15400),b=e(50167),h=e(77777);const E=(0,m.Mz)([A.x$,C.r,p.vy,r.w_,r.Yg,A.Z9,x.zX,r._S],(ce,de,fe,se,J,ve,D,R)=>{let{isEditingCombo:V}=de;return{selectedTrees:ce,isEditingCombo:V,activeLinkCid:fe,selectOptionNode:se,selectCarouselImage:J,items:ve,selectTableCellInfo:D,currentPath:R}}),N=ce=>{var de;let{from:fe}=ce;const{activeLinkCid:se,isEditingCombo:J,items:ve,selectCarouselImage:D,selectedTrees:R,selectOptionNode:V,selectTableCellInfo:O,currentPath:Ce}=(0,k.d4)(E),{hasSubKey:ae,selectSubItaType:q}=(0,o.useMemo)(()=>(0,l.LE)({activeLinkCid:se,selectOptionNode:V,selectCarouselImage:D,items:ve,selectTableCellInfo:O,uiFrom:fe}),[se,fe,ve,D,V,O]),K=J?"combo":"non-combo",xe=(0,k.d4)(g.R7.query.getSelectInteractionKeyList),te=(0,k.d4)(g.R7.query.getSelectItaInfo),H=xe[0],{editingInteraction2:re,interactionTree:be,isTriggerItemInCanvs:Le,itemKey:Ve,selectTreeNode:Ne,interactionStore:We}=(0,o.useMemo)(()=>{let ft,mt,i="",gt,Je,Pt;if(R.length===1){const bt=R[0].keyToAccessIntAct;i=R[0].keyToAccessIntAct,gt=sdkStore.locUpHotCanvasKey(R[0].key);const qt=(0,l.gB)(R[0],{activeLinkCid:se,selectOptionNode:V,selectCarouselImage:D,selectSubItaType:q,currentPath:Ce});qt.length===0?te.type==="action"||te.type==="trigger"?(Pt=(0,h.E)({widget:R[0].widget,selectSubItaType:q,buildTreeRes:(0,l.D8)({actionDummyKey:H}),type:"noData"}),ft=Pt._interactionTree):(fe==="treePanelFloat"?Pt=(0,h.E)({widget:R[0].widget,selectSubItaType:q,buildTreeRes:(0,l.D8)({actionDummyKey:(0,l.Yw)("tap")}),type:"defaultData"}):Pt=(0,h.E)({widget:R[0].widget,selectSubItaType:q,buildTreeRes:(0,l.ky)(),type:"defaultData"}),ft=Pt._interactionTree):(Pt=(0,h.E)({widget:R[0].widget,selectSubItaType:q,buildTreeRes:(0,l.tu)({sdk:sdkStore,interactions:qt,itemKey:bt,vMode:K,selectInteractionKey:H}),type:"hasData"}),ft=Pt._interactionTree,te.type==="normal"&&(mt=Pt.query.getInteractionByKey(H)),Je=(0,l.zS)(H,ft))}return{interactionTree:ft,editingInteraction2:mt,itemKey:i,isTriggerItemInCanvs:gt,selectTreeNode:Je,interactionStore:Pt}},[se,D,H,V,q,R,K,Ce,te,fe]),ze=S((de=R[0])==null?void 0:de.cid);return{editingInteraction2:re,itemKey:Ve,currentCanvas:ze,selectInteractionKey:H,interactionTree:be,selectTreeNode:Ne,isTriggerItemInCanvs:Le,hasSubKey:ae,selectSubItaType:q,currentPath:Ce,selectCarouselImage:D,selectItaInfo:te,interactionStore:We}},z=ce=>{let{from:de}=ce;const fe=(0,k.d4)(A.x$),se=(0,k.d4)(b.wN),{isEditingCombo:J}=(0,k.d4)(C.r),ve=(0,k.d4)(T.bt),{editingInteraction2:D,itemKey:R,currentCanvas:V,selectInteractionKey:O,interactionTree:Ce,isTriggerItemInCanvs:ae,hasSubKey:q,selectItaInfo:K,selectSubItaType:xe,selectTreeNode:te,currentPath:H,selectCarouselImage:re,interactionStore:be}=N({from:de}),Le=(0,k.d4)(u.X.query.getIsShallowEditing);let Ve="none";return J||(fe.length>1?Ve="isMultiSelectItem":fe.length===1&&fe[0].type===f.x.WCode?Ve="isWCode":ae||(Ve="notInCanvas"),Le&&(Ve="isEditingSwimlane")),{interactionTree:Ce,editingInteraction2:D,itemKey:R,currentCanvas:V,selectedTrees:fe,isGlobalLink:se,isEditingCombo:J,editingPanelRefPage:ve,selectInteractionKey:O,isTriggerItemInCanvs:ae,hasSubKey:q,selectItaInfo:K,selectTreeNode:te,currentPath:H,selectCarouselImage:re,disableType:Ve,selectSubItaType:xe,interactionStore:be}},S=ce=>{const de=(0,k.d4)(T.jI);return(0,o.useMemo)(()=>{const se=sdkStore.locUpColdCanvasKey(de||ce||"");return se?sdkStore.getHotItem(se):void 0},[de,ce])},_=ce=>{const[de,fe]=(0,o.useState)(void 0),se=(0,o.useCallback)(J=>{ce.isOpenContextMenu||fe(J)},[ce.isOpenContextMenu]);return{hovered:de,handleHover:se}},y=(0,o.createContext)(null),a=new Map,$=ce=>{let{cacheKey:de,interactionTree:fe}=ce;const se=(0,o.useRef)(fe?{...fe}:void 0),[J,ve]=(0,o.useState)([]),D=(0,o.useCallback)((R,V)=>{let O=[...J];V==="del"?O=O.filter(Ce=>Ce!==R):O.push(R),ve(O),a.set(de,O)},[ve,J,de]);return(0,o.useLayoutEffect)(()=>{const R=a.get(de);ve(R||[])},[]),(0,o.useLayoutEffect)(()=>{var R;let V=[...a.get(de)||[]];const O=[...((R=se.current)==null?void 0:R.sub)||[]],Ce=[...(fe==null?void 0:fe.sub)||[]];if(!Ce.length||!V.length||!O.length){se.current=fe;return}let ae=!1;for(const q of Ce){const K=O.find(xe=>xe.attr.trigger===q.attr.trigger);K&&J.includes(K.attr.key)&&q.sub.length!==K.sub.length&&(V=V.filter(xe=>xe!==q.attr.key),ae=!0)}ae&&(ve(V),a.set(de,V)),se.current=fe},[fe,J,de]),{collapseList:J,handleCollapse:D}}},31284:(Et,ke,e)=>{"use strict";e.d(ke,{$s:()=>C,H0:()=>p,Jr:()=>h,LY:()=>x,Ps:()=>N,Sv:()=>u,UD:()=>f,Wu:()=>k,i7:()=>r,it:()=>b,iv:()=>l,kS:()=>E,yF:()=>A});var o=e(21676),m=e(44057),g=e(48590);const l=o.Ay.div.withConfig({displayName:"style__StyledInteractionFloatPanel",componentId:"sc-108t05d-0"})(["position:absolute;width:","px;height:",";z-index:108;background-color:",";box-shadow:rgba(0,0,0,0.1) 0px 2px 8px 0px;color:",";border:1px solid ",";display:flex;flex-direction:column;border-radius:8px;.big-container{display:flex;flex:1;height:calc(100% - 41px);.tree-container{width:240px;display:flex;flex-direction:column;height:100%;}.editor-container{width:240px;border-left:1px solid ",";height:100%;overflow-y:scroll;}}.tree-float-resizer{position:absolute;width:100%;height:2px;&.top{top:0px;cursor:ns-resize;}&.bottom{bottom:-1px;cursor:ns-resize;}}"],z=>z.panelWidth,z=>z.panelHeight?z.panelHeight+"px":"unset",z=>z.theme.color_bg_white,z=>z.theme.color_text_L1,z=>z.theme.color_bg_border_01,z=>z.theme.color_bg_border_01),C=o.Ay.div.withConfig({displayName:"style__StyledInteractionEditorFloat",componentId:"sc-108t05d-1"})(["position:absolute;z-index:5;width:240px;background-color:",";box-shadow:rgba(0,0,0,0.1) 0px 2px 8px 0px;color:",";border:1px solid ",";border-radius:8px;"],z=>z.theme.color_bg_white,z=>z.theme.color_text_L1,z=>z.theme.color_bg_border_01),T=(0,o.AH)(["cursor:pointer;width:100%;height:32px;position:relative;display:flex;align-items:center;color:",";&.hovered{background:",";border-radius:6px;}&.active{background:",";border-radius:6px;font-weight:500;}.rn-list-item{height:100%;}.hover-more{position:absolute;right:4px;top:4px;}&.disabled{color:",";.hover-more{color:",";}}.interaction-icon{margin-right:4px;}"],z=>z.theme.color_text_L1,z=>z.theme.color_btn_secondary_hover,z=>z.theme.color_bg_select02,z=>z.theme.color_text_disabled01,z=>z.theme.color_text_L1),A=o.Ay.div.withConfig({displayName:"style__StyledInteractionTreeActionNodeUI",componentId:"sc-108t05d-2"})(["padding-left:28px;",";.rn-list-item{display:flex;align-items:center;}.strange-name{",";&.valid{max-width:166px;&.isShowMore{max-width:156px;}}&.is-ui-invalid{max-width:156px;&.isShowMore{max-width:132px;}}&.inValid{max-width:82px;}margin-right:2px;}.no-target-span{color:",";margin-right:2px;}&.disabled{.no-target-span{color:",";}}"],T,g.L9,z=>z.theme.color_text_L2,z=>z.theme.color_text_disabled01),k=o.Ay.div.withConfig({displayName:"style__StyledInteractionTreeTriggerNodeUI",componentId:"sc-108t05d-3"})(["",";.trigger-collapse{margin-left:8px;margin-right:4px;}"],T),p=o.Ay.div.withConfig({displayName:"style__StyledInteractionTreeTriggerNodeContainerUI",componentId:"sc-108t05d-4"})(["margin-bottom:8px;border-radius:6px;&.hovered{background:",";> .rn-list-item{background:",";border-top-left-radius:6px;border-top-right-radius:6px;}}&.active{background:",";> .rn-list-item{font-weight:500;background:",";border-top-left-radius:6px;border-top-right-radius:6px;}}&.collapsed{.trigger-collapse{transform:rotate(270deg);}> .rn-list-item{border-bottom-left-radius:6px;border-bottom-right-radius:6px;}}"],z=>z.theme.color_bg_card,z=>z.theme.color_btn_secondary_hover,z=>z.theme.color_bg_select03,z=>z.theme.color_bg_select02),r=o.Ay.div.withConfig({displayName:"style__StyledNoLinks",componentId:"sc-108t05d-5"})(["display:flex;flex-direction:column;align-items:center;img{margin-top:160px;width:129px;margin-bottom:20px;}.tips{margin:0px 24px;color:",";text-align:center;}"],z=>z.theme.color_text_L2),x=o.Ay.div.withConfig({displayName:"style__StyledLinkSettings",componentId:"sc-108t05d-6"})(["height:calc(100% - 40px);.link-list{height:calc(100% - 44px);padding:0 16px;overflow-x:hidden;overflow-y:auto;scroll-behavior:smooth;}"]),f=o.Ay.div.withConfig({displayName:"style__StyledInteractionTreeUI",componentId:"sc-108t05d-7"})(["position:relative;height:calc(100% - 44px);overflow-y:scroll;padding:0 2px 0 8px;&.treePanelFloat{height:calc(100% - 44px);}&.treePanelRight{height:calc(100% - 60px);}"]),u=(0,o.Ay)(m.Ay).withConfig({displayName:"style__StyledMenuContent",componentId:"sc-108t05d-8"})(["ul{min-width:64px;}ul{padding:8px;border-radius:8px;border:1px solid ",";color:",";background:",";box-shadow:",";li.MenuItem{a{border-radius:4px;background:",";color:",";svg path{fill:",";}.right-arrow svg > path{fill:",";}.shortfont kbd{color:",";}}&:not(.disabled).active{a{background:",";}}&.disabled{a{color:",";svg path{fill:",";}.shortfont kbd{color:",";}}}}}"],z=>z.theme.color_bg_border_01,z=>z.theme.color_text_L0,z=>z.theme.color_bg_white,z=>z.theme.shadow_m,z=>z.theme.color_bg_white,z=>z.theme.color_text_L0,z=>z.theme.color_text_L0,z=>z.theme.color_text_L2,z=>z.theme.color_text_L2,z=>z.theme.color_btn_secondary_hover,z=>z.theme.color_text_disabled01,z=>z.theme.color_text_disabled01,z=>z.theme.color_text_disabled01),b=o.Ay.header.withConfig({displayName:"style__StyledEditorHeader",componentId:"sc-108t05d-9"})(["color:",";font-weight:500;.container{display:flex;height:40px;align-items:center;width:100%;padding:0 16px;font-weight:500;.close{margin-left:4px;}.icon-container{display:flex;position:absolute;right:16px;}}.divider{border-top:1px solid ",";}"],z=>z.theme.color_text_L1,z=>z.theme.color_bg_border_02),h=o.Ay.div.withConfig({displayName:"style__StyledEmptyPanel",componentId:"sc-108t05d-10"})(["display:flex;flex-direction:column;align-items:center;height:100%;.secBtn{width:204px;color:",";&:hover,&:active{color:",";}margin-bottom:8px;}img{margin-top:160px;margin-bottom:20px;width:129px;}.tip0{margin-bottom:6px;}.tip1{margin-bottom:20px;}&.treePanelFloat{.tip1{margin-top:50px;}}"],z=>z.theme.color_text_L2,z=>z.theme.color_text_L1),E=o.Ay.div.withConfig({displayName:"style__StyledQuickDisplayContent",componentId:"sc-108t05d-11"})(["display:flex;align-items:center;font-weight:400;.arrow{margin:0 8px;}.s-icon{margin-right:4px;}"]),N=o.Ay.div.withConfig({displayName:"style__StyledDisableTreePanelContainer",componentId:"sc-108t05d-12"})(["height:400px;.no-ita-content{height:inherit;justify-content:center;height:calc(100% - 41px);img{margin-top:0px;}}"])},60875:(Et,ke,e)=>{"use strict";e.d(ke,{v:()=>l});const o=new Set(["entry:draft:screen:mousemove","draft:update:state","entry:screenContainer:mousemove","entry:draft:activeEntityKey:update","mode:update:hover:item","update:screenContainer:state","mode:update:state","reducer:flag:set-isShowRadiusResizer","set:key:keyFlags","reset:key:flags","mode:update:toggle:isShowFloatingToolbar"]),m=C=>o.has(C);window.reduxLogList=[];const g=(C,T)=>{C.unshift(...T),C.length=100},l=C=>{let{getState:T}=C;return A=>k=>(m(k.type)||g(window.reduxLogList,[k]),A(k))}},25058:(Et,ke,e)=>{"use strict";e.d(ke,{L:()=>Kt});var o=e(51044),m=e(26114),g=e(28055),l=e(72605);const C={popupAlertModal:{isOpen:!1},loginModal:{isOpen:!1},teamSelectModal:{isOpen:!1},sharingModal:{isOpen:!1},chargeOverlay:{isOpen:!1},previewAuthModal:{isOpen:!1,isWrongPwd:!1},upgradeChatGPTModal:{isOpen:!1}};function T(Rt,yt){Rt===void 0&&(Rt=C);const{type:Jt,payload:vo}=yt;switch(Jt){case"modal:update:state":return{...Rt,...vo};case"modal:reset:state":return C;default:return Rt}}var A=e(74059),k=e(19418),p=e(73773),r=e(21676),x=e(3930),f=e(37337);const u=(0,r.Ay)(x.H).withConfig({displayName:"styles__StyledPreviewAuthModal",componentId:"sc-urw68g-0"})(["min-height:unset;&.preview-auth-modal{.header{color:",";border-bottom:1px solid ",";}}@media (max-width:40rem){width:306px;margin:20vh auto;}.wrapper{display:flex;margin:14px 0;.input-wrapper{display:flex;flex-direction:column;width:100%;input{font-size:14px;line-height:16px;height:32px;border:1px solid #1684fc;border-top-left-radius:6px;border-bottom-left-radius:6px;padding:0 12px;}span{margin-top:4px;color:#ff2e4a;font-size:12px;line-height:17px;}}.confirm-btn{display:flex;justify-content:center;align-items:center;position:relative;width:130px;height:32px;font-size:14px;font-weight:500;border-top-right-radius:6px;border-bottom-right-radius:6px;background-color:#1684FC;color:#fff;&:hover{background-color:#419BFF;}&:active{background-color:#206CCF;}}}"],f.f.color_text_L1.value_light,f.f.color_bg_border_02.value_light);var b=e(57464);const h=Rt=>{let{onConfirm:yt,isWrongPwd:Jt}=Rt;const[vo,Yo]=(0,o.useState)(""),Ho=kt=>{kt.key===p._.Enter&&yt(vo)};return(0,b.jsxs)(u,{className:"preview-auth-modal",isOpen:!0,canCloseOnEsc:!1,canCloseOnClickMask:!1,canConfirmOnEnter:!1,isUsePortal:!1,title:"\u8BF7\u8F93\u5165\u5BC6\u7801\u8BBF\u95EE\u9879\u76EE",canClose:!1,width:400,footer:null,children:[(0,b.jsxs)("div",{className:"wrapper",children:[(0,b.jsxs)("div",{className:"input-wrapper",children:[(0,b.jsx)("input",{type:"password",onChange:kt=>Yo(kt.currentTarget.value)}),Jt&&(0,b.jsx)("span",{className:"warning",children:"\u5BC6\u7801\u9519\u8BEF"})]}),(0,b.jsx)("button",{className:"confirm-btn",onClick:()=>yt(vo),children:"\u786E\u5B9A"})]}),(0,b.jsx)(k.A,{target:document,onKeyDown:Ho})]})};var E=e(60240),N=e(59896);const S=()=>ENV.IS_WONDER_SHARE?N.A:E.A;var _=e(28149);const y=(0,r.Ay)(x.H).withConfig({displayName:"styles__StyledTeamSelectModal",componentId:"sc-ba0ta4-0"})(["height:448px;.content{width:100%;height:100%;padding:0;}iframe{width:100%;height:100%;border:0;}"]);class a extends o.PureComponent{constructor(){super(...arguments),(0,A.A)(this,"setIframeRef",yt=>this.$iframe=yt),(0,A.A)(this,"onhandleFunc",yt=>{yt.data==="close"?this.onCancel():yt.data.msg==="submit"&&this.onSubmit(yt.data.param)}),(0,A.A)(this,"onSubmit",async yt=>{const{target:Jt}=yt,{onConfirm:vo}=this.props;this.close(),vo(Jt)}),(0,A.A)(this,"onCancel",()=>{const{onCancel:yt}=this.props;this.close(),yt&&yt()}),(0,A.A)(this,"close",()=>{const{onClose:yt}=this.props;yt()})}async componentDidMount(){window.addEventListener("message",this.onhandleFunc,!1)}componentWillUnmount(){window.removeEventListener("message",this.onhandleFunc,!1)}render(){const{isOpen:yt,projectCid:Jt}=this.props,vo={title:I18N.Popups.save_to,from:"workspace",appCidList:Jt?[Jt]:[]};return(0,b.jsx)(y,{isOpen:yt,className:(0,_.Hn)(["TargetSelectingModal","select-common"]),onClose:this.onCancel,title:null,width:800,footer:null,isUsePortal:!1,canClose:!1,modalRender:()=>(0,b.jsx)("iframe",{ref:this.setIframeRef,src:"/embed/folder_select?param="+JSON.stringify(vo)})})}}var $=e(86634),ce=e.n($),de=e(93924),fe=e(72374),se=e(9376),J=e(54909);const ve=(0,r.Ay)(x.H).withConfig({displayName:"styles__StyledPopupHelp",componentId:"sc-1wnmmop-0"})(["&{min-width:unset;}&.dark{background:",";border:1px solid ",";box-shadow:2px 8px 20px 0px #0000001A;.header{border-bottom:1px solid ",";color:",";}.close-btn{color:",";&:hover{color:",";}&:active{color:",";}}.content{color:",";}footer{.button-root[class*='type-secondary']{border:1px solid ",";background:",";color:",";&:hover:not([class*='is-disabled']){border:1px solid ",";background:",";}&:active:not([class*='is-disabled']){border:1px solid ",";background:",";}}}}&.light{background:",";border:1px solid ",";.header{border-bottom:1px solid ",";color:",";}.close-btn{color:",";&:hover{color:",";}&:active{color:",";}}.content{color:",";}footer{.button-root[class*='type-secondary']{border:1px solid ",";color:",";background:",";&:hover:not([class*='is-disabled']){border:1px solid ",";background:",";}&:active:not([class*='is-disabled']){border:1px solid ",";background:",";}}}}&.Modal{border-radius:8px;color:#1f292e;&.AlertModal{width:400px;}@media (max-width:40rem){width:100%;}}a{&:link,&:visited{color:#eb5648;}&:hover,&:active{text-decoration:none;}}.desc{font-size:14px;line-height:20px;&{}& + .FormEntry{margin-top:1em;}.ellipsis-content{display:flex;span{max-width:209px;display:block;text-overflow:ellipsis;overflow:hidden;}}}.Punctuation .Ellipsis{max-width:5em;}.desc.tertiary{margin:1em 0 0;font-size:12px;color:#8d9ea6;}.recycle{margin:0 0.25em;padding:0.4em 0.5em;border:1px solid #e5e5e5;border-radius:1px;color:#5b6b73;}.icon-recycle{font-size:1.1em;vertical-align:-0.15em;color:#eb5648;}"],J.f.color_bg_white.value_dark,J.f.color_bg_border_01.value_dark,J.f.color_bg_border_02.value_dark,J.f.color_text_L1.value_dark,J.f.color_text_L2.value_dark,J.f.color_text_L1.value_dark,J.f.color_text_L1.value_dark,J.f.color_text_L1.value_dark,J.f.color_bg_border_02.value_dark,J.f.color_bg_white.value_dark,J.f.color_text_L1.value_dark,J.f.color_bg_border_02.value_dark,J.f.color_btn_secondary_hover.value_dark,J.f.color_bg_border_02.value_dark,J.f.color_btn_secondary_active.value_dark,J.f.color_bg_white.value_light,J.f.color_bg_border_01.value_light,J.f.color_bg_border_02.value_light,J.f.color_text_L1.value_light,J.f.color_text_L2.value_light,J.f.color_text_L1.value_light,J.f.color_text_L1.value_light,J.f.color_text_L1.value_light,J.f.color_bg_border_02.value_light,J.f.color_text_L1.value_light,J.f.color_bg_white.value_light,J.f.color_bg_border_02.value_light,J.f.color_btn_secondary_hover.value_light,J.f.color_bg_border_02.value_light,J.f.color_btn_secondary_active.value_light);class D extends o.PureComponent{render(){const{isOpen:yt,className:Jt,type:vo,alertType:Yo,title:Ho,desc:kt=Ho,isHTML:Ze,onClose:it,onCancel:st=()=>null,onConfirm:dt,canClose:Ot,canCancel:Ct,canConfirm:wo,cancelText:ln=I18N.dModule.cancel,confirmText:Io=I18N.dModule.confirm,theme:Lo}=this.props,Ao=()=>{typeof st=="function"&&st(),it()},xt=Ct?()=>{st&&st(),it&&it()}:void 0,Ut=wo?()=>{dt&&dt(),it&&it()}:void 0;return(0,b.jsxs)(ve,{isOpen:yt,type:vo,className:ce()(Jt,Lo,{"wonder-share":!!ENV.IS_WONDER_SHARE}),portalClassName:(0,se.Fr)()?"popup-helper-portal is-mobile":"popup-helper-portal",title:Ho===kt||!Ho?I18N.dModule.reminder:Ho,onClose:Ao,canClose:Ot,onCancel:xt,onConfirm:Ut,confirmBtnProps:{type:"danger"},cancelBtnProps:{type:"secondary"},cancelText:ln,confirmText:Io,isUsePortal:!1,children:[Ze?(0,b.jsx)("p",{className:"desc",dangerouslySetInnerHTML:{__html:kt}}):(0,b.jsx)("div",{className:"desc",children:kt}),Yo==="prompt"&&(0,b.jsx)(fe.l,{name:I18N.dModule.password,children:(0,b.jsx)(de.A,{type:"password",className:"prompt-pwd"})})]})}}(0,A.A)(D,"defaultProps",{type:"alert",theme:"light"});var R=e(47755),V=e(7290),O=e(46795),Ce=e(53955),ae=e(47143),q=e(79619);const K=Rt=>{let{user:yt,org:Jt}=Rt,vo;return(0,q.Z)(yt),vo=Jt?Jt.cid:"me",vo},xe=async()=>{if(!ENV.IS_WONDER_SHARE)try{const Rt=(0,Ce.dP)(),yt=(0,ae.HW)(Rt),Jt=(0,ae.wA)(Rt),vo=(0,ae.PL)(Rt),Yo=K({user:yt,org:Jt}),{points:Ho}=await(0,O.DE)("/go/v1/chatbot/chat/points?workspace="+Yo);vo.is_org_project&&Jt?MB.action("set:current:org",{org:Object.assign(Jt,{ai_points:Ho})}):MB.action("set:current:user",{user:Object.assign(yt,{ai_points:Ho})}),MB.action("ai:update:aiPoints",Ho)}catch(Rt){}};var te=e(51691),H=e(88753);const re=(0,r.DU)(["#IBOT_OVERLAY_ROOT{.OrderChargeOverlay{z-index:1051;height:auto;padding:0;.OverlayCloseButton{z-index:2;&:hover{color:#eb5648;}}}}"]),be=(0,r.Ay)(x.H).withConfig({displayName:"styles__StyledAIPointsPaymentModal",componentId:"sc-1dllwwl-0"})(["height:600px;&.workspace-modal{border-radius:18px;}iframe{width:100%;height:100%;border:none;border-radius:18px;}svg{position:absolute;width:24px;height:24px;right:14px;top:15px;cursor:pointer}"]),Le=(0,r.Ay)(x.H).withConfig({displayName:"styles__StyledMatPaymentModal",componentId:"sc-1dllwwl-1"})(["width:844px;height:560px;&.workspace-modal{border-radius:12px;}iframe{width:100%;height:100%;border:none;}"]);var Ve=e(48141);class Ne extends o.PureComponent{constructor(yt){super(yt),(0,A.A)(this,"handleMessage",async Jt=>{try{if(Jt.data!=="isHasOrgUnpaid"){const{msg:vo}=JSON.parse(Jt.data);if(vo==="closeChargeModal")this.onCloseEffect();else if(vo==="chargePaymentSuccess")if(this.props.isChatGPT)await xe();else{const Yo=(0,Ce.dP)().current.currentProject.cid,Ho=await(0,H.wV)(Yo),{user:kt,org:Ze,team:it,user_fcg:st,org_fcg:dt,space:Ot}=Ho,{currentUser:Ct,currentOrg:wo}=(0,q.n)({user:kt,org:Ze});Object.assign(MB,{user:Ct||{},currentOrg:wo}),MB.action("current:update:state",{currentOrg:wo,currentTeam:it,currentUser:Ct,user_fcg:st,org_fcg:dt,currentSpace:Ot}),this.setState({paid:!0})}else if(vo==="openSoloChargeModal"){this.onCloseEffect();const{payEntrance:Yo,checkoutArea:Ho,checkoutPlace:kt,templateCid:Ze,templateName:it,templateCategory:st}=this.props,dt={mode:"solo",payEntrance:Yo,checkoutPlace:kt,checkoutArea:Ho,templateCid:Ze,templateName:it,templateCategory:st,...Jt.data.payload||{}};setTimeout(()=>MB.global.popupHelper.chargeAsync({...dt}),100)}else if(vo==="openOrgChargeModal"){const{payEntrance:Yo,checkoutArea:Ho,checkoutPlace:kt,templateCid:Ze,templateName:it,templateCategory:st}=this.props,dt={mode:"org",payEntrance:Yo,checkoutPlace:kt,checkoutArea:Ho,templateCid:Ze,templateName:it,templateCategory:st,...Jt.data.payload||{}};setTimeout(()=>MB.global.popupHelper.chargeAsync({...dt}),100)}}}catch(vo){}}),(0,A.A)(this,"onCloseEffect",()=>{const{onClose:Jt}=this.props;setTimeout(()=>{Jt(),(0,Ve.iX)()},30)}),this.state={paid:!1}}componentDidMount(){const{isChatGPT:yt}=this.props;window.addEventListener("message",this.handleMessage),yt&&(0,te.ck)("\u5269\u4F59\u70B9\u6570")}componentWillUnmount(){window.removeEventListener("message",this.handleMessage)}render(){const{mode:yt,matName:Jt="",soloSubMode:vo="proto",payEntrance:Yo,orgCid:Ho,onClose:kt,isOpen:Ze,productId:it,hours:st,immediateUse:dt,checkoutArea:Ot,checkoutPlace:Ct,isSelectOrg:wo,isChatGPT:ln,templateCid:Io,templateName:Lo,templateCategory:Ao,isAddMatToCartConfirmModalOpened:xt,openOrgAddMatToNotProtoModal:Ut}=this.props;let Wo={mode:yt,matName:Jt,payEntrance:Yo,orgCid:Ho,from:Ot,productId:it,hours:st,immediateUse:dt,isSelectOrg:wo,checkoutArea:Ot,checkoutPlace:Ct,initialWorkspace:Ho||"me",templateCid:Io,templateName:Lo,templateCategory:Ao,soloSubMode:vo,isAddMatToCartConfirmModalOpened:xt,openOrgAddMatToNotProtoModal:Ut};if(ln){Wo={mode:Ho?"org":"solo",orgCid:Ho,checkoutArea:Ot,checkoutPlace:Ct,isSelectOrg:wo};for(const[Kn,ds]of Object.entries(Wo))ds||delete Wo[Kn];return(0,b.jsx)(be,{className:"charge-container is-view-centered",isOpen:Ze,onClose:kt,canCloseOnClickMask:!0,isUsePortal:!1,width:1200,centered:!0,footer:null,title:null,modalRender:()=>(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("iframe",{src:location.origin+"/embed/ai_payment_modal?param="+(0,R._)(Wo)}),(0,b.jsx)(V.C,{name:"common/close",onClick:kt})]})})}if(yt==="mat"){var qo;const sn=(qo=MB)==null||(qo=qo.currentOrg)==null?void 0:qo.cid,Kn=sn?"org":"solo";return(0,b.jsx)(Le,{isOpen:Ze,onClose:this.onCloseEffect,portalClassName:"OrderChargeOverlay",className:"is-view-centered",isUsePortal:!1,centered:!0,footer:null,title:null,modalRender:()=>(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("iframe",{src:location.origin+"/embed/mat_payment_modal?param="+(0,R._)({...Wo,mode:Kn,orgCid:sn})}),(0,b.jsx)(re,{})]})})}return(0,b.jsx)(be,{isOpen:Ze,onClose:this.onCloseEffect,portalClassName:"OrderChargeOverlay",className:"is-view-centered",isUsePortal:!1,width:900,centered:!0,footer:null,title:null,modalRender:()=>(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("iframe",{src:location.origin+"/embed/payment_modal?param="+(0,R._)(Wo)}),(0,b.jsx)(re,{})]})})}}const We=(0,r.Ay)(x.H).withConfig({displayName:"styles__StyledNewOrderOverlay4WS",componentId:"sc-1yvcmxe-0"})(["height:670px;&.workspace-modal{border-radius:18px;}iframe{width:100%;height:100%;border:none;border-radius:18px;}svg{position:absolute;width:24px;height:24px;right:14px;top:15px;cursor:pointer;color:#FFF;}"]);var ze=e(56146);class ft extends o.PureComponent{constructor(){super(...arguments),(0,A.A)(this,"state",{isOpen:!1}),(0,A.A)(this,"handleCloseModal",yt=>{yt.state&&yt.state.target==="MeanSure"&&(this.setState({isOpen:!1}),window.history.forward())})}componentDidMount(){const{isOpen:yt}=this.props;this.setState({isOpen:yt}),setTimeout(()=>{window.history.state&&window.history.state.target==="Final"||(window.history.pushState({target:"MeanSure",random:Math.random()},"",location.href),window.history.pushState({target:"Final",random:Math.random()},"",location.href)),window.addEventListener("popstate",Jt=>this.handleCloseModal(Jt),!1)},500)}componentWillUnmount(){window.removeEventListener("popstate",yt=>this.handleCloseModal(yt),!1)}render(){const{mode:yt,payEntrance:Jt,orgCid:vo,onClose:Yo,from:Ho,productId:kt,hours:Ze}=this.props,{isOpen:it}=this.state,st={mode:yt,payEntrance:Jt,orgCid:vo,from:Ho||"workspace",productId:kt,hours:Ze};return(0,b.jsx)(We,{isOpen:it,onClose:Yo,canCloseOnClickMask:!0,isUsePortal:!1,width:1200,centered:!0,portalClassName:"OrderChargeOverlay",modalRender:()=>(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("iframe",{src:location.origin+"/embed/ws_payment_modal?param="+(0,R._)(st)}),(0,b.jsx)(ze.C,{name:"common/close",onClick:Yo})]})})}}const i=()=>ENV.IS_WONDER_SHARE?ft:Ne;var gt=e(82924),Je=e(15336);const Pt=(0,r.Ay)(x.H).withConfig({displayName:"styles__StyledUpgradeChatGPTModal",componentId:"sc-1tz832-0"})(['height:342px;background-size:100% auto;background-repeat:no-repeat;background-image:url("/mb-proto2/images/AIGC/upgrade_modal_bg.png");box-shadow:0px 3px 6px rgba(0,0,0,0.02),0px 6px 16px rgba(0,0,0,0.02),0px 9px 28px rgba(0,0,0,0.09);overflow:hidden;display:flex;align-items:center;flex-direction:column;.time-limited{width:fit-content;padding:0 14px;height:32px;line-height:32px;font-style:italic;border-radius:0 0 16px 0;background:linear-gradient(92.27deg,#1684FC 6.81%,#F79DFE 97.87%);box-shadow:4px 12px 40px rgba(39,54,78,0.1),0px 2px 10px rgba(39,54,78,0.08);font-weight:900;font-size:14px;line-height:17px;display:flex;align-items:center;letter-spacing:0.02em;color:#FFFFFF;position:absolute;left:0;top:0;}.close-guide{display:flex;position:absolute;right:18px;top:18px;width:24px;height:24px;cursor:pointer;border-radius:4px;&:hover{background:rgba(0,0,0,0.1);}}.upgrade-title{margin-top:150px;font-weight:600;font-size:18px;line-height:25px;display:flex;align-items:center;color:#333333;}.upgrade-content{margin-top:17px;font-size:14px;line-height:22px;text-align:center;color:#5D6F8F;max-width:calc(100% - 110px);}.bottom-buttons{display:flex;justify-content:center;margin-top:45px;font-weight:500;font-size:14px;.cancel{margin-right:12px;border:1px solid #CFD6E6;border-radius:6px;display:flex;align-items:center;justify-content:center;color:#415058;height:40px;width:170px !important;&:hover{background:#E6E9F1;}&:active{background:#CFD6E6;}}.upgrade{height:40px;width:170px !important;font-size:14px;display:flex;align-items:center;justify-content:center;color:white;border-radius:6px;background:linear-gradient(88.45deg,#1684FC 6.98%,#3BD8FD 176.47%);&:hover{background:linear-gradient(88.42deg,#006FE8 -0.16%,#00CEFF 176.47%);}}}']);class bt extends o.PureComponent{constructor(){super(...arguments),(0,A.A)(this,"upgradeHandle",()=>{const{onClose:yt,orgCid:Jt,checkoutArea:vo,checkoutPlace:Yo}=this.props;yt(),setTimeout(()=>{if(ENV.IS_WONDER_SHARE){const Ho=ENV.IS_WONDER_SHARE?gt.Jh:gt.C$;(0,Je.JW)(Ho,"_blank","noreferrer")}else MB.global.popupHelper.chargeAsync({orgCid:Jt,checkoutArea:vo,checkoutPlace:Yo,isChatGPT:!0})},10)})}componentDidMount(){(0,te.ck)("\u70B9\u6570\u4E0D\u8DB3\u5F39\u7A97\u652F\u4ED8")}render(){const{isOpen:yt,onClose:Jt}=this.props;return(0,b.jsx)(Pt,{className:ce()("upgradeChatGPT"),isOpen:yt,onClose:Jt,canCloseOnClickMask:!0,isUsePortal:!1,width:400,canClose:!1,modalRender:()=>(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(V.C,{name:"chatGPT/modal_close",className:"close-guide",onClick:Jt}),(0,b.jsx)("div",{className:"upgrade-title",children:I18N.ChatGPT.upgrade_limit}),(0,b.jsx)("div",{className:"upgrade-content",children:I18N.ChatGPT.upgrade_limit_content}),(0,b.jsxs)("div",{className:"bottom-buttons",children:[(0,b.jsx)("div",{className:"cancel",onClick:Jt,children:I18N.Comment.cancel}),(0,b.jsx)("div",{className:"upgrade",onClick:this.upgradeHandle,children:I18N.ChatGPT.Upgrade})]})]})})}}const qt=(0,r.DU)([".popup-helper-portal{&.ModalPortal{z-index:9999;&.is-mobile{padding:unset;min-width:unset;.Modal{width:unset;}}}.wonder-share .confirm-btn{background-color:#4257ff;color:#fff;&:hover{background-color:#7584ff;}}}"]);class pt extends o.PureComponent{constructor(){super(...arguments),(0,A.A)(this,"handleCloseModal",()=>{const{dispatch:yt}=this.props;yt({type:"modal:reset:state"})})}render(){const{loginModal:yt,popupAlertModal:Jt,teamSelectModal:vo,chargeOverlay:Yo,previewAuthModal:Ho,dispatch:kt,upgradeChatGPTModal:Ze}=this.props,it=i(),st=S();return(0,b.jsxs)(o.Fragment,{children:[yt.isOpen&&(0,b.jsx)(st,{...yt,onClose:this.handleCloseModal,dispatch:kt}),vo.isOpen&&(0,b.jsx)(a,{...vo,onClose:this.handleCloseModal,dispatch:kt}),Jt.isOpen&&(0,b.jsx)(D,{...Jt,onClose:this.handleCloseModal,dispatch:kt}),Yo.isOpen&&(0,b.jsx)(it,{...Yo,onClose:this.handleCloseModal,dispatch:kt}),Ho.isOpen&&(0,b.jsx)(h,{...Ho}),Ze.isOpen&&(0,b.jsx)(bt,{...Ze,onClose:this.handleCloseModal,dispatch:kt}),(0,b.jsx)(qt,{})]})}}const $t=(0,l.Ng)(Rt=>({...Rt}))(pt);var go=e(39547),Co=e(89604),Tt=e(76713),mo=e.n(Tt);const jo={canUploadToSquare:!1},Kt=function(Rt){Rt===void 0&&(Rt="POPUP-HELPER-ROOT");const yt=document.createElement("div");yt.id=Rt,document.body.appendChild(yt);const Jt=(0,g.y$)(T),vo=(0,m.createRoot)(yt);vo.render((0,b.jsx)(l.Kq,{store:Jt,children:(0,b.jsx)($t,{})}));const{confirmAsync:Yo,alertAsync:Ho,alertAsyncWide:kt,alertAsyncBlocked:Ze,promptGetPasswordAsync:it,loginAsync:st,teamSelectModalAsync:dt,sharingAsync:Ot,chargeAsync:Ct,upgradeChatGPTAsync:wo}=Ft(Jt.dispatch,Jt.getState);return{confirmAsync:Yo,alertAsync:Ho,alertAsyncWide:kt,alertAsyncBlocked:Ze,promptGetPasswordAsync:it,loginAsync:st,teamSelectModalAsync:dt,sharingAsync:Ot,chargeAsync:Ct,upgradeChatGPTAsync:wo,destroy:()=>{vo.unmount(),yt.remove()}}},Ft=(Rt,yt)=>({confirmAsync:Ct=>{let{className:wo="",title:ln,desc:Io,isHTML:Lo=!1,confirmText:Ao="",cancelText:xt="",isClose:Ut=void 0,theme:Wo=void 0}=Ct;return new Promise(qo=>Rt({type:"modal:update:state",payload:{popupAlertModal:{isOpen:!0,className:wo,title:ln,desc:Io,isHTML:Lo,type:"alert",alertType:"confirm",canClose:Ut!==!1,canCancel:!0,canConfirm:!0,cancelText:xt,confirmText:Ao,theme:Wo,onCancel:()=>qo(!1),onConfirm:()=>qo(!0)}}}))},alertAsync:Ct=>{let{title:wo,desc:ln,isHTML:Io=!1,confirmText:Lo=void 0}=Ct;return new Promise(Ao=>Rt({type:"modal:update:state",payload:{popupAlertModal:{isOpen:!0,title:wo,desc:ln,isHTML:Io,type:"alert",alertType:"alert",canClose:!0,canCancel:!1,canConfirm:!0,confirmText:Lo,onConfirm:()=>Ao()}}}))},alertAsyncWide:Ct=>{let{title:wo,desc:ln,isHTML:Io,confirmText:Lo}=Ct;return new Promise(Ao=>Rt({type:"modal:update:state",payload:{popupAlertModal:{isOpen:!0,title:wo,desc:ln,isHTML:Io,type:"functional",alertType:"alert",canClose:!0,canCancel:!1,canConfirm:!0,confirmText:Lo,onConfirm:()=>Ao()}}}))},alertAsyncBlocked:Ct=>{let{title:wo,desc:ln,isHTML:Io,confirmText:Lo}=Ct;return new Promise(Ao=>Rt({type:"modal:update:state",payload:{popupAlertModal:{isOpen:!0,title:wo,desc:ln,isHTML:Io,type:"alert",alertType:"alert",canClose:!1,canCancel:!1,canConfirm:!0,confirmText:Lo,onConfirm:()=>Ao()}}}))},promptGetPasswordAsync:(Ct,wo)=>new Promise(ln=>Rt({type:"modal:update:state",payload:{previewAuthModal:{isOpen:Ct,isWrongPwd:wo,onConfirm:Io=>Io&&ln(Io)}}})),loginAsync:Ct=>{let{onCancel:wo=nt,onConfirm:ln=nt,type:Io="signin",source:Lo}=Ct;return Rt({type:"modal:update:state",payload:{loginModal:{source:Lo,isOpen:!0,type:Io,onCancel:wo,onConfirm:ln}}})},teamSelectModalAsync:Ct=>{let{projectCid:wo="",onCancel:ln=nt,onConfirm:Io=nt}=Ct;return Rt({type:"modal:update:state",payload:{teamSelectModal:{isOpen:!0,projectCid:wo,onCancel:ln,onConfirm:Io}}})},sharingAsync:Ct=>{let{project:wo,theme:ln,isGuestMode:Io,screenMetaList:Lo=[],onUpdateProject:Ao=nt,extraInfo:xt=jo,screenMetaCidToVisit:Ut,user:Wo}=Ct;return Rt({type:"modal:update:state",payload:{sharingModal:{isOpen:!0,project:wo,theme:ln,extraInfo:xt,isGuestMode:Io,screenMetaList:Lo,onUpdateProject:Ao,screenMetaCidToVisit:Ut,user:Wo}}})},chargeAsync:Ct=>{const wo={...Ct};if(wo.mode==="mat")if(MB.currentOrg){const ln=go.t.InitialOrg(MB.currentOrg),Io=ln.planSdk.status===Co._E.Paid,Lo=ln.planSdk.mktPlan.getIsMtVip(),Ao=mo()(MB.currentOrg.next_billing_on).isBefore(mo()().add(1,"month")),xt=mo()(MB.currentOrg.next_billing_on).isBefore(mo()().add(6,"month")),Ut=MB.currentOrg.pt_total_seats===0&&MB.currentOrg.ptlt_total_seats===0,Wo=MB.currentOrg.pt_total_seats===0&&MB.currentOrg.ptlt_total_seats>0,qo=MB.currentOrg.ptlt_total_seats>0;(!Io||!Wo&&(Ao||Ut||Lo||qo&&xt))&&(wo.mode="org",Ut?wo.openOrgAddMatToNotProtoModal=!0:wo.isAddMatToCartConfirmModalOpened=!Wo,wo.immediateUse=MB.currentOrg.plan,wo.orgCid=MB.currentOrg.cid)}else go.t.InitialUser(MB.user).planSdk.prototypePlan.status===Co.pZ.Paid||(wo.mode="solo",wo.isAddMatToCartConfirmModalOpened=!0);Rt({type:"modal:update:state",payload:{chargeOverlay:{isOpen:!0,...wo}}})},upgradeChatGPTAsync:Ct=>Rt({type:"modal:update:state",payload:{upgradeChatGPTModal:{isOpen:!0,...Ct}}})}),nt=()=>{}},60240:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>A});var o=e(74059),m=e(51044);const g={read_only:"v8_read_only",device:"v8_device"};var l=e(80208),C=e(90076),T=e(57464);class A extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"setComponentRef",p=>this.modal=p),(0,o.A)(this,"getEntry",()=>{const p=new URLSearchParams(location.search),r=p&&p.get("view_mode");return r?g[r]:""})}componentDidMount(){const{dispatch:p,onConfirm:r}=this.props,x=this;window.onmessage=async function(f){if(f.data==="loginSuccess")typeof p=="function"&&p({type:"modal:update:state",payload:{loginModal:{isOpen:!1}}}),r();else if(f.data==="close"){var u;typeof p=="function"?p({type:"modal:update:state",payload:{loginModal:{isOpen:!1}}}):x==null||(u=x.modal)==null||u.close()}},l.Y.userSourceTrack(this.getEntry())}render(){const{isOpen:p,type:r,source:x}=this.props,f=this.getEntry(),u=f?"&entry="+f:"",b=location.origin+"/embed/auth_box?type="+r+(x?"&source="+x:"")+u;return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(C.Ef,{isOpen:p,ref:this.setComponentRef,className:"login-modal",mask:!1,modalRender:()=>(0,T.jsx)(T.Fragment,{children:(0,T.jsx)("iframe",{src:b})})}),(0,T.jsx)(C.Pg,{})]})}}(0,o.A)(A,"defaultProps",{type:"signin"})},59896:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>T});var o=e(74059),m=e(51044),g=e(7290),l=e(90076),C=e(57464);class T extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"setComponentRef",k=>this.modal=k)}componentDidMount(){const k=this;window.onmessage=async function(p){if(p.data==="loginSuccess"||p.data==="registerSuccess"){const r=btoa("client=web&type=to_url&url="+location.href);location.href="https://accounts.wondershare.com/v3/user/oauth-client/authorize?response_type=code&redirect_uri="+location.origin+"/wondershare/callback&scope=user%20normal&state="+r+"&source=37&app_key=689b3b14b4e225a9ddadd80a5ef81ca3&product_id=8038"}else p.data==="close"&&k.modal.close()}}render(){const{isOpen:k,onClose:p,type:r}=this.props,x="https://accounts.wondershare.com/web/"+(r==="signin"?"login":"register")+"?redirect_uri="+location.origin+"&source=37&site=mockitt.wondershare.com&mode=1&product_id=8038";return(0,C.jsx)(l.Yo,{isOpen:k,onClose:p,ref:this.setComponentRef,className:"login-modal",isUsePortal:!1,modalRender:()=>(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("iframe",{src:x}),(0,C.jsx)("button",{className:"btn-close-modal",onClick:p,children:(0,C.jsx)(g.C,{name:"common/close"})})]})})}}(0,o.A)(T,"defaultProps",{type:"signin"})},90076:(Et,ke,e)=>{"use strict";e.d(ke,{Ef:()=>g,Pg:()=>l,Yo:()=>C});var o=e(21676),m=e(70085);const g=(0,o.Ay)(m.FO).withConfig({displayName:"styles__StyledLoginModal",componentId:"sc-mnw7hl-0"})(["&.login-modal{width:100%;height:100%;background:transparent;transform:translateY(0px);iframe{width:100%;height:100%;border:1px solid rgba(6,8,10,0.56);background:transparent;}}"]),l=(0,o.DU)(["#IBOT_MODAL_ROOT{.ModalPortal,.ModalPortal.is-open{transition:none;transform:translateY(0px);}.ModalPortal.is-open .TransitionModal{transition:none;transform:translateY(0px);}}"]),C=(0,o.Ay)(m.FO).withConfig({displayName:"styles__StyledLoginModal4WS",componentId:"sc-mnw7hl-1"})(["&.login-modal{width:460px;overflow:hidden;height:633px;iframe{width:100%;height:100%;border:0;}.btn-close-modal{position:absolute;z-index:5;top:24px;right:24px;display:flex;justify-content:center;align-items:center;.svg-icon{width:24px;height:24px;&:hover{path{fill:#5B6B73;}}}}}"])},24013:(Et,ke,e)=>{"use strict";e.d(ke,{AT:()=>k,Lf:()=>A,N8:()=>p,NG:()=>T,mO:()=>x,pE:()=>r});var o=e(63555),m=e(59742),g=e(19216),l=e(25399),C=e(91560);const T=(f,u)=>f+"/"+u,A=f=>f.split("/"),k=(f,u,b)=>{if(b||sdkStore.isTrashed(f)||sdkStore.isTrashed(u))return;const h=new URL(location.href),E=h.searchParams.get("view_mode");E===null||["read_only","inspect"].includes(E)||(f&&h.searchParams.set("screen",f),u&&h.searchParams.set("canvasId",u),window.history.replaceState("","",h))},p=function(f,u){u===void 0&&(u=!0);const b=new URL(location.href);b.searchParams.get("view_mode")!==null&&(b.searchParams.set("view_mode",f),["read_only","inspect"].includes(f)&&u&&(b.searchParams.delete("screen"),b.searchParams.delete("canvasId")),window.history.replaceState("","",b))},r=f=>{let{isPanelPreviewMode:u,basketKey:b,canvasKey:h,sharing:E}=f,N=!0;if(h&&sdkStore.isTrashed(h))return!1;if(u)if(b){const z=(0,m.OO)(h)?(0,m.QL)(h).pop():h,{key:S,sup:_,hotAttr:y}=sdkStore.getHotItem(b);if(y.bunch===o.x.RbPage&&_==="B@ref-muban"){const{sub:a}=sdkStore.getHotItem(S);N=a.includes(z)}else if(y.basket==="bMuban"){const{sub:a}=sdkStore.getHotItem(y.refRBPageKey);N=a.includes(z)}else if(y.basket==="bDanli"){const{sub:a}=sdkStore.getHotItem(y.refRBPageKey);N=a.includes(z)}}else N=!1;if(h&&E&&E.type==="advanced"&&E.screen_visible_switch){for(const z of E.screen_visible_list)if(sdkStore.isActiveKey(z)&&sdkStore.getHotItem(z).sub.find(S=>S===h))return N=!0,N;N=!1}return N},x=(f,u)=>{let b=f.targetWidgetKey;if(f.targetWidgetKey===l.rE)b=f.triggerItemKey;else if(f.targetWidgetKey===l.VZ){const h=u.store.getState(),E=(0,C.KR)(h),N=(0,C.Mo)(h);b=E&&sdkStore.locTopRBActiveKey(N)==="B@ref-muban"?N:(0,g.JC)(sdkStore,f.triggerItemKey)}return b}},60591:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>m});const o={mdWMMktList:new Set,mtWMMktList:new Set,noWMMktList:new Set,isShowUpMktTip:!1};function m(g,l){g===void 0&&(g=o);let{type:C,payload:T}=l;switch(C){case"reducer:watermark:update-state":return{...g,...T};case"reducer:watermark:update:is-show-up-mkt-tip":return{...g,isShowUpMktTip:T};default:return g}}},96380:(Et,ke,e)=>{"use strict";e.d(ke,{s:()=>r,v:()=>p});var o=e(76713),m=e.n(o),g=e(36521),l=e(32010),C=e(53955),T=e(15915);const A="last_open_export_menu_with_wm_date",k="2000-01-01",p=()=>{if(!(0,T._5)())return!0;const x=(0,C.fV)();if(!x)return!1;const{mdWMMktList:f,mtWMMktList:u}=x;if(f.size||u.size){const b=(0,g.Yt)(A,k,g.qW.String);return m()().isSame(b,"day")?!0:((0,g.a0)(A,m()().format("YYYY-MM-DD"),g.qW.String),!1)}return!0},r=x=>{if(!(0,T._5)())return!0;const f=(0,C.fV)();if(!f)return!1;const{noWMMktList:u}=f;if(x.every(h=>(0,l.bB)(h.hotAttr.mktCid,{noWMMktList:u})))return!0;const b=(0,g.Yt)(A,k,g.qW.String);return m()().isSame(b,"day")?!0:((0,g.a0)(A,m()().format("YYYY-MM-DD"),g.qW.String),!1)}},59041:(Et,ke,e)=>{"use strict";e.d(ke,{z:()=>k});var o=e(76713),m=e.n(o),g=e(36521),l=e(64598),C=e(15915);const T="last_use_mkt_with_wm_date",A="2000-01-01",k=()=>{if(!(0,C._5)())return;const p=(0,g.Yt)(T,A,g.qW.String);(0,g.a0)(T,m()().format("YYYY-MM-DD"),g.qW.String),m()().isSame(p,"day")||(MB.action&&MB.action("reducer:watermark:update:is-show-up-mkt-tip",!0),(0,l.f)({exposure_reason:"\u7F16\u8F91\u533A\u53F3\u4E0B\u89D2\u63D0\u793A"}))}},58314:(Et,ke,e)=>{"use strict";e.d(ke,{y:()=>z,E:()=>h});var o=e(51044),m=e(72605),g=e(63686),l=e(59742),C=e(47143),T=e(20029),A=e(38047),k=e(30797),p=e(21676);const r=p.Ay.div.withConfig({displayName:"styles__StyledInteractiveTargetHotspotContainer",componentId:"sc-1nlyllx-0"})(["position:absolute;z-index:3;"]),x=p.Ay.div.withConfig({displayName:"styles__StyledInteractiveTargetHotspot",componentId:"sc-1nlyllx-1"})(["position:absolute;pointer-events:auto;z-index:",";transform:",";width:","px;height:","px;"],S=>S.zIndex,S=>"translate("+(S.x-S.w*.5)*S.scale+"px,"+(S.y-S.h*.5)*S.scale+"px) rotate("+S.r+"deg)",S=>S.w*S.scale,S=>S.h*S.scale);var f=e(63555),u=e(45309),b=e(57464),h=function(S){return S[S.canvas=1]="canvas",S[S.canvasList=2]="canvasList",S[S.widget=3]="widget",S[S.group=4]="group",S[S.panel=5]="panel",S[S.page=6]="page",S[S.canvasStateList=7]="canvasStateList",S[S.overlay=8]="overlay",S}(h||{});const E=(0,g.Mz)([A.nF,k.x$,T.IL,C.X_,T.jI],(S,_,y,a,$)=>{var ce;const de=(ce=_[0])==null?void 0:ce.key;return{isDragLink:S,editingBDanliKey:$,interactiveTriggerKey:de,interactiveTargetKey:y,scale:a}}),N=S=>{let{editingBDanliKey:_,targetKey:y,scale:a}=S;const $=sdkStore.getHotItem(y);if(!$)return null;const{hotAttr:{zIndex:ce}}=$,de=f.Q.USE_CLIP_TEXT.includes($.hotAttr.type)?(0,u.VU)(y):$.hotAttr.type==="wWrap"?(0,u.py)(y):sdkStore.getHotBound(y);let fe,se=_?(0,l.j_)([_,y]):y;switch($.hotAttr.type){case"rResCanvas":{fe=$.hotAttr.asOverlay?h.overlay:h.canvas,se=y;break}case"wWrap":{fe=h.group;break}case"wBasket":{fe=h.panel;break}default:fe=h.widget}const J=(0,o.useMemo)(()=>{var ve,D;const R=sdkStore.locUpMainCanvasKey(y);if(!R)return ce;const V=((ve=sdkStore.getHotItem(R))==null?void 0:ve.hotAttr)||{};return $.hotAttr.type==="rResCanvas"?ce:((D=V.zIndex)!=null?D:0)+ce},[y]);return(0,b.jsx)(x,{className:"interactive-target-hotspot","data-interactive-target-key":se,"data-interactive-target-type":fe,scale:a/100,zIndex:J,...de},$.key)},z=()=>{const{editingBDanliKey:S,interactiveTriggerKey:_,interactiveTargetKey:y,isDragLink:a,scale:$}=(0,m.d4)(E);return a?(0,b.jsxs)(r,{children:[y&&(0,b.jsx)(N,{targetKey:y,editingBDanliKey:S,scale:$}),_&&(0,b.jsx)(N,{targetKey:_,editingBDanliKey:S,scale:$})]}):null}},78322:(Et,ke,e)=>{"use strict";e.d(ke,{P:()=>C});var o=e(63555),m=e(76347);const g=[{keyCode:78,name:o.x.WSticky,shortcut:"N",default:{width:280,height:120}},{keyCode:72,name:o.x.WLR,shortcut:"H",default:{width:45,height:45}},{keyCode:76,name:o.x.WLine,shortcut:"L"},{keyCode:79,name:o.x.WOval,shortcut:"O",default:{width:100,height:100}},{keyCode:84,name:o.x.WRichText,shortcut:"T"},{keyCode:80,name:o.x.WVector,shortcut:"P"},{keyCode:80,shiftKey:!0,name:o.x.WVector,shortcut:"Shift + P",attrs:{toolType:m.pv.PENCIL}},{keyCode:82,name:o.x.WRect,shortcut:"R",default:{width:200,height:100}},{keyCode:87,name:o.x.WTear,shortcut:"W",default:{width:20,height:20}}],l={keyCode:65,name:o.x.Canvas,shortcut:"A",default:{width:400,height:800}},C=T=>T?[...g,l]:g},26737:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>$h});var o=e(72605),m=e(63686),g=e(47143),l=e(43391),C=e(54606),T=e(35592),A=e(78570),k=e(99895),p=e(20029),r=e(74059),x=e(51044),f=e(86634),u=e.n(f),b=e(61535),h=e(52191),E=e(25961),N=e(76445),z=e(35709),S=e(33386),_=e(19418),y=e(57464);class a extends x.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"removeRanges",(0,_.t)(()=>{var W;(W=window.getSelection())==null||W.removeAllRanges()},{capture:!0})),(0,r.A)(this,"getNodeList",W=>{const Q=[],{widgetTreeData:ge}=this.props;return ge.children.forEach(Me=>{try{Q.push(Me.render(W))}catch(Pe){(0,S.p)("[fatal]: widgetNode.render is not a funtion",Pe,JSON.stringify(Me==null?void 0:Me.widget))}}),Q})}render(){const{editingCid:W,editingPanelCid:Q,editingPanelRefPage:ge,editingImageWrapperCid:Me,currentImageOperateType:Pe,editChartDataCid:Ie,editingEditableWidgetCid:Oe,isWithinPanelEditor:Ke,onlyView:ot,currentEditorMode:rt,isShowSticky:lt,STMode:wt}=this.props,so={editingCid:W,editingPanelCid:Q,editingPanelRefPage:ge,editingImageWrapperCid:Me,currentImageOperateType:Pe,editChartDataCid:Ie,editingEditableWidgetCid:Oe,isWithinPanelEditor:Ke,currentEditorMode:rt,onlyView:ot,isShowSticky:lt,STMode:wt};return(0,y.jsxs)("div",{className:"group-list",children:[this.getNodeList(so),ot&&(0,y.jsx)(_.A,{target:document,onMouseDown:this.removeRanges})]})}}const $=(0,m.Mz)([g.lh,p.jI,E.P2,E.tR,p.tp,p.Pm,C.r,p.jx,h.$7,p.bt,z.Lc,b.RX],(he,W,Q,ge,Me,Pe,Ie,Oe,Ke,ot,rt,lt)=>{const wt=Oe===N.qi.OnlyView;return{editingPanelRefPage:ot,editingCid:he,editingPanelCid:W,editingImageWrapperCid:Q,currentImageOperateType:ge,editChartDataCid:Me,editingEditableWidgetCid:Pe,onlyView:wt,currentEditorMode:Ie,isShowSticky:Ke,STMode:rt,widgetTreeData:lt}}),ce=(0,o.Ng)(he=>$(he))(a);var de=e(44727),fe=e(21676),se=e(62064);const J=fe.Ay.div.withConfig({displayName:"styles__StyledCanvasContainer",componentId:"sc-weiq4w-0"})(["",""],se.Jj);function ve(){const he=(0,o.d4)(g.PL),W=(0,o.d4)(g.Ur),Q=(0,x.useMemo)(()=>W?(0,de.gE)({orientation:W.deviceOrientation},he.device):null,[he,W]);return(0,y.jsx)(J,{id:"canvas",className:u()(Q&&Q),children:(0,y.jsx)(ce,{})})}const D=(0,x.memo)(ve),R=he=>he.editor,V=he=>he.editor.state,O=(0,m.Mz)([b.UV,b.RX,g.Ur],(he,W,Q)=>he.getNode(Q==null?void 0:Q.cid));var Ce=e(84470),ae=e(30797),q=e(39562),K=e(34129),xe=e(56315),te=e(63555);const H=(0,m.Mz)([g.lh,g.KW,xe.$],(he,W,Q)=>{var ge,Me,Pe;const Ie=he&&sdkStore.getHotItem(he),Oe=(Ie==null||(ge=Ie.hotAttr)==null?void 0:ge.type)===te.x.WRichText&&(Ie==null||(Me=Ie.hotAttr)==null||(Me=Me.richTextV1)==null?void 0:Me.sizeType)!==1,Ke=(Ie==null||(Pe=Ie.hotAttr)==null?void 0:Pe.type)===te.x.WSticky;return Oe||W||Q.isDragging||Q.isAdjustingGap||Ke});var re=e(2302),be=e(21011),Le=e(72866);const Ve=fe.Ay.svg.withConfig({displayName:"styles__StyledPathBorder",componentId:"sc-1vlaxxe-0"})(["position:absolute;overflow:visible;path{stroke-width:2;stroke:#1e98ea;}&.echo-line{path{stroke:",";}}&.is-line-select{path{stroke:",";stroke-width:1;}}&.is-locked{path{stroke:#7d8694;}}"],he=>he.theme.color_proto,he=>he.theme.color_proto);class Ne extends x.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"getStrokePath",(W,Q,ge,Me)=>{const Pe=[W*ge.x,Q*ge.y],Ie=[W*Me.x,Q*Me.y];return"M "+Pe[0]+" "+Pe[1]+" L "+Ie[0]+" "+Ie[1]})}render(){const{tree:W,showEchoLayer:Q,isLineSelect:ge,ratio:Me}=this.props,Pe=W.widget,{isLock:Ie}=Pe,{from:Oe,to:Ke}=(0,be.Ne)(Pe),{transform:ot,rect:rt}=(0,Le.Oj)(W.key),{a:lt,b:wt,c:so,d:bo}=ot,{x:Ro,y:tn}=ot.clone().scale(Me,Me).apply({x:rt.x,y:rt.y}),{x:Pn,y:un}=re.Z.mul(re.Z.xy(rt.w,rt.h),Me),Xn=un<1?1:un,zs={...{left:Ro,top:tn,width:Pn,height:Xn},transform:"matrix("+lt+","+wt+","+so+","+bo+",0,0)",transformOrigin:"0 0"},fn=this.getStrokePath(Pn,Xn,Oe,Ke);return(0,y.jsx)(Ve,{className:u()({"echo-line":Q},{"is-locked":Ie},{"is-line-select":ge}),style:zs,children:(0,y.jsx)("path",{d:fn})})}}(0,r.A)(Ne,"defaultProps",{isLineSelect:!1});var We=e(1163);const ze=fe.Ay.div.withConfig({displayName:"styles__StyledItemsHoverBorder",componentId:"sc-14jgrhi-0"})(["position:absolute;transform-origin:0 0;&.item-hover-border{border:2px solid ",";}&.item-echo-layer{border:1px solid ",";background-color:rgba(41,141,248,0.3);}&.is-locked{border-color:#7d8694;}"],he=>he.theme.color_proto,he=>he.theme.color_proto);class ft extends x.PureComponent{get noBorderRadius(){const{tree:{widget:W}}=this.props;return W.type===te.x.WPolygon||W.type===te.x.WStar||W.type===te.x.WDigitalStepper||W.type.startsWith("wCollapse")||W.type.startsWith("wPagination")}get allBorderRadius(){var W;const{tree:{widget:Q}}=this.props;return Q.type===te.x.WOval||Q.type===te.x.WImage&&((W=Q.image)==null?void 0:W.imageClipType)===We.Mg.circular}render(){const{tree:W,showEchoLayer:Q,ratio:ge}=this.props,Me=W.widget,{x:Pe,y:Ie,r:Oe,w:Ke,h:ot}=sdkStore.getHotBound(W.key),lt={borderRadius:Me.borderRadius?typeof Me.borderRadius=="number"?Me.borderRadius*ge+"px":Me.borderRadius.radiusTL*ge+"px "+Me.borderRadius.radiusTR*ge+"px "+Me.borderRadius.radiusBR*ge+"px "+Me.borderRadius.radiusBL*ge+"px":void 0,width:Ke*ge,height:ot*ge,transform:"translate("+(Pe-Ke*.5)*ge+"px,"+(Ie-ot*.5)*ge+"px) rotate("+Oe+"deg)",transformOrigin:"center center"};return this.allBorderRadius&&(lt.borderRadius="100%"),this.noBorderRadius&&(lt.borderRadius="none"),(0,y.jsx)(ze,{className:u()({"item-echo-layer":Q,"item-hover-border":!Q,"is-locked":Me.isLock}),style:lt})}}var mt=e(96851),i=e(70999),gt=e(13780),Je=e(28868),Pt=e(72868);const bt=(he,W,Q)=>{const{x:ge,y:Me,w:Pe,h:Ie}=sdkStore.getHotBound(he),{elbowType:Oe,dPathList:Ke}=W,ot=ge-Pe*.5-Q.offset.x/Q.scale,rt=Me-Ie*.5-Q.offset.y/Q.scale;let lt;return Oe==="curve"?lt=(0,Pt.Ig)({closed:!1,points:Ke}).map((wt,so)=>({x:wt.x+ot,y:wt.y+rt,isAdjusted:!1})):lt=(0,Je.Ui)(re.Z.xy(ot,rt),Ke),lt.map(wt=>{const so=gt.L.apply(Q,wt);return{x:Math.round(so.x),y:Math.round(so.y)}})},qt=he=>{const W=Math.round(he.length/2)-1,Q=[];for(let ge=0,Me=he.length;ge<Me-1;ge+=1){const Pe=he[ge],Ie=he[ge+1],Oe=Math.round(re.Z.distance(Pe,Ie)),Ke=Math.atan2(Pe.y-Ie.y,Ie.x-Pe.x)*(180/Math.PI),ot=Ie.x-Pe.x,rt=Ie.y-Pe.y;Q.push({from:ge,to:ge+1,length:Oe,x:Pe.x+ot/2,y:Pe.y+rt/2,angle:Ke,direction:(0,Je.b4)(Ke),xList:[Pe.x+ot/10,Pe.x+ot*9/10],yList:[Pe.y+rt/10,Pe.y+rt*9/10],isTextCommentIndex:ge===W})}return Q};var pt=e(17084);const $t=fe.Ay.div.withConfig({displayName:"styles__StyledElbowResize",componentId:"sc-3flq70-0"})(["pointer-events:none;position:absolute;"]),go=fe.Ay.div.withConfig({displayName:"styles__StyledRectAnchor",componentId:"sc-3flq70-1"})(["pointer-events:auto;.line-rect-anchor{display:block;background-color:rgba(0,119,255,1);position:absolute;transform:translate(-50%,-50%);border-radius:2px;transition:all .3s;&.vertical{cursor:"," !important;}&.horizontal{cursor:"," !important;}}"],pt.M.nsResize,pt.M.ewResize),Co=fe.Ay.div.withConfig({displayName:"styles__StyledCircleAnchor",componentId:"sc-3flq70-2"})(["pointer-events:auto;.line-circle-anchor{display:block;width:12px;height:12px;background-color:#298df8;border:1px solid #298df8;border-radius:50%;position:absolute;transform:translate(-50%,-50%);box-sizing:border-box;&::before{display:block;content:'';width:8px;height:8px;background-color:#ffffff;border-radius:50%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);}&::after{content:'';position:absolute;inset:-10px;border-radius:50%;background-color:transparent;}}.line-circle-anchor-attached{display:block;width:12px;height:12px;background-color:#ffffff;border:1px solid rgba(0,119,255,1);border-radius:50%;position:absolute;transform:translate(-50%,-50%);box-sizing:border-box;&::before{display:block;content:'';width:8px;height:8px;background-color:rgba(0,119,255,1);border-radius:50%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);}&::after{content:'';position:absolute;inset:-10px;border-radius:50%;background-color:transparent;}}"]);var Tt=e(21109),mo=e(78869),jo=e.n(mo);class Kt extends x.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{isMove:!1,count:0,moveAnchor:""}),(0,r.A)(this,"onMouseDown",W=>{W.stopPropagation();const{current:Q}=W.target.dataset;this.setState({isMove:!0,moveAnchor:Q});const{item:{key:ge},item:Me,dispatch:Pe,currPageKey:Ie}=this.props;if(Me.isLock)return;const Oe=ge;Pe({type:"elbow:update",payload:{isDraggingElbow:!0,activeElbowKey:Oe}}),sdkStore.combineMergeMark("elbow-drag");const Ke=jo()(rt=>{const{isMove:lt,count:wt,moveAnchor:so}=this.state;if(!lt)return;wt<2&&this.setState({count:wt+1});const{viewport:bo,viewportRect:Ro,dispatch:tn}=this.props,Pn=(0,mt.mG)(rt,{scale:100,offset:bo.offset,viewportRect:Ro}),un={x:Pn.x/bo.scale,y:Pn.y/bo.scale};tn({type:"entry:elbow:drag:start",payload:{elbowKey:Oe,moveAnchor:so,cursorWorldPos:un,event:rt}})},10),ot=rt=>{const lt=(0,Tt.G9)(Ie),wt=sdkStore.getHotItem(ge),so=sdkStore.getHotAABB(ge),bo={x:.5*(so[0]+so[2]),y:.5*(so[1]+so[3])},Ro=(0,Tt.fW)(ge,Ie,lt);if(wt.sup!==Ro){const tn=(0,Tt.Us)(),Pn=[{...wt,sup:Ro,hotAttr:{...wt.hotAttr,...sdkStore.toAttrXY(bo,ge,Ro),zIndex:tn(ge,Ro)}}];Pe({type:"entry:widget:change",payload:{flatChgList:Pn,isCombineChange:!1}})}sdkStore.combineMerge("elbow-drag"),Pe({type:"elbow:update",payload:{isDraggingElbow:!1,activeElbowKey:""}}),this.setState({isMove:!1,count:0,moveAnchor:""}),document.removeEventListener("mousemove",Ke,!1),document.removeEventListener("mouseup",ot,!1)};document.addEventListener("mousemove",Ke,!1),document.addEventListener("mouseup",ot,!1)}),(0,r.A)(this,"handleGetCircleList",W=>{const Q=sdkStore.getHotItem(W);if(!Q)return[];const{viewport:ge}=this.props,{elbow:Me,refFromKey:Pe,refToKey:Ie}=Q.hotAttr,Oe=bt(W,Me,ge),{isRefFromExist:Ke,isRefToExist:ot}=(0,i.v)(W,Pe,Ie);return Q.hotAttr.elbow.elbowType==="curve"?[{...Oe[0],attached:Ke},{...Oe[1],attached:!1},{...Oe[Oe.length-1],attached:ot}]:[{...Oe[0],attached:Ke},{...Oe[Oe.length-1],attached:ot}]}),(0,r.A)(this,"handleDoubleClick",W=>{const{item:{key:Q},dispatch:ge}=this.props,{current:Me}=W.target.dataset;Me==="middle"&&ge({type:"entry:elbow:middle-anchor:reset",payload:{elbowKey:Q}})})}componentWillUnmount(){this.setState=()=>!1}render(){const{item:{key:W}}=this.props,Q=this.handleGetCircleList(W);return(0,y.jsx)(Co,{children:Q&&Q.map((ge,Me)=>{const Pe=Me===0?"start":Me===Q.length-1?"end":"middle",Ie=ge.attached?"line-circle-anchor-attached line_circle_anchor_hover_"+W:"line-circle-anchor line_circle_anchor_hover_"+W;return(0,y.jsx)("span",{className:Ie,onMouseDown:this.onMouseDown,onDoubleClick:this.handleDoubleClick,"data-current":Pe,style:{left:ge.x,top:ge.y,cursor:"pointer"}},ge.x+"&"+ge.y+"&"+Me)})})}}const Ft=(0,m.Mz)([g.X_,g.ER,g.$S,g.eo],(he,W,Q,ge)=>({viewport:{offset:W,scale:he/100},viewportRect:Q,currPageKey:ge})),nt=(0,o.Ng)(he=>Ft(he))(Kt);class Rt extends x.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleRender",()=>{const{scale:W,tree:Q,showEchoLayer:ge,onlyView:Me}=this.props,Pe=W/100;switch(Q.widget.type){case te.x.WTear:return null;case te.x.WElbow:return Me?null:(0,y.jsx)(nt,{item:Q.widget});case te.x.WLine:case te.x.WArrow:return(0,y.jsx)(Ne,{showEchoLayer:ge,tree:Q,ratio:Pe});default:return(0,y.jsx)(ft,{showEchoLayer:ge,tree:Q,ratio:Pe})}})}render(){return(0,y.jsx)(y.Fragment,{children:this.handleRender()})}}class yt extends x.PureComponent{render(){const{trees:W,ratio:Q,isResizing:ge}=this.props,Me=W.filter(wt=>wt.type!==te.x.WTear).map(wt=>wt.key);if(Me.length===0)return null;const[Pe,Ie,Oe,Ke]=sdkStore.getHotKeyListAABB(Me),ot=Oe-Pe,rt=Ke-Ie,lt={width:ot*Q,height:rt*Q,transform:"translate("+Pe*Q+"px, "+Ie*Q+"px)",...ge&&{borderColor:"transparent"}};return(0,y.jsx)("div",{className:"items-total-border",style:lt})}}var Jt=e(59742),vo=e(7290),Yo=e(11777),Ho=e(39541),kt=e(54386),Ze=e(90968),it=e(90579);class st extends x.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleUnlock",W=>{W.stopPropagation();const{onlyView:Q,dispatch:ge}=this.props;!Q&&ge({type:"entry:toggle:lock"})}),(0,r.A)(this,"stopPropagation",W=>W.stopPropagation()),(0,r.A)(this,"handlePreview",(W,Q)=>{let{isDynamicWidget:ge}=Q;W.stopPropagation(),W.preventDefault();const{onlyView:Me,tree:Pe,dispatch:Ie}=this.props,{refRBPageKey:Oe,refContentKey:Ke}=Pe.widget;Ie({type:"entry:preview:panel",payload:{activePageKey:Oe,activeCanvasKey:(0,Jt.j_)([Pe.keyToAccessIntAct,Ke]),basketKey:Pe.keyToAccessIntAct}}),Me?(0,kt.A)({operation_type:ge?kt.D.BasketPreview:kt.D.MubanPreview}):(0,Ze.kX)({operation_type:ge?Ze.mV.BasketPreview:Ze.mV.MubanPreview}),Me?(0,it.bO)({currentProject:this.props.rootProject,source:ge?kt.D.ReadOnlyBasketPreview:kt.D.ReadOnlyMubanPreview,preview_type:"\u603B\u89C8\u6A21\u5F0F"}):(0,it.bO)({currentProject:this.props.rootProject,source:ge?Ze.mV.EditBasketPreview:Ze.mV.EditMubanPreview,preview_type:"\u6F14\u793A\u6A21\u5F0F"})}),(0,r.A)(this,"handlePreviewCode",()=>{const{tree:W,dispatch:Q,onlyView:ge}=this.props,Me=W.sup;Q({type:"entry:preview:widget",payload:{activeWidgetKey:W.widget.cid,activePageKey:Me}}),(0,it.bO)({currentProject:this.props.rootProject,source:ge?kt.D.ReadOnlyAIComponentPreview:Ze.mV.EditAIComponentPreview,preview_type:ge?"\u603B\u89C8\u6A21\u5F0F":"\u6F14\u793A\u6A21\u5F0F"})}),(0,r.A)(this,"handleEditChart",async W=>{W.stopPropagation(),W.preventDefault();const{tree:Q,dispatch:ge}=this.props,Me=Q.widget;Me.isLock||ge({type:"entry:chart:in:edit",payload:{widget:Me,trackType:"\u5355\u51FB\u63D0\u793A"}})}),(0,r.A)(this,"handlePreviewCanvas",W=>{if(W.stopPropagation(),W.preventDefault(),MB.global.experienceLoginModalHelper("isSave"))return;const{tree:Q,rootProject:ge,onlyView:Me,dispatch:Pe}=this.props;Pe({type:"entry:preview:canvas",payload:{activePageKey:Q.sup,activeCanvasKey:Q.key}}),(0,it.bO)({currentProject:ge,source:Me?"\u603B\u89C8\u6A21\u5F0F-\u9875\u9762\u6F14\u793A":"\u7F16\u8F91\u533A-\u9875\u9762\u6F14\u793A",preview_type:"\u6F14\u793A\u6A21\u5F0F"})}),(0,r.A)(this,"handleEditGraph",()=>this.props.dispatch({type:"entry:widget:graph:edit",payload:{action:"update-widget"}})),(0,r.A)(this,"getShowGraph",()=>{const{tree:W,onlyView:Q,isSelectItemsInMuban:ge}=this.props,Me=W.widget.type===te.x.WGraph,Pe=W.widget.isLock;return Me&&!Pe&&!Q&&!ge})}render(){const{ratio:W,tree:Q,dashedBorder:ge,editingEditableWidgetCid:Me,editingBasketKey:Pe,isCommunityPreview:Ie,isVersionPreview:Oe,editingBasketRefPage:Ke,isMultiSelect:ot,editMindKey:rt,onlyView:lt,editingAIComponentKey:wt,isShowAIComponentPreview:so,needWillChange:bo}=this.props,Ro=Q.widget,tn=Ro.type===te.x.WBasket&&Ro.basket==="bDanli",Pn=Ro.type===te.x.WCode,un=Ro.type===te.x.WBasket&&Ro.basket==="bMuban",Xn=Ro.type===te.x.WTear,ws=Ro.cid===Me,zs=Ro.type===te.x.WChart&&![Ho.N.progress_chart,Ho.N.gauge_chart].includes(Ro.chartConfig.chartType),fn=Ro.type===te.x.WGraph,Ds=Q.widget,gi=Ds.key===rt,hi=Ds.isLock,{x:Ni,y:ba,r:fa,w:Ka,h:da}=sdkStore.getHotBound(Q.key),aa=Xn?"translate("+(Ni*W-Ka*.5)+"px,"+(ba*W-da*.5)+"px)":"translate("+(Ni-Ka*.5)*W+"px,"+(ba-da*.5)*W+"px) rotate("+fa+"deg)",ka=Xn?Ka:Ka*W,Vi=Xn?da:da*W,Di={borderStyle:Xn?"":ge?"dashed":"solid",width:ka,height:Vi,transform:aa,transformOrigin:"center center"};return bo&&(Di.willChange="transform"),(0,y.jsxs)("div",{className:u()("item-select-border",{"is-locked":Ds.isLock,"is-dy-widget":tn,"is-code":Pn,"is-master":un,"is-editable-widget":ws,"is-tear":Xn,"is-shadow-key":(0,Jt.OO)(Ds.cid),"is-edit-mind":gi,"is-edit-code":!!wt}),style:Di,children:[hi&&!Xn&&(0,y.jsxs)(x.Fragment,{children:[(0,y.jsx)("span",{}),(0,y.jsx)("span",{}),(0,y.jsx)("span",{}),(0,y.jsx)(vo.C,{className:"circle-lock",name:"new_replace/circle_lock",onMouseDown:this.handleUnlock})]}),hi&&Xn&&(0,y.jsx)(vo.C,{className:"circle-lock",name:"new_replace/circle_lock",onMouseDown:this.handleUnlock}),(tn||un)&&!Ro.isLock&&!Oe&&(0,y.jsx)("div",{className:"action preview",onMouseDown:pa=>this.handlePreview(pa,{isDynamicWidget:tn}),children:(0,y.jsx)(vo.C,{name:"design/panel/mark"})}),Q.type===te.x.Canvas&&!Q.hotAttr.asOverlay&&!Pe&&!Ie&&!Oe&&!Ke&&!ot&&(0,y.jsx)("div",{className:"action preview canvas",onMouseDown:this.handlePreviewCanvas,children:(0,y.jsx)(vo.C,{name:"design/panel/mark"})}),Pn&&!Ro.isLock&&so&&!Oe&&(0,y.jsx)("div",{className:"action preview code",onMouseDown:this.handlePreviewCode,children:(0,y.jsx)(vo.C,{name:"design/panel/mark"})}),zs&&!hi&&!lt&&(0,y.jsx)("div",{className:"action preview editChartAction",onMouseDown:this.handleEditChart,children:(0,y.jsx)(vo.C,{name:"setting_panel/chart/edit"})}),this.getShowGraph()&&(0,y.jsx)(Yo.A,{content:"\u7F16\u8F91",direction:"down",children:(0,y.jsx)("div",{className:"action edit-graph-action",onMouseDown:this.handleEditGraph,children:(0,y.jsx)(vo.C,{name:"design/graph/edit",size:32})})})]})}}var dt=e(88080),Ot=e(83053),Ct=e(20592),wo=e(7233),ln=e(48310);const Io=he=>{let{itemKey:W,canvasKey:Q,canvasW:ge,canvasH:Me}=he;const Pe=sdkStore.getHotItem(W);if(!Pe)return"";const{x:Ie,y:Oe,r:Ke}=sdkStore.getRelocateLocalXYR(W,Q),{hotAttr:ot}=Pe,rt=sdkStore.getLocalBound(W),lt=Ie-(ot.x-rt.x),wt=Oe-(ot.y-rt.y),so=rt.w,bo=rt.h,Ro=Ke,tn=(0,dt.e)({x:lt-so/2,y:wt-bo/2},(0,Ot.EQ)(Ro)),Pn='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">\n <defs>\n <mask id="mask">\n <rect width="'+so+'" height="'+bo+'" fill="white"></rect>\n <rect width="'+ge+'" height="'+Me+'" fill="black" transform="rotate('+-Ke+", "+lt+", "+wt+") translate("+-tn.x+", "+-tn.y+')"></rect>\n </mask>\n </defs>\n <rect width="'+so+'" height="'+bo+'" fill="white" mask="url(#mask)"></rect>\n </svg>';return"url('data:image/svg+xml;charset=utf8,"+encodeURIComponent(Pn)+"')"},Lo=new Set(["rResCanvas","wWrap"]),Ao=(0,x.memo)(he=>{var W;let{tree:Q,multiple:ge,isDraggingItem:Me}=he;const Pe=Q.type!=="rResCanvas"?sdkStore.locUpHotCanvasKey(Q.key):null;if(Q.type===te.x.WCode||!Pe||!((W=sdkStore.getHotItem(Pe))!=null&&W.hotAttr.isClipContent))return null;const Oe=sdkStore.getHotAABB(Q.key),Ke=sdkStore.getHotAABB(Pe),ot=Ke[2]-Ke[0],rt=Ke[3]-Ke[1];if((0,Ct.Pn)(Ke,Oe))return null;const lt=(Me?ge:!0)&&(0,Ct.cj)(Oe,Ke),wt=sdkStore.getHotItem(Q.key);if(!wt)return null;const so=sdkStore.getHotItem(wt.sup);if(!so||!Lo.has(so.hotAttr.type))return null;const{x:bo,y:Ro,r:tn,w:Pn,h:un}=sdkStore.getHotBound(wt.sup),Xn={width:Pn,height:un,transform:"translate("+(bo-Pn*.5)+"px,"+(Ro-un*.5)+"px) rotate("+tn+"deg)",transformOrigin:"center center"},ws=new wo.c((0,ln.v)(ln.K.snapshot),sdkStore);ws.buildWidgetTree({folderKey:Q.key});const zs=ws.getNode(Q.key);return(0,y.jsx)(xt,{itemKey:Q.key,maskImage:lt?Io({itemKey:Q.key,canvasKey:Pe,canvasW:ot,canvasH:rt}):"",className:"oob-indicator",style:Xn,children:(0,y.jsx)("div",{className:"oob-wrap",style:{opacity:.5},children:zs.render()})})}),xt=fe.Ay.div.withConfig({displayName:"OOBIndicator__StyledOOBIndicator",componentId:"sc-1lomxp0-0"})(["position:absolute;will-change:transform;.oob-wrap{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;","}"],he=>he.maskImage&&'\n .widget[data-cid="'+he.itemKey+'"] {\n mask-image: '+he.maskImage+";\n\n * {\n pointer-events: none !important;\n }\n }"),Ut=he=>{let{scale:W,selectedTrees:Q,isDraggingItem:ge}=he;const Me=(0,o.d4)(g.PL),Pe=(0,x.useMemo)(()=>{if(!Me)return"";const Oe=(0,de.Ep)(Me.device),Ke=(0,de.Qx)();return u()(Oe,Ke)},[Me]),Ie=Q.length>1;return(0,y.jsx)(Wo,{className:Pe,scale:W,children:Q.map(Oe=>(0,y.jsx)(Ao,{tree:Oe,multiple:Ie,isDraggingItem:ge},Oe.key))})},Wo=fe.Ay.div.withConfig({displayName:"OOBIndicator__StyledOOBIndicatorWrapper",componentId:"sc-1lomxp0-1"})(["position:absolute;transform:scale(",");"," ",""],he=>he.scale/100,se.H0,se.PE);var qo=e(29673);const sn=fe.Ay.div.withConfig({displayName:"styles__StyledSelectionBorder",componentId:"sc-1d0utss-0"})(["position:absolute;width:100%;height:100%;z-index:1;pointer-events:none;&.shield-corner-events{.resizable,.square,.action{pointer-events:none !important;}}.items-total-border,.item-hover-border,.item-echo-layer,.item-select-border{position:absolute;transform-origin:0 0;&.is-screen{top:0;left:0;width:100%;height:100%;}&.is-locked{border-color:#7d8694;}}.items-total-border{border:1px solid ",";}.item-hover-border{border:2px solid ",";}.item-echo-layer{border:1px solid ",";background-color:rgba(41,141,248,0.3);}.item-select-border{position:absolute;border:1px solid ",";&.is-tear{border:0;}&.is-dy-widget:not(.is-locked){border:1px solid ",";.preview .svg-icon .main{fill:",";}}&.is-editable-widget:not(.is-locked){border:1px solid ",";}&.is-master:not(.is-locked){border:1px solid #7146FE;.preview .svg-icon .main{fill:",";}}&.is-shadow-key:not(.is-locked){border:1px solid #7146FE;}&.is-screen{.resizable{position:absolute;width:14px;height:14px;&.can-resizer-x{cursor:e-resize;pointer-events:auto;}&.can-resizer-y{cursor:s-resize;pointer-events:auto;}&.can-resizer-t{cursor:n-resize;pointer-events:auto;}&.can-resizer-l{cursor:w-resize;pointer-events:auto;}&.lt{cursor:nw-resize;pointer-events:auto;}&.lb{cursor:sw-resize;pointer-events:auto;}&.rt{cursor:ne-resize;pointer-events:auto;}&.rb{cursor:se-resize;pointer-events:auto;}&.r{top:50%;right:-7px;margin-top:-7px;}&.b{bottom:-7px;left:50%;margin-left:-7px;}&.l{top:50%;left:-7px;margin-top:-7px;}&.t{top:-7px;left:50%;margin-left:-7px;}&.lt{top:-7px;left:-7px;}&.lb{bottom:-7px;left:-7px;}&.rt{top:-7px;right:-7px;}&.rb{bottom:-7px;right:-7px;}}.square{position:absolute;width:7px;height:7px;background:white;border:1px solid ",";border-radius:50%;&.lt{top:-3px;left:-3px;}&.lb{bottom:-3px;left:-3px;}&.rt{top:-3px;right:-3px;}&.rb{bottom:-3px;right:-3px;}}}&.is-edit-mind,&.is-edit-code{border:1px solid ",";}span{position:absolute;margin-top:-3px;margin-left:-3px;width:6px;height:6px;background-color:#7d8694;border:1px solid #fff;border-radius:50%;&:nth-child(1){top:0;left:0;}&:nth-child(2){top:100%;left:0;}&:nth-child(3){top:100%;left:100%;}}.circle-lock{width:18px;height:18px;position:absolute;left:100%;margin-top:-9px;margin-left:-9px;pointer-events:auto;cursor:pointer;circle{fill:#7D8694;}path{fill:#ffffff;}}.preview{display:flex;position:absolute;bottom:calc(100% + 8px);right:0;z-index:101;cursor:pointer;pointer-events:auto;border-radius:4px;transform:scale(0.8);transform-origin:bottom right;transition:transform 0.2s ease-out;color:#fff;div{transform-origin:bottom right;}.svg-icon{width:20px;height:20px;border-radius:4px;}&:hover{transform:scale(1);}}.action.edit-graph-action{width:44px;height:42px;background:",";border:1px solid ",";border-radius:8px;box-shadow:0px 4px 10px 0px #0000001A;justify-content:center;display:flex;align-items:center;position:absolute;bottom:calc(100% + 40px);right:50%;margin-right:-22px;z-index:101;cursor:pointer;pointer-events:auto;color:",";.svg-icon{border-radius:6px;&:hover{background:",";}}}.action.canvas,.action.editChartAction,.action.edit-graph-action,.action.code{svg.icon{.main{fill:",";}}}}.echo-line,.hover-line,.is-line-select{position:absolute;overflow:visible;path{stroke-width:2;stroke:#1e98ea;}&.is-locked{path{stroke:#7d8694;}}}.echo-line{path{stroke:",";}}.is-line-select{path{stroke:",";stroke-width:1;}}"],he=>he.theme.color_proto,he=>he.theme.color_proto,he=>he.theme.color_proto,he=>he.theme.color_proto,he=>he.theme.color_comments,he=>he.theme.color_comments,he=>he.theme.color_comments,he=>he.theme.color_master,he=>he.theme.color_proto,he=>he.theme.color_grid,he=>he.theme.color_bg_white,he=>he.theme.color_btn_secondary_hover,he=>he.theme.color_text_L1,he=>he.theme.color_btn_secondary_hover,he=>he.theme.color_btn_primary_normal,he=>he.theme.color_proto,he=>he.theme.color_proto),Kn=he=>({filterSelectedTree:he.filter(qo.Kt)});class ds extends x.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{filterSelectedTree:[],showHoverBorder:!1}),(0,r.A)(this,"selectedElements",[]),(0,r.A)(this,"handleRenderSelections",(W,Q)=>{const{scale:ge,dashedBorder:Me,editingEditableWidgetCid:Pe,rootProject:Ie,editingBasketKey:Oe,editingBasketRefPage:Ke,isCommunityPreview:ot,isVersionPreview:rt,onlyView:lt,vectorEditor:wt,editMindKey:so,editingAIComponentKey:bo,floatBarAIComponentKey:Ro,requestLoadingAIComponentKey:tn,isSelectItemsInMuban:Pn,dispatch:un}=this.props;if(wt&&W.widget.type===te.x.WVector)return null;const Xn=this.props.selectedTrees.length<10,ws=ge/100;switch(W.widget.type){case te.x.WElbow:return null;case te.x.WLine:case te.x.WArrow:return(0,y.jsx)(Ne,{isLineSelect:!0,tree:W,ratio:ws},W.key);default:return(0,y.jsx)(st,{dispatch:un,editingEditableWidgetCid:Pe,dashedBorder:Me,editingBasketKey:Oe,editingBasketRefPage:Ke,isMultiSelect:Q,tree:W,editingAIComponentKey:bo,isShowAIComponentPreview:W.key!==bo&&W.key!==Ro&&W.key!==tn,rootProject:Ie,isCommunityPreview:ot,isVersionPreview:rt,onlyView:lt,editMindKey:so,ratio:ws,needWillChange:Xn,isSelectItemsInMuban:Pn},W.key)}})}static getDerivedStateFromProps(W,Q){var ge,Me,Pe,Ie;let{prevProps:Oe}=Q,Ke=null;if(W.isHide)return Ke;if((W==null||(ge=W.hoverTree)==null?void 0:ge.key)!==(Oe==null||(Me=Oe.hoverTree)==null?void 0:Me.key)||!Oe){const{selectedTrees:ot,hoverTree:rt}=W;Ke={showHoverBorder:rt&&ot.every(lt=>lt.cid!==rt.cid)}}return((W==null||(Pe=W.selectedTrees)==null?void 0:Pe.length)!==(Oe==null||(Ie=Oe.selectedTrees)==null?void 0:Ie.length)||!Oe)&&(Ke={...Ke,...Kn(W.selectedTrees)}),Ke}render(){var W;const{isHide:Q,scale:ge,hoverTree:Me,selectedTrees:Pe,isQuickCreateWidget:Ie,onlyView:Oe,isDraggingItem:Ke}=this.props;if(Q)return null;const{filterSelectedTree:ot,showHoverBorder:rt}=this.state,lt=ot.length>1,wt=ge/100;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(sn,{className:u()("selection-border",{"shield-corner-events":Ie}),children:[lt&&(0,y.jsx)(yt,{trees:ot,ratio:wt,isResizing:(W=MB)==null||(W=W.f)==null?void 0:W.isResizing}),rt&&(0,y.jsx)(Rt,{tree:Me,scale:ge,onlyView:Oe}),Pe.map(so=>this.handleRenderSelections(so,lt))]}),(0,y.jsx)(Ut,{scale:ge,selectedTrees:Pe,isDraggingItem:Ke})]})}}const _s=(0,m.Mz)([H,g.X_,p.$c,ae.x$,K.c,O,p.Pm,g.wq,g.PL,p.jI,p.pH,p.YL,p.bt,p.jx,p.lY,q.WH,z.LS,b.UV,k.Bq,k.L2,k.ul,g.pO,Ce.j],(he,W,Q,ge,Me,Pe,Ie,Oe,Ke,ot,rt,lt,wt,so,bo,Ro,tn,Pn,un,Xn,ws,zs,fn)=>{if(he)return{isHide:!0};let Ds=Q;const gi=Me&&Me.type===te.x.WRichText&&Me.richTextV1.sizeType===1,hi=!!Oe,Ni=so===N.qi.OnlyView;return tn.bindingKey!==""&&(Ds=Pn.getNode(tn.bindingKey)),{isHide:!1,scale:W,hoverTree:Ds,selectedTrees:ge,editingEditableWidgetCid:Ie,dashedBorder:gi,rootScreen:Pe,isQuickCreateWidget:hi,rootProject:Ke,editingBasketKey:ot,isCommunityPreview:rt,isVersionPreview:lt,editingBasketRefPage:wt,onlyView:Ni,vectorEditor:bo,editMindKey:Ro,fakeBindingInfo:tn,editingAIComponentKey:un,floatBarAIComponentKey:Xn,requestLoadingAIComponentKey:ws,isDraggingItem:zs,isSelectItemsInMuban:fn}}),Ls=(0,o.Ng)(he=>_s(he))(ds);var gs=e(61724),ns=e(4098),Wn=e(48358),Do=e(2079),Go=e(72300);class an extends x.Component{constructor(){super(...arguments),(0,r.A)(this,"offsetX",0),(0,r.A)(this,"offsetY",0),(0,r.A)(this,"controllerOriginalPosition",null),(0,r.A)(this,"movingControllerIndex",null),(0,r.A)(this,"state",{points:[]}),(0,r.A)(this,"getControllerPosition",W=>{const{x:Q,y:ge,w:Me,h:Pe}=this.props.item,{points:Ie}=this.state,Oe=Q-Me/2,Ke=ge-Pe/2;return(0,be.NG)(Ie)?[Oe+Me*Math.floor(Ie[W][0]),Ke+Pe*Math.floor(Ie[W][1])]:[Oe+Me*Ie[W][0],Ke+Pe*Ie[W][1]]}),(0,r.A)(this,"adjustLineByAngle",(W,Q)=>{const ge=(0,be._H)(Q[0]-W[0],Q[1]-W[1]),Me=45*Math.round(ge/45)%360,Pe=(0,be.R3)(Q[0]-W[0],Q[1]-W[1])*Math.cos((0,be.ql)(ge-Me)),Ie=[Pe*Math.cos((0,be.ql)(Me)),Pe*Math.sin((0,be.ql)(Me))];return[W[0]+Ie[0],W[1]+Ie[1]]}),(0,r.A)(this,"adjustLineByAxis",(W,Q)=>{const Me=[...Q];return Math.abs(Q[0]-W[0])<=6?Me[0]=W[0]:Math.abs(Q[1]-W[1])<=6&&(Me[1]=W[1]),Me}),(0,r.A)(this,"getWidgetPositionAndPoints",(W,Q)=>{const ge=this.controllerOriginalPosition[1-this.movingControllerIndex],Me=Q?this.adjustLineByAngle(ge,W):this.adjustLineByAxis(ge,W),Pe=[];return Pe[this.movingControllerIndex]=Me,Pe[1-this.movingControllerIndex]=ge,(0,be.ne)(...Pe)}),(0,r.A)(this,"handleControllerDown",W=>{const{tree:Q,offsetX:ge=0,offsetY:Me=0,isDragModeShow:Pe,isAdsorbentReferenceLine:Ie,ratio:Oe}=this.props;W.stopPropagation(),this.before=(0,Le.Oj)(Q.key),this.ro=this.before.transform.decompose().ro;const{x:Ke,y:ot,w:rt,h:lt}=sdkStore.getRelocateLocalBound(Q.key,sdkStore.locUpHotCanvasKey(Q.key)||sdkStore.locUpRBPageKey(Q.key));this.left=Ke-rt/2,this.top=ot-lt/2,MB.f.isResizing=!0,MB.action("reducer:flag:set:is-resizing-item",{isResizingItem:!0}),this.offsetX=ge,this.offsetY=Me,this.movingControllerIndex=Number(W.target.dataset.pointindex),this.controllerOriginalPosition=[],this.controllerOriginalPosition[this.movingControllerIndex]=this.getControllerPosition(this.movingControllerIndex),this.controllerOriginalPosition[1-this.movingControllerIndex]=this.getControllerPosition(1-this.movingControllerIndex),this.movingControllerOriginPositionOnScreen=[W.clientX,W.clientY],(Pe||Ie)&&(this.alignUtil=(0,Wn.ay)({movableItems:[Q],createSnapper:Pe?Do.WY:Wn.xb,viewport:{scale:Oe}})),sdkStore.combineMergeMark("line-resize-drag"),document.addEventListener("mousemove",this.handleControllerMove),document.addEventListener("mouseup",this.handleControllerUp)}),(0,r.A)(this,"getControllerMoveVector",(W,Q)=>{const{ratio:ge,tree:Me}=this.props,Pe=(0,Le.Oj)(Me.key).transform.decompose().ro*180/Math.PI,Ie=[(W-this.movingControllerOriginPositionOnScreen[0])/ge,(Q-this.movingControllerOriginPositionOnScreen[1])/ge];return(0,be.gA)(Ie,Pe)}),(0,r.A)(this,"handleControllerMove",W=>{const{tree:Q,isDragModeShow:ge,isAdsorbentReferenceLine:Me,dispatch:Pe}=this.props,Ie=this.getControllerMoveVector(W.clientX,W.clientY),Oe=[this.controllerOriginalPosition[this.movingControllerIndex][0]+Ie[0],this.controllerOriginalPosition[this.movingControllerIndex][1]+Ie[1]],Ke=W.shiftKey;let ot,rt,lt,wt,so;if({top:ot,left:rt,width:lt,height:wt,line:so}=this.getWidgetPositionAndPoints(Oe,Ke),ge||Me){const Pn={top:ot,left:rt,width:lt,height:wt},un=this.getDirection(lt,wt,so,this.movingControllerIndex),Xn=this.alignUtil({_rect:Pn,resizing:(0,Go.t)(un)});let ws,zs,fn;({top:ot,left:rt,width:lt,height:wt,alignment:ws,distributed:zs,sameSize:fn}=Xn),MB.action("set:alignment",{alignment:ws}),MB.action("set:sameSize",{sameSize:fn}),MB.action("set:distributed",{distributed:zs})}const bo=Q.widget,Ro=bo.name===te.x.WArrow?{arrow:{...bo.arrow,arrowPointFrom:so.linePointFrom,arrowPointTo:so.linePointTo}}:{line:so},tn=[{key:Q.cid,hotAttr:{...Ro,x:rt+lt*.5,y:ot+wt*.5,w:lt,h:wt}}];Pe({type:"entry:widget:change",payload:{flatChgList:tn}})}),(0,r.A)(this,"getDirection",(W,Q,ge,Me)=>{if(isNaN(Me))return"";let Pe;const{linePointFrom:Ie,linePointTo:Oe}=ge,Ke=[Ie.x,Ie.y],ot=[Oe.x,Oe.y],rt=(0,be.W8)(W,Q,[Ke,ot]);return rt>=0&&rt<22.5||rt>=360-22.5&&rt<360?Pe=["l","r"]:rt>=45-22.5&&rt<45+22.5?Pe=["tl","br"]:rt>=90-22.5&&rt<90+22.5?Pe=["t","b"]:rt>=135-22.5&&rt<135+22.5?Pe=["tr","bl"]:rt>=180-22.5&&rt<180+22.5?Pe=["r","l"]:rt>=225-22.5&&rt<225+22.5?Pe=["br","tl"]:rt>=270-22.5&&rt<270+22.5?Pe=["b","t"]:rt>=315-22.5&&rt<315+22.5?Pe=["bl","tr"]:Pe=["l","r"],Pe[Me]}),(0,r.A)(this,"handleControllerUp",()=>{const{isDragModeShow:W,isAdsorbentReferenceLine:Q}=this.props;document.removeEventListener("mousemove",this.handleControllerMove),document.removeEventListener("mouseup",this.handleControllerUp),MB.f.isResizing=!1,MB.action("reducer:flag:set:is-resizing-item",{isResizingItem:!1}),(W||Q)&&(MB.action("set:alignment",{alignment:{}}),MB.action("set:sameSize",{sameSize:{}}),MB.action("set:distributed",{distributed:{}})),sdkStore.combineMerge("line-resize-drag")}),(0,r.A)(this,"getControllerCursor",(W,Q,ge)=>{let[Me,Pe]=ge;const Ie=(0,be.W8)(W,Q,[Me,Pe]);return Ie>=0&&Ie<22.5||Ie>=360-22.5&&Ie<360?["w-resize","e-resize"]:Ie>=45-22.5&&Ie<45+22.5?["nw-resize","se-resize"]:Ie>=90-22.5&&Ie<90+22.5?["n-resize","s-resize"]:Ie>=135-22.5&&Ie<135+22.5?["ne-resize","sw-resize"]:Ie>=180-22.5&&Ie<180+22.5?["e-resize","w-resize"]:Ie>=225-22.5&&Ie<225+22.5?["se-resize","nw-resize"]:Ie>=270-22.5&&Ie<270+22.5?["s-resize","n-resize"]:Ie>=315-22.5&&Ie<315+22.5?["sw-resize","ne-resize"]:["default","default"]}),(0,r.A)(this,"getResizerWrapperStyle",W=>{let{top:Q,left:ge,width:Me,height:Pe,ratio:Ie,transform:Oe}=W;const{a:Ke,b:ot,c:rt,d:lt}=Oe;return{position:"absolute",pointerEvents:"none",top:Math.round(Q*Ie)+"px",left:Math.round(ge*Ie)+"px",transform:"matrix("+Ke+","+ot+","+rt+","+lt+",0,0)"}}),(0,r.A)(this,"getControllerStyle",(W,Q,ge,Me,Pe)=>{const Ie={display:"block",position:"absolute",width:"7px",height:"7px",border:"1px solid #298df8",pointerEvents:"auto",background:"#fff",borderRadius:"50%"},Oe={top:Math.round(W[Pe][1]*ge*Me-3)+"px",left:Math.round(W[Pe][0]*Q*Me-3)+"px"},Ke=this.getControllerCursor(Q,ge,W);return{...Ie,...Oe,cursor:Ke[Pe]}})}static getDerivedStateFromProps(W){const{start:Q,end:ge}=W;return{points:[Q,ge]}}render(){const{tree:W,ratio:Q}=this.props,{transform:ge,rect:{x:Me,y:Pe,w:Ie,h:Oe}}=(0,Le.Oj)(W.key),{x:Ke,y:ot}=ge.clone().apply({x:Me,y:Pe}),{points:rt}=this.state;return(0,y.jsxs)("div",{style:this.getResizerWrapperStyle({top:ot,left:Ke,width:Ie,height:Oe,ratio:Q,transform:ge}),children:[(0,y.jsx)("i",{style:this.getControllerStyle(rt,Ie,Oe,Q,0),"data-pointindex":"0",onMouseDown:this.handleControllerDown}),(0,y.jsx)("i",{style:this.getControllerStyle(rt,Ie,Oe,Q,1),"data-pointindex":"1",onMouseDown:this.handleControllerDown})]})}}var Mo=e(42708),Cn=e(87383),Tn=e(852),cn=e(54599),bs=e(5575),Vn=e(87382),ti=e(86310),oi=e(24207);const Gt=(0,y.jsx)("svg",{width:"14",height:"14",xmlns:"http://www.w3.org/2000/svg",children:(0,y.jsx)("path",{d:"M10.536 3.464A5 5 0 1 0 11 10l1.424 1.425a7 7 0 1 1-.475-9.374L13.659.34A.2.2 0 0 1 14 .483V5.5a.5.5 0 0 1-.5.5H8.483a.2.2 0 0 1-.142-.341l2.195-2.195z",fill:"#eb5648",fillRule:"nonzero"})});class Rs extends x.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"setElementRef",W=>this.$element=W),(0,r.A)(this,"onRotate",W=>{if(W.button!==0)return;const{clientX:Q,clientY:ge}=W,{tree:Me,dispatch:Pe}=this.props,Ie=Me.cid,Oe=(0,Tt.s_)(Ie),Ke=this.$element.getBoundingClientRect(),ot=re.Z.xy(Ke.left+Ke.width/2,Ke.top+Ke.height/2),rt=re.Z.xy(Q-ot.x,ge-ot.y),lt=Me.widget.ro;sdkStore.combineMergeMark("resize-rotate-drag");const wt=bo=>{bo.stopImmediatePropagation();const{clientX:Ro,clientY:tn}=bo,Pn=re.Z.xy(Ro-ot.x,tn-ot.y),un=(0,bs._H)(rt,Pn),Xn=(0,bs.C4)(lt+un,0),ws=[];(0,Cn.bp)(ws,Me.cid,Xn,!1),ws.length&&Pe({type:"entry:widget:change",payload:{flatChgList:ws}})},so=()=>{document.removeEventListener("mousemove",wt),document.removeEventListener("mouseup",so);const{currPageKey:bo}=this.props,Ro=[],tn=(0,Tt.G9)(bo,[Ie]),Pn=(0,Tt.wr)(),un=(0,Tt.Rv)(Ro,Ie,Oe,tn,Pn);Pe({type:"entry:widget:change",payload:{flatChgList:Ro,shouldBreakLayerUICache:un}}),sdkStore.combineMerge("resize-rotate-drag")};document.addEventListener("mousemove",wt),document.addEventListener("mouseup",so)}),(0,r.A)(this,"onResize",W=>{const{tree:Q,isDragModeShow:ge,isAdsorbentReferenceLine:Me,ratio:Pe,isForbiddenSingleResize:Ie,dispatch:Oe}=this.props;if(Ie){Oe({type:ti.y.entryKey["font:miss:modal:open"]});return}const{clientX:Ke,clientY:ot}=W,{direction:rt}=W.currentTarget.dataset,lt=ge||Me;MB.f.isResizing=!0,MB.action("reducer:flag:set:is-resizing-item",{isResizingItem:!0});const{isLockAspect:wt}=Q.widget,so=(0,bs.kO)(Q,W.shiftKey,rt),{w:bo,h:Ro}=(0,Le.NO)(Q.key),tn=(0,oi.K)(bo,Ro);lt&&(this.alignUtil=(0,Wn.ay)({movableItems:[Q],createSnapper:ge?Do.WY:Wn.xb,viewport:{scale:Pe}})),sdkStore.combineMergeMark("resize-drag");const Pn=Q.cid,un=(0,Cn.Ie)(Pn),Xn=(0,Tt.s_)(Pn);let ws=so,zs=Ke,fn=ot;const Ds=(fa,Ka)=>{const{hb:da}=un[Pn];Ka==="mouseMove"&&(zs=fa.clientX,fn=fa.clientY);const aa=(0,dt.e)({x:(zs-Ke)/Pe,y:(fn-ot)/Pe},(0,Ot.EQ)(-da.r));let ka=(0,Tn.AL)(da,aa.x,aa.y,rt,ws);if(da.r===0){const Di=ka.w*.5,pa=ka.h*.5,Ra={left:Math.round(ka.x-Di),top:Math.round(ka.y-pa),right:Math.round(ka.x+Di),bottom:Math.round(ka.y+pa),width:Math.round(ka.w),height:Math.round(ka.h)};if(lt){const Ar=this.alignUtil({_rect:Ra,resizing:(0,Go.t)(rt),altKey:!1,originAspectRatio:ws||void 0});if(Ar){const{top:ja,left:wr,bottom:Rr,right:sr,alignment:kc,distributed:xl,sameSize:Vr}=Ar;MB.action("set:alignment",{alignment:kc}),MB.action("set:sameSize",{sameSize:Vr}),MB.action("set:distributed",{distributed:xl}),ka={x:(wr+sr)*.5,y:(ja+Rr)*.5,w:sr-wr,h:Rr-ja}}}}const Vi=[];(0,Cn.$O)(Vi,Pn,ka,un,ws,rt),Oe({type:"entry:widget:change",payload:{flatChgList:Vi}})},gi=fa=>{Ds(fa,"mouseMove")},hi=fa=>{fa.repeat||(fa.shiftKey?ws=tn:ws=so,Ds(fa,"shiftKey"))},Ni=fa=>{fa.key==="Shift"&&(ws=wt?so:!1,Ds(fa,"shiftKey"))},ba=()=>{const{isDragModeShow:fa,isAdsorbentReferenceLine:Ka,editingPanelCid:da,editingPanelRefPage:aa,currPageKey:ka}=this.props;MB.f.isResizing=!1,MB.action("reducer:flag:set:is-resizing-item",{isResizingItem:!1}),(fa||Ka)&&(MB.action("set:alignment",{alignment:{}}),MB.action("set:sameSize",{sameSize:{}}),MB.action("set:distributed",{distributed:{}}));const Vi=[],Di=(0,Tt.G9)(ka,[Pn]),pa=(0,Tt.wr)(),Ra=(0,Tt.Rv)(Vi,Pn,Xn,Di,pa);Oe({type:"entry:widget:change",payload:{flatChgList:Vi,shouldBreakLayerUICache:Ra}}),(da||aa)&&(Oe({type:"entry:finish:resize:canvas:within:basket"}),Oe({type:"entry:layout:basket-canvas"})),document.removeEventListener("mousemove",gi),document.removeEventListener("mouseup",ba),document.removeEventListener("keydown",hi),document.removeEventListener("keyup",Ni),sdkStore.combineMerge("resize-drag")};document.addEventListener("mousemove",gi),document.addEventListener("mouseup",ba),document.addEventListener("keydown",hi),document.addEventListener("keyup",Ni),(0,Mo.Yq)()}),(0,r.A)(this,"getZoomable",W=>cn.eT),(0,r.A)(this,"handleDoubleClick",W=>Q=>{const{isForbiddenSingleResize:ge,tree:Me,dispatch:Pe}=this.props,{type:Ie,richTextV1:Oe}=Me.widget,Ke=Ie===te.x.WRichText;if(!ge&&Ke){if(W==="e"||W==="w"){if(Oe.fontDirection==="vertical-lr"&&Oe.sizeType===0)return;if(Q.stopPropagation(),Oe.fontDirection==="vertical-lr"){if(Oe.sizeType===0)return;Pe({type:"entry:set:text:attr",payload:{value:2,attr:"sizeType"}})}else Pe({type:"entry:set:text:attr",payload:{value:0,attr:"sizeType"}})}else if(W==="n"||W==="s"){if(Oe.fontDirection==="horizontal-tb"&&Oe.sizeType===0)return;Q.stopPropagation(),Oe.fontDirection==="vertical-lr"?Pe({type:"entry:set:text:attr",payload:{value:0,attr:"sizeType"}}):Pe({type:"entry:set:text:attr",payload:{value:2,attr:"sizeType"}})}}})}render(){const{tree:W,ratio:Q,canRotate:ge,item:Me}=this.props,{x:Pe,y:Ie,r:Oe,w:Ke,h:ot}=sdkStore.getHotBound(W.key),rt={width:Ke*Q,height:ot*Q,transform:"translate("+(Pe-Ke*.5)*Q+"px,"+(Ie-ot*.5)*Q+"px) rotate("+Oe+"deg)",transformOrigin:"center center"},lt=W.widget,wt=lt.type===te.x.WBasket&<.basket==="bDanli",so=lt.type===te.x.WBasket&<.basket==="bMuban",bo=lt.type===te.x.WTable,tn=this.getZoomable(W.widget).split(",").map(Ds=>Ds.trim()).filter(Ds=>Ds),Pn=tn.filter(Ds=>cn.Y$[Ds]),{isHotCornerCriticalPoint:un,isNoHotZone:Xn,anchorHotZone:ws,lineHotZone:zs,lineTableZone:fn}=(0,bs.Pv)({w:Ke,h:ot,ratio:Q,isTable:bo});return(0,y.jsx)(Vn._,{className:u()({"is-locked":W.widget.isLock,"is-dy-widget":wt,"is-master":so}),style:rt,ref:this.setElementRef,anchorHotZone:ws,lineHotZone:zs,lineTableZone:fn,children:Xn?null:(0,y.jsxs)(y.Fragment,{children:[ge&&(0,y.jsx)("div",{className:"rotate",onMouseDown:this.onRotate,children:Gt}),tn.map(Ds=>{const gi=Oe+cn.ZA[Ds],hi=cn.PN.RESIZE_ARROW_NORMAL.replace("__absAngle__",""+gi);return(0,y.jsx)("div",{style:{cursor:hi},"data-direction":cn.oJ[Ds],className:u()(cn.oJ[Ds]+" resizable-handler",un&&"is-hotCorner-critical-point",bo&&"is-table"),onMouseDown:this.onResize,onDoubleClick:this.handleDoubleClick(Ds)},Ds)}),Pn.map(Ds=>(0,y.jsx)("div",{className:u()(cn.oJ[Ds]+" square")},Ds))]})})}}class Xs extends x.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{isLineAnchorAdding:!1,fixedFromIndex:null,fixedToIndex:null,direction:null,dbClickCount:0,isMove:!1,prevPoint:{x:0,y:0},dataset:{direction:void 0,from:void 0,to:void 0}}),(0,r.A)(this,"onClick",()=>{const{dbClickCount:W}=this.state;this.setState({dbClickCount:W+1}),setTimeout(()=>{const{dbClickCount:Q}=this.state;if(Q>1){const{elbowKey:ge,dispatch:Me}=this.props;Me({type:"entry:elbow:line-adjust",payload:{elbowKey:ge}})}this.setState({dbClickCount:0})},300)}),(0,r.A)(this,"onMouseDown",W=>{W.preventDefault(),W.stopPropagation();const{direction:Q,from:ge,to:Me}=W.target.dataset;if(["horizontal","vertical"].includes(Q))return this.setState({isMove:!0,dataset:{direction:Q,from:ge,to:Me}}),sdkStore.combineMergeMark("elbow-rect-drag"),document.addEventListener("mousemove",this.onMouseMove,!1),document.addEventListener("mouseup",this.onMouseUp,!1),!1}),(0,r.A)(this,"onMouseMove",W=>{W.preventDefault(),W.stopPropagation();const{elbowKey:Q}=this.props,{direction:ge,from:Me,to:Pe}=this.state.dataset,{fixedFromIndex:Ie,fixedToIndex:Oe}=this.state;let Ke,ot;if(Ie!==null?(Ke=Ie,ot=Oe):(Ke=parseInt(Me,10),ot=parseInt(Pe,10)),!["horizontal","vertical"].includes(ge))return;const{elbowKey:rt,rectList:lt,dispatch:wt}=this.props,{isMove:so,prevPoint:bo,isLineAnchorAdding:Ro}=this.state;if(so&&!(ge==="vertical"&&W.pageY===bo.y)&&!(ge==="horizontal"&&W.pageX===bo.x))return this.setState({prevPoint:{x:W.pageX,y:W.pageY}}),lt.length===1||Ke===0||ot===lt.length?(Ro||this.handleAnchorAdd(Ke,ot,rt,lt,ge,W,wt),!1):(wt({type:"entry:elbow:line-segment-move",payload:{event:W,fromIndex:Ke,toIndex:ot,direction:ge,elbowKey:Q}}),!1)}),(0,r.A)(this,"onMouseUp",()=>{const{elbowKey:W,dispatch:Q}=this.props;this.setState({isMove:!1,prevPoint:{x:0,y:0},dataset:{},isLineAnchorAdding:!1,fixedFromIndex:null,fixedToIndex:null}),document.removeEventListener("mousemove",this.onMouseMove,!1),document.removeEventListener("mouseup",this.onMouseUp,!1),sdkStore.combineMerge("elbow-rect-drag"),Q({type:"entry:elbow:line-optimize",payload:{elbowKey:W}})}),(0,r.A)(this,"handleAnchorAdd",jo()((W,Q,ge,Me,Pe,Ie,Oe)=>{const Ke=W===0?W:Q,ot=W===0?W+2:W,rt=W===0?Q+2:Q;this.setState({isLineAnchorAdding:!0,fixedFromIndex:ot,fixedToIndex:rt}),Oe({type:"entry:elbow:line-anchor-add",payload:{length:Me.length,index:Ke,direction:Pe,event:Ie,elbowKey:ge}})},300,{leading:!0,trailing:!1}))}componentWillUnmount(){this.setState=()=>!1}render(){const{rectList:W,isLineDragging:Q,rectAnchorDraggingIndex:ge,hasLineComment:Me}=this.props,Pe=Me;return(0,y.jsx)(go,{children:W&&W.map((Ie,Oe)=>(Oe===0||Oe===W.length-1)&&Ie.length<=20?null:Pe&&Ie.isTextCommentIndex&&typeof Ie.xList=="object"?(0,y.jsx)("span",{children:[0,1].map(Ke=>(0,y.jsx)("span",{className:u()({"line-rect-anchor vertical":Ie.direction==="vertical","line-rect-anchor horizontal":Ie.direction==="horizontal"}),onMouseDown:this.onMouseDown,onClick:this.onClick,"data-direction":Ie.direction,"data-from":Ie.from,"data-to":Ie.to,style:{opacity:Q&&ge!==Oe?0:1,width:Ie.direction==="horizontal"?"8px":"14px",height:Ie.direction==="horizontal"?"14px":"8px",left:Ie.xList[Ke],top:Ie.yList[Ke]}},""+Ke))},Ie.x+"&"+Ie.y+"&"+Oe):(0,y.jsx)("span",{className:u()({"line-rect-anchor vertical":Ie.direction==="vertical","line-rect-anchor horizontal":Ie.direction==="horizontal"}),onMouseDown:this.onMouseDown,onClick:this.onClick,"data-direction":Ie.direction,"data-from":Ie.from,"data-to":Ie.to,style:{opacity:Q&&ge!==Oe?0:1,width:Ie.direction==="horizontal"?"8px":"20px",height:Ie.direction==="horizontal"?"20px":"8px",left:Ie.x,top:Ie.y}},Ie.x+"&"+Ie.y+"&"+Oe))})}}var Ti=e(70351);class di extends x.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"getComputedInfo",()=>{const{item:{key:W},viewport:Q}=this.props,ge=sdkStore.getHotItem(W);if(!ge)return null;const{elbow:Me,textV0:Pe}=ge.hotAttr,Ie=bt(W,Me,Q);return{rectList:qt(Ie),hasLineComment:!!(Pe&&Pe.text)}})}render(){const{editingCid:W,item:Q,item:{key:ge},isDraggingElbowText:Me,viewport:Pe,viewportRect:Ie,dispatch:Oe}=this.props,{rectList:Ke,hasLineComment:ot}=this.getComputedInfo(),rt=W===ge,lt=Q.elbow.elbowType,wt=(lt==="rounded"||lt==="sharp")&&!rt&&!Me;return(0,y.jsxs)($t,{children:[(0,y.jsx)(nt,{item:Q}),wt&&(0,y.jsx)(Xs,{elbowKey:ge,rectList:Ke,dispatch:Oe,isLineDragging:!1,hasLineComment:ot,rectAnchorDraggingIndex:void 0})]})}}const vs=(0,m.Mz)([g.ER,g.X_,g.$S,g.lh,Ti.CP],(he,W,Q,ge,Me)=>({viewport:{offset:he,scale:W/100},viewportRect:Q,editingCid:ge,isDraggingElbowText:Me})),ei=(0,o.Ng)(he=>vs(he))(di);class Si extends x.Component{render(){const{item:W}=this.props;switch(W.type){case te.x.WLine:case te.x.WArrow:{const{from:Q,to:ge}=(0,be.Ne)(W),Me=[Q.x,Q.y],Pe=[ge.x,ge.y];return(0,y.jsx)(an,{...this.props,start:Me,end:Pe})}case te.x.WElbow:return(0,y.jsx)(ei,{item:W});default:return(0,y.jsx)(Rs,{...this.props})}}}var Gs=e(25960);class Vs extends x.Component{constructor(W){super(W),(0,r.A)(this,"onResize",(Q,ge)=>{const{ratio:Me,isDragModeShow:Pe,isAdsorbentReferenceLine:Ie,dispatch:Oe,isForbiddenMultiResize:Ke}=this.props,{filterSelectedTree:ot,aabb:rt}=this.state,{clientX:lt,clientY:wt,shiftKey:so}=Q,{direction:bo}=Q.currentTarget.dataset;if(Ke){Oe({type:ti.y.entryKey["font:miss:modal:open"]});return}const Ro=ot.some(Di=>{let{widget:{isLockAspect:pa,type:Ra}}=Di;return pa||Ra===te.x.WImage||(0,Gs.If)(Ra)||/_(check|radio)$/.test(Ra)}),[tn,Pn,un,Xn]=rt,ws=(0,oi.K)(un-tn,Xn-Pn),zs=Ro||so?ws:void 0,fn=bo&&(Pe||Ie);MB.f.isResizing=!0,MB.action("reducer:flag:set:is-resizing-item",{isResizingItem:!0}),fn&&(this.alignUtil=(0,Wn.ay)({movableItems:ot,createSnapper:Pe?Do.WY:Wn.xb,viewport:{scale:Me}}));const Ds=[],gi={},hi=new Map;for(const{cid:Di,key:pa}of ot)Ds.push(Di||pa),(0,Cn.Ie)(Di||pa,gi),(0,Tt.s_)(Di||pa,hi);gi["@@START-MR"]={hb:(0,ns.T3)(sdkStore.getHotKeyListAABB(Ds)),lbR:0,wasoX:0,wasoY:0},sdkStore.combineMergeMark("multi-resize-drag");let Ni=zs,ba=lt,fa=wt;const Ka=(Di,pa)=>{const{hb:Ra}=gi["@@START-MR"];pa==="mouseMove"&&(ba=Di.clientX,fa=Di.clientY);const Ar={x:(ba-lt)/Me,y:(fa-wt)/Me};let ja=(0,Tn.AL)(Ra,Ar.x,Ar.y,bo,Ni);if(Object.values(gi).some(Rr=>{let{hb:sr}=Rr;return sr.r===0})){const Rr=ja.w*.5,sr=ja.h*.5,kc={left:Math.round(ja.x-Rr),top:Math.round(ja.y-sr),right:Math.round(ja.x+Rr),bottom:Math.round(ja.y+sr),width:Math.round(ja.w),height:Math.round(ja.h)};if(fn){const xl=this.alignUtil({_rect:kc,resizing:(0,Go.t)(bo),altKey:!1,originAspectRatio:Ni||void 0});if(xl){const{top:Vr,left:ll,bottom:Zr,right:wc,alignment:g0,distributed:e0,sameSize:f0}=xl;MB.action("set:alignment",{alignment:g0}),MB.action("set:sameSize",{sameSize:f0}),MB.action("set:distributed",{distributed:e0}),ja={x:(ll+wc)*.5,y:(Vr+Zr)*.5,w:wc-ll,h:Zr-Vr}}}}const wr=[];for(const Rr of Ds){const sr=(0,Cn.h1)("@@START-MR",Rr,ja,gi,ge);(0,Cn.$O)(wr,Rr,sr,gi,Ni,bo)}Oe({type:"entry:widget:change",payload:{flatChgList:wr}})},da=Di=>{Ka(Di,"mouseMove")},aa=Di=>{Di.repeat||(Di.shiftKey?Ni=ws:Ni=zs,Ka(Di,"shiftKey"))},ka=Di=>{Di.key==="Shift"&&(Ni=Ro?zs:void 0,Ka(Di,"shiftKey"))},Vi=()=>{const{isDragModeShow:Di,currPageKey:pa}=this.props;MB.f.isResizing=!1,MB.action("reducer:flag:set:is-resizing-item",{isResizingItem:!1}),Di&&(MB.action("set:alignment",{alignment:{}}),MB.action("set:sameSize",{sameSize:{}}),MB.action("set:distributed",{distributed:{}}));const Ra=[],Ar=(0,Tt.G9)(pa,Ds),ja=(0,Tt.wr)();let wr=!1;for(const Rr of Ds){const sr=(0,Tt.Rv)(Ra,Rr,hi,Ar,ja);wr=wr||sr!==null}Oe({type:"entry:widget:change",payload:{flatChgList:Ra,shouldBreakLayerUICache:wr}}),Oe({type:"entry:finish:resize:canvas:within:basket"}),Oe({type:"entry:layout:basket-canvas"}),Oe({type:"entry:select:smartly"}),document.removeEventListener("mousemove",da),document.removeEventListener("mouseup",Vi),document.removeEventListener("keydown",aa),document.removeEventListener("keyup",ka),sdkStore.combineMerge("multi-resize-drag")};document.addEventListener("mousemove",da),document.addEventListener("mouseup",Vi),document.addEventListener("keydown",aa),document.addEventListener("keyup",ka)}),this.state={filterSelectedTree:[],newSelection:[],aabb:[]}}static getDerivedStateFromProps(W,Q){var ge,Me;let{prevProps:Pe}=Q;if((W==null||(ge=W.selectedTrees)==null?void 0:ge.length)!==(Pe==null||(Me=Pe.selectedTrees)==null?void 0:Me.length)){var Ie;const Oe=W==null||(Ie=W.selectedTrees)==null?void 0:Ie.filter(ot=>ot.type!==te.x.WTear),Ke=Oe==null?void 0:Oe.map(ot=>ot.key);return{filterSelectedTree:Oe,newSelection:Ke,aabb:sdkStore.getHotKeyListAABB(Ke)}}return null}render(){const{ratio:W}=this.props,{filterSelectedTree:Q,newSelection:ge,aabb:Me}=this.state;if(Q.length===0)return null;const[Pe,Ie,Oe,Ke]=Me,ot=Oe-Pe,rt=Ke-Ie,lt={left:Pe*W,top:Ie*W,width:ot*W,height:rt*W},wt=cn.eT.split(",").map(un=>un.trim()).filter(un=>un),so=wt.filter(un=>cn.Y$[un]),{isHotCornerCriticalPoint:bo,isNoHotZone:Ro,anchorHotZone:tn,lineHotZone:Pn}=(0,bs.Pv)({w:ot,h:rt,ratio:W});return(0,y.jsx)(Vn._,{style:lt,anchorHotZone:tn,lineHotZone:Pn,children:Ro?null:(0,y.jsxs)(y.Fragment,{children:[wt.map(un=>{const Xn=cn.ZA[un],ws=cn.PN.RESIZE_ARROW_NORMAL.replace("__absAngle__",""+Xn);return(0,y.jsx)("div",{style:{cursor:ws},"data-direction":cn.oJ[un],className:u()(cn.oJ[un]+" resizable-handler",{isHotCornerCriticalPoint:bo}),onMouseDown:zs=>this.onResize(zs,un)},un)}),so.map(un=>(0,y.jsx)("div",{className:cn.oJ[un]+" square"},un))]})})}}(0,r.A)(Vs,"defaultProps",{offsetX:0,offsetY:0});class ps extends x.PureComponent{render(){const{tree:W,ratio:Q}=this.props,{transform:ge,rect:Me}=(0,Le.Oj)(W.key),{a:Pe,b:Ie,c:Oe,d:Ke}=ge,{x:ot,y:rt}=ge.clone().scale(Q,Q).apply({x:Me.x,y:Me.y}),{x:lt,y:wt}=re.Z.mul(re.Z.xy(Me.w,Me.h),Q),so=W.widget.name==="line",bo={left:ot,top:rt,width:lt,height:wt,transform:"matrix("+Pe+","+Ie+","+Oe+","+Ke+",0,0)"},Ro=Me.w,tn=so?1:Me.h,Pn=Number.isInteger(Ro)?Ro:Math.round(Ro),un=Number.isInteger(tn)?tn:Math.round(tn);return(0,y.jsx)(kn,{style:bo,children:(0,y.jsx)("div",{className:"meta-info",children:Pn+" \xD7 "+un})})}}const kn=fe.Ay.div.withConfig({displayName:"MetaInfo__StyledMetaInfo",componentId:"sc-1fu9r8p-0"})(["z-index:1;position:absolute;pointer-events:none;.meta-info{padding:2px 4px;color:#fff;background:#454647;top:calc(100% + 10px);left:50%;transform:translateX(-50%);border-radius:2px;white-space:nowrap;position:absolute;}"]),zn=fe.Ay.div.withConfig({displayName:"styles__StyledSelectionResizer",componentId:"sc-4cy30a-0"})(["position:absolute;z-index:2;.rect{border:none;.rotate path{fill:",";}.square{border-radius:50%;border-color:",";}}&.hide{display:none;}&.hide-h-side .rect{.t,.b{display:none;}}&.hide-v-side .rect{.l,.r{display:none;}}&.hide-corner .rect{.resizable-handler,.square{display:none;}}&.shield-corner-events{.resizable-handler,.square,.rotate{pointer-events:none;}}&.is-dy-widget{.rect{border:none;.rotate path{fill:",";}.square{border-radius:50%;border-color:",";}}}&.is-master{.rect{border:none;.rotate path{fill:#7146FE;}.square{border-radius:50%;border-color:#9f51c0;}}}"],he=>he.theme.color_proto,he=>he.theme.color_proto,he=>he.theme.color_comments,he=>he.theme.color_comments);var hs=e(70226);class Ss extends x.PureComponent{constructor(W){super(W),this.state={bound:(0,ns.T3)(sdkStore.getHotKeyListAABB((W==null?void 0:W.newSelection)||[]))}}render(){const{isHide:W,scale:Q,selectedTrees:ge,editingPanelCid:Me,editingPanelRefPage:Pe,canRotate:Ie,showWidgetMetaInfo:Oe,showSingleResizer:Ke,showMultipleResizer:ot,isQuickCreateWidget:rt,isDragModeShow:lt,isAdsorbentReferenceLine:wt,currPageKey:so,missFontHiKeySet:bo,dispatch:Ro}=this.props,{bound:{w:tn,h:Pn}}=this.state;if(W)return null;const un=Q/100,Xn=ge.length===1&&ge[0].widget,ws=ge.length===1&&ge[0];if(ws.type===te.x.RbPage)return null;const zs=Xn&&Xn.type===te.x.WLR,fn=Xn&&Xn.type===te.x.WRichText&&Xn.size_type===0,Ds=Xn&&Xn.type===te.x.WRichText&&Xn.size_type!==0,gi=Xn.type===te.x.WBasket&&Xn.basket==="bDanli",hi=Xn.type===te.x.WBasket&&Xn.basket==="bMuban",Ni=u()("selection-handler",!zs&&!fn&&{"hide-h-side":tn*un<20,"hide-v-side":Pn*un<20,"hide-corner":(tn*un<10||Pn*un<10)&&!Ds,"shield-corner-events":rt,"is-dy-widget":gi,"is-master":hi}),ba=Ke?(0,hs.f5)([Xn.cid],bo):!1,fa=ot?(0,hs.f5)(ge.map(Ka=>Ka.cid),bo):!1;return(0,y.jsxs)(zn,{className:Ni,children:[Ke&&(0,y.jsx)(Si,{item:Xn,tree:ws,ratio:un,isDragModeShow:lt,isAdsorbentReferenceLine:wt,editingPanelCid:Me,editingPanelRefPage:Pe,currPageKey:so,canRotate:Ie,isForbiddenSingleResize:ba,dispatch:Ro},Xn.cid),ot&&(0,y.jsx)(Vs,{selectedTrees:ge,isDragModeShow:lt,isAdsorbentReferenceLine:wt,ratio:un,currPageKey:so,dispatch:Ro,isForbiddenMultiResize:fa}),Oe&&(0,y.jsx)(ps,{tree:ws,ratio:un})]})}}(0,r.A)(Ss,"defaultProps",{isHide:!1});var fi=e(15400),ri=e(45411);const Li=(0,m.Mz)([ae.p$],he=>(0,ri.QH)(he)),ji=(0,m.Mz)([xe.$,g.X_,Li,p.jI,p.bt,ae.x$,b.RX,K.c,g.wq,A.PI,A.k3,g.pO,g.KW,g.lv,E.P2,p.Pm,gs.tS,g.Jv,p.jx,Ce.j,p.lY,fi.X.query.getIsShallowEditing,fi.X.query.getIsDeepEditing,k.Bq,ae.p$,g.eo,ti.y.query.getMissFontHiKeySet],(he,W,Q,ge,Me,Pe,Ie,Oe,Ke,ot,rt,lt,wt,so,bo,Ro,tn,Pn,un,Xn,ws,zs,fn,Ds,gi,hi,Ni)=>{const ba=Pe.filter(qo.Kt),fa=!!Ke,Ka=un===N.qi.OnlyView;if(lt||Oe||MB.f.editing||ba.length===0||wt||so||bo||Ro||tn||he.isAdjustingGap||Ka||Xn||zs||fn||Ds)return{isHide:!0};const da=ba.length===1&&ba.some(Vi=>{let{type:Di}=Vi;return Di===te.x.WTear||Di===te.x.WVector&&ws?!1:Di!==te.x.WMind}),aa=ba.length>1&&!ba.every(Vi=>Vi.type===te.x.WMind);return{scale:W,canRotate:Q,showSingleResizer:da,showMultipleResizer:aa,selectedTrees:ba,widgetTreeData:Ie,isQuickCreateWidget:fa,isDragModeShow:ot,isAdsorbentReferenceLine:rt,editingPanelCid:ge,showWidgetMetaInfo:da&&Pn,newSelection:gi,editingPanelRefPage:Me,currPageKey:hi,missFontHiKeySet:Ni}}),_t=(0,o.Ng)(he=>ji(he))(Ss);var Aa=e(98236),Ki=e.n(Aa),bi=e(14495),sa=e(98620),Zi=e(70877);const Fa=["tl","tr","bl","br"],to=(he,W)=>{switch(he){case"tl":return{operation:re.Z.xy(1,1),offset:re.Z.zero};case"tr":return{operation:re.Z.xy(-1,1),offset:re.Z.xy(W.w,0)};case"bl":return{operation:re.Z.xy(1,-1),offset:re.Z.xy(0,W.h)};case"br":return{operation:re.Z.xy(-1,-1),offset:re.Z.xy(W.w,W.h)};default:return{operation:re.Z.zero,offset:re.Z.zero}}},Qt=(he,W,Q)=>{const ge=re.Z.distance(W,he),Me=re.Z.distance(he,Q),Pe=re.Z.distance(W,Q);return Me>ge?Pe>Me?0:1:Pe>ge?Me>Pe?1:0:re.Z.distance(Q,he)/ge},Sn=(he,W,Q)=>he<=12/Q?12/Q:he>W?W:he,Vo=(he,W,Q)=>Q?he*W-4:he<=12?8:he*W-4,ho=he=>{const{widget:{name:W,image:Q}}=he;return!(W===te.x.WImage&&(Q==null?void 0:Q.imageClipType)===We.Mg.circular)};var Uo=e(86913),pn=e(13974);const ys=fe.Ay.div.withConfig({displayName:"styles__StyledSmartRadius",componentId:"sc-1q2zvgq-0"})(["position:absolute;width:100%;height:100%;pointer-events:none;z-index:9999;.smart-radius-wrapper{position:absolute;}.square{position:absolute;width:8px;height:8px;background:white;border:1px solid ",";border-radius:50%;pointer-events:auto;}.tl{left:",";top:",";}.tr{right:",";top:",";&.last{display:none;}}.bl{left:",";bottom:",";&.hide{display:none;}}.br{right:",";bottom:",";&.hide{display:none;}}"],he=>he.theme.color_proto,he=>he.resizerStyle.tl,he=>he.resizerStyle.tl,he=>he.resizerStyle.tr,he=>he.resizerStyle.tr,he=>he.resizerStyle.bl,he=>he.resizerStyle.bl,he=>he.resizerStyle.br,he=>he.resizerStyle.br);class Dn extends x.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"limits",new Map),(0,r.A)(this,"points",new Map),(0,r.A)(this,"state",{setAll:!0,isRadiusResizing:!1,isResizingRadiusDirection:"",prevProps:{borderRadius:this.props.borderRadius}}),(0,r.A)(this,"getPointsLimits",()=>{var W;const{tree:Q,scaleRatio:ge,isResizingRadius:Me,boundingPoints:Pe}=this.props,{isResizingRadiusDirection:Ie}=this.state,Oe=Q,Ke=(W=Oe.widget)==null?void 0:W.borderRadius,{transform:ot,rect:rt}=(0,Le.Oj)(Oe.key),lt=ot.clone(),wt=(0,Uo.jf)(Ke);Object.entries(Pe).forEach(so=>{let[bo,Ro]=so;const{operation:tn,offset:Pn}=to(bo,rt),un=Math.min(rt.w,rt.h)*.5,Xn=bo===Ie&&Me?wt[bo]:Sn(wt[bo],un,ge),ws=re.Z.mul(tn,Xn),zs=lt.apply(re.Z.add(Pn,ws));this.points.set(bo,{worldPoint:zs,operationOffset:ws,radius:Xn,maxValue:un});const fn=re.Z.mul(tn,0),Ds=re.Z.mul(tn,un),gi=lt.apply(re.Z.add(Pn,fn)),hi=lt.apply(re.Z.add(Pn,Ds));this.limits.set(bo,{min:gi,max:hi,maxValue:un})})}),(0,r.A)(this,"getHoverStyle",()=>{const{tree:W,scaleRatio:Q,isResizingRadius:ge}=this.props,{transform:Me,rect:Pe}=(0,Le.Oj)(W.key),{a:Ie,b:Oe,c:Ke,d:ot}=Me,{x:rt,y:lt}=Me.clone().scale(Q,Q).apply({x:Pe.x,y:Pe.y}),{x:wt,y:so}=re.Z.mul(re.Z.xy(Pe.w,Pe.h),Q);return{left:rt,top:lt,width:wt,height:so,transform:"matrix("+Ie+","+Oe+","+Ke+","+ot+",0,0)",transformOrigin:"0 0",pointerEvents:ge?"auto":"none"}}),(0,r.A)(this,"getResizerStyle",()=>{const{tree:W,scaleRatio:Q,isResizingRadius:ge}=this.props,{isResizingRadiusDirection:Me}=this.state,{rect:Pe}=(0,Le.Oj)(W.key),{x:Ie,y:Oe}=re.Z.mul(re.Z.xy(Pe.w,Pe.h),Q),Ke=this.points.get("tl").radius,ot=this.points.get("tr").radius,rt=this.points.get("bl").radius,lt=this.points.get("br").radius,wt={isResizingRadius:ge,tl:Vo(Ke,Q,Me==="tl")+"px",tr:Vo(ot,Q,Me==="tr")+"px",bl:Vo(rt,Q,Me==="bl")+"px",br:Vo(lt,Q,Me==="br")+"px"},so=Ke===rt&&Ke===this.points.get("bl").maxValue,bo=ot===lt&&ot===this.points.get("br").maxValue;return{resizerStyle:wt,tlEqualsBl:so,trEqualsBr:Ie!==Oe&&so&&bo?!1:bo,allEquals:so&&bo&&Ie===Oe}}),(0,r.A)(this,"getIsNotSmall",()=>{const{scaleRatio:W,boundingPoints:Q,widgetName:ge}=this.props,Me=te.x.WMTextInput===ge||te.x.WMTextArea===ge,Pe=re.Z.distance(Q.tl,Q.tr)*W,Ie=re.Z.distance(Q.tl,Q.bl)*W;return Me?Pe>108&&Ie>60:Pe>108||Ie>108}),(0,r.A)(this,"setBorderRadius",W=>{const{dispatch:Q,tree:ge}=this.props;ge!=null&&ge.key&&Q({type:"entry:widget:change",payload:{flatChgList:[{key:ge.key,hotAttr:{borderRadius:W}}]}})}),(0,r.A)(this,"handleSetRadius",(W,Q)=>{const{borderRadius:ge}=this.props,{setAll:Me}=this.state,Pe=parseInt(W)||0;let Ie;if(Me)Ie=Pe;else{const Oe=(0,Uo.jf)(ge);Ie={radiusTL:Oe.tl,radiusTR:Oe.tr,radiusBL:Oe.bl,radiusBR:Oe.br,["radius"+Q.toUpperCase()]:Pe}}this.setBorderRadius(Ie)}),(0,r.A)(this,"onResize",W=>{this.setState({isRadiusResizing:!0}),W.stopPropagation();const{dispatch:Q,scaleRatio:ge,boundingPoints:Me}=this.props,Pe=W.nativeEvent.clientX,Ie=W.nativeEvent.clientY,{direction:Oe}=W.currentTarget.dataset,Ke=this.points.get(Oe).worldPoint;this.setState({isResizingRadiusDirection:""}),Q({type:"reducer:flag:set-isShowRadiusResizer",payload:{isShowRadiusResizer:!0}}),Q({type:"reducer:flag:set-isResizingRadius",payload:{isResizingRadius:!0}}),sdkStore.combineMergeMark("smart-radius"),(W.metaKey||W.ctrlKey)&&this.setState({setAll:!1});let ot,rt;const lt=so=>{so.stopPropagation(),this.setState({isResizingRadiusDirection:Oe}),Q({type:"reducer:flag:set-isResizingRadius",payload:{isResizingRadius:!0}});const bo=this.limits.get(Oe);if(!bo)return!1;const{min:Ro,max:tn,maxValue:Pn}=bo,un=(so.clientX-Pe)/ge>>0,Xn=(so.clientY-Ie)/ge>>0,ws=re.Z.add(Ke,re.Z.xy(un,Xn)),zs=re.Z.round(ws);ot=Zi.a.contains(Me,zs);const fn=sa.o.projectOnePoint2Line(zs,[Ro,tn]),Ds=Qt(Ro,tn,fn);rt=Math.round(Pn*Ds),this.handleSetRadius(rt,Oe),Q({type:"set:resizing:radius:num",payload:{resizingRadiusNum:rt}})},wt=so=>{this.setState({isRadiusResizing:!1,isResizingRadiusDirection:""}),so.button===0&&this.handleSetRadius(rt,Oe),Q({type:"reducer:flag:set-isResizingRadius",payload:{isResizingRadius:!1}}),ot||Q({type:"reducer:flag:set-isShowRadiusResizer",payload:{isShowRadiusResizer:!1}}),document.removeEventListener("mousemove",lt),document.removeEventListener("mouseup",wt),sdkStore.combineMerge("smart-radius")};document.addEventListener("mousemove",lt),document.addEventListener("mouseup",wt)}),(0,r.A)(this,"onEnter",W=>{const{borderRadius:Q,dispatch:ge}=this.props,Me=(0,Uo.jf)(Q),{direction:Pe}=W.currentTarget.dataset,Ie=Me[Pe];ge({type:"set:resizing:radius:num",payload:{resizingRadiusNum:Ie}}),ge({type:"reducer:flag:set-isShowRadiusResizer",payload:{isShowRadiusResizer:!0}}),ge({type:"reducer:flag:set-isResizingRadius",payload:{isResizingRadius:!0}})}),(0,r.A)(this,"onLeave",()=>{const{dispatch:W}=this.props;this.state.isRadiusResizing||W({type:"reducer:flag:set-isResizingRadius",payload:{isResizingRadius:!1}})})}static getDerivedStateFromProps(W,Q){let{borderRadius:ge}=W,{prevProps:Me}=Q;const{borderRadius:Pe}=Me;return Ki()(ge,Pe)?null:{setAll:ge?!(0,Uo.k4)(ge):!0,prevProps:{borderRadius:ge}}}render(){const{tree:W,isHide:Q,isShowRadiusResizer:ge}=this.props;if(Q||!ge||!W||!this.getIsNotSmall())return null;this.getPointsLimits();const Pe=this.getHoverStyle(),{resizerStyle:Ie,tlEqualsBl:Oe,trEqualsBr:Ke,allEquals:ot}=this.getResizerStyle();return(0,y.jsx)(ys,{resizerStyle:Ie,children:(0,y.jsx)("div",{className:"smart-radius-wrapper",style:Pe,children:Fa.map(rt=>(0,y.jsx)("div",{"data-direction":rt,className:u()("square",""+rt,{hide:Oe&&rt==="bl"||Ke&&rt==="br",last:ot}),onMouseDown:this.onResize,onMouseEnter:this.onEnter,onMouseLeave:this.onLeave},rt))})})}}const Hs=(0,m.Mz)([g.X_,g.iv,g.w8,g.pO,g.Jv,K.c,ae.x$,p.Pm],(he,W,Q,ge,Me,Pe,Ie,Oe)=>{var Ke,ot;const rt=Ie.filter(Xn=>!Xn.widget.isLock),lt=rt.length===1&&rt[0];if(lt.type===bi.Z6.screenMeta)return{};const wt=lt==null||(Ke=lt.widget)==null?void 0:Ke.name,so=!(0,bi.v8)(wt),bo=Pe||MB.f.editing;if(so||(ge||Me)||bo||rt.length!==1)return{isHide:!0};if(Oe&&(0,pn.ji)(rt[0].widget))return{isHide:!0};if(!ho(rt[0]))return{isHide:!0};const tn=he/100,Pn=(ot=lt.widget)==null?void 0:ot.borderRadius,un=sa.o.toBoundingPoints((0,Le.Oj)(lt.key));return{tree:lt,widgetName:wt,scaleRatio:tn,borderRadius:Pn,boundingPoints:un,isResizingRadius:Q,isShowRadiusResizer:W}}),Qn=(0,o.Ng)(he=>Hs(he))(Dn);var Gi=e(63646),oa=e(58197),ta=e(28717);const Sa=fe.Ay.div.withConfig({displayName:"styles__StyledSmartSelectionController",componentId:"sc-i2we5g-0"})(["position:absolute;pointer-events:auto;will-change:transform;&.unclickable{pointer-events:none;}div.tidy-up-button{position:absolute;bottom:5px;right:5px;pointer-events:auto;width:20px;height:20px;background-color:#1684fc;border-radius:4px;white-space:nowrap;will-change:transform;svg{width:20px;height:20px;color:#fff;}}"]),La=fe.Ay.div.withConfig({displayName:"styles__StyledGapAdjuster",componentId:"sc-i2we5g-1"})(["&.gap-adjuster-wrapper{position:absolute;box-sizing:content-box;background-color:#f54edb;background-clip:content-box;pointer-events:auto;border-radius:5px;will-change:transform;cursor:",";}"],he=>he.type==="row"?pt.M.nsResize:pt.M.ewResize);var ya=e(78647),Ja=function(he){return he.Row="row",he.Column="column",he.Grid="grid",he}(Ja||{}),No=function(he){return he.Row="row",he.Column="column",he}(No||{});const ct=he=>{let W=Ja.Grid;return he.length>0&&(he.length===1&&(W=Ja.Row),he.every(Q=>Q.items.length===1)&&(W=Ja.Column)),W};class Mt extends x.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{isLimited:!0,selectedWidgetInfo:[],tidyUpActionType:ct(this.props.sortedRows),filteredSelectedItems:[],aabb:[]}),(0,r.A)(this,"handleSortWidgets",W=>{W.stopPropagation();const{dispatch:Q}=this.props;Q({type:"entry:smart-selection:arrange:widgets"})}),(0,r.A)(this,"onGapAdjusterMouseDown",(W,Q,ge)=>{const{itemMargin:Me,lineSpace:Pe,viewport:Ie,dispatch:Oe}=this.props,{selectedWidgetInfo:Ke}=this.state,{result:ot}=(0,ta.N8)(Ke,null),{minItemMargin:rt,minLineSpace:lt}=(0,ta.no)(ot),wt=W.clientX,so=W.clientY;sdkStore.combineMergeMark("adjust-ss-gap");const bo=tn=>{Oe({type:"reducer:flag:set:is-dragging-item",payload:{isDraggingItem:!0}}),Oe({type:"reducer:flag:set:is-selection-border-resizer",payload:{isHideSelectionBorder_Resizer:!0}});const{scale:Pn}=Ie,un=(tn.clientX-wt)/Pn>>0,Xn=(tn.clientY-so)/Pn>>0,ws=Math.round(un),zs=Math.round(Xn),fn={x:ws,y:zs};if(Oe(Gi.UU.update({[Q===No.Row?"isAdjustingRowGap":"isAdjustingColGap"]:!0})),Q===No.Column){const Ds=Math.max(Math.round(Me+fn.x*ge),rt);Oe({type:"entry:smart-selection:updating:gap",payload:{colGap:Ds}})}if(Q===No.Row){const Ds=Math.max(Math.round(Pe+fn.y*ge),lt);Oe({type:"entry:smart-selection:updating:gap",payload:{rowGap:Ds}})}},Ro=()=>{Oe({type:"reducer:flag:set:is-selection-border-resizer",payload:{isHideSelectionBorder_Resizer:!1}}),Oe({type:"reducer:flag:set:is-dragging-item",payload:{isDraggingItem:!1}}),Oe(Gi.UU.update({isAdjustingColGap:!1,isAdjustingRowGap:!1})),Oe({type:"entry:select:smartly"}),document.removeEventListener("pointermove",bo),document.removeEventListener("pointerup",Ro),sdkStore.combineMerge("adjust-ss-gap")};return document.addEventListener("pointermove",bo),document.addEventListener("pointerup",Ro),!0})}static getDerivedStateFromProps(W,Q){var ge,Me,Pe,Ie;let{prevProps:Oe,selectedWidgetInfo:Ke}=Q;if((W==null||(ge=W.selectedItems)==null?void 0:ge.length)!==(Oe==null||(Me=Oe.selectedItems)==null?void 0:Me.length)){const ot=(0,ta.$3)(W.selectedItems),rt=ot.map(so=>so.key),lt=(0,ta.cb)(ot),wt=ct(W.sortedRows);return{filteredSelectedItems:ot,selectedWidgetInfo:lt,aabb:sdkStore.getHotKeyListAABB(rt),isLimited:lt.findIndex(so=>{let{wW:bo,wH:Ro}=so;return bo*W.viewport.scale<40||Ro*W.viewport.scale<40})!==-1,tidyUpActionType:wt}}if((W==null||(Pe=W.viewport)==null?void 0:Pe.scale)!==(Oe==null||(Ie=Oe.viewport)==null?void 0:Ie.scale))return{isLimited:Ke.findIndex(ot=>{let{wW:rt,wH:lt}=ot;return rt*W.viewport.scale<40||lt*W.viewport.scale<40})!==-1}}render(){const{isActive:W,lineSpace:Q,itemMargin:ge,sortedRows:Me,isAdjustingRowGap:Pe,isAdjustingColGap:Ie,isUnSmartSelectable:Oe,viewport:Ke,isDraggingItem:ot}=this.props,{isLimited:rt,selectedWidgetInfo:lt,tidyUpActionType:wt,filteredSelectedItems:so,aabb:bo}=this.state;if(Oe||so.length<2)return null;const{scale:Ro}=Ke,[tn,Pn,un,Xn]=bo,ws=un-tn,zs=Xn-Pn,fn={width:ws*Ro,height:zs*Ro,transform:"translate("+tn*Ro+"px,"+Pn*Ro+"px)"},Ds={transform:wt===Ja.Column?"rotate(90deg)":void 0};return(0,y.jsxs)("div",{className:"smart-wrap",children:[(0,y.jsx)(Sa,{className:ya.c.GUIDE_COPY_AS_PNG,ref:this.smartSelectionController,onMouseDown:gi=>gi.currentTarget.classList.add("unclickable"),style:fn,children:!W&&Ro>=.3&&(0,y.jsx)("div",{className:"tidy-up-button",onMouseDown:this.handleSortWidgets,style:Ds,children:(0,y.jsx)(vo.C,{name:"art_board/smart_selection/"+wt})})}),W&&!ot&&!rt&&!(Pe||Ie)&&uo({viewport:Ke,itemMargin:ge,lineSpace:Q,sortedRows:Me,selectedWidgetInfo:lt,handleGapAdjusterMouseDown:this.onGapAdjusterMouseDown,isAdjustingGap:Ie||Pe}),(Pe||Ie)&&oo({isAdjustingRowGap:Pe,isAdjustingColGap:Ie,lineSpace:Q,itemMargin:ge,selectedWidgetInfo:lt,sortedRows:Me,scale:Ro})]})}}const ht=he=>{let{type:W,position:Q,ratio:ge,scale:Me,handleMouseDown:Pe,isAdjustingGap:Ie,lineWidth:Oe}=he;const Ke=W==="row"?Oe*Me*.8:2,ot=W==="row"?2:16,rt=Q.x*Me-Ke/2-(W==="row"?0:8),lt=Q.y*Me-ot/2-(W==="row"?8:0),wt=W==="row"?"8px 0":"0 8px",so={opacity:Ie?"0":"1",transform:"translate("+rt+"px,"+lt+"px)",padding:wt,width:Ke+"px",height:ot+"px"};return(0,y.jsx)(La,{className:"gap-adjuster-wrapper",style:so,type:W,onPointerDown:bo=>Pe(bo,W,ge)})},oo=he=>{let{isAdjustingRowGap:W,isAdjustingColGap:Q,sortedRows:ge,selectedWidgetInfo:Me,lineSpace:Pe,itemMargin:Ie,scale:Oe}=he,Ke=null;return ge.flatMap((rt,lt)=>{const{items:wt,rowH:so}=rt,bo=[];if(W){const{w:Ro,x:tn}=oa.rw.enclosing(Me.flatMap(Pn=>Zi.a.points(Pn.boundingPoints)));if(lt>0&&Ke!==null){const Pn={x:tn,y:Ke,w:Math.abs(Ro),h:Math.abs(Pe)};Pe<0&&(Pn.y=Pn.y+Pe);const un=oa.rw.xywh(Pn.x*Oe,Pn.y*Oe,Pn.w*Oe,Pn.h*Oe);bo.push(un),Ke=Ke+Pe+so}else Ke=ge[0].centerY+ge[0].rowH*.5}if(Q){let Ro=0,tn=null;for(;Ro<wt.length;){const Pn=wt[Ro];if(tn!==null){const un={x:tn.x,y:tn.y,w:Math.abs(Ie),h:Math.abs(so)};Ie<0&&(un.x=un.x+Ie);const Xn=oa.rw.xywh(un.x*Oe,un.y*Oe,un.w*Oe,un.h*Oe);bo.push(Xn),tn=re.Z.xy(tn.x+Ie+Pn.width,tn.y)}else tn=re.Z.xy(Pn.boundingPoints.tr.x,Math.min(...wt.map(un=>un.boundingPoints.tr.y)));Ro++}}return bo}).map((rt,lt)=>{const wt={position:"absolute",width:rt.w,height:rt.h,transform:"translate("+rt.x+"px,"+rt.y+"px)",zIndex:9999,backgroundColor:"rgba(245, 78, 219, 0.3)"};return(0,y.jsx)("div",{style:wt},lt)})},uo=he=>{let{sortedRows:W,selectedWidgetInfo:Q,itemMargin:ge,lineSpace:Me,viewport:Pe,handleGapAdjusterMouseDown:Ie,isAdjustingGap:Oe}=he;const Ke=[];return W.forEach((ot,rt)=>{const{centerY:lt,items:wt}=ot,{w:so,x:bo}=oa.rw.enclosing(Q.flatMap(un=>Zi.a.points(un.boundingPoints))),Ro=W[rt-1];if(rt>0){const un={x:bo,y:Ro.centerY+Ro.rowH*.5,w:so,h:Me},Xn=oa.rw.center(un),ws=so*Pe.scale,zs=1/(rt-.5),fn=re.Z.div(re.Z.xy(ws*.4+ta.v_,3+ta.v_),Pe.scale),Ds=gt.L.apply(Pe,re.Z.subtract(Xn,fn)),gi=re.Z.xy(ws*.8+ta.v_*2,6+ta.v_*2),hi={x:Ds.x,y:Ds.y,w:gi.x,h:gi.y};Ke.push({type:"row",rect:hi,rowIndex:rt,ratio:zs,position:Xn,lineWidth:so})}let tn=0,Pn=null;for(;tn<wt.length;){const un=wt[tn];if(Pn!==null){const Xn=Pn+ge*.5,ws=lt,zs=1/(tn-.5),fn=re.Z.div(re.Z.xy(1+ta.v_,9+ta.v_),Pe.scale),Ds=gt.L.apply(Pe,re.Z.subtract(re.Z.xy(Xn,ws),fn)),gi=re.Z.xy(4+ta.v_*2,18+ta.v_*2),hi={x:Ds.x,y:Ds.y,w:gi.x,h:gi.y};Ke.push({type:"column",rect:hi,rowIndex:rt,ratio:zs,scale:Pe.scale,position:{x:Xn,y:ws}})}Pn=un.boundingPoints.br.x,tn++}}),Ke.map((ot,rt)=>(0,y.jsx)(ht,{...ot,scale:Pe.scale,handleMouseDown:Ie,isAdjustingGap:Oe},rt))},So=(0,m.Mz)([E.P2,E.tR],(he,W)=>he?W===We.bl.slicing:!1),zo=(0,m.Mz)([ae.Z9,xe.$,g.$S,g.ER,g.X_,g.Jv,So,g.pO],(he,W,Q,ge,Me,Pe,Ie,Oe)=>{const{isHidden:Ke,isActive:ot,rowStates:rt,rowGap:lt,colGap:wt,changes:so,enableMarginChange:bo,isDragging:Ro,isResizingGap:tn,isAdjustingColGap:Pn,isAdjustingRowGap:un}=W,Xn={scale:Me/100,size:Q,offset:ge};return{changes:so,sortedRows:rt,lineSpace:lt,itemMargin:wt,rowGap:lt,colGap:wt,viewport:Xn,isActive:ot,selectedItems:he,isDragging:Ro,isAdjustingColGap:Pn,isAdjustingRowGap:un,isUnSmartSelectable:!bo||Pe||tn||Ke||Ie,isDraggingItem:Oe}}),en=(0,o.Ng)(he=>zo(he)),mn=(0,o.Ng)(he=>zo(he))(Mt);var jn=e(63711),Oo=e.n(jn),Nn=e(80766);const es="n,s,e,w,ne,nw,se,sw";class zt extends x.PureComponent{constructor(W){super(W),(0,r.A)(this,"handleResizeStart",()=>{const{activeImage:Q}=this.props;MB.f.isResizing=!0,this.activeItem=Oo()({...Q})}),(0,r.A)(this,"handleResize",Q=>{let{top:ge,left:Me,width:Pe,height:Ie}=Q;const{ratio:Oe,dispatch:Ke}=this.props,{imageRectCenterX:ot,imageRectCenterY:rt,imageRectWidth:lt,imageRectHeight:wt}=this.activeItem.image,so={...this.activeItem.image,imageRectCenterX:ot-lt/2+Pe/Oe/2+Me/Oe,imageRectCenterY:rt-wt/2+Ie/Oe/2+ge/Oe,imageRectWidth:Math.round(Pe/Oe),imageRectHeight:Math.round(Ie/Oe)};Ke({type:"entry:widget:change",payload:{flatChgList:[{key:this.activeItem.key,hotAttr:{image:so}}]}})}),(0,r.A)(this,"handleResizeEnd",()=>{MB.f.isResizing=!1,this.activeItem=null}),(0,r.A)(this,"handleRotateStart",()=>{const{activeImage:Q}=this.props;this.activeItem={...Q}}),(0,r.A)(this,"handleRotate",Q=>{const{dispatch:ge}=this.props,Me={...this.activeItem.image,imageRectR:(this.activeItem.image.imageRectR+Math.round(Q))%360};ge({type:"entry:widget:change",payload:{flatChgList:[{key:this.activeItem.key,hotAttr:{image:Me}}]}})}),(0,r.A)(this,"handleRotateEnd",()=>{this.activeItem=null}),(0,r.A)(this,"onDrag",(Q,ge)=>{const{activeImage:Me,ratio:Pe,dispatch:Ie}=this.props,{imageRectWidth:Oe,imageRectHeight:Ke,imageRectCenterX:ot,imageRectCenterY:rt}=Me.image,lt={...Me.image,imageRectCenterX:ot+Q/Pe,imageRectCenterY:rt+ge/Pe,imageRectWidth:Oe,imageRectHeight:Ke};Ie({type:"entry:widget:change",payload:{flatChgList:[{key:this.activeItem.key,hotAttr:{image:lt}}]}})}),(0,r.A)(this,"onDragStart",()=>{const{activeImage:Q,changeCurrentSelect:ge}=this.props;ge(We.Q7.img),this.activeItem={...Q},sdkStore.combineMergeMark("re-position-image-wrt-clip")}),(0,r.A)(this,"onDragEnd",()=>{this.activeItem=null,sdkStore.combineMerge("re-position-image-wrt-clip")}),this.activeItem=null}render(){const{activeImage:W,ratio:Q,currentSelect:ge}=this.props,{imageRectWidth:Me,imageRectHeight:Pe,imageRectAspectRatio:Ie,imageRectR:Oe,imageRectCenterX:Ke,imageRectCenterY:ot}=W.image,{x:rt,y:lt,w:wt,h:so,r:bo}=sdkStore.getHotBound(W.key),Ro={zIndex:3,width:wt*Q,height:so*Q,transform:"translate("+(rt-wt*.5)*Q+"px,"+(lt-so*.5)*Q+"px) rotate("+bo+"deg)",transformOrigin:"center center"},tn={width:Me*Q,height:Pe*Q,transform:"translate("+(Ke-Me*.5)*Q+"px,"+(ot-Pe*.5)*Q+"px) rotate("+Oe+"deg)",transformOrigin:"center center"},Pn={top:0,left:0,width:Me*Q,height:Pe*Q};return(0,y.jsx)("div",{className:u()("imageSelectBorder",{currentNotSelect:ge!=="img"}),style:Ro,children:(0,y.jsx)("div",{style:tn,children:(0,y.jsx)(Nn.A,{aspectRatio:Ie,...Pn,minWidth:Q,minHeight:Q,zoomable:es,rotatable:!0,rotateAngle:0,onResize:this.handleResize,onResizeStart:this.handleResizeStart,onResizeEnd:this.handleResizeEnd,onRotateStart:this.handleRotateStart,onRotate:this.handleRotate,onRotateEnd:this.handleRotateEnd,onDragStart:this.onDragStart,onDragEnd:this.onDragEnd,onDrag:this.onDrag,cursorAngle:bo})})})}}var po=e(17670);const Fo=fe.Ay.div.withConfig({displayName:"styles__StyledCuttingSelectBorderStyle",componentId:"sc-1nd7omz-0"})(["position:absolute;z-index:3;&.clipCircular{.single-resizer{border-radius:50%;}}.dragDiv{background:transparent;position:absolute;pointer-events:all;}&.currentNotSelect{.square{display:none;}&.showHoverBorder{.single-resizer{&:first-child{outline:2px solid #2F90F9;}}}}.single-resizer{outline:1px dashed #2F90F9;border:none;&:first-child{pointer-events:auto!important;z-index:1!important;border:none;outline:1px solid #ffffff;}.square{background:#2F90F9;border:1px solid #FFFFFF;width:8px;height:8px;border-radius:2px;&.t{top:-5px;}&.b{bottom:-5px;}&.r{right:-5px;}&.l{left:-5px;}&.tr{right:-5px;top:-5px;}&.tl{top:-5px;left:-5px;}&.br{bottom:-5px;right:-5px;}&.bl{bottom:-5px;left:-5px;}}}"]),Mn=(he,W,Q,ge)=>{const[Me,Pe,Ie,Oe]=he;let Ke;switch(ge){case"br":{Ke={x:Me+W/2,y:Pe+Q/2};break}case"bl":{Ke={x:Ie-W/2,y:Pe+Q/2};break}case"tl":{Ke={x:Ie-W/2,y:Oe-Q/2};break}case"tr":{Ke={x:Me+W/2,y:Oe-Q/2};break}case"t":{Ke={y:Oe-Q/2};break}case"r":{Ke={x:Me+W/2};break}case"b":{Ke={y:Pe+Q/2};break}case"l":{Ke={x:Ie-W/2};break}}return Ke};class Fn extends x.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{shouldShowHoverBorder:!1,isShiftKeyDown:!1}),(0,r.A)(this,"handleResizeStart",()=>{const{activeImage:W,changeCurrentSelect:Q}=this.props;Q(We.Q7.cutFrame),MB.f.isResizing=!0,this.top=0,this.left=0,sdkStore.combineMergeMark("resize-image-clip")}),(0,r.A)(this,"handleResize",(W,Q,ge)=>{let{top:Me,left:Pe,width:Ie,height:Oe}=W;const{ratio:Ke,activeImage:ot,dispatch:rt}=this.props,{key:lt,ro:wt}=ot,{x:so,y:bo,w:Ro,h:tn}=sdkStore.getHotBound(lt),Pn=sdkStore.getHotKeyAABB(lt),un=(this.top-Me)/Ke,Xn=(this.left-Pe)/Ke;this.top=Me,this.left=Pe;const ws=Math.round(Ie/Ke),zs=Math.round(Oe/Ke),fn={x:so-Ro/2-Xn,y:bo-tn/2-un},Ds=Mn(Pn,ws,zs,ge),gi=wt===0?{x:so,y:bo,r:wt,w:ws,h:zs,...Ds}:{x:fn.x+ws/2,y:fn.y+zs/2,r:wt,w:ws,h:zs},{x:hi,y:Ni}=sdkStore.toAttrXY(gi,lt);rt({type:"entry:widget:change",payload:{flatChgList:[{key:ot.key,hotAttr:{x:hi,y:Ni,w:ws,h:zs,image:{...ot.image,...(0,po.N)(ot.key,gi),imageFillType:"stretch"}}}]}})}),(0,r.A)(this,"handleResizeEnd",()=>{MB.f.isResizing=!1,sdkStore.combineMerge("resize-image-clip")}),(0,r.A)(this,"onDrag",(W,Q)=>{const{activeImage:ge,ratio:Me,dispatch:Pe}=this.props,{key:Ie}=ge,{x:Oe,y:Ke,w:ot,h:rt}=sdkStore.getHotBound(Ie);let lt=W,wt=Q;this.state.isShiftKeyDown?this.lockedDragAxis?(this.lockedDragAxis==="y"&&(lt=0),this.lockedDragAxis==="x"&&(wt=0)):Math.abs(W)>Math.abs(Q)?(wt=0,this.lockedDragAxis="x"):(lt=0,this.lockedDragAxis="y"):this.lockedDragAxis=null;const so={x:Oe-ot/2+lt/Me,y:Ke-rt/2+wt/Me},bo={x:Math.round(so.x+ot/2),y:Math.round(so.y+rt/2),r:ge.r,w:ot,h:rt},{x:Ro,y:tn}=sdkStore.toAttrXY(bo,Ie);Pe({type:"entry:widget:change",payload:{flatChgList:[{key:ge.key,hotAttr:{x:Ro,y:tn,image:{...ge.image,...(0,po.N)(ge.key,bo),imageFillType:"stretch"}}}]}})}),(0,r.A)(this,"onDragStart",()=>{const{activeImage:W,changeCurrentSelect:Q}=this.props;this.lockedDragAxis=null,Q(We.Q7.cutFrame),sdkStore.combineMergeMark("re-position-image-clip")}),(0,r.A)(this,"onDragEnd",()=>{sdkStore.combineMerge("re-position-image-clip")}),(0,r.A)(this,"handleDrap",W=>{this.onDragStart(),W.stopPropagation();let Q=W.clientX,ge=W.clientY;const Me=Ie=>{const Oe=Ie.clientX-Q,Ke=Ie.clientY-ge;Q=Ie.clientX,ge=Ie.clientY,this.onDrag(Oe,Ke)},Pe=()=>{document.removeEventListener("mousemove",Me),document.removeEventListener("mouseup",Pe),this.onDragEnd()};document.addEventListener("mousemove",Me),document.addEventListener("mouseup",Pe)}),(0,r.A)(this,"handleMouseEnter",()=>{this.setState({shouldShowHoverBorder:!0})}),(0,r.A)(this,"handleMouseLeave",()=>{this.setState({shouldShowHoverBorder:!1})}),(0,r.A)(this,"handlePressShift",W=>{this.setState({isShiftKeyDown:W.shiftKey})}),(0,r.A)(this,"handleReleaseShift",W=>{this.setState({isShiftKeyDown:W.shiftKey})})}render(){const{activeImage:W,ratio:Q,currentSelect:ge}=this.props,{shouldShowHoverBorder:Me}=this.state,{image:{imageClipType:Pe}}=W,{x:Ie,y:Oe,w:Ke,h:ot,r:rt}=sdkStore.getHotBound(W.key),lt=Ke*Q,wt=ot*Q;let so=0;Pe===We.Mg.circular&&(so=1);const bo=[{top:-5,left:0,width:lt,height:10},{top:-5,left:lt-5,width:10,height:wt},{top:wt-5,left:-5,width:lt+10,height:10},{top:-5,left:-5,width:10,height:wt}],Ro={position:"absolute",width:lt,height:wt,transform:"translate("+(Ie-Ke*.5)*Q+"px,"+(Oe-ot*.5)*Q+"px) rotate("+rt+"deg)",transformOrigin:"center center"};return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(Fo,{className:u()({clipCircular:Pe===We.Mg.circular,currentNotSelect:ge==="img",showHoverBorder:ge==="img"&&Me}),style:Ro,children:[(0,y.jsx)(Nn.A,{aspectRatio:so,top:0,left:0,width:lt,height:wt,minWidth:Q,minHeight:Q,zoomable:"",rotatable:!1,rotateAngle:0,onDragStart:this.onDragStart,onDragEnd:this.onDragEnd,onDrag:this.onDrag,cursorAngle:rt}),(0,y.jsx)("div",{children:bo.map((tn,Pn)=>(0,y.jsx)("div",{style:tn,className:"dragDiv",onMouseDown:this.handleDrap,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},Pn))}),(0,y.jsx)(Nn.A,{aspectRatio:so,top:0,left:0,width:lt,height:wt,minWidth:Q,minHeight:Q,zoomable:cn.eT,rotatable:!1,rotateAngle:0,onResize:this.handleResize,onResizeStart:this.handleResizeStart,onResizeEnd:this.handleResizeEnd,cursorAngle:rt})]}),(0,y.jsx)(_.A,{target:document,onKeyDown:(0,_.t)(this.handlePressShift,{capture:!0})}),(0,y.jsx)(_.A,{target:document,onKeyUp:(0,_.t)(this.handleReleaseShift,{capture:!0})})]})}}var ts=e(98310),As=e(57882);const Is=fe.Ay.div.withConfig({displayName:"styles__StyledCuttingClipSvgStyle",componentId:"sc-i73qv7-0"})(["position:absolute;svg{position:absolute;}.imageWarp{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;.img{position:absolute;}}.originImageWarp{position:absolute;top:0;left:0;width:100%;height:100%;.img{position:absolute;}}"]);class io extends x.PureComponent{render(){const{activeImage:W,ratio:Q}=this.props,{imageRef:ge,imageFilter:Me,imageRectCenterX:Pe,imageRectCenterY:Ie,imageRectWidth:Oe,imageRectHeight:Ke,imageRectR:ot}=W.image,rt=(0,ts.Kf)(ge),{x:lt,y:wt,w:so,h:bo,r:Ro}=sdkStore.getHotBound(W.key),tn={width:so*Q,height:bo*Q,transform:"translate("+(lt-so*.5)*Q+"px,"+(wt-bo*.5)*Q+"px) rotate("+Ro+"deg)",transformOrigin:"center center"},Pn=ws=>{let{w:zs,h:fn,ratio:Ds,borderRadius:gi}=ws;const{radiusTL:hi,radiusTR:Ni,radiusBL:ba,radiusBR:fa}=typeof gi=="number"?{radiusTL:gi,radiusTR:gi,radiusBL:gi,radiusBR:gi}:gi,Ka="\n M "+hi*Ds+" 0\n H "+(zs-Ni)*Ds+"\n A "+Ni*Ds+" "+Ni*Ds+" 0 0 1 "+zs*Ds+" "+Ni*Ds+"\n V "+(fn-ba)*Ds+"\n A "+ba*Ds+" "+ba*Ds+" 0 0 1 "+(zs-ba)*Ds+" "+fn*Ds+"\n H "+fa*Ds+"\n A "+fa*Ds+" "+fa*Ds+" 0 0 1 0 "+(fn-fa)*Ds+"\n V "+hi*Ds+"\n A "+hi*Ds+" "+hi*Ds+" 0 0 1 "+hi*Ds+" 0\n Z\n ";return(0,y.jsx)("path",{d:Ka})},un={filter:Me,width:Oe*Q,height:Ke*Q,opacity:W.opacity,transform:"translate("+(Pe-Oe*.5)*Q+"px,"+(Ie-Ke*.5)*Q+"px) rotate("+ot+"deg) "+(0,As.Qz)(W),transformOrigin:"center center"},Xn={background:"rgba(221,221,221,0.50)",width:Oe*Q,height:Ke*Q,transform:"translate("+(Pe-Oe*.5)*Q+"px,"+(Ie-Ke*.5)*Q+"px) rotate("+ot+"deg)",transformOrigin:"center center"};return(0,y.jsxs)(Is,{style:tn,children:[(0,y.jsx)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:Oe,height:Ke,children:(0,y.jsx)("defs",{children:(0,y.jsx)("clipPath",{id:"cut-"+W.key,children:Pn({w:so,h:bo,ratio:Q,borderRadius:W.borderRadius})})})}),(0,y.jsx)("div",{className:"imageWarp",children:(0,y.jsx)("div",{className:"divMask",style:Xn,children:" "})}),(0,y.jsx)("div",{className:"imageWarp",style:{clipPath:"url(#cut-"+W.key+")"},children:(0,y.jsx)("img",{src:rt,className:"img",width:Oe*Q,height:Ke*Q,style:un,alt:"\u56FE\u7247\u6587\u5B57\u5360\u4F4D"})}),(0,y.jsx)("div",{className:"originImageWarp",style:un,children:(0,y.jsx)("img",{src:rt,className:"img",width:Oe*Q,height:Ke*Q,alt:"\u56FE\u7247\u6587\u5B57\u5360\u4F4D"})})]})}}var Jo=e(5241),Zo=e(15082),Un=e(51514);const On=324,bn=fe.Ay.div.withConfig({displayName:"styles__StyledImageEditorOperate",componentId:"sc-11c2tl-0"})(["position:absolute;z-index:4;width:","px;height:","px;background:#333;box-shadow:0 2px 8px rgba(0,0,0,0.3);border-radius:4px;transition:opacity,transform 0.2s ease-in-out;transform-origin:0 0;animation-fill-mode:forwards;color:#fff;border:1px solid #454647;display:flex;align-items:center;justify-content:space-between;padding:0 8px 0 12px;.left,.right{display:flex;align-items:center;justify-content:center;}.left{.title{color:#ccc;margin-right:12px;}.radio-line{margin-bottom:0;height:28px;background:#333;.radio-option.check-line{flex:0 0 28px;width:28px;height:28px;border-radius:4px;transition:all 0.2s ease-in-out;cursor:pointer;pointer-events:auto;a{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:#fff;.svg-icon{width:14px;rect{fill:transparent;stroke:#fff;}&:not([fill]){[stroke]{fill:none;}}}}&:not(:last-child){margin-right:4px;}&:not(.active):hover{background:rgba(102,102,102,0.4);}&.active{background:#666;}}}}.right{button{width:64px;height:28px;border:1px solid #999;border-radius:4px;cursor:pointer;pointer-events:auto;&:not(:last-child){margin-right:8px;}&:hover{background:rgba(102,102,102,0.4);}}}"],On,40),Gn=8;class xs extends x.PureComponent{constructor(W){var Q;super(W),(0,r.A)(this,"IMAGE_OPERATE_LIST",[{label:I18N.SettingPanel.slicing,value:We.bl.slicing},{label:I18N.SettingPanel.cutting,value:We.bl.cutting}]),(0,r.A)(this,"CUTTING_OPTIONS",[{label:(0,y.jsx)(Jo.P,{name:"setting_panel/image_view/square",tagName:"SVGIcon",content:I18N.SettingPanel.rectangle_cutting,direction:"down"}),value:We.Mg.square},{label:(0,y.jsx)(Jo.P,{name:"setting_panel/image_view/circular",tagName:"SVGIcon",content:I18N.SettingPanel.circular_cutting,direction:"down"}),value:We.Mg.circular}]),(0,r.A)(this,"SLICING_OPTIONS",[{label:(0,y.jsx)(Jo.P,{name:"setting_panel/image_view/cross",tagName:"SVGIcon",content:I18N.SettingPanel.slicing_cross,direction:"down"}),value:We.Pv.cross},{label:(0,y.jsx)(Jo.P,{name:"setting_panel/image_view/horizontal",tagName:"SVGIcon",content:I18N.SettingPanel.slicing_horizontal,direction:"down"}),value:We.Pv.horizontal},{label:(0,y.jsx)(Jo.P,{name:"setting_panel/image_view/vertical",tagName:"SVGIcon",content:I18N.SettingPanel.slicing_vertical,direction:"down"}),value:We.Pv.vertical}]),(0,r.A)(this,"handleGetIsCutting",()=>{const{currentImageOperateType:ge}=this.props;return ge===We.bl.cutting}),(0,r.A)(this,"handleShape",ge=>{const{dispatch:Me}=this.props,{cuttingType:Pe}=this.state,Ie=ge.currentTarget.dataset.value;Pe&&Pe===Ie||(this.setState({cuttingType:Ie}),Me({type:"entry:items:set:clipType",payload:{clipType:Ie}}))}),(0,r.A)(this,"handleChangeSlicingType",ge=>{const{slicingType:Me,onChangeSlicingType:Pe}=this.props,Ie=ge.currentTarget.dataset.value;Me&&Ie===Me||Pe(Ie)}),(0,r.A)(this,"resetClipType",()=>{const{dispatch:ge}=this.props;ge({type:"entry:items:set:clipType",payload:{clipType:"none"}})}),(0,r.A)(this,"handleExit",()=>{const{dispatch:ge,editingImageNodes:Me}=this.props,{isCut:Pe}=this.handleGetImageEditorOperateAttr();if(Pe){const Ie=Me.map(Oe=>{const Ke=sdkStore.getHotItem(Oe.key);return{key:Oe.key,hotAttr:{...Ke.hotAttr,image:{...Ke.hotAttr.image,imageFillType:"stretch"}}}});ge({type:"entry:widget:change",payload:{flatChgList:Ie}})}ge({type:"entry:image-view:exit:edit"})}),(0,r.A)(this,"handleGetImageEditorOperateAttr",()=>{const{ratio:ge,editingImageNodes:Me,canvasRect:Pe}=this.props,Ie=this.handleGetIsCutting(),Oe=(0,Un.Am)(Me[0].widget);let Ke={};const ot=-Pe.canvasTop+35+40,rt=window.innerHeight-48-Pe.canvasTop-35;let lt=ot;const[wt,so,bo,Ro]=sdkStore.getHotKeyListAABB(Me.map(fn=>fn.key)),tn=bo-wt,Pn=Ro-so,{x:un,y:Xn}=re.Z.mul(re.Z.xy(wt,so),ge),{x:ws,y:zs}=re.Z.mul(re.Z.xy(tn,Pn),ge);return lt=Math.round(Xn+zs+Gn),Ke={left:Math.floor(un+ws/2-On/2)},Ke={...Ke,top:lt<ot?ot:lt>rt?rt:lt},{isCut:Ie,canShowResetImage:Oe,imageStyle:Ke}}),this.state={cuttingType:(Q=W.editingImageNodes[0])==null||(Q=Q.widget)==null||(Q=Q.image)==null?void 0:Q.imageClipType}}render(){var W;const{currentImageOperateType:Q,slicingType:ge,editingImageNodes:Me}=this.props;if(!Me||!(Me!=null&&Me.length))return null;const{cuttingType:Pe}=this.state,Ie=(W=this.IMAGE_OPERATE_LIST.find(rt=>{let{value:lt}=rt;return lt===Q}))==null?void 0:W.label,{isCut:Oe,canShowResetImage:Ke,imageStyle:ot}=this.handleGetImageEditorOperateAttr();return(0,y.jsxs)(bn,{style:ot,className:"imageEditorOperate",children:[(0,y.jsxs)("div",{className:"left",children:[(0,y.jsx)("span",{className:"title",children:Ie}),(0,y.jsx)(Zo.A,{className:u()({cut:Oe}),options:Oe?this.CUTTING_OPTIONS:this.SLICING_OPTIONS,value:Oe?Pe:ge,handleChange:Oe?this.handleShape:this.handleChangeSlicingType})]}),(0,y.jsxs)("div",{className:"right",children:[Oe&&Ke&&(0,y.jsx)("button",{onClick:this.resetClipType,children:I18N.SettingPanel.undo}),(0,y.jsx)("button",{onClick:this.handleExit,children:Oe?I18N.SettingPanel.confirm:I18N.SettingPanel.exit})]})]})}}const Es=fe.Ay.svg.withConfig({displayName:"styles__StyledImageSlicing",componentId:"sc-t2h4v2-0"})(["position:absolute;z-index:4;width:100vw;height:100vh;top:0;left:0;pointer-events:auto;&.image-editing-slicing{cursor:",";}line{stroke:",";stroke-width:1px;stroke-dasharray:3 2;}"],pt.M.imageBlade,he=>he.theme.color_polyline_normal);class Ys extends x.PureComponent{constructor(W){var Q,ge,Me,Pe;super(W),(0,r.A)(this,"handleGetSlicingDirection",()=>{const{slicingType:Ie}=this.props,Oe=Ie!==We.Pv.vertical,Ke=Ie!==We.Pv.horizontal;return{isH:Oe,isV:Ke}}),(0,r.A)(this,"handleClick",Ie=>{const{scale:Oe,editingImageNodes:Ke,isSpaceDown:ot,isDraggingCanvas:rt,handMode:lt,canvasOffset:wt,viewportRect:so,dispatch:bo}=this.props,{show:Ro}=this.state;if(!Ro||!Ke||!(Ke!=null&&Ke.length)||ot||rt||lt)return;const tn=this.handleGetSlicingDirection(),Pn=(0,mt.mG)(Ie,{scale:Oe,offset:wt,viewportRect:so}),un=Ke.map(Xn=>Xn.cid);bo({type:"entry:image-view:slicing",payload:{sliceWorldPos:Pn,wImageKeyList:un,slicingDirection:tn}})}),(0,r.A)(this,"handleChangeOffset",(Ie,Oe)=>this.setState({show:!0,offsetX:Ie,offsetY:Oe})),(0,r.A)(this,"handleEnter",Ie=>this.handleChangeOffset(Ie.nativeEvent.offsetX,Ie.nativeEvent.offsetY)),(0,r.A)(this,"handleMove",Ie=>this.handleChangeOffset(Ie.nativeEvent.offsetX,Ie.nativeEvent.offsetY)),(0,r.A)(this,"handleLeave",()=>this.setState({show:!1})),this.state={show:((Q=W.defaultImageSlicingOffset)==null?void 0:Q.x)&&((ge=W.defaultImageSlicingOffset)==null?void 0:ge.y),offsetX:((Me=W.defaultImageSlicingOffset)==null?void 0:Me.x)||0,offsetY:((Pe=W.defaultImageSlicingOffset)==null?void 0:Pe.y)||0}}render(){const{show:W,offsetX:Q,offsetY:ge}=this.state,{isSpaceDown:Me,isDraggingCanvas:Pe,handMode:Ie,canvasRect:{canvasLeft:Oe,canvasTop:Ke}}=this.props,ot={left:-Oe+"px",top:-Ke+"px"},{isH:rt,isV:lt}=this.handleGetSlicingDirection(),wt=!Me&&!Pe&&!Ie&&W;return(0,y.jsx)(Es,{className:u()("imageSlicing",{"image-editing-slicing":wt}),xmlns:"http://www.w3.org/2000/svg",style:ot,onClick:this.handleClick,onMouseEnter:this.handleEnter,onMouseMove:this.handleMove,onMouseLeave:this.handleLeave,children:wt&&(0,y.jsxs)(y.Fragment,{children:[rt&&(0,y.jsx)("line",{className:"horizontal",xmlns:"http://www.w3.org/2000/svg",x1:0,y1:ge,x2:"100%",y2:ge}),lt&&(0,y.jsx)("line",{xmlns:"http://www.w3.org/2000/svg",className:"vertical",x1:Q,y1:0,x2:Q,y2:"100%"})]})})}}const lo=fe.Ay.div.withConfig({displayName:"styles__StyledImageWrapperMask",componentId:"sc-1a142ij-0"})([".cutWrapper{position:absolute;}.single-resizer{position:absolute;z-index:3;pointer-events:none;& > *{pointer-events:auto;}}.imageSelectBorder{position:absolute;&.currentNotSelect{.single-resizer{border:none;.rotate,.square{display:none;}&:hover{outline:2px solid #2F90F9;}}}.single-resizer{pointer-events:auto;border:1px solid #2F90F9;.rotate{path{fill:#2F90F9;}}.square{background:#FFFFFF;border:1px solid #2F90F9;width:8px;height:8px;border-radius:50%;&.t{top:-4px;}&.b{bottom:-4px;}&.r{right:-4px;}&.l{left:-4px;}&.tr{right:-4px;top:-4px;}&.tl{top:-4px;left:-4px;}&.br{bottom:-4px;right:-4px;}&.bl{bottom:-4px;left:-4px;}}}.imgDragWarp{position:absolute;pointer-events:auto;}}"]);class Ko extends x.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{slicingType:We.Pv.cross}),(0,r.A)(this,"handleGetIsCutting",()=>{const{currentImageOperateType:W}=this.props;return W===We.bl.cutting}),(0,r.A)(this,"changeCurrentSelect",W=>{const{dispatch:Q}=this.props;Q({type:"image:update:state",payload:{currentImageClipSelected:W}})}),(0,r.A)(this,"handleDocDown",W=>{const{dispatch:Q}=this.props;W.target.closest(".imageWrapperResizeBox")||W.target.closest("#setting-panel")||W.target.closest("#IBOT_DROPDOWN_MENU_ROOT")||W.target.closest(".imageSlicing")||Q({type:"entry:image-view:exit:edit"})}),(0,r.A)(this,"handleChangeSlicingType",W=>this.setState({slicingType:W}))}componentDidMount(){var W;(W=document.querySelector("#link-design"))==null||W.classList.add("hide")}componentDidUpdate(W){const{newSelections:Q,dispatch:ge,editingImageNodes:Me}=this.props,{editingImageNodes:Pe}=W;this.handleGetIsCutting()&&Me&&!Pe&&this.changeCurrentSelect(We.Q7.cutFrame),Me&&Q&&Q.length&&(Me.find(Ke=>{let{cid:ot}=Ke;return Q.includes(ot)})||ge({type:"entry:image-view:exit:edit"}))}componentWillUnmount(){var W;(W=document.querySelector("#link-design"))==null||W.classList.remove("hide")}render(){const{editingImageNodes:W,scale:Q,dispatch:ge,canvasOffset:Me,viewportRect:Pe,currentImageClipSelected:Ie,currentImageOperateType:Oe,isSpaceDown:Ke,isDraggingCanvas:ot,canvasRect:rt,defaultImageSlicingOffset:lt}=this.props,{slicingType:wt}=this.state;if(!W||!(W!=null&&W.length))return null;const so=Q/100,bo=this.handleGetIsCutting();return(0,y.jsxs)(lo,{className:"imageWrapperResizeBox",children:[bo?(0,y.jsxs)("div",{className:"cutWrapper",children:[(0,y.jsx)(zt,{dispatch:ge,activeImage:W[0].widget,ratio:so,currentSelect:Ie,changeCurrentSelect:this.changeCurrentSelect}),(0,y.jsx)(io,{activeImage:W[0].widget,ratio:so}),(0,y.jsx)(Fn,{dispatch:ge,activeImage:W[0].widget,ratio:so,currentSelect:Ie,changeCurrentSelect:this.changeCurrentSelect})]}):(0,y.jsx)(Ys,{scale:Q,canvasOffset:Me,viewportRect:Pe,editingImageNodes:W,slicingType:wt,isSpaceDown:Ke,isDraggingCanvas:ot,canvasRect:rt,defaultImageSlicingOffset:lt,dispatch:ge}),(0,y.jsx)(xs,{editingImageNodes:W,currentImageOperateType:Oe,ratio:so,slicingType:wt,canvasRect:rt,onChangeSlicingType:this.handleChangeSlicingType,dispatch:ge}),(0,y.jsx)(_.A,{target:document,onMouseDown:(0,_.t)(this.handleDocDown,{capture:!0})})]})}}const eo=(0,m.Mz)([E.tl,g.X_,g.$S,g.ER,ae.p$,E.KF,E.tR,g.ZS,g.AW,g.Pz,g.Fe],(he,W,Q,ge,Me,Pe,Ie,Oe,Ke,ot,rt)=>{let{isSpaceDown:lt}=Oe;return{editingImageNodes:he,scale:W,canvasOffset:ge,viewportRect:Q,newSelections:Me,currentImageClipSelected:Pe,currentImageOperateType:Ie,isSpaceDown:lt,isDraggingCanvas:Ke,canvasRect:ot,defaultImageSlicingOffset:rt}}),ro=(0,o.Ng)(he=>eo(he))(Ko);class Yt{renderClickEditor(){return null}renderHoverEditor(){return null}renderDbClickEditor(){return null}renderEditor(){return null}renderResize(){return null}renderResizeAndAdd(){return null}renderAnchor(){return null}renderMask(){return null}}class Be extends Yt{renderDbClickEditor(){return(0,y.jsx)(ro,{})}}const Wt=fe.Ay.div.withConfig({displayName:"styles__StyledItemElbowAnchorContainer",componentId:"sc-1b0wxk8-0"})([".anchor-container{.anchor{position:absolute;transition:all 0.3s;z-index:10;display:flex;justify-content:center;align-items:center;transform:translate(-50%,-50%);pointer-events:auto;cursor:",';&:hover{background:"red";}svg{width:100%;height:100%;}}.anchor-top{top:-',"px;left:50%;}.anchor-left{top:50%;left:-","px;}.anchor-right{top:50%;left:calc(100% + ","px);}.anchor-bottom{top:calc(100% + ","px);left:50%;}.arrow{position:absolute;transition:all 0.3s;z-index:10;display:flex;justify-content:center;align-items:center;transform:translate(-50%,-50%);pointer-events:auto;cursor:",";svg{width:100%;height:100%;}}.arrow-top{top:0;left:50%;}.arrow-left{top:50%;left:0;}.arrow-right{top:50%;left:100%;}.arrow-bottom{top:100%;left:50%;}}"],pt.M.elbowConnect,he=>he.delta,he=>he.delta,he=>he.delta,he=>he.delta,pt.M.elbowConnect);class At extends x.PureComponent{render(){const{isShow:W,viewport:Q,testHoverItem:ge,dispatch:Me}=this.props;if(!W)return null;const Pe={position:"absolute",left:0,top:0,pointerEvents:"none",zIndex:2};return(0,y.jsx)("div",{style:Pe,children:(0,y.jsx)(Xe,{viewport:Q,hoverItem:ge,dispatch:Me})})}}class Xe extends x.PureComponent{constructor(W){super(W),(0,r.A)(this,"handleMouseLeave",()=>{this.setState({activeAnchor:"none"})}),(0,r.A)(this,"handleMouseEnter",Q=>{this.setState({activeAnchor:Q})}),(0,r.A)(this,"handleMouseDown",(Q,ge)=>{Q.stopPropagation(),Q.persist();const{hoverItem:Me,dispatch:Pe}=this.props,Ie={key:Me.key,startDirection:ge};Pe({type:"entry:elbow:isInElbowMode:create",payload:{event:Q,key:Me.key,givinStartInfo:Ie,canInstantCreate:!0}})}),this.state={activeAnchor:"none"}}render(){const{viewport:W,hoverItem:Q}=this.props,{activeAnchor:ge}=this.state,{x:Me,y:Pe,w:Ie,h:Oe,r:Ke}=sdkStore.getHotBound(Q.key),ot=W.scale,rt=(Me-Ie*.5)*W.scale,lt=(Pe-Oe*.5)*W.scale,wt="translate("+rt+"px,"+lt+"px) rotate("+Ke+"deg)",so={position:"absolute",width:Ie*ot,height:Oe*ot,transform:wt,cursor:"move"},bo=16,Ro={width:bo+"px",height:bo+"px"},tn=20*1,Pn=["top","right","bottom","left"];return(0,y.jsx)(Wt,{delta:tn,className:"artboard-item",style:so,children:(0,y.jsx)("div",{className:"anchor-container",children:Pn.map(un=>(0,y.jsx)("div",{className:"anchor anchor-"+un,onMouseEnter:()=>this.handleMouseEnter(un),onMouseLeave:()=>this.handleMouseLeave(un),children:(0,y.jsx)("span",{style:Ro,onMouseDown:Xn=>this.handleMouseDown(Xn,un),children:ge===un?(0,y.jsx)(vo.C,{isColorPure:!0,size:16,name:"flow/create/add"}):(0,y.jsx)(vo.C,{isColorPure:!0,size:16,name:"flow/create/ready"})})},un))})})}}const Vt=(0,m.Mz)([g.$S,g.X_,g.ER,Ti.rP,Ti.Q1,ae.p$,g.lh,g.pO,g.Jv,p.jx],(he,W,Q,ge,Me,Pe,Ie,Oe,Ke,ot)=>{var rt,lt;const wt=!(ot===N.qi.OnlyView||Ke||Oe||Ie||Me||ge||Pe.length!==1||(0,Jt.OO)(Pe[0]));if(Pe.length!==1)return{isShow:!1};const so=sdkStore.getHotItem(Pe[0]);if(!so||![te.x.WFlowOpened,te.x.wFlowClosed].includes(so.hotAttr.type))return{isShow:!1};const bo={scale:W/100,size:{w:(rt=he==null?void 0:he.width)!=null?rt:0,h:(lt=he==null?void 0:he.height)!=null?lt:0},offset:Q};return{isShow:wt,viewport:bo,testHoverItem:so}}),Xo=(0,o.Ng)(he=>Vt(he))(At);class rn extends Yt{renderClickEditor(){return(0,y.jsx)(Xo,{})}}const Ps=fe.Ay.div.withConfig({displayName:"styles__StyledItemElbowAnchorContainer",componentId:"sc-4inxqn-0"})([".anchor-container{.anchor{position:absolute;transition:all 0.3s;z-index:10;display:flex;justify-content:center;align-items:center;transform:translate(-50%,-50%);pointer-events:auto;cursor:",";svg{width:100%;height:100%;}}.anchor-top{top:0;left:50%;}.anchor-left{top:50%;left:0;}.anchor-right{top:50%;left:100%;}.anchor-bottom{top:100%;left:50%;}.arrow{position:absolute;transition:all 0.3s;z-index:10;display:flex;justify-content:center;align-items:center;transform:translate(-50%,-50%);pointer-events:auto;svg{width:100%;height:100%;}}.arrow-top{top:0;left:50%;}.arrow-left{top:50%;left:0;}.arrow-right{top:50%;left:100%;}.arrow-bottom{top:100%;left:50%;}}"],pt.M.defaultCreate),Os=(0,y.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,y.jsx)("circle",{cx:"10",cy:"10",r:"5.3",fill:"#fff",stroke:"#1684FC",strokeWidth:"1.5"})}),ss=(0,y.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,y.jsx)("circle",{cx:"10",cy:"10",r:"5.3",fill:"#1684FC",stroke:"#fff",strokeWidth:"1.5"})});class Fs extends x.PureComponent{render(){const{viewport:W,hoverItem:Q,highlightAnchor:ge,isShow:Me}=this.props;if(!Me)return null;const{scale:Pe,offset:Ie}=W,Oe={position:"absolute",left:0,top:0,transform:"matrix("+Pe+", 0, 0, "+Pe+", "+Ie.x+", "+Ie.y+")",pointerEvents:"none",zIndex:3};return(0,y.jsx)("div",{style:Oe,children:(0,y.jsx)(Ei,{viewport:W,hoverItem:Q,highlightAnchor:ge})})}}class Ei extends x.PureComponent{render(){const{viewport:W,hoverItem:Q,highlightAnchor:ge}=this.props,{x:Me,y:Pe,w:Ie,h:Oe,r:Ke}=sdkStore.getHotBound(Q.key),ot=Me-Ie*.5-W.offset.x/W.scale,rt=Pe-Oe*.5-W.offset.y/W.scale,lt="translate("+ot+"px,"+rt+"px) rotate("+Ke+"deg)",wt={position:"absolute",width:Ie,height:Oe,transform:lt,cursor:"move"},{scale:so}=W;let bo=Math.round(20/so);bo=bo>=1?bo:1;const Ro={width:bo+"px",height:bo+"px"},tn=["top","right","bottom","left"];return(0,y.jsx)(Ps,{className:"artboard-item",style:wt,children:(0,y.jsx)("div",{className:"anchor-container",children:tn.map(Pn=>(0,y.jsx)("div",{children:(0,y.jsx)("span",{"data-cid":Q.key,className:"anchor anchor-"+Pn+" elbow-anchor-start-point",style:Ro,children:ge===Pn?ss:Os})},Pn))})})}}const vi=(0,m.Mz)([g.$S,g.X_,g.ER,p.IL,Ti.rP,Ti.e8,Ti.Q1],(he,W,Q,ge,Me,Pe,Ie)=>{var Oe,Ke;if(!Ie&&!Me)return{isShow:!1};if(!ge)return{isShow:!1};const ot=sdkStore.getHotItem(ge);return ot?[te.x.WElbow,te.x.WTear].includes(ot.hotAttr.type)?{isShow:!1}:{isShow:!0,viewport:{scale:W/100,size:{w:(Oe=he==null?void 0:he.width)!=null?Oe:0,h:(Ke=he==null?void 0:he.height)!=null?Ke:0},offset:Q},hoverItem:ot,highlightAnchor:Pe}:{isShow:!1}}),li=(0,o.Ng)(he=>vi(he))(Fs);class Ci extends Yt{renderAnchor(){return(0,y.jsx)(li,{})}}var yi=e(95230),ea=e(1694),ii=e(20154);const Wi={keys:{mod:{type:"entry:vector:shortcut:by:mod"},"command+a":{type:"entry:vector:shortcut:by:selectAll"},"ctrl+a":{type:"entry:vector:shortcut:by:selectAll"},"mod+alt+o":{type:"entry:vector:shortcut:by:toggle:closed"},tab:{type:"entry:vector:shortcut:by:tab"},backspace:{type:"entry:vector:shortcut:by:del"},del:{type:"entry:vector:shortcut:by:del"},"command+x":{type:"entry:vector:shortcut:by:del"},"ctrl+x":{type:"entry:vector:shortcut:by:del"},1:{type:"entry:vector:shortcut:by:pointType",payload:{pointType:Pt.pQ.Straight}},2:{type:"entry:vector:shortcut:by:pointType",payload:{pointType:Pt.pQ.Mirrored}},3:{type:"entry:vector:shortcut:by:pointType",payload:{pointType:Pt.pQ.Asymmetric}},4:{type:"entry:vector:shortcut:by:pointType",payload:{pointType:Pt.pQ.Disconnected}},enter:{type:"entry:vector:exit:edit",payload:{end:ii.z9.Enter}},esc:{type:"entry:vector:esc"},"mod+enter":{type:"entry:vector:exit:edit",payload:{end:ii.z9.Enter}},left:{type:"entry:vector:shortcut:by:arrowKey",payload:{dir:"x",rate:-1}},right:{type:"entry:vector:shortcut:by:arrowKey",payload:{dir:"x",rate:1}},up:{type:"entry:vector:shortcut:by:arrowKey",payload:{dir:"y",rate:-1}},down:{type:"entry:vector:shortcut:by:arrowKey",payload:{dir:"y",rate:1}},"shift+left":{type:"entry:vector:shortcut:by:arrowKey",payload:{dir:"x",rate:-10}},"shift+right":{type:"entry:vector:shortcut:by:arrowKey",payload:{dir:"x",rate:10}},"shift+up":{type:"entry:vector:shortcut:by:arrowKey",payload:{dir:"y",rate:-10}},"shift+down":{type:"entry:vector:shortcut:by:arrowKey",payload:{dir:"y",rate:10}}},priority:ea.zu.Mode},ua=fe.Ay.div.withConfig({displayName:"styles__StyledVectorContainer",componentId:"sc-t98sfp-0"})(["position:absolute;width:100vw;height:",";pointer-events:none;z-index:3;.vector-container{position:absolute;top:0;height:100%;}"],he=>"calc(100vh - "+he.currentToolBarHeight+"px)");var va=e(29107);const tr={top:-yi.MV,left:-yi.MV};class xa extends x.PureComponent{constructor(W){var Q;super(W),Q=this,(0,r.A)(this,"handleUpdateState",()=>this.setState({innerHeight:window.innerHeight,innerWidth:window.innerWidth})),(0,r.A)(this,"handleAdsorption",(ge,Me)=>{(0,va._c)({type:te.x.WVector})||this.props.dispatch({type:"set:quick-create-widget",payload:{widget:null}});const{viewport:Pe,listX:Ie,listY:Oe}=this.props,Ke=(0,Pt.pF)(Pe.scale*100),{x:ot,y:rt}=gt.L.applyInverse(Pe,ge),lt=(0,Pt.xZ)(Math.round(ot),Ie,Ke),wt=(0,Pt.xZ)(Math.round(rt),Oe,Ke);return Me.inverted().apply({x:lt||Math.round(ot),y:wt||Math.round(rt)})}),(0,r.A)(this,"handleClientPosition",ge=>{const{leftPanelWidth:Me,currentToolBarHeight:Pe}=this.props;return re.Z.xy(ge.clientX-Me,ge.clientY-Pe)}),(0,r.A)(this,"handleChangeProps",function(ge,Me){Me===void 0&&(Me=!1);const{vector:Pe}=ge,{dispatch:Ie}=Q.props;Pe&&Ie({type:"entry:vector:update:vector",payload:{vector:Pe,compressible:Me}})}),(0,r.A)(this,"handleChangeState",function(ge,Me){Me===void 0&&(Me=void 0);const{vectorEditor:Pe,dispatch:Ie}=Q.props;Ie(N.GO.update({vectorEditor:{...Pe,selectedIndex:ge,selectedAssistIndex:Me}}))}),(0,r.A)(this,"handleExitEdit",()=>{this.props.dispatch(N.GO.update({enabledRangeSelection:2}))}),(0,r.A)(this,"handleClearSelection",()=>{this.props.dispatch(N.GO.update({enabledRangeSelection:1}))}),(0,r.A)(this,"handleMouseUp",()=>{}),(0,r.A)(this,"handleClickOutSide",ge=>{const Me=document.querySelector("svg.vector-container"),Pe=document.querySelector("#setting-panel");Me&&!Me.contains(ge.target)&&!(Pe!=null&&Pe.contains(ge.target))&&this.props.dispatch({type:"entry:vector:exit:edit",payload:{end:ii.z9.ClickBlank}})}),(0,r.A)(this,"handleCombineMarkChange",ge=>sdkStore.combineMergeMark(ge)),(0,r.A)(this,"handleCombineChange",ge=>sdkStore.combineMerge(ge)),this.state={innerWidth:window.innerWidth,innerHeight:window.innerHeight}}componentDidMount(){window.addEventListener("resize",this.handleUpdateState)}componentWillUnmount(){window.removeEventListener("resize",this.handleUpdateState)}render(){var W;const{mapX:Q,mapY:ge,viewport:Me,widget:Pe,rect:Ie,vectorEditor:Oe,boundingBoxTransform:Ke,leftPanelWidth:ot,currentToolBarHeight:rt,canvasOffset:lt}=this.props;if(!Oe)return null;const{x:wt,y:so}=lt,{innerWidth:bo,innerHeight:Ro}=this.state,tn={top:yi.MV,left:yi.MV,pointerEvents:"auto"},Pn={width:((W=Me.size)==null?void 0:W.w)+"px",left:ot+"px"},un={transform:"matrix(1, 0, 0, 1, "+(Math.round(-wt)-bo/2)+", "+(Math.round(-so)-(Ro-rt)/2)+")"};return(0,y.jsx)(ua,{currentToolBarHeight:rt,style:un,children:(0,y.jsxs)("div",{className:"vector-container",style:Pn,children:[(0,y.jsx)(Pt.VV,{shortcutsSheet:Wi,svgStyle:tr,wrapperStyle:tn,mapX:Q,mapY:ge,rect:Ie,widget:Pe,viewport:Me,vectorEditor:Oe,boundingBoxTransform:Ke,onExit:this.handleExitEdit,onClearSelection:this.handleClearSelection,onMouseUp:this.handleMouseUp,onChangeProps:this.handleChangeProps,onChangeState:this.handleChangeState,handleAdsorption:this.handleAdsorption,handleClientPosition:this.handleClientPosition,handleCombineMarkChange:this.handleCombineMarkChange,handleCombineChange:this.handleCombineChange}),(0,y.jsx)(_.A,{target:document,onPointerDown:(0,_.t)(this.handleClickOutSide,{capture:!0})})]})})}}var dr=e(60420);const gr=he=>{const{widget:{vector:W}}=he,{x:Q,y:ge}=(0,Pt.rj)(W),Me=(0,Le.Oj)(he.key),Ie=Me.transform.clone().applyWithoutXY({x:-Q,y:-ge});return{...Me,transform:Me.transform.clone().translate(Ie)}},ir=(0,m.Mz)([dr.H,b.UV,p.lY,dr.n,h.wT,g.ER],(he,W,Q,ge,Me,Pe)=>{var Ie;if(!Q)return{};const{key:Oe}=Q,Ke=W.getNode(Oe);if((Ke==null?void 0:Ke.type)!==te.x.WVector||!(Ke!=null&&(Ie=Ke.widget)!=null&&Ie.vector))return{};const ot=(0,Pt.YW)(Ke.key),rt=gt.L.toMutableTransform(he).append(ot);let lt=null;return Q&&(lt={...Ke.widget,worldBoundingBox:gr(Ke)}),{viewport:he,vectorEditor:Q,widget:lt,boundingBoxTransform:rt,leftPanelWidth:ge,rect:(0,Pt.rj)(Ke.widget.vector),mapX:new Map,mapY:new Map,listX:[],listY:[],currentToolBarHeight:Me,canvasOffset:Pe}}),Wr=(0,o.Ng)(he=>ir(he))(xa),pl=fe.Ay.div.withConfig({displayName:"styles__StyledVectorContainer",componentId:"sc-123ung9-0"})(["position:absolute;width:100vw;height:",";pointer-events:none;z-index:3;.vector-container{position:absolute;top:0;height:100%;}"],he=>"calc(100vh - "+he.currentToolBarHeight+"px)"),br=(he,W,Q)=>({x:Q.a*he+Q.c*W+Q.e,y:Q.b*he+Q.d*W+Q.f});var Na=e(68496),Nr=e(89104),ma=e(99005);const hr=fe.Ay.div.withConfig({displayName:"styles__StyledPencilDraw",componentId:"sc-a2kzkd-0"})(["position:absolute;width:100%;height:100%;overflow:hidden;&.init-cursor{cursor:",";}.vector-container{position:absolute;top:0;left:0;width:100%;height:100%;}"],pt.M.pencilCreate);var Ir=e(73773),Jr=e(36429);const ml={top:ma.MV,left:ma.MV,pointerEvents:"auto"},zc={top:-ma.MV,left:-ma.MV},zl=he=>({closed:!!he.closed,points:he.segments.map(W=>{let{point:Q,handleOut:ge,handleIn:Me}=W;return{x:Q.x,y:Q.y,type:Pt.pQ.Mirrored,radius:0,prev:{x:Me.x,y:Me.y},next:{x:ge.x,y:ge.y}}})});class Wl extends x.Component{constructor(){super(...arguments),(0,r.A)(this,"state",{points:[],isDrawing:!1}),(0,r.A)(this,"svgRef",x.createRef()),(0,r.A)(this,"path",null),(0,r.A)(this,"paper",null),(0,r.A)(this,"handleKeydown",W=>{W.key===Ir._.Enter&&(this.props.dispatch({type:"entry:pencil:vector:exit:edit",payload:{isSelectLastCreate:!0}}),this.props.dispatch({type:"set:quick-create-widget",payload:{widget:null}}))}),(0,r.A)(this,"getMouseRelativePoint",W=>{var Q;const Me=(Q=this.svgRef.current.getScreenCTM())==null?void 0:Q.inverse();return br(W.clientX,W.clientY,Me)}),(0,r.A)(this,"drawPoint",W=>{var Q;const ge=this.getMouseRelativePoint(W);if(!this.paper)return;const Me=new this.paper.Point(ge.x,ge.y);this.setState({points:[...this.state.points,Me]}),(Q=this.path)==null||Q.add(Me)}),(0,r.A)(this,"endDraw",()=>{if(!this.path)return;const{dispatch:W}=this.props;W({type:"entry:pencil:create:vector",payload:{path:this.path.clone(),getRelativeVectorFromPath:zl}}),this.setState({isDrawing:!1,points:[]}),this.path.remove(),this.paper&&(this.path=new this.paper.Path)}),(0,r.A)(this,"handleMouseDown",W=>{this.setState({isDrawing:!0}),this.drawPoint(W)}),(0,r.A)(this,"handleMouseMove",W=>{this.state.isDrawing&&this.drawPoint(W)}),(0,r.A)(this,"handleMouseUp",W=>{this.state.isDrawing&&(this.drawPoint(W),this.endDraw())})}async componentDidMount(){const{paper:W}=await Jr.W3.loadLLG();W&&(W.setup(document.createElement("canvas")),this.path=new W.Path,this.paper=W,document.addEventListener("keydown",this.handleKeydown))}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeydown)}render(){const W=this.state.points.map(rt=>rt.x+","+rt.y).join(" "),Q="init-cursor",{bdrStyle:ge,bdrColor:Me,bdrWidth:Pe,scale:Ie}=this.props,Oe=(0,Na.t0)(Me),Ke=(0,Nr.Mx)(ge,Number.parseInt(Pe)),ot=Pe*Ie/100;return(0,y.jsx)(hr,{className:Q+" pencil-draw-container",style:ml,children:(0,y.jsx)("svg",{ref:this.svgRef,className:"vector-container",style:zc,onMouseDown:this.handleMouseDown,onMouseMove:this.handleMouseMove,onMouseUp:this.handleMouseUp,children:(0,y.jsx)("polyline",{points:W,fill:"transparent",stroke:Oe,strokeWidth:ot,strokeDasharray:Ke})})})}}var $r=e(3835);class Bl extends x.Component{constructor(){super(...arguments),(0,r.A)(this,"state",{innerWidth:window.innerWidth,innerHeight:window.innerHeight}),(0,r.A)(this,"handleUpdateState",()=>{this.setState({innerWidth:window.innerWidth,innerHeight:window.innerHeight})})}componentDidMount(){window.addEventListener("resize",this.handleUpdateState)}componentWillUnmount(){window.removeEventListener("resize",this.handleUpdateState)}render(){var W;const{innerWidth:Q,innerHeight:ge}=this.state,{currentToolBarHeight:Me,canvasOffset:Pe,viewport:Ie,leftPanelWidth:Oe,bdrColor:Ke,bdrWidth:ot,bdrStyle:rt,scale:lt,dispatch:wt}=this.props,{x:so,y:bo}=Pe,Ro={transform:"matrix(1, 0, 0, 1, "+(Math.round(-so)-Q/2)+", "+(Math.round(-bo)-(ge-Me)/2)+")"},tn={width:((W=Ie.size)==null?void 0:W.w)+"px",left:Oe+"px"};return(0,y.jsx)(pl,{currentToolBarHeight:Me,style:Ro,children:(0,y.jsx)("div",{className:"vector-container",style:tn,children:(0,y.jsx)(Wl,{bdrColor:Ke,bdrWidth:ot,bdrStyle:rt,scale:lt,dispatch:wt})})})}}const Jl=(0,m.Mz)([dr.H,dr.n,h.wT,g.ER,$r.lu,$r.E,$r.pp,g.X_],(he,W,Q,ge,Me,Pe,Ie,Oe)=>({viewport:he,leftPanelWidth:W,currentToolBarHeight:Q,canvasOffset:ge,bdrColor:Me,bdrWidth:Pe,bdrStyle:Ie,scale:Oe})),$l=(0,o.Ng)(he=>Jl(he))(Bl);class Rl extends Yt{renderDbClickEditor(){return(0,y.jsx)(Wr,{})}}class Ic extends Yt{renderMouseDownEditor(){return(0,y.jsx)($l,{})}}var Sl=e(78081);const ql=fe.Ay.div.withConfig({displayName:"styles__StyledTableResize",componentId:"sc-10cl39n-0"})(["position:absolute;z-index:1;width:100%;height:100%;left:0;top:0;pointer-events:none;&.ns{cursor:",";pointer-events:auto;}&.ew{cursor:",";pointer-events:auto;}.horizontal{position:absolute;width:100%;height:3px;background:rgba(22,132,252,.6);cursor:",";pointer-events:auto;}.vertical{position:absolute;height:100%;width:3px;background:rgba(22,132,252,.6);cursor:",";pointer-events:auto;}.vertical,.horizontal{opacity:0;&:hover,&.active{opacity:1;transition-property:opacity;transition-duration:0.5s;}}"],pt.M.nsResize,pt.M.ewResize,pt.M.nsResize,pt.M.ewResize),uc=(0,m.Mz)([ae.p$,g.X_],(he,W)=>{const Q=W/100;return{selection:he,ratio:Q}}),mc=()=>{const{selection:he,ratio:W}=(0,o.d4)(uc);if(he.length!==1)return null;const Q=sdkStore.getHotItem(he[0]);if(!Q||Q.hotAttr.type!==te.x.WSwimlane)return null;const ge={widgetKey:he[0],ratio:W};return(0,y.jsx)(ld,{...ge})},ld=he=>{const{widgetKey:W,ratio:Q}=he,ge=(0,o.d4)(b.RX),Me=sdkStore.getHotItem(W),{x:Pe,y:Ie,w:Oe,h:Ke}=sdkStore.getHotBound(W),{database:ot,swimConfig:rt,swimlaneType:lt}=Me.hotAttr,{isShowBigTitle:wt}=rt,{table:so,widthList:bo,heightList:Ro}=ot,tn=(0,o.wA)(),[Pn,un]=(0,x.useState)([]),[Xn,ws]=(0,x.useState)([]),[zs,fn]=(0,x.useState)(""),[Ds,gi]=(0,x.useState)(""),hi=(0,x.useCallback)(Ka=>{const da=[];let aa=0,ka=0;!wt&<==="topBottom"&&(ka=1);for(let Vi=ka;Vi<so[1].length;Vi++){const Di=Ka[Vi];aa+=Di,da.push(aa)}ws(da)},[wt,lt,so]),Ni=(0,x.useCallback)(Ka=>{const da=[];let aa=0,ka=0;!wt&<==="leftRight"&&(ka=1);for(let Vi=ka;Vi<so.length;Vi++){const Di=Ka[Vi];aa+=Di,da.push(aa)}un(da)},[wt,lt,so.length]);(0,x.useEffect)(()=>{Ni(Ro),hi(bo)},[Ro,bo,Ni,hi,ge]);const ba=Ka=>{Ka.preventDefault(),Ka.stopPropagation();const{clientX:da,clientY:aa}=Ka,{lineType:ka,pos:Vi}=Ka.currentTarget.dataset,Di=(0,Cn.Ie)(Me.key),{hb:pa}=Di[Me.key],Ra=pa.x-pa.w*.5,Ar=pa.y-pa.h*.5,ja=Rr=>{const sr=[{key:Me.key,hotAttr:{...Me.hotAttr,database:{...ot}}}],kc=Math.ceil(Number(Rr.clientX-da)/Q),xl=Math.ceil(Number(Rr.clientY-aa)/Q);gi(ka);let Vr=null;if(ka.includes("HL")){const{newHeightList:ll,newH:Zr}=(0,Sl.s2)({handleAttr:{type:"bottom",delta:xl,heightList:Ro,x:parseInt(Vi),swimlaneType:lt,isShowBigTitle:wt}});sr[0].hotAttr.h=Zr,sr[0].hotAttr.y=Ar+Zr*.5;const{y:wc}=sdkStore.toAttrXY({x:0,y:Ar+Zr*.5},Me.key);sr[0].hotAttr.y=wc,sr[0].hotAttr.database.heightList=ll,Vr=()=>Ni(ll),fn("ns")}else{const{newWidthList:ll,newW:Zr}=(0,Sl.s2)({handleAttr:{type:"right",delta:kc,widthList:bo,y:parseInt(Vi),swimlaneType:lt,isShowBigTitle:wt}});sr[0].hotAttr.w=Zr,sr[0].hotAttr.x=Ra+Zr*.5;const{x:wc}=sdkStore.toAttrXY({x:Ra+Zr*.5,y:0},Me.key);sr[0].hotAttr.x=wc,sr[0].hotAttr.database.widthList=ll,Vr=()=>hi(ll),fn("ew")}tn({type:"entry:widget:change",payload:{flatChgList:sr}}),Vr&&Vr()},wr=()=>{gi(""),fn(""),document.removeEventListener("mousemove",ja),document.removeEventListener("mouseup",wr)};document.addEventListener("mousemove",ja),document.addEventListener("mouseup",wr)},fa={width:Oe*Q,height:Ke*Q,transform:"translate("+(Pe-Oe*.5)*Q+"px,"+(Ie-Ke*.5)*Q+"px) "};return(0,y.jsxs)(ql,{className:u()("tableResize",zs&&zs),style:fa,children:[Pn.map((Ka,da)=>{let aa=da;const ka="HL-"+(da+1);return!wt&<==="leftRight"&&(aa+=1),(0,y.jsx)("div",{"data-pos":aa,"data-line-type":ka,onMouseDown:ba,className:u()("horizontal",Ds===ka&&"active"),style:{top:(Ka-1)*Q+"px"}},da)}),Xn.map((Ka,da)=>{let aa=da;const ka="VL-"+(da+1);return!wt&<==="topBottom"&&(aa+=1),(0,y.jsx)("div",{"data-pos":aa,"data-line-type":ka,onMouseDown:ba,className:u()("vertical",Ds===ka&&"active"),style:{left:(Ka-1)*Q+"px"}},da)})]})};class Gc extends Yt{renderClickEditor(){return(0,y.jsx)(mc,{})}}const ar=fe.Ay.div.withConfig({displayName:"styles__StyledBasketTooltip",componentId:"sc-qq1fy9-0"})(["z-index:2;.behavior{position:absolute;top:50%;left:50%;margin-left:-61px;margin-top:-16px;line-height:32px;height:32px;width:122px;font-size:12px;z-index:101;text-align:center;background-color:rgba(31,41,46,0.64);border-radius:2px;pointer-events:none;&:lang(en){width:220px;margin-left:-110px;}&:lang(ja){width:150px;margin-left:-75px;}p{color:#fff;}}"]);class ec extends x.PureComponent{render(){var W;const{onlyView:Q,hoverItem:ge,scale:Me,isShow:Pe}=this.props;if(!Pe)return null;const Ie=sdkStore.getHotItem(ge);if(!Ie||Ie!=null&&(W=Ie.hotAttr)!=null&&W.isLock)return null;const Oe=(Ie==null?void 0:Ie.hotAttr.type)==="wBasket"&&(Ie==null?void 0:Ie.hotAttr.basket)==="bDanli",Ke=(0,ri.td)([Ie.key]);if(!Oe||Ke&&!Q)return null;const{transform:ot,rect:rt}=(0,Le.Oj)(ge),{a:lt,b:wt,c:so,d:bo}=ot,{x:Ro,y:tn}=ot.clone().scale(Me/100,Me/100).apply({x:rt.x,y:rt.y}),{x:Pn,y:un}=re.Z.mul(re.Z.xy(rt.w,rt.h),Me/100),Xn={position:"absolute",overflow:"hidden",left:Ro,top:tn,width:Pn,height:un,transform:"matrix("+lt+","+wt+","+so+","+bo+",0,0)"};return(0,y.jsx)(ar,{style:Xn,children:(0,y.jsx)("div",{className:"behavior",children:(0,y.jsx)("p",{children:Oe?Q?"\u53CC\u51FB\u67E5\u770B\u52A8\u6001\u7EC4\u4EF6":I18N.ScreenContainer.dblclick_to_edit_dy:I18N.ScreenContainer.dblclick_to_edit})})})}}const gd=(0,m.Mz)([p.IL,g.X_,p.jx,g.pO,ae.x$],(he,W,Q,ge,Me)=>{var Pe;return!he||ge?{isShow:!1}:((Pe=sdkStore.getHotItem(he))==null?void 0:Pe.hotAttr.type)!==te.x.WBasket?{isShow:!1}:{isShow:!0,hoverItem:he,scale:W,onlyView:Q===N.qi.OnlyView,selectedTrees:Me}}),Yc=(0,o.Ng)(he=>gd(he))(ec);class _c extends Yt{renderHoverEditor(){return(0,y.jsx)(Yc,{})}}var Zc=e(67305);const i0=fe.Ay.div.withConfig({displayName:"style__StyledTableResize",componentId:"sc-rvb1v1-0"})(["position:absolute;z-index:1;width:100%;height:100%;left:0;top:0;pointer-events:none;.horizontal{position:absolute;width:100%;height:3px;background:rgba(22,132,252,.6);cursor:row-resize;pointer-events:all;}.vertical{position:absolute;height:100%;width:3px;background:rgba(22,132,252,.6);cursor:col-resize;pointer-events:all;}.vertical,.horizontal{opacity:0;&.is-table-dragging{cursor:grabbing;&:hover,&:active{opacity:0;}}&:hover,&:active{opacity:1;transition-property:opacity;transition-duration:0.5s;}}.horizontal-options{position:absolute;width:100%;left:0;top:-30px;height:30px;background-color:red;display:flex;align-items:center;}.vertical-options{position:absolute;height:100%;left:-30px;top:0;width:30px;background-color:gray;display:flex;align-items:center;flex-direction:column;}"]),Mc=14,Id=24,Tc=10,jd=Tc+1,mp=40,H0=fe.Ay.div.withConfig({displayName:"styles__TableAddStyled",componentId:"sc-15cvdsc-0"})(["width:","px;height:","px;position:absolute;pointer-events:all;display:flex;cursor:pointer;display:flex;align-items:center;flex-direction:row;&.horizontal-add-handle-warp{left:-","px;align-items:center;}&.vertical-add-handle-warp{top:-","px;justify-content:center;}.horizontal-add-handle{background:#DBDBDB;width:4px;height:4px;border-radius:50%;position:absolute;left:5px;}.vertical-add-handle{width:4px;height:4px;background:#DBDBDB;border-radius:50%;position:absolute;top:5px;}.add-lineH,.add-lineV,.horizontal-add-handle-svg,.vertical-add-handle-svg{display:none;}.horizontal-add-handle-svg,.vertical-add-handle-svg,.on-mouser-leaveV,.on-mouser-leaveH{width:","px;height:","px;}.on-mouser-leaveH{animation:0.4s svgScaleReverseH 1;animation-fill-mode:forwards;position:absolute;left:-5px;}.on-mouser-leaveV{animation:0.4s svgScaleReverseV 1;animation-fill-mode:forwards;position:absolute;top:-5px;}&.drag-select{.horizontal-add-handle-warp,.vertical-add-handle-warp,.add-lineH,.add-lineV{display:block;}}&.is-dragging{cursor:grabbing;.horizontal-add-handle-warp,.vertical-add-handle-warp,.add-lineH,.add-lineV{pointer-events:none;}}.add-lineH{height:2px;background:#298DF8;position:absolute;left:","px;}.add-lineV{width:2px;background:#298DF8;position:absolute;top:","px;}&:not(.drag-select):not(.is-dragging):hover{.horizontal-add-handle-svg,.add-lineH,.add-lineV,.vertical-add-handle-svg{display:block;}.vertical-add-handle-svg{position:absolute;top:-5px;animation:0.4s svgScaleV 1;}.horizontal-add-handle-svg{position:absolute;left:-5px;animation:0.4s svgScaleV 1;}.horizontal-add-handle,.on-mouser-leaveH,.on-mouser-leaveV .vertical-add-handle{display:none;}}@keyframes svgScaleV{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes svgScaleReverseH{0%{transform:scale(1);opacity:1}60%{transform:scale(0.2);opacity:0}100%{transform:scale(0);opacity:0}}@keyframes svgScaleReverseV{0%{transform:scale(1);opacity:1}60%{transform:scale(0.2);opacity:0}100%{transform:scale(0);opacity:0}}"],Mc,Mc,Mc+jd,Mc+jd,Id,Id,Mc+jd,Mc+jd),K0=he=>{let{values:W,indexAndType:Q,handleAddRows:ge,onAddHandleMouseLeave:Me,styles:Pe,isDragSelect:Ie}=he;const Oe=(0,o.d4)(gs.CY),Ke=(0,o.d4)(gs.sx);return(0,y.jsx)(y.Fragment,{children:W.map((ot,rt)=>{const lt=Ie&&Q&&Q.index===String(rt)&&Q.rtype==="h";return(0,y.jsxs)(H0,{"data-index":rt,"data-rtype":"h",className:"table-add-handle horizontal-add-handle-warp "+(lt&&"drag-select")+" "+(Ke&&"is-dragging"),style:{top:ot-Mc/2+"px"},onMouseDown:ge,onMouseLeave:Me,children:[(0,y.jsx)("div",{className:"horizontal-add-handle"}),(0,y.jsx)(vo.C,{name:"design/table/Hhandle",className:"horizontal-add-handle-svg"}),!Oe&&Q&&Q.index===String(rt)&&Q.rtype==="h"&&(0,y.jsx)(vo.C,{name:"design/table/Hhandle",className:"on-mouser-leaveH"}),(0,y.jsx)("div",{className:"add-lineH",style:Pe})]},rt)})})},S0=he=>{let{values:W,indexAndType:Q,handleAddColumns:ge,onAddHandleMouseLeave:Me,styles:Pe,isDragSelect:Ie}=he;const Oe=(0,o.d4)(gs.CY),Ke=(0,o.d4)(gs.sx);return(0,y.jsx)(y.Fragment,{children:W.map((ot,rt)=>{const lt=Ie&&Q&&Q.index===String(rt)&&Q.rtype==="v";return(0,y.jsxs)(H0,{"data-index":rt,"data-rtype":"v",className:"table-add-handle vertical-add-handle-warp "+(lt&&"drag-select")+" "+(Ke&&"is-dragging"),style:{left:ot-Mc/2+"px"},onMouseDown:ge,onMouseLeave:Me,children:[(0,y.jsx)("div",{className:"vertical-add-handle"}),(0,y.jsx)(vo.C,{name:"design/table/handle",className:"vertical-add-handle-svg"}),!Oe&&Q&&Q.index===String(rt)&&Q.rtype==="v"&&(0,y.jsx)(vo.C,{name:"design/table/handle",className:"on-mouser-leaveV"}),(0,y.jsx)("div",{className:"add-lineV",style:Pe})]},ot)})})},Ch=(0,x.memo)(he=>{const{isRow:W,widget:Q,radio:ge}=he;return(0,y.jsx)(y.Fragment,{children:W?(0,y.jsx)(K0,{...he,styles:{width:Q.width*ge,height:2*ge}}):(0,y.jsx)(S0,{...he,styles:{height:Q.height*ge,width:2*ge}})})});var a0=e(7997),gp=e(51691),Qd=e(61269),Md=e(40829);const Up=(he,W)=>{if(!he||!W)return{selRows:[],selColumns:[]};const{selectionLeftTopInfo:{x:Q,y:ge},selectionRightBottomInfo:{x:Me,y:Pe}}=W;let Ie,Oe;const Ke=Me-Q+1,ot=Pe-ge+1;if((0,Md.SS)(he)){const{widthList:rt,heightList:lt}=he;Ie=lt.map((wt,so)=>{if(so>=ge&&so<=Pe&&Ke===rt.length)return so}).filter(wt=>wt!==void 0),Oe=rt.map((wt,so)=>{if(so>=Q&&so<=Me&&ot===lt.length)return so}).filter(wt=>wt!==void 0)}else{const{tableData:{data:rt,rows:lt,columns:wt}}=he;Ie=lt.map((so,bo)=>{if(bo>=ge&&bo<=Pe&&rt[bo].length===Ke)return bo}).filter(so=>so!==void 0),Oe=wt.map((so,bo)=>{if(bo>=Q&&bo<=Me&&rt.length===ot)return bo}).filter(so=>so!==void 0)}return{selRows:Ie,selColumns:Oe}},_r=he=>{let{isHorizontal:W,isShiftDown:Q,index:ge,widget:Me,selectTableCellInfo:Pe}=he;const{tableData:{rows:Ie,columns:Oe}}=Me;let Ke,ot;if((0,Md.SS)(Me)){const{widthColumns:so,heightRows:bo}=(0,Sl.SK)(Me);ot=so,Ke=bo}else ot=Oe,Ke=Ie;const{selColumns:rt,selRows:lt}=Up(Me,Pe);let wt={x1:0,y1:0,x2:0,y2:0};if(W)if(rt.length===0||!Q)wt={x1:ge,y1:0,x2:ge,y2:Ke.length-1};else{const{selectionLeftTopInfo:{x:so,y:bo},selectionRightBottomInfo:{x:Ro,y:tn}}=Pe;wt=rt.some(un=>Number(un)>ge)?{x1:ge,y1:0,x2:Ro,y2:tn}:{x1:so,y1:bo,x2:ge,y2:Ke.length-1}}else if(lt.length===0||!Q)wt={x1:0,y1:ge,x2:ot.length-1,y2:ge};else{const{selectionLeftTopInfo:{x:so,y:bo},selectionRightBottomInfo:{x:Ro,y:tn}}=Pe;wt=lt.some(un=>Number(un)>ge)?{x1:so,y1:ge,x2:Ro,y2:tn}:{x1:so,y1:bo,x2:ot.length-1,y2:ge}}(0,a0.Z)({widget:Me,...wt,isDragSelected:!0}),(0,Qd.t0)({isEditTable:!0})},r0=(he,W,Q)=>{if(!W||!Q)return!1;const{tableData:{mergeCells:ge}}=sdkStore.getHotItem(W.key).hotAttr,{selectionLeftTopInfo:{x:Me,y:Pe},selectionRightBottomInfo:{x:Ie,y:Oe}}=Q;return!Object.entries(ge).some(ot=>{let[rt,lt]=ot;if(he){const wt=lt[0],so=Number(rt.split("-")[0]),bo=so+wt,Ro=Ie+1;return so<Me&&bo>Me||bo>Ro&&so<Ro}else{const wt=lt[1],so=Number(rt.split("-")[1]),bo=so+wt,Ro=Oe+1;return so<Pe&&bo>Pe||bo>Ro&&so<Ro}})},Hh=he=>{let{widget:W,values:Q,selectRowsOrColumns:ge,isHorizontal:Me,scale:Pe}=he;const Ie=[0],{tableData:{mergeCells:Oe}}=W;Q.reduce((lt,wt)=>(lt=lt+wt*Pe,Ie.push(lt),lt),0);let Ke=Ie.map((lt,wt)=>{let so=0,bo=0;const Ro=Q.map(tn=>tn*Pe);return wt===0?(so=-1e6,bo=Ro[wt]/2):wt===Ro.length?(so=lt-Ro[wt-1]/2,bo=lt+1e6):(so=lt-Ro[wt-1]/2,bo=lt+Ro[wt]/2),{index:wt,location:lt,hotZoonStart:so,hotZoonEnd:bo}}).filter((lt,wt)=>!ge.includes(wt-1));ge.length>0&&(Ke=Ke.filter(lt=>{let{index:wt}=lt;return wt!==Number(ge[0])}));function ot(lt,wt){const so=[];for(let bo=lt;bo<=wt;bo++)so.push(bo);return so}let rt=[];return Object.entries(Oe).some(lt=>{let[wt,so]=lt;if(Me){const bo=so[0],Ro=Number(wt.split("-")[0]),tn=Ro+bo,Pn=ot(Ro+1,tn-1);rt=Array.from(new Set(rt.concat(Pn)))}else{const bo=so[1],Ro=Number(wt.split("-")[1]),tn=Ro+bo,Pn=ot(Ro+1,tn-1);rt=Array.from(new Set(rt.concat(Pn)))}}),Ke=Ke.filter(lt=>{let{index:wt}=lt;return!rt.includes(wt)}),Ke},wh=he=>{let{dispatch:W,widget:Q,isHorizontal:ge,startIndex:Me,dragMoveIndex:Pe,rowOrColumnNum:Ie,selectRowsOrColumns:Oe}=he;const Ke=Oe.length,ot=Oo()(Q.tableData),{cellStyles:rt,columns:lt,links:wt,data:so,rows:bo,mergeCells:Ro}=ot,{widthList:tn,heightList:Pn}=Q,un=Pe>Me?Pe-Ke:Pe,Xn=Oe[0],ws=[];let zs;(0,Md.SS)(Q)?zs=ge?tn.length-1:Pn.length-1:zs=ge?lt.length-1:bo.length-1;for(let Ni=0;Ni<=zs;Ni++)ws.push(Ni);const fn=Ni=>{const ba=Ni.splice(Xn,Ke);Ni.splice(un,0,...ba)};let Ds={};ge?((0,Md.SS)(Q)?Ds=(0,Sl.A8)({database:(0,Sl.Nf)(Q),areaStart:Xn,dragLength:Ke,moveIndex:un}):(rt.forEach(Ni=>{fn(Ni)}),wt.forEach(Ni=>{fn(Ni)}),so.forEach(Ni=>{fn(Ni)}),fn(lt)),fn(ws)):((0,Md.SS)(Q)?Ds=(0,Sl.gh)({database:(0,Sl.Nf)(Q),areaStart:Xn,dragLength:Ke,moveIndex:un}):(fn(rt),fn(wt),fn(so),fn(bo)),fn(ws));const gi={};Object.entries(Ro).some(Ni=>{let[ba,fa]=Ni;if(ge){const[Ka,da]=ba.split("-"),ka=ws.indexOf(Number(Ka))+"-"+da;gi[ka]=fa}else{const[Ka,da]=ba.split("-"),aa=ws.indexOf(Number(da)),ka=Ka+"-"+aa;gi[ka]=fa}}),ot.mergeCells=gi,W({type:"entry:widget:change",payload:{flatChgList:[{key:Q.key,hotAttr:{tableData:ot,...Ds}}]}}),Pe=Pe>Me?Math.max(Pe-Ke,0):Pe;const hi=ge?{x1:Pe,y1:0,x2:Pe+Ke-1,y2:Ie-1}:{x1:0,y1:Pe,x2:Ie-1,y2:Pe+Ke-1};W({type:"table:update:info",payload:{isMouseDownInTable:!1}}),(0,a0.Z)({widget:Q,...hi,isDragSelected:!0}),(0,gp.of)(ge?"row":"column")},ul=fe.Ay.div.withConfig({displayName:"styles__TableRowOrColumnDragStyle",componentId:"sc-ek7k3g-0"})(["display:flex;position:absolute;align-items:center;overflow:hidden;background-color:#E5E5E5;border-top-left-radius:3px;&.horizontal-drag{left:0;top:-","px;height:","px;border-top-right-radius:3px;}&.vertical-drag{border-bottom-left-radius:3px;flex-direction:column;top:0;left:-","px;height:100%;width:","px;}"],jd,Tc,jd,Tc),ui=fe.Ay.div.withConfig({displayName:"styles__TableDragStyled",componentId:"sc-ek7k3g-1"})(["cursor:pointer;width:100%;height:100%;overflow:hidden;pointer-events:all;&.is-dragging{cursor:grabbing;}&.is-selected{background-color:#1685FC;cursor:grab;}&:not(.is-selected):not(.is-dragging):hover{background-color:#B8BCBF;}"]),Sh=fe.Ay.div.withConfig({displayName:"styles__TableDragMoveStyled",componentId:"sc-ek7k3g-2"})(["display:flex;position:absolute;width:60px;height:90px;z-index:1;overflow:hidden;flex-direction:column;border-radius:4px;border:1px solid #1685FC;.drag-move-top{width:100%;height:10px;background-color:#1685FC;}.drag-move-number{width:100%;height:calc(100% - 10px);display:flex;align-items:center;justify-content:center;color:#333;font-family:PingFang SC;font-size:14px;background-color:rgba(218,235,254,0.7);}&.is-row{width:110px;height:40px;flex-direction:row;.drag-move-top{width:10px;height:100%;background-color:#1685FC;}.drag-move-number{width:calc(100% - 10px);height:100%;}}"]);var zp=e(62427);const A0=(0,x.memo)(he=>{let{isHorizontal:W,values:Q,widget:ge,scale:Me,setHoverIndexAndType:Pe}=he;const Ie=(0,o.d4)(gs.zX),Oe=(0,o.d4)(gs.sx),Ke=(0,o.wA)(),ot=(0,x.useRef)(null),[rt,lt]=(0,x.useState)([]),[wt,so]=(0,x.useState)([]),[bo,Ro]=(0,x.useState)(!1),[tn,Pn]=(0,x.useState)({left:0,top:0}),un=W?"drag-row":"drag-column",Xn=1*Me,ws=W?{top:"-"+Tc+"px",width:"calc(100% + "+Xn+"px)"}:{left:"-"+Tc+"px",height:"calc(100% + "+Xn+"px)"};let zs;if((0,Md.SS)(ge))zs=W?ge.heightList.length:ge.widthList.length;else{var fn,Ds;zs=W?ge==null||(fn=ge.tableData)==null||(fn=fn.rows)==null?void 0:fn.length:ge==null||(Ds=ge.tableData)==null||(Ds=Ds.columns)==null?void 0:Ds.length}(0,x.useEffect)(()=>{if(!Ie||!ge){lt([]),so([]);return}const{selRows:da,selColumns:aa}=Up(ge,Ie);lt(da),so(aa)},[Ie,ge,Q,Me]);const gi=(0,x.useCallback)(da=>{const{clientX:aa,clientY:ka}=da;MB.action("entry:contextmenu:withtype",{position:{top:ka,left:aa}}),(0,Qd.t0)({isShowTableDragMenu:!0,tableRightClickDragInfo:{isHorizontal:W,index:Number(da.target.dataset.index)}})},[W]),hi=(0,x.useCallback)(da=>W?wt.includes(da):rt.includes(da),[W,rt,wt]),Ni=(0,x.useCallback)(da=>{const aa=Number(da.target.dataset.index),ka=da.shiftKey;hi(aa)||(_r({isHorizontal:W,isShiftDown:ka,index:aa,selectTableCellInfo:Ie,widget:ge}),(0,Qd.KN)("isEditTable",!0))},[ge,Ie,W,hi]),ba=(0,zp.nF)((0,x.useCallback)(()=>{MB.notice({text:I18N.Popups.do_not_drag_table_merge_cell,type:"warning"})},[]),1e3,!0),fa=da=>{da.stopPropagation();const aa=Number(da.target.dataset.index),ka=hi(aa),Vi=da.clientX,Di=da.clientY;let pa=0,Ra=0,Ar=!1,ja=0,wr=!1;if(ka||Ni(da),da.button===2){gi(da);return}if(Ke({type:"table:update:info",payload:{isMovingInDrag:!0}}),ka){wr=r0(W,ge,Ie);const xl=ot.current.getBoundingClientRect();pa=da.clientX-xl.left,Ra=da.clientY-xl.top,Pn({left:pa,top:Ra})}const Rr=Hh({widget:ge,scale:Me,isHorizontal:W,selectRowsOrColumns:W?wt:rt,values:Q}),sr=xl=>{if(ka){if(!wr){ba();return}Ar=!0,Ro(!0),Ke({type:"table:update:info",payload:{isDragging:!0}});const Vr=xl.clientX-Vi+pa,ll=xl.clientY-Di+Ra,Zr=W?Vr:ll,wc=Rr.find(g0=>{let{hotZoonStart:e0,hotZoonEnd:f0}=g0;return Zr<=f0&&Zr>=e0});Pe(wc?{rtype:W?"v":"h",index:""+wc.index}:null),ja=wc?wc.index:-1,Pn({left:Vr,top:ll})}else{if(xl.target.dataset.horizontal!==un)return;const Vr=xl.target.dataset.index;if(aa>=0&&Vr>=0){const ll=Vr>=aa?Vr:aa,Zr=Vr<aa?Vr:aa,wc=W?{x1:Zr,y1:0,x2:ll,y2:zs-1}:{x1:0,y1:Zr,x2:zs-1,y2:ll};(0,a0.Z)({widget:ge,...wc,isDragSelected:!0})}}},kc=()=>{Ro(!1),Pe(null),Ke({type:"table:update:info",payload:{isDragging:!1,isMovingInDrag:!1}}),Ar&&ja>=0&&ge&&wh({dispatch:Ke,widget:ge,isHorizontal:W,selectRowsOrColumns:W?wt:rt,dragMoveIndex:ja,startIndex:aa,rowOrColumnNum:zs}),document.removeEventListener("mousemove",sr),document.removeEventListener("mouseup",kc)};document.addEventListener("mousemove",sr),document.addEventListener("mouseup",kc)},Ka=(0,x.useMemo)(()=>{let da=W?I18N.ContextMenu.table_drag_total_column.replace("%num",wt.length):I18N.ContextMenu.table_drag_total_row.replace("%num",rt.length);const aa=W?wt.length:rt.length;return ENV.IS_WONDER_SHARE&&aa>1&&(da=da+"s"),da},[W,wt,rt]);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(ul,{className:W?"horizontal-drag":"vertical-drag",ref:ot,style:ws,children:Q&&Q.map((da,aa)=>{let ka=!1;(W?wt.length>0:rt.length>0)?ka=W?wt.at(-1)===aa:rt.at(-1)===aa:ka=aa===Q.length-1;const Di=ka?Xn:0;return(0,y.jsx)(ui,{"data-index":aa,"data-horizontal":un,className:u()(un,hi(aa)&&"is-selected",Oe&&"is-dragging"),style:W?{width:da*Me+Di+"px"}:{height:da*Me+Di+"px"},onMouseDown:fa},aa)})}),bo&&(0,y.jsxs)(Sh,{className:!W&&"is-row ",style:tn,children:[(0,y.jsx)("div",{className:"drag-move-top"}),(0,y.jsx)("div",{className:"drag-move-number",children:Ka})]})]})});var ur=e(7173);class ic extends x.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{v:[],h:[],startX:null,startY:null,selectLineInfo:null,widths:[],heights:[],isResizeCell:!1,hoverIndexAndType:null,originTopLeft:[0,0],isDragSelectIndex:!1,dragWidths:[],dragHeights:[]}),(0,r.A)(this,"setWidthHeight",()=>{const{widget:W}=this.props;let Q,ge;(0,Md.SS)(W)?(Q=W.widthList,ge=W.heightList):(Q=W.tableData.columns.map(Me=>Me.width),ge=W.tableData.rows.map(Me=>Me.height)),this.setState({widths:Q,heights:ge}),this.init(Q,ge)}),(0,r.A)(this,"init",(W,Q)=>{const{scale:ge}=this.props,Me=ge/100,Pe=[0],Ie=[0];W.reduce((Oe,Ke)=>(Oe=Oe+Ke*Me,Pe.push(Oe),Oe),0),Q.reduce((Oe,Ke)=>(Oe=Oe+Number.parseFloat(Ke)*Me,Ie.push(Oe),Oe),0),this.setState({v:Ie,h:Pe,dragWidths:W,dragHeights:Q})}),(0,r.A)(this,"handleDown",W=>{const{widget:{x:Q,y:ge}}=this.props,{rtype:Me,index:Pe}=W.currentTarget.dataset,{clientX:Ie,clientY:Oe}=W;W.stopPropagation(),sdkStore.combineMergeMark("drag-table-cell"),this.setState({startX:Ie,startY:Oe,selectLineInfo:{rtype:Me,index:Pe},originTopLeft:[Q,ge]}),this.setState({isResizeCell:!0}),(0,Qd.t0)({isResizeCell:!0})}),(0,r.A)(this,"handleMouseUp",()=>{const{selectLineInfo:W}=this.state,{widget:Q}=this.props;W&&((0,ur.On)(Q),this.setState({startX:null,startY:null,selectLineInfo:null}),(0,Qd.t0)({isResizeCell:!1}),this.setWidthHeight(),this.setState({isResizeCell:!1}),sdkStore.combineMerge("drag-table-cell"))}),(0,r.A)(this,"onDrag",W=>{const{selectLineInfo:Q,startX:ge,startY:Me,widths:Pe,heights:Ie}=this.state,{widget:Oe,scale:Ke}=this.props,ot=Ke/100;if(!Q)return;const rt=[...Pe],lt=[...Ie],{rtype:wt,index:so}=Q,bo=Math.ceil(Number(W.clientX-ge)/ot),Ro=Math.ceil(Number(W.clientY-Me)/ot),tn=so===0?0:so-1;if(wt==="h"){const un=Number.parseFloat(lt[tn])+Ro;if(un<Zc.__)return;lt[tn]+=Ro;const Xn=(0,Zc.M$)(Oe,Number(tn),un);MB.action("entry:table:widget:change",{data:Xn})}if(wt==="v"){const un=Number.parseFloat(rt[tn])+bo;if(un<Zc.__)return;rt[tn]+=bo;const Xn=(0,Zc.V0)(Oe,Number(tn),un);MB.action("entry:table:widget:change",{data:Xn})}this.init(rt,lt)}),(0,r.A)(this,"handleAddRows",W=>{if(W.buttons===2)return;W.stopPropagation();const{widget:Q}=this.props,{index:ge}=W.currentTarget.dataset,Me=Number(ge),Pe=(0,Zc.BG)(Q,1,Math.max(Me-1,0),Me===0);Pe&&((0,ur.On)(Pe),(0,gp.Wv)(1))}),(0,r.A)(this,"handleAddColumns",W=>{if(W.buttons===2)return;W.stopPropagation();const{widget:Q}=this.props,{index:ge}=W.currentTarget.dataset,Me=Number(ge),Pe=(0,Zc.GF)(Q,1,Math.max(Me-1,0),Me===0);Pe&&((0,ur.On)(Pe),(0,gp.qt)(1))}),(0,r.A)(this,"onAddHandleMouseLeave",W=>{const{rtype:Q,index:ge}=W.currentTarget.dataset;this.setState({isDragSelectIndex:!1,hoverIndexAndType:{rtype:Q,index:ge}}),setTimeout(()=>{this.setState({isDragSelectIndex:!1,hoverIndexAndType:null})},350)}),(0,r.A)(this,"setHoverIndexAndType",W=>{this.setState({isDragSelectIndex:!0,hoverIndexAndType:W})})}componentDidMount(){this.setWidthHeight()}componentDidUpdate(W){const{widget:Q,scale:ge}=W,{widget:Me,scale:Pe}=this.props,{height:Ie,width:Oe,tableData:Ke}=Q,{height:ot,width:rt,tableData:lt}=Me,{isResizeCell:wt}=this.state;(rt!==Oe||Ie!==ot||Ke!==lt)&&!wt&&this.setWidthHeight(),ge!==Pe&&this.setWidthHeight()}componentWillUnmount(){(0,Qd.t0)({selectTableCellInfo:null,isShowTableMenu:!1,widget:null,isEditTable:!1}),(0,Qd.KN)("isEditTable",!1)}render(){const{isMouseDownInTable:W,widget:Q,scale:ge,isResizingItem:Me,isEditTable:Pe,isTableDragging:Ie}=this.props,{v:Oe,h:Ke,selectLineInfo:ot,hoverIndexAndType:rt,isDragSelectIndex:lt,dragWidths:wt,dragHeights:so,isResizeCell:bo}=this.state,{width:Ro,height:tn,isLock:Pn}=Q;if(Pn)return null;const un=!!(ot&&ot.rtype==="v"),Xn=!!(ot&&ot.rtype==="h"),ws=ge/100,{transform:zs,rect:fn}=(0,Le.Oj)(Q.key),{x:Ds,y:gi}=zs.clone().apply({x:fn.x,y:fn.y}),{a:hi,b:Ni,c:ba,d:fa}=zs,Ka={left:Ds*ws,top:gi*ws,width:Ro*ws,height:tn*ws,transform:"matrix("+hi+","+Ni+","+ba+","+fa+",0,0)",transformOrigin:"0px 0px"},da={indexAndType:rt,widget:Q,radio:ws,onAddHandleMouseLeave:this.onAddHandleMouseLeave};return(0,y.jsxs)(i0,{className:"tableResize",style:Ka,children:[!un&&Pe&&!W&&Oe.map((aa,ka)=>(0,y.jsx)("div",{"data-index":ka,"data-rtype":"h",onMouseDown:this.handleDown,className:u()("horizontal",Ie&&"is-table-dragging"),style:{top:aa-1+"px"}},aa)),!Xn&&Pe&&!W&&Ke.map((aa,ka)=>(0,y.jsx)("div",{"data-index":ka,"data-rtype":"v",onMouseDown:this.handleDown,className:u()("vertical",Ie&&"is-table-dragging"),style:{left:aa-1+"px"}},aa)),!Me&&!bo&&(0,y.jsxs)(y.Fragment,{children:[[wt,so].map((aa,ka)=>(0,y.jsx)(A0,{values:aa,scale:ws,isHorizontal:ka===0,widget:Q,setHoverIndexAndType:this.setHoverIndexAndType},ka)),[Oe,Ke].map((aa,ka)=>(0,y.jsx)(Ch,{...da,isRow:ka===0,values:aa,isDragSelect:lt,handleAddRows:this.handleAddRows,handleAddColumns:this.handleAddColumns},ka))]}),ot&&(0,y.jsx)(_.A,{target:document,onMouseMove:this.onDrag,onMouseUp:this.handleMouseUp})]})}}function Wp(he){if(he.isDraggingItem||!he.widget||he.onlyView)return null;const{isSpaceDown:W,isCtrlDown:Q}=he.keyFlags;return W||Q?null:(0,y.jsx)(ic,{...he})}const fp=(0,m.Mz)([g.X_,g.Jv,ae.Z9,gs.tS,gs.p$,p.jx,gs.sx,g.pO,g.ZS],(he,W,Q,ge,Me,Pe,Ie,Oe,Ke)=>{let ot=null;const rt=Pe===N.qi.OnlyView;return Q.length&&Q[0].hotAttr.type===te.x.WTable&&(ot=Q[0]),{scale:he,widget:ot,isResizingItem:W,isEditTable:ge,isMouseDownInTable:Me,onlyView:rt,isTableDragging:Ie,isDraggingItem:Oe,keyFlags:Ke}}),Yl=(0,o.Ng)(he=>fp(he))(Wp);class G0 extends Yt{renderClickEditor(){return(0,y.jsx)(Yl,{})}}var Al=e(46927);const Y0=(0,m.Mz)([g.lh,b.RX],(he,W)=>{const Q=W.widgetStore.getNode(he);return Q&&(0,Al.gM)(Q.type)?Q:null});var I0=e(96828);const _l=fe.Ay.div.withConfig({displayName:"styles__StyledFixedSlider",componentId:"sc-1zi60a-0"})(["position:absolute;width:0;.slider{position:absolute;width:3px;top:0;left:-15px;bottom:0;background:transparent;pointer-events:auto;}"]),gl=25,Vl=16,fd=fe.Ay.div.withConfig({displayName:"styles__StyledArrowSlider",componentId:"sc-1zi60a-1"})(["position:absolute;cursor:grab;margin-left:-15px;width:","px;height:","px;&.hh{margin-top:-7px;}&.fh{margin-bottom:-10px;}&:active{cursor:grabbing;}.slider-arrow{width:22px;height:13px;.main{fill:",";}.fore{fill:#fff;}}.slider-line{position:absolute;top:6px;left:30px;width:320px;border-top:1px dashed ",";z-index:65535;}.slider-number{position:absolute;top:0;left:-25px;font-size:12px;line-height:","px;color:#f54edb;}.slider-vertical-surface{position:absolute;left:30px;background:rgba(255,0,255,0.2);z-index:65535;&.hh{bottom:10px;}&.fh{top:7px;}}"],gl,Vl,he=>he.theme.color_proto,he=>he.theme.color_proto,Vl),yd=(he,W,Q)=>{const ge=[],Me=he.getHotItem(W).hotAttr.h;return he.walkHotItemSubtree2(W,Pe=>{if((0,Jt.OO)(Pe.key))return I0.NU;const{y:Ie,h:Oe}=he.getRelocateLocalBound(Pe.key,W);ge.push(Q?Ie-Oe/2:Me-(Ie-Oe/2)),ge.push(Q?Ie+Oe/2:Me-(Ie+Oe/2))}),ge};class M0 extends x.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleDown",W=>{W.stopPropagation();const{screenCid:Q,attr:ge,value:Me,editingRichText:Pe,dispatch:Ie}=this.props;Pe&&Ie({type:"quit:rich:text:editing"});const Oe=W.clientY,Ke=Me,ot=yd(sdkStore,Q,ge==="hh");Ie({type:"set:numberLineType:show",payload:{type:ge}}),Ie({type:"reducer:flag:set:is-selection-border-resizer",payload:{isHideSelectionBorder_Resizer:!0}}),Ie({type:"entry:update:selection:select:items",payload:{cids:[Q]}}),sdkStore.combineMergeMark("drag-fixed-h");const rt=wt=>{const{attr:so,screenHeight:bo,scale:Ro,onChange:tn}=this.props,Pn=(wt.clientY-Oe)/(Ro/100);let un;so==="hh"?un=Ke+Pn:un=Ke-Pn,un<0&&(un=0),un>bo&&(un=bo),ot.forEach(Xn=>{Math.abs(un-Xn)<=5&&(un=Xn)}),tn(Math.round(un))},lt=()=>{Ie({type:"set:numberLineType:show",payload:{type:""}}),Ie({type:"reducer:flag:set:is-selection-border-resizer",payload:{isHideSelectionBorder_Resizer:!1}}),document.removeEventListener("mousemove",rt),document.removeEventListener("mouseup",lt),sdkStore.combineMerge("drag-fixed-h")};document.addEventListener("mousemove",rt),document.addEventListener("mouseup",lt)})}render(){const{attr:W,value:Q,scale:ge,screenWidth:Me,showNumberLineType:Pe}=this.props,Ie=ge/100,Oe=Q*Ie,Ke=W==="hh"?{top:Oe}:{bottom:Oe},ot=Me,rt=ot-2>0?ot-2:0,lt=Oe-2>0?Oe-2:0;return(0,y.jsxs)(fd,{style:Ke,className:u()("slider-wrapper",W),onMouseDown:this.handleDown,children:[(0,y.jsx)(vo.C,{className:"slider-arrow",name:"design/slider_arrow"}),Pe===W&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("span",{className:"slider-line",style:{width:ot}}),(0,y.jsx)("span",{className:u()("slider-vertical-surface",W),style:{width:rt+2,height:lt+1}}),(0,y.jsx)("span",{className:"slider-number",children:Q})]})]})}}const Fr=he=>{const W=(0,g.v7)(he),Q=(0,g.X_)(he),ge=Y0(he);return{showNumberLineType:W,scale:Q,editingRichText:ge}};class Vp extends x.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleHeaderHeight",W=>{const{node:{widget:{key:Q,stickyFooterHeight:ge,h:Me}},dispatch:Pe}=this.props;W+ge>Me-14&&(W=Me-ge-14),Pe({type:"entry:widget:change",payload:{flatChgList:[{key:Q,hotAttr:{stickyHeaderHeight:W}}]}})}),(0,r.A)(this,"handleFooterHeight",W=>{const{node:{widget:{key:Q,stickyHeaderHeight:ge,h:Me}},dispatch:Pe}=this.props;W+ge>Me-14&&(W=Me-ge-14),Pe({type:"entry:widget:change",payload:{flatChgList:[{key:Q,hotAttr:{stickyFooterHeight:W}}]}})})}render(){const{node:W,node:{widget:{key:Q,asOverlay:ge,h:Me,stickyHeaderHeight:Pe,stickyFooterHeight:Ie}},scale:Oe,showNumberLineType:Ke,editingRichText:ot,dispatch:rt}=this.props;if(!(!ge&&Me*Oe/100>=110))return null;const wt=Oe/100,{x:so,y:bo,r:Ro,w:tn,h:Pn}=W.widgetStore.sdkStore.getHotBound(W.key),un={height:Pn*wt,transform:"translate("+(so-tn*.5)*wt+"px,"+(bo-Pn*.5)*wt+"px) rotate("+Ro+"deg)"},Xn=Pe<=Me,ws=Pe+Ie<=Me-14;return(0,y.jsx)(_l,{style:un,children:(0,y.jsxs)("div",{className:"slider",children:[Xn&&(0,y.jsx)(M0,{attr:"hh",value:Pe,scale:Oe,screenCid:Q,screenWidth:tn*wt,screenHeight:Pn,showNumberLineType:Ke,editingRichText:ot,onChange:this.handleHeaderHeight,dispatch:rt}),ws&&(0,y.jsx)(M0,{attr:"fh",value:Ie,scale:Oe,screenCid:Q,screenWidth:tn*wt,screenHeight:Pn,showNumberLineType:Ke,editingRichText:ot,onChange:this.handleFooterHeight,dispatch:rt})]})})}}const Ah=(0,o.Ng)(Fr)(Vp),Z0=(0,m.Mz)([ae.x$],he=>he.filter(W=>{let{type:Q}=W;return Q===te.x.Canvas})),Zl=(0,m.Mz)([p.jI,p.bt,Z0],(he,W,Q)=>he||W||(Q==null?void 0:Q.length)!==1||!Q[0]?{isShow:!1}:{isShow:!0,canvas:Q[0]}),yp=()=>{const{isShow:he,canvas:W}=(0,o.d4)(Q=>Zl(Q));return he?(0,y.jsx)(Ah,{node:W}):null},xp=(0,x.memo)(yp);class vp extends Yt{renderClickEditor(){return(0,y.jsx)(xp,{})}}const Od=fe.Ay.div.withConfig({displayName:"styles__StyleCodeTooltip",componentId:"sc-1hlcmrh-0"})([".behavior{position:absolute;top:50%;left:50%;margin-left:-61px;margin-top:-16px;line-height:32px;height:32px;width:122px;font-size:12px;z-index:101;text-align:center;background-color:rgba(31,41,46,0.64);border-radius:2px;pointer-events:none;&:lang(en){width:220px;margin-left:-110px;}&:lang(ja){width:150px;margin-left:-75px;}p{color:#fff;}}"]);class Wc extends x.PureComponent{render(){var W;const{hoverItem:Q,scale:ge,isShow:Me}=this.props;if(!Me)return null;const Pe=sdkStore.getHotItem(Q);if(!Pe||Pe!=null&&(W=Pe.hotAttr)!=null&&W.isLock)return null;const{transform:Ie,rect:Oe}=(0,Le.Oj)(Q),{a:Ke,b:ot,c:rt,d:lt}=Ie,{x:wt,y:so}=Ie.clone().scale(ge/100,ge/100).apply({x:Oe.x,y:Oe.y}),{x:bo,y:Ro}=re.Z.mul(re.Z.xy(Oe.w,Oe.h),ge/100),tn={position:"absolute",overflow:"hidden",left:wt,top:so,width:bo,height:Ro,transform:"matrix("+Ke+","+ot+","+rt+","+lt+",0,0)",transformOrigin:"0px 0px"};return(0,y.jsx)(Od,{style:tn,children:(0,y.jsx)("div",{className:"behavior",children:(0,y.jsx)("p",{children:"\u53CC\u51FB\u7F16\u8F91 AI \u7EC4\u4EF6"})})})}}const gc=(0,m.Mz)([p.IL,g.X_,g.pO,k.Bq,k.ul,ae.x$],(he,W,Q,ge,Me,Pe)=>{if(!he||Q)return{isShow:!1};const Ie=sdkStore.getHotItem(he),Oe=Ie==null?void 0:Ie.key;return(Ie==null?void 0:Ie.hotAttr.type)!==te.x.WCode||Oe===ge||Oe===Me?{isShow:!1}:{isShow:!0,hoverItem:he,scale:W,selectedTrees:Pe}}),Fd=(0,o.Ng)(he=>gc(he))(Wc);var il=e(99388);const l0=["\u901A\u8FC7\u591A\u6B65\u8C03\u6574\u6765\u4E0D\u65AD\u5B8C\u5584\u7EC4\u4EF6","\u660E\u786E\u5177\u4F53\u7684\u63D0\u793A\u8BCD\u6548\u679C\u66F4\u4F73","\u9009\u4E2D\u7EC4\u4EF6\u5185\u5143\u7D20\u6765\u5B9E\u73B0\u7CBE\u786E\u8C03\u6574","\u751F\u6210\u5185\u5BB9\u53EF\u80FD\u5177\u6709\u8BEF\u5BFC\u6027\u6216\u9519\u8BEF","Al\u751F\u6210\u7ED3\u679C\u5177\u6709\u968F\u673A\u6027\uFF0C\u53EF\u591A\u6B21\u5C1D\u8BD5"],Xc=(he,W)=>{if(!he||!sdkStore.getHotItem(he)||sdkStore.isTrashed(he))return{};const{transform:Q,rect:ge}=(0,Le.Oj)(he),{a:Me,b:Pe,c:Ie,d:Oe}=Q,{x:Ke,y:ot}=Q.clone().scale(W,W).apply({x:ge.x,y:ge.y}),{x:rt,y:lt}=re.Z.mul(re.Z.xy(ge.w,ge.h),W);return{position:"absolute",overflow:"hidden",left:Ke,top:ot,width:rt,height:lt,transform:"matrix("+Me+","+Pe+","+Ie+","+Oe+",0,0)",transformOrigin:"0px 0px"}},Td=he=>{const W=l0.length,[Q,ge]=(0,x.useState)(Math.floor(Math.random()*W));return(0,x.useEffect)(()=>{if(!he)return;const Me=setInterval(()=>{ge((Q+1)%W)},8e3);return()=>clearInterval(Me)},[Q,he,W]),l0[Q]},Hp=()=>{const he=(0,o.d4)(k.ul),W=he&&sdkStore.getHotItem(he);return{isShowLoading:(0,x.useMemo)(()=>he&&W&&!sdkStore.isTrashed(he),[he,W])}},bp=()=>{const he=(0,o.d4)(k.ul),W=(0,o.d4)(g.X_),Q=he&&sdkStore.getHotItem(he),ge=W/100,{w:Me,h:Pe,injection:Ie}=(Q==null?void 0:Q.hotAttr)||{},Oe=(0,il.f)(Ie),Ke=(0,x.useMemo)(()=>{const{x:lt,y:wt}=re.Z.mul(re.Z.xy(Me,Pe),ge);return Q&&Number(lt)>240&&Number(wt)>180&&!Oe.includes("<body")},[Me,Pe,ge,Q,Oe]),ot=Td(Ke),rt=Xc(he,W/100);return{isShowTips:Ke,text:ot,style:rt}},X0=fe.Ay.div.withConfig({displayName:"style__StyledCodeLoadingTip",componentId:"sc-15i7no4-0"})(["position:absolute;height:100%;width:100%;left:0;top:0;.loading-container{width:50%;height:50%;max-width:66px;max-height:66px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);}.loading-icon{width:100%;height:100%;display:flex;justify-content:center;align-items:center;animation:loading 1s infinite;@keyframes loading{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}}.progress{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:rgba(22,132,252,1);font-size:16px;}.tips-container{position:absolute;bottom:10px;left:0;right:0;margin:auto;width:max-content;color:rgba(0,0,0,0.9);background-color:#F1F8FF;border:1px solid rgba(214,232,255,1);padding:6px 8px;border-radius:6px;display:flex;align-items:center;.tips-icon{width:20px;height:20px;margin-right:6px;}}"]),Kp=()=>{const{isShowLoading:he}=Hp();return he?(0,y.jsx)(Gp,{}):null},Gp=()=>{const{isShowTips:he,text:W,style:Q}=bp();return(0,y.jsxs)(X0,{style:Q,children:[(0,y.jsx)("div",{className:"loading-container",children:(0,y.jsx)(vo.C,{className:"loading-icon",name:"chatGPT/ai-component/generate-loading",isColorPure:!0})}),he&&(0,y.jsxs)("div",{className:"tips-container",children:[(0,y.jsx)(vo.C,{className:"tips-icon",name:"chatGPT/ai-component/generate-tips",isColorPure:!0}),(0,y.jsx)("span",{children:W})]})]})},Jd=he=>{const{isEditingImageWrapperCid:W,singleSelectItemType:Q,hoverItemType:ge,enableVectorEditor:Me,isElbowMode:Pe,isPencilMode:Ie}=he,Oe=()=>{if(!Q)return null;switch(Q){case te.x.WSwimlane:return new Gc().renderClickEditor();case te.x.WFlowOpened:case te.x.wFlowClosed:return new rn().renderClickEditor();case te.x.WTable:return new G0().renderClickEditor();case te.x.Canvas:return new vp().renderClickEditor();default:return null}},Ke=()=>{if(!ge)return null;const lt=Pe&&new Ci().renderAnchor(),wt=ge===te.x.WBasket?new _c().renderHoverEditor():ge===te.x.WCode?(0,y.jsx)(Fd,{}):null;return(0,y.jsxs)(y.Fragment,{children:[wt,lt]})},ot=()=>W?new Be().renderDbClickEditor():Me?new Rl().renderDbClickEditor():null,rt=()=>Ie?new Ic().renderMouseDownEditor():null;return(0,y.jsxs)(y.Fragment,{children:[ot(),Oe(),Ke(),rt(),(0,y.jsx)(Kp,{})]})},c0={position:"absolute",top:0,left:0,pointerEvents:"none"};class Ks extends x.PureComponent{render(){const W=Jd(this.props);return(0,y.jsxs)("div",{className:"fe-canvas",style:c0,children:[W,(0,y.jsx)(Ls,{}),(0,y.jsx)(_t,{}),(0,y.jsx)(mn,{}),(0,y.jsx)(Qn,{})]})}}const Hl=(0,m.Mz)([V],he=>{var W,Q;const{image:{isEditingImageWrapperCid:ge},mode:{selections:Me,hover:{item:Pe},vectorEditor:Ie,pencilMode:Oe},elbow:{isInElbowMode:Ke,isDraggingElbow:ot}}=he,rt=(Me==null?void 0:Me.length)===1&&Me[0],lt=rt&&((W=sdkStore.getHotItem(rt))==null||(W=W.hotAttr)==null?void 0:W.type),wt=Pe&&((Q=sdkStore.getHotItem(Pe))==null||(Q=Q.hotAttr)==null?void 0:Q.type);return{isEditingImageWrapperCid:ge,singleSelectItemType:lt,hoverItemType:wt,enableVectorEditor:!!Ie,isElbowMode:Ke||ot,isPencilMode:!!Oe}}),fr=(0,o.Ng)(he=>Hl(he))(Ks),fc=(0,m.Mz)([p._b],he=>({inspectMode:he})),Ec=(0,o.Ng)(fc)(he=>{const{inspectMode:W}=he,Q={position:"absolute",top:0,left:0,pointerEvents:"none"};return(0,y.jsxs)("div",{className:"ro-fe-canvas",id:"ro-fe-canvas",style:Q,children:[!W&&(0,y.jsx)(Ls,{}),(0,y.jsx)(Yc,{})]})});var _i=e(80627);const yc=(0,m.Mz)([ae.x$],he=>{const W=[];return he.forEach(Q=>W.push(...(0,_i.cP)(Q))),W});var T0=e(60185);const Qc=fe.Ay.div.withConfig({displayName:"styles__StyledSmartSelectionGapInfo",componentId:"sc-1fc3map-0"})(["position:absolute;background-color:#f54edb;border-radius:2px;z-index:9999;span{font-size:12px;padding:4px;line-height:12px;color:#fff;}"]),Yp=fe.Ay.div.withConfig({displayName:"styles__StyledRadiusResizerHandler",componentId:"sc-1fc3map-1"})(["position:absolute;padding:6px;background-color:#333333;border-radius:2px;top:9999px;left:999px;display:flex;pointer-events:none;z-index:",";span{font-size:12px;line-height:12px;color:#fff;}"],te.Q.STICKY_Z+1);class Sr extends x.PureComponent{constructor(W){super(W),(0,r.A)(this,"handleMove",Q=>{if(!document.querySelector("#screens").contains(Q.target)){this.handleRemove();return}document.body.contains(this.$elem)||document.body.appendChild(this.$elem),this.setState({position:{left:Q.clientX+8+"px",top:Q.clientY+8+"px"}})}),(0,r.A)(this,"handleRemove",()=>{document.body.contains(this.$elem)&&document.body.removeChild(this.$elem)}),(0,r.A)(this,"handleMouseOut",Q=>{this.handleRemove()}),this.$elem=document.createElement("div"),this.$elem.id="DESIGN_ADJUST_GAP_INFO",this.state={position:{left:"",top:""}}}componentDidMount(){document.body.appendChild(this.$elem),document.addEventListener("mousemove",this.handleMove),document.addEventListener("mouseout",this.handleMouseOut)}componentWillUnmount(){document.removeEventListener("mousemove",this.handleMove),document.removeEventListener("mouseout",this.handleMouseOut),this.handleRemove()}render(){const{gap:W}=this.props,{position:Q}=this.state;return(0,T0.createPortal)((0,y.jsx)(Qc,{style:Q,children:(0,y.jsx)("span",{children:W})}),this.$elem)}}class Kh extends x.PureComponent{constructor(W){super(W),(0,r.A)(this,"handleMove",Q=>{if(!document.querySelector("#screens").contains(Q.target)){this.handleRemove();return}document.body.contains(this.$elem)||document.body.appendChild(this.$elem),this.setState({position:{left:Q.clientX+22+"px",top:Q.clientY+8+"px"}})}),(0,r.A)(this,"handleRemove",()=>{document.body.contains(this.$elem)&&document.body.removeChild(this.$elem)}),(0,r.A)(this,"handleMouseOut",Q=>{this.handleRemove()}),this.$elem=document.createElement("div"),this.$elem.id="DESIGN_RADIUS_RESIZER_HANDLER",this.state={position:{left:"",top:""}}}componentDidMount(){document.body.appendChild(this.$elem),document.addEventListener("mousemove",this.handleMove),document.addEventListener("mouseout",this.handleMouseOut)}componentWillUnmount(){document.removeEventListener("mousemove",this.handleMove),document.removeEventListener("mouseout",this.handleMouseOut),this.handleRemove()}render(){const{resizingRadiusNum:W}=this.props,{position:Q}=this.state,ge=I18N.dConst.inspector.radius+" "+W;return(0,T0.createPortal)((0,y.jsx)(Yp,{style:Q,children:(0,y.jsx)("span",{children:ge})}),this.$elem)}}class Gh extends x.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleKeyDown",W=>{const{dispatch:Q,isEditingComment:ge}=this.props;if(W.repeat||MB.f.isEditTable||MB.isEditing(W)||ge)return;const Me=W.metaKey||W.ctrlKey||W.altKey||W.shiftKey;Q(N.GO.toggleIsShowFloatingToolbar(!Me));const Pe=W.keyCode===83,Ie=W.keyCode===32,Oe=W.metaKey||W.ctrlKey,Ke=W.altKey;Ke&&W.preventDefault();const ot=W.shiftKey;Q({type:"set:key:flags",payload:{isKeySDown:Pe,isSpaceDown:Ie,isCtrlDown:Oe,isAltDown:Ke,isShiftDown:ot}}),!Oe&&Pe?(Q(N.GO.hoverItem("")),Q(N.GO.select([]))):Ie&&W.preventDefault()}),(0,r.A)(this,"handleKeyUp",async W=>{this.props.dispatch({type:"set:key:keyFlags",payload:{isAltDown:W.altKey}}),this.props.dispatch(N.GO.toggleIsShowFloatingToolbar(!0));const{getIsAltDown:Q}=this.props;Q()||this.props.dispatch({type:"reset:key:flags"})})}componentDidMount(){window.addEventListener("blur",this.handleKeyUp)}componentWillUnmount(){window.removeEventListener("blur",this.handleKeyUp)}render(){const{isKeyDown:W,isAdjustingGap:Q,gap:ge,isShowRadiusResizerHandler:Me,resizingRadiusNum:Pe}=this.props;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(_.A,{target:document,onKeyDown:this.handleKeyDown}),W&&(0,y.jsx)(_.A,{target:document,onKeyUp:this.handleKeyUp}),Q&&(0,y.jsx)(Sr,{gap:ge}),Me&&(0,y.jsx)(Kh,{resizingRadiusNum:Pe})]})}}const Ih=he=>{let W;return[function(){for(var Q=arguments.length,ge=new Array(Q),Me=0;Me<Q;Me++)ge[Me]=arguments[Me];return W=ge},()=>he(...W)]},[Mh,Jc]=Ih(he=>he),Cp=(0,m.Mz)([T.ud,g.X_,g.ZS,yc,g.Pz,g.wq,g.aM,xe.$,g.iv,g.w8,g.mX,p.Ro,q.aJ],(he,W,Q,ge,Me,Pe,Ie,Oe,Ke,ot,rt,lt,wt)=>{const{isKeySDown:so,isSpaceDown:bo,isCtrlDown:Ro,isAltDown:tn,isShiftDown:Pn}=Q,un=so||bo||Ro||tn||Pn||wt,{isAdjustingColGap:Xn,isAdjustingRowGap:ws,colGap:zs,rowGap:fn}=Oe,Ds=Xn?zs:fn,gi=Xn||ws,hi=Ke&&ot;return Mh(tn),{isEditingComment:he,isKeyDown:un,getIsAltDown:Jc,isInPreview:Ie,gap:Ds,isAdjustingGap:gi,isShowRadiusResizerHandler:hi,resizingRadiusNum:rt,handMode:lt}}),Th=(0,o.Ng)(he=>Cp(he))(Gh);var E0=e(27754),Pc=e(76347);const ac=(0,x.memo)(function(W){const{isInAIComponentSnapshotCreateMode:Q,isInCommentMode:ge,quickCreateWidgetName:Me,isDraggingCanvas:Pe,children:Ie,...Oe}=W,{handMode:Ke,isInElbowMode:ot,isDraggingRadiusResizer:rt,isHitVectorPath:lt,isSpaceDown:wt,vectorEditor:so,isTableDragging:bo,currentToolBarHeight:Ro}=(0,o.d4)(k0),tn=u()("cursor-styled",{"wait-drag":wt||Ke,dragging:Pe||bo,"wait-create-comment":!wt&&!Pe&&ge,"wait-radius-resizer":rt,["wait-create-"+Me]:!wt&&!Pe&&!so&&Me,"hit-vector-path":lt,"in-elbow-mode":!wt&&ot,"wait-create-ai-component":!wt&&!Pe&&Q});return(0,y.jsx)(Mr,{...Oe,currenttoolbarheight:Ro,className:tn,children:[Ie]})}),k0=(0,m.Mz)([g.iv,g.w8,p._W,p.Ro,Ti.Q1,g.ZS,p.lY,gs.sx,h.wT],(he,W,Q,ge,Me,Pe,Ie,Oe,Ke)=>{const ot=he&&W,{isSpaceDown:rt}=Pe;return{isDraggingRadiusResizer:ot,isHitVectorPath:Q,handMode:ge,isInElbowMode:Me,isSpaceDown:rt,vectorEditor:Ie,isTableDragging:Oe,currentToolBarHeight:Ke}}),Mr=(0,fe.Ay)(E0.A).withConfig({displayName:"CursorStyled__StyledCursor",componentId:"sc-1bxy14q-0"})(["position:fixed;top:","px;left:0;right:0;bottom:0;width:auto;height:auto;overflow:hidden;cursor:",";display:flex;justify-content:center;align-items:center;&.wait-drag{cursor:grab;.tree-node{pointer-events:none !important;}}&.dragging{cursor:grabbing;.tree-node{pointer-events:none !important;}}&.wait-radius-resizer{cursor:",';}&[class*="wait-create"]{cursor:',";&:not(.wait-create-annotate){.tree-node{pointer-events:none !important;.line svg path{pointer-events:none !important;}}}&.wait-create-rich_text{cursor:text;}&.wait-create-comment{cursor:",";}&.wait-create-ai-component{cursor:",";}&.wait-create-","{cursor:",";}&.wait-create-","{cursor:",";}&.wait-create-","{cursor:",";}&.wait-create-","{cursor:",";}&.wait-create-","{cursor:",";}&.wait-create-","{cursor:",";}}&.hit-vector-path{cursor:",";}&.in-elbow-mode{cursor:",";}"],he=>he.currenttoolbarheight,pt.M.default,pt.M.radiusResize,pt.M.defaultCreate,pt.M.comment,pt.M.aiComponent,te.x.WRect,pt.M.rectCreate,te.x.WOval,pt.M.circleCreate,te.x.Canvas,pt.M.canvasCreate,te.x.WTear,pt.M.annotate,te.x.WVector,pt.M.vectorCreate,Pc.pv.PENCIL,pt.M.pencilCreate,pt.M.vectorPathEdit,pt.M.defaultCreate);var wp=e(78322),_0=e(84044),Ud=e(45437);class El extends x.PureComponent{render(){if(!this.props.isShow)return null;const{widget:W}=this.props,{y:Q,x:ge,w:Me,h:Pe}=W,Ie=Q-Pe/2,Oe=ge-Me/2,Ke=Me>0&&Pe>0,rt=MB.getScale()/100,lt=W.type===te.x.WLine,wt=W.type===te.x.WSticky;return(0,y.jsxs)(Vc,{ratio:1/rt,className:W.type,style:{top:Ie,left:Oe,width:Me,height:Pe},children:[lt&&(0,y.jsx)(Ud.En,{widget:W}),wt&&(0,y.jsx)("div",{className:"fake-sticky",children:(0,y.jsx)("div",{className:"header"})}),Ke&&(0,y.jsx)("div",{className:"meta-info",children:Me+" \xD7 "+(lt?1:Pe)})]})}}const Vc=fe.Ay.div.withConfig({displayName:"WidgetRect__StyledWidget",componentId:"sc-yhlws3-0"})(["z-index:2;position:absolute;pointer-events:none;overflow:visible !important;&.",",&.","{border:1px solid #bbb;}&.",",&.","{background:white;border:1px solid #bbb;}&.","{background:white;border:1px solid #bbb;border-radius:100%;}&.","{background:",";border:1px solid ","}.fake-sticky{width:100%;height:100%;background:white;border:1px solid rgb(253,209,67);.header{background-color:#FDD143;width:100%;height:20px;padding:0 12px;position:relative;}}&.line{path{stroke:rgba(187,187,187,1);stroke-width:1px;}}&.lr{background:","}.meta-info{position:absolute;padding:2px 4px;color:#fff;background:#454647;top:calc(100% + 10px);left:calc(100% + 10px);border-radius:2px;white-space:nowrap;transform-origin:0 0;transform:","}"],te.x.WRichText,te.x.WImage,te.x.Canvas,te.x.WRect,te.x.WOval,te.x.WLR,he=>he.theme.color_hotspot,he=>he.theme.color_comments,he=>he.theme.color_hotspot,he=>"scale("+he.ratio+")");var Q0=e(73734);class xc extends x.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleKeyDown",W=>{if(MB.isEditing(W)||MB.f.isSelecting||MB.f.isEditTable||W.metaKey||W.ctrlKey||W.altKey)return;const{dispatch:Q,isEditingComment:ge,widget:Me,isDirectlyEditingProjectMain:Pe,currentScreen:Ie,vectorEditor:Oe,swimlaneIsShallowEditing:Ke}=this.props;if(Ke)return;const ot=(0,wp.P)(Pe),rt=ot.filter(wt=>wt.keyCode===W.keyCode);let lt=rt==null?void 0:rt[0];if(rt.length>1&&W.shiftKey){const wt=rt.find(so=>so==null?void 0:so.shiftKey);wt&&(lt=wt)}if(ge){W.key===Ir._.Escape&&Q({type:"entry:comment:create:esc"});return}if(lt){const wt=(()=>{if(!Me)return null;const Ro=ot.filter(tn=>(0,Pc.xy)(tn)===(0,Pc.F6)(Me));if(Ro.length===0)return null;if(Ro.length>1)throw new Error("\u7B5B\u9009\u7ED3\u679C\u4E0D\u552F\u4E00");return Ro[0]})(),so=JSON.stringify(wt)===JSON.stringify(lt),bo=(0,Pc.xy)(lt);if(so){if(bo===te.x.WElbow)Q({type:"elbow:update",payload:{highlightAnchor:""}});else if(te.Q.ST_MODE_WIDGET_NAMES.includes(bo))Q({type:"entry:ST:STMode:disable"});else if(bo===te.x.WVector&&Oe){Q({type:"entry:vector:exit:edit"});const Ro=(0,Q0.gu)({type:bo,screen:Ie,attrs:{width:0,height:0}});Q({type:"set:quick-create-widget",payload:{widget:Ro}});return}else bo===Pc.pv.PENCIL&&Q({type:"entry:pencil:vector:exit:edit",payload:{isSelectLastCreate:!0}});Q({type:"set:quick-create-widget",payload:{widget:null}})}else{bo===te.x.Canvas&&Q({type:"right-side-panel:show:panel"}),Q({type:"entry:vector:exit:edit",payload:{isNoGuide:!0}}),Q({type:"entry:pencil:vector:exit:edit"}),te.Q.ST_MODE_WIDGET_NAMES.includes(bo)?(Q({type:"entry:ST:STMode:enable"}),Q({type:"toolbar:update:state",payload:{isShowSticky:!0}})):Q({type:"entry:ST:STMode:disable"}),Q(N.GO.hoverItem("")),Q({type:"entry:image-view:exit:edit"});const Ro=(0,Q0.gu)({type:lt.name,screen:Ie,attrs:{width:0,height:0,...lt.attrs}});Q({type:"set:quick-create-widget",payload:{widget:Ro}}),Q(N.GO.toggleHandMode(!1)),(0,_0.L)(lt.shortcut),bo===te.x.WVector&&(MB.commonGuideHelper.checkGuideToBeShown(ya.c.GUIDE_VECTOR_TASK_ENDING_EDITING)&&(MB.commonGuideHelper.markGuideAsRead(ya.c.GUIDE_VECTOR_TASK_ENDING_EDITING),MB.commonGuideHelper.closeGuide(ya.c.GUIDE_VECTOR_TASK_ENDING_EDITING)),MB.commonGuideHelper.tryToShowGuide(ya.c.GUIDE_VECTOR_TASK_QUICK_CREATE)),bo===Pc.pv.PENCIL&&Q({type:"entry:pencil:vector:enter:edit"})}Q({type:"entry:comment:disabled",payload:{noWigglingCommentCid:!0}}),Q({type:"elbow:update",payload:{isInElbowMode:!1}}),bo!==te.x.WTear&&bo!==te.x.WSticky&&Q({type:"entry:ST:STMode:disable"})}else Me&&W.key===Ir._.Escape?((Me.type!==te.x.WVector||!Oe)&&Q({type:"set:quick-create-widget",payload:{widget:null}}),Q(N.GO.toggleHandMode(!1)),Q({type:"entry:pencil:vector:exit:edit",payload:{isSelectLastCreate:!0}}),Q({type:"entry:comment:disabled",payload:{noWigglingCommentCid:!0}}),Q({type:"entry:ST:STMode:disable"})):W.key===Ir._.Escape&&(Q(N.GO.toggleHandMode(!1)),Q({type:"entry:pencil:vector:exit:edit",payload:{isSelectLastCreate:!0}}),Q({type:"elbow:update",payload:{isInElbowMode:!1}}))})}render(){const{widget:W,dispatch:Q}=this.props;return(0,y.jsxs)(x.Fragment,{children:[(0,y.jsx)(_.A,{target:document,onKeyDown:this.handleKeyDown}),(0,y.jsx)(El,{isShow:W&&W.width>0&&W.height>0,widget:W})]})}}const Sp=(0,m.Mz)([T.ud,p.lY,fi.X.query.getIsShallowEditing,g.Ur],(he,W,Q)=>({isEditingComment:he,vectorEditor:W,swimlaneIsShallowEditing:Q})),xd=(0,o.Ng)(he=>Sp(he))(xc);var J0=e(73518),P0=e.n(J0),cd=e(2313);const rc=fe.Ay.div.withConfig({displayName:"styles__StyledRange",componentId:"sc-js6x9u-0"})(["z-index:1;position:absolute;pointer-events:none;background:",";border:1px solid ",";"],he=>he.theme.color_grid,he=>he.theme.color_proto);class N0 extends x.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"startWithShift",!1),(0,r.A)(this,"originalSelection",[]),(0,r.A)(this,"isRangeSelectMindNode",!1),(0,r.A)(this,"handleScrollContainer",(W,Q)=>{const{canvasOffset:{x:ge,y:Me},dispatch:Pe}=this.props,Ie={x:ge+W,y:Me+Q};Pe({type:"entry:set:canvas:offset",payload:{offset:Ie}})}),(0,r.A)(this,"handleFirstDrag",W=>{this.startWithShift=W.shiftKey;const{isFromLockWidget:Q,selection:ge,editMindKey:Me,selectedMindNodeKeys:Pe,dispatch:Ie}=this.props;this.isRangeSelectMindNode=Me&&ge.includes(Me),this.originalSelection=this.isRangeSelectMindNode?Pe:ge,Q&&!this.isRangeSelectMindNode&&Ie({type:"entry:clear:selection"})}),(0,r.A)(this,"handleDrag",P0()(W=>{this.props.dispatch({type:"selection:update:state",payload:{selectionUndone:!0}}),this.dispatchSelectItems({mouseInfo:W})},16,{trailing:!1})),(0,r.A)(this,"handleRelease",W=>{let{x1:Q,y1:ge,x2:Me,y2:Pe}=W;const{dispatch:Ie}=this.props;Ie({type:"end:range:select"}),Ie({type:"selection:update:state",payload:{selectionUndone:!1}}),!(Math.abs(Q-Me)<=4&&Math.abs(ge-Pe)<=4)&&(Ie({type:"entry:update:select:items:links"}),this.startWithShift=!1)}),(0,r.A)(this,"dispatchSelectItems",W=>{let{mouseInfo:{x1:Q,y1:ge,x2:Me,y2:Pe}}=W;const{scale:Ie,dispatch:Oe}=this.props,Ke=(0,cd.vI)({startX:Q,startY:ge,endX:Me,endY:Pe},Ie),ot=(0,cd.rn)(Ke);if(this.isRangeSelectMindNode){setTimeout(()=>Oe({type:"entry:mind:mindNode:by:rect",payload:{rect:ot,originalSelection:this.startWithShift?this.originalSelection:[]}}));return}setTimeout(()=>Oe({type:"entry:select:items:by:rect",payload:{rect:ot,originalSelection:this.startWithShift?this.originalSelection:[]}}))})}render(){const{isActive:W,startX:Q,startY:ge,viewportRect:Me,canvasOffset:Pe,scale:Ie,selection:Oe}=this.props;return W?(0,y.jsx)(Ap,{startX:Q,startY:ge,canvasOffset:Pe,viewportRect:Me,scale:Ie,selection:Oe,onScrollContainer:this.handleScrollContainer,onFirstDrag:this.handleFirstDrag,onDrag:this.handleDrag,onRelease:this.handleRelease}):null}}class Ap extends x.PureComponent{constructor(W){super(W);const{startX:Q,startY:ge,scale:Me,canvasOffset:Pe,viewportRect:Ie}=W;this.startWorldPos={x:(Q-window.innerWidth/2-Pe.x)/(Me/100),y:(ge-Ie.top-Ie.height/2-Pe.y)/(Me/100)},this.state={pointRangeStart:{x:Q,y:ge-Ie.top},pointRangeEnd:{x:Q,y:ge-Ie.top},startWorldPos:{x:(Q-window.innerWidth/2-Pe.x)/(Me/100),y:(ge-Ie.top-Ie.height/2-Pe.y)/(Me/100)},startScale:Me,startOffset:Pe}}static getDerivedStateFromProps(W,Q){const{canvasOffset:ge,scale:Me,viewportRect:Pe,onDrag:Ie}=W,{startWorldPos:Oe,startOffset:Ke,startScale:ot,pointRangeEnd:rt}=Q;if(Ke.x!==ge.x||Ke.y!==ge.y||ot!==Me){const lt={x:Oe.x*Me/100+ge.x+window.innerWidth/2,y:Oe.y*Me/100+ge.y+Pe.height/2};return Ie({x1:lt.x,y1:lt.y,x2:rt.x,y2:rt.y}),{pointRangeStart:lt}}return null}componentDidMount(){const{startX:W,startY:Q,viewportRect:ge,onFirstDrag:Me,onScrollContainer:Pe,onRelease:Ie}=this.props,{top:Oe,left:Ke,bottom:ot,right:rt}=ge;MB.f.isSelecting=!0;let lt=!1;const wt=bo=>{const Ro=bo.clientX,tn=bo.clientY;let Pn=0,un=0;if(Ro<Ke?Pn=10:Ro>rt&&(Pn=-10),tn<0?un=10:tn>ot-Oe&&(un=-10),(Pn||un)&&Pe(Pn,un),lt===!1&&(lt=Math.abs(Ro-W)>5||Math.abs(tn-Q)>5,lt&&Me(bo)),lt){const Xn={pointRangeEnd:{x:Ro,y:tn-Oe}};this.setState(Xn,()=>{const{pointRangeStart:ws,pointRangeEnd:zs}=this.state;this.props.onDrag({x1:ws.x,y1:ws.y,x2:zs.x,y2:zs.y})})}},so=()=>{var bo,Ro;document.removeEventListener("mousemove",wt),document.removeEventListener("mouseup",so),MB.f.isSelecting=!1;const{pointRangeStart:tn,pointRangeEnd:Pn}=this.state;Ie({x1:tn.x,y1:tn.y,x2:Pn.x,y2:Pn.y}),!(ENV.IS_WONDER_SHARE||this.props.selection.length<2||(bo=MB)!=null&&(bo=bo.commonGuideHelper)!=null&&bo.checkGuideHasShown(ya.c.GUIDE_COPY_AS_PNG))&&((Ro=MB)==null||(Ro=Ro.commonGuideHelper)==null||Ro.tryToShowGuide(ya.c.GUIDE_COPY_AS_PNG))};document.addEventListener("mousemove",wt),document.addEventListener("mouseup",so)}render(){const{pointRangeStart:W,pointRangeEnd:Q}=this.state,ge={top:Math.min(W.y,Q.y),left:Math.min(W.x,Q.x),width:Math.abs(W.x-Q.x),height:Math.abs(W.y-Q.y)};return ge.width>4||ge.height>4?(0,y.jsx)(rc,{style:ge}):null}}const bl=(0,m.Mz)([g.X_,g.ER,g.$S,g.rV,ae.p$,q.WH,q.ul],(he,W,Q,ge,Me,Pe,Ie)=>{const{isActive:Oe,isFromLockWidget:Ke,startX:ot,startY:rt}=ge;return{scale:he,canvasOffset:W,viewportRect:Q,isActive:Oe,isFromLockWidget:Ke,startX:ot,startY:rt,selection:Me,editMindKey:Pe,selectedMindNodeKeys:Ie}}),d0=(0,o.Ng)(he=>bl(he))(N0);var Kl=e(40472),fl=e(91344),L0=e(66976),Yh=e(98386);class D0{constructor(){(0,r.A)(this,"_scale",1)}static getInstance(){return D0.instance||(D0.instance=new D0),D0.instance}get scale(){return this._scale}set scale(W){this._scale=W}}const zd=D0.getInstance(),jl=he=>{const{ratio:W,viewportRect:Q,canvasRect:ge}=he,Me=(Q.left+ma.MV-ge.canvasLeft)/W,Pe=(Q.top+ma.MV-ge.canvasTop)/W,Ie=(Q.right-ge.canvasLeft)/W,Oe=(Q.bottom-ge.canvasTop)/W;return{startX:Me,startY:Pe,endX:Ie,endY:Oe}},Pl=he=>{let{canvas:W,type:Q,value:ge}=he;const{x:Me=0,y:Pe=0,w:Ie=0,h:Oe=0}=(W==null?void 0:W.hotAttr)||{},Ke=Pe-Oe*.5,ot=Me-Ie*.5;return ge+(W?Q==="horizontal"?Ke:ot:0)},Ed=he=>{let{fromCanvas:W,curCanvas:Q,type:ge,value:Me,realValue:Pe}=he;if(!Q)return Pe;const{x:Ie,y:Oe,w:Ke,h:ot}=(Q==null?void 0:Q.hotAttr)||{},rt=Oe-ot*.5,lt=Ie-Ke*.5;if(!W)return ge==="horizontal"?Me-rt:Me-lt;if(W.key===Q.key)return Me;const{x:wt,y:so,w:bo,h:Ro}=(W==null?void 0:W.hotAttr)||{},tn=so-Ro*.5,Pn=wt-bo*.5;return ge==="horizontal"?Me+tn-rt:Me+Pn-lt};var Nc=e(11123);const Ip=()=>{const he=(0,o.d4)(g.X_),W=(0,o.d4)(g.Pz),Q=ma.MF[(0,o.d4)(A.O4)],ge=(0,o.d4)(g.ER),Me=(0,o.d4)(g.eo),Pe=(0,o.d4)(h.wT),Ie=(0,o.d4)(g.$S),Oe=(0,o.d4)(Yh.uE),Ke=(0,o.d4)(Yh.Xf),ot=(0,o.d4)(p.T7),rt=(0,o.d4)(A.bP),wt=(0,o.d4)(p.jx)===N.qi.OnlyView,so=ot||rt==="old_right"||wt?0:yi.fn,bo=(0,o.d4)(A.gf)&&!wt,Ro={width:Ie==null?void 0:Ie.width,height:Ie==null?void 0:Ie.height,left:Ke?Oe+so:so,transform:"matrix(1, 0, 0, 1, "+(Math.round(-ge.x)-window.innerWidth/2)+", "+(Math.round(-ge.y)-(window.innerHeight-Pe)/2)+")"};return{scale:he,theme:Q,canvasRect:W,viewportRect:Ie,containerStyle:Ro,currentScreenCid:Me,curToolBarHeight:Pe,isShowReferLine:bo}},Mp=()=>{const W=(0,o.d4)(p.jx)===N.qi.OnlyView;return(0,o.d4)(A.gf)&&!W},$c=()=>{const he=(0,o.d4)(g.$S),W=(0,o.d4)(A.qT),Q=(0,o.d4)(p.pH),ge=(0,o.d4)(p.rg),Me=(0,o.d4)(p.uu);return he&&W&&!Q&&!ge&&!Me},vc=()=>{var he,W;const Q=(0,o.d4)(g.eo),ge=Q?sdkStore.getHotItem(Q):null;return{alignH:(ge==null||(he=ge.hotAttr)==null?void 0:he.alignH)||[],alignV:(ge==null||(W=ge.hotAttr)==null?void 0:W.alignV)||[]}},lc=()=>{const he=(0,o.d4)(b.RX);return(0,x.useMemo)(()=>{const Q={};return sdkStore.getSubHotItemList(he.cid).forEach(ge=>{var Me,Pe;const{key:Ie,hotAttr:Oe}=ge;Oe.type===te.x.Canvas&&(((Me=Oe.alignH)==null?void 0:Me.length)>0||((Pe=Oe.alignV)==null?void 0:Pe.length)>0)&&(Q[Ie]=ge)}),Q},[he])},Wd=()=>{const he=(0,o.d4)(b.RX),W=(0,o.d4)(g.X_)/100,Q=(0,o.d4)(g.$S),ge=(0,o.d4)(g.ER);return(0,x.useCallback)(Me=>{const Pe=(0,mt.mG)(Me,{scale:W*100,offset:ge,viewportRect:Q}),Ie=(0,L0.Tg)(Pe,he.key);return Ie?sdkStore.getHotItem(Ie):null},[he,W,Q,ge])},Xl=he=>Wd()(he),vd=()=>{const W=(0,o.d4)(p.jx)===N.qi.OnlyView,Q=(0,o.d4)(A.gf)&&!W,ge=(0,o.d4)(A.Nn);return{showRuler:(0,o.d4)(A.qT),isShowReferLine:Q,isShowAlignLine:ge}},$0=he=>{let{canvas:W,type:Q,value:ge}=he;const Me=(0,o.d4)(g.X_)/100,{startY:Pe,startX:Ie}=(0,o.d4)(Nc.$U)||{};return(0,Kl.qK)(()=>{const Oe=Q==="horizontal",Ke=Oe?Pe:Ie,rt=(Pl({canvas:W,type:Q,value:ge})-Ke)*Me+ma.MV;return Oe?"translateY("+rt+"px)":"translateX("+rt+"px)"})},q0=()=>{const he=(0,o.d4)(g.X_)/100,W=(0,o.d4)(g.$S),{startY:Q,startX:ge}=(0,o.d4)(Nc.$U)||{};return(0,Kl.qK)(Me=>{let{type:Pe,canvas:Ie}=Me;const Oe=Pe==="horizontal",{x:Ke=0,y:ot=0,w:rt=0,h:lt=0}=(Ie==null?void 0:Ie.hotAttr)||{},wt=ot-lt*.5,so=Ke-rt*.5,bo=Oe?W==null?void 0:W.width:W==null?void 0:W.height,Ro=Oe?rt:lt,tn=(Oe?so-ge:wt-Q)*he+ma.MV,Pn=tn<0?0:tn>bo?bo:tn,un=tn<0?Math.max(Ro*he+tn,0):tn+Ro*he>bo?bo-tn:Ro*he,Xn=tn+Ro*he>bo?0:bo-tn-Ro*he,ws=Oe?"width":"height";return{left:Math.max(Pn,0),conter:Math.max(un,0),right:Math.max(Xn,0),styleKey:ws}})},kd=()=>{var he;const W=(he=(0,o.d4)(Nc.KF))==null?void 0:he[0];return(0,Kl.qK)(Q=>{let{index:ge,canvas:Me,type:Pe}=Q;if(!W||W.type!==Pe)return!1;if(Me){var Ie;return(W==null||(Ie=W.canvas)==null?void 0:Ie.key)===Me.key&&W.index===ge}return!W.canvas&&W.index===ge})},Zp=()=>(0,o.d4)(p.jx)===N.qi.OnlyView,Xp=()=>!(0,o.d4)(g.p$),_d=(he,W)=>{he({type:"entry:update:current-screen:screen-align",payload:{lines:W}})},Vd=(he,W,Q)=>{he({type:"entry:update:canvas:align",payload:{canvasCid:W.key,lines:Q}})},Qp={dispatchOuterLines:_d,dispatchCanvasLines:Vd},Tp=he=>{let{dispatch:W,curCanvas:Q,type:ge,value:Me,outerAlignH:Pe,outerAlignV:Ie}=he;if(Q){const{hotAttr:{x:ot,y:rt,w:lt,h:wt}}=Q,so=rt-wt*.5,bo=ot-lt*.5,Ro=ge==="horizontal"?Me-so:Me-bo,Pn=[...ge==="horizontal"?Q.hotAttr.alignH:Q.hotAttr.alignV,Ro],un=ge==="horizontal"?{h:Pn,v:Q.hotAttr.alignV}:{h:Q.hotAttr.alignH,v:Pn};return Vd(W,Q,un),{newIndex:Pn.length-1,realValue:Ro}}const Oe=ge==="horizontal"?{h:[...Pe,Me],v:Ie}:{h:Pe,v:[...Ie,Me]};return _d(W,Oe),{newIndex:ge==="horizontal"?Oe.h.length-1:Oe.v.length-1,realValue:Me}},Jp=he=>{let{formCanvas:W,dispatch:Q,index:ge,type:Me,outerAlignH:Pe,outerAlignV:Ie}=he;if(!W){const wt=(Me==="horizontal"?Pe:Ie).filter((bo,Ro)=>Ro!==ge);_d(Q,Me==="horizontal"?{h:wt,v:Ie}:{h:Pe,v:wt});return}const Oe={h:W.hotAttr.alignH,v:W.hotAttr.alignV},ot=(Me==="horizontal"?Oe.h:Oe.v).filter((lt,wt)=>wt!==ge),rt=Me==="horizontal"?{...Oe,h:ot}:{...Oe,v:ot};Vd(Q,W,rt)},$p=he=>{let{dispatch:W,formCanvas:Q,index:ge,type:Me,value:Pe,outerAlignH:Ie,outerAlignV:Oe}=he;if(Q){qp({dispatch:W,formCanvas:Q,index:ge,type:Me,value:Pe});return}ep({dispatch:W,index:ge,type:Me,value:Pe,outerAlignH:Ie,outerAlignV:Oe})},ep=he=>{let{dispatch:W,index:Q,type:ge,value:Me,outerAlignH:Pe,outerAlignV:Ie}=he;const Ke=(ge==="horizontal"?Pe:Ie).map((rt,lt)=>lt===Q?Me:rt);return _d(W,ge==="horizontal"?{h:Ke,v:Ie}:{h:Pe,v:Ke}),{newIndex:Q,newValue:Me}},qp=he=>{let{dispatch:W,formCanvas:Q,index:ge,type:Me,value:Pe}=he;const Ie={h:Q.hotAttr.alignH,v:Q.hotAttr.alignV},Oe=Me==="horizontal"?Ie.h:Ie.v,Ke=ge===Oe.length?[...Oe,Pe]:Oe.map((rt,lt)=>lt===ge?Pe:rt),ot=Me==="horizontal"?{...Ie,h:Ke}:{...Ie,v:Ke};return Vd(W,Q,ot),{newIndex:ge,newValue:Pe}},qc={addLine:Tp,moveLine:$p,delectLine:Jp,moveOutsideLine:ep,moveBetweenSameCanvas:qp,moveInsideToOutside:he=>{let{dispatch:W,formCanvas:Q,index:ge,type:Me,value:Pe,outerAlignH:Ie,outerAlignV:Oe}=he;const Ke={h:Q.hotAttr.alignH,v:Q.hotAttr.alignV},rt=(Me==="horizontal"?Ke.h:Ke.v).filter((fn,Ds)=>Ds!==ge),lt=Me==="horizontal"?{...Ke,h:rt}:{...Ke,v:rt};Vd(W,Q,lt);const{hotAttr:{x:wt,y:so,w:bo,h:Ro}}=Q,tn=so-Ro*.5,Pn=wt-bo*.5,un=Me==="horizontal"?Pe+tn:Pe+Pn,ws=[...Me==="horizontal"?Ie:Oe,un];return _d(W,Me==="horizontal"?{h:ws,v:Oe}:{h:Ie,v:ws}),{newIndex:ws.length-1,newValue:un}},moveOutsideToInside:he=>{let{dispatch:W,curCanvas:Q,index:ge,type:Me,value:Pe,outerAlignH:Ie,outerAlignV:Oe}=he;const ot=(Me==="horizontal"?Ie:Oe).filter((fn,Ds)=>Ds!==ge);_d(W,Me==="horizontal"?{h:ot,v:Oe}:{h:Ie,v:ot});const{hotAttr:{x:lt,y:wt,w:so,h:bo}}=Q,Ro=wt-bo*.5,tn=lt-so*.5,Pn=Me==="horizontal"?Pe-Ro:Pe-tn,Xn=[...Me==="horizontal"?Q.hotAttr.alignH:Q.hotAttr.alignV,Pn],ws=Me==="horizontal"?{h:Xn,v:Q.hotAttr.alignV}:{h:Q.hotAttr.alignH,v:Xn},zs=Xn.length-1;return Vd(W,Q,ws),{newIndex:zs,newValue:Pn}},moveBetweenDifferentCanvas:he=>{let{dispatch:W,formCanvas:Q,curCanvas:ge,index:Me,type:Pe,value:Ie}=he;const Oe={h:Q.hotAttr.alignH,v:Q.hotAttr.alignV},ot=(Pe==="horizontal"?Oe.h:Oe.v).filter((ba,fa)=>fa!==Me),rt=Pe==="horizontal"?{...Oe,h:ot}:{...Oe,v:ot};Vd(W,Q,rt);const{hotAttr:{x:lt,y:wt,w:so,h:bo}}=ge,Ro=wt-bo*.5,tn=lt-so*.5,{hotAttr:{x:Pn,y:un,w:Xn,h:ws}}=Q,zs=un-ws*.5,fn=Pn-Xn*.5,Ds=Pe==="horizontal"?Ie+zs-Ro:Ie+fn-tn,hi=[...Pe==="horizontal"?ge.hotAttr.alignH:ge.hotAttr.alignV,Ds],Ni=Pe==="horizontal"?{h:hi,v:ge.hotAttr.alignV}:{h:ge.hotAttr.alignH,v:hi};return Vd(W,ge,Ni),{newIndex:hi.length-1,newValue:Ds}}},Pd=(0,x.memo)(he=>{let{type:W,value:Q,canvas:ge,index:Me,isActive:Pe,onClick:Ie,onMousemove:Oe,onMouseup:Ke,onHover:ot}=he;const rt=Xp(),[lt,wt]=(0,x.useState)(Q),[so,bo]=(0,x.useState)(!1),Ro=q0(),tn=$0({canvas:ge,type:W,value:lt}),Pn=(0,o.d4)(Nc.Q),{left:un,conter:Xn,styleKey:ws}=Ro({type:W,canvas:ge}),zs=W==="horizontal"?"marginLeft":"marginTop",fn=u()("ruler-line real",W,{event:!ge&&rt,line:!ge,"in-canvas":!!ge,hide:Pe,dragging:so,"is-delete-ruler-line":Pn}),Ds=u()("line-center line",{event:rt});(0,x.useEffect)(()=>{wt(Q)},[Q]);const gi=(0,Kl.qK)(Ni=>{rt&&ot&&!so&&ot({type:W,index:Me,open:Ni,value:Q,canvas:ge})}),hi=(0,Kl.qK)(Ni=>{if(!rt)return;let ba=!0,fa=0,Ka=0;const da=Q;let aa=Q;fa=Ni.clientX,Ka=Ni.clientY;const ka=Di=>{if(!ba)return;const pa=zd.scale/100,Ra=Di.clientX-fa,Ar=Di.clientY-Ka,ja=W==="horizontal"?Ar:Ra;ja!==0&&(aa=Math.round(da+ja/pa),bo(!0),wt(aa),Oe==null||Oe({type:W,value:aa,index:Me,event:Di,canvas:ge}))},Vi=Di=>{ba=!1,bo(!1),fa===Di.clientX&&Ka===Di.clientY?Ie==null||Ie({type:W,value:aa,index:Me,event:Di,canvas:ge}):Ke==null||Ke({type:W,value:aa,index:Me,event:Di,canvas:ge,callback:pa=>{wt(pa)}}),window.removeEventListener("mousemove",ka),window.removeEventListener("mouseup",Vi)};window.addEventListener("mousemove",ka),window.addEventListener("mouseup",Vi)});return ge?(0,y.jsx)("div",{className:fn,style:{transform:tn()},children:(0,y.jsx)("div",{style:{[ws]:Xn,[zs]:un},className:"line-center-wapper",children:(0,y.jsx)("div",{className:Ds,onMouseDown:hi,onMouseEnter:()=>gi(!0),onMouseLeave:()=>gi(!1)})})}):(0,y.jsx)("div",{className:fn,style:{transform:tn()},onMouseDown:hi,onMouseEnter:()=>gi(!0),onMouseLeave:()=>gi(!1)})}),Ep=()=>{const he=(0,o.wA)(),W=kd(),Q=lc(),{alignH:ge,alignV:Me}=vc(),Pe=Wd(),Ie=Mp(),Oe=wt=>{const{hotAttr:{alignH:so=[],alignV:bo=[],w:Ro,h:tn}}=wt,Pn=[];return so.forEach((un,Xn)=>{un<=tn&&un>=0&&Pn.push({value:un,index:Xn,type:"horizontal",canvas:wt})}),bo.forEach((un,Xn)=>{un<=Ro&&un>=0&&Pn.push({value:un,index:Xn,type:"vertical",canvas:wt})}),Pn},Ke=(0,Kl.qK)(wt=>{let{type:so,index:bo,open:Ro,value:tn,canvas:Pn}=wt;fl.A.emit("ruler:line:hover",{type:so,index:bo,open:Ro,canvas:Pn,value:tn})}),ot=(0,Kl.qK)(wt=>{var so;const bo=Pe(wt.event);let Ro=wt.index,tn=wt.value;if(bo&&bo.key!==((so=wt.canvas)==null?void 0:so.key)){const{newIndex:Pn,newValue:un}=qc.moveOutsideToInside({dispatch:he,curCanvas:bo,index:wt.index,type:wt.type,value:wt.value,outerAlignH:ge,outerAlignV:Me});Ro=Pn,tn=un}he({type:"ruler:update:state",payload:{rulerLineCanvas:bo,selectedLine:[{canvas:wt.canvas||bo,type:wt.type,index:Ro,value:tn}]}}),he({type:"entry:update:ruler"}),he({type:"entry:clear:selection"})}),rt=(0,Kl.qK)(wt=>{let{type:so,value:bo,index:Ro,event:tn,canvas:Pn,callback:un}=wt;fl.A.emit("ruler:line:mouseup",{type:so,value:bo,index:Ro,event:tn,canvas:Pn,callback:un})}),lt=(0,Kl.qK)(wt=>{let{type:so,value:bo,index:Ro,event:tn,canvas:Pn}=wt;fl.A.emit("ruler:line:mousemove",{type:so,value:bo,index:Ro,event:tn,canvas:Pn})});return Ie?(0,y.jsxs)("div",{className:"ruler-line-wrapper",children:[ge.map((wt,so)=>(0,y.jsx)(Pd,{type:"horizontal",value:wt,index:so,onHover:Ke,onClick:ot,onMouseup:rt,onMousemove:lt,isActive:W({index:so,type:"horizontal",canvas:null})},"h-"+so)),Me.map((wt,so)=>(0,y.jsx)(Pd,{type:"vertical",value:wt,index:so,onHover:Ke,onClick:ot,onMouseup:rt,onMousemove:lt,isActive:W({index:so,type:"vertical",canvas:null})},"v-"+so)),Object.values(Q).map(wt=>Oe(wt).map(so=>(0,y.jsx)(Pd,{value:so.value,type:so.type,canvas:so.canvas,index:so.index,onHover:Ke,onClick:ot,onMouseup:rt,onMousemove:lt,isActive:W(so)},wt.key+so.type+so.index)))]}):null};var Eh=e(29601);const p0=(0,fe.i7)(["from{opacity:0;transform:scale(0.8);}to{opacity:1;transform:scale(1);}"]),kh=(0,fe.i7)(["from{opacity:1;transform:scale(1);}to{opacity:0;transform:scale(0.8);}"]),Dc=fe.Ay.div.withConfig({displayName:"style__StyleMenu",componentId:"sc-1dkal81-0"})(["position:fixed;display:flex;flex-direction:column;align-items:flex-start;box-shadow:",";background:",";border-radius:8px;padding:8px;transition:opacity 0.2s ease-in-out;transform-origin:0 0;animation:"," 0.2s;animation-fill-mode:forwards;z-index:999;width:166px;&.hide-menu{animation:"," 0.1s;animation-fill-mode:forwards;z-index:-9999;}.divider{border-top:1px solid ",";margin:4px 0;width:100%;}.menu-content{font-size:12px;color:",";background:",";width:100%;height:26px;display:flex;align-items:center;padding-left:31px;cursor:pointer;border-radius:4px;&.hasIcon{padding-left:11px;}svg{margin-right:12px;path{fill:currentColor;}}&.disabled{color:",";pointer-events:none;&:hover{cursor:not-allowed;background:none;color:",";}}&:hover{background:",";cursor:pointer;color:",";}}"],he=>he.theme.shadow_m,he=>he.theme.color_bg_white,p0,kh,he=>he.theme.color_bg_border_01,he=>he.theme.color_text_L1,he=>he.theme.color_bg_white,he=>he.theme.color_text_disabled01,he=>he.theme.color_text_disabled01,he=>he.theme.color_btn_secondary_hover,he=>he.theme.color_text_L1),jt=he=>{let{position:W,onClose:Q,menuConfigs:ge,type:Me}=he;const Pe=(0,Eh.w)(),Ie=(0,o.wA)(),Oe=(0,x.useRef)(document.createElement("div")),{isShowAlignLine:Ke,isShowReferLine:ot,showRuler:rt}=vd(),lt=lc(),{alignH:wt,alignV:so}=vc(),bo=Me==="vertical"?ma.qZ[Pe].vertical:ma.qZ[Pe].horizontal;(0,x.useEffect)(()=>{const zs=Oe.current;return document.body.appendChild(zs),document.addEventListener("click",Q),document.addEventListener("mousedown",tn),()=>{document.removeEventListener("mousedown",tn),document.removeEventListener("click",Q),document.body.removeChild(zs)}},[]);const Ro=(0,x.useMemo)(()=>{let zs=wt.length>0,fn=so.length>0;return Object.values(lt).forEach(Ds=>{var gi,hi;zs=zs||((gi=Ds.hotAttr)==null||(gi=gi.alignH)==null?void 0:gi.length)>0,fn=fn||((hi=Ds.hotAttr)==null||(hi=hi.alignV)==null?void 0:hi.length)>0}),Me==="vertical"?fn:zs},[wt,so,lt,Me]),tn=zs=>{zs.button===2&&Q()},Pn=()=>{Ie({type:"entry:update:preference",payload:{ruler:!rt}})},un=()=>{Ie({type:"entry:update:preference",payload:{show_ruler_line:!ot}})},Xn=()=>{Ie({type:"entry:update:preference",payload:{show_align_line:!Ke}})},ws=()=>{const zs=Me==="vertical"?{v:[],h:wt}:{h:[],v:so};Qp.dispatchOuterLines(Ie,zs),Object.values(lt).forEach(fn=>{const Ds=Me==="vertical"?{v:[],h:fn.hotAttr.alignH}:{h:[],v:fn.hotAttr.alignV};Qp.dispatchCanvasLines(Ie,fn,Ds)})};return(0,y.jsx)(y.Fragment,{children:(0,T0.createPortal)((0,y.jsxs)(Dc,{menuConfigs:ge,style:{left:W.left,top:W.top},id:"rulerContextMenu",children:[(0,y.jsxs)("a",{className:"menu-content hasIcon",onClick:Pn,children:[ma.iU,ma.qZ[Pe].show_ruler]}),(0,y.jsxs)("a",{className:u()("menu-content",{hasIcon:ot}),onClick:un,children:[ot&&ma.iU,ma.qZ[Pe].show_refer_line]}),(0,y.jsxs)("a",{className:u()("menu-content",{hasIcon:Ke,disabled:!ot}),onClick:Xn,children:[Ke&&ma.iU,ma.qZ[Pe].align_line]}),(0,y.jsx)("div",{className:"divider"}),(0,y.jsxs)("a",{className:u()("menu-content",{disabled:!Ro}),onClick:ws,children:[ma.qZ[Pe].remove_all,bo,ma.qZ[Pe].refer_line]})]}),Oe.current)})},Dt=he=>{let{type:W,onGetAlignUtil:Q,onRightClick:ge}=he;const Me=(0,x.useRef)(null),Pe=u()("ruler-event",W),{scale:Ie,viewportRect:Oe,canvasRect:Ke}=Ip();let ot,rt,lt=0,wt=0;const so=tn=>{const Pn=Ie/100,un=tn.clientX-lt,Xn=tn.clientY-wt;rt=Math.round(ot+(W==="horizontal"?Xn:un)/Pn),fl.A.emit("ruler:line:mousemove",{type:W,value:rt,event:tn,action:"create"})},bo=tn=>{lt=0,wt=0,fl.A.emit("ruler:line:mouseup",{event:tn,type:W,value:rt,action:"create"}),window.removeEventListener("mousemove",so),window.removeEventListener("mouseup",bo)},Ro=tn=>{var Pn;if(tn.stopPropagation(),tn.button===2){ge(tn);return}Q(),lt=tn.clientX,wt=tn.clientY;const{bottom:un,right:Xn}=((Pn=Me.current)==null?void 0:Pn.getBoundingClientRect())||{},ws=W==="horizontal"?tn.clientY-un:tn.clientX-Xn,zs=jl({ratio:Ie/100,viewportRect:Oe,canvasRect:Ke}),fn=W==="horizontal"?zs.startY:zs.startX;ot=Math.round(fn+ws/(Ie/100)),rt=ot,window.addEventListener("mousemove",so),window.addEventListener("mouseup",bo)};return(0,y.jsx)("div",{className:Pe,onMouseDown:Ro,ref:Me})},fo=(0,x.memo)(he=>{let{lineTheme:W,onGetAlignUtil:Q}=he;const ge=Zp(),[Me,Pe]=(0,x.useState)({isShowMenu:!1,type:"vertical",position:{left:0,top:0}}),Ie=W.menu||ma.my,Oe={bgColor:Ie.bgColor,dividerColor:Ie.dividerColor,listItem:Ie.listItem},Ke=rt=>lt=>{Pe({isShowMenu:!0,type:rt,position:{left:lt.clientX,top:lt.clientY}})},ot=()=>{Pe({...Me,isShowMenu:!1})};return(0,y.jsxs)("div",{className:"ruler-canvas-wrapper",children:[(0,y.jsx)("div",{className:"canvas-container"}),(0,y.jsx)("a",{className:"corner",style:{backgroundColor:W.bgColor}}),!ge&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Dt,{type:"horizontal",onRightClick:Ke("horizontal"),onGetAlignUtil:Q}),(0,y.jsx)(Dt,{type:"vertical",onRightClick:Ke("vertical"),onGetAlignUtil:Q}),Me.isShowMenu&&(0,y.jsx)(jt,{position:Me.position,onClose:ot,menuConfigs:Oe,type:Me.type})]})]})}),Eo=null,Bo=null,Qo=he=>{let{type:W,value:Q,canvas:ge,isActive:Me,isBoundary:Pe,isDragging:Ie,className:Oe}=he;const Ke=$0({canvas:ge,type:W,value:Q}),ot=q0(),{left:rt,conter:lt,right:wt,styleKey:so}=ot({type:W,canvas:ge}),bo=u()("ruler-line",W,Oe,{"in-canvas":!!ge,active:Me,"move-cursor":Ie}),Ro=W==="horizontal",{w:tn=0,h:Pn=0}=(ge==null?void 0:ge.hotAttr)||{},un=Ro?Pn:tn,Xn=Pe&&(Q<0||Q>un),ws=u()("line-center",{dashed:Xn});return(0,y.jsxs)("div",{className:bo,style:{transform:Ke()},children:[(0,y.jsx)("span",{className:"line-value",children:Q}),ge&&(0,y.jsxs)("div",{className:"line-box",children:[(0,y.jsx)("div",{className:"line-left",style:{[so]:rt}}),(0,y.jsx)("div",{className:ws,style:{[so]:lt}}),(0,y.jsx)("div",{className:"line-right",style:{[so]:wt}})]})]})},$n=()=>{const he=(0,o.d4)(Nc.iX),W=(0,o.d4)(Nc.ks),Q=(0,o.d4)(Nc.Q);if(!he)return;const ge=u()("active-dragging",{event:he.action==="create","is-delete-ruler-line":Q}),Me=Ed({value:he.value,realValue:he.realValue,type:he.type,fromCanvas:he.canvas,curCanvas:he.curCanvas});return(0,y.jsx)("div",{className:"ruler-active-line",children:(0,y.jsx)(Qo,{value:Me,type:he.type,canvas:he.curCanvas,isActive:W,isBoundary:!0,isDragging:!0,className:ge})})},Ns=(0,x.memo)(()=>{var he,W;const Q=(0,x.useRef)(null),[ge,Me]=(0,x.useState)(),Pe=(0,o.d4)(Nc.KF)[0],Ie=(0,o.d4)(Nc.o5),Oe=(0,o.d4)(g.pO),Ke=(0,o.d4)(Nc.ks),ot=Pe&&!Ke,rt=ge&&Pe&&ge.type===Pe.type&&ge.index===Pe.index&&(!(ge!=null&&ge.canvas)&&!(Pe!=null&&Pe.canvas)||((he=ge.canvas)==null?void 0:he.key)===((W=Pe.canvas)==null?void 0:W.key)),lt=ge&&!Ie&&!rt&&!Oe;(0,x.useEffect)(()=>(fl.A.on("ruler:line:hover",wt),()=>{fl.A.off("ruler:line:hover",wt)}),[]),(0,x.useEffect)(()=>{(Ie&&ge||rt)&&Me(null)},[Ie,ge,rt]);const wt=so=>{let{value:bo,canvas:Ro,type:tn,open:Pn,index:un}=so;const{type:Xn,index:ws,canvas:zs}=Q.current||{};tn===Xn&&un===ws&&Pn&&(!Ro&&!zs||(Ro==null?void 0:Ro.key)===(zs==null?void 0:zs.key))||(Q.current=Pn?{value:bo,canvas:Ro,type:tn,index:un}:null,Me(Q.current))};if(!(!lt&&!ot))return(0,y.jsxs)("div",{className:"ruler-active-line",children:[lt&&(0,y.jsx)(Qo,{value:ge.value,type:ge.type,canvas:ge.canvas}),ot&&(0,y.jsx)(Qo,{value:Pe.value,type:Pe.type,canvas:Pe.canvas,isActive:!0,isBoundary:Pe.isBoundary})]})}),Cs=4,Us=fe.Ay.div.attrs(he=>({style:{"--r-thick":he.thick+"px","--r-cavas-width":he.containerStyle.width+"px","--r-cavas-height":he.containerStyle.height+"px","--r-cavas-left":he.containerStyle.left+"px","--r-cavas-transform":he.containerStyle.transform,"--r-border-color":he.theme.borderColor,"--r-line-hover-color":he.theme.line.hover,"--r-line-active-color":he.theme.line.active,"--r-line-normal-color":he.theme.line.normal,"--r-line-bgColor":he.theme.bgColor}})).withConfig({displayName:"styles__StyledRulerContainer",componentId:"sc-9vcdgc-0"})(["position:absolute;pointer-events:none;z-index:3;width:var(--r-cavas-width);height:var(--r-cavas-height);left:var(--r-cavas-left);transform:var(--r-cavas-transform);.ruler-canvas-wrapper{position:absolute;left:0;top:0;width:100%;height:100%;}.canvas-container{.ruler{width:100%;height:100%;pointer-events:none;position:absolute;&.rulerH{left:var(--r-thick);top:0;width:calc(100% - var(--r-thick));height:var(--r-thick);border-bottom:1px solid var(--r-border-color);}&.rulerV{top:var(--r-thick);left:0;width:var(--r-thick);height:calc(100% - var(--r-thick));border-right:1px solid var(--r-border-color);}}}.corner{position:absolute;left:0;top:0;width:var(--r-thick);height:var(--r-thick);border-right:1px solid var(--r-border-color);border-bottom:1px solid var(--r-border-color);transition:all 0.2s ease-in-out;box-sizing:border-box;}.ruler-event{pointer-events:auto;display:block;&.vertical{height:calc(100% - var(--r-thick));width:var(--r-thick);cursor:col-resize;cursor:",";}&.horizontal{margin-left:var(--r-thick);height:var(--r-thick);width:calc(100% - var(--r-thick));cursor:row-resize;cursor:",";}}.ruler-active-line{position:absolute;left:0;top:0;}.ruler-active-line,.ruler-line-wrapper{position:absolute;pointer-events:none;left:0;top:0;width:100%;height:100%;.ruler-line{position:absolute;&.dragging,&.move-cursor{will-change:transform;}&.hide,&.dragging{opacity:0;}&.event{pointer-events:auto;}&.is-delete-ruler-line{cursor:"," !important;}&.horizontal{width:100%;height:1px;cursor:",";&:not(.in-canvas){border-top:1px solid var(--r-line-normal-color);&.active-dragging{border-top:1px solid var(--r-line-hover-color);}}&.in-canvas{.line-left,.line-center,.line-right{border-top-width:1px;border-top-color:var(--r-line-normal-color);}&.active-dragging{.line-left,.line-center,.line-right{border-top-color:var(--r-line-hover-color);}}.line-left,.line-right{border-top-style:dashed;}.line-center-wapper{position:absolute;}.line-center{border-top-style:solid;&.event{pointer-events:auto;cursor:",";}&.dashed{border-top-style:dashed;}}}&.event,&.in-canvas .line-center.event{&::after,&::before{width:100%;height:","px;position:absolute;content:'';display:inline-block;}&::before{top:-","px;}&::after{top:0px;}}&.active{pointer-events:auto;&:not(.in-canvas){border-top:1px solid var(--r-line-active-color);}&.in-canvas{.line-left,.line-center,.line-right{border-top-color:var(--r-line-active-color);}}.line-value{color:var(--r-line-active-color);}}.line-box{flex-direction:row;}}&.vertical{height:100%;width:1px;cursor:",";&:not(.in-canvas){border-left:1px solid var(--r-line-normal-color);&.active-dragging{border-left:1px solid var(--r-line-hover-color);}}&.in-canvas{.line-left,.line-center,.line-right{border-left-width:1px;border-left-color:var(--r-line-normal-color);}&.active-dragging{.line-left,.line-center,.line-right{border-left-color:var(--r-line-hover-color);}}.line-left,.line-right{border-left-style:dashed;}.line-center-wapper{position:absolute;.line-center{height:100%;}}.line-center{border-left-style:solid;&.event{pointer-events:auto;}&.dashed{border-left-style:dashed;}}}&.event,&.in-canvas .line-center.event{&::after,&::before{width:","px;height:100%;position:absolute;content:'';display:inline-block;}&::before{left:0px;}&::after{right:1px;}}&.active{&:not(.in-canvas){border-left:1px solid var(--r-line-active-color);}&.in-canvas{.line-left,.line-center,.line-right{border-left-color:var(--r-line-active-color);}}.line-value{color:var(--r-line-active-color);}}.line-box{flex-direction:column;}.line-value{left:auto;top:4px;transform:translateX(4px);}}.line-value{position:absolute;top:0;left:4px;transform-origin:0 0;color:#ff4040;scale:0.83;line-height:12px;font-size:12px;font-weight:600;background-color:var(--r-line-bgColor);transform:translateY(-5px) rotate(-90deg);}.line-box{display:flex;position:absolute;width:100%;height:100%;top:0;left:0;}}}"],pt.M.colloumResize,pt.M.rowResize,pt.M.rulerDelete,pt.M.rowResize,pt.M.rowResize,Cs,Cs,pt.M.colloumResize,Cs),Qs=()=>{var he;const W=(0,o.wA)(),Q=Wd(),ge=(0,o.d4)(Nc.KF),Me=ge[0],Pe=(0,o.d4)(Nc.Hw),Ie=(0,x.useRef)((he=ge[0])==null?void 0:he.value),Oe=(0,o.d4)(Nc.o5),{alignH:Ke,alignV:ot}=vc(),rt=(0,o.d4)(A.k3),lt=(0,x.useRef)({isDraggingDelete:!1}),wt=(0,x.useRef)(()=>({})),so=Vi=>{W({type:"ruler:update:state",payload:{draggingLine:Vi}})},bo=Vi=>{Oe!==Vi&&W({type:"ruler:update:state",payload:{isDraggingLine:Vi}})},{theme:Ro,scale:tn,curToolBarHeight:Pn,containerStyle:un,viewportRect:Xn,canvasRect:ws,currentScreenCid:zs}=Ip();(0,x.useEffect)(()=>{zd.scale=tn},[tn]),(0,x.useEffect)(()=>{W({type:"entry:init:ruler:canvas"})},[W]),(0,Kl._N)(ma.CX,()=>{Me&&(qc.delectLine({dispatch:W,formCanvas:Me.canvas,index:Me.index,outerAlignH:Ke,outerAlignV:ot,type:Me.type}),W({type:"ruler:update:state",payload:{selectedLine:[]}}))},{exactMatch:!0,useCapture:!0}),(0,Kl._N)(ma.zF,(Vi,Di)=>{if(!Me)return;const{type:pa,index:Ra,canvas:Ar}=Me,ja=Ie.current,wr=ma.Jx.includes(Di)?1:10;let Rr=ja;pa==="vertical"&&ma.n2.includes(Di)&&(Rr=Di.includes("rightarrow")?ja+wr:ja-wr),pa==="horizontal"&&ma.BE.includes(Di)&&(Rr=Di.includes("downarrow")?ja+wr:ja-wr),Ie.current=Rr,qc.moveLine({dispatch:W,formCanvas:Ar,index:Ra,type:pa,value:Rr,outerAlignH:Ke,outerAlignV:ot}),Ni({newIndex:Ra,oldIndex:Ra,canvas:Ar,value:Rr,formCanvas:Ar,type:pa,isBoundary:!0})},{exactMatch:!0,useCapture:!0,target:document});const fn=(0,Kl.qK)(Vi=>{let{rect:Di,type:pa,value:Ra,sup:Ar}=Vi;if(!rt)return Ra;const ja=wt.current({_rect:Di,sup:Ar||zs}),{left:wr,top:Rr}=ja,sr={x:wr-Di.left,y:Rr-Di.top},kc=pa==="vertical"?sr.x:sr.y;return Ra+kc}),Ds=(0,Kl.qK)(Vi=>{let{value:Di,type:pa,curCanvas:Ra}=Vi;const Ar=jl({ratio:tn/100,viewportRect:Xn,canvasRect:ws}),ja={left:pa==="vertical"?Di:Math.round(Ar.startX),top:pa==="horizontal"?Di:Math.round(Ar.startY),width:pa==="vertical"?1:Math.round(Ar.endX-Ar.startX),height:pa==="horizontal"?1:Math.round(Ar.endY-Ar.startY)};return fn({rect:ja,type:pa,value:Di,sup:Ra==null?void 0:Ra.key})}),gi=Vi=>{var Di;let{formCanvas:pa,type:Ra,index:Ar}=Vi;return!!(Me&&(!pa&&!Me.canvas||(pa==null?void 0:pa.key)===((Di=Me.canvas)==null?void 0:Di.key))&&Me.index===Ar&&Me.type===Ra)},hi=Vi=>{let{formCanvas:Di,type:pa,index:Ra}=Vi;gi({formCanvas:Di,type:pa,index:Ra})&&W({type:"ruler:update:state",payload:{selectedLine:[]}})},Ni=Vi=>{const{isBoundary:Di=!1}=Vi;if(gi({formCanvas:Vi.formCanvas,type:Vi.type,index:Vi.oldIndex})){const pa={...Me,index:Vi.newIndex,canvas:Vi.canvas,value:Vi.value,isBoundary:Di};W({type:"ruler:update:state",payload:{selectedLine:[pa]}})}},ba=(0,Kl.qK)(Vi=>{let{canvas:Di,type:pa,value:Ra,event:Ar,index:ja,action:wr}=Vi;const Rr=Q(Ar);bo(!0);const sr=jl({ratio:tn/100,viewportRect:Xn,canvasRect:ws}),kc=Math.round(pa==="horizontal"?sr.startY:sr.startX),xl=Math.round(pa==="horizontal"?sr.endY:sr.endX),Vr=Pl({canvas:Di,type:pa,value:Ra});Vr<kc||Vr>xl?(lt.current.isDraggingDelete=!0,W({type:"ruler:update:state",payload:{isDeleteLine:!0}})):(lt.current.isDraggingDelete=!1,W({type:"ruler:update:state",payload:{isDeleteLine:!1}}));const ll=Ds({type:pa,value:Vr,curCanvas:Rr}),Zr=ll-Vr+Ra;so({type:pa,value:Zr,canvas:Di,event:Ar,curCanvas:Rr,index:ja,realValue:ll,action:wr}),!(!Rr&&!Pe)&&(Rr==null?void 0:Rr.key)!==(Pe==null?void 0:Pe.key)&&(W({type:"ruler:update:state",payload:{rulerLineCanvas:Rr}}),W({type:"entry:update:ruler"}))}),fa=(0,Kl.qK)(Vi=>{let{type:Di,value:pa,index:Ra,event:Ar,action:ja,canvas:wr,callback:Rr}=Vi;so(null),bo(!1);const sr=Q(Ar),kc=Pl({canvas:wr,type:Di,value:pa}),Vr=Ds({type:Di,value:kc,curCanvas:sr})-kc+pa;if(Rr==null||Rr(Vr),gi({formCanvas:wr,type:Di,index:Ra})&&(Ie.current=Vr),ja==="create"&<.current.isDraggingDelete){lt.current.isDraggingDelete=!1,W({type:"ruler:update:state",payload:{isDeleteLine:!1}});return}if(lt.current.isDraggingDelete){qc.delectLine({formCanvas:wr,dispatch:W,index:Ra,type:Di,outerAlignH:Ke,outerAlignV:ot}),hi({formCanvas:wr,type:Di,index:Ra}),W({type:"ruler:update:state",payload:{isDeleteLine:!1}});return}if(ja==="create"){const{newIndex:ll,realValue:Zr}=qc.addLine({dispatch:W,curCanvas:sr,type:Di,value:Vr,outerAlignH:Ke,outerAlignV:ot});W({type:"ruler:update:state",payload:{rulerLineCanvas:sr,selectedLine:[{canvas:sr,type:Di,index:ll,value:Zr}]}});return}if(!sr&&!wr){const{newIndex:ll,newValue:Zr}=qc.moveOutsideLine({dispatch:W,index:Ra,type:Di,value:Vr,outerAlignH:Ke,outerAlignV:ot});Ni({newIndex:ll,oldIndex:Ra,canvas:null,value:Zr,formCanvas:wr,type:Di});return}if(sr&&wr&&sr.key===wr.key){const{newIndex:ll,newValue:Zr}=qc.moveBetweenSameCanvas({dispatch:W,formCanvas:wr,index:Ra,type:Di,value:Vr});Ni({newIndex:ll,oldIndex:Ra,canvas:wr,value:Zr,formCanvas:wr,type:Di});return}if(!sr&&wr){const{newIndex:ll,newValue:Zr}=qc.moveInsideToOutside({dispatch:W,formCanvas:wr,index:Ra,type:Di,value:Vr,outerAlignH:Ke,outerAlignV:ot});Ni({newIndex:ll,oldIndex:Ra,canvas:null,value:Zr,formCanvas:wr,type:Di});return}if(sr&&!wr){const{newIndex:ll,newValue:Zr}=qc.moveOutsideToInside({dispatch:W,curCanvas:sr,index:Ra,type:Di,value:Vr,outerAlignH:Ke,outerAlignV:ot});Ni({newIndex:ll,oldIndex:Ra,canvas:sr,value:Zr,formCanvas:null,type:Di});return}if(sr&&wr&&sr.key!==wr.key){const{newIndex:ll,newValue:Zr}=qc.moveBetweenDifferentCanvas({dispatch:W,formCanvas:wr,curCanvas:sr,index:Ra,type:Di,value:Vr});Ni({newIndex:ll,oldIndex:Ra,canvas:sr,value:Zr,formCanvas:wr,type:Di})}});(0,x.useEffect)(()=>(fl.A.on("ruler:line:mouseup",fa),fl.A.on("ruler:line:mousemove",ba),()=>{fl.A.off("ruler:line:mouseup",fa),fl.A.off("ruler:line:mousemove",ba)}),[W,fa,ba]);const Ka=(0,Kl.qK)(()=>{wt.current=(0,Wn.ay)({movableItems:[],createSnapper:Do.WY,viewport:{scale:tn/100},isRuleLine:!0,getCurrentScreenAlign:()=>Wn.p$,getCommonParentAlign:()=>Wn.p$})}),da=(0,Kl.qK)(Vi=>{if((Vi.target.closest(".line-center")||Vi.target.closest(".ruler-line")||Vi.target.closest(".line"))&&Ka(),!!Me&&!Vi.target.closest(".line-center")&&!Vi.target.closest(".ruler-line")&&!Vi.target.closest(".line")){var Di,pa;if(W({type:"ruler:update:state",payload:{selectedLine:[],rulerLineCanvas:null}}),W({type:"entry:update:ruler"}),!(Me!=null&&Me.canvas))return;const Ra=Me.type==="horizontal"?(Di=Me.canvas)==null?void 0:Di.hotAttr.h:(pa=Me.canvas)==null?void 0:pa.hotAttr.w;(Ie.current<0||Ie.current>Ra)&&(so(null),qc.delectLine({formCanvas:Me.canvas,dispatch:W,index:Me.index,type:Me.type,outerAlignH:Ke,outerAlignV:ot}))}});(0,x.useEffect)(()=>{var Vi;return document.addEventListener("mousedown",da),Ie.current=(Vi=ge[0])==null?void 0:Vi.value,()=>{document.removeEventListener("mousedown",da)}},[da,ge]);const aa=tn/100,ka={transform:"scale("+aa+")",width:"calc(100% / "+aa+")",height:"calc(100% / "+aa+")",transformText:"scale("+1/aa+")"};return(0,y.jsxs)(Us,{id:"mb-ruler",currentToolBarHeight:Pn,theme:Ro,thick:ma.MV,ratio:aa,containerStyle:un,rulerLineWrapperStyle:ka,children:[(0,y.jsx)(fo,{lineTheme:Ro,onGetAlignUtil:Ka}),(0,y.jsx)(Ep,{}),(0,y.jsx)($n,{}),(0,y.jsx)(Ns,{})]})},Ws=()=>$c()?(0,y.jsx)(Qs,{}):null,ci=fe.Ay.div.withConfig({displayName:"styles__StyledMultiCurosr",componentId:"sc-1d1zkbd-0"})(["position:absolute;display:flex;transition:left 0.15s ease-out,top 0.15s ease-out;svg{margin:-2px 0 0 -2px;fill:",";}span{flex:1;overflow:visible;margin-top:18px;background-color:",";color:#fff;font-size:12px;min-height:16px;padding:0 4px;white-space:nowrap;}"],he=>he.$fill,he=>he.$fill),Ai=[{color:"#ff3333"},{color:"#23B571"},{color:"#1684FC"},{color:"#FF6161"},{color:"#FAAD14"},{color:"#6C4BD5"},{color:"#39CCBC"},{color:"#F54EDB"},{color:"#FF1D47"},{color:"#FF7100"}],Qi=(0,m.Mz)([p.jo,g.X_,g.Ur,p.pH,p.rg,p.uu,A.lU],(he,W,Q,ge,Me,Pe,Ie)=>({activePanel:he,scale:W,currentScreen:Q,enableMultiCursor:!(ge||Me||Pe),isShowMultiCursor:Ie}));function Oi(){const{activePanel:he,scale:W,currentScreen:Q,enableMultiCursor:ge,isShowMultiCursor:Me}=(0,o.d4)(Qi),[,Pe]=(0,x.useState)(0);if((0,x.useEffect)(()=>{if(!Me||!window.cssCur)return;let Ke=0;const ot=()=>{Ke=requestAnimationFrame(ot),!(!window.cssCur||!window.cssCur.pollCurChg())&&Pe(Date.now())};return ot(),()=>{cancelAnimationFrame(Ke)}},[Me]),!ge||!Me||!window.cssCur)return null;const Ie=Q==null?void 0:Q.cid,Oe=window.cssCur.getCurStat(Ie);return(0,y.jsx)(y.Fragment,{children:Oe.map(Ke=>{let[ot,rt,lt,wt]=Ke;const so={left:rt*W*.01+((he==null?void 0:he.left)||0),top:lt*W*.01+((he==null?void 0:he.top)||0)},bo=Ai[ot%10].color;return(0,y.jsxs)(ci,{style:so,$fill:bo,children:[(0,y.jsxs)("svg",{width:"22",height:"22",viewBox:"13 13 22 22",fill:"none",children:[(0,y.jsx)("path",{stroke:"#fff",d:"m16.16 15.53-.95-.32.32.95 4.38 13.16.42 1.25.52-1.21 2.58-6.05 5.92-2.46 1.24-.52-1.27-.42-13.16-4.38Z",filter:"url(#a)"}),(0,y.jsxs)("filter",{id:"a",width:"30",height:"30",x:"-2",y:"-1",children:[(0,y.jsx)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:"1"}),(0,y.jsx)("feOffset",{dy:"1"}),(0,y.jsx)("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0"}),(0,y.jsxs)("feMerge",{children:[(0,y.jsx)("feMergeNode",{}),(0,y.jsx)("feMergeNode",{in:"SourceGraphic"})]})]})]}),(0,y.jsx)("span",{children:wt})]},ot+"-"+W)})})}const Ii=he=>{he=he||{};const{target:W,onH:Q,onV:ge}=he,Me={onH:null,onV:null},Pe={onH:null,onV:null};return Q&&Q.size>0&&(Q.forEach((Ie,Oe)=>{Pe.onH=Oe,Me.onH=Ie}),Me.onH.push([W.left,W.top])),ge&&ge.size>0&&(ge.forEach((Ie,Oe)=>{Pe.onV=Oe,Me.onV=Ie}),Me.onV.push([W.left,W.top])),{lines:Me,distances:Pe}},$a=fe.Ay.div.withConfig({displayName:"styles__StyledSameLines",componentId:"sc-23fewc-0"})([".same-size-h-line{position:absolute;height:1px;border-top:1px solid ",';z-index:11;&::after{width:1px;height:5px;content:" ";background-color:',';position:absolute;right:0;bottom:0;}&::before{width:1px;height:5px;content:" ";background-color:',";position:absolute;bottom:0;}}.same-size-v-line{position:absolute;width:1px;border-left:1px solid ",';z-index:11;&::after{width:5px;height:1px;content:" ";background-color:',';position:absolute;bottom:0;right:0;}&::before{width:5px;height:1px;content:" ";background-color:',";position:absolute;top:0;right:0;}}.same-size-h-value{position:absolute;top:0;left:50%;color:",";transform:translate(-50%,calc(-100% - 3px));}.same-size-v-value{position:absolute;left:-40px;top:50%;color:",";transform:translate(0,-50%);}"],he=>he.theme.color_smartline,he=>he.theme.color_smartline,he=>he.theme.color_smartline,he=>he.theme.color_smartline,he=>he.theme.color_smartline,he=>he.theme.color_smartline,he=>he.theme.color_smartline,he=>he.theme.color_smartline);class Re extends x.PureComponent{render(){const{ratio:W,sameSize:Q}=this.props,{lines:{onH:ge,onV:Me},distances:{onH:Pe,onV:Ie}}=Ii(Q);return(0,y.jsxs)($a,{children:[Pe&&ge.map((Oe,Ke)=>{let[ot,rt]=Oe;return(0,y.jsx)("div",{className:"same-size-h-line",style:{transform:"translate("+ot*W+"px,"+rt*W+"px)",width:Pe*W},children:(0,y.jsx)("span",{className:"same-size-h-value",children:Pe})},"same-size-h-line-"+Ke)}),Ie&&Me.map((Oe,Ke)=>{let[ot,rt]=Oe;return(0,y.jsx)("div",{className:"same-size-v-line",style:{transform:"translate("+ot*W+"px,"+rt*W+"px)",height:Ie*W},children:(0,y.jsx)("span",{className:"same-size-v-value",style:{left:-String(Ie).length*6-6},children:Ie})},"same-size-v-line-"+Ke)})]})}}const je=(he,W)=>{const{target:Q,onH:ge,onV:Me}=he,Pe={onH:null,onV:null},Ie={onH:null,onV:null};W||(W={onH:null,onV:null});const{onH:Oe,onV:Ke}=W;let ot=!0;if((Oe||Ke)&&(ot=!1),ge&&ge.length&&Q){const rt=ge.map(lt=>St(lt.y,Q,lt.refTotalRect,"onH"));if(Pe.onH=rt,ot){const lt=ge.map(wt=>vt(wt.y,Q,wt.refRects,"onH"));Ie.onH=et(lt,"onH")}}if(Me&&Me.length&&Q){const rt=Me.map(lt=>St(lt.x,Q,lt.refTotalRect,"onV"));if(Pe.onV=rt,ot){const lt=Me.map(wt=>vt(wt.x,Q,wt.refRects,"onV"));Ie.onV=et(lt,"onV")}}return{lines:Pe,distances:Ie}},et=(he,W)=>{const Q=new Map;he.forEach(Me=>{Me.forEach(Pe=>{const Ie=Q.get(Pe.length)||[];let Oe=!1;Ie.forEach((Ke,ot)=>{W==="onV"&&Ke[0].y===Pe.line[0].y&&(Ke[0].x>Pe.line[0].x&&(Ie[ot]=Pe.line,Q.set(Pe.length,Ie)),Oe=!0),W==="onH"&&Ke[0].x===Pe.line[0].x&&(Ke[0].y>Pe.line[0].y&&(Ie[ot]=Pe.line,Q.set(Pe.length,Ie)),Oe=!0)}),Oe||(Ie.push(Pe.line),Q.set(Pe.length,Ie))})});const ge=[];return Q.forEach((Me,Pe)=>{Me.forEach(Ie=>{ge.push({length:Pe,line:Ie})})}),ge},St=(he,W,Q,ge)=>{if(ge==="onH")return[{x:Math.min(W.left,Q.left),y:he},{x:Math.max(W.right,Q.right),y:he}];if(ge==="onV")return[{x:he,y:Math.min(W.top,Q.top)},{x:he,y:Math.max(W.bottom,Q.bottom)}]},vt=(he,W,Q,ge)=>{let Me=[];if(ge==="onH"){const{rect:Pe,relationship:Ie,allRects:Oe}=cs(W,Q,"onH");if(Ie==="overlap")Me=[{line:[{x:Pe.left,y:he},{x:W.left,y:he}].sort((Ke,ot)=>Ke.x-ot.x),length:Math.abs(Pe.left-W.left)},{line:[{x:Pe.right,y:he},{x:W.right,y:he}].sort((Ke,ot)=>Ke.x-ot.x),length:Math.abs(Pe.right-W.right)}];else{const Ke=gn({pos:he,allRects:Oe,target:W});if(Ke)return Ke;Me=En(he,Pe,W)}Me=Me.filter(Ke=>Ke.length===W.width&&Ke.line[0].x===W.left&&Ke.line[1].x===W.right||Ke.length===W.width/2&&(Ke.line[0].x===W.left||Ke.line[1].x===W.right)?!1:Ke)}else if(ge==="onV"){const{rect:Pe,relationship:Ie,allRects:Oe}=cs(W,Q,"onV");if(Ie==="overlap")Me=[{line:[{x:he,y:Pe.top},{x:he,y:W.top}].sort((Ke,ot)=>Ke.y-ot.y),length:Math.abs(Pe.top-W.top)},{line:[{x:he,y:Pe.bottom},{x:he,y:W.bottom}].sort((Ke,ot)=>Ke.y-ot.y),length:Math.abs(Pe.bottom-W.bottom)}];else{const Ke=no({pos:he,allRects:Oe,target:W});if(Ke)return Ke;Me=$o(he,Pe,W)}Me=Me.filter(Ke=>Ke.length===W.height&&Ke.line[0].y===W.top&&Ke.line[1].y===W.bottom||Ke.length===W.height/2&&(Ke.line[0].y===W.top||Ke.line[1].y===W.bottom)?!1:Ke)}return Me},no=he=>{let{pos:W,allRects:Q,target:ge}=he;if(Q.top.length<1||Q.bottom.length<1)return!1;Q.top.sort((Oe,Ke)=>Oe.length-Ke.length),Q.bottom.sort((Oe,Ke)=>Oe.length-Ke.length);const Me=Q.top[0],Pe=Q.bottom[0];let Ie=[];return Ie=Ie.concat($o(W,Me.rect,ge)),Ie=Ie.concat($o(W,Pe.rect,ge)),Ie},$o=(he,W,Q)=>{const ge=Q.top>W.top;return[{line:ge?[{x:he,y:W.bottom},{x:he,y:Q.top}]:[{x:he,y:Q.bottom},{x:he,y:Q.top}],length:Math.abs(ge?Q.top-W.bottom:W.top-Q.bottom)}]},gn=he=>{let{pos:W,allRects:Q,target:ge}=he;if(Q.left.length<1||Q.right.length<1)return!1;Q.left.sort((Oe,Ke)=>Oe.length-Ke.length),Q.right.sort((Oe,Ke)=>Oe.length-Ke.length);const Me=Q.left[0],Pe=Q.right[0];let Ie=[];return Ie=Ie.concat(En(W,Me.rect,ge)),Ie=Ie.concat(En(W,Pe.rect,ge)),Ie},En=(he,W,Q)=>{if(!Q||!W)return[];const ge=Q.left>W.left;return[{line:ge?[{x:W.right,y:he},{x:Q.left,y:he}]:[{x:Q.right,y:he},{x:W.left,y:he}],length:Math.abs(ge?Q.left-W.right:W.left-Q.right)}]},cs=(he,W,Q)=>{const ge=Q==="onH"?"right":"bottom",Me=Q==="onH"?"left":"top",Pe=Q==="onH"?"width":"height";let Ie=1/0;const Oe={rect:null,relationship:"",allRects:{top:[],bottom:[],left:[],right:[]}};return W.forEach(Ke=>{const ot=Zn(Ke),rt=Math.max(ot[ge],he[ge])-Math.min(ot[Me],he[Me]);if(rt<Ie){Ie=rt,Oe.rect=ot;const wt=he[Pe]+ot[Pe]>=rt?"overlap":"noOverlap";Oe.relationship=wt}ot.bottom<=he.top&&Oe.allRects.top.push({length:rt,rect:ot}),ot.top>=he.bottom&&Oe.allRects.bottom.push({length:rt,rect:ot}),ot.right<=he.left&&Oe.allRects.left.push({length:rt,rect:ot}),ot.left>=he.right&&Oe.allRects.right.push({length:rt,rect:ot})}),Oe},Zn=he=>{const W=he.cid||he.key;if(W===void 0)return he;const[Q,ge,Me,Pe]=(0,L0.C0)(sdkStore,W);return{left:Q,top:ge,right:Me,bottom:Pe,width:Me-Q,height:Pe-ge}},fs=fe.Ay.div.withConfig({displayName:"styles__StyledAlignLines",componentId:"sc-1pok4qs-0"})([".h-line,.dis-h-line{position:absolute;height:1px;border-top:1px solid ",";z-index:10;}.v-line,.dis-v-line{position:absolute;width:1px;border-left:1px solid ",";z-index:10;}.edge-h-value,.dis-h-value{position:absolute;top:0;left:50%;color:",";transform:translate(-50%,calc(-100% - 3px));}.edge-v-line{position:absolute;width:1px;border-left:1px solid ",";z-index:10;}.edge-h-line{position:absolute;height:1px;border-top:1px solid ",";z-index:10;}.edge-v-value,.dis-v-value{position:absolute;right:0;top:50%;color:",";transform:translate(0,-50%);}.dis-h-line{border-top:1px solid ",";z-index:10;}.dis-v-line{border-left:1px solid ",";z-index:10;}"],he=>he.theme.color_polyline_hover,he=>he.theme.color_polyline_hover,he=>he.theme.color_smartline,he=>he.theme.color_smartline,he=>he.theme.color_smartline,he=>he.theme.color_smartline,he=>he.theme.color_smartline,he=>he.theme.color_smartline);class ks extends x.PureComponent{render(){const{alignment:W,distributed:Q,ratio:ge}=this.props,{lines:{onH:Me,onV:Pe},distances:{onH:Ie,onV:Oe}}=je(W,Q);return(0,y.jsxs)(fs,{children:[Me&&Me.map((Ke,ot)=>(0,y.jsx)("div",{className:"h-line",style:{transform:"translate("+Ke[0].x*ge+"px,"+Ke[0].y*ge+"px)",width:(Ke[1].x-Ke[0].x)*ge}},"h-line-"+ot)),Pe&&Pe.map((Ke,ot)=>(0,y.jsx)("div",{className:"v-line",style:{transform:"translate("+Ke[0].x*ge+"px,"+Ke[0].y*ge+"px)",height:(Ke[1].y-Ke[0].y)*ge}},"v-line-"+ot)),Ie&&Ie.map((Ke,ot)=>{let{line:[rt],length:lt}=Ke;return lt?(0,y.jsx)("div",{className:"dis-h-line",style:{transform:"translate("+rt.x*ge+"px,"+rt.y*ge+"px)",width:lt*ge},children:(0,y.jsx)("span",{className:"dis-h-value",children:lt})},"dis-h-line-"+ot):null}),Oe&&Oe.map((Ke,ot)=>{let{line:[rt],length:lt}=Ke;return lt?(0,y.jsx)("div",{className:"dis-v-line",style:{transform:"translate("+rt.x*ge+"px,"+rt.y*ge+"px)",height:lt*ge},children:(0,y.jsx)("span",{className:"dis-v-value",style:{left:-String(lt).length*6-8},children:lt})},"dis-v-line-"+ot):null})]})}}const Zs=he=>{const{onV:W,onH:Q}=he,ge={onV:null,onH:null},Me={onV:{edge:[],gap:[]},onH:{edge:[],gap:[]}};if(W){ge.onV=W.gap;const Pe=W.rects.map(Oe=>{let[Ke,ot]=Oe;const rt=Math.min(Ke.left,ot.left),lt=Math.min(Ke.bottom,ot.bottom),wt=Math.max(Ke.right,ot.right)-rt;return{left:rt,top:lt,width:wt,height:W.gap}}),Ie=new Map;if(Pe.forEach(Oe=>{const Ke=Oe.top,ot=Ie.get(Ke)||[];ot.push(Oe),Ie.set(Ke,ot)}),Ie.size<2)Me.onV.gap=[];else{const Oe=[];Ie.forEach((Ke,ot)=>{if(Ke.length===1){Oe.push(Ke[0]);return}const rt=Math.max.apply(Math,Ke.map(function(wt){return wt.left+wt.width})),lt=Math.min.apply(Math,Ke.map(function(wt){return wt.left}));Oe.push({left:lt,top:Ke[0].top,width:rt-lt,height:Ke[0].height})}),Me.onV.gap=Oe}}if(Q){ge.onH=Q.gap;const Pe=Q.rects.map(Oe=>{let[Ke,ot]=Oe;const rt=Math.min(Ke.right,ot.right),lt=Math.min(Ke.top,ot.top),wt=Math.max(Ke.bottom,ot.bottom)-lt;return{left:rt,top:lt,width:Q.gap,height:wt}}),Ie=new Map;if(Pe.forEach(Oe=>{const Ke=Oe.left,ot=Ie.get(Ke)||[];ot.push(Oe),Ie.set(Ke,ot)}),Ie.size<2)Me.onH.gap=[];else{const Oe=[];Ie.forEach((Ke,ot)=>{if(Ke.length===1){Oe.push(Ke[0]);return}const rt=Math.min.apply(Math,Ke.map(function(wt){return wt.top})),lt=Math.max.apply(Math,Ke.map(function(wt){return wt.top+wt.height}));Oe.push({left:Ke[0].left,top:rt,width:Ke[0].width,height:lt-rt})}),Me.onH.gap=Oe}}return{gap:ge,lines:Me}},ni=fe.Ay.div.withConfig({displayName:"styles__StyledDistributedLines",componentId:"sc-g9en5-0"})([".h-gap{position:absolute;background:",";.value{position:absolute;top:0;left:50%;transform:translate(-50%,calc(-100% - 3px));color:",";}}.v-gap{position:absolute;background:",";.value{position:absolute;top:50%;transform:translate(0,-50%);color:",";}}"],he=>he.theme.color_spacing,he=>he.theme.color_smartline,he=>he.theme.color_spacing,he=>he.theme.color_smartline);class wi extends x.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"genHGapIndicators",(W,Q,ge,Me)=>{let{left:Pe,width:Ie,top:Oe,height:Ke}=W;const ot={transform:"translate("+Pe*ge+"px,"+Oe*ge+"px)",height:Ke*ge,width:Ie*ge};return(0,y.jsx)("div",{className:"h-gap",style:ot,children:(0,y.jsx)("span",{className:"value",children:Me.onH})},"gap-"+Q)}),(0,r.A)(this,"genVGapIndicators",(W,Q,ge,Me)=>{let{left:Pe,width:Ie,top:Oe,height:Ke}=W;const ot={transform:"translate("+Pe*ge+"px,"+Oe*ge+"px)",height:Ke*ge,width:Ie*ge};return(0,y.jsx)("div",{className:"v-gap",style:ot,children:(0,y.jsx)("span",{className:"value",style:{left:-String(Me.onV).length*6-6},children:Me.onV})},"v-gap-"+Q)})}render(){const{distributed:W,ratio:Q}=this.props,{gap:ge,lines:Me}=Zs(W);return(0,y.jsxs)(ni,{children:[ge.onH?Me.onH.gap.map((Pe,Ie)=>this.genHGapIndicators(Pe,Ie,Q,ge)):null,ge.onV?Me.onV.gap.map((Pe,Ie)=>this.genVGapIndicators(Pe,Ie,Q,ge)):null]})}}const Fi=(0,x.memo)(he=>{let{sameSize:W,alignment:Q,distributed:ge,ratio:Me}=he;return(0,y.jsxs)(x.Fragment,{children:[ge&&(0,y.jsx)(wi,{distributed:ge,ratio:Me}),Q&&(0,y.jsx)(ks,{alignment:Q,distributed:ge,ratio:Me}),W&&(0,y.jsx)(Re,{sameSize:W,ratio:Me})]})}),$i=he=>he.screencontainer.alignment,ga=he=>he.screencontainer.distributed,Ia=he=>he.screencontainer.sameSize,_a=(0,m.Mz)([g.X_,Ia,$i,ga],(he,W,Q,ge)=>({ratio:he/100,sameSize:W,alignment:Q,distributed:ge})),za=(0,o.Ng)(he=>_a(he))(Fi);var la=e(6527),qa=e.n(la),rr=e(78695);const pr=function(he,W,Q){return he===void 0&&(he=0),W===void 0&&(W=1),Q===void 0&&(Q=null),Number.parseFloat((1/W*he).toFixed(2))+Q},yr=(he,W)=>{const Q=[],ge=(0,cd.H4)(he,W);if(ge.width<he.width+W.width)Q[0]=null;else{const Me=Math.round(ge.width)-(Math.round(he.width)+Math.round(W.width)),Pe=W.left>he.left;Q[0]=Pe?Me:-Me}if(ge.height<he.height+W.height)Q[1]=null;else{const Me=Math.round(ge.height)-(Math.round(he.height)+Math.round(W.height)),Pe=W.top>he.top;Q[1]=Pe?Me:-Me}return Q},Lr=(he,W)=>{if((0,cd.CU)(he,W))return{top:Math.round(he.top)-Math.round(W.top),right:Math.round(W.left)+Math.round(W.width)-(Math.round(he.left)+Math.round(he.width)),bottom:Math.round(W.top)+Math.round(W.height)-(Math.round(he.top)+Math.round(he.height)),left:Math.round(he.left)-Math.round(W.left)};{const Q={},ge=yr(he,W);return ge[0]>0?Q.right=ge[0]:ge[0]<0&&(Q.left=Math.abs(ge[0])),ge[1]>0?Q.bottom=ge[1]:ge[1]<0&&(Q.top=Math.abs(ge[1])),Q}},Tr=he=>he*100+"%",Nl=he=>[he.left,he.top,he.left+he.width,he.top+he.height];class Il extends x.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"getDistanceMarksStyle",W=>{const{ratio:Q}=this.props;return{width:W.width*Q,height:W.height*Q,left:W.left*Q,top:W.top*Q}}),(0,r.A)(this,"mapDistanceMarks",(W,Q)=>{let[ge,Me]=W;const{style:Pe,renderValue:Ie}=this.props,{showStartAndEndBoundary:Oe,colorForLines:Ke,colorForText:ot,backgroundColorForText:rt,dashed:lt}=Pe,wt=this.getMarkStyle(ge,Me),so=Math.abs(Me),bo=Math.round(pr(so));return(0,y.jsxs)("div",{children:[(0,y.jsx)("div",{className:"distance-line "+ge,style:{...wt.line,[["top","bottom"].includes(ge)?"borderLeftStyle":"borderTopStyle"]:lt?"dashed":"solid",borderColor:Ke}}),Ie?Ie({value:so,style:wt.value,customClassName:"distance-value "+ge}):(0,y.jsx)("span",{className:"distance-value "+ge,style:{...wt.value,color:ot,backgroundColor:rt},children:bo})]},Q+"-"+Me)}),(0,r.A)(this,"getMarkStyle",(W,Q)=>{const{baseRect:ge,refRect:Me}=this.props,Pe={line:{},value:{},endBoundary:{}},Ie=Nl(ge),Oe=Nl(Me),Ke=(0,Ct.Pn)(Ie,Oe),ot=["right","left"],rt=["right","bottom"],lt=["top","bottom"],wt=ot.includes(W)?Q/ge.width:Q/ge.height,so=(Me.left-ge.left+Me.width/2)/ge.width,bo=(Me.top-ge.top+Me.height/2)/ge.height,Ro=lt.includes(W)?"left":"top";return Pe.line={[W]:Q<0?0:Tr(-wt),[Ro]:Ke?Tr(Math.abs(Ro==="left"?so:bo)):"50%",[ot.includes(W)?"width":"height"]:Tr(Math.abs(wt))},Pe.endBoundary={[W]:Tr(-wt)},Pe.value={[ot.includes(W)?"left":"top"]:rt.includes(W)?Tr(1+wt/2):Tr(-wt/2),[Ro]:Ke?Tr(Math.abs(Ro==="left"?so:bo)):"50%"},Pe})}render(){const{baseRect:W,refRect:Q}=this.props,ge=Lr(W,Q),Me=this.getDistanceMarksStyle(W);return(0,y.jsx)("div",{className:"distance-marks",style:Me,children:Object.entries(ge).map(this.mapDistanceMarks)})}}const Ol=he=>{let{refRect:W,ratio:Q,style:{dashed:ge,colorForLines:Me}}=he;return(0,y.jsx)("div",{style:{position:"absolute",pointerEvents:"none",width:W.width*Q,height:W.height*Q,left:W.left*Q,top:W.top*Q,border:"1px "+(ge?"dashed":"solid")+" "+Me}})};class Ur extends x.Component{constructor(){super(...arguments),(0,r.A)(this,"getAuxiliaryLinesStyle",W=>{const{ratio:Q}=this.props;return{width:W.width*Q,height:W.height*Q,top:W.top*Q,left:W.left*Q}}),(0,r.A)(this,"getAuxiliaryLinesLength",()=>{const W={},{baseRect:Q,refRect:ge}=this.props,Me=(0,cd.H4)(Q,ge),Pe=Me.width-ge.width;Me.height-(Q.height+ge.height)>0&&Pe>Q.width/2&&(W.horizontal=Pe);const Oe=Me.height-ge.height;return Me.width-(Q.width+ge.width)>0&&Oe>Q.height/2&&(W.vertical=Oe),W}),(0,r.A)(this,"getLineStyle",(W,Q)=>{const{baseRect:ge,refRect:Me,ratio:Pe}=this.props,Ie=ge.left>Me.left,Oe=ge.top>Me.top,Ke={};if(W){const ot=W/Me.width;Ke.horizontal={[Oe?"bottom":"top"]:0,[Ie?"right":"left"]:Tr(-ot),width:Tr(ot)}}if(Q){const ot=Q/Me.height;Ke.vertical={[Ie?"right":"left"]:0,[Oe?"bottom":"top"]:-ot*Pe,height:ot*Pe}}return Ke})}render(){const{refRect:W,style:Q}=this.props,{horizontal:ge,vertical:Me}=this.getAuxiliaryLinesLength();if(!ge&&!Me)return null;const Pe=this.getAuxiliaryLinesStyle(W),Ie=this.getLineStyle(ge,Me);return(0,y.jsxs)("div",{className:"smart-auxiliary-lines",style:Pe,children:[ge&&(0,y.jsx)("div",{className:"line horizontal",style:{...Ie.horizontal,borderTopStyle:Q.dashed?"dashed":"solid",borderTopColor:Q.colorForLines}}),Me&&(0,y.jsx)("div",{className:"line vertical",style:{...Ie.vertical,borderLeftStyle:Q.dashed?"dashed":"solid",borderLeftColor:Q.colorForLines}})]})}}const bc=fe.Ay.div.withConfig({displayName:"styles__StyledDistanceMeasurement",componentId:"sc-1q2z63f-0"})(["width:100%;height:100%;pointer-events:none;.distance-marks{position:absolute;pointer-events:none;.distance-line{position:absolute;width:1px;height:1px;&.top,&.bottom{border-left:1px solid black;}&.left,&.right{border-top:1px solid black;}}.distance-value{position:absolute;&.top,&.bottom{transform:translateY(-50%);}&.left,&.right{transform:translate(-50%,-100%);}}.distance-mark-start-boundary{&.top{top:0;}&.right{right:0;}&.bottom{bottom:0;}&.left{left:0;}}.distance-mark-start-boundary,.distance-mark-end-boundary{position:absolute;&.top,&.bottom{transform:translateX(-4px);width:9px;height:1px;border-top:1px solid black;}&.left,&.right{transform:translateY(-4px);width:1px;height:9px;border-left:1px solid black;}}}.smart-auxiliary-lines{position:absolute;pointer-events:none;.line{position:absolute;width:1px;height:1px;&.horizontal{border-top:1px solid black;}&.vertical{border-left:1px solid black;}}}.verbose-auxiliary-lines{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;.line{position:absolute;&.top,&.bottom{width:100%;height:1px;border-top:1px solid black;}&.bottom{transform:translateY(-1px);}&.left,&.right{width:1px;height:100%;border-left:1px solid black;}&.right{transform:translateX(-1px);}}}"]);var Ll=e(54909);const tp={design:{distanceMarks:{showStartAndEndBoundary:!1,dashed:!1,colorForLines:Ll.f.color_polyline_hover.value_light,colorForText:Ll.f.color_polyline_hover.value_light},refRectBorder:{dashed:!1,colorForLines:Ll.f.color_polyline_hover.value_light},verboseAuxiliaryLines:!1,auxiliaryLines:{dashed:!0,colorForLines:Ll.f.color_polyline_hover.value_light}},preview:{distanceMarks:{showStartAndEndBoundary:!0,dashed:!0,colorForLines:Ll.f.color_polyline_hover.value_light},refRectBorder:{dashed:!0,colorForLines:Ll.f.color_proto.value_light},verboseAuxiliaryLines:!0,auxiliaryLines:{dashed:!0,colorForLines:Ll.f.color_proto.value_light}}};class kl extends x.Component{shouldComponentUpdate(W){return!((0,cd.Jz)(W.baseRect,this.props.baseRect)&&(0,cd.Jz)(W.refRect,this.props.refRect)&&W.ratio===this.props.ratio&&W.theme===this.props.theme)}render(){const{baseRect:W,refRect:Q,theme:ge,renderValue:Me,ratio:Pe}=this.props;return(0,y.jsxs)(bc,{className:"distance-measurement-container",children:[(0,y.jsx)(Il,{baseRect:W,refRect:Q,ratio:Pe,style:tp[ge].distanceMarks,renderValue:Me}),(0,y.jsx)(Ur,{baseRect:W,refRect:Q,ratio:Pe,style:tp[ge].auxiliaryLines}),(0,y.jsx)(Ol,{refRect:Q,ratio:Pe,style:tp[ge].refRectBorder})]})}}var cc=e(12298);const Nd=he=>{let{enableSelectionDistance:W,hoverTree:Q,newSelection:ge,scale:Me}=he;if(!W)return null;const Pe=Q?(0,qo.gf)(Q):[],Ie=ge,Oe=Pe.map(lt=>lt.key);let Ke,ot;if(Ie.length)if(Q&&qa()(Oe,Ie).length===0)Ie.includes(Q.cid)||(Ke=(0,rr.nM)(Ie),ot=(0,rr.nM)(Oe));else{var rt;const lt=(0,cc.dk)(Ie),wt=lt?sdkStore.getHotItem(lt):null;if(wt&&((rt=wt.hotAttr)==null?void 0:rt.type)==="rResCanvas"){const{x:so,y:bo,w:Ro,h:tn}=wt.hotAttr;Ke=(0,rr.nM)(Ie),ot={top:bo-tn/2,left:so-Ro/2,right:so+Ro/2,bottom:bo+tn/2,width:Ro,height:tn}}}else if(Q){const lt=sdkStore.locUpColdCanvasKey((Q==null?void 0:Q.cid)||"");if(lt&<!==(Q==null?void 0:Q.cid)){const{hotAttr:{x:wt,y:so,w:bo,h:Ro}}=sdkStore.getHotItem(lt);Ke=(0,rr.nM)(Oe),ot={top:so-Ro/2,left:wt-bo/2,right:wt+bo/2,bottom:so+Ro/2,width:bo,height:Ro}}}return(0,y.jsx)(bd,{baseRect:Ke,refRect:ot,scale:Me})};class bd extends x.PureComponent{componentDidMount(){var W,Q,ge;(W=document.querySelector("#link-design"))==null||W.classList.add("hide"),(Q=document.querySelector("#mb-linklist"))==null||Q.classList.add("hide"),(ge=document.querySelectorAll(".selection-handler"))==null||ge.forEach(Me=>Me.classList.add("hide"))}componentWillUnmount(){var W,Q,ge;(W=document.querySelector("#link-design"))==null||W.classList.remove("hide"),(Q=document.querySelector("#mb-linklist"))==null||Q.classList.remove("hide"),(ge=document.querySelectorAll(".selection-handler"))==null||ge.forEach(Me=>Me.classList.remove("hide"))}render(){const{baseRect:W,refRect:Q,scale:ge}=this.props;return W&&Q?(0,y.jsx)(kl,{baseRect:W,refRect:Q,theme:"design",ratio:ge/100}):null}}const B0=Nd,kp=(0,m.Mz)([g.Ur,p.$c,ae.p$,ae.QA,g.X_,g.pO,g.M_,p._b],(he,W,Q,ge,Me,Pe,Ie,Oe)=>({rootScreen:he,screen,hoverTree:W,newSelection:Q,selectItems:ge,scale:Me,enableSelectionDistance:!Pe&&Ie&&!Oe})),_h=(0,o.Ng)(he=>kp(he))(B0);var Dl=e(58314),_p=e(74301),Hd=e(28497),Ph=e(19216),Kd=e(25399);const Pp=(0,m.Mz)([ae.x$,C.r,p.jx,p.jI],(he,W,Q,ge)=>{let{isEditingCombo:Me}=W;const Pe=Q===N.qi.OnlyView;return!he[0]||he.length>1||(0,Jt.OO)(he[0].key)||!he[0].hotAttr.isVisible||Me&&!ge||Pe?void 0:(0,Ph.Xr)(sdkStore,he[0].key,Me,ge).filter(Oe=>Oe.interactionType===Hd.O2.ScrollTo&&Oe.interactive)}),iu=()=>{const he=(0,o.d4)(Pp),W=(0,o.d4)(g.ER),Q=(0,o.d4)(g.X_),ge=(0,x.useRef)(W.x),Me=(0,x.useRef)(W.y);return(0,x.useEffect)(()=>{ge.current=W.x,Me.current=W.y},[W]),he?he.map((Pe,Ie)=>(0,y.jsx)(au,{interactionScrollToOnSelectedItem:Pe,canvasOffset:W,canvasOffsetXRef:ge,canvasOffsetYRef:Me,scale:Q},Ie)):null},au=he=>{let{interactionScrollToOnSelectedItem:W,canvasOffsetXRef:Q,canvasOffsetYRef:ge,scale:Me,canvasOffset:Pe}=he;const Ie=(0,o.wA)(),[Oe,Ke]=(0,x.useState)(!1),[ot,rt]=(0,x.useState)(!1);if(!W)return null;let lt,wt;try{let un=W.targetWidgetKey===Kd.rE?W.triggerItemKey:W.targetWidgetKey,Xn=sdkStore.locUpHotCanvasKey(un)||"";const ws=sdkStore.locUpHotCanvasKey(W.triggerItemKey)||"";if(Xn!==ws)return null;un=(0,Jt.OO)(un)?(0,Jt.QL)(un).pop():un,lt=un?sdkStore.getHotAABB(un):null,Xn=(0,Jt.OO)(Xn)?(0,Jt.QL)(Xn).pop():Xn,wt=Xn?sdkStore.getHotAABB(Xn):null}catch(un){return null}const so=Math.round((0,_p.qE)(W.scrollToOffsetX,wt&<?wt[0]-lt[0]:-1/0,wt&<?wt[2]-lt[0]:1/0)),bo=Math.round((0,_p.qE)(W.scrollToOffsetY,wt&<?wt[1]-lt[1]:-1/0,wt&<?wt[3]-lt[1]:1/0));if(!W||!lt||!wt)return null;const Ro=Me/100,tn=un=>{un.stopPropagation(),Ke(!0),sdkStore.combineMergeMark("update-interaction-scroll-offset");const Xn=un.clientX,ws=Pe.x;let zs=so;const fn=gi=>{if(gi.stopPropagation(),wt===null||lt===null)return;const hi=Math.round((gi.clientX-Xn+ws-Q.current)/Ro);zs=(0,_p.qE)(so+hi,wt[0]-lt[0],wt[2]-lt[0]),Ie({type:"entry:update:single-link",payload:{link:{...W,scrollToOffsetX:zs}}})},Ds=()=>{Ke(!1),sdkStore.combineMerge("update-interaction-scroll-offset"),document.removeEventListener("mousemove",fn),document.removeEventListener("mouseup",Ds)};document.addEventListener("mousemove",fn),document.addEventListener("mouseup",Ds)},Pn=un=>{un.stopPropagation(),rt(!0),sdkStore.combineMergeMark("update-interaction-scroll-offset");const Xn=un.clientY,ws=Pe.y;let zs=bo;const fn=gi=>{if(gi.stopPropagation(),wt===null||lt===null)return;const hi=Math.round((gi.clientY-Xn+ws-ge.current)/Ro);zs=(0,_p.qE)(bo+hi,wt[1]-lt[1],wt[3]-lt[1]),Ie({type:"entry:update:single-link",payload:{link:{...W,scrollToOffsetY:zs}}})},Ds=()=>{rt(!1),sdkStore.combineMerge("update-interaction-scroll-offset"),document.removeEventListener("mousemove",fn),document.removeEventListener("mouseup",Ds)};document.addEventListener("mousemove",fn),document.addEventListener("mouseup",Ds)};return(0,y.jsxs)(a1,{children:[Oe&&(0,y.jsx)("div",{className:"scroll-to-offset",style:{transform:"translate("+(Math.min(lt[0],lt[0]+so)+Math.abs(so)/2)*Ro+"px, "+((lt[1]+lt[3])/2+5)*Ro+"px)"},children:so}),W.scrollToDir!=="vertical"&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:"guideline vertical handle",onMouseDown:tn,style:{height:(wt[3]-wt[1])*Ro,transform:"translate("+(lt[0]+so)*Ro+"px, "+wt[1]*Ro+"px)"}}),lt[1]<wt[1]&&(0,y.jsx)("div",{className:"guideline vertical dashed handle",onMouseDown:tn,style:{height:(wt[1]-lt[1])*Ro,transform:"translate("+(lt[0]+so)*Ro+"px, "+lt[1]*Ro+"px)"}}),lt[3]>wt[3]&&(0,y.jsx)("div",{className:"guideline vertical dashed handle",onMouseDown:tn,style:{height:(lt[3]-wt[3])*Ro,transform:"translate("+(lt[0]+so)*Ro+"px, "+wt[3]*Ro+"px)"}}),(0,y.jsx)("div",{className:"guideline horizontal dashed",style:{width:Math.abs(so)*Ro,transform:"translate("+Math.min(lt[0],lt[0]+so)*Ro+"px, "+(lt[1]+lt[3])/2*Ro+"px)"}})]}),ot&&(0,y.jsx)("div",{className:"scroll-to-offset",style:{transform:"translate("+((lt[0]+lt[2])/2+5)*Ro+"px, "+(Math.min(lt[1],lt[1]+bo)+Math.abs(bo)/2)*Ro+"px)"},children:bo}),W.scrollToDir!=="horizontal"&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:"guideline horizontal handle",onMouseDown:Pn,style:{width:(wt[2]-wt[0])*Ro,transform:"translate("+wt[0]*Ro+"px, "+(lt[1]+bo)*Ro+"px)"}}),lt[0]<wt[0]&&(0,y.jsx)("div",{className:"guideline horizontal out-of-canvas dashed handle",onMouseDown:Pn,style:{width:(wt[0]-lt[0])*Ro,transform:"translate("+lt[0]*Ro+"px, "+(lt[1]+bo)*Ro+"px)"}}),lt[2]>wt[2]&&(0,y.jsx)("div",{className:"guideline horizontal out-of-canvas dashed handle",onMouseDown:Pn,style:{width:(lt[2]-wt[2])*Ro,transform:"translate("+wt[2]*Ro+"px, "+(lt[1]+bo)*Ro+"px)"}}),(0,y.jsx)("div",{className:"guideline vertical dashed",style:{height:Math.abs(bo)*Ro,transform:"translate("+(lt[0]+lt[2])/2*Ro+"px, "+Math.min(lt[1],lt[1]+bo)*Ro+"px)"}})]})]})},a1=fe.Ay.div.withConfig({displayName:"InteractionScrollToGuidelines__StyledScrollToOffsetGuidelines",componentId:"sc-av5kev-0"})(["pointer-events:none;.guideline{position:absolute;&.horizontal{height:1px;z-index:65535;background-color:#5CDDA1;&.dashed{background-color:transparent;border-top:1px dashed #5CDDA1;&:hover{background-color:transparent;}}&.handle{cursor:",";pointer-events:auto;&:hover{background-color:#23B571;}&::before{content:'';display:inline-block;width:inherit;height:8px;position:absolute;top:-4px;}}}&.vertical{border-right:1px solid #5CDDA1;z-index:65535;&.dashed{border-right:1px dashed #5CDDA1;}&.handle{cursor:",";pointer-events:auto;&:hover{background-color:#23B571;}&::before{content:'';display:inline-block;height:inherit;width:8px;position:absolute;left:-4px;}}}}.scroll-to-offset{position:absolute;color:#5CDDA1;}"],pt.M.rowResize,pt.M.colloumResize);var ru=e(47813),Zh=e(5115),lu=e(38047);const nh=(0,m.Mz)([ae.x$,gs.zX,Zh.Yg,Zh.w_,Zh.Jg,Zh.gX,ru.y,C.r,p.jx,p.jI],(he,W,Q,ge,Me,Pe,Ie,Oe,Ke,ot)=>{let{isWidgetSetting:rt,isCanvasSetting:lt}=Ie,{isEditingCombo:wt,isEditingBasket:so,isEditingMuban:bo}=Oe;try{var Ro,tn;const Pn=Ke===N.qi.OnlyView;if(!he[0]||he.length>1||(0,Jt.OO)(he[0].key)&&((Ro=sdkStore.getHotItem(sdkStore.locUpColdBasketKey(he[0].key)||""))==null?void 0:Ro.hotAttr.basket)==="bDanli"||!he[0].hotAttr.isVisible||wt||so||bo||Pn)return null;const un=(lt||rt)&&Me===1,Xn=W&&W.selectionLeftTopInfo.y===W.selectionRightBottomInfo.y?W.selectionLeftTopInfo.y:null,ws=W&&W.selectionLeftTopInfo.x===W.selectionRightBottomInfo.x?W.selectionLeftTopInfo.x:null,zs=Q!==null?((tn=sdkStore.getHotItem(he[0].keyToAccessIntAct))==null||(tn=tn.hotAttr.carousel)==null?void 0:tn.slides[Q].linkCids)||"":ge?ge.data.linkCids:"",fn=(0,Ph.Xr)(sdkStore,he[0].keyToAccessIntAct,wt,ot).find(hi=>hi.data.interactionType===Hd.O2.OpenOverlay&&hi.data.overlayRelativePos==="manual"&&hi.interactive),Ds=(!isNaN(Xn)&&!isNaN(ws)?(0,Md.SS)(he[0].hotAttr)?(0,Ph.wI)(sdkStore,he[0].keyToAccessIntAct,Xn,ws,wt,ot):(0,Ph.je)(sdkStore,he[0].keyToAccessIntAct,Xn,ws,wt,ot):[]).find(hi=>hi.data.interactionType===Hd.O2.OpenOverlay&&hi.data.overlayRelativePos==="manual"&&hi.interactive),gi=(zs?(0,Ph.ER)(sdkStore,he[0].keyToAccessIntAct,zs,wt,ot):[]).find(hi=>hi.data.interactionType===Hd.O2.OpenOverlay&&hi.data.overlayRelativePos==="manual"&&hi.interactive);if(un)return Xn!==null&&ws!==null?Ds:fn;if(Pe)return gi}catch(Pn){return null}}),Xh=()=>{var he;const W=(0,o.d4)(nh),Q=(0,o.d4)(lu.RT),ge=(0,o.d4)(ae.x$),Me=(0,o.d4)(g.X_),Pe=(0,o.d4)(A.PI),Ie=(0,o.d4)(A.k3),Oe=(0,o.wA)();if(!W)return null;const Ke=sdkStore.locUpColdCanvasKey(((he=ge[0])==null?void 0:he.key)||"");if(!Ke)return null;const ot=sdkStore.getHotItem(Ke);if(!ot||ot.hotAttr.asOverlay)return null;const{data:{targetOverlayKey:rt,overlayRelativePosX:lt,overlayRelativePosY:wt}}=W,so=new wo.c((0,ln.v)(ln.K.snapshot),sdkStore);so.buildWidgetTree({folderKey:rt});const bo=so.getNode(rt),[Ro,tn,Pn,un]=sdkStore.getHotAABB(ge[0].key),{hotAttr:{x:Xn,y:ws,w:zs,h:fn}}=ot,{hotAttr:{x:Ds,y:gi,w:hi,h:Ni}}=bo,ba=Xn-zs/2,fa=ws-fn/2,Ka=Ds-hi/2,da=gi-Ni/2,aa=ba+lt,ka=fa+wt,Vi=Rr=>{Rr.stopPropagation(),Oe(N.GO.hoverItem("")),Oe({type:"artboard:update:state",payload:{isAdjustOverlayRelPos:!0}}),sdkStore.combineMergeMark("update-interaction-overlay-rel-pos-xy");const sr=Rr.clientX,kc=Rr.clientY;let xl=null;(Pe||Ie)&&(xl=(0,Wn.ay)({movableItems:[],createSnapper:Pe?Do.WY:Wn.xb,viewport:{scale:Me/100}}));const Vr=Zr=>{Zr.stopPropagation();const wc=(Zr.clientX-sr)/(Me/100),g0=(Zr.clientY-kc)/(Me/100),e0=Math.round(aa+wc),f0=Math.round(ka+g0),{alignment:qh,left:Bh,top:K1}=typeof xl=="function"?xl({_rect:{width:hi,height:Ni,left:e0,top:f0,right:e0+hi,bottom:f0+Ni},sup:Ke}):{alignment:{},left:e0,top:f0},um=Bh-ba,Zm=K1-fa;Oe({type:"set:alignment",payload:{alignment:qh}}),Oe({type:"entry:update:single-link",payload:{link:{...W,overlayRelativePosX:um,overlayRelativePosY:Zm}}})},ll=()=>{Oe({type:"set:alignment",payload:{alignment:{}}}),Oe({type:"artboard:update:state",payload:{isAdjustOverlayRelPos:!1}}),sdkStore.combineMerge("update-interaction-overlay-rel-pos-xy"),document.removeEventListener("mousemove",Vr),document.removeEventListener("mouseup",ll)};document.addEventListener("mousemove",Vr),document.addEventListener("mouseup",ll)},Di={transform:"translate("+(aa-Ka)+"px, "+(ka-da)+"px)"},pa={transform:"translate("+aa+"px, "+ka+"px)",width:hi,height:Ni},Ra={transform:"translate("+(Xn-zs/2)+"px, "+(ws-fn/2)+"px)",width:zs,height:fn},Ar={position:"absolute",top:-2,left:-2,width:hi,height:Ni},ja={transform:"scale("+Me/100+")"},wr={transform:"translate(-50%, -50%) scale("+100/Me+")"};return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(cu,{id:"overlay-rel-pos-ctrl",style:ja,children:[(0,y.jsxs)("div",{className:"virtual-overlay-mask",style:pa,onMouseDown:Vi,children:[(0,y.jsxs)("svg",{className:"virtual-overlay-mask-diagonal-line",xmlns:"http://www.w3.org/2000/svg",version:"1.1",preserveAspectRatio:"none",style:Ar,children:[(0,y.jsx)("line",{x1:"0",y1:"0",x2:hi,y2:Ni}),(0,y.jsx)("line",{x1:"0",y1:Ni,x2:hi,y2:"0"})]}),(0,y.jsx)("div",{className:"virtual-overlay-pos-handle",style:wr,children:(0,y.jsx)(vo.C,{name:"art_board/move_handle"})})]}),(0,y.jsx)("div",{className:u()("canvas-to-trigger-indicator",{"is-adjust-overlay-rel-pos":Q}),style:Ra}),(0,y.jsx)("div",{className:"virtual-overlay",style:Di,children:bo.render()})]}),Q&&(0,y.jsx)(kl,{theme:"design",baseRect:{top:ka,left:aa,right:aa+hi,bottom:ka+Ni,width:hi,height:Ni},refRect:{top:tn,left:Ro,right:Pn,bottom:un,width:Pn-Ro,height:un-tn},ratio:Me/100})]})},cu=fe.Ay.div.withConfig({displayName:"InteractionOverlayRelPosCtrl__StyledInteractionOverlayRelPosCtrl",componentId:"sc-zmt7ib-0"})(["position:absolute;z-index:10000;&:hover{.virtual-overlay-mask{.virtual-overlay-pos-handle{background-color:",";color:#fff;}}.virtual-overlay{opacity:1;}}&:active{.virtual-overlay-mask{opacity:0;}.virtual-overlay{opacity:1;}}.virtual-overlay-mask{position:absolute;top:0;left:0;border:2px solid ",";z-index:3;.virtual-overlay-mask-diagonal-line{color:",";line{stroke:currentColor;stroke-width:2;}}.virtual-overlay-pos-handle{position:absolute;display:flex;justify-content:center;align-items:center;top:50%;left:50%;width:20px;height:20px;background-color:#fff;border-radius:50%;z-index:2;border:2px solid ",";color:",";svg{width:12px;height:12px;}}}.canvas-to-trigger-indicator{position:absolute;pointer-events:none;border:2px dashed ",";z-index:2;&.is-adjust-overlay-rel-pos{border:1px solid ",";}}.virtual-overlay{position:absolute;opacity:0.3;z-index:1;.widget-idendity-key{*{pointer-events:none !important;}}}"],he=>he.theme.color_proto,he=>he.theme.color_proto,he=>he.theme.color_proto,he=>he.theme.color_proto,he=>he.theme.color_proto,he=>he.theme.color_proto,he=>he.theme.color_polyline_hover),r1=()=>(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Dl.y,{}),(0,y.jsx)(iu,{}),(0,y.jsx)(Xh,{})]});var l1=e(39943);const Hc=he=>(0,y.jsx)(l1.A,{mode:"design",...he}),Nh=(0,m.Mz)([g.X_,g.ER,g.$S,T.Cb,T.YW,T.uX,T.QV,T.Ou,T.fd,T.RF,T.Li,T.V8,T.ZA,p.jx,g.wA,A.O4],(he,W,Q,ge,Me,Pe,Ie,Oe,Ke,ot,rt,lt,wt,so,bo,Ro)=>({viewport:{offset:W,scale:he,viewportRect:Q},activeCommentCid:ge,wigglingCommentCid:Me,editorRawContentObject:Pe,commentIsEditing:Ie,editingRecordCid:Oe,isCommentDragging:Ke,emojiToastStyle:ot,atStyle:rt,creatingComment:lt,commentList:wt,viewType:so,currentOrg:bo,theme:Ro})),c1=(0,o.Ng)(he=>Nh(he))(Hc),L1=(0,m.Mz)([T.sI,T.EH,p.pH,p.rg,p.uu,p._b],(he,W,Q,ge,Me,Pe)=>({isShow:!(Q||ge||Me)&&(he||W)&&!Pe})),Gd=he=>{const{isShow:W}=he;return W?(0,y.jsx)(c1,{}):null},du=(0,o.Ng)(he=>L1(he))(Gd);var sh=e(12473);const D1=()=>{const{rect:he}=(0,sh.v)(),W=(0,o.d4)(g.X_);if(!he)return{};const{x:Q,y:ge,w:Me,h:Pe}=he,Ie=W/100,Oe=Me*Ie,Ke=Pe*Ie,ot=Q*Ie,rt=ge*Ie;return{width:Oe,height:Ke,left:ot,top:rt}},h0=()=>{let he="";for(let W=0;W<100;W++)he+="\n "+W+"% {\n --angle: "+W*3.6+"deg\n }\n ";return he},R0=fe.Ay.div.withConfig({displayName:"styles__StyledAIComponentSelectedArea",componentId:"sc-vltazm-0"})(["position:absolute;z-index:2;--angle:0deg;background:conic-gradient(from var(--angle),#EF45FE 0%,#4551FE 33%,#1684FC 66%,#EF45FE 100%);mask:linear-gradient(to right,#000 6px,transparent 6px) repeat-x,linear-gradient(to bottom,#000 6px,transparent 6px) repeat-y,linear-gradient(to right,#000 6px,transparent 6px) repeat-x 0 100%,linear-gradient(to bottom,#000 6px,transparent 6px) repeat-y 100% 0;mask-image:linear-gradient(to right,rgb(0,0,0) 6px,transparent 6px),linear-gradient(rgb(0,0,0) 6px,transparent 6px),linear-gradient(to right,rgb(0,0,0) 6px,transparent 6px),linear-gradient(rgb(0,0,0) 6px,transparent 6px);mask-size:8px 2px,2px 8px,8px 2px,2px 8px;animation:selectedAreaRotate 4s infinite;@keyframes selectedAreaRotate{","}"],h0()),pu=()=>{const he=D1();return he?(0,y.jsx)(R0,{style:he}):null},Ri=()=>(0,o.d4)(k.l3)?(0,y.jsx)(Np,{children:(0,y.jsx)(pu,{})}):null,Np=fe.Ay.div.withConfig({displayName:"aiComponent__StyledAIComponent",componentId:"sc-jbeefb-0"})(["position:absolute;"]);var B1=e(82149);const R1=he=>{const{show:W}=he;return W?(0,y.jsx)(B1.s,{mode:"design",...he}):null},d1=(0,m.Mz)([g.Ur,ae.p$,g.X_,h.$7,g.pO,z.MS,p.jx,b.UV,g.lh,z.yc],(he,W,Q,ge,Me,Pe,Ie,Oe,Ke,ot)=>{var rt;let lt;if(W.length===1)for(const so of W){const bo=sdkStore.getHotItem(so);bo&&bo.hotAttr.type==="wTear"&&bo.sup!=="@@T"&&(lt=bo)}if(lt===void 0||!Pe||!ge||Me||(rt=MB.f)!=null&&rt.isSelecting)return{show:!1};const wt=Ie===N.qi.OnlyView;return{show:!0,activeTear:lt,scale:Q,isReadonly:wt,widgetStore:Oe,tearOffset:ot,editingCid:Ke}}),p1=(0,o.Ng)(he=>d1(he))(R1),Lh=fe.Ay.span.withConfig({displayName:"styles__StyledCanvasName",componentId:"sc-xf8rgy-0"})(["position:absolute;cursor:pointer;display:inline-flex;height:20px;color:rgba(255,255,255,0.8);&.is-black{color:rgba(0,0,0,0.7);}&.is-editing-title{span:not(.overlay-icon){visibility:hidden;padding:1px 3px;}input{visibility:visible;}}span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:inherit;line-height:20px;}&.active,&:active,&:hover{color:",";.overlay-icon{color:",";}}.overlay-icon{flex-shrink:0;width:20px;height:20px;color:",";svg{width:20px;height:20px;}}&.as-overlay{input{width:calc(100% - 20px);left:20px;}}input{position:absolute;display:flex;left:-3px;top:-1px;width:100%;height:20px;pointer-events:auto;font-size:12px;line-height:16px;background-color:",";border:1.5px solid ",";border-radius:1px;padding:0 1.5px;min-width:8px;max-width:inherit;visibility:hidden;}"],he=>he.theme.color_text_link_normal,he=>he.theme.color_text_link_normal,he=>he.theme.color_text_L3,he=>he.theme.color_text_btn,he=>he.theme.color_proto),ih=fe.Ay.div.withConfig({displayName:"styles__StyledCanvasCtrlButtons",componentId:"sc-xf8rgy-1"})(["position:absolute;cursor:pointer;display:flex;.icon{&:not(:last-child){margin-right:4px;}width:16px;height:16px;&:hover{color:",";}&.is-disabled{cursor:not-allowed;> *{fill:",";}}}"],he=>he.theme.color_text_link_normal,he=>he.theme.color_text_disabled01);var $d=e(3664);class td extends x.PureComponent{constructor(W){super(W),(0,r.A)(this,"setInputRef",Q=>this.$input=Q),(0,r.A)(this,"handleInputChanged",Q=>{this.setState({title:Q.target.value})}),(0,r.A)(this,"handleInputConfirmed",Q=>{const{hotItem:ge,dispatch:Me}=this.props;if(Q.trim()===""||Q.includes("/")){MB.notice({text:I18N.Common.name_cannot_be_empty_or_symbol,type:"warning"}),this.setState({title:ge.hotAttr.name,isEditingTitle:!1});return}this.setState({isEditingTitle:!1}),Me({type:"entry:widget:change",payload:{flatChgList:[{key:ge.key,hotAttr:{name:Q}}],shouldReBuildTree:!0}})}),(0,r.A)(this,"handleInputKeyDown",Q=>{(Q.key===Ir._.Enter||Q.key===Ir._.Escape)&&(Q.preventDefault(),this.handleInputConfirmed(Q.target.value))}),(0,r.A)(this,"handleInputFocus",Q=>{Q.target.select()}),(0,r.A)(this,"handleInputBlur",Q=>{this.handleInputConfirmed(Q.target.value)}),(0,r.A)(this,"handleTitleDblClicked",()=>{const{onlyView:Q}=this.props;Q||this.setState({isEditingTitle:!0},()=>{var ge;return(ge=this.$input)==null?void 0:ge.focus()})}),this.state={isEditingTitle:!1,title:W.hotItem.hotAttr.name},this.$input=null}static getDerivedStateFromProps(W,Q){let{title:ge,isEditingTitle:Me}=Q;return W.hotItem.hotAttr.name!==ge&&!Me?{title:W.hotItem.hotAttr.name}:null}render(){const{hotItem:W,scale:Q,isTitleActive:ge,screenBgSolidColor:Me}=this.props,Pe=Me.toString(16).padStart(8,"0"),Ie=(0,$d.EM)(Pe,"E5E5E5"),Oe=(0,$d.bJ)(Ie,"FFFFFF"),Ke=(0,$d.bJ)(Ie,"000000"),ot=Oe<Ke,rt=W.hotAttr.asOverlay,{key:lt}=W;if(!sdkStore.isActiveKey(lt))return null;const{isEditingTitle:wt,title:so}=this.state,bo=Q/100,{x:Ro,y:tn,r:Pn,w:un,h:Xn}=sdkStore.getHotBound(lt),ws={maxWidth:un*bo-20,transform:"translate("+(Ro-un*.5)*bo+"px,"+((tn-Xn*.5)*bo-22)+"px) rotate("+Pn+"deg)"};return(0,y.jsxs)(Lh,{className:u()("canvas_title_"+lt,"canvas-title",{"is-editing-title":wt,active:ge,"is-black":ot,"as-overlay":rt}),style:ws,onDoubleClick:this.handleTitleDblClicked,children:[rt&&(0,y.jsx)("span",{className:"overlay-icon",children:(0,y.jsx)(vo.C,{name:"left_panel/overlay/new"})}),(0,y.jsx)("form",{children:(0,y.jsx)("input",{ref:this.setInputRef,value:so,onChange:this.handleInputChanged,onKeyDown:this.handleInputKeyDown,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur})}),(0,y.jsx)("span",{children:so})]})}}var dc=e(11271);const j1=(0,x.memo)(he=>{var W;let{hotItem:Q,scale:ge,className:Me,dispatch:Pe,canDel:Ie,basket:Oe}=he;const Ke=(Oe==null||(W=Oe.hotAttr)==null?void 0:W.bunch)===te.x.RbPage,ot=(0,x.useCallback)(()=>{const{sup:Xn,hotAttr:{zIndex:ws,order:zs}}=Q,fn=sdkStore.getSubHotItemList(Xn).map(fa=>fa.key),{highZIndexItemsKeyList:Ds}=(0,cc.K6)(fn,zs),gi=sdkStore.dupWithinPage([Q.key])[0],hi=[gi,...Ds];let Ni=ws,ba=zs;return hi.forEach(fa=>{sdkStore.updateHotAttrMerge(fa,{zIndex:++Ni,order:++ba})}),(0,cc.rq)([gi],Xn,sdkStore,!1),gi},[Q]),rt=(0,x.useCallback)(()=>{if(!(0,va._c)({type:"widget",count:(0,va.UU)({initKeyList:[Q.key],sdk:sdkStore})}))return;sdkStore.combineMergeMark("dup-canvas");const Xn=ot();Pe({type:"entry:refresh:canvas:order"}),Pe({type:"entry:layout:basket-canvas"}),sdkStore.combineMerge("dup-canvas"),Pe({type:"entry:rebuild:screen-widget-tree"}),Pe({type:"entry:clear:selection"}),Pe({type:"entry:select:items",payload:{cids:[Xn]}}),Pe({type:ti.y.entryKey["font:missFontKeyMap:update"]}),MB.commonGuideHelper.closeGuide(ya.c.GUIDE_BASKET_QUICK_COPY_CANVAS),MB.commonGuideHelper.markGuideAsRead(ya.c.GUIDE_BASKET_QUICK_COPY_CANVAS),(0,dc.RW)({operation_type:dc.Q1.CopyState,operation_from:Ke?dc.IL.Muban:dc.IL.Dynamic})},[Pe,Q.key,ot,Ke]),lt=(0,x.useCallback)(()=>{Pe({type:"entry:basket:delete",payload:{removeList:[Q.key]}}),Pe({type:"entry:rebuild:screen-widget-tree"}),Pe({type:"entry:refresh:link-list"}),Pe({type:"entry:clear:selection"}),(0,dc.RW)({operation_type:dc.Q1.DeleteState,operation_from:Ke?dc.IL.Muban:dc.IL.Dynamic})},[Pe,Q.key,Ke]);if(!sdkStore.isActiveKey(Q==null?void 0:Q.key))return null;const wt=ge/100,{x:so,y:bo,r:Ro,w:tn,h:Pn}=sdkStore.getHotBound(Q.key),un={transform:"translate("+((so+tn*.5)*wt-40)+"px,"+((bo-Pn*.5)*wt-20)+"px) rotate("+Ro+"deg)"};return(0,y.jsxs)(ih,{className:Me,style:un,children:[(0,y.jsx)(vo.C,{name:"art_board/basket/canvas_dup",onClick:rt}),(0,y.jsx)(vo.C,{name:"art_board/basket/canvas_del",onClick:Ie?lt:void 0,isDisabled:!Ie})]})}),hu=(0,x.memo)(he=>{var W,Q;let{hotItem:ge,scale:Me,currentScreen:Pe}=he;if(!sdkStore.isActiveKey(ge==null?void 0:ge.key))return null;const Ie=Me/100,{x:Oe,y:Ke,r:ot,w:rt,h:lt}=sdkStore.getHotBound(ge.key),{deviceOrientation:wt,deviceW:so,deviceH:bo}=Pe,Ro=wt==="landscape",tn=Ro?bo:so,Pn=Ro?so:bo,un={width:Math.min(tn*Ie,rt*Ie),transform:"translate("+(Oe-rt*.5)*Ie+"px,"+(Ke-lt*.5+Pn)*Ie+"px) rotate("+ot+"deg)",opacity:(W=ge.hotAttr)!=null&&W.isVisible?1:0},Xn={height:Math.min(Pn*Ie,lt*Ie),transform:"translate("+(Oe-rt*.5+tn)*Ie+"px,"+(Ke-lt*.5)*Ie+"px) rotate("+ot+"deg)",opacity:(Q=ge.hotAttr)!=null&&Q.isVisible?1:0};return(0,y.jsxs)(y.Fragment,{children:[lt>Pn&&(0,y.jsx)("div",{className:"first-page-divider",style:un},ge.key+"-h"),rt>tn&&(0,y.jsx)("div",{className:"first-page-divider",style:Xn},ge.key+"-v")]})}),uu=(0,x.memo)(he=>{var W;let{hotItem:Q,scale:ge,basket:Me}=he;const Pe=((W=Me.hotAttr)==null?void 0:W.bunch)===te.x.RbPage,Ie=Q.key,{x:Oe,y:Ke}=sdkStore.getHotItem(Ie).hotAttr,{x:ot,y:rt}=sdkStore.getSourceHotItem(Ie).hotAttr,{w:lt,h:wt}=Me.hotAttr,so=ge/100,bo={position:"absolute",transform:"translate("+(Oe-ot)*so+"px,"+(Ke-rt)*so+"px)",width:lt*so,height:wt*so,border:Pe?"1px dashed "+Ll.f.color_master.value_light:"1px dashed "+Ll.f.color_comments.value_light,pointerEvents:"none"};return(0,y.jsx)("div",{className:"basket-viewport",style:bo})});class Z extends x.Component{constructor(){super(...arguments),(0,r.A)(this,"_renderTitle",()=>{const{scale:W,onlyView:Q,dispatch:ge,currentScreen:Me,theme:Pe,allCanvas:Ie,selectedCanvas:Oe}=this.props,Ke=(0,yi.t6)(Pe,Me);return(0,y.jsx)("div",{className:"canvas-title",children:Ie.map(ot=>{const rt=Oe.findIndex(lt=>lt.cid===ot.key)>-1;return ot.hotAttr.isVisible?(0,y.jsx)(td,{hotItem:ot,scale:W,onlyView:Q,dispatch:ge,isTitleActive:rt,screenBgSolidColor:Ke},ot.key):null})})}),(0,r.A)(this,"_renderCanvasCtrlButtonsWhenInsideBasket",()=>{const{scale:W,editingBasketHotItem:Q,allCanvas:ge,dispatch:Me}=this.props;return Q?(0,y.jsx)(y.Fragment,{children:ge.map((Pe,Ie)=>(0,y.jsx)(j1,{className:Ie===0?ya.c.GUIDE_BASKET_QUICK_COPY_CANVAS:"",hotItem:Pe,scale:W,dispatch:Me,canDel:ge.length>1,basket:Q},Pe.key))}):null}),(0,r.A)(this,"_renderFirstCanvasDivider",()=>{const{currentScreen:W,scale:Q,allCanvas:ge}=this.props;return(0,y.jsx)("div",{className:"canvas-divider",children:ge.map(Me=>!Me.hotAttr.asOverlay&&W.isShowDeviceGuide&&W.device!=="none"&&(0,y.jsx)(hu,{hotItem:Me,currentScreen:W,scale:Q},Me.key))})}),(0,r.A)(this,"_renderBasketViewport",()=>{const{scale:W,editingBasketHotItem:Q,allCanvas:ge}=this.props;return Q?ge.map(Me=>(0,y.jsx)(uu,{hotItem:Me,scale:W,basket:Q},Me.key)):null})}shouldComponentUpdate(W){const Q=Object.keys(this.props),ge=Object.keys(W);return Q.length!==ge.length||Q.some(Me=>{if(["selectedCanvas","allCanvas"].includes(Me)){var Pe,Ie,Oe;return((Pe=this.props[Me])==null?void 0:Pe.length)!==((Ie=W[Me])==null?void 0:Ie.length)||((Oe=this.props[Me])==null?void 0:Oe.some((Ke,ot)=>{var rt;return Ke!==((rt=W[Me])==null?void 0:rt[ot])}))}else return this.props[Me]!==W[Me]})}render(){const{onlyView:W,editingBasketKey:Q,editingBasketRefPage:ge,show:Me}=this.props;return Me?(0,y.jsxs)("div",{className:"canvas-operation-wrap",children:[this._renderTitle(),(Q||ge)&&!W&&(0,y.jsx)(y.Fragment,{children:(0,y.jsxs)("div",{className:"basket-actions-container",children:[this._renderCanvasCtrlButtonsWhenInsideBasket(),this._renderBasketViewport()]})}),!W&&!Q&&!ge&&this._renderFirstCanvasDivider()]}):null}}const G=(0,m.Mz)([ae.x$],he=>he.filter(W=>{let{type:Q}=W;return Q===te.x.Canvas})),B=(0,m.Mz)([G,p.jI,p.bt,g.X_,g.Ur,p.PR,A.O4],(he,W,Q,ge,Me,Pe,Ie)=>Me?{show:!0,allCanvas:(0,Le.US)(Me.cid),selectedCanvas:he,editingBasketKey:W,editingBasketRefPage:Q,scale:ge,currentScreen:Me,editingBasketHotItem:Pe,theme:Ie}:{show:!1}),v=(0,o.Ng)(he=>B(he))(Z);var I=e(7718),M=e(88223),j=e(93284),Y=e(52098),oe=e(56693),ie=e(80504);const le=fe.Ay.div.withConfig({displayName:"styles__StyledTextEditor",componentId:"sc-18432if-0"})(["&.editor{display:flex;position:absolute;top:0;left:0;min-width:12px;min-height:12px;z-index:16;outline:none;overflow:hidden;background-color:lightblue;border-color:transparent;user-select:text;pointer-events:auto;}*{user-select:text;}.text{width:100%;white-space:pre-wrap;word-break:break-word;word-wrap:break-word;p{padding:0;margin-bottom:5px;white-space:pre-wrap;&:last-child{margin-bottom:0;}}}&.wMTextarea{p{margin-bottom:0;}}&.wMTooltip .text{position:static;padding:0 !important;}&.wElbow{border:1px solid #1684fc;border-radius:4px;}&.hleft{justify-content:flex-start;}&.hcenter{justify-content:center;}&.hright{justify-content:flex-end;}&.vtop{align-items:flex-start;}&.vmiddle{align-items:center;}&.vertical-lr{writing-mode:vertical-lr;}&.horizontal-tb{writing-mode:horizontal-tb;}&.vbottom{align-items:flex-end;}"]);function ue(he){let{widget:W}=he;if((0,oe.kY)(W)||W.type===te.x.WElbow){const{placeholderStyle:Q,placeholderHTML:ge}=(0,oe.s3)(W);return(0,y.jsx)(le,{style:{...Q},dangerouslySetInnerHTML:{__html:ge}})}else return null}var Te=e(39709),De=e(62543),$e=e(8907),Qe=e(19542),qe=e(70549);class ut extends x.Component{constructor(W){super(W),(0,r.A)(this,"setElementRef",ge=>this.$elem=ge),(0,r.A)(this,"handleMouseDown",ge=>{const{dispatch:Me}=this.props;ge.button===2&&(ge.preventDefault(),Me({type:"open:contextmenu",payload:{position:{top:ge.clientY,left:ge.clientX}}})),ge.stopPropagation()}),(0,r.A)(this,"handleKeyDown",ge=>{const{dispatch:Me,item:Pe}=this.props,Ie=ge.key===Ir._.Escape,Oe=ge.key===Ir._.Enter,Ke=ge.metaKey||ge.ctrlKey;(Ie||Ke&&Oe)&&((0,j.ay)(Pe,"remove"),Me({type:"set:editing:cid",payload:{cid:""}}),Me(N.GO.update({textEditor:{selectionAttrs:{},defaultAttrs:{}}})))}),(0,r.A)(this,"handleSave",()=>{const{dispatch:ge,item:{key:Me,widget:Pe}}=this.props,Ie=this.getEditorContent();if(Pe.type===te.x.WMTooltip){const Oe=(0,ie.zs)([Pe],"text",Ie);ge({type:"entry:widget:change",payload:{flatChgList:[{key:Me,hotAttr:{...Oe[0],name:Oe[0].display_name}}]}})}else{const Oe=(0,oe.kY)(Pe),Ke=Pe.type===te.x.WWebpage?"webpage":Oe?"textInput":"textV0",ot=Pe.type===te.x.WWebpage?"url":Oe?"prefillTextV0":"text",rt=[{key:Me,hotAttr:{[Ke]:{...Pe[Ke],[ot]:Ie}}}];ge({type:"entry:widget:change",payload:{flatChgList:rt}})}}),(0,r.A)(this,"handleInput",()=>{const{item:{widget:ge}}=this.props,{needPlaceholder:Me}=this.state,Pe=this.getEditorContent();this.prevText!==Pe&&(this.prevText=Pe,((0,oe.kY)(ge)||ge.type===te.x.WElbow)&&(Pe!==""&&Me?this.setState({needPlaceholder:!1}):Pe===""&&!Me&&this.setState({needPlaceholder:!0})))}),(0,r.A)(this,"handleCopy",ge=>{const{item:{widget:Me}}=this.props,{textV0:Pe}=Me,Ie=window.getSelection().toString(),Oe=(0,Te.lN)(Ie),Ke=(0,De.n)((0,$e.mx)(Oe)),ot=Y.$t.forceSelection(Ke,new Y.wc({anchorKey:"#000000",anchorOffset:0,focusKey:"#000000",focusOffset:Ie.length,isBackward:!1,hasFocus:!1})),rt=Pe.textDecoration==="normal"?{}:Pe.textDecoration==="underline"?{underline:!0}:Pe.textDecoration==="line-through"?{strikethrough:!0}:{},lt={...(0,Qe.$$)(),textColor:(0,Na.t0)(Pe.textColor),bold:Pe.bold,italic:Pe.italic,fontSize:Pe.fontSize,lineHeight:Pe.lineHeight,...rt},wt=(0,qe.vd)({editorState:ot,richTextV1:lt});ge.preventDefault(),ge.clipboardData.setData("text/html",wt),ge.clipboardData.setData("text/plain",Ie)});const{item:{widget:Q}}=W;this.state={needPlaceholder:Q.type===te.x.WElbow?Q.textV0.text==="":(0,oe.kY)(Q)?(0,pn.vr)(Q).needShowPlaceholder:!1}}componentDidMount(){MB.f.editing=!0,this.prevText=null;const{item:{widget:W}}=this.props;(0,oe.kY)(W)?setTimeout(()=>{this.focusLast()}):setTimeout(()=>{this.selectAll()})}componentDidUpdate(){Bt(this.$elem)}componentWillUnmount(){MB.f.editing=!1,this.handleSave()}focusLast(){const W=this.$elem;if(W&&(W.focus(),W.childNodes.length>0)){const Q=document.createRange();Q.selectNodeContents(W),Q.collapse(!1);const ge=window.getSelection();ge.removeAllRanges(),ge.addRange(Q)}}selectAll(){const W=this.$elem;if(W&&(W.focus(),W.childNodes.length>0)){const Q=document.createRange(),ge=window.getSelection();Q.setStartBefore(W.childNodes[0]),Q.setEndAfter(W.childNodes[W.childNodes.length-1]),ge.removeAllRanges(),ge.addRange(Q)}}getEditorContent(){const{item:{widget:W}}=this.props,Q=this.$elem;if(oe.XQ.includes(W.type)){const ge=Q.querySelector(".text");return ge?ge.innerHTML:Q.innerHTML}else if([te.x.WMSelect,te.x.WMTextArea,te.x.WElbow].includes(W.type)){const ge=this.$elem.querySelectorAll("p"),Me=Q.innerText;return Me.trim()===""?"":Array.from(ge).length===0&&Me?Me:Array.from(ge).map(Ie=>Ie.innerText==="\n"?"":Ie.innerText).join("\n")}else return Q.textContent}render(){var W,Q,ge,Me;const{item:Pe}=this.props,{widget:Ie}=Pe,{needPlaceholder:Oe}=this.state,Ke=(0,oe.NX)(Pe,Oe),ot=(0,oe.sV)(Ie),rt=u()("editor",Ie.type,{["h"+((W=Ie.textV0)==null?void 0:W.horizontalAlign)]:(Q=Ie.textV0)==null?void 0:Q.horizontalAlign,["v"+((ge=Ie.textV0)==null?void 0:ge.verticalAlign)]:(Me=Ie.textV0)==null?void 0:Me.verticalAlign});return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(le,{contentEditable:!0,id:"text_editor",style:Ke,className:rt,ref:this.setElementRef,dangerouslySetInnerHTML:{__html:ot},onInput:this.handleInput,onMouseDown:this.handleMouseDown,onKeyDown:this.handleKeyDown,onCopy:this.handleCopy}),Oe&&(0,y.jsx)(ue,{widget:Ie})]})}}const Bt=he=>{const W=document.createTextNode("");he.appendChild(W);const Q=document.activeElement===he;if(!W||!W.nodeValue||!Q)return;const ge=window.getSelection();if(ge!==null){const Me=document.createRange();Me.setStart(W,W.nodeValue.length),Me.collapse(!0),ge.removeAllRanges(),ge.addRange(Me)}he instanceof HTMLElement&&he.focus()};class ao extends x.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleKeyDown",W=>{const{dispatch:Q}=this.props,ge=W.metaKey||W.ctrlKey,Me=W.shiftKey,Pe=window.getSelection().toString();if(Pe&&Pe!=="")switch(W.keyCode){case Ir.Ju.B:ge&&(W.preventDefault(),Q({type:"entry:set:text:attr:by:key",payload:{isInEditing:!0,attr:"bold"}}),(0,_0.L)("command+b \u9009\u4E2D\u90E8\u5206"));break;case Ir.Ju.I:ge&&(W.preventDefault(),Q({type:"entry:set:text:attr:by:key",payload:{isInEditing:!0,attr:"italic"}}),(0,_0.L)("command+i \u9009\u4E2D\u90E8\u5206"));break;case Ir.Ju.U:ge&&(W.preventDefault(),Q({type:"entry:set:text:attr:by:key",payload:{isInEditing:!0,attr:"underline"}}),(0,_0.L)("command+u \u9009\u4E2D\u90E8\u5206"));break;case Ir.Ju.S:ge&&Me&&(W.preventDefault(),Q({type:"entry:set:text:attr:by:key",payload:{isInEditing:!0,attr:"lineThrough"}}),(0,_0.L)("command+shift+s \u9009\u4E2D\u90E8\u5206"));break}}),(0,r.A)(this,"handleDocDown",W=>{if(W.target.closest("#text_editor"))return;if(W.target.closest("#text-settings")||W.target.closest("#text-settings-font-menu")||W.target.closest(".DropdownMenuBase")||W.target.closest('[type="color-panel"]')||W.target.closest(".--mb--color-picker")||W.target.closest(".draft-inline-toolbar")||W.target.closest("#ai-semantic-modal")||W.target.closest("#textediting-menu")){W.preventDefault();return}const{dispatch:Q,item:ge}=this.props;(0,j.ay)(ge,"remove"),Q({type:"set:editing:cid",payload:{cid:""}}),Q({type:"elbow:update",payload:{activeElbowKey:""}}),Q(N.GO.update({textEditor:{selectionAttrs:{},defaultAttrs:{}}})),Q({type:"colorpanel:set:attr",payload:{attr:void 0}}),Q({type:"colorpanel:set:attrPanel",payload:{attrPanel:void 0}})}),(0,r.A)(this,"handleSelectionChange",()=>{const W=(0,M.Ay)();this.props.dispatch(N.GO.update({textEditor:{selectionAttrs:W}}))})}render(){const{item:W,dispatch:Q}=this.props,ge={position:"absolute",...(0,rr.zG)(W)};return(0,y.jsxs)("div",{className:"editor-wrapper",style:ge,children:[(0,y.jsx)(ut,{item:W,dispatch:Q}),(0,y.jsx)(_.A,{target:document,onMouseDown:(0,_.t)(this.handleDocDown,{capture:!0})}),(0,y.jsx)(_.A,{target:document,onSelectionChange:this.handleSelectionChange}),(0,y.jsx)(_.A,{target:document,onKeyDown:this.handleKeyDown})]})}}const To=(0,m.Mz)([g.lh,b.RX],(he,W)=>{const Q=W.widgetStore.getNode(he);return Q&&(0,Al.yD)(Q.type)?Q:null}),ko=(0,m.Mz)([To],he=>({item:he})),vn=he=>he.item&&(0,y.jsx)(ao,{...he}),Hn=(0,o.Ng)(he=>ko(he))(vn),os=fe.Ay.div.withConfig({displayName:"style__StyledRichEditor",componentId:"sc-1v43kb4-0"})(["&.draft-rich-text-editor-wrapper{display:flex;position:absolute;top:0;left:0;min-width:1px;min-height:12px;z-index:16;overflow:visible;cursor:text;pointer-events:auto;&.wLine,&.wArrow{.draft-basic-text-editor-wrapper{word-break:keep-all;}}&.wFlowClosed,&.wFlowOpened{top:50%;left:50%;transform:translate(-50%,-50%);}.editor{outline:none;border-color:transparent;user-select:text;}}*{user-select:text;}&.auto{width:max-content;}&.left{text-align:left;}&.center{text-align:center;justify-content:center;}&.right{text-align:right;justify-content:flex-end;}&.justify{text-align:justify;}&.top{align-items:flex-start;}&.middle{align-items:center;}&.bottom{align-items:flex-end;}a{color:",";}&.isShallowEditText{pointer-events:none;}"],he=>he.style.color);var on=e(17383),hn=e(64954);const Rn=he=>{let W,Q,ge,Me,Pe,Ie,Oe,Ke="",ot,rt,lt,wt,so,bo="hidden";if(Al.VV.includes(he.type)){const{richTextV1:{fontSize:tn,textColor:Pn,lineHeight:un,paddingTuple:Xn,letterSpacing:ws,fontFamily:zs,fontWeight:fn,italic:Ds,bold:gi,verticalAlign:hi,horizontalAlign:Ni,fontDirection:ba}}=he;Oe=tn,lt=Pn,ot=un,wt=(0,ri.N3)(Xn),Q=Ni,ge=hi,rt=ws,Me=zs,Pe=fn,W=ba,Ie=Ds?"italic":"normal",so=gi}if([te.x.WRichText,te.x.WMindNode,te.x.WLine,te.x.WArrow,te.x.WPlaceholder,te.x.WElbow].includes(he.type)){const{richTextV1:{fontFamily:tn,fontDirection:Pn,fontWeight:un}}=he;Me=tn,Pe=un,bo="visible"}te.Q.USE_CLIP_TEXT.includes(he.type)&&!he.richTextV1.isClipText&&(bo="visible"),he.type===te.x.WRect&&he.richTextV1.isClipText===void 0&&(bo="hidden");const Ro=(0,on._y)(Pe,so);return{fontFamily:Me,fontWeight:Ro,fontStyle:Ie,fontSize:Oe+"px",lineHeight:ot+"px",letterSpacing:rt+"px",color:lt,writingMode:W,justifyContent:ge,alignItems:(0,hn.xC)(Q),padding:wt,flexDirection:"column",overflow:bo}};var Ln=e(38407),Ms=e(89300),pi=e(15046),Ts=e(81962);const Js=fe.Ay.div.withConfig({displayName:"styles__StyledDraftBasicTextEditorDiv",componentId:"sc-1qxigk0-0"})(["position:relative;::-webkit-scrollbar-thumb{background-color:rgba(51,51,51,.2);}"," &.horizontal:not(.wLine):not(.wArrow):not(.auto){width:100%;}&.vertical:not(.wLine):not(.wArrow){height:100%;}&.auto{.draft-basic-text-editor-wrapper{width:max-content;}}&.","{.draft-basic-text-editor{.draft-link-decorator-a.","{background-color:#BAD7FB !important;}}}.draft-basic-text-editor-wrapper{width:100%;height:100%;word-break:break-word;white-space:break-spaces;.draft-basic-text-editor{width:100%;.DraftEditor-editorContainer{height:initial;border:none;> div > div{ul,ol{> li{",":","px;}}> div{",":",'px;}}}[data-contents="true"] > :last-child{margin:0!important;}span::selection{background-color:'," !important;}span::-webkit-selection{background-color:"," !important;}span::-moz-selection{background-color:"," !important;}.public-DraftEditorPlaceholder-inner{color:","}.public-DraftEditor-content{line-height:",";text-align:",";&[contenteditable=false]{user-select:none!important;}h1{font-size:26px;span{font-size:26px !important;}}h2{font-size:22px;span{font-size:22px !important;}}h3{font-size:18px;span{font-size:18px !important;}}}.public-DraftStyleDefault-block{margin:0;text-align:",";min-width:1px;min-height:1px;display:",";& > span,& > a,& > div{text-decoration:",";}}.rdw-left-aligned-block{.public-DraftStyleDefault-block{text-align:left;}}.rdw-center-aligned-block{.public-DraftStyleDefault-block{text-align:center;}}.rdw-right-aligned-block{.public-DraftStyleDefault-block{text-align:right;}}.rdw-justify-aligned-block{.public-DraftStyleDefault-block{text-align:justify;}}.rdw-indent-0{margin-left:0;}.rdw-indent-2{margin-left:2rem;}.rdw-indent-4{margin-left:4rem;}.rdw-indent-6{margin-left:6rem;}}}"],he=>he.psList.map(W=>"\n .rdw-paraspacing-"+(W+"").replace(".","-")+"{ \n "+(he.fontDirection==="vertical-lr"&&he.psVersion===3?"margin-right":"margin-bottom")+": "+W+"px !important; \n }\n\n .rdw-paraspacing-"+(W+"").replace(".","-")+":last-child {\n "+(he.fontDirection==="vertical-lr"&&he.psVersion===3?"margin-right":"margin-bottom")+": 0 !important;\n }\n "),he=>"active-"+he.activeKey,he=>"active-"+he.activeKey,he=>he.psVersion!==3?void 0:he.fontDirection==="vertical-lr"?"margin-right":"margin-bottom",he=>he.paraSpacing,he=>he.fontDirection==="vertical-lr"&&he.psVersion===3?"margin-right":"margin-bottom",he=>he.paraSpacing,he=>he.isShallowEditText?"transparent":he.theme.color_textarea,he=>he.isShallowEditText?"transparent":he.theme.color_textarea,he=>he.isShallowEditText?"transparent":he.theme.color_textarea,he=>he.placeHolderColor||"#101010",he=>he.lineHeight+"px",he=>he.horizontalAlign,he=>he.horizontalAlign,he=>he.isWRichText?"inline-block":"block",he=>he.textDecoration);var ki=e(75506),js=e(79183);const ai=fe.Ay.a.withConfig({displayName:"styles__StyledDraftLinkA",componentId:"sc-953nd7-0"})(["position:relative;display:inline-block;color:#333333;cursor:inherit;span{text-decoration:"," !important;}"],he=>he.liVersion===3||he.isNeedMigrateLinkItalic?"":"underline");function qi(he,W,Q){he.findEntityRanges(ge=>{const Me=ge.getEntity();return Me!==null&&Q.getEntity(Me).getType()==="LINK"},W)}class or extends x.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"onMouseEnter",W=>{const{contentState:Q,entityKey:ge,blockKey:Me,decoratedText:Pe,start:Ie,end:Oe,callback:Ke}=this.props,{url:ot}=Q.getEntity(ge).getData();if(!Ke)return;const rt=W.currentTarget.getBoundingClientRect();if(!rt)return;const{top:lt,left:wt,width:so}=rt,bo={top:lt-32-5,left:wt-20+so/2};Ke&&Ke({entityKey:ge,style:bo,decoratedText:Pe,url:ot,blockKey:Me,start:Ie,end:Oe})}),(0,r.A)(this,"openLink",W=>(W.preventDefault(),!1))}render(){const{contentState:W,entityKey:Q,children:ge,version:Me,isNeedMigrateLinkItalic:Pe}=this.props,{url:Ie,targetOption:Oe}=W.getEntity(Q).getData();return(0,y.jsx)(ai,{className:"draft-link-decorator-a active-"+Q,href:(0,js.H)(Ie),target:Oe,onClick:this.openLink,onMouseEnter:this.onMouseEnter,liVersion:Me,isNeedMigrateLinkItalic:Pe,children:ge})}}var Yi=e(29758);const Hr=(he,W,Q)=>ge=>{const Me=ge.getData();let Pe="";if(Me){const Ie=Me.get("textIndent");if(Object.keys(Yi.En).map(Ke=>parseInt(Ke,10)).filter(Ke=>Ke!==0).includes(Ie)&&(Pe+="rdw-indent-"+Ie+" "),he){const Ke=Me.get("textAlign");if(Ke)return Pe+("rdw-"+Ke+"-aligned-block")}else return Pe+("rdw-"+W+"-aligned-block");const Oe=Me.get("paraSpacing");return Oe!==void 0?Pe+("rdw-paraspacing-"+(Oe+"").replace(".","-")):Pe}return Pe};var Wa=e(57465),nr=e(23854),zi=e(9376);const ca=(0,zi.cX)(),Ua={isCtrlKeyCommand:he=>!!he.ctrlKey&&!he.altKey,hasCommandModifier:he=>ca?!!he.metaKey&&!he.altKey:Ua.isCtrlKeyCommand(he)},Za=ca,ia=Ua.hasCommandModifier,yl=Ua.isCtrlKeyCommand;function er(he){return ca&&he.altKey||yl(he)}function Cr(he){return ia(he)?he.shiftKey?"redo":"undo":null}function Cl(he){return!ca&&he.shiftKey?null:er(he)?"delete-word":"delete"}function od(he){return ia(he)&&ca?"backspace-to-start-of-line":er(he)?"backspace-word":"backspace"}const Bc=he=>{switch(he.keyCode){case 66:return ia(he)?"bold":null;case 68:return yl(he)?"delete":null;case 72:return yl(he)?"backspace":null;case 73:return ia(he)?"italic":null;case 74:return ia(he)?"code":null;case 75:return ca&&yl(he)?"secondary-cut":null;case 77:return yl(he)?"split-block":null;case 79:return yl(he)?"split-block":null;case 84:return ca&&yl(he)?"transpose-characters":null;case 85:return ia(he)?"underline":null;case 87:return ca&&yl(he)?"backspace-word":null;case 90:return Cr(he)||null;case 13:return"split-block";case 46:return Cl(he);case 8:return od(he);case 37:return Za&&ia(he)?"move-selection-to-start-of-block":null;case 39:return Za&&ia(he)?"move-selection-to-end-of-block":null;default:return null}};var Yd=e(5585),Cc=e(86803);const Ha=he=>{let{editorState:W}=he;if(!W.getSelection().isCollapsed())return;const Q=(0,Yi.d8)(W);if((0,Cc.oY)(Q.type))return;const ge=Q.text,Me=Ie=>{let{value:Oe}=Ie;const{_setEditorState:Ke}=(0,Wa.DT)();if(!Ke)return;const ot=Oe==="ordered"?2:1;let rt=(0,Ts.ZQ)(W,0,ot);rt=(0,Yi.ws)(rt,Oe),Ke(rt)},Pe=W.getSelection();if(Pe.isCollapsed()){const Ie=Pe.getFocusOffset();return Ie===2&&(ge.startsWith("1.")||ge.startsWith("1)"))?(Me({value:"ordered"}),"skip"):Ie===1&&ge.startsWith("-")?(Me({value:"unordered"}),"skip"):void 0}},qr={"header-one":{deleteLength:1,fontSize:26},"header-two":{deleteLength:2,fontSize:22},"header-three":{deleteLength:3,fontSize:18},default:{deleteLength:0,fontSize:14}},Ld=he=>{let{editorState:W}=he;if(!W.getSelection().isCollapsed())return;const Q=(0,Yi.d8)(W);if((0,Cc.wH)(Q.type))return;const ge=Q.text,Me=Ie=>{let{value:Oe}=Ie;const{_setEditorState:Ke}=(0,Wa.DT)();if(!Ke)return;const ot=qr[Oe]||qr.default;let rt=(0,Ts.ZQ)(W,0,ot.deleteLength);rt=(0,Yi.et)(rt,Oe),(0,Wa.l2)(rt,"fontSize",ot.fontSize)},Pe=W.getSelection();if(Pe.isCollapsed()){const Ie=Pe.getFocusOffset();return Ie===1&&ge.startsWith("#")?(Me({value:"header-one"}),"skip"):Ie===2&&ge.startsWith("##")?(Me({value:"header-two"}),"skip"):Ie===3&&ge.startsWith("###")?(Me({value:"header-three"}),"skip"):void 0}};var Rc=e(66802);const nd=["backspace","backspace-word","backspace-to-start-of-line","delete","delete-word","delete-to-end-of-block"],Lp=(he,W)=>{if((0,Ts.$B)(he)){const Q=(0,Y.dM)(he.getCurrentContent()),ge=(0,$e.qn)(Q);(0,Rc.Xq)([(0,Le.Op)(W.key,{textV1:ge})])}};function Dp(){const he=(0,Ts.SZ)();let W,Q;return{store:he,onChange:ge=>{const Me=ge.getCurrentContent();if(!Me.equals(Q))return Q=Me,ge;Q=Me;const Pe=ge.getSelection();if(W&&Pe.equals(W))return W=ge.getSelection(),ge;const Ie=he.getAll();return W&&(0,Ts.AA)(Me,W.getStartKey(),W.getEndKey()).some(ot=>Ie.includes(ot))||(0,Ts.AA)(Me,Pe.getStartKey(),Pe.getEndKey()).some(Ke=>Ie.includes(Ke))?(W=Pe,(0,Ts.Qg)(ge)):ge},handleReturn:(ge,Me,Pe)=>{const Ie=ge.setEditorState;if((0,Ts.pU)(Pe,he))return Ie((0,Ts.p2)(Pe)),"handled";const Oe=(0,Yi.d8)(Pe),Ke=Oe.getType(),ot=Pe.getSelection(),rt=Oe.getText(),lt=ot.getStartOffset(),wt=rt.slice(lt);if((0,Cc.wH)(Ke))if(wt.length>0){const bo=(0,Ts.h_)(Pe,Me);if(bo)return Ie(bo),"handled"}else{const bo=(0,Ts.h_)(Pe,Me),Ro=(0,Yi.ex)(bo,"unstyled"),tn=(0,Yi.xE)(Ro,14);if(tn)return Ie(tn),"handled"}const so=(0,Ts.h_)(Pe,Me);return so?(Ie(so),"handled"):"not-handled"},handleKeyCommand:(ge,Me,Pe,Ie)=>{const Oe=ge.setEditorState,Ke=ge.getWidget(),{type:ot}=Ke;if(["bold","italic","underline","strikethrough"].includes(Me)){let rt;if(![te.x.WTear,te.x.WSticky].includes(ot)&&Me==="bold"?(rt=Y.U7.removeInlineStyle(Pe,"bold"),rt=(0,Yi.IP)(Pe,700)):rt=Y.U7.handleKeyCommand(Pe,Me),rt)return Oe(rt),Lp(rt,Ke),"handled"}if(nd.includes(Me)&&(0,Ts.pU)(Pe,he)){const rt=Pe.getSelection().getStartKey(),lt=(0,Ts.wC)(Pe,rt);if(lt!==Pe)return Oe(lt),"handled"}if(Me==="backspace"&&Pe){const rt=(0,Ln.$w)(Pe);if(rt){const lt=rt.getText(),wt=rt.get("type"),so=(0,Ln.BU)(Pe).get("textIndent"),Ro=Pe.getSelection().getEndOffset();if(Ro===0){const Pn=Pe.getSelection().getAnchorKey(),un=Pe.getCurrentContent().getBlockBefore(Pn),Xn=un==null?void 0:un.getType();if(["unordered-list-item","ordered-list-item"].includes(wt)){const ws=(0,Yi.ex)(Pe,"unstyled");return ws&&Oe(ws),"handled"}if((0,Cc.wH)(wt)&&!lt){const ws=(0,Yi.ex)(Pe,"unstyled"),zs=(0,Yi.xE)(ws,14);return zs&&Oe(zs),"handled"}if(un){if(un.getText())return"not-handled";if((0,Cc.wH)(Xn)&&!un.getText()){const ws=Xn==="header-one"?26:Xn==="header-two"?22:Xn==="header-three"?18:14,zs=(0,Yi.ex)(Pe,"unstyled"),fn=(0,Yi.xE)(zs,ws);return(0,Ts.D8)(()=>fn,Oe,un),"handled"}}}if(Ro===1&&(0,Cc.wH)(wt)){const tn=wt==="header-one"?26:wt==="header-two"?22:wt==="header-three"?18:14,Pn=(0,Ts.ZQ)(Pe,0,1),un=(0,Yi.xE)(Pn,tn);return Oe(un),"handled"}if(!lt&&so===2){const tn=(0,Yi.fM)(Pe,"outdent",2);return tn&&Oe(tn),"handled"}}}return"not-handled"},keyBindingFn:(ge,Me)=>{const Pe=ge.getEditorState,Ie=ge.setEditorState,Oe=Pe(),Ke=ge.getWidget();if(!(h1({evt:Me,editorState:Oe,setEditorState:Ie,widget:Ke})==="SKIP"||Bu({evt:Me,editorState:Oe,setEditorState:Ie,editorType:"common"})==="SKIP"||ah({blockKeyStore:he,editorState:Oe,evt:Me,getEditorState:Pe,setEditorState:Ie})==="SKIP")){if(Dd({blockKeyStore:he,editorState:Oe,evt:Me,getEditorState:Pe,setEditorState:Ie}),Me.keyCode===32){const wt=Ha({editorState:Oe}),so=Ld({editorState:Oe});return wt==="skip"||so==="skip"?"apply":void 0}return Bc(Me)}},keyBindingFn2:(ge,Me)=>{const Pe=ge.getEditorState,Ie=ge.setEditorState,Oe=Pe(),Ke=ge.getWidget(),ot=ge.isShallowEditText;if(!(Dh({evt:Me,editorState:Oe,setEditorState:Ie,widget:Ke,isShallowEditText:ot})==="SKIP"||h1({evt:Me,editorState:Oe,setEditorState:Ie,widget:Ke})==="SKIP"||Bu({evt:Me,editorState:Oe,setEditorState:Ie,editorType:"basic"})==="SKIP"||ah({blockKeyStore:he,editorState:Oe,evt:Me,getEditorState:Pe,setEditorState:Ie})==="SKIP"))return Dd({blockKeyStore:he,editorState:Oe,evt:Me,getEditorState:Pe,setEditorState:Ie}),Me.keyCode===32&&Ke.type===te.x.WRichText?Ha({editorState:Oe})==="skip"?"apply":void 0:Bc(Me)}}}const Dd=he=>{let{editorState:W,getEditorState:Q,setEditorState:ge,blockKeyStore:Me,evt:Pe}=he;if(Pe.keyCode===37){const Ie=W.getSelection(),Oe=Ie.getAnchorKey(),Ke=W.getCurrentContent().getBlockBefore(Oe);Ke&&Ie.getAnchorOffset()===0&&Me.includes(Ke.getKey())&&(0,Ts.td)(Q,ge,"up",Pe)}if(Pe.keyCode===39){const Ie=W.getSelection(),Oe=Ie.getFocusKey(),Ke=W.getCurrentContent().getBlockForKey(Oe),ot=W.getCurrentContent().getBlockAfter(Oe),rt=Ke.getType()!=="atomic"&&Ke.getLength()===Ie.getFocusOffset();ot&&rt&&Me.includes(ot.getKey())&&(0,Ts.td)(Q,ge,"down",Pe)}if(Pe.keyCode===38){const Ie=W.getSelection().getAnchorKey(),Oe=W.getCurrentContent().getBlockBefore(Ie);Oe&&Me.includes(Oe.getKey())&&(0,Ts.td)(Q,ge,"up",Pe)}if(Pe.keyCode===40){const Ie=W.getSelection().getAnchorKey(),Oe=W.getCurrentContent().getBlockAfter(Ie);Oe&&Me.includes(Oe.getKey())&&(0,Ts.td)(Q,ge,"down",Pe)}},h1=he=>{let{evt:W,editorState:Q,setEditorState:ge,widget:Me}=he;if(((0,zi.cX)()?W.metaKey:W.ctrlKey)&&W.shiftKey){var Ie;const Oe=(0,Yi.ny)(Q).fontSize||((Ie=Me.richTextV1)==null?void 0:Ie.fontSize)||14,Ke=ot=>{Lp(ot,Me)};return W.keyCode===190||W.keyCode===188?W.keyCode===190?(0,Wa.l2)(Q,"fontSize",Oe+1,!0,Ke):(0,Wa.l2)(Q,"fontSize",Oe-1,!0,Ke):W.keyCode===83&&(0,Wa.l2)(Q,"line-through",void 0,!0,Ke),"SKIP"}},ah=he=>{let{editorState:W,blockKeyStore:Q,setEditorState:ge,getEditorState:Me,evt:Pe}=he;if((0,Ts.pU)(W,Q)&&(Pe.keyCode===37&&(0,Ts.td)(Me,ge,"up",Pe),Pe.keyCode===39&&(0,Ts.td)(Me,ge,"down",Pe),Pe.keyCode===38&&(0,Ts.td)(Me,ge,"up",Pe),Pe.keyCode===40))return(0,Ts.td)(Me,ge,"down",Pe),"SKIP"},Bu=he=>{let{evt:W,editorState:Q,setEditorState:ge,editorType:Me}=he;if(W.key==="Tab"){W.preventDefault();let Pe;const Ie=W.shiftKey?"outdent":"indent",Oe=(0,Yi.DN)(Q),Ke=(0,Ln.ew)(Q);for(const ot of Ke){if((0,Ln.Eg)(ot)){const rt=ot.depth;Ie==="outdent"&&rt===0?Pe=(0,Yi.ex)(Q,"unstyled"):Pe=(0,Ts.ar)(Q,Ie==="outdent"?-1:1,4)}else Me==="common"&&(Pe=(0,Yi.fM)(Q,Ie,Oe));ge(Pe)}return"SKIP"}},Dh=he=>{let{evt:W,editorState:Q,setEditorState:ge,widget:Me,isShallowEditText:Pe}=he;if(Me.type===te.x.WMindNode){if(Pe){if((0,Yd.or)(W))return"SKIP"}else if(W.key==="Enter"&&!W.shiftKey&&!W.altKey)return ge((0,Ts.gN)(Q)),"SKIP"}},Bp=Dp();var u0=e(73807),j0=e(36875),O0=e(14672),Rp=e(23340),u1=e(43582);const{handleReturn:k2}=pi.A,{handleKeyCommand:_2,keyBindingFn2:P2}=Bp,m1=[pi.A,Bp],Wm=500;class Ru extends x.PureComponent{constructor(W){super(W),(0,r.A)(this,"editorRef",null),(0,r.A)(this,"containerRef",null),(0,r.A)(this,"handleCompositionstart",()=>{const{editorState:Ie}=this.state,Oe=(0,Ts.AR)(Ie);this.setState({editorState:Oe})}),(0,r.A)(this,"initSelectionOnMind",()=>{const{widget:Ie,isEditingSelectAll:Oe,isShallowEditText:Ke,isEditingMoveToEnd:ot}=this.props;Ie.type===te.x.WMindNode&&(Ke?this.handleEditorStateChange((0,Ts.gN)(this.state.editorState)):Oe?this.handleEditorStateChange((0,Ts.gN)(this.state.editorState)):ot&&this.handleEditorStateChange(Y.$t.moveFocusToEnd(this.state.editorState)))}),(0,r.A)(this,"handleEditorSelection",Ie=>{let{widget:Oe,linkTitle:Ke,originLinkTarget:ot,blockKey:rt,start:lt,end:wt}=Ie;const so=Oe.cid||Oe.key;if(!Oe||!so)return;const{editorState:bo}=this.state,{widget:Ro,dispatch:tn}=this.props;if(!Ro||!Ro.cid||Ro.cid!==so)return;let Pn;if(rt){const ws=bo.getCurrentContent(),zs=ws.getBlockForKey(rt);if(Pn=zs.getEntityAt(lt),!Pn){let fn;zs.findEntityRanges(Ds=>(fn=Ds.getEntity(),fn!==null&&ws.getEntity(fn).getType()==="LINK"),(Ds,gi)=>{Ds===lt&&wt===gi&&(Pn=fn)})}}const un=(0,Yi.Bm)(bo.getCurrentContent(),rt,lt,wt,ot,Ke);if(!un)return;const Xn=(0,Yi.N$)(bo,un);Xn&&this.handleEditorStateChange(Xn),Pn&&tn({type:u0.k.EntryKey["entry:draft:activeEntityKey:update"],payload:{activeEntityKey:Pn}})}),(0,r.A)(this,"getBasicTextEditor",()=>({setEditorState:this.handleEditorStateChange,getEditorState:this.getEditorState,getEditorRef:this.getEditorRef,getWidget:this.getWidget,isShallowEditText:this.props.isShallowEditText})),(0,r.A)(this,"setContainerEditorRef",Ie=>{this.containerRef=Ie}),(0,r.A)(this,"setEditorRef",Ie=>{this.editorRef=Ie}),(0,r.A)(this,"getEditorRef",()=>this.editorRef&&this.editorRef.editor),(0,r.A)(this,"getEditorState",()=>this.state.editorState),(0,r.A)(this,"getWidget",()=>this.props.widget),(0,r.A)(this,"handleEditorStateChange",(Ie,Oe)=>{const{onSelectionChange:Ke,isWidgetFirstEdit:ot,widget:rt,dispatch:lt}=this.props,{richTextV1:wt,type:so}=rt;if(!Ie)return;let bo=Ie;m1.forEach(Ro=>{Ro.onChange&&(bo=Ro.onChange(bo))}),ot&&Oe!=null&&Oe.firstcall&&(bo=(0,Rc.Z5)({editorState:bo,widgetType:so,richTextV1:wt})),this.setState({editorState:bo}),Ke(bo,Oe)}),(0,r.A)(this,"handleEditorClick",Ie=>{document.activeElement.contentEditable!=="true"&&this.focus();const{dispatch:Oe}=this.props;Ie.button===2&&Oe({type:"open:contextmenu",payload:{position:{top:Ie.clientY,left:Ie.clientX}}})}),(0,r.A)(this,"handleMouseDown",Ie=>{const{widget:Oe,dispatch:Ke}=this.props;Oe.type!==te.x.WMindNode&&Ie.button===2&&Ke({type:"entry:contextmenu:withtype",payload:{position:{top:Ie.clientY,left:Ie.clientX},type:"text"}})}),(0,r.A)(this,"focus",()=>{setTimeout(()=>{this.editorRef&&this.editorRef.focusEditor()},0)}),(0,r.A)(this,"getTextDecoration",(Ie,Oe)=>{let Ke="";return Ie&&(Ke="underline"),Oe&&(Ke+=(Ke?" ":"")+"line-through"),Ke===""&&(Ke="none"),Ke}),(0,r.A)(this,"handlePastedText",(Ie,Oe)=>{const{isShallowEditText:Ke}=this.props;if(Ke)return!0;if(Oe){const{widget:ot}=this.props,{editorState:rt}=this.state,lt=(0,qe.DL)({html:Oe,editorState:rt,inlineProcessType:"merge",componentType:ot.type===te.x.WRichText?nr.a.TEXT:nr.a.BASIC});if(lt)return this.handleEditorStateChange(lt),!0}return!1}),(0,r.A)(this,"linkCallback",Ie=>{let{entityKey:Oe,style:Ke,decoratedText:ot,url:rt,blockKey:lt,start:wt,end:so}=Ie;const{widget:bo,isCreatingLink:Ro,dispatch:tn}=this.props;Ro||(tn({type:u0.k.EntryKey["entry:draft:activeEntityKey:update"],payload:{activeEntityKey:Oe}}),fl.A.emit("draft:link-toast:view",{widget:bo,linkTitle:ot,linkTarget:rt,style:Ke,blockKey:lt,start:wt,end:so,fromType:"settingPanel"}))}),(0,r.A)(this,"handleFocus",()=>{setTimeout(()=>{this.getEditorState().getSelection().hasFocus},10)}),(0,r.A)(this,"handleBlur",()=>{const{isShallowEditText:Ie}=this.props;Ie&&this.handleEditorStateChange((0,Ts.gN)(this.state.editorState))}),(0,r.A)(this,"handleCopy",async(Ie,Oe)=>{const{widget:Ke,isShallowEditText:ot}=this.props,{editorState:rt}=this.state;if(ot)Oe.preventDefault(),Oe.stopPropagation(),Ke.type===te.x.WMindNode&&Oe.clipboardData.setData("text/plain","COPIED__MB__WIDGET");else{const lt=Ke.type==="wRichText"?Ke.w:void 0,wt=Ke.type==="wRichText"?Ke.h:void 0,so=(0,qe.vd)({editorState:rt,richTextV1:Ke.richTextV1,w:lt,h:wt}),bo=(0,Ln.u0)(rt);Oe.preventDefault(),Oe.clipboardData.setData("text/html",so),Oe.clipboardData.setData("text/plain",bo),await(0,Rp.$H)({hasNotice:!1})?await(0,O0.NO)({html:so}):await(0,Rp.qG)({html:so,selectionText:bo})}}),(0,r.A)(this,"handleCut",async(Ie,Oe)=>{const{widget:Ke}=this.props,{editorState:ot}=this.state,rt=(0,Ln.u0)(ot),lt=(0,qe.ag)({editorState:ot,richTextV1:Ke.richTextV1,w:Ke.w,h:Ke.h});Oe.preventDefault(),Oe.clipboardData.setData("text/html",lt),Oe.clipboardData.setData("text/plain",rt),await(0,Rp.$H)({hasNotice:!1})?(0,O0.NO)({html:lt}):(0,Rp.qG)({html:lt,selectionText:rt})}),(0,r.A)(this,"handleBeforeInput",()=>MB.f.isPastingRichText?"handled":"not-handled"),(0,r.A)(this,"handleCustomStyleFn",(Ie,Oe)=>{const Ke=Oe.getText();if((Ie==null?void 0:Ie.size)===0&&!(Ke!=null&&Ke.length)){const{editorState:ot}=this.state;try{const rt=ot.getCurrentInlineStyle();return(0,Yi.Od)(rt)}catch(rt){return(0,j0.Cp)(rt,{level:"debug",fingerprint:["get-sltyle-CSS-From-InlineStyle"],extra:{selection:JSON.stringify(ot.getSelection()),blocks:JSON.stringify(ot.getCurrentContent().getBlockMap())}}),{}}}return{}});const{widget:Q}=W,{textV1:ge}=Q,Me=(0,$e.mx)(ge);let Pe=(0,De.n)(Me);W.isNeedMigrateLinkItalic&&(Pe=(0,u1.cA)({textV1:ge,editorState:Pe})),this.state={editorState:Pe}}componentDidMount(){m1.forEach(ge=>{ge&&ge.initialize&&typeof ge.initialize=="function"&&ge.initialize(this.getBasicTextEditor())});const{isLinkToastShow:W}=this.props,{editorState:Q}=this.state;if(W||this.handleEditorStateChange((0,Ts.gN)(Q),{firstcall:!0}),this.initSelectionOnMind(),fl.A.on("draft:design:editorState:selection:basic",this.handleEditorSelection),this.editorRef){const ge=document.querySelector('.public-DraftEditor-content[contenteditable="true"]');ge&&ge.addEventListener("compositionstart",this.handleCompositionstart)}}componentDidUpdate(W){const{widget:{key:Q,textV1:ge,richTextV1:Me},isShallowEditText:Pe,isEditingSelectAll:Ie,isEditingMoveToEnd:Oe}=W,{widget:{key:Ke,type:ot,textV1:rt,richTextV1:lt},isShallowEditText:wt,isEditingSelectAll:so,isEditingMoveToEnd:bo}=this.props;if(ot===te.x.WMindNode)if(!(0,Te.eI)(rt,ge)&&Q!==Ke||!Ki()(Me,lt)){const Ro=(0,$e.mx)(rt);this.setState({editorState:(0,De.n)(Ro)},()=>{this.handleEditorStateChange((0,Ts.gN)(this.state.editorState))})}else(wt!==Pe||so!==Ie||bo!==Oe)&&this.initSelectionOnMind()}componentWillUnmount(){if(m1.forEach(W=>{W&&W.unmounted&&typeof W.unmounted=="function"&&W.unmounted()}),fl.A.off("draft:design:editorState:selection:basic",this.handleEditorSelection),this.setState=()=>!1,this.editorRef){const W=document.querySelector('.public-DraftEditor-content[contenteditable="true"]');W&&W.removeEventListener("compositionstart",this.handleCompositionstart)}}render(){const{editorState:W}=this.state,{widget:Q,activeEntityKey:ge,isShallowEditText:Me,dispatch:Pe,fontDirection:Ie,lhVersion:Oe,isNeedMigrateLinkItalic:Ke}=this.props,ot=Q.type===te.x.WRichText,rt=Q["!liVersion"],lt=ot?Q["!psVersion"]:3,wt=[{strategy:qi,component:or,props:{callback:this.linkCallback,version:rt,isNeedMigrateLinkItalic:Ke,dispatch:Pe}}],{richTextV1:{sizeType:so,lineHeight:bo,paraSpacing:Ro,horizontalAlign:tn,underline:Pn,strikethrough:un},shadow:Xn}=Q,ws=Q.type==="wRichText"&&Xn?{textShadow:Xn!=null&&Xn.shadowIsVisible?(Xn==null?void 0:Xn.offsetX)+"px "+(Xn==null?void 0:Xn.offsetY)+"px "+(Xn==null?void 0:Xn.blurRadius)+"px "+(0,Na.t0)(Xn==null?void 0:Xn.shadowColor):"none"}:{},zs=this.getTextDecoration(Pn,un),fn=u()(Q.type,{auto:so===0,fixed:so!==0,vertical:Ie==="vertical-lr",horizontal:Ie==="horizontal-tb"}),Ds=(0,Wa.FM)(W,"state");return(0,y.jsx)(Js,{style:ws,className:fn,lineHeight:bo,psVersion:lt,paraSpacing:Ro,horizontalAlign:tn,fontDirection:Ie,psList:Ds,textDecoration:zs,activeKey:ge,isWRichText:ot,isShallowEditText:Me,ref:this.setContainerEditorRef,onClick:this.handleEditorClick,onMouseDown:this.handleMouseDown,id:"test-design-dom"+Q.cid,children:(0,y.jsx)(Ms.c,{preserveSelectionOnBlur:!0,wrapperClassName:"draft-basic-text-editor-wrapper",editorClassName:"draft-basic-text-editor",ref:this.setEditorRef,editorState:W,blockStyleFn:Hr(!0,"center"),customDecorators:wt,onEditorStateChange:this.handleEditorStateChange,customStyleMap:{...ki.a2,...ki.cN,...ki.aV},handlePastedText:this.handlePastedText,keyBindingFn:P2.bind(this,this.getBasicTextEditor()),handleKeyCommand:_2.bind(this,this.getBasicTextEditor()),handleReturn:k2.bind(this,this.getBasicTextEditor()),handleBeforeInput:this.handleBeforeInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onCopy:this.handleCopy,onCut:this.handleCut,customStyleFn:this.handleCustomStyleFn,canBlockAlign:!1,lhVersion:Oe})})}}const ju=Ru;var Ou=e(20141),Fu=e(35473);const Uu=2e3;class N2 extends x.Component{constructor(W){var Q;super(W),(0,r.A)(this,"autoSave",()=>{this.autoTimeoutId=setInterval(()=>{this.saveAction()},Uu)}),(0,r.A)(this,"saveAction",()=>{this.props.dispatch({type:"quit:rich:text:editing",payload:{isWidgetFirstEdit:this.state.isWidgetFirstEdit,isNeedMigrateLinkItalic:this.state.isNeedMigrateLinkItalic,onlySave:!0}})}),(0,r.A)(this,"getWrapperStyleV0",Ie=>{const{swimlaneSelectedCellInfo:Oe}=this.props,{richTextV1:{sizeType:Ke,fontDirection:ot,paddingTuple:rt}}=Ie.widget,{borderLeft:lt,borderTop:wt,borderRight:so,borderBottom:bo}=(0,As.NV)(Ie==null?void 0:Ie.widget),{top:Ro,left:tn,width:Pn,height:un}=(0,rr.zG)(Ie);let Xn=Ro,ws=tn,zs=Pn-lt-so,fn=un-wt-bo,Ds={};const gi=Ie.widget.type;if(gi===te.x.WSwimlane){const{x:ba,y:fa}=Oe.tl,{database:Ka,swimlaneType:da,swimConfig:{isShowBigTitle:aa}}=Ie.widget,{table:ka}=Ka,Vi=(0,Sl.u3)({database:Ka,x:ba,y:fa,swimlaneType:da}),Di=(0,Sl.XY)({database:Ka,x:ba,y:fa,swimlaneType:da,isShowBigTitle:aa}),pa=Ie.widget.border.bdrWidth;(ba===ka[fa].length-1?"last":"normal")==="normal"?(ws+=Di.left+pa,zs=Vi.width-pa):(ws+=Di.left+pa,zs=Vi.width-pa*2),(fa===ka.length-1?"last":"normal")==="normal"?(Xn+=Di.top+pa*1.5,fn=Vi.height-pa*2):(Xn+=Di.top,fn=Vi.height)}if(gi===te.x.WFlowOpened){const ba=Ie.widget.subType;ba!=="concurrent"&&(zs=Pn*.8,(ba==="commentRight"||ba==="noteRight")&&(ws+=Pn*.2))}if(gi===te.x.wFlowClosed&&Ie.widget.subType==="subProcess"&&(zs=Pn*.7,ws+=Pn*.14),[te.x.WFlowOpened,te.x.wFlowClosed,te.x.WRect].includes(gi)&&(zs=zs+lt+so,fn=fn+wt+bo,ws=ws-lt,Xn=Xn-wt),(gi===te.x.WLine||gi===te.x.WArrow)&&(fn=fn>0?fn+wt+bo:1,zs=zs>0?zs+lt+so:1,Ds={top:Xn,left:ws,minHeight:"auto"}),Ie.widget.type===te.x.WMTooltip){const ba=Ie.widget.tooltip.placement,fa=Ie.widget.tooltip.arrowSize,Ka={top:"marginTop",right:"marginRight",bottom:"marginBottom",left:"marginLeft"},da=["top","bottom"].includes(ba);Ds={[Ka[ba]]:fa,width:da?zs:zs-fa,height:da?fn-fa:fn}}if(Ie.widget.type===te.x.WElbow){const{elbow:{dPathList:ba,elbowType:fa,textPositionProportion:Ka}}=Ie.widget,{x:da,y:aa}=(0,Fu.xd)(ba,fa,Ka);Xn=Xn+aa,ws=ws+da,Ds={width:"max-content",transform:"translate(-50%, -50%)",height:"auto",padding:"4px 8px",border:"1px solid #1684fc",borderRadius:6,fontFamily:"PingFangSC",backgroundColor:"#fff"}}Ie.widget.type===te.x.WPlaceholder&&(Ds={fontFamily:"PingFangSC"});const{padding:hi,...Ni}=Rn(Ie.widget);return{display:"flex",top:Xn+wt,left:ws+lt,width:zs,height:ot==="vertical-lr"||Ke===1?fn:"",borderRadius:Ie.widget.type===te.x.WOval&&0,...hi,...Ni,...Ds}}),(0,r.A)(this,"getMindNodeWrapperStyleV0",()=>{var Ie;const{editingMindNode:{richTextNode:Oe,mindNode:Ke}}=this.props,{top:ot,left:rt}=(0,rr.zG)(Ke),{widget:{border:{bdrIsVisible:lt,bdrWidth:wt},theme:so}}=Ke,bo=lt&&wt||0,{richTextV1:{sizeType:Ro,fontDirection:tn},border:{bdrIsVisible:Pn,bdrWidth:un}}=Oe.widget,Xn=Pn&&un||0,ws=(0,Yd.ss)({theme:so,node:Oe}),zs=Rn({...Oe.widget,richTextV1:{...Oe.widget.richTextV1,...ws}}),fn=(Ie=Ke.children[0])==null?void 0:Ie.children.find(ka=>ka.widget.isRoot),Ds=(0,Ou.AT)(fn),{x:gi,y:hi}=Oe.mindNodePosition,{w:Ni,h:ba}=Oe.getMindNodeTextSize(),{x:fa,y:Ka}=Oe.getMindNodeTextPosition(),da=rt+gi+Ds.x+bo+Xn+fa,aa=ot+hi+Ds.y+bo+Xn+Ka;return{display:"flex",left:da,top:aa,width:Ni,height:tn==="vertical-lr"||Ro===1?ba:"",...zs}}),(0,r.A)(this,"handleMouseDown",Ie=>{(0,M.kI)(Ie)}),(0,r.A)(this,"handleSelectionChange",(Ie,Oe)=>{const{node:Ke,defaultAttrs:ot,dispatch:rt}=this.props;rt({type:"set:rich:text:editor:state",payload:{richTextEditorState:Ie}}),Oe!=="color"&&rt({type:"entry:mind:update:textV1"}),Ie.getCurrentContent().getPlainText()===""&&Ke&&rt({type:"entry:widget:change",payload:{flatChgList:[{key:Ke==null?void 0:Ke.key,hotAttr:{richTextV1:ot}}]}})}),(0,r.A)(this,"handleKeyDownOnMindNodeEdit",Ie=>{if(!Ie.target.closest(".editing-text-area"))return;const{isLinkToastShow:Oe,isShallowEditText:Ke,richTextEditorState:ot,dispatch:rt}=this.props,lt=Ie.shiftKey,wt=Ie.altKey,so=Ie.metaKey||Ie.ctrlKey,bo=Ie.key===Ir._.Escape,Ro=Ie.key===Ir._.Enter,tn=Ie.keyCode===Ir.Ju.Space,Pn=(ot==null?void 0:ot.isInCompositionMode)&&(ot==null?void 0:ot.isInCompositionMode()),un=Oe?so&&Ro:!lt&&!wt&&Ro&&!Pn,Xn=Ke&&(0,Yd.or)(Ie);(bo||un||Xn&&!tn)&&(this.props.dispatch({type:"quit:rich:text:editing",payload:{isWidgetFirstEdit:!1,isNeedMigrateLinkItalic:!1}}),rt({type:"mind:update:isShallowEditText",payload:!0})),Xn&&(Ie.preventDefault(),Ie.stopPropagation(),(0,Yd.or)(Ie,rt))}),(0,r.A)(this,"handleKeySave",Ie=>{Ie.preventDefault(),this.saveAction()}),(0,r.A)(this,"quitRichTextEditingByEsc",Ie=>{if(Ie.key==="s"&&(Ie.ctrlKey||Ie.metaKey)){this.handleKeySave(Ie);return}const{editingMindNode:Ke}=this.props;if(Ke){this.handleKeyDownOnMindNodeEdit(Ie);return}const ot=Ie.metaKey||Ie.ctrlKey,rt=Ie.key===Ir._.Escape,lt=Ie.key===Ir._.Enter;(rt||ot&<)&&this.props.dispatch({type:"quit:rich:text:editing",payload:{isWidgetFirstEdit:this.state.isWidgetFirstEdit,isNeedMigrateLinkItalic:this.state.isNeedMigrateLinkItalic}})}),(0,r.A)(this,"quitRichTextEditing",Ie=>{const{isLinkToastShow:Oe,isShallowEditText:Ke}=this.props;if(!Ke){if(!Ie.target.closest(".draft-link-toast")&&Oe&&!Ie.target.dataset.text){["INPUT","LABEL","TEXTAREA"].includes(Ie.target.tagName)||(Ie.preventDefault(),Ie.stopPropagation()),fl.A.emit("draft:link-toast:quit"),this.props.dispatch({type:"quit:rich:text:editing",payload:{isWidgetFirstEdit:this.state.isWidgetFirstEdit,isNeedMigrateLinkItalic:this.state.isNeedMigrateLinkItalic}});return}Ie.target.closest(".draft-link-toast")||Ie.target.closest(".draft-inline-toolbar")||Ie.target.closest('.public-DraftEditor-content[contenteditable="true"] .draft-image-atomic')||Ie.target.closest(".image-content")||Ie.target.closest("#ai-semantic-modal")||Ie.target.closest(".ai-semantic-recommend-panel")||Ie.target.closest(".WorkspaceInputNumber")||Ie.target.closest("#textediting-menu")||Ie.target.closest(".font-family-menu")||Ie.target.closest(".--mb--color-picker")||Ie.target.closest("#ai-semantic-modal")||Ie.target.closest(".ai-semantic-recommend-panel")||Ie.target.closest(".context-menu-mask")||Ie.target.closest(".draft-rich-text-editor.draft-rich-text-editor-wrapper")||Ie.target.closest(".font-size-input-menu")||Ie.target.closest("#text-settings")||Ie.target.closest(".font-options-menu #text-settings-font-menu")||document.getElementById("font-list-panel")||Ie.target.closest(".md-magnifier-color-item")||(fl.A.emit("draft:link-toast:quit"),this.props.dispatch({type:"quit:rich:text:editing",payload:{isWidgetFirstEdit:this.state.isWidgetFirstEdit,isNeedMigrateLinkItalic:this.state.isNeedMigrateLinkItalic}}))}}),(0,r.A)(this,"getEditorStyle",()=>{const{node:Ie,swimlaneSelectedCellInfo:Oe,editingMindNode:Ke}=this.props;let ot=null,rt={},lt={};if(Ie){if(ot=Ie.widget,rt=ot.richTextV1,ot.type===te.x.WSwimlane){const{cells:gi,table:hi}=ot.database,{x:Ni,y:ba}=Oe.tl,fa=gi[hi[ba][Ni]];fa&&(ot.textV1=fa.textV1,ot.richTextV1=fa.richTextV1,rt=fa.richTextV1)}lt=this.getWrapperStyleV0(Ie)}if(Ke){const{richTextNode:gi}=Ke;ot=gi.widget,rt=ot.richTextV1,lt=this.getMindNodeWrapperStyleV0()}if(!ot)return null;const{type:wt}=ot,{sizeType:so,fontDirection:bo,horizontalAlign:Ro,verticalAlign:tn}=rt,Pn=rt["!lhVersion"],un=so===0?"auto":"fixed",{left:Xn,top:ws,...zs}=lt,fn={transform:"translate("+Xn+"px, "+ws+"px)",width:zs.width,height:zs.height,display:"flex"},Ds={...zs};return bo==="vertical-lr"&&so===0&&(Ds.height="max-content"),{widget:ot,type:wt,editorWarpperStyle:fn,richEditorStyle:Ds,lhVersion:Pn,sizeType:un,fontDirection:bo,horizontalAlign:Ro,verticalAlign:tn}});let ge=!1,Me=!1;if((Q=this.props.node)!=null&&(Q=Q.widget)!=null&&Q.textV1){var Pe;const Ie=(Pe=this.props.node)==null?void 0:Pe.widget;ge=(0,Cc.SD)(Ie.textV1.blocks),Me=Ie["!liVersion"]===1}this.state={containerBorderHeight:0,containerBorderWidth:0,isWidgetFirstEdit:ge,isNeedMigrateLinkItalic:Me}}componentDidMount(){MB.f.editing=!0,MB.f.editingRichText=!0,this.autoSave()}componentWillUnmount(){MB.f.editing=!1,MB.f.editingRichText=!1,clearInterval(this.autoTimeoutId)}componentDidUpdate(W,Q,ge){W.isStopAutoSave!==this.props.isStopAutoSave&&(this.props.isStopAutoSave?clearInterval(this.autoTimeoutId):this.autoSave())}render(){const{activeEntityKey:W,isLinkToastShow:Q,isCreatingLink:ge,isShallowEditText:Me,isEditingSelectAll:Pe,isEditingMoveToEnd:Ie,dispatch:Oe,keyAttrOverrideMap:Ke}=this.props,{isNeedMigrateLinkItalic:ot,isWidgetFirstEdit:rt}=this.state,lt=this.getEditorStyle();if(!(lt!=null&<.widget))return null;const wt=u()("draft-rich-text-editor","draft-rich-text-editor-wrapper",lt.type,lt.sizeType,lt.fontDirection,{horizontalAlign:lt.horizontalAlign,verticalAlign:lt.verticalAlign,fontDirection:lt.fontDirection,isShallowEditText:Me});return(0,y.jsx)("div",{style:lt.editorWarpperStyle,children:(0,y.jsxs)(os,{className:wt,style:lt.richEditorStyle,onMouseDown:this.handleMouseDown,children:[(0,y.jsx)(ju,{isShallowEditText:Me,isEditingSelectAll:Pe,isEditingMoveToEnd:Ie,widget:lt.widget,onSelectionChange:this.handleSelectionChange,activeEntityKey:W,isLinkToastShow:Q,isCreatingLink:ge,fontDirection:lt.fontDirection,dispatch:Oe,lhVersion:lt.lhVersion,isWidgetFirstEdit:rt,isNeedMigrateLinkItalic:ot}),(0,y.jsx)(_.A,{target:document,onKeyDown:(0,_.t)(this.quitRichTextEditingByEsc,{capture:!0}),onMouseDown:(0,_.t)(this.quitRichTextEditing,{capture:!0})})]})})}}const L2=(0,m.Mz)([Y0,q.oi,q.uA,q.ah,q.aJ,u0.k.Query.getActiveEntityKey,u0.k.Query.getLinkToastShow,u0.k.Query.getIsCreatingLink,fi.X.query.getSelectedCellsInfo,fi.X.query.getIsDeepEditing,g.Mj,p.Gq,u0.k.Query.isStopAutoSave],(he,W,Q,ge,Me,Pe,Ie,Oe,Ke,ot,rt,lt,wt)=>({node:he,activeEntityKey:Pe,isLinkToastShow:Ie,isCreatingLink:Oe,swimlaneSelectedCellInfo:Ke,swimlaneIsDeepEditing:ot,editingMindNode:W,isShallowEditText:Me,isEditingSelectAll:Q,isEditingMoveToEnd:ge,richTextEditorState:rt,defaultAttrs:lt,isStopAutoSave:wt})),O1=he=>(he.node||he.editingMindNode)&&(0,y.jsx)(N2,{...he}),rh=(0,o.Ng)(he=>L2(he))(O1);var Cd=e(32148);function mu(){const he=(0,Cd.A)({isVisible:!1});return{store:he,initialize:W=>{const Q=W.getReadOnly,ge=W.getEditorState,Me=W.setEditorState,Pe=W.getWidget;he.updateItem("getReadOnly",Q),he.updateItem("getEditorState",ge),he.updateItem("setEditorState",Me),he.updateItem("getWidget",Pe)},unmounted:()=>{he.updateItem("getReadOnly",null),he.updateItem("getEditorState",null),he.updateItem("setEditorState",()=>!1),he.updateItem("getWidget",null)}}}const op=mu();function D2(){const he={getEditorRef:void 0,getReadOnly:void 0,getEditorState:void 0,setEditorState:void 0};return{store:he,initialize:W=>{he.getReadOnly=W.getReadOnly,he.getEditorRef=W.getEditorRef,he.getEditorState=W.getEditorState,he.setEditorState=W.setEditorState}}}const jc=D2();var B2=e(23092);const R2=he=>{const W=he.WrappedComponent||he;return W.displayName||W.name||"Component"},j2=he=>{const W=he.blockKeyStore;return Q=>{const ge=(Me,Pe)=>{const{block:Ie,mode:Oe,contentState:Ke,blockProps:ot,className:rt,style:lt,onMouseDown:wt,onMouseMove:so,onMouseLeave:bo}=Me,{isFocused:Ro,alignment:tn,setFocusToBlock:Pn}=ot;(0,x.useEffect)(()=>(W.add(Ie.getKey()),()=>{W.remove(Ie.getKey())}),[]);const un=ws=>{ws.preventDefault(),ws.stopPropagation(),Pn()},Xn=u()(rt,{focused:Ro,unfocused:!Ro});return(0,y.jsx)(Q,{block:Ie,mode:Oe,contentState:Ke,ref:Pe,className:Xn,alignment:tn,style:lt,onClick:un,onMouseDown:wt,onMouseMove:so,onMouseLeave:bo})};return ge.displayName="BlockFocus("+R2(Q)+")",ge.WrappedComponent=Q.WrappedComponent||Q,x.forwardRef(ge)}},O2=he=>{const W=he.WrappedComponent||he;return W.displayName||W.name||"Component"},F2=he=>{const W=he.store;return Q=>{const ge=(Me,Pe)=>{const{block:Ie,mode:Oe,contentState:Ke,className:ot,blockProps:rt,style:lt,onMouseDown:wt,onMouseMove:so,onMouseLeave:bo}=Me,{src:Ro,alt:tn,isFocused:Pn,isCollapsedSelection:un,alignment:Xn,setAlignment:ws}=rt,zs=(0,x.useRef)();return(0,x.useEffect)(()=>{if(Pn&&un&&zs.current){const fn=zs.current.getBoundingClientRect();W.updateItem("setAlignment",ws),W.updateItem("alignment",Xn),W.updateItem("boundingRect",fn),W.updateItem("visibleBlock",Ie.getKey()),W.updateItem("imageProps",{src:Ro,alt:tn})}else W.getItem("visibleBlock")===Ie.getKey()&&W.updateItem("visibleBlock",null);return()=>{W.updateItem("visibleBlock",null)}},[Ro,tn,Pn,un,Xn,ws,Ie]),(0,y.jsx)(Q,{block:Ie,mode:Oe,contentState:Ke,className:ot,blockProps:rt,style:lt,ref:fn=>{zs.current=fn,typeof Pe=="function"?Pe(fn):Pe&&(Pe.current=fn)},onMouseDown:wt,onMouseMove:so,onMouseLeave:bo})};return ge.displayName="Alignment("+O2(Q)+")",ge.WrappedComponent=Q.WrappedComponent||Q,x.forwardRef(ge)}},U2=(he,W,Q)=>{let{isLeft:ge,isRight:Me}=he,{startWidth:Pe,startX:Ie}=W;return ge?Pe+Ie-Q.clientX:Pe+Q.clientX-Ie},F1=(he,W,Q)=>{let{isTop:ge,isBottom:Me}=he,{startHeight:Pe,startWidth:Ie,startY:Oe}=W;const Ke=Ie/Pe;return(ge?Pe+Oe-Q.clientY:Pe+Q.clientY-Oe)*Ke},z2=he=>{const W=he.WrappedComponent||he;return W.displayName||W.name||"Component"},U1=(he,W)=>Math.ceil(he/W)*W,Wu=he=>{const W=he.store;return Q=>{const ge=(Me,Pe)=>{const{block:Ie,mode:Oe,contentState:Ke,className:ot,blockProps:rt,initialWidth:lt,initialHeight:wt}=Me,{resizeData:so,setResizeData:bo}=rt,Ro=Me.isResizable===void 0?!0:Me.isResizable,tn=Me.resizeSteps===void 0?1:Me.resizeSteps,Pn=W.getReadOnly&&W.getReadOnly(),un=Me.vertical===void 0?"relative":Me.vertical,Xn=Me.horizontal===void 0?"relative":Me.horizontal,[ws,zs]=(0,x.useState)(!1),[fn,Ds]=(0,x.useState)(0),[gi,hi]=(0,x.useState)(0),[Ni,ba]=(0,x.useState)({isTop:!1,isLeft:!1,isRight:!1,isBottom:!1,canResize:!0}),fa=(0,x.useRef)(),Ka=(0,x.useCallback)(()=>{!ws&&ba({isTop:!1,isLeft:!1,isRight:!1,isBottom:!1,canResize:!0})},[ws]),da=(0,x.useCallback)(Vi=>{const pa=fa.current.getBoundingClientRect(),Ra=Vi.clientX-pa.left,Ar=Vi.clientY-pa.top,ja=un&&un!=="auto"?Ar<6:!1,wr=Xn?Ra<6:!1,Rr=Xn?Ra>=pa.width-6&&Ra<pa.width:!1,sr=un&&un!=="auto"?Ar>=pa.height-6&&Ar<pa.height:!1,xl={isTop:ja,isLeft:wr,isRight:Rr,isBottom:sr,canResize:(ja||wr||Rr||sr)&&Ro};ba(Vr=>Object.keys(xl).filter(Zr=>Vr[Zr]!==xl[Zr]).length?xl:Vr)},[un,Xn,Ro]),aa=(0,x.useCallback)(Vi=>{if(!Ni.canResize)return;Vi.preventDefault();const Di=Ni.isTop,pa=Ni.isLeft,Ra=Ni.isRight,Ar=Ni.isBottom,ja=fa.current.getImgElement(),wr=Vi.clientX,Rr=Vi.clientY,sr=ja&&parseInt(document.defaultView.getComputedStyle(ja).width,10),kc=ja&&parseInt(document.defaultView.getComputedStyle(ja).height,10);let xl=fn,Vr=gi;const ll=wc=>{let g0=U2({isLeft:pa,isRight:Ra},{startWidth:sr,startX:wr},wc),e0=F1({isTop:Di,isBottom:Ar},{startHeight:kc,startWidth:sr,startY:Rr},wc);const f0=W.getEditorRef(),qh=f0.refs&&f0.refs.editor?f0.refs.editor:f0.editor;g0=Math.min(qh.clientWidth,g0),e0=Math.min(qh.clientWidth,e0);const Bh=100/qh.clientWidth*g0,K1=100/qh.clientWidth*e0;(pa||Ra)&&Xn==="relative"?(xl=tn?U1(Bh,tn):Bh,Ds(xl)):(pa||Ra)&&Xn==="absolute"&&(xl=tn?U1(g0,tn):g0,Ds(xl)),(Di||Ar)&&un==="relative"?(xl=tn?U1(K1,tn):K1,Ds(xl)):(Di||Ar)&&un==="absolute"&&(Vr=tn?U1(e0,tn):e0,hi(Vr)),wc.preventDefault()},Zr=()=>{document.removeEventListener("mousemove",ll,!1),document.removeEventListener("mouseup",Zr,!1),zs(!1),bo({width:xl,height:Vr||void 0})};document.addEventListener("mousemove",ll,!1),document.addEventListener("mouseup",Zr,!1),zs(!0)},[Ni,fn,gi,Xn,un,bo,tn]),ka=(0,x.useMemo)(()=>{const Vi={position:"relative",cursor:"pointer",width:"100%",height:"auto"},Di=Ni.isTop,pa=Ni.isLeft,Ra=Ni.isRight,Ar=Ni.isBottom;if(Xn==="auto")Vi.width="auto";else if(Xn==="relative"){const ja=fn||so.width;!ja&<?Vi.width=lt:Vi.width=(ja||40)+(ja&&(ja+"").includes("%")?"":"%")}else if(Xn==="absolute"){const ja=fn||so.width;!ja&<?Vi.width=lt:Vi.width=(ja||40)+"px"}if(un==="auto")Vi.height="auto";else if(un==="relative"){const ja=fn||so.width;!ja&<?Vi.width=lt:Vi.width=(ja||40)+(ja&&(ja+"").includes("%")?"":"%")}else if(un==="absolute"){const ja=gi||so.height;!ja&&wt?Vi.height=wt:Vi.height=(ja||40)+"%"}return Ro?Ra&&Ar||pa&&Di?Vi.cursor="nwse-resize":Ra&&Di||Ar&&pa?Vi.cursor="nesw-resize":Ra||pa?Vi.cursor="ew-resize":Ar||Di?Vi.cursor="ns-resize":Vi.cursor="pointer":Vi.cursor="pointer",Vi},[Xn,un,Ro,Ni,fn,gi,lt,wt,so.width,so.height]);return(0,y.jsx)(Q,{block:Ie,mode:Oe,contentState:Ke,className:ot,blockProps:rt,style:ka,onMouseDown:Pn?void 0:aa,onMouseMove:Pn?void 0:da,onMouseLeave:Pn?void 0:Ka,ref:Vi=>{fa.current=Vi,typeof Pe=="function"?Pe(Vi):Pe&&(Pe.current=Vi)}})};return ge.displayName="BlockResizeable("+z2(Q)+")",ge.WrappedComponent=Q.WrappedComponent||Q,x.forwardRef(ge)}},g1={options:["imageAlign","v_separator","enlarge"],imageAlign:{inDropdown:!0,icon:"draft/alignment",className:"draft-alignment",title:"\u5BF9\u9F50\u65B9\u5F0F",options:["left","center","right","justify"],left:{icon:"draft/text-align/left",className:"draft-text-align-left",title:"\u5DE6\u5BF9\u9F50"},center:{icon:"draft/text-align/center",className:"draft-text-align-center",title:"\u5C45\u4E2D\u5BF9\u9F50"},right:{icon:"draft/text-align/right",className:"draft-text-align-right",title:"\u53F3\u5BF9\u9F50"},justify:{icon:"draft/text-align/justify",className:"draft-text-align-justify",title:"\u4E24\u7AEF\u5BF9\u9F50"}},enlarge:{inDropdown:!1,icon:"draft/enlarge",className:"draft-enlarge",title:"\u9884\u89C8"},v_separator:{inDropdown:!1,icon:void 0,className:"draft-separator-v",title:void 0}},tc=fe.Ay.div.withConfig({displayName:"styles__StyledDraftImageAtomicDiv",componentId:"sc-5nznd1-0"})(['.draggable-btn{position:absolute;width:20px;height:20px;display:none;justify-content:center;align-items:center;z-index:1;&.top{top:0px;}&.left{left:0px;}&.right{right:0px;}&.bottom{bottom:0px;}&::after{content:"";display:block;height:10px;width:10px;border:1px solid #3370ff;border-radius:50%;box-sizing:border-box;background-color:#ffffff;}}&.focused{.draggable-btn{display:flex;z-index:2;}}']),W2=" ",V2=(he,W)=>{const{block:Q,mode:ge,className:Me,alignment:Pe,contentState:Ie,style:Oe,onClick:Ke,onMouseDown:ot,onMouseMove:rt,onMouseLeave:lt}=he,wt=Ie.getEntity(Q.getEntityAt(0)),{src:so,alt:bo}=wt.getData(),Ro=x.useRef(null),tn=un=>{un.preventDefault(),un.stopPropagation(),MB.action&&MB.action("modal:update:state",{imagePreviewModal:{isOpen:!0,imgSrc:so,alt:bo}})},Pn={width:"100%",height:"max-content",fontSize:0,textAlign:void 0};return g1.imageAlign.options.includes(Pe)&&(Pn.textAlign=Pe),x.useImperativeHandle(W,()=>({getImgElement:()=>Ro.current,getBoundingClientRect:()=>Ro.current.getBoundingClientRect()})),(0,y.jsxs)(tc,{style:Pn,children:[W2,(0,y.jsx)("img",{ref:Ro,style:Oe,className:Me,onDoubleClick:ge==="edit"?void 0:tn,onClick:Ke,onMouseDown:ot,onMouseMove:rt,onMouseLeave:lt,src:so,alt:bo,draggable:"false",role:"presentation"})]})},H2=x.forwardRef(V2),Dr=he=>{let{contentState:W,block:Q}=he;const ge=Q.getKey(),Pe=W.getFirstBlock().getKey(),Oe=W.getLastBlock().getKey(),Ke=W.getBlockBefore(ge),ot=W.getBlockAfter(ge),rt="draft-image-atomic",lt=ge!==Pe&&(Ke.getType()==="atomic"||Ke.getType()!=="atomic"&&Ke.getText()),wt=ge!==Oe&&ot.getType()!=="atomic";return rt},gu=he=>{let{alignmentStore:W,resizeableStore:Q,blockKeyStore:ge}=he;return(Me,Pe)=>{const Ie=Me.getEditorState,Oe=Me.setEditorState;if(Pe.getType()==="atomic"){const Ke=Ie(),ot=Ke.getCurrentContent(),rt=Pe.getEntityAt(0);if(!rt)return null;const lt=ot.getEntity(rt);if(!lt)return null;const wt=lt.getType();if(["image","IMAGE"].includes(wt)){const so=lt.getData(),{src:bo,alt:Ro,width:tn,height:Pn,alignment:un}=so,Xn={src:bo,alt:Ro},ws=tn?typeof tn=="number"?tn+"%":tn.includes("%")?tn:tn+"%":"100%",zs=j2({blockKeyStore:ge}),fn={isFocused:Ke.getSelection().getHasFocus()&&(0,Ts.rr)(Ke,Pe.getKey()),isCollapsedSelection:Ke.getSelection().isCollapsed(),setFocusToBlock:()=>{(0,Ts.D8)(Ie,Oe,Pe)}},Ds=F2({store:W}),gi={alignment:un||"default",setAlignment:(0,Ts.Uf)(Pe,{getEditorState:Ie,setEditorState:Oe})},hi=Wu({store:Q}),Ni={resizeData:{width:tn,height:Pn},setResizeData:(0,Ts.Rr)(Pe,{getEditorState:Ie,setEditorState:Oe})},ba=Dr({contentState:ot,block:Pe}),fa=x.createElement(hi(Ds(zs(H2))),{block:Pe,mode:"edit",contentState:ot,className:ba,isResizable:void 0,resizeSteps:void 0,vertical:void 0,horizontal:void 0,initialWidth:ws,initialHeight:void 0,blockProps:{...Xn,...gi,...fn,...Ni}});return{component:()=>fa,editable:!1}}return null}return null}};var f1=e(18575);const z1=[pi.A,op,jc,Bp];class Qh extends x.PureComponent{constructor(W){super(W),(0,r.A)(this,"editorRef",null),(0,r.A)(this,"containerRef",null),(0,r.A)(this,"handleCompositionstart",()=>{const{editorState:Ie}=this.state,Oe=(0,Ts.AR)(Ie);this.setState({editorState:Oe})}),(0,r.A)(this,"handleWheel",Ie=>{Ie.stopPropagation(),(Ie.metaKey||Ie.ctrlKey)&&Ie.preventDefault()}),(0,r.A)(this,"getPluginMethods",()=>({setEditorState:this.handleEditorStateChange,getEditorState:this.getEditorState,getEditorRef:this.getEditorRef,getWidget:this.getWidget})),(0,r.A)(this,"setContainerEditorRef",Ie=>{this.containerRef=Ie}),(0,r.A)(this,"setEditorRef",Ie=>{this.editorRef=Ie}),(0,r.A)(this,"getEditorRef",()=>this.editorRef&&this.editorRef.editor),(0,r.A)(this,"getEditorState",()=>this.state.editorState),(0,r.A)(this,"getWidget",()=>this.state.widget),(0,r.A)(this,"handleEditorSelection",Ie=>{let{widget:Oe,linkTitle:Ke,originLinkTarget:ot,blockKey:rt,start:lt,end:wt}=Ie;if(!Oe||!Oe.cid)return;const{widget:so,editorState:bo}=this.state;if(!so||!so.cid||so.cid!==Oe.cid)return;let Ro;if(rt){const Xn=bo.getCurrentContent(),ws=Xn.getBlockForKey(rt);if(Ro=ws.getEntityAt(lt),!Ro){let zs;ws.findEntityRanges(fn=>(zs=fn.getEntity(),zs!==null&&Xn.getEntity(zs).getType()==="LINK"),(fn,Ds)=>{fn===lt&&wt===Ds&&(Ro=zs)})}}const tn=(0,Yi.Bm)(bo.getCurrentContent(),rt,lt,wt,ot,Ke);if(!tn)return;const Pn=(0,Yi.N$)(bo,tn);Pn&&this.handleEditorStateChange(Pn);const{dispatch:un}=this.props;Ro&&un({type:u0.k.EntryKey["entry:draft:activeEntityKey:update"],payload:{activeEntityKey:Ro}})}),(0,r.A)(this,"handleEditorStateChange",Ie=>{let Oe=Ie;z1.forEach(Ke=>{Ke.onChange&&(Oe=Ke.onChange(Oe))}),this.setState({editorState:Oe})}),(0,r.A)(this,"handleEditorClick",()=>{document.activeElement.contentEditable!=="true"&&this.focus()}),(0,r.A)(this,"focus",()=>{setTimeout(()=>{this.editorRef&&this.editorRef.focusEditor()},0)}),(0,r.A)(this,"handlePastedText",(Ie,Oe)=>{if(Oe){const{editorState:Ke}=this.state,ot=(0,qe.DL)({html:Oe,editorState:Ke,inlineProcessType:"merge",componentType:nr.a.COMMON});if(ot)return this.handleEditorStateChange(ot),!0}return!1}),(0,r.A)(this,"handlePastedFiles",Ie=>{if(!Ie||!Ie.length)return;const Oe=Ie[0];if(["image/gif","image/jpg","image/jpeg","image/png","image/svg+xml"].includes(Oe.type))return fl.A.emit("draft:side-toolbar:image-paste",{target:{files:[Oe]}}),"handled"});const{widget:Q}=W,{textV1:ge}=Q,Me=(0,$e.mx)(ge),Pe=(0,De.n)(Me);this.blockRendererFn=gu({alignmentStore:op.store,resizeableStore:jc.store,blockKeyStore:Bp.store}),this.state={widget:Q,editorState:Pe,readOnly:!1}}componentDidMount(){if(z1.forEach(W=>{W&&W.initialize&&typeof W.initialize=="function"&&W.initialize(this.getPluginMethods())}),MB.f.editing=!0,MB.f.editingRichText=!0,fl.A.on("draft:design:editorState:selection",this.handleEditorSelection),this.focus(),this.editorRef){const W=document.querySelector('.public-DraftEditor-content[contenteditable="true"]');W&&W.addEventListener("compositionstart",this.handleCompositionstart)}}componentWillUnmount(){if(z1.forEach(W=>{W&&W.unmounted&&typeof W.unmounted=="function"&&W.unmounted()}),this.setState=()=>!1,MB.f.editing=!1,MB.f.editingRichText=!1,fl.A.off("draft:design:editorState:selection",this.handleEditorSelection),this.editorRef){const W=document.querySelector('.public-DraftEditor-content[contenteditable="true"]');W&&W.removeEventListener("compositionstart",this.handleCompositionstart)}}}const{handleKeyCommand:fu,handleReturn:Vu,keyBindingFn:Hu}=Bp,W1=[pi.A,op,jc,Bp];class Ku extends Qh{constructor(W){super(W),(0,r.A)(this,"editorRef",null),(0,r.A)(this,"containerRef",null),(0,r.A)(this,"handleCompositionstart",()=>{const{editorState:Ie}=this.state,Oe=(0,Ts.AR)(Ie);this.setState({editorState:Oe})}),(0,r.A)(this,"getReadOnly",()=>this.state.readOnly),(0,r.A)(this,"setReadOnly",Ie=>{Ie!==this.state.readOnly&&this.setState({readOnly:Ie})}),(0,r.A)(this,"getPluginMethods",()=>({setEditorState:this.handleEditorStateChange,getEditorState:this.getEditorState,getEditorRef:this.getEditorRef,getWidget:this.getWidget,getReadOnly:this.getReadOnly,setReadOnly:this.setReadOnly})),(0,r.A)(this,"handleEditorStateChange",(Ie,Oe)=>{var Ke;const{isNeedMigrateLinkItalic:ot,dispatch:rt,widget:lt}=this.props;let wt=Ie;const so=(0,Y.dM)(wt.getCurrentContent()),bo=(0,$e.qn)(so);wt=(0,Rc.Jk)(so,wt,lt.type),this.setState({editorState:wt},()=>{W1.forEach(Pn=>{Pn.onChange&&(wt=Pn.onChange(wt))})}),(Ke=MB)==null||Ke.action("set:rich:text:editor:state",{richTextEditorState:wt});const tn=(Oe==null?void 0:Oe.isImageInserted)?200:16.7;setTimeout(()=>{const{widget:{key:Pn,textV1:un,textV0:{padding:Xn},h:ws,type:zs}}=this.props;let fn=!1,Ds=!1;(0,Te.eI)(bo,un)||(fn=!0);let gi=ws;if(this.editorRef&&this.editorRef.editor&&this.editorRef.editor.editorContainer){gi=this.editorRef.editor.editorContainer.offsetHeight||0;const{showAuthor:Ni,showTime:ba}=this.props.widget.info;(Ni||ba)&&(gi+=28),gi=gi+(Xn||0)*2,gi<100&&(gi=100),gi>ws&&(Ds=zs===te.x.WTear?(0,f1.SW)(gi)&&(0,f1.qz)(gi)!==ws:!0)}if(!fn&&!Ds)return;const hi={key:Pn,textV1:void 0,h:void 0,stickyH:void 0,isNeedMigrateLinkItalic:ot};fn&&(hi.textV1=bo),zs===te.x.WTear?(0,f1.SW)(gi)&&(hi.stickyH=(0,f1.qz)(gi)):Ds&&(hi.h=gi),rt({type:u0.k.EntryKey["entry:draft:sticky:update"],payload:hi})},tn)}),(0,r.A)(this,"linkCallback",Ie=>{let{entityKey:Oe,style:Ke,decoratedText:ot,url:rt,blockKey:lt,start:wt,end:so}=Ie;const{widget:bo,isCreatingLink:Ro,dispatch:tn}=this.props;Ro||(tn({type:u0.k.EntryKey["entry:draft:activeEntityKey:update"],payload:{activeEntityKey:Oe}}),fl.A.emit("draft:link-toast:view",{widget:bo,linkTitle:ot,linkTarget:rt,style:Ke,blockKey:lt,start:wt,end:so}))}),(0,r.A)(this,"handleCustomStyleFn",(Ie,Oe)=>{const Ke=Oe.getText();if((Ie==null?void 0:Ie.size)===0&&!(Ke!=null&&Ke.length)){const{editorState:ot}=this.state,rt=ot.getCurrentInlineStyle();return(0,Yi.Od)(rt)}return{}}),(0,r.A)(this,"handleMouseDown",Ie=>{const{dispatch:Oe}=this.props;if(Ie.button===2){if(Ie.target.tagName==="IMG")return;Oe({type:"entry:contextmenu:withtype",payload:{position:{top:Ie.clientY,left:Ie.clientX},type:"text"}})}}),(0,r.A)(this,"handleCopy",async(Ie,Oe)=>{const{editorState:Ke}=this.state,ot=(0,qe.vd)({editorState:Ke,richTextV1:void 0}),rt=(0,Ln.u0)(Ke);Oe.preventDefault(),Oe.clipboardData.setData("text/html",ot),Oe.clipboardData.setData("text/plain",rt),await(0,Rp.$H)({hasNotice:!1})?await(0,O0.NO)({html:ot}):await(0,Rp.qG)({html:ot,selectionText:rt})}),(0,r.A)(this,"handleCut",async(Ie,Oe)=>{const{widget:Ke}=this.props,{editorState:ot}=this.state,rt=(0,Ln.u0)(ot),lt=(0,qe.ag)({editorState:ot,richTextV1:void 0,w:Ke.w,h:Ke.h});Oe.preventDefault(),Oe.clipboardData.setData("text/html",lt),Oe.clipboardData.setData("text/plain",rt),await(0,Rp.$H)({hasNotice:!1})?(0,O0.NO)({html:lt}):(0,Rp.qG)({html:lt,selectionText:rt})});const{widget:Q}=W,{textV1:ge}=Q,Me=(0,$e.mx)(ge);let Pe=(0,De.n)(Me);W.isNeedMigrateLinkItalic&&(Pe=(0,u1.cA)({textV1:ge,editorState:Pe})),this.blockRendererFn=gu({alignmentStore:op.store,resizeableStore:jc.store,blockKeyStore:Bp.store}),this.state={widget:Q,editorState:Pe,readOnly:!1}}componentDidUpdate(W){const{widget:{textV0:Q}}=W,{widget:{textV1:ge,textV0:Me}}=this.props;if(!Ki()(Q,Me)){const Pe=(0,$e.mx)(ge);this.setState({editorState:(0,De.n)(Pe)})}}componentDidMount(){if(W1.forEach(W=>{W&&W.initialize&&typeof W.initialize=="function"&&W.initialize(this.getPluginMethods())}),MB.f.editing=!0,MB.f.editingRichText=!0,fl.A.on("draft:design:editorState:selection",this.handleEditorSelection),this.focus(),this.props.is4Tear&&this.containerRef.addEventListener("wheel",this.handleWheel,{passive:!1}),this.handleEditorStateChange(Y.$t.moveFocusToEnd(this.state.editorState)),this.editorRef){const W=document.querySelector('.public-DraftEditor-content[contenteditable="true"]');W&&W.addEventListener("compositionstart",this.handleCompositionstart)}}componentWillUnmount(){if(W1.forEach(W=>{W&&W.unmounted&&typeof W.unmounted=="function"&&W.unmounted()}),this.setState=()=>!1,MB.f.editing=!1,MB.f.editingRichText=!1,fl.A.off("draft:design:editorState:selection",this.handleEditorSelection),this.props.is4Tear&&this.containerRef.removeEventListener("wheel",this.handleWheel,{passive:!1}),this.editorRef){const W=document.querySelector('.public-DraftEditor-content[contenteditable="true"]');W&&W.removeEventListener("compositionstart",this.handleCompositionstart)}}render(){const{activeEntityKey:W,is4Tear:Q,widget:ge,isNeedMigrateLinkItalic:Me,dispatch:Pe}=this.props,{editorState:Ie}=this.state,Oe=ge["!liVersion"],Ke=[{strategy:qi,component:or,props:{callback:this.linkCallback,version:Oe,isNeedMigrateLinkItalic:Me,dispatch:Pe}}];let ot=!1;(ge.type==="wTear"||ge.type==="wSticky")&&(ot=ge["!haVersion"]!==3);const rt=ge.textV0.horizontalAlign,lt=Hr(ot,rt);return(0,y.jsx)(B2.w,{className:u()("editing",Q&&"wTear"),activeKey:W,ref:this.setContainerEditorRef,onClick:this.handleEditorClick,onMouseDown:this.handleMouseDown,children:(0,y.jsx)(Ms.c,{preserveSelectionOnBlur:!0,wrapperClassName:"draft-common-editor-wrapper",editorClassName:"draft-common-editor",ref:this.setEditorRef,editorState:Ie,onEditorStateChange:this.handleEditorStateChange,blockStyleFn:lt,customDecorators:Ke,customStyleMap:{...ki.a2},customBlockRenderFunc:this.blockRendererFn.bind(this,this.getPluginMethods()),keyBindingFn:Hu.bind(this,this.getPluginMethods()),handleKeyCommand:fu.bind(this,this.getPluginMethods()),handleReturn:Vu.bind(this,this.getPluginMethods()),handlePastedText:this.handlePastedText,handlePastedFiles:this.handlePastedFiles,customStyleFn:this.handleCustomStyleFn,onCopy:this.handleCopy,onCut:this.handleCut,textAlign:rt})})}}var yu=e(8723);class K2 extends x.PureComponent{constructor(W){super(W),(0,r.A)(this,"handleDocDown",Q=>{const{item:ge,linkToastShow:Me,dispatch:Pe}=this.props;if(!Q.target.closest(".draft-link-toast")&&Me){["INPUT","LABEL","TEXTAREA"].includes(Q.target.tagName)||(Q.preventDefault(),Q.stopPropagation()),fl.A.emit("draft:link-toast:quit");return}if(!(Q.target.closest('.public-DraftEditor-content[contenteditable="true"] .draft-image-atomic')||Q.target.closest(".image-content"))){if(Q.target.closest(".draft-rich-editor-wrapper")){Q.stopPropagation();return}if(Q.target.closest("#text-settings")||Q.target.closest("#text-settings-font-menu")||Q.target.closest(".DropdownMenuBase")||Q.target.closest('[type="color-panel"]')||Q.target.closest(".--mb--color-picker")||Q.target.closest(".draft-inline-toolbar")||Q.target.closest(".draft-alignment-toolbar")||Q.target.closest(".image-preview-modal-portal")||Q.target.closest(".side-sticky-content-menu")||Q.target.closest(".context-menu-mask")){Q.preventDefault();return}if(Q.target.closest(".draft-link-toast")){["INPUT","LABEL","TEXTAREA"].includes(Q.target.tagName)||Q.preventDefault();return}if(Me){Q.preventDefault(),Q.stopPropagation();return}Q.target.closest("#ai-semantic-modal")||((0,j.ay)(ge,"remove"),Pe({type:"set:editing:cid",payload:{cid:""}}),Pe({type:"colorpanel:set:attr",payload:{attr:void 0}}),Pe({type:"colorpanel:set:attrPanel",payload:{attrPanel:void 0}}))}}),(0,r.A)(this,"getPositionV0",()=>{const{item:Q,tearOffset:ge,scale:Me}=this.props;if(!Q)return{left:0,top:0};if(Q.type===te.x.WTear)return(0,f1._l)(Q.widget,Me,ge);{const{x:Pe,y:Ie,w:Oe,h:Ke}=sdkStore.getHotBound(Q.key);return{left:Pe-Oe*.5,top:Ie-Ke*.5}}}),(0,r.A)(this,"handleMouseDown",Q=>{(0,M.kI)(Q)}),this.state={freshCount:0,position:{top:0,left:0,width:0,height:0}}}render(){const{item:W,activeEntityKey:Q,isCreatingLink:ge,dispatch:Me}=this.props;if(!W)return null;const{widget:Pe}=W;if(!Pe)return null;const Ie=W.widget["!liVersion"]===1,Oe={position:"absolute",pointerEvents:"auto",...this.getPositionV0(),zIndex:99999};let Ke=Pe;const ot=W.type===te.x.WTear;return ot&&(Ke={...Pe,h:Pe.stickyH,w:280}),(0,y.jsxs)("div",{className:u()("draft-rich-editor-wrapper",{STSticky:ot}),style:Oe,"data-cid":W.key,onMouseDown:this.handleMouseDown,children:[(0,y.jsx)(yu.A,{widget:Ke,isEditingArea:!0,hasPositionStyle:!1,children:(0,y.jsx)(Ku,{is4Tear:ot,stickyH:Ke.h,widget:Ke,activeEntityKey:Q,isCreatingLink:ge,dispatch:Me,isNeedMigrateLinkItalic:Ie})}),(0,y.jsx)(_.A,{target:document,onMouseDown:(0,_.t)(this.handleDocDown)})]})}}const Gu=K2,G2=(0,m.Mz)([g.lh,b.RX],(he,W)=>{const Q=W.widgetStore.getNode(he);return Q&&(0,Al.e_)(Q.type)?Q:null}),Yu=(0,m.Mz)([G2,u0.k.Query.getLinkToastShow,u0.k.Query.getActiveEntityKey,z.yc,u0.k.Query.getIsCreatingLink,g.X_],(he,W,Q,ge,Me,Pe)=>({item:he,linkToastShow:W,activeEntityKey:Q,tearOffset:ge,isCreatingLink:Me,scale:Pe})),Y2=(0,o.Ng)(he=>Yu(he))(Gu),Zu=he=>{var W;if(!he)return null;const Q=sdkStore.getHotItem(he);if(!Q)return null;switch((0,Al.wz)(Q==null||(W=Q.hotAttr)==null?void 0:W.type)){case Al.N1.Text:return(0,y.jsx)(Hn,{});case Al.N1.RichDraft:return(0,y.jsx)(rh,{});case Al.N1.Draft:return(0,y.jsx)(Y2,{});default:return null}},Z2=(0,m.Mz)([g.lh,q.A6],(he,W)=>({editingKey:he||W})),lh=he=>{const{editingKey:W}=he;return W?Zu(W):null},y1=(0,o.Ng)(he=>Z2(he))(lh);var x1=e(69018),ch=e.n(x1);const V1=(0,m.Mz)([b.VH,p.jI,b.UV],function(he,W,Q){if(W===void 0&&(W=""),!he)return null;let ge=he;if(W&&(0,Jt.OO)(ge)){const Me=(0,Jt.QL)(ge),Pe=ch()(Me.slice(0,-1),Ie=>W.includes(Ie));Pe.length>0?ge=(0,Jt.iK)(Pe,Me.at(-1)):ge=Me.at(-1)}return Q.getNode(ge)}),X2=fe.Ay.div.withConfig({displayName:"styles__StyledEchoArea",componentId:"sc-n2n1i2-0"})(["position:absolute;width:100%;height:100%;z-index:1;pointer-events:none;"]),Hm=(0,m.Mz)([g.X_,H,V1,p.jx],(he,W,Q,ge)=>{if(W||!Q||(Q==null?void 0:Q.type)===te.x.WTear)return{isShow:!1};const Me=ge===N.qi.OnlyView;return{isShow:!0,tree:Q,scale:he,onlyView:Me,showEchoLayer:!0}}),Km=he=>{let{isShow:W,...Q}=he;return W?(0,y.jsx)(X2,{children:(0,y.jsx)(Rt,{...Q})}):null},Xu=(0,o.Ng)(he=>Hm(he))(Km);var Qu=e(36820),Q2=e(4114),Oc=e(86075);const J2=fe.Ay.div.withConfig({displayName:"styles__StyledGestures",componentId:"sc-1akurz2-0"})(["width:166px;display:flex;flex-direction:column;padding:8px;background-color:",";color:",";border-radius:8px;border:1px solid ",";box-shadow:0 2px 7px 0 rgba(0,0,0,0.26),0 12px 36px 0 rgba(0,0,0,0.1);li{list-style:none;}.link-guesture-list{width:134px;margin:0 auto 9px;overflow:unset;background-color:",";border:1px solid ",";border-radius:6px;.radio-option.active{color:#fff;background:",";}.radio-option{color:",";&.disabled{background-color:inherit;color:#7d8694;}}}.gesture{height:28px;display:flex;align-items:center;cursor:pointer;padding-left:40px;transition:all 0.2s ease-out;position:relative;.svg-icon{width:16px;height:16px;margin-right:7px;&.checked{position:absolute;left:16px;}}&:not(.disabled):hover{background:",";}&.disabled{color:",";cursor:not-allowed;}}.shake-divider{pointer-events:none;margin:8px 0;height:1px;background:",";}li.gesture:not(.disabled) .display-gesture{color:",";}li{border-radius:4px;}"],he=>he.theme.color_bg_white,he=>he.theme.color_text_L1,he=>he.theme.color_bg_border_01,he=>he.theme.color_bg_white,he=>he.theme.color_bg_border_01,he=>he.theme.color_proto,he=>he.theme.color_text_L3,he=>he.theme.color_btn_secondary_hover,he=>he.theme.color_text_disabled01,he=>he.theme.color_bg_border_01,he=>he.theme.color_text_L1),xu=["tap","left","right","up","down","hold","dtap","shake-divider","shake"],v1=["click","dbclick","longpress","mouseIn","mouseOut","rightClick"],vu=["timer"],bu=[{label:(0,y.jsx)(vo.C,{name:"icon/gesture"}),value:"gesture"},{label:(0,y.jsx)(vo.C,{name:"icon/mouse/arrow"}),value:"arrow"},{label:(0,y.jsx)(vo.C,{name:"icon/timer"}),value:"timer"}],Ju=(0,Q2.R)(()=>bu.map(he=>{let{label:W,value:Q}=he;return"timer".includes(Q)?{label:W,value:Q,disabled:!0,tip_title:I18N.SettingPanel.link_tips}:{label:W,value:Q}}));class $2 extends x.PureComponent{constructor(W){super(W),(0,r.A)(this,"handleSelect",Q=>{if(Q.currentTarget.classList.contains("disabled"))return;const{gesture:ge}=Q.currentTarget.dataset;this.props.onSelect(ge)}),(0,r.A)(this,"handleGesturesListChange",Q=>{this.setState({currentGestureList:Q})}),this.state={currentGestureList:"gesture"}}render(){const{isGlobalLink:W,currentGesture:Q}=this.props,{currentGestureList:ge}=this.state;let Me=null;ge==="gesture"?Me=xu:ge==="arrow"?Me=v1:ge==="timer"&&(Me=vu);const Pe=W?bu:Ju();return(0,y.jsxs)(J2,{children:[(0,y.jsx)(Oc.A,{options:Pe,className:"link-guesture-list",value:ge,handleChange:this.handleGesturesListChange}),(0,y.jsx)("ul",{children:Me.map(Ie=>{const Oe=Ie===Q,Ke=Ie==="shake-divider",ot=u()({gesture:Ie!=="shake-divider",current:Oe,disabled:!W&&["shake","timer"].includes(Ie),"shake-divider":Ke});return(0,y.jsxs)("li",{"data-gesture":Ie,className:ot,"aria-label":I18N.SettingPanel.link_tips,"data-microtip-position":"left",role:!W&&["shake","timer"].includes(Ie)?"tooltip":"",onClick:this.handleSelect,children:[Oe&&(0,y.jsx)(vo.C,{name:"common/checked",className:"checked display-gesture"}),!Ke&&(0,y.jsx)(vo.C,{name:"icon/gesture/"+Ie,className:"icon_gesture_"+Ie+" display-gesture"}),!Ke&&(0,y.jsx)("p",{children:I18N.SettingPanel.g[Ie]})]},Ie)})})]})}}const{LinkToCanvas:H1,LinkToSourceCanvas:$u,SetBasketCanvas:q2,OpenExternalUrl:em,ScrollTo:Cu,SetVisibility:qu,OpenOverlay:Gm,SwapOverlay:tm,CloseOverlay:om}=Hd.O2;let F0=function(he){return he.settings="\u5C5E\u6027\u9762\u677F\u8BBE\u7F6E",he.handleLinkPage="\u624B\u67C4\u94FE\u63A5\u753B\u5E03(\u5217\u8868)",he.handleLinkScreen="\u624B\u67C4\u94FE\u63A5\u9875\u9762",he.handleLinkScreenList="\u624B\u67C4\u94FE\u63A5\u9875\u9762(\u5217\u8868)",he.handleLinkScreenState="\u624B\u67C4\u94FE\u63A5\u72B6\u6001",he.handleLinkScreenStateList="\u624B\u67C4\u94FE\u63A5\u72B6\u6001(\u5217\u8868)",he.handleLinkPrev="\u8FDE\u7EBF\u8FD4\u56DE\u6765\u6E90\u9875\u9762",he.handleLinkWidget="\u624B\u67C4\u94FE\u63A5\u5143\u7D20",he.handleLinkOverlay="\u624B\u67C4\u94FE\u63A5\u5BB9\u5668",he.handleLinkOverlayClose="\u8FDE\u7EBF\u5173\u95ED\u5F39\u7A97",he}({}),dh=function(he){return he.pageCanvas="\u9875\u9762",he.basketCanvas="\u52A8\u6001\u7EC4\u4EF6",he.muBan="\u6BCD\u7248",he}({});var b1=function(he){return he.handle="\u624B\u578B",he.click="\u5355\u51FB",he.timer="\u5B9A\u65F6\u5668",he}(b1||{});const e2={[H1]:"\u8DF3\u8F6C\u9875\u9762",[em]:"\u8DF3\u8F6C\u8D85\u94FE\u63A5",[$u]:"\u8FD4\u56DE\u6765\u6E90\u753B\u677F",[q2]:"\u5207\u6362\u7EC4\u4EF6\u72B6\u6001",[Cu]:"\u6EDA\u52A8\u5230",[qu]:"\u663E\u793A/\u9690\u85CF",[Gm]:"\u6253\u5F00\u5F39\u7A97",[tm]:"\u5207\u6362\u5F39\u7A97",[om]:"\u5173\u95ED\u5F39\u7A97"},nm=[...xu,...v1,...vu],yo=he=>{let{add_mode:W,element_type:Q,link:ge,event_number:Me,canvas_type:Pe}=he;const{interactionType:Ie,interactionTrigger:Oe,transition:Ke}=ge,ot=nm.includes(Oe)?xu.includes(Oe)?b1.handle:v1.includes(Oe)?b1.click:b1.timer:"",rt=I18N.SettingPanel.g[Oe],lt=Me>=10?">=10":""+Me,wt=Ie===Cu?ge.scrollToDir==="vertical"?"\u5782\u76F4\u6EDA\u52A8":ge.scrollToDir==="horizontal"?"\u6C34\u5E73\u6EDA\u52A8":"\u53CC\u5411\u6EDA\u52A8":e2[Ie],so={add_mode:W,element_type:Q,event_behavior:wt,event_trigger_mode:ot+"-"+rt,state_animation:"",page_animation:Ke==="auto"?"\u667A\u80FD\u52A8\u753B":"\u65E0\u6548\u679C",event_number:lt,canvas_type:Pe};(0,Qu.kH)("event_set_V8",so),gp.Y4.editProjectNew("\u8BBE\u7F6E\u4E8B\u4EF6")},Ml=he=>{let{add_mode:W,link:Q,widgetNode:ge,isEditGlobalLink:Me,eventNumber:Pe,canvas_type:Ie}=he;const Oe=Me?"\u5168\u5C40\u94FE\u63A5":ge.type==="group"?"\u7EC4\u5408":ge.type==="lr"?"\u94FE\u63A5\u533A\u57DF":ge.type==="sticky"?"\u6279\u6CE8":ge.type==="panel"?"\u52A8\u6001\u7EC4\u4EF6":(0,Jt.OO)(ge.key)?"\u52A8\u6001\u7EC4\u4EF6\u5185\u5143\u7D20":"\u5176\u4ED6";yo({add_mode:W,element_type:Oe,link:Q,event_number:Pe,canvas_type:Ie})};var Zd=e(77015),Jh=e(44057),m0=e(35332),wu=e(75391),sm=e(48590);const im=(0,fe.Ay)(Jh.Ay).withConfig({displayName:"styles__StyledLinkDesignContextMenu",componentId:"sc-grl05a-0"})(["",";> ul{max-width:240px;width:max-content;li{a{span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}}}"],sm.ZJ),t2=fe.Ay.div.withConfig({displayName:"styles__StyledLinkDesign",componentId:"sc-grl05a-1"})(["position:fixed;z-index:2;pointer-events:auto;&.is-dragging{z-index:200;pointer-events:none;.line{border-color:#8d9ea7;}.handler{color:#8d9ea7;}}&.is-active{.line{border-color:#298df8;}.handler{color:#298df8;}}&.shield-corner-events{pointer-events:none;}&.hide{display:none;}.line{position:absolute;top:0;left:0;width:26px;border-top:2px solid #c8cdd0;transform-origin:left center;}.handler{position:absolute;display:flex;justify-content:center;align-items:center;font-size:18px;width:1em;height:1em;margin-top:-0.5em;margin-left:-0.5em;background:white;color:#c8cdd0;border:2px solid #c8cdd0;border-radius:50%;cursor:grab;.icon{font-size:12px;}}"]);var ph=e(18578);const qd={isDragging:!1,isActive:!1,deltaX:0,deltaY:0,isShowContextMenu:!1,mouseX:0,mouseY:0,targetCid:"",targetPanel:void 0,linkTargetType:void 0,canvasList:[]};var am=function(he){return he.left="left",he.right="right",he}(am||{});class o2 extends x.PureComponent{constructor(W){super(W),(0,r.A)(this,"highlight",Q=>{const{dispatch:ge}=this.props;ge({type:"links:singleSelectLink:update",payload:{singleSelectLink:Q}})}),(0,r.A)(this,"handleDown",Q=>{var ge;Q.stopPropagation();const{rootScreenCid:Me,selectedItems:Pe,editingPanelCid:Ie,isEditingCombo:Oe,dispatch:Ke}=this.props;Ke({type:"artboard:update:state",payload:{isDragLink:!0}}),this.setState({...qd,isDragging:!0});const ot=Q.clientX,rt=Q.clientY;let lt,wt,so;const bo=sdkStore.locUpColdCanvasKey(((ge=Pe[0])==null?void 0:ge.cid)||""),Ro=Ie?sdkStore.locUpColdCanvasKey(Ie):null;let tn=!1,Pn=[];Ke(ph.R7.command.clearAllCommand({}));const un=ws=>{const zs=ws.clientX-ot,fn=ws.clientY-rt;lt=null;const Ds=ws.target.closest(".interactive-target-hotspot");if(Ds!==null)switch(tn=!0,lt=Ds,wt=lt.dataset.interactiveTargetType,so=lt.dataset.interactiveTargetKey,Pn=(0,wu.Y2)(so),Number(wt)){case Dl.E.canvasStateList:case Dl.E.overlay:case Dl.E.canvas:{bo===so&&(tn=!1);break}case Dl.E.page:{var gi;const hi=((gi=Pn)==null?void 0:gi.length)===0;(Oe||hi)&&(tn=!1);break}case Dl.E.canvasList:{const hi=sdkStore.getHotItem(so);(bo===so||Ro===so||!hi)&&(tn=!1);break}}else tn=!1;this.setState({deltaX:zs,deltaY:fn,isActive:tn})},Xn=ws=>{const{editingPanelCid:zs,isEditingMuban:fn,dispatch:Ds}=this.props;if(Ds({type:"artboard:update:state",payload:{isDragLink:!1}}),document.removeEventListener("mousemove",un),document.removeEventListener("mouseup",Xn),!lt||!tn){this.setState(qd);return}switch(Number(wt)){case Dl.E.widget:case Dl.E.group:{const hi=this.state.deltaX,Ni=this.state.deltaY;this.setState({...qd,isActive:!0,isDragging:!0,deltaX:hi,deltaY:Ni,isShowContextMenu:!0,mouseX:ws.clientX+5,mouseY:ws.clientY,linkTargetType:Dl.E.widget,targetCid:so});break}case Dl.E.panel:{const hi=this.state.deltaX,Ni=this.state.deltaY,ba=sdkStore.getHotItem(so);this.setState({...qd,isActive:!0,isDragging:!0,deltaX:hi,deltaY:Ni,isShowContextMenu:!0,mouseX:ws.clientX+5,mouseY:ws.clientY,linkTargetType:Dl.E.panel,targetCid:so,targetPanel:ba});break}case Dl.E.canvasStateList:{this.setState({...qd,linkTargetType:Dl.E.canvasStateList});const hi={key:(0,m0.cF)("ita"),interactionType:3,interactionTrigger:"tap",targetBasketKey:Kd.VZ,targetResCanvasKey:so,transition:"auto",transitionDuration:"0.2s",transitionDelay:"0"};Ds(ph.R7.command.linkDesignCreateIta({newInteraction:hi,interactionTrigger:"tap",e:ws}));break}case Dl.E.overlay:{this.setState(qd);let hi;so==="close"?hi={key:(0,m0.cF)("ita"),interactionType:Hd.O2.CloseOverlay,interactionTrigger:"tap"}:hi={key:(0,m0.cF)("ita"),interactionType:Hd.O2.OpenOverlay,interactionTrigger:"tap",targetRBPageKey:Me,targetOverlayKey:so,closeWhenClickingOutside:!0,addBackdrop:!0,backdropColor:102,backdropFilterBlurRadius:0,overlayRelativePos:"ce",overlayRelativePosX:.42,overlayRelativePosY:.42,transition:"none",transitionDuration:"",transitionDelay:"0"},Ds(ph.R7.command.linkDesignCreateIta({newInteraction:hi,interactionTrigger:"tap",e:ws}));break}case Dl.E.canvas:{this.setState(qd);let hi;so==="source"?hi={key:(0,m0.cF)("ita"),interactionType:2,interactionTrigger:"tap",resetTargetCanvasScrollOffset:!0,transition:"none",transitionDuration:"",transitionDelay:"0"}:zs||fn?hi={key:(0,m0.cF)("ita"),interactionType:3,interactionTrigger:"tap",targetBasketKey:Kd.VZ,targetResCanvasKey:so,transition:"auto",transitionDuration:"0.2s",transitionDelay:"0"}:hi={key:(0,m0.cF)("ita"),interactionType:1,interactionTrigger:"tap",targetRBPageKey:Me,targetResCanvasKey:so,resetTargetCanvasScrollOffset:!0,transition:"none",transitionDuration:"",transitionDelay:"0"},Ds(ph.R7.command.linkDesignCreateIta({newInteraction:hi,interactionTrigger:"tap",e:ws}));break}case Dl.E.page:{var gi;const hi=((gi=Pn)==null?void 0:gi.length)===0;(Oe||hi)&&!Oe&&hi&&MB.notice({text:"\u8BE5\u753B\u5E03\u65E0\u9875\u9762",type:"warning"});const Ni=this.state.deltaX,ba=this.state.deltaY;this.setState({...qd,isActive:!0,isDragging:!0,deltaX:Ni,deltaY:ba,isShowContextMenu:!0,mouseX:ws.clientX+5,mouseY:ws.clientY,linkTargetType:Dl.E.page,targetCid:so,canvasList:Pn});break}case Dl.E.canvasList:{this.setState({...qd,linkTargetType:Dl.E.canvasList});const hi=sdkStore.getHotItem(so);if(!hi)return;const Ni={key:(0,m0.cF)("ita"),interactionType:1,interactionTrigger:"tap",targetRBPageKey:hi.sup,targetResCanvasKey:so,resetTargetCanvasScrollOffset:!0,transition:"none",transitionDuration:"",transitionDelay:"0"};Ds(ph.R7.command.linkDesignCreateIta({newInteraction:Ni,interactionTrigger:"tap",e:ws}));break}}};document.addEventListener("mousemove",un),document.addEventListener("mouseup",Xn)}),(0,r.A)(this,"linkTrack",(Q,ge)=>{const{selectedTrees:Me,selectedLinks:Pe,isEditingBasket:Ie,isEditingMuban:Oe}=this.props;if(Q){const{linkTargetType:Ke}=this.state,{interactionType:ot}=Q;let rt,lt;switch(ot){case Kd.N_.TYPE.LinkToCanvas:Ke===Dl.E.canvasList?rt=F0.handleLinkScreenList:Ke===Dl.E.page?rt=F0.handleLinkPage:rt=F0.handleLinkScreen;break;case Kd.N_.TYPE.LinkToSourceCanvas:rt=F0.handleLinkPrev;break;case Kd.N_.TYPE.SetBasketCanvas:Ke===Dl.E.canvasStateList?rt=F0.handleLinkScreenStateList:rt=F0.handleLinkScreenState;break;case Kd.N_.TYPE.openOverlay:rt=F0.handleLinkOverlay;break;case Kd.N_.TYPE.closeOverlay:rt=F0.handleLinkOverlayClose;break;default:rt=F0.handleLinkWidget;break}Oe?lt=dh.muBan:Ie?lt=dh.basketCanvas:lt=dh.pageCanvas,ge&&Me!=null&&Me.length&&Ml({link:Q,widgetNode:Me[0],isEditGlobalLink:!1,eventNumber:Pe.length+1,add_mode:rt,canvas_type:lt})}}),(0,r.A)(this,"getContextMenu",()=>{const{selectedItems:Q,editingPanelCid:ge}=this.props,{linkTargetType:Me,targetPanel:Pe,canvasList:Ie}=this.state;let Ke=[this.showHideLinkOption,this.scrollLinkOption];switch(Me){case Dl.E.panel:{const rt=sdkStore.getSubHotItemList(Pe.hotAttr.refRBPageKey).reduce((so,bo)=>(bo.hotAttr.type==="rResCanvas"&&so.push({label:bo.hotAttr.name,onClick:Ro=>this.createPanelStateLink(bo.key,Ro)}),so),[]),wt=[{label:I18N.SettingPanel.first_state,onClick:()=>this.createPanelStateLink(Kd.L8)},{label:I18N.SettingPanel.pre_state,onClick:()=>this.createPanelStateLink(Kd.Gp)},{label:I18N.SettingPanel.next_state,onClick:()=>this.createPanelStateLink(Kd.Oh)},{label:I18N.SettingPanel.last_state,onClick:()=>this.createPanelStateLink(Kd.Hg)},{label:"divider"}].concat(rt);Ke.push({label:I18N.SettingPanel.link_widget_change,children:wt});break}case Dl.E.page:{var ot;const rt=ge?sdkStore.locUpColdCanvasKey(ge):null,lt=sdkStore.locUpColdCanvasKey((ot=Q[0])==null?void 0:ot.cid,!0);Ke=Ie.map(wt=>{let{key:so,hotAttr:bo}=wt;return{label:bo.name,disabled:so===lt||so===rt,onClick:Ro=>this.createCanvasLink(so,Ro)}});break}}return Ke}),(0,r.A)(this,"createPanelStateLink",Q=>{const{dispatch:ge}=this.props,{targetCid:Me,mouseX:Pe,mouseY:Ie}=this.state,Oe={key:(0,m0.cF)("ita"),interactionType:3,interactionTrigger:"tap",targetBasketKey:Me,targetResCanvasKey:Q,transition:"auto",transitionDuration:"0.2s",transitionDelay:"0"},Ke={clientX:Pe,clientY:Ie};ge(ph.R7.command.linkDesignCreateIta({newInteraction:Oe,interactionTrigger:"tap",e:Ke}))}),(0,r.A)(this,"createScrollLink",Q=>{const{dispatch:ge}=this.props,{targetCid:Me,mouseX:Pe,mouseY:Ie}=this.state,Oe={key:(0,m0.cF)("ita"),interactionType:5,interactionTrigger:"tap",targetWidgetKey:Me,scrollToOffsetX:0,scrollToOffsetY:0,scrollToDir:Q,transition:"auto",transitionDelay:"0",transitionDuration:"0.2s"},Ke={clientX:Pe,clientY:Ie};ge(ph.R7.command.linkDesignCreateIta({newInteraction:Oe,interactionTrigger:"tap",e:Ke}))}),(0,r.A)(this,"createVisibilityLink",Q=>{const{dispatch:ge}=this.props,{targetCid:Me,mouseX:Pe,mouseY:Ie}=this.state,Oe={key:(0,m0.cF)("ita"),targetWidgetKey:Me,interactionType:6,interactionTrigger:"tap",...Q==="toggleVisibility"?{actionType:Q,setVisibleTransition:"auto",setHiddenTransition:"auto",setHiddenTransitionDuration:"0.2s",setVisibleTransitionDuration:"0.2s",transitionDelay:"0"}:Q==="setVisible"?{actionType:Q,setVisibleTransition:"auto",setVisibleTransitionDuration:"0.2s",transitionDelay:"0"}:{actionType:Q,setHiddenTransition:"auto",setHiddenTransitionDuration:"0.2s",transitionDelay:"0"}},Ke={clientX:Pe,clientY:Ie};ge(ph.R7.command.linkDesignCreateIta({newInteraction:Oe,interactionTrigger:"tap",e:Ke}))}),(0,r.A)(this,"createCanvasLink",(Q,ge)=>{const{targetCid:Me}=this.state,{dispatch:Pe}=this.props,Ie={key:(0,m0.cF)("ita"),interactionType:Hd.O2.LinkToCanvas,interactionTrigger:"tap",targetRBPageKey:Me,targetResCanvasKey:Q,resetTargetCanvasScrollOffset:!0,transition:"auto",transitionDelay:"0",transitionDuration:"0.2s"};Pe(ph.R7.command.linkDesignCreateIta({newInteraction:Ie,interactionTrigger:"tap",e:ge}))}),this.state=qd,this.showHideLinkOption={label:I18N.SettingPanel.show_hide,children:[{label:I18N.SettingPanel.show,onClick:Q=>this.createVisibilityLink("setVisible",Q)},{label:I18N.SettingPanel.hide,onClick:Q=>this.createVisibilityLink("setHidden",Q)},{label:I18N.SettingPanel.switch,onClick:Q=>this.createVisibilityLink("toggleVisibility",Q)}]},this.scrollLinkOption={label:I18N.SettingPanel.roll_to,children:[{label:I18N.SettingPanel.scroll_to_vertical,onClick:Q=>this.createScrollLink("vertical",Q)},{label:I18N.SettingPanel.scroll_to_horizontal,onClick:Q=>this.createScrollLink("horizontal",Q)},{label:I18N.SettingPanel.scroll_to_both,onClick:Q=>this.createScrollLink("both",Q)}]}}render(){const{showLinkDesign:W,placement:Q,startX:ge,startY:Me,canvasLeft:Pe,canvasTop:Ie,isQuickCreateWidget:Oe}=this.props;if(!W)return null;const{isDragging:Ke,isActive:ot,deltaX:rt,deltaY:lt,isShowContextMenu:wt,mouseX:so,mouseY:bo}=this.state,Ro={left:ge+Pe,top:Me+Ie},Pn={x:ge+(Q==="left"?-26:26)+rt,y:Me+lt},un={left:Pn.x-ge,top:Pn.y-Me},Xn=(0,Zd.Xb)(Pn.x-ge,Pn.y-Me),ws=(0,Zd.FP)(Pn.x-ge,Pn.y-Me),zs={width:Xn,transform:"rotate("+ws+"deg)"},fn=u()("design",{"is-dragging":Ke,"is-active":ot,"shield-corner-events":Oe});return(0,y.jsx)(y.Fragment,{children:(0,y.jsxs)(t2,{id:"link-design",className:fn,style:Ro,children:[(0,y.jsx)("div",{className:"line",style:zs}),(0,y.jsx)("div",{className:"handler",style:un,onMouseDown:this.handleDown,children:(0,y.jsx)(vo.C,{name:"new_replace/thunder"})}),wt&&(0,y.jsx)(im,{position:{top:bo,left:so},className:u()("size-small"),onClose:()=>{this.setState(qd)},children:this.getContextMenu().map((Ds,gi)=>Ds.children?(0,y.jsx)(Jh.Dr,{text:Ds.label,dataIndex:gi,isAiry:!0,children:Ds.children.map((hi,Ni)=>hi.label==="divider"?(0,y.jsx)(Jh.cG,{},Ni):(0,y.jsx)(Jh.Dr,{text:hi.label,dataIndex:Ni,onClick:hi.onClick},Ni))},gi):(0,y.jsx)(Jh.Dr,{text:Ds.label,dataIndex:gi,disabled:Ds.disabled,onClick:Ds.onClick},gi))})]})})}}var n2=e(8508);const C1=(0,m.Mz)([ae.x$,K.c,g.dK,g.pO,g.Jv,b.FG,g.eo,C.r,p.lY,g.M_,fi.X.query.getIsShallowEditing,p.jx],(he,W,Q,ge,Me,Pe,Ie,Oe,Ke,ot,rt,lt)=>{let{isEditingCombo:wt}=Oe;const so=he.length===1&&he[0].cid===Ie;if(he.length===1&&he[0].widget.type===te.x.WCode||so||Ke||lt===N.qi.OnlyView)return!1;const Ro=he.length===0,tn=W&&(0,Al.AG)(W),Pn=Q||ge||Me||Pe,un=wt?!1:he.some(fn=>!sdkStore.locUpHotCanvasKey(fn.key)),Xn=he.some(fn=>[te.x.wFlowClosed,te.x.WFlowOpened].includes(fn.type)),ws=he.some(fn=>fn.type===te.x.WSwimlane)&&rt,zs=he.some(fn=>[te.x.WSticky,te.x.WTear].includes(fn.type));return!(Ro||tn||Pn||un||Xn||ws||zs||!Ro&&ot)}),rm=(0,m.Mz)([C1,g.eo,g.X_,ae.x$,g.wq,g.YT,b.UV,ae.QA,p.jI,n2.V5,C.r,g.Pz],(he,W,Q,ge,Me,Pe,Ie,Oe,Ke,ot,rt,lt)=>{let{isEditingCombo:wt,isEditingMuban:so,isEditingBasket:bo}=rt;if(!he||(Oe==null?void 0:Oe.length)!==1)return{showLinkDesign:!1};const{canvasTop:Ro,canvasLeft:tn}=lt,Pn="right",un=ge.length===1&&ge[0].widget.name===te.x.WTable;let Xn,ws;if(he){const fn=Q/100,Ds=ge.reduce((fa,Ka)=>[...fa,Ka.key],[]),[gi,hi,Ni,ba]=Ds.reduce((fa,Ka)=>(0,Ct.il)(fa,sdkStore.getHotAABB(Ka)),(0,Ct.F1)());Xn=Ni*fn,ws=(un?hi:.5*(hi+ba))*fn}return{showLinkDesign:he,rootScreenCid:W,placement:Pn,startX:Xn,startY:ws,isQuickCreateWidget:!!Me,currentProjectMeta:Pe,widgetStore:Ie,selectedItems:Oe,editingPanelCid:Ke,selectedTrees:ge,selectedLinks:ot,isEditingCombo:wt,isEditingMuban:so,isEditingBasket:bo,canvasTop:Ro,canvasLeft:tn}}),s2=(0,o.Ng)(he=>rm(he))(o2);var Su=e(53436),i2=e(5063);class Ym extends x.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleRenderArea",W=>{if(!W||sdkStore.isTrashed(W)||!sdkStore.getHotItem(W))return null;const{scale:Q,findSelectWidgetCid:ge}=this.props,{x:Me,y:Pe,r:Ie,w:Oe,h:Ke}=sdkStore.getHotBound(W),ot=Q/100,rt={width:Oe*ot,height:Ke*ot,transform:"translate("+(Me-Oe*.5)*ot+"px,"+(Pe-Ke*.5)*ot+"px) rotate("+Ie+"deg)",transformOrigin:"center center"},lt=ge===W;return(0,y.jsx)(i2.o,{"data-key":W,className:u()({selected:lt}),style:rt})})}render(){const{isShow:W,findReplaceKeys:Q,editingCid:ge,editingEditableWidgetCid:Me,editingTableKey:Pe}=this.props;return W?(0,y.jsx)(i2.O,{children:Q.map(Ie=>ge===Ie||Me===Ie||Pe===Ie?null:this.handleRenderArea(Ie))}):null}}const a2=(0,m.Mz)([g.X_,Su.W,Su.gP,g.lh,p.Pm,gs.tS,gs.nh],(he,W,Q,ge,Me,Pe,Ie)=>{let{findReplaceKeys:Oe}=W;if(!(Oe!=null&&Oe.length))return{isShow:!1};const Ke=Pe&&(Ie==null?void 0:Ie.key);return{isShow:!0,findReplaceKeys:Oe,findSelectWidgetCid:Q,scale:he,editingCid:ge,editingEditableWidgetCid:Me,editingTableKey:Ke}}),lm=(0,o.Ng)(he=>a2(he))(Ym),cm=()=>{var he;const W=(0,o.d4)(r2),{isFocusStickyOffset:Q,selectedItems:ge,editingBasketHotItem:Me,scale:Pe}=W;if(ge.length===0||!(Q&&ge.length===1))return null;let Ie;const Oe=Pe/100,{x:Ke,w:ot,h:rt}=sdkStore.getHotBound(ge[0].key);if((0,Jt.OO)(ge[0].key)){const wt=sdkStore.locUpBasketKey(ge[0].key),{y:so,h:bo}=sdkStore.getHotBound(wt);Ie=so-bo*.5}else{const wt=sdkStore.locUpMainCanvasKey(ge[0].key);if(!wt)return null;const{y:so,h:bo}=sdkStore.getHotBound(wt);if(Me){const{y:Ro}=sdkStore.getHotItem(wt).hotAttr,{y:tn}=sdkStore.getSourceHotItem(wt).hotAttr;Ie=Ro-tn}else Ie=so-bo*.5}const lt={width:ot*Oe,height:rt*Oe,transform:"translate("+(Ke-ot*.5)*Oe+"px,"+(Ie+((he=ge[0])==null?void 0:he.stickyOffset))*Oe+"px)",transformOrigin:"center center"};return(0,y.jsx)(dm,{style:lt})},dm=fe.Ay.div.withConfig({displayName:"StickyVirtualComponent__StyledStickyVirtualComponent",componentId:"sc-1knsrha-0"})(["position:absolute;border:1px solid #5CDDA1;"]),r2=(0,m.Mz)([p.HD,ae.QA,p.PR,g.X_],(he,W,Q,ge)=>({isFocusStickyOffset:he,selectedItems:W,editingBasketHotItem:Q,scale:ge})),l2=fe.Ay.div.withConfig({displayName:"styles__StyledScreenContainer",componentId:"sc-hwjgpp-0"})(["position:absolute;inset:0;width:100%;height:100%;&.is-community-combo-preview{.zoom-area{left:-100px;}}.screen-viewport{position:relative;.zoom-area{position:absolute;top:0;left:0;width:100%;height:100%;transform-origin:center center;#canvas{position:absolute;z-index:1;}}.editing-text-area{pointer-events:none;"," ","}}.screen{position:relative;&::after{content:'';position:absolute;top:0;left:0;right:0;bottom:0;box-shadow:0 1px 2px 0 rgba(0,0,0,0.2);}}.first-page-divider{position:absolute;border-bottom:1px dashed ",";border-right:1px dashed ",";}.canvas-bg-area{position:absolute;top:0;left:0;pointer-events:none;z-index:1;&.shield-corner-events{.slider-wrapper,.resizer{pointer-events:none;}}}.canvas-operation-wrap{pointer-events:auto;}.tree-node{input,label,select,textarea{pointer-events:none;}&.is-dynamic-widget-editing{display:none;}&.is-text-editing{.rich-text:not(.wMTooltip),.text,input,textarea,.line-edit-text-input,.label p{display:none !important;}&.","{.rich-text:not(.wMTooltip),.text,input,textarea,.line-edit-text-input,.label p{display:block !important;visibility:hidden;opacity:0;pointer-events:none;}}.flow-unclosed p{opacity:0;}}&.read-only-text-can-select{div:not(.aboard-line,.wElbow,.wMFileInput),span,span *,text,p,p *,pre,td,form,select,li,button,textarea,input{cursor:text;user-select:text !important;}text,&.widget.wMTextInput input,&.widget.wNavigationMenu span,&.widget.wTree span,&.widget.wTabs li,&.widget.wSelectionControl span,&.widget.wMobileTabBars span,&.widget.wSegmentedControl button,&.widget.wMTextarea textarea,&.widget.wCollapse span,&.widget.wCollapse div,&.widget.wTable .jexcel_container .jexcel_content table tbody td div.tdDiv{pointer-events:auto !important;}}}"],se.H0,se.PE,he=>he.theme.color_proto,he=>he.theme.color_proto,te.x.WElbow);class pm extends x.PureComponent{constructor(W){super(W),(0,r.A)(this,"debounceMouseMove",()=>{MB.getWidgetStore().getAllWidget().size>800?this.debouncedMouseMove=jo()(this.handleMouseMove,10):this.debouncedMouseMove=this.handleMouseMove}),(0,r.A)(this,"handleMouseDown",Q=>{var ge,Me;(ge=(Me=this.debouncedMouseMove).flush)==null||ge.call(Me),this.props.dispatch({type:"entry:screenContainer:mousedown",payload:{e:Q}})}),(0,r.A)(this,"handleMouseUp",Q=>{const{dispatch:ge,isInCommentMode:Me,isInAIComponentSnapshotCreateMode:Pe}=this.props;Me&&ge({type:"entry:comment:create:mouseup"}),Pe&&ge({type:"entry:aiComponent:create:mouseup",payload:{event:Q}}),ge({type:"ST:update",payload:{isDraggingWTear:!1}}),ge({type:"clear:range:select"}),setTimeout(()=>{MB.__store__.getState().plugin.ruler.isDraggingLine&&(console.error("[Ruler line unexpect dragging state]"),ge({type:"ruler:update:state",payload:{isDraggingLine:!1}}))})}),(0,r.A)(this,"handleVisibilityChange",()=>{document.visibilityState==="hidden"&&this.props.dispatch({type:"update:screenContainer:state",payload:{domVisibilityState:!1}})}),(0,r.A)(this,"handleMouseMove",Q=>{const{clientX:ge,clientY:Me}=Q;Object.assign(MB,{clientX:ge,clientY:Me});const{dispatch:Pe}=this.props;Pe({type:"entry:screenContainer:mousemove",payload:{event:Q}}),Pe({type:u0.k.EntryKey["entry:draft:screen:mousemove"],payload:{event:Q,from:"design"}})}),(0,r.A)(this,"handleDoubleClick",Q=>this.props.dispatch({type:"entry:screenContainer:mousedown:hit",payload:{event:Q,rehitForContextMenu:!1,gas:1}})),(0,r.A)(this,"handleScaleAndOffsetChange",(Q,ge,Me)=>{this.props.dispatch({type:"design:set:scale-and-offset",payload:{scale:Me,offset:{x:Q,y:ge}}}),this.props.dispatch({type:"entry:update:ruler"})}),(0,r.A)(this,"handleOffsetChange",(Q,ge)=>this.props.dispatch({type:"entry:set:canvas:offset",payload:{offset:{x:Q,y:ge}}})),(0,r.A)(this,"handleScroll",Q=>{Q.target.scrollTop=0,Q.target.scrollLeft=0}),(0,r.A)(this,"handleDrop",Q=>this.props.dispatch({type:"entry:screenContainer:drop",payload:{e:Q}})),this.debounceMouseMove()}UNSAFE_componentWillUpdate(W){var Q,ge;((Q=W.currentScreen)==null?void 0:Q.cid)!==((ge=this.props.currentScreen)==null?void 0:ge.cid)&&this.debounceMouseMove()}componentDidMount(){document.addEventListener("visibilitychange",this.handleVisibilityChange)}componentWillUnmount(){document.removeEventListener("visibilitychange",this.handleVisibilityChange)}preventDefault(W){MB.f.editing||W.preventDefault()}handleDragOver(W){W.stopPropagation(),W.preventDefault(),W.nativeEvent.dataTransfer.dropEffect="copy"}render(){var W;const{theme:Q,canvasOffset:ge,isHighlight:Me,isDraggingCanvas:Pe,quickCreateWidget:Ie,isInCommentMode:Oe,isInAIComponentSnapshotCreateMode:Ke,isDirectlyEditingProjectMain:ot,currentScreen:rt,onlyView:lt,isCommunityComboPreview:wt,isEmptyScreen:so,editingCid:bo,rootProject:Ro}=this.props;if(so)return null;const tn=MB.getScale(),Pn=tn/100,{x:un,y:Xn}=ge,ws={transform:"matrix(1, 0, 0, 1, "+Math.round(un)+", "+Math.round(Xn)+")"},zs={transform:"scale("+Pn+")"},fn={...zs,...bo&&((W=sdkStore.getHotItem(bo))==null?void 0:W.hotAttr.type)==="wTear"&&{transform:""}},Ds=(0,Pc.F6)(Ie),gi=u()("screen-container",{"is-community-combo-preview":wt}),hi={backgroundColor:Me?Q===yi.Sx.DARK?"#454647":"rgba(31, 41, 46, 0.3)":(0,Na.t0)((0,yi.t6)(Q,rt))};return(0,y.jsxs)(l2,{id:"screens",style:hi,className:gi,onMouseUp:this.handleMouseUp,onMouseDown:this.handleMouseDown,onContextMenu:this.preventDefault,onDragOver:this.handleDragOver,onDrop:this.handleDrop,onMouseMove:this.debouncedMouseMove,onDoubleClick:this.handleDoubleClick,children:[(0,y.jsx)(ac,{isInAIComponentSnapshotCreateMode:Ke,isInCommentMode:Oe,quickCreateWidgetName:Ds,isDraggingCanvas:Pe,x:un,y:Xn,scale:tn,isDisabled:Pe,onScaleAndOffsetChange:this.handleScaleAndOffsetChange,onOffsetChange:this.handleOffsetChange,onScroll:this.handleScroll,children:(0,y.jsxs)("div",{className:"screen-viewport",style:ws,children:[(0,y.jsxs)("div",{className:"zoom-area",style:zs,children:[(0,y.jsx)(D,{}),!lt&&(0,y.jsx)(xd,{widget:Ie,isDirectlyEditingProjectMain:ot,currentScreen:rt})]}),lt?(0,y.jsx)(Ec,{}):(0,y.jsx)(fr,{}),!lt&&(0,y.jsx)("div",{className:"zoom-area editing-text-area "+(0,de.Km)(Ro.device),style:{...fn,zIndex:1},children:(0,y.jsx)(I.tH,{fallback:(0,y.jsx)(y1,{}),beforeCapture:()=>{console.warn("-- Capture TextEditor error to prevent page crashed\uFF01")},children:(0,y.jsx)(y1,{})})}),(0,y.jsx)(v,{onlyView:lt}),(0,y.jsx)(Ws,{}),(0,y.jsx)(p1,{}),(0,y.jsx)(du,{}),(0,y.jsx)(Ri,{}),(0,y.jsx)(Xu,{}),(0,y.jsx)(lm,{}),(0,y.jsx)(r1,{}),(0,y.jsx)(Oi,{}),(0,y.jsx)(za,{}),(0,y.jsx)(_h,{}),(0,y.jsx)(cm,{})]},"1")}),(0,y.jsx)(s2,{}),!lt&&(0,y.jsx)(d0,{}),(0,y.jsx)(Th,{})]})}}const hm=(0,m.Mz)([g.ER,g.wq,g.AW,A.O4,g.PL,g.Ur,p.jx,p.pH,C.r,l.C,T.sI,g.lh,k.y1],(he,W,Q,ge,Me,Pe,Ie,Oe,Ke,ot,rt,lt,wt)=>{let{isEditingProjectMain:so,isEditingBasket:bo,isDirectlyEditingBasket:Ro,isEditingCombo:tn}=Ke,{isEmptyScreen:Pn}=ot;const un=bo||Ro,Xn=Ie===N.qi.OnlyView,ws=Oe&&(Me==null?void 0:Me.category)==="combo_group";return{isHighlight:un,canvasOffset:he,quickCreateWidget:W,isDraggingCanvas:Q,theme:ge,isDirectlyEditingProjectMain:so,rootProject:Me,currentScreen:Pe,onlyView:Xn,isCommunityComboPreview:ws,isEmptyScreen:Pn,isInCommentMode:rt,editingCid:lt,isInAIComponentSnapshotCreateMode:wt}}),$h=(0,o.Ng)(he=>hm(he))(pm)},12259:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>zT});var o=e(72605),m=e(63686),g=e(11123),l=e(35592),C=e(52191),T=e(78570),A=e(20029),k=e(39562),p=e(74059),r=e(51044),x=e(86634),f=e.n(x),u=e(21676),b=e(1790),h=e(70522),E=e(1694),N=e(73387),z=e(39719),S=e(47143),_=e(84470),y=e(54606),a=e(61724),$=e(61535),ce=e(30797);const de=(0,m.Mz)([S.Ur,ce.p$],(t,n)=>n.includes(t==null?void 0:t.cid));var fe=e(66976),se=e(20592),J=e(63555);const ve=(t,n,s)=>(t.type===J.x.WBasket?[]:t.children).filter(c=>{try{switch(c.type){case"wLine":case"wArrow":return(0,fe.Xs)(n,s,c.key);case"wElbow":return(0,fe.kA)(n,s,c.key);case"wTear":return(0,fe.Vj)(n,s,c.key);default:return(0,se.N0)(sdkStore.getHotAABB(c.key),n)}}catch(d){return console.error("[fatal]: collectChildrenAtWorldPos",d,c),!1}}).sort((c,d)=>d.widget.zIndex-c.widget.zIndex),D=(t,n,s)=>[t].reduce((c,d)=>[...c,{...d,children:[]},...ve(d,n,s).flatMap(w=>D(w,n,s))],[]);var R=e(76445);const V=t=>t.ui.fixedLayout.contextmenu.show,O=t=>t.ui.fixedLayout.contextmenu.position,Ce=t=>t.ui.fixedLayout.contextmenu.byCanvasLayers,ae=t=>t.ui.fixedLayout.contextmenu.byComponentList,q=t=>t.ui.fixedLayout.contextmenu.canPaste,K=t=>t.ui.fixedLayout.contextmenu.canPasteProperties,xe=(0,m.Mz)([$.RX,O,S.Pz,S.X_],(t,n,s,c)=>{const{left:d,top:w}=n,{canvasTop:P,canvasLeft:F}=s,X={x:(d-F)/(c/100),y:(w-P)/(c/100)};return sdkStore.getHotItem(t.key)?D(t,X,c/100).slice(1):[]}),te=(0,m.Mz)([V,de,ce.p$,A.jx,xe],(t,n,s,c,d)=>c===R.qi.OnlyView&&(s.length===0||d.length===0)?!1:t&&!n);var H=e(31626),re=e(31552),be=e(44057),Le=e(24695),Ve=e(28678),Ne=e(14672),We=e(36521),ze=e(55560),ft=e(15039),mt=e(18578),i=e(57464);class gt extends r.PureComponent{constructor(n){super(n),(0,p.A)(this,"handleCopy",s=>{s.preventDefault(),this.props.dispatch({type:"entry:copy:items:properties"})}),(0,p.A)(this,"pasteProperties",s=>{s.preventDefault();const{dispatch:c}=this.props;c({type:"entry:paste:items:properties"}),(0,Ve.O3)({operation_from:this.props.from,operation_type:Ve.VW.CopyIta})}),(0,p.A)(this,"copyInteraction",()=>{const{dispatch:s,isCanvasLayerItemContext:c}=this.props;s(mt.R7.command.interactionCopyCommand({isCanvasLayerItemContext:c})),(0,Ve.O3)({operation_from:this.props.from,operation_type:Ve.VW.CopyIta})}),(0,p.A)(this,"pasteInteraction",()=>{const{dispatch:s}=this.props;s(mt.R7.command.pasteIta({targetInteractionKey:void 0,uiFrom:void 0}))}),(0,p.A)(this,"handleCopyAsPNG",()=>{const{currentProject:s,dispatch:c}=this.props,d=(0,We.Yt)(ze.XY.SCALE,1,We.qW.Number),w=[{format:"png",scale:String(d),affix:"suffix",isWithDeviceFrame:!1}];(0,Ve.O3)({operation_from:this.props.from,operation_type:Ve.VW.CopyAsPng}),(0,ft.E9)({project:s,isEditMode:!0,shareSource:"\u590D\u5236\u4E3Apng"}),c({type:"copy:as:png",payload:{exportConfigList:w,actionType:"copy"}})}),(0,p.A)(this,"handleCopyAsHTML",()=>{this.props.dispatch({type:"copy:as:html"})}),this.state={canPasteInteraction:!1}}componentDidMount(){(0,Ne.YF)().then(n=>{this.setState({canPasteInteraction:n&&this.props.canPasteInteraction})})}render(){const{canCopyAsPNG:n,canCopyAsHTML:s,canPasteProperties:c,canCopyInteraction:d,showCopyOrPasteProperties:w,canCopyProerties:P}=this.props,{canPasteInteraction:F}=this.state;return(0,i.jsxs)(be.Dr,{text:I18N.ContextMenu.copy_paste_as,isAiry:!0,children:[(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.copy_as_png,onClick:this.handleCopyAsPNG,disabled:!n}),s&&(0,i.jsx)(be.Dr,{text:"\u590D\u5236\u4E3A HTML",onClick:this.handleCopyAsHTML}),(0,i.jsx)(H.c,{}),w&&(0,i.jsxs)("div",{children:[(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.copy_properties,onClick:this.handleCopy,hotKeyText:Le.V.copy,disabled:!P}),(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.paste_properties,onClick:this.pasteProperties,hotKeyText:Le.V.pasteProperties,disabled:!c}),(0,i.jsx)(H.c,{})]}),(0,i.jsx)(be.Dr,{text:I18N.Interaction.copy_ita,onClick:this.copyInteraction,disabled:!d}),(0,i.jsx)(be.Dr,{text:I18N.Interaction.paste_ita,onClick:this.pasteInteraction,disabled:!F})]})}}var Je=e(7290),Pt=e(91100);const bt={0:J.Q.FIXED_TYPE.not_fixed,1:J.Q.FIXED_TYPE.top,2:J.Q.FIXED_TYPE.bottom,3:J.Q.FIXED_TYPE.sticky};class qt extends r.PureComponent{constructor(){super(...arguments),(0,p.A)(this,"handleFixed",n=>{const{dispatch:s,selections:c}=this.props;n.preventDefault();const d=n.currentTarget.dataset.type,w=bt[d];if(w==="sticky"){var P;if(((P=sdkStore.getHotItem(c[0]))==null||(P=P.hotAttr)==null?void 0:P.stickyOffset)===null){var F;const X=sdkStore.locUpHotCanvasKey(c[0]),ee=(c==null?void 0:c.length)>1?0:X&&((F=sdkStore.getHotItem(X))==null||(F=F.hotAttr)==null?void 0:F.stickyHeaderHeight)||0;(0,Pt.c)({value:ee,attr:"stickyOffset",dispatch:s,selections:c})}}s({type:"entry:set:Fixed",payload:{value:w}}),Ve.Vi[w]&&(0,Ve.O3)({operation_from:this.props.from,operation_type:Ve.Vi[w]})})}render(){const{fixPosTo:n}=this.props,s=(0,i.jsx)(Je.C,{name:"toolbar/selected",className:"selected-icon"});return(0,i.jsxs)(be.Dr,{text:I18N.ContextMenu.fixed_widget,isAiry:!0,children:[(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.not_fixed,onClick:this.handleFixed,dataType:0,icon:n===J.Q.FIXED_TYPE.not_fixed?s:null}),(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.fixed_top,onClick:this.handleFixed,dataType:1,icon:n===J.Q.FIXED_TYPE.top?s:null}),(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.fixed_bottom,onClick:this.handleFixed,dataType:2,icon:n===J.Q.FIXED_TYPE.bottom?s:null}),(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.sticky,onClick:this.handleFixed,dataType:3,icon:n===J.Q.FIXED_TYPE.sticky?s:null})]})}}var pt=e(98386),$t=e(9126);const go=u.Ay.div.withConfig({displayName:"styles__StyledLayerSelectMenu",componentId:"sc-1fdsglm-0"})([".layer-item{position:relative;height:24px;padding-left:24px;display:flex;align-items:center;cursor:pointer;a{padding-left:0;padding-right:0;}&.MenuItem.hasIcon > a{padding-left:4px;}.state-icon{position:absolute;left:4px;width:20px;height:100%;display:flex;justify-content:center;align-items:center;font-size:12px;color:#f2f4f5;&.widget-icon-selected{width:8px;margin-left:8px;}}span{max-width:132px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}.svg-icon{height:16px;width:16px;margin-right:6px;}.widget-icon{font-size:20px;width:20px;height:20px;margin-right:4px;&.group-icon{path:first-child{fill:transparent;stroke:",";}path:last-child{fill:transparent;stroke:",";}}}.svg-icon-path-icon{width:20px;height:14px;margin-right:6px;fill:currentcolor;}.is-multi-color-icon{width:20px;height:14px;margin-right:6px;}&:hover{background:",";}}.layer-tree-node{.children .layer-item{padding-left:40px;}}.layer-item{border-radius:4px;}"],t=>t.theme.color_text_L2,t=>t.theme.color_text_L2,t=>t.theme.color_btn_secondary_hover);var Co=e(71604);class Tt extends r.PureComponent{constructor(){super(...arguments),(0,p.A)(this,"handleSelect",n=>{n.preventDefault();const{type:s}=n.currentTarget.dataset;this.props.dispatch({type:"entry:select:items",payload:{cids:[s]}}),(0,Ve.m8)({operationType:Ve.VW.SelectLayers})}),(0,p.A)(this,"handleHover",n=>{n.stopPropagation();const{type:s}=n.currentTarget.dataset;this.props.dispatch(R.GO.hoverItem(s))}),(0,p.A)(this,"handleLeave",()=>{this.props.dispatch(R.GO.hoverItem(""))})}render(){const{newSelection:n,layerExpandedKeySet:s,noDivider:c=!1,layerTreeList:d}=this.props;return d.length===0?null:(0,i.jsxs)(r.Fragment,{children:[(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.select_layer,isAiry:!0,children:(0,i.jsx)(go,{children:d.map(w=>(0,i.jsx)(mo,{tree:w,newSelection:n,layerExpandedKeySet:s,onSelect:this.handleSelect,onHover:this.handleHover,onLeave:this.handleLeave},w.cid))})}),!c&&(0,i.jsx)(H.c,{})]})}}const mo=t=>{let{tree:n,newSelection:s,layerExpandedKeySet:c,onSelect:d,onHover:w,onLeave:P}=t;return(0,i.jsxs)("div",{className:"layer-tree-node",children:[(0,i.jsx)(jo,{widget:n.widget,isSelect:s.includes(n.cid),layerExpandedKeySet:c,onClick:d,onMouseEnter:w,onMouseLeave:P}),(0,i.jsx)("div",{className:"children",children:n.children.map(F=>(0,i.jsx)(mo,{tree:F,newSelection:s,layerExpandedKeySet:c,onSelect:d,onHover:w,onLeave:P},F.cid))})]})},jo=t=>{let{widget:n,isSelect:s,layerExpandedKeySet:c,onClick:d,onMouseEnter:w,onMouseLeave:P}=t;const F=n.basket==="bDanli",X=c.has(n.cid),ee=()=>(0,i.jsxs)(i.Fragment,{children:[n.isLock?(0,i.jsx)(Je.C,{className:"state-icon",name:"new_replace/lock"}):s?(0,i.jsx)(Je.C,{className:"state-icon widget-icon-selected",name:"toolbar/selected"}):null,(0,i.jsx)($t.A,{className:"widget-icon",widget:n,isDynamic:F,isExpanded:X})]}),pe=(0,Co.WM)(n);return(0,i.jsx)(be.Dr,{dataIndex:n.cid,dataType:n.cid,className:"layer-item",icon:ee(),text:pe,onClick:d,onMouseEnter:w,onMouseLeave:P,isAiry:!0})},Kt=(0,m.Mz)([ce.p$,pt.wJ,xe],(t,n,s)=>({newSelection:t,layerExpandedKeySet:n,layerTreeList:s})),Ft=(0,o.Ng)(t=>Kt(t))(Tt);var nt=e(45411),Rt=e(10091),yt=e(51514),Jt=e(97772),vo=e(73773);const Yo=u.Ay.div.withConfig({displayName:"styles__StyledBatchAddRowOrColumn",componentId:"sc-734udh-0"})(["display:flex;justify-content:center;align-items:center;padding:0px 16px;height:28px;justify-content:flex-start;cursor:pointer;.texts-0{padding-right:10px;}.texts-1{padding-left:10px;}.batch-input{width:36px;height:18px;padding:0 6px;color:",";border-radius:4px;border:1px solid ",";background:",";font-size:12px;font-weight:400;line-height:16px;&:hover{border:1px solid #1684FC;}&.is-editing{color:",";}}&:hover{background:",";}border-radius:4px;background:",";color:",";"],t=>t.theme.color_text_L2,t=>t.theme.color_bg_border_02,t=>t.theme.color_bg_menu,t=>t.theme.color_text_L1,t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_bg_white,t=>t.theme.color_text_L1),Ho=1,kt=99,Ze=t=>{const n=t.replace(/[^\d.-]+/g,"");return t?Number(n)>kt?kt:+(n<Ho)?Ho:Number(n):0},it=t=>{t.stopPropagation()};function st(t){let{text:n,operateFunc:s,onCloseContextMenu:c}=t;const[d,w]=r.useState(!1),[P,F]=r.useState(!1),[X,ee]=r.useState(1),pe=r.useRef(null),ye=(0,r.useCallback)(tt=>{const{key:It}=tt;It===vo._.Enter&&(tt.preventDefault(),tt.stopPropagation(),s&&s(X||1),setTimeout(()=>c()))},[X,c,s]),Ae=(0,r.useCallback)(tt=>{it(tt),s&&s(X||1)},[s,X]),we=(0,r.useCallback)(tt=>{it(tt);const It=Lt=>{F(!0),it(Lt)},Nt=Lt=>{it(Lt),document.removeEventListener("mousemove",It),document.removeEventListener("mouseup",Nt),setTimeout(()=>F(!1),250)};document.addEventListener("mousemove",It),document.addEventListener("mouseup",Nt)},[]),_e=(0,r.useCallback)(()=>{pe.current&&pe.current.select(),w(!0)},[w,pe]),Fe=(0,r.useCallback)(tt=>{const{target:{value:It}}=tt;!d&&w(!0);const Nt=Ze(It);ee(Nt)},[d,w,ee]),[Ye,He]=n.split(" %input ");return(0,i.jsxs)(Yo,{onMouseDown:Ae,onClick:P?it:null,children:[(0,i.jsx)("span",{className:"texts-0",children:Ye}),(0,i.jsx)("div",{onClick:it,onMouseDown:we,children:(0,i.jsx)("input",{className:f()("batch-input",d&&"is-editing"),id:"table-batch-input",type:"text",value:X||"",ref:pe,onChange:Fe,onFocus:_e,onKeyDown:ye})}),(0,i.jsx)("span",{className:"texts-1",children:He})]})}const dt=(0,r.memo)(st);class Ot extends r.PureComponent{constructor(n){var s;super(n),s=this,(0,p.A)(this,"copy",c=>{const{dispatch:d}=this.props;d({type:"entry:table:copy:selection"})}),(0,p.A)(this,"copyProperties",c=>{const{dispatch:d}=this.props;d({type:"entry:table:copy:cell:properties"})}),(0,p.A)(this,"copyInteraction",c=>{const{dispatch:d}=this.props;d(mt.R7.command.interactionCopyTableCellCommand({})),(0,Ve.O3)({operation_from:"\u753B\u5E03\u53F3\u952E",operation_type:Ve.VW.CopyIta})}),(0,p.A)(this,"pasteInteraction",c=>{const{dispatch:d}=this.props;d(mt.R7.command.pasteIta({targetInteractionKey:void 0,uiFrom:void 0}))}),(0,p.A)(this,"cut",()=>{const{dispatch:c}=this.props;c({type:"entry:table:cut:selection"})}),(0,p.A)(this,"paste",c=>{const{dispatch:d}=this.props;d({type:"entry:table:paste:selection"})}),(0,p.A)(this,"insertTopRow",function(c){c===void 0&&(c=1);const{dispatch:d}=s.props;d({type:"entry:insert:top:row",payload:{rowNumber:c}})}),(0,p.A)(this,"insertBottomRow",function(c){c===void 0&&(c=1);const{dispatch:d}=s.props;d({type:"entry:insert:bottom:row",payload:{rowNumber:c}})}),(0,p.A)(this,"deleteManyRows",()=>{const{dispatch:c}=this.props;c({type:"entry:table:delete:row"})}),(0,p.A)(this,"deleteRow",()=>{const{dispatch:c}=this.props;c({type:"entry:table:delete:row"})}),(0,p.A)(this,"deleteManyColumns",()=>{const{dispatch:c}=this.props;c({type:"entry:table:delete:column"})}),(0,p.A)(this,"deleteColumn",()=>{const{dispatch:c}=this.props;c({type:"entry:table:delete:column"})}),(0,p.A)(this,"insertLeftColumn",function(c){c===void 0&&(c=1);const{dispatch:d}=s.props;d({type:"entry:table:insert:left:column",payload:{columnNumber:c}})}),(0,p.A)(this,"insertRightColumn",function(c){c===void 0&&(c=1);const{dispatch:d}=s.props;d({type:"entry:table:insert:right:column",payload:{columnNumber:c}})}),(0,p.A)(this,"mergeCell",()=>{const{dispatch:c}=this.props;c({type:"entry:table:merge:cell"})}),(0,p.A)(this,"removeMerge",()=>{const{dispatch:c}=this.props;c({type:"entry:table:remove:merge:cell"})}),(0,p.A)(this,"pasteProperties",()=>{const{dispatch:c}=this.props;c({type:"entry:table:paste:cell:properties"})}),this.state={canPasteProperties:!1}}async componentDidMount(){const n=await(0,Ne._d)({isShowPrompt:!1});this.setState({canPasteProperties:n})}render(){const{selectedTableCell:n,dispatch:s,user:c,org:d,onClose:w}=this.props,{canPasteProperties:P}=this.state,{selectionLeftTopName:F,selectionLeftTopInfo:X,selectionRightBottomName:ee,selectionRightBottomInfo:pe,isCanRemoveMerge:ye}=n,Ae=F!==ee&&!ye,we=Ae&&X.y!==pe.y,_e=Ae&&X.x!==pe.x;return(0,i.jsxs)("div",{id:"tableMenu",children:[(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.table_copy,onClick:this.copy,hotKeyText:Le.V.copy}),(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.table_cut,onClick:this.cut,hotKeyText:Le.V.cut}),(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.table_paste,onClick:this.paste,hotKeyText:Le.V.past}),(0,i.jsxs)(be.Dr,{text:I18N.ContextMenu.copy_paste_as,isAiry:!0,children:[(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.copy_properties,onClick:this.copyProperties,hotKeyText:Le.V.copy}),(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.paste_properties,onClick:this.pasteProperties,hotKeyText:Le.V.pasteProperties,disabled:!P}),(0,i.jsx)(H.c,{}),(0,i.jsx)(be.Dr,{text:I18N.Interaction.copy_ita,onClick:this.copyInteraction}),(0,i.jsx)(be.Dr,{text:I18N.Interaction.paste_ita,onClick:this.pasteInteraction})]}),(0,i.jsx)(H.c,{}),(0,i.jsx)(dt,{text:I18N.ContextMenu.table_insert_top_row,operateFunc:this.insertTopRow,onCloseContextMenu:w}),(0,i.jsx)(dt,{text:I18N.ContextMenu.table_insert_bottom_row,operateFunc:this.insertBottomRow,onCloseContextMenu:w}),we?(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.table_delete_mul_row,onClick:this.deleteManyRows}):(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.table_delete_row,onClick:this.deleteRow}),(0,i.jsx)(H.c,{}),(0,i.jsx)(dt,{text:I18N.ContextMenu.table_insert_left_column,operateFunc:this.insertLeftColumn,onCloseContextMenu:w}),(0,i.jsx)(dt,{text:I18N.ContextMenu.table_insert_right_column,operateFunc:this.insertRightColumn,onCloseContextMenu:w}),_e?(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.table_delete_mul_columns,onClick:this.deleteManyColumns}):(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.table_delete_columns,onClick:this.deleteColumn}),Ae&&(0,i.jsxs)(r.Fragment,{children:[(0,i.jsx)(H.c,{}),(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.table_merge_title,onClick:this.mergeCell})]}),ye&&(0,i.jsxs)(r.Fragment,{children:[(0,i.jsx)(H.c,{}),(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.table_unmerge_cell,onClick:this.removeMerge})]}),(0,i.jsx)(H.c,{}),(0,i.jsx)(re.fc,{from:Jt.G.RightClick,dispatch:s,user:c,org:d})]})}}var Ct=e(5585);class wo extends r.PureComponent{constructor(){super(...arguments),(0,p.A)(this,"handleCopy",()=>{const{dispatch:n}=this.props;n({type:"entry:mind:copy:selected:node-mind"})}),(0,p.A)(this,"handleCut",()=>this.props.dispatch({type:"entry:mind:cut:node"})),(0,p.A)(this,"handlePaste",()=>this.props.dispatch({type:"entry:paste:items:into:current-page",payload:{triggerType:"contextmenu"}})),(0,p.A)(this,"handlePasteProperties",()=>{const{dispatch:n}=this.props;n({type:"entry:mind:paste:node:properties"})}),(0,p.A)(this,"handleDelete",()=>{const{dispatch:n}=this.props;n({type:"entry:mind:del:selected:node-mind"})}),(0,p.A)(this,"handleInsertSubTheme",()=>{const{dispatch:n}=this.props;n({type:"entry:mind:add:node-mind",payload:{type:Ct.eB.CHILD_LEVEL}})}),(0,p.A)(this,"handleInsertPeerTheme",()=>{const{dispatch:n}=this.props;n({type:"entry:mind:add:node-mind",payload:{type:Ct.eB.SAME_LEVEL}})})}render(){const{canPasteProperties:n,selectedMindNodeKeys:s}=this.props,c=s.length===1,d=s.map(sdkStore.getHotItem);return(0,i.jsxs)("div",{id:"mind-node-menu",children:[(0,i.jsx)(be.Dr,{text:c?I18N.ContextMenu.copy+"/"+I18N.ContextMenu.copy_properties:""+I18N.ContextMenu.copy,onClick:this.handleCopy,hotKeyText:Le.V.copy}),(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.cut,onClick:this.handleCut,hotKeyText:Le.V.cut,disabled:d[0].hotAttr.isRoot}),(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.table_paste,onClick:this.handlePaste,hotKeyText:Le.V.past}),(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.paste_properties,onClick:this.handlePasteProperties,hotKeyText:Le.V.pasteProperties,disabled:!n}),(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.delete,onClick:this.handleDelete,disabled:d[0].hotAttr.isRoot}),c&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(H.c,{}),(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.insertSubTheme,onClick:this.handleInsertSubTheme,hotKeyText:Le.V.insertSubTheme}),(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.insertPeerTheme,onClick:this.handleInsertPeerTheme,hotKeyText:Le.V.insertPeerTheme,disabled:d[0].hotAttr.isRoot})]})]})}}var ln=e(35619),Io=e(15400),Lo=e(23340),Ao=e(93869);class xt extends r.PureComponent{constructor(n){super(n),(0,p.A)(this,"copy",s=>{const{dispatch:c}=this.props;c({type:"entry:flow:copy:cell:self",payload:{isOnlyPasteText:!1}}),(0,Ao.$)(Ne.o)}),(0,p.A)(this,"cut",()=>{const{dispatch:s}=this.props;s({type:"entry:flow:cut:cell:self"})}),(0,p.A)(this,"paste",async s=>{const{dispatch:c}=this.props,{type:d,content:w}=await(0,Lo.v)();if(await(0,Lo.$H)({hasNotice:!1}))c({type:Io.X.entryKey["entry:flow:swimlane:paste"],payload:{pasteType:d,content:w}});else{const P={pasteType:d,content:w};d==="html"&&await(0,Lo.EU)("swimlane")&&(P.pasteType="cell"),c({type:Io.X.entryKey["entry:flow:swimlane:paste"],payload:P})}}),(0,p.A)(this,"insertTopRow",()=>{const{dispatch:s}=this.props;s({type:Io.X.entryKey["entry:flow:contextMenu:col:add-del"],payload:{changeType:"add",handleType:"bottom",opDirection:"top"}})}),(0,p.A)(this,"insertBottomRow",()=>{const{dispatch:s}=this.props;s({type:Io.X.entryKey["entry:flow:contextMenu:col:add-del"],payload:{changeType:"add",handleType:"bottom",opDirection:"bottom"}})}),(0,p.A)(this,"deleteRow",()=>{const{dispatch:s}=this.props;s({type:Io.X.entryKey["entry:flow:contextMenu:col:add-del"],payload:{changeType:"del",handleType:"bottom",opDirection:"top"}})}),(0,p.A)(this,"deleteColumn",()=>{const{dispatch:s}=this.props;s({type:Io.X.entryKey["entry:flow:contextMenu:col:add-del"],payload:{changeType:"del",handleType:"right",opDirection:"left"}})}),(0,p.A)(this,"insertRightColumn",()=>{const{dispatch:s}=this.props;s({type:Io.X.entryKey["entry:flow:contextMenu:col:add-del"],payload:{changeType:"add",handleType:"right",opDirection:"right"}})}),(0,p.A)(this,"insertLeftColumn",()=>{const{dispatch:s}=this.props;s({type:Io.X.entryKey["entry:flow:contextMenu:col:add-del"],payload:{changeType:"add",handleType:"right",opDirection:"left"}})}),(0,p.A)(this,"pasteProperties",()=>{const{dispatch:s}=this.props;s({type:Io.X.entryKey["entry:flow:paste:cell:properties"]})}),this.state={canPasteProperties:!1}}async componentDidMount(){const n=await(0,Ne._d)({isShowPrompt:!1});this.setState({canPasteProperties:!!n})}render(){const{canPasteProperties:n}=this.state,{swimlaneSelectedCellsInfo:{tl:{x:s,y:c}}}=this.props,d=this.props.selectedItems[0].swimlaneType,w=s===0&&c===0;return(0,i.jsxs)("div",{id:"swimlaneMenu",children:[(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.table_copy,onClick:this.copy,hotKeyText:Le.V.copy}),(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.table_cut,onClick:this.cut,hotKeyText:Le.V.cut}),(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.table_paste,onClick:this.paste,hotKeyText:Le.V.past}),(0,i.jsxs)(be.Dr,{text:I18N.ContextMenu.copy_paste_as,isAiry:!0,children:[(0,i.jsx)(be.Dr,{text:""+I18N.ContextMenu.copy_properties,onClick:this.copy,hotKeyText:Le.V.copy}),(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.paste_properties,onClick:this.pasteProperties,hotKeyText:Le.V.pasteProperties,disabled:!n})]}),(0,i.jsx)(H.c,{}),d==="leftRight"?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.flowInsertLeftColumn,onClick:this.insertLeftColumn}),(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.flowInsertRightColumn,onClick:this.insertRightColumn}),(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.flowDeleteColumn,onClick:this.deleteColumn,disabled:w})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.flowInsertTopRow,onClick:this.insertTopRow}),(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.flowInsertBottomRow,onClick:this.insertBottomRow}),(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.flowDeleteColumn,onClick:this.deleteRow,disabled:w})]})]})}}var Ut=e(62065);const Wo=t=>{let{user:n,org:s,onClose:c}=t;const d=(0,o.wA)(),w=(0,o.d4)(a.nH),P=(0,o.d4)(a.zX),F=(0,r.useCallback)(()=>{const{isHorizontal:co}=w;d(co?{type:"entry:table:delete:column"}:{type:"entry:table:delete:row"})},[w,d]),X=(0,r.useCallback)(()=>{d({type:"entry:table:merge:cell"})},[d]),ee=(0,r.useCallback)(function(co){co===void 0&&(co=1),d({type:"entry:insert:top:row",payload:{rowNumber:co}})},[d]),pe=(0,r.useCallback)(function(co){co===void 0&&(co=1),d({type:"entry:insert:bottom:row",payload:{rowNumber:co}})},[d]),ye=(0,r.useCallback)(function(co){co===void 0&&(co=1),d({type:"entry:table:insert:left:column",payload:{columnNumber:co}})},[d]),Ae=(0,r.useCallback)(function(co){co===void 0&&(co=1),d({type:"entry:table:insert:right:column",payload:{columnNumber:co}})},[d]),we=(0,r.useCallback)(()=>{d({type:"entry:table:remove:merge:cell"})},[d]);if(!w||!P)return null;const{selectionLeftTopName:_e,selectionLeftTopInfo:Fe,selectionRightBottomName:Ye,selectionRightBottomInfo:He,isCanRemoveMerge:tt}=P,It=_e!==Ye&&!tt,Nt=It&&Fe.y!==He.y,Lt=It&&Fe.x!==He.x,{isHorizontal:Xt}=w,_o=Xt?Lt?I18N.ContextMenu.table_delete_mul_columns:I18N.ContextMenu.table_delete_columns:Nt?I18N.ContextMenu.table_delete_mul_row:I18N.ContextMenu.table_delete_row;return(0,i.jsxs)("div",{children:[Xt?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(dt,{text:I18N.ContextMenu.table_insert_left_column,operateFunc:ye,onCloseContextMenu:c}),(0,i.jsx)(dt,{text:I18N.ContextMenu.table_insert_right_column,operateFunc:Ae,onCloseContextMenu:c})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(dt,{text:I18N.ContextMenu.table_insert_top_row,operateFunc:ee,onCloseContextMenu:c}),(0,i.jsx)(dt,{text:I18N.ContextMenu.table_insert_bottom_row,operateFunc:pe,onCloseContextMenu:c})]}),(0,i.jsx)(be.Dr,{text:_o,onClick:F}),(0,i.jsx)(H.c,{}),It&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.table_merge_title,onClick:X}),(0,i.jsx)(H.c,{})]}),tt&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.table_unmerge_cell,onClick:we}),(0,i.jsx)(H.c,{})]}),(0,i.jsx)(re.fc,{from:Jt.G.RightClick,user:n,org:s,dispatch:d})]})},qo=(0,r.memo)(Wo);var sn=e(38407),Kn=e(57465),ds=e(70549),_s=e(23854);const Ls=r.memo(t=>{let{editingItem:n,canPaste:s}=t;const c=async(Ae,we)=>{await(0,Lo.$H)({hasNotice:!1})?(await(0,Ne.NO)({html:Ae}),(0,Lo.Rh)({value:we})):await(0,Lo.qG)({html:Ae,selectionText:we})},d=async()=>{let Ae;const we=await(0,Ne.LD)({isShowPrompt:!0});return await(0,Lo.$H)({hasNotice:!1})?Ae=we!=null&&we.html?we.html:void 0:Ae=(we==null?void 0:we.html)||!(we!=null&&we.data)&&await(0,Lo.Xy)()||await(0,Lo.oV)({itemType:"text/plain"}),Ae},w=Ae=>{const{_getEditorState:we}=(0,Kn.DT)(),_e=we(),Fe=(0,sn.u0)(_e),Ye=n.type==="wRichText"?n.w:void 0,He=n.type==="wRichText"?n.h:void 0,tt=(0,ds.vd)({editorState:_e,richTextV1:n.richTextV1,w:Ye,h:He});c(tt,Fe)},P=Ae=>{const we=n.type==="wRichText"?n.w:void 0,_e=n.type==="wRichText"?n.h:void 0,{_getEditorState:Fe}=(0,Kn.DT)(),Ye=Fe(),He=(0,sn.u0)(Ye),tt=(0,ds.ag)({richTextV1:n.richTextV1,w:we,h:_e});c(tt,He)},F=async Ae=>{const we=await d(),{_getEditorState:_e,_setEditorState:Fe}=(0,Kn.DT)();if(_e&&Fe){const Ye=_e(),He=(0,ds.DL)({html:we,editorState:Ye,inlineProcessType:"total",componentType:n.type==="wRichText"?_s.a.TEXT:_s.a.BASIC});Fe(He)}},X=async Ae=>{const we=await d(),{_getEditorState:_e,_setEditorState:Fe}=(0,Kn.DT)();if(_e&&Fe){const Ye=_e(),He=(0,ds.DL)({html:we,editorState:Ye,inlineProcessType:"merge",componentType:n.type==="wRichText"?_s.a.TEXT:_s.a.BASIC});Fe(He)}},ee=async Ae=>{const we=await d(),{_getEditorState:_e,_setEditorState:Fe}=(0,Kn.DT)();if(_e&&Fe){const Ye=_e(),He=(0,ds.DL)({html:we,editorState:Ye,inlineProcessType:"plain",componentType:n.type==="wRichText"?_s.a.TEXT:_s.a.BASIC});Fe(He)}},{_getEditorState:pe}=(0,Kn.DT)();let ye=!1;return pe&&(ye=pe().getSelection().isCollapsed()),(0,i.jsxs)("div",{id:"textediting-menu",children:[(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.copy,onClick:w,disabled:ye,hotKeyText:Le.V.copy}),(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.cut,onClick:P,disabled:ye,hotKeyText:Le.V.cut}),(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.paste,onClick:X,hotKeyText:Le.V.past,disabled:!s}),(0,i.jsx)(be.Dr,{text:"\u4FDD\u7559\u539F\u683C\u5F0F\u7C98\u8D34",onClick:F,disabled:!s}),(0,i.jsx)(be.Dr,{text:"\u4EE5\u7EAF\u6587\u672C\u683C\u5F0F\u7C98\u8D34",onClick:ee,disabled:!s})]})});var gs=e(72866),ns=e(36892),Wn=e(10572),Do=e(27374);class Go extends r.PureComponent{constructor(){super(...arguments),(0,p.A)(this,"handleCreatePage",()=>{const{dispatch:n}=this.props,s=(0,Do.$I)().find(c=>c.type===Do.SR.PageV9||Do.SR.Page);n({type:Wn.X.AIOpenModal,payload:s})}),(0,p.A)(this,"handleCreateComponent",()=>{const{dispatch:n}=this.props;n({type:"entry:aiComponent:open:mode"})})}render(){return(0,i.jsxs)(be.Dr,{text:I18N.ContextMenu.ai,isAiry:!0,children:[(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.ai_create_proto,onClick:this.handleCreatePage}),(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.ai_create_widget,onClick:this.handleCreateComponent})]})}}class an extends r.PureComponent{constructor(){super(...arguments),(0,p.A)(this,"handleClose",()=>{const{isShowTableMenu:n,isShowMindNodeMenu:s,isShowTableDragMenu:c,dispatch:d}=this.props;d({type:"close:contextmenu"}),n&&d({type:"table:update:info",payload:{isShowTableMenu:!1}}),s&&d({type:"mind:update:state",payload:{isShowMindNodeMenu:!1}}),c&&d({type:"table:update:info",payload:{isShowTableDragMenu:!1,rightClickDragInfo:null}})}),(0,p.A)(this,"getIsShowAddToMyWidgetOrAsset",(n,s)=>{const{canEditLibrary:c,isMeDesign:d,isEditingOrgCombo:w,isEditingUserCombo:P}=this.props;return(n||s)&&!(P&&!s&&!(c&&!d&&!w))})}render(){const{isMeDesign:n,isProject:s,position:c,isComponentItemContext:d,isCanvasLayerItemContext:w,dispatch:P,isShowTableMenu:F,isShowSwimlaneMenu:X,swimlaneSelectedCellsInfo:ee,selectedTableCell:pe,currentSharings:ye,currentProject:Ae,editingPanelCid:we,isSelectItemsInMuban:_e,isEditingBasket:Fe,isEditingMuban:Ye,isEditingUserCombo:He,isEditingOrgCombo:tt,editingPanelRefPage:It,isShowMindNodeMenu:Nt,selectedMindNodeKeys:Lt,isFromAbar:Xt,viewType:_o,currentUser:co,currentOrg:yn,canEditLibrary:An,isShowTableDragMenu:In,newSelection:wn,editingItem:_n,canPaste:Jn,canPasteProperties:rs}=this.props,as=wn.filter(Xd=>Xd).map(Xd=>(0,gs.Op)(Xd)),mi=as.length!==0,ha=mi&&as.every(Xd=>{var w0;return((w0=Xd.hotAttr)==null?void 0:w0.type)===J.x.Canvas&&!Xd.hotAttr.asOverlay}),Ca=mi&&as.every(Xd=>{var w0;return(0,ns.yT)((w0=Xd.hotAttr)==null?void 0:w0.type)}),qn=mi&&!ha&&!Ca,si=d?Ve._Y.LayersList:w?Ve._Y.PageList:Ve._Y.CanvasRight,Hi=(0,nt.ju)(as)&&(!He||!n&&!tt),ra=(s||Fe||Ye)&&(0,nt.jp)(as)&&!He,Ta=(0,nt.mO)(as),Pi=(0,nt.vZ)(as),Bi=!!(0,Rt.i)(as,"isLock"),Ji=!!(0,Rt.i)(as,"isVisible"),Ui=(0,Rt.i)(as,"fixPosTo"),wa=(0,nt.kE)(wn),Ea=(0,nt.P6)(wn),Ba=(0,nt.sQ)(wn),lr=(0,nt.K4)(wn),Ya=(0,nt.K4)(wn),cr=(0,nt.h1)(wn),zr=(0,nt.h1)(wn)||_e,dl=(0,nt.s5)(as),Er=(0,nt._A)(wn),Va=as.every(Xd=>{var w0;return Xd.type===J.x.WImage&&!!((w0=Xd.image)!=null&&w0.imageRef)}),nc=(0,nt.zQ)(as),sc=(0,yt.Dt)(as),Yr=(0,yt.yS)(as),kr=(0,nt.WP)(as),Fl=(0,nt.XV)(as),Ul=(0,nt.MP)(as),Gl=(0,nt.zi)(as),Tl=(0,Rt.i)(as,"type"),hd=as.length===1&&Tl===J.x.Canvas&&!as[0].hotAttr.asOverlay,Ac=as.length===1&&(0,Ut.mV)(Tl,(0,Rt.i)(as,"interactions")).length>0,W0=as.every(Xd=>Xd.type!==J.x.WCode),Da=as.length===1&&qn,hl=as.some(Xd=>Xd.type!==J.x.WCode),Fp=as.length===1&&Tl===J.x.WCode;if(_o===R.qi.OnlyView)return(0,i.jsx)(ln.nU,{position:c,onClose:this.handleClose,children:!d&&(0,i.jsx)(Ft,{noDivider:!0})});let nu;if(hd?nu=sdkStore.getHotItem(as[0].cid):nu=void 0,In)return(0,i.jsx)(ln.nU,{position:c,onClose:this.handleClose,children:(0,i.jsx)(qo,{onClose:this.handleClose,user:co,org:yn})});if(F&&pe)return(0,i.jsx)(ln.nU,{position:c,onClose:this.handleClose,children:(0,i.jsx)(Ot,{selectedTableCell:pe,dispatch:P,user:co,org:yn,onClose:this.handleClose})});if(_n!=null&&_n.textV1)return(0,i.jsx)(ln.nU,{position:c,onClose:this.handleClose,children:(0,i.jsx)(Ls,{editingItem:_n,canPaste:Jn})});if(X&&mi)return(0,i.jsx)(ln.nU,{position:c,onClose:this.handleClose,children:(0,i.jsx)(xt,{dispatch:P,selectedItems:as,swimlaneSelectedCellsInfo:ee})});if(Nt&&Lt!=null&&Lt.length)return(0,i.jsx)(ln.nU,{position:c,onClose:this.handleClose,children:(0,i.jsx)(wo,{selectedMindNodeKeys:Lt,dispatch:P,canPasteProperties:rs})});const M2=!Ca&&!Gl&&(wn.length===1?!(0,nt.Wi)(wn[0]):!0)&&Er;return(0,i.jsxs)(ln.nU,{position:c,onClose:this.handleClose,children:[!d&&(0,i.jsx)(Ft,{}),mi&&!Ca&&(0,i.jsxs)(i.Fragment,{children:[w?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(re.F0,{disabled:!(0,nt.Ly)(as),dispatch:P,from:si}),(0,i.jsx)(re.YR,{disabled:!(0,nt.Qc)(as),dispatch:P,from:si})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(re.Am,{disabled:!Ba,dispatch:P,from:si}),(0,i.jsx)(re.cz,{disabled:!Ba,dispatch:P,from:si})]}),Ul&&!Ca&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(re.YJ,{disabled:!wa,dispatch:P,from:si}),(0,i.jsx)(re.Xr,{disabled:!Ea,dispatch:P,from:si})]}),(0,i.jsx)(H.c,{}),Ul&&!Ca&&d&&(0,i.jsx)(re.yX,{dispatch:P})]}),mi&&(0,i.jsx)(re.QR,{dispatch:P,from:si}),mi&&(0,i.jsx)(re.lD,{disabled:!!we||_e,dispatch:P,from:si}),!w&&(0,i.jsxs)(i.Fragment,{children:[!d&&(0,i.jsx)(re.sg,{disabled:!Jn,dispatch:P,from:si}),!d&&(0,i.jsx)(re.do,{disabled:!Jn,position:c,dispatch:P,from:si})]}),!d&&!w&&!mi&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(re.fc,{dispatch:P,from:Jt.G.EmptyRightClick,user:co,org:yn})}),!d&&!w&&!mi&&!ENV.IS_ON_PREMISES&&!Ye&&!tt&&!He&&!Fe&&(0,i.jsx)(Go,{dispatch:P}),mi&&!Ca&&(0,i.jsx)(gt,{showCopyOrPasteProperties:qn,canPasteProperties:rs,canCopyInteraction:Ac,canPasteInteraction:W0,canCopyProerties:Da,canCopyAsPNG:hl,canCopyAsHTML:Fp,isCanvasLayerItemContext:w,currentProject:Ae,dispatch:P,from:si}),mi&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(re.ep,{disabled:_e,dispatch:P,from:si})}),mi&&(0,i.jsx)(H.c,{}),mi&&Yr&&(0,i.jsxs)(i.Fragment,{children:[sc&&(0,i.jsx)(re.Kf,{dispatch:P}),(0,i.jsx)(re.xx,{dispatch:P}),(0,i.jsx)(H.c,{})]}),mi&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(re.c_,{isLocked:Bi,dispatch:P,from:si}),!Ca&&(0,i.jsx)(re.Ld,{isLocked:!1,isVisible:Ji,disabled:!nc,dispatch:P,from:si}),M2&&(0,i.jsx)(qt,{fixPosTo:Ui,dispatch:P,from:si,selections:wn})]}),mi&&!Ca&&(0,i.jsxs)(i.Fragment,{children:[(Hi||Va||ra||Ta)&&(0,i.jsx)(H.c,{}),this.getIsShowAddToMyWidgetOrAsset(Hi,Va)&&(0,i.jsx)(re.Qq,{canCreateCombo:Hi,canCreateAsset:Va,canEditLibrary:An,canAddToMyOrOrgAsset:kr,isMeDesign:n,isEditingUserCombo:He,isEditingOrgCombo:tt,from:si,dispatch:P,disabled:_e||Pi}),ra&&(0,i.jsx)(re.fs,{selectedItems:as,isEditingBasket:Fe,dispatch:P,from:si,disabled:_e}),Ta&&(0,i.jsx)(re.ZE,{selectedItems:as,isEditingBasket:Fe,dispatch:P,from:si,disabled:_e})]}),hd&&!we&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(H.c,{}),(0,i.jsx)(re.av,{dispatch:P,canvas:nu,currentProject:Ae,currentSharings:ye,from:si,isFromAbar:Xt})]}),mi&&Fl&&!Ca&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(H.c,{}),(0,i.jsx)(re.fc,{dispatch:P,from:si,user:co,org:yn})]}),!Bi&&(0,i.jsxs)(i.Fragment,{children:[mi&&(dl||lr||Ya||cr||cr||zr)&&(0,i.jsx)(H.c,{}),dl&&(0,i.jsx)(re.qv,{dispatch:P,disabled:_e}),lr&&(0,i.jsx)(re.OD,{dispatch:P}),Ya&&(0,i.jsx)(re.af,{dispatch:P,widget:as[0]}),cr&&(0,i.jsx)(re.u2,{dispatch:P,widget:as[0]}),zr&&(0,i.jsx)(re.Om,{dispatch:P,selectItems:as})]})]})}}var Mo=e(34129);const Cn=(0,m.Mz)([y.r,te,O,ae,Ce,a.zX,a.Xf,S.wA,S.HW,S.qv,S.lw,S.PL,A.jI,_.j,A.bt,Io.X.query.getIsShallowEditing,Io.X.query.getSelectedCellsInfo,k.jZ,k.ul,S.fv,A.jx,a.bC,ce.p$,Mo.c,q,K],(t,n,s,c,d,w,P,F,X,ee,pe,ye,Ae,we,_e,Fe,Ye,He,tt,It,Nt,Lt,Xt,_o,co,yn)=>{let{isEditingProjectMain:An,isEditingBasket:In,isEditingMuban:wn,isEditingCombo:_n,isEditingUserCombo:Jn,isEditingOrgCombo:rs}=t,{isFromAbar:as}=It;return{show:n,isShowTableMenu:P,isShowSwimlaneMenu:Fe,isShowMindNodeMenu:He,selectedMindNodeKeys:tt,selectedTableCell:w,isProject:An,position:s,showStateRelatedMenu:!1,isComponentItemContext:c,isCanvasLayerItemContext:d,isMeDesign:!F,currentSharings:pe,currentProject:ye,editingPanelCid:Ae,isEditingBasket:In,isEditingMuban:wn,isEditingCombo:_n,isEditingUserCombo:Jn,isEditingOrgCombo:rs,isSelectItemsInMuban:we,editingPanelRefPage:_e,swimlaneSelectedCellsInfo:Ye,isFromAbar:as,viewType:Nt,currentOrg:F,currentUser:X,canEditLibrary:ee,isShowTableDragMenu:Lt,newSelection:Xt,editingItem:_o,canPaste:co,canPasteProperties:yn}}),Tn=t=>{let{show:n,position:s,...c}=t;return n&&(0,i.jsx)(an,{position:s,...c},String(s.top)+String(s.left))},cn=(0,o.Ng)(t=>Cn(t))(Tn);var bs=e(93924),Vn=e(3930);const ti=(0,u.Ay)(Vn.H).withConfig({displayName:"styles__StyledMasterCreateModal",componentId:"sc-1s1gto9-0"})([".content{display:flex;flex-direction:column;.modal-content{.masterbox{display:flex;img{width:100px;height:100px;margin-right:26px;}.master{display:flex;flex-direction:column;.master-title{font-size:16px;color:",";letter-spacing:0;span{font-size:12px;color:",";margin-left:10px;}:lang(en){span{margin-left:0;display:block;margin-top:14px;}}}input{border-color:",";border-radius:6px;&:enabled:not([readonly]):focus{border:1px solid ",";}}.master-context{font-size:13px;color:",";line-height:22px;margin:10px 0 12px 0;}}}}}"],t=>t.theme.color_text_L1,t=>t.theme.color_text_link_normal,t=>t.theme.color_border_state,t=>t.theme.color_proto,t=>t.theme.color_text_L2);class oi extends r.PureComponent{constructor(n){super(n),(0,p.A)(this,"setInputRef",s=>this.input=s),(0,p.A)(this,"handleNameChange",s=>this.setState({templateName:s})),(0,p.A)(this,"handleCreate",()=>{const{onConfirm:s}=this.props,{templateName:c}=this.state;s({name:c,onSuccess:()=>{MB.notice({text:I18N.dModals.master_create_success})}})}),this.state={templateName:n.name}}componentDidMount(){this.input.querySelector("input").select()}render(){const{isOpen:n,onClose:s}=this.props,{templateName:c}=this.state;return(0,i.jsx)(ti,{isOpen:n,canConfirm:!0,onClose:s,onConfirm:this.handleCreate,className:"top-modal",title:null,canClose:!1,mask:!1,confirmBtnProps:{type:"danger"},children:(0,i.jsx)("div",{className:"master-create-modal",children:(0,i.jsxs)("div",{className:"masterbox",children:[(0,i.jsx)("div",{children:(0,i.jsx)("img",{src:"/mb-workspace/images/workspace/design/master.png"})}),(0,i.jsxs)("div",{className:"master",ref:this.setInputRef,children:[(0,i.jsxs)("p",{className:"master-title",children:[I18N.dModals.create_master,(0,i.jsx)("span",{children:I18N.dModals.can_reuse})]}),(0,i.jsx)("p",{className:"master-context",children:I18N.dModals.be_master}),(0,i.jsx)(bs.A,{type:"text",placeholder:I18N.dModals.input_master_name,value:c,onChange:this.handleNameChange})]})]})})})}}var Gt=e(88223);const Rs=(0,u.Ay)(Vn.H).withConfig({displayName:"styles__StyledMasterDeleteModal",componentId:"sc-13z9y7p-0"})(["&.master-delete-modal{.content{p{font-size:14px;color:",";line-height:22px;span{color:",";&:hover{color:",";}}}}}"],t=>t.theme.color_text_L1,t=>t.theme.color_text_link_normal,t=>t.theme.color_text_link_hover);class Xs extends r.PureComponent{constructor(){super(...arguments),(0,p.A)(this,"handleConfirm",()=>{const{onConfirm:n}=this.props;n()})}render(){const{isOpen:n,onClose:s,template:c,panelCount:d}=this.props,w=d>0,P=w?I18N.dModals.delete:I18N.dModals.confirm,F=w?I18N.dModals.contains_the_project+" "+d+" "+I18N.dModals.widget_from_master+"\u300E<span>"+(0,Gt.rB)().process(c.name)+"</span>\u300F</br>"+I18N.dModals.independent_widget:I18N.dModals.confirm_del_master+" \u300E<span>"+(0,Gt.rB)().process(c.name)+"</span>\u300F "+I18N.dModals.is_confirm;return(0,i.jsx)(Rs,{className:"master-delete-modal top-modal",isOpen:n,onConfirm:this.handleConfirm,onClose:s,confirmText:P,canConfirm:!0,canClose:!1,mask:!1,confirmBtnProps:{type:"danger"},title:I18N.dModals.del_master,children:(0,i.jsx)("p",{dangerouslySetInnerHTML:{__html:F}})})}}const Ti=(0,u.Ay)(Vn.H).withConfig({displayName:"styles__StyledComboGroupRemoveModal",componentId:"sc-yqtdi7-0"})(["&.combo-group-remove-modal{.content{p{font-size:14px;color:",";span{color:#298df8;}}}footer{.link-opener-wrapper{margin-right:auto;.dropLibraryFolderMenu{width:180px;height:34px;border-color:",";transition:border-color 0.3s;border-radius:6px;&:hover{border:1px solid #1684FC;}.select-title.is-placeholder{color:",";}}button[disabled]{.dropLibraryFolderMenu:hover{border-color:",";}}}.select-title{margin-left:0.5em;text-align:left;flex:1;overflow:hidden;color:",";}}}"],t=>t.theme.color_text_L1,t=>t.theme.color_bg_border_02,t=>t.theme.color_text_L1,t=>t.theme.color_bg_line,t=>t.theme.color_text_L1),di=(0,u.DU)([".DropdownMenuPortal{.DesignDropdownMenu.dropLibraryFolderMenu{width:200px;border-radius:8px;.content{background-color:rgba(51,51,51,1);width:200px;max-height:434px;padding:0;}}}"]),vs=u.Ay.div.withConfig({displayName:"styles__NodeContainer",componentId:"sc-yqtdi7-1"})(["transition:max-height 0.5s ease-in-out;overflow:hidden;max-height:",";"],t=>t.expanded?"1000px":"24px"),ei=u.Ay.div.withConfig({displayName:"styles__NodeLabel",componentId:"sc-yqtdi7-2"})(["height:24px;display:flex;align-items:center;cursor:pointer;color:",";padding-left:","px;svg.svg-icon{width:16px;height:16px;margin-right:4px;fill:currentColor;&.expander{color:",";margin-right:4px;&.is-collapsed{transform:rotate(90deg);}}&.folder{min-width:20px;min-height:20px;margin-right:8px;color:#4F5052 !important;}}.title{max-width:118px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}:not(.is-show-collapsed){padding-left:","px;}&:hover{background:",";}&.is-selected{background:",";}border-radius:4px;background:",";svg.svg-icon{&.folder{path{stroke:",";fill:none;}}}"],t=>t.theme.color_text_L1,t=>t.isOnlyOneLevel?16:t.depth*16,t=>t.theme.color_text_L1,t=>t.isOnlyOneLevel?(t.depth-1)*16+20:t.depth*16+20,t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_bg_white,t=>t.theme.color_text_L1),Si=u.Ay.div.withConfig({displayName:"styles__TreeContainer",componentId:"sc-yqtdi7-3"})(["box-sizing:border-box;width:200px;max-height:434px;padding:8px;font-weight:400;overflow:hidden;color:",";border-radius:8px;border:1px solid ",";background:",";box-shadow:",";"],t=>t.theme.color_text_L1,t=>t.theme.color_bg_border_01,t=>t.theme.color_bg_white,t=>t.theme.shadow_m),Gs=u.Ay.div.withConfig({displayName:"styles__ScrollableContent",componentId:"sc-yqtdi7-4"})(["overflow-y:auto;max-height:417px;width:182px;::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,0.25);&:hover,&:active{background-color:rgba(255,255,255,0.35);}}"]),Vs=u.Ay.div.withConfig({displayName:"styles__Divider",componentId:"sc-yqtdi7-5"})(["margin:4px 0;border-top:1px solid ",";"],t=>t.theme.color_bg_border_01);var ps=e(29073);const kn=t=>{var n,s,c;let{node:d,depth:w,selected:P,isOnlyOneLevel:F,onNodeSelect:X}=t;const[ee,pe]=(0,r.useState)(!1),ye=_e=>{_e.stopPropagation(),pe(!ee)},Ae=_e=>{_e.stopPropagation(),X(d)},we=d.cid!=="no unset";return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(vs,{expanded:ee,children:[(0,i.jsxs)(ei,{className:f()({"is-show-collapsed":((n=d.subFolder)==null?void 0:n.length)>0,"is-selected":d.cid===P}),onClick:Ae,depth:w,isOnlyOneLevel:F,children:[((s=d.subFolder)==null?void 0:s.length)>0&&(0,i.jsx)(Je.C,{className:f()("expander",{"is-collapsed":ee}),name:"common/solid-arrow",onClick:ye}),we&&(0,i.jsx)(Je.C,{className:"folder",name:ee?"common/design-system/folder-icon":"common/design-system/folder-icon-close"}),(0,i.jsx)("span",{className:"title",children:d.name})]}),ee&&(0,i.jsx)("div",{children:(c=d.subFolder)==null?void 0:c.map(_e=>(0,i.jsx)(kn,{node:_e,onNodeSelect:X,depth:w+1},_e.cid))})]}),!we&&(0,i.jsx)(Vs,{})]})},zn=t=>{let{data:n,group:s,selected:c,onNodeSelect:d}=t;const w=n.find(P=>P.subFolder.length>0)===void 0;return(0,i.jsx)(Si,{children:(0,i.jsx)(Gs,{children:n.map(P=>{if((s==null?void 0:s.cid)!==P.cid)return(0,i.jsx)(kn,{selected:c,node:P,onNodeSelect:d,depth:1,isOnlyOneLevel:w},P.cid)})})})},hs="no unset";class Ss extends r.PureComponent{constructor(n){super(n),(0,p.A)(this,"setComponentRef",s=>this.dropdown=s),(0,p.A)(this,"handleNodeSelect",s=>{this.setState({selectedCid:s.cid,selectedNode:s}),this.dropdown.close()}),(0,p.A)(this,"handleDelete",()=>{const{onModalDelete:s}=this.props,{selectedCid:c}=this.state;s({isDeleteCombo:c===hs,selectedCid:c})}),(0,p.A)(this,"renderFooterContent",()=>{const{combosToRemove:s,comboGroupsCanMoveTo:c,comboGroup:d}=this.props,{selectedCid:w}=this.state,P=(s==null?void 0:s.length)>0,F=[{name:I18N.dModals.not_transfer,cid:hs,subFolder:[]}].concat(c.sort((ee,pe)=>ee.data.zIndex-pe.data.zIndex)),X=c.length===1&&c[0].cid===d.cid;if(P)return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ps.A,{isOpen:!1,ref:this.setComponentRef,title:this.state.selectedNode.name||I18N.dModals.not_transfer,isPlaceholder:w===hs,isOpenerAttrDisabled:X,menux:"left",forceDarkTheme:!0,shouldPreventScrollingPropagation:!1,className:"dropLibraryFolderMenu",renderMenu:(0,i.jsx)(zn,{data:F,group:d,selected:w,onNodeSelect:this.handleNodeSelect})}),(0,i.jsx)(di,{})]})}),this.state={selectedCid:hs,selectedNode:{}}}render(){const{isOpen:n,title:s,onClose:c,comboGroup:d,combosToRemove:w}=this.props,{selectedCid:P}=this.state,F=(w==null?void 0:w.length)>0,X=P!==hs?I18N.dModals.move_and_del:I18N.dModals.confirm,ee=(w==null?void 0:w.length)===1?I18N.dModals.move_widget_library_one:I18N.dModals.move_widget_library_than_one,pe=F?"\u300E"+d.name+"\u300F"+I18N.dModals.contain+" "+(w==null?void 0:w.length)+" "+ee:I18N.dModals.confirm_del_widget_library.replace("{name}",d.name);return(0,i.jsx)(Ti,{isOpen:n,className:"combo-group-remove-modal top-modal",onConfirm:this.handleDelete,onClose:c,confirmText:X,renderFooterContent:this.renderFooterContent,canConfirm:!0,canClose:!1,mask:!1,confirmBtnProps:{type:"danger"},title:s||I18N.dModals.del_my_widgets,children:(0,i.jsx)("p",{children:pe})})}}const fi=(0,u.Ay)(Vn.H).withConfig({displayName:"styles__StyledWorkspaceAsyncModal",componentId:"sc-k42yjc-0"})(["margin-bottom:24px;.content{p{font-size:14px;span{display:inline-flex;color:",";}.desc-color{color:",";}.desc-text-1{display:block;font-size:14px;line-height:22px;color:",";}.desc-text-2{display:block;font-size:12px;line-height:22px;color:",";}}}"],t=>t.theme.color_text_link_normal,t=>t.theme.color_text_L3,t=>t.theme.color_title_text_state,t=>t.theme.color_AI_Text_Auto_fill_path_hover);class ri extends r.PureComponent{render(){var n;const{isOpen:s,className:c,desc:d,title:w,confirmText:P,cancelText:F=(n=I18N)==null||(n=n.Common)==null?void 0:n.cancel,canCancel:X,onClose:ee,onConfirm:pe,onCancel:ye,renderDesc:Ae}=this.props;return(0,i.jsxs)(fi,{isOpen:s,className:"workspace-async-modal top-modal "+c,onConfirm:pe,canCancel:X,canConfirm:!0,canClose:!1,onClose:()=>ee("workspaceConfirmAsyncModal"),onCancel:ye,confirmText:P,cancelText:F,title:w,mask:!1,confirmBtnProps:{type:"danger"},children:[d&&(0,i.jsx)("p",{dangerouslySetInnerHTML:{__html:d}}),Ae&&Ae()]})}}(0,p.A)(ri,"defaultProps",{onCancel:()=>{}});var Li=e(20769);const ji=(0,u.Ay)(Vn.H).withConfig({displayName:"styles__StyledTransferModal",componentId:"sc-u1cnes-0"})(['.content{padding:0;.library-model-content{height:343px;display:flex;flex-direction:column;padding:0;p{font-size:12px;padding:12px 20px;}[type="search"]{height:32px;margin:0 20px 6px;input{width:99%;border-radius:6px;border-color:',";background-color:",";}input:focus{border-color:",";box-shadow:none;}input:active{border-color:",";}input::-webkit-input-placeholder{color:",";font-size:12px;}}.clear-icon{right:8px;}.list-content{width:calc(100% - 4px);flex:1;overflow-y:scroll;transform:translate3d(0,0,0);padding:0 14px 0 20px;&.only-one-level{padding:0 14px 0 20px;}&.only-one-level .item .list-item .icon-container{width:0;}span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}}}footer{margin-top:24px;}"],t=>t.theme.color_bg_line,t=>t.theme.color_bg_white,t=>t.theme.color_proto,t=>t.theme.color_proto,t=>t.theme.color_text_L2),_t=u.Ay.div.withConfig({displayName:"styles__StyledListItem",componentId:"sc-u1cnes-1"})(["display:flex;flex-direction:column;margin-top:4px;.list-item{display:flex;align-items:center;height:40px;padding-left:","px;cursor:pointer;&:not(.is-show-expand){padding-left:","px;}&.is-has-expand:not(.is-show-expand){}.icon-container{width:14px;margin-right:2px;display:flex;justify-content:center;align-items:center;color:",";.expand-icon.svg-icon path:last-child{fill:currentColor;stroke:currentColor;}.expand-icon.expand-icon-close{transform:rotate(-90deg);}}.icon{width:20px;height:20px;&.icon-folder path:first-child{fill:transparent;stroke:",";}&.icon-folder path:last-child{fill:",";stroke:",";}&.icon-folder{margin-right:4px;}}span{flex:1;color:",";}&:hover{color:",";background:",";border-radius:6px;}&.active{color:",";border-radius:6px;background:",";}.expand-icon.svg-icon{width:8px;height:8px;}input{margin-right:6px;}}.nested-list{}"],t=>t.level*8,t=>t.level*8,t=>t.theme.color_text_L3,t=>t.theme.color_text_L1,t=>t.theme.color_bg_border_02,t=>t.theme.color_text_L1,t=>t.theme.color_text_L2,t=>t.theme.color_text_L1,t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_text_L1,t=>t.theme.color_btn_secondary_active),Aa=t=>{const n=new Map;t.forEach(d=>{n.set(d.cid,{...d,subFolder:[],level:0})});const s=[],c=(d,w,P)=>{P.has(d.cid)||(P.add(d.cid),d.level=w,d.subFolder.forEach(F=>c(F,w+1,P)))};return t.forEach(d=>{if(d.parent_cid===null){const w=n.get(d.cid);s.push(w),c(w,0,new Set)}else{const w=n.get(d.parent_cid);if(w){const P=n.get(d.cid);P.level=(w.level||0)+1,w.subFolder.push(P),c(P,P.level,new Set)}}}),s},Ki=(t,n)=>t.sort((s,c)=>n?s.position-c.position:s.data.zIndex-c.data.zIndex),bi=(t,n)=>{const s=[],c=d=>{d.name.toLowerCase().indexOf(n.toLowerCase())!==-1&&s.push({...d,subFolder:[]}),d.subFolder&&d.subFolder.length>0&&d.subFolder.forEach(w=>c(w))};return t.forEach(d=>c(d)),s};class sa extends r.PureComponent{constructor(n){super(n),(0,p.A)(this,"setComponentRef",s=>this.modal=s),(0,p.A)(this,"handleChangeSelectedGroupCid",s=>{this.setState({selectedGroupCid:s})}),(0,p.A)(this,"handleSearch",s=>{this.setState({keyword:s})}),(0,p.A)(this,"handleModalTimesClose",s=>{s.stopPropagation(),this.modal.handleClose()}),(0,p.A)(this,"handleTransfer",()=>{const{onModalTransfer:s}=this.props,{selectedGroupCid:c}=this.state;s({selectedGroupCid:c})}),(0,p.A)(this,"toggleGroupExpansion",s=>{this.setState(c=>{const d=new Set(c.expandedGroups);return d.has(s)?d.delete(s):d.add(s),{expandedGroups:d}})}),(0,p.A)(this,"getRenderListAndIsShowExpand",(s,c)=>{let d,w;return this.state.keyword===""?(d=c?Aa(s):s,w=d.some(P=>{var F;return((F=P.subFolder)==null?void 0:F.length)>0})):(d=s,w=!1),{isHasExpand:w,renderList:d}}),this.state={keyword:"",selectedGroupCid:"",expandedGroups:new Set}}render(){const{isOpen:n,itemGroups:s,onClose:c,title:d,confirmText:w,isImage:P}=this.props,{selectedGroupCid:F,keyword:X,expandedGroups:ee}=this.state,pe=X?P?Ki(s.filter(_e=>_e.name.toLowerCase().indexOf(X)!==-1),P):bi(s,this.state.keyword):Ki(s,P),ye=!!F,{isHasExpand:Ae,renderList:we}=this.getRenderListAndIsShowExpand(pe,P);return(0,i.jsx)(ji,{isOpen:n,ref:this.setComponentRef,className:"library-transfer-modal top-modal",onConfirm:this.handleTransfer,onClose:c,confirmText:w||I18N.dModals.move,canConfirm:ye,canClose:!1,mask:!1,confirmBtnProps:{type:"danger"},title:d,children:(0,i.jsxs)("div",{className:"library-model-content no-padding",children:[(0,i.jsx)("p",{children:I18N.dModals.move_tips}),(0,i.jsx)(Li.A,{placeholder:I18N.dModals.keyword_search,value:X,onChange:this.handleSearch}),(0,i.jsx)("div",{className:f()("list-content",{"only-one-level":!Ae}),children:we.map(_e=>(0,i.jsx)(Zi,{className:Ae?"is-has-expand":"",group:_e,selectedGroupCid:F,onChangeSelectedGroupCid:this.handleChangeSelectedGroupCid,toggleGroupExpansion:this.toggleGroupExpansion,expandedGroups:ee,level:0},_e.cid))})]})})}}class Zi extends r.PureComponent{constructor(){super(...arguments),(0,p.A)(this,"handleChangeSelectedGroupCid",()=>{const{group:n,onChangeSelectedGroupCid:s}=this.props;s(n.cid)}),(0,p.A)(this,"handleToggleExpansion",n=>{n.stopPropagation();const{group:s,toggleGroupExpansion:c}=this.props;c(s.cid)}),(0,p.A)(this,"handleSelectGroup",n=>{n.stopPropagation(),this.handleChangeSelectedGroupCid()})}render(){var n;const{className:s,group:c,selectedGroupCid:d,expandedGroups:w,level:P}=this.props,F=d===c.cid,X=w.has(c.cid),ee=((n=c.subFolder)==null?void 0:n.length)>0;return(0,i.jsxs)(_t,{className:f()("item",{active:F}),level:P,children:[(0,i.jsxs)("div",{className:f()(s,"list-item",{"is-show-expand":ee}),onClick:this.handleSelectGroup,children:[(0,i.jsx)("div",{className:"icon-container",onClick:this.handleToggleExpansion,children:ee&&(0,i.jsx)(Je.C,{className:f()("expand-icon",{"expand-icon-close":!X}),name:"library/design-system/open"})}),(0,i.jsx)(Je.C,{className:"icon-folder",name:X?"left_panel/group_open":"left_panel/group_close"}),(0,i.jsx)("span",{children:c.name}),(0,i.jsx)("input",{type:"radio",checked:F,onChange:this.handleSelectGroup})]}),X&&ee&&(0,i.jsx)("div",{className:"nested-list",children:c.subFolder.map(pe=>(0,i.jsx)(Zi,{group:pe,selectedGroupCid:d,onChangeSelectedGroupCid:this.props.onChangeSelectedGroupCid,toggleGroupExpansion:this.props.toggleGroupExpansion,expandedGroups:w,level:P+1},pe.cid))})]})}}const Fa=(0,u.Ay)(Vn.H).withConfig({displayName:"styles__CSSDesignModal",componentId:"sc-1ymb6u5-0"})([".content{.Input{width:100%;height:32px;input{color:",";}}}footer{.footer-actions{width:166px;display:flex;justify-content:space-between;position:absolute;left:20px;align-items:center;.Select,.Input{height:32px;width:128px;input{color:",";}}.icons-box{width:32px;height:32px;line-height:40px;text-align:center;border-radius:6px;&:hover{background-color:",";}&:active{background-color:",";}.svg-icon{font-size:18px;cursor:pointer;color:",";path:nth-child(1){fill:#F2F4F5;}path:nth-child(3){fill:#333;}}}.exit-create{margin-left:10px;color:",";}.link-opener-wrapper{margin-right:10px;.dropLibraryFolderMenu{width:128px;height:32px;border-color:",";transition:border-color 0.3s;border-radius:6px;&:hover{border:1px solid #1684FC;}&.options-opener .select-title{margin-left:0.5em;text-align:left;color:",";}.select-title.is-placeholder{color:",";}.svg-icon{margin-right:4px;color:",";}}button[disabled]{.dropLibraryFolderMenu:hover{border-color:",";}}}}.select-title{flex:1;overflow:hidden;}}.combo-create-check{margin-top:10px;}"],t=>t.theme.color_text_L1,t=>t.theme.color_text_L1,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_text_L1,t=>t.theme.color_proto,t=>t.theme.color_bg_border_02,t=>t.theme.color_text_L1,t=>t.theme.color_text_L1,t=>t.theme.color_text_L1,t=>t.theme.color_bg_line),to=(0,u.DU)([".DropdownMenuPortal{.DesignDropdownMenu.dropLibraryFolderMenu{width:128px;border-radius:8px;.content{background-color:rgba(51,51,51,1);width:200px;max-height:434px;padding:0;}}}"]),Qt=t=>{var n;let s=1;const c=d=>{for(const P of d){var w;s+=1,((w=P.subFolder)==null?void 0:w.length)>0&&c(P.subFolder)}};return((n=t.subFolder)==null?void 0:n.length)>0&&c(t.subFolder),s};class Sn extends r.PureComponent{constructor(n){super(n),(0,p.A)(this,"setInputRef",F=>this.input=F),(0,p.A)(this,"setTextRef",F=>this.textInput=F),(0,p.A)(this,"setComponentRef",F=>this.dropdown=F),(0,p.A)(this,"handleNodeSelect",F=>{this.setState({targetGroupCid:F.cid,curSelectedName:F.name}),this.dropdown.close()}),(0,p.A)(this,"handleNameChange",F=>{this.setState({createName:F})}),(0,p.A)(this,"handleTargetGroupCidChange",F=>{this.setState({targetGroupCid:F})}),(0,p.A)(this,"handleGroupNameChange",F=>{this.setState({groupName:F})}),(0,p.A)(this,"handleCreateGroup",()=>{this.setState({isCreating:!0},()=>{this.input.querySelector("input").select()})}),(0,p.A)(this,"handleCancelCreateComboGroup",()=>{this.setState({isCreating:!1})}),(0,p.A)(this,"handleConfirm",async()=>{const{onModalConfirm:F,onClose:X}=this.props,{isCreating:ee,createName:pe,targetGroupCid:ye,groupName:Ae}=this.state;F({isCreating:ee,createName:pe,targetGroupCid:ye,groupName:Ae,onModalClose:X})}),(0,p.A)(this,"renderFooterContent",()=>{const{inputGroupPlaceholder:F}=this.props,{optionGroupItemList:X,groupName:ee,curSelectedName:pe,targetGroupCid:ye,isCreating:Ae}=this.state;let we;X.length===1?we=Qt(X[0])<=1:we=X.length<=1;const _e=X.length>=1;return Ae?(0,i.jsxs)("div",{className:"footer-actions",ref:this.setInputRef,children:[(0,i.jsx)(bs.A,{type:"text",placeholder:F,value:ee,onChange:this.handleGroupNameChange}),_e&&(0,i.jsx)("a",{className:"exit-create",onClick:this.handleCancelCreateComboGroup,children:I18N.dModals.cancel})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"footer-actions",ref:this.setInputRef,children:[(0,i.jsx)(ps.A,{isOpen:!1,ref:this.setComponentRef,isOpenerAttrDisabled:we,title:pe,menux:"left",forceDarkTheme:!0,shouldPreventScrollingPropagation:!1,className:"dropLibraryFolderMenu",renderMenu:(0,i.jsx)(zn,{data:X,onNodeSelect:this.handleNodeSelect,selected:ye})}),(0,i.jsx)("div",{className:"icons-box",children:(0,i.jsx)(Je.C,{name:"design/new_widgets",onClick:this.handleCreateGroup})})]}),(0,i.jsx)(to,{})]})});const{isCreating:s,createName:c,targetGroupCid:d,groupName:w,optionGroupItemList:P}=n;this.state={isCreating:s,createName:c,targetGroupCid:P.length?P[0].cid:"",curSelectedName:P.length?P[0].name:null,groupName:w,optionGroupItemList:P}}componentDidMount(){const n=this.textInput&&this.textInput.querySelector("input");n&&n.select()}render(){const{isOpen:n,onClose:s,modalTitle:c,inputPlaceholder:d=I18N.dModals.input_widget_name}=this.props,{createName:w,groupName:P,isCreating:F}=this.state,X=w!==""&&(F?P!=="":!0);return(0,i.jsx)(Fa,{isOpen:n,onConfirm:this.handleConfirm,onClose:s,renderFooterContent:this.renderFooterContent,canConfirm:X,className:"top-modal",canClose:!1,mask:!1,confirmBtnProps:{type:"danger"},title:c,children:(0,i.jsx)("div",{ref:this.setTextRef,children:(0,i.jsx)(bs.A,{type:"text",placeholder:d,value:w,onChange:this.handleNameChange})})})}}(0,p.A)(Sn,"defaultProps",{isCreating:!1});const Vo=(0,u.Ay)(Vn.H).withConfig({displayName:"styles__StyledLinkBackModal",componentId:"sc-nzr9h5-0"})(["&.FunctionalModal{width:480px;box-shadow:0 3px 6px rgba(0,0,0,0.02),0 6px 16px rgba(0,0,0,0.02),0 9px 28px rgba(0,0,0,0.09);}.tips{figure{display:flex;flex-direction:column;align-items:center;}figcaption{order:1;margin-bottom:1.5em;line-height:1.5;color:",";&:lang(zh){text-align:justify;}}img{order:2;box-sizing:content-box;width:100%;}}.link-back-modal{img:lang(en){border-top:none;border-left:none;}}"],t=>t.theme.color_text_L1),Uo=t=>{let{isOpen:n,onClose:s}=t;return(0,i.jsx)(Vo,{isOpen:n,onClose:s,title:I18N.dModals.whats_this,children:(0,i.jsx)("div",{className:"tips link-back-modal",children:(0,i.jsxs)("figure",{children:[(0,i.jsx)("img",{src:"/mb-workspace/images/workspace/link_back_bg.png",alt:""}),(0,i.jsx)("figcaption",{children:I18N.dModals.link_back_desc})]})})})};var pn=e(72374),ys=e(53159);const Dn=(0,u.Ay)(Vn.H).withConfig({displayName:"styles__StyledScreenDupModal",componentId:"sc-u9nad1-0"})(["&.screen-action-modal{.content .desc{text-align:start;display:flex;}}"]);class Hs extends r.PureComponent{constructor(n){super(n),(0,p.A)(this,"onChangeDupingAll",s=>{let{value:c}=s;return this.setState({isDupingAll:c==="all"})}),(0,p.A)(this,"onConfirm",()=>{const{onClose:s,screen:c,isBatch:d,isEditingCombo:w,dispatch:P}=this.props,{isDupingAll:F}=this.state;if(d){if(w){P({type:"entry:auto:dup:combo:comboGroup:on:screenList",payload:{isWithChildren:F}});return}P({type:"entry:dup:screen:page:folder:batch",payload:{isWithChildren:F}})}else P({type:"entry:dup:screen:page",payload:{screen:c,isWithChildren:F}});s()}),this.state={isDupingAll:!1}}render(){const{isOpen:n,onClose:s,isBatch:c,screenTreeNode:d}=this.props,{isDupingAll:w}=this.state,P=c?"\u6240\u9009\u753B\u5E03\u5305\u542B\u5B50\u753B\u5E03\uFF0C\u60A8\u8981\uFF1F":I18N.dModals.dup_parental_screen_desc.replace(/%name/,(0,Gt.rB)().process(d==null?void 0:d.data.name)).replace(/%count/,d==null?void 0:d.children.length);return(0,i.jsx)(Dn,{isOpen:n,onClose:s,type:"alert",title:(0,i.jsx)("p",{dangerouslySetInnerHTML:{__html:P}}),className:"screen-action-modal top-modal",canClose:!1,onCancel:s,onConfirm:this.onConfirm,canConfirm:!0,mask:!1,confirmBtnProps:{type:"danger"},children:(0,i.jsx)(pn._,{children:(0,i.jsx)(ys.A,{optionList:[{label:I18N.dModals.duplicate_parent_only,value:"parent"},{label:I18N.dModals.duplicate_all,value:"all"}],value:w?"all":"parent",onChange:this.onChangeDupingAll})})})}}var Qn=e(46664),Gi=e(88753),oa=e(24660),ta=e(59305),Sa=e(60863),La=e(44622),ya=e(76347),Ja=e(85153),No=e(72428),ct=e(99478),Mt=e(35332),ht=e(44864),oo=e(58741);const uo=(t,n,s)=>{for(const d of t.getSubHotItemList(KEY_RB_EXT))if(d.hotAttr.extData===s)return d;const c={key:createKey("e"),hotAttr:newResExt(n,0,s,"extImage"),sup:KEY_RB_EXT,sub:[]};return t.updateHotItem(c),c},So=(t,n)=>t===""?n:t+"_"+n,zo=t=>(0,Mt.cF)(t.slice(0,8).padEnd(8,"_")),en=()=>{const t=new Map;return{presetRefKeyM:(d,w)=>(w||(w=zo(d)),t.set(d,w),w),remapRefKeyM:d=>{if(!d)return"";const w=t.get(d);return w===void 0?d:w},remapCanvasRefKeyM:(d,w)=>{if(!w)return"";const P=So(d,w),F=t.get(P);return F===void 0?w:F},map:t}},mn=function(t,n,s,c,d){c===void 0&&(c=!1),d===void 0&&(d=!1);const w=new Map,P=new Map,F=[],X=[],ee=()=>X,pe=[];return{pushWidgetLinkCids:(Lt,Xt)=>{(Xt==null?void 0:Xt.length)>3&&w.set(Lt,Xt)},pushWidgetSubLinkCids:Lt=>{switch(Lt.hotAttr.type){case"wCarousel":{const _o=[];for(const co of Lt.hotAttr.carousel.slides)co.linkCids!==""&&_o.push(co.linkCids);P.set(Lt.key,_o);break}case"wCollapse":case"wDropMenu":case"wSelectionControl":case"wSegmentedControl":case"wTabs":case"wMobileTabBars":case"wNavigationMenu":{const _o=[],co=yn=>{yn.forEach(An=>{An.data.linkCids!==""&&_o.push(An.data.linkCids),co(An.children)})};co(Lt.hotAttr.optionData),P.set(Lt.key,_o);break}case"wTable":{const _o=[];for(const co of Lt.hotAttr.tableData.links)for(const yn of co)yn!==""&&_o.push(yn);P.set(Lt.key,_o);break}default:break}},pushInteraction:Lt=>{F.push(Lt)},buildMainInteraction:Lt=>{const Xt=[];for(const[_o,co]of w){const yn=t.getHotItem(_o);if((yn==null?void 0:yn.hotAttr.type)==="wSticky")continue;const An=co.split(","),In=[];for(const wn of An){const _n=F.find(Jn=>Jn.cid===wn);if(_n!==void 0){if(!Oo(_n))continue;const rs=Un(_n,n,s,c,d,Lt);if(!rs)continue;In.push(rs),X.push({widgetKey:_o,ita:rs}),rs.interactionType===3&&pe.push(_o)}}Xt.push([_o,{interactions:In}])}t.updateHotAttrMergeBatch(Xt)},buildMainInteraction4combo:(Lt,Xt)=>{const _o=[];for(const[co,yn]of w){const An=t.getHotItem(co);if((An==null?void 0:An.hotAttr.type)==="wSticky")continue;const In=yn.split(","),wn=[];for(const _n of In){const Jn=F.find(rs=>rs.cid===_n);if(Jn!==void 0){if(!Oo(Jn))continue;const as=On(Jn,Lt,Xt);if(as===void 0)continue;wn.push(as),X.push({widgetKey:co,ita:as})}}_o.push([co,{interactions:wn}])}t.updateHotAttrMergeBatch(_o)},buildCanvasInteraction:(Lt,Xt)=>{const _o=[];for(const co of F){if(!co.widget_cids||Xt.remapRefKeyM(co.widget_cids)!==n||!Oo(co))continue;const An=Un(co,n,s,c,d,Xt);_o.push(An),X.push({widgetKey:Lt,ita:An}),An.interactionType===3&&pe.push(Lt)}t.updateHotAttrKV(Lt,"interactions",_o)},buildCanvasInteraction4combo:(Lt,Xt,_o)=>{const co=[];for(const yn of F){if(_o+yn.widget_cids!==n||!Oo(yn))continue;const In=On(yn,Lt,_o);co.push(In),X.push({widgetKey:Xt,ita:In})}t.updateHotAttrKV(Xt,"interactions",co)},buildSubInteraction:Lt=>{const Xt=[];for(const[co,yn]of P){const An=[];for(const In of yn){const wn=F.find(rs=>rs.cid===In);if(wn===void 0||!Oo(wn))continue;const Jn=Un(wn,n,s,c,d,Lt,In);An.push(Jn),X.push({widgetKey:co,ita:Jn}),Jn.interactionType===3&&pe.push(co)}if(An.length>=1){var _o;const In=((_o=t.getHotItem(co))==null?void 0:_o.hotAttr).interactions;Xt.push([co,{interactions:[...In,...An]}])}}t.updateHotAttrMergeBatch(Xt)},buildSubInteraction4combo:(Lt,Xt)=>{const _o=[];for(const[yn,An]of P){const In=[];for(const wn of An){const _n=F.find(as=>as.cid===wn);if(_n===void 0||!Oo(_n))continue;const rs=On(_n,Lt,Xt,wn);!rs!==void 0&&(In.push(rs),X.push({widgetKey:yn,ita:rs}))}if(In.length>=1){var co;const wn=((co=t.getHotItem(yn))==null?void 0:co.hotAttr).interactions;_o.push([yn,{interactions:[...wn,...In]}])}}t.updateHotAttrMergeBatch(_o)},getFInalWorkingInteractionList:ee,getType3WidgetKeyList:()=>pe}},jn=t=>t===0?"0s":t,Oo=t=>{const{screen_target_cid:n,scroll_offset:s,state_cid:c,targetstate_cid:d}=t;return n===void 0&&s===void 0&&c===void 0&&d===void 0?t.link_type===7:!0},Nn=(t,n)=>{const s={FIRST_STATE:"FIRST_CANVAS",PREV_STATE:"PREV_CANVAS",NEXT_STATE:"NEXT_CANVAS",LAST_STATE:"LAST_CANVAS"};return["FIRST_STATE","PREV_STATE","NEXT_STATE","LAST_STATE"].includes(t)?s[t]:n.remapRefKeyM(t)},es=(t,n,s)=>{const c={FIRST_STATE:"FIRST_CANVAS",PREV_STATE:"PREV_CANVAS",NEXT_STATE:"NEXT_CANVAS",LAST_STATE:"LAST_CANVAS"};return["FIRST_STATE","PREV_STATE","NEXT_STATE","LAST_STATE"].includes(n)?c[n]:s.remapCanvasRefKeyM(t,n)},zt=(t,n)=>{const s={FIRST_STATE:"FIRST_CANVAS",PREV_STATE:"PREV_CANVAS",NEXT_STATE:"NEXT_CANVAS",LAST_STATE:"LAST_CANVAS"};return["FIRST_STATE","PREV_STATE","NEXT_STATE","LAST_STATE"].includes(t)?s[t]:createPrefixKey(n,t)},po=t=>["FIRST_STATE","PREV_STATE","NEXT_STATE","LAST_STATE","KEEP_STATE","PREV_LINKED_STATE"].includes(t),Fo=(t,n,s)=>({interactionTrigger:t.gesture,interactionType:1,key:createKeyFix(t.cid),menuOrDrawerOffset:t.menu_offset,resetTargetCanvasScrollOffset:t.reset,targetRBPageKey:n.remapRefKeyM(t.target_cid),targetResCanvasKey:po(t.targetstate_cid)?t.targetstate_cid:t.targetstate_cid?n.remapRefKeyM(t.targetstate_cid):"Empty",timerDuration:jn(t.timer),transition:t.transition==="newTab"?"none":t.transition,transitionDelay:t.ani_delay,transitionDuration:t.ani_duration,subKey:s,order:0,"!validVersion":1,triggerDisable:!1,actionDisable:!1}),Mn=(t,n,s)=>{let c=n;switch(n){case"FIRST_STATE":c=s[0];break;case"PREV_STATE":{const w=(s.indexOf(t)+s.length-1)%s.length;c=s[w]}break;case"NEXT_STATE":{const w=(s.indexOf(t)+1)%s.length;c=s[w]}break;case"LAST_STATE":c=s.at(-1);break;case"KEEP_STATE":c=s[0];break;case"PREV_LINKED_STATE":c=s[0];break;default:break}return c},Fn=(t,n,s,c)=>({interactionTrigger:t.gesture,interactionType:1,key:createKeyFix(t.cid),menuOrDrawerOffset:void 0,resetTargetCanvasScrollOffset:t.reset,targetRBPageKey:n,targetResCanvasKey:po(t.targetstate_cid)?t.targetstate_cid:s.remapRefKeyM(t.targetstate_cid),timerDuration:jn(t.timer),transition:Ys(t.ani_duration),transitionDelay:t.ani_delay,transitionDuration:t.ani_duration,subKey:c,order:0,"!validVersion":1,triggerDisable:!1,actionDisable:!1}),ts=(t,n,s,c)=>{const d=s.remapCanvasRefKeyM(n,t.target_cid);return{interactionTrigger:t.gesture,interactionType:3,key:createKeyFix(t.cid),menuOrDrawerOffset:t.menu_offset,targetBasketKey:d!=null?d:"Empty",targetResCanvasKey:es(d,t.targetstate_cid,s),timerDuration:jn(t.timer),transition:Ys(t.ani_duration),transitionDelay:t.ani_delay,transitionDuration:t.ani_duration,subKey:c,order:0,"!validVersion":1,triggerDisable:!1,actionDisable:!1}},As=(t,n)=>{let s=t.transition;return t.link_type===2&&(s=Ys(t.ani_duration)),{interactionTrigger:t.gesture,interactionType:2,key:createKeyFix(t.cid),menuOrDrawerOffset:t.menu_offset,resetTargetCanvasScrollOffset:t.reset,transition:s,transitionDelay:t.ani_delay,transitionDuration:t.ani_duration,timerDuration:jn(t.timer),subKey:n,order:0,"!validVersion":1,triggerDisable:!1,actionDisable:!1}},Is=(t,n)=>({interactionExternalUrl:t.target_cid,interactionTrigger:t.gesture,interactionType:4,key:createKeyFix(t.cid),openIn:t.transition,subKey:n,order:0,"!validVersion":1,triggerDisable:!1,actionDisable:!1,transitionDelay:"0"}),io=(t,n,s,c)=>{var d,w;return{interactionTrigger:t.gesture,interactionType:5,key:createKeyFix(t.cid),scrollToDir:"vertical",scrollToOffsetX:0,scrollToOffsetY:(d=t.scroll_offset)!=null?d:0,targetWidgetKey:(w=s.remapCanvasRefKeyM(n,t.target_cid))!=null?w:"Empty",timerDuration:jn(t.timer),transition:Ys(t.ani_duration),transitionDelay:t.ani_delay,transitionDuration:t.ani_duration,subKey:c,order:0,"!validVersion":1,triggerDisable:!1,actionDisable:!1}},Jo={show:"setVisible",hide:"setHidden",change:"toggleVisibility"},Zo=(t,n,s,c)=>{var d;return{actionType:Jo[t.transition],interactionTrigger:t.gesture,interactionType:6,key:createKeyFix(t.cid),setHiddenTransition:Ys(t.ani_hide_duration),setHiddenTransitionDuration:t.ani_hide_duration,setVisibleTransition:Ys(t.ani_duration),setVisibleTransitionDuration:t.ani_duration,targetWidgetKey:(d=s.remapCanvasRefKeyM(n,t.target_cid))!=null?d:"Empty",timerDuration:jn(t.timer),transitionDelay:t.ani_delay,subKey:c,order:0,"!validVersion":1,triggerDisable:!1,actionDisable:!1}},Un=(t,n,s,c,d,w,P)=>{switch(t.link_type){case 8:return t.target_cid==="PREV_LINKED_STATE"?As(t,P):us(t,w,P);case 7:return Zo(t,s,w,P);case 6:return io(t,s,w,P);case 5:return Is(t,P);case 3:return ts(t,s,w,P);case 2:return t.screen_target_cid?bn(t,w,P):!t.widget_cids&&!t.target_cid&&d?Gn(t,n,w,P):!t.screen_target_cid&&!t.target_cid&&d?bn({...t,target_cid:t.widget_cids},w,P):c?Es(t,w,P):t.targetstate_cid==="PREV_LINKED_STATE"?As(t,P):Fn(t,n,w,P);case 1:return t.target_cid==="prev"?As(t,P):Fo(t,w,P);default:return}},On=(t,n,s,c)=>{switch(t.link_type){case 5:return Is(t,c);case 2:return xs(t,n,s,c);default:return}},us=(t,n,s)=>({interactionTrigger:t.gesture,interactionType:1,key:createKeyFix(t.cid),menuOrDrawerOffset:void 0,resetTargetCanvasScrollOffset:t.reset,targetRBPageKey:n.remapRefKeyM(t.screen_target_cid),targetResCanvasKey:po(t.targetstate_cid)?t.targetstate_cid:n.remapRefKeyM(t.targetstate_cid),timerDuration:jn(t.timer),transition:Ys(t.ani_duration),transitionDelay:t.ani_delay,transitionDuration:t.ani_duration,subKey:s,order:0,"!validVersion":1,triggerDisable:!1,actionDisable:!1}),bn=(t,n,s)=>{const c=n.remapRefKeyM(t.target_cid);return{interactionTrigger:t.gesture,interactionType:3,key:createKeyFix(t.cid),menuOrDrawerOffset:t.menu_offset,targetBasketKey:"placeHolder"+n.remapRefKeyM(t.target_cid),targetResCanvasKey:es(c,t.targetstate_cid,n),timerDuration:jn(t.timer),transition:Ys(t.ani_duration),transitionDelay:t.ani_delay,transitionDuration:t.ani_duration,subKey:s,order:0,"!validVersion":1,triggerDisable:!1,actionDisable:!1}},Gn=(t,n,s,c)=>({interactionTrigger:t.gesture,interactionType:3,key:createKeyFix(t.cid),menuOrDrawerOffset:t.menu_offset,targetBasketKey:"placeHolder"+n,targetResCanvasKey:Nn(t.targetstate_cid,s),timerDuration:jn(t.timer),transition:Ys(t.ani_duration),transitionDelay:t.ani_delay,transitionDuration:t.ani_duration,subKey:c,order:0,"!validVersion":1,triggerDisable:!1,actionDisable:!1}),xs=(t,n,s,c)=>{const d=po(t.targetstate_cid)?zt(t.targetstate_cid,s):s+t.targetstate_cid;return{interactionTrigger:t.gesture,interactionType:3,key:createKeyFix(t.cid),menuOrDrawerOffset:t.menu_offset,targetBasketKey:n,targetResCanvasKey:d,timerDuration:jn(t.timer),transition:Ys(t.ani_duration),transitionDelay:t.ani_delay,transitionDuration:t.ani_duration,subKey:c,order:0,"!validVersion":1,triggerDisable:!1,actionDisable:!1}},Es=(t,n,s)=>({interactionTrigger:t.gesture,interactionType:3,key:createKeyFix(t.cid),menuOrDrawerOffset:t.menu_offset,targetBasketKey:"CURRENT_BASKET_REF",targetResCanvasKey:Nn(t.targetstate_cid,n),timerDuration:jn(t.timer),transition:Ys(t.ani_duration),transitionDelay:t.ani_delay,transitionDuration:t.ani_duration,subKey:s,order:0,"!validVersion":1,triggerDisable:!1,actionDisable:!1}),Ys=t=>t==="0s"?"none":"auto",lo=(t,n)=>{const s=n.hotAttr,c=[];for(const d of s.carousel.slides)if(d.asset==="")c.push(d);else{const w=newOrReuseExtImage(t,"",d.asset);c.push({asset:w.key,linkCids:d.linkCids,fillType:"default"})}s.carousel.slides=c},Ko=(t,n)=>{const s=n.hotAttr;if(!s.image.imageRef)return;const c=newOrReuseExtImage(t,"",s.image.imageRef);s.image.imageRef=c.key},eo=(t,n)=>{const s=n.hotAttr,c=newOrReuseExtImage(t,"map",s.map.mapImageSrc);s.map.mapImageSrc=c.key},ro=(t,n)=>{const s=n.hotAttr,c=newOrReuseExtImage(t,"keyboard","/mb-proto2/images/widget/"+s.kbImageSrc);s.kbImageSrc=c.key},Yt=async function(t,n,s){s===void 0&&(s=t.getSubHotItemList("B@main"));let c="";const d=new Set,w=ye=>{if(d.has(ye))return;d.add(ye);const Ae=t.getHotItem(ye);if((Ae==null?void 0:Ae.hotAttr.type)!=="rResBunch"){const we=[];let _e=!1;for(const Fe of(Ae==null?void 0:Ae.hotAttr).interactions)if(Fe.interactionType===1){let Ye=Fe.targetRBPageKey;n.map.get(Ye)&&(Ye=n.remapRefKeyM(Ye));const He=t.getHotItem(Ye);if(He===void 0){we.push(Fe);continue}const tt=He.sub.filter(Lt=>{var Xt;return((Xt=t.getHotItem(Lt))==null?void 0:Xt.hotAttr.type)==="rResCanvas"});let It=Fe.targetResCanvasKey;po(It)?It=Mn(c,Fe.targetResCanvasKey,tt):tt.includes(It)||(It=n.remapRefKeyM(It));const Nt={...Fe,targetRBPageKey:Ye,targetResCanvasKey:It};we.push(Nt),_e=!0}else if(Fe.interactionType===3){let Ye=Fe.targetResCanvasKey;if(!po(Ye)){const tt=Fe.targetBasketKey;if(tt==="CURRENT_BASKET_REF"){const Nt=Array.from(n.map.keys()).find(Lt=>{const Xt=Lt.split("_");return Xt.length===2?Ye===Xt[1]:!1});Nt&&(Ye=n.remapRefKeyM(Nt))}else Ye=n.remapCanvasRefKeyM(tt,Ye)}const He={...Fe,targetResCanvasKey:Ye};we.push(He),_e=!0}else we.push(Fe);_e&&(ee[ye]=we)}if((Ae==null?void 0:Ae.hotAttr.type)==="wBasket"){const we=t.getHotItem(Ae.hotAttr.refRBPageKey);P(Ae.hotAttr.refRBPageKey);for(const _e of we.sub)w(_e)}else for(const we of Ae.sub)w(we)},P=ye=>{const Ae=t.getHotItem(ye),we=n.remapRefKeyM((Ae==null?void 0:Ae.hotAttr).defaultCanvasKey);we&&(X[ye]=we)},F=async ye=>{for(const Ae of ye){P(Ae.key);for(const we of Ae.sub){const _e=t.getHotItem(we);(_e==null?void 0:_e.hotAttr.type)==="rResBunch"?(P(we),await F([_e])):((_e==null?void 0:_e.hotAttr.type)==="rResCanvas"&&(c=_e.key),await(0,ct.Y_)(0),w(we))}}},X={},ee={},pe=s.filter(ye=>!n.map.has(ye.key));await F(pe),t.updateHotAttrMergeBatch([...Object.entries(X).map(ye=>{let[Ae,we]=ye;return[Ae,{defaultCanvasKey:we}]}),...Object.entries(ee).map(ye=>{let[Ae,we]=ye;return[Ae,{interactions:we}]})])},Be={rResCanvas:"\u9875\u9762",wRect:"\u77E9\u5F62",wRichText:"\u6587\u672C",wOval:"\u5706\u5F62",wLine:"\u7EBF\u6761",wImage:"\u56FE\u7247",wLr:"\u94FE\u63A5\u533A\u57DF",wButton:"\u6309\u94AE",wTable:"\u8868\u683C",wArrow:"\u7BAD\u5934",wMTextInput:"\u5355\u884C\u8F93\u5165",wMTextarea:"\u591A\u884C\u8F93\u5165",wMSelect:"\u4E0B\u62C9\u9009\u62E9\u5668",wPolygon:"\u591A\u8FB9\u5F62",wStar:"\u661F\u5F62",wTriangleb:"\u4E09\u89D2\u5F62",wTrianglel:"\u4E09\u89D2\u5F62",wDropMenu:"\u4E0B\u62C9\u83DC\u5355",wMFileInput:"\u9009\u62E9\u6587\u4EF6",wAndroidSwitch:"\u5B89\u5353\u5F00\u5173",wIosSwitch:"IOS\u5F00\u5173",wSlider:"\u6ED1\u52A8\u6761",wDigitalStepper:"\u6570\u5B57\u6B65\u8FDB\u5668",wMobileTabBars:"\u79FB\u52A8\u7AEF\u5BFC\u822A",wSegmentedControl:"\u5206\u6BB5\u5668",wCollapse:"\u6298\u53E0\u9762\u677F",wTabs:"\u6807\u7B7E\u9875",wPaginationMobile:"\u5206\u9875\u56681",wPaginationWeb:"\u5206\u9875\u56682",wWebpage:"\u7F51\u9875",wCarousel:"\u8F6E\u64AD\u56FE",wChart:"\u56FE\u8868",wVideo:"\u89C6\u9891",wAudio:"\u97F3\u9891",wQRCode:"\u4E8C\u7EF4\u7801",wMTooltip:"\u804A\u5929\u6C14\u6CE1",wMapView:"\u5730\u56FE",wWrap:"\u7FA4\u7EC4",wSticky:"\u6279\u6CE8"},Wt=()=>{const t=new Map,n=(s,c)=>{var d;return s||((d=Be[c])!=null?d:"\u7EC4\u4EF6")};return{remapName:(s,c,d,w)=>{let F=n(d,w)+" "+createKeyFix();return s?t.set(c,F):t.has(c)&&(F=t.get(c)),F}}};var At=e(42708),Xe=e(96731);const Vt=(0,u.Ay)(Vn.H).withConfig({displayName:"styles__StyledScreenTransferModal",componentId:"sc-nk4mrk-0"})(["width:776px;height:448px;background-color:#fff;box-shadow:0 2px 10px rgba(39,54,78,0.08),0 12px 40px rgba(39,54,78,0.1);border-radius:8px;overflow:hidden;.content{width:100%;height:448px;padding:0;}iframe{width:100%;height:100%;border:0;}"]);var Xo=e(29107);class rn extends r.PureComponent{constructor(){super(...arguments),(0,p.A)(this,"setElemRef",n=>this.iframeRef=n),(0,p.A)(this,"handleMessage",async n=>{n.data==="close"?this.props.onClose():n.data.msg==="submit"&&await this.handleTransfer(n.data.param)}),(0,p.A)(this,"upgradeWidthPagesOver",n=>()=>{const{onClose:s}=this.props,c="\u7F16\u8F91\u533A-\u9875\u9762\u8D85\u9650_\u9875\u9762\u8F6C\u79FB",d="workspace-filepage_pagetrans_limit",w=n==="me"?void 0:{cid:n},P=(0,oa.l)(w,c,d);MB.global.popupHelper.chargeAsync(P),s()}),(0,p.A)(this,"handleTransfer",async n=>{var s;let{selectedProjectCid:c,isChecked:d,selectedOrgCid:w}=n;const{screenMetaList:P,currentUser:F,isAllTransfer:X,isMultiplePage:ee=!1,rootProject:pe,onClose:ye,dispatch:Ae}=this.props;if(!c)return;if(X&&!d){var we;Ae({type:"modal:update:confirm:state",payload:{isOpen:!0,canCancel:!1,title:I18N.__entry__.warning,desc:I18N.__entry__.cant_transfer_screen,onConfirm:()=>{}}}),(we=this.iframeRef)!=null&&we.contentWindow&&this.iframeRef.contentWindow.postMessage({msg:"stopSubmitLoading"},"*");return}const _e=P.map(_n=>(0,La.YU)(_n)).flat(),Fe=await(0,Qn.sw)(c),Ye=(0,Ja.n)(Fe),He=Ye.screens_count||Ye.screensCount,tt=_e.length+He,It=c===pe.cid,{org:Nt}=await(0,Qn.up)(w),{maxScreenCount:Lt,maxWidgetCount:Xt}=(0,ta.xR)(F,Nt);if(tt>Lt)return ye(),MB.action("modal:update:state",{rightsAndInterestsModal:{isOpen:!0,type:Xe.hC.OrgMaxProto2PageCount,selectedOrg:Nt,isCurrentProject:It}});MB.safeLoading(I18N.dModals.in_progress),await rootSdk.saveAsync(),MB.safeLoading(!1);const{userId:_o,flatKey:co}=await(0,Qn.yk)({projectBasicCid:Fe.cid}),yn=await(0,Gi.i_)({project_meta_cid:co,userId:_o,isAllowDat:!0});if(!yn)return;const An=yn.sdkStore;if(!(0,Xo.N)(Xt)){const _n=(0,Xo.UU)({initKeyList:_e.map(rs=>rs.cid),sdk:sdkStore,isKeepInnerSkip:!1}),Jn=(0,Xo.UU)({sdk:An,isKeepInnerSkip:!1});if(_n+Jn>Xt)return ye(),MB.action("modal:update:state",{rightsAndInterestsModal:{isOpen:!0,type:Xe.hC.OrgMaxProto2PageCount,selectedOrg:Nt,isCurrentProject:It}})}const In=en();for(const _n of _e){const Jn=In.presetRefKeyM(_n.cid),rs=sdkStore.getHotItem(_n.cid),as=P.find(Ca=>Ca.cid===_n.cid),mi=In.remapRefKeyM(rs.sup),ha={...rs,key:Jn,sup:as?ht.$k:mi};if(An.updateHotItem(ha),!_n.asFolder){const ms=sdkStore.getSubHotItemList(_n.cid).filter(Ta=>{let{hotAttr:Pi}=Ta;return Pi.bunch!==J.x.RbPage}).map(Ta=>Ta.key),qn=sdkStore.saveSubtree(ms),{x:si,y:Hi}=(0,ya.lY)(rs,sdkStore);(0,No.BB)({data:qn,worldPos:{x:si,y:Hi},keyRndSup:Jn,currentPageKey:Jn,store:yn.sdkStore,option:{isRename:!1,isResetStickyPoint:!1}}).forEach((Ta,Pi)=>{ms[Pi]&&In.presetRefKeyM(ms[Pi],Ta)})}}const wn=(s=An.getSubHotItemList(ht.$k).sort((_n,Jn)=>Jn.hotAttr.zIndex-_n.hotAttr.zIndex)[0])==null||(s=s.hotAttr)==null?void 0:s.zIndex;P.sort((_n,Jn)=>_n.data.zIndex-Jn.data.zIndex).forEach((_n,Jn)=>{const rs=In.remapRefKeyM(_n.cid);An.updateHotAttrKV(rs,"zIndex",wn+Jn+1)}),Yt(An,In),d||(ee?(sdkStore.combineMergeMark("remove-screen-selection"),_e.forEach(_n=>{const{cid:Jn}=_n,rs=sdkStore.getHotItem(Jn),{sub:as}=rs;as.filter(Ca=>{const{hotAttr:{bunch:ms}}=sdkStore.getHotItem(Ca);return ms===J.x.RbPage}).length>0?Ae({type:"entry:screen:delete:page:by:father",payload:{screenTreeNode:rs,isRemovingAll:!1}}):((0,Sa.X3)(rs.key,F),Ae({type:"entry:activate:root-project:home-screen"}),Ae({type:"entry:rebuild:screen-widget-tree"}))}),sdkStore.combineMerge("remove-screen-selection")):(0,Sa.gu)(_e,F),MB.action("entry:activate:root-project:home-screen")),await yn.saveAsync(),MB.notice({text:I18N.dModals.page_transfer_success,type:"success"}),Ae({type:"screen:update:state",payload:{isMultiplePage:!1}}),(0,At.yU)(d),ye()})}componentDidMount(){window.addEventListener("message",this.handleMessage,!1)}componentWillUnmount(){window.removeEventListener("message",this.handleMessage,!1)}render(){const{isOpen:n,currentOrg:s,theme:c,onClose:d}=this.props,w={spaceSelectDisabled:!1,title:I18N.ScreenPanel.move_or_copy_to,cancelBtnText:I18N.dModule.cancel,submitBtnText:I18N.dModals.screenTransfer.move,projectType:"proto2",isShowCheck:!0,checkboxText:I18N.dModals.screenTransfer.dup_move_projects,currentOrgCid:(s==null?void 0:s.cid)||"",from:"workspace",isFromProto:!0,theme:c};return(0,i.jsx)(Vt,{isOpen:n,className:"ScreenTransferModal",width:776,onClose:()=>d(),portalClassName:"ScreenTransferModalPortal",modalRender:()=>(0,i.jsx)("iframe",{src:"/embed/project_select?param="+JSON.stringify(w),ref:this.setElemRef})})}}const Ps=(0,u.Ay)(Vn.H).withConfig({displayName:"styles__StyledRemovalModal",componentId:"sc-1g9ncx2-0"})([".modal-top{display:flex;}.FormEntry > .val:only-child{margin-left:0;padding-left:0.5em;}.RadioGroup{flex-direction:column;margin-bottom:5px;}.restore-tip{font-size:12px;color:",";}.desc{b{margin-top:-1px;}}"],t=>t.theme.color_text_L3);class Os extends r.PureComponent{constructor(n){super(n),(0,p.A)(this,"onChangeRemovingAll",s=>{let{value:c}=s;return this.setState({isRemovingAll:c==="all"})}),(0,p.A)(this,"handleConfirm",()=>{const{onClose:s,onConfirm:c}=this.props,{isRemovingAll:d}=this.state;c(d),s()}),(0,p.A)(this,"handleCancel",()=>{const{onClose:s,onCancel:c}=this.props;c&&c(),s()}),(0,p.A)(this,"handleGetOptionList",()=>{const{isDelAnnotate:s}=this.props;return[{label:s?I18N.AnnotatePanel.remove_parent_only:I18N.dModals.remove_parent_only,value:"parent"},{label:s?I18N.AnnotatePanel.remove_all:I18N.dModals.remove_all,value:"all"}]}),this.state={isRemovingAll:!1}}render(){const{isOpen:n,name:s,count:c,isDelAnnotate:d,isEditingCombo:w,onClose:P}=this.props,{isRemovingAll:F}=this.state,X=d?I18N.AnnotatePanel.del_parental_annotate_desc:w?I18N.__entry__.del_multi_widget_desc:I18N.dModals.del_parental_screen_desc,ee=this.handleGetOptionList();return(0,i.jsxs)(Ps,{isOpen:n,onClose:P,canClose:!1,mask:!1,confirmBtnProps:{type:"danger"},type:"alert",title:w?"\u5220\u9664\u7EC4\u4EF6":I18N.dModals.del_screen_title,className:"screen-action-modal top-modal",onCancel:this.handleCancel,onConfirm:this.handleConfirm,canConfirm:!0,children:[(0,i.jsx)("p",{className:"modal-top",dangerouslySetInnerHTML:{__html:X.replace(/%name/,(0,Gt.rB)().process(s)).replace(/%count/,(0,Gt.rB)().process(c))}}),(0,i.jsxs)(pn._,{children:[(0,i.jsx)(ys.A,{optionList:ee,value:F?"all":"parent",onChange:this.onChangeRemovingAll}),!d&&!w&&(0,i.jsx)("span",{className:"restore-tip",children:I18N.dModals.restore_in_recycle_in})]})]})}}var ss=e(76713),Fs=e.n(ss),Ei=e(67234),vi=e(89099),li=e(75188),Ci=e(48590);const yi=u.Ay.div.withConfig({displayName:"styles__StyledScreenItem",componentId:"sc-zlx3hk-0"})(["display:flex;height:100%;width:100%;align-items:center;.svg-icon{width:20px;height:20px;}.expander{display:flex;align-items:center;justify-content:center;cursor:pointer;width:8px;margin-left:-8px;margin-right:0;.arrow-icon{color:#999;&:not(.is-expand){transform:rotate(-90deg);}}}.screen-name{max-width:12em;",";}.info{display:flex;margin-left:auto;margin-right:6px;color:#a9afb8;.user-name{max-width:4em;",";}time{margin-left:9px;}}"],Ci.L9,Ci.L9),ea=(0,u.Ay)(Vn.H).withConfig({displayName:"styles__StyledScreenTrashModal",componentId:"sc-zlx3hk-1"})(["footer{margin-top:24px;}&.screen-trash-modal{.library-model-content{&.no-padding{padding:0;}.dele-tips{display:flex;padding:9px 20px;font-size:12px;margin-bottom:10px;background-color:",";.tips-icon{color:#FF7100;margin-right:8px;}p{color:",";}}}.screen-list{height:178px;overflow-y:auto;padding:0 24px;.desc{display:flex;align-items:center;flex-direction:column;margin-top:15px;.desc-icon{margin-bottom:12px;width:144px;height:94px;defs{stop:nth-child(1){stop-color:",";}stop:nth-child(2){stop-color:",";}}circle{fill:",";}}p{color:",";}}ol,li{list-style:none;}.content-item{display:flex;flex-direction:column;.item{display:flex;height:32px;align-items:center;cursor:pointer;color:",";.check{margin-left:10px;cursor:pointer;}.is-checked{.Check-state{background-color:#1684FC;border:1px solid #1684FC;.icon{color:white;}}}}}}.content{padding:0;}}"],t=>t.theme.color_background_white_modal_tips,t=>t.theme.color_title_text_state,t=>t.theme.color_background_trash_01,t=>t.theme.color_background_trash_02,t=>t.theme.color_background_trash_circle,t=>t.theme.color_text_L2,t=>t.theme.color_title_text_state);var ii=e(70226);const Wi="\u6062\u590D\u7684\u7EC4\u4EF6";class ua extends r.PureComponent{constructor(n){super(n),(0,p.A)(this,"getSupPagesByKey",c=>sdkStore.getSubHotItemList(c).filter(d=>d.hotAttr.bunch===J.x.RbPage).sort((d,w)=>w.hotAttr.zIndex-d.hotAttr.zIndex)),(0,p.A)(this,"getSubListByKey",c=>{const d=[],w=this.getSupPagesByKey(c);return d.push(...w),w.forEach(P=>d.push(...this.getSubListByKey(P.key))),d}),(0,p.A)(this,"handleCheck",c=>{const{checkedCidSet:d}=this.state,w=d.has(c.key),P=this.getSubListByKey(c.key);w?(d.delete(c.key),P.forEach(F=>d.delete(F.key))):(d.add(c.key),P.forEach(F=>d.add(F.key))),this.setState({checkedCidSet:new Set(d)})}),(0,p.A)(this,"handModalTimesClose",()=>{this.modal.handleClose()}),(0,p.A)(this,"setComponentRef",c=>this.modal=c),(0,p.A)(this,"handleRecoverFolderKeyOnEditingCombo",c=>{let w=sdkStore.getSubHotItemList("B@main").filter(X=>(0,La.Mo)(X)).find(X=>{var ee;return((ee=X.hotAttr)==null?void 0:ee.name)===Wi});w||(w=(0,Sa.Hz)({name:Wi,sup:"B@main",asFolder:!0}));const P=this.getSupPagesByKey(w.key),F=P[0]?P[0].hotAttr.zIndex+1:1;sdkStore.moveHotItem(c,w.key),sdkStore.updateHotAttrMerge(c,{zIndex:F})}),(0,p.A)(this,"handleRecover",async()=>{const{currentUser:c,currentOrg:d,isEditingCombo:w,onClose:P,dispatch:F}=this.props,{checkedCidSet:X}=this.state,ee=Array.from(X),pe=ee.map(Fe=>this.getSupPagesByKey(Fe).filter(He=>!X.has(He.key))).flat(1/0);pe.forEach(Fe=>(0,Sa.X3)(Fe.key,c));const ye=ee.filter(Fe=>!pe.includes(Fe)),Ae=ye.filter(Fe=>{var Ye;const He=(Ye=rootSdk.sdkStore.getHotItem(Fe))==null?void 0:Ye.hotAttr;return He?!(He.bunch===J.x.RbPage&&He.asFolder):!1});if(!w&&!(0,Xo.X9)(Ae,!1)){P();return}const we=this.getSupPagesByKey("B@main"),_e=we[0]?we[0].hotAttr.zIndex+1:1;ye.forEach((Fe,Ye)=>{const He=sdkStore.getHotItem(Fe),tt=ye.includes(He.sup),It=(0,La.Mo)(He);tt||(w&&!It?this.handleRecoverFolderKeyOnEditingCombo(Fe):(sdkStore.moveHotItem(Fe,"B@main"),sdkStore.updateHotAttrMerge(Fe,{zIndex:_e+Ye})))}),F({type:"entry:rebuild:screen-widget-tree"}),F({type:"entry:update:screen:list"}),(0,ii.WV)(),P()}),this.state={checkedCidSet:new Set},this.days=(0,ta.ln)(n.currentUser,n.currentOrg);const s=sdkStore.getSubHotItemList("B@trash");this.trashPageList=(0,li.y)(s,this.days)}render(){const{isOpen:n,onClose:s,currentOrg:c,theme:d,isEditingCombo:w,isEditingUserCombo:P}=this.props,{checkedCidSet:F}=this.state,X=this.trashPageList.length===0;return(0,i.jsx)(ea,{isOpen:n,ref:this.setComponentRef,mask:!1,title:w?I18N.dModals.widget_trash_can:I18N.dModals.page_trash_can,className:"screen-trash-modal top-modal",onClose:s,onConfirm:this.handleRecover,confirmText:I18N.dModals.recover,canConfirm:F.size!==0,confirmBtnProps:{type:"danger"},children:(0,i.jsxs)("div",{className:"library-model-content no-padding",children:[(0,i.jsxs)("div",{className:"dele-tips",children:[(0,i.jsx)(Je.C,{className:"tips-icon",name:"common/screen_trash"}),(0,i.jsx)("p",{children:w?I18N.dModals.widget_recycle.replace("{n}",this.days):I18N.dModals.page_recycle.replace("{n}",this.days)})]}),(0,i.jsx)("div",{className:"screen-list",children:X?(0,i.jsxs)("div",{className:"desc",children:[(0,i.jsx)(Je.C,{className:"desc-icon",name:"screen/recycle",isColorPure:!0}),(0,i.jsx)("p",{children:I18N.dModals.no_deleted_screens})]}):(0,i.jsx)(va,{theme:d,screenTreeData:this.trashPageList,checkedCidSet:F,onCheck:this.handleCheck,currentOrg:c,isEditingCombo:w,isEditingUserCombo:P})})]})})}}const va=t=>{let{theme:n,screenTreeData:s,checkedCidSet:c,onCheck:d,currentOrg:w,isEditingCombo:P,isEditingUserCombo:F}=t;return(0,i.jsx)(i.Fragment,{children:s.map(X=>(0,i.jsx)(tr,{theme:n,currentOrg:w,treeNode:X,root:!0,depth:0,checkedCidSet:c,onCheck:d,isEditingCombo:P,isEditingUserCombo:F},X.key))})};class tr extends r.PureComponent{constructor(n){super(n),(0,p.A)(this,"handleCheck",()=>{const{treeNode:s,onCheck:c}=this.props;c(s)}),(0,p.A)(this,"handleExpand",s=>{s.stopPropagation(),this.setState({expand:!this.state.expand})}),this.state={expand:!1}}render(){const{theme:n,treeNode:s,root:c,depth:d,checkedCidSet:w,onCheck:P,currentOrg:F,isEditingCombo:X,isEditingUserCombo:ee}=this.props,{expand:pe}=this.state,{sub:ye,key:Ae}=s,we=sdkStore.getHotItem(Ae).hotAttr,_e=ye.filter(He=>sdkStore.getHotItem(He).hotAttr.bunch===J.x.RbPage),Fe=_e.length!==0,Ye=w.has(Ae);return(0,i.jsxs)("li",{className:"content-item",children:[(0,i.jsxs)("div",{className:"item",onClick:this.handleCheck,children:[(0,i.jsx)(xa,{theme:n,currentOrg:F,root:c,depth:d,showExpander:Fe,data:we,expand:pe,isEditingCombo:X,isEditingUserCombo:ee,onExpand:this.handleExpand}),(0,i.jsx)(Ei.A,{readOnly:!0,className:"check",isChecked:Ye,onChange:this.handleCheck})]}),_e.length>0&&pe&&(0,i.jsx)("ol",{className:"child-screens",children:_e.map(He=>{const tt=sdkStore.getHotItem(He);return(0,i.jsx)(tr,{theme:n,currentOrg:F,treeNode:tt,root:!1,depth:d+1,checkedCidSet:w,onCheck:P,isEditingCombo:X,isEditingUserCombo:ee},He)})})]})}}class xa extends r.PureComponent{render(){const{theme:n,currentOrg:s,root:c,depth:d,showExpander:w,data:P,expand:F,isEditingCombo:X,isEditingUserCombo:ee,onExpand:pe}=this.props,ye=d+1,Ae=X?!ee:!!s;return(0,i.jsxs)(yi,{style:{paddingLeft:ye},children:[w&&(0,i.jsx)("div",{className:"expander",onClick:pe,children:(0,i.jsx)(Je.C,{className:f()("arrow-icon",{"is-expand":F}),name:"common/expand"})}),(0,i.jsx)(vi.k,{icon:P.icon,theme:n,isExpand:F,isEditingCombo:X}),(0,i.jsx)("span",{className:"screen-name",children:(0,Gt.wh)(P.name)}),c&&P.deleteInfo&&P.deleteInfo.deleteUserName&&(0,i.jsxs)("div",{className:"info",children:[Ae&&(0,i.jsx)("span",{className:"user-name",children:P.deleteInfo.deleteUserName}),(0,i.jsx)("time",{children:Fs()(P.deleteInfo.deleteTime*1e3).format("YYYY-MM-DD HH:mm:ss")})]})]})}}var dr=e(60185),gr=e(60420),ir=e(84780),Wr=e(80766),pl=e(12201),br=e(66778),Na=e(59742);const Nr=300,ma=1200,hr=240,Ir=800,Jr=50,ml=480,zc=480,zl=Ir-Jr,Wl=zl/ma,$r=(t,n,s)=>{const c=document.querySelector(".main-content");if(!c)return;const d=c.getBoundingClientRect(),{top:w,left:P,width:F,height:X}=t,ee={left:P,top:w};let pe={width:F,height:X};if(["tl","tr","bl","br"].includes(n)){if((F<Nr||F>ma)&&(X<hr||X>Ir))return;const ye=Math.min(Math.max(F,Nr),ma),Ae=Math.min(Math.max(X,hr),Ir);ee.left=Math.max(d.left,Math.min(P,d.right-ye)),ee.top=Math.max(d.top,Math.min(w,d.bottom-Ae)),pe={width:ye,height:Ae}}else{if(F<Nr||F>ma||X<hr||X>Ir)return;ee.left=Math.max(d.left,Math.min(P,d.right-F)),ee.top=Math.max(d.top,Math.min(w,d.bottom-X))}s({...pe,...ee})},Bl=(t,n)=>{let{width:s,height:c}=t;const{width:d,height:w}=n,P=w/d;let F=s,X=c;return(s>ma||c>zl)&&(P>=Wl?(F=zl/w*d,X=zl):(F=ma,X=ma/d*w)),{width:Math.min(Math.max(F,Nr),ma),height:Math.min(Math.max(X,hr),Ir)}},Jl=()=>{const t=document.getElementById("IBOT_MODAL_ROOT")||Object.assign(document.createElement("div"),{id:"IBOT_MODAL_ROOT"});return document.body.contains(t)||document.body.appendChild(t),t};var $l=e(15139);const Rl=u.Ay.aside.withConfig({displayName:"DraggablePanel",componentId:"sc-y06gsp-0"})(["position:absolute;width:210px;background:",";border-radius:2px;box-shadow:",";overflow:hidden;border:1px solid ",";& > header{height:36px;padding-left:15px;padding-right:5px;display:flex;justify-content:space-between;align-items:center;background:",';font-size:12px;&[type="draggable"]{cursor:move;}.title{color:',";pointer-events:none;}.header-buttons{display:flex;.icon{width:20px;height:24px;font-size:12px;display:flex;justify-content:center;align-items:center;color:",";cursor:pointer;.times-icon{width:10px;}&:hover{color:",";.times-icon{color:",";}}}}}"],t=>t.theme.color_bg_white,t=>t.theme.shadow_1,t=>t.theme.color_bg_canvas,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_text_L2,t=>t.theme.color_text_L3,t=>t.theme.color_text_L2,t=>t.theme.color_text_L2),Ic=u.Ay.div.withConfig({displayName:"styles__StyledPreviewCanvasModal",componentId:"sc-oct9bq-0"})([".single-resizer{border:0;z-index:108;pointer-events:none;.resizable-handler{z-index:108;pointer-events:auto;&.t,&.b{width:100%;left:7px;}&.l,&.r{height:100%;top:7px;}}.square{display:none;}}"]),Sl=(0,u.Ay)(Rl).withConfig({displayName:"styles__StyledPreviewCanvasModalContent",componentId:"sc-oct9bq-1"})(["border:",";border-radius:10px 10px 0 0;overflow:hidden;z-index:107;background:",";display:flex;flex-direction:column;.content{height:100%;width:100%;}.mask{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;}"],t=>t.theme.ai_modal_border_style,t=>t.theme.color_bg_white),ql=(0,r.memo)(t=>{let{isOpen:n,basketKey:s,activePageKey:c,activeCanvasKey:d,selectedTrees:w,...P}=t;const[F,X]=(0,r.useState)({activePageKey:c,activeCanvasKey:d,resetTargetCanvasScrollOffset:!0});(0,r.useEffect)(()=>{if(n&&w!=null&&w.length){var pe;const ye=s&&((pe=sdkStore.getHotItem(s))==null?void 0:pe.hotAttr.bunch)==="rbPage",Ae=w.filter(Ye=>{let{key:He}=Ye;if((0,Na.OO)(He)){const[tt]=(0,Na.QL)(He);return tt===s}return sdkStore.locUpRBPageKey(He)===F.activePageKey});if(!(Ae!=null&&Ae.length))return;const we=Ae.some(Ye=>{let{key:He}=Ye;const tt=(0,Na.OO)(He)?(0,Na.QL)(He).pop():He,It=(0,Na.OO)(F.activeCanvasKey)?(0,Na.QL)(F.activeCanvasKey).pop():F.activeCanvasKey;return sdkStore.locUpColdCanvasKey(tt)===It});let _e=F.activePageKey,Fe=F.activeCanvasKey;we||w.find(Ye=>{let{key:He}=Ye;const tt=(0,Na.OO)(He)?(0,Na.QL)(He).pop():He,It=sdkStore.locUpColdCanvasKey(tt);return It?(_e=sdkStore.locUpRBPageKey(It),!ye&&!(0,Na.OO)(It)?Fe=(0,Na.iK)([s],It):Fe=It,!0):!1}),X({activePageKey:_e,activeCanvasKey:Fe,resetTargetCanvasScrollOffset:!0})}},[n,w,s]);const ee=pe=>{let{activePageKey:ye,activeCanvasKey:Ae,resetTargetCanvasScrollOffset:we}=pe;X({activePageKey:ye,activeCanvasKey:Ae,resetTargetCanvasScrollOffset:we})};return n&&(0,i.jsx)(uc,{basketKey:s,...F,...P,onActiveRunner:ee})});class uc extends r.PureComponent{constructor(n){super(n),(0,p.A)(this,"handleMove",(pe,ye)=>{this.setState({left:pe,top:ye})}),(0,p.A)(this,"handleResize",(pe,ye,Ae)=>{$r(pe,Ae,we=>{var _e;this.setState(we);const{width:Fe,height:Ye}=we;!((_e=MB)==null||(_e=_e.webpackInterface)==null)&&_e.store&&MB.webpackInterface.store.dispatch({type:"entry:preview:zoom-quick-preview",payload:{quickPreviewSize:{width:Fe,height:Ye-Jr}}})})}),(0,p.A)(this,"handleUpdateDragOrResizeModal",pe=>{var ye,Ae;this.props.dispatch({type:"modal:update:state",payload:{isDragOrResizeModal:pe}}),(ye=MB)!=null&&ye.runnerController&&((Ae=MB)==null||(Ae=Ae.runnerController)==null||Ae.setIsPreventEvent(pe))}),this.$portalElem=Jl();const{PreviewApp:s,runnerController:c,messageBucket:d,webpackInterface:w}=(0,br._)(pl.A);MB.previewModalActiveRunner=pe=>n.onActiveRunner(pe),this.popGlobalPreviewRelated=$l.A.tryStashGlobalPreviewRelated({runnerController:c,messageBucket:d,webpackInterface:w}),this.PreviewApp=s;const P=n.height,F=n.width,{width:X,height:ee}=Bl({width:F,height:P},{width:F,height:P});this.state={left:n.position.left,top:n.position.top,width:X,height:ee+Jr}}componentDidMount(){var n;!((n=MB)==null||(n=n.webpackInterface)==null)&&n.store&&MB.webpackInterface.store.dispatch({type:"reducer:preview-toolbar:update",payload:{theme:this.props.theme}})}componentDidUpdate(n,s,c){var d;(d=MB)!=null&&(d=d.webpackInterface)!=null&&d.store&&(n.activeCanvasKey!==this.props.activeCanvasKey?MB.webpackInterface.store.dispatch({type:"entry:runner:activate:canvas",payload:{pageKey:this.props.activePageKey,canvasKey:this.props.activeCanvasKey,resetTargetCanvasScrollOffset:this.props.resetTargetCanvasScrollOffset}}):n.theme!==this.props.theme&&MB.webpackInterface.store.dispatch({type:"reducer:preview-toolbar:update",payload:{theme:this.props.theme}}))}componentWillUnmount(){this.handleUpdateDragOrResizeModal(!1),setTimeout(()=>this.popGlobalPreviewRelated(),500)}render(){var n,s;const{projectAlike:c,activePageKey:d,activeCanvasKey:w,basketKey:P,onClose:F}=this.props,{PreviewApp:X}=this,{left:ee,top:pe,width:ye,height:Ae}=this.state;return!((n=MB)!=null&&(n=n.webpackInterface)!=null&&n.store)||!((s=MB)!=null&&s.runnerController)?null:(0,dr.createPortal)((0,i.jsxs)(Ic,{children:[(0,i.jsx)(ir.A,{position:{left:ee,top:pe},dragContainer:"preview-panel-modal",onMove:this.handleMove,onMoveStart:()=>this.handleUpdateDragOrResizeModal(!0),onMoveEnd:()=>this.handleUpdateDragOrResizeModal(!1),children:(0,i.jsx)(Sl,{id:"preview-panel-modal",style:{width:ye,height:Ae},className:"preview-modal-portal-root",children:(0,i.jsx)("div",{className:"content",children:(0,i.jsx)(X,{store:MB.webpackInterface.store,projectAlike:c,activePageKey:d,activeCanvasKey:w,basketKey:P,quickPreviewSize:{width:ye,height:Ae-Jr},isPanelPreviewMode:!0,onCloseModal:F})})})}),(0,i.jsx)(Wr.A,{classname:"resizer",top:pe,left:ee,width:ye,height:Ae,zoomable:"n,s,e,w,ne,nw,se,sw",rotatable:!1,rotateAngle:0,onResize:this.handleResize,onResizeStart:()=>this.handleUpdateDragOrResizeModal(!0),onResizeEnd:()=>this.handleUpdateDragOrResizeModal(!1),cursorAngle:0})]}),this.$portalElem)}}const mc=(0,m.Mz)([ce.x$,gr.n],(t,n)=>({selectedTrees:t,position:{left:n+30,top:78}})),ld=(0,o.Ng)(mc)(ql),Gc=(0,u.Ay)(Vn.H).withConfig({displayName:"styles__StyledAssetGroupRemoveModal",componentId:"sc-dgyr8s-0"})(["&.asset-group-remove-modal{.content{p{font-size:14px;color:",";}}footer{.link-opener-wrapper{margin-right:auto;.dropLibraryFolderMenu{width:180px;height:34px;border-color:",";transition:border-color 0.3s;border-radius:6px;&:hover{border:1px solid #1684FC;}.select-title.is-placeholder{color:",";}}button[disabled]{.dropLibraryFolderMenu:hover{border-color:",";}}}.select-title{margin-left:0.5em;text-align:left;flex:1;overflow:hidden;color:",";}}}"],t=>t.theme.color_text_L1,t=>t.theme.color_bg_border_02,t=>t.theme.color_text_L1,t=>t.theme.color_bg_line,t=>t.theme.color_text_L1),ar=(0,u.DU)([".DropdownMenuPortal{.DesignDropdownMenu.dropLibraryFolderMenu{width:180px;border-radius:8px;.content{background-color:rgba(51,51,51,1);width:200px;max-height:434px;padding:0;}}}"]);var ec=e(92351);const gd="no unset";class Yc extends r.PureComponent{constructor(n){super(n),(0,p.A)(this,"setComponentRef",s=>this.dropdown=s),(0,p.A)(this,"handleNodeSelect",s=>{this.setState({selectedCid:s.cid,selectedNode:s}),this.dropdown.close()}),(0,p.A)(this,"handleDelete",()=>{const{onModalDelete:s}=this.props,{selectedCid:c}=this.state;s({isDeleteAsset:c===gd,selectedCid:c})}),(0,p.A)(this,"renderFooterContent",()=>{const{otherAssetGroups:s,assetToRemove:c,assetGroup:d}=this.props,{selectedCid:w}=this.state,P=c.length>0,F=(0,ec.H)(s),X=[{name:I18N.dModals.not_transfer,cid:gd,subFolder:[]}].concat(F.sort((ee,pe)=>ee.position-pe.position));if(P)return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ps.A,{isOpen:!1,ref:this.setComponentRef,title:this.state.selectedNode.name||I18N.dModals.not_transfer,isPlaceholder:w===gd,isOpenerAttrDisabled:X.length<2,menux:"left",forceDarkTheme:!0,shouldPreventScrollingPropagation:!1,className:"dropLibraryFolderMenu",renderMenu:(0,i.jsx)(zn,{data:X,group:d,selected:w,onNodeSelect:this.handleNodeSelect})}),(0,i.jsx)(ar,{})]})}),this.state={selectedCid:gd,selectedNode:{}}}render(){const{isOpen:n,onClose:s,assetGroup:c,assetToRemove:d}=this.props,{selectedCid:w}=this.state,P=d.length>0,F=w!==gd?I18N.dModals.move_and_del:I18N.dModals.confirm,X=P?"\u300C"+c.name+"\u300D "+I18N.dModals.contain+" \u300C"+d.length+"\u300D "+I18N.dModals.move_asset_library_one:I18N.dModals.confirm_del_folder.replace("{name}",c.name);return(0,i.jsx)(Gc,{isOpen:n,className:"asset-group-remove-modal top-modal",onConfirm:this.handleDelete,onClose:s,confirmText:F,renderFooterContent:this.renderFooterContent,canConfirm:!0,canClose:!1,mask:!1,confirmBtnProps:{type:"danger"},title:"\u5220\u9664\u6587\u4EF6\u5939",children:(0,i.jsx)("p",{children:X})})}}var _c=e(91643);const Zc=(0,u.Ay)(Vn.H).withConfig({displayName:"styles__CSSDesignModal",componentId:"sc-1h8r1s1-0"})([".content{.modal-tips{font-size:13px;color:",";}.Input .input{color:",";}}footer{.footer-actions{width:166px;display:flex;justify-content:space-between;position:absolute;left:20px;align-items:center;.link-opener-wrapper{margin-right:10px;.dropLibraryFolderMenu{width:128px;height:32px;border-color:",";transition:border-color 0.3s;border-radius:6px;&:hover{border:1px solid #1684FC;}&.options-opener .select-title{margin-left:0.5em;text-align:left;color:",";}.select-title.is-placeholder{color:",";}.svg-icon{color:",";margin-right:4px;}}button[disabled]{.dropLibraryFolderMenu:hover{border-color:",";}}}.Select,.Input{height:32px;width:128px;input{color:",";}}.icons-box{width:32px;height:32px;line-height:40px;text-align:center;border-radius:6px;&:hover{background-color:",";}&:active{background-color:",";}.svg-icon{font-size:18px;cursor:pointer;color:",";path:nth-child(1){fill:#F2F4F5;}path:nth-child(3){fill:#333;}}}.exit-create{margin-left:10px;color:#298df8;}}.select-title{flex:1;overflow:hidden;}}.combo-create-check{margin-top:10px;}"],t=>t.theme.color_text_L2,t=>t.theme.color_text_L1,t=>t.theme.color_bg_border_02,t=>t.theme.color_text_L1,t=>t.theme.color_text_L1,t=>t.theme.color_text_L1,t=>t.theme.color_bg_line,t=>t.theme.color_text_L1,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_text_L1),i0=(0,u.DU)([".DropdownMenuPortal{.DesignDropdownMenu.dropLibraryFolderMenu{width:200px;border-radius:8px;.content{background-color:rgba(51,51,51,1);width:200px;max-height:434px;padding:0;}}}"]);class Mc extends r.PureComponent{constructor(n){var s,c;super(n),(0,p.A)(this,"setInputRef",X=>this.input=X),(0,p.A)(this,"setAssetInputRef",X=>this.assetInput=X),(0,p.A)(this,"setComponentRef",X=>this.dropdown=X),(0,p.A)(this,"handleNodeSelect",X=>{this.setState({targetGroupCid:X.cid,curSelectedName:X.name}),this.dropdown.close()}),(0,p.A)(this,"handleTargetGroupCidChange",X=>{this.setState({targetGroupCid:X})}),(0,p.A)(this,"handleGroupNameChange",X=>{this.setState({groupName:X})}),(0,p.A)(this,"handleCreateGroup",()=>{this.setState({isCreating:!0},()=>{this.input.querySelector("input").select()})}),(0,p.A)(this,"handleCancelCreateComboGroup",()=>{this.setState({isCreating:!1})}),(0,p.A)(this,"handleConfirm",()=>(this.assetInput.click(),!0)),(0,p.A)(this,"createAssetByFiles",async X=>{const{onModalConfirm:ee,onClose:pe}=this.props,{isCreating:ye,targetGroupCid:Ae,groupName:we}=this.state;ee({files:X,isCreating:ye,targetGroupCid:Ae,groupName:we,onModalClose:pe})}),(0,p.A)(this,"renderFooterContent",()=>{const{inputGroupPlaceholder:X}=this.props,{optionGroupItemList:ee,groupName:pe,curSelectedName:ye,targetGroupCid:Ae,isCreating:we}=this.state,_e=(0,ec.H)(ee);let Fe;_e.length===1?Fe=Qt(_e[0])<=1:Fe=_e.length<=1;const Ye=_e.length>=1;return we?(0,i.jsxs)("div",{className:"footer-actions",ref:this.setInputRef,children:[(0,i.jsx)(bs.A,{type:"text",placeholder:X,value:pe,onChange:this.handleGroupNameChange}),Ye&&(0,i.jsx)("a",{className:"exit-create",onClick:this.handleCancelCreateComboGroup,children:I18N.dModals.cancel})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"footer-actions",ref:this.setInputRef,children:[(0,i.jsx)(ps.A,{isOpen:!1,ref:this.setComponentRef,isOpenerAttrDisabled:Fe,title:ye,menux:"left",forceDarkTheme:!0,shouldPreventScrollingPropagation:!1,className:"dropLibraryFolderMenu",renderMenu:(0,i.jsx)(zn,{data:_e,selected:this.state.targetGroupCid,onNodeSelect:this.handleNodeSelect})}),(0,i.jsx)("div",{className:"icons-box",children:(0,i.jsx)(Je.C,{name:"design/new_widgets",onClick:this.handleCreateGroup})})]}),(0,i.jsx)(i0,{})]})});const{isCreating:d,targetGroupCid:w,groupName:P,optionGroupItemList:F}=n;this.state={isCreating:d,targetGroupCid:(F==null||(s=F[0])==null?void 0:s.cid)||"",curSelectedName:(F==null||(c=F[0])==null?void 0:c.name)||"",groupName:P,optionGroupItemList:F}}render(){const{isOpen:n,onClose:s,modalTitle:c}=this.props,{groupName:d,isCreating:w}=this.state,P=w?d!=="":!0;return(0,i.jsxs)(Zc,{isOpen:n,onConfirm:this.handleConfirm,onClose:s,renderFooterContent:this.renderFooterContent,canConfirm:P,title:c,className:"top-modal",canClose:!1,mask:!1,confirmBtnProps:{type:"danger",callOnClose:!1,shouldCloseOnAction:!1},children:[(0,i.jsx)("p",{className:"modal-tips",children:I18N.Resources.allow_upload_in_batched}),(0,i.jsx)(_c.A,{ref:this.setAssetInputRef,onChange:this.createAssetByFiles})]})}}(0,p.A)(Mc,"defaultProps",{isCreating:!1,inputGroupPlaceholder:""});var Id={};(function t(n,s,c,d){var w=!!(n.Worker&&n.Blob&&n.Promise&&n.OffscreenCanvas&&n.OffscreenCanvasRenderingContext2D&&n.HTMLCanvasElement&&n.HTMLCanvasElement.prototype.transferControlToOffscreen&&n.URL&&n.URL.createObjectURL),P=typeof Path2D=="function"&&typeof DOMMatrix=="function",F=function(){if(!n.OffscreenCanvas)return!1;var ms=new OffscreenCanvas(1,1),qn=ms.getContext("2d");qn.fillRect(0,0,1,1);var si=ms.transferToImageBitmap();try{qn.createPattern(si,"no-repeat")}catch(Hi){return!1}return!0}();function X(){}function ee(ms){var qn=s.exports.Promise,si=qn!==void 0?qn:n.Promise;return typeof si=="function"?new si(ms):(ms(X,X),null)}var pe=function(ms,qn){return{transform:function(si){if(ms)return si;if(qn.has(si))return qn.get(si);var Hi=new OffscreenCanvas(si.width,si.height),ra=Hi.getContext("2d");return ra.drawImage(si,0,0),qn.set(si,Hi),Hi},clear:function(){qn.clear()}}}(F,new Map),ye=function(){var ms=Math.floor(16.666666666666668),qn,si,Hi={},ra=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(qn=function(Ta){var Pi=Math.random();return Hi[Pi]=requestAnimationFrame(function Bi(Ji){ra===Ji||ra+ms-1<Ji?(ra=Ji,delete Hi[Pi],Ta()):Hi[Pi]=requestAnimationFrame(Bi)}),Pi},si=function(Ta){Hi[Ta]&&cancelAnimationFrame(Hi[Ta])}):(qn=function(Ta){return setTimeout(Ta,ms)},si=function(Ta){return clearTimeout(Ta)}),{frame:qn,cancel:si}}(),Ae=function(){var ms,qn,si={};function Hi(ra){function Ta(Pi,Bi){ra.postMessage({options:Pi||{},callback:Bi})}ra.init=function(Bi){var Ji=Bi.transferControlToOffscreen();ra.postMessage({canvas:Ji},[Ji])},ra.fire=function(Bi,Ji,Ui){if(qn)return Ta(Bi,null),qn;var wa=Math.random().toString(36).slice(2);return qn=ee(function(Ea){function Ba(lr){lr.data.callback===wa&&(delete si[wa],ra.removeEventListener("message",Ba),qn=null,pe.clear(),Ui(),Ea())}ra.addEventListener("message",Ba),Ta(Bi,wa),si[wa]=Ba.bind(null,{data:{callback:wa}})}),qn},ra.reset=function(){ra.postMessage({reset:!0});for(var Bi in si)si[Bi](),delete si[Bi]}}return function(){if(ms)return ms;if(!c&&w){var ra=["var CONFETTI, SIZE = {}, module = {};","("+t.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI && CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join("\n");try{ms=new Worker(URL.createObjectURL(new Blob([ra])))}catch(Ta){return typeof console!==void 0&&typeof console.warn=="function"&&console.warn("\u{1F38A} Could not load worker",Ta),null}Hi(ms)}return ms}}(),we={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function _e(ms,qn){return qn?qn(ms):ms}function Fe(ms){return ms!=null}function Ye(ms,qn,si){return _e(ms&&Fe(ms[qn])?ms[qn]:we[qn],si)}function He(ms){return ms<0?0:Math.floor(ms)}function tt(ms,qn){return Math.floor(Math.random()*(qn-ms))+ms}function It(ms){return parseInt(ms,16)}function Nt(ms){return ms.map(Lt)}function Lt(ms){var qn=String(ms).replace(/[^0-9a-f]/gi,"");return qn.length<6&&(qn=qn[0]+qn[0]+qn[1]+qn[1]+qn[2]+qn[2]),{r:It(qn.substring(0,2)),g:It(qn.substring(2,4)),b:It(qn.substring(4,6))}}function Xt(ms){var qn=Ye(ms,"origin",Object);return qn.x=Ye(qn,"x",Number),qn.y=Ye(qn,"y",Number),qn}function _o(ms){ms.width=document.documentElement.clientWidth,ms.height=document.documentElement.clientHeight}function co(ms){var qn=ms.getBoundingClientRect();ms.width=qn.width,ms.height=qn.height}function yn(ms){var qn=document.createElement("canvas");return qn.style.position="fixed",qn.style.top="0px",qn.style.left="0px",qn.style.pointerEvents="none",qn.style.zIndex=ms,qn}function An(ms,qn,si,Hi,ra,Ta,Pi,Bi,Ji){ms.save(),ms.translate(qn,si),ms.rotate(Ta),ms.scale(Hi,ra),ms.arc(0,0,1,Pi,Bi,Ji),ms.restore()}function In(ms){var qn=ms.angle*(Math.PI/180),si=ms.spread*(Math.PI/180);return{x:ms.x,y:ms.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:ms.startVelocity*.5+Math.random()*ms.startVelocity,angle2D:-qn+(.5*si-Math.random()*si),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:ms.color,shape:ms.shape,tick:0,totalTicks:ms.ticks,decay:ms.decay,drift:ms.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:ms.gravity*3,ovalScalar:.6,scalar:ms.scalar,flat:ms.flat}}function wn(ms,qn){qn.x+=Math.cos(qn.angle2D)*qn.velocity+qn.drift,qn.y+=Math.sin(qn.angle2D)*qn.velocity+qn.gravity,qn.velocity*=qn.decay,qn.flat?(qn.wobble=0,qn.wobbleX=qn.x+10*qn.scalar,qn.wobbleY=qn.y+10*qn.scalar,qn.tiltSin=0,qn.tiltCos=0,qn.random=1):(qn.wobble+=qn.wobbleSpeed,qn.wobbleX=qn.x+10*qn.scalar*Math.cos(qn.wobble),qn.wobbleY=qn.y+10*qn.scalar*Math.sin(qn.wobble),qn.tiltAngle+=.1,qn.tiltSin=Math.sin(qn.tiltAngle),qn.tiltCos=Math.cos(qn.tiltAngle),qn.random=Math.random()+2);var si=qn.tick++/qn.totalTicks,Hi=qn.x+qn.random*qn.tiltCos,ra=qn.y+qn.random*qn.tiltSin,Ta=qn.wobbleX+qn.random*qn.tiltCos,Pi=qn.wobbleY+qn.random*qn.tiltSin;if(ms.fillStyle="rgba("+qn.color.r+", "+qn.color.g+", "+qn.color.b+", "+(1-si)+")",ms.beginPath(),P&&qn.shape.type==="path"&&typeof qn.shape.path=="string"&&Array.isArray(qn.shape.matrix))ms.fill(mi(qn.shape.path,qn.shape.matrix,qn.x,qn.y,Math.abs(Ta-Hi)*.1,Math.abs(Pi-ra)*.1,Math.PI/10*qn.wobble));else if(qn.shape.type==="bitmap"){var Bi=Math.PI/10*qn.wobble,Ji=Math.abs(Ta-Hi)*.1,Ui=Math.abs(Pi-ra)*.1,wa=qn.shape.bitmap.width*qn.scalar,Ea=qn.shape.bitmap.height*qn.scalar,Ba=new DOMMatrix([Math.cos(Bi)*Ji,Math.sin(Bi)*Ji,-Math.sin(Bi)*Ui,Math.cos(Bi)*Ui,qn.x,qn.y]);Ba.multiplySelf(new DOMMatrix(qn.shape.matrix));var lr=ms.createPattern(pe.transform(qn.shape.bitmap),"no-repeat");lr.setTransform(Ba),ms.globalAlpha=1-si,ms.fillStyle=lr,ms.fillRect(qn.x-wa/2,qn.y-Ea/2,wa,Ea),ms.globalAlpha=1}else if(qn.shape==="circle")ms.ellipse?ms.ellipse(qn.x,qn.y,Math.abs(Ta-Hi)*qn.ovalScalar,Math.abs(Pi-ra)*qn.ovalScalar,Math.PI/10*qn.wobble,0,2*Math.PI):An(ms,qn.x,qn.y,Math.abs(Ta-Hi)*qn.ovalScalar,Math.abs(Pi-ra)*qn.ovalScalar,Math.PI/10*qn.wobble,0,2*Math.PI);else if(qn.shape==="star")for(var Ya=Math.PI/2*3,cr=4*qn.scalar,zr=8*qn.scalar,dl=qn.x,Er=qn.y,Va=5,nc=Math.PI/Va;Va--;)dl=qn.x+Math.cos(Ya)*zr,Er=qn.y+Math.sin(Ya)*zr,ms.lineTo(dl,Er),Ya+=nc,dl=qn.x+Math.cos(Ya)*cr,Er=qn.y+Math.sin(Ya)*cr,ms.lineTo(dl,Er),Ya+=nc;else ms.moveTo(Math.floor(qn.x),Math.floor(qn.y)),ms.lineTo(Math.floor(qn.wobbleX),Math.floor(ra)),ms.lineTo(Math.floor(Ta),Math.floor(Pi)),ms.lineTo(Math.floor(Hi),Math.floor(qn.wobbleY));return ms.closePath(),ms.fill(),qn.tick<qn.totalTicks}function _n(ms,qn,si,Hi,ra){var Ta=qn.slice(),Pi=ms.getContext("2d"),Bi,Ji,Ui=ee(function(wa){function Ea(){Bi=Ji=null,Pi.clearRect(0,0,Hi.width,Hi.height),pe.clear(),ra(),wa()}function Ba(){c&&!(Hi.width===d.width&&Hi.height===d.height)&&(Hi.width=ms.width=d.width,Hi.height=ms.height=d.height),!Hi.width&&!Hi.height&&(si(ms),Hi.width=ms.width,Hi.height=ms.height),Pi.clearRect(0,0,Hi.width,Hi.height),Ta=Ta.filter(function(lr){return wn(Pi,lr)}),Ta.length?Bi=ye.frame(Ba):Ea()}Bi=ye.frame(Ba),Ji=Ea});return{addFettis:function(wa){return Ta=Ta.concat(wa),Ui},canvas:ms,promise:Ui,reset:function(){Bi&&ye.cancel(Bi),Ji&&Ji()}}}function Jn(ms,qn){var si=!ms,Hi=!!Ye(qn||{},"resize"),ra=!1,Ta=Ye(qn,"disableForReducedMotion",Boolean),Pi=w&&!!Ye(qn||{},"useWorker"),Bi=Pi?Ae():null,Ji=si?_o:co,Ui=ms&&Bi?!!ms.__confetti_initialized:!1,wa=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,Ea;function Ba(Ya,cr,zr){for(var dl=Ye(Ya,"particleCount",He),Er=Ye(Ya,"angle",Number),Va=Ye(Ya,"spread",Number),nc=Ye(Ya,"startVelocity",Number),sc=Ye(Ya,"decay",Number),Yr=Ye(Ya,"gravity",Number),kr=Ye(Ya,"drift",Number),Fl=Ye(Ya,"colors",Nt),Ul=Ye(Ya,"ticks",Number),Gl=Ye(Ya,"shapes"),Tl=Ye(Ya,"scalar"),hd=!!Ye(Ya,"flat"),Ac=Xt(Ya),W0=dl,Da=[],hl=ms.width*Ac.x,Fp=ms.height*Ac.y;W0--;)Da.push(In({x:hl,y:Fp,angle:Er,spread:Va,startVelocity:nc,color:Fl[W0%Fl.length],shape:Gl[tt(0,Gl.length)],ticks:Ul,decay:sc,gravity:Yr,drift:kr,scalar:Tl,flat:hd}));return Ea?Ea.addFettis(Da):(Ea=_n(ms,Da,Ji,cr,zr),Ea.promise)}function lr(Ya){var cr=Ta||Ye(Ya,"disableForReducedMotion",Boolean),zr=Ye(Ya,"zIndex",Number);if(cr&&wa)return ee(function(nc){nc()});si&&Ea?ms=Ea.canvas:si&&!ms&&(ms=yn(zr),document.body.appendChild(ms)),Hi&&!Ui&&Ji(ms);var dl={width:ms.width,height:ms.height};Bi&&!Ui&&Bi.init(ms),Ui=!0,Bi&&(ms.__confetti_initialized=!0);function Er(){if(Bi){var nc={getBoundingClientRect:function(){if(!si)return ms.getBoundingClientRect()}};Ji(nc),Bi.postMessage({resize:{width:nc.width,height:nc.height}});return}dl.width=dl.height=null}function Va(){Ea=null,Hi&&(ra=!1,n.removeEventListener("resize",Er)),si&&ms&&(document.body.removeChild(ms),ms=null,Ui=!1)}return Hi&&!ra&&(ra=!0,n.addEventListener("resize",Er,!1)),Bi?Bi.fire(Ya,dl,Va):Ba(Ya,dl,Va)}return lr.reset=function(){Bi&&Bi.reset(),Ea&&Ea.reset()},lr}var rs;function as(){return rs||(rs=Jn(null,{useWorker:!0,resize:!0})),rs}function mi(ms,qn,si,Hi,ra,Ta,Pi){var Bi=new Path2D(ms),Ji=new Path2D;Ji.addPath(Bi,new DOMMatrix(qn));var Ui=new Path2D;return Ui.addPath(Ji,new DOMMatrix([Math.cos(Pi)*ra,Math.sin(Pi)*ra,-Math.sin(Pi)*Ta,Math.cos(Pi)*Ta,si,Hi])),Ui}function ha(ms){if(!P)throw new Error("path confetti are not supported in this browser");var qn,si;typeof ms=="string"?qn=ms:(qn=ms.path,si=ms.matrix);var Hi=new Path2D(qn),ra=document.createElement("canvas"),Ta=ra.getContext("2d");if(!si){for(var Pi=1e3,Bi=Pi,Ji=Pi,Ui=0,wa=0,Ea,Ba,lr=0;lr<Pi;lr+=2)for(var Ya=0;Ya<Pi;Ya+=2)Ta.isPointInPath(Hi,lr,Ya,"nonzero")&&(Bi=Math.min(Bi,lr),Ji=Math.min(Ji,Ya),Ui=Math.max(Ui,lr),wa=Math.max(wa,Ya));Ea=Ui-Bi,Ba=wa-Ji;var cr=10,zr=Math.min(cr/Ea,cr/Ba);si=[zr,0,0,zr,-Math.round(Ea/2+Bi)*zr,-Math.round(Ba/2+Ji)*zr]}return{type:"path",path:qn,matrix:si}}function Ca(ms){var qn,si=1,Hi="#000000",ra='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';typeof ms=="string"?qn=ms:(qn=ms.text,si="scalar"in ms?ms.scalar:si,ra="fontFamily"in ms?ms.fontFamily:ra,Hi="color"in ms?ms.color:Hi);var Ta=10*si,Pi=""+Ta+"px "+ra,Bi=new OffscreenCanvas(Ta,Ta),Ji=Bi.getContext("2d");Ji.font=Pi;var Ui=Ji.measureText(qn),wa=Math.ceil(Ui.actualBoundingBoxRight+Ui.actualBoundingBoxLeft),Ea=Math.ceil(Ui.actualBoundingBoxAscent+Ui.actualBoundingBoxDescent),Ba=2,lr=Ui.actualBoundingBoxLeft+Ba,Ya=Ui.actualBoundingBoxAscent+Ba;wa+=Ba+Ba,Ea+=Ba+Ba,Bi=new OffscreenCanvas(wa,Ea),Ji=Bi.getContext("2d"),Ji.font=Pi,Ji.fillStyle=Hi,Ji.fillText(qn,lr,Ya);var cr=1/si;return{type:"bitmap",bitmap:Bi.transferToImageBitmap(),matrix:[cr,0,0,cr,-wa*cr/2,-Ea*cr/2]}}s.exports=function(){return as().apply(this,arguments)},s.exports.reset=function(){as().reset()},s.exports.create=Jn,s.exports.shapeFromPath=ha,s.exports.shapeFromText=Ca})(function(){return typeof window<"u"?window:typeof self<"u"?self:this||{}}(),Id,!1);const Tc=Id.exports;var jd=Id.exports.create;function mp(){const t=(0,r.useRef)(null),n=(0,r.useCallback)(()=>{if(!t.current)return;const s=Tc.create(t.current),c=600,d={startVelocity:100,gravity:1.5,ticks:120,resize:!0,useWorker:!0};function w(P,F){function X(ee,pe){s(Object.assign({},{...d,origin:P,angle:F},pe,{particleCount:Math.floor(c*ee)}))}X(.25,{spread:50,startVelocity:75}),X(.2,{spread:70}),X(.35,{spread:100,decay:.91,scalar:.8}),X(.1,{spread:120,startVelocity:25,decay:.92,scalar:1.2}),X(.1,{spread:120,startVelocity:45})}w({x:1,y:1},120),w({x:0,y:1},60)},[]);return(0,r.useEffect)(()=>{const s=document.querySelector("#IBOT_MODAL_ROOT .CouponReceivedModalPortal .CouponReceivedModalMask"),c=s.parentNode;if(!c||!s)return;const d=document.createElement("canvas");d.id="coupon-received-confetti-canvas",d.width=window.innerWidth,d.height=window.innerHeight,d.style.position="fixed",d.style.top="0px",d.style.left="0px",d.style.right="0px",d.style.width="100vw",d.style.height="100vh",d.style.zIndex="1",d.style.pointerEvents="none",c.insertBefore(d,s),t.current=d;const w=setTimeout(n,500);return()=>{clearTimeout(w)}},[n]),null}const H0=(0,r.memo)(mp);var K0=e(80208),S0=e(47755);const Ch=(0,u.Ay)(Vn.H).withConfig({displayName:"styles__StyledCouponReceivedModal",componentId:"sc-1or7x18-0"})(['background:url("/mb-proto2/images/guide/noviceGuides2309/coupon_received_modal_bg.png") no-repeat;background-size:100%;height:332px;.content{width:100%;height:100%;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:0;}.modal-title{font-weight:700;font-size:20px;color:#FFF;text-align:center;line-height:40px;margin-left:10px;margin-bottom:18px;}.desc{font-size:14px;font-weight:500;color:#333;text-align:center;margin-bottom:18px;.jump-to-workspace{position:relative;color:#333;::after{content:"";position:absolute;bottom:-1px;right:7px;height:1px;width:56px;background:#333;}}}.coupons{display:flex;justify-content:center;overflow:hidden;.coupon{width:240px;height:159px;padding:15px 15px 24px;display:flex;flex-direction:column;justify-content:center;align-items:center;.top{height:70px;width:100%;text-align:center;.constraint{margin-top:11px;font-weight:600;font-size:16px;color:#982A12;}.coupon-content{margin-top:4px;font-weight:600;font-size:26px;line-height:24px;color:#FF1D47;}}.bottom{flex:1;width:100%;text-align:center;.due-date{margin-top:10px;color:#985512;font-weight:400;}}}}.modal-bottom{position:absolute;left:0;bottom:0;width:100%;height:112px;.bottom-btn{margin-top:52px;padding:0 55px;display:flex;justify-content:space-between;button{width:140px;height:36px;border-radius:100px;font-size:16px;font-weight:500;display:flex;justify-content:center;align-items:center;&.use{border:1px solid #FF1D4A;background:#FFF;color:#FF1D4A;&:hover{background:#ff1d4a19;}}&.close{border:1px solid #FFE6C6;background:linear-gradient(89deg,#FF673E -41.97%,#FF4F82 173.35%);color:#FFF;&:hover{background:linear-gradient(89deg,#FF6035 -41.97%,#FF2968 173.35%);}}}}}']);var a0=e(48141);const gp=function(t,n,s){s===void 0&&(s="");let c="";const d=t&&t.cid?t.cid:"me";if(t){const P={mode:"org",orgCid:t.cid,payEntrance:n,checkoutArea:"workspace",checkoutPlace:s||"org_use_vip_mkt",initialWorkspace:d};c=(0,S0._)(P)}else{const w={mode:"solo",payEntrance:n,checkoutArea:"workspace",checkoutPlace:s||"solo_use_vip_mkt",initialWorkspace:d};c=(0,S0._)(w)}return c};function Qd(t){const{isOpen:n,org:s,coupons:c,dispatch:d,onClose:w}=t,P=(0,r.useCallback)(()=>{d({type:"modal:update:state",payload:{couponReceivedModal:{isOpen:!1}}}),w&&w()},[d,w]),F=(0,r.useCallback)(()=>{K0.Y.noviceGuide2309CouponClick("\u7EE7\u7EED\u4F53\u9A8C"),P(),(0,a0.iX)()},[P]),X=(0,r.useCallback)(()=>{const ye=gp(s,"","");K0.Y.noviceGuide2309CouponClick("\u4F7F\u7528\u4F18\u60E0\u5238"),P();const Ae=s&&s.cid?"org":"solo";d({type:"modal:update:state",payload:{chargeModal:{isOpen:!0,mode:Ae,src:location.origin+"/embed/payment_modal?param="+ye}}})},[d,s,P]);return(0,i.jsx)(Ch,{isOpen:n,canCancel:!1,canConfirm:!0,onClose:P,canCloseOnClickMask:!1,maskClassName:"CouponReceivedModalMask",portalClassName:"CouponReceivedModalPortal",title:null,footer:null,width:400,modalRender:()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h3",{className:"modal-title",children:"\u606D\u559C\u5B8C\u6210\uFF01"}),(0,i.jsxs)("div",{className:"desc",children:["\u592A\u68D2\u4E86\uFF0C\u60A8\u5DF2\u4F53\u9A8C\u4E86\u539F\u578B\u6838\u5FC3\u529F\u80FD\uFF0C\u5956\u52B1\u4E00\u5F20",(0,i.jsx)("br",{}),"\u4F18\u60E0\u52B5\uFF0C\u53EF\u524D\u5F80\u5DE5\u4F5C\u53F0",(0,i.jsx)("a",{className:"jump-to-workspace",href:"/workspace/"+((s==null?void 0:s.cid)||"me")+"?open=coupon",target:"_blank",rel:"noreferrer",children:"\u3010\u4F18\u60E0\u52B5\u3011"})," \u67E5\u770B\u3002"]}),(0,i.jsx)("div",{className:"coupons",children:c==null?void 0:c.map((ee,pe)=>(0,i.jsx)(Md,{...ee},ee.id+"-"+(pe+1)))}),(0,i.jsx)("div",{className:"modal-bottom",children:(0,i.jsxs)("div",{className:"bottom-btn",children:[(0,i.jsx)("button",{className:"use",onClick:X,children:"\u4F7F\u7528\u4F18\u60E0\u5238"}),(0,i.jsx)("button",{className:"close",onClick:F,children:"\u7EE7\u7EED\u4F53\u9A8C"})]})}),(0,i.jsx)(H0,{})]})})}function Md(t){let{id:n,title:s,content:c,constraint:d,valid_until:w}=t;return(0,i.jsxs)("div",{className:"coupon",children:[(0,i.jsxs)("div",{className:"top",children:[(0,i.jsx)("p",{className:"constraint",children:d}),(0,i.jsx)("p",{className:"coupon-content",children:c})]}),(0,i.jsx)("div",{className:"bottom",children:(0,i.jsxs)("p",{className:"due-date",children:["\u6709\u6548\u671F\u81F3 ",Fs()(w).format("YYYY.MM.DD")]})})]},n)}const Up=(0,r.memo)(Qd),_r=(0,u.Ay)(Vn.H).withConfig({displayName:"styles__StyledMockittGuideModal",componentId:"sc-1thomi4-0"})(['box-shadow:none;background:url("/mb-proto2/images/guide/newGuides/mockitt_guide_modal_new_bg.png") no-repeat top right !important;;background-size:400px 230px;.guide-container{display:flex;width:100%;height:100%;padding:0 53px;align-items:center;justify-content:center;flex-direction:column;.guide-title{font-family:Inter;font-size:28px;font-weight:600;line-height:34px;letter-spacing:0px;text-align:center;color:rgba(255,103,62,1);}.guide-desc{font-family:PingFang SC;font-size:14px;font-weight:500;line-height:20px;letter-spacing:0px;text-align:center;color:rgba(51,51,51,1);margin:30px 0;}.explore-more{display:flex;align-items:center;justify-content:center;font-family:PingFang SC;color:white;width:228px;height:36px;font-size:16px;font-weight:500;border-radius:18px;cursor:pointer;background:linear-gradient(88.92deg,#FF673E -41.97%,#FF4F82 173.35%);&:hover{background:linear-gradient(88.92deg,#FF6035 -41.97%,#FF2968 173.35%);}}}']);class r0 extends r.PureComponent{constructor(){super(...arguments),(0,p.A)(this,"onClose",()=>{const{dispatch:n,onClose:s}=this.props;n({type:"modal:update:state",payload:{mockittGuideModal:{isOpen:!1}}}),s&&s()})}render(){const{isOpen:n}=this.props,{onClose:s}=this;return(0,i.jsxs)(_r,{isOpen:n,onClose:s,canClose:!1,canCloseOnClickMask:!1,maskClassName:"CouponReceivedModalMask",portalClassName:"CouponReceivedModalPortal",title:null,footer:null,width:400,children:[(0,i.jsxs)("div",{className:"guide-container",children:[(0,i.jsx)("div",{className:"guide-title",children:"Congratulations!"}),(0,i.jsx)("div",{className:"guide-desc",children:"You have experienced the core features of Mockitt prototyping tool."}),(0,i.jsx)("div",{className:"explore-more",onClick:s,children:"Explore more"})]}),(0,i.jsx)(H0,{})]})}}const Hh=t=>{let{onClose:n}=t;return(0,i.jsx)(Vn.H,{isOpen:!0,canCloseOnEsc:!1,canCloseOnClickMask:!1,canConfirmOnEnter:!1,title:I18N.Popups.do_not_leave_project,canClose:!0,onClose:n,width:400,onCancel:!1,confirmText:I18N.Popups.do_not_leave_project_confirm,onConfirm:n,confirmBtnProps:{type:"danger"},children:I18N.Popups.do_not_leave_project_content})},wh=(0,u.Ay)(Vn.H).withConfig({displayName:"styles__StyledNestedDynamicModal",componentId:"sc-1bdx4is-0"})([".mainContent{display:flex;flex-direction:column;line-height:22px;.restore-tip{font-size:14px;color:",";margin-top:5px;}}"],t=>t.theme.color_text_L2),ul={contextMenu:"\u8F6C\u6362\u4E3A\u52A8\u6001\u7EC4\u4EF6",rightPanel:"\u6DFB\u52A0\u7EC4\u4EF6\u72B6\u6001",default:""};class ui extends r.PureComponent{render(){const{isOpen:n,onClose:s,onConfirm:c,from:d}=this.props,w=ul[d]||ul.default;return n&&(0,i.jsx)(wh,{isOpen:n,onClose:s,type:"alert",className:"option-action-modal",onCancel:s,onConfirm:c,title:"\u5D4C\u5957\u52A8\u6001\u7EC4\u4EF6",confirmText:"\u7EE7\u7EED",width:400,children:(0,i.jsxs)("div",{className:"mainContent",children:[(0,i.jsxs)("span",{children:["\u5F53\u524D\u5DF2\u7ECF\u662F\u52A8\u6001\u7EC4\u4EF6\u4E86\uFF0C",w,"\u4F1A\u5D4C\u5957\u751F\u6210\u4E00\u4E2A\u65B0\u7684\u52A8\u6001\u7EC4\u4EF6\uFF0C\u662F\u5426\u8981\u7EE7\u7EED\uFF1F"]}),(0,i.jsx)("span",{className:"restore-tip",children:"\u53CC\u51FB\u52A8\u6001\u7EC4\u4EF6\u5373\u53EF\u7F16\u8F91\u7EC4\u4EF6\u5185\u5143\u7D20\u3002"})]})})}}class Sh extends r.PureComponent{constructor(){super(...arguments),(0,p.A)(this,"handleConfirm",()=>{const{onClose:n,onConfirm:s}=this.props;s(),n()})}render(){const{isOpen:n,desc:s,title:c,isHTML:d,onClose:w}=this.props;return(0,i.jsx)(Vn.H,{isOpen:n,onClose:w,onCancel:w,onConfirm:this.handleConfirm,canConfirm:!0,title:c,portalClassName:"secondary-confirm-portal",width:400,confirmBtnProps:{type:"danger"},children:d?(0,i.jsx)("p",{className:"desc",dangerouslySetInnerHTML:{__html:s}}):(0,i.jsx)("p",{className:"desc",children:s})})}}var zp=e(93240),A0=e(66748),ur=e.n(A0),ic=e(480),Wp=e(78869),fp=e.n(Wp),Yl=e(98236),G0=e.n(Yl),Al=e(90503),Y0=e(30973),I0=e(80396);const gl=u.Ay.div.withConfig({displayName:"styles__StyledHelpCenter",componentId:"sc-179lhd2-0"})(["z-index:",";display:flex;flex-direction:column;width:","px;height:606px;position:fixed;border:1px solid rgba(0,0,0,0.12);box-shadow:0 8px 24px -12px rgba(42,6,70,0.24);border-radius:16px;color:#333333;overflow:hidden;background-color:#fff;&.is-home{background-image:url(data:image/png;base64,",');background-size:auto 800px;background-repeat:no-repeat;background-position:center;.hc-header{border:none;}}&.is-not-dragged{transform:translate(-50%,-50%);}.hc-header{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1px solid rgb(230,230,230);cursor:move;.hc-header-left{display:flex;align-items:center;.svg-icon{width:24px;height:24px;margin-right:12px;cursor:pointer;}.hc-header-title{font-weight:500;font-size:18px;line-height:20px;}.hc-hits{font-size:14px;line-height:24px;color:#666;margin-left:12px;}}.hc-header-right{display:flex;align-items:center;.hc-close-btn{width:24px;height:24px;color:#666;cursor:pointer;border-radius:6px;&:hover{background-color:#F2F2F2;color:#333;}&:active{background-color:#E5E5E5;color:#333;}}}}.topic-wrap{width:100%;font-size:14px;line-height:16px;padding:0 20px;& > p{font-weight:600;margin:6px 0 20px;}& > ul{display:flex;flex-wrap:wrap;padding-left:20px;margin:20px 0 32px;li{list-style:none;flex:0 0 33%;span{cursor:pointer;&::before{content:"";position:relative;display:inline-block;width:4px;height:4px;border-radius:50%;background:#333;margin:4px 8px;}&:hover{color:#1684fc;&::before{background:#1684fc;}}}}li:nth-child(n+4){margin:16px 0 0 0;}}}.topic-by-category{.category-title{display:flex;align-items:center;padding:0 28px;font-weight:500;font-size:18px;line-height:18px;.product-icon{width:30px;margin:0 12px 0 0;}}.link-list{height:320px;margin:12px 0 0 0;padding:0 28px 0 8px;& > li{display:flex;align-items:center;padding:0 20px;height:40px;cursor:pointer;.svg-icon{width:24px;margin:0 8px 0 0;flex-shrink:0;&.get-more-icon > *{fill:none;}&.link-icon{& path:nth-child(1){fill:none;}& path:nth-child(2){fill:#333;}}}span{font-size:16px;line-height:16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}&.is-active{background:#f5f5f5;border-radius:8px;}}}}.hc-search{height:486px;display:flex;position:relative;.search-match-container{background-color:#f7f7f7;overflow-y:auto;overscroll-behavior:contain;-ms-scroll-chaining:contain;padding:20px 28px 0;width:292px;flex-shrink:0;border-right:1px solid #e6e6e6;&::-webkit-scrollbar{width:12px;}&::-webkit-scrollbar-track{background:transparent;}&::-webkit-scrollbar-thumb{background-color:#fff;border-radius:6px;border:3px solid #f7f7f7;}}.loading-result,.no-matched-result{height:100%;min-height:204px;display:flex;align-items:center;justify-content:center;flex-direction:column;& > p{font-size:14px;line-height:28px;color:#666;}& > div{color:#1684fc;}}.search-match-box{.list-title{font-size:12px;line-height:12px;color:#999;margin:0 0 8px 16px;}.result-list{& > li{padding:10px 16px;font-size:14px;line-height:14px;cursor:pointer;color:#333;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;&.selected{color:#fff;background:#1684FC;border-radius:8px;}.result-divider{margin:0 4px;color:#ddd;}}&.customized{& > li{padding:13px 16px;&.selected{font-weight:600;}}.result-all{display:flex;justify-content:space-between;.counts{font-size:12px;line-height:12px;color:#999;font-weight:normal !important;}}}}&:nth-child(n + 2){margin:16px 0 0 0;}}.category-list-bg-mask{position:fixed;display:none;width:',"px;height:604px;margin-top:-73px;border-radius:16px;background:#000000;opacity:0.4;}.category-list{position:absolute;width:310px;height:606px;margin-left:-310px;margin-top:-73px;background-color:#f7f7f7;transition:margin-left 0.3s ease 0s;.category-title{display:flex;align-items:center;justify-content:space-between;height:46px;line-height:46px;padding:0 16px 0 40px;border-bottom:1px solid rgba(0,0,0,0.12);span{color:#333;font-size:14px;}.svg-icon{cursor:pointer;width:15px;height:15px;}}.category-catalog{height:560px;overflow-y:auto;overscroll-behavior:contain;-ms-scroll-chaining:contain;&::-webkit-scrollbar{display:none;}.article-catalog-box{.meaningless-title{padding:16px 44px 8px;margin:0;font-size:12px;line-height:12px;color:rgba(102,102,102,0.8);}.article-title-list{margin:0 0 4px 0;& > li{padding:16px 10px 16px 60px;cursor:pointer;span{color:#555;font-size:14px;line-height:14px;}&.active-title{background:#1684fc;span{color:#fff;}}&:not(.active-title):hover{background:#fff;}}}}}}&.show-category{.category-list-bg-mask{display:flex;}.category-list{margin-left:0;}}}.bottom-description{width:100%;height:48px;background:#f7f7f7;border-top:1px solid rgb(230,230,230);border-bottom-right-radius:16px;border-bottom-left-radius:16px;.svg-icon{width:20px;height:20px;}.desc-cont{display:flex;height:100%;padding:0 36px;justify-content:space-between;font-size:12px;line-height:12px;color:#333;.desc-part{display:flex;.to-hc-page{cursor:pointer;}.svg-open-hc-page > *,.svg-triangle > *{fill:none;}> div{display:flex;align-items:center;.margin-r-4{margin-right:4px;}.margin-r-6{margin-right:6px;}.margin-r-8{margin-right:8px;}}div:nth-child(2){margin-left:20px;}}.svg-rotate{transform:rotate(180deg);}}}"],t=>t.zIndex,t=>t.width,"iVBORw0KGgoAAAANSUhEUgAABLAAAAOHCAMAAAAAJ0pmAAAAOVBMVEX////+/P349Pn89ff28/z9+vv99/f69vz6+fz/+/r7+v7w8Pv/9O/+8evN3vr42drq7fn74+LW5fuQQ4LaAADRFklEQVR42uyb3ZLTMAxGqRrHBnOx7/+0UAvlVHyIlLAwXCA7tiz/ZGHYM5JiPtyfZL//Idlbq882r0u1u0WzKtNLNVuPL4zdtt9ut2bmo3cS2/3MdxV7aVGIDw1pt4c0nzyWWCV33+DrHkOWovbbkm6VDD8CQW63Ucxw3K/P8lPZJenfZBiCbGpQm+7aYutmo91uvW/2tfyXvy8f7vtRnFgYypLkcyhqQZ6Bted15o8L5Aqj94iTKm95/GLud/PJ96n+2+7a+9Wz+Qws8yGGg1hAR4ElG2K1PwqkJeMasfolJo1yOsN5XETW/Wt5gOunDKLdxI7uj7db8K23WwNZa7auV8nGLsTPoilk+vPS/NSJf1qegfX5BFiASBClrTHrLlaXHYDHoJULDpbrEMpwuXC6bg4Xn7zi2CC8pb2njwWYz5c4YGL47G45sXrARwXC8RfTDu8qTv4RsX7KjvarxAIWF6YhVjPbcplQxOsqjL3pfUGrd6cNDRhxkAjEVFeoPWDRb7c2XmaRree8bNO74BF/RK8uoYe9lLlq7hKR3I5qrnlllPf6ptWie82FDgvKlbLNBSycq3tzjUpFcHGwGATKU5/dtO8SFK4dhkflI3MIPTpX3JyYtrqwHr+Ye0wyn7STkgd3J9ZwBlwu6cj6JJbAlETukIDLWqwBXtj8rNgw0koOfBdi2e8Qa6uK/1iN9xKaCUQQbPf+kEd7DiQd4lcx5M2Bur7+fWwGi7RmtkxzzVUaY2oJkGK/C6sUlsZsha+sgiDzZ8oG45UwDaLOTYRj37b1vIV1MnwLSyxHmeXj8sFx5OXBlZJYEuk9jU16Wdn2hgEBcieeCO5WKI9NgYQ9fCyJHXHiTsT0J4KC18TkxEoSzlwA1rOQcnpJwsfCwQJdLCmJxYJRxoumuHklj9XPc0f8UYU14TNt2eDGiAttISs4t1qvYYEMXhDYFBpGSGJ9PGLDLbGoElxE16bNZ3AdPpbFMeYd8Eyh4imadJCBwBytOEVI2pGWU1fnStr6FisR1sTypaDNpK/qwNqfaOUuVhUVSvQHQxC3fM7wstfz7maSqTosuBsxOoon3nGwaCTmLKrdw5liuUFBu1LzAP+qrOTdQyOMc+bsDpciJQWNcv56BAgJMZWC7QqxmoCOsOyUWDBhRo8P4691Jwa8pAdwHZvoHFeRymITC5RTxlHZo+NFDJwgvX9qw/nlLokWorzA1Qw64UrxmHc5+uMUvDA2FXxChFJYXDM8KMSYZ3FoeEhMnwIU9wo8saIWgEVIuEroWhO0/EFM9F0zWRDrMz18eM5aAQ63axrLxadW+cinQolcQUclYJDD1ceySy0D+pLbUNspqmQKYi0RSKns+Cnl0nbiY/Wf+lhVjPZSVDhNZaZo9ZNhzm+QAJEukLUKyEKqo7Azk23BDzydT+3TCHCmWO9hlLokmBX+FTyiwrpk4dVVSh8TDopIvDbTxwcpAvTKLitYJNY3iwZW0SMQVFiqrPsAihwyu7d1reM5QQqtA0uDQrBnOBY4VMuowMKvM9yW5nBxm4LjJIcEIWKwzuiHj2XXcGVp4LUqGpcegp5TTph1GBudWEwFm5/lwqdCppptB2a2R7+96mNNA1CTHn+qx9fCnE+iUvCeQExf8ujUBYuVjgGFGNbwefJcGB0cY4w+AjypnFSwpAKPYBmKuVoLHGIEDSrMqM+UzDlwzCn3wI6xL5/HCYx5MM+J4tUFD4ty/1iFhNClFLOMh8LFEmhBiIQkHB5WMIoajaexLIM0Z99r9yrB73ip+ydmLPy1lm0gqxa4ic0USk6sVt1qCBv7Bon6Cm7jjFi9JlZj27QsA6acpLk2K4RoFQ4dsMogQ6PrfYycfWdngleRe2dpFhwgwDHGSFl1myYEojqOYm0Un7RcY0I8MWUWpim8oVOs4YvBF7A4NY40pQ5D5A1ggaE3XTvD7QJPKEGuAFaKAuu8OxiAM3gTCqBMJSXWnmbJToGm6OJ383Mkcw47S+NTIdwhyjIcGK3wDF6x3T+R8ZZfa9M2Gqt/Cjh19EIYiKWC6wS/POI74t6TC6RXiNUkwjrxsZhOO+HDPCLAgUO5eVuHc3RIjw+GQ/eobDrBFtQMLrjVxycLIk1XVu9t6XB5mQFBZVtWNtapWHTi5VgGDNGi8sMYMFzVAk2wBnpZfuFUMoIsAkM0ZNb3sPCtyLu/9JmQFJV09Igk3gshZEmIRPORMoHEe1qNC6aSHLmECA5pHPoeyEI0Xo2K8ZkrWFoilhDKRMZaDvpoE5CuX24YyWOZTDmS5MnImjGMAbJVXws3L3CG3LsPeVO3fl/IkqjwOWwDIApBvkaibLwYX8f9rN7L+w21wKxpkquSr4S0CL5V6fEwkRmidUkaoIOsic4iOmhUBqNzqs4qNgAsWIVWRIXe4UIZ5ArMiLAMF6uOLfEvoE1oqPICs9WOSLyzkPw9g1SMFfq1MhLv3Vf9ZlAYFqZoJSIOkUuhd4gloKJ37djSWJ59NgbtBWL1kwukm6mPtbqZH2+Y9ias9Fu6RJpQVYlSzQPD7iKhI/QBZfBJexJYx07iMByt0aurUnX5/lqWASa5nEXsKeD6hQ+GuhhlYiJOFByG2apjZyjJn/JGRMxxd0s8LK9x373+SqiOlmSHckRG64e0HAi6mQQYPk6QSI+V/3RIypz/VSi+jaCANems9FnyCDV3EPoLrf4UxgPGNJEliLUErqDLx4QnFQjnG4pVv0CsURIr7iVI+NRLrORpda3m6nH/RuzRCBKIsIS13H03DwxxqM5ET+JlZM25NGVBEhuf+saEzXRDPSo+FUADWX4S3GIV/WpQCzhp2lt9JjJZmuEiqDT4FJWfizdVlxbeDAuXSlGxvgn45nQPC3eqDgqdU+AKakm0xWTKoJ8HhTkQkgteOZGEvvrwlfxidwod2YFK5fR0vLmFUHPnZS+0vDGbUHgTY6w86UK7fNbbK/qoXVwy3TheuI7VywxX+n0WHyvLzHksLGxnIWHhJ87NASHkQtdrWVx+D9g8fyhkl/fsr27K04Yz5DpE6dadWrmGkLsKzWGABWEnuGKSMbZMJddqIKkJq27hXMBV31sPLs2jfWOop4ulCglRv7B2tttSgzAUVdoOHekP3/9p1XIzO+ceY6sjjhSSwPix3CsJoXJSiF/lzklDpnBpZNLBV13b4BvLv3mrgQ8pxeBAa/v4Z4yh+zv6XRwRUvak+DiJBfLu9dG5CLECnRkjyaXXhQgCNSZyaJhz6mTqWHWzgLRd+VjuLXVSWyvRHuqevapYPhBy0rDt5bsWHCMCICl+72FnwR5bMqsjUOFnwkciS/8VHq6KHkcYW8w+HzMCaD2XDCHwKmpIFUvNWSNpKUGNqlTfdDe1ZIsRRVlGIfe+TGp5e+qwqB89exgGyQ4PBh02yMy0JNYhRoABbuQ6cXOZMOCODiI2zVSQH9GJnNS7Fjfc6ulMpL9FtW0sUrSlFpO4CN1QO7Syqp/maCP0xewesXpNLAkL63qsVQpBpx7xMgwJOfceczikzlAd781U1r7n6nfZAwEEQ6MjSezDHYVSAGbvu2efaKojY4W1+VjS12VZuSqhkZDHTvNSzbyqCEddw/Ixv53g0w11MTUKCAcDFWL8vajDOl/L8Iy8O5+aVsGy9ihiQ0BxBoXbS8EAA0tYN4uxCOIkmqNMkvJP3C+v5QIUfmsmruqoj/U+spiYh1XMirdeERXiGjrXkC8fxJoc1nvQ2NXEgnp1bWm9TOMpcu/oteFx2UEmSuXIygfkIPfAMLAjsAtGocW58XwWnIIZWigV0mmOnabgrbXaFaG+C0TxLJoThN4xEx+kGvrVVlgaj1zqnpVn2dgBD0u4FC7W9uKVGPjNHI8JvTUWXqSxHEyEgGnuQJsGERRuc2rJf8tpUfXlKSe+knKs+0EhnYqwmh/PYRU3Io1HZR5L7Rjuk+Wu9kjz34i1aYWA12MNGJRoY9UNLFRfrZ803cBLtrcGfBjN+zrksrDQhJdtLAy05Jkd3Ck+oEvXkJAyBv2BMMlGKGAw3+YE89YykWIGcfDFHIb03ggE2dbgiAl8+k6nph4MsjR5WPKZcZseEU5QHdlfcccICU0XbEKsskmk5iEdPSNO0DaS6B574X2xsOHL0Gdi7eem/y8opCGjZ8AbHKInNWXFngt6GrLOvWmEhJEXxFq5pFPBbCv9o14UiIaa3HsSI9LaC89WKT2Q05CALCJDJ51tYiRbVaf5Jc3BT9nU5+hwTAyBKAHYEKS9yk+9RosnDhsW4p4ZRzQhD4CAVzwI/0Kc6rD85ViWKpNjQvLuTL9XBVmewwJKL0/qGQIeRTvqf3qADNfhVuKd9ZAIgMAVMuapIit8LEWfM4Pojyw+seSpAB/teW76Nq40C+cymc4BjFICObHQ+Rwfiw1BVXzBn0reqTyvS96puipq3lftBq/cE0bRIVspcGArAKP1DWhsDrJalyNF38e380b0CC2msArxlDYDngWbxsmpgWQl/e4bMWR0HQ8qVgALQukFTQxYip6fKIARMmZpoophyfovGUvyjPJRgZm5VCSxQkRDwPA6KLRKK1iF12QBorhOM1JCyTooAqWQ4GdZAoyS97dPCctcFrPKBLhIeToyT2Vl3STWhtXrlDQtfbxR8r67RnysCkcQq+CBv4oU2oHGAiUOL/WyUP3ttRwaxGkrzCKHzg+pW8ItGlRgYUo4mE4GVyS+a/EyhYskOANDyRALzNA0PCzx9qooD5lVYTlQP5v3LzhRPKIYi2kUqB/CoCOeQQw58WshaKH7ELWTWGF5RS2jXstxkrOzQawSm+r24bzMXqCUctpses/DctcJuiJExiL1TRkrkfCHJGTEEXPhsr3M9U9ysYvQdSJ8/zOxgESUMmieiuaHhVi4IxYb7VXQatd0Sujxuqyf3c5WmrK3Yq+iapXew7W548jxHfrAGyQKNf4WEj4xZzxedVy6fXT6yPEc09Bx4MdgWrBCFLGKRYY2CfzgFxPe0FDn5fe+d+qwrOBd0li80N09G5cfZoNJu+ljKfbILYmK3fmadFRoIMP21GnSPoSA8BzHwll8OTX3keUiv/N8J4elFKqvAHL4IGEkYfWTNz2wJ9svd3ysvebFFuvwfPQsEAYxJCw0AwbDMlmstmL3FaFK4NE6kTWb/ErMcl1dulapLyvp5CM3nJVrBHyMG4eCqKxx1bqyIW67CMhQm9FQPUzCFjENdKms4BSgVOvz70hfkaxngqfkKQUP0orwDyeMBhuOtGJ7xI5sfnFiSJZcXRgMCJm4B+3X9HRZAIspBas852p8rL85JXSRnwTytF8ldnCFIXSBVhYbxuI5/hbE+sRA97Hq8MivFbL2yy5wUR/LSrWABMTCgAGGZLI2RGhv3KlBc3pYy+SWVzWwBvzZrgjS0t/TauSgbzhcfisZWlYaRETIV1HLGZZFK1PjzPHbWFNHhkzZHBFHfEwtBmSiYeK8Sk6TF/jxORnyVU4KD6qxoE+RKD/UhmEIHsUr3jHPF1PYm4Q4KOCZShGeERWG4BO1GnijhkEokrwOtpibvuthWeKNxpS5/NbVI4JYVgVKeSir9JIO27Hy7LlWuNrnRh5rL+Owjkx4BkG6Ks0nMyerfiWM4yx6e8XfhJaDSFAkct1UgaVICciUn+yVddEJL3DghIXilw3UVXKe9aqizgHqiGaEuGHEFhpnovc2OC78DugIFml93wWX1dsaeG5L0tT16S5CULX7QaGd6VnoxI3pkJKsCQJ4KaZtR20EXdPAjUs6d3DFSkTqcRlO86zxwAysxAB/CIxZE80kFjrreR1EEfd4ybuwpMv1PvexhpIEiQJLtTH85GR53ZT6IXLaB+CyoC9RTeqAc+9JSUTi7OwYC3m8qTa2y03iRwOWRI78uC4lHVf+FjZa6yBqNF65gHj+wFBLGZxTYdrP1oBg0n3xiJCrOBt+F8x6eO0mDR1jTS8lYt0FlrytSuRqp+ptZmZjLV9uGDIQ2n84TYT4INQse3WuEEknNELkFbOCLzjlERwyDfS89l1uIbIKswViJfKMu5d0YvPhuu4YUrPegYQ3Py7c6xw4I68BtSqH5eMVNNfRZf11K7AKtFAorz9oTFRg1wyRQrHQTtsRg7rBGB3WmSdmOFdQ7AdrZ7icSA6DwVtnFmbXqRSV93/Y2xi0zUejzFF1Cgy2bA/8SZekkeVHRHmPEG2mzlZz3Tq1NaJTc5Je13LJzmkAWxGJt0uHnpHcVNibYK7H4qBWsRDyvJMefqoDrhIkECIfAdJdbbAQ4bMxzsebdLg5qjaG1W2MZmTQYy2hNTw4J2DVJR0/zv56m5c3JrLmxW2FRglxLNtYdvb8sHA+OoKzXjKygKpYlWxi2EhbqKp3f0S0y9kQ4iKlgbHcsWxPkIZ9byOMaXxdfYdelnFIsBlIpJGIYslgpRPNTLXoywMc559/YOWMivx6gu4JLXbooGrFjqFBddLUtanw/5Bii4q9E8YKqEWRBoC12lEIAkrhcbKtsN7tVYiSxZXWk2JYnoMfmWR6TizxC8+5NkJfPiJPnkYQyzvzDks37I1dArJEDc+w2MgyNzcdzxXOIM/+FMzK8u9b0ImGeWYoYiVV+w5dj9UYDoQbpXRppN/fc/R1i+kg3WZBUyU3G1YTTWxvHoThz+ftTGC91rSSW3Pen5VLTqMLLglXTU+ZWQpjvXgQqcoIvzMGd9gHzZpRbKJLrhfbgAWsKId+okjgwVNCxazaI3xQ1CdrZF0pcWGdYW+vkFmCUhHr82PeNGC5GtdbUvxYXPmeWGUgycbaz9xr1it3FuIW2q/DyOKMCniSv5WuMhuYVmwiAM8PkBwgDFJSckHndenV/D1K6myUscp8VLxptvWPbVF57WByLoI7SPOccfng2znG1UkFQfd3uYWrH+mjiMLu1WrxNWo+Y/2mQq3GAyye0CHVEkRcZ3PAleqLQq4MrtccVwusr2MjNHx52cKSkZVpZA7g+ddQLiuj5PA6UrOMsGV+zo+Pj2L8kNgrdLH1/aBosgWvS8kPCG4hMENjI2uXI9hku0sdkLnGstZ13yGg8iYY4nZBwixh1bwe68PMvPhFcVNWo4dSpEE0yHAR+Kw+M1nrW9C0oeUTV+sP/ULV73OSyoUhajWjsrDqRTefFIao70ysQbOvjXV8z85DSieLfXE1tULHdrbiIMJqBD4iKg/iSBff66YGFQTqccXaiLkzo/kp1SjeiliuRsM8Z5x+/gHW5TEXAoBhYzVoOfQKtzaONb2EKXX2KfpJ8/FxYe3VCU4p5X0TzqqRK8km9fmrxiGMks9MCAulWYG4RAMvL0l1hbT6r7BMNVBwka83gZDnGWP3cv56D7y/upNMvKiENetGF+0lpPlXtfLd0Xx/UCHdthYM0whjobRglkVmpbtxUgUgglggbbUJWulF9lLGvYpvdR5D+HZclXPhAUWvegsrZ4BPKFNGIjZWJ4CsDr3/+COfyT6c3wU1PK6pmNOxV1gLRcvdITGbYcaZxXt1RC7nr3schnFeNNEsAOQlre+IfQXCHBknvE2R5DCdwrubQphqvJOSCvmQpg7WRFUKp5xb5RAVt8PWWlEA8zJ7f5mIPg01LKxGSB+tpsDWB6reK/LuSuWne8YsYhWt3hNGiPPZdYjEvTWDagV38N8Gt1KyO0raWagZCo7wCrs6DbawlHkvWOWM4SWMFFABLMRa3cPyDT//+fz8MrHmUsAq4CavMEssbMfEYl2aZz/ZWMiJ0THlrpCx70IkK/xCBdRV9lhMA2HM2M4ZzdJ9onyDD48uyCgbqz+UMNEUoIktPdUHhJCK2UflTV3tCrpE3Ar/UFxi92Fwim9ZofS93fiTNl6/HdpB9144WNUGGGXewwzqxQQi8C77yuKi7gIlqGLOLa87bCBVdlEd9zIxUD6UcMAr7HPco0dTrDWM8zOMP/pARXEsRbEag2v7XMT6PDHzISk+i81sL5xh72eFmFqZ3sDVGVmWKfRE4UEU4gqwAT607wlXwazKz2rOgWa9UMi9kh69YBDRhlX6tKkmKL1eiTSBhE7JVtmZRxVuyCANJUdUTBtbdNIxPbaw7vcUKsxFnCqY824jSd0u8D4G17grzp5umXGjpA87UWpUwTBABAuGUFEsJPJ+ynI3bf1QBhj1xFSDXFUeDSwnPSCWzSvL5eNmYmVYftyX4IJYjeej0g2KvG8ZO691586/cqxr4yaBrhrdMLIgCfCwMKd3GvfKJD2Hsec11uUFc2nEI0EGGNuAUVBqMnni/yGRAvaC9KdO0ApeyFDCKJNwy3aM8Uu90DCt9AaWhdwGh7kogyUwKfMTrYj19xAeCsTLMXyHZ2AGDsAdG3FZ+bymL4WSnvjVQT1cMJD4gziWrvTczO/iFevulHJXGcEeOiaW2fX1iPBmYmFTeUkRi6B44uX8LbH2LmlppTeg1IZoGVmTe9AzrlkhrLgLUlBkHO1ZOGtz4jxt55mGl6ckhNI+yasKWvHsUJmi3DFgF23Eta9axNnZA5hCm7OxIGBqGbB45CKX8FBqh46z4b90TYl3PhQsF7E8ZEkKduohegySG9ZfES+8vzCvdIApfIidOouDfY67caUHfvzRcXEv05Nf13iFQpT6K2m0iJU3wcRyARtbRMdeoRPXiVJVH3V1mWKZzslaPwQrC18w+EGDK0rWQNWb7OvylHkbSrqMrTdQalOrBgr+5Ac64E4jsymwubTQsDB0+rRQpscib/srROVaGlLQC1/wVWBV2Ya0rU5ooBUtbSNER2OQP8rAQa4Ea2XKJBfJF8XGKs9N9k2SoGZlvlZhjgXrrs0uQnrRRJUvp9dCKACaxArkFkXDxvIuQZ59nsbHRxHrczsJbFxV0O9Vr3DJZt48zceSmRM4m1+dN+44bWQ5yx4QdX0DC/Zcs98r28FLnI8FtsKSumcUOJoJpptqvebDpOkDK5Y7NsAd2NKZq5bZ9xzQyi6zvHYKS7prbHu+mGAQUMcWCli9U7joZGzZhUGV+Y/l7TE1wlinxoqSpxW04XMoklRJoZXcgE9HeRmyBOgP+nyJkqHwCm1I0bPpxVsgUshdxbKYDjnrZ4dXSFCqiV/d5BZ4pxqNNyJCLIqIQpbtyCs8Q6OIiC8WVEfkchGtlKlQvENZfZlkP/qzs5h21uLW27KzWM6CFo75GLAuvApIFEkmJxVW1VDNWtcNPCWbABYPEyVDDhwyY9QV6NcAOwlHVHyo/sYEUuOFOHB0qV/B6dB0l+YFYEGsSC1Nu4cOfcuI8bFczp+wL+0o39BzhpzPxEqlYw34c3thorA2KyJwU95FPgr6/ccYFmKjSeAvPX/MTvylkI/l8FV1ZuGqkPV1vTjjvTQq6Pfis8IiHIxQttWEGrQdyBLfbGRVpSxgRCsApiF1WDMi08H4zDLJPhUoeBJFFtL9o7rfHBP1dkeruCKuc7pUj7yR+Nxmm085QiuQxwcL8zPnTd+q0aBS0L2VX8GrZSoJMU6Jt6lEG0U6hSPRRAzJtwA2qJ2hvj6xsYQC+JZxfICGPSaIZCVmvhAdTQaBbV3k5yYs9attWi6JfKymdsNpfPFJxPpCVt0ms2qxsSKoHE/wKOhniSFYoKR3RbGy2Pv0s0Y+XcRhb8/96e0pdzdyrPbrjh2dDwab3NWB+M46uLOZwuMbDFU3T4EOxbx1GB4xbRLSN2lSa4rRdLboZEVcGa+vsW1FOjvrmpj7y8A6/VChmdN6IyBNoaz32kqIhv9PMt7H0h/L8FnvWCujLgkZbKz00VgYdVtqlJtjzFzbEGt1D5OvcpAPvoavaqNdzOdSVC2wQqzYUVTLNnAVXuGSS+w5xNAMG2tzoMleYY6dIwbl4g2MpsgQyzugSs3v+rWAx8d10RLDRJ2wsso3TAJiYMlO469YlA8NI6P9Zk7xrjIy8wZwXlhdOJZ66bAey9Qn1GjOmCYWpRsYOmgm7qNnzWTUpVqvxLCQCjNRxs+CCXYstrGqYzfqoDwEMXEy3DVrpWP9qnnkmCbXAFzc8f6u1Se74WdicBhX3v4oo4xWeKH6E7SWYGAFsSxlXQlZpb8cHXaBbBg2flboE1Y3M2YDRpOhQNfGJMl0xH7NJ5SlM1XpYi06eZSeSotWBfh1xYpjXZuaFbWSoVEIY7GpUMAJ1N3mMwGyWNCmgdRbW9I5I7QudhCnMEi3cTD9LdDKwDomFtyw5B7D8R5ngPUCsbBVWukzGu5AJAOs6vk9PF2rhr2vpfR5hnFAIl4hIzmvt7CctMA4xLWF5R65DZiGVW2mnGAkwletV2hvEhvrzUc0+1mhT1hVIqeT3uWmTRlizdNBrSTFQdMChRYqNIhqUZ/06wpIE0t5M0iWdYw5kweSBbPyPZXaTgYDuVql1Ek81/UWg8L5CDR4N6ft9OnwnoniCIt0DazjMFbuX84/W1i1tzCwoFj6iYz3rFbDKr4YNhD+BgWZK++U97yh6TaAnyPgNnaKWENnTBtzoeFP5ln7omkTK86Hhlix32a95ucTYH38IdYFtnmzjiPvAGY7fFa4MyQHzObT1JdQJMvnUiTEZqSkKavCpJIRJQfRsnBV4OK5oQToPbqEs7Ci7X4KxDOMkF0F7LyYrrMqfDtwZHzU+DCj6kLQih+SzxgTVdm7VPJVXeUTyiU8NoI6o8plHipZ3RVIs+VSM0NDtBD/81ffhgndItYg4wF0uEwVIS0ZN+RlUdAvvsxNa7pMd3oCGy1+kuuujq5qctVpuDxD1mX/4R2Id5Yb2Q1OqgJp3xJrGxMGbcrIWuPc1piQRj4hCKKE8t5UTI6uKyhHEWQ+A1l1VU6pZFEiMEJ/XQBNhuGryR9zMnGU/T0ZAqsBvuFAZsIInfJAETQJPibT40Yo4RQq2X4XAevYKTSo8rUu8n4aGXYKPd6vTq6ZVvfg+FuB9LSaeuKXdpvhxS3LVGF2EUuZYjSFK8AjXtJqHxGaV3A7qyY3dWZkZV32f+qAVS4AK7xCwYI41n+0sewVJiy4LZGpg3rw89lteWAYMfDVRmeDSvuk6Sa09vUezikN8kFM+KFI9h1kikalZXRdQ+n6D+UkPp73PPl6M8p9d0AHhhUEy0iVWeVJXDGkemC94hKS8H4qHoGriGkxFDH1IXh5+99e5+gMB6DhiYyTHBqPvhnUglgOV0GQKCajobEeZGqDzSIWOi6OWFmT3NEcOYS0QS1QxiCCWEpeX8vukPU5l8dsvpGPFl5hFwBKr9Bj/AcXYewWTh9IgzCLNxK3jqqpvxsDSCVCNSQJs6y27ez7tZFT0g2lkc8K1wXryIcaTp1Zwb5CskbbPYrK+DKy+lBSvQca2jB3gCEsNF7cYCirPQiaB9lfVhfdy8A6/aLZT3r5OWGeX69yBX3WKIwg5ZucBmedY2PJbqFLW2BMjGGk4RW2uBqpcR4VL1Aul5AF+SvlFo6MvD+VE+H3yUmOYO/4WSH5VNU48Ao1tD3fWEiLHrNCxJkAED9597TNSVdN1gO2VXXv/dRbqkM14lfpGyj0rqeDjSxklXs3ByGr6molgfjuK2g32Dp+cOcwvOyvbgM1K4925ECvl6o12Ck8Zpsg09YmfbHG+3tVczgpNqSi5wE9MiDPUbqPzS1ZfwabZHUBFnOvHbzCQJRtJfPM2DG9TNaeWJmh8a1XON5m8WoVxKpih50/6IPxmzjWgY21pUc3h60n5T4cV8mSaYUBp1CWKKWHfNlOZoEyuuzcoX7WtnXllSPtHZPoaJNgqamnjA/oxRn24lbcpBcfYl89F0amn23mQy/fl6Fc58TRV4GFU/i68Owvswiy7t84ItaoBNQ2lI/HmDXawcftCHvSqFSiTyyJaRG6AoXYWPkr6DuqJV5VP6Ekl1DDtTwaXeT9DQiRk/Uvc2ei3LoNQ9GakUQl9EyX///Y1qSQA+gGYuymC6wnkeBitzM5A0Ag+ejNkdBkmTKEAjaWnAwxfVfIwkKgQLnKYTlyUM7RzTe8wSiUzTNLrKxFTxsUkIlMtl+uJvvj2h/3rpcB0Cfs1oe5xGViGvMDKZ77N8ORMAy7LGbLz6VIPaKFu6myJNW497McBgaeWBv9m0wzA5Y6hT8kJRYJvMOBbwv+U+LZFbd/A4t0YI4MMW9TmxzFMLbC4V/0vrKwdIUQwvjQrsTiEUdLHMvFtqCXmVh/vJmS9QBFhC4vrSvULf10SY4ZJ7RpwhfdkJaUgSFpWZ6VCiqU+H/EnRRyo5UVRLWMeNaQL8/pCRZViF8pK5KdkrGewBli1bjBO6SgNpUW8xeiBjUGk9VoFm2bRva1pbEPqQBrIu/rdXse4sKmUnUJxIoMuhe7iwgeNDGpF3hCrKGDBlznbZMBlu5qCoQCsco8hqUuYfJG0NXRShgM8TvjXJ+wanH335zTZ17hfH+sGrkQ41j7JPIOiIZBxJ5+YrT1gm7goImmLSVXzHFYkjNzgiuIr6Z7uVNSz3K3gJbt7FC/zgLTU5xlP1LyEsIuM+eUUtjkidSAYmmBVBF16IVEXMIuOomSzmgk8EUNpmXvCButM2C97hQmVLpHzcGj4tXrXyKhGbFURCxqFbuBmJBYevwJ9w/k4ePDVZ432FToCgWIZeqrt4TWAIAQ4ZaURCv8Nwbpu0IXm2vdwEJv+4tqvIuCEmvBERMba3L8F0J2KIJMNnCgDXApwnZ3BpBQ9kLojIah6hzu9RNbQzRZomBjgZx4OGFgVgNiBLfohSU1amDJGiEkXiPlmQAMxU98F2g3CVqJR2g9S77RKHgDX08Da7t9q5fWotw1jRQbS94TzoVYe8ST1Qi720Jo5tZ98kJKKReAcHMb9fAKgVSahyXGHQRUF1A1ii1k1GWf94oOdm1h9SDHDH2EjmFGiWMtX9lAV8Rab5zxRa4VyKJRkNN7E8kKW3MJSnSBYVmDY0g3itaXR79oJKOUgSIkwZd6CKyCgaQleIOHXCwwBbqMS4Njx5IdOvLHTzfSJ9AKqhRI1NOD6JVnqNIFhvh5+lU64+trCd3WWP+osMc7sqmNgliLmhrhbjwzr/B9FEkCpUv/J+mbvgIRMch4V0j7dzLd9T8reRuolEKJ4BQOPGMQwZywS3LUs3cYGoLwR2GbxbHqnFjJImFC7/RQdoGsC0MLEXzv0EN3r6IOoxItDdLp2FV575GtXpRzwWCVNzpKxJSBCtsLhVEVMyzsjNxVp13YAZjsw6D4SKBEsigFSmiFY40LqmnjaQM/ZmrPAssO0ZmKdim+kh+JVVhV2BUS5BFBD0940lDuh5ZlhaAhOH32kSASUBxF0CSR9yGa5JCvJYwEYwRVidNnvCrOJIzE+szUYvOGP6z8STkcPnxgwDVu4Sydxt9w+46NRZisFbXS1loFOC0zsrRT0yMOcYlwDB0+uGFBmYAXtd4gS0hvp6fllA4ZTwbGdE7sKwNRB41pyii3CC5NhwgXUX36xVgXo0WcCsDQ2JQz2p+EeLv46qZn5Z9FVhfWpVYB1lxeMbE0A0uwosdBP+ENKrpQwxVkEAsKEOYnZKOnn3JBKyLSPvJe5nlY4EnAgwLG6QuCzMYSKm0EnYCP7ZRcDUVoV9fbGsadWSWOFWTqFa5xg1FmgUQ4fJlArMYziOp4Y1j5BRqNIu4u4afMwrIhkWsWg9+NWLujlrECcpkWewi8oPdrddAxjDpjgdwQXQytguWEUJMW8rTESNOuybZ+OjWs6vICsLb3eZfAj7tfqqOH7FDVVYXxD7LkFMyiRlS5lyPl3cL7ugSazhACCAAspzx7hfJrogZK0YiCVq+NV7ghjmP6Yk83SzYDyysPYmGQjTvLKIHgFk7pWqZxLDyzQDnKajuF6RfKB7LQ0ZMu7Tx8kbysBXZwP4p2ASI9WocaA0LrWzUpw0s0ZpH43iVi73xgPa4h7wuTY3WYUmJWjanBVSKaOYq3l2e108uNogDYBIfNX7QMUi2P6/HJgfVybsPcHFJkbbSV41UhwNFkUYUd5zCcs5xoNDsBG4s+Yq3wsHEYYKNuRb4FG2u6llAtLCT+GN3vmTZUCFE1vqQaXiJ+/PpDPS3MnEQ6cIun2IOeFm2sOl9YGA+r50/cGoRFTdA2lUU0OIYSLAsk0mZkudKeY/P1LHuPbZ1PU51dPsthxKjGHT0GE/V+oWuoDt2EWsUnfjZlEMsNdT934EMv7eHRBQDLYNXjsz+uWolhPSW3WRhru1AJdJLAO/20XK54iIFTlHm0WRwLEmE5YaGc1slo+jyuYSCWteV5WBqh4yo8uMCj4muIQJfdJQwvfi/lXFjCJDizCcQr1ChTaNUvqNYZKHkQ0SCrePQYC6Za6B55NzRYWau9Pv0yi1RtKgWVHHpPi8iIw5tXiOz++5DpusJ4hCrRKRbrgDgawJndp9IyHWhSPVCLnWk3rfiXLTiAVtpfzHQnt+HHRNkTt/PzRJkLVJl+3UYkGg4ALFw+6DDKAR9YWtBIshv4auEXHyTNvjouqlxDxLREjFiAR4VGI9ZZxsRhyi23Y9arFFJGemLMbCdsMZiVWHgogBdCXlZV0OQWFk88rcQII9SNsEi6w2t/fB5X4eVe/jFEYSh57pgGq6i0/kC8YcUzjWHJtljcuMcaV9KMMjqI1HEAD6MKWAEs6DCXrZtA8z6yo7IS6E78yZQQK+iLHWGvzo/EsWTzYBgQs0HH3yTAgh10hlWAgEqfTr7wINblWkIG0cg0GazEykp51SWgBhtLKKQqIu/QjYRT+kAsv97PnxI4X1jYklNWK8TwhljLs03VcVTBygJZexJPB0W0JV4g/059lWRnM2t/aPa+skejV3aRUOojVz531G84o84gKn+5WxE7KbzUyw6eKISy/BSwjumCltMomAeran+U98eDGV+0sHAK/ymBWFHUMRMaSneIIcpHwW82Yw/r54YWNAZAjfBbh0Cs3MLSl49Iksku4MrNMyw4WQW4CqCoBRkWqKHK6IylxZR7nGahMCPWHqwmOb6UytdhdZCVgin+nKZWVuLYhoG6AhFA0bKIRrHHL4Ja+0Me94NeBhBJUGjE2S30PipoyoL4ppaYUUCLZq1puhRUyprb5fpAUEZcHavqZFc12a1BjjGdycQp/PZ0+ibfdNtG4D09A5rDpO/JtJAGHac12PZYevS74wuIoIcOibRTr/AybdTUaPQGrPIdZtRxzG2sObNWYCQ9zFuGWOKDLXiFF+kN5GAJLOpOfoNpETXH2qhrJ7sY4t8YhkWGYUtkTVKgyA2rMpINdqGnW4zEd16VupvJVccQBI8wnqPK20L2xsI64wOchp7CuDNIJUskVWY1VGDGa1okVQ2xKqwqoR9iwHqaWdt63awVpOT04rlDLCYgMo54HNEvqiHNqBonOrGoQp6j9lna4rbIvdzVMaudL+jEulpLKBhEBEfU80XRMto6u4WAtyFgh0JKrFV7qFd4owsY4ez4IsJoCU7Fv2cISA+BhlhZTQqarUXpdohp58fc0y5P+lKku8zcUxz2upeHhdXBawzrCtmDlNR1i2E13W0GzNlgykMi2ChnwriAoqJYK4FdxNb5xvppUi1iVdVFRBY/vyTXTuHGvVtA11KOHlvkDjs3ZMNmwuGCCGXysTaxovKjdHSpoZlYxOOxsWBssluDRqQoyDNqNBEr6sl/lb1hEkKJdnMWmZyLH7dNfsu2RS/7jFjWsel7RjCklpbmm9KLhwKI75Bc0pUDUHUIdUnMCqZZCrUCTiDbApstFi+yQwwgI+cSikHWVYAiNlLx9+lJYKrUOBUCtEj/DCbVZ6xql0kZx0LoBrB+kljAStV5QxEYrRCLBwUsLo1n0U2BNS4bvw5iYU0ZfUr8ijM5MLhkby1sLNOnMSyuIEovcRy5QVdtFQqtErKZZzesb74XlRgak70bJhu98w1ZVrqG3unBo9GWbkaaxL++QlYVzhiJYoGy03MHW+o+hkloKvteHx+R3dYkFjw+yZLyC6AJbH0aV82F3kPECz+zydQ4eNQSkai6BqmKT/9c9k6qYFUxVnHH83Vgbbc850q3SS6GK7Rxo+Q7dSVWkWWHSQIqg3mCIp4E2Vc8Gp/UDq0wYSAXxhbzU4ZY5EBMD/kSDskTOsUmDct7ICIPDTaW8QxBA8mqwUi5NmYn6T3LnRwdrohVcQQZjo1VZ5v0Jaet0iJ0Q8zaIf6+BrxYmWr++o9xVGQ0SKPJassIvatgfnXHUU5L9Rtl+VuxK74O5MJVpFmkKDo0M4Fv8KZgXTCoBp2GyfjRQfUhaEr2gBeX8CVZ37/lE8IVTgLbMsCUdJN3Guicvi+MK4cBBhhC9k+vcOi992NzcG4FrGAmoQleIfsI0u65wsdLyck1CtKHb6XOjyT3XU5wnsibEUuSIMCWEEvAUKcppPHvW7dlEC1rEONSnaqTNGYPw+lio/fbjR0MBT5IpBmmFmYYFXQynjZWWS+9cM0tAvPGGTOaYJYtxRFm4foZvKi1y8R3tNCEknf8cHEJUj1o1UHVqWWDmUCNumIK/MPfXgHWJvs2bNoDcwrWwCvowlai+Tpo/jwnAhwBkzhMulfozjoUaOG9PiJByqbCr6N0JhakUkNRL/HrhJSZhUXVje1iwMLG2q+ARRvEklOkTVirGE5pJxg1OmzXuze0mNDO2LdSa0STxuD5RrHHFHaQKr7EC5lZ0ChQRTFEcaHfp54nXxXususyQa5LaBHx2v1BrRw7MeglzME15MJWS4ysFstNsFUPUC21Hpd94FR9WFRVp+bO1A2V5mG9TqwtD2NxQOEdgvVPL+URJ8qYWMVOry+0ASV1CjX/iTz2+zkIzk7mUIHAlGErEuVQJNaSI1aPKTPqu3lYjAjF6ZGq2hGyHAQHLytuoLqCQiOa7Ublc+WP2CLzhYUQC4xQZI+s1NoRVcQbLQ2rTIcvEVmkauhanDymnp5+hgifhGoQqzNgbmrFBdVLqZhQLHd2eKLZswtamSJKKxSt1Swou1FcHiAdtw/v/mn6PN9NQ7KPQ8MlBELPybYaiJyuXxRPbXTOvUIU8VUh2yzT5w44xMjKDnYOSwVLMa+w0MTv8LszMAvAUcNqlCDWxsvKJ/KwSsIrvlp1Ck/oApdIyOrVuVTbBZ8Z/OS6sHABEdhE6xWx6oFPPWTGFkNLvF1WCzYyq6rYLyoNRCyx575aoC+Jm6vnp1kPrkx/BWQkYHZIYSk7p1u4yPx+YXp1zHskmcCswhV9RQlIyXs+nL3x3Ed5kMmC6dYQA1PqA0peBIr81Jz7S8R6XwETsoGscS+u5U47AlK8Rk9XzTGnsNI2NMTUw8EUkUWyugbXivEhy4HZ/VvI05gAFi5mUG5pf6EYQ/11gpUp6jeJFTd6J6uLVu47xBJIsExnmpDFkJDjGW2sJgnw6hfSDOqSscKkuq9hzc7gC4DCMcQJw3/kzpPSwENqpGVLaMzje2ALXH1AryC7VEc/o6UJaOI5ov/1UcKEOore3Rtoiv+qV+ZvGyGXNWhSaZMTW190CSNrbnh7fMTa2mRwkogugldY7ud9EZJcB15Cas4Ttg79eXnmgz804UthlAGswAQ+gVgkxk/ysNQTZBxNohDUBScUzFinmEJqFIZBSTZERc04OkvSezBAZsSqY/42ruDIEXvXNFBq0hlJujdZW4jwzrAKWCipKIkEWypqV8akT7V4hg/4EaNZ9kG8Zu9XbOwKu+2HZj9GMCxgal8+fT172bcDqt6zC+DB+9NDclBiTxXo1cvMJsB6nVgGrbt3EQEYAmeoIxEmeIVifkEmdNSpqp9JE2LnYW0HPfUMUTaPisdD63mtVo5eIfyY52HBJC4UjEPDDPSlB4Eq+92aQmodfFe4ZMt00COMWAnmE/WhMCFWoTEAJmw4rGH2RQwUkrISSbCnzFqJZs1lufIH5wKeQlA/+nIij19ZysnsUtm5w699EApA2b3/6w8mIx7V2WTmVK9YlAqJJNL10qmIHcadcwnv5EDNhJPix607U0M5PpS33oFPOtNcWAf9Y6LYMq8QphCyxpCiaNg5mUy5uwNweU4vPhKyEhWsO+0wI1BiFWBnaSqMYmHhLM00ZdIyO5uiMlQtlINYCXXok6ZDaCcJyOvOVtXybHc1l6wnejcFhTSytSjR8DZP0e+SpqjHSl0kV14sqp0q2Op1FmEbrUr9fNFXsaTGbakT6MzlySNesbDu5rypbJnaJNl+VGZ8WYaJdTHVHLaaTsCTIsQKyQ3xQhhONZHNiCW2kf9cvyXkSTUhFr04WAPQFhuQEYtevQjgSG8AgFRIIV0FCrNToQncS6ZB81MQyZobT3RXkRysdFbyHLCDkhU3tDpoUaRz3PxPZnCLd8Ii5igYX7LT8qE88kzhF/6iRrdoN4yZBuvMQuv/nbD4WZ031FGroaqbjrVx+rHmp2T7WzZWdKyGUONoQfMKQw7TaJejbCgmR5l6L7QbD7u4vvLLcrOKR5r5zsRxbvPa4I8pWaYzz8gi6R39xZ+36Jc0hXS+4V9zU+y1RkWDaU2YIKnvBLrgVlAv1s2ZWbskOhwtVHnMjTkqKrqlzBJOv0HFFAS6cik+to7F2ksDbWWsvD5u/fMCmUqiz06xeA1YgyMAhht8QguLPvU3hvPpF6lY9pgYX68Ra5ZUavFmBxbd7cqIVekDiord4QEMiKbMaNJDofdjbBLFyo20PM2/0kIH+EcSWTxVcJRYU7MqoijpUmhmQ+htxEqRFYmlwNvJQtfIu6VktUtuzo2sfLMa1Mrhj7qX12QpLw+087+wvbrCNGf57PzPi66wXkSBNLERX7SwhDDQSNDjy7S+36gqtaJsPJ6RNSNW0T9ZRA0e8MRQK3GGKAqGs4FyPLdwaAhT04iVZDZWUX8TggUyUqdCAN1EU1dpOcTv3UXVfh0ppOhl8Q2a0d11xTfUA3pSwVaZBLJ0WeJIydLGN4hGW9wdntQGXf5DjUKL65qruIaSnZXeEK9OPm46K4T9YFy15OGgf1Yy9ICtZMyLwkn8bVhYwibhl3QKFLu9v0GzULoLm6g+I7afX46sQlFF38+hhRzmJW0AJETf3fJBIAAv3FpEGNjVZmNp6qjLq+IbKH+igxSwaNRVzwyKXz81fQpiZSYWVQC3jZrOSaB64FkQgis6OzNaeWC6HlehkRZw5MX8SBVy35eAKjTy0hAYP4csyMdtZo5BsP4k+T3kfT5Bl59FlphWgZYCYhhrmQoz4dDq2P+XyCZFF4+cW7cNXRwSktu9/llZt3XLcCVgSkTzOil6G0uTyckQoChxLPgl5x2O1Kd3j8hIWhOoFHMoPD+881mPEgzJIEUTBc6m2GQTBh3CqdAE5vnATCOWyJRYWGCL5JBDp0ckWVZZ26MR2VoKA84n9LTvZTxgZ3XZPx7/r3hrCI8oZvCKlZb+Yzom52BoECG0+KdAlX+ZxNakS9SU5ioZtuiTuISWQBVBZVpU7rqfsbTd4BOPRz8Rm/gFYm31skOZtEhUOzhYQ41XSEYAUPIAoRVC+VQITe3c7BzEE14ZzyQBUtEI5BegMOtOqETnwj26c6SQhh+tmWgDkAexoBSzGtLZIYvhGhMKWapKLI25I/tfgqrNt+vr778kvUtz30GJUgxkYZQygZ+LOWhFOxemQ64R9K9ErQoluxA9kyf8E8OKMkIjz6LACrbS/XG/G8H6s9fHjQe9x7XeMKAoyEtByi84h1tuY4Gj3B+UKhX4RQap1ccHxoXXbjiitHr8QSFLL8fGssKEuGCVcdHsqwYOSOd+GjWQ1G+akHVeeyMJtABuZwr7gZ6rFWLNHT+VVc5ndSaW2VhVkcKfuh5eg1W2TDIdtBsemrmGIyutaqK9Cs16NkbTf/Rnv4po1RSYkcWT4MYPkUwIhZIrtLfBGyvEUFSOrXnbLxq3QhEf1gk11/quHmNqSL2a3ACx0neE83AWYwQehXeFPhqFb5dACmeQu1hYEIsfptN6MtqVC+CJZhOaWKFHugupLrzJz/+SMzbOB9k/YuQ5sWhKLDBx85B9IGvJ3/G1yCAcQ5SL759uCINa7KwPfkNiHy1Rn9QQhSZxLDFgyvJfCBn5ImzZjMr0Jq3oARYqLRbi9jLbHRyl4feALpxF++AUhhEiM7Pr9eQGsZtUAEOwXQrl4r1CGAZPON0df5FZY56mS9MkOXUFkwCN0dI2aigpMpB0zhdEiRUxqccRkkJ6+j/qqFiDo5kQa3XNSqwq+4N6htQDWRDligeLbUEcEzXpHclHDVZirsW1hh/yvdwbDzRWF6gtqUtIOla0oNTtEvlpsBVBFyR9xlfV0FbLOlBp4hLaRT1GtHztUFmnm+l4vG5Y5ckN6eiS1lBpnRKBo7CusGvikusYZgZldnM+HHUOtqrAjBi+XaR05eiFvIbdzf7wtxc+EOsmxhlPtxbRiEWWBa8JOPhjJdoF89Txm+eQKpQwsvCsLli1+CFV+UeZwUJA4QoJpbe9MjYRbRSoiUuIfadeF8D4t4XdJJqxRmNbdo5iuzbK3GiFVqNUnOIXIGQ8chy6R5hZN7TO/LqZAYX2h4GlyQ0wRE6dmHpTUiaYjo1FhzkU0RbdN9ka9x4toqN9gB3LqhnFTY6FhlgvW1hvpJAKnoLCZDe8xZ9tBbA/ol2J7EIs5Vl0yqgvuIUhb0rC3zQuxwLqaj2bokmiX+kSnFMIfq8SbpPJ00N9pjvEP2Ml/bMQKwSj4JBdQlKK5gEWTKUraaHACBJHwRFGEvQKqlijfuss8U0/L+v2HqcNyEIBJ+ZSVGU21hMisf2MmlufmGbstGSJ9Wg0HRQjwI4vtr30gVgaV1Jg0b2WYFsSx/N5pmueElaTl4VQUVYVUze3sDwpdd8YA5last37kr+7g93snaVHyRoaFzQAlO/Q9c+cO/+/kkIhtb1opwHotMJdp2rnCRFvYd2DDwi6cAdpEaAdxdsa/MnLxHYmFpnbWDkkUFMO10SmxCrpJaJMhVjWoBF7ZgyOpXEpZrNDrL8tFa9QRW2ujTeL/R+0oh/EyqSyU3MSet+v1+jZcaNi3MR6NMC2da2E1S/cTmaARJz2aloySte1hp46oR6Wo9nvJnT4/yDLZ4XiA6KhYyhF3492/EqJwFNvFGLiqJhWXAKqO6lbDlK3k2LyjpDpgszfFUIOPXwhoCANXJXZ9fauJ6xOqJRf/UZ1JGQxrn9OWamBWBoeM/Gk295etrG+3m+Gn4Xq817XozO/lc8ncuVY6CRUpWJUXEGEOmlkONCSr4tBsePCARcZAnsyIZ61Es+iMayqZjLNJ1XSovmfGVlpdiiHIwKzaGDpTK0kdlujMUpbfhFOCa8yO0sj9DHwnsetjIB0u38bWO/YWHneVazzsepE2G1G9MnnCQtrEMu7reSXR9eKRdsxqM9YZnCh9xdkc8RaDU5O+F38JOtshB0NfrN8OpmR+HQgC5svOxFif4g6bZQWxviI/baXRgvj6Bh0LWaok+yFf4pzyFcyH98lwX5BLYMh1n++r4vBJDKJhItWhDvWFo6aQGigTO06D4sUUXzBkD4KogRttB6BdzPDJiH2O32fkf6qUFIYqCJSp/fVx3oNGwttgqU5yvSInPUgVvDz+JvHYDndMClhFZDYxrgX7KwhkVhgB6sp7kIKsehm5Bo3tiF9u2JSZVJpJYk0i2RLJIu+CzxoceS+EbFfNJi16Ku8qBUYDmattq8D2jS0vyTBOZnZ3MI5s6rd/iG+lS+LrZxx1rLUVbqBL+CnyKKzlX7RVYLUz3YVDEsYt666UwM5WT8Tydo4EHqCqyKuGnoRHTa2U0H7egxLip1YJvH4Q48igBFHo4wHZFTS3Z+TEXqHWAAr5M7DlXjuBB6ttY5arW9lx9F8LoeU1lX/oheKGFkSv86Or8GZrNI9H9pQNBSSOWF2FpsNEgNbwN8ivyzUqv6Ob0Hop0mVowbrSklDFRyZw6jJXDnSukQA/mLQYZ0N+Qxx1Y7V6aaIu1GcZoYO1AGuZ4i1JlTA4LBSKsIaIVonVk04h2aOMj2Jy4gFU9mMmcCRN3KcOwZAho7R1apPW1gaeg9nztq07HxAd7LG8G5HrT6K22wtdKUZ1CJG0CZIWkLs3SsaAPBKE4Zt9RySF5ggeIPcFTckO3CCBR0jdskLlQT7WqqYZUNqZ1L/J3B6EVc6sNYUWUlDOQJPj8dRkDNvur6X6bUcmtIel40qWa77L8G0CoX7SRtuQC1et8C9CCeFEt2esrLW95XuPywlvtCzJASPFmg4v3PTuQMDeV8YKUEcm4f1kjWMpW6GuKeE0PuN0DseHjD59dfflVgbXiFnoUHVOnxHm4X7N3NId9zCeOdJ4vuShrxkLKuiTdLR2pJkxltpJQq/Z6ErJs8KUepSAEk1xPCYSn0RZ5WRZC4owZh9trSZEg8dA+686pd8GyxKclNW2We9nRzCzW1ZKgIK+dCQfB5zbmsvcmPCOBHl/GdEtEAXiBV70EUwlCJLLbGVmeMANtYCV8c3eVoCNsTiWEDoex8nZhx8fT7Or7/+ekcRiGWEtVJh8c4N33EaXE/zG66lXiRlLRcI26sZZw5j/UqCT4I9wZFkwn/UmjmoGnuPc+tX11rngPlBYbpkX3lcQsFSC5c9rVFI1SBYbINbA1iRS/docSmpqPLB3lpvwAEuEYFHBRF50nrxGe8KN+sHisRI1KFDLagKNYBgxCrKHCpdIIncucX71meOmMS7Y0KrHho8wcirY8y2Hbh6SiDX25oS623/9S/5fUdRfOj9dLAse3pZtItBeeg9t7FodvnuQ0kkqwpa7Jl+dbVh0lDqeKhFxO5VVpUgGczCO1w4pUJcUHZmoOo/wyU0YFUXWqf6D+GKOTHuylmBpvGcC4CKpKPaIuN+4S+cMNZpuc493zf5DsRs0G2lMjtyR1Mq8BAvrq3HsSJRJb6GjtqzOfhE3oVvwq+phaUoMxuruIlKjFLJSzjPMxM3MmPVJBHey5pmvd9/fchbicTiXOhafdydQLyF3nfCctPQuwJtn0EXYuVSPX1wDOsOOXQMrOKhga1Gi4/C4x1+eBMQbFEznC1qFpra+FCBBdiqV95ifRpmNQzAE6yhsWrcCxXWkajoRHEGXdIaMKt4WEX9QF2dI2t05lxgciEMDfk1Dv/SIV/PpFh8nVjiFFKYO4RxODOHfgTfPemi+4nrdZTIx9qSQyJyiet01izr/fcOrN/PYw1v/DfALLcfvDLn2UDWjEZ7l/Kk2EmkZ114ZsxqDEBDTkUwtLoZuSv04BaSR//5k/5XpVAU1Pyb8gvk4XlXAIRkLSpfouQWPDD5DKXAzhfmH7OxGHM3k3A8N95+yk+1T7yBseDUbu8JscSwUisqiWFRvN3eg9YfbbHBJr6RwWdxeyv/ydu5KLtOw1CU2NhyzxyGuf//sxApm4UQbtryUNLElh/JHeYsJEVx5gZQc7sl2bxZaN+/VmBhPomwroOo1q/ROJqfEYsb2sPYIFZu3UelgJ3BrEwtq7iCMhlfFMr0PDsEvAzOSNJF44emmRzHYi/t6pabPgq9W2FWmVc1ftU0s5sL3La1dYyfSkboVSGYtYEJ6VkMKI8KnxCnc/5m+VJiTM8WvAlizZHai1eYYAbRuPpmAVRmCxkQa/OWT5xeeUpIQ/MLPI4HgXjOZWXRuFt5WiFdP9+Blows0NBvYloZXhBr9WpgXQ8KEcwnssewEYWulGi6Z9ITYimJdEctkGVZReGp5Lws08lcsc+D34XJeeNQYn92D4vhBgHhlpHxYETTtsBAhb40fiKMa0DPCgkRUy+hSgPaNuDWzk3DrMB3fQXxI4YFc4rZFKdvCAOr0M28CtYYIl9Fj6gYJxk3KNBOuXx/H1HvQ8TKZpv6Fc61qbniV40qGJWUvKZTpZUqyoIsVJx5WJiTJygw7ZQmfx21LpjQpmCGzCdbFVkDvSG/SlbtjvlErF0F14pYNa0dsduPV9y7hWYf+oU8MswCKJAUeQc4ySHcUfH4IqRllXim89PVwOIP35lmFvgwjleJqJaeLV59tRunaPUdGNLFr6J2zQmK7tn4uVgzW0fIWuunmU2p+oDtm1rf58THSB2Px9XGWIaKEsCOysUnaKUDPUQxX2xmSIlVlqg1pQO+OTQPl3Yyt5H3RjUFs+hAOSOIzk4s5qHTjAL+lWbPM+UP6hDWmquBKT8/lcqvIWKJLMsNLJfvVWGSlpJJGfwsQTMPem2I9ZFbmFVrjT2x7D6YtRpivjHs5+0y7ego4TsS0cI9dP4OoEX43TYpDSmLy8zpZqIJR5U4xo9TFRqp7atin2gJ4KJ0Z6KZSUXRojkPX4vkkC9La7rXhbDqAza5VdnyYlQJvAsMoKu6fHmsCoGdNF6DOD/0YQqN54Ahp1aKycFlOFKqWm5m3rx3U3FW8VWbZWPhW5ZsBwhQHVJo5RoRYrpCPHrLwpr1YWEPh1BOYbcKk4CNndc2E2BTKB6ubWU9N6J0kQ2MavDdtFexPbKs9LRi6aRioRfdN/I1DmQtGWmMZfj++/hYTWmjuGn6YGOkkyk0u7wKzlbK9EMPzWg0oWqMsZb0ZLq3O1MjSza0aushOrkUWwYe4Z9ppwxIpnCXZcyBV8imeeqzwozJGwsLYbkZBATVZ4WwpwCqEoyHhfSrRZ0tKhNL7ZKECCeWFnGw9y2sFMg6ExouXIGsb2tZBniLG8Vb9Q2u3RHrsE/cwhrJsg8/HE+ag3K9MLKARzWMMmB4RSivj8NgM0XiWbUUoTev8NRMizBzmiGeq7U3ot4VRlJUWZzy0728uqxzW9hV48voj4VFFEn8uNsrYfL+OHq2ZcACihyc0qVxGeUdQh/wEooRNlbeMcxqepf0tDAvgIWyOlZiAauElIosGncAm8w8m25IbmEzvEEcLYLuCEnyoZ7SvxnDksqOS8BVsrKS24XDx+2a5c+PEcjiOeZ7gaw98SwXFclCZYVV9iQOZlhojofqE1LKnyAUn16SJf8Qam3e3lbGqUqmt2REDiNavbej/hULSxWTjQWwchkdR6rUAJk/WpEsYyqA9dAfsYsQshXMo4qsNO5xzCn2lQD8zADClcN9KxepplBccw7mp7HGvfBEuasyXxa6i1gDdbZ8OALchDDpM81wOYemIEyNfcKDt0Ip6zMKHb3qY0rziYUluvQf4lWxsvrfB7KU0EACfvlo4exvL/ZejSy7M7KW0QcxjlsBWclLo7QRWtLY5+NYTIvPhwlM+yuY97CTpphVsOS/s7BMZKRevD8UnKhXMXOrisyP2uMC1qEIt/+Su7Q5JL7Qe3J23XHkJ3dgKg6l3HO3uCEUwo1XGDlGJlZ2JbHbdFTHdzNIIRYcuhE63PdZx5G0RKxEIoyUxKZaQPqc/bVc9yTSxTKGP379sSFWTnDgtZ6Lrdy918ghhWs3a2RtZMlRfSuNtDLKboabrWXbbgTUi+yZtR9itrAuCMenb/bLUQScl3USPCFO9R9ZWGwU4NBLmVattqz0CtPX180CfsdBoIn9/pC/Ew0qcNeOB9NxyvjrGWpIphctKlO94lhQCMlc1RVRAsA6MSpgCbHaLhkCzSwZCjlTncrM6Q3Sp5XcVQ61RRuiainPqr23sJC+jh8uG2RZZYnDRm6pQEU6bEwqI6l/EsjCLbSn8LGMLLq+KubI8lL5ZATyORJ995/E5CFiaqytiYWTaASyeGr4H1pYgSz95BdW39CwtuAZ0pYlRpulCfA4pQhgPTIgbriFjUJH12XvSm8VgoO5ezwHQDI9NutHaDodPY4l8hBHZ8LsAOqwi2TtqQWxYCPoYtr7XK2W2oQtiAXOEmlybmkCkWqVYCO1v2phoV2/PAGWZt4sOMNzAT8KtXDt5jure/Hx6wkRevILCzsIbNmrSV1Aai90vG9YmzLv8iBfwlaJySsTIKilyNIukEW21tublZq4pUJ2BAGVrohraLYsc3ktQJWgWJj5O7AOLI669AEFjulQMAe58uJYNX8UqjBEx4svp5CaVWgQrWMMJqV7ymKoRKX/LagKsV73+urbyXBKJ4mIRc8CLCyuG6HTtBg1341hXUPs0fEKcwhrtQzfs8pLg2nJwQ5a6WWf5TeU/Aj6ba2sT8Ua44nBwznUCYNUjFFv4c6WXESsLb8TRMBqLc5OBoAVm0kJBOCalB9ZWGxq3ESnUIfNmsN1aZTdOa0OrAOglJeFKVRCTTBRVqXyyuPAdKEziwOmmTUMWvVecOXn4rBFPha3uDEZc0uG7T7VvRLroQrsqcH+OiW0opjHDWAIucpna6iBl/pyDSOm3ea67y2s7nABWeCqUlO5VgVGvRYgzqerYHGVZs9yrV4nlj2zs+zG6YNN/6bw9w22PLpVo2mLzPYotHOTMltFF+lcm20iaawYYtXCQtS4S303T+dN/B1fIC4RlQp6JID16LNuFIs++XMEmmgnF8DPuQl4MF2UJJQSMavrGaMUec/22eQi2pDQA8qNlOb6xUJcujqyGljUUae4/qCR/ARC1l4pgrKI3MIPLax+weUnD2Vto+1IIdZNr2c9bolWkdbhCG7wcnENIFB/a8g+LI5rWSysVKSaKVaVzEyx1WJ1EvmL938U70SDhyZwOFlwD5sUoc1SlT5G+42FBbWSGLlm3Lgtemla5smM/HsL6+DPsiZXVWMrWT0CEP1QKuPdO5Z56FdyROMc5RAYqSHpZpVBCpZmugDDac7/QOSzFFIEmbVD/nZEkZGnxq96TqhuT4llc35uYfUeIaUHxPphTy0W3MJn8qpb+PEEyHJ5NhNb0TXSHGzVMaVYprJ8iax8RxZuIvI13FWU2XSi1snTLBh21gFSO48qRgcF7n309rODdxZW7hue+JFlrZU7Gqh6x8JyKY+40kvP336QbpK8kLOcqEAXJ1ZN4iyGEw0l28rLXFfqdBpa0E+S7iNNjvvJVgiDomr9/xIyHAlFlY5crbzTrAF11IRYsCqHgIQxhBj8duk+eyMPi8kIO52Q/sMtfBpHI6j+sFeINW56rCfNg2UB7zyriix7Di8UT8NhtFfPdN1bWGW6pw3kP2C24Cse5x0GeUKa8W6eWGUYU9bO/foIhgW19ku2FzRVt8+y38dLgLpydf+KhUWZYrKwHkc4hRK+5JU3TKIKHOAFvuSYKYxVEqA03A9JnUGR1nCYdIKqym6Y1GBWTanYrB4oTZVkfxYbaxvIKh0o1FHIyMRiYT6V++suIVIyskBejo7xLWod9IHBSHDAH4RnO5TwHPA+dL7vMe5tuZvbgTa2JVTlFApL3LPazkhLDVsLS8XViqyqDE3RG1YMwkoQa8XtVPJcLAtaRWv9Rm2KcRUBNUsLvyA8+isXThC6s7AoIz/NmJ03/NjYqeP7pceIxYWkw0FjTTulxOzgqg5JkMsyHmNIj+eJCcc0hXjZ8ruX4YwHOS+mkDZqoKoSjtC76HQHLGTWLUVtOnfQ6nf47VRlHRcfR7+I1feWHAWIVflQ87ZoM1OXKIyz3aISP5XsPK0BsZIXVmSF0AkY3VtYtvUuC4Ny+OvOwsosu5f199liA9OmyAjhXcOWIcQnUF0bqFLBrCmdyiWYPerVSPxcOzPMefWqhUX5LxZWf+AU3i6l/i2okN9OMx0SA8bRM5cYABsTtqqQ41DMJ+yxx+ORPEp5muBLdYiV6oy+i76Pkt6wC73TIbONqhfqw0KcRgwgipVNzyAWg0xHE4byfqqrXmMaOaRn1enmerxS1/sQWDSsQVvzHqZ56bXi7pT9mOTsQU1EgwZDl0nYa1VsjVMybV62sGhJ7qXRNYyTxVxppAwq6PZWHMsqqpR2SgePEq0v+Ys7cdyMINkabov5wJX3s/nr7DuO5/L7BYfZslN2MXy7dG9bWLEjP3lMJj0pZCmZnIBQ14hB58eEAiBwHGr2BhopVAsnOYyb1w1LdoOQpXkoMZirpAea9TklBUQdSSEtLYVxBUjT6yhUyYGstC4LptZH0vVqob7FZYVKjprzR9XObtYQCxOrH5ZnN0cVFcHrcPE255CWcLAePb1gQ0nO6mXW03b2GFKCtBYDiGTV2JR32CIL9WsWFloPfl/MAlUGVRj5UgyLUdQA0r0sdfuT87dOX40g/b8o5IStVo0pIzzPDsQItb8Yw/JhycISsepHaDh9YxXpSBCc0BQsYy4nFt5dSPUd6+O/3JMIlpRTJ+A0RCwk8a0E4ujDtT9KIXWk7KSVDreDiJEBrPyeTqVSqqiTj7aotjnRpZ3Zq97YA1gOoaR3kfEm9pkCWUt3Z9Z1m+adYrBe1DEcwiTd51mqxNTuJcYQ3M+bTCiQVfq8bGGBLK1gk0n188bCklQLi/r7YhDNC6Y1HPLre3EbZvGoc7hPt2I7vo4hM0n7WTm+1vH79rVGcM9C3J3ciblAI1LfaYdnr1lYIA4LS1+iy7kJXstWTZzoRngpK6FaaOOtQs2oEtYbyCjuHqI3tAmawzhpwsaCaToVdxTjTvUSGlNxJxNHmswpZAvASXxoJ+FID5zJGEUwPD0XlNpan3WVd7PLGQyzaviAS1V2jQy/zRKwXHnmj35HoBw9gsPnNHLbKDqDw3Pi7EyRnmDWBSk2uYUjKpKAVY69p1D3Bl0LZIGWly2sEoFfrAezHFaBrVcsrArXVaqvCGF6HmJ6TN0fA5YPSDRi5opcZUkLvyDRt+41e1TIqkCL3Q+vxrBQYGERxsq5TyoEhqqgrbU8/nhoWkLgdKv9k4hyuyFIEGt0FDpKlSRPSqmqqHSdLs67AgTSUxUoRLuYXa6gWhDrLLTz14lFzfJJHPOGeVWis+ngZ2txdAdshgHjNpBpD7OIMc6OYhZ0/1T9ETLxCCGanEolhhHIukhl3XyMJrTQDnHNrnuLAvCycBshWXQloDWErIwY2IWssfAL37GwKMKsIUhYY9jaWFjSUqwNgPUJnkBUbbOLIwojKbJkcIMaQiswKnuV7K9Bn92qymp+NYalIxYW1sIx/kymxumSrmrzHQ7kv8XV6TbnisZj0AlZs7lyaQ7E+CWx9KsIDa9wN9TO+1OxS82BQffSp4i1EU255idy8jD9t5BLF0ebbdoUHaZXo0Nr8e/rbZ69mtm8/Cy3ssa0iG6fx0BEF46sY1J1CwZFtUe5ff/4VkRXnAoSIgKWt5DfYLqAgRExEqculNnGOiXmGWYIJBYaIVb1w6pfuIa1Ty0smnEN6fHzZqSE2v4Z5fuydLQVyQokLXiSu6myoQ9U+my90ICSaKRzghkA+kcWFibWxJmLP7TmyIl9nadgzIrW5TUdvU1N0VfTTH+rcMYMJmBEq/eKyVeChn3wwyu8VKbbD6wEG5eKfQlfHF78uawrIUQEE6rtH/+C8oF52VntSur0/0jh480IXU/nwdnsOJMN4siYuCVhNjm/vNkuQBBuN8FEBdf7OcoRcwoZ0VCyA/Bd/XpaZxmNRkSvwB5uYQ/UQSZhy4mFiWVkQNQ3gswqDSqyln1gYVVZIRepFk8KGV1YVRF2Tyl7CVhrObUiHZSUd1PI28EjR5E91Ka1TX+uhYytuluw0bLnV+wlCPSpheVx8ZDLXcN4WhPpVIMy0UfHRTcvx89c58SSSLd8l4UFpFS4tbZoY1TvyStM92feIcp9oY8DYve/gKHSGzBLe73dj+kLsRxX/mvdf226+zUvH3F6yGl6eoN7XV7tZqFoZlOIMnO30LrJYFA50rB6c73SFLSnP6sJseROWu9yCeUbxo+E9oDqucsxBJCd9AQLXmFhCVvtSnBAmmJZXuJC+zAWOhs8MHxuYFGm+E5a6hvcWbeq9XQgxJJFlV62cY5cRengUUTsY3OlClpzy8n3xESzOP4PFhZO4YO11rFJ+pRhdOqFlxXAYQ9lX95V0AM+41AZZUy7uswdYNCDCNeeg1mmtl7YFZ7a4zfezkA5dhuEolkpMqTz/v97W4FuTij1203aKfbaEkLa7ZvJKWBsX/KxYg9quoyyNUVTkKV1XxIjbhNVuDaBsOS3hJRcJrKIDCNfH8do2+aRLr4FL9PPCkeM23iOYnc2v67404r5Wyufp6SfLtpJsbRJpT2OuBDU3rJhObBb1DecVJmJhaN4cWkmP7B7WDOI5ThZXBbUgUyWWU1ndVL4UmBYYPVTOdVM/jsWeVPeizPlVhhnEvO2HwWZFLXBm2zLF7No89x4NWTcSdtrrXCw4NB/7mF9/uXtuwp3jyfyJX9wrSxOgkx9QktCgcAr5/oXX6Ole0QMEepgz/gN5Kctziu21EZXySiDjREVPpYcxTxoDVeWzc+K3hw6QHl/TjuItfnI65kxa+B66XytfTjYf6x+DSIU1JG11L3wifEBKZX/Pj8hd0Vjn76WTsQ5OFeuUYYM3gG2qJEgGjRoeexLfUOwjHQ5xaYmq80iuCRs6bKjSVTfRQBIkr+Q6sXAsNc++V3Su1hlN4CldyJaGqadm++D5VlLmJulUV09Zm2tjZhjnlbHVFD03LcRS9tW2HvOF6ZGfU+8+hbjtdbdFC3yzun+AGSprMSV4BEpBRb/lYd1HfnI26C5xvWfC4u/KqZaiaSTNoFS8FpS66B7jdaZaAFfeVMS51twx14S5sg3De/GZlmgrfq9tZMzTlh4iKPl0D2R/siK7YZec4hZ5YkPMwvn0a+I4FaJjCZv1An7UF2ALly3POW6qzhZdpywGE2AbUCRoQ/gdA9rWnGyqHzHhYKNTZquBIYIAphQwJgAElJqHUZ4eedBVWZk5XwrA7RoEVQMIBs1zRBBP3L36DHFznSW25q9aL2oqmmbQclL2JGcMz/dEZp91Dop4xwBW5z/Gw8rZT5ErCYfcaBDs+yhYbQJ8Q0mrL36n6GcgsqpbGQTpcbthFKPj5XhIxPTX8xzhrlSFWeInVbrSyCWSkKsmzH9peUlNfVOLosepuXThKILbkRfmfwa8+IOnm1A8Si38yhXNs4+54BYlnm1xJUlh/DIVMPqMg5UqcSr3NFjJjNTkVXxsPLoXC3cwwdsRIb6Jh8viYOs1wWPZ5+QwzSjuxHh+SODX0mr1L8r/5bAqHtAOybQCIl2jGrFstvd3k0HDa14fq+p+8K+Lc0Tyg6usJCv9v6feVh4QG9vASxwFBtYqWNFCrJyXPPpPlZbRq2bRQ1Ucc8Punp7EGFqECt0LNI9rIkKaiD0et+whlgjv6fT7+ly9Fk7m6ohxchmJ9STDP7cgo8mJ2vOLJOQYyW4XPOzX15uCK1CS1iYg7WUldxW7kYRKVUSpSy1PHImEdU9LN0ODcpGvVrID3shy42X5a8iyzl4cqtK1BWArI0j4aU4eiaMxdZ3cwjVhBXbyO3+W3mJUNUm3LAEsWLXc6JALutX40Cpu46v12GhNID161rpY4GS7mEBH7iFrk+r8ms9QseUODUUqr9qSkYZrAl+5lpHzf2MK8YPQ4z0fuaw8hTbdUWrMsbYW59mgYxeABawrGaIvb58nZIVqqT0jt9YPk2aAZ4pmI+wUFcf45P6uWmVfIoeRauxIcXJAlh5TeDMaq9QXVwcTEjVoneZWWqMwBCfSlWkQwyLzUSBZFra9IKs54GhP39PhOsIr1pwqI76Cpd0VbNcfu3OEcGdiEycKBu1jTjz3sO6xVB4eMy8cd66MhkWYvV3+dCPPa9M9HMJssR5oIp7BlOpPS15/HICC2hk3j2JBVEKs557WLmjK/3HgzWRPq8Hh+UdOAAr1dwJhC0+lkrGziDinG48rFuPC3NKSFcrqa/5d3u2PGearSJr2oEX0vP2TfSPV+9AyrCw/L9Zj52pT3oIAGXOaSsFOFsUkSqYlJ8mTyompcpJZNUqdNtykl+6qJilD1SQCk9x4ObCo6gOh4lY/mJBwSL9/l1xf4Ysc/+kBeFWHk9sGEahVcooXRdZHIbYMYjo6ywXs3L6HgAbSjQpyKOm1s0F+FDyHeym3yhYukfPvxq8ux+WpWslNvr2vMI4xoRLUQpARVuKvauhDs+WSSM8LILCt4/rF8CBI7QZ/UClvgSlFPkNdNnrvP63puQ5j4hJ14ZLgdKniFiPYxlWqqFwYq48/dzDore+3Clg/4GHBc6oyJKr2RjVRYOc56zA0ltoN7HqQ9wz7lNV/ch+DIpGJLMuwkJBrt6ZaAkr5bNIL4XLxCOYE5NC5lJYaIPATwVa1L0LVjG0xxAi0NfE/Hlg6KMLWawuCQT1ZJ8QyN0SZ1RxWRj6UZsq12MotjAAWMwKfRqcqCzn2VENgJX9XN1z2M80dg9wntBURjZCD8LObjHszN9f7/oN8hX1tC3h6ByO/rDrq9LyI24BLBj0ePtLWlDYuswoqmculohFtxl1UYK43E2d+jW3lEjQlNtaigqDIPhYnSEOvLrBMw9LPSWyBiY/z2GpyZlEFlqkZ/G7aG598uu4gjQRA6aHI0LtA7n361J6CzCloT+OUBuRu0U3akeNTP4BXNqp7D3a2vMTVgGhxFHyzafFLUdysuRhKcjaO26b6Hj3PhsYl2zxFhg6sV8cOKYmt5DfeFr0XA5O7M3aqipMGMqNAeuzMNC4xc4M+jR+I+YYBYfKr/FQAL2xLWiYvLSU5BAlEjoJRsR+0clhzgof3wom1lsS61cL1WgSJpadz62LJWL96othxI6IV0R/p6cjdapSKCpcodXk4lypWnXCAGsuz4seloh1e5XQXl2+LExjrliclfq30GSQ+Qx9pvsiZ7USHlMJquzlOXNc2je2wJqCwEvEMoFshj4tTaud0JAi0mNONRaPszFKsradmASZDCdrmqQnoZXJevGdD/6NwNDZuWL4JDhEQ7tsVfP/ybjdqtgNX0U1OWdyrHZHnIuwdMeKuFfEhSKXztZcMLJab1ACF4srfL9xsbr0qBGVOr/+osiT5FcbtE9c6a3LpK5Ck6MxYqGepJZWalWOnwMUZmog+j/2sCDWmndmnO73W6NE/bqZ8HxFo4g0akXjmKBatvWJJEoc6JTclCJGgDW/3lsIswQqbq1uVwvNhl4MJMdIeSzT6+zJcV0RZUxXSotMFpqEGXyyVpRlLwWG696sV5feA6szij4qpK4y/q/tZZSFYG+KeAkJKTlz9hO2brU4Nfz9fdRMO3vqrb+JIpRvfwPH25adxnrmYtG5Zw26Y4aPxTKVf22pEvHtxpoXgAqI7fM+yZuaMtFrT7nHMXayVh5d9f+JHGvvlU2rY0x8FCBZ4Qc1pDdWc2rxl8z7+J668QG1Aj4ZccMqoMWzAnn1TgHbmtGxxxEZ607CIISeFz80ujAeNmEZj4vIdlil66S8eqmoHNRkoa9PQqAoCzUWTQgMhSxniGasVitLwc0LntYf7pbL/T8e1viPPKyiJgRMFEnXH8PodnS2MRXJLByrbIpGoOv0eAYEwKqE+Hi87cy7aFKI80RajIiSzmbVQwqQ1Wc14R4TosP26jCZqrs+klhxN06tRSWHRXa7iqGrJQLdv6kXC0tgx9I/9LAYWI91y6Tn++yPDQpgJbFwqj4dMHmzqQnwpNmcGUOqBOLr1cKKuSuQFH2Fd0ERjJWSjeFSBlqeksUlQjZlstThOn80lXwXsgBVbdcSA3fy7zJUqz8GAmg9kV5WatLdYEXK8W+3gxgr/tCwUZNkTgTnpOE1MXphNHyYLF0GuoQQ5xhFY4Tx+WYxXvQKt2KTSvQ6egwVEtaU06kf/dVSVfhTN3sVlDmLNdZDLQxp95IvcMWr67XXx5UKQ5isRIgiQSctrz/zCbSs7I1UJhOEISWaeEQW1NLppw4Woguf7fMvZfGGj4Op0zhNaa5UYGZz74nqLXbZ3kNEjyYKCy/KQ5FpqMIqVc0UJ8uzvce7ZVjgiXXp6/o6Qt2TTlR9iWS63fh3DksvK0XMCS2boKSPCgF4t4uYXKKgSD4eFUkfKY6GKAElbQZ2ecw91hC6NJa6QU3EOKtnXUbWvoeQpiIWzL61DFaYyMMCDL+uzauoeO8oeSLwDNQwC0iJWD3AxLZLVo5myIdXtXC3do+SB9lcOD1OhXvu6pN3724LuLorG0BIveN6wbMXP/dDVGR1XNlPPnzWikW+vUuMBzhQnR7kSoBNtgtiPYxCKzZUx87PU0jRs9XCdxkFvcoikK9v1vpys8jJGG8cLIXoprguz686WpflG2vExZeyWh5fLl1nWVjcEMuGnJ7hItQ7dahmyHulN42XJTlDpx6EIsI94kA8LpRbcL2UdIcfkcai+uAui8WZvQqzWElQfJAlu5vEBHBQM+6EfrFJH7Y0FyWk28Y/J2VJ1u6LZVZ3RD0QVQc5HWLRr/bP0XFvxqOTi/wAWdUeH+u7AtQNJwu/xC4du0vj6xhPWfNsK6l4eLKJRk0uMlk2jyKoxZrUkbohSPkJB3UbWEKWIlIt1ysohoK7byDL4jskGXN1aLVuyXaNOtAnMAp59R+RftInOdhc5LDWeHnzr2tadGAWCrwszoDrmIAx417CkqwKYL09vdfmWQ4LbYPidhSqeffL1EaIRUSo+KQGgNVnwxMV+uQ6oXY8rk6iXoNwM1LYNE+0M7HD2F4kQDfkUh9hIUu+Hmze2y//kadGzYaI5TaPZyVgVRfr8OQjrevQ9OJh7QXkt03UdSkK36W4bPgoPpP/zskqSv6wYdbWVgzagFrGbTp5JDjjxNBRHWYBLfflTvVrAY4+hIQwiqV/m1E3XMXqR/l7bNGQOjXvGvxjj5ga+/RHdPrRzeMj6/iYAS2HSSIl3UM3NIa/dSpg/yDprkbUNuz94xdaWPJyCgt1cbRIxiB9Hr2aY9lNslhrt9farfLmsTUFijD84FphPqfBd1NmcRDJnnhYbWRRkS4fiEQWUxBj+cVXccawDxEW+qxLlrXvz8zoQgktYk8rMaqf9TiyBh6QkIUkaEiHkxc6+zWK9+NcLpTgDF2DmqxQzOGjFMjrPmpSWePvmw9+wmam2LSKm4X/NY6xcw8y8jU4Gzq56ytStSXnBRiFLS91YKS9clLMrgTUQmidccaiSej37nkenu0/eEKouXk0lYXfB/izj3nqx/jkKhtgqFzL68pfiQHb6+vhF7fvuP1x5A0yIHGl8O0BOyhN+K6DBbIwglgf0tDquEO+JIMvokH28rQ+rhZyY2HFQSrwugDG0/tmuPLWoz+IxVyayPyBh0VYiFmh1sCc7pBl/s3pa3KOyWLaWlotTdXmHErOlpvMk0HVkxE8ilc0nORSGGcNu8vFqvklx8kqm2AUbIFpZxG8tLNirMLXaUsztYJ2BK5fkZV2+Fe8CSMOFFUEoywJI9jAxN0QSzTPtxAgeogpygzz/GxNZ1PVDRoxg8FAVP5cfbEo4rzgFPDovzUBZPHxbPejPnRRxfJxTD7FSZcICQDVUIb9wOqgCmDBC3ysLZ1D9PvepfMO4SadbwqJKt0JTYo9DhLFiImQINa0XoEuvIXxNz0sLLEhkbW6/t5RWWpUW506Em8ST9Z+buXwDQ6DY2a2iHrUWgEnlOXMkF4gCBbwgYQpG6Ghv2Ss4TgVDyuGFksiflbn2X8OUoQd17iR6k89AFEnHKJLpDteFiCxLQxFBxE5cdkCSSJYQs3FipP1wrk0vooIMY2oM31eo9pCRvru5qqRSsrK6fF3T5iMrRF0/D19rZGkSY11Th33zNOCY6gIF3GzAFSAq3CKU1AdWBVgdfkIYPWS9PV3+iw0CMNdViFWX34tTKv5mnt0TtWQ2mERb4zebVye7MkpS2I1FKikAW/pdQ8LWadLcKmq9yP1Pyw66y/heMW2tpH60dVBp7SKL0hTTWYQTjq/37e1rez6GvuonxQr+LWynZ6X4oFlLmydZHS2Bx6MR1MaE7HCLrkhnypWjtawAwYCtT0sZXGiUqMyiJrwMjP5ZGmCJ8TGimFD4synD1ft/CWT4QYr91Qiw4LtcjESBhsXFIc4rLN7skvNNM0PdatgazfjX7xUrPq9wDPoRl+1VCKVB2hOfIgbJLr8YcpkBX9GsgZOOaGfzvSOlXM0rQ+05G5lh665/wGqGrCas8RNhR+/qjqGWkPkWvx5pSobmKIP1eMhXcwqq5zjVqGY61rUB+WHrVRipSoNKciapK6LLyJVUPBlD6sa1sVUQ2pfULhEh2xAmRC1a7ciCcDtsNCyi7nmWP4r27hs2Cp3LI59DEKvdaDmti5+oG/ilktys/gtOcCwzvKhcLI8rIHByI+PZJYS5qSW/B89LDJZ3cmaGi+F70iQceQ4vy7MBo5SfDVLFg8rGiCEQLVdjNw7/zK8mRp8Katl2VJFBFWraeULV6vGiPCni/SM8wB5UHaKO31s70lZ9eTW2F38K7lWFOJuAxeo4kNbZ3reHDHyWt6eJoq4+x2r9pDhYSEEhb+J6KrHEIql8zoGqfhKnexnZzMkp2pU5+ow0Mw7c0hdkb7a2lIQGqrcjvLLOwQtNT2/JNtveVi4a7Spek8nDklWg6FlayvUiVP20XBi21/gV9fyzxv+1ElfAawVHRxLS3Zx05GvjPK8omqeTaerOTtCkxEW2nBcjOuAavpMjy2VLrwp+TS81UiZadn2FvuBH6a4EAMe9MBVR3L9Wr5syDyuYYkM3dOJqxcjwXKtM8XZylNm30Wu5EjyI0bkf1mQpUFr5QSkwIkOqrM5FsKomSWlhtgxUpPMkoKrfPkBVDWfxdnULbQSx+ChHDwTMz38qvjgXiFubnpaQ9u5qbDq7oGlA8AikBHFKrj2thGSM231vz3rzQwK19Kt0ALV4h0yMVZcr9NfH3mnn51BPCwhSiPf9rAWUDi2i2e9414dqn/iarPKBK3TTjaZTqnKUyo0Lg8VsumToxZF6HtbwamxdXM3PCg1ducy2Pkpy5cpMPy89LYywvPiTixrkkriQuB2IsRLLlOQxA1rLsO1GiknBXXrYaUv9dVk4GGV9R4p6iLNw3LiPgMg6WF56nGmoqW4kgS781A8cSm7XDzMtHqOg6SAFtwSLw80HWz9HljSi4quu4uoiMLjSSfXjwrGRLkCoSAUKudjY7hYHEGYOKeZ7ompZJX5H9ok7k7gWDysnsZiuFGrxXpkWGDSJ74AV/USPkKZf2vabXfQLT5LaFy6Kljrqvoj3wWM3Si36RAWzmyRybLveliTJppJ6r0KUS80ioa4k+cPNQrFsSMstGXN0g5zjjul4s7sKkoMMRzhlESc2QUTJOlIsdFkE1oI9Ux1QDFh4DjZCC1Oj3R/97BGqrw5WSM7HBUXUtZlGq82YfbMw7Lh/CSqpnwZP1Xele8m/uQJByFRdHdfCEulaa/5pyOWhFpdeJ7VbZn8qNVgOoivvCnw3cfJm4N6w4Mi4gMzBoPUcmHszsWSLj/htsqn0jHjQcGK2xzz5/AAv7Zv7UPPxgpFE0hVPSc8CE7KWlWPIL7kA03u9e/040/mzgDJYRqGomyKIoXh/ucF6/vzRpiyhWEAJ01sWXbLQh+SrLg5rCxjL2BUvNhF0xs4bChZxxTbNpY51VqlCqTJTywsqpyzuordQnAIsQwnai/glZiVABuxKnaqmUE6anauwvJaQgQi9SvJsjLHIsLSNS6jyqt7jrerwTN8uD5xZEeNBIeb4bJL7G7VBXWsrGW6SQ2p5VwuxH5qLV1Jgigi3fflfnR6HvQ4IJfrXjnUUBKmKi2XXaLuvhHH2sWxdTKqjC1kCazInupesh7OUoWnSNEbcEiwX6uRiqD5h79wDOGYCSRsWcCVqDq08p0XV9zCjdoG0noZvQaWumxX4Y+uoVhYb8NYX28MLIgV1IOOwFYQx3CKsk8Jvr5CIrk6sMuyAbKlCpEcVm9mRfuD3QZSfQ8S4Nn/JVtUkkOZbr+NYdXo+fNCIIsc0ljiiW7wkxFpCVfC7nSicN8KZKHDpCtKpUePLmGufq2nbS1du1FrQOXdw/1PtyojiFybTcH6GBwK9WWF3S/cwrbWjBinOeR1C1qp773V18zF3FLEknFyaqq3ljYW1lJK4Y9sKyws60xkJSlZ6yT7oow4fSYNvbKijKyGLjE8QOc4tS9URQkyQnk2EemGWpI736/agbR6g63Qd/9ygY4yct3WJXlCsETawjmsdtQybU9BrZJ2N0t9ZtO0qYjG+/qj7anfSnZdaAJVqwarHML/LWGeKNU8RxjrTPukQCmqXp1PqKWCAaWK3BokDEp0cA01Aw6MdkZ5qX5zJb+BQhb6M4VlEIXH59+0sGZDpqbdwjFh6ARXkMgNrl1J/hhjkP5+q7Z1mKniztrvqzV5QZen/9IVEEpZik6z6ojOeOwPK6hU1ffUfRpwZpHeWFhp5m3zxG4auVRWnEaXpi0nT3WHryN7ITYNiGEBL9ktZxLYfZX55Y+3+jyMYNYuTHy1Zk/LR9IwV00v4kr9MUjbIjVeYOFxnB7iuFbFer0tVRQZc2ySCrBEKp7vq/SlpeUnAittRYka3Zx5DfRjTZG3ZT/vXamNLPw/UJVZh6VnC+ubbCxQ9fP9fb725xqysZYOBwZS6MY0uJvExPTh4hXhazH6LgjaPSJWemTxZd0S0ArR1liJOFWkqaYVArWAWB4guZGuI7m7SkeYY4md9bhT71AYWB7WApO3a5falXkH+1AUka0LnLbI4/U9c7r6xg8bMrh6/LY8kawid+CFHVIt0Ij5qE5IioU1jS4wuE5p6aoTv9CWD1ExtUrkgajKyLoEM3Guq6wGyh7EM8Q1ZGbH22gK46q6YiMLYAlLRLaMrS13/qjuqhFRe1emr8VYOYb+uQpDYl2RVPKS1M2UDNhpbmVzoSAGAapvgaU5ycgqx/y7CrPqyMM6E94n057RyimkdWi8P7FAdOF+zEyAjeGxjtf6Cj+ilPAGHequUCkR6/m6cwtG9ma/sPfsu9JxFmse/ZaQ9Y4SDIJIUCaSF13YUIh0yC0EWZhnHQpu9GTqVzgyMKx2rVwz3qIBt3YTrZCrVxmyIVYj2CpJ5Yp9dxfYuom9A4xqXQBHyvptZQog0MgZybovaHrt0LfJ1SoSz1VCA3cgq/VEFaWTOhHjbngMHvXwCJDFzEzuFPy6XB1LiuJRVwyoFrtR3U9tWGWE5LPkoX5DroivKDHMZLiU9y6+HAVppppvdbKLmEMc6oMiPc3QzGTBEj9yNQVCG3ii0fdhLGHi58fUEA50O0ocjKLnLGELBB3mfzt9m1NQDOPrYVjd0R5fVMhLatHTAIEax5FUN/OQcJnaU4Fh4dD7eDPQIiUgwwG9zmGqksTF9FxSllM47UKQWgU6yRyVxbAkxipJrk2Je3zxL7VhEDULnB9FFikAEllYrPIYAktzHfCW6oib3VIDIm05ls+774bfuUqI+cOmOOq5bbfJwqpu3JhKtuOmZ1iZZGaxZCnU9bQNHqzJa5hYrBSKSuolND8T1vHywBZ+4mflKyJK1IA5SanaTfNkFBGKfKm/WIpCXseakud7oNWqNcocTiMP6zhn/mjzittH+8x8Vl4QSz7g+3mtNYf3VX2Ba4dHV+vU/wxrQetZ7+dgQHeocw3UXQhxn7Wqegrf16mDCW5dPLQv9+P9NdU0dGI6fYnAAXii8ZtOh4XFamHeFmpcnySbxZmZUeLWJTTF5UT4GDlZQhTLZJBpF9fKFRBk34xI1mVriGQAPxY4Hy7cRd1LddhJGFmV4olpBbOIdh0xrJGnDrIUxYJLL0etBZ9zzRBEdLzIgNLNJp/F3QHyil3i9ZYAS85fC/o+eeXTIk9je+dzbjW14qcQRDZNvlYz1LYV9NM/Uoin63bZIWVZh/i97kUEX11YWO8KJhblmfV58qzcGyXOp/Ucx2q92F7erIx5RKNHeHqplveTYla8oi2vCsyxrKZW3TozRKxcUndIxffsKoNCNR2he586mED+56KiqkucuIXqnqGreDXB8i5xMiGOddKjXuaXhg8jS7gm+XSpZ1ypDxs7xT3SqLKVJVexcnXrSvzupWC9VgD9xVe2NIGmUJoDyfFlbFWtsSwX5jZeSIjwGCAYViZgNr0y43CQrXKWksjEysixSkhkaiwYtkx6MiPbxxS4MJ665U9UQfFuXj10Ve0Kqq7Rdh7JgU+AlQmYsg8Dy2WDTgpbks01dpgXtdaBSfWWWPHVzGqLqWurrFuE7pRy33eFAeWb7bUuydJpae10V7pLWe99J1i29+x6E8P6mf0+j18qfHSFJHaAPi/AbHiFz6H256OIZPnjkkx/29LSeQxUjv0odQiQflDK14o24xpjAlymPI8n3D8X+/rcKDMR3SmFMrsQtjKHUrJUF7SEOh6NulgelGGVd7R5JSJdSUJDD/ItFnUKK2t6fvzUKc7gNMAwssrWjrGwx5ESzvZXoOhKryVGmksohhxADKt9ukjnmhYWeep67zKyircsASltix1rhp4hor42E0ok3JYaf6Z+t6acob+oM3fUYyGPYJUZdm4Yr6oKqe7uVRk71+gSo0i67CnHx10Z0KEaH1HqfUm22NqF36guLUzuUBW70eRMrl8W1s/Lx+P8tU2dMNa5PPix3/d8xyx5ad+MpRXB9VQyAQiD4yXqjH6/Z0HXHZQDvmgRYpeO2hpEgoSQs+oVNrvSGVl3ymKLKsysTay+hYFFmGpEsBCr4lc4wYEJwysLbaE5hhVKxeLBwnukOfBQdPCQ6BpWmEShXRx0kVCX1e7evsdu3BhZJdeusvus9JIBlLFlVr5vi/QOYTKZhnXmjCQpGRLUUtFjlcSwiEXJ1CL6HizpbadO6V5tX2GZtflleBl4QEuUdXq/DlZE5TWKRWy0nE5oSALuUhKTwBMbj1Kwv0CaGgLXxaKhCbYgu+ylCqEKREEpqm/a1eqzJPdJKLX4dXtMYSciH9nzDbBVNbl+2GGppzn1LNuKwPoMY+mU/Dt/ELD0hC2ZWLAOP9bzBzOipRk025gEV/E1ucWx2UURsWSSIPMNAZdJK4SDeFUGVlcqcBrvsFuYBpoABYFcr8Ci0gGZECO0xMQihdTHFdnQSvnBl8gkZ5VfOYtLEFPg+TLuJvrD0qqkm7AdV4Z43cFucY5xnj4D9ZrK9z5U0DQJ27jdgRFVKDbwBF5SX5uVL1CLHaj1QeJrIonsK+WK2jDUn8nIiibWusTSreENduNucvjcHPEv+DlmhVu4G1tn/vDOVYgIe/m2FHqunlJnqalS/SYywHRxwvwyt76+KlKt8ZBf/lR6JaV8uKjpLjTQ9wAotf8YVWQ1bGjJwkKkTHet/VGhjPzRD0t8vD3WtzbW51YbOQ54qZgix7GI9XQKaQyozYMLgDj6idfViPFXRd/7WAppTyekEqwQplojQXSEqZDkY0ihxpNOe7VwzrLKJbn37kqRib3AdE31uK05rqpVY8Zv/l5cOTCyzFQu5zSL9UP57eEl2MoSs86zSjr6W+Mahm6sAYCsIvpEttncpa+0fGlzTXmoy8ASuCq8SNiW2Fg+7AKjjBFzyYlWtpFKchhmVhGht5pu5S4pClyetisSSXeHHxUCT/IVPi0ekhTgxK3oFMJGsH0D9NKONsWDQToyizD8D7asWAh8RnCI/NHBho/zRD+l3Ems56/PEiTQn4lNnBKbWJDoVERK3nm3HA7nSckBrIgQsLrWDXJIUyp8XLXGMak0Y173k4ES8kiMLGZQAmiL94PP5lXDyg9Cl14LqNeSrKs32vQ/Yk5yC41JMj6HmulzGFmdiCuN8SemGU0slFle0Mk/sTXjfg+sqts6QAh60ByO4U3gq4DXashsquPMjGhL68goJb+B5UIC7Tt+NZ7SGb/eqhquoxtoaERZliIa2fHkQmhmI65ZsxSgyt8sywDzK30XAzHFTjvLWtqywi12feDBxdzs+gEudNDqWTdV1tkyiOX41oPn6NxNlThu6qT9DFeOM7ZXiCq9ngWvkDnxOp8RGDOscJA4Jbi/RKwzTYATTqHCJS19jah7v3AMd638pd1aGEPtBooupozeUEpJgjsgWJUDcDfEyuCjZjkbS2zqrKX2U9WTVYJYyMSyit9BBNnUPPfD2YexLhWYYhWQdcPU8y9s0ymJZIWOZJTaW7VMrCz96Y/8Rs/WOhmp0+t5NrhkJu2iPkOHx5l3te7DopBGyDPsg12VHQfT27HFBOMoSGhMidI+8S9HL60SCUwE+um1QObOtrJAz+cvMYuX2kVGF27hYNW1YeV1wa0794Zg+2W7hECIFTdyrgi8S9clvomkU0DPOYTbmUFqsjHJmI2CDp9iRMYxB6CXQu8sve2+aV8xeusgJ5dq4LqK0FVzyUuGwaOFrRCmqYjV006Pq4DEs17oxyv4zBqLxRG/o7C+X7GKYFTCVuY2qxSi3s2sde9aUExYpvU5PW9L6CH1gpws0l/HhGAvUA9U5sTMa5/vnYVVebPPQ3mVwNDQ3a4fjuGAkRVLNcXU+dqDtbuiyCSofGGo9eh2EAmE/fExG/s1ZVt89l5uTi+2hnEJr+AJ0PnLr0NSvjM/oS23ijcuNFga/C38nsPCsn21jr77QgNiof2x0zZZcwKLXmwsBsYx4LN3DmnyfRrY0Ute4fQfOa0HVlBShXFt7oBfMrPWrUSx2DjBLYzg+13sDhNwMdRnJWhJDUwQe5cjNbxczSs+yRPMXBXd8+ai3HelGA1+susZiDJ5pjEKUSfqiWTJ0+MJzTPgKHUrt4B/8MGsHi/EVB6OocqdN75jsVU9ua5YIK0o3ckit5LdB30ONmTVNrTazqqRA+aUdzK1dHIskFF18ItS8zGh2au+2hWqBgecchubS8ffQla9adSYG2ARd9/yWR0b1IhbM62hQ1c2qKDRsyQPe2NJQ0qH8QRezlBURN9QVTn8xfbRzrHsuWyPErpIjxF8FilOC2vARl7hMEi8L5V0Tzg8I4hCbRWHsG5ysHwr55M6v6FaM2zudbezsGi6jyz3abdIPmJB7JIFLCJKw5u+KeeP7NFaZ2QIVrp2t0ZzVGfjDt/YWAwsvoeVAhLCgOmMvUtcE3t7EOqxkZXDquVIG1D3m0femmLG2oKav/RhlrhyxfjtH2XMYyMUDy2COLDmWjPrC2aFeiAN1+rZ/Itj1e1WVRt9HW6bW9fs5dka14cpxXYangE/8bLtA3r+5ovGwFS65vfxBakONU0pkrDGs4RPg8vhKxdsLn74C4VAj4KQGi3zBXLFakXXB7EiYNZRmVG0GcqaK4Zz9S0d1QnDLh6IZR1AtGtnwyGlYVW8yulLJMaPBPhOzwryGwioVd9Fpwo1/bUHXq/V7Pc9li+5OsEhhIwWo62YTq7TsGqMrrJwRZyrWjrC+sv7mguwBpX59NY3VL1OZL2a3VZuQdmaYrmw0OHfYtqPXr3SFHBPCytLacCiUMxvsFhC5brnE0VLDQUG1ThnHH8ziyTz6omvYvvC0i0vXzUzAtWsf9JRZppe6eJ0M9DZwuE44ggCOB5l/ruo8o0GASveEPew4BNdErDLaSZ7L3dVme7CUF8dan9ux7LmY9CUEyymACWel+nRGImQ3upZ6q7YJBKxLIm+eiasKnVryMzTCj7RbkAZvt78h79C/Y8SftSDi2d1RtI4g/RobWD5ArvEK4i1GTbZY7Z1S31+VJFnCZModR7M0on7dnivGZujuZ3WrJTqlkaUQOZh4LzmciGg0sk9fR20r/Uay4WSxcigLc9lbw9lncMA3spEqQDWKs42UylbWQ1kLJYZPZqOYWXeW4Gd3i9bBs5+BFZmg33DzayvqirxSMrExarfuKWqvfjVsyoHna6+khmR1UuZA0COm/NpIIVmcsvtqoIil/kCdj6oT9FkF7zCB0U2sVn4iGVNfMFVddC9/T6C7XIF19GtkfF+uIzbRsrHWaK6mEDxRCzWjP/A1K96K+cmjYi1GtX9T58eHuZiSFWyepal8ETc2TX1PqH5zqyFmUX1iseLhYk05mbyMRtMRyynx9hMwRMEXgbX+v5gYoykdlxAtXctUkuN8BIzcYxUv8N1HSc6vNeRDq4o1B1s0lC3KebU/j7IWwWFmvYxxiXwfT4pOVYpMo/lwnVhHmbvN7N64OVG2Cpre8weuVgYJJGWHhh1c0fvnHIf8/vb5iamibLfVVplnhSmoEOcEUl+2n7hFz98071FfKeLetypNhYiekhxq0j/ZDJ4qnfThQ6QAXavQvaTufO2Pk0rRMiAk+6+XLiBw8YCWH0j0yv9V2lgiVlGE/dnZGYpjPVgig33DyAt5ZNPZpdqUtrj2Z/FxLJ59Gh3FCK+uqtIcMbY1XZz2hf4dHwF2W+mT8wW8p1U84vpEK76MLKKeFbTRrUmTzqQtfRbFIkvWlH+0La1ysCa6PFx7tK61+QmrggYJfsf3hkqMK+FptWxS4R6ym318ofZGOWa6PCTJFgvMd8HfnGgPqxb+41VZhfJuTandiosBpdQHWOz+cAsoqZbBchK4wxEjet0xC62IWX7BCXDR38X/8fFBpbK+7pa4AoJaBtMLBh1LlCCzeLYtwtv0WkNKg/skhiKza1mwATEEiUwoMQlzUsXz/NhLm3vjx3vHnUHp17+GvGW0mQqnEkbDXxhz53jbY3Y3rmTDjWG10XfGaMJsqPwClU2thyeaoGJZePJs6oR9o1UsUs44QsHYqb2W62Cjf2GuyvquExfFzkyVVK3Hiz7C0YDHe7gExq6MiNZ07/U2MGwtPowGk2pBpYbtf1H/b/5BFZLnAfhIhI5M9Rrht0ArcmKvGNLlmBYMXJPZqUKnMPwNlSd8vS/e9lG8vGujuNmZLm5p5KgyLsCW24DfUbXqBThrlZ0HF1PQLPjVZ+uHzsms1DoTlsiT0QIUPLLiIwTbxBksrvCQ/0t3cTyV0Ue3wxWaew2gsjJD81XG5YEO/4wyJO0INZhiY3v65MWqZ2B8+hpTeYJLLVKxFIDp4iVQUWw/LGL1KfjM6UrNMBtsucMK6oMBlMDR+If8iP/k9vGFpI8PtbIhUfHrRnJCsZ5qMdZXeCAwBz+k2toJhv3KXaYeIhZjbBWst3Ejsw82lYtcoP4+4hW8+303bVLnVZypbaV1eBq53ATK/+Hr20kFSTqIkxBEfNodajJzQ2dVp3nofnG+oRcPzjQrjR23VVXzQ3CWN1AAXRhDbkhdJgehJW2MaQesg/wCtlcYfAQSXNKaEQxgjZLadNECpw3pNrqHf1En0DNkUfK4uP4Zr60VEgQS7TquxzEEXvPKIfaFZvvolYTS00/A/Os19zX3Y1Ji4yxXHisGhzp6kN+ZGlincKHMyqIebpvD/AbzJ1ppBGBVqIfqAcmmaW8dWUZxIYb/4NTmuw4WTDEzTt3pTeyMAdXW/Lp2nCppNBff7y3nr/F/zmejpdD5r1l+6pUla61ZKrBmNnUqdsF2+gbrJvXP3NU++mdH0Qe2VPPuqoqGmFikT/q5M5WpoAVIQjGiEIjNXoaV3sUVX4SGl9wrgliszkSLxG+qUmCnwJbThtLxLqPUDaOoV+JyLkG56M89gp1qu62Kizwq1kAC3trpmfx95krldxkBSZ9rE7ALQxPnTCCbhLqeZsnka97YaGZTmIY6rpqAiBITj7Eum2ijYRTjSH4jklGRxpYq3jicL6pV0FOYN1JKAs7CN/OKOsacBWnzjzxosUehsWpcUeyQ1SkI+H/H27pMGlrbMlw6YaHd/VLldwPUxOO6p7xc2KSl+rllsRlwXs76weRagCq697DXUK1WSok0BWdRUV51LbLFoLNA7CEHhdpGTqhZhOrx2GIPTvFBh8zHqypm/dk1pgWE2aJu+ZPuvJ/bx08OnNQ9cjUes2EhwhIpRt5WTy3E3ZzsrvL2zxUTDcRYys9PVjlPbFh5qK/9yJ1P+i2sclQZGOqqadqhYgwUztE8GSw5Nx8tV+I2cT0hLNQP/zCEUJlMVbB92Bd0cu2VZU+bxGrpJU8WXibK2q6R1aW3z1No9uqtXS9uXLd1b2ey0QkAdUxeF0qQhD43yArha3Nqh/x3RIw7RtuYF1il4Fzdd04EtNY/1vn5UpP5YbLO2A5l2GmihJ/37GtR8j6QcSCbBRhJRRZwszZQNvybfzDFhCmzgxH3jeCUpqBj5g8Di0FuiR0BaC4RZvvK3Hgx4uFyTdU3ZgP7OXpRUO8kyM9axfWCMs2lwCEWyhzCkr51zp3E2PrNF18vWnwofjlQgwphmga/hTudr05PLdWMBoFkKqxlEHf+EMDQgjb4hl851ONt0HI44WOnk8GrYuL80gNq3WnSOIMC8cq0g8nheuqahdWmBWRmibXTOnq3viwSvLVVkUzZa1pNG8pCN8FdxNm6fzP7qpvLJlI3eDnwJwDwU/gZ4pZ2FMeY8mV0/Iy3fwG3N6Hsn4QrNhr1P4hlpVcws0xEetxdOuxveMYUjyTXUKL17MBG/kNb7anaXgIPywa4h4KZ3OV0KRinpfdyq6+JFuHtIiQ6/7oycL57I+cFMtXE9/3JV20W8XCASxnNaTI1BSykfV4U4fM8NMgIkeM4NaSjQPA6MP4Q8GtJSu5UaDECDgog2yu3D1Wolss7IkdQnt5f3qmH5GuY5G1XyON1J/beJxzBX6hv/ej5KiHQOgiyDnGsMfv9xeBDKxmGcopfc+4EecAWSVbzapRd8vHnoJi5ObW/jddtSdk1tqF1IF/+0511RpEbLen2tU3S/JqEE3TqU9pmHoClnSs34xjpLrsF74pPJpD1pWqFsCwuVQoPVQ9UeOIjdUf3EMNicCwmhtv+QaxCNr3qNRduak9PJfKc3e9G3fgJepNmNUjVaMhfSVVP+rtI1iACiaZO6si3kQ2S/mVMb/kK6QsA/l+imR5tbCEqjsj1rn5g0uYeeyL3Mpq4glzmQkOhzc8fEDgIBG5XYKghDMyWESyMIx0RwT8zmjW8UA0aoeFJXWMLGHB/zPwd0rnXfiFKTXlhXI1nsLTuWht0URLyXSLiSw9Jq5MwsK2aok/U7dShOwhXq3ceNV0TBumFmkE/+Z91AyXKlZDTSLZVjahLEkhraVLAbCJW1azUCwjij8sq5rHBtYv1J2LmuM2CIXjtlg47//ArTg6319G9SSzO70Rry0hpKSX/AsYK5fk5DK/yMiHtoklBQM3Eoy+J8xTHms2hb1aKTQ8u+F3nm6cjCSl6R8haNeCl6su6gyPqupdQLUYBSTL2u1I2ZDM0cFkvgJsnR4jUymgjEERqTFV35U42+59WQNnnYIXOWrpo5Vektoq56VttGDu7HTrd0Zt5xYcGdwutObatzvFlpjV0aYjSyhwOnlQZr/OhlfBE87u5VgmX9RIDTjizKS2WDCSgoneTmbAKTlKWg6ZPAIuut9rT6za6V3HqptrvpILQlfxinKkXNUOXfwV/eddLLcoteJh5WJVsjkppJI6h2lG5TxuL97a4PcVtSq7YjVQ7Y8q5gSW3IlLV6BVL0YYdeL9o/7mxejXXiLWdTrI1AcJ8Wc9lhilDTFrQuvmQ7s/TcpWk6MuU/xtELFcI7BVrQIwIlMd1ezAoq0o8CzgrN/RUkSQMfsUkcYYpZvDZVMydBphvhhse1woXLQCAmsyosVcOEO2wnnbaqpuvCfweIbC7Wqd6vs17fajPB7RIyFWyzblEOvlyQgimRAuRo6VohJl1rBwoaXTywpGUyUPB2DksNUgGab4LstwHkPL61c6QJYWECyrlQUqPlYOO4HVJZOpgTHFAWyXnEJeSy818mmF9fR55aZ/3d88rO+R1On1kuykteMKD0tfZ1/peQipMApiWZiwy8nom8JbFT3iGkUaIam6MWZDGgtO1/ah6ccVPtUEB6hUR1z85X2VTgbe1JTHtjUcHIScgEysDYUe7I3nv2lH5tQPikjXl2+OFVRSP0CzvKuAH4UBgwx/hqbbqOLIFpkVY7ACgO1tuFeni3TKWbVgWEJTN3WLYgww5mJ0CXGhNIgVvWfrN2Sh7YWEkPWmQJf37E8fjlgLx8oBfMKscFH85m/UiTN+kSUZaHr6rMU4qAJk6T8vdyPdLdwfOpNhx6T3+NBcrJYJHtblqyiwOStY+alCRpiwvSxf97BErIKVMHMO7/cg3ixsSUYddx4WnUqwyXHzfhGuzBeKJrJm4+Ah7qITRfqhjsBUNmHl1crQ8vQvuhpTZ+YogF2jtDl13C3UX8/XyCgXYJ7rdmQEXFJ8gcNDFqttQd90FL6TWdofbL7ZW8fWvpQO0rmjFofFlOxHRlBsUJ4QXgv7LCSClDYAnHW3IsPzJYQwu1uTiCagSmCJ3WfoMryGHT8hi/CwSyjKwvdQPnyek0eRSUUVahgwd5aqnWl5RmtuyNj+5EsLFgKZN5PucMXHwcNS1jp6dPiXHhbE2miEIJDiC8Jb1ddYkRuoirqIq+JVabtX13qy4azbmVpUrlBMEXyuQ3cLP9xGvC5Hf8KTzgSDeGsc1Sdnq8hG8Ek935Opug0ncUbWcH1dHcAME4uc+HA3BKx9f3ReKhQPUWLLbCv31IrhabmsgVSXSh24DwqubLkdd8BSsLR7La/4kwP7N70iDL/Py2qB7FdEsaOiRZ7sWcLKXZ4EiNMa1NAEC1KnYyzG2hnW7ajqi2O8/XlLmTqvP/tKzRAtqHLjmeMBUMQs6HKTwyKNheci+V4Pi6jQwDoVD67QLlZ+qwFLUUh3Ed0IfMgFrFpy6tSPEGQOp971EbwHjhX8hD73QrktSSZLa0ucEFZ14pX1ZPMY1ygFZd8ptGTm1I6RSrdXe/Rbe73Mct+eiz9GSneytllSMOhp1Jd6iH/u7VFQDsktyfCwnP2hwgEsDV1lQkOko/q8G42dEHEXvnnuwCwYskF/Lf+ogWXjKe/du6evCot9/+ukDMtrbxLxDC9k6mTDVT4BTdfTu2GdrjQ9X0fmjf9Ea1Pe4E7iLsM+3AGsfNr8JR8GCrAKMLR5WDoFxGo0+l4Pa4pq3q/wizxUXXGcRp3Ntvu8mWPCeSmEaUUKPed5hYUXBWUFRkoHCADxMRJ92975sjImTa+zEhfynGQQs+uwsBSRNU4w6GqHhSp7RqCmQaqRy6oIcu/7HmGct198qNPmK+F+Aq94z8MChMprx/C3mC+pU9MggOvmlEUAC4wRbPvgvRnvgaAaKCM6smAn0nA13AhXN4xRJ+QmPgRbbA+VjT2mAcEimHFnJ9fwILYaTTXaGbbssxjAjCUbDhnf4IRtfwp7CR5WXPg1cethSUHi3SrLd3pY3Cu0PyUcEdOZa9gLFtLeL7zWOBffgt1SXYivcs5Qt2+31b+0URdTCb3MeBg7cLX8V+sEmHb71i7BbFQ3Ylrofl2WyVSJB2ugmmElezWQc28843eWhSxjqZdMbY8zBX1ZDjBpCnLEVzwsoXhLAJF8BxOfyXfHhXhZ4OnXebrnISh5JxyUcMtTu1R/2LM41YCJmyTi+4jZb/XhgO3gaO3OLzSQz1rQ2C+syYJ9kMl3HtYOUhGxJSmfx7PXYfUSBUYQKdgc6wMavt3DqreKdQ9w4F4FkWBgL90LD0uoOr2Oqh3sSRlNwuRZ708FQ3UON1wTq1bwBHaAilPhJBLe78S/XjodqXXnHmKNKoofhTaHja6FSrcyV2VpDUunxNMUyp/WTUUOI3V/WHJcozlYgAx6ERnC4T2TRfPew/LPYydA6B4LuGpm6DShW2NF/wRZ9yGhDpDFOrToD5pw5E1kjSS0NQTZkaah6xZa2sMU+Q0egJ38azC4zUg2qHl+uiOLG2T1N6bRB4HehjQN9YmufNfzQBHP449XAavld2J3mHYXpSfeOxq+2cPiXqFQ4gQ8/Oqc1cBnHpatZXUWtKK8N88XYNqDHQdb4XBDkF0D5WH9uRTr8vhlukk/XBV9FoxccZUTT9REzo+QMW2dwxp8zdPNSvvY5QIEEMI6p9dhTMoF62Fjd7Bo9rMacrUINYGS5Xxx+KO3/BTIIpXV0IAwp1uz3A4ZUMSxi+16RQITeAPa8YJZw8ZcUKrUpbrwCiFAhFtNnpG5rLiFmEMXHbCj8UUXVOZJwg/4guaz6A1rWIS6Mw2SNZ7lb7iNU47jWf+UMTt4WDrELL9aZZMb4frRKXtdaJ+B+i7Fhd4t2twr1H4PcqnqmtWeWuxrQA0pbuVcqDoX/2Jat0RWuOqde2JyxBzryVAOlg24ue+1wjYUlKoeMaKAdY4yq7wrcWH4cY70re9pTLV1Rv19HLNrtyCrM9vLeGhuqinDrLYjOmVRQqVi9QnYYgMQ/SolV1kQFa4uSH0VEqb5qfpJeVkIyBr5jpDKekNgyjfeMeRTvJw2+lXASpwr9gEkMNRVs+6oZZew/ww861LnJCV8cThJrQLxoDTpAcCij+fWaEsTkNrWfaNs38om+eirs3zIxeTZi+liPagMIFkNm8DXKf1sRJ1JvGsE/jCjDS1F93ZKmIGBWmTe43SGXY4V8MLDiqWW9oUDp+lOjEVFihGuzZpXOTug5ox0msyntp1N2UI4NipcIWit4AdvV2rKz9aKT9S9z6b2t5oNGUqW9Rg6z1Xpec3Z9nXZM17EjFz6s8SNVZ5+rk64pcZNT0cA7Pw86Z4gLU+AtX33Hwd7VXYJuzrKBxIXjjpii+VQ2RKExOJGYKw1H0dEtAEoI5iGBoWZOF4wa9A4nYKv9pmLU1syi0u+iBD7w4jL8lltNlcHDg1aPvuvtgUir6OOa8ESei411ekyEcx0Kgv3c8A/tbnzihxZgDqivKqJq3meUh5Wu/vWc+yG2VL6EoJLmFgNDUw4Pqx2/EXwqJyQ+rf+2TzJl9OCSLd0E9zdC5A76ctlcxrqUup9aQ6RJ9aoUetg0LHkXCXktqU+R06LkO21f8kFMXOu2Fm7JAp63kXHropr7/OKXlVhbq6uK/XtFc5G2/g163pVMyIdZyKnznQRLdRGTG+9DmsxAVvaCNofmiXz5D7mGOuvw8ex8U6v9JoKizPmhCpxkF2M2chTbX4DSHHVtNS0yLp6lSni0xw4HmZbDFczIDvHOrJ2g+YDLTicVgqEiwZGh9tWS0OI+Cm5/BaeYbI+6Q2HgMvUFxGKT8wJD7FL5bg04IWks/3s15XFh/Sa/1FyU5Q8YoVYhpNDrFJAHCqjiB69ASmYIOfVpjEVwjAOCZnsJpn3SUZMeHU4oXnpYqkGdSNl6CiLQpaU6DUBVcFgXtCARUJoDwUGwUe1Uhb6iyDUey4XsPr+Si25fK5pOV/VwiT150qZoUt/PWsWindlZxoPBGm5pbLBHhKixcpzJoHErEjZb7ch28RlfxyYAtClQY6y/GsxZ+AP38935EDy7xaD9VaeR6SKTuu0yRMYbUOY0Lkzov+eYKoslY8mDDFrPCIIr7xPgl52uaCKHAsoRnEDyOnkmNZ9VDoGpOJsE5Cz7sKJWJt0OH3mYUUIHPUixg0+MLCWPqu+AfVOIwZ6F1huk1hdF59A1nnJXTClTBrfAxWN0rQCXiBJZmUuS8xS/fWFzEW0XW71IIFze+Ja6MSnwYbDOuBiM/w0/e/lrbI0REQpNDJjGFmZd0Wsr5GV6aPhBw2CMNY499DEf0Rg1q2/RbzY5ElrHoCEkSfnPoD+K7L4CY+gU9ywauAgPpzzIanTvoVOBq3Rs9+R68RqtwNXb44xqutBQdd2S9CvAwCdZU9U+LaHtZtiGdRjteoIeV50FBZmKaw030F7fzPRSIiBde0wsnbg1aRTX74QKvHM8LDUvEAVcnXS5JqEGf2fFbyX/QblESkV6v2QBahjtdpB+WEvK7Mtn8HG8ryFGXec2QNYvwdCYJgfgTWiIyi+7iw1pyf/OSFIfCVxHM83vCa6+ENo1cAAATIsAoYOwylWc15inpG7FOB46CthbMXmHYhYBtaHoG757YEWf6d7Wg1S2DXnq4ePQMhL1l279z2sLgKLbYK3hVZqhxocSr1DFRr00CEsikk/4NzHAjPH23naULwpCzysuyMD2SzVJwj8JmjRFyD4MUXsNt+MMbpOs+FlCSwAK7cVnevXhIOIFHk7MIRWe2Ro+e+Fhl3e5Zbs8rU86/W+kIMCQ+ruByYxp31+b/VxGVjhYAlRAEVxVoAqn00sPCEsJLY9dz71V8tssRLsU1T4poe1m8FJZZ4KirF8raUn9lLfPtY0RBdtYXunXQXJDCPEExoqw6fQoa9efcJc9n69ERKGI8fbkDCyJEI0+FHBhQEc5I1IV+Fk9dgPHS18rgw7WbONtVsc0mWacItYWxD6KbIA1mgl+DJ8HeB1g4aG/OdFOHoXXLKO6uh3E+MZz5jHHCEkfObxjOJRWgjwDrVMohCFIo9MDW2xH7iqhV7IeICrWNfGAiLBElDjIs12qxB24B65h6Z1GUUt7QHpJIoK3/OwdgFPIvHkChTiDIAksXLvAYAafOBMXViIPl2M9sAwmMYTm0fUuAeDhFYq2quzGuApQVkZWa9mCxEzf4xY93cMwVWyOyI8ooFlP9qtwzwOIwu87Qzy1qvFCQiHwZqMgKxNKdjJBQVZP+ArNWDkvyT8Qs/xvHl9SUDOliqXAh2m0gSjdUegPt57jpvLKB54VgSHiMNCP2vYnJ6WxurZIxDCRXJCLL8kvetWn6uHkl96WAx2s7YyAAJV1vcYLuRkESzunwDmmLvogyM6vHrcrFbwH+JU7n2Ch3g9iQ5/KiTk+EY5IRRFDGpCjRf70XgUg4NMlov9s9MuAZOy77IfGGFA4xZZma542B2mtPwvQkMkTC/CReSGY7d0I5ib5yNmq+HLY9uRyoMd+UUh6R6gav868ix0OH2k2imIFa2AlADOPphLmDZgdVJJzXQanUdiYwnDLHIrmwMYVh8tx25p3C5i9bt5SGNvgHnrP06CU5GCHD6VelSYyMmS0rUNqWvEi5AwbkLC3rfhET8spKp+NbHYdDr9KaAWvRPs7Ae3Ak/iwkqNZQdWTmNq0uQ0LmJlGpWc64rksSMro0V4agXIivyS/KN+1rsOizLvX3exTKKDyM4NaDUVAcJkzg3In/gHePTUVfRwB1JErBDNxAnpj1bcAJlkdayiy+5n7bvGEywSOBovjYIqyLrzsF5vsAWtWpo7/ExheCSYWe3lZF1MITgM6xv2ezUbak0n+29ctdDUH2fl3tuyZs5Ph4REhT9DrOyxId7RSY48V3vbtpkDkDh7hT4HcaF+7N+8SsNly4EtZCVv5vFddmT1ArVh9ySjP7coZbrRBeW/Hhs+P1EG/xaC6/GZRCGOe3tHVrar0Kc0ViYBNcmpH4cs4pCQcKhFVHgl0TFD9wwTS13o4w6VW4BDJGtrqsFZggZinc05Y5E7wRQz8EAj3HXbtoSFTIY021t0ehYoCAz5q6GxTxLdzgUOh58G8KS4fv4uIcdPZ92btMw4WKPnYc5oOBJ9JlVZZN/LudJLZuCy1b6zkERtJI2snVg4WojqqyK/LC0F/2/LeGlRefKofRJWVm9SafK2sk7TYypWpen0OYifr97zfWBxf+qk0sq9w1++MsF1AmwQy9saQBp8KoJBQkVrEOx92kBgH4sB7D997WZqB+GhjADZGiF/VupW8tHwTmF7g10/k/gnlw449x8lW1+8DNmaf7P7oyGhpyFkZr8seccu+qzNlmLNoisQQJYnqazI/p5cmKw9XG3fjXdJkNUl5Wd1MXTkhd3KNtj9Fs+O0Y1eBpwvDN5dbfgEUZBd+/SJ9miGDH+jP7XLI4owbADsc0hZJ7ElyGcv9bHm+iEdU6BOzFz2a5QRw83vzcpWyAx7HtMJGfRfYvV7q+8TTRat8CXZWqYaDt6OKBVPU9dYcLewxYVbMLjgr4Z0ZMpL497ZOMVZoRukLGRBO02/DwmvyIayN0LCjL9X8qeLJzLIvh8pxaslG7JeCch6z/b4Ib53ZvkOAlCMr/pFcW8VX8fEcx56IRuzKBYdawY2z8/X/gnBw6Is/bIsICAiD2ZI6f3rqjoEDA0eXt2KsmAt9AttyMEbdJnEUsPYYhX6KGkinTKnGnhNgsvs/c7dGa5HasNQNPqhrpn3f+AW3bnf+VRKDUOgm2pYsGXZTDaZkytjSMGq2vzImdTz398u7hQoSrklY8lgZtwvOQqP6lbxdRYpJ0eBRH+WIq3AgNAkH/Tp+4aLrZTEb2/khUdsuEecCI4T4LmOrKgz73Anu/oiBs9chFG6mJMBG4AlerU2e/T6pwYqVOdYBVhLvEETEaQjcrPWWwCJ2mHVIp+I5dEU7nKEXeWRG7zRqcoOCgeqgieKWNXkzg5SRacoN++STVYD5+pJN2WfP1/9y1gxMuqYozpnZmmVcngOZeRYq6tPnvItCh3M4DIJnsDDXo2IM91PEzL8Ru7AcgeQ40IDFp5RUMTkup9YQRG7B1lYHI4fHyDLwVegZYn1q83f5x5n3JaT+xt/fQokxBAFjvhfr1/CEnh6iWN9G1oV2jf6OKycv9xqD1sF1bKG1EdWH9D0d2E9KMEpT2DUwYh/jpa430ysSyP4mJFilv4b4o8I3cqo/xKuteWKriwipmwYGMrAhiFjj7y1QxVhMdLxpk2blhJX3Ozkxm3sN7kemMII874rLOH0AlaeRFbZHchCZR1NIj9F1vgbs/b4I58aszv9QBiaMGC3Qc05bFFvrOIW5oYmPYC03GzwaHcjBudOl6/I0OZ8I8qygJBLro0uYLnsEGvtdP9ryfiKvHSusozK6gCWkr56CVhvLbUsns0uRcc0kA8AxB7augElkU3B6DE2mZ0QCzE1Ztf6aO10ogKwxg/ICU+qLDqcSAwzTuBNlh9aNBsnLOchKKzrsZI8v4glIQRKOuxs4wCwxhFgORMUrAymDCkY1/Rz3YG1R6wnrG5izAvnMvh83U1TUwWsGpUkERv6V/4cbqkCRaywhpM+rgKsRaXRuo+tUvAnqQGrD4jRsEkJt3Aa5f8h0BKAzieGh8LHOWTldyJLPn0Xxi+olFNW5QXMzeesoNqWYkioh4AlBWXBLmbBI9V87Ws3JVwjHtRYIsqlc4nTWsXuv8JBLlWXC2rz3TK5GDej5s7GaLNGPedTU29V11wA3ah/SSRwWVTzTkDz/dDVMzlhCDcHU0IaCACPP2Hq/SaVhYGscSwW2nwDtGZGDojlBVa9CJimiNvSS+sbGrBuTQnFJouoZQss1xJgdWM26LlpLCVvl/RcejGml49rEi+1hW9DKoQYZcJQaaxIlUc1q2mAl7YKyjRgjARbRHr9ukqkb+6AyNoorJ2UkKa+qXMMksnh8g8BVnK7zq3IukFmzaGVsR8IrW6yeYbY1zaYVH653rddEhHPoJp03wdWZgIspX7+DjglxKilX6RpJtb9CuuyxoroazR97UH5cZWixFeW471c01yoMAErbZ0hIdLwj9SvpZnLoMrUOVgpDyWJrNxLCTuztpCi0EPb6sb8GRb/L2Rl2L72R7K84lESqqjEvhWJ9ZpblzQQA3hrZVehVdZh7ZRcwBsghkeylwsH/AJhW8DhFLk6sJT/6MNqeRBGkhqaQSesE4u2Gy0jTawPLb3+isdZZVRZKPNyiT+Cq4KU6rQqOgE0+lPFsaC24FpFSzapF6qqyvAr27IHEXP4cmEIVR5oNAYeSglRhz1wdMt77AIWr10wPBXPJcOHmJVxMD2EO68ijqDz8r1Er1fIa+E/DCk1C1DxGu6e8r5vBnRDddO4Kz5ypJ6x57O96j1w//MT9pX65KbmoSy1gg91woiJPaix/O5ErI+G6DfF6FiSkrsJYxGzzBSDYC3z8+QFDTw1Dwap7Brxdi2u4KEAHxtVwnnhRmFpvyOyuos9Bcp0MLLaoL/P1Pz5qaxPkHUWN3nJjjBrlTlZ2qN0SP61CRzyDbW4PqUAuofYmTH6kxZfzoYkKyJ9xVBUaHKL7FAlXmSFDy3H8sx7XliQlf2G59WGc0QDyyaYCy7K4rSQxlkeDKptMIe9vlhdpVWoNHc5NNzDzRgjBJcLN3GMQnxPW+1fNqMOXK1F97XmCJVIODaW4cwiQ7fiGG2hXaiA57jsikmaFzHpRAVk3ZUZEn4LtEZmSvAk0KiiLPw8l2ZSSFReP9IKWP3xStITxafaGwiZaWrt25JfzgofUFiex/pMZEVkSkxISiqHC//BmVFE9LbudCf44FF9lpWi3vACifF2YdHK4WRRkUOj1jtQo08yBFTFrdWhnotEFuvD/BYq2GOEB1WDRgiNHpmpNu5vGGC6ir5JISugnCNilFM6VF/7SvJIZdKRq0OjRw61bvgEv3AGAWEfnWhjD1D2Vob2fth5WUbwM8yap4djNJXj6pqojZ/NpElK6J/zFKeqHEJTbaxmyJgDK5Z4ZB7L1MrKQj8TdMnGI+0jeAo7o7b7gsgUy+fbEdVGowp4uCGIkGquJgLpZp+KjXu+R25xTw8W7qGSu4tLOqjkbrxZNcqZNCueMqCuPqluwf8Bvwkil4mUiqvzXgDopA66TWXBmryVWWsS6DklAQt4DRW9XbLx+p0sClhBXhSR6QzQM/GBkRJCDY7PLHnntEbkZ4oOk9YYyTPTpTAmtkCxp83E+o6Tt690qbq29SyNhYa0yVhaSGJOh4hUWUK1gDVimqvNDQVGkRJTWdHa9o0edyKLDjdQS3PsglaBK5m4Uk3247PAMoCVKYElaCVSAvVxcM49F/V8ZMl7RvqwxGeKDnIVnpz1rMUYBa4WtLV2d/UxSkLWadwWjEGRPwRmhrRWFS3oUEh2OpAa8FK0yJUWW8nTI3x69Jk9kVn1FKwsXP01dULZFankvPkIYk9Rhenid0bBgYe5rDvm3xXvVPIOag35V0rVoz/Ha2yIpPpIFUkgfzLKvjTfnr4iyDpyGXcTTsHl5IYFpA8oLJ1RfDw7BFYfRFJBfzw3hLwsskCJC4CIao8zJNIcsQzy5UIFq1Vlr8qoo1kmMldAVoFH7GABiN7twEgFN6lZJ5D5lKkYKIRRn7houfN+nfgAWfE0shitm2ayksVQq5HGZQMUFSIwPJsySaaGJ4DRxplkclxUWNzznAG23vPY1viQC3AtwRFgPaKxusLKTy8WJq9cgkfzhVPDIIAeOJrIOgZMQER+ZRB1jaOdPO/vAc/dEkz8gVudtWPQrCoTSowfhRS1pUIlcjiZ+qszVmEOXrRJPnUCK0DqvOT7VmBhOE9iihHjELKCwoVFDmSGz6WGc2x5VWcWU8wWHjwVWVX982KIkYqTFeGoK9U0p1KQyfITyyl9VqOy0VJFPAmx0kfKc2BZUbx/DD2TJTRZfghHFmLgiWNDGMR6RGFxsfDcEN2W/pi9qcLyIORXU3M0ZzOhOBfiyENS9VtLYUcpvNVs+X8HyxSuMgSWaJNNGzTNYRUw6qjK8rnnI59FFk+sxnM3s+bU+i/tlbIxnH16C+gEoJpDgSeMle7vCVZywCqJSD7k1h067C4gvcuyrwWrM57SWB1u1iwsv5oqLFsyk3WCklJyPSWkRS7EmLM8NJSnjpx/Z0XxzdOC5XXnKoX2wvVdL36dZBai6kDR1fM273Z+Mv08ss4/BivuYNZvBa2IlGLTEj0yxaqo/vaPaxcsv4Klk1zfJmNYj66rYDG2iwfForHuVVic8uy0GUY2JGChf6YKK9XTXJkZvfZjEaq4+AXBmXw3lZCVVlx5UPABsBvNlIJd18GExQFkxYHBTkMuzs5NjX+lSnDAxTEuUGv3jPfYeAGssnfeSDLYCiPPTv6XLhF8tGfGlYxkDeAQiXPHcrl5HguFxWvJkxcLtwBDuWQJzrnCgiA6nKLkJGR+66anv61nl+1yjMyZgJq0X1Nk7b4Il1RRkVYdCJH5yBA71wtpmN1i2N1+ANYHzDpzm2HOddbONc09F44dbhFJIk6CTkA3hdJE9YiN9F2GklXrsfGIWS2VKah1asUUAwk+qRAQixizzOHN6JHcpPOEwpLiOHG+PQbu6ZN92rSpqTOUxKYY635EmvLA8EyWVv+S+/3nCgtsXbeMgxrto7uiUVnjaA8h64RdT9+AssajEr9Ljjig1Tb/o2GwP2NRKmg1wKRf3hTVAMW4tu4Dhte/95OAWxUWFwuvKKxtea6wVONq4Q0Ka9f/nqHnAcraoPklxXT9JfuWsfxlHfqVD4AmYZsu5yen8pR9gBNipwnuHFunL8iejR6V89VexPK+SyquIR62uuJpGdSxREq40OaqGqhjcIwboWsq/AGFJVqgsS4oLMrHFJZqCNIHFBaM9uMH02lhKnEqTuT/SWFFegtx2XzeZDnyoLIGzftpYhyjXPTiZv59zlNpM7Jbdj7gidg7P6EcoVpsjV5EUsFz9XqIn1ST+UpuuDaY0gVEFu27K7eYF9N3iBvPgnswyBA3fzLLWwfWdtX0130ai1kPXtxZ+LjCqj3/RQ8pLFZBhFdlMTP0+jd1c1VhHe31rRILA1T+cgGanNXOzBRRDnRcVTmArOokn2J7PzfAAzVzCqPDXOD9Zdh4Z/BYgWWqdw6f03IYb/Nme+XgT3VpbxrJ2TyTBaw1QBSqZF8khYik1ZBY0QWWYojG8Hv5FsS6X2FxsTAPibpvVljtXpfl+xSWk3WZChh+Jt/1/IZFmLhFYTH0owoLdB00+COyTK0hKw51UZQRd9CSyA6w7s03wEDe7D4ByniaXchIj5uez7Wakj7wxBGdJYfbWPSa0c3AErGgknaLq7XXywcVmsE6yusYZIUTu6qw0FhZAH5aYekA9eOywvJA6QfOi0OpTDDWQsi3hvnnG02bS943h2X7jxTW8RVhicrKA/0URpfJyWCLiwfen/p1llBsLsHKwKKIBXtcQQfCYse2vWeImnPylaElDvVU0lGeXOE18rW6I6NyxshXlNePUH2N91f+J3vnuuQ0DEPhehgx6wz84P1fFmpx5kMjhNYtTctFDV1bviTbkm+PbCcZ2Wxh7DIWVfSnmxlBxrHEMYBFLuosPPTBXOEpCssxyf5OHMOKV+rcrbCYCeS/XNwZ4QbBjgbfi67/LYV1jBgYvqOFwj8Js/d9DAayRm8JWXVLnPqWCXqXRd7gGQFcYGmUpuqepitasleHaRw9y4Nux1AnKjpMXULFt3ccGf3bFVXru9HpRgiYlyxmIkW3FBZMs0c8ERp+WH5xnc7JCgvCCFn3Kywt6a0I5F4SrHCwX0/Z/eFjWDsNYmD43hYgy2w0HwPiCg61u4mko2VlNu4149xvq7rByGhWZPsDEKiWqGobcLj8T1qrd/yrYYIQGHEXJKwGljiHhajwFIU1DGKdOoYlLxct36uw9On75cacFGgrd87gnBo5tOIwkmv+vQrr+kpRXt+ibUP1gKz36qyDxsgLCPaI1Sf1CNYe9YK9u+bv6v8YLn58bm1yS82w7KpAVlBe+HAkYp2jsIZNY7LwbIUVBrLuV1i6ZCiGfp7IHkGNEKgQVXeeC/HsfnGFNYYF/PTHK8qhzOrqhV7yVL0bPkOQdaHpA5af5F/Too1nmlm09JujsJZdRCwuxPGfpOoL3ygV2GLoyG3ez1FYfhjdHh+lsPgUEFs3KiwWh+r+1VXYEEZ9GXwvpNBRZ/cV1vHqCisqJmX64wVZsKhUWLQKlGwUltJUv1Rh5b3Y77+Wn4LrQmq9brSq7R4tAdaM1/1N/ydW6YeMJEKMbALWhFjbtq+wQBZ7PE9hKcfncZfCssGdfWzKGX5MEpiuiE5/6K1QWPMehXWMF1dYmv6LUV7dImIOZjUK6wiRodr3CmuwN4zsoxRWImJWOyENtvZfEU7vV3XHQVoHoMQFJ49aQHDFsE91iAApwhGJtbxnKKx4ZeH5CiuKrFZh9cYwlptZWG+IOwWGV8d/hcX0XzNlGLGVo8lOYWW1ZL3CwpVnDm2cp7BqdGVrkfPeRnuTO4SEut0uU4QRS2HWcFUBVxiVHvAonZlteZVOm4g1ftrstm22fbE/HTcyNRmVi9+De4Ry13yzta3U1Ppp92eRdQlur/zPjWGRjFHe6BTWkdvYqBVWmjSEQa3CymskaG7nKiwKKuvJdP/fHsqwDKyZrnhO1xIGj6BVBITA5u5xrPlzhpHO23WvqpOa3baNvq8JqahFJreOFrub2sH6BGxyPzJkn61SG9N0enCkUgYuNdmUQh8iESllK83YvKWyL6ewmDK8EBh2CguZRaNOYR15mRWpRmHRlv14/hkKa6tfrG9a1TvaL5mQUMSSKMnQEotYSxru8VAEhCq6dz3WbMvzNkdxKeMdwOr7qvbXmkRUuXFRm+BgsMIAk8kjZTtMB6HCqXzmEZcVs7NlcqLx6NGoRs9R8r2CwiLIY2Voo7CIJgfSrFVYCVnvUlj4kk5R5tUU1tjhWG6z3fFlRGIx5A6zJgoBgnF6il84MHekqHBfaCl22gGW73U8A1iILOrk3zm5ukOzNWXI2JXgw7t3w+W2+lZhmRk4Az1eg0osoo+rnLkamD0tCzot1GDDnqWwiiCvUVjVnGGtsI4iNOwUFr4yOryR9n+Ewmo7FrCElJVLixsm3KFYWzyZ3YGRJyp0767Z3BVe2usweyCwrAQWCbzR5qbC8udEgpoBcIz4MLYyhrJM8R+4oy9DfYV1+9pgnhJoNvyCsFxvqlrIzDMVFpkosxYEQp0EIKTnxW2la4XFQTJriDbrFVacqMRwPE9hHVaDzg75jjgLdpQdES/oozgoDtVTSMhUoRBFUBiXWGkTuTgdC17FqLB48mg32Z8UVjicmnOMO5yqsCiuHra6r7DYh5oTHuKZAUxzMpJVG8WtEwQJmew+slA45V3GiXu2wsqrHHQ4Zh8/fFz24aMJR8EsNuoVFuEdfeworANllY7jSWNY0Q/7RKls69HU18JjrPereUJvQ6loeClFYbF+VMAi3BPA8vjxLM9RtcVHVOj5bTOI1QOLGkwvn6uwkqxoVkrE7vqtNw5It6XjSPoIzfrdIPkMlxkpNhQdO3/KGBaMWSLLbXz89OlzsE8frOR6WIHaKKwQUYKbXmHhpAfMlj1BYQGtnf3ad+pYAJanBtlkVB4JWCKWTcQRzPFQDkCkZe4ZYmIbPqLCOW5ZabAfEvJg6Hm6wkqJ9uB3FBZm/VSEf/L6NufGzkzRH5uaQqgpKHGTAOYL3zyF2qK7lXuGwooqa8zPhX0c2cziRGOtsMjke2BtKKwqPDT3nDyGFSM+5XKc6NrKlas3Ow4b8dk4400Z+cf3vOHHLANLQ7TwIwyrkxphzl0eZYUhJSDOhRNnf6XBvGl2Taven6GweqymQfgdYDVRNL3ZNKmsDWC1LIvr7oU2gj9dsq3TPGxqysmXVMBDFZY48vHjj4j68jnah49VZEho2CgsUhagtamw0qXSMnuKwmpujmYr77/CSuvpzh7+bSksDGDFYSyQxCiVyMWsIZOJKjKWmIaoY7Ixz55U2T3Aak6tRSw7TWHl0gJQlv/r3QAsK1lIE5YGm/0WYGFxGF4bY2hMWyZkESIWJ8aDFBb/PsCmPZklYrGctFFY6KwUG/YKC3dSa2DsNIUVK1GCE0ONSVaN3wgspgp1XuQbjyqF9jJbNaJSYIwmaB1FhTZrYGHZKTdJEvXGg6GfMktIGh8Z7GEKSz3rkav5qEix8aeIOirijvLMFYpCrPUShIWqqTrm/XlKlY/TFZaBpS1ksZ7LzTOdwiKww2xDYeXw0NIRnaywUll26Wkoh6l88Wm9MFNIeJhnbaGtDwmnBt7dJFD0GHvByx2m2EBEszGndJZpxjs+lJWnflboKAd/8ulKqo9fmC08SWHtj7bdL3qw7DGTymoMSO2YJBXzCW/4+UnScGAnKqzDkFeNfbCfzxnGtVm9wipuj7ylsEjYsozR8xRWz8FsZkFPmWuw5XE/2ituA4WVh7FkM45c8b7otdI8YseBJUJ4JffLQlT4O4CVm9QiC2Kdo7BuBVS9c9674yr8uu/M48xuLjxdYTF2le1LI7JyaChatArrKJ5Dsaew8EdmAbJHK6wGhNUXBYajka/9XPwcTbfbY3zKpZVnjWBR5Ven3INnsBoCCzOiQiExh4Q0qSYg91UKF0OfPUvIwSdPtAgs0pSqoww5KpEIFZTl/KruBCK7tK9tswiuJyqs8aHjVbRPo0GWnrTTKyxQQy+e2VJY+BOfQNnrKayD9/VM+zczjwbH22Hj+qzUb+92bfv2tmp+c6upGcCKxIp8WO+i1kBYqdTADjQhEaFlNhjHcv+GRKnogavmka1LC5+lsPq40CpgJcvASumgh4OnUVmA6kn2SIVF5lNiVGMf9D00k4bDeoUFaJx36mlTYeX40PLBvaLC8jr2bg1+sEb1MrIxVchp4MCCWCvN+SlqsYxhmI9yud8LvFDfLtKnwEL+DUoqRDDN7tLCuoI9bAwLXtygDhtglZKumq0UsUrdRFn/utGs+Ft9gsI6CAc3bLLjegBeuU5hZZ0l7OwpLCVkP4WW22sprMOGj0sppXF4AYr1oivlSyMqYH2z/Oh55b+Dy+bUFKGk1SRuFIYYnZ+20kSFi2J2rerYEi6k2tgIgqhj+UTXUG4JIJu+2C8zUhUeNUuI1FFu2s4sIS1DSOg5/KlHosFwYOiBZP+Awjrm55tsjtpA1kXc6RQWj0JM8NtXWEcfIS57HYVlXsHhtVIAy1lmB5vTq1JYLG7gKjhOihgQTvlXgSxUHWIcPNIJM9mLQksnl5d4bfpfp/nVeECNKphPUJpoNgUgU3NPX4bvKRxmLfZ6hRXeexVFue0orIg7/JFKnqyUV/SCrHYMq3/dbZyRvd2rsPZ41Q+9Q5qgs3qFpZ/5XjI3K6yjUFVRxD1XYZlpMzNpKF8Yv5Ksp9dm7kRhFauxHmV8sRtmMYei8C+YxasMUy1p55qL1sWDm0rQTIo6m3t+6/CWsIm/PZTeWXwBexCi0avZV+7ORcdtEIiiIMtWU6X//7vN+mp0NJoSCAvY22uKYcDxI/XphSSuu4lRq796vpagPb+XQxbAKDssrdn43D6zcYfDir9hlNJLhGcotyX30Eex6pVxFq+w/68COLfC3zP/xORJSjy8Yak4tYl65J8g/s3onsNimybG3QFs+59mRWTpJYLrQCAr2T+NNYcFhvzsve7tLofljgxwpiS5rlF775V9n/YYlOSeWIlS4rXvlPeUox5nmkuTB8S6All5rh45/xBoRZf1LYc1aOCYvrm81bOJVFpeiVB5UAgdDA9JOgOtDotH0UAtLFKXw6LshoiQSzK7803tXUnHbMTmsTWcLx8S/htYGlzxM+gpC29K+z7GKdXaO5c+pSuWQKzpDqv9tGfqMP6EhSgdgo7yxwEU/NAQi/PWYRFTZzbX9p0OS2U3ayRBrajfPUs7pBDHqzinpLUk51UAFjO85n9mEot9rGVW2VcM1+OuZkvnGkzWRIeV6PZO44gctQOj8mKsAl1oz1EQx0rOZok5TQ5LIbb3zOp1WDzOWsSQ7J1IJl20aUNCkpf9NEfIOyvqw+Wy5z/sb4aEj3Te1fci1kClKTeLV9sxX2ixQJaqLjzFYflO6w0WBCpKxLJFkecrPVURFN47LGOOh1auOixC9dFhu8NyD/mPiYEi5EL7J6msUr9fnMELSlpZ8Utm3OyTxBRhIV5hsabxijfjCmR5k3X9t4/W698Dw9kOq66ZDuv4dKKd+KlXYQtPq4sOSzWGhhilJodFLDBLFPvUYfFflpRBA7bgFhoLLJI7fRXR/juEwtsqc2XEWuaxriFWmnSzdOgih6UVtwSa5rBCx4UWay9Biqyop0kYqTqs3xDHI0uqOCzFAAlGDWg1OiyGhXXQUE5IYy3TKIdFWP6KX+Bw1MK1OySrgCt81gpi5Q+JNVTa8XDFG7nOjPUyxASXtcBhVV59msM6GPMJQeLQOfhj6kph+qnRePXnCC9dcFiSGxsqkJsdFr859O9RwEN0WBLlvQ6aMFREwlZCuaC92EAKisRlZ36KLc66WLaUWGdhObEmfVrYvoNw/17msHgn0FyHlYpXet6b+7C5qDPBKXIlNdKP8qleDx2MFlkOJZCxqxaZdXJMayraUGXbXOljYBVPIyoPUEJld+f3ZAYLj8Wc+IJR4fphYfVST3dYCZe5VCAGSHAzrHBYbDPNYSlHxxNXJQxZwYpEGCK6uCwWn6gF7UYbBmK/c2QWQzQ/jST2aJZcrZLWxiwPrd82SBXWOAKK9fGgtMeKPzin1CwcWqOy027KNRxBrGnLJVPvKCkvQGaRw+IaXOSwWL+0zmGlAuaHKIVXlXMi/QkuilGg6oqwgVaAp0OjPEn9ZXhqPpFIK/AWukUBWKqEvileikRExVQDwwqPlZd+u2HBPFa7wwruZqGiw+p0e/0OC61wWIczVSFzDcrdGtgdeR2y4n8GVnivYofd1pSUKPugiWoEWezs+4YNCvFME2oAVg0ODJumMevKUSHIGnjzfOKwyLkGVzgsQqnHZPU5rMiwgQYrOqznMFUsTt0nlrcFUHy+R4RC8YX4WjhDQlZFYLnMtrTtaAAdiDhSPfaOHVB0WDGSHvlWHmv51DvIKkAHTXVY66eyosOKB7LGYaU1DuvxbNDWDKzolRIXs3waFaMFjhD8olbiX2zbIVLwWhEybELBwkF0YQNSDmV2D0sl1xA7w68qiux+/q/nsXIqTvyucVgpkGKxwyIYkTVxDovKcEWHdYhHlm9fadu+MtUU+HPmqqjboSYF1fsIrGh3WB5ZZWZ5PBVjZf7JazVIKPgZ+nJY1xPrpXQHYl3osNJykxUdVjiQRQ4rVqY4rAMTpcwClJALxqYiKKoOq4dZiDCNAZ4prxD7r2scD1O+BbG0k2uJlVy9ciNMcFgqQ+6rHFaf3bu9w8r70xHLoGRR2aztDBxqedktRa0X2Z69ArTqDgtBrTH61qvxhVaVEU3UGraPjlEZ3Sgri8+IZvP0uAex/Jv+uPbX0Bc6LMC9QGWH5ZFV1wiHpVY02mE9Xqw5ANVxVi3i3JRFaVJ9+2pR6FGgRP0EFG9DFltRo0HlCdBynHIoYY1odQVByVas+UNXOqqEQijlNi6kRfNYHfsZptT2AId5Dit+TneNw6KVI1k0h8XhfFPRYR1/xCh5qGM7zdS2CVqvjHTGINpmRuzseSivIyI1HVYa5YvG+TbwUm43j0SQAqLqfZmqgWfS7l6bfp8MCbmdZ1os/7iZO/5Sp1X14aMpOCx3Ieap7rBSwe9NdViqoJEO63gKRS9KPZW2Vy4WAaVDsU19lWzS/Tgzka5qbNodVhoAmRHgioSCG6xYU6LoYUa4cW+hrrx6ixZGbGq42Rey7ABHwCul2zxehgtxncOKyFrhsCZ90z0fxyF7JFul7LRaclXHK51+SiuRTQ0KqSywbRU8NB8W5G7nSx3pPdCK3uhDsQ1rikQrrKKICKfcrGTEutUj/WwZZLduSazhqjusODBc5rCizRvksI6TO5u4JT9F2caDJ5rIrQdNm1a5dfqo0WERgy4tTrOCsXBcN/o3+a0YOe5EcgFYhWEX3meBxyLW57VUkXwTdSnM/JcuBYH4ehQHarbJyrnmsNo/MRzrsIj0KzqsApUoCGOq0hdu0Xbk9yqyoeyw+oxWBWOU6J5+Frn8ZHzSXeZTmVhaP+71SL8BSzxLixX7gSdahmr2TFaTw0KVYxnssGhFAxyWuSXck4KKKg6utKIBZFWBFZHV4rCqzOpwWIVOjlqdVzp2RVWSxjj5mykvyBCtBEkK9uMej/Sbgcwc5PrMVY0SCxxWZWC4wmH5aIeiw2IqygyTYjBMU+tU6SGqQa+MGpiFqg4rtUzCt3PBd3L6aYPE9w6rwJI+Yt3MWbyR+MzORx5Fx4vOvBbNDotY8VhmOKzY5XsOC2+lFV9f0MzUprDFXA1q2SxY6XAk5JDQ6rBSxWl1O6zCFj9omPiXvHPbbRsGgqj44AIE+v/f29qDwcF0qlCK5F43jEQuV5QUlyeztJw6/TlUmMpp7icyPEQty02zdC7Kjhe7/YVbc+owsn6PwmpkvfVdwuuLWfsKSzvSPmohvKgBMeg1929vF1nYWmEdXDA/r7D2ofVXUKsfHN2dz4qO2zn07t3x2HlZV1x7HzNfvfMAYoq1u+tb+d8ksq4qrE4Mf6nCkp/4C89hAR3tVYdSwanwRsBSYdFoZh1WWIyxx6wLCosLPket7Rd8YYcV1t5XzeQTqqlcH8aeQH1zAKeK6/3SbR1WUgInQ8SRWPHoJtvuVlnXr6ZIdmrczyqs7bLCYlGKaqBI/lqYt2u16N7wzxfxjMJi30S5SWHRai5tv0lzbcvOebgEsQ4fedTmHbJiy+3m2qZiGxtOSKQDMtIhOkRVFQ58dqjizT/9Pxz+CXnDaYUV/AFOblDRBo/bkRp+RIpiUf+bPq6w1sy6rrCo9DiFrXcrr0W68VNJdYxY82gCdtQi+BqwDA3Rx98AKqpquH/atclLn8FHOMXftOof3SFZ+LHIDxq/iYlblraNqUd8lffZtn1SYeWzV0kiKgkvIvVtzx1/HBk0LRRWZ24LzX1WYeXxbb9Sbq0+rru3khLA2X+4ofDtgjPvsJOsxr+KzJ4uSCg1uR3qnN4smQLRi0vzuROgtFW4ejwrKQNUZYf3DEQQl68A15NC+N2WS5YHdwaFVWdH0GzbJ1Tn1H/8+uxImwbSjFX1zP6o5frW5AAFjc/bbdN+FyAXFBad6/OuEXavwuqeuYqQ7TwbRNFRTHg6KOrL21ekYYMvhtaWSuilfLFgT52bztcWbcVg3AHFu5luNbmaKKnnVoXo0HLNOyK7NGIptlrto3rM1nkJ5VY7P6CBlfZklytU5ZdnIrIcPlUbV+w67GuSLAwKHVZY1NfgwsabbWtPdVQdYnHLKTp6yiZeBnPRhw37CLAt5iWj1az3ZQEW++GUafXsRHBB1RpU++nRpmMYdNI+SClGrra3aDdg/EEx593cTz+L89hGVCaAi2lXavtPeExEjyMIPs/aV5VJivhqvroA2asxXzW1deS4BOPKH9bxVXxcseJEfl4K68rNvB9eYDQTmCQxaVcKD4RVzko8NI0AcGCnZ//LpqNDo7VCyqGDhybdMDtCDIEsnQVIgb2N1ghkcb1QSpWpb266cX24JHSokm6CgxXGfYji+S4ItW3U3qkV2t4n2aSORB/rJbWntu5HWakmZMk95XxcvuXryWEe96c8ROV//u+yRIxaNJxXeG8HRy7KNAK0ndR9AtQPDlWOiiwz1YVTmpIucMZrWJBLLYM1bn2DdDHKpEfhHhAhVyw/80NTm6F0AsZbj5yLCNWx+CVLb47T/6Gi/ZTbrUY/rbMg0ARF1lFkhl/lhlpkhdi4wbZg1kmFRZXBNtv9tO9xPtY/o+0qp2TMifocI3DqBRWED33ThUEpYICgWl+SHBqkUsXVWVsFR0V7FqbU596ZKSEwGxTQFYsE/AjyBvKsE7zJ19fe2xzEUGTBjKs1SIFkF4aGy6GXP9JT1A8+8Sqj49fYeWQJQjItvEsx2Y/uovEK8drVdPfXx7huIEt2z4gNrUbN9YcOFr/c/E25zTbWROKKaEgx4MpMINmE4GAywQ5jgHStEIa+6oWsWVuwUVmVCEoP5OJguUm3prcMCTjBHKNoINgZkORoBS+2gyEQhvnDhaMa2SFlvfA2W1ftfKiNGJyLDBFmdUBPl0vg4aI/YTNFktDTC/CoKxa85Kf+GDfbpc84tzW2zlLj6svUcSeRqGoPEkkg0zTfogdanlteKAp5pMOZzWgNHekcrBUMhxtCHaDO2OZKNEXHc+LUd3F7Ew0S22g+DUaocEVQh3ikEKN9tA2lN3YUVr1AkHdW0S5vyxdT7zdG0q8qVqzrN2R5iQigFqJdtSLlvhS4z2AV5MFHBVh5Jw+Ncb+xXHqCTPudQIuI7Y6vOmsbyLlfZHmCQCtXmbhVUYwsMpnEFvMOFJGsDObmeBa8Ccs9hUW89i5xQ1N32BhgMiNqQuZM70LngUFYMzjal04Dyn285U6RmyxlcUPBnNJiFHVzg1xOYUB97L1lpE65XVU9108ySWdQCs3kEhUMgrUzd+tpMZ/2HTxTUJrG0JRjqvJ4ul4NuYJhOnqOe2z9Oeli+DmYb7Y7Pye26EFh3WtbKqx8Twk3qFKAQ3sCJ6dInZi8ljuMxkhAgDPrYAJUh1ZqaGBK3BDRCD5SsOmNKwlqLjvesWQ4oJyYrQehUGB1H0RP9GGiNUQvyAkIV+E+uLmZOmsMGrBMBScx1GtNM5hlJ+jqwsnq32VX7rIp4HzRzl8GlOFljj2+tx6WYM/6szy/3yGwijKHow+OyKhXxZZ3n7JtuTxKq/CHwqo7YOFKKoXVnVp5Z9n4FRwL0lZOpF8gcOqgyIZyWQnWYSR2lhlgYrqkTCSFS+0hv/ABRHF6XEACSzILhm4MYXFGIhS5bHpwct9yQzCGToy4mwKcucuSn8GkZhVZeSosaA9QuU8Z3m1ROj+8ME/XomOKTxNcCVJPn2ClqmIejxew1Hi2vrdfnjlus220C6W1VljEnIDWdtMlr0MpFwbCUFhedQYsTI1NbRgwmCm1hiUX9VxNLvJN+pm4PlmvKo+Jc3YGxekQFw7MpR1HcUEOllMuO+vJfQ8kM7M8lqrsuJUkFB4NEjfWCktjw8SHfDqyzWeCPCOy+qRyrwOqC1rVQ22QEtzaPHREUzpB9F6V+oSVG/HOAP1Wm6uMZTrte23Yhakt54OUcL6AJS9nftvkD2R1GB2fhNalh17PQuvGnw1sGDFr8ChIXaQ87o/UJqmVz2GxA1szw7gWRXOiWJz3xiEMjErgbkqrcCazOJmaaitzI5gVjK6JiSeamZTiURxOKMnJ3ACmP65RzCggcxo25jKvCjRsPcSvrXp3lJQa1j6gj63eLKbUMhgokqkDnqnST9wxCsWnjjgNGKtTn7b6nf82pRJ0+VSWDPNq2B6b2OWInSpeYRxhq9H6zSx9u4CDSVj+W0BxRNMxzAjtIq2Y5FjBQoKZx7bQcWAmiTnqjU7UAD3uGJNYBcyo+OaZIxMmhZ5C1MV1qOkN2AoAlMIyL8h7/ZJB6LbOylLEypV3l2kilIyfXWkxD4g7Lwo25igJ8lqLZ7x1NplBEMw/KYrOMG+wIwC6vsqdL3DO6MufCypoYdjJ/4Fy/cdtl1/r0cieIlfLRzlrKrs/coCecCq0LCRydTsyong4MtKtWvSOFCuYCTjsHyoBDUhs7+QKFFpLRsHNflKTAza4iEBF90yNL4/66YVWlXi3/hu5tpbb/JMUvq/UvR6018L6uQ7ukBLCu4iFE5Ebl8gx/bD8LqjYcwkUqQbXOJWu/gYT+oJLMFcAyDcoGi5AR7UPBIlu82lx2gU6zqWIDN6m/yf+jymR8ejXOTBh1mlPYScLYZCQYB1kbq4POr3hmzfECnYypjHBLelw2OnRGN6wGmS1I3GXyoRMpWCdD7a3UkApzj2lyKliGHdN2uY6xEqYU/FYgMsoZiC5+TFGRu/BDGECgvrgJpNVB1HJ8VFWs2HIiFHiUj5+0zKJP8YdxNKZuAluSJWQdI500+FLG4yfcFnrMu8IPYkumQjxp1k8kK3lZipMXNdVoZDupIBRFPX47HO++xi/c+N3EnPOpeclCgtM6PiY2ZAPNuSjRwL1rKWrqWZkLIA0WZanREGPmN+pp/BA2n4ElNF8AlDR+XLqlgmuPJP7Nv3Fb5x4zbRjIMLcMyKXTJL2Ry/hqup5HHdLb5aRIGTEWVMcUamD5kXLP5uUOoqU1LBF5kWSp8i1JXzsDPXWWRVLgt23eyCG4OohVNZfVO/9yuUAZqDqACR/oz9S4mdO4robcIq0T23UBNAL4g1mbKDCDqaVWyz5IKG4VpWJsxbV4ionE1dRRU4ugUtPpDOXHIyeag8ADGFAjotLTZ4SwUAKl6N6fVKpxLRvgtDg7Yxr4Na14ZaZrMGTkOGuuTdl30iR2eJOltIfgdNIwFUAmqcspbUbRaHq6N61oepbS5N2gjB57FbT1CPrRoW57F+Phzr4Z6ecP2qjwe/NCP1rApyrpfPn3ebvQcKYJrWEEeItMA/RxBc+5PfgSPLHQlZL2eGCAuc00T18POSESmrF5eaycq6+M3PdA0Ni1pFRUlE9pFaE8gPN1gQwrWfyZXLzYWgGx6mZKB7SgILMsb6uOoyg7mpNMfrb1X0sBuJlnd117m9BhJzqotRzN76XV1214docbrprum/7n23kV1VRZRsko0dutuYHdOnkVk4IfYD5GvCMZTiTJ+ZzvNsFY/BAi8E4jFn0RKZEMmQ/89vuUFhy9foXsS2yHAf3gGOntnY52C5aY/pauD0iQDQaR+2WWaRxLv3pK+7XkMaDkIMJ9hzjwrWJcfuomP/4twubaUjRfFbUrf3/zatv7N3bioMwFAXQOY/5/x8emCCbcOZWdSa0rFVKTaKltHQTNdEp2jyV1K7Wodd9ndSn1Nv/Ty2FPPvR6pHFtH7ZrU5VN5aTat9tmua0JFXWTE9V9BX6j9evaZOGnoL59NG/gARSNo/kfG8eDyRFAvPw7H/amT9TEilVsayjfwVsUNnNq7y0ypHbhH8U9K+ADeoUeQXs8MANM48DXfYHgU1mEP36oX8FbFT1QGY5PQhcips4/R4OXwF/68ZEqbchroCb/Xhp8nE2sjIErk9anwtPP+wM2OOYLdPN2iuRVVnOAOaSV8A5/f6Ix8K4MnGmPi8PWQVc0q7Qkuo7vMz0IwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAN7ZgwMBAAAAACD/10ZQVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVRX24EAAAAAAAMj/tRFUVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVYU9OBAAAAAAAPJ/bQRVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVWEPDgQAAAAAgPxfG0FVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVdiDAwEAAAAAIP/XRlBVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVFfbgQAAAAAAAyP+1EVRVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVhT04EAAAAAAA8n9tBFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVYQ8OBAAAAACA/F8bQVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV2IMDAQAAAAAg/9dGUFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUV9uBAAAAAAADI/7URVFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVWlPTggAQAAABD0/3U/QgUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgIUobGc+JGHE/AAAAAElFTkSuQmCC",t=>t.width-1),Vl=u.Ay.div.withConfig({displayName:"styles__StyledSearchInput",componentId:"sc-179lhd2-1"})(["&.search-container{width:240px;height:36px;position:relative;display:flex;align-items:center;justify-content:space-between;background:rgba(255,255,255,0.25);background:#fff;border:1px solid rgba(0,0,0,0.12);box-sizing:border-box;border-radius:32px;margin-right:26px;.search-icon{width:24px;margin:0 4px;& > *{fill:none;}}.search-input{height:100%;flex:1;font-size:14px;line-height:28px;color:#333;&::placeholder{color:rgba(102,102,102,0.7);}}.clear-icon{width:20px;height:20px;margin:0 12px 0 8px;cursor:pointer;opacity:0;pointer-events:none;transition:all 0.15s ease-in-out;&.is-show{pointer-events:auto;opacity:1;}}}"]),fd=u.Ay.div.withConfig({displayName:"styles__StyledMarkDown",componentId:"sc-179lhd2-2"})(["width:100%;overflow-y:auto;overscroll-behavior:contain;-ms-scroll-chaining:contain;letter-spacing:1px;padding:26px 40px 0;color:#555;&::-webkit-scrollbar{width:12px;}&::-webkit-scrollbar-track{background:transparent;}&::-webkit-scrollbar-thumb{background-color:#f7f7f7;border-radius:6px;border:3px solid #fff;}.md-preview{&.disable-events{pointer-events:none;}mark,.mark{padding:0.14em;background-color:#fcf8e3;}img,video{margin:0;border:0;max-width:100%;}img{border:solid 1px rgba(0,0,0,0.06);}p{margin:1rem 0;font-size:1rem;line-height:1.4rem;}a{color:#1684fc;cursor:pointer;&:visited{color:#1169c9;background-color:transparent;}&:active{color:#1684fc;background-color:transparent;}&:hover{text-decoration:none;}}h1,h2,h3,h4,h5,h6{color:#333;background-color:transparent;margin:0.7rem 0;font-weight:normal;}h1{font-size:1.25rem;font-weight:500;margin:0;}h2{font-size:16px;line-height:16px;font-weight:500;padding-top:61px;margin:-50px 0 11px 0;}h3{font-size:140%;}h4{font-size:110%;}h5{font-size:105%;}h6{font-size:100%;}code{margin:0 4px;color:#666;border-radius:4px;padding:2px 6px;background-color:#f1f1f1;border:1px solid #efefef;}pre{display:block;font-size:87.5%;margin-top:0;margin-bottom:0.7rem;overflow:auto;code{font-size:9px;border:none;background-color:rgb(0,43,54);}}pre{font-size:9px;border-radius:2px;background-color:rgb(0,43,54);}blockquote{margin:1.4rem 0;font-size:0.7rem;font-weight:400;border-left:4px solid rgb(238,238,238);font-style:italic;padding:7px 14px;}ol,ul,dl{display:block;list-style:initial;margin-block-start:0.7rem;margin-block-end:0.7rem;margin-inline-start:0;margin-inline-end:0;padding-inline-start:32px;margin-top:0;margin-bottom:0.7rem;font-size:0.7rem;line-height:1.4rem;ul{list-style-type:circle;}}ol{list-style-type:decimal;}ul{list-style-type:disc;}table{border-collapse:collapse;border:1px solid #efefef;border-bottom:1px solid #ddd;-webkit-box-shadow:0 1px 3px 0 #eee;-moz-box-shadow:0 1px 3px 0 #eee;-ms-box-shadow:0 1px 3px 0 #eee;box-shadow:0 1px 3px 0 #eee;}td,th{border:1px solid #ddd;padding:0.35rem;}th{background-color:#f5f5f5;}}"]),yd=(t,n)=>{const s=new Error(t);return Object.assign(s,n),s},M0=async t=>{const n=await fetch(t,{method:"GET"});if(!n.ok)throw yd("[fetchPutJSON] failed with "+n.status+": "+t,{...await n.json(),status:n.status});return n.json()},Fr={learn:["a1_proto_tool","a10_proto_tool_v8","a2_design_tool","a3_design_canvas","a4_org_space","a5_market","a6_account","a11_axfile"]},Vp={a1_proto_tool:["a1_proto_tool","a4_org_space","a5_market","a6_account","a7_abnormal","a8_payment"],a10_proto_tool_v8:["a1_proto_tool","a4_org_space","a5_market","a6_account","a7_abnormal","a8_payment"],a2_design_tool:["a2_design_tool","a4_org_space","a5_market","a6_account","a7_abnormal","a8_payment"],a3_design_canvas:["a3_design_canvas","a4_org_space","a6_account","a7_abnormal","a8_payment"]},Ah=t=>{const n={};return t.forEach(s=>{n[s]=[]}),n},Z0=function(t,n){n===void 0&&(n="order"),t.sort((s,c)=>s[n]-c[n])},Zl=(t,n)=>{for(const s of Object.keys(t))Z0(t[s],n)},yp=t=>{let n=[],s=Ah(Fr.learn);return t.forEach(c=>{let{root:d,parent:w,order:P,title:F,article:X}=c;switch(d){case"recommend":n.push({recommendTitle:F,...X,recommendOrder:P});break;case"learn":w!==null&&s[w].push({recommendTitle:F,...X,learnOrder:P});break;default:break}}),Z0(n,"recommendOrder"),Zl(s,"learnOrder"),{recommend:n.slice(0,6),learn:s}},xp=async()=>{let t,n="/go/v1/hc/homepage";try{t=await M0(n),t=yp(t)}catch(s){console.error(s)}return t},vp=async(t,n)=>{let s=Vp[n],c=Ah(Vp[n]),{hits:d,nbHits:w,offset:P,query:F}=t;return w=0,await d.forEach(X=>{s.includes(X.root_category)&&(c[X.root_category]&&c[X.root_category].push(X),w+=1)}),{resultList:c,hits:d,nbHits:w,offset:P,query:F}},Od=async t=>{let{keywords:n=""}=t,s;try{s=await M0("/go/v1/hc/search?q="+n)}catch(c){console.error(c)}return s},Wc=async t=>{let n,s="/go/v1/hc/categories?root_category="+t;try{n=await M0(s),n=gc(n)}catch(c){console.error(c)}return n},gc=t=>{let n=[],s=[],c={},d=new Set;return t.forEach(w=>{let{category:P,category_order:F}=w;if(d.has(F))return;d.add(F);let X=[];t.forEach(ye=>{ye.category_order===F&&(X.push(ye),c[ye.id]=ye.title)}),Z0(X);let ee=X.map(ye=>ye.id),pe={categoryOrder:F,name:P,catalogs:X,articleIdList:ee};n.push(pe)}),Z0(n,"category_order"),n.forEach(w=>s.push(...w.articleIdList)),{categoryList:n,articleIdList:s,idTitleMap:c}},Fd=async t=>{let n,s="/go/v1/hc/articles/"+t;try{n=await M0(s)}catch(c){console.error(c)}return n};function il(t,n,s){return(n=l0(n))in t?Object.defineProperty(t,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[n]=s,t}function l0(t){var n=Xc(t,"string");return typeof n=="symbol"?n:n+""}function Xc(t,n){if(typeof t!="object"||!t)return t;var s=t[Symbol.toPrimitive];if(s!==void 0){var c=s.call(t,n||"default");if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(t)}const Td={a1_proto_tool:"\u539F\u578B\u5DE5\u5177",a10_proto_tool_v8:"\u539F\u578B V8",a2_design_tool:"\u8BBE\u8BA1\u5DE5\u5177",a3_design_canvas:"\u8BBE\u8BA1\u534F\u4F5C",a4_org_space:"\u4F01\u4E1A\u7A7A\u95F4",a5_market:"\u7D20\u6750\u5E7F\u573A",a6_account:"\u8D26\u53F7\u4E0E\u7BA1\u7406",a7_abnormal:"\u5F02\u5E38\u95EE\u9898",a8_payment:"\u4ED8\u8D39\u4E0E\u53D1\u7968",a9_other:"\u5176\u4ED6"},Hp=/[`~!@#$%^&*()_\-+=<>?:~~"{}|,.\/;'\\[\]·~!@#¥%……&…*()——\-+={}|《》?:”“【】、;‘',。、「」『』〈〉]/im;class bp extends r.PureComponent{constructor(){super(...arguments),il(this,"state",{position:{top:"50%",left:"50%"},isDragged:!1,width:800,page:"home",homePageData:null,recommend:null,learn:null,categoryList:null,inputValue:"",isOnComposition:!0,isFocus:!1,isCanHover:!0,isFetching:!0,matchList:"",hits:"",nbHits:"",selectedId:"",selectedTitle:"",selectedCategory:"",selectedContent:"",isShowCategory:!1,showCategoryCatalog:!1,isV8New:!1}),il(this,"setCategoryLinkList",n=>this.$linkList=n),il(this,"setSearchRef",n=>this.$search=n),il(this,"setSearchInput",n=>this.$searchInput=n),il(this,"handleComposition",async n=>{let s=n.type==="compositionend";this.setState({isOnComposition:s}),!s&&navigator.userAgent.indexOf("Chrome")>-1&&await this.handleInputChange(n)}),il(this,"handleCompositionStart",()=>{this.setState({isOnComposition:!1})}),il(this,"handleCompositionEnd",async n=>{this.setState({isOnComposition:!0}),await this.handleInputChange(n)}),il(this,"filterFirstSpecialChar",n=>{if(n&&n.length>0){let s=n.substr(0,1);if(Hp.test(s)||s===" ")return n=n.substr(1),this.filterFirstSpecialChar(n)}return n}),il(this,"handleInputChange",async n=>{let s=n.target.value;if(s.slice(-1)==="/")return;s=this.filterFirstSpecialChar(s);const c=s?"search":"home";await this.setState({inputValue:s,page:c,isFocus:!!s,isShowCategory:!s,isFetching:!0}),await this.debounceSearchHandler(s)}),il(this,"clearInputValue",()=>{this.setState({page:"home",inputValue:"",isShowCategory:!1,isFocus:!1})}),il(this,"handleInputFocus",()=>{this.setState({isFocus:!0}),this.$searchInput.focus()}),il(this,"handleInputBlur",()=>{this.setState({isFocus:!1}),this.$searchInput.blur()}),il(this,"handleOnFocus",()=>{this.setState({isFocus:!0})}),il(this,"handleOnBlur",()=>{this.setState({isFocus:!1})}),il(this,"handleSearch",async n=>{if(!this.state.isOnComposition)return;const{productName:s}=this.props;let{selectedId:c,page:d}=this.state;const w=await Od({keywords:n});let{resultList:P,hits:F,nbHits:X}=await vp(w,s);const ee=Object.entries(P).filter(pe=>pe[1].length!==0);c=d==="search"&&X?ee[0][1][0].id.split("-")[1]:c,this.setState({matchList:ee,hits:F,nbHits:X,selectedId:c,selectedTitle:"\u67E5\u770B\u5168\u90E8",selectedCategory:"\u67E5\u770B\u5168\u90E8",isFetching:!1})}),il(this,"debounceSearchHandler",fp()(this.handleSearch,500)),il(this,"debounceSearchSetHover",fp()(()=>{this.setState({isCanHover:!0})},300)),il(this,"handleKeyDown",async n=>{n.stopPropagation();const{page:s,isFocus:c,selectedId:d,isShowCategory:w}=this.state;if(n.key==="Enter"&&!c&&d&&!w)await this.toSearchPage();else if((n.key==="ArrowDown"||n.key==="ArrowUp")&&!w){this.handleInputBlur(),this.setState({isCanHover:!1});let P=n.key==="ArrowDown"?1:-1,F=s==="home",X=F?this.$linkList:this.$search,ee=Array.from(X.querySelectorAll("li"));for(let pe=0;pe<ee.length;pe++){let ye=ee[pe],Ae=(pe+P+ee.length)%ee.length,we=ee[Ae];if(ye.dataset.id===d){const{id:_e,category:Fe}=we.dataset;if(this.setState({selectedId:_e,selectedCategory:Fe}),!F){const Ye=we.getBoundingClientRect().top-X.getBoundingClientRect().top*2;X.scrollBy({top:Ye,behavior:"smooth"})}this.debounceSearchSetHover();break}}}else n.key==="Escape"?this.handleOnClose():n.key==="/"&&this.handleInputFocus()}),il(this,"toSearchPage",async()=>{const{productName:n}=this.props,{page:s,selectedId:c,learn:d,matchList:w,selectedCategory:P}=this.state,F=d[n].slice(0,9);let X,ee,pe=s==="home";pe?X=this.getArticleContent(F,c):X=w.find(we=>we[0]===P)[1].find(we=>we.id==="article-"+c).content_html,ee=pe?n:P;const{categoryList:ye}=await Wc(ee);this.setState({selectedContent:X,page:"search",isShowCategory:!0,categoryList:ye,isCanHover:!0})}),il(this,"toggleHover",n=>{if(!this.state.isCanHover)return;let{id:s,title:c,category:d}=n.target.dataset;this.setState({selectedId:s,selectedTitle:c,selectedCategory:d})}),il(this,"updateCategoryList",async n=>{const{categoryList:s}=await Wc(n);this.setState({categoryList:s})}),il(this,"handleMove",(n,s)=>{const c={left:n,top:s};this.setState({position:c,isDragged:!0})}),il(this,"handleWidthChange",n=>{this.setState({width:n})}),il(this,"handleOnClose",()=>this.props.onClose()),il(this,"getArticleContent",(n,s)=>n.find(c=>c.id===parseInt(s)).content_html),il(this,"handleSelectRecommend",async n=>{n.stopPropagation();const{recommend:s}=this.state,{articleId:c,root:d}=n.currentTarget.dataset;await this.updateCategoryList(d);const w=this.getArticleContent(s,c);this.setState({page:"search",isShowCategory:!0,selectedContent:w,selectedId:c,isCanHover:!0})}),il(this,"selectCatalog",async n=>{const{id:s}=n.currentTarget.dataset,c=await Fd(s),{content_html:d}=c;this.setState({selectedId:s,selectedContent:d,isShowCategory:!0,page:"search",showCategoryCatalog:!1})}),il(this,"showCategoryCatalogAction",()=>{const{showCategoryCatalog:n}=this.state;this.setState({showCategoryCatalog:!n})}),il(this,"handleToHCPage",()=>{const{selectedId:n}=this.state;window.open("https://modao.cc/hc/articles/"+n)}),il(this,"getMarkDownContent",()=>{let{selectedContent:n,hits:s,isShowCategory:c,selectedId:d}=this.state;if(!c){let w=s&&s.find(P=>P.id.split("-")[1]===d);n=w==null?void 0:w.content_html}return n})}async componentDidMount(){const{productName:n}=this.props,{recommend:s,learn:c}=await xp(),d=String(c[n][0].id),w=c[n].slice(1,9),{categoryList:P}=await Wc(n);this.setState({recommend:s,learn:c,categoryList:P,selectedId:d,recommendAll:d,productRecommend:w})}async componentDidUpdate(n,s){const{frontPageId:c}=this.props,{page:d}=s,{page:w,recommendAll:P,isV8New:F}=this.state;if(c&&!F){const X=await Fd(c),{content_html:ee}=X;this.setState({page:"search",isShowCategory:!0,selectedContent:ee,selectedId:c,isCanHover:!0,isV8New:!0})}else!G0()(w,d)&&w==="home"&&this.setState({selectedId:P,isShowCategory:!1})}render(){const{draggableContainer:n,zIndex:s,productName:c}=this.props,{page:d,position:w,width:P,isDragged:F,recommend:X,learn:ee,recommendAll:pe,productRecommend:ye,categoryList:Ae,matchList:we,nbHits:_e,inputValue:Fe,isFetching:Ye,selectedId:He,isShowCategory:tt,showCategoryCatalog:It}=this.state;if(!X||!ee)return null;const Nt=P<500,Lt=d==="search",Xt=d==="home",_o=!Ye&&_e,co=this.getMarkDownContent();return(0,i.jsx)(ir.A,{container:n,position:w,onMove:this.handleMove,children:(0,i.jsxs)(gl,{width:P,zIndex:s,className:f()("hc-container",{"is-not-dragged":!F},{"is-home":Xt}),ref:this.setElementRef,children:[(0,i.jsxs)("header",{className:"hc-header",type:"draggable",children:[(0,i.jsxs)("div",{className:"hc-header-left",children:[Lt&&tt&&(0,i.jsx)(Al.A,{name:"searchbar_menu",onClick:this.showCategoryCatalogAction}),!Nt&&(0,i.jsx)("span",{className:"hc-header-title",children:Xt?"\u58A8\u5200\u5E2E\u52A9\u4E2D\u5FC3":tt?"\u539F\u578B\u5E2E\u52A9\u6587\u6863":"\u641C\u7D22\u7ED3\u679C"}),Lt&&!tt&&_o?(0,i.jsxs)("span",{className:"hc-hits",children:["\u201C"+Fe+"\u201D","\u7684\u641C\u7D22\u7ED3\u679C\u6709",_e+"\u6761\uFF1A"]}):""]}),(0,i.jsxs)("div",{className:"hc-header-right",children:[(0,i.jsxs)(Vl,{className:"search-container",children:[(0,i.jsx)(Al.A,{name:"search_icon",className:"search-icon"}),(0,i.jsx)("input",{value:Fe,ref:this.setSearchInput,className:"search-input",type:"text",placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\uFF1A\u9AD8\u7EA7\u7EC4\u4EF6",onChange:this.handleInputChange,onFocus:this.handleOnFocus,onBlur:this.handleOnBlur,onCompositionStart:this.handleCompositionStart,onCompositionUpdate:this.handleComposition,onCompositionEnd:this.handleCompositionEnd}),(0,i.jsx)(Al.A,{name:"common_close",className:f()("clear-icon",Fe&&"is-show"),onClick:this.clearInputValue})]}),(0,i.jsx)(Al.A,{className:"hc-close-btn",name:"general/times",onClick:this.handleOnClose})]})]}),Xt&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"topic-wrap",children:[(0,i.jsx)("p",{children:"\u{1F525}\xA0\xA0\xA0\u70ED\u95E8\u63A8\u8350"}),(0,i.jsx)("ul",{children:X.map(yn=>{let{recommendTitle:An,id:In,root_category:wn}=yn;return(0,i.jsx)("li",{"data-article-id":In,"data-root":wn,onClick:this.handleSelectRecommend,children:(0,i.jsx)("span",{children:An})},In)})})]}),(0,i.jsxs)("div",{className:"topic-by-category",children:[(0,i.jsxs)("div",{className:"category-title",children:[(0,i.jsx)("img",{"data-source":"\u5E2E\u52A9\u4E2D\u5FC3\u9996\u9875_\u56FE\u6807","data-category":c,src:"https://modao.cc/mb-brand/images/hc/category/"+c+".png",alt:"product-image",className:"product-icon"}),(0,i.jsx)("span",{"data-source":"\u5E2E\u52A9\u4E2D\u5FC3\u9996\u9875_\u6807\u9898","data-category":c,className:"product-name",children:Td[c]+"\u5E2E\u52A9\u6587\u6863"})]}),(0,i.jsxs)("ul",{className:"link-list",ref:this.setCategoryLinkList,children:[(0,i.jsxs)("li",{className:f()(pe===He&&"is-active"),"data-id":pe,"data-category":c,onMouseEnter:this.toggleHover,onClick:this.toSearchPage,children:[(0,i.jsx)(Al.A,{name:"get_more_icon",className:"get-more-icon"}),(0,i.jsx)("span",{children:"\u67E5\u770B"+Td[c]+"\u5168\u90E8\u6559\u7A0B"})]},"cat-link-"+pe),ye.map(yn=>{let{recommendTitle:An,id:In,root_category:wn}=yn;return(0,i.jsxs)("li",{className:f()(In===parseInt(He)&&"is-active"),"data-id":In,"data-category":wn,onMouseEnter:this.toggleHover,onClick:this.toSearchPage,children:[(0,i.jsx)(Al.A,{name:"link_icon",className:"link-icon"}),(0,i.jsx)("span",{children:An})]},"cat-link-"+An)})]})]})]}),Lt&&(0,i.jsxs)("div",{className:f()("hc-search",It&&"show-category"),children:[!tt&&(0,i.jsx)("div",{className:"search-match-container",ref:this.setSearchRef,children:Ye?(0,i.jsxs)("div",{className:"loading-result",children:[" ",(0,i.jsx)("p",{children:"\u641C\u7D22\u4E2D..."})," "]}):_o?(0,i.jsx)(i.Fragment,{children:we.map(yn=>(0,i.jsxs)("div",{className:"search-match-box",children:[(0,i.jsx)("p",{className:"list-title",children:Td[yn[0]]}),(0,i.jsx)("ul",{className:"result-list",children:yn[1].map(An=>{let{id:In,category:wn,title:_n,root_category:Jn}=An,rs=new RegExp(Fe,"g"),as='<span class="result-divider">/</span>';In=In.split("-")[1],wn=wn.replace(rs,"<strong>"+Fe+"</strong>");let mi=_n.replace(rs,"<strong>"+Fe+"</strong>"),ha=wn+as+mi;return(0,i.jsx)("li",{"data-id":In,"data-title":_n,"data-category":Jn,className:f()("result-li",In===He&&"selected"),onClick:this.toSearchPage,onMouseEnter:this.toggleHover,dangerouslySetInnerHTML:{__html:ha}},"match-list-"+In)})})]},yn[0]))}):(0,i.jsxs)("div",{className:"no-matched-result",children:[(0,i.jsxs)("p",{children:["\u62B1\u6B49 \u6CA1\u627E\u5230\u201C",(0,i.jsx)("strong",{children:Fe}),"\u201D\u76F8\u5173\u5185\u5BB9"]}),(0,i.jsx)(I0.A,{children:"\u5728\u7EBF\u5BA2\u670D"})]})}),(0,i.jsx)(fd,{children:(0,i.jsx)("div",{className:f()("md-preview",!tt&&"disable-events"),dangerouslySetInnerHTML:{__html:co}})}),tt&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"category-list-bg-mask"}),(0,i.jsxs)("div",{className:"category-list",children:[(0,i.jsxs)("div",{className:"category-title",children:[(0,i.jsx)("span",{children:"\u6587\u7AE0\u76EE\u5F55"}),(0,i.jsx)(Al.A,{name:"category_close",onClick:this.showCategoryCatalogAction})]}),(0,i.jsx)("aside",{className:"category-catalog",children:Ae.sort((yn,An)=>yn.categoryOrder-An.categoryOrder).map(yn=>{let{name:An,catalogs:In}=yn;return(0,i.jsxs)("div",{className:"article-catalog-box",children:[An&&(0,i.jsx)("p",{className:"meaningless-title",children:An}),(0,i.jsx)("ul",{className:"article-title-list",children:In.map(wn=>{let{title:_n,id:Jn}=wn;return(0,i.jsx)("li",{"data-id":Jn,className:f()(Number(He)===Jn&&"active-title"),onClick:this.selectCatalog,children:(0,i.jsx)("span",{children:_n})},"article-link-"+Jn)})})]},An)})})]})]})]}),(0,i.jsx)("div",{className:"bottom-description",children:(0,i.jsxs)("div",{className:"desc-cont",children:[(0,i.jsx)("div",{className:"desc-part",children:Lt&&tt?(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"to-hc-page",onClick:this.handleToHCPage,children:[(0,i.jsx)(Al.A,{className:"svg-open-hc-page margin-r-4",name:"open_hc_page"}),(0,i.jsx)("span",{children:"\u53BB\u5E2E\u52A9\u4E2D\u5FC3web\u67E5\u770B\u6559\u7A0B"})]})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(Al.A,{className:"svg-triangle margin-r-4",name:"common_triangle_down"}),(0,i.jsx)(Al.A,{className:"svg-triangle svg-rotate margin-r-8",name:"common_triangle_down"}),(0,i.jsx)("span",{children:"\u9009\u62E9\u5217\u8868"})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)(Al.A,{className:"margin-r-6",name:"common_enter"}),(0,i.jsx)("span",{children:"\u8FDB\u5165\u6587\u6863\u8BE6\u60C5\u9875"})]})]})}),!Nt&&(0,i.jsxs)("div",{className:"desc-part",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{className:"margin-r-8",children:"/"}),(0,i.jsx)("span",{children:"\u8F93\u5165\u641C\u7D22\u5173\u952E\u8BCD"})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{className:"margin-r-6",children:"esc"}),(0,i.jsx)("span",{children:"\u5173\u95ED"})]})]})]})}),Lt&&tt&&(0,i.jsx)(Y0.A,{className:"none-active-style",placement:"right",value:P,min:375,max:800,onChange:this.handleWidthChange}),(0,i.jsx)(ic.A,{target:document,onKeyDown:this.handleKeyDown})]})})}}il(bp,"propTypes",{onClose:ur().func,productName:ur().string,draggableContainer:ur().string,zIndex:ur().number,frontPageId:ur().string}),il(bp,"defaultProps",{productName:"a1_proto_tool"});var X0=e(82152);const Kp=(0,u.Ay)(Vn.H).withConfig({displayName:"styles__StyledRightsAndInterestsModal",componentId:"sc-wnb7dp-0"})(["&.right-and-interests{width:500px;border-radius:10px;box-shadow:0px 9px 28px 0px rgba(0,0,0,0.09),0px 6px 16px 0px rgba(0,0,0,0.02),0px 3px 6px 0px rgba(0,0,0,0.02);.content{padding:0;position:relative;display:flex;flex-direction:column;background-color:#fff;border-radius:10px;p{color:#35445D;}.modal-content{background-color:",";.modal-header{border-bottom:1px solid ",";background-color:",";.caption{color:",";}.btn-close-modal{color:",";&:hover{color:",";}&:active{color:",";}svg path{fill:currentColor;}}}.modal-content{margin:0;padding:20px 20px 12px;color:",";background-color:",";font-weight:400;.desc{color:",";p{color:",";.blue{color:",";}}}table{background:none;th,td{color:",";}thead{background-color:",";th{border:1px solid ",";}}tbody{background-color:",";tr{th,td{border:1px solid ",";}}}}.more{color:",";&:hover{color:",";}}}.modal-footer{background:",";.buttons .button-root{"," &[class*='type-linear']{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 ",";}}}}}}}"],t=>t.theme.color_bg_white,t=>t.theme.color_bg_border_02,t=>t.theme.color_bg_white,t=>t.theme.color_text_L1,t=>t.theme.color_text_L2,t=>t.theme.color_text_L1,t=>t.theme.color_text_L1,t=>t.theme.color_text_L1,t=>t.theme.color_bg_white,t=>t.theme.color_text_L1,t=>t.theme.color_text_L1,t=>t.theme.color_text_link_normal,t=>t.theme.color_text_L1,t=>t.theme.color_bg_select02,t=>t.theme.color_bg_select02,t=>t.theme.color_bg_select03,t=>t.theme.color_bg_select02,t=>t.theme.color_text_link_normal,t=>t.theme.color_text_link_hover,t=>t.theme.color_bg_white,X0.in,t=>t.theme.color_text_L1,t=>t.theme.color_bg_white,t=>t.theme.color_bg_border_02,t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_bg_border_02,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_bg_border_02,t=>t.theme.color_text_disabled01,t=>t.theme.color_bg_white,t=>t.theme.color_bg_border_02),Gp=(0,u.DU)(["#IBOT_MODAL_ROOT{.new-model-portal{.workspace-modal{width:500px !important;}}}"]);var Jd=e(23492),c0=e(63785),Ks=e(17645),Hl=e(46795),fr=e(39870);const fc=t=>{let{isOrgLimit:n,orgParams:s={},isAvailable:c=!0,projectType:d="proto"}=t;const{currentUser:w,currentOrg:P,orgs:F}=s,[X,ee]=(0,r.useState)(F||[]),[pe,ye]=(0,r.useState)(!1);(0,r.useEffect)(()=>{if(!c)return;const we=async()=>{const{orgs:Fe}=await(0,Hl.DE)("/api/dashboard/v4/orgs/list");Fe.length>0&&ee([...Fe])};n?(!F||F.length===0)&&we():(async()=>{const{enable:Fe}=await(0,Hl.DE)(d==="bomx"?"/api/dsh2/web_v1/users/bx_check_enable_trial":"/api/dashboard/v4/users/check_enable_trial");ye(Fe)})()},[c,n,F,d]);const Ae=(0,r.useMemo)(()=>!c||!n?!1:(0,fr.xs)(w,P,X||[]),[c,n,w,P,X]);return{isSoloCanSwitchTrial:pe,isOrgCanSwitchTrial:Ae}},Ec=t=>{let{isMockitt:n,coupons:s,isAvailable:c=!0}=t;const[d,w]=(0,r.useState)(s||[]);(0,r.useEffect)(()=>{if(!c)return;async function X(){const ee=await(0,Hl.DE)("/api/payment/v4/coupon/coupons");ee&&w([...ee])}(!s||s.length===0)&&X()},[s,c]);const[P,F]=(0,r.useMemo)(()=>{if(!c||n)return[!1,!1];const X=d.every(pe=>pe.tid!==1028),ee=d.every(pe=>pe.tid!==844);return[X,ee]},[d,c,n]);return{isSoloCanGetCoupon:P,isOrgCanGetCoupon:F}};var _i=e(83650),yc=e(15336),T0=e(15388),Qc=e(93839);const Yp=t=>{let{className:n,children:s,disabled:c,onClick:d}=t;return _jsx(Button2311,{type:"primary",size:"medium",className:n,disabled:c,onClick:d,children:s})},Sr=t=>{let{className:n,children:s,disabled:c,onClick:d}=t;return _jsx(Button2311,{type:"secondary",size:"medium",className:n,disabled:c,onClick:d,children:s})},Kh=t=>{let{className:n,children:s,disabled:c,onClick:d}=t;return _jsx(Button2311,{type:"link",className:cx(n,"link-gray"),disabled:c,onClick:d,children:s})},Gh=t=>{let{className:n,children:s,disabled:c,onClick:d}=t;return _jsx(Button2311,{type:"link",className:n,disabled:c,onClick:d,children:s})},Ih=t=>{let{className:n,children:s,disabled:c,onClick:d}=t;return _jsx(Button2311,{type:"danger",size:"medium",className:n,disabled:c,onClick:d,children:s})},Mh=t=>{let{className:n,children:s,disabled:c,onClick:d}=t;return _jsx(Button2311,{corner:"round",size:"medium",className:n,disabled:c,onClick:d,children:s})},Jc=t=>{let{className:n,children:s,icon:c,disabled:d,onClick:w}=t;return _jsx(IconButton,{type:"primary",size:"large",className:n,icon:c,disabled:d,onClick:w,children:s})},Cp=t=>{let{icon:n,disabled:s,onClick:c}=t;return _jsx(IconButton,{icon:n,disabled:s,onClick:c})},Th=t=>{let{className:n,children:s,disabled:c,onClick:d}=t;return(0,i.jsx)(Qc.A,{type:"primary",className:n,disabled:c,onClick:d,children:s})},E0=t=>{let{className:n,children:s,disabled:c,onClick:d}=t;return(0,i.jsx)(Qc.A,{type:"linear",className:n,disabled:c,onClick:d,children:s})};var Pc=e(23485),ac=e(73542);const k0=160,Mr=u.Ay.div.withConfig({displayName:"styles__StyledLimitationNotice",componentId:"sc-a2bxl3-0"})(["position:relative;display:flex;flex-direction:column;width:500px;background-color:#fff;border-radius:10px;.modal-header{display:flex;align-items:center;justify-content:space-between;height:60px;padding:0 20px;border-bottom:1px solid ",";.caption{overflow:hidden;color:",";font-size:16px;font-weight:500;white-space:nowrap;text-overflow:ellipsis;}.btn-close-modal{z-index:5;position:absolute;top:15px;right:15px;display:flex;justify-content:center;align-items:center;.svg-icon{width:24px;height:24px;path{fill:",";}&:hover{path{fill:",";}}}}}.modal-content{margin:20px 20px 12px;display:flex;flex-direction:column;row-gap:12px;.desc{font-size:14px;font-weight:500;color:",";line-height:22px;p{margin:0;.blue{color:",";font-weight:500;}.strong{font-weight:600;}}}table{border-collapse:separate;border-spacing:0;background:",";border-radius:8px;width:460px;table-layout:fixed;th,td{text-align:center;height:42px;font-size:14px;font-weight:500;color:",';&:not(:last-child){border-right:none;}}th[scope="row"]{text-align:start;padding-left:12px;width:','px;}th[scope="col"]{&:first-child{text-align:start;padding-left:14px;width:',"px;}.version-name-icon{margin-right:4px;color:transparent;}}thead{background-color:",";th{border:1px solid ",";height:40px;&:first-child{border-radius:8px 0 0 0;}&:last-child{border-radius:0 8px 0 0;}}}tbody{tr{&:first-child{th,td{border-top:none;border-bottom:none;font-weight:600;}}&:last-child{th,td{border-top:none;}th{border-radius:0 0 0 8px;}td:last-child{border-radius:0 0 8px 0;}}&:not(:first-child):not(:last-child):not(:nth-last-child(2)){th,td{border-bottom:none;}}th,td{border:1px solid ",";}th{display:flex;align-items:center;.Tooltip.axhubTips{margin-left:2px;height:16px;.axhubInfo{width:16px;height:16px;cursor:pointer;}}}}}}.more{color:",";font-size:14px;font-weight:500;line-height:20px;width:fit-content;cursor:pointer;&:hover{color:",";}&:active{color:","}}}.modal-footer{.buttons{display:flex;column-gap:14px;justify-content:flex-end;padding:0 20px 20px;}}"],ac.q.color_split_line,ac.q.color_text_L1,ac.q.color_text_L2,ac.q.color_text_L1,ac.q.color_text_L1,ac.q.color_text_blue,ac.q.color_bg_card,ac.q.color_text_L1,k0+2,k0,ac.q.color_bg_menu_hover,ac.q.color_bg_menu_drag_border,ac.q.color_bg_menu_drag_border,ac.q.color_text_blue,ac.q.color_text_blue_active,ac.q.color_text_blue_hover),wp=(0,u.DU)(["#IBOT_TOOLTIP_ROOT{.infoTipsClassName{.content{padding:12px 16px;max-width:188px;transform:translateX(50px) !important;}}}"]),_0=(0,i.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:"16px",height:"16px"},children:[(0,i.jsx)("path",{d:"M3.19132 3.80868L6.22177 0.778232C6.49705 0.502955 6.63468 0.365317 6.79387 0.314972C6.92802 0.272548 7.07198 0.272548 7.20613 0.314972C7.36532 0.365317 7.50295 0.502955 7.77823 0.778232L10.8087 3.80868L10.8087 3.80869C11.4043 4.4043 11.7021 4.7021 11.7192 4.9583C11.7334 5.17098 11.6476 5.37812 11.4872 5.51845C11.2939 5.6875 10.8728 5.6875 10.0305 5.6875H9.77728C9.63216 5.6875 9.5596 5.6875 9.50421 5.71362C9.45585 5.73642 9.41886 5.76902 9.39015 5.81413C9.35727 5.86579 9.34765 5.94165 9.32841 6.09337V6.09337C8.93947 9.16077 6.91765 11.3169 4.97034 12.6314L4.97032 12.6314C4.25719 13.1128 3.90062 13.3535 3.78852 13.3309C3.68639 13.3104 3.62311 13.2566 3.58646 13.1591C3.54623 13.052 3.7572 12.5952 4.17916 11.6814C5.08077 9.72881 4.98729 7.41793 4.70539 6.02176C4.68226 5.9072 4.6707 5.84993 4.63709 5.8026C4.60965 5.76397 4.56854 5.73033 4.52524 5.71108C4.4722 5.6875 4.41029 5.6875 4.28648 5.6875H3.96955C3.12723 5.6875 2.70607 5.6875 2.51279 5.51845C2.35235 5.37812 2.26655 5.17098 2.28077 4.9583C2.2979 4.7021 2.59571 4.40429 3.19132 3.80868Z",fill:"url(#paint0_linear_13247_2666)"}),(0,i.jsx)("defs",{children:(0,i.jsxs)("linearGradient",{id:"paint0_linear_13247_2666",x1:"3.38068",y1:"17.5",x2:"-2.03107",y2:"4.89471",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"white",stopOpacity:"0.34"}),(0,i.jsx)("stop",{offset:"0.0001",stopColor:"white",stopOpacity:"0.34"}),(0,i.jsx)("stop",{offset:"1",stopColor:"white"})]})})]}),Ud=t=>{const{canClose:n=!0,locale:s,limitDesc:c,planList:d,interestList:w,showOrgTrialBtn:P,showSoloTrialBtn:F,showHandoverBtn:X,showManageShareBtn:ee,showConfirmBtn:pe,showUpgradeV8Btn:ye,isCanGetCoupon:Ae,showPreviewBtn:we,showHandoverByDemotionBtn:_e,isHideMore:Fe=!1,actions:{onOrgSwitchToTrial:Ye,onSoloSwitchToTrial:He,onManageShare:tt,onConfirm:It,onUpgrade:Nt,onMore:Lt,onClose:Xt,renderUpgradeV8Btn:_o,onRemoveMember:co,renderPreviewBtn:yn}}=t,An=()=>n&&Xt();return(0,i.jsxs)(Mr,{children:[(0,i.jsxs)("header",{className:"modal-header",children:[(0,i.jsx)("h3",{className:"caption",children:Ks.T.LimitationNotice.limit_upgrade_to_unlock[s]}),n&&(0,i.jsx)("button",{className:"btn-close-modal",onClick:An,children:(0,i.jsx)(Al.A,{name:"limitation_close"})})]}),(0,i.jsxs)("div",{className:"modal-content",children:[(0,i.jsx)("div",{className:"desc",children:c&&c.length>0&&c.map((In,wn)=>(0,i.jsx)("p",{children:In.map((_n,Jn)=>typeof _n=="string"?_n:_n&&_n.className&&(0,i.jsx)("span",{className:_n.className,children:_n.text},Jn))},wn))}),d&&w&&(0,i.jsxs)("table",{children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{scope:"col",children:Ks.T.LimitationNotice.enjoy_interest[s]}),d.map((In,wn)=>{let{plan:_n,planI18nObj:Jn,planIcon:rs}=In;return(0,i.jsxs)("th",{scope:"col",children:[rs&&(0,i.jsx)(Al.A,{noSvgIconClassName:!0,name:rs,className:"version-name-icon"}),Jn[s]]},wn)})]})}),(0,i.jsx)("tbody",{children:w.map((In,wn)=>{let{type:_n,typeI18nObj:Jn,values:rs}=In;return(0,i.jsxs)("tr",{children:[(0,i.jsxs)("th",{scope:"row",children:[Jn[s],_n===_i.fA.ProjectsCount&&(0,i.jsx)(Pc.A,{content:Ks.T.LimitationNotice.limit_axhub_tooltips[s],position:"top",tipClassName:"infoTipsClassName",className:"axhubTips",children:(0,i.jsx)(Al.A,{name:"general/common/info",className:"axhubInfo"})})]}),rs.map((as,mi)=>(0,i.jsx)("td",{children:typeof as=="object"?as[s]:as},mi))]},wn)})})]}),!Fe&&(0,i.jsx)("a",{className:"more",onClick:Lt,children:Ks.T.LimitationNotice.know_more_interest[s]+" >"})]}),(0,i.jsx)("div",{className:"modal-footer",children:(0,i.jsxs)("div",{className:"buttons",children:[yn&&yn(!!we),_o&&_o(!!ye),P&&(0,i.jsx)(E0,{onClick:(0,fr.nF)(Ye,5e3),children:Ks.T.LimitationNotice.trial_7_days[s]}),F&&(0,i.jsx)(E0,{onClick:(0,fr.nF)(He,5e3),children:Ks.T.LimitationNotice.trial_2_days[s]}),X&&(0,i.jsx)(E0,{onClick:co,children:Ks.T.LimitationNotice.keep_removing[s]}),_e&&(0,i.jsx)(E0,{onClick:co,children:Ks.T.LimitationNotice.keep_demoting[s]}),ee&&(0,i.jsx)(E0,{onClick:tt,children:Ks.T.LimitationNotice.limit_manage_sharing[s]}),pe?(0,i.jsx)(Th,{onClick:It,children:Ks.T.LimitationNotice.limit_i_got_it[s]}):(0,i.jsx)(T0.A,{type:"primary",icon:_0,onClick:Nt,children:Ae?Ks.T.LimitationNotice.get_coupon_and_upgrade[s]:Ks.T.LimitationNotice.payment_upgrade[s]})]})}),(0,i.jsx)(wp,{})]})},El=t=>{const{limitType:n,selectedOrg:s,upgradeOrg:c,limitDesc:d,isSoloCanGetCoupon:w,isOrgCanGetCoupon:P,isMockitt:F,currentPlan:X,planName:ee,planType:pe,isOrgLimit:ye,onRemoveMember:Ae,actions:we,getlimitReason:_e,actions:{onOrgSwitchToTrial:Fe,onSoloSwitchToTrial:Ye,onManageShare:He,onConfirm:tt,onUpgrade:It,onLimitNewTrack:Nt,onMoreTrack:Lt}}=t,Xt=_i.fu[n],[_o,co]=(0,_i.tt)({limitType:n,currentPlan:X,firstInterestType:Xt,upgradeOrg:c,isMockitt:F}),yn=(0,r.useMemo)(()=>({limitReason:_e(ye),currentPlanProduct:ee,currentPlanCategory:ye?"org":"solo",currentType:pe,currentEditMember:ye?s==null?void 0:s.total_seats:0,currentViewMember:ye?s==null?void 0:s.total_viewer_seats:0}),[_e,ee,ye,pe,s]);(0,r.useEffect)(()=>{Nt(yn)},[yn,Nt]);const An=()=>{const rs=ye||c,as=F?"/pricing.html":"/brand/pricing";return rs?as:as+"?tab=personal"},In=()=>{const rs=An();(0,yc.JW)(rs),Lt(yn)},wn=()=>{It({isSoloCanGetCoupon:w,isOrgCanGetCoupon:P,limitTrackParams:yn,upgradeOrg:c,isOrgLimit:ye})},_n=rs=>()=>rs&&rs(yn),Jn={...we,onConfirm:_n(tt),onOrgSwitchToTrial:_n(Fe),onSoloSwitchToTrial:_n(Ye),onManageShare:_n(He),onRemoveMember:_n(Ae),onUpgrade:wn,onMore:In};return(0,i.jsx)(Ud,{...t,planList:_o,interestList:co,isCanGetCoupon:!!(w||P),limitDesc:d,actions:Jn})};var Vc=e(33348);const Q0=t=>{const{from:n,locale:s,isMockitt:c,currentUser:d,currentOrg:w,selectedOrg:P,couponList:F,orgList:X}=t,ee=!!(w&&w.cid&&w.otype!=="personal"),{isSoloCanSwitchTrial:pe,isOrgCanSwitchTrial:ye}=fc({isOrgLimit:ee,orgParams:{currentUser:d,currentOrg:P,orgs:X}}),{currentPlan:Ae,planName:we,planType:_e,isSoloFull:Fe,isOrgFull:Ye,realPlanName:He}=(0,fr.T2)(ee,s,P,d),{isOrgCanGetCoupon:tt,isSoloCanGetCoupon:It}=Ec({isMockitt:c,coupons:F}),{upgradeOrg:Nt,isSoloCanGetCoupon:Lt,isOrgCanGetCoupon:Xt,isSoloPaid:_o}=(0,r.useMemo)(()=>{if(ee)return{currentPlan:Ae,planName:we,planType:_e,isOrgFull:Ye,isSoloCanGetCoupon:!1,isOrgCanGetCoupon:It,realPlanName:He};{const In=Ae!==Vc.L1.Free,wn=tt&&!Fe,_n=It&&Fe,Jn=Ae!==Vc.L1.Free;return{currentPlan:Ae,planName:we,planType:_e,upgradeOrg:In,isSoloCanGetCoupon:wn,isOrgCanGetCoupon:_n,realPlanName:He,isSoloPaid:Jn}}},[Ae,It,tt,ee,Ye,Fe,we,_e,He]),{maxSharingCount:co}=(0,fr.xR)(n,d,ee&&P),yn=_o?Ks.T.LimitationNotice.limit_proto_share_solo_max_num_desc[s]:Ks.T.LimitationNotice.limit_proto_share_max_num_desc[s],An=[[Ks.T.LimitationNotice.limit_current_is[s],{className:"blue",text:He}],...Ye?[[{className:"strong",text:(0,_i.XD)({planName:He,maxSharingCount:co,locale:s,isMockitt:c})},...(0,_i.l)(c)],(0,_i.ix)(c)]:[[{className:"strong",text:Ks.T.LimitationNotice.limit_proto_share_max_num[s].replace(/{userOrOrgPlayName}/g,we).replace(/{maxSharingCount}/g,co)},yn]]];return(0,i.jsx)(El,{limitDesc:An,currentPlan:Ae,planName:we,planType:_e,isOrgLimit:ee,showConfirmBtn:Ye,upgradeOrg:Nt,showManageShareBtn:!0,showSoloTrialBtn:pe,showOrgTrialBtn:ye,isSoloCanGetCoupon:Lt,isOrgCanGetCoupon:Xt,...t})},xc=t=>{const{locale:n,isMockitt:s,currentUser:c,currentOrg:d,selectedOrg:w,orgList:P,couponList:F,actions:X}=t,{onVipLimitTrack:ee}=X,pe=!!(d&&d.cid&&d.otype!=="personal"),{isSoloCanSwitchTrial:ye,isOrgCanSwitchTrial:Ae}=fc({isOrgLimit:pe,orgParams:{currentUser:c,currentOrg:w,orgs:P}}),{isOrgCanGetCoupon:we,isSoloCanGetCoupon:_e}=Ec({isMockitt:s,coupons:F}),{currentPlan:Fe,planType:Ye,planName:He,realPlanName:tt}=(0,fr.T2)(pe,n,w,c),It=[[Ks.T.LimitationNotice.limit_current_is[n],{className:"blue",text:tt}],[{className:"strong",text:Ks.T.LimitationNotice.limit_version_material_for_vip_tips_1[n]},Ks.T.LimitationNotice.limit_version_material_for_vip_tips_2[n].replace("{trialDay}",String(pe?7:2))]];return(0,r.useEffect)(()=>{ee&&ee(pe)},[]),(0,i.jsx)(El,{limitDesc:It,currentPlan:Fe,planName:He,planType:Ye,isOrgLimit:pe,showSoloTrialBtn:!s&&ye,showOrgTrialBtn:Ae,isSoloCanGetCoupon:_e,isOrgCanGetCoupon:we,...t})},Sp=t=>{const{from:n,locale:s,isMockitt:c,currentUser:d,selectedOrg:w,orgList:P,couponList:F}=t,{isOrgCanSwitchTrial:X}=fc({isOrgLimit:!0,orgParams:{currentUser:d,currentOrg:w,orgs:P}}),{isOrgCanGetCoupon:ee}=Ec({isMockitt:c,coupons:F}),{orgPlan:pe,orgPlanType:ye,orgPlanName:Ae,planName:we}=(0,fr.wJ)(s,w),{maxSpaceCount:_e}=(0,fr.xR)(n,d,w),Fe=[[Ks.T.LimitationNotice.limit_current_is[s],{className:"blue",text:we}],[{className:"strong",text:Ks.T.LimitationNotice.limit_version_space_number_tips_1[s].replace("{orgPlanName}",we).replace("{maxLimitCount}",_e)},Ks.T.LimitationNotice.limit_version_space_number_tips_2[s].replace("{maxLimitCount}",_e)]];return(0,i.jsx)(El,{limitDesc:Fe,currentPlan:pe,planName:Ae,planType:ye,isOrgLimit:!0,showOrgTrialBtn:X,isOrgCanGetCoupon:ee,...t})},xd=t=>{const{from:n,locale:s,isMockitt:c,currentUser:d,selectedOrg:w,orgList:P,couponList:F}=t,{isOrgCanSwitchTrial:X}=fc({isOrgLimit:!0,orgParams:{currentUser:d,currentOrg:w,orgs:P}}),{isOrgCanGetCoupon:ee}=Ec({isMockitt:c,coupons:F}),{orgPlan:pe,orgPlanType:ye,orgPlanName:Ae,planName:we}=(0,fr.wJ)(s,w),{maxProjectTemplateCount:_e}=(0,fr.xR)(n,d,w),Fe=[[Ks.T.LimitationNotice.limit_current_is[s],{className:"blue",text:we}],[{className:"strong",text:Ks.T.LimitationNotice.limit_version_template_number_tips_1[s].replace("{orgPlanName}",we).replace("{maxLimitCount}",_e)},Ks.T.LimitationNotice.limit_version_template_number_tips_2[s]]];return(0,i.jsx)(El,{limitDesc:Fe,currentPlan:pe,planName:Ae,planType:ye,isOrgLimit:!0,showOrgTrialBtn:X,isOrgCanGetCoupon:ee,...t})},J0=t=>{const{from:n,locale:s,isMockitt:c,currentUser:d,selectedOrg:w,orgList:P,couponList:F}=t,{isOrgCanSwitchTrial:X}=fc({isOrgLimit:!0,orgParams:{currentUser:d,currentOrg:w,orgs:P}}),{isOrgCanGetCoupon:ee}=Ec({isMockitt:c,coupons:F}),{orgPlan:pe,orgPlanType:ye,orgPlanName:Ae,isOrgFull:we,planName:_e}=(0,fr.tv)(s,w),{maxProjectVersionCount:Fe}=(0,fr.xR)(n,d,w),Ye=[[Ks.T.LimitationNotice.limit_current_is[s],{className:"blue",text:_e}],...we?[[{className:"strong",text:(0,_i.o1)({planName:_e,maxProjectVersionCount:Fe,locale:s,isMockitt:c})},...(0,_i.l)(c)],(0,_i.ix)(c)]:[[{className:"strong",text:Ks.T.LimitationNotice.limit_proto_version_max_number[s].replace(/{planName}/,_e).replace(/{maxProjectVersionCount}/,Fe)},Ks.T.LimitationNotice.limit_proto_version_max_number_desc[s]]]];return(0,i.jsx)(El,{limitDesc:Ye,currentPlan:pe,planName:Ae,planType:ye,isOrgLimit:!0,showConfirmBtn:we,showOrgTrialBtn:X,isOrgCanGetCoupon:ee,...t})},P0=t=>{const{locale:n,isMockitt:s,selectedMember:c,currentUser:d,selectedOrg:w,couponList:P,actions:{onRemoveMember:F},limitType:X}=t,{user_id:ee,orgPermission:{user_id:pe,unsign_remark:ye}}=c,Ae=!pe&&ye,we=pe||ee,_e=X===_i.hC.ProjectHandoverNoPermission?"removal":"demotion",[Fe,Ye]=(0,r.useState)(!Ae),[He,tt]=(0,r.useState)([]),{isOrgCanGetCoupon:It}=Ec({isMockitt:s,coupons:P||[]}),{cid:Nt,permissions:Lt}=w,{orgPlan:Xt,orgPlanType:_o,orgPlanName:co,planName:yn}=(0,fr.tv)(n,w),An=[[Ks.T.LimitationNotice.limit_current_is[n],{className:"blue",text:yn}],[{className:"strong",text:Ks.T.LimitationNotice.limit_version_handover_tips_1[n].replace("{orgPlanName}",yn)},Ks.T.LimitationNotice.limit_version_handover_tips_2[n].replace("{action}",Ks.T.LimitationNotice.limit_handover_by[_e][n])]],In=(0,r.useMemo)(()=>{var Jn;return Lt==null||(Jn=Lt.find(rs=>rs.role==="org_owner"))==null?void 0:Jn.user_id},[Lt]),wn=(0,r.useMemo)(()=>He.map(Jn=>{const{cid:rs}=Jn||{},as=(0,fr.Ok)(Jn,we,In);return{cid:rs,role:as,target_user_id:In}}),[we,In,He]);(0,r.useEffect)(()=>{async function Jn(){try{if(!we)return;const{spaces:rs}=await(0,fr.ys)(we,Nt);let as=[];rs&&rs.length>0&&(as=rs.filter(mi=>mi.permissions.find(ha=>ha.user_id===we))),as.length>0&&tt(as),Ye(!1)}catch(rs){console.log(rs.message)}}!Ae&&Jn()},[]);const _n=async Jn=>{Fe&&!Ae||F&&F({submitHandoverList:wn,trackParams:Jn,onLoading:Ye})};return(0,i.jsx)(El,{limitDesc:An,currentPlan:Xt,planName:co,planType:_o,isOrgLimit:!0,isOrgCanGetCoupon:It,showHandoverBtn:_e==="removal",showHandoverByDemotionBtn:_e==="demotion",onRemoveMember:_n,...t})},cd=t=>{const{from:n,locale:s,isMockitt:c,currentUser:d,selectedOrg:w,orgList:P,couponList:F}=t,{isOrgCanSwitchTrial:X}=fc({isOrgLimit:!0,orgParams:{currentUser:d,currentOrg:w,orgs:P}}),{isOrgCanGetCoupon:ee}=Ec({isMockitt:c,coupons:F}),{orgPlan:pe,orgPlanType:ye,orgPlanName:Ae,isOrgFull:we,planName:_e}=(0,fr.tv)(s,w),{maxPicBytes:Fe}=(0,fr.xR)(n,d,w),Ye=[[Ks.T.LimitationNotice.limit_current_is[s],{className:"blue",text:_e}],[{className:"strong",text:Ks.T.LimitationNotice.limit_proto_image_max_size[s].replace(/{planName}/g,_e).replace(/{maxPicBytes}/g,String(Fe/1024/1024))},Ks.T.LimitationNotice.limit_proto_image_max_size_desc[s]]];return(0,i.jsx)(El,{limitDesc:Ye,currentPlan:pe,planName:Ae,planType:ye,isOrgLimit:!0,showConfirmBtn:we,showOrgTrialBtn:X,isOrgCanGetCoupon:ee,...t})};var rc=e(22046);const N0=t=>{let{locale:n,currentUser:s}=t;const{isSoloCanSwitchTrial:c}=fc({isOrgLimit:!1,projectType:""}),{userPlan:d,userPlanType:w,userPlanName:P}=(0,fr._y)(n,s),F=(0,fr.rD)(d,n),X=rc.t.InitialUser(s);return{isSoloCanSwitchTrial:c,pplSdk:X,userPlan:d,userPlanType:w,userPlanName:P,planName:F}},Ap=t=>{const{from:n,locale:s,currentUser:c}=t,{isSoloCanSwitchTrial:d,userPlan:w,userPlanType:P,userPlanName:F,planName:X}=N0({locale:s,currentUser:c}),{maxPicBytes:ee}=(0,fr.xR)(n,c,void 0),pe=[[Ks.T.LimitationNotice.limit_current_is[s],{className:"blue",text:X}],[{className:"strong",text:Ks.T.LimitationNotice.limit_proto_image_max_size[s].replace(/{planName}/g,X).replace(/{maxPicBytes}/g,String(ee/1024/1024))},Ks.T.LimitationNotice.limit_proto_image_max_size_desc[s]]];return(0,i.jsx)(El,{limitDesc:pe,currentPlan:w,planName:F,planType:P,isOrgLimit:!1,showSoloTrialBtn:d,upgradeOrg:w!==Vc.L1.Free,...t})};var bl=e(57321);const d0=t=>{const{from:n,locale:s,isMockitt:c,currentUser:d,selectedOrg:w,couponList:P,orgList:F,widgetCreateLimit:X,isCurrentProject:ee,isProto2:pe}=t,{isOrgCanSwitchTrial:ye}=fc({isOrgLimit:!0,orgParams:{currentUser:d,currentOrg:w,orgs:F}}),{isOrgCanGetCoupon:Ae}=Ec({isMockitt:c,coupons:P}),{orgPlan:we,orgPlanName:_e,orgPlanType:Fe,isOrgFull:Ye,planName:He}=(0,fr.tv)(s,w),{maxV7ScreenCount:tt,maxV8ScreenCount:It,maxWidgetCount:Nt}=(0,fr.xR)(n,d,w),Lt=pe?It:tt,Xt=pe?Ks.T.LimitationNotice.limit_pages[s]:Ks.T.LimitationNotice.limit_canvas_v7[s],_o=Nt!==bl.Ne?(""+Ks.T.LimitationNotice.limit_workspace_screen_canvas_widget_max_num[s].replace(/{planName}/g,He).replace(/{screensLimit}/g,Lt).replace(/{maxWidgetCount}/g,Nt)+Ks.T.LimitationNotice.limit_workspace_screen_canvas_max_num_tips_4_1[s]).replace(/{pageName}/g,Xt):Ks.T.LimitationNotice.limit_workspace_screen_canvas_max_num[s].replace(/{planName}/g,He).replace(/{screensLimit}/g,Lt).replace(/{pageName}/g,Xt),co=X?[[ee?Ks.T.LimitationNotice.limit_current_is[s]:Ks.T.LimitationNotice.limit_target_space_is[s],{className:"blue",text:He}],[{className:"strong",text:_o}]]:[[ee?Ks.T.LimitationNotice.limit_current_is[s]:Ks.T.LimitationNotice.limit_target_space_is[s],{className:"blue",text:He}],Ye?[{className:"strong",text:Ks.T.LimitationNotice.limit_workspace_screen_canvas_max_num[s].replace(/{planName}/g,He).replace(/{screensLimit}/g,Lt).replace(/{pageName}/g,Xt)},Ks.T.LimitationNotice.limit_workspace_screen_canvas_max_num_tips[s],{className:"blue",text:Ks.T.LimitationNotice.limit_workspace_screen_canvas_max_num_tips_2[s]},Ks.T.LimitationNotice.limit_workspace_screen_canvas_max_num_tips_3[s]]:[{className:"strong",text:_o}]];return(0,i.jsx)(El,{limitDesc:co,currentPlan:we,planName:_e,planType:Fe,isOrgLimit:!0,showConfirmBtn:Ye,showOrgTrialBtn:ye,showUpgradeV8Btn:Ye,isOrgCanGetCoupon:Ae,...t})},Kl=t=>{const{from:n,locale:s,isMockitt:c,currentUser:d,selectedOrg:w,orgList:P,couponList:F,isCurrentProject:X}=t,{isOrgCanSwitchTrial:ee}=fc({isOrgLimit:!0,orgParams:{currentUser:d,currentOrg:w,orgs:P}}),{isOrgCanGetCoupon:pe}=Ec({isMockitt:c,coupons:F}),{orgPlan:ye,orgPlanType:Ae,orgPlanName:we,planName:_e}=(0,fr.tv)(s,w,d),{maxV8ScreenCount:Fe,maxCanvasCount:Ye,maxWidgetCount:He}=(0,fr.xR)(n,d,w),tt=He!==bl.Ne?Ks.T.LimitationNotice.limit_proto_screen_canvas_widget_max_num[s].replace(/{planName}/,we).replace(/{maxScreenCount}/,Fe).replace(/{maxCanvasCount}/,Ye).replace(/{maxWidgetCount}/,He):Ks.T.LimitationNotice.limit_proto_screen_canvas_max_num[s].replace(/{planName}/,we).replace(/{maxScreenCount}/,Fe).replace(/{maxCanvasCount}/,Ye),It=[[X?Ks.T.LimitationNotice.limit_current_is[s]:Ks.T.LimitationNotice.limit_target_space_is[s],{className:"blue",text:_e}],[{className:"strong",text:""+tt+Ks.T.LimitationNotice.limit_proto_screen_canvas_max_num_tips_1_2[s]}]];return(0,i.jsx)(El,{limitDesc:It,currentPlan:ye,planName:we,planType:Ae,isOrgLimit:!0,showOrgTrialBtn:ee,isOrgCanGetCoupon:pe,...t})},fl=t=>{const{from:n,locale:s,currentUser:c,isCurrentProject:d,isProto2:w}=t,{isSoloCanSwitchTrial:P,userPlan:F,userPlanType:X,userPlanName:ee,planName:pe}=N0({locale:s,currentUser:c}),{maxV7ScreenCount:ye,maxV8ScreenCount:Ae,maxWidgetCount:we}=(0,fr.xR)(n,c,void 0),_e=w?Ae:ye,Fe=w?Ks.T.LimitationNotice.limit_pages[s]:Ks.T.LimitationNotice.limit_canvas_v7[s],Ye=we!==bl.Ne?(""+Ks.T.LimitationNotice.limit_workspace_screen_canvas_widget_max_num[s].replace(/{planName}/g,pe).replace(/{screensLimit}/g,_e).replace(/{maxWidgetCount}/g,we)+Ks.T.LimitationNotice.limit_workspace_screen_canvas_max_num_tips_4_1[s]).replace(/{pageName}/g,Fe):Ks.T.LimitationNotice.limit_workspace_screen_canvas_max_num[s].replace(/{planName}/g,pe).replace(/{screensLimit}/g,_e).replace(/{pageName}/g,Fe),He=[[d?Ks.T.LimitationNotice.limit_current_is[s]:Ks.T.LimitationNotice.limit_target_space_is[s],{className:"blue",text:pe}],[{className:"strong",text:Ye}]];return(0,i.jsx)(El,{limitDesc:He,currentPlan:F,planName:ee,planType:X,isOrgLimit:!1,showSoloTrialBtn:P,...t})},L0=t=>{const{from:n,locale:s,currentUser:c,isCurrentProject:d}=t,{isSoloCanSwitchTrial:w,userPlan:P,userPlanType:F,userPlanName:X,planName:ee}=N0({locale:s,currentUser:c}),{maxV8ScreenCount:pe,maxCanvasCount:ye,maxWidgetCount:Ae}=(0,fr.xR)(n,c,void 0),we=Ae!==bl.Ne?Ks.T.LimitationNotice.limit_proto_screen_canvas_widget_max_num[s].replace(/{planName}/,ee).replace(/{maxScreenCount}/,pe).replace(/{maxCanvasCount}/,ye).replace(/{maxWidgetCount}/,Ae):Ks.T.LimitationNotice.limit_proto_screen_canvas_max_num[s].replace(/{planName}/,ee).replace(/{maxScreenCount}/,pe).replace(/{maxCanvasCount}/,ye),_e=[[d?Ks.T.LimitationNotice.limit_current_is[s]:Ks.T.LimitationNotice.limit_target_space_is[s],{className:"blue",text:ee}],[{className:"strong",text:""+we+Ks.T.LimitationNotice.limit_proto_screen_canvas_max_num_tips_1_2[s]}]];return(0,i.jsx)(El,{limitDesc:_e,currentPlan:P,planName:X,planType:F,isOrgLimit:!1,showSoloTrialBtn:w,...t})},Yh=t=>{const{from:n,locale:s,isMockitt:c,currentUser:d,currentOrg:w,selectedOrg:P,orgList:F,couponList:X}=t,{cid:ee}=P,pe=ee===w.cid,{isOrgCanSwitchTrial:ye}=fc({isOrgLimit:!0,orgParams:{currentUser:d,currentOrg:P,orgs:F}}),{isOrgCanGetCoupon:Ae}=Ec({isMockitt:c,coupons:X}),{orgPlan:we,orgPlanType:_e,orgPlanName:Fe,isOrgFull:Ye,planName:He}=(0,fr.tv)(s,P),{maxProjectCount:tt}=(0,fr.xR)(n,d,P),It=[pe?["\u5F53\u524D\u58A8\u5200\u539F\u578B\u4E3A ",{className:"blue",text:He}]:[Ks.T.LimitationNotice.current_file_located_space[s],{className:"strong",text:P.name},Ks.T.LimitationNotice.which_is[s],{className:"blue",text:He}],[{className:"strong",text:Ks.T.LimitationNotice.limit_version_file_number_tips_1[s].replace("{orgPlanName}",He).replace("{maxLimitCount}",tt)},Ks.T.LimitationNotice.limit_version_file_number_tips_2[s].replace("{maxLimitCount}",tt)]];return(0,i.jsx)(El,{limitDesc:It,currentPlan:we,planName:Fe,planType:_e,isOrgLimit:!0,showConfirmBtn:Ye,showOrgTrialBtn:ye,isOrgCanGetCoupon:Ae,showPreviewBtn:!ye,...t})},D0=t=>{const{from:n,locale:s,isMockitt:c,currentUser:d,currentOrg:w,couponList:P}=t,F=w&&w.cid&&w.otype!=="personal",{isSoloCanGetCoupon:X}=Ec({isMockitt:c,coupons:P}),{isSoloCanSwitchTrial:ee,userPlan:pe,userPlanType:ye,userPlanName:Ae,planName:we}=N0({locale:s,currentUser:d}),{maxProjectCount:_e}=(0,fr.xR)(n,d,void 0),Fe=[F?[Ks.T.LimitationNotice.current_file_located_space[s],{className:"strong",text:Ks.T.LimitationNotice.common_personal_space[s]},Ks.T.LimitationNotice.which_is[s],{className:"blue",text:we}]:["\u5F53\u524D\u58A8\u5200\u539F\u578B\u4E3A ",{className:"blue",text:we}],[{className:"strong",text:Ks.T.LimitationNotice.limit_version_file_number_tips_1[s].replace("{orgPlanName}",we).replace("{maxLimitCount}",_e)},Ks.T.LimitationNotice.limit_version_file_number_tips_2[s].replace("{maxLimitCount}",_e)]];return(0,i.jsx)(El,{limitDesc:Fe,currentPlan:pe,planName:Ae,planType:ye,isOrgLimit:!1,isSoloCanGetCoupon:X,showSoloTrialBtn:ee,showPreviewBtn:!ee,...t})},zd=t=>{const{locale:n,limitType:s,currentUser:c}=t,{userPlan:d,userPlanType:w,userPlanName:P,planName:F}=N0({locale:n,currentUser:c}),X=(0,r.useMemo)(()=>{switch(s){case _i.hC.SoloToOrgMemberFeature:return Ks.T.LimitationNotice.member_manger[n];case _i.hC.SoloToOrgDesignFeature:return Ks.T.LimitationNotice.design_system[n];case _i.hC.SoloToOrgVersionFeature:return Ks.T.LimitationNotice.version_history[n]}},[s,n]),ee=[[Ks.T.LimitationNotice.limit_current_is[n],{className:"blue",text:F}],[{className:"strong",text:Ks.T.LimitationNotice.limit_version_solo_to_org_tips_1[n].replace("{featureName}",X)},Ks.T.LimitationNotice.limit_versions_history_tips_2[n]]];return(0,i.jsx)(El,{limitDesc:ee,currentPlan:d,planName:P,planType:w,isOrgLimit:!1,upgradeOrg:!0,...t})},jl=t=>{const{from:n,locale:s,currentOrg:c,currentUser:d}=t,{maxPageCount:w}=(0,fr.xR)(n,d,c),P=!!(c&&c.cid&&c.otype!=="personal"),{currentPlan:F,planName:X,planType:ee,realPlanName:pe}=(0,fr.T2)(P,s,c,d),ye=[[Ks.T.LimitationNotice.limit_current_is[s],{className:"blue",text:pe}],[{className:"strong",text:Ks.T.LimitationNotice.limit_flow_mind_screens_max_num_tips[s].replace(/{planName}/g,pe).replace(/{maxPageCount}/g,String(w))},Ks.T.LimitationNotice.limit_flow_mind_screens_max_num_tips_1[s]]];return(0,i.jsx)(El,{limitDesc:ye,currentPlan:F,planName:X,planType:ee,isOrgLimit:P,...t})},Pl=t=>{const{locale:n,currentUser:s,currentOrg:c,selectedOrg:d,limitType:w}=t,P=!!(c&&c.cid&&c.otype!=="personal"),F=w===_i.hC.ProjectVersionFromTime,{currentPlan:X,planType:ee,planName:pe,isOrgFull:ye,realPlanName:Ae}=(0,fr.T2)(P,n,d,s),{maxVersionCount:we,maxVersionRecycleDays:_e}=(0,fr.xR)("",s,P&&c),Ye=X==="org_free"||X==="org_lite"?[Ks.T.LimitationNotice.limit_version_org_free_tips_3[n],{className:"blue",text:_e},Ks.T.LimitationNotice.limit_version_org_free_tips_4[n]]:[],He=X===Vc.Sj.OrgFull?Ks.T.LimitationNotice.limit_versions_history_tips_4[n]:Ks.T.LimitationNotice.limit_versions_history_tips_3[n],tt=F&&!P?[[Ks.T.LimitationNotice.limit_current_is[n],{className:"blue",text:Ae}],[Ks.T.LimitationNotice.limit_version_solo_free_tips_1[n].replace("{realPlanName}",Ae),{className:"blue",text:_e},Ks.T.LimitationNotice.limit_version_solo_free_tips_2[n],Ks.T.LimitationNotice.limit_versions_history_tips_3[n]]]:P?[[Ks.T.LimitationNotice.limit_current_is[n],{className:"blue",text:Ae}],[Ks.T.LimitationNotice.limit_version_org_free_tips_1[n].replace("{realPlanName}",Ae),{className:"blue",text:we},Ks.T.LimitationNotice.limit_version_org_free_tips_2[n],...Ye,He],X==="org_full"?[Ks.T.LimitationNotice.limit_versions_history_tips_5[n]]:[]]:[[Ks.T.LimitationNotice.limit_current_is[n],{className:"blue",text:Ae}],[Ks.T.LimitationNotice.limit_version_solo_to_org_tips_2[n],Ks.T.LimitationNotice.limit_versions_history_tips_2[n]]],It=w!==_i.hC.ProjectVersionFromTime;return(0,i.jsx)(El,{limitDesc:tt,currentPlan:X,planName:pe,planType:ee,isOrgLimit:P,upgradeOrg:It,showConfirmBtn:ye,...t})};var Ed=e(88140);const Nc=(t,n)=>{let s=t;t===_i.OL.SoloOrLifetime&&(s=Ed.L1.Lifetime),t===_i.OL.OrgLiteOrFulltime&&(s=Ed.Sj.OrgFull);const c=bl.u3[s],d=c.max_project_count===bl.nj?Ks.T.LimitationNotice.no_limit_1[n]:""+c.max_project_count+Ks.T.LimitationNotice.unit[n],w=c.max_widget_count===-1?Ks.T.LimitationNotice.unlimited[n]:""+c.max_widget_count+Ks.T.LimitationNotice.unit[n],P=c.bomx_max_file_bytes/1024/1024+"M",F=c.bomx_max_upload_file_bytes/1024/1024+"M",X=c.max_pic_bytes/1024/1024+"M",ee=""+c.max_project_version_count+Ks.T.LimitationNotice.unit[n],pe=s===Ed.Sj.OrgFull?Ks.T.LimitationNotice.no_limit_2:s===Ed.Sj.OrgLite?Ks.T.LimitationNotice.seats_1_to_10:"\u652F\u630110\u4EBA";return{[_i.fA.BomxProjectCount]:d,[_i.fA.BomxWidgetCount]:w,[_i.fA.BomxFileSize]:P,[_i.fA.BomxUploadFileSize]:F,[_i.fA.BomxUploadImgSize]:X,[_i.fA.ProjectVersionsCount]:ee,[_i.fA.Teamwork]:pe}},Ip={[_i.fA.BomxProjectCount]:[_i.fA.BomxProjectCount,_i.fA.Teamwork,_i.fA.BomxWidgetCount,_i.fA.BomxFileSize],[_i.fA.BomxFileSize]:[_i.fA.BomxFileSize,_i.fA.BomxProjectCount,_i.fA.Teamwork,_i.fA.BomxWidgetCount],[_i.fA.BomxUploadFileSize]:[_i.fA.BomxUploadFileSize,_i.fA.BomxUploadImgSize,_i.fA.BomxWidgetCount],[_i.fA.BomxUploadImgSize]:[_i.fA.BomxUploadImgSize,_i.fA.BomxUploadFileSize,_i.fA.BomxWidgetCount],[_i.fA.ProjectVersionsCount]:[_i.fA.ProjectVersionsCount,_i.fA.Teamwork,_i.fA.BomxWidgetCount,_i.fA.BomxFileSize],[_i.fA.BomxWidgetCount]:[_i.fA.BomxWidgetCount,_i.fA.BomxUploadImgSize,_i.fA.BomxUploadFileSize]},Mp=(t,n)=>{let s=t?[_i.OL.OrgFree,_i.OL.OrgLite,_i.OL.OrgFull]:[_i.OL.Free,_i.OL.Solo,_i.OL.Lifetime];return[_i.fA.BomxUploadImgSize,_i.fA.BomxUploadFileSize].includes(n)&&(s=t?[_i.OL.OrgFree,_i.OL.OrgLiteOrFulltime]:[_i.OL.Free,_i.OL.SoloOrLifetime]),s},$c=t=>{let{firstInterestType:n,isOrg:s,locale:c}=t;const d=X=>X.map(ee=>({plan:ee,planI18nObj:_i.cS[ee],planIcon:""})),w=Mp(s,n);let P=Ip[n].map(X=>({type:X,typeI18nObj:_i.bj[X],values:w.map(ee=>Nc(ee,c)[X])}));return s||(P=P.filter(X=>X.type!==_i.fA.Teamwork)),[d(w),P]},vc=t=>{const{limitType:n,selectedOrg:s,upgradeOrg:c,limitDesc:d,isSoloCanGetCoupon:w,isOrgCanGetCoupon:P,isMockitt:F,currentPlan:X,planName:ee,planType:pe,isOrgLimit:ye,locale:Ae,onRemoveMember:we,actions:_e,getlimitReason:Fe,actions:{onOrgSwitchToTrial:Ye,onSoloSwitchToTrial:He,onManageShare:tt,onConfirm:It,onUpgrade:Nt,onLimitNewTrack:Lt,onMoreTrack:Xt}}=t,_o=_i.fu[n],[co,yn]=$c({firstInterestType:_o,isOrg:ye,locale:Ae}),An=(0,r.useMemo)(()=>({limitReason:Fe(ye),currentPlanProduct:ee,currentPlanCategory:ye?"org":"solo",currentType:pe,currentEditMember:ye?s==null?void 0:s.total_seats:0,currentViewMember:ye?s==null?void 0:s.total_viewer_seats:0}),[Fe,ee,ye,pe,s]);(0,r.useEffect)(()=>{Lt(An)},[An,Lt]);const In=()=>{const as=ye||c,mi=F?"/pricing.html":"/brand/pricing";return as?mi:mi+"?tab=personal"},wn=()=>{const as=In();(0,yc.JW)(as),Xt(An)},_n=()=>{Nt({isSoloCanGetCoupon:w,isOrgCanGetCoupon:P,limitTrackParams:An,upgradeOrg:c,isOrgLimit:ye})},Jn=as=>()=>as&&as(An),rs={..._e,onConfirm:Jn(It),onOrgSwitchToTrial:Jn(Ye),onSoloSwitchToTrial:Jn(He),onManageShare:Jn(tt),onRemoveMember:Jn(we),onUpgrade:_n,onMore:wn};return(0,i.jsx)(Ud,{...t,planList:co,interestList:yn,isCanGetCoupon:!!(w||P),limitDesc:d,actions:rs})};var lc=e(28149);const Wd=t=>{let{locale:n,currentUser:s}=t;const{isSoloCanSwitchTrial:c}=fc({isOrgLimit:!1,projectType:"bomx"}),{userPlan:d,userPlanType:w,userPlanName:P,isLifeTime:F}=(0,fr.Ix)(n,s);let ee=d==="free"?lc.TH.LimitationNotice.bomx_free_plan[n]:lc.TH.LimitationNotice.bomx_solo_plan[n];F&&(ee=lc.TH.LimitationNotice.bomx_lifetime_plan[n]);const pe=rc.t.InitialUser(s);return{isSoloCanSwitchTrial:c,pplSdk:pe,userPlan:d,userPlanType:w,userPlanName:P,planName:ee}},Xl=t=>{const{from:n,locale:s,isMockitt:c,currentUser:d,currentOrg:w,couponList:P}=t,F=w&&w.cid&&w.otype!=="personal",{isSoloCanGetCoupon:X}=Ec({isMockitt:c,coupons:P}),{isSoloCanSwitchTrial:ee,userPlan:pe,userPlanType:ye,userPlanName:Ae,pplSdk:we,planName:_e}=Wd({locale:s,currentUser:d}),Fe=we.limitationSdk.bomxLimit.getMaxProjectCount(),Ye=[F?[{className:"strong",text:""+Ks.T.LimitationNotice.bomx_current_file_located_space[s]},{className:"blue",text:""+_e+Ks.T.LimitationNotice.rights[s]}]:[{className:"strong",text:Ks.T.LimitationNotice.bomx_personal_org_tit1[s]+" "},{className:"blue",text:""+_e+Ks.T.LimitationNotice.rights[s]}],[{className:"strong",text:Ks.T.LimitationNotice.bomx_limit_version_file_number_tips_1[s].replace("{orgPlanName}",_e).replace("{maxLimitCount}",Fe)},Ks.T.LimitationNotice.bomx_limit_version_file_number_tips_2[s].replace("{maxLimitCount}",Fe)]];return(0,i.jsx)(vc,{limitDesc:Ye,currentPlan:pe,planName:Ae,planType:ye,isOrgLimit:!1,isSoloCanGetCoupon:X,showSoloTrialBtn:ee,showPreviewBtn:!ee,...t})},vd=t=>{let{selectedOrg:n,currentUser:s,orgList:c,isMockitt:d,locale:w,couponList:P}=t;const{isOrgCanSwitchTrial:F}=fc({isOrgLimit:!0,orgParams:{currentUser:s,currentOrg:n,orgs:c}}),{isOrgCanGetCoupon:X}=Ec({isMockitt:d,coupons:P}),{orgPlan:ee,orgPlanType:pe,orgPlanName:ye,isOrgFull:Ae}=(0,fr.$V)(w,n),we=rc.t.InitialOrg(n);let Fe=ee===Vc.Sj.OrgFree?lc.TH.LimitationNotice.bomx_free_plan[w]:lc.TH.LimitationNotice.bomx_org_lite_plan[w];return Ae&&(Fe=lc.TH.LimitationNotice.bomx_org_full_plan[w]),{isOrgCanSwitchTrial:F,isOrgCanGetCoupon:X,pplSdk:we,orgPlan:ee,orgPlanType:pe,orgPlanName:ye,isOrgFull:Ae,planName:Fe}},$0=t=>{const{from:n,locale:s,isMockitt:c,currentUser:d,currentOrg:w,selectedOrg:P,orgList:F,couponList:X}=t,{cid:ee}=P,pe=ee===w.cid,{isOrgCanGetCoupon:ye,isOrgCanSwitchTrial:Ae,pplSdk:we,orgPlan:_e,orgPlanType:Fe,orgPlanName:Ye,isOrgFull:He,planName:tt}=vd({selectedOrg:P,currentUser:d,orgList:F,isMockitt:c,locale:s,couponList:X}),It=we.limitationSdk.bomxLimit.getMaxProjectCount(),Nt=[pe?[{className:"strong",text:Ks.T.LimitationNotice.bomx_personal_org_tit1[s]+" "},{className:"blue",text:""+tt+Ks.T.LimitationNotice.rights[s]}]:[{className:"strong",text:""+Ks.T.LimitationNotice.bomx_current_file_located_space[s]},{className:"blue",text:""+tt+Ks.T.LimitationNotice.rights[s]}],[{className:"strong",text:Ks.T.LimitationNotice.bomx_limit_version_file_number_tips_1[s].replace("{orgPlanName}",tt).replace("{maxLimitCount}",It)},Ks.T.LimitationNotice.bomx_limit_version_file_number_tips_2[s].replace("{maxLimitCount}",It)]];return(0,i.jsx)(vc,{limitDesc:Nt,currentPlan:_e,planName:Ye,planType:Fe,isOrgLimit:!0,showConfirmBtn:He,showOrgTrialBtn:Ae,isOrgCanGetCoupon:ye,showPreviewBtn:!Ae,...t})},q0=t=>{const{locale:n,isMockitt:s,currentUser:c,selectedOrg:d,orgList:w,couponList:P}=t,{isOrgCanGetCoupon:F,isOrgCanSwitchTrial:X,pplSdk:ee,orgPlan:pe,orgPlanType:ye,orgPlanName:Ae,isOrgFull:we,planName:_e}=vd({selectedOrg:d,currentUser:c,orgList:w,isMockitt:s,locale:n,couponList:P}),Fe=ee.limitationSdk.bomxLimit.getMaxPicBytes(),Ye=[[{className:"strong",text:Ks.T.LimitationNotice.bomx_personal_org_tit1[n]+" "},{className:"blue",text:""+_e+Ks.T.LimitationNotice.rights[n]}],[{className:"strong",text:Ks.T.LimitationNotice.limit_proto_image_max_size[n].replace(/{planName}/g,_e).replace(/{maxPicBytes}/g,String(Fe/1024/1024))},Ks.T.LimitationNotice.limit_proto_image_max_size_desc[n]]];return(0,i.jsx)(vc,{limitDesc:Ye,currentPlan:pe,planName:Ae,planType:ye,isOrgLimit:!0,showConfirmBtn:we,showOrgTrialBtn:X,isOrgCanGetCoupon:F,...t})},kd=t=>{const{from:n,locale:s,currentUser:c}=t,{isSoloCanSwitchTrial:d,userPlan:w,userPlanType:P,userPlanName:F,pplSdk:X,planName:ee}=Wd({locale:s,currentUser:c}),pe=X.limitationSdk.bomxLimit.getMaxPicBytes(),ye=[[{className:"strong",text:Ks.T.LimitationNotice.bomx_personal_org_tit1[s]+" "},{className:"blue",text:""+ee+Ks.T.LimitationNotice.rights[s]}],[{className:"strong",text:Ks.T.LimitationNotice.limit_bomx_image_max_size[s].replace(/{planName}/g,ee).replace(/{maxPicBytes}/g,String(pe/1024/1024))},Ks.T.LimitationNotice.limit_proto_imaglimit_bomx_image_max_size_desce_max_size_desc[s]]];return(0,i.jsx)(vc,{limitDesc:ye,currentPlan:w,planName:F,planType:P,isOrgLimit:!1,showSoloTrialBtn:d,upgradeOrg:w!==Vc.L1.Free,...t})},Zp=t=>{const{from:n,locale:s,currentUser:c}=t,{isSoloCanSwitchTrial:d,userPlan:w,userPlanType:P,userPlanName:F,pplSdk:X,planName:ee}=Wd({locale:s,currentUser:c}),pe=X.limitationSdk.bomxLimit.getMaxUploadFileBytes(),ye=X.limitationSdk.bomxLimit.getMaxPicBytes(),Ae=[[{className:"strong",text:Ks.T.LimitationNotice.bomx_personal_org_tit1[s]+" "},{className:"blue",text:""+ee+Ks.T.LimitationNotice.rights[s]}],[{className:"strong",text:Ks.T.LimitationNotice.limit_bomx_upload_file_max_size[s].replace(/{planName}/g,ee).replace(/{maxFileBytes}/g,String(pe/1024/1024)).replace(/{maxPicBytes}/g,String(ye/1024/1024))},Ks.T.LimitationNotice.limit_bomx_upload_file_max_size_desc[s]]];return(0,i.jsx)(vc,{limitDesc:Ae,currentPlan:w,planName:F,planType:P,isOrgLimit:!1,showSoloTrialBtn:d,upgradeOrg:w!==Vc.L1.Free,...t})},Xp=t=>{const{locale:n,isMockitt:s,currentUser:c,selectedOrg:d,orgList:w,couponList:P}=t,{isOrgCanGetCoupon:F,isOrgCanSwitchTrial:X,pplSdk:ee,orgPlan:pe,orgPlanType:ye,orgPlanName:Ae,isOrgFull:we,planName:_e}=vd({selectedOrg:d,currentUser:c,orgList:w,isMockitt:s,locale:n,couponList:P}),Fe=ee.limitationSdk.bomxLimit.getMaxUploadFileBytes(),Ye=ee.limitationSdk.bomxLimit.getMaxPicBytes(),He=[[{className:"strong",text:Ks.T.LimitationNotice.bomx_personal_org_tit1[n]+" "},{className:"blue",text:""+_e+Ks.T.LimitationNotice.rights[n]}],[{className:"strong",text:Ks.T.LimitationNotice.limit_bomx_upload_file_max_size[n].replace(/{planName}/g,_e).replace(/{maxFileBytes}/g,String(Fe/1024/1024)).replace(/{maxPicBytes}/g,String(Ye/1024/1024))},Ks.T.LimitationNotice.limit_bomx_upload_file_max_size_desc[n]]];return(0,i.jsx)(vc,{limitDesc:He,currentPlan:pe,planName:Ae,planType:ye,isOrgLimit:!0,showConfirmBtn:we,showOrgTrialBtn:X,isOrgCanGetCoupon:F,...t})},_d=t=>{const{locale:n,isMockitt:s,currentUser:c,selectedOrg:d,orgList:w,couponList:P}=t,{isOrgCanGetCoupon:F,isOrgCanSwitchTrial:X,pplSdk:ee,orgPlan:pe,orgPlanType:ye,orgPlanName:Ae,isOrgFull:we,planName:_e}=vd({selectedOrg:d,currentUser:c,orgList:w,isMockitt:s,locale:n,couponList:P}),Fe=ee.limitationSdk.bomxLimit.getMaxFileBytes(),Ye=[[{className:"strong",text:Ks.T.LimitationNotice.bomx_personal_org_tit1[n]+" "},{className:"blue",text:""+_e+Ks.T.LimitationNotice.rights[n]}],[{className:"strong",text:Ks.T.LimitationNotice.limit_bomx_file_max_size[n].replace(/{planName}/g,_e).replace(/{maxPicBytes}/g,String(Fe/1024/1024))},Ks.T.LimitationNotice.limit_bomx_file_max_size_desc[n]]];return(0,i.jsx)(vc,{limitDesc:Ye,currentPlan:pe,planName:Ae,planType:ye,isOrgLimit:!0,showConfirmBtn:we,showOrgTrialBtn:X,isOrgCanGetCoupon:F,...t})},Vd=t=>{const{from:n,locale:s,currentUser:c}=t,{isSoloCanSwitchTrial:d,userPlan:w,userPlanType:P,userPlanName:F,pplSdk:X,planName:ee}=Wd({locale:s,currentUser:c}),pe=X.limitationSdk.bomxLimit.getMaxFileBytes(),ye=[[{className:"strong",text:Ks.T.LimitationNotice.bomx_personal_org_tit1[s]+" "},{className:"blue",text:""+ee+Ks.T.LimitationNotice.rights[s]}],[{className:"strong",text:Ks.T.LimitationNotice.limit_bomx_file_max_size[s].replace(/{planName}/g,ee).replace(/{maxPicBytes}/g,String(pe/1024/1024))},Ks.T.LimitationNotice.limit_bomx_file_max_size_desc[s]]];return(0,i.jsx)(vc,{limitDesc:ye,currentPlan:w,planName:F,planType:P,isOrgLimit:!1,showSoloTrialBtn:d,upgradeOrg:w!==Vc.L1.Free,...t})},Qp=t=>{const{locale:n,isMockitt:s,currentUser:c,selectedOrg:d,orgList:w,couponList:P}=t,{isOrgCanGetCoupon:F,isOrgCanSwitchTrial:X,pplSdk:ee,orgPlan:pe,orgPlanType:ye,orgPlanName:Ae,isOrgFull:we,planName:_e}=vd({selectedOrg:d,currentUser:c,orgList:w,isMockitt:s,locale:n,couponList:P}),Fe=ee.limitationSdk.bomxLimit.getMaxProjectVersionCount(),Ye=[[{className:"strong",text:Ks.T.LimitationNotice.bomx_personal_org_tit1[n]+" "},{className:"blue",text:""+_e+Ks.T.LimitationNotice.rights[n]}],[{className:"strong",text:Ks.T.LimitationNotice.limit_bomx_version_max_number[n].replace(/{planName}/g,_e).replace(/{maxProjectVersionCount}/g,String(Fe))},Ks.T.LimitationNotice.limit_bomx_version_max_number_desc[n].replace(/{maxProjectVersionCount}/g,String(Fe))]];return(0,i.jsx)(vc,{limitDesc:Ye,currentPlan:pe,planName:Ae,planType:ye,isOrgLimit:!0,showConfirmBtn:we,showOrgTrialBtn:X,isOrgCanGetCoupon:F,...t})},Tp=t=>{const{from:n,locale:s,currentUser:c}=t,{isSoloCanSwitchTrial:d,userPlan:w,userPlanType:P,userPlanName:F,pplSdk:X,planName:ee}=Wd({locale:s,currentUser:c}),pe=X.limitationSdk.bomxLimit.getMaxProjectVersionCount(),ye=[[{className:"strong",text:Ks.T.LimitationNotice.bomx_personal_org_tit1[s]+" "},{className:"blue",text:""+ee+Ks.T.LimitationNotice.rights[s]}],[{className:"strong",text:Ks.T.LimitationNotice.limit_bomx_version_max_number[s].replace(/{planName}/g,ee).replace(/{maxProjectVersionCount}/g,String(pe))},Ks.T.LimitationNotice.limit_bomx_version_max_number_desc[s].replace(/{maxProjectVersionCount}/g,String(pe))]];return(0,i.jsx)(vc,{limitDesc:ye,currentPlan:w,planName:F,planType:P,isOrgLimit:!1,showSoloTrialBtn:d,upgradeOrg:w!==Vc.L1.Free,...t})},Jp=t=>{const{from:n,locale:s,currentUser:c}=t,{isSoloCanSwitchTrial:d,userPlan:w,userPlanType:P,userPlanName:F,pplSdk:X,planName:ee}=Wd({locale:s,currentUser:c}),pe=X.limitationSdk.bomxLimit.getMaxWidgetCount(),ye=[[{className:"strong",text:Ks.T.LimitationNotice.bomx_personal_org_tit1[s]+" "},{className:"blue",text:""+ee+Ks.T.LimitationNotice.rights[s]}],[{className:"strong",text:Ks.T.LimitationNotice.limit_bomx_max_widget_count[s].replace(/{planName}/g,ee).replace(/{maxPicBytes}/g,String(pe>0?pe:"\u65E0\u9650"))},Ks.T.LimitationNotice.limit_bomx_max_widget_count_desc[s]]];return(0,i.jsx)(vc,{limitDesc:ye,currentPlan:w,planName:F,planType:P,isOrgLimit:!1,showSoloTrialBtn:d,upgradeOrg:w!==Vc.L1.Free,...t})},$p=t=>{const{locale:n,isMockitt:s,currentUser:c,selectedOrg:d,orgList:w,couponList:P}=t,{isOrgCanGetCoupon:F,isOrgCanSwitchTrial:X,pplSdk:ee,orgPlan:pe,orgPlanType:ye,orgPlanName:Ae,isOrgFull:we,planName:_e}=vd({selectedOrg:d,currentUser:c,orgList:w,isMockitt:s,locale:n,couponList:P}),Fe=ee.limitationSdk.bomxLimit.getMaxWidgetCount(),Ye=[[{className:"strong",text:Ks.T.LimitationNotice.bomx_personal_org_tit1[n]+" "},{className:"blue",text:""+_e+Ks.T.LimitationNotice.rights[n]}],[{className:"strong",text:Ks.T.LimitationNotice.limit_bomx_max_widget_count[n].replace(/{planName}/g,_e).replace(/{maxPicBytes}/g,String(Fe>0?Fe:"\u65E0\u9650"))},Ks.T.LimitationNotice.limit_bomx_max_widget_count_desc[n]]];return(0,i.jsx)(vc,{limitDesc:Ye,currentPlan:pe,planName:Ae,planType:ye,isOrgLimit:!0,showConfirmBtn:we,showOrgTrialBtn:X,isOrgCanGetCoupon:F,...t})},ep={[_i.hC.MaxSharingCount]:Q0,[_i.hC.MaxVipTemplateCount]:xc,[_i.hC.OrgMaxSpaceCount]:Sp,[_i.hC.OrgMaxTemplateCount]:xd,[_i.hC.OrgMaxVersionCount]:J0,[_i.hC.ProjectHandoverNoPermission]:P0,[_i.hC.ProjectHandoverWhenDemotingNoPermission]:P0,[_i.hC.OrgMaxPicSize]:cd,[_i.hC.SoloMaxPicSize]:Ap,[_i.hC.OrgMaxPrototypePageCount]:d0,[_i.hC.OrgMaxPrototypeWidgetCount]:d0,[_i.hC.OrgMaxProto2PageCount]:Kl,[_i.hC.OrgMaxProto2CanvasCount]:Kl,[_i.hC.OrgMaxProto2WidgetCount]:Kl,[_i.hC.SoloMaxPrototypePageCount]:fl,[_i.hC.SoloMaxPrototypeWidgetCount]:fl,[_i.hC.SoloMaxProto2PageCount]:L0,[_i.hC.SoloMaxProto2CanvasCount]:L0,[_i.hC.SoloMaxProto2WidgetCount]:L0,[_i.hC.OrgMaxProjectCount]:Yh,[_i.hC.SoloMaxProjectCount]:D0,[_i.hC.SoloToOrgDesignFeature]:zd,[_i.hC.SoloToOrgMemberFeature]:zd,[_i.hC.SoloToOrgVersionFeature]:zd,[_i.hC.ProjectVersionFromCount]:Pl,[_i.hC.ProjectVersionFromTime]:Pl,[_i.hC.MaxFlowPageCount]:jl,[_i.hC.MaxMindPageCount]:jl,[_i.hC.BomxSoloMaxProjectCount]:Xl,[_i.hC.BomxOrgMaxProjectCount]:$0,[_i.hC.BomxOrgMaxPicSize]:q0,[_i.hC.BomxSoloMaxPicSize]:kd,[_i.hC.BomxOrgMaxFileSize]:Xp,[_i.hC.BomxSoloMaxFileSize]:Zp,[_i.hC.BomxOrgMaxProjectSize]:_d,[_i.hC.BomxSoloMaxProjectSize]:Vd,[_i.hC.BomxOrgMaxVersionCount]:Qp,[_i.hC.BomxSoloMaxVersionCount]:Tp,[_i.hC.BomxSoloMaxWidgetCount]:Jp,[_i.hC.BomxOrgMaxWidgetCount]:$p};function qp(t){const{limitType:n}=t,s=ep[n];return!n||!s?null:(0,i.jsx)(s,{...t})}var eh=e(29601),th=e(60482),Lc=e(51691);const qc=t=>{const{isOpen:n,type:s,currentUser:c,currentOrg:d,selectedOrg:w,screenCount:P,isCurrentProject:F=!0,widgetCreateLimit:X,project:ee,isFromScreenList:pe,onClose:ye}=t,Ae=w||d,we=_i.FW.Proto,_e=function(yn){return yn===void 0&&(yn=!0),(0,Xe.Pb)({limitType:s,user:c,org:yn&&Ae,from:we})},Fe=(0,o.wA)(),Ye=()=>ye(),co={onSoloSwitchToTrial:async yn=>{const An=await(0,Jd.Ue)();!An||!An.user||(MB.notice({text:I18N.dModals.got_personal_trial_success}),Ye(),Lc.Y4.limitPopupClick({objectClick:"\u9886\u53D62\u5929\u8BD5\u7528",...yn}),location.reload())},onOrgSwitchToTrial:async yn=>{const An=await(0,c0.Iw)(Ae.cid);!An||!An.org||(MB.notice({text:I18N.dModals.get_7_days_business_trial_success}),Ye(),Lc.Y4.limitPopupClick({objectClick:"\u9886\u53D67\u5929\u8BD5\u7528",...yn}),location.reload())},onUpgrade:async yn=>{let{isSoloCanGetCoupon:An=!1,isOrgCanGetCoupon:In=!1,limitTrackParams:wn,upgradeOrg:_n=!1,isOrgLimit:Jn=!0}=yn;An&&(0,c0.Go)("sole_free_upgrade_paid"),In&&(0,c0.Go)("org_free_upgrade_paid");const rs=An||In,as=Xe.H4[s],mi=(0,fr.l0)({org:Jn&&Ae,paymentTrackParams:as,checkoutArea:we,upgradeOrg:_n});MB.global.popupHelper.chargeAsync({...mi,fromType:s}),Ye(),s===_i.hC.MaxSharingCount&&(0,th.kv)({action:"\u5347\u7EA7\u7248\u672C",linkName:"\u65E0",project:ee,isFromScreenList:pe}),Lc.Y4.limitPopupClick({objectClick:rs?"\u9886\u5238\u5347\u7EA7":I18N.dModals.upgrade,...wn})},onConfirm:yn=>{Ye(),Lc.Y4.limitPopupClick({objectClick:"\u6211\u77E5\u9053\u4E86",...yn})},onManageShare:yn=>{Fe({type:"toolbar:sharingManager:open"}),Ye(),Lc.Y4.limitPopupClick({objectClick:I18N.dModals.limit_manage_pages,...yn})},onClose:Ye,onLimitNewTrack:yn=>Lc.Y4.limitPopupNew(yn),onMoreTrack:yn=>Lc.Y4.limitPopupClick({objectClick:"\u4E86\u89E3\u66F4\u591A\u6743\u76CA",...yn})};return(0,i.jsxs)(Kp,{isOpen:n,className:"right-and-interests",onClose:Ye,title:null,footer:null,canClose:!1,children:[(0,i.jsx)(qp,{from:we,locale:(0,eh.w)(),isMockitt:ENV.IS_WONDER_SHARE,limitType:s,currentUser:c,currentOrg:d,selectedOrg:Ae,screenCount:P,isCurrentProject:F,widgetCreateLimit:X,actions:co,getlimitReason:_e}),(0,i.jsx)(Gp,{})]})},ed="400-659-9879",Pd="\u987E\u95EE\u5DE5\u4F5C\u65F6\u95F4\uFF1A\u5468\u4E00\u81F3\u5468\u4E94 9:00-18:00",oh=(0,u.Ay)(Vn.H).withConfig({displayName:"style__StyledOrgBeyondRights",componentId:"sc-mssgl6-0"})(["&.apps-count-over{.content{min-height:152px;font-size:14px;color:#1f292e;line-height:22px;background-color:",";.modal-content{display:flex;flex:1;flex-direction:column;align-items:stretch;overflow:hidden;position:relative;p{margin:0 0 5px;font-size:14px;line-height:22px;font-family:PingFangSC-Regular;font-style:normal;font-weight:400;color:",";.strong{font-weight:600;}.tip{color:",";}}}}}"],t=>t.theme.color_bg_white,t=>t.theme.color_text_L1,t=>t.theme.color_text_L2),Eh=t=>{let{isOpen:n,beyondType:s,...c}=t;const d=(0,o.wA)(),w=()=>{d({type:"toolbar:sharingManager:open"}),c.onClose()};return(0,i.jsx)(oh,{isOpen:n,canCloseOnClickMask:!0,onClose:c.onClose,className:"apps-count-over",title:s==="MaxSharingCount"?I18N.dModals.limit_sharing_count:I18N.dModals.limit_business_plan_over_limit_tips,cancelText:I18N.dModals.limit_manage_sharing,onCancel:s==="MaxSharingCount"?w:null,confirmText:s==="MaxSharingCount"?I18N.dModals.limit_i_got_it:I18N.Common.confirm,confirmBtnProps:{type:"danger"},onConfirm:c.onClose,children:(0,i.jsxs)("div",{className:"modal-content",children:[(0,i.jsxs)("p",{children:[I18N.dModals.limit_current_is,(0,i.jsx)("span",{className:"strong",children:I18N.Common.business_plan})]}),s==="versionNumber"&&(0,i.jsxs)("p",{children:[(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:I18N.dModals.limit_business_plan_file_version_over_limit}}),!ENV.IS_WONDER_SHARE&&(0,i.jsxs)("span",{children:["\u82E5\u60A8\u6709\u66F4\u9AD8\u9700\u6C42\uFF0C\u6B22\u8FCE\u54A8\u8BE2\u987E\u95EE",(0,i.jsx)("span",{className:"strong",children:" "+ed+" "}),"\u4E86\u89E3\u79C1\u6709\u5316\u7248\u672C\u3002"]})]}),s==="picSize"&&(0,i.jsxs)("p",{children:[(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:I18N.dModals.limit_business_plan_image_size_over_limit}}),!ENV.IS_WONDER_SHARE&&(0,i.jsxs)("span",{children:["\u82E5\u60A8\u6709\u66F4\u9AD8\u9700\u6C42\uFF0C\u6B22\u8FCE\u54A8\u8BE2\u987E\u95EE",(0,i.jsx)("span",{className:"strong",children:" "+ed+" "}),"\u4E86\u89E3\u79C1\u6709\u5316\u7248\u672C\u3002"]})]}),s==="MaxSharingCount"&&(0,i.jsxs)("p",{children:[(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:I18N.dModals.limit_business_plan_share_count_over_limit}}),!ENV.IS_WONDER_SHARE&&(0,i.jsxs)("span",{children:["\u82E5\u60A8\u6709\u66F4\u9AD8\u9700\u6C42\uFF0C\u6B22\u8FCE\u54A8\u8BE2\u987E\u95EE",(0,i.jsx)("span",{className:"strong",children:" "+ed+" "}),"\u4E86\u89E3\u79C1\u6709\u5316\u7248\u672C\u3002"]})]}),!ENV.IS_WONDER_SHARE&&(0,i.jsx)("p",{children:(0,i.jsx)("span",{className:"tip",children:Pd})})]})})};var p0=e(33270);const kh=(0,u.Ay)(Vn.H).withConfig({displayName:"styles__StyledResourcePurchaseModal",componentId:"sc-ay5kax-0"})(["&.resource-purchase{height:480px;overflow:hidden;box-shadow:none;border-radius:8px;background:#fff;border:0;}iframe{width:100%;height:100%;border:0;}"]);var Dc=e(36820);class Ge extends r.PureComponent{constructor(){super(...arguments),(0,p.A)(this,"handleMessage",async n=>{if(typeof n.data!="string")return;const{onClose:s,dispatch:c,resources:{cid:d,title:w,category:P,is_star:F},paidCallback:X}=this.props;if(n.data==="close")s();else if(n.data==="paid")s(),X&&X(),c({type:"modal:update:state",payload:{resourcesPaidSuccessModal:{isOpen:!0,cid:d,category:P}}}),F||await(0,p0.lU)(F,d,!1);else if(n.data==="goMatBuy"){const{payEntrance:ee,checkoutPlace:pe}=(0,p0.FS)(P),ye={mode:"mat",payEntrance:ee,checkoutArea:"proto",checkoutPlace:pe,templateCid:d,templateName:w,templateCategory:P};MB.global.popupHelper.chargeAsync(ye),s()}else n.data==="error"&&console.error("\u652F\u4ED8\u53D1\u751F\u9519\u8BEF")})}componentDidMount(){window.addEventListener("message",this.handleMessage);const{cid:n,title:s,category:c}=this.props.resources;(0,Dc.kH)("scvip_pay_confirm",{source:"v8\u7F16\u8F91\u533A\u7D20\u6750\u9762\u677F",template_name:s,template_cid:n,template_category:c})}componentWillUnmount(){window.removeEventListener("message",this.handleMessage)}render(){var n;const{isOpen:s,resources:c,isFooter:d,onClose:w}=this.props;if(!c)return null;const{cid:P,amount:F,discount:X,policy:ee,title:pe,cover:ye}=c,Ae={isOrg:!!((n=MB)!=null&&n.currentOrg),amount:F,discount:X,policy:ee,templateCid:P,templateTitle:pe,templateImageUrl:ye,projectType:"prototype",from:"\u5DE5\u4F5C\u533A",checkoutArea:"proto",checkoutPlace:d?"panel_single_pay":"use_vip_mkt_popup_single_pay"};return(0,i.jsx)(kh,{isOpen:s,onClose:w,title:null,width:716,footer:null,centered:!0,className:f()("resource-purchase"),modalRender:()=>(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("iframe",{src:"/embed/community_payment_modal?param="+(0,S0._)(Ae)})})})}}(0,p.A)(Ge,"defaultProps",{isFooter:!1});var jt=e(40684);const Dt=(0,u.Ay)(Vn.H).withConfig({displayName:"styled__StyledResourcesPaidSuccessModal",componentId:"sc-bgkjh8-0"})([".container{img{width:358px;height:196px;margin-top:10px;border-radius:6px;overflow:hidden;}}"]);class Zt extends r.PureComponent{constructor(){super(...arguments),(0,p.A)(this,"handleUsed",()=>{const{cid:n,category:s,onClose:c,dispatch:d}=this.props;c(),d({type:"entry:resources:paid:success:goto:starred",payload:{cid:n,category:s}})})}render(){const{isOpen:n,category:s,onClose:c}=this.props,d=s===jt.t_?"\u7EC4\u4EF6-\u53D1\u73B0-\u6536\u85CF":s===jt.Gd?"\u9875\u9762-\u6536\u85CF":"\u56FE\u6807-\u6536\u85CF";return(0,i.jsx)(Dt,{isOpen:n,onClose:c,canCloseOnEsc:!1,canCloseOnClickMask:!1,title:"\u652F\u4ED8\u6210\u529F",width:400,onConfirm:this.handleUsed,confirmText:"\u7ACB\u5373\u4F7F\u7528",onCancel:c,cancelText:"\u7EE7\u7EED\u6D4F\u89C8",children:(0,i.jsxs)("div",{className:"container",children:[(0,i.jsxs)("span",{className:"desc",children:["\u53EF\u70B9\u51FB\u201C\u7ACB\u5373\u4F7F\u7528\u201D\u4FDD\u5B58\u540E\uFF0C\u524D\u5F80",(0,i.jsx)("b",{children:'"'+d+'"'}),"\u67E5\u770B"]}),(0,i.jsx)("img",{src:"/mb-proto2/images/guide/paidSuccess/"+s+".png"})]})})}}var fo=e(19994),Eo=e(14615),Bo=e(64334);const xn=(0,r.memo)(t=>{let{isOpen:n,activePageKey:s,newSelection:c,activeWidgetKey:d,...w}=t;const[P,F]=(0,r.useState)(s);(0,r.useEffect)(()=>{if(n&&c!=null&&c.length&&!d){const ee=c.some(ye=>sdkStore.locUpRBPageKey(ye)===P);let pe=P;ee||c.find(ye=>{const Ae=sdkStore.locUpRBPageKey(ye);return Ae?(pe=Ae,!0):!1}),F(pe)}},[n,c]);const X=ee=>{let{activePageKey:pe}=ee;F(pe)};return n&&(0,i.jsx)(Qo,{activePageKey:P,activeWidgetKey:d,...w,onActiveRunner:X})});class Qo extends r.PureComponent{constructor(n){super(n),(0,p.A)(this,"handleMove",(X,ee)=>{this.setState({left:X,top:ee})}),(0,p.A)(this,"handleResize",(X,ee,pe)=>{$r(X,pe,(ye,Ae)=>{var we;this.setState(ye);const{width:_e,height:Fe}=ye;!((we=MB)==null||(we=we.webpackInterface)==null)&&we.store&&MB.webpackInterface.store.dispatch({type:"entry:preview:zoom-quick-preview",payload:{quickPreviewSize:{width:_e,height:Fe-Jr}}})})}),(0,p.A)(this,"handleUpdateDragOrResizeModal",X=>{var ee,pe;this.props.dispatch({type:"modal:update:state",payload:{isDragOrResizeModal:X}}),(ee=MB)!=null&&ee.runnerController&&((pe=MB)==null||(pe=pe.runnerController)==null||pe.setIsPreventEvent(X))}),this.$portalElem=Jl();const{PreviewApp:s,runnerController:c,messageBucket:d,webpackInterface:w}=(0,br._)(Bo.A);n.activeWidgetKey||(MB.previewModalActiveRunner=X=>n.onActiveRunner(X)),this.popGlobalPreviewRelated=$l.A.tryStashGlobalPreviewRelated({runnerController:c,messageBucket:d,webpackInterface:w}),this.PreviewApp=s;let P=ml,F=zc+Jr;if(n.activeWidgetKey){const X=n.width,ee=n.height,{width:pe,height:ye}=Bl({width:X,height:ee},{width:X,height:ee});P=pe,F=ye+Jr}this.state={left:n.position.left,top:n.position.top,width:P,height:F}}componentDidMount(){var n;!((n=MB)==null||(n=n.webpackInterface)==null)&&n.store&&MB.webpackInterface.store.dispatch({type:"reducer:preview-toolbar:update",payload:{theme:this.props.theme}})}componentDidUpdate(n,s,c){var d;(d=MB)!=null&&(d=d.webpackInterface)!=null&&d.store&&(n.activePageKey!==this.props.activePageKey?(MB.webpackInterface.store.dispatch({type:"entry:runner:activate:canvas",payload:{pageKey:this.props.activePageKey,canvasKey:null}}),MB.webpackInterface.store.dispatch({type:"entry:preview:zoom-quick-preview"})):n.theme!==this.props.theme&&MB.webpackInterface.store.dispatch({type:"reducer:preview-toolbar:update",payload:{theme:this.props.theme}}))}componentWillUnmount(){this.handleUpdateDragOrResizeModal(!1),setTimeout(()=>this.popGlobalPreviewRelated(),500)}render(){var n,s;const{projectAlike:c,currentProjectMeta:d,activePageKey:w,activeWidgetKey:P,isDragOrResizeModal:F,onClose:X}=this.props,{left:ee,top:pe,width:ye,height:Ae}=this.state,{PreviewApp:we}=this;return!((n=MB)!=null&&(n=n.webpackInterface)!=null&&n.store)||!((s=MB)!=null&&s.runnerController)?null:(0,dr.createPortal)((0,i.jsxs)(Ic,{children:[(0,i.jsx)(ir.A,{position:{left:ee,top:pe},dragContainer:"preview-combo-modal",container:"#workspace .main-content",onMove:this.handleMove,onMoveStart:()=>this.handleUpdateDragOrResizeModal(!0),onMoveEnd:()=>this.handleUpdateDragOrResizeModal(!1),children:(0,i.jsxs)(Sl,{id:"preview-combo-modal",style:{width:ye,height:Ae},className:"preview-modal-portal-root",children:[(0,i.jsx)("div",{className:"content",children:(0,i.jsx)(we,{store:MB.webpackInterface.store,previewMode:"preview",isPreviewCombo:!0,projectAlike:c,projectMeta:d,activePageKey:w,activeWidgetKey:P,quickPreviewSize:{width:ye,height:Ae-Jr},onCloseModal:X})}),F&&(0,i.jsx)("div",{className:"mask"})]})}),(0,i.jsx)(Wr.A,{classname:"resizer",top:pe,left:ee,width:ye,height:Ae,zoomable:"n,s,e,w,ne,nw,se,sw",rotatable:!1,rotateAngle:0,onResize:this.handleResize,onResizeStart:()=>this.handleUpdateDragOrResizeModal(!0),onResizeEnd:()=>this.handleUpdateDragOrResizeModal(!1),cursorAngle:0})]}),this.$portalElem)}}const Yn=(0,m.Mz)([ce.p$,gr.n,Eo.vv],(t,n,s)=>({newSelection:t,position:{left:n+30,top:78},isDragOrResizeModal:s})),$n=(0,o.Ng)(Yn)(xn);var ls=e(79619);const Ns=(0,u.Ay)(Vn.H).withConfig({displayName:"styles__StyledUpgradeComboModal",componentId:"sc-1pw1s9x-0"})(["width:480px;.content{padding:10px 0 24px;.modal-content{padding:0;min-height:36px;.combo-list{height:300px;overflow-y:overlay;li{display:flex;align-items:center;height:40px;margin-bottom:4px;padding:0 20px;position:relative;&.checked{background:",";}.folder-icon{width:22px;margin:0 7px;path:first-child{fill:transparent;stroke:",";}path:last-child{fill:",";stroke:",";}}label{font-weight:400;font-size:14px;color:",";}}}}}footer{.all-checked{display:flex;align-items:center;flex:1;position:relative;&.checked{#all-checked{opacity:1;}}.all-checked-desc{font-weight:500;font-size:14px;color:",";margin-left:6px;}}}li{list-style:none;}"],t=>t.theme.color_btn_secondary_active,t=>t.theme.color_text_L1,t=>t.theme.color_bg_border_02,t=>t.theme.color_text_L1,t=>t.theme.color_text_L1,t=>t.theme.color_text_L1);class Cs extends r.PureComponent{constructor(n){super(n),(0,p.A)(this,"handleSelectCombo",(s,c)=>{s.preventDefault(),s.stopPropagation();const{upgradeComboGroupList:d}=this.props,{selectedComboList:w}=this.state;w.includes(c)?w.splice(w.indexOf(c),1):w.push(c),this.setState({selectedComboList:JSON.parse(JSON.stringify(w)),isSelectAll:w.length===d.length})}),(0,p.A)(this,"handleConfirm",async()=>{const{comboGroupList:s,currentComboPanel:c,userFcg:d,orgFcg:w,userId:P,onClose:F}=this.props,{selectedComboList:X}=this.state;if(X.length===0)return;this.setState({startExporting:!0,exportLoading:!0}),MB.notice({text:"\u5BFC\u5165\u4E2D...",type:"loading"});let ee=c;c==="user"&&((0,ls.Z)()?ee="org":ee="user");for(const pe of X)await(0,Qn.G8)({currentComboPanel:ee,projectMetaCid:pe});if(c==="user"){const pe=await(0,Gi.i_)({...d,userId:P,isAllowDat:!0});pe&&(Object.assign(globalThis,{userSdk:pe,userSdkStore:pe.sdkStore}),MB.action("entry:load:user:combo:group:list"),MB.action("entry:refresh:user-combo-group:add:migrate",{oldUserComboGroups:s}))}else if(c==="org"){const pe=(0,Gi.Bk)(),ye=await(0,Gi.i_)({...w,userId:P,isAllowDat:pe});ye&&(Object.assign(globalThis,{orgSdk:ye,orgSdkStore:ye.sdkStore}),MB.action("entry:load:org:combo:group:list"),MB.action("entry:refresh:org-combo-group:add:migrate",{oldOrgComboGroups:s}))}MB.notice({text:"\u5BFC\u5165\u6210\u529F",type:"success"})}),(0,p.A)(this,"handleAllChecked",s=>{s.preventDefault(),s.stopPropagation();const{upgradeComboGroupList:c}=this.props,{isSelectAll:d}=this.state,w=[];d||c.forEach(P=>w.push(P.project_meta_cid)),this.setState({selectedComboList:w,isSelectAll:!d})}),this.state={selectedComboList:[],startExporting:!1,exportLoading:!1,exportSuccess:!1,exportFail:!1,isSelectAll:!1}}render(){const{isOpen:n,upgradeComboGroupList:s,currentComboPanel:c,onClose:d}=this.props,{selectedComboList:w,isSelectAll:P}=this.state,F=c==="org",X=(0,i.jsxs)("div",{className:f()("all-checked",{checked:P}),onClick:ee=>this.handleAllChecked(ee),children:[(0,i.jsx)(Ei.A,{className:"combo-all-checked",isChecked:P}),(0,i.jsx)("span",{className:"all-checked-desc",children:"\u5168\u9009"})]});return(0,i.jsx)(Ns,{className:"upgradeMyCombo top-modal",isOpen:n,onClose:d,canCloseOnClickMask:!0,canClose:!0,mask:!1,title:"\u8BF7\u9009\u62E9\u65E7\u7248"+(F?"\u4F01\u4E1A":"\u6211\u7684")+"\u7EC4\u4EF6",onCancel:d,cancelText:"\u53D6\u6D88",confirmText:"\u5BFC\u5165",confrmBtnProps:{callOnClose:!1},onConfirm:this.handleConfirm,isConfirmDisabled:w.length===0,renderFooterSide:()=>X,children:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"combo-list",children:s.map(ee=>{let{cid:pe,name:ye,project_meta_cid:Ae}=ee;const we=w.includes(Ae);return(0,i.jsxs)("li",{className:f()("item",{checked:we}),onClick:_e=>this.handleSelectCombo(_e,Ae),children:[(0,i.jsx)(Ei.A,{isChecked:we}),(0,i.jsx)(Je.C,{className:"folder-icon",name:"left_panel/group_close"}),(0,i.jsx)("span",{children:ye})]},Ae)})})})})}}const Us=(0,u.Ay)(Vn.H).withConfig({displayName:"styles__StyledChargeModal",componentId:"sc-b2ioui-0"})(["padding:0;height:600px;width:900px;display:flex;background-color:transparent;&.workspace-modal{border-radius:18px;}iframe{background:#ffffff;}.charge-container{width:100%;height:100%;border:none;border-radius:18px;}.payment-close{position:absolute;width:24px;height:24px;right:14px;top:15px;cursor:pointer;}"]);class Qs extends r.PureComponent{constructor(){super(...arguments),(0,p.A)(this,"state",{isChargePaymentSuccess:!1}),(0,p.A)(this,"handleMessage",n=>{try{const{msg:s,value:c}=JSON.parse(n.data);s==="closeChargeModal"?(this.props.onClose(),c&&(location.href=c)):s==="chargePaymentSuccess"&&this.setState({isChargePaymentSuccess:!0})}catch(s){}}),(0,p.A)(this,"handleClose",()=>{const{mode:n,onClose:s}=this.props;Lc.Y4.PaymentMode.popupClick({popupName:"\u652F\u4ED8\u5F39\u7A97",isFirstExp:"\u672A\u77E5",url:location.href,buttonName:"\u5173\u95ED"}),n==="org"?Lc.Y4.PaymentMode.orgClickMask():n==="solo"&&Lc.Y4.PaymentMode.soloClickMask(),s(),this.state.isChargePaymentSuccess&&location.reload(),(0,a0.iX)()})}componentDidMount(){window.addEventListener("message",this.handleMessage)}componentWillUnmount(){window.removeEventListener("message",this.handleMessage)}render(){const{src:n,isOpen:s}=this.props;return(0,i.jsx)(Us,{isOpen:s,canClose:!0,onClose:this.props.onClose,width:1200,title:null,footer:null,centered:!0,modalRender:()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("iframe",{className:"charge-container",src:""+n+(0,yc.O5)(!0)}),(0,i.jsx)(Je.C,{name:"common/close_ninth",onClick:this.handleClose,className:"payment-close",isColorPure:!0})]})})}}const Bs=Qs;var Ws=e(96828),ci=e(77885);const Ai="C@main",Qi=function(t){t===void 0&&(t=CLOCK_MIN);const n=createInitialFlatTree(t);return addFlatItemMutate(n,createFlatItem(Ai,{ctime:packU8V(Date.now())},KEY_MAIN,[],t)),n};var Oi=e(80627);const Ii=u.Ay.div.withConfig({displayName:"styles__StyledProjectSummaryField",componentId:"sc-1hb2nhn-0"})(["display:flex;align-items:center;height:32px;background-color:",";border-radius:6px;span{overflow:clip visible;white-space:nowrap;text-overflow:ellipsis;font-size:12px;line-height:12px;font-weight:400;&.field-title{color:",";}&:field-content{color:",";}}.general &{flex:0 0 230px;padding-left:10px;span{&.field-title{margin-right:14px;}&.field-content{&.creator-name{max-width:130px;}&.creator-avatar{display:flex;margin-right:6px;max-width:148px;.creator-avatar-placeholder{width:24px;height:24px;border-radius:50%;border:1px solid ",";color:#fff;font-size:14px;line-height:22px;text-align:center;background-color:#1684fc;}img{width:24px;height:24px;border-radius:50%;border:1px solid ",";}}}}}.statistic &{gap:6px;flex:0 0 150px;padding-left:10px;padding-right:10px;span{&.field-title{flex:0 0 74px;&:lang(en){flex-basis:100px;}}&.field-content{max-width:50px;}}}.engagement &{flex:0 0 150px;flex-direction:column;justify-content:top;row-gap:10px;height:100px;padding-top:28px;span{&.field-content{font-size:18px;font-weight:500;max-width:128px;&.cmt-resolved-count{font-size:10px;color:#23B571;display:flex;align-items:center;svg{flex:1 0 10px;margin-right:4px;}}}}}"],t=>t.theme.color_bg_card,t=>t.theme.color_text_L2,t=>t.theme.color_text_L1,t=>t.theme.color_bg_border_02,t=>t.theme.color_bg_border_02),$a=(0,u.Ay)(Vn.H).withConfig({displayName:"styles__StyledProjectSummaryModal",componentId:"sc-1hb2nhn-1"})(["display:flex;flex-direction:column;z-index:200;background-color:",";border:1px solid ",";box-shadow:0 6px 12px rgba(51,55,62,0.09),0 2px 3px rgba(22,22,33,0.02),0 4px 4px rgba(3,37,80,0.02);font-size:16px;line-height:24px;color:",";.content{padding:0 20px 24px;}.modal-content{.summary-ctgy{display:flex;flex-direction:column;padding-top:24px;line-height:12px;font-size:12px;.summary-ctgy-title{font-weight:500;margin-bottom:12px;}.summary-ctgy-content{display:flex;flex-wrap:wrap;flex-direction:row;gap:12px;}}}"],t=>t.theme.color_bg_white,t=>t.theme.color_bg_border_02,t=>t.theme.color_text_L1),Re=t=>{let{onClose:n}=t;const[s,c]=(0,r.useState)({creatorName:"",creatorAvatarSrc:"",projCreatedAt:"",collaboratorWithEditAccessCount:0,collaboratorWithReadOnlyAccessCount:0});(0,r.useEffect)(()=>{(0,Qn.wZ)(MB.getRootProject().cid).then(It=>{const{owner_name:Nt,owner_avatar:Lt,created_at:Xt,members_count:{can_edit:_o,only_preview:co}}=It;c({creatorName:Nt,creatorAvatarSrc:Lt,projCreatedAt:ss(Xt).format("YYYY/MM/DD HH:mm"),collaboratorWithEditAccessCount:_o,collaboratorWithReadOnlyAccessCount:co})})},[]);const d=(0,Oi.$q)(),{creatorName:w,creatorAvatarSrc:P,projCreatedAt:F,collaboratorWithEditAccessCount:X,collaboratorWithReadOnlyAccessCount:ee}=s,pe=rootSdk.sdkStore.findAllTypeUnder(ht.$k,"rResBunch").filter(It=>It.hotAttr.bunch==="rbPage"&&!It.hotAttr.asFolder).length,ye=rootSdk.sdkStore.findAllTypeUnder(ht.$k,"rResCanvas").filter(It=>!It.hotAttr.asOverlay).length,Ae=(0,Xo.UU)({isKeepInnerSkip:!1}),we=rootSdk.sdkStore.getHotItem(ht.fW).sub.length,_e=rootSdk.sdkStore.getHotItem(ht.W4).sub.filter(It=>!d(It)).length,Fe=rootSdk.sdkStore.findAllTypeUnder(Ws.gT,"wSticky").filter(It=>!d(It.key)).length+rootSdk.sdkStore.findAllTypeUnder(Ws.gT,"wTear").filter(It=>!d(It.key)).length,Ye=rootSdk.cmtStore.getHotItem(Ai).sub.reduce((It,Nt)=>d(Nt)?It:It.concat(rootSdk.cmtStore.getSubHotItemList(Nt)),[]),He=Ye.length,tt=Ye.filter(It=>It.hotAttr.isCompleted).length;return(0,i.jsx)($a,{isOpen:!0,width:520,onClose:n,canCloseOnClickMask:!0,title:I18N.ProjectSummaryModal.title,footer:null,children:(0,i.jsxs)("div",{className:"modal-content",children:[(0,i.jsxs)("div",{className:"summary-ctgy general",children:[(0,i.jsx)("span",{className:"summary-ctgy-title",children:I18N.ProjectSummaryModal.creation_info}),(0,i.jsxs)("div",{className:"summary-ctgy-content",children:[(0,i.jsxs)(Ii,{children:[(0,i.jsx)("span",{className:"field-title",children:I18N.Common.creator}),(0,i.jsx)("span",{className:"field-content creator-avatar",children:P.includes("/images/avatar.png")||!P?(0,i.jsx)("div",{className:"creator-avatar-placeholder",children:w.slice(0,1).toUpperCase()}):(0,i.jsx)("img",{src:P,alt:w})}),(0,i.jsx)("span",{className:"field-content creator-name",children:w})]}),(0,i.jsxs)(Ii,{children:[(0,i.jsx)("span",{className:"field-title",children:I18N.Common.created_at}),(0,i.jsx)("span",{className:"field-content",children:F})]})]})]}),(0,i.jsxs)("div",{className:"summary-ctgy statistic",children:[(0,i.jsx)("span",{className:"summary-ctgy-title",children:I18N.ProjectSummaryModal.quantitative_statistics}),(0,i.jsxs)("div",{className:"summary-ctgy-content",children:[(0,i.jsxs)(Ii,{children:[(0,i.jsx)("span",{className:"field-title",children:I18N.LeftSidePanel.page}),(0,i.jsx)("span",{className:"field-content",children:pe})]}),(0,i.jsxs)(Ii,{children:[(0,i.jsx)("span",{className:"field-title",children:I18N.LeftSidePanel.screens}),(0,i.jsx)("span",{className:"field-content",children:ye})]}),(0,i.jsxs)(Ii,{children:[(0,i.jsx)("span",{className:"field-title",children:I18N.LeftSidePanel.widgets}),(0,i.jsx)("span",{className:"field-content",children:Ae})]}),(0,i.jsxs)(Ii,{children:[(0,i.jsx)("span",{className:"field-title",children:I18N.LeftSidePanel.master}),(0,i.jsx)("span",{className:"field-content",children:we})]}),(0,i.jsxs)(Ii,{children:[(0,i.jsx)("span",{className:"field-title",children:I18N.SettingPanel.dynamic_widget}),(0,i.jsx)("span",{className:"field-content",children:_e})]}),(0,i.jsxs)(Ii,{children:[(0,i.jsx)("span",{className:"field-title",children:I18N.w.wSticky}),(0,i.jsx)("span",{className:"field-content",children:Fe})]})]})]}),(0,i.jsxs)("div",{className:"summary-ctgy engagement",children:[(0,i.jsx)("span",{className:"summary-ctgy-title",children:I18N.ProjectSummaryModal.collaboration_info}),(0,i.jsxs)("div",{className:"summary-ctgy-content",children:[(0,i.jsxs)(Ii,{children:[(0,i.jsx)("span",{className:"field-title",children:I18N.ProjectSummaryModal.editor}),(0,i.jsx)("span",{className:"field-content",children:X})]}),(0,i.jsxs)(Ii,{children:[(0,i.jsx)("span",{className:"field-title",children:I18N.ProjectSummaryModal.viewer}),(0,i.jsx)("span",{className:"field-content",children:ee})]}),(0,i.jsxs)(Ii,{children:[(0,i.jsx)("span",{className:"field-title",children:I18N.ProjectSummaryModal.total_comments}),(0,i.jsx)("span",{className:"field-content cmt-count",children:He}),(0,i.jsxs)("span",{className:"field-content cmt-resolved-count",children:[(0,i.jsx)(Je.C,{name:"toolbar/saveSuccess",className:"saveSuccess"}),(0,i.jsx)("span",{children:I18N.ProjectSummaryModal.completed_number.replace(/{cmtResolvedCount}/,tt)})]})]})]})]})]})})};var je=e(56511);const et=(0,u.Ay)(Vn.H).withConfig({displayName:"styles__StyledFlpakSizeWarnModal",componentId:"sc-ia291u-0"})(["&.flpak-size-warn-modal{width:480px;height:368px;border-radius:10px;box-shadow:0px 9px 28px 0px rgba(0,0,0,0.09),0px 6px 16px 0px rgba(0,0,0,0.02),0px 3px 6px 0px rgba(0,0,0,0.02);&:lang(en){height:max-content;}.content{display:flex;flex-direction:column;justify-content:space-between;height:262px;padding:24px 20px;&:lang(en){height:max-content;}.prompt{position:relative;display:flex;align-items:center;padding:14px;width:440px;height:68px;border-radius:6px;background-color:",";color:",";font-size:14px;font-weight:500;&:lang(en){height:max-content;}img{position:absolute;right:0;width:142px;height:68px;pointer-events:none;&:lang(en){width:auto;height:100%;}}}.steps{margin-top:20px;p{color:",";font-size:14px;font-weight:400;}p:first-child{font-weight:500;margin-bottom:4px;}}.detail{margin-top:20px;color:",";font-size:12px;font-weight:400;line-height:18px;}}}"],t=>t.theme.color_info_bg,t=>t.theme.color_text_L1,t=>t.theme.color_text_L1,t=>t.theme.color_text_L2),St=(0,u.DU)([".ModalPortal{&:not(.is-open){.flpak-size-warn-modal{transform:scale(0.5) translate(10vw,-80vh)!important;}}}"]),vt=async()=>{MB.notice({type:"loading",text:""+I18N.FlpakSizeWarn.creating,duration:0}),setTimeout(async()=>{try{const n=rootSdk.fssDat.getFlatStore().getFlatTree().fork(),s=(0,Oi.$q)(),c=rootSdk.sdkStore.getHotItem("B@ref-danli").sub.filter(pe=>!s(pe));n.set("B@ref-danli",{...n.get("B@ref-danli"),sub:c}),n.set("@@T",{...n.get("@@T"),sub:[]}),n.set("B@trash",{...n.get("B@trash"),sub:[]});const d=MB.__store__.getState(),w=(0,S.PL)(d),{cid:P}=(0,S.H7)(d),X={name:ENV.IS_WONDER_SHARE?w.name+"'s Streamlined Copies":w.name+"\u7684\u7CBE\u7B80\u526F\u672C",device:w.device,model:w.model,width:w.width,height:w.height,attr:w.attr},{clientData:{upperCid:ee}}=await(0,je.N)(n,P,X);MB.notice({type:"success",text:""+I18N.FlpakSizeWarn.create_success,duration:2e3}),(0,yc.JW)("/proto/design/"+ee)}catch(t){const n=JSON.parse(t.message);let s=""+I18N.FlpakSizeWarn.create_fail;Number(t.status)===403&&n.errMsg==="P_COUNT_EXCEEDED"&&(s=""+I18N.FlpakSizeWarn.reched_limit),MB.notice({type:"error",text:s,duration:2e3})}},0)},$o=t=>{const{isOpen:n,onClose:s}=t,c=()=>{s(),vt()};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(St,{}),(0,i.jsxs)(et,{isOpen:n,className:"flpak-size-warn-modal",title:I18N.FlpakSizeWarn.large_file_size,onConfirm:c,onClose:s,confirmText:I18N.FlpakSizeWarn.creating_streamlined_copies,canCloseOnClickMask:!1,canCancel:!1,children:[(0,i.jsxs)("div",{className:"prompt",children:[(0,i.jsx)("p",{children:I18N.FlpakSizeWarn.modal_prompt.replace(/{n}/,ENV["@FLPAK_SIZE_INFO"].currentSize)}),(0,i.jsx)("img",{src:"/mb-proto2/images/flpak_size_warn_modal_prompt_bg.png",alt:""})]}),(0,i.jsxs)("div",{className:"steps",children:[(0,i.jsx)("p",{children:I18N.FlpakSizeWarn.modal_steps_title}),(0,i.jsx)("p",{children:I18N.FlpakSizeWarn.modal_steps_1}),(0,i.jsx)("p",{children:I18N.FlpakSizeWarn.modal_steps_2})]}),(0,i.jsxs)("div",{className:"detail",children:[(0,i.jsx)("p",{children:I18N.FlpakSizeWarn.modal_detail_1}),(0,i.jsx)("p",{children:I18N.FlpakSizeWarn.modal_detail_2.replace(/{n}/,ENV["@FLPAK_SIZE_INFO"].warnSize)})]})]})]})},gn=[{coverSrc:"https://cdn.modao.cc/video2023/%E4%BA%86%E8%A7%A3%E5%8E%9F%E5%9E%8B%E7%BC%96%E8%BE%91%E5%8C%BA-cover-2x4x.png",videoSrc:"https://cdn.modao.cc/video2023/%E4%BA%86%E8%A7%A3%E5%8E%9F%E5%9E%8B%E7%BC%96%E8%BE%91%E5%8C%BA.mp4",videoName:"\u4E86\u89E3\u539F\u578B\u7F16\u8F91\u533A",duration:137},{coverSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep1-%E7%94%BB%E5%B8%83%E4%B8%8E%E9%A1%B5%E9%9D%A2-cover-2x4x.png",videoSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep1-%E7%94%BB%E5%B8%83%E4%B8%8E%E9%A1%B5%E9%9D%A2.M4V",videoName:"\u753B\u5E03\u4E0E\u9875\u9762",duration:150},{coverSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep2-%E4%BA%86%E8%A7%A3%E5%9B%BE%E5%B1%82-cover-2x4x.png",videoSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep2-%E4%BA%86%E8%A7%A3%E5%9B%BE%E5%B1%82.M4V",videoName:"\u4E86\u89E3\u56FE\u5C42",duration:80},{coverSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep3-%E4%BD%BF%E7%94%A8%E7%BB%84%E4%BB%B6-cover-2x4x.png",videoSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep3-%E4%BD%BF%E7%94%A8%E7%BB%84%E4%BB%B6.M4V",videoName:"\u4F7F\u7528\u7EC4\u4EF6",duration:206},{coverSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep4-%E4%BD%BF%E7%94%A8%E5%9B%BE%E6%A0%87%E3%80%81%E5%9B%BE%E7%89%87%E3%80%81%E9%A1%B5%E9%9D%A2%E7%B4%A0%E6%9D%90-cover-2x4x.png",videoSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep4-%E4%BD%BF%E7%94%A8%E5%9B%BE%E6%A0%87%E3%80%81%E5%9B%BE%E7%89%87%E3%80%81%E9%A1%B5%E9%9D%A2%E7%B4%A0%E6%9D%90.M4V",videoName:"\u4F7F\u7528\u56FE\u6807\u3001\u56FE\u7247\u3001\u9875\u9762\u7D20\u6750",duration:109},{coverSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep5-%E6%89%B9%E6%B3%A8%E5%92%8C%E8%BF%9E%E6%8E%A5%E7%BA%BF-cover-2x4x.png",videoSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep5-%E6%89%B9%E6%B3%A8%E5%92%8C%E8%BF%9E%E6%8E%A5%E7%BA%BF.M4V",videoName:"\u6DFB\u52A0\u6279\u6CE8\u548C\u8FDE\u63A5\u7EBF",duration:171},{coverSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep6-%E4%BA%A4%E4%BA%92%E4%BA%8B%E4%BB%B6-cover-2x4x.png",videoSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep6-%E4%BA%A4%E4%BA%92%E4%BA%8B%E4%BB%B6.M4V",videoName:"\u6DFB\u52A0\u4EA4\u4E92\u4E8B\u4EF6",duration:267},{coverSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep7-%E5%88%86%E4%BA%AB%E5%8E%9F%E5%9E%8B-cover-2x4x.png",videoSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep7-%E5%88%86%E4%BA%AB%E5%8E%9F%E5%9E%8B.M4V",videoName:"\u5206\u4EAB\u539F\u578B",duration:156},{coverSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep8-%E5%8A%A8%E6%80%81%E7%BB%84%E4%BB%B6-cover-2x4x.png",videoSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep8-%E5%8A%A8%E6%80%81%E7%BB%84%E4%BB%B6.M4V",videoName:"\u52A8\u6001\u7EC4\u4EF6",duration:197},{coverSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep9-%E4%BD%BF%E7%94%A8%E6%AF%8D%E7%89%88-cover-2x4x.png",videoSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep9-%E4%BD%BF%E7%94%A8%E6%AF%8D%E7%89%88.M4V",videoName:"\u4F7F\u7528\u6BCD\u7248",duration:187},{coverSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep10-%E5%8E%9F%E5%9E%8B%E5%8D%8F%E4%BD%9C-cover-2x4x.png",videoSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep10-%E5%8E%9F%E5%9E%8B%E5%8D%8F%E4%BD%9C.M4V",videoName:"\u539F\u578B\u534F\u4F5C",duration:119}],En=(0,u.Ay)(Rl).withConfig({displayName:"styles__StyledNewbieVideoModal",componentId:"sc-29ogk7-0"})(["border:",";border-radius:10px;overflow:hidden;z-index:107;background:",";header{cursor:move;width:100%;height:50px;padding:0 20px;background:",";border-bottom:1px solid ",";p{font-size:16px;font-weight:500;color:",";span:first-child{margin-right:10px;}}.close{cursor:pointer;width:24px;color:",";&:hover{color:",";}}}.contant{width:100%;padding:20px;line-height:0;background:",";video{width:100%;aspect-ratio:55 / 31;border-radius:10px;border:1px solid ",";object-fit:fill;}}footer{cursor:move;width:100%;height:56px;display:flex;padding:0 20px;justify-content:flex-end;background:",";.next{margin-left:12px;}}"],t=>t.theme.ai_modal_border_style,t=>t.theme.color_bg_white,t=>t.theme.color_bg_white,t=>t.theme.color_bg_border_02,t=>t.theme.color_text_L1,t=>t.theme.color_text_L2,t=>t.theme.color_text_L1,t=>t.theme.color_bg_white,t=>t.theme.color_bg_border_02,t=>t.theme.color_bg_white),cs=u.Ay.div.withConfig({displayName:"styles__StyledNewbieVideoContainer",componentId:"sc-29ogk7-1"})([".single-resizer{border:0;z-index:106;.resizable-handler{&.t,&.b{width:100%;left:7px;cursor:ns-resize !important;}&.l,&.r{height:100%;top:7px;cursor:ew-resize !important;}}.square{display:none;}}"]);var Zn=e(15668);const fs=t=>(t-40)*31/55+146,ks=t=>(t-146)*55/31+40,Zs=400,ni=1200,wi=800,xi=fs(Zs),Fi=fs(ni),$i=fs(wi),Ia=t=>{const{onClose:n,index:s,dispatch:c}=t,[d,w]=(0,r.useState)(s);(0,r.useEffect)(()=>{w(s),co(!1),An(!1)},[s]);const P=gn.length,{videoName:F,videoSrc:X}=gn[d],ee=(0,r.useMemo)(()=>d===0,[d]),pe=(0,r.useMemo)(()=>d===P-1,[d,P]),ye=(0,r.useCallback)(()=>{pe||(w(d+1),co(!1),An(!1))},[pe,d]),Ae=(0,r.useCallback)(()=>{ee||(w(d-1),co(!1),An(!1))},[ee,d]),[we,_e]=(0,r.useState)((window.innerWidth-wi)/2),[Fe,Ye]=(0,r.useState)((window.innerHeight-$i)/2),He=(Jn,rs)=>{_e(Jn),Ye(rs)};function tt(Jn,rs,as){const{top:mi,left:ha,width:Ca,height:ms}=Jn;Ca<Zs||Ca>ni||ms<xi||ms>Fi||(as==="t"||as==="b"?(Xt(ms),Nt(ks(ms))):as==="l"||as==="r"?(Nt(Ca),Xt(fs(Ca))):(Nt(Ca),Xt(ms)),_e(ha),Ye(mi))}const[It,Nt]=(0,r.useState)(wi),[Lt,Xt]=(0,r.useState)($i),[_o,co]=(0,r.useState)(!1),[yn,An]=(0,r.useState)(!1),In=(0,r.useRef)(),wn=()=>{_o||((0,Lc.Fn)({video_name:F}),co(!0))},_n=Jn=>{c({type:"modal:update:state",payload:{isDragOrResizeModal:Jn}})};return(0,r.useEffect)(()=>{const Jn=setInterval(()=>{if(!In.current||yn){clearInterval(Jn);return}const{duration:rs,currentTime:as}=In.current;as/rs>.9&&(An(!0),(0,Lc.Wt)({video_name:F}),clearInterval(Jn))},1e3)},[yn]),(0,r.useEffect)(()=>()=>{_n(!1)},[]),(0,i.jsxs)(cs,{children:[(0,i.jsx)(ir.A,{position:{left:we,top:Fe},dragContainer:"newbie-video-modal",onMove:He,onMoveStart:()=>_n(!0),onMoveEnd:()=>_n(!1),children:(0,i.jsxs)(En,{id:"newbie-video-modal",style:{width:It,height:Lt},children:[(0,i.jsxs)("header",{type:"draggable",children:[(0,i.jsxs)("p",{type:"draggable",children:[(0,i.jsx)("span",{children:""+F}),(0,i.jsx)("span",{children:d+1+"/"+P})]}),(0,i.jsx)(Je.C,{name:"common/close",className:"close",onClick:n})]}),(0,i.jsx)("div",{className:"contant",children:(0,i.jsx)("video",{ref:In,controls:!0,src:X,autoPlay:!0,onPlay:wn})}),(0,i.jsxs)("footer",{type:"draggable",children:[(0,i.jsx)(Zn.tA,{className:"prev",disabled:ee,onClick:Ae,children:I18N.CommonGuides.prev}),(0,i.jsx)(Zn.jn,{className:"next",disabled:pe,onClick:ye,children:I18N.CommonGuides.next})]})]})}),(0,i.jsx)(Wr.A,{classname:"resizer",top:Fe,left:we,width:It,height:Lt,zoomable:"n,s,e,w",rotatable:!1,rotateAngle:0,onResize:tt,onResizeStart:()=>_n(!0),onResizeEnd:()=>_n(!1),cursorAngle:0})]})};var _a=e(76364);const za=u.Ay.div.withConfig({displayName:"styles__StyledSelectGroup",componentId:"sc-k09v9g-0"})(["display:flex;align-items:center;column-gap:10px;.combo-category-select-box{.is-disabled{opacity:1;}.combo-upload-opener{width:112px;height:32px;display:flex;align-items:center;padding-left:8px;border-radius:6px;border:1px solid ",";&.is-placeholder{.title{color:",";}}&.is-disabled{color:",";}.title{text-align:start;color:",";font-size:14px;font-weight:400;line-height:16px;flex:1;}.arrow-icon{width:8px;margin:10px;}}label.Select{width:112px;height:32px;box-sizing:border-box;border:1px solid ",";border-radius:6px;padding-left:8px;color:",";button{font-size:14px;font-family:inherit;}&:last-of-type{margin-right:0;}}}"],t=>t.theme.color_bg_border_02,t=>t.theme.color_text_L2,t=>t.theme.color_text_disabled01,t=>t.theme.color_text_L1,t=>t.theme.color_bg_border_02,t=>t.theme.color_text_L1),la=u.Ay.div.withConfig({displayName:"styles__StyledSelectMenu",componentId:"sc-k09v9g-1"})(["padding:8px;width:151px;display:flex;flex-direction:column;row-gap:2px;li{height:24px;list-style:none;display:flex;align-items:center;column-gap:8px;padding-left:32px;border-radius:4px;&:hover,&.is-selected{background:",";}&.is-selected{padding-left:8px;}.checked{width:16px;height:16px;}.title{font-size:12px;font-weight:400;line-height:16px;}}color:",";background:",";border-radius:8px;li{color:",";background:",";}"],t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_text_L1,t=>t.theme.color_bg_white,t=>t.theme.color_text_L1,t=>t.theme.color_bg_white),qa=(0,u.DU)(["body > div > div.context-menu-mask{width:initial;height:initial;}#IBOT_DROPDOWN_MENU_ROOT .DesignDropdownMenuBase > .DesignDropdownMenu.combo-upload-category-menu.x-center{transition:all 0.2s ease-out;border-radius:8px;.content{background:",";padding:0;border-radius:8px;color:",";}}"],t=>t.theme.color_bg_white,t=>t.theme.color_text_L1),rr=t=>{const{selectedOption:n,optionList:s,onSelectedOption:c,onClose:d}=t,w=P=>{c(P),d()};return(0,i.jsx)(la,{children:s.map((P,F)=>{const X=n===P;return(0,i.jsxs)("li",{className:f()(X&&"is-selected"),onClick:()=>w(P),children:[X&&(0,i.jsx)(Je.C,{name:"common/checked",className:"checked"}),(0,i.jsx)("span",{className:"title",children:P})]},F)})})},pr=(0,r.memo)(rr),yr=t=>{const{option:n,placeholder:s,optionList:c,changeOption:d}=t,[w,P]=(0,r.useState)(!1),[F,X]=(0,r.useState)({}),ee=(0,r.useRef)(null),pe=!n,ye=!c||c.length===0,Ae=()=>{if(!ee.current)return{};const{top:Fe,left:Ye}=ee.current.getBoundingClientRect();return{menuBaseStyle:{left:Ye-22,top:Fe,width:135}}},we=(0,r.useCallback)(Fe=>{if(!ye){if(Fe){const{menuBaseStyle:Ye}=Ae();X(Ye)}P(Fe)}},[ye]),_e=(0,r.useCallback)(()=>we(!1),[we]);return(0,i.jsx)(_a.A,{menuY:"bottom",isOpen:w,className:f()("combo-category-select-box"),onToggle:we,isDisabled:ye,menuBaseStyle:F,opener:(0,i.jsxs)("div",{className:f()("combo-upload-opener",{"is-placeholder":pe},{"is-disabled":ye}),ref:ee,children:[(0,i.jsx)("span",{className:"title",children:n||s}),(0,i.jsx)(Je.C,{className:f()("arrow-icon",{"is-expand":w}),name:"common/expand"})]}),menuClassName:"combo-upload-category-menu",menu:(0,i.jsx)(pr,{selectedOption:n,optionList:c,onSelectedOption:d,onClose:_e})})},Lr=(0,r.memo)(yr);var Tr=function(t){return t.App="app",t.Applet="applet",t.Website="website",t.WebBack="web_back",t.Ipad="ipad",t.SmartTV="smart_tv",t.SmartCar="smart_car",t.AppleWatch="apple_watch",t.Slide="slide",t.DisplayScreen="display_screen",t.HMI="HMI",t.Activity="activity",t.other="other",t}(Tr||{});const Nl={APP:Tr.App,Web\u540E\u53F0:Tr.WebBack,\u5C0F\u7A0B\u5E8F:Tr.Applet,Web\u7F51\u7AD9:Tr.Website,\u53EF\u89C6\u5316\u5927\u5C4F:Tr.DisplayScreen,HMI:Tr.HMI,\u6D3B\u52A8:Tr.Activity,\u5E73\u677F\u7AEF:Tr.Ipad,\u667A\u80FD\u7535\u89C6:Tr.SmartTV,\u624B\u8868:Tr.AppleWatch,\u5E7B\u706F\u7247:Tr.Slide,\u5176\u4ED6:Tr.other},Il={APP:{\u5927\u5382\u8D44\u6E90:["Ant Design","TDesign","Arco Design","WeUi","\u5176\u5B83"],\u901A\u7528:["\u6309\u94AE","\u641C\u7D22","\u4E2A\u4EBA\u4E2D\u5FC3","\u652F\u4ED8","\u767B\u5F55","\u5206\u4EAB"],\u5BFC\u822A:["\u62BD\u5C49","\u7D22\u5F15","\u5BFC\u822A\u6761","\u4FA7\u8FB9\u680F","\u6B65\u9AA4\u6761","\u6807\u7B7E\u680F/\u5E95\u90E8\u5BFC\u822A","\u4E0B\u62C9\u83DC\u5355","\u9009\u9879\u5361","\u5176\u5B83"],\u6570\u636E\u5F55\u5165:["\u65E5\u5386","\u65F6\u95F4\u9009\u62E9\u5668","\u641C\u7D22\u6846","\u8868\u5355","\u9009\u62E9","\u8F93\u5165\u6846","\u8BC4\u5206","\u6B65\u8FDB\u5668","\u5F00\u5173","\u4E0A\u4F20"],\u6570\u636E\u5C55\u793A:["\u8F6E\u64AD","\u8868\u683C","\u5217\u8868","\u8FDB\u5EA6\u6761","\u6807\u7B7E","\u5185\u5BB9\u5361\u7247","\u5BAB\u683C","\u65F6\u95F4\u8F74","\u5176\u5B83"],\u53CD\u9988:["\u52A8\u4F5C\u9762\u677F","\u901A\u77E5","\u5F39\u7A97","\u62BD\u5C49","\u5F15\u5BFC","\u52A0\u8F7D\u4E2D","\u6ED1\u52A8\u5355\u5143\u683C"],\u5176\u5B83:[]},Web\u540E\u53F0:{\u5927\u5382\u8D44\u6E90:["Ant Design","TDesign","Arco Design","WeUi","\u5176\u5B83"],\u901A\u7528:["\u6309\u94AE","\u641C\u7D22","\u4E2A\u4EBA\u4E2D\u5FC3","\u652F\u4ED8","\u767B\u5F55","\u5206\u4EAB"],\u5BFC\u822A:["\u62BD\u5C49","\u7D22\u5F15","\u5BFC\u822A\u6761","\u4FA7\u8FB9\u680F","\u6B65\u9AA4\u6761","\u6807\u7B7E\u680F/\u5E95\u90E8\u5BFC\u822A","\u4E0B\u62C9\u83DC\u5355","\u9009\u9879\u5361","\u5176\u5B83"],\u6570\u636E\u5F55\u5165:["\u65E5\u5386","\u65F6\u95F4\u9009\u62E9\u5668","\u641C\u7D22\u6846","\u8868\u5355","\u9009\u62E9","\u8F93\u5165\u6846","\u8BC4\u5206","\u6B65\u8FDB\u5668","\u5F00\u5173","\u4E0A\u4F20"],\u6570\u636E\u5C55\u793A:["\u8F6E\u64AD","\u8868\u683C","\u5217\u8868","\u8FDB\u5EA6\u6761","\u6807\u7B7E","\u5185\u5BB9\u5361\u7247","\u5BAB\u683C","\u65F6\u95F4\u8F74","\u5176\u5B83"],\u53CD\u9988:["\u52A8\u4F5C\u9762\u677F","\u901A\u77E5","\u5F39\u7A97","\u62BD\u5C49","\u5F15\u5BFC","\u52A0\u8F7D\u4E2D","\u6ED1\u52A8\u5355\u5143\u683C"],\u5176\u5B83:[]},\u5C0F\u7A0B\u5E8F:{\u5927\u5382\u8D44\u6E90:["Ant Design","TDesign","Arco Design","WeUi","\u5176\u5B83"],\u901A\u7528:["\u6309\u94AE","\u641C\u7D22","\u4E2A\u4EBA\u4E2D\u5FC3","\u652F\u4ED8","\u767B\u5F55","\u5206\u4EAB"],\u5BFC\u822A:["\u62BD\u5C49","\u7D22\u5F15","\u5BFC\u822A\u6761","\u4FA7\u8FB9\u680F","\u6B65\u9AA4\u6761","\u6807\u7B7E\u680F/\u5E95\u90E8\u5BFC\u822A","\u4E0B\u62C9\u83DC\u5355","\u9009\u9879\u5361","\u5176\u5B83"],\u6570\u636E\u5F55\u5165:["\u65E5\u5386","\u65F6\u95F4\u9009\u62E9\u5668","\u641C\u7D22\u6846","\u8868\u5355","\u9009\u62E9","\u8F93\u5165\u6846","\u8BC4\u5206","\u6B65\u8FDB\u5668","\u5F00\u5173","\u4E0A\u4F20"],\u6570\u636E\u5C55\u793A:["\u8F6E\u64AD","\u8868\u683C","\u5217\u8868","\u8FDB\u5EA6\u6761","\u6807\u7B7E","\u5185\u5BB9\u5361\u7247","\u5BAB\u683C","\u65F6\u95F4\u8F74","\u5176\u5B83"],\u53CD\u9988:["\u52A8\u4F5C\u9762\u677F","\u901A\u77E5","\u5F39\u7A97","\u62BD\u5C49","\u5F15\u5BFC","\u52A0\u8F7D\u4E2D","\u6ED1\u52A8\u5355\u5143\u683C"],\u5176\u5B83:[]},Web\u7F51\u7AD9:{\u5B98\u7F51\u5BFC\u822A:[],Banner:[],\u5185\u5BB9\u533A:[],\u7279\u5F81\u533A:[],\u5B9A\u4EF7\u533A:[],\u56E2\u961F\u4ECB\u7ECD:[],\u9875\u811A:[]},\u53EF\u89C6\u5316\u5927\u5C4F:{\u6846\u67B6\u80CC\u666F:[],\u6807\u9898\u6837\u5F0F:[],\u6309\u94AE:[],\u7A97\u53E3\u6846:[],\u5F39\u7A97:[],\u56FE\u8868:[],\u6307\u6807:[],\u5730\u56FE:[],\u4FE1\u606F\u6D41:[]},HMI:{},\u6D3B\u52A8:{},\u5E73\u677F\u7AEF:{},\u667A\u80FD\u7535\u89C6:{},\u624B\u8868:{},\u5E7B\u706F\u7247:{},\u5176\u4ED6:{}},rl=Object.keys(Il),Ol=t=>{const{platform:n,plabel:s,clabel:c,plabelList:d,clabelList:w,changePlatform:P,changePlabel:F,changeClabel:X}=t,ee=(0,r.useCallback)(ye=>{P(ye),F(""),X("")},[X,F,P]),pe=(0,r.useCallback)(ye=>{F(ye),X("")},[X,F]);return(0,i.jsxs)(za,{children:[(0,i.jsx)(Lr,{option:n,placeholder:I18N.dModals.combo_upload.select_platform,optionList:rl,changeOption:ee}),(0,i.jsx)(Lr,{option:s,placeholder:I18N.dModals.combo_upload.select_plabel,optionList:d,changeOption:pe}),(0,i.jsx)(Lr,{option:c,placeholder:I18N.dModals.combo_upload.select_clabel,optionList:w,changeOption:X}),(0,i.jsx)(qa,{})]})},Ur=(0,r.memo)(Ol),Ll=u.Ay.div.withConfig({displayName:"styles__StyledCoverUploadSection",componentId:"sc-u0tbq0-0"})([".cover-upload-box{display:flex;.cover-upload-action{width:133px;height:100px;background:",";border:1px dashed ",";border-radius:6px;display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer;position:relative;overflow:hidden;&.error{animation:border-blink 1s;animation-iteration-count:3;}&:hover{background-color:",";}&.drag{background-color:",";}p{display:flex;padding:0;margin:0;}.edit-cover{position:absolute;left:0;top:0;width:100%;height:100%;background:",";display:none;opacity:0;flex-direction:column;justify-content:center;align-items:center;transition:opacity 0.2s;.cover-edit-icon{width:24px;height:auto;path{&:nth-child(1){fill:",";}&:nth-child(2){stroke:",";}}}.edit-tip{color:",";margin-top:8px;font-weight:500;font-size:14px;line-height:20px;}}.upload-cover{display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer;.cover-uploader-icon{width:24px;height:auto;path{&:nth-child(1){fill:",";}&:nth-child(2){stroke:",";}}}.upload-tip{margin-top:5px;color:",";font-weight:400;font-size:12px;line-height:24px;}}&.has-cover{border-style:solid;.cover-uploader-icon{display:none;}.upload-tip{display:none;}.edit-cover{display:flex;}.upload-cover{display:none;}&:hover{.edit-cover{opacity:1;}}&.drag{.edit-cover{opacity:1;}}}.cover-uploader{display:none;}}.cover-upload-help{display:flex;flex-direction:column;justify-content:space-between;.template{margin-left:16px;.description{font-weight:400;font-size:12px;line-height:30px;color:",";}.template-box{display:flex;.box{width:93px;height:70px;border-radius:6px;&:not(:last-child){margin-right:14px;}cursor:pointer;position:relative;overflow:hidden;.box-cover{position:absolute;left:0;top:0;width:100%;height:100%;background:",";opacity:0;transition:opacity 0.2s;}&:hover{.box-cover{opacity:1;}}}}}}}.cover-tip{margin-top:10px;display:flex;align-items:center;.exclamation-mark-icon{width:14px;height:auto;}label{margin-left:4px;color:",";font-weight:400;font-size:12px;line-height:17px;}}"],t=>t.theme.color_bg_white,t=>t.theme.color_bg_border_02,t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_bg_mask,t=>t.theme.color_proto,t=>t.theme.color_text_btn,t=>t.theme.color_text_btn,t=>t.theme.color_text_disabled01,t=>t.theme.color_text_btn,t=>t.theme.color_text_L2,t=>t.theme.color_text_L2,t=>t.theme.color_bg_mask,t=>t.theme.color_text_L2),tp="/mb-proto2/images/modal/combo_upload/cover_sample_left.webp",kl="/mb-proto2/images/modal/combo_upload/cover_sample_right.webp",cc="/proto/experience/mtm34dolox4q5h7e?mode=cover_design",Nd="/proto/experience/mtm34dr7t7gvowo0?mode=cover_design",bd=t=>{const{cover:n,onFileInput:s,onCoverSrc:c}=t,[d,w]=r.useState(!1),P=Ae=>{var we;let{fileInput:_e,isDrag:Fe}=Ae;const Ye=_e==null||(we=_e.files)==null?void 0:we[0];if(!Ye)return;if(Fe&&!["image/png","image/jpeg","image/jpg"].includes(Ye.type)){MB.notice({text:I18N.dModals.combo_upload.cover_type_error,type:"error"}),s({value:""});return}const He=2*1024*1024;if(Ye.size>He){MB.notice({text:I18N.dModals.combo_upload.cover_size,type:"error"}),s({value:""});return}s(_e);const tt=new FileReader;tt.addEventListener("load",()=>{c(tt.result)}),tt.readAsDataURL(Ye)},F=Ae=>P({fileInput:Ae.target,isDrag:!1}),X=Ae=>P({fileInput:{files:Ae},isDrag:!0}),ee=Ae=>{Ae.preventDefault(),Ae.stopPropagation();const we=Ae.type;we==="dragenter"&&w(!0),we==="dragleave"&&w(!1),we==="dragover"&&!d&&w(!0)},pe=Ae=>{Ae.preventDefault(),Ae.stopPropagation();const _e=Ae.dataTransfer.files;d&&(X(_e),w(!1))},ye=Ae=>(0,i.jsxs)("svg",{className:Ae,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:[(0,i.jsx)("path",{fill:"#1684FC",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"}),(0,i.jsx)("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 8v8M8 12h8"})]});return(0,i.jsxs)(Ll,{children:[(0,i.jsxs)("div",{className:"cover-upload-box",children:[(0,i.jsxs)("label",{className:f()(n?"has-cover cover-upload-action":"cover-upload-action",d&&"drag"),style:n?{background:"url("+n+") no-repeat center/cover"}:void 0,htmlFor:"cover-uploader",onDrop:pe,onDragOver:ee,onDragEnter:ee,onDragLeave:ee,children:[(0,i.jsxs)("div",{className:"edit-cover",children:[ye("cover-edit-icon"),(0,i.jsx)("p",{className:"edit-tip",children:I18N.dModals.combo_upload.change_cover})]}),(0,i.jsxs)("div",{className:"upload-cover",children:[ye("cover-uploader-icon"),(0,i.jsx)("p",{className:"upload-tip",children:I18N.dModals.combo_upload.upload_cover})]}),(0,i.jsx)("input",{type:"file",className:"cover-uploader",id:"cover-uploader",accept:"image/png, image/jpeg, image/jpg",onChange:F})]}),(0,i.jsx)("div",{className:"cover-upload-help",children:(0,i.jsxs)("div",{className:"template",children:[(0,i.jsx)("div",{className:"description",children:(0,i.jsx)("label",{children:I18N.dModals.combo_upload.upload_cover_desc})}),(0,i.jsxs)("div",{className:"template-box",children:[(0,i.jsx)("div",{className:"box",style:{background:"url("+tp+") no-repeat center/cover"},children:(0,i.jsx)("a",{className:"box-cover",rel:"noopener noreferrer",target:"_blank",href:cc})}),(0,i.jsx)("div",{className:"box",style:{background:"url("+kl+") no-repeat center/cover"},children:(0,i.jsx)("a",{className:"box-cover",rel:"noopener noreferrer",target:"_blank",href:Nd})})]})]})})]}),(0,i.jsx)("div",{className:"cover-tip",children:(0,i.jsx)("label",{children:I18N.dModals.combo_upload.upload_cover_tip})})]})},B0=(0,r.memo)(bd);var kp=e(8357),_h=e.n(kp);const Dl=(0,u.Ay)(Vn.H).withConfig({displayName:"styles__StyledModal",componentId:"sc-1d376uz-0"})([".modal-content{.content-container{display:flex;justify-content:space-between;.preview-container{flex-basis:260px;.title{font-size:16px;line-height:22px;font-weight:500;color:",";margin-bottom:14px;}.template-box{display:block;position:relative;top:0;width:270px;padding-bottom:12px;border-radius:4px;overflow:hidden;.template-cover{position:relative;height:200px;overflow:hidden;border-radius:6px;border:1px solid ",";.template-cover-image{width:100%;height:auto;}}.template-info{padding-top:12px;padding-left:12px;.template-title{color:",";font-size:14px;line-height:20px;font-weight:600;margin-bottom:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.flex-row{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;}.view-and-favorite{margin-bottom:10px;.view-icon,.used-icon,.liked-icon{path{fill:",";}}.view-icon{width:14px;height:10px;margin-right:3px;}.used-icon{width:auto;height:10px;margin-right:3px;}.liked-icon{width:auto;height:12px;margin-right:3px;transform:translateY(-1px);}.view-count,.used-count,.liked-count{color:",";font-size:12px;font-weight:400;}.view-count,.used-count{margin-right:8px;}}.author-info{.avatar-container{width:20px;height:20px;border-radius:50%;overflow:hidden;.avatar{width:100%;height:100%;}}.author-name{margin-left:8px;font-size:12px;color:",";font-weight:400;}}}}.tip-title{margin-top:30px;color:",";font-weight:500;font-size:14px;line-height:20px;}.tips{color:",";font-size:12px;font-weight:400;line-height:21px;margin-top:8px;}}.crop-container{flex-basis:470px;.title{font-size:16px;line-height:22px;font-weight:500;color:",';margin-bottom:14px;}.crop-area{height:352px;display:flex;justify-content:center;align-items:center;position:relative;background:url("/mb-proto2/images/modal/combo_upload/square_component_background.png") repeat 0 0/100%;.background{background:',";position:absolute;width:100%;height:100%;}}.re-upload{width:110px;height:32px;margin-top:14px;border:1px solid ",";background:",";display:flex;justify-content:center;align-items:center;color:",";font-size:14px;font-weight:500;cursor:pointer;border-radius:6px;&:hover{background:",";}&:active{background-color:",";}}.re-upload-icon{width:14px;height:auto;margin-right:10px;path{fill:",";}}}}}"],t=>t.theme.color_text_L1,t=>t.theme.color_bg_border_01,t=>t.theme.color_text_L2,t=>t.theme.color_text_L3,t=>t.theme.color_text_L2,t=>t.theme.color_text_L2,t=>t.theme.color_text_L1,t=>t.theme.color_text_L2,t=>t.theme.color_text_L1,t=>t.theme.color_bg_mask,t=>t.theme.color_bg_border_02,t=>t.theme.color_bg_white,t=>t.theme.color_text_L1,t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_text_L1),_p=(0,u.DU)(["#IBOT_MODAL_ROOT .new-model-portal .crop-model.workspace-modal{width:800px;}"]),Hd=532/400;class Ph extends r.PureComponent{constructor(){super(...arguments),(0,p.A)(this,"state",{crop:{aspect:Hd},canvasDataURL:""}),(0,p.A)(this,"imageRef",null),(0,p.A)(this,"handleImageLoaded",n=>{this.imageRef=n;const{width:s,height:c}=n;return s/c<Hd?this.setState({crop:{unit:"%",aspect:Hd,width:100}}):this.setState({crop:{unit:"%",aspect:Hd,height:100}}),!1}),(0,p.A)(this,"getFileType",()=>{const{fileInput:{files:[{type:n}]}}=this.props;return n.split("/").pop()}),(0,p.A)(this,"onConfirmModel",()=>this.props.onCover(this.state.canvasDataURL)),(0,p.A)(this,"onCropComplete",n=>{if(this.imageRef&&n.width&&n.height){const s=this.getCroppedImg(this.imageRef,n);this.setState({canvasDataURL:s})}}),(0,p.A)(this,"handleCloseCropModal",()=>{const{onCoverSrc:n,onFileInput:s}=this.props;n(""),s({value:""}),this.props.fileInput.value=""})}getCroppedImg(n,s){const c=document.createElement("canvas"),d=n.naturalWidth/n.width,w=n.naturalHeight/n.height;return c.width=s.width*d,c.height=s.height*w,c.getContext("2d").drawImage(n,s.x*d,s.y*w,s.width*d,s.height*w,0,0,s.width*d,s.height*w),c.toDataURL("image/"+this.getFileType())}render(){const{originalSrc:n,fileInput:s}=this.props,{crop:c,canvasDataURL:d}=this.state;return(0,i.jsxs)(Dl,{className:"crop-model",isOpen:!!n,title:I18N.dModals.combo_upload.upload_cover,onConfirm:this.onConfirmModel,cancelText:I18N.dModule.cancel,confirmText:I18N.dModule.confirm,onCancel:()=>null,onClose:this.handleCloseCropModal,canCloseOnClickMask:!1,children:[(0,i.jsxs)("div",{className:"content-container",children:[(0,i.jsxs)("div",{className:"preview-container",children:[(0,i.jsx)("h4",{className:"title",children:I18N.dModals.combo_upload.cover_preview}),(0,i.jsxs)("div",{className:"template-box",children:[(0,i.jsx)("div",{className:"template-cover",children:d&&(0,i.jsx)("img",{className:"template-cover-image",src:d})}),(0,i.jsxs)("div",{className:"template-info",children:[(0,i.jsx)("h3",{className:"template-title",children:I18N.dModals.combo_upload.here_is_mkt_title}),(0,i.jsxs)("div",{className:"view-and-favorite flex-row",children:[(0,i.jsx)("svg",{className:"view-icon",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10",fill:"none",children:(0,i.jsx)("path",{d:"M7 0c4.095 0 7 3.764 7 5 0 1.236-2.804 5-7 5S.011 6.286 0 5c-.011-1.286 2.905-5 7-5zm0 2a3 3 0 100 6 3 3 0 000-6zm0 1a2 2 0 01.59.089A1 1 0 108.912 4.41 2 2 0 117 3z",fill:"#7D8B94",fillRule:"evenodd"})}),(0,i.jsx)("span",{className:"view-count",children:1234}),(0,i.jsx)("svg",{className:"used-icon",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"11",fill:"none",children:(0,i.jsx)("path",{d:"M1 0h10l1 2v8a1 1 0 01-1 1H1a1 1 0 01-1-1V2l1-2zm6.125 7V4H5v3H3.125l2.5 2.5L9 7H7.125zm3.393-5L10 1H2.024l-.72.998L10.519 2z",fill:"#7D8B94",fillRule:"evenodd"})}),(0,i.jsx)("span",{className:"used-count",children:1234}),(0,i.jsx)("svg",{className:"liked-icon",xmlns:"http://www.w3.org/2000/svg",width:"11",height:"12",fill:"none",children:(0,i.jsx)("path",{d:"M11 5.683c0-.698-.419-1.283-.984-1.45a.17.17 0 00-.042-.003H7.088c-.01 0-.017-.057-.015-.067a6.363 6.363 0 00.205-2.662l-.001-.003C7.277.67 6.69 0 5.966 0c-.672 0-1.224.575-1.303 1.317-.266 2.51-1.957 3.26-2.337 3.398h-.007c-.023-.004-.046 0-.07 0H.476c-.263 0-.475.24-.475.539v6.226c0 .3.212.518.475.518h8.176c.047.005.094 0 .14 0 .866 0 1.165-.815 1.165-.815.095-.207.986-5.064.986-5.064.017-.065.03-.133.039-.201l.004-.022v-.002c.009-.069.015-.14.015-.211M2 11H1V6h1v5z",fill:"#7D8B94",fillRule:"evenodd"})}),(0,i.jsx)("span",{className:"liked-count",children:1234}),(0,i.jsx)("span",{className:"liked-count",children:1234})]}),(0,i.jsxs)("div",{className:"author-info flex-row",children:[(0,i.jsx)("div",{className:"avatar-container",children:(0,i.jsx)("img",{src:"/mb-proto2/images/avatar.png",className:"avatar",alt:""})}),(0,i.jsx)("div",{className:"author-name",children:I18N.dModals.combo_upload.fake_author_name})]})]})]}),(0,i.jsx)("p",{className:"tip-title",children:I18N.dModals.combo_upload.cover_regulation}),(0,i.jsx)("p",{className:"tips",dangerouslySetInnerHTML:{__html:I18N.dModals.combo_upload.upload_cover_tip_html}})]}),(0,i.jsxs)("div",{className:"crop-container",children:[(0,i.jsx)("h4",{className:"title",children:I18N.dModals.combo_upload.crop_cover}),(0,i.jsxs)("div",{className:"crop-area",children:[(0,i.jsx)("div",{className:"background"}),(0,i.jsx)(_h(),{className:"cropper",src:n,crop:c,onChange:w=>this.setState({crop:w}),onComplete:this.onCropComplete,onImageLoaded:this.handleImageLoaded,keepSelection:!0,imageStyle:{maxWidth:"100%",maxHeight:"342px"}})]}),typeof s.click=="function"&&(0,i.jsxs)("div",{className:"re-upload",children:[(0,i.jsx)("svg",{className:"re-upload-icon",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",fill:"none",children:(0,i.jsx)("path",{d:"M2.424 1.703a7 7 0 0110.309 9.315L10.5 7h2.1a5.6 5.6 0 00-9.478-4.04l-.698-1.257zm9.152 10.594A7 7 0 011.267 2.982L3.5 7H1.4a5.6 5.6 0 009.478 4.04l.698 1.257z",fill:"#5B6B73",fillRule:"nonzero"})}),(0,i.jsx)("span",{className:"button-text",onClick:()=>s.click(),children:I18N.dModals.combo_upload.upload_reload})]})]})]}),(0,i.jsx)(_p,{})]})}}const Kd=Ph;var Pp=e(43727);const iu=(0,u.Ay)(Vn.H).withConfig({displayName:"styles__StyledComboUploadModal",componentId:"sc-1lk5hqh-0"})(["height:598px;> .content{height:492px;}.modal-content{display:flex;flex-direction:column;align-items:start;row-gap:20px;height:100%;position:relative;.item{display:flex;justify-content:center;&.paid-config,&.amounts{> span{line-height:22px;}> .content{display:flex;align-items:center;.selector{display:flex;align-items:center;input{width:14px;height:14px;margin-top:1px;appearance:none;border-radius:50%;border:1px solid ",";transition:0.2s all linear;&:checked{border:4px solid ",";background-color:",";}}label{font-size:14px;font-weight:400;padding-left:10px;color:",";}input:checked + label{color:",";}}}}&.paid-config > .content{column-gap:33px;}&.amounts{> .content{column-gap:38px;}}> span,> input,> .textarea-wrapper > textarea{color:",";}> input,> .textarea-wrapper > textarea{&::placeholder{color:",";}}> span{width:84px;font-size:14px;font-weight:500;line-height:32px;}> input{padding:8px;width:356px;height:32px;border-radius:6px;border:1px solid ",";&:focus{border:1px solid ",";}}> .textarea-wrapper{position:relative;textarea{position:relative;z-index:1;width:352px;height:64px;padding:8px 0 8px 9px;resize:none;outline:none;background:none;border:none;font-size:14px;line-height:24px;font-weight:400;&::-webkit-scrollbar-track{margin:8px 0;}&:focus + .border{border:1px solid ",";}}.border{position:absolute;top:0;left:0;width:356px;height:64px;border-radius:6px;border:1px solid ",";}}}.tips{background-color:",";color:",";border-radius:6px;width:100%;height:32px;font-size:12px;display:flex;justify-content:center;align-items:center;position:absolute;bottom:-4px;}}footer{padding:0 20px 24px;display:flex;align-items:center;.footer-agreement{display:flex;align-items:center;flex:1;font-size:12px;font-weight:500;> .check > .Check-label{margin-left:8px;}> a{color:",";}}}&.upload-success > .content{display:flex;align-items:center;justify-content:center;.modal-content{align-items:center;justify-content:center;row-gap:0;svg{margin-bottom:22px;}p{font:14px;font-weight:400;line-height:20px;a{color:",";text-decoration:underline;}}}}"],t=>t.theme.color_text_disabled01,t=>t.theme.color_proto,t=>t.theme.color_text_btn,t=>t.theme.color_text_L2,t=>t.theme.color_text_L1,t=>t.theme.color_text_L1,t=>t.theme.color_text_L2,t=>t.theme.color_bg_border_02,t=>t.theme.color_proto,t=>t.theme.color_proto,t=>t.theme.color_bg_border_02,t=>t.theme.color_bg_card,t=>t.theme.color_text_L2,t=>t.theme.color_text_link_normal,t=>t.theme.color_text_link_normal);var au=e(63967);const a1=async()=>{try{const{keywords:{combo_group:{labels:t}}}=await(0,au.DE)("/api/community/v1/community/labels"),n={},s={};return t.forEach(c=>{let{plabel:d,clabels:w}=c;const{label_id:P,name:F}=d;n[F]=P,s[F]=w.reduce((X,ee)=>{let{label_id:pe,name:ye}=ee;return Object.assign(X,{[ye]:pe})},{})}),{plabelsMap:n,plabel2clabels:s}}catch(t){console.error(t)}},ru=t=>{let{platform:n,plabel:s,plabelsMap:c,plabel2clabels:d}=t;const w=Object.keys(c),P=Object.keys(Il[n]),F=w.filter(ye=>P.includes(ye)),X=Il[n][s];if(!s||!X)return{availablePlabels:F,availableClabels:[]};const pe=Object.keys(d[s]).filter(ye=>X.includes(ye));return{availablePlabels:F,availableClabels:pe}};var Zh=e(45043),lu=e(2937),nh=e(23848);const Xh=(t,n)=>{const s=t.get(n);if(s===void 0)return;const c=t.get(s.sup);if(c===void 0)throw new Error("missing sup: "+s.sup+" for: "+s.key);t.set(s.sup,{...c,sub:(0,lu.Uj)(c.sub,n)}),t.delete(n)},cu=t=>{var n,s,c,d;const w=new Set,P=pe=>(0,Ws.iX)(pe,ye=>(0,nh.w7)(t.get(ye).attr,(Ae,we)=>w.add(Ae)),t);P(ht.$k);const F=[...((n=t.get(ht.JC))==null?void 0:n.sub)||[],...((s=t.get(ht.W4))==null?void 0:s.sub)||[],...((c=t.get(ht.fW))==null?void 0:c.sub)||[],...((d=t.get(ht.YZ))==null?void 0:d.sub)||[]];{const pe=new Set;let ye;do{ye=!1;for(const Ae of F){if(pe.has(Ae)||!w.has(Ae))continue;pe.add(Ae);const we=w.size;P(Ae),we<w.size&&(ye=!0)}}while(ye)}for(const pe of[...((X=t.get(Ws.Ri))==null?void 0:X.sub)||[],...((ee=t.get(ht.Ex))==null?void 0:ee.sub)||[]]){var X,ee;Xh(t,pe)}for(const pe of F)!w.has(pe)&&Xh(t,pe)},r1=t=>{const{isOpen:n,cgCid:s,projectUpperCid:c,teamCid:d,comboName:w,onClose:P}=t,[F,X]=(0,r.useState)(1),[ee,pe]=(0,r.useState)({}),[ye,Ae]=(0,r.useState)({}),[we,_e]=(0,r.useState)([]),[Fe,Ye]=(0,r.useState)([]),[He,tt]=(0,r.useState)(""),[It,Nt]=(0,r.useState)(null),[Lt,Xt]=(0,r.useState)(""),[_o,co]=(0,r.useState)(w),[yn,An]=(0,r.useState)(""),[In,wn]=(0,r.useState)(""),[_n,Jn]=(0,r.useState)(""),[rs,as]=(0,r.useState)(""),[mi,ha]=(0,r.useState)(Pp.W.Everyone),[Ca,ms]=(0,r.useState)(0),[qn,si]=(0,r.useState)(!1),Hi=(0,r.useMemo)(()=>mi&&mi!==Pp.W.Everyone,[mi]);(0,r.useEffect)(()=>{(async()=>{const{plabelsMap:wa,plabel2clabels:Ea}=await a1();pe(wa),Ae(Ea)})()},[]),(0,r.useEffect)(()=>{if(!yn)return;const{availablePlabels:Ui,availableClabels:wa}=ru({platform:yn,plabel:In,plabelsMap:ee,plabel2clabels:ye});_e(Ui),Ye(wa)},[yn,In,ee,ye]);const ra=Ui=>{ha(Ui),Hi&&ms(0)},Ta=(0,r.useCallback)(()=>(yn?!we||we.length===0?!1:In?!Fe||Fe.length===0?!1:!_n:!0:!0)||!_o||!rs||!Lt||!mi||Hi&&Ca===0||!qn,[Ca,_n,Fe,Lt,rs,qn,Hi,In,we,yn,mi,_o]),Pi=(0,r.useCallback)(async()=>{var Ui;const wa=In&&ee[In]?ee[In]:"",Ba=(_n&&(Ui=ye[In])!=null&&Ui[_n]?ye[In][_n]:"")||wa,lr=Ba?[Ba]:[],Ya={title:_o,description:rs,cover:Lt,platform:Nl[yn],label_ids:lr,policy:mi,amount_in_cents:Ca,source_upper_cid:c,project_type:"proto2",category:"combo_group",preview_mode:"only_preview"};if(Lt&&Lt.length>512){const zr=await(await fetch(Lt)).blob(),{tbToken:dl}=await(await fetch("/flatkiq/tempblob/save",{method:"POST",body:zr})).json();Ya.cover="tempblob:"+zr.type+";token,"+dl}const cr=userSdkStore.__devFlatStore().getFlatTree().fork();{for(const Er of cr.get(ht.$k).sub)Er!==s&&Xh(cr,Er);cr.get(s).sup=ht.$k,cr.get(ht.$k).sub=[s];const zr=[],dl=[];(0,Ws.yc)(cr,s,Er=>{if(Er.attr.B!==ht.Ni)return Ws.NU;Er.attr.aF===(0,Zh.rK)(!1)?zr.push(Er.key):dl.push(Er.key)});for(const Er of dl.reverse())Xh(cr,Er);for(const Er of zr)cr.get(Er).sup=s;cr.get(s).sub=zr,cu(cr)}await(0,je.l)(cr,d,{prevUpperCid:c,railsExtra:Ya}),X(2),(0,Lc.GK)({comboName:w,platform:yn,plabel:In,clabel:_n,isPaid:Hi,amounts:Ca})},[Ca,s,_n,w,Lt,rs,Hi,In,ye,ee,yn,mi,c,d,_o]),Bi=(0,r.useCallback)(()=>(0,i.jsxs)("div",{className:"footer-agreement",children:[(0,i.jsx)(Ei.A,{className:"check",isChecked:qn,onChange:()=>si(!qn),label:I18N.dModals.combo_upload.agreement_1}),(0,i.jsx)("a",{rel:"noopener noreferrer",target:"_blank",href:"/hc/articles/204",children:I18N.dModals.combo_upload.agreement_2})]}),[qn]),Ji=()=>{var Ui;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",fill:"none",children:[(0,i.jsx)("path",{fill:"#fff",d:"M46.12 22.68a3 3 0 0 1 0 4.243l-16 16a3 3 0 0 1-4.242 0l-8-8a3 3 0 0 1 4.242-4.243L28 36.56 41.877 22.68a3 3 0 0 1 4.242 0Z"}),(0,i.jsx)("path",{fill:"#39BF50",fillRule:"evenodd",d:"M0 32C0 14.327 14.327 0 32 0c17.673 0 32 14.327 32 32 0 17.673-14.327 32-32 32C14.327 64 0 49.673 0 32Zm46.12-5.077a3 3 0 0 0-4.242-4.243L27.999 36.56l-5.878-5.879a3 3 0 0 0-4.243 4.243l8 8a3 3 0 0 0 4.242 0l16-16Z",clipRule:"evenodd"})]}),(0,i.jsx)("p",{children:I18N.dModals.combo_upload.upload_success_1}),(0,i.jsxs)("p",{children:[(0,i.jsx)("a",{rel:"noopener noreferrer",target:"_blank",href:"/community/author/"+((Ui=MB)==null||(Ui=Ui.user)==null?void 0:Ui.cid),children:I18N.dModals.combo_upload.upload_success_2}),I18N.dModals.combo_upload.upload_success_3]})]})};return(0,i.jsxs)(i.Fragment,{children:[He&&It&&(0,i.jsx)(Kd,{originalSrc:He,fileInput:It,onCover:Xt,onCoverSrc:tt,onFileInput:Nt}),(0,i.jsx)(iu,{isOpen:n,className:f()("combo-upload-modal",{"upload-success":F===2}),canCloseOnClickMask:!1,footer:F===2&&null,title:I18N.dModals.combo_upload.publish_to_mkt,confirmText:I18N.dModals.combo_upload.confirm,confirmBtnProps:{disabled:Ta(),shouldCloseOnAction:!1},canClose:!0,centered:!0,onClose:P,onConfirm:Pi,renderFooterContent:Bi,children:F===2?Ji():(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"item title",children:[(0,i.jsx)("span",{className:"name",children:I18N.dModals.combo_upload.combo_name}),(0,i.jsx)("input",{type:"text",placeholder:I18N.dModals.combo_upload.input_combo_name,value:_o,onChange:Ui=>co(Ui.target.value)})]}),(0,i.jsxs)("div",{className:"item category",children:[(0,i.jsx)("span",{className:"name",children:I18N.dModals.combo_upload.combo_categories}),(0,i.jsx)(Ur,{platform:yn,plabel:In,clabel:_n,plabelList:we,clabelList:Fe,changePlatform:An,changePlabel:wn,changeClabel:Jn})]}),(0,i.jsxs)("div",{className:"item description",children:[(0,i.jsx)("span",{className:"name",children:I18N.dModals.combo_upload.combo_desc}),(0,i.jsxs)("div",{className:"textarea-wrapper",children:[(0,i.jsx)("textarea",{placeholder:I18N.dModals.combo_upload.input_combo_desc,onChange:Ui=>as(Ui.target.value)}),(0,i.jsx)("div",{className:"border"})]})]}),(0,i.jsxs)("div",{className:"item cover",children:[(0,i.jsx)("span",{className:"name",children:I18N.dModals.combo_upload.combo_cover}),(0,i.jsx)(B0,{cover:Lt,onFileInput:Nt,onCoverSrc:tt})]}),(0,i.jsxs)("div",{className:"item paid-config",children:[(0,i.jsx)("span",{className:"name",children:I18N.dModals.combo_upload.paid_mode}),(0,i.jsxs)("div",{className:"content",children:[(0,i.jsxs)("div",{className:"selector",children:[(0,i.jsx)("input",{type:"radio",id:"free",name:"paid-config",checked:mi===Pp.W.Everyone,onClick:()=>ra(Pp.W.Everyone)}),(0,i.jsx)("label",{htmlFor:"free",children:I18N.Common.free})]}),(0,i.jsxs)("div",{className:"selector",children:[(0,i.jsx)("input",{type:"radio",id:"paid",name:"paid-config",checked:mi===Pp.W.MktMemberFree,onClick:()=>ra(Pp.W.MktMemberFree)}),(0,i.jsx)("label",{htmlFor:"paid",children:I18N.dModals.combo_upload.charge})]})]})]}),Hi&&(0,i.jsxs)("div",{className:"item amounts",children:[(0,i.jsx)("span",{className:"name",children:I18N.dModals.combo_upload.amounts_opts}),(0,i.jsxs)("div",{className:"content",children:[(0,i.jsxs)("div",{className:"selector",children:[(0,i.jsx)("input",{type:"radio",id:"one",name:"amounts",onClick:()=>ms(300)}),(0,i.jsx)("label",{htmlFor:"one",children:I18N.dModals.combo_upload.amounts_opt_1})]}),(0,i.jsxs)("div",{className:"selector",children:[(0,i.jsx)("input",{type:"radio",id:"two",name:"amounts",onClick:()=>ms(680)}),(0,i.jsx)("label",{htmlFor:"two",children:I18N.dModals.combo_upload.amounts_opt_2})]}),(0,i.jsxs)("div",{className:"selector",children:[(0,i.jsx)("input",{type:"radio",id:"three",name:"amounts",onClick:()=>ms(990)}),(0,i.jsx)("label",{htmlFor:"three",children:I18N.dModals.combo_upload.amounts_opt_3})]}),(0,i.jsxs)("div",{className:"selector",children:[(0,i.jsx)("input",{type:"radio",id:"four",name:"amounts",onClick:()=>ms(1280)}),(0,i.jsx)("label",{htmlFor:"four",children:I18N.dModals.combo_upload.amounts_opt_4})]})]})]}),(0,i.jsx)("div",{className:"tips",children:"\u6E29\u99A8\u63D0\u793A\uFF1A\u8BE5\u6587\u4EF6\u5939\u4E0B\u7684\u6240\u6709\u5B50\u6587\u4EF6\u5939\u5185\u7684\u7EC4\u4EF6\u4E5F\u4F1A\u540C\u6B65\u4E0A\u4F20\u5230\u7D20\u6750\u5E7F\u573A"})]})})]})},l1=(0,r.memo)(r1);var Hc=e(19418),Nh=e(32046),c1=e(39557),L1=e(54635);const Gd=(0,u.Ay)(be.Ay).withConfig({displayName:"styles__StyledContextMenu",componentId:"sc-gazcws-0"})(["",";&.chartTableMenu{ul{width:150px;min-width:150px;border-radius:4px;.desc{margin:6px 16px;opacity:0.4;}}}"],Ci.ZJ);class du extends r.PureComponent{render(){const{isCanNotDelCol:n,isCanNotDelRow:s,isCanAddLeftCol:c,isCanAddRightCol:d,isCanAddBottomRow:w,position:P,currentSelect:{row:F},isBoxPlotType:X,handleClose:ee,handleInsertTopRow:pe,handleInsertBottomRow:ye,handleDeleteRow:Ae,handleInsertLeftCol:we,handleInsertRightCol:_e,handleDeleteCol:Fe}=this.props;return(0,i.jsxs)(Gd,{position:P,onClose:ee,className:f()("chartTableMenu"),children:[(0,i.jsx)(be.Dr,{disabled:w?X?!1:!F:!0,text:I18N.ContextMenu.table_insert_top_row.replace(" %input ",""),onClick:pe}),(0,i.jsx)(be.Dr,{disabled:!w,text:I18N.ContextMenu.table_insert_bottom_row.replace(" %input ",""),onClick:ye}),(0,i.jsx)(be.Dr,{disabled:s,text:I18N.ContextMenu.table_delete_row,onClick:Ae}),(0,i.jsx)(H.c,{}),(0,i.jsx)(be.Dr,{disabled:!c,text:I18N.ContextMenu.table_insert_left_column.replace(" %input ",""),onClick:we}),(0,i.jsx)(be.Dr,{disabled:!d,text:I18N.ContextMenu.table_insert_right_column.replace(" %input ",""),onClick:_e}),(0,i.jsx)(be.Dr,{disabled:n,text:I18N.ContextMenu.table_delete_columns,onClick:Fe}),(0,i.jsx)(H.c,{}),(0,i.jsx)("div",{className:"desc",children:I18N.SettingPanel.chartInfo.editable.menu.desc})]})}}class sh extends r.PureComponent{constructor(){super(...arguments),(0,p.A)(this,"handleVerify",(n,s)=>(""+n).replace("\u3002",".").replace(s?/[^\d.]/g:/[^\d\-.]/g,"").replace(s?"":/(\d)-+/g,s?"":"$1").replace(/\.{2,}/g,".").replace(/^\./g,"").replace(".","$#$").replace(/\./g,"").replace("$#$",".").substring(0,16)),(0,p.A)(this,"handleChange",n=>{const{isPieType:s,cell:{cellType:c}}=this.props;let w=""+n.target.value;c==="number"&&(w=this.handleVerify(w,s)),this.props.onChange(w)})}componentDidMount(){this._input.focus(),this._input.setSelectionRange(0,(""+this.props.cell.value).length)}render(){const{value:n,onKeyDown:s,onChangeHasEditingSaved:c}=this.props;return(0,i.jsx)("textarea",{ref:d=>{this._input=d},type:"text",className:"data-editor",value:n,onChange:this.handleChange,onInput:()=>c(!1),onKeyDown:s})}}var D1=e(87644),h0=e(2743),R0=e(9376),pu=e(69447),Ri=e(39541);const Np=[Ri.N.pie_chart,Ri.N.ring_chart,Ri.N.nightingale_chart],B1=[Ri.N.pie_chart,Ri.N.ring_chart,Ri.N.nightingale_chart,Ri.N.funnel_chart,Ri.N.liquid_fill_gauge_chart,Ri.N.scatter_chart,Ri.N.bubble_chart,Ri.N.word_cloud_chart,Ri.N.sankey_chart],R1=[Ri.N.pie_chart,Ri.N.ring_chart,Ri.N.nightingale_chart,Ri.N.funnel_chart,Ri.N.liquid_fill_gauge_chart,Ri.N.scatter_chart,Ri.N.bubble_chart,Ri.N.word_cloud_chart,Ri.N.sankey_chart],d1=[Ri.N.waterfall_chart,Ri.N.map_chart],p1=[Ri.N.waterfall_chart,Ri.N.map_chart],Lh=[Ri.N.scatter_chart,Ri.N.bubble_chart,Ri.N.sankey_chart],ih=[Ri.N.sunburst_chart,Ri.N.sankey_chart],$d=[Ri.N.waterfall_chart,Ri.N.sunburst_chart,Ri.N.sankey_chart],td={all:[Ri.N.bar_chart,Ri.N.horizontal_bar_chart,Ri.N.line_chart,Ri.N.line_area_chart,Ri.N.mixed_bar_line_chart,Ri.N.pie_chart,Ri.N.ring_chart,Ri.N.radar_chart,Ri.N.nightingale_chart,Ri.N.funnel_chart,Ri.N.liquid_fill_gauge_chart,Ri.N.map_chart,Ri.N.radial_polar_chart],name:[Ri.N.scatter_chart,Ri.N.bubble_chart,Ri.N.boxplot_chart],data:[Ri.N.waterfall_chart,Ri.N.sunburst_chart,Ri.N.sankey_chart]},dc={all:[Ri.N.bar_chart,Ri.N.horizontal_bar_chart,Ri.N.line_chart,Ri.N.line_area_chart,Ri.N.mixed_bar_line_chart,Ri.N.pie_chart,Ri.N.ring_chart,Ri.N.radar_chart,Ri.N.nightingale_chart,Ri.N.waterfall_chart,Ri.N.funnel_chart,Ri.N.liquid_fill_gauge_chart,Ri.N.map_chart,Ri.N.scatter_chart,Ri.N.bubble_chart,Ri.N.radial_polar_chart,Ri.N.sunburst_chart,Ri.N.word_cloud_chart,Ri.N.sankey_chart],data:[Ri.N.boxplot_chart]},j1=t=>{let{type:n,col:s,data:c}=t;return B1.includes(n)?!1:n===Ri.N.waterfall_chart?!0:n===Ri.N.sunburst_chart?c[1].length<6:n===Ri.N.boxplot_chart?s:s-1},hu=t=>{let{type:n,data:s}=t;return R1.includes(n)?!1:n===Ri.N.sunburst_chart?s[1].length<6:!0},uu=(t,n,s)=>R1.includes(t)?!1:t===Ri.N.sunburst_chart?n!==s[1].length-1&&s[1].length<6:!0,Z=t=>{let{type:n,row:s,data:c}=t;return n===Ri.N.boxplot_chart?c.length===1:c.length===2||!s||n==="mixed_bar_line_chart"&&c.length===3||p1.includes(n)},G=t=>{var n;let{type:s,col:c,data:d}=t;return s===Ri.N.waterfall_chart?d[1].length===1:Lh.includes(s)?!0:s===Ri.N.sunburst_chart?d[1].length===2||c===d[1].length-1:s===Ri.N.boxplot_chart?((n=d[0])==null?void 0:n.length)===2||!c:d[1].length===3||!(c-1)},B=t=>[Ri.N.scatter_chart,Ri.N.bubble_chart,Ri.N.sunburst_chart,Ri.N.boxplot_chart,Ri.N.sankey_chart].includes(t);var v=e(75915),I=e(95230),M=e(35524);const j=u.Ay.div.withConfig({displayName:"styles__StyledChartSettings",componentId:"sc-1xuls1j-0"})(["display:flex;flex-direction:column;height:100%;background-color:",";box-shadow:0px -2px 8px 0px rgba(39,54,78,0.06);header{position:relative;height:32px;width:100%;display:flex;align-items:center;padding:0 20px;background:",";box-shadow:0 1px 0 ",",0 -1px 0 ",";cursor:pointer;.title{color:",";font-size:12px;font-weight:500;}svg.icon{position:absolute;left:50%;path{fill:",";}}}"],t=>t.theme.color_bg_white,t=>t.theme.color_bg_canvas,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_text_L2,t=>t.theme.color_text_L2),Y=u.Ay.div.withConfig({displayName:"styles__StyledTableSetting",componentId:"sc-1xuls1j-1"})(["text-align:center;height:100%;max-width:100%;width:fit-content;margin:0 auto;.tableWrapper{display:flex;flex-direction:column;width:100%;height:100%;.actionData{cursor:pointer;border:1px solid ",";display:flex;align-items:center;justify-content:center;transition:all ease-in-out 0.1s;pointer-events:none;&.can-add-on-scroll{pointer-events:auto;}&:not(:active):hover{background:",";}&:active{background:",";}svg.plus{width:7px;height:7px;path{fill:",";}}}.tableContainer{display:flex;max-width:100%;max-height:100%;.data-grid-container{tr:last-child{td{border-bottom-color:transparent;&.yAxis{border-bottom-color:",";}&.selected{border-bottom-color:rgba(22,132,252);}}}}&.has-add-bottom-row{max-height:calc(100% - 20px);.table-data-sheet{.scroll-container{border-bottom:0;}}}.addRightCol{width:20px;height:auto;&.hide-border-bottom{border-bottom:0;}}.table-data-sheet{max-width:100%;max-height:100%;position:relative;.scroll-container{max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;border:1px solid ",";}.bar-vertical{z-index:1;.thumb-vertical{right:2px;}}.bar-horizontal{z-index:1;.thumb-horizontal{top:2px;}}&.has-add-right-col{max-width:calc(100% - 20px);.scroll-container{border-right:0;}}}}.addBottomRaw{width:100%;height:20px;&.all{width:100%;margin-left:0;}}}.data-grid-container{height:100%;width:100%;table.data-grid{tbody{tr{position:relative;td.cell{text-align:center;cursor:pointer;border:1px solid ",";width:80px;height:32px;color:",";overflow:hidden;text-overflow:ellipsis;&:not(.nodata){span.value-viewer{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:4px;width:80px;display:block;height:32px;line-height:24px;}}&.xAxis,&.yAxis{background-color:",";font-weight:500;textarea.data-editor{font-weight:500;}}&.yAxis{}&.nodata{cursor:auto;background-color:",";span.value-viewer{width:100%;}&.selected{border:1px solid ",";}}&.empty{background:transparent;border:none;width:0;}&.nodisplay{background:transparent;border:none;cursor:auto;display:block;width:10px;position:absolute;left:0;&.selected{border:none;}}&.disabled{color:",';}&.colorComponent{width:10px;display:block;border:none;height:32px;position:absolute;[type="color-btn"]{.thumbnail-wrapper{width:10px;height:32px;border:1px solid ',";border-radius:0;.thumbnail{border-radius:0;border:none;}&:before{border:none;}}}}&.editing,&.selected{border:1px double rgba(22,132,252);box-shadow:none;div[type=color-btn]{border:none;.thumbnail-wrapper{height:30px;}}textarea.data-editor{padding:4px;height:32px;width:100%;min-width:80px;border:none;line-height:24px;text-align:center;color:",";resize:none;outline:none;background-color:inherit;white-space:nowrap;overflow:hidden;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none !important;margin:0;}}}&.updated{&:not(.xAxis):not(.yAxis){background-color:",";}&.xAxis,&.yAxis{background-color:",";}}&:first-child{border-left-color:transparent;&.xAxis,&.nodata{border-left-color:",";}&.selected{border-left-color:rgba(22,132,252);&.nodata{border-left-color:",";}}}&:nth-child(2){&.nodata,&.yAxis{border-left-color:",";&.selected{border-left-color:rgba(22,132,252);&.nodata{border-left-color:",";}}}}&:last-child{border-right-color:transparent;&.xAxis,&.sunburst{border-right-color:",";}&.selected{border-right-color:rgba(22,132,252);}}}&:first-child{td{border-top-color:transparent;&.xAxis,&.nodata{border-top-color:",";}&.selected{border-top-color:rgba(22,132,252);&.nodata{border-top-color:",";}}}}}}}}"],t=>t.theme.color_bg_border_02,t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_text_L2,t=>t.theme.color_background_card,t=>t.theme.color_bg_border_02,t=>t.theme.color_bg_border_02,t=>t.theme.color_text_L1,t=>t.theme.color_background_card,t=>t.theme.color_background_card,t=>t.theme.color_bg_border_02,t=>t.theme.color_text_disabled01,t=>t.theme.color_bg_border_02,t=>t.theme.color_text_L1,t=>t.theme.color_bg_white,t=>t.theme.color_background_card,t=>t.theme.color_background_card,t=>t.theme.color_background_card,t=>t.theme.color_background_card,t=>t.theme.color_background_card,t=>t.theme.color_background_card,t=>t.theme.color_background_card,t=>t.theme.color_background_card),oe=u.Ay.div.withConfig({displayName:"styles__StyledScrollContainer",componentId:"sc-1xuls1j-2"})(["width:100%;height:100%;overflow:auto;scrollbar-width:none;&::-webkit-scrollbar{display:none;}border:1px solid ",";"],t=>t.theme.color_bg_line);class ie extends r.PureComponent{constructor(){super(...arguments),(0,p.A)(this,"renderColorBtn",n=>{let{index:s,isInit:c=!1}=n;const{dispatch:d,chartData:{series:w},theme:P}=this.props,F="chart_series_"+s,X=c&&w[s].color?w[s].color:(0,c1.zw)(L1.B5[P][s%L1.B5.length]);return(0,i.jsx)(h0.R_,{attr:F,color:X,onChange:(ee,pe)=>{d({type:"entry:set:chart:series:color:attr",payload:{attr:pe,color:ee}})},toolTips:I18N.SettingPanel.chartInfo.changeColor,direction:"left"})}),(0,p.A)(this,"renderMapChartColorBtn",n=>{let{index:s,isInit:c=!1}=n;const{dispatch:d,theme:w,cid:P}=this.props;if(!(w!==0))return this.renderColorBtn({index:s,isInit:c});const{mapSolidColor:X}=sdkStore.getHotItem(P).hotAttr.chartConfig,ee="chart_series_"+s;return(0,i.jsx)(h0.R_,{attr:ee,color:X,onChange:pe=>{d({type:"entry:set:chart:mapSolidColor",payload:{color:pe}})},toolTips:I18N.SettingPanel.chartInfo.changeColor,direction:"left"})}),(0,p.A)(this,"updateSeriesData",n=>{const{type:s,category:c}=this.props,d=Np.includes(s),w=ih.includes(s),P=td.data.includes(s),F=td.name.includes(s),X=s===Ri.N.sunburst_chart;return n.map((ee,pe)=>{const ye=d?ee.data.slice(0,1):ee.data,Ae=(!c||c==="normal")&&pe&&s!==Ri.N.radar_chart,we=ye.map((Fe,Ye)=>({value:Fe,className:f()({disabled:Ae},{sunburst:Ye===ye.length-1&&X}),cellType:w&&Ye!==ye.length-1?"string":"number",index:Ye})),_e=[{value:ee.name,className:"yAxis "+(Ae&&"disabled"),cellType:"string",canNotData:!0},...we];return P?we:F?_e:[{component:this.renderColorBtn({index:pe,isInit:!0}),readOnly:!0,className:"colorComponent",forceComponent:!0},..._e]}).filter(ee=>!!(ee!=null&&ee.length))}),(0,p.A)(this,"updateMapChartSeriesData",n=>{const{cid:s}=this.props,{mapAdCode:c}=sdkStore.getHotItem(s).hotAttr.chartConfig;return pu.JD.get(String(c)).map((w,P)=>[{component:this.renderMapChartColorBtn({index:P,isInit:!0}),readOnly:!0,className:"colorComponent",forceComponent:!0},{value:w,readOnly:!0,className:"yAxis"},...n[P].data.map(F=>({value:F,cellType:"number"}))])}),(0,p.A)(this,"updateXAxis",n=>n.map(s=>({value:s,className:"xAxis",cellType:"string"}))),(0,p.A)(this,"initData",()=>{const{chartData:{xAxis:n,series:s},type:c}=this.props,d=Np.includes(c),w=c===Ri.N.map_chart,P=c===Ri.N.word_cloud_chart,F=c===Ri.N.boxplot_chart,X=this.updateXAxis(n),ee=w?this.updateMapChartSeriesData(s):this.updateSeriesData(s),pe=d?X.slice(0,1):X,ye=d?ee.map(Fe=>Fe.slice(0,3)):ee,Ae=td.data.includes(c),we=td.name.includes(c),_e=Ae?pe:we||P?[{value:"",readOnly:!0,className:"nodata "+(P&&"empty")},...pe]:[{value:"",readOnly:!0,className:"nodisplay"},{value:"",readOnly:!0,className:"nodata"},...pe];return F?ye:[[..._e],...ye]}),(0,p.A)(this,"state",{data:this.initData(),isShowContextMenu:!1,position:{top:0,left:0},currentSelect:{row:0,col:0},canAddRightColOnScroll:!0,canAddBottomRowOnScroll:!0}),(0,p.A)(this,"onContextMenu",(n,s,c,d)=>{s.readOnly||this.setState({isShowContextMenu:!0,position:{left:n.clientX,top:n.clientY},currentSelect:{row:c,col:d}})}),(0,p.A)(this,"onCellsChanged",async n=>{const{data:s}=this.state,{chartData:{xAxis:c,series:d},onChangeHasEditingSaved:w,type:P}=this.props,F=JSON.parse(JSON.stringify(d)),X=JSON.parse(JSON.stringify(c)),ee=P===Ri.N.word_cloud_chart,pe=td.data.includes(P),ye=td.name.includes(P),Ae=dc.data.includes(P);let we=!1;await n.forEach(_e=>{let{row:Fe,col:Ye,value:He}=_e;const tt=He,It=pe?Ye:ye||ee?Ye-1:Ye-2,Nt=ye?Ye:Ye-1,Lt=Ae?Fe:Fe-1,Xt=pe?Ye:ye?Ye-1:Ye-2;if(!Fe&&!Ae)X[It]=tt;else if(!Nt&&!pe)F[Lt].name!==tt&&(we=!0),F[Lt].name=tt;else{const _o=tt||"";F[Lt].data[Xt]!==_o&&(we=!0),F[Lt].data[Xt]=_o}s[Fe][Ye]={...s[Fe][Ye],value:tt}}),sdkStore.combineMergeMark("echart-table-cell-change"),this.handleChangeXAxis(X),this.handleChangeSeries(F),ee&&we&&this.handleRandomRotation(F),sdkStore.combineMerge("echart-table-cell-change"),this.setState({data:s}),w(!0)}),(0,p.A)(this,"handleRandomRotation",n=>{const s=n.map(c=>({...c,rotation:(0,v.s)()}));this.handleChangeSeries(s)}),(0,p.A)(this,"handleChange",(n,s)=>{const{dispatch:c}=this.props;c({type:"entry:set:chart:chartData:attr",payload:{attr:s,value:n}})}),(0,p.A)(this,"handleChangeXAxis",async n=>{const{handleChange:s}=this;await s(n,"xAxis")}),(0,p.A)(this,"handleChangeSeries",async n=>{const{handleChange:s}=this;await s(n,"series")}),(0,p.A)(this,"getEmptyRow",n=>{const{chartData:{xAxis:s},type:c}=this.props,d=td.name.includes(c),w=c===Ri.N.word_cloud_chart,{min:P,max:F}=this.getMinMaxValueFromChartData(),X=(w?s.slice(1,2):s).map(()=>({value:this.getRandomValue(P,F,c)})),ee=[{value:n===1?""+I18N.SettingPanel.chartInfo.editable.data:ENV.IS_WONDER_SHARE?I18N.SettingPanel.chartInfo.editable.data+" "+n:""+I18N.SettingPanel.chartInfo.editable.data+n,className:"yAxis"},...X];return d?ee:[{component:this.renderColorBtn({index:n}),readOnly:!0,className:"colorComponent",forceComponent:!0},...ee]}),(0,p.A)(this,"getMinMaxValueFromChartData",()=>{const{chartData:{series:n},type:s}=this.props,c=ih.includes(s),d=n.map(F=>{let{data:X}=F;return(c?X.slice(X.length-1):X).map(pe=>Math.round(Number(pe)))}).flat(1/0),w=Math.min(...d),P=Math.max(...d);return{min:w,max:P}}),(0,p.A)(this,"getRandomValue",(n,s,c)=>{if(c===Ri.N.liquid_fill_gauge_chart){const d=Math.min(n,1),w=Math.min(s,1);return(Math.random()*(w-d)+d).toFixed(1)}return Math.round(Math.random()*(s-n))+n}),(0,p.A)(this,"onInsertRow",async n=>{var s;const{chartData:{series:c},type:d}=this.props,{currentSelect:{row:w},data:P}=this.state,F=td.name.includes(d),X=d===Ri.N.boxplot_chart,ee=d===Ri.N.word_cloud_chart,pe=n==="top"?w:w+1,ye=n==="top"?w:w+1,Ae=this.getEmptyRow(ye);P.splice(pe,0,Ae);const _e=Np.includes(d)?P.map(It=>It.slice(0,3)):P;this.setState({data:_e});const Fe=JSON.parse(JSON.stringify(c)),Ye=ee?{rotation:(0,v.s)()}:{},He=X?ye:ye-1,tt=X?{color:(s=c[0])==null?void 0:s.color}:{};Fe.splice(He,0,{data:Ae.slice(F?1:2).map(It=>It.value),name:Ae[F?0:1].value,type:c[c.length-1].type,...tt,...Ye}),await this.handleChangeSeries(Fe)}),(0,p.A)(this,"onDeleteRow",async()=>{const{chartData:n,type:s}=this.props,{currentSelect:{row:c},data:d}=this.state,{series:w}=n,P=JSON.parse(JSON.stringify(w)),F=dc.data.includes(s);s===Ri.N.mixed_bar_line_chart&&w.length===2||d.length<=(F?1:2)||(d.splice(c,1),this.setState({data:d}),P.splice(F?c:c-1,1),await this.handleChangeSeries(P))}),(0,p.A)(this,"onInsertCol",async n=>{const{chartData:{series:s,xAxis:c},type:d}=this.props,w=td.data.includes(d),P=td.name.includes(d),F=dc.data.includes(d),X=JSON.parse(JSON.stringify(s)),ee=[...c],{currentSelect:{col:pe},data:ye}=this.state,{min:Ae,max:we}=this.getMinMaxValueFromChartData(),_e=n==="left"?pe:pe+1,Fe=w?_e:P?_e-1:_e-2,Ye=Fe?ENV.IS_WONDER_SHARE?I18N.SettingPanel.chartInfo.editable.value+" "+Fe:""+I18N.SettingPanel.chartInfo.editable.value+Fe:""+I18N.SettingPanel.chartInfo.editable.value;ye.forEach((He,tt)=>{!tt&&!F?He.splice(_e,0,{value:Ye,className:"xAxis",cellType:"string"}):He!=null&&He.length&&He.splice(_e,0,{value:this.getRandomValue(Ae,we,d),cellType:"number"})}),this.setState({data:ye}),ee.splice(Fe,0,Ye),await this.handleChangeXAxis(ee),X.forEach((He,tt)=>{var It;if((It=He.data)!=null&&It.length){const Nt=F?tt%(ye.length-1):tt%(ye.length-1)+1;He.data.splice(Fe,0,ye[Nt][_e].value)}}),await this.handleChangeSeries(X)}),(0,p.A)(this,"onDeleteCol",async()=>{const{chartData:{series:n,xAxis:s},type:c}=this.props,d=td.data.includes(c),w=td.name.includes(c),P=dc.data.includes(c),F=JSON.parse(JSON.stringify(n)),X=[...s],{currentSelect:{col:ee},data:pe}=this.state,ye=d?1:w?2:3;if(pe[P?0:1].length<=ye)return;pe.map(_e=>_e.splice(ee,1)),this.setState({data:pe});const we=d?ee:w?ee-1:ee-2;X.splice(we,1),await this.handleChangeXAxis(X),F.map(_e=>_e.data.splice(we,1)),await this.handleChangeSeries(F)}),(0,p.A)(this,"onCloseMenu",()=>this.setState({isShowContextMenu:!1})),(0,p.A)(this,"onClickRightCol",async()=>{const{chartData:{xAxis:n},type:s}=this.props,c=td.data.includes(s),d=td.name.includes(s),w=s===Ri.N.sunburst_chart,P=n.length,F=c?w?P-2:P-1:d?P:P+1;await this.setState({currentSelect:{row:1,col:F}}),await this.onInsertCol("right"),this.handleScrollRight()}),(0,p.A)(this,"onClickBottomRow",async()=>{const{chartData:{series:n}}=this.props;await this.setState({currentSelect:{row:n.length,col:2}}),await this.onInsertRow("bottom"),this.handleScrollBottom()}),(0,p.A)(this,"handleScrollBottom",()=>{const n=document.querySelector(".table-data-sheet .scroll-container");if(!n)return;const s=n.offsetHeight,c=n.scrollHeight;c!==s&&(0,Gt.VG)(n,c-s,200)}),(0,p.A)(this,"handleScrollRight",()=>{const n=document.querySelector(".table-data-sheet .scroll-container");if(!n)return;const s=n.offsetWidth,c=n.scrollWidth;c!==s&&(0,Gt.VG)(n,c-s,200,"left")}),(0,p.A)(this,"customParsePaste",n=>{const{type:s}=this.props,{data:c,currentSelect:{row:d,col:w}}=this.state,P=td.data.includes(s),F=td.name.includes(s);let X=[[]];n.includes(",")&&!n.includes(" ")?X=n.split("\r\n").map(ye=>ye.split(",")):X=(0,Lo.yh)(n,(0,R0.cX)(),!1);const ee=(ye,Ae,we)=>{var _e;const Fe=ye.trim(),Ye=((_e=c[Ae])==null||(_e=_e[we])==null?void 0:_e.value)||"";return isNaN(Number(Fe))?Ye:Fe},pe=ye=>ye.replace(/\n/g,"");return X.map((ye,Ae)=>{const we=d+Ae;return ye.map((_e,Fe)=>{const Ye=w+Fe;return F?s===Ri.N.boxplot_chart?Ye!==0?ee(_e,we,Ye):pe(_e):we!==0&&Ye!==0?ee(_e,we,Ye):pe(_e):P?s===Ri.N.waterfall_chart?we!==0?ee(_e,we,Ye):pe(_e):Ye===c[1].length-1&&we!==0?ee(_e,we,Ye):pe(_e):we!==0&&Ye!==1?ee(_e,we,Ye):pe(_e)})})}),(0,p.A)(this,"handleCopy",n=>{let{event:s,dataRenderer:c,valueRenderer:d,data:w,start:P,end:F,range:X}=n;const ee=X(P.i,F.i).map(pe=>X(P.j,F.j).map(ye=>{const Ae=w[pe][ye],we=c?c(Ae,pe,ye):null;return we===""||we===null||typeof we>"u"?d(Ae,pe,ye):we}).join(" ")).join("\r\n");window.clipboardData&&window.clipboardData.setData?window.clipboardData.setData("Text",ee):s.clipboardData.setData("text/plain",ee)}),(0,p.A)(this,"onSelect",n=>{let{start:s,end:c}=n;s.i===c.i&&s.j===c.j&&this.setState({currentSelect:{row:s.i,col:s.j}})})}componentDidMount(){const n=this.initData();this.setState({data:n})}componentDidUpdate(n){if(n.category!==this.props.category||n.chartData!==this.props.chartData||n.type!==this.props.type){const{chartData:{series:s},type:c}=this.props,d=c===Ri.N.map_chart,w=c===Ri.N.boxplot_chart,P=d?this.updateMapChartSeriesData(s):this.updateSeriesData(s),F=w?P:[this.state.data[0],...P];this.setState({data:F})}}render(){const{isShowContextMenu:n,position:s,currentSelect:c,data:d,canAddRightColOnScroll:w,canAddBottomRowOnScroll:P}=this.state,{type:F,chartData:X,onChangeHasEditingSaved:ee,themeConfig:pe}=this.props,{row:ye,col:Ae}=c,we=Np.includes(F),_e=F===Ri.N.boxplot_chart,Fe=j1({type:F,col:Ae,data:d}),Ye=hu({type:F,data:d}),He=uu(F,Ae,d),tt=!d1.includes(F),It=Z({type:F,row:ye,data:d}),Nt=G({type:F,col:Ae,data:d});return(0,i.jsxs)(Y,{children:[(0,i.jsxs)("div",{className:"tableWrapper",children:[(0,i.jsxs)("div",{className:f()("tableContainer",{"has-add-bottom-row":tt}),children:[(0,i.jsx)(le,{className:f()({"has-add-right-col":Ye}),verticalDragCallback:Lt=>this.setState({canAddRightColOnScroll:!Lt}),horizontalCallback:Lt=>this.setState({canAddBottomRowOnScroll:!Lt}),children:(0,i.jsx)(Nh.Ay,{data:d,onCellsChanged:this.onCellsChanged,valueRenderer:Lt=>Lt.value,attributesRenderer:Lt=>{var Xt;return F===Ri.N.sunburst_chart&&Lt.index===((Xt=d[0])==null?void 0:Xt.length)-1?{style:{backgroundColor:pe===I.Sx.LIGHT?M.af.color_background_card.value:M.qY.color_background_card.value}}:{}},onContextMenu:this.onContextMenu,parsePaste:this.customParsePaste,onSelect:this.onSelect,handleCopy:this.handleCopy,dataEditor:Lt=>(0,i.jsx)(sh,{...Lt,isPieType:we,chartData:X,onChangeHasEditingSaved:ee})})}),Ye&&(0,i.jsx)("div",{className:f()("actionData","addRightCol",{"hide-border-bottom":tt},{"can-add-on-scroll":w}),onClick:this.onClickRightCol,children:(0,i.jsx)(Je.C,{className:"plus",name:"design/chart/edit/plus"})})]}),tt&&(0,i.jsx)("div",{className:f()("actionData","addBottomRaw",{all:B(F)},{"can-add-on-scroll":P}),onClick:this.onClickBottomRow,children:(0,i.jsx)(Je.C,{className:"plus",name:"design/chart/edit/plus"})})]}),n&&(0,i.jsx)(du,{position:s,isBoxPlotType:_e,isCanAddLeftCol:Fe,isCanAddRightCol:He,isCanNotDelCol:Nt,isCanNotDelRow:It,isCanAddBottomRow:tt,handleClose:this.onCloseMenu,handleCopy:this.onCopy,handleInsertTopRow:()=>this.onInsertRow("top"),handleInsertBottomRow:()=>this.onInsertRow("bottom"),handleDeleteRow:this.onDeleteRow,handleInsertLeftCol:()=>this.onInsertCol("left"),handleInsertRightCol:()=>this.onInsertCol("right"),handleDeleteCol:this.onDeleteCol,currentSelect:c})]})}}const le=(0,r.memo)(t=>{let{className:n,children:s,verticalDragCallback:c,horizontalCallback:d}=t;const w=r.useRef(null);return(0,i.jsxs)("div",{className:f()("table-data-sheet",n),children:[(0,i.jsx)(oe,{className:"scroll-container",ref:w,children:s}),w&&(0,i.jsx)(D1.$T,{containerRef:w,isAutoHideBar:!1,verticalOffset:4,horizontalOffset:4,verticalDragCallback:c,horizontalCallback:d})]})}),ue=(0,m.Mz)([ce.QA,A.tp,T.O4],(t,n,s)=>{const d=t.length>0&&n&&t.find(F=>F.cid===n),{chartData:w,chartConfig:P}=d;return{cid:d.cid,chartData:w,type:P.chartType,category:P.chartCategory,theme:P.chartTheme,themeConfig:s}}),Te=(0,o.Ng)(t=>ue(t))(ie),De=u.Ay.div.withConfig({displayName:"styles__StyledChartTableSettingModal",componentId:"sc-11rotjh-0"})([".single-resizer{border:0;z-index:108;pointer-events:none;.resizable-handler{z-index:108;pointer-events:auto;&.t,&.b{width:100%;left:7px;}&.l,&.r{height:100%;top:7px;}}.square{display:none;}}"]),$e=(0,u.Ay)(Rl).withConfig({displayName:"styles__StyledChartTableSettingModalContent",componentId:"sc-11rotjh-1"})(["border:",";border-radius:10px;overflow:hidden;z-index:107;background:",";display:flex;flex-direction:column;header{cursor:move;width:100%;height:50px;padding:0 20px;background:",";border-bottom:1px solid ",";display:flex;justify-content:space-between;span{font-size:16px;font-weight:500;color:",";pointer-events:none;}.close{cursor:pointer;width:24px;color:",";&:hover{color:",";}}}footer{height:37px;width:100%;text-align:center;span.desc{color:",";}}.content{padding:20px;height:calc(100% - 50px - 37px);width:100%;}"],t=>t.theme.ai_modal_border_style,t=>t.theme.color_bg_white,t=>t.theme.color_bg_white,t=>t.theme.color_bg_border_02,t=>t.theme.color_text_L1,t=>t.theme.color_text_L2,t=>t.theme.color_text_L1,t=>t.theme.color_text_L3),Qe=300,qe=1200,ut=240,Bt=800,ao=544,To=333,ko="chart_table_setting_modal";class vn extends r.PureComponent{constructor(n){super(n),(0,p.A)(this,"setContainerRef",w=>this.$containerRef=w),(0,p.A)(this,"handleMouseDown",w=>{this.$containerRef.contains(w.target)||document.querySelector(".mb-right-panel")&&document.querySelector(".mb-right-panel").contains(w.target)||document.querySelector(".item-select-border .editChartAction")&&document.querySelector(".item-select-border .editChartAction").contains(w.target)||document.querySelector(".chartTableMenu")&&(document.querySelector(".chartTableMenu").contains(w.target)||document.querySelector(".context-menu-mask").contains(w.target))||document.querySelector(".SelectMenu.chartSelectMenu")&&document.querySelector(".SelectMenu.chartSelectMenu").contains(w.target)||document.querySelector(".WorkspaceSelectMenu.border_style_select_menu")&&document.querySelector(".WorkspaceSelectMenu.border_style_select_menu").contains(w.target)||document.querySelector("[type=color-panel]")&&document.querySelector("[type=color-panel]").contains(w.target)||document.querySelector(".--mb--color-picker")&&document.querySelector(".--mb--color-picker").contains(w.target)||document.querySelector(".--mb--color-picker")&&document.querySelector(".SelectOption")||this.handleClose()}),(0,p.A)(this,"handleChangeHasEditingSaved",w=>this.setState({hasEditingSaved:w})),(0,p.A)(this,"handleMove",(w,P)=>{this.setState({left:w,top:P}),(0,We.a0)(ko+"_position",{left:w,top:P},We.qW.Object)}),(0,p.A)(this,"handleClose",()=>{const{dispatch:w}=this.props;if(!this.state.hasEditingSaved){setTimeout(()=>{w({type:"entry:chart:out:edit"})},300);return}w({type:"entry:chart:out:edit"})}),(0,p.A)(this,"handleResize",(w,P,F)=>{const{top:X,left:ee,width:pe,height:ye}=w,Ae={left:ee,top:X};let we={width:pe,height:ye};if(["tl","tr","bl","br"].includes(F)){if((pe<Qe||pe>qe)&&(ye<ut||ye>Bt))return;const _e=Math.min(Math.max(pe,Qe),qe),Fe=Math.min(Math.max(ye,ut),Bt);we={width:_e,height:Fe}}else if(pe<Qe||pe>qe||ye<ut||ye>Bt)return;this.setState({...we,...Ae}),(0,We.a0)(ko+"_position",Ae,We.qW.Object),(0,We.a0)(ko+"_size",we,We.qW.Object)}),(0,p.A)(this,"handleUpdateDragOrResizeModal",w=>{this.props.dispatch({type:"modal:update:state",payload:{isDragOrResizeModal:w}})});const s={left:(window.innerWidth-ao)/2,top:(window.innerHeight-To)/2},c=(0,We.Yt)(ko+"_position",s,We.qW.Object),d=(0,We.Yt)(ko+"_size",{width:ao,height:To},We.qW.Object);this.state={width:d.width,height:d.height,left:c.left,top:c.top,hasEditingSaved:!0}}componentWillUnmount(){this.handleUpdateDragOrResizeModal(!1)}render(){const{showChartSettings:n}=this.props,{width:s,height:c,left:d,top:w}=this.state;return n?(0,i.jsxs)(De,{ref:this.setContainerRef,children:[(0,i.jsx)(ir.A,{position:{left:d,top:w},dragContainer:"chart-table-setting-modal",onMove:this.handleMove,onMoveStart:()=>this.handleUpdateDragOrResizeModal(!0),onMoveEnd:()=>this.handleUpdateDragOrResizeModal(!1),children:(0,i.jsxs)($e,{id:"chart-table-setting-modal",style:{width:s,height:c},children:[(0,i.jsxs)("header",{type:"draggable",children:[(0,i.jsx)("span",{children:I18N.SettingPanel.chartInfo.changeChartDataOrColor}),(0,i.jsx)(Je.C,{name:"common/close",className:"close",onClick:this.handleClose})]}),(0,i.jsx)("div",{className:"content",children:(0,i.jsx)(Te,{onChangeHasEditingSaved:this.handleChangeHasEditingSaved})}),(0,i.jsx)("footer",{children:(0,i.jsx)("span",{className:"desc",children:I18N.SettingPanel.chartInfo.editable.desc1+" "+Le.V.past.join(" ")+" "+I18N.SettingPanel.chartInfo.editable.desc2})})]})}),(0,i.jsx)(Wr.A,{classname:"resizer",top:w,left:d,width:s,height:c,zoomable:"n,s,e,w,ne,nw,se,sw",rotatable:!1,rotateAngle:0,onResize:this.handleResize,onResizeStart:()=>this.handleUpdateDragOrResizeModal(!0),onResizeEnd:()=>this.handleUpdateDragOrResizeModal(!1),cursorAngle:0}),(0,i.jsx)(Hc.A,{target:document,onMouseDown:(0,Hc.t)(this.handleMouseDown,{capture:!0})})]}):null}}const Hn=(0,m.Mz)([ce.QA,A.tp],(t,n)=>({showChartSettings:t.length>0&&t.find(d=>d.cid===n)})),os=(0,o.Ng)(t=>Hn(t))(vn);var on=e(90579);const hn=(0,r.memo)(t=>{let{isOpen:n,activePageKey:s,activeCanvasKey:c,selectedTrees:d,...w}=t;const[P,F]=(0,r.useState)({activePageKey:s,activeCanvasKey:c,resetTargetCanvasScrollOffset:!0});(0,r.useEffect)(()=>{if(n&&d!=null&&d.length){const ee=d.some(Ae=>{let{key:we}=Ae;return sdkStore.locUpColdCanvasKey(we)===P.activeCanvasKey});let pe=P.activePageKey,ye=P.activeCanvasKey;ee||d.find(Ae=>{var we;let{key:_e}=Ae;const Fe=sdkStore.locUpColdCanvasKey(_e)||"";return Fe&&!((we=sdkStore.getHotItem(Fe))!=null&&we.hotAttr.asOverlay)?(pe=sdkStore.locUpRBPageKey(Fe),ye=Fe,!0):!1}),F({activePageKey:pe,activeCanvasKey:ye,resetTargetCanvasScrollOffset:!0})}},[n,d]);const X=ee=>{let{activePageKey:pe,activeCanvasKey:ye,resetTargetCanvasScrollOffset:Ae}=ee;F({activePageKey:pe,activeCanvasKey:ye,resetTargetCanvasScrollOffset:Ae})};return n&&(0,i.jsx)(Rn,{...w,...P,onActiveRunner:X})});class Rn extends r.PureComponent{constructor(n){super(n),(0,p.A)(this,"handleMove",(pe,ye)=>{this.setState({left:pe,top:ye})}),(0,p.A)(this,"handleResize",(pe,ye,Ae)=>{$r(pe,Ae,we=>{var _e;this.setState(we);const{width:Fe,height:Ye}=we;!((_e=MB)==null||(_e=_e.webpackInterface)==null)&&_e.store&&MB.webpackInterface.store.dispatch({type:"entry:preview:zoom-quick-preview",payload:{quickPreviewSize:{width:Fe,height:Ye-Jr}}})})}),(0,p.A)(this,"handleLunch",pe=>{let{activePageKey:ye,activeCanvasKey:Ae}=pe;const{onlyView:we,projectAlike:_e,dispatch:Fe}=this.props;we?(MB.switchToPreview(Ae),(0,on.bO)({currentProject:_e,source:"\u603B\u89C8\u4E0B\u5FEB\u901F\u9884\u89C8-\u5728\u6F14\u793A\u6A21\u5F0F\u6253\u5F00",preview_type:"\u6F14\u793A\u6A21\u5F0F"})):(Fe({type:"modal:update:state",payload:{previewCanvasModal:{isOpen:!1}}}),Fe({type:"entry:open:Launch",payload:{activePageKey:ye,activeCanvasKey:Ae,source:"\u7F16\u8F91\u533A\u5FEB\u901F\u9884\u89C8-\u5728\u6F14\u793A\u6A21\u5F0F\u6253\u5F00",preview_type:"\u6F14\u793A\u6A21\u5F0F"}}))}),(0,p.A)(this,"handleUpdateDragOrResizeModal",pe=>{var ye,Ae;this.props.dispatch({type:"modal:update:state",payload:{isDragOrResizeModal:pe}}),(ye=MB)!=null&&ye.runnerController&&((Ae=MB)==null||(Ae=Ae.runnerController)==null||Ae.setIsPreventEvent(pe))}),this.$portalElem=Jl();const{PreviewApp:s,runnerController:c,messageBucket:d,webpackInterface:w}=(0,br._)(pl.A);MB.previewModalActiveRunner=pe=>n.onActiveRunner(pe),this.popGlobalPreviewRelated=$l.A.tryStashGlobalPreviewRelated({runnerController:c,messageBucket:d,webpackInterface:w}),this.PreviewApp=s;const P=n.height,F=n.width,{width:X,height:ee}=Bl({width:F,height:P},{width:F,height:P});this.state={left:n.position.left,top:n.position.top,width:X,height:ee+Jr}}componentDidMount(){var n;if(!((n=MB)!=null&&(n=n.webpackInterface)!=null&&n.store))return;const{theme:s,sharing:c}=this.props;MB.webpackInterface.store.dispatch({type:"reducer:preview-toolbar:update",payload:{theme:s}}),c&&MB.webpackInterface.store.dispatch({type:"entry:preview:update:current:sharing",payload:{sharing:c}})}componentDidUpdate(n,s,c){var d;(d=MB)!=null&&(d=d.webpackInterface)!=null&&d.store&&(n.activeCanvasKey!==this.props.activeCanvasKey?MB.webpackInterface.store.dispatch({type:"entry:runner:activate:canvas",payload:{pageKey:this.props.activePageKey,canvasKey:this.props.activeCanvasKey,resetTargetCanvasScrollOffset:this.props.resetTargetCanvasScrollOffset,keepOverlayStack:!0}}):n.theme!==this.props.theme&&MB.webpackInterface.store.dispatch({type:"reducer:preview-toolbar:update",payload:{theme:this.props.theme}}))}componentWillUnmount(){this.handleUpdateDragOrResizeModal(!1),setTimeout(()=>this.popGlobalPreviewRelated(),500)}render(){var n,s;const{projectAlike:c,activePageKey:d,activeCanvasKey:w,onClose:P}=this.props,{PreviewApp:F}=this,{left:X,top:ee,width:pe,height:ye}=this.state;return!((n=MB)!=null&&(n=n.webpackInterface)!=null&&n.store)||!((s=MB)!=null&&s.runnerController)?null:(0,dr.createPortal)((0,i.jsxs)(Ic,{children:[(0,i.jsx)(ir.A,{position:{left:X,top:ee},dragContainer:"preview-canvas-modal",onMove:this.handleMove,onMoveStart:()=>this.handleUpdateDragOrResizeModal(!0),onMoveEnd:()=>this.handleUpdateDragOrResizeModal(!1),children:(0,i.jsx)(Sl,{id:"preview-canvas-modal",style:{width:pe,height:ye},className:"preview-modal-portal-root",children:(0,i.jsx)("div",{className:"content",children:(0,i.jsx)(F,{store:MB.webpackInterface.store,projectAlike:c,activePageKey:d,activeCanvasKey:w,isQuickPreview:!0,quickPreviewSize:{width:pe,height:ye-Jr},onCloseModal:P,onLunch:this.handleLunch})})})}),(0,i.jsx)(Wr.A,{classname:"resizer",top:ee,left:X,width:pe,height:ye,zoomable:"n,s,e,w,ne,nw,se,sw",rotatable:!1,rotateAngle:0,onResize:this.handleResize,onResizeStart:()=>this.handleUpdateDragOrResizeModal(!0),onResizeEnd:()=>this.handleUpdateDragOrResizeModal(!1),cursorAngle:0})]}),this.$portalElem)}}const Ln=(0,m.Mz)([ce.x$,gr.n,A.jx,S.z$],(t,n,s,c)=>{const d=s===R.qi.OnlyView;return{selectedTrees:t,position:{left:n+30,top:78},onlyView:d,sharing:c}}),Ms=(0,o.Ng)(Ln)(hn),pi=(0,u.Ay)(Rl).withConfig({displayName:"styles__StyledWidgetOperationLayoutModal",componentId:"sc-hr74vf-0"})(["z-index:108;width:224px;height:124px;background:",";border:1px solid ",";box-shadow:0 3px 6px rgba(51,55,62,0.09);border-radius:8px;pointer-events:auto;header{width:100%;height:40px;display:flex;align-items:center;justify-content:space-between;background:",";box-shadow:0 1px 0 ",";padding:0 12px 0 16px;.title{color:",";font-size:12px;font-weight:500;}.close{width:24px;height:24px;cursor:pointer;color:",";&:hover,&:active{color:",";}}}.mainContainer{display:flex;flex-wrap:wrap;align-content:space-between;justify-content:space-between;width:224px;height:84px;padding:10px 16px;.operation-item{display:flex;align-items:center;justify-content:space-between;width:88px;height:28px;padding:0 22px 0 14px;border:1px solid ",";border-radius:6px;background-color:",";cursor:pointer;&:hover{background-color:",";}&:active{background-color:",";}&.disabled{cursor:not-allowed;background-color:",";color:",";}.operation-item-icon{width:24px;height:24px;color:",";}.operation-item-name{font-size:12px;font-weight:500;color:",";}&:nth-child(1) svg.operation-item-icon path:nth-child(1),&:nth-child(2) svg.operation-item-icon path:nth-child(2){fill:",";}}}"],t=>t.theme.color_bg_white,t=>t.theme.color_bg_border_02,t=>t.theme.color_bg_white,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_text_L1,t=>t.theme.color_text_L2,t=>t.theme.color_text_L1,t=>t.theme.color_bg_border_02,t=>t.theme.color_bg_white,t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_bg_white,t=>t.theme.color_text_disabled01,t=>t.theme.color_text_L1,t=>t.theme.color_text_L1,t=>t.theme.color_text_L2),Ts="WIDGET_OPERATION_LAYOUT_MODAL_POSITION_TOP",Js="WIDGET_OPERATION_LAYOUT_MODAL_POSITION_LEFT",ki=t=>{const{dispatch:n}=t,[s,c]=(0,r.useState)(()=>(0,We.Yt)(Ts,127,We.qW.Number)),[d,w]=(0,r.useState)(()=>(0,We.Yt)(Js,window.innerWidth-468,We.qW.Number)),[P,F]=(0,r.useState)(window.innerWidth),[X,ee]=(0,r.useState)(window.innerHeight),pe=(0,r.useCallback)((tt,It)=>{const Nt=Math.max(Math.min(It,X-124),0),Lt=Math.max(Math.min(tt,P-224),0);c(Nt),w(Lt),(0,We.a0)(Ts,Nt,We.qW.Number),(0,We.a0)(Js,Lt,We.qW.Number)},[X,P]),ye=()=>{n({type:"modal:update:state",payload:{widgetOperationLayoutModal:{isOpen:!1}}})},Ae=(0,r.useCallback)(()=>{F(window.innerWidth),ee(window.innerHeight),pe(d,s)},[pe,d,s]);(0,r.useEffect)(()=>(window.addEventListener("resize",Ae),()=>{window.removeEventListener("resize",Ae)}),[Ae]);const we=()=>{n({type:"entry:items:send:front"}),(0,Ve.$n)({operationType:Ve.VW.Top}),ye()},_e=()=>{n({type:"entry:items:send:back"}),(0,Ve.$n)({operationType:Ve.VW.Bottom}),ye()},Fe=()=>{n({type:"entry:items:forward"}),(0,Ve.$n)({operationType:Ve.VW.MoveUp})},Ye=()=>{n({type:"entry:items:backward"}),(0,Ve.$n)({operationType:Ve.VW.MoveDown})},He=tt=>{const{target:It}=tt;It.closest("#widget-operation-layout-modal")||ye()};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ir.A,{position:{left:d,top:s},dragContainer:"widget-operation-layout-modal",onMove:pe,children:(0,i.jsxs)(pi,{id:"widget-operation-layout-modal",children:[(0,i.jsxs)("header",{type:"draggable",children:[(0,i.jsx)("span",{className:"title",type:"draggable",children:I18N.Common.layer_adjustment}),(0,i.jsx)(Je.C,{name:"common/close",className:"close",onClick:ye})]}),(0,i.jsxs)("div",{className:"mainContainer",children:[(0,i.jsx)(js,{iconName:"toolbar/z_front",name:I18N.ToolBar.send_front,onClick:we}),(0,i.jsx)(js,{iconName:"toolbar/z_back",name:I18N.ToolBar.send_back,onClick:_e}),(0,i.jsx)(js,{iconName:"common/z_forward",name:I18N.ContextMenu.move_up,onClick:Fe}),(0,i.jsx)(js,{iconName:"common/z_backward",name:I18N.ContextMenu.move_down,onClick:Ye})]})]})}),(0,i.jsx)(Hc.A,{target:document,onClick:(0,Hc.t)(He,{capture:!0})})]})},js=t=>{const{iconName:n,name:s,onClick:c}=t;return(0,i.jsxs)("div",{className:"operation-item",onClick:c,children:[(0,i.jsx)(Je.C,{name:n,className:"operation-item-icon"}),(0,i.jsx)("span",{className:"operation-item-name",children:s})]})},ai=(0,r.memo)(ki),qi=(0,u.Ay)(Vn.H).withConfig({displayName:"styles__StyledColorPickerDownloadModal",componentId:"sc-15dhwsn-0"})(["&.color-pick-download-modal{.content{p{font-size:14px;line-height:24px;color:",";}}footer{.installation-tutorial{max-height:32px;margin-right:auto;padding:6px 0px;font-size:13px;color:",";&:hover{color:",";}span{border-bottom:1px solid ",";}}}}"],t=>t.theme.color_text_L1,t=>t.theme.color_text_link_normal,t=>t.theme.color_text_link_hover,t=>t.theme.color_text_link_normal),or="https://cdn-release.modao.cc/plugins/chrome/md-1.1.1-chrome.zip",Yi=["Chrome","QQBrowser","360Browser","Edge"],Hr={Chrome:"\n <p>1\u3001\u4E0B\u8F7D\u63D2\u4EF6\u5E76\u89E3\u538B</p>\n <p>2\u3001\u5728\u6D4F\u89C8\u5668\u53F3\u4E0A\u89D2\u70B9\u51FB<strong>\u66F4\u591A\u56FE\u6807</strong> > <strong>\u6269\u5C55\u7A0B\u5E8F</strong> > <strong>\u7BA1\u7406\u6269\u5C55\u7A0B\u5E8F</strong></p>\n <p>3\u3001\u6253\u5F00\u53F3\u4E0A\u89D2\u201C\u5F00\u53D1\u8005\u6A21\u5F0F\u201D\uFF0C\u70B9\u51FB\u201C\u52A0\u8F7D\u5DF2\u89E3\u538B\u7684\u6269\u5C55\u7A0B\u5E8F\u201D\uFF0C\u9009\u62E9\u5DF2\u89E3\u538B\u7684<strong>\u6587\u4EF6\u5939</strong></p>\n ",QQBrowser:"\n <p>1\u3001\u4E0B\u8F7D\u63D2\u4EF6\u5E76\u89E3\u538B</p>\n <p>2\u3001\u5728QQ\u6D4F\u89C8\u5668\u53F3\u4E0A\u89D2\u70B9\u51FB<strong>\u66F4\u591A\u56FE\u6807</strong> > <strong>\u5E94\u7528\u4E2D\u5FC3</strong></p>\n <p>3\u3001\u6253\u5F00\u53F3\u4E0A\u89D2\u201C\u5F00\u53D1\u8005\u6A21\u5F0F\u201D\uFF0C\u70B9\u51FB\u201C\u52A0\u8F7D\u5DF2\u89E3\u538B\u7684\u6269\u5C55\u7A0B\u5E8F\u201D\uFF0C\u9009\u62E9\u5DF2\u89E3\u538B\u7684<strong>\u6587\u4EF6\u5939</strong></p>\n ","360Browser":"\n <p>1\u3001\u4E0B\u8F7D\u63D2\u4EF6\u5E76\u89E3\u538B</p>\n <p>2\u3001\u5728360\u6D4F\u89C8\u5668\u53F3\u4E0A\u89D2\u70B9\u51FB<strong>\u62D3\u5C55\u7A0B\u5E8F</strong> > <strong>\u6DFB\u52A0\u66F4\u591A\u62D3\u5C55</strong> > <strong>\u5934\u50CF</strong> > <strong>\u6211\u7684\u62D3\u5C55</strong></p>\n <p>3\u3001\u6253\u5F00\u53F3\u4E0A\u89D2\u201C\u5F00\u53D1\u8005\u6A21\u5F0F\u201D\uFF0C\u70B9\u51FB\u201C\u52A0\u8F7D\u5DF2\u89E3\u538B\u7684\u6269\u5C55\u7A0B\u5E8F\u201D\uFF0C\u9009\u62E9\u5DF2\u89E3\u538B\u7684<strong>\u6587\u4EF6\u5939</strong></p>\n ",Edge:"\n <p>1\u3001\u4E0B\u8F7D\u63D2\u4EF6\u5E76\u89E3\u538B</p>\n <p>2\u3001\u5728Edge\u6D4F\u89C8\u5668\u53F3\u4E0A\u89D2\u70B9\u51FB<strong>\u66F4\u591A\u56FE\u6807</strong> > <strong>\u6269\u5C55</strong> > <strong>\u7BA1\u7406\u6269\u5C55</strong></p>\n <p>3\u3001\u70B9\u51FB\u201C\u52A0\u8F7D\u5DF2\u89E3\u538B\u7684\u6269\u5C55\u7A0B\u5E8F\u201D\uFF0C\u9009\u62E9\u5DF2\u89E3\u538B\u7684<strong>\u6587\u4EF6\u5939</strong></p>\n ",other:"\n <p>\u5438\u7BA1\u5DE5\u5177\u4EC5\u652F\u6301\u5728Chrome\u6D4F\u89C8\u5668\u6216\u5BA2\u6237\u7AEF\u4E2D\u4F7F\u7528\uFF0C<strong>\u8BF7\u4F7F\u7528Chrome\u6D4F\u89C8\u5668\u6216\u4E0B\u8F7D\u58A8\u5200\u5BA2\u6237\u7AEF</strong></p>\n "},Wa=t=>{const{isOpen:n,onClose:s}=t,c=(0,R0.VK)().name,d=()=>(0,i.jsxs)("a",{className:"installation-tutorial",target:"_blank",rel:"noreferrer",href:"https://modao.cc/hc/articles/333#%E5%AE%89%E8%A3%85%E5%8F%96%E8%89%B2%E5%99%A8%E6%8F%92%E4%BB%B6",children:[(0,i.jsx)("span",{children:"\u5B89\u88C5\u6559\u7A0B"}),">"]}),w=()=>(0,i.jsx)(Qc.A,{type:"secondary",onClick:()=>{s()},children:"\u53D6\u6D88"}),P=()=>{window.open(or,"_blank")},F=()=>{window.open("https://modao.cc/feature/downloads.html#part1","_blank")},X=()=>{window.open("https://www.google.com/chrome/","_blank")},ee=Yi.indexOf(c)===-1,pe=Hr[ee?"other":c],ye={shouldCloseOnAction:!1},Ae={type:"secondary",shouldCloseOnAction:!1,onClick:X},we={type:"secondary"},_e={type:"primary",shouldCloseOnAction:!1,onClick:P};return ee?(0,i.jsx)(qi,{className:"color-pick-download-modal",portalClassName:"color-pick-download-modal-portal",title:"\u6D4F\u89C8\u5668\u4E2D\u4F7F\u7528\u53D6\u8272\u5668\u9700\u5B89\u88C5\u63D2\u4EF6",isOpen:n,canConfirm:!0,mask:!1,onClose:s,cancelText:"\u524D\u5F80Chrome",confirmText:"\u4E0B\u8F7D\u5BA2\u6237\u7AEF",onConfirm:F,cancelBtnProps:Ae,confirmBtnProps:ye,renderFooterContent:w,children:(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:pe}})}):(0,i.jsx)(qi,{className:"color-pick-download-modal",portalClassName:"color-pick-download-modal-portal",title:"\u6D4F\u89C8\u5668\u4E2D\u4F7F\u7528\u53D6\u8272\u5668\u9700\u5B89\u88C5\u63D2\u4EF6",isOpen:n,canConfirm:!0,mask:!1,onClose:s,cancelText:"\u4E0B\u8F7D\u63D2\u4EF6",confirmText:"\u5B8C\u6210",cancelBtnProps:_e,confirmBtnProps:we,renderFooterContent:d,children:(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:pe}})})},nr=(0,r.memo)(Wa),zi=u.Ay.div.withConfig({displayName:"style__StyledNoticeModal",componentId:"sc-1eqgf65-0"})(["&.mask{position:fixed;left:0;right:0;top:0;bottom:0;background:rgba(31,41,46,0.6);z-index:9999;transition:all 1s;.banner-bg{width:712px;height:513px;background:url(",") no-repeat center center;background-size:cover;position:fixed;left:50%;bottom:50%;transform:translate(-50%,50%);transform-origin:bottom left;opacity:1;transition:all 1s;z-index:51;.banner-close{position:absolute;width:32px;height:32px;right:","px;top:","px;display:flex;justify-content:center;align-items:center;cursor:pointer;svg{rect{fill:rgba(53,68,93,0.3);}path{fill:#fff}}.close-btn{width:32px;height:32px;}&:hover{svg{rect{fill:rgba(53,68,93,0.47);}}}&.mask{width:32px;height:32px;border-radius:50%;background-color:rgba(53,68,93,0.30);top:0px;right:0px;&:hover{background-color:rgba(53,68,93,0.47);}}}.buy-btn{position:absolute;bottom:",";left:",";width:","px;height:","px;display:flex;align-items:center;justify-content:center;background:url(",") no-repeat center;background-size:contain;}}}&.hide{background:rgba(31,41,46,0);pointer-events:none;.banner-bg{left:80%;bottom:95%;transform:scale(0.07) translate(0,0);opacity:0;}}"],t=>t.guideImgUrl,t=>t.guideCloseBtnStyle.right,t=>t.guideCloseBtnStyle.top,t=>t.btnImgStyle.bottom,t=>t.btnImgStyle.left,t=>t.btnImgStyle.width,t=>t.btnImgStyle.height,t=>t.btnImgUrl),ca={top:"0",right:"-14"},Ua={width:"150",height:"43",bottom:"11%",left:"40%"},Za="https://cdn.modao.cc/Service%20suspension%20announcement%20konw.png",ia="https://cdn.modao.cc/Service%20suspension%20announcement.png";function yl(t){const{isOpen:n}=t,s=(0,r.useRef)(null),c=(0,o.wA)(),d=P=>{var F;P.preventDefault(),P.stopPropagation(),P.nativeEvent.stopImmediatePropagation(),(F=s.current)==null||F.classList.add("hide"),setTimeout(()=>{c({type:"modal:update:state",payload:{noticeModal:{isOpen:!1}}})},1e3)},w=P=>{d(P)};return n?(0,i.jsx)(zi,{className:"activity-banner mask",ref:s,guideImgUrl:ia,guideCloseBtnStyle:ca,btnImgUrl:Za,btnImgStyle:Ua,onClick:w,children:(0,i.jsxs)("a",{className:"banner-bg",children:[(0,i.jsx)("button",{className:"buy-btn"}),(0,i.jsx)("div",{className:"banner-close",onClick:d,children:(0,i.jsx)(Je.C,{className:"close-btn",name:"notice/modal/close"})})]})}):null}var er=e(63508),Cr=e(54909);const Cl=(0,u.Ay)(Vn.H).withConfig({displayName:"styles__StyledMktWMExportModal",componentId:"sc-1wcwir1-0"})(["&.workspace-modal.mkt-wm-export-modal{width:400px;height:290px;border:none;background:url('/mb-proto2/images/mktWM/mkt_wm_export_modal_bg.png') center center / 400px 290px no-repeat;.header{background-color:transparent;border-bottom:none;padding:0 8px 0 24px;color:",";height:72px;font-size:20px;font-weight:500;line-height:24px;}.content{height:134px;padding:0;background-color:transparent;.modal-content{height:134px;padding:28px 24px 24px 24px;display:flex;flex-direction:column;justify-content:space-between;font-size:13px;font-weight:500;line-height:18px;color:",";p{color:",";}.point{color:rgba(0,161,86,0.85)}}}footer{height:84px;padding:0 24px 4px 24px;background-color:transparent;display:flex;flex-direction:column;.button-root{width:352px;height:40px;max-height:40px;line-height:28px;font-size:14px;border-radius:8px;&.confirm-btn{display:none;}&.confirm-btn-custom{background-color:#415058;color:#FFDCA9;font-weight:600;.btn-text{display:flex;.icon{width:18px;height:18px;margin:5px 6px 5px 0;}}&:hover{background-color:#313C42;}&:active{background-color:#313C42;}}&.export-btn{color:",";font-weight:400;&:hover{color:",";}}}}.close-btn{right:8px;color:",";&:hover{color:",";}}}"],Cr.f.color_text_btn.value_light,Cr.f.color_text_L1.value_light,Cr.f.color_text_L1.value_light,Cr.f.color_text_L3.value_light,Cr.f.color_text_L1.value_light,Cr.f.color_text_L2.value_dark,Cr.f.color_text_L1.value_dark);var od=e(64598);const Yd=t=>{const{isOpen:n,onExport:s,onClose:c}=t,{isSoloMdMember:d}=(0,er.s)(MB.user,MB.currentOrg),w=()=>{c(),s(),(0,od._)({click_button:"\u5BFC\u51FA-\u7EE7\u7EED\u5BFC\u51FA\u542B\u6C34\u5370\u5185\u5BB9"})},P=()=>{const ee=!!MB.currentOrg,pe={mode:"mat",payEntrance:"\u7F16\u8F91\u533A-v8-"+(ee?"\u56E2\u961F":"\u4E2A\u4EBA")+"-\u4ED8\u8D39\u7D20\u6750\u8BD5\u7528-\u5BFC\u51FA\u884C\u4E3A\u63D0\u793A-"+(d?"\u5347\u7EA7\u7D20\u6750\u4F1A\u5458":"\u5347\u7EA7\u53CC\u4F1A\u5458"),checkoutPlace:"workspace_v8_"+(ee?"org":"solo")+"_watermark_export_"+(d?"template":"vip-template"),checkoutArea:"proto"};MB.global.popupHelper.chargeAsync({...pe}),(0,od._)({click_button:"\u5BFC\u51FA-"+(d?"\u5347\u7EA7\u7D20\u6750\u4F1A\u5458":"\u5347\u7EA7\u53CC\u4F1A\u5458")})},F=()=>{c(),(0,od._)({click_button:"\u5BFC\u51FA-\u5173\u95ED"})},X=()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(Zn.jn,{className:"confirm-btn-custom",onClick:P,children:[(0,i.jsx)(Je.C,{className:"upgrade-icon",name:"common/watermark/upgrade-"+(d?"mt":"md")}),d?I18N.WaterMark.mkt.upgrade_mkt:I18N.WaterMark.mkt.upgrade_two]}),(0,i.jsx)(Zn.z9,{className:"export-btn",onClick:w,children:I18N.WaterMark.mkt.export_modal.export})]});return(0,i.jsxs)(Cl,{isOpen:n,className:"mkt-wm-export-modal",title:d?"\u4ED8\u8D39\u5185\u5BB9\u4F7F\u7528\u987B\u77E5":"\u6C34\u5370\u63D0\u793A",onClose:F,canCloseOnClickMask:!1,canConfirm:!1,canCancel:!1,isUsePortal:!1,renderFooterContent:X,children:[(0,i.jsxs)("p",{children:[(0,i.jsx)("p",{children:I18N.WaterMark.mkt.export_modal.content_1}),(0,i.jsx)("p",{children:I18N.WaterMark.mkt.export_modal.content_2})]}),(0,i.jsxs)("p",{children:[I18N.WaterMark.mkt.export_modal.content_3,(0,i.jsx)("span",{className:"point",children:d?I18N.WaterMark.mkt.export_modal.content_4_1:I18N.WaterMark.mkt.export_modal.content_4_2}),I18N.WaterMark.mkt.export_modal.content_5]})]})},Cc=(0,u.Ay)(Vn.H).withConfig({displayName:"styles__StyledMktWMUngroupModal",componentId:"sc-z32pp4-0"})(["&.workspace-modal.mkt-wm-ungroup-modal{width:400px;.content{height:80px;}}"]);var Ha=e(78647);const Ld=t=>{const{isOpen:n,onClose:s,dispatch:c}=t,d=()=>{s(),MB.commonGuideHelper.markGuideAsRead(Ha.c.UNGROUP_WITH_WM)},w=()=>{d()},P=()=>{d(),c({type:"entry:ungroup:items:v2"}),(0,od._)({click_button:"\u89E3\u7EC4-\u7EE7\u7EED\u6253\u6563"})},F=()=>{d();const{isSoloMdMember:X}=(0,er.s)(MB.user,MB.currentOrg),ee=!!MB.currentOrg,pe={mode:"mat",payEntrance:"\u7F16\u8F91\u533A-v8-"+(ee?"\u56E2\u961F":"\u4E2A\u4EBA")+"-\u4ED8\u8D39\u7D20\u6750\u8BD5\u7528-\u6253\u6563\u64CD\u4F5C\u63D0\u793A-"+(X?"\u5347\u7EA7\u7D20\u6750\u4F1A\u5458":"\u5347\u7EA7\u53CC\u4F1A\u5458"),checkoutPlace:"workspace_v8_"+(ee?"org":"solo")+"_watermark_scatter_"+(X?"template":"vip-template"),checkoutArea:"proto"};MB.global.popupHelper.chargeAsync({...pe}),(0,od._)({click_button:"\u89E3\u7EC4-"+(X?"\u5347\u7EA7\u7D20\u6750\u4F1A\u5458":"\u5347\u7EA7\u53CC\u4F1A\u5458")})};return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(Cc,{isOpen:n,className:"mkt-wm-ungroup-modal",title:I18N.WaterMark.mkt.ungroup_modal.title,onClose:w,canCloseOnClickMask:!1,canConfirm:!0,onConfirm:F,confirmText:I18N.WaterMark.mkt.remove_wm,canCancel:!0,onCancel:P,isUsePortal:!1,cancelText:I18N.WaterMark.mkt.ungroup_modal.continue,children:(0,i.jsx)("p",{children:I18N.WaterMark.mkt.ungroup_modal.content})})})};class Rc extends r.PureComponent{constructor(){super(...arguments),(0,p.A)(this,"handleCloseModal",n=>{if(typeof n=="string"){this.props.dispatch({type:"modal:reset:popup:state",payload:{modalName:n}});return}this.props.dispatch({type:"modal:reset:state"})})}render(){const{theme:n,rootProject:s,currentOrg:c,currentUser:d,linkBackModal:w,comboGroupRemoveModal:P,masterDeleteModal:F,masterCreateModal:X,screenDupModal:ee,screenTransferModal:pe,screenRemovalModal:ye,screenTrashModal:Ae,couponReceivedModal:we,mockittGuideModal:_e,previewModal:Fe,workspaceConfirmAsyncModal:Ye,designTransferModal:He,assetGroupRemoveModal:tt,designCreateWithGroupModal:It,assetCreateWithGroupModal:Nt,doNotLeaveProjectModal:Lt,nestedDynamicModal:Xt,secondaryConfirmModal:_o,preOpenHyperlinkModal:co,helpCenterModal:yn,rightsAndInterestsModal:An,orgFullBeyondNotice:In,resourcePurchaseModal:wn,resourcesPaidSuccessModal:_n,imagePreviewModal:Jn,previewComboModal:rs,upgradeComboModal:as,chargeModal:mi,projectSummaryModal:ha,flpakSizeWarnModal:Ca,newbieVideoModal:ms,comboUploadModal:qn,chartTableSettingModal:si,previewCanvasModal:Hi,widgetOperationLayoutModal:ra,noticeModal:Ta,colorPickerDownloadModal:Pi,mktWMExportModal:Bi,mktWMUngroupModal:Ji,dispatch:Ui}=this.props;return(0,i.jsxs)(r.Fragment,{children:[we.isOpen&&(0,i.jsx)(Up,{...we,dispatch:Ui}),_e.isOpen&&(0,i.jsx)(r0,{..._e,dispatch:Ui}),X.isOpen&&(0,i.jsx)(oi,{...X,onClose:()=>this.handleCloseModal("masterCreateModal"),dispatch:Ui}),F.isOpen&&(0,i.jsx)(Xs,{...F,onClose:()=>this.handleCloseModal("masterDeleteModal"),dispatch:Ui}),P.isOpen&&(0,i.jsx)(Ss,{...P,onClose:()=>this.handleCloseModal("comboGroupRemoveModal"),dispatch:Ui}),It.isOpen&&(0,i.jsx)(Sn,{...It,onClose:()=>this.handleCloseModal("designCreateWithGroupModal"),dispatch:Ui}),w.isOpen&&(0,i.jsx)(Uo,{...w,theme:n,onClose:()=>this.handleCloseModal("linkBackModal")}),ee.isOpen&&(0,i.jsx)(Hs,{...ee,onClose:()=>this.handleCloseModal("screenDupModal"),dispatch:Ui}),pe.isOpen&&(0,i.jsx)(rn,{...pe,onClose:()=>this.handleCloseModal("screenTransferModal"),theme:n,rootProject:s,currentUser:d,currentOrg:c,theme:n,dispatch:Ui}),ye.isOpen&&(0,i.jsx)(Os,{...ye,onClose:()=>{this.handleCloseModal("screenRemovalModal")},dispatch:Ui}),Ae.isOpen&&(0,i.jsx)(ua,{theme:n,...Ae,onClose:()=>this.handleCloseModal("screenTrashModal"),dispatch:Ui,rootProject:s,currentOrg:c,currentUser:d}),Fe.isOpen&&(0,i.jsx)(ld,{...Fe,theme:n,onClose:()=>this.handleCloseModal("previewModal")}),tt.isOpen&&(0,i.jsx)(Yc,{...tt,onClose:()=>this.handleCloseModal("assetGroupRemoveModal"),dispatch:Ui}),Ye.isOpen&&(0,i.jsx)(ri,{...Ye,onClose:()=>this.handleCloseModal("workspaceConfirmAsyncModal")}),He.isOpen&&(0,i.jsx)(sa,{...He,onClose:()=>this.handleCloseModal("designTransferModal"),dispatch:Ui}),Nt.isOpen&&(0,i.jsx)(Mc,{...Nt,onClose:()=>this.handleCloseModal("assetCreateWithGroupModal")}),Lt.isOpen&&(0,i.jsx)(Hh,{...Lt,onClose:()=>this.handleCloseModal("doNotLeaveProjectModal")}),_o.isOpen&&(0,i.jsx)(Sh,{..._o,onClose:()=>this.handleCloseModal("secondaryConfirmModal")}),Xt.isOpen&&(0,i.jsx)(ui,{...Xt,onClose:()=>this.handleCloseModal("nestedDynamicModal")}),co.isOpen&&(0,i.jsx)(zp.A,{...co,onClose:()=>this.handleCloseModal("preOpenHyperlinkModal")}),yn.isOpen&&(0,i.jsx)(bp,{zIndex:107,...yn,onClose:()=>this.handleCloseModal("helpCenterModal")}),Ta.isOpen&&(0,i.jsx)(yl,{...Ta}),An.isOpen&&(0,i.jsx)(qc,{...An,currentOrg:c,currentUser:d,onClose:()=>{this.handleCloseModal("rightsAndInterestsModal")}}),In.isOpen&&(0,i.jsx)(Eh,{...In,onClose:()=>this.handleCloseModal("orgFullBeyondNotice")}),wn.isOpen&&(0,i.jsx)(Ge,{...wn,onClose:()=>this.handleCloseModal("resourcePurchaseModal"),dispatch:Ui}),_n.isOpen&&(0,i.jsx)(Zt,{..._n,onClose:()=>this.handleCloseModal("resourcesPaidSuccessModal"),dispatch:Ui}),Jn.isOpen&&(0,i.jsx)(fo.A,{...Jn,onClose:()=>{this.handleCloseModal("imagePreviewModal")}}),rs.isOpen&&(0,i.jsx)($n,{...rs,theme:n,onClose:()=>this.handleCloseModal("previewComboModal")}),as.isOpen&&(0,i.jsx)(Cs,{...as,onClose:()=>this.handleCloseModal("upgradeComboModal"),dispatch:Ui}),mi.isOpen&&(0,i.jsx)(Bs,{...mi,onClose:()=>{this.handleCloseModal("chargeModal")}}),ha.isOpen&&(0,i.jsx)(Re,{...ha,onClose:()=>this.handleCloseModal("projectSummaryModal")}),Ca.isOpen&&(0,i.jsx)($o,{...Ca,onClose:()=>{this.handleCloseModal("flpakSizeWarnModal")}}),ms.isOpen&&(0,i.jsx)(Ia,{...ms,dispatch:Ui,onClose:()=>{this.handleCloseModal("newbieVideoModal")}}),qn.isOpen&&(0,i.jsx)(l1,{...qn,onClose:()=>{this.handleCloseModal("comboUploadModal")}}),si.isOpen&&(0,i.jsx)(os,{}),Hi.isOpen&&(0,i.jsx)(Ms,{...Hi,theme:n,dispatch:Ui,onClose:()=>{this.handleCloseModal("previewCanvasModal")}}),ra.isOpen&&(0,i.jsx)(ai,{...ra,dispatch:Ui,onClose:()=>{this.handleCloseModal("widgetOperationLayoutModal")}}),Pi.isOpen&&(0,i.jsx)(nr,{...Pi,dispatch:Ui,onClose:()=>{this.handleCloseModal("colorPickerDownloadModal")}}),Bi.isOpen&&(0,i.jsx)(Yd,{...Bi,dispatch:Ui,onClose:()=>{this.handleCloseModal("mktWMExportModal")}}),Ji.isOpen&&(0,i.jsx)(Ld,{...Ji,dispatch:Ui,onClose:()=>{this.handleCloseModal("mktWMUngroupModal")}})]})}}const nd=(0,o.Ng)(t=>{const n=(0,S.PL)(t),s=(0,S.wA)(t),c=(0,S.HW)(t),d=(0,Eo.zs)(t),w=(0,T.O4)(t);return{...d,theme:w,rootProject:n,currentOrg:s,currentUser:c}})(Rc);var Lp=e(8508),Dp=e(77015),Dd=e(28497),h1=e(13780),ah=e(25399),Bu=e(36875),Dh=e(12298);const Bd={from:null,to:null},Bp=(t,n,s)=>{const c=h1.L.apply(t,s);return{x:c.x+window.innerWidth/2,y:c.y+t.size.h/2+n}},u0=(t,n,s,c,d,w,P)=>{try{return j0(t,n,s,c,d,w,P)}catch(F){(0,Bu.Cp)(F,{level:"debug",fingerprint:["try-find-intAct-connector"],extra:{interaction:n,editingBDanliKey:s,editingBMubanRBRefKey:c}})}return Bd},j0=(t,n,s,c,d,w,P)=>{switch(n.interactionType){case Dd.O2.LinkToCanvas:{let F=n.triggerItemKey;const X=n.targetResCanvasKey;return(0,Na.OO)(F)&&(F=(0,Na.QL)(F).pop()),t.locUpColdCanvasKey(n.triggerItemKey)===n.targetResCanvasKey?Bd:t.locUpRBPageKey(F)!==t.locUpRBPageKey(X)&&t.getHotItem(X).hotAttr.type==="rResCanvas"?Rp(t,F,X,d,w,P):O0(t,F,X,d,w)}case Dd.O2.OpenOverlay:case Dd.O2.SwapOverlay:{let F=n.triggerItemKey;const X=n.targetOverlayKey;return(0,Na.OO)(F)&&(F=(0,Na.QL)(F).pop()),t.locUpColdCanvasKey(n.triggerItemKey)===n.targetOverlayKey?Bd:t.locUpRBPageKey(F)!==t.locUpRBPageKey(X)&&t.getHotItem(X).hotAttr.type==="rResCanvas"?Rp(t,F,X,d,w,P):O0(t,F,X,d,w)}case Dd.O2.SetBasketCanvas:{const{triggerItemKey:F,targetBasketKey:X,targetResCanvasKey:ee}=n;if(!t.isActiveKey(F))return Bd;if(X!==ah.VZ){const ye=t.locUpHotCanvasKey(F)||"",Ae=t.locUpHotCanvasKey(X)||"";if(ye===Ae&&(!(0,Na.OO)(F)||t.locUpHotBasketKey(F)===s||t.locTopRBMuDaPageKey(F)===c))return O0(t,(0,Na.OO)(F)?(0,Na.QL)(F).pop():F,(0,Na.OO)(X)?(0,Na.QL)(X).pop():X,d,w)}const pe=t.locUpHotBasketKey(F)||"";if(pe&&s&&pe===X&&pe===s&&!ah.yQ.includes(ee))return O0(t,(0,Na.OO)(F)?(0,Na.QL)(F).pop():F,(0,Na.OO)(ee)?(0,Na.QL)(ee).pop():ee,d,w);if(X===ah.VZ){const ye=t.locUpHotBasketKey(F)||"";if(ye&&s&&ye===s&&!ah.yQ.includes(ee))return O0(t,(0,Na.OO)(F)?(0,Na.QL)(F).pop():F,(0,Na.OO)(ee)?(0,Na.QL)(ee).pop():ee,d,w);const Ae=t.locTopRBMuDaPageKey(F)||"";if(Ae&&c&&Ae===c&&!ah.yQ.includes(ee))return O0(t,F,ee,d,w)}return Bd}case Dd.O2.ScrollTo:case Dd.O2.SetVisibility:{const{triggerItemKey:F,targetWidgetKey:X}=n;if(X===ah.rE||X===F)return Bd;if((0,Na.OO)(F)&&(0,Na.OO)(X)){const ee=t.locUpHotBasketKey(F),pe=t.locUpHotBasketKey(X);return ee!==pe||ee!==s?Bd:O0(sdkStore,(0,Na.QL)(F).pop(),(0,Na.QL)(X).pop(),d,w)}else return!(0,Na.OO)(F)&&!(0,Na.OO)(X)?O0(sdkStore,F,X,d,w):Bd}case Dd.O2.CloseOverlay:case Dd.O2.LinkToSourceCanvas:case Dd.O2.OpenExternalUrl:return Bd;default:return null}},O0=(t,n,s,c,d)=>{const w=t.getHotAABB(n),P=t.getHotAABB(s);if((0,se.cj)(w,P))return Bd;const[F,X,ee,pe]=w,[ye,Ae,we,_e]=P,Fe={x:.5*(F+ee),y:.5*(X+pe)},Ye={x:.5*(ye+we),y:.5*(Ae+_e)};let He={...Fe},tt={...Ye};const It=(Ye.x-Fe.x)/(ee-F),Nt=(Ye.y-Fe.y)/(pe-X);Math.abs(It)>Math.abs(Nt)?He.x+=Math.sign(It)*(ee-F)/2:He.y+=Math.sign(Nt)*(pe-X)/2;const Lt=(Fe.x-Ye.x)/(we-ye),Xt=(Fe.y-Ye.y)/(_e-Ae);if(Math.abs(Lt)>Math.abs(Xt)?tt.x+=Math.sign(Lt)*(we-ye)/2:tt.y+=Math.sign(Xt)*(_e-Ae)/2,((0,nt.GN)(n,t)||(0,se.N0)(P,He))&&(He=null),((0,nt.GN)(s,t)||(0,se.N0)(w,tt))&&(tt=null),He){let co=t.locUpHotCanvasKey(n)||"";co=(0,Na.OO)(co)?(0,Na.QL)(co).pop():co;const yn=co&&t.getHotAABB(co);yn&&!(0,se.N0)(yn,He)&&(He=null)}if(tt){let co=t.locUpHotCanvasKey(s)||"";co=(0,Na.OO)(co)?(0,Na.QL)(co).pop():co;const yn=co&&t.getHotAABB(co);yn&&!(0,se.N0)(yn,tt)&&(tt=null)}if(!He||!tt)return Bd;const _o=(0,Dh.WO)(c,d.left);return!(0,se.N0)(_o,He)||!(0,se.N0)(_o,tt)?Bd:(He=Bp(c,d.top,He),tt=Bp(c,d.top,tt),{from:He,to:tt})},Rp=(t,n,s,c,d,w)=>{const P=t.getHotAABB(n);if((0,nt.GN)(n,t))return Bd;const[X,ee,pe,ye]=P,Ae={x:.5*(X+pe),y:.5*(ee+ye)};let we={...Ae},_e=null;const Fe=u1(s,t,w);if(Fe){const{x:He,y:tt,width:It,height:Nt}=Fe;we={x:Ae.x-(pe-X)/2,y:Ae.y},_e={x:He+It,y:tt+Nt/2}}else we=_e=null;if(!we||!_e)return Bd;const Ye=(0,Dh.WO)(c,d.left);return(0,se.N0)(Ye,we)?(we=Bp(c,d.top,we),{from:we,to:_e}):Bd},u1=(t,n,s)=>{var c;if(!t||n.isTrashed(t)||!s)return null;const d=document.querySelector('.rn-list-item[data-cid="'+t+'"]');if(!d)return u1((c=n.getHotItem(t))==null?void 0:c.sup,n,s);const w=d.getBoundingClientRect();return w.y+w.height>s.y+s.height||w.y<s.y+40?null:w},k2=u.Ay.div.withConfig({displayName:"styles__StyledIntActConnector",componentId:"sc-39jlvd-0"})(["&.link-line{position:absolute;pointer-events:none;z-index:12;.line{pointer-events:auto;position:absolute;transform-origin:0 0;z-index:12;&::before,&::after{content:'';position:absolute;background:",";height:1px;}&::before{left:0;right:","px;}&::after{width:","px;right:0;}}.line-hit{pointer-events:auto;cursor:pointer;position:absolute;transform-origin:0 0;height:6px;z-index:12;top:50%;left:50%;}.handler{pointer-events:auto;position:absolute;z-index:12;top:50%;left:50%;width:18px;height:18px;transform:translate(-50%,-50%) rotate(","deg);display:flex;justify-content:center;align-items:center;background:white;border-radius:50%;color:",";border:1px solid currentColor;.svg-icon{width:10px;height:10px;}.icon{font-size:16px;&.icon_gesture_rightClick{.mouseBody{fill:#c8cdd0;}.mouseRightButton{fill:#FFFFFF;stroke:#c8cdd0;}}&.icon_gesture_mouseIn,&.icon_gesture_mouseOut,&.icon_gesture_rightClick{font-size:12px;}}}.target{position:absolute;top:100%;left:100%;margin-left:-7px;margin-top:-3px;background:transparent;width:0;height:0;border:4px solid transparent;border-left:8px solid ",";}&.is-hover,&.active{z-index:13;.line{&::before,&::after{background:",";}}.handler{color:",";.icon_gesture_rightClick{.mouseBody{fill:",";}.mouseRightButton{fill:#FFFFFF;stroke:",";}}}.target{border-left:8px solid ",";}}}"],t=>t.theme.color_interaction_text_area,t=>t.afterWidth,t=>t.afterWidth,t=>360-t.degree,t=>t.theme.color_interaction_text_area,t=>t.theme.color_interaction_text_area,t=>t.theme.color_proto,t=>t.theme.color_proto,t=>t.theme.color_proto,t=>t.theme.color_proto,t=>t.theme.color_proto);class _2 extends r.PureComponent{constructor(n){super(n),(0,p.A)(this,"handleSelect",s=>{const{link:c,dispatch:d}=this.props;d(mt.R7.command.intActConnectorSelectCommand({interaction:c,e:s})),d({type:"links:singleSelectLink:update",payload:{singleSelectLink:c}})}),(0,p.A)(this,"handleRemove",s=>{s.stopPropagation();const{link:c,dispatch:d}=this.props;d(mt.R7.command.intActConnectorDeleteCommand({interactionKeyList:[c.key]})),d({type:"entry:refresh:link-list"})}),(0,p.A)(this,"toggleActive",s=>{this.setState({isHover:s})}),this.state={isHover:!1}}render(){const{link:n,scale:s,active:c,viewportRect:d,editingPanelCid:w,editingPanelRefPage:P,canvasOffset:F,screenListRect:X}=this.props,ee={scale:s/100,offset:F,size:{w:d.width,h:d.height}},{from:pe,to:ye}=u0(sdkStore,n,w,P,ee,d,X);if(!pe||!ye)return null;const Ae=Math.floor(Math.min(pe.y,ye.y)),we=Math.floor(Math.min(pe.x,ye.x)),_e=Math.abs(pe.x-ye.x),Fe=Math.abs(pe.y-ye.y),Ye=(0,Dp.FP)(ye.x-pe.x,ye.y-pe.y),He={left:pe.x<ye.x?0:"100%",top:pe.y<ye.y?0:"100%",width:(0,Dp.Xb)(_e,Fe),transform:"rotate("+Ye+"deg)"},tt={width:(0,Dp.Xb)(_e,Fe),transform:"rotate("+Ye+"deg) translate(-50%, -50%)"},Nt=40*(s/100),Lt=Xt=>{this.toggleActive(!1)};return(0,i.jsxs)(k2,{"data-cid":n.key,className:f()("link-line",{active:c,"is-hover":this.state.isHover}),style:{width:_e,height:Fe,transform:"translate("+we+"px,"+Ae+"px)"},afterWidth:Nt,degree:Ye,children:[(0,i.jsx)("div",{className:"line",style:He,children:(0,i.jsx)("span",{className:"target"})}),(0,i.jsx)("div",{className:"line-hit",style:tt,onClick:this.handleSelect,onMouseEnter:()=>this.toggleActive(!0),onMouseLeave:Lt,children:(0,i.jsx)("a",{className:"handler",onClick:this.handleSelect,children:(0,i.jsx)(Je.C,{name:"interaction/trigger/connector/"+n.interactionTrigger,className:"icon_gesture_"+n.interactionTrigger})})})]})}}class P2 extends r.PureComponent{render(){const{linkNodeList:n,editingPanelCid:s,editingPanelRefPage:c,show:d,scale:w,activeLinkCid:P,viewportRect:F,linkDisplayIndex:X,canvasOffset:ee,screenListRect:pe,dispatch:ye}=this.props;return d?(0,i.jsx)(m1,{id:"mb-linklist",style:{zIndex:4},children:n.map((Ae,we)=>{if(!Ae.isUiValid||!Ae.isTargetValid)return null;const _e=P.includes(Ae.key);return(0,i.jsx)(_2,{link:Ae,scale:w,active:_e,canvasOffset:ee,viewportRect:F,editingPanelCid:s,editingPanelRefPage:c,screenListRect:pe,dispatch:ye},Ae.key)})}):null}}const m1=u.Ay.div.withConfig({displayName:"IntActConnectorSurface__StyledIntActConnectorSurface",componentId:"sc-1apkur8-0"})(["position:absolute;top:0;left:0;&.hide{display:none;}"]),Wm=(0,m.Mz)([Lp.$_,S.X_,S.$S,T.Jv,Lp.gQ,A.jI,A.bt,S.ER,S.Xv,mt.R7.query.getSelectInteractionKeyList],(t,n,s,c,d,w,P,F,X,ee)=>s?{show:!0,linkNodeList:t,activeLinkCid:ee[0]||"",scale:n,viewportRect:s,linkDisplayIndex:c,editingPanelCid:w,editingPanelRefPage:P,canvasOffset:F,screenListRect:X}:{show:!1}),Ru=(0,o.Ng)(t=>Wm(t))(P2),ju=u.Ay.div.withConfig({displayName:"styles__StyledLoginBtn",componentId:"sc-xdjurx-0"})(["pointer-events:auto;z-index:4;position:absolute;left:50%;transform:translateX(-50%);top:22px;padding:10px 18px;text-align:center;cursor:pointer;background-color:",";border-radius:2px;box-shadow:0 2px 5px 0 rgba(39,54,78,0.08);white-space:nowrap;color:",";&.warn{background-color:",";}b{text-decoration:underline;color:",";}"],t=>t.theme.color_text_L2,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_primary_brand01,t=>t.theme.color_bg_white);var Ou=e(77757),Fu=e(57789);class Uu extends r.PureComponent{constructor(){super(...arguments),(0,p.A)(this,"handleWindowEventListenerOnbeforeunload",()=>{const{designOptions:n}=this.props,{isLoggedExperience:s}=n;s&&(window.onbeforeunload=()=>{})}),(0,p.A)(this,"onhandleSignin",()=>{MB.global.popupHelper.loginAsync({onConfirm:Ou.c,type:"signin"})}),(0,p.A)(this,"onhandleSignup",()=>{MB.global.popupHelper.loginAsync({onConfirm:Ou.c,type:"signup"})}),(0,p.A)(this,"handleOpenTeamModal",()=>{const{projectCid:n}=this.props;MB.global.popupHelper.teamSelectModalAsync({projectCid:n,onConfirm:s=>(0,Fu.E)(s)})})}componentDidMount(){this.handleWindowEventListenerOnbeforeunload()}componentDidUpdate(){this.props.designOptions.isLoggedExperience&&this.handleWindowEventListenerOnbeforeunload()}render(){const{showPanelEditBreadNav:n,designOptions:s}=this.props;if(n)return null;const{isExperience:c,isLoggedExperience:d}=s;return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(ju,{style:{top:48},className:f()({warn:d}),children:[c&&(0,i.jsxs)("div",{children:[I18N.LoginBtn.is_experience_tips,(0,i.jsx)("b",{onClick:this.onhandleSignin,children:I18N.LoginBtn.after_log_in})," ",I18N.LoginBtn.or," ",(0,i.jsx)("b",{onClick:this.onhandleSignup,children:I18N.LoginBtn.sign_in})," ",I18N.LoginBtn.can_save]}),d&&(0,i.jsxs)("div",{children:[I18N.LoginBtn.save_tips_1,(0,i.jsx)("b",{onClick:this.handleOpenTeamModal,children:I18N.LoginBtn.save_tips_2})," ",I18N.LoginBtn.save_tips_3]})]})})}}const N2=(0,m.Mz)([y.r,S.W4,S.PL],(t,n,s)=>{let{isEditingProjectMain:c}=t;return{showPanelEditBreadNav:!c,designOptions:n,projectCid:s==null?void 0:s.cid}}),L2=(0,o.Ng)(t=>N2(t))(Uu);var O1=e(57716),rh=e(86778),Cd=e(89535);const mu=ENV.IS_WONDER_SHARE||!1,Vm=u.Ay.aside.withConfig({displayName:"styles__StyledPreferencePanel",componentId:"sc-1p2ci36-0"})(["position:absolute;display:flex;z-index:200;top:50vh;left:50vw;margin-left:-280px;margin-top:-245px;width:520px;overflow:hidden;background:",";border:",";box-shadow:2px 8px 20px 0px rgba(0,0,0,0.10);border-radius:10px;color:",";.icon-box{position:absolute;width:24px;height:24px;top:12px;right:10px;display:flex;justify-content:center;align-items:center;color:",";cursor:pointer;.times-icon{width:24px;}&:hover{color:",";}&:active{color:",";}}.line{height:1px;background-color:",";&.common-panel{margin:20px 24px 10px;}&.text-panel{margin:8px 24px;}}.left-nav{width:130px;min-width:130px;height:370px;display:flex;background:",";flex-direction:column;border-right:",";font-size:14px;line-height:16px;font-weight:500;padding:10px 8px;.panel-title{height:32px;display:flex;justify-content:center;align-items:center;margin-bottom:6px;}.nav-list{display:flex;flex-direction:column;li{display:flex;height:32px;line-height:32px;padding:0 0 0 26px;cursor:pointer;margin-bottom:6px;border-radius:6px;&:hover{background-color:",";}&.is-active{background-color:",";}& > .icon{margin-right:4px;}& > span{font-size:12px;}.svg-icon{width:20px;color:",";}}}}.right-panel{font-size:12px;line-height:16px;width:100%;.setting-list{margin-left:24px;&:lang(en){margin-left:14px;}&.action,&.text-style-inherit{margin-top:36px;}li{height:40px;display:flex;align-items:center;.setting-item{width:124px;height:16px;display:flex;&:lang(en){margin-right:14px;}.guides-svg{width:16px;margin-left:4px;color:",";cursor:pointer;&:hover{color:",";}}}.setting-option{display:flex;align-items:center;.RadioGroup{.Radio{display:flex;align-items:center;margin-right:",";.Check-state{transform:translateY(0);}}}}}&.theme{margin-top:36px;li{height:42px;.theme-options{display:flex;span{display:flex;align-items:center;justify-content:center;width:60px;height:42px;margin-right:24px;border-radius:6px;cursor:pointer;&:lang(en){margin-right:15px;}svg{width:54px;height:36px;}&.is-selected{border:2px solid ",';}}}}}}}&:lang(ja){width:430px;margin-left:-215px;}.Radio{margin-right:16px;&:lang(en){margin-right:8px;min-width:74px;}}[role~="tooltip"][data-microtip-position="right"]::after{border-radius:4px;left:auto;right:0;top:',";}"],t=>t.theme.color_bg_white,t=>"1px solid "+t.theme.color_bg_border_01,t=>t.theme.color_text_L1,t=>t.theme.color_text_L2,t=>t.theme.color_text_L1,t=>t.theme.color_text_L1,t=>t.theme.color_bg_border_01,t=>t.theme.color_bg_card,t=>"1px solid "+t.theme.color_bg_border_01,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_text_L1,t=>t.theme.color_text_L3,t=>t.theme.color_text_L1,mu&&"8px",t=>t.theme.color_text_link_normal,mu?"calc(100% + 8px)":"calc(100% + 10px)");var op=e(66802),D2=e(76995),zu=e(10312),jc=e(60531);const B2=(0,i.jsxs)("svg",{width:"54",height:"36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_16706:4215)",children:[(0,i.jsx)("rect",{width:"54",height:"36",rx:"4",fill:"#fff"}),(0,i.jsx)("g",{filter:"url(#filter0_f_16706:4215)",children:(0,i.jsx)("circle",{cx:"19.442",cy:"23.713",r:"33.369",transform:"rotate(-.094 19.442 23.713)",fill:"url(#paint0_linear_16706:4215)",fillOpacity:".8"})}),(0,i.jsx)("g",{filter:"url(#filter1_f_16706:4215)",children:(0,i.jsx)("path",{d:"M30.296-20.945l29.166 50.326-58.167.096 29-50.422z",fill:"url(#paint1_linear_16706:4215)",fillOpacity:".7"})}),(0,i.jsx)("g",{filter:"url(#filter2_b_16706:4215)",children:(0,i.jsx)("rect",{x:"11",y:"11",width:"53",height:"36",rx:"5",fill:"#fff",fillOpacity:".9"})})]}),(0,i.jsxs)("defs",{children:[(0,i.jsxs)("filter",{id:"filter0_f_16706:4215",x:"-30.941",y:"-26.671",width:"100.766",height:"100.767",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,i.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,i.jsx)("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,i.jsx)("feGaussianBlur",{stdDeviation:"8.507",result:"effect1_foregroundBlur_16706:4215"})]}),(0,i.jsxs)("filter",{id:"filter1_f_16706:4215",x:"-19.802",y:"-42.041",width:"100.36",height:"92.615",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,i.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,i.jsx)("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,i.jsx)("feGaussianBlur",{stdDeviation:"10.548",result:"effect1_foregroundBlur_16706:4215"})]}),(0,i.jsxs)("filter",{id:"filter2_b_16706:4215",x:"1",y:"1",width:"73",height:"56",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,i.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,i.jsx)("feGaussianBlur",{in:"BackgroundImage",stdDeviation:"5"}),(0,i.jsx)("feComposite",{in2:"SourceAlpha",operator:"in",result:"effect1_backgroundBlur_16706:4215"}),(0,i.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_backgroundBlur_16706:4215",result:"shape"})]}),(0,i.jsxs)("linearGradient",{id:"paint0_linear_16706:4215",x1:"-7.028",y1:"-5.057",x2:"39.549",y2:"57.081",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#6100FF"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#0FF",stopOpacity:"0"})]}),(0,i.jsxs)("linearGradient",{id:"paint1_linear_16706:4215",x1:"30.296",y1:"-20.945",x2:"30.406",y2:"46.221",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#0075FF"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#00A3FF",stopOpacity:"0"})]}),(0,i.jsx)("clipPath",{id:"clip0_16706:4215",children:(0,i.jsx)("rect",{width:"54",height:"36",rx:"4",fill:"#fff"})})]})]}),R2=(0,i.jsxs)("svg",{width:"54",height:"36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_16706:4223)",children:[(0,i.jsx)("rect",{width:"54",height:"36",rx:"4",fill:"#030A12"}),(0,i.jsx)("g",{filter:"url(#filter0_f_16706:4223)",children:(0,i.jsx)("circle",{cx:"25.428",cy:"22.291",r:"36.428",fill:"url(#paint0_linear_16706:4223)"})}),(0,i.jsx)("g",{filter:"url(#filter1_f_16706:4223)",children:(0,i.jsx)("path",{d:"M37.338-23.945l31.75 54.993h-63.5l31.75-54.993z",fill:"url(#paint1_linear_16706:4223)"})}),(0,i.jsx)("g",{filter:"url(#filter2_bi_16706:4223)",children:(0,i.jsx)("rect",{x:"11",y:"11",width:"53",height:"36",rx:"4",fill:"#000",fillOpacity:".9"})})]}),(0,i.jsxs)("defs",{children:[(0,i.jsxs)("filter",{id:"filter0_f_16706:4223",x:"-31.004",y:"-34.142",width:"112.866",height:"112.866",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,i.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,i.jsx)("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,i.jsx)("feGaussianBlur",{stdDeviation:"10.002",result:"effect1_foregroundBlur_16706:4223"})]}),(0,i.jsxs)("filter",{id:"filter1_f_16706:4223",x:"-9.415",y:"-38.948",width:"93.507",height:"85",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,i.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,i.jsx)("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,i.jsx)("feGaussianBlur",{stdDeviation:"7.502",result:"effect1_foregroundBlur_16706:4223"})]}),(0,i.jsxs)("filter",{id:"filter2_bi_16706:4223",x:"1",y:"1",width:"73",height:"56",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,i.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,i.jsx)("feGaussianBlur",{in:"BackgroundImage",stdDeviation:"5"}),(0,i.jsx)("feComposite",{in2:"SourceAlpha",operator:"in",result:"effect1_backgroundBlur_16706:4223"}),(0,i.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_backgroundBlur_16706:4223",result:"shape"}),(0,i.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,i.jsx)("feOffset",{}),(0,i.jsx)("feGaussianBlur",{stdDeviation:".5"}),(0,i.jsx)("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),(0,i.jsx)("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.3 0"}),(0,i.jsx)("feBlend",{in2:"shape",result:"effect2_innerShadow_16706:4223"})]}),(0,i.jsxs)("linearGradient",{id:"paint0_linear_16706:4223",x1:"-3.469",y1:"-9.117",x2:"47.379",y2:"58.72",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#6100FF"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#0FF",stopOpacity:"0"})]}),(0,i.jsxs)("linearGradient",{id:"paint1_linear_16706:4223",x1:"37.338",y1:"-23.945",x2:"37.338",y2:"49.379",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#0075FF"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#00A3FF",stopOpacity:"0"})]}),(0,i.jsx)("clipPath",{id:"clip0_16706:4223",children:(0,i.jsx)("rect",{width:"54",height:"36",rx:"4",fill:"#fff"})})]})]});class j2 extends r.PureComponent{constructor(n){super(n),(0,p.A)(this,"LINK_OPTIONS",[{label:I18N.PreferenceBar.not_show,value:"0"},{label:I18N.PreferenceBar.lightning,value:"1"},{label:I18N.PreferenceBar.link_line_lightning,value:"2"}]),(0,p.A)(this,"SELECT_OPTIONS",[{label:I18N.PreferenceBar.intersect_select,value:"0"},{label:I18N.PreferenceBar.contain_select,value:"1"}]),(0,p.A)(this,"LINK_TRANSITION_OPTIONS",[{label:I18N.PreferenceBar.link_no_ani,value:"0"},{label:I18N.PreferenceBar.link_move,value:"1"}]),(0,p.A)(this,"NAV_LIST_OPTIONS",[{nav:"common",text:I18N.PreferenceBar.nav_common,icon:"design/preferencePanel/nav/common"},{nav:"actions",text:I18N.PreferenceBar.actions,icon:"design/preferencePanel/nav/actions"},{nav:"text",text:I18N.PreferenceBar.text,icon:"design/preferencePanel/nav/text"}]),(0,p.A)(this,"DEFAULT_FONT_SIZE_KEY_2_TEXT_INHERIT_KEY_MAP",{[jc.p9]:op.qL.Text,[jc.MD]:op.qL.Annotation,[jc.mG]:op.qL.Elbow}),(0,p.A)(this,"setElementRef",s=>this.$element=s),(0,p.A)(this,"handTooltip",()=>{const s=this.$element&&this.$element.querySelector(".link-action > label:nth-child(3)");s&&(s.setAttribute("aria-label",I18N.PreferenceBar.link_warn_tips),s.setAttribute("data-microtip-position","right"),s.setAttribute("role","tooltip"))}),(0,p.A)(this,"handleTheme",s=>{const{theme:c}=s.currentTarget.dataset;this.props.dispatch({type:"entry:update:preference",payload:{theme:c}}),this.props.dispatch({type:"entry:init:ruler:canvas"})}),(0,p.A)(this,"handleRulerChange",s=>{this.props.dispatch({type:"entry:update:preference",payload:{ruler:s,show_ruler_line:!0}})}),(0,p.A)(this,"handleDragModeChange",s=>{this.props.dispatch({type:"entry:update:preference",payload:{show_drag_mode:s}})}),(0,p.A)(this,"handleInheritTextStyleChange",s=>{(0,op.SO)(s),this.props.dispatch({type:"entry:update:preference",payload:{inherit_text_style:s}})}),(0,p.A)(this,"handleClosePanel",()=>{this.props.dispatch({type:"preference:open:appearance"})}),(0,p.A)(this,"handleLinkDisplayChange",s=>{const{dispatch:c}=this.props;c({type:"entry:update:preference",payload:{link_display:Number(s)}}),c({type:"entry:refresh:link-list"})}),(0,p.A)(this,"handleSelectChange",s=>{const{dispatch:c}=this.props;c({type:"entry:update:preference",payload:{contain_select:!!+s}})}),(0,p.A)(this,"handleStateLinkChange",s=>{const{dispatch:c}=this.props;c({type:"entry:update:preference",payload:{state_link_default_transition:Number(s)}})}),(0,p.A)(this,"handleOpenOverlayDefaultTransitionChange",s=>{const{dispatch:c}=this.props;c({type:"entry:update:preference",payload:{open_overlay_default_transition:Number(s)}})}),(0,p.A)(this,"handleSwapOverlayDefaultTransitionChange",s=>{const{dispatch:c}=this.props;c({type:"entry:update:preference",payload:{swap_overlay_default_transition:Number(s)}})}),(0,p.A)(this,"handlePanelLinkChange",s=>{const{dispatch:c}=this.props;c({type:"entry:update:preference",payload:{panel_link_default_transition:Number(s)}})}),(0,p.A)(this,"handleUseNativeEyedropperChange",s=>{this.props.dispatch({type:"entry:update:preference",payload:{use_native_eyedropper:s}})}),(0,p.A)(this,"handleNavList",s=>{const{nav:c}=s.currentTarget.dataset;this.props.dispatch({type:"preference:update:state",payload:{preferenceNav:c}})}),(0,p.A)(this,"handleTextDefaultSetting",(s,c,d)=>{(0,jc.$R)(s,c,d),this.props.dispatch({type:"entry:update:preference",payload:{[s]:JSON.stringify(c)}})}),(0,p.A)(this,"handleTextDefaultSize",(s,c)=>{const{defaultFontSize:d}=this.props;this.handleTextDefaultSetting(jc.Q6,{...jc.bb[jc.Q6],...d,[s]:Number(c)},()=>{(0,op.p_)(this.DEFAULT_FONT_SIZE_KEY_2_TEXT_INHERIT_KEY_MAP[s])})}),(0,p.A)(this,"handleTextDefaultFamily",s=>{const{fontWeight:c,fontStyle:d}=s;c&&(s.bold=c==="bold"),d&&(s.italic=d==="italic"),this.handleTextDefaultSetting(jc.RF,s,()=>{(0,op.p_)()})}),(0,p.A)(this,"renderCommonPanelElement",()=>{const{theme:s,isRulerShow:c,isDragModeShow:d,isContainSelect:w,linkDisplayIndex:P,useNativeEyedropper:F}=this.props,{LINK_OPTIONS:X,SELECT_OPTIONS:ee}=this;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("ul",{className:"setting-list theme",children:(0,i.jsxs)("li",{children:[(0,i.jsx)("span",{className:"setting-item",children:I18N.PreferenceBar.theme}),(0,i.jsxs)("div",{className:"theme-options",children:[(0,i.jsx)("span",{"data-theme":"light",className:f()({"is-selected":s==="light"}),onClick:this.handleTheme,children:B2}),(0,i.jsx)("span",{"data-theme":"dark",className:f()({"is-selected":s==="dark"}),onClick:this.handleTheme,children:R2})]})]})}),(0,i.jsx)("div",{className:"line common-panel"}),(0,i.jsxs)("ul",{className:"setting-list common",children:[(0,i.jsxs)("li",{children:[(0,i.jsx)("span",{className:"setting-item",children:I18N.PreferenceBar.link}),(0,i.jsx)("span",{className:"setting-option",children:(0,i.jsx)(ys.A,{className:"actions link-action",size:"small",optionList:X,value:String(P),onToggle:this.handleLinkDisplayChange})})]}),(0,i.jsxs)("li",{children:[(0,i.jsxs)("span",{className:"setting-item",children:[I18N.PreferenceBar.select,(0,i.jsx)(Cd.A,{content:I18N.PreferenceBar.tips_for_select,direction:"down",children:(0,i.jsx)(Je.C,{className:"guides-svg",name:"design/preferencePanel/nav/tips"})})]}),(0,i.jsx)("span",{className:"setting-option",children:(0,i.jsx)(ys.A,{className:"actions link-action",size:"small",optionList:ee,value:String(+w),onToggle:this.handleSelectChange})})]}),(0,i.jsxs)("li",{children:[(0,i.jsx)("span",{className:"setting-item",children:I18N.PreferenceBar.scale_length}),(0,i.jsx)("span",{className:"setting-option has-switch",children:(0,i.jsx)(rh.A,{size:"small",isIOS:!0,isChecked:c,onChange:this.handleRulerChange})})]}),(0,i.jsxs)("li",{children:[(0,i.jsxs)("span",{className:"setting-item",children:[I18N.PreferenceBar.drag_mode,(0,i.jsx)(Cd.A,{content:I18N.PreferenceBar.tips_for_drag_mode,direction:"down",children:(0,i.jsx)(Je.C,{className:"guides-svg",name:"design/preferencePanel/nav/tips"})})]}),(0,i.jsx)("span",{className:"setting-option has-switch",children:(0,i.jsx)(rh.A,{size:"small",isIOS:!0,isChecked:d,onChange:this.handleDragModeChange})})]}),(0,R0.uF)()&&(0,R0.b8)()&&(0,i.jsxs)("li",{children:[(0,i.jsx)("span",{className:"setting-item",children:"\u53D6\u8272\u5668\u517C\u5BB9\u6A21\u5F0F"}),(0,i.jsx)("span",{className:"setting-option has-switch",children:(0,i.jsx)(rh.A,{size:"small",isIOS:!0,isChecked:F,onChange:this.handleUseNativeEyedropperChange})})]})]})]})}),(0,p.A)(this,"renderActionsPanelElement",()=>{const{stateLinkDefaultTransition:s,panelLinkDefaultTransition:c,openOverlayDefaultTransition:d,swapOverlayDefaultTransition:w}=this.props,{LINK_TRANSITION_OPTIONS:P}=this;return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("ul",{className:"setting-list action",children:[(0,i.jsx)("li",{children:(0,i.jsx)("span",{className:"setting-item",style:{fontWeight:500},children:I18N.PreferenceBar.panel_default_ani})}),(0,i.jsxs)("li",{children:[(0,i.jsx)("span",{className:"setting-item",children:I18N.PreferenceBar.switch_artboard}),(0,i.jsx)("span",{className:"setting-option",children:(0,i.jsx)(ys.A,{className:"actions link-action",size:"small",optionList:P,value:String(s),onToggle:this.handleStateLinkChange})})]}),(0,i.jsxs)("li",{children:[(0,i.jsx)("span",{className:"setting-item",children:I18N.PreferenceBar.link_widget_change}),(0,i.jsx)("span",{className:"setting-option",children:(0,i.jsx)(ys.A,{className:"actions link-action",size:"small",optionList:P,value:String(c),onToggle:this.handlePanelLinkChange})})]}),(0,i.jsxs)("li",{children:[(0,i.jsx)("span",{className:"setting-item",children:I18N.SettingPanel.open_overlay}),(0,i.jsx)("span",{className:"setting-option",children:(0,i.jsx)(ys.A,{className:"actions link-action",size:"small",optionList:P,value:String(d),onToggle:this.handleOpenOverlayDefaultTransitionChange})})]}),(0,i.jsxs)("li",{children:[(0,i.jsx)("span",{className:"setting-item",children:I18N.SettingPanel.swap_overlay}),(0,i.jsx)("span",{className:"setting-option",children:(0,i.jsx)(ys.A,{className:"actions link-action",size:"small",optionList:P,value:String(w),onToggle:this.handleSwapOverlayDefaultTransitionChange})})]})]})})}),(0,p.A)(this,"renderTextPanelElement",()=>{const{isInheritTextStyle:s,defaultFontFamily:c,defaultFontSize:d}=this.props,{fontFamily:w,fontWeight:P,fontStyle:F}={...jc.bb[jc.RF],...c},{richText:X,annotation:ee,elbow:pe}={...jc.bb[jc.Q6],...d};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("ul",{className:"setting-list text-style-inherit",children:(0,i.jsxs)("li",{children:[(0,i.jsxs)("span",{className:"setting-item",children:[I18N.PreferenceBar.text_style_inherit,(0,i.jsx)(Cd.A,{content:I18N.PreferenceBar.tips_for_text_style_inherit,direction:"down",children:(0,i.jsx)(Je.C,{className:"guides-svg",name:"design/preferencePanel/nav/tips"})})]}),(0,i.jsx)("span",{className:"setting-option has-switch",children:(0,i.jsx)(rh.A,{size:"small",isIOS:!0,isChecked:s,onChange:this.handleInheritTextStyleChange})})]})}),(0,i.jsx)("div",{className:"line text-panel"}),(0,i.jsxs)("ul",{className:"setting-list font-default-setting",children:[(0,i.jsx)("li",{children:(0,i.jsxs)("span",{className:"setting-item",style:{fontWeight:500},children:[I18N.PreferenceBar.text_default_value,(0,i.jsx)(Cd.A,{content:(0,i.jsx)("div",{style:{padding:"8px 10px"},dangerouslySetInnerHTML:{__html:I18N.PreferenceBar.tips_for_text_default_value}}),direction:"down",children:(0,i.jsx)(Je.C,{className:"guides-svg",name:"design/preferencePanel/nav/tips"})})]})}),(0,i.jsxs)("li",{children:[(0,i.jsx)("span",{className:"setting-item",children:I18N.PreferenceBar.default_font_family}),(0,i.jsx)("span",{className:"setting-option",children:(0,i.jsx)(D2.X,{dispatch:()=>null,wbiVersion:3,fontFamily:w,fontWeight:P,fontStyle:F,onChangeBatch:ye=>this.handleTextDefaultFamily(ye),positionRelative:{yOffset:114,xOffset:251},subMenuDirection:"left",subMenuLeftOffset:16,isShowFontWeightLabel:!0})})]}),(0,i.jsxs)("li",{children:[(0,i.jsx)("span",{className:"setting-item",children:I18N.PreferenceBar.default_font_size_for_richText}),(0,i.jsx)("span",{className:"setting-option",children:(0,i.jsx)(zu.A,{disabled:!1,fontSize:X,handleChange:ye=>this.handleTextDefaultSize(jc.p9,ye),less12UseTooltip:!0})})]}),(0,i.jsxs)("li",{children:[(0,i.jsx)("span",{className:"setting-item",children:I18N.PreferenceBar.default_font_size_for_annotation}),(0,i.jsx)("span",{className:"setting-option",children:(0,i.jsx)(zu.A,{disabled:!1,fontSize:ee,handleChange:ye=>this.handleTextDefaultSize(jc.MD,ye),less12UseTooltip:!0})})]}),(0,i.jsxs)("li",{children:[(0,i.jsx)("span",{className:"setting-item",children:I18N.PreferenceBar.default_font_size_for_elbow}),(0,i.jsx)("span",{className:"setting-option",children:(0,i.jsx)(zu.A,{disabled:!1,fontSize:pe,handleChange:ye=>this.handleTextDefaultSize(jc.mG,ye),less12UseTooltip:!0})})]})]})]})}),(0,p.A)(this,"renderRightPanelElement",()=>{const{preferenceNav:s}=this.props;return{common:this.renderCommonPanelElement,actions:this.renderActionsPanelElement,text:this.renderTextPanelElement}[s]()}),this.bindTooltip=!1,this.timer=void 0,this.tmpDefaultFontFamilyMap={}}componentDidUpdate(){this.bindTooltip||(this.handTooltip(),this.bindTooltip=!0)}componentWillUnmount(){this.timer&&clearTimeout(this.timer)}render(){const{isShow:n,preferenceNav:s}=this.props,{NAV_LIST_OPTIONS:c}=this;return n?(0,i.jsxs)(Vm,{ref:this.setElementRef,children:[(0,i.jsx)("a",{className:"icon-box",onClick:this.handleClosePanel,children:(0,i.jsx)(Je.C,{className:"times-icon",name:"general/times"})}),(0,i.jsxs)("div",{className:"left-nav",children:[(0,i.jsx)("p",{className:"panel-title",children:I18N.PreferenceBar.favorite_set}),(0,i.jsx)("ul",{className:"nav-list",children:c.map((d,w)=>(0,i.jsxs)("li",{className:f()({"is-active":s===d.nav}),"data-nav":d.nav,onClick:this.handleNavList,children:[(0,i.jsx)(Je.C,{name:d.icon}),(0,i.jsx)("span",{children:d.text})]},w))})]}),(0,i.jsx)("div",{className:"right-panel",children:this.renderRightPanelElement()})]}):null}}const O2=t=>O1.A[(0,T.O4)(t)].color_btn_secondary_active,F2=(0,m.Mz)([T.vA,T.qT,T.PI,T.eZ,T.O4,O2,T.vZ,T.Jv,S.W4,T.EK,T.Bl,T.D9,T.KV,T.fg,T.AM,S.PL,T.tW,T.AJ],(t,n,s,c,d,w,P,F,X,ee,pe,ye,Ae,we,_e,Fe,Ye,He)=>{const{isExperience:tt}=X;return{isShow:t,isRulerShow:n,isDragModeShow:s,isInheritTextStyle:c,theme:d,canvasBg:w,isContainSelect:P,linkDisplayIndex:F,isExperience:tt,stateLinkDefaultTransition:ee,panelLinkDefaultTransition:pe,openOverlayDefaultTransition:ye,swapOverlayDefaultTransition:Ae,useNativeEyedropper:_e,preferenceNav:we,rootProject:Fe,defaultFontFamily:Ye,defaultFontSize:He}}),U2=(0,o.Ng)(t=>F2(t))(j2);var F1=e(46479);const z2=u.Ay.div.withConfig({displayName:"styles__StyledLoadingOverlay",componentId:"sc-1mzdeoi-0"})(["position:fixed;z-index:1051;top:0;left:0;bottom:0;right:0;background:",";display:flex;flex-direction:column;justify-content:center;align-items:center;.loading-indicator{margin-top:-20vh;width:70px;height:70px;}.message{margin-top:10px;font-size:16px;line-height:28px;color:",";}"],t=>t.theme.color_loading_mask,t=>t.theme.color_text_L1);function U1(t,n){n===void 0&&(n=document.body);const s=r.useRef(document.createElement("div"));return(0,r.useEffect)(()=>(s.current.id=t,n.appendChild(s.current),()=>{s.current.remove()}),[s,t,n]),s.current}function Wu(){const[t,n]=(0,r.useState)(!1),[s,c]=(0,r.useState)("");MB.safeLoading=w=>{w===!1?n(!1):(c(w),n(!0))},MB.safeDelayLoading=w=>{w===!1?setTimeout(()=>{n(!1)},350):(c(w),n(!0))};const d=U1("mb-loading-overlay");return(0,dr.createPortal)(t&&(0,i.jsxs)(z2,{isOpen:t,onClose:()=>n(!1),children:[(0,i.jsx)(F1.Tw,{className:"loading-indicator"}),(0,i.jsx)("span",{className:"message",dangerouslySetInnerHTML:{__html:s}})]}),d)}var g1=e(1540),tc=e(5115);const W2=u.Ay.div.withConfig({displayName:"styles__StyledSliderBar",componentId:"sc-1bn9bu1-0"})(["display:flex;height:100%;align-items:center;position:relative;padding-left:24px;.tab-item{color:",";font-size:14px;font-family:PingFang SC;cursor:pointer;height:100%;display:flex;align-items:center;&:not(:first-child){margin-left:14px;}&.tab-sel{color:",";font-weight:500;border-top:2px solid rgba(0,0,0,0);border-bottom:2px solid ",";box-sizing:border-box;}}"],t=>t.theme.color_share_switch_sel_color,t=>t.theme.color_text_L1,t=>t.theme.color_text_L0),V2=t=>{let{tabs:n,handleChangeTabIndex:s,tabIndex:c,className:d}=t;return(0,i.jsx)(W2,{className:d,children:n.map((w,P)=>(0,i.jsx)("div",{className:f()("tab-item",c===P&&"tab-sel"),id:"tab-item-"+P,onClick:()=>s(P),children:w},P))})},H2=(0,r.memo)(V2);var Dr=e(4114);const gu=["Selena Ellen","Wallis Bird","David Robinson","Clare","Paul Harrod","Hugh Johnson","Zora Christopher","Maxwell Raglan","Gabrielle Monroe","Jennifer Belle","Nelly Jefferson","Helen","Tony Stark","Steve Rogers","Thor","Bruce Banner","Natasha Romanoff","Clint Barton","James Rhodes","Scott Lang","Carol Danvers","Harold Hogan","Stephen Strange","Peter Parker","Wanda Maximoff","Sam Wilson","Bucky Barnes","Peter Quill","Nick Fury","Loki","Gamora","Thanos"],f1=["\u738B\u6CFD","\u5B59\u5FC6\u67AB","\u738B\u4E50\u5EB7","\u5468\u4E50\u5FC3","\u738B\u7B11\u5929","\u80E1\u5141","\u738B\u6F2B","\u8D75\u96E8","\u674E\u4E66\u6613","\u674E\u5929\u6CFD","\u674E\u6021\u60A6","\u6F58\u590F\u5F64","\u674E\u8D6B","\u6BB5\u95EE\u8587","\u5085\u5F6D\u8584","\u5E9E\u6167","\u7EAA\u5E7F","\u987E\u4F26","\u6768\u9759\u4E91","\u4E01\u66FC\u5BB9","\u5F20\u4E09","\u674E\u56DB","\u738B\u4E94","\u5218\u5927\u5927","\u80E1\u5C0F\u5C0F"],z1=ENV.IS_WONDER_SHARE?["Ace","Bear","Champ","Duke","Flash","Gigi","Hank","Izzy","Jazz","Kiki","Leo","Max","Nova","Ozzy","Pepper","Quinn","Remy","Spike","Taz","Ziggy"]:["\u7528\u623753252352","\u7528\u62371937822","\u8FD9\u662F\u4E00\u4E2A\u5F88\u957F\u7684ID","\u5C0F\u5F20\u5C0F\u5F20\u81EA\u6709\u4E3B\u5F20","\u5C0F\u5468\u5C0F\u5468\u62DB\u5F85\u4E0D\u5468","\u5C0F\u5F90\u5C0F\u5F90\u662F\u6761\u54B8\u9C7C","\u58A8\u8FF9\u7684\u7F57\u590F","\u4ECE\u4F17\u7684\u963F\u5E0C","\u5931\u7720\u5F17\u6D1B\u4F0A\u5FB7","\u81EA\u4FE1\u963F\u5FB7\u52D2"],Qh=["123123123@qq.com","987987987@qq.com","135792468@qq.com","246813579@qq.com","192837465@qq.com","asdf@gmail.com","zxcv.b@gmail.com","qwer@gmail.com","awsd.f@gmail.com","ta.rewsf@gmail.com","fdsfwe_sdd@gmail.com","g.hjkl@163.com","rewqr_88@163.com","panzer@163.com","nuttertools@163.com","leavemealone@163.com","bigbang@163.com","link@company.name","zelta@company.name","mipha@company.name","urbosa@company.name","revali@company.name","daruk@company.name"],fu=["021-9100212","021-8954555","021-8971245","0431-76782134","0431-90892314","0431-32413098","0831-29922849","0831-33319000","025-78012123","025-33312231"],Vu=["19113212388","19289999000","19333312231","19490982231","19533319000","19612348970","19729922849","19876782134","19578012123","19434129071"],Hu=ENV.IS_WONDER_SHARE?["The Importance of User-Centered Design in Product Development","How to Conduct Effective User Research for Product Design","The Role of Prototyping in Product Design","Designing for Accessibility: Inclusive Product Design","Sustainable Product Design: Balancing Functionality and Environmental Impact","The Future of Product Design: Trends and Predictions","Designing for Emotion: The Power of Emotional Design in Product Development","Designing for Mobile: Best Practices for Mobile Product Design","The Psychology of Color in Product Design","Designing for Brand Identity: The Role of Product Design in Branding"]:["\u6700\u4F73\u4EA7\u54C1\u7BA1\u7406\u4E66\u7C4D\u5728\u6B64\uFF0C\u83B7\u53D6\u804C\u573A\u4E0A\u5347\u79D8\u7C4D","\u63A2\u7D22\u4E865\u79CD\u6539\u5584\u79FB\u52A8\u7528\u6237\u4F53\u9A8C\u7684\u7EDD\u4F73\u505A\u6CD5\uFF0C\u8FDB\u6765\u5B66\uFF01","\u3010\u901A\u77E5\u3011\u5FC5\u8BFB\uFF0C\u518D\u4E0D\u770B\u5C31\u665A\u5566","\u5E72\u8D27|\u5B66\u4F1A\u5199\u7B80\u5386\uFF0C\u8F7B\u677E\u62FFoffer","\u5DE5\u4F5C\u8BA1\u5212\u4E0D\u4F1A\u5199\uFF1F\u8FD9\u4E2A\u8D85\u8D5E\u5DE5\u5177\u9001\u7ED9\u4F60","\u6765\u5B66\u4E60\uFF0110\u6761\u4F60\u7EDD\u5BF9\u4E0D\u80FD\u6253\u7834\u7684\u4EA4\u4E92\u8BBE\u8BA1\u89C4\u5219","\u4F60\u5FC5\u987B\u77E5\u9053\u76848\u79CD\u4EA7\u54C1\u8BBE\u8BA1\u80FD\u529B\u63D0\u5347\u6280\u5DE7","\u4EA7\u54C1\u7ECF\u7406\u5FC5\u5907\u5E72\u8D27\u2014\u2014\u5B9E\u7528\u9AD8\u6548\u6C9F\u901A\u8BDD\u672F","\u6253\u5DE5\u4EBA\u5FC5\u5907\uFF01\u63D0\u9AD8\u5DE5\u4F5C\u6548\u7387\u7684\u7535\u8111\u5FEB\u6377\u952E","\u9762\u8BD5\u653B\u7565\uFF1A\u8D85\u7EA7\u52A0\u5206\u768410\u4E2A\u9762\u8BD5\u6EE1\u5206\u5C0F\u6280\u5DE7"],W1=ENV.IS_WONDER_SHARE?[["Putting the user at the center of the design process is crucial for successful product development."],["Effective user research is essential for creating products that meet user needs and preferences."],["Prototyping is a valuable tool in the product design process, allowing designers to test and refine their ideas before finalizing a design."],["Designing products with accessibility in mind is important for creating inclusive and user-friendly products."],["Sustainable product design is about balancing the functionality of a product with its environmental impact"],["Keeping up with design trends and predicting future changes is important for staying ahead in the product design industry"],["Emotional design can create a stronger connection between users and products, leading to increased engagement and loyalty"],["Designing for mobile requires a unique set of considerations and best practices to ensure a seamless user experience"],["The use of color in product design can have a significant impact on user perception and behavior"],["Product design plays a crucial role in establishing and communicating a brand's identity"]]:[["\u5982\u679C\u4F60\u65E0\u6CD5\u7B80\u6D01\u7684\u8868\u8FBE\u4F60\u7684\u60F3\u6CD5\uFF0C\u90A3\u53EA\u8BF4\u660E\u4F60\u8FD8\u4E0D\u591F\u4E86\u89E3\u5B83\u3002","-- \u963F\u5C14\u4F2F\u7279\xB7\u7231\u56E0\u65AF\u5766"],["Imagination is more important than knowledge.","\u60F3\u8C61\u529B\u6BD4\u77E5\u8BC6\u66F4\u91CD\u8981\u3002"],["Small is the number of people who see with their eyes and think with their minds.","\u53EA\u6709\u5C11\u6570\u4EBA\u5728\u7528\u4ED6\u4EEC\u81EA\u5DF1\u7684\u773C\u775B\u89C2\u5BDF\u3001\u7528\u4ED6\u4EEC\u81EA\u5DF1\u7684\u5934\u8111\u601D\u8003\u3002"],["Logic will get you from A to B. Imagination will take you everywhere.","\u903B\u8F91\u4F1A\u628A\u4F60\u4ECEA\u5E26\u5230B\uFF0C\u60F3\u8C61\u529B\u80FD\u5E26\u4F60\u53BB\u4EFB\u4F55\u5730\u65B9\u3002"],["\u201CA consistent experience is a better experience.\u201D\u200A\u2014\u200AMark Eberman","\u201C\u4E00\u81F4\u7684\u4F53\u9A8C\u662F\u66F4\u597D\u7684\u4F53\u9A8C\u3002\u201D"],["A problem well stated is a problem half solved.\u201D\u200A\u2014\u200ACharles Kettering","\u201C\u9610\u8FF0\u6E05\u695A\u95EE\u9898\u5C31\u89E3\u51B3\u4E86\u4E00\u534A\u3002\u201D"],["\u201CCreativity is allowing yourself to make mistakes. Design is knowing which ones to keep.\u201D\u200A\u2014\u200AScott Adams","\u201C\u521B\u9020\u5141\u8BB8\u72AF\u9519\uFF0C\u8BBE\u8BA1\u8981\u77E5\u9053\u4FDD\u7559\u54EA\u4E9B\u3002\u201D"],["\u201CWant your users to fall in love with your designs? Fall in love with your users.\u201D\u200A\u2014\u200ADana Chisnell","\u201C\u60F3\u8BA9\u7528\u6237\u7231\u4E0A\u4F60\u7684\u8BBE\u8BA1\uFF0C\u5148\u7231\u4E0A\u4F60\u7684\u7528\u6237\u3002\u201D"],["\u201CGood design is the most important way to differentiate ourselves from our competitors.\u201D\u200A\u2014\u200AYun Jong Yong","\u201C\u597D\u7684\u8BBE\u8BA1\u662F\u6211\u4EEC\u4E0E\u7ADE\u4E89\u5BF9\u624B\u4FDD\u6301\u5DEE\u8DDD\u6700\u91CD\u8981\u7684\u65B9\u5F0F\u3002\u201D"],["\u201CIf you think good design is expensive, you should look at the cost of bad design.\u201DDr. Ralf Speth","\u201C\u5982\u679C\u4F60\u89C9\u5F97\u597D\u7684\u8BBE\u8BA1\u65F6\u6602\u8D35\u7684\uFF0C\u4F60\u5E94\u8BE5\u770B\u770B\u574F\u8BBE\u8BA1\u7684\u6210\u672C\u3002\u201D"],["\u201CLike all forms of design, visual design is about problem-solving, not about personal preference or unsupported opinion.\u201D\u200A\u2014\u200ABob Baxley","\u201C\u50CF\u5176\u4ED6\u8BBE\u8BA1\u4E00\u6837\uFF0C\u89C6\u89C9\u8BBE\u8BA1\u4E5F\u662F\u89E3\u51B3\u95EE\u9898\uFF0C\u4E0D\u662F\u4E2A\u4EBA\u559C\u597D\u3002\u201D"],["\u201CBecause every person knows what he likes, every person thinks he is an expert on user interfaces.\u201D\u200A\u2014\u200APaul Heckel","\u201C\u56E0\u4E3A\u6BCF\u4E2A\u4EBA\u90FD\u77E5\u9053\u81EA\u5DF1\u559C\u6B22\u4EC0\u4E48\uFF0C\u6240\u4EE5\u6BCF\u4E2A\u4EBA\u90FD\u89C9\u5F97\u81EA\u5DF1\u662F\u7528\u6237\u754C\u9762\u4E13\u5BB6\u3002\u201D"],["\u201CIf you find an element of your interface requires instructions, then you need to redesign it.\u201D\u200A\u2014\u200ADan Rubin","\u201C\u5982\u679C\u4F60\u53D1\u73B0\u4F60\u754C\u9762\u4E2D\u67D0\u4E2A\u5143\u7D20\u9700\u8981\u8BF4\u660E\uFF0C\u4F60\u9700\u8981\u91CD\u65B0\u8BBE\u8BA1\u3002\u201D"],["\u201CGenius is the ability to reduce the complicated to the simple.\u201D\u200A\u2014\u200AC.W. Ceram","\u201C\u5929\u624D\u5C31\u662F\u5C06\u590D\u6742\u95EE\u9898\u7B80\u5355\u5316\u7684\u4EBA\u3002\u201D"]],Ku=ENV.IS_WONDER_SHARE?["www.behance.net","www.dribbble.com","www.awwwards.com","www.design-milk.com","www.core77.com","www.dezeen.com","www.smashingmagazine.com","www.designboom.com","www.creativebloq.com","mockitt.wondershare.com"]:["https://www.baidu.com","https://www.google.com","https://www.modao.cc","https://36kr.com/","https://www.qq.com/","https://www.sina.com.cn/","https://www.163.com/","https://www.taobao.com/","https://www.bilibili.com/","https://www.douban.com/","http://www.people.com.cn/","http://www.eastmoney.com/","https://www.zhihu.com/","https://www.youku.com/","http://www.iqiyi.com/","https://www.kickstarter.com/","https://www.behance.net/","https://dribbble.com/","https://www.youtube.com/","https://muz.li/"],yu=ENV.IS_WONDER_SHARE?{city:["1600 Pennsylvania Avenue NW, Washington, DC 20500","221B Baker Street, London NW1 6XE, United Kingdom","1 Infinite Loop, Cupertino, CA 95014","1600 Amphitheatre Parkway, Mountain View, CA 94043","350 Fifth Avenue, New York, NY 10118","123 Main Street, Anytown, USA 12345","555 Park Avenue, Suite 101, Cityville, CA 98765","987 Elm Street, Apt. 3B, Smalltown, IL 54321","2468 Oak Drive, Unit 6, Bigcity, NY 12345","789 Maple Lane, Suite 2A, Villageville, TX 67890"]}:{city:["\u5317\u4EAC\u5E02\u671D\u9633\u533A","\u5317\u4EAC\u5E02\u6D77\u6DC0\u533A","\u4E0A\u6D77\u5E02\u666E\u9640\u533A","\u4E0A\u6D77\u5E02\u6D66\u4E1C\u65B0\u533A","\u6DF1\u5733\u5E02\u5357\u5C71\u533A","\u6DF1\u5733\u5E02\u5B9D\u5B89\u533A","\u5E7F\u5DDE\u5E02\u756A\u79BA\u533A","\u5E7F\u5DDE\u5E02\u8D8A\u79C0\u533A"],street:["\u4E1C\u5927\u8857","\u897F\u5927\u8857","\u5317\u5927\u8857","\u5357\u5927\u8857","\u79D1\u6280\u8DEF","\u4EBA\u6C11\u8DEF"],building:["\u7EFF\u8272\u5BB6\u56ED 17\u53F7\u697C","\u521B\u65B0\u5B75\u5316\u5668","\u94F6\u5EA7\u5927\u53A6 A\u5EA7","\u666F\u5929soho","\u9F99\u8475\u5C0F\u533A 7\u680B","\u79D1\u6280\u4EA7\u4E1A\u56ED B1\u5EA7"],floor:["103","1207","2406","606","1701","102","313","502"]},K2=["\u4E2D\u56FD","\u7F8E\u56FD","\u82F1\u56FD","\u6CD5\u56FD","\u610F\u5927\u5229","\u5FB7\u56FD","\u4FC4\u7F57\u65AF","\u5370\u5EA6","\u5C3C\u65E5\u5229\u4E9A","\u52A0\u62FF\u5927","\u65E5\u672C","\u97E9\u56FD","\u57C3\u53CA","\u5DF4\u897F","\u8377\u5170","\u897F\u73ED\u7259","\u745E\u58EB","\u8D8A\u5357","\u6FB3\u5927\u5229\u4E9A","\u58A8\u897F\u54E5"],Gu=ENV.IS_WONDER_SHARE?["United States","Canada","Mexico","Brazil","United Kingdom","France","Germany","Spain","Italy","Russia","China","Japan","India","Australia","South Africa","Egypt","Saudi Arabia","United Arab Emirates","Argentina","Chile"]:["China","America","Britain","France","Italy","Germany","Russia","India","Nigeria","Canada","Japan","Korea","Egypt","Brazil","Netherlands","Spain","Switzerland","Vietnam","Australia","Mexico"],G2=["\u5317\u4EAC","\u4E0A\u6D77","\u6DF1\u5733","\u5357\u4EAC","\u54C8\u5C14\u6EE8","\u897F\u5B89","\u676D\u5DDE","\u5E7F\u5DDE","\u897F\u5B81","\u62C9\u8428","\u9999\u6E2F","\u6FB3\u95E8","\u53F0\u6E7E","\u4E1C\u4EAC","\u7EBD\u7EA6","\u8D39\u57CE","\u9996\u5C14","\u5229\u7269\u6D66","\u7EF4\u4E5F\u7EB3","\u67CF\u6797","\u5DF4\u9ECE","\u5E03\u8FBE\u4F69\u65AF","\u83AB\u65AF\u79D1","\u9A6C\u5FB7\u91CC","\u4F26\u6566","\u8036\u8DEF\u6492\u51B7"],Yu=ENV.IS_WONDER_SHARE?["New York City, USA","London, UK","Paris, France","Tokyo, Japan","Beijing, China","Sydney, Australia","Dubai, UAE","Los Angeles, USA","Mumbai, India","Rio de Janeiro, Brazil","Rome, Italy","Toronto, Canada","Moscow, Russia","Cape Town, South Africa","Mexico City, Mexico","Madrid, Spain","Berlin, Germany","Buenos Aires, Argentina","Seoul, South Korea","Cairo, Egypt"]:["Beijing","Shanghai","Shenzhen","Nanjing","Harbin","Xi'an","Hangzhou","Guangzhou","Xining","Lhasa","Hong Kong","Macao","Taiwan","Tokyo","New York","Philadelphia","Seoul","Liverpool","Vienna","Berlin","Paris","Budapest","Moscow","Madrid","London","Jerusalem"];var Y2=e(64199),Zu=e.n(Y2),Z2=e(27749),lh=e.n(Z2);const y1=t=>{var n;return JSON.parse((n=sessionStorage.getItem(t))!=null?n:"[]")},x1=(t,n)=>{sessionStorage.setItem(t,JSON.stringify(n))},ch=(t,n)=>{let s=t.filter(d=>!y1(n).includes(d));s.length===0&&(x1(n,[]),s=t);const c=s[Math.floor(Math.random()*s.length)];return x1(n,[...y1(n),c]),[c]},V1=(t,n)=>{let s=t.filter(d=>!y1(n).includes(Zu()(d[0]+d[1])));s.length===0&&(x1(n,[]),s=t);const c=s[Math.floor(Math.random()*s.length)];return x1(n,[...y1(n),c]),[...c]},X2=t=>{return[""+n(t.city)+n(t.street)+n(t.building)+n(t.floor)];function n(s){return s[Math.floor(Math.random()*s.length)]}},Hm=function(t,n,s){return n===void 0&&(n=9999),s===void 0&&(s=!1),[s?lh()(t,n,s).toFixed(2):lh()(t,n,s).toString(10)]},Km=t=>{const n=lh()(Fs()().year()-1,Fs()().year()),s=lh()(1,12),c=lh()(1,28),d=lh()(0,23),w=lh()(0,59);return[t.replace("YYYY",n.toString()).replace("MM",s.toString().padStart(2,"0")).replace("DD",c.toString().padStart(2,"0")).replace("HH",d.toString().padStart(2,"0")).replace("MM",w.toString().padStart(2,"0")).replace("\u5E74",n.toString()+"\u5E74").replace("\u6708",s.toString()+"\u6708").replace("\u65E5",c.toString()+"\u65E5")]},Xu={personName:0,content:0,time:1,phoneNumber:0,email:ENV.IS_WONDER_SHARE?0:2,number:1,country:0,city:0},Qu=()=>ENV.IS_WONDER_SHARE?[[[gu,"usedChineseName_personName"],[z1,"usedNickName"]],[[Hu,"usedTitle_content"],[W1,"usedLongText_country"],[Ku,"usedURL_country"],[yu,null]],["YYYY-MM-DD","YYYY-MM-DD HH:MM","MM/DD","HH:MM"],[[Vu,"usedMobilePhoneNumber"],[fu,"usedPhoneNumber"]],[[Qh.filter(t=>t.endsWith("@gmail.com")),"usedGmail"],[Qh.filter(t=>t.endsWith("@company.name")),"usedCompanyEmail"]],[[0,1,!0],[0,99,!1],[100,999,!1],[1e3,9999,!1],[fu,"usedPhoneNumber"]],[[Gu,"usedEnglishName_country"]],[[Yu,"usedEnglishName_city"]]]:[[[f1,"usedEnglishName_personName"],[gu,"usedChineseName_personName"],[z1,"usedNickName"]],[[Hu,"usedTitle_content"],[W1,"usedLongText_country"],[Ku,"usedURL_country"],[yu,null]],["YYYY-MM-DD","YYYY-MM-DD HH:MM","MM/DD","HH:MM","\u5E74\u6708\u65E5","\u6708\u65E5"],[[Vu,"usedMobilePhoneNumber"],[fu,"usedPhoneNumber"]],[[Qh.filter(t=>t.endsWith("@qq.com")),"usedQQEmail"],[Qh.filter(t=>t.endsWith("@gmail.com")),"usedGmail"],[Qh.filter(t=>t.endsWith("@163.com")),"used163EMAIL"],[Qh.filter(t=>t.endsWith("@company.name")),"usedCompanyEmail"]],[[0,1,!0],[0,99,!1],[100,999,!1],[1e3,9999,!1]],[[K2,"usedChineseName_country"],[Gu,"usedEnglishName_country"]],[[G2,"usedChineseName_city"],[Yu,"usedEnglishName_city"]]],Q2=(0,Dr.R)(t=>{const n=d=>{var w;return t?(w=t[d])!=null?w:Xu[d]:0},s=Qu(),c=[{tabName:"personName",title:I18N.ChatGPT.ai_text_auto_fill_name,iconName:"design/autoFillPanel/person",initialIndex:n("personName"),menuLabels:ENV.IS_WONDER_SHARE?["English name","Nickname"]:["\u4E2D\u6587","\u82F1\u6587","\u6635\u79F0"],generator:d=>ch(s[0][d][0],s[0][d][1])},{tabName:"content",title:I18N.ChatGPT.ai_text_auto_fill_content,iconName:"design/autoFillPanel/content",initialIndex:n("content"),menuLabels:[I18N.ChatGPT.ai_text_auto_fill_content_title,I18N.ChatGPT.ai_text_auto_fill_content_long_text,I18N.ChatGPT.ai_text_auto_fill_content_website,I18N.ChatGPT.ai_text_auto_fill_content_address],generator:d=>[0,2].includes(d)?ch(s[1][d][0],s[1][d][1]):d===1?V1(s[1][d][0],s[1][d][1]):X2(s[1][d][0])},{tabName:"time",title:I18N.ChatGPT.ai_text_auto_fill_time,iconName:"design/autoFillPanel/dateTime",initialIndex:n("time"),menuLabels:ENV.IS_WONDER_SHARE?["YYYY-MM-DD","YYYY-MM-DD HH:MM","MM/DD","HH:MM"]:["YYYY-MM-DD","YYYY-MM-DD HH:MM","MM/DD","HH:MM","\u5E74\u6708\u65E5","\u6708\u65E5"],generator:d=>Km(s[2][d])},{tabName:"phoneNumber",title:"\u53F7\u7801",iconName:"design/autoFillPanel/phone",initialIndex:n("phoneNumber"),menuLabels:["\u624B\u673A\u53F7","\u56FA\u53F7"],generator:d=>ch(s[3][d][0],s[3][d][1])},{tabName:"email",title:I18N.ChatGPT.ai_text_auto_fill_email,iconName:"design/autoFillPanel/email",initialIndex:n("email"),menuLabels:ENV.IS_WONDER_SHARE?["gmail",I18N.ChatGPT.ai_text_auto_fill_company_email]:["qq\u90AE\u7BB1","gmail","163\u90AE\u7BB1","\u516C\u53F8\u90AE\u7BB1"],generator:d=>ch(s[4][d][0],s[4][d][1])},{tabName:"number",title:I18N.ChatGPT.ai_text_auto_fill_number,iconName:"design/autoFillPanel/number",initialIndex:n("number"),menuLabels:ENV.IS_WONDER_SHARE?["0-0.99","0-99","100-999","1000+","Phone number"]:["0-0.99","0-99","100-999","1000+"],generator:d=>d===4?ch(s[3][0][0],s[3][0][1]):Hm(s[5][d][0],s[5][d][1],s[5][d][2])},{tabName:"country",title:I18N.ChatGPT.ai_text_auto_fill_country,iconName:"design/autoFillPanel/country",initialIndex:n("country"),menuLabels:ENV.IS_WONDER_SHARE?["country"]:["\u4E2D\u6587","\u82F1\u6587"],generator:d=>ch(s[6][d][0],s[6][d][1])},{tabName:"city",title:I18N.ChatGPT.ai_text_auto_fill_city,iconName:"design/autoFillPanel/city",initialIndex:n("city"),menuLabels:ENV.IS_WONDER_SHARE?["city"]:["\u4E2D\u6587","\u82F1\u6587"],generator:d=>ch(s[7][d][0],s[7][d][1])}];return ENV.IS_WONDER_SHARE?c.filter(d=>d.tabName!=="phoneNumber"):c});var Oc=e(56146);const J2=u.Ay.div.withConfig({displayName:"styles__StyledAISearchBox",componentId:"sc-ry6ftr-0"})(["width:100%;background:linear-gradient(97.39deg,#D5CCFF 1.15%,#FFCCFF 33.16%,#BBFAFA 66.15%,#BFDFFF 99.64%);padding:2px;border-radius:6px;&:hover{background:linear-gradient(90deg,#7F66FF 0%,#FF66FF 32.5%,#6699FF 67%,#64FAFA 100%);}&.isFocus{background:linear-gradient(90deg,#7F66FF 0%,#FF66FF 32.5%,#6699FF 67%,#64FAFA 100%);}.colorful-border-content{width:100%;display:flex;flex-direction:row;font-size:12px;height:30px;align-items:center;background:",";padding:0 10px;border-radius:4px;}&.generating{pointer-events:none;}&.input-limit{border:1px solid #ff3333;}&.picture-search-box{margin:15px 20px;width:calc(100% - 40px);}svg{width:20px;height:20px;opacity:1.0;cursor:pointer;&.disabled{pointer-events:none;opacity:0.4;}}.send-button{&:hover{path{fill:#1169C9;}}}.create-loading{animation:loading 3s linear infinite;@keyframes loading{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}}.chat-input{width:100%;font-family:inherit;resize:none;outline:none;border:none;background:rgba(0,0,0,0);color:",";caret-color:",";autocomplete:off;}"],t=>t.theme.color_bg_white,t=>t.theme.color_text_L1,t=>t.theme.color_text_L1),xu=(t,n)=>{let{userInput:s,generating:c,handleInputFocus:d,handleInputChange:w,sendAction:P,className:F,placeholder:X}=t;const[ee,pe]=(0,r.useState)(!1),ye=_e=>{_e.keyCode===13&&!_e.shiftKey&&(s.length>0&&P(),_e.preventDefault())},Ae=()=>{d&&d(!0)},we=()=>{d&&d(!1)};return(0,i.jsx)(J2,{className:f()(ee&&"isFocus",c&&"generating",s&&s.length>=200&&"input-limit",F),onMouseEnter:Ae,onMouseLeave:we,children:(0,i.jsxs)("div",{className:"colorful-border-content",children:[(0,i.jsx)("input",{ref:n,id:"chat-input",className:"chat-input",autoComplete:"off",maxLength:200,value:s||"",onChange:_e=>{w(_e.target.value)},onKeyDown:ye,onFocus:()=>{pe(!0)},onBlur:()=>{pe(!1)},placeholder:X||""}),c?(0,i.jsx)(Oc.C,{className:"create-loading",name:"chatGPT/tip-loading",isColorPure:!0}):(0,i.jsx)(Oc.C,{className:f()("send-button",(!s||s.length===0)&&"disabled"),name:"chatGPT/create-comment-send",onClick:P,isColorPure:!0})]})})},v1=(0,r.memo)(r.forwardRef(xu)),vu=78,bu=u.Ay.div.withConfig({displayName:"styles__StyledAutoFillSearchBox",componentId:"sc-1kju1gy-0"})(["margin:0 20px;height:","px;display:flex;flex-direction:column;justify-content:center;.box-title{font-family:PingFang SC;display:flex;align-items:center;color:",";font-size:12px;font-style:normal;font-weight:500;line-height:24px;margin-bottom:12px;justify-content:space-between;.ai-help-content{display:flex;align-items:center;.ai-help{margin-left:4px;width:16px;height:16px;position:relative;svg{width:100%;height:100%;path{fill:",";}&:hover{path{fill:",";}}}.tip-content{width:256px;background-color:red;position:absolute;left:-110px;top:16px;border-radius:4px;background:#454647;color:#FFF;font-size:12px;padding:10px;line-height:18px;z-index:1;a{color:white;text-decoration:underline;}.tip-eg{margin-top:20px;}}}}}"],vu,t=>t.theme.color_AI_Text_Auto_head_title,t=>t.theme.color_AI_Text_Auto_fill_path,t=>t.theme.color_AI_Text_Auto_fill_path_hover),Ju=t=>{let{inputValue:n,handleInputChange:s,handleSendSearch:c,generating:d,placeholder:w,title:P,isPicture:F}=t;const[X,ee]=(0,r.useState)(!1),pe=(0,r.useRef)(null),ye=(0,r.useCallback)(()=>{pe.current&&(clearTimeout(pe.current),pe.current=null),pe.current=setTimeout(()=>{pe.current=null,ee(!0)},500)},[pe,ee]),Ae=()=>{pe.current&&(clearTimeout(pe.current),pe.current=null),ee(!1)};return(0,i.jsxs)(bu,{children:[(0,i.jsx)("div",{className:"box-title",children:(0,i.jsxs)("div",{className:"ai-help-content",children:[P,(!ENV.IS_WONDER_SHARE||F)&&(0,i.jsxs)("div",{className:"ai-help",onMouseEnter:ye,onMouseLeave:Ae,children:[(0,i.jsx)(Oc.C,{name:"chatGPT/ai-help",isColorPure:!0}),X&&(0,i.jsx)("div",{className:"tip-content",children:F?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{children:I18N.ChatGPT.ai_picture_auto_fill_help_tip1}),(0,i.jsx)("div",{children:I18N.ChatGPT.ai_picture_auto_fill_help_tip2}),(0,i.jsx)("a",{href:"https://unsplash.com/license",target:"_blank",rel:"noreferrer",children:"https://unsplash.com/license"}),(0,i.jsx)("div",{className:"tip-eg",children:I18N.ChatGPT.ai_picture_auto_fill_help_tip3})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{children:"\u6839\u636E\u8F93\u5165\u7684\u8981\u6C42\u667A\u80FD\u586B\u5145\u6587\u672C\u3002"}),(0,i.jsx)("div",{className:"tip-eg",children:"\u793A\u4F8B\uFF1A "}),(0,i.jsx)("div",{children:"\u7EA2\u697C\u68A6\u4E2D\u7684\u4EBA\u7269"}),(0,i.jsx)("div",{children:"\u4E03\u8A00\u7EDD\u53E5"}),(0,i.jsx)("div",{children:"2\u4F4D\u6574\u6570\u548C2\u4F4D\u5C0F\u6570\u7684\u6570\u5B57"})]})})]})]})}),(0,i.jsx)(v1,{userInput:n,handleInputChange:s,sendAction:c,generating:d,placeholder:w})]})},$2=(0,r.memo)(Ju);var H1=e(10481);const $u=(0,u.DU)(["#IBOT_SELECT_MENU_ROOT{.SelectMenuPortal{.WorkspaceSelectMenu.is-open{border:1px solid #454647;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);.SelectOption{&:not(.empty-msg):not(.is-disabled):hover{background:#666;}}}}.autoFillPanelSelectScreenMenu{margin-left:-138px;margin-top:26px;width:175px;}.bdr-width-input-menu{width:88px;}.arrow-setting-menu{width:78px;}}"]),q2=(0,u.DU)(["#IBOT_SELECT_MENU_ROOT{.SelectMenuPortal{.WorkspaceSelectMenu.is-open{border:1px solid ",";box-shadow:0px 4px 10px 0px ",";.SelectOption{&:not(.empty-msg):not(.is-disabled):hover{background:",";}}}}.autoFillPanelSelectScreenMenu{margin-left:-138px;margin-top:26px;width:175px;}.bdr-width-input-menu{width:88px;}.arrow-setting-menu{width:78px;}}"],t=>t.theme.color_bg_border_01,t=>t.theme.shadow_m,t=>t.theme.color_btn_secondary_hover),em=()=>{try{var t;return(t=MB)==null||(t=t.__store__)==null?void 0:t.getState()}catch(n){return}},Cu=()=>{try{var t;return((t=em())==null?void 0:t.ui.fixedLayout.preference.layoutV9)==="old"}catch(n){return!1}};class qu extends r.PureComponent{render(){const n=Cu();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(H1.eB,{...this.props}),n?(0,i.jsx)($u,{}):(0,i.jsx)(q2,{})]})}}const Gm=u.Ay.span.withConfig({displayName:"styles__StyledOption",componentId:"sc-12fos16-0"})(["border:1px solid #d8d8d8;border-radius:4px;padding:3px 6px;cursor:pointer;margin-right:7.75px;margin-bottom:8px;display:inline-block;"]),tm=u.Ay.div.withConfig({displayName:"styles__StyledSetting",componentId:"sc-12fos16-1"})(["display:flex;justify-content:center;align-items:center;width:22px;height:22px;border-radius:4px;cursor:pointer;:hover{background-color:",";}"],t=>t.theme.color_background_white_modal_active);class om extends r.PureComponent{constructor(n){super(n),(0,p.A)(this,"setElementRef",s=>this.$element=s),(0,p.A)(this,"handleClick",s=>{s.stopPropagation();const{onClick:c}=this.props;c&&c()}),(0,p.A)(this,"handleClose",()=>{const{onClose:s}=this.props;s&&s()}),(0,p.A)(this,"handleChange",s=>{s.stopPropagation();const{currentTarget:c}=s,{value:d}=c.dataset;this.setState({value:d}),this.props.menuItems[d-1].onClick(s),this.props.onClose&&this.props.onClose()}),this.state={value:n.defaultSelectSettingIndex+1}}render(){const{isShowOptionSelectMenu:n}=this.props;return(0,i.jsxs)(tm,{ref:this.setElementRef,onClick:this.handleClick,children:[(0,i.jsx)(Oc.C,{name:"design/autoFillPanel/more",className:"setting-icon",isColorPure:!0}),n&&(0,i.jsx)(qu,{isOpen:!0,menuClassName:"autoFillPanelSelectScreenMenu",$select:this.$element,optionList:this.props.menuItems,value:this.state.value,onChange:this.handleChange,onClose:this.handleClose,onClickOutSide:this.handleClose})]})}}const F0=function(t,n){t===void 0&&(t=500);const s=(0,r.useRef)(null),c=(0,r.useCallback)(()=>{s.current&&(clearTimeout(s.current),s.current=null)},[s]);return{handleAdd:(0,r.useCallback)(w=>{s.current&&(clearTimeout(s.current),s.current=null),s.current=setTimeout(()=>{s.current=null,n&&n({text:w})},t)},[t,n]),handleClear:c}};var dh=e(48540);const b1=u.Ay.div.withConfig({displayName:"styles__StyledAutoFillTextPanel",componentId:"sc-1wc0sb9-0"})(["width:100%;height:100%;.item-list{width:100%;margin-top:6px;height:calc(100% - 6px);overflow:hidden auto;&.show-ai{height:calc(100% - ","px);}}"],vu+18),e2=u.Ay.div.withConfig({displayName:"styles__StyledAutoFillItem",componentId:"sc-1wc0sb9-1"})(["width:100%;display:flex;justify-content:space-between;align-items:center;height:44px;padding:0 20px;margin-top:4px;&:hover{background:",";cursor:pointer;}.title-icon{margin-right:8px;}.left{display:flex;flex-direction:row;align-items:center;color:",";.title-wrapper{display:flex;flex-direction:column;.title{font-size:12px;line-height:16px;margin-bottom:2px;}.setting{font-size:10px;line-height:16px;color:",";}}}"],t=>t.theme.color_background_icon_hover,t=>t.theme.color_text_L1,t=>t.theme.color_text_L3),nm=t=>{var n;let{title:s,iconName:c,tableInfoData:d,selectedTrees:w,generator:P,tabName:F,menuLabels:X,initialIndex:ee,onNotice:pe,onUpdateWidget:ye,onUpdatePreference:Ae,onClickOption:we,onCloseOption:_e,isShowOptionSelectMenu:Fe}=t;const[Ye,He]=(0,r.useState)(ee),{handleClear:tt}=F0(500,pe),It=X.map((co,yn)=>({label:co,value:yn+1,onClick:(An,In)=>Lt(An,yn,In,()=>(0,dh.RG)(w,()=>{(0,dh.mD)(w,d,()=>P(yn),ye)}))})),Nt=co=>{It[Ye].onClick(co,!0)},Lt=(co,yn,An,In)=>{co.stopPropagation(),He(yn),An||Ae(F,yn),In()&&An?Xt(co):tt()},Xt=co=>{co.stopPropagation(),tt(),!(0,dh.Rd)(w)&&ye({widgetType:"wRichText",data:{content:P(Ye).join("\n")},type:"create"})},_o=()=>{we({tabName:F})};return(0,i.jsxs)(e2,{onClick:Nt,onDoubleClick:Xt,children:[(0,i.jsxs)("div",{className:"left",children:[(0,i.jsx)(Oc.C,{name:c,className:"title-icon",size:21}),(0,i.jsxs)("div",{className:"title-wrapper",children:[(0,i.jsx)("span",{className:"title",children:s}),(0,i.jsx)("span",{className:"setting",children:(n=It[Ye])==null?void 0:n.label})]})]}),(0,i.jsx)(om,{onClick:_o,onClose:_e,isShowOptionSelectMenu:Fe,menuItems:It,defaultSelectSettingIndex:ee})]})};var yo=e(43004),Ml=e(5683),Zd=e(38045);const Jh=async t=>{let{prompt:n,user:s,project:c,org:d,selectedTrees:w,tableInfoData:P,onUpdateWidget:F,updateAIState:X,notice:ee}=t;const pe=(0,Ml.AM)({user:s,project:c}),ye=(0,Ml.WX)({user:s,org:d});let Ae=0;const{tableSelectionLeftTopInfo:we,editingTableWidget:_e}=P,{selectionLeftTopInfo:Fe,selectionRightBottomInfo:Ye}=we||{},He=(0,Ml.n3)(w).filter(Xt=>![yo.x.WVideo,yo.x.WAudio,yo.x.WQRCode,yo.x.WWebpage].includes(Xt.type));Ae+=He.length;const tt=(0,Ml.n3)(w).filter(Xt=>Xt.name===yo.x.WTable);Fe?_e.tableData.data.forEach((Xt,_o)=>{_o>=Fe.y&&_o<=Ye.y&&Xt.forEach((co,yn)=>{yn>=Fe.x&&yn<=Ye.x&&(Ae+=1)})}):tt.filter(Xt=>{let{cid:_o}=Xt;return!Fe||_o!==_e.cid}).forEach(Xt=>{Xt.tableData.data.forEach((_o,co)=>{_o.forEach((yn,An)=>{Ae+=1})})}),Ae=Ae===0?1:Ae;const{result:It,status:Nt}=await(0,Zd.cD)({prompt:n,textListLength:Ae,workspace:ye,taskID:pe,user:s,org:d,updateAIState:X,notice:ee});if(!It)return{success:!1,status:Nt};const{widget:{textList:Lt}}=It;return m0({textList:Lt,selectedTrees:w,tableInfoData:P,onUpdateWidget:F}),{success:!0,status:200}},m0=t=>{let{textList:n,selectedTrees:s,tableInfoData:c,onUpdateWidget:d}=t;(0,dh.Rd)(s)||d({widgetType:"wRichText",data:{content:n[0]},type:"create"});const P=(()=>{let F=0;return()=>{const X=n[Math.min(F,n.length-1)];return F++,typeof X!="string"&&typeof X!="number"?[""]:[String(X)]}})();(0,dh.mD)(s,c,P,d)};let wu=function(t){return t.RightClick="\u53F3\u952E\u83DC\u5355",t.TopBar="\u9876\u90E8\u680F",t.ImageMenu="\u56FE\u7247\u83DC\u5355",t.EmptyRightClick="\u7A7A\u767D\u5904\u53F3\u952E\u667A\u80FD\u586B\u5145",t}({});const sm=t=>{let{commonData:n,isShowAI:s,onNotice:c,onUpdateWidget:d,onTrack:w,onUpdatePreference:P}=t;const[F,X]=(0,r.useState)(""),[ee,pe]=(0,r.useState)(!1),[ye,Ae]=(0,r.useState)(""),{selectedTrees:we,tableInfoData:_e,preference:{autoFillHistory:Fe},user:Ye,org:He,project:tt,openFrom:It}=n,Nt=co=>{const{aiGenerating:yn}=co;pe(yn)},Lt=(0,r.useCallback)(async()=>{pe(!0);const co=performance.now();w&&w({key:"ai_click",config:{source:"\u667A\u80FD\u586B\u5145"}});const{success:yn,status:An}=await Jh({prompt:F,user:Ye,org:He,project:tt,selectedTrees:we,tableInfoData:_e,onUpdateWidget:d,updateAIState:Nt,notice:c}),wn=performance.now()-co;let _n=yn?"":"\u5176\u4ED6";yn||(An===403&&(_n="\u8D85\u9650"),An===451&&(_n="\u654F\u611F\u8BCD"));const Jn={source:It===wu.EmptyRightClick?"\u7A7A\u767D\u5904\u53F3\u952E\u667A\u80FD\u586B\u5145AI":"\u53F3\u952E\u83DC\u5355\u667A\u80FD\u586B\u5145AI",ai_type:"\u667A\u80FD\u6587\u672C\u586B\u5145",ai_duration:wn,ai_consume_type:ENV.IS_WONDER_SHARE?"\u6B21\u6570":"\u70B9\u6570",ai_consume_belong:He?"\u56E2\u961F":"\u4E2A\u4EBA",current_points:ENV.IS_WONDER_SHARE?(0,Ml.kK)({user:Ye,org:He}):(0,Ml._F)({user:Ye,org:He}),error_reason:_n,generate_success:yn,is_pay:(0,Ml.vW)(Ye,He,tt)};w({config:Jn}),pe(!1),c({text:"\u667A\u80FD\u586B\u5145 \u5DF2\u751F\u6210",svgName:"chatGPT/copy-success"})},[F,Ye,He,tt,we,_e,d,c,It,w]),Xt=(0,r.useMemo)(()=>Q2(Fe),[Fe]),_o=co=>{let{tabName:yn}=co;if(yn===ye){Ae("");return}Ae(yn)};return(0,i.jsxs)(b1,{children:[s&&(0,i.jsx)($2,{generating:ee,inputValue:F,handleInputChange:X,handleSendSearch:Lt,title:I18N.ChatGPT.ai_text_auto_fill_title,placeholder:I18N.ChatGPT.ai_text_auto_fill_placeholder,isPicture:!1}),(0,i.jsx)("div",{className:"item-list "+(s?"show-ai":""),children:Xt.map(co=>(0,i.jsx)(nm,{...co,selectedTrees:we,tableInfoData:_e,onNotice:c,onUpdateWidget:d,onUpdatePreference:P,onClickOption:_o,onCloseOption:()=>Ae(""),isShowOptionSelectMenu:ye===co.tabName},co.title))})]})},im=(0,r.memo)(sm),t2=(0,Dr.R)(()=>[{iconName:"design/autoFillPanel/person",title:I18N.ChatGPT.ai_picture_auto_fill_figure,image:"/mb-workspace/images/autofill/ppl.png",tab:"ppl"},{iconName:"design/autoFillPanel/animal",title:I18N.ChatGPT.ai_picture_auto_fill_animal,image:"/mb-workspace/images/autofill/anml.png",tab:"anml"},{iconName:"design/autoFillPanel/tech",title:I18N.ChatGPT.ai_picture_auto_fill_tech,image:"/mb-workspace/images/autofill/tech.png",tab:"tech"},{iconName:"design/autoFillPanel/nature",title:I18N.ChatGPT.ai_picture_auto_fill_nature,image:"/mb-workspace/images/autofill/natr.png",tab:"natr"},{iconName:"design/autoFillPanel/food",title:I18N.ChatGPT.ai_picture_auto_fill_food,image:"/mb-workspace/images/autofill/food.png",tab:"food"},{iconName:"design/autoFillPanel/city",title:I18N.ChatGPT.ai_picture_auto_fill_architecture,image:"/mb-workspace/images/autofill/arch.png",tab:"arch"},{iconName:"design/autoFillPanel/business",title:I18N.ChatGPT.ai_picture_auto_fill_business,image:"/mb-workspace/images/autofill/bsns.png",tab:"bsns"}]),ph=t=>{let{url:n,tab:s,width:c,height:d,tags:w}=t;return{asset_cid:"findPicture_"+n,created_at:new Date().getTime(),group_cid:"findPicture_"+s,height:d,width:c,name:"\u793A\u4F8B\u56FE\u7247",size:999,image:"/res-img/org/"+n,thumb:"/res-img/thmb/"+n,timestamp:0,tags:"",img_tag:w}},qd=(t,n)=>{if(!(n!=null&&n.length))return null;const s=n.find(ye=>ye.tab===t),c="autofill_picture_"+t;let d=JSON.parse(sessionStorage.getItem(c)||"[]");d.length>=s.imgs.length&&(d=[]);const w=s.imgs.filter(ye=>{let[Ae]=ye;return!d.includes(Ae)}),P=lh()(0,w.length-1),[F,,[X,ee],pe]=w[P];return d.push(F),sessionStorage.setItem(c,JSON.stringify(d)),ph({tab:t,url:F,width:X,height:ee,tags:pe})};var am=e(46584),o2=e(30768);const n2=async()=>{const t=ENV.IS_WONDER_SHARE?"/res-img/meta-en.json":"/res-img/meta.json";return await(await fetch(t,{credentials:"same-origin"})).json()};var C1=e(59026);const rm=u.Ay.div.withConfig({displayName:"styles__StyledAutoFillPicturePanel",componentId:"sc-brp3ix-0"})(["width:100%;height:100%;display:flex;flex-direction:column;.item-list{width:100%;margin-top:6px;height:calc(100% - 6px);overflow:hidden auto;flex:1;&::-webkit-scrollbar{width:3px;height:3px;}&.show-ai{height:calc(100% - ","px);}}"],vu+18),s2=u.Ay.div.withConfig({displayName:"styles__StyledPicturePanelItem",componentId:"sc-brp3ix-1"})(["width:100%;display:flex;justify-content:space-between;align-items:center;height:44px;padding:0 20px;margin-top:4px;&:hover{background:",";cursor:pointer;}.left{display:flex;align-items:center;color:",";font-size:12px;.title-icon{margin-right:8px;}}.right{width:45px;display:flex;align-items:center;img{width:45px;}}"],t=>t.theme.color_background_icon_hover,t=>t.theme.color_text_L1),Su=t=>{let{isShowAI:n,commonData:s,onNotice:c,onUpdateWidget:d,onTrack:w}=t;const[P,F]=(0,r.useState)(""),[X,ee]=(0,r.useState)(!1),[pe,ye]=(0,r.useState)([]),[Ae,we]=(0,r.useState)(!1),{handleClear:_e}=F0(500,c);(0,r.useEffect)(()=>{Ae||n2().then(_n=>{we(!0),ye(_n)}).catch(_n=>{console.error("download meta.json failed",_n)})},[Ae]);const{selectedTrees:Fe,selectedCarouseImage:Ye,user:He,org:tt,project:It,openFrom:Nt}=s,Lt=_n=>{d({widgetType:"wImage",data:_n,type:"create"})},Xt=()=>{w({key:"add_template_V8",config:{source:"\u667A\u80FD\u586B\u5145-\u56FE\u7247",add_type:"",template_type:"\u56FE\u7247",vip_template:!1,is_scvip_template:!1,project_id:It==null?void 0:It.cid,template_name:"\u793A\u4F8B\u56FE\u7247",template_group_name:He==null?void 0:He.id,platform:"\u4E0D\u533A\u5206",scene_tag:"",es_search_key:"",keyword:P}})},_o=_n=>{if((0,Ml.n3)(Fe).every(as=>!(0,C1.xC)(as))){co(_n);return}(0,C1.CV)({generator:()=>qd(_n,pe),selectedTrees:Fe,selectedCarouseImage:Ye,onUpdateWidget:d}),Xt()},co=_n=>{if(_e(),(0,C1.J6)(Fe))return;const Jn=qd(_n,pe);Lt(Jn),Xt()},yn=_n=>{F(_n)},An=_n=>{let{url:Jn,tab:rs,width:as,height:mi,tags:ha}=_n;return{asset_cid:"findPicture_"+Jn,created_at:new Date().getTime(),group_cid:"findPicture_"+rs,height:mi,width:as,name:I18N.Resources.image_example,size:999,image:"/res-img/org/"+Jn,thumb:"/res-img/thmb/"+Jn,timestamp:0,tags:"",img_tag:ha}},In=async()=>{ee(!0),w&&w({key:"ai_click",config:{source:"\u667A\u80FD\u586B\u5145"}});const _n=performance.now(),Jn={isTrigger:!1};Jn.isTrigger=(0,o2.b)(P);const rs=()=>{Jn.isTrigger=!0},as=Jn.isTrigger?[]:await(0,am.P)({keyword:P,size:20,uId:He==null?void 0:He.id,projectCid:It==null?void 0:It.cid,triggerSensitiveWord:rs});try{pe&&pe.filter(Hi=>Hi.tab!=="hot").forEach(Hi=>{Hi.imgs&&Hi.imgs.filter(ra=>ra[3].includes(P)).forEach(ra=>{as.push(An({tab:Hi.tab,url:ra[0],width:ra[2][0],height:ra[2][1],tags:ra[3]}))})})}catch(si){}const mi=!(!as||as.length===0),Ca=performance.now()-_n,ms=mi?"":"\u5176\u4ED6",qn={source:Nt===wu.EmptyRightClick?"\u7A7A\u767D\u5904\u53F3\u952E\u667A\u80FD\u586B\u5145AI":"\u53F3\u952E\u83DC\u5355\u667A\u80FD\u586B\u5145AI",ai_type:"\u667A\u80FD\u56FE\u7247\u586B\u5145",ai_duration:Ca,ai_consume_type:ENV.IS_WONDER_SHARE?"\u6B21\u6570":"\u70B9\u6570",ai_consume_belong:tt?"\u56E2\u961F":"\u4E2A\u4EBA",current_points:ENV.IS_WONDER_SHARE?(0,Ml.kK)({user:He,org:tt}):(0,Ml._F)({user:He,org:tt}),error_reason:ms,generate_success:mi,is_pay:(0,Ml.vW)(He,tt,It)};if(w({config:qn}),ee(!1),Jn.isTrigger){c({text:"\u8F93\u5165\u5185\u5BB9\u5305\u542B\u654F\u611F\u8BCD\u6C47\uFF0C\u8BF7\u5C1D\u8BD5\u66F4\u6362\u8F93\u5165\u5185\u5BB9"});return}else if(!mi){c({text:"\u8F93\u5165\u5185\u5BB9\u6682\u65E0\u76F8\u5173\u7ED3\u679C\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165"});return}(0,C1.bY)({result:as,selectedTrees:Fe,selectedCarouseImage:Ye,onUpdateWidget:d}),Xt()},wn=t2();return(0,i.jsxs)(rm,{children:[n&&(0,i.jsx)($2,{generating:X,inputValue:P,handleInputChange:yn,handleSendSearch:In,title:I18N.ChatGPT.ai_picture_auto_fill_title,placeholder:I18N.ChatGPT.ai_picture_auto_fill_placeholder,isPicture:!0}),(0,i.jsx)("div",{className:"item-list "+(n?"show-ai":""),children:wn.map((_n,Jn)=>(0,i.jsxs)(s2,{onClick:()=>_o(_n.tab),onDoubleClick:()=>co(_n.tab),children:[(0,i.jsxs)("div",{className:"left",children:[(0,i.jsx)(Oc.C,{name:_n.iconName,className:"title-icon",size:21}),(0,i.jsx)("span",{className:"title",children:_n.title})]}),(0,i.jsx)("div",{className:"right",children:(0,i.jsx)("img",{src:_n.image})})]},Jn))})]})},i2=(0,r.memo)(Su),a2=u.Ay.aside.withConfig({displayName:"DraggablePanel",componentId:"sc-17irm6j-0"})(["position:absolute;width:",";background:",";border-radius:2px;box-shadow:",";overflow:hidden;border:1px solid ",";& > header{height:36px;padding-left:15px;padding-right:5px;display:flex;justify-content:space-between;align-items:center;background:",';font-size:12px;&[type="draggable"]{cursor:move;}.title{color:',";pointer-events:none;}.header-buttons{display:flex;.icon{width:20px;height:24px;font-size:12px;display:flex;justify-content:center;align-items:center;color:",";cursor:pointer;.times-icon{width:10px;}&:hover{color:",";.times-icon{color:",";}}}}}"],"210px",t=>t.theme.color_background_white,t=>t.theme.shadow_1,t=>t.theme.color_background,t=>t.theme.color_background_icon_hover,t=>t.theme.color_text_L2,t=>t.theme.color_text_L3,t=>t.theme.color_text_L2,t=>t.theme.color_text_L2),lm=(0,u.Ay)(a2).withConfig({displayName:"styles__StyledAutoFillPanel",componentId:"sc-1ny03ld-0"})(["width:300px;height:442px;background:",";box-shadow:0px 2px 10px rgba(0,0,0,0.12);border-radius:10px;border:1px solid ",";overflow:initial;z-index:107;.auto-panel-header{display:flex;height:50px;align-items:center;justify-content:space-between;cursor:move;.auto-panel-slider{padding-left:20px;.tab-item{font-size:12px;color:",";&:not(:first-child){margin-left:24px;}}.tab-sel{color:",";font-weight:bold;border:none;}}.close-icon{margin-right:20px;height:24px;border-radius:4px;path{fill:",";}&:hover{path{fill:",";}}}}.content{width:100%;height:392px;}"],t=>t.theme.color_background_white,t=>t.theme.color_border_state,t=>t.theme.color_text_L2,t=>t.theme.color_text_L1,t=>t.theme.color_text_L2,t=>t.theme.color_text_L1),cm=t=>{const{position:n,show:s,commonData:c,actions:d}=t,{selectedTrees:w,tableInfoData:P}=c,[F,X]=(0,r.useState)(0),[ee,pe]=(0,r.useState)(window.innerWidth),[ye,Ae]=(0,r.useState)(window.innerHeight),we=(0,r.useRef)(null);(0,r.useEffect)(()=>{const co=()=>{pe(window.innerWidth),Ae(window.innerHeight)};return window.addEventListener("resize",co),()=>{window.removeEventListener("resize",co)}},[]),(0,r.useEffect)(()=>{if(w.length===0)return;const co=(0,C1.J6)(w),yn=(0,dh.Rd)(w);!co&&!yn||co&&yn||X(co?1:0)},[w]);const _e=(co,yn)=>{d.updatePosition(co,yn)},Fe=()=>{d.updateShow(!1)},Ye=co=>{d.notice(co)},He=co=>{let{widgetType:yn,data:An,type:In}=co;d.updateWidget({widgetType:yn,data:An,type:In})},tt=co=>{let{config:yn,key:An="ai_function"}=co;d.track(An,yn)},It=(co,yn)=>{d.updatePreference(co,yn)};if(!s)return null;const Nt=Math.max(Math.min(n==null?void 0:n.left,ee-258),0),Lt=Math.max(Math.min(n==null?void 0:n.top,ye-397),0),Xt=F===0,_o=F===1;return(0,i.jsx)(ir.A,{position:{left:Nt,top:Lt},onMove:_e,ref:we,children:(0,i.jsxs)(lm,{className:"autoFillPanel-element",children:[(0,i.jsxs)("div",{type:"draggable",className:"auto-panel-header",children:[(0,i.jsx)(H2,{className:"auto-panel-slider",tabIndex:F,tabs:[I18N.ChatGPT.ai_text_auto_fill,I18N.ChatGPT.ai_picture_auto_fill],handleChangeTabIndex:X}),(0,i.jsx)("a",{className:"close-icon",onClick:Fe,children:(0,i.jsx)(Oc.C,{name:"design/autoFillPanel/close",size:24})})]}),(0,i.jsxs)("div",{className:"content",children:[Xt&&(0,i.jsx)(im,{isShowAI:!ENV.IS_ON_PREMISES,commonData:c,onNotice:Ye,onUpdateWidget:He,onUpdatePreference:It,onTrack:tt,tableInfoData:P}),_o&&(0,i.jsx)(i2,{commonData:c,isShowAI:!ENV.IS_ON_PREMISES,onNotice:Ye,onUpdateWidget:He,onTrack:tt})]})]})})},dm=(0,r.memo)(cm),r2=t=>{const n=t();return(0,i.jsx)(dm,{...n})},l2=t=>{const{isAutoFillPanelShow:n,autoFillPanelPosition:s,openFrom:c,selectedTrees:d,tableInfoData:w,selectedCarouseImage:P,user:F,org:X,project:ee,preference:pe,dispatch:ye}=t,[Ae,we]=(0,r.useState)((0,i.jsx)(i.Fragment,{})),_e=(0,r.useMemo)(()=>({updatePosition:(He,tt)=>{ye({type:"autoFillPanel:set:position",payload:{position:{top:tt,left:He}}})},updateShow:He=>{ye({type:"autoFillPanel:set:show",payload:{show:He}})},updatePreference:(He,tt)=>{ye({type:"entry:update:auto-fill-history",payload:{attr:He,value:tt}})},updateWidget:He=>{let{widgetType:tt,data:It,type:Nt}=He;ye({type:"entry:autoFill:update:widget",payload:{widgetType:tt,data:It,type:Nt,device:ee.device}})},notice:He=>{MB.notice(He)},track:(He,tt)=>{(0,Dc.kH)(He,tt)}}),[ye,ee.device]),Fe=(0,r.useMemo)(()=>({user:F,org:X,project:ee,preference:pe,openFrom:c}),[X,pe,ee,F,c]),Ye=(0,r.useMemo)(()=>({show:n,position:s,commonData:{selectedTrees:d,tableInfoData:w,selectedCarouseImage:P,...Fe},actions:_e}),[Fe,_e,s,n,P,d,w]);return(0,r.useEffect)(()=>{we(r2(()=>Ye))},[Ye]),(0,i.jsx)(i.Fragment,{children:Ae})},pm=(0,m.Mz)([g1.wb,g1.qX,g1.Hh,S.HW,S.wA,S.PL,ce.x$,T.ml,a.zX,a.nh,tc.Yg],(t,n,s,c,d,w,P,F,X,ee,pe)=>({isAutoFillPanelShow:t,autoFillPanelPosition:n,openFrom:s,user:c,org:d,project:w,selectedTrees:P,preference:F,tableInfoData:{tableSelectionLeftTopInfo:X,editingTableWidget:ee},selectedCarouseImage:pe})),hm=(0,o.Ng)(t=>pm(t))(l2);var $h=e(26637),he=e(50639);const W=u.Ay.div.withConfig({displayName:"styles__StyledFindInput",componentId:"sc-tgtb6d-0"})(["min-width:236px;height:36px;border:1px solid ",";background:",";box-sizing:border-box;border-radius:4px;margin-left:10px;margin-right:8px;display:flex;align-items:center;justify-content:space-between;&.focus{border-color:#1684fc;}input{height:100%;flex:1;width:0;text-indent:8px;margin-right:5px;color:",";&::placeholder{color:#999;}}.notFound{margin-right:8px;}.searching{margin-right:8px;display:flex;align-items:center;.svg-icon.loading-icon{width:14px;height:14px;animation:design-ani-spinning 1.5s infinite ease-out;margin-right:5px;}}.hasResults{display:flex;align-items:center;justify-content:space-between;margin-right:8px;.left,.right{width:20px;height:20px;border-radius:50%;background:",";border:1px solid ",";display:flex;align-items:center;justify-content:center;cursor:pointer;svg{width:8px;height:8px;}&:hover{background:",";}&:active{background:",";}}.left{svg{transform:rotate(90deg);}}.right{svg{transform:rotate(-90deg);}}span{font-size:12px;color:",";margin:0 8px;}}"],t=>t.theme.color_bg_border_02,t=>t.theme.color_bg_white,t=>t.theme.color_text_L1,t=>t.theme.color_bg_white,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_bg_canvas,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_text_L1);class Q extends r.PureComponent{constructor(){super(...arguments),(0,p.A)(this,"state",{focus:!1}),(0,p.A)(this,"setInputRef",n=>this.$input=n),(0,p.A)(this,"handleChange",n=>{const s=n.target.value;this.props.onChange(s),this.props.onClearData()}),(0,p.A)(this,"handleKeyDown",n=>{const{key:s}=n,{onSearch:c}=this.props;s===vo._.Enter&&(c(!1),this.$input.blur(),(0,he.rn)("\u5FEB\u6377\u952E\u67E5\u627E"))}),(0,p.A)(this,"handlePrev",()=>{const{result:{index:n,total:s},onSetResultIndex:c}=this.props,d=n<=1?s:n-1;c(d),(0,he.rn)("\u9009\u62E9\u4E0A\u4E00\u9879")}),(0,p.A)(this,"handleNext",()=>{const{result:{index:n,total:s},onSetResultIndex:c}=this.props,d=n>=s?1:n+1;c(d),(0,he.rn)("\u9009\u62E9\u4E0B\u4E00\u9879")}),(0,p.A)(this,"renderActions",()=>{const{result:{status:n,total:s,index:c}}=this.props;return n===$h.nW.notFound?(0,i.jsx)("span",{className:"notFound",children:I18N.Popups.findReplacePanel.notFound}):n===$h.nW.searching?(0,i.jsxs)("div",{className:"searching",children:[(0,i.jsx)(Je.C,{name:"general/loading",className:"loading-icon"}),(0,i.jsxs)("span",{children:[I18N.Popups.findReplacePanel.searching,"..."]})]}):n===$h.nW.hasResults?(0,i.jsxs)("div",{className:"hasResults",children:[(0,i.jsx)("div",{className:"left",onClick:this.handlePrev,children:(0,i.jsx)(Je.C,{name:"common/expand"})}),(0,i.jsx)("span",{children:c+"/"+s}),(0,i.jsx)("div",{className:"right",onClick:this.handleNext,children:(0,i.jsx)(Je.C,{name:"common/expand"})})]}):null}),(0,p.A)(this,"handleFocus",()=>{this.setState({focus:!0})}),(0,p.A)(this,"handleBlur",()=>{this.setState({focus:!1})})}componentDidMount(){this.$input&&this.$input.focus()}render(){const{value:n,result:{status:s}}=this.props,{focus:c}=this.state;return(0,i.jsxs)(W,{className:f()({focus:c}),children:[(0,i.jsx)("input",{ref:this.setInputRef,type:"text",disabled:s===$h.nW.searching,value:n,placeholder:I18N.Popups.findReplacePanel.inputFindContent,onChange:this.handleChange,onKeyDown:this.handleKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur}),this.renderActions()]})}}var ge=e(7775),Me=e(53436);const Pe=(0,u.Ay)(Rl).withConfig({displayName:"styles__StyledFindReplacePanel",componentId:"sc-xnu2hf-0"})(["z-index:107;width:426px;min-height:112px;background:",";border:1px solid ",";box-shadow:0 3px 6px rgba(51,55,62,0.09);border-radius:8px;pointer-events:auto;header{width:100%;height:40px;display:flex;align-items:center;justify-content:space-between;background:",";box-shadow:0 1px 0 ",";padding:0 20px;span{color:",";font-size:14px;font-weight:500;}.icon-times{width:24px;height:24px;cursor:pointer;color:",";&:hover{color:",";}&:active{color:",";}}}.mainContainer{padding:24px 20px;.line{display:flex;align-items:center;height:40px;width:100%;.option{width:56px;height:36px;display:flex;align-items:center;justify-content:center;border:1px solid ",";box-sizing:border-box;border-radius:4px;color:",";background:",";cursor:pointer;transition:background-color 0.2s ease-in-out;&::after{content:'';display:inline-block;width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid ",";margin-left:3px;transition:all 0.2s ease-in-out;}&:not(.active):hover{background:",";}&:active,&.active{background:",";&::after{transform:rotate(180deg);}}}.WorkspaceSelect{width:84px;height:36px;flex-shrink:0;}}.foldContainer{margin-top:12px;.line.replace{padding-left:16px;input{flex:1;height:36px;border:1px solid ",";background:",";box-sizing:border-box;border-radius:4px;margin-left:10px;text-indent:8px;color:",";&::placeholder{color:#999;}&:focus{border-color:#1684fc;}}span{color:",";}}footer{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:12px;button{width:80px;height:32px;display:flex;align-items:center;justify-content:center;box-sizing:border-box;border-radius:4px;cursor:pointer;background:",";color:",";border:1px solid ",";transition:all ease-in-out 0.2s;&:not(:active):not(:disabled):hover{background:",";border:1px solid ",";}&:active{background:",";border:1px solid ",";}&:disabled{cursor:not-allowed;color:",";}}.right{display:flex;align-items:center;.replaceAllBtn{margin-left:12px;}}}}}&.isFocusPanel{box-shadow:0 6px 12px rgba(51,55,62,0.09),0 2px 3px rgba(22,22,33,0.02),0 4px 4px rgba(3,37,80,0.02);}"],t=>t.theme.color_bg_white,t=>t.theme.color_bg_border_02,t=>t.theme.color_bg_white,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_text_L1,t=>t.theme.color_text_L2,t=>t.theme.color_text_L1,t=>t.theme.color_text_L1,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_text_L1,t=>t.theme.color_bg_white,t=>t.theme.color_text_L1,t=>t.theme.color_bg_canvas,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_bg_border_02,t=>t.theme.color_bg_white,t=>t.theme.color_text_L1,t=>t.theme.color_text_L1,t=>t.theme.color_bg_white,t=>t.theme.color_text_L1,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_text_disabled01),Ie=(0,u.DU)(["#IBOT_SELECT_MENU_ROOT{.findReplacePanelSelectScreenMenu{width:120px;}}"]);class Oe extends r.PureComponent{constructor(){var n;super(...arguments),n=this,(0,p.A)(this,"state",{innerHeight:window.innerHeight,innerWidth:window.innerWidth}),(0,p.A)(this,"selectScreenOptionList",[{label:I18N.Popups.findReplacePanel.currentScreen,value:"current"},{label:I18N.Popups.findReplacePanel.allScreen,value:"all"}]),(0,p.A)(this,"handleMove",(s,c)=>{const d={left:s,top:c};this.props.dispatch({type:"findReplacePanel:set:position",payload:{position:d}})}),(0,p.A)(this,"handleClickClose",()=>{this.props.dispatch({type:"findReplacePanel:reset:state"}),(0,he.rn)("\u5173\u95ED")}),(0,p.A)(this,"handleChangeSearchValue",s=>{this.props.dispatch({type:"findReplacePanel:update",payload:{searchValue:s}}),(0,he.rn)('"\u67E5\u627E"\u8F93\u5165\u6587\u5B57')}),(0,p.A)(this,"handleSearch",function(s){s===void 0&&(s=!0);const{searchValue:c,selectScreenValue:d,dispatch:w}=n.props;if(c.length===0)return;w({type:"entry:findReplacePanel:search",payload:{isCurrentScreen:d==="current",searchValue:c}}),s&&(0,he.rn)("\u70B9\u51FB\u67E5\u627E")}),(0,p.A)(this,"handleSelectWidget",s=>{this.props.dispatch({type:"entry:findReplacePanel:select:widget",payload:{index:s}})}),(0,p.A)(this,"handleSelectScreen",async s=>{var c;await this.props.dispatch({type:"findReplacePanel:update",payload:{selectScreenValue:s}}),this.handleSearch(!1);const d="\u9009\u62E9"+((c=this.selectScreenOptionList.find(w=>{let{value:P}=w;return P===s}))==null?void 0:c.label);(0,he.rn)(d)}),(0,p.A)(this,"handleToggleFold",()=>{const{isFold:s,dispatch:c}=this.props;c({type:"findReplacePanel:update",payload:{isFold:!s}});const d=s?"\u9009\u9879\u5C55\u5F00":"\u9009\u9879\u6298\u53E0";(0,he.rn)(d)}),(0,p.A)(this,"handleChangeReplaceValue",s=>{const c=s.target.value;this.props.dispatch({type:"findReplacePanel:update",payload:{replaceValue:c}}),(0,he.rn)('"\u66FF\u6362\u4E3A"\u8F93\u5165\u6587\u5B57')}),(0,p.A)(this,"handleReplace",()=>{this.props.dispatch({type:"entry:findReplacePanel:replace:widget"}),(0,he.rn)("\u70B9\u51FB\u66FF\u6362")}),(0,p.A)(this,"handleNotice",function(s,c){c===void 0&&(c=void 0);const{selectScreenValue:d,searchValue:w,replaceValue:P,showSelectScreen:F,findWidgetList:X}=n.props,pe=d==="current"||!F?n.selectScreenOptionList[0].label:n.selectScreenOptionList[1].label,ye=c?c.length:X.length;return s.replace(/%selectScreen%/,pe).replace(/%total%/,ye).replace(/%find%/,(0,he._H)(w)).replace(/%replace%/,(0,he._H)(P))}),(0,p.A)(this,"handleReplaceAll",()=>{const{dispatch:s}=this.props;s({type:"modal:update:state",payload:{secondaryConfirmModal:{isOpen:!0,title:I18N.Popups.findReplacePanel.allReplace,isHTML:!0,desc:this.handleNotice(I18N.Popups.findReplacePanel.allReplaceTips),onConfirm:()=>{s({type:"entry:findReplacePanel:replace:all:widget",payload:{handleReplaceAllNotice:this.handleReplaceAllNotice}}),(0,he.rn)("\u70B9\u51FB\u5168\u90E8\u66FF\u6362")}}}})}),(0,p.A)(this,"handleReplaceAllNotice",(s,c)=>{const d=this.handleNotice(I18N.Popups.findReplacePanel.notice.allReplaceSuccess,s);MB.notice({text:c.length===0?d:d+"\uFF0C"+I18N.Popups.findReplacePanel.notice.allReplaceFail.replace(/%fail%/,c.length),duration:3e3})}),(0,p.A)(this,"handleClickOutSide",s=>{let{target:c}=s;const d=document.querySelector(".findReplacePanel");if(d){const w=d.contains(c);this.props.dispatch({type:"findReplacePanel:update",payload:{isFocusPanel:w}})}}),(0,p.A)(this,"handleIndex",s=>{const{selectIndex:c,findWidgetList:d}=this.props,{shiftKey:w,key:P}=s,F=P===vo._.Enter,X=d.length;let ee=0;return F&&(w?(ee=c<=1?X:c-1,(0,he.rn)("\u5FEB\u6377\u952E\u4E0A\u4E00\u9879")):(ee=c>=X?1:c+1,(0,he.rn)("\u5FEB\u6377\u952E\u4E0B\u4E00\u9879"))),ee}),(0,p.A)(this,"handleKeyDown",s=>{const{isFocusPanel:c,dispatch:d}=this.props;if(!c)return;s.stopPropagation();const w=this.handleIndex(s);w&&d({type:"entry:findReplacePanel:select:widget",payload:{index:w}})}),(0,p.A)(this,"handleClearData",()=>{const{findWidgetList:s,dispatch:c}=this.props;s.length&&c({type:"findReplacePanel:clear:result"})}),(0,p.A)(this,"handleReplaceKeyDown",s=>{const{findWidgetList:c}=this.props;if(!c.length)return;const{key:d}=s;d===vo._.Enter&&(this.handleReplace(),(0,he.rn)("\u5FEB\u6377\u952E\u66FF\u6362"))}),(0,p.A)(this,"handleUpdateState",()=>this.setState({innerHeight:window.innerHeight,innerWidth:window.innerWidth})),(0,p.A)(this,"handleUpdateDragOrResizeModal",s=>{this.props.dispatch({type:"modal:update:state",payload:{isDragOrResizeModal:s}})})}componentDidMount(){window.addEventListener("resize",this.handleUpdateState)}componentWillUnmount(){window.removeEventListener("resize",this.handleUpdateState),this.handleUpdateDragOrResizeModal(!1)}render(){const{show:n,position:s,findWidgetList:c,showSelectScreen:d,searchValue:w,status:P,selectIndex:F,selectScreenValue:X,replaceValue:ee,isFocusPanel:pe,isFold:ye}=this.props,{innerWidth:Ae,innerHeight:we}=this.state,_e=c.length,Fe=P===$h.nW.searching,Ye=P===$h.nW.hasResults&&w!==ee;if(!n)return null;const He=Math.max(Math.min(s==null?void 0:s.left,Ae-426),0),tt=Math.max(Math.min(s==null?void 0:s.top,we-220),0);return(0,i.jsx)(ir.A,{position:{left:He,top:tt},onMove:this.handleMove,onMoveStart:()=>this.handleUpdateDragOrResizeModal(!0),onMoveEnd:()=>this.handleUpdateDragOrResizeModal(!1),children:(0,i.jsxs)(Pe,{className:f()("findReplacePanel",{isFocusPanel:pe}),children:[(0,i.jsxs)("header",{type:"draggable",children:[(0,i.jsx)("span",{children:I18N.ToolBar.find_replace}),(0,i.jsx)(Je.C,{className:"icon-times",name:"general/times",onClick:this.handleClickClose})]}),(0,i.jsxs)("div",{className:"mainContainer",children:[(0,i.jsxs)("div",{className:"line",children:[(0,i.jsx)("button",{className:f()("option",{active:!ye}),onClick:this.handleToggleFold,children:I18N.Popups.findReplacePanel.option}),(0,i.jsx)(Q,{value:w,result:{status:P,total:_e,index:F},onChange:this.handleChangeSearchValue,onSearch:this.handleSearch,onSetResultIndex:this.handleSelectWidget,onClearData:this.handleClearData}),(0,i.jsx)(ge.mq,{menuClassName:"findReplacePanelSelectScreenMenu",disabled:!d,optionList:this.selectScreenOptionList,value:X,onChange:this.handleSelectScreen})]}),!ye&&(0,i.jsxs)("div",{className:"foldContainer",children:[(0,i.jsxs)("div",{className:"line replace",children:[(0,i.jsx)("span",{children:I18N.Popups.findReplacePanel.replaceWith}),(0,i.jsx)("input",{type:"text",value:ee,placeholder:I18N.Popups.findReplacePanel.inputReplaceContent,onChange:this.handleChangeReplaceValue,onKeyDown:this.handleReplaceKeyDown})]}),(0,i.jsxs)("footer",{children:[(0,i.jsx)(Zn.tA,{className:"findBtn",disabled:w.length===0||Fe,onClick:this.handleSearch,children:Fe?I18N.Popups.findReplacePanel.searching:I18N.Popups.findReplacePanel.find}),(0,i.jsxs)("div",{className:"right",children:[(0,i.jsx)(Zn.tA,{className:"replaceBtn",disabled:!Ye,onClick:this.handleReplace,children:I18N.Popups.findReplacePanel.replace}),(0,i.jsx)(Zn.tA,{className:"replaceAllBtn",disabled:!Ye,onClick:this.handleReplaceAll,children:I18N.Popups.findReplacePanel.allReplace})]})]})]})]}),(0,i.jsx)(Ie,{}),(0,i.jsx)(Hc.A,{target:document,onMouseDown:(0,Hc.t)(this.handleClickOutSide,{capture:!0}),onKeyDown:this.handleKeyDown})]})})}}const Ke=(0,m.Mz)([Me.Gh,y.r],(t,n)=>{let{show:s,position:c,findWidgetList:d,searchValue:w,status:P,selectScreenValue:F,selectIndex:X,replaceValue:ee,isFocusPanel:pe,isFold:ye}=t,{isEditingProjectMain:Ae}=n;return{show:s,position:c,findWidgetList:d,searchValue:w,status:P,selectScreenValue:F,selectIndex:X,replaceValue:ee,showSelectScreen:Ae,isFocusPanel:pe,isFold:ye}}),ot=(0,o.Ng)(t=>Ke(t))(Oe),rt=(0,u.DU)(["@font-face{font-family:'Alfa Slab One';font-style:normal;font-weight:400;font-display:swap;src:local('Alfa Slab One Regular'),local('AlfaSlabOne-Regular'),url(https://fonts.gstatic.com/s/alfaslabone/v10/6NUQ8FmMKwSEKjnm5-4v-4Jh2d1he_escmAm9w.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Alfa Slab One';font-style:normal;font-weight:400;font-display:swap;src:local('Alfa Slab One Regular'),local('AlfaSlabOne-Regular'),url(https://fonts.gstatic.com/s/alfaslabone/v10/6NUQ8FmMKwSEKjnm5-4v-4Jh2dxhe_escmAm9w.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Alfa Slab One';font-style:normal;font-weight:400;font-display:swap;src:local('Alfa Slab One Regular'),local('AlfaSlabOne-Regular'),url(https://fonts.gstatic.com/s/alfaslabone/v10/6NUQ8FmMKwSEKjnm5-4v-4Jh2dJhe_escmA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Anton';font-style:normal;font-weight:400;font-display:swap;src:local('Anton Regular'),local('Anton-Regular'),url(https://fonts.gstatic.com/s/anton/v12/1Ptgg87LROyAm3K8-C8CSKlvPfE.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Anton';font-style:normal;font-weight:400;font-display:swap;src:local('Anton Regular'),local('Anton-Regular'),url(https://fonts.gstatic.com/s/anton/v12/1Ptgg87LROyAm3K9-C8CSKlvPfE.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Anton';font-style:normal;font-weight:400;font-display:swap;src:local('Anton Regular'),local('Anton-Regular'),url(https://fonts.gstatic.com/s/anton/v12/1Ptgg87LROyAm3Kz-C8CSKlv.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Averia Serif Libre';font-style:normal;font-weight:300;font-display:swap;src:local('Averia Serif Libre Light'),local('AveriaSerifLibre-Light'),url(https://fonts.gstatic.com/s/averiaseriflibre/v10/neIVzD2ms4wxr6GvjeD0X88SHPyX2xYGCSmaxq0rVLG_bA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Averia Serif Libre';font-style:italic;font-weight:300;font-display:swap;src:local('Averia Serif Libre Light Italic'),local('AveriaSerifLibre-LightItalic'),url(https://fonts.gstatic.com/s/averiaseriflibre/v10/neIbzD2ms4wxr6GvjeD0X88SHPyX2xYOpzMmw50pXradbmHr.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Averia Serif Libre';font-style:italic;font-weight:400;font-display:swap;src:local('Averia Serif Libre Italic'),local('AveriaSerifLibre-Italic'),url(https://fonts.gstatic.com/s/averiaseriflibre/v10/neIUzD2ms4wxr6GvjeD0X88SHPyX2xYOpzuN4YgEfLu3.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Averia Serif Libre';font-style:italic;font-weight:700;font-display:swap;src:local('Averia Serif Libre Bold Italic'),local('AveriaSerifLibre-BoldItalic'),url(https://fonts.gstatic.com/s/averiaseriflibre/v10/neIbzD2ms4wxr6GvjeD0X88SHPyX2xYOpzM2xJ0pXradbmHr.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Berkshire Swash';font-style:normal;font-weight:400;font-display:swap;src:local('Berkshire Swash Regular'),local('BerkshireSwash-Regular'),url(https://fonts.gstatic.com/s/berkshireswash/v9/ptRRTi-cavZOGqCvnNJDl5m5XmN_pM4zT305QaYc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Berkshire Swash';font-style:normal;font-weight:400;font-display:swap;src:local('Berkshire Swash Regular'),local('BerkshireSwash-Regular'),url(https://fonts.gstatic.com/s/berkshireswash/v9/ptRRTi-cavZOGqCvnNJDl5m5XmN_qs4zT305QQ.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Caveat Brush';font-style:normal;font-weight:400;font-display:swap;src:local('Caveat Brush'),local('CaveatBrush-Regular'),url(https://fonts.gstatic.com/s/caveatbrush/v6/EYq0maZfwr9S9-ETZc3fKXt8UrOS8XlNQqOw.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Caveat Brush';font-style:normal;font-weight:400;font-display:swap;src:local('Caveat Brush'),local('CaveatBrush-Regular'),url(https://fonts.gstatic.com/s/caveatbrush/v6/EYq0maZfwr9S9-ETZc3fKXt8XLOS8XlNQg.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Cherry Swash';font-style:normal;font-weight:400;font-display:swap;src:local('Cherry Swash'),local('CherrySwash-Regular'),url(https://fonts.gstatic.com/s/cherryswash/v9/i7dNIFByZjaNAMxtZcnfAy5MSXK_MQacb0yG.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Cherry Swash';font-style:normal;font-weight:400;font-display:swap;src:local('Cherry Swash'),local('CherrySwash-Regular'),url(https://fonts.gstatic.com/s/cherryswash/v9/i7dNIFByZjaNAMxtZcnfAy5MR3K_MQacbw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Cinzel Decorative';font-style:normal;font-weight:700;font-display:swap;src:local('Cinzel Decorative Bold'),local('CinzelDecorative-Bold'),url(https://fonts.gstatic.com/s/cinzeldecorative/v9/daaHSScvJGqLYhG8nNt8KPPswUAPniZoadlESTGplhXF.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Cinzel';font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/cinzel/v10/8vIU7ww63mVu7gtR-kwKxNvkNOjw-tbnfYPlC2xcZqTFU3AS.woff) format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Cinzel';font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/cinzel/v10/8vIU7ww63mVu7gtR-kwKxNvkNOjw-tbnfY3lC2xcZqTFUw.woff) format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Clicker Script';font-style:normal;font-weight:400;font-display:swap;src:local('Clicker Script'),local('ClickerScript-Regular'),url(https://fonts.gstatic.com/s/clickerscript/v8/raxkHiKPvt8CMH6ZWP8PdlEq71rR0Tu2KrfuYFE.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Clicker Script';font-style:normal;font-weight:400;font-display:swap;src:local('Clicker Script'),local('ClickerScript-Regular'),url(https://fonts.gstatic.com/s/clickerscript/v8/raxkHiKPvt8CMH6ZWP8PdlEq71rf0Tu2Krfu.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Cormorant';font-style:normal;font-weight:600;font-display:swap;src:local('Cormorant SemiBold'),local('Cormorant-SemiBold'),url(https://fonts.gstatic.com/s/cormorant/v10/H4cgBXOCl9bbnla_nHIiML-oiIazQTJjFuER.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Cormorant';font-style:normal;font-weight:600;font-display:swap;src:local('Cormorant SemiBold'),local('Cormorant-SemiBold'),url(https://fonts.gstatic.com/s/cormorant/v10/H4cgBXOCl9bbnla_nHIiML-ogYazQTJjFuER.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Cormorant';font-style:normal;font-weight:600;font-display:swap;src:local('Cormorant SemiBold'),local('Cormorant-SemiBold'),url(https://fonts.gstatic.com/s/cormorant/v10/H4cgBXOCl9bbnla_nHIiML-oioazQTJjFuER.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Cormorant';font-style:normal;font-weight:600;font-display:swap;src:local('Cormorant SemiBold'),local('Cormorant-SemiBold'),url(https://fonts.gstatic.com/s/cormorant/v10/H4cgBXOCl9bbnla_nHIiML-oi4azQTJjFuER.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Cormorant';font-style:normal;font-weight:600;font-display:swap;src:local('Cormorant SemiBold'),local('Cormorant-SemiBold'),url(https://fonts.gstatic.com/s/cormorant/v10/H4cgBXOCl9bbnla_nHIiML-ohYazQTJjFg.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Flamenco';font-style:normal;font-weight:400;font-display:swap;src:local('Flamenco Regular'),local('Flamenco-Regular'),url(https://fonts.gstatic.com/s/flamenco/v11/neIIzCehqYguo67ssZWBFqwYUp31.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Heebo';font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/heebo/v9/NGSpv5_NC0k9P_v6ZUCbLRAHxK1E1yysd0mg7UiCXB5WkK8.woff) format('woff');unicode-range:U+0590-05FF,U+20AA,U+25CC,U+FB1D-FB4F;}@font-face{font-family:'Heebo';font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/heebo/v9/NGSpv5_NC0k9P_v6ZUCbLRAHxK1E1yysdUmg7UiCXB5W.woff) format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'IM Fell DW Pica';font-style:normal;font-weight:400;font-display:swap;src:local('IM FELL DW Pica Roman'),local('IM_FELL_DW_Pica_Roman'),url(https://fonts.gstatic.com/s/imfelldwpica/v10/2sDGZGRQotv9nbn2qSl0TxXVYNwNYwnVnCwsMA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Jost';font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/jost/v3/92zPtBhPNqw79Ij1E865zBUv7mwjIjVFNI4un_HKOEp-Cw.woff) format('woff');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Jost';font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/jost/v3/92zPtBhPNqw79Ij1E865zBUv7mwjIjVPNI4un_HKOEp-Cw.woff) format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Jost';font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/jost/v3/92zPtBhPNqw79Ij1E865zBUv7mwjIjVBNI4un_HKOEo.woff) format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Kalam';font-style:normal;font-weight:400;font-display:swap;src:local('Kalam'),local('Kalam-Regular'),url(https://fonts.gstatic.com/s/kalam/v11/YA9dr0Wd4kDdMthQOCfhsCkAj7g.woff2) format('woff2');unicode-range:U+0900-097F,U+1CD0-1CF6,U+1CF8-1CF9,U+200C-200D,U+20A8,U+20B9,U+25CC,U+A830-A839,U+A8E0-A8FB;}@font-face{font-family:'Kalam';font-style:normal;font-weight:400;font-display:swap;src:local('Kalam'),local('Kalam-Regular'),url(https://fonts.gstatic.com/s/kalam/v11/YA9dr0Wd4kDdMthfOCfhsCkAj7g.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Kalam';font-style:normal;font-weight:400;font-display:swap;src:local('Kalam'),local('Kalam-Regular'),url(https://fonts.gstatic.com/s/kalam/v11/YA9dr0Wd4kDdMthROCfhsCkA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Roboto';font-style:italic;font-weight:100;font-display:swap;src:local('Roboto Thin Italic'),local('Roboto-ThinItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOiCnqEu92Fr1Mu51QrEz0dL-vwnYh2eg.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Roboto';font-style:italic;font-weight:100;font-display:swap;src:local('Roboto Thin Italic'),local('Roboto-ThinItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOiCnqEu92Fr1Mu51QrEzQdL-vwnYh2eg.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Roboto';font-style:italic;font-weight:100;font-display:swap;src:local('Roboto Thin Italic'),local('Roboto-ThinItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOiCnqEu92Fr1Mu51QrEzwdL-vwnYh2eg.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:100;font-display:swap;src:local('Roboto Thin Italic'),local('Roboto-ThinItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOiCnqEu92Fr1Mu51QrEzMdL-vwnYh2eg.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:100;font-display:swap;src:local('Roboto Thin Italic'),local('Roboto-ThinItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOiCnqEu92Fr1Mu51QrEz8dL-vwnYh2eg.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Roboto';font-style:italic;font-weight:100;font-display:swap;src:local('Roboto Thin Italic'),local('Roboto-ThinItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOiCnqEu92Fr1Mu51QrEz4dL-vwnYh2eg.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:100;font-display:swap;src:local('Roboto Thin Italic'),local('Roboto-ThinItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOiCnqEu92Fr1Mu51QrEzAdL-vwnYg.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Roboto';font-style:italic;font-weight:300;font-display:swap;src:local('Roboto Light Italic'),local('Roboto-LightItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TjASc3CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Roboto';font-style:italic;font-weight:300;font-display:swap;src:local('Roboto Light Italic'),local('Roboto-LightItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TjASc-CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Roboto';font-style:italic;font-weight:300;font-display:swap;src:local('Roboto Light Italic'),local('Roboto-LightItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TjASc2CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:300;font-display:swap;src:local('Roboto Light Italic'),local('Roboto-LightItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TjASc5CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:300;font-display:swap;src:local('Roboto Light Italic'),local('Roboto-LightItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TjASc1CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Roboto';font-style:italic;font-weight:300;font-display:swap;src:local('Roboto Light Italic'),local('Roboto-LightItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TjASc0CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:300;font-display:swap;src:local('Roboto Light Italic'),local('Roboto-LightItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TjASc6CsTYl4BO.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Roboto';font-style:italic;font-weight:400;font-display:swap;src:local('Roboto Italic'),local('Roboto-Italic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1Mu51xFIzIXKMnyrYk.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Roboto';font-style:italic;font-weight:400;font-display:swap;src:local('Roboto Italic'),local('Roboto-Italic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1Mu51xMIzIXKMnyrYk.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Roboto';font-style:italic;font-weight:400;font-display:swap;src:local('Roboto Italic'),local('Roboto-Italic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1Mu51xEIzIXKMnyrYk.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:400;font-display:swap;src:local('Roboto Italic'),local('Roboto-Italic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1Mu51xLIzIXKMnyrYk.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:400;font-display:swap;src:local('Roboto Italic'),local('Roboto-Italic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1Mu51xHIzIXKMnyrYk.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Roboto';font-style:italic;font-weight:400;font-display:swap;src:local('Roboto Italic'),local('Roboto-Italic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1Mu51xGIzIXKMnyrYk.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:400;font-display:swap;src:local('Roboto Italic'),local('Roboto-Italic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1Mu51xIIzIXKMny.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Roboto';font-style:italic;font-weight:500;font-display:swap;src:local('Roboto Medium Italic'),local('Roboto-MediumItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51S7ACc3CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Roboto';font-style:italic;font-weight:500;font-display:swap;src:local('Roboto Medium Italic'),local('Roboto-MediumItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51S7ACc-CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Roboto';font-style:italic;font-weight:500;font-display:swap;src:local('Roboto Medium Italic'),local('Roboto-MediumItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51S7ACc2CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:500;font-display:swap;src:local('Roboto Medium Italic'),local('Roboto-MediumItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51S7ACc5CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:500;font-display:swap;src:local('Roboto Medium Italic'),local('Roboto-MediumItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51S7ACc1CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Roboto';font-style:italic;font-weight:500;font-display:swap;src:local('Roboto Medium Italic'),local('Roboto-MediumItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51S7ACc0CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:500;font-display:swap;src:local('Roboto Medium Italic'),local('Roboto-MediumItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51S7ACc6CsTYl4BO.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Roboto';font-style:italic;font-weight:700;font-display:swap;src:local('Roboto Bold Italic'),local('Roboto-BoldItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TzBic3CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Roboto';font-style:italic;font-weight:700;font-display:swap;src:local('Roboto Bold Italic'),local('Roboto-BoldItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TzBic-CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Roboto';font-style:italic;font-weight:700;font-display:swap;src:local('Roboto Bold Italic'),local('Roboto-BoldItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TzBic2CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:700;font-display:swap;src:local('Roboto Bold Italic'),local('Roboto-BoldItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TzBic5CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:700;font-display:swap;src:local('Roboto Bold Italic'),local('Roboto-BoldItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TzBic1CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Roboto';font-style:italic;font-weight:700;font-display:swap;src:local('Roboto Bold Italic'),local('Roboto-BoldItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TzBic0CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:700;font-display:swap;src:local('Roboto Bold Italic'),local('Roboto-BoldItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TzBic6CsTYl4BO.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Roboto';font-style:italic;font-weight:900;font-display:swap;src:local('Roboto Black Italic'),local('Roboto-BlackItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TLBCc3CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Roboto';font-style:italic;font-weight:900;font-display:swap;src:local('Roboto Black Italic'),local('Roboto-BlackItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TLBCc-CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Roboto';font-style:italic;font-weight:900;font-display:swap;src:local('Roboto Black Italic'),local('Roboto-BlackItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TLBCc2CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:900;font-display:swap;src:local('Roboto Black Italic'),local('Roboto-BlackItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TLBCc5CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:900;font-display:swap;src:local('Roboto Black Italic'),local('Roboto-BlackItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TLBCc1CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Roboto';font-style:italic;font-weight:900;font-display:swap;src:local('Roboto Black Italic'),local('Roboto-BlackItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TLBCc0CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:900;font-display:swap;src:local('Roboto Black Italic'),local('Roboto-BlackItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TLBCc6CsTYl4BO.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Roboto';font-style:normal;font-weight:100;font-display:swap;src:local('Roboto Thin'),local('Roboto-Thin'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1MmgVxFIzIXKMnyrYk.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Roboto';font-style:normal;font-weight:100;font-display:swap;src:local('Roboto Thin'),local('Roboto-Thin'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1MmgVxMIzIXKMnyrYk.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Roboto';font-style:normal;font-weight:100;font-display:swap;src:local('Roboto Thin'),local('Roboto-Thin'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1MmgVxEIzIXKMnyrYk.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:100;font-display:swap;src:local('Roboto Thin'),local('Roboto-Thin'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1MmgVxLIzIXKMnyrYk.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:100;font-display:swap;src:local('Roboto Thin'),local('Roboto-Thin'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1MmgVxHIzIXKMnyrYk.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Roboto';font-style:normal;font-weight:100;font-display:swap;src:local('Roboto Thin'),local('Roboto-Thin'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1MmgVxGIzIXKMnyrYk.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:100;font-display:swap;src:local('Roboto Thin'),local('Roboto-Thin'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1MmgVxIIzIXKMny.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Roboto';font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fCRc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Roboto';font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fABc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Roboto';font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fCBc4AMP6lbBP.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fBxc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fCxc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Roboto';font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fChc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fBBc4AMP6lQ.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Roboto';font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu72xKKTU1Kvnz.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Roboto';font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu5mxKKTU1Kvnz.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Roboto';font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7mxKKTU1Kvnz.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4WxKKTU1Kvnz.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7WxKKTU1Kvnz.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Roboto';font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7GxKKTU1Kvnz.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4mxKKTU1Kg.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Roboto';font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fCRc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Roboto';font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fABc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Roboto';font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fCBc4AMP6lbBP.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fBxc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fCxc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Roboto';font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fChc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fBBc4AMP6lQ.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Roboto';font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfCRc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Roboto';font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfABc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Roboto';font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfCBc4AMP6lbBP.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfBxc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfCxc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Roboto';font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfChc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfBBc4AMP6lQ.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Roboto';font-style:normal;font-weight:900;font-display:swap;src:local('Roboto Black'),local('Roboto-Black'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmYUtfCRc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Roboto';font-style:normal;font-weight:900;font-display:swap;src:local('Roboto Black'),local('Roboto-Black'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmYUtfABc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Roboto';font-style:normal;font-weight:900;font-display:swap;src:local('Roboto Black'),local('Roboto-Black'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmYUtfCBc4AMP6lbBP.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:900;font-display:swap;src:local('Roboto Black'),local('Roboto-Black'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmYUtfBxc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:900;font-display:swap;src:local('Roboto Black'),local('Roboto-Black'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmYUtfCxc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Roboto';font-style:normal;font-weight:900;font-display:swap;src:local('Roboto Black'),local('Roboto-Black'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmYUtfChc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:900;font-display:swap;src:local('Roboto Black'),local('Roboto-Black'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmYUtfBBc4AMP6lQ.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300;font-display:swap;src:local('Open Sans Light Italic'),local('OpenSans-LightItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWyV9hmIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300;font-display:swap;src:local('Open Sans Light Italic'),local('OpenSans-LightItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWyV9hvIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300;font-display:swap;src:local('Open Sans Light Italic'),local('OpenSans-LightItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWyV9hnIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300;font-display:swap;src:local('Open Sans Light Italic'),local('OpenSans-LightItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWyV9hoIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300;font-display:swap;src:local('Open Sans Light Italic'),local('OpenSans-LightItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWyV9hkIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300;font-display:swap;src:local('Open Sans Light Italic'),local('OpenSans-LightItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWyV9hlIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300;font-display:swap;src:local('Open Sans Light Italic'),local('OpenSans-LightItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWyV9hrIqOxjaPX.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:400;font-display:swap;src:local('Open Sans Italic'),local('OpenSans-Italic'),url(https://fonts.gstatic.com/s/opensans/v18/mem6YaGs126MiZpBA-UFUK0Udc1GAK6bt6o.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:400;font-display:swap;src:local('Open Sans Italic'),local('OpenSans-Italic'),url(https://fonts.gstatic.com/s/opensans/v18/mem6YaGs126MiZpBA-UFUK0ddc1GAK6bt6o.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:400;font-display:swap;src:local('Open Sans Italic'),local('OpenSans-Italic'),url(https://fonts.gstatic.com/s/opensans/v18/mem6YaGs126MiZpBA-UFUK0Vdc1GAK6bt6o.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:400;font-display:swap;src:local('Open Sans Italic'),local('OpenSans-Italic'),url(https://fonts.gstatic.com/s/opensans/v18/mem6YaGs126MiZpBA-UFUK0adc1GAK6bt6o.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:400;font-display:swap;src:local('Open Sans Italic'),local('OpenSans-Italic'),url(https://fonts.gstatic.com/s/opensans/v18/mem6YaGs126MiZpBA-UFUK0Wdc1GAK6bt6o.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:400;font-display:swap;src:local('Open Sans Italic'),local('OpenSans-Italic'),url(https://fonts.gstatic.com/s/opensans/v18/mem6YaGs126MiZpBA-UFUK0Xdc1GAK6bt6o.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:400;font-display:swap;src:local('Open Sans Italic'),local('OpenSans-Italic'),url(https://fonts.gstatic.com/s/opensans/v18/mem6YaGs126MiZpBA-UFUK0Zdc1GAK6b.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:600;font-display:swap;src:local('Open Sans SemiBold Italic'),local('OpenSans-SemiBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKXGUdhmIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:600;font-display:swap;src:local('Open Sans SemiBold Italic'),local('OpenSans-SemiBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKXGUdhvIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:600;font-display:swap;src:local('Open Sans SemiBold Italic'),local('OpenSans-SemiBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKXGUdhnIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:600;font-display:swap;src:local('Open Sans SemiBold Italic'),local('OpenSans-SemiBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKXGUdhoIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:600;font-display:swap;src:local('Open Sans SemiBold Italic'),local('OpenSans-SemiBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKXGUdhkIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:600;font-display:swap;src:local('Open Sans SemiBold Italic'),local('OpenSans-SemiBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKXGUdhlIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:600;font-display:swap;src:local('Open Sans SemiBold Italic'),local('OpenSans-SemiBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKXGUdhrIqOxjaPX.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:700;font-display:swap;src:local('Open Sans Bold Italic'),local('OpenSans-BoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWiUNhmIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:700;font-display:swap;src:local('Open Sans Bold Italic'),local('OpenSans-BoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWiUNhvIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:700;font-display:swap;src:local('Open Sans Bold Italic'),local('OpenSans-BoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWiUNhnIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:700;font-display:swap;src:local('Open Sans Bold Italic'),local('OpenSans-BoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWiUNhoIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:700;font-display:swap;src:local('Open Sans Bold Italic'),local('OpenSans-BoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWiUNhkIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:700;font-display:swap;src:local('Open Sans Bold Italic'),local('OpenSans-BoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWiUNhlIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:700;font-display:swap;src:local('Open Sans Bold Italic'),local('OpenSans-BoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWiUNhrIqOxjaPX.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold Italic'),local('OpenSans-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKW-U9hmIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold Italic'),local('OpenSans-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKW-U9hvIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold Italic'),local('OpenSans-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKW-U9hnIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold Italic'),local('OpenSans-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKW-U9hoIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold Italic'),local('OpenSans-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKW-U9hkIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold Italic'),local('OpenSans-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKW-U9hlIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold Italic'),local('OpenSans-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKW-U9hrIqOxjaPX.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;font-display:swap;src:local('Open Sans Light'),local('OpenSans-Light'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OX-hpKKSTj5PW.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;font-display:swap;src:local('Open Sans Light'),local('OpenSans-Light'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OVuhpKKSTj5PW.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;font-display:swap;src:local('Open Sans Light'),local('OpenSans-Light'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OXuhpKKSTj5PW.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;font-display:swap;src:local('Open Sans Light'),local('OpenSans-Light'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OUehpKKSTj5PW.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;font-display:swap;src:local('Open Sans Light'),local('OpenSans-Light'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OXehpKKSTj5PW.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;font-display:swap;src:local('Open Sans Light'),local('OpenSans-Light'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OXOhpKKSTj5PW.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;font-display:swap;src:local('Open Sans Light'),local('OpenSans-Light'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OUuhpKKSTjw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;font-display:swap;src:local('Open Sans Regular'),local('OpenSans-Regular'),url(https://fonts.gstatic.com/s/opensans/v18/mem8YaGs126MiZpBA-UFWJ0bf8pkAp6a.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;font-display:swap;src:local('Open Sans Regular'),local('OpenSans-Regular'),url(https://fonts.gstatic.com/s/opensans/v18/mem8YaGs126MiZpBA-UFUZ0bf8pkAp6a.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;font-display:swap;src:local('Open Sans Regular'),local('OpenSans-Regular'),url(https://fonts.gstatic.com/s/opensans/v18/mem8YaGs126MiZpBA-UFWZ0bf8pkAp6a.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;font-display:swap;src:local('Open Sans Regular'),local('OpenSans-Regular'),url(https://fonts.gstatic.com/s/opensans/v18/mem8YaGs126MiZpBA-UFVp0bf8pkAp6a.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;font-display:swap;src:local('Open Sans Regular'),local('OpenSans-Regular'),url(https://fonts.gstatic.com/s/opensans/v18/mem8YaGs126MiZpBA-UFWp0bf8pkAp6a.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;font-display:swap;src:local('Open Sans Regular'),local('OpenSans-Regular'),url(https://fonts.gstatic.com/s/opensans/v18/mem8YaGs126MiZpBA-UFW50bf8pkAp6a.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;font-display:swap;src:local('Open Sans Regular'),local('OpenSans-Regular'),url(https://fonts.gstatic.com/s/opensans/v18/mem8YaGs126MiZpBA-UFVZ0bf8pkAg.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;font-display:swap;src:local('Open Sans SemiBold'),local('OpenSans-SemiBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOX-hpKKSTj5PW.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;font-display:swap;src:local('Open Sans SemiBold'),local('OpenSans-SemiBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOVuhpKKSTj5PW.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;font-display:swap;src:local('Open Sans SemiBold'),local('OpenSans-SemiBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOXuhpKKSTj5PW.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;font-display:swap;src:local('Open Sans SemiBold'),local('OpenSans-SemiBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOUehpKKSTj5PW.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;font-display:swap;src:local('Open Sans SemiBold'),local('OpenSans-SemiBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOXehpKKSTj5PW.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;font-display:swap;src:local('Open Sans SemiBold'),local('OpenSans-SemiBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOXOhpKKSTj5PW.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;font-display:swap;src:local('Open Sans SemiBold'),local('OpenSans-SemiBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOUuhpKKSTjw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;font-display:swap;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN7rgOX-hpKKSTj5PW.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;font-display:swap;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN7rgOVuhpKKSTj5PW.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;font-display:swap;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN7rgOXuhpKKSTj5PW.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;font-display:swap;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN7rgOUehpKKSTj5PW.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;font-display:swap;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN7rgOXehpKKSTj5PW.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;font-display:swap;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN7rgOXOhpKKSTj5PW.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;font-display:swap;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN7rgOUuhpKKSTjw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold'),local('OpenSans-ExtraBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN8rsOX-hpKKSTj5PW.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold'),local('OpenSans-ExtraBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN8rsOVuhpKKSTj5PW.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold'),local('OpenSans-ExtraBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN8rsOXuhpKKSTj5PW.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold'),local('OpenSans-ExtraBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN8rsOUehpKKSTj5PW.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold'),local('OpenSans-ExtraBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN8rsOXehpKKSTj5PW.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold'),local('OpenSans-ExtraBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN8rsOXOhpKKSTj5PW.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold'),local('OpenSans-ExtraBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN8rsOUuhpKKSTjw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Lato';font-style:italic;font-weight:100;font-display:swap;src:local('Lato Hairline Italic'),local('Lato-HairlineItalic'),url(https://fonts.gstatic.com/s/lato/v17/S6u-w4BMUTPHjxsIPx-mPCLC79U11vU.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Lato';font-style:italic;font-weight:100;font-display:swap;src:local('Lato Hairline Italic'),local('Lato-HairlineItalic'),url(https://fonts.gstatic.com/s/lato/v17/S6u-w4BMUTPHjxsIPx-oPCLC79U1.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Lato';font-style:italic;font-weight:300;font-display:swap;src:local('Lato Light Italic'),local('Lato-LightItalic'),url(https://fonts.gstatic.com/s/lato/v17/S6u_w4BMUTPHjxsI9w2_FQftx9897sxZ.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Lato';font-style:italic;font-weight:300;font-display:swap;src:local('Lato Light Italic'),local('Lato-LightItalic'),url(https://fonts.gstatic.com/s/lato/v17/S6u_w4BMUTPHjxsI9w2_Gwftx9897g.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Lato';font-style:italic;font-weight:400;font-display:swap;src:local('Lato Italic'),local('Lato-Italic'),url(https://fonts.gstatic.com/s/lato/v17/S6u8w4BMUTPHjxsAUi-qNiXg7eU0.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Lato';font-style:italic;font-weight:400;font-display:swap;src:local('Lato Italic'),local('Lato-Italic'),url(https://fonts.gstatic.com/s/lato/v17/S6u8w4BMUTPHjxsAXC-qNiXg7Q.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Lato';font-style:italic;font-weight:700;font-display:swap;src:local('Lato Bold Italic'),local('Lato-BoldItalic'),url(https://fonts.gstatic.com/s/lato/v17/S6u_w4BMUTPHjxsI5wq_FQftx9897sxZ.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Lato';font-style:italic;font-weight:700;font-display:swap;src:local('Lato Bold Italic'),local('Lato-BoldItalic'),url(https://fonts.gstatic.com/s/lato/v17/S6u_w4BMUTPHjxsI5wq_Gwftx9897g.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Lato';font-style:italic;font-weight:900;font-display:swap;src:local('Lato Black Italic'),local('Lato-BlackItalic'),url(https://fonts.gstatic.com/s/lato/v17/S6u_w4BMUTPHjxsI3wi_FQftx9897sxZ.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Lato';font-style:italic;font-weight:900;font-display:swap;src:local('Lato Black Italic'),local('Lato-BlackItalic'),url(https://fonts.gstatic.com/s/lato/v17/S6u_w4BMUTPHjxsI3wi_Gwftx9897g.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Lato';font-style:normal;font-weight:100;font-display:swap;src:local('Lato Hairline'),local('Lato-Hairline'),url(https://fonts.gstatic.com/s/lato/v17/S6u8w4BMUTPHh30AUi-qNiXg7eU0.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Lato';font-style:normal;font-weight:100;font-display:swap;src:local('Lato Hairline'),local('Lato-Hairline'),url(https://fonts.gstatic.com/s/lato/v17/S6u8w4BMUTPHh30AXC-qNiXg7Q.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Lato';font-style:normal;font-weight:300;font-display:swap;src:local('Lato Light'),local('Lato-Light'),url(https://fonts.gstatic.com/s/lato/v17/S6u9w4BMUTPHh7USSwaPGQ3q5d0N7w.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Lato';font-style:normal;font-weight:300;font-display:swap;src:local('Lato Light'),local('Lato-Light'),url(https://fonts.gstatic.com/s/lato/v17/S6u9w4BMUTPHh7USSwiPGQ3q5d0.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Lato';font-style:normal;font-weight:400;font-display:swap;src:local('Lato Regular'),local('Lato-Regular'),url(https://fonts.gstatic.com/s/lato/v17/S6uyw4BMUTPHjxAwXiWtFCfQ7A.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Lato';font-style:normal;font-weight:400;font-display:swap;src:local('Lato Regular'),local('Lato-Regular'),url(https://fonts.gstatic.com/s/lato/v17/S6uyw4BMUTPHjx4wXiWtFCc.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Lato';font-style:normal;font-weight:700;font-display:swap;src:local('Lato Bold'),local('Lato-Bold'),url(https://fonts.gstatic.com/s/lato/v17/S6u9w4BMUTPHh6UVSwaPGQ3q5d0N7w.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Lato';font-style:normal;font-weight:700;font-display:swap;src:local('Lato Bold'),local('Lato-Bold'),url(https://fonts.gstatic.com/s/lato/v17/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Lato';font-style:normal;font-weight:900;font-display:swap;src:local('Lato Black'),local('Lato-Black'),url(https://fonts.gstatic.com/s/lato/v17/S6u9w4BMUTPHh50XSwaPGQ3q5d0N7w.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Lato';font-style:normal;font-weight:900;font-display:swap;src:local('Lato Black'),local('Lato-Black'),url(https://fonts.gstatic.com/s/lato/v17/S6u9w4BMUTPHh50XSwiPGQ3q5d0.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnohkk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnojUk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnojEk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnogkk7yRZrPA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnohkk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnojUk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnojEk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnogkk7yRZrPA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnohkk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnojUk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnojEk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnogkk7yRZrPA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnohkk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnojUk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnojEk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnogkk7yRZrPA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnohkk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnojUk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnojEk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnogkk7yRZrPA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnohkk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnojUk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnojEk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnogkk7yRZrPA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTjYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTPYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTLYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYgEM86xQ.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTjYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTPYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTLYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYgEM86xQ.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTjYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTPYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTLYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYgEM86xQ.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTjYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTPYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTLYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYgEM86xQ.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTjYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTPYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTLYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYgEM86xQ.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTjYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTPYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTLYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYgEM86xQ.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight Italic'),local('SourceSansPro-ExtraLightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZYokSdh18S0xR41YDw.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight Italic'),local('SourceSansPro-ExtraLightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZYokSdo18S0xR41YDw.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight Italic'),local('SourceSansPro-ExtraLightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZYokSdg18S0xR41YDw.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight Italic'),local('SourceSansPro-ExtraLightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZYokSdv18S0xR41YDw.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight Italic'),local('SourceSansPro-ExtraLightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZYokSdj18S0xR41YDw.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight Italic'),local('SourceSansPro-ExtraLightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZYokSdi18S0xR41YDw.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight Italic'),local('SourceSansPro-ExtraLightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZYokSds18S0xR41.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:300;font-display:swap;src:local('Source Sans Pro Light Italic'),local('SourceSansPro-LightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZMkidh18S0xR41YDw.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:300;font-display:swap;src:local('Source Sans Pro Light Italic'),local('SourceSansPro-LightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZMkido18S0xR41YDw.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:300;font-display:swap;src:local('Source Sans Pro Light Italic'),local('SourceSansPro-LightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZMkidg18S0xR41YDw.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:300;font-display:swap;src:local('Source Sans Pro Light Italic'),local('SourceSansPro-LightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZMkidv18S0xR41YDw.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:300;font-display:swap;src:local('Source Sans Pro Light Italic'),local('SourceSansPro-LightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZMkidj18S0xR41YDw.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:300;font-display:swap;src:local('Source Sans Pro Light Italic'),local('SourceSansPro-LightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZMkidi18S0xR41YDw.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:300;font-display:swap;src:local('Source Sans Pro Light Italic'),local('SourceSansPro-LightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZMkids18S0xR41.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:400;font-display:swap;src:local('Source Sans Pro Italic'),local('SourceSansPro-Italic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK1dSBYKcSV-LCoeQqfX1RYOo3qPZ7qsDJB9cme_xc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:400;font-display:swap;src:local('Source Sans Pro Italic'),local('SourceSansPro-Italic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK1dSBYKcSV-LCoeQqfX1RYOo3qPZ7jsDJB9cme_xc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:400;font-display:swap;src:local('Source Sans Pro Italic'),local('SourceSansPro-Italic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK1dSBYKcSV-LCoeQqfX1RYOo3qPZ7rsDJB9cme_xc.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:400;font-display:swap;src:local('Source Sans Pro Italic'),local('SourceSansPro-Italic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK1dSBYKcSV-LCoeQqfX1RYOo3qPZ7ksDJB9cme_xc.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:400;font-display:swap;src:local('Source Sans Pro Italic'),local('SourceSansPro-Italic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK1dSBYKcSV-LCoeQqfX1RYOo3qPZ7osDJB9cme_xc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:400;font-display:swap;src:local('Source Sans Pro Italic'),local('SourceSansPro-Italic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK1dSBYKcSV-LCoeQqfX1RYOo3qPZ7psDJB9cme_xc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:400;font-display:swap;src:local('Source Sans Pro Italic'),local('SourceSansPro-Italic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK1dSBYKcSV-LCoeQqfX1RYOo3qPZ7nsDJB9cme.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold Italic'),local('SourceSansPro-SemiBoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZY4lCdh18S0xR41YDw.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold Italic'),local('SourceSansPro-SemiBoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZY4lCdo18S0xR41YDw.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold Italic'),local('SourceSansPro-SemiBoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZY4lCdg18S0xR41YDw.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold Italic'),local('SourceSansPro-SemiBoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZY4lCdv18S0xR41YDw.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold Italic'),local('SourceSansPro-SemiBoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZY4lCdj18S0xR41YDw.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold Italic'),local('SourceSansPro-SemiBoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZY4lCdi18S0xR41YDw.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold Italic'),local('SourceSansPro-SemiBoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZY4lCds18S0xR41.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold Italic'),local('SourceSansPro-BoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZclSdh18S0xR41YDw.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold Italic'),local('SourceSansPro-BoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZclSdo18S0xR41YDw.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold Italic'),local('SourceSansPro-BoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZclSdg18S0xR41YDw.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold Italic'),local('SourceSansPro-BoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZclSdv18S0xR41YDw.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold Italic'),local('SourceSansPro-BoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZclSdj18S0xR41YDw.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold Italic'),local('SourceSansPro-BoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZclSdi18S0xR41YDw.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold Italic'),local('SourceSansPro-BoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZclSds18S0xR41.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:900;font-display:swap;src:local('Source Sans Pro Black Italic'),local('SourceSansPro-BlackItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZklydh18S0xR41YDw.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:900;font-display:swap;src:local('Source Sans Pro Black Italic'),local('SourceSansPro-BlackItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZklydo18S0xR41YDw.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:900;font-display:swap;src:local('Source Sans Pro Black Italic'),local('SourceSansPro-BlackItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZklydg18S0xR41YDw.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:900;font-display:swap;src:local('Source Sans Pro Black Italic'),local('SourceSansPro-BlackItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZklydv18S0xR41YDw.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:900;font-display:swap;src:local('Source Sans Pro Black Italic'),local('SourceSansPro-BlackItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZklydj18S0xR41YDw.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:900;font-display:swap;src:local('Source Sans Pro Black Italic'),local('SourceSansPro-BlackItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZklydi18S0xR41YDw.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:900;font-display:swap;src:local('Source Sans Pro Black Italic'),local('SourceSansPro-BlackItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZklyds18S0xR41.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight'),local('SourceSansPro-ExtraLight'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i94_wmhdu3cOWxy40.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight'),local('SourceSansPro-ExtraLight'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i94_wkxdu3cOWxy40.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight'),local('SourceSansPro-ExtraLight'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i94_wmxdu3cOWxy40.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight'),local('SourceSansPro-ExtraLight'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i94_wlBdu3cOWxy40.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight'),local('SourceSansPro-ExtraLight'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i94_wmBdu3cOWxy40.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight'),local('SourceSansPro-ExtraLight'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i94_wmRdu3cOWxy40.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight'),local('SourceSansPro-ExtraLight'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i94_wlxdu3cOWxw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:300;font-display:swap;src:local('Source Sans Pro Light'),local('SourceSansPro-Light'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwmhdu3cOWxy40.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:300;font-display:swap;src:local('Source Sans Pro Light'),local('SourceSansPro-Light'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwkxdu3cOWxy40.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:300;font-display:swap;src:local('Source Sans Pro Light'),local('SourceSansPro-Light'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwmxdu3cOWxy40.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:300;font-display:swap;src:local('Source Sans Pro Light'),local('SourceSansPro-Light'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwlBdu3cOWxy40.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:300;font-display:swap;src:local('Source Sans Pro Light'),local('SourceSansPro-Light'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwmBdu3cOWxy40.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:300;font-display:swap;src:local('Source Sans Pro Light'),local('SourceSansPro-Light'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwmRdu3cOWxy40.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:300;font-display:swap;src:local('Source Sans Pro Light'),local('SourceSansPro-Light'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwlxdu3cOWxw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:400;font-display:swap;src:local('Source Sans Pro Regular'),local('SourceSansPro-Regular'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK3dSBYKcSV-LCoeQqfX1RYOo3qNa7lujVj9_mf.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:400;font-display:swap;src:local('Source Sans Pro Regular'),local('SourceSansPro-Regular'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK3dSBYKcSV-LCoeQqfX1RYOo3qPK7lujVj9_mf.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:400;font-display:swap;src:local('Source Sans Pro Regular'),local('SourceSansPro-Regular'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK3dSBYKcSV-LCoeQqfX1RYOo3qNK7lujVj9_mf.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:400;font-display:swap;src:local('Source Sans Pro Regular'),local('SourceSansPro-Regular'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK3dSBYKcSV-LCoeQqfX1RYOo3qO67lujVj9_mf.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:400;font-display:swap;src:local('Source Sans Pro Regular'),local('SourceSansPro-Regular'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK3dSBYKcSV-LCoeQqfX1RYOo3qN67lujVj9_mf.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:400;font-display:swap;src:local('Source Sans Pro Regular'),local('SourceSansPro-Regular'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK3dSBYKcSV-LCoeQqfX1RYOo3qNq7lujVj9_mf.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:400;font-display:swap;src:local('Source Sans Pro Regular'),local('SourceSansPro-Regular'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK3dSBYKcSV-LCoeQqfX1RYOo3qOK7lujVj9w.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold'),local('SourceSansPro-SemiBold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwmhdu3cOWxy40.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold'),local('SourceSansPro-SemiBold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwkxdu3cOWxy40.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold'),local('SourceSansPro-SemiBold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwmxdu3cOWxy40.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold'),local('SourceSansPro-SemiBold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwlBdu3cOWxy40.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold'),local('SourceSansPro-SemiBold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwmBdu3cOWxy40.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold'),local('SourceSansPro-SemiBold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwmRdu3cOWxy40.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold'),local('SourceSansPro-SemiBold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwlxdu3cOWxw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold'),local('SourceSansPro-Bold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwmhdu3cOWxy40.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold'),local('SourceSansPro-Bold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwkxdu3cOWxy40.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold'),local('SourceSansPro-Bold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwmxdu3cOWxy40.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold'),local('SourceSansPro-Bold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwlBdu3cOWxy40.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold'),local('SourceSansPro-Bold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwmBdu3cOWxy40.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold'),local('SourceSansPro-Bold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwmRdu3cOWxy40.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold'),local('SourceSansPro-Bold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwlxdu3cOWxw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:900;font-display:swap;src:local('Source Sans Pro Black'),local('SourceSansPro-Black'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3iu4nwmhdu3cOWxy40.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:900;font-display:swap;src:local('Source Sans Pro Black'),local('SourceSansPro-Black'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3iu4nwkxdu3cOWxy40.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:900;font-display:swap;src:local('Source Sans Pro Black'),local('SourceSansPro-Black'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3iu4nwmxdu3cOWxy40.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:900;font-display:swap;src:local('Source Sans Pro Black'),local('SourceSansPro-Black'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3iu4nwlBdu3cOWxy40.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:900;font-display:swap;src:local('Source Sans Pro Black'),local('SourceSansPro-Black'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3iu4nwmBdu3cOWxy40.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:900;font-display:swap;src:local('Source Sans Pro Black'),local('SourceSansPro-Black'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3iu4nwmRdu3cOWxy40.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:900;font-display:swap;src:local('Source Sans Pro Black'),local('SourceSansPro-Black'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3iu4nwlxdu3cOWxw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:100;font-display:swap;src:local('Montserrat Thin Italic'),local('Montserrat-ThinItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUOjIg1_i6t8kCHKm459WxZqh7p29NfpiOjk20.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:100;font-display:swap;src:local('Montserrat Thin Italic'),local('Montserrat-ThinItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUOjIg1_i6t8kCHKm459WxZqh7g29NfpiOjk20.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:100;font-display:swap;src:local('Montserrat Thin Italic'),local('Montserrat-ThinItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUOjIg1_i6t8kCHKm459WxZqh7r29NfpiOjk20.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:100;font-display:swap;src:local('Montserrat Thin Italic'),local('Montserrat-ThinItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUOjIg1_i6t8kCHKm459WxZqh7q29NfpiOjk20.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:100;font-display:swap;src:local('Montserrat Thin Italic'),local('Montserrat-ThinItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUOjIg1_i6t8kCHKm459WxZqh7k29NfpiOj.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:200;font-display:swap;src:local('Montserrat ExtraLight Italic'),local('Montserrat-ExtraLightItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZBg_z8fZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:200;font-display:swap;src:local('Montserrat ExtraLight Italic'),local('Montserrat-ExtraLightItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZBg_z-PZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:200;font-display:swap;src:local('Montserrat ExtraLight Italic'),local('Montserrat-ExtraLightItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZBg_z8_Zwjimrq1Q_.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:200;font-display:swap;src:local('Montserrat ExtraLight Italic'),local('Montserrat-ExtraLightItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZBg_z8vZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:200;font-display:swap;src:local('Montserrat ExtraLight Italic'),local('Montserrat-ExtraLightItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZBg_z_PZwjimrqw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:300;font-display:swap;src:local('Montserrat Light Italic'),local('Montserrat-LightItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZYgzz8fZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:300;font-display:swap;src:local('Montserrat Light Italic'),local('Montserrat-LightItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZYgzz-PZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:300;font-display:swap;src:local('Montserrat Light Italic'),local('Montserrat-LightItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZYgzz8_Zwjimrq1Q_.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:300;font-display:swap;src:local('Montserrat Light Italic'),local('Montserrat-LightItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZYgzz8vZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:300;font-display:swap;src:local('Montserrat Light Italic'),local('Montserrat-LightItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZYgzz_PZwjimrqw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:400;font-display:swap;src:local('Montserrat Italic'),local('Montserrat-Italic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUQjIg1_i6t8kCHKm459WxRxC7m0dR9pBOi.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:400;font-display:swap;src:local('Montserrat Italic'),local('Montserrat-Italic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUQjIg1_i6t8kCHKm459WxRzS7m0dR9pBOi.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:400;font-display:swap;src:local('Montserrat Italic'),local('Montserrat-Italic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUQjIg1_i6t8kCHKm459WxRxi7m0dR9pBOi.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:400;font-display:swap;src:local('Montserrat Italic'),local('Montserrat-Italic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUQjIg1_i6t8kCHKm459WxRxy7m0dR9pBOi.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:400;font-display:swap;src:local('Montserrat Italic'),local('Montserrat-Italic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUQjIg1_i6t8kCHKm459WxRyS7m0dR9pA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:500;font-display:swap;src:local('Montserrat Medium Italic'),local('Montserrat-MediumItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZOg3z8fZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:500;font-display:swap;src:local('Montserrat Medium Italic'),local('Montserrat-MediumItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZOg3z-PZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:500;font-display:swap;src:local('Montserrat Medium Italic'),local('Montserrat-MediumItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZOg3z8_Zwjimrq1Q_.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:500;font-display:swap;src:local('Montserrat Medium Italic'),local('Montserrat-MediumItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZOg3z8vZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:500;font-display:swap;src:local('Montserrat Medium Italic'),local('Montserrat-MediumItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZOg3z_PZwjimrqw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:600;font-display:swap;src:local('Montserrat SemiBold Italic'),local('Montserrat-SemiBoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZFgrz8fZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:600;font-display:swap;src:local('Montserrat SemiBold Italic'),local('Montserrat-SemiBoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZFgrz-PZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:600;font-display:swap;src:local('Montserrat SemiBold Italic'),local('Montserrat-SemiBoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZFgrz8_Zwjimrq1Q_.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:600;font-display:swap;src:local('Montserrat SemiBold Italic'),local('Montserrat-SemiBoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZFgrz8vZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:600;font-display:swap;src:local('Montserrat SemiBold Italic'),local('Montserrat-SemiBoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZFgrz_PZwjimrqw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:700;font-display:swap;src:local('Montserrat Bold Italic'),local('Montserrat-BoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZcgvz8fZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:700;font-display:swap;src:local('Montserrat Bold Italic'),local('Montserrat-BoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZcgvz-PZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:700;font-display:swap;src:local('Montserrat Bold Italic'),local('Montserrat-BoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZcgvz8_Zwjimrq1Q_.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:700;font-display:swap;src:local('Montserrat Bold Italic'),local('Montserrat-BoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZcgvz8vZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:700;font-display:swap;src:local('Montserrat Bold Italic'),local('Montserrat-BoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZcgvz_PZwjimrqw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:800;font-display:swap;src:local('Montserrat ExtraBold Italic'),local('Montserrat-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZbgjz8fZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:800;font-display:swap;src:local('Montserrat ExtraBold Italic'),local('Montserrat-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZbgjz-PZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:800;font-display:swap;src:local('Montserrat ExtraBold Italic'),local('Montserrat-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZbgjz8_Zwjimrq1Q_.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:800;font-display:swap;src:local('Montserrat ExtraBold Italic'),local('Montserrat-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZbgjz8vZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:800;font-display:swap;src:local('Montserrat ExtraBold Italic'),local('Montserrat-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZbgjz_PZwjimrqw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:900;font-display:swap;src:local('Montserrat Black Italic'),local('Montserrat-BlackItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZSgnz8fZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:900;font-display:swap;src:local('Montserrat Black Italic'),local('Montserrat-BlackItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZSgnz-PZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:900;font-display:swap;src:local('Montserrat Black Italic'),local('Montserrat-BlackItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZSgnz8_Zwjimrq1Q_.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:900;font-display:swap;src:local('Montserrat Black Italic'),local('Montserrat-BlackItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZSgnz8vZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:900;font-display:swap;src:local('Montserrat Black Italic'),local('Montserrat-BlackItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZSgnz_PZwjimrqw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:100;font-display:swap;src:local('Montserrat Thin'),local('Montserrat-Thin'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUQjIg1_i6t8kCHKm45_QpRxC7m0dR9pBOi.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:100;font-display:swap;src:local('Montserrat Thin'),local('Montserrat-Thin'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUQjIg1_i6t8kCHKm45_QpRzS7m0dR9pBOi.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:100;font-display:swap;src:local('Montserrat Thin'),local('Montserrat-Thin'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUQjIg1_i6t8kCHKm45_QpRxi7m0dR9pBOi.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:100;font-display:swap;src:local('Montserrat Thin'),local('Montserrat-Thin'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUQjIg1_i6t8kCHKm45_QpRxy7m0dR9pBOi.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:100;font-display:swap;src:local('Montserrat Thin'),local('Montserrat-Thin'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUQjIg1_i6t8kCHKm45_QpRyS7m0dR9pA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:200;font-display:swap;src:local('Montserrat ExtraLight'),local('Montserrat-ExtraLight'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_aZA3gTD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:200;font-display:swap;src:local('Montserrat ExtraLight'),local('Montserrat-ExtraLight'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_aZA3g3D_vx3rCubqg.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:200;font-display:swap;src:local('Montserrat ExtraLight'),local('Montserrat-ExtraLight'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_aZA3gbD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:200;font-display:swap;src:local('Montserrat ExtraLight'),local('Montserrat-ExtraLight'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_aZA3gfD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:200;font-display:swap;src:local('Montserrat ExtraLight'),local('Montserrat-ExtraLight'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_aZA3gnD_vx3rCs.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:300;font-display:swap;src:local('Montserrat Light'),local('Montserrat-Light'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_cJD3gTD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:300;font-display:swap;src:local('Montserrat Light'),local('Montserrat-Light'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_cJD3g3D_vx3rCubqg.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:300;font-display:swap;src:local('Montserrat Light'),local('Montserrat-Light'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_cJD3gbD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:300;font-display:swap;src:local('Montserrat Light'),local('Montserrat-Light'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_cJD3gfD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:300;font-display:swap;src:local('Montserrat Light'),local('Montserrat-Light'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_cJD3gnD_vx3rCs.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:400;font-display:swap;src:local('Montserrat Regular'),local('Montserrat-Regular'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUSjIg1_i6t8kCHKm459WRhyyTh89ZNpQ.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:400;font-display:swap;src:local('Montserrat Regular'),local('Montserrat-Regular'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUSjIg1_i6t8kCHKm459W1hyyTh89ZNpQ.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:400;font-display:swap;src:local('Montserrat Regular'),local('Montserrat-Regular'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUSjIg1_i6t8kCHKm459WZhyyTh89ZNpQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:400;font-display:swap;src:local('Montserrat Regular'),local('Montserrat-Regular'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUSjIg1_i6t8kCHKm459WdhyyTh89ZNpQ.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:400;font-display:swap;src:local('Montserrat Regular'),local('Montserrat-Regular'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUSjIg1_i6t8kCHKm459WlhyyTh89Y.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:500;font-display:swap;src:local('Montserrat Medium'),local('Montserrat-Medium'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_ZpC3gTD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:500;font-display:swap;src:local('Montserrat Medium'),local('Montserrat-Medium'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_ZpC3g3D_vx3rCubqg.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:500;font-display:swap;src:local('Montserrat Medium'),local('Montserrat-Medium'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_ZpC3gbD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:500;font-display:swap;src:local('Montserrat Medium'),local('Montserrat-Medium'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_ZpC3gfD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:500;font-display:swap;src:local('Montserrat Medium'),local('Montserrat-Medium'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_ZpC3gnD_vx3rCs.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:600;font-display:swap;src:local('Montserrat SemiBold'),local('Montserrat-SemiBold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_bZF3gTD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:600;font-display:swap;src:local('Montserrat SemiBold'),local('Montserrat-SemiBold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_bZF3g3D_vx3rCubqg.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:600;font-display:swap;src:local('Montserrat SemiBold'),local('Montserrat-SemiBold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_bZF3gbD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:600;font-display:swap;src:local('Montserrat SemiBold'),local('Montserrat-SemiBold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_bZF3gfD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:600;font-display:swap;src:local('Montserrat SemiBold'),local('Montserrat-SemiBold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_bZF3gnD_vx3rCs.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:700;font-display:swap;src:local('Montserrat Bold'),local('Montserrat-Bold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_dJE3gTD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:700;font-display:swap;src:local('Montserrat Bold'),local('Montserrat-Bold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_dJE3g3D_vx3rCubqg.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:700;font-display:swap;src:local('Montserrat Bold'),local('Montserrat-Bold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_dJE3gbD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:700;font-display:swap;src:local('Montserrat Bold'),local('Montserrat-Bold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_dJE3gfD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:700;font-display:swap;src:local('Montserrat Bold'),local('Montserrat-Bold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_dJE3gnD_vx3rCs.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:800;font-display:swap;src:local('Montserrat ExtraBold'),local('Montserrat-ExtraBold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_c5H3gTD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:800;font-display:swap;src:local('Montserrat ExtraBold'),local('Montserrat-ExtraBold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_c5H3g3D_vx3rCubqg.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:800;font-display:swap;src:local('Montserrat ExtraBold'),local('Montserrat-ExtraBold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_c5H3gbD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:800;font-display:swap;src:local('Montserrat ExtraBold'),local('Montserrat-ExtraBold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_c5H3gfD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:800;font-display:swap;src:local('Montserrat ExtraBold'),local('Montserrat-ExtraBold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_c5H3gnD_vx3rCs.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:900;font-display:swap;src:local('Montserrat Black'),local('Montserrat-Black'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_epG3gTD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:900;font-display:swap;src:local('Montserrat Black'),local('Montserrat-Black'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_epG3g3D_vx3rCubqg.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:900;font-display:swap;src:local('Montserrat Black'),local('Montserrat-Black'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_epG3gbD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:900;font-display:swap;src:local('Montserrat Black'),local('Montserrat-Black'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_epG3gfD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:900;font-display:swap;src:local('Montserrat Black'),local('Montserrat-Black'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_epG3gnD_vx3rCs.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:italic;font-weight:200;font-display:swap;src:local('Nunito ExtraLight Italic'),local('Nunito-ExtraLightItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN5MZ9vHUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:italic;font-weight:200;font-display:swap;src:local('Nunito ExtraLight Italic'),local('Nunito-ExtraLightItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN5MZ9vOUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:italic;font-weight:200;font-display:swap;src:local('Nunito ExtraLight Italic'),local('Nunito-ExtraLightItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN5MZ9vFUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:italic;font-weight:200;font-display:swap;src:local('Nunito ExtraLight Italic'),local('Nunito-ExtraLightItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN5MZ9vEUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:italic;font-weight:200;font-display:swap;src:local('Nunito ExtraLight Italic'),local('Nunito-ExtraLightItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN5MZ9vKUT8tDnti.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:italic;font-weight:300;font-display:swap;src:local('Nunito Light Italic'),local('Nunito-LightItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4oZNvHUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:italic;font-weight:300;font-display:swap;src:local('Nunito Light Italic'),local('Nunito-LightItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4oZNvOUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:italic;font-weight:300;font-display:swap;src:local('Nunito Light Italic'),local('Nunito-LightItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4oZNvFUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:italic;font-weight:300;font-display:swap;src:local('Nunito Light Italic'),local('Nunito-LightItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4oZNvEUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:italic;font-weight:300;font-display:swap;src:local('Nunito Light Italic'),local('Nunito-LightItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4oZNvKUT8tDnti.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:italic;font-weight:400;font-display:swap;src:local('Nunito Italic'),local('Nunito-Italic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXX3I6Li01BKofIMNaORs7nczIHNHI.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:italic;font-weight:400;font-display:swap;src:local('Nunito Italic'),local('Nunito-Italic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXX3I6Li01BKofIMNaHRs7nczIHNHI.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:italic;font-weight:400;font-display:swap;src:local('Nunito Italic'),local('Nunito-Italic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXX3I6Li01BKofIMNaMRs7nczIHNHI.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:italic;font-weight:400;font-display:swap;src:local('Nunito Italic'),local('Nunito-Italic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXX3I6Li01BKofIMNaNRs7nczIHNHI.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:italic;font-weight:400;font-display:swap;src:local('Nunito Italic'),local('Nunito-Italic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXX3I6Li01BKofIMNaDRs7nczIH.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:italic;font-weight:600;font-display:swap;src:local('Nunito SemiBold Italic'),local('Nunito-SemiBoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN5cYtvHUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:italic;font-weight:600;font-display:swap;src:local('Nunito SemiBold Italic'),local('Nunito-SemiBoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN5cYtvOUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:italic;font-weight:600;font-display:swap;src:local('Nunito SemiBold Italic'),local('Nunito-SemiBoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN5cYtvFUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:italic;font-weight:600;font-display:swap;src:local('Nunito SemiBold Italic'),local('Nunito-SemiBoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN5cYtvEUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:italic;font-weight:600;font-display:swap;src:local('Nunito SemiBold Italic'),local('Nunito-SemiBoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN5cYtvKUT8tDnti.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:italic;font-weight:700;font-display:swap;src:local('Nunito Bold Italic'),local('Nunito-BoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN44Y9vHUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:italic;font-weight:700;font-display:swap;src:local('Nunito Bold Italic'),local('Nunito-BoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN44Y9vOUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:italic;font-weight:700;font-display:swap;src:local('Nunito Bold Italic'),local('Nunito-BoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN44Y9vFUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:italic;font-weight:700;font-display:swap;src:local('Nunito Bold Italic'),local('Nunito-BoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN44Y9vEUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:italic;font-weight:700;font-display:swap;src:local('Nunito Bold Italic'),local('Nunito-BoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN44Y9vKUT8tDnti.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:italic;font-weight:800;font-display:swap;src:local('Nunito ExtraBold Italic'),local('Nunito-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4kYNvHUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:italic;font-weight:800;font-display:swap;src:local('Nunito ExtraBold Italic'),local('Nunito-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4kYNvOUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:italic;font-weight:800;font-display:swap;src:local('Nunito ExtraBold Italic'),local('Nunito-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4kYNvFUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:italic;font-weight:800;font-display:swap;src:local('Nunito ExtraBold Italic'),local('Nunito-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4kYNvEUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:italic;font-weight:800;font-display:swap;src:local('Nunito ExtraBold Italic'),local('Nunito-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4kYNvKUT8tDnti.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:italic;font-weight:900;font-display:swap;src:local('Nunito Black Italic'),local('Nunito-BlackItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4AYdvHUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:italic;font-weight:900;font-display:swap;src:local('Nunito Black Italic'),local('Nunito-BlackItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4AYdvOUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:italic;font-weight:900;font-display:swap;src:local('Nunito Black Italic'),local('Nunito-BlackItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4AYdvFUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:italic;font-weight:900;font-display:swap;src:local('Nunito Black Italic'),local('Nunito-BlackItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4AYdvEUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:italic;font-weight:900;font-display:swap;src:local('Nunito Black Italic'),local('Nunito-BlackItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4AYdvKUT8tDnti.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:normal;font-weight:200;font-display:swap;src:local('Nunito ExtraLight'),local('Nunito-ExtraLight'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofA-seUbOvIWzgPDEtj.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:normal;font-weight:200;font-display:swap;src:local('Nunito ExtraLight'),local('Nunito-ExtraLight'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofA-seUZevIWzgPDEtj.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:normal;font-weight:200;font-display:swap;src:local('Nunito ExtraLight'),local('Nunito-ExtraLight'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofA-seUbuvIWzgPDEtj.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:normal;font-weight:200;font-display:swap;src:local('Nunito ExtraLight'),local('Nunito-ExtraLight'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofA-seUb-vIWzgPDEtj.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:normal;font-weight:200;font-display:swap;src:local('Nunito ExtraLight'),local('Nunito-ExtraLight'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofA-seUYevIWzgPDA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:normal;font-weight:300;font-display:swap;src:local('Nunito Light'),local('Nunito-Light'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAnsSUbOvIWzgPDEtj.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:normal;font-weight:300;font-display:swap;src:local('Nunito Light'),local('Nunito-Light'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAnsSUZevIWzgPDEtj.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:normal;font-weight:300;font-display:swap;src:local('Nunito Light'),local('Nunito-Light'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAnsSUbuvIWzgPDEtj.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:normal;font-weight:300;font-display:swap;src:local('Nunito Light'),local('Nunito-Light'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAnsSUb-vIWzgPDEtj.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:normal;font-weight:300;font-display:swap;src:local('Nunito Light'),local('Nunito-Light'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAnsSUYevIWzgPDA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:normal;font-weight:400;font-display:swap;src:local('Nunito Regular'),local('Nunito-Regular'),url(https://fonts.gstatic.com/s/nunito/v14/XRXV3I6Li01BKofIOOaBTMnFcQIG.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:normal;font-weight:400;font-display:swap;src:local('Nunito Regular'),local('Nunito-Regular'),url(https://fonts.gstatic.com/s/nunito/v14/XRXV3I6Li01BKofIMeaBTMnFcQIG.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:normal;font-weight:400;font-display:swap;src:local('Nunito Regular'),local('Nunito-Regular'),url(https://fonts.gstatic.com/s/nunito/v14/XRXV3I6Li01BKofIOuaBTMnFcQIG.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:normal;font-weight:400;font-display:swap;src:local('Nunito Regular'),local('Nunito-Regular'),url(https://fonts.gstatic.com/s/nunito/v14/XRXV3I6Li01BKofIO-aBTMnFcQIG.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:normal;font-weight:400;font-display:swap;src:local('Nunito Regular'),local('Nunito-Regular'),url(https://fonts.gstatic.com/s/nunito/v14/XRXV3I6Li01BKofINeaBTMnFcQ.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:normal;font-weight:600;font-display:swap;src:local('Nunito SemiBold'),local('Nunito-SemiBold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofA6sKUbOvIWzgPDEtj.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:normal;font-weight:600;font-display:swap;src:local('Nunito SemiBold'),local('Nunito-SemiBold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofA6sKUZevIWzgPDEtj.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:normal;font-weight:600;font-display:swap;src:local('Nunito SemiBold'),local('Nunito-SemiBold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofA6sKUbuvIWzgPDEtj.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:normal;font-weight:600;font-display:swap;src:local('Nunito SemiBold'),local('Nunito-SemiBold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofA6sKUb-vIWzgPDEtj.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:normal;font-weight:600;font-display:swap;src:local('Nunito SemiBold'),local('Nunito-SemiBold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofA6sKUYevIWzgPDA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:normal;font-weight:700;font-display:swap;src:local('Nunito Bold'),local('Nunito-Bold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAjsOUbOvIWzgPDEtj.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:normal;font-weight:700;font-display:swap;src:local('Nunito Bold'),local('Nunito-Bold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAjsOUZevIWzgPDEtj.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:normal;font-weight:700;font-display:swap;src:local('Nunito Bold'),local('Nunito-Bold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAjsOUbuvIWzgPDEtj.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:normal;font-weight:700;font-display:swap;src:local('Nunito Bold'),local('Nunito-Bold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAjsOUb-vIWzgPDEtj.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:normal;font-weight:700;font-display:swap;src:local('Nunito Bold'),local('Nunito-Bold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAjsOUYevIWzgPDA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:normal;font-weight:800;font-display:swap;src:local('Nunito ExtraBold'),local('Nunito-ExtraBold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAksCUbOvIWzgPDEtj.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:normal;font-weight:800;font-display:swap;src:local('Nunito ExtraBold'),local('Nunito-ExtraBold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAksCUZevIWzgPDEtj.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:normal;font-weight:800;font-display:swap;src:local('Nunito ExtraBold'),local('Nunito-ExtraBold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAksCUbuvIWzgPDEtj.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:normal;font-weight:800;font-display:swap;src:local('Nunito ExtraBold'),local('Nunito-ExtraBold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAksCUb-vIWzgPDEtj.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:normal;font-weight:800;font-display:swap;src:local('Nunito ExtraBold'),local('Nunito-ExtraBold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAksCUYevIWzgPDA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:normal;font-weight:900;font-display:swap;src:local('Nunito Black'),local('Nunito-Black'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAtsGUbOvIWzgPDEtj.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:normal;font-weight:900;font-display:swap;src:local('Nunito Black'),local('Nunito-Black'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAtsGUZevIWzgPDEtj.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:normal;font-weight:900;font-display:swap;src:local('Nunito Black'),local('Nunito-Black'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAtsGUbuvIWzgPDEtj.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:normal;font-weight:900;font-display:swap;src:local('Nunito Black'),local('Nunito-Black'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAtsGUb-vIWzgPDEtj.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:normal;font-weight:900;font-display:swap;src:local('Nunito Black'),local('Nunito-Black'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAtsGUYevIWzgPDA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v3/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuGKYAZJhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v3/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuGKYAZthjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v3/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuGKYAZNhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v3/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuGKYAZxhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0370-03FF;}@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v3/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuGKYAZBhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v3/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuGKYAZFhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v3/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuGKYAZ9hjp-Ek-_EeA.woff) format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}"]),lt=u.Ay.input.withConfig({displayName:"anchor__StyledClipboardAnchor",componentId:"sc-1h1z30o-0"})(["position:fixed;width:20px;height:20px;top:-9999px;left:-9999px;"]),wt=(0,m.Mz)([S.X_,S.wq,S.hz,S.Ur,S.$S],(t,n,s,c,d)=>({scale:t,quickCreateWidget:n,isStartCreatingCanvas:s,currentScreen:c,viewportRect:d})),so=()=>{const t=(0,o.d4)(wt),{quickCreateWidget:n,isStartCreatingCanvas:s,currentScreen:c}=t,d=(0,r.useRef)({x:0,y:0});return(0,r.useLayoutEffect)(()=>{const w=P=>{d.current={x:P.clientX,y:P.clientY}};return document.addEventListener("mousemove",w),()=>{document.removeEventListener("mousemove",w)}},[s]),!c||s||(n==null?void 0:n.type)!==J.x.Canvas?null:(0,i.jsx)(bo,{...t,initPos:d.current})},bo=t=>{const[n,s]=(0,r.useState)(t.initPos);(0,r.useLayoutEffect)(()=>{const Ae=we=>{s({x:we.clientX,y:we.clientY})};return document.addEventListener("mousemove",Ae),()=>{document.removeEventListener("mousemove",Ae)}},[n]);const{scale:c,currentScreen:d,viewportRect:w}=t;if(!(n.x>w.x&&n.y>w.y))return null;const P=c/100,{x:F,y:X}=n;let ee=d.deviceW,pe=d.deviceH;d.deviceOrientation!=="portrait"&&(pe=d.deviceW,ee=d.deviceH);const ye={transform:"translate("+F+"px,"+X+"px) rotate(0deg)",width:ee*P,height:pe*P};return(0,i.jsx)(Ro,{style:ye})},Ro=u.Ay.div.withConfig({displayName:"CanvasPhantom__StyledCanvasPhantom",componentId:"sc-1lmwwjx-0"})(["z-index:1;pointer-events:none;position:absolute;background:white;border:1px dashed black;opacity:0.5;"]);var tn=e(91344);const Pn=()=>{const[t,n]=(0,r.useState)(0);return()=>{n(t+1)}};var un=e(53955);const Xn=[{type:J.x.WFlowProcess},{type:J.x.WFlowDecision},{type:J.x.WFlowStartEnd},{type:J.x.WFlowDoc},{type:J.x.WFlowData},{type:J.x.WFlowSubProcess},{type:J.x.WFlowOuterData},{type:J.x.WFlowInnerData},{type:J.x.WFlowQueueData},{type:J.x.WFlowDatabase1},{type:J.x.WFlowDatabase2},{type:J.x.WFlowHumanInput},{type:J.x.WFlowCard},{type:J.x.WFlowStrip},{type:J.x.WFlowShow},{type:J.x.WFlowHumanOp},{type:J.x.WFlowPrepare},{type:J.x.WFlowConcurrent},{type:J.x.WFlowLoop},{type:J.x.WFlowRefInPage},{type:J.x.WFlowOr},{type:J.x.WFlowSum},{type:J.x.WFlowRefCrossPage},{type:J.x.WFlowSort},{type:J.x.WFlowUnion},{type:J.x.WFlowCommentRight},{type:J.x.WFlowCommentLeft},{type:J.x.WFlowNoteRight},{type:J.x.WFlowNoteLeft}];function ws(){const t=(0,r.useRef)(void 0),n=(0,r.useRef)({x:0,y:0}),s=(0,r.useRef)(""),c=Pn();return(0,r.useEffect)(()=>{const d=w=>{let{from:P,mousePos:F,elbowKey:X}=w;t.current=P,n.current=F,s.current=X,c()};return tn.A.on("elbowPopupShowed",d),()=>{tn.A.off("elbowPopupShowed",d)}},[c]),t.current===void 0?null:(0,i.jsx)(zs,{openFromRef:t,positionRef:n,elbowKeyRef:s,refresh:c})}const zs=t=>{const{openFromRef:n,positionRef:s,elbowKeyRef:c,refresh:d}=t;(0,r.useEffect)(()=>{const He=tt=>{tt.target.closest("#widget-popup")||(n.current=void 0,d())};return document.addEventListener("mousedown",He),()=>{document.removeEventListener("mousedown",He)}},[]);const w=(0,o.wA)(),P=(0,o.d4)(T.O4),F=s.current,X=(0,un.dP)(),ee=(0,S.$S)(X),pe=260,ye=198;let Ae=F.x,we=F.y;Ae+pe>=ee.right&&(Ae=F.x-pe),we+ye>=ee.bottom&&(we=F.y-ye);const _e={top:we,left:Ae},Fe=(He,tt)=>{He.stopPropagation(),He.preventDefault(),w({type:"entry:elbow:popup:create",payload:{elbowKey:c.current,widgetType:tt,openFrom:n.current}}),n.current=void 0,d()},Ye=He=>{He.stopPropagation()};return(0,i.jsx)(fn,{id:"widget-popup",className:P,style:_e,onClick:Ye,children:(0,i.jsx)("div",{className:"flow-widget-popup-container",children:Xn.map((He,tt)=>(0,i.jsx)("div",{className:"cell",onClick:It=>Fe(It,He.type),children:(0,i.jsx)(Je.C,{size:32,name:"flow/popup/"+He.type})},tt))})})},fn=u.Ay.div.withConfig({displayName:"FlowWidgetPopup__StyledWidgetPopup",componentId:"sc-gkliul-0"})(["position:absolute;width:260px;height:198px;box-shadow:4px 12px 40px 0px rgba(39,54,78,0.1);border-radius:8px;background:",";padding-top:15px;&.dark{outline:1px solid ",";}.flow-widget-popup-container{height:182px;pointer-events:auto;overflow:auto;display:flex;flex-wrap:wrap;cursor:pointer;padding:1px 10px 16px 16px;gap:14px 6px;.cell{display:flex;width:32px;height:32px;&:hover{background:",";outline:1px solid #1685fc;border-radius:4px;}.svg-icon{color:",";}}}"],t=>t.theme.color_bg_white,t=>t.theme.color_border_state,t=>t.theme.color_bg_select03,t=>t.theme.color_text_L1);var Ds=e(29839),gi=e(82658),hi=e(52098);const Ni=u.Ay.div.withConfig({displayName:"styles__StyledChatGuide",componentId:"sc-daab3z-0"})(['display:flex;width:100%;height:100%;.close-guide{display:flex;position:absolute;right:24px;top:18px;width:24px;height:24px;cursor:pointer;border-radius:4px;&:hover{background:rgba(0,0,0,0.1);}}.try-now{font-weight:700;font-size:20px;text-align:center;color:rgb(255,255,255);padding:0px 103px;height:50px;border-radius:25px;background:#A2CEFE;position:absolute;margin-left:50%;transform:translateX(-50%);line-height:50px;bottom:74px;pointer-events:none;&.isAgree{pointer-events:auto;background:linear-gradient(89.18deg,#1684FC 6.64%,#3BE4FD 103.74%);box-shadow:inset 0px -1px 2px rgba(5,242,249,0.8),inset 3px -1px 15px rgba(125,247,255,0.46);cursor:pointer;}&:hover,&:active{background:linear-gradient(89.29deg,#0074F3 6.59%,#2FD7FF 126.05%);box-shadow:inset 0px -1px 2px rgba(5,242,249,0.8),inset 3px -1px 15px rgba(125,247,255,0.46);}}.agree-inkblade{position:absolute;bottom:26px;display:flex;justify-content:center;width:100%;font-weight:400;font-size:14px;line-height:16px;display:flex;align-items:center;color:#6B7094;.use-agreement{display:flex;}svg{wdith:16px;height:16px;margin-right:10px;cursor:pointer;g{rect{fill:white;}}}.agreement-content{background:linear-gradient(269.05deg,#3FFFFF -19.32%,#057DFF 99.84%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-fill-color:transparent;cursor:pointer;border-bottom:1px solid;border-image-source:linear-gradient(269.05deg,#3FFFFF -19.32%,#057DFF 99.84%);border-image-slice:1;display:flex;justify-content:center;}}.tips{max-width:335px;position:absolute;background-color:#fff;box-sizing:border-box;padding:20px 16px 20px 24px;background:#333333;border-radius:4px;bottom:calc(100% + 6px);font-weight:400;font-size:12px;line-height:18px;color:#FFFFFF;flex-direction:column;text-align:left;span{color:white;}div{margin-top:10px;}.tip-title{font-size:14px;font-weight:500;display:flex;margin-top:0px;svg{margin-right:2px;}}&::after{content:"";position:absolute;bottom:-12px;left:50%;transform:translateY(-100%);display:inline-block;width:0px;height:0px;cursor:pointer;border-left:8px solid transparent;border-right:8px solid transparent;border-top:6px solid #333333;}}']);class ba extends r.PureComponent{constructor(){super(...arguments),(0,p.A)(this,"state",{isAgree:!1,showAgreement:!1}),(0,p.A)(this,"toggleSelect",()=>{const{isAgree:n}=this.state;this.setState({isAgree:!n})}),(0,p.A)(this,"handleTryNow",()=>{const{closeGuide:n}=this.props;n&&n(!0),MB.commonGuideHelper.markGuideAsRead("GUIDE_CHATGPT_AGREE_AGREEMENT")})}render(){const{isAgree:n,showAgreement:s}=this.state,{closeGuide:c}=this.props,d=[I18N.ChatGPT.ai_protocol_1,I18N.ChatGPT.ai_protocol_2,I18N.ChatGPT.ai_protocol_3,I18N.ChatGPT.ai_protocol_4,I18N.ChatGPT.ai_protocol_5];return(0,i.jsxs)(Ni,{children:[(0,i.jsx)(Oc.C,{name:"chatGPT/modal_close",className:"close-guide",onClick:()=>c(!1)}),(0,i.jsxs)("div",{className:"guide-bottom",children:[(0,i.jsx)("div",{className:f()("try-now",n&&"isAgree"),onClick:this.handleTryNow,children:I18N.ChatGPT.try_now}),(0,i.jsxs)("div",{className:"agree-inkblade",children:[(0,i.jsx)(Oc.C,{name:n?"chatGPT/protocol_select":"chatGPT/protocol_no_select",className:"close-modal",onClick:this.toggleSelect,isColorPure:!0}),(0,i.jsxs)("div",{className:"use-agreement",children:[I18N.ChatGPT.agree_inkblade,(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"center",marginLeft:"2px"},children:[(0,i.jsxs)("div",{className:"agreement-content",onMouseOver:()=>{this.setState({showAgreement:!0})},onMouseLeave:()=>{this.setState({showAgreement:!1})},children:[" ",I18N.ChatGPT.ai_use_agreement," "]}),s&&(0,i.jsxs)("div",{className:"tips",children:[(0,i.jsxs)("div",{className:"tip-title",children:[!ENV.IS_WONDER_SHARE&&(0,i.jsx)(Oc.C,{name:"chatGPT/ai-point-icon",isColorPure:!0}),I18N.ChatGPT.ai_protocol_title]}),d.map((w,P)=>(0,i.jsx)("div",{children:w},P))]})]})]})]})]})]})}}var fa=e(7039);const Ka=u.Ay.div.withConfig({displayName:"styles__StyledChatBottomTool",componentId:"sc-1dk3ti-0"})(["padding:10px 20px 12px 20px;.error-tip{font-size:12px;line-height:17px;color:",";height:20px;line-height:20px}.recommend-content{display:flex;flex-direction:column;align-items:center;width:100%;.recommend-title{font-size:12px;line-height:17px;color:",";width:100%;text-align:left;margin-bottom:6px;}.recommend{margin-bottom:8px;cursor:pointer;font-size:12px;line-height:17px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:100%;text-align:center;color:",";&:hover{color:",";}}&:last-child{margin-bottom:0px;}}"],t=>t.theme.color_primary_brand02,t=>t.theme.color_text_L3,t=>t.theme.color_text_L1,t=>t.theme.color_text_link_normal);function da(t){const{sendMessageHandle:n,generating:s,currentAIComponent:{recommends:c},handleInputFocus:d,userInput:w,setUserInput:P}=t,F=(0,r.useRef)(null),X=()=>{F&&F.current.blur(),n(w)},ee=pe=>{F&&F.current.focus(),P(pe)};return(0,i.jsxs)(Ka,{children:[(0,i.jsx)(v1,{userInput:w,generating:s,handleInputChange:ee,handleInputFocus:d,sendAction:X,ref:F}),(0,i.jsx)("div",{className:"error-tip",children:w.length>=200?I18N.ChatGPT.ai_input_200_limit:""}),(0,i.jsxs)("div",{className:"recommend-content",children:[(0,i.jsx)("div",{className:"recommend-title",children:I18N.ChatGPT.ai_example}),c.map((pe,ye)=>(0,i.jsx)("div",{className:"recommend",onClick:()=>ee(pe),children:pe},ye))]})]})}var aa=e(24019),ka=e(48121),Vi=e(59471),Di=e(54638),pa=e(15648),Ra=e(80795),Ar=e(6549),ja=e(46967),wr=e(69620),Rr=e(18393),sr=e(98040),kc=e(35671),xl=e(40137),Vr=e(23264),ll=e(49871),Zr=e(80800),wc=e(4905),g0=e(29020),e0=e(34538),f0=e(66454),qh=e(92423),Bh=e(30561),K1=e(45402),um=e(14222),Zm=e(39426),Ug=e(42396),zg=e(78362),Wg=e(81032),Rh=e(10879),Vg=e(98049),Hg=e(90258),Kg=e(65176),Au=e(42879),c2=e(6649),Gg=e(4531),d2=e(35855),Xm=e(63754),Qm=e(61224),mm=e(81906),gm=e(18856),Yg=e(3469),fm=e(34665),ym=e(8831),Zg=e(68644),Xg=e(75522),Qg=e(15642),Jg=e(23729),$g=e(37147),qg=e(56882),ef=e(71113),Jm=e(38755),pc=e(34600),Iu=e(64741),tf=e(1143);const el={[yo.x.WWrap]:fm.gs,[yo.x.WRect]:aa.wN,[yo.x.WOval]:ka.y7,[yo.x.WAudio]:Vi.Kq,[yo.x.WVideo]:Di.pA,[yo.x.WImage]:pa.ND,[yo.x.WPolygon]:Ra.g5,[yo.x.WStar]:Ar.U4,[yo.x.Canvas]:sr.Nc,[yo.x.WLine]:ja.Wq,[yo.x.WArrow]:wr.Rl,[yo.x.WButton]:Rr.Ys,[yo.x.RbPage]:ht.gO,[yo.x.WTriangleB]:kc.Ru,[yo.x.WTriangleTL]:xl.DP,[yo.x.WPlaceholder]:Vr.C1,[yo.x.WLR]:ll.eo,[yo.x.WButtonSolid]:Rr.tw,[yo.x.WRichText]:Zr.l$,[yo.x.WMTextInput]:wc.cI,[yo.x.WMTextArea]:g0.ji,[yo.x.WMSelect]:e0.Xn,[yo.x.WSticky]:f0.pI,[yo.x.WDropMenu]:qh.e_,[yo.x.WTable]:Bh.ix,[yo.x.WMFileInput]:K1.Vk,[yo.x.WSelectionControlRadio]:(0,um.Pd)("radio"),[yo.x.WSelectionControlCheckbox]:(0,um.Pd)("checkbox"),[yo.x.WAndroidSwitch]:Zm.r9,[yo.x.WIOSSwitch]:Ug.fk,[yo.x.WSlider]:zg.v0,[yo.x.WDigitalStepper]:Wg.Zt,[yo.x.WBarChart]:(0,Rh.o2)("bar_chart"),[yo.x.WHorizontalBarChart]:(0,Rh.o2)("horizontal_bar_chart"),[yo.x.WLineChart]:(0,Rh.o2)("line_chart"),[yo.x.WLineAreaChart]:(0,Rh.o2)("line_area_chart"),[yo.x.WPieChart]:(0,Rh.o2)("pie_chart"),[yo.x.WRingChart]:(0,Rh.o2)("ring_chart"),[yo.x.WProgressChart]:(0,Rh.o2)("progress_chart"),[yo.x.WRadarChart]:(0,Rh.o2)("radar_chart"),[yo.x.WMixedBarLineChart]:(0,Rh.o2)("mixed_bar_line_chart"),[yo.x.WMTooltip]:Vg.gZ,[yo.x.WMapView]:Hg.$x,[yo.x.WQRCode]:Yg.uM,[yo.x.WWebpage]:Kg.lR,[yo.x.WCarousel]:Au.aQ,[yo.x.WTabs]:c2.SH,[yo.x.WPaginationMobile]:d2.of,[yo.x.WPaginationWeb]:Gg.At,[yo.x.WCollapse]:Xm.Zs,[yo.x.WSegmentedControl]:Qm.VH,[yo.x.WMobileTabBars]:mm.D3,[yo.x.WNavigationMenu]:(0,gm.Nb)(0),[yo.x.WNavigationMenuH]:(0,gm.Nb)(2),[yo.x.WNavigationMenuV]:(0,gm.Nb)(1),[yo.x.WBasket]:ym.Iz,[yo.x.WIcon]:Zg.T4,[yo.x.WElbow]:Xg.rZ,[yo.x.WTear]:Jg.wK,[yo.x.WUnifiedKeyboard]:Qg.zv,[yo.x.WIphoneXSB]:$g.t,[yo.x.WVector]:qg.jJ,[yo.x.WTriangle]:ef.ml,[yo.x.WSwimlane]:(0,Jm.QV)("leftRight"),[yo.x.WSwimlaneV]:(0,Jm.QV)("topBottom"),[yo.x.wFlowClosed]:(0,pc.Cr)("doc"),[yo.x.WFlowProcess]:(0,pc.Cr)("process"),[yo.x.WFlowDecision]:(0,pc.Cr)("decision"),[yo.x.WFlowStartEnd]:(0,pc.Cr)("startEnd"),[yo.x.WFlowDoc]:(0,pc.Cr)("doc"),[yo.x.WFlowData]:(0,pc.Cr)("data"),[yo.x.WFlowSubProcess]:(0,pc.Cr)("subProcess"),[yo.x.WFlowOuterData]:(0,pc.Cr)("outerData"),[yo.x.WFlowInnerData]:(0,pc.Cr)("innerData"),[yo.x.WFlowQueueData]:(0,pc.Cr)("queueData"),[yo.x.WFlowDatabase1]:(0,pc.Cr)("database1"),[yo.x.WFlowDatabase2]:(0,pc.Cr)("database2"),[yo.x.WFlowHumanInput]:(0,pc.Cr)("humanInput"),[yo.x.WFlowCard]:(0,pc.Cr)("card"),[yo.x.WFlowStrip]:(0,pc.Cr)("strip"),[yo.x.WFlowShow]:(0,pc.Cr)("show"),[yo.x.WFlowHumanOp]:(0,pc.Cr)("humanOp"),[yo.x.WFlowPrepare]:(0,pc.Cr)("prepare"),[yo.x.WFlowLoop]:(0,pc.Cr)("loop"),[yo.x.WFlowRefInPage]:(0,pc.Cr)("refInPage"),[yo.x.WFlowOr]:(0,pc.Cr)("or"),[yo.x.WFlowSum]:(0,pc.Cr)("sum"),[yo.x.WFlowRefCrossPage]:(0,pc.Cr)("refCrossPage"),[yo.x.WFlowSort]:(0,pc.Cr)("sort"),[yo.x.WFlowUnion]:(0,pc.Cr)("union"),[yo.x.WFlowConcurrent]:(0,Iu.B1)("concurrent"),[yo.x.WFlowCommentLeft]:(0,Iu.B1)("commentLeft"),[yo.x.WFlowCommentRight]:(0,Iu.B1)("commentRight"),[yo.x.WFlowNoteLeft]:(0,Iu.B1)("noteLeft"),[yo.x.WFlowNoteRight]:(0,Iu.B1)("noteRight"),[yo.x.WAndroidSB]:tf.Z};var Kr=function(t){return t.text="text",t.rectangle="rectangle",t.image="image",t.oval="oval",t.line="line",t.button="button",t.iphoneXSB="appStatusBar",t.arrow="arrow",t.mTextInput="textInput",t.mTextarea="textArea",t.dropList="dropList",t.dropMenu="dropDownMenu",t.radioSelection="radioBox",t.checkbox="checkBox",t.table="table",t.genProto="genproto",t.mind="mind",t.flow="flow",t.chart="chart",t.genComponent="gencomponent",t.modelPage="modelPage",t.customPage="customPage",t.genPrd="genprd",t.textFill="textfill",t.editImage="editimage",t.editText="edittext",t.textTranslate="texttranslate",t.textPolish="textpolish",t.textStyle="textstyle",t.textExpand="textexpand",t.textShort="textshort",t.editStyle="editstyle",t}(Kr||{}),tl=function(t){return t[t.Unknown=0]="Unknown",t[t.Success=200]="Success",t[t.Unauthorized=401]="Unauthorized",t[t.PointsInsufficient=403]="PointsInsufficient",t[t.AnotherConversation=405]="AnotherConversation",t[t.HandleExceptions=409]="HandleExceptions",t[t.ContentViolation=451]="ContentViolation",t[t.NotSupport=510]="NotSupport",t[t.TextOverLimit=601]="TextOverLimit",t[t.NotSupportMultiple=602]="NotSupportMultiple",t[t.NotFindEditObject=603]="NotFindEditObject",t[t.ResultViolation=422]="ResultViolation",t[t.NotSupportCanvas=423]="NotSupportCanvas",t}(tl||{}),xm=function(t){return t.success="success",t.warning="warning",t.fail="error",t}(xm||{}),of=function(t){return t.default="default",t.editText="editText",t.imageEdit="imageEdit",t.textFill="textFill",t.editStyle="editStyle",t}(of||{});const nf={Page:"\u751F\u6210\u539F\u578B\u9875\u9762",flow:"\u751F\u6210\u6D41\u7A0B\u56FE",mind:"\u751F\u6210\u601D\u7EF4\u5BFC\u56FE",table:"\u751F\u6210\u8868\u683C",chart:"\u751F\u6210\u56FE\u8868",gentext:"\u751F\u6210\u6587\u672C\u7EC4\u4EF6",genrectangle:"\u751F\u6210\u77E9\u5F62\u7EC4\u4EF6",genimage:"\u751F\u6210\u56FE\u7247",genoval:"\u751F\u6210\u5706\u5F62\u7EC4\u4EF6",genline:"\u751F\u6210\u7EBF\u6761\u7EC4\u4EF6",genbutton:"\u751F\u6210\u6309\u94AE\u7EC4\u4EF6",genappstatusbar:"\u751F\u6210APP\u72B6\u6001\u680F\u7EC4\u4EF6",genarrow:"\u751F\u6210\u7BAD\u5934\u7EC4\u4EF6",gentextinput:"\u751F\u6210\u5355\u884C\u8F93\u5165\u7EC4\u4EF6",gentextarea:"\u751F\u6210\u591A\u884C\u8F93\u5165\u7EC4\u4EF6",gendroplist:"\u751F\u6210\u4E0B\u62C9\u9009\u62E9\u5668\u7EC4\u4EF6",gendropdownmenu:"\u751F\u6210\u4E0B\u62C9\u83DC\u5355\u7EC4\u4EF6",genradiobox:"\u751F\u6210\u5355\u9009\u7EC4\u4EF6",gencheckbox:"\u751F\u6210\u590D\u9009\u7EC4\u4EF6",gencomponent:"\u751F\u6210\u81EA\u5B9A\u4E49\u7EC4\u4EF6",genmodelpage:"\u751F\u6210\u6307\u5B9A\u673A\u578B\u9875\u9762",gencustompage:"\u751F\u6210\u81EA\u5B9A\u4E49\u9875\u9762",genprd:"\u751F\u6210\u4EA7\u54C1\u6587\u6863",textfill:"\u667A\u80FD\u6587\u672C\u586B\u5145",editimage:"\u667A\u80FD\u56FE\u7247\u586B\u5145",edittext:"\u7F16\u8F91\u6587\u672C",texttranslate:"\u7F16\u8F91\u6587\u672C",textpolish:"\u7F16\u8F91\u6587\u672C",textstyle:"\u7F16\u8F91\u6587\u672C",textexpand:"\u7F16\u8F91\u6587\u672C",textshort:"\u7F16\u8F91\u6587\u672C",editstyle:"\u7F16\u8F91\u6837\u5F0F",genproto:"\u751F\u6210\u539F\u578B\u9875\u9762",genflow:"\u751F\u6210\u6D41\u7A0B\u56FE",genmind:"\u751F\u6210\u601D\u7EF4\u5BFC\u56FE",gentable:"\u751F\u6210\u8868\u683C",genchart:"\u751F\u6210\u56FE\u8868"};var sf=e(63711),np=e.n(sf),af=e(97958),p2=e.n(af),sd=e(68496),fy=e(19542);const rf=t=>{try{const[n,s,c,d]=t.split(","),w=parseInt(n.split("(")[1]),P=parseInt(s),F=parseInt(c),X=Number(d.split(")")[0])*100;return fromRGBAo({R:w,G:P,B:F,A:X})}catch(n){return console.log("bad rgbaCSS color",t),4126537215}},Oa=t=>{const n=t.split("#")[1];return t.split("#")[1].length===3?+("0x"+n+n+"ff"):n.length===8?+("0x"+n):+("0x"+n+"ff")},yy=t=>{const n=t!=null?t:0;return{pT:n,pR:n,pB:n,pL:n}},xy=t=>({textV0:{...DEFAULT_TEXT_V0,...t}}),t0=t=>{try{const{x:n,y:s}=t;return{x:Number(n),y:Number(s)}}catch(n){return null}},y0=t=>{try{const{w:n,h:s}=t;return{w:Number(n),h:Number(s)}}catch(n){return null}},lf=t=>{try{const{ul:n,ur:s,dl:c,dr:d}=t;return{ul:Number(n),ur:Number(s),dl:Number(c),dr:Number(d)}}catch(n){return null}},cf=t=>{try{if(!t)return null;const{x:n,y:s,b:c,s:d}=t;return{x:Number(n),y:Number(s),b:Number(c),s:Number(d)}}catch(n){return null}},sp=t=>!t||t==="none"?{italic:!1,bold:!1,underline:!1,strikethrough:!1}:{italic:t==="italy",bold:t==="bold",underline:t==="underline",strikethrough:t==="dash"},w1=t=>{try{if(!t)return null;const n=lf(t);if(!n)return null;const{ul:s,ur:c,dl:d,dr:w}=n;return s===c&&c===d&&d===w?s:{radiusTL:s,radiusTR:c,radiusBL:d,radiusBR:w}}catch(n){return null}},jh=t=>{try{const n=cf(t);if(!n)return null;const{x:s,y:c,b:d,s:w}=n;return s===0&&c===0&&d===0&&w===0?null:{offsetX:s,offsetY:c,blurRadius:d,spreadRadius:w,shadowIsVisible:!0,shadowColor:102,type:"box_shadow"}}catch(n){return null}},Oh=(t,n,s)=>{try{if(!n)return null;const c=$m(n);return{bdrColor:Oa(t),bdrIsVisible:!0,bdrStyle:c,bdrWidth:Number(s)}}catch(c){return null}},$m=t=>{let n="solid";return t==="dash"?n="dashed":t==="dot"&&(n="dotted"),n},df=[yo.x.WRichText,yo.x.WRect,yo.x.WOval,yo.x.WButton,yo.x.WLine,yo.x.WImage,yo.x.WTable],pf=[yo.x.WRichText,yo.x.WLine],hf=[yo.x.WImage,yo.x.WLine],uf=[yo.x.WLine,yo.x.WTable,yo.x.WRichText,yo.x.WOval],mf=[yo.x.WTable,yo.x.WRichText],gf=(t,n)=>{let{selectedTrees:s,editingCid:c,updateEditingCid:d,getHotItem:w}=n;try{if(!t||Object.keys(t).length===0)return{status:tl.HandleExceptions};const{opacity:P,radius:F,"fill-color":X,"stroke-color":ee,"stroke-style":pe,"stroke-weight":ye,"font-size":Ae,"font-color":we,"text-align":_e,"font-format":Fe}=t,He=(0,Ml.n3)(s).filter(It=>df.includes(It.type));if(!He||He.length===0)return{status:tl.NotFindEditObject};c&&He.map(It=>It.key).includes(c)&&d({item:{cid:""}});const tt=[];return He.forEach(It=>{const{type:Nt}=It,Lt=w(It.key);if(!Lt)return;const Xt=np()(Lt),{hotAttr:_o}=Xt;P&&(_o.opacity=P),!uf.includes(Nt)&&F&&(_o.borderRadius=w1(F)),!mf.includes(Nt)&&X&&(_o.fill.solidColor=Oa(X)),pf.includes(Nt)||ff(_o,ee,pe,ye,Nt),!hf.includes(Nt)&&(Ae||we||_e||Fe)&&(Nt===yo.x.WTable?xf(_o,Ae,we,_e,Fe):Nt===yo.x.WButton?vf(_o,Ae,we,_e,Fe):yf(_o,Ae,we,_e,Fe)),tt.push(Xt)}),{status:tl.Success,hotItems:tt}}catch(P){return console.error("genEditStyle error:",P),{status:tl.HandleExceptions}}},ff=(t,n,s,c,d)=>{!n&&!s&&!c||(d===yo.x.WTable?(n&&(t.tableConfig.outerBorder.bdrColor=Oa(n),t.tableConfig.innerBorderH.bdrColor=Oa(n),t.tableConfig.innerBorderV.bdrColor=Oa(n)),c&&(t.tableConfig.outerBorder.bdrWidth=Number(c),t.tableConfig.innerBorderH.bdrWidth=Number(c),t.tableConfig.innerBorderV.bdrWidth=Number(c))):((n||s||c)&&(t.border||(t.border={bdrColor:3149642751,bdrIsVisible:!0,bdrStyle:"solid",bdrWidth:1})),n&&(t.border.bdrColor=Oa(n)),c&&(t.border.bdrWidth=Number(c)),s&&(t.border.bdrStyle=$m(s))))},yf=(t,n,s,c,d)=>{if(!n&&!s&&!c&&!d)return;const{textV1:{blocks:w}}=t;if(n){const pe=p2()(n*1.399+.251);t.richTextV1.fontSize=n,t.richTextV1.lineHeight=pe}s&&(t.richTextV1.textColor=s),c&&(t.richTextV1.horizontalAlign=c);let P=!1,F=!1,X=!1,ee=!1;if(d&&d!=="none"){const{italic:pe,bold:ye,underline:Ae,strikethrough:we}=sp(d);P=pe,X=Ae,F=ye,ee=we,pe&&(t.richTextV1.italic=pe),ye&&(t.richTextV1.bold=ye),Ae&&(t.richTextV1.underline=Ae),we&&(t.richTextV1.strikethrough=we)}w&&(Object.values(w).forEach(pe=>{const{type:ye}=pe;let Ae=pe.inlineStyleRanges;ye!=="atomic"&&Ae&&(s&&(Ae=Ae.filter(we=>!we.style.startsWith("color-"))),n&&(Ae=Ae.filter(we=>!we.style.startsWith("fontsize-")&&!we.style.startsWith("lineheight-"))),P&&(Ae=Ae.filter(we=>we.style!=="ITALIC")),X&&(Ae=Ae.filter(we=>we.style!=="UNDERLINE")),F&&(Ae=Ae.filter(we=>we.style!=="BOLD")),ee&&(Ae=Ae.filter(we=>we.style!=="STRIKETHROUGH"))),pe.inlineStyleRanges=Ae}),t.textV1.blocks=JSON.parse(JSON.stringify(w)))},xf=(t,n,s,c,d)=>{let w=!1,P=!1,F=!1,X=!1;if(d&&d!=="none"){const{italic:ye,bold:Ae,underline:we,strikethrough:_e}=sp(d);w=ye,F=we,P=Ae,X=_e}const{tableData:{cellStyles:ee}}=t;if(s&&(t.textV0.textColor=Oa(s)),n){const ye=p2()(n*1.399+.251);t.textV0.fontSize=n,t.textV0.lineHeight=ye}c&&(t.textV0.horizontalAlign=c);const pe=[];ee.forEach(ye=>{const Ae=[];ye.forEach(we=>{let _e=[];we&&(_e=we.split(";"),n&&(_e=_e.filter(Fe=>!Fe.startsWith("font-size"))),s&&(_e=_e.filter(Fe=>!Fe.startsWith("color:"))),c&&(_e=_e.filter(Fe=>!Fe.startsWith("text-align")),_e.push("text-align: "+c)),w&&(_e=_e.filter(Fe=>!Fe.startsWith("font-style")),_e.push("font-style: italic")),P&&(_e=_e.filter(Fe=>!Fe.startsWith("font-weight")),_e.push("font-weight: bold")),F&&(_e=_e.filter(Fe=>!Fe.startsWith("text-decoration")),_e.push("text-decoration: underline")),X&&(_e=_e.filter(Fe=>!Fe.startsWith("text-decoration")),_e.push("text-decoration: line-through"))),Ae.push(_e.join(";"))}),pe.push(Ae)}),t.tableData.cellStyles=pe},vf=(t,n,s,c,d)=>{if(!(!n&&!s&&!c&&!d)){if(n){const w=p2()(n*1.399+.251);t.textV0.fontSize=n,t.textV0.lineHeight=w}if(s&&(t.textV0.textColor=Oa(s)),c&&(t.textV0.horizontalAlign=c),d&&d!=="none"){const{italic:w,bold:P,underline:F,strikethrough:X}=sp(d);P&&(t.textV0.bold=P),w&&(t.textV0.italic=w),F&&(t.textV0.textDecoration="underline"),X&&(t.textV0.textDecoration="line-through")}}},vm=t=>{let n=I18N.ChatGPT.ai_semantic_func_error,s=xm.warning,c="chatGPT/ai-semantic-result-waring";switch(t){case tl.Success:n=I18N.ChatGPT.ai_semantic_func_success,s=xm.success,c="chatGPT/ai-semantic-result-success";break;case tl.TextOverLimit:n=I18N.ChatGPT.ai_semantic_func_error_601;break;case tl.NotSupportMultiple:n=I18N.ChatGPT.ai_semantic_func_error_602;break;case tl.AnotherConversation:n=I18N.ChatGPT.ai_semantic_func_error_405;break;case tl.ContentViolation:n=I18N.ChatGPT.ai_semantic_func_error_451;break;case tl.PointsInsufficient:n=I18N.ChatGPT.ai_semantic_func_error_403;break;case tl.NotFindEditObject:n=I18N.ChatGPT.ai_semantic_func_error_603;break;case tl.ResultViolation:n="\u4E3A\u786E\u4FDD\u8F93\u51FA\u5185\u5BB9\u5408\u89C4\uFF0C\u8BF7\u8C03\u6574\u6307\u4EE4\u5E76\u91CD\u8BD5\u3002";break;case tl.NotSupportCanvas:n="\u6682\u4E0D\u652F\u6301\u5728\u52A8\u6001\u7EC4\u4EF6\uFF08\u6BCD\u7248/\u6211\u7684\u3001\u4F01\u4E1A\u7EC4\u4EF6\uFF09\u5185\u751F\u6210\u9875\u9762\u3002";break;default:break}return{notice:n,noticeStatus:s,svgName:c}},o0=(t,n)=>{const{w:s,h:c}=t,{x:d,y:w}=n,P=Number(d)+Number(s)/2,F=Number(w)+Number(c)/2;return{x:P,y:F}},bm=[yo.x.WRichText,yo.x.WSticky,yo.x.WTear],vy=t=>{const n=flatGroup(t),s=[],c=n.filter(F=>bm.includes(F.type));c&&c.length===1&&c.length===n.length&&s.push(AISemanticRecommendScenes.editText);const d=n.filter(F=>[WidgetType.WImage,WidgetType.WCarousel].includes(F.type));d&&d.length>0&&d.length===n.length&&s.push(AISemanticRecommendScenes.imageEdit);const w=n.filter(F=>canWidgetFillText(F));w&&w.length>0&&w.length===n.length&&s.push(AISemanticRecommendScenes.textFill);const P=n.filter(F=>EditStyleWidget.includes(F.type));return P&&P.length>0&&s.push(AISemanticRecommendScenes.editStyle),s!=null&&s.length?s:[AISemanticRecommendScenes.default]},x0=()=>({[AISemanticRecommendScenes.editText]:[I18N.ChatGPT.ai_semantic_editText_label_1,I18N.ChatGPT.ai_semantic_editText_label_2,I18N.ChatGPT.ai_semantic_editText_label_3,I18N.ChatGPT.ai_semantic_editText_label_4],[AISemanticRecommendScenes.imageEdit]:[I18N.ChatGPT.ai_semantic_editImage_label_1,I18N.ChatGPT.ai_semantic_editImage_label_2,I18N.ChatGPT.ai_semantic_editImage_label_3,I18N.ChatGPT.ai_semantic_editImage_label_4],[AISemanticRecommendScenes.textFill]:[I18N.ChatGPT.ai_semantic_textFill_label_1,I18N.ChatGPT.ai_semantic_textFill_label_2,I18N.ChatGPT.ai_semantic_textFill_label_3,I18N.ChatGPT.ai_semantic_textFill_label_4],[AISemanticRecommendScenes.editStyle]:[I18N.ChatGPT.ai_semantic_editStyle_label_1,I18N.ChatGPT.ai_semantic_editStyle_label_2,I18N.ChatGPT.ai_semantic_editStyle_label_3,I18N.ChatGPT.ai_semantic_editStyle_label_4],[AISemanticRecommendScenes.default]:[I18N.ChatGPT.ai_semantic_common_label_1,I18N.ChatGPT.ai_semantic_common_label_2,I18N.ChatGPT.ai_semantic_common_label_3,I18N.ChatGPT.ai_semantic_common_label_4,I18N.ChatGPT.ai_semantic_common_label_5,I18N.ChatGPT.ai_semantic_common_label_6,I18N.ChatGPT.ai_semantic_common_label_7,I18N.ChatGPT.ai_semantic_common_label_8,I18N.ChatGPT.ai_semantic_common_label_9,I18N.ChatGPT.ai_semantic_common_label_10,I18N.ChatGPT.ai_semantic_common_label_11]}),bf=(t,n)=>{const s=x0();return t.reduce((c,d)=>{const w=s[d]||[];if(d===AISemanticRecommendScenes.default)for(let P=w.length-1;P>0;P--){const F=Math.floor(Math.random()*(P+1));[w[P],w[F]]=[w[F],w[P]]}return[...c,...w]},[]).filter(c=>c!==n)},Ma=t=>{let{prefix:n="",hotAttr:s,sup:c,sub:d=[]}=t;return{key:(0,Mt.cF)(n),hotAttr:s,sup:c,sub:d}},Cm=(t,n)=>{let s=0;const c=[],d=/\s+/g,P=[...t.matchAll(d)].map(X=>({start:X.index,length:X[0].length,noSpaceStart:0}));for(let X=0;X<P.length;X++){const ee=P[X],pe=P.slice(0,X).reduce((ye,Ae)=>ye+Ae.length,0);ee.noSpaceStart=(ee.start||0)-pe}if(Object.entries(n).sort((X,ee)=>{var pe,ye;let Ae=0,we=0;if((pe=X[1])!=null&&pe.offset&&(ye=ee[1])!=null&&ye.offset){var _e,Fe;Ae=(_e=X[1])==null?void 0:_e.offset[0],we=(Fe=ee[1])==null?void 0:Fe.offset[0]}return Ae-we}).forEach(X=>{let[ee,{value:pe,offset:ye}]=X;const Ae=ye[0],we=P.filter(He=>He.noSpaceStart<=Ae).reduce((He,tt)=>He+tt.length,0);ye[0]=ye[0]+we,ye[1]=ye[1]+we;const[_e,Fe]=ye;if(_e>s){const He=t.substring(s,_e);c.push({content:He})}const Ye=t.substring(_e,Fe);c.push({key:ee,value:pe,content:Ye}),s=Fe}),s<t.length){const X=t.substring(s);c.push({content:X})}return c},Cf=t=>{if(!t)return t;const n={count:99,"custom-size-height":9999,"custom-size-width":9999,"font-size":999,height:9999,interval:9999,nodes:20,opacity:100,"page-x":99999,"page-y":99999,"process-position":100,radius:999,range:9999,redo_steps:9,row:99,sides:20,"stroke-weight":9,thickness:20,undo_steps:9,width:9999};return Object.entries(t).forEach(s=>{let[c,d]=s;n[c]&&Number(d)>n[c]&&(t[c]=n[c])}),t},wf=t=>{switch(t){case"bar":return yo.x.WBarChart;case"hbar":return yo.x.WHorizontalBarChart;case"line":return yo.x.WLineChart;case"linea":return yo.x.WLineAreaChart;case"pie":return yo.x.WPieChart;case"ring":return yo.x.WRingChart;case"process":return yo.x.WProgressChart;case"radar":return yo.x.WRadarChart;case"mbl":return yo.x.WMixedBarLineChart}},qm=(t,n)=>{const{chartType:s,xAxisData:c,yAxisData:d,theme:w}=t,{pageKey:P}=n,F=wf(s),X=el[F]("chart"),ee={xAxis:[],yAxis:[],series:[],textStyle:{fontSize:14,color:4294967295}};if(["pie","ring"].includes(s)){ee.xAxis=[c[0].name];const Ae=[];for(let we=0;we<c[0].data.length;we++){const _e=c[0].data[we],Fe=d[0].data[we];Ae.push({name:_e,data:[Fe]})}ee.series=Ae}else ee.xAxis=c[0].data,ee.series=d;X.chartData=ee,X.chartConfig.chartTheme=w,[yo.x.WPieChart,yo.x.WRingChart].includes(F)?X.chartConfig.showHelpMark=!0:X.chartConfig.legend.isVisible=!0;const pe=(0,nh.$b)(X,!0);return[Ma({sup:P,hotAttr:pe})]},S1=t=>typeof t=="string"?t:"",Sf=t=>{if(typeof t=="string")return t;const n=(t==null?void 0:t.data)||(t==null?void 0:t.value)||"";return typeof n=="string"?n:""},wm=t=>{const n=d=>({text:Sf(d),type:"unstyled",depth:0,inlineStyleRanges:[],entityRanges:[],data:{}}),s={};let c=parseInt("blocks",32);for(let d=0;d<t.length;d++){c=c+1;let w=c.toString(32).padStart(6,"0");w="#"+w,s[w]=n(t[d])}return s},G1=t=>wm([t!=null?t:""]),Sm=(t,n)=>{const s=el.wRect("");if(n){const{isHCenter:c,isVCenter:d,w,h:P,textColor:F,fontSize:X=14,horizontalAlign:ee,verticalAlign:pe,bold:ye,italic:Ae,underline:we,strikethrough:_e,hexFill:Fe,zIndex:Ye,border:He,borderRadius:tt,opacity:It,shadow:Nt,fontFamily:Lt}=n;c&&(s.richTextV1.horizontalAlign="center"),d&&(s.richTextV1.verticalAlign="center"),w&&(s.w=w),P&&(s.h=P),F&&(s.richTextV1.textColor=F),X&&(s.richTextV1.fontSize=X),ee&&(s.richTextV1.horizontalAlign=ee),pe&&(s.richTextV1.verticalAlign=pe),ye&&(s.richTextV1.bold=ye),Ae&&(s.richTextV1.italic=Ae),we&&(s.richTextV1.underline=we),_e&&(s.richTextV1.strikethrough=_e),Fe&&(s.fill={fillIsVisible:!0,fill:"solid",solidColor:Oa(Fe)}),Ye&&(s.zIndex=Ye),He&&(s.border=He),tt&&(s.borderRadius=tt),Nt&&(s.shadow=Nt),It&&(s.opacity=It),Lt&&(s.richTextV1.fontFamily=Lt)}return s.textV1.blocks=G1(t!=null?t:""),s.border.bdrIsVisible=!1,s.richTextV1.sizeType=1,s},Af=function(t,n){n===void 0&&(n="wMTextInput");const s=el[n]("");if(t){const{isVCenter:c,w:d,h:w,textColor:P,fontSize:F=14,horizontalAlign:X,bold:ee,italic:pe,border:ye,borderRadius:Ae,opacity:we,shadow:_e,placeholder:Fe,hexFill:Ye}=t;d&&(s.w=d),w&&(s.h=w),_e&&(s.shadow=_e),ye&&(s.border=ye),s.opacity=we,Ae&&(s.borderRadius=Ae),s.textInput.prefillTextColorV0=P?Oa(P):2290649343,s.textV0.text=Fe||"",c&&(s.textV0.verticalAlign="center"),s.textV0.horizontalAlign=X,s.textV0.fontSize=F,ee&&(s.textV0.bold=ee),pe&&(s.textV0.italic=pe),Ye&&(s.fill={fillIsVisible:!0,fill:"solid",solidColor:Oa(Ye)})}return s},oc=(t,n)=>{const s=el.wRichText("");if(n){const{isHCenter:c,isVCenter:d,w,h:P,textColor:F,fontSize:X=14,horizontalAlign:ee,verticalAlign:pe,bold:ye,lineHeight:Ae,paraSpacing:we,fontFamily:_e,italic:Fe,underline:Ye,strikethrough:He,zIndex:tt}=n;c&&(s.richTextV1.horizontalAlign="center"),d&&(s.richTextV1.verticalAlign="center"),w&&(s.w=w),P&&(s.h=P),F&&(s.richTextV1.textColor=F),X&&(s.richTextV1.fontSize=X),ee&&(s.richTextV1.horizontalAlign=ee),pe&&(s.richTextV1.verticalAlign=pe),ye&&(s.richTextV1.bold=ye),Ae&&(s.richTextV1.lineHeight=Ae),we&&(s.richTextV1.paraSpacing=we),_e&&(s.richTextV1.fontFamily=_e),Fe&&(s.richTextV1.italic=Fe),Ye&&(s.richTextV1.underline=Ye),He&&(s.richTextV1.strikethrough=He),tt&&(s.zIndex=tt),Ae&&(s.richTextV1.lineHeight=Ae)}return s.textV1.blocks=G1(t!=null?t:""),s.richTextV1.sizeType=1,s},If=t=>{let n;switch(t){case"process":n=el[yo.x.WFlowProcess](t);break;case"start":case"end":n=el[yo.x.WFlowStartEnd](t);break;case"decision":n=el[yo.x.WFlowDecision](t);break;case"doc":n=el[yo.x.WFlowDoc](t);break;case"data":n=el[yo.x.WFlowData](t);break;default:n=el[yo.x.WFlowProcess](t);break}return n},Am=t=>t==="r"?"right":t==="l"?"left":t==="t"?"top":"bottom",Mf=(t,n)=>{const{x:s,y:c}=t.hotAttr,{x:d,y:w}=n.hotAttr;return s<d?c<w?{fd:"b",td:"l",arrowStyle:"solid"}:{fd:"r",td:"l",arrowStyle:"solid"}:s===d?c<w?{fd:"b",td:"t",arrowStyle:"solid"}:{fd:"r",td:"t",arrowStyle:"dashed"}:c<w?{fd:"b",td:"t",arrowStyle:"dashed"}:{fd:"r",td:"t",arrowStyle:"dashed"}},Im=(t,n)=>{const{nodes:s,edges:c}=t,{pageKey:d}=n,w=s.map(Nt=>{if(Array.isArray(Nt))return Nt;const{id:Lt,type:Xt,text:_o,isPoint:co}=Nt;return[Lt,Xt,_o,co]}),P=c.map(Nt=>{if(Array.isArray(Nt))return Nt;const{idFrom:Lt,idTo:Xt,text:_o}=Nt;return[Lt,Xt,_o]}),F=new Map,X=new Map,ee=new Map,pe=new Set,ye=new Map;w.forEach(Nt=>{const Lt=If(Nt[1]);Nt[2]&&(Lt.textV1.blocks=wm([Nt[2]])),Nt[3]&&(Lt.fill.solidColor=2480075775);const Xt=Ma({sup:d,hotAttr:Lt});F.set(Nt[0],Xt),ee.set(Xt.key,!1)});for(const[Nt]of P){const Lt=[];for(const[Xt,_o]of P)Nt===Xt&&Lt.push(_o);X.set(Nt,Lt)}let Ae=0,we=0;const _e=200,Fe=150;for(const[Nt,Lt]of[...X]){var Ye;const Xt=(Ye=F.get(Nt))==null?void 0:Ye.key;if(we=0,Xt&&!ee.get(Xt)){Ae=0;const _o=F.get(Nt);Ae=Mm(pe,Ae,we,"x").nextX,_o&&(_o.hotAttr.x=Ae*_e,_o.hotAttr.y=we*Fe),pe.add(Ae+","+we),ye.set(Nt,Ae+","+we),Ae+=1,ee.set(Xt,!0)}else{var He;const _o=(He=ye.get(Nt))==null?void 0:He.split(",");_o&&(Ae=parseInt(_o[0])+1,we=parseInt(_o[1]),Ae=Mm(pe,Ae,we,"x").nextX)}for(const _o of Lt){const co=F.get(_o);co!=null&&co.key&&ee.get(co.key)||(we=Mm(pe,Ae,we,"y").nextY,co&&(co.hotAttr.x=Ae*_e,co.hotAttr.y=we*Fe),pe.add(Ae+","+we),ye.set(_o,Ae+","+we),co!=null&&co.key&&ee.set(co.key,!0),we+=1)}}const tt=[...F].map(Nt=>{let[,Lt]=Nt;return Lt}),It=P.map((Nt,Lt)=>{const Xt=el[yo.x.WElbow]("elbow"+Lt),[_o,co,yn]=Nt;yn&&(Xt.textV0.text=yn);const An=F.get(_o),In=F.get(co);if(An&&In){Xt.refFromKey=An==null?void 0:An.key,Xt.refToKey=In==null?void 0:In.key;const{fd:wn,td:_n,arrowStyle:Jn}=Mf(An,In);Xt.elbow.arrowStroke.bdrStyle=Jn,Xt.elbow.fromDirection=Am(wn),Xt.elbow.toDirection=Am(_n)}return Ma({sup:d,hotAttr:Xt})});return[...tt,...It]},Mm=(t,n,s,c)=>{let d=n,w=s;if(t.has(d+","+w))for(;t.has(d+","+w);)c==="x"?d+=1:w+=1;return c==="x"?{nextX:d}:{nextY:w}};var Tf=e(60221),eg=e(37593);const Ef="B@ref-mind",kf=(t,n)=>{const s=[],{minds:c}=t,{pageKey:d}=n,w=c.map(Ye=>{if(Array.isArray(Ye))return Ye;const{id:He=0,parentId:tt=null,text:It="",placement:Nt="r"}=Ye;return[He,tt,It,Nt]}),P=(0,ht.gO)("",0,0,0,"",0,0,""),F=Ma({prefix:"rbp",hotAttr:P,sup:Ef});s.push(F);const X=(0,sr.Nc)("rc"),ee=Ma({prefix:"rc",hotAttr:X,sup:F.key});s.push(ee);const pe=(0,Tf.A8)("mind",F.key,ee.key);s.push(Ma({hotAttr:pe,sup:d}));const ye=w[0]?w[0][2]:"",Ae=(0,eg.yf)("",ye,!0),we=Ma({hotAttr:Ae,sup:ee.key}),_e=new Map;s.push(we),_e.set(1,we);for(let Ye=1;Ye<w.length;Ye++){var Fe;const[He,tt,It,Nt]=w[Ye],Lt=(0,eg.yf)("",It);Lt.zIndex+=Ye;const Xt=_e.get(Number(tt));let _o=Xt==null||(Fe=Xt.hotAttr)==null?void 0:Fe.placement;tt===1&&(_o=_f[Nt]),Lt.placement=_o;const co=Ma({hotAttr:Lt,sup:Xt==null?void 0:Xt.key});s.push(co),_e.set(Number(He),co)}return s},_f={l:"left",r:"right"},Tm=(t,n)=>{const{table:s,"border-color":c,"horizontal-color":d,"vertical-color":w}=t,{pageKey:P}=n,F=s.length,X=s[0].length,ee={columns:Array(X).fill({type:"text",width:80}),rows:Array(F).fill({height:30}),cellStyles:Array(F).fill(Array(X).fill("")),mergeCells:{},data:void 0,links:Array(F).fill(Array(X).fill(""))},pe=X*80,ye=F*30,Ae=[];for(const _e of s){const Fe=[];for(const Ye of _e)Fe.push(String(Ye));Ae.push(Fe)}ee.data=Ae;const we=el[yo.x.WTable]("table");return we.w=pe,we.h=ye,we.tableData=ee,c&&(we.tableConfig.outerBorder.bdrColor=Oa(c)),d&&(we.tableConfig.innerBorderH.bdrColor=Oa(d)),w&&(we.tableConfig.innerBorderV.bdrColor=Oa(w)),we.tableConfig={...we.tableConfig,...(0,Bh.U3)({height:ye,width:pe,columns:ee.columns,rows:ee.rows}),rowCount:F,colCount:X},we["!version"]=1,[Ma({sup:P,hotAttr:we})]},tg=(t,n)=>{switch(t.type){case"flow":return Im(t,n);case"mind":return kf(t,n);case"chart":return qm(t,n);case"table":return Tm(t,n);default:return[]}},Pf=t=>{try{if(Object.keys(t).indexOf("rectangles")>=0)return Nf(t);{const n=Lf(t);return n?[n]:[]}}catch(n){return console.error("genRectangle:",n),[]}},Nf=t=>{try{if(!t||Object.keys(t).length===0)return[];const{rectangles:n}=t,s=[];return n.forEach(c=>{const d=Lf(c);d&&s.push(d)}),s}catch(n){return[]}},Lf=t=>{try{if(!t||Object.keys(t).length===0)return null;const{opacity:n,"fill-color":s,"stroke-color":c,"stroke-weight":d,"stroke-style":w,"text-content":P,"font-format":F,"font-color":X,"font-size":ee,"text-align":pe,"font-family":ye,zIndex:Ae,shadows:we,position:_e,size:Fe,radius:Ye}=t,{x:He,y:tt}=t0(_e)||{},It=y0(Fe);if(!It)return null;const{w:Nt,h:Lt}=It,Xt={isHCenter:!0,isVCenter:!0,w:Nt,h:Lt,hexFill:s,textColor:X,fontSize:Number(ee),opacity:Number(n),horizontalAlign:pe,shadow:jh(we),borderRadius:w1(Ye),border:Oh(c,w,d),...sp(F),zIndex:Ae,fontFamily:ye},_o=Sm(P,Xt),{x:co,y:yn}=o0({w:Nt,h:Lt},{x:He,y:tt});return _o.x=co,_o.y=yn,_o.border.bdrIsVisible=!0,_o}catch(n){return null}},e1=t=>{const{w:n,h:s,image:c,border:d,borderRadius:w,opacity:P=1,originalWidth:F,originalHeight:X,imageRectCenterX:ee,imageRectCenterY:pe,imageRectWidth:ye,imageRectHeight:Ae}=t,we=el.wImage("");return we.borderRadius=14,we.w=n,we.h=s,we.opacity=P,we.ext={url:og({url:c,w:n,h:s}),name:""},we.image.imageRectCenterX=ee||n/2,we.image.imageRectCenterY=pe||n/2,we.image.imageRectWidth=ye||n,we.image.imageRectHeight=Ae||n,we.image.imageRectOriginalWidth=F||400,we.image.imageRectOriginalHeight=X||400,d&&(we.border={...we.border,...d}),w&&(we.borderRadius=w),we},og=t=>{let{url:n,w:s,h:c}=t;return n.replace(/(w=)\d+/,"$1"+s).replace(/(h=)\d+/,"$1"+c)},Df=t=>{let{w:n,h:s,imageRectOriginalWidth:c,imageRectOriginalHeight:d}=t;const w=n/s,P=c/d;let F,X,ee,pe;return w>P?(F=n,X=F/P,ee=F/2,pe=s/2):(X=s,F=s*P,pe=X/2,ee=n/2),{imageRectWidth:F,imageRectHeight:X,imageRectCenterX:ee,imageRectCenterY:pe}},by=t=>{try{if(Object.keys(t).indexOf("images")>=0)return Cy(t);{const n=ng(t);return n?[n]:[]}}catch(n){return console.error("genRectangle:",n),[]}},Cy=t=>{try{if(!t||Object.keys(t).length===0)return[];const{images:n}=t,s=[];return n.forEach(c=>{const d=ng(c);d&&s.push(d)}),s}catch(n){return[]}},ng=t=>{try{if(!t||Object.keys(t).length===0)return null;const{opacity:n,"stroke-color":s,"stroke-weight":c,"stroke-style":d,position:w,size:P,radius:F,url:X,originalSize:ee}=t,{width:pe,height:ye}=ee||{width:400,height:400},Ae=Number(pe),we=Number(ye),_e=y0(P);let{w:Fe,h:Ye}=_e||{};(!_e||!Fe||!Ye)&&(Fe=200,Ye=Math.floor(Fe/(Ae/we)));const He=t0(w),{x:tt,y:It}=He||{},Nt=Df({w:Fe,h:Ye,imageRectOriginalWidth:Ae,imageRectOriginalHeight:we}),Lt=Nt.imageRectCenterX,Xt=Nt.imageRectCenterY,_o=Nt.imageRectWidth,co=Nt.imageRectHeight,yn={w:Number(Fe),h:Number(Ye),imageRectWidth:_o,imageRectHeight:co,imageRectCenterX:Lt,imageRectCenterY:Xt,originalWidth:Ae,originalHeight:we,opacity:Number(n),image:X,borderRadius:w1(F),border:Oh(s,d,c)},An=e1(yn),{x:In,y:wn}=o0({w:Fe,h:Ye},{x:tt,y:It});return An.x=In,An.y=wn,An}catch(n){return console.error("genImage error:",n),null}},Bf=t=>{try{if(Object.keys(t).indexOf("texts")>=0)return Rf(t);{const n=sg(t);return n?[n]:[]}}catch(n){return console.error("genRectangle:",n),[]}},Rf=t=>{try{if(!t||Object.keys(t).length===0)return[];const{texts:n}=t,s=[];return n.forEach(c=>{const d=sg(c);d&&s.push(d)}),s}catch(n){return[]}},sg=t=>{try{if(!t||Object.keys(t).length===0)return null;const{"text-content":n,"font-format":s,"font-color":c,"font-size":d,"font-family":w,"text-align":P,"line-height":F,position:X,size:ee,zIndex:pe}=t||{},ye=t0(X),Ae=y0(ee),we={textColor:c,fontSize:Number(d),fontFamily:w,horizontalAlign:P,...sp(s),verticalAlign:"center",lineHeight:F,zIndex:pe},_e=oc(n,we);if(_e.richTextV1.sizeType=2,Ae){const{w:Fe,h:Ye}=Ae;_e.w=Fe,_e.h=Ye}if(ye&&Ae){const{x:Fe,y:Ye}=o0(Ae,ye);_e.x=Fe,_e.y=Ye}return _e}catch(n){return null}},jf=t=>{try{if(Object.keys(t).indexOf("ovals")>=0)return wy(t);{const n=Em(t);return n?[n]:[]}}catch(n){return console.error("genRectangle:",n),[]}},wy=t=>{try{if(!t||Object.keys(t).length===0)return[];const{ovals:n}=t,s=[];return n.forEach(c=>{const d=Em(c);d&&s.push(d)}),s}catch(n){return[]}},Em=t=>{try{if(!t||Object.keys(t).length===0)return null;const{opacity:n,"fill-color":s,"stroke-color":c,"stroke-weight":d,"stroke-style":w,"text-content":P,"font-format":F,"font-color":X,"font-size":ee,"text-align":pe,"line-height":ye,"font-family":Ae,shadows:we,position:_e,size:Fe}=t,{x:Ye,y:He}=t0(_e)||{},tt=y0(Fe);if(!tt)return null;const{w:It,h:Nt}=tt,Lt={isHCenter:!0,isVCenter:!0,w:It,h:Nt,hexFill:s,textColor:X,fontSize:Number(ee),opacity:Number(n),horizontalAlign:pe,shadow:jh(we),border:Oh(c,w,d),lineHeight:ye,fontFamily:Ae,...sp(F)},Xt=Of(P,Lt),{x:_o,y:co}=o0({w:It,h:Nt},{x:Ye,y:He});return Xt.x=_o,Xt.y=co,Xt.border.bdrIsVisible=!0,Xt}catch(n){return console.error("genOval error:",n),null}},Of=(t,n)=>{const s=el.wOval("");if(n){const{w:c,h:d,textColor:w,fontSize:P=14,horizontalAlign:F,bold:X,hexFill:ee,zIndex:pe,border:ye,opacity:Ae,shadow:we,lineHeight:_e,fontFamily:Fe}=n;c&&(s.w=c),d&&(s.h=d),s.richTextV1.horizontalAlign="center",s.richTextV1.verticalAlign="center",w&&(s.richTextV1.textColor=w),P&&(s.richTextV1.fontSize=P),F&&(s.richTextV1.horizontalAlign=F),X&&(s.richTextV1.bold=X),ee&&(s.fill={fillIsVisible:!0,fill:"solid",solidColor:Oa(ee)}),_e&&(s.richTextV1.lineHeight=_e),pe&&(s.zIndex=pe),ye&&(s.border=ye),we&&(s.shadow=we),Ae&&(s.opacity=Ae),Fe&&(s.richTextV1.fontFamily=Fe)}return s.textV1.blocks=G1(t!=null?t:""),s.border.bdrIsVisible=!0,s.richTextV1.sizeType=1,s},h2=t=>{let{hexBdrColor:n}=t;const s=el.wLine("");return s.h=1,s.w=308,s.line={linePointFrom:{x:0,y:.5},linePointTo:{x:1,y:.5}},s.border.bdrColor=Oa(n),s},ig=t=>{try{if(!t||Object.keys(t).length===0)return null;const{position:n,size:s,opacity:c,shadows:d,"stroke-color":w,"stroke-style":P,"stroke-weight":F,zIndex:X}=t,ee=y0(s);if(!ee||ee.w===0)return null;const{w:pe}=ee,{x:ye,y:Ae}=t0(n)||{},we=h2({hexBdrColor:w});we.w=pe,we.h=1;const{x:_e,y:Fe}=o0({w:pe,h:1},{x:ye,y:Ae});we.x=_e,we.y=Fe;const Ye=jh(d),He=Oh(w,P,F);return Ye&&(we.shadow=Ye),He&&(we.border=He),X&&(we.zIndex=X),we.opacity=Number(c),we}catch(n){return console.error("genLine error:",n),null}},Ff=t=>{try{if(Object.keys(t).indexOf("buttons")>=0)return Uf(t);{const n=ag(t);return n?[n]:[]}}catch(n){return console.error("genRectangle:",n),[]}},Uf=t=>{try{if(!t||Object.keys(t).length===0)return[];const{buttons:n}=t,s=[];return n.forEach(c=>{const d=ag(c);d&&s.push(d)}),s}catch(n){return[]}},ag=t=>{try{if(!t||Object.keys(t).length===0)return null;const{opacity:n,"fill-color":s,"stroke-color":c,"stroke-weight":d,"stroke-style":w,"text-content":P,"font-format":F,"font-color":X,"font-size":ee,"text-align":pe,shadows:ye,position:Ae,size:we,radius:_e,zIndex:Fe}=t,{x:Ye,y:He}=t0(Ae)||{},tt=y0(we);if(!tt)return null;const{w:It,h:Nt}=tt,Lt={w:It,h:Nt,hexFill:s,textColor:X,fontSize:Number(ee),opacity:Number(n),horizontalAlign:pe,shadow:jh(ye),borderRadius:w1(_e),border:Oh(c,w,d),zIndex:Fe,...sp(F)},Xt=zf(P,Lt),{x:_o,y:co}=o0(tt,{x:Ye,y:He});return Xt.x=_o,Xt.y=co,Xt.border.bdrIsVisible=!0,Xt}catch(n){return console.error("genButton error:",n),null}},zf=(t,n)=>{const s=el.wButton("");if(n){const{w:c,h:d,textColor:w,fontSize:P=14,horizontalAlign:F,bold:X,italic:ee,strikethrough:pe,underline:ye,hexFill:Ae,border:we,borderRadius:_e,opacity:Fe,shadow:Ye,zIndex:He}=n;s.w=c,s.h=d,s.textV0.textColor=Oa(w),s.textV0.fontSize=P,s.textV0.bold=X,s.textV0.italic=ee,s.textV0.verticalAlign="center",s.textV0.text=t,ye&&(s.textV0.textDecoration="underline"),pe&&(s.textV0.textDecoration="line-through"),F&&(s.textV0.horizontalAlign=F),Ae&&(s.fill={fillIsVisible:!0,fill:"solid",solidColor:Oa(Ae)}),we&&(s.border=we),_e&&(s.borderRadius=_e),Ye&&(s.shadow=Ye),Fe&&(s.opacity=Fe),He&&(s.zIndex=He)}return s},Wf=t=>{const n=el.wIphoneXSB("");try{if(!t||Object.keys(t).length===0)return null;const{position:s,size:c,opacity:d,"fill-color":w,"font-color":P,zIndex:F}=t;n.opacity=Number(d);const{x:X,y:ee}=t0(s)||{},pe=y0(c);if(!pe)return null;w&&(n.fill={fillIsVisible:!0,fill:"solid",solidColor:Oa(w)}),P&&(n.textV0.textColor=Oa(P)),F&&(n.zIndex=F);const{w:ye,h:Ae}=pe;n.w=ye,n.h=Ae;const{x:we,y:_e}=o0({w:ye,h:Ae},{x:X,y:ee});return n.x=we,n.y=_e,n}catch(s){return console.error("genIphoneXSB error:",s),null}},rg=t=>{try{if(!t||Object.keys(t).length===0)return null;const{position:n,size:s,opacity:c,shadows:d,color:w,"stroke-style":P,"stroke-weight":F,zIndex:X}=t,ee=y0(s);if(!ee||ee.w===0||ee.h===0)return null;const{w:pe}=ee,{x:ye,y:Ae}=t0(n)||{};let we="solid";P==="dot"?we="dotted":P==="dash"&&(we="dashed");const _e=Vf({w:pe,opacity:Number(c),shadow:jh(d),bdrColor:w,bdrWidth:Number(F),bdrStyle:we,zIndex:X});_e.w=pe,_e.h=1;const{x:Fe,y:Ye}=o0({w:pe,h:1},{x:ye,y:Ae});return _e.x=Fe,_e.y=Ye,_e}catch(n){return null}},Vf=t=>{let{w:n,opacity:s,shadow:c,bdrWidth:d,bdrColor:w,bdrStyle:P,zIndex:F}=t;const X=el.wArrow("");return X.h=1,X.w=n,X.opacity=s,F&&(X.zIndex=F),X.arrow={arrowPointFromType:4,arrowPointToType:1,arrowStroke:{bdrIsVisible:!0,bdrStyle:P,bdrWidth:d,bdrColor:w?Oa(w):4182398719},arrowPointFrom:{x:0,y:.5},arrowPointTo:{x:1,y:.5}},c&&(X.shadow=c),X},Hf=t=>{try{if(!t||Object.keys(t).length===0)return null;const{opacity:n,"fill-color":s,"stroke-color":c,"stroke-weight":d,"stroke-style":w,"font-format":P,"font-color":F,"font-size":X,"font-family":ee,"text-align":pe,shadows:ye,position:Ae,size:we,radius:_e,placeholder:Fe}=t,{x:Ye,y:He}=t0(Ae)||{},tt=y0(we);if(!tt)return null;const{w:It,h:Nt}=tt,Lt={isVCenter:!0,w:It,h:Nt,hexFill:s,textColor:F,fontSize:Number(X),fontFamily:ee,opacity:Number(n),horizontalAlign:pe,shadow:jh(ye),borderRadius:w1(_e),border:Oh(c,w,d),...sp(P),placeholder:Fe||"\u8BF7\u8F93\u5165"},Xt=Af(Lt),{x:_o,y:co}=o0({w:It,h:Nt},{x:Ye,y:He});return Xt.x=_o,Xt.y=co,Xt}catch(n){return null}},Kf=t=>{try{if(!t||Object.keys(t).length===0)return null;const{opacity:n,"fill-color":s,"stroke-color":c,"stroke-weight":d,"stroke-style":w,"font-format":P,"font-color":F,"font-size":X,"font-family":ee,"text-align":pe,shadows:ye,position:Ae,size:we,radius:_e,placeholder:Fe}=t,{x:Ye,y:He}=t0(Ae)||{},tt=y0(we);if(!tt)return null;const{w:It,h:Nt}=tt,Lt={w:It,h:Nt,hexFill:s,textColor:F,fontSize:Number(X),fontFamily:ee,opacity:Number(n),horizontalAlign:pe,shadow:jh(ye),borderRadius:w1(_e),border:Oh(c,w,d),...sp(P),placeholder:Fe},Xt=Af(Lt,"wMTextarea"),{x:_o,y:co}=o0({w:It,h:Nt},{x:Ye,y:He});return Xt.x=_o,Xt.y=co,Xt}catch(n){return console.log("### err:",n),null}},Gf=t=>{try{if(!t||Object.keys(t).length===0)return null;const{position:n,size:s,opacity:c,shadows:d,"fill-color":w,"stroke-color":P,"stroke-weight":F,"stroke-style":X,"font-size":ee,"font-color":pe,items:ye}=t,Ae=y0(s);if(!Ae)return null;const{x:we,y:_e}=t0(n)||{},{w:Fe,h:Ye}=Ae;let He="1\n2\n3";ye&&ye.length>0&&(He=ye.join("\n"));const tt={w:Fe,h:Ye,hexFill:w,textColor:pe,fontSize:Number(ee),opacity:Number(c),shadow:jh(d),border:Oh(P,X,F),text:He},It=Yf(tt),{x:Nt,y:Lt}=o0(Ae,{x:we,y:_e});return It.x=Nt,It.y=Lt,It}catch(n){return null}},Yf=t=>{const n=el.wMSelect("");if(t){const{w:s,h:c,textColor:d,fontSize:w=14,border:P,opacity:F,shadow:X,text:ee,hexFill:pe,zIndex:ye}=t;n.w=s,n.h=c,X&&(n.shadow=X),P&&(n.border=P),n.opacity=F,n.textV0.textColor=d?Oa(d):269488383,n.textV0.text=ee,n.textV0.fontSize=w,n.textV0.padding=8,n.textV0.lineHeight=w+4<20?20:w+4,ye&&(n.zIndex=ye),pe&&(n.fill={fillIsVisible:!0,fill:"solid",solidColor:Oa(pe)})}return n},Zf=t=>{try{if(!t||Object.keys(t).length===0)return null;const{position:n,size:s,opacity:c,shadows:d,radius:w,"fill-color":P,"stroke-color":F,"stroke-weight":X,"stroke-style":ee,"font-color":pe,"font-size":ye,"text-align":Ae,"font-format":we,placeholder:_e,items:Fe,zIndex:Ye}=t,He=y0(s);if(!He)return null;const{x:tt,y:It}=t0(n)||{},{w:Nt,h:Lt}=He;let Xt=Fe;(!Fe||Fe.length===0)&&(Xt=["\u9009\u98791","\u9009\u98792","\u9009\u98793"]);const _o={w:Nt,h:Lt,hexFill:P,textColor:pe,horizontalAlign:Ae,opacity:Number(c),borderRadius:w1(w),shadow:jh(d),border:Oh(F,ee,X),fontSize:Number(ye),...sp(we),placeholder:_e,optionData:Xt,zIndex:Ye},co=Xf(_o),{x:yn,y:An}=o0(He,{x:tt,y:It});return co.x=yn,co.y=An,co}catch(n){return console.error("genDropdown error:",n),null}},Xf=t=>{const n=el.wDropMenu("");if(t){const{w:s,h:c,textColor:d,fontSize:w=14,border:P,opacity:F,shadow:X,hexFill:ee,horizontalAlign:pe,borderRadius:ye,bold:Ae,italic:we,underline:_e,strikethrough:Fe,optionData:Ye,placeholder:He,zIndex:tt}=t;n.w=s,n.h=c,X&&(n.shadow=X),P&&(n.border=P),n.opacity=F,n.textV0.textColor=d?Oa(d):269488383,n.textV0.text=He||"\u4E0B\u62C9\u83DC\u5355",n.textV0.fontSize=w,n.textV0.padding=8,n.textV0.lineHeight=w+4<20?20:w+4,pe&&(n.textV0.horizontalAlign=pe),n.textV0.verticalAlign="center",Ae&&(n.textV0.bold=Ae),we&&(n.textV0.italic=we),_e&&(n.textV0.textDecoration="underline"),Fe&&(n.textV0.textDecoration="line-through"),ye&&(n.borderRadius=ye),ee&&(n.fill={fillIsVisible:!0,fill:"solid",solidColor:Oa(ee)}),tt&&(n.zIndex=tt),n.optionData=Ye.map(It=>({data:{name:It,linkCids:"",expanded:!1,selected:!1,designExpanded:!1},children:[]}))}return n},Qf=(t,n)=>{try{if(!t||Object.keys(t).length===0)return null;const{position:s,size:c,opacity:d,"font-size":w,"button-color":P,"button-text-color":F,"button-selected-color":X,"button-selected-text-color":ee,options:pe,zIndex:ye}=t,Ae=y0(c);if(!Ae)return null;const{x:we,y:_e}=t0(s)||{},{w:Fe,h:Ye}=Ae;let He=pe;(!pe||pe.length<0)&&(He=["\u9009\u98791","\u9009\u98792","\u9009\u98793","\u9009\u98794"]);const tt={w:Fe,h:Ye,fontSize:Number(w),opacity:Number(d),btnColor:P,btnTextColor:F,btnSelColor:X,btnTextSelColor:ee,optionData:He,zIndex:ye},It=Jf(tt,n),{x:Nt,y:Lt}=o0({w:Fe,h:Ye},{x:we,y:_e});return It.x=Nt,It.y=Lt,It}catch(s){return console.error("genSelectionControl error:",s),null}},Jf=(t,n)=>{let s=el.wSelectionControlRadio("wSelectionControl");n&&(s=el.wSelectionControlCheckbox("wSelectionControl"));const{w:c,h:d,fontSize:w=14,opacity:P,btnColor:F,btnSelColor:X,btnTextSelColor:ee,btnTextColor:pe,optionData:ye,zIndex:Ae}=t;s.w=c,s.h=d,s.opacity=P,Ae&&(s.zIndex=Ae);const we=ye.map(_e=>({data:{name:_e,linkCids:"",expanded:!1,selected:!1,designExpanded:!1},children:[]}));return we[0].data.selected=!0,s.optionData=we,s.selectionControl.fontSize=w,s.selectionControl.textColor=pe?Oa(pe):858993663,s.selectionControl.borderColor=F?Oa(F):3435973887,s.selectionControl.checkedBorderColor=X?Oa(X):377814271,s.selectionControl.checkedTextColor=ee?Oa(ee):858993663,s},ip=function(t){t===void 0&&(t=nn);const n=el.wRect("");return n.border.bdrIsVisible=!1,n.fill={fillIsVisible:!0,fill:"solid",solidColor:Oa("#FFFFFFF0")},n.w=t,n.x=t/2,n},jr=(t,n)=>{let{w:s}=n;return t+s/2},Or=(t,n)=>{let{h:s}=n;return t+s/2},hh=t=>{let{w:n=60,h:s=24,hexFill:c="#1685FC",hexFontColor:d="#FFFFFF",bold:w=!0}=t;const P=el.wButton("");return P.w=n,P.h=s,P.fill={fillIsVisible:!0,fill:"solid",solidColor:Oa(c)},P.textV0.textColor=Oa(d),P.textV0.fontSize=12,P.textV0.fontSize=12,P.textV0.bold=w,P.borderRadius=6,P.border.bdrIsVisible=!1,P},cg={...JSON.parse('{"twitter-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-48.9 158.8c.2 2.8.2 5.7.2 8.5 0 86.7-66 186.6-186.6 186.6-37.2 0-71.7-10.8-100.7-29.4 5.3.6 10.4.8 15.8.8 30.7 0 58.9-10.4 81.4-28-28.8-.6-53-19.5-61.3-45.5 10.1 1.5 19.2 1.5 29.6-1.2-30-6.1-52.5-32.5-52.5-64.4v-.8c8.7 4.9 18.9 7.9 29.6 8.3a65.447 65.447 0 0 1-29.2-54.6c0-12.2 3.2-23.4 8.9-33.1 32.3 39.8 80.8 65.8 135.2 68.6-9.3-44.5 24-80.6 64-80.6 18.9 0 35.9 7.9 47.9 20.7 14.8-2.8 29-8.3 41.6-15.8-4.9 15.2-15.2 28-28.8 36.1 13.2-1.4 26-5.1 37.8-10.2-8.9 13.1-20.1 24.7-32.9 34z"},"facebook-square":{"viewBox":"0 0 448 512","path":"M448 80v352c0 26.5-21.5 48-48 48h-85.3V302.8h60.6l8.7-67.6h-69.3V192c0-19.6 5.4-32.9 33.5-32.9H384V98.7c-6.2-.8-27.4-2.7-52.2-2.7-51.6 0-87 31.5-87 89.4v49.9H184v67.6h60.9V480H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48z"},"linkedin":{"viewBox":"0 0 448 512","path":"M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"},"github-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM277.3 415.7c-8.4 1.5-11.5-3.7-11.5-8 0-5.4.2-33 .2-55.3 0-15.6-5.2-25.5-11.3-30.7 37-4.1 76-9.2 76-73.1 0-18.2-6.5-27.3-17.1-39 1.7-4.3 7.4-22-1.7-45-13.9-4.3-45.7 17.9-45.7 17.9-13.2-3.7-27.5-5.6-41.6-5.6-14.1 0-28.4 1.9-41.6 5.6 0 0-31.8-22.2-45.7-17.9-9.1 22.9-3.5 40.6-1.7 45-10.6 11.7-15.6 20.8-15.6 39 0 63.6 37.3 69 74.3 73.1-4.8 4.3-9.1 11.7-10.6 22.3-9.5 4.3-33.8 11.7-48.3-13.9-9.1-15.8-25.5-17.1-25.5-17.1-16.2-.2-1.1 10.2-1.1 10.2 10.8 5 18.4 24.2 18.4 24.2 9.7 29.7 56.1 19.7 56.1 19.7 0 13.9.2 36.5.2 40.6 0 4.3-3 9.5-11.5 8-66-22.1-112.2-84.9-112.2-158.3 0-91.8 70.2-161.5 162-161.5S388 165.6 388 257.4c.1 73.4-44.7 136.3-110.7 158.3zm-98.1-61.1c-1.9.4-3.7-.4-3.9-1.7-.2-1.5 1.1-2.8 3-3.2 1.9-.2 3.7.6 3.9 1.9.3 1.3-1 2.6-3 3zm-9.5-.9c0 1.3-1.5 2.4-3.5 2.4-2.2.2-3.7-.9-3.7-2.4 0-1.3 1.5-2.4 3.5-2.4 1.9-.2 3.7.9 3.7 2.4zm-13.7-1.1c-.4 1.3-2.4 1.9-4.1 1.3-1.9-.4-3.2-1.9-2.8-3.2.4-1.3 2.4-1.9 4.1-1.5 2 .6 3.3 2.1 2.8 3.4zm-12.3-5.4c-.9 1.1-2.8.9-4.3-.6-1.5-1.3-1.9-3.2-.9-4.1.9-1.1 2.8-.9 4.3.6 1.3 1.3 1.8 3.3.9 4.1zm-9.1-9.1c-.9.6-2.6 0-3.7-1.5s-1.1-3.2 0-3.9c1.1-.9 2.8-.2 3.7 1.3 1.1 1.5 1.1 3.3 0 4.1zm-6.5-9.7c-.9.9-2.4.4-3.5-.6-1.1-1.3-1.3-2.8-.4-3.5.9-.9 2.4-.4 3.5.6 1.1 1.3 1.3 2.8.4 3.5zm-6.7-7.4c-.4.9-1.7 1.1-2.8.4-1.3-.6-1.9-1.7-1.5-2.6.4-.6 1.5-.9 2.8-.4 1.3.7 1.9 1.8 1.5 2.6z"},"twitter":{"viewBox":"0 0 512 512","path":"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"},"facebook-f":{"viewBox":"0 0 264 512","path":"M76.7 512V283H0v-91h76.7v-71.7C76.7 42.4 124.3 0 193.8 0c33.3 0 61.9 2.5 70.2 3.6V85h-48.2c-37.8 0-45.1 18-45.1 44.3V192H256l-11.7 91h-73.6v229"},"github":{"viewBox":"0 0 496 512","path":"M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"},"pinterest":{"viewBox":"0 0 496 512","path":"M496 256c0 137-111 248-248 248-25.6 0-50.2-3.9-73.4-11.1 10.1-16.5 25.2-43.5 30.8-65 3-11.6 15.4-59 15.4-59 8.1 15.4 31.7 28.5 56.8 28.5 74.8 0 128.7-68.8 128.7-154.3 0-81.9-66.9-143.2-152.9-143.2-107 0-163.9 71.8-163.9 150.1 0 36.4 19.4 81.7 50.3 96.1 4.7 2.2 7.2 1.2 8.3-3.3.8-3.4 5-20.3 6.9-28.1.6-2.5.3-4.7-1.7-7.1-10.1-12.5-18.3-35.3-18.3-56.6 0-54.7 41.4-107.6 112-107.6 60.9 0 103.6 41.5 103.6 100.9 0 67.1-33.9 113.6-78 113.6-24.3 0-42.6-20.1-36.7-44.8 7-29.5 20.5-61.3 20.5-82.6 0-19-10.2-34.9-31.4-34.9-24.9 0-44.9 25.7-44.9 60.2 0 22 7.4 36.8 7.4 36.8s-24.5 103.8-29 123.2c-5 21.4-3 51.6-.9 71.2C65.4 450.9 0 361.1 0 256 0 119 111 8 248 8s248 111 248 248z"},"pinterest-square":{"viewBox":"0 0 448 512","path":"M448 80v352c0 26.5-21.5 48-48 48H154.4c9.8-16.4 22.4-40 27.4-59.3 3-11.5 15.3-58.4 15.3-58.4 8 15.3 31.4 28.2 56.3 28.2 74.1 0 127.4-68.1 127.4-152.7 0-81.1-66.2-141.8-151.4-141.8-106 0-162.2 71.1-162.2 148.6 0 36 19.2 80.8 49.8 95.1 4.7 2.2 7.1 1.2 8.2-3.3.8-3.4 5-20.1 6.8-27.8.6-2.5.3-4.6-1.7-7-10.1-12.3-18.3-34.9-18.3-56 0-54.2 41-106.6 110.9-106.6 60.3 0 102.6 41.1 102.6 99.9 0 66.4-33.5 112.4-77.2 112.4-24.1 0-42.1-19.9-36.4-44.4 6.9-29.2 20.3-60.7 20.3-81.8 0-53-75.5-45.7-75.5 25 0 21.7 7.3 36.5 7.3 36.5-31.4 132.8-36.1 134.5-29.6 192.6l2.2.8H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48z"},"google-plus-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM164 356c-55.3 0-100-44.7-100-100s44.7-100 100-100c27 0 49.5 9.8 67 26.2l-27.1 26.1c-7.4-7.1-20.3-15.4-39.8-15.4-34.1 0-61.9 28.2-61.9 63.2 0 34.9 27.8 63.2 61.9 63.2 39.6 0 54.4-28.5 56.8-43.1H164v-34.4h94.4c1 5 1.6 10.1 1.6 16.6 0 57.1-38.3 97.6-96 97.6zm220-81.8h-29v29h-29.2v-29h-29V245h29v-29H355v29h29v29.2z"},"google-plus":{"viewBox":"0 0 496 512","path":"M248 8C111.1 8 0 119.1 0 256s111.1 248 248 248 248-111.1 248-248S384.9 8 248 8zm-70.7 372c-68.8 0-124-55.5-124-124s55.2-124 124-124c31.3 0 60.1 11 83 32.3l-33.6 32.6c-13.2-12.9-31.3-19.1-49.4-19.1-42.9 0-77.2 35.5-77.2 78.1s34.2 78.1 77.2 78.1c32.6 0 64.9-19.1 70.1-53.3h-70.1v-42.6h116.9c1.3 6.8 1.9 13.6 1.9 20.7 0 70.8-47.5 121.2-118.8 121.2zm230.2-106.2v35.5H372v-35.5h-35.5v-35.5H372v-35.5h35.5v35.5h35.2v35.5h-35.2z"},"github-alt":{"viewBox":"0 0 480 512","path":"M186.1 328.7c0 20.9-10.9 55.1-36.7 55.1s-36.7-34.2-36.7-55.1 10.9-55.1 36.7-55.1 36.7 34.2 36.7 55.1zM480 278.2c0 31.9-3.2 65.7-17.5 95-37.9 76.6-142.1 74.8-216.7 74.8-75.8 0-186.2 2.7-225.6-74.8-14.6-29-20.2-63.1-20.2-95 0-41.9 13.9-81.5 41.5-113.6-5.2-15.8-7.7-32.4-7.7-48.8 0-21.5 4.9-32.3 14.6-51.8 45.3 0 74.3 9 108.8 36 29-6.9 58.8-10 88.7-10 27 0 54.2 2.9 80.4 9.2 34-26.7 63-35.2 107.8-35.2 9.8 19.5 14.6 30.3 14.6 51.8 0 16.4-2.6 32.7-7.7 48.2 27.5 32.4 39 72.3 39 114.2zm-64.3 50.5c0-43.9-26.7-82.6-73.5-82.6-18.9 0-37 3.4-56 6-14.9 2.3-29.8 3.2-45.1 3.2-15.2 0-30.1-.9-45.1-3.2-18.7-2.6-37-6-56-6-46.8 0-73.5 38.7-73.5 82.6 0 87.8 80.4 101.3 150.4 101.3h48.2c70.3 0 150.6-13.4 150.6-101.3zm-82.6-55.1c-25.8 0-36.7 34.2-36.7 55.1s10.9 55.1 36.7 55.1 36.7-34.2 36.7-55.1-10.9-55.1-36.7-55.1z"},"maxcdn":{"viewBox":"0 0 512 512","path":"M461.1 442.7h-97.4L415.6 200c2.3-10.2.9-19.5-4.4-25.7-5-6.1-13.7-9.6-24.2-9.6h-49.3l-59.5 278h-97.4l59.5-278h-83.4l-59.5 278H0l59.5-278-44.6-95.4H387c39.4 0 75.3 16.3 98.3 44.9 23.3 28.6 31.8 67.4 23.6 105.9l-47.8 222.6z"},"html5":{"viewBox":"0 0 384 512","path":"M0 32l34.9 395.8L191.5 480l157.6-52.2L384 32H0zm308.2 127.9H124.4l4.1 49.4h175.6l-13.6 148.4-97.9 27v.3h-1.1l-98.7-27.3-6-75.8h47.7L138 320l53.5 14.5 53.7-14.5 6-62.2H84.3L71.5 112.2h241.1l-4.4 47.7z"},"css3":{"viewBox":"0 0 512 512","path":"M480 32l-64 368-223.3 80L0 400l19.6-94.8h82l-8 40.6L210 390.2l134.1-44.4 18.8-97.1H29.5l16-82h333.7l10.5-52.7H56.3l16.3-82H480z"},"btc":{"viewBox":"0 0 384 512","path":"M310.204 242.638c27.73-14.18 45.377-39.39 41.28-81.3-5.358-57.351-52.458-76.573-114.85-81.929V0h-48.528v77.203c-12.605 0-25.525.315-38.444.63V0h-48.528v79.409c-17.842.539-38.622.276-97.37 0v51.678c38.314-.678 58.417-3.14 63.023 21.427v217.429c-2.925 19.492-18.524 16.685-53.255 16.071L3.765 443.68c88.481 0 97.37.315 97.37.315V512h48.528v-67.06c13.234.315 26.154.315 38.444.315V512h48.528v-68.005c81.299-4.412 135.647-24.894 142.895-101.467 5.671-61.446-23.32-88.862-69.326-99.89zM150.608 134.553c27.415 0 113.126-8.507 113.126 48.528 0 54.515-85.71 48.212-113.126 48.212v-96.74zm0 251.776V279.821c32.772 0 133.127-9.138 133.127 53.255-.001 60.186-100.355 53.253-133.127 53.253z"},"youtube-square":{"viewBox":"0 0 448 512","path":"M186.8 202.1l95.2 54.1-95.2 54.1V202.1zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-42 176.3s0-59.6-7.6-88.2c-4.2-15.8-16.5-28.2-32.2-32.4C337.9 128 224 128 224 128s-113.9 0-142.2 7.7c-15.7 4.2-28 16.6-32.2 32.4-7.6 28.5-7.6 88.2-7.6 88.2s0 59.6 7.6 88.2c4.2 15.8 16.5 27.7 32.2 31.9C110.1 384 224 384 224 384s113.9 0 142.2-7.7c15.7-4.2 28-16.1 32.2-31.9 7.6-28.5 7.6-88.1 7.6-88.1z"},"youtube":{"viewBox":"0 0 576 512","path":"M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"},"xing":{"viewBox":"0 0 384 512","path":"M162.7 210c-1.8 3.3-25.2 44.4-70.1 123.5-4.9 8.3-10.8 12.5-17.7 12.5H9.8c-7.7 0-12.1-7.5-8.5-14.4l69-121.3c.2 0 .2-.1 0-.3l-43.9-75.6c-4.3-7.8.3-14.1 8.5-14.1H100c7.3 0 13.3 4.1 18 12.2l44.7 77.5zM382.6 46.1l-144 253v.3L330.2 466c3.9 7.1.2 14.1-8.5 14.1h-65.2c-7.6 0-13.6-4-18-12.2l-92.4-168.5c3.3-5.8 51.5-90.8 144.8-255.2 4.6-8.1 10.4-12.2 17.5-12.2h65.7c8 0 12.3 6.7 8.5 14.1z"},"xing-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM140.4 320.2H93.8c-5.5 0-8.7-5.3-6-10.3l49.3-86.7c.1 0 .1-.1 0-.2l-31.4-54c-3-5.6.2-10.1 6-10.1h46.6c5.2 0 9.5 2.9 12.9 8.7l31.9 55.3c-1.3 2.3-18 31.7-50.1 88.2-3.5 6.2-7.7 9.1-12.6 9.1zm219.7-214.1L257.3 286.8v.2l65.5 119c2.8 5.1.1 10.1-6 10.1h-46.6c-5.5 0-9.7-2.9-12.9-8.7l-66-120.3c2.3-4.1 36.8-64.9 103.4-182.3 3.3-5.8 7.4-8.7 12.5-8.7h46.9c5.7-.1 8.8 4.7 6 10z"},"dropbox":{"viewBox":"0 0 528 512","path":"M264.4 116.3l-132 84.3 132 84.3-132 84.3L0 284.1l132.3-84.3L0 116.3 132.3 32l132.1 84.3zM131.6 395.7l132-84.3 132 84.3-132 84.3-132-84.3zm132.8-111.6l132-84.3-132-83.6L395.7 32 528 116.3l-132.3 84.3L528 284.8l-132.3 84.3-131.3-85z"},"stack-overflow":{"viewBox":"0 0 384 512","path":"M293.7 300l-181.2-84.5 16.7-36.5 181.3 84.7-16.8 36.3zm48-76L188.2 95.7l-25.5 30.8 153.5 128.3 25.5-30.8zm39.6-31.7L262 32l-32 24 119.3 160.3 32-24zM290.7 311L95 269.7 86.8 309l195.7 41 8.2-39zm31.6 129H42.7V320h-40v160h359.5V320h-40v120zm-39.8-80h-200v39.7h200V360z"},"instagram":{"viewBox":"0 0 448 512","path":"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"},"flickr":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM144.5 319c-35.1 0-63.5-28.4-63.5-63.5s28.4-63.5 63.5-63.5 63.5 28.4 63.5 63.5-28.4 63.5-63.5 63.5zm159 0c-35.1 0-63.5-28.4-63.5-63.5s28.4-63.5 63.5-63.5 63.5 28.4 63.5 63.5-28.4 63.5-63.5 63.5z"},"adn":{"viewBox":"0 0 496 512","path":"M248 167.5l64.9 98.8H183.1l64.9-98.8zM496 256c0 136.9-111.1 248-248 248S0 392.9 0 256 111.1 8 248 8s248 111.1 248 248zm-99.8 82.7L248 115.5 99.8 338.7h30.4l33.6-51.7h168.6l33.6 51.7h30.2z"},"tumblr":{"viewBox":"0 0 320 512","path":"M309.8 480.3c-13.6 14.5-50 31.7-97.4 31.7-120.8 0-147-88.8-147-140.6v-144H17.9c-5.5 0-10-4.5-10-10v-68c0-7.2 4.5-13.6 11.3-16 62-21.8 81.5-76 84.3-117.1.8-11 6.5-16.3 16.1-16.3h70.9c5.5 0 10 4.5 10 10v115.2h83c5.5 0 10 4.4 10 9.9v81.7c0 5.5-4.5 10-10 10h-83.4V360c0 34.2 23.7 53.6 68 35.8 4.8-1.9 9-3.2 12.7-2.2 3.5.9 5.8 3.4 7.4 7.9l22 64.3c1.8 5 3.3 10.6-.4 14.5z"},"tumblr-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-82.3 364.2c-8.5 9.1-31.2 19.8-60.9 19.8-75.5 0-91.9-55.5-91.9-87.9v-90h-29.7c-3.4 0-6.2-2.8-6.2-6.2v-42.5c0-4.5 2.8-8.5 7.1-10 38.8-13.7 50.9-47.5 52.7-73.2.5-6.9 4.1-10.2 10-10.2h44.3c3.4 0 6.2 2.8 6.2 6.2v72h51.9c3.4 0 6.2 2.8 6.2 6.2v51.1c0 3.4-2.8 6.2-6.2 6.2h-52.1V321c0 21.4 14.8 33.5 42.5 22.4 3-1.2 5.6-2 8-1.4 2.2.5 3.6 2.1 4.6 4.9l13.8 40.2c1 3.2 2 6.7-.3 9.1z"},"apple":{"viewBox":"0 0 376 512","path":"M314.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C59.3 141.2 0 184.8 0 273.5c0 26.2 4.8 53.3 14.4 81.2 12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"},"windows":{"viewBox":"0 0 448 512","path":"M0 93.7l183.6-25.3v177.4H0V93.7zm0 324.6l183.6 25.3V268.4H0v149.9zm203.8 28L448 480V268.4H203.8v177.9zm0-380.6v180.1H448V32L203.8 65.7z"},"android":{"viewBox":"0 0 448 512","path":"M89.6 204.5v115.8c0 15.4-12.1 27.7-27.5 27.7-15.3 0-30.1-12.4-30.1-27.7V204.5c0-15.1 14.8-27.5 30.1-27.5 15.1 0 27.5 12.4 27.5 27.5zm10.8 157c0 16.4 13.2 29.6 29.6 29.6h19.9l.3 61.1c0 36.9 55.2 36.6 55.2 0v-61.1h37.2v61.1c0 36.7 55.5 36.8 55.5 0v-61.1h20.2c16.2 0 29.4-13.2 29.4-29.6V182.1H100.4v179.4zm248-189.1H99.3c0-42.8 25.6-80 63.6-99.4l-19.1-35.3c-2.8-4.9 4.3-8 6.7-3.8l19.4 35.6c34.9-15.5 75-14.7 108.3 0L297.5 34c2.5-4.3 9.5-1.1 6.7 3.8L285.1 73c37.7 19.4 63.3 56.6 63.3 99.4zm-170.7-55.5c0-5.7-4.6-10.5-10.5-10.5-5.7 0-10.2 4.8-10.2 10.5s4.6 10.5 10.2 10.5c5.9 0 10.5-4.8 10.5-10.5zm113.4 0c0-5.7-4.6-10.5-10.2-10.5-5.9 0-10.5 4.8-10.5 10.5s4.6 10.5 10.5 10.5c5.6 0 10.2-4.8 10.2-10.5zm94.8 60.1c-15.1 0-27.5 12.1-27.5 27.5v115.8c0 15.4 12.4 27.7 27.5 27.7 15.4 0 30.1-12.4 30.1-27.7V204.5c0-15.4-14.8-27.5-30.1-27.5z"},"linux":{"viewBox":"0 0 448 512","path":"M196.1 123.6c-.2-1.4 1.9-2.3 3.2-2.9 1.7-.7 3.9-1 5.5-.1.4.2.8.7.6 1.1-.4 1.2-2.4 1-3.5 1.6-1 .5-1.8 1.7-3 1.7-1 .1-2.7-.4-2.8-1.4zm24.7-.3c1 .5 1.8 1.7 3 1.7 1.1 0 2.8-.4 2.9-1.5.2-1.4-1.9-2.3-3.2-2.9-1.7-.7-3.9-1-5.5-.1-.4.2-.8.7-.6 1.1.3 1.3 2.3 1.1 3.4 1.7zm214.7 310.2c-.5 8.2-6.5 13.8-13.9 18.3-14.9 9-37.3 15.8-50.9 32.2l-2.6-2.2 2.6 2.2c-14.2 16.9-31.7 26.6-48.3 27.9-16.5 1.3-32-6.3-40.3-23v-.1c-1.1-2.1-1.9-4.4-2.5-6.7-21.5 1.2-40.2-5.3-55.1-4.1-22 1.2-35.8 6.5-48.3 6.6-4.8 10.6-14.3 17.6-25.9 20.2-16 3.7-36.1 0-55.9-10.4l1.6-3-1.6 3c-18.5-9.8-42-8.9-59.3-12.5-8.7-1.8-16.3-5-20.1-12.3-3.7-7.3-3-17.3 2.2-31.7 1.7-5.1.4-12.7-.8-20.8-.6-3.9-1.2-7.9-1.2-11.8 0-4.3.7-8.5 2.8-12.4 4.5-8.5 11.8-12.1 18.5-14.5 6.7-2.4 12.8-4 17-8.3 5.2-5.5 10.1-14.4 16.6-20.2-2.6-17.2.2-35.4 6.2-53.3 12.6-37.9 39.2-74.2 58.1-96.7 16.1-22.9 20.8-41.3 22.5-64.7C158 103.4 132.4-.2 234.8 0c80.9.1 76.3 85.4 75.8 131.3-.3 30.1 16.3 50.5 33.4 72 15.2 18 35.1 44.3 46.5 74.4 9.3 24.6 12.9 51.8 3.7 79.1 1.4.5 2.8 1.2 4.1 2 1.4.8 2.7 1.8 4 2.9 6.6 5.6 8.7 14.3 10.5 22.4 1.9 8.1 3.6 15.7 7.2 19.7 11.1 12.4 15.9 21.5 15.5 29.7zM220.8 109.1c3.6.9 8.9 2.4 13 4.4-2.1-12.2 4.5-23.5 11.8-23 8.9.3 13.9 15.5 9.1 27.3-.8 1.9-2.8 3.4-3.9 4.6 6.7 2.3 11 4.1 12.6 4.9 7.9-9.5 10.8-26.2 4.3-40.4-9.8-21.4-34.2-21.8-44 .4-3.2 7.2-3.9 14.9-2.9 21.8zm-46.2 18.8c7.8-5.7 6.9-4.7 5.9-5.5-8-6.9-6.6-27.4 1.8-28.1 6.3-.5 10.8 10.7 9.6 19.6 3.1-2.1 6.7-3.6 10.2-4.6 1.7-19.3-9-33.5-19.1-33.5-18.9 0-24 37.5-8.4 52.1zm-9.4 20.9c1.5 4.9 6.1 10.5 14.7 15.3 7.8 4.6 12 11.5 20 15 2.6 1.1 5.7 1.9 9.6 2.1 18.4 1.1 27.1-11.3 38.2-14.9 11.7-3.7 20.1-11 22.7-18.1 3.2-8.5-2.1-14.7-10.5-18.2-11.3-4.9-16.3-5.2-22.6-9.3-10.3-6.6-18.8-8.9-25.9-8.9-14.4 0-23.2 9.8-27.9 14.2-.5.5-7.9 5.9-14.1 10.5-4.2 3.3-5.6 7.4-4.2 12.3zm-33.5 252.8L112.1 366c-6.8-9.2-13.8-14.8-21.9-16-7.7-1.2-12.6 1.4-17.7 6.9-4.8 5.1-8.8 12.3-14.3 18-7.8 6.5-9.3 6.2-19.6 9.9-6.3 2.2-11.3 4.6-14.8 11.3-2.7 5-2.1 12.2-.9 20 1.2 7.9 3 16.3.6 23.9v.2c-5 13.7-5 21.7-2.6 26.4 7.9 15.4 46.6 6.1 76.5 21.9 31.4 16.4 72.6 17.1 75.3-18 2.1-20.5-31.5-49-41-68.9zm153.9 35.8c3.2-11 6.3-21.3 6.8-29 .8-15.2 1.6-28.7 4.4-39.9 3.1-12.6 9.3-23.1 21.4-27.3 2.3-21.1 18.7-21.1 38.3-12.5 18.9 8.5 26 16 22.8 26.1 1 0 2-.1 4.2 0 5.2-16.9-14.3-28-30.7-34.8 2.9-12 2.4-24.1-.4-35.7-6-25.3-22.6-47.8-35.2-59-2.3-.1-2.1 1.9 2.6 6.5 11.6 10.7 37.1 49.2 23.3 84.9-3.9-1-7.6-1.5-10.9-1.4-5.3-29.1-17.5-53.2-23.6-64.6-11.5-21.4-29.5-65.3-37.2-95.7-4.5 6.4-12.4 11.9-22.3 15-4.7 1.5-9.7 5.5-15.9 9-13.9 8-30 8.8-42.4-1.2-4.5-3.6-8-7.6-12.6-10.3-1.6-.9-5.1-3.3-6.2-4.1-2 37.8-27.3 85.3-39.3 112.7-8.3 19.7-13.2 40.8-13.8 61.5-21.8-29.1-5.9-66.3 2.6-82.4 9.5-17.6 11-22.5 8.7-20.8-8.6 14-22 36.3-27.2 59.2-2.7 11.9-3.2 24 .3 35.2 3.5 11.2 11.1 21.5 24.6 29.9 0 0 24.8 14.3 38.3 32.5 7.4 10 9.7 18.7 7.4 24.9-2.5 6.7-9.6 8.9-16.7 8.9 4.8 6 10.3 13 14.4 19.6 37.6 25.7 82.2 15.7 114.3-7.2zM415 408.5c-10-11.3-7.2-33.1-17.1-41.6-6.9-6-13.6-5.4-22.6-5.1-7.7 8.8-25.8 19.6-38.4 16.3-11.5-2.9-18-16.3-18.8-29.5-.3.2-.7.3-1 .5-7.1 3.9-11.1 10.8-13.7 21.1-2.5 10.2-3.4 23.5-4.2 38.7-.7 11.8-6.2 26.4-9.9 40.6-3.5 13.2-5.8 25.2-1.1 36.3 7.2 14.5 19.5 20.4 33.7 19.3 14.2-1.1 30.4-9.8 43.6-25.5 22-26.6 62.3-29.7 63.2-46.5.3-5.1-3.1-13-13.7-24.6zM173.3 148.7c2 1.9 4.7 4.5 8 7.1 6.6 5.2 15.8 10.6 27.3 10.6 11.6 0 22.5-5.9 31.8-10.8 4.9-2.6 10.9-7 14.8-10.4 3.9-3.4 5.9-6.3 3.1-6.6-2.8-.3-2.6 2.6-6 5.1-4.4 3.2-9.7 7.4-13.9 9.8-7.4 4.2-19.5 10.2-29.9 10.2-10.4 0-18.7-4.8-24.9-9.7-3.1-2.5-5.7-5-7.7-6.9-1.5-1.4-1.9-4.6-4.3-4.9-1.4-.1-1.8 3.7 1.7 6.5z"},"dribbble":{"viewBox":"0 0 512 512","path":"M256 8C119.252 8 8 119.252 8 256s111.252 248 248 248 248-111.252 248-248S392.748 8 256 8zm163.97 114.366c29.503 36.046 47.369 81.957 47.835 131.955-6.984-1.477-77.018-15.682-147.502-6.818-5.752-14.041-11.181-26.393-18.617-41.614 78.321-31.977 113.818-77.482 118.284-83.523zM396.421 97.87c-3.81 5.427-35.697 48.286-111.021 76.519-34.712-63.776-73.185-116.168-79.04-124.008 67.176-16.193 137.966 1.27 190.061 47.489zm-230.48-33.25c5.585 7.659 43.438 60.116 78.537 122.509-99.087 26.313-186.36 25.934-195.834 25.809C62.38 147.205 106.678 92.573 165.941 64.62zM44.17 256.323c0-2.166.043-4.322.108-6.473 9.268.19 111.92 1.513 217.706-30.146 6.064 11.868 11.857 23.915 17.174 35.949-76.599 21.575-146.194 83.527-180.531 142.306C64.794 360.405 44.17 310.73 44.17 256.323zm81.807 167.113c22.127-45.233 82.178-103.622 167.579-132.756 29.74 77.283 42.039 142.053 45.189 160.638-68.112 29.013-150.015 21.053-212.768-27.882zm248.38 8.489c-2.171-12.886-13.446-74.897-41.152-151.033 66.38-10.626 124.7 6.768 131.947 9.055-9.442 58.941-43.273 109.844-90.795 141.978z"},"skype":{"viewBox":"0 0 448 512","path":"M424.7 299.8c2.9-14 4.7-28.9 4.7-43.8 0-113.5-91.9-205.3-205.3-205.3-14.9 0-29.7 1.7-43.8 4.7C161.3 40.7 137.7 32 112 32 50.2 32 0 82.2 0 144c0 25.7 8.7 49.3 23.3 68.2-2.9 14-4.7 28.9-4.7 43.8 0 113.5 91.9 205.3 205.3 205.3 14.9 0 29.7-1.7 43.8-4.7 19 14.6 42.6 23.3 68.2 23.3 61.8 0 112-50.2 112-112 .1-25.6-8.6-49.2-23.2-68.1zm-194.6 91.5c-65.6 0-120.5-29.2-120.5-65 0-16 9-30.6 29.5-30.6 31.2 0 34.1 44.9 88.1 44.9 25.7 0 42.3-11.4 42.3-26.3 0-18.7-16-21.6-42-28-62.5-15.4-117.8-22-117.8-87.2 0-59.2 58.6-81.1 109.1-81.1 55.1 0 110.8 21.9 110.8 55.4 0 16.9-11.4 31.8-30.3 31.8-28.3 0-29.2-33.5-75-33.5-25.7 0-42 7-42 22.5 0 19.8 20.8 21.8 69.1 33 41.4 9.3 90.7 26.8 90.7 77.6 0 59.1-57.1 86.5-112 86.5z"},"foursquare":{"viewBox":"0 0 368 512","path":"M323.1 3H49.9C12.4 3 0 31.3 0 49.1v433.8c0 20.3 12.1 27.7 18.2 30.1 6.2 2.5 22.8 4.6 32.9-7.1C180 356.5 182.2 354 182.2 354c3.1-3.4 3.4-3.1 6.8-3.1h83.4c35.1 0 40.6-25.2 44.3-39.7l48.6-243C373.8 25.8 363.1 3 323.1 3zm-16.3 73.8l-11.4 59.7c-1.2 6.5-9.5 13.2-16.9 13.2H172.1c-12 0-20.6 8.3-20.6 20.3v13c0 12 8.6 20.6 20.6 20.6h90.4c8.3 0 16.6 9.2 14.8 18.2-1.8 8.9-10.5 53.8-11.4 58.8-.9 4.9-6.8 13.5-16.9 13.5h-73.5c-13.5 0-17.2 1.8-26.5 12.6 0 0-8.9 11.4-89.5 108.3-.9.9-1.8.6-1.8-.3V75.9c0-7.7 6.8-16.6 16.6-16.6h219c8.2 0 15.6 7.7 13.5 17.5z"},"trello":{"viewBox":"0 0 448 512","path":"M392 32H56C25.1 32 0 57.1 0 88v336c0 30.9 25.1 56 56 56h336c30.9 0 56-25.1 56-56V88c0-30.9-25.1-56-56-56zM194.9 371.4c0 14.8-12 26.9-26.9 26.9H85.1c-14.8 0-26.9-12-26.9-26.9V117.1c0-14.8 12-26.9 26.9-26.9H168c14.8 0 26.9 12 26.9 26.9v254.3zm194.9-112c0 14.8-12 26.9-26.9 26.9H280c-14.8 0-26.9-12-26.9-26.9V117.1c0-14.8 12-26.9 26.9-26.9h82.9c14.8 0 26.9 12 26.9 26.9v142.3z"},"gratipay":{"viewBox":"0 0 496 512","path":"M248 8C111.1 8 0 119.1 0 256s111.1 248 248 248 248-111.1 248-248S384.9 8 248 8zm114.6 226.4l-113 152.7-112.7-152.7c-8.7-11.9-19.1-50.4 13.6-72 28.1-18.1 54.6-4.2 68.5 11.9 15.9 17.9 46.6 16.9 61.7 0 13.9-16.1 40.4-30 68.1-11.9 32.9 21.6 22.6 60 13.8 72z"},"vk":{"viewBox":"0 0 576 512","path":"M545 117.7c3.7-12.5 0-21.7-17.8-21.7h-58.9c-15 0-21.9 7.9-25.6 16.7 0 0-30 73.1-72.4 120.5-13.7 13.7-20 18.1-27.5 18.1-3.7 0-9.4-4.4-9.4-16.9V117.7c0-15-4.2-21.7-16.6-21.7h-92.6c-9.4 0-15 7-15 13.5 0 14.2 21.2 17.5 23.4 57.5v86.8c0 19-3.4 22.5-10.9 22.5-20 0-68.6-73.4-97.4-157.4-5.8-16.3-11.5-22.9-26.6-22.9H38.8c-16.8 0-20.2 7.9-20.2 16.7 0 15.6 20 93.1 93.1 195.5C160.4 378.1 229 416 291.4 416c37.5 0 42.1-8.4 42.1-22.9 0-66.8-3.4-73.1 15.4-73.1 8.7 0 23.7 4.4 58.7 38.1 40 40 46.6 57.9 69 57.9h58.9c16.8 0 25.3-8.4 20.4-25-11.2-34.9-86.9-106.7-90.3-111.5-8.7-11.2-6.2-16.2 0-26.2.1-.1 72-101.3 79.4-135.6z"},"weibo":{"viewBox":"0 0 512 512","path":"M407 177.6c7.6-24-13.4-46.8-37.4-41.7-22 4.8-28.8-28.1-7.1-32.8 50.1-10.9 92.3 37.1 76.5 84.8-6.8 21.2-38.8 10.8-32-10.3zM214.8 446.7C108.5 446.7 0 395.3 0 310.4c0-44.3 28-95.4 76.3-143.7C176 67 279.5 65.8 249.9 161c-4 13.1 12.3 5.7 12.3 6 79.5-33.6 140.5-16.8 114 51.4-3.7 9.4 1.1 10.9 8.3 13.1 135.7 42.3 34.8 215.2-169.7 215.2zm143.7-146.3c-5.4-55.7-78.5-94-163.4-85.7-84.8 8.6-148.8 60.3-143.4 116s78.5 94 163.4 85.7c84.8-8.6 148.8-60.3 143.4-116zM347.9 35.1c-25.9 5.6-16.8 43.7 8.3 38.3 72.3-15.2 134.8 52.8 111.7 124-7.4 24.2 29.1 37 37.4 12 31.9-99.8-55.1-195.9-157.4-174.3zm-78.5 311c-17.1 38.8-66.8 60-109.1 46.3-40.8-13.1-58-53.4-40.3-89.7 17.7-35.4 63.1-55.4 103.4-45.1 42 10.8 63.1 50.2 46 88.5zm-86.3-30c-12.9-5.4-30 .3-38 12.9-8.3 12.9-4.3 28 8.6 34 13.1 6 30.8.3 39.1-12.9 8-13.1 3.7-28.3-9.7-34zm32.6-13.4c-5.1-1.7-11.4.6-14.3 5.4-2.9 5.1-1.4 10.6 3.7 12.9 5.1 2 11.7-.3 14.6-5.4 2.8-5.2 1.1-10.9-4-12.9z"},"renren":{"viewBox":"0 0 512 512","path":"M214 169.1c0 110.4-61 205.4-147.6 247.4C30 373.2 8 317.7 8 256.6 8 133.9 97.1 32.2 214 12.5v156.6zM255 504c-42.9 0-83.3-11-118.5-30.4C193.7 437.5 239.9 382.9 255 319c15.5 63.9 61.7 118.5 118.8 154.7C338.7 493 298.3 504 255 504zm190.6-87.5C359 374.5 298 279.6 298 169.1V12.5c116.9 19.7 206 121.4 206 244.1 0 61.1-22 116.6-58.4 159.9z"},"pagelines":{"viewBox":"0 0 384 512","path":"M384 312.7c-55.1 136.7-187.1 54-187.1 54-40.5 81.8-107.4 134.4-184.6 134.7-16.1 0-16.6-24.4 0-24.4 64.4-.3 120.5-42.7 157.2-110.1-41.1 15.9-118.6 27.9-161.6-82.2 109-44.9 159.1 11.2 178.3 45.5 9.9-24.4 17-50.9 21.6-79.7 0 0-139.7 21.9-149.5-98.1 119.1-47.9 152.6 76.7 152.6 76.7 1.6-16.7 3.3-52.6 3.3-53.4 0 0-106.3-73.7-38.1-165.2 124.6 43 61.4 162.4 61.4 162.4.5 1.6.5 23.8 0 33.4 0 0 45.2-89 136.4-57.5-4.2 134-141.9 106.4-141.9 106.4-4.4 27.4-11.2 53.4-20 77.5 0 0 83-91.8 172-20z"},"stack-exchange":{"viewBox":"0 0 448 512","path":"M17.7 332.3h412.7v22c0 37.7-29.3 68-65.3 68h-19L259.3 512v-89.7H83c-36 0-65.3-30.3-65.3-68v-22zm0-23.6h412.7v-85H17.7v85zm0-109.4h412.7v-85H17.7v85zM365 0H83C47 0 17.7 30.3 17.7 67.7V90h412.7V67.7C430.3 30.3 401 0 365 0z"},"vimeo-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-16.2 149.6c-1.4 31.1-23.2 73.8-65.3 127.9-43.5 56.5-80.3 84.8-110.4 84.8-18.7 0-34.4-17.2-47.3-51.6-25.2-92.3-35.9-146.4-56.7-146.4-2.4 0-10.8 5-25.1 15.1L64 192c36.9-32.4 72.1-68.4 94.1-70.4 24.9-2.4 40.2 14.6 46 51.1 20.5 129.6 29.6 149.2 66.8 90.5 13.4-21.2 20.6-37.2 21.5-48.3 3.4-32.8-25.6-30.6-45.2-22.2 15.7-51.5 45.8-76.5 90.1-75.1 32.9 1 48.4 22.4 46.5 64z"},"slack":{"viewBox":"0 0 448 512","path":"M244.2 217.5l19.3 57.7-59.8 20-19.3-57.7 59.8-20zm41.4 243.7C131.6 507.4 65 471.6 18.8 317.6S8.4 97 162.4 50.8C316.4 4.6 383 40.4 429.2 194.4c46.2 154 10.4 220.6-143.6 266.8zM366.2 265c-3.9-12.2-17.2-18.6-29.4-14.7l-29 9.7-19.3-57.7 29-9.7c12.2-3.9 18.6-17.2 14.7-29.4-3.9-12.2-17.2-18.6-29.4-14.7l-29 9.7-10-30.1c-3.9-12.2-17.2-18.6-29.4-14.7-12.2 3.9-18.6 17.2-14.7 29.4l10 30.1-59.8 20.1-10-30.1c-3.9-12.2-17.2-18.6-29.4-14.7-12.2 3.9-18.6 17.2-14.7 29.4l10 30.1-29 9.7c-12.2 3.9-18.6 17.2-14.7 29.4 3.2 9.3 12.2 15.4 21.5 15.8 4.3.6 7.7-1 36.9-10.7l19.3 57.7-29 9.7c-12.2 3.9-18.6 17.2-14.7 29.4 3.2 9.3 12.2 15.4 21.5 15.8 4.3.6 7.7-1 36.9-10.7l10 30.1c3.7 10.8 15.8 18.6 29.4 14.7 12.2-3.9 18.6-17.2 14.7-29.4l-10-30.1 59.8-20.1 10 30.1c3.7 10.8 15.8 18.6 29.4 14.7 12.2-3.9 18.6-17.2 14.7-29.4l-10-30.1 29-9.7c12.2-4.2 18.6-17.5 14.7-29.6z"},"wordpress":{"viewBox":"0 0 512 512","path":"M61.7 169.4l101.5 278C92.2 413 43.3 340.2 43.3 256c0-30.9 6.6-60.1 18.4-86.6zm337.9 75.9c0-26.3-9.4-44.5-17.5-58.7-10.8-17.5-20.9-32.4-20.9-49.9 0-19.6 14.8-37.8 35.7-37.8.9 0 1.8.1 2.8.2-37.9-34.7-88.3-55.9-143.7-55.9-74.3 0-139.7 38.1-177.8 95.9 5 .2 9.7.3 13.7.3 22.2 0 56.7-2.7 56.7-2.7 11.5-.7 12.8 16.2 1.4 17.5 0 0-11.5 1.3-24.3 2l77.5 230.4L249.8 247l-33.1-90.8c-11.5-.7-22.3-2-22.3-2-11.5-.7-10.1-18.2 1.3-17.5 0 0 35.1 2.7 56 2.7 22.2 0 56.7-2.7 56.7-2.7 11.5-.7 12.8 16.2 1.4 17.5 0 0-11.5 1.3-24.3 2l76.9 228.7 21.2-70.9c9-29.4 16-50.5 16-68.7zm-139.9 29.3l-63.8 185.5c19.1 5.6 39.2 8.7 60.1 8.7 24.8 0 48.5-4.3 70.6-12.1-.6-.9-1.1-1.9-1.5-2.9l-65.4-179.2zm183-120.7c.9 6.8 1.4 14 1.4 21.9 0 21.6-4 45.8-16.2 76.2l-65 187.9C426.2 403 468.7 334.5 468.7 256c0-37-9.4-71.8-26-102.1zM504 256c0 136.8-111.3 248-248 248C119.2 504 8 392.7 8 256 8 119.2 119.2 8 256 8c136.7 0 248 111.2 248 248zm-11.4 0c0-130.5-106.2-236.6-236.6-236.6C125.5 19.4 19.4 125.5 19.4 256S125.6 492.6 256 492.6c130.5 0 236.6-106.1 236.6-236.6z"},"openid":{"viewBox":"0 0 448 512","path":"M271.5 432l-68 32C88.5 453.7 0 392.5 0 318.2c0-71.5 82.5-131 191.7-144.3v43c-71.5 12.5-124 53-124 101.3 0 51 58.5 93.3 135.7 103v-340l68-33.2v384zM448 291l-131.3-28.5 36.8-20.7c-19.5-11.5-43.5-20-70-24.8v-43c46.2 5.5 87.7 19.5 120.3 39.3l35-19.8L448 291z"},"yahoo":{"viewBox":"0 0 448 512","path":"M252 292l4 220c-12.7-2.2-23.5-3.9-32.3-3.9-8.4 0-19.2 1.7-32.3 3.9l4-220C140.4 197.2 85 95.2 21.4 0c11.9 3.1 23 3.9 33.2 3.9 9 0 20.4-.8 34.1-3.9 40.9 72.2 82.1 138.7 135 225.5C261 163.9 314.8 81.4 358.6 0c11.1 2.9 22 3.9 32.9 3.9 11.5 0 23.2-1 35-3.9C392.1 47.9 294.9 216.9 252 292z"},"google":{"viewBox":"0 0 488 512","path":"M488 261.8C488 403.3 391.1 504 248 504 110.8 504 0 393.2 0 256S110.8 8 248 8c66.8 0 123 24.5 166.3 64.9l-67.5 64.9C258.5 52.6 94.3 116.6 94.3 256c0 86.5 69.1 156.6 153.7 156.6 98.2 0 135-70.4 140.8-106.9H248v-85.3h236.1c2.3 12.7 3.9 24.9 3.9 41.4z"},"reddit":{"viewBox":"0 0 512 512","path":"M201.5 305.5c-13.8 0-24.9-11.1-24.9-24.6 0-13.8 11.1-24.9 24.9-24.9 13.6 0 24.6 11.1 24.6 24.9 0 13.6-11.1 24.6-24.6 24.6zM504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zm-132.3-41.2c-9.4 0-17.7 3.9-23.8 10-22.4-15.5-52.6-25.5-86.1-26.6l17.4-78.3 55.4 12.5c0 13.6 11.1 24.6 24.6 24.6 13.8 0 24.9-11.3 24.9-24.9s-11.1-24.9-24.9-24.9c-9.7 0-18 5.8-22.1 13.8l-61.2-13.6c-3-.8-6.1 1.4-6.9 4.4l-19.1 86.4c-33.2 1.4-63.1 11.3-85.5 26.8-6.1-6.4-14.7-10.2-24.1-10.2-34.9 0-46.3 46.9-14.4 62.8-1.1 5-1.7 10.2-1.7 15.5 0 52.6 59.2 95.2 132 95.2 73.1 0 132.3-42.6 132.3-95.2 0-5.3-.6-10.8-1.9-15.8 31.3-16 19.8-62.5-14.9-62.5zM302.8 331c-18.2 18.2-76.1 17.9-93.6 0-2.2-2.2-6.1-2.2-8.3 0-2.5 2.5-2.5 6.4 0 8.6 22.8 22.8 87.3 22.8 110.2 0 2.5-2.2 2.5-6.1 0-8.6-2.2-2.2-6.1-2.2-8.3 0zm7.7-75c-13.6 0-24.6 11.1-24.6 24.9 0 13.6 11.1 24.6 24.6 24.6 13.8 0 24.9-11.1 24.9-24.6 0-13.8-11-24.9-24.9-24.9z"},"reddit-square":{"viewBox":"0 0 448 512","path":"M283.2 345.5c2.7 2.7 2.7 6.8 0 9.2-24.5 24.5-93.8 24.6-118.4 0-2.7-2.4-2.7-6.5 0-9.2 2.4-2.4 6.5-2.4 8.9 0 18.7 19.2 81 19.6 100.5 0 2.4-2.3 6.6-2.3 9 0zm-91.3-53.8c0-14.9-11.9-26.8-26.5-26.8-14.9 0-26.8 11.9-26.8 26.8 0 14.6 11.9 26.5 26.8 26.5 14.6 0 26.5-11.9 26.5-26.5zm90.7-26.8c-14.6 0-26.5 11.9-26.5 26.8 0 14.6 11.9 26.5 26.5 26.5 14.9 0 26.8-11.9 26.8-26.5 0-14.9-11.9-26.8-26.8-26.8zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-99.7 140.6c-10.1 0-19 4.2-25.6 10.7-24.1-16.7-56.5-27.4-92.5-28.6l18.7-84.2 59.5 13.4c0 14.6 11.9 26.5 26.5 26.5 14.9 0 26.8-12.2 26.8-26.8 0-14.6-11.9-26.8-26.8-26.8-10.4 0-19.3 6.2-23.8 14.9l-65.7-14.6c-3.3-.9-6.5 1.5-7.4 4.8l-20.5 92.8c-35.7 1.5-67.8 12.2-91.9 28.9-6.5-6.8-15.8-11-25.9-11-37.5 0-49.8 50.4-15.5 67.5-1.2 5.4-1.8 11-1.8 16.7 0 56.5 63.7 102.3 141.9 102.3 78.5 0 142.2-45.8 142.2-102.3 0-5.7-.6-11.6-2.1-17 33.6-17.2 21.2-67.2-16.1-67.2z"},"stumbleupon-circle":{"viewBox":"0 0 496 512","path":"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 177.5c-9.8 0-17.8 8-17.8 17.8v106.9c0 40.9-33.9 73.9-74.9 73.9-41.4 0-74.9-33.5-74.9-74.9v-46.5h57.3v45.8c0 10 8 17.8 17.8 17.8s17.8-7.9 17.8-17.8V200.1c0-40 34.2-72.1 74.7-72.1 40.7 0 74.7 32.3 74.7 72.6v23.7l-34.1 10.1-22.9-10.7v-20.6c.1-9.6-7.9-17.6-17.7-17.6zm167.6 123.6c0 41.4-33.5 74.9-74.9 74.9-41.2 0-74.9-33.2-74.9-74.2V263l22.9 10.7 34.1-10.1v47.1c0 9.8 8 17.6 17.8 17.6s17.8-7.9 17.8-17.6v-48h57.3c-.1 45.9-.1 46.4-.1 46.4z"},"stumbleupon":{"viewBox":"0 0 512 512","path":"M502.9 266v69.7c0 62.1-50.3 112.4-112.4 112.4-61.8 0-112.4-49.8-112.4-111.3v-70.2l34.3 16 51.1-15.2V338c0 14.7 12 26.5 26.7 26.5S417 352.7 417 338v-72h85.9zm-224.7-58.2l34.3 16 51.1-15.2V173c0-60.5-51.1-109-112.1-109-60.8 0-112.1 48.2-112.1 108.2v162.4c0 14.9-12 26.7-26.7 26.7S86 349.5 86 334.6V266H0v69.7C0 397.7 50.3 448 112.4 448c61.6 0 112.4-49.5 112.4-110.8V176.9c0-14.7 12-26.7 26.7-26.7s26.7 12 26.7 26.7v30.9z"},"delicious":{"viewBox":"0 0 448 512","path":"M446.5 68c-.4-1.5-.9-3-1.4-4.5-.9-2.5-2-4.8-3.3-7.1-1.4-2.4-3-4.8-4.7-6.9-2.1-2.5-4.4-4.8-6.9-6.8-1.1-.9-2.2-1.7-3.3-2.5-1.3-.9-2.6-1.7-4-2.4-1.8-1-3.6-1.8-5.5-2.5-1.7-.7-3.5-1.3-5.4-1.7-3.8-1-7.9-1.5-12-1.5H48C21.5 32 0 53.5 0 80v352c0 4.1.5 8.2 1.5 12 2 7.7 5.8 14.6 11 20.3 1 1.1 2.1 2.2 3.3 3.3 5.7 5.2 12.6 9 20.3 11 3.8 1 7.9 1.5 12 1.5h352c26.5 0 48-21.5 48-48V80c-.1-4.1-.6-8.2-1.6-12zM416 432c0 8.8-7.2 16-16 16H224V256H32V80c0-8.8 7.2-16 16-16h176v192h192v176z"},"digg":{"viewBox":"0 0 512 512","path":"M81.7 172.3H0v174.4h132.7V96h-51v76.3zm0 133.4H50.9v-92.3h30.8v92.3zm297.2-133.4v174.4h81.8v28.5h-81.8V416H512V172.3H378.9zm81.8 133.4h-30.8v-92.3h30.8v92.3zm-235.6 41h82.1v28.5h-82.1V416h133.3V172.3H225.1v174.4zm51.2-133.3h30.8v92.3h-30.8v-92.3zM153.3 96h51.3v51h-51.3V96zm0 76.3h51.3v174.4h-51.3V172.3z"},"pied-piper-pp":{"viewBox":"0 0 448 512","path":"M205.3 174.6c0 21.1-14.2 38.1-31.7 38.1-7.1 0-12.8-1.2-17.2-3.7v-68c4.4-2.7 10.1-4.2 17.2-4.2 17.5 0 31.7 16.9 31.7 37.8zm52.6 67c-7.1 0-12.8 1.5-17.2 4.2v68c4.4 2.5 10.1 3.7 17.2 3.7 17.4 0 31.7-16.9 31.7-37.8 0-21.1-14.3-38.1-31.7-38.1zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zM185 255.1c41 0 74.2-35.6 74.2-79.6 0-44-33.2-79.6-74.2-79.6-12 0-24.1 3.2-34.6 8.8h-45.7V311l51.8-10.1v-50.6c8.6 3.1 18.1 4.8 28.5 4.8zm158.4 25.3c0-44-33.2-79.6-73.9-79.6-3.2 0-6.4.2-9.6.7-3.7 12.5-10.1 23.8-19.2 33.4-13.8 15-32.2 23.8-51.8 24.8V416l51.8-10.1v-50.6c8.6 3.2 18.2 4.7 28.7 4.7 40.8 0 74-35.6 74-79.6z"},"pied-piper-alt":{"viewBox":"0 0 576 512","path":"M242 187c6.3-11.8 13.2-17 25.9-21.8 27.3-10.3 40.2-30.5 58.9-51.1 11.9 8.4 12 24.6 31.6 23v21.8l6.3.3c37.4-14.4 74.7-30.2 106.6-54.6 48.3-36.8 52.9-50 81.3-100l2-2.6c-.6 14.1-6.3 27.3-12.4 39.9-30.5 63.8-78.7 100.3-146.8 116.7-12.4 2.9-26.4 3.2-37.6 8.9 1.4 9.8 13.2 18.1 13.2 23 0 3.4-5.5 7.2-7.5 8.6-11.2-12.9-16.1-19.3-22.7-22.1-7.6-3.5-63.9-6.4-98.8 10zm137.9 256.9c-19 0-64.1 9.5-79.9 19.8l6.9 45.1c35.7 6.1 70.1 3.6 106-9.8-4.8-10-23.5-55.1-33-55.1zM244 246c-3.2-2-6.3-2.9-10.1-2.9-6.6 0-12.6 3.2-19.3 3.7l1.7 4.9L244 246zm-12.6 31.8l24.1 61.2 21-13.8-31.3-50.9-13.8 3.5zM555.5 0l-.6 1.1-.3.9.6-.6.3-1.4zm-59.2 382.1c-33.9-56.9-75.3-118.4-150-115.5l-.3-6c-1.1-13.5 32.8 3.2 35.1-31l-14.4 7.2c-19.8-45.7-8.6-54.3-65.5-54.3-14.7 0-26.7 1.7-41.4 4.6 2.9 18.6 2.2 36.7-10.9 50.3l19.5 5.5c-1.7 3.2-2.9 6.3-2.9 9.8 0 21 42.8 2.9 42.8 33.6 0 18.4-36.8 60.1-54.9 60.1-8 0-53.7-50-53.4-60.1l.3-4.6 52.3-11.5c13-2.6 12.3-22.7-2.9-22.7-3.7 0-43.1 9.2-49.4 10.6-2-5.2-7.5-14.1-13.8-14.1-3.2 0-6.3 3.2-9.5 4-9.2 2.6-31 2.9-21.5 20.1L15.9 298.5c-5.5 1.1-8.9 6.3-8.9 11.8 0 6 5.5 10.9 11.5 10.9 8 0 131.3-28.4 147.4-32.2 2.6 3.2 4.6 6.3 7.8 8.6 20.1 14.4 59.8 85.9 76.4 85.9 24.1 0 58-22.4 71.3-41.9 3.2-4.3 6.9-7.5 12.4-6.9.6 13.8-31.6 34.2-33 43.7-1.4 10.2-1 35.2-.3 41.1 26.7 8.1 52-3.6 77.9-2.9 4.3-21 10.6-41.9 9.8-63.5l-.3-9.5c-1.4-34.2-10.9-38.5-34.8-58.6-1.1-1.1-2.6-2.6-3.7-4 2.2-1.4 1.1-1 4.6-1.7 88.5 0 56.3 183.6 111.5 229.9 33.1-15 72.5-27.9 103.5-47.2-29-25.6-52.6-45.7-72.7-79.9zm-196.2 46v27.3l11.8-3.4-2.9-23.8h-8.9zm76.1 2.9c0-1.4-.6-3.2-.9-4.6-26.8 0-36.9 3.8-59.5 6.3l2 12.4c9-1.5 58.4-6.6 58.4-14.1z"},"drupal":{"viewBox":"0 0 448 512","path":"M319.5 114.7c-22.2-14-43.5-19.5-64.7-33.5-13-8.8-31.3-30-46.5-48.3-2.7 29.3-11.5 41.2-22 49.5-21.3 17-34.8 22.2-53.5 32.3C117 123 32 181.5 32 290.5 32 399.7 123.8 480 225.8 480 327.5 480 416 406 416 294c0-112.3-83-171-96.5-179.3zm2.5 325.6c-20.1 20.1-90.1 28.7-116.7 4.2-4.8-4.8.3-12 6.5-12 0 0 17 13.3 51.5 13.3 27 0 46-7.7 54.5-14 6.1-4.6 8.4 4.3 4.2 8.5zm-54.5-52.6c8.7-3.6 29-3.8 36.8 1.3 4.1 2.8 16.1 18.8 6.2 23.7-8.4 4.2-1.2-15.7-26.5-15.7-14.7 0-19.5 5.2-26.7 11-7 6-9.8 8-12.2 4.7-6-8.2 15.9-22.3 22.4-25zM360 405c-15.2-1-45.5-48.8-65-49.5-30.9-.9-104.1 80.7-161.3 42-38.8-26.6-14.6-104.8 51.8-105.2 49.5-.5 83.8 49 108.5 48.5 21.3-.3 61.8-41.8 81.8-41.8 48.7 0 23.3 109.3-15.8 106z"},"joomla":{"viewBox":"0 0 448 512","path":"M.6 92.1C.6 58.8 27.4 32 60.4 32c30 0 54.5 21.9 59.2 50.2 32.6-7.6 67.1.6 96.5 30l-44.3 44.3c-20.5-20.5-42.6-16.3-55.4-3.5-14.3 14.3-14.3 37.9 0 52.2l99.5 99.5-44 44.3c-87.7-87.2-49.7-49.7-99.8-99.7-26.8-26.5-35-64.8-24.8-98.9C20.4 144.6.6 120.7.6 92.1zm129.5 116.4l44.3 44.3c10-10 89.7-89.7 99.7-99.8 14.3-14.3 37.6-14.3 51.9 0 12.8 12.8 17 35-3.5 55.4l44 44.3c31.2-31.2 38.5-67.6 28.9-101.2 29.2-4.1 51.9-29.2 51.9-59.5 0-33.2-26.8-60.1-59.8-60.1-30.3 0-55.4 22.5-59.5 51.6-33.8-9.9-71.7-1.5-98.3 25.1-18.3 19.1-71.1 71.5-99.6 99.9zm266.3 152.2c8.2-32.7-.9-68.5-26.3-93.9-11.8-12.2 5 4.7-99.5-99.7l-44.3 44.3 99.7 99.7c14.3 14.3 14.3 37.6 0 51.9-12.8 12.8-35 17-55.4-3.5l-44 44.3c27.6 30.2 68 38.8 102.7 28 5.5 27.4 29.7 48.1 58.9 48.1 33 0 59.8-26.8 59.8-60.1 0-30.2-22.5-55-51.6-59.1zm-84.3-53.1l-44-44.3c-87 86.4-50.4 50.4-99.7 99.8-14.3 14.3-37.6 14.3-51.9 0-13.1-13.4-16.9-35.3 3.2-55.4l-44-44.3c-30.2 30.2-38 65.2-29.5 98.3-26.7 6-46.2 29.9-46.2 58.2C0 453.2 26.8 480 59.8 480c28.6 0 52.5-19.8 58.6-46.7 32.7 8.2 68.5-.6 94.2-26 32.1-32 12.2-12.4 99.5-99.7z"},"behance":{"viewBox":"0 0 576 512","path":"M232 237.2c31.8-15.2 48.4-38.2 48.4-74 0-70.6-52.6-87.8-113.3-87.8H0v354.4h171.8c64.4 0 124.9-30.9 124.9-102.9 0-44.5-21.1-77.4-64.7-89.7zM77.9 135.9H151c28.1 0 53.4 7.9 53.4 40.5 0 30.1-19.7 42.2-47.5 42.2h-79v-82.7zm83.3 233.7H77.9V272h84.9c34.3 0 56 14.3 56 50.6 0 35.8-25.9 47-57.6 47zm358.5-240.7H376V94h143.7v34.9zM576 305.2c0-75.9-44.4-139.2-124.9-139.2-78.2 0-131.3 58.8-131.3 135.8 0 79.9 50.3 134.7 131.3 134.7 61.3 0 101-27.6 120.1-86.3H509c-6.7 21.9-34.3 33.5-55.7 33.5-41.3 0-63-24.2-63-65.3h185.1c.3-4.2.6-8.7.6-13.2zM390.4 274c2.3-33.7 24.7-54.8 58.5-54.8 35.4 0 53.2 20.8 56.2 54.8H390.4z"},"behance-square":{"viewBox":"0 0 448 512","path":"M186.5 293c0 19.3-14 25.4-31.2 25.4h-45.1v-52.9h46c18.6.1 30.3 7.8 30.3 27.5zm-7.7-82.3c0-17.7-13.7-21.9-28.9-21.9h-39.6v44.8H153c15.1 0 25.8-6.6 25.8-22.9zm132.3 23.2c-18.3 0-30.5 11.4-31.7 29.7h62.2c-1.7-18.5-11.3-29.7-30.5-29.7zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zM271.7 185h77.8v-18.9h-77.8V185zm-43 110.3c0-24.1-11.4-44.9-35-51.6 17.2-8.2 26.2-17.7 26.2-37 0-38.2-28.5-47.5-61.4-47.5H68v192h93.1c34.9-.2 67.6-16.9 67.6-55.9zM380 280.5c0-41.1-24.1-75.4-67.6-75.4-42.4 0-71.1 31.8-71.1 73.6 0 43.3 27.3 73 71.1 73 33.2 0 54.7-14.9 65.1-46.8h-33.7c-3.7 11.9-18.6 18.1-30.2 18.1-22.4 0-34.1-13.1-34.1-35.3h100.2c.1-2.3.3-4.8.3-7.2z"},"steam":{"viewBox":"0 0 496 512","path":"M496 256c0 137-111.2 248-248.4 248-113.8 0-209.6-76.3-239-180.4l95.2 39.3c6.4 32.1 34.9 56.4 68.9 56.4 39.2 0 71.9-32.4 70.2-73.5l84.5-60.2c52.1 1.3 95.8-40.9 95.8-93.5 0-51.6-42-93.5-93.7-93.5s-93.7 42-93.7 93.5v1.2L176.6 279c-15.5-.9-30.7 3.4-43.5 12.1L0 236.1C10.2 108.4 117.1 8 247.6 8 384.8 8 496 119 496 256zM155.7 384.3l-30.5-12.6a52.79 52.79 0 0 0 27.2 25.8c26.9 11.2 57.8-1.6 69-28.4 5.4-13 5.5-27.3.1-40.3-5.4-13-15.5-23.2-28.5-28.6-12.9-5.4-26.7-5.2-38.9-.6l31.5 13c19.8 8.2 29.2 30.9 20.9 50.7-8.3 19.9-31 29.2-50.8 21zm173.8-129.9c-34.4 0-62.4-28-62.4-62.3s28-62.3 62.4-62.3 62.4 28 62.4 62.3-27.9 62.3-62.4 62.3zm.1-15.6c25.9 0 46.9-21 46.9-46.8 0-25.9-21-46.8-46.9-46.8s-46.9 21-46.9 46.8c.1 25.8 21.1 46.8 46.9 46.8z"},"steam-square":{"viewBox":"0 0 448 512","path":"M185.2 356.5c7.7-18.5-1-39.7-19.6-47.4l-29.5-12.2c11.4-4.3 24.3-4.5 36.4.5 12.2 5.1 21.6 14.6 26.7 26.7 5 12.2 5 25.6-.1 37.7-10.5 25.1-39.4 37-64.6 26.5-11.6-4.8-20.4-13.6-25.4-24.2l28.5 11.8c18.6 7.8 39.9-.9 47.6-19.4zM400 32H48C21.5 32 0 53.5 0 80v160.7l116.6 48.1c12-8.2 26.2-12.1 40.7-11.3l55.4-80.2v-1.1c0-48.2 39.3-87.5 87.6-87.5s87.6 39.3 87.6 87.5c0 49.2-40.9 88.7-89.6 87.5l-79 56.3c1.6 38.5-29.1 68.8-65.7 68.8-31.8 0-58.5-22.7-64.5-52.7L0 319.2V432c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-99.7 222.5c-32.2 0-58.4-26.1-58.4-58.3s26.2-58.3 58.4-58.3 58.4 26.2 58.4 58.3-26.2 58.3-58.4 58.3zm.1-14.6c24.2 0 43.9-19.6 43.9-43.8 0-24.2-19.6-43.8-43.9-43.8-24.2 0-43.9 19.6-43.9 43.8 0 24.2 19.7 43.8 43.9 43.8z"},"spotify":{"viewBox":"0 0 496 512","path":"M248 8C111.1 8 0 119.1 0 256s111.1 248 248 248 248-111.1 248-248S384.9 8 248 8zm100.7 364.9c-4.2 0-6.8-1.3-10.7-3.6-62.4-37.6-135-39.2-206.7-24.5-3.9 1-9 2.6-11.9 2.6-9.7 0-15.8-7.7-15.8-15.8 0-10.3 6.1-15.2 13.6-16.8 81.9-18.1 165.6-16.5 237 26.2 6.1 3.9 9.7 7.4 9.7 16.5s-7.1 15.4-15.2 15.4zm26.9-65.6c-5.2 0-8.7-2.3-12.3-4.2-62.5-37-155.7-51.9-238.6-29.4-4.8 1.3-7.4 2.6-11.9 2.6-10.7 0-19.4-8.7-19.4-19.4s5.2-17.8 15.5-20.7c27.8-7.8 56.2-13.6 97.8-13.6 64.9 0 127.6 16.1 177 45.5 8.1 4.8 11.3 11 11.3 19.7-.1 10.8-8.5 19.5-19.4 19.5zm31-76.2c-5.2 0-8.4-1.3-12.9-3.9-71.2-42.5-198.5-52.7-280.9-29.7-3.6 1-8.1 2.6-12.9 2.6-13.2 0-23.3-10.3-23.3-23.6 0-13.6 8.4-21.3 17.4-23.9 35.2-10.3 74.6-15.2 117.5-15.2 73 0 149.5 15.2 205.4 47.8 7.8 4.5 12.9 10.7 12.9 22.6 0 13.6-11 23.3-23.2 23.3z"},"deviantart":{"viewBox":"0 0 320 512","path":"M320 93.2l-98.2 179.1 7.4 9.5H320v127.7H159.1l-13.5 9.2-43.7 84c-.3 0-8.6 8.6-9.2 9.2H0v-93.2l93.2-179.4-7.4-9.2H0V102.5h156l13.5-9.2 43.7-84c.3 0 8.6-8.6 9.2-9.2H320v93.1z"},"soundcloud":{"viewBox":"0 0 640 512","path":"M111.4 256.3l5.8 65-5.8 68.3c-.3 2.5-2.2 4.4-4.4 4.4s-4.2-1.9-4.2-4.4l-5.6-68.3 5.6-65c0-2.2 1.9-4.2 4.2-4.2 2.2 0 4.1 2 4.4 4.2zm21.4-45.6c-2.8 0-4.7 2.2-5 5l-5 105.6 5 68.3c.3 2.8 2.2 5 5 5 2.5 0 4.7-2.2 4.7-5l5.8-68.3-5.8-105.6c0-2.8-2.2-5-4.7-5zm25.5-24.1c-3.1 0-5.3 2.2-5.6 5.3l-4.4 130 4.4 67.8c.3 3.1 2.5 5.3 5.6 5.3 2.8 0 5.3-2.2 5.3-5.3l5.3-67.8-5.3-130c0-3.1-2.5-5.3-5.3-5.3zM7.2 283.2c-1.4 0-2.2 1.1-2.5 2.5L0 321.3l4.7 35c.3 1.4 1.1 2.5 2.5 2.5s2.2-1.1 2.5-2.5l5.6-35-5.6-35.6c-.3-1.4-1.1-2.5-2.5-2.5zm23.6-21.9c-1.4 0-2.5 1.1-2.5 2.5l-6.4 57.5 6.4 56.1c0 1.7 1.1 2.8 2.5 2.8s2.5-1.1 2.8-2.5l7.2-56.4-7.2-57.5c-.3-1.4-1.4-2.5-2.8-2.5zm25.3-11.4c-1.7 0-3.1 1.4-3.3 3.3L47 321.3l5.8 65.8c.3 1.7 1.7 3.1 3.3 3.1 1.7 0 3.1-1.4 3.1-3.1l6.9-65.8-6.9-68.1c0-1.9-1.4-3.3-3.1-3.3zm25.3-2.2c-1.9 0-3.6 1.4-3.6 3.6l-5.8 70 5.8 67.8c0 2.2 1.7 3.6 3.6 3.6s3.6-1.4 3.9-3.6l6.4-67.8-6.4-70c-.3-2.2-2-3.6-3.9-3.6zm241.4-110.9c-1.1-.8-2.8-1.4-4.2-1.4-2.2 0-4.2.8-5.6 1.9-1.9 1.7-3.1 4.2-3.3 6.7v.8l-3.3 176.7 1.7 32.5 1.7 31.7c.3 4.7 4.2 8.6 8.9 8.6s8.6-3.9 8.6-8.6l3.9-64.2-3.9-177.5c-.4-3-2-5.8-4.5-7.2zm-26.7 15.3c-1.4-.8-2.8-1.4-4.4-1.4s-3.1.6-4.4 1.4c-2.2 1.4-3.6 3.9-3.6 6.7l-.3 1.7-2.8 160.8s0 .3 3.1 65.6v.3c0 1.7.6 3.3 1.7 4.7 1.7 1.9 3.9 3.1 6.4 3.1 2.2 0 4.2-1.1 5.6-2.5 1.7-1.4 2.5-3.3 2.5-5.6l.3-6.7 3.1-58.6-3.3-162.8c-.3-2.8-1.7-5.3-3.9-6.7zm-111.4 22.5c-3.1 0-5.8 2.8-5.8 6.1l-4.4 140.6 4.4 67.2c.3 3.3 2.8 5.8 5.8 5.8 3.3 0 5.8-2.5 6.1-5.8l5-67.2-5-140.6c-.2-3.3-2.7-6.1-6.1-6.1zm376.7 62.8c-10.8 0-21.1 2.2-30.6 6.1-6.4-70.8-65.8-126.4-138.3-126.4-17.8 0-35 3.3-50.3 9.4-6.1 2.2-7.8 4.4-7.8 9.2v249.7c0 5 3.9 8.6 8.6 9.2h218.3c43.3 0 78.6-35 78.6-78.3.1-43.6-35.2-78.9-78.5-78.9zm-296.7-60.3c-4.2 0-7.5 3.3-7.8 7.8l-3.3 136.7 3.3 65.6c.3 4.2 3.6 7.5 7.8 7.5 4.2 0 7.5-3.3 7.5-7.5l3.9-65.6-3.9-136.7c-.3-4.5-3.3-7.8-7.5-7.8zm-53.6-7.8c-3.3 0-6.4 3.1-6.4 6.7l-3.9 145.3 3.9 66.9c.3 3.6 3.1 6.4 6.4 6.4 3.6 0 6.4-2.8 6.7-6.4l4.4-66.9-4.4-145.3c-.3-3.6-3.1-6.7-6.7-6.7zm26.7 3.4c-3.9 0-6.9 3.1-6.9 6.9L227 321.3l3.9 66.4c.3 3.9 3.1 6.9 6.9 6.9s6.9-3.1 6.9-6.9l4.2-66.4-4.2-141.7c0-3.9-3-6.9-6.9-6.9z"},"vine":{"viewBox":"0 0 384 512","path":"M384 254.7v52.1c-18.4 4.2-36.9 6.1-52.1 6.1-36.9 77.4-103 143.8-125.1 156.2-14 7.9-27.1 8.4-42.7-.8C137 452 34.2 367.7 0 102.7h74.5C93.2 261.8 139 343.4 189.3 404.5c27.9-27.9 54.8-65.1 75.6-106.9-49.8-25.3-80.1-80.9-80.1-145.6 0-65.6 37.7-115.1 102.2-115.1 114.9 0 106.2 127.9 81.6 181.5 0 0-46.4 9.2-63.5-20.5 3.4-11.3 8.2-30.8 8.2-48.5 0-31.3-11.3-46.6-28.4-46.6-18.2 0-30.8 17.1-30.8 50 .1 79.2 59.4 118.7 129.9 101.9z"},"codepen":{"viewBox":"0 0 512 512","path":"M502.285 159.704l-234-156c-7.987-4.915-16.511-4.96-24.571 0l-234 156C3.714 163.703 0 170.847 0 177.989v155.999c0 7.143 3.714 14.286 9.715 18.286l234 156.022c7.987 4.915 16.511 4.96 24.571 0l234-156.022c6-3.999 9.715-11.143 9.715-18.286V177.989c-.001-7.142-3.715-14.286-9.716-18.285zM278 63.131l172.286 114.858-76.857 51.429L278 165.703V63.131zm-44 0v102.572l-95.429 63.715-76.857-51.429L234 63.131zM44 219.132l55.143 36.857L44 292.846v-73.714zm190 229.715L61.714 333.989l76.857-51.429L234 346.275v102.572zm22-140.858l-77.715-52 77.715-52 77.715 52-77.715 52zm22 140.858V346.275l95.429-63.715 76.857 51.429L278 448.847zm190-156.001l-55.143-36.857L468 219.132v73.714z"},"jsfiddle":{"viewBox":"0 0 576 512","path":"M510.634 237.462c-4.727-2.621-5.664-5.748-6.381-10.776-2.352-16.488-3.539-33.619-9.097-49.095-35.895-99.957-153.99-143.386-246.849-91.646-27.37 15.25-48.971 36.369-65.493 63.903-3.184-1.508-5.458-2.71-7.824-3.686-30.102-12.421-59.049-10.121-85.331 9.167-25.531 18.737-36.422 44.548-32.676 76.408.355 3.025-1.967 7.621-4.514 9.545-39.712 29.992-56.031 78.065-41.902 124.615 13.831 45.569 57.514 79.796 105.608 81.433 30.291 1.031 60.637.546 90.959.539 84.041-.021 168.09.531 252.12-.48 52.664-.634 96.108-36.873 108.212-87.293 11.54-48.074-11.144-97.3-56.832-122.634zm21.107 156.88c-18.23 22.432-42.343 35.253-71.28 35.65-56.874.781-113.767.23-170.652.23 0 .7-163.028.159-163.728.154-43.861-.332-76.739-19.766-95.175-59.995-18.902-41.245-4.004-90.848 34.186-116.106 9.182-6.073 12.505-11.566 10.096-23.136-5.49-26.361 4.453-47.956 26.42-62.981 22.987-15.723 47.422-16.146 72.034-3.083 10.269 5.45 14.607 11.564 22.198-2.527 14.222-26.399 34.557-46.727 60.671-61.294 97.46-54.366 228.37 7.568 230.24 132.697.122 8.15 2.412 12.428 9.848 15.894 57.56 26.829 74.456 96.122 35.142 144.497zm-87.789-80.499c-5.848 31.157-34.622 55.096-66.666 55.095-16.953-.001-32.058-6.545-44.079-17.705-27.697-25.713-71.141-74.98-95.937-93.387-20.056-14.888-41.99-12.333-60.272 3.782-49.996 44.071 15.859 121.775 67.063 77.188 4.548-3.96 7.84-9.543 12.744-12.844 8.184-5.509 20.766-.884 13.168 10.622-17.358 26.284-49.33 38.197-78.863 29.301-28.897-8.704-48.84-35.968-48.626-70.179 1.225-22.485 12.364-43.06 35.414-55.965 22.575-12.638 46.369-13.146 66.991 2.474C295.68 280.7 320.467 323.97 352.185 343.47c24.558 15.099 54.254 7.363 68.823-17.506 28.83-49.209-34.592-105.016-78.868-63.46-3.989 3.744-6.917 8.932-11.41 11.72-10.975 6.811-17.333-4.113-12.809-10.353 20.703-28.554 50.464-40.44 83.271-28.214 31.429 11.714 49.108 44.366 42.76 78.186z"},"rebel":{"viewBox":"0 0 512 512","path":"M256.5 504C117.2 504 9 387.8 13.2 249.9 16 170.7 56.4 97.7 129.7 49.5c.3 0 1.9-.6 1.1.8-5.8 5.5-111.3 129.8-14.1 226.4 49.8 49.5 90 2.5 90 2.5 38.5-50.1-.6-125.9-.6-125.9-10-24.9-45.7-40.1-45.7-40.1l28.8-31.8c24.4 10.5 43.2 38.7 43.2 38.7.8-29.6-21.9-61.4-21.9-61.4L255.1 8l44.3 50.1c-20.5 28.8-21.9 62.6-21.9 62.6 13.8-23 43.5-39.3 43.5-39.3l28.5 31.8c-27.4 8.9-45.4 39.9-45.4 39.9-15.8 28.5-27.1 89.4.6 127.3 32.4 44.6 87.7-2.8 87.7-2.8 102.7-91.9-10.5-225-10.5-225-6.1-5.5.8-2.8.8-2.8 50.1 36.5 114.6 84.4 116.2 204.8C500.9 400.2 399 504 256.5 504z"},"empire":{"viewBox":"0 0 496 512","path":"M287.6 54.2c-10.8-2.2-22.1-3.3-33.5-3.6V32.4c78.1 2.2 146.1 44 184.6 106.6l-15.8 9.1c-6.1-9.7-12.7-18.8-20.2-27.1l-18 15.5c-26-29.6-61.4-50.7-101.9-58.4l4.8-23.9zM53.4 322.4l23-7.7c-6.4-18.3-10-38.2-10-58.7s3.3-40.4 9.7-58.7l-22.7-7.7c3.6-10.8 8.3-21.3 13.6-31l-15.8-9.1C34 181 24.1 217.5 24.1 256s10 75 27.1 106.6l15.8-9.1c-5.3-10-9.7-20.3-13.6-31.1zM213.1 434c-40.4-8-75.8-29.1-101.9-58.7l-18 15.8c-7.5-8.6-14.4-17.7-20.2-27.4l-16 9.4c38.5 62.3 106.8 104.3 184.9 106.6v-18.3c-11.3-.3-22.7-1.7-33.5-3.6l4.7-23.8zM93.3 120.9l18 15.5c26-29.6 61.4-50.7 101.9-58.4l-4.7-23.8c10.8-2.2 22.1-3.3 33.5-3.6V32.4C163.9 34.6 95.9 76.4 57.4 139l15.8 9.1c6-9.7 12.6-18.9 20.1-27.2zm309.4 270.2l-18-15.8c-26 29.6-61.4 50.7-101.9 58.7l4.7 23.8c-10.8 1.9-22.1 3.3-33.5 3.6v18.3c78.1-2.2 146.4-44.3 184.9-106.6l-16.1-9.4c-5.7 9.7-12.6 18.8-20.1 27.4zM496 256c0 137-111 248-248 248S0 393 0 256 111 8 248 8s248 111 248 248zm-12.2 0c0-130.1-105.7-235.8-235.8-235.8S12.2 125.9 12.2 256 117.9 491.8 248 491.8 483.8 386.1 483.8 256zm-39-106.6l-15.8 9.1c5.3 9.7 10 20.2 13.6 31l-22.7 7.7c6.4 18.3 9.7 38.2 9.7 58.7s-3.6 40.4-10 58.7l23 7.7c-3.9 10.8-8.3 21-13.6 31l15.8 9.1C462 331 471.9 294.5 471.9 256s-9.9-75-27.1-106.6zm-183 177.7c16.3-3.3 30.4-11.6 40.7-23.5l51.2 44.8c11.9-13.6 21.3-29.3 27.1-46.8l-64.2-22.1c2.5-7.5 3.9-15.2 3.9-23.5s-1.4-16.1-3.9-23.5l64.5-22.1c-6.1-17.4-15.5-33.2-27.4-46.8l-51.2 44.8c-10.2-11.9-24.4-20.5-40.7-23.8l13.3-66.4c-8.6-1.9-17.7-2.8-27.1-2.8-9.4 0-18.5.8-27.1 2.8l13.3 66.4c-16.3 3.3-30.4 11.9-40.7 23.8l-51.2-44.8c-11.9 13.6-21.3 29.3-27.4 46.8l64.5 22.1c-2.5 7.5-3.9 15.2-3.9 23.5s1.4 16.1 3.9 23.5l-64.2 22.1c5.8 17.4 15.2 33.2 27.1 46.8l51.2-44.8c10.2 11.9 24.4 20.2 40.7 23.5l-13.3 66.7c8.6 1.7 17.7 2.8 27.1 2.8 9.4 0 18.5-1.1 27.1-2.8l-13.3-66.7z"},"git-square":{"viewBox":"0 0 448 512","path":"M140.1 348.5c12.1 0 29.5 2.1 29.5 17.9 0 15.5-13.9 18.8-27 18.8-12.3 0-30.9-2-30.9-18s15.7-18.7 28.4-18.7zm-24.7-116.6c0 14.8 6.6 24.1 22.3 24.1 15.5 0 21.2-10 21.2-24.5.1-34.4-43.5-34.8-43.5.4zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-241 93.7c-12.3 4.8-25.5 8.4-38.9 8.4-38.5-22.1-90.7.9-90.7 49.5 0 18 11.6 42.9 29.6 48.9v.7c-13.4 5.9-17.1 36.1.7 47v.7c-19.5 6.4-32.3 18.8-32.3 40.2 0 36.8 34.8 47 65.4 47 37.1 0 64.8-13.4 64.8-54.3 0-50.4-72.1-31.8-72.1-59.1 0-9.6 5.2-13.4 14.1-15.2 29.6-5.5 48.2-28.6 48.2-58.7 0-5.2-1.1-10.2-2.9-15 4.8-1.1 9.5-2.3 14.1-3.9v-36.2zm56.8 1.8h-39.6c1.3 10.6 1.1 142.6 0 155.5h39.6c-1.1-12.8-1.2-145.1 0-155.5zm4.5-53.3c0-13.4-10-26.2-24.1-26.2-14.3 0-24.6 12.5-24.6 26.2 0 13.6 10.5 25.9 24.6 25.9 13.7 0 24.1-12.5 24.1-25.9zm104.3 53.3h-36.4c0-9.8-.4-19.6 1.1-29.5h-40.5c1.3 7.3 1.1 13.6 1.1 29.5h-17.1v33.9c11.9-1.9 12.1-.7 17.1-.7v.7h-.4v62.7c0 31.1 4.5 61.2 42.7 61.2 10.7 0 23-1.8 32.5-7v-35c-5.7 3.9-13.9 5.9-20.9 5.9-13.2 0-15.5-12.9-15.5-23.4v-65.2c22.7 0 36.4.7 36.4.7v-33.8z"},"git":{"viewBox":"0 0 448 512","path":"M18.8 221.7c0 25.3 16.2 60 41.5 68.5v1c-18.8 8.3-24 50.6 1 65.8v1C34 367 16 384.3 16 414.2c0 51.5 48.8 65.8 91.5 65.8 52 0 90.7-18.7 90.7-76 0-70.5-101-44.5-101-82.8 0-13.5 7.2-18.7 19.7-21.3 41.5-7.7 67.5-40 67.5-82.2 0-7.3-1.5-14.2-4-21 6.7-1.5 13.2-3.3 19.7-5.5v-50.5c-17.2 6.8-35.7 11.8-54.5 11.8-53.8-31-126.8 1.3-126.8 69.2zm87.7 163.8c17 0 41.2 3 41.2 25 0 21.8-19.5 26.3-37.7 26.3-17.3 0-43.3-2.7-43.3-25.2.1-22.3 22.1-26.1 39.8-26.1zM103.3 256c-22 0-31.3-13-31.3-33.8 0-49.3 61-48.8 61-.5 0 20.3-8 34.3-29.7 34.3zM432 305.5v49c-13.3 7.3-30.5 9.8-45.5 9.8-53.5 0-59.8-42.2-59.8-85.7v-87.7h.5v-1c-7 0-7.3-1.6-24 1v-47.5h24c0-22.3.3-31-1.5-41.2h56.7c-2 13.8-1.5 27.5-1.5 41.2h51v47.5s-19.3-1-51-1V281c0 14.8 3.3 32.8 21.8 32.8 9.8 0 21.3-2.8 29.3-8.3zM286 68.7c0 18.7-14.5 36.2-33.8 36.2-19.8 0-34.5-17.2-34.5-36.2 0-19.3 14.5-36.7 34.5-36.7C272 32 286 50 286 68.7zm-6.2 74.5c-1.8 14.6-1.6 199.8 0 217.8h-55.5c1.6-18.1 1.8-203 0-217.8h55.5z"},"hacker-news":{"viewBox":"0 0 448 512","path":"M0 32v448h448V32H0zm21.2 197.2H21c.1-.1.2-.3.3-.4 0 .1 0 .3-.1.4zm218 53.9V384h-31.4V281.3L128 128h37.3c52.5 98.3 49.2 101.2 59.3 125.6 12.3-27 5.8-24.4 60.6-125.6H320l-80.8 155.1z"},"tencent-weibo":{"viewBox":"0 0 384 512","path":"M72.3 495.8c1.4 19.9-27.6 22.2-29.7 2.9C31 368.8 73.7 259.2 144 185.5c-15.6-34 9.2-77.1 50.6-77.1 30.3 0 55.1 24.6 55.1 55.1 0 44-49.5 70.8-86.9 45.1-65.7 71.3-101.4 169.8-90.5 287.2zM192 .1C66.1.1-12.3 134.3 43.7 242.4 52.4 259.8 79 246.9 70 229 23.7 136.4 91 29.8 192 29.8c75.4 0 136.9 61.4 136.9 136.9 0 90.8-86.9 153.9-167.7 133.1-19.1-4.1-25.6 24.4-6.6 29.1 110.7 23.2 204-60 204-162.3C358.6 74.7 284 .1 192 .1z"},"qq":{"viewBox":"0 0 448 512","path":"M433.754 420.445c-11.526 1.393-44.86-52.741-44.86-52.741 0 31.345-16.136 72.247-51.051 101.786 16.842 5.192 54.843 19.167 45.803 34.421-7.316 12.343-125.51 7.881-159.632 4.037-34.122 3.844-152.316 8.306-159.632-4.037-9.045-15.25 28.918-29.214 45.783-34.415-34.92-29.539-51.059-70.445-51.059-101.792 0 0-33.334 54.134-44.859 52.741-5.37-.65-12.424-29.644 9.347-99.704 10.261-33.024 21.995-60.478 40.144-105.779C60.683 98.063 108.982.006 224 0c113.737.006 163.156 96.133 160.264 214.963 18.118 45.223 29.912 72.85 40.144 105.778 21.768 70.06 14.716 99.053 9.346 99.704z"},"weixin":{"viewBox":"0 0 576 512","path":"M385.2 167.6c6.4 0 12.6.3 18.8 1.1C387.4 90.3 303.3 32 207.7 32 100.5 32 13 104.8 13 197.4c0 53.4 29.3 97.5 77.9 131.6l-19.3 58.6 68-34.1c24.4 4.8 43.8 9.7 68.2 9.7 6.2 0 12.1-.3 18.3-.8-4-12.9-6.2-26.6-6.2-40.8-.1-84.9 72.9-154 165.3-154zm-104.5-52.9c14.5 0 24.2 9.7 24.2 24.4 0 14.5-9.7 24.2-24.2 24.2-14.8 0-29.3-9.7-29.3-24.2.1-14.7 14.6-24.4 29.3-24.4zm-136.4 48.6c-14.5 0-29.3-9.7-29.3-24.2 0-14.8 14.8-24.4 29.3-24.4 14.8 0 24.4 9.7 24.4 24.4 0 14.6-9.6 24.2-24.4 24.2zM563 319.4c0-77.9-77.9-141.3-165.4-141.3-92.7 0-165.4 63.4-165.4 141.3S305 460.7 397.6 460.7c19.3 0 38.9-5.1 58.6-9.9l53.4 29.3-14.8-48.6C534 402.1 563 363.2 563 319.4zm-219.1-24.5c-9.7 0-19.3-9.7-19.3-19.6 0-9.7 9.7-19.3 19.3-19.3 14.8 0 24.4 9.7 24.4 19.3 0 10-9.7 19.6-24.4 19.6zm107.1 0c-9.7 0-19.3-9.7-19.3-19.6 0-9.7 9.7-19.3 19.3-19.3 14.5 0 24.4 9.7 24.4 19.3.1 10-9.9 19.6-24.4 19.6z"},"slideshare":{"viewBox":"0 0 512 512","path":"M249.429 211.436c0 31.716-27.715 57.717-61.717 57.717-34.001 0-61.716-26.001-61.716-57.717 0-32.001 27.715-57.716 61.716-57.716 34.001 0 61.717 25.715 61.717 57.716zm254.294 50.002c-18.286 22.573-53.144 50.288-106.289 72.003C453.722 525.163 260 555.735 263.143 457.446c0 1.714-.286-52.859-.286-93.432-4.285-.858-8.571-2-13.714-3.143 0 40.858-.286 98.289-.286 96.575C252 555.735 58.278 525.163 114.566 333.441c-53.145-21.715-88.003-49.43-106.29-72.003-9.143-13.714.858-28.287 16.001-17.715 2 1.428 4.285 2.857 6.285 4.285V49.716C30.563 22.287 51.135 0 76.565 0h359.157c25.429 0 46.002 22.287 46.002 49.716v198.293l6-4.285c15.143-10.573 25.143 4 15.999 17.714zm-46.572-189.15c0-32.858-10.572-45.716-40.859-45.716H98.566c-31.716 0-40.573 10.858-40.573 45.716v192.293c67.717 35.43 125.72 29.144 157.435 28.001 13.429-.286 22.001 2.286 27.144 7.715 1.689 1.687 10.023 9.446 20.287 17.143 1.143-15.715 10.001-25.715 33.716-24.858 32.287 1.428 91.718 7.715 160.577-29.716V72.288zM331.146 153.72c-34.002 0-61.716 25.715-61.716 57.716 0 31.716 27.715 57.717 61.716 57.717 34.287 0 61.716-26.001 61.716-57.717 0-32.001-27.429-57.716-61.716-57.716z"},"twitch":{"viewBox":"0 0 448 512","path":"M40.1 32L10 108.9v314.3h107V480h60.2l56.8-56.8h87l117-117V32H40.1zm357.8 254.1L331 353H224l-56.8 56.8V353H76.9V72.1h321v214zM331 149v116.9h-40.1V149H331zm-107 0v116.9h-40.1V149H224z"},"yelp":{"viewBox":"0 0 384 512","path":"M136.9 328c-1 .3-109.2 35.7-115.8 35.7-15.2-.9-18.5-16.2-19.9-31.2-1.5-14.2-1.4-29.8.3-46.8 1.9-18.8 5.5-45.1 24.2-44 4.8 0 67.1 25.9 112.7 44.4 17.1 6.8 18.6 35.8-1.5 41.9zm57.9-113.9c1.8 38.2-25.5 48.5-47.2 14.3L41.3 60.4c-1.5-6.6.3-12.4 5.3-17.4C62.2 26.5 146 3.2 168.1 8.9c7.5 1.9 12.1 6.1 13.8 12.6 1.3 8.3 11.5 167.4 12.9 192.6zm-1.4 164.8c0 4.6.2 116.4-1.7 121.5-2.3 6-7 9.7-14.3 11.2-10.1 1.7-27.1-1.9-51-10.7-22-8.1-56.7-21.5-49.3-42.5 2.8-6.9 51.4-62.8 77.3-93.6 12-15.2 39.8-5.5 39 14.1zm180.2-117.8c-5.6 3.7-110.8 28.2-118.1 30.6l.3-.6c-18.1 4.7-35.4-18.5-23.3-34.6 3.7-3.7 65.9-92.4 72.8-97 5.2-3.6 11.3-3.8 18.3-.6 18.4 8.8 55.1 63.1 57.4 84.6-.1 2.9 1.2 11.7-7.4 17.6zm10.1 130.7c-2.7 20.6-44.5 73.4-63.8 81-6.9 2.6-12.9 2-17.7-2-5-3.5-61.8-97.1-64.9-102.3-10.9-16.2 6.8-39.8 25.6-33.2 0 0 110.5 35.7 114.7 39.4 5.2 4.1 7.2 9.8 6.1 17.1z"},"paypal":{"viewBox":"0 0 384 512","path":"M111.4 295.9c-3.5 19.2-17.4 108.7-21.5 134-.3 1.8-1 2.5-3 2.5H12.3c-7.6 0-13.1-6.6-12.1-13.9L58.8 46.6c1.5-9.6 10.1-16.9 20-16.9 152.3 0 165.1-3.7 204 11.4 60.1 23.3 65.6 79.5 44 140.3-21.5 62.6-72.5 89.5-140.1 90.3-43.4.7-69.5-7-75.3 24.2zM357.1 152c-1.8-1.3-2.5-1.8-3 1.3-2 11.4-5.1 22.5-8.8 33.6-39.9 113.8-150.5 103.9-204.5 103.9-6.1 0-10.1 3.3-10.9 9.4-22.6 140.4-27.1 169.7-27.1 169.7-1 7.1 3.5 12.9 10.6 12.9h63.5c8.6 0 15.7-6.3 17.4-14.9.7-5.4-1.1 6.1 14.4-91.3 4.6-22 14.3-19.7 29.3-19.7 71 0 126.4-28.8 142.9-112.3 6.5-34.8 4.6-71.4-23.8-92.6z"},"google-wallet":{"viewBox":"0 0 448 512","path":"M156.8 126.8c37.6 60.6 64.2 113.1 84.3 162.5-8.3 33.8-18.8 66.5-31.3 98.3-13.2-52.3-26.5-101.3-56-148.5 6.5-36.4 2.3-73.6 3-112.3zM109.3 200H16.1c-6.5 0-10.5 7.5-6.5 12.7C51.8 267 81.3 330.5 101.3 400h103.5c-16.2-69.7-38.7-133.7-82.5-193.5-3-4-8-6.5-13-6.5zm47.8-88c68.5 108 130 234.5 138.2 368H409c-12-138-68.4-265-143.2-368H157.1zm251.8-68.5c-1.8-6.8-8.2-11.5-15.2-11.5h-88.3c-5.3 0-9 5-7.8 10.3 13.2 46.5 22.3 95.5 26.5 146 48.2 86.2 79.7 178.3 90.6 270.8 15.8-60.5 25.3-133.5 25.3-203 0-73.6-12.1-145.1-31.1-212.6z"},"cc-visa":{"viewBox":"0 0 576 512","path":"M470.1 231.3s7.6 37.2 9.3 45H446c3.3-8.9 16-43.5 16-43.5-.2.3 3.3-9.1 5.3-14.9l2.8 13.4zM576 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48zM152.5 331.2L215.7 176h-42.5l-39.3 106-4.3-21.5-14-71.4c-2.3-9.9-9.4-12.7-18.2-13.1H32.7l-.7 3.1c15.8 4 29.9 9.8 42.2 17.1l35.8 135h42.5zm94.4.2L272.1 176h-40.2l-25.1 155.4h40.1zm139.9-50.8c.2-17.7-10.6-31.2-33.7-42.3-14.1-7.1-22.7-11.9-22.7-19.2.2-6.6 7.3-13.4 23.1-13.4 13.1-.3 22.7 2.8 29.9 5.9l3.6 1.7 5.5-33.6c-7.9-3.1-20.5-6.6-36-6.6-39.7 0-67.6 21.2-67.8 51.4-.3 22.3 20 34.7 35.2 42.2 15.5 7.6 20.8 12.6 20.8 19.3-.2 10.4-12.6 15.2-24.1 15.2-16 0-24.6-2.5-37.7-8.3l-5.3-2.5-5.6 34.9c9.4 4.3 26.8 8.1 44.8 8.3 42.2.1 69.7-20.8 70-53zM528 331.4L495.6 176h-31.1c-9.6 0-16.9 2.8-21 12.9l-59.7 142.5H426s6.9-19.2 8.4-23.3H486c1.2 5.5 4.8 23.3 4.8 23.3H528z"},"cc-mastercard":{"viewBox":"0 0 576 512","path":"M482.9 410.3c0 6.8-4.6 11.7-11.2 11.7-6.8 0-11.2-5.2-11.2-11.7 0-6.5 4.4-11.7 11.2-11.7 6.6 0 11.2 5.2 11.2 11.7zm-310.8-11.7c-7.1 0-11.2 5.2-11.2 11.7 0 6.5 4.1 11.7 11.2 11.7 6.5 0 10.9-4.9 10.9-11.7-.1-6.5-4.4-11.7-10.9-11.7zm117.5-.3c-5.4 0-8.7 3.5-9.5 8.7h19.1c-.9-5.7-4.4-8.7-9.6-8.7zm107.8.3c-6.8 0-10.9 5.2-10.9 11.7 0 6.5 4.1 11.7 10.9 11.7 6.8 0 11.2-4.9 11.2-11.7 0-6.5-4.4-11.7-11.2-11.7zm105.9 26.1c0 .3.3.5.3 1.1 0 .3-.3.5-.3 1.1-.3.3-.3.5-.5.8-.3.3-.5.5-1.1.5-.3.3-.5.3-1.1.3-.3 0-.5 0-1.1-.3-.3 0-.5-.3-.8-.5-.3-.3-.5-.5-.5-.8-.3-.5-.3-.8-.3-1.1 0-.5 0-.8.3-1.1 0-.5.3-.8.5-1.1.3-.3.5-.3.8-.5.5-.3.8-.3 1.1-.3.5 0 .8 0 1.1.3.5.3.8.3 1.1.5s.2.6.5 1.1zm-2.2 1.4c.5 0 .5-.3.8-.3.3-.3.3-.5.3-.8 0-.3 0-.5-.3-.8-.3 0-.5-.3-1.1-.3h-1.6v3.5h.8V426h.3l1.1 1.4h.8l-1.1-1.3zM576 81v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V81c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48zM64 220.6c0 76.5 62.1 138.5 138.5 138.5 27.2 0 53.9-8.2 76.5-23.1-72.9-59.3-72.4-171.2 0-230.5-22.6-15-49.3-23.1-76.5-23.1-76.4-.1-138.5 62-138.5 138.2zm224 108.8c70.5-55 70.2-162.2 0-217.5-70.2 55.3-70.5 162.6 0 217.5zm-142.3 76.3c0-8.7-5.7-14.4-14.7-14.7-4.6 0-9.5 1.4-12.8 6.5-2.4-4.1-6.5-6.5-12.2-6.5-3.8 0-7.6 1.4-10.6 5.4V392h-8.2v36.7h8.2c0-18.9-2.5-30.2 9-30.2 10.2 0 8.2 10.2 8.2 30.2h7.9c0-18.3-2.5-30.2 9-30.2 10.2 0 8.2 10 8.2 30.2h8.2v-23zm44.9-13.7h-7.9v4.4c-2.7-3.3-6.5-5.4-11.7-5.4-10.3 0-18.2 8.2-18.2 19.3 0 11.2 7.9 19.3 18.2 19.3 5.2 0 9-1.9 11.7-5.4v4.6h7.9V392zm40.5 25.6c0-15-22.9-8.2-22.9-15.2 0-5.7 11.9-4.8 18.5-1.1l3.3-6.5c-9.4-6.1-30.2-6-30.2 8.2 0 14.3 22.9 8.3 22.9 15 0 6.3-13.5 5.8-20.7.8l-3.5 6.3c11.2 7.6 32.6 6 32.6-7.5zm35.4 9.3l-2.2-6.8c-3.8 2.1-12.2 4.4-12.2-4.1v-16.6h13.1V392h-13.1v-11.2h-8.2V392h-7.6v7.3h7.6V416c0 17.6 17.3 14.4 22.6 10.9zm13.3-13.4h27.5c0-16.2-7.4-22.6-17.4-22.6-10.6 0-18.2 7.9-18.2 19.3 0 20.5 22.6 23.9 33.8 14.2l-3.8-6c-7.8 6.4-19.6 5.8-21.9-4.9zm59.1-21.5c-4.6-2-11.6-1.8-15.2 4.4V392h-8.2v36.7h8.2V408c0-11.6 9.5-10.1 12.8-8.4l2.4-7.6zm10.6 18.3c0-11.4 11.6-15.1 20.7-8.4l3.8-6.5c-11.6-9.1-32.7-4.1-32.7 15 0 19.8 22.4 23.8 32.7 15l-3.8-6.5c-9.2 6.5-20.7 2.6-20.7-8.6zm66.7-18.3H408v4.4c-8.3-11-29.9-4.8-29.9 13.9 0 19.2 22.4 24.7 29.9 13.9v4.6h8.2V392zm33.7 0c-2.4-1.2-11-2.9-15.2 4.4V392h-7.9v36.7h7.9V408c0-11 9-10.3 12.8-8.4l2.4-7.6zm40.3-14.9h-7.9v19.3c-8.2-10.9-29.9-5.1-29.9 13.9 0 19.4 22.5 24.6 29.9 13.9v4.6h7.9v-51.7zm7.6-75.1v4.6h.8V302h1.9v-.8h-4.6v.8h1.9zm6.6 123.8c0-.5 0-1.1-.3-1.6-.3-.3-.5-.8-.8-1.1-.3-.3-.8-.5-1.1-.8-.5 0-1.1-.3-1.6-.3-.3 0-.8.3-1.4.3-.5.3-.8.5-1.1.8-.5.3-.8.8-.8 1.1-.3.5-.3 1.1-.3 1.6 0 .3 0 .8.3 1.4 0 .3.3.8.8 1.1.3.3.5.5 1.1.8.5.3 1.1.3 1.4.3.5 0 1.1 0 1.6-.3.3-.3.8-.5 1.1-.8.3-.3.5-.8.8-1.1.3-.6.3-1.1.3-1.4zm3.2-124.7h-1.4l-1.6 3.5-1.6-3.5h-1.4v5.4h.8v-4.1l1.6 3.5h1.1l1.4-3.5v4.1h1.1v-5.4zm4.4-80.5c0-76.2-62.1-138.3-138.5-138.3-27.2 0-53.9 8.2-76.5 23.1 72.1 59.3 73.2 171.5 0 230.5 22.6 15 49.5 23.1 76.5 23.1 76.4.1 138.5-61.9 138.5-138.4z"},"cc-discover":{"viewBox":"0 0 576 512","path":"M83 212.1c0 7.9-3.2 15.5-8.9 20.7-4.9 4.4-11.6 6.4-21.9 6.4H48V185h4.2c10.3 0 16.7 1.7 21.9 6.6 5.7 5 8.9 12.6 8.9 20.5zM504.8 184h-4.9v24.9h4.7c10.3 0 15.8-4.4 15.8-12.8 0-7.9-5.5-12.1-15.6-12.1zM576 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48zM428 253h45.3v-13.8H444V217h28.3v-13.8H444V185h29.3v-14H428v82zm-86.2-82l35 84.2h8.6l35.5-84.2h-17.5l-22.2 55.2-21.9-55.2h-17.5zm-83 41.6c0 24.6 19.9 44.6 44.6 44.6 24.6 0 44.6-19.9 44.6-44.6 0-24.6-19.9-44.6-44.6-44.6-24.6 0-44.6 19.9-44.6 44.6zm-68-.5c0 32.5 33.6 52.5 63.3 38.2v-19c-19.3 19.3-46.8 5.8-46.8-19.2 0-23.7 26.7-39.1 46.8-19v-19c-30.2-15-63.3 6.8-63.3 38zm-33.9 28.3c-7.6 0-13.8-3.7-17.5-10.8l-10.3 9.9c17.8 26.1 56.6 18.2 56.6-11.3 0-13.1-5.4-19-23.6-25.6-9.6-3.4-12.3-5.9-12.3-10.3 0-8.7 14.5-14.1 24.9-2.5l8.4-10.8c-19.1-17.1-49.7-8.9-49.7 14.3 0 11.3 5.2 17.2 20.2 22.7 25.7 9.1 14.7 24.4 3.3 24.4zm-57.4-28.3c0-24.1-18-41.1-44.1-41.1H32v82h23.4c30.9 0 44.1-22.4 44.1-40.9zm23.4-41.1h-16v82h16v-82zM544 288c-33.3 20.8-226.4 124.4-416 160h401c8.2 0 15-6.8 15-15V288zm0-35l-25.9-34.5c12.1-2.5 18.7-10.6 18.7-23.2 0-28.5-30.3-24.4-52.9-24.4v82h16v-32.8h2.2l22.2 32.8H544z"},"cc-amex":{"viewBox":"0 0 576 512","path":"M576 255.4c-37.9-.2-44.2-.9-54.5 5v-5c-45.3 0-53.5-1.7-64.9 5.2v-5.2h-78.2v5.1c-11.4-6.5-21.4-5.1-75.7-5.1v5.6c-6.3-3.7-14.5-5.6-24.3-5.6h-58c-3.5 3.8-12.5 13.7-15.7 17.2-12.7-14.1-10.5-11.6-15.5-17.2h-83.1v92.3h82c3.3-3.5 12.9-13.9 16.1-17.4 12.7 14.3 10.3 11.7 15.4 17.4h48.9c0-14.7.1-8.3.1-23 11.5.2 24.3-.2 34.3-6.2 0 13.9-.1 17.1-.1 29.2h39.6c0-18.5.1-7.4.1-25.3 6.2 0 7.7 0 9.4.1.1 1.3 0 0 0 25.2 152.8 0 145.9 1.1 156.7-4.5v4.5c34.8 0 54.8 2.2 67.5-6.1V432c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V228.3h26.6c4.2-10.1 2.2-5.3 6.4-15.3h19.2c4.2 10 2.2 5.2 6.4 15.3h52.9v-11.4c2.2 5 1.1 2.5 5.1 11.4h29.5c2.4-5.5 2.6-5.8 5.1-11.4v11.4h135.5v-25.1c6.4 0 8-.1 9.8.2 0 0-.2 10.9.1 24.8h66.5v-8.9c7.4 5.9 17.4 8.9 29.7 8.9h26.8c4.2-10.1 2.2-5.3 6.4-15.3h19c6.5 15 .2.5 6.6 15.3h52.8v-21.9c11.8 19.7 7.8 12.9 13.2 21.9h41.6v-92h-39.9v18.4c-12.2-20.2-6.3-10.4-11.2-18.4h-43.3v20.6c-6.2-14.6-4.6-10.8-8.8-20.6h-32.4c-.4 0-2.3.2-2.3-.3h-27.6c-12.8 0-23.1 3.2-30.7 9.3v-9.3h-39.9v5.3c-10.8-6.1-20.7-5.1-64.4-5.3-.1 0-11.6-.1-11.6 0h-103c-2.5 6.1-6.8 16.4-12.6 30-2.8-6-11-23.8-13.9-30h-46V157c-7.4-17.4-4.7-11-9-21.1H22.9c-3.4 7.9-13.7 32-23.1 53.9V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48v175.4zm-186.6-80.6c-.3.2-1.4 2.2-1.4 7.6 0 6 .9 7.7 1.1 7.9.2.1 1.1.5 3.4.5l7.3-16.9c-1.1 0-2.1-.1-3.1-.1-5.6 0-7 .7-7.3 1zm-19.9 130.9c9.2 3.3 11 9.5 11 18.4l-.1 13.8h-16.6l.1-11.5c0-11.8-3.8-13.8-14.8-13.8h-17.6l-.1 25.3h-16.6l.1-69.3h39.4c13 0 27.1 2.3 27.1 18.7-.1 7.6-4.2 15.3-11.9 18.4zm-6.3-15.4c0-6.4-5.6-7.4-10.7-7.4h-21v15.6h20.7c5.6 0 11-1.3 11-8.2zm181.7-7.1H575v-14.6h-32.9c-12.8 0-23.8 6.6-23.8 20.7 0 33 42.7 12.8 42.7 27.4 0 5.1-4.3 6.4-8.4 6.4h-32l-.1 14.8h32c8.4 0 17.6-1.8 22.5-8.9v-25.8c-10.5-13.8-39.3-1.3-39.3-13.5 0-5.8 4.6-6.5 9.2-6.5zm-99.2-.3v-14.3h-55.2l-.1 69.3h55.2l.1-14.3-38.6-.3v-13.8H445v-14.1h-37.8v-12.5h38.5zm42.2 40.1h-32.2l-.1 14.8h32.2c14.8 0 26.2-5.6 26.2-22 0-33.2-42.9-11.2-42.9-26.3 0-5.6 4.9-6.4 9.2-6.4h30.4v-14.6h-33.2c-12.8 0-23.5 6.6-23.5 20.7 0 33 42.7 12.5 42.7 27.4-.1 5.4-4.7 6.4-8.8 6.4zm-78.1-158.7c-17.4-.3-33.2-4.1-33.2 19.7 0 11.8 2.8 19.9 16.1 19.9h7.4l23.5-54.5h24.8l27.9 65.4v-65.4h25.3l29.1 48.1v-48.1h16.9v69H524l-31.2-51.9v51.9h-33.7l-6.6-15.3h-34.3l-6.4 15.3h-19.2c-22.8 0-33-11.8-33-34 0-23.3 10.5-35.3 34-35.3h16.1v15.2zm14.3 24.5h22.8l-11.2-27.6-11.6 27.6zm-72.6-39.6h-16.9v69.3h16.9v-69.3zm-38.1 37.3c9.5 3.3 11 9.2 11 18.4v13.5h-16.6c-.3-14.8 3.6-25.1-14.8-25.1h-18v25.1h-16.4v-69.3l39.1.3c13.3 0 27.4 2 27.4 18.4.1 8-4.3 15.7-11.7 18.7zm-6.7-15.3c0-6.4-5.6-7.4-10.7-7.4h-21v15.3h20.7c5.7 0 11-1.3 11-7.9zm-59.5-7.4v-14.6h-55.5v69.3h55.5v-14.3h-38.9v-13.8h37.8v-14.1h-37.8v-12.5h38.9zm-84.6 54.7v-54.2l-24 54.2H124l-24-54.2v54.2H66.2l-6.4-15.3H25.3l-6.4 15.3H1l29.7-69.3h24.5l28.1 65.7v-65.7h27.1l21.7 47 19.7-47h27.6v69.3h-16.8zM53.9 188.8l-11.5-27.6-11.2 27.6h22.7zm253 102.5c0 27.9-30.4 23.3-49.3 23.3l-.1 23.3h-32.2l-20.4-23-21.3 23h-65.4l.1-69.3h66.5l20.5 22.8 21-22.8H279c15.6 0 27.9 5.4 27.9 22.7zm-112.7 11.8l-17.9-20.2h-41.7v12.5h36.3v14.1h-36.3v13.8h40.6l19-20.2zM241 276l-25.3 27.4 25.3 28.1V276zm48.3 15.3c0-6.1-4.6-8.4-10.2-8.4h-21.5v17.6h21.2c5.9 0 10.5-2.8 10.5-9.2z"},"cc-paypal":{"viewBox":"0 0 576 512","path":"M186.3 258.2c0 12.2-9.7 21.5-22 21.5-9.2 0-16-5.2-16-15 0-12.2 9.5-22 21.7-22 9.3 0 16.3 5.7 16.3 15.5zM80.5 209.7h-4.7c-1.5 0-3 1-3.2 2.7l-4.3 26.7 8.2-.3c11 0 19.5-1.5 21.5-14.2 2.3-13.4-6.2-14.9-17.5-14.9zm284 0H360c-1.8 0-3 1-3.2 2.7l-4.2 26.7 8-.3c13 0 22-3 22-18-.1-10.6-9.6-11.1-18.1-11.1zM576 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48zM128.3 215.4c0-21-16.2-28-34.7-28h-40c-2.5 0-5 2-5.2 4.7L32 294.2c-.3 2 1.2 4 3.2 4h19c2.7 0 5.2-2.9 5.5-5.7l4.5-26.6c1-7.2 13.2-4.7 18-4.7 28.6 0 46.1-17 46.1-45.8zm84.2 8.8h-19c-3.8 0-4 5.5-4.2 8.2-5.8-8.5-14.2-10-23.7-10-24.5 0-43.2 21.5-43.2 45.2 0 19.5 12.2 32.2 31.7 32.2 9 0 20.2-4.9 26.5-11.9-.5 1.5-1 4.7-1 6.2 0 2.3 1 4 3.2 4H200c2.7 0 5-2.9 5.5-5.7l10.2-64.3c.3-1.9-1.2-3.9-3.2-3.9zm40.5 97.9l63.7-92.6c.5-.5.5-1 .5-1.7 0-1.7-1.5-3.5-3.2-3.5h-19.2c-1.7 0-3.5 1-4.5 2.5l-26.5 39-11-37.5c-.8-2.2-3-4-5.5-4h-18.7c-1.7 0-3.2 1.8-3.2 3.5 0 1.2 19.5 56.8 21.2 62.1-2.7 3.8-20.5 28.6-20.5 31.6 0 1.8 1.5 3.2 3.2 3.2h19.2c1.8-.1 3.5-1.1 4.5-2.6zm159.3-106.7c0-21-16.2-28-34.7-28h-39.7c-2.7 0-5.2 2-5.5 4.7l-16.2 102c-.2 2 1.3 4 3.2 4h20.5c2 0 3.5-1.5 4-3.2l4.5-29c1-7.2 13.2-4.7 18-4.7 28.4 0 45.9-17 45.9-45.8zm84.2 8.8h-19c-3.8 0-4 5.5-4.3 8.2-5.5-8.5-14-10-23.7-10-24.5 0-43.2 21.5-43.2 45.2 0 19.5 12.2 32.2 31.7 32.2 9.3 0 20.5-4.9 26.5-11.9-.3 1.5-1 4.7-1 6.2 0 2.3 1 4 3.2 4H484c2.7 0 5-2.9 5.5-5.7l10.2-64.3c.3-1.9-1.2-3.9-3.2-3.9zm47.5-33.3c0-2-1.5-3.5-3.2-3.5h-18.5c-1.5 0-3 1.2-3.2 2.7l-16.2 104-.3.5c0 1.8 1.5 3.5 3.5 3.5h16.5c2.5 0 5-2.9 5.2-5.7L544 191.2v-.3zm-90 51.8c-12.2 0-21.7 9.7-21.7 22 0 9.7 7 15 16.2 15 12 0 21.7-9.2 21.7-21.5.1-9.8-6.9-15.5-16.2-15.5z"},"cc-stripe":{"viewBox":"0 0 576 512","path":"M396.9 256.5c0 19.1-8.8 33.4-21.9 33.4-8.3 0-13.3-3-16.8-6.7l-.2-52.8c3.7-4.1 8.8-7 17-7 12.9-.1 21.9 14.5 21.9 33.1zM576 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48zM122.2 281.1c0-42.3-54.3-34.7-54.3-50.7 0-5.5 4.6-7.7 12.1-7.7 10.8 0 24.5 3.3 35.3 9.1v-33.4c-11.8-4.7-23.5-6.5-35.3-6.5-28.8 0-48 15-48 40.2 0 39.3 54 32.9 54 49.9 0 6.6-5.7 8.7-13.6 8.7-11.8 0-26.9-4.9-38.9-11.3v33.9c13.2 5.7 26.6 8.1 38.8 8.1 29.6-.2 49.9-14.7 49.9-40.3zm68.9-86.9h-27v-30.8l-34.7 7.4-.2 113.9c0 21 15.8 36.5 36.9 36.5 11.6 0 20.2-2.1 24.9-4.7v-28.9c-4.5 1.8-27 8.3-27-12.6v-50.5h27v-30.3zm73.8 0c-4.7-1.7-21.3-4.8-29.6 10.5l-2.2-10.5h-30.7v124.5h35.5v-84.4c8.4-11 22.6-8.9 27.1-7.4v-32.7zm44.2 0h-35.7v124.5h35.7V194.2zm0-47.3l-35.7 7.6v28.9l35.7-7.6v-28.9zm122.7 108.8c0-41.3-23.5-63.8-48.4-63.8-13.9 0-22.9 6.6-27.8 11.1l-1.8-8.8h-31.3V360l35.5-7.5.1-40.2c5.1 3.7 12.7 9 25.1 9 25.4-.1 48.6-20.5 48.6-65.6zm112.2 1.2c0-36.4-17.6-65.1-51.3-65.1-33.8 0-54.3 28.7-54.3 64.9 0 42.8 24.2 64.5 58.8 64.5 17 0 29.7-3.9 39.4-9.2v-28.6c-9.7 4.9-20.8 7.9-34.9 7.9-13.8 0-26-4.9-27.6-21.5h69.5c.1-2 .4-9.4.4-12.9zm-51.6-36.1c-8.9 0-18.7 6.7-18.7 22.7h36.7c0-16-9.3-22.7-18-22.7z"},"lastfm":{"viewBox":"0 0 512 512","path":"M225.8 367.1l-18.8-51s-30.5 34-76.2 34c-40.5 0-69.2-35.2-69.2-91.5 0-72.1 36.4-97.9 72.1-97.9 66.5 0 74.8 53.3 100.9 134.9 18.8 56.9 54 102.6 155.4 102.6 72.7 0 122-22.3 122-80.9 0-72.9-62.7-80.6-115-92.1-25.8-5.9-33.4-16.4-33.4-34 0-19.9 15.8-31.7 41.6-31.7 28.2 0 43.4 10.6 45.7 35.8l58.6-7c-4.7-52.8-41.1-74.5-100.9-74.5-52.8 0-104.4 19.9-104.4 83.9 0 39.9 19.4 65.1 68 76.8 44.9 10.6 79.8 13.8 79.8 45.7 0 21.7-21.1 30.5-61 30.5-59.2 0-83.9-31.1-97.9-73.9-32-96.8-43.6-163-161.3-163C45.7 113.8 0 168.3 0 261c0 89.1 45.7 137.2 127.9 137.2 66.2 0 97.9-31.1 97.9-31.1z"},"lastfm-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-92.2 312.9c-63.4 0-85.4-28.6-97.1-64.1-16.3-51-21.5-84.3-63-84.3-22.4 0-45.1 16.1-45.1 61.2 0 35.2 18 57.2 43.3 57.2 28.6 0 47.6-21.3 47.6-21.3l11.7 31.9s-19.8 19.4-61.2 19.4c-51.3 0-79.9-30.1-79.9-85.8 0-57.9 28.6-92 82.5-92 73.5 0 80.8 41.4 100.8 101.9 8.8 26.8 24.2 46.2 61.2 46.2 24.9 0 38.1-5.5 38.1-19.1 0-19.9-21.8-22-49.9-28.6-30.4-7.3-42.5-23.1-42.5-48 0-40 32.3-52.4 65.2-52.4 37.4 0 60.1 13.6 63 46.6l-36.7 4.4c-1.5-15.8-11-22.4-28.6-22.4-16.1 0-26 7.3-26 19.8 0 11 4.8 17.6 20.9 21.3 32.7 7.1 71.8 12 71.8 57.5.1 36.7-30.7 50.6-76.1 50.6z"},"ioxhost":{"viewBox":"0 0 640 512","path":"M616 160h-67.3C511.2 70.7 422.9 8 320 8 183 8 72 119 72 256c0 16.4 1.6 32.5 4.7 48H24c-13.3 0-24 10.8-24 24 0 13.3 10.7 24 24 24h67.3c37.5 89.3 125.8 152 228.7 152 137 0 248-111 248-248 0-16.4-1.6-32.5-4.7-48H616c13.3 0 24-10.8 24-24 0-13.3-10.7-24-24-24zm-96 96c0 110.5-89.5 200-200 200-75.7 0-141.6-42-175.5-104H424c13.3 0 24-10.8 24-24 0-13.3-10.7-24-24-24H125.8c-3.8-15.4-5.8-31.4-5.8-48 0-110.5 89.5-200 200-200 75.7 0 141.6 42 175.5 104H216c-13.3 0-24 10.8-24 24 0 13.3 10.7 24 24 24h298.2c3.8 15.4 5.8 31.4 5.8 48zm-304-24h208c13.3 0 24 10.7 24 24 0 13.2-10.7 24-24 24H216c-13.3 0-24-10.7-24-24 0-13.2 10.7-24 24-24z"},"angellist":{"viewBox":"0 0 448 512","path":"M347.1 215.4c11.7-32.6 45.4-126.9 45.4-157.1 0-26.6-15.7-48.9-43.7-48.9-44.6 0-84.6 131.7-97.1 163.1C242 144 196.6 0 156.6 0c-31.1 0-45.7 22.9-45.7 51.7 0 35.3 34.2 126.8 46.6 162-6.3-2.3-13.1-4.3-20-4.3-23.4 0-48.3 29.1-48.3 52.6 0 8.9 4.9 21.4 8 29.7-36.9 10-51.1 34.6-51.1 71.7C46 435.6 114.4 512 210.6 512c118 0 191.4-88.6 191.4-202.9 0-43.1-6.9-82-54.9-93.7zM311.7 108c4-12.3 21.1-64.3 37.1-64.3 8.6 0 10.9 8.9 10.9 16 0 19.1-38.6 124.6-47.1 148l-34-6 33.1-93.7zM142.3 48.3c0-11.9 14.5-45.7 46.3 47.1l34.6 100.3c-15.6-1.3-27.7-3-35.4 1.4-10.9-28.8-45.5-119.7-45.5-148.8zM140 244c29.3 0 67.1 94.6 67.1 107.4 0 5.1-4.9 11.4-10.6 11.4-20.9 0-76.9-76.9-76.9-97.7.1-7.7 12.7-21.1 20.4-21.1zm184.3 186.3c-29.1 32-66.3 48.6-109.7 48.6-59.4 0-106.3-32.6-128.9-88.3-17.1-43.4 3.8-68.3 20.6-68.3 11.4 0 54.3 60.3 54.3 73.1 0 4.9-7.7 8.3-11.7 8.3-16.1 0-22.4-15.5-51.1-51.4-29.7 29.7 20.5 86.9 58.3 86.9 26.1 0 43.1-24.2 38-42 3.7 0 8.3.3 11.7-.6 1.1 27.1 9.1 59.4 41.7 61.7 0-.9 2-7.1 2-7.4 0-17.4-10.6-32.6-10.6-50.3 0-28.3 21.7-55.7 43.7-71.7 8-6 17.7-9.7 27.1-13.1 9.7-3.7 20-8 27.4-15.4-1.1-11.2-5.7-21.1-16.9-21.1-27.7 0-120.6 4-120.6-39.7 0-6.7.1-13.1 17.4-13.1 32.3 0 114.3 8 138.3 29.1 18.1 16.1 24.3 113.2-31 174.7zm-98.6-126c9.7 3.1 19.7 4 29.7 6-7.4 5.4-14 12-20.3 19.1-2.8-8.5-6.2-16.8-9.4-25.1z"},"buysellads":{"viewBox":"0 0 448 512","path":"M224 150.7l42.9 160.7h-85.8L224 150.7zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-65.3 325.3l-94.5-298.7H159.8L65.3 405.3H156l111.7-91.6 24.2 91.6h90.8z"},"connectdevelop":{"viewBox":"0 0 576 512","path":"M550.5 241l-50.089-86.786c1.071-2.142 1.875-4.553 1.875-7.232 0-8.036-6.696-14.733-14.732-15.001l-55.447-95.893c.536-1.607 1.071-3.214 1.071-4.821 0-8.571-6.964-15.268-15.268-15.268-4.821 0-8.839 2.143-11.786 5.625H299.518C296.839 18.143 292.821 16 288 16s-8.839 2.143-11.518 5.625H170.411C167.464 18.143 163.447 16 158.625 16c-8.303 0-15.268 6.696-15.268 15.268 0 1.607.536 3.482 1.072 4.821l-55.983 97.233c-5.356 2.41-9.107 7.5-9.107 13.661 0 .535.268 1.071.268 1.607l-53.304 92.143c-7.232 1.339-12.59 7.5-12.59 15 0 7.232 5.089 13.393 12.054 15l55.179 95.358c-.536 1.607-.804 2.946-.804 4.821 0 7.232 5.089 13.393 12.054 14.732l51.697 89.732c-.536 1.607-1.071 3.482-1.071 5.357 0 8.571 6.964 15.268 15.268 15.268 4.821 0 8.839-2.143 11.518-5.357h106.875C279.161 493.857 283.447 496 288 496s8.839-2.143 11.518-5.357h107.143c2.678 2.946 6.696 4.821 10.982 4.821 8.571 0 15.268-6.964 15.268-15.268 0-1.607-.267-2.946-.803-4.285l51.697-90.268c6.964-1.339 12.054-7.5 12.054-14.732 0-1.607-.268-3.214-.804-4.821l54.911-95.358c6.964-1.339 12.322-7.5 12.322-15-.002-7.232-5.092-13.393-11.788-14.732zM153.535 450.732l-43.66-75.803h43.66v75.803zm0-83.839h-43.66c-.268-1.071-.804-2.142-1.339-3.214l44.999-47.41v50.624zm0-62.411l-50.357 53.304c-1.339-.536-2.679-1.34-4.018-1.607L43.447 259.75c.535-1.339.535-2.679.535-4.018s0-2.41-.268-3.482l51.965-90c2.679-.268 5.357-1.072 7.768-2.679l50.089 51.965v92.946zm0-102.322l-45.803-47.41c1.339-2.143 2.143-4.821 2.143-7.767 0-.268-.268-.804-.268-1.072l43.928-15.804v72.053zm0-80.625l-43.66 15.804 43.66-75.536v59.732zm326.519 39.108l.804 1.339L445.5 329.125l-63.75-67.232 98.036-101.518.268.268zM291.75 355.107l11.518 11.786H280.5l11.25-11.786zm-.268-11.25l-83.303-85.446 79.553-84.375 83.036 87.589-79.286 82.232zm5.357 5.893l79.286-82.232 67.5 71.25-5.892 28.125H313.714l-16.875-17.143zM410.411 44.393c1.071.536 2.142 1.072 3.482 1.34l57.857 100.714v.536c0 2.946.803 5.624 2.143 7.767L376.393 256l-83.035-87.589L410.411 44.393zm-9.107-2.143L287.732 162.518l-57.054-60.268 166.339-60h4.287zm-123.483 0c2.678 2.678 6.16 4.285 10.179 4.285s7.5-1.607 10.179-4.285h75L224.786 95.821 173.893 42.25h103.928zm-116.249 5.625l1.071-2.142a33.834 33.834 0 0 0 2.679-.804l51.161 53.84-54.911 19.821V47.875zm0 79.286l60.803-21.964 59.732 63.214-79.553 84.107-40.982-42.053v-83.304zm0 92.678L198 257.607l-36.428 38.304v-76.072zm0 87.858l42.053-44.464 82.768 85.982-17.143 17.678H161.572v-59.196zm6.964 162.053c-1.607-1.607-3.482-2.678-5.893-3.482l-1.071-1.607v-89.732h99.91l-91.607 94.821h-1.339zm129.911 0c-2.679-2.41-6.428-4.285-10.447-4.285s-7.767 1.875-10.447 4.285h-96.429l91.607-94.821h38.304l91.607 94.821H298.447zm120-11.786l-4.286 7.5c-1.339.268-2.41.803-3.482 1.339l-89.196-91.875h114.376l-17.412 83.036zm12.856-22.232l12.858-60.803h21.964l-34.822 60.803zm34.822-68.839h-20.357l4.553-21.16 17.143 18.214c-.535.803-1.071 1.874-1.339 2.946zm66.161-107.411l-55.447 96.697c-1.339.535-2.679 1.071-4.018 1.874l-20.625-21.964 34.554-163.928 45.803 79.286c-.267 1.339-.803 2.678-.803 4.285 0 1.339.268 2.411.536 3.75z"},"dashcube":{"viewBox":"0 0 448 512","path":"M326.6 104H110.4c-51.1 0-91.2 43.3-91.2 93.5V427c0 50.5 40.1 85 91.2 85h227.2c51.1 0 91.2-34.5 91.2-85V0L326.6 104zM153.9 416.5c-17.7 0-32.4-15.1-32.4-32.8V240.8c0-17.7 14.7-32.5 32.4-32.5h140.7c17.7 0 32 14.8 32 32.5v123.5l51.1 52.3H153.9z"},"forumbee":{"viewBox":"0 0 448 512","path":"M5.8 309.7C2 292.7 0 275.5 0 258.3 0 135 99.8 35 223.1 35c16.6 0 33.3 2 49.3 5.5C149 87.5 51.9 186 5.8 309.7zm392.9-189.2C385 103 369 87.8 350.9 75.2c-149.6 44.3-266.3 162.1-309.7 312 12.5 18.1 28 35.6 45.2 49 43.1-151.3 161.2-271.7 312.3-315.7zm15.8 252.7c15.2-25.1 25.4-53.7 29.5-82.8-79.4 42.9-145 110.6-187.6 190.3 30-4.4 58.9-15.3 84.6-31.3 35 13.1 70.9 24.3 107 33.6-9.3-36.5-20.4-74.5-33.5-109.8zm29.7-145.5c-2.6-19.5-7.9-38.7-15.8-56.8C290.5 216.7 182 327.5 137.1 466c18.1 7.6 37 12.5 56.6 15.2C240 367.1 330.5 274.4 444.2 227.7z"},"leanpub":{"viewBox":"0 0 576 512","path":"M386.539 111.485l15.096 248.955-10.979-.275c-36.232-.824-71.64 8.783-102.657 27.997-31.016-19.214-66.424-27.997-102.657-27.997-45.564 0-82.07 10.705-123.516 27.723L93.117 129.6c28.546-11.803 61.484-18.115 92.226-18.115 41.173 0 73.836 13.175 102.657 42.544 27.723-28.271 59.013-41.721 98.539-42.544zM569.07 448c-25.526 0-47.485-5.215-70.542-15.645-34.31-15.645-69.993-24.978-107.871-24.978-38.977 0-74.934 12.901-102.657 40.623-27.723-27.723-63.68-40.623-102.657-40.623-37.878 0-73.561 9.333-107.871 24.978C55.239 442.236 32.731 448 8.303 448H6.93L49.475 98.859C88.726 76.626 136.486 64 181.775 64 218.83 64 256.984 71.685 288 93.095 319.016 71.685 357.17 64 394.225 64c45.289 0 93.049 12.626 132.3 34.859L569.07 448zm-43.368-44.741l-34.036-280.246c-30.742-13.999-67.248-21.41-101.009-21.41-38.428 0-74.385 12.077-102.657 38.702-28.272-26.625-64.228-38.702-102.657-38.702-33.761 0-70.267 7.411-101.009 21.41L50.298 403.259c47.211-19.487 82.894-33.486 135.045-33.486 37.604 0 70.817 9.606 102.657 29.644 31.84-20.038 65.052-29.644 102.657-29.644 52.151 0 87.834 13.999 135.045 33.486z"},"sellsy":{"viewBox":"0 0 640 512","path":"M539.71 237.308c3.064-12.257 4.29-24.821 4.29-37.384C544 107.382 468.618 32 376.076 32c-77.22 0-144.634 53.012-163.02 127.781-15.322-13.176-34.934-20.53-55.157-20.53-46.271 0-83.962 37.69-83.962 83.961 0 7.354.92 15.015 3.065 22.369-42.9 20.225-70.785 63.738-70.785 111.234C6.216 424.843 61.68 480 129.401 480h381.198c67.72 0 123.184-55.157 123.184-123.184.001-56.384-38.916-106.025-94.073-119.508zM199.88 401.554c0 8.274-7.048 15.321-15.321 15.321H153.61c-8.274 0-15.321-7.048-15.321-15.321V290.626c0-8.273 7.048-15.321 15.321-15.321h30.949c8.274 0 15.321 7.048 15.321 15.321v110.928zm89.477 0c0 8.274-7.048 15.321-15.322 15.321h-30.949c-8.274 0-15.321-7.048-15.321-15.321V270.096c0-8.274 7.048-15.321 15.321-15.321h30.949c8.274 0 15.322 7.048 15.322 15.321v131.458zm89.477 0c0 8.274-7.047 15.321-15.321 15.321h-30.949c-8.274 0-15.322-7.048-15.322-15.321V238.84c0-8.274 7.048-15.321 15.322-15.321h30.949c8.274 0 15.321 7.048 15.321 15.321v162.714zm87.027 0c0 8.274-7.048 15.321-15.322 15.321h-28.497c-8.274 0-15.321-7.048-15.321-15.321V176.941c0-8.579 7.047-15.628 15.321-15.628h28.497c8.274 0 15.322 7.048 15.322 15.628v224.613z"},"shirtsinbulk":{"viewBox":"0 0 448 512","path":"M395.208 221.583H406v33.542h-10.792v-33.542zm0-9.625H406v-33.542h-10.792v33.542zm0 86.333H406V264.75h-10.792v33.541zM358.75 135.25h-33.542v10.5h33.542v-10.5zm36.458 206.208H406v-33.542h-10.792v33.542zM311.5 135.25h-33.542v10.5H311.5v-10.5zm-47.25 0H231v10.5h33.25v-10.5zm-47.25 0h-33.25v10.5H217v-10.5zm178.208 33.542H406V135.25h-33.542v10.5h22.75v23.042zm-255.792 259l30.625 13.417 4.375-9.917-30.625-13.417-4.375 9.917zM179.083 445l30.334 13.708 4.374-9.916-30.333-13.417-4.375 9.625zm216.125-60.375H406v-33.542h-10.792v33.542zm-334.833 8.167L91 406.208l4.375-9.624-30.625-13.709-4.375 9.917zm39.666 17.499l30.625 13.417 4.375-9.917-30.625-13.416-4.375 9.916zm132.417 38.501l4.375 9.916L267.459 445l-4.375-9.625-30.626 13.417zm118.417-52.208l4.375 9.624 30.624-13.416-4.374-9.917-30.625 13.709zM311.5 413.791l4.375 9.917 30.625-13.417-4.374-9.916-30.626 13.416zm-39.667 17.501l4.375 9.917 30.625-13.417-4.375-9.917-30.625 13.417zM311.5 46.583h-33.542v10.5H311.5v-10.5zm94.209 0h-33.251v10.5h33.251v-10.5zm-188.709 0h-33.25v10.5H217v-10.5zm141.75 0h-33.542v10.5h33.542v-10.5zm-94.5 0H231v10.5h33.25v-10.5zM448 3.708v406l-226.334 98.584L0 409.708v-406h448zm-29.166 116.958H29.166V390.75l192.792 85.75 196.875-85.75V120.666zm0-87.791H29.166V91.5h389.667V32.875zM75.542 46.583H42.291v10.5h33.251v-10.5zm94.5 0H136.5v10.5h33.542v-10.5zm-47.251 0H89.25v10.5h33.542v-10.5zm7.584 236.542c0-50.167 41.125-91.292 91.292-91.292 50.458 0 91.292 41.125 91.292 91.292 0 50.458-40.833 91.292-91.292 91.292-50.167-.001-91.292-40.834-91.292-91.292zm120.75 18.084c0 13.125-23.917 14.291-32.666 14.291-12.25 0-29.75-2.625-35.875-14.875h-.875L172.666 319c14.876 9.333 29.167 12.25 47.25 12.25 19.542 0 51.042-5.833 51.042-31.209 0-48.125-78.458-16.333-78.458-37.916 0-13.125 20.708-14.875 29.75-14.875 10.791 0 29.166 3.208 35.583 13.124h.875l8.751-16.916c-15.167-6.125-27.417-11.959-44.334-11.959-20.125 0-49.583 6.417-49.583 31.792 0 44.334 77.583 11.959 77.583 37.918zM122.791 135.25H89.25v10.5h33.542v-10.5zm-69.999 10.5h22.75v-10.5H42v33.542h10.792V145.75zm0 32.666H42v33.542h10.792v-33.542zm117.25-43.166H136.5v10.5h33.542v-10.5zm-117.25 86.333H42v33.542h10.792v-33.542zm0 86.334H42v33.542h10.792v-33.542zm0-43.167H42v33.542h10.792V264.75zm0 86.333H42v33.542h10.792v-33.542z"},"simplybuilt":{"viewBox":"0 0 512 512","path":"M481.2 64h-106c-14.5 0-26.6 11.8-26.6 26.3v39.6H163.3V90.3c0-14.5-12-26.3-26.6-26.3h-106C16.1 64 4.3 75.8 4.3 90.3v331.4c0 14.5 11.8 26.3 26.6 26.3h450.4c14.8 0 26.6-11.8 26.6-26.3V90.3c-.2-14.5-12-26.3-26.7-26.3zM149.8 355.8c-36.6 0-66.4-29.7-66.4-66.4 0-36.9 29.7-66.6 66.4-66.6 36.9 0 66.6 29.7 66.6 66.6 0 36.7-29.7 66.4-66.6 66.4zm212.4 0c-36.9 0-66.6-29.7-66.6-66.6 0-36.6 29.7-66.4 66.6-66.4 36.6 0 66.4 29.7 66.4 66.4 0 36.9-29.8 66.6-66.4 66.6z"},"skyatlas":{"viewBox":"0 0 640 512","path":"M640 329.3c0 65.9-52.5 114.4-117.5 114.4-165.9 0-196.6-249.7-359.7-249.7-146.9 0-147.1 212.2 5.6 212.2 42.5 0 90.9-17.8 125.3-42.5 5.6-4.1 16.9-16.3 22.8-16.3s10.9 5 10.9 10.9c0 7.8-13.1 19.1-18.7 24.1-40.9 35.6-100.3 61.2-154.7 61.2-83.4.1-154-59-154-144.9s67.5-149.1 152.8-149.1c185.3 0 222.5 245.9 361.9 245.9 99.9 0 94.8-139.7 3.4-139.7-17.5 0-35 11.6-46.9 11.6-8.4 0-15.9-7.2-15.9-15.6 0-11.6 5.3-23.7 5.3-36.3 0-66.6-50.9-114.7-116.9-114.7-53.1 0-80 36.9-88.8 36.9-6.2 0-11.2-5-11.2-11.2 0-5.6 4.1-10.3 7.8-14.4 25.3-28.8 64.7-43.7 102.8-43.7 79.4 0 139.1 58.4 139.1 137.8 0 6.9-.3 13.7-1.2 20.6 11.9-3.1 24.1-4.7 35.9-4.7 60.7 0 111.9 45.3 111.9 107.2z"},"facebook":{"viewBox":"0 0 448 512","path":"M448 56.7v398.5c0 13.7-11.1 24.7-24.7 24.7H309.1V306.5h58.2l8.7-67.6h-67v-43.2c0-19.6 5.4-32.9 33.5-32.9h35.8v-60.5c-6.2-.8-27.4-2.7-52.2-2.7-51.6 0-87 31.5-87 89.4v49.9h-58.4v67.6h58.4V480H24.7C11.1 480 0 468.9 0 455.3V56.7C0 43.1 11.1 32 24.7 32h398.5c13.7 0 24.8 11.1 24.8 24.7z"},"pinterest-p":{"viewBox":"0 0 384 512","path":"M204 6.5C101.4 6.5 0 74.9 0 185.6 0 256 39.6 296 63.6 296c9.9 0 15.6-27.6 15.6-35.4 0-9.3-23.7-29.1-23.7-67.8 0-80.4 61.2-137.4 140.4-137.4 68.1 0 118.5 38.7 118.5 109.8 0 53.1-21.3 152.7-90.3 152.7-24.9 0-46.2-18-46.2-43.8 0-37.8 26.4-74.4 26.4-113.4 0-66.2-93.9-54.2-93.9 25.8 0 16.8 2.1 35.4 9.6 50.7-13.8 59.4-42 147.9-42 209.1 0 18.9 2.7 37.5 4.5 56.4 3.4 3.8 1.7 3.4 6.9 1.5 50.4-69 48.6-82.5 71.4-172.8 12.3 23.4 44.1 36 69.3 36 106.2 0 153.9-103.5 153.9-196.8C384 71.3 298.2 6.5 204 6.5z"},"whatsapp":{"viewBox":"0 0 448 512","path":"M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"},"viacoin":{"viewBox":"0 0 384 512","path":"M384 32h-64l-80.7 192h-94.5L64 32H0l48 112H0v48h68.5l13.8 32H0v48h102.8L192 480l89.2-208H384v-48h-82.3l13.8-32H384v-48h-48l48-112zM192 336l-27-64h54l-27 64z"},"medium":{"viewBox":"0 0 448 512","path":"M0 32v448h448V32H0zm372.2 106.1l-24 23c-2.1 1.6-3.1 4.2-2.7 6.7v169.3c-.4 2.6.6 5.2 2.7 6.7l23.5 23v5.1h-118V367l24.3-23.6c2.4-2.4 2.4-3.1 2.4-6.7V199.8l-67.6 171.6h-9.1L125 199.8v115c-.7 4.8 1 9.7 4.4 13.2l31.6 38.3v5.1H71.2v-5.1l31.6-38.3c3.4-3.5 4.9-8.4 4.1-13.2v-133c.4-3.7-1-7.3-3.8-9.8L75 138.1V133h87.3l67.4 148L289 133.1h83.2v5z"},"y-combinator":{"viewBox":"0 0 448 512","path":"M448 32v448H0V32h448zM236 287.5L313.5 142h-32.7L235 233c-4.7 9.3-9 18.3-12.8 26.8L210 233l-45.2-91h-35l76.7 143.8v94.5H236v-92.8z"},"optin-monster":{"viewBox":"0 0 576 512","path":"M550.671 450.303c0 11.62-15.673 19.457-32.158 14.863-12.16-3.243-31.346-17.565-36.211-27.294-5.674-11.62 4.054-32.698 18.916-30.806 15.674 1.621 49.453 25.401 49.453 43.237zM372.86 75.223c-3.783-72.151-100.796-79.718-125.928-23.51 44.588-24.321 90.257-15.673 125.928 23.51zM74.795 407.066c-15.673 1.621-49.452 25.401-49.452 43.237 0 11.62 15.673 19.457 32.157 14.863 12.16-3.243 31.076-17.565 35.94-27.294 5.946-11.62-3.782-32.698-18.645-30.806zm497.765 14.322c1.081 3.513 1.892 7.026 1.892 10.809.81 31.616-44.317 64.045-73.503 65.125-17.295.81-34.59-8.377-42.696-23.51-113.497 4.053-226.994 4.864-340.22 0-8.377 15.133-25.672 24.05-42.967 23.51-28.915-1.081-74.043-33.509-73.503-65.125.27-3.783.811-7.296 1.892-10.809-5.566-9.463-4.845-15.282 5.405-11.62 3.243-5.134 7.026-9.458 11.08-13.782-2.57-10.917 1.27-14.094 11.079-9.188 4.594-3.243 9.998-6.485 15.944-9.188 0-15.757 11.839-11.131 17.295-5.675 12.467-1.78 20.129.709 26.753 5.675v-19.726c-12.987 0-40.641-11.375-45.94-36.212-4.974-20.725 2.607-38.075 25.132-47.56.81-5.945 8.107-14.052 14.862-15.944 7.567-1.892 12.431 4.594 14.052 10.269 7.425 0 17.757 1.465 21.078 8.107 5.405-.541 11.079-1.352 16.484-1.892-2.432-1.892-5.134-3.513-8.107-4.594-5.134-8.917-13.782-11.079-24.591-11.62 0-.81 0-1.621.27-2.702-19.727-.541-44.048-5.675-54.857-17.835-21.321-23.638-15.935-83.577 12.16-103.498 8.377-5.675 21.618-.811 22.699 9.728 2.425 20.598.399 26.833 26.212 25.942 8.107-7.836 16.755-14.592 26.483-19.997-14.862-1.352-28.914 1.621-43.778 3.783 12.752-12.48 23.953-25.442 56.748-42.427 23.511-11.89 49.993-20.808 76.205-23.239-18.646-7.837-39.993-11.891-59.721-16.484 76.475-16.214 174.569-22.159 244.289 37.562 18.105 15.403 32.427 36.211 42.696 59.992 39.799 4.853 36.47-5.581 38.643-25.132 1.081-10.269 14.322-15.403 22.699-9.458 14.862 10.539 22.159 30.806 24.59 48.101 2.162 17.835.27 41.345-12.43 55.127-10.809 12.16-34.32 17.565-53.776 18.105v2.703c-11.08.27-20.268 2.432-25.673 11.62-2.972 1.081-5.674 2.703-8.377 4.594 5.675.54 11.35 1.351 16.755 1.891 1.869-5.619 12.535-8.377 21.077-8.377 1.621-5.405 6.756-11.89 14.052-10.269s14.052 9.998 14.863 15.944c10.809 4.324 22.159 12.16 25.131 25.672 1.892 8.107 1.621 15.133.27 21.888-5.726 25.262-33.361 36.212-45.939 36.212 0 6.756 0 13.241-.27 19.726 8.01-6.006 16.367-7.158 26.752-5.675 5.919-5.919 17.565-9.41 17.565 5.675 5.675 2.703 11.349 5.945 15.944 9.188 10.1-5.051 13.669-.539 10.809 9.188 4.053 4.323 8.107 8.917 11.079 13.782 10.136-3.62 11.021 2.078 5.409 11.62zm-73.773-254.016c17.295 6.756 26.212 22.159 30.265 35.67 1.081-10.539-2.702-39.453-13.782-51.073-7.296-7.296-14.052-5.134-14.052.81.001 6.216-1.35 11.62-2.431 14.593zm-18.646 12.43c12.971 15.673 17.024 41.615 12.7 62.963 10.809-2.162 20.537-6.215 26.212-12.16 1.892-2.162 3.783-4.864 4.864-7.566-1.081-21.348-10.269-42.697-29.725-48.912-3.242 3.243-9.187 4.864-14.051 5.675zm-21.889.811c7.567 20.537 12.431 42.696 14.322 64.585 3.513 0 7.567-.27 11.62-.811 5.945-24.321-.27-51.614-14.052-63.504-3.783 0-8.107 0-11.89-.27zM77.768 167.372c-1.081-2.973-2.432-8.377-2.432-14.593 0-5.945-7.026-8.107-14.052-.81-11.35 11.62-14.863 40.534-13.782 51.073 4.053-13.512 12.971-28.915 30.266-35.67zm5.675 75.394c-4.324-21.348-.27-47.291 12.701-62.963-4.865-.811-10.809-2.432-14.052-5.675-19.457 6.215-28.375 27.563-29.726 48.912 1.351 2.702 2.972 5.404 4.864 7.566 5.675 6.215 15.403 9.998 26.213 12.16zm41.345-61.073c-5.134 1.081-9.998 2.973-14.862 4.865l-12.16 5.134v-.27c-7.296 14.052-9.999 34.319-5.405 52.965 4.594.541 8.647.811 12.7.811 2.432-22.159 9.188-43.778 19.727-63.505zm88.095-23.239c0 42.155 34.319 76.205 76.205 76.205s76.205-34.05 76.205-76.205c0-41.886-34.319-75.935-76.205-75.935s-76.205 34.049-76.205 75.935zm152.41 97.283c9.969 50.608 3.299 64.692 16.484 58.099 15.944-8.107 22.699-39.183 22.97-57.019-12.971-.81-26.213-.81-39.454-1.08zm-71.611-.541v-.27c-.27 5.134.27 38.103 4.324 41.075 11.079 5.405 39.453 4.594 51.073 1.081 5.405-1.621 2.432-37.022 1.621-41.886-18.916-.27-38.102-.27-57.018 0zm-14.053 0v-.27c-19.456.27-38.642.27-57.829.811-1.892 9.187-4.594 48.911 1.892 51.614 12.971 5.675 41.616 5.134 54.586 1.621 4.595-2.432 2.433-45.399 1.351-53.776zm-85.662 57.56c5.405 2.432 8.647 2.432 9.728-4.324 1.892-8.647 2.432-36.752 4.865-52.155-12.16.27-24.591.811-36.752 1.621-5.405 19.727.27 45.129 22.159 54.858zm-65.666-11.08c43.778 47.02 92.689 85.663 155.923 106.47 67.558-19.186 115.659-59.991 163.219-107.011-11.095-4.315-7.715-10.363-7.296-11.62-8.918-.81-17.835-1.892-26.483-2.702-9.458 32.968-35.94 52.965-46.75 31.616-2.702-5.134-3.513-11.62-4.594-16.754-3.783 8.377-13.242 8.107-24.591 8.918-13.241 1.081-31.617 1.351-44.048-2.972-2.972 12.971-11.079 12.971-26.752 14.322-14.052 1.352-48.642 4.054-54.857-10.809-1.081 28.644-35.13 9.998-45.129-7.026-3.243-5.675-5.405-11.35-7.026-17.565-7.837.81-15.673 1.621-23.511 2.702 2.443 3.663 1.549 9.052-8.105 12.431zM115.6 453.545c-5.674-23.239-18.646-49.722-33.508-54.046-22.429-6.756-68.909 23.51-66.207 54.586 12.701 19.457 39.994 35.67 59.181 36.481 17.835.81 35.94-11.08 39.724-28.914.539-2.432.81-5.134.81-8.107zm7.296-5.944c33.509-19.457 69.179-35.671 105.931-47.02-38.643-20.537-68.098-47.831-97.283-77.016-2.162 1.352-5.134 2.432-7.836 3.513-1.637 4.91 8.718 5.33 5.405 12.431-2.162 4.054-8.648 7.567-15.133 9.188-2.161 2.702-5.134 4.864-7.836 6.485h-.27c-.27 13.511-.27 27.024.27 40.535 8.939 15.964 15.426 33.314 16.752 51.884zm320.764 12.7c-36.752-21.348-74.044-41.345-115.659-52.965-13.782 6.215-27.833 11.349-42.155 15.403-2.162.811-2.162.811-4.324 0-11.89-3.783-23.239-8.107-34.859-13.241-40.265 11.62-77.286 29.185-112.416 50.803h-.27v.27c.27 0 .27 0 .27-.27 103.227 4.054 206.455 3.513 309.413 0zm27.023-64.045l-.27.27c.541-13.782.811-27.563.811-41.345-2.973-1.621-5.675-4.054-8.107-6.756-6.485-1.351-12.971-5.134-15.133-8.918-1.892-4.053 1.351-7.566 5.945-10.269-.27-.541-.541-1.621-.541-2.432-2.972-.811-5.405-1.892-7.567-3.243-31.616 29.455-65.396 56.749-103.498 76.746 38.914 11.62 75.935 28.104 111.875 47.561 1.05-14.692 7.231-35.749 16.485-51.614zm23.24 3.244c-14.593 4.323-27.834 30.806-33.509 54.046 0 23.826 21.278 37.897 40.534 37.022 19.186-.811 46.48-17.024 59.181-36.481 2.973-31.077-43.507-61.344-66.206-54.587zM290.709 134.133c.045 0 .089.003.134.003.046 0 .09-.003.136-.003h-.27zm0 96.743c28.645 0 51.884-21.618 51.884-48.371 0-36.092-40.507-58.079-72.151-44.318 9.458 2.972 16.484 11.62 16.484 21.618 0 23.257-33.291 31.955-46.48 11.35-7.297 34.067 19.368 59.721 50.263 59.721zM68.039 474.083c.54 6.486 12.16 12.701 21.618 9.458 6.756-2.703 14.593-10.539 17.295-16.214 2.973-7.026-1.081-19.997-9.728-18.375-8.917 1.621-29.725 16.754-29.185 25.131zm410.75-25.131c-8.377-1.621-12.431 11.349-9.458 18.375 2.432 5.675 10.269 13.511 17.295 16.214 9.187 3.243 21.078-2.972 21.348-9.458.811-8.377-20.267-23.51-29.185-25.131z"},"opencart":{"viewBox":"0 0 640 512","path":"M423.3 440.7c0 25.3-20.3 45.6-45.6 45.6s-45.8-20.3-45.8-45.6 20.6-45.8 45.8-45.8c25.4 0 45.6 20.5 45.6 45.8zm-253.9-45.8c-25.3 0-45.6 20.6-45.6 45.8s20.3 45.6 45.6 45.6 45.8-20.3 45.8-45.6-20.5-45.8-45.8-45.8zm291.7-270C158.9 124.9 81.9 112.1 0 25.7c34.4 51.7 53.3 148.9 373.1 144.2 333.3-5 130 86.1 70.8 188.9 186.7-166.7 319.4-233.9 17.2-233.9z"},"expeditedssl":{"viewBox":"0 0 496 512","path":"M248 43.4C130.6 43.4 35.4 138.6 35.4 256S130.6 468.6 248 468.6 460.6 373.4 460.6 256 365.4 43.4 248 43.4zm-97.4 132.9c0-53.7 43.7-97.4 97.4-97.4s97.4 43.7 97.4 97.4v26.6c0 5-3.9 8.9-8.9 8.9h-17.7c-5 0-8.9-3.9-8.9-8.9v-26.6c0-82.1-124-82.1-124 0v26.6c0 5-3.9 8.9-8.9 8.9h-17.7c-5 0-8.9-3.9-8.9-8.9v-26.6zM389.7 380c0 9.7-8 17.7-17.7 17.7H124c-9.7 0-17.7-8-17.7-17.7V238.3c0-9.7 8-17.7 17.7-17.7h248c9.7 0 17.7 8 17.7 17.7V380zm-248-137.3v132.9c0 2.5-1.9 4.4-4.4 4.4h-8.9c-2.5 0-4.4-1.9-4.4-4.4V242.7c0-2.5 1.9-4.4 4.4-4.4h8.9c2.5 0 4.4 1.9 4.4 4.4zm141.7 48.7c0 13-7.2 24.4-17.7 30.4v31.6c0 5-3.9 8.9-8.9 8.9h-17.7c-5 0-8.9-3.9-8.9-8.9v-31.6c-10.5-6.1-17.7-17.4-17.7-30.4 0-19.7 15.8-35.4 35.4-35.4s35.5 15.8 35.5 35.4zM248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 478.3C121 486.3 17.7 383 17.7 256S121 25.7 248 25.7 478.3 129 478.3 256 375 486.3 248 486.3z"},"cc-jcb":{"viewBox":"0 0 576 512","path":"M431.5 244.3V212c41.2 0 38.5.2 38.5.2 7.3 1.3 13.3 7.3 13.3 16 0 8.8-6 14.5-13.3 15.8-1.2.4-3.3.3-38.5.3zm42.8 20.2c-2.8-.7-3.3-.5-42.8-.5v35c39.6 0 40 .2 42.8-.5 7.5-1.5 13.5-8 13.5-17 0-8.7-6-15.5-13.5-17zM576 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48zM182 192.3h-57c0 67.1 10.7 109.7-35.8 109.7-19.5 0-38.8-5.7-57.2-14.8v28c30 8.3 68 8.3 68 8.3 97.9 0 82-47.7 82-131.2zm178.5 4.5c-63.4-16-165-14.9-165 59.3 0 77.1 108.2 73.6 165 59.2V287C312.9 311.7 253 309 253 256s59.8-55.6 107.5-31.2v-28zM544 286.5c0-18.5-16.5-30.5-38-32v-.8c19.5-2.7 30.3-15.5 30.3-30.2 0-19-15.7-30-37-31 0 0 6.3-.3-120.3-.3v127.5h122.7c24.3.1 42.3-12.9 42.3-33.2z"},"cc-diners-club":{"viewBox":"0 0 576 512","path":"M239.7 79.9c-96.9 0-175.8 78.6-175.8 175.8 0 96.9 78.9 175.8 175.8 175.8 97.2 0 175.8-78.9 175.8-175.8 0-97.2-78.6-175.8-175.8-175.8zm-39.9 279.6c-41.7-15.9-71.4-56.4-71.4-103.8s29.7-87.9 71.4-104.1v207.9zm79.8.3V151.6c41.7 16.2 71.4 56.7 71.4 104.1s-29.7 87.9-71.4 104.1zM528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM329.7 448h-90.3c-106.2 0-193.8-85.5-193.8-190.2C45.6 143.2 133.2 64 239.4 64h90.3c105 0 200.7 79.2 200.7 193.8 0 104.7-95.7 190.2-200.7 190.2z"},"creative-commons":{"viewBox":"0 0 496 512","path":"M245.83 214.87l-33.22 17.28c-9.43-19.58-25.24-19.93-27.46-19.93-22.13 0-33.22 14.61-33.22 43.84 0 23.57 9.21 43.84 33.22 43.84 14.47 0 24.65-7.09 30.57-21.26l30.55 15.5c-6.17 11.51-25.69 38.98-65.1 38.98-22.6 0-73.96-10.32-73.96-77.05 0-58.69 43-77.06 72.63-77.06 30.72-.01 52.7 11.95 65.99 35.86zm143.05 0l-32.78 17.28c-9.5-19.77-25.72-19.93-27.9-19.93-22.14 0-33.22 14.61-33.22 43.84 0 23.55 9.23 43.84 33.22 43.84 14.45 0 24.65-7.09 30.54-21.26l31 15.5c-2.1 3.75-21.39 38.98-65.09 38.98-22.69 0-73.96-9.87-73.96-77.05 0-58.67 42.97-77.06 72.63-77.06 30.71-.01 52.58 11.95 65.56 35.86zM247.56 8.05C104.74 8.05 0 123.11 0 256.05c0 138.49 113.6 248 247.56 248 129.93 0 248.44-100.87 248.44-248 0-137.87-106.62-248-248.44-248zm.87 450.81c-112.54 0-203.7-93.04-203.7-202.81 0-105.42 85.43-203.27 203.72-203.27 112.53 0 202.82 89.46 202.82 203.26-.01 121.69-99.68 202.82-202.84 202.82z"},"gg":{"viewBox":"0 0 512 512","path":"M179.2 230.4l102.4 102.4-102.4 102.4L0 256 179.2 76.8l44.8 44.8-25.6 25.6-19.2-19.2-128 128 128 128 51.5-51.5-77.1-76.5 25.6-25.6zM332.8 76.8L230.4 179.2l102.4 102.4 25.6-25.6-77.1-76.5 51.5-51.5 128 128-128 128-19.2-19.2-25.6 25.6 44.8 44.8L512 256 332.8 76.8z"},"gg-circle":{"viewBox":"0 0 512 512","path":"M257 8C120 8 9 119 9 256s111 248 248 248 248-111 248-248S394 8 257 8zm-49.5 374.8L81.8 257.1l125.7-125.7 35.2 35.4-24.2 24.2-11.1-11.1-77.2 77.2 77.2 77.2 26.6-26.6-53.1-52.9 24.4-24.4 77.2 77.2-75 75.2zm99-2.2l-35.2-35.2 24.1-24.4 11.1 11.1 77.2-77.2-77.2-77.2-26.5 26.5 53.1 52.9-24.4 24.4-77.2-77.2 75-75L432.2 255 306.5 380.6z"},"tripadvisor":{"viewBox":"0 0 576 512","path":"M166.4 280.521c0 13.236-10.73 23.966-23.966 23.966s-23.966-10.73-23.966-23.966 10.73-23.966 23.966-23.966 23.966 10.729 23.966 23.966zm264.962-23.956c-13.23 0-23.956 10.725-23.956 23.956 0 13.23 10.725 23.956 23.956 23.956 13.23 0 23.956-10.725 23.956-23.956-.001-13.231-10.726-23.956-23.956-23.956zm89.388 139.49c-62.667 49.104-153.276 38.109-202.379-24.559l-30.979 46.325-30.683-45.939c-48.277 60.39-135.622 71.891-197.885 26.055-64.058-47.158-77.759-137.316-30.601-201.374A186.762 186.762 0 0 0 0 139.416l90.286-.05a358.48 358.48 0 0 1 197.065-54.03 350.382 350.382 0 0 1 192.181 53.349l96.218.074a185.713 185.713 0 0 0-28.352 57.649c46.793 62.747 34.964 151.37-26.648 199.647zM259.366 281.761c-.007-63.557-51.535-115.075-115.092-115.068C80.717 166.7 29.2 218.228 29.206 281.785c.007 63.557 51.535 115.075 115.092 115.068 63.513-.075 114.984-51.539 115.068-115.052v-.04zm28.591-10.455c5.433-73.44 65.51-130.884 139.12-133.022a339.146 339.146 0 0 0-139.727-27.812 356.31 356.31 0 0 0-140.164 27.253c74.344 1.582 135.299 59.424 140.771 133.581zm251.706-28.767c-21.992-59.634-88.162-90.148-147.795-68.157-59.634 21.992-90.148 88.162-68.157 147.795v.032c22.038 59.607 88.198 90.091 147.827 68.113 59.615-22.004 90.113-88.162 68.125-147.783zm-326.039 37.975v.115c-.057 39.328-31.986 71.163-71.314 71.106-39.328-.057-71.163-31.986-71.106-71.314.057-39.328 31.986-71.163 71.314-71.106 39.259.116 71.042 31.94 71.106 71.199zm-24.512 0v-.084c-.051-25.784-20.994-46.645-46.778-46.594-25.784.051-46.645 20.994-46.594 46.777.051 25.784 20.994 46.645 46.777 46.594 25.726-.113 46.537-20.968 46.595-46.693zm313.423 0v.048c-.02 39.328-31.918 71.194-71.247 71.173s-71.194-31.918-71.173-71.247c.02-39.328 31.918-71.194 71.247-71.173 39.29.066 71.121 31.909 71.173 71.199zm-24.504-.008c-.009-25.784-20.918-46.679-46.702-46.67-25.784.009-46.679 20.918-46.67 46.702.009 25.784 20.918 46.678 46.702 46.67 25.765-.046 46.636-20.928 46.67-46.693v-.009z"},"odnoklassniki":{"viewBox":"0 0 320 512","path":"M275.1 334c-27.4 17.4-65.1 24.3-90 26.9l20.9 20.6 76.3 76.3c27.9 28.6-17.5 73.3-45.7 45.7-19.1-19.4-47.1-47.4-76.3-76.6L84 503.4c-28.2 27.5-73.6-17.6-45.4-45.7 19.4-19.4 47.1-47.4 76.3-76.3l20.6-20.6c-24.6-2.6-62.9-9.1-90.6-26.9-32.6-21-46.9-33.3-34.3-59 7.4-14.6 27.7-26.9 54.6-5.7 0 0 36.3 28.9 94.9 28.9s94.9-28.9 94.9-28.9c26.9-21.1 47.1-8.9 54.6 5.7 12.4 25.7-1.9 38-34.5 59.1zM30.3 129.7C30.3 58 88.6 0 160 0s129.7 58 129.7 129.7c0 71.4-58.3 129.4-129.7 129.4s-129.7-58-129.7-129.4zm66 0c0 35.1 28.6 63.7 63.7 63.7s63.7-28.6 63.7-63.7c0-35.4-28.6-64-63.7-64s-63.7 28.6-63.7 64z"},"odnoklassniki-square":{"viewBox":"0 0 448 512","path":"M184.2 177.1c0-22.1 17.9-40 39.8-40s39.8 17.9 39.8 40c0 22-17.9 39.8-39.8 39.8s-39.8-17.9-39.8-39.8zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-305.1 97.1c0 44.6 36.4 80.9 81.1 80.9s81.1-36.2 81.1-80.9c0-44.8-36.4-81.1-81.1-81.1s-81.1 36.2-81.1 81.1zm174.5 90.7c-4.6-9.1-17.3-16.8-34.1-3.6 0 0-22.7 18-59.3 18s-59.3-18-59.3-18c-16.8-13.2-29.5-5.5-34.1 3.6-7.9 16.1 1.1 23.7 21.4 37 17.3 11.1 41.2 15.2 56.6 16.8l-12.9 12.9c-18.2 18-35.5 35.5-47.7 47.7-17.6 17.6 10.7 45.8 28.4 28.6l47.7-47.9c18.2 18.2 35.7 35.7 47.7 47.9 17.6 17.2 46-10.7 28.6-28.6l-47.7-47.7-13-12.9c15.5-1.6 39.1-5.9 56.2-16.8 20.4-13.3 29.3-21 21.5-37z"},"get-pocket":{"viewBox":"0 0 448 512","path":"M407.6 64h-367C18.5 64 0 82.5 0 104.6v135.2C0 364.5 99.7 464 224.2 464c124 0 223.8-99.5 223.8-224.2V104.6c0-22.4-17.7-40.6-40.4-40.6zm-162 268.5c-12.4 11.8-31.4 11.1-42.4 0C89.5 223.6 88.3 227.4 88.3 209.3c0-16.9 13.8-30.7 30.7-30.7 17 0 16.1 3.8 105.2 89.3 90.6-86.9 88.6-89.3 105.5-89.3 16.9 0 30.7 13.8 30.7 30.7 0 17.8-2.9 15.7-114.8 123.2z"},"wikipedia-w":{"viewBox":"0 0 640 512","path":"M640 51.2l-.3 12.2c-28.1.8-45 15.8-55.8 40.3-25 57.8-103.3 240-155.3 358.6H415l-81.9-193.1c-32.5 63.6-68.3 130-99.2 193.1-.3.3-15 0-15-.3C172 352.3 122.8 243.4 75.8 133.4 64.4 106.7 26.4 63.4.2 63.7c0-3.1-.3-10-.3-14.2h161.9v13.9c-19.2 1.1-52.8 13.3-43.3 34.2 21.9 49.7 103.6 240.3 125.6 288.6 15-29.7 57.8-109.2 75.3-142.8-13.9-28.3-58.6-133.9-72.8-160-9.7-17.8-36.1-19.4-55.8-19.7V49.8l142.5.3v13.1c-19.4.6-38.1 7.8-29.4 26.1 18.9 40 30.6 68.1 48.1 104.7 5.6-10.8 34.7-69.4 48.1-100.8 8.9-20.6-3.9-28.6-38.6-29.4.3-3.6 0-10.3.3-13.6 44.4-.3 111.1-.3 123.1-.6v13.6c-22.5.8-45.8 12.8-58.1 31.7l-59.2 122.8c6.4 16.1 63.3 142.8 69.2 156.7L559.2 91.8c-8.6-23.1-36.4-28.1-47.2-28.3V49.6l127.8 1.1.2.5z"},"safari":{"viewBox":"0 0 512 512","path":"M236.9 256.8c0-9.1 6.6-17.7 16.3-17.7 8.9 0 17.4 6.4 17.4 16.1 0 9.1-6.4 17.7-16.1 17.7-9 0-17.6-6.7-17.6-16.1zM504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zm-26.6 0c0-122.3-99.1-221.4-221.4-221.4S34.6 133.7 34.6 256 133.7 477.4 256 477.4 477.4 378.3 477.4 256zm-72.5 96.6c0 3.6 13 10.2 16.3 12.2-27.4 41.5-69.8 71.4-117.9 83.3l-4.4-18.5c-.3-2.5-1.9-2.8-4.2-2.8-1.9 0-3 2.8-2.8 4.2l4.4 18.8c-13.3 2.8-26.8 4.2-40.4 4.2-36.3 0-72-10.2-103-29.1 1.7-2.8 12.2-18 12.2-20.2 0-1.9-1.7-3.6-3.6-3.6-3.9 0-12.2 16.6-14.7 19.9-41.8-27.7-72-70.6-83.6-119.6l19.1-4.2c2.2-.6 2.8-2.2 2.8-4.2 0-1.9-2.8-3-4.4-2.8L62 294.5c-2.5-12.7-3.9-25.5-3.9-38.5 0-37.1 10.5-73.6 30.2-104.9 2.8 1.7 16.1 10.8 18.3 10.8 1.9 0 3.6-1.4 3.6-3.3 0-3.9-14.7-11.3-18-13.6 28.2-41.2 71.1-70.9 119.8-81.9l4.2 18.5c.6 2.2 2.2 2.8 4.2 2.8s3-2.8 2.8-4.4L219 61.7c12.2-2.2 24.6-3.6 37.1-3.6 37.1 0 73.3 10.5 104.9 30.2-1.9 2.8-10.8 15.8-10.8 18 0 1.9 1.4 3.6 3.3 3.6 3.9 0 11.3-14.4 13.3-17.7 41 27.7 70.3 70 81.7 118.2l-15.5 3.3c-2.5.6-2.8 2.2-2.8 4.4 0 1.9 2.8 3 4.2 2.8l15.8-3.6c2.5 12.7 3.9 25.7 3.9 38.7 0 36.3-10 72-28.8 102.7-2.8-1.4-14.4-9.7-16.6-9.7-2.1 0-3.8 1.7-3.8 3.6zm-33.2-242.2c-13 12.2-134.2 123.7-137.6 129.5l-96.6 160.5c12.7-11.9 134.2-124 137.3-129.3l96.9-160.7z"},"chrome":{"viewBox":"0 0 496 512","path":"M131.5 217.5L55.1 100.1c47.6-59.2 119-91.8 192-92.1 42.3-.3 85.5 10.5 124.8 33.2 43.4 25.2 76.4 61.4 97.4 103L264 133.4c-58.1-3.4-113.4 29.3-132.5 84.1zm32.9 38.5c0 46.2 37.4 83.6 83.6 83.6s83.6-37.4 83.6-83.6-37.4-83.6-83.6-83.6-83.6 37.3-83.6 83.6zm314.9-89.2L339.6 174c37.9 44.3 38.5 108.2 6.6 157.2L234.1 503.6c46.5 2.5 94.4-7.7 137.8-32.9 107.4-62 150.9-192 107.4-303.9zM133.7 303.6L40.4 120.1C14.9 159.1 0 205.9 0 256c0 124 90.8 226.7 209.5 244.9l63.7-124.8c-57.6 10.8-113.2-20.8-139.5-72.5z"},"firefox":{"viewBox":"0 0 480 512","path":"M478.1 235.3c-.7-4.5-1.4-7.1-1.4-7.1s-1.8 2-4.7 5.9c-.9-10.7-2.8-21.2-5.8-31.6-3.7-12.9-8.5-25.4-14.5-37.4-3.8-8-8.2-15.6-13.3-22.8-1.8-2.7-3.7-5.4-5.6-7.9-8.8-14.4-19-23.3-30.7-40-7.6-12.8-12.9-26.9-15.4-41.6-3.2 8.9-5.7 18-7.4 27.3-12.1-12.2-22.5-20.8-28.9-26.7C319.4 24.2 323 9.1 323 9.1S264.7 74.2 289.9 142c8.7 23 23.8 43.1 43.4 57.9 24.4 20.2 50.8 36 64.7 76.6-11.2-21.3-28.1-39.2-48.8-51.5 6.2 14.7 9.4 30.6 9.3 46.5 0 61-49.6 110.5-110.6 110.4-8.3 0-16.5-.9-24.5-2.8-9.5-1.8-18.7-4.9-27.4-9.3-12.9-7.8-24-18.1-32.8-30.3l-.2-.3 2 .7c4.6 1.6 9.2 2.8 14 3.7 18.7 4 38.3 1.7 55.6-6.6 17.5-9.7 28-16.9 36.6-14h.2c8.4 2.7 15-5.5 9-14-10.4-13.4-27.4-20-44.2-17-17.5 2.5-33.5 15-56.4 2.9-1.5-.8-2.9-1.6-4.3-2.5-1.6-.9 4.9 1.3 3.4.3-5-2.5-9.8-5.4-14.4-8.6-.3-.3 3.5 1.1 3.1.8-5.9-4-11-9.2-15-15.2-4.1-7.4-4.5-16.4-1-24.1 2.1-3.8 5.4-6.9 9.3-8.7 3 1.5 4.8 2.6 4.8 2.6s-1.3-2.5-2.1-3.8c.3-.1.5 0 .8-.2 2.6 1.1 8.3 4 11.4 5.8 2.1 1.1 3.8 2.7 5.2 4.7 0 0 1-.5.3-2.7-1.1-2.7-2.9-5-5.4-6.6h.2c2.3 1.2 4.5 2.6 6.6 4.1 1.9-4.4 2.8-9.2 2.6-14 .2-2.6-.2-5.3-1.1-7.8-.8-1.6.5-2.2 1.9-.5-.2-1.3-.7-2.5-1.2-3.7v-.1s.8-1.1 1.2-1.5c1-1 2.1-1.9 3.4-2.7 7.2-4.5 14.8-8.4 22.7-11.6 6.4-2.8 11.7-4.9 12.8-5.6 1.6-1 3.1-2.2 4.5-3.5 5.3-4.5 9-10.8 10.2-17.7.1-.9.2-1.8.3-2.8v-1.5c-.9-3.5-6.9-6.1-38.4-9.1-11.1-1.8-20-10.1-22.5-21.1v.1c-.4 1.1-.9 2.3-1.3 3.5.4-1.2.8-2.3 1.3-3.5v-.2c6-15.7 16.8-29.1 30.8-38.3.8-.7-3.2.2-2.4-.5 2.7-1.3 5.4-2.5 8.2-3.5 1.4-.6-6-3.4-12.6-2.7-4 .2-8 1.2-11.7 2.8 1.6-1.3 6.2-3.1 5.1-3.1-8.4 1.6-16.5 4.7-23.9 9 0-.8.1-1.5.5-2.2-5.9 2.5-11 6.5-15 11.5.1-.9.2-1.8.2-2.7-2.7 2-5.2 4.3-7.3 6.9l-.1.1c-17.4-6.7-36.3-8.3-54.6-4.7l-.2-.1h.2c-3.8-3.1-7.1-6.7-9.7-10.9l-.2.1-.4-.2c-1.2-1.8-2.4-3.8-3.7-6-.9-1.6-1.8-3.4-2.7-5.2 0-.1-.1-.2-.2-.2-.4 0-.6 1.7-.9 1.3v-.1c-3.2-8.3-4.7-17.2-4.4-26.2l-.2.1c-5.1 3.5-9 8.6-11.1 14.5-.9 2.1-1.6 3.3-2.2 4.5v-.5c.1-1.1.6-3.3.5-3.1-.1.2-.2.3-.3.4-1.5 1.7-2.9 3.7-3.9 5.8-.9 1.9-1.7 3.9-2.3 5.9-.1.3 0-.3 0-1s.1-2 0-1.7l-.3.7c-6.7 14.9-10.9 30.8-12.4 47.1-.4 2.8-.6 5.6-.5 8.3v.2c-4.8 5.2-9 11-12.7 17.1-12.1 20.4-21.1 42.5-26.8 65.6 4-8.8 8.8-17.2 14.3-25.1C5.5 228.5 0 257.4 0 286.6c1.8-8.6 4.2-17 7-25.3-1.7 34.5 4.9 68.9 19.4 100.3 19.4 43.5 51.6 80 92.3 104.7 16.6 11.2 34.7 19.9 53.8 25.8 2.5.9 5.1 1.8 7.7 2.7-.8-.3-1.6-.7-2.4-1 22.6 6.8 46.2 10.3 69.8 10.3 83.7 0 111.3-31.9 113.8-35 4.1-3.7 7.5-8.2 9.9-13.3 1.6-.7 3.2-1.4 4.9-2.1l1-.5 1.9-.9c12.6-5.9 24.5-13.4 35.3-22.1 16.3-11.7 27.9-28.7 32.9-48.1 3-7.1 3.1-15 .4-22.2.9-1.4 1.7-2.8 2.7-4.3 18-28.9 28.2-61.9 29.6-95.9v-2.8c0-7.3-.6-14.5-1.9-21.6z"},"opera":{"viewBox":"0 0 496 512","path":"M313.9 32.7c-170.2 0-252.6 223.8-147.5 355.1 36.5 45.4 88.6 75.6 147.5 75.6 36.3 0 70.3-11.1 99.4-30.4-43.8 39.2-101.9 63-165.3 63-3.9 0-8 0-11.9-.3C104.6 489.6 0 381.1 0 248 0 111 111 0 248 0h.8c63.1.3 120.7 24.1 164.4 63.1-29-19.4-63.1-30.4-99.3-30.4zm101.8 397.7c-40.9 24.7-90.7 23.6-132-5.8 56.2-20.5 97.7-91.6 97.7-176.6 0-84.7-41.2-155.8-97.4-176.6 41.8-29.2 91.2-30.3 132.9-5 105.9 98.7 105.5 265.7-1.2 364z"},"internet-explorer":{"viewBox":"0 0 512 512","path":"M483.049 159.706c10.855-24.575 21.424-60.438 21.424-87.871 0-72.722-79.641-98.371-209.673-38.577-107.632-7.181-211.221 73.67-237.098 186.457 30.852-34.862 78.271-82.298 121.977-101.158C125.404 166.85 79.128 228.002 43.992 291.725 23.246 329.651 0 390.94 0 436.747c0 98.575 92.854 86.5 180.251 42.006 31.423 15.43 66.559 15.573 101.695 15.573 97.124 0 184.249-54.294 216.814-146.022H377.927c-52.509 88.593-196.819 52.996-196.819-47.436H509.9c6.407-43.581-1.655-95.715-26.851-141.162zM64.559 346.877c17.711 51.15 53.703 95.871 100.266 123.304-88.741 48.94-173.267 29.096-100.266-123.304zm115.977-108.873c2-55.151 50.276-94.871 103.98-94.871 53.418 0 101.981 39.72 103.981 94.871H180.536zm184.536-187.6c21.425-10.287 48.563-22.003 72.558-22.003 31.422 0 54.274 21.717 54.274 53.722 0 20.003-7.427 49.007-14.569 67.867-26.28-42.292-65.986-81.584-112.263-99.586z"},"contao":{"viewBox":"0 0 512 512","path":"M45.4 305c14.4 67.1 26.4 129 68.2 175H34c-18.7 0-34-15.2-34-34V66c0-18.7 15.2-34 34-34h57.7C77.9 44.6 65.6 59.2 54.8 75.6c-45.4 70-27 146.8-9.4 229.4zM478 32h-90.2c21.4 21.4 39.2 49.5 52.7 84.1l-137.1 29.3c-14.9-29-37.8-53.3-82.6-43.9-24.6 5.3-41 19.3-48.3 34.6-8.8 18.7-13.2 39.8 8.2 140.3 21.1 100.2 33.7 117.7 49.5 131.2 12.9 11.1 33.4 17 58.3 11.7 44.5-9.4 55.7-40.7 57.4-73.2l137.4-29.6c3.2 71.5-18.7 125.2-57.4 163.6H478c18.7 0 34-15.2 34-34V66c0-18.8-15.2-34-34-34z"},"500px":{"viewBox":"0 0 448 512","path":"M103.3 344.3c-6.5-14.2-6.9-18.3 7.4-23.1 25.6-8 8 9.2 43.2 49.2h.3v-93.9c1.2-50.2 44-92.2 97.7-92.2 53.9 0 97.7 43.5 97.7 96.8 0 63.4-60.8 113.2-128.5 93.3-10.5-4.2-2.1-31.7 8.5-28.6 53 0 89.4-10.1 89.4-64.4 0-61-77.1-89.6-116.9-44.6-23.5 26.4-17.6 42.1-17.6 157.6 50.7 31 118.3 22 160.4-20.1 24.8-24.8 38.5-58 38.5-93 0-35.2-13.8-68.2-38.8-93.3-24.8-24.8-57.8-38.5-93.3-38.5s-68.8 13.8-93.5 38.5c-.3.3-16 16.5-21.2 23.9l-.5.6c-3.3 4.7-6.3 9.1-20.1 6.1-6.9-1.7-14.3-5.8-14.3-11.8V20c0-5 3.9-10.5 10.5-10.5h241.3c8.3 0 8.3 11.6 8.3 15.1 0 3.9 0 15.1-8.3 15.1H130.3v132.9h.3c104.2-109.8 282.8-36 282.8 108.9 0 178.1-244.8 220.3-310.1 62.8zm63.3-260.8c-.5 4.2 4.6 24.5 14.6 20.6C306 56.6 384 144.5 390.6 144.5c4.8 0 22.8-15.3 14.3-22.8-93.2-89-234.5-57-238.3-38.2zM393 414.7C283 524.6 94 475.5 61 310.5c0-12.2-30.4-7.4-28.9 3.3 24 173.4 246 256.9 381.6 121.3 6.9-7.8-12.6-28.4-20.7-20.4zM213.6 306.6c0 4 4.3 7.3 5.5 8.5 3 3 6.1 4.4 8.5 4.4 3.8 0 2.6.2 22.3-19.5 19.6 19.3 19.1 19.5 22.3 19.5 5.4 0 18.5-10.4 10.7-18.2L265.6 284l18.2-18.2c6.3-6.8-10.1-21.8-16.2-15.7L249.7 268c-18.6-18.8-18.4-19.5-21.5-19.5-5 0-18 11.7-12.4 17.3L234 284c-18.1 17.9-20.4 19.2-20.4 22.6z"},"amazon":{"viewBox":"0 0 448 512","path":"M257.2 162.7c-48.7 1.8-169.5 15.5-169.5 117.5 0 109.5 138.3 114 183.5 43.2 6.5 10.2 35.4 37.5 45.3 46.8l56.8-56S341 288.9 341 261.4V114.3C341 89 316.5 32 228.7 32 140.7 32 94 87 94 136.3l73.5 6.8c16.3-49.5 54.2-49.5 54.2-49.5 40.7-.1 35.5 29.8 35.5 69.1zm0 86.8c0 80-84.2 68-84.2 17.2 0-47.2 50.5-56.7 84.2-57.8v40.6zm136 163.5c-7.7 10-70 67-174.5 67S34.2 408.5 9.7 379c-6.8-7.7 1-11.3 5.5-8.3C88.5 415.2 203 488.5 387.7 401c7.5-3.7 13.3 2 5.5 12zm39.8 2.2c-6.5 15.8-16 26.8-21.2 31-5.5 4.5-9.5 2.7-6.5-3.8s19.3-46.5 12.7-55c-6.5-8.3-37-4.3-48-3.2-10.8 1-13 2-14-.3-2.3-5.7 21.7-15.5 37.5-17.5 15.7-1.8 41-.8 46 5.7 3.7 5.1 0 27.1-6.5 43.1z"},"houzz":{"viewBox":"0 0 414 512","path":"M258.9 330.7H154.3V480H0V32h109.5v104.5l305.1 85.6V480H258.9V330.7z"},"vimeo":{"viewBox":"0 0 448 512","path":"M403.2 32H44.8C20.1 32 0 52.1 0 76.8v358.4C0 459.9 20.1 480 44.8 480h358.4c24.7 0 44.8-20.1 44.8-44.8V76.8c0-24.7-20.1-44.8-44.8-44.8zM377 180.8c-1.4 31.5-23.4 74.7-66 129.4-44 57.2-81.3 85.8-111.7 85.8-18.9 0-34.8-17.4-47.9-52.3-25.5-93.3-36.4-148-57.4-148-2.4 0-10.9 5.1-25.4 15.2l-15.2-19.6c37.3-32.8 72.9-69.2 95.2-71.2 25.2-2.4 40.7 14.8 46.5 51.7 20.7 131.2 29.9 151 67.6 91.6 13.5-21.4 20.8-37.7 21.8-48.9 3.5-33.2-25.9-30.9-45.8-22.4 15.9-52.1 46.3-77.4 91.2-76 33.3.9 49 22.5 47.1 64.7z"},"black-tie":{"viewBox":"0 0 448 512","path":"M0 32v448h448V32H0zm316.5 325.2L224 445.9l-92.5-88.7 64.5-184-64.5-86.6h184.9L252 173.2l64.5 184z"},"fonticons":{"viewBox":"0 0 448 512","path":"M0 32v448h448V32H0zm167.4 196h67.4l-11.1 37.3H168v112.9c0 5.8-2 6.7 3.2 7.3l43.5 4.1v25.1H84V389l21.3-2c5.2-.6 6.7-2.3 6.7-7.9V267.7c0-2.3-2.9-2.3-5.8-2.3H84V228h28v-21c0-49.6 26.5-70 77.3-70 34.1 0 64.7 8.2 64.7 52.8l-50.7 6.1c.3-18.7-4.4-23-16.3-23-18.4 0-19 9.9-19 27.4v23.3c0 2.4-3.5 4.4-.6 4.4zM364 414.7H261.3v-25.1l20.4-2.6c5.2-.6 7.6-1.7 7.6-7.3V271.8c0-4.1-2.9-6.7-6.7-7.9l-24.2-6.4 6.7-29.5h80.2v151.7c0 5.8-2.6 6.4 2.9 7.3l15.7 2.6v25.1zm-21.9-255.5l9 33.2-7.3 7.3-31.2-16.6-31.2 16.6-7.3-7.3 9-33.2-21.8-24.2 3.5-9.6h27.7l15.5-28h9.3l15.5 28h27.7l3.5 9.6-21.9 24.2z"},"reddit-alien":{"viewBox":"0 0 512 512","path":"M440.3 203.5c-15 0-28.2 6.2-37.9 15.9-35.7-24.7-83.8-40.6-137.1-42.3L293 52.3l88.2 19.8c0 21.6 17.6 39.2 39.2 39.2 22 0 39.7-18.1 39.7-39.7s-17.6-39.7-39.7-39.7c-15.4 0-28.7 9.3-35.3 22l-97.4-21.6c-4.9-1.3-9.7 2.2-11 7.1L246.3 177c-52.9 2.2-100.5 18.1-136.3 42.8-9.7-10.1-23.4-16.3-38.4-16.3-55.6 0-73.8 74.6-22.9 100.1-1.8 7.9-2.6 16.3-2.6 24.7 0 83.8 94.4 151.7 210.3 151.7 116.4 0 210.8-67.9 210.8-151.7 0-8.4-.9-17.2-3.1-25.1 49.9-25.6 31.5-99.7-23.8-99.7zM129.4 308.9c0-22 17.6-39.7 39.7-39.7 21.6 0 39.2 17.6 39.2 39.7 0 21.6-17.6 39.2-39.2 39.2-22 .1-39.7-17.6-39.7-39.2zm214.3 93.5c-36.4 36.4-139.1 36.4-175.5 0-4-3.5-4-9.7 0-13.7 3.5-3.5 9.7-3.5 13.2 0 27.8 28.5 120 29 149 0 3.5-3.5 9.7-3.5 13.2 0 4.1 4 4.1 10.2.1 13.7zm-.8-54.2c-21.6 0-39.2-17.6-39.2-39.2 0-22 17.6-39.7 39.2-39.7 22 0 39.7 17.6 39.7 39.7-.1 21.5-17.7 39.2-39.7 39.2z"},"edge":{"viewBox":"0 0 512 512","path":"M25.714 228.163c.111-.162.23-.323.342-.485-.021.162-.045.323-.065.485h-.277zm460.572 15.508c0-44.032-7.754-84.465-28.801-122.405C416.498 47.879 343.912 8.001 258.893 8.001 118.962 7.724 40.617 113.214 26.056 227.679c42.429-61.312 117.073-121.376 220.375-124.966 0 0 109.666 0 99.419 104.957H169.997c6.369-37.386 18.554-58.986 34.339-78.926-75.048 34.893-121.85 96.096-120.742 188.315.83 71.448 50.124 144.836 120.743 171.976 83.357 31.847 192.776 7.2 240.132-21.324V363.307c-80.864 56.494-270.871 60.925-272.255-67.572h314.073v-52.064z"},"codiepie":{"viewBox":"0 0 472 512","path":"M422.5 202.9c30.7 0 33.5 53.1-.3 53.1h-10.8v44.3h-26.6v-97.4h37.7zM472 352.6C429.9 444.5 350.4 504 248 504 111 504 0 393 0 256S111 8 248 8c97.4 0 172.8 53.7 218.2 138.4l-186 108.8L472 352.6zm-38.5 12.5l-60.3-30.7c-27.1 44.3-70.4 71.4-122.4 71.4-82.5 0-149.2-66.7-149.2-148.9 0-82.5 66.7-149.2 149.2-149.2 48.4 0 88.9 23.5 116.9 63.4l59.5-34.6c-40.7-62.6-104.7-100-179.2-100-121.2 0-219.5 98.3-219.5 219.5S126.8 475.5 248 475.5c78.6 0 146.5-42.1 185.5-110.4z"},"modx":{"viewBox":"0 0 448 512","path":"M356 241.8l36.7 23.7V480l-133-83.8L356 241.8zM440 75H226.3l-23 37.8 153.5 96.5L440 75zm-89 142.8L55.2 32v214.5l46 29L351 217.8zM97 294.2L8 437h213.7l125-200.5L97 294.2z"},"fort-awesome":{"viewBox":"0 0 512 512","path":"M489.2 287.9h-27.4c-2.6 0-4.6 2-4.6 4.6v32h-36.6V146.2c0-2.6-2-4.6-4.6-4.6h-27.4c-2.6 0-4.6 2-4.6 4.6v32h-36.6v-32c0-2.6-2-4.6-4.6-4.6h-27.4c-2.6 0-4.6 2-4.6 4.6v32h-36.6v-32c0-6-8-4.6-11.7-4.6v-38c8.3-2 17.1-3.4 25.7-3.4 10.9 0 20.9 4.3 31.4 4.3 4.6 0 27.7-1.1 27.7-8v-60c0-2.6-2-4.6-4.6-4.6-5.1 0-15.1 4.3-24 4.3-9.7 0-20.9-4.3-32.6-4.3-8 0-16 1.1-23.7 2.9v-4.9c5.4-2.6 9.1-8.3 9.1-14.3 0-20.7-31.4-20.8-31.4 0 0 6 3.7 11.7 9.1 14.3v111.7c-3.7 0-11.7-1.4-11.7 4.6v32h-36.6v-32c0-2.6-2-4.6-4.6-4.6h-27.4c-2.6 0-4.6 2-4.6 4.6v32H128v-32c0-2.6-2-4.6-4.6-4.6H96c-2.6 0-4.6 2-4.6 4.6v178.3H54.8v-32c0-2.6-2-4.6-4.6-4.6H22.8c-2.6 0-4.6 2-4.6 4.6V512h182.9v-96c0-72.6 109.7-72.6 109.7 0v96h182.9V292.5c.1-2.6-1.9-4.6-4.5-4.6zm-288.1-4.5c0 2.6-2 4.6-4.6 4.6h-27.4c-2.6 0-4.6-2-4.6-4.6v-64c0-2.6 2-4.6 4.6-4.6h27.4c2.6 0 4.6 2 4.6 4.6v64zm146.4 0c0 2.6-2 4.6-4.6 4.6h-27.4c-2.6 0-4.6-2-4.6-4.6v-64c0-2.6 2-4.6 4.6-4.6h27.4c2.6 0 4.6 2 4.6 4.6v64z"},"usb":{"viewBox":"0 0 640 512","path":"M641.5 256c0 3.1-1.7 6.1-4.5 7.5L547.9 317c-1.4.8-2.8 1.4-4.5 1.4-1.4 0-3.1-.3-4.5-1.1-2.8-1.7-4.5-4.5-4.5-7.8v-35.6H295.7c25.3 39.6 40.5 106.9 69.6 106.9H392V354c0-5 3.9-8.9 8.9-8.9H490c5 0 8.9 3.9 8.9 8.9v89.1c0 5-3.9 8.9-8.9 8.9h-89.1c-5 0-8.9-3.9-8.9-8.9v-26.7h-26.7c-75.4 0-81.1-142.5-124.7-142.5H140.3c-8.1 30.6-35.9 53.5-69 53.5C32 327.3 0 295.3 0 256s32-71.3 71.3-71.3c33.1 0 61 22.8 69 53.5 39.1 0 43.9 9.5 74.6-60.4C255 88.7 273 95.7 323.8 95.7c7.5-20.9 27-35.6 50.4-35.6 29.5 0 53.5 23.9 53.5 53.5s-23.9 53.5-53.5 53.5c-23.4 0-42.9-14.8-50.4-35.6H294c-29.1 0-44.3 67.4-69.6 106.9h310.1v-35.6c0-3.3 1.7-6.1 4.5-7.8 2.8-1.7 6.4-1.4 8.9.3l89.1 53.5c2.8 1.1 4.5 4.1 4.5 7.2z"},"product-hunt":{"viewBox":"0 0 512 512","path":"M326.3 218.8c0 20.5-16.7 37.2-37.2 37.2h-70.3v-74.4h70.3c20.5 0 37.2 16.7 37.2 37.2zM504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zm-128.1-37.2c0-47.9-38.9-86.8-86.8-86.8H169.2v248h49.6v-74.4h70.3c47.9 0 86.8-38.9 86.8-86.8z"},"mixcloud":{"viewBox":"0 0 640 512","path":"M424.43 219.729C416.124 134.727 344.135 68 256.919 68c-72.266 0-136.224 46.516-159.205 114.074-54.545 8.029-96.63 54.822-96.63 111.582 0 62.298 50.668 112.966 113.243 112.966h289.614c52.329 0 94.969-42.362 94.969-94.693 0-45.131-32.118-83.063-74.48-92.2zm-20.489 144.53H114.327c-39.04 0-70.881-31.564-70.881-70.604s31.841-70.604 70.881-70.604c18.827 0 36.548 7.475 49.838 20.766 19.963 19.963 50.133-10.227 30.18-30.18-14.675-14.398-32.672-24.365-52.053-29.349 19.935-44.3 64.79-73.926 114.628-73.926 69.496 0 125.979 56.483 125.979 125.702 0 13.568-2.215 26.857-6.369 39.594-8.943 27.517 32.133 38.939 40.147 13.29 2.769-8.306 4.984-16.889 6.369-25.472 19.381 7.476 33.502 26.303 33.502 48.453 0 28.795-23.535 52.33-52.607 52.33zm235.069-52.33c0 44.024-12.737 86.386-37.102 122.657-4.153 6.092-10.798 9.414-17.72 9.414-16.317 0-27.127-18.826-17.443-32.949 19.381-29.349 29.903-63.682 29.903-99.122s-10.521-69.773-29.903-98.845c-15.655-22.831 19.361-47.24 35.163-23.534 24.366 35.993 37.102 78.356 37.102 122.379zm-70.88 0c0 31.565-9.137 62.021-26.857 88.325-4.153 6.091-10.798 9.136-17.72 9.136-17.201 0-27.022-18.979-17.443-32.948 13.013-19.104 19.658-41.255 19.658-64.513 0-22.981-6.645-45.408-19.658-64.512-15.761-22.986 19.008-47.095 35.163-23.535 17.719 26.026 26.857 56.483 26.857 88.047z"},"scribd":{"viewBox":"0 0 384 512","path":"M42.3 252.7c-16.1-19-24.7-45.9-24.8-79.9 0-100.4 75.2-153.1 167.2-153.1 98.6-1.6 156.8 49 184.3 70.6l-50.5 72.1-37.3-24.6 26.9-38.6c-36.5-24-79.4-36.5-123-35.8-50.7-.8-111.7 27.2-111.7 76.2 0 18.7 11.2 20.7 28.6 15.6 23.3-5.3 41.9.6 55.8 14 26.4 24.3 23.2 67.6-.7 91.9-29.2 29.5-85.2 27.3-114.8-8.4zm317.7 5.9c-15.5-18.8-38.9-29.4-63.2-28.6-38.1-2-71.1 28-70.5 67.2-.7 16.8 6 33 18.4 44.3 14.1 13.9 33 19.7 56.3 14.4 17.4-5.1 28.6-3.1 28.6 15.6 0 4.3-.5 8.5-1.4 12.7-16.7 40.9-59.5 64.4-121.4 64.4-51.9.2-102.4-16.4-144.1-47.3l33.7-39.4-35.6-27.4L0 406.3l15.4 13.8c52.5 46.8 120.4 72.5 190.7 72.2 51.4 0 94.4-10.5 133.6-44.1 57.1-51.4 54.2-149.2 20.3-189.6z"},"bluetooth":{"viewBox":"0 0 448 512","path":"M292.6 171.1L249.7 214l-.3-86 43.2 43.1m-43.2 219.8l43.1-43.1-42.9-42.9-.2 86zM416 259.4C416 465 344.1 512 230.9 512S32 465 32 259.4 115.4 0 228.6 0 416 53.9 416 259.4zm-158.5 0l79.4-88.6L211.8 36.5v176.9L138 139.6l-27 26.9 92.7 93-92.7 93 26.9 26.9 73.8-73.8 2.3 170 127.4-127.5-83.9-88.7z"},"bluetooth-b":{"viewBox":"0 0 320 512","path":"M196.48 260.023l92.626-103.333L143.125 0v206.33l-86.111-86.111-31.406 31.405 108.061 108.399L25.608 368.422l31.406 31.405 86.111-86.111L145.84 512l148.552-148.644-97.912-103.333zm40.86-102.996l-49.977 49.978-.338-100.295 50.315 50.317zM187.363 313.04l49.977 49.978-50.315 50.316.338-100.294z"},"gitlab":{"viewBox":"0 0 512 512","path":"M29.782 199.732L256 493.714 8.074 309.699c-6.856-5.142-9.712-13.996-7.141-21.993l28.849-87.974zm75.405-174.806c-3.142-8.854-15.709-8.854-18.851 0L29.782 199.732h131.961L105.187 24.926zm56.556 174.806L256 493.714l94.257-293.982H161.743zm349.324 87.974l-28.849-87.974L256 493.714l247.926-184.015c6.855-5.142 9.711-13.996 7.141-21.993zm-85.404-262.78c-3.142-8.854-15.709-8.854-18.851 0l-56.555 174.806h131.961L425.663 24.926z"},"wpbeginner":{"viewBox":"0 0 512 512","path":"M462.799 322.374C519.01 386.682 466.961 480 370.944 480c-39.602 0-78.824-17.687-100.142-50.04-6.887.356-22.702.356-29.59 0C219.848 462.381 180.588 480 141.069 480c-95.49 0-148.348-92.996-91.855-157.626C-29.925 190.523 80.479 32 256.006 32c175.632 0 285.87 158.626 206.793 290.374zm-339.647-82.972h41.529v-58.075h-41.529v58.075zm217.18 86.072v-23.839c-60.506 20.915-132.355 9.198-187.589-33.971l.246 24.897c51.101 46.367 131.746 57.875 187.343 32.913zm-150.753-86.072h166.058v-58.075H189.579v58.075z"},"wpforms":{"viewBox":"0 0 448 512","path":"M448 75.2v361.7c0 24.3-19 43.2-43.2 43.2H43.2C19.3 480 0 461.4 0 436.8V75.2C0 51.1 18.8 32 43.2 32h361.7c24 0 43.1 18.8 43.1 43.2zm-37.3 361.6V75.2c0-3-2.6-5.8-5.8-5.8h-9.3L285.3 144 224 94.1 162.8 144 52.5 69.3h-9.3c-3.2 0-5.8 2.8-5.8 5.8v361.7c0 3 2.6 5.8 5.8 5.8h361.7c3.2.1 5.8-2.7 5.8-5.8zM150.2 186v37H76.7v-37h73.5zm0 74.4v37.3H76.7v-37.3h73.5zm11.1-147.3l54-43.7H96.8l64.5 43.7zm210 72.9v37h-196v-37h196zm0 74.4v37.3h-196v-37.3h196zm-84.6-147.3l64.5-43.7H232.8l53.9 43.7zM371.3 335v37.3h-99.4V335h99.4z"},"envira":{"viewBox":"0 0 448 512","path":"M0 32c477.6 0 366.6 317.3 367.1 366.3L448 480h-26l-70.4-71.2c-39 4.2-124.4 34.5-214.4-37C47 300.3 52 214.7 0 32zm79.7 46c-49.7-23.5-5.2 9.2-5.2 9.2 45.2 31.2 66 73.7 90.2 119.9 31.5 60.2 79 139.7 144.2 167.7 65 28 34.2 12.5 6-8.5-28.2-21.2-68.2-87-91-130.2-31.7-60-61-118.6-144.2-158.1z"},"glide":{"viewBox":"0 0 448 512","path":"M252.8 148.6c0 8.8-1.6 17.7-3.4 26.4-5.8 27.8-11.6 55.8-17.3 83.6-1.4 6.3-8.3 4.9-13.7 4.9-23.8 0-30.5-26-30.5-45.5 0-29.3 11.2-68.1 38.5-83.1 4.3-2.5 9.2-4.2 14.1-4.2 11.4 0 12.3 8.3 12.3 17.9zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-64 187c0-5.1-20.8-37.7-25.5-39.5-2.2-.9-7.2-2.3-9.6-2.3-23.1 0-38.7 10.5-58.2 21.5l-.5-.5c4.3-29.4 14.6-57.2 14.6-87.4 0-44.6-23.8-62.7-67.5-62.7-71.7 0-108 70.8-108 123.5 0 54.7 32 85 86.3 85 7.5 0 6.9-.6 6.9 2.3-10.5 80.3-56.5 82.9-56.5 58.9 0-24.4 28-36.5 28.3-38-.2-7.6-29.3-17.2-36.7-17.2-21.1 0-32.7 33-32.7 50.6 0 32.3 20.4 54.7 53.3 54.7 48.2 0 83.4-49.7 94.3-91.7 9.4-37.7 7-39.4 12.3-42.1 20-10.1 35.8-16.8 58.4-16.8 11.1 0 19 2.3 36.7 5.2 1.8.1 4.1-1.7 4.1-3.5z"},"glide-g":{"viewBox":"0 0 448 512","path":"M407.1 211.2c-3.5-1.4-11.6-3.8-15.4-3.8-37.1 0-62.2 16.8-93.5 34.5l-.9-.9c7-47.3 23.5-91.9 23.5-140.4C320.8 29.1 282.6 0 212.4 0 97.3 0 39 113.7 39 198.4 39 286.3 90.3 335 177.6 335c12 0 11-1 11 3.8-16.9 128.9-90.8 133.1-90.8 94.6 0-39.2 45-58.6 45.5-61-.3-12.2-47-27.6-58.9-27.6-33.9.1-52.4 51.2-52.4 79.3C32 476 64.8 512 117.5 512c77.4 0 134-77.8 151.4-145.4 15.1-60.5 11.2-63.3 19.7-67.6 32.2-16.2 57.5-27 93.8-27 17.8 0 30.5 3.7 58.9 8.4 2.9 0 6.7-2.9 6.7-5.8 0-8-33.4-60.5-40.9-63.4zm-175.3-84.4c-9.3 44.7-18.6 89.6-27.8 134.3-2.3 10.2-13.3 7.8-22 7.8-38.3 0-49-41.8-49-73.1 0-47 18-109.3 61.8-133.4 7-4.1 14.8-6.7 22.6-6.7 18.6 0 20 13.3 20 28.7-.1 14.3-2.7 28.5-5.6 42.4z"},"viadeo":{"viewBox":"0 0 448 512","path":"M276.2 150.5v.7C258.3 98.6 233.6 47.8 205.4 0c43.3 29.2 67 100 70.8 150.5zm32.7 121.7c7.6 18.2 11 37.5 11 57 0 77.7-57.8 141-137.8 139.4l3.8-.3c74.2-46.7 109.3-118.6 109.3-205.1 0-38.1-6.5-75.9-18.9-112 1 11.7 1 23.7 1 35.4 0 91.8-18.1 241.6-116.6 280C95 455.2 49.4 398 49.4 329.2c0-75.6 57.4-142.3 135.4-142.3 16.8 0 33.7 3.1 49.1 9.6 1.7-15.1 6.5-29.9 13.4-43.3-19.9-7.2-41.2-10.7-62.5-10.7-161.5 0-238.7 195.9-129.9 313.7 67.9 74.6 192 73.9 259.8 0 56.6-61.3 60.9-142.4 36.4-201-12.7 8-27.1 13.9-42.2 17zM418.1 11.7c-31 66.5-81.3 47.2-115.8 80.1-12.4 12-20.6 34-20.6 50.5 0 14.1 4.5 27.1 12 38.8 47.4-11 98.3-46 118.2-90.7-.7 5.5-4.8 14.4-7.2 19.2-20.3 35.7-64.6 65.6-99.7 84.9 14.8 14.4 33.7 25.8 55 25.8 79 0 110.1-134.6 58.1-208.6z"},"viadeo-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM280.7 381.2c-42.4 46.2-120 46.6-162.4 0-68-73.6-19.8-196.1 81.2-196.1 13.3 0 26.6 2.1 39.1 6.7-4.3 8.4-7.3 17.6-8.4 27.1-9.7-4.1-20.2-6-30.7-6-48.8 0-84.6 41.7-84.6 88.9 0 43 28.5 78.7 69.5 85.9 61.5-24 72.9-117.6 72.9-175 0-7.3 0-14.8-.6-22.1-11.2-32.9-26.6-64.6-44.2-94.5 27.1 18.3 41.9 62.5 44.2 94.1v.4c7.7 22.5 11.8 46.2 11.8 70 0 54.1-21.9 99-68.3 128.2l-2.4.2c50 1 86.2-38.6 86.2-87.2 0-12.2-2.1-24.3-6.9-35.7 9.5-1.9 18.5-5.6 26.4-10.5 15.3 36.6 12.6 87.3-22.8 125.6zM309 233.7c-13.3 0-25.1-7.1-34.4-16.1 21.9-12 49.6-30.7 62.3-53 1.5-3 4.1-8.6 4.5-12-12.5 27.9-44.2 49.8-73.9 56.7-4.7-7.3-7.5-15.5-7.5-24.3 0-10.3 5.2-24.1 12.9-31.6 21.6-20.5 53-8.5 72.4-50 32.5 46.2 13.1 130.3-36.3 130.3z"},"snapchat":{"viewBox":"0 0 496 512","path":"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm169.5 338.9c-3.5 8.1-18.1 14-44.8 18.2-1.4 1.9-2.5 9.8-4.3 15.9-1.1 3.7-3.7 5.9-8.1 5.9h-.2c-6.2 0-12.8-2.9-25.8-2.9-17.6 0-23.7 4-37.4 13.7-14.5 10.3-28.4 19.1-49.2 18.2-21 1.6-38.6-11.2-48.5-18.2-13.8-9.7-19.8-13.7-37.4-13.7-12.5 0-20.4 3.1-25.8 3.1-5.4 0-7.5-3.3-8.3-6-1.8-6.1-2.9-14.1-4.3-16-13.8-2.1-44.8-7.5-45.5-21.4-.2-3.6 2.3-6.8 5.9-7.4 46.3-7.6 67.1-55.1 68-57.1 0-.1.1-.2.2-.3 2.5-5 3-9.2 1.6-12.5-3.4-7.9-17.9-10.7-24-13.2-15.8-6.2-18-13.4-17-18.3 1.6-8.5 14.4-13.8 21.9-10.3 5.9 2.8 11.2 4.2 15.7 4.2 3.3 0 5.5-.8 6.6-1.4-1.4-23.9-4.7-58 3.8-77.1C183.1 100 230.7 96 244.7 96c.6 0 6.1-.1 6.7-.1 34.7 0 68 17.8 84.3 54.3 8.5 19.1 5.2 53.1 3.8 77.1 1.1.6 2.9 1.3 5.7 1.4 4.3-.2 9.2-1.6 14.7-4.2 4-1.9 9.6-1.6 13.6 0 6.3 2.3 10.3 6.8 10.4 11.9.1 6.5-5.7 12.1-17.2 16.6-1.4.6-3.1 1.1-4.9 1.7-6.5 2.1-16.4 5.2-19 11.5-1.4 3.3-.8 7.5 1.6 12.5.1.1.1.2.2.3.9 2 21.7 49.5 68 57.1 4 1 7.1 5.5 4.9 10.8z"},"snapchat-ghost":{"viewBox":"0 0 512 512","path":"M510.846 392.673c-5.211 12.157-27.239 21.089-67.36 27.318-2.064 2.786-3.775 14.686-6.507 23.956-1.625 5.566-5.623 8.869-12.128 8.869l-.297-.005c-9.395 0-19.203-4.323-38.852-4.323-26.521 0-35.662 6.043-56.254 20.588-21.832 15.438-42.771 28.764-74.027 27.399-31.646 2.334-58.025-16.908-72.871-27.404-20.714-14.643-29.828-20.582-56.241-20.582-18.864 0-30.736 4.72-38.852 4.72-8.073 0-11.213-4.922-12.422-9.04-2.703-9.189-4.404-21.263-6.523-24.13-20.679-3.209-67.31-11.344-68.498-32.15a10.627 10.627 0 0 1 8.877-11.069c69.583-11.455 100.924-82.901 102.227-85.934.074-.176.155-.344.237-.515 3.713-7.537 4.544-13.849 2.463-18.753-5.05-11.896-26.872-16.164-36.053-19.796-23.715-9.366-27.015-20.128-25.612-27.504 2.437-12.836 21.725-20.735 33.002-15.453 8.919 4.181 16.843 6.297 23.547 6.297 5.022 0 8.212-1.204 9.96-2.171-2.043-35.936-7.101-87.29 5.687-115.969C158.122 21.304 229.705 15.42 250.826 15.42c.944 0 9.141-.089 10.11-.089 52.148 0 102.254 26.78 126.723 81.643 12.777 28.65 7.749 79.792 5.695 116.009 1.582.872 4.357 1.942 8.599 2.139 6.397-.286 13.815-2.389 22.069-6.257 6.085-2.846 14.406-2.461 20.48.058l.029.01c9.476 3.385 15.439 10.215 15.589 17.87.184 9.747-8.522 18.165-25.878 25.018-2.118.835-4.694 1.655-7.434 2.525-9.797 3.106-24.6 7.805-28.616 17.271-2.079 4.904-1.256 11.211 2.46 18.748.087.168.166.342.239.515 1.301 3.03 32.615 74.46 102.23 85.934 6.427 1.058 11.163 7.877 7.725 15.859z"},"snapchat-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-6.5 314.9c-3.5 8.1-18.1 14-44.8 18.2-1.4 1.9-2.5 9.8-4.3 15.9-1.1 3.7-3.7 5.9-8.1 5.9h-.2c-6.2 0-12.8-2.9-25.8-2.9-17.6 0-23.7 4-37.4 13.7-14.5 10.3-28.4 19.1-49.2 18.2-21 1.6-38.6-11.2-48.5-18.2-13.8-9.7-19.8-13.7-37.4-13.7-12.5 0-20.4 3.1-25.8 3.1-5.4 0-7.5-3.3-8.3-6-1.8-6.1-2.9-14.1-4.3-16-13.8-2.1-44.8-7.5-45.5-21.4-.2-3.6 2.3-6.8 5.9-7.4 46.3-7.6 67.1-55.1 68-57.1 0-.1.1-.2.2-.3 2.5-5 3-9.2 1.6-12.5-3.4-7.9-17.9-10.7-24-13.2-15.8-6.2-18-13.4-17-18.3 1.6-8.5 14.4-13.8 21.9-10.3 5.9 2.8 11.2 4.2 15.7 4.2 3.3 0 5.5-.8 6.6-1.4-1.4-23.9-4.7-58 3.8-77.1C159.1 100 206.7 96 220.7 96c.6 0 6.1-.1 6.7-.1 34.7 0 68 17.8 84.3 54.3 8.5 19.1 5.2 53.1 3.8 77.1 1.1.6 2.9 1.3 5.7 1.4 4.3-.2 9.2-1.6 14.7-4.2 4-1.9 9.6-1.6 13.6 0 6.3 2.3 10.3 6.8 10.4 11.9.1 6.5-5.7 12.1-17.2 16.6-1.4.6-3.1 1.1-4.9 1.7-6.5 2.1-16.4 5.2-19 11.5-1.4 3.3-.8 7.5 1.6 12.5.1.1.1.2.2.3.9 2 21.7 49.5 68 57.1 4 1 7.1 5.5 4.9 10.8z"},"pied-piper":{"viewBox":"0 0 448 512","path":"M32 419L0 479.2l.8-328C.8 85.3 54 32 120 32h327.2c-93 28.9-189.9 94.2-253.9 168.6C122.7 282 82.6 338 32 419M448 32S305.2 98.8 261.6 199.1c-23.2 53.6-28.9 118.1-71 158.6-28.9 27.8-69.8 38.2-105.3 56.3-23.2 12-66.4 40.5-84.9 66h328.4c66 0 119.3-53.3 119.3-119.2-.1 0-.1-328.8-.1-328.8z"},"first-order":{"viewBox":"0 0 448 512","path":"M12.9 229.2c.1-.1.2-.3.3-.4 0 .1 0 .3-.1.4h-.2zM224 96.6c-7.1 0-14.6.6-21.4 1.7l3.7 67.4-22-64c-14.3 3.7-27.7 9.4-40 16.6l29.4 61.4-45.1-50.9c-11.4 8.9-21.7 19.1-30.6 30.9l50.6 45.4-61.1-29.7c-7.1 12.3-12.9 25.7-16.6 40l64.3 22.6-68-4c-.9 7.1-1.4 14.6-1.4 22s.6 14.6 1.4 21.7l67.7-4-64 22.6c3.7 14.3 9.4 27.7 16.6 40.3l61.1-29.7L97.7 352c8.9 11.7 19.1 22.3 30.9 30.9l44.9-50.9-29.5 61.4c12.3 7.4 25.7 13.1 40 16.9l22.3-64.6-4 68c7.1 1.1 14.6 1.7 21.7 1.7 7.4 0 14.6-.6 21.7-1.7l-4-68.6 22.6 65.1c14.3-4 27.7-9.4 40-16.9L274.9 332l44.9 50.9c11.7-8.9 22-19.1 30.6-30.9l-50.6-45.1 61.1 29.4c7.1-12.3 12.9-25.7 16.6-40.3l-64-22.3 67.4 4c1.1-7.1 1.4-14.3 1.4-21.7s-.3-14.9-1.4-22l-67.7 4 64-22.3c-3.7-14.3-9.1-28-16.6-40.3l-60.9 29.7 50.6-45.4c-8.9-11.7-19.1-22-30.6-30.9l-45.1 50.9 29.4-61.1c-12.3-7.4-25.7-13.1-40-16.9L241.7 166l4-67.7c-7.1-1.2-14.3-1.7-21.7-1.7zM443.4 128v256L224 512 4.6 384V128L224 0l219.4 128zm-17.1 10.3L224 20.9 21.7 138.3v235.1L224 491.1l202.3-117.7V138.3zM224 37.1l187.7 109.4v218.9L224 474.9 36.3 365.4V146.6L224 37.1zm0 50.9c-92.3 0-166.9 75.1-166.9 168 0 92.6 74.6 167.7 166.9 167.7 92 0 166.9-75.1 166.9-167.7 0-92.9-74.9-168-166.9-168z"},"yoast":{"viewBox":"0 0 448 512","path":"M91.3 76h186l-7 18.9h-179c-39.7 0-71.9 31.6-71.9 70.3v205.4c0 35.4 24.9 70.3 84 70.3V460H91.3C41.2 460 0 419.8 0 370.5V165.2C0 115.9 40.7 76 91.3 76zm229.1-56h66.5C243.1 398.1 241.2 418.9 202.2 459.3c-20.8 21.6-49.3 31.7-78.3 32.7v-51.1c49.2-7.7 64.6-49.9 64.6-75.3 0-20.1.6-12.6-82.1-223.2h61.4L218.2 299 320.4 20zM448 161.5V460H234c6.6-9.6 10.7-16.3 12.1-19.4h182.5V161.5c0-32.5-17.1-51.9-48.2-62.9l6.7-17.6c41.7 13.6 60.9 43.1 60.9 80.5z"},"themeisle":{"viewBox":"0 0 512 512","path":"M208 88.286c0-10 6.286-21.714 17.715-21.714 11.142 0 17.714 11.714 17.714 21.714 0 10.285-6.572 21.714-17.714 21.714C214.286 110 208 98.571 208 88.286zm304 160c0 36.001-11.429 102.286-36.286 129.714-22.858 24.858-87.428 61.143-120.857 70.572l-1.143.286v32.571c0 16.286-12.572 30.571-29.143 30.571-10 0-19.429-5.714-24.572-14.286-5.427 8.572-14.856 14.286-24.856 14.286-10 0-19.429-5.714-24.858-14.286-5.142 8.572-14.571 14.286-24.57 14.286-10.286 0-19.429-5.714-24.858-14.286-5.143 8.572-14.571 14.286-24.571 14.286-18.857 0-29.429-15.714-29.429-32.857-16.286 12.285-35.715 19.428-56.571 19.428-22 0-43.429-8.285-60.286-22.857 10.285-.286 20.571-2.286 30.285-5.714-20.857-5.714-39.428-18.857-52-36.286 21.37 4.645 46.209 1.673 67.143-11.143-22-22-56.571-58.857-68.572-87.428C1.143 321.714 0 303.714 0 289.429c0-49.714 20.286-160 86.286-160 10.571 0 18.857 4.858 23.143 14.857a158.792 158.792 0 0 1 12-15.428c2-2.572 5.714-5.429 7.143-8.286 7.999-12.571 11.714-21.142 21.714-34C182.571 45.428 232 17.143 285.143 17.143c6 0 12 .285 17.714 1.143C313.714 6.571 328.857 0 344.572 0c14.571 0 29.714 6 40 16.286.857.858 1.428 2.286 1.428 3.428 0 3.714-10.285 13.429-12.857 16.286 4.286 1.429 15.714 6.858 15.714 12 0 2.857-2.857 5.143-4.571 7.143 31.429 27.714 49.429 67.143 56.286 108 4.286-5.143 10.285-8.572 17.143-8.572 10.571 0 20.857 7.144 28.571 14.001C507.143 187.143 512 221.714 512 248.286zM188 89.428c0 18.286 12.571 37.143 32.286 37.143 19.714 0 32.285-18.857 32.285-37.143 0-18-12.571-36.857-32.285-36.857-19.715 0-32.286 18.858-32.286 36.857zM237.714 194c0-19.714 3.714-39.143 8.571-58.286-52.039 79.534-13.531 184.571 68.858 184.571 21.428 0 42.571-7.714 60-20 2-7.429 3.714-14.857 3.714-22.572 0-14.286-6.286-21.428-20.572-21.428-4.571 0-9.143.857-13.429 1.714-63.343 12.668-107.142 3.669-107.142-63.999zm-41.142 254.858c0-11.143-8.858-20.857-20.286-20.857-11.429 0-20 9.715-20 20.857v32.571c0 11.143 8.571 21.142 20 21.142 11.428 0 20.286-9.715 20.286-21.142v-32.571zm49.143 0c0-11.143-8.572-20.857-20-20.857-11.429 0-20.286 9.715-20.286 20.857v32.571c0 11.143 8.857 21.142 20.286 21.142 11.428 0 20-10 20-21.142v-32.571zm49.713 0c0-11.143-8.857-20.857-20.285-20.857-11.429 0-20.286 9.715-20.286 20.857v32.571c0 11.143 8.857 21.142 20.286 21.142 11.428 0 20.285-9.715 20.285-21.142v-32.571zm49.715 0c0-11.143-8.857-20.857-20.286-20.857-11.428 0-20.286 9.715-20.286 20.857v32.571c0 11.143 8.858 21.142 20.286 21.142 11.429 0 20.286-10 20.286-21.142v-32.571zM421.714 286c-30.857 59.142-90.285 102.572-158.571 102.572-96.571 0-160.571-84.572-160.571-176.572 0-16.857 2-33.429 6-49.714-20 33.715-29.714 72.572-29.714 111.429 0 60.286 24.857 121.715 71.429 160.857 5.143-9.714 14.857-16.286 26-16.286 10 0 19.428 5.714 24.571 14.286 5.429-8.571 14.571-14.286 24.858-14.286 10 0 19.428 5.714 24.571 14.286 5.429-8.571 14.857-14.286 24.858-14.286 10 0 19.428 5.714 24.857 14.286 5.143-8.571 14.571-14.286 24.572-14.286 10.857 0 20.857 6.572 25.714 16 43.427-36.286 68.569-92 71.426-148.286zm10.572-99.714c0-53.714-34.571-105.714-92.572-105.714-30.285 0-58.571 15.143-78.857 36.857C240.862 183.812 233.41 254 302.286 254c28.805 0 97.357-28.538 84.286 36.857 28.857-26 45.714-65.714 45.714-104.571z"},"font-awesome":{"viewBox":"0 0 448 512","path":"M397.8 32H50.2C22.7 32 0 54.7 0 82.2v347.6C0 457.3 22.7 480 50.2 480h347.6c27.5 0 50.2-22.7 50.2-50.2V82.2c0-27.5-22.7-50.2-50.2-50.2zm-45.4 284.3c0 4.2-3.6 6-7.8 7.8-16.7 7.2-34.6 13.7-53.8 13.7-26.9 0-39.4-16.7-71.7-16.7-23.3 0-47.8 8.4-67.5 17.3-1.2.6-2.4.6-3.6 1.2V385c0 1.8 0 3.6-.6 4.8v1.2c-2.4 8.4-10.2 14.3-19.1 14.3-11.3 0-20.3-9-20.3-20.3V166.4c-7.8-6-13.1-15.5-13.1-26.3 0-18.5 14.9-33.5 33.5-33.5 18.5 0 33.5 14.9 33.5 33.5 0 10.8-4.8 20.3-13.1 26.3v18.5c1.8-.6 3.6-1.2 5.4-2.4 18.5-7.8 40.6-14.3 61.5-14.3 22.7 0 40.6 6 60.9 13.7 4.2 1.8 8.4 2.4 13.1 2.4 22.7 0 47.8-16.1 53.8-16.1 4.8 0 9 3.6 9 7.8v140.3z"},"linode":{"viewBox":"0 0 448 512","path":"M437.4 226.3c-.3-.9-.9-1.4-1.4-2l-70-38.6c-.9-.6-2-.6-3.1 0l-58.9 36c-.9.6-1.4 1.7-1.4 2.6l-.9 31.4-24-16c-.9-.6-2.3-.6-3.1 0L240 260.9l-1.4-35.1c0-.9-.6-2-1.4-2.3l-36-24.3 33.7-17.4c1.1-.6 1.7-1.7 1.7-2.9l-5.7-132.3c0-.9-.9-2-1.7-2.6L138.6.3c-.9-.3-1.7-.3-2.3-.3L12.6 38.6c-1.4.6-2.3 2-2 3.7L38 175.4c.9 3.4 34 27.4 38.6 30.9l-26.9 12.9c-1.4.9-2 2.3-1.7 3.4l20.6 100.3c.6 2.9 23.7 23.1 27.1 26.3l-17.4 10.6c-.9.6-1.7 2-1.4 3.1 1.4 7.1 15.4 77.7 16.9 79.1l65.1 69.1c.6.6 1.4.6 2.3.9.6 0 1.1-.3 1.7-.6l83.7-66.9c.9-.6 1.1-1.4 1.1-2.3l-2-46 28 23.7c1.1.9 2.9.9 4 0l66.9-53.4c.9-.6 1.1-1.4 1.1-2.3l2.3-33.4 20.3 14c1.1.9 2.6.9 3.7 0l54.6-43.7c.6-.3 1.1-1.1 1.1-2 .9-6.5 10.3-70.8 9.7-72.8zm-204.8 4.8l4 92.6-90.6 61.2-14-96.6 100.6-57.2zm-7.7-180l5.4 126-106.6 55.4L104 97.7l120.9-46.6zM44 173.1L18 48l79.7 49.4 19.4 132.9L44 173.1zm30.6 147.8L55.7 230l70 58.3 13.7 93.4-64.8-60.8zm24.3 117.7l-13.7-67.1 61.7 60.9 9.7 67.4-57.7-61.2zm64.5 64.5l-10.6-70.9 85.7-61.4 3.1 70-78.2 62.3zm82-115.1c0-3.4.9-22.9-2-25.1l-24.3-20 22.3-14.9c2.3-1.7 1.1-5.7 1.1-8l29.4 22.6.6 68.3-27.1-22.9zm94.3-25.4l-60.9 48.6-.6-68.6 65.7-46.9-4.2 66.9zm27.7-25.7l-19.1-13.4 2-34c.3-.9-.3-2-1.1-2.6L308 259.7l.6-30 64.6 40.6-5.8 66.6zm54.6-39.8l-48.3 38.3 5.7-65.1 51.1-36.6-8.5 63.4z"},"quora":{"viewBox":"0 0 448 512","path":"M440.5 386.7h-29.3c-1.5 13.5-10.5 30.8-33 30.8-20.5 0-35.3-14.2-49.5-35.8 44.2-34.2 74.7-87.5 74.7-153C403.5 111.2 306.8 32 205 32 105.3 32 7.3 111.7 7.3 228.7c0 134.1 131.3 221.6 249 189C276 451.3 302 480 351.5 480c81.8 0 90.8-75.3 89-93.3zM297 329.2C277.5 300 253.3 277 205.5 277c-30.5 0-54.3 10-69 22.8l12.2 24.3c6.2-3 13-4 19.8-4 35.5 0 53.7 30.8 69.2 61.3-10 3-20.7 4.2-32.7 4.2-75 0-107.5-53-107.5-156.7C97.5 124.5 130 71 205 71c76.2 0 108.7 53.5 108.7 157.7.1 41.8-5.4 75.6-16.7 100.5z"},"free-code-camp":{"viewBox":"0 0 576 512","path":"M69.3 144.5c-41 68.5-36.4 163 1 227C92.5 409.7 120 423.9 120 438c0 6.8-6 13-12.8 13C87.7 451 8 375.5 8 253.2c0-111.5 78-186 97.1-186 6 0 14.9 4.8 14.9 11.1 0 12.7-28.3 28.6-50.7 66.2zm195.8 213.8c4.5 1.8 12.3 5.2 12.3-1.2 0-2.7-2.2-2.9-4.3-3.6-8.5-3.4-14-7.7-19.1-15.2-8.2-12.1-10.1-24.2-10.1-38.6 0-32.1 44.2-37.9 44.2-70 0-12.3-7.7-15.9-7.7-19.3 0-2.2.7-2.2 2.9-2.2 8 0 19.1 13.3 22.5 19.8 2.2 4.6 2.4 6 2.4 11.1 0 7-.7 14.2-.7 21.3 0 27 31.9 19.8 31.9 6.8 0-6-3.6-11.6-3.6-17.4 0-.7 0-1.2.7-1.2 3.4 0 9.4 7.7 11.1 10.1 5.8 8.9 8.5 20.8 8.5 31.4 0 32.4-29.5 49-29.5 56 0 1 2.9 7.7 12.1 1.9 29.7-15.1 53.1-47.6 53.1-89.8 0-33.6-8.7-57.7-32.1-82.6-3.9-4.1-16.4-16.9-22.5-16.9-8.2 0 7.2 18.6 7.2 31.2 0 7.2-4.8 12.3-12.3 12.3-11.6 0-14.5-25.4-15.9-33.3-5.8-33.8-12.8-58.2-46.4-74.1-10.4-5-36.5-11.8-36.5-2.2 0 2.4 2.7 4.1 4.6 5.1 9.2 5.6 19.6 21.4 19.6 38.2 0 46.1-57.7 88.2-57.7 136.2-.2 40.3 28.1 72.6 65.3 86.2zM470.4 67c-6 0-14.4 6.5-14.4 12.6 0 8.7 12.1 19.6 17.6 25.4 81.6 85.1 78.6 214.3 17.6 291-7 8.9-35.3 35.3-35.3 43.5 0 5.1 8.2 11.4 13.2 11.4 25.4 0 98.8-80.8 98.8-185.7C568 145.9 491.8 67 470.4 67zm-42.3 323.1H167c-9.4 0-15.5 7.5-15.5 16.4 0 8.5 7 15.5 15.5 15.5h261.1c9.4 0 11.9-7.5 11.9-16.4 0-8.5-3.5-15.5-11.9-15.5z"},"telegram":{"viewBox":"0 0 496 512","path":"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm121.8 169.9l-40.7 191.8c-3 13.6-11.1 16.9-22.4 10.5l-62-45.7-29.9 28.8c-3.3 3.3-6.1 6.1-12.5 6.1l4.4-63.1 114.9-103.8c5-4.4-1.1-6.9-7.7-2.5l-142 89.4-61.2-19.1c-13.3-4.2-13.6-13.3 2.8-19.7l239.1-92.2c11.1-4 20.8 2.7 17.2 19.5z"},"bandcamp":{"viewBox":"0 0 496 512","path":"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm48.2 326.1h-181L199.9 178h181l-84.7 156.1z"},"grav":{"viewBox":"0 0 512 512","path":"M301.1 212c4.4 4.4 4.4 11.9 0 16.3l-9.7 9.7c-4.4 4.7-11.9 4.7-16.6 0l-10.5-10.5c-4.4-4.7-4.4-11.9 0-16.6l9.7-9.7c4.4-4.4 11.9-4.4 16.6 0l10.5 10.8zm-30.2-19.7c3-3 3-7.8 0-10.5-2.8-3-7.5-3-10.5 0-2.8 2.8-2.8 7.5 0 10.5 3.1 2.8 7.8 2.8 10.5 0zm-26 5.3c-3 2.8-3 7.5 0 10.2 2.8 3 7.5 3 10.5 0 2.8-2.8 2.8-7.5 0-10.2-3-3-7.7-3-10.5 0zm72.5-13.3c-19.9-14.4-33.8-43.2-11.9-68.1 21.6-24.9 40.7-17.2 59.8.8 11.9 11.3 29.3 24.9 17.2 48.2-12.5 23.5-45.1 33.2-65.1 19.1zm47.7-44.5c-8.9-10-23.3 6.9-15.5 16.1 7.4 9 32.1 2.4 15.5-16.1zM504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zm-66.2 42.6c2.5-16.1-20.2-16.6-25.2-25.7-13.6-24.1-27.7-36.8-54.5-30.4 11.6-8 23.5-6.1 23.5-6.1.3-6.4 0-13-9.4-24.9 3.9-12.5.3-22.4.3-22.4 15.5-8.6 26.8-24.4 29.1-43.2 3.6-31-18.8-59.2-49.8-62.8-22.1-2.5-43.7 7.7-54.3 25.7-23.2 40.1 1.4 70.9 22.4 81.4-14.4-1.4-34.3-11.9-40.1-34.3-6.6-25.7 2.8-49.8 8.9-61.4 0 0-4.4-5.8-8-8.9 0 0-13.8 0-24.6 5.3 11.9-15.2 25.2-14.4 25.2-14.4 0-6.4-.6-14.9-3.6-21.6-5.4-11-23.8-12.9-31.7 2.8.1-.2.3-.4.4-.5-5 11.9-1.1 55.9 16.9 87.2-2.5 1.4-9.1 6.1-13 10-21.6 9.7-56.2 60.3-56.2 60.3-28.2 10.8-77.2 50.9-70.6 79.7.3 3 1.4 5.5 3 7.5-2.8 2.2-5.5 5-8.3 8.3-11.9 13.8-5.3 35.2 17.7 24.4 15.8-7.2 29.6-20.2 36.3-30.4 0 0-5.5-5-16.3-4.4 27.7-6.6 34.3-9.4 46.2-9.1 8 3.9 8-34.3 8-34.3 0-14.7-2.2-31-11.1-41.5 12.5 12.2 29.1 32.7 28 60.6-.8 18.3-15.2 23-15.2 23-9.1 16.6-43.2 65.9-30.4 106 0 0-9.7-14.9-10.2-22.1-17.4 19.4-46.5 52.3-24.6 64.5 26.6 14.7 108.8-88.6 126.2-142.3 34.6-20.8 55.4-47.3 63.9-65 22 43.5 95.3 94.5 101.1 59z"},"etsy":{"viewBox":"0 0 384 512","path":"M384 348c-1.75 10.75-13.75 110-15.5 132-117.879-4.299-219.895-4.743-368.5 0v-25.5c45.457-8.948 60.627-8.019 61-35.25 1.793-72.322 3.524-244.143 0-322-1.029-28.46-12.13-26.765-61-36v-25.5c73.886 2.358 255.933 8.551 362.999-3.75-3.5 38.25-7.75 126.5-7.75 126.5H332C320.947 115.665 313.241 68 277.25 68h-137c-10.25 0-10.75 3.5-10.75 9.75V241.5c58 .5 88.5-2.5 88.5-2.5 29.77-.951 27.56-8.502 40.75-65.251h25.75c-4.407 101.351-3.91 61.829-1.75 160.25H257c-9.155-40.086-9.065-61.045-39.501-61.5 0 0-21.5-2-88-2v139c0 26 14.25 38.25 44.25 38.25H263c63.636 0 66.564-24.996 98.751-99.75H384z"},"imdb":{"viewBox":"0 0 448 512","path":"M350.5 288.7c0 5.4 1.6 14.4-6.2 14.4-1.6 0-3-.8-3.8-2.4-2.2-5.1-1.1-44.1-1.1-44.7 0-3.8-1.1-12.7 4.9-12.7 7.3 0 6.2 7.3 6.2 12.7v32.7zM265 229.9c0-9.7 1.6-16-10.3-16v83.7c12.2.3 10.3-8.7 10.3-18.4v-49.3zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zM21.3 228.8c-.1.1-.2.3-.3.4h.3v-.4zM97 192H64v127.8h33V192zm113.3 0h-43.1l-7.6 59.9c-2.7-20-5.4-40.1-8.7-59.9h-42.8v127.8h29v-84.5l12.2 84.5h20.6l11.6-86.4v86.4h28.7V192zm86.3 45.3c0-8.1.3-16.8-1.4-24.4-4.3-22.5-31.4-20.9-49-20.9h-24.6v127.8c86.1.1 75 6 75-82.5zm85.9 17.3c0-17.3-.8-30.1-22.2-30.1-8.9 0-14.9 2.7-20.9 9.2V192h-31.7v127.8h29.8l1.9-8.1c5.7 6.8 11.9 9.8 20.9 9.8 19.8 0 22.2-15.2 22.2-30.9v-36z"},"ravelry":{"viewBox":"0 0 512 512","path":"M407.4 61.5C331.6 22.1 257.8 31 182.9 66c-11.3 5.2-15.5 10.6-19.9 19-10.3 19.2-16.2 37.4-19.9 52.7-21.2 25.6-36.4 56.1-43.3 89.9-10.6 18-20.9 41.4-23.1 71.4 0 0-.7 7.6-.5 7.9-35.3-4.6-76.2-27-76.2-27 9.1 14.5 61.3 32.3 76.3 37.9 0 0 1.7 98 64.5 131.2-11.3-17.2-13.3-20.2-13.3-20.2S94.8 369 100.4 324.7c.7 0 1.5.2 2.2.2 23.9 87.4 103.2 151.4 196.9 151.4 6.2 0 12.1-.2 18-.7 14 1.5 27.6.5 40.1-3.9 6.9-2.2 13.8-6.4 20.2-10.8 70.2-39.1 100.9-82 123.1-147.7 5.4-16 8.1-35.5 9.8-52.2 8.7-82.3-30.6-161.6-103.3-199.5zM138.8 163.2s-1.2 12.3-.7 19.7c-3.4 2.5-10.1 8.1-18.2 16.7 5.2-12.8 11.3-25.1 18.9-36.4zm-31.2 121.9c4.4-17.2 13.3-39.1 29.8-55.1 0 0 1.7 48 15.8 90.1l-41.4-6.9c-2.2-9.2-3.5-18.5-4.2-28.1zm7.9 42.8c14.8 3.2 34 7.6 43.1 9.1 27.3 76.8 108.3 124.3 108.3 124.3 1 .5 1.7.7 2.7 1-73.1-11.6-132.7-64.7-154.1-134.4zM386 444.1c-14.5 4.7-36.2 8.4-64.7 3.7 0 0-91.1-23.1-127.5-107.8 38.2.7 52.4-.2 78-3.9 39.4-5.7 79-16.2 115-33 11.8-5.4 11.1-19.4 9.6-29.8-2-12.8-11.1-12.1-21.4-4.7 0 0-82 58.6-189.8 53.7-18.7-32-26.8-110.8-26.8-110.8 41.4-35.2 83.2-59.6 168.4-52.4.2-6.4 3-27.1-20.4-28.1 0 0-93.5-11.1-146 33.5 2.5-16.5 5.9-29.3 11.1-39.4 34.2-30.8 79-49.5 128.3-49.5 106.4 0 193 87.1 193 194.5-.2 76-43.8 142-106.8 174z"},"superpowers":{"viewBox":"0 0 448 512","path":"M448 32c-83.3 11-166.8 22-250 33-92 12.5-163.3 86.7-169 180-3.3 55.5 18 109.5 57.8 148.2L0 480c83.3-11 166.5-22 249.8-33 91.8-12.5 163.3-86.8 168.7-179.8 3.5-55.5-18-109.5-57.7-148.2L448 32zm-79.7 232.3c-4.2 79.5-74 139.2-152.8 134.5-79.5-4.7-140.7-71-136.3-151 4.5-79.2 74.3-139.3 153-134.5 79.3 4.7 140.5 71 136.1 151z"},"wpexplorer":{"viewBox":"0 0 512 512","path":"M512 256c0 141.2-114.7 256-256 256C114.8 512 0 397.3 0 256S114.7 0 256 0s256 114.7 256 256zm-32 0c0-123.2-100.3-224-224-224C132.5 32 32 132.5 32 256s100.5 224 224 224 224-100.5 224-224zM160.9 124.6l86.9 37.1-37.1 86.9-86.9-37.1 37.1-86.9zm110 169.1l46.6 94h-14.6l-50-100-48.9 100h-14l51.1-106.9-22.3-9.4 6-14 68.6 29.1-6 14.3-16.5-7.1zm-11.8-116.3l68.6 29.4-29.4 68.3L230 246l29.1-68.6zm80.3 42.9l54.6 23.1-23.4 54.3-54.3-23.1 23.1-54.3z"},"meetup":{"viewBox":"0 0 512 512","path":"M99 414.3c1.1 5.7-2.3 11.1-8 12.3-5.4 1.1-10.9-2.3-12-8-1.1-5.4 2.3-11.1 7.7-12.3 5.4-1.2 11.1 2.3 12.3 8zm143.1 71.4c-6.3 4.6-8 13.4-3.7 20 4.6 6.6 13.4 8.3 20 3.7 6.3-4.6 8-13.4 3.4-20-4.2-6.5-13.1-8.3-19.7-3.7zm-86-462.3c6.3-1.4 10.3-7.7 8.9-14-1.1-6.6-7.4-10.6-13.7-9.1-6.3 1.4-10.3 7.7-9.1 14 1.4 6.6 7.6 10.6 13.9 9.1zM34.4 226.3c-10-6.9-23.7-4.3-30.6 6-6.9 10-4.3 24 5.7 30.9 10 7.1 23.7 4.6 30.6-5.7 6.9-10.4 4.3-24.1-5.7-31.2zm272-170.9c10.6-6.3 13.7-20 7.7-30.3-6.3-10.6-19.7-14-30-7.7s-13.7 20-7.4 30.6c6 10.3 19.4 13.7 29.7 7.4zm-191.1 58c7.7-5.4 9.4-16 4.3-23.7s-15.7-9.4-23.1-4.3c-7.7 5.4-9.4 16-4.3 23.7 5.1 7.8 15.6 9.5 23.1 4.3zm372.3 156c-7.4 1.7-12.3 9.1-10.6 16.9 1.4 7.4 8.9 12.3 16.3 10.6 7.4-1.4 12.3-8.9 10.6-16.6-1.5-7.4-8.9-12.3-16.3-10.9zm39.7-56.8c-1.1-5.7-6.6-9.1-12-8-5.7 1.1-9.1 6.9-8 12.6 1.1 5.4 6.6 9.1 12.3 8 5.4-1.5 9.1-6.9 7.7-12.6zM447 138.9c-8.6 6-10.6 17.7-4.9 26.3 5.7 8.6 17.4 10.6 26 4.9 8.3-6 10.3-17.7 4.6-26.3-5.7-8.7-17.4-10.9-25.7-4.9zm-6.3 139.4c26.3 43.1 15.1 100-26.3 129.1-17.4 12.3-37.1 17.7-56.9 17.1-12 47.1-69.4 64.6-105.1 32.6-1.1.9-2.6 1.7-3.7 2.9-39.1 27.1-92.3 17.4-119.4-22.3-9.7-14.3-14.6-30.6-15.1-46.9-65.4-10.9-90-94-41.1-139.7-28.3-46.9.6-107.4 53.4-114.9C151.6 70 234.1 38.6 290.1 82c67.4-22.3 136.3 29.4 130.9 101.1 41.1 12.6 52.8 66.9 19.7 95.2zm-70 74.3c-3.1-20.6-40.9-4.6-43.1-27.1-3.1-32 43.7-101.1 40-128-3.4-24-19.4-29.1-33.4-29.4-13.4-.3-16.9 2-21.4 4.6-2.9 1.7-6.6 4.9-11.7-.3-6.3-6-11.1-11.7-19.4-12.9-12.3-2-17.7 2-26.6 9.7-3.4 2.9-12 12.9-20 9.1-3.4-1.7-15.4-7.7-24-11.4-16.3-7.1-40 4.6-48.6 20-12.9 22.9-38 113.1-41.7 125.1-8.6 26.6 10.9 48.6 36.9 47.1 11.1-.6 18.3-4.6 25.4-17.4 4-7.4 41.7-107.7 44.6-112.6 2-3.4 8.9-8 14.6-5.1 5.7 3.1 6.9 9.4 6 15.1-1.1 9.7-28 70.9-28.9 77.7-3.4 22.9 26.9 26.6 38.6 4 3.7-7.1 45.7-92.6 49.4-98.3 4.3-6.3 7.4-8.3 11.7-8 3.1 0 8.3.9 7.1 10.9-1.4 9.4-35.1 72.3-38.9 87.7-4.6 20.6 6.6 41.4 24.9 50.6 11.4 5.7 62.5 15.7 58.5-11.1zm5.7 92.3c-10.3 7.4-12.9 22-5.7 32.6 7.1 10.6 21.4 13.1 32 6 10.6-7.4 13.1-22 6-32.6-7.4-10.6-21.7-13.5-32.3-6z"}}'),...JSON.parse('{"envelope":{"viewBox":"0 0 512 512","path":"M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"},"star":{"viewBox":"0 0 576 512","path":"M528.1 171.5L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6zM388.6 312.3l23.7 138.4L288 385.4l-124.3 65.3 23.7-138.4-100.6-98 139-20.2 62.2-126 62.2 126 139 20.2-100.6 98z"},"file":{"viewBox":"0 0 384 512","path":"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48z"},"clock":{"viewBox":"0 0 512 512","path":"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm61.8-104.4l-84.9-61.7c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v141.7l66.8 48.6c5.4 3.9 6.5 11.4 2.6 16.8L334.6 349c-3.9 5.3-11.4 6.5-16.8 2.6z"},"play-circle":{"viewBox":"0 0 512 512","path":"M371.7 238l-176-107c-15.8-8.8-35.7 2.5-35.7 21v208c0 18.4 19.8 29.8 35.7 21l176-101c16.4-9.1 16.4-32.8 0-42zM504 256C504 119 393 8 256 8S8 119 8 256s111 248 248 248 248-111 248-248zm-448 0c0-110.5 89.5-200 200-200s200 89.5 200 200-89.5 200-200 200S56 366.5 56 256z"},"image":{"viewBox":"0 0 512 512","path":"M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm-6 336H54a6 6 0 0 1-6-6V118a6 6 0 0 1 6-6h404a6 6 0 0 1 6 6v276a6 6 0 0 1-6 6zM128 152c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zM96 352h320v-80l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L192 304l-39.515-39.515c-4.686-4.686-12.284-4.686-16.971 0L96 304v48z"},"share-square":{"viewBox":"0 0 576 512","path":"M561.938 158.06L417.94 14.092C387.926-15.922 336 5.097 336 48.032v57.198c-42.45 1.88-84.03 6.55-120.76 17.99-35.17 10.95-63.07 27.58-82.91 49.42C108.22 199.2 96 232.6 96 271.94c0 61.697 33.178 112.455 84.87 144.76 37.546 23.508 85.248-12.651 71.02-55.74-15.515-47.119-17.156-70.923 84.11-78.76V336c0 42.993 51.968 63.913 81.94 33.94l143.998-144c18.75-18.74 18.75-49.14 0-67.88zM384 336V232.16C255.309 234.082 166.492 255.35 206.31 376 176.79 357.55 144 324.08 144 271.94c0-109.334 129.14-118.947 240-119.85V48l144 144-144 144zm24.74 84.493a82.658 82.658 0 0 0 20.974-9.303c7.976-4.952 18.286.826 18.286 10.214V464c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h132c6.627 0 12 5.373 12 12v4.486c0 4.917-2.987 9.369-7.569 11.152-13.702 5.331-26.396 11.537-38.05 18.585a12.138 12.138 0 0 1-6.28 1.777H54a6 6 0 0 0-6 6v340a6 6 0 0 0 6 6h340a6 6 0 0 0 6-6v-25.966c0-5.37 3.579-10.059 8.74-11.541z"},"check-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zm0 400H48V80h352v352zm-35.864-241.724L191.547 361.48c-4.705 4.667-12.303 4.637-16.97-.068l-90.781-91.516c-4.667-4.705-4.637-12.303.069-16.971l22.719-22.536c4.705-4.667 12.303-4.637 16.97.069l59.792 60.277 141.352-140.216c4.705-4.667 12.303-4.637 16.97.068l22.536 22.718c4.667 4.706 4.637 12.304-.068 16.971z"},"times-circle":{"viewBox":"0 0 512 512","path":"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm101.8-262.2L295.6 256l62.2 62.2c4.7 4.7 4.7 12.3 0 17l-22.6 22.6c-4.7 4.7-12.3 4.7-17 0L256 295.6l-62.2 62.2c-4.7 4.7-12.3 4.7-17 0l-22.6-22.6c-4.7-4.7-4.7-12.3 0-17l62.2-62.2-62.2-62.2c-4.7-4.7-4.7-12.3 0-17l22.6-22.6c4.7-4.7 12.3-4.7 17 0l62.2 62.2 62.2-62.2c4.7-4.7 12.3-4.7 17 0l22.6 22.6c4.7 4.7 4.7 12.3 0 17z"},"check-circle":{"viewBox":"0 0 512 512","path":"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 48c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m140.204 130.267l-22.536-22.718c-4.667-4.705-12.265-4.736-16.97-.068L215.346 303.697l-59.792-60.277c-4.667-4.705-12.265-4.736-16.97-.069l-22.719 22.536c-4.705 4.667-4.736 12.265-.068 16.971l90.781 91.516c4.667 4.705 12.265 4.736 16.97.068l172.589-171.204c4.704-4.668 4.734-12.266.067-16.971z"},"chart-bar":{"viewBox":"0 0 512 512","path":"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z"},"thumbs-up":{"viewBox":"0 0 512 512","path":"M466.27 286.69C475.04 271.84 480 256 480 236.85c0-44.015-37.218-85.58-85.82-85.58H357.7c4.92-12.81 8.85-28.13 8.85-46.54C366.55 31.936 328.86 0 271.28 0c-61.607 0-58.093 94.933-71.76 108.6-22.747 22.747-49.615 66.447-68.76 83.4H32c-17.673 0-32 14.327-32 32v240c0 17.673 14.327 32 32 32h64c14.893 0 27.408-10.174 30.978-23.95 44.509 1.001 75.06 39.94 177.802 39.94 7.22 0 15.22.01 22.22.01 77.117 0 111.986-39.423 112.94-95.33 13.319-18.425 20.299-43.122 17.34-66.99 9.854-18.452 13.664-40.343 8.99-62.99zm-61.75 53.83c12.56 21.13 1.26 49.41-13.94 57.57 7.7 48.78-17.608 65.9-53.12 65.9h-37.82c-71.639 0-118.029-37.82-171.64-37.82V240h10.92c28.36 0 67.98-70.89 94.54-97.46 28.36-28.36 18.91-75.63 37.82-94.54 47.27 0 47.27 32.98 47.27 56.73 0 39.17-28.36 56.72-28.36 94.54h103.99c21.11 0 37.73 18.91 37.82 37.82.09 18.9-12.82 37.81-22.27 37.81 13.489 14.555 16.371 45.236-5.21 65.62zM88 432c0 13.255-10.745 24-24 24s-24-10.745-24-24 10.745-24 24-24 24 10.745 24 24z"},"thumbs-down":{"viewBox":"0 0 512 512","path":"M466.27 225.31c4.674-22.647.864-44.538-8.99-62.99 2.958-23.868-4.021-48.565-17.34-66.99C438.986 39.423 404.117 0 327 0c-7 0-15 .01-22.22.01C201.195.01 168.997 40 128 40h-10.845c-5.64-4.975-13.042-8-21.155-8H32C14.327 32 0 46.327 0 64v240c0 17.673 14.327 32 32 32h64c11.842 0 22.175-6.438 27.708-16h7.052c19.146 16.953 46.013 60.653 68.76 83.4 13.667 13.667 10.153 108.6 71.76 108.6 57.58 0 95.27-31.936 95.27-104.73 0-18.41-3.93-33.73-8.85-46.54h36.48c48.602 0 85.82-41.565 85.82-85.58 0-19.15-4.96-34.99-13.73-49.84zM64 296c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24zm330.18 16.73H290.19c0 37.82 28.36 55.37 28.36 94.54 0 23.75 0 56.73-47.27 56.73-18.91-18.91-9.46-66.18-37.82-94.54C206.9 342.89 167.28 272 138.92 272H128V85.83c53.611 0 100.001-37.82 171.64-37.82h37.82c35.512 0 60.82 17.12 53.12 65.9 15.2 8.16 26.5 36.44 13.94 57.57 21.581 20.384 18.699 51.065 5.21 65.62 9.45 0 22.36 18.91 22.27 37.81-.09 18.91-16.71 37.82-37.82 37.82z"},"heart":{"viewBox":"0 0 512 512","path":"M458.4 64.3C400.6 15.7 311.3 23 256 79.3 200.7 23 111.4 15.6 53.6 64.3-21.6 127.6-10.6 230.8 43 285.5l175.4 178.7c10 10.2 23.4 15.9 37.6 15.9 14.3 0 27.6-5.6 37.6-15.8L469 285.6c53.5-54.7 64.7-157.9-10.6-221.3zm-23.6 187.5L259.4 430.5c-2.4 2.4-4.4 2.4-6.8 0L77.2 251.8c-36.5-37.2-43.9-107.6 7.3-150.7 38.9-32.7 98.9-27.8 136.5 10.5l35 35.7 35-35.7c37.8-38.5 97.8-43.2 136.5-10.6 51.1 43.1 43.5 113.9 7.3 150.8z"},"lemon":{"viewBox":"0 0 512 512","path":"M484.112 27.889C455.989-.233 416.108-8.057 387.059 8.865 347.604 31.848 223.504-41.111 91.196 91.197-41.277 223.672 31.923 347.472 8.866 387.058c-16.922 29.051-9.1 68.932 19.022 97.054 28.135 28.135 68.011 35.938 97.057 19.021 39.423-22.97 163.557 49.969 295.858-82.329 132.474-132.477 59.273-256.277 82.331-295.861 16.922-29.05 9.1-68.931-19.022-97.054zm-22.405 72.894c-38.8 66.609 45.6 165.635-74.845 286.08-120.44 120.443-219.475 36.048-286.076 74.843-22.679 13.207-64.035-27.241-50.493-50.488 38.8-66.609-45.6-165.635 74.845-286.08C245.573 4.702 344.616 89.086 411.219 50.292c22.73-13.24 64.005 27.288 50.488 50.491zm-169.861 8.736c1.37 10.96-6.404 20.957-17.365 22.327-54.846 6.855-135.779 87.787-142.635 142.635-1.373 10.989-11.399 18.734-22.326 17.365-10.961-1.37-18.735-11.366-17.365-22.326 9.162-73.286 104.167-168.215 177.365-177.365 10.953-1.368 20.956 6.403 22.326 17.364z"},"square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-6 400H54c-3.3 0-6-2.7-6-6V86c0-3.3 2.7-6 6-6h340c3.3 0 6 2.7 6 6v340c0 3.3-2.7 6-6 6z"},"bookmark":{"viewBox":"0 0 384 512","path":"M336 0H48C21.49 0 0 21.49 0 48v464l192-112 192 112V48c0-26.51-21.49-48-48-48zm0 428.43l-144-84-144 84V54a6 6 0 0 1 6-6h276c3.314 0 6 2.683 6 5.996V428.43z"},"hdd":{"viewBox":"0 0 576 512","path":"M567.403 235.642L462.323 84.589A48 48 0 0 0 422.919 64H153.081a48 48 0 0 0-39.404 20.589L8.597 235.642A48.001 48.001 0 0 0 0 263.054V400c0 26.51 21.49 48 48 48h480c26.51 0 48-21.49 48-48V263.054c0-9.801-3-19.366-8.597-27.412zM153.081 112h269.838l77.913 112H75.168l77.913-112zM528 400H48V272h480v128zm-32-64c0 17.673-14.327 32-32 32s-32-14.327-32-32 14.327-32 32-32 32 14.327 32 32zm-96 0c0 17.673-14.327 32-32 32s-32-14.327-32-32 14.327-32 32-32 32 14.327 32 32z"},"hand-point-right":{"viewBox":"0 0 512 512","path":"M428.8 137.6h-86.177a115.52 115.52 0 0 0 2.176-22.4c0-47.914-35.072-83.2-92-83.2-45.314 0-57.002 48.537-75.707 78.784-7.735 12.413-16.994 23.317-25.851 33.253l-.131.146-.129.148C135.662 161.807 127.764 168 120.8 168h-2.679c-5.747-4.952-13.536-8-22.12-8H32c-17.673 0-32 12.894-32 28.8v230.4C0 435.106 14.327 448 32 448h64c8.584 0 16.373-3.048 22.12-8h2.679c28.688 0 67.137 40 127.2 40h21.299c62.542 0 98.8-38.658 99.94-91.145 12.482-17.813 18.491-40.785 15.985-62.791A93.148 93.148 0 0 0 393.152 304H428.8c45.435 0 83.2-37.584 83.2-83.2 0-45.099-38.101-83.2-83.2-83.2zm0 118.4h-91.026c12.837 14.669 14.415 42.825-4.95 61.05 11.227 19.646 1.687 45.624-12.925 53.625 6.524 39.128-10.076 61.325-50.6 61.325H248c-45.491 0-77.21-35.913-120-39.676V215.571c25.239-2.964 42.966-21.222 59.075-39.596 11.275-12.65 21.725-25.3 30.799-39.875C232.355 112.712 244.006 80 252.8 80c23.375 0 44 8.8 44 35.2 0 35.2-26.4 53.075-26.4 70.4h158.4c18.425 0 35.2 16.5 35.2 35.2 0 18.975-16.225 35.2-35.2 35.2zM88 384c0 13.255-10.745 24-24 24s-24-10.745-24-24 10.745-24 24-24 24 10.745 24 24z"},"hand-point-left":{"viewBox":"0 0 512 512","path":"M0 220.8C0 266.416 37.765 304 83.2 304h35.647a93.148 93.148 0 0 0 7.929 22.064c-2.507 22.006 3.503 44.978 15.985 62.791C143.9 441.342 180.159 480 242.701 480H264c60.063 0 98.512-40 127.2-40h2.679c5.747 4.952 13.536 8 22.12 8h64c17.673 0 32-12.894 32-28.8V188.8c0-15.906-14.327-28.8-32-28.8h-64c-8.584 0-16.373 3.048-22.12 8H391.2c-6.964 0-14.862-6.193-30.183-23.668l-.129-.148-.131-.146c-8.856-9.937-18.116-20.841-25.851-33.253C316.202 80.537 304.514 32 259.2 32c-56.928 0-92 35.286-92 83.2 0 8.026.814 15.489 2.176 22.4H83.2C38.101 137.6 0 175.701 0 220.8zm48 0c0-18.7 16.775-35.2 35.2-35.2h158.4c0-17.325-26.4-35.2-26.4-70.4 0-26.4 20.625-35.2 44-35.2 8.794 0 20.445 32.712 34.926 56.1 9.074 14.575 19.524 27.225 30.799 39.875 16.109 18.374 33.836 36.633 59.075 39.596v176.752C341.21 396.087 309.491 432 264 432h-21.299c-40.524 0-57.124-22.197-50.601-61.325-14.612-8.001-24.151-33.979-12.925-53.625-19.365-18.225-17.787-46.381-4.95-61.05H83.2C64.225 256 48 239.775 48 220.8zM448 360c13.255 0 24 10.745 24 24s-10.745 24-24 24-24-10.745-24-24 10.745-24 24-24z"},"hand-point-up":{"viewBox":"0 0 448 512","path":"M105.6 83.2v86.177a115.52 115.52 0 0 0-22.4-2.176c-47.914 0-83.2 35.072-83.2 92 0 45.314 48.537 57.002 78.784 75.707 12.413 7.735 23.317 16.994 33.253 25.851l.146.131.148.129C129.807 376.338 136 384.236 136 391.2v2.679c-4.952 5.747-8 13.536-8 22.12v64c0 17.673 12.894 32 28.8 32h230.4c15.906 0 28.8-14.327 28.8-32v-64c0-8.584-3.048-16.373-8-22.12V391.2c0-28.688 40-67.137 40-127.2v-21.299c0-62.542-38.658-98.8-91.145-99.94-17.813-12.482-40.785-18.491-62.791-15.985A93.148 93.148 0 0 0 272 118.847V83.2C272 37.765 234.416 0 188.8 0c-45.099 0-83.2 38.101-83.2 83.2zm118.4 0v91.026c14.669-12.837 42.825-14.415 61.05 4.95 19.646-11.227 45.624-1.687 53.625 12.925 39.128-6.524 61.325 10.076 61.325 50.6V264c0 45.491-35.913 77.21-39.676 120H183.571c-2.964-25.239-21.222-42.966-39.596-59.075-12.65-11.275-25.3-21.725-39.875-30.799C80.712 279.645 48 267.994 48 259.2c0-23.375 8.8-44 35.2-44 35.2 0 53.075 26.4 70.4 26.4V83.2c0-18.425 16.5-35.2 35.2-35.2 18.975 0 35.2 16.225 35.2 35.2zM352 424c13.255 0 24 10.745 24 24s-10.745 24-24 24-24-10.745-24-24 10.745-24 24-24z"},"hand-point-down":{"viewBox":"0 0 448 512","path":"M188.8 512c45.616 0 83.2-37.765 83.2-83.2v-35.647a93.148 93.148 0 0 0 22.064-7.929c22.006 2.507 44.978-3.503 62.791-15.985C409.342 368.1 448 331.841 448 269.299V248c0-60.063-40-98.512-40-127.2v-2.679c4.952-5.747 8-13.536 8-22.12V32c0-17.673-12.894-32-28.8-32H156.8C140.894 0 128 14.327 128 32v64c0 8.584 3.048 16.373 8 22.12v2.679c0 6.964-6.193 14.862-23.668 30.183l-.148.129-.146.131c-9.937 8.856-20.841 18.116-33.253 25.851C48.537 195.798 0 207.486 0 252.8c0 56.928 35.286 92 83.2 92 8.026 0 15.489-.814 22.4-2.176V428.8c0 45.099 38.101 83.2 83.2 83.2zm0-48c-18.7 0-35.2-16.775-35.2-35.2V270.4c-17.325 0-35.2 26.4-70.4 26.4-26.4 0-35.2-20.625-35.2-44 0-8.794 32.712-20.445 56.1-34.926 14.575-9.074 27.225-19.524 39.875-30.799 18.374-16.109 36.633-33.836 39.596-59.075h176.752C364.087 170.79 400 202.509 400 248v21.299c0 40.524-22.197 57.124-61.325 50.601-8.001 14.612-33.979 24.151-53.625 12.925-18.225 19.365-46.381 17.787-61.05 4.95V428.8c0 18.975-16.225 35.2-35.2 35.2zM328 64c0-13.255 10.745-24 24-24s24 10.745 24 24-10.745 24-24 24-24-10.745-24-24z"},"copy":{"viewBox":"0 0 448 512","path":"M433.941 65.941l-51.882-51.882A48 48 0 0 0 348.118 0H176c-26.51 0-48 21.49-48 48v48H48c-26.51 0-48 21.49-48 48v320c0 26.51 21.49 48 48 48h224c26.51 0 48-21.49 48-48v-48h80c26.51 0 48-21.49 48-48V99.882a48 48 0 0 0-14.059-33.941zM266 464H54a6 6 0 0 1-6-6V150a6 6 0 0 1 6-6h74v224c0 26.51 21.49 48 48 48h96v42a6 6 0 0 1-6 6zm128-96H182a6 6 0 0 1-6-6V54a6 6 0 0 1 6-6h106v88c0 13.255 10.745 24 24 24h88v202a6 6 0 0 1-6 6zm6-256h-64V48h9.632c1.591 0 3.117.632 4.243 1.757l48.368 48.368a6 6 0 0 1 1.757 4.243V112z"},"save":{"viewBox":"0 0 448 512","path":"M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM272 80v80H144V80h128zm122 352H54a6 6 0 0 1-6-6V86a6 6 0 0 1 6-6h42v104c0 13.255 10.745 24 24 24h176c13.255 0 24-10.745 24-24V83.882l78.243 78.243a6 6 0 0 1 1.757 4.243V426a6 6 0 0 1-6 6zM224 232c-48.523 0-88 39.477-88 88s39.477 88 88 88 88-39.477 88-88-39.477-88-88-88zm0 128c-22.056 0-40-17.944-40-40s17.944-40 40-40 40 17.944 40 40-17.944 40-40 40z"},"money-bill-alt":{"viewBox":"0 0 640 512","path":"M320 144c-53.02 0-96 50.14-96 112 0 61.85 42.98 112 96 112 53 0 96-50.13 96-112 0-61.86-42.98-112-96-112zm40 168c0 4.42-3.58 8-8 8h-64c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h16v-55.44l-.47.31a7.992 7.992 0 0 1-11.09-2.22l-8.88-13.31a7.992 7.992 0 0 1 2.22-11.09l15.33-10.22a23.99 23.99 0 0 1 13.31-4.03H328c4.42 0 8 3.58 8 8v88h16c4.42 0 8 3.58 8 8v16zM608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zm-16 272c-35.35 0-64 28.65-64 64H112c0-35.35-28.65-64-64-64V176c35.35 0 64-28.65 64-64h416c0 35.35 28.65 64 64 64v160z"},"comment":{"viewBox":"0 0 512 512","path":"M256 32C114.6 32 0 125.1 0 240c0 47.6 19.9 91.2 52.9 126.3C38 405.7 7 439.1 6.5 439.5c-6.6 7-8.4 17.2-4.6 26S14.4 480 24 480c61.5 0 110-25.7 139.1-46.3C192 442.8 223.2 448 256 448c141.4 0 256-93.1 256-208S397.4 32 256 32zm0 368c-26.7 0-53.1-4.1-78.4-12.1l-22.7-7.2-19.5 13.8c-14.3 10.1-33.9 21.4-57.5 29 7.3-12.1 14.4-25.7 19.9-40.2l10.6-28.1-20.6-21.8C69.7 314.1 48 282.2 48 240c0-88.2 93.3-160 208-160s208 71.8 208 160-93.3 160-208 160z"},"comments":{"viewBox":"0 0 576 512","path":"M532 386.2c27.5-27.1 44-61.1 44-98.2 0-80-76.5-146.1-176.2-157.9C368.3 72.5 294.3 32 208 32 93.1 32 0 103.6 0 192c0 37 16.5 71 44 98.2-15.3 30.7-37.3 54.5-37.7 54.9-6.3 6.7-8.1 16.5-4.4 25 3.6 8.5 12 14 21.2 14 53.5 0 96.7-20.2 125.2-38.8 9.2 2.1 18.7 3.7 28.4 4.9C208.1 407.6 281.8 448 368 448c20.8 0 40.8-2.4 59.8-6.8C456.3 459.7 499.4 480 553 480c9.2 0 17.5-5.5 21.2-14 3.6-8.5 1.9-18.3-4.4-25-.4-.3-22.5-24.1-37.8-54.8zm-392.8-92.3L122.1 305c-14.1 9.1-28.5 16.3-43.1 21.4 2.7-4.7 5.4-9.7 8-14.8l15.5-31.1L77.7 256C64.2 242.6 48 220.7 48 192c0-60.7 73.3-112 160-112s160 51.3 160 112-73.3 112-160 112c-16.5 0-33-1.9-49-5.6l-19.8-4.5zM498.3 352l-24.7 24.4 15.5 31.1c2.6 5.1 5.3 10.1 8 14.8-14.6-5.1-29-12.3-43.1-21.4l-17.1-11.1-19.9 4.6c-16 3.7-32.5 5.6-49 5.6-54 0-102.2-20.1-131.3-49.7C338 339.5 416 272.9 416 192c0-3.4-.4-6.7-.7-10C479.7 196.5 528 238.8 528 288c0 28.7-16.2 50.6-29.7 64z"},"lightbulb":{"viewBox":"0 0 352 512","path":"M176 80c-52.94 0-96 43.06-96 96 0 8.84 7.16 16 16 16s16-7.16 16-16c0-35.3 28.72-64 64-64 8.84 0 16-7.16 16-16s-7.16-16-16-16zM96.06 459.17c0 3.15.93 6.22 2.68 8.84l24.51 36.84c2.97 4.46 7.97 7.14 13.32 7.14h78.85c5.36 0 10.36-2.68 13.32-7.14l24.51-36.84c1.74-2.62 2.67-5.7 2.68-8.84l.05-43.18H96.02l.04 43.18zM176 0C73.72 0 0 82.97 0 176c0 44.37 16.45 84.85 43.56 115.78 16.64 18.99 42.74 58.8 52.42 92.16v.06h48v-.12c-.01-4.77-.72-9.51-2.15-14.07-5.59-17.81-22.82-64.77-62.17-109.67-20.54-23.43-31.52-53.15-31.61-84.14-.2-73.64 59.67-128 127.95-128 70.58 0 128 57.42 128 128 0 30.97-11.24 60.85-31.65 84.14-39.11 44.61-56.42 91.47-62.1 109.46a47.507 47.507 0 0 0-2.22 14.3v.1h48v-.05c9.68-33.37 35.78-73.18 52.42-92.16C335.55 260.85 352 220.37 352 176 352 78.8 273.2 0 176 0z"},"bell":{"viewBox":"0 0 448 512","path":"M439.39 362.29c-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84C118.56 68.1 64.08 130.3 64.08 208c0 102.3-36.15 133.53-55.47 154.29-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h383.8c19.12 0 32-15.6 32.1-32 .05-7.55-2.61-15.27-8.61-21.71zM67.53 368c21.22-27.97 44.42-74.33 44.53-159.42 0-.2-.06-.38-.06-.58 0-61.86 50.14-112 112-112s112 50.14 112 112c0 .2-.06.38-.06.58.11 85.1 23.31 131.46 44.53 159.42H67.53zM224 512c35.32 0 63.97-28.65 63.97-64H160.03c0 35.35 28.65 64 63.97 64z"},"file-alt":{"viewBox":"0 0 384 512","path":"M288 248v28c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-28c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm-12 72H108c-6.6 0-12 5.4-12 12v28c0 6.6 5.4 12 12 12h168c6.6 0 12-5.4 12-12v-28c0-6.6-5.4-12-12-12zm108-188.1V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V48C0 21.5 21.5 0 48 0h204.1C264.8 0 277 5.1 286 14.1L369.9 98c9 8.9 14.1 21.2 14.1 33.9zm-128-80V128h76.1L256 51.9zM336 464V176H232c-13.3 0-24-10.7-24-24V48H48v416h288z"},"building":{"viewBox":"0 0 448 512","path":"M128 148v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12zm140 12h40c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12zm-128 96h40c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12zm128 0h40c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12zm-76 84v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm76 12h40c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12zm180 124v36H0v-36c0-6.6 5.4-12 12-12h19.5V24c0-13.3 10.7-24 24-24h337c13.3 0 24 10.7 24 24v440H436c6.6 0 12 5.4 12 12zM79.5 463H192v-67c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v67h112.5V49L80 48l-.5 415z"},"hospital":{"viewBox":"0 0 448 512","path":"M128 244v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12zm140 12h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12zm-76 84v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm76 12h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12zm180 124v36H0v-36c0-6.627 5.373-12 12-12h19.5V85.035C31.5 73.418 42.245 64 55.5 64H144V24c0-13.255 10.745-24 24-24h112c13.255 0 24 10.745 24 24v40h88.5c13.255 0 24 9.418 24 21.035V464H436c6.627 0 12 5.373 12 12zM79.5 463H192v-67c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v67h112.5V112H304v24c0 13.255-10.745 24-24 24H168c-13.255 0-24-10.745-24-24v-24H79.5v351zM266 64h-26V38a6 6 0 0 0-6-6h-20a6 6 0 0 0-6 6v26h-26a6 6 0 0 0-6 6v20a6 6 0 0 0 6 6h26v26a6 6 0 0 0 6 6h20a6 6 0 0 0 6-6V96h26a6 6 0 0 0 6-6V70a6 6 0 0 0-6-6z"},"circle":{"viewBox":"0 0 512 512","path":"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200z"},"folder":{"viewBox":"0 0 512 512","path":"M464 128H272l-54.63-54.63c-6-6-14.14-9.37-22.63-9.37H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48zm0 272H48V112h140.12l54.63 54.63c6 6 14.14 9.37 22.63 9.37H464v224z"},"folder-open":{"viewBox":"0 0 576 512","path":"M527.943 224H480v-48c0-26.51-21.49-48-48-48H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h400a48.001 48.001 0 0 0 40.704-22.56l79.942-128c19.948-31.917-3.038-73.44-40.703-73.44zM54 112h134.118l64 64H426a6 6 0 0 1 6 6v42H152a48 48 0 0 0-41.098 23.202L48 351.449V117.993A5.993 5.993 0 0 1 54 112zm394 288H72l77.234-128H528l-80 128z"},"smile":{"viewBox":"0 0 496 512","path":"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm-80-216c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm4 72.6c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.7-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.1-8.4-25.3-7.1-33.8 3.1z"},"frown":{"viewBox":"0 0 496 512","path":"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm-80-216c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160-64c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm-80 128c-40.2 0-78 17.7-103.8 48.6-8.5 10.2-7.1 25.3 3.1 33.8 10.2 8.4 25.3 7.1 33.8-3.1 16.6-19.9 41-31.4 66.9-31.4s50.3 11.4 66.9 31.4c8.1 9.7 23.1 11.9 33.8 3.1 10.2-8.5 11.5-23.6 3.1-33.8C326 321.7 288.2 304 248 304z"},"meh":{"viewBox":"0 0 496 512","path":"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm-80-216c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160-64c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm8 144H160c-13.2 0-24 10.8-24 24s10.8 24 24 24h176c13.2 0 24-10.8 24-24s-10.8-24-24-24z"},"keyboard":{"viewBox":"0 0 576 512","path":"M528 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h480c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm8 336c0 4.411-3.589 8-8 8H48c-4.411 0-8-3.589-8-8V112c0-4.411 3.589-8 8-8h480c4.411 0 8 3.589 8 8v288zM170 270v-28c0-6.627-5.373-12-12-12h-28c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm96 0v-28c0-6.627-5.373-12-12-12h-28c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm96 0v-28c0-6.627-5.373-12-12-12h-28c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm96 0v-28c0-6.627-5.373-12-12-12h-28c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm-336 82v-28c0-6.627-5.373-12-12-12H82c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm384 0v-28c0-6.627-5.373-12-12-12h-28c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zM122 188v-28c0-6.627-5.373-12-12-12H82c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm96 0v-28c0-6.627-5.373-12-12-12h-28c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm96 0v-28c0-6.627-5.373-12-12-12h-28c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm96 0v-28c0-6.627-5.373-12-12-12h-28c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm96 0v-28c0-6.627-5.373-12-12-12h-28c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm-98 158v-16c0-6.627-5.373-12-12-12H180c-6.627 0-12 5.373-12 12v16c0 6.627 5.373 12 12 12h216c6.627 0 12-5.373 12-12z"},"flag":{"viewBox":"0 0 512 512","path":"M336.174 80c-49.132 0-93.305-32-161.913-32-31.301 0-58.303 6.482-80.721 15.168a48.04 48.04 0 0 0 2.142-20.727C93.067 19.575 74.167 1.594 51.201.104 23.242-1.71 0 20.431 0 48c0 17.764 9.657 33.262 24 41.562V496c0 8.837 7.163 16 16 16h16c8.837 0 16-7.163 16-16v-83.443C109.869 395.28 143.259 384 199.826 384c49.132 0 93.305 32 161.913 32 58.479 0 101.972-22.617 128.548-39.981C503.846 367.161 512 352.051 512 335.855V95.937c0-34.459-35.264-57.768-66.904-44.117C409.193 67.309 371.641 80 336.174 80zM464 336c-21.783 15.412-60.824 32-102.261 32-59.945 0-102.002-32-161.913-32-43.361 0-96.379 9.403-127.826 24V128c21.784-15.412 60.824-32 102.261-32 59.945 0 102.002 32 161.913 32 43.271 0 96.32-17.366 127.826-32v240z"},"star-half":{"viewBox":"0 0 576 512","path":"M288 385.3l-124.3 65.4 23.7-138.4-100.6-98 139-20.2 62.2-126V0c-11.4 0-22.8 5.9-28.7 17.8L194 150.2 47.9 171.4c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.1 23 46 46.4 33.7L288 439.6v-54.3z"},"calendar":{"viewBox":"0 0 448 512","path":"M400 64h-48V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H160V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zm-6 400H54c-3.3 0-6-2.7-6-6V160h352v298c0 3.3-2.7 6-6 6z"},"minus-square":{"viewBox":"0 0 448 512","path":"M108 284c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h232c6.6 0 12 5.4 12 12v32c0 6.6-5.4 12-12 12H108zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"},"caret-square-down":{"viewBox":"0 0 448 512","path":"M125.1 208h197.8c10.7 0 16.1 13 8.5 20.5l-98.9 98.3c-4.7 4.7-12.2 4.7-16.9 0l-98.9-98.3c-7.7-7.5-2.3-20.5 8.4-20.5zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"},"caret-square-up":{"viewBox":"0 0 448 512","path":"M322.9 304H125.1c-10.7 0-16.1-13-8.5-20.5l98.9-98.3c4.7-4.7 12.2-4.7 16.9 0l98.9 98.3c7.7 7.5 2.3 20.5-8.4 20.5zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"},"caret-square-right":{"viewBox":"0 0 448 512","path":"M176 354.9V157.1c0-10.7 13-16.1 20.5-8.5l98.3 98.9c4.7 4.7 4.7 12.2 0 16.9l-98.3 98.9c-7.5 7.7-20.5 2.3-20.5-8.4zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"},"sun":{"viewBox":"0 0 512 512","path":"M494.2 221.9l-59.8-40.5 13.7-71c2.6-13.2-1.6-26.8-11.1-36.4-9.6-9.5-23.2-13.7-36.2-11.1l-70.9 13.7-40.4-59.9c-15.1-22.3-51.9-22.3-67 0l-40.4 59.9-70.8-13.7C98 60.4 84.5 64.5 75 74.1c-9.5 9.6-13.7 23.1-11.1 36.3l13.7 71-59.8 40.5C6.6 229.5 0 242 0 255.5s6.7 26 17.8 33.5l59.8 40.5-13.7 71c-2.6 13.2 1.6 26.8 11.1 36.3 9.5 9.5 22.9 13.7 36.3 11.1l70.8-13.7 40.4 59.9C230 505.3 242.6 512 256 512s26-6.7 33.5-17.8l40.4-59.9 70.9 13.7c13.4 2.7 26.8-1.6 36.3-11.1 9.5-9.5 13.6-23.1 11.1-36.3l-13.7-71 59.8-40.5c11.1-7.5 17.8-20.1 17.8-33.5-.1-13.6-6.7-26.1-17.9-33.7zm-112.9 85.6l17.6 91.2-91-17.6L256 458l-51.9-77-90.9 17.6 17.6-91.2-76.8-52 76.8-52-17.6-91.2 91 17.6L256 53l51.9 76.9 91-17.6-17.6 91.1 76.8 52-76.8 52.1zM256 152c-57.3 0-104 46.7-104 104s46.7 104 104 104 104-46.7 104-104-46.7-104-104-104zm0 160c-30.9 0-56-25.1-56-56s25.1-56 56-56 56 25.1 56 56-25.1 56-56 56z"},"moon":{"viewBox":"0 0 512 512","path":"M279.135 512c78.756 0 150.982-35.804 198.844-94.775 28.27-34.831-2.558-85.722-46.249-77.401-82.348 15.683-158.272-47.268-158.272-130.792 0-48.424 26.06-92.292 67.434-115.836 38.745-22.05 28.999-80.788-15.022-88.919A257.936 257.936 0 0 0 279.135 0c-141.36 0-256 114.575-256 256 0 141.36 114.576 256 256 256zm0-464c12.985 0 25.689 1.201 38.016 3.478-54.76 31.163-91.693 90.042-91.693 157.554 0 113.848 103.641 199.2 215.252 177.944C402.574 433.964 344.366 464 279.135 464c-114.875 0-208-93.125-208-208s93.125-208 208-208z"},"caret-square-left":{"viewBox":"0 0 448 512","path":"M272 157.1v197.8c0 10.7-13 16.1-20.5 8.5l-98.3-98.9c-4.7-4.7-4.7-12.2 0-16.9l98.3-98.9c7.5-7.7 20.5-2.3 20.5 8.4zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"},"dot-circle":{"viewBox":"0 0 512 512","path":"M256 56c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m0-48C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 168c-44.183 0-80 35.817-80 80s35.817 80 80 80 80-35.817 80-80-35.817-80-80-80z"},"plus-square":{"viewBox":"0 0 448 512","path":"M352 240v32c0 6.6-5.4 12-12 12h-88v88c0 6.6-5.4 12-12 12h-32c-6.6 0-12-5.4-12-12v-88h-88c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h88v-88c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v88h88c6.6 0 12 5.4 12 12zm96-160v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"},"file-pdf":{"viewBox":"0 0 384 512","path":"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm250.2-143.7c-12.2-12-47-8.7-64.4-6.5-17.2-10.5-28.7-25-36.8-46.3 3.9-16.1 10.1-40.6 5.4-56-4.2-26.2-37.8-23.6-42.6-5.9-4.4 16.1-.4 38.5 7 67.1-10 23.9-24.9 56-35.4 74.4-20 10.3-47 26.2-51 46.2-3.3 15.8 26 55.2 76.1-31.2 22.4-7.4 46.8-16.5 68.4-20.1 18.9 10.2 41 17 55.8 17 25.5 0 28-28.2 17.5-38.7zm-198.1 77.8c5.1-13.7 24.5-29.5 30.4-35-19 30.3-30.4 35.7-30.4 35zm81.6-190.6c7.4 0 6.7 32.1 1.8 40.8-4.4-13.9-4.3-40.8-1.8-40.8zm-24.4 136.6c9.7-16.9 18-37 24.7-54.7 8.3 15.1 18.9 27.2 30.1 35.5-20.8 4.3-38.9 13.1-54.8 19.2zm131.6-5s-5 6-37.3-7.8c35.1-2.6 40.9 5.4 37.3 7.8z"},"file-word":{"viewBox":"0 0 384 512","path":"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm220.1-208c-5.7 0-10.6 4-11.7 9.5-20.6 97.7-20.4 95.4-21 103.5-.2-1.2-.4-2.6-.7-4.3-.8-5.1.3.2-23.6-99.5-1.3-5.4-6.1-9.2-11.7-9.2h-13.3c-5.5 0-10.3 3.8-11.7 9.1-24.4 99-24 96.2-24.8 103.7-.1-1.1-.2-2.5-.5-4.2-.7-5.2-14.1-73.3-19.1-99-1.1-5.6-6-9.7-11.8-9.7h-16.8c-7.8 0-13.5 7.3-11.7 14.8 8 32.6 26.7 109.5 33.2 136 1.3 5.4 6.1 9.1 11.7 9.1h25.2c5.5 0 10.3-3.7 11.6-9.1l17.9-71.4c1.5-6.2 2.5-12 3-17.3l2.9 17.3c.1.4 12.6 50.5 17.9 71.4 1.3 5.3 6.1 9.1 11.6 9.1h24.7c5.5 0 10.3-3.7 11.6-9.1 20.8-81.9 30.2-119 34.5-136 1.9-7.6-3.8-14.9-11.6-14.9h-15.8z"},"file-excel":{"viewBox":"0 0 384 512","path":"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm212-240h-28.8c-4.4 0-8.4 2.4-10.5 6.3-18 33.1-22.2 42.4-28.6 57.7-13.9-29.1-6.9-17.3-28.6-57.7-2.1-3.9-6.2-6.3-10.6-6.3H124c-9.3 0-15 10-10.4 18l46.3 78-46.3 78c-4.7 8 1.1 18 10.4 18h28.9c4.4 0 8.4-2.4 10.5-6.3 21.7-40 23-45 28.6-57.7 14.9 30.2 5.9 15.9 28.6 57.7 2.1 3.9 6.2 6.3 10.6 6.3H260c9.3 0 15-10 10.4-18L224 320c.7-1.1 30.3-50.5 46.3-78 4.7-8-1.1-18-10.3-18z"},"file-powerpoint":{"viewBox":"0 0 384 512","path":"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm72-60V236c0-6.6 5.4-12 12-12h69.2c36.7 0 62.8 27 62.8 66.3 0 74.3-68.7 66.5-95.5 66.5V404c0 6.6-5.4 12-12 12H132c-6.6 0-12-5.4-12-12zm48.5-87.4h23c7.9 0 13.9-2.4 18.1-7.2 8.5-9.8 8.4-28.5.1-37.8-4.1-4.6-9.9-7-17.4-7h-23.9v52z"},"file-image":{"viewBox":"0 0 384 512","path":"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm32-48h224V288l-23.5-23.5c-4.7-4.7-12.3-4.7-17 0L176 352l-39.5-39.5c-4.7-4.7-12.3-4.7-17 0L80 352v64zm48-240c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48z"},"file-archive":{"viewBox":"0 0 384 512","path":"M369.941 97.941l-83.882-83.882A48 48 0 0 0 252.118 0H48C21.49 0 0 21.49 0 48v416c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48V131.882a48 48 0 0 0-14.059-33.941zM256 51.882L332.118 128H256V51.882zM336 464H48V48h79.714v16h32V48H208v104c0 13.255 10.745 24 24 24h104v288zM192.27 96h-32V64h32v32zm-32 0v32h-32V96h32zm0 64v32h-32v-32h32zm32 0h-32v-32h32v32zm1.909 105.678A12 12 0 0 0 182.406 256H160.27v-32h-32v32l-19.69 97.106C101.989 385.611 126.834 416 160 416c33.052 0 57.871-30.192 51.476-62.62l-17.297-87.702zM160.27 390.073c-17.918 0-32.444-12.105-32.444-27.036 0-14.932 14.525-27.036 32.444-27.036s32.444 12.105 32.444 27.036c0 14.931-14.526 27.036-32.444 27.036zm32-166.073h-32v-32h32v32z"},"file-audio":{"viewBox":"0 0 384 512","path":"M369.941 97.941l-83.882-83.882A48 48 0 0 0 252.118 0H48C21.49 0 0 21.49 0 48v416c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48V131.882a48 48 0 0 0-14.059-33.941zM332.118 128H256V51.882L332.118 128zM48 464V48h160v104c0 13.255 10.745 24 24 24h104v288H48zm144-76.024c0 10.691-12.926 16.045-20.485 8.485L136 360.486h-28c-6.627 0-12-5.373-12-12v-56c0-6.627 5.373-12 12-12h28l35.515-36.947c7.56-7.56 20.485-2.206 20.485 8.485v135.952zm41.201-47.13c9.051-9.297 9.06-24.133.001-33.439-22.149-22.752 12.235-56.246 34.395-33.481 27.198 27.94 27.212 72.444.001 100.401-21.793 22.386-56.947-10.315-34.397-33.481z"},"file-video":{"viewBox":"0 0 384 512","path":"M369.941 97.941l-83.882-83.882A48 48 0 0 0 252.118 0H48C21.49 0 0 21.49 0 48v416c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48V131.882a48 48 0 0 0-14.059-33.941zM332.118 128H256V51.882L332.118 128zM48 464V48h160v104c0 13.255 10.745 24 24 24h104v288H48zm228.687-211.303L224 305.374V268c0-11.046-8.954-20-20-20H100c-11.046 0-20 8.954-20 20v104c0 11.046 8.954 20 20 20h104c11.046 0 20-8.954 20-20v-37.374l52.687 52.674C286.704 397.318 304 390.28 304 375.986V264.011c0-14.311-17.309-21.319-27.313-11.314z"},"file-code":{"viewBox":"0 0 384 512","path":"M369.941 97.941l-83.882-83.882A48 48 0 0 0 252.118 0H48C21.49 0 0 21.49 0 48v416c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48V131.882a48 48 0 0 0-14.059-33.941zM332.118 128H256V51.882L332.118 128zM48 464V48h160v104c0 13.255 10.745 24 24 24h104v288H48zm101.677-115.115L116.854 320l32.822-28.885a8.793 8.793 0 0 0 .605-12.624l-17.403-18.564c-3.384-3.613-8.964-3.662-12.438-.401L62.78 313.58c-3.703 3.474-3.704 9.367.001 12.84l57.659 54.055a8.738 8.738 0 0 0 6.012 2.381 8.746 8.746 0 0 0 6.427-2.782l17.403-18.563a8.795 8.795 0 0 0-.605-12.626zm84.284-127.85l-24.401-7.084a8.796 8.796 0 0 0-10.905 5.998L144.04 408.061c-1.353 4.66 1.338 9.552 5.998 10.905l24.403 7.084c4.68 1.355 9.557-1.354 10.905-5.998l54.612-188.112c1.354-4.66-1.337-9.552-5.997-10.905zm87.258 92.545l-57.658-54.055c-3.526-3.307-9.099-3.165-12.439.401l-17.403 18.563a8.795 8.795 0 0 0 .605 12.625L267.146 320l-32.822 28.885a8.793 8.793 0 0 0-.605 12.624l17.403 18.564a8.797 8.797 0 0 0 12.439.401h-.001l57.66-54.055c3.703-3.473 3.703-9.366-.001-12.839z"},"paper-plane":{"viewBox":"0 0 512 512","path":"M440 6.5L24 246.4c-34.4 19.9-31.1 70.8 5.7 85.9L144 379.6V464c0 46.4 59.2 65.5 86.6 28.6l43.8-59.1 111.9 46.2c5.9 2.4 12.1 3.6 18.3 3.6 8.2 0 16.3-2.1 23.6-6.2 12.8-7.2 21.6-20 23.9-34.5l59.4-387.2c6.1-40.1-36.9-68.8-71.5-48.9zM192 464v-64.6l36.6 15.1L192 464zm212.6-28.7l-153.8-63.5L391 169.5c10.7-15.5-9.5-33.5-23.7-21.2L155.8 332.6 48 288 464 48l-59.4 387.3z"},"futbol":{"viewBox":"0 0 496 512","path":"M483.8 179.4C449.8 74.6 352.6 8 248.1 8c-25.4 0-51.2 3.9-76.7 12.2C41.2 62.5-30.1 202.4 12.2 332.6 46.2 437.4 143.4 504 247.9 504c25.4 0 51.2-3.9 76.7-12.2 130.2-42.3 201.5-182.2 159.2-312.4zm-74.5 193.7l-52.2 6.4-43.7-60.9 24.4-75.2 71.1-22.1 38.9 36.4c-.2 30.7-7.4 61.1-21.7 89.2-4.7 9.3-10.7 17.8-16.8 26.2zm0-235.4l-10.4 53.1-70.7 22-64.2-46.5V92.5l47.4-26.2c39.2 13 73.4 38 97.9 71.4zM184.9 66.4L232 92.5v73.8l-64.2 46.5-70.6-22-10.1-52.5c24.3-33.4 57.9-58.6 97.8-71.9zM139 379.5L85.9 373c-14.4-20.1-37.3-59.6-37.8-115.3l39-36.4 71.1 22.2 24.3 74.3-43.5 61.7zm48.2 67l-22.4-48.1 43.6-61.7H287l44.3 61.7-22.4 48.1c-6.2 1.8-57.6 20.4-121.7 0z"},"newspaper":{"viewBox":"0 0 576 512","path":"M552 64H112c-20.858 0-38.643 13.377-45.248 32H24c-13.255 0-24 10.745-24 24v272c0 30.928 25.072 56 56 56h496c13.255 0 24-10.745 24-24V88c0-13.255-10.745-24-24-24zM48 392V144h16v248c0 4.411-3.589 8-8 8s-8-3.589-8-8zm480 8H111.422c.374-2.614.578-5.283.578-8V112h416v288zM172 280h136c6.627 0 12-5.373 12-12v-96c0-6.627-5.373-12-12-12H172c-6.627 0-12 5.373-12 12v96c0 6.627 5.373 12 12 12zm28-80h80v40h-80v-40zm-40 140v-24c0-6.627 5.373-12 12-12h136c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12H172c-6.627 0-12-5.373-12-12zm192 0v-24c0-6.627 5.373-12 12-12h104c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12H364c-6.627 0-12-5.373-12-12zm0-144v-24c0-6.627 5.373-12 12-12h104c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12H364c-6.627 0-12-5.373-12-12zm0 72v-24c0-6.627 5.373-12 12-12h104c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12H364c-6.627 0-12-5.373-12-12z"},"bell-slash":{"viewBox":"0 0 640 512","path":"M633.99 471.02L36 3.51C29.1-2.01 19.03-.9 13.51 6l-10 12.49C-2.02 25.39-.9 35.46 6 40.98l598 467.51c6.9 5.52 16.96 4.4 22.49-2.49l10-12.49c5.52-6.9 4.41-16.97-2.5-22.49zM163.53 368c16.71-22.03 34.48-55.8 41.4-110.58l-45.47-35.55c-3.27 90.73-36.47 120.68-54.84 140.42-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h279.66l-61.4-48H163.53zM320 96c61.86 0 112 50.14 112 112 0 .2-.06.38-.06.58.02 16.84 1.16 31.77 2.79 45.73l59.53 46.54c-8.31-22.13-14.34-51.49-14.34-92.85 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84c-26.02 5.41-49.45 16.94-69.13 32.72l38.17 29.84C275 103.18 296.65 96 320 96zm0 416c35.32 0 63.97-28.65 63.97-64H256.03c0 35.35 28.65 64 63.97 64z"},"closed-captioning":{"viewBox":"0 0 512 512","path":"M464 64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zm-6 336H54c-3.3 0-6-2.7-6-6V118c0-3.3 2.7-6 6-6h404c3.3 0 6 2.7 6 6v276c0 3.3-2.7 6-6 6zm-211.1-85.7c1.7 2.4 1.5 5.6-.5 7.7-53.6 56.8-172.8 32.1-172.8-67.9 0-97.3 121.7-119.5 172.5-70.1 2.1 2 2.5 3.2 1 5.7l-17.5 30.5c-1.9 3.1-6.2 4-9.1 1.7-40.8-32-94.6-14.9-94.6 31.2 0 48 51 70.5 92.2 32.6 2.8-2.5 7.1-2.1 9.2.9l19.6 27.7zm190.4 0c1.7 2.4 1.5 5.6-.5 7.7-53.6 56.9-172.8 32.1-172.8-67.9 0-97.3 121.7-119.5 172.5-70.1 2.1 2 2.5 3.2 1 5.7L420 220.2c-1.9 3.1-6.2 4-9.1 1.7-40.8-32-94.6-14.9-94.6 31.2 0 48 51 70.5 92.2 32.6 2.8-2.5 7.1-2.1 9.2.9l19.6 27.7z"},"gem":{"viewBox":"0 0 576 512","path":"M464 0H112c-4 0-7.8 2-10 5.4L2 152.6c-2.9 4.4-2.6 10.2.7 14.2l276 340.8c4.8 5.9 13.8 5.9 18.6 0l276-340.8c3.3-4.1 3.6-9.8.7-14.2L474.1 5.4C471.8 2 468.1 0 464 0zm-19.3 48l63.3 96h-68.4l-51.7-96h56.8zm-202.1 0h90.7l51.7 96H191l51.6-96zm-111.3 0h56.8l-51.7 96H68l63.3-96zm-43 144h51.4L208 352 88.3 192zm102.9 0h193.6L288 435.3 191.2 192zM368 352l68.2-160h51.4L368 352z"},"sticky-note":{"viewBox":"0 0 448 512","path":"M448 348.106V80c0-26.51-21.49-48-48-48H48C21.49 32 0 53.49 0 80v351.988c0 26.51 21.49 48 48 48h268.118a48 48 0 0 0 33.941-14.059l83.882-83.882A48 48 0 0 0 448 348.106zm-128 80v-76.118h76.118L320 428.106zM400 80v223.988H296c-13.255 0-24 10.745-24 24v104H48V80h352z"},"hourglass":{"viewBox":"0 0 384 512","path":"M368 48h4c6.627 0 12-5.373 12-12V12c0-6.627-5.373-12-12-12H12C5.373 0 0 5.373 0 12v24c0 6.627 5.373 12 12 12h4c0 80.564 32.188 165.807 97.18 208C47.899 298.381 16 383.9 16 464h-4c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h360c6.627 0 12-5.373 12-12v-24c0-6.627-5.373-12-12-12h-4c0-80.564-32.188-165.807-97.18-208C336.102 213.619 368 128.1 368 48zM64 48h256c0 101.62-57.307 184-128 184S64 149.621 64 48zm256 416H64c0-101.62 57.308-184 128-184s128 82.38 128 184z"},"hand-rock":{"viewBox":"0 0 512 512","path":"M408.864 79.052c-22.401-33.898-66.108-42.273-98.813-23.588-29.474-31.469-79.145-31.093-108.334-.022-47.16-27.02-108.71 5.055-110.671 60.806C44.846 105.407 0 140.001 0 187.429v56.953c0 32.741 14.28 63.954 39.18 85.634l97.71 85.081c4.252 3.702 3.11 5.573 3.11 32.903 0 17.673 14.327 32 32 32h252c17.673 0 32-14.327 32-32 0-23.513-1.015-30.745 3.982-42.37l42.835-99.656c6.094-14.177 9.183-29.172 9.183-44.568V146.963c0-52.839-54.314-88.662-103.136-67.911zM464 261.406a64.505 64.505 0 0 1-5.282 25.613l-42.835 99.655c-5.23 12.171-7.883 25.04-7.883 38.25V432H188v-10.286c0-16.37-7.14-31.977-19.59-42.817l-97.71-85.08C56.274 281.255 48 263.236 48 244.381v-56.953c0-33.208 52-33.537 52 .677v41.228a16 16 0 0 0 5.493 12.067l7 6.095A16 16 0 0 0 139 235.429V118.857c0-33.097 52-33.725 52 .677v26.751c0 8.836 7.164 16 16 16h7c8.836 0 16-7.164 16-16v-41.143c0-33.134 52-33.675 52 .677v40.466c0 8.836 7.163 16 16 16h7c8.837 0 16-7.164 16-16v-27.429c0-33.03 52-33.78 52 .677v26.751c0 8.836 7.163 16 16 16h7c8.837 0 16-7.164 16-16 0-33.146 52-33.613 52 .677v114.445z"},"hand-paper":{"viewBox":"0 0 448 512","path":"M372.57 112.641v-10.825c0-43.612-40.52-76.691-83.039-65.546-25.629-49.5-94.09-47.45-117.982.747C130.269 26.456 89.144 57.945 89.144 102v126.13c-19.953-7.427-43.308-5.068-62.083 8.871-29.355 21.796-35.794 63.333-14.55 93.153L132.48 498.569a32 32 0 0 0 26.062 13.432h222.897c14.904 0 27.835-10.289 31.182-24.813l30.184-130.958A203.637 203.637 0 0 0 448 310.564V179c0-40.62-35.523-71.992-75.43-66.359zm27.427 197.922c0 11.731-1.334 23.469-3.965 34.886L368.707 464h-201.92L51.591 302.303c-14.439-20.27 15.023-42.776 29.394-22.605l27.128 38.079c8.995 12.626 29.031 6.287 29.031-9.283V102c0-25.645 36.571-24.81 36.571.691V256c0 8.837 7.163 16 16 16h6.856c8.837 0 16-7.163 16-16V67c0-25.663 36.571-24.81 36.571.691V256c0 8.837 7.163 16 16 16h6.856c8.837 0 16-7.163 16-16V101.125c0-25.672 36.57-24.81 36.57.691V256c0 8.837 7.163 16 16 16h6.857c8.837 0 16-7.163 16-16v-76.309c0-26.242 36.57-25.64 36.57-.691v131.563z"},"hand-scissors":{"viewBox":"0 0 512 512","path":"M256 480l70-.013c5.114 0 10.231-.583 15.203-1.729l118.999-27.427C490.56 443.835 512 417.02 512 386.277V180.575c0-23.845-13.03-45.951-34.005-57.69l-97.999-54.853c-34.409-19.261-67.263-5.824-92.218 24.733L142.85 37.008c-37.887-14.579-80.612 3.727-95.642 41.201-15.098 37.642 3.635 80.37 41.942 95.112L168 192l-94-9.141c-40.804 0-74 32.811-74 73.14 0 40.33 33.196 73.141 74 73.141h87.635c-3.675 26.245 8.692 51.297 30.341 65.006C178.657 436.737 211.044 480 256 480zm0-48.013c-25.16 0-25.12-36.567 0-36.567 8.837 0 16-7.163 16-16v-6.856c0-8.837-7.163-16-16-16h-28c-25.159 0-25.122-36.567 0-36.567h28c8.837 0 16-7.163 16-16v-6.856c0-8.837-7.163-16-16-16H74c-34.43 0-34.375-50.281 0-50.281h182c8.837 0 16-7.163 16-16v-11.632a16 16 0 0 0-10.254-14.933L106.389 128.51c-31.552-12.14-13.432-59.283 19.222-46.717l166.549 64.091a16.001 16.001 0 0 0 18.139-4.812l21.764-26.647c5.82-7.127 16.348-9.064 24.488-4.508l98 54.854c5.828 3.263 9.449 9.318 9.449 15.805v205.701c0 8.491-5.994 15.804-14.576 17.782l-119.001 27.427a19.743 19.743 0 0 1-4.423.502h-70z"},"hand-lizard":{"viewBox":"0 0 576 512","path":"M556.686 290.542L410.328 64.829C397.001 44.272 374.417 32 349.917 32H56C25.121 32 0 57.122 0 88v8c0 44.112 35.888 80 80 80h196.042l-18.333 48H144c-48.523 0-88 39.477-88 88 0 30.879 25.121 56 56 56h131.552c2.987 0 5.914.549 8.697 1.631L352 408.418V480h224V355.829c0-23.225-6.679-45.801-19.314-65.287zM528 432H400v-23.582c0-19.948-12.014-37.508-30.604-44.736l-99.751-38.788A71.733 71.733 0 0 0 243.552 320H112c-4.411 0-8-3.589-8-8 0-22.056 17.944-40 40-40h113.709c19.767 0 37.786-12.407 44.84-30.873l24.552-64.281c8.996-23.553-8.428-48.846-33.63-48.846H80c-17.645 0-32-14.355-32-32v-8c0-4.411 3.589-8 8-8h293.917c8.166 0 15.693 4.09 20.137 10.942l146.358 225.715A71.84 71.84 0 0 1 528 355.829V432z"},"hand-spock":{"viewBox":"0 0 512 512","path":"M21.096 381.79l129.092 121.513a32 32 0 0 0 21.932 8.698h237.6c14.17 0 26.653-9.319 30.68-22.904l31.815-107.313A115.955 115.955 0 0 0 477 348.811v-36.839c0-4.051.476-8.104 1.414-12.045l31.73-133.41c10.099-42.412-22.316-82.738-65.544-82.525-4.144-24.856-22.543-47.165-49.85-53.992-35.803-8.952-72.227 12.655-81.25 48.75L296.599 184 274.924 52.01c-8.286-36.07-44.303-58.572-80.304-50.296-29.616 6.804-50.138 32.389-51.882 61.295-42.637.831-73.455 40.563-64.071 81.844l31.04 136.508c-27.194-22.515-67.284-19.992-91.482 5.722-25.376 26.961-24.098 69.325 2.871 94.707zm32.068-61.811l.002-.001c7.219-7.672 19.241-7.98 26.856-.813l53.012 49.894C143.225 378.649 160 371.4 160 357.406v-69.479c0-1.193-.134-2.383-.397-3.546l-34.13-150.172c-5.596-24.617 31.502-32.86 37.054-8.421l30.399 133.757a16 16 0 0 0 15.603 12.454h8.604c10.276 0 17.894-9.567 15.594-19.583l-41.62-181.153c-5.623-24.469 31.39-33.076 37.035-8.508l45.22 196.828A16 16 0 0 0 288.956 272h13.217a16 16 0 0 0 15.522-12.119l42.372-169.49c6.104-24.422 42.962-15.159 36.865 9.217L358.805 252.12c-2.521 10.088 5.115 19.88 15.522 19.88h9.694a16 16 0 0 0 15.565-12.295L426.509 146.6c5.821-24.448 42.797-15.687 36.966 8.802L431.72 288.81a100.094 100.094 0 0 0-2.72 23.162v36.839c0 6.548-.943 13.051-2.805 19.328L397.775 464h-219.31L53.978 346.836c-7.629-7.18-7.994-19.229-.814-26.857z"},"hand-pointer":{"viewBox":"0 0 448 512","path":"M358.182 179.361c-19.493-24.768-52.679-31.945-79.872-19.098-15.127-15.687-36.182-22.487-56.595-19.629V67c0-36.944-29.736-67-66.286-67S89.143 30.056 89.143 67v161.129c-19.909-7.41-43.272-5.094-62.083 8.872-29.355 21.795-35.793 63.333-14.55 93.152l109.699 154.001C134.632 501.59 154.741 512 176 512h178.286c30.802 0 57.574-21.5 64.557-51.797l27.429-118.999A67.873 67.873 0 0 0 448 326v-84c0-46.844-46.625-79.273-89.818-62.639zM80.985 279.697l27.126 38.079c8.995 12.626 29.031 6.287 29.031-9.283V67c0-25.12 36.571-25.16 36.571 0v175c0 8.836 7.163 16 16 16h6.857c8.837 0 16-7.164 16-16v-35c0-25.12 36.571-25.16 36.571 0v35c0 8.836 7.163 16 16 16H272c8.837 0 16-7.164 16-16v-21c0-25.12 36.571-25.16 36.571 0v21c0 8.836 7.163 16 16 16h6.857c8.837 0 16-7.164 16-16 0-25.121 36.571-25.16 36.571 0v84c0 1.488-.169 2.977-.502 4.423l-27.43 119.001c-1.978 8.582-9.29 14.576-17.782 14.576H176c-5.769 0-11.263-2.878-14.697-7.697l-109.712-154c-14.406-20.223 14.994-42.818 29.394-22.606zM176.143 400v-96c0-8.837 6.268-16 14-16h6c7.732 0 14 7.163 14 16v96c0 8.837-6.268 16-14 16h-6c-7.733 0-14-7.163-14-16zm75.428 0v-96c0-8.837 6.268-16 14-16h6c7.732 0 14 7.163 14 16v96c0 8.837-6.268 16-14 16h-6c-7.732 0-14-7.163-14-16zM327 400v-96c0-8.837 6.268-16 14-16h6c7.732 0 14 7.163 14 16v96c0 8.837-6.268 16-14 16h-6c-7.732 0-14-7.163-14-16z"},"hand-peace":{"viewBox":"0 0 448 512","path":"M362.146 191.976c-13.71-21.649-38.761-34.016-65.006-30.341V74c0-40.804-32.811-74-73.141-74-40.33 0-73.14 33.196-73.14 74L160 168l-18.679-78.85C126.578 50.843 83.85 32.11 46.209 47.208 8.735 62.238-9.571 104.963 5.008 142.85l55.757 144.927c-30.557 24.956-43.994 57.809-24.733 92.218l54.853 97.999C102.625 498.97 124.73 512 148.575 512h205.702c30.744 0 57.558-21.44 64.555-51.797l27.427-118.999a67.801 67.801 0 0 0 1.729-15.203L448 256c0-44.956-43.263-77.343-85.854-64.024zM399.987 326c0 1.488-.169 2.977-.502 4.423l-27.427 119.001c-1.978 8.582-9.29 14.576-17.782 14.576H148.575c-6.486 0-12.542-3.621-15.805-9.449l-54.854-98c-4.557-8.141-2.619-18.668 4.508-24.488l26.647-21.764a16 16 0 0 0 4.812-18.139l-64.09-166.549C37.226 92.956 84.37 74.837 96.51 106.389l59.784 155.357A16 16 0 0 0 171.227 272h11.632c8.837 0 16-7.163 16-16V74c0-34.375 50.281-34.43 50.281 0v182c0 8.837 7.163 16 16 16h6.856c8.837 0 16-7.163 16-16v-28c0-25.122 36.567-25.159 36.567 0v28c0 8.837 7.163 16 16 16h6.856c8.837 0 16-7.163 16-16 0-25.12 36.567-25.16 36.567 0v70z"},"calendar-plus":{"viewBox":"0 0 448 512","path":"M336 292v24c0 6.6-5.4 12-12 12h-76v76c0 6.6-5.4 12-12 12h-24c-6.6 0-12-5.4-12-12v-76h-76c-6.6 0-12-5.4-12-12v-24c0-6.6 5.4-12 12-12h76v-76c0-6.6 5.4-12 12-12h24c6.6 0 12 5.4 12 12v76h76c6.6 0 12 5.4 12 12zm112-180v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48zm-48 346V160H48v298c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"},"calendar-minus":{"viewBox":"0 0 448 512","path":"M124 328c-6.6 0-12-5.4-12-12v-24c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v24c0 6.6-5.4 12-12 12H124zm324-216v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48zm-48 346V160H48v298c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"},"calendar-times":{"viewBox":"0 0 448 512","path":"M311.7 374.7l-17 17c-4.7 4.7-12.3 4.7-17 0L224 337.9l-53.7 53.7c-4.7 4.7-12.3 4.7-17 0l-17-17c-4.7-4.7-4.7-12.3 0-17l53.7-53.7-53.7-53.7c-4.7-4.7-4.7-12.3 0-17l17-17c4.7-4.7 12.3-4.7 17 0l53.7 53.7 53.7-53.7c4.7-4.7 12.3-4.7 17 0l17 17c4.7 4.7 4.7 12.3 0 17L257.9 304l53.7 53.7c4.8 4.7 4.8 12.3.1 17zM448 112v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48zm-48 346V160H48v298c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"},"calendar-check":{"viewBox":"0 0 448 512","path":"M400 64h-48V12c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v52H160V12c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v52H48C21.49 64 0 85.49 0 112v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm-6 400H54a6 6 0 0 1-6-6V160h352v298a6 6 0 0 1-6 6zm-52.849-200.65L198.842 404.519c-4.705 4.667-12.303 4.637-16.971-.068l-75.091-75.699c-4.667-4.705-4.637-12.303.068-16.971l22.719-22.536c4.705-4.667 12.303-4.637 16.97.069l44.104 44.461 111.072-110.181c4.705-4.667 12.303-4.637 16.971.068l22.536 22.718c4.667 4.705 4.636 12.303-.069 16.97z"},"map":{"viewBox":"0 0 576 512","path":"M560.02 32c-1.96 0-3.98.37-5.96 1.16L384.01 96H384L212 35.28A64.252 64.252 0 0 0 191.76 32c-6.69 0-13.37 1.05-19.81 3.14L20.12 87.95A32.006 32.006 0 0 0 0 117.66v346.32C0 473.17 7.53 480 15.99 480c1.96 0 3.97-.37 5.96-1.16L192 416l172 60.71a63.98 63.98 0 0 0 40.05.15l151.83-52.81A31.996 31.996 0 0 0 576 394.34V48.02c0-9.19-7.53-16.02-15.98-16.02zM224 90.42l128 45.19v285.97l-128-45.19V90.42zM48 418.05V129.07l128-44.53v286.2l-.64.23L48 418.05zm480-35.13l-128 44.53V141.26l.64-.24L528 93.95v288.97z"},"comment-dots":{"viewBox":"0 0 512 512","path":"M144 208c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm112 0c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm112 0c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zM256 32C114.6 32 0 125.1 0 240c0 47.6 19.9 91.2 52.9 126.3C38 405.7 7 439.1 6.5 439.5c-6.6 7-8.4 17.2-4.6 26S14.4 480 24 480c61.5 0 110-25.7 139.1-46.3C192 442.8 223.2 448 256 448c141.4 0 256-93.1 256-208S397.4 32 256 32zm0 368c-26.7 0-53.1-4.1-78.4-12.1l-22.7-7.2-19.5 13.8c-14.3 10.1-33.9 21.4-57.5 29 7.3-12.1 14.4-25.7 19.9-40.2l10.6-28.1-20.6-21.8C69.7 314.1 48 282.2 48 240c0-88.2 93.3-160 208-160s208 71.8 208 160-93.3 160-208 160z"},"pause-circle":{"viewBox":"0 0 512 512","path":"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm96-280v160c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16zm-112 0v160c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16z"},"stop-circle":{"viewBox":"0 0 512 512","path":"M504 256C504 119 393 8 256 8S8 119 8 256s111 248 248 248 248-111 248-248zm-448 0c0-110.5 89.5-200 200-200s200 89.5 200 200-89.5 200-200 200S56 366.5 56 256zm296-80v160c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h160c8.8 0 16 7.2 16 16z"},"question-circle":{"viewBox":"0 0 512 512","path":"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"},"handshake":{"viewBox":"0 0 640 512","path":"M519.2 127.9l-47.6-47.6A56.252 56.252 0 0 0 432 64H205.2c-14.8 0-29.1 5.9-39.6 16.3L118 127.9H0v255.7h64c17.6 0 31.8-14.2 31.9-31.7h9.1l84.6 76.4c30.9 25.1 73.8 25.7 105.6 3.8 12.5 10.8 26 15.9 41.1 15.9 18.2 0 35.3-7.4 48.8-24 22.1 8.7 48.2 2.6 64-16.8l26.2-32.3c5.6-6.9 9.1-14.8 10.9-23h57.9c.1 17.5 14.4 31.7 31.9 31.7h64V127.9H519.2zM48 351.6c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16c0 8.9-7.2 16-16 16zm390-6.9l-26.1 32.2c-2.8 3.4-7.8 4-11.3 1.2l-23.9-19.4-30 36.5c-6 7.3-15 4.8-18 2.4l-36.8-31.5-15.6 19.2c-13.9 17.1-39.2 19.7-55.3 6.6l-97.3-88H96V175.8h41.9l61.7-61.6c2-.8 3.7-1.5 5.7-2.3H262l-38.7 35.5c-29.4 26.9-31.1 72.3-4.4 101.3 14.8 16.2 61.2 41.2 101.5 4.4l8.2-7.5 108.2 87.8c3.4 2.8 3.9 7.9 1.2 11.3zm106-40.8h-69.2c-2.3-2.8-4.9-5.4-7.7-7.7l-102.7-83.4 12.5-11.4c6.5-6 7-16.1 1-22.6L367 167.1c-6-6.5-16.1-6.9-22.6-1l-55.2 50.6c-9.5 8.7-25.7 9.4-34.6 0-9.3-9.9-8.5-25.1 1.2-33.9l65.6-60.1c7.4-6.8 17-10.5 27-10.5l83.7-.2c2.1 0 4.1.8 5.5 2.3l61.7 61.6H544v128zm48 47.7c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16c0 8.9-7.2 16-16 16z"},"envelope-open":{"viewBox":"0 0 512 512","path":"M494.586 164.516c-4.697-3.883-111.723-89.95-135.251-108.657C337.231 38.191 299.437 0 256 0c-43.205 0-80.636 37.717-103.335 55.859-24.463 19.45-131.07 105.195-135.15 108.549A48.004 48.004 0 0 0 0 201.485V464c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V201.509a48 48 0 0 0-17.414-36.993zM464 458a6 6 0 0 1-6 6H54a6 6 0 0 1-6-6V204.347c0-1.813.816-3.526 2.226-4.665 15.87-12.814 108.793-87.554 132.364-106.293C200.755 78.88 232.398 48 256 48c23.693 0 55.857 31.369 73.41 45.389 23.573 18.741 116.503 93.493 132.366 106.316a5.99 5.99 0 0 1 2.224 4.663V458zm-31.991-187.704c4.249 5.159 3.465 12.795-1.745 16.981-28.975 23.283-59.274 47.597-70.929 56.863C336.636 362.283 299.205 400 256 400c-43.452 0-81.287-38.237-103.335-55.86-11.279-8.967-41.744-33.413-70.927-56.865-5.21-4.187-5.993-11.822-1.745-16.981l15.258-18.528c4.178-5.073 11.657-5.843 16.779-1.726 28.618 23.001 58.566 47.035 70.56 56.571C200.143 320.631 232.307 352 256 352c23.602 0 55.246-30.88 73.41-45.389 11.994-9.535 41.944-33.57 70.563-56.568 5.122-4.116 12.601-3.346 16.778 1.727l15.258 18.526z"},"address-book":{"viewBox":"0 0 448 512","path":"M436 160c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h320c26.5 0 48-21.5 48-48v-48h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20zm-68 304H48V48h320v416zM208 256c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm-89.6 128h179.2c12.4 0 22.4-8.6 22.4-19.2v-19.2c0-31.8-30.1-57.6-67.2-57.6-10.8 0-18.7 8-44.8 8-26.9 0-33.4-8-44.8-8-37.1 0-67.2 25.8-67.2 57.6v19.2c0 10.6 10 19.2 22.4 19.2z"},"address-card":{"viewBox":"0 0 576 512","path":"M528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm0 400H48V80h480v352zM208 256c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm-89.6 128h179.2c12.4 0 22.4-8.6 22.4-19.2v-19.2c0-31.8-30.1-57.6-67.2-57.6-10.8 0-18.7 8-44.8 8-26.9 0-33.4-8-44.8-8-37.1 0-67.2 25.8-67.2 57.6v19.2c0 10.6 10 19.2 22.4 19.2zM360 320h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm0-64h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm0-64h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8z"},"user-circle":{"viewBox":"0 0 496 512","path":"M248 104c-53 0-96 43-96 96s43 96 96 96 96-43 96-96-43-96-96-96zm0 144c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm0-240C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-49.7 0-95.1-18.3-130.1-48.4 14.9-23 40.4-38.6 69.6-39.5 20.8 6.4 40.6 9.6 60.5 9.6s39.7-3.1 60.5-9.6c29.2 1 54.7 16.5 69.6 39.5-35 30.1-80.4 48.4-130.1 48.4zm162.7-84.1c-24.4-31.4-62.1-51.9-105.1-51.9-10.2 0-26 9.6-57.6 9.6-31.5 0-47.4-9.6-57.6-9.6-42.9 0-80.6 20.5-105.1 51.9C61.9 339.2 48 299.2 48 256c0-110.3 89.7-200 200-200s200 89.7 200 200c0 43.2-13.9 83.2-37.3 115.9z"},"user":{"viewBox":"0 0 448 512","path":"M313.6 304c-28.7 0-42.5 16-89.6 16-47.1 0-60.8-16-89.6-16C60.2 304 0 364.2 0 438.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-25.6c0-74.2-60.2-134.4-134.4-134.4zM400 464H48v-25.6c0-47.6 38.8-86.4 86.4-86.4 14.6 0 38.3 16 89.6 16 51.7 0 74.9-16 89.6-16 47.6 0 86.4 38.8 86.4 86.4V464zM224 288c79.5 0 144-64.5 144-144S303.5 0 224 0 80 64.5 80 144s64.5 144 144 144zm0-240c52.9 0 96 43.1 96 96s-43.1 96-96 96-96-43.1-96-96 43.1-96 96-96z"},"id-card":{"viewBox":"0 0 576 512","path":"M528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm0 400H303.2c.9-4.5.8 3.6.8-22.4 0-31.8-30.1-57.6-67.2-57.6-10.8 0-18.7 8-44.8 8-26.9 0-33.4-8-44.8-8-37.1 0-67.2 25.8-67.2 57.6 0 26-.2 17.9.8 22.4H48V144h480v288zm-168-80h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm0-64h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm0-64h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm-168 96c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64z"},"window-close":{"viewBox":"0 0 512 512","path":"M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm0 394c0 3.3-2.7 6-6 6H54c-3.3 0-6-2.7-6-6V86c0-3.3 2.7-6 6-6h404c3.3 0 6 2.7 6 6v340zM356.5 194.6L295.1 256l61.4 61.4c4.6 4.6 4.6 12.1 0 16.8l-22.3 22.3c-4.6 4.6-12.1 4.6-16.8 0L256 295.1l-61.4 61.4c-4.6 4.6-12.1 4.6-16.8 0l-22.3-22.3c-4.6-4.6-4.6-12.1 0-16.8l61.4-61.4-61.4-61.4c-4.6-4.6-4.6-12.1 0-16.8l22.3-22.3c4.6-4.6 12.1-4.6 16.8 0l61.4 61.4 61.4-61.4c4.6-4.6 12.1-4.6 16.8 0l22.3 22.3c4.7 4.6 4.7 12.1 0 16.8z"},"snowflake":{"viewBox":"0 0 448 512","path":"M440.1 355.2l-39.2-23 34.1-9.3c8.4-2.3 13.4-11.1 11.1-19.6l-4.1-15.5c-2.2-8.5-10.9-13.6-19.3-11.3L343 298.2 271.2 256l71.9-42.2 79.7 21.7c8.4 2.3 17-2.8 19.3-11.3l4.1-15.5c2.2-8.5-2.7-17.3-11.1-19.6l-34.1-9.3 39.2-23c7.5-4.4 10.1-14.2 5.8-21.9l-7.9-13.9c-4.3-7.7-14-10.3-21.5-5.9l-39.2 23 9.1-34.7c2.2-8.5-2.7-17.3-11.1-19.6l-15.2-4.1c-8.4-2.3-17 2.8-19.3 11.3l-21.3 81-71.9 42.2v-84.5L306 70.4c6.1-6.2 6.1-16.4 0-22.6l-11.1-11.3c-6.1-6.2-16.1-6.2-22.2 0l-24.9 25.4V16c0-8.8-7-16-15.7-16h-15.7c-8.7 0-15.7 7.2-15.7 16v46.1l-24.9-25.4c-6.1-6.2-16.1-6.2-22.2 0L142.1 48c-6.1 6.2-6.1 16.4 0 22.6l58.3 59.3v84.5l-71.9-42.2-21.3-81c-2.2-8.5-10.9-13.6-19.3-11.3L72.7 84c-8.4 2.3-13.4 11.1-11.1 19.6l9.1 34.7-39.2-23c-7.5-4.4-17.1-1.8-21.5 5.9l-7.9 13.9c-4.3 7.7-1.8 17.4 5.8 21.9l39.2 23-34.1 9.1c-8.4 2.3-13.4 11.1-11.1 19.6L6 224.2c2.2 8.5 10.9 13.6 19.3 11.3l79.7-21.7 71.9 42.2-71.9 42.2-79.7-21.7c-8.4-2.3-17 2.8-19.3 11.3l-4.1 15.5c-2.2 8.5 2.7 17.3 11.1 19.6l34.1 9.3-39.2 23c-7.5 4.4-10.1 14.2-5.8 21.9L10 391c4.3 7.7 14 10.3 21.5 5.9l39.2-23-9.1 34.7c-2.2 8.5 2.7 17.3 11.1 19.6l15.2 4.1c8.4 2.3 17-2.8 19.3-11.3l21.3-81 71.9-42.2v84.5l-58.3 59.3c-6.1 6.2-6.1 16.4 0 22.6l11.1 11.3c6.1 6.2 16.1 6.2 22.2 0l24.9-25.4V496c0 8.8 7 16 15.7 16h15.7c8.7 0 15.7-7.2 15.7-16v-46.1l24.9 25.4c6.1 6.2 16.1 6.2 22.2 0l11.1-11.3c6.1-6.2 6.1-16.4 0-22.6l-58.3-59.3v-84.5l71.9 42.2 21.3 81c2.2 8.5 10.9 13.6 19.3 11.3L375 428c8.4-2.3 13.4-11.1 11.1-19.6l-9.1-34.7 39.2 23c7.5 4.4 17.1 1.8 21.5-5.9l7.9-13.9c4.6-7.5 2.1-17.3-5.5-21.7z"}}'),...JSON.parse('{"music":{"viewBox":"0 0 512 512","path":"M511.99 32.01c0-21.71-21.1-37.01-41.6-30.51L150.4 96c-13.3 4.2-22.4 16.5-22.4 30.5v261.42c-10.05-2.38-20.72-3.92-32-3.92-53.02 0-96 28.65-96 64s42.98 64 96 64 96-28.65 96-64V214.31l256-75.02v184.63c-10.05-2.38-20.72-3.92-32-3.92-53.02 0-96 28.65-96 64s42.98 64 96 64 96-28.65 96-64l-.01-351.99z"},"search":{"viewBox":"0 0 512 512","path":"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"},"heart":{"viewBox":"0 0 512 512","path":"M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z"},"star":{"viewBox":"0 0 576 512","path":"M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"},"user":{"viewBox":"0 0 448 512","path":"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"},"film":{"viewBox":"0 0 512 512","path":"M488 64h-8v20c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12V64H96v20c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12V64h-8C10.7 64 0 74.7 0 88v336c0 13.3 10.7 24 24 24h8v-20c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v20h320v-20c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v20h8c13.3 0 24-10.7 24-24V88c0-13.3-10.7-24-24-24zM96 372c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm272 208c0 6.6-5.4 12-12 12H156c-6.6 0-12-5.4-12-12v-96c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v96zm0-168c0 6.6-5.4 12-12 12H156c-6.6 0-12-5.4-12-12v-96c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v96zm112 152c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40z"},"th-large":{"viewBox":"0 0 512 512","path":"M296 32h192c13.255 0 24 10.745 24 24v160c0 13.255-10.745 24-24 24H296c-13.255 0-24-10.745-24-24V56c0-13.255 10.745-24 24-24zm-80 0H24C10.745 32 0 42.745 0 56v160c0 13.255 10.745 24 24 24h192c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24zM0 296v160c0 13.255 10.745 24 24 24h192c13.255 0 24-10.745 24-24V296c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zm296 184h192c13.255 0 24-10.745 24-24V296c0-13.255-10.745-24-24-24H296c-13.255 0-24 10.745-24 24v160c0 13.255 10.745 24 24 24z"},"th":{"viewBox":"0 0 512 512","path":"M149.333 56v80c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V56c0-13.255 10.745-24 24-24h101.333c13.255 0 24 10.745 24 24zm181.334 240v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm32-240v80c0 13.255 10.745 24 24 24H488c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24zm-32 80V56c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm-205.334 56H24c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24zM0 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zm386.667-56H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zm0 160H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zM181.333 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24z"},"th-list":{"viewBox":"0 0 512 512","path":"M149.333 216v80c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24v-80c0-13.255 10.745-24 24-24h101.333c13.255 0 24 10.745 24 24zM0 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zM125.333 32H24C10.745 32 0 42.745 0 56v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24zm80 448H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zm-24-424v80c0 13.255 10.745 24 24 24H488c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24zm24 264H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24z"},"check":{"viewBox":"0 0 512 512","path":"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"},"times":{"viewBox":"0 0 352 512","path":"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"},"search-plus":{"viewBox":"0 0 512 512","path":"M304 192v32c0 6.6-5.4 12-12 12h-56v56c0 6.6-5.4 12-12 12h-32c-6.6 0-12-5.4-12-12v-56h-56c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h56v-56c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v56h56c6.6 0 12 5.4 12 12zm201 284.7L476.7 505c-9.4 9.4-24.6 9.4-33.9 0L343 405.3c-4.5-4.5-7-10.6-7-17V372c-35.3 27.6-79.7 44-128 44C93.1 416 0 322.9 0 208S93.1 0 208 0s208 93.1 208 208c0 48.3-16.4 92.7-44 128h16.3c6.4 0 12.5 2.5 17 7l99.7 99.7c9.3 9.4 9.3 24.6 0 34zM344 208c0-75.2-60.8-136-136-136S72 132.8 72 208s60.8 136 136 136 136-60.8 136-136z"},"search-minus":{"viewBox":"0 0 512 512","path":"M304 192v32c0 6.6-5.4 12-12 12H124c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm201 284.7L476.7 505c-9.4 9.4-24.6 9.4-33.9 0L343 405.3c-4.5-4.5-7-10.6-7-17V372c-35.3 27.6-79.7 44-128 44C93.1 416 0 322.9 0 208S93.1 0 208 0s208 93.1 208 208c0 48.3-16.4 92.7-44 128h16.3c6.4 0 12.5 2.5 17 7l99.7 99.7c9.3 9.4 9.3 24.6 0 34zM344 208c0-75.2-60.8-136-136-136S72 132.8 72 208s60.8 136 136 136 136-60.8 136-136z"},"power-off":{"viewBox":"0 0 512 512","path":"M400 54.1c63 45 104 118.6 104 201.9 0 136.8-110.8 247.7-247.5 248C120 504.3 8.2 393 8 256.4 7.9 173.1 48.9 99.3 111.8 54.2c11.7-8.3 28-4.8 35 7.7L162.6 90c5.9 10.5 3.1 23.8-6.6 31-41.5 30.8-68 79.6-68 134.9-.1 92.3 74.5 168.1 168 168.1 91.6 0 168.6-74.2 168-169.1-.3-51.8-24.7-101.8-68.1-134-9.7-7.2-12.4-20.5-6.5-30.9l15.8-28.1c7-12.4 23.2-16.1 34.8-7.8zM296 264V24c0-13.3-10.7-24-24-24h-32c-13.3 0-24 10.7-24 24v240c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24z"},"signal":{"viewBox":"0 0 640 512","path":"M216 288h-48c-8.84 0-16 7.16-16 16v192c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V304c0-8.84-7.16-16-16-16zM88 384H40c-8.84 0-16 7.16-16 16v96c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16v-96c0-8.84-7.16-16-16-16zm256-192h-48c-8.84 0-16 7.16-16 16v288c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V208c0-8.84-7.16-16-16-16zm128-96h-48c-8.84 0-16 7.16-16 16v384c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V112c0-8.84-7.16-16-16-16zM600 0h-48c-8.84 0-16 7.16-16 16v480c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V16c0-8.84-7.16-16-16-16z"},"cog":{"viewBox":"0 0 512 512","path":"M444.788 291.1l42.616 24.599c4.867 2.809 7.126 8.618 5.459 13.985-11.07 35.642-29.97 67.842-54.689 94.586a12.016 12.016 0 0 1-14.832 2.254l-42.584-24.595a191.577 191.577 0 0 1-60.759 35.13v49.182a12.01 12.01 0 0 1-9.377 11.718c-34.956 7.85-72.499 8.256-109.219.007-5.49-1.233-9.403-6.096-9.403-11.723v-49.184a191.555 191.555 0 0 1-60.759-35.13l-42.584 24.595a12.016 12.016 0 0 1-14.832-2.254c-24.718-26.744-43.619-58.944-54.689-94.586-1.667-5.366.592-11.175 5.459-13.985L67.212 291.1a193.48 193.48 0 0 1 0-70.199l-42.616-24.599c-4.867-2.809-7.126-8.618-5.459-13.985 11.07-35.642 29.97-67.842 54.689-94.586a12.016 12.016 0 0 1 14.832-2.254l42.584 24.595a191.577 191.577 0 0 1 60.759-35.13V25.759a12.01 12.01 0 0 1 9.377-11.718c34.956-7.85 72.499-8.256 109.219-.007 5.49 1.233 9.403 6.096 9.403 11.723v49.184a191.555 191.555 0 0 1 60.759 35.13l42.584-24.595a12.016 12.016 0 0 1 14.832 2.254c24.718 26.744 43.619 58.944 54.689 94.586 1.667 5.366-.592 11.175-5.459 13.985L444.788 220.9a193.485 193.485 0 0 1 0 70.2zM336 256c0-44.112-35.888-80-80-80s-80 35.888-80 80 35.888 80 80 80 80-35.888 80-80z"},"trash":{"viewBox":"0 0 448 512","path":"M0 84V56c0-13.3 10.7-24 24-24h112l9.4-18.7c4-8.2 12.3-13.3 21.4-13.3h114.3c9.1 0 17.4 5.1 21.5 13.3L312 32h112c13.3 0 24 10.7 24 24v28c0 6.6-5.4 12-12 12H12C5.4 96 0 90.6 0 84zm415.2 56.7L394.8 467c-1.6 25.3-22.6 45-47.9 45H101.1c-25.3 0-46.3-19.7-47.9-45L32.8 140.7c-.4-6.9 5.1-12.7 12-12.7h358.5c6.8 0 12.3 5.8 11.9 12.7z"},"home":{"viewBox":"0 0 576 512","path":"M488 312.7V456c0 13.3-10.7 24-24 24H348c-6.6 0-12-5.4-12-12V356c0-6.6-5.4-12-12-12h-72c-6.6 0-12 5.4-12 12v112c0 6.6-5.4 12-12 12H112c-13.3 0-24-10.7-24-24V312.7c0-3.6 1.6-7 4.4-9.3l188-154.8c4.4-3.6 10.8-3.6 15.3 0l188 154.8c2.7 2.3 4.3 5.7 4.3 9.3zm83.6-60.9L488 182.9V44.4c0-6.6-5.4-12-12-12h-56c-6.6 0-12 5.4-12 12V117l-89.5-73.7c-17.7-14.6-43.3-14.6-61 0L4.4 251.8c-5.1 4.2-5.8 11.8-1.6 16.9l25.5 31c4.2 5.1 11.8 5.8 16.9 1.6l235.2-193.7c4.4-3.6 10.8-3.6 15.3 0l235.2 193.7c5.1 4.2 12.7 3.5 16.9-1.6l25.5-31c4.2-5.2 3.4-12.7-1.7-16.9z"},"road":{"viewBox":"0 0 576 512","path":"M573.19 402.67l-139.79-320C428.43 71.29 417.6 64 405.68 64h-97.59l2.45 23.16c.5 4.72-3.21 8.84-7.96 8.84h-29.16c-4.75 0-8.46-4.12-7.96-8.84L267.91 64h-97.59c-11.93 0-22.76 7.29-27.73 18.67L2.8 402.67C-6.45 423.86 8.31 448 30.54 448h196.84l10.31-97.68c.86-8.14 7.72-14.32 15.91-14.32h68.8c8.19 0 15.05 6.18 15.91 14.32L348.62 448h196.84c22.23 0 36.99-24.14 27.73-45.33zM260.4 135.16a8 8 0 0 1 7.96-7.16h39.29c4.09 0 7.53 3.09 7.96 7.16l4.6 43.58c.75 7.09-4.81 13.26-11.93 13.26h-40.54c-7.13 0-12.68-6.17-11.93-13.26l4.59-43.58zM315.64 304h-55.29c-9.5 0-16.91-8.23-15.91-17.68l5.07-48c.86-8.14 7.72-14.32 15.91-14.32h45.15c8.19 0 15.05 6.18 15.91 14.32l5.07 48c1 9.45-6.41 17.68-15.91 17.68z"},"download":{"viewBox":"0 0 512 512","path":"M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"},"arrow-circle-down":{"viewBox":"0 0 512 512","path":"M504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zm-143.6-28.9L288 302.6V120c0-13.3-10.7-24-24-24h-16c-13.3 0-24 10.7-24 24v182.6l-72.4-75.5c-9.3-9.7-24.8-9.9-34.3-.4l-10.9 11c-9.4 9.4-9.4 24.6 0 33.9L239 404.3c9.4 9.4 24.6 9.4 33.9 0l132.7-132.7c9.4-9.4 9.4-24.6 0-33.9l-10.9-11c-9.5-9.5-25-9.3-34.3.4z"},"arrow-circle-up":{"viewBox":"0 0 512 512","path":"M8 256C8 119 119 8 256 8s248 111 248 248-111 248-248 248S8 393 8 256zm143.6 28.9l72.4-75.5V392c0 13.3 10.7 24 24 24h16c13.3 0 24-10.7 24-24V209.4l72.4 75.5c9.3 9.7 24.8 9.9 34.3.4l10.9-11c9.4-9.4 9.4-24.6 0-33.9L273 107.7c-9.4-9.4-24.6-9.4-33.9 0L106.3 240.4c-9.4 9.4-9.4 24.6 0 33.9l10.9 11c9.6 9.5 25.1 9.3 34.4-.4z"},"inbox":{"viewBox":"0 0 576 512","path":"M567.938 243.908L462.25 85.374A48.003 48.003 0 0 0 422.311 64H153.689a48 48 0 0 0-39.938 21.374L8.062 243.908A47.994 47.994 0 0 0 0 270.533V400c0 26.51 21.49 48 48 48h480c26.51 0 48-21.49 48-48V270.533a47.994 47.994 0 0 0-8.062-26.625zM162.252 128h251.497l85.333 128H376l-32 64H232l-32-64H76.918l85.334-128z"},"play-circle":{"viewBox":"0 0 512 512","path":"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm115.7 272l-176 101c-15.8 8.8-35.7-2.5-35.7-21V152c0-18.4 19.8-29.8 35.7-21l176 107c16.4 9.2 16.4 32.9 0 42z"},"redo":{"viewBox":"0 0 512 512","path":"M500.333 0h-47.411c-6.853 0-12.314 5.729-11.986 12.574l3.966 82.759C399.416 41.899 331.672 8 256.001 8 119.34 8 7.899 119.526 8 256.187 8.101 393.068 119.096 504 256 504c63.926 0 122.202-24.187 166.178-63.908 5.113-4.618 5.354-12.561.482-17.433l-33.971-33.971c-4.466-4.466-11.64-4.717-16.38-.543C341.308 415.448 300.606 432 256 432c-97.267 0-176-78.716-176-176 0-97.267 78.716-176 176-176 60.892 0 114.506 30.858 146.099 77.8l-101.525-4.865c-6.845-.328-12.574 5.133-12.574 11.986v47.411c0 6.627 5.373 12 12 12h200.333c6.627 0 12-5.373 12-12V12c0-6.627-5.373-12-12-12z"},"sync-alt":{"viewBox":"0 0 512 512","path":"M370.72 133.28C339.458 104.008 298.888 87.962 255.848 88c-77.458.068-144.328 53.178-162.791 126.85-1.344 5.363-6.122 9.15-11.651 9.15H24.103c-7.498 0-13.194-6.807-11.807-14.176C33.933 94.924 134.813 8 256 8c66.448 0 126.791 26.136 171.315 68.685L463.03 40.97C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.749zM32 296h134.059c21.382 0 32.09 25.851 16.971 40.971l-41.75 41.75c31.262 29.273 71.835 45.319 114.876 45.28 77.418-.07 144.315-53.144 162.787-126.849 1.344-5.363 6.122-9.15 11.651-9.15h57.304c7.498 0 13.194 6.807 11.807 14.176C478.067 417.076 377.187 504 256 504c-66.448 0-126.791-26.136-171.315-68.685L48.97 471.03C33.851 486.149 8 475.441 8 454.059V320c0-13.255 10.745-24 24-24z"},"list-alt":{"viewBox":"0 0 512 512","path":"M464 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zM128 120c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm0 96c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm0 96c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm288-136v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12zm0 96v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12zm0 96v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12z"},"lock":{"viewBox":"0 0 448 512","path":"M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"},"flag":{"viewBox":"0 0 512 512","path":"M349.565 98.783C295.978 98.783 251.721 64 184.348 64c-24.955 0-47.309 4.384-68.045 12.013a55.947 55.947 0 0 0 3.586-23.562C118.117 24.015 94.806 1.206 66.338.048 34.345-1.254 8 24.296 8 56c0 19.026 9.497 35.825 24 45.945V488c0 13.255 10.745 24 24 24h16c13.255 0 24-10.745 24-24v-94.4c28.311-12.064 63.582-22.122 114.435-22.122 53.588 0 97.844 34.783 165.217 34.783 48.169 0 86.667-16.294 122.505-40.858C506.84 359.452 512 349.571 512 339.045v-243.1c0-23.393-24.269-38.87-45.485-29.016-34.338 15.948-76.454 31.854-116.95 31.854z"},"headphones":{"viewBox":"0 0 512 512","path":"M256 32C114.52 32 0 146.496 0 288v48a32 32 0 0 0 17.689 28.622l14.383 7.191C34.083 431.903 83.421 480 144 480h24c13.255 0 24-10.745 24-24V280c0-13.255-10.745-24-24-24h-24c-31.342 0-59.671 12.879-80 33.627V288c0-105.869 86.131-192 192-192s192 86.131 192 192v1.627C427.671 268.879 399.342 256 368 256h-24c-13.255 0-24 10.745-24 24v176c0 13.255 10.745 24 24 24h24c60.579 0 109.917-48.098 111.928-108.187l14.382-7.191A32 32 0 0 0 512 336v-48c0-141.479-114.496-256-256-256z"},"volume-off":{"viewBox":"0 0 257 512","path":"M216.36 71.04L127.39 160H25.33c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.47-25.96-31.98-40.97-16.98z"},"volume-down":{"viewBox":"0 0 384 512","path":"M215.03 72.04L126.06 161H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V89.02c0-21.47-25.96-31.98-40.97-16.98zm123.2 108.08c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 229.28 336 242.62 336 257c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.87z"},"volume-up":{"viewBox":"0 0 576 512","path":"M215.03 71.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.46-25.96-31.98-40.97-16.97zm233.32-51.08c-11.17-7.33-26.18-4.24-33.51 6.95-7.34 11.17-4.22 26.18 6.95 33.51 66.27 43.49 105.82 116.6 105.82 195.58 0 78.98-39.55 152.09-105.82 195.58-11.17 7.32-14.29 22.34-6.95 33.5 7.04 10.71 21.93 14.56 33.51 6.95C528.27 439.58 576 351.33 576 256S528.27 72.43 448.35 19.97zM480 256c0-63.53-32.06-121.94-85.77-156.24-11.19-7.14-26.03-3.82-33.12 7.46s-3.78 26.21 7.41 33.36C408.27 165.97 432 209.11 432 256s-23.73 90.03-63.48 115.42c-11.19 7.14-14.5 22.07-7.41 33.36 6.51 10.36 21.12 15.14 33.12 7.46C447.94 377.94 480 319.54 480 256zm-141.77-76.87c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 228.28 336 241.63 336 256c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.86z"},"qrcode":{"viewBox":"0 0 448 512","path":"M0 224h192V32H0v192zM64 96h64v64H64V96zm192-64v192h192V32H256zm128 128h-64V96h64v64zM0 480h192V288H0v192zm64-128h64v64H64v-64zm352-64h32v128h-96v-32h-32v96h-64V288h96v32h64v-32zm0 160h32v32h-32v-32zm-64 0h32v32h-32v-32z"},"barcode":{"viewBox":"0 0 512 512","path":"M0 448V64h18v384H0zm26.857-.273V64H36v383.727h-9.143zm27.143 0V64h8.857v383.727H54zm44.857 0V64h8.857v383.727h-8.857zm36 0V64h17.714v383.727h-17.714zm44.857 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm35.715 0V64h18v383.727h-18zm44.857 0V64h18v383.727h-18zm35.999 0V64h18.001v383.727h-18.001zm36.001 0V64h18.001v383.727h-18.001zm26.857 0V64h18v383.727h-18zm45.143 0V64h26.857v383.727h-26.857zm35.714 0V64h9.143v383.727H476zm18 .273V64h18v384h-18z"},"tag":{"viewBox":"0 0 512 512","path":"M0 252.118V48C0 21.49 21.49 0 48 0h204.118a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882L293.823 497.941c-18.745 18.745-49.137 18.745-67.882 0L14.059 286.059A48 48 0 0 1 0 252.118zM112 64c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48z"},"tags":{"viewBox":"0 0 640 512","path":"M497.941 225.941L286.059 14.059A48 48 0 0 0 252.118 0H48C21.49 0 0 21.49 0 48v204.118a48 48 0 0 0 14.059 33.941l211.882 211.882c18.744 18.745 49.136 18.746 67.882 0l204.118-204.118c18.745-18.745 18.745-49.137 0-67.882zM112 160c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm513.941 133.823L421.823 497.941c-18.745 18.745-49.137 18.745-67.882 0l-.36-.36L527.64 323.522c16.999-16.999 26.36-39.6 26.36-63.64s-9.362-46.641-26.36-63.64L331.397 0h48.721a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882z"},"book":{"viewBox":"0 0 448 512","path":"M448 360V24c0-13.3-10.7-24-24-24H96C43 0 0 43 0 96v320c0 53 43 96 96 96h328c13.3 0 24-10.7 24-24v-16c0-7.5-3.5-14.3-8.9-18.7-4.2-15.4-4.2-59.3 0-74.7 5.4-4.3 8.9-11.1 8.9-18.6zM128 134c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm0 64c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm253.4 250H96c-17.7 0-32-14.3-32-32 0-17.6 14.4-32 32-32h285.4c-1.9 17.1-1.9 46.9 0 64z"},"bookmark":{"viewBox":"0 0 384 512","path":"M0 512V48C0 21.49 21.49 0 48 0h288c26.51 0 48 21.49 48 48v464L192 400 0 512z"},"print":{"viewBox":"0 0 512 512","path":"M448 192V77.25c0-8.49-3.37-16.62-9.37-22.63L393.37 9.37c-6-6-14.14-9.37-22.63-9.37H96C78.33 0 64 14.33 64 32v160c-35.35 0-64 28.65-64 64v112c0 8.84 7.16 16 16 16h48v96c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32v-96h48c8.84 0 16-7.16 16-16V256c0-35.35-28.65-64-64-64zm-64 256H128v-96h256v96zm0-224H128V64h192v48c0 8.84 7.16 16 16 16h48v96zm48 72c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"},"camera":{"viewBox":"0 0 512 512","path":"M512 144v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V144c0-26.5 21.5-48 48-48h88l12.3-32.9c7-18.7 24.9-31.1 44.9-31.1h125.5c20 0 37.9 12.4 44.9 31.1L376 96h88c26.5 0 48 21.5 48 48zM376 288c0-66.2-53.8-120-120-120s-120 53.8-120 120 53.8 120 120 120 120-53.8 120-120zm-32 0c0 48.5-39.5 88-88 88s-88-39.5-88-88 39.5-88 88-88 88 39.5 88 88z"},"font":{"viewBox":"0 0 448 512","path":"M152 416h-24.013l26.586-80.782H292.8L319.386 416H296c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h136c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16h-26.739L275.495 42.746A16 16 0 0 0 260.382 32h-72.766a16 16 0 0 0-15.113 10.746L42.739 416H16c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h136c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm64.353-271.778c4.348-15.216 6.61-28.156 7.586-34.644.839 6.521 2.939 19.476 7.727 34.706l41.335 124.006h-98.619l41.971-124.068z"},"bold":{"viewBox":"0 0 384 512","path":"M304.793 243.891c33.639-18.537 53.657-54.16 53.657-95.693 0-48.236-26.25-87.626-68.626-104.179C265.138 34.01 240.849 32 209.661 32H24c-8.837 0-16 7.163-16 16v33.049c0 8.837 7.163 16 16 16h33.113v318.53H24c-8.837 0-16 7.163-16 16V464c0 8.837 7.163 16 16 16h195.69c24.203 0 44.834-1.289 66.866-7.584C337.52 457.193 376 410.647 376 350.014c0-52.168-26.573-91.684-71.207-106.123zM142.217 100.809h67.444c16.294 0 27.536 2.019 37.525 6.717 15.828 8.479 24.906 26.502 24.906 49.446 0 35.029-20.32 56.79-53.029 56.79h-76.846V100.809zm112.642 305.475c-10.14 4.056-22.677 4.907-31.409 4.907h-81.233V281.943h84.367c39.645 0 63.057 25.38 63.057 63.057.001 28.425-13.66 52.483-34.782 61.284z"},"italic":{"viewBox":"0 0 320 512","path":"M204.758 416h-33.849l62.092-320h40.725a16 16 0 0 0 15.704-12.937l6.242-32C297.599 41.184 290.034 32 279.968 32H120.235a16 16 0 0 0-15.704 12.937l-6.242 32C96.362 86.816 103.927 96 113.993 96h33.846l-62.09 320H46.278a16 16 0 0 0-15.704 12.935l-6.245 32C22.402 470.815 29.967 480 40.034 480h158.479a16 16 0 0 0 15.704-12.935l6.245-32c1.927-9.88-5.638-19.065-15.704-19.065z"},"text-height":{"viewBox":"0 0 576 512","path":"M16 32h288c8.837 0 16 7.163 16 16v96c0 8.837-7.163 16-16 16h-35.496c-8.837 0-16-7.163-16-16V96h-54.761v320H232c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H88c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h34.257V96H67.496v48c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16V48c0-8.837 7.163-16 16-16zm475.308 4.685l79.995 80.001C581.309 126.693 574.297 144 559.99 144H512v224h48c15.639 0 20.635 17.991 11.313 27.314l-79.995 80.001c-6.247 6.247-16.381 6.245-22.626 0l-79.995-80.001C378.691 385.307 385.703 368 400.01 368H448V144h-48c-15.639 0-20.635-17.991-11.313-27.314l79.995-80.001c6.247-6.248 16.381-6.245 22.626 0z"},"text-width":{"viewBox":"0 0 448 512","path":"M16 32h416c8.837 0 16 7.163 16 16v96c0 8.837-7.163 16-16 16h-35.496c-8.837 0-16-7.163-16-16V96H261.743v128H296c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H152c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h34.257V96H67.496v48c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16V48c0-8.837 7.163-16 16-16zm427.315 340.682l-80.001-79.995C353.991 283.365 336 288.362 336 304v48H112v-47.99c0-14.307-17.307-21.319-27.314-11.313L4.685 372.692c-6.245 6.245-6.247 16.379 0 22.626l80.001 79.995C94.009 484.635 112 479.638 112 464v-48h224v47.99c0 14.307 17.307 21.319 27.314 11.313l80.001-79.995c6.245-6.245 6.248-16.379 0-22.626z"},"align-left":{"viewBox":"0 0 448 512","path":"M288 44v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16V44c0-8.837 7.163-16 16-16h256c8.837 0 16 7.163 16 16zM0 172v40c0 8.837 7.163 16 16 16h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16zm16 312h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm256-200H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16h256c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16z"},"align-center":{"viewBox":"0 0 448 512","path":"M352 44v40c0 8.837-7.163 16-16 16H112c-8.837 0-16-7.163-16-16V44c0-8.837 7.163-16 16-16h224c8.837 0 16 7.163 16 16zM16 228h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 256h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm320-200H112c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16h224c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16z"},"align-right":{"viewBox":"0 0 448 512","path":"M160 84V44c0-8.837 7.163-16 16-16h256c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H176c-8.837 0-16-7.163-16-16zM16 228h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 256h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm160-128h256c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H176c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"},"align-justify":{"viewBox":"0 0 448 512","path":"M0 84V44c0-8.837 7.163-16 16-16h416c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16zm16 144h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 256h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0-128h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"},"list":{"viewBox":"0 0 512 512","path":"M128 116V76c0-8.837 7.163-16 16-16h352c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H144c-8.837 0-16-7.163-16-16zm16 176h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zM16 144h64c8.837 0 16-7.163 16-16V64c0-8.837-7.163-16-16-16H16C7.163 48 0 55.163 0 64v64c0 8.837 7.163 16 16 16zm0 160h64c8.837 0 16-7.163 16-16v-64c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v64c0 8.837 7.163 16 16 16zm0 160h64c8.837 0 16-7.163 16-16v-64c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v64c0 8.837 7.163 16 16 16z"},"outdent":{"viewBox":"0 0 448 512","path":"M0 84V44c0-8.837 7.163-16 16-16h416c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16zm208 144h224c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H208c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zM16 484h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm192-128h224c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H208c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zM4.687 267.313l96 95.984C110.734 373.348 128 366.224 128 351.984V160.008c0-14.329-17.325-21.304-27.313-11.313l-96 95.992c-6.249 6.248-6.249 16.378 0 22.626z"},"indent":{"viewBox":"0 0 448 512","path":"M0 84V44c0-8.837 7.163-16 16-16h416c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16zm176 144h256c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H176c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zM16 484h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm160-128h256c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H176c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm-52.687-111.313l-96-95.984C17.266 138.652 0 145.776 0 160.016v191.975c0 14.329 17.325 21.304 27.313 11.313l96-95.992c6.249-6.247 6.249-16.377 0-22.625z"},"video":{"viewBox":"0 0 576 512","path":"M336.2 64H47.8C21.4 64 0 85.4 0 111.8v288.4C0 426.6 21.4 448 47.8 448h288.4c26.4 0 47.8-21.4 47.8-47.8V111.8c0-26.4-21.4-47.8-47.8-47.8zm189.4 37.7L416 177.3v157.4l109.6 75.5c21.2 14.6 50.4-.3 50.4-25.8V127.5c0-25.4-29.1-40.4-50.4-25.8z"},"image":{"viewBox":"0 0 512 512","path":"M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z"},"pencil-alt":{"viewBox":"0 0 512 512","path":"M497.9 142.1l-46.1 46.1c-4.7 4.7-12.3 4.7-17 0l-111-111c-4.7-4.7-4.7-12.3 0-17l46.1-46.1c18.7-18.7 49.1-18.7 67.9 0l60.1 60.1c18.8 18.7 18.8 49.1 0 67.9zM284.2 99.8L21.6 362.4.4 483.9c-2.9 16.4 11.4 30.6 27.8 27.8l121.5-21.3 262.6-262.6c4.7-4.7 4.7-12.3 0-17l-111-111c-4.8-4.7-12.4-4.7-17.1 0zM124.1 339.9c-5.5-5.5-5.5-14.3 0-19.8l154-154c5.5-5.5 14.3-5.5 19.8 0s5.5 14.3 0 19.8l-154 154c-5.5 5.5-14.3 5.5-19.8 0zM88 424h48v36.3l-64.5 11.3-31.1-31.1L51.7 376H88v48z"},"map-marker":{"viewBox":"0 0 384 512","path":"M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0z"},"adjust":{"viewBox":"0 0 512 512","path":"M8 256c0 136.966 111.033 248 248 248s248-111.034 248-248S392.966 8 256 8 8 119.033 8 256zm248 184V72c101.705 0 184 82.311 184 184 0 101.705-82.311 184-184 184z"},"tint":{"viewBox":"0 0 352 512","path":"M205.22 22.09c-7.94-28.78-49.44-30.12-58.44 0C100.01 179.85 0 222.72 0 333.91 0 432.35 78.72 512 176 512s176-79.65 176-178.09c0-111.75-99.79-153.34-146.78-311.82zM176 448c-61.75 0-112-50.25-112-112 0-8.84 7.16-16 16-16s16 7.16 16 16c0 44.11 35.89 80 80 80 8.84 0 16 7.16 16 16s-7.16 16-16 16z"},"step-backward":{"viewBox":"0 0 448 512","path":"M64 468V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12v176.4l195.5-181C352.1 22.3 384 36.6 384 64v384c0 27.4-31.9 41.7-52.5 24.6L136 292.7V468c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12z"},"fast-backward":{"viewBox":"0 0 512 512","path":"M0 436V76c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v151.9L235.5 71.4C256.1 54.3 288 68.6 288 96v131.9L459.5 71.4C480.1 54.3 512 68.6 512 96v320c0 27.4-31.9 41.7-52.5 24.6L288 285.3V416c0 27.4-31.9 41.7-52.5 24.6L64 285.3V436c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12z"},"backward":{"viewBox":"0 0 512 512","path":"M11.5 280.6l192 160c20.6 17.2 52.5 2.8 52.5-24.6V96c0-27.4-31.9-41.8-52.5-24.6l-192 160c-15.3 12.8-15.3 36.4 0 49.2zm256 0l192 160c20.6 17.2 52.5 2.8 52.5-24.6V96c0-27.4-31.9-41.8-52.5-24.6l-192 160c-15.3 12.8-15.3 36.4 0 49.2z"},"play":{"viewBox":"0 0 448 512","path":"M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"},"pause":{"viewBox":"0 0 448 512","path":"M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"},"stop":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z"},"forward":{"viewBox":"0 0 512 512","path":"M500.5 231.4l-192-160C287.9 54.3 256 68.6 256 96v320c0 27.4 31.9 41.8 52.5 24.6l192-160c15.3-12.8 15.3-36.4 0-49.2zm-256 0l-192-160C31.9 54.3 0 68.6 0 96v320c0 27.4 31.9 41.8 52.5 24.6l192-160c15.3-12.8 15.3-36.4 0-49.2z"},"fast-forward":{"viewBox":"0 0 512 512","path":"M512 76v360c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12V284.1L276.5 440.6c-20.6 17.2-52.5 2.8-52.5-24.6V284.1L52.5 440.6C31.9 457.8 0 443.4 0 416V96c0-27.4 31.9-41.7 52.5-24.6L224 226.8V96c0-27.4 31.9-41.7 52.5-24.6L448 226.8V76c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12z"},"step-forward":{"viewBox":"0 0 448 512","path":"M384 44v424c0 6.6-5.4 12-12 12h-48c-6.6 0-12-5.4-12-12V291.6l-195.5 181C95.9 489.7 64 475.4 64 448V64c0-27.4 31.9-41.7 52.5-24.6L312 219.3V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12z"},"eject":{"viewBox":"0 0 448 512","path":"M448 384v64c0 17.673-14.327 32-32 32H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h384c17.673 0 32 14.327 32 32zM48.053 320h351.886c41.651 0 63.581-49.674 35.383-80.435L259.383 47.558c-19.014-20.743-51.751-20.744-70.767 0L12.67 239.565C-15.475 270.268 6.324 320 48.053 320z"},"chevron-left":{"viewBox":"0 0 320 512","path":"M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"},"chevron-right":{"viewBox":"0 0 320 512","path":"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"},"plus-circle":{"viewBox":"0 0 512 512","path":"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm144 276c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92h-92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"},"minus-circle":{"viewBox":"0 0 512 512","path":"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zM124 296c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h264c6.6 0 12 5.4 12 12v56c0 6.6-5.4 12-12 12H124z"},"times-circle":{"viewBox":"0 0 512 512","path":"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"},"check-circle":{"viewBox":"0 0 512 512","path":"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"},"question-circle":{"viewBox":"0 0 512 512","path":"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zM262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102zM256 338c-25.365 0-46 20.635-46 46 0 25.364 20.635 46 46 46s46-20.636 46-46c0-25.365-20.635-46-46-46z"},"info-circle":{"viewBox":"0 0 512 512","path":"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"},"crosshairs":{"viewBox":"0 0 512 512","path":"M500 224h-30.364C455.724 130.325 381.675 56.276 288 42.364V12c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v30.364C130.325 56.276 56.276 130.325 42.364 224H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h30.364C56.276 381.675 130.325 455.724 224 469.636V500c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-30.364C381.675 455.724 455.724 381.675 469.636 288H500c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12zM288 404.634V364c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40.634C165.826 392.232 119.783 346.243 107.366 288H148c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-40.634C119.768 165.826 165.757 119.783 224 107.366V148c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40.634C346.174 119.768 392.217 165.757 404.634 224H364c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40.634C392.232 346.174 346.243 392.217 288 404.634zM288 256c0 17.673-14.327 32-32 32s-32-14.327-32-32c0-17.673 14.327-32 32-32s32 14.327 32 32z"},"ban":{"viewBox":"0 0 512 512","path":"M256 8C119.034 8 8 119.033 8 256s111.034 248 248 248 248-111.034 248-248S392.967 8 256 8zm130.108 117.892c65.448 65.448 70 165.481 20.677 235.637L150.47 105.216c70.204-49.356 170.226-44.735 235.638 20.676zM125.892 386.108c-65.448-65.448-70-165.481-20.677-235.637L361.53 406.784c-70.203 49.356-170.226 44.736-235.638-20.676z"},"arrow-left":{"viewBox":"0 0 448 512","path":"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"},"arrow-right":{"viewBox":"0 0 448 512","path":"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"},"arrow-up":{"viewBox":"0 0 448 512","path":"M34.9 289.5l-22.2-22.2c-9.4-9.4-9.4-24.6 0-33.9L207 39c9.4-9.4 24.6-9.4 33.9 0l194.3 194.3c9.4 9.4 9.4 24.6 0 33.9L413 289.4c-9.5 9.5-25 9.3-34.3-.4L264 168.6V456c0 13.3-10.7 24-24 24h-32c-13.3 0-24-10.7-24-24V168.6L69.2 289.1c-9.3 9.8-24.8 10-34.3.4z"},"arrow-down":{"viewBox":"0 0 448 512","path":"M413.1 222.5l22.2 22.2c9.4 9.4 9.4 24.6 0 33.9L241 473c-9.4 9.4-24.6 9.4-33.9 0L12.7 278.6c-9.4-9.4-9.4-24.6 0-33.9l22.2-22.2c9.5-9.5 25-9.3 34.3.4L184 343.4V56c0-13.3 10.7-24 24-24h32c13.3 0 24 10.7 24 24v287.4l114.8-120.5c9.3-9.8 24.8-10 34.3-.4z"},"share":{"viewBox":"0 0 512 512","path":"M503.691 189.836L327.687 37.851C312.281 24.546 288 35.347 288 56.015v80.053C127.371 137.907 0 170.1 0 322.326c0 61.441 39.581 122.309 83.333 154.132 13.653 9.931 33.111-2.533 28.077-18.631C66.066 312.814 132.917 274.316 288 272.085V360c0 20.7 24.3 31.453 39.687 18.164l176.004-152c11.071-9.562 11.086-26.753 0-36.328z"},"expand":{"viewBox":"0 0 448 512","path":"M0 180V56c0-13.3 10.7-24 24-24h124c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H64v84c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12zM288 44v40c0 6.6 5.4 12 12 12h84v84c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12V56c0-13.3-10.7-24-24-24H300c-6.6 0-12 5.4-12 12zm148 276h-40c-6.6 0-12 5.4-12 12v84h-84c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h124c13.3 0 24-10.7 24-24V332c0-6.6-5.4-12-12-12zM160 468v-40c0-6.6-5.4-12-12-12H64v-84c0-6.6-5.4-12-12-12H12c-6.6 0-12 5.4-12 12v124c0 13.3 10.7 24 24 24h124c6.6 0 12-5.4 12-12z"},"compress":{"viewBox":"0 0 448 512","path":"M436 192H312c-13.3 0-24-10.7-24-24V44c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v84h84c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm-276-24V44c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v84H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h124c13.3 0 24-10.7 24-24zm0 300V344c0-13.3-10.7-24-24-24H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h84v84c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm192 0v-84h84c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12H312c-13.3 0-24 10.7-24 24v124c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12z"},"plus":{"viewBox":"0 0 448 512","path":"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},"minus":{"viewBox":"0 0 448 512","path":"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},"asterisk":{"viewBox":"0 0 512 512","path":"M478.21 334.093L336 256l142.21-78.093c11.795-6.477 15.961-21.384 9.232-33.037l-19.48-33.741c-6.728-11.653-21.72-15.499-33.227-8.523L296 186.718l3.475-162.204C299.763 11.061 288.937 0 275.48 0h-38.96c-13.456 0-24.283 11.061-23.994 24.514L216 186.718 77.265 102.607c-11.506-6.976-26.499-3.13-33.227 8.523l-19.48 33.741c-6.728 11.653-2.562 26.56 9.233 33.037L176 256 33.79 334.093c-11.795 6.477-15.961 21.384-9.232 33.037l19.48 33.741c6.728 11.653 21.721 15.499 33.227 8.523L216 325.282l-3.475 162.204C212.237 500.939 223.064 512 236.52 512h38.961c13.456 0 24.283-11.061 23.995-24.514L296 325.282l138.735 84.111c11.506 6.976 26.499 3.13 33.227-8.523l19.48-33.741c6.728-11.653 2.563-26.559-9.232-33.036z"},"exclamation-circle":{"viewBox":"0 0 512 512","path":"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},"gift":{"viewBox":"0 0 512 512","path":"M32 448c0 17.7 14.3 32 32 32h160V320H32v128zm448-288h-42.1c6.2-12.1 10.1-25.5 10.1-40 0-48.5-39.5-88-88-88-41.6 0-68.5 21.3-103 68.3-34.5-47-61.4-68.3-103-68.3-48.5 0-88 39.5-88 88 0 14.5 3.8 27.9 10.1 40H32c-17.7 0-32 14.3-32 32v80c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16v-80c0-17.7-14.3-32-32-32zm-326.1 0c-22.1 0-40-17.9-40-40s17.9-40 40-40c19.9 0 34.6 3.3 86.1 80h-86.1zm206.1 0h-86.1c51.4-76.5 65.7-80 86.1-80 22.1 0 40 17.9 40 40s-17.9 40-40 40zm-72 320h160c17.7 0 32-14.3 32-32V320H288v160z"},"leaf":{"viewBox":"0 0 576 512","path":"M546.2 9.7c-5.6-12.5-21.6-13-28.3-1.2C486.9 62.4 431.4 96 368 96h-80C182 96 96 182 96 288c0 7 .8 13.7 1.5 20.5C161.3 262.8 253.4 224 384 224c8.8 0 16 7.2 16 16s-7.2 16-16 16C132.6 256 26 410.1 2.4 468c-6.6 16.3 1.2 34.9 17.5 41.6 16.4 6.8 35-1.1 41.8-17.3 1.5-3.6 20.9-47.9 71.9-90.6 32.4 43.9 94 85.8 174.9 77.2C465.5 467.5 576 326.7 576 154.3c0-50.2-10.8-102.2-29.8-144.6z"},"fire":{"viewBox":"0 0 384 512","path":"M216 23.858c0-23.802-30.653-32.765-44.149-13.038C48 191.851 224 200 224 288c0 35.629-29.114 64.458-64.85 63.994C123.98 351.538 96 322.22 96 287.046v-85.51c0-21.703-26.471-32.225-41.432-16.504C27.801 213.158 0 261.332 0 320c0 105.869 86.131 192 192 192s192-86.131 192-192c0-170.29-168-193.003-168-296.142z"},"eye":{"viewBox":"0 0 576 512","path":"M569.354 231.631C512.969 135.949 407.81 72 288 72 168.14 72 63.004 135.994 6.646 231.631a47.999 47.999 0 0 0 0 48.739C63.031 376.051 168.19 440 288 440c119.86 0 224.996-63.994 281.354-159.631a47.997 47.997 0 0 0 0-48.738zM288 392c-75.162 0-136-60.827-136-136 0-75.162 60.826-136 136-136 75.162 0 136 60.826 136 136 0 75.162-60.826 136-136 136zm104-136c0 57.438-46.562 104-104 104s-104-46.562-104-104c0-17.708 4.431-34.379 12.236-48.973l-.001.032c0 23.651 19.173 42.823 42.824 42.823s42.824-19.173 42.824-42.823c0-23.651-19.173-42.824-42.824-42.824l-.032.001C253.621 156.431 270.292 152 288 152c57.438 0 104 46.562 104 104z"},"eye-slash":{"viewBox":"0 0 576 512","path":"M286.693 391.984l32.579 46.542A333.958 333.958 0 0 1 288 440C168.19 440 63.031 376.051 6.646 280.369a47.999 47.999 0 0 1 0-48.739c24.023-40.766 56.913-75.775 96.024-102.537l57.077 81.539C154.736 224.82 152 240.087 152 256c0 74.736 60.135 135.282 134.693 135.984zm282.661-111.615c-31.667 53.737-78.747 97.46-135.175 125.475l.011.015 41.47 59.2c7.6 10.86 4.96 25.82-5.9 33.42l-13.11 9.18c-10.86 7.6-25.82 4.96-33.42-5.9L100.34 46.94c-7.6-10.86-4.96-25.82 5.9-33.42l13.11-9.18c10.86-7.6 25.82-4.96 33.42 5.9l51.038 72.617C230.68 75.776 258.905 72 288 72c119.81 0 224.969 63.949 281.354 159.631a48.002 48.002 0 0 1 0 48.738zM424 256c0-75.174-60.838-136-136-136-17.939 0-35.056 3.473-50.729 9.772l19.299 27.058c25.869-8.171 55.044-6.163 80.4 7.41h-.03c-23.65 0-42.82 19.17-42.82 42.82 0 23.626 19.147 42.82 42.82 42.82 23.65 0 42.82-19.17 42.82-42.82v-.03c18.462 34.49 16.312 77.914-8.25 110.95v.01l19.314 27.061C411.496 321.2 424 290.074 424 256zM262.014 356.727l-77.53-110.757c-5.014 52.387 29.314 98.354 77.53 110.757z"},"exclamation-triangle":{"viewBox":"0 0 576 512","path":"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},"plane":{"viewBox":"0 0 576 512","path":"M480 192H365.71L260.61 8.06A16.014 16.014 0 0 0 246.71 0h-65.5c-10.63 0-18.3 10.17-15.38 20.39L214.86 192H112l-43.2-57.6c-3.02-4.03-7.77-6.4-12.8-6.4H16.01C5.6 128-2.04 137.78.49 147.88L32 256 .49 364.12C-2.04 374.22 5.6 384 16.01 384H56c5.04 0 9.78-2.37 12.8-6.4L112 320h102.86l-49.03 171.6c-2.92 10.22 4.75 20.4 15.38 20.4h65.5c5.74 0 11.04-3.08 13.89-8.06L365.71 320H480c35.35 0 96-28.65 96-64s-60.65-64-96-64z"},"calendar":{"viewBox":"0 0 448 512","path":"M12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm436-44v-36c0-26.5-21.5-48-48-48h-48V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H160V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H48C21.5 64 0 85.5 0 112v36c0 6.6 5.4 12 12 12h424c6.6 0 12-5.4 12-12z"},"random":{"viewBox":"0 0 512 512","path":"M504.971 359.029c9.373 9.373 9.373 24.569 0 33.941l-80 79.984c-15.01 15.01-40.971 4.49-40.971-16.971V416h-58.785a12.004 12.004 0 0 1-8.773-3.812l-70.556-75.596 53.333-57.143L352 336h32v-39.981c0-21.438 25.943-31.998 40.971-16.971l80 79.981zM12 176h84l52.781 56.551 53.333-57.143-70.556-75.596A11.999 11.999 0 0 0 122.785 96H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12zm372 0v39.984c0 21.46 25.961 31.98 40.971 16.971l80-79.984c9.373-9.373 9.373-24.569 0-33.941l-80-79.981C409.943 24.021 384 34.582 384 56.019V96h-58.785a12.004 12.004 0 0 0-8.773 3.812L96 336H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h110.785c3.326 0 6.503-1.381 8.773-3.812L352 176h32z"},"comment":{"viewBox":"0 0 512 512","path":"M256 32C114.6 32 0 125.1 0 240c0 49.6 21.4 95 57 130.7C44.5 421.1 2.7 466 2.2 466.5c-2.2 2.3-2.8 5.7-1.5 8.7S4.8 480 8 480c66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 141.4 0 256-93.1 256-208S397.4 32 256 32z"},"magnet":{"viewBox":"0 0 512 512","path":"M164.1 160H12c-6.6 0-12-5.4-12-12V68c0-19.9 16.1-36 36-36h104c19.9 0 36 16.1 36 36v80c.1 6.6-5.3 12-11.9 12zm348-12V67.9c0-19.9-16.1-36-36-36h-104c-19.9 0-36 16.1-36 36v80c0 6.6 5.4 12 12 12h152c6.6.1 12-5.3 12-11.9zm-164 44c-6.6 0-12 5.4-12 12v52c0 128.1-160 127.9-160 0v-52c0-6.6-5.4-12-12-12h-152c-6.7 0-12 5.4-12 12.1.1 21.4.6 40.3 0 53.3C.1 408 136.3 504 256.9 504 377.5 504 512 408 512 257.3c-.6-12.8-.2-33 0-53.2 0-6.7-5.3-12.1-12-12.1H348.1z"},"chevron-up":{"viewBox":"0 0 448 512","path":"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"},"chevron-down":{"viewBox":"0 0 448 512","path":"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"},"retweet":{"viewBox":"0 0 640 512","path":"M629.657 343.598L528.971 444.284c-9.373 9.372-24.568 9.372-33.941 0L394.343 343.598c-9.373-9.373-9.373-24.569 0-33.941l10.823-10.823c9.562-9.562 25.133-9.34 34.419.492L480 342.118V160H292.451a24.005 24.005 0 0 1-16.971-7.029l-16-16C244.361 121.851 255.069 96 276.451 96H520c13.255 0 24 10.745 24 24v222.118l40.416-42.792c9.285-9.831 24.856-10.054 34.419-.492l10.823 10.823c9.372 9.372 9.372 24.569-.001 33.941zm-265.138 15.431A23.999 23.999 0 0 0 347.548 352H160V169.881l40.416 42.792c9.286 9.831 24.856 10.054 34.419.491l10.822-10.822c9.373-9.373 9.373-24.569 0-33.941L144.971 67.716c-9.373-9.373-24.569-9.373-33.941 0L10.343 168.402c-9.373 9.373-9.373 24.569 0 33.941l10.822 10.822c9.562 9.562 25.133 9.34 34.419-.491L96 169.881V392c0 13.255 10.745 24 24 24h243.549c21.382 0 32.09-25.851 16.971-40.971l-16.001-16z"},"shopping-cart":{"viewBox":"0 0 576 512","path":"M528.12 301.319l47.273-208C578.806 78.301 567.391 64 551.99 64H159.208l-9.166-44.81C147.758 8.021 137.93 0 126.529 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24h69.883l70.248 343.435C147.325 417.1 136 435.222 136 456c0 30.928 25.072 56 56 56s56-25.072 56-56c0-15.674-6.447-29.835-16.824-40h209.647C430.447 426.165 424 440.326 424 456c0 30.928 25.072 56 56 56s56-25.072 56-56c0-22.172-12.888-41.332-31.579-50.405l5.517-24.276c3.413-15.018-8.002-29.319-23.403-29.319H218.117l-6.545-32h293.145c11.206 0 20.92-7.754 23.403-18.681z"},"folder":{"viewBox":"0 0 512 512","path":"M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48z"},"folder-open":{"viewBox":"0 0 576 512","path":"M572.694 292.093L500.27 416.248A63.997 63.997 0 0 1 444.989 448H45.025c-18.523 0-30.064-20.093-20.731-36.093l72.424-124.155A64 64 0 0 1 152 256h399.964c18.523 0 30.064 20.093 20.73 36.093zM152 224h328v-48c0-26.51-21.49-48-48-48H272l-64-64H48C21.49 64 0 85.49 0 112v278.046l69.077-118.418C86.214 242.25 117.989 224 152 224z"},"chart-bar":{"viewBox":"0 0 512 512","path":"M332.8 320h38.4c6.4 0 12.8-6.4 12.8-12.8V172.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V76.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-288 0h38.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zM496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"},"camera-retro":{"viewBox":"0 0 512 512","path":"M48 32C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48H48zm0 32h106c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H38c-3.3 0-6-2.7-6-6V80c0-8.8 7.2-16 16-16zm426 96H38c-3.3 0-6-2.7-6-6v-36c0-3.3 2.7-6 6-6h138l30.2-45.3c1.1-1.7 3-2.7 5-2.7H464c8.8 0 16 7.2 16 16v74c0 3.3-2.7 6-6 6zM256 424c-66.2 0-120-53.8-120-120s53.8-120 120-120 120 53.8 120 120-53.8 120-120 120zm0-208c-48.5 0-88 39.5-88 88s39.5 88 88 88 88-39.5 88-88-39.5-88-88-88zm-48 104c-8.8 0-16-7.2-16-16 0-35.3 28.7-64 64-64 8.8 0 16 7.2 16 16s-7.2 16-16 16c-17.6 0-32 14.4-32 32 0 8.8-7.2 16-16 16z"},"key":{"viewBox":"0 0 512 512","path":"M512 176.001C512 273.203 433.202 352 336 352c-11.22 0-22.19-1.062-32.827-3.069l-24.012 27.014A23.999 23.999 0 0 1 261.223 384H224v40c0 13.255-10.745 24-24 24h-40v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24v-78.059c0-6.365 2.529-12.47 7.029-16.971l161.802-161.802C163.108 213.814 160 195.271 160 176 160 78.798 238.797.001 335.999 0 433.488-.001 512 78.511 512 176.001zM336 128c0 26.51 21.49 48 48 48s48-21.49 48-48-21.49-48-48-48-48 21.49-48 48z"},"cogs":{"viewBox":"0 0 640 512","path":"M512.1 191l-8.2 14.3c-3 5.3-9.4 7.5-15.1 5.4-11.8-4.4-22.6-10.7-32.1-18.6-4.6-3.8-5.8-10.5-2.8-15.7l8.2-14.3c-6.9-8-12.3-17.3-15.9-27.4h-16.5c-6 0-11.2-4.3-12.2-10.3-2-12-2.1-24.6 0-37.1 1-6 6.2-10.4 12.2-10.4h16.5c3.6-10.1 9-19.4 15.9-27.4l-8.2-14.3c-3-5.2-1.9-11.9 2.8-15.7 9.5-7.9 20.4-14.2 32.1-18.6 5.7-2.1 12.1.1 15.1 5.4l8.2 14.3c10.5-1.9 21.2-1.9 31.7 0L552 6.3c3-5.3 9.4-7.5 15.1-5.4 11.8 4.4 22.6 10.7 32.1 18.6 4.6 3.8 5.8 10.5 2.8 15.7l-8.2 14.3c6.9 8 12.3 17.3 15.9 27.4h16.5c6 0 11.2 4.3 12.2 10.3 2 12 2.1 24.6 0 37.1-1 6-6.2 10.4-12.2 10.4h-16.5c-3.6 10.1-9 19.4-15.9 27.4l8.2 14.3c3 5.2 1.9 11.9-2.8 15.7-9.5 7.9-20.4 14.2-32.1 18.6-5.7 2.1-12.1-.1-15.1-5.4l-8.2-14.3c-10.4 1.9-21.2 1.9-31.7 0zm-10.5-58.8c38.5 29.6 82.4-14.3 52.8-52.8-38.5-29.7-82.4 14.3-52.8 52.8zM386.3 286.1l33.7 16.8c10.1 5.8 14.5 18.1 10.5 29.1-8.9 24.2-26.4 46.4-42.6 65.8-7.4 8.9-20.2 11.1-30.3 5.3l-29.1-16.8c-16 13.7-34.6 24.6-54.9 31.7v33.6c0 11.6-8.3 21.6-19.7 23.6-24.6 4.2-50.4 4.4-75.9 0-11.5-2-20-11.9-20-23.6V418c-20.3-7.2-38.9-18-54.9-31.7L74 403c-10 5.8-22.9 3.6-30.3-5.3-16.2-19.4-33.3-41.6-42.2-65.7-4-10.9.4-23.2 10.5-29.1l33.3-16.8c-3.9-20.9-3.9-42.4 0-63.4L12 205.8c-10.1-5.8-14.6-18.1-10.5-29 8.9-24.2 26-46.4 42.2-65.8 7.4-8.9 20.2-11.1 30.3-5.3l29.1 16.8c16-13.7 34.6-24.6 54.9-31.7V57.1c0-11.5 8.2-21.5 19.6-23.5 24.6-4.2 50.5-4.4 76-.1 11.5 2 20 11.9 20 23.6v33.6c20.3 7.2 38.9 18 54.9 31.7l29.1-16.8c10-5.8 22.9-3.6 30.3 5.3 16.2 19.4 33.2 41.6 42.1 65.8 4 10.9.1 23.2-10 29.1l-33.7 16.8c3.9 21 3.9 42.5 0 63.5zm-117.6 21.1c59.2-77-28.7-164.9-105.7-105.7-59.2 77 28.7 164.9 105.7 105.7zm243.4 182.7l-8.2 14.3c-3 5.3-9.4 7.5-15.1 5.4-11.8-4.4-22.6-10.7-32.1-18.6-4.6-3.8-5.8-10.5-2.8-15.7l8.2-14.3c-6.9-8-12.3-17.3-15.9-27.4h-16.5c-6 0-11.2-4.3-12.2-10.3-2-12-2.1-24.6 0-37.1 1-6 6.2-10.4 12.2-10.4h16.5c3.6-10.1 9-19.4 15.9-27.4l-8.2-14.3c-3-5.2-1.9-11.9 2.8-15.7 9.5-7.9 20.4-14.2 32.1-18.6 5.7-2.1 12.1.1 15.1 5.4l8.2 14.3c10.5-1.9 21.2-1.9 31.7 0l8.2-14.3c3-5.3 9.4-7.5 15.1-5.4 11.8 4.4 22.6 10.7 32.1 18.6 4.6 3.8 5.8 10.5 2.8 15.7l-8.2 14.3c6.9 8 12.3 17.3 15.9 27.4h16.5c6 0 11.2 4.3 12.2 10.3 2 12 2.1 24.6 0 37.1-1 6-6.2 10.4-12.2 10.4h-16.5c-3.6 10.1-9 19.4-15.9 27.4l8.2 14.3c3 5.2 1.9 11.9-2.8 15.7-9.5 7.9-20.4 14.2-32.1 18.6-5.7 2.1-12.1-.1-15.1-5.4l-8.2-14.3c-10.4 1.9-21.2 1.9-31.7 0zM501.6 431c38.5 29.6 82.4-14.3 52.8-52.8-38.5-29.6-82.4 14.3-52.8 52.8z"},"comments":{"viewBox":"0 0 576 512","path":"M416 192c0-88.4-93.1-160-208-160S0 103.6 0 192c0 34.3 14.1 65.9 38 92-13.4 30.2-35.5 54.2-35.8 54.5-2.2 2.3-2.8 5.7-1.5 8.7S4.8 352 8 352c36.6 0 66.9-12.3 88.7-25 32.2 15.7 70.3 25 111.3 25 114.9 0 208-71.6 208-160zm122 220c23.9-26 38-57.7 38-92 0-66.9-53.5-124.2-129.3-148.1.9 6.6 1.3 13.3 1.3 20.1 0 105.9-107.7 192-240 192-10.8 0-21.3-.8-31.7-1.9C207.8 439.6 281.8 480 368 480c41 0 79.1-9.2 111.3-25 21.8 12.7 52.1 25 88.7 25 3.2 0 6.1-1.9 7.3-4.8 1.3-2.9.7-6.3-1.5-8.7-.3-.3-22.4-24.2-35.8-54.5z"},"star-half":{"viewBox":"0 0 576 512","path":"M288 0c-11.4 0-22.8 5.9-28.7 17.8L194 150.2 47.9 171.4c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.1 23 46 46.4 33.7L288 439.6V0z"},"sign-out-alt":{"viewBox":"0 0 512 512","path":"M497 273L329 441c-15 15-41 4.5-41-17v-96H152c-13.3 0-24-10.7-24-24v-96c0-13.3 10.7-24 24-24h136V88c0-21.4 25.9-32 41-17l168 168c9.3 9.4 9.3 24.6 0 34zM192 436v-40c0-6.6-5.4-12-12-12H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h84c6.6 0 12-5.4 12-12V76c0-6.6-5.4-12-12-12H96c-53 0-96 43-96 96v192c0 53 43 96 96 96h84c6.6 0 12-5.4 12-12z"},"thumbtack":{"viewBox":"0 0 384 512","path":"M298.028 214.267L285.793 96H328c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24H56C42.745 0 32 10.745 32 24v48c0 13.255 10.745 24 24 24h42.207L85.972 214.267C37.465 236.82 0 277.261 0 328c0 13.255 10.745 24 24 24h136v104.007c0 1.242.289 2.467.845 3.578l24 48c2.941 5.882 11.364 5.893 14.311 0l24-48a8.008 8.008 0 0 0 .845-3.578V352h136c13.255 0 24-10.745 24-24-.001-51.183-37.983-91.42-85.973-113.733z"},"external-link-alt":{"viewBox":"0 0 576 512","path":"M576 24v127.984c0 21.461-25.96 31.98-40.971 16.971l-35.707-35.709-243.523 243.523c-9.373 9.373-24.568 9.373-33.941 0l-22.627-22.627c-9.373-9.373-9.373-24.569 0-33.941L442.756 76.676l-35.703-35.705C391.982 25.9 402.656 0 424.024 0H552c13.255 0 24 10.745 24 24zM407.029 270.794l-16 16A23.999 23.999 0 0 0 384 303.765V448H64V128h264a24.003 24.003 0 0 0 16.97-7.029l16-16C376.089 89.851 365.381 64 344 64H48C21.49 64 0 85.49 0 112v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V287.764c0-21.382-25.852-32.09-40.971-16.97z"},"sign-in-alt":{"viewBox":"0 0 512 512","path":"M416 448h-84c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h84c17.7 0 32-14.3 32-32V160c0-17.7-14.3-32-32-32h-84c-6.6 0-12-5.4-12-12V76c0-6.6 5.4-12 12-12h84c53 0 96 43 96 96v192c0 53-43 96-96 96zm-47-201L201 79c-15-15-41-4.5-41 17v96H24c-13.3 0-24 10.7-24 24v96c0 13.3 10.7 24 24 24h136v96c0 21.5 26 32 41 17l168-168c9.3-9.4 9.3-24.6 0-34z"},"trophy":{"viewBox":"0 0 576 512","path":"M552 64H448V24c0-13.3-10.7-24-24-24H152c-13.3 0-24 10.7-24 24v40H24C10.7 64 0 74.7 0 88v56c0 35.7 22.5 72.4 61.9 100.7 31.5 22.7 69.8 37.1 110 41.7C203.3 338.5 240 360 240 360v72h-48c-35.3 0-64 20.7-64 56v12c0 6.6 5.4 12 12 12h296c6.6 0 12-5.4 12-12v-12c0-35.3-28.7-56-64-56h-48v-72s36.7-21.5 68.1-73.6c40.3-4.6 78.6-19 110-41.7 39.3-28.3 61.9-65 61.9-100.7V88c0-13.3-10.7-24-24-24zM99.3 192.8C74.9 175.2 64 155.6 64 144v-16h64.2c1 32.6 5.8 61.2 12.8 86.2-15.1-5.2-29.2-12.4-41.7-21.4zM512 144c0 16.1-17.7 36.1-35.3 48.8-12.5 9-26.7 16.2-41.8 21.4 7-25 11.8-53.6 12.8-86.2H512v16z"},"upload":{"viewBox":"0 0 512 512","path":"M296 384h-80c-13.3 0-24-10.7-24-24V192h-87.7c-17.8 0-26.7-21.5-14.1-34.1L242.3 5.7c7.5-7.5 19.8-7.5 27.3 0l152.2 152.2c12.6 12.6 3.7 34.1-14.1 34.1H320v168c0 13.3-10.7 24-24 24zm216-8v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h136v8c0 30.9 25.1 56 56 56h80c30.9 0 56-25.1 56-56v-8h136c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"},"phone":{"viewBox":"0 0 512 512","path":"M493.4 24.6l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-36 76.7-98.9 140.5-177.2 177.2l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48C3.9 366.5-2 378.1.6 389.4l24 104C27.1 504.2 36.7 512 48 512c256.1 0 464-207.5 464-464 0-11.2-7.7-20.9-18.6-23.4z"},"phone-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM94 416c-7.033 0-13.057-4.873-14.616-11.627l-14.998-65a15 15 0 0 1 8.707-17.16l69.998-29.999a15 15 0 0 1 17.518 4.289l30.997 37.885c48.944-22.963 88.297-62.858 110.781-110.78l-37.886-30.997a15.001 15.001 0 0 1-4.289-17.518l30-69.998a15 15 0 0 1 17.16-8.707l65 14.998A14.997 14.997 0 0 1 384 126c0 160.292-129.945 290-290 290z"},"unlock":{"viewBox":"0 0 448 512","path":"M400 256H152V152.9c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v16c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-16C376 68 307.5-.3 223.5 0 139.5.3 72 69.5 72 153.5V256H48c-26.5 0-48 21.5-48 48v160c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48z"},"credit-card":{"viewBox":"0 0 576 512","path":"M0 432c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V256H0v176zm192-68c0-6.6 5.4-12 12-12h136c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H204c-6.6 0-12-5.4-12-12v-40zm-128 0c0-6.6 5.4-12 12-12h72c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zM576 80v48H0V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48z"},"rss":{"viewBox":"0 0 448 512","path":"M128.081 415.959c0 35.369-28.672 64.041-64.041 64.041S0 451.328 0 415.959s28.672-64.041 64.041-64.041 64.04 28.673 64.04 64.041zm175.66 47.25c-8.354-154.6-132.185-278.587-286.95-286.95C7.656 175.765 0 183.105 0 192.253v48.069c0 8.415 6.49 15.472 14.887 16.018 111.832 7.284 201.473 96.702 208.772 208.772.547 8.397 7.604 14.887 16.018 14.887h48.069c9.149.001 16.489-7.655 15.995-16.79zm144.249.288C439.596 229.677 251.465 40.445 16.503 32.01 7.473 31.686 0 38.981 0 48.016v48.068c0 8.625 6.835 15.645 15.453 15.999 191.179 7.839 344.627 161.316 352.465 352.465.353 8.618 7.373 15.453 15.999 15.453h48.068c9.034-.001 16.329-7.474 16.005-16.504z"},"bullhorn":{"viewBox":"0 0 576 512","path":"M576 240c0-23.63-12.95-44.04-32-55.12V32.01C544 23.26 537.02 0 512 0c-7.12 0-14.19 2.38-19.98 7.02l-85.03 68.03C364.28 109.19 310.66 128 256 128H64c-35.35 0-64 28.65-64 64v96c0 35.35 28.65 64 64 64h33.7c-1.39 10.48-2.18 21.14-2.18 32 0 39.77 9.26 77.35 25.56 110.94 5.19 10.69 16.52 17.06 28.4 17.06h74.28c26.05 0 41.69-29.84 25.9-50.56-16.4-21.52-26.15-48.36-26.15-77.44 0-11.11 1.62-21.79 4.41-32H256c54.66 0 108.28 18.81 150.98 52.95l85.03 68.03a32.023 32.023 0 0 0 19.98 7.02c24.92 0 32-22.78 32-32V295.13C563.05 284.04 576 263.63 576 240zm-96 141.42l-33.05-26.44C392.95 311.78 325.12 288 256 288v-96c69.12 0 136.95-23.78 190.95-66.98L480 98.58v282.84z"},"bell":{"viewBox":"0 0 448 512","path":"M224 512c35.32 0 63.97-28.65 63.97-64H160.03c0 35.35 28.65 64 63.97 64zm215.39-149.71c-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84C118.56 68.1 64.08 130.3 64.08 208c0 102.3-36.15 133.53-55.47 154.29-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h383.8c19.12 0 32-15.6 32.1-32 .05-7.55-2.61-15.27-8.61-21.71z"},"certificate":{"viewBox":"0 0 512 512","path":"M458.622 255.92l45.985-45.005c13.708-12.977 7.316-36.039-10.664-40.339l-62.65-15.99 17.661-62.015c4.991-17.838-11.829-34.663-29.661-29.671l-61.994 17.667-15.984-62.671C337.085.197 313.765-6.276 300.99 7.228L256 53.57 211.011 7.229c-12.63-13.351-36.047-7.234-40.325 10.668l-15.984 62.671-61.995-17.667C74.87 57.907 58.056 74.738 63.046 92.572l17.661 62.015-62.65 15.99C.069 174.878-6.31 197.944 7.392 210.915l45.985 45.005-45.985 45.004c-13.708 12.977-7.316 36.039 10.664 40.339l62.65 15.99-17.661 62.015c-4.991 17.838 11.829 34.663 29.661 29.671l61.994-17.667 15.984 62.671c4.439 18.575 27.696 24.018 40.325 10.668L256 458.61l44.989 46.001c12.5 13.488 35.987 7.486 40.325-10.668l15.984-62.671 61.994 17.667c17.836 4.994 34.651-11.837 29.661-29.671l-17.661-62.015 62.65-15.99c17.987-4.302 24.366-27.367 10.664-40.339l-45.984-45.004z"},"hand-point-right":{"viewBox":"0 0 512 512","path":"M512 199.652c0 23.625-20.65 43.826-44.8 43.826h-99.851c16.34 17.048 18.346 49.766-6.299 70.944 14.288 22.829 2.147 53.017-16.45 62.315C353.574 425.878 322.654 448 272 448c-2.746 0-13.276-.203-16-.195-61.971.168-76.894-31.065-123.731-38.315C120.596 407.683 112 397.599 112 385.786V214.261l.002-.001c.011-18.366 10.607-35.889 28.464-43.845 28.886-12.994 95.413-49.038 107.534-77.323 7.797-18.194 21.384-29.084 40-29.092 34.222-.014 57.752 35.098 44.119 66.908-3.583 8.359-8.312 16.67-14.153 24.918H467.2c23.45 0 44.8 20.543 44.8 43.826zM96 200v192c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V200c0-13.255 10.745-24 24-24h48c13.255 0 24 10.745 24 24zM68 368c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20z"},"hand-point-left":{"viewBox":"0 0 512 512","path":"M44.8 155.826h149.234c-5.841-8.248-10.57-16.558-14.153-24.918C166.248 99.098 189.778 63.986 224 64c18.616.008 32.203 10.897 40 29.092 12.122 28.286 78.648 64.329 107.534 77.323 17.857 7.956 28.453 25.479 28.464 43.845l.002.001v171.526c0 11.812-8.596 21.897-20.269 23.703-46.837 7.25-61.76 38.483-123.731 38.315-2.724-.007-13.254.195-16 .195-50.654 0-81.574-22.122-72.6-71.263-18.597-9.297-30.738-39.486-16.45-62.315-24.645-21.177-22.639-53.896-6.299-70.944H44.8c-24.15 0-44.8-20.201-44.8-43.826 0-23.283 21.35-43.826 44.8-43.826zM440 176h48c13.255 0 24 10.745 24 24v192c0 13.255-10.745 24-24 24h-48c-13.255 0-24-10.745-24-24V200c0-13.255 10.745-24 24-24zm24 212c11.046 0 20-8.954 20-20s-8.954-20-20-20-20 8.954-20 20 8.954 20 20 20z"},"hand-point-up":{"viewBox":"0 0 384 512","path":"M135.652 0c23.625 0 43.826 20.65 43.826 44.8v99.851c17.048-16.34 49.766-18.346 70.944 6.299 22.829-14.288 53.017-2.147 62.315 16.45C361.878 158.426 384 189.346 384 240c0 2.746-.203 13.276-.195 16 .168 61.971-31.065 76.894-38.315 123.731C343.683 391.404 333.599 400 321.786 400H150.261l-.001-.002c-18.366-.011-35.889-10.607-43.845-28.464C93.421 342.648 57.377 276.122 29.092 264 10.897 256.203.008 242.616 0 224c-.014-34.222 35.098-57.752 66.908-44.119 8.359 3.583 16.67 8.312 24.918 14.153V44.8c0-23.45 20.543-44.8 43.826-44.8zM136 416h192c13.255 0 24 10.745 24 24v48c0 13.255-10.745 24-24 24H136c-13.255 0-24-10.745-24-24v-48c0-13.255 10.745-24 24-24zm168 28c-11.046 0-20 8.954-20 20s8.954 20 20 20 20-8.954 20-20-8.954-20-20-20z"},"hand-point-down":{"viewBox":"0 0 384 512","path":"M91.826 467.2V317.966c-8.248 5.841-16.558 10.57-24.918 14.153C35.098 345.752-.014 322.222 0 288c.008-18.616 10.897-32.203 29.092-40 28.286-12.122 64.329-78.648 77.323-107.534 7.956-17.857 25.479-28.453 43.845-28.464l.001-.002h171.526c11.812 0 21.897 8.596 23.703 20.269 7.25 46.837 38.483 61.76 38.315 123.731-.007 2.724.195 13.254.195 16 0 50.654-22.122 81.574-71.263 72.6-9.297 18.597-39.486 30.738-62.315 16.45-21.177 24.645-53.896 22.639-70.944 6.299V467.2c0 24.15-20.201 44.8-43.826 44.8-23.283 0-43.826-21.35-43.826-44.8zM112 72V24c0-13.255 10.745-24 24-24h192c13.255 0 24 10.745 24 24v48c0 13.255-10.745 24-24 24H136c-13.255 0-24-10.745-24-24zm212-24c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20z"},"globe":{"viewBox":"0 0 496 512","path":"M336.5 160C322 70.7 287.8 8 248 8s-74 62.7-88.5 152h177zM152 256c0 22.2 1.2 43.5 3.3 64h185.3c2.1-20.5 3.3-41.8 3.3-64s-1.2-43.5-3.3-64H155.3c-2.1 20.5-3.3 41.8-3.3 64zm324.7-96c-28.6-67.9-86.5-120.4-158-141.6 24.4 33.8 41.2 84.7 50 141.6h108zM177.2 18.4C105.8 39.6 47.8 92.1 19.3 160h108c8.7-56.9 25.5-107.8 49.9-141.6zM487.4 192H372.7c2.1 21 3.3 42.5 3.3 64s-1.2 43-3.3 64h114.6c5.5-20.5 8.6-41.8 8.6-64s-3.1-43.5-8.5-64zM120 256c0-21.5 1.2-43 3.3-64H8.6C3.2 212.5 0 233.8 0 256s3.2 43.5 8.6 64h114.6c-2-21-3.2-42.5-3.2-64zm39.5 96c14.5 89.3 48.7 152 88.5 152s74-62.7 88.5-152h-177zm159.3 141.6c71.4-21.2 129.4-73.7 158-141.6h-108c-8.8 56.9-25.6 107.8-50 141.6zM19.3 352c28.6 67.9 86.5 120.4 158 141.6-24.4-33.8-41.2-84.7-50-141.6h-108z"},"wrench":{"viewBox":"0 0 512 512","path":"M507.73 109.1c-2.24-9.03-13.54-12.09-20.12-5.51l-74.36 74.36-67.88-11.31-11.31-67.88 74.36-74.36c6.62-6.62 3.43-17.9-5.66-20.16-47.38-11.74-99.55.91-136.58 37.93-39.64 39.64-50.55 97.1-34.05 147.2L18.74 402.76c-24.99 24.99-24.99 65.51 0 90.5 24.99 24.99 65.51 24.99 90.5 0l213.21-213.21c50.12 16.71 107.47 5.68 147.37-34.22 37.07-37.07 49.7-89.32 37.91-136.73zM64 472c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"},"tasks":{"viewBox":"0 0 512 512","path":"M208 132h288c8.8 0 16-7.2 16-16V76c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zM64 368c-26.5 0-48.6 21.5-48.6 48s22.1 48 48.6 48 48-21.5 48-48-21.5-48-48-48zm92.5-299l-72.2 72.2-15.6 15.6c-4.7 4.7-12.9 4.7-17.6 0L3.5 109.4c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.3c4.7-4.7 12.3-4.7 17 0l17 16.5c4.6 4.7 4.6 12.3-.1 17zm0 159.6l-72.2 72.2-15.7 15.7c-4.7 4.7-12.9 4.7-17.6 0L3.5 269c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.7c4.7-4.7 12.3-4.7 17 0l17 17c4.6 4.6 4.6 12.2-.1 16.9z"},"filter":{"viewBox":"0 0 512 512","path":"M487.976 0H24.028C2.71 0-8.047 25.866 7.058 40.971L192 225.941V432c0 7.831 3.821 15.17 10.237 19.662l80 55.98C298.02 518.69 320 507.493 320 487.98V225.941l184.947-184.97C520.021 25.896 509.338 0 487.976 0z"},"briefcase":{"viewBox":"0 0 512 512","path":"M320 336c0 8.84-7.16 16-16 16h-96c-8.84 0-16-7.16-16-16v-48H0v144c0 25.6 22.4 48 48 48h416c25.6 0 48-22.4 48-48V288H320v48zm144-208h-80V80c0-25.6-22.4-48-48-48H176c-25.6 0-48 22.4-48 48v48H48c-25.6 0-48 22.4-48 48v80h512v-80c0-25.6-22.4-48-48-48zm-144 0H192V96h128v32z"},"arrows-alt":{"viewBox":"0 0 512 512","path":"M352.201 425.775l-79.196 79.196c-9.373 9.373-24.568 9.373-33.941 0l-79.196-79.196c-15.119-15.119-4.411-40.971 16.971-40.97h51.162L228 284H127.196v51.162c0 21.382-25.851 32.09-40.971 16.971L7.029 272.937c-9.373-9.373-9.373-24.569 0-33.941L86.225 159.8c15.119-15.119 40.971-4.411 40.971 16.971V228H228V127.196h-51.23c-21.382 0-32.09-25.851-16.971-40.971l79.196-79.196c9.373-9.373 24.568-9.373 33.941 0l79.196 79.196c15.119 15.119 4.411 40.971-16.971 40.971h-51.162V228h100.804v-51.162c0-21.382 25.851-32.09 40.97-16.971l79.196 79.196c9.373 9.373 9.373 24.569 0 33.941L425.773 352.2c-15.119 15.119-40.971 4.411-40.97-16.971V284H284v100.804h51.23c21.382 0 32.09 25.851 16.971 40.971z"},"users":{"viewBox":"0 0 640 512","path":"M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"},"link":{"viewBox":"0 0 512 512","path":"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"},"cloud":{"viewBox":"0 0 640 512","path":"M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4z"},"flask":{"viewBox":"0 0 448 512","path":"M437.2 403.5L320 215V64h8c13.3 0 24-10.7 24-24V24c0-13.3-10.7-24-24-24H120c-13.3 0-24 10.7-24 24v16c0 13.3 10.7 24 24 24h8v151L10.8 403.5C-18.5 450.6 15.3 512 70.9 512h306.2c55.7 0 89.4-61.5 60.1-108.5zM137.9 320l48.2-77.6c3.7-5.2 5.8-11.6 5.8-18.4V64h64v160c0 6.9 2.2 13.2 5.8 18.4l48.2 77.6h-172z"},"cut":{"viewBox":"0 0 448 512","path":"M278.06 256L444.48 89.57c4.69-4.69 4.69-12.29 0-16.97-32.8-32.8-85.99-32.8-118.79 0L210.18 188.12l-24.86-24.86c4.31-10.92 6.68-22.81 6.68-35.26 0-53.02-42.98-96-96-96S0 74.98 0 128s42.98 96 96 96c4.54 0 8.99-.32 13.36-.93L142.29 256l-32.93 32.93c-4.37-.61-8.83-.93-13.36-.93-53.02 0-96 42.98-96 96s42.98 96 96 96 96-42.98 96-96c0-12.45-2.37-24.34-6.68-35.26l24.86-24.86L325.69 439.4c32.8 32.8 85.99 32.8 118.79 0 4.69-4.68 4.69-12.28 0-16.97L278.06 256zM96 160c-17.64 0-32-14.36-32-32s14.36-32 32-32 32 14.36 32 32-14.36 32-32 32zm0 256c-17.64 0-32-14.36-32-32s14.36-32 32-32 32 14.36 32 32-14.36 32-32 32z"},"copy":{"viewBox":"0 0 448 512","path":"M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z"},"paperclip":{"viewBox":"0 0 448 512","path":"M43.246 466.142c-58.43-60.289-57.341-157.511 1.386-217.581L254.392 34c44.316-45.332 116.351-45.336 160.671 0 43.89 44.894 43.943 117.329 0 162.276L232.214 383.128c-29.855 30.537-78.633 30.111-107.982-.998-28.275-29.97-27.368-77.473 1.452-106.953l143.743-146.835c6.182-6.314 16.312-6.422 22.626-.241l22.861 22.379c6.315 6.182 6.422 16.312.241 22.626L171.427 319.927c-4.932 5.045-5.236 13.428-.648 18.292 4.372 4.634 11.245 4.711 15.688.165l182.849-186.851c19.613-20.062 19.613-52.725-.011-72.798-19.189-19.627-49.957-19.637-69.154 0L90.39 293.295c-34.763 35.56-35.299 93.12-1.191 128.313 34.01 35.093 88.985 35.137 123.058.286l172.06-175.999c6.177-6.319 16.307-6.433 22.626-.256l22.877 22.364c6.319 6.177 6.434 16.307.256 22.626l-172.06 175.998c-59.576 60.938-155.943 60.216-214.77-.485z"},"save":{"viewBox":"0 0 448 512","path":"M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM224 416c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64s64 28.654 64 64c0 35.346-28.654 64-64 64zm96-304.52V212c0 6.627-5.373 12-12 12H76c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h228.52c3.183 0 6.235 1.264 8.485 3.515l3.48 3.48A11.996 11.996 0 0 1 320 111.48z"},"square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z"},"bars":{"viewBox":"0 0 448 512","path":"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"},"list-ul":{"viewBox":"0 0 512 512","path":"M96 96c0 26.51-21.49 48-48 48S0 122.51 0 96s21.49-48 48-48 48 21.49 48 48zM48 208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm0 160c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm96-236h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"},"list-ol":{"viewBox":"0 0 512 512","path":"M3.263 139.527c0-7.477 3.917-11.572 11.573-11.572h15.131V88.078c0-5.163.534-10.503.534-10.503h-.356s-1.779 2.67-2.848 3.738c-4.451 4.273-10.504 4.451-15.666-1.068l-5.518-6.231c-5.342-5.341-4.984-11.216.534-16.379l21.72-19.938C32.815 33.602 36.732 32 42.785 32H54.89c7.656 0 11.749 3.916 11.749 11.572v84.384h15.488c7.655 0 11.572 4.094 11.572 11.572v8.901c0 7.477-3.917 11.572-11.572 11.572H14.836c-7.656 0-11.573-4.095-11.573-11.572v-8.902zM2.211 304.591c0-47.278 50.955-56.383 50.955-69.165 0-7.18-5.954-8.755-9.28-8.755-3.153 0-6.479 1.051-9.455 3.852-5.079 4.903-10.507 7.004-16.111 2.451l-8.579-6.829c-5.779-4.553-7.18-9.805-2.803-15.409C13.592 201.981 26.025 192 47.387 192c19.437 0 44.476 10.506 44.476 39.573 0 38.347-46.753 46.402-48.679 56.909h39.049c7.529 0 11.557 4.027 11.557 11.382v8.755c0 7.354-4.028 11.382-11.557 11.382h-67.94c-7.005 0-12.083-4.028-12.083-11.382v-4.028zM5.654 454.61l5.603-9.28c3.853-6.654 9.105-7.004 15.584-3.152 4.903 2.101 9.63 3.152 14.359 3.152 10.155 0 14.358-3.502 14.358-8.23 0-6.654-5.604-9.106-15.934-9.106h-4.728c-5.954 0-9.28-2.101-12.258-7.88l-1.05-1.926c-2.451-4.728-1.226-9.806 2.801-14.884l5.604-7.004c6.829-8.405 12.257-13.483 12.257-13.483v-.35s-4.203 1.051-12.608 1.051H16.685c-7.53 0-11.383-4.028-11.383-11.382v-8.755c0-7.53 3.853-11.382 11.383-11.382h58.484c7.529 0 11.382 4.027 11.382 11.382v3.327c0 5.778-1.401 9.806-5.079 14.183l-17.509 20.137c19.611 5.078 28.716 20.487 28.716 34.845 0 21.363-14.358 44.126-48.503 44.126-16.636 0-28.192-4.728-35.896-9.455-5.779-4.202-6.304-9.805-2.626-15.934zM144 132h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"},"strikethrough":{"viewBox":"0 0 512 512","path":"M496 288H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h480c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16zm-214.666 16c27.258 12.937 46.524 28.683 46.524 56.243 0 33.108-28.977 53.676-75.621 53.676-32.325 0-76.874-12.08-76.874-44.271V368c0-8.837-7.164-16-16-16H113.75c-8.836 0-16 7.163-16 16v19.204c0 66.845 77.717 101.82 154.487 101.82 88.578 0 162.013-45.438 162.013-134.424 0-19.815-3.618-36.417-10.143-50.6H281.334zm-30.952-96c-32.422-13.505-56.836-28.946-56.836-59.683 0-33.92 30.901-47.406 64.962-47.406 42.647 0 64.962 16.593 64.962 32.985V136c0 8.837 7.164 16 16 16h45.613c8.836 0 16-7.163 16-16v-30.318c0-52.438-71.725-79.875-142.575-79.875-85.203 0-150.726 40.972-150.726 125.646 0 22.71 4.665 41.176 12.777 56.547h129.823z"},"underline":{"viewBox":"0 0 448 512","path":"M224.264 388.24c-91.669 0-156.603-51.165-156.603-151.392V64H39.37c-8.837 0-16-7.163-16-16V16c0-8.837 7.163-16 16-16h137.39c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-28.813v172.848c0 53.699 28.314 79.444 76.317 79.444 46.966 0 75.796-25.434 75.796-79.965V64h-28.291c-8.837 0-16-7.163-16-16V16c0-8.837 7.163-16 16-16h136.868c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-28.291v172.848c0 99.405-64.881 151.392-156.082 151.392zM16 448h416c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16z"},"table":{"viewBox":"0 0 512 512","path":"M464 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM224 416H64v-96h160v96zm0-160H64v-96h160v96zm224 160H288v-96h160v96zm0-160H288v-96h160v96z"},"magic":{"viewBox":"0 0 512 512","path":"M224 96l16-32 32-16-32-16-16-32-16 32-32 16 32 16 16 32zM80 160l26.66-53.33L160 80l-53.34-26.67L80 0 53.34 53.33 0 80l53.34 26.67L80 160zm352 128l-26.66 53.33L352 368l53.34 26.67L432 448l26.66-53.33L512 368l-53.34-26.67L432 288zm70.62-193.77L417.77 9.38C411.53 3.12 403.34 0 395.15 0c-8.19 0-16.38 3.12-22.63 9.38L9.38 372.52c-12.5 12.5-12.5 32.76 0 45.25l84.85 84.85c6.25 6.25 14.44 9.37 22.62 9.37 8.19 0 16.38-3.12 22.63-9.37l363.14-363.15c12.5-12.48 12.5-32.75 0-45.24zM359.45 203.46l-50.91-50.91 86.6-86.6 50.91 50.91-86.6 86.6z"},"truck":{"viewBox":"0 0 640 512","path":"M624 352h-16V243.9c0-12.7-5.1-24.9-14.1-33.9L494 110.1c-9-9-21.2-14.1-33.9-14.1H416V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h16c0 53 43 96 96 96s96-43 96-96h128c0 53 43 96 96 96s96-43 96-96h48c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM160 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm320 0c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-208H416V144h44.1l99.9 99.9V256z"},"money-bill-alt":{"viewBox":"0 0 640 512","path":"M352 288h-16v-88c0-4.42-3.58-8-8-8h-13.58c-4.74 0-9.37 1.4-13.31 4.03l-15.33 10.22a7.994 7.994 0 0 0-2.22 11.09l8.88 13.31a7.994 7.994 0 0 0 11.09 2.22l.47-.31V288h-16c-4.42 0-8 3.58-8 8v16c0 4.42 3.58 8 8 8h64c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8zM608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zM48 400v-64c35.35 0 64 28.65 64 64H48zm0-224v-64h64c0 35.35-28.65 64-64 64zm272 192c-53.02 0-96-50.15-96-112 0-61.86 42.98-112 96-112s96 50.14 96 112c0 61.87-43 112-96 112zm272 32h-64c0-35.35 28.65-64 64-64v64zm0-224c-35.35 0-64-28.65-64-64h64v64z"},"caret-down":{"viewBox":"0 0 320 512","path":"M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"},"caret-up":{"viewBox":"0 0 320 512","path":"M288.662 352H31.338c-17.818 0-26.741-21.543-14.142-34.142l128.662-128.662c7.81-7.81 20.474-7.81 28.284 0l128.662 128.662c12.6 12.599 3.676 34.142-14.142 34.142z"},"caret-left":{"viewBox":"0 0 192 512","path":"M192 127.338v257.324c0 17.818-21.543 26.741-34.142 14.142L29.196 270.142c-7.81-7.81-7.81-20.474 0-28.284l128.662-128.662c12.599-12.6 34.142-3.676 34.142 14.142z"},"caret-right":{"viewBox":"0 0 192 512","path":"M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z"},"columns":{"viewBox":"0 0 512 512","path":"M464 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM224 416H64V160h160v256zm224 0H288V160h160v256z"},"sort":{"viewBox":"0 0 320 512","path":"M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41zm255-105L177 64c-9.4-9.4-24.6-9.4-33.9 0L24 183c-15.1 15.1-4.4 41 17 41h238c21.4 0 32.1-25.9 17-41z"},"sort-down":{"viewBox":"0 0 320 512","path":"M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41z"},"sort-up":{"viewBox":"0 0 320 512","path":"M279 224H41c-21.4 0-32.1-25.9-17-41L143 64c9.4-9.4 24.6-9.4 33.9 0l119 119c15.2 15.1 4.5 41-16.9 41z"},"envelope":{"viewBox":"0 0 512 512","path":"M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"},"undo":{"viewBox":"0 0 512 512","path":"M212.333 224.333H12c-6.627 0-12-5.373-12-12V12C0 5.373 5.373 0 12 0h48c6.627 0 12 5.373 12 12v78.112C117.773 39.279 184.26 7.47 258.175 8.007c136.906.994 246.448 111.623 246.157 248.532C504.041 393.258 393.12 504 256.333 504c-64.089 0-122.496-24.313-166.51-64.215-5.099-4.622-5.334-12.554-.467-17.42l33.967-33.967c4.474-4.474 11.662-4.717 16.401-.525C170.76 415.336 211.58 432 256.333 432c97.268 0 176-78.716 176-176 0-97.267-78.716-176-176-176-58.496 0-110.28 28.476-142.274 72.333h98.274c6.627 0 12 5.373 12 12v48c0 6.627-5.373 12-12 12z"},"gavel":{"viewBox":"0 0 512 512","path":"M504.971 199.362l-22.627-22.627c-9.373-9.373-24.569-9.373-33.941 0l-5.657 5.657L329.608 69.255l5.657-5.657c9.373-9.373 9.373-24.569 0-33.941L312.638 7.029c-9.373-9.373-24.569-9.373-33.941 0L154.246 131.48c-9.373 9.373-9.373 24.569 0 33.941l22.627 22.627c9.373 9.373 24.569 9.373 33.941 0l5.657-5.657 39.598 39.598-81.04 81.04-5.657-5.657c-12.497-12.497-32.758-12.497-45.255 0L9.373 412.118c-12.497 12.497-12.497 32.758 0 45.255l45.255 45.255c12.497 12.497 32.758 12.497 45.255 0l114.745-114.745c12.497-12.497 12.497-32.758 0-45.255l-5.657-5.657 81.04-81.04 39.598 39.598-5.657 5.657c-9.373 9.373-9.373 24.569 0 33.941l22.627 22.627c9.373 9.373 24.569 9.373 33.941 0l124.451-124.451c9.372-9.372 9.372-24.568 0-33.941z"},"tachometer-alt":{"viewBox":"0 0 576 512","path":"M288 32C128.94 32 0 160.94 0 320c0 52.8 14.25 102.26 39.06 144.8 5.61 9.62 16.3 15.2 27.44 15.2h443c11.14 0 21.83-5.58 27.44-15.2C561.75 422.26 576 372.8 576 320c0-159.06-128.94-288-288-288zm0 64c14.71 0 26.58 10.13 30.32 23.65-1.11 2.26-2.64 4.23-3.45 6.67l-9.22 27.67c-5.13 3.49-10.97 6.01-17.64 6.01-17.67 0-32-14.33-32-32S270.33 96 288 96zM96 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm48-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm246.77-72.41l-61.33 184C343.13 347.33 352 364.54 352 384c0 11.72-3.38 22.55-8.88 32H232.88c-5.5-9.45-8.88-20.28-8.88-32 0-33.94 26.5-61.43 59.9-63.59l61.34-184.01c4.17-12.56 17.73-19.45 30.36-15.17 12.57 4.19 19.35 17.79 15.17 30.36zm14.66 57.2l15.52-46.55c3.47-1.29 7.13-2.23 11.05-2.23 17.67 0 32 14.33 32 32s-14.33 32-32 32c-11.38-.01-20.89-6.28-26.57-15.22zM480 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"},"bolt":{"viewBox":"0 0 320 512","path":"M296 160H180.6l42.6-129.8C227.2 15 215.7 0 200 0H56C44 0 33.8 8.9 32.2 20.8l-32 240C-1.7 275.2 9.5 288 24 288h118.7L96.6 482.5c-3.6 15.2 8 29.5 23.3 29.5 8.4 0 16.4-4.4 20.8-12l176-304c9.3-15.9-2.2-36-20.7-36z"},"sitemap":{"viewBox":"0 0 640 512","path":"M128 352H32c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32zm-24-80h192v48h48v-48h192v48h48v-57.59c0-21.17-17.23-38.41-38.41-38.41H344v-64h40c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32H256c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h40v64H94.41C73.23 224 56 241.23 56 262.41V320h48v-48zm264 80h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32zm240 0h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32z"},"umbrella":{"viewBox":"0 0 576 512","path":"M575.7 280.8C547.1 144.5 437.3 62.6 320 49.9V32c0-17.7-14.3-32-32-32s-32 14.3-32 32v17.9C138.3 62.6 29.5 144.5.3 280.8c-2.2 10.1 8.5 21.3 18.7 11.4 52-55 107.7-52.4 158.6 37 5.3 9.5 14.9 8.6 19.7 0 20.2-35.4 44.9-73.2 90.7-73.2 58.5 0 88.2 68.8 90.7 73.2 4.8 8.6 14.4 9.5 19.7 0 51-89.5 107.1-91.4 158.6-37 10.3 10 20.9-1.3 18.7-11.4zM256 301.7V432c0 8.8-7.2 16-16 16-7.8 0-13.2-5.3-15.1-10.7-5.9-16.7-24.1-25.4-40.8-19.5-16.7 5.9-25.4 24.2-19.5 40.8 11.2 31.9 41.6 53.3 75.4 53.3 44.1 0 80-35.9 80-80V301.6c-9.1-7.9-19.8-13.6-32-13.6-12.3.1-22.4 4.8-32 13.7z"},"clipboard":{"viewBox":"0 0 384 512","path":"M384 112v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h80c0-35.29 28.71-64 64-64s64 28.71 64 64h80c26.51 0 48 21.49 48 48zM192 40c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24m96 114v-20a6 6 0 0 0-6-6H102a6 6 0 0 0-6 6v20a6 6 0 0 0 6 6h180a6 6 0 0 0 6-6z"},"exchange-alt":{"viewBox":"0 0 512 512","path":"M0 168v-16c0-13.255 10.745-24 24-24h360V80c0-21.367 25.899-32.042 40.971-16.971l80 80c9.372 9.373 9.372 24.569 0 33.941l-80 80C409.956 271.982 384 261.456 384 240v-48H24c-13.255 0-24-10.745-24-24zm488 152H128v-48c0-21.314-25.862-32.08-40.971-16.971l-80 80c-9.372 9.373-9.372 24.569 0 33.941l80 80C102.057 463.997 128 453.437 128 432v-48h360c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24z"},"cloud-download-alt":{"viewBox":"0 0 640 512","path":"M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4zm-132.9 88.7L299.3 420.7c-6.2 6.2-16.4 6.2-22.6 0L171.3 315.3c-10.1-10.1-2.9-27.3 11.3-27.3H248V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v112h65.4c14.2 0 21.4 17.2 11.3 27.3z"},"cloud-upload-alt":{"viewBox":"0 0 640 512","path":"M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4zM393.4 288H328v112c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V288h-65.4c-14.3 0-21.4-17.2-11.3-27.3l105.4-105.4c6.2-6.2 16.4-6.2 22.6 0l105.4 105.4c10.1 10.1 2.9 27.3-11.3 27.3z"},"user-md":{"viewBox":"0 0 448 512","path":"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zM104 424c0 13.3 10.7 24 24 24s24-10.7 24-24-10.7-24-24-24-24 10.7-24 24zm216-135.4v49c36.5 7.4 64 39.8 64 78.4v41.7c0 7.6-5.4 14.2-12.9 15.7l-32.2 6.4c-4.3.9-8.5-1.9-9.4-6.3l-3.1-15.7c-.9-4.3 1.9-8.6 6.3-9.4l19.3-3.9V416c0-62.8-96-65.1-96 1.9v26.7l19.3 3.9c4.3.9 7.1 5.1 6.3 9.4l-3.1 15.7c-.9 4.3-5.1 7.1-9.4 6.3l-31.2-4.2c-7.9-1.1-13.8-7.8-13.8-15.9V416c0-38.6 27.5-70.9 64-78.4v-45.2c-2.2.7-4.4 1.1-6.6 1.9-18 6.3-37.3 9.8-57.4 9.8s-39.4-3.5-57.4-9.8c-7.4-2.6-14.9-4.2-22.6-5.2v81.6c23.1 6.9 40 28.1 40 53.4 0 30.9-25.1 56-56 56s-56-25.1-56-56c0-25.3 16.9-46.5 40-53.4v-80.4C48.5 301 0 355.8 0 422.4v44.8C0 491.9 20.1 512 44.8 512h358.4c24.7 0 44.8-20.1 44.8-44.8v-44.8c0-72-56.8-130.3-128-133.8z"},"stethoscope":{"viewBox":"0 0 512 512","path":"M447.1 112c-34.2.5-62.3 28.4-63 62.6-.5 24.3 12.5 45.6 32 56.8V344c0 57.3-50.2 104-112 104-60 0-109.2-44.1-111.9-99.2C265 333.8 320 269.2 320 192V36.6c0-11.4-8.1-21.3-19.3-23.5L237.8.5c-13-2.6-25.6 5.8-28.2 18.8L206.4 35c-2.6 13 5.8 25.6 18.8 28.2l30.7 6.1v121.4c0 52.9-42.2 96.7-95.1 97.2-53.4.5-96.9-42.7-96.9-96V69.4l30.7-6.1c13-2.6 21.4-15.2 18.8-28.2l-3.1-15.7C107.7 6.4 95.1-2 82.1.6L19.3 13C8.1 15.3 0 25.1 0 36.6V192c0 77.3 55.1 142 128.1 156.8C130.7 439.2 208.6 512 304 512c97 0 176-75.4 176-168V231.4c19.1-11.1 32-31.7 32-55.4 0-35.7-29.2-64.5-64.9-64zm.9 80c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16z"},"suitcase":{"viewBox":"0 0 512 512","path":"M128 480h256V80c0-26.5-21.5-48-48-48H176c-26.5 0-48 21.5-48 48v400zm64-384h128v32H192V96zm320 80v256c0 26.5-21.5 48-48 48h-48V128h48c26.5 0 48 21.5 48 48zM96 480H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48h48v352z"},"coffee":{"viewBox":"0 0 640 512","path":"M192 384h192c53 0 96-43 96-96h32c70.6 0 128-57.4 128-128S582.6 32 512 32H120c-13.3 0-24 10.7-24 24v232c0 53 43 96 96 96zM512 96c35.3 0 64 28.7 64 64s-28.7 64-64 64h-32V96h32zm47.7 384H48.3c-47.6 0-61-64-36-64h583.3c25 0 11.8 64-35.9 64z"},"utensils":{"viewBox":"0 0 416 512","path":"M207.9 15.2c.8 4.7 16.1 94.5 16.1 128.8 0 52.3-27.8 89.6-68.9 104.6L168 486.7c.7 13.7-10.2 25.3-24 25.3H80c-13.7 0-24.7-11.5-24-25.3l12.9-238.1C27.7 233.6 0 196.2 0 144 0 109.6 15.3 19.9 16.1 15.2 19.3-5.1 61.4-5.4 64 16.3v141.2c1.3 3.4 15.1 3.2 16 0 1.4-25.3 7.9-139.2 8-141.8 3.3-20.8 44.7-20.8 47.9 0 .2 2.7 6.6 116.5 8 141.8.9 3.2 14.8 3.4 16 0V16.3c2.6-21.6 44.8-21.4 48-1.1zm119.2 285.7l-15 185.1c-1.2 14 9.9 26 23.9 26h56c13.3 0 24-10.7 24-24V24c0-13.2-10.7-24-24-24-82.5 0-221.4 178.5-64.9 300.9z"},"file-alt":{"viewBox":"0 0 384 512","path":"M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm64 236c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-64c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-72v8c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm96-114.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"},"ambulance":{"viewBox":"0 0 640 512","path":"M624 352h-16V243.9c0-12.7-5.1-24.9-14.1-33.9L494 110.1c-9-9-21.2-14.1-33.9-14.1H416V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h16c0 53 43 96 96 96s96-43 96-96h128c0 53 43 96 96 96s96-43 96-96h48c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM160 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm144-248c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48zm176 248c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-208H416V144h44.1l99.9 99.9V256z"},"medkit":{"viewBox":"0 0 512 512","path":"M96 480h320V128h-32V80c0-26.51-21.49-48-48-48H176c-26.51 0-48 21.49-48 48v48H96v352zm96-384h128v32H192V96zm320 80v256c0 26.51-21.49 48-48 48h-16V128h16c26.51 0 48 21.49 48 48zM64 480H48c-26.51 0-48-21.49-48-48V176c0-26.51 21.49-48 48-48h16v352zm288-208v32c0 8.837-7.163 16-16 16h-48v48c0 8.837-7.163 16-16 16h-32c-8.837 0-16-7.163-16-16v-48h-48c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h48v-48c0-8.837 7.163-16 16-16h32c8.837 0 16 7.163 16 16v48h48c8.837 0 16 7.163 16 16z"},"fighter-jet":{"viewBox":"0 0 640 512","path":"M544 224l-128-16-48-16h-24L227.158 44h39.509C278.333 44 288 41.375 288 38s-9.667-6-21.333-6H152v12h16v164h-48l-66.667-80H18.667L8 138.667V208h8v16h48v2.666l-64 8v42.667l64 8V288H16v16H8v69.333L18.667 384h34.667L120 304h48v164h-16v12h114.667c11.667 0 21.333-2.625 21.333-6s-9.667-6-21.333-6h-39.509L344 320h24l48-16 128-16c96-21.333 96-26.583 96-32 0-5.417 0-10.667-96-32z"},"beer":{"viewBox":"0 0 448 512","path":"M368 96h-48V56c0-13.255-10.745-24-24-24H24C10.745 32 0 42.745 0 56v400c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24v-42.11l80.606-35.977C429.396 365.063 448 336.388 448 304.86V176c0-44.112-35.888-80-80-80zm16 208.86a16.018 16.018 0 0 1-9.479 14.611L320 343.805V160h48c8.822 0 16 7.178 16 16v128.86zM208 384c-8.836 0-16-7.164-16-16V144c0-8.836 7.164-16 16-16s16 7.164 16 16v224c0 8.836-7.164 16-16 16zm-96 0c-8.836 0-16-7.164-16-16V144c0-8.836 7.164-16 16-16s16 7.164 16 16v224c0 8.836-7.164 16-16 16z"},"h-square":{"viewBox":"0 0 448 512","path":"M448 80v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48zm-112 48h-32c-8.837 0-16 7.163-16 16v80H160v-80c0-8.837-7.163-16-16-16h-32c-8.837 0-16 7.163-16 16v224c0 8.837 7.163 16 16 16h32c8.837 0 16-7.163 16-16v-80h128v80c0 8.837 7.163 16 16 16h32c8.837 0 16-7.163 16-16V144c0-8.837-7.163-16-16-16z"},"plus-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-32 252c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92H92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"},"angle-double-left":{"viewBox":"0 0 448 512","path":"M223.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L319.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L393.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34zm-192 34l136 136c9.4 9.4 24.6 9.4 33.9 0l22.6-22.6c9.4-9.4 9.4-24.6 0-33.9L127.9 256l96.4-96.4c9.4-9.4 9.4-24.6 0-33.9L201.7 103c-9.4-9.4-24.6-9.4-33.9 0l-136 136c-9.5 9.4-9.5 24.6-.1 34z"},"angle-double-right":{"viewBox":"0 0 448 512","path":"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34zm192-34l-136-136c-9.4-9.4-24.6-9.4-33.9 0l-22.6 22.6c-9.4 9.4-9.4 24.6 0 33.9l96.4 96.4-96.4 96.4c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l136-136c9.4-9.2 9.4-24.4 0-33.8z"},"angle-double-up":{"viewBox":"0 0 320 512","path":"M177 255.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 351.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 425.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1zm-34-192L7 199.7c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l96.4-96.4 96.4 96.4c9.4 9.4 24.6 9.4 33.9 0l22.6-22.6c9.4-9.4 9.4-24.6 0-33.9l-136-136c-9.2-9.4-24.4-9.4-33.8 0z"},"angle-double-down":{"viewBox":"0 0 320 512","path":"M143 256.3L7 120.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0L313 86.3c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.4 9.5-24.6 9.5-34 .1zm34 192l136-136c9.4-9.4 9.4-24.6 0-33.9l-22.6-22.6c-9.4-9.4-24.6-9.4-33.9 0L160 352.1l-96.4-96.4c-9.4-9.4-24.6-9.4-33.9 0L7 278.3c-9.4 9.4-9.4 24.6 0 33.9l136 136c9.4 9.5 24.6 9.5 34 .1z"},"angle-left":{"viewBox":"0 0 256 512","path":"M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z"},"angle-right":{"viewBox":"0 0 256 512","path":"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"},"angle-up":{"viewBox":"0 0 320 512","path":"M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1z"},"angle-down":{"viewBox":"0 0 320 512","path":"M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z"},"desktop":{"viewBox":"0 0 576 512","path":"M528 0H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h192l-16 48h-72c-13.3 0-24 10.7-24 24s10.7 24 24 24h272c13.3 0 24-10.7 24-24s-10.7-24-24-24h-72l-16-48h192c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zm-16 352H64V64h448v288z"},"laptop":{"viewBox":"0 0 640 512","path":"M624 416H381.54c-.74 19.81-14.71 32-32.74 32H288c-18.69 0-33.02-17.47-32.77-32H16c-8.8 0-16 7.2-16 16v16c0 35.2 28.8 64 64 64h512c35.2 0 64-28.8 64-64v-16c0-8.8-7.2-16-16-16zM576 48c0-26.4-21.6-48-48-48H112C85.6 0 64 21.6 64 48v336h512V48zm-64 272H128V64h384v256z"},"tablet":{"viewBox":"0 0 448 512","path":"M400 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM224 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"},"mobile":{"viewBox":"0 0 320 512","path":"M272 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h224c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM160 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"},"quote-left":{"viewBox":"0 0 512 512","path":"M464 256h-80v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8c-88.4 0-160 71.6-160 160v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zm-288 0H96v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8C71.6 32 0 103.6 0 192v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48z"},"quote-right":{"viewBox":"0 0 512 512","path":"M464 32H336c-26.5 0-48 21.5-48 48v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48zm-288 0H48C21.5 32 0 53.5 0 80v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48z"},"spinner":{"viewBox":"0 0 512 512","path":"M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z"},"circle":{"viewBox":"0 0 512 512","path":"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z"},"reply":{"viewBox":"0 0 512 512","path":"M8.309 189.836L184.313 37.851C199.719 24.546 224 35.347 224 56.015v80.053c160.629 1.839 288 34.032 288 186.258 0 61.441-39.581 122.309-83.333 154.132-13.653 9.931-33.111-2.533-28.077-18.631 45.344-145.012-21.507-183.51-176.59-185.742V360c0 20.7-24.3 31.453-39.687 18.164l-176.004-152c-11.071-9.562-11.086-26.753 0-36.328z"},"gamepad":{"viewBox":"0 0 640 512","path":"M480 96H160C71.6 96 0 167.6 0 256s71.6 160 160 160c44.8 0 85.2-18.4 114.2-48h91.5c29 29.6 69.5 48 114.2 48 88.4 0 160-71.6 160-160S568.4 96 480 96zM256 276c0 6.6-5.4 12-12 12h-52v52c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-52H76c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h52v-52c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h52c6.6 0 12 5.4 12 12v40zm184 68c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-80c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"},"flag-checkered":{"viewBox":"0 0 512 512","path":"M466.515 66.928C487.731 57.074 512 72.551 512 95.944v243.1c0 10.526-5.161 20.407-13.843 26.358-35.837 24.564-74.335 40.858-122.505 40.858-67.373 0-111.63-34.783-165.217-34.783-50.853 0-86.124 10.058-114.435 22.122V488c0 13.255-10.745 24-24 24H56c-13.255 0-24-10.745-24-24V101.945C17.497 91.825 8 75.026 8 56 8 24.296 34.345-1.254 66.338.048c28.468 1.158 51.779 23.968 53.551 52.404.52 8.342-.81 16.31-3.586 23.562C137.039 68.384 159.393 64 184.348 64c67.373 0 111.63 34.783 165.217 34.783 40.496 0 82.612-15.906 116.95-31.855zM96 134.63v70.49c29-10.67 51.18-17.83 73.6-20.91v-71.57c-23.5 2.17-40.44 9.79-73.6 21.99zm220.8 9.19c-26.417-4.672-49.886-13.979-73.6-21.34v67.42c24.175 6.706 47.566 16.444 73.6 22.31v-68.39zm-147.2 40.39v70.04c32.796-2.978 53.91-.635 73.6 3.8V189.9c-25.247-7.035-46.581-9.423-73.6-5.69zm73.6 142.23c26.338 4.652 49.732 13.927 73.6 21.34v-67.41c-24.277-6.746-47.54-16.45-73.6-22.32v68.39zM96 342.1c23.62-8.39 47.79-13.84 73.6-16.56v-71.29c-26.11 2.35-47.36 8.04-73.6 17.36v70.49zm368-221.6c-21.3 8.85-46.59 17.64-73.6 22.47v71.91c27.31-4.36 50.03-14.1 73.6-23.89V120.5zm0 209.96v-70.49c-22.19 14.2-48.78 22.61-73.6 26.02v71.58c25.07-2.38 48.49-11.04 73.6-27.11zM316.8 212.21v68.16c25.664 7.134 46.616 9.342 73.6 5.62v-71.11c-25.999 4.187-49.943 2.676-73.6-2.67z"},"terminal":{"viewBox":"0 0 640 512","path":"M257.981 272.971L63.638 467.314c-9.373 9.373-24.569 9.373-33.941 0L7.029 444.647c-9.357-9.357-9.375-24.522-.04-33.901L161.011 256 6.99 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L257.981 239.03c9.373 9.372 9.373 24.568 0 33.941zM640 456v-32c0-13.255-10.745-24-24-24H312c-13.255 0-24 10.745-24 24v32c0 13.255 10.745 24 24 24h304c13.255 0 24-10.745 24-24z"},"code":{"viewBox":"0 0 640 512","path":"M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"},"reply-all":{"viewBox":"0 0 576 512","path":"M136.309 189.836L312.313 37.851C327.72 24.546 352 35.348 352 56.015v82.763c129.182 10.231 224 52.212 224 183.548 0 61.441-39.582 122.309-83.333 154.132-13.653 9.931-33.111-2.533-28.077-18.631 38.512-123.162-3.922-169.482-112.59-182.015v84.175c0 20.701-24.3 31.453-39.687 18.164L136.309 226.164c-11.071-9.561-11.086-26.753 0-36.328zm-128 36.328L184.313 378.15C199.7 391.439 224 380.687 224 359.986v-15.818l-108.606-93.785A55.96 55.96 0 0 1 96 207.998a55.953 55.953 0 0 1 19.393-42.38L224 71.832V56.015c0-20.667-24.28-31.469-39.687-18.164L8.309 189.836c-11.086 9.575-11.071 26.767 0 36.328z"},"location-arrow":{"viewBox":"0 0 512 512","path":"M444.52 3.52L28.74 195.42c-47.97 22.39-31.98 92.75 19.19 92.75h175.91v175.91c0 51.17 70.36 67.17 92.75 19.19l191.9-415.78c15.99-38.39-25.59-79.97-63.97-63.97z"},"crop":{"viewBox":"0 0 512 512","path":"M488 352h-40V109.25l59.31-59.31c6.25-6.25 6.25-16.38 0-22.63L484.69 4.69c-6.25-6.25-16.38-6.25-22.63 0L402.75 64H192v96h114.75L160 306.75V24c0-13.26-10.75-24-24-24H88C74.75 0 64 10.74 64 24v40H24C10.75 64 0 74.74 0 88v48c0 13.25 10.75 24 24 24h40v264c0 13.25 10.75 24 24 24h232v-96H205.25L352 205.25V488c0 13.25 10.75 24 24 24h48c13.25 0 24-10.75 24-24v-40h40c13.25 0 24-10.75 24-24v-48c0-13.26-10.75-24-24-24z"},"code-branch":{"viewBox":"0 0 384 512","path":"M384 144c0-44.2-35.8-80-80-80s-80 35.8-80 80c0 36.4 24.3 67.1 57.5 76.8-.6 16.1-4.2 28.5-11 36.9-15.4 19.2-49.3 22.4-85.2 25.7-28.2 2.6-57.4 5.4-81.3 16.9v-144c32.5-10.2 56-40.5 56-76.3 0-44.2-35.8-80-80-80S0 35.8 0 80c0 35.8 23.5 66.1 56 76.3v199.3C23.5 365.9 0 396.2 0 432c0 44.2 35.8 80 80 80s80-35.8 80-80c0-34-21.2-63.1-51.2-74.6 3.1-5.2 7.8-9.8 14.9-13.4 16.2-8.2 40.4-10.4 66.1-12.8 42.2-3.9 90-8.4 118.2-43.4 14-17.4 21.1-39.8 21.6-67.9 31.6-10.8 54.4-40.7 54.4-75.9zM80 64c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16zm0 384c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm224-320c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16z"},"unlink":{"viewBox":"0 0 512 512","path":"M304.083 405.907c4.686 4.686 4.686 12.284 0 16.971l-44.674 44.674c-59.263 59.262-155.693 59.266-214.961 0-59.264-59.265-59.264-155.696 0-214.96l44.675-44.675c4.686-4.686 12.284-4.686 16.971 0l39.598 39.598c4.686 4.686 4.686 12.284 0 16.971l-44.675 44.674c-28.072 28.073-28.072 73.75 0 101.823 28.072 28.072 73.75 28.073 101.824 0l44.674-44.674c4.686-4.686 12.284-4.686 16.971 0l39.597 39.598zm-56.568-260.216c4.686 4.686 12.284 4.686 16.971 0l44.674-44.674c28.072-28.075 73.75-28.073 101.824 0 28.072 28.073 28.072 73.75 0 101.823l-44.675 44.674c-4.686 4.686-4.686 12.284 0 16.971l39.598 39.598c4.686 4.686 12.284 4.686 16.971 0l44.675-44.675c59.265-59.265 59.265-155.695 0-214.96-59.266-59.264-155.695-59.264-214.961 0l-44.674 44.674c-4.686 4.686-4.686 12.284 0 16.971l39.597 39.598zm234.828 359.28l22.627-22.627c9.373-9.373 9.373-24.569 0-33.941L63.598 7.029c-9.373-9.373-24.569-9.373-33.941 0L7.029 29.657c-9.373 9.373-9.373 24.569 0 33.941l441.373 441.373c9.373 9.372 24.569 9.372 33.941 0z"},"question":{"viewBox":"0 0 384 512","path":"M202.021 0C122.202 0 70.503 32.703 29.914 91.026c-7.363 10.58-5.093 25.086 5.178 32.874l43.138 32.709c10.373 7.865 25.132 6.026 33.253-4.148 25.049-31.381 43.63-49.449 82.757-49.449 30.764 0 68.816 19.799 68.816 49.631 0 22.552-18.617 34.134-48.993 51.164-35.423 19.86-82.299 44.576-82.299 106.405V320c0 13.255 10.745 24 24 24h72.471c13.255 0 24-10.745 24-24v-5.773c0-42.86 125.268-44.645 125.268-160.627C377.504 66.256 286.902 0 202.021 0zM192 373.459c-38.196 0-69.271 31.075-69.271 69.271 0 38.195 31.075 69.27 69.271 69.27s69.271-31.075 69.271-69.271-31.075-69.27-69.271-69.27z"},"info":{"viewBox":"0 0 192 512","path":"M20 424.229h20V279.771H20c-11.046 0-20-8.954-20-20V212c0-11.046 8.954-20 20-20h112c11.046 0 20 8.954 20 20v212.229h20c11.046 0 20 8.954 20 20V492c0 11.046-8.954 20-20 20H20c-11.046 0-20-8.954-20-20v-47.771c0-11.046 8.954-20 20-20zM96 0C56.235 0 24 32.235 24 72s32.235 72 72 72 72-32.235 72-72S135.764 0 96 0z"},"exclamation":{"viewBox":"0 0 192 512","path":"M176 432c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80zM25.26 25.199l13.6 272C39.499 309.972 50.041 320 62.83 320h66.34c12.789 0 23.331-10.028 23.97-22.801l13.6-272C167.425 11.49 156.496 0 142.77 0H49.23C35.504 0 24.575 11.49 25.26 25.199z"},"superscript":{"viewBox":"0 0 512 512","path":"M395.198 256c3.461-10.526 18.796-21.28 36.265-32.425 16.625-10.605 35.467-22.626 50.341-38.862 17.458-19.054 25.944-40.175 25.944-64.567 0-60.562-50.702-88.146-97.81-88.146-42.491 0-76.378 22.016-94.432 50.447-4.654 7.329-2.592 17.036 4.623 21.865l30.328 20.296c7.032 4.706 16.46 3.084 21.63-3.614 8.022-10.394 18.818-18.225 31.667-18.225 19.387 0 26.266 12.901 26.266 23.948 0 36.159-119.437 57.023-119.437 160.024 0 6.654.561 13.014 1.415 19.331 1.076 7.964 7.834 13.928 15.87 13.928H496c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16H395.198zM272 416c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-62.399a16 16 0 0 1-13.541-7.478l-45.701-72.615c-2.297-3.352-4.422-6.969-6.195-10.209-1.65 3.244-3.647 6.937-5.874 10.582l-44.712 72.147a15.999 15.999 0 0 1-13.6 7.572H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h26.325l56.552-82.709L46.111 256H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h68.806a16 16 0 0 1 13.645 7.644l39.882 65.126c2.072 3.523 4.053 7.171 5.727 10.37 1.777-3.244 3.92-6.954 6.237-10.537l40.332-65.035a16 16 0 0 1 13.598-7.567H272c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-27.979l-52.69 75.671L249.974 416H272z"},"subscript":{"viewBox":"0 0 512 512","path":"M395.198 416c3.461-10.526 18.796-21.28 36.265-32.425 16.625-10.605 35.467-22.626 50.341-38.862 17.458-19.054 25.944-40.175 25.944-64.567 0-60.562-50.702-88.146-97.81-88.146-42.491 0-76.378 22.016-94.432 50.447-4.654 7.329-2.592 17.036 4.623 21.865l30.328 20.296c7.032 4.706 16.46 3.084 21.63-3.614 8.022-10.394 18.818-18.225 31.667-18.225 19.387 0 26.266 12.901 26.266 23.948 0 36.159-119.437 57.023-119.437 160.024 0 6.654.561 13.014 1.415 19.331 1.076 7.964 7.834 13.928 15.87 13.928H496c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16H395.198zM272 256c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-62.399a16 16 0 0 1-13.541-7.478l-45.701-72.615c-2.297-3.352-4.422-6.969-6.195-10.209-1.65 3.244-3.647 6.937-5.874 10.582l-44.712 72.147a15.999 15.999 0 0 1-13.6 7.572H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h26.325l56.552-82.709L46.111 96H16C7.163 96 0 88.837 0 80V48c0-8.837 7.163-16 16-16h68.806a16 16 0 0 1 13.645 7.644l39.882 65.126c2.072 3.523 4.053 7.171 5.727 10.37 1.777-3.244 3.92-6.954 6.237-10.537l40.332-65.035A15.999 15.999 0 0 1 204.226 32H272c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-27.979l-52.69 75.671L249.974 256H272z"},"eraser":{"viewBox":"0 0 512 512","path":"M497.941 273.941c18.745-18.745 18.745-49.137 0-67.882l-160-160c-18.745-18.745-49.136-18.746-67.883 0l-256 256c-18.745 18.745-18.745 49.137 0 67.882l96 96A48.004 48.004 0 0 0 144 480h356c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12H355.883l142.058-142.059zm-302.627-62.627l137.373 137.373L265.373 416H150.628l-80-80 124.686-124.686z"},"puzzle-piece":{"viewBox":"0 0 576 512","path":"M519.442 288.651c-41.519 0-59.5 31.593-82.058 31.593C377.409 320.244 432 144 432 144s-196.288 80-196.288-3.297c0-35.827 36.288-46.25 36.288-85.985C272 19.216 243.885 0 210.539 0c-34.654 0-66.366 18.891-66.366 56.346 0 41.364 31.711 59.277 31.711 81.75C175.885 207.719 0 166.758 0 166.758v333.237s178.635 41.047 178.635-28.662c0-22.473-40-40.107-40-81.471 0-37.456 29.25-56.346 63.577-56.346 33.673 0 61.788 19.216 61.788 54.717 0 39.735-36.288 50.158-36.288 85.985 0 60.803 129.675 25.73 181.23 25.73 0 0-34.725-120.101 25.827-120.101 35.962 0 46.423 36.152 86.308 36.152C556.712 416 576 387.99 576 354.443c0-34.199-18.962-65.792-56.558-65.792z"},"microphone":{"viewBox":"0 0 352 512","path":"M176 352c53.02 0 96-42.98 96-96V96c0-53.02-42.98-96-96-96S80 42.98 80 96v160c0 53.02 42.98 96 96 96zm160-160h-16c-8.84 0-16 7.16-16 16v48c0 74.8-64.49 134.82-140.79 127.38C96.71 376.89 48 317.11 48 250.3V208c0-8.84-7.16-16-16-16H16c-8.84 0-16 7.16-16 16v40.16c0 89.64 63.97 169.55 152 181.69V464H96c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16h-56v-33.77C285.71 418.47 352 344.9 352 256v-48c0-8.84-7.16-16-16-16z"},"microphone-slash":{"viewBox":"0 0 640 512","path":"M633.82 458.1l-157.8-121.96C488.61 312.13 496 285.01 496 256v-48c0-8.84-7.16-16-16-16h-16c-8.84 0-16 7.16-16 16v48c0 17.92-3.96 34.8-10.72 50.2l-26.55-20.52c3.1-9.4 5.28-19.22 5.28-29.67V96c0-53.02-42.98-96-96-96s-96 42.98-96 96v45.36L45.47 3.37C38.49-2.05 28.43-.8 23.01 6.18L3.37 31.45C-2.05 38.42-.8 48.47 6.18 53.9l588.36 454.73c6.98 5.43 17.03 4.17 22.46-2.81l19.64-25.27c5.41-6.97 4.16-17.02-2.82-22.45zM400 464h-56v-33.77c11.66-1.6 22.85-4.54 33.67-8.31l-50.11-38.73c-6.71.4-13.41.87-20.35.2-55.85-5.45-98.74-48.63-111.18-101.85L144 241.31v6.85c0 89.64 63.97 169.55 152 181.69V464h-56c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16z"},"shield-alt":{"viewBox":"0 0 512 512","path":"M496 128c0 221.282-135.934 344.645-221.539 380.308a48 48 0 0 1-36.923 0C130.495 463.713 16 326.487 16 128a48 48 0 0 1 29.539-44.308l192-80a48 48 0 0 1 36.923 0l192 80A48 48 0 0 1 496 128zM256 446.313l.066.034c93.735-46.689 172.497-156.308 175.817-307.729L256 65.333v380.98z"},"fire-extinguisher":{"viewBox":"0 0 448 512","path":"M434.027 26.329l-168 28C254.693 56.218 256 67.8 256 72h-58.332C208.353 36.108 181.446 0 144 0c-39.435 0-66.368 39.676-52.228 76.203-52.039 13.051-75.381 54.213-90.049 90.884-4.923 12.307 1.063 26.274 13.37 31.197 12.317 4.926 26.279-1.075 31.196-13.37C75.058 112.99 106.964 120 168 120v27.076c-41.543 10.862-72 49.235-72 94.129V488c0 13.255 10.745 24 24 24h144c13.255 0 24-10.745 24-24V240c0-44.731-30.596-82.312-72-92.97V120h40c0 2.974-1.703 15.716 10.027 17.671l168 28C441.342 166.89 448 161.25 448 153.834V38.166c0-7.416-6.658-13.056-13.973-11.837zM144 72c-8.822 0-16-7.178-16-16s7.178-16 16-16 16 7.178 16 16-7.178 16-16 16z"},"rocket":{"viewBox":"0 0 512 512","path":"M505.1 19.1C503.8 13 499 8.2 492.9 6.9 460.7 0 435.5 0 410.4 0 307.2 0 245.3 55.2 199.1 128H94.9c-18.2 0-34.8 10.3-42.9 26.5L2.6 253.3c-8 16 3.6 34.7 21.5 34.7h95.1c-5.9 12.8-11.9 25.5-18 37.7-3.1 6.2-1.9 13.6 3 18.5l63.6 63.6c4.9 4.9 12.3 6.1 18.5 3 12.2-6.1 24.9-12 37.7-17.9V488c0 17.8 18.8 29.4 34.7 21.5l98.7-49.4c16.3-8.1 26.5-24.8 26.5-42.9V312.8c72.6-46.3 128-108.4 128-211.1.1-25.2.1-50.4-6.8-82.6zM400 160c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"},"chevron-circle-left":{"viewBox":"0 0 512 512","path":"M256 504C119 504 8 393 8 256S119 8 256 8s248 111 248 248-111 248-248 248zM142.1 273l135.5 135.5c9.4 9.4 24.6 9.4 33.9 0l17-17c9.4-9.4 9.4-24.6 0-33.9L226.9 256l101.6-101.6c9.4-9.4 9.4-24.6 0-33.9l-17-17c-9.4-9.4-24.6-9.4-33.9 0L142.1 239c-9.4 9.4-9.4 24.6 0 34z"},"chevron-circle-right":{"viewBox":"0 0 512 512","path":"M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zm113.9 231L234.4 103.5c-9.4-9.4-24.6-9.4-33.9 0l-17 17c-9.4 9.4-9.4 24.6 0 33.9L285.1 256 183.5 357.6c-9.4 9.4-9.4 24.6 0 33.9l17 17c9.4 9.4 24.6 9.4 33.9 0L369.9 273c9.4-9.4 9.4-24.6 0-34z"},"chevron-circle-up":{"viewBox":"0 0 512 512","path":"M8 256C8 119 119 8 256 8s248 111 248 248-111 248-248 248S8 393 8 256zm231-113.9L103.5 277.6c-9.4 9.4-9.4 24.6 0 33.9l17 17c9.4 9.4 24.6 9.4 33.9 0L256 226.9l101.6 101.6c9.4 9.4 24.6 9.4 33.9 0l17-17c9.4-9.4 9.4-24.6 0-33.9L273 142.1c-9.4-9.4-24.6-9.4-34 0z"},"chevron-circle-down":{"viewBox":"0 0 512 512","path":"M504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zM273 369.9l135.5-135.5c9.4-9.4 9.4-24.6 0-33.9l-17-17c-9.4-9.4-24.6-9.4-33.9 0L256 285.1 154.4 183.5c-9.4-9.4-24.6-9.4-33.9 0l-17 17c-9.4 9.4-9.4 24.6 0 33.9L239 369.9c9.4 9.4 24.6 9.4 34 0z"},"anchor":{"viewBox":"0 0 576 512","path":"M12.971 352h32.394C67.172 454.735 181.944 512 288 512c106.229 0 220.853-57.38 242.635-160h32.394c10.691 0 16.045-12.926 8.485-20.485l-67.029-67.029c-4.686-4.686-12.284-4.686-16.971 0l-67.029 67.029c-7.56 7.56-2.206 20.485 8.485 20.485h35.146c-20.29 54.317-84.963 86.588-144.117 94.015V256h52c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-52v-5.47c37.281-13.178 63.995-48.725 64-90.518C384.005 43.772 341.605.738 289.37.01 235.723-.739 192 42.525 192 96c0 41.798 26.716 77.35 64 90.53V192h-52c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h52v190.015c-58.936-7.399-123.82-39.679-144.117-94.015h35.146c10.691 0 16.045-12.926 8.485-20.485l-67.029-67.029c-4.686-4.686-12.284-4.686-16.971 0L4.485 331.515C-3.074 339.074 2.28 352 12.971 352zM288 64c17.645 0 32 14.355 32 32s-14.355 32-32 32-32-14.355-32-32 14.355-32 32-32z"},"unlock-alt":{"viewBox":"0 0 448 512","path":"M400 256H152V152.9c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v16c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-16C376 68 307.5-.3 223.5 0 139.5.3 72 69.5 72 153.5V256H48c-26.5 0-48 21.5-48 48v160c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zM264 408c0 22.1-17.9 40-40 40s-40-17.9-40-40v-48c0-22.1 17.9-40 40-40s40 17.9 40 40v48z"},"bullseye":{"viewBox":"0 0 496 512","path":"M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm0 432c-101.69 0-184-82.29-184-184 0-101.69 82.29-184 184-184 101.69 0 184 82.29 184 184 0 101.69-82.29 184-184 184zm0-312c-70.69 0-128 57.31-128 128s57.31 128 128 128 128-57.31 128-128-57.31-128-128-128zm0 192c-35.29 0-64-28.71-64-64s28.71-64 64-64 64 28.71 64 64-28.71 64-64 64z"},"ellipsis-h":{"viewBox":"0 0 512 512","path":"M328 256c0 39.8-32.2 72-72 72s-72-32.2-72-72 32.2-72 72-72 72 32.2 72 72zm104-72c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm-352 0c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72z"},"ellipsis-v":{"viewBox":"0 0 192 512","path":"M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z"},"rss-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM112 416c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm157.533 0h-34.335c-6.011 0-11.051-4.636-11.442-10.634-5.214-80.05-69.243-143.92-149.123-149.123-5.997-.39-10.633-5.431-10.633-11.441v-34.335c0-6.535 5.468-11.777 11.994-11.425 110.546 5.974 198.997 94.536 204.964 204.964.352 6.526-4.89 11.994-11.425 11.994zm103.027 0h-34.334c-6.161 0-11.175-4.882-11.427-11.038-5.598-136.535-115.204-246.161-251.76-251.76C68.882 152.949 64 147.935 64 141.774V107.44c0-6.454 5.338-11.664 11.787-11.432 167.83 6.025 302.21 141.191 308.205 308.205.232 6.449-4.978 11.787-11.432 11.787z"},"ticket-alt":{"viewBox":"0 0 576 512","path":"M128 160h320v192H128V160zm400 96c0 26.51 21.49 48 48 48v96c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48v-96c26.51 0 48-21.49 48-48s-21.49-48-48-48v-96c0-26.51 21.49-48 48-48h480c26.51 0 48 21.49 48 48v96c-26.51 0-48 21.49-48 48zm-48-104c0-13.255-10.745-24-24-24H120c-13.255 0-24 10.745-24 24v208c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V152z"},"minus-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM92 296c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h264c6.6 0 12 5.4 12 12v56c0 6.6-5.4 12-12 12H92z"},"level-up-alt":{"viewBox":"0 0 320 512","path":"M313.553 119.669L209.587 7.666c-9.485-10.214-25.676-10.229-35.174 0L70.438 119.669C56.232 134.969 67.062 160 88.025 160H152v272H68.024a11.996 11.996 0 0 0-8.485 3.515l-56 56C-4.021 499.074 1.333 512 12.024 512H208c13.255 0 24-10.745 24-24V160h63.966c20.878 0 31.851-24.969 17.587-40.331z"},"level-down-alt":{"viewBox":"0 0 320 512","path":"M313.553 392.331L209.587 504.334c-9.485 10.214-25.676 10.229-35.174 0L70.438 392.331C56.232 377.031 67.062 352 88.025 352H152V80H68.024a11.996 11.996 0 0 1-8.485-3.515l-56-56C-4.021 12.926 1.333 0 12.024 0H208c13.255 0 24 10.745 24 24v328h63.966c20.878 0 31.851 24.969 17.587 40.331z"},"check-square":{"viewBox":"0 0 448 512","path":"M400 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zm-204.686-98.059l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.248-16.379-6.249-22.628 0L184 302.745l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.25 16.379 6.25 22.628.001z"},"pen":{"viewBox":"0 0 512 512","path":"M290.74 93.24l128.02 128.02-277.99 277.99-114.14 12.6C11.35 513.54-1.56 500.62.14 485.34l12.7-114.22 277.9-277.88zm207.2-19.06l-60.11-60.11c-18.75-18.75-49.16-18.75-67.91 0l-56.55 56.55 128.02 128.02 56.55-56.55c18.75-18.76 18.75-49.16 0-67.91z"},"pen-square":{"viewBox":"0 0 448 512","path":"M400 480H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zM238.1 177.9L102.4 313.6l-6.3 57.1c-.8 7.6 5.6 14.1 13.3 13.3l57.1-6.3L302.2 242c2.3-2.3 2.3-6.1 0-8.5L246.7 178c-2.5-2.4-6.3-2.4-8.6-.1zM345 165.1L314.9 135c-9.4-9.4-24.6-9.4-33.9 0l-23.1 23.1c-2.3 2.3-2.3 6.1 0 8.5l55.5 55.5c2.3 2.3 6.1 2.3 8.5 0L345 199c9.3-9.3 9.3-24.5 0-33.9z"},"external-link-square-alt":{"viewBox":"0 0 448 512","path":"M448 80v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48zm-88 16H248.029c-21.313 0-32.08 25.861-16.971 40.971l31.984 31.987L67.515 364.485c-4.686 4.686-4.686 12.284 0 16.971l31.029 31.029c4.687 4.686 12.285 4.686 16.971 0l195.526-195.526 31.988 31.991C358.058 263.977 384 253.425 384 231.979V120c0-13.255-10.745-24-24-24z"},"share-square":{"viewBox":"0 0 576 512","path":"M568.482 177.448L424.479 313.433C409.3 327.768 384 317.14 384 295.985v-71.963c-144.575.97-205.566 35.113-164.775 171.353 4.483 14.973-12.846 26.567-25.006 17.33C155.252 383.105 120 326.488 120 269.339c0-143.937 117.599-172.5 264-173.312V24.012c0-21.174 25.317-31.768 40.479-17.448l144.003 135.988c10.02 9.463 10.028 25.425 0 34.896zM384 379.128V448H64V128h50.916a11.99 11.99 0 0 0 8.648-3.693c14.953-15.568 32.237-27.89 51.014-37.676C185.708 80.83 181.584 64 169.033 64H48C21.49 64 0 85.49 0 112v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48v-88.806c0-8.288-8.197-14.066-16.011-11.302a71.83 71.83 0 0 1-34.189 3.377c-7.27-1.046-13.8 4.514-13.8 11.859z"},"compass":{"viewBox":"0 0 496 512","path":"M225.38 233.37c-12.5 12.5-12.5 32.76 0 45.25 12.49 12.5 32.76 12.5 45.25 0 12.5-12.5 12.5-32.76 0-45.25-12.5-12.49-32.76-12.49-45.25 0zM248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm126.14 148.05L308.17 300.4a31.938 31.938 0 0 1-15.77 15.77l-144.34 65.97c-16.65 7.61-33.81-9.55-26.2-26.2l65.98-144.35a31.938 31.938 0 0 1 15.77-15.77l144.34-65.97c16.65-7.6 33.8 9.55 26.19 26.2z"},"euro-sign":{"viewBox":"0 0 320 512","path":"M310.706 413.765c-1.314-6.63-7.835-10.872-14.424-9.369-10.692 2.439-27.422 5.413-45.426 5.413-56.763 0-101.929-34.79-121.461-85.449h113.689a12 12 0 0 0 11.708-9.369l6.373-28.36c1.686-7.502-4.019-14.631-11.708-14.631H115.22c-1.21-14.328-1.414-28.287.137-42.245H261.95a12 12 0 0 0 11.723-9.434l6.512-29.755c1.638-7.484-4.061-14.566-11.723-14.566H130.184c20.633-44.991 62.69-75.03 117.619-75.03 14.486 0 28.564 2.25 37.851 4.145 6.216 1.268 12.347-2.498 14.002-8.623l11.991-44.368c1.822-6.741-2.465-13.616-9.326-14.917C290.217 34.912 270.71 32 249.635 32 152.451 32 74.03 92.252 45.075 176H12c-6.627 0-12 5.373-12 12v29.755c0 6.627 5.373 12 12 12h21.569c-1.009 13.607-1.181 29.287-.181 42.245H12c-6.627 0-12 5.373-12 12v28.36c0 6.627 5.373 12 12 12h30.114C67.139 414.692 145.264 480 249.635 480c26.301 0 48.562-4.544 61.101-7.788 6.167-1.595 10.027-7.708 8.788-13.957l-8.818-44.49z"},"pound-sign":{"viewBox":"0 0 320 512","path":"M308 352h-45.495c-6.627 0-12 5.373-12 12v50.848H128V288h84c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-84v-63.556c0-32.266 24.562-57.086 61.792-57.086 23.658 0 45.878 11.505 57.652 18.849 5.151 3.213 11.888 2.051 15.688-2.685l28.493-35.513c4.233-5.276 3.279-13.005-2.119-17.081C273.124 54.56 236.576 32 187.931 32 106.026 32 48 84.742 48 157.961V224H20c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h28v128H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h296c6.627 0 12-5.373 12-12V364c0-6.627-5.373-12-12-12z"},"dollar-sign":{"viewBox":"0 0 288 512","path":"M209.2 233.4l-108-31.6C88.7 198.2 80 186.5 80 173.5c0-16.3 13.2-29.5 29.5-29.5h66.3c12.2 0 24.2 3.7 34.2 10.5 6.1 4.1 14.3 3.1 19.5-2l34.8-34c7.1-6.9 6.1-18.4-1.8-24.5C238 74.8 207.4 64.1 176 64V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48h-2.5C45.8 64-5.4 118.7.5 183.6c4.2 46.1 39.4 83.6 83.8 96.6l102.5 30c12.5 3.7 21.2 15.3 21.2 28.3 0 16.3-13.2 29.5-29.5 29.5h-66.3C100 368 88 364.3 78 357.5c-6.1-4.1-14.3-3.1-19.5 2l-34.8 34c-7.1 6.9-6.1 18.4 1.8 24.5 24.5 19.2 55.1 29.9 86.5 30v48c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-48.2c46.6-.9 90.3-28.6 105.7-72.7 21.5-61.6-14.6-124.8-72.5-141.7z"},"rupee-sign":{"viewBox":"0 0 320 512","path":"M308 96c6.627 0 12-5.373 12-12V44c0-6.627-5.373-12-12-12H12C5.373 32 0 37.373 0 44v44.748c0 6.627 5.373 12 12 12h85.28c27.308 0 48.261 9.958 60.97 27.252H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h158.757c-6.217 36.086-32.961 58.632-74.757 58.632H12c-6.627 0-12 5.373-12 12v53.012c0 3.349 1.4 6.546 3.861 8.818l165.052 152.356a12.001 12.001 0 0 0 8.139 3.182h82.562c10.924 0 16.166-13.408 8.139-20.818L116.871 319.906c76.499-2.34 131.144-53.395 138.318-127.906H308c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-58.69c-3.486-11.541-8.28-22.246-14.252-32H308z"},"yen-sign":{"viewBox":"0 0 384 512","path":"M351.208 32h-65.277a12 12 0 0 0-10.778 6.724l-55.39 113.163c-14.513 34.704-27.133 71.932-27.133 71.932h-1.262s-12.62-37.228-27.133-71.932l-55.39-113.163A11.997 11.997 0 0 0 98.068 32H32.792c-9.057 0-14.85 9.65-10.59 17.643L102.322 200H44c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h88.162L152 293.228V320H44c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h108v92c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-92h108c6.627 0 12-5.373 12-12v-32c0-6.627-5.373-12-12-12H232v-26.772L251.838 256H340c6.627 0 12-5.373 12-12v-32c0-6.627-5.373-12-12-12h-58.322l80.12-150.357C366.058 41.65 360.266 32 351.208 32z"},"ruble-sign":{"viewBox":"0 0 384 512","path":"M239.36 320C324.48 320 384 260.542 384 175.071S324.48 32 239.36 32H76c-6.627 0-12 5.373-12 12v206.632H12c-6.627 0-12 5.373-12 12V308c0 6.627 5.373 12 12 12h52v32H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h52v52c0 6.627 5.373 12 12 12h58.56c6.627 0 12-5.373 12-12v-52H308c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12H146.56v-32h92.8zm-92.8-219.252h78.72c46.72 0 74.88 29.11 74.88 74.323 0 45.832-28.16 75.561-76.16 75.561h-77.44V100.748z"},"won-sign":{"viewBox":"0 0 576 512","path":"M564 192c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-48.028l18.572-80.61c1.732-7.518-3.978-14.694-11.693-14.694h-46.107a11.998 11.998 0 0 0-11.736 9.5L450.73 128H340.839l-19.725-85.987a12 12 0 0 0-11.696-9.317H265.43a12 12 0 0 0-11.687 9.277L233.696 128H124.975L107.5 42.299a12 12 0 0 0-11.758-9.602H53.628c-7.686 0-13.39 7.124-11.709 14.624L60 128H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h62.342l7.171 32H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h83.856l40.927 182.624A12 12 0 0 0 148.492 480h56.767c5.583 0 10.428-3.85 11.689-9.288L259.335 288h55.086l42.386 182.712A12 12 0 0 0 368.496 480h56.826a12 12 0 0 0 11.694-9.306L479.108 288H564c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-70.146l7.373-32H564zm-425.976 0h80.757l-7.457 32h-66.776l-6.524-32zm45.796 150.029c-6.194 25.831-6.758 47.25-7.321 47.25h-1.126s-1.689-22.05-6.758-47.25L157.599 288h38.812l-12.591 54.029zM274.182 224l1.996-8.602c1.856-7.962 3.457-15.968 4.803-23.398h11.794c1.347 7.43 2.947 15.436 4.803 23.398l1.996 8.602h-25.392zm130.959 118.029c-5.068 25.2-6.758 47.25-6.758 47.25h-1.126c-.563 0-1.126-21.42-7.321-47.25L377.542 288h39.107l-11.508 54.029zM430.281 224h-67.42l-7.34-32h81.577l-6.817 32z"},"file":{"viewBox":"0 0 384 512","path":"M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm160-14.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"},"sort-alpha-down":{"viewBox":"0 0 448 512","path":"M187.298 395.314l-79.984 80.002c-6.248 6.247-16.383 6.245-22.627 0L4.705 395.314C-5.365 385.244 1.807 368 16.019 368H64V48c0-8.837 7.163-16 16-16h32c8.837 0 16 7.163 16 16v320h47.984c14.241 0 21.363 17.264 11.314 27.314zm119.075-180.007A12 12 0 0 1 294.838 224h-35.717c-8.22 0-14.007-8.078-11.362-15.861l57.096-168A12 12 0 0 1 316.217 32h39.566c5.139 0 9.708 3.273 11.362 8.139l57.096 168C426.886 215.922 421.1 224 412.879 224h-35.735a12 12 0 0 1-11.515-8.622l-8.301-28.299h-42.863l-8.092 28.228zm22.857-78.697h13.367l-6.6-22.937-6.767 22.937zm12.575 287.323l67.451-95.698a12 12 0 0 0 2.192-6.913V300c0-6.627-5.373-12-12-12H274.522c-6.627 0-12 5.373-12 12v28.93c0 6.627 5.373 12 12 12h56.469c-.739.991-1.497 2.036-2.27 3.133l-67.203 95.205a12.001 12.001 0 0 0-2.196 6.92V468c0 6.627 5.373 12 12 12h129.355c6.627 0 12-5.373 12-12v-28.93c0-6.627-5.373-12-12-12h-61.146c.74-.993 1.5-2.039 2.274-3.137z"},"sort-alpha-up":{"viewBox":"0 0 448 512","path":"M4.702 116.686l79.984-80.002c6.248-6.247 16.383-6.245 22.627 0l79.981 80.002c10.07 10.07 2.899 27.314-11.314 27.314H128v320c0 8.837-7.163 16-16 16H80c-8.837 0-16-7.163-16-16V144H16.016c-14.241 0-21.363-17.264-11.314-27.314zm301.671 98.621A12 12 0 0 1 294.838 224h-35.717c-8.22 0-14.007-8.078-11.362-15.861l57.096-168A12 12 0 0 1 316.217 32h39.566c5.139 0 9.708 3.273 11.362 8.139l57.096 168C426.886 215.922 421.1 224 412.879 224h-35.735a12 12 0 0 1-11.515-8.622l-8.301-28.299h-42.863l-8.092 28.228zm22.857-78.697h13.367l-6.6-22.937-6.767 22.937zm12.575 287.323l67.451-95.698a12 12 0 0 0 2.192-6.913V300c0-6.627-5.373-12-12-12H274.522c-6.627 0-12 5.373-12 12v28.93c0 6.627 5.373 12 12 12h56.469c-.739.991-1.497 2.036-2.27 3.133l-67.203 95.205a12.001 12.001 0 0 0-2.196 6.92V468c0 6.627 5.373 12 12 12h129.355c6.627 0 12-5.373 12-12v-28.93c0-6.627-5.373-12-12-12h-61.146c.74-.993 1.5-2.039 2.274-3.137z"},"sort-amount-down":{"viewBox":"0 0 512 512","path":"M187.298 395.314l-79.984 80.002c-6.248 6.247-16.383 6.245-22.627 0L4.705 395.314C-5.365 385.244 1.807 368 16.019 368H64V48c0-8.837 7.163-16 16-16h32c8.837 0 16 7.163 16 16v320h47.984c14.241 0 21.363 17.264 11.314 27.314zM240 96h256c8.837 0 16-7.163 16-16V48c0-8.837-7.163-16-16-16H240c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16zm-16 112v-32c0-8.837 7.163-16 16-16h192c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H240c-8.837 0-16-7.163-16-16zm0 256v-32c0-8.837 7.163-16 16-16h64c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-64c-8.837 0-16-7.163-16-16zm0-128v-32c0-8.837 7.163-16 16-16h128c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H240c-8.837 0-16-7.163-16-16z"},"sort-amount-up":{"viewBox":"0 0 512 512","path":"M4.702 116.686l79.984-80.002c6.248-6.247 16.383-6.245 22.627 0l79.981 80.002c10.07 10.07 2.899 27.314-11.314 27.314H128v320c0 8.837-7.163 16-16 16H80c-8.837 0-16-7.163-16-16V144H16.016c-14.241 0-21.363-17.264-11.314-27.314zM240 96h256c8.837 0 16-7.163 16-16V48c0-8.837-7.163-16-16-16H240c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16zm-16 112v-32c0-8.837 7.163-16 16-16h192c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H240c-8.837 0-16-7.163-16-16zm0 256v-32c0-8.837 7.163-16 16-16h64c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-64c-8.837 0-16-7.163-16-16zm0-128v-32c0-8.837 7.163-16 16-16h128c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H240c-8.837 0-16-7.163-16-16z"},"sort-numeric-down":{"viewBox":"0 0 448 512","path":"M308.811 113.787l-19.448-20.795c-4.522-4.836-4.274-12.421.556-16.95l43.443-40.741a11.999 11.999 0 0 1 8.209-3.247h31.591c6.627 0 12 5.373 12 12v127.07h25.66c6.627 0 12 5.373 12 12v28.93c0 6.627-5.373 12-12 12H301.649c-6.627 0-12-5.373-12-12v-28.93c0-6.627 5.373-12 12-12h25.414v-57.938c-7.254 6.58-14.211 4.921-18.252.601zm-30.57 238.569c0-32.653 23.865-67.356 68.094-67.356 38.253 0 79.424 28.861 79.424 92.228 0 51.276-32.237 105.772-91.983 105.772-17.836 0-30.546-3.557-38.548-6.781-5.79-2.333-8.789-8.746-6.922-14.703l9.237-29.48c2.035-6.496 9.049-9.983 15.467-7.716 13.029 4.602 27.878 5.275 38.103-4.138-38.742 5.072-72.872-25.36-72.872-67.826zm92.273 19.338c0-22.285-15.302-36.505-25.835-36.505-8.642 0-13.164 7.965-13.164 15.832 0 5.669 1.815 24.168 25.168 24.168 9.973 0 13.377-2.154 13.744-2.731.021-.046.087-.291.087-.764zM175.984 368H128V48c0-8.837-7.163-16-16-16H80c-8.837 0-16 7.163-16 16v320H16.019c-14.212 0-21.384 17.244-11.314 27.314l79.981 80.002c6.245 6.245 16.38 6.247 22.627 0l79.984-80.002c10.05-10.05 2.928-27.314-11.313-27.314z"},"sort-numeric-up":{"viewBox":"0 0 448 512","path":"M308.811 113.787l-19.448-20.795c-4.522-4.836-4.274-12.421.556-16.95l43.443-40.741a11.999 11.999 0 0 1 8.209-3.247h31.591c6.627 0 12 5.373 12 12v127.07h25.66c6.627 0 12 5.373 12 12v28.93c0 6.627-5.373 12-12 12H301.649c-6.627 0-12-5.373-12-12v-28.93c0-6.627 5.373-12 12-12h25.414v-57.938c-7.254 6.58-14.211 4.921-18.252.601zm-30.57 238.569c0-32.653 23.865-67.356 68.094-67.356 38.253 0 79.424 28.861 79.424 92.228 0 51.276-32.237 105.772-91.983 105.772-17.836 0-30.546-3.557-38.548-6.781-5.79-2.333-8.789-8.746-6.922-14.703l9.237-29.48c2.035-6.496 9.049-9.983 15.467-7.716 13.029 4.602 27.878 5.275 38.103-4.138-38.742 5.072-72.872-25.36-72.872-67.826zm92.273 19.338c0-22.285-15.302-36.505-25.835-36.505-8.642 0-13.164 7.965-13.164 15.832 0 5.669 1.815 24.168 25.168 24.168 9.973 0 13.377-2.154 13.744-2.731.021-.046.087-.291.087-.764zM16.016 144H64v320c0 8.837 7.163 16 16 16h32c8.837 0 16-7.163 16-16V144h47.981c14.212 0 21.384-17.244 11.314-27.314l-79.981-80.002c-6.245-6.245-16.38-6.247-22.627 0L4.702 116.686C-5.347 126.736 1.775 144 16.016 144z"},"thumbs-up":{"viewBox":"0 0 512 512","path":"M104 224H24c-13.255 0-24 10.745-24 24v240c0 13.255 10.745 24 24 24h80c13.255 0 24-10.745 24-24V248c0-13.255-10.745-24-24-24zM64 472c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24zM384 81.452c0 42.416-25.97 66.208-33.277 94.548h101.723c33.397 0 59.397 27.746 59.553 58.098.084 17.938-7.546 37.249-19.439 49.197l-.11.11c9.836 23.337 8.237 56.037-9.308 79.469 8.681 25.895-.069 57.704-16.382 74.757 4.298 17.598 2.244 32.575-6.148 44.632C440.202 511.587 389.616 512 346.839 512l-2.845-.001c-48.287-.017-87.806-17.598-119.56-31.725-15.957-7.099-36.821-15.887-52.651-16.178-6.54-.12-11.783-5.457-11.783-11.998v-213.77c0-3.2 1.282-6.271 3.558-8.521 39.614-39.144 56.648-80.587 89.117-113.111 14.804-14.832 20.188-37.236 25.393-58.902C282.515 39.293 291.817 0 312 0c24 0 72 8 72 81.452z"},"thumbs-down":{"viewBox":"0 0 512 512","path":"M0 56v240c0 13.255 10.745 24 24 24h80c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H24C10.745 32 0 42.745 0 56zm40 200c0-13.255 10.745-24 24-24s24 10.745 24 24-10.745 24-24 24-24-10.745-24-24zm272 256c-20.183 0-29.485-39.293-33.931-57.795-5.206-21.666-10.589-44.07-25.393-58.902-32.469-32.524-49.503-73.967-89.117-113.111a11.98 11.98 0 0 1-3.558-8.521V59.901c0-6.541 5.243-11.878 11.783-11.998 15.831-.29 36.694-9.079 52.651-16.178C256.189 17.598 295.709.017 343.995 0h2.844c42.777 0 93.363.413 113.774 29.737 8.392 12.057 10.446 27.034 6.148 44.632 16.312 17.053 25.063 48.863 16.382 74.757 17.544 23.432 19.143 56.132 9.308 79.469l.11.11c11.893 11.949 19.523 31.259 19.439 49.197-.156 30.352-26.157 58.098-59.553 58.098H350.723C358.03 364.34 384 388.132 384 430.548 384 504 336 512 312 512z"},"long-arrow-alt-down":{"viewBox":"0 0 256 512","path":"M168 345.941V44c0-6.627-5.373-12-12-12h-56c-6.627 0-12 5.373-12 12v301.941H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.569 9.373 33.941 0l86.059-86.059c15.119-15.119 4.411-40.971-16.971-40.971H168z"},"long-arrow-alt-up":{"viewBox":"0 0 256 512","path":"M88 166.059V468c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12V166.059h46.059c21.382 0 32.09-25.851 16.971-40.971l-86.059-86.059c-9.373-9.373-24.569-9.373-33.941 0l-86.059 86.059c-15.119 15.119-4.411 40.971 16.971 40.971H88z"},"long-arrow-alt-left":{"viewBox":"0 0 448 512","path":"M134.059 296H436c6.627 0 12-5.373 12-12v-56c0-6.627-5.373-12-12-12H134.059v-46.059c0-21.382-25.851-32.09-40.971-16.971L7.029 239.029c-9.373 9.373-9.373 24.569 0 33.941l86.059 86.059c15.119 15.119 40.971 4.411 40.971-16.971V296z"},"long-arrow-alt-right":{"viewBox":"0 0 448 512","path":"M313.941 216H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h301.941v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.569 0-33.941l-86.059-86.059c-15.119-15.119-40.971-4.411-40.971 16.971V216z"},"female":{"viewBox":"0 0 256 512","path":"M128 0c35.346 0 64 28.654 64 64s-28.654 64-64 64c-35.346 0-64-28.654-64-64S92.654 0 128 0m119.283 354.179l-48-192A24 24 0 0 0 176 144h-11.36c-22.711 10.443-49.59 10.894-73.28 0H80a24 24 0 0 0-23.283 18.179l-48 192C4.935 369.305 16.383 384 32 384h56v104c0 13.255 10.745 24 24 24h32c13.255 0 24-10.745 24-24V384h56c15.591 0 27.071-14.671 23.283-29.821z"},"male":{"viewBox":"0 0 192 512","path":"M96 0c35.346 0 64 28.654 64 64s-28.654 64-64 64-64-28.654-64-64S60.654 0 96 0m48 144h-11.36c-22.711 10.443-49.59 10.894-73.28 0H48c-26.51 0-48 21.49-48 48v136c0 13.255 10.745 24 24 24h16v136c0 13.255 10.745 24 24 24h64c13.255 0 24-10.745 24-24V352h16c13.255 0 24-10.745 24-24V192c0-26.51-21.49-48-48-48z"},"archive":{"viewBox":"0 0 512 512","path":"M32 448c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V160H32v288zm160-212c0-6.6 5.4-12 12-12h104c6.6 0 12 5.4 12 12v8c0 6.6-5.4 12-12 12H204c-6.6 0-12-5.4-12-12v-8zM480 32H32C14.3 32 0 46.3 0 64v48c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16V64c0-17.7-14.3-32-32-32z"},"bug":{"viewBox":"0 0 512 512","path":"M511.988 288.9c-.478 17.43-15.217 31.1-32.653 31.1H424v16c0 21.864-4.882 42.584-13.6 61.145l60.228 60.228c12.496 12.497 12.496 32.758 0 45.255-12.498 12.497-32.759 12.496-45.256 0l-54.736-54.736C345.886 467.965 314.351 480 280 480V236c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v244c-34.351 0-65.886-12.035-90.636-32.108l-54.736 54.736c-12.498 12.497-32.759 12.496-45.256 0-12.496-12.497-12.496-32.758 0-45.255l60.228-60.228C92.882 378.584 88 357.864 88 336v-16H32.666C15.23 320 .491 306.33.013 288.9-.484 270.816 14.028 256 32 256h56v-58.745l-46.628-46.628c-12.496-12.497-12.496-32.758 0-45.255 12.498-12.497 32.758-12.497 45.256 0L141.255 160h229.489l54.627-54.627c12.498-12.497 32.758-12.497 45.256 0 12.496 12.497 12.496 32.758 0 45.255L424 197.255V256h56c17.972 0 32.484 14.816 31.988 32.9zM257 0c-61.856 0-112 50.144-112 112h224C369 50.144 318.856 0 257 0z"},"arrow-circle-right":{"viewBox":"0 0 512 512","path":"M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zm-28.9 143.6l75.5 72.4H120c-13.3 0-24 10.7-24 24v16c0 13.3 10.7 24 24 24h182.6l-75.5 72.4c-9.7 9.3-9.9 24.8-.4 34.3l11 10.9c9.4 9.4 24.6 9.4 33.9 0L404.3 273c9.4-9.4 9.4-24.6 0-33.9L271.6 106.3c-9.4-9.4-24.6-9.4-33.9 0l-11 10.9c-9.5 9.6-9.3 25.1.4 34.4z"},"arrow-circle-left":{"viewBox":"0 0 512 512","path":"M256 504C119 504 8 393 8 256S119 8 256 8s248 111 248 248-111 248-248 248zm28.9-143.6L209.4 288H392c13.3 0 24-10.7 24-24v-16c0-13.3-10.7-24-24-24H209.4l75.5-72.4c9.7-9.3 9.9-24.8.4-34.3l-11-10.9c-9.4-9.4-24.6-9.4-33.9 0L107.7 239c-9.4 9.4-9.4 24.6 0 33.9l132.7 132.7c9.4 9.4 24.6 9.4 33.9 0l11-10.9c9.5-9.5 9.3-25-.4-34.3z"},"wheelchair":{"viewBox":"0 0 512 512","path":"M496.101 385.669l14.227 28.663c3.929 7.915.697 17.516-7.218 21.445l-65.465 32.886c-16.049 7.967-35.556 1.194-43.189-15.055L331.679 320H192c-15.925 0-29.426-11.71-31.679-27.475C126.433 55.308 128.38 70.044 128 64c0-36.358 30.318-65.635 67.052-63.929 33.271 1.545 60.048 28.905 60.925 62.201.868 32.933-23.152 60.423-54.608 65.039l4.67 32.69H336c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H215.182l4.572 32H352a32 32 0 0 1 28.962 18.392L438.477 396.8l36.178-18.349c7.915-3.929 17.517-.697 21.446 7.218zM311.358 352h-24.506c-7.788 54.204-54.528 96-110.852 96-61.757 0-112-50.243-112-112 0-41.505 22.694-77.809 56.324-97.156-3.712-25.965-6.844-47.86-9.488-66.333C45.956 198.464 0 261.963 0 336c0 97.047 78.953 176 176 176 71.87 0 133.806-43.308 161.11-105.192L311.358 352z"},"lira-sign":{"viewBox":"0 0 384 512","path":"M371.994 256h-48.019C317.64 256 312 260.912 312 267.246 312 368 230.179 416 144 416V256.781l134.603-29.912A12 12 0 0 0 288 215.155v-40.976c0-7.677-7.109-13.38-14.603-11.714L144 191.219V160.78l134.603-29.912A12 12 0 0 0 288 119.154V78.179c0-7.677-7.109-13.38-14.603-11.714L144 95.219V44c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v68.997L9.397 125.131A12 12 0 0 0 0 136.845v40.976c0 7.677 7.109 13.38 14.603 11.714L64 178.558v30.439L9.397 221.131A12 12 0 0 0 0 232.845v40.976c0 7.677 7.109 13.38 14.603 11.714L64 274.558V468c0 6.627 5.373 12 12 12h79.583c134.091 0 223.255-77.834 228.408-211.592.261-6.782-5.211-12.408-11.997-12.408z"},"space-shuttle":{"viewBox":"0 0 640 512","path":"M592.604 208.244C559.735 192.836 515.777 184 472 184H186.327c-4.952-6.555-10.585-11.978-16.72-16H376C229.157 137.747 219.403 32 96.003 32H96v128H80V32c-26.51 0-48 28.654-48 64v64c-23.197 0-32 10.032-32 24v40c0 13.983 8.819 24 32 24v16c-23.197 0-32 10.032-32 24v40c0 13.983 8.819 24 32 24v64c0 35.346 21.49 64 48 64V352h16v128h.003c123.4 0 133.154-105.747 279.997-136H169.606c6.135-4.022 11.768-9.445 16.72-16H472c43.777 0 87.735-8.836 120.604-24.244C622.282 289.845 640 271.992 640 256s-17.718-33.845-47.396-47.756zM488 296a8 8 0 0 1-8-8v-64a8 8 0 0 1 8-8c31.909 0 31.942 80 0 80z"},"envelope-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM178.117 262.104C87.429 196.287 88.353 196.121 64 177.167V152c0-13.255 10.745-24 24-24h272c13.255 0 24 10.745 24 24v25.167c-24.371 18.969-23.434 19.124-114.117 84.938-10.5 7.655-31.392 26.12-45.883 25.894-14.503.218-35.367-18.227-45.883-25.895zM384 217.775V360c0 13.255-10.745 24-24 24H88c-13.255 0-24-10.745-24-24V217.775c13.958 10.794 33.329 25.236 95.303 70.214 14.162 10.341 37.975 32.145 64.694 32.01 26.887.134 51.037-22.041 64.72-32.025 61.958-44.965 81.325-59.406 95.283-70.199z"},"university":{"viewBox":"0 0 512 512","path":"M496 128v16a8 8 0 0 1-8 8h-24v12c0 6.627-5.373 12-12 12H60c-6.627 0-12-5.373-12-12v-12H24a8 8 0 0 1-8-8v-16a8 8 0 0 1 4.941-7.392l232-88a7.996 7.996 0 0 1 6.118 0l232 88A8 8 0 0 1 496 128zm-24 304H40c-13.255 0-24 10.745-24 24v16a8 8 0 0 0 8 8h464a8 8 0 0 0 8-8v-16c0-13.255-10.745-24-24-24zM96 192v192H60c-6.627 0-12 5.373-12 12v20h416v-20c0-6.627-5.373-12-12-12h-36V192h-64v192h-64V192h-64v192h-64V192H96z"},"graduation-cap":{"viewBox":"0 0 640 512","path":"M622.34 153.2L343.4 67.5c-15.2-4.67-31.6-4.67-46.79 0L17.66 153.2c-23.54 7.23-23.54 38.36 0 45.59l48.63 14.94c-10.67 13.19-17.23 29.28-17.88 46.9C38.78 266.15 32 276.11 32 288c0 10.78 5.68 19.85 13.86 25.65L20.33 428.53C18.11 438.52 25.71 448 35.94 448h56.11c10.24 0 17.84-9.48 15.62-19.47L82.14 313.65C90.32 307.85 96 298.78 96 288c0-11.57-6.47-21.25-15.66-26.87.76-15.02 8.44-28.3 20.69-36.72L296.6 284.5c9.06 2.78 26.44 6.25 46.79 0l278.95-85.7c23.55-7.24 23.55-38.36 0-45.6zM352.79 315.09c-28.53 8.76-52.84 3.92-65.59 0l-145.02-44.55L128 384c0 35.35 85.96 64 192 64s192-28.65 192-64l-14.18-113.47-145.03 44.56z"},"language":{"viewBox":"0 0 640 512","path":"M304 416H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h280v320zm-120.676-72.622A12 12 0 0 0 194.839 352h22.863c8.22 0 14.007-8.078 11.362-15.861L171.61 167.085a12 12 0 0 0-11.362-8.139h-32.489a12.001 12.001 0 0 0-11.362 8.139L58.942 336.139C56.297 343.922 62.084 352 70.304 352h22.805a12 12 0 0 0 11.535-8.693l9.118-31.807h60.211l9.351 31.878zm-39.051-140.42s4.32 21.061 7.83 33.21l10.8 37.531h-38.07l11.07-37.531c3.51-12.15 7.83-33.21 7.83-33.21h.54zM616 416H336V96h280c13.255 0 24 10.745 24 24v272c0 13.255-10.745 24-24 24zm-36-228h-64v-16c0-6.627-5.373-12-12-12h-16c-6.627 0-12 5.373-12 12v16h-64c-6.627 0-12 5.373-12 12v16c0 6.627 5.373 12 12 12h114.106c-6.263 14.299-16.518 28.972-30.023 43.206-6.56-6.898-12.397-13.91-17.365-20.933-3.639-5.144-10.585-6.675-15.995-3.446l-7.28 4.346-6.498 3.879c-5.956 3.556-7.693 11.421-3.735 17.117 6.065 8.729 13.098 17.336 20.984 25.726-8.122 6.226-16.841 12.244-26.103 17.964-5.521 3.41-7.381 10.556-4.162 16.19l7.941 13.896c3.362 5.883 10.935 7.826 16.706 4.276 12.732-7.831 24.571-16.175 35.443-24.891 10.917 8.761 22.766 17.102 35.396 24.881 5.774 3.556 13.353 1.618 16.717-4.27l7.944-13.903c3.213-5.623 1.37-12.76-4.135-16.171a312.737 312.737 0 0 1-26.06-18.019c21.024-22.425 35.768-46.289 42.713-69.85H580c6.627 0 12-5.373 12-12v-16c0-6.625-5.373-11.998-12-11.998z"},"fax":{"viewBox":"0 0 512 512","path":"M64 128H32c-17.67 0-32 14.33-32 32v320c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V160c0-17.67-14.33-32-32-32zm416 32V77.25c0-8.49-3.37-16.62-9.37-22.63L425.37 9.37c-6-6-14.14-9.37-22.63-9.37H160c-17.67 0-32 14.33-32 32v448c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32V192c0-17.67-14.33-32-32-32zM288 432c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v32zm0-128c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v32zm128 128c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v32zm0-128c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v32zm16-112H176V48h208v32c0 8.84 7.16 16 16 16h32v96z"},"building":{"viewBox":"0 0 448 512","path":"M436 480h-20V24c0-13.255-10.745-24-24-24H56C42.745 0 32 10.745 32 24v456H12c-6.627 0-12 5.373-12 12v20h448v-20c0-6.627-5.373-12-12-12zM128 76c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12V76zm0 96c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12v-40zm52 148h-40c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12zm76 160h-64v-84c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v84zm64-172c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40zm0-96c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40zm0-96c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12V76c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40z"},"child":{"viewBox":"0 0 384 512","path":"M120 72c0-39.765 32.235-72 72-72s72 32.235 72 72c0 39.764-32.235 72-72 72s-72-32.236-72-72zm254.627 1.373c-12.496-12.497-32.758-12.497-45.254 0L242.745 160H141.254L54.627 73.373c-12.496-12.497-32.758-12.497-45.254 0-12.497 12.497-12.497 32.758 0 45.255L104 213.254V480c0 17.673 14.327 32 32 32h16c17.673 0 32-14.327 32-32V368h16v112c0 17.673 14.327 32 32 32h16c17.673 0 32-14.327 32-32V213.254l94.627-94.627c12.497-12.497 12.497-32.757 0-45.254z"},"paw":{"viewBox":"0 0 512 512","path":"M256 224c-79.41 0-192 122.76-192 200.25 0 34.9 26.81 55.75 71.74 55.75 48.84 0 81.09-25.08 120.26-25.08 39.51 0 71.85 25.08 120.26 25.08 44.93 0 71.74-20.85 71.74-55.75C448 346.76 335.41 224 256 224zm-147.28-12.61c-10.4-34.65-42.44-57.09-71.56-50.13-29.12 6.96-44.29 40.69-33.89 75.34 10.4 34.65 42.44 57.09 71.56 50.13 29.12-6.96 44.29-40.69 33.89-75.34zm84.72-20.78c30.94-8.14 46.42-49.94 34.58-93.36s-46.52-72.01-77.46-63.87-46.42 49.94-34.58 93.36c11.84 43.42 46.53 72.02 77.46 63.87zm281.39-29.34c-29.12-6.96-61.15 15.48-71.56 50.13-10.4 34.65 4.77 68.38 33.89 75.34 29.12 6.96 61.15-15.48 71.56-50.13 10.4-34.65-4.77-68.38-33.89-75.34zm-156.27 29.34c30.94 8.14 65.62-20.45 77.46-63.87 11.84-43.42-3.64-85.21-34.58-93.36s-65.62 20.45-77.46 63.87c-11.84 43.42 3.64 85.22 34.58 93.36z"},"utensil-spoon":{"viewBox":"0 0 512 512","path":"M480.1 31.9c-55-55.1-164.9-34.5-227.8 28.5-49.3 49.3-55.1 110-28.8 160.4L9 413.2c-11.6 10.5-12.1 28.5-1 39.5L59.3 504c11 11 29.1 10.5 39.5-1.1l192.4-214.4c50.4 26.3 111.1 20.5 160.4-28.8 63-62.9 83.6-172.8 28.5-227.8z"},"cube":{"viewBox":"0 0 512 512","path":"M239.1 6.3l-208 78c-18.7 7-31.1 25-31.1 45v225.1c0 18.2 10.3 34.8 26.5 42.9l208 104c13.5 6.8 29.4 6.8 42.9 0l208-104c16.3-8.1 26.5-24.8 26.5-42.9V129.3c0-20-12.4-37.9-31.1-44.9l-208-78C262 2.2 250 2.2 239.1 6.3zM256 68.4l192 72v1.1l-192 78-192-78v-1.1l192-72zm32 356V275.5l160-65v133.9l-160 80z"},"cubes":{"viewBox":"0 0 512 512","path":"M488.6 250.2L392 214V105.5c0-15-9.3-28.4-23.4-33.7l-100-37.5c-8.1-3.1-17.1-3.1-25.3 0l-100 37.5c-14.1 5.3-23.4 18.7-23.4 33.7V214l-96.6 36.2C9.3 255.5 0 268.9 0 283.9V394c0 13.6 7.7 26.1 19.9 32.2l100 50c10.1 5.1 22.1 5.1 32.2 0l103.9-52 103.9 52c10.1 5.1 22.1 5.1 32.2 0l100-50c12.2-6.1 19.9-18.6 19.9-32.2V283.9c0-15-9.3-28.4-23.4-33.7zM358 214.8l-85 31.9v-68.2l85-37v73.3zM154 104.1l102-38.2 102 38.2v.6l-102 41.4-102-41.4v-.6zm84 291.1l-85 42.5v-79.1l85-38.8v75.4zm0-112l-102 41.4-102-41.4v-.6l102-38.2 102 38.2v.6zm240 112l-85 42.5v-79.1l85-38.8v75.4zm0-112l-102 41.4-102-41.4v-.6l102-38.2 102 38.2v.6z"},"recycle":{"viewBox":"0 0 512 512","path":"M184.561 261.903c3.232 13.997-12.123 24.635-24.068 17.168l-40.736-25.455-50.867 81.402C55.606 356.273 70.96 384 96.012 384H148c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12H96.115c-75.334 0-121.302-83.048-81.408-146.88l50.822-81.388-40.725-25.448c-12.081-7.547-8.966-25.961 4.879-29.158l110.237-25.45c8.611-1.988 17.201 3.381 19.189 11.99l25.452 110.237zm98.561-182.915l41.289 66.076-40.74 25.457c-12.051 7.528-9 25.953 4.879 29.158l110.237 25.45c8.672 1.999 17.215-3.438 19.189-11.99l25.45-110.237c3.197-13.844-11.99-24.719-24.068-17.168l-40.687 25.424-41.263-66.082c-37.521-60.033-125.209-60.171-162.816 0l-17.963 28.766c-3.51 5.62-1.8 13.021 3.82 16.533l33.919 21.195c5.62 3.512 13.024 1.803 16.536-3.817l17.961-28.743c12.712-20.341 41.973-19.676 54.257-.022zM497.288 301.12l-27.515-44.065c-3.511-5.623-10.916-7.334-16.538-3.821l-33.861 21.159c-5.62 3.512-7.33 10.915-3.818 16.536l27.564 44.112c13.257 21.211-2.057 48.96-27.136 48.96H320V336.02c0-14.213-17.242-21.383-27.313-11.313l-80 79.981c-6.249 6.248-6.249 16.379 0 22.627l80 79.989C302.689 517.308 320 510.3 320 495.989V448h95.88c75.274 0 121.335-82.997 81.408-146.88z"},"car":{"viewBox":"0 0 512 512","path":"M499.99 176h-59.87l-16.64-41.6C406.38 91.63 365.57 64 319.5 64h-127c-46.06 0-86.88 27.63-103.99 70.4L71.87 176H12.01C4.2 176-1.53 183.34.37 190.91l6 24C7.7 220.25 12.5 224 18.01 224h20.07C24.65 235.73 16 252.78 16 272v48c0 16.12 6.16 30.67 16 41.93V416c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h256v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-54.07c9.84-11.25 16-25.8 16-41.93v-48c0-19.22-8.65-36.27-22.07-48H494c5.51 0 10.31-3.75 11.64-9.09l6-24c1.89-7.57-3.84-14.91-11.65-14.91zm-352.06-17.83c7.29-18.22 24.94-30.17 44.57-30.17h127c19.63 0 37.28 11.95 44.57 30.17L384 208H128l19.93-49.83zM96 319.8c-19.2 0-32-12.76-32-31.9S76.8 256 96 256s48 28.71 48 47.85-28.8 15.95-48 15.95zm320 0c-19.2 0-48 3.19-48-15.95S396.8 256 416 256s32 12.76 32 31.9-12.8 31.9-32 31.9z"},"taxi":{"viewBox":"0 0 512 512","path":"M462 241.64l-22-84.84c-9.6-35.2-41.6-60.8-76.8-60.8H352V64c0-17.67-14.33-32-32-32H192c-17.67 0-32 14.33-32 32v32h-11.2c-35.2 0-67.2 25.6-76.8 60.8l-22 84.84C21.41 248.04 0 273.47 0 304v48c0 23.63 12.95 44.04 32 55.12V448c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h256v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-40.88c19.05-11.09 32-31.5 32-55.12v-48c0-30.53-21.41-55.96-50-62.36zM96 352c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm20.55-112l17.2-66.36c2.23-8.16 9.59-13.64 15.06-13.64h214.4c5.47 0 12.83 5.48 14.85 12.86L395.45 240h-278.9zM416 352c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"},"tree":{"viewBox":"0 0 384 512","path":"M378.31 378.49L298.42 288h30.63c9.01 0 16.98-5 20.78-13.06 3.8-8.04 2.55-17.26-3.28-24.05L268.42 160h28.89c9.1 0 17.3-5.35 20.86-13.61 3.52-8.13 1.86-17.59-4.24-24.08L203.66 4.83c-6.03-6.45-17.28-6.45-23.32 0L70.06 122.31c-6.1 6.49-7.75 15.95-4.24 24.08C69.38 154.65 77.59 160 86.69 160h28.89l-78.14 90.91c-5.81 6.78-7.06 15.99-3.27 24.04C37.97 283 45.93 288 54.95 288h30.63L5.69 378.49c-6 6.79-7.36 16.09-3.56 24.26 3.75 8.05 12 13.25 21.01 13.25H160v24.45l-30.29 48.4c-5.32 10.64 2.42 23.16 14.31 23.16h95.96c11.89 0 19.63-12.52 14.31-23.16L224 440.45V416h136.86c9.01 0 17.26-5.2 21.01-13.25 3.8-8.17 2.44-17.47-3.56-24.26z"},"database":{"viewBox":"0 0 448 512","path":"M448 73.143v45.714C448 159.143 347.667 192 224 192S0 159.143 0 118.857V73.143C0 32.857 100.333 0 224 0s224 32.857 224 73.143zM448 176v102.857C448 319.143 347.667 352 224 352S0 319.143 0 278.857V176c48.125 33.143 136.208 48.572 224 48.572S399.874 209.143 448 176zm0 160v102.857C448 479.143 347.667 512 224 512S0 479.143 0 438.857V336c48.125 33.143 136.208 48.572 224 48.572S399.874 369.143 448 336z"},"life-ring":{"viewBox":"0 0 512 512","path":"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm173.696 119.559l-63.399 63.399c-10.987-18.559-26.67-34.252-45.255-45.255l63.399-63.399a218.396 218.396 0 0 1 45.255 45.255zM256 352c-53.019 0-96-42.981-96-96s42.981-96 96-96 96 42.981 96 96-42.981 96-96 96zM127.559 82.304l63.399 63.399c-18.559 10.987-34.252 26.67-45.255 45.255l-63.399-63.399a218.372 218.372 0 0 1 45.255-45.255zM82.304 384.441l63.399-63.399c10.987 18.559 26.67 34.252 45.255 45.255l-63.399 63.399a218.396 218.396 0 0 1-45.255-45.255zm302.137 45.255l-63.399-63.399c18.559-10.987 34.252-26.67 45.255-45.255l63.399 63.399a218.403 218.403 0 0 1-45.255 45.255z"},"circle-notch":{"viewBox":"0 0 512 512","path":"M288 39.056v16.659c0 10.804 7.281 20.159 17.686 23.066C383.204 100.434 440 171.518 440 256c0 101.689-82.295 184-184 184-101.689 0-184-82.295-184-184 0-84.47 56.786-155.564 134.312-177.219C216.719 75.874 224 66.517 224 55.712V39.064c0-15.709-14.834-27.153-30.046-23.234C86.603 43.482 7.394 141.206 8.003 257.332c.72 137.052 111.477 246.956 248.531 246.667C393.255 503.711 504 392.788 504 256c0-115.633-79.14-212.779-186.211-240.236C302.678 11.889 288 23.456 288 39.056z"},"paper-plane":{"viewBox":"0 0 512 512","path":"M476 3.2L12.5 270.6c-18.1 10.4-15.8 35.6 2.2 43.2L121 358.4l287.3-253.2c5.5-4.9 13.3 2.6 8.6 8.3L176 407v80.5c0 23.6 28.5 32.9 42.5 15.8L282 426l124.6 52.2c14.2 6 30.4-2.9 33-18.2l72-432C515 7.8 493.3-6.8 476 3.2z"},"history":{"viewBox":"0 0 512 512","path":"M504 255.531c.253 136.64-111.18 248.372-247.82 248.468-59.015.042-113.223-20.53-155.822-54.911-11.077-8.94-11.905-25.541-1.839-35.607l11.267-11.267c8.609-8.609 22.353-9.551 31.891-1.984C173.062 425.135 212.781 440 256 440c101.705 0 184-82.311 184-184 0-101.705-82.311-184-184-184-48.814 0-93.149 18.969-126.068 49.932l50.754 50.754c10.08 10.08 2.941 27.314-11.313 27.314H24c-8.837 0-16-7.163-16-16V38.627c0-14.254 17.234-21.393 27.314-11.314l49.372 49.372C129.209 34.136 189.552 8 256 8c136.81 0 247.747 110.78 248 247.531zm-180.912 78.784l9.823-12.63c8.138-10.463 6.253-25.542-4.21-33.679L288 256.349V152c0-13.255-10.745-24-24-24h-16c-13.255 0-24 10.745-24 24v135.651l65.409 50.874c10.463 8.137 25.541 6.253 33.679-4.21z"},"heading":{"viewBox":"0 0 512 512","path":"M496 80V48c0-8.837-7.163-16-16-16H320c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h37.621v128H154.379V96H192c8.837 0 16-7.163 16-16V48c0-8.837-7.163-16-16-16H32c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h37.275v320H32c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h160c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16h-37.621V288H357.62v128H320c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h160c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16h-37.275V96H480c8.837 0 16-7.163 16-16z"},"paragraph":{"viewBox":"0 0 448 512","path":"M408 32H177.531C88.948 32 16.045 103.335 16 191.918 15.956 280.321 87.607 352 176 352v104c0 13.255 10.745 24 24 24h32c13.255 0 24-10.745 24-24V112h32v344c0 13.255 10.745 24 24 24h32c13.255 0 24-10.745 24-24V112h40c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24z"},"sliders-h":{"viewBox":"0 0 512 512","path":"M496 384H160v-16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h80v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h336c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-160h-80v-16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h336v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h80c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-160H288V48c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16C7.2 64 0 71.2 0 80v32c0 8.8 7.2 16 16 16h208v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h208c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16z"},"share-alt":{"viewBox":"0 0 448 512","path":"M352 320c-22.608 0-43.387 7.819-59.79 20.895l-102.486-64.054a96.551 96.551 0 0 0 0-41.683l102.486-64.054C308.613 184.181 329.392 192 352 192c53.019 0 96-42.981 96-96S405.019 0 352 0s-96 42.981-96 96c0 7.158.79 14.13 2.276 20.841L155.79 180.895C139.387 167.819 118.608 160 96 160c-53.019 0-96 42.981-96 96s42.981 96 96 96c22.608 0 43.387-7.819 59.79-20.895l102.486 64.054A96.301 96.301 0 0 0 256 416c0 53.019 42.981 96 96 96s96-42.981 96-96-42.981-96-96-96z"},"share-alt-square":{"viewBox":"0 0 448 512","path":"M448 80v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48zM304 296c-14.562 0-27.823 5.561-37.783 14.671l-67.958-40.775a56.339 56.339 0 0 0 0-27.793l67.958-40.775C276.177 210.439 289.438 216 304 216c30.928 0 56-25.072 56-56s-25.072-56-56-56-56 25.072-56 56c0 4.797.605 9.453 1.74 13.897l-67.958 40.775C171.823 205.561 158.562 200 144 200c-30.928 0-56 25.072-56 56s25.072 56 56 56c14.562 0 27.823-5.561 37.783-14.671l67.958 40.775a56.088 56.088 0 0 0-1.74 13.897c0 30.928 25.072 56 56 56s56-25.072 56-56C360 321.072 334.928 296 304 296z"},"bomb":{"viewBox":"0 0 512 512","path":"M440.5 88.5l-52 52L415 167c9.4 9.4 9.4 24.6 0 33.9l-17.4 17.4c11.8 26.1 18.4 55.1 18.4 85.6 0 114.9-93.1 208-208 208S0 418.9 0 304 93.1 96 208 96c30.5 0 59.5 6.6 85.6 18.4L311 97c9.4-9.4 24.6-9.4 33.9 0l26.5 26.5 52-52 17.1 17zM500 60h-24c-6.6 0-12 5.4-12 12s5.4 12 12 12h24c6.6 0 12-5.4 12-12s-5.4-12-12-12zM440 0c-6.6 0-12 5.4-12 12v24c0 6.6 5.4 12 12 12s12-5.4 12-12V12c0-6.6-5.4-12-12-12zm33.9 55l17-17c4.7-4.7 4.7-12.3 0-17-4.7-4.7-12.3-4.7-17 0l-17 17c-4.7 4.7-4.7 12.3 0 17 4.8 4.7 12.4 4.7 17 0zm-67.8 0c4.7 4.7 12.3 4.7 17 0 4.7-4.7 4.7-12.3 0-17l-17-17c-4.7-4.7-12.3-4.7-17 0-4.7 4.7-4.7 12.3 0 17l17 17zm67.8 34c-4.7-4.7-12.3-4.7-17 0-4.7 4.7-4.7 12.3 0 17l17 17c4.7 4.7 12.3 4.7 17 0 4.7-4.7 4.7-12.3 0-17l-17-17zM112 272c0-35.3 28.7-64 64-64 8.8 0 16-7.2 16-16s-7.2-16-16-16c-52.9 0-96 43.1-96 96 0 8.8 7.2 16 16 16s16-7.2 16-16z"},"tty":{"viewBox":"0 0 512 512","path":"M5.37 103.822c138.532-138.532 362.936-138.326 501.262 0 6.078 6.078 7.074 15.496 2.583 22.681l-43.214 69.138a18.332 18.332 0 0 1-22.356 7.305l-86.422-34.569a18.335 18.335 0 0 1-11.434-18.846L351.741 90c-62.145-22.454-130.636-21.986-191.483 0l5.953 59.532a18.331 18.331 0 0 1-11.434 18.846l-86.423 34.568a18.334 18.334 0 0 1-22.356-7.305L2.787 126.502a18.333 18.333 0 0 1 2.583-22.68zM96 308v-40c0-6.627-5.373-12-12-12H44c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12H92c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zM96 500v-40c0-6.627-5.373-12-12-12H44c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm288 0v-40c0-6.627-5.373-12-12-12H140c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h232c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12z"},"binoculars":{"viewBox":"0 0 512 512","path":"M416 48c0-8.84-7.16-16-16-16h-64c-8.84 0-16 7.16-16 16v48h96V48zM63.91 159.99C61.4 253.84 3.46 274.22 0 404v44c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32V288h32V128H95.84c-17.63 0-31.45 14.37-31.93 31.99zm384.18 0c-.48-17.62-14.3-31.99-31.93-31.99H320v160h32v160c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-44c-3.46-129.78-61.4-150.16-63.91-244.01zM176 32h-64c-8.84 0-16 7.16-16 16v48h96V48c0-8.84-7.16-16-16-16zm48 256h64V128h-64v160z"},"plug":{"viewBox":"0 0 384 512","path":"M256 144V32c0-17.673 14.327-32 32-32s32 14.327 32 32v112h-64zm112 16H16c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h16v32c0 77.406 54.969 141.971 128 156.796V512h64v-99.204c73.031-14.825 128-79.39 128-156.796v-32h16c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm-240-16V32c0-17.673-14.327-32-32-32S64 14.327 64 32v112h64z"},"wifi":{"viewBox":"0 0 640 512","path":"M634.91 154.88C457.74-8.99 182.19-8.93 5.09 154.88c-6.66 6.16-6.79 16.59-.35 22.98l34.24 33.97c6.14 6.1 16.02 6.23 22.4.38 145.92-133.68 371.3-133.71 517.25 0 6.38 5.85 16.26 5.71 22.4-.38l34.24-33.97c6.43-6.39 6.3-16.82-.36-22.98zM320 352c-35.35 0-64 28.65-64 64s28.65 64 64 64 64-28.65 64-64-28.65-64-64-64zm202.67-83.59c-115.26-101.93-290.21-101.82-405.34 0-6.9 6.1-7.12 16.69-.57 23.15l34.44 33.99c6 5.92 15.66 6.32 22.05.8 83.95-72.57 209.74-72.41 293.49 0 6.39 5.52 16.05 5.13 22.05-.8l34.44-33.99c6.56-6.46 6.33-17.06-.56-23.15z"},"calculator":{"viewBox":"0 0 448 512","path":"M400 0H48C22.4 0 0 22.4 0 48v416c0 25.6 22.4 48 48 48h352c25.6 0 48-22.4 48-48V48c0-25.6-22.4-48-48-48zM128 435.2c0 6.4-6.4 12.8-12.8 12.8H76.8c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm0-128c0 6.4-6.4 12.8-12.8 12.8H76.8c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm128 128c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm0-128c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm128 128c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8V268.8c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v166.4zm0-256c0 6.4-6.4 12.8-12.8 12.8H76.8c-6.4 0-12.8-6.4-12.8-12.8V76.8C64 70.4 70.4 64 76.8 64h294.4c6.4 0 12.8 6.4 12.8 12.8v102.4z"},"bell-slash":{"viewBox":"0 0 640 512","path":"M633.82 458.1l-90.62-70.05c.19-1.38.8-2.66.8-4.06.05-7.55-2.61-15.27-8.61-21.71-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84c-40.33 8.38-74.66 31.07-97.59 62.57L45.47 3.37C38.49-2.05 28.43-.8 23.01 6.18L3.37 31.45C-2.05 38.42-.8 48.47 6.18 53.9l588.35 454.73c6.98 5.43 17.03 4.17 22.46-2.81l19.64-25.27c5.42-6.97 4.17-17.02-2.81-22.45zM157.23 251.54c-8.61 67.96-36.41 93.33-52.62 110.75-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h241.92L157.23 251.54zM320 512c35.32 0 63.97-28.65 63.97-64H256.03c0 35.35 28.65 64 63.97 64z"},"copyright":{"viewBox":"0 0 512 512","path":"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm117.134 346.753c-1.592 1.867-39.776 45.731-109.851 45.731-84.692 0-144.484-63.26-144.484-145.567 0-81.303 62.004-143.401 143.762-143.401 66.957 0 101.965 37.315 103.422 38.904a12 12 0 0 1 1.238 14.623l-22.38 34.655c-4.049 6.267-12.774 7.351-18.234 2.295-.233-.214-26.529-23.88-61.88-23.88-46.116 0-73.916 33.575-73.916 76.082 0 39.602 25.514 79.692 74.277 79.692 38.697 0 65.28-28.338 65.544-28.625 5.132-5.565 14.059-5.033 18.508 1.053l24.547 33.572a12.001 12.001 0 0 1-.553 14.866z"},"at":{"viewBox":"0 0 512 512","path":"M256 8C118.941 8 8 118.919 8 256c0 137.059 110.919 248 248 248 48.154 0 95.342-14.14 135.408-40.223 12.005-7.815 14.625-24.288 5.552-35.372l-10.177-12.433c-7.671-9.371-21.179-11.667-31.373-5.129C325.92 429.757 291.314 440 256 440c-101.458 0-184-82.542-184-184S154.542 72 256 72c100.139 0 184 57.619 184 160 0 38.786-21.093 79.742-58.17 83.693-17.349-.454-16.91-12.857-13.476-30.024l23.433-121.11C394.653 149.75 383.308 136 368.225 136h-44.981a13.518 13.518 0 0 0-13.432 11.993l-.01.092c-14.697-17.901-40.448-21.775-59.971-21.775-74.58 0-137.831 62.234-137.831 151.46 0 65.303 36.785 105.87 96 105.87 26.984 0 57.369-15.637 74.991-38.333 9.522 34.104 40.613 34.103 70.71 34.103C462.609 379.41 504 307.798 504 232 504 95.653 394.023 8 256 8zm-21.68 304.43c-22.249 0-36.07-15.623-36.07-40.771 0-44.993 30.779-72.729 58.63-72.729 22.292 0 35.601 15.241 35.601 40.77 0 45.061-33.875 72.73-58.161 72.73z"},"eye-dropper":{"viewBox":"0 0 512 512","path":"M50.75 333.25c-12 12-18.75 28.28-18.75 45.26V424L0 480l32 32 56-32h45.49c16.97 0 33.25-6.74 45.25-18.74l126.64-126.62-128-128L50.75 333.25zM483.88 28.12c-37.47-37.5-98.28-37.5-135.75 0l-77.09 77.09-13.1-13.1c-9.44-9.44-24.65-9.31-33.94 0l-40.97 40.97c-9.37 9.37-9.37 24.57 0 33.94l161.94 161.94c9.44 9.44 24.65 9.31 33.94 0L419.88 288c9.37-9.37 9.37-24.57 0-33.94l-13.1-13.1 77.09-77.09c37.51-37.48 37.51-98.26.01-135.75z"},"paint-brush":{"viewBox":"0 0 512 512","path":"M167.02 309.34c-40.12 2.58-76.53 17.86-97.19 72.3-2.35 6.21-8 9.98-14.59 9.98-11.11 0-45.46-27.67-55.25-34.35C0 439.62 37.93 512 128 512c75.86 0 128-43.77 128-120.19 0-3.11-.65-6.08-.97-9.13l-88.01-73.34zM457.89 0c-15.16 0-29.37 6.71-40.21 16.45C213.27 199.05 192 203.34 192 257.09c0 13.7 3.25 26.76 8.73 38.7l63.82 53.18c7.21 1.8 14.64 3.03 22.39 3.03 62.11 0 98.11-45.47 211.16-256.46 7.38-14.35 13.9-29.85 13.9-45.99C512 20.64 486 0 457.89 0z"},"birthday-cake":{"viewBox":"0 0 448 512","path":"M448 384c-28.02 0-31.26-32-74.5-32-43.43 0-46.825 32-74.75 32-27.695 0-31.454-32-74.75-32-42.842 0-47.218 32-74.5 32-28.148 0-31.202-32-74.75-32-43.547 0-46.653 32-74.75 32v-80c0-26.5 21.5-48 48-48h16V112h64v144h64V112h64v144h64V112h64v144h16c26.5 0 48 21.5 48 48v80zm0 128H0v-96c43.356 0 46.767-32 74.75-32 27.951 0 31.253 32 74.75 32 42.843 0 47.217-32 74.5-32 28.148 0 31.201 32 74.75 32 43.357 0 46.767-32 74.75-32 27.488 0 31.252 32 74.5 32v96zM96 96c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40zm128 0c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40zm128 0c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40z"},"chart-area":{"viewBox":"0 0 512 512","path":"M500 384c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12V76c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v308h436zM372.7 159.5L288 216l-85.3-113.7c-5.1-6.8-15.5-6.3-19.9 1L96 248v104h384l-89.9-187.8c-3.2-6.5-11.4-8.7-17.4-4.7z"},"chart-pie":{"viewBox":"0 0 544 512","path":"M527.79 288H290.5l158.03 158.03c6.04 6.04 15.98 6.53 22.19.68 38.7-36.46 65.32-85.61 73.13-140.86 1.34-9.46-6.51-17.85-16.06-17.85zm-15.83-64.8C503.72 103.74 408.26 8.28 288.8.04 279.68-.59 272 7.1 272 16.24V240h223.77c9.14 0 16.82-7.68 16.19-16.8zM224 288V50.71c0-9.55-8.39-17.4-17.84-16.06C86.99 51.49-4.1 155.6.14 280.37 4.5 408.51 114.83 513.59 243.03 511.98c50.4-.63 96.97-16.87 135.26-44.03 7.9-5.6 8.42-17.23 1.57-24.08L224 288z"},"chart-line":{"viewBox":"0 0 512 512","path":"M496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM464 96H345.94c-21.38 0-32.09 25.85-16.97 40.97l32.4 32.4L288 242.75l-73.37-73.37c-12.5-12.5-32.76-12.5-45.25 0l-68.69 68.69c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0L192 237.25l73.37 73.37c12.5 12.5 32.76 12.5 45.25 0l96-96 32.4 32.4c15.12 15.12 40.97 4.41 40.97-16.97V112c.01-8.84-7.15-16-15.99-16z"},"toggle-off":{"viewBox":"0 0 576 512","path":"M384 64H192C85.961 64 0 149.961 0 256s85.961 192 192 192h192c106.039 0 192-85.961 192-192S490.039 64 384 64zM64 256c0-70.741 57.249-128 128-128 70.741 0 128 57.249 128 128 0 70.741-57.249 128-128 128-70.741 0-128-57.249-128-128zm320 128h-48.905c65.217-72.858 65.236-183.12 0-256H384c70.741 0 128 57.249 128 128 0 70.74-57.249 128-128 128z"},"toggle-on":{"viewBox":"0 0 576 512","path":"M576 256c0 106.039-85.961 192-192 192H192C85.961 448 0 362.039 0 256S85.961 64 192 64h192c106.039 0 192 85.961 192 192zM384 128c-70.741 0-128 57.249-128 128 0 70.741 57.249 128 128 128 70.741 0 128-57.249 128-128 0-70.741-57.249-128-128-128"},"bicycle":{"viewBox":"0 0 640 512","path":"M512.509 192.001c-16.373-.064-32.03 2.955-46.436 8.495l-77.68-125.153A24 24 0 0 0 368.001 64h-64c-8.837 0-16 7.163-16 16v16c0 8.837 7.163 16 16 16h50.649l14.896 24H256.002v-16c0-8.837-7.163-16-16-16h-87.459c-13.441 0-24.777 10.999-24.536 24.437.232 13.044 10.876 23.563 23.995 23.563h48.726l-29.417 47.52c-13.433-4.83-27.904-7.483-42.992-7.52C58.094 191.83.412 249.012.002 319.236-.413 390.279 57.055 448 128.002 448c59.642 0 109.758-40.793 123.967-96h52.033a24 24 0 0 0 20.406-11.367L410.37 201.77l14.938 24.067c-25.455 23.448-41.385 57.081-41.307 94.437.145 68.833 57.899 127.051 126.729 127.719 70.606.685 128.181-55.803 129.255-125.996 1.086-70.941-56.526-129.72-127.476-129.996zM186.75 265.772c9.727 10.529 16.673 23.661 19.642 38.228h-43.306l23.664-38.228zM128.002 400c-44.112 0-80-35.888-80-80s35.888-80 80-80c5.869 0 11.586.653 17.099 1.859l-45.505 73.509C89.715 331.327 101.213 352 120.002 352h81.3c-12.37 28.225-40.562 48-73.3 48zm162.63-96h-35.624c-3.96-31.756-19.556-59.894-42.383-80.026L237.371 184h127.547l-74.286 120zm217.057 95.886c-41.036-2.165-74.049-35.692-75.627-76.755-.812-21.121 6.633-40.518 19.335-55.263l44.433 71.586c4.66 7.508 14.524 9.816 22.032 5.156l13.594-8.437c7.508-4.66 9.817-14.524 5.156-22.032l-44.468-71.643a79.901 79.901 0 0 1 19.858-2.497c44.112 0 80 35.888 80 80-.001 45.54-38.252 82.316-84.313 79.885z"},"bus":{"viewBox":"0 0 512 512","path":"M488 128h-8V80c0-44.8-99.2-80-224-80S32 35.2 32 80v48h-8c-13.25 0-24 10.74-24 24v80c0 13.25 10.75 24 24 24h8v160c0 17.67 14.33 32 32 32v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h192v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h6.4c16 0 25.6-12.8 25.6-25.6V256h8c13.25 0 24-10.75 24-24v-80c0-13.26-10.75-24-24-24zM112 400c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm16-112c-17.67 0-32-14.33-32-32V128c0-17.67 14.33-32 32-32h256c17.67 0 32 14.33 32 32v128c0 17.67-14.33 32-32 32H128zm272 112c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"},"shekel-sign":{"viewBox":"0 0 448 512","path":"M248 168v168c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V168c0-75.11-60.89-136-136-136H24C10.75 32 0 42.74 0 56v408c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V112h112c30.93 0 56 25.07 56 56zM432 32h-48c-8.84 0-16 7.16-16 16v296c0 30.93-25.07 56-56 56H200V176c0-8.84-7.16-16-16-16h-48c-8.84 0-16 7.16-16 16v280c0 13.25 10.75 24 24 24h168c75.11 0 136-60.89 136-136V48c0-8.84-7.16-16-16-16z"},"cart-plus":{"viewBox":"0 0 576 512","path":"M504.717 320H211.572l6.545 32h268.418c15.401 0 26.816 14.301 23.403 29.319l-5.517 24.276C523.112 414.668 536 433.828 536 456c0 31.202-25.519 56.444-56.824 55.994-29.823-.429-54.35-24.631-55.155-54.447-.44-16.287 6.085-31.049 16.803-41.548H231.176C241.553 426.165 248 440.326 248 456c0 31.813-26.528 57.431-58.67 55.938-28.54-1.325-51.751-24.385-53.251-52.917-1.158-22.034 10.436-41.455 28.051-51.586L93.883 64H24C10.745 64 0 53.255 0 40V24C0 10.745 10.745 0 24 0h102.529c11.401 0 21.228 8.021 23.513 19.19L159.208 64H551.99c15.401 0 26.816 14.301 23.403 29.319l-47.273 208C525.637 312.246 515.923 320 504.717 320zM408 168h-48v-40c0-8.837-7.163-16-16-16h-16c-8.837 0-16 7.163-16 16v40h-48c-8.837 0-16 7.163-16 16v16c0 8.837 7.163 16 16 16h48v40c0 8.837 7.163 16 16 16h16c8.837 0 16-7.163 16-16v-40h48c8.837 0 16-7.163 16-16v-16c0-8.837-7.163-16-16-16z"},"cart-arrow-down":{"viewBox":"0 0 576 512","path":"M504.717 320H211.572l6.545 32h268.418c15.401 0 26.816 14.301 23.403 29.319l-5.517 24.276C523.112 414.668 536 433.828 536 456c0 31.202-25.519 56.444-56.824 55.994-29.823-.429-54.35-24.631-55.155-54.447-.44-16.287 6.085-31.049 16.803-41.548H231.176C241.553 426.165 248 440.326 248 456c0 31.813-26.528 57.431-58.67 55.938-28.54-1.325-51.751-24.385-53.251-52.917-1.158-22.034 10.436-41.455 28.051-51.586L93.883 64H24C10.745 64 0 53.255 0 40V24C0 10.745 10.745 0 24 0h102.529c11.401 0 21.228 8.021 23.513 19.19L159.208 64H551.99c15.401 0 26.816 14.301 23.403 29.319l-47.273 208C525.637 312.246 515.923 320 504.717 320zM403.029 192H360v-60c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v60h-43.029c-10.691 0-16.045 12.926-8.485 20.485l67.029 67.029c4.686 4.686 12.284 4.686 16.971 0l67.029-67.029c7.559-7.559 2.205-20.485-8.486-20.485z"},"gem":{"viewBox":"0 0 576 512","path":"M485.5 0L576 160H474.9L405.7 0h79.8zm-128 0l69.2 160H149.3L218.5 0h139zm-267 0h79.8l-69.2 160H0L90.5 0zM0 192h100.7l123 251.7c1.5 3.1-2.7 5.9-5 3.3L0 192zm148.2 0h279.6l-137 318.2c-1 2.4-4.5 2.4-5.5 0L148.2 192zm204.1 251.7l123-251.7H576L357.3 446.9c-2.3 2.7-6.5-.1-5-3.2z"},"ship":{"viewBox":"0 0 640 512","path":"M496.616 372.639l70.012-70.012c16.899-16.9 9.942-45.771-12.836-53.092L512 236.102V96c0-17.673-14.327-32-32-32h-64V24c0-13.255-10.745-24-24-24H248c-13.255 0-24 10.745-24 24v40h-64c-17.673 0-32 14.327-32 32v140.102l-41.792 13.433c-22.753 7.313-29.754 36.173-12.836 53.092l70.012 70.012C125.828 416.287 85.587 448 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24 61.023 0 107.499-20.61 143.258-59.396C181.677 487.432 216.021 512 256 512h128c39.979 0 74.323-24.568 88.742-59.396C508.495 491.384 554.968 512 616 512c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24-60.817 0-101.542-31.001-119.384-75.361zM192 128h256v87.531l-118.208-37.995a31.995 31.995 0 0 0-19.584 0L192 215.531V128z"},"user-secret":{"viewBox":"0 0 448 512","path":"M383.9 308.3l23.9-62.6c4-10.5-3.7-21.7-15-21.7h-58.5c11-18.9 17.8-40.6 17.8-64v-.3c39.2-7.8 64-19.1 64-31.7 0-13.3-27.3-25.1-70.1-33-9.2-32.8-27-65.8-40.6-82.8-9.5-11.9-25.9-15.6-39.5-8.8l-27.6 13.8c-9 4.5-19.6 4.5-28.6 0L182.1 3.4c-13.6-6.8-30-3.1-39.5 8.8-13.5 17-31.4 50-40.6 82.8-42.7 7.9-70 19.7-70 33 0 12.6 24.8 23.9 64 31.7v.3c0 23.4 6.8 45.1 17.8 64H56.3c-11.5 0-19.2 11.7-14.7 22.3l25.8 60.2C27.3 329.8 0 372.7 0 422.4v44.8C0 491.9 20.1 512 44.8 512h358.4c24.7 0 44.8-20.1 44.8-44.8v-44.8c0-48.4-25.8-90.4-64.1-114.1zM176 480l-41.6-192 49.6 32 24 40-32 120zm96 0l-32-120 24-40 49.6-32L272 480zm41.7-298.5c-3.9 11.9-7 24.6-16.5 33.4-10.1 9.3-48 22.4-64-25-2.8-8.4-15.4-8.4-18.3 0-17 50.2-56 32.4-64 25-9.5-8.8-12.7-21.5-16.5-33.4-.8-2.5-6.3-5.7-6.3-5.8v-10.8c28.3 3.6 61 5.8 96 5.8s67.7-2.1 96-5.8v10.8c-.1.1-5.6 3.2-6.4 5.8z"},"motorcycle":{"viewBox":"0 0 640 512","path":"M512.949 192.003c-14.862-.108-29.14 2.322-42.434 6.874L437.589 144H520c13.255 0 24-10.745 24-24V88c0-13.255-10.745-24-24-24h-45.311a24 24 0 0 0-17.839 7.945l-37.496 41.663-22.774-37.956A24 24 0 0 0 376 64h-80c-8.837 0-16 7.163-16 16v16c0 8.837 7.163 16 16 16h66.411l19.2 32H227.904c-17.727-23.073-44.924-40-99.904-40H72.54c-13.455 0-24.791 11.011-24.536 24.464C48.252 141.505 58.9 152 72 152h56c24.504 0 38.686 10.919 47.787 24.769l-11.291 20.529c-13.006-3.865-26.871-5.736-41.251-5.21C55.857 194.549 1.565 249.605.034 317.021-1.603 389.076 56.317 448 128 448c59.642 0 109.744-40.794 123.953-96h84.236c13.673 0 24.589-11.421 23.976-25.077-2.118-47.12 17.522-93.665 56.185-125.026l12.485 20.808c-27.646 23.654-45.097 58.88-44.831 98.179.47 69.556 57.203 126.452 126.758 127.11 71.629.678 129.839-57.487 129.234-129.099-.588-69.591-57.455-126.386-127.047-126.892zM128 400c-44.112 0-80-35.888-80-80s35.888-80 80-80c4.242 0 8.405.341 12.469.982L98.97 316.434C90.187 332.407 101.762 352 120 352h81.297c-12.37 28.225-40.56 48-73.297 48zm388.351-.116C470.272 402.337 432 365.554 432 320c0-21.363 8.434-40.781 22.125-55.144l49.412 82.352c4.546 7.577 14.375 10.034 21.952 5.488l13.72-8.232c7.577-4.546 10.034-14.375 5.488-21.952l-48.556-80.927A80.005 80.005 0 0 1 512 240c45.554 0 82.338 38.273 79.884 84.352-2.16 40.558-34.974 73.372-75.533 75.532z"},"street-view":{"viewBox":"0 0 512 512","path":"M367.9 329.76c-4.62 5.3-9.78 10.1-15.9 13.65v22.94c66.52 9.34 112 28.05 112 49.65 0 30.93-93.12 56-208 56S48 446.93 48 416c0-21.6 45.48-40.3 112-49.65v-22.94c-6.12-3.55-11.28-8.35-15.9-13.65C58.87 345.34 0 378.05 0 416c0 53.02 114.62 96 256 96s256-42.98 256-96c0-37.95-58.87-70.66-144.1-86.24zM256 128c35.35 0 64-28.65 64-64S291.35 0 256 0s-64 28.65-64 64 28.65 64 64 64zm-64 192v96c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-96c17.67 0 32-14.33 32-32v-96c0-26.51-21.49-48-48-48h-11.8c-11.07 5.03-23.26 8-36.2 8s-25.13-2.97-36.2-8H208c-26.51 0-48 21.49-48 48v96c0 17.67 14.33 32 32 32z"},"heartbeat":{"viewBox":"0 0 512 512","path":"M320.2 243.8l-49.7 99.4c-6 12.1-23.4 11.7-28.9-.6l-56.9-126.3-30 71.7H60.6l182.5 186.5c7.1 7.3 18.6 7.3 25.7 0L451.4 288H342.3l-22.1-44.2zM473.7 73.9l-2.4-2.5c-51.5-52.6-135.8-52.6-187.4 0L256 100l-27.9-28.5c-51.5-52.7-135.9-52.7-187.4 0l-2.4 2.4C-10.4 123.7-12.5 203 31 256h102.4l35.9-86.2c5.4-12.9 23.6-13.2 29.4-.4l58.2 129.3 49-97.9c5.9-11.8 22.7-11.8 28.6 0l27.6 55.2H481c43.5-53 41.4-132.3-7.3-182.1z"},"venus":{"viewBox":"0 0 288 512","path":"M288 176c0-79.5-64.5-144-144-144S0 96.5 0 176c0 68.5 47.9 125.9 112 140.4V368H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.5 112-71.9 112-140.4zm-224 0c0-44.1 35.9-80 80-80s80 35.9 80 80-35.9 80-80 80-80-35.9-80-80z"},"mars":{"viewBox":"0 0 384 512","path":"M372 64h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-80.7 80.7c-22.2-14-48.5-22.1-76.7-22.1C64.5 160 0 224.5 0 304s64.5 144 144 144 144-64.5 144-144c0-28.2-8.1-54.5-22.1-76.7l80.7-80.7 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V76c0-6.6-5.4-12-12-12zM144 384c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"},"mercury":{"viewBox":"0 0 288 512","path":"M288 208c0-44.2-19.9-83.7-51.2-110.1 2.5-1.8 4.9-3.8 7.2-5.8 24.7-21.2 39.8-48.8 43.2-78.8.9-7.1-4.7-13.3-11.9-13.3h-40.5C229 0 224.1 4.1 223 9.8c-2.4 12.5-9.6 24.3-20.7 33.8C187 56.8 166.3 64 144 64s-43-7.2-58.4-20.4C74.5 34.1 67.4 22.3 64.9 9.8 63.8 4.1 58.9 0 53.2 0H12.7C5.5 0-.1 6.2.8 13.3 4.2 43.4 19.2 71 44 92.2c2.3 2 4.7 3.9 7.2 5.8C19.9 124.3 0 163.8 0 208c0 68.5 47.9 125.9 112 140.4V400H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.5 112-71.9 112-140.4zm-224 0c0-44.1 35.9-80 80-80s80 35.9 80 80-35.9 80-80 80-80-35.9-80-80z"},"transgender":{"viewBox":"0 0 384 512","path":"M372 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-80.7 80.7C198.5 104.1 172.2 96 144 96 64.5 96 0 160.5 0 240c0 68.5 47.9 125.9 112 140.4V408H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v28c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-28h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-27.6c64.1-14.6 112-71.9 112-140.4 0-28.2-8.1-54.5-22.1-76.7l80.7-80.7 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V12c0-6.6-5.4-12-12-12zM144 320c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"},"transgender-alt":{"viewBox":"0 0 480 512","path":"M468 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-80.7 80.7C294.5 104.1 268.2 96 240 96c-28.2 0-54.5 8.1-76.7 22.1l-16.5-16.5 19.8-19.8c4.7-4.7 4.7-12.3 0-17l-28.3-28.3c-4.7-4.7-12.3-4.7-17 0l-19.8 19.8-19-19 16.9-16.9C107.1 12.9 101.7 0 91 0H12C5.4 0 0 5.4 0 12v79c0 10.7 12.9 16 20.5 8.5l16.9-16.9 19 19-19.8 19.8c-4.7 4.7-4.7 12.3 0 17l28.3 28.3c4.7 4.7 12.3 4.7 17 0l19.8-19.8 16.5 16.5C104.1 185.5 96 211.8 96 240c0 68.5 47.9 125.9 112 140.4V408h-36c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v28c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-28h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-27.6c64.1-14.6 112-71.9 112-140.4 0-28.2-8.1-54.5-22.1-76.7l80.7-80.7 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V12c0-6.6-5.4-12-12-12zM240 320c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"},"venus-double":{"viewBox":"0 0 512 512","path":"M288 176c0-79.5-64.5-144-144-144S0 96.5 0 176c0 68.5 47.9 125.9 112 140.4V368H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.5 112-71.9 112-140.4zm-224 0c0-44.1 35.9-80 80-80s80 35.9 80 80-35.9 80-80 80-80-35.9-80-80zm336 140.4V368h36c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-36v36c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-36h-36c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h36v-51.6c-21.2-4.8-40.6-14.3-57.2-27.3 14-16.7 25-36 32.1-57.1 14.5 14.8 34.7 24 57.1 24 44.1 0 80-35.9 80-80s-35.9-80-80-80c-22.3 0-42.6 9.2-57.1 24-7.1-21.1-18-40.4-32.1-57.1C303.4 43.6 334.3 32 368 32c79.5 0 144 64.5 144 144 0 68.5-47.9 125.9-112 140.4z"},"mars-double":{"viewBox":"0 0 512 512","path":"M340 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-48.7 48.7C198.5 72.1 172.2 64 144 64 64.5 64 0 128.5 0 208s64.5 144 144 144 144-64.5 144-144c0-28.2-8.1-54.5-22.1-76.7l48.7-48.7 16.9 16.9c2.4 2.4 5.5 3.5 8.4 3.5 6.2 0 12.1-4.8 12.1-12V12c0-6.6-5.4-12-12-12zM144 288c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80zm356-128.1h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-48.7 48.7c-18.2-11.4-39-18.9-61.5-21.3-2.1 21.8-8.2 43.3-18.4 63.3 1.1 0 2.2-.1 3.2-.1 44.1 0 80 35.9 80 80s-35.9 80-80 80-80-35.9-80-80c0-1.1 0-2.2.1-3.2-20 10.2-41.5 16.4-63.3 18.4C168.4 455.6 229.6 512 304 512c79.5 0 144-64.5 144-144 0-28.2-8.1-54.5-22.1-76.7l48.7-48.7 16.9 16.9c2.4 2.4 5.4 3.5 8.4 3.5 6.2 0 12.1-4.8 12.1-12v-79c0-6.7-5.4-12.1-12-12.1z"},"venus-mars":{"viewBox":"0 0 576 512","path":"M564 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-48.7 48.7C422.5 72.1 396.2 64 368 64c-33.7 0-64.6 11.6-89.2 30.9 14 16.7 25 36 32.1 57.1 14.5-14.8 34.7-24 57.1-24 44.1 0 80 35.9 80 80s-35.9 80-80 80c-22.3 0-42.6-9.2-57.1-24-7.1 21.1-18 40.4-32.1 57.1 24.5 19.4 55.5 30.9 89.2 30.9 79.5 0 144-64.5 144-144 0-28.2-8.1-54.5-22.1-76.7l48.7-48.7 16.9 16.9c2.4 2.4 5.4 3.5 8.4 3.5 6.2 0 12.1-4.8 12.1-12V12c0-6.6-5.4-12-12-12zM144 64C64.5 64 0 128.5 0 208c0 68.5 47.9 125.9 112 140.4V400H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.6 112-71.9 112-140.4 0-79.5-64.5-144-144-144zm0 224c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"},"mars-stroke":{"viewBox":"0 0 384 512","path":"M372 64h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-17.5 17.5-14.1-14.1c-4.7-4.7-12.3-4.7-17 0L224.5 133c-4.7 4.7-4.7 12.3 0 17l14.1 14.1-18 18c-22.2-14-48.5-22.1-76.7-22.1C64.5 160 0 224.5 0 304s64.5 144 144 144 144-64.5 144-144c0-28.2-8.1-54.5-22.1-76.7l18-18 14.1 14.1c4.7 4.7 12.3 4.7 17 0l28.3-28.3c4.7-4.7 4.7-12.3 0-17L329.2 164l17.5-17.5 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V76c-.1-6.6-5.5-12-12.1-12zM144 384c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"},"mars-stroke-v":{"viewBox":"0 0 288 512","path":"M245.8 234.2c-19.9-19.9-44.2-32.8-69.8-38.6v-25.4h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20V81.4h23.9c10.7 0 16-12.9 8.5-20.5L152.5 5.1c-4.7-4.7-12.3-4.7-17 0L79.6 61c-7.6 7.6-2.2 20.5 8.5 20.5H112v24.7H92c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h20v25.4c-25.6 5.8-49.9 18.7-69.8 38.6-56.2 56.2-56.2 147.4 0 203.6 56.2 56.2 147.4 56.2 203.6 0 56.3-56.2 56.3-147.4 0-203.6zm-45.2 158.4c-31.2 31.2-81.9 31.2-113.1 0-31.2-31.2-31.2-81.9 0-113.1 31.2-31.2 81.9-31.2 113.1 0 31.2 31.1 31.2 81.9 0 113.1z"},"mars-stroke-h":{"viewBox":"0 0 480 512","path":"M476.2 247.5l-55.9-55.9c-7.6-7.6-20.5-2.2-20.5 8.5V224H376v-20c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v20h-27.6c-5.8-25.6-18.7-49.9-38.6-69.8C189.6 98 98.4 98 42.2 154.2c-56.2 56.2-56.2 147.4 0 203.6 56.2 56.2 147.4 56.2 203.6 0 19.9-19.9 32.8-44.2 38.6-69.8H312v20c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-20h23.9v23.9c0 10.7 12.9 16 20.5 8.5l55.9-55.9c4.6-4.7 4.6-12.3-.1-17zm-275.6 65.1c-31.2 31.2-81.9 31.2-113.1 0-31.2-31.2-31.2-81.9 0-113.1 31.2-31.2 81.9-31.2 113.1 0 31.2 31.1 31.2 81.9 0 113.1z"},"neuter":{"viewBox":"0 0 288 512","path":"M288 176c0-79.5-64.5-144-144-144S0 96.5 0 176c0 68.5 47.9 125.9 112 140.4V468c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12V316.4c64.1-14.5 112-71.9 112-140.4zm-144 80c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"},"genderless":{"viewBox":"0 0 288 512","path":"M144 176c44.1 0 80 35.9 80 80s-35.9 80-80 80-80-35.9-80-80 35.9-80 80-80m0-64C64.5 112 0 176.5 0 256s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144z"},"server":{"viewBox":"0 0 512 512","path":"M480 160H32c-17.673 0-32-14.327-32-32V64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24z"},"user-plus":{"viewBox":"0 0 640 512","path":"M624 208h-64v-64c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v64h-64c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h64v64c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-64h64c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm-400 48c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"},"user-times":{"viewBox":"0 0 640 512","path":"M589.6 240l45.6-45.6c6.3-6.3 6.3-16.5 0-22.8l-22.8-22.8c-6.3-6.3-16.5-6.3-22.8 0L544 194.4l-45.6-45.6c-6.3-6.3-16.5-6.3-22.8 0l-22.8 22.8c-6.3 6.3-6.3 16.5 0 22.8l45.6 45.6-45.6 45.6c-6.3 6.3-6.3 16.5 0 22.8l22.8 22.8c6.3 6.3 16.5 6.3 22.8 0l45.6-45.6 45.6 45.6c6.3 6.3 16.5 6.3 22.8 0l22.8-22.8c6.3-6.3 6.3-16.5 0-22.8L589.6 240zM224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"},"bed":{"viewBox":"0 0 640 512","path":"M176 256c44.11 0 80-35.89 80-80s-35.89-80-80-80-80 35.89-80 80 35.89 80 80 80zm352-128H304c-8.84 0-16 7.16-16 16v144H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v352c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-48h512v48c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V240c0-61.86-50.14-112-112-112z"},"train":{"viewBox":"0 0 448 512","path":"M448 96v256c0 51.815-61.624 96-130.022 96l62.98 49.721C386.905 502.417 383.562 512 376 512H72c-7.578 0-10.892-9.594-4.957-14.279L130.022 448C61.82 448 0 403.954 0 352V96C0 42.981 64 0 128 0h192c65 0 128 42.981 128 96zm-48 136V120c0-13.255-10.745-24-24-24H72c-13.255 0-24 10.745-24 24v112c0 13.255 10.745 24 24 24h304c13.255 0 24-10.745 24-24zm-176 64c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56z"},"subway":{"viewBox":"0 0 448 512","path":"M448 96v256c0 51.815-61.624 96-130.022 96l62.98 49.721C386.905 502.417 383.562 512 376 512H72c-7.578 0-10.892-9.594-4.957-14.279L130.022 448C61.82 448 0 403.954 0 352V96C0 42.981 64 0 128 0h192c65 0 128 42.981 128 96zM200 232V120c0-13.255-10.745-24-24-24H72c-13.255 0-24 10.745-24 24v112c0 13.255 10.745 24 24 24h104c13.255 0 24-10.745 24-24zm200 0V120c0-13.255-10.745-24-24-24H272c-13.255 0-24 10.745-24 24v112c0 13.255 10.745 24 24 24h104c13.255 0 24-10.745 24-24zm-48 56c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm-256 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48z"},"battery-full":{"viewBox":"0 0 640 512","path":"M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-48 96H96v128h416V192z"},"battery-three-quarters":{"viewBox":"0 0 640 512","path":"M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-144 96H96v128h320V192z"},"battery-half":{"viewBox":"0 0 640 512","path":"M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-240 96H96v128h224V192z"},"battery-quarter":{"viewBox":"0 0 640 512","path":"M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-336 96H96v128h128V192z"},"battery-empty":{"viewBox":"0 0 640 512","path":"M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48z"},"mouse-pointer":{"viewBox":"0 0 320 512","path":"M302.189 329.126H196.105l55.831 135.993c3.889 9.428-.555 19.999-9.444 23.999l-49.165 21.427c-9.165 4-19.443-.571-23.332-9.714l-53.053-129.136-86.664 89.138C18.729 472.71 0 463.554 0 447.977V18.299C0 1.899 19.921-6.096 30.277 5.443l284.412 292.542c11.472 11.179 3.007 31.141-12.5 31.141z"},"i-cursor":{"viewBox":"0 0 256 512","path":"M256 52.048V12.065C256 5.496 250.726.148 244.158.066 211.621-.344 166.469.011 128 37.959 90.266.736 46.979-.114 11.913.114 5.318.157 0 5.519 0 12.114v39.645c0 6.687 5.458 12.078 12.145 11.998C38.111 63.447 96 67.243 96 112.182V224H60c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h36v112c0 44.932-56.075 48.031-83.95 47.959C5.404 447.942 0 453.306 0 459.952v39.983c0 6.569 5.274 11.917 11.842 11.999 32.537.409 77.689.054 116.158-37.894 37.734 37.223 81.021 38.073 116.087 37.845 6.595-.043 11.913-5.405 11.913-12V460.24c0-6.687-5.458-12.078-12.145-11.998C217.889 448.553 160 444.939 160 400V288h36c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-36V112.182c0-44.932 56.075-48.213 83.95-48.142 6.646.018 12.05-5.346 12.05-11.992z"},"object-group":{"viewBox":"0 0 512 512","path":"M480 128V96h20c6.627 0 12-5.373 12-12V44c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v20H64V44c0-6.627-5.373-12-12-12H12C5.373 32 0 37.373 0 44v40c0 6.627 5.373 12 12 12h20v320H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-20h384v20c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-20V128zM96 276V140c0-6.627 5.373-12 12-12h168c6.627 0 12 5.373 12 12v136c0 6.627-5.373 12-12 12H108c-6.627 0-12-5.373-12-12zm320 96c0 6.627-5.373 12-12 12H236c-6.627 0-12-5.373-12-12v-52h72c13.255 0 24-10.745 24-24v-72h84c6.627 0 12 5.373 12 12v136z"},"object-ungroup":{"viewBox":"0 0 576 512","path":"M64 320v26a6 6 0 0 1-6 6H6a6 6 0 0 1-6-6v-52a6 6 0 0 1 6-6h26V96H6a6 6 0 0 1-6-6V38a6 6 0 0 1 6-6h52a6 6 0 0 1 6 6v26h288V38a6 6 0 0 1 6-6h52a6 6 0 0 1 6 6v52a6 6 0 0 1-6 6h-26v192h26a6 6 0 0 1 6 6v52a6 6 0 0 1-6 6h-52a6 6 0 0 1-6-6v-26H64zm480-64v-32h26a6 6 0 0 0 6-6v-52a6 6 0 0 0-6-6h-52a6 6 0 0 0-6 6v26H408v72h8c13.255 0 24 10.745 24 24v64c0 13.255-10.745 24-24 24h-64c-13.255 0-24-10.745-24-24v-8H192v72h-26a6 6 0 0 0-6 6v52a6 6 0 0 0 6 6h52a6 6 0 0 0 6-6v-26h288v26a6 6 0 0 0 6 6h52a6 6 0 0 0 6-6v-52a6 6 0 0 0-6-6h-26V256z"},"sticky-note":{"viewBox":"0 0 448 512","path":"M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"},"clone":{"viewBox":"0 0 512 512","path":"M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z"},"balance-scale":{"viewBox":"0 0 640 512","path":"M256 336h-.02c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0C-2.06 328.75.02 320.33.02 336H0c0 44.18 57.31 80 128 80s128-35.82 128-80zM128 176l72 144H56l72-144zm511.98 160c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0-87.12 174.26-85.04 165.84-85.04 181.51H384c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02zM440 320l72-144 72 144H440zm88 128H352V153.25c23.51-10.29 41.16-31.48 46.39-57.25H528c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H383.64C369.04 12.68 346.09 0 320 0s-49.04 12.68-63.64 32H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h129.61c5.23 25.76 22.87 46.96 46.39 57.25V448H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"},"hourglass-start":{"viewBox":"0 0 384 512","path":"M360 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24zm-64 448H88c0-77.458 46.204-144 104-144 57.786 0 104 66.517 104 144z"},"hourglass-half":{"viewBox":"0 0 384 512","path":"M360 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24zm-75.078 384H99.08c17.059-46.797 52.096-80 92.92-80 40.821 0 75.862 33.196 92.922 80zm.019-256H99.078C91.988 108.548 88 86.748 88 64h208c0 22.805-3.987 44.587-11.059 64z"},"hourglass-end":{"viewBox":"0 0 384 512","path":"M360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64zM192 208c-57.787 0-104-66.518-104-144h208c0 77.945-46.51 144-104 144z"},"hourglass":{"viewBox":"0 0 384 512","path":"M360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64z"},"trademark":{"viewBox":"0 0 640 512","path":"M97.119 163.133H12c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h248.559c6.627 0 12 5.373 12 12v43.133c0 6.627-5.373 12-12 12H175.44V404c0 6.627-5.373 12-12 12h-54.322c-6.627 0-12-5.373-12-12V163.133zM329.825 96h65.425a12 12 0 0 1 11.346 8.093l43.759 127.068c7.161 20.588 16.111 52.812 16.111 52.812h.896s8.95-32.224 16.111-52.812l43.758-127.068A12 12 0 0 1 538.577 96h65.41a12 12 0 0 1 11.961 11.03l24.012 296c.567 6.987-4.951 12.97-11.961 12.97h-54.101a12 12 0 0 1-11.972-11.182l-9.082-132.93c-1.79-24.168 0-53.706 0-53.706h-.896s-10.741 33.566-17.902 53.706l-30.7 84.731a12 12 0 0 1-11.282 7.912h-50.302a12 12 0 0 1-11.282-7.912l-30.7-84.731c-7.161-20.14-17.903-53.706-17.903-53.706h-.895s1.79 29.538 0 53.706l-9.082 132.93c-.428 6.295-5.66 11.182-11.97 11.182H305.4c-7.017 0-12.536-5.994-11.959-12.987l24.425-296A11.999 11.999 0 0 1 329.825 96z"},"registered":{"viewBox":"0 0 512 512","path":"M285.363 207.475c0 18.6-9.831 28.431-28.431 28.431h-29.876v-56.14h23.378c28.668 0 34.929 8.773 34.929 27.709zM504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM363.411 360.414c-46.729-84.825-43.299-78.636-44.702-80.98 23.432-15.172 37.945-42.979 37.945-74.486 0-54.244-31.5-89.252-105.498-89.252h-70.667c-13.255 0-24 10.745-24 24V372c0 13.255 10.745 24 24 24h22.567c13.255 0 24-10.745 24-24v-71.663h25.556l44.129 82.937a24.001 24.001 0 0 0 21.188 12.727h24.464c18.261-.001 29.829-19.591 21.018-35.587z"},"tv":{"viewBox":"0 0 640 512","path":"M592 0H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h245.1v32h-160c-17.7 0-32 14.3-32 32s14.3 32 32 32h384c17.7 0 32-14.3 32-32s-14.3-32-32-32h-160v-32H592c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zm-16 352H64V64h512v288z"},"industry":{"viewBox":"0 0 512 512","path":"M475.115 163.781L336 252.309v-68.28c0-18.916-20.931-30.399-36.885-20.248L160 252.309V56c0-13.255-10.745-24-24-24H24C10.745 32 0 42.745 0 56v400c0 13.255 10.745 24 24 24h464c13.255 0 24-10.745 24-24V184.029c0-18.917-20.931-30.399-36.885-20.248z"},"map-pin":{"viewBox":"0 0 288 512","path":"M112 316.94v156.69l22.02 33.02c4.75 7.12 15.22 7.12 19.97 0L176 473.63V316.94c-10.39 1.92-21.06 3.06-32 3.06s-21.61-1.14-32-3.06zM144 0C64.47 0 0 64.47 0 144s64.47 144 144 144 144-64.47 144-144S223.53 0 144 0zm0 76c-37.5 0-68 30.5-68 68 0 6.62-5.38 12-12 12s-12-5.38-12-12c0-50.73 41.28-92 92-92 6.62 0 12 5.38 12 12s-5.38 12-12 12z"},"map-signs":{"viewBox":"0 0 512 512","path":"M507.31 84.69L464 41.37c-6-6-14.14-9.37-22.63-9.37H288V16c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v16H56c-13.25 0-24 10.75-24 24v80c0 13.25 10.75 24 24 24h385.37c8.49 0 16.62-3.37 22.63-9.37l43.31-43.31c6.25-6.26 6.25-16.38 0-22.63zM224 496c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V384h-64v112zm232-272H288v-32h-64v32H70.63c-8.49 0-16.62 3.37-22.63 9.37L4.69 276.69c-6.25 6.25-6.25 16.38 0 22.63L48 342.63c6 6 14.14 9.37 22.63 9.37H456c13.25 0 24-10.75 24-24v-80c0-13.25-10.75-24-24-24z"},"map":{"viewBox":"0 0 576 512","path":"M0 117.66v346.32c0 11.32 11.43 19.06 21.94 14.86L160 416V32L20.12 87.95A32.006 32.006 0 0 0 0 117.66zM192 416l192 64V96L192 32v384zM554.06 33.16L416 96v384l139.88-55.95A31.996 31.996 0 0 0 576 394.34V48.02c0-11.32-11.43-19.06-21.94-14.86z"},"comment-dots":{"viewBox":"0 0 512 512","path":"M256 32C114.6 32 0 125.1 0 240c0 49.6 21.4 95 57 130.7C44.5 421.1 2.7 466 2.2 466.5c-2.2 2.3-2.8 5.7-1.5 8.7S4.8 480 8 480c66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 141.4 0 256-93.1 256-208S397.4 32 256 32zM128 272c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"},"pause-circle":{"viewBox":"0 0 512 512","path":"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm-16 328c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v160zm112 0c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v160z"},"stop-circle":{"viewBox":"0 0 512 512","path":"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm96 328c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h160c8.8 0 16 7.2 16 16v160z"},"shopping-bag":{"viewBox":"0 0 448 512","path":"M352 160v-32C352 57.42 294.579 0 224 0 153.42 0 96 57.42 96 128v32H0v272c0 44.183 35.817 80 80 80h288c44.183 0 80-35.817 80-80V160h-96zm-192-32c0-35.29 28.71-64 64-64s64 28.71 64 64v32H160v-32zm160 120c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24zm-192 0c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24z"},"shopping-basket":{"viewBox":"0 0 576 512","path":"M576 216v16c0 13.255-10.745 24-24 24h-8l-26.113 182.788C514.509 462.435 494.257 480 470.37 480H105.63c-23.887 0-44.139-17.565-47.518-41.212L32 256h-8c-13.255 0-24-10.745-24-24v-16c0-13.255 10.745-24 24-24h67.341l106.78-146.821c10.395-14.292 30.407-17.453 44.701-7.058 14.293 10.395 17.453 30.408 7.058 44.701L170.477 192h235.046L326.12 82.821c-10.395-14.292-7.234-34.306 7.059-44.701 14.291-10.395 34.306-7.235 44.701 7.058L484.659 192H552c13.255 0 24 10.745 24 24zM312 392V280c0-13.255-10.745-24-24-24s-24 10.745-24 24v112c0 13.255 10.745 24 24 24s24-10.745 24-24zm112 0V280c0-13.255-10.745-24-24-24s-24 10.745-24 24v112c0 13.255 10.745 24 24 24s24-10.745 24-24zm-224 0V280c0-13.255-10.745-24-24-24s-24 10.745-24 24v112c0 13.255 10.745 24 24 24s24-10.745 24-24z"},"hashtag":{"viewBox":"0 0 448 512","path":"M440.667 182.109l7.143-40c1.313-7.355-4.342-14.109-11.813-14.109h-74.81l14.623-81.891C377.123 38.754 371.468 32 363.997 32h-40.632a12 12 0 0 0-11.813 9.891L296.175 128H197.54l14.623-81.891C213.477 38.754 207.822 32 200.35 32h-40.632a12 12 0 0 0-11.813 9.891L132.528 128H53.432a12 12 0 0 0-11.813 9.891l-7.143 40C33.163 185.246 38.818 192 46.289 192h74.81L98.242 320H19.146a12 12 0 0 0-11.813 9.891l-7.143 40C-1.123 377.246 4.532 384 12.003 384h74.81L72.19 465.891C70.877 473.246 76.532 480 84.003 480h40.632a12 12 0 0 0 11.813-9.891L151.826 384h98.634l-14.623 81.891C234.523 473.246 240.178 480 247.65 480h40.632a12 12 0 0 0 11.813-9.891L315.472 384h79.096a12 12 0 0 0 11.813-9.891l7.143-40c1.313-7.355-4.342-14.109-11.813-14.109h-74.81l22.857-128h79.096a12 12 0 0 0 11.813-9.891zM261.889 320h-98.634l22.857-128h98.634l-22.857 128z"},"percent":{"viewBox":"0 0 448 512","path":"M112 224c61.9 0 112-50.1 112-112S173.9 0 112 0 0 50.1 0 112s50.1 112 112 112zm0-160c26.5 0 48 21.5 48 48s-21.5 48-48 48-48-21.5-48-48 21.5-48 48-48zm224 224c-61.9 0-112 50.1-112 112s50.1 112 112 112 112-50.1 112-112-50.1-112-112-112zm0 160c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zM392.3.2l31.6-.1c19.4-.1 30.9 21.8 19.7 37.8L77.4 501.6a23.95 23.95 0 0 1-19.6 10.2l-33.4.1c-19.5 0-30.9-21.9-19.7-37.8l368-463.7C377.2 4 384.5.2 392.3.2z"},"universal-access":{"viewBox":"0 0 512 512","path":"M256 48c114.953 0 208 93.029 208 208 0 114.953-93.029 208-208 208-114.953 0-208-93.029-208-208 0-114.953 93.029-208 208-208m0-40C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 56C149.961 64 64 149.961 64 256s85.961 192 192 192 192-85.961 192-192S362.039 64 256 64zm0 44c19.882 0 36 16.118 36 36s-16.118 36-36 36-36-16.118-36-36 16.118-36 36-36zm117.741 98.023c-28.712 6.779-55.511 12.748-82.14 15.807.851 101.023 12.306 123.052 25.037 155.621 3.617 9.26-.957 19.698-10.217 23.315-9.261 3.617-19.699-.957-23.316-10.217-8.705-22.308-17.086-40.636-22.261-78.549h-9.686c-5.167 37.851-13.534 56.208-22.262 78.549-3.615 9.255-14.05 13.836-23.315 10.217-9.26-3.617-13.834-14.056-10.217-23.315 12.713-32.541 24.185-54.541 25.037-155.621-26.629-3.058-53.428-9.027-82.141-15.807-8.6-2.031-13.926-10.648-11.895-19.249s10.647-13.926 19.249-11.895c96.686 22.829 124.283 22.783 220.775 0 8.599-2.03 17.218 3.294 19.249 11.895 2.029 8.601-3.297 17.219-11.897 19.249z"},"blind":{"viewBox":"0 0 384 512","path":"M380.15 510.837a8 8 0 0 1-10.989-2.687l-125.33-206.427a31.923 31.923 0 0 0 12.958-9.485l126.048 207.608a8 8 0 0 1-2.687 10.991zM142.803 314.338l-32.54 89.485 36.12 88.285c6.693 16.36 25.377 24.192 41.733 17.501 16.357-6.692 24.193-25.376 17.501-41.734l-62.814-153.537zM96 88c24.301 0 44-19.699 44-44S120.301 0 96 0 52 19.699 52 44s19.699 44 44 44zm154.837 169.128l-120-152c-4.733-5.995-11.75-9.108-18.837-9.112V96H80v.026c-7.146.003-14.217 3.161-18.944 9.24L0 183.766v95.694c0 13.455 11.011 24.791 24.464 24.536C37.505 303.748 48 293.1 48 280v-79.766l16-20.571v140.698L9.927 469.055c-6.04 16.609 2.528 34.969 19.138 41.009 16.602 6.039 34.968-2.524 41.009-19.138L136 309.638V202.441l-31.406-39.816a4 4 0 1 1 6.269-4.971l102.3 129.217c9.145 11.584 24.368 11.339 33.708 3.965 10.41-8.216 12.159-23.334 3.966-33.708z"},"audio-description":{"viewBox":"0 0 512 512","path":"M162.925 238.709l8.822 30.655h-25.606l9.041-30.652c1.277-4.421 2.651-9.994 3.872-15.245 1.22 5.251 2.594 10.823 3.871 15.242zm166.474-32.099h-14.523v98.781h14.523c29.776 0 46.175-17.678 46.175-49.776 0-32.239-17.49-49.005-46.175-49.005zM512 112v288c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48zM245.459 336.139l-57.097-168A12.001 12.001 0 0 0 177 160h-35.894a12.001 12.001 0 0 0-11.362 8.139l-57.097 168C70.003 343.922 75.789 352 84.009 352h29.133a12 12 0 0 0 11.535-8.693l8.574-29.906h51.367l8.793 29.977A12 12 0 0 0 204.926 352h29.172c8.22 0 14.006-8.078 11.361-15.861zm184.701-80.525c0-58.977-37.919-95.614-98.96-95.614h-57.366c-6.627 0-12 5.373-12 12v168c0 6.627 5.373 12 12 12H331.2c61.041 0 98.96-36.933 98.96-96.386z"},"phone-volume":{"viewBox":"0 0 384 512","path":"M97.333 506.966c-129.874-129.874-129.681-340.252 0-469.933 5.698-5.698 14.527-6.632 21.263-2.422l64.817 40.513a17.187 17.187 0 0 1 6.849 20.958l-32.408 81.021a17.188 17.188 0 0 1-17.669 10.719l-55.81-5.58c-21.051 58.261-20.612 122.471 0 179.515l55.811-5.581a17.188 17.188 0 0 1 17.669 10.719l32.408 81.022a17.188 17.188 0 0 1-6.849 20.958l-64.817 40.513a17.19 17.19 0 0 1-21.264-2.422zM247.126 95.473c11.832 20.047 11.832 45.008 0 65.055-3.95 6.693-13.108 7.959-18.718 2.581l-5.975-5.726c-3.911-3.748-4.793-9.622-2.261-14.41a32.063 32.063 0 0 0 0-29.945c-2.533-4.788-1.65-10.662 2.261-14.41l5.975-5.726c5.61-5.378 14.768-4.112 18.718 2.581zm91.787-91.187c60.14 71.604 60.092 175.882 0 247.428-4.474 5.327-12.53 5.746-17.552.933l-5.798-5.557c-4.56-4.371-4.977-11.529-.93-16.379 49.687-59.538 49.646-145.933 0-205.422-4.047-4.85-3.631-12.008.93-16.379l5.798-5.557c5.022-4.813 13.078-4.394 17.552.933zm-45.972 44.941c36.05 46.322 36.108 111.149 0 157.546-4.39 5.641-12.697 6.251-17.856 1.304l-5.818-5.579c-4.4-4.219-4.998-11.095-1.285-15.931 26.536-34.564 26.534-82.572 0-117.134-3.713-4.836-3.115-11.711 1.285-15.931l5.818-5.579c5.159-4.947 13.466-4.337 17.856 1.304z"},"braille":{"viewBox":"0 0 640 512","path":"M128 256c0 35.346-28.654 64-64 64S0 291.346 0 256s28.654-64 64-64 64 28.654 64 64zM64 384c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-352C28.654 32 0 60.654 0 96s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zm160 192c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0 160c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-352c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zm224 192c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0 160c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-352c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zm160 192c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0 160c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-320c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32z"},"assistive-listening-systems":{"viewBox":"0 0 512 512","path":"M216 260c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-44.112 35.888-80 80-80s80 35.888 80 80c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-13.234-10.767-24-24-24s-24 10.766-24 24zm24-176c-97.047 0-176 78.953-176 176 0 15.464 12.536 28 28 28s28-12.536 28-28c0-66.168 53.832-120 120-120s120 53.832 120 120c0 75.164-71.009 70.311-71.997 143.622L288 404c0 28.673-23.327 52-52 52-15.464 0-28 12.536-28 28s12.536 28 28 28c59.475 0 107.876-48.328 108-107.774.595-34.428 72-48.24 72-144.226 0-97.047-78.953-176-176-176zm-80 236c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zM32 448c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm480-187.993c0-1.518-.012-3.025-.045-4.531C510.076 140.525 436.157 38.47 327.994 1.511c-14.633-4.998-30.549 2.809-35.55 17.442-5 14.633 2.81 30.549 17.442 35.55 85.906 29.354 144.61 110.513 146.077 201.953l.003.188c.026 1.118.033 2.236.033 3.363 0 15.464 12.536 28 28 28s28.001-12.536 28.001-28zM152.971 439.029l-80-80L39.03 392.97l80 80 33.941-33.941z"},"american-sign-language-interpreting":{"viewBox":"0 0 640 512","path":"M290.547 189.039c-20.295-10.149-44.147-11.199-64.739-3.89 42.606 0 71.208 20.475 85.578 50.576 8.576 17.899-5.148 38.071-23.617 38.071 18.429 0 32.211 20.136 23.617 38.071-14.725 30.846-46.123 50.854-80.298 50.854-.557 0-94.471-8.615-94.471-8.615l-66.406 33.347c-9.384 4.693-19.815.379-23.895-7.781L1.86 290.747c-4.167-8.615-1.111-18.897 6.946-23.621l58.072-33.069L108 159.861c6.39-57.245 34.731-109.767 79.743-146.726 11.391-9.448 28.341-7.781 37.51 3.613 9.446 11.394 7.78 28.067-3.612 37.516-12.503 10.559-23.618 22.509-32.509 35.57 21.672-14.729 46.679-24.732 74.186-28.067 14.725-1.945 28.063 8.336 29.73 23.065 1.945 14.728-8.336 28.067-23.062 29.734-16.116 1.945-31.12 7.503-44.178 15.284 26.114-5.713 58.712-3.138 88.079 11.115 13.336 6.669 18.893 22.509 12.224 35.848-6.389 13.06-22.504 18.617-35.564 12.226zm-27.229 69.472c-6.112-12.505-18.338-20.286-32.231-20.286a35.46 35.46 0 0 0-35.565 35.57c0 21.428 17.808 35.57 35.565 35.57 13.893 0 26.119-7.781 32.231-20.286 4.446-9.449 13.614-15.006 23.339-15.284-9.725-.277-18.893-5.835-23.339-15.284zm374.821-37.237c4.168 8.615 1.111 18.897-6.946 23.621l-58.071 33.069L532 352.16c-6.39 57.245-34.731 109.767-79.743 146.726-10.932 9.112-27.799 8.144-37.51-3.613-9.446-11.394-7.78-28.067 3.613-37.516 12.503-10.559 23.617-22.509 32.508-35.57-21.672 14.729-46.679 24.732-74.186 28.067-10.021 2.506-27.552-5.643-29.73-23.065-1.945-14.728 8.336-28.067 23.062-29.734 16.116-1.946 31.12-7.503 44.178-15.284-26.114 5.713-58.712 3.138-88.079-11.115-13.336-6.669-18.893-22.509-12.224-35.848 6.389-13.061 22.505-18.619 35.565-12.227 20.295 10.149 44.147 11.199 64.739 3.89-42.606 0-71.208-20.475-85.578-50.576-8.576-17.899 5.148-38.071 23.617-38.071-18.429 0-32.211-20.136-23.617-38.071 14.033-29.396 44.039-50.887 81.966-50.854l92.803 8.615 66.406-33.347c9.408-4.704 19.828-.354 23.894 7.781l44.455 88.926zm-229.227-18.618c-13.893 0-26.119 7.781-32.231 20.286-4.446 9.449-13.614 15.006-23.339 15.284 9.725.278 18.893 5.836 23.339 15.284 6.112 12.505 18.338 20.286 32.231 20.286a35.46 35.46 0 0 0 35.565-35.57c0-21.429-17.808-35.57-35.565-35.57z"},"deaf":{"viewBox":"0 0 512 512","path":"M216 260c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-44.112 35.888-80 80-80s80 35.888 80 80c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-13.234-10.767-24-24-24s-24 10.766-24 24zm24-176c-97.047 0-176 78.953-176 176 0 15.464 12.536 28 28 28s28-12.536 28-28c0-66.168 53.832-120 120-120s120 53.832 120 120c0 75.164-71.009 70.311-71.997 143.622L288 404c0 28.673-23.327 52-52 52-15.464 0-28 12.536-28 28s12.536 28 28 28c59.475 0 107.876-48.328 108-107.774.595-34.428 72-48.24 72-144.226 0-97.047-78.953-176-176-176zm268.485-52.201L480.2 3.515c-4.687-4.686-12.284-4.686-16.971 0L376.2 90.544c-4.686 4.686-4.686 12.284 0 16.971l28.285 28.285c4.686 4.686 12.284 4.686 16.97 0l87.03-87.029c4.687-4.688 4.687-12.286 0-16.972zM168.97 314.745c-4.686-4.686-12.284-4.686-16.97 0L3.515 463.23c-4.686 4.686-4.686 12.284 0 16.971L31.8 508.485c4.687 4.686 12.284 4.686 16.971 0L197.256 360c4.686-4.686 4.686-12.284 0-16.971l-28.286-28.284z"},"sign-language":{"viewBox":"0 0 448 512","path":"M91.434 483.987c-.307-16.018 13.109-29.129 29.13-29.129h62.293v-5.714H56.993c-16.021 0-29.437-13.111-29.13-29.129C28.16 404.491 40.835 392 56.428 392h126.429v-5.714H29.136c-16.021 0-29.437-13.111-29.13-29.129.297-15.522 12.973-28.013 28.566-28.013h154.286v-5.714H57.707c-16.021 0-29.437-13.111-29.13-29.129.297-15.522 12.973-28.013 28.566-28.013h168.566l-31.085-22.606c-12.762-9.281-15.583-27.149-6.302-39.912 9.281-12.761 27.15-15.582 39.912-6.302l123.361 89.715a34.287 34.287 0 0 1 14.12 27.728v141.136c0 15.91-10.946 29.73-26.433 33.374l-80.471 18.934a137.16 137.16 0 0 1-31.411 3.646H120c-15.593-.001-28.269-12.492-28.566-28.014zm73.249-225.701h36.423l-11.187-8.136c-18.579-13.511-20.313-40.887-3.17-56.536l-13.004-16.7c-9.843-12.641-28.43-15.171-40.88-5.088-12.065 9.771-14.133 27.447-4.553 39.75l36.371 46.71zm283.298-2.103l-5.003-152.452c-.518-15.771-13.722-28.136-29.493-27.619-15.773.518-28.137 13.722-27.619 29.493l1.262 38.415L283.565 11.019c-9.58-12.303-27.223-14.63-39.653-5.328-12.827 9.599-14.929 28.24-5.086 40.881l76.889 98.745-4.509 3.511-94.79-121.734c-9.58-12.303-27.223-14.63-39.653-5.328-12.827 9.599-14.929 28.24-5.086 40.881l94.443 121.288-4.509 3.511-77.675-99.754c-9.58-12.303-27.223-14.63-39.653-5.328-12.827 9.599-14.929 28.24-5.086 40.881l52.053 66.849c12.497-8.257 29.055-8.285 41.69.904l123.36 89.714c10.904 7.93 17.415 20.715 17.415 34.198v16.999l61.064-47.549a34.285 34.285 0 0 0 13.202-28.177z"},"low-vision":{"viewBox":"0 0 576 512","path":"M569.344 231.631C512.96 135.949 407.81 72 288 72c-28.468 0-56.102 3.619-82.451 10.409L152.778 10.24c-7.601-10.858-22.564-13.5-33.423-5.9l-13.114 9.178c-10.86 7.601-13.502 22.566-5.9 33.426l43.131 58.395C89.449 131.73 40.228 174.683 6.682 231.581c-.01.017-.023.033-.034.05-8.765 14.875-8.964 33.528 0 48.739 38.5 65.332 99.742 115.862 172.859 141.349L55.316 244.302A272.194 272.194 0 0 1 83.61 208.39l119.4 170.58h.01l40.63 58.04a330.055 330.055 0 0 0 78.94 1.17l-189.98-271.4a277.628 277.628 0 0 1 38.777-21.563l251.836 356.544c7.601 10.858 22.564 13.499 33.423 5.9l13.114-9.178c10.86-7.601 13.502-22.567 5.9-33.426l-43.12-58.377-.007-.009c57.161-27.978 104.835-72.04 136.81-126.301a47.938 47.938 0 0 0 .001-48.739zM390.026 345.94l-19.066-27.23c24.682-32.567 27.711-76.353 8.8-111.68v.03c0 23.65-19.17 42.82-42.82 42.82-23.828 0-42.82-19.349-42.82-42.82 0-23.65 19.17-42.82 42.82-42.82h.03c-24.75-13.249-53.522-15.643-79.51-7.68l-19.068-27.237C253.758 123.306 270.488 120 288 120c75.162 0 136 60.826 136 136 0 34.504-12.833 65.975-33.974 89.94z"},"envelope-open":{"viewBox":"0 0 512 512","path":"M512 464c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V200.724a48 48 0 0 1 18.387-37.776c24.913-19.529 45.501-35.365 164.2-121.511C199.412 29.17 232.797-.347 256 .003c23.198-.354 56.596 29.172 73.413 41.433 118.687 86.137 139.303 101.995 164.2 121.512A48 48 0 0 1 512 200.724V464zm-65.666-196.605c-2.563-3.728-7.7-4.595-11.339-1.907-22.845 16.873-55.462 40.705-105.582 77.079-16.825 12.266-50.21 41.781-73.413 41.43-23.211.344-56.559-29.143-73.413-41.43-50.114-36.37-82.734-60.204-105.582-77.079-3.639-2.688-8.776-1.821-11.339 1.907l-9.072 13.196a7.998 7.998 0 0 0 1.839 10.967c22.887 16.899 55.454 40.69 105.303 76.868 20.274 14.781 56.524 47.813 92.264 47.573 35.724.242 71.961-32.771 92.263-47.573 49.85-36.179 82.418-59.97 105.303-76.868a7.998 7.998 0 0 0 1.839-10.967l-9.071-13.196z"},"address-book":{"viewBox":"0 0 448 512","path":"M436 160c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h320c26.5 0 48-21.5 48-48v-48h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20zm-228-32c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H118.4C106 384 96 375.4 96 364.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2z"},"address-card":{"viewBox":"0 0 576 512","path":"M528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-352 96c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H86.4C74 384 64 375.4 64 364.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2zM512 312c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-64c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-64c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16z"},"user-circle":{"viewBox":"0 0 496 512","path":"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 96c48.6 0 88 39.4 88 88s-39.4 88-88 88-88-39.4-88-88 39.4-88 88-88zm0 344c-58.7 0-111.3-26.6-146.5-68.2 18.8-35.4 55.6-59.8 98.5-59.8 2.4 0 4.8.4 7.1 1.1 13 4.2 26.6 6.9 40.9 6.9 14.3 0 28-2.7 40.9-6.9 2.3-.7 4.7-1.1 7.1-1.1 42.9 0 79.7 24.4 98.5 59.8C359.3 421.4 306.7 448 248 448z"},"id-badge":{"viewBox":"0 0 384 512","path":"M336 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM144 32h96c8.8 0 16 7.2 16 16s-7.2 16-16 16h-96c-8.8 0-16-7.2-16-16s7.2-16 16-16zm48 128c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H102.4C90 416 80 407.4 80 396.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2z"},"id-card":{"viewBox":"0 0 576 512","path":"M528 32H48C21.5 32 0 53.5 0 80v16h576V80c0-26.5-21.5-48-48-48zM0 432c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V128H0v304zm352-232c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16zm0 64c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16zm0 64c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16zM176 192c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zM67.1 396.2C75.5 370.5 99.6 352 128 352h8.2c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h8.2c28.4 0 52.5 18.5 60.9 44.2 3.2 9.9-5.2 19.8-15.6 19.8H82.7c-10.4 0-18.8-10-15.6-19.8z"},"thermometer-full":{"viewBox":"0 0 256 512","path":"M224 96c0-53.019-42.981-96-96-96S32 42.981 32 96v203.347C12.225 321.756.166 351.136.002 383.333c-.359 70.303 56.787 128.176 127.089 128.664.299.002.61.003.909.003 70.698 0 128-57.304 128-128 0-32.459-12.088-62.09-32-84.653V96zm-96 368l-.576-.002c-43.86-.304-79.647-36.544-79.423-80.42.173-33.98 19.266-51.652 31.999-66.08V96c0-26.467 21.533-48 48-48s48 21.533 48 48v221.498c12.63 14.312 32 32.164 32 66.502 0 44.112-35.888 80-80 80zm64-80c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-23.685 12.876-44.349 32-55.417V96c0-17.673 14.327-32 32-32s32 14.327 32 32v232.583c19.124 11.068 32 31.732 32 55.417z"},"thermometer-three-quarters":{"viewBox":"0 0 256 512","path":"M192 384c0 35.346-28.654 64-64 64-35.346 0-64-28.654-64-64 0-23.685 12.876-44.349 32-55.417V160c0-17.673 14.327-32 32-32s32 14.327 32 32v168.583c19.124 11.068 32 31.732 32 55.417zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"},"thermometer-half":{"viewBox":"0 0 256 512","path":"M192 384c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-23.685 12.876-44.349 32-55.417V224c0-17.673 14.327-32 32-32s32 14.327 32 32v104.583c19.124 11.068 32 31.732 32 55.417zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"},"thermometer-quarter":{"viewBox":"0 0 256 512","path":"M192 384c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-23.685 12.876-44.349 32-55.417V288c0-17.673 14.327-32 32-32s32 14.327 32 32v40.583c19.124 11.068 32 31.732 32 55.417zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"},"thermometer-empty":{"viewBox":"0 0 256 512","path":"M192 384c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-35.346 28.654-64 64-64s64 28.654 64 64zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"},"shower":{"viewBox":"0 0 512 512","path":"M389.66 135.6L231.6 293.66c-9.37 9.37-24.57 9.37-33.94 0l-11.32-11.32c-9.37-9.37-9.37-24.57 0-33.94l.11-.11c-34.03-40.21-35.16-98.94-3.39-140.38-11.97-7.55-26.14-11.91-41.3-11.91C98.88 96 64 130.88 64 173.76V480H0V173.76C0 95.59 63.59 32 141.76 32c36.93 0 70.61 14.2 95.86 37.42 35.9-11.51 76.5-4.5 106.67 21.03l.11-.11c9.37-9.37 24.57-9.37 33.94 0l11.32 11.32c9.37 9.37 9.37 24.57 0 33.94zM384 208c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm32 0c0-8.837 7.163-16 16-16s16 7.163 16 16-7.163 16-16 16-16-7.163-16-16zm96 0c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-160 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm48-16c8.837 0 16 7.163 16 16s-7.163 16-16 16-16-7.163-16-16 7.163-16 16-16zm80 16c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-160 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm32 0c0-8.837 7.163-16 16-16s16 7.163 16 16-7.163 16-16 16-16-7.163-16-16zm96 0c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-128 32c0-8.837 7.163-16 16-16s16 7.163 16 16-7.163 16-16 16-16-7.163-16-16zm96 0c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-96 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm64 0c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-32 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-32 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16z"},"bath":{"viewBox":"0 0 512 512","path":"M488 256H80V112c0-17.645 14.355-32 32-32 11.351 0 21.332 5.945 27.015 14.88-16.492 25.207-14.687 59.576 6.838 83.035-4.176 4.713-4.021 11.916.491 16.428l11.314 11.314c4.686 4.686 12.284 4.686 16.971 0l95.03-95.029c4.686-4.686 4.686-12.284 0-16.971l-11.314-11.314c-4.512-4.512-11.715-4.666-16.428-.491-17.949-16.469-42.294-21.429-64.178-15.365C163.281 45.667 139.212 32 112 32c-44.112 0-80 35.888-80 80v144h-8c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h8v32c0 28.43 12.362 53.969 32 71.547V456c0 13.255 10.745 24 24 24h16c13.255 0 24-10.745 24-24v-8h256v8c0 13.255 10.745 24 24 24h16c13.255 0 24-10.745 24-24v-32.453c19.638-17.578 32-43.117 32-71.547v-32h8c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24z"},"podcast":{"viewBox":"0 0 448 512","path":"M267.429 488.563C262.286 507.573 242.858 512 224 512c-18.857 0-38.286-4.427-43.428-23.437C172.927 460.134 160 388.898 160 355.75c0-35.156 31.142-43.75 64-43.75s64 8.594 64 43.75c0 32.949-12.871 104.179-20.571 132.813zM156.867 288.554c-18.693-18.308-29.958-44.173-28.784-72.599 2.054-49.724 42.395-89.956 92.124-91.881C274.862 121.958 320 165.807 320 220c0 26.827-11.064 51.116-28.866 68.552-2.675 2.62-2.401 6.986.628 9.187 9.312 6.765 16.46 15.343 21.234 25.363 1.741 3.654 6.497 4.66 9.449 1.891 28.826-27.043 46.553-65.783 45.511-108.565-1.855-76.206-63.595-138.208-139.793-140.369C146.869 73.753 80 139.215 80 220c0 41.361 17.532 78.7 45.55 104.989 2.953 2.771 7.711 1.77 9.453-1.887 4.774-10.021 11.923-18.598 21.235-25.363 3.029-2.2 3.304-6.566.629-9.185zM224 0C100.204 0 0 100.185 0 224c0 89.992 52.602 165.647 125.739 201.408 4.333 2.118 9.267-1.544 8.535-6.31-2.382-15.512-4.342-30.946-5.406-44.339-.146-1.836-1.149-3.486-2.678-4.512-47.4-31.806-78.564-86.016-78.187-147.347.592-96.237 79.29-174.648 175.529-174.899C320.793 47.747 400 126.797 400 224c0 61.932-32.158 116.49-80.65 147.867-.999 14.037-3.069 30.588-5.624 47.23-.732 4.767 4.203 8.429 8.535 6.31C395.227 389.727 448 314.187 448 224 448 100.205 347.815 0 224 0zm0 160c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64z"},"window-maximize":{"viewBox":"0 0 512 512","path":"M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-16 160H64v-84c0-6.6 5.4-12 12-12h360c6.6 0 12 5.4 12 12v84z"},"window-minimize":{"viewBox":"0 0 512 512","path":"M464 352H48c-26.5 0-48 21.5-48 48v32c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48v-32c0-26.5-21.5-48-48-48z"},"window-restore":{"viewBox":"0 0 512 512","path":"M512 48v288c0 26.5-21.5 48-48 48h-48V176c0-44.1-35.9-80-80-80H128V48c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zM384 176v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zm-68 28c0-6.6-5.4-12-12-12H76c-6.6 0-12 5.4-12 12v52h252v-52z"},"window-close":{"viewBox":"0 0 512 512","path":"M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-83.6 290.5c4.8 4.8 4.8 12.6 0 17.4l-40.5 40.5c-4.8 4.8-12.6 4.8-17.4 0L256 313.3l-66.5 67.1c-4.8 4.8-12.6 4.8-17.4 0l-40.5-40.5c-4.8-4.8-4.8-12.6 0-17.4l67.1-66.5-67.1-66.5c-4.8-4.8-4.8-12.6 0-17.4l40.5-40.5c4.8-4.8 12.6-4.8 17.4 0l66.5 67.1 66.5-67.1c4.8-4.8 12.6-4.8 17.4 0l40.5 40.5c4.8 4.8 4.8 12.6 0 17.4L313.3 256l67.1 66.5z"},"microchip":{"viewBox":"0 0 512 512","path":"M416 48v416c0 26.51-21.49 48-48 48H144c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h224c26.51 0 48 21.49 48 48zm96 58v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42V88h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zm0 96v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42v-48h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zm0 96v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42v-48h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zm0 96v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42v-48h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zM30 376h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6zm0-96h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6zm0-96h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6zm0-96h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6z"}}')},t1=t=>{let{iconName:n,iconData:s,hexFill:c,w:d=25,h:w=25}=t;const P={viewBox:"0 0 34 34",path:'<path fill-rule="evenodd" clip-rule="evenodd" d="M4.14453 0.145264C1.93539 0.145264 0.144531 1.93613 0.144531 4.14527V11.5001C0.144531 13.7092 1.93539 15.5001 4.14453 15.5001H11.4994C13.7085 15.5001 15.4994 13.7092 15.4994 11.5001V4.14526C15.4994 1.93612 13.7085 0.145264 11.4994 0.145264H4.14453ZM22.5 0.145264C20.2909 0.145264 18.5 1.93613 18.5 4.14527V11.5001C18.5 13.7092 20.2909 15.5001 22.5 15.5001H29.8548C32.064 15.5001 33.8548 13.7092 33.8548 11.5001V4.14526C33.8548 1.93612 32.064 0.145264 29.8548 0.145264H22.5ZM0.144531 22.5C0.144531 20.2909 1.93539 18.5 4.14453 18.5H11.4994C13.7085 18.5 15.4994 20.2909 15.4994 22.5V29.8548C15.4994 32.064 13.7085 33.8548 11.4994 33.8548H4.14453C1.93539 33.8548 0.144531 32.064 0.144531 29.8548V22.5ZM22.5 18.5C20.2909 18.5 18.5 20.2909 18.5 22.5V29.8548C18.5 32.064 20.2909 33.8548 22.5 33.8548H29.8548C32.064 33.8548 33.8548 32.064 33.8548 29.8548V22.5C33.8548 20.2909 32.064 18.5 29.8548 18.5H22.5Z" fill="#A5ADB3"></path>',iconName:"ze-search",iconColor:"rgba(0, 0, 0, 1)",iconSize:34,svgAttr:{fill:void 0,stroke:void 0}},F=el.wIcon("",5,0,0,d,w,P);if(s)F.iconData=s;else if(n){const X=cg[n];X&&(F.iconData.viewBox=X.viewBox,F.iconData.path='<path d="'+X.path+'"></path>')}return c&&(F.fill={fillIsVisible:!0,fill:"solid",solidColor:Oa(c)}),F},Y1=t=>{const n=c=>{let{name:d="",selected:w=!1}=c;return{data:{name:d,linkCids:"",expanded:!1,selected:w,designExpanded:!1},children:[]}},s=[];for(let c=0;c<t.length;c++){const d=t[c];let w;c===0?w=n({name:d,selected:!0}):w=n({name:d}),s.push(w)}return s},$f=(t,n)=>{const s=w=>{let{name:P="",selected:F=!1}=w;return{data:{name:P,linkCids:"",expanded:!1,selected:F,designExpanded:!1,icon:void 0},children:[]}},c=[],d=[{data:{name:"\u6807\u7B7E1",linkCids:"",expanded:!1,selected:!0,icon:{path:'<path d="M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 0 0-44.4 0L77.5 505a63.9 63.9 0 0 0-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0 0 18.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"></path>',viewBox:"64 64 896 896"}},children:[]},{data:{name:"\u6807\u7B7E2",linkCids:"",expanded:!1,selected:!1,icon:{path:'<path d="M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0 0 68.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z"></path>',viewBox:"64 64 896 896"}},children:[]},{data:{name:"\u6807\u7B7E3",linkCids:"",expanded:!1,selected:!1,icon:{path:'<path d="M854.6 289.1a362.49 362.49 0 0 0-79.9-115.7 370.83 370.83 0 0 0-118.2-77.8C610.7 76.6 562.1 67 512 67c-50.1 0-98.7 9.6-144.5 28.5-44.3 18.3-84 44.5-118.2 77.8A363.6 363.6 0 0 0 169.4 289c-19.5 45-29.4 92.8-29.4 142 0 70.6 16.9 140.9 50.1 208.7 26.7 54.5 64 107.6 111 158.1 80.3 86.2 164.5 138.9 188.4 153a43.9 43.9 0 0 0 22.4 6.1c7.8 0 15.5-2 22.4-6.1 23.9-14.1 108.1-66.8 188.4-153 47-50.4 84.3-103.6 111-158.1C867.1 572 884 501.8 884 431.1c0-49.2-9.9-97-29.4-142zM512 880.2c-65.9-41.9-300-207.8-300-449.1 0-77.9 31.1-151.1 87.6-206.3C356.3 169.5 431.7 139 512 139s155.7 30.5 212.4 85.9C780.9 280 812 353.2 812 431.1c0 241.3-234.1 407.2-300 449.1zm0-617.2c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 0 1 512 551c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 0 1 400 439c0-29.9 11.7-58 32.8-79.2C454 338.6 482.1 327 512 327c29.9 0 58 11.6 79.2 32.8C612.4 381 624 409.1 624 439c0 29.9-11.6 58-32.8 79.2z"></path>',viewBox:"64 64 896 896"}},children:[]},{data:{name:"\u6807\u7B7E4",linkCids:"",expanded:!1,selected:!1,icon:{path:'<path d="M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"></path>',viewBox:"64 64 896 896"}},children:[]}];for(let w=0;w<t.length;w++){const P=t[w],F=s({name:P,selected:w===0}),X=Math.min(w,d.length-1),ee=cg[n[w]];ee?F.data.icon={path:'<path d="'+ee.path+'"></path>',viewBox:ee.viewBox}:F.data.icon=d[X].data.icon,c.push(F)}return c},Z1={protoBlue:"#007AFF",fontWhite:"#FFFFFF"},qf=t=>{switch(t){case"input":case"buttons":return[nn,98];case"picker":case"stepper":case"switch":return[nn,60];case"selector":return[nn,100];case"radio":case"checkBox":return[nn,136];case"slider":return[nn,80];case"rate":return[nn,80];default:return[nn,100]}},e4=t=>{let{widget:n,canvasKey:s,canvasH:c}=t,d=0;const w=()=>{const He=[],tt=ip(),It=c+d;tt.fill={fillIsVisible:!0,fill:"solid",solidColor:Oa("#F4F6F9")},tt.w=358,tt.h=46,tt.x=16+tt.w/2,tt.y=It+41+tt.h/2,tt.borderRadius=14,He.push(Ma({hotAttr:tt,sup:s}));const Nt=oc(I18N.ChatGPT.enter_text,{h:18,w:326,lineHeight:19});return Nt.x=32+Nt.w/2,Nt.y=It+55+Nt.h/2,Nt.richTextV1.textColor="rgba(180,180,180,1)",He.push(Ma({hotAttr:Nt,sup:s})),He},P=()=>{const He=el[yo.x.WDigitalStepper]("");return He.w=96,He.x=278+He.w/2,He.fill={fillIsVisible:!0,fill:"solid",solidColor:Oa("#F2F2F7")},He.border.bdrIsVisible=!1,[Ma({hotAttr:He,sup:s})]},F=()=>{const He=el[yo.x.WIOSSwitch]("");return He.w=32,He.h=20,He.x=342+He.w/2,He.switch.checkedTrackColor=Oa("#1685FC"),[Ma({hotAttr:He,sup:s})]},X=He=>{const tt=[],Lt=He.length,Xt=Lt===1?"single":Lt===2?"double":"triple",_o=Xt==="double"?16:Xt==="triple"?12:0,co=Xt==="single"?342:Xt==="double"?163:Xt==="triple"?106:0;for(const[yn,An]of He.entries()){let In={};Xt==="single"?In=hh({w:co,h:44}):Xt==="double"?yn===1?In=hh({w:co,h:44}):In=hh({w:co,h:44,hexFill:"#F2F2F7",hexFontColor:"#000000"}):Xt==="triple"&&(In=hh({w:co,h:44,hexFill:"#F2F2F7",hexFontColor:"#000000"})),In.x=jr(24+yn*(co+_o),In),In.textV0.text=An,In.textV0.fontSize=16,tt.push(Ma({hotAttr:In,sup:s}))}return tt},ee=He=>{const tt=[],Lt=He.length,Xt=Lt===2?173:Lt===3?111:81,_o=32;for(const[co,yn]of He.entries()){const An=co===0?Sm(yn,{w:Xt,h:_o,bold:!0,hexFill:Z1.protoBlue,textColor:Z1.fontWhite}):Sm(yn,{w:Xt,h:_o,hexFill:"#F2F2F7",textColor:"#000000",bold:!1});An.x=jr(16+co*12+co*Xt,An),An.borderRadius=20,tt.push(Ma({hotAttr:An,sup:s}))}return tt},pe=He=>{const tt=[],It=el[yo.x.WSelectionControlRadio]("wSelectionControl"),Nt=He.options.length;It.h=Nt===2?68:Nt===3?114:Nt===4?160:64,It.w=143,It.x=jr(16,It),It.optionData=Y1(He.options),tt.push(Ma({hotAttr:It,sup:s}));const Lt=h2({hexBdrColor:"#ebeef2"});Lt.x=jr(41,Lt);const Xt=Array(He.options.length).fill(Ma({hotAttr:Lt,sup:s}));return tt.push(...Xt),tt},ye=He=>{const tt=[],It=el[yo.x.WSelectionControlCheckbox]("wSelectionControl"),Nt=He.options.length;It.h=Nt===2?68:Nt===3?114:Nt===4?160:64,It.w=143,It.x=jr(16,It),It.optionData=Y1(He.options),tt.push(Ma({hotAttr:It,sup:s}));const Lt=h2({hexBdrColor:"#ebeef2"});Lt.x=jr(41,Lt);const Xt=Array(He.options.length).fill(Ma({hotAttr:Lt,sup:s}));return tt.push(...Xt),tt},Ae=()=>{const He=el[yo.x.WSlider]("wSlider");return He.w=358,He.x=16+He.w/2,[Ma({hotAttr:He,sup:s})]},we=(He,tt)=>{const It=el.wDropMenu("wSlider");It.textV0.text=He,It.textV0.fontSize=16,It.optionData=Y1(tt).map(Lt=>(Lt.data.selected=!1,Lt)),It.border.bdrIsVisible=!1;const Nt=d+c;return It.w=372,It.h=60,It.x=jr(9,It),It.y=Nt+It.h/2,d+=It.h,[Ma({hotAttr:It,sup:s})]},_e=He=>{const tt=[],It={viewBox:"0 0 24 24",path:'<path d="M22 10.0999C22.1 9.59994 21.7 8.99994 21.2 8.99994L15.5 8.19994L12.9 2.99994C12.8 2.79994 12.7 2.69994 12.5 2.59994C12 2.29994 11.4 2.49994 11.1 2.99994L8.6 8.19994L2.9 8.99994C2.6 8.99994 2.4 9.09994 2.3 9.29994C1.9 9.69994 1.9 10.2999 2.3 10.6999L6.4 14.6999L5.4 20.3999C5.4 20.5999 5.4 20.7999 5.5 20.9999C5.8 21.4999 6.4 21.6999 6.9 21.3999L12 18.6999L17.1 21.3999C17.2 21.4999 17.4 21.4999 17.6 21.4999C17.7 21.4999 17.7 21.4999 17.8 21.4999C18.3 21.3999 18.7 20.8999 18.6 20.2999L17.6 14.5999L21.7 10.5999C21.9 10.4999 22 10.2999 22 10.0999Z" fill="#FFC043"></path>',iconName:"\u56FE\u6807",iconColor:"#FFC043",iconSize:24,svgAttr:{fill:void 0,stroke:void 0}};let Nt=0;for(let Lt=0;Lt<He;Lt++){const Xt=t1({iconData:It,hexFill:"#FFC043"});Xt.x=18+Nt*6+Xt.w/2+Nt*Xt.w,Nt+=1,tt.push(Ma({hotAttr:Xt,sup:s}))}for(let Lt=0;Lt<5-He;Lt++){const Xt=t1({iconData:It});Xt.x=18+Nt*6+Xt.w/2+Nt*Xt.w,Nt+=1,tt.push(Ma({hotAttr:Xt,sup:s}))}return tt},Fe=He=>{let{type:tt,baseItemList:It,title:Nt,sup:Lt}=He;const Xt=[],_o=el[yo.x.WRect](""),co=c+d,[yn,An]=qf(tt);_o.w=yn,_o.h=["radio","checkBox"].includes(tt)?It[0].hotAttr.h+20+41:An,_o.y=Or(co,_o),_o.x=_o.w/2;const In=oc(Nt!=null?Nt:"",{fontSize:16,bold:!0});In.w=358,In.x=jr(16,In),In.y=["stepper","switch"].includes(tt)?_o.y:Or(co+10,In),Xt.push(Ma({hotAttr:In,sup:Lt}));const wn=It.map((_n,Jn)=>{if(["stepper","switch"].includes(tt))_n.hotAttr.y=In.y;else if(["radio","checkBox"].includes(tt)){const rs=Jn===0?0:Jn===1?25:(Jn-1)*46;_n.hotAttr.y=Or(co+41+rs,_n.hotAttr)}else _n.hotAttr.y=Or(co+41,_n.hotAttr);return _n});return Xt.push(...wn),Xt.push(...It),d+=_o.h,Xt},Ye=[];for(const He of n.subs){const{title:tt,type:It}=He;let Nt=[];switch(It){case"input":{Nt=Fe({type:It,baseItemList:w(),sup:s,title:tt});break}case"picker":{Nt=we(tt,He.options);break}case"stepper":{Nt=Fe({type:It,baseItemList:P(),sup:s,title:tt});break}case"switch":Nt=Fe({type:It,baseItemList:F(),sup:s,title:tt});break;case"selector":{Nt=Fe({type:It,baseItemList:ee(He.options),sup:s,title:tt});break}case"radio":{Nt=Fe({type:It,baseItemList:pe(He),sup:s,title:tt});break}case"checkBox":{Nt=Fe({type:It,baseItemList:ye(He),sup:s,title:tt});break}case"slider":{Nt=Fe({type:It,baseItemList:Ae(),sup:s,title:tt});break}case"rate":{Nt=Fe({type:It,baseItemList:_e(He.rateNum),sup:s,title:tt});break}case"buttons":{Nt=Fe({type:It,baseItemList:X(He.buttons),sup:s,title:tt});break}default:break}Ye.push(...Nt)}return{height:d,hiList:Ye}},dg=t=>{let{widget:n,canvasKey:s,canvasH:c}=t;const{images:d}=n,w=el.wCarousel("");w.w=358,w.x=16+w.w/2,w.y=c+w.h/2,w.h=180,w.borderRadius=14;const P=d.map(F=>({url:og({url:F,w:w.w,h:w.h}),name:""}));return w.carousel.slides=d.map(F=>({asset:"",linkCids:"",fillType:"fill"})),{height:w.h,hiList:[Ma({hotAttr:{...w,exts:P},sup:s})]}},t4=t=>({search:{viewBox:"0 0 32 32",path:'<path d="M12.889 20.953c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zM20.447 19.158l7.99 7.99c0.347 0.347 0.347 0.91 0 1.257s-0.91 0.347-1.257 0l-7.981-7.981c-1.703 1.44-3.905 2.308-6.309 2.308-5.4 0-9.778-4.378-9.778-9.778s4.378-9.778 9.778-9.778c5.4 0 9.778 4.378 9.778 9.778 0 2.355-0.833 4.516-2.22 6.204z"></path>',iconName:"ze-search",iconColor:"rgba(0, 0, 0, 1)",iconSize:25,svgAttr:{fill:void 0,stroke:void 0}},more:{viewBox:"0 0 32 32",path:'<path d="M6 14c-1.1 0-2 0.9-2 2s0.9 2 2 2 2-0.9 2-2-0.9-2-2-2zM26 14c-1.1 0-2 0.9-2 2s0.9 2 2 2 2-0.9 2-2-0.9-2-2-2zM16 14c-1.1 0-2 0.9-2 2s0.9 2 2 2 2-0.9 2-2-0.9-2-2-2z"></path>',iconName:"riLine-more-line",iconColor:"rgba(0, 0, 0, 1)",iconSize:25,svgAttr:{fill:void 0,stroke:void 0}}})[t],L=t=>({back:{viewBox:"0 0 32 32",path:'<path d="M9.476 16.257c-0.103-0.435 0.015-0.912 0.355-1.251l10.685-10.685c0.521-0.521 1.365-0.521 1.886 0s0.521 1.365 0 1.886l-9.745 9.745 9.746 9.746c0.521 0.521 0.521 1.365 0 1.886s-1.365 0.521-1.886 0l-10.685-10.685c-0.171-0.171-0.296-0.388-0.354-0.632l-0.002-0.009z"></path>',iconName:"ze-arrow-left",iconColor:"rgba(0, 0, 0, 1)",iconSize:25,svgAttr:{fill:void 0,stroke:void 0}}})[t],U=t=>{let{widget:n,canvasH:s,canvasKey:c}=t;const{leftArea:d,title:w,rightArea:P}=n,F=[],X=ip();if(X.h=45,X.y=s+X.h/2,F.push(Ma({hotAttr:X,sup:c})),d.type==="icon"){const ee=L(d.data);if(ee){const pe=t1({iconData:ee,hexFill:Z1.protoBlue});pe.y=X.y,pe.x=jr(16,pe),F.push(Ma({hotAttr:pe,sup:c}))}}else if(d.type==="text"){const ee=oc(d.data,{textColor:Z1.protoBlue,fontSize:16});ee.x=jr(16,ee),ee.y=X.y,F.push(Ma({hotAttr:ee,sup:c}))}{const ee=oc(w,{fontSize:18,horizontalAlign:"center"});ee.w=130,ee.y=X.y,ee.x=jr(130,ee),F.push(Ma({hotAttr:ee,sup:c}))}if(P.type==="icon"){const ee=t4(P.data);if(ee){const pe=t1({iconData:ee});pe.y=X.y,pe.x=jr(349,pe),P.data==="search"&&(pe.fill={fillIsVisible:!0,fill:"solid",solidColor:Oa(Z1.protoBlue)}),F.push(Ma({hotAttr:pe,sup:c}))}}else if(P.type==="text"){const ee=oc(P.data,{textColor:Z1.protoBlue,fontSize:16,horizontalAlign:"right"});ee.w=114,ee.y=X.y,ee.x=jr(260,ee),F.push(Ma({hotAttr:ee,sup:c}))}return{height:X.h,hiList:F}},ne=t=>{let{canvasKey:n,canvasH:s}=t;const c={viewBox:"0 0 32 32",path:'<path d="M12.889 20.953c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zM20.447 19.158l7.99 7.99c0.347 0.347 0.347 0.91 0 1.257s-0.91 0.347-1.257 0l-7.981-7.981c-1.703 1.44-3.905 2.308-6.309 2.308-5.4 0-9.778-4.378-9.778-9.778s4.378-9.778 9.778-9.778c5.4 0 9.778 4.378 9.778 9.778 0 2.355-0.833 4.516-2.22 6.204z"></path>',iconName:"ze-search",iconColor:"rgba(0, 0, 0, 1)",iconSize:25,svgAttr:{fill:void 0,stroke:void 0}},d=s,w=[],P=ip(358);P.x=jr(16,P),P.h=45,P.y=Or(d,P),P.fill={fillIsVisible:!0,fill:"solid",solidColor:Oa("#F4F6F9")},P.borderRadius=14,w.push(Ma({hotAttr:P,sup:n}));const F=t1({iconData:c,hexFill:"#666666"});F.x=jr(30,F),F.y=P.y,w.push(Ma({hotAttr:F,sup:n}));const X=oc(I18N.ChatGPT.search_text,{w:300,textColor:"#666666"});return X.x=jr(62,X),X.y=P.y,w.push(Ma({hotAttr:X,sup:n})),{height:45,hiList:w}},me=t=>{let{widget:n,canvasKey:s,canvasH:c}=t;const d=el.wMobileTabBars("");d.w=nn,d.x=d.w/2,d.y=c+d.h/2,d.border.bdrIsVisible=!1;const{names:w,icons:P}=n;return d.optionData=$f(w,P),d.mobileTabBars.fontSize=12,{height:d.h,hiList:[Ma({hotAttr:d,sup:s})]}},Ee=t=>{let{widget:n,canvasKey:s,canvasH:c}=t;const d=el.wTabs(""),{names:w}=n;return d.w=w.length===2?146:358,d.x=jr(16,d),d.y=c+d.h/2,d.tabs.checkedFontSize=16,d.tabs.checkedBoldType=1,d.optionData=Y1(w),{height:d.h,hiList:[Ma({hotAttr:d,sup:s})]}},Ue=t=>{let{widget:n,canvasKey:s,canvasH:c}=t;const d=[],w=ip(),{names:P,icons:F}=n;w.h=P.length<7?98:196,w.y=Or(c,w);const X=P.length,ee=()=>[4,8].includes(X)?69:[5,10].includes(X)?43:31,pe=36,ye=36,Ae=18,we=ee(),_e=Math.floor(w.w/(we+pe))+1,Fe=Math.ceil(X/_e),Ye=c,He=0;for(let tt=0;tt<Fe;tt++){const It=Ye+98*tt;for(let Nt=0;Nt<_e;Nt++){const Lt=tt*Fe+Nt,Xt=t1({w:pe,h:ye,iconName:F[Lt]});Xt.x=He+18+Nt*we+(Nt+.5)*Xt.w,Xt.y=Or(It+10,Xt),d.push(Ma({hotAttr:Xt,sup:s}));const _o=oc(P[Lt]);_o.x=Xt.x,_o.h=Ae,_o.w=66,_o.y=Or(It+56,_o),_o.richTextV1.horizontalAlign="center",d.push(Ma({hotAttr:_o,sup:s}))}}return{height:w.h,hiList:d}},at=(t,n)=>t==="icon"||t==="avatar"?{xOffset:86,yOffset:8,w:n==="button"?208:["text","none"].includes(n)?288:n==="icon"?260:0}:t==="image"?{xOffset:116,yOffset:17,w:n==="button"?178:["text","none"].includes(n)?248:n==="icon"?230:0}:t==="none"?{xOffset:16,yOffset:8,w:n==="button"?208:["text","none"].includes(n)?358:n==="icon"?260:0}:{xOffset:0,yOffset:0,w:0},Ht=t=>{let{widget:n,canvasH:s,canvasKey:c}=t;const{LeftAreaStyle:d,RightAreaStyle:w,title:P,list:F}=n,X=Ye=>{let He={x:0,y:0,w:0,h:0};if(d==="icon")return He=t1({iconName:Ye.keyword,w:36,h:36}),He;if(d==="avatar"){const It="/mb-static/2305/avatar/"+Math.floor(Math.random()*20+0)+".png";He=e1({w:50,h:50,image:It,border:{bdrIsVisible:!1,bdrColor:3149642751,bdrWidth:1,bdrStyle:"solid"},borderRadius:26})}else d==="image"&&(He=e1({w:80,h:80,image:Ye.image}));return He},ee=Ye=>{if(w!=="none"){if(w==="button"){const He=hh({hexFill:"#F2F2F7",hexFontColor:"#000000"});return He.textV0.text=S1(Ye.keyword),He}else if(w==="text"){const He=oc(Ye.keyword,{w:114,h:17,textColor:"#666666",fontSize:12});return He.richTextV1.horizontalAlign="right",He}else if(w==="icon")return t1({iconName:Ye.keyword,w:24,h:24})}},pe=[];let ye=0;const Ae=ip(),we=s,_e=0,Fe=oc(P,{w:358,h:44,isVCenter:!0,fontSize:16,bold:!0});Fe.y=Or(we,Fe),Fe.x=jr(_e+16,Fe),ye+=Fe.h,pe.push(Ma({hotAttr:Fe,sup:c}));for(const Ye of F){const{w:He,xOffset:tt,yOffset:It}=at(d,w),Nt=we+ye,Lt=ip();if(Lt.h=d==="image"?92:74,Lt.y=Or(Nt,Ae),d!=="none"){const co=X(Ye.leftArea);d==="icon"||d==="avatar"?(co.x=jr(_e+16,co),co.y=Or(Nt+12,co)):d==="image"&&(co.x=jr(_e+16,co),co.y=Or(Nt+6,co)),pe.push(Ma({hotAttr:co,sup:c}))}const Xt=oc(Ye.title,{w:He,fontSize:14,bold:!0});Xt.x=jr(tt,Xt),Xt.y=Or(Nt+It,Xt),pe.push(Ma({hotAttr:Xt,sup:c}));const _o=oc(Ye.text,{w:He,textColor:"#666666",fontSize:12});if(_o.x=jr(tt,_o),_o.y=Or(Nt+It+14+10,_o),pe.push(Ma({hotAttr:_o,sup:c})),w!=="none"){const co=ee(Ye.rightArea);w==="text"?(co.x=jr(_e+260,co),co.y=Or(Nt+It,co)):w==="button"?(co.x=jr(_e+314,co),co.y=Or(Nt+25,co)):w==="icon"&&(co.x=jr(_e+350,co),co.y=Or(Nt+25,co)),pe.push(Ma({hotAttr:co,sup:c}))}ye+=Lt.h}return{height:ye,hiList:pe}},xo=t=>{let{canvasH:n,canvasKey:s,widget:c}=t;const d=[],w=n,P=0,F=ip();F.h=306,F.y=Or(w,F),d.push(Ma({hotAttr:F,sup:s}));const{title:X,text:ee,buttons:pe,image:ye}=c,Ae=oc(X,{w:358,h:44,isVCenter:!0,fontSize:16,bold:!0});Ae.x=jr(P+16,Ae),Ae.y=Or(w,Ae),d.push(Ma({hotAttr:Ae,sup:s}));const we=e1({w:358,h:180,image:ye});we.x=jr(P+16,we),we.y=Or(w+44,we),d.push(Ma({hotAttr:we,sup:s}));const _e=oc(ee,{w:358,h:34,fontSize:12,textColor:"#666666",lineHeight:17,paraSpacing:0});_e.x=jr(P+16,_e),_e.y=Or(w+234,_e),d.push(Ma({hotAttr:_e,sup:s}));const Fe=80,Ye=28,He=10;for(let tt=0;tt<pe.length;tt++){const It=pe[tt],Nt=hh({w:Fe,h:Ye,hexFill:"#F2F2F7",hexFontColor:"#000000"});Nt.x=P+16+tt*He+(tt+.5)*Fe,Nt.y=Or(w+278,Nt),Nt.textV0.text=S1(It),d.push(Ma({hotAttr:Nt,sup:s}))}return{height:F.h,hiList:d}},Po=t=>{let{canvasH:n,canvasKey:s,widget:c}=t;const{layout:d,title:w,cards:P}=c,F=()=>d==="vertical"?4:["horizontal","grid","waterfall"].includes(d)?1:0,X=60,ee=170,pe=170,ye=140,Ae=140,we=[];let _e=0;const Fe=ip();Fe.y=n+Fe.h/2,we.push(Ma({hotAttr:Fe,sup:s}));const Ye=n,He=oc(w,{isVCenter:!0,bold:!0,fontSize:16});He.w=358,He.h=44,He.x=jr(16,He),He.y=Or(Ye,He),_e+=He.h,we.push(Ma({hotAttr:He,sup:s}));const tt=F();if(d==="horizontal"){let It=0;const Nt=10;for(const Lt of P){const Xt=ip();Xt.fill={fillIsVisible:!0,fill:"solid",solidColor:Oa("#F4F6F9")},Xt.borderRadius=14,Xt.h=241,Xt.w=Ae;const _o=It*Xt.w+(It+1)*16,co=Ye+_e;Xt.y=co+Xt.h/2,Xt.x=_o+Xt.w/2,we.push(Ma({hotAttr:Xt,sup:s}));const yn=oc(Lt.title,{w:124,h:20,fontSize:14,bold:!0});yn.x=jr(_o+8,yn),yn.y=Or(co+148,yn),we.push(Ma({hotAttr:yn,sup:s}));const An=oc(Lt.subTitle,{w:124,h:20,textColor:"#666666",fontSize:12});An.x=jr(_o+8,An),An.y=Or(co+167,An),we.push(Ma({hotAttr:An,sup:s}));const In=oc(Lt.content,{w:124,h:20,textColor:"#666666",fontSize:12});In.x=jr(_o+8,In),In.y=Or(co+186,In),we.push(Ma({hotAttr:In,sup:s}));const wn=e1({w:Xt.w,h:140,image:Lt.image});wn.x=jr(_o,wn),wn.y=Or(co,wn),we.push(Ma({hotAttr:wn,sup:s}));for(let _n=0;_n<Math.min(tt,Lt.buttons.length);_n++){const Jn=Lt.buttons[_n],rs=hh({});rs.x=_o+8+_n*Nt+(_n+.5)*X,rs.y=Or(co+209,rs),rs.textV0.text=S1(Jn),we.push(Ma({hotAttr:rs,sup:s}))}It+=1}_e+=271}else if(d==="vertical")for(const It of P){const Nt=Ye+_e,Lt=16,Xt=ip();Xt.borderRadius=14,Xt.w=358,Xt.h=180,Xt.fill={fillIsVisible:!0,fill:"solid",solidColor:Oa("#F4F6F9")},Xt.y=Or(Nt,Xt),we.push(Ma({hotAttr:Xt,sup:s}));const _o=oc(It.title,{w:198,h:20,fontSize:14,bold:!0});_o.x=jr(Lt+16,_o),_o.y=Or(Nt+26,_o),we.push(Ma({hotAttr:_o,sup:s}));const co=oc(It.subTitle,{w:198,h:20,textColor:"#666666",fontSize:12});co.x=jr(Lt+16,co),co.y=Or(Nt+45,co),we.push(Ma({hotAttr:co,sup:s}));const yn=oc(It.content,{w:198,h:52,textColor:"#666666",fontSize:12,lineHeight:17,paraSpacing:0});yn.x=jr(Lt+16,yn),yn.y=Or(Nt+68,yn),we.push(Ma({hotAttr:yn,sup:s}));const An=e1({w:110,h:110,image:It.image});An.x=jr(Lt+230,An),An.y=Or(Nt+16,An),we.push(Ma({hotAttr:An,sup:s}));const In=15;for(let wn=0;wn<Math.min(tt,It.buttons.length);wn++){const _n=It.buttons[wn],Jn=hh({});Jn.x=Lt+16+wn*In+(wn+.5)*X,Jn.y=Or(Nt+136,Jn),Jn.textV0.text=S1(_n),we.push(Ma({hotAttr:Jn,sup:s}))}_e+=Xt.h+14}else if(d==="waterfall"){let It=0,Nt=He.h,Lt=He.h;for(const[Xt,_o]of P.entries()){const co=Xt%2===0?"even":"odd",yn=co==="odd"?Ye+Lt:Ye+Nt,An=It*pe+(It+1)*16,In=ip();In.fill={fillIsVisible:!0,fill:"solid",solidColor:Oa("#F4F6F9")},In.borderRadius=14,In.h=Xt===1?241:271,In.w=pe,In.y=Or(yn,In),In.x=jr(An,In),we.push(Ma({hotAttr:In,sup:s}));const wn=oc(_o.title,{w:154,h:20,fontSize:14,bold:!0});wn.y=Or(yn+(Xt===1?148:178),wn),wn.x=An+8+wn.w/2,we.push(Ma({hotAttr:wn,sup:s}));const _n=oc(_o.subTitle,{w:154,h:20,textColor:"#666666",fontSize:12});_n.y=Or(yn+(Xt===1?167:197),_n),_n.x=jr(An+8,_n),we.push(Ma({hotAttr:_n,sup:s}));const Jn=oc(_o.content,{w:154,h:20,textColor:"#666666",fontSize:12});Jn.y=Or(yn+46+(Xt===1?140:170),Jn),Jn.x=An+8+Jn.w/2,we.push(Ma({hotAttr:Jn,sup:s}));const rs=e1({w:In.w,h:ee,image:_o.image});Xt===1&&(rs.w=pe,rs.h=ye),rs.x=jr(An,rs),rs.y=Or(yn,rs),we.push(Ma({hotAttr:rs,sup:s}));for(let as=0;as<Math.min(tt,_o.buttons.length);as++){const mi=_o.buttons[as],ha=hh({});ha.x=An+8+as*10+(as+.5)*X,ha.y=Or(yn+(Xt===1?209:239),ha),ha.textV0.text=S1(mi),we.push(Ma({hotAttr:ha,sup:s}))}It+=1,co==="even"?Nt+=In.h+14:Lt+=In.h+14,It===2&&(It=0)}_e+=Nt-He.h}else if(d==="grid"){let Nt=0,Lt=He.h,Xt=He.h;for(const[_o,co]of P.entries()){const yn=_o%2===0?"even":"odd",An=yn==="odd"?Ye+Xt:Ye+Lt,In=ip();In.borderRadius=14;const wn=8;In.fill={fillIsVisible:!0,fill:"solid",solidColor:Oa("#F4F6F9")},In.h=271,In.w=pe;const _n=Nt*In.w+(Nt+1)*16;In.x=jr(_n,In),In.y=Or(An,In),we.push(Ma({hotAttr:In,sup:s}));const Jn=oc(co.title,{w:154,h:20,fontSize:14,bold:!0});Jn.x=jr(_n+wn,Jn),Jn.y=Or(An+178,Jn),we.push(Ma({hotAttr:Jn,sup:s}));const rs=oc(co.subTitle,{w:154,h:20,textColor:"#666666",fontSize:12});rs.x=jr(_n+8,rs),rs.y=Or(An+197,rs),we.push(Ma({hotAttr:rs,sup:s}));const as=oc(co.content,{w:154,h:20,textColor:"#666666",fontSize:12});as.x=jr(_n+wn,as),as.y=Or(An+216,as),we.push(Ma({hotAttr:as,sup:s}));const mi=e1({w:In.w,h:170,image:co.image});mi.x=jr(_n,mi),mi.y=Or(An,mi),we.push(Ma({hotAttr:mi,sup:s}));for(let ha=0;ha<Math.min(tt,co.buttons.length);ha++){const Ca=co.buttons[ha],ms=hh({});ms.x=_n+wn+ha*10+(ha+.5)*X,ms.y=Or(An+239,ms),ms.textV0.text=S1(Ca),we.push(Ma({hotAttr:ms,sup:s}))}Nt+=1,yn==="even"?Lt+=In.h+14:Xt+=In.h+14,Nt===2&&(Nt=0)}_e+=Lt-He.h}return we[0].hotAttr.h=_e,we[0].hotAttr.y=n+_e/2,{height:_e,hiList:we}},nn=390,is=(t,n)=>{let{pageKey:s}=n;const c=[],d=el[yo.x.Canvas]("page");d.device="iphone_14_pro",d.w=nn;let w=0;const P=Ma({prefix:"rc",hotAttr:d,sup:s}),F=P.key,X=el.wIphoneXSB("");X.x=X.w/2,X.y=X.h/2,X.fill={fillIsVisible:!0,fill:"solid",solidColor:Oa("#FFFFFFF0")},c.push(Ma({hotAttr:X,sup:F})),w+=X.h;const ee=[];for(const[pe,ye]of t.page.entries()){if(ye===null)continue;if(ye.type==="tabBar"){ee.push(ye);continue}let Ae={height:0,hiList:[]};switch(ye.type){case"form":Ae=e4({widget:ye,canvasKey:F,canvasH:w});break;case"searchBar":Ae=ne({canvasKey:F,canvasH:w});break;case"swiper":Ae=dg({widget:ye,canvasKey:F,canvasH:w});break;case"tabs":Ae=Ee({widget:ye,canvasKey:F,canvasH:w});break;case"iconGrid":Ae=Ue({widget:ye,canvasKey:F,canvasH:w});break;case"listView":Ae=Ht({widget:ye,canvasKey:F,canvasH:w});break;case"infoView":Ae=xo({widget:ye,canvasKey:F,canvasH:w});break;case"cardGroupView":Ae=Po({widget:ye,canvasKey:F,canvasH:w});break;case"navBar":Ae=U({widget:ye,canvasKey:F,canvasH:w});break;default:break}const{height:we,hiList:_e}=Ae;w+=we,c.push(..._e),pe!==t.page.length&&(w+=14)}for(const pe of ee){if(pe.type!=="tabBar")continue;const ye=w+26+50;if(ye<844){const{hiList:Ae}=me({widget:pe,canvasKey:F,canvasH:w});Ae[0].hotAttr.y=Or(794,Ae[0].hotAttr),c.push(...Ae)}else if(ye>=844){w+=26;const{height:Ae,hiList:we}=me({widget:pe,canvasKey:F,canvasH:w});w+=Ae,c.push(...we)}}return d.h=Math.max(w,844),ee.length===0&&(d.h+=26),[P,...c]},Bn=JSON.parse('{"iphone_14_pro_max":{"device":"iphone","model":"iphone_14_pro_max"},"iphone_14_pro":{"device":"iphone","model":"iphone_14_pro"},"iphone_14_plus":{"device":"iphone","model":"iphone_13_pro_max"},"iphone_13_pro_max":{"device":"iphone","model":"iphone_13_pro_max"},"iphone_13_pro":{"device":"iphone","model":"iphone_13_pro"},"iphone_11_pro":{"device":"iphone","model":"iphone_11_pro"},"iphone_11_pro_max":{"device":"iphone","model":"iphone_11_pro_max"},"iphone_8_plus":{"device":"iphone","model":"iphone_8_plus"},"huawei_p40":{"device":"android","model":"Huawei_p40"},"google_pixel_2":{"device":"android","model":"google_pixel_2"},"google_pixel_2_xl":{"device":"android","model":"google_pixel_2_xl"},"ipad_mini":{"device":"ipad","model":"ipad_mini"},"ipad_pro_11":{"device":"ipad","model":"ipad_pro_11"},"ipad_pro_12":{"device":"ipad","model":"ipad_pro_12"},"\u7F51\u9875":{"device":"web","model":"desktop"},"\u667A\u80FD\u7535\u89C6":{"device":"web","model":"smart_tv"},"mac_book_pro":{"device":"web","model":"mac_book_pro"},"apple_watch_38mm":{"device":"apple_watch","model":"apple_watch_38"},"apple_watch_40mm":{"device":"apple_watch","model":"apple_watch_40"},"apple_watch_42mm":{"device":"apple_watch","model":"apple_watch_42"},"\u8F66\u8F7D\u4E2D\u63A7":{"device":"smart_car","model":"car_play"}}');var $s=e(94433);const qs=t=>{try{var n;if(!t||Object.keys(t).length===0)return null;const{position:s,model:c,"page-name":d,"fill-color":w,zIndex:P,order:F}=t,X=t0(s),{x:ee,y:pe}=X||{x:0,y:0},ye=el[yo.x.Canvas]("page"),Ae=Bn[c];if(!Ae)return console.error("\u672A\u627E\u5230\u5BF9\u5E94\u673A\u578B",t),null;const{device:we,model:_e}=Ae,Fe=(n=$s[we])==null?void 0:n[_e];if(!Fe)return console.error("\u672A\u627E\u5230\u5BF9\u5E94\u673A\u578B",Fe),null;const{height:Ye,width:He}=Fe;ye.w=He,ye.h=Ye,ye.device=_e,d&&(ye.name=d),P&&(ye.zIndex=P),F&&(ye.order=F),w&&(ye.fill={fillIsVisible:!0,fill:"solid",solidColor:Oa(w)});const{x:tt,y:It}=o0({w:He,h:Ye},{x:ee,y:pe});return ye.x=tt,ye.y=It,ye}catch(s){return null}},Mi=t=>{try{if(!t||Object.keys(t).length===0)return null;const{position:n,size:s,"page-name":c,"fill-color":d,zIndex:w,order:P}=t,F=y0(s);if(!F||F.w===0||F.h===0)return null;const X=t0(n),{x:ee,y:pe}=X||{x:0,y:0},{w:ye,h:Ae}=F,we=el[yo.x.Canvas]("page");we.w=ye,we.h=Ae,we.device="customize",c&&(we.name=c),w&&(we.zIndex=w),P&&(we.order=P),d&&(we.fill={fillIsVisible:!0,fill:"solid",solidColor:Oa(d)});const{x:_e,y:Fe}=o0({w:ye,h:Ae},{x:ee,y:pe});return we.x=_e,we.y=Fe,we}catch(n){return console.error("genPageCustomModel error",n),null}},Xi=t=>{try{if(!t||Object.keys(t).length===0)return null;const{"text-content":n}=t,s=n.split(/[(\r\n)\r\n]+/),c=el.wRichText("");return c.textV1.blocks=s.length>0?wm(s):G1(n),c}catch(n){return console.log("### genPrd error:",n),null}},na=(t,n)=>{try{if(!t||Object.keys(t).length===0)return null;const{textList:s}=t;if(s.length===0)return null;const{selectedTrees:c,tableInfoData:d,onUpdateWidget:w}=n;m0({textList:s,selectedTrees:c,tableInfoData:d,onUpdateWidget:w})}catch(s){return null}};var Xa=e(36132);const Ga="AISelectionKey",xr=t=>{const n=[];if(t){const s=t.getSelection(),{anchorKey:c,focusKey:d,anchorOffset:w,focusOffset:P}=s,F=t.getCurrentContent(),X=F.getBlockMap(),ee=[];let pe=c,ye=d,Ae=w,we=P;if(c===d&&(Ae=Math.min(w,P),we=Math.max(w,P)),c>d&&(pe=d,ye=c,Ae=P,we=w),pe===ye){const _e=F.getBlockForKey(pe);ee.push(_e.text.slice(Ae,we)),n.push(pe)}else{let _e=!1;for(const[Fe,Ye]of X){const He=Ye.text;if(Fe===pe){_e=!0,ee.push(He.slice(Ae)),n.push(Fe);continue}if(_e){if(n.push(Fe),Fe===ye){ee.push(He.slice(0,we));break}ee.push(He)}}}return{selectionBlockKeys:n,selectionText:ee.join("")}}return{selectionBlockKeys:n,selectionText:""}},Br=async(t,n)=>{const{selectedTrees:s,editingCid:c,richTextEditorState:d,semanticValue:w,user:P,org:F,project:X,actions:ee}=n;let pe=null,ye=!1,Ae=null;const we=function(Fe,Ye){return Ye===void 0&&(Ye=[]),{status:Fe,hotItems:Ye}};try{if(!t||Object.keys(t).length===0)return{status:tl.NotSupport};const Fe=s.filter(An=>bm.includes(An.type));if(!Fe||Fe.length===0)return{status:tl.NotFindEditObject};if(Fe.length>1)return{status:tl.NotSupportMultiple};const Ye=Fe[0],{widget:{textV1:{blocks:He}}}=Ye;let tt=[];for(const[An,In]of Object.entries(He))In&&In.type!=="atomic"&&In.text&&tt.push({key:An,value:In.text});tt.sort((An,In)=>An.key<In.key?-1:An.key>In.key?1:0);let It=!1,Nt=[];if(d&&c===Ye.key){const{selectionBlockKeys:An,selectionText:In}=xr(d);Nt=An,In&&(tt=[{key:Ga,value:In}],It=!0)}if(tt.length===0)return we(tl.NotFindEditObject);if(tt.map(An=>An.value).join("").length>500)return we(tl.TextOverLimit);const Lt={prompt:w,userInput:JSON.stringify(tt),type:t.type||"edittext",task_id:(0,Ml.AM)({user:P,project:X}),workspace:(F==null?void 0:F.cid)||"me"};pe=Ye,ye=Ye.isLock,ee.aiPreTextGenerate({key:Ye.key,currentIsLock:ye});const Xt=await(0,Zd.Ni)(Lt),_o=An=>{const In=ye?[]:[{...Ae,hotAttr:{...Ae.hotAttr,isLock:!1}}];return we(An,In)};if(Ae=ee.getHotItem(Ye.key),!Ae)return _o(tl.NotSupport);const co=np()(Ae);if(It&&c!==Ye.key)return _o(tl.HandleExceptions);if(!Xt||Xt.length===0)return _o(tl.NotSupport);let yn={};if(It){var _e;const An=(_e=Xt.find(Jn=>Jn.key===Ga))==null?void 0:_e.value,wn=ee.getNewRichTextEditorState(d,An).getCurrentContent(),_n=Array.from(wn.getBlockMap().keys());Object.keys(He).forEach(Jn=>{if(_n.indexOf(Jn)>=0){const rs=He[Jn];rs.text=wn.getBlockForKey(Jn).text,Nt.includes(Jn)&&(rs.inlineStyleRanges=[],rs.entityRanges=[]),yn[Jn]=rs}})}else yn={...He},Xt.forEach(An=>{let{key:In,value:wn}=An;yn[In]&&(yn[In].inlineStyleRanges=[],yn[In].entityRanges=[],yn[In].text=wn)});return It&&ee.updateEditingCid({item:{cid:""}}),co.hotAttr.isLock=!!ye,co.hotAttr.textV1.blocks=np()(yn),{status:tl.Success,hotItems:[co]}}catch(Fe){const Ye=pe&&!ye?[{...Ae,hotAttr:{...Ae.hotAttr,isLock:!1}}]:[];return we(tl.NotSupport,Ye)}},Qa=async(t,n)=>{let{...s}=n;try{if(!t||Object.keys(t).length===0)return{status:tl.HandleExceptions};const{widgets:c}=t;let d=[];return c.forEach(w=>{const{hotItems:P}=vr(w,s)||{};P&&(d=d.concat(P))}),!d||d.length===0?{status:tl.NotSupport}:{status:tl.Success,hotItems:d}}catch(c){return console.error("genComponent error:",c),{status:tl.HandleExceptions}}},vr=(t,n)=>{let{pageKey:s,selectedTrees:c,tableInfoData:d,selectedCarouseImage:w,canNotCreateCanvas:P,onUpdateWidget:F}=n;try{if(!t||typeof t!="object")return console.error("genSingleWidget error: \u6570\u636E\u7C7B\u578B\u9519\u8BEF"),{hotItems:[],success:!0};const{type:X}=t,ee=ye=>{const Ae=[];return ye.forEach(we=>{if(we){const _e=Ma({hotAttr:we,sup:s});Ae.push({..._e,hotAttr:{..._e.hotAttr,cid:_e.key}})}}),{hotItems:Ae,success:Ae.length>0}},pe=ye=>(ye==null?void 0:ye.length)>0;switch(X){case Kr.text:{const ye=Bf(t);return ee(ye||[])}case Kr.image:{const ye=by(t);return ee(ye||[])}case Kr.rectangle:{const ye=Pf(t);return ee(ye||[])}case Kr.oval:{const ye=jf(t);return ee(ye||[])}case Kr.line:{const ye=ig(t);return ee(ye?[ye]:[])}case Kr.button:{const ye=Ff(t);return ee(ye||[])}case Kr.iphoneXSB:{const ye=Wf(t);return ee(ye?[ye]:[])}case Kr.arrow:{const ye=rg(t);return ee(ye?[ye]:[])}case Kr.mTextInput:{const ye=Hf(t);return ee(ye?[ye]:[])}case Kr.mTextarea:{const ye=Kf(t);return ee(ye?[ye]:[])}case Kr.dropList:{const ye=Gf(t);return ee(ye?[ye]:[])}case Kr.dropMenu:{const ye=Zf(t);return ee(ye?[ye]:[])}case Kr.radioSelection:case Kr.checkbox:{const ye=X===Kr.checkbox,Ae=Qf(t,ye);return ee(Ae?[Ae]:[])}case Kr.table:{const ye=Tm(t,{pageKey:s});return{hotItems:ye,success:pe(ye)}}case Kr.genProto:{if(P)return{status:tl.NotSupportCanvas,hotItems:[],success:!1};const ye=is(t.data,{pageKey:s});return{hotItems:ye,success:pe(ye)}}case Kr.mind:{const ye=kf(t,{pageKey:s});return{hotItems:ye,success:pe(ye)}}case Kr.flow:{const ye=Im(t,{pageKey:s});return{hotItems:ye,success:pe(ye)}}case Kr.chart:{const ye=qm(t,{pageKey:s});return{hotItems:ye,success:pe(ye)}}case Kr.customPage:{if(P)return{status:tl.NotSupportCanvas,hotItems:[],success:!1};const{pages:ye}=t,Ae=[];return ye&&ye.length>0&&ye.forEach(we=>{const _e=Mi(we);_e&&Ae.push(_e)}),ee(Ae)}case Kr.modelPage:{if(P)return{status:tl.NotSupportCanvas,hotItems:[],success:!1};const{pages:ye}=t,Ae=[];return ye&&ye.length>0&&ye.forEach(we=>{const _e=qs(we);_e&&Ae.push(_e)}),ee(Ae)}case Kr.genPrd:{const ye=Xi(t);return ee(ye?[ye]:[])}case Kr.textFill:{na(t,{selectedTrees:c,tableInfoData:d,onUpdateWidget:F});break}case Kr.editImage:(0,Xa.Q)(t,{selectedTrees:c,selectedCarouseImage:w,onUpdateWidget:F});break;default:return{hotItems:[],success:!1}}return{hotItems:[],success:!0}}catch(X){return console.log("genSigleWidget error:",X),{hotItems:[],success:!1}}},al=async(t,n)=>{let{pageKey:s,selectedTrees:c,tableInfoData:d,selectedCarouseImage:w,editingCid:P,richTextEditorState:F,semanticValue:X,user:ee,org:pe,project:ye,canNotCreateCanvas:Ae,actions:we}=n,_e=null;try{if(!t||t.length===0)return{status:tl.HandleExceptions,semanticType:_e};const Fe=t[0],{type:Ye,data:He}=Fe,{widget:tt}=He||{};switch(_e=Ye,_e){case Kr.editText:case Kr.textTranslate:case Kr.textPolish:case Kr.textStyle:case Kr.textExpand:case Kr.textShort:{const{status:It,hotItems:Nt=[]}=await Br(Fe,{selectedTrees:c,editingCid:P,richTextEditorState:F,semanticValue:X,user:ee,org:pe,project:ye,actions:we});return{status:It,semanticType:_e,hotItems:Nt}}case Kr.editStyle:{const{status:It,hotItems:Nt=[]}=gf(tt,{selectedTrees:c,editingCid:P,updateEditingCid:we.updateEditingCid,getHotItem:we.getHotItem});return{status:It,semanticType:_e,hotItems:Nt}}case Kr.genComponent:{const{status:It,hotItems:Nt=[]}=await Qa(tt,{pageKey:s,selectedTrees:c,tableInfoData:d,selectedCarouseImage:w,canNotCreateCanvas:Ae,onUpdateWidget:we.updateWidget});return{status:It,semanticType:_e,hotItems:Nt}}default:{const It=[Kr.genProto,Kr.modelPage,Kr.customPage].includes(_e),Nt=(tt==null?void 0:tt.type)||_e;_e===Kr.genPrd&&(tt.type=Kr.genPrd);const{hotItems:Lt,success:Xt,status:_o}=vr(It?Fe:tt,{pageKey:s,selectedTrees:c,tableInfoData:d,selectedCarouseImage:w,canNotCreateCanvas:Ae,onUpdateWidget:we.updateWidget})||{};return Xt?{status:tl.Success,hotItems:Lt,semanticType:_e,widgetType:Nt}:{status:_o||tl.HandleExceptions,semanticType:_e}}}}catch(Fe){return console.error("genSemanticData error:",Fe),{status:tl.HandleExceptions,semanticType:_e}}};var mr=e(27935);const dd=t=>{const{currentAIComponent:n,semanticValue:s="",user:c,org:d,project:w,onUpdateAIUsedTimes:P,onUpdateAIPoints:F,actions:X}=t,{updateWidget:ee,aiGenerate:pe,updateAIState:ye,notice:Ae,track:we,getChangingData:_e}=X,Fe=function(tt,It,Nt,Lt){Lt===void 0&&(Lt={});const _o=performance.now()-Nt;let co=tt?"":"\u5176\u4ED6";tt||(It===403&&(co="\u8D85\u9650"),It===451&&(co="\u654F\u611F\u8BCD"));const yn={source:n.source,ai_type:n.aiType,ai_duration:_o,ai_consume_type:ENV.IS_WONDER_SHARE?"\u6B21\u6570":"\u70B9\u6570",ai_consume_belong:d?"\u56E2\u961F":"\u4E2A\u4EBA",current_points:ENV.IS_WONDER_SHARE?(0,Ml.kK)({user:c,org:d}):(0,Ml._F)({user:c,org:d}),error_reason:co,generate_success:tt,is_pay:(0,Ml.vW)(c,d,w),ai_user_input:s||""};we("ai_function",{...yn,...Lt})},Ye=(tt,It,Nt)=>{const{notice:Lt,svgName:Xt}=vm(tt);Ae({text:Lt,svgName:Xt}),Fe(tt===tl.Success,tt,Nt,{ai_type:nf[It]||"MD\u8BED\u4E49\u5316",ai_user_input:s,error_reason:Lt})};return{handleConvertComponent:async tt=>{const It=d?d.cid:"me",Nt=(0,Ml.AM)({user:c,project:w});mr.Hy[n==null?void 0:n.type]&&we("ai_click",{source:mr.Hy[n==null?void 0:n.type]});const Lt=async()=>{if(!ENV.IS_WONDER_SHARE)return!1;const{limited:_o}=await(0,Zd.GM)({user:c,org:d,onUpdateAIUsedTimes:P});return _o},Xt=performance.now();try{switch(ye({aiGenerating:!0}),n.type){case mr.SR.Page:{const{result:_o,status:co}=await(0,Zd.L4)({prompt:tt,workspace:It,taskID:Nt,user:c,org:d,updateAIState:ye,notice:Ae}),yn=!1;//! res ? false : await handleAIConsumeResult()
- Fe(!!_o,yn?403:co,Xt,{message:tt});const{pageKey:An,canNotCreateCanvas:In}=_e();if(In){const{notice:_n,svgName:Jn}=vm(tl.NotSupportCanvas);Ae({text:_n,svgName:Jn});return}const wn=is(_o,{pageKey:An});pe({type:n.type,status:co,hotItems:wn});break}case mr.SR.PageV9:{const{pageKey:_o,canNotCreateCanvas:co}=_e();if(co){const{notice:wn,svgName:_n}=vm(tl.NotSupportCanvas);Ae({text:wn,svgName:_n});return}const{res:yn,status:An}=await(0,Zd.ri)({message:tt}),In=!1;//! res ? false : await handleAIConsumeResult()
- if(Fe(!!yn,In?403:An,Xt,{message:tt}),An===200){const{device:wn,size:_n}=yn.deviceInfo,{w:Jn,h:rs}=_n,as=wn==="\u624B\u673A"?"iphone_15_pro":"mac_book_pro",mi=_o||sdkStore.getHotItem("B@main").sub[0],ha=(0,Mt.cF)("rbp"),Ca=(0,sr.Nc)("\u9875\u9762",5,0,0,Jn,rs,as);yn.planObj.hotItemList[0].sup=ha,yn.planObj.hotItemList[0].hotAttr.x=0,yn.planObj.hotItemList[0].hotAttr.y=0;const ms=yn.planObj.hotItemList,si=[{key:ha,hotAttr:Ca,sup:mi,sub:ms},...ms];await pe({type:mr.SR.PageV9,status:An,hotItems:si})}else throw new Error("AIV9 \u751F\u6210\u5931\u8D25");break}case mr.SR.Flow:case mr.SR.Mind:case mr.SR.Table:case mr.SR.Chart:{const{result:_o,status:co}=await(0,Zd.AP)({prompt:tt,type:n.type,workspace:It,taskID:Nt,user:c,org:d,updateAIState:ye,notice:Ae}),yn=_o?await Lt():!1;Fe(!!_o,yn?403:co,Xt,{message:tt});const{pageKey:An}=_e(),In=tg(_o.widget,{pageKey:An});pe({type:n.type,status:co,hotItems:In});break}case mr.SR.AutoFill:{const{selectedTrees:_o,tableInfoData:co}=_e(),{success:yn,status:An}=await Jh({prompt:tt,user:c,org:d,project:w,selectedTrees:_o,tableInfoData:co,onUpdateWidget:ee,updateAIState:ye,notice:Ae});return Fe(yn,An,Xt),[]}case mr.SR.Semantic:{const{selectedTrees:_o,selectedCarouseImage:co}=_e(),yn=await(0,Zd.Kd)({prompt:tt,type:"widget",workspace:It,task_id:Nt},{selectedTrees:_o,selectedCarouseImage:co,user:c,org:d,updateAIState:ye,notice:Ae}),{result:An}=yn;let{status:In}=yn,wn=null;if(!An||An.length===0){Ye(In,wn,Xt),ye({aiGenerating:!1});return}if(An&&An.length>0){const{pageKey:_n,selectedTrees:Jn,selectedCarouseImage:rs,tableInfoData:as,editingCid:mi,richTextEditorState:ha,canNotCreateCanvas:Ca}=_e(),{status:ms,semanticType:qn,hotItems:si=[],widgetType:Hi}=await al(An,{pageKey:_n,selectedTrees:Jn,tableInfoData:as,selectedCarouseImage:rs,editingCid:mi,richTextEditorState:ha,semanticValue:s,user:c,org:d,project:w,canNotCreateCanvas:Ca,actions:X});wn=qn,In=ms;let ra=n.type;Hi&&[Kr.flow,Kr.chart,Kr.mind,Kr.table].includes(Hi)&&(ra=Hi),pe({type:ra,status:In,hotItems:si,semanticType:wn})}Ye(In,wn,Xt),ye({aiGenerating:!1});return}default:{ye({aiGenerating:!1});return}}ye({aiGenerating:!1}),Ae({text:n.label+" "+I18N.ChatGPT.ai_generated,svgName:"chatGPT/copy-success"})}catch(_o){console.log("----",_o),await(0,Zd.nI)({success:!1,status:0,user:c,org:d,updateAIState:ye,notice:Ae}),ye({aiGenerating:!1}),n.type===mr.SR.Semantic&&Ye(409,null,Xt),Fe(!1,0,Xt)}await(0,Zd.Rn)({user:c,org:d,onUpdateAIPoints:F})},aiFunctionTrackHandle:Fe}},Ql={width:300,height:224},Sc={width:800,height:500},n0=u.Ay.div.withConfig({displayName:"styles__StyledAIComponentModal",componentId:"sc-1kzli1l-0"})(["position:fixed;width:","px;height:","px;left:calc(50vw - ","px);top:calc(50vh - ","px);z-index:110;background:",";box-shadow:",";border:",";border-radius:10px;overflow:hidden;&.ai-guide{width:","px;height:","px;left:calc(50vw - ","px);top:calc(50vh - ",'px);background-size:100% auto;background-repeat:no-repeat;background-image:url("/mb-proto2/images/AIGC/guide_bg.png");&:lang(en){background-image:url("/mb-proto2/images/AIGC/guide_bg_en.png");}}'],Ql.width,Ql.height,Ql.width/2,Ql.height/2,t=>t.theme.color_text_white,t=>t.theme.ai_modal_shadow_style,t=>t.theme.ai_modal_border_style,Sc.width,Sc.height,Sc.width/2,Sc.height/2),cl=u.Ay.div.withConfig({displayName:"styles__StyledAIComponentPanel",componentId:"sc-1kzli1l-1"})(["display:flex;width:100%;height:100%;color:",";background-color:",";flex-direction:column;"],t=>t.theme.color_text_L1,t=>t.theme.color_background_white),o1=t=>{const[n,s]=(0,r.useState)(""),{currentAIComponent:c,userInputObj:d,generating:w,accountData:P,actions:F,handleInputFocus:X,closeModal:ee,onUpdateAIUsedTimes:pe,onUpdateAIPoints:ye}=t,{title:Ae}=c||{};(0,r.useEffect)(()=>{s((d==null?void 0:d.userInput)||"")},[d]);const{handleConvertComponent:we}=dd({currentAIComponent:c,...P,onUpdateAIUsedTimes:pe,onUpdateAIPoints:ye,actions:F});return(0,i.jsxs)(cl,{children:[(0,i.jsx)(fa.A,{user:P.user,org:P.org,project:P.project,title:Ae,closeModal:ee}),(0,i.jsx)(da,{userInput:n,generating:w,sendMessageHandle:we,currentAIComponent:c,handleInputFocus:X,setUserInput:s})]})},Fh=(0,r.memo)(o1),jp=48,v0=48;var Pr=e(62026),Op=e(2302);const ap=t=>{let{onPointerDown:n,onDragStart:s,onDrag:c,onDrop:d}=t,w=0,P=!1;n&&n();const F=ee=>{if(w<2)return w++;!P&&s&&s(ee),P=!0,c(ee.clientX,ee.clientY)},X=ee=>{d(ee,w<2),document.removeEventListener("mousemove",F),document.removeEventListener("mouseup",X)};document.addEventListener("mousemove",F),document.addEventListener("mouseup",X)};class uh extends r.PureComponent{constructor(){super(...arguments),(0,p.A)(this,"state",{style:{left:0,top:0},inputFocus:!1,handelMove:!1}),(0,p.A)(this,"handleUpdateState",()=>{const{showGuide:n}=this.props;if(this.setState({handelMove:!!(0,Ml.kI)()}),n){const s=document.documentElement.clientHeight,d=(document.documentElement.clientWidth-Sc.width)/2,w=(s-Sc.height)/2;this.setState({style:{left:d,top:w}})}else{const s=(0,Pr.Yt)(Ml.t6,0,Pr.qW.Number),c=(0,Pr.Yt)(Ml.J7,0,Pr.qW.Number),d=Math.max(Math.min(s,window.innerWidth-Ql.width),0),w=Math.max(Math.min(c,window.innerHeight-Ql.height),0);this.setState({style:{left:d,top:w}})}}),(0,p.A)(this,"handleMouseDown",n=>{n.stopPropagation();const{inputFocus:s}=this.state;if(s)return;const{showGuide:c}=this.props,d={x:n.clientX,y:n.clientY};let w=this.state.style;if(!c&&this.state.style.left===0&&this.state.style.top===0){var P;const F=(P=document.getElementById("ai-modal"))==null?void 0:P.getBoundingClientRect();F&&(w={left:F.left,top:F.top})}ap({onDrag:(F,X)=>{const ee=document.documentElement.clientHeight,pe=document.documentElement.clientWidth,ye={x:F,y:X},Ae=Op.Z.subtract(ye,d);let{x:we,y:_e}=Op.Z.add(Op.Z.xy(w.left,w.top),Ae);we=we<0?0:we,we=we+Ql.width>pe?pe-Ql.width:we,_e=_e<v0?v0:_e,_e=_e+Ql.height>ee?ee-Ql.height:_e;const Fe={...w,left:we,top:_e};this.setState({style:Fe,handelMove:!0}),c||((0,Pr.a0)(Ml.J7,_e,Pr.qW.Number),(0,Pr.a0)(Ml.t6,we,Pr.qW.Number))},onDrop:()=>{}})}),(0,p.A)(this,"closeModal",()=>{const{actions:{updateAIState:n}}=this.props;n({showAIModal:!1,currentAiComponent:null})}),(0,p.A)(this,"handleGuideCloseModal",n=>{const{actions:{updateAIState:s,openLeftSidePanel:c}}=this.props;if(n){s({showAIGuide:!1});const{currentAIComponent:d}=this.props;if(!d){this.closeModal();return}if(d&&d.type===mr.SR.AIAssistant)this.closeModal(),s({showAIGuide:!1}),c();else if(d&&d.type===mr.SR.AutoFill)this.closeModal();else{const w=document.documentElement.clientHeight,F=(document.documentElement.clientWidth-Ql.width)/2,X=(w-Ql.height)/2;this.setState({style:{left:F,top:X}})}}else this.closeModal(),s({showAISemantic:!1})}),(0,p.A)(this,"handleInputFocus",n=>{this.setState({inputFocus:n})}),(0,p.A)(this,"handleUpdateAIUsedTimes",n=>{const{accountData:{user:s,org:c,project:d},actions:{updateCurrentOrg:w,updateCurrentUser:P}}=this.props;d.is_org_project&&c?w({org:Object.assign(c,{used_times:n})}):P({user:Object.assign(s,{used_times:n})})}),(0,p.A)(this,"handleUpdateAIPoints",n=>{const{accountData:{user:s,org:c,project:d},actions:{updateCurrentOrg:w,updateCurrentUser:P}}=this.props;d.is_org_project&&c?w({org:Object.assign(c,{ai_points:n})}):P({user:Object.assign(s,{ai_points:n})})})}componentDidMount(){this.handleUpdateState(),window.addEventListener("resize",this.handleUpdateState)}componentWillUnmount(){window.addEventListener("resize",this.handleUpdateState)}render(){const{style:{left:n,top:s}}=this.state,{handelMove:c}=this.state,{defaultPos:d,showGuide:w,...P}=this.props,F=!w&&!c?d:{left:n,top:s};return(0,i.jsx)(n0,{id:"ai-modal",className:f()(w&&"ai-guide"),onMouseDown:this.handleMouseDown,style:F,children:w?(0,i.jsx)(ba,{closeGuide:this.handleGuideCloseModal}):(0,i.jsx)(Fh,{...P,closeModal:this.closeModal,handleInputFocus:this.handleInputFocus,onUpdateAIUsedTimes:this.handleUpdateAIUsedTimes,onUpdateAIPoints:this.handleUpdateAIPoints})})}}const X1=t=>{const n=t();return(0,i.jsx)(uh,{...n})},Mu=88,id=180,ad={width:400,height:Mu},mh=u.Ay.div.withConfig({displayName:"styles__StyledAISemanticModal",componentId:"sc-ezvlvf-0"})(["position:fixed;z-index:111;"]),n1=u.Ay.div.withConfig({displayName:"styles__StyledAISemanticPanel",componentId:"sc-ezvlvf-1"})([".semantic-top{width:","px;height:","px;z-index:110;background:",";border-radius:10px;box-shadow:",";border:",";}.semantic-title{display:flex;height:40px;justify-content:space-between;align-items:center;padding:0 10px;cursor:move;svg{width:24px;height:24px;}.ai-beta{width:40px;margin-right:4px;}.title-left{color:",";font-size:14px;font-style:normal;font-weight:500;line-height:24px;display:flex;align-items:center;svg{margin-right:4px;}.mode-tag{width:50px;height:25px;margin-left:10px;display:flex;align-items:center;justify-content:center;font-size:12px;color:white;background-color:#CECECE;margin-left:10px;border-radius:4px;cursor:pointer;&.isSelect{background-color:#54BCBD;}}}.title-right{display:flex;justify-content:center;align-items:center;.close{cursor:pointer;path{fill:",";}&:hover{path{fill:",";}}}}.ai-help{display:flex;position:relative;margin-left:2px;z-index:1;&:hover{.ai-help-content{display:block;}}.ai-help-icon{cursor:pointer;path{fill:",";}&:hover{path{fill:",";}}}.ai-help-content{display:none;position:absolute;width:226px;left:-21px;bottom:38px;padding:12px 16px;border-radius:8px;font-size:12px;line-height:20px;color:",";background-color:",";span{color:#80BCFF;text-decoration:underline;cursor:pointer;}.bot-content{width:100%;height:20px;position:absolute;bottom:-20px;left:0px;}}.ai-help-content::before{content:'';position:absolute;bottom:-16px;left:24px;display:inline-block;width:0;height:0;border:8px solid transparent;border-top:8px solid ",";}}}.semantic-gap{position:absolute;left:0;bottom:-6px;height:6px;width:100%;}.action-panel{width:240px;margin-top:4px;background:",";box-shadow:0 2px 10px rgba(0,0,0,0.12);border-radius:8px;}"],ad.width,Mu,t=>t.theme.color_bg_white,t=>t.theme.ai_modal_shadow_style,t=>t.theme.style_modal_border,t=>t.theme.color_text_L1,t=>t.theme.color_text_L3,t=>t.theme.color_text_L2,t=>t.theme.color_text_L3,t=>t.theme.color_text_L3,t=>t.theme.color_text_btn,Cr.f.color_btn_secondary_active.value_dark,Cr.f.color_btn_secondary_active.value_dark,t=>t.theme.color_text_white),A1=()=>{const[t,n]=(0,r.useState)({left:0,top:0}),s=(0,r.useCallback)(()=>{var w;const P=((w=document.getElementById("ai-semantic-recommend-panel"))==null?void 0:w.getBoundingClientRect().height)||20;if((0,Ml.Mm)()){const F=(0,Pr.Yt)(Ml.SN,0,Pr.qW.Number),X=(0,Pr.Yt)(Ml.IU,0,Pr.qW.Number),ee=Math.max(Math.min(F,window.innerWidth-ad.width),0),pe=Math.max(Math.min(X,window.innerHeight-P-20),0);n({left:ee,top:pe})}else{const F=(innerWidth-ad.width)/2,X=innerHeight-P-130;n({left:F,top:X})}},[n]),c=(0,r.useCallback)((w,P)=>{w.stopPropagation();const{left:F,top:X}=t,ee={x:w.clientX,y:w.clientY};let pe=t;if(F===0&&X===0){var ye;const we=(ye=document.getElementById("ai-semantic-modal"))==null?void 0:ye.getBoundingClientRect();we&&(pe={left:we.left,top:we.top})}const Ae=100;ap({onDrag:(we,_e)=>{P==null||P.blur();const Fe=document.documentElement.clientHeight,Ye=document.documentElement.clientWidth,He={x:we,y:_e},tt=Op.Z.subtract(He,ee);let{x:It,y:Nt}=Op.Z.add(Op.Z.xy(pe.left,pe.top),tt);It=It<0?0:It,It=It+ad.width>Ye?Ye-ad.width:It,Nt=Nt<v0?v0:Nt,Nt=Nt+Ae>Fe?Fe-Ae:Nt,n({left:It,top:Nt}),(0,Pr.a0)(Ml.mN,!0,Pr.qW.Boolean),(0,Pr.a0)(Ml.IU,Nt,Pr.qW.Number),(0,Pr.a0)(Ml.SN,It,Pr.qW.Number)},onDrop:()=>{}})},[n,t]),d=(0,r.useMemo)(()=>{const{top:w}=t;return w+ad.height+id>document.documentElement.clientHeight?"top":"bottom"},[t]);return{updatePositionHandle:s,handleMouseDown:c,panelPosition:t,recommendPosition:d}},Uh=u.Ay.div.withConfig({displayName:"styles__StyledAIRecommendItem",componentId:"sc-a72rx-0"})(["display:flex;height:32px;margin-left:12px;width:calc(100% - 24px);border-radius:6px;padding:0 4px 0 6px;align-items:center;justify-content:space-between;color:",";font-size:12px;.recommend{display:flex;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;.recommend-label{max-width:320px;span{color:",";}.ask-ai{color:",";}}}svg{path{fill:",";}&:hover{path{fill:",";}}}.input-enter{width:24px;height:24px;}.cmd-icon{width:18px;height:18px;margin-right:6px;}.nor-recommend{display:none;}&.is-select{color:",";background-color:",";.nor-recommend{display:flex;}}"],t=>t.theme.color_text_L1,t=>t.theme.color_text_link_normal,t=>t.theme.color_text_L2,t=>t.theme.color_text_L3,t=>t.theme.color_text_L2,t=>t.theme.color_text_L1,t=>t.theme.color_btn_secondary_hover);var Se=e(47124);const I1=t=>{let{recommend:n,onClickRecommend:s,isHistory:c,arrowDown:d,isSelect:w,index:P,handleChangeSelectIndex:F}=t;const[X,{label:ee,iconName:pe,info:{attrs:ye,isRecommend:Ae}}]=n,we=(0,r.useCallback)(Fe=>{Fe.preventDefault(),Fe.stopPropagation(),s(n)},[s,n]);let _e="";switch(X){case Se.c.ToggleExport:_e="ai-semantic-export";break;case Se.c.ToggleViewShare:_e="ai-semantic-share";break}return(0,i.jsxs)(Uh,{onMouseDown:we,className:f()("ai-command-item",_e,w&&"is-select"),onMouseEnter:Fe=>{F(P)},children:[(0,i.jsxs)("div",{className:"recommend",children:[pe&&(0,i.jsx)(Oc.C,{className:"cmd-icon",name:pe}),(0,i.jsx)("div",{className:"recommend-label",children:ye&&ye.length>0?(0,i.jsx)(i.Fragment,{children:ye.map((Fe,Ye)=>{let{key:He,content:tt}=Fe;return He?(0,i.jsx)("span",{children:tt},Ye):tt})}):[Se.c.AIGC,Se.c.AIQ].includes(X)?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"ask-ai",children:X===Se.c.AIGC?Ae?"":"\u667A\u80FD\u751F\u6210\uFF1A":"\u667A\u80FD\u5BF9\u8BDD\uFF1A"}),ee]}):X===Se.c.CCustomComponent?"\u751F\u6210\u7EC4\u4EF6":ee})]}),w&&(0,i.jsx)(Oc.C,{className:"input-enter",name:"chatGPT/ai-cmd-send",isColorPure:!0})]})},U0=(0,r.memo)(I1),Tu=u.Ay.div.withConfig({displayName:"styles__StyledAIRecommendPanel",componentId:"sc-tdl3pm-0"})(["position:absolute;width:100%;background:",";border-radius:10px;max-height:294px;box-shadow:",";border:",";overflow:hidden;&:lang(en){width:","px;}&.top{bottom:100%;margin-bottom:4px;}&.bottom{top:100%;margin-top:4px;}.recommend-title{display:flex;align-items:center;justify-content:space-between;height:36px;padding-left:16px;padding-right:9px;color:",";font-size:14px;font-weight:500;.recommend-left{display:flex;align-items:center;svg{width:20px;height:20px;margin-right:6px;}}}.semantic-recommend{max-height:136px;padding:12px 0;overflow:hidden auto;::-webkit-scrollbar{display:none;}}.recommend-title-svg{g{fill:",";}}"],t=>t.theme.color_bg_white,t=>t.theme.ai_modal_shadow_style,t=>t.theme.style_modal_border,ad.width,t=>t.theme.color_text_L1,t=>t.theme.color_text_L1),u2=t=>{let{recommendPosition:n,org:s,user:c,project:d,recommendList:w,isInputFocus:P,onClickRecommend:F}=t;const[X,ee]=(0,r.useState)(0),[pe,ye]=(0,r.useState)(!1),Ae=(0,r.useRef)(null),we=(0,r.useCallback)(Ye=>{if(Ye<0||Ye>w.length)return;const He=document.getElementById("semantic-recommend"),tt=document.querySelectorAll(".ai-command-item")[Ye];if(He){const It=He.offsetHeight,Nt=He.scrollTop,Lt=tt==null?void 0:tt.offsetTop,Xt=tt==null?void 0:tt.offsetHeight;Lt<Nt?He.scrollTop=Lt-6:Lt-Nt+Xt>It&&(He.scrollTop=Lt-It+Xt+6)}},[w]);(0,r.useEffect)(()=>{const Ye=n==="bottom"?0:w.length-1;ee(Ye),we(Ye)},[n,w,we]);const _e=(0,r.useCallback)(Ye=>{if(Ye.key==="ArrowDown"){if(!P)return;Ye.preventDefault(),Ye.stopPropagation();const He=X===w.length-1?0:X+1;we(He),ee(He)}if(Ye.key==="ArrowUp"){if(!P)return;Ye.preventDefault(),Ye.stopPropagation();const He=X===0?w.length-1:X-1;we(He),ee(He)}Ye.keyCode===13&&X>=0&&X<=w.length&&(Ye.preventDefault(),Ye.stopPropagation(),F(w[X]))},[X,w,P,we,F]);(0,r.useEffect)(()=>{document.addEventListener("keydown",_e);const Ye=Ae.current;if(Ye){const He=Ye.scrollHeight>Ye.clientHeight;ye(He)}return()=>{document.removeEventListener("keydown",_e),ye(!1)}},[_e]);const Fe=(0,r.useCallback)(Ye=>{ee(Ye)},[ee]);return(0,i.jsx)(Tu,{className:f()(n&&n,"ai-semantic-recommend-panel"),id:"ai-semantic-recommend-panel",children:(0,i.jsx)("div",{className:f()("semantic-recommend",pe&&"has-scroll-bar"),id:"semantic-recommend",ref:Ae,children:w.map((Ye,He)=>(0,i.jsx)(U0,{recommend:Ye,onClickRecommend:F,arrowDown:n==="top",isSelect:He===X,index:He,handleChangeSelectIndex:Fe},He))})})},zh=(0,r.memo)(u2),pg=u.Ay.div.withConfig({displayName:"styles__StyledAISemanticInput",componentId:"sc-thx25e-0"})(["display:flex;height:34px;align-items:center;justify-content:space-between;color:",";background:linear-gradient(97.39deg,#D5CCFF 1.15%,#FFCCFF 33.16%,#BBFAFA 66.15%,#BFDFFF 99.64%);padding:2px;border-radius:6px;margin:0 12px;&:hover{background:linear-gradient(90deg,#7F66FF 0%,#FF66FF 32.5%,#6699FF 67%,#64FAFA 100%);}&.isFocus{background:linear-gradient(90deg,#7F66FF 0%,#FF66FF 32.5%,#6699FF 67%,#64FAFA 100%);}.colorful-border-content{display:flex;width:100%;height:100%;align-items:center;justify-content:space-between;color:",";background:",";border-radius:4px;}svg{width:24px;height:24px;&.input-enter{cursor:pointer;path{fill:",";}&:hover{path{fill:",";}}}}input{caret-color:#1684FC;color:",";font-size:12px;font-style:normal;font-weight:400;height:100%;width:100%;padding-left:14px;padding-right:10px;&::placeholder{color:",";}}.generating{display:flex;align-items:center;justify-content:center;padding-left:14px;padding-right:10px;.create-loading{width:20px;height:20px;animation:loading 3s linear infinite;margin-right:6px;@keyframes loading{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}}}.ellipsis-loading{display:flex;justify-content:center;margin-left:3px;height:12px;opacity:0.9;align-items:flex-end;.ellipsis{width:3px;height:3px;border-radius:50%;background-color:",";margin-right:2px;animation:ellipsis-animation 1.2s ease-in-out infinite;&:nth-child(2){animation-delay:0.4s;}&:nth-child(3){animation-delay:0.8s;}@keyframes ellipsis-animation{0%{transform:scale(0);}20%{transform:scale(1);}100%{transform:scale(0);}}}}"],t=>t.theme.color_text_L1,t=>t.theme.color_text_L1,t=>t.theme.color_bg_white,t=>t.theme.color_text_L2,t=>t.theme.color_text_L1,t=>t.theme.color_text_L1,t=>t.theme.color_text_L3,t=>t.theme.color_text_L1),hg=(t,n)=>{const{generating:s,actions:c,semanticValue:d,onAISearch:w,setSemanticValue:P,setInputFocus:F}=t,[X,ee]=(0,r.useState)(!1),[pe,ye]=(0,r.useState)(!1),Ae=async He=>{He.key==="k"&&(He.ctrlKey||He.metaKey)&&(He.preventDefault(),c.updateAIState({showAISemantic:!1}))},we=(0,r.useCallback)(He=>{let tt=He.target.value;tt.length>200&&(tt=tt.slice(0,200)),P(tt),X||w(tt)},[P,X,w]),_e=(0,r.useCallback)(He=>{const tt=He.target.value.length;He.target.setSelectionRange(tt,tt),ye(!0),F(!0)},[F]),Fe=(0,r.useCallback)(()=>{ye(!1),F(!1);const{richTextEditorState:He}=c.getChangingData();c.recoverEditorSelection(He)},[c,F]),Ye=(0,r.useCallback)(async()=>{ee(!1),w(d)},[w,d]);return(0,i.jsx)(pg,{className:f()("semantic-input",pe&&"isFocus"),children:(0,i.jsx)("div",{className:"colorful-border-content",children:s?(0,i.jsxs)("div",{className:"generating",children:[(0,i.jsx)(Oc.C,{className:"create-loading",name:"chatGPT/tip-loading",isColorPure:!0}),I18N.ChatGPT.ai_semantic_thinking,"..."]}):(0,i.jsx)("input",{autoFocus:!0,className:"ai-semantic-input",autoComplete:"off",ref:n,maxLength:200,value:d||"",onChange:we,onKeyDown:Ae,onFocus:_e,onBlur:Fe,onCompositionStart:()=>ee(!0),onCompositionEnd:Ye,placeholder:I18N.ChatGPT.ai_semantic_input_placeholder})})})},e6=(0,r.memo)((0,r.forwardRef)(hg)),Iy=(t,n)=>t>n?1:t<n?-1:0,o4=1/0,n4=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),My="eexxaacctt",t6=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65\u{10100}-\u{10102}\u{1039F}\u{103D0}\u{1056F}\u{10857}\u{1091F}\u{1093F}\u{10A50}-\u{10A58}\u{10A7F}\u{10AF0}-\u{10AF6}\u{10B39}-\u{10B3F}\u{10B99}-\u{10B9C}\u{10D6E}\u{10EAD}\u{10F55}-\u{10F59}\u{10F86}-\u{10F89}\u{11047}-\u{1104D}\u{110BB}\u{110BC}\u{110BE}-\u{110C1}\u{11140}-\u{11143}\u{11174}\u{11175}\u{111C5}-\u{111C8}\u{111CD}\u{111DB}\u{111DD}-\u{111DF}\u{11238}-\u{1123D}\u{112A9}\u{113D4}\u{113D5}\u{113D7}\u{113D8}\u{1144B}-\u{1144F}\u{1145A}\u{1145B}\u{1145D}\u{114C6}\u{115C1}-\u{115D7}\u{11641}-\u{11643}\u{11660}-\u{1166C}\u{116B9}\u{1173C}-\u{1173E}\u{1183B}\u{11944}-\u{11946}\u{119E2}\u{11A3F}-\u{11A46}\u{11A9A}-\u{11A9C}\u{11A9E}-\u{11AA2}\u{11B00}-\u{11B09}\u{11BE1}\u{11C41}-\u{11C45}\u{11C70}\u{11C71}\u{11EF7}\u{11EF8}\u{11F43}-\u{11F4F}\u{11FFF}\u{12470}-\u{12474}\u{12FF1}\u{12FF2}\u{16A6E}\u{16A6F}\u{16AF5}\u{16B37}-\u{16B3B}\u{16B44}\u{16D6D}-\u{16D6F}\u{16E97}-\u{16E9A}\u{16FE2}\u{1BC9F}\u{1DA87}-\u{1DA8B}\u{1E5FF}\u{1E95E}\u{1E95F}]/gu,o6="A-Z",n6="a-z",s6=["en",{numeric:!0,sensitivity:"base"}],m2=(t,n,s)=>t.replace(o6,n).replace(n6,s),Ty={unicode:!1,alpha:null,interSplit:"[^A-Za-z\\d']+",intraSplit:"[a-z][A-Z]",interBound:"[^A-Za-z\\d]",intraBound:"[A-Za-z]\\d|\\d[A-Za-z]|[a-z][A-Z]",interLft:0,interRgt:0,interChars:".",interIns:o4,intraChars:"[a-z\\d']",intraIns:null,intraContr:"'[a-z]{1,2}\\b",intraMode:0,intraSlice:[1,o4],intraSub:null,intraTrn:null,intraDel:null,intraFilt:(t,n,s)=>!0,toUpper:t=>t.toLocaleUpperCase(),toLower:t=>t.toLocaleLowerCase(),compare:null,sort:function(t,n,s,c){c===void 0&&(c=Iy);let{idx:d,chars:w,terms:P,interLft2:F,interLft1:X,start:ee,intraIns:pe,interIns:ye,cases:Ae}=t;return d.map((we,_e)=>_e).sort((we,_e)=>w[_e]-w[we]||pe[we]-pe[_e]||P[_e]+F[_e]+.5*X[_e]-(P[we]+F[we]+.5*X[we])||ye[we]-ye[_e]||ee[we]-ee[_e]||Ae[_e]-Ae[we]||c(n[d[we]],n[d[_e]]))}},s4=(t,n)=>n==0?"":n==1?t+"??":n==o4?t+"*?":t+("{0,"+n+"}?"),Ey="(?:\\b|_)";function ug(t){var n;t=Object.assign({},Ty,t);let{unicode:s,interLft:c,interRgt:d,intraMode:w,intraSlice:P,intraIns:F,intraSub:X,intraTrn:ee,intraDel:pe,intraContr:ye,intraSplit:Ae,interSplit:we,intraBound:_e,interBound:Fe,intraChars:Ye,toUpper:He,toLower:tt,compare:It}=t;F!=null||(F=w),X!=null||(X=w),ee!=null||(ee=w),pe!=null||(pe=w),It!=null||(It=typeof Intl>"u"?Iy:new Intl.Collator(...s6).compare);let Nt=(n=t.letters)!=null?n:t.alpha;if(Nt!=null){let Pi=He(Nt),Bi=tt(Nt);we=m2(we,Pi,Bi),Ae=m2(Ae,Pi,Bi),Fe=m2(Fe,Pi,Bi),_e=m2(_e,Pi,Bi),Ye=m2(Ye,Pi,Bi),ye=m2(ye,Pi,Bi)}let Lt=s?"u":"";const Xt='".+?"',_o=new RegExp(Xt,"gi"+Lt),co=new RegExp("(?:\\s+|^)-(?:"+Ye+"+|"+Xt+")","gi"+Lt);let{intraRules:yn}=t;yn==null&&(yn=Pi=>{let Bi=Ty.intraSlice,Ji=0,Ui=0,wa=0,Ea=0;if(/[^\d]/.test(Pi)){let Ba=Pi.length;Ba<=4?Ba>=3&&(wa=Math.min(ee,1),Ba==4&&(Ji=Math.min(F,1))):(Bi=P,Ji=F,Ui=X,wa=ee,Ea=pe)}return{intraSlice:Bi,intraIns:Ji,intraSub:Ui,intraTrn:wa,intraDel:Ea}});let An=!!Ae,In=new RegExp(Ae,"g"+Lt),wn=new RegExp(we,"g"+Lt),_n=new RegExp("^"+we+"|"+we+"$","g"+Lt),Jn=new RegExp(ye,"gi"+Lt);const rs=function(Pi,Bi){Bi===void 0&&(Bi=!1);let Ji=[];Pi=Pi.replace(_o,wa=>(Ji.push(wa),My)),Pi=Pi.replace(_n,""),Bi||(Pi=tt(Pi)),An&&(Pi=Pi.replace(In,wa=>wa[0]+" "+wa[1]));let Ui=0;return Pi.split(wn).filter(wa=>wa!="").map(wa=>wa===My?Ji[Ui++]:wa)},as=/[^\d]+|\d+/g,mi=function(Pi,Bi,Ji){Bi===void 0&&(Bi=0),Ji===void 0&&(Ji=!1);let Ui=rs(Pi);if(Ui.length==0)return[];let wa=Array(Ui.length).fill("");Ui=Ui.map((cr,zr)=>cr.replace(Jn,dl=>(wa[zr]=dl,"")));let Ea;if(w==1)Ea=Ui.map((cr,zr)=>{if(cr[0]==='"')return n4(cr.slice(1,-1));let dl="";for(let Er of cr.matchAll(as)){let Va=Er[0],{intraSlice:nc,intraIns:sc,intraSub:Yr,intraTrn:kr,intraDel:Fl}=yn(Va);if(sc+Yr+kr+Fl==0)dl+=Va+wa[zr];else{let[Ul,Gl]=nc,Tl=Va.slice(0,Ul),hd=Va.slice(Gl),Ac=Va.slice(Ul,Gl);sc==1&&Tl.length==1&&Tl!=Ac[0]&&(Tl+="(?!"+Tl+")");let W0=Ac.length,Da=[Va];if(Yr)for(let hl=0;hl<W0;hl++)Da.push(Tl+Ac.slice(0,hl)+Ye+Ac.slice(hl+1)+hd);if(kr)for(let hl=0;hl<W0-1;hl++)Ac[hl]!=Ac[hl+1]&&Da.push(Tl+Ac.slice(0,hl)+Ac[hl+1]+Ac[hl]+Ac.slice(hl+2)+hd);if(Fl)for(let hl=0;hl<W0;hl++)Da.push(Tl+Ac.slice(0,hl+1)+"?"+Ac.slice(hl+1)+hd);if(sc){let hl=s4(Ye,1);for(let Fp=0;Fp<W0;Fp++)Da.push(Tl+Ac.slice(0,Fp)+hl+Ac.slice(Fp)+hd)}dl+="(?:"+Da.join("|")+")"+wa[zr]}}return dl});else{let cr=s4(Ye,F);Bi==2&&F>0&&(cr=")("+cr+")("),Ea=Ui.map((zr,dl)=>zr[0]==='"'?n4(zr.slice(1,-1)):zr.split("").map((Er,Va,nc)=>(F==1&&Va==0&&nc.length>1&&Er!=nc[Va+1]&&(Er+="(?!"+Er+")"),Er)).join(cr)+wa[dl])}let Ba=c==2?Ey:"",lr=d==2?Ey:"",Ya=lr+s4(t.interChars,t.interIns)+Ba;return Bi>0?Ji?Ea=Ba+"("+Ea.join(")"+lr+"|"+Ba+"(")+")"+lr:(Ea="("+Ea.join(")("+Ya+")(")+")",Ea="(.??"+Ba+")"+Ea+"("+lr+".*)"):(Ea=Ea.join(Ya),Ea=Ba+Ea+lr),[new RegExp(Ea,"i"+Lt),Ui,wa]},ha=(Pi,Bi,Ji)=>{let[Ui]=mi(Bi);if(Ui==null)return null;let wa=[];if(Ji!=null)for(let Ea=0;Ea<Ji.length;Ea++){let Ba=Ji[Ea];Ui.test(Pi[Ba])&&wa.push(Ba)}else for(let Ea=0;Ea<Pi.length;Ea++)Ui.test(Pi[Ea])&&wa.push(Ea);return wa};let Ca=!!_e,ms=new RegExp(Fe,Lt),qn=new RegExp(_e,Lt);const si=(Pi,Bi,Ji)=>{let[Ui,wa,Ea]=mi(Ji,1),Ba=rs(Ji,!0),[lr]=mi(Ji,2),Ya=wa.length,cr=Array(Ya),zr=Array(Ya);for(let Yr=0;Yr<Ya;Yr++){let kr=wa[Yr],Fl=Ba[Yr],Ul=kr[0]=='"'?kr.slice(1,-1):kr+Ea[Yr],Gl=Fl[0]=='"'?Fl.slice(1,-1):Fl+Ea[Yr];cr[Yr]=Ul,zr[Yr]=Gl}let dl=Pi.length,Er=Array(dl).fill(0),Va={idx:Array(dl),start:Er.slice(),chars:Er.slice(),cases:Er.slice(),terms:Er.slice(),interIns:Er.slice(),intraIns:Er.slice(),interLft2:Er.slice(),interRgt2:Er.slice(),interLft1:Er.slice(),interRgt1:Er.slice(),ranges:Array(dl)},nc=c==1||d==1,sc=0;for(let Yr=0;Yr<Pi.length;Yr++){let kr=Bi[Pi[Yr]],Fl=kr.match(Ui),Ul=Fl.index+Fl[1].length,Gl=Ul,Tl=!1,hd=0,Ac=0,W0=0,Da=0,hl=0,Fp=0,nu=0,M2=0,Xd=0,w0=[];for(let ud=0,Ad=2;ud<Ya;ud++,Ad+=2){let su=tt(Fl[Ad]),pp=cr[ud],my=zr[ud],hp=pp.length,up=su.length,V0=su==pp;if(Fl[Ad]==my&&nu++,!V0&&Fl[Ad+1].length>=hp){let md=tt(Fl[Ad+1]).indexOf(pp);md>-1&&(w0.push(Gl,up,md,hp),Gl+=Hi(Fl,Ad,md,hp),su=pp,up=hp,V0=!0,ud==0&&(Ul=Gl))}if(nc||V0){let md=Gl-1,N1=Gl+up,Lu=!1,zm=!1;if(md==-1||ms.test(kr[md]))V0&&hd++,Lu=!0;else{if(c==2){Tl=!0;break}if(Ca&&qn.test(kr[md]+kr[md+1]))V0&&Ac++,Lu=!0;else if(c==1){let Fg=Fl[Ad+1],T2=Gl+up;if(Fg.length>=hp){let Du=0,E2=!1,WT=new RegExp(pp,"ig"+Lt),$x;for(;$x=WT.exec(Fg);){Du=$x.index;let qx=T2+Du,gy=qx-1;if(gy==-1||ms.test(kr[gy])){hd++,E2=!0;break}else if(qn.test(kr[gy]+kr[qx])){Ac++,E2=!0;break}}E2&&(Lu=!0,w0.push(Gl,up,Du,hp),Gl+=Hi(Fl,Ad,Du,hp),su=pp,up=hp,V0=!0,ud==0&&(Ul=Gl))}if(!Lu){Tl=!0;break}}}if(N1==kr.length||ms.test(kr[N1]))V0&&W0++,zm=!0;else{if(d==2){Tl=!0;break}if(Ca&&qn.test(kr[N1-1]+kr[N1]))V0&&Da++,zm=!0;else if(d==1){Tl=!0;break}}V0&&(hl+=hp,Lu&&zm&&Fp++)}if(up>hp&&(Xd+=up-hp),ud>0&&(M2+=Fl[Ad-1].length),!t.intraFilt(pp,su,Gl)){Tl=!0;break}ud<Ya-1&&(Gl+=up+Fl[Ad+1].length)}if(!Tl){Va.idx[sc]=Pi[Yr],Va.interLft2[sc]=hd,Va.interLft1[sc]=Ac,Va.interRgt2[sc]=W0,Va.interRgt1[sc]=Da,Va.chars[sc]=hl,Va.terms[sc]=Fp,Va.cases[sc]=nu,Va.interIns[sc]=M2,Va.intraIns[sc]=Xd,Va.start[sc]=Ul;let ud=kr.match(lr),Ad=ud.index+ud[1].length,su=w0.length,pp=su>0?0:1/0,my=su-4;for(let md=2;md<ud.length;){let N1=ud[md].length;if(pp<=my&&w0[pp]==Ad){let Lu=w0[pp+1],zm=w0[pp+2],Fg=w0[pp+3],T2=md,Du="";for(let E2=0;E2<Lu;T2++)Du+=ud[T2],E2+=ud[T2].length;ud.splice(md,T2-md,Du),Ad+=Hi(ud,md,zm,Fg),pp+=4}else Ad+=N1,md++}Ad=ud.index+ud[1].length;let hp=Va.ranges[sc]=[],up=Ad,V0=Ad;for(let md=2;md<ud.length;md++){let N1=ud[md].length;Ad+=N1,md%2==0?V0=Ad:N1>0&&(hp.push(up,V0),up=V0=Ad)}V0>up&&hp.push(up,V0),sc++}}if(sc<Pi.length)for(let Yr in Va)Va[Yr]=Va[Yr].slice(0,sc);return Va},Hi=(Pi,Bi,Ji,Ui)=>{let wa=Pi[Bi]+Pi[Bi+1].slice(0,Ji);return Pi[Bi-1]+=wa,Pi[Bi]=Pi[Bi+1].slice(Ji,Ji+Ui),Pi[Bi+1]=Pi[Bi+1].slice(Ji+Ui),wa.length},ra=5,Ta=function(Pi,Bi,Ji,Ui,wa){Ui===void 0&&(Ui=1e3),Ji=Ji?Ji===!0?ra:Ji:0;let Ea=null,Ba=null,lr=[];Bi=Bi.replace(co,Yr=>{let kr=Yr.trim().slice(1);return kr=kr[0]==='"'?n4(kr.slice(1,-1)):kr.replace(t6,""),kr!=""&&lr.push(kr),""});let Ya=rs(Bi),cr;if(lr.length>0){if(cr=new RegExp(lr.join("|"),"i"+Lt),Ya.length==0){let Yr=[];for(let kr=0;kr<Pi.length;kr++)cr.test(Pi[kr])||Yr.push(kr);return[Yr,null,null]}}else if(Ya.length==0)return[null,null,null];if(Ji>0){let Yr=rs(Bi);if(Yr.length>1){let kr=Yr.slice().sort((Ul,Gl)=>Gl.length-Ul.length);for(let Ul=0;Ul<kr.length;Ul++){var zr;if(((zr=wa)==null?void 0:zr.length)==0)return[[],null,null];wa=ha(Pi,kr[Ul],wa)}if(Yr.length>Ji)return[wa,null,null];Ea=ky(Yr).map(Ul=>Ul.join(" ")),Ba=[];let Fl=new Set;for(let Ul=0;Ul<Ea.length;Ul++)if(Fl.size<wa.length){let Gl=wa.filter(hd=>!Fl.has(hd)),Tl=ha(Pi,Ea[Ul],Gl);for(let hd=0;hd<Tl.length;hd++)Fl.add(Tl[hd]);Ba.push(Tl)}else Ba.push([])}}if(Ea==null){var dl;Ea=[Bi],Ba=[((dl=wa)==null?void 0:dl.length)>0?wa:ha(Pi,Bi)]}let Er=null,Va=null;if(lr.length>0&&(Ba=Ba.map(Yr=>Yr.filter(kr=>!cr.test(Pi[kr])))),Ba.reduce((Yr,kr)=>Yr+kr.length,0)<=Ui){Er={},Va=[];for(let Yr=0;Yr<Ba.length;Yr++){let kr=Ba[Yr];if(kr==null||kr.length==0)continue;let Fl=Ea[Yr],Ul=si(kr,Pi,Fl),Gl=t.sort(Ul,Pi,Fl,It);if(Yr>0)for(let Tl=0;Tl<Gl.length;Tl++)Gl[Tl]+=Va.length;for(let Tl in Ul){var sc;Er[Tl]=((sc=Er[Tl])!=null?sc:[]).concat(Ul[Tl])}Va=Va.concat(Gl)}}return[[].concat(...Ba),Er,Va]};return{search:function(){return Ta(...arguments)},split:rs,filter:ha,info:si,sort:t.sort}}const i6=(()=>{let t={A:"\xC1\xC0\xC3\xC2\xC4\u0104",a:"\xE1\xE0\xE3\xE2\xE4\u0105",E:"\xC9\xC8\xCA\xCB\u0116",e:"\xE9\xE8\xEA\xEB\u0119",I:"\xCD\xCC\xCE\xCF\u012E",i:"\xED\xEC\xEE\xEF\u012F",O:"\xD3\xD2\xD4\xD5\xD6",o:"\xF3\xF2\xF4\xF5\xF6",U:"\xDA\xD9\xDB\xDC\u016A\u0172",u:"\xFA\xF9\xFB\xFC\u016B\u0173",C:"\xC7\u010C\u0106",c:"\xE7\u010D\u0107",L:"\u0141",l:"\u0142",N:"\xD1\u0143",n:"\xF1\u0144",S:"\u0160\u015A",s:"\u0161\u015B",Z:"\u017B\u0179",z:"\u017C\u017A"},n=new Map,s="";for(let w in t)t[w].split("").forEach(P=>{s+=P,n.set(P,w)});let c=new RegExp("["+s+"]","g"),d=w=>n.get(w);return w=>{if(typeof w=="string")return w.replace(c,d);let P=Array(w.length);for(let F=0;F<w.length;F++)P[F]=w[F].replace(c,d);return P}})();function ky(t){t=t.slice();let n=t.length,s=[t.slice()],c=new Array(n).fill(0),d=1,w,P;for(;d<n;)c[d]<d?(w=d%2&&c[d],P=t[d],t[d]=t[w],t[w]=P,++c[d],d=1,s.push(t.slice())):(c[d]=0,++d);return s}const a6=(t,n)=>n?"<mark>"+t+"</mark>":t,r6=(t,n)=>t+n;function l6(t,n,s,c,d){var w,P;s===void 0&&(s=a6),c===void 0&&(c=""),d===void 0&&(d=r6),c=(w=d(c,s(t.substring(0,n[0]),!1)))!=null?w:c;for(let ee=0;ee<n.length;ee+=2){var F,X;let pe=n[ee],ye=n[ee+1];c=(F=d(c,s(t.substring(pe,ye),!0)))!=null?F:c,ee<n.length-3&&(c=(X=d(c,s(t.substring(n[ee+1],n[ee+2]),!1)))!=null?X:c)}return c=(P=d(c,s(t.substring(n[n.length-1]),!1)))!=null?P:c,c}ug.latinize=i6,ug.permute=t=>ky([...Array(t.length).keys()]).sort((s,c)=>{for(let d=0;d<s.length;d++)if(s[d]!=c[d])return s[d]-c[d];return 0}).map(s=>s.map(c=>t[c])),ug.highlight=l6;const c6=(0,Dr.R)(()=>new Map([[Se.c.CategoryPreference,{label:"\u504F\u597D\u8BBE\u7F6E",info:{isCategory:!0}}],[Se.c.ToggleTheme,{label:"\u5207\u6362\u4E3B\u9898",info:{fuzzTag:"\u663E\u793A\u3001\u9ED1\u3001\u8272\u3001\u6DF1\u3001\u660E\u3001\u4EAE\u3001\u767D\u3001\u6D45\u3001\u7CFB\u7EDF\u3001\u754C\u9762",category:Se.c.CategoryPreference}}],[Se.c.ToggleRuler,{label:"\u663E\u793A/\u9690\u85CF\u6807\u5C3A",info:{fuzzTag:"\u5207\u6362\u3001\u663E\u793A\u3001\u9690\u85CF\u3001\u7801\u3001\u5BFC\u3001\u8F68\u3001\u6807",category:Se.c.CategoryPreference}}],[Se.c.ToggleReferenceLine,{label:"\u663E\u793A/\u9690\u85CF\u53C2\u8003\u7EBF",info:{fuzzTag:"\u5207\u3001\u6362\u3001\u663E\u3001\u9690\u3001\u85CF\u3001\u6D88\u5931\u3001\u53BB\u6389\u3001\u5F00\u542F\u3001\u7801\u3001\u5BFC\u3001\u8F68\u3001\u6807",category:Se.c.CategoryPreference}}],[Se.c.ToggleAlignLine,{label:"\u6253\u5F00/\u5173\u95ED\u5BF9\u9F50\u53C2\u8003\u7EBF\u529F\u80FD",info:{fuzzTag:"\u5207\u3001\u6362\u3001\u663E\u3001\u9690\u3001\u85CF\u3001\u6D88\u5931\u3001\u53BB\u6389\u3001\u5F00\u542F\u3001\u5BFC\u3001\u8F68\u3001\u6807",category:Se.c.CategoryPreference}}],[Se.c.ToggleSticky,{label:"\u663E\u793A/\u9690\u85CF\u6279\u6CE8",info:{fuzzTag:"\u5207\u3001\u6362\u3001\u663E\u3001\u9690\u3001\u85CF\u3001\u6D88\u5931\u3001\u53BB\u6389\u3001\u5F00\u542F\u3001\u5207\u3001\u6362\u3001\u8C08\u3001\u8BB0",category:Se.c.CategoryPreference}}],[Se.c.ToggleComment,{label:"\u663E\u793A/\u9690\u85CF\u8BC4\u8BBA",info:{fuzzTag:"\u5207\u3001\u6362\u3001\u663E\u3001\u9690\u3001\u85CF\u3001\u6D88\u5931\u3001\u53BB\u6389\u3001\u5F00\u542F\u3001\u5207\u3001\u6362\u3001\u8C08\u3001\u8BB0",category:Se.c.CategoryPreference}}],[Se.c.ToggleMultiplayerMouse,{label:"\u663E\u793A/\u9690\u85CF\u591A\u4EBA\u9F20\u6807\u6307\u9488",info:{fuzzTag:"\u5207\u3001\u6362\u3001\u663E\u3001\u9690\u3001\u85CF\u3001\u6D88\u5931\u3001\u53BB\u6389\u3001\u5F00\u542F\u3001\u534F\u4F5C\u3001\u6210\u5458\u3001\u624B\u3001\u6307",category:Se.c.CategoryPreference}}],[Se.c.ToggleLeftSide,{label:"\u663E\u793A/\u9690\u85CF\u5DE6\u9762\u677F",info:{fuzzTag:"\u5207\u3001\u6362\u3001\u663E\u3001\u9690\u3001\u85CF\u3001\u6D88\u5931\u3001\u53BB\u6389\u3001\u5F00\u542F\u3001\u8FB9\u680F\u3001\u4FA7",category:Se.c.CategoryPreference}}],[Se.c.ToggleRightSide,{label:"\u663E\u793A/\u9690\u85CF\u53F3\u9762\u677F",info:{fuzzTag:"\u5207\u3001\u6362\u3001\u663E\u3001\u9690\u3001\u85CF\u3001\u6D88\u5931\u3001\u53BB\u6389\u3001\u5F00\u542F\u3001\u8FB9\u680F\u3001\u4FA7",category:Se.c.CategoryPreference}}]])),d6=(0,Dr.R)(()=>new Map([["\u5207\u6362\u4E3B\u9898",Se.c.ToggleTheme],["\u663E\u793A/\u9690\u85CF\u6807\u5C3A",Se.c.ToggleRuler],["\u663E\u793A/\u9690\u85CF\u53C2\u8003\u7EBF",Se.c.ToggleReferenceLine],["\u6253\u5F00/\u5173\u95ED\u5BF9\u9F50\u53C2\u8003\u7EBF\u529F\u80FD",Se.c.ToggleAlignLine],["\u663E\u793A/\u9690\u85CF\u6279\u6CE8",Se.c.ToggleSticky],["\u663E\u793A/\u9690\u85CF\u8BC4\u8BBA",Se.c.ToggleComment],["\u663E\u793A/\u9690\u85CF\u591A\u4EBA\u9F20\u6807\u6307\u9488",Se.c.ToggleMultiplayerMouse],["\u663E\u793A/\u9690\u85CF\u5DE6\u9762\u677F",Se.c.ToggleLeftSide],["\u663E\u793A/\u9690\u85CF\u53F3\u9762\u677F",Se.c.ToggleRightSide]])),p6=(0,Dr.R)(()=>new Map([])),h6=(0,Dr.R)(()=>new Map([[Se.c.CategoryCommonOperation,{label:"\u901A\u7528\u64CD\u4F5C",info:{isCategory:!0}}],[Se.c.Undo,{label:"\u64A4\u9500",info:{fuzzTag:"\u56DE\u3001\u8FD4\u3001\u6094\u3001\u9000",category:Se.c.CategoryCommonOperation}}],[Se.c.Redo,{label:"\u91CD\u505A",info:{fuzzTag:"\u56DE\u3001\u8FD4\u3001\u6094\u3001\u9000",category:Se.c.CategoryCommonOperation}}],[Se.c.ComSelectAll,{label:"\u5168\u9009",info:{category:Se.c.CategoryCommonOperation}}],[Se.c.GlobalFindAndReplace,{label:"\u67E5\u627E/\u66FF\u6362",info:{category:Se.c.CategoryCommonOperation}}],[Se.c.GlobalFind,{label:"\u67E5\u627E",info:{category:Se.c.CategoryCommonOperation,noCanFuzzy:!0}}],[Se.c.GlobalReplace,{label:"\u66FF\u6362",info:{category:Se.c.CategoryCommonOperation,noCanFuzzy:!0}}],[Se.c.Preview,{label:"\u6F14\u793A",info:{fuzzTag:"\u64AD\u3001\u653E\u3001\u9884\u3001\u89C8\u3001\u5C55",category:Se.c.CategoryCommonOperation}}],[Se.c.Group,{label:"\u7EC4\u5408",info:{fuzzTag:"\u6253\u3001\u6210\u3001\u5408\u3001\u5E76\u3001\u5173\u3001\u8054",category:Se.c.CategoryCommonOperation}}],[Se.c.UnGroup,{label:"\u6253\u6563",info:{fuzzTag:"\u70B8\u3001\u89E3\u3001\u5206\u3001\u5F00\u3001\u62C6",category:Se.c.CategoryCommonOperation}}],[Se.c.Delete,{label:"\u5220\u9664",info:{fuzzTag:"",category:Se.c.CategoryCommonOperation}}],[Se.c.Cut,{label:"\u526A\u5207",info:{fuzzTag:"",category:Se.c.CategoryCommonOperation}}],[Se.c.Copy,{label:"\u590D\u5236",info:{fuzzTag:"",category:Se.c.CategoryCommonOperation}}],[Se.c.Past,{label:"\u7C98\u8D34",info:{fuzzTag:"",category:Se.c.CategoryCommonOperation}}],[Se.c.PastProperties,{label:"\u7C98\u8D34\u5C5E\u6027",info:{fuzzTag:"",category:Se.c.CategoryCommonOperation}}],[Se.c.AddComponent,{label:"\u6DFB\u52A0\u4E3A\u7EC4\u4EF6",info:{fuzzTag:"",category:Se.c.CategoryCommonOperation,noCanFuzzy:!0}}],[Se.c.CreateMaster,{label:"\u8F6C\u4E3A\u6BCD\u7248",info:{fuzzTag:"",category:Se.c.CategoryCommonOperation}}],[Se.c.CreatePanel,{label:"\u8F6C\u4E3A\u52A8\u6001\u7EC4\u4EF6",info:{fuzzTag:"",category:Se.c.CategoryCommonOperation}}],[Se.c.TogglePageTransState,{label:"\u6253\u5F00/\u5173\u95ED\u9875\u9762\u8DF3\u8F6C\u6548\u679C",info:{fuzzTag:"",category:Se.c.CategoryCommonOperation}}],[Se.c.TogglePanelTransState,{label:"\u6253\u5F00/\u5173\u95ED\u7EC4\u4EF6\u72B6\u6001\u6548\u679C",info:{fuzzTag:"",category:Se.c.CategoryCommonOperation}}],[Se.c.ToggleHandTool,{label:"\u624B\u578B\u5DE5\u5177",info:{fuzzTag:"\u5E73\u79FB\u3001pan",category:Se.c.CategoryCommonOperation}}],[Se.c.ToggleExport,{label:"\u5BFC\u51FA",info:{fuzzTag:"pdf\u3001png\u3001\u79BB\u7EBF\u3001\u6F14\u793A\u5305\u3001apk\u3001\u5B89\u5353\u3001\u5B89\u88C5\u5305\u3001\u56FE\u7247\u3001\u6587\u6863",category:Se.c.CategoryCommonOperation}}],[Se.c.Alignment,{label:"\u5BF9\u9F50",info:{category:Se.c.CategoryCommonOperation,noCanFuzzy:!0}}],[Se.c.AlignmentTop,{label:"\u9876\u5BF9\u9F50",info:{fuzzTag:"\u4E0A",category:Se.c.CategoryCommonOperation}}],[Se.c.AlignmentMiddle,{label:"\u5782\u76F4\u5C45\u4E2D",info:{fuzzTag:"\u7EB5\u3001\u7AD6",category:Se.c.CategoryCommonOperation}}],[Se.c.AlignmentBottom,{label:"\u5E95\u5BF9\u9F50",info:{fuzzTag:"\u4E0B",category:Se.c.CategoryCommonOperation}}],[Se.c.AlignmentLeft,{label:"\u5DE6\u5BF9\u9F50",info:{category:Se.c.CategoryCommonOperation}}],[Se.c.AlignmentCenter,{label:"\u6C34\u5E73\u5C45\u4E2D",info:{fuzzTag:"\u6A2A\u3001\u4E2D\u95F4",category:Se.c.CategoryCommonOperation}}],[Se.c.AlignmentRight,{label:"\u53F3\u5BF9\u9F50",info:{category:Se.c.CategoryCommonOperation}}],[Se.c.AlignmentHorizontal,{label:"\u6C34\u5E73\u7B49\u95F4\u8DDD",info:{fuzzTag:"\u6A2A\u3001\u7B49\u8DDD\u3001\u5747\u5300",category:Se.c.CategoryCommonOperation}}],[Se.c.AlignmentVertical,{label:"\u5782\u76F4\u7B49\u95F4\u8DDD",info:{fuzzTag:"\u7EB5\u3001\u7AD6\u3001\u7B49\u8DDD\u3001\u5747\u5300",category:Se.c.CategoryCommonOperation}}],[Se.c.SearchMktSource,{label:"\u641C\u7D22\u7D20\u6750\u8D44\u6E90",info:{fuzzTag:"\u641C\u3001\u67E5\u3001\u7D20\u6750\u3001\u8D44\u6E90\u3001\u7EC4\u4EF6\u3001\u56FE\u6807\u3001\u56FE\u7247\u3001\u9875\u9762",category:Se.c.CategoryCommonOperation}}],[Se.c.AI3Help,{label:"\u4F7F\u7528\u5E2E\u52A9",info:{fuzzTag:"",category:Se.c.CategoryAI}}]])),u6=(0,Dr.R)(()=>new Map([["\u64A4\u9500",Se.c.Undo],["\u91CD\u505A",Se.c.Redo],["\u5168\u9009",Se.c.ComSelectAll],["\u6F14\u793A",Se.c.Preview],["\u7EC4\u5408",Se.c.Group],["\u6253\u6563",Se.c.UnGroup],["\u6DFB\u52A0\u4E3A\u7EC4\u4EF6",Se.c.AddComponent],["\u5220\u9664",Se.c.Delete],["\u67E5\u627E",Se.c.GlobalFind],["\u66FF\u6362",Se.c.GlobalReplace],["\u67E5\u627E\u66FF\u6362",Se.c.GlobalFindAndReplace],["\u526A\u5207",Se.c.Cut],["\u590D\u5236",Se.c.Copy],["\u7C98\u8D34",Se.c.Past],["\u7C98\u8D34\u5C5E\u6027",Se.c.PastProperties],["\u8F6C\u4E3A\u6BCD\u7248",Se.c.CreateMaster],["\u8F6C\u4E3A\u52A8\u6001\u7EC4\u4EF6",Se.c.CreatePanel],["\u6253\u5F00/\u5173\u95ED\u9875\u9762\u8DF3\u8F6C\u6548\u679C",Se.c.TogglePageTransState],["\u6253\u5F00/\u5173\u95ED\u7EC4\u4EF6\u72B6\u6001\u6548\u679C",Se.c.TogglePanelTransState],["\u624B\u578B\u5DE5\u5177",Se.c.ToggleHandTool],["\u5BF9\u9F50",Se.c.Alignment],["\u9876\u5BF9\u9F50",Se.c.AlignmentTop],["\u5782\u76F4\u5C45\u4E2D",Se.c.AlignmentMiddle],["\u5E95\u5BF9\u9F50",Se.c.AlignmentBottom],["\u5DE6\u5BF9\u9F50",Se.c.AlignmentLeft],["\u6C34\u5E73\u5C45\u4E2D",Se.c.AlignmentCenter],["\u53F3\u5BF9\u9F50",Se.c.AlignmentRight],["\u6C34\u5E73\u7B49\u95F4\u8DDD",Se.c.AlignmentHorizontal],["\u5782\u76F4\u7B49\u95F4\u8DDD",Se.c.AlignmentVertical],["\u5BFC\u51FA",Se.c.ToggleExport],["\u641C\u7D22\u7D20\u6750\u8D44\u6E90",Se.c.SearchMktSource]])),m6=(0,Dr.R)(()=>new Map([[Se.c.CategoryFile,{label:"\u6587\u4EF6\u64CD\u4F5C",info:{isCategory:!0}}],[Se.c.Save,{label:"\u4FDD\u5B58",info:{fuzzTag:"save\u3001\u5B58\u3001\u50A8\u3001\u7559",category:Se.c.CategoryFile}}],[Se.c.ProjectRename,{label:"\u6587\u4EF6\u91CD\u547D\u540D",info:{fuzzTag:"\u6539\u3001\u8C03\u3001\u4FEE",category:Se.c.CategoryFile,noCanFuzzy:!0}}],[Se.c.ViewFileInfo,{label:"\u67E5\u770B\u6587\u4EF6\u4FE1\u606F",info:{fuzzTag:"\u6570\u91CF\u3001\u7EDF\u8BA1",category:Se.c.CategoryFile}}],[Se.c.ViewVersionRecord,{label:"\u67E5\u770B\u7248\u672C\u8BB0\u5F55",info:{fuzzTag:"\u56DE\u6EDA\u3001\u5386\u53F2\u3001\u8BB0\u5F55",category:Se.c.CategoryFile}}],[Se.c.CreateNewVersion,{label:"\u4FDD\u5B58\u4E3A\u65B0\u7248\u672C",info:{fuzzTag:"\u4FDD\u5B58\u3001save\u3001\u5B58\u3001\u50A8\u3001\u7559",category:Se.c.CategoryFile}}],[Se.c.ToggleViewShare,{label:"\u5206\u4EAB",info:{fuzzTag:"\u53D1\u7ED9\u3001\u94FE\u63A5\u3001\u9884\u89C8\u3001\u4EA4\u4ED8\u3001\u67E5\u770B",category:Se.c.CategoryFile}}],[Se.c.OpenColorPicker,{label:"\u53D6\u8272\u5668",info:{fuzzTag:"\u53D6\u3001\u5339\u3001\u9009\u3001\u8C03",category:Se.c.CategoryFile}}]])),g6=(0,Dr.R)(()=>new Map([["\u4FDD\u5B58",Se.c.Save],["\u6587\u4EF6\u91CD\u547D\u540D",Se.c.ProjectRename],["\u67E5\u770B\u6587\u4EF6\u4FE1\u606F",Se.c.ViewFileInfo],["\u67E5\u770B\u7248\u672C\u8BB0\u5F55",Se.c.ViewVersionRecord],["\u4FDD\u5B58\u4E3A\u65B0\u7248\u672C",Se.c.CreateNewVersion],["\u5206\u4EAB",Se.c.ToggleViewShare],["\u53D6\u8272\u5668",Se.c.OpenColorPicker]])),f6=(0,Dr.R)(()=>new Map([[Se.c.CategoryLayoutView,{label:"\u5E03\u5C40\u89C6\u56FE",info:{isCategory:!0}}],[Se.c.ZoomIn,{label:"\u653E\u5927",info:{fuzzTag:"\u5927\u3001\u8FD1\u3001\u89C6\u3001\u6269",category:Se.c.CategoryLayoutView}}],[Se.c.ZoomOut,{label:"\u7F29\u5C0F",info:{fuzzTag:"\u5C0F\u3001\u8FDC\u3001\u89C6\u3001\u51CF",category:Se.c.CategoryLayoutView}}],[Se.c.ZoomToHundred,{label:"\u7F29\u653E\u81F3100%",info:{fuzzTag:"\u5206\u3001\u5BF9\u3001\u9F50\u3001\u51C6",category:Se.c.CategoryLayoutView}}],[Se.c.ZoomSelection,{label:"\u7F29\u653E\u81F3\u9009\u533A",info:{fuzzTag:"\u7126\u3001\u70B9\u3001\u96C6\u3001\u4E2D",category:Se.c.CategoryLayoutView}}],[Se.c.FitCanvas,{label:"\u9002\u5E94\u753B\u5E03",info:{fuzzTag:"\u5339\u3001\u914D",category:Se.c.CategoryLayoutView}}],[Se.c.LinkDisplayChange,{label:"\u5207\u6362\u94FE\u63A5\u663E\u793A\u6837\u5F0F",info:{fuzzTag:"",category:Se.c.CategoryLayoutView,noCanFuzzy:!0}}],[Se.c.ToggleSelectMode,{label:"\u5207\u6362\u9009\u4E2D\u6A21\u5F0F",info:{fuzzTag:"",category:Se.c.CategoryLayoutView}}],[Se.c.ToggleDynamicSpacing,{label:"\u5F00\u542F/\u5173\u95ED\u52A8\u6001\u95F4\u8DDD",info:{fuzzTag:"",category:Se.c.CategoryLayoutView}}],[Se.c.FullScreenMode,{label:"\u5F00\u542F/\u5173\u95ED\u5168\u5C4F\u6A21\u5F0F",info:{fuzzTag:"\u5207\u3001\u5F00\u542F\u3001\u5207\u3001\u89C8",category:Se.c.CategoryLayoutView}}]])),y6=(0,Dr.R)(()=>new Map([["\u653E\u5927",Se.c.ZoomIn],["\u7F29\u5C0F",Se.c.ZoomOut],["\u7F29\u653E\u81F3100%",Se.c.ZoomToHundred],["\u7F29\u653E\u81F3\u9009\u533A",Se.c.ZoomSelection],["\u9002\u5E94\u753B\u5E03",Se.c.FitCanvas],["\u5207\u6362\u94FE\u63A5\u663E\u793A\u6837\u5F0F",Se.c.LinkDisplayChange],["\u5207\u6362\u9009\u4E2D\u6A21\u5F0F",Se.c.ToggleSelectMode],["\u5F00\u542F/\u5173\u95ED\u52A8\u6001\u95F4\u8DDD",Se.c.ToggleDynamicSpacing],["\u5F00\u542F/\u5173\u95ED\u5168\u5C4F\u6A21\u5F0F",Se.c.FullScreenMode]])),x6=(0,Dr.R)(()=>new Map([[Se.c.CategoryHelpCenter,{label:"\u5E2E\u52A9",info:{isCategory:!0}}],[Se.c.ToggleShortcutKey,{label:"\u67E5\u770B\u5FEB\u6377\u952E",info:{fuzzTag:"shortcut\u3001\u5F84\u3001\u901F\u3001\u542F",category:Se.c.CategoryHelpCenter}}],[Se.c.OpenHelperCenter,{label:"\u6253\u5F00\u5E2E\u52A9\u4E2D\u5FC3",info:{fuzzTag:"\u63F4\u3001\u7B54\u3001\u8BE2\u3001\u7591\u3001why\u3001\u4E3A\u4EC0\u4E48\u3001\u600E\u4E48\u3001\u600E\u6837\u3001\u5982\u4F55\u3001how\u3001\u80FD",category:Se.c.CategoryHelpCenter}}],[Se.c.Feedback,{label:"\u9700\u6C42\u53CD\u9988",info:{fuzzTag:"\u6C42\u3001\u5E94\u3001\u542C\u3001\u5EFA\u8BAE\u3001\u751F\u6C14\u3001\u5938\u5956",category:Se.c.CategoryHelpCenter}}],[Se.c.NewFeature,{label:"\u65B0\u7248\u529F\u80FD\u4ECB\u7ECD",info:{fuzzTag:"\u89C8\u3001new\u3001\u7248\u672C",category:Se.c.CategoryHelpCenter}}]])),v6=(0,Dr.R)(()=>new Map([["\u67E5\u770B\u5FEB\u6377\u952E",Se.c.ToggleShortcutKey],["\u6253\u5F00\u5E2E\u52A9\u4E2D\u5FC3",Se.c.OpenHelperCenter],["\u9700\u6C42\u53CD\u9988",Se.c.Feedback],["\u65B0\u7248\u529F\u80FD\u4ECB\u7ECD",Se.c.NewFeature]])),b6=(0,Dr.R)(()=>new Map([[Se.c.CategoryBW,{label:"\u57FA\u7840\u7EC4\u4EF6",info:{isCategory:!0}}],[Se.c.CRichText,{label:"\u65B0\u5EFA\u6587\u5B57\u7EC4\u4EF6",info:{fuzzTag:"\u6587\u3001\u5B57\u3001\u672C\u3001\u8F93\u5165\u3001\u952E\u3001font\u3001text\u3001txt\u3001\u6846\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:Se.c.CategoryBW}}],[Se.c.CWRect,{label:"\u65B0\u5EFA\u77E9\u5F62",info:{fuzzTag:"\u77E9\u3001\u5F62\u3001\u65B9\u3001\u6846\u3001\u8FB9\u3001rectangle\u3001square\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:Se.c.CategoryBW}}],[Se.c.CWOval,{label:"\u65B0\u5EFA\u5706\u5F62",info:{fuzzTag:"\u5F27\u3001\u73AF\u3001\u7403\u3001\u76D8\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:Se.c.CategoryBW}}],[Se.c.CWLine,{label:"\u65B0\u5EFA\u7EBF\u6761",info:{fuzzTag:"\u7EBF\u3001\u6761\u3001\u76F4\u3001\u8FDE\u63A5\u3001line\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:Se.c.CategoryBW}}],[Se.c.CWButton,{label:"\u65B0\u5EFA\u6309\u94AE",info:{fuzzTag:"\u6309\u3001\u952E\u3001\u5F00\u5173\u3001\u63A7\u5236\u3001\u89E6\u3001button\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:Se.c.CategoryBW}}],[Se.c.CWArrow,{label:"\u65B0\u5EFA\u7BAD\u5934",info:{fuzzTag:"\u6307\u3001\u5411\u3001\u7BAD\u3001\u6807\u3001\u5BFC\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:Se.c.CategoryBW}}],[Se.c.CWPlaceholder,{label:"\u65B0\u5EFA\u5360\u4F4D\u7B26",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new\u3001\u7A7A",category:Se.c.CategoryBW}}],[Se.c.CWTable,{label:"\u65B0\u5EFA\u8868\u683C",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new\u3001\u5217\u3001\u884C\u3001\u6846\u3001\u6570\u636E",category:Se.c.CategoryBW}}],[Se.c.CWSticky,{label:"\u65B0\u5EFA\u6279\u6CE8",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new\u3001\u6807\u3001\u8BB0",category:Se.c.CategoryBW}}],[Se.c.CWTear,{label:"\u65B0\u5EFA\u6253\u70B9\u6279\u6CE8",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new\u3001\u6807\u3001\u8BB0",category:Se.c.CategoryBW}}],[Se.c.CWIphoneXSB,{label:"\u65B0\u5EFA\u72B6\u6001\u680F",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001\u6761\u3001\u793A\u3001bar",category:Se.c.CategoryBW}}],[Se.c.CDynCpts,{label:"\u65B0\u5EFA\u52A8\u6001\u7EC4\u4EF6",info:{fuzzTag:"",category:Se.c.CategoryBW}}],[Se.c.CScrollPanel,{label:"\u65B0\u5EFA\u6EDA\u52A8\u9762\u677F",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001\u89C6\u3001\u533A\u3001\u8F74\u3001\u6761\u3001\u6846",category:Se.c.CategoryBW}}],[Se.c.CWLr,{label:"\u65B0\u5EFA\u94FE\u63A5\u533A\u57DF",info:{category:Se.c.CategoryBW}}],[Se.c.CWImage,{label:"\u65B0\u5EFA\u56FE\u7247",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001pic\u3001jpg\u3001png\u3001bmp\u3001webp\u3001\u50CF\u3001\u7167\u3001\u8C61\u3001jpeg\u3001\u5236\u3001\u7ED8",category:Se.c.CategoryBW}}],[Se.c.CComment,{label:"\u65B0\u5EFA\u8BC4\u8BBA",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001\u8A00\u3001\u8BB0\u3001\u6279",category:Se.c.CategoryBW}}],[Se.c.CElbow,{label:"\u65B0\u5EFA\u8FDE\u63A5\u7EBF",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001\u7F06\u3001\u7EBD\u3001\u6307",category:Se.c.CategoryBW}}],[Se.c.CVector,{label:"\u94A2\u7B14\u5DE5\u5177",info:{fuzzTag:"\u4E66\u3001\u5199\u3001\u7ED8\u3001pen\u3001svg\u3001\u8DEF\u5F84\u3001\u77E2\u91CF\u3001\u66F2\u3001\u7EBF\u3001\u8D1D\u8D5B\u5C14",category:Se.c.CategoryBW}}],[Se.c.Other,{label:"\u5176\u4ED6",info:{category:Se.c.CategoryBW}}]])),C6=(0,Dr.R)(()=>new Map([["\u65B0\u5EFA\u77E9\u5F62",Se.c.CWRect],["\u65B0\u5EFA\u5706\u5F62",Se.c.CWOval],["\u65B0\u5EFA\u6587\u5B57\u7EC4\u4EF6",Se.c.CRichText],["\u65B0\u5EFA\u6309\u94AE",Se.c.CWButton],["\u65B0\u5EFA\u7BAD\u5934",Se.c.CWArrow],["\u65B0\u5EFA\u7EBF\u6761",Se.c.CWLine],["\u65B0\u5EFA\u5360\u4F4D\u7B26",Se.c.CWPlaceholder],["\u65B0\u5EFA\u8868\u683C",Se.c.CWTable],["\u65B0\u5EFA\u6279\u6CE8",Se.c.CWSticky],["\u65B0\u5EFA\u6253\u70B9\u6279\u6CE8",Se.c.CWTear],["\u65B0\u5EFA\u72B6\u6001\u680F",Se.c.CWIphoneXSB],["\u65B0\u5EFA\u6EDA\u52A8\u9762\u677F",Se.c.CScrollPanel],["\u65B0\u5EFA\u94FE\u63A5\u533A\u57DF",Se.c.CWLr],["\u65B0\u5EFA\u56FE\u7247",Se.c.CWImage],["\u65B0\u5EFA\u8BC4\u8BBA",Se.c.CComment],["\u65B0\u5EFA\u8FDE\u63A5\u7EBF",Se.c.CElbow],["\u94A2\u7B14\u5DE5\u5177",Se.c.CVector],["\u65B0\u5EFA\u52A8\u6001\u7EC4\u4EF6",Se.c.CDynCpts],["\u5176\u4ED6",Se.c.Other]])),w6=(0,Dr.R)(()=>new Map([[Se.c.CategoryForm,{label:"\u8868\u5355",info:{isCategory:!0}}],[Se.c.CWMTextInput,{label:"\u65B0\u5EFA\u5355\u884C\u8F93\u5165\u7EC4\u4EF6",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u751F\u3001\u6210\u3001\u521B\u3001\u57DF\u3001\u6846\u3001\u6587\u3001\u5B57\u3001\u533A\u3001\u586B",category:Se.c.CategoryForm}}],[Se.c.CWMTextArea,{label:"\u65B0\u5EFA\u591A\u884C\u8F93\u5165\u7EC4\u4EF6",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u751F\u3001\u6210\u3001\u521B\u3001\u6587\u3001\u57DF\u3001\u6761\u3001\u793A",category:Se.c.CategoryForm}}],[Se.c.CWMSelect,{label:"\u65B0\u5EFA\u4E0B\u62C9\u9009\u62E9\u5668",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u751F\u3001\u6210\u3001\u521B\u3001\u83DC\u3001\u5355\u3001\u5217\u3001\u9879\u3001\u8868",category:Se.c.CategoryForm}}],[Se.c.CWMFileInput,{label:"\u65B0\u5EFA\u6587\u4EF6\u9009\u62E9\u7EC4\u4EF6",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u751F\u3001\u6210\u3001\u521B\u3001\u4E0A\u4F20",category:Se.c.CategoryForm}}],[Se.c.CWSelectionControlRadio,{label:"\u65B0\u5EFA\u5355\u9009\u7EC4\u4EF6",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u751F\u3001\u6210\u3001\u521B\u3001\u9009\u3001\u5708\u3001\u5355\u3001\u9879\u3001\u53D6\u3001\u52FE",category:Se.c.CategoryForm}}],[Se.c.CWSelectionControlCheckbox,{label:"\u65B0\u5EFA\u590D\u9009\u7EC4\u4EF6",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u751F\u3001\u6210\u3001\u521B\u3001\u590D\u3001\u9009\u3001\u6846\u3001\u591A\u3001\u52FE",category:Se.c.CategoryForm}}],[Se.c.CWAndroidSwitch,{label:"\u65B0\u5EFA\u5B89\u5353\u5F00\u5173",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u751F\u3001\u6210\u3001\u521B\u3001\u5207\u3001\u6362\u3001\u63A7\u3001android\u3001\u624B\u673A",category:Se.c.CategoryForm}}],[Se.c.CWIosSwitch,{label:"\u65B0\u5EFAios\u5F00\u5173",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u751F\u3001\u6210\u3001\u521B\u3001\u5207\u3001\u6362\u3001\u63A7\u3001\u82F9\u679C\u3001mac\u3001watch\u3001pad\u3001iphone\u3001\u624B\u673A",category:Se.c.CategoryForm}}],[Se.c.CWSlider,{label:"\u65B0\u5EFA\u6ED1\u52A8\u6761",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u751F\u3001\u6210\u3001\u521B\u3001\u6ED1\u3001\u6761\u3001\u8C03\u3001\u8282\u3001\u8F68",category:Se.c.CategoryForm}}],[Se.c.CWDigitalStepper,{label:"\u65B0\u5EFA\u6570\u5B57\u6B65\u8FDB\u5668",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u751F\u3001\u6210\u3001\u521B\u3001\u6570\u3001\u6B65\u3001\u8FDB\u3001\u8C03\u3001\u589E",category:Se.c.CategoryForm}}]])),S6=(0,Dr.R)(()=>new Map([["\u65B0\u5EFA\u5355\u884C\u8F93\u5165\u7EC4\u4EF6",Se.c.CWMTextInput],["\u65B0\u5EFA\u591A\u884C\u8F93\u5165\u7EC4\u4EF6",Se.c.CWMTextArea],["\u65B0\u5EFA\u4E0B\u62C9\u9009\u62E9\u5668",Se.c.CWMSelect],["\u65B0\u5EFA\u6587\u4EF6\u9009\u62E9\u7EC4\u4EF6",Se.c.CWMFileInput],["\u65B0\u5EFA\u5355\u9009\u7EC4\u4EF6",Se.c.CWSelectionControlRadio],["\u65B0\u5EFA\u590D\u9009\u7EC4\u4EF6",Se.c.CWSelectionControlCheckbox],["\u65B0\u5EFA\u5B89\u5353\u5F00\u5173",Se.c.CWAndroidSwitch],["\u65B0\u5EFAios\u5F00\u5173",Se.c.CWIosSwitch],["\u65B0\u5EFA\u6ED1\u52A8\u6761",Se.c.CWSlider],["\u65B0\u5EFA\u6570\u5B57\u6B65\u8FDB\u5668",Se.c.CWDigitalStepper]])),A6=(0,Dr.R)(()=>new Map([[Se.c.CategoryNavigation,{label:"\u5BFC\u822A",info:{isCategory:!0}}],[Se.c.CWDropMenu,{label:"\u65B0\u5EFA\u4E0B\u62C9\u83DC\u5355",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001\u5217\u3001\u9009\u3001\u9879\u3001drop",category:Se.c.CategoryNavigation}}],[Se.c.CDynamicDropMenu,{label:"\u65B0\u5EFA\u5F39\u51FA\u83DC\u5355",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001\u5217\u3001\u9009\u3001\u9879\u3001pop",category:Se.c.CategoryNavigation}}],[Se.c.CWNavigationMenu,{label:"\u65B0\u5EFA\u5BFC\u822A\u83DC\u5355",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001\u83DC\u3001\u5355\u3001\u8DEF\u3001\u884C",category:Se.c.CategoryNavigation}}],[Se.c.CWNavigationMenuH,{label:"\u65B0\u5EFA\u6C34\u5E73\u83DC\u5355",info:{fuzzTag:"\u884C",category:Se.c.CategoryNavigation}}],[Se.c.CWNavigationMenuV,{label:"\u65B0\u5EFA\u5782\u76F4\u83DC\u5355",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001\u5217",category:Se.c.CategoryNavigation}}],[Se.c.CWMobileTabBars,{label:"\u65B0\u5EFA\u79FB\u52A8\u7AEF\u5BFC\u822A",info:{fuzzTag:"nav\u3001\u89C8",category:Se.c.CategoryNavigation}}],[Se.c.CWSegmentedControl,{label:"\u65B0\u5EFA\u5206\u6BB5\u5668",info:{fuzzTag:"tab\u3001\u5207\u3001\u6362",category:Se.c.CategoryNavigation}}],[Se.c.CWCollapse,{label:"\u65B0\u5EFA\u6298\u53E0\u9762\u677F",info:{fuzzTag:"\u5C55\u3001\u533A",category:Se.c.CategoryNavigation}}],[Se.c.CWTabs,{label:"\u65B0\u5EFA\u6807\u7B7E\u9875",info:{fuzzTag:"tab\u3001\u5361\u3001\u754C\u3001\u5207",category:Se.c.CategoryNavigation}}],[Se.c.CWPaginationMobile,{label:"\u65B0\u5EFA\u5206\u9875\u56681",info:{category:Se.c.CategoryNavigation}}],[Se.c.CWPaginationWeb,{label:"\u65B0\u5EFA\u5206\u9875\u56682",info:{category:Se.c.CategoryNavigation}}]])),I6=(0,Dr.R)(()=>new Map([["\u65B0\u5EFA\u4E0B\u62C9\u83DC\u5355",Se.c.CWDropMenu],["\u65B0\u5EFA\u5F39\u51FA\u83DC\u5355",Se.c.CDynamicDropMenu],["\u65B0\u5EFA\u5BFC\u822A\u83DC\u5355",Se.c.CWNavigationMenu],["\u65B0\u5EFA\u6C34\u5E73\u83DC\u5355",Se.c.CWNavigationMenuH],["\u65B0\u5EFA\u5782\u76F4\u83DC\u5355",Se.c.CWNavigationMenuV],["\u65B0\u5EFA\u79FB\u52A8\u7AEF\u5BFC\u822A",Se.c.CWMobileTabBars],["\u65B0\u5EFA\u5206\u6BB5\u5668",Se.c.CWSegmentedControl],["\u65B0\u5EFA\u6298\u53E0\u9762\u677F",Se.c.CWCollapse],["\u65B0\u5EFA\u6807\u7B7E\u9875",Se.c.CWTabs],["\u65B0\u5EFA\u5206\u9875\u5668",Se.c.CWPaginationMobile],["\u65B0\u5EFA\u5206\u9875\u56682",Se.c.CWPaginationWeb]])),M6=(0,Dr.R)(()=>new Map([[Se.c.CategoryChart,{label:"\u56FE\u8868",info:{isCategory:!0}}],[Se.c.CreateChart,{label:"\u65B0\u5EFA\u56FE\u8868",info:{fuzzTag:"\u8FF9\u3001\u8D8B\u3001\u8868\u3001\u7EDF\u3001\u8BA1\u3001\u6A2A\u3001\u7AD6\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:Se.c.CategoryChart}}]])),T6=(0,Dr.R)(()=>new Map([["\u65B0\u5EFA\u56FE\u8868",Se.c.CreateChart]])),E6=(0,Dr.R)(()=>new Map([[Se.c.CategoryMultimedia,{label:"\u591A\u5A92\u4F53",info:{isCategory:!0}}],[Se.c.CWWebpage,{label:"\u65B0\u5EFA\u7F51\u9875\u7EC4\u4EF6",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:Se.c.CategoryMultimedia}}],[Se.c.CWCarousel,{label:"\u65B0\u5EFA\u8F6E\u64AD\u56FE",info:{fuzzTag:"\u8F6E\u3001\u64AD\u3001\u56FE\u3001\u6ED1\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:Se.c.CategoryMultimedia}}],[Se.c.CWVideo,{label:"\u65B0\u5EFA\u89C6\u9891\u7EC4\u4EF6",info:{fuzzTag:"\u89C6\u3001\u9891\u3001\u5F55\u3001\u653E\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:Se.c.CategoryMultimedia}}],[Se.c.CWAudio,{label:"\u65B0\u5EFA\u97F3\u9891\u7EC4\u4EF6",info:{fuzzTag:"\u97F3\u3001\u9891\u3001\u542C\u3001\u5F55\u3001\u653E\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:Se.c.CategoryMultimedia}}],[Se.c.CWQRCode,{label:"\u65B0\u5EFA\u4E8C\u7EF4\u7801\u7EC4\u4EF6",info:{fuzzTag:"\u4E8C\u3001\u7EF4\u3001\u7801\u3001\u626B\u3001\u8BC6\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:Se.c.CategoryMultimedia}}],[Se.c.CWMapView,{label:"\u65B0\u5EFA\u5730\u56FE\u7EC4\u4EF6",info:{fuzzTag:"\u5730\u3001\u56FE\u3001\u5BFC\u3001\u4F4D\u3001\u63A2\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:Se.c.CategoryMultimedia}}],[Se.c.CWMTooltip,{label:"\u65B0\u5EFA\u804A\u5929\u6C14\u6CE1",info:{category:Se.c.CategoryMultimedia}}]])),k6=(0,Dr.R)(()=>new Map([["\u65B0\u5EFA\u7F51\u9875\u7EC4\u4EF6",Se.c.CWWebpage],["\u65B0\u5EFA\u8F6E\u64AD\u56FE",Se.c.CWCarousel],["\u65B0\u5EFA\u89C6\u9891\u7EC4\u4EF6",Se.c.CWVideo],["\u65B0\u5EFA\u97F3\u9891\u7EC4\u4EF6",Se.c.CWAudio],["\u65B0\u5EFA\u4E8C\u7EF4\u7801\u7EC4\u4EF6",Se.c.CWQRCode],["\u65B0\u5EFA\u5730\u56FE\u7EC4\u4EF6",Se.c.CWMapView],["\u65B0\u5EFA\u804A\u5929\u6C14\u6CE1",Se.c.CWMTooltip]])),_6=(0,Dr.R)(()=>new Map([[Se.c.CategoryShape,{label:"\u5F62\u72B6",info:{isCategory:!0}}],[Se.c.CWPolygon,{label:"\u65B0\u5EFA\u591A\u8FB9\u5F62",info:{fuzzTag:"\u5F62\u3001\u8FB9\u3001\u591A\u3001\u89D2\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:Se.c.CategoryShape}}],[Se.c.CWStar,{label:"\u65B0\u5EFA\u661F\u5F62",info:{fuzzTag:"\u661F\u3001\u5F62\u3001\u8F89\u3001\u5C04\u3001\u70B9\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:Se.c.CategoryShape}}],[Se.c.CWTriangle,{label:"\u65B0\u5EFA\u4E09\u89D2\u5F62",info:{fuzzTag:"\u4E09\u3001\u89D2\u3001\u5F62\u3001\u8FB9\u3001\u5C16\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:Se.c.CategoryShape}}]])),P6=(0,Dr.R)(()=>new Map([["\u65B0\u5EFA\u591A\u8FB9\u5F62",Se.c.CWPolygon],["\u65B0\u5EFA\u661F\u5F62",Se.c.CWStar],["\u65B0\u5EFA\u4E09\u89D2\u5F62",Se.c.CWTriangle]])),N6=(0,Dr.R)(()=>new Map([[Se.c.CategoryDelete,{label:"\u5220\u9664",info:{isCategory:!0}}],[Se.c.DWRichText,{label:"\u5220\u9664\u6587\u5B57\u7EC4\u4EF6",info:{fuzzTag:"\u6587\u3001\u5B57\u3001\u672C\u3001\u8F93\u5165\u3001\u952E\u3001font\u3001text\u3001txt\u3001\u6846\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:Se.c.CategoryDelete}}],[Se.c.DWRect,{label:"\u5220\u9664\u77E9\u5F62",info:{fuzzTag:"\u77E9\u3001\u5F62\u3001\u65B9\u3001\u6846\u3001\u8FB9\u3001rectangle\u3001square\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:Se.c.CategoryDelete}}],[Se.c.DWOval,{label:"\u5220\u9664\u5706\u5F62",info:{fuzzTag:"\u5F27\u3001\u73AF\u3001\u7403\u3001\u76D8\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:Se.c.CategoryDelete}}],[Se.c.DWLine,{label:"\u5220\u9664\u7EBF\u6761",info:{fuzzTag:"\u7EBF\u3001\u6761\u3001\u76F4\u3001\u8FDE\u63A5\u3001line\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:Se.c.CategoryDelete}}],[Se.c.DWButton,{label:"\u5220\u9664\u6309\u94AE",info:{fuzzTag:"\u6309\u3001\u952E\u3001\u5F00\u5173\u3001\u63A7\u5236\u3001\u89E6\u3001button\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:Se.c.CategoryDelete}}],[Se.c.DWArrow,{label:"\u5220\u9664\u7BAD\u5934",info:{fuzzTag:"\u6307\u3001\u5411\u3001\u7BAD\u3001\u6807\u3001\u5BFC\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:Se.c.CategoryDelete}}],[Se.c.DWPolygon,{label:"\u5220\u9664\u591A\u8FB9\u5F62",info:{fuzzTag:"\u5F62\u3001\u8FB9\u3001\u591A\u3001\u56FE\u3001\u89D2\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:Se.c.CategoryDelete}}],[Se.c.DWStar,{label:"\u5220\u9664\u661F\u5F62",info:{fuzzTag:"\u661F\u3001\u5F62\u3001\u8F89\u3001\u5C04\u3001\u70B9\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:Se.c.CategoryDelete}}],[Se.c.DWTriangle,{label:"\u5220\u9664\u4E09\u89D2\u5F62",info:{fuzzTag:"\u4E09\u3001\u89D2\u3001\u5F62\u3001\u8FB9\u3001\u5C16\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:Se.c.CategoryDelete}}],[Se.c.DWCarousel,{label:"\u5220\u9664\u8F6E\u64AD\u56FE",info:{fuzzTag:"\u8F6E\u3001\u64AD\u3001\u5E7B\u3001\u6ED1\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:Se.c.CategoryDelete}}],[Se.c.DWWebpage,{label:"\u5220\u9664\u7F51\u9875\u7EC4\u4EF6",info:{fuzzTag:"\u6D4F\u3001\u70B9\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:Se.c.CategoryDelete}}],[Se.c.DWVideo,{label:"\u5220\u9664\u89C6\u9891\u7EC4\u4EF6",info:{fuzzTag:"\u89C6\u3001\u9891\u3001\u5F71\u3001\u5F55\u3001\u653E\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:Se.c.CategoryDelete}}],[Se.c.DWAudio,{label:"\u5220\u9664\u97F3\u9891\u7EC4\u4EF6",info:{fuzzTag:"\u97F3\u3001\u9891\u3001\u542C\u3001\u5F55\u3001\u653E\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:Se.c.CategoryDelete}}],[Se.c.DWQRCode,{label:"\u5220\u9664\u4E8C\u7EF4\u7801\u7EC4\u4EF6",info:{fuzzTag:"\u4E8C\u3001\u7EF4\u3001\u7801\u3001\u626B\u3001\u8BC6\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:Se.c.CategoryDelete}}],[Se.c.DWMapView,{label:"\u5220\u9664\u5730\u56FE\u7EC4\u4EF6",info:{fuzzTag:"\u5730\u3001\u56FE\u3001\u5BFC\u3001\u4F4D\u3001\u63A2\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:Se.c.CategoryDelete}}],[Se.c.DWMTooltip,{label:"\u5220\u9664\u804A\u5929\u6C14\u6CE1",info:{fuzzTag:"",category:Se.c.CategoryDelete}}],[Se.c.DWLr,{label:"\u5220\u9664\u94FE\u63A5\u533A\u57DF",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u70ED\u3001\u8054\u3001\u63A5\u3001\u70B9",category:Se.c.CategoryDelete}}],[Se.c.DWImage,{label:"\u5220\u9664\u56FE\u7247",info:{fuzzTag:"\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:Se.c.CategoryDelete}}],[Se.c.DWPlaceholder,{label:"\u5220\u9664\u5360\u4F4D\u7B26",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u7A7A",category:Se.c.CategoryDelete}}],[Se.c.DWTable,{label:"\u5220\u9664\u8868\u683C",info:{fuzzTag:"\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63\u3001\u5217\u3001\u884C\u3001\u6846\u3001\u6570\u636E",category:Se.c.CategoryDelete}}],[Se.c.DWSticker,{label:"\u5220\u9664\u6279\u6CE8",info:{fuzzTag:"\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63\u3001\u6807\u3001\u8BB0",category:Se.c.CategoryDelete}}],[Se.c.DWTear,{label:"\u5220\u9664\u6253\u70B9\u6279\u6CE8",info:{fuzzTag:"\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63\u3001\u6807\u3001\u8BB0",category:Se.c.CategoryDelete}}],[Se.c.DWIphoneSB,{label:"\u5220\u9664\u72B6\u6001\u680F",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u6761\u3001\u793A\u3001bar",category:Se.c.CategoryDelete}}],[Se.c.DWMTextInput,{label:"\u5220\u9664\u5355\u884C\u8F93\u5165\u7EC4\u4EF6",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u57DF\u3001\u6846\u3001\u6587\u3001\u5B57\u3001\u533A\u3001\u586B",category:Se.c.CategoryDelete}}],[Se.c.DWMTextArea,{label:"\u5220\u9664\u591A\u884C\u8F93\u5165\u7EC4\u4EF6",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u6587\u3001\u57DF\u3001\u6761\u3001\u793A",category:Se.c.CategoryDelete}}],[Se.c.DWMSelect,{label:"\u5220\u9664\u4E0B\u62C9\u9009\u62E9\u5668",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u83DC\u3001\u5355\u3001\u5217\u3001\u9879\u3001\u8868",category:Se.c.CategoryDelete}}],[Se.c.DWMFileInput,{label:"\u5220\u9664\u6587\u4EF6\u9009\u62E9\u7EC4\u4EF6",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u4E0A\u4F20",category:Se.c.CategoryDelete}}],[Se.c.DWSelectionControlRadio,{label:"\u5220\u9664\u5355\u9009\u7EC4\u4EF6",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u9009\u3001\u5708\u3001\u5355\u3001\u9879\u3001\u53D6\u3001\u52FE",category:Se.c.CategoryDelete}}],[Se.c.DWSelectionControlCheckbox,{label:"\u5220\u9664\u590D\u9009\u7EC4\u4EF6",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u590D\u3001\u9009\u3001\u6846\u3001\u591A\u3001\u52FE",category:Se.c.CategoryDelete}}],[Se.c.DWAndroidSwitch,{label:"\u5220\u9664\u5B89\u5353\u5F00\u5173",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u5207\u3001\u6362\u3001\u63A7\u3001android",category:Se.c.CategoryDelete}}],[Se.c.DWIosSwitch,{label:"\u5220\u9664ios\u5F00\u5173",info:{fuzzTag:"\u6E05\u3001\u79FB\u3001\u5207\u3001\u6362\u3001\u63A7\u3001\u82F9\u679C\u3001mac\u3001watch\u3001pad\u3001iphone\u3001\u624B\u673A",category:Se.c.CategoryDelete}}],[Se.c.DWSlider,{label:"\u5220\u9664\u6ED1\u52A8\u6761",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u6ED1\u3001\u6761\u3001\u8C03\u3001\u8282\u3001\u8F68",category:Se.c.CategoryDelete}}],[Se.c.DWDigitalStepper,{label:"\u5220\u9664\u6570\u5B57\u6B65\u8FDB\u5668",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u6570\u3001\u6B65\u3001\u8FDB\u3001\u8C03\u3001\u589E",category:Se.c.CategoryDelete}}],[Se.c.DWDropMenu,{label:"\u5220\u9664\u4E0B\u62C9\u83DC\u5355",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u5217\u3001\u9009\u3001\u9879\u3001drop",category:Se.c.CategoryDelete}}],[Se.c.DWBasket,{label:"\u5220\u9664\u5F39\u51FA\u83DC\u5355",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u5217\u3001\u9009\u3001\u9879\u3001pop",category:Se.c.CategoryDelete}}],[Se.c.DWNavigationMenu,{label:"\u5220\u9664\u5BFC\u822A\u83DC\u5355",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u83DC\u3001\u5355\u3001\u8DEF\u3001\u884C",category:Se.c.CategoryDelete}}],[Se.c.DWNavigationMenuV,{label:"\u5220\u9664\u5782\u76F4\u83DC\u5355",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:Se.c.CategoryDelete}}],[Se.c.DWNavigationMenuH,{label:"\u5220\u9664\u6C34\u5E73\u83DC\u5355",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:Se.c.CategoryDelete}}],[Se.c.DWMobileTabBars,{label:"\u5220\u9664\u79FB\u52A8\u7AEF\u5BFC\u822A",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:Se.c.CategoryDelete}}],[Se.c.DWSegmentedControl,{label:"\u5220\u9664\u5206\u6BB5\u5668",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:Se.c.CategoryDelete}}],[Se.c.DWCollapse,{label:"\u5220\u9664\u6298\u53E0\u9762\u677F",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:Se.c.CategoryDelete}}],[Se.c.DWTabs,{label:"\u5220\u9664\u6807\u7B7E\u9875",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:Se.c.CategoryDelete}}],[Se.c.DWPaginationMobile,{label:"\u5220\u9664\u5206\u9875\u5668",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:Se.c.CategoryDelete}}],[Se.c.DWPaginationWeb,{label:"\u5220\u9664Web\u5206\u6BB5\u5668",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:Se.c.CategoryDelete}}],[Se.c.DWChart,{label:"\u5220\u9664\u56FE\u8868",info:{fuzzTag:"\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u8868",category:Se.c.CategoryDelete}}],[Se.c.DWidgets,{label:"\u5220\u9664\u5F88\u591A\u7EC4\u4EF6",info:{fuzzTag:"",category:Se.c.CategoryDelete,noCanFuzzy:!1}}]])),L6=(0,Dr.R)(()=>new Map([["\u5220\u9664\u6587\u5B57\u7EC4\u4EF6",Se.c.DWRichText],["\u5220\u9664\u77E9\u5F62",Se.c.DWRect],["\u5220\u9664\u5706\u5F62",Se.c.DWOval],["\u5220\u9664\u7EBF\u6761",Se.c.DWLine],["\u5220\u9664\u6309\u94AE",Se.c.DWButton],["\u5220\u9664\u7BAD\u5934",Se.c.DWArrow],["\u5220\u9664\u591A\u8FB9\u5F62",Se.c.DWPolygon],["\u5220\u9664\u661F\u5F62",Se.c.DWStar],["\u5220\u9664\u4E09\u89D2\u5F62",Se.c.DWTriangle],["\u5220\u9664\u8F6E\u64AD\u56FE",Se.c.DWCarousel],["\u5220\u9664\u7F51\u9875\u7EC4\u4EF6",Se.c.DWWebpage],["\u5220\u9664\u89C6\u9891\u7EC4\u4EF6",Se.c.DWVideo],["\u5220\u9664\u97F3\u9891\u7EC4\u4EF6",Se.c.DWAudio],["\u5220\u9664\u4E8C\u7EF4\u7801\u7EC4\u4EF6",Se.c.DWQRCode],["\u5220\u9664\u5730\u56FE\u7EC4\u4EF6",Se.c.DWMapView],["\u5220\u9664\u804A\u5929\u6C14\u6CE1",Se.c.DWMTooltip],["\u5220\u9664\u94FE\u63A5\u533A\u57DF",Se.c.DWLr],["\u5220\u9664\u56FE\u7247",Se.c.DWImage],["\u5220\u9664\u5360\u4F4D\u7B26",Se.c.DWPlaceholder],["\u5220\u9664\u8868\u683C",Se.c.DWTable],["\u5220\u9664\u6279\u6CE8",Se.c.DWSticker],["\u5220\u9664\u6253\u70B9\u6279\u6CE8",Se.c.DWTear],["\u5220\u9664\u72B6\u6001\u680F",Se.c.DWIphoneSB],["\u5220\u9664\u5355\u884C\u8F93\u5165\u7EC4\u4EF6",Se.c.DWMTextInput],["\u5220\u9664\u591A\u884C\u8F93\u5165\u7EC4\u4EF6",Se.c.DWMTextArea],["\u5220\u9664\u4E0B\u62C9\u9009\u62E9\u5668",Se.c.DWMSelect],["\u5220\u9664\u6587\u4EF6\u9009\u62E9\u7EC4\u4EF6",Se.c.DWMFileInput],["\u5220\u9664\u5355\u9009\u7EC4\u4EF6",Se.c.DWSelectionControlRadio],["\u5220\u9664\u590D\u9009\u7EC4\u4EF6",Se.c.DWSelectionControlCheckbox],["\u5220\u9664\u5B89\u5353\u5F00\u5173",Se.c.DWAndroidSwitch],["\u5220\u9664ios\u5F00\u5173",Se.c.DWIosSwitch],["\u5220\u9664\u6ED1\u52A8\u6761",Se.c.DWSlider],["\u5220\u9664\u6570\u5B57\u6B65\u8FDB\u5668",Se.c.DWDigitalStepper],["\u5220\u9664\u4E0B\u62C9\u83DC\u5355",Se.c.DWDropMenu],["\u5220\u9664\u5F39\u51FA\u83DC\u5355",Se.c.DWBasket],["\u5220\u9664\u5BFC\u822A\u83DC\u5355",Se.c.DWNavigationMenu],["\u5220\u9664\u5782\u76F4\u83DC\u5355",Se.c.DWNavigationMenuV],["\u5220\u9664\u6C34\u5E73\u83DC\u5355",Se.c.DWNavigationMenuH],["\u5220\u9664\u79FB\u52A8\u7AEF\u5BFC\u822A",Se.c.DWMobileTabBars],["\u5220\u9664\u5206\u6BB5\u5668",Se.c.DWSegmentedControl],["\u5220\u9664\u6298\u53E0\u9762\u677F",Se.c.DWCollapse],["\u5220\u9664\u6807\u7B7E\u9875",Se.c.DWTabs],["\u5220\u9664\u5206\u9875\u5668",Se.c.DWPaginationMobile],["\u5220\u9664Web\u5206\u6BB5\u5668",Se.c.DWPaginationWeb],["\u5220\u9664\u56FE\u8868",Se.c.DWChart],["\u5220\u9664",Se.c.DWidgets]])),D6=(0,Dr.R)(()=>new Map([[Se.c.CategorySelected,{label:"\u9009\u4E2D",info:{isCategory:!0}}],[Se.c.SWRichText,{label:"\u9009\u4E2D\u6587\u5B57\u7EC4\u4EF6",info:{fuzzTag:"",category:Se.c.CategorySelected}}],[Se.c.SWRect,{label:"\u9009\u4E2D\u77E9\u5F62",info:{fuzzTag:"",category:Se.c.CategorySelected}}],[Se.c.SWOval,{label:"\u9009\u4E2D\u5706\u5F62",info:{fuzzTag:"",category:Se.c.CategorySelected}}],[Se.c.SWLine,{label:"\u9009\u4E2D\u7EBF\u6761",info:{fuzzTag:"",category:Se.c.CategorySelected}}],[Se.c.SWButton,{label:"\u9009\u4E2D\u6309\u94AE",info:{fuzzTag:"",category:Se.c.CategorySelected}}],[Se.c.SWArrow,{label:"\u9009\u4E2D\u7BAD\u5934",info:{fuzzTag:"",category:Se.c.CategorySelected}}],[Se.c.SWPolygon,{label:"\u9009\u4E2D\u591A\u8FB9\u5F62",info:{fuzzTag:"",category:Se.c.CategorySelected}}],[Se.c.SWStar,{label:"\u9009\u4E2D\u661F\u5F62",info:{fuzzTag:"",category:Se.c.CategorySelected}}],[Se.c.SWTriangle,{label:"\u9009\u4E2D\u4E09\u89D2\u5F62",info:{fuzzTag:"",category:Se.c.CategorySelected}}],[Se.c.SWCarousel,{label:"\u9009\u4E2D\u8F6E\u64AD\u56FE",info:{fuzzTag:"",category:Se.c.CategorySelected}}],[Se.c.SWWebpage,{label:"\u9009\u4E2D\u7F51\u9875\u7EC4\u4EF6",info:{fuzzTag:"",category:Se.c.CategorySelected}}],[Se.c.SWVideo,{label:"\u9009\u4E2D\u89C6\u9891\u7EC4\u4EF6",info:{fuzzTag:"",category:Se.c.CategorySelected}}],[Se.c.SWAudio,{label:"\u9009\u4E2D\u97F3\u9891\u7EC4\u4EF6",info:{fuzzTag:"",category:Se.c.CategorySelected}}],[Se.c.SWQRCode,{label:"\u9009\u4E2D\u4E8C\u7EF4\u7801\u7EC4\u4EF6",info:{fuzzTag:"",category:Se.c.CategorySelected}}],[Se.c.SWMapView,{label:"\u9009\u4E2D\u5730\u56FE\u7EC4\u4EF6",info:{fuzzTag:"",category:Se.c.CategorySelected}}],[Se.c.SWMTooltip,{label:"\u9009\u4E2D\u804A\u5929\u6C14\u6CE1",info:{fuzzTag:"",category:Se.c.CategorySelected}}],[Se.c.SWLr,{label:"\u9009\u4E2D\u94FE\u63A5\u533A\u57DF",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u70ED\u3001\u8054\u3001\u63A5\u3001\u70B9",category:Se.c.CategorySelected}}],[Se.c.SWImage,{label:"\u9009\u4E2D\u56FE\u7247",info:{fuzzTag:"",category:Se.c.CategorySelected}}],[Se.c.SWPlaceholder,{label:"\u9009\u4E2D\u5360\u4F4D\u7B26",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u7A7A",category:Se.c.CategorySelected}}],[Se.c.SWTable,{label:"\u9009\u4E2D\u8868\u683C",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u5217\u3001\u884C\u3001\u6846\u3001\u6570\u636E",category:Se.c.CategorySelected}}],[Se.c.SWSticker,{label:"\u9009\u4E2D\u6279\u6CE8",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u6807\u3001\u8BB0",category:Se.c.CategorySelected}}],[Se.c.SWTear,{label:"\u9009\u4E2D\u6253\u70B9\u6279\u6CE8",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u6807\u3001\u8BB0",category:Se.c.CategorySelected}}],[Se.c.SWIphoneSB,{label:"\u9009\u4E2D\u72B6\u6001\u680F",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u6761\u3001\u793A\u3001bar",category:Se.c.CategorySelected}}],[Se.c.SWMTextInput,{label:"\u9009\u4E2D\u5355\u884C\u8F93\u5165\u7EC4\u4EF6",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u57DF\u3001\u6846\u3001\u6587\u3001\u5B57\u3001\u533A\u3001\u586B",category:Se.c.CategorySelected}}],[Se.c.SWMTextArea,{label:"\u9009\u4E2D\u591A\u884C\u8F93\u5165\u7EC4\u4EF6",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u6587\u3001\u57DF\u3001\u6761\u3001\u793A",category:Se.c.CategorySelected}}],[Se.c.SWMSelect,{label:"\u9009\u4E2D\u4E0B\u62C9\u9009\u62E9\u5668",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u83DC\u3001\u5355\u3001\u5217\u3001\u9879\u3001\u8868",category:Se.c.CategorySelected}}],[Se.c.SWMFileInput,{label:"\u9009\u4E2D\u6587\u4EF6\u9009\u62E9\u7EC4\u4EF6",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u4E0A\u4F20",category:Se.c.CategorySelected}}],[Se.c.SWSelectionControlRadio,{label:"\u9009\u4E2D\u5355\u9009\u7EC4\u4EF6",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u9009\u3001\u5708\u3001\u5355\u3001\u9879\u3001\u53D6\u3001\u52FE",category:Se.c.CategorySelected}}],[Se.c.SWSelectionControlCheckbox,{label:"\u9009\u4E2D\u590D\u9009\u7EC4\u4EF6",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u590D\u3001\u9009\u3001\u6846\u3001\u591A\u3001\u52FE",category:Se.c.CategorySelected}}],[Se.c.SWAndroidSwitch,{label:"\u9009\u4E2D\u5B89\u5353\u5F00\u5173",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u5207\u3001\u6362\u3001\u63A7\u3001android",category:Se.c.CategorySelected}}],[Se.c.SWIosSwitch,{label:"\u9009\u4E2Dios\u5F00\u5173",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u5207\u3001\u6362\u3001\u63A7\u3001\u82F9\u679C\u3001mac\u3001watch\u3001pad\u3001iphone\u3001\u624B\u673A",category:Se.c.CategorySelected}}],[Se.c.SWSlider,{label:"\u9009\u4E2D\u6ED1\u52A8\u6761",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u6587\u3001\u57DF\u3001\u6761\u3001\u793A",category:Se.c.CategorySelected}}],[Se.c.SWDigitalStepper,{label:"\u9009\u4E2D\u6570\u5B57\u6B65\u8FDB\u5668",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u6570\u3001\u6B65\u3001\u8FDB\u3001\u8C03\u3001\u589E",category:Se.c.CategorySelected}}],[Se.c.SWDropMenu,{label:"\u9009\u4E2D\u4E0B\u62C9\u83DC\u5355",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u5217\u3001\u9009\u3001\u9879\u3001drop",category:Se.c.CategorySelected}}],[Se.c.SWBasket,{label:"\u9009\u4E2D\u5F39\u51FA\u83DC\u5355",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u5217\u3001\u9009\u3001\u9879\u3001pop",category:Se.c.CategorySelected}}],[Se.c.SWNavigationMenu,{label:"\u9009\u4E2D\u5BFC\u822A\u83DC\u5355",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u83DC\u3001\u5355\u3001\u8DEF\u3001\u884C",category:Se.c.CategorySelected}}],[Se.c.SWNavigationMenuV,{label:"\u9009\u4E2D\u5782\u76F4\u83DC\u5355",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009",category:Se.c.CategorySelected}}],[Se.c.SWNavigationMenuH,{label:"\u9009\u4E2D\u6C34\u5E73\u83DC\u5355",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009",category:Se.c.CategorySelected}}],[Se.c.SWMobileTabBars,{label:"\u9009\u4E2D\u79FB\u52A8\u7AEF\u5BFC\u822A",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009",category:Se.c.CategorySelected}}],[Se.c.SWSegmentedControl,{label:"\u9009\u4E2D\u5206\u6BB5\u5668",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009",category:Se.c.CategorySelected}}],[Se.c.SWCollapse,{label:"\u9009\u4E2D\u6298\u53E0\u9762\u677F",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009",category:Se.c.CategorySelected}}],[Se.c.SWTabs,{label:"\u9009\u4E2D\u6807\u7B7E\u9875",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009",category:Se.c.CategorySelected}}],[Se.c.SWPaginationMobile,{label:"\u9009\u4E2D\u5206\u9875\u5668",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009",category:Se.c.CategorySelected}}],[Se.c.SWPaginationWeb,{label:"\u9009\u4E2DWeb\u5206\u6BB5\u5668",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009",category:Se.c.CategorySelected}}],[Se.c.SWChart,{label:"\u9009\u4E2D\u56FE\u8868",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u8FF9\u3001\u8D8B\u3001\u8868\u3001\u7EDF\u3001\u8BA1\u3001\u6A2A\u3001\u7AD6",category:Se.c.CategorySelected}}],[Se.c.SWidgets,{label:"\u9009\u4E2D\u5F88\u591A\u7EC4\u4EF6",info:{fuzzTag:"",category:Se.c.CategorySelected,noCanFuzzy:!1}}]])),B6=(0,Dr.R)(()=>new Map([["\u9009\u4E2D\u6587\u5B57\u7EC4\u4EF6",Se.c.SWRichText],["\u9009\u4E2D\u77E9\u5F62",Se.c.SWRect],["\u9009\u4E2D\u5706\u5F62",Se.c.SWOval],["\u9009\u4E2D\u7EBF\u6761",Se.c.SWLine],["\u9009\u4E2D\u6309\u94AE",Se.c.SWButton],["\u9009\u4E2D\u7BAD\u5934",Se.c.SWArrow],["\u9009\u4E2D\u591A\u8FB9\u5F62",Se.c.SWPolygon],["\u9009\u4E2D\u661F\u5F62",Se.c.SWStar],["\u9009\u4E2D\u4E09\u89D2\u5F62",Se.c.SWTriangle],["\u9009\u4E2D\u8F6E\u64AD\u56FE",Se.c.SWCarousel],["\u9009\u4E2D\u7F51\u9875\u7EC4\u4EF6",Se.c.SWWebpage],["\u9009\u4E2D\u89C6\u9891\u7EC4\u4EF6",Se.c.SWVideo],["\u9009\u4E2D\u97F3\u9891\u7EC4\u4EF6",Se.c.SWAudio],["\u9009\u4E2D\u4E8C\u7EF4\u7801\u7EC4\u4EF6",Se.c.SWQRCode],["\u9009\u4E2D\u5730\u56FE\u7EC4\u4EF6",Se.c.SWMapView],["\u9009\u4E2D\u804A\u5929\u6C14\u6CE1",Se.c.SWMTooltip],["\u9009\u4E2D\u94FE\u63A5\u533A\u57DF",Se.c.SWLr],["\u9009\u4E2D\u56FE\u7247",Se.c.SWImage],["\u9009\u4E2D\u5360\u4F4D\u7B26",Se.c.SWPlaceholder],["\u9009\u4E2D\u8868\u683C",Se.c.SWTable],["\u9009\u4E2D\u6279\u6CE8",Se.c.SWSticker],["\u9009\u4E2D\u6253\u70B9\u6279\u6CE8",Se.c.SWTear],["\u9009\u4E2D\u72B6\u6001\u680F",Se.c.SWIphoneSB],["\u9009\u4E2D\u5355\u884C\u8F93\u5165\u7EC4\u4EF6",Se.c.SWMTextInput],["\u9009\u4E2D\u591A\u884C\u8F93\u5165\u7EC4\u4EF6",Se.c.SWMTextArea],["\u9009\u4E2D\u4E0B\u62C9\u9009\u62E9\u5668",Se.c.SWMSelect],["\u9009\u4E2D\u6587\u4EF6\u9009\u62E9\u7EC4\u4EF6",Se.c.SWMFileInput],["\u9009\u4E2D\u5355\u9009\u7EC4\u4EF6",Se.c.SWSelectionControlRadio],["\u9009\u4E2D\u590D\u9009\u7EC4\u4EF6",Se.c.SWSelectionControlCheckbox],["\u9009\u4E2D\u5B89\u5353\u5F00\u5173",Se.c.SWAndroidSwitch],["\u9009\u4E2Dios\u5F00\u5173",Se.c.SWIosSwitch],["\u9009\u4E2D\u6ED1\u52A8\u6761",Se.c.SWSlider],["\u9009\u4E2D\u6570\u5B57\u6B65\u8FDB\u5668",Se.c.SWDigitalStepper],["\u9009\u4E2D\u4E0B\u62C9\u83DC\u5355",Se.c.SWDropMenu],["\u9009\u4E2D\u5F39\u51FA\u83DC\u5355",Se.c.SWBasket],["\u9009\u4E2D\u5BFC\u822A\u83DC\u5355",Se.c.SWNavigationMenu],["\u9009\u4E2D\u5782\u76F4\u83DC\u5355",Se.c.SWNavigationMenuV],["\u9009\u4E2D\u6C34\u5E73\u83DC\u5355",Se.c.SWNavigationMenuH],["\u9009\u4E2D\u79FB\u52A8\u7AEF\u5BFC\u822A",Se.c.SWMobileTabBars],["\u9009\u4E2D\u5206\u6BB5\u5668",Se.c.SWSegmentedControl],["\u9009\u4E2D\u6298\u53E0\u9762\u677F",Se.c.SWCollapse],["\u9009\u4E2D\u6807\u7B7E\u9875",Se.c.SWTabs],["\u9009\u4E2D\u5206\u9875\u5668",Se.c.SWPaginationMobile],["\u9009\u4E2DWeb\u5206\u6BB5\u5668",Se.c.SWPaginationWeb],["\u9009\u4E2D\u56FE\u8868",Se.c.SWChart],["\u9009\u4E2D",Se.c.SWidgets]])),R6=(0,Dr.R)(()=>new Map([[Se.c.CategoryEdit,{label:"\u7F16\u8F91",info:{isCategory:!0,noCanFuzzy:!0}}],[Se.c.EWRichText,{label:"\u7F16\u8F91\u6587\u5B57\u7EC4\u4EF6",info:{fuzzTag:"\u6587\u3001\u5B57\u3001\u672C\u3001\u8F93\u5165\u3001\u952E\u3001font\u3001text\u3001txt\u3001\u6846\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:Se.c.CategoryEdit}}],[Se.c.EWRect,{label:"\u7F16\u8F91\u77E9\u5F62",info:{fuzzTag:"\u77E9\u3001\u5F62\u3001\u65B9\u3001\u6846\u3001\u8FB9\u3001rectangle\u3001square\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWOval,{label:"\u7F16\u8F91\u5706\u5F62",info:{fuzzTag:"\u5F27\u3001\u73AF\u3001\u7403\u3001\u76D8\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWLine,{label:"\u7F16\u8F91\u7EBF\u6761",info:{fuzzTag:"\u7EBF\u3001\u6761\u3001\u76F4\u3001\u8FDE\u63A5\u3001line\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWButton,{label:"\u7F16\u8F91\u6309\u94AE",info:{fuzzTag:"\u6309\u3001\u952E\u3001\u5F00\u5173\u3001\u63A7\u5236\u3001\u89E6\u3001button\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWArrow,{label:"\u7F16\u8F91\u7BAD\u5934",info:{fuzzTag:"\u6307\u3001\u5411\u3001\u7BAD\u3001\u6807\u3001\u5BFC\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWPolygon,{label:"\u7F16\u8F91\u591A\u8FB9\u5F62",info:{fuzzTag:"\u5F62\u3001\u8FB9\u3001\u591A\u3001\u56FE\u3001\u89D2\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWStar,{label:"\u7F16\u8F91\u661F\u5F62",info:{fuzzTag:"\u661F\u3001\u5F62\u3001\u8F89\u3001\u5C04\u3001\u70B9\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWTriangle,{label:"\u7F16\u8F91\u4E09\u89D2\u5F62",info:{fuzzTag:"\u4E09\u3001\u89D2\u3001\u5F62\u3001\u8FB9\u3001\u5C16\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWCarousel,{label:"\u7F16\u8F91\u8F6E\u64AD\u56FE",info:{fuzzTag:"\u8F6E\u3001\u64AD\u3001\u56FE\u3001\u5E7B\u3001\u6ED1\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWWebpage,{label:"\u7F16\u8F91\u7F51\u9875\u7EC4\u4EF6",info:{fuzzTag:"\u70B9\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWVideo,{label:"\u7F16\u8F91\u89C6\u9891\u7EC4\u4EF6",info:{fuzzTag:"\u89C6\u3001\u9891\u3001\u5F55\u3001\u653E\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWAudio,{label:"\u7F16\u8F91\u97F3\u9891\u7EC4\u4EF6",info:{fuzzTag:"\u97F3\u3001\u9891\u3001\u542C\u3001\u5F55\u3001\u653E\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWQRCode,{label:"\u7F16\u8F91\u4E8C\u7EF4\u7801\u7EC4\u4EF6",info:{fuzzTag:"\u4E8C\u3001\u7EF4\u3001\u7801\u3001\u626B\u3001\u8BC6\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWMapView,{label:"\u7F16\u8F91\u5730\u56FE\u7EC4\u4EF6",info:{fuzzTag:"\u5730\u3001\u56FE\u3001\u5BFC\u3001\u4F4D\u3001\u63A2\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWMTooltip,{label:"\u7F16\u8F91\u804A\u5929\u6C14\u6CE1",info:{fuzzTag:"",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWLr,{label:"\u7F16\u8F91\u94FE\u63A5\u533A\u57DF",info:{fuzzTag:"\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63\u3001\u70ED\u3001\u8054\u3001\u63A5\u3001\u70B9",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWImage,{label:"\u7F16\u8F91\u56FE\u7247",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWPlaceholder,{label:"\u7F16\u8F91\u5360\u4F4D\u7B26",info:{fuzzTag:"\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63\u3001\u7A7A",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWTable,{label:"\u7F16\u8F91\u8868\u683C",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u5217\u3001\u884C\u3001\u6846\u3001\u6570\u636E",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWSticker,{label:"\u7F16\u8F91\u6279\u6CE8",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u6807\u3001\u8BB0",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWTear,{label:"\u7F16\u8F91\u6253\u70B9\u6279\u6CE8",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u6807\u3001\u8BB0",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWIphoneSB,{label:"\u7F16\u8F91\u72B6\u6001\u680F",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u6761\u3001\u793A\u3001bar",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWMTextInput,{label:"\u7F16\u8F91\u5355\u884C\u8F93\u5165\u7EC4\u4EF6",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u57DF\u3001\u6846\u3001\u6587\u3001\u5B57\u3001\u533A\u3001\u586B",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWMTextArea,{label:"\u7F16\u8F91\u591A\u884C\u8F93\u5165\u7EC4\u4EF6",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u6587\u3001\u57DF\u3001\u6761\u3001\u793A",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWMSelect,{label:"\u7F16\u8F91\u4E0B\u62C9\u9009\u62E9\u5668",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u83DC\u3001\u5355\u3001\u5217\u3001\u9879\u3001\u8868",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWMFileInput,{label:"\u7F16\u8F91\u6587\u4EF6\u9009\u62E9\u7EC4\u4EF6",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u4E0A\u4F20",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWSelectionControlRadio,{label:"\u7F16\u8F91\u5355\u9009\u7EC4\u4EF6",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u9009\u3001\u5708\u3001\u5355\u3001\u9879\u3001\u53D6\u3001\u52FE",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWSelectionControlCheckbox,{label:"\u7F16\u8F91\u590D\u9009\u7EC4\u4EF6",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u590D\u3001\u9009\u3001\u6846\u3001\u591A\u3001\u52FE",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWAndroidSWitch,{label:"\u7F16\u8F91\u5B89\u5353\u5F00\u5173",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u5207\u3001\u6362\u3001\u63A7\u3001android",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWIosSWitch,{label:"\u7F16\u8F91ios\u5F00\u5173",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u5207\u3001\u6362\u3001\u63A7\u3001\u82F9\u679C\u3001mac\u3001watch\u3001pad\u3001iphone\u3001\u624B\u673A",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWSlider,{label:"\u7F16\u8F91\u6ED1\u52A8\u6761",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u6ED1\u3001\u6761\u3001\u8C03\u3001\u8282\u3001\u8F68",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWDigitalStepper,{label:"\u7F16\u8F91\u6570\u5B57\u6B65\u8FDB\u5668",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u6570\u3001\u6B65\u3001\u8FDB\u3001\u8C03\u3001\u589E",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWDropMenu,{label:"\u7F16\u8F91\u4E0B\u62C9\u83DC\u5355",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u5217\u3001\u9009\u3001\u9879\u3001drop",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWBasket,{label:"\u7F16\u8F91\u5F39\u51FA\u83DC\u5355",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u5217\u3001\u9009\u3001\u9879\u3001pop",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWNavigationMenu,{label:"\u7F16\u8F91\u5BFC\u822A\u83DC\u5355",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u83DC\u3001\u5355\u3001\u8DEF\u3001\u884C",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWNavigationMenuV,{label:"\u7F16\u8F91\u5782\u76F4\u83DC\u5355",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWNavigationMenuH,{label:"\u7F16\u8F91\u6C34\u5E73\u83DC\u5355",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWMobileTabBars,{label:"\u7F16\u8F91\u79FB\u52A8\u7AEF\u5BFC\u822A",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWSegmentedControl,{label:"\u7F16\u8F91\u5206\u6BB5\u5668",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWCollapse,{label:"\u7F16\u8F91\u6298\u53E0\u9762\u677F",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWTabs,{label:"\u7F16\u8F91\u6807\u7B7E\u9875",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWPaginationMobile,{label:"\u7F16\u8F91\u5206\u9875\u5668",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWPaginationWeb,{label:"\u7F16\u8F91Web\u5206\u6BB5\u5668",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWElbow,{label:"\u7F16\u8F91\u8FDE\u63A5\u7EBF",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u7F06\u3001\u7EBD\u3001\u6307",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWChart,{label:"\u7F16\u8F91\u56FE\u8868",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u8FF9\u3001\u8D8B\u3001\u8868\u3001\u7EDF\u3001\u8BA1\u3001\u6A2A\u3001\u7AD6",category:Se.c.CategoryEdit,noCanFuzzy:!0}}],[Se.c.EWidgets,{label:"\u7F16\u8F91\u6837\u5F0F",info:{fuzzTag:"",category:Se.c.CategoryEdit,noCanFuzzy:!1}}]])),j6=(0,Dr.R)(()=>new Map([["\u7F16\u8F91\u6587\u5B57\u7EC4\u4EF6",Se.c.EWRichText],["\u7F16\u8F91\u77E9\u5F62",Se.c.EWRect],["\u7F16\u8F91\u5706\u5F62",Se.c.EWOval],["\u7F16\u8F91\u7EBF\u6761",Se.c.EWLine],["\u7F16\u8F91\u6309\u94AE",Se.c.EWButton],["\u7F16\u8F91\u7BAD\u5934",Se.c.EWArrow],["\u7F16\u8F91\u591A\u8FB9\u5F62",Se.c.EWPolygon],["\u7F16\u8F91\u661F\u5F62",Se.c.EWStar],["\u7F16\u8F91\u4E09\u89D2\u5F62",Se.c.EWTriangle],["\u7F16\u8F91\u8F6E\u64AD\u56FE",Se.c.EWCarousel],["\u7F16\u8F91\u7F51\u9875\u7EC4\u4EF6",Se.c.EWWebpage],["\u7F16\u8F91\u89C6\u9891\u7EC4\u4EF6",Se.c.EWVideo],["\u7F16\u8F91\u97F3\u9891\u7EC4\u4EF6",Se.c.EWAudio],["\u7F16\u8F91\u4E8C\u7EF4\u7801\u7EC4\u4EF6",Se.c.EWQRCode],["\u7F16\u8F91\u5730\u56FE\u7EC4\u4EF6",Se.c.EWMapView],["\u7F16\u8F91\u804A\u5929\u6C14\u6CE1",Se.c.EWMTooltip],["\u7F16\u8F91\u94FE\u63A5\u533A\u57DF",Se.c.EWLr],["\u7F16\u8F91\u56FE\u7247",Se.c.EWImage],["\u7F16\u8F91\u5360\u4F4D\u7B26",Se.c.EWPlaceholder],["\u7F16\u8F91\u8868\u683C",Se.c.EWTable],["\u7F16\u8F91\u6279\u6CE8",Se.c.EWSticker],["\u7F16\u8F91\u6253\u70B9\u6279\u6CE8",Se.c.EWTear],["\u7F16\u8F91\u72B6\u6001\u680F",Se.c.EWIphoneSB],["\u7F16\u8F91\u5355\u884C\u8F93\u5165\u7EC4\u4EF6",Se.c.EWMTextInput],["\u7F16\u8F91\u591A\u884C\u8F93\u5165\u7EC4\u4EF6",Se.c.EWMTextArea],["\u7F16\u8F91\u4E0B\u62C9\u9009\u62E9\u5668",Se.c.EWMSelect],["\u7F16\u8F91\u6587\u4EF6\u9009\u62E9\u7EC4\u4EF6",Se.c.EWMFileInput],["\u7F16\u8F91\u5355\u9009\u7EC4\u4EF6",Se.c.EWSelectionControlRadio],["\u7F16\u8F91\u590D\u9009\u7EC4\u4EF6",Se.c.EWSelectionControlCheckbox],["\u7F16\u8F91\u5B89\u5353\u5F00\u5173",Se.c.EWAndroidSWitch],["\u7F16\u8F91ios\u5F00\u5173",Se.c.EWIosSWitch],["\u7F16\u8F91\u6ED1\u52A8\u6761",Se.c.EWSlider],["\u7F16\u8F91\u6570\u5B57\u6B65\u8FDB\u5668",Se.c.EWDigitalStepper],["\u7F16\u8F91\u4E0B\u62C9\u83DC\u5355",Se.c.EWDropMenu],["\u7F16\u8F91\u5F39\u51FA\u83DC\u5355",Se.c.EWBasket],["\u7F16\u8F91\u5BFC\u822A\u83DC\u5355",Se.c.EWNavigationMenu],["\u7F16\u8F91\u5782\u76F4\u83DC\u5355",Se.c.EWNavigationMenuV],["\u7F16\u8F91\u6C34\u5E73\u83DC\u5355",Se.c.EWNavigationMenuH],["\u7F16\u8F91\u79FB\u52A8\u7AEF\u5BFC\u822A",Se.c.EWMobileTabBars],["\u7F16\u8F91\u5206\u6BB5\u5668",Se.c.EWSegmentedControl],["\u7F16\u8F91\u6298\u53E0\u9762\u677F",Se.c.EWCollapse],["\u7F16\u8F91\u6807\u7B7E\u9875",Se.c.EWTabs],["\u7F16\u8F91\u5206\u9875\u5668",Se.c.EWPaginationMobile],["\u7F16\u8F91Web\u5206\u6BB5\u5668",Se.c.EWPaginationWeb],["\u7F16\u8F91\u8FDE\u63A5\u7EBF",Se.c.EWElbow],["\u7F16\u8F91\u56FE\u8868",Se.c.EWChart],["\u7F16\u8F91\u6837\u5F0F",Se.c.EWidgets]])),O6=(0,Dr.R)(()=>new Map([[Se.c.CategoryPage,{label:"\u9875\u9762",info:{isCategory:!0}}],[Se.c.CPage,{label:"\u65B0\u5EFA\u9875\u9762",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new\u3001\u9875\u3001\u72B6\u6001\u3001page\u3001\u677F\u3001\u5361\u3001\u7247\u3001\u754C",category:Se.c.CategoryPage}}],[Se.c.CPageCopy,{label:"\u521B\u5EFA\u9875\u9762\u526F\u672C",info:{fuzzTag:"\u9875\u3001\u72B6\u6001\u3001page\u3001\u677F\u3001\u5361\u3001\u7247\u3001\u754C\u3001\u590D\u5236",category:Se.c.CategoryPage}}],[Se.c.CopyPage,{label:"\u590D\u5236\u9875\u9762",info:{fuzzTag:"",category:Se.c.CategoryPage}}],[Se.c.CutPage,{label:"\u526A\u5207\u9875\u9762",info:{fuzzTag:"",category:Se.c.CategoryPage}}],[Se.c.PastePage,{label:"\u7C98\u8D34\u9875\u9762",info:{fuzzTag:"",category:Se.c.CategoryPage}}],[Se.c.ToggleClipContent,{label:"\u6253\u5F00/\u5173\u95ED\u9875\u9762\u88C1\u526A",info:{fuzzTag:"",category:Se.c.CategoryPage}}],[Se.c.EPageLayout,{label:"\u4FEE\u6539\u9875\u9762\u5E03\u5C40\u6837\u5F0F",info:{fuzzTag:"",category:Se.c.CategoryPage}}],[Se.c.EPage,{label:"\u7F16\u8F91\u9875\u9762",info:{fuzzTag:"\u7F16\u3001\u8C03\u3001\u6B63\u3001\u4FEE\u3001bg\u3001\u677F\u3001\u767D\u3001\u533A\u3001\u8272\u3001\u57DF\u3001\u673A\u578B\u3001\u5C3A\u3001\u5BF8\u3001iphone\u3001\u82F9\u679C\u3001ios\u3001mac\u3001\u624B\u8868\u3001watch\u3001h5\u3001\u5927\u5C4F\u3001\u7535\u89C6\u3001\u81EA\u5B9A\u4E49\u3001huawei\u3001\u624B\u673A\u3001\u534E\u4E3A\u3001google\u3001\u7F51\u9875\u3001web\u3001pad\u3001book\u3001\u5DE5\u4E1A\u3001hmi\u3001\u4E2D\u63A7\u3001\u8F66\u3001\u516C\u4F17\u53F7\u3001\u5FAE\u4FE1\u3001\u5C01\u9762\u3001banner\u3001\u7535\u5546\u3001\u6536\u5F92\u3001\u5E97\u62DB",category:Se.c.CategoryPage}}]])),F6=(0,Dr.R)(()=>new Map([["\u65B0\u5EFA\u9875\u9762",Se.c.CPage],["\u9875\u9762",Se.c.CategoryPage],["\u521B\u5EFA\u9875\u9762\u526F\u672C",Se.c.CPageCopy],["\u590D\u5236\u9875\u9762",Se.c.CopyPage],["\u526A\u5207\u9875\u9762",Se.c.CutPage],["\u7C98\u8D34\u9875\u9762",Se.c.PastePage],["\u6253\u5F00/\u5173\u95ED\u9875\u9762\u88C1\u526A",Se.c.ToggleClipContent],["\u4FEE\u6539\u9875\u9762\u5E03\u5C40\u6837\u5F0F",Se.c.EPageLayout],["\u7F16\u8F91\u9875\u9762",Se.c.EPage]])),U6=(0,Dr.R)(()=>new Map([[Se.c.CategoryCanvas,{label:"\u753B\u5E03",info:{isCategory:!0}}],[Se.c.CCanvas,{label:"\u65B0\u5EFA\u753B\u5E03",info:{fuzzTag:"\u65B0\u5EFA\u3001\u751F\u6210\u3001\u7ED9\u6211\u3001\u521B\u5EFA\u3001\u60F3\u8981\u3001\u753B\u5E03\u3001\u753B\u677F\u3001\u767D\u677F\u3001\u533A\u3001\u5236\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:Se.c.CategoryCanvas}}],[Se.c.CSubCanvas,{label:"\u65B0\u5EFA\u5B50\u753B\u5E03",info:{fuzzTag:"\u9875\u3001page\u3001\u677F\u3001\u5361\u3001\u7247\u3001\u754C\u3001\u590D\u5236",category:Se.c.CategoryCanvas}}],[Se.c.CDirectory,{label:"\u65B0\u5EFA\u753B\u5E03\u6587\u4EF6\u5939",info:{fuzzTag:"",category:Se.c.CategoryCanvas}}],[Se.c.CCanvasCopy,{label:"\u521B\u5EFA\u753B\u5E03\u526F\u672C",info:{fuzzTag:"",category:Se.c.CategoryCanvas}}],[Se.c.MoveCanvas,{label:"\u8F6C\u79FB\u753B\u5E03",info:{fuzzTag:"",category:Se.c.CategoryCanvas}}],[Se.c.ECanvas,{label:"\u7F16\u8F91\u753B\u5E03",info:{fuzzTag:"",category:Se.c.CategoryCanvas}}],[Se.c.DCanvas,{label:"\u5220\u9664\u753B\u5E03",info:{fuzzTag:"\u677F\u3001\u57DF\u3001\u53BB\u3001\u6389\u3001\u9664\u3001\u4E0D\u3001del\u3001\u6E05\u3001\u79FB",category:Se.c.CategoryCanvas}}],[Se.c.CanvasViewRecycle,{label:"\u67E5\u770B\u753B\u5E03\u56DE\u6536\u7AD9",info:{fuzzTag:"\u677F\u3001\u767D\u3001\u533A\u3001\u57DF\u3001\u5783\u3001\u573E",category:Se.c.CategoryCanvas}}],[Se.c.CollapseCanvas,{label:"\u6536\u8D77\u753B\u5E03",info:{fuzzTag:"",category:Se.c.CategoryCanvas}}],[Se.c.ExpandCanvas,{label:"\u5C55\u5F00\u753B\u5E03",info:{fuzzTag:"",category:Se.c.CategoryCanvas}}]])),z6=(0,Dr.R)(()=>new Map([["\u65B0\u5EFA\u753B\u5E03",Se.c.CCanvas],["\u65B0\u5EFA\u5B50\u753B\u5E03",Se.c.CSubCanvas],["\u65B0\u5EFA\u753B\u5E03\u6587\u4EF6\u5939",Se.c.CDirectory],["\u521B\u5EFA\u753B\u5E03\u526F\u672C",Se.c.CCanvasCopy],["\u8F6C\u79FB\u753B\u5E03",Se.c.MoveCanvas],["\u7F16\u8F91\u753B\u5E03",Se.c.ECanvas],["\u5220\u9664\u753B\u5E03",Se.c.DCanvas],["\u67E5\u770B\u753B\u5E03\u56DE\u6536\u7AD9",Se.c.CanvasViewRecycle],["\u6536\u8D77\u753B\u5E03",Se.c.CollapseCanvas],["\u5C55\u5F00\u753B\u5E03",Se.c.ExpandCanvas]])),W6=(0,Dr.R)(()=>new Map([[Se.c.CategoryIntEvents,{label:"\u4EA4\u4E92\u4E8B\u4EF6",info:{isCategory:!0}}],[Se.c.OpenEventsPanel,{label:"\u6253\u5F00\u4E8B\u4EF6\u9762\u677F",info:{fuzzTag:"\u4EA4\u4E92\u3001\u52A8\u753B",category:Se.c.CategoryIntEvents}}]])),V6=(0,Dr.R)(()=>new Map([["\u6253\u5F00\u4E8B\u4EF6\u9762\u677F",Se.c.OpenEventsPanel]])),H6=(0,Dr.R)(()=>new Map([[Se.c.CategoryLayer,{label:"\u56FE\u5C42\u5143\u7D20",info:{isCategory:!0}}],[Se.c.ToggleLayerLock,{label:"\u9501\u5B9A/\u89E3\u9501\u56FE\u5C42",info:{fuzzTag:"",category:Se.c.CategoryLayer}}],[Se.c.ToggleLayerVisible,{label:"\u663E\u793A/\u9690\u85CF\u56FE\u5C42",info:{fuzzTag:"",category:Se.c.CategoryLayer}}],[Se.c.ToggleLayerExpand,{label:"\u5C55\u5F00\u56FE\u5C42/\u6536\u8D77\u56FE\u5C42",info:{fuzzTag:"",category:Se.c.CategoryLayer}}]])),K6=(0,Dr.R)(()=>new Map([["\u5C55\u5F00\u56FE\u5C42/\u6536\u8D77\u56FE\u5C42",Se.c.ToggleLayerExpand],["\u663E\u793A/\u9690\u85CF\u56FE\u5C42",Se.c.ToggleLayerVisible],["\u9501\u5B9A/\u89E3\u9501\u56FE\u5C42",Se.c.ToggleLayerLock]]));var _y=e(80452);const G6=(0,Dr.R)(()=>new Map([[Se.c.CWebPage,{label:"\u751F\u6210Web\u539F\u578B",info:{noCanFuzzy:!0,category:Se.c.AIGC}}],[Se.c.CLargeScreenPage,{label:"\u751F\u6210\u5927\u5C4F\u539F\u578B\u9875\u9762",info:{noCanFuzzy:!0,category:Se.c.AIGC}}],[Se.c.CCustomComponent,{label:"\u751F\u6210\u81EA\u5B9A\u4E49\u7EC4\u4EF6",info:{noCanFuzzy:!0,category:Se.c.CCustomComponent}}],[Se.c.CWPicture,{label:"\u751F\u6210\u56FE\u7247",info:{noCanFuzzy:!0,category:Se.c.AIInDev}}],[Se.c.CWIcon,{label:"\u751F\u6210\u56FE\u6807",info:{noCanFuzzy:!0,category:Se.c.AIInDev}}],[Se.c.OUnableRecognize,{label:"\u65E0\u6CD5\u8BC6\u522B\u6216\u5904\u7406",info:{noCanFuzzy:!0,category:Se.c.AIQ}}],[Se.c.OFreeChatQuestion,{label:"\u81EA\u7531\u804A\u5929-\u54A8\u8BE2",info:{noCanFuzzy:!0,category:Se.c.AIQ}}],[Se.c.OFreeChat,{label:"\u81EA\u7531\u804A\u5929",info:{noCanFuzzy:!0,category:Se.c.AIQ}}]])),Y6=(0,Dr.R)(()=>new Map([["\u751F\u6210Web\u539F\u578B",Se.c.CWebPage],["\u751F\u6210\u5927\u5C4F\u539F\u578B\u9875\u9762",Se.c.CLargeScreenPage],["\u751F\u6210\u81EA\u5B9A\u4E49\u7EC4\u4EF6",Se.c.CCustomComponent],["\u751F\u6210\u56FE\u7247",Se.c.CWPicture],["\u751F\u6210\u56FE\u6807",Se.c.CWIcon],["\u65E0\u6CD5\u8BC6\u522B\u6216\u5904\u7406",Se.c.OUnableRecognize],["\u81EA\u7531\u804A\u5929-\u54A8\u8BE2",Se.c.OFreeChatQuestion],["\u81EA\u7531\u804A\u5929",Se.c.OFreeChat]])),VT={label:"\u667A\u80FD\u6307\u4EE4",info:{isCategory:!0}},HT={label:"AIGC",info:{isCategory:!0}},i4=(0,Dr.R)(()=>{const t=m6(),n=f6(),s=h6(),c=c6(),d=p6(),w=x6(),P=b6(),F=w6(),X=A6(),ee=M6(),pe=E6(),ye=_6(),Ae=N6(),we=D6(),_e=R6(),Fe=O6(),Ye=U6(),He=W6(),tt=H6(),It=G6(),Nt=new Map,Lt=[...t,...Nt,...n,...s,...c,...d,...w,...P,...F,...X,...ee,...pe,...ye,...Ae,...we,..._e,...Fe,...Ye,...He,...tt,...It];return Py(Lt),new Map(Lt)}),Z6=(0,Dr.R)(()=>{const t=g6(),n=d6(),s=y6(),c=v6(),d=u6(),w=C6(),P=S6(),F=I6(),X=T6(),ee=k6(),pe=P6(),ye=L6(),Ae=B6(),we=j6(),_e=F6(),Fe=z6(),Ye=V6(),He=K6(),tt=Y6();return new Map([...t,...s,...n,...c,...d,...w,...P,...F,...X,...ee,...pe,...ye,...Ae,...we,..._e,...Fe,...Ye,...He,...tt])}),X6=(0,Dr.R)(()=>[Se.c.Save,Se.c.ViewVersionRecord,Se.c.CreateNewVersion,Se.c.ToggleViewShare,Se.c.Cut,Se.c.Past,Se.c.Copy,Se.c.PastProperties,Se.c.ComSelectAll,Se.c.ToggleHandTool,Se.c.Preview,Se.c.Group,Se.c.UnGroup,Se.c.CreateMaster,Se.c.CreatePanel,Se.c.TogglePageTransState,Se.c.TogglePanelTransState,Se.c.Delete,Se.c.AlignmentLeft,Se.c.AlignmentRight,Se.c.AlignmentTop,Se.c.AlignmentBottom,Se.c.AlignmentCenter,Se.c.AlignmentMiddle,Se.c.AlignmentHorizontal,Se.c.AlignmentVertical,Se.c.ToggleRuler,Se.c.ToggleReferenceLine,Se.c.ToggleAlignLine,Se.c.ToggleSticky,Se.c.ToggleComment,Se.c.ToggleMultiplayerMouse,Se.c.ToggleLeftSide,Se.c.ToggleRightSide,Se.c.ZoomIn,Se.c.ZoomOut,Se.c.ZoomToHundred,Se.c.ZoomSelection,Se.c.FitCanvas,Se.c.FullScreenMode,Se.c.CCanvasCopy,Se.c.MoveCanvas,Se.c.DCanvas,Se.c.CanvasViewRecycle,Se.c.CollapseCanvas,Se.c.ExpandCanvas,Se.c.CPageCopy,Se.c.CopyPage,Se.c.CutPage,Se.c.PastePage,Se.c.ToggleLayerLock,Se.c.ToggleLayerVisible,Se.c.ToggleLayerExpand,Se.c.CWAndroidSwitch,Se.c.CWIosSwitch,Se.c.CDynCpts,Se.c.CVector,Se.c.OpenColorPicker,Se.c.DWAndroidSwitch,Se.c.DWIosSwitch,Se.c.OpenEventsPanel,Se.c.NewFeature,Se.c.ToggleShortcutKey,Se.c.OpenHelperCenter,Se.c.Feedback,Se.c.OnlineSupport]),Q6=()=>{const n=[[Se.c.SWRichText,{label:"\u9009\u4E2D\u6240\u6709\u5B57\u4F53\u4E3A\u82F9\u65B9\u7684\u6587\u672C",info:{fuzzTag:"",category:Se.c.CategorySelected,trackInfo:{input:"\u9009\u4E2D\u6240\u6709\u5B57\u4F53\u4E3A\u82F9\u65B9\u7684\u6587\u672C",type:"\u63A8\u8350\u6307\u4EE4",attr_no_conv:JSON.stringify({"font-family":"PingFangSC"}),function:"\u9009\u4E2D\u6587\u5B57\u7EC4\u4EF6",attr:JSON.stringify({"font-family":"PingFangSC"}),duration_ident:0,duration_conv:0,server:"8081"}},args:{"font-family":"PingFangSC"}}],[Se.c.CWRect,{label:"\u521B\u5EFA\u4E24\u4E2A\u6D45\u7070\u8272\u77E9\u5F62",info:{fuzzTag:"",category:Se.c.CategoryBW,trackInfo:{input:"\u521B\u5EFA\u4E24\u4E2A\u6D45\u7070\u8272\u77E9\u5F62",type:"\u63A8\u8350\u6307\u4EE4",attr_no_conv:JSON.stringify({count:2,"fill-color":"\u6D45\u7070"}),function:"\u65B0\u5EFA\u77E9\u5F62",attr:JSON.stringify({count:2,"fill-color":"#d3d3d3"}),duration_ident:0,duration_conv:0,server:"8081"}},args:{count:2,"fill-color":"#d3d3d3"}}],[Se.c.ToggleTheme,{label:"\u5207\u6362\u4E3B\u9898",info:{fuzzTag:"\u663E\u793A\u3001\u9ED1\u3001\u8272\u3001\u6DF1\u3001\u660E\u3001\u4EAE\u3001\u767D\u3001\u6D45\u3001\u7CFB\u7EDF\u3001\u754C\u9762",category:Se.c.CategoryPreference}}],[Se.c.SearchMktSource,{label:"\u641C\u7D22\u56FE\u7247\u7D20\u6750\uFF0C\u5173\u952E\u5B57\u4E3A\u98CE\u666F",info:{fuzzTag:"",category:Se.c.CategoryCommonOperation,trackInfo:{input:"\u641C\u7D22\u56FE\u7247\u7D20\u6750\uFF0C\u5173\u952E\u5B57\u4E3A\u98CE\u666F",type:"\u63A8\u8350\u6307\u4EE4",attr_no_conv:JSON.stringify({search_res_keyword:"\u98CE\u666F",search_res_type:"picture"}),function:"\u641C\u7D22\u7D20\u6750\u8D44\u6E90",attr:JSON.stringify({search_res_keyword:"\u98CE\u666F",search_res_type:"picture"}),duration_ident:0,duration_conv:0,server:"8081"}},args:{search_res_keyword:"\u98CE\u666F",search_res_type:"picture"}}],[Se.c.ZoomToHundred,{label:"\u7F29\u653E\u81F3100%",info:{fuzzTag:"\u5206\u3001\u5BF9\u3001\u9F50\u3001\u51C6",category:Se.c.CategoryLayoutView}}],[Se.c.FullScreenMode,{label:"\u5168\u5C4F\u6A21\u5F0F",info:{fuzzTag:"\u5207\u3001\u6362\u3001\u663E\u3001\u9690\u3001\u85CF\u3001\u6D88\u5931\u3001\u53BB\u6389\u3001\u5F00\u542F\u3001\u5207\u3001\u6362\u3001\u89C8",category:Se.c.CategoryLayoutView}}],[Se.c.ViewVersionRecord,{label:"\u67E5\u770B\u7248\u672C\u8BB0\u5F55",info:{fuzzTag:"\u56DE\u6EDA\u3001\u5386\u53F2\u3001\u8BB0\u5F55",category:Se.c.CategoryFile}}],[Se.c.CPage,{label:"\u65B0\u5EFA5\u4E2AiPhone\u9875\u9762",info:{fuzzTag:"",category:Se.c.CategoryPage,trackInfo:{input:"\u65B0\u5EFA5\u4E2AiPhone\u9875\u9762",type:"\u63A8\u8350\u6307\u4EE4",attr_no_conv:JSON.stringify({count:5,"device-size":"iphone"}),function:"\u65B0\u5EFA\u9875\u9762",attr:JSON.stringify({count:5,"device-size":"iphone"}),duration_ident:0,duration_conv:0,server:"8081"}},args:{count:5,"device-size":"iphone"}}],[Se.c.OpenColorPicker,{label:"\u5438\u8272\u5668",info:{fuzzTag:"\u53D6\u3001\u5339\u3001\u9009\u3001\u8C03",category:Se.c.CategoryFile}}],[Se.c.OpenHelperCenter,{label:"\u6253\u5F00\u5E2E\u52A9\u4E2D\u5FC3",info:{fuzzTag:"\u63F4\u3001\u7B54\u3001\u8BE2\u3001\u7591\u3001why\u3001\u4E3A\u4EC0\u4E48\u3001\u600E\u4E48\u3001\u600E\u6837\u3001\u5982\u4F55\u3001how\u3001\u80FD",category:Se.c.CategoryHelpCenter}}],[Se.c.ToggleShortcutKey,{label:"\u67E5\u770B\u5FEB\u6377\u952E",info:{fuzzTag:"shortcut\u3001\u5F84\u3001\u901F\u3001\u542F",category:Se.c.CategoryHelpCenter}}],[Se.c.CWTable,{label:"\u65B0\u5EFA\u8868\u683C",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u751F\u3001\u6210\u3001\u521B\u3001create\u3001new\u3001\u5217\u3001\u884C\u3001\u6846\u3001\u6570\u636E",category:Se.c.CategoryBW},args:{count:1,row:5,column:5}}],[Se.c.CreateNewVersion,{label:"\u4FDD\u5B58\u4E3A\u65B0\u7248\u672C",info:{fuzzTag:"\u4FDD\u5B58\u3001save\u3001\u5B58\u3001\u50A8\u3001\u7559",category:Se.c.CategoryFile}}],[Se.c.CSubCanvas,{label:"\u65B0\u5EFA\u5B50\u753B\u5E03",info:{fuzzTag:"\u9875\u3001\u72B6\u6001\u3001page\u3001\u677F\u3001\u5361\u3001\u7247\u3001\u754C\u3001\u590D\u5236",category:Se.c.CategoryCanvas}}],[Se.c.SWRect,{label:"\u9009\u4E2D\u6240\u6709\u77E9\u5F62\u7EC4\u4EF6",info:{fuzzTag:"",category:Se.c.CategorySelected}}],[Se.c.AIGC,{label:"\u5E2E\u6211\u8BBE\u8BA1\u4E00\u4E2A\u65C5\u884CAPP",info:{fuzzTag:"",category:Se.c.CategoryAI}}],[Se.c.AIGC,{label:"\u751F\u6210\u7B14\u8BB0APP\u7684PRD\u6587\u6863",info:{fuzzTag:"",category:Se.c.CategoryAI}}],[Se.c.AIGC,{label:"\u751F\u6210\u4E00\u4E2A\u5546\u54C1\u9500\u552E\u7EDF\u8BA1\u8868",info:{fuzzTag:"",category:Se.c.CategoryAI}}],[Se.c.AIGC,{label:"\u751F\u6210\u4E00\u4E2A\u6E38\u620F\u884C\u4E1A\u53D1\u5C55\u8D8B\u52BF\u56FE",info:{fuzzTag:"",category:Se.c.CategoryAI}}],[Se.c.AIGC,{label:"\u7ED9\u6211\u4E00\u4E2ACRM\u7CFB\u7EDF\u6743\u9650\u529F\u80FD\u7ED3\u6784\u56FE",info:{fuzzTag:"",category:Se.c.CategoryAI}}]];Py(n),n.forEach(d=>{d[1].info.isRecommend=!0});const s=[],c=n.slice();for(;s.length<5&&c.length>0;){const d=Math.floor(Math.random()*c.length),w=c.splice(d,1)[0];s.push(w)}return s},Py=t=>{t.forEach(n=>{const[s,c]=n;let d="";if(s.includes("C-")||s===Se.c.CreateChart)d="v8Cmd/create";else{var w;if(_y.K["v8Cmd/"+((w=c.info)==null?void 0:w.category)]){var P;d="v8Cmd/"+((P=c.info)==null?void 0:P.category)}_y.K["v8Cmd/"+s]&&(d="v8Cmd/"+s)}c.iconName=d})},J6={unicode:!0,interSplit:"[^A-Za-z\\d\u4E00-\u9FA5']+",intraSplit:"[a-z][A-Z]|[\u4E00-\u9FA5][A-Za-z]",intraBound:"[A-Za-z\\d]\u4E00-\u9FA5|\u4E00-\u9FA5[A-Za-z\\d]|[a-z][A-Z]|[\u4E00-\u9FA5][A-Za-z]",intraChars:"[\u4E00-\u9FA5]",intraContr:""},a4=new ug(J6),$6=.7;let g2,r4=!1;const q6=t=>{let{nlpMode:n}=t;const s=(0,r.useMemo)(()=>Array.from(i4()).filter(pe=>{var ye,Ae;let[we,_e]=pe;return!((ye=_e.info)!=null&&ye.noCanFuzzy)&&!((Ae=_e.info)!=null&&Ae.isCategory)}),[]),c=(0,r.useMemo)(()=>Z6(),[]),d=(0,r.useMemo)(()=>s.map(pe=>{let[ye,{label:Ae,info:{fuzzTag:we}}]=pe;return Ae+" "+(we||"")}),[s]),[w,P]=(0,r.useState)([]),F=(0,r.useCallback)(pe=>{const ye=pe.replace(/([\u4e00-\u9fa5])/g,"$1 "),Ae=a4.filter(d,ye);let we=[];if(!pe||!Ae||!Ae.length)return[];try{const _e=a4.info(Ae,d,ye),Ye=a4.sort(_e,d,ye).map(He=>s[_e.idx[He]]);we=np()(Ye)}catch(_e){const Fe=Ae.map(Ye=>s[Ye]);we=np()(Fe)}return["\u5220","\u9664","\u5220\u9664"].find(_e=>_e===pe)&&(we=[[Se.c.Delete,i4().get(Se.c.Delete)]]),we},[s,d]),X=(0,r.useCallback)(async pe=>{g2&&g2.abort(),(pe||!g2)&&(g2=new AbortController),r4=!0;const ye=setTimeout(()=>{r4&&g2.abort()},1e3),Ae=performance.now(),we=await(0,Zd.GE)({searchValue:pe,signal:g2.signal},n);if(clearTimeout(ye),r4=!1,!pe){P([]);return}if(!we)return;const _e=F(pe),Fe=[Se.c.AIGC,{label:pe,dCategory:Se.l.AI,info:{},iconName:"v8Cmd/"+Se.c.AIGC}],Ye=[Se.c.AIQ,{label:pe,dCategory:Se.l.AI,info:{},iconName:"v8Cmd/"+Se.c.AIQ}];if(!we){_e.push(Fe),_e.push(Ye),P(_e);return}const{attrs:He,intent:tt}=we,It=tt.filter(Xt=>{let[_o,co]=Xt;return Number(co)>$6});if(!It&&!It.length)return;const Nt=[];It.forEach(Xt=>{var _o;let[co,yn]=Xt;const An=c.get(co);if(!An||(!He||Object.keys(He).length===0)&&_e.find(_n=>{let[Jn]=_n;return Jn===An})||_e.find(_n=>{let[Jn,rs]=_n;return rs.label===pe}))return;const In=np()(i4().get(An));In.dCategory=Se.l.NLP;const wn=((_o=In.info)==null?void 0:_o.category)||"";if([Se.c.AIGC,Se.c.AIQ,Se.c.CCustomComponent,Se.c.AIInDev].includes(wn)||(In.info.category=Se.c.CategoryNLP),He&&Object.keys(He).length>0){let _n={};Object.entries(He).forEach(Jn=>{let[rs,{value:as}]=Jn;_n=Object.assign(_n,{[rs]:as})}),In.args=_n,In.info.attrs=Cm(pe,He),In.info.trackInfo={input:pe,type:"nlp",attr_no_conv:JSON.stringify(_n),function:In.label,server:n,duration_ident:Math.round(performance.now()-Ae)}}else In.info.trackInfo={input:pe,type:"nlp",function:In.label,server:n,duration_ident:Math.round(performance.now()-Ae)};In.label=co,Nt.push([An,In])}),_e.push(Fe),_e.push(Ye);const Lt=[...Nt,..._e];Lt.sort((Xt,_o)=>[Se.c.AIGC,Se.c.AIQ].includes(Xt[0])||[Se.c.AIGC,Se.c.AIQ].includes(_o[0])?0:Xt[1].label===pe&&_o[1].label!==pe?-1:Xt[1].label!==pe&&_o[1].label===pe?1:0),P(Lt)},[P,c,n,F]);return{handleAICommendSearch:(0,r.useCallback)(pe=>{X(pe)},[X]),cmdSearchResult:w,setCmdSearchResult:P}};class f2{static getInstance(n){return!f2.instance&&n&&(f2.instance=n),f2.instance}}var Ny=e(35853);const e8=t=>{let{onClose:n,accountData:s,actions:c,semanticValue:d,nlpMode:w}=t;const P=(0,r.useMemo)(()=>X6(),[]),F=(0,r.useMemo)(()=>(0,Do.$I)().find(we=>we.type===Do.SR.Semantic),[]),X=we=>{const{user:_e,org:Fe,project:Ye}=s,{updateCurrentOrg:He,updateCurrentUser:tt}=c;Ye.is_org_project&&Fe?He({org:Object.assign(Fe,{used_times:we})}):tt({user:Object.assign(_e,{used_times:we})})},ee=we=>{const{user:_e,org:Fe,project:Ye}=s,{updateCurrentOrg:He,updateCurrentUser:tt}=c;Ye.is_org_project&&Fe?He({org:Object.assign(Fe,{ai_points:we})}):tt({user:Object.assign(_e,{ai_points:we})})},{handleConvertComponent:pe,aiFunctionTrackHandle:ye}=dd({currentAIComponent:F,semanticValue:d,...s,onUpdateAIUsedTimes:X,onUpdateAIPoints:ee,actions:c});return{handleCommandAction:(0,r.useCallback)(async(we,_e)=>{var Fe,Ye,He;const{args:tt,info:It}=we[1]||{},{isRecommend:Nt,trackInfo:Lt}=It||{},Xt=_n=>{let{nlpType:Jn,label:rs}=_n;return{input:d||we[1].label||rs,type:Nt?"\u63A8\u8350\u6307\u4EE4":Jn,function:rs,server:w}},_o=()=>{const{user:_n,project:Jn}=s||{},{id:rs}=_n||{},{cid:as}=Jn||{};return{user_id:rs,project_cid:as}},co=_n=>{(0,Zd.Uy)({..._n,..._o()})};if(we[0]===Se.c.AIInDev||((Fe=we[1].info)==null?void 0:Fe.category)===Se.c.AIInDev){c==null||c.notice({text:"\u529F\u80FD\u6B63\u5728\u5F00\u53D1\u4E2D\uFF0C\u656C\u8BF7\u671F\u5F85",svgName:"chatGPT/tip-warning"}),co({nlpType:"nlp",label:"\u5F00\u53D1\u4E2D"});return}if(we[0]===Se.c.AIGC||((Ye=we[1].info)==null?void 0:Ye.category)===Se.c.AIGC){pe(d||we[1].label),co(Lt?{...Lt,attr:JSON.stringify(_e),server:w}:Xt({nlpType:"\u4FDD\u5E95\u6307\u4EE4",label:"\u8BD5\u8BD5AI"}));return}if(we[0]===Se.c.AIQ||((He=we[1].info)==null?void 0:He.category)===Se.c.AIQ){await c.handleAIQuestion(d),setTimeout(()=>{Ny.A.emit(Ny.d,d)},10),co(Lt?{...Lt,attr:JSON.stringify(_e),server:w}:Xt({nlpType:"\u4FDD\u5E95\u6307\u4EE4",label:"\u95EE\u95EEAI"}));return}if(we[0]===Se.c.CCustomComponent){c.track("ai_click",{source:"AI\u7EC4\u4EF6\u751F\u6210"}),c.setAIComponentSourceCache("\u8BED\u4E49\u6307\u4EE4"),await c.aiComponentGenerate({semanticValue:d});return}ye(!0,0,0,{ai_type:"\u6307\u4EE4\u64CD\u4F5C",ai_user_input:d||"",message:d||we[1].label||""});const yn=performance.now();let An=!1;if(!P.includes(we[0])&&tt&&Object.keys(tt).length>0&&!Nt){An=!0;const _n=()=>{c.updateAIState({aiGenerating:!0})},Jn=performance.now(),rs=setTimeout(_n,400),as=await(0,Zd.x$)(tt,w),ha=performance.now()-Jn;ha>400&&ha<800&&await new Promise(Ca=>setTimeout(Ca,400)),rs&&clearTimeout(rs),c.updateAIState({aiGenerating:!1}),as&&(_e=as)}const In=f2.getInstance();if(await(In==null?void 0:In.exec(we[0],Cf(_e))),Lt){const _n={...Lt,attr:JSON.stringify(_e),server:w,..._o()};An&&(_n.duration_conv=Math.round(performance.now()-yn)),(0,Zd.Uy)(_n)}else{var wn;co(Xt({nlpType:Nt?"\u63A8\u8350\u6307\u4EE4":((wn=we[1])==null||(wn=wn.info)==null||(wn=wn.trackInfo)==null?void 0:wn.type)||"\u786C\u5339\u914D",label:we[1].label}))}},[d,pe,ye,w,P,c,s])}},Ly="8082",t8=t=>{const{handleMovePanel:n,recommendPosition:s,generating:c,accountData:d,actions:w}=t,{user:P,org:F,project:X}=d,ee=(0,r.useRef)(null),[pe,ye]=(0,r.useState)(!1),[Ae,we]=(0,r.useState)(""),[_e,Fe]=(0,r.useState)([]),Ye=(0,r.useMemo)(()=>Q6(),[]),He=()=>{w.updateAIState({showAISemantic:!1})},{cmdSearchResult:tt,handleAICommendSearch:It,setCmdSearchResult:Nt}=q6({nlpMode:Ly}),{handleCommandAction:Lt}=e8({onClose:He,accountData:d,actions:w,semanticValue:Ae,nlpMode:Ly});(0,r.useEffect)(()=>{const wn=!Ae||!tt.length?Ye:tt;Fe(s==="top"?wn.slice().reverse():wn)},[s,Ae,tt,Ye]);const Xt=!c&&pe,_o=(0,r.useCallback)(async wn=>{var _n;we(""),Nt([]),ye(!1),ee&&((_n=ee.current)==null||_n.blur()),await Lt(wn,wn[1].args),setTimeout(()=>{var Jn;ee&&((Jn=ee.current)==null||Jn.focus())},250)},[Lt,Nt]),co=(0,r.useCallback)(wn=>{we(wn),wn||Nt([])},[we,Nt]),yn=(0,r.useCallback)(wn=>{(wn.target.closest(".ai-semantic-recommend-panel")||wn.target.closest(".semantic-title")||wn.target.closest(".semantic-input")&&!wn.target.closest(".ai-semantic-input")||wn.target.closest(".semantic-gap"))&&(wn.stopPropagation(),wn.preventDefault())},[]),An=(0,r.useCallback)(wn=>{n(wn,ee==null?void 0:ee.current)},[ee,n]),In=(0,r.useCallback)(()=>{(0,yc.Ix)("https://modao.cc/hc/articles/407","_blank","noreferrer")},[]);return(0,i.jsxs)(n1,{children:[(0,i.jsxs)("div",{className:"semantic-top",children:[(0,i.jsxs)("div",{className:"semantic-title",onMouseDown:An,children:[(0,i.jsxs)("div",{className:"title-left",children:[(0,i.jsx)(Oc.C,{name:"chatGPT/ai-semantic-small",isColorPure:!0}),I18N.ChatGPT.ai_semantic,(0,i.jsxs)("div",{className:"ai-help",children:[(0,i.jsx)(Oc.C,{className:"ai-help-icon",name:"chatGPT/ai-cmd-help",isColorPure:!0}),(0,i.jsxs)("div",{className:"ai-help-content",children:[" \u667A\u80FD\u6307\u4EE4\u529F\u80FD\u6B63\u5904\u4E8EBeta\u6D4B\u8BD5\u9636\u6BB5\uFF0C \u8BE6\u7EC6\u4FE1\u606F\u8BF7\u53C2\u9605 ",(0,i.jsx)("span",{onClick:In,children:"\u5E2E\u52A9\u6587\u6863"}),(0,i.jsx)("div",{className:"bot-content"})]})]})]}),(0,i.jsxs)("div",{className:"title-right",children:[!ENV.IS_WONDER_SHARE&&(0,i.jsx)(Oc.C,{className:"ai-beta",name:"chatGPT/ai-beta",isColorPure:!0}),(0,i.jsx)(Oc.C,{className:"close",name:"chatGPT/ai-semantic-close",isColorPure:!0,onClick:He})]})]}),(0,i.jsx)(e6,{ref:ee,semanticValue:Ae,generating:c,accountData:d,actions:w,onAISearch:It,setSemanticValue:co,setInputFocus:ye})]}),(0,i.jsx)("div",{className:"semantic-gap"}),Xt&&(0,i.jsx)(zh,{org:F,user:P,project:X,isInputFocus:pe,onClickRecommend:_o,recommendPosition:s,recommendList:_e}),(0,i.jsx)(Hc.A,{target:document,onMouseDown:(0,Hc.t)(yn)})]})},o8=(0,r.memo)(t8),n8=(0,r.memo)(function(n){const{panelPosition:s,recommendPosition:c,updatePositionHandle:d,handleMouseDown:w}=A1();return(0,r.useEffect)(()=>(d(),window.addEventListener("resize",d),()=>{window.removeEventListener("resize",d)}),[d]),(0,i.jsx)(mh,{id:"ai-semantic-modal",style:{left:s.left,top:s.top},children:(0,i.jsx)(o8,{handleMovePanel:w,recommendPosition:c,...n})})}),s8=t=>{const n=t(),{actions:{getCmdExec:s}}=n;return s&&f2.getInstance(s()),(0,i.jsx)(n8,{...n})},i8=u.Ay.div.withConfig({displayName:"styles__StyledAIChatPanelContainer",componentId:"sc-i9zp7e-0"})([".single-resizer{border:0;z-index:111;.resizable-handler{&.t,&.b{width:100%;left:7px;cursor:ns-resize !important;}&.l,&.r{height:100%;top:7px;cursor:ew-resize !important;}}.square{display:none;}}"]),a8=(0,u.Ay)(a2).withConfig({displayName:"styles__StyledAIChatPanel",componentId:"sc-i9zp7e-1"})(["z-index:112;border-radius:10px;border:1px solid ",";"],t=>t.theme.color_bg_border_01);var r8=e(13566);const l4="AI_CHAT_PANEL_POSITION_TOP",c4="AI_CHAT_PANEL_POSITION_LEFT",Dy="AI_CHAT_PANEL_POSITION_WIDTH",By="AI_CHAT_PANEL_POSITION_HEIGHT",l8=t=>{const{actions:{handleToggleAIChatPanel:n},commonData:s}=t,c=300,d=550,w=300,P=550,F=1200,X=800,ee=78,pe=328,[ye,Ae]=(0,r.useState)(()=>(0,Pr.Yt)(Dy,c,Pr.qW.Number)),[we,_e]=(0,r.useState)(()=>(0,Pr.Yt)(By,d,Pr.qW.Number)),[Fe,Ye]=(0,r.useState)(()=>(0,Pr.Yt)(l4,ee,Pr.qW.Number)),[He,tt]=(0,r.useState)(()=>(0,Pr.Yt)(c4,pe,Pr.qW.Number)),[It,Nt]=(0,r.useState)(window.innerWidth),[Lt,Xt]=(0,r.useState)(window.innerHeight),_o=(0,r.useCallback)((An,In)=>{const wn=Math.max(Math.min(In,Lt-550),0),_n=Math.max(Math.min(An,It-300),0);Ye(wn),tt(_n),(0,Pr.a0)(l4,wn,Pr.qW.Number),(0,Pr.a0)(c4,_n,Pr.qW.Number)},[Lt,It]),co=(0,r.useCallback)(()=>{Nt(window.innerWidth),Xt(window.innerHeight),_o(He,Fe)},[_o,He,Fe]),yn=(0,r.useCallback)(An=>{const{left:In,top:wn,width:_n,height:Jn}=An;_n>w&&_n<F&&In<It-300&&In>0&&(tt(In),Ae(_n),(0,Pr.a0)(c4,In,Pr.qW.Number),(0,Pr.a0)(Dy,_n,Pr.qW.Number)),Jn>P&&Jn<X&&wn<Lt-550&&wn>0&&(Ye(wn),_e(Jn),(0,Pr.a0)(l4,wn,Pr.qW.Number),(0,Pr.a0)(By,Jn,Pr.qW.Number))},[Lt,It]);return(0,r.useEffect)(()=>(window.addEventListener("resize",co),()=>{window.removeEventListener("resize",co)}),[co]),(0,i.jsxs)(i8,{children:[(0,i.jsx)(ir.A,{position:{left:He,top:Fe},dragContainer:"ai-chat-panel",onMove:_o,children:(0,i.jsxs)(a8,{id:"ai-chat-panel",style:{width:ye,height:we},children:[(0,i.jsx)(fa.A,{isAIChatPanel:!0,title:"AI\u5BF9\u8BDD",closeModal:n,...s}),(0,i.jsx)(r8.A,{...t})]})}),(0,i.jsx)(Wr.A,{classname:"resizer",top:Fe,left:He,width:ye,height:we,zoomable:"n,s,e,w,se,sw,ne,nw",rotatable:!1,rotateAngle:0,onResize:yn,cursorAngle:0})]})},c8=(0,r.memo)(l8),d8=t=>{const n=t();return(0,i.jsx)(c8,{...n})};var Eu=e(13096),km=e(90827),Ry=e(72907);const ku=t=>{(0,Dc.kH)("version_record_operation",{operation_type:t})},d4=async t=>{let{projectCid:n,accessToken:s="",dispatch:c}=t;c({type:"versions:update",payload:{fetching:!0}});let d=[];d=await(0,km.c4)(n,s),c({type:"versions:set:versions",payload:{versions:d}}),c({type:"versions:update",payload:{fetched:!0,fetching:!1}})},jy=async t=>{let{projectCid:n,dispatch:s,noEdit:c=!1,title:d,desc:w,category:P="active"}=t;await rootSdk.saveAsync(),d||(d=Fs()().format("YYYY.MM.DD HH:mm"));try{const{clientData:F,nextCheckpoint:X}=await(0,km.JL)({projectCid:n,title:d,desc:w||"",category:P});MB.versionNextCheckpoint=X,s({type:"versions:create",payload:{newVersion:F}}),MB.notice({text:I18N.VersionManagementPane.version_toast_create_success,type:"success"}),ku("\u6DFB\u52A0\u7248\u672C")}catch(F){switch(F.errMsg){case"PV_CREATE_NOT_IN_ORG":MB.action("modal:update:state",{rightsAndInterestsModal:{isOpen:!0,type:Xe.hC.ProjectVersionFromCount}});break;case"P_NO_NEW_CHANGE":MB.notice({text:I18N.VersionManagementPane.version_toast_repeat,type:"warning"});break;case"PV_CREATE_COUNT_EXCEEDED":MB.action("modal:update:state",{rightsAndInterestsModal:{isOpen:!0,type:Xe.hC.ProjectVersionFromCount}});break;default:throw await(0,Ry.FY)(F),F}}finally{}},p8=async t=>{let{projectCid:n,versionCid:s,newTitle:c,newDesc:d,dispatch:w,allVersions:P}=t,F;try{F=await(0,km.LD)({projectCid:n,versionCid:s,newTitle:c,newDesc:d})}catch(X){/404/.test(X.message)?(MB.notice({text:I18N.VersionManagementPane.version_toast_error_deleted,type:"warning"}),await d4({projectCid:n,dispatch:w})):await(0,Ry.FY)(X);return}if(F&&F.result==="success"){const X=P.map(ee=>ee.cid===s?{...ee,description:d,title:c,update_at:new Date().toLocaleString(void 0,{hour12:!1})}:ee);w({type:"versions:set:versions",payload:{versions:X}}),ku("\u7F16\u8F91\u7248\u672C")}w({type:"versions:update",payload:{currentEditing:void 0}})},h8=async t=>{let{projectCid:n,versionCid:s,allVersions:c,currentViewing:d,dispatch:w}=t;if(d&&s===d.cid){const F=c.indexOf(c.find(ee=>ee.cid===s)),X=c[F+1];w(X?{type:"versions:update",payload:{currentViewing:{cid:X.cid,title:X.title}}}:{type:"versions:update",payload:{currentViewing:void 0}})}const P=await(0,km.CH)({projectCid:n,versionCid:s});if(P&&P.result==="success"){const F=c.filter(X=>X.cid!==s);w({type:"versions:set:versions",payload:{versions:F}}),w({type:"versions:model:deleting:close"}),MB.notice({text:I18N.VersionManagementPane.version_toast_delete_success}),ku("\u5220\u9664\u7248\u672C")}},u8=async t=>{await(0,km.QV)({versionCid:t,title:Fs()().format("YYYY.MM.DD HH:mm"),description:""}),window.history.replaceState(void 0,void 0,"#version=reset"),window.onbeforeunload=void 0,location.reload()},m8=async t=>{let{versionCid:n,title:s,dispatch:c}=t;const d=window.cssCur.getRoomStat();!(d!=null&&d.length)||d.length===1?c({type:"versions:model:resetting:open",payload:{currentResetting:{cid:n,title:s},currentCollaborators:{collaborators:[],checked:!0}}}):c({type:"versions:model:resetting:open",payload:{currentResetting:{cid:n,title:s},currentCollaborators:{collaborators:d,checked:!1}}})};var Oy=e(39506);const g8=(t,n)=>{const s=Pa();!MB.global.experienceLoginModalHelper("isSave")&&s&&s({type:"entry:start:saving"})},f8=(t,n)=>{const s=Pa();s&&s({type:"modal:update:state",payload:{projectSummaryModal:{isOpen:!0}}})},y8=(t,n)=>{const s=Pa();s&&s({type:"entry:toolbar:open:versionControl:modal"})},x8=(t,n)=>{const s=Pa();if(!s)return;const c=(0,un.dP)();if(!c)return;const{isEditingProjectMain:d}=(0,y.r)(c);d&&(MB.global.experienceLoginModalHelper("isSave")||(s({type:"toolbar:sharingManager:toggle"}),s({type:"entry:update:novice:guide:and:task",payload:{guideType:Ha.c.GUIDE_NOVICE_2309_STEP_5,taskType:Ha.c.GUIDE_NOVICE_2309_TASK_5}})))},v8=(t,n)=>{if(!n||!n.file_name){MB.notice({text:I18N.ToolBar.empty_project_name,type:"warning"});return}const s=Pa();if(!s)return;const{file_name:c}=n;s({type:"entry:update:root-project:name",payload:{name:c}})},b8=(t,n)=>{var s;const c=Pa();if(!c)return;const d=(0,un.dP)();if(!d)return;const w=(s=(0,S.PL)(d))==null?void 0:s.cid,P=(0,S.H7)(d),F=(0,S.HW)(d),X=(0,S.wA)(d);c&&c({type:"entry:toolbar:open:versionControl:modal"}),X&&jy({projectCid:w,currentTeam:P,dispatch:c},F,X)},C8=(t,n)=>{Oy.w[(0,Oy.y)()]()(c=>{let{sRGBHex:d}=c;return MB.action("entry:i:key",{color:d})})},w8=()=>{const t=Fc.getInstance();t.register("Save",g8),t.register("ViewFileInfo",f8),t.register("ViewVersionRecord",y8),t.register("ToggleViewShare",x8),t.register("ProjectRename",v8),t.register("CreateNewVersion",b8),t.register("OpenColorPicker",C8)},S8=(t,n)=>{const s=Pa();s&&s({type:"entry:design:zoom:in"})},A8=(t,n)=>{const s=Pa();s&&s({type:"entry:design:zoom:out"})},I8=(t,n)=>{const s=Pa();s&&s({type:"entry:set:scale",payload:{scale:100}})},M8=(t,n)=>{const s=Pa();s&&s({type:"entry:design:zoom:selection"})},T8=(t,n)=>{const s=Pa();s&&s({type:"entry:zoom:fit:scale:offset"})},E8=(t,n)=>{const s=Pa();s&&s({type:"entry:toolbar:toggle:fullScreen"})},k8=()=>{const t=Fc.getInstance();t.register("ZoomIn",S8),t.register("ZoomOut",A8),t.register("ZoomToHundred",I8),t.register("ZoomSelection",M8),t.register("FitCanvas",T8),t.register("FullScreenMode",E8)},_8=(t,n)=>{const s=Pa();s&&s({type:"preference:toggle:theme"})},P8=(t,n)=>{const s=Pa();s&&s({type:"preference:toggle:ruler"})},N8=(t,n)=>{const s=Pa();s&&s({type:"preference:toggle:showRulerReferLine"})},L8=(t,n)=>{const s=Pa();s&&s({type:"entry:isShowSticky:toggle"})},D8=(t,n)=>{const s=Pa();s&&s({type:"comment:toggle:isShowCommentInCanvas"})},B8=(t,n)=>{const s=Pa();s&&s({type:"preference:toggle:multiplayerMouse"})},R8=(t,n)=>{const s=Pa();s&&s({type:"preference:toggle:AlignLine"})},j8=(t,n)=>{const s=Pa();s&&s({type:"entry:toggle:left-nav-panel"})},O8=(t,n)=>{const s=Pa();s&&s({type:"entry:toggle:right-panel"})},F8=()=>{const t=Fc.getInstance();t.register("ToggleTheme",_8),t.register("ToggleRuler",P8),t.register("ToggleReferenceLine",N8),t.register("ToggleSticky",L8),t.register("ToggleComment",D8),t.register("ToggleMultiplayerMouse",B8),t.register("ToggleAlignLine",R8),t.register("ToggleLeftSide",j8),t.register("ToggleRightSide",O8)};var _m=e(41469),hc=e(98195),mg=e(94153),U8=e(51050);const z8=async(t,n)=>{const s=Pa();if(!s)return;const c=Number(n==null?void 0:n.undo_steps)||1;for(let d=0;d<c;d++)await s({type:"entry:undo-stack:undo"}),await new Promise(w=>setTimeout(w,3))},W8=async(t,n)=>{const s=Pa();if(!s)return;const c=Number(n==null?void 0:n.redo_steps)||1;for(let d=0;d<c;d++)await s({type:"entry:undo-stack:redo"}),await new Promise(w=>setTimeout(w,3))},Fy={png:"png",pdf:"pdf",htmlzip:"htmlzip",apk:"apk"},V8=(t,n)=>{const s=Pa();if(MB.global.experienceLoginModalHelper("isSave")||!s)return;const{export_type:c}=n||{};Fy[c]&&s({type:"export:update:state",payload:{currentExportTag:Fy[c]}}),s({type:"entry:toolbar:open:export_menu"})},H8=(t,n)=>{const s=Pa();s&&s({type:"entry:select:all"})},K8=(t,n)=>{const s=Pa();s&&s({type:"entry:findReplacePanel:toggle:show"})},G8=async(t,n)=>{const s=Pa(),c=(0,un.dP)();if(s&&!n&&!c)return;const{selectScreenValue:d}=(0,Me.Gh)(c),{search_keyword:w}=n||{};await s({type:"entry:findReplacePanel:toggle:show"}),w&&await s({type:"findReplacePanel:update",payload:{searchValue:w}}),w&&s({type:"entry:findReplacePanel:search",payload:{isCurrentScreen:d==="current",searchValue:w}})},Y8=async(t,n)=>{const s=Pa(),c=(0,un.dP)();if(s&&!n&&!c)return;const{source_text:d,target_text:w}=n||{},P={isFold:!1};d&&(P.searchValue=d),w&&(P.replaceValue=w),await s({type:"entry:findReplacePanel:toggle:show"}),await s({type:"findReplacePanel:update",payload:P}),d&&s({type:"entry:findReplacePanel:search",payload:{isCurrentScreen:!1,searchValue:d}})},Z8=(t,n)=>{const s=Pa();s&&s({type:"entry:open:Launch"})},X8=(t,n)=>{const s=Pa();if(!s)return;const c=(0,un.dP)(),d=(0,ce.p$)(c),w=(0,nt.kE)(d),P=(0,nt.MP)(d);if(!d.length){MB.notice({text:"\u8BF7\u5148\u9009\u62E9\u5408\u9002\u7684\u5BF9\u8C61",type:"warning"});return}if(P||MB.notice({text:"\u8BF7\u5148\u9009\u62E9\u5408\u9002\u7684\u5BF9\u8C61",type:"warning"}),!w){MB.notice({text:"\u8BF7\u5148\u9009\u62E9\u5408\u9002\u7684\u5BF9\u8C61",type:"warning"});return}s({type:"entry:group:items"})},Q8=(t,n)=>{const s=Pa(),c=(0,un.dP)(),d=(0,ce.p$)(c);if(!(0,nt.P6)(d)){MB.notice({text:"\u8BF7\u5148\u9009\u62E9\u5408\u9002\u7684\u5BF9\u8C61",type:"warning"});return}s({type:"entry:ungroup:items"})},J8=(t,n)=>{const s=Pa(),c=(0,un.dP)();if(!s||!c)return;const{target_space:d}=n||{},w=d==="org",P=!(0,S.wA)(c),F=(0,ce.Z9)(c),{isEditingUserCombo:X,isEditingOrgCombo:ee}=(0,y.r)(c)||{};if(P&&d==="org"){MB.notice({text:"\u4E2A\u4EBA\u7A7A\u95F4\u4E2D\u65E0\u6CD5\u6DFB\u52A0\u7EC4\u4EF6\u81F3\u56E2\u961F",type:"warning"});return}if(!((0,nt.ju)(F)&&(!X||!P&&!ee))){MB.notice({text:"\u8BF7\u5148\u9009\u62E9\u5408\u9002\u7684\u5BF9\u8C61",type:"warning"});return}MB.global.experienceLoginModalHelper("isSave")||s({type:"entry:create:combo:to:user:org:group",payload:{targetType:w?"org":"user",callback:()=>{(0,Ve.O3)({operation_from:"AI3.0",operation_type:w?Ve.VW.AddToOrgCombo:Ve.VW.AddToMyCombo})}}})},$8=(t,n)=>{const s=Pa(),c=(0,un.dP)();if(!s||!c)return;const d=(0,ce.Z9)(c),w=(0,_.j)(c),{isEditingBasket:P,isEditingMuban:F,isEditingProjectMain:X}=(0,y.r)(c)||{},ee=w||!((X||P||F)&&(0,nt.jp)(d));if(MB.global.experienceLoginModalHelper("isSave")||ee){MB.notice({text:"\u8BF7\u5148\u9009\u62E9\u5408\u9002\u7684\u5BF9\u8C61",type:"warning"});return}const pe=d[0].hotAttr.name||(0,Co.KD)(d[0].key);s({type:"modal:update:state",payload:{masterCreateModal:{isOpen:!0,name:pe,onConfirm:async ye=>{let{name:Ae,onSuccess:we}=ye;await s({type:"entry:create:basket",payload:{basketType:"bMuban",attr:{name:Ae},onSuccess:we}}),s({type:"muban-panel:update:mubanList",payload:{mubanList:I5()}})}}}})},q8=async(t,n)=>{const s=Pa(),c=(0,un.dP)();if(!s||!c)return;const d=(0,ce.Z9)(c),w=(0,_.j)(c),P=(0,nt.jp)(d);if(MB.global.experienceLoginModalHelper("isSave")||w||!P){MB.notice({text:"\u8BF7\u5148\u9009\u62E9\u5408\u9002\u7684\u5BF9\u8C61",type:"warning"});return}await s({type:"entry:create:basket",payload:{basketType:"bDanli"}}),s({type:"entry:screenContainer:enter:editing:widget"})},e5=(t,n)=>{const s=Pa();if(s){if((0,_m.J7)()){MB.notice({text:"\u8BF7\u5148\u9009\u62E9\u5408\u9002\u7684\u5BF9\u8C61",type:"warning"});return}s({type:"entry:cut:items"}),(0,Ne.P8)()}},t5=(t,n)=>{const s=Pa();if(s){if((0,_m.J7)()){MB.notice({text:"\u8BF7\u5148\u9009\u62E9\u5408\u9002\u7684\u5BF9\u8C61",type:"warning"});return}s({type:"entry:copy:items"}),s({type:"entry:copy:items:properties"}),(0,Ne.P8)()}},o5=(t,n)=>{const s=Pa();if(!s||MB.f.editing){MB.notice({text:"\u8BF7\u5148\u9009\u62E9\u5408\u9002\u7684\u5BF9\u8C61",type:"warning"});return}s({type:"entry:paste:items:into:current-page",payload:{triggerType:"shortcut"}})},n5=(t,n)=>{const s=Pa();if(!s){MB.notice({text:"\u8BF7\u5148\u9009\u62E9\u5408\u9002\u7684\u5BF9\u8C61",type:"warning"});return}s({type:"entry:paste:items:properties"})},s5=(t,n)=>{const s=Pa();s&&s({type:"preference:toggle:panelLinkDefaultTransition"})},i5=(t,n)=>{const s=Pa();s&&s({type:"preference:toggle:stateLinkDefaultTransition"})},a5=(t,n)=>{const s=Pa(),c=(0,un.dP)();if(!s||!c||!n)return;const{"link-type":d}=n;let w=1;d==="none"&&(w=0),d==="lightning_line"&&(w=2),s({type:"entry:update:preference",payload:{link_display:w}})},r5=(t,n)=>{const s=Pa();s&&s({type:"preference:toggle:containSelect"})},l5=(t,n)=>{const s=Pa();if(!s||!(0,R0.uF)()||!(0,R0.b8)()){MB.notice({text:"\u5F53\u524D\u5E73\u53F0\u6682\u4E0D\u652F\u6301",type:"warning"});return}s({type:"preference:toggle:useNativeEyedropper"})},c5=(t,n)=>{const s=Pa();s&&s({type:"preference:toggle:dragMode"})},d5=(t,n)=>{const s=Pa();s&&s({type:"entry:toolbar:toggle:handTool"})},p5={left:"left","horizontal-center":"center",right:"right",top:"top","vertical-center":"middle",bottom:"bottom","distribute-horizontal":"horizontal","distribute-vertical":"vertical"},M1=(t,n)=>{const s=Pa(),c=(0,un.dP)(),{"align-type":d}=n||{},w=p5[d];if(!s||!c||!n||!w)return;const P=Io.X.query.getIsShallowEditing(c),F=(0,ce.p$)(c),X=(0,A.lY)(c);let ee=!1,pe=!1;if(F.length>0&&(ee=(0,nt.GS)(F)&&!X&&!P,pe=(0,nt.oR)(F)&&!P),!ee&&!pe){MB.notice({text:"\u8BF7\u5148\u9009\u62E9\u5408\u9002\u7684\u5BF9\u8C61",type:"warning"});return}s(w==="horizontal"||w==="vertical"?{type:"entry:distribute:items",payload:{direction:w}}:{type:"entry:align:items",payload:{direction:w}})},h5=(t,n)=>{M1("Alignment",{"align-type":"top"})},u5=(t,n)=>{M1("Alignment",{"align-type":"vertical-center"})},m5=(t,n)=>{M1("Alignment",{"align-type":"bottom"})},g5=(t,n)=>{M1("Alignment",{"align-type":"left"})},f5=(t,n)=>{M1("Alignment",{"align-type":"horizontal-center"})},y5=(t,n)=>{M1("Alignment",{"align-type":"right"})},x5=(t,n)=>{M1("Alignment",{"align-type":"distribute-horizontal"})},v5=(t,n)=>{M1("Alignment",{"align-type":"distribute-vertical"})},b5=[hc.lS.Builtin,hc.lS.Icon,hc.lS.Asset,hc.lS.Page],Uy={component:hc.lS.Builtin,icon:hc.lS.Icon,picture:hc.lS.Asset,page:hc.lS.Page},C5=async(t,n)=>{const s=Pa(),c=(0,un.dP)();if(!s||!c)return;const{search_res_type:d,search_res_keyword:w}=n||{search_res_type:"page"},P=Uy[d];if(!b5.includes(P)||((0,pt.OW)(c)!==Uy[d]&&s({type:"entry:active:popup:panel",payload:{name:P}}),!w))return;s({type:"searchPanel:update:state",payload:{keyword:w}});const X=hc.Mf[P],ee=(0,mg.pM)(c),pe=[w].concat(ee.filter(ye=>ye!==w)).splice(0,ee);s({type:"searchPanel:update:state",payload:{historyKeyWords:pe}}),s({type:"entry:search-panel:search:from:keyword",payload:{from:U8.Z.sideBarPanel,category:X,isHistoryWord:!1,isHotKeyWord:!1}})},w5=(t,n)=>{const s=Pa();s&&(s({type:"entry:delete:selected-items"}),s({type:"enter:comment:shortcut:del"}))},S5=(t,n)=>{(0,yc.JW)("https://modao.cc/hc/articles/407","_blank","noreferrer")},A5=()=>{const t=Fc.getInstance();t.register("Undo",z8),t.register("Redo",W8),t.register("ToggleExport",V8),t.register("ComSelectAll",H8),t.register("GlobalFindAndReplace",K8),t.register("GlobalFind",G8),t.register("GlobalReplace",Y8),t.register("Preview",Z8),t.register("Group",X8),t.register("UnGroup",Q8),t.register("AddComponent",J8),t.register("Delete",w5),t.register("Cut",e5),t.register("Copy",t5),t.register("Past",o5),t.register("PastProperties",n5),t.register("CreateMaster",$8),t.register("CreatePanel",q8),t.register("TogglePanelTransState",s5),t.register("TogglePageTransState",i5),t.register("LinkDisplayChange",a5),t.register("ToggleSelectMode",r5),t.register("ToggleEyedropper",l5),t.register("ToggleDynamicSpacing",c5),t.register("ToggleHandTool",d5),t.register("Alignment",M1),t.register("AlignmentTop",h5),t.register("AlignmentMiddle",u5),t.register("AlignmentBottom",m5),t.register("AlignmentLeft",g5),t.register("AlignmentCenter",f5),t.register("AlignmentRight",y5),t.register("AlignmentHorizontal",x5),t.register("AlignmentVertical",v5),t.register("SearchMktSource",C5),t.register("AI3Help",S5)};function I5(){throw new Error("Function not implemented.")}var M5=e(56940);const T5=(t,n)=>{const s=Pa();s&&s({type:"toggle:showShortCutArtBoard",payload:{helpCenterModal:{index:1}}})},E5=(t,n)=>{const s=Pa();ENV.IS_WONDER_SHARE?(0,yc.JW)("https://mockitt.wondershare.com/guide/","_blank","noreferrer"):s&&s({type:"modal:update:state",payload:{helpCenterModal:{isOpen:!0,productName:"a10_proto_tool_v8"}}})},k5=(t,n)=>{const s="",c={nickname:MB.user.name,avatar:MB.user.avatar,openid:MB.user.cid};(0,M5.v)({data:c,params:s})},_5=(t,n)=>{const s=document.getElementById("mdOnlineSupport");s==null||s.onclick()},P5=(t,n)=>{const s=Pa();ENV.IS_WONDER_SHARE?(0,yc.JW)("https://mockitt.wondershare.com/guide/","_blank","noreferrer"):s&&s({type:"modal:update:state",payload:{helpCenterModal:{isOpen:!0,productName:"a10_proto_tool_v8",frontPageId:"397"}}})},N5=()=>{const t=Fc.getInstance();t.register("ToggleShortcutKey",T5),t.register("OpenHelperCenter",E5),t.register("Feedback",k5),t.register("OnlineSupport",_5),t.register("NewFeature",P5)};var p4=e(37051),Q1=e(73734);const zy=t=>!t||t==="none"?{italic:!1,bold:!1,underline:!1,strikethrough:!1}:{italic:t==="italic",bold:t==="bold",underline:t==="underline",strikethrough:t==="strikethrough"},Gr=t=>{try{return Oa(t)}catch(n){return null}},KT=(t,n,s)=>{try{if(!n&&!n&&!s)return null;const c=y2(n||"solid");return{bdrColor:fromHexColor(t),bdrIsVisible:!0,bdrStyle:c,bdrWidth:Number(s)||1}}catch(c){return null}},y2=t=>{let n="solid";return t==="dash"?n="dashed":t==="dot"&&(n="dotted"),n},Wy=t=>{const n=""+t,s=n.replace(/[^\d.-]/g,"");let c=parseFloat(s);return(n.includes("%")||c>1)&&(c/=100),c},h4=t=>{const{width:n,height:s}=t||{},c={};return Number(n)&&(c.w=Number(n)),Number(s)&&(c.h=Number(s)),c},Vy=(t,n)=>{const{"font-color":s,"font-size":c,"font-family":d,"font-format":w,"text-align":P}=t||{},F=[yo.x.WButton,yo.x.WIphoneXSB,yo.x.WMTextInput,yo.x.WMTextArea,yo.x.WMSelect,yo.x.WElbow,yo.x.WDropMenu],X=s?F.includes(n)?Oa(s):s:void 0,ee={},pe=Number(c);if(X&&(ee.textColor=X),pe&&(ee.fontSize=pe),d&&(ee.fontFamily=d),pe){const ye=p2()(pe*1.399+.251);ee.lineHeight=ye}return P&&(ee.horizontalAlign=P),{...ee,...zy(w)}},L5=t=>{const{"text-content":n}=t||{};return G1(n||"")},D5=t=>{const{"stroke-color":n,"stroke-type":s,"stroke-weight":c}=t||{},d={};return n&&(d.bdrColor=Oa(n)),s&&(d.bdrStyle=y2(s||"solid")),c&&(d.bdrWidth=Number(c)),d},u4=t=>{const{"fill-color":n,radius:s,opacity:c}=t||{},d={};c!==void 0&&(d.opacity=Wy(c)),Number(s)&&(d.borderRadius=Number(s));const w=Gr(n);return w&&(d.fill={fillIsVisible:!0,fill:"solid",solidColor:w}),d},B5=(t,n)=>{try{const{textV1:s}=t||{},{blocks:c}=s||{};if(!s||!c)return null;const{"font-color":d,"font-size":w,"font-family":P,"font-format":F}=n||{},{italic:X,bold:ee,underline:pe,strikethrough:ye}=zy(F);return c&&Object.values(c).forEach(Ae=>{const{type:we}=Ae;let _e=Ae.inlineStyleRanges;we!=="atomic"&&_e&&(d&&(_e=_e.filter(Fe=>!Fe.style.startsWith("color-"))),w&&(_e=_e.filter(Fe=>!Fe.style.startsWith("fontsize-")&&!Fe.style.startsWith("lineheight-"))),X&&(_e=_e.filter(Fe=>Fe.style!=="ITALIC")),pe&&(_e=_e.filter(Fe=>Fe.style!=="UNDERLINE")),ee&&(_e=_e.filter(Fe=>Fe.style!=="BOLD")),ye&&(_e=_e.filter(Fe=>Fe.style!=="STRIKETHROUGH")),P&&(_e=_e.filter(Fe=>!Fe.style.startsWith("fontfamily-")))),Ae.inlineStyleRanges=_e}),JSON.parse(JSON.stringify(c))}catch(s){return null}},gg=function(t,n){var s,c;if(n===void 0&&(n=!0),!t||!t.length)return;const d=(0,un.dP)();let w=0,P=0;const F=t.reduce((ee,pe)=>ee+pe.hotAttr.w,0);if(d){const ee=(0,S.X_)(d),pe=(0,S.$S)(d),ye=(0,S.ER)(d),Ae={scale:ee/100,size:{w:pe.width,h:pe.height},offset:ye},{x:we,y:_e}=(0,Dh.Dl)(Ae,pe.left);P=_e,w=we-F/2}if(t.forEach(ee=>{const{hotAttr:{w:pe,h:ye}}=ee;ee.hotAttr.x=w+pe/2+50,w=ee.hotAttr.x+pe/2,ee.hotAttr.y=P-ye/2}),!n)return;const X=t.map(ee=>ee.key);sdkStore.updateHotItemBatch(t),(s=MB)==null||(s=s.__store__)==null||s.dispatch({type:"entry:rebuild:screen-widget-tree"}),MB.action("entry:select:items",{cids:X}),(c=MB)==null||c.action("entry:design:zoom:selection")};var m4=e(96851),Hy=e(14495),Ky=e(20154),R5=e(73262);const GT=t=>{let{prefix:n="",hotAttr:s,sup:c,sub:d=[]}=t;return{key:createKey(n),hotAttr:s,sup:c,sub:d}},J1=t=>{const n=[J.x.WSelectionControlRadio,J.x.WSelectionControlCheckbox].includes(t)?J.x.WSelectionControl:t;try{const{selectedTrees:c}=(0,Eu.Ub)();let d=(0,Ml.n3)(c);if(c.length===0){var s;const w=(0,un.dP)(),P=(s=(0,S.Ur)(w))==null?void 0:s.cid;return P&&(d=sdkStore.findAllTypeUnder(P,n).filter(F=>!(0,Na.OO)(F.key))),d.map(F=>np()(F))}else{const w=new Map;return d.forEach(P=>{sdkStore.walkHotItemSubtree(P.cid,F=>{!(0,Na.OO)(F.key)&&F.hotAttr.type===n&&w.set(F.key,F)})}),Array.from(w.values()).map(P=>np()(P))}}catch(c){return console.error("getCurrentSelectWidgets error: ",c),[]}},g4=()=>{try{const{selectedTrees:n}=(0,Eu.Ub)(),s=(0,Ml.n3)(n);if(n.length===0){var t;const c=(0,un.dP)(),d=(t=(0,S.Ur)(c))==null?void 0:t.cid,w=[];return(0,Ws.of)(flatStore.getFlatTree(),d,P=>{w.push(sdkStore.getHotItem(P.key))}),w.filter(P=>!(0,Na.OO)(P.key)&&P.hotAttr.type!==J.x.RbPage&&P.hotAttr.type!==J.x.WWrap).map(P=>np()(P))}else{const c=new Map;return s.forEach(d=>{sdkStore.walkHotItemSubtree(d.cid,w=>{!(0,Na.OO)(w.key)&&w.hotAttr.type!==J.x.WWrap&&c.set(w.key,w)})}),Array.from(c.values()).map(d=>np()(d))}}catch(n){return console.error("getCurrentSelectWidgets error: ",n),[]}},Gy={hidden:"1",vertical:"3",horizontal:"4",autofit:"2"},f4=(t,n)=>{const s=(0,un.dP)(),c=Pa();try{var d;sdkStore.combineMergeMark("V8CmdCreateWBasket-insert-widget");const{sceData:F}=(0,R5.y)(),X=F[t],{data:ee,meta:{type:pe}}=X;if(!(0,Xo._c)({type:pe})||!s||!c)return;const{count:ye,"scroll-bar-type":Ae}=n||{},we=((d=(0,S.Ur)(s))==null?void 0:d.cid)||"",_e=(0,S.X_)(s),Fe=(0,S.$S)(s),Ye=(0,S.ER)(s),He=(0,ce.p$)(s),tt={scale:_e/100,size:{w:Fe.width,h:Fe.height},offset:Ye},It=(0,Dh.Dl)(tt,Fe.left),Nt=(0,m4.nS)({isTear:pe==="wTear",world:It,scale:_e,newSelection:He,currentPageKey:we,isCtrlDown:!1})||"";let Lt=[];for(let _o=0;_o<(Number(ye)||1);_o++){var w;let co=(0,Dh.dk)(He,sdkStore)||"";if(((w=sdkStore.getHotItem(co))==null?void 0:w.hotAttr.type)!=="wWrap"){var P;co=((P=sdkStore.getHotItem(Nt))==null?void 0:P.hotAttr.type)==="rResCanvas"?Nt:we}const yn=sdkStore.loadSubtree(ee,co,It.x,It.y);Lt=Lt.concat(yn),(0,Dh.OV)(Lt,co),(0,No.Yx)(Lt,co,sdkStore)}const Xt=Lt.map(_o=>sdkStore.getHotItem(_o));Xt.forEach(_o=>{if(!_o)return;const co=h4(n),yn=u4(n);_o.hotAttr={..._o.hotAttr,...co,...yn},Ae&&Gy[Ae]&&(_o.hotAttr.scroll=Gy[Ae])}),gg(Xt),Xt&&Xt.length&&sdkStore.updateHotItemBatch(Xt),c({type:"reducer:flag:set:is-dragging-item",payload:{isDraggingItem:!1}}),c({type:"ST:update",payload:{isLeftDown:!0}}),c({type:"set:alignment",payload:{alignment:{}}}),c({type:"set:sameSize",payload:{sameSize:{}}}),c({type:"set:distributed",payload:{distributed:{}}}),c({type:"elbow:update",payload:{isDraggingElbow:!1}}),c({type:"entry:rebuild:screen-widget-tree"}),c({type:"entry:refresh:link-list"}),c({type:"entry:select:items",payload:{cids:Lt}}),c({type:"entry:expend:groupOrCanvasOrBasket",payload:{cids:Lt}}),c({type:"entry:publish:create:items:success",payload:{newKeys:Lt}})}catch(F){console.error("V8CmdRegExecCWBasket: error:",F)}finally{sdkStore.combineMerge("V8CmdCreateWBasket-insert-widget")}},j5=t=>{const n=Pa();if(!n)return;const s=(0,un.dP)(),c=(0,S.Ur)(s),d=(0,ya.F6)((0,S.wq)(s)),w=t,P=(0,Q1.gu)({type:w,screen:c,attrs:{width:0,height:0}});if(d&&w===d){n({type:"set:quick-create-widget",payload:{widget:null}});return}n({type:"set:quick-create-widget",payload:{widget:P,quickCreateWidgetFrom:Hy.Hq.ToolBar}}),w===J.x.WElbow?n({type:"elbow:update",payload:{isDraggingElbow:!0}}):w===J.x.WVector&&(n({type:"update:screenContainer:state",payload:{addVectorSource:Ky.dZ.Toolbar}}),MB.commonGuideHelper.checkGuideToBeShown(Ha.c.GUIDE_VECTOR_TASK_ENDING_EDITING)&&(MB.commonGuideHelper.markGuideAsRead(Ha.c.GUIDE_VECTOR_TASK_ENDING_EDITING),MB.commonGuideHelper.closeGuide(Ha.c.GUIDE_VECTOR_TASK_ENDING_EDITING)),MB.commonGuideHelper.tryToShowGuide(Ha.c.GUIDE_VECTOR_TASK_QUICK_CREATE)),n(R.GO.toggleHandMode(!1)),n({type:"elbow:clear"}),n({type:"entry:comment:disabled",payload:{noWigglingCommentCid:!0}}),J.Q.ST_MODE_WIDGET_NAMES.includes(w)?(n({type:"entry:ST:STMode:enable"}),n({type:"toolbar:update:state",payload:{isShowSticky:!0}})):n({type:"entry:ST:STMode:disable"})},y4={text:J.x.WRichText,rectangle:J.x.WRect,circle:J.x.WOval,page:J.x.Canvas,line:J.x.WLine,button:J.x.WButton,arrow:J.x.WArrow,polygon:J.x.WPolygon,star:J.x.WStar,triangle:J.x.WTriangle,carousel:J.x.WCarousel,web_page_component:J.x.WWebpage,video_component:J.x.WVideo,audio_component:J.x.WAudio,qr_code:J.x.WQRCode,map_component:J.x.WMapView,chat_bubble:J.x.WMTooltip,link_area:J.x.WLR,placeholders:J.x.WPlaceholder,comments:J.x.WSticky,bullet_comments:J.x.WTear,tables:J.x.WTable,charts:J.x.WChart,icons:J.x.WIcon,status_bars:J.x.WIphoneXSB,"multi-line_input_components":J.x.WMTextArea,"single-line_input_components":J.x.WMTextInput,"drop-down_selectors":J.x.WMSelect,file_selection_components:J.x.WMFileInput,radio_selection_components:J.x.WSelectionControlRadio,check_components:J.x.WSelectionControlCheckbox,sliders:J.x.WSlider,numbers_stepper:J.x.WDigitalStepper,navigation_menu:J.x.WNavigationMenu,vertical_menu:J.x.WNavigationMenuV,horizontal_menu:J.x.WNavigationMenuH,navigation_bar:J.x.WMobileTabBars,segmenter:J.x.WSegmentedControl,accordion:J.x.WCollapse,tab:J.x.WTabs,paginator:J.x.WPaginationMobile,image:J.x.WImage,connection_line:J.x.WElbow,pen:J.x.WVector},YT=t=>t>1?t/100:t;var O5=e(80504);const F5={left:"left",right:"right",top:"top",down:"bottom"},U5=()=>{const t=Fc.getInstance();t.register("C-"+yo.x.WCarousel,ol),t.register("C-"+yo.x.WWebpage,ol),t.register("C-"+yo.x.WVideo,ol),t.register("C-"+yo.x.WAudio,ol),t.register("C-"+yo.x.WQRCode,ol),t.register("C-"+yo.x.WMapView,ol),t.register("C-"+yo.x.WMTooltip,ol)},fg={"column-chart":{type:"horizontal_bar_chart",i18Key:"horizontal_bar_chart"},"bar-chart":{type:"bar_chart",i18Key:"bar_chart"},"line-chart":{type:"line_chart",i18Key:"line_chart"},"area-chart":{type:"line_area_chart",i18Key:"line_area_chart"},"combo-chart":{type:"mixed_bar_line_chart",i18Key:"mixed_bar_line_chart"},"pie-chart":{type:"pie_chart",i18Key:"pie_chart"},"radar-chart":{type:"radar_chart",i18Key:"radar_chart"},"donut-chart":{type:"ring_chart",i18Key:"ring_chart"}},x2={classic:0,retro:1,fresh:2,cold:3,warm:4,gray:5},z5=(t,n)=>{const{count:s,"chart-type":c,"grid-line-color":d,"grid-line-type":w,"color-theme":P}=n||{},F=[],X=MB.getCurrentScreen(),ee=X==null?void 0:X.cid;let pe=(0,p4._)(ee);for(let we=0;we<(Number(s)||1);we++){var ye,Ae;let _e=(0,Q1.iD)({type:yo.x.WBarChart,screen:X,attrs:{name:I18N.w[((ye=fg[c])==null?void 0:ye.i18Key)||"bar_chart"]}});c&&(_e.chartConfig.chartType=((Ae=fg[c])==null?void 0:Ae.type)||"bar_chart"),P&&x2[P]&&(_e.chartConfig.chartTheme=x2[P]),w&&(_e.chartConfig.grid.bdrStyle=y2(w)),d&&(_e.chartConfig.grid.bdrColor=Oa(d)),pe++,_e.zIndex=pe;const Fe=h4(n),Ye=u4(n);_e={..._e,...Fe,...Ye};const He=Ma({hotAttr:_e,sup:ee});F.push(He)}gg(F)},W5=()=>{Fc.getInstance().register("CreateChart",z5)};var yg=e(67305),xg=e(40829),dn=function(t){return t.sizeAttr="sizeAttr",t.textAttrRichTextV1="textAttrRichTextV1",t.textAttrRichTextV0="textAttrRichTextV0",t.exteriorAttr="exteriorAttr",t.borderAttr="borderAttr",t.textV1BlockAttr="textV1BlockAttr",t.arrowAttrs="arrowAttrs",t.textAutoSize="textAutoSize",t.tableAttr="tableAttr",t.stickyAttr="stickyAttr",t.selectionControlColors="selectionControlColors",t.sliderAttrs="sliderAttrs",t.digitalStepperAttrs="digitalStepperAttrs",t.carouselAttrs="carouselAttrs",t.webpageUrlAttrs="webpageUrlAttrs",t.videoAttrs="videoAttrs",t.audioAttrs="audioAttrs",t.qrCodeAttrs="qrCodeAttrs",t.tooltipAttrs="tooltipAttrs",t.tabBarAttrs="tabBarAttrs",t.segmentedControlAttrs="segmentedControlAttrs",t.collapseAttrs="collapseAttrs",t.tabAttrs="tabAttrs",t.pageMobile="pageMobile",t.pageWeb="pageWeb",t.polygonAttrs="polygonAttrs",t.starAttrs="starAttrs",t.editNewBlocks="editNewBlocks",t.editTableAttrs="editTableAttrs",t.editChartAttrs="editChartAttrs",t.editElbowAttrs="editElbowAttrs",t}(dn||{});const Yy=()=>({[dn.sizeAttr]:(t,n)=>{const s=h4(t);n.type===J.x.WArrow&&delete s.h,n.type===J.x.WLine&&(s.h=1),Object.assign(n,s)},[dn.textAttrRichTextV1]:(t,n)=>{const s=Vy(t,n.type);n.richTextV1=Object.assign(n.richTextV1,s)},[dn.textAttrRichTextV0]:(t,n)=>{const s=Vy(t,n.type),{"text-content":c}=t||{};n.textV0=Object.assign(n.textV0,s),c&&(n.textV0.text=c)},[dn.exteriorAttr]:(t,n)=>{const s=u4(t);Object.assign(n,s)},[dn.borderAttr]:(t,n)=>{let s=D5(t);n.type===J.x.WImage&&(s={...s,bdrIsVisible:!0}),n.border={...n.border,...s}},[dn.textV1BlockAttr]:(t,n)=>{n.textV1.blocks=L5(t)},[dn.textAutoSize]:(t,n)=>{const{width:s,height:c,"text-content":d}=t||{};(!s||!c)&&d&&(0,O5.PQ)(n)},[dn.arrowAttrs]:(t,n)=>{const{"arrow-color":s}=t||{};Gr(s)&&(n.arrow.arrowStroke.bdrColor=Gr(s))},[dn.tableAttr]:(t,n)=>{const{row:s,column:c,"border-color":d,"horizontal-line-color":w,"vertical-line-color":P}=t||{};Number(s)&&(n.tableConfig.rowCount=Number(s)),Number(c)&&(n.tableConfig.colCount=Number(c));const F=n.tableConfig.rowCount,X=n.tableConfig.colCount,ee={columns:Array(Number(X)).fill({type:"text",width:n.w/X}),rows:Array(F).fill({height:n.h/F}),cellStyles:Array(F).fill(Array(X).fill("")),mergeCells:{},data:Array(F).fill(Array(X).fill("")),links:Array(F).fill(Array(X).fill(""))};n.tableData=ee,n.tableConfig={...n.tableConfig,...(0,Bh.U3)({height:n.h,width:n.w,columns:ee.columns,rows:ee.rows})},Gr(d)&&(n.tableConfig.outerBorder.bdrColor=Gr(d)),Gr(w)&&(n.tableConfig.innerBorderH.bdrColor=Gr(w)),Gr(P)&&(n.tableConfig.innerBorderV.bdrColor=Gr(P))},[dn.stickyAttr]:(t,n)=>{const{"note-content":s}=t||{};s&&(n.textV1.blocks=G1(s||""))},[dn.selectionControlColors]:(t,n)=>{const{"default-option-button-color":s,"default-option-text-color":c,"active-option-button-color":d,"active-option-text-color":w,"font-size":P}=t||{};if(Gr(s)&&(n.selectionControl.borderColor=Gr(s)),Gr(c)&&(n.selectionControl.textColor=Gr(c)),Gr(d)&&(n.selectionControl.checkedBorderColor=Gr(d)),Gr(w)&&(n.selectionControl.checkedTextColor=Gr(w)),Number(P)){const{fontSize:F,gap:X}=n.selectionControl,{w:ee,h:pe}=n;if(Number(P)===F)return;const ye=Number(P)/F,Ae=Math.round(X*ye),we=Math.round(ee*ye),_e=Math.round(pe*ye);n.w=we,n.h=_e,n.selectionControl.fontSize=Number(P),n.selectionControl.gap=Ae}},[dn.sliderAttrs]:(t,n)=>{const{thickness:s,radius:c,"bar-fill-color":d,"bar-process-color":w,"slider-fill-color":P,"slider-stroke-color":F,"process-position":X}=t||{};Gr(d)&&(n.slider.trackBackgroundColor=Gr(d)),Gr(w)&&(n.slider.trackForegroundColor=Gr(w)),Gr(P)&&(n.slider.thumbBackgroundColor=Gr(P)),Gr(F)&&(n.slider.thumbBorder.bdrColor=Gr(F)),Number(c)&&(n.slider.trackBorderRadius=Number(c)),X&&(n.slider.thumbPosition=Number(X)),Number(s)&&(n.slider.trackSize=Number(s))},[dn.digitalStepperAttrs]:(t,n)=>{const{"font-color":s,"font-size":c,range_end:d,range_start:w}=t||{};w&&(n.digitalStepper.min=Number(w)),d&&(n.digitalStepper.max=Number(d)),n.digitalStepper.min>1&&(n.digitalStepper.value=n.digitalStepper.min+1),s&&(n.digitalStepper.textColor=Gr(s)),c&&(n.digitalStepper.fontSize=Number(c))},[dn.carouselAttrs]:(t,n)=>{const{"auto-play":s,"pointer-default-color":c,"pointer-active-color":d,interval:w,direction:P}=t||{};let F=s;typeof s=="string"&&(F=s==="true"),Gr(c)&&(n.carousel.pointerBg=Gr(c)),Gr(d)&&(n.carousel.pointerFg=Gr(d)),Object.keys(t||{}).includes("auto-play")&&(n.carousel.autoPlay=F),w&&(n.carousel.interval=Number(w)),P&&(n.carousel.vertical=P==="vertical")},[dn.webpageUrlAttrs]:(t,n)=>{const{url:s}=t||{};s&&(n.webpage.url=s)},[dn.videoAttrs]:(t,n)=>{const{"video-url":s,"autoplay-switcher":c,"loop-switcher":d,"mute-switcher":w,"hide-control-switcher":P}=t||{};s&&(n.video.videoSrc=s),c&&(n.video.isAutoplay=c==="on"),d&&(n.video.isLoop=d==="on"),w&&(n.video.isMuted=w==="on"),P&&(n.video.isHideControls=P==="on")},[dn.audioAttrs]:(t,n)=>{const{"audio-url":s,"autoplay-switcher":c,"loop-switcher":d,"across-screens-switcher":w,"hide-control-switcher":P}=t||{};s&&(n.audio.audioSrc=s),c&&(n.audio.isAutoplay=c==="on"),d&&(n.audio.isLoop=d==="on"),w&&(n.audio.isKeepAlive=w==="on"),P&&(n.audio.isHidden=P==="on")},[dn.qrCodeAttrs]:(t,n)=>{const{"qrcode-url":s,"background-color":c,"foreground-color":d}=t||{};s&&(n.qrCode.content=s),Gr(d)&&(n.qrCode.foregroundColor=Gr(d)),Gr(c)&&(n.qrCode.backgroundColor=Gr(c))},[dn.tooltipAttrs]:(t,n)=>{const{"placement-direction":s}=t||{};s&&(n.tooltip.placement=F5[s]||"left")},[dn.tabBarAttrs]:(t,n)=>{const{"icon-color":s,"font-color":c,"font-size":d}=t||{};s&&Oa(s)&&(n.mobileTabBars.iconColor=Oa(s)),c&&Oa(c)&&(n.mobileTabBars.textColor=Oa(c)),Number(d)&&(n.mobileTabBars.fontSize=Number(d))},[dn.segmentedControlAttrs]:(t,n)=>{const{"fill-color":s,"font-size":c,"font-color":d}=t||{};s&&Oa(s)&&(n.segmentedControl.backgroundColor=Oa(s)),Number(c)&&(n.segmentedControl.fontSize=Number(c)),Number(c)&&(n.segmentedControl.checkedFontSize=Number(c)),d&&Oa(d)&&(n.segmentedControl.textColor=Oa(d))},[dn.collapseAttrs]:(t,n)=>{const{"font-color":s,"font-size":c}=t||{};Number(c)&&(n.collapse.contentTextSize=Number(c)),Number(c)&&(n.collapse.titleTextSize=Number(c)),s&&Oa(s)&&(n.collapse.contentTextColor=Oa(s)),s&&Oa(s)&&(n.collapse.titleTextColor=Oa(s))},[dn.tabAttrs]:(t,n)=>{const{"font-color":s,"font-size":c}=t||{};Number(c)&&(n.tabs.fontSize=Number(c)),Number(c)&&(n.tabs.checkedFontSize=Number(c)),s&&Oa(s)&&(n.tabs.textColor=Oa(s))},[dn.pageMobile]:(t,n)=>{const{"font-color":s,"font-size":c}=t||{};Number(c)&&(n.paginationMobile.textSize=Number(c)),Number(c)&&(n.paginationMobile.checkedTextSize=Number(c)),s&&Oa(s)&&(n.paginationMobile.textColor=Oa(s))},[dn.pageWeb]:(t,n)=>{const{"font-color":s,"font-size":c}=t||{};Number(c)&&(n.paginationWeb.textSize=Number(c)),Number(c)&&(n.paginationWeb.checkedTextSize=Number(c)),s&&Oa(s)&&(n.paginationWeb.textColor=Oa(s))},[dn.polygonAttrs]:(t,n)=>{const{sides:s,radius:c}=t||{},d={};Number(c)&&(d.cornerRadius=Number(c)),Number(s)&&(d.sideNum=Number(s)),n.polygon={...n.polygon,...d}},[dn.starAttrs]:(t,n)=>{const{nodes:s}=t||{};Number(s)&&(n.star={...n.star,sideNum:Number(s)})},[dn.editNewBlocks]:(t,n)=>{const s=B5(n,t);s&&(n.textV1.blocks=s)},[dn.editTableAttrs]:(t,n)=>{const{row:s,column:c,"border-color":d,"horizontal-line-color":w,"vertical-line-color":P}=t||{};if((0,xg.SS)(n)){let F=Number(s)||0,X=Number(c)||0;const ee=n.heightList.length,pe=n.widthList.length;F===0&&(F=ee),X===0&&(X=pe);let ye={...n};if(ee!==F){const Ae=F-ee;Ae>0?ye=(0,yg.bX)(ye,Ae,ee-1):ye=(0,yg.HS)(ye,ee+Ae,Math.abs(Ae)).newWidget}if(pe!==X){const Ae=X-pe;if(Ae>0)ye=(0,yg.Pg)(ye,Ae,pe-1);else{const we=(0,yg.FQ)(ye,pe+Ae,Math.abs(Ae));if(!we)return;ye=we.newWidget}}n={...ye}}else{let F=Number(s)||0,X=Number(c)||0;const ee=n.tableConfig.rowCount,pe=n.tableConfig.colCount;if(Number(F)&&(n.tableConfig.rowCount=Number(F)),Number(X)&&(n.tableConfig.colCount=Number(X)),F===0&&(F=ee),X===0&&(X=pe),ee!==F||pe!==X){let{tableData:{columns:ye,rows:Ae,data:we,links:_e,cellStyles:Fe,mergeCells:Ye}}=n;const He=pe>F&&pe>X;ye=ye.length>X?ye.slice(0,X):ye.concat(Array(X-ye.length).fill({type:"text",width:ye[ye.length-1].width||80})),Ae=Ae.length>F?Ae.slice(0,F):Ae.concat(Array(F-Ae.length).fill({height:Ae[Ae.length-1].height||30})),we=x4({currentDataList:we,rowOrColumns:{currentColumn:X,currentRow:F}}),_e=x4({currentDataList:_e,rowOrColumns:{currentColumn:X,currentRow:F}}),Fe=x4({currentDataList:Fe,rowOrColumns:{currentColumn:X,currentRow:F}});const tt={columns:ye,rows:Ae,cellStyles:Fe,mergeCells:He?{}:Ye,data:we,links:_e},It=tt.rows.reduce((Lt,Xt)=>Lt+Xt.height,0),Nt=tt.columns.reduce((Lt,Xt)=>Lt+Xt.width,0);n.h=It,n.w=Nt,n.tableData=tt,n.tableConfig={...n.tableConfig,...(0,Bh.U3)({height:n.h,width:n.w,columns:tt.columns,rows:tt.rows})}}}Gr(d)&&(n.tableConfig.outerBorder.bdrColor=Gr(d)),Gr(w)&&(n.tableConfig.innerBorderH.bdrColor=Gr(w)),Gr(P)&&(n.tableConfig.innerBorderV.bdrColor=Gr(P))},[dn.editChartAttrs]:(t,n)=>{var s;const{"chart-type":c,"grid-line-color":d,"grid-line-type":w,"color-theme":P}=t||{};c&&(n.chartConfig.chartType=((s=fg[c])==null?void 0:s.type)||"bar_chart"),P&&x2[P]&&(n.chartConfig.chartTheme=x2[P]),w&&(n.chartConfig.grid.bdrStyle=y2(w)),d&&(n.chartConfig.grid.bdrColor=Oa(d))},[dn.editElbowAttrs]:(t,n)=>{const{"line-color":s}=t||{};Gr(s)&&(n.elbow.arrowStroke.bdrColor=Gr(s))}}),x4=t=>{let{currentDataList:n,rowOrColumns:{currentRow:s,currentColumn:c}}=t;return c===0&&(c=n[0].length),s===0&&(s=n.length),s<n.length?c<n[0].length?n.slice(0,s).map(d=>d.slice(0,c)):n.slice(0,s).map(d=>d.concat(Array(c-n[0].length).fill(""))):c<n[0].length?n.concat(Array(s-n.length).fill(Array(c).fill(""))).map(d=>d.slice(0,c)):n.concat(Array(s-n.length).fill(Array(c).fill(""))).map(d=>d.concat(Array(c-n[0].length).fill("")))},V5=()=>({[yo.x.WRect]:{name:I18N.w.wRect,attrs:[dn.textAttrRichTextV1,dn.sizeAttr,dn.exteriorAttr,dn.borderAttr,dn.textV1BlockAttr]},[yo.x.WOval]:{name:I18N.w.wOval,attrs:[dn.textAttrRichTextV1,dn.sizeAttr,dn.exteriorAttr,dn.borderAttr,dn.textV1BlockAttr]},[yo.x.WRichText]:{name:I18N.w.wRichText,attrs:[dn.textAttrRichTextV1,dn.sizeAttr,dn.exteriorAttr,dn.textV1BlockAttr,dn.textAutoSize]},[yo.x.WButton]:{name:I18N.w.wButton,attrs:[dn.textAttrRichTextV0,dn.sizeAttr,dn.exteriorAttr,dn.borderAttr]},[yo.x.WArrow]:{name:I18N.w.wArrow,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.borderAttr,dn.arrowAttrs]},[yo.x.WLine]:{name:I18N.w.wLine,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.borderAttr]},[yo.x.WPlaceholder]:{name:I18N.translation.wPlaceholder,attrs:[dn.sizeAttr,dn.textAttrRichTextV0,dn.exteriorAttr,dn.borderAttr]},[yo.x.WImage]:{name:I18N.w.wImage,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.borderAttr]},[yo.x.WTable]:{name:I18N.w.wTable,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.tableAttr]},[yo.x.WSticky]:{name:I18N.w.wSticky,attrs:[dn.stickyAttr]},[yo.x.WTear]:{name:I18N.w.wTear,attrs:[dn.stickyAttr]},[yo.x.WIphoneXSB]:{name:I18N.w.wIphoneXSB,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.textAttrRichTextV0]},[yo.x.WLR]:{name:I18N.w.wLr,attrs:[dn.sizeAttr]},[yo.x.WMTextInput]:{name:I18N.w.wMTextInput,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.borderAttr,dn.textAttrRichTextV0]},[yo.x.WMTextArea]:{name:I18N.w.wMTextarea,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.borderAttr,dn.textAttrRichTextV0]},[yo.x.WMSelect]:{name:I18N.w.wMSelect,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.borderAttr,dn.textAttrRichTextV0]},[yo.x.WMFileInput]:{name:I18N.w.wMFileInput,attrs:[dn.sizeAttr,dn.exteriorAttr]},[yo.x.WSelectionControlRadio]:{name:I18N.w.selection_control_radio,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.selectionControlColors]},[yo.x.WSelectionControlCheckbox]:{name:I18N.w.selection_control_radio,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.selectionControlColors]},[yo.x.WAndroidSwitch]:{name:I18N.w.android_switch,attrs:[dn.sizeAttr,dn.exteriorAttr]},[yo.x.WIOSSwitch]:{name:I18N.w.ios_switch,attrs:[dn.sizeAttr,dn.exteriorAttr]},[yo.x.WSlider]:{name:I18N.w.slider,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.sliderAttrs]},[yo.x.WDigitalStepper]:{name:I18N.w.digital_stepper,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.digitalStepperAttrs]},[yo.x.WCarousel]:{name:I18N.w.wCarousel,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.carouselAttrs]},[yo.x.WWebpage]:{name:I18N.w.wWebpage,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.webpageUrlAttrs]},[yo.x.WVideo]:{name:I18N.w.wVideo,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.videoAttrs]},[yo.x.WAudio]:{name:I18N.w.wAudio,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.audioAttrs]},[yo.x.WQRCode]:{name:I18N.w.wQRCode,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.qrCodeAttrs]},[yo.x.WMapView]:{name:I18N.w.wMapView,attrs:[dn.sizeAttr,dn.exteriorAttr]},[yo.x.WMTooltip]:{name:I18N.w.wMTooltip,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.borderAttr,dn.textAttrRichTextV0,dn.tooltipAttrs]},[yo.x.WDropMenu]:{name:I18N.w.dropmenu,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.borderAttr,dn.textAttrRichTextV0]},[yo.x.WNavigationMenu]:{name:I18N.w.navigation_menu,attrs:[dn.sizeAttr,dn.exteriorAttr]},[yo.x.WNavigationMenuV]:{name:I18N.w.navigation_menu_v,attrs:[dn.exteriorAttr]},[yo.x.WNavigationMenuH]:{name:I18N.w.navigation_menu_h,attrs:[dn.exteriorAttr]},[yo.x.WMobileTabBars]:{name:I18N.w.mobile_tab_bars,attrs:[dn.exteriorAttr,dn.borderAttr,dn.tabBarAttrs]},[yo.x.WSegmentedControl]:{name:I18N.w.segmented_control,attrs:[dn.borderAttr,dn.segmentedControlAttrs]},[yo.x.WTabs]:{name:I18N.w.wTabs,attrs:[dn.exteriorAttr,dn.tabAttrs]},[yo.x.WCollapse]:{name:I18N.w.collapse,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.borderAttr,dn.collapseAttrs]},[yo.x.WPaginationMobile]:{name:I18N.w.wPaginationMobile,attrs:[dn.exteriorAttr,dn.borderAttr,dn.pageMobile]},[yo.x.WPaginationWeb]:{name:I18N.w.wPaginationWeb,attrs:[dn.exteriorAttr,dn.borderAttr,dn.pageWeb]},[yo.x.WPolygon]:{name:I18N.w.wPolygon,attrs:[dn.textAttrRichTextV1,dn.sizeAttr,dn.exteriorAttr,dn.textV1BlockAttr,dn.borderAttr,dn.polygonAttrs]},[yo.x.WTriangle]:{name:I18N.w.wTriangle,attrs:[dn.textAttrRichTextV1,dn.sizeAttr,dn.exteriorAttr,dn.textV1BlockAttr,dn.borderAttr]},[yo.x.WStar]:{name:I18N.w.wStar,attrs:[dn.textAttrRichTextV1,dn.sizeAttr,dn.exteriorAttr,dn.textV1BlockAttr,dn.borderAttr,dn.starAttrs]}}),ol=(t,n)=>{const s=t.replace("C-",""),{count:c}=n||{};if(s===yo.x.WRichText&&(!n||!n["text-content"])&&(n={...n,"text-content":I18N.Widget.wRichTextText}),s===yo.x.WTable){const{row:ye,column:Ae}=n||{};Number(ye)&&!n.height&&(n.height=30*Number(ye)),Number(Ae)&&!n.width&&(n.width=80*Number(Ae))}if(s===yo.x.WPolygon){const{sides:ye}=n||{};if(ye<3){MB.notice({text:"\u591A\u8FB9\u5F62\u8FB9\u6570\u9700\u8981\u5927\u4E8E\u7B49\u4E8E3",type:"warning"});return}}const d=[],w=MB.getCurrentScreen(),P=w==null?void 0:w.cid;let F=(0,p4._)(P);const X=V5()[s];if(!X)return;const{attrs:ee,name:pe}=X;for(let ye=0;ye<(Number(c)||1);ye++){const Ae=(0,Q1.iD)({type:s,screen:w,attrs:{name:pe}});F++,Ae.zIndex=F,ee.forEach(_e=>{Yy()[_e](n,Ae)});const we=Ma({hotAttr:Ae,sup:P});d.push(we)}gg(d)},H5=(t,n)=>{f4("wbTOkTYpTtTUeNK4eU3iYQ",n)},K5=(t,n)=>{f4("wbTOkWBWTtTUelSImKcV05",n)},G5=(t,n)=>{const s=Pa();s&&(s({type:"entry:comment:toggle"}),s(R.GO.toggleInspectMode(!1)),s(R.GO.toggleHandMode(!1)),s(R.GO.select([])),s({type:"elbow:update",payload:{isInElbowMode:!1}}),s({type:"entry:ST:STMode:disable"}))},Y5=(t,n)=>{const s=Pa();s&&(s({type:"entry:elbow:isInElbowMode:toggle"}),s({type:"entry:comment:disabled",payload:{noWigglingCommentCid:!0}}),s({type:"set:quick-create-widget",payload:{widget:null,quickCreateWidgetFrom:Hy.Hq.ToolBar}}),s(R.GO.toggleInspectMode(!1)),s(R.GO.toggleHandMode(!1)))},Z5=(t,n)=>{j5(yo.x.WVector)},X5=()=>{const t=Fc.getInstance();t.register("C-"+yo.x.WRect,ol),t.register("C-"+yo.x.WOval,ol),t.register("C-"+yo.x.WRichText,ol),t.register("C-"+yo.x.WButton,ol),t.register("C-"+yo.x.WArrow,ol),t.register("C-"+yo.x.WLine,ol),t.register("C-"+yo.x.WPlaceholder,ol),t.register("C-"+yo.x.WTable,ol),t.register("C-"+yo.x.WSticky,ol),t.register("C-"+yo.x.WTear,ol),t.register("C-"+yo.x.WIphoneXSB,ol),t.register("C-"+yo.x.WLR,ol),t.register("C-"+yo.x.WImage,ol),t.register("CElbow",Y5),t.register("CVector",Z5),t.register("CDynCpts",H5),t.register("CComment",G5),t.register("CScrollPanel",K5)},Q5=()=>{const t=Fc.getInstance();t.register("C-"+yo.x.WMTextInput,ol),t.register("C-"+yo.x.WMTextArea,ol),t.register("C-"+yo.x.WMSelect,ol),t.register("C-"+yo.x.WMFileInput,ol),t.register("C-"+yo.x.WSelectionControlRadio,ol),t.register("C-"+yo.x.WSelectionControlCheckbox,ol),t.register("C-"+yo.x.WAndroidSwitch,ol),t.register("C-"+yo.x.WIOSSwitch,ol),t.register("C-"+yo.x.WSlider,ol),t.register("C-"+yo.x.WDigitalStepper,ol)},J5=(t,n)=>{f4("wbTOksOVTtTVK7dHXfAC4d",n)},$5=()=>{const t=Fc.getInstance();t.register("C-"+yo.x.WDropMenu,ol),t.register("C-"+yo.x.WNavigationMenu,ol),t.register("C-"+yo.x.WNavigationMenuV,ol),t.register("C-"+yo.x.WNavigationMenuH,ol),t.register("C-"+yo.x.WMobileTabBars,ol),t.register("C-"+yo.x.WSegmentedControl,ol),t.register("C-"+yo.x.WCollapse,ol),t.register("C-"+yo.x.WTabs,ol),t.register("C-"+yo.x.WPaginationMobile,ol),t.register("C-"+yo.x.WPaginationWeb,ol),t.register("CDynamicDropMenu",J5)},q5=()=>{const t=Fc.getInstance();t.register("C-"+yo.x.WPolygon,ol),t.register("C-"+yo.x.WTriangle,ol),t.register("C-"+yo.x.WStar,ol)};var $1=e(47442);const Xr=(t,n)=>{const{width:s,height:c,opacity:d,radius:w,"target-elements-keyword":P,"stroke-weight":F,"stroke-type":X}=t||{};let ee=!0;Number(s)&&ee&&(ee=n.w===Number(s)),Number(c)&&ee&&(ee=n.h===Number(c)),t&&Object.keys(t).includes("opacity")&&ee&&(ee=n.opacity===Wy(d)),Number(w)&&ee&&(ee=n.borderRadius===Number(w)),P&&ee&&(ee=(n.display_name||n.name||"").includes(P));const{bdrStyle:pe,bdrWidth:ye}=(n==null?void 0:n.border)||{};return F&&ee&&(ee=ye===Number(F)),X&&ee&&(ee=pe===y2(X)),ee},q1=(t,n)=>{const{"font-size":s,"font-family":c,"font-format":d,"text-align":w}=t||{},{italic:P,bold:F,underline:X,strikethrough:ee}=sp(d),{fontFamily:pe,fontSize:ye}=n;let Ae=!0;return s&&(Ae=ye===s),c&&Ae&&(Ae=pe===c),P&&Ae&&(Ae=n.italic===P),F&&Ae&&(Ae=n.bold===F),X&&Ae&&(Ae=n.underline===X),ee&&Ae&&(Ae=n.strikethrough===ee),w&&Ae&&(Ae=n.horizontalAlign===w),Ae},eu=(t,n)=>{const{fontSize:s,fontFamily:c,italic:d,underline:w,strikethrough:P,horizontalAlign:F,bold:X}=(0,$1.xH)({baseItem:n}),{"font-size":ee,"font-family":pe,"font-format":ye,"text-align":Ae}=t||{},{italic:we,bold:_e,underline:Fe,strikethrough:Ye}=sp(ye);let He=!0;return ee&&(He=Number(s)===Number(ee)),pe&&He&&(He=c===pe),we&&He&&(He=we===d),_e&&He&&(He=_e===X),Fe&&He&&(He=Fe===w),Ye&&He&&(He=Ye===P),Ae&&He&&(He=F===Ae),He},tu={[J.x.WRichText]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WRichText;return d&&n&&Object.keys(n).length&&(d=Xr(n,c.hotAttr),d&&(d=eu(n,c.hotAttr))),d}),s},[J.x.WRect]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WRect;return d&&n&&Object.keys(n).length&&(d=Xr(n,c.hotAttr),d&&(d=eu(n,c.hotAttr))),d}),s},[J.x.WOval]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WOval;return d&&n&&Object.keys(n).length&&(d=Xr(n,c.hotAttr),d&&(d=eu(n,c.hotAttr))),d}),s},[J.x.WLine]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WLine;return d&&n&&Object.keys(n).length&&(d=Xr(n,c.hotAttr)),d}),s},[J.x.WButton]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WButton;return d&&n&&Object.keys(n).length&&(d=Xr(n,c.hotAttr),d&&(d=q1(n,c.hotAttr.textV0))),d}),s},[J.x.WArrow]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WArrow;return d&&n&&Object.keys(n).length&&(d=Xr(n,c.hotAttr)),d}),s},[J.x.WPolygon]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WPolygon;if(d&&n&&Object.keys(n).length){const{radius:w,sides:P}=n;Number(w)&&(d=c.hotAttr.polygon.cornerRadius===Number(w)),Number(P)&&d&&(d=c.hotAttr.polygon.sideNum===Number(P)),d&&(d=Xr(n,c.hotAttr)),d&&(d=eu(n,c.hotAttr))}return d}),s},[J.x.WStar]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WStar;if(d&&n&&Object.keys(n).length){const{radius:w,nodes:P}=n;Number(w)&&(d=c.hotAttr.polygon.cornerRadius===Number(w)),Number(P)&&d&&(d=c.hotAttr.star.sideNum===Number(P)),delete n.radius,d&&(d=Xr(n,c.hotAttr)),d&&(d=eu(n,c.hotAttr))}return d}),s},[J.x.WTriangle]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WTriangle;return d&&n&&Object.keys(n).length&&(d&&(d=Xr(n,c.hotAttr)),d&&(d=eu(n,c.hotAttr))),d}),s},[J.x.WCarousel]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WCarousel;return d&&n&&Object.keys(n).length&&(d=Xr(n,c.hotAttr)),d}),s},[J.x.WWebpage]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WWebpage;return d&&n&&Object.keys(n).length&&(d=Xr(n,c.hotAttr)),d}),s},[J.x.WVideo]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WVideo;return d&&n&&Object.keys(n).length&&(d=Xr(n,c.hotAttr)),d}),s},[J.x.WAudio]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WAudio;return d&&n&&Object.keys(n).length&&(d=Xr(n,c.hotAttr)),d}),s},[J.x.WQRCode]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WQRCode;return d&&n&&Object.keys(n).length&&(d=Xr(n,c.hotAttr)),d}),s},[J.x.WMapView]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WMapView;return d&&n&&Object.keys(n).length&&(d=Xr(n,c.hotAttr)),d}),s},[J.x.WMTooltip]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WMTooltip;return d&&n&&Object.keys(n).length&&(d&&(d=Xr(n,c.hotAttr)),d&&(d=q1(n,c.hotAttr.textV0))),d}),s},[J.x.WImage]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WImage;return d&&n&&Object.keys(n).length&&(d=Xr(n,c.hotAttr)),d}),s},[J.x.WLR]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WLR;return d&&n&&Object.keys(n).length&&(d=Xr(n,c.hotAttr)),d}),s},[J.x.WPlaceholder]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WPlaceholder;return d&&n&&Object.keys(n).length&&(d&&(d=Xr(n,c.hotAttr)),d&&(d=q1(n,c.hotAttr.textV0))),d}),s},[J.x.WTable]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WTable;if(d&&n&&Object.keys(n).length){const{row:w,column:P}=n;d=Xr(n,c.hotAttr),Number(w)&&d&&(d=c.hotAttr.tableConfig.rowCount===Number(w)),Number(P)&&d&&(d=c.hotAttr.tableConfig.colCount===Number(P))}return d}),s},[J.x.WSticky]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WSticky;return d&&n&&Object.keys(n).length&&(d&&(d=Xr(n,c.hotAttr)),d&&(d=eu(n,c.hotAttr))),d}),s},[J.x.WTear]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WTear;return d&&n&&Object.keys(n).length&&(d&&(d=Xr(n,c.hotAttr)),d&&(d=eu(n,c.hotAttr))),d}),s},[J.x.WIphoneXSB]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WIphoneXSB;return d&&n&&Object.keys(n).length&&(d&&(d=Xr(n,c.hotAttr)),d&&(d=q1(n,c.hotAttr.textV0))),d}),s},[J.x.WMTextInput]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WMTextInput;return d&&n&&Object.keys(n).length&&(d&&(d=Xr(n,c.hotAttr)),d&&(d=q1(n,c.hotAttr.textV0))),d}),s},[J.x.WMTextArea]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WMTextArea;return d&&n&&Object.keys(n).length&&(d&&(d=Xr(n,c.hotAttr)),d&&(d=q1(n,c.hotAttr.textV0))),d}),s},[J.x.WMSelect]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WMSelect;return d&&n&&Object.keys(n).length&&(d&&(d=Xr(n,c.hotAttr)),d&&(d=q1(n,c.hotAttr.textV0))),d}),s},[J.x.WMFileInput]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WMFileInput;return d&&n&&Object.keys(n).length&&(d=Xr(n,c.hotAttr)),d}),s},[J.x.WSelectionControlRadio]:(t,n)=>{let s=[...t];return s=s.filter(c=>{var d;let w=c.hotAttr.type===J.x.WSelectionControl&&((d=c.hotAttr)==null||(d=d.selectionControl)==null?void 0:d.type)!=="checkbox";return w&&n&&Object.keys(n).length&&(w=Xr(n,c.hotAttr)),w}),s},[J.x.WSelectionControlCheckbox]:(t,n)=>{let s=[...t];return s=s.filter(c=>{var d;let w=c.hotAttr.type===J.x.WSelectionControl&&((d=c.hotAttr)==null||(d=d.selectionControl)==null?void 0:d.type)==="checkbox";return w&&n&&Object.keys(n).length&&(w=Xr(n,c.hotAttr)),w}),s},[J.x.WAndroidSwitch]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WAndroidSwitch;return d&&n&&Object.keys(n).length&&(d=Xr(n,c.hotAttr)),d}),s},[J.x.WIOSSwitch]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WIOSSwitch;return d&&n&&Object.keys(n).length&&(d=Xr(n,c.hotAttr)),d}),s},[J.x.WSlider]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WSlider;return d&&n&&Object.keys(n).length&&(d=Xr(n,c.hotAttr)),d}),s},[J.x.WDigitalStepper]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WDigitalStepper;return d&&n&&Object.keys(n).length&&(d=Xr(n,c.hotAttr)),d}),s},[J.x.WDropMenu]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WDropMenu;return d&&n&&Object.keys(n).length&&(d&&(d=Xr(n,c.hotAttr)),d&&(d=q1(n,c.hotAttr.textV0))),d}),s},[J.x.WNavigationMenu]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WNavigationMenu;return d&&n&&Object.keys(n).length&&(d=Xr(n,c.hotAttr)),d}),s},[J.x.WNavigationMenuV]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WNavigationMenuV;return d&&n&&Object.keys(n).length&&(d=Xr(n,c.hotAttr)),d}),s},[J.x.WNavigationMenuH]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WNavigationMenuH;return d&&n&&Object.keys(n).length&&(d=Xr(n,c.hotAttr)),d}),s},[J.x.WMobileTabBars]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WMobileTabBars;return d&&n&&Object.keys(n).length&&(d=Xr(n,c.hotAttr)),d}),s},[J.x.WSegmentedControl]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WSegmentedControl;return d&&n&&Object.keys(n).length&&(d=Xr(n,c.hotAttr)),d}),s},[J.x.WCollapse]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WCollapse;return d&&n&&Object.keys(n).length&&(d=Xr(n,c.hotAttr)),d}),s},[J.x.WTabs]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WTabs;return d&&n&&Object.keys(n).length&&(d=Xr(n,c.hotAttr)),d}),s},[J.x.WPaginationMobile]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WPaginationMobile;return d&&n&&Object.keys(n).length&&(d=Xr(n,c.hotAttr)),d}),s},[J.x.WPaginationWeb]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WPaginationWeb;return d&&n&&Object.keys(n).length&&(d=Xr(n,c.hotAttr)),d}),s},[J.x.WChart]:(t,n)=>{let s=[...t];return s=s.filter(c=>{let d=c.hotAttr.type===J.x.WChart;if(d&&n&&Object.keys(n).length){var w;const{"chart-type":P,"grid-line-color":F,"grid-line-type":X,"color-theme":ee}=n||{},{hotAttr:pe}=c;d=Xr(n,c.hotAttr),P&&d&&(d=pe.chartConfig.chartType===((w=fg[P])==null?void 0:w.type)),ee&&d&&x2[ee]&&(d=pe.chartConfig.chartTheme===x2[ee]),X&&d&&(d=pe.chartConfig.grid.bdrStyle===y2(X)),F&&d&&(d=pe.chartConfig.grid.bdrColor===Oa(F))}return d}),s}},v4=t=>{const n=Pa();if(!n||!t||!t.length){const{selectedTrees:c}=(0,Eu.Ub)();MB.notice({text:c.length>0?"\u5F53\u524D\u9009\u533A\u6CA1\u6709\u5BF9\u5E94\u5143\u7D20":"\u5F53\u524D\u753B\u5E03\u6CA1\u6709\u5BF9\u5E94\u5143\u7D20",type:"warning"});return}const s=t.map(c=>{let{key:d}=c;return d});sdkStore.deleteHotItemBatch(s),n({type:"entry:rebuild:screen-widget-tree"}),n({type:"entry:refresh:link-list"}),MB.notice({text:"\u5BF9\u5E94\u5143\u7D20\u5DF2\u5220\u9664"})},ev=(t,n)=>{},tv=(t,n)=>{const s=J1(yo.x.WChart),c=tu[yo.x.WChart](s,n);v4(c)},ov=(t,n)=>{const{"target-components":s}=n||{},c=y4[s],d=g4();let w=[];c?w=tu[c](d,n):Object.values(tu).forEach(P=>{w=w.concat(P(d,n))}),v4(w)},nl=(t,n)=>{const s=t.replace("D-",""),c=J1(s),d=tu[s](c,n);v4(d)},nv=()=>{const t=Fc.getInstance();t.register("D-"+yo.x.WRichText,nl),t.register("D-"+yo.x.WRect,nl),t.register("D-"+yo.x.WOval,nl),t.register("D-"+yo.x.WLine,nl),t.register("D-"+yo.x.WButton,nl),t.register("D-"+yo.x.WArrow,nl),t.register("D-"+yo.x.WPolygon,nl),t.register("D-"+yo.x.WStar,nl),t.register("D-"+yo.x.WTriangle,nl),t.register("D-"+yo.x.WCarousel,nl),t.register("D-"+yo.x.WWebpage,nl),t.register("D-"+yo.x.WVideo,nl),t.register("D-"+yo.x.WAudio,nl),t.register("D-"+yo.x.WQRCode,nl),t.register("D-"+yo.x.WMapView,nl),t.register("D-"+yo.x.WMTooltip,nl),t.register("D-"+yo.x.WImage,nl),t.register("D-"+yo.x.WLR,nl),t.register("D-"+yo.x.WPlaceholder,nl),t.register("D-"+yo.x.WTable,nl),t.register("D-"+yo.x.WSticky,nl),t.register("D-"+yo.x.WTear,nl),t.register("D-"+yo.x.WIphoneXSB,nl),t.register("D-"+yo.x.WMTextInput,nl),t.register("D-"+yo.x.WMTextArea,nl),t.register("D-"+yo.x.WMSelect,nl),t.register("D-"+yo.x.WMFileInput,nl),t.register("D-"+yo.x.WSelectionControlRadio,nl),t.register("D-"+yo.x.WSelectionControlCheckbox,nl),t.register("D-"+yo.x.WAndroidSwitch,nl),t.register("D-"+yo.x.WIOSSwitch,nl),t.register("D-"+yo.x.WSlider,nl),t.register("D-"+yo.x.WDigitalStepper,nl),t.register("D-"+yo.x.WDropMenu,nl),t.register("D-"+yo.x.WNavigationMenu,nl),t.register("D-"+yo.x.WNavigationMenuV,nl),t.register("D-"+yo.x.WNavigationMenuH,nl),t.register("D-"+yo.x.WMobileTabBars,nl),t.register("D-"+yo.x.WSegmentedControl,nl),t.register("D-"+yo.x.WCollapse,nl),t.register("D-"+yo.x.WTabs,nl),t.register("D-"+yo.x.WPaginationMobile,nl),t.register("D-"+yo.x.WPaginationWeb,nl),t.register("DWBasket",ev),t.register("DWChart",tv),t.register("DWidgets",ov)},b4=t=>{const n=Pa();if(!n||!t||!t.length){const{selectedTrees:c}=(0,Eu.Ub)();MB.notice({text:c.length>0?"\u5F53\u524D\u9009\u533A\u6CA1\u6709\u5BF9\u5E94\u5143\u7D20":"\u5F53\u524D\u753B\u5E03\u6CA1\u6709\u5BF9\u5E94\u5143\u7D20"});return}const s=t.map(c=>{let{key:d}=c;return d});n({type:"entry:select:items",payload:{cids:s}}),n({type:"entry:design:zoom:selection"})},sv=(t,n)=>{const s=J1(yo.x.WChart),c=tu[yo.x.WChart](s,n);b4(c)},iv=(t,n)=>{},av=(t,n)=>{const{"target-components":s}=n||{},c=y4[s],d=g4();let w=[];c?w=tu[c](d,n):Object.values(tu).forEach(P=>{w=w.concat(P(d,n))}),b4(w)},sl=(t,n)=>{const s=t.replace("S-",""),c=J1(s),d=tu[s](c,n);b4(d)},rv=()=>{const t=Fc.getInstance();t.register("S-"+yo.x.WRichText,sl),t.register("S-"+yo.x.WRect,sl),t.register("S-"+yo.x.WOval,sl),t.register("S-"+yo.x.WLine,sl),t.register("S-"+yo.x.WButton,sl),t.register("S-"+yo.x.WArrow,sl),t.register("S-"+yo.x.WPolygon,sl),t.register("S-"+yo.x.WStar,sl),t.register("S-"+yo.x.WTriangle,sl),t.register("S-"+yo.x.WCarousel,sl),t.register("S-"+yo.x.WWebpage,sl),t.register("S-"+yo.x.WVideo,sl),t.register("S-"+yo.x.WAudio,sl),t.register("S-"+yo.x.WQRCode,sl),t.register("S-"+yo.x.WMapView,sl),t.register("S-"+yo.x.WMTooltip,sl),t.register("S-"+yo.x.WImage,sl),t.register("S-"+yo.x.WLR,sl),t.register("S-"+yo.x.WPlaceholder,sl),t.register("S-"+yo.x.WTable,sl),t.register("S-"+yo.x.WSticky,sl),t.register("S-"+yo.x.WTear,sl),t.register("S-"+yo.x.WIphoneXSB,sl),t.register("S-"+yo.x.WMTextInput,sl),t.register("S-"+yo.x.WMTextArea,sl),t.register("S-"+yo.x.WMSelect,sl),t.register("S-"+yo.x.WMFileInput,sl),t.register("S-"+yo.x.WSelectionControlRadio,sl),t.register("S-"+yo.x.WSelectionControlCheckbox,sl),t.register("S-"+yo.x.WAndroidSwitch,sl),t.register("S-"+yo.x.WIOSSwitch,sl),t.register("S-"+yo.x.WSlider,sl),t.register("S-"+yo.x.WDigitalStepper,sl),t.register("S-"+yo.x.WDropMenu,sl),t.register("S-"+yo.x.WNavigationMenu,sl),t.register("S-"+yo.x.WNavigationMenuV,sl),t.register("S-"+yo.x.WNavigationMenuH,sl),t.register("S-"+yo.x.WMobileTabBars,sl),t.register("S-"+yo.x.WSegmentedControl,sl),t.register("S-"+yo.x.WCollapse,sl),t.register("S-"+yo.x.WTabs,sl),t.register("S-"+yo.x.WPaginationMobile,sl),t.register("S-"+yo.x.WPaginationWeb,sl),t.register("SWBasket",iv),t.register("SWChart",sv),t.register("SWidgets",av)},Zy=()=>({[J.x.WRichText]:{name:I18N.w.wRichText,attrs:[dn.sizeAttr,dn.textAttrRichTextV1,dn.exteriorAttr,dn.editNewBlocks]},[J.x.WRect]:{name:I18N.w.wRect,attrs:[dn.textAttrRichTextV1,dn.sizeAttr,dn.exteriorAttr,dn.borderAttr,dn.editNewBlocks]},[J.x.WOval]:{name:I18N.w.wOval,attrs:[dn.textAttrRichTextV1,dn.sizeAttr,dn.exteriorAttr,dn.borderAttr,dn.editNewBlocks]},[J.x.WLine]:{name:I18N.w.wLine,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.borderAttr]},[J.x.WButton]:{name:I18N.w.wButton,attrs:[dn.textAttrRichTextV0,dn.sizeAttr,dn.exteriorAttr,dn.borderAttr]},[J.x.WArrow]:{name:I18N.w.wArrow,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.borderAttr,dn.arrowAttrs]},[J.x.WPolygon]:{name:I18N.w.wPolygon,attrs:[dn.textAttrRichTextV1,dn.sizeAttr,dn.exteriorAttr,dn.editNewBlocks,dn.borderAttr,dn.polygonAttrs]},[J.x.WStar]:{name:I18N.w.wStar,attrs:[dn.textAttrRichTextV1,dn.sizeAttr,dn.exteriorAttr,dn.editNewBlocks,dn.borderAttr,dn.starAttrs]},[J.x.WTriangle]:{name:I18N.w.wTriangle,attrs:[dn.textAttrRichTextV1,dn.sizeAttr,dn.exteriorAttr,dn.editNewBlocks,dn.borderAttr]},[J.x.WCarousel]:{name:I18N.w.wCarousel,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.carouselAttrs]},[J.x.WWebpage]:{name:I18N.w.wWebpage,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.webpageUrlAttrs]},[J.x.WVideo]:{name:I18N.w.wVideo,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.videoAttrs]},[J.x.WAudio]:{name:I18N.w.wAudio,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.audioAttrs]},[J.x.WQRCode]:{name:I18N.w.wQRCode,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.qrCodeAttrs]},[J.x.WMapView]:{name:I18N.w.wMapView,attrs:[dn.sizeAttr,dn.exteriorAttr]},[J.x.WMTooltip]:{name:I18N.w.wMTooltip,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.borderAttr,dn.textAttrRichTextV0,dn.tooltipAttrs]},[J.x.WImage]:{name:I18N.w.wImage,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.borderAttr]},[J.x.WLR]:{name:I18N.w.wLr,attrs:[dn.sizeAttr]},[J.x.WPlaceholder]:{name:I18N.translation.wPlaceholder,attrs:[dn.sizeAttr,dn.textAttrRichTextV0,dn.exteriorAttr,dn.borderAttr]},[J.x.WTable]:{name:I18N.w.wTable,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.editTableAttrs]},[J.x.WChart]:{name:I18N.w.wChart,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.editChartAttrs]},[J.x.WElbow]:{name:I18N.w.wElbow,attrs:[dn.textAttrRichTextV0,dn.exteriorAttr,dn.editElbowAttrs]},[J.x.WPaginationMobile]:{name:I18N.w.wPaginationMobile,attrs:[dn.exteriorAttr,dn.borderAttr,dn.sizeAttr]},[J.x.WPaginationWeb]:{name:I18N.w.wPaginationWeb,attrs:[dn.sizeAttr,dn.borderAttr,dn.exteriorAttr]},[J.x.WTabs]:{name:I18N.w.wTabs,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.tabAttrs]},[J.x.WCollapse]:{name:I18N.w.collapse,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.borderAttr,dn.collapseAttrs]},[J.x.WSegmentedControl]:{name:I18N.w.segmented_control,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.borderAttr,dn.segmentedControlAttrs]},[J.x.WMobileTabBars]:{name:I18N.w.mobile_tab_bars,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.borderAttr,dn.tabBarAttrs]},[J.x.WNavigationMenu]:{name:I18N.w.navigation_menu,attrs:[dn.sizeAttr,dn.exteriorAttr]},[J.x.WNavigationMenuV]:{name:I18N.w.navigation_menu_v,attrs:[dn.sizeAttr,dn.exteriorAttr]},[J.x.WNavigationMenuH]:{name:I18N.w.navigation_menu_h,attrs:[dn.sizeAttr,dn.exteriorAttr]},[J.x.WDropMenu]:{name:I18N.w.dropmenu,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.borderAttr,dn.textAttrRichTextV0]},[J.x.WDigitalStepper]:{name:I18N.w.digital_stepper,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.digitalStepperAttrs]},[J.x.WSlider]:{name:I18N.w.slider,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.sliderAttrs]},[J.x.WIOSSwitch]:{name:I18N.w.ios_switch,attrs:[dn.sizeAttr,dn.exteriorAttr]},[J.x.WAndroidSwitch]:{name:I18N.w.android_switch,attrs:[dn.sizeAttr,dn.exteriorAttr]},[J.x.WSelectionControlRadio]:{name:I18N.w.selection_control_radio,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.selectionControlColors]},[J.x.WSelectionControlCheckbox]:{name:I18N.w.selection_control_radio,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.selectionControlColors]},[J.x.WMFileInput]:{name:I18N.w.wMFileInput,attrs:[dn.sizeAttr,dn.exteriorAttr]},[J.x.WMSelect]:{name:I18N.w.wMSelect,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.borderAttr,dn.textAttrRichTextV0]},[J.x.WMTextArea]:{name:I18N.w.wMTextarea,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.borderAttr,dn.textAttrRichTextV0]},[J.x.WMTextInput]:{name:I18N.w.wMTextInput,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.borderAttr,dn.textAttrRichTextV0]},[J.x.WIphoneXSB]:{name:I18N.w.wIphoneXSB,attrs:[dn.sizeAttr,dn.exteriorAttr,dn.textAttrRichTextV0]},[J.x.WTear]:{name:I18N.w.wTear,attrs:[dn.stickyAttr]},[J.x.WSticky]:{name:I18N.w.wSticky,attrs:[dn.stickyAttr]}}),Xy=t=>{const n=Pa();if(!n||!t||!t.length){const{selectedTrees:s}=(0,Eu.Ub)();MB.notice({text:s.length>0?"\u5F53\u524D\u9009\u533A\u6CA1\u6709\u5BF9\u5E94\u5143\u7D20":"\u5F53\u524D\u753B\u5E03\u6CA1\u6709\u5BF9\u5E94\u5143\u7D20",type:"warning"});return}n({type:"entry:widget:change",payload:{flatChgList:t,shouldReBuildTree:!0,isCombineChange:!0}}),MB.notice({text:"\u7F16\u8F91\u5B8C\u6210"})},lv=(t,n)=>{},cv=(t,n)=>{const{"target-components":s}=n||{},c=y4[s],d=g4();let w=[];c?w=C4(d,c,n):Object.keys(Zy()).forEach(P=>{w=w.concat(C4(d,P,n))}),Xy(w)},Qr=(t,n)=>{const s=t.replace("E-",""),c=J1(s),d=C4(c,t,n);Xy(d)},C4=(t,n,s)=>{const c=n.replace("E-",""),d=Zy()[c];if(!s||!d)return[];const{attrs:w}=d,P=[...t].filter(F=>{if(F.hotAttr.type===yo.x.WSelectionControlRadio){var X;return((X=F.hotAttr)==null||(X=X.selectionControl)==null?void 0:X.type)!=="checkbox"}if(F.hotAttr.type===yo.x.WSelectionControlCheckbox){var ee;return((ee=F.hotAttr)==null||(ee=ee.selectionControl)==null?void 0:ee.type)==="checkbox"}return F.hotAttr.type===c});return P.forEach(F=>{w.forEach(X=>{const{hotAttr:ee}=F;Yy()[X](s,ee)})}),P},dv=()=>{const t=Fc.getInstance();t.register("E-"+yo.x.WRichText,Qr),t.register("E-"+yo.x.WRect,Qr),t.register("E-"+yo.x.WOval,Qr),t.register("E-"+yo.x.WLine,Qr),t.register("E-"+yo.x.WButton,Qr),t.register("E-"+yo.x.WArrow,Qr),t.register("E-"+yo.x.WPolygon,Qr),t.register("E-"+yo.x.WStar,Qr),t.register("E-"+yo.x.WTriangle,Qr),t.register("E-"+yo.x.WCarousel,Qr),t.register("E-"+yo.x.WWebpage,Qr),t.register("E-"+yo.x.WVideo,Qr),t.register("E-"+yo.x.WAudio,Qr),t.register("E-"+yo.x.WQRCode,Qr),t.register("E-"+yo.x.WMapView,Qr),t.register("E-"+yo.x.WMTooltip,Qr),t.register("E-"+yo.x.WImage,Qr),t.register("E-"+yo.x.WLR,Qr),t.register("E-"+yo.x.WPlaceholder,Qr),t.register("E-"+yo.x.WTable,Qr),t.register("E-"+yo.x.WSticky,Qr),t.register("E-"+yo.x.WTear,Qr),t.register("E-"+yo.x.WIphoneXSB,Qr),t.register("E-"+yo.x.WMTextInput,Qr),t.register("E-"+yo.x.WMTextArea,Qr),t.register("E-"+yo.x.WMSelect,Qr),t.register("E-"+yo.x.WMFileInput,Qr),t.register("E-"+yo.x.WSelectionControlRadio,Qr),t.register("E-"+yo.x.WSelectionControlCheckbox,Qr),t.register("E-"+yo.x.WAndroidSwitch,Qr),t.register("E-"+yo.x.WIOSSwitch,Qr),t.register("E-"+yo.x.WSlider,Qr),t.register("E-"+yo.x.WDigitalStepper,Qr),t.register("E-"+yo.x.WDropMenu,Qr),t.register("E-"+yo.x.WNavigationMenu,Qr),t.register("E-"+yo.x.WNavigationMenuV,Qr),t.register("E-"+yo.x.WNavigationMenuH,Qr),t.register("E-"+yo.x.WMobileTabBars,Qr),t.register("E-"+yo.x.WSegmentedControl,Qr),t.register("E-"+yo.x.WCollapse,Qr),t.register("E-"+yo.x.WTabs,Qr),t.register("E-"+yo.x.WPaginationMobile,Qr),t.register("E-"+yo.x.WPaginationWeb,Qr),t.register("E-"+yo.x.WChart,Qr),t.register("EWBasket",lv),t.register("EWidgets",cv)};var z0=e(43859);const v2={iphone:"iphone",android:"android",dashboard:"display_screen",web:"web",pad:"ipad",watch:"apple_watch"},b2=t=>{const n=z0.Am[t][0],s=z0.v2[n];return{width:s.width,height:s.height,deviceName:n}},vg={iphone:()=>b2(v2.iphone),android:()=>b2(v2.android),dashboard:()=>b2(v2.dashboard),web:()=>b2(v2.web),pad:()=>b2(v2.pad),watch:()=>b2(v2.watch)},w4=()=>{const t=(0,un.dP)();return t?(0,ce.Z9)(t).filter(s=>s.type===yo.x.Canvas).length===0?(MB.notice({text:"\u8BF7\u9009\u62E9\u76EE\u6807\u9875\u9762",type:"warning"}),!1):!0:!1},pv=(t,n)=>{if(!Pa()||!(0,Xo._c)({type:yo.x.Canvas,count:(n==null?void 0:n.count)||1}))return;const c=[],d=MB.getCurrentScreen(),w=d==null?void 0:d.cid;let P=(0,p4._)(w);const{count:F,"page-name":X,"background-color":ee,"device-size":pe,"custom-size-height":ye,"custom-size-width":Ae,"page-x":we,"page-y":_e}=n||{},Fe={},Ye=Gr(ee);Ye&&(Fe.fill={fillIsVisible:!0,fill:"solid",solidColor:Ye}),X&&(Fe.name=X);const{hotAttr:{deviceH:He,deviceW:tt,deviceOrientation:It}}=sdkStore.getHotItem(d==null?void 0:d.cid),{width:Nt,height:Lt,deviceName:Xt}=vg[pe]&&vg[pe]()||{},_o=Number(ye)||Number(Lt)||He,co=Number(Ae)||Number(Nt)||tt,yn=It==="landscape"?_o:co,An=It==="landscape"?co:_o;Fe.w=yn,Fe.h=An,Number(we)&&(Fe.x=Number(we)),Number(_e)&&(Fe.y=Number(_e)),Fe.name=X||I18N.w.rResCanvas,Fe.device=Xt||"customize",(Number(we)||Number(_e))&&(Fe.device="customize");for(let In=0;In<(Number(F)||1);In++){P++;let wn=el[yo.x.Canvas]("page");wn.zIndex=P,wn=Object.assign(wn,Fe);const _n=Ma({hotAttr:wn,sup:w});c.push(_n)}gg(c)},hv=(t,n)=>{const s=Pa();if(!n||Object.keys(n).length===0||!s)return;const c=J1(yo.x.Canvas),{"page-name":d,"background-color":w,"device-size":P,"custom-size-height":F,"custom-size-width":X,"page-x":ee,"page-y":pe}=n||{},ye=[...c];ye.forEach(Ae=>{if(Ae.hotAttr.type!==yo.x.Canvas)return null;const{hotAttr:we}=Ae,_e=Gr(w);_e&&(we.fill={fillIsVisible:!0,fill:"solid",solidColor:_e}),d&&(we.name=d);const{width:Fe,height:Ye,deviceName:He}=vg[P]&&vg[P]()||{},tt=Number(X)||Number(Fe),It=Number(F)||Number(Ye);tt&&(we.w=tt),It&&(we.h=It),Number(ee)&&(we.x=Number(ee)),Number(pe)&&(we.y=Number(pe)),we.name=d||I18N.w.rResCanvas,we.device=He}),s({type:"entry:widget:change",payload:{flatChgList:ye,shouldReBuildTree:!0,isCombineChange:!0}})},uv=async(t,n)=>{const s=Pa();s&&w4()&&(await s({type:"entry:copy:canvas"}),setTimeout(async()=>{await s({type:"entry:paste:items:into:current-page",payload:{triggerType:"shortcut"}})}))},mv=(t,n)=>{const s=Pa();!s||!w4()||s({type:"entry:copy:canvas"})},gv=(t,n)=>{const s=Pa();!s||!w4()||s({type:"entry:cut:canvas"})},fv=(t,n)=>{const s=Pa();s&&(MB.f.editing||s({type:"entry:paste:items:into:current-page",payload:{triggerType:"shortcut"}}))},yv=(t,n)=>{const s=J1(yo.x.Canvas),c=Pa();if(!s||!s.length||!c)return;const d=[];s.forEach(w=>{const{hotAttr:P}=w,F=!P.isClipContent;d.push({key:w.key,hotAttr:{isClipContent:F}})}),c({type:"entry:widget:change",payload:{flatChgList:d,isCombineChange:!0}})},xv=(t,n)=>{const s=J1(yo.x.Canvas),c=Pa();if(!c||!s||!s.length||!n)return;const{"page-background-type":d}=n;if(!d)return;const w=s.map(P=>{if(sdkStore.isTrashed(P.key)||P.hotAttr.type!==yo.x.Canvas)return null;let F={};switch(d){case"grid":F={isGridLayout:!0};break;case"vertical-line":F={isColLayout:!0};break;case"horizontal-line":F={isRowLayout:!0};break;default:break}return{...P,hotAttr:{...P.hotAttr,layoutGrid:{...P.hotAttr.layoutGrid,...F}}}});c({type:"entry:widget:change",payload:{flatChgList:w,shouldReBuildTree:!0,isCombineChange:!0}})},vv=()=>{const t=Fc.getInstance();t.register("CPage",pv),t.register("EPage",hv),t.register("CPageCopy",uv),t.register("CopyPage",mv),t.register("CutPage",gv),t.register("PastePage",fv),t.register("ToggleClipContent",yv),t.register("EPageLayout",xv)},bv=(t,n,s)=>{const{"board-name":c}=t;if(c.trim()===""||c.includes("/")){MB.notice({text:I18N.Common.name_cannot_be_empty_or_symbol,type:"warning"});return}n({type:"entry:update:screen-name",payload:{attr:"name",value:c,screen:MB.getCurrentScreen()}})},Cv=(t,n,s)=>{const{"background-color":c}=t;n({type:"entry:update:all-screen:bgcolor",payload:{fill:{fillIsVisible:!0,fill:"solid",solidColor:Gr(c)}}})},wv=(t,n)=>{const s=Pa();s&&s({type:"entry:create:screen:auto:to:root-project"})},Sv=(t,n)=>{var s,c;const d=Pa(),w=(0,un.dP)();if(!d||!w)return;const F=(0,pt.He)(w)[(s=MB.getCurrentScreen())==null?void 0:s.cid];if(!((0,La.zK)((c=MB.getCurrentScreen())==null?void 0:c.cid)<7)){MB.notice({text:"\u753B\u5E03\u5C42\u7EA7\u6700\u591A\u652F\u63017\u5C42",type:"warning"});return}d({type:"entry:create:screen:auto:to:root-project",payload:{isCreateChildren:!0,parentScreen:F}})},Av=(t,n)=>{const s=Pa();s&&s({type:"entry:create:screen_folder:auto:to:root-project",payload:{isCreateChildren:!0}})},Iv=(t,n)=>{const s=Pa(),c=(0,un.dP)();!s||!c||!n||(n["board-name"]&&bv(n,s,c),n["background-color"]&&Cv(n,s,c))},Mv=(t,n)=>{var s;const c=Pa(),d=(0,un.dP)();if(!c||!d)return;const w=(0,mg.I_)(d),P=(0,pt.He)(d),F=(0,pt.WU)(d),X=(0,pt.Hs)(d),{contextScreenSelection:ee}=w,pe=ee.length===1,ye=P[((s=MB.getCurrentScreen())==null?void 0:s.cid)||ee[0]];if(F&&(!pe||pe&&X.length===1&&ye.key===X[0])){c({type:"entry:remove:screen:selection:del"});return}if(ye){c({type:"entry:remove:screen:check:del",payload:{screen:ye}});return}c({type:"entry:remove:screen:list:by:context_menu",payload:{screenSelection:ee}})},Tv=(t,n)=>{const s=Pa(),c=(0,un.dP)();if(!s||!c)return;const d=(0,mg.I_)(c),w=(0,pt.He)(c),P=(0,pt.WU)(c),F=(0,pt.Hs)(c),{contextScreenSelection:X}=d,ee=X.length===1,pe=w[X[0]],ye=P&&(!ee||ee&&F.length===1&&pe.key===F[0]);if(ye){s({type:"entry:dup:screen:selection",payload:{isScreenSelectionContextMenu:ye}});return}if(pe){s({type:"entry:check:dup:screen:page:folder",payload:{screen:pe}});return}s({type:"entry:check:dup:screen:page:folder:batch"})},Ev=(t,n)=>{const s=Pa(),c=(0,un.dP)();if(!s||!c)return;const d=(0,mg.I_)(c),w=(0,pt.He)(c),P=(0,pt.WU)(c),F=(0,pt.Hs)(c),{contextScreenSelection:X}=d,ee=X.length===1,pe=w[X[0]],ye=P&&(!ee||ee&&F.length===1&&pe.key===F[0]);MB.global.experienceLoginModalHelper("isSave")||s({type:"entry:transfer:screen",payload:{screen:pe,isScreenSelectionContextMenu:ye}})},kv=(t,n)=>{const s=Pa(),c=(0,un.dP)();if(!s||!c)return;const{isEditingCombo:d,isEditingUserCombo:w}=(0,y.r)(c);s({type:"modal:update:state",payload:{screenTrashModal:{isOpen:!0,isEditingCombo:d,isEditingUserCombo:w}}})},_v=(t,n)=>{Pa()({type:"entry:unExpand:all:screen"})},Pv=(t,n)=>{Pa()({type:"entry:expand:all:screen"})},Nv=()=>{const t=Fc.getInstance();t.register("CCanvas",wv),t.register("CSubCanvas",Sv),t.register("CDirectory",Av),t.register("ECanvas",Iv),t.register("DCanvas",Mv),t.register("CCanvasCopy",Tv),t.register("MoveCanvas",Ev),t.register("CanvasViewRecycle",kv),t.register("CollapseCanvas",_v),t.register("ExpandCanvas",Pv)},Lv=(t,n)=>{const s=Pa();s&&s({type:"settings:set:activeIndex",payload:{activeIndex:1}})},Dv=()=>{Fc.getInstance().register("OpenEventsPanel",Lv)};var Bv=e(24016);const Rv=(t,n)=>{const s=Pa();s&&s({type:"entry:toggle:lock"})},jv=(t,n)=>{const s=Pa();s&&s({type:"entry:toggle:visible"})},Ov=(t,n)=>{const s=Pa(),c=(0,un.dP)();if(!s||!c)return;const d=MB.getCurrentScreen(),w=(0,pt.wJ)(c),P=(0,Bv.ww)(d,w);s(P?{type:"layerExpandedKeySet:close:ref",payload:{refs:[]}}:{type:"layerExpandedKeySet:open:ref"})},Fv=()=>{const t=Fc.getInstance();t.register("ToggleLayerLock",Rv),t.register("ToggleLayerVisible",jv),t.register("ToggleLayerExpand",Ov)},Uv=t=>{const n=new Map;return{dispatch:t,register:(s,c)=>{n.set(s,c)},unRegister:s=>{n.delete(s)},has:s=>n.has(s),exec:(s,c)=>{var d;(d=n.get(s))==null||d(s,c)}}},zv=()=>{w8(),k8(),F8(),A5(),N5(),X5(),Q5(),W5(),U5(),$5(),q5(),nv(),rv(),dv(),vv(),Nv(),Dv(),Fv()};class Fc{static getInstance(n){return Fc.instance||(Fc.instance=Uv(n),zv()),Fc.instance}}const Pa=()=>{var t;return(t=Fc.getInstance())==null?void 0:t.dispatch};var bg=e(24201);const Wv=t=>{const{isShowAIModal:n,isShowAISemantic:s,isShowAIChatPanel:c,currentAIComponent:d,historySemanticValue:w,showGuide:P,generating:F,leftPanelWidth:X,layout:ee,user:pe,org:ye,project:Ae,switchIsChat:we,currentPopupPanel:_e,userInputObj:Fe,theme:Ye,dispatch:He}=t,[tt,It]=(0,r.useState)(0),[Nt,Lt]=(0,r.useState)((0,i.jsx)(i.Fragment,{})),[Xt,_o]=(0,r.useState)((0,i.jsx)(i.Fragment,{})),[co,yn]=(0,r.useState)((0,i.jsx)(i.Fragment,{}));(0,r.useEffect)(()=>{It(X+(ee==="old_right"?0:I.fn)+28)},[X,ee]);const An=(0,r.useMemo)(()=>({getHotItem:as=>sdkStore.getHotItem(as),getNewRichTextEditorState:(as,mi)=>{const ha=hi.e6.replaceText(as.getCurrentContent(),as.getSelection(),mi),Ca=hi.$t.push(as,ha,"insert-fragment");return He({type:"set:rich:text:editor:state",payload:{richTextEditorState:Ca}}),Ca},updateAIState:as=>He({type:"ai:update:state",payload:as}),openLeftSidePanel:()=>He({type:Wn.X.AIOpenLeftNav}),updateEditingCid:as=>He({type:"entry:set:editing:cid",payload:as}),updateCurrentOrg:as=>{let{org:mi}=as;return He({type:"set:current:org",payload:{org:mi}})},updateCurrentUser:as=>{let{user:mi}=as;return He({type:"set:current:user",payload:{user:mi}})},aiGenerate:as=>He({type:"ai:generate",payload:as}),updateWidget:as=>{let{widgetType:mi,data:ha,type:Ca}=as;return He({type:"entry:autoFill:update:widget",payload:{widgetType:mi,data:ha,type:Ca,device:Ae.device}})},aiPreTextGenerate:as=>{const{key:mi,currentIsLock:ha}=as;ha||He({type:"entry:widget:change",payload:{flatChgList:[{key:mi,hotAttr:{isLock:!0}}]}})},recoverEditorSelection:Eu.We,notice:as=>{var mi;return(mi=MB)==null?void 0:mi.notice(as)},track:(as,mi)=>(0,Dc.kH)(as,mi),getChangingData:Eu.Ub,handleAIQuestion:async as=>{He({type:Wn.X.AIToggleOpenChatPanel})},getCmdExec:()=>Fc.getInstance(He),aiComponentGenerate:async as=>{let{semanticValue:mi}=as;await He({type:"entry:aiComponent:request:generate-component",payload:{userTextContent:mi}})},setAIComponentSourceCache:as=>bg.ZF.setCache(as)}),[He,Ae.device,_e]),In=(0,r.useMemo)(()=>({user:pe,org:ye,project:Ae}),[ye,Ae,pe]),wn=(0,r.useMemo)(()=>({currentAIComponent:d,showGuide:P,generating:F,historySemanticValue:w,switchIsChat:we,accountData:In,actions:An,userInputObj:Fe}),[d,P,F,w,we,In,An,Fe]),_n=(0,r.useMemo)(()=>({handleToggleAIChatPanel:()=>He({type:Wn.X.AIToggleOpenChatPanel}),updateIsInChatModal:as=>He({type:"reducer:flag:is-in-chatGPT",payload:{isInChatModal:as}}),updateCurrentOrg:as=>{let{org:mi}=as;return He({type:"set:current:org",payload:{org:mi}})},updateCurrentUser:as=>{let{user:mi}=as;return He({type:"set:current:user",payload:{user:mi}})},track:(as,mi)=>(0,Dc.kH)(as,mi)}),[He]),Jn=(0,r.useMemo)(()=>({user:pe,org:ye,project:Ae,theme:Ye,showHeadSwitch:!1}),[ye,Ae,Ye,pe]),rs=(0,r.useMemo)(()=>({actions:_n,commonData:Jn}),[Jn,_n]);return(0,r.useEffect)(()=>{Lt(n?X1(()=>({...wn,defaultPos:{left:tt,top:I.E0+28}})):(0,i.jsx)(i.Fragment,{}))},[wn,tt,n]),(0,r.useEffect)(()=>{_o(s?s8(()=>wn):(0,i.jsx)(i.Fragment,{}))},[wn,s]),(0,r.useEffect)(()=>{yn(c?d8(()=>rs):(0,i.jsx)(i.Fragment,{}))},[rs,c]),(0,i.jsxs)(i.Fragment,{children:[Nt,Xt,co]})},Vv=(0,m.Mz)([Ds.Pp,Ds.Ky,Ds.Uz,Ds.Qj,Ds.fh,Ds.Sd,Ds.fz,pt.uE,T.bP,S.HW,S.wA,S.PL,y.r,A.jx,pt.OW,Ds.Ny,T.O4],(t,n,s,c,d,w,P,F,X,ee,pe,ye,Ae,we,_e,Fe,Ye)=>{let{isEditingProjectMain:He}=Ae;const tt=we===R.qi.OnlyView;return{isShowAIModal:(d==null?void 0:d.type)===gi.SR.AutoFill||!tt&&He&&t,isShowAISemantic:n&&!c&&!tt&&He,isShowAIChatPanel:s&&!c&&!tt&&He,showGuide:c,currentAIComponent:d,historySemanticValue:w,generating:P,leftPanelWidth:F,layout:X,user:ee,org:pe,project:ye,currentPopupPanel:_e,userInputObj:Fe,theme:Ye}}),Hv=(0,o.Ng)(t=>Vv(t))(Wv);var S4=e(31900);const Kv=u.Ay.div.withConfig({displayName:"styles__StyledExportTags",componentId:"sc-xzhc9p-0"})(["width:100%;height:72px;padding:8px 20px 0 20px;background:",";display:flex;flex-direction:row;justify-content:space-between;.menu-item{width:80px;height:64px;display:flex;flex-direction:column;justify-content:center;align-items:center;border-radius:6px 6px 0 0;cursor:pointer;.icon{width:20px;height:25px;}span{color:",";}div{white-space:nowrap;}}.menu-item.checked{background:",";span{font-weight:500;color:",";}}.menu-item.tempDisabled{opacity:0.4;}"],t=>t.theme.color_bg_canvas,t=>t.theme.color_text_L1,t=>t.theme.color_bg_white,t=>t.theme.color_text_link_normal),Gv=t=>{let{menuMap:n,currentTag:s,onClick:c}=t;return(0,i.jsx)(Kv,{children:n.map(d=>(0,i.jsx)(Yv,{text:d.text,dataType:d.dataType,iconName:d.iconName,tempDisabled:d.tempDisabled,isChecked:d.dataType===s,onClick:c},d.dataType))})},Yv=(0,r.memo)(t=>{let{dataType:n,text:s,iconName:c,tempDisabled:d,isChecked:w,onClick:P}=t;const F=(X,ee)=>{if(ee)return MB.notice({text:I18N.Common.feature_is_not_available,type:"warning"}),null;P(X)};return(0,i.jsxs)("div",{className:"menu-item "+(w?"checked":"")+" "+(d?"tempDisabled":""),onClick:()=>F(n,d),children:[(0,i.jsx)("div",{children:(0,i.jsx)("img",{className:"icon",src:"/mb-proto2/images/workspace/design/export_"+c+".svg"})}),(0,i.jsx)("div",{children:(0,i.jsx)("span",{children:s})})]})}),Zv=(0,r.memo)(Gv);var Xv=e(80582),A4=e(93196),Cg=e(82924),Pm=e(39271);const Qv=u.Ay.div.withConfig({displayName:"styles__StyledDownloadPanel",componentId:"sc-s3bv9n-0"})(['width:100%;.flex-row{display:flex;flex-direction:row;align-items:center;}.flex-row-space{display:flex;flex-direction:row;justify-content:space-between;align-items:center;}.flex-row-end{display:flex;flex-direction:row;justify-content:flex-end;}.flex-colum-center{display:flex;flex-direction:column;justify-content:center;align-items:center;}.cancel{transition:all ease-in-out 0.2s;}.download{margin-left:12px;}.upgrade{width:100%;background:linear-gradient(90deg,#FCEAD0 -8.53%,#EDB46C 99.98%);border:none;&:hover:not([class*="is-disabled"]){background:linear-gradient(90deg,#F2D9B6 -8.53%,#E5A450 99.98%);border:none;}.btn-text{color:#61290C;}}.icon-success{width:16px;height:16px;margin-bottom:10px;}.icon-success > *{fill:#23b571;}.icon-close{width:16px;height:16px;position:absolute;top:20px;right:20px;g > path{fill:',";}}.icon-close:hover{cursor:pointer;g > path{fill:",";}}.panel{width:100%;height:auto;padding:0 20px;background:",";position:relative;.state-container{z-index:99;position:absolute;top:0;left:0;transform:unset;background-color:",";}.title{color:",";}.option-container{width:100%;height:auto;margin:20px 0;.option{height:40px;.title{font-weight:500;}.export-panel-page-group{min-width:200px;justify-content:end;.Radio{margin-right:28px;height:16px;min-height:auto;}}.export-panel-scale-group .Radio{margin-right:20px;height:16px;min-height:auto;}.export-panel-page-group .Radio:last-child,.export-panel-scale-group .Radio:last-child{margin-right:0;}}.state-option{margin-top:12px;.select{width:160px;display:flex;justify-content:space-between;border:1px solid ",";}}}.btn-container{height:48px;}.success-container{width:100%;height:100%;.download-link{color:",";text-decoration:underline;&:hover{color:",";}}p:nth-child(4){font-size:10px;line-height:14px;padding-top:28px;padding-left:69px;padding-right:72px;text-align:center;}}.qrcode-container{width:100%;height:100%;padding:0 44px;&:lang(en){display:flex;flex-direction:column;}.left{height:100%;width:106px;p{margin-top:4px;text-align:center;color:",";}&:lang(en){order:2;margin-bottom:15px;margin-top:10px;p{white-space:nowrap;}}}.qrcode{padding:5px;display:flex;border:1px solid ",";}.right{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;&:lang(en){order:1;}}.download-link{color:",";text-decoration:underline;&:hover{color:",";}}}.loading-container{width:100%;height:100%;margin-top:0;margin-left:0;.icon-loading{width:18px;height:18px;margin-bottom:12px;}}.overview-container{width:100%;height:200px;padding-top:20px;.option{margin-bottom:24px;p{line-height:17px;font-size:12px;}p.title{font-weight:500;margin-bottom:4px;}.svg-icon{width:28px;height:28px;}.svg-icon > *{fill:",";}.description{width:290px;margin-left:8px;p{color:",";&.title{color:",";}}}}}}.panel.showTip{border-radius:0;}.panel.dark .option-container .option .Switch > button{border:unset;}.bottom-tips{background-color:",";padding:6px 24px;color:",";display:flex;justify-content:space-between;align-items:center;a{margin-left:10px;color:#ff6161;font-weight:500;}a:hover{color:#db5659;}.arrow-icon{width:7px;height:11px;margin-left:8px;margin-bottom:2px;vertical-align:middle;}}"],t=>t.theme.color_text_L2,t=>t.theme.color_text_L2,t=>t.theme.color_bg_white,t=>t.theme.color_bg_white,t=>t.theme.color_text_L1,t=>t.theme.color_bg_border_02,t=>t.theme.color_text_link_normal,t=>t.theme.color_text_link_normal,t=>t.theme.color_text_L2,t=>t.theme.color_text_disabled01,t=>t.theme.color_text_link_normal,t=>t.theme.color_text_link_normal,t=>t.theme.color_text_L3,t=>t.theme.color_text_L2,t=>t.theme.color_text_L1,t=>t.theme.color_bg_canvas,t=>t.theme.color_text_L2),Jv=u.Ay.div.withConfig({displayName:"styles__StyledDownloadPanelBuyMe",componentId:"sc-s3bv9n-1"})(["position:relative;.buyme-btn{border-radius:44px;width:84px;height:24px;display:flex;font-weight:600;justify-content:center;align-items:center;cursor:pointer;color:",";background:",";&:hover{background:",";}}"],t=>t.theme.free_buyme_btn_color,t=>t.theme.free_buyme_btn_bg_color,t=>t.theme.free_buyme_btn_bg_color_hover);var I4=e(39547),Rd=e(89604);const $v=t=>{var n;let{theme:s,currentTag:c,type:d,downloadable:w,downloadFileName:P,loading:F,pdfDimensionExceeded:X,progress:ee,screenStateList:pe,currentProject:ye,currentUser:Ae,dispatch:we,screenSelection:_e,canvasDimensionExceeded:Fe,currentOrg:Ye}=t;const He=ye==null?void 0:ye.is_org_project;let tt=!1,It=!0;if(He){const{plan:Va}=(0,ta.rM)(Ye);It=Va===Rd.Sj.OrgFree||Va===Rd.Sj.OrgExpired,tt=!It}else It=I4.t.InitialUser(Ae).planSdk.prototypePlan.getUserPlan()===Rd.L1.Free,tt=!It;const[Nt,Lt]=(0,r.useState)((0,We.Yt)(ze.XY.DOWNLOADTYPE,ze.y5.PAGE,We.qW.String)),[Xt,_o]=(0,r.useState)(ze.g6.CURRENT_PAGE),[co,yn]=(0,r.useState)((0,We.Yt)(ze.XY.SCALE,1,We.qW.Number)),[An,In]=(0,r.useState)((0,We.Yt)(ze.XY.FULLSCREEN,!1,We.qW.Boolean)),wn=An,[_n,Jn]=(0,r.useState)((0,We.Yt)(ze.XY.SHELL,!1,We.qW.Boolean)),[rs,as]=(0,r.useState)((0,We.Yt)(ze.XY.STICKY,!1,We.qW.Boolean)),[mi,ha]=(0,r.useState)((0,We.Yt)(ze.XY.CANVASNAME,!1,We.qW.Boolean)),[Ca,ms]=(0,r.useState)((n=pe[0])==null?void 0:n.cid),[qn,si]=(0,r.useState)((0,We.Yt)(ze.XY.STATE,ze.Gd.ALL,We.qW.String)),Hi=F,ra=!F&&ee===100&&c!==ze.xk.APK,Ta=!F&&ee===100&&c===ze.xk.APK,Pi=!ENV.IS_WONDER_SHARE&&!F&&ee===100,Bi=[ze.xk.PNG,ze.xk.PDF].includes(c),Ji=[ze.xk.HTMLZIP,ze.xk.APK,ze.xk.SOURCE_FILE].includes(c),Ui=!tt&&Bi,wa=!ENV.IS_WONDER_SHARE&&He&&!It&&c===ze.xk.APK,Ea=Ui||wa,Ba=c===ze.xk.SOURCE_FILE&&He&&!(0,A4.C8)({currentOrg:Ye,userId:Ae.id}),lr=(0,Pm.FT)(_e);(0,r.useEffect)(()=>{c===ze.xk.PDF&&co>2&&(yn(2),(0,We.a0)(ze.XY.SCALE,2,We.qW.Number))},[c,co]);const Ya={[ze.xk.PNG]:()=>{const Va={source:"\u7F16\u8F91\u533A",project_type:"\u539F\u578B V8",project_name:ye.name,project_cid:ye.cid,download_type:ze.xk.PNG,export_image_times:co+"x",download_page_type:Xt===ze.g6.CURRENT_PAGE?"\u5F53\u524D\u9875":"\u6240\u6709\u9875\u9762",include_device_frame:_n?1:0,outside_artboard_symbol_included:An?1:0,comment_include:rs?1:0,include_page_name:mi?1:0,download_source:"\u539F\u578B\u5BFC\u51FA"};Xt===ze.g6.ALL_PAGE?we({type:"entry:export:all:page",payload:{scale:co,format:"png",isWithDeviceFrame:_n,isExportSticky:rs,downloadPageType:Nt,isIncludeCanvasName:mi,trackParams:Va}}):we({type:"entry:export:page",payload:{pageToExportKeyList:lr,scale:co,format:"png",isWithDeviceFrame:_n,isExportSticky:rs,downloadPageType:Nt,isIncludeCanvasName:mi,trackParams:Va}})},[ze.xk.PDF]:()=>{const Va={source:"\u7F16\u8F91\u533A",project_type:"\u539F\u578B V8",project_name:ye.name,project_cid:ye.cid,download_type:ze.xk.PDF,include_device_frame:_n?1:0,outside_artboard_symbol_included:An?1:0,comment_include:rs?1:0,include_page_name:mi?1:0,download_source:"\u539F\u578B\u5BFC\u51FA"};Xt===ze.g6.ALL_PAGE?we({type:"entry:export:all:page",payload:{scale:co,format:"pdf",isWithDeviceFrame:_n,isExportSticky:rs,downloadPageType:Nt,isIncludeCanvasName:mi,trackParams:Va}}):we({type:"entry:export:page",payload:{pageToExportKeyList:lr,scale:co,format:"pdf",isWithDeviceFrame:_n,isExportSticky:rs,downloadPageType:Nt,isIncludeCanvasName:mi,trackParams:Va}})},[ze.xk.HTMLZIP]:()=>{const Va={source:"\u7F16\u8F91\u533A",project_type:"\u539F\u578B V8",project_name:ye.name,project_cid:ye.cid,download_type:ze.xk.HTMLZIP,download_source:"\u539F\u578B\u5BFC\u51FA"};we({type:"entry:download:project",payload:{type:ze.xk.HTMLZIP,trackParams:Va}})},[ze.xk.APK]:()=>{const Va={source:"\u7F16\u8F91\u533A",project_type:"\u539F\u578B V8",project_name:ye.name,project_cid:ye.cid,download_type:ze.xk.APK,download_source:"\u539F\u578B\u5BFC\u51FA"};we({type:"entry:download:project",payload:{type:ze.xk.APK,trackParams:Va}})},[ze.xk.SOURCE_FILE]:()=>{const Va={source:"\u7F16\u8F91\u533A",project_type:"\u539F\u578B V8",project_name:ye.name,project_cid:ye.cid,download_type:ze.xk.SOURCE_FILE,download_source:"\u539F\u578B\u5BFC\u51FA"};we({type:"entry:download:project",payload:{type:ze.xk.SOURCE_FILE,trackParams:Va}})}},cr=()=>{we({type:"export:update:state",payload:{isExportMenuShow:!1}})},zr=async()=>{Ya[c]();const Va={[ze.xk.PNG]:"png",[ze.xk.PDF]:"pdf",[ze.xk.APK]:"apk",[ze.xk.HTMLZIP]:"html",[ze.xk.SOURCE_FILE]:I18N.ExportManager.source_file};Ye&&Object.keys(Va).includes(c)&&await(0,c0.VX)({actionType:4,action:1004,orgCid:Ye.cid,extra:{user_name:Ae.name,project_name:ye.name,project_download_type:Va[c]}})},dl=Va=>{const{target:nc}=Va;document.querySelector("#export-panel").contains(nc)||nc.closest(".WorkspaceSelectMenu")||nc.closest(".ai-semantic-export")||nc.closest("#design-export")||nc.closest(".OrderChargeOverlay")||we({type:"entry:toolbar:open:export_menu",payload:{open:!1}})},Er=()=>{we({type:"export:update:state",payload:{loading:!1,progress:0}})};return(0,i.jsxs)(Qv,{children:[(0,i.jsxs)("div",{className:"panel "+(Ea?"showTip":"")+" "+(s==="dark"?"dark":""),children:[Bi&&(0,i.jsx)(qv,{currentTag:c,screenStateList:pe,onDownloadClick:zr,onCancelClick:cr,downloadPageType:Nt,setDownloadPageType:Lt,page:Xt,setPage:_o,scale:Number(co),setScale:yn,isFullScreen:An,setIsFullScreen:In,isShowShell:_n,shouldIsShowShellBeDisabled:wn,setIsShowShell:Jn,currentStateCid:Ca,setCurrentStateCid:ms,screenSelection:lr,morePageStateCid:qn,setMorePageStateCid:si,isExportSticky:rs,setIsExportSticky:as,isIncludeCanvasName:mi,setIsIncludeCanvasName:ha,isFreePlan:It}),Ji&&(0,i.jsx)(e7,{currentTag:c,isOrgProject:He,currentUser:Ae,onDownloadClick:zr,onCancelClick:cr,isFreePlan:It,currentOrg:Ye,showDisabledDownloadSourceFile:Ba}),ra&&(0,i.jsx)(o7,{pdfDimensionExceeded:X,canvasDimensionExceeded:Fe,onClose:Er,type:d,downloadable:w,downloadFileName:P}),Ta&&(0,i.jsx)(n7,{onClose:Er,downloadLink:w,downloadFileName:P,theme:s,currentProject:ye}),Hi&&(0,i.jsx)(t7,{currentTag:c,page:Xt,progress:ee})]}),Ui&&(0,i.jsx)(s7,{currentTag:c,currentOrg:Ye,theme:s}),wa&&(0,i.jsx)(Qy,{text:I18N.ExportManager.apk_download_font_alert}),Ba&&(0,i.jsx)(Qy,{text:I18N.ExportManager.disabled_export_source_file_tips}),(0,i.jsx)(Hc.A,{target:document,onClick:(0,Hc.t)(dl,{capture:!0})}),Pi&&MB.notice({text:""+I18N.ExportManager.export_downloading_tips,type:"info",CustomChildComponent:(0,z.eY)(I18N.Common.view),duration:5e3})]})},qv=t=>{let{currentTag:n,onCancelClick:s,onDownloadClick:c,page:d,scale:w,isShowShell:P,setPage:F,setScale:X,setIsShowShell:ee,screenSelection:pe,isFreePlan:ye,downloadPageType:Ae,setDownloadPageType:we,isExportSticky:_e,setIsExportSticky:Fe,isIncludeCanvasName:Ye,setIsIncludeCanvasName:He}=t;const tt=(0,Pm.FT)(pe),It=tt.length>1;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"option-container",children:[(0,i.jsxs)("div",{className:"flex-row-space option",children:[(0,i.jsx)("span",{className:"title",children:I18N.ExportManager.export_scope_title}),(0,i.jsx)(ys.A,{className:"export-panel-page-group",size:"small",optionList:Cg.lJ.map(Nt=>It&&Nt.value===ze.g6.CURRENT_PAGE?{...Nt,label:I18N.ExportManager.selected_artboard+"\uFF08"+tt.length+"\uFF09"}:{...Nt,label:I18N.ExportManager[Nt.label]}),value:d,onToggle:Nt=>F(Nt)})]}),(0,i.jsxs)("div",{className:"flex-row-space option",children:[(0,i.jsx)("span",{className:"title",children:I18N.ExportManager.export_type_title}),(0,i.jsx)(ys.A,{className:"export-panel-page-group",size:"small",optionList:[{label:I18N.ExportManager.artboard,value:ze.y5.PAGE},{label:I18N.ExportManager.page,value:ze.y5.CANVAS}],value:Ae,onToggle:Nt=>{we(Nt),(0,We.a0)(ze.XY.DOWNLOADTYPE,Nt,We.qW.String)}})]}),(0,i.jsxs)("div",{className:"flex-row-space option",children:[(0,i.jsx)("span",{className:"title",children:n===ze.xk.PNG?I18N.ExportManager.export_image_scaling:I18N.ExportManager.export_pdf_scaling}),(0,i.jsx)(Cd.A,{isShowTips:ye,content:I18N.ExportManager.export_watermark_tip,direction:"up",maxWidth:ENV.IS_WONDER_SHARE?"195px":"100px",children:(0,i.jsx)("div",{children:(0,i.jsx)(ys.A,{className:"export-panel-scale-group",size:"small",optionList:(0,Cg.z4)(n,ye),value:w,onToggle:Nt=>{X(Nt),(0,We.a0)(ze.XY.SCALE,Nt,We.qW.Number)}})})})]}),Ae===ze.y5.CANVAS?(0,i.jsxs)("div",{className:"flex-row-space option",children:[(0,i.jsx)("span",{className:"title",children:I18N.ExportManager.include_note}),(0,i.jsx)(rh.A,{size:"small",isIOS:!0,isChecked:_e,onChange:Nt=>{Fe(Nt),(0,We.a0)(ze.XY.STICKY,Nt,We.qW.Boolean)}})]}):(0,i.jsxs)("div",{className:"flex-row-space option",children:[(0,i.jsx)("span",{className:"title",children:I18N.ExportManager.show_device_shell}),(0,i.jsx)(rh.A,{size:"small",isIOS:!0,isChecked:P,isDisabled:!1,onChange:Nt=>{ee(Nt),(0,We.a0)(ze.XY.SHELL,Nt,We.qW.Boolean)}})]}),Ae===ze.y5.CANVAS&&(0,i.jsxs)("div",{className:"flex-row-space option",children:[(0,i.jsx)("span",{className:"title",children:I18N.ExportManager.export_include_artboard_name}),(0,i.jsx)(rh.A,{size:"small",isIOS:!0,isChecked:Ye,onChange:Nt=>{He(Nt),(0,We.a0)(ze.XY.CANVASNAME,Nt,We.qW.Boolean)}})]})]}),(0,i.jsxs)("div",{className:"flex-row-end btn-container",children:[(0,i.jsx)(Zn.tA,{className:"cancel",onClick:s,children:I18N.ExportManager.cancel}),(0,i.jsx)(Zn.jn,{className:"download",onClick:c,children:I18N.ExportManager.export})]})]})},e7=t=>{let{currentTag:n,onCancelClick:s,onDownloadClick:c,isOrgProject:d,currentUser:w,isFreePlan:P,currentOrg:F,showDisabledDownloadSourceFile:X}=t;const{edition:ee}=w,ye=I4.t.InitialUser(w).planSdk.prototypePlan.getUserPlan(),Ae=ye===Rd.L1.Free,we=n===ze.xk.HTMLZIP,_e=n===ze.xk.APK,Fe=n===ze.xk.SOURCE_FILE,Ye=_e&&(!d||d&&P),He=we&&(!d&&Ae||d&&P),tt=[Rd.L1.Lifetime,Rd.L1.PremiumLifetime].includes(ye),It=Fe&&(!d&&!tt||d&&P),Nt=!Ye&&!He&&!It,Lt=()=>{let Xt="",_o="";n===ze.xk.HTMLZIP?F?(Xt="\u7F16\u8F91\u533A-v8_\u4F01\u4E1A_\u5BFC\u51FA_\u79BB\u7EBF\u6F14\u793A\u5305",_o="workspace-v8_org_download_html"):(Xt="\u7F16\u8F91\u533A-v8_\u4E2A\u4EBA_\u5BFC\u51FA_\u79BB\u7EBF\u6F14\u793A\u5305",_o="workspace-v8_solo_download_html"):n===ze.xk.APK?(Xt="\u7F16\u8F91\u533A-v8_\u4F01\u4E1A_\u5BFC\u51FA_apk",_o="workspace-v8_org_apk"):n===ze.xk.SOURCE_FILE&&(Xt="\u7F16\u8F91\u533A-v8_\u4F01\u4E1A_\u5BFC\u51FA_\u6E90\u6587\u4EF6",_o="workspace-v8_org_download_source");const co=(0,oa.l)(F,Xt,_o);_e&&!F?(co.mode="org",co.isSelectOrg=!0):Fe&&!F&&(co.immediateUse="solo_lifeTime"),MB.global.popupHelper.chargeAsync(co)};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"overview-container",children:[we&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"flex-row option",children:[(0,i.jsx)(Je.C,{name:"design/export/offline"}),(0,i.jsxs)("div",{className:"description",children:[(0,i.jsx)("p",{className:"title",children:I18N.ExportManager.offline_presentation}),(0,i.jsx)("p",{children:I18N.ExportManager.offline_presentation_description})]})]}),(0,i.jsxs)("div",{className:"flex-row option",children:[(0,i.jsx)(Je.C,{name:"design/export/package"}),(0,i.jsxs)("div",{className:"description",children:[(0,i.jsx)("p",{className:"title",children:I18N.ExportManager.versioning}),(0,i.jsx)("p",{children:I18N.ExportManager.versioning_description})]})]})]}),_e&&(0,i.jsxs)("div",{className:"flex-row option",children:[(0,i.jsx)(Je.C,{name:"design/export/phone"}),(0,i.jsxs)("div",{className:"description",children:[(0,i.jsx)("p",{className:"title",children:I18N.ExportManager.simulate_prototype_on_real_device}),(0,i.jsx)("p",{children:I18N.ExportManager.simulate_prototype_on_real_device_description})]})]}),Fe&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"flex-row option",children:[(0,i.jsx)(Je.C,{name:"design/export/save"}),(0,i.jsxs)("div",{className:"description",children:[(0,i.jsx)("p",{className:"title",children:I18N.ExportManager.save_to_local}),(0,i.jsx)("p",{children:I18N.ExportManager.save_to_local_description})]})]}),(0,i.jsxs)("div",{className:"flex-row option",children:[(0,i.jsx)(Je.C,{name:"design/export/edit"}),(0,i.jsxs)("div",{className:"description",children:[(0,i.jsx)("p",{className:"title",children:I18N.ExportManager.edit_after_import}),(0,i.jsx)("p",{children:I18N.ExportManager.edit_after_import_description})]})]})]})]}),Nt&&(0,i.jsxs)("div",{className:"flex-row-end btn-container",children:[(0,i.jsx)(Zn.tA,{className:"cancel",onClick:s,children:I18N.ExportManager.cancel}),(0,i.jsx)(Zn.jn,{className:"download",onClick:c,disabled:X,children:I18N.ExportManager.export})]}),Ye&&(0,i.jsx)("div",{className:"flex-row-end btn-container",children:(0,i.jsx)(Zn.Qi,{className:"upgrade",onClick:Lt,children:d?I18N.ExportManager.upgrade_to_unlock_more_features:I18N.ExportManager.upgrade_to_enterprise_plan_now})}),He&&(0,i.jsx)("div",{className:"flex-row-end btn-container",children:(0,i.jsx)(Zn.Qi,{className:"upgrade",onClick:Lt,children:d?I18N.ExportManager.upgrade_to_unlock_more_features:I18N.ExportManager.upgrade_to_download_html5})}),It&&(0,i.jsx)("div",{className:"flex-row-end btn-container",children:(0,i.jsx)(Zn.Qi,{className:"upgrade",onClick:Lt,children:d?I18N.ExportManager.upgrade_to_unlock_more_features:I18N.ExportManager.upgrade_to_lifetime_plan_now})})]})},t7=t=>{let{currentTag:n,page:s,progress:c}=t;return(0,i.jsxs)("div",{className:"state-container loading-container flex-colum-center",children:[(0,i.jsx)("img",{className:"icon-loading",src:"/mb-proto2/images/loading.gif"}),n===ze.xk.PNG&&s!==ze.g6.CURRENT_PAGE?(0,i.jsxs)("p",{children:[I18N.ExportManager.file_exporting_with_progress_will_be_slow,c,"%"]}):(0,i.jsxs)("p",{children:[I18N.ExportManager.file_exporting_with_progress,c,"%"]})]})},o7=t=>{let{onClose:n,downloadable:s,downloadFileName:c,canvasDimensionExceeded:d}=t;const w=()=>{(0,A4.Q)(s,c)};return(0,i.jsxs)("div",{className:"state-container success-container flex-colum-center",children:[(0,i.jsx)(Je.C,{className:"icon-success",name:"design/export/success"}),(0,i.jsx)("p",{children:I18N.ExportManager.start_exporting}),(0,i.jsxs)("p",{children:[I18N.ExportManager.if_it_doesnt_work,(0,i.jsx)("a",{className:"download-link",onClick:()=>w(),children:I18N.ExportManager.click_here_to_download})]}),d&&(0,i.jsx)("p",{children:I18N.ExportManager.large_page_can_not_export_png}),(0,i.jsx)(Je.C,{className:"icon-close",name:"design/export/close",onClick:()=>{n()}})]})},n7=t=>{let{onClose:n,downloadLink:s,downloadFileName:c,theme:d,currentProject:w}=t;const P="https://"+window.location.host+"/proto/"+(w==null?void 0:w.access_token)+"?via=qrcode";return(0,i.jsxs)("div",{className:"state-container qrcode-container flex-row-space",children:[(0,i.jsxs)("div",{className:"left flex-colum-center",children:[(0,i.jsx)(Xv.A,{className:"qrcode",text:P,width:94,height:94,foreground:O1.A[d].color_text_L1,background:O1.A[d].color_bg_white}),(0,i.jsx)("p",{children:I18N.ExportManager.scan_to_preview_prototype})]}),(0,i.jsxs)("div",{className:"right",children:[(0,i.jsx)(Je.C,{className:"icon-success",name:"design/export/success"}),(0,i.jsx)("p",{children:I18N.ExportManager.start_exporting}),(0,i.jsxs)("p",{children:[I18N.ExportManager.if_it_doesnt_work,(0,i.jsx)("a",{className:"download-link",onClick:()=>{(0,A4.Q)(s,c)},children:I18N.ExportManager.click_here_to_download})]})]}),(0,i.jsx)(Je.C,{className:"icon-close",name:"design/export/close",onClick:()=>{n()}})]})},s7=t=>{let{currentTag:n,currentOrg:s,theme:c}=t;const d=()=>{let P="",F="";n===ze.xk.PDF?s?(P="\u7F16\u8F91\u533A-v8_\u4F01\u4E1A_\u5BFC\u51FA_pdf",F="workspace-v8_org_download_pdf"):(P="\u7F16\u8F91\u533A-v8_\u4E2A\u4EBA_\u5BFC\u51FA_pdf",F="workspace-v8_solo_download_pdf"):n===ze.xk.PNG&&(s?(P="\u7F16\u8F91\u533A-v8_\u4F01\u4E1A_\u5BFC\u51FA_png",F="workspace-v8_org_download_png"):(P="\u7F16\u8F91\u533A-v8_\u4E2A\u4EBA_\u5BFC\u51FA_png",F="workspace-v8_solo_download_png")),MB.global.popupHelper.chargeAsync((0,oa.l)(s,P,F))},w=c==="dark";return(0,i.jsxs)("div",{className:"bottom-tips",children:[""+I18N.ExportManager.upgrade_to_remove_watermark.replace(/{fileType}/,n===ze.xk.PNG?I18N.ExportManager.PNG:I18N.ExportManager.PDF),(0,i.jsx)(Jv,{isDark:w,children:(0,i.jsxs)("div",{className:"buyme-btn",onClick:d,children:[(0,i.jsx)(Je.C,{name:"toolbar/upgrade_"+c,size:16,isColorPure:!0}),(0,i.jsx)("div",{className:"text",children:I18N.FreeUpgrade.free})]})})]})},Qy=t=>{let{text:n}=t;return(0,i.jsx)("div",{className:"bottom-tips",children:n})},i7=$v;var Nm=e(39444);const a7=(0,m.Mz)([T.O4,Nm.d1,S.PL,S.HW,pt.Hs,S.wA],(t,n,s,c,d,w)=>{const{type:P,downloadable:F,downloadFileName:X,loading:ee,progress:pe,pdfDimensionExceeded:ye,canvasDimensionExceeded:Ae}=n,{plan:we,trial:_e}=(0,ta.xR)(c,w);return{theme:t,type:P,downloadable:F,downloadFileName:X,loading:ee,pdfDimensionExceeded:ye,progress:pe,currentProject:s,currentUser:c,screenStateList:[],screenSelection:d,plan:we,trial:_e,canvasDimensionExceeded:Ae,currentOrg:w}}),r7=(0,o.Ng)(t=>a7(t))(i7),l7=u.Ay.div.withConfig({displayName:"styles__StyledExportPanel",componentId:"sc-12bxh4g-0"})(["min-width:376px;background:",";color:",";position:absolute;transform:translateX(-50%);left:-90px;top:40px;border-radius:8px;border:1px solid ",";box-shadow:",";overflow:hidden;"],t=>t.theme.color_bg_white,t=>t.theme.color_text_L2,t=>t.theme.color_bg_border_02,t=>t.theme.shadow_5),c7=t=>{let{dispatch:n}=t;const s=(0,o.d4)(Nm.OB),c=document.getElementById("design-export");(0,r.useEffect)(()=>()=>{n({type:"export:update:state",payload:{currentExportTag:"png"}})},[n]);const d=(0,r.useCallback)(w=>{n({type:"export:update:state",payload:{type:w,loading:!1,progress:0,currentExportTag:w}})},[n]);return c?(0,dr.createPortal)((0,i.jsxs)(l7,{id:"export-panel",className:"export-panel-menu",children:[(0,i.jsx)(Zv,{menuMap:Cg.$S.map(w=>({...w,text:I18N.ExportManager[w.text]})),currentTag:s,onClick:w=>d(w)}),(0,i.jsx)(r7,{currentTag:s})]}),c):null},d7=(0,m.Mz)([Nm.d1],t=>{let{isExportMenuShow:n}=t;return{isExportMenuShow:n}});class Jy extends r.Component{render(){const{isExportMenuShow:n,dispatch:s}=this.props;return n?(0,i.jsx)(c7,{dispatch:s}):null}}(0,p.A)(Jy,"propTypes",{isExportMenuShow:ur().bool,dispatch:ur().func});const p7=(0,o.Ng)(t=>d7(t))(Jy);var C2=e(43391),Kc=e(11777),wd=e(90968),h7=e(87704);const u7=(0,u.AH)(["width:32px;height:32px;border-radius:6px;display:flex;justify-content:center;align-items:center;cursor:pointer;"]),m7=u.Ay.div.withConfig({displayName:"styles__StyledSideBar",componentId:"sc-ornjz5-0"})(["display:flex;flex-direction:column;align-items:center;pointer-events:auto;z-index:4;.top{width:44px;border-radius:8px;padding:6px 0;overflow:hidden;background:",";border:1px solid ",";box-shadow:",";display:flex;flex-direction:column;align-items:center;}.nav-button{",";transition:background-color 0.2s ease-out;position:relative;margin-bottom:6px;color:",";&:last-child{margin-bottom:0;}&.layout{width:32px;height:24px;}.set-layout-dropdown{width:100%;height:100%;display:flex;align-items:center;justify-content:center;.svg-icon{width:24px;height:24px;}}.icon{width:32px;height:32px;}&.builtin{.item-icon{path{stroke:",";}}&.active{.item-icon{path{fill:",";stroke:none;}}}&.disabled{.item-icon{path{stroke:",";}}&.active{.item-icon{path{fill:",";stroke:none;}}}}}&.disabled{color:",";cursor:not-allowed;}&:not(.disabled):hover{background-color:",";}&:not(.disabled).active{background:",";}}.more-graph-down{margin-bottom:4px;.more-opener{margin-top:0;.item-label{display:none;}}}"],t=>t.theme.color_bg_white,t=>t.theme.color_bg_border_01,t=>t.theme.shadow_m,u7,t=>t.theme.color_text_L1,t=>t.theme.color_text_L1,t=>t.theme.color_text_L1,t=>t.theme.color_text_disabled01,t=>t.theme.color_text_disabled01,t=>t.theme.color_text_disabled01,t=>t.theme.color_navigation_hover,t=>t.theme.color_navigation_active);var M4=e(35372);class g7 extends r.PureComponent{constructor(){super(...arguments),(0,p.A)(this,"getOptionList",()=>[{key:hc.lS.Builtin,label:I18N.LeftSidePanel.widget,icon:"left_panel/nav/builtin",shortCut:"1",isColorPure:!0},{key:hc.lS.Icon,label:I18N.LeftSidePanel.icon,icon:"left_panel/nav/icon",shortCut:"2"},{key:hc.lS.Asset,label:I18N.LeftSidePanel.image,icon:"left_panel/nav/asset",shortCut:"3"},{key:hc.lS.Page,label:I18N.LeftSidePanel.screens,icon:"left_panel/nav/page",shortCut:"4"},{key:hc.lS.Template,label:I18N.LeftSidePanel.master,icon:"left_panel/nav/template",shortCut:"5"},{key:hc.lS.Drawio,label:I18N.LeftSidePanel.graphModal.graph.title,icon:"left_panel/dropdown/drawio"}]),(0,p.A)(this,"handleTogglePopup",n=>{const{name:s}=n.currentTarget.dataset;if(s===hc.lS.Drawio){this.props.dispatch({type:"entry:widget:graph:edit",payload:{action:"new-widget"}});return}const c=(0,Ml.gu)();if(s===hc.lS.AI&&c){this.props.dispatch({type:Wn.X.AIOpenModal,payload:{type:gi.SR.AIAssistant}}),(0,wd.kX)({operation_type:wd.bZ[s]});return}const{isEditingBasket:d,isEditingCombo:w,dispatch:P,currentDesignOptions:{isExperience:F},isOrgProject:X}=this.props;s===hc.lS.Asset&&F&&P({type:"image-panel:update:state",payload:{navIndex:X?2:1}}),!(s===hc.lS.Page&&(d||w))&&(s===hc.lS.Template&&w||(P({type:"entry:toggle:popup:panel",payload:{name:s}}),P({type:"entry:search-panel:clear:state"}),(0,wd.kX)({operation_type:wd.bZ[s]})))})}componentDidMount(){const{currentUser:n}=this.props;(0,M4.c)(I18N)[Ha.c.GUIDE_DRAW_IO_NAV_RIGHT_LAYOUT].howToShow({currentUser:n})}componentWillUnmount(){MB.commonGuideHelper.closeGuide(Ha.c.GUIDE_DRAW_IO_NAV_RIGHT_LAYOUT)}render(){const{currentPopupPanel:n,isEditingBasket:s,isEditingCombo:c,layout:d,isLoggedIn:w,isEmptyScreen:P}=this.props;return(0,i.jsx)(m7,{className:"sideBar",children:(0,i.jsxs)("div",{className:"top",children:[this.getOptionList().map(F=>{let{key:X,label:ee,icon:pe,shortCut:ye,isColorPure:Ae}=F;if(X===hc.lS.Page&&(s||c)||X===hc.lS.Template&&c||X===hc.lS.AI&&!(!s&&!c&&w))return null;const we=ye?(0,Kc.u)({text:X===hc.lS.AI?I18N.LeftSidePanel.ai_label:ee,key:ye}):ee,_e=Ae||X===hc.lS.AI&&n!==hc.lS.AI,Fe=n===X,Ye=X===hc.lS.Drawio;return(0,i.jsx)(Kc.A,{content:we,direction:"left",children:(0,i.jsx)("a",{"data-name":X,className:f()("nav-button",X,{active:Fe},P&&"disabled",{[Ha.c.GUIDE_DRAW_IO_NAV_RIGHT_LAYOUT]:Ye}),onClick:P?null:this.handleTogglePopup,children:(0,i.jsx)(Je.C,{className:"item-icon",name:Fe?pe+"/selected":pe,isColorPure:_e})})},X)}),(0,i.jsx)("a",{className:"nav-button layout",children:(0,i.jsx)(h7.e,{layout:d})})]})})}}const f7=(0,m.Mz)([pt.OW,y.r,S.W4,S.PL,T.bP,S.HW,S.wA,C2.C,T.MZ],(t,n,s,c,d,w,P,F,X)=>{let{isEmptyScreen:ee}=F;const{isEditingBasket:pe,isEditingMuban:ye,isEditingCombo:Ae}=n,{is_org_project:we}=c,_e=!!(w!=null&&w.id);return{currentPopupPanel:t,isEditingBasket:pe||ye,isEditingCombo:Ae,currentDesignOptions:s,isOrgProject:we,layout:d,isLoggedIn:_e,isEmptyScreen:ee,currentUser:w,currentOrg:P,layoutV9:X}}),y7=(0,o.Ng)(t=>f7(t))(g7);var x7=e(78765);const v7=u.Ay.div.withConfig({displayName:"styles__StyledResourcesPanel",componentId:"sc-1qiqks-0"})(["position:absolute;z-index:104;margin-right:14px;display:flex;flex-direction:row-reverse;.sideBar{margin-left:8px;}"]);var b7=e(83012);class C7 extends r.PureComponent{componentDidMount(){var n,s;const{dispatch:c,layoutV9:d}=this.props,w=(0,b7.XM)();d==="recommend"&&!w&&!((n=MB.commonGuideHelper)!=null&&n.checkGuideHasShown(Ha.c.GUIDE_NOVICE_V9_2408))&&!((s=MB.commonGuideHelper)!=null&&s.checkGuideHasShown(Ha.c.GUIDE_NOVICE_V9_2408_STEP_1))&&setTimeout(()=>{c({type:"left-panel:collapse:panel:show"})},0)}render(){const{isShowRightPanel:n,zIndex:s,isEditingPanel:c}=this.props;return(0,i.jsxs)(v7,{className:Ha.c.GUIDE_POPUP_PANEL,style:{right:n?I.xM:0,top:c?126:88,zIndex:s},children:[(0,i.jsx)(y7,{}),(0,i.jsx)(x7.A,{})]})}}const w7=(0,m.Mz)([tc.UI,pt.OW,pt.dG,y.r,C2.C,T.MZ],(t,n,s,c,d,w)=>{let{isEditingBasket:P,isEditingMuban:F}=c,{isEmptyScreen:X}=d;const ee=I.pq+s.indexOf(n);return{isEditingPanel:P||F,isShowRightPanel:t&&!X,zIndex:ee,layoutV9:w}}),S7=(0,o.Ng)(t=>w7(t))(C7);var A7=e(52120),$y=e(58197),qy=e(15046),s1=e(65164),gh=e(98712),rp=e(5434);const I7=u.Ay.div.withConfig({displayName:"styles__DraftInlineToolbarDiv",componentId:"sc-16lqqoe-0"})(["position:absolute;height:42px;min-width:42px;display:flex;flex-direction:row;justify-content:center;align-items:center;transform:translateX(-50%);-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transition:transform 0.15s cubic-bezier(.3,1.2,.2,1);padding-left:6px;padding-right:6px;background:",";border-radius:6px;box-sizing:border-box;box-shadow:0px 4px 10px 0px rgba(0,0,0,0.1);z-index:5;border:1px solid ",";.draft-separator-v{height:18px;border-right:1px solid ",";margin-left:6px;margin-right:6px;}.draft-separator-h{width:100%;border-bottom:1px solid ",";margin-top:3px;margin-bottom:3px;}.draft-inline{&.svg-icon{color:",";width:28px;height:28px;}}.draft-link{cursor:pointer;&.svg-icon{width:28px;height:28px;color:",";}}.draft-image{cursor:pointer;&.svg-icon{width:28px;height:28px;}}.content-container{.svg-icon{color:",";}.option-title{color:",";}&.draft-block-type-options{width:136px;padding:8px;.svg-icon{margin-left:7px;margin-right:8px;}.option-title{flex:1;font-size:12px;line-height:16px;font-weight:400;}.draft-check{width:16px;height:16px;margin-right:0;margin-left:10px;}&:lang(en){width:140px;.svg-icon{margin-left:0px;margin-right:6px;}}}&.draft-alignment-options{width:146px;padding:8px;&:lang(en){width:auto;}.svg-icon{margin-right:10px;}.option-title{flex:1;font-size:12px;line-height:16px;font-weight:400;&:lang(en){white-space:nowrap;}}.draft-check{width:16px;height:16px;margin-right:2px;}}&.draft-font-color-options{width:116px;height:60px;padding:4px 4px 4px 6px;flex-direction:row;flex-wrap:wrap;.draft-toolbar-dropdown-option{width:16px;height:16px;display:flex;flex-direction:row;justify-content:center;align-items:center;margin:3px 5px;padding:0;background-color:transparent;box-sizing:border-box;outline:none;}}&.draft-bg-color-options{width:142px;height:60px;padding:4px 4px 4px 6px;flex-direction:row;flex-wrap:wrap;.draft-toolbar-dropdown-option{width:16px;height:16px;display:flex;flex-direction:row;justify-content:center;align-items:center;margin:3px 5px;padding:0;background-color:transparent;box-sizing:border-box;outline:none;}}&.draft-border-options{.draft-toolbar-dropdown-option{width:16px;height:16px;display:flex;flex-direction:row;justify-content:center;align-items:center;padding:0;background-color:transparent;box-sizing:border-box;outline:none;}}&.draft-inline-options{padding:5px;width:max-content;flex-direction:row;flex-wrap:wrap;.draft-toolbar-dropdown-option{width:28px;height:28px;display:flex;flex-direction:row;justify-content:center;align-items:center;margin:0 2px 0 0;padding:0;background-color:transparent;box-sizing:border-box;border-radius:4px;&:last-child{margin:0;}&.active{background-color:",";}&:hover{background-color:",";}}.svg-icon{width:28px;height:28px;}}&.draft-fontsize-options{width:136px;padding:8px;.svg-icon,.draft-check{width:16px;height:16px;margin-right:13px;}.option-title{font-size:12px;line-height:16px;font-weight:400;}}&.draft-image-options{width:136px;padding:8px;.svg-icon{width:16px;height:16px;margin-right:10px;}.option-title{font-size:12px;line-height:16px;font-weight:400;}}&.draft-info-options{width:136px;padding:8px;.draft-toolbar-dropdown-option{display:flex;justify-content:space-between;padding:0 12px;align-items:center;}.left-label{font-size:12px;line-height:16px;}.right-content{display:flex;justify-content:center;align-items:center;}}.floating-tooltip{background-color:",";color:",";}}.content-container{&.draft-block-type-options{border-radius:8px;}&.draft-alignment-options{border-radius:8px;}&.draft-fontsize-options{border-radius:8px;}&.draft-image-options{border-radius:8px;}&.draft-info-options{border-radius:8px;}}"],t=>t.theme.color_bg_white,t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_text_L1,t=>t.theme.color_text_L1,t=>t.theme.color_text_L1,t=>t.theme.color_text_L1,t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_background_white_modal,t=>t.theme.color_text_L1),M7=u.Ay.div.withConfig({displayName:"styles__StyledDraftFontColorIconDiv",componentId:"sc-16lqqoe-1"})(["border-radius:4px;&.active{background-color:",";}.svg-icon.draft-font-color{width:28px;height:28px;path:last-child{fill:",";}}"],t=>t.theme.color_btn_secondary_active,t=>t.color?t.color:"unset"),T7=u.Ay.div.withConfig({displayName:"styles__StyledDraftFontColorItemDiv",componentId:"sc-16lqqoe-2"})(["width:100%;height:100%;box-sizing:border-box;border-radius:50%;background-color:",";border:1px solid ",";outline:none;outline-offset:1px;&.active{outline:1px solid rgba(22,132,252,1);}"],t=>t.value,t=>t.borderColor),e3=u.Ay.div.withConfig({displayName:"styles__StyledDraftBgColorIconDiv",componentId:"sc-16lqqoe-3"})(["width:100%;height:100%;justify-content:center !important;"]),t3=u.Ay.div.withConfig({displayName:"styles__StyledDraftBgColorActiveDiv",componentId:"sc-16lqqoe-4"})(["width:14px;height:14px;box-sizing:border-box;border-radius:50%;background-color:",";border:1px solid ",";"],t=>t.value,t=>t.borderColor),T4=u.Ay.div.withConfig({displayName:"styles__StyledDraftBorderColorItemDiv",componentId:"sc-16lqqoe-5"})(["width:16px;height:16px;box-sizing:border-box;border-radius:50%;background-color:",";border:1px solid ",";outline:none;outline-offset:1px;&.active{outline:1px solid rgba(22,132,252,1);}"],t=>t.value,t=>t.borderColor),o3=u.Ay.div.withConfig({displayName:"styles__StyledDraftBgColorItemTransparentDiv",componentId:"sc-16lqqoe-6"})(["width:16px;height:16px;box-sizing:border-box;border-radius:50%;outline:none;outline-offset:1px;&.active{outline:1px solid rgba(22,132,252,1);}"]);var fh=e(91416);class E7 extends r.Component{constructor(){super(...arguments),(0,p.A)(this,"$ref",null),(0,p.A)(this,"setDropdownRef",n=>{this.$ref=n}),(0,p.A)(this,"getCurFill",n=>n||{fillIsVisible:!0,fill:"solid",solidColor:4258350079}),(0,p.A)(this,"handleChange",n=>{if(!MB.action)return;const{handleColorChange:s,fill:c}=this.props;if(n==="transparent"){const d={...c,solidColor:4294967040,fillIsVisible:!1};s(d)}else s(n)})}render(){const{config:n,dropdownPosition:s,widget:c,fill:d}=this.props,w=this.getCurFill(d),{colors:P}=n,F=P.map(pe=>({...pe,fill:(0,fh.dT)(pe.color)}));let X=F.find(pe=>pe.fill.solidColor===w.solidColor);if(!X){const pe=(0,fh.n7)({fill:d,width:c.w,height:c.h});X={color:pe,borderColor:pe.replace(/,1\)/,",0.5)"),fill:w}}const ee=!(d!=null&&d.fillIsVisible);return(0,i.jsx)(gh.A,{top:s==="bottom"?40:-72,left:-56,title:n.title,trigger:(0,i.jsx)("div",{className:"trigger-container",style:{width:"28px",padding:0},children:(0,i.jsx)(e3,{className:"icon",children:ee?(0,i.jsx)(Je.C,{name:"floating_toolbar/border/flower2",isColorPure:!0,size:14}):(0,i.jsx)(t3,{value:X.color,borderColor:X.borderColor,className:n.className})})}),children:(0,i.jsxs)("div",{className:"content-container draft-bg-color-options",children:[(0,i.jsx)(rp.A,{value:"rgba(255, 255, 255, 1)",active:ee,title:"",supTitle:n.title,widget:c,onClick:()=>this.handleChange("transparent"),children:(0,i.jsx)(o3,{className:ee?"active":"",children:(0,i.jsx)(Je.C,{name:"floating_toolbar/border/flower2",isColorPure:!0,size:16,onClick:()=>this.handleChange("transparent")})})}),F.map((pe,ye)=>{let{color:Ae,borderColor:we,fill:_e}=pe;return(0,i.jsx)(rp.A,{value:Ae,active:X.fill.solidColor===_e.solidColor,title:"",supTitle:n.title,widget:c,onClick:()=>this.handleChange(_e),children:(0,i.jsx)(T4,{value:Ae,borderColor:we,className:X.fill.solidColor===_e.solidColor?"active":""})},ye)}),(0,i.jsx)(h0.R_,{attr:"fill",color:d,pIsSolidColorOnly:!0,iconImg:{src:"/mb-proto2/images/font_color_picker.png",width:16,height:16,marginLeft:5,marginRight:5,marginTop:3,marginBottom:3},onChange:this.handleChange})]})})}}var wl=e(29758);class E4 extends r.Component{constructor(){super(...arguments),(0,p.A)(this,"$ref",null),(0,p.A)(this,"setDropdownRef",n=>{this.$ref=n}),(0,p.A)(this,"toggleColor",n=>{const{editorState:s,onChange:c,setTextV1:d}=this.props;if(s){const w=(0,wl.vS)(s,n);w&&c(w,{attr:"color"})}else d("color",n);this.$ref&&this.$ref.close&&this.$ref.close()}),(0,p.A)(this,"handleMoreChange",n=>{const s=(0,fh.$8)(n,{w:0,h:0}),c=(0,fh.wB)(s),d=(0,fh.d9)(c),{editorState:w,onChange:P,setTextV1:F}=this.props;if(w){const X=(0,wl.vS)(w,d);X&&P(X,{attr:"color"})}else F("color",(0,sd.t0)(n.solidColor))})}render(){var n;const{config:s,dropdownPosition:c,widget:d,editorState:w,getTextV1:P}=this.props,{colors:F}=s,ee=((n=P(w))==null?void 0:n.color)||F[0].color,pe=(0,fh.dT)(ee);return(0,i.jsx)(gh.A,{ref:this.setDropdownRef,top:c==="bottom"?40:-72,left:-44,closeOnContentClick:!1,title:s.title,trigger:(0,i.jsx)("div",{className:"trigger-container",style:{width:"28px",padding:0,marginRight:"2px"},children:(0,i.jsx)(M7,{color:ee,className:"icon",children:(0,i.jsx)(Je.C,{name:s.icon,className:s.className})})}),children:(0,i.jsxs)("div",{className:"content-container draft-font-color-options",children:[F.map((ye,Ae)=>{let{color:we,borderColor:_e}=ye;return(0,i.jsx)(rp.A,{value:we,active:ee===we,title:"",supTitle:s.title,widget:d,onClick:this.toggleColor,children:(0,i.jsx)(T7,{value:we,borderColor:_e,className:ee===we?"active":""})},Ae)}),(0,i.jsx)(h0.R_,{attr:"fill",color:pe,pIsSolidColorOnly:!0,iconImg:{src:"/mb-proto2/images/font_color_picker.png",width:16,height:16,marginLeft:5,marginRight:5,marginTop:3,marginBottom:3},colorPanelPosOffset:{offsetLeft:352,offsetTop:340},onChange:this.handleMoreChange})]})})}}class k4 extends r.Component{constructor(){super(...arguments),(0,p.A)(this,"toggleFontSize",n=>{const{editorState:s,setTextV1:c,onChange:d}=this.props;s?d((0,wl.xE)(s,n),{attr:"fontSize"}):c("fontsize",n)})}render(){const{config:n,dropdownPosition:s,widget:c,editorState:d,getTextV1:w}=this.props,{title:P,options:F}=n,X=!1,ee=w(d).fontSize;return(0,i.jsx)(gh.A,{title:P,top:s==="bottom"?40:-260,left:-29,disabled:X,closeOnContentClick:!0,trigger:(0,i.jsxs)("div",{className:f()("trigger-container",{disabled:X}),style:{width:"42px",marginRight:"2px"},children:[(0,i.jsx)("div",{className:"icon",style:{justifyContent:"center",fontSize:"14px",fontWeight:"bold"},children:ee||F[1]}),(0,i.jsx)("div",{className:"trigger",children:(0,i.jsx)(Je.C,{name:"draft/tri-drop",style:{width:"6px",height:"4px",color:"#999999"}})})]}),children:(0,i.jsx)("div",{className:"content-container draft-fontsize-options",children:F.map((pe,ye)=>(0,i.jsx)(rp.A,{value:pe,active:!1,title:"",supTitle:P,widget:c,onClick:this.toggleFontSize,children:(0,i.jsxs)(i.Fragment,{children:[(ee||F[1])===pe?(0,i.jsx)(Je.C,{name:"draft/check",className:"draft-check"}):(0,i.jsx)("span",{className:"draft-check"}),(0,i.jsx)("span",{className:"option-title",children:pe})]})},ye))})})}}class _4 extends r.Component{constructor(){super(...arguments),(0,p.A)(this,"toggleInlineStyle",(n,s)=>{const{editorState:c,onChange:d,setTextV1:w,widget:P}=this.props,F=P.hotAttr.type;if(c){const X=n==="bold"&&(F===J.x.WSticky||F===J.x.WTear)?(0,wl.q0)(c):c;d((0,wl.Bu)(X,n))}else w(n,s)})}render(){const{config:n,dropdownPosition:s,widget:c,getTextV1:d,editorState:w}=this.props,{options:P,className:F,title:X}=n,ee=d(w),{bold:pe,italic:ye,underline:Ae,strikethrough:we,blockType:_e}=ee;let Fe="bold";we&&(Fe="strikethrough"),Ae&&(Fe="underline"),ye&&(Fe="italic"),pe&&(Fe="bold");const Ye=n[Fe]||n.bold;return(0,i.jsx)(gh.A,{top:s==="bottom"?40:-52,left:-44,title:X,trigger:(0,i.jsxs)("div",{className:"trigger-container",style:{width:"42px"},children:[(0,i.jsx)("div",{className:"icon",children:(0,i.jsx)(Je.C,{name:Ye.icon,className:F})}),(0,i.jsx)("div",{className:"trigger",children:(0,i.jsx)(Je.C,{name:"draft/tri-drop",style:{width:"6px",height:"4px",color:"#999999"}})})]}),children:(0,i.jsx)("div",{className:"content-container draft-inline-options",children:P.map((He,tt)=>{const It=n[He];if(!It)return null;let Nt=ee[He]===!0,Lt=!1;He==="bold"&&["header-one","header-two","header-three"].includes(_e)&&(Lt=!0,Nt=!0);const Xt=!ee[He];return(0,i.jsx)(rp.A,{value:He,active:Nt,disabled:Lt,title:It.title,showTitle:!0,widget:c,onClick:()=>this.toggleInlineStyle(He,Xt),children:(0,i.jsx)(Je.C,{name:It.icon,className:It.className})},tt)})})})}}const Lm=t=>{const{config:{className:n}}=t;return(0,i.jsx)("div",{className:n})};var k7=e(8907),_7=e(81962);const P7=(0,s1.s)(()=>({getCommonProps:t=>P4(t),controlConfig:s3()})),n3=(0,s1.s)(()=>({getCommonProps:t=>P4(t),controlConfig:N7()})),s3=()=>[{component:E4,styleConfig:{inDropdown:!0,icon:"draft/font-color",className:"draft-font-color",title:I18N.TextToolbar.textColor,colors:[{color:"rgba(25, 25, 25, 1)",borderColor:"rgba(96, 96, 96, 1)"},{color:"rgba(22, 132, 252, 1)",borderColor:"rgba(0, 101, 210, 1)"},{color:"rgba(138, 56, 245, 1)",borderColor:"rgba(104, 1, 239, 1)"},{color:"rgba(102, 102, 102, 1)",borderColor:"rgba(79, 79, 79, 1)"},{color:"rgba(251, 251, 251, 1)",borderColor:"rgba(203, 199, 199, 1)"},{color:"rgba(236, 73, 84, 1)",borderColor:"rgba(226, 25, 39, 1)"},{color:"rgba(255, 159, 41, 1)",borderColor:"rgba(255, 138, 0, 1)"}]}},{component:k4,styleConfig:{inDropdown:!0,icon:void 0,className:"draft-font-size",title:I18N.TextToolbar.textSize,options:[12,14,16,18,20,28,36,48,72]}},{component:_4,styleConfig:{inDropdown:!0,icon:void 0,className:"draft-inline",title:I18N.TextToolbar.style0,options:["bold","italic","underline","strikethrough"],bold:{icon:"draft/inline/bold",className:"draft-inline-bold",title:I18N.TextToolbar.style1},italic:{icon:"draft/inline/italic",className:"draft-inline-italic",title:I18N.TextToolbar.style2},underline:{icon:"draft/inline/underline",className:"draft-inline-underline",title:I18N.TextToolbar.style3},strikethrough:{icon:"draft/inline/strikethrough",className:"draft-inline-strikethrough",title:I18N.TextToolbar.style4}}},{component:Lm,styleConfig:{inDropdown:!1,icon:void 0,className:"draft-separator-v",title:void 0}},{component:E7,styleConfig:{inDropdown:!0,className:"draft-bg-color",title:I18N.TextToolbar.backgroundColor,colors:[{color:"rgba(255, 255, 255, 1)",borderColor:"rgba(102, 102, 102, 0.3)"},{color:"rgba(230, 230, 230, 1)",borderColor:"rgba(102, 102, 102, 0.3)"},{color:"rgba(255, 158, 147, 1)",borderColor:"rgba(245, 130, 117, 1)"},{color:"rgba(157, 196, 255, 1)",borderColor:"rgba(122, 174, 252, 1)"},{color:"rgba(84, 214, 145, 1)",borderColor:"rgba(52, 197, 120, 1)"},{color:"rgba(218, 163, 255, 1)",borderColor:"rgba(205, 130, 255, 1)"},{color:"rgba(253, 209, 67, 1)",borderColor:"rgba(240, 183, 0, 1)"},{color:"rgba(255, 158, 71, 1)",borderColor:"rgba(255, 132, 22, 1)"}]},getMiddleProps:t=>{const{widget:n,refresh:s,selectedCellsInfo:c,dispatch:d}=t,{type:w}=n.hotAttr;let P=n.hotAttr.fill;if(w===J.x.WSwimlane){const{cells:ee,table:pe}=n.hotAttr.database,{x:ye,y:Ae}=c.tl;if(pe[Ae]&&pe[Ae][ye]){var F;P=(F=ee[pe[Ae][ye]])==null?void 0:F.fill}}return{fill:P,handleColorChange:ee=>{w===J.x.WSwimlane?d({type:Io.X.entryKey["entry:flow:cell:attr:set"],payload:{sup:"fill",attr:"fill",value:ee}}):d({type:"entry:widget:change",payload:{flatChgList:[{key:n.key,hotAttr:{fill:ee}}]}}),s()}}}}],N7=()=>{const t=s3();return t.slice(0,t.length-2)},P4=t=>{let{dispatch:n,refresh:s,widget:c,selectedCellsInfo:d}=t;const w=()=>{const{_getEditorState:ee}=(0,Kn.DT)();return ee&&ee()},P=function(ee,pe,ye){ye===void 0&&(ye=!0);const{_getEditorState:Ae,_setEditorState:we}=(0,Kn.DT)();let _e=ee.getCurrentInlineStyle();if(pe!=null&&pe.attr){_e=Ae().getCurrentInlineStyle();const Ye=[..._e.values()];_e=(0,Kn.Ym)(Ye,_e,ee,pe.attr.toLowerCase())}const Fe={};if(pe!=null&&pe.isImageInserted&&(Fe.isImageInserted=!0),we&&we(hi.$t.set(ee,{inlineStyleOverride:_e}),Fe),ye&&((0,_7.$B)(ee)||pe!=null&&pe.isChangeAlign)){const Ye=(0,hi.dM)(ee.getCurrentContent()),He=(0,k7.qn)(Ye);(0,op.Xq)([(0,gs.Op)(c.key,{textV1:He})])}},F=(ee,pe)=>{switch(c.hotAttr.type){case J.x.WSwimlane:{n({type:Io.X.entryKey["entry:flow:cell:attr:set"],payload:{sup:"textV1",attr:ee,value:pe}});break}default:n({type:"entry:set:text:attr",payload:{attr:i3[ee],value:pe}})}s()},X=ee=>{switch(c.hotAttr.type){case J.x.WSwimlane:{const{cells:pe,table:ye}=c.hotAttr.database,{x:Ae,y:we}=d.tl;if(ye[we]&&ye[we][Ae]){const{richTextV1:_e,textV1:Fe}=pe[ye[we][Ae]];return(0,$1.mj)({baseItem:{type:"wSwimlane",richTextV1:_e,textV1:Fe},isEditing:!!ee,richTextEditorState:ee})}return{}}case J.x.WTear:case J.x.WSticky:return(0,$1.mj)({baseItem:{type:"wSticky",richTextV1:{},textV1:c.hotAttr.textV1},isEditing:!!ee,richTextEditorState:ee});default:return(0,$1.mj)({baseItem:{type:"wRichText",richTextV1:c.hotAttr.richTextV1,textV1:c.hotAttr.textV1},isEditing:!!ee,richTextEditorState:ee})}};return{onChange:P,editorState:w(),getEditorState:w,onEditorStateChange:P,setTextV1:F,getTextV1:X}},i3={strikethrough:"line-through",italic:"italic",bold:"boldType",fontsize:"fontSize",underline:"underline",color:"textColor"},T1=t=>n=>{const{getCommonProps:s,controlConfig:c}=t(I18N),d=s?s(n):{};return(0,i.jsx)(i.Fragment,{children:c.map((w,P)=>{const F=w.getMiddleProps?w.getMiddleProps(n):{};return(0,i.jsx)(w.component,{...n,...d,config:w.styleConfig,...F},P)})})};var E1=e(60081),N4=e(49133);const L7=t=>{const{config:n,dropdownPosition:s,widget:c,border:d,handleBorderChange:w,theme:P}=t,{bdrWidth:F,bdrColor:X,bdrStyle:ee,bdrIsVisible:pe}=d,{colors:ye}=n,Ae=(He,tt)=>{const It={...d};It[tt]=He,w(It)},we=He=>{const tt={...d};He==="transparent"?(tt.bdrIsVisible=!1,tt.bdrColor=4294967040):(tt.bdrIsVisible=!0,tt.bdrColor=He),w(tt)},_e=ye,Fe=(0,sd.t0)(X),Ye=!pe;return(0,i.jsx)(D7,{themeP:P,children:(0,i.jsx)(gh.A,{top:s==="bottom"?40:-172,left:-56,title:n.title,trigger:(0,i.jsx)("div",{className:"trigger-container",style:{width:"28px",padding:0},children:(0,i.jsx)("div",{style:{display:"inline-flex"},children:pe?Fe!=="rgba(251,251,251,1)"?(0,i.jsx)("svg",{width:"28",height:"28",fill:"none",viewBox:"0 0 28 28",children:(0,i.jsx)("circle",{cx:"14",cy:"14",r:"5.5",stroke:Fe,strokeWidth:"3"})}):(0,i.jsx)(Je.C,{size:28,isColorPure:!0,name:"floating_toolbar/border/white"}):(0,i.jsx)(Je.C,{size:28,isColorPure:!0,name:"floating_toolbar/border/flower"})})}),children:(0,i.jsxs)("div",{className:"content-container draft-border-options",children:[(0,i.jsx)("div",{children:(0,i.jsxs)("div",{className:"btn-container",children:[(0,i.jsx)("div",{className:f()("btn",{isActive:ee==="solid"}),onClick:()=>Ae("solid","bdrStyle"),children:(0,i.jsx)(Je.C,{name:"floating_toolbar/border/solid"})}),(0,i.jsx)("div",{className:f()("btn",{isActive:ee==="dashed"}),onClick:()=>Ae("dashed","bdrStyle"),children:(0,i.jsx)(Je.C,{name:"floating_toolbar/border/dashed"})}),(0,i.jsx)("div",{className:f()("btn",{isActive:ee==="dotted"}),onClick:()=>Ae("dotted","bdrStyle"),children:(0,i.jsx)(Je.C,{name:"floating_toolbar/border/dotted"})})]})}),(0,i.jsxs)("div",{className:"bdr-width-container",children:[(0,i.jsx)(Je.C,{name:"floating_toolbar/border/desc"}),(0,i.jsx)("div",{className:"bdr-text",children:I18N.pInspect.stroke}),(0,i.jsx)(E1.A,{className:"bdr-input",attr:"bdrWidth",value:F,optionList:N4.$d,onConfirm:Ae,menuClassName:"bdr-width-input-menu"})]}),(0,i.jsxs)("div",{className:"color-options-container",children:[(0,i.jsx)(rp.A,{value:"rgba(255, 255, 255, 1)",active:Ye,title:"",supTitle:n.title,widget:c,onClick:()=>we("transparent"),children:(0,i.jsx)(o3,{className:Ye?"active":"",children:(0,i.jsx)(Je.C,{isColorPure:!0,className:"transparent-icon",name:"floating_toolbar/border/flower2",size:16,onClick:()=>we("transparent")})})}),_e.map((He,tt)=>{let{color:It,borderColor:Nt,fill:Lt}=He;const Xt=X===Lt.solidColor;return(0,i.jsx)(rp.A,{value:Lt.solidColor,active:Xt,title:"",supTitle:n.title,widget:c,onClick:we,children:(0,i.jsx)(T4,{value:It,borderColor:Nt,className:Xt?"active":""})},tt)}),(0,i.jsx)(h0.R_,{attr:"bdrColor",color:X,pIsSolidColorOnly:!0,iconImg:{src:"/mb-proto2/images/font_color_picker.png",width:16,height:16},onChange:we})]})]})})})},D7=u.Ay.div.withConfig({displayName:"Border__StyledBorderStyleConTainer",componentId:"sc-1ftoqob-0"})(["width:100%;.content-container{width:148px;height:162px;justify-content:center;flex-direction:column;align-items:center;gap:14px;padding:20px 13px;}.btn-container{display:grid;grid-template-columns:repeat(3,33.33%);width:124px;height:26px;padding:0 2px;align-items:center;background:",";border-radius:4px;.btn{cursor:pointer;border-radius:4px;display:flex;align-items:center;.svg-icon{width:auto;height:22px;}}.isActive{.svg-icon{background:",";box-shadow:0px 2px 4px rgba(0,0,0,0.09);border-radius:4px;}}}.bdr-width-container{display:flex;align-items:center;width:124px;height:28px;.bdr-svg{margin-right:4px;}.bdr-text{flex:1;margin-top:1px;margin-left:4px;}.bdr-input{width:54px;height:28px;border-radius:4px;}}.color-options-container{display:flex;flex-flow:row wrap;gap:6px 10px;}.transparent-icon{circle,path{fill:",";stroke:",";}}"],t=>t.theme.color_background_icon_hover2,t=>t.theme.color_bg_white,t=>t.theme.color_bg_white,t=>t.themeP==="dark"?"#606060":"#DBDBDB");var wg=e(7972);const B7=u.Ay.div.withConfig({displayName:"styles__StyledDraftOptionWrapperDiv",componentId:"sc-zbw0q6-0"})(["&.draft-toolbar-option-wrapper{width:max-content;display:flex;flex-direction:row;justify-content:center;align-items:center;margin-left:1px;margin-right:1px;border-radius:6px;background-color:transparent;cursor:pointer;&:hover{background-color:",";}&:active,&.active{background-color:",";}&.disabled{opacity:0.3;cursor:not-allowed;background-color:unset!important;}.swimlane-title-toggle{color:",";}}"],t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_content_text_item_state),w2=t=>{const{disabled:n,value:s,active:c,children:d,title:w,widget:P,onClick:F}=t,X=(0,r.useCallback)(ee=>{ee.preventDefault(),ee.stopPropagation(),!n&&(F&&F(s),(0,wg.Uz)({operation_type:wg.P6[s],widget:P}))},[n,F,s,P]);return(0,i.jsx)(B7,{className:f()("draft-toolbar-option-wrapper",{active:c,disabled:n}),onClick:X,children:w?(0,i.jsx)(Kc.A,{content:w,direction:"down",distance:12,className:"floating-tooltip",children:d}):d})},R7=t=>{const{dispatch:n,widget:s,refresh:c}=t,{isShowBigTitle:d}=s.hotAttr.swimConfig,w=()=>{n({type:Io.X.entryKey["entry:flow:isHideBigTilte:toggle"]})},P=pe=>{const ye=s.hotAttr.swimlaneType;let Ae="right";ye==="topBottom"&&(Ae="bottom"),n({type:Io.X.entryKey["entry:flow:col:add-del:batch"],payload:{newColLength:pe,handleType:Ae}})},X=s.hotAttr.swimlaneType==="leftRight"?s.hotAttr.database.widthList.length:s.hotAttr.database.heightList.length,ee=d?"swimlane/title/open":"swimlane/title/hide";return(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,i.jsxs)(j7,{children:[(0,i.jsx)("span",{children:I18N.Flow.swimlane_num}),(0,i.jsx)(E1.A,{min:1,max:100,value:X,onConfirm:P,className:"bdr-width-input"})]}),(0,i.jsx)(w2,{title:"\u6DFB\u52A0\u6807\u9898",onClick:w,children:(0,i.jsx)(Je.C,{className:"swimlane-title-toggle",name:ee,size:28})})]})},j7=u.Ay.div.withConfig({displayName:"SwimlaneNum__StyledInputContainer",componentId:"sc-f4cxp6-0"})(["display:flex;align-items:center;margin-right:2px;span{width:38px;margin-right:5px;color:",";}.bdr-width-input{width:48px;border:1px solid ",";border-radius:4px;}"],t=>t.theme.color_text_L1,t=>t.theme.color_btn_secondary_active),O7=[{color:"rgba(25, 25, 25, 1)",borderColor:"rgba(96, 96, 96, 1)"},{color:"rgba(102, 102, 102, 1)",borderColor:"rgba(79, 79, 79, 1)"},{color:"rgba(251, 251, 251, 1)",borderColor:"rgba(219, 219, 219, 1)"},{color:"rgba(22, 132, 252, 1)",borderColor:"rgba(0, 101, 210, 1)"},{color:"rgba(0, 160, 86, 1)",borderColor:"rgba(0, 134, 63, 1)"},{color:"rgba(155, 51, 225, 1)",borderColor:"rgba(155, 51, 225, 1)"},{color:"rgba(233, 98, 0, 1)",borderColor:"rgba(193, 93, 0, 1)"},{color:"rgba(226, 25, 39, 1)",borderColor:"rgba(226, 25, 39, 1)"}].map(t=>({...t,fill:(0,fh.dT)(t.color)})),F7=(0,s1.s)(t=>({getCommonProps:()=>({}),controlConfig:[{component:R7},{component:L7,styleConfig:{className:"draft-bg-color",title:"\u63CF\u8FB9\u989C\u8272",colors:O7},getMiddleProps:n=>{const{widget:s,refresh:c,dispatch:d}=n;return{border:s.hotAttr.border,handleBorderChange:F=>{d({type:"entry:widget:change",payload:{flatChgList:[{key:s.key,hotAttr:{border:F}}]}}),c()}}}}]}));var U7=e(99048),z7=e(64978),W7=e(82576),a3=e(9574),r3=e(41725),l3=e(98310);class V7 extends r.Component{constructor(){super(...arguments),(0,p.A)(this,"setFileRef",n=>{this.$file=n}),(0,p.A)(this,"handleFileChange",n=>{const s=n.target.files[0],{rootProject:c,currentUser:d,currentOrg:w}=this.props;(0,r3.i3)({files:[s],rootProject:c,callback:this.insertLocalImage,isFilterSvg:!1},d,w)}),(0,p.A)(this,"insertLocalImage",n=>{if(!n)return;const{onChange:s}=this.props,c=(0,l3.t$)(n);s(c)}),(0,p.A)(this,"uploadImage",n=>{if(n==="local"&&this.$file&&(this.$file.value=null,this.$file.setAttribute("value",null),this.$file.click()),n==="gallery"){const{isLeftShow:s}=this.props;!s&&this.props.dispatch({type:"left-panel:collapse:panel:show"}),this.props.dispatch({type:"entry:resource:open:assetPanel"})}})}shouldComponentUpdate(n,s,c){return n.widget.key!==this.props.widget.key}render(){const{config:n,dropdownPosition:s}=this.props,{options:c,className:d,icon:w}=n;return(0,i.jsx)(gh.A,{dark:!0,title:n.title,top:s==="bottom"?40:-78,left:-50,closeOnContentClick:!0,trigger:(0,i.jsx)("div",{className:f()("trigger-container"),style:{width:"28px",paddingLeft:0,paddingRight:0},children:(0,i.jsxs)("div",{className:"icon",children:[(0,i.jsx)("input",{ref:this.setFileRef,type:"file",onChange:this.handleFileChange,hidden:!0,multiple:!0,accept:"image/gif, image/jpg, image/jpeg, image/png, image/svg+xml"}),(0,i.jsx)(Je.C,{name:w,className:d,size:28})]})}),children:(0,i.jsx)("div",{className:"content-container draft-image-options",children:c.map((P,F)=>{const X=n[P];return X?(0,i.jsx)(rp.A,{value:P,active:!1,disabled:!1,title:X.title,onClick:this.uploadImage,children:(0,i.jsx)("span",{className:"option-title",children:X.title})},F):null})})})}}var H7=e(20571);const K7=u.Ay.div.withConfig({displayName:"styles__StyledDropDownContent",componentId:"sc-1ju690k-0"})(["width:250px;border-radius:8px;background-color:#fff;box-shadow:0 2px 10px 0 rgba(39,54,78,0.08),4px 12px 40px 0 rgba(39,54,78,0.1);transition:0.2s ease-in-out;overflow:hidden;display:flex;flex-direction:column;&.dark{background:#252626;.emoji-span{color:rgba(255,255,255,1);}}&.light .emoji-span{color:rgba(0,0,0,1);}"]),G7=u.Ay.div.withConfig({displayName:"styles__StyledMindDeleteContainer",componentId:"sc-1ju690k-1"})(["width:28px;height:28px;border-radius:4px;display:flex;align-items:center;justify-content:center;&:hover{background-color:",";}.icon{width:28px;height:28px;color:",";}"],t=>t.theme.color_btn_secondary_active,t=>t.theme.color_text_L1);class Y7 extends r.Component{constructor(){super(...arguments),(0,p.A)(this,"$ref",null),(0,p.A)(this,"setDropdownRef",n=>{this.$ref=n}),(0,p.A)(this,"handleChangeIcon",n=>{this.props.onChangeIcon(n),this.handleCloseMenu()}),(0,p.A)(this,"handleCloseMenu",()=>{this.$ref&&this.$ref.close&&this.$ref.close()})}shouldComponentUpdate(n,s,c){return n.widget.key!==this.props.widget.key}render(){const{theme:n,recentlyUsedScreenMetaIcons:s,widget:c,dropdownPosition:d,config:w}=this.props,{icon:P}=w;return(0,i.jsx)(gh.A,{ref:this.setDropdownRef,top:d==="bottom"?40:-312,closeOnContentClick:!1,title:w.title,trigger:(0,i.jsx)("div",{className:"trigger-container",style:{width:"28px",padding:0,marginRight:"2px"},children:(0,i.jsx)(Je.C,{name:P,style:{width:"28px",height:"28px"}})}),children:(0,i.jsx)(K7,{className:f()("dropDownContent",n),children:(0,i.jsx)(H7.y8,{tipClassName:"mind-node-icon-container",locale:(0,eh.w)(),canActiveIcon:!0,isShowTab:!0,theme:n,activeIcon:c.hotAttr.icon,historyList:Array.from(s),isShowReset:!1,isShowClose:!1,onChange:this.handleChangeIcon,onClose:this.handleCloseMenu})})})}}class c3 extends r.PureComponent{render(){const{config:n,onDelete:s}=this.props,{icon:c}=n;return(0,i.jsx)(G7,{children:(0,i.jsx)(Je.C,{name:c,onClick:s})})}}var Z7=e(7512);class X7 extends r.Component{constructor(){super(...arguments),(0,p.A)(this,"handleClick",()=>{const{src:n,alt:s,onImageView:c}=this.props;c&&c(n,s)})}render(){const{config:n}=this.props,{icon:s,className:c,title:d}=n;return(0,i.jsx)(Z7.A,{active:!1,title:d,onClick:this.handleClick,children:(0,i.jsx)(Je.C,{name:s,className:c,size:28})})}}const d3=t=>[{component:E4,styleConfig:{inDropdown:!0,icon:"draft/font-color",className:"draft-font-color",title:t.TextToolbar.textColor,colors:[{color:"rgba(25, 25, 25, 1)",borderColor:"rgba(96, 96, 96, 1)"},{color:"rgba(22, 132, 252, 1)",borderColor:"rgba(0, 101, 210, 1)"},{color:"rgba(138, 56, 245, 1)",borderColor:"rgba(104, 1, 239, 1)"},{color:"rgba(102, 102, 102, 1)",borderColor:"rgba(79, 79, 79, 1)"},{color:"rgba(251, 251, 251, 1)",borderColor:"rgba(203, 199, 199, 1)"},{color:"rgba(236, 73, 84, 1)",borderColor:"rgba(226, 25, 39, 1)"},{color:"rgba(255, 159, 41, 1)",borderColor:"rgba(255, 138, 0, 1)"}]}},{component:k4,styleConfig:{inDropdown:!0,icon:void 0,className:"draft-font-size",title:t.TextToolbar.textSize,options:[12,14,16,18,20,28,36,48,72]}},{component:_4,styleConfig:{inDropdown:!0,icon:void 0,className:"draft-inline",title:t.TextToolbar.style0,options:["bold","italic","underline","strikethrough"],bold:{icon:"draft/inline/bold",className:"draft-inline-bold",title:t.TextToolbar.style1},italic:{icon:"draft/inline/italic",className:"draft-inline-italic",title:t.TextToolbar.style2},underline:{icon:"draft/inline/underline",className:"draft-inline-underline",title:t.TextToolbar.style3},strikethrough:{icon:"draft/inline/strikethrough",className:"draft-inline-strikethrough",title:t.TextToolbar.style4}}}],p3={component:Lm,styleConfig:{inDropdown:!1,icon:void 0,className:"draft-separator-v",title:void 0}},Q7=t=>({component:a3.N,styleConfig:{inDropdown:!1,icon:"draft/link",className:"draft-link",title:t.TextToolbar.url0}}),h3=t=>({component:Y7,styleConfig:{inDropdown:!0,icon:"floating_toolbar/mind/icon/flag",title:t.FloatingToolbar.Mind.flag},getMiddleProps:n=>{const{selectedMindNodeKeys:s,recentlyUsedScreenMetaIcons:c,refresh:d,dispatch:w}=n,P=s[0];return{widget:sdkStore.getHotItem(P),onChangeIcon:ee=>{sdkStore.combineMergeMark("update-mindNode-icon"),w({type:"entry:widget:change",payload:{flatChgList:[{key:P,hotAttr:{icon:ee}}],shouldReBuildTree:!0,isCombineChange:!1}}),w({type:"entry:mind:update:mind-size",payload:{isCombineChange:!1}}),sdkStore.combineMerge("update-mindNode-icon"),w({type:"mind:update:state",payload:{selectedMindNodeFlagIconKey:P}});const pe=Array.from(new Set(c));pe.unshift(ee);const ye=JSON.stringify(pe.splice(0,12));w({type:"entry:update:preference-data",payload:{recently_used_screen_meta_icons:ye}}),d()}}}}),u3=t=>({component:V7,styleConfig:{icon:"draft/image",className:"draft-image",title:t.TextToolbar.image0,options:["local","gallery"],local:{className:"draft-image-local",title:t.TextToolbar.image1},gallery:{className:"draft-image-gallery",title:t.TextToolbar.image2}},getMiddleProps:n=>{const{selectedMindNodeKeys:s,refresh:c,dispatch:d}=n,w=s[0];return{onChange:F=>{const X=[{key:w,hotAttr:{image:F}}];sdkStore.combineMergeMark("update-mindNode-image"),d({type:"entry:widget:change",payload:{flatChgList:X,shouldReBuildTree:!0,isCombineChange:!1}}),d({type:"entry:mind:update:mind-size",payload:{isCombineChange:!1}}),d({type:"mind:update:state",payload:{selectedMindNodeImageKey:w}}),sdkStore.combineMerge("update-mindNode-image"),c()}}}}),m3=t=>[{component:z7.p,styleConfig:{inDropdown:!0,title:t.FloatingToolbar.Mind.bgColor,colors:["#ffffff","#e6e6e6","#ff9e93","#9dc4ff","#54d691","#daa3ff","#fdd143","#ff9e47"]},getMiddleProps:n=>{const{selectedMindNodeKeys:s,refresh:c,dispatch:d}=n;return{onChange:X=>{const ee={fill:X},pe=s.map(ye=>({key:ye,hotAttr:ee}));d({type:"entry:widget:change",payload:{flatChgList:pe}}),c()},onOpenColorPanel:()=>{d({type:"mind:update:isShallowEditText",payload:!1})},onCloseColorPanel:()=>{d({type:"mind:update:isShallowEditText",payload:!0})}}}},{component:W7.x,styleConfig:{inDropdown:!0,title:t.FloatingToolbar.Mind.stroke,className:"mind-node-stroke",colors:["#191919","#666666","#ffffff","#1684fc","#00A056","#9B33E1","#E96200","#EC4954"]},getMiddleProps:n=>{const{selectedMindNodeKeys:s,refresh:c,dispatch:d}=n;return{onChange:X=>{const ee={border:X};sdkStore.combineMergeMark("update-mindNode-stroke");const pe=s.map(ye=>({key:ye,hotAttr:ee}));d({type:"entry:widget:change",payload:{flatChgList:pe,shouldReBuildTree:!0,isCombineChange:!1}}),d({type:"entry:mind:update:mind-size",payload:{isCombineChange:!1}}),sdkStore.combineMerge("update-mindNode-stroke"),c()},onOpenColorPanel:()=>{d({type:"mind:update:isShallowEditText",payload:!1})},onCloseColorPanel:()=>{d({type:"mind:update:isShallowEditText",payload:!0})}}}}],J7=(0,s1.s)(t=>({getCommonProps:n=>g3(n),controlConfig:[...d3(t),p3,Q7(t),h3(t),u3(t),p3,...m3(t)]})),$7=(0,s1.s)(t=>({getCommonProps:n=>g3(n),controlConfig:[...d3(t),{component:Lm,styleConfig:{inDropdown:!1,icon:void 0,className:"draft-separator-v",title:void 0}},...m3(t)]})),q7=(0,s1.s)(t=>({controlConfig:[h3(t),{component:c3,styleConfig:{icon:"floating_toolbar/mind/icon/flag/delete"},getMiddleProps:n=>{const{selectedMindNodeKeys:s,refresh:c,dispatch:d}=n;return{onDelete:()=>{sdkStore.combineMergeMark("delete-mindNode-icon"),d({type:"entry:widget:change",payload:{flatChgList:[{key:s[0],hotAttr:{icon:""}}],shouldReBuildTree:!0,isCombineChange:!1}}),d({type:"mind:update:state",payload:{selectedMindNodeFlagIconKey:""}}),d({type:"entry:mind:update:mind-size",payload:{isCombineChange:!1}}),sdkStore.combineMerge("delete-mindNode-icon"),c()}}}}]})),eb=(0,s1.s)(t=>({controlConfig:[u3(t),{component:X7,styleConfig:{inDropdown:!1,icon:"draft/enlarge",className:"draft-enlarge",title:"\u9884\u89C8"},getMiddleProps:n=>{const{selectedMindNodeKeys:s,dispatch:c}=n,d=s[0],{hotAttr:{image:{imageRef:w}}}=sdkStore.getHotItem(d);return{src:(0,l3.Kf)(w),alt:"",onImageView:(X,ee)=>{c({type:"modal:update:state",payload:{imagePreviewModal:{isOpen:!0,imgSrc:X,alt:ee}}})}}}},{component:c3,styleConfig:{icon:"floating_toolbar/mind/icon/flag/delete"},getMiddleProps:n=>{const{selectedMindNodeKeys:s,refresh:c,dispatch:d}=n;return{onDelete:()=>{sdkStore.combineMergeMark("delete-mindNode-image"),d({type:"entry:widget:change",payload:{flatChgList:[{key:s[0],hotAttr:{image:{imageRef:"",imageRectWidth:0,imageRectHeight:0}}}],shouldReBuildTree:!0,isCombineChange:!1}}),d({type:"mind:update:state",payload:{selectedMindNodeImageKey:""}}),d({type:"entry:mind:update:mind-size",payload:{isCombineChange:!1}}),sdkStore.combineMerge("delete-mindNode-image"),c()}}}}]})),g3=t=>{let{dispatch:n,refresh:s,selectedMindNodeKeys:c,isShallowEditText:d}=t;const w=c[0],P=sdkStore.getHotItem(w),F=()=>{const{_getEditorState:ye}=(0,Kn.DT)();return d?null:ye&&ye()},X=(ye,Ae)=>{const{_setEditorState:we}=(0,Kn.DT)();we&&we(ye,Ae)},ee=(ye,Ae)=>{n({type:"entry:set:text:attr",payload:{attr:i3[ye],value:Ae}}),s()},pe=ye=>(0,$1.mj)({baseItem:{type:P.hotAttr.type,richTextV1:P.hotAttr.richTextV1,textV1:P.hotAttr.textV1},isEditing:!!ye,richTextEditorState:ye});return{widget:P,onChange:X,editorState:F(),getEditorState:F,onEditorStateChange:X,setTextV1:ee,getTextV1:pe}},L4=t=>{const{config:{className:n}}=t;return(0,i.jsx)("div",{className:n})};class tb extends r.Component{constructor(n){super(n),(0,p.A)(this,"handleBlockTypeChange",c=>{if(["unordered","ordered"].includes(c)){this.changeList(c);return}if(["header-one","header-two","header-three"].includes(c)){this.changeHeading(c);return}const d=_s.F.find(ee=>ee.label===c).style,{currentBlockType:w}=this.state;if(w===d)return;const{editorState:P,onChange:F}=this.props,X=(0,wl.ex)(P,d);X&&F(X,void 0,!1)}),(0,p.A)(this,"changeList",c=>{const{editorState:d,onChange:w}=this.props,P=(0,wl.MM)(d,c);P&&w(P,void 0,!1)}),(0,p.A)(this,"changeHeading",c=>{const{editorState:d,onChange:w}=this.props,P=(0,wl.WR)(d,c);P&&w(P,void 0,!1)});const{editorState:s}=n;this.state={currentBlockType:(0,wl.E7)(s),listValue:(0,wl.UT)(s)}}componentDidUpdate(n){const{editorState:s}=this.props;s!==n.editorState&&this.setState({currentBlockType:(0,wl.E7)(s),listValue:(0,wl.UT)(s)})}render(){var n;const{config:s,dropdownPosition:c,widget:d}=this.props,{options:w,className:P}=s,{currentBlockType:F,listValue:X}=this.state,ee=(n=_s.F.find(Ae=>Ae.style===F))==null?void 0:n.label;let pe="draft/block/normal",ye="draft-block-normal";if(ee){const Ae=s[ee];Ae&&(pe=Ae.icon,ye=Ae.className)}if(["unordered","ordered"].includes(X)){const Ae=s[X];Ae&&(pe=Ae.icon,ye=Ae.className)}return(0,i.jsx)(gh.A,{title:s.title,top:c==="bottom"?40:-191,left:ENV.IS_WONDER_SHARE?-10:-16,closeOnContentClick:!0,trigger:(0,i.jsxs)("div",{className:"trigger-container",style:{width:"42px"},children:[(0,i.jsx)("div",{className:"icon",children:(0,i.jsx)(Je.C,{name:pe+"/big",className:P+" "+ye,size:28})}),(0,i.jsx)("div",{className:"trigger",children:(0,i.jsx)(Je.C,{name:"draft/tri-drop",style:{width:"6px",height:"4px",color:"#999999"}})})]}),children:(0,i.jsx)("div",{className:"content-container draft-block-type-options",children:w.map((Ae,we)=>{const _e=s[Ae];return _e?Ae==="h_separator"?(0,i.jsx)(L4,{config:_e},we):(0,i.jsx)(rp.A,{value:Ae,active:ee===Ae||X===Ae,title:_e.title,onClick:this.handleBlockTypeChange,widget:d,children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Je.C,{name:_e.icon,className:_e.className,size:24}),(0,i.jsx)("span",{className:"option-title",children:_e.title})]})},we):null})})})}}class ob extends r.Component{constructor(){super(...arguments),(0,p.A)(this,"$file",null),(0,p.A)(this,"setFileRef",n=>{this.$file=n}),(0,p.A)(this,"uploadImage",n=>{if(n==="local"&&this.$file&&(this.$file.value=null,this.$file.setAttribute("value",null),this.$file.click()),n==="gallery"){const{isLeftShow:s}=this.props;!s&&this.props.dispatch({type:"left-panel:collapse:panel:show"}),this.props.dispatch({type:"entry:resource:open:assetPanel"})}}),(0,p.A)(this,"handleFileChange",n=>{const s=n.target.files[0],{rootProject:c,currentUser:d,currentOrg:w}=this.props;(0,r3.i3)({files:[s],rootProject:c,callback:this.insertLocalImage,isFilterSvg:!1},d,w)}),(0,p.A)(this,"insertLocalImage",n=>{if(!n)return;const{widget:s,editorState:c,onChange:d}=this.props,{w}=s.hotAttr,P=w;let F;n.width>=P?F=100:F=Number(n.width/P*100).toFixed(2);const X={src:n.image,width:F,height:void 0,alt:n.name},ee=(0,wl.V4)(c,X);ee&&d(ee,{isImageInserted:!0})}),(0,p.A)(this,"insertGalleryImage",n=>{let{asset:s}=n;this.insertLocalImage(s)})}componentDidMount(){tn.A.on("draft:side-toolbar:image",this.insertGalleryImage),tn.A.on("draft:side-toolbar:image-paste",this.handleFileChange)}componentWillUnmount(){tn.A.off("draft:side-toolbar:image",this.insertGalleryImage),tn.A.off("draft:side-toolbar:image-paste",this.handleFileChange)}render(){const{editorState:n,config:s,dropdownPosition:c}=this.props;let d=!1;const w=(0,wl.DN)(n),P=(0,wl.d8)(n),F=P&&P.get("type");(w||["unordered-list-item","ordered-list-item"].includes(F))&&(d=!0);const{options:X,className:ee,icon:pe}=s;return(0,i.jsx)(gh.A,{dark:!0,disabled:d,title:s.title,top:c==="bottom"?40:-78,left:-50,closeOnContentClick:!0,trigger:(0,i.jsx)("div",{className:f()("trigger-container",{disabled:d}),style:{width:"28px",paddingLeft:0,paddingRight:0},children:(0,i.jsxs)("div",{className:"icon",children:[(0,i.jsx)("input",{ref:this.setFileRef,type:"file",onChange:this.handleFileChange,disabled:d,hidden:!0,multiple:!0,accept:"image/gif, image/jpg, image/jpeg, image/png, image/svg+xml"}),(0,i.jsx)(Je.C,{name:pe,className:ee,size:28})]})}),children:(0,i.jsx)("div",{className:"content-container draft-image-options",children:X.map((ye,Ae)=>{const we=s[ye];return we?(0,i.jsx)(rp.A,{value:ye,active:!1,disabled:!1,title:we.title,onClick:this.uploadImage,children:(0,i.jsx)("span",{className:"option-title",children:we.title})},Ae):null})})})}}class nb extends r.Component{constructor(n){super(n),(0,p.A)(this,"addBlockAlignmentData",w=>{const{onChange:P,widget:F,dispatch:X,refresh:ee}=this.props,{currentIndent:pe,currentBlock:ye}=this.state,{_getEditorState:Ae}=(0,Kn.DT)(),we=Ae();let _e;if(["indent","outdent"].includes(w))(0,sn.Eg)(ye)?_e=(0,wl.H2)(we,w==="indent"?1:-1):_e=(0,wl.fM)(we,w,pe),_e&&P(_e,void 0,!1);else{const Fe=F.hotAttr["!haVersion"],Ye=we.getSelection();Fe===1?((0,Pt.c)({value:3,attr:"!haVersion",selections:[F.key],dispatch:X}),(0,Pt.c)({value:w,attr:"horizontalAlign",supAttr:"textV0",selections:[F.key],dispatch:X})):(0,Pt.c)({value:w,attr:"horizontalAlign",supAttr:"textV0",selections:[F.key],dispatch:X}),setTimeout(()=>{const He=hi.$t.forceSelection(we,Ye);P(He,{isChangeAlign:!0})},4)}}),(0,p.A)(this,"isIndentDisabled",()=>{const{currentBlock:w,previousBlock:P,currentIndent:F}=this.state;return(0,sn.Eg)(w)?!P||!(0,sn.Eg)(w)||P.get("type")!==w.get("type")||P.get("depth")<w.get("depth")||w.get("depth")>=2:F===2}),(0,p.A)(this,"isOutdentDisabled",()=>{const{currentBlock:w,currentIndent:P}=this.state;return(0,sn.Eg)(w)?!w||!(0,sn.Eg)(w)||w.get("depth")<=0:P===0});const{editorState:s,widget:c}=n,d=c.hotAttr["!haVersion"];this.state={currentTextAlignment:d===1?(0,wl.j1)(s):c.hotAttr.textV0.horizontalAlign,currentIndent:(0,wl.DN)(s),currentBlock:(0,wl.d8)(s),previousBlock:(0,wl.HA)(s)}}componentWillUnmount(){}componentDidUpdate(n){const{editorState:s,widget:c}=this.props,d=c.hotAttr["!haVersion"];s!==n.editorState?this.setState({currentTextAlignment:d===1?(0,wl.j1)(s):c.hotAttr.textV0.horizontalAlign,currentIndent:(0,wl.DN)(s),currentBlock:(0,wl.d8)(s),previousBlock:(0,wl.HA)(s)}):c.hotAttr.textV0.horizontalAlign!==n.widget.hotAttr.textV0.horizontalAlign&&this.setState({currentTextAlignment:d===1?(0,wl.j1)(s):c.hotAttr.textV0.horizontalAlign})}render(){var n;const{config:s,dropdownPosition:c,widget:d,editorState:w}=this.props,{options:P,className:F,icon:X}=s,{currentTextAlignment:ee,currentIndent:pe}=this.state,ye=this.isIndentDisabled(),Ae=this.isOutdentDisabled(),we=((n=s[ee])==null?void 0:n.icon)||"draft/text-align/left";return(0,i.jsx)(gh.A,{dark:!0,title:s.title,top:c==="bottom"?40:-189,left:-25,closeOnContentClick:!0,trigger:(0,i.jsxs)("div",{className:"trigger-container",style:{width:"42px"},children:[(0,i.jsx)("div",{className:"icon",children:(0,i.jsx)(Je.C,{name:we+"/big",className:F,size:28})}),(0,i.jsx)("div",{className:"trigger",children:(0,i.jsx)(Je.C,{name:"draft/tri-drop",style:{width:"6px",height:"4px",color:"#999999"}})})]}),children:(0,i.jsx)("div",{className:"content-container draft-alignment-options",children:P.map((_e,Fe)=>{const Ye=s[_e];return Ye?_e==="h_separator"?(0,i.jsx)(L4,{config:Ye},Fe):(0,i.jsx)(rp.A,{value:_e,active:ee===_e,disabled:_e==="indent"?ye:_e==="outdent"?Ae:!1,title:Ye.title,widget:d,onClick:this.addBlockAlignmentData,children:(0,i.jsxs)(i.Fragment,{children:[["left","center","right","justify"].includes(_e)?ee===_e?(0,i.jsx)(Je.C,{name:"draft/check",className:"draft-check"}):(0,i.jsx)("span",{className:"draft-check"}):_e==="indent"&&pe===2?(0,i.jsx)(Je.C,{name:"draft/check",className:"draft-check"}):_e==="outdent"&&pe===0?(0,i.jsx)(Je.C,{name:"draft/check",className:"draft-check"}):(0,i.jsx)("span",{className:"draft-check"}),(0,i.jsx)(Je.C,{name:Ye.icon,className:Ye.className,size:24}),(0,i.jsx)("span",{className:"option-title",children:Ye.title})]})},Fe):null})})})}}class sb extends r.Component{constructor(n){super(n),(0,p.A)(this,"$ref",null),(0,p.A)(this,"setDropdownRef",s=>{this.$ref=s}),(0,p.A)(this,"getCurFill",s=>s||{fillIsVisible:!0,fill:"solid",solidColor:4258350079}),(0,p.A)(this,"handleChange",s=>{if(!MB.action)return;const{handleColorChange:c,fill:d}=this.props;if(s==="transparent"){const w={...d,solidColor:4294967040,fillIsVisible:!1};c(w),this.setState({curFill:w})}else c(s),this.setState({curFill:s})}),this.state={curFill:this.getCurFill(n.fill)}}render(){const{curFill:n}=this.state,{config:s,dropdownPosition:c,widget:d}=this.props,{colors:w}=s,P=w.map(ee=>({...ee,fill:(0,fh.dT)(ee.color)}));let F=P.find(ee=>ee.fill.solidColor===n.solidColor);if(!F){const ee=(0,fh.n7)({fill:n,width:d.w,height:d.h});F={color:ee,borderColor:ee.replace(/,1\)/,",0.5)"),fill:n}}const X=!n.fillIsVisible;return(0,i.jsx)(gh.A,{top:c==="bottom"?40:-72,left:-56,title:s.title,trigger:(0,i.jsx)("div",{className:"trigger-container",style:{width:"28px",padding:0},children:(0,i.jsx)(e3,{className:"icon",children:X?(0,i.jsx)(Je.C,{name:"floating_toolbar/border/flower2",isColorPure:!0,size:14}):(0,i.jsx)(t3,{value:F.color,borderColor:F.borderColor,className:s.className})})}),children:(0,i.jsx)("div",{className:"content-container draft-bg-color-options",children:P.map((ee,pe)=>{let{color:ye,borderColor:Ae,fill:we}=ee;return(0,i.jsx)(rp.A,{value:ye,active:F.fill.solidColor===we.solidColor,title:"",supTitle:s.title,widget:d,onClick:()=>this.handleChange(we),children:(0,i.jsx)(T4,{value:ye,borderColor:Ae,className:F.fill.solidColor===we.solidColor?"active":""})},pe)})})})}}class ib extends r.PureComponent{constructor(){super(...arguments),(0,p.A)(this,"handleInfoChange",()=>{const{updateInfo:n,info:s,currentUser:c}=this.props,d=c.name,w=Fs()().valueOf();n({...s,author:d,time:w})}),(0,p.A)(this,"renderOption",(n,s)=>{const{config:c,info:d,handleAuthorChange:w,handleDateChange:P,widget:F}=this.props,X=c[n];if(!X)return null;if(n==="h_separator")return(0,i.jsx)(L4,{config:X},s);if(n==="update")return(0,i.jsx)(rp.A,{value:n,title:X.title,widget:F,active:!1,onClick:this.handleInfoChange,children:X.title},s);const pe={author:d.showAuthor,time:d.showTime}[n],ye=Ae=>{n==="author"?w(Ae):n==="time"&&P(Ae)};return(0,i.jsx)(rp.A,{preventDefault:!1,value:n,title:X.title,widget:F,active:!1,children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("label",{className:"left-label",children:X.title}),(0,i.jsx)("div",{className:"right-content",children:(0,i.jsx)(rh.A,{isIOS:!0,size:"small",isChecked:pe,onChange:ye})})]})},s)})}render(){const{config:n,dropdownPosition:s}=this.props,{options:c,className:d,icon:w}=n,P={width:28,paddingLeft:0,paddingRight:0};return(0,i.jsx)(gh.A,{dark:!0,title:n.title,top:s==="bottom"?40:-114,left:-54,trigger:(0,i.jsx)("div",{className:"trigger-container",style:P,children:(0,i.jsx)(Je.C,{name:w,className:"icon "+d,size:28})}),children:(0,i.jsx)("div",{className:"content-container draft-info-options",children:c.map((F,X)=>this.renderOption(F,X))})})}}const ab=(0,s1.s)(()=>({getCommonProps:t=>P4(t),controlConfig:[{component:tb,styleConfig:{inDropdown:!0,icon:void 0,className:"draft-block-type",title:I18N.TextToolbar.syntaxDesc,options:["Normal","H1","H2","H3","h_separator","unordered","ordered"],Normal:{icon:"draft/block/normal",className:"draft-block-normal",title:I18N.TextToolbar.syntax1},H1:{icon:"draft/block/h1",className:"draft-block-h1",title:I18N.TextToolbar.syntax2},H2:{icon:"draft/block/h2",className:"draft-block-h2",title:I18N.TextToolbar.syntax3},H3:{icon:"draft/block/h3",className:"draft-block-h3",title:I18N.TextToolbar.syntax4},h_separator:{icon:void 0,className:"draft-separator-h",title:void 0},unordered:{icon:"draft/list/unordered",className:"draft-list-unordered",title:I18N.TextToolbar.syntax5},ordered:{icon:"draft/list/ordered",className:"draft-list-ordered",title:I18N.TextToolbar.syntax6}}},{component:E4,styleConfig:{inDropdown:!0,icon:"draft/font-color",className:"draft-font-color",title:I18N.TextToolbar.textColor,colors:[{color:"rgba(25, 25, 25, 1)",borderColor:"rgba(96, 96, 96, 1)"},{color:"rgba(22, 132, 252, 1)",borderColor:"rgba(0, 101, 210, 1)"},{color:"rgba(138, 56, 245, 1)",borderColor:"rgba(104, 1, 239, 1)"},{color:"rgba(102, 102, 102, 1)",borderColor:"rgba(79, 79, 79, 1)"},{color:"rgba(251, 251, 251, 1)",borderColor:"rgba(203, 199, 199, 1)"},{color:"rgba(236, 73, 84, 1)",borderColor:"rgba(226, 25, 39, 1)"},{color:"rgba(255, 159, 41, 1)",borderColor:"rgba(255, 138, 0, 1)"}]}},{component:k4,styleConfig:{inDropdown:!0,icon:void 0,className:"draft-font-size",title:I18N.TextToolbar.textSize,options:[12,14,16,18,20,28,36,48,72]}},{component:_4,styleConfig:{inDropdown:!0,icon:void 0,className:"draft-inline",title:I18N.TextToolbar.style0,options:["bold","italic","underline","strikethrough"],bold:{icon:"draft/inline/bold",className:"draft-inline-bold",title:I18N.TextToolbar.style1},italic:{icon:"draft/inline/italic",className:"draft-inline-italic",title:I18N.TextToolbar.style2},underline:{icon:"draft/inline/underline",className:"draft-inline-underline",title:I18N.TextToolbar.style3},strikethrough:{icon:"draft/inline/strikethrough",className:"draft-inline-strikethrough",title:I18N.TextToolbar.style4}}},{component:nb,styleConfig:{inDropdown:!0,icon:"draft/alignment",className:"draft-alignment",title:I18N.TextToolbar.align0,options:["left","center","right","justify","h_separator","indent","outdent"],left:{icon:"draft/text-align/left",className:"draft-text-align-left",title:I18N.TextToolbar.align1},center:{icon:"draft/text-align/center",className:"draft-text-align-center",title:I18N.TextToolbar.align2},right:{icon:"draft/text-align/right",className:"draft-text-align-right",title:I18N.TextToolbar.align3},justify:{icon:"draft/text-align/justify",className:"draft-text-align-justify",title:I18N.TextToolbar.align4},h_separator:{icon:void 0,className:"draft-separator-h",title:void 0},indent:{icon:"draft/list/indent",className:"draft-list-indent",title:I18N.TextToolbar.align5},outdent:{icon:"draft/list/outdent",className:"draft-list-outdent",title:I18N.TextToolbar.align6}}},{component:Lm,styleConfig:{inDropdown:!1,icon:void 0,className:"draft-separator-v",title:void 0}},{component:a3.N,styleConfig:{inDropdown:!1,icon:"draft/link",className:"draft-link",title:I18N.TextToolbar.url0}},{component:ob,styleConfig:{icon:"draft/image",className:"draft-image",title:I18N.TextToolbar.image0,options:["local","gallery"],local:{className:"draft-image-local",title:I18N.TextToolbar.image1},gallery:{className:"draft-image-gallery",title:I18N.TextToolbar.image2}}},{component:ib,styleConfig:{icon:"draft/create-info",className:"draft-create-info",title:I18N.TextToolbar.Info,options:["author","time","h_separator","update"],author:{className:"draft-info-author",title:I18N.TextToolbar.author},time:{className:"draft-info-time",title:I18N.TextToolbar.date},h_separator:{icon:void 0,className:"draft-separator-h",title:void 0},update:{className:"draft-info-update",title:I18N.TextToolbar.update}},getMiddleProps:t=>{const{widget:n,dispatch:s,refresh:c}=t,d=n.hotAttr.info,w=(ee,pe)=>{s({type:"entry:widget:change",payload:{flatChgList:[{key:n.key,hotAttr:ee}]}}),s({type:"entry:update:preference_flags_by_sticky",payload:{flags:pe}}),c()};return{info:d,updateInfo:ee=>{w({info:ee},{info:ee}),MB.notice({text:"\u5DF2\u66F4\u65B0",type:"success"})},handleAuthorChange:ee=>{const pe={...d,showAuthor:ee,author:d.author||MB.user.name};w({info:pe},{info:pe})},handleDateChange:ee=>{const pe={...d,showTime:ee,time:d.time||new Date().getTime()};w({info:pe},{info:pe})}}}},{component:sb,styleConfig:{inDropdown:!0,className:"draft-bg-color",title:I18N.TextToolbar.backgroundColor,colors:[{color:"rgba(172, 188, 209, 1)",borderColor:"rgba(144, 170, 204, 1)"},{color:"rgba(255, 158, 147, 1)",borderColor:"rgba(245, 130, 117, 1)"},{color:"rgba(255, 158, 71, 1)",borderColor:"rgba(255, 132, 22, 1)"},{color:"rgba(253, 209, 67, 1)",borderColor:"rgba(240, 183, 0, 1)"},{color:"rgba(157, 196, 255, 1)",borderColor:"rgba(122, 174, 252, 1)"},{color:"rgba(56, 205, 231, 1)",borderColor:"rgba(42, 180, 204, 1)"},{color:"rgba(84, 214, 145, 1)",borderColor:"rgba(52, 197, 120, 1)"},{color:"rgba(218, 163, 255, 1)",borderColor:"rgba(205, 130, 255, 1)"},{color:"rgba(255, 148, 228, 1)",borderColor:"rgba(251, 113, 216, 1)"},{color:"rgba(230, 230, 230, 1)",borderColor:"rgba(102, 102, 102, 0.3)"}]},getMiddleProps:t=>{const{widget:n,dispatch:s}=t;return{fill:n.hotAttr.fill,handleColorChange:w=>{s({type:"entry:widget:change",payload:{flatChgList:[{key:n.key,hotAttr:{fill:w}}]}})}}}}]})),D4=u.Ay.div.withConfig({displayName:"style__StyledCodeGenerateItem",componentId:"sc-ww7xkw-0"})(["display:flex;align-items:center;color:",";font-size:12px;font-weight:500;line-height:16px;"],t=>t.theme.color_text_L1),rb=(0,u.Ay)(D4).withConfig({displayName:"style__StyledCodeGenerateConfirm",componentId:"sc-ww7xkw-1"})(["height:32px;padding:0 8px 0 4px;border-radius:6px;background-color:transparent;cursor:pointer;&:hover{background-color:",";}&:active{background-color:",";}span{white-space:nowrap;}"],t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_btn_secondary_active),lb=(0,u.Ay)(D4).withConfig({displayName:"style__StyledCodeGenerateOrder",componentId:"sc-ww7xkw-2"})([".order{padding:6px;}"]),JT=u.Ay.div.withConfig({displayName:"style__StyledIconContainer",componentId:"sc-ww7xkw-3"})(["margin-right:4px;"]),Dm=(0,u.Ay)(Je.C).withConfig({displayName:"style__StyledSvgIcon",componentId:"sc-ww7xkw-4"})(["width:32px;height:32px;padding:4px;color:",";&.feedback-btn.unsatisfied{transform:rotate(180deg);&.active{color:",";}}&.feedback-btn.satisfied.active{color:",";}"],t=>t.theme.color_text_L1,t=>t.theme.color_error,t=>t.theme.color_text_link_normal),cb=(0,u.Ay)(D4).withConfig({displayName:"style__StyledCodeGenerateLoading",componentId:"sc-ww7xkw-5"})([".request-loading{width:24px;height:24px;}.request-loading{animation:loading 3s linear infinite;@keyframes loading{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}}"]),db=t=>{const{dispatch:n}=t,s=()=>{n({type:"entry:aiComponent:float-bar:confirm"})};return(0,i.jsxs)(rb,{onClick:s,children:[(0,i.jsx)(Je.C,{className:"confirm-btn",name:"chatGTP/ai-component/float-bar/confirm",size:24}),(0,i.jsx)("span",{children:"\u786E\u8BA4"})]})};var pd=e(99895);const pb=t=>{const{dispatch:n}=t,s=(0,o.d4)(pd.ys),c=(0,o.d4)(pd.wk);if(c.length<=1)return null;const d=X=>{n({type:"entry:aiComponent:float-bar:handle-order",payload:{type:X}})},w=s+1+"/"+c.length,P=s===0,F=s===c.length-1;return(0,i.jsxs)(lb,{children:[(0,i.jsx)(w2,{disabled:P,title:"\u4E0A\u4E00\u4E2A",onClick:()=>d("prev"),children:(0,i.jsx)(Dm,{className:"prev",name:"chatGTP/ai-component/float-bar/prev",size:24})}),(0,i.jsx)("div",{className:"order",children:w}),(0,i.jsx)(w2,{disabled:F,title:"\u4E0B\u4E00\u4E2A",onClick:()=>d("next"),children:(0,i.jsx)(Dm,{className:"next",name:"chatGTP/ai-component/float-bar/next",size:24})})]})},hb=t=>{const{dispatch:n}=t,s=()=>{n({type:"entry:aiComponent:float-bar:retry"})};return(0,i.jsx)(w2,{title:"\u91CD\u65B0\u751F\u6210",onClick:s,children:(0,i.jsx)(Dm,{className:"retry-btn",name:"chatGTP/ai-component/float-bar/retry",size:24})})},f3=t=>{const{dispatch:n,config:s,iconClx:c}=t,{title:d,type:w}=s,P=()=>{n({type:"entry:aiComponent:float-bar:feedback",payload:{type:w}})};return(0,i.jsx)(w2,{title:d,onClick:P,children:(0,i.jsx)(Dm,{className:f()("feedback-btn",w,c),name:"chatGPT/ai-component/float-bar/feedback",size:24})})},ub=t=>{const{dispatch:n}=t,s=(0,o.d4)(pd.L2),c=()=>{const d=sdkStore.getHotItem(s).sup;n({type:"entry:preview:widget",payload:{activeWidgetKey:s,activePageKey:d}})};return(0,i.jsx)(w2,{title:"\u6F14\u793A",onClick:c,children:(0,i.jsx)(Dm,{className:"preview-btn",name:"chatGTP/ai-component/float-bar/preview",size:24})})},mb=(0,s1.s)(t=>({controlConfig:[{component:pb},{component:db},{component:Lm,styleConfig:{inDropdown:!1,icon:void 0,className:"draft-separator-v",title:void 0}},{component:hb},{component:ub},{component:f3,styleConfig:{title:"\u6EE1\u610F",type:"satisfied"},getMiddleProps:n=>y3(n.aiComponentFeedbackStatus,"satisfied")},{component:f3,styleConfig:{title:"\u5DEE\u5F3A\u4EBA\u610F",type:"unsatisfied"},getMiddleProps:n=>y3(n.aiComponentFeedbackStatus,"unsatisfied")}]})),y3=(t,n)=>({iconClx:t===n?"active":""}),gb=()=>(0,i.jsx)(cb,{children:(0,i.jsx)(Je.C,{className:"request-loading",name:"chatGPT/tip-loading",isColorPure:!0})}),fb=(0,s1.s)(t=>({controlConfig:[{component:gb}]})),yb=(t,n)=>{switch(t){case J.x.WSwimlane:return n.swimlaneIsDeepEditing?T1(n3):n.swimlaneIsShallowEditing?T1(P7):T1(F7);case J.x.WMind:{var s;const c=(s=n.selectedMindNodeKeys)==null?void 0:s.length;if(c){const d=c===1,w=d&&n.selectedMindNodeKeys.includes(n.selectedMindNodeFlagIconKey),P=d&&n.selectedMindNodeKeys.includes(n.selectedMindNodeImageKey);return T1(c>1?$7:w?q7:P?eb:J7)}else return T1(U7.l)}case J.x.WTear:case J.x.WSticky:return T1(ab);case J.x.WCode:{const{isRetryGenerateLoading:c}=n;return T1(c?fb:mb)}default:return T1(n3)}},xb=-80,vb=(0,m.Mz)([S.lh,ce.p$,S.pO,A.$W,pd.i8],(t,n,s,c,d)=>({editingCid:t,selection:n,isDraggingItem:s,isShowFloatingToolbar:c,isShowAIComponentFloatBar:d})),bb=(0,m.Mz)([S.X_,S.ER,S.$S,Io.X.query.getIsShallowEditing,Io.X.query.getIsDeepEditing,Io.X.query.getSelectedCellsInfo,k.WH,k.ul,k.UN,k.g0,k.aJ,T.O4,T.Dc,pt.Xf,S.PL,S.HW,S.wA,pd.eU,pd.fN],(t,n,s,c,d,w,P,F,X,ee,pe,ye,Ae,we,_e,Fe,Ye,He,tt)=>({scale:t,canvasOffset:n,viewportRect:s,swimlaneIsShallowEditing:c,swimlaneIsDeepEditing:d,selectedCellsInfo:w,editMindKey:P,selectedMindNodeKeys:F,selectedMindNodeFlagIconKey:X,selectedMindNodeImageKey:ee,isShallowEditText:pe,theme:ye,recentlyUsedScreenMetaIcons:Ae,isLeftShow:we,rootProject:_e,currentUser:Fe,currentOrg:Ye,isRetryGenerateLoading:He,aiComponentFeedbackStatus:tt})),x3=qy.A.getStore(),Cb=t=>(x3.subscribeToItem("selection",t),()=>{x3.unsubscribeFromItem("selection",t)}),wb=()=>qy.s,Sb=()=>{const t=(0,o.d4)(vb),{selection:n,isDraggingItem:s,isShowFloatingToolbar:c,editingCid:d,isShowAIComponentFloatBar:w}=t;if(!c||s||n.length!==1)return null;const P=sdkStore.getHotItem(n[0]);if(!P||![J.x.WSwimlane,J.x.WMind,J.x.WSticky,J.x.WTear,J.x.WCode].includes(P.hotAttr.type)||[J.x.WSticky,J.x.WTear].includes(P.hotAttr.type)&&!d||[J.x.WCode].includes(P.hotAttr.type)&&!w)return null;const F=n[0];return(0,i.jsx)(Ab,{...t,selectKey:F})},Ab=t=>{const{selectKey:n}=t,[s,c]=(0,r.useState)({left:0,top:0}),[d,w]=(0,r.useState)("bottom"),{scale:P,canvasOffset:F,viewportRect:X,swimlaneIsShallowEditing:ee,swimlaneIsDeepEditing:pe,selectedCellsInfo:ye,theme:Ae,editMindKey:we,selectedMindNodeKeys:_e,selectedMindNodeFlagIconKey:Fe,selectedMindNodeImageKey:Ye,isShallowEditText:He,recentlyUsedScreenMetaIcons:tt,rootProject:It,currentUser:Nt,currentOrg:Lt,isRetryGenerateLoading:Xt,aiComponentFeedbackStatus:_o}=(0,o.d4)(bb),co=Pn(),yn=(0,o.wA)();(0,o.d4)($.UV);const An=(0,r.useRef)(),In=sdkStore.getHotItem(n),wn=In.key,_n=In.hotAttr;(0,r.useEffect)(()=>(setTimeout(()=>Jn()),window.addEventListener("resize",Jn),()=>{window.removeEventListener("resize",Jn)}),[P,F,wn,ye]),(0,A7.useSyncExternalStore)(Cb,wb);const Jn=()=>{var Ca,ms;let qn="bottom",si=-100,Hi=0;const{left:ra,top:Ta,width:Pi,height:Bi}=X,Ji={x:ra,y:Ta,w:Pi,h:Bi};let Ui={x:0,y:0};if(In.hotAttr.type===J.x.WTear){const lr=document.querySelector('.STSticky[data-cid="'+wn+'"] div');if(lr){const Ya=lr.getBoundingClientRect();Ui={x:Ya.left+Ya.width/2,y:Ya.top}}}else{const{x:lr,y:Ya,h:cr}=sdkStore.getHotBound(wn),zr=Ya-cr*.5;Ui=(0,m4.mY)({x:lr,y:zr})}if(si=Ui.x,Hi=Ui.y+xb,!(An!=null&&An.current))return;const wa=((Ca=An.current)==null?void 0:Ca.clientWidth)||400,Ea=((ms=An.current)==null?void 0:ms.clientHeight)||42,Ba={x:si-wa/2,y:Hi,w:wa,h:Ea};if(!$y.rw.containsRect(Ji,Ba))if(Ba.w>Ji.w||Ba.h>Ji.h)si=0,Hi=-100;else{const lr=Ji.x-Ba.x,Ya=Ba.x+Ba.w-(Ji.x+Ji.w),cr=Ji.y-Ba.y,zr=Ba.y+Ba.h-(Ji.y+Ji.h);lr>0?si+=lr+20:Ya>0&&(si-=Ya+20),cr>0?Hi+=cr+20:zr>0&&(Hi-=zr+20)}Hi+Ea/2-Ta>Bi/2&&(qn="top"),c({left:Math.round(si),top:Math.round(Hi)}),w(qn)},rs=Ca=>{["INPUT","LABEL","TEXTAREA"].includes(Ca.target.tagName)||Ca.preventDefault()},as={...s},mi={widget:In,dropdownPosition:d,selectedCellsInfo:ye,refresh:co,theme:Ae,editMindKey:we,selectedMindNodeKeys:_e,isShallowEditText:He,recentlyUsedScreenMetaIcons:tt,rootProject:It,currentUser:Nt,currentOrg:Lt,aiComponentFeedbackStatus:_o,dispatch:yn},ha=(0,r.useMemo)(()=>yb(_n.type,{swimlaneIsShallowEditing:ee,swimlaneIsDeepEditing:pe,selectedMindNodeKeys:_e,selectedMindNodeFlagIconKey:Fe,selectedMindNodeImageKey:Ye,isRetryGenerateLoading:Xt}),[_n.type,ee,pe,_e,Fe,Ye,Xt]);return(0,i.jsx)(I7,{className:f()("draft-inline-toolbar"),style:as,ref:An,onMouseDown:rs,children:(0,i.jsx)(ha,{...mi})})},Ib=()=>{const t=d=>{let{action:w,linkTitle:P,linkTarget:F,originLinkTarget:X,blockKey:ee,start:pe,end:ye,fromType:Ae,widget:we}=d;const{_getEditorState:_e}=(0,Kn.DT)(),Fe=_e();if(!F||!Fe)return;let Ye=Fe,He=(0,wl.Kt)(Ye);const tt=Fe.getSelection();//! curSelection.getHasFocus() || // TODO: 需要吗,为了文本组件暂时先把它弄出去了
- if(tt.isCollapsed()){const Nt=(0,wl.Bm)(Fe.getCurrentContent(),ee,pe,ye,X,P);if(!Nt)return;Ye=(0,wl.N$)(Fe,Nt),He=Ye?(0,wl.A_)(Ye):void 0}if(w==="unlink"){s(Ye,He,Ae);return}let It="add";He&&Ye.getCurrentContent().getEntity(He).get("type")==="LINK"&&(It="edit"),n(Ye,He,It,P,F,Ae)},n=(d,w,P,F,X,ee)=>{const{_setEditorState:pe}=(0,Kn.DT)(),ye=(0,wl.FO)({title:F||X,target:X,targetOption:"_blank"}),Ae=(0,wl.nf)(d,w,P,ye);Ae&&pe(Ae)},s=(d,w,P)=>{const{_setEditorState:F}=(0,Kn.DT)();if(w){const X=(0,wl.QF)(d,w);X&&F(X)}},c=d=>{let{action:w,linkTitle:P,linkTarget:F,fromType:X,widget:ee}=d;if(w==="unlink"){(0,wl.Nc)({widget:ee});return}const pe=(0,wl.FO)({title:P,target:F,targetOption:"_blank"});pe.target!==""&&(0,wl.eU)({widget:ee,currentEntityKey:"",mode:"add",linkified:pe})};return(0,r.useEffect)(()=>(tn.A.on("draft:inline-toolbar:link",t),tn.A.on("draft:inline-toolbar:link-widget",c),()=>{tn.A.off("draft:inline-toolbar:link",t),tn.A.off("draft:inline-toolbar:link-widget",c)}),[]),(0,i.jsx)("div",{style:{visibility:"hidden"}})},Mb=u.Ay.header.withConfig({displayName:"styles__StyledVersionViewHeader",componentId:"sc-wr3mke-0"})(["&.version-view-header{position:absolute;left:0;top:0;width:100%;height:48px;background:",";display:flex;justify-content:space-between;align-items:center;z-index:108;box-shadow:0 1px 0 ",";padding:0 16px 0 24px;.toolbar-icon-item{width:38px;}.left-part{display:flex;align-items:center;.project-name{color:",";font-size:14px;font-weight:500;margin-right:10px;}.version-title{color:",";font-size:12px;}}.right-part{display:flex;align-items:center;color:",";.version-control-icon{color:",";margin-right:12px;}}}&.hidden{top:-60px;}"],t=>t.theme.color_bg_white,t=>t.theme.color_bg_border_02,t=>t.theme.color_text_L1,t=>t.theme.color_text_L2,t=>t.theme.color_text_L1,t=>t.theme.color_text_L1),Tb=u.Ay.div.withConfig({displayName:"styles__StyledVersionViewModel",componentId:"sc-wr3mke-1"})(["&.version-view-model{position:absolute;width:100%;height:calc(100% - 48px);background:",";top:48px;left:0;z-index:5;.mb-loading{width:80px;height:80px;position:absolute;top:50%;left:50%;z-index:-1;margin-top:-40px;margin-left:-40px;}.version-view-iframe{width:100%;height:100%;border:none;}}&.hidden{display:none;}&.isVersionPaneShow{width:calc(100% - 241px);}"],t=>t.theme.color_bg_canvas);var yh=e(33039),Bm=e(41449);const Eb=(0,r.memo)(t=>{let{projectToken:n,projectName:s,currentViewing:c,isVersionManagementPaneShow:d,isReadOnly:w,dispatch:P}=t;if(!c)return null;let F=document.querySelector("#VERSION_VIEW_WINDOW");F||(F=document.createElement("div"),F.id="VERSION_VIEW_WINDOW",document.body.appendChild(F));const X=()=>{P({type:"versions:update",payload:{currentViewing:void 0}})};return(0,dr.createPortal)((0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(_b,{projectName:s,currentViewing:c,onQuitView:X,isReadOnly:w,isVersionManagementPaneShow:d,dispatch:P}),(0,i.jsx)(Pb,{projectToken:n,currentViewing:c,isVersionManagementPaneShow:d})]}),F)}),kb=(0,m.Mz)([tc.cS,S.PL,A.jx,S.z$],(t,n,s,c)=>{const{currentViewing:d,isVersionManagementPaneShow:w}=t,{access_token:P,name:F}=n;return{projectToken:s===R.qi.OnlyView&&(c==null?void 0:c.access_token)||P,projectName:F,currentViewing:d,isVersionManagementPaneShow:w,isReadOnly:s===R.qi.OnlyView}}),v3=(0,o.Ng)(t=>kb(t))(Eb),_b=(0,r.memo)(t=>{let{projectName:n,currentViewing:s,onQuitView:c,isVersionManagementPaneShow:d,isReadOnly:w,dispatch:P}=t;const F=()=>{P({type:"entry:toolbar:open:versionControl:modal"})};return(0,i.jsxs)(Mb,{className:f()("version-view-header",{hidden:!s}),children:[(0,i.jsxs)("div",{className:"left-part",children:[(0,i.jsx)("p",{className:"project-name",children:n}),s&&(0,i.jsx)("p",{className:"version-title",children:"\u9884\u89C8 "+s.title+" \u7248\u672C"})]}),(0,i.jsxs)("div",{className:"right-part",children:[(0,i.jsx)(yh.A,{toolTipName:I18N.ToolBar.versionControl,svgIconName:d?"design/versions/expand/panel":"design/versions/unexpand/panel",onClick:F,size:32,className:"version-control-icon"}),(0,i.jsx)(Zn.tA,{className:"quit",onClick:c,children:w?I18N.ToolBar.backToOverview:I18N.ToolBar.backToDesign})]})]})}),Pb=(0,r.memo)(t=>{let{projectToken:n,currentViewing:s,isVersionManagementPaneShow:c}=t;const d=(0,r.useRef)(void 0),w=(0,r.useRef)(null),[P,F]=(0,r.useState)(!1),X=pe=>{pe.data.type==="design:loaded"&&F(!0)};(0,r.useEffect)(()=>(window.addEventListener("message",X),()=>{window.removeEventListener("message",X)}),[]);const ee=d.current;return(0,r.useEffect)(()=>{s&&s.cid&&(!ee||ee.cid!==s.cid)&&(F(!1),w.current.contentWindow.location.replace((0,Bm.Dw)(n+"?version="+s.cid)))},[s,ee,n]),(0,r.useEffect)(()=>{d.current=s}),(0,i.jsxs)(Tb,{className:f()("version-view-model",{hidden:!s},{isVersionPaneShow:c}),children:[!P&&(0,i.jsx)(F1.Tw,{className:"mb-loading"}),s&&(0,i.jsx)("iframe",{ref:w,className:"version-view-iframe",src:"/src/pages"})]})});var Nb=e(4578),b3=e(12473);const Lb=20,C3=360,Sg={edit:130,generate:160,snapshot:44},$T="AI_COMPONENT_SNAPSHOT_MODE_KEY",B4=["\u521B\u5EFA\u4E00\u4E2A\u65E5\u5386\u7EC4\u4EF6\uFF0C\u7528\u6237\u53EF\u4EE5\u67E5\u770B\u3001\u9009\u62E9\u65E5\u671F\u3002\u8981\u6C42\u6709\u6708\u4EFD\u5207\u6362\u529F\u80FD\uFF0C\u5F53\u524D\u65E5\u671F\u9AD8\u4EAE\u663E\u793A\u3002","\u521B\u5EFA\u4E00\u4E2A\u79FB\u52A8\u7AEF\u7684\u641C\u7D22\u6846\u3002\u5360\u4F4D\u7B26\u6587\u672C\u4E3A\u201C\u641C\u7D22...\u201D\u3002\u8F93\u5165\u6587\u672C\u540E\uFF0C\u663E\u793A\u6E05\u9664\u6309\u94AE\u3002","\u521B\u5EFA\u4E00\u4E2A3\u79D2\u5B8C\u6210\u64AD\u653E\u7684\u52A8\u6001\u8FDB\u5EA6\u6761\uFF0C\u53F3\u4FA7\u663E\u793A\u5F53\u524D\u767E\u5206\u6BD4\u503C\u6807\u7B7E\u3002","\u5236\u4F5C\u4E00\u4E2A\u79FB\u52A8\u7AEF\u767B\u5F55\u6CE8\u518C\u8868\u5355\u3002\u4E24\u4E2A\u8868\u5355\u5E94\u72EC\u7ACB\u663E\u793A\uFF0C\u5E76\u6709\u5207\u6362\u529F\u80FD\u3002","\u521B\u5EFA\u4E00\u4E2A\u4E0B\u62C9\u83DC\u5355\uFF0C\u83DC\u5355\u9879\u5305\u542B\u5317\u4EAC\u5E02\u7684\u6240\u6709\u533A\u53BF\u3002\u4E0B\u62C9\u83DC\u5355\u7684\u9ED8\u8BA4\u63D0\u793A\u6587\u672C\u4E3A\u201C\u8BF7\u9009\u62E9\u533A\u53BF\u201D\u3002","\u521B\u5EFA\u4E00\u4E2A\u201C\u5458\u5DE5\u4FE1\u606F\u8868\u201D\u8868\u683C\u3002\u8868\u683C\u5305\u542B\u4EE5\u4E0B\u5217\uFF1A\u5E8F\u53F7\u3001\u540D\u79F0\u3001\u5E74\u9F84\u3001\u804C\u4F4D\u3002","\u521B\u5EFA\u4E00\u4E2A\u5E26\u6709\u547C\u5438\u52A8\u753B\u7684\u9AA8\u67B6\u5C4F\u7EC4\u4EF6\uFF0C\u7528\u4E8EUI\u52A0\u8F7D\u72B6\u6001\u3002\u9AA8\u67B6\u5C4F\u5305\u62EC\u77E9\u5F62\u56FE\u7247\u5360\u4F4D\u7B26\u548C\u51E0\u884C\u6A2A\u7EBF\u6587\u672C\u5360\u4F4D\u7B26\u3002","\u521B\u5EFA\u4E00\u4E2A\u6C34\u5E73\u6ED1\u52A8\u6761\u7EC4\u4EF6\uFF0C\u8303\u56F40\u5230100\uFF0C\u521D\u59CB\u503C50\uFF0C\u6ED1\u52A8\u6761\u53F3\u4FA7\u6709\u4E00\u4E2A\u663E\u793A\u5F53\u524D\u503C\u7684\u6587\u672C\u6807\u7B7E\u3002","\u521B\u5EFA\u4E00\u4E2A\u5B57\u7B26\u6570\u9650\u5236\u4E3A500\u4E2A\u5B57\u7B26\u7684\u591A\u884C\u6587\u672C\u8F93\u5165\u6846\uFF0C\u5E76\u5728\u53F3\u4E0B\u89D2\u5B9E\u65F6\u663E\u793A\u5F53\u524D\u5B57\u7B26\u6570\u548C\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u683C\u5F0F\u4E3A\u201C\u5F53\u524D\u5B57\u7B26\u6570/500\u201D\u3002","\u751F\u6210\u4E00\u4E2A\u201C\u64AD\u653E\u201D\u56FE\u6807\uFF0C\u70B9\u51FB\u540E\u53D8\u4E3A\u201C\u6682\u505C\u201D\u56FE\u6807\u3002"],Db={adjustToLeft(t){return t+20},adjustToRight(t){return-(t+20)},adjustToTop(t){return t+20},adjustToBottom(t){return-(t+20)}},Bb=(t,n,s)=>{let{x:c,y:d}=t;const w=n.x-t.x,P=t.x+t.w-(n.x+n.w),F=n.y-t.y,X=t.y+t.h-(n.y+n.h);return w>0?c+=s.adjustToLeft(w):P>0&&(c+=s.adjustToRight(P)),F>0?d+=s.adjustToTop(F):X>0&&(d+=s.adjustToBottom(X)),{x:c,y:d}},Rb=()=>{const t=(0,o.d4)(pd.F6),n=(0,o.d4)(S.X_),s=(0,o.d4)(S.ER),c=(0,o.d4)(pd.Bq),d=(0,o.d4)(S.$S),w=(0,o.d4)(pd.OX),{is:P}=(0,b3.v)(),F=w3(w,P),X=C3,ee=Sg[c?"edit":F?"snapshot":"generate"],pe=Lb,ye=(0,r.useCallback)(()=>{let _e=0,Fe=0;const Ye=(()=>{if(t)return{x:t.x+10,y:t.y+10};if(c){const{x:Nt,y:Lt,h:Xt,w:_o}=sdkStore.getHotBound(c);return{x:Nt-_o/2,y:Lt+Xt/2+10}}return null})(),He=(0,m4.mY)(Ye,n,s);_e=He.x,Fe=He.y;const tt={x:_e,y:Fe,w:X,h:ee},It={x:d.x,y:d.y,w:d.width,h:d.height};if(!$y.rw.containsRect(It,tt)){const Nt=Bb(tt,It,Db);_e=Nt.x,Fe=Nt.y}return{left:Math.round(_e),top:Math.round(Fe)}},[n,s,X,ee,d.x,d.y,d.width,d.height,t,c]),Ae=(0,r.useMemo)(()=>({top:"calc(100vh - "+ee+"px - "+pe+"px)",left:"50%",transform:"translateX(-50%)"}),[ee,pe]);return(0,r.useMemo)(()=>{if(F||!t&&!c)return Ae;const _e=ye();return{top:_e.top,left:_e.left}},[F,Ae,t,c,ye])},w3=(t,n)=>t&&!n,jb=()=>{const t=(0,o.d4)(pd.Bq),{getEditContentCache:n,setEditContentCache:s,getGenerateContentCache:c,setGenerateContentCache:d}=bg.s5,w=()=>t?n(t):c(),P=(0,r.useCallback)(ye=>t?s(t,ye):d(ye),[t,s,d]),F=w(),[X,ee]=(0,r.useState)(F||"");(0,r.useEffect)(()=>{ee(F||"")},[F]);const pe=(0,r.useCallback)(ye=>{ee(ye),P(ye)},[P]);return[X,pe]},Ob=(t,n)=>{const s=(0,r.useRef)([t]),c=(0,r.useRef)(0);return[F=>{const X=s.current,ee=c.current;X.length=ee+1,X.push(F),c.current++,n(F)},F=>{const ee=c.current+1;if(ee>=s.current.length)return;c.current++;const pe=s.current[ee];n(pe),F&&F(pe)},F=>{const ee=c.current-1;if(ee<0)return;c.current--;const pe=s.current[ee];n(pe),F&&F(pe)}]},Ag=t=>t.stopPropagation(),S3=function(t){let{isSnapshotGenerate:n=!1}=t===void 0?{}:t;const s=(0,r.useRef)(null),[c,d]=(0,r.useState)(!1),[w,P]=jb(),F=(0,o.d4)(pd.OX),[X,ee,pe]=Ob(w,P),ye=(0,r.useCallback)(tt=>{Ag(tt),d(!0)},[]),Ae=(0,r.useCallback)(tt=>{Ag(tt),d(!1)},[]),we=(0,r.useCallback)(tt=>{const{value:It}=tt.target,Nt=It.length>500?It.slice(0,500):It;X(Nt)},[X]),_e=()=>{const tt=s.current;tt&&setTimeout(()=>{tt.focus(),setTimeout(()=>{const It=tt.value;tt.setSelectionRange(It.length,It.length)})})},Fe=(0,r.useCallback)(()=>{const tt=window.getSelection();tt.rangeCount&&tt.removeAllRanges()},[]),Ye=(0,r.useMemo)(()=>w.length,[w]);(0,r.useEffect)(()=>{Ye>0&&s.current&&s.current.setSelectionRange(0,w.length)},[F,n]);const He=(0,r.useMemo)(()=>{const tt=Ye>0?Ye+"/500":"",It=Ye>=500;return{text:tt,isError:It}},[Ye]);return{textareaRef:s,updateUserTextContent:X,userTextContent:w,handleChange:we,handleSelectEnd:_e,handleClearSelection:Fe,isInputComposition:c,handleCompositionStart:ye,handleCompositionEnd:Ae,redo:ee,undo:pe,maxInputTip:He}},A3=t=>{let{undo:n,redo:s,isShowOptimumLoading:c=!1}=t;const d=(0,r.useCallback)(w=>{if(!c&&(w.stopPropagation(),(w.ctrlKey||w.metaKey)&&["z","Z"].includes(w.key))){if(w.preventDefault(),w.shiftKey){s();return}n()}},[c,s,n]);(0,r.useEffect)(()=>(document.addEventListener("keydown",d),()=>{document.removeEventListener("keydown",d)}),[d])},Fb=()=>{const t=(0,o.wA)(),n=(0,o.d4)(pd.PU),s=(0,r.useMemo)(()=>n.length,[n]),c=(0,r.useCallback)(()=>{t({type:"ai-component:update:selectedElementList",payload:{selectedElementList:[]}})},[t]);return{selectedCount:s,selectedElementList:n,handleClearSelected:c}},I3=t=>{let{isInputComposition:n,userTextContent:s,snapshotBase64Url:c="",handleSend:d}=t;const w=(0,o.d4)(pd.Lu);return(0,r.useCallback)(F=>{w||n||!s&&!c||d()},[n,w,c,s,d])},M3=t=>{let{handleEsc:n,handleEnter:s}=t;const c=w=>{w.key==="Enter"&&!w.shiftKey&&(s(w),w.preventDefault())},d=(0,r.useCallback)(w=>{w.key==="Escape"&&n(w)},[n]);return(0,r.useEffect)(()=>(document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)),[d]),c},Ub=t=>{let{userTextContent:n,updateUserTextContent:s,isSnapshotGenerate:c,handleSelectEnd:d,handleClearSelection:w}=t;const P=(0,o.wA)(),[F,X]=(0,r.useState)(0),[ee,pe]=(0,r.useState)(n.length===0),ye=B4.length,Ae=(0,r.useMemo)(()=>ee&&!c,[ee,c]),we=(0,r.useCallback)(Ye=>{const He=Math.floor(Math.random()*ye),tt=He===F?(F+1)%ye:He;X(tt);const It=B4[tt];s(It),pe(!0),d()},[F,d,ye,s]),_e=(0,r.useMemo)(()=>!Ae&&!c,[Ae,c]),Fe=(0,r.useCallback)(async Ye=>{w(),P({type:"entry:aiComponent:optimum:handler",payload:{updateUserTextContent:s,userTextContent:n,handleSelectEnd:d}})},[P,w,d,s,n]);return{isShowExamplePrompts:Ae,handleExamplePrompts:we,isShowOptimumPrompts:_e,handleOptimumPrompts:Fe,setIsShowExamplePromptsBtn:pe}},zb=t=>{let{isSnapshotGenerate:n,isShowOptimumLoading:s}=t;const c=(0,o.wA)(),d=(0,o.d4)(pd.OX),w=(0,r.useCallback)(()=>{if(s)return;c({type:"entry:aiComponent:switch-snapshot-mode:handler",payload:{nextIsSnapshotMode:!d}})},[c,d,s]);return{isAIComponentSnapshotMode:d,isShowSnapshotSwitch:!n,handleSnapshotSwitch:w}},Wb=()=>{const t=(0,o.wA)(),{is:n}=(0,b3.v)(),s=(0,o.d4)(pd.Lu),c=(0,o.d4)(pd.xn),{textareaRef:d,userTextContent:w,handleChange:P,handleSelectEnd:F,handleClearSelection:X,updateUserTextContent:ee,isInputComposition:pe,handleCompositionEnd:ye,handleCompositionStart:Ae,maxInputTip:we,undo:_e,redo:Fe}=S3(),{isShowExamplePrompts:Ye,handleExamplePrompts:He,isShowOptimumPrompts:tt,handleOptimumPrompts:It,setIsShowExamplePromptsBtn:Nt}=Ub({userTextContent:w,updateUserTextContent:ee,isSnapshotGenerate:n,handleSelectEnd:F,handleClearSelection:X}),{isAIComponentSnapshotMode:Lt,isShowSnapshotSwitch:Xt,handleSnapshotSwitch:_o}=zb({isSnapshotGenerate:n,isShowOptimumLoading:c}),co=(0,r.useCallback)(ms=>{const qn=ms.length===0,si=B4.includes(ms);Nt(qn?!0:Ye&&si)},[Nt,Ye]),yn=(0,r.useCallback)(ms=>{_e(qn=>co(qn))},[co,_e]),An=(0,r.useCallback)(ms=>{Fe(qn=>co(qn))},[Fe,co]);A3({undo:yn,redo:An,isShowOptimumLoading:c});const In=(0,r.useCallback)(ms=>{Ag(ms),t({type:"entry:aiComponent:exit:mode"})},[t]),wn=(0,r.useCallback)(ms=>{P(ms),!n&&co(ms.target.value)},[P,n,co]),_n=(0,r.useCallback)(()=>{const ms=bg.F7.getCache();t({type:"entry:aiComponent:send:handler",payload:{userTextContent:w,snapshotBase64Url:ms}})},[t,w]),Jn=I3({isInputComposition:pe,userTextContent:w,snapshotBase64Url:bg.F7.getCache(),handleSend:_n}),rs=M3({handleEnter:Jn,handleEsc:In}),as=(0,r.useMemo)(()=>n?!1:w.length===0||c,[n,c,w.length]),mi=(0,r.useMemo)(()=>s,[s]),ha=(0,r.useMemo)(()=>s||c,[s,c]),Ca=w3(Lt,n);return{inputPlaceholderText:"\u8BF7\u8F93\u5165\u7EC4\u4EF6\u63CF\u8FF0",textareaRef:d,userTextContent:w,handleChange:wn,handleCompositionEnd:ye,handleCompositionStart:Ae,handleKeyDown:rs,maxInputTip:we,handleQuit:In,isShowSnapshotSwitch:Xt,isShowSnapshotModeTips:Ca,handleSnapshotSwitch:_o,isShowExamplePrompts:Ye,handleExamplePrompts:He,isShowOptimumLoading:c,isShowOptimumPrompts:tt,handleOptimumPrompts:It,isSendLoading:mi,isSendIconDisable:as,handleSend:_n,isInputDisabled:ha}},Vb=()=>{const t=(0,o.wA)(),n=(0,o.d4)(pd.Lu),s=(0,o.d4)(pd.Bq),{textareaRef:c,userTextContent:d,handleChange:w,isInputComposition:P,handleCompositionEnd:F,handleCompositionStart:X,maxInputTip:ee,undo:pe,redo:ye}=S3(),{selectedCount:Ae,selectedElementList:we,handleClearSelected:_e}=Fb();A3({undo:pe,redo:ye});const Fe=(0,r.useCallback)(()=>{t({type:"entry:aiComponent:send:handler",payload:{editComponentKey:s,userTextContent:d,selectedElementList:we}})},[t,s,we,d]),Ye=(0,r.useCallback)(co=>{t({type:"ai-component:update:isShowInputContainer",payload:{isShowInputContainer:!1}}),t({type:"ai-component:update:editingAIComponentKey",payload:{editingAIComponentKey:null}})},[t]),He=I3({isInputComposition:P,userTextContent:d,handleSend:Fe}),tt=M3({handleEnter:He,handleEsc:Ye}),It=(0,r.useMemo)(()=>d.length===0,[d.length]),Nt=(0,r.useMemo)(()=>n,[n]),Lt=(0,r.useMemo)(()=>n,[n]),Xt=(0,r.useMemo)(()=>d.length===0,[d.length]);return{inputPlaceholderText:(0,r.useMemo)(()=>Ae>0?"\u9488\u5BF9\u9009\u4E2D\u5143\u7D20\u8FDB\u884C\u4FEE\u6539":"\u9488\u5BF9\u7EC4\u4EF6\u6574\u4F53\u8FDB\u884C\u4FEE\u6539",[Ae]),textareaRef:c,userTextContent:d,handleChange:w,handleCompositionEnd:F,handleCompositionStart:X,handleKeyDown:tt,maxInputTip:ee,isSendLoading:Nt,isSendIconDisable:It,handleSend:Fe,selectedCount:Ae,handleClearSelected:_e,isInputDisabled:Lt,isShowTipsIcon:Xt}},Hb=u.Ay.div.withConfig({displayName:"style__StyledAIComponentInputContainer",componentId:"sc-1c4w357-0"})(["position:absolute;background:",";border:1px solid ",";border-radius:8px;width:","px;cursor:default;box-shadow:0px 2px 10px 0px rgba(0,0,0,0.12);font-size:12px;line-height:17px;font-weight:400;z-index:111;.head-area{padding:0 14px 0 10px;height:40px;display:flex;align-items:center;position:relative;.left-icon{width:24px;height:24px;}.title{margin-left:4px;font-size:14px;line-height:24px;font-weight:500;flex:1;color:",";}.right-button{font-size:14px;line-height:24px;color:",";&:hover,&:active{color:",";}}}.input-area{position:relative;flex:1;padding:4px 14px;.text-area{width:100%;height:100%;display:block;resize:none;border:none;outline:none;background-color:transparent;color:",";font-size:14px;line-height:20px;&::-webkit-scrollbar-thumb{cursor:pointer;}&::placeholder{color:",";}&:read-only{color:",";cursor:not-allowed;}}.tips-icon{width:16px;height:16px;position:absolute;right:20px;top:4px;&:hover{*{fill-opacity:1;}}}}.bottom-area{display:flex;justify-content:flex-end;align-items:center;padding:0 14px 8px 10px;.svg-icon:not(.loading-icon),.pure-svg-icon:not(.loading-icon){width:28px;height:28px;cursor:pointer;}.generate-handle-area{display:grid;justify-items:center;align-items:center;grid-template-columns:repeat(2,28px);grid-gap:4px;.svg-icon:not(.loading-icon),.pure-svg-icon:not(.loading-icon){color:",";border-radius:4px;&:hover:not(.is-disabled){background-color:",";}&:active:not(.is-disabled){background-color:",";}&.is-disabled{cursor:not-allowed;color:",";}}}.edit-element{display:flex;align-items:center;height:20px;padding:0 4px 0 6px;border-radius:4px;background-color:",";color:",";.clear-selected-icon{width:16px;height:16px;margin-left:4px;cursor:pointer;}}.right-area{flex:1;display:flex;justify-content:flex-end;align-items:center;.max-input-number{width:max-content;margin-right:6px;color:",";&.is-error{color:",";}&.is-disabled{color:",";}}.send-icon{color:",";&.is-disabled{cursor:not-allowed;color:",";}&:not(.is-disabled):hover{color:","}&:not(.is-disabled):active{color:","}}}}.edit-mode{height:","px;.input-area{margin-top:20px;}}.generate-mode{height:","px;}.edit-mode,.generate-mode{display:flex;flex-direction:column;}.snapshot-mode{height:","px;display:flex;justify-content:center;align-items:center;padding:0 14px 0 10px;font-size:14px;line-height:24px;.left-icon{width:28px;height:28px;cursor:pointer;color:",";border-radius:4px;&:hover:not(.is-disabled){background-color:",";}&:active:not(.is-disabled){background-color:",";}}.split-line{margin:0 8px;width:1px;height:20px;background-color:",";}.tips{color:",";flex:1;}.quit{cursor:pointer;color:",";&:hover,&:active{color:",";}}}"],t=>t.theme.color_bg_white,t=>t.theme.color_btn_secondary_hover,C3,t=>t.theme.color_text_L1,t=>t.theme.color_text_L2,t=>t.theme.color_text_L1,t=>t.theme.color_text_L1,t=>t.theme.color_text_L3,t=>t.theme.color_text_disabled01,t=>t.theme.color_text_link_normal,t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_btn_primary_disabled,t=>t.theme.color_bg_card,t=>t.theme.color_text_L2,t=>t.theme.color_text_L1,t=>t.theme.color_text_error,t=>t.theme.color_text_disabled01,t=>t.theme.color_btn_primary_normal,t=>t.theme.color_btn_primary_disabled,t=>t.theme.color_btn_primary_hover,t=>t.theme.color_btn_primary_clicked,Sg.edit,Sg.generate,Sg.snapshot,t=>t.theme.color_text_link_normal,t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_text_L3,t=>t.theme.color_text_L2,t=>t.theme.color_text_L1),T3=t=>{let{size:n=22}=t;return(0,i.jsx)(Kb,{className:"loading-icon",size:n,name:"chatGPT/tip-loading",isColorPure:!0})},Kb=(0,u.Ay)(Je.C).withConfig({displayName:"AIComponentLoadingIcon__StyledSVGIcon",componentId:"sc-voamyl-0"})(["&.loading-icon{animation:loading 3s linear infinite;@keyframes loading{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}}"]),E3=t=>{let{isSendLoading:n,isSendIconDisable:s,handleSend:c}=t;const d=()=>{s||c()};return n?(0,i.jsx)(T3,{}):(0,i.jsx)(Je.C,{className:"send-icon",isDisabled:s,name:"chatGTP/ai-component/text-area/send-message",isColorPure:!s,onClick:d})},k3=t=>{let{maxInputTip:n,isDisabled:s}=t;const{isError:c,text:d}=n;return(0,i.jsx)("div",{className:f()("max-input-number",{"is-error":c,"is-disabled":s}),children:d})},_3=t=>{let{textareaRef:n,inputPlaceholderText:s,userTextContent:c,isInputDisabled:d,handleKeyDown:w,handleCompositionStart:P,handleCompositionEnd:F,handleChange:X}=t;return(0,i.jsx)("textarea",{className:"text-area",ref:n,placeholder:s,value:c,autoFocus:!0,readOnly:d,onCompositionStart:P,onCompositionEnd:F,onMouseDown:ee=>{d&&ee.preventDefault()},onKeyDown:w,onChange:X})},Gb=()=>{const{inputPlaceholderText:t,textareaRef:n,userTextContent:s,handleChange:c,handleCompositionEnd:d,handleCompositionStart:w,handleKeyDown:P,maxInputTip:F,handleQuit:X,isShowSnapshotSwitch:ee,isShowSnapshotModeTips:pe,handleSnapshotSwitch:ye,isShowExamplePrompts:Ae,handleExamplePrompts:we,isShowOptimumLoading:_e,isShowOptimumPrompts:Fe,handleOptimumPrompts:Ye,isSendLoading:He,isSendIconDisable:tt,handleSend:It,isInputDisabled:Nt}=Wb();return pe?(0,i.jsx)(Yb,{handleSnapshotSwitch:ye,handleQuit:X}):(0,i.jsxs)("div",{className:"generate-mode",children:[(0,i.jsxs)("div",{className:"head-area",children:[(0,i.jsx)(Je.C,{className:"left-icon",name:"chatGPT/ai-semantic-small",isColorPure:!0}),(0,i.jsx)("span",{className:"title",children:"AI \u751F\u6210\u7EC4\u4EF6"}),(0,i.jsx)("button",{className:"right-button",onClick:X,children:"\u9000\u51FA"})]}),(0,i.jsx)("div",{className:"input-area",children:(0,i.jsx)(_3,{textareaRef:n,inputPlaceholderText:t,userTextContent:s,isInputDisabled:Nt,handleCompositionStart:w,handleCompositionEnd:d,handleKeyDown:P,handleChange:c})}),(0,i.jsxs)("div",{className:"bottom-area",children:[(0,i.jsxs)("div",{className:"generate-handle-area",children:[ee&&(0,i.jsx)(Cd.A,{content:"\u6846\u9009\u5143\u7D20",direction:"top",children:(0,i.jsx)(Je.C,{name:"chatGPT/ai-component/snapshot-mode",isDisabled:Nt,onClick:ye})}),Ae&&(0,i.jsx)(Cd.A,{content:"\u968F\u673A\u63D0\u793A\u8BCD",direction:"top",children:(0,i.jsx)(Je.C,{name:"chatGPT/ai-component/case-prompts",isDisabled:Nt,onClick:we})}),(0,i.jsx)(Zb,{isDisabled:Nt,isShowLoading:_e,isShowIcon:Fe,handleClick:Ye})]}),(0,i.jsxs)("div",{className:"right-area",children:[(0,i.jsx)(k3,{isDisabled:Nt,maxInputTip:F}),(0,i.jsx)(E3,{isSendLoading:He,isSendIconDisable:tt,handleSend:It})]})]})]})},Yb=t=>{let{handleQuit:n,handleSnapshotSwitch:s}=t;return(0,i.jsxs)("div",{className:"snapshot-mode",children:[(0,i.jsx)(Cd.A,{content:"\u8F93\u5165\u63D0\u793A\u8BCD",direction:"top",children:(0,i.jsx)(Je.C,{className:"left-icon",name:"chatGPT/ai-component/edit-mode",onClick:s})}),(0,i.jsx)("div",{className:"split-line"}),(0,i.jsx)("div",{className:"tips",children:"\u8BF7\u6846\u9009\u753B\u5E03\u4E2D\u7684\u5143\u7D20\u4F5C\u4E3A\u751F\u6210\u793A\u610F\u56FE"}),(0,i.jsx)("div",{className:"quit",onClick:n,children:"\u9000\u51FA"})]})},Zb=t=>{let{isShowLoading:n,isShowIcon:s,handleClick:c,isDisabled:d}=t;return s?n?(0,i.jsx)(T3,{}):(0,i.jsx)(Cd.A,{content:"\u4F18\u5316\u63D0\u793A\u8BCD",direction:"top",children:(0,i.jsx)(Je.C,{name:"chatGPT/ai-component/optimum-prompts",onClick:c})}):null},Xb=()=>{const{inputPlaceholderText:t,textareaRef:n,userTextContent:s,handleChange:c,handleCompositionEnd:d,handleCompositionStart:w,handleKeyDown:P,maxInputTip:F,isSendIconDisable:X,handleSend:ee,selectedCount:pe,handleClearSelected:ye,isSendLoading:Ae,isInputDisabled:we,isShowTipsIcon:_e}=Vb(),Fe=(0,r.useMemo)(()=>(0,i.jsxs)("div",{style:{padding:"8px 10px"},children:["\u652F\u6301\u9009\u4E2D\u7EC4\u4EF6\u5185\u90E8\u5143\u7D20\u8FDB\u884C\u5C40\u90E8\u4FEE\u6539\u3002",(0,i.jsx)("br",{}),"\u652F\u6301\u6309\u4F4Fshift\u952E\u591A\u9009\u7EC4\u4EF6\u5185\u5143\u7D20\u3002",(0,i.jsx)("br",{}),"\u672A\u9009\u4E2D\u4EFB\u4F55\u5143\u7D20\uFF0C\u5219\u5BF9\u7EC4\u4EF6\u6574\u4F53\u8FDB\u884C\u4FEE\u6539\u3002"]}),[]);return(0,i.jsxs)("div",{className:"edit-mode",children:[(0,i.jsxs)("div",{className:"input-area",children:[(0,i.jsx)(_3,{textareaRef:n,inputPlaceholderText:t,userTextContent:s,isInputDisabled:we,handleCompositionStart:w,handleCompositionEnd:d,handleKeyDown:P,handleChange:c}),_e&&(0,i.jsx)(Cd.A,{content:Fe,direction:"top",children:(0,i.jsx)(Je.C,{className:"tips-icon",name:"chatGPT/ai-component/text-area/tips"})})]}),(0,i.jsxs)("div",{className:"bottom-area",children:[pe>0&&(0,i.jsxs)("div",{className:"edit-element",children:[(0,i.jsxs)("span",{children:["\u5DF2\u9009\u4E2D ",pe," \u4E2A\u5143\u7D20"]}),(0,i.jsx)(Je.C,{className:"clear-selected-icon",name:"chatGPT/ai-component/text-area/clear-selected",onClick:ye})]}),(0,i.jsxs)("div",{className:"right-area",children:[(0,i.jsx)(k3,{maxInputTip:F,isDisabled:we}),(0,i.jsx)(E3,{isSendLoading:Ae,isSendIconDisable:X,handleSend:ee})]})]})]})},Qb=()=>{const t=Rb(),n=(0,o.d4)(pd.Bq);return(0,i.jsx)(Hb,{id:"ai-component-input-container",style:t,onMouseDown:Ag,children:n?(0,i.jsx)(Xb,{}):(0,i.jsx)(Gb,{})})},Jb=()=>{const t=(0,o.d4)(pd.l3),n=(0,o.d4)(pd.iB);return t?(0,i.jsx)(i.Fragment,{children:n&&(0,i.jsx)(Qb,{})}):null};var vl=e(86310),R4=e(3794);const $b=u.Ay.div.withConfig({displayName:"style__StyledUploadFontModal",componentId:"sc-bj39ar-0"})(["position:absolute;width:480px;height:418px;gap:20px;opacity:0px;z-index:108;font-size:0.875rem;background-color:",";box-shadow:rgba(0,0,0,0.1) 0px 2px 8px 0px;border-radius:10px;color:",";",";border:1px solid ",";header{border-top-left-radius:8px;border-top-right-radius:8px;border-bottom:1px solid "," !important;}.dark{box-shadow:2px 8px 20px 0px #0000001A;}",";.content-container{margin:20px 0;padding-left:20px;padding-right:4px;height:276px;}.scroll-container{overflow-y:scroll;overflow-x:hidden;}.font-check-container{width:254px;height:32px;display:flex;.Check-label{color:",";font-size:12px;font-weight:500;}.tip-icon{color:",";}}.upload-law-tip{width:350px;left:-173px;top:30px;padding:12px 16px;&::before{left:50%;}p{font-size:12px;color:",";transform:scaleY(-1);a{text-decoration:none;color:#70BCF6;&:hover,&:focus{color:#95D1F8;}}}}"],t=>t.theme.color_bg_white,t=>t.theme.color_text_L1,R4.wy,t=>t.theme.color_bg_border_01,t=>t.theme.color_bg_border_01,R4.C0,t=>t.theme.color_text_L2,t=>t.theme.color_text_L2,t=>t.theme.color_text_btn),qb=u.Ay.div.withConfig({displayName:"style__StyledFontScrollContainer",componentId:"sc-bj39ar-1"})(["height:","px;overflow-y:scroll;overflow-x:hidden;"],t=>t==null?void 0:t.height),eC=u.Ay.div.withConfig({displayName:"style__StyledUploadComponent",componentId:"sc-bj39ar-2"})(["cursor:pointer;& > *{pointer-events:none;}.upload-content{width:440px;border-radius:10px;border:1px dashed ",";background:",";cursor:pointer;&.is-active{background:",";border:1px dashed ",";}height:","px;transition:all 0.1s ease-in-out;display:flex;flex-direction:column;align-items:center;.center-div{display:flex;justify-content:center;}.desc1{margin-top:14px}.desc2{margin-top:2px}.title{font-weight:500;color:",";}.margin-header{margin-top:86px;}.sub-title{color:",";}}"],t=>t.theme.color_bg_border_02,t=>t.theme.color_bg_card,t=>t.theme.color_bg_select03,t=>t.theme.color_text_link_normal,t=>t.height,t=>t.theme.color_text_L1,t=>t.theme.color_text_L2),tC=(0,u.i7)(["0%{transform:rotate(0deg);}100%{transform:rotate(359deg);}"]),j4=u.Ay.div.withConfig({displayName:"style__StyledFontItem",componentId:"sc-bj39ar-3"})(["border-radius:10px;width:440px;height:60px;border:1px solid ",";display:flex;align-items:center;padding:0 12px;margin-bottom:12px;color:",";font-size:12px;&.upload-component{border:1px dashed ",";background:",";}.p1{display:flex;width:276px;.left{margin-right:14px;}.name{width:230px;font-size:12px;font-weight:500;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:",";}.size{color:",";}}.p1-manager{display:flex;width:372px;.left{margin-right:14px;}.middle{align-items:center;display:flex;}.name{width:326px;font-size:12px;font-weight:500;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:",";}}.right{display:flex;align-items:center;width:138px;justify-content:flex-end;> *{margin-left:10px;&:first-child{margin-left:0px;}}.error{color:",";}.retry{cursor:pointer;color:",";}.success{color:",";}.uploading{animation:"," 1.5s infinite linear;}.pending-icon{color:",";}}.upload-content{display:flex;align-items:center;cursor:pointer;.name{margin-left:14px;font-weight:500;}}"],t=>t.theme.color_bg_border_01,t=>t.theme.color_text_L1,t=>t.theme.color_bg_border_02,t=>t.theme.color_bg_card,t=>t.theme.color_text_L1,t=>t.theme.color_text_L3,t=>t.theme.color_text_L1,t=>t.theme.color_text_error,t=>t.theme.color_text_link_normal,t=>t.theme.color_success,tC,t=>t.theme.color_text_L1),oC=u.Ay.div.withConfig({displayName:"style__StyledEmptyManager",componentId:"sc-bj39ar-4"})(["display:flex;flex-direction:column;align-items:center;height:","px;justify-content:center;img{width:117px;}> *{margin-bottom:20px;}.no{color:",";}"],t=>t.height,t=>t.theme.color_text_L2);var _u=e(56507);const P3=t=>{const[n,s]=(0,r.useState)((t==null?void 0:t.initiralIsDragActive)||!1),c=(0,r.useRef)(null),d=(0,r.useRef)(null),w=()=>{c.current.value=null,c.current.click()},P=ee=>{var pe;clearTimeout(d.current||void 0),ee.preventDefault(),ee.stopPropagation(),s(!0),t==null||(pe=t.handleDragActiveCallback)==null||pe.call(t)},F=ee=>{ee.preventDefault(),ee.stopPropagation(),d.current=setTimeout(()=>{var pe;s(!1),t==null||(pe=t.handleLeaveCallback)==null||pe.call(t,ee)},100)};return{isDragActive:n,handleDrop:async ee=>{var pe;F(ee),t==null||(pe=t.handleDropCallback)==null||pe.call(t,ee)},handleDragActive:P,handleDragInactive:F,importInputRef:c,handleInputClick:w}},nC=()=>{const t=(0,o.d4)(vl.y.query.getUploadInitialFrom),n=(0,o.wA)(),s=async we=>{const _e=[...we.dataTransfer.files];!_e||_e.length<1||(n({type:vl.y.entryKey["font:upload:file:push"],payload:{originalFileList:_e,inputType:"drag"}}),vl.y.dispatchState({fontModalState:"upload-uploading"},n))},c=()=>{t==="uploading"&&vl.y.dispatchState({fontModalState:"upload-uploading"},n)},{isDragActive:d,handleDrop:w,handleDragActive:P,handleDragInactive:F,importInputRef:X,handleInputClick:ee}=P3({handleDropCallback:s,handleLeaveCallback:c}),pe=async we=>{const _e=we.currentTarget.files?Array.from(we.currentTarget.files):[];!_e||_e.length<1||(n({type:vl.y.entryKey["font:upload:file:push"],payload:{originalFileList:_e,inputType:"select"}}),vl.y.dispatchState({fontModalState:"upload-uploading"},n))},[ye,Ae]=(0,r.useState)(t==="none"?276:76);return(0,r.useEffect)(()=>(t==="uploading"&&setTimeout(()=>{Ae(276)},100),()=>{vl.y.dispatchState({uploadInitialFrom:"none"},n)}),[]),(0,i.jsx)("div",{className:"content-container",children:(0,i.jsxs)(eC,{onDrop:w,onDragOver:P,onDragLeave:F,onClick:ee,height:ye,children:[(0,i.jsxs)("div",{className:f()("upload-content",{"is-active":d}),children:[(0,i.jsx)("div",{className:"center-div margin-header",children:(0,i.jsx)(Je.C,{size:48,name:"common/font/upload-initial"})}),d?(0,i.jsx)("div",{className:"center-div desc1",children:(0,i.jsx)("p",{className:"title",children:"\u677E\u624B\u5373\u53EF\u6DFB\u52A0\u4E0A\u4F20"})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"center-div desc1",children:(0,i.jsx)("p",{className:"title",children:"\u70B9\u51FB\u6DFB\u52A0\u6216\u62D6\u62FD\u5B57\u4F53\u6587\u4EF6\u5230\u6B64\u5904 \uFF08.ttf/.otf/.ttc/.woff/.woff2\uFF09"})}),(0,i.jsx)("div",{className:"center-div desc2",children:(0,i.jsx)("span",{className:"sub-title",children:"\u8BF7\u786E\u4FDD\u6BCF\u4E2A\u6587\u4EF6\u7684\u5927\u5C0F\u4E0D\u8D85\u8FC7 200 MB"})})]})]}),(0,i.jsx)("input",{hidden:!0,multiple:!0,type:"file",accept:".ttf,.otf,.woff,.woff2,.ttc",ref:X,onChange:pe})]})})},sC=()=>{const t=(0,o.wA)(),{handleDrop:n,handleDragActive:s,handleDragInactive:c,importInputRef:d,handleInputClick:w}=P3({handleDragActiveCallback:()=>{vl.y.dispatchState({fontModalState:"upload-initial",uploadInitialFrom:"uploading"},t)}}),P=async F=>{const X=F.currentTarget.files?Array.from(F.currentTarget.files):[];!X||X.length<1||(t({type:vl.y.entryKey["font:upload:file:push"],payload:{originalFileList:X,inputType:"select"}}),vl.y.dispatchState({fontModalState:"upload-uploading"},t))};return(0,i.jsxs)(j4,{onDrop:n,onDragOver:s,onDragEnter:s,onDragLeave:c,onClick:w,className:"upload-component",children:[(0,i.jsxs)("div",{className:"upload-content",children:[(0,i.jsx)(Je.C,{size:32,name:"font/upload/tip"}),(0,i.jsx)("p",{className:"name",children:"\u70B9\u51FB\u6DFB\u52A0\u6216\u62D6\u62FD\u5B57\u4F53\u6587\u4EF6\u5230\u6B64\u5904 \uFF08.ttf/.otf/.ttc/.woff/.woff2\uFF09"})]}),(0,i.jsx)("input",{hidden:!0,multiple:!0,type:"file",accept:".ttf,.otf,.woff,.woff2,.ttc",ref:d,onChange:P})]})},iC=()=>{const t=(0,o.wA)(),n=()=>{},s=()=>{t({type:vl.y.entryKey["font:fontModal:close"]})};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(nC,{}),(0,i.jsx)(_u.jl,{onConfirm:n,onCancel:s,confirmBtnProps:{onClick:n,children:"\u4E0A\u4F20",disabled:!0},cancelBtnProps:{onClick:s,children:"\u53D6\u6D88",type:"secondary"},footer:!1})]})};var b0=e(19722);const aC=t=>{switch(t.type){case"prepare-upload":return(0,i.jsx)(i.Fragment,{children:t.uploadState!=="uploading"&&(0,i.jsx)(b0.A,{iconBoxSize:32,size:32,name:"common/font/trash",onClick:t.handleDiscard})});case"invalid-format":return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"error",children:"\u683C\u5F0F\u9519\u8BEF"}),t.uploadState!=="uploading"&&(0,i.jsx)(b0.A,{iconBoxSize:32,size:32,name:"common/font/trash",onClick:t.handleDiscard})]});case"over-size":return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"error",children:"\u6587\u4EF6\u8FC7\u5927"}),t.uploadState!=="uploading"&&(0,i.jsx)(b0.A,{iconBoxSize:32,size:32,name:"common/font/trash",onClick:t.handleDiscard})]});case"exist":return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"error",children:"\u5B57\u4F53\u5DF2\u5B58\u5728"}),t.uploadState!=="uploading"&&(0,i.jsx)(b0.A,{iconBoxSize:32,size:32,name:"common/font/trash",onClick:t.handleDiscard})]});case"uploading":return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"normal",children:"\u4E0A\u4F20\u4E2D"}),(0,i.jsx)(Je.C,{isColorPure:!0,size:32,name:"common/font/uploading",className:"uploading"})]});case"pending":return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"normal",children:"\u7B49\u5F85\u4E2D"}),(0,i.jsx)(Je.C,{size:32,name:"common/font/pending",className:"pedning-icon"})]});case"success":return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"success",children:"\u4E0A\u4F20\u6210\u529F"}),(0,i.jsx)(Je.C,{isColorPure:!0,size:32,name:"common/font/success"})]});case"failed-timeout":return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"error",children:"\u4E0A\u4F20\u8D85\u65F6"}),t.uploadState==="done"&&(0,i.jsx)("div",{className:"retry",onClick:t.handleRetry,children:"\u91CD\u8BD5"}),t.uploadState!=="uploading"&&(0,i.jsx)(b0.A,{iconBoxSize:32,size:32,name:"common/font/trash",onClick:t.handleDiscard})]});case"failed-network-error":return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"error",children:"\u7F51\u7EDC\u9519\u8BEF"}),t.uploadState==="done"&&(0,i.jsx)("div",{className:"retry",onClick:t.handleRetry,children:"\u91CD\u8BD5"}),t.uploadState!=="uploading"&&(0,i.jsx)(b0.A,{iconBoxSize:32,size:32,name:"common/font/trash",onClick:t.handleDiscard})]});case"failed-parse":return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"error",children:"\u89E3\u6790\u5931\u8D25"}),t.uploadState!=="uploading"&&(0,i.jsx)(b0.A,{iconBoxSize:32,size:32,name:"common/font/trash",onClick:t.handleDiscard})]})}},rC=t=>{let{fileKey:n,name:s,size:c,type:d,uploadState:w}=t;const P=(0,o.wA)(),F=()=>{P({type:vl.y.entryKey["font:upload:file:discard"],payload:{fileKey:n}})},X=()=>{P({type:vl.y.entryKey["font:upload:retry"]})},ee=(pe,ye)=>{const Ae=ye;return Ae.offsetWidth<Ae.scrollWidth};return(0,i.jsxs)(j4,{children:[(0,i.jsxs)("div",{className:"p1",children:[(0,i.jsx)(Je.C,{isColorPure:!0,className:"left",size:32,name:"common/font/text"}),(0,i.jsxs)("div",{className:"middle",children:[(0,i.jsx)(Cd.A,{content:s,onChangeTooltipsHover:(pe,ye)=>ye==null?void 0:ye(),isShowTipsByTarget:ee,children:(0,i.jsx)("div",{className:"name",children:s})}),(0,i.jsx)("div",{className:"size",children:c+"MB"})]})]}),(0,i.jsx)("div",{className:"right",children:aC({type:d,handleDiscard:F,handleRetry:X,uploadState:w})})]})},lC=t=>{let{fontFamily:n,handleFontDelete:s}=t;return(0,i.jsxs)(j4,{children:[(0,i.jsxs)("div",{className:"p1-manager",children:[(0,i.jsx)(Je.C,{isColorPure:!0,className:"left",size:32,name:"common/font/text"}),(0,i.jsx)("div",{className:"middle",children:(0,i.jsx)("div",{className:"name",children:n})})]}),(0,i.jsx)("div",{className:"right",children:(0,i.jsx)(b0.A,{iconBoxSize:32,size:32,name:"common/font/trash",onClick:s})})]})};var cC=e(8681),dC=e(38349),pC=e(43585),xh=e(50685);const hC=t=>(0,i.jsxs)("div",{children:[(0,i.jsxs)("p",{className:"ellipsis-content",children:["\u786E\u5B9A\u5220\u9664\u300C",(0,i.jsx)("span",{children:t.label}),"\u300D\u5B57\u4F53\u5417\uFF1F"]}),(0,i.jsx)("p",{children:"\u5220\u9664\u540E\uFF0C\u5DF2\u4F7F\u7528\u8BE5\u5B57\u4F53\u7684\u7EC4\u4EF6\u4F1A\u51FA\u73B0\u5B57\u4F53\u7F3A\u5931"})]}),uC=()=>{const t=(0,o.wA)(),n=(0,o.d4)(T.O4),s=(0,o.d4)(vl.y.query.getCloudFontLocalList),c=()=>{t({type:vl.y.entryKey["font:manage:to:upload"]}),(0,pC.rr)({operation_type:"\u4E0A\u4F20\u5B57\u4F53-\u7BA1\u7406\u5B57\u4F53\u9762\u677F"})},d=w=>()=>{MB.global.popupHelper.confirmAsync({title:"\u5220\u9664\u5B57\u4F53",confirmText:I18N.Common.confirm,cancelText:"\u53D6\u6D88",desc:hC(w),theme:n}).then(P=>{P&&t({type:vl.y.entryKey["font:manage:to:delete"],payload:{ff:w.value}})})};return s.length===0?(0,i.jsx)(N3,{handleUploadFont:c}):(0,i.jsx)(mC,{handleUploadFont:c,fontList:(0,xh.r)(s),handleFontDelete:d})},mC=t=>{let{fontList:n,handleUploadFont:s,handleFontDelete:c}=t;const d=(0,o.wA)(),w=()=>{d({type:vl.y.entryKey["font:fontModal:close"]})};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"content-container scroll-container",children:n.map((P,F)=>(0,i.jsx)(lC,{fontFamily:P.family,handleFontDelete:c(P)},F))}),(0,i.jsx)(_u.jl,{onCancel:s,cancelBtnProps:{onClick:s,children:"\u4E0A\u4F20\u5B57\u4F53",type:"secondary"},onConfirm:w,confirmBtnProps:{onClick:w,children:"\u5B8C\u6210"},footer:!1})]})},N3=t=>{let{handleUploadFont:n,text:s}=t;return(0,i.jsxs)(oC,{height:n?368:316,children:[(0,i.jsx)("div",{children:(0,i.jsx)("img",{src:"/mb-proto2/images/font/font_empty.png"})}),(0,i.jsx)("div",{children:(0,i.jsx)("span",{className:"no",children:s||"\u6682\u65E0\u4E0A\u4F20\u7684\u4E91\u7AEF\u5B57\u4F53"})}),n&&(0,i.jsx)("div",{children:(0,i.jsx)(Zn.jn,{onClick:n,children:"\u4E0A\u4F20\u5B57\u4F53"})})]})},gC=r.memo(()=>{const[t,n]=(0,r.useState)(!1),s=(0,o.wA)(),c=(0,o.d4)(vl.y.query.getUploadFileList),d=(0,o.d4)(vl.y.query.getUploadState),w=()=>{s({type:vl.y.entryKey["font:upload:file:preapre:go"]})},P=()=>{s({type:vl.y.entryKey["font:fontModal:close2"]})},F=()=>{s({type:vl.y.entryKey["font:fontModal:uplaod:continue"]})},X=()=>d==="prepare"||d==="uploading"?{onClick:P,children:"\u53D6\u6D88",type:"secondary"}:{onClick:F,children:"\u7EE7\u7EED\u4E0A\u4F20",type:"secondary"},ee=()=>d==="prepare"||d==="uploading"?{onClick:w,children:"\u4E0A\u4F20"}:{onClick:P,children:"\u5B8C\u6210"},pe=!t||d==="uploading",ye=d==="prepare"?204:276;return(0,i.jsxs)(i.Fragment,{children:[c.length===0?(0,i.jsx)(N3,{handleUploadFont:void 0,text:"\u6682\u65E0\u4E0A\u4F20\u8BB0\u5F55"}):(0,i.jsxs)("div",{className:"content-container",children:[d==="prepare"&&(0,i.jsx)(sC,{}),(0,i.jsx)(qb,{height:ye,children:c.map((Ae,we)=>(0,i.jsx)(rC,{...Ae,uploadState:d},we))})]}),(0,i.jsx)(_u.jl,{onConfirm:w,onCancel:P,confirmBtnProps:{...ee(),disabled:pe},cancelBtnProps:X(),renderFooterSide:()=>d!=="prepare"?null:(0,i.jsxs)("div",{className:"font-check-container",children:[(0,i.jsx)(Ei.A,{attr:"fontUseIsChecked",isChecked:t,label:"\u6211\u62E5\u6709\u4EE5\u4E0A\u5B57\u4F53\u7684\u5546\u7528\u7248\u6743",onChange:()=>{n(!t)}}),d==="prepare"&&(0,i.jsx)(cC.A,{renderContent:()=>(0,i.jsx)(dC.fw,{className:"upload-law-tip",children:(0,i.jsxs)("p",{children:["\u60A8\u9700\u8981\u5BF9\u60A8\u5728\u58A8\u5200\u4E2D\u4E0A\u4F20\u6216\u5B58\u50A8\u7684\u6587\u4EF6\u4EE5\u53CA\u8F93\u5165\u7684\u6570\u636E\u7684\u5408\u6CD5\u6027\u8D1F\u8D23\uFF0C\u5E76\u786E\u4FDD\u83B7\u53D6\u8FD9\u4E9B\u6587\u4EF6\u3001\u6570\u636E\u548C\u5185\u5BB9\u7684\u65B9\u5F0F\u7B26\u5408\u6CD5\u5F8B\u8981\u6C42\u3002\u56E0\u8FD9\u4E9B\u6587\u4EF6\u3001\u6570\u636E\u6216\u5185\u5BB9\u5F15\u53D1\u7684\u4EFB\u4F55\u7EA0\u7EB7\uFF0C\u60A8\u5C06\u627F\u62C5\u6240\u6709\u6CD5\u5F8B\u8D23\u4EFB\uFF0C\u58A8\u5200\u5BF9\u6B64\u4E0D\u627F\u62C5\u4EFB\u4F55\u6CD5\u5F8B\u8D23\u4EFB\u3002",(0,i.jsx)("a",{href:"/tos",target:"blank",children:"\u4E86\u89E3\u66F4\u591A"})]})}),customIconName:"common/font/law/tip"})]}),footer:!1})]})}),fC=()=>{const t=(0,o.wA)(),n=(0,o.d4)(vl.y.query.getUploadFontModalPosition),s=(0,o.d4)(vl.y.query.getFontModalState),c=(0,o.d4)(vl.y.query.getIsShowFontModal),d=(0,o.d4)(T.O4);if(!c)return null;const w=(pe,ye)=>{t({type:vl.y.entryKey["font:uploadFontModalPosition:update"],payload:{position:{left:pe,top:ye}}})},P=()=>{t({type:vl.y.entryKey["font:fontModal:close2"]})},F=(n==null?void 0:n.left)||window.innerWidth/2-480/2,X=(n==null?void 0:n.top)||window.innerHeight/2-418/2,ee=s.startsWith("upload")?"\u5B57\u4F53\u4E0A\u4F20":"\u7BA1\u7406\u5B57\u4F53";return(0,i.jsx)(ir.A,{position:{left:F,top:X},onMove:w,children:(0,i.jsxs)($b,{id:"upload-font-modal",className:d,children:[(0,i.jsx)(_u.rQ,{title:ee,type:"draggable"}),(0,i.jsx)(_u.v,{canClose:!0,onClick:P}),s==="upload-initial"?(0,i.jsx)(iC,{}):s==="upload-uploading"?(0,i.jsx)(gC,{}):(0,i.jsx)(uC,{})]})})},yC=t=>{var n;let{isDesign:s,onlyView:c,isCommunityPreviewMode:d,isEmbedV2PreviewMode:w,isHTMLZipPreviewMode:P,layout:F,isAutoFillPanelShow:X,isFindReplacePanelShow:ee,isShowPreference:pe,isExportMenuShow:ye,isShowContextMenu:Ae,isShowFloatingToolbar:we}=t;const _e=(0,r.useRef)(null),Fe=c&&!ENV.IS_ON_PREMISES&&!P&&!d&&!w&&!((n=MB)!=null&&(n=n.user)!=null&&n.id),Ye=(0,r.useContext)(S4.G)==="read_only";return(0,i.jsxs)("div",{className:"fixed_area",id:"fixed-area",ref:_e,children:[Ae&&(0,i.jsx)(cn,{}),(0,i.jsx)(z.Ay,{}),(0,i.jsx)(nd,{}),Ye&&(0,i.jsx)(N.H,{}),c?(0,i.jsxs)(i.Fragment,{children:[s&&(0,i.jsx)(v3,{}),Fe&&(0,i.jsx)(Nb.v,{})]}):(0,i.jsxs)(i.Fragment,{children:[X&&(0,i.jsx)(hm,{}),ee&&(0,i.jsx)(ot,{}),pe&&(0,i.jsx)(U2,{}),ye&&(0,i.jsx)(p7,{}),F==="old_right"&&(0,i.jsx)(S7,{}),(0,i.jsx)(Wu,{}),(0,i.jsx)(lt,{readOnly:!0,id:"clipboard",value:"COPIED__MB__WIDGET"}),ENV.IS_WONDER_SHARE&&(0,i.jsx)(rt,{}),(0,i.jsx)(Ru,{}),(0,i.jsx)(Ib,{}),we&&(0,i.jsx)(Sb,{}),(0,i.jsx)(ws,{}),(0,i.jsx)(so,{}),s&&(0,i.jsx)(v3,{}),!s&&(0,i.jsx)(L2,{}),(0,i.jsx)(Hv,{}),(0,i.jsx)(fC,{})]}),(0,i.jsx)(Jb,{})]})},xC=(0,m.Mz)([S.W4,A.jx,A.pH,A.rg,A.uu,T.bP,g1.wb,Me.jQ,T.vA,Nm.bc,te,A.$W],(t,n,s,c,d,w,P,F,X,ee,pe,ye)=>({isDesign:t.isDesign,onlyView:n===R.qi.OnlyView,isCommunityPreviewMode:s,isEmbedV2PreviewMode:c,isHTMLZipPreviewMode:d,layout:w,isAutoFillPanelShow:P,isFindReplacePanelShow:F,isShowPreference:X,isExportMenuShow:ee,isShowContextMenu:pe,isShowFloatingToolbar:ye})),vC=(0,o.Ng)(t=>xC(t))(yC);var L3=e(70351),C0=e(54386),S2=e(40778);const bC=u.Ay.span.withConfig({displayName:"styles__StyledSUnreadSignal",componentId:"sc-2pu3mc-0"})(["position:absolute;width:6px;height:6px;background-color:",";border-radius:50%;opacity:0;&.is-on{opacity:1;}"],t=>t.theme.color_proto),CC=(0,r.memo)(t=>{let{on:n,className:s}=t;return n?(0,i.jsx)(bC,{className:f()(s,{"is-on":n})}):null}),wC=(0,u.Ay)(be.Ay).withConfig({displayName:"styles__StyledMenuContent",componentId:"sc-tp3fgw-0"})(["",";ul{&.SubMenu{border-radius:8px;}}li{list-style:none;}a{color:",";}.MenuItem{a{.shortfont kbd{color:rgba(255,255,255,0.7);}}&.disabled a{color:rgba(255,255,255,0.22);.shortfont kbd{color:rgba(255,255,255,0.22);}}.toolbar-feature-notice{&.versionHistory{left:111px;}&.versionHistoryTop{left:47px;}}}.SubMenu{border-radius:4px;min-width:200px;background:",";color:",";box-shadow:",";border:1px solid ",";&:lang(en){min-width:200px;}.MenuItem{& > a{&:lang(en){padding-left:27px;}}&.hasIcon{> a{&:lang(en){padding-left:10px;}}}&.findReplaceItem.hasIcon,&.pastePropertiesItem.hasIcon{a{&:lang(en){padding-left:27px;}}.MenuItem{a{.shortfont kbd{color:",";}}&.disabled a{color:",";.shortfont kbd{color:",";}}}.SubMenu{border-radius:8px;background:",";color:",";box-shadow:",";border:1px solid ",";}}}}"],Ci.ZJ,t=>t.theme.color_text_L1,t=>t.theme.color_bg_white,t=>t.theme.color_text_L1,t=>t.theme.menu_content_shadow,t=>t.theme.color_bg_border_01,t=>t.theme.color_text_L2,t=>t.theme.color_text_disabled01,t=>t.theme.color_text_disabled01,t=>t.theme.color_bg_white,t=>t.theme.color_text_L1,t=>t.theme.shadow_m,t=>t.theme.color_bg_border_01),SC=u.Ay.div.withConfig({displayName:"styles__StyledToolbarLeftMenu",componentId:"sc-tp3fgw-1"})(["display:flex;align-items:center;pointer-events:auto;.toolbar-logo-container{width:48px;height:32px;border-radius:6px;display:flex;align-items:center;justify-content:center;cursor:pointer;.toolbar-icon-item.toolbar-basket-quit{width:32px;height:32px;.svg-icon{width:32px;height:32px;}}.toolbar-logo-icon{width:32px;height:32px;path{fill:",";}}.down-container{width:16px;height:32px;display:flex;align-items:center;justify-content:center;&.active,&:hover{.toolbar-dropDown{margin-top:5px;transition:margin-top ease-in-out 0.2s;}}}.toolbar-dropDown{width:16px;height:16px;margin-top:0;color:",";}&:not(.active):hover{background:",";}&.active{background:",";}}"],t=>t.theme.color_text_L1,t=>t.theme.color_text_L1,t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_btn_secondary_active);var AC=e(15915);const Ig=(t,n)=>{const s=(0,r.useCallback)(w=>(t.subscribe(w),()=>{t.unsubscribe(w)}),[t]),c=(0,r.useCallback)(()=>t[n],[t,n]);return(0,r.useSyncExternalStore)(s,c,c)};class IC extends r.PureComponent{constructor(){var n;super(...arguments),n=this,(0,p.A)(this,"state",{isOpen:!1,position:{left:6,top:46},canPasteProperties:!1}),(0,p.A)(this,"handleToggle",function(s){s===void 0&&(s=void 0);const{isOpen:c}=n.state,d=s===void 0?!c:s;n.setState({isOpen:d}),(0,wd.kX)({operation_type:wd.mV.BackDropMenu})}),(0,p.A)(this,"handleExitCombo",()=>{const{dispatch:s}=this.props;s({type:"entry:exit:combo"})})}render(){const{dispatch:n,onlyView:s,isShowExitCombo:c}=this.props,{isOpen:d,position:w}=this.state;return(0,i.jsxs)(SC,{children:[(0,i.jsxs)("div",{className:f()("toolbar-logo-container",{active:d}),children:[c?(0,i.jsx)(yh.A,{className:"toolbar-basket-quit",svgIconName:"art_board/basket/quit",toolTipName:I18N.ToolBar.back_to_edit,toolTipDistance:8,onClick:this.handleExitCombo}):(0,i.jsx)(Je.C,{className:"toolbar-logo-icon",name:"toolbar/modao/logo",onClick:()=>this.handleToggle()}),(0,i.jsx)("div",{className:f()("down-container",{active:d}),onClick:()=>this.handleToggle(),children:(0,i.jsx)(Je.C,{className:"toolbar-dropDown",name:"toolbar/triangle-down-16-left"})})]}),d&&(0,i.jsx)(wC,{position:w,onClose:()=>this.handleToggle(!1),children:(0,i.jsx)(MC,{onlyView:s,dispatch:n})})]})}}const MC=(0,r.memo)(t=>{let{dispatch:n,onlyView:s}=t;const[c,d]=(0,r.useState)(!1),[w,P]=(0,r.useState)(!1),[F,X]=(0,r.useState)((0,We.Yt)("isShowVersionSignal",(0,AC.Ds)(),We.qW.Boolean)),ee=Ig(sdkStore,"canUndo")(),pe=Ig(sdkStore,"canRedo")(),ye=(0,o.d4)(EC);(0,r.useEffect)(()=>{(async()=>{const hl=!!await(0,Ne.LD)({isShowPrompt:!1}),Fp=ye.newSelection.map(M2=>sdkStore.getHotItem(M2)),nu=(await(0,Ne.FR)(Fp)).canPaste;d(hl),P(nu)})()},[]);const Ae=()=>{n({type:"entry:leave:project"})},we=()=>{n({type:"entry:toolbar:open:versionControl:modal"}),F&&((0,We.a0)("isShowVersionSignal",!1,We.qW.Boolean),X(!1)),(0,wd.kX)({operation_type:wd.mV.VersionToDropMenu})},_e=()=>{n({type:"modal:update:state",payload:{projectSummaryModal:{isOpen:!0}}}),(0,Dc.kH)("file_information",{source:"\u8FD4\u56DE\u4E0B\u62C9\u7BAD\u5934-\u6587\u4EF6\u4FE1\u606F"})},Fe=Da=>{Da.preventDefault(),n({type:"modal:update:state",payload:{helpCenterModal:{isOpen:!0,productName:"a10_proto_tool_v8"}}})},Ye=Da=>{Da.preventDefault(),ENV.IS_WONDER_SHARE?(0,yc.JW)("https://mockitt.wondershare.com/whats-new.html","_blank","noreferrer"):(0,yc.JW)("/changelog","_blank","noreferrer"),MB.notice({text:I18N.Common.feature_is_not_available,type:"warning"})},He=Da=>{Da.preventDefault(),n({type:"toggle:showShortCutArtBoard"})},tt=Da=>{Da.preventDefault(),n({type:"newbieVideoPanelState:toggle",payload:{show:!0}}),(0,wd.kX)({operation_type:wd.mV.NewbieVideo})},It=Da=>{Da.preventDefault(),n({type:"preference:open:appearance"}),n({type:vl.y.entryKey["font:fontModal:close"],payload:{closeOther:!0}})},Nt=Da=>{Da.preventDefault(),(0,yc.JW)("https://www.youtube.com/playlist?list=PLwqdiqSxXvnmIu3Vlis-GKrxVokuci0RK","_blank","noreferrer")},Lt=()=>{MB.global.experienceLoginModalHelper("isSave")||n({type:"entry:start:saving"})},Xt=Da=>{Da.preventDefault(),!MB.global.experienceLoginModalHelper("isSave")&&n({type:"entry:toolbar:open:export_menu"})},_o=Da=>{Da.preventDefault(),ee&&n({type:"entry:undo-stack:undo"})},co=Da=>{Da.preventDefault(),pe&&n({type:"entry:undo-stack:redo"})},yn=Da=>{Da.preventDefault(),n({type:"entry:cut:items"}),(0,R0.H8)()&&(0,Ne.P8)()},An=Da=>{Da.preventDefault(),n({type:"entry:copy:items",payload:{needPasteProperties:!0}}),(0,R0.H8)()&&(0,Ne.P8)()},In=Da=>{Da.preventDefault(),n({type:"entry:toggle:paste:direct:by:contextmenu"})},wn=Da=>{Da.preventDefault(),n({type:"entry:select:all"})},_n=Da=>{Da.preventDefault(),n({type:"entry:update:preference",payload:{theme:I.Sx.LIGHT}}),n({type:"entry:init:ruler:canvas"})},Jn=Da=>{Da.preventDefault(),n({type:"entry:update:preference",payload:{theme:I.Sx.DARK}}),n({type:"entry:init:ruler:canvas"})},rs=Da=>{const{showRuler:hl}=ye;Da.preventDefault(),n({type:"entry:update:preference",payload:{ruler:!hl}})},as=Da=>{const{isShowReferLine:hl}=ye;Da.preventDefault(),n({type:"entry:update:preference",payload:{show_ruler_line:!hl}})},mi=Da=>{const{isShowAlignLine:hl}=ye;Da.preventDefault(),n({type:"entry:update:preference",payload:{show_align_line:!hl}})},ha=Da=>{Da.preventDefault(),n({type:"entry:toggle:left-nav-panel"})},Ca=Da=>{Da.preventDefault(),n({type:"entry:toggle:right-panel"})},ms=Da=>{Da.preventDefault(),n({type:"entry:design:zoom:in"})},qn=Da=>{Da.preventDefault(),n({type:"entry:design:zoom:out"})},si=Da=>{Da.preventDefault(),n({type:"entry:set:scale",payload:{scale:100}})},Hi=Da=>{Da.preventDefault(),n({type:"entry:zoom:fit:scale:offset"})},ra=Da=>{Da.preventDefault(),n({type:"entry:design:zoom:selection"})},Ta=Da=>{Da.preventDefault(),n({type:"entry:isShowSticky:toggle"})},Pi=()=>{n({type:"comment:toggle:isShowCommentInCanvas"})},Bi=Da=>{Da.preventDefault(),n({type:"entry:findReplacePanel:toggle:show"})},Ji=()=>{n({type:"entry:update:preference",payload:{isShowMultiCursor:!ye.isShowMultiCursor}})},Ui=Da=>{Da.preventDefault(),n({type:"entry:paste:items:properties"})},wa=Da=>{Da.preventDefault(),n({type:"modal:update:state",payload:{screenTrashModal:{isOpen:!0,isEditingCombo:kr,isEditingUserCombo:Fl}}})},Ea=function(Da,hl){return Da===void 0&&(Da=""),hl===void 0&&(hl=!1),(0,i.jsx)(CC,{on:hl,className:f()("toolbar-feature-notice",Da)})},Ba=()=>ye.newSelection.length===0,lr=(0,i.jsx)(Je.C,{name:"toolbar/selected",className:"selected-icon"}),Ya=(0,i.jsx)("div",{className:"menu-divider"}),{showRuler:cr,isShowReferLine:zr,theme:dl,isLeftShow:Er,isShowRightPanel:Va,isShowSticky:nc,isShowAlignLine:sc,isShowMultiCursor:Yr,isEditingCombo:kr,isEditingUserCombo:Fl,isShowExport:Ul,isShowCommentInCanvas:Gl,currentUser:Tl,currentOrg:hd}=ye,Ac=dl==="dark",W0=Ba();return(0,i.jsxs)(r.Fragment,{children:[!s&&(0,i.jsxs)(i.Fragment,{children:[!kr&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(be.Dr,{text:I18N.ToolBar.back_to_dashboard,onClick:Ae}),(0,i.jsx)(H.c,{})]}),(0,i.jsx)(be.Dr,{text:I18N.ToolBar.save,hotKeyText:Le.V.save,onClick:Lt,disabled:!1}),(0,i.jsx)(be.Dr,{text:I18N.ToolBar.export2,onClick:Xt,disabled:!(Ul&&!kr)}),(0,i.jsxs)(be.Dr,{text:I18N.ToolBar.edit,isAiry:!0,children:[(0,i.jsx)(be.Dr,{text:I18N.ToolBar.undo,onClick:_o,disabled:!ee,hotKeyText:Le.V.undo}),(0,i.jsx)(be.Dr,{text:I18N.ToolBar.redo,onClick:co,disabled:!pe,hotKeyText:Le.V.redo}),Ya,(0,i.jsx)(be.Dr,{text:I18N.ToolBar.cut,onClick:yn,disabled:W0,hotKeyText:Le.V.cut}),(0,i.jsx)(be.Dr,{text:I18N.ToolBar.copy+"/"+I18N.ContextMenu.copy_properties,onClick:An,disabled:W0,hotKeyText:Le.V.copy}),(0,i.jsx)(be.Dr,{text:I18N.ToolBar.paste,onClick:In,disabled:!c,hotKeyText:Le.V.past}),(0,i.jsx)(be.Dr,{text:I18N.ContextMenu.paste_properties,onClick:Ui,hotKeyText:Le.V.pasteProperties,disabled:!w,className:"pastePropertiesItem"}),Ya,(0,i.jsx)(be.Dr,{text:I18N.ToolBar.select_all,onClick:wn,hotKeyText:Le.V.selectAll}),(0,i.jsx)(H.c,{}),(0,i.jsx)(be.Dr,{text:I18N.ToolBar.find_replace,onClick:Bi,hotKeyText:Le.V.findReplace,className:"findReplaceItem"}),(0,i.jsx)(H.c,{}),(0,i.jsx)(re.fc,{dispatch:n,from:Jt.G.TopBar,user:Tl,org:hd})]})]}),(0,i.jsxs)(be.Dr,{subMenuClassName:"inner-sub",text:I18N.ToolBar.view,isAiry:!0,children:[(0,i.jsxs)(be.Dr,{text:I18N.ToolBar.theme,isAiry:!0,children:[(0,i.jsx)(be.Dr,{text:I18N.ToolBar.theme_light,onClick:_n,icon:Ac?null:lr}),(0,i.jsx)(be.Dr,{text:I18N.ToolBar.theme_dark,onClick:Jn,icon:Ac?lr:null})]}),Ya,(0,i.jsx)(be.Dr,{text:I18N.ToolBar.scale_length,onClick:rs,icon:cr?lr:null}),cr&&(0,i.jsx)(be.Dr,{text:I18N.ToolBar.ref_line,onClick:as,icon:zr?lr:null}),cr&&(0,i.jsx)(be.Dr,{text:I18N.ToolBar.align_line,onClick:mi,icon:sc?lr:null}),(0,i.jsx)(be.Dr,{text:I18N.ToolBar.sticky,onClick:Ta,icon:nc?lr:null,hotKeyText:Le.V.sticky}),!kr&&(0,i.jsx)(be.Dr,{text:I18N.ToolBar.comment,onClick:Pi,icon:Gl?lr:null}),(0,i.jsx)(be.Dr,{text:I18N.ToolBar.multi_user_mouse_pointer,onClick:Ji,icon:Yr?lr:null}),(0,i.jsx)(be.Dr,{text:I18N.ToolBar.show_left_panel,onClick:ha,icon:Er?lr:null,hotKeyText:Le.V.showLeftPanel}),(0,i.jsx)(be.Dr,{text:I18N.ToolBar.show_right_panel,onClick:Ca,icon:Va?lr:null,hotKeyText:Le.V.showRightPanel}),(0,i.jsx)(H.c,{}),(0,i.jsx)(be.Dr,{text:I18N.ToolBar.zoomin,onClick:ms,hotKeyText:Le.V.zoomIn}),(0,i.jsx)(be.Dr,{text:I18N.ToolBar.zoomout,onClick:qn,hotKeyText:Le.V.zoomOut}),(0,i.jsx)(be.Dr,{text:I18N.ToolBar.zoom_to_hundred,onClick:si,hotKeyText:Le.V.zoomToHundred}),(0,i.jsx)(be.Dr,{text:I18N.ToolBar.fit_canvas,onClick:Hi,hotKeyText:Le.V.fitCanvas}),(0,i.jsx)(be.Dr,{text:I18N.ToolBar.zoom_selection,onClick:ra,hotKeyText:Le.V.zoomSelection})]}),!s&&(0,i.jsx)(be.Dr,{text:I18N.ToolBar.favorite_set,onClick:It}),(0,i.jsx)(H.c,{}),!s&&(0,i.jsxs)(i.Fragment,{children:[!kr&&(0,i.jsx)(be.Dr,{text:I18N.ProjectSummaryModal.title,onClick:_e}),(0,i.jsx)(be.Dr,{className:"version-history",icon:Ea("versionHistory",F),text:I18N.ToolBar.show_version_history,onClick:we}),(0,i.jsx)(be.Dr,{text:kr?I18N.ToolBar.widget_trash_bin:I18N.ToolBar.page_trash_bin,onClick:wa}),(0,i.jsx)(H.c,{})]}),!ENV.IS_ON_PREMISES&&(0,i.jsx)(be.Dr,{text:I18N.ToolBar.help,canClick:!0,isAiry:!0,children:!ENV.IS_ON_PREMISES&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(I0.A,{children:(0,i.jsx)(be.Dr,{text:I18N.ToolBar.online_customer_service})}),(0,i.jsx)(be.Dr,{text:I18N.ToolBar.help_center,onClick:Fe})]})}),ENV.IS_WONDER_SHARE&&(0,i.jsx)(be.Dr,{text:I18N.ToolBar.tutorial,onClick:Nt}),(0,i.jsx)(be.Dr,{text:I18N.ToolBar.shortcuts,onClick:He}),!ENV.IS_ON_PREMISES&&(0,i.jsx)(be.Dr,{text:I18N.ToolBar.newbie_video,onClick:tt}),!ENV.IS_ON_PREMISES&&(0,i.jsx)(be.Dr,{text:I18N.ToolBar.feature_update,onClick:Ye,disabled:!1,canClick:!0})]})}),TC=(0,m.Mz)([A.jx],t=>({onlyView:t===R.qi.OnlyView})),EC=(0,m.Mz)([T.qT,T.O4,pt.Xf,T.gf,tc.UI,C.$7,T.Nn,T.lU,y.r,l.EH,S.HW,S.wA,ce.p$],(t,n,s,c,d,w,P,F,X,ee,pe,ye,Ae)=>{let{isEditingCombo:we,isEditingProjectMain:_e,isEditingUserCombo:Fe}=X;return{showRuler:t,theme:n,isLeftShow:s,isShowReferLine:c,isShowRightPanel:d,isShowSticky:w,isShowAlignLine:P,isShowMultiCursor:F,isEditingCombo:we,isEditingUserCombo:Fe,isShowExport:_e,isShowCommentInCanvas:ee,currentUser:pe,currentOrg:ye,newSelection:Ae}}),kC=(0,o.Ng)(t=>TC(t))(IC);var Wh=e(8580),_C=e(13020);const O4=t=>{const{value:n,className:s,isEditing:c,onConfirm:d,onChange:w,isShowToolTips:P=!1}=t,[F,X]=(0,r.useState)(n),ee=ye=>{X(ye),w&&w(n)},pe=()=>{d&&d(F,F!==n)};return(0,r.useEffect)(()=>{X(n)},[n,c]),(0,i.jsx)(_C.A,{value:F,className:s,editing:c,onBlur:pe,onChange:ee,isShowToolTips:P})},PC=u.Ay.div.withConfig({displayName:"styles__StyledDesignSaveTips",componentId:"sc-eg733g-0"})(["color:",";display:flex;align-items:center;justify-content:flex-start;height:32px;width:auto;.toolbar-saveSuccess{color:#298df8;width:14px;height:14px;}.svg-icon.toolbar-saveSuccess{color:#23b571;}.save-tips-dropdown{height:16px;width:16px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:4px;.svg-icon{color:",";}&.is-open,&:hover{.toolbar-dropDown{margin-top:5px;transition:margin-top ease-in-out 0.2s;}}}.only-view-container{display:flex;flex:1;align-items:center;justify-content:center;max-width:350px;.center-name-wrapper{position:relative;}.can-edit-btn{display:flex;padding:3px 12px;border:1px solid ",";border-radius:100px;margin-right:4px;font-size:12px;color:",";cursor:pointer;&:hover{background-color:",";}&:active{background-color:",";}}.only-can-view{font-size:12px;color:",";margin-left:8px;}.save-name{cursor:default;}}.save-name{width:auto;max-width:none;font-size:14px;color:",";text-align:center;cursor:text;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;&.screen-glue-name{cursor:auto;}&.is-editing{width:100%;.is-editing textarea{color:",";}}.save-name-edit-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600;font-size:13px;line-height:20px;height:20px;&.is-editing{border-bottom:unset;textarea{font-weight:bold;text-align:center;}}}}.mockitt-icon{width:193px;height:40px;}.loading-box{width:32px;height:32px;margin-left:12px;display:flex;align-items:center;justify-content:center;.svg-icon{width:32px;height:32px;&.is-saving{width:16px;height:16px;color:#1684fc;animation:design-ani-spinning 1.5s infinite ease-out;}&:not(.is-saving){path{&:first-child{fill:",";}&:last-child{fill:",";}}}&.is-success{path{&:last-child{fill:",";}}}&.is-offline{path{&:last-child{fill:",";}}}}}.undoIcon,.redoIcon{width:32px;height:32px;}.save-name{&.is-editing{max-width:230px;}.save-name-edit-name{max-width:230px;}}&.isEditing{width:100%;.save-name.is-editing{max-width:290px;width:auto;}.save-name-edit-name{max-width:290px;}}@keyframes design-ani-spinning{0%{transform:rotate(0deg);}100%{transform:rotate(359deg);}}"],t=>t.theme.color_text_L3,t=>t.theme.color_text_L1,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_text_L1,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_btn_secondary_active,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,t=>t.theme.color_success,t=>t.theme.color_error);var D3=e(18087),NC=e(10286),LC=e(14517);const DC=u.Ay.div.withConfig({displayName:"styles__StyledFlpakSizeWarnTips",componentId:"sc-iz64gy-0"})(["cursor:pointer;position:relative;width:82px;height:24px;padding:4px 6px;border-radius:4px;background-color:#FAAD14;flex-shrink:0;margin-left:10px;display:flex;justify-content:space-between;color:#FFF;font-size:12px;font-weight:600;line-height:16px;.svg-box{width:16px;height:16px;border-radius:4px;&:hover{background-color:rgba(255,255,255,0.2);}svg{width:16px;}}.corner{position:absolute;left:-3px;top:9px;transform:rotate(45deg);width:6px;height:6px;border-radius:0 1px;background-color:#FAAD14;}"]),BC=t=>{const{onClose:n,onClick:s}=t;return(0,i.jsxs)(DC,{onClick:s,children:[(0,i.jsx)("span",{children:"\u4F53\u79EF\u8F83\u5927"}),(0,i.jsx)("div",{className:"svg-box",children:(0,i.jsx)(Je.C,{name:"common/close_ninth",className:"flpak-size-warn-close",onClick:c=>n(c),isColorPure:!0})}),(0,i.jsx)("div",{className:"corner"})]})},B3=(0,r.memo)(BC),RC=t=>{let{dispatch:n}=t;const s=Ig(sdkStore,"canUndo")(),c=Ig(sdkStore,"canRedo")(),d=()=>{s&&n({type:"entry:undo-stack:undo"})},w=()=>{c&&n({type:"entry:undo-stack:redo"})};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(yh.A,{onClick:d,className:"undoIcon",toolTipName:I18N.ToolBar.undo,svgIconName:"toolbar/undo",toolTipDistance:8,disabled:!s}),(0,i.jsx)(yh.A,{onClick:w,className:"redoIcon",toolTipName:I18N.ToolBar.redo,svgIconName:"toolbar/redo",toolTipDistance:8,disabled:!c})]})},jC=(0,m.Mz)([A.jx,ce.p$],(t,n)=>({viewType:t,newSelection:n})),OC=(0,o.Ng)(t=>jC(t))(RC),FC=t=>{if(!t)return{};const n=window.getComputedStyle(t);return["fontSize","fontFamily","fontWeight","lineHeight","letterSpacing","overflow","tabSize","textIndent","textTransform","whiteSpace","wordBreak","wordSpacing","boxSizing","padding","border"].reduce((c,d)=>(Number.isNaN(Number(d))&&d!=="length"&&(c[d]=n[d]),c),{})},UC=(0,r.forwardRef)(function(n,s){const{className:c,style:d,value:w,maxLength:P,autoWidth:F=!1,cursorPosition:X="end",onSave:ee,onCancel:pe,onEnd:ye}=n,Ae=r.useRef(null),we=r.useRef(null),_e=r.useRef(!1),Fe=r.useRef(),[Ye,He]=r.useState(w),[tt,It]=r.useState({});r.useEffect(()=>{He(w)},[w]);const Nt=()=>{const as=Ae.current;if(!as)return;const{width:mi}=we.current.getBoundingClientRect();as.style.width=mi+"px"};r.useEffect(()=>{if(!Ae.current)return;const as=Ae.current;as.focus(),as.select(),X==="start"&&(as.scrollLeft=0),F&&(It(FC(as)),Nt())},[X,F]),r.useEffect(()=>{F&&new ResizeObserver(()=>{Nt()}).observe(we.current)},[F]);const Lt=as=>{let{target:mi}=as;He(mi.value.replace(/[\n\r]/g,""))},Xt=()=>{_e.current=!0},_o=()=>{_e.current=!1},co=as=>{let{keyCode:mi}=as;_e.current||(Fe.current=mi)},yn=()=>{ee(Ye.trim())};(0,r.useImperativeHandle)(s,()=>({confirmChange:yn,cancel:pe}));const An=as=>{let{keyCode:mi,ctrlKey:ha,altKey:Ca,metaKey:ms,shiftKey:qn}=as;Fe.current===mi&&!_e.current&&!ha&&!Ca&&!ms&&!qn&&(mi===13?(yn(),ye==null||ye()):mi===27&&pe())},In=()=>{yn()},wn=as=>as!==null&&typeof as=="object"&&!Array.isArray(as),_n=r.useMemo(()=>F?{minWidth:0,maxWidth:"100%",...wn(F)?F:{}}:null,[F]),Jn={minWidth:_n==null?void 0:_n.minWidth,maxWidth:_n==null?void 0:_n.maxWidth,width:_n&&"auto",...d},rs={...tt,...Jn,whiteSpace:"nowrap",position:"absolute",visibility:"hidden"};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("input",{ref:Ae,className:c,maxLength:P,value:Ye,onChange:Lt,onKeyDown:co,onKeyUp:An,onCompositionStart:Xt,onCompositionEnd:_o,onBlur:In,style:Jn}),(0,i.jsx)("span",{className:"auto-width-placeholder",ref:we,style:rs,children:Ye})]})}),zC=t=>{const{value:n,className:s,isEditing:c,theme:d,onConfirm:w}=t,F={...{color:d===I.Sx.LIGHT?"rgba(0, 0, 0, 0.85)":"rgba(255, 255, 255, 0.85)",fontSize:"13px",height:"20px",lineHeight:"20px",fontWeight:"600"},paddingTop:"2px"};return(0,i.jsx)("div",{className:s,children:c?(0,i.jsx)(UC,{cursorPosition:"start",autoWidth:{minWidth:0,maxWidth:"230px"},style:F,value:n,onSave:w,onCancel:()=>w(n)}):(0,i.jsx)(O4,{value:n,className:"save-name-edit-name",isEditing:!1})})};class WC extends r.PureComponent{constructor(n){var s;super(n),(0,p.A)(this,"handleEdit",c=>{const{isRenderProjectTips:d}=this.props;d&&this.setState({isEditing:!0}),this.renameProjectEntry=c}),(0,p.A)(this,"handleChangeProjectName",c=>{const{dispatch:d}=this.props;d({type:"entry:update:root-project:name",payload:{name:c}}),this.setState({isEditing:!1}),(0,Dc.kH)("rename_project",{project_type:"\u539F\u578B V8",source:this.renameProjectEntry})}),(0,p.A)(this,"handleChangeScreenGlueName",c=>{const{dispatch:d}=this.props;d({type:"entry:toolbar:update:screen_glue_name",payload:{name:c}}),this.setState({isEditing:!1})}),(0,p.A)(this,"handleSave",()=>{const{dispatch:c}=this.props;MB.global.experienceLoginModalHelper("isSave")||c({type:"entry:start:saving"})}),(0,p.A)(this,"handleClickVersionControl",()=>{this.props.dispatch({type:"entry:toolbar:open:versionControl:modal"}),(0,wd.kX)({operation_type:wd.mV.VersionToTitleMenu})}),(0,p.A)(this,"handleProjectSummaryClicked",()=>{this.props.dispatch({type:"modal:update:state",payload:{projectSummaryModal:{isOpen:!0}}}),(0,Dc.kH)("file_information",{source:"\u9876\u680F\u4E2D\u90E8\u540D\u79F0\u4E0B\u62C9-\u6587\u4EF6\u4FE1\u606F"})}),(0,p.A)(this,"handleOpenTrash",c=>{c.stopPropagation();const{isShowExitCombo:d,isEditingUserCombo:w,dispatch:P}=this.props;P({type:"modal:update:state",payload:{screenTrashModal:{isOpen:!0,isEditingCombo:d,isEditingUserCombo:w}}})}),(0,p.A)(this,"handleSaveTipsDropdown",()=>{(0,wd.kX)({operation_type:wd.mV.TitleDropMenu})}),(0,p.A)(this,"handleGoEdit",async()=>{const{rootProject:c,importAbarOptions:d}=this.props,{isFromAbar:w,tabCid:P}=d||{},F=w?"?from=zboard"+(P?"&tabCid="+P:""):"";location.href=(0,Bm.Dw)("design/"+c.cid+F)}),(0,p.A)(this,"handleGoToReadOnly",async()=>{const{rootProject:c,projectMeta:d,screenMeta:w,dispatch:P}=this.props;window.history.pushState("","",(0,Bm.Dw)(c.access_token+"/sharing?view_mode=read_only")),(0,D3.F)(),MB.canEditByCurrentUser=!0,await P({type:"screen:update:state",payload:{isMultiplePage:!1}}),await P({type:"ai:update:state",payload:{showAIModal:!1,currentAiComponent:null}});const F=MB.getRootProject()||MB.abarSubProject,{sharing:X}=await(0,NC.J_)({project:F,accessToken:F==null?void 0:F.access_token}),ee=X.type==="default"?(X==null?void 0:X.view_sticky)==="view_sticky":X.view_sticky;await P({type:"current:update:state",payload:{sharingInReadOnly:{...X,view_sticky:ee}}}),await P({type:"entry:root-project:readOnly:activate",payload:{projectBasic:c,projectMeta:d,screenCid:w.cid}}),await P({type:"entry:update:viewport:rect"}),(0,D3.R)(),(0,Dc.kH)("model_change",{change_type:"\u7F16\u8F91\u6A21\u5F0F\u5207\u6362\u53EA\u8BFB"}),(0,LC.wl)()}),(0,p.A)(this,"onFlpakSizeWarnTipsClose",c=>{c.stopPropagation(),this.setState({isFlpakSizeWarnTipsShow:!1})}),(0,p.A)(this,"onFlpakSizeWarnTipsClick",()=>{this.props.dispatch({type:"modal:update:state",payload:{flpakSizeWarnModal:{isOpen:!0}}})}),this.state={isEditing:!1,isSaved:!1,isOffline:!(0,un.ys)(),isFlpakSizeWarnTipsShow:(s=ENV["@FLPAK_SIZE_INFO"])==null?void 0:s.isFlpakSizeWarn},this.renameProjectEntry=""}UNSAFE_componentWillReceiveProps(n){this.props.isSaving&&!n.isSaving&&this.setState({isSaved:!0})}componentDidUpdate(){this.setState({isOffline:!(0,un.ys)()}),this.state.isSaved&&(this.timer=setTimeout(()=>{this.setState({isSaved:!1})},2e3))}componentWillUnmount(){clearTimeout(this.timer)}render(){const{isSaving:n,onlyView:s,rootProjectName:c,editingComboName:d,isRenderProjectTips:w,isRenderScreenGlueTips:P,isRenderExperienceTips:F,isShowExitCombo:X,layoutV9:ee="old",theme:pe,dispatch:ye}=this.props,{isSaved:Ae,isEditing:we,isFlpakSizeWarnTipsShow:_e,isOffline:Fe}=this.state,Ye=VC({isSaving:n}),He=n?I18N.ToolBar.IconSaving:Fe?I18N.ToolBar.IconSaveFailure:I18N.ToolBar.IconSave,tt=(0,S2.OB)(),It=()=>{MB.global.experienceLoginModalHelper("isSave")||MB.action("entry:start:saving")};return(0,i.jsxs)(PC,{className:f()({isEditing:we}),children:[s?(0,i.jsxs)("div",{className:"only-view-container",children:[(0,i.jsx)("span",{className:"save-name",children:(0,Gt.qk)(c)}),_e&&!X&&(0,i.jsx)(B3,{onClose:this.onFlpakSizeWarnTipsClose,onClick:this.onFlpakSizeWarnTipsClick})]}):(0,i.jsxs)(i.Fragment,{children:[F?ENV.IS_WONDER_SHARE?(0,i.jsx)(KC,{}):(0,i.jsx)(HC,{}):(0,i.jsxs)("div",{className:f()("save-name",{"is-editing":we,"screen-glue-name":P}),onClick:()=>this.handleEdit("\u539F\u578B\u9876\u90E8\u680F"),children:[w?(0,i.jsx)(zC,{value:(0,Gt.qk)(c),className:"save-name-edit-name",isEditing:we,onConfirm:this.handleChangeProjectName,theme:pe}):null,P?(0,i.jsx)(O4,{value:(0,Gt.qk)(d),className:"save-name-edit-name",isEditing:!1,onConfirm:this.handleChangeScreenGlueName}):null]}),!we&&!F&&(0,i.jsx)(i.Fragment,{children:_e&&!X&&(0,i.jsx)(B3,{onClose:this.onFlpakSizeWarnTipsClose,onClick:this.onFlpakSizeWarnTipsClick})})]}),!F&&!s&&(0,i.jsx)(Kc.A,{content:He,direction:"down",children:(0,i.jsx)("a",{className:"loading-box",onClick:It,children:(0,i.jsx)(Je.C,{className:f()({"is-saving":n},{"is-offline":Fe},{"is-success":!Ae&&!n}),name:Ye})})}),tt&&(0,i.jsx)(OC,{dispatch:ye})]})}}const VC=t=>{let{isSaving:n}=t;return n?"general/loading":"toolbar/saveTips/normal"},HC=()=>(0,i.jsx)("svg",{className:"mociking-icon",width:"150",height:"14",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsxs)("g",{fillRule:"nonzero",fill:"none",children:[(0,i.jsx)("path",{d:"M93.982 1l7.194 7.279V1.393h1.945V13l-7.195-7.279v6.882h-1.944V1zm40.89.193c3.167 0 5.736 2.598 5.736 5.803s-2.569 5.804-5.736 5.804c-3.168 0-5.736-2.599-5.736-5.804s2.568-5.803 5.736-5.803zm-64.767 0c1.491 0 2.85.575 3.87 1.519l.186.18-1.374 1.392a3.759 3.759 0 0 0-2.682-1.124c-2.093 0-3.792 1.718-3.792 3.836 0 2.12 1.699 3.837 3.792 3.837.972 0 1.86-.37 2.53-.98l.152-.144 1.375 1.391a5.686 5.686 0 0 1-4.057 1.7c-3.167 0-5.736-2.599-5.736-5.804s2.569-5.803 5.736-5.803zm41.683 0c1.49 0 2.849.575 3.869 1.519l.187.18-1.375 1.392a3.759 3.759 0 0 0-2.681-1.124c-2.094 0-3.792 1.718-3.792 3.836 0 2.119 1.698 3.837 3.792 3.837a3.74 3.74 0 0 0 1.906-.52l.206-.13V8.964h-1.556V6.996h3.5V11.1a5.683 5.683 0 0 1-4.056 1.7c-3.168 0-5.736-2.598-5.736-5.804 0-3.205 2.568-5.803 5.736-5.803zm-55.028 0c3.155 0 5.714 2.588 5.714 5.78 0 3.193-2.559 5.781-5.714 5.781-3.155 0-5.714-2.588-5.714-5.78 0-3.193 2.559-5.781 5.714-5.781zm-8.143-.19v11.603h-1.945V5.724L43.31 9.128l-3.365-3.404v6.882H38V1.003l5.309 5.37 5.308-5.37zm37.783.383l-5.545 5.61 5.545 5.61h-2.625L78.62 7.39v5.213h-1.944V1.39h1.944v5.213l5.156-5.217H86.4zm63.6.004v1.967h-3.403v9.246h-1.944V3.357h-3.403V1.39H150zm-26.488 0c1.799 0 3.257 1.475 3.257 3.295 0 .718-.23 1.382-.616 1.922a3.302 3.302 0 0 1 1.394 2.701c0 1.82-1.459 3.295-3.257 3.295h-5.484V1.39h4.706zm-32.603 0v11.213h-1.945V1.389h1.945zm43.963 1.77c-2.094 0-3.792 1.718-3.792 3.836 0 2.12 1.698 3.837 3.792 3.837s3.791-1.718 3.791-3.837c0-2.118-1.697-3.836-3.791-3.836zM56.76 3.152c-2.086 0-3.777 1.711-3.777 3.822 0 2.11 1.691 3.82 3.777 3.82 2.086 0 3.777-1.71 3.777-3.82s-1.691-3.822-3.777-3.822zm67.53 4.828h-3.54v2.656h3.54a1.32 1.32 0 0 0 1.312-1.328 1.32 1.32 0 0 0-1.312-1.328zm-.778-4.623h-2.761v2.656h2.761a1.32 1.32 0 0 0 1.312-1.328 1.32 1.32 0 0 0-1.312-1.328z",fill:"#3F3A3A"}),(0,i.jsx)("path",{d:"M30 0v13.688h-2.09V2.16h-4.812c-.05.817-.143 2.386-.237 3.899-.304 4.932-3.03 6.967-5.42 7.94l-1-1.973c2.397-.8 4.186-2.825 4.377-6.271.074-1.342.16-2.725.214-3.595h-3.874V.001H30zM7.43 9.005v1.56H13v1.321H7.43v.48h5.803v1.321H0v-1.32h5.804v-.48H.232v-1.321h5.572v-1.56h1.625zm-5.34 0l-.233 1.2H.464l.233-1.2h1.392zm2.669 0l-.232 1.2H3.134l.233-1.2h1.392zm5.108 0l.232 1.2H8.706l-.232-1.2h1.393zm2.67 0l.232 1.2h-1.393l-.232-1.2h1.393zM12.653 0v4.803H7.429v.6h5.34v1.32H7.43v.601h5.572v1.32H.232v-1.32h5.572v-.6H.464V5.402h5.34v-.6H.58V0h12.073zm-6.85 1.32H2.206v2.162h3.599V1.32zm5.225 0H7.429v2.162h3.599V1.32zm-6.5.48l.231 1.202H3.367L3.134 1.8h1.393zm5.57 0l-.231 1.202H8.474L8.706 1.8H10.1z",fill:"#EB5648"})]})}),KC=()=>(0,i.jsx)("img",{className:"mockitt-icon",src:"/mb-workspace/images/workspace/mockitt_toolbar_icon.png",alt:""}),GC=(0,m.Mz)([T.O4],t=>({theme:t})),YC=(0,o.Ng)(t=>GC(t))(WC),ZC=(0,u.Ay)(be.Ay).withConfig({displayName:"styles__StyledMenuContent",componentId:"sc-1jhw9vf-0"})(["",";ul{li.MenuItem{a{& > .expander .screen-icon .sm-folder-icon path{stroke:",";}}}}&.isEmbedV2Preview{top:32px !important;&.isFullScreen{top:48px !important;}ul{li{a{height:24px;}&.rResBunch::after{top:9px}}}}&.isFullScreen > ul{width:189px;}ul{width:160px;min-width:0;}.scroll{overflow-y:overlay;max-height:258px;&::-webkit-scrollbar{display:none;}}.padd{display:flex;flex-direction:row;align-items:center;}li{list-style:none;&.canExpand{a{padding-left:6px;}}&.isFolder{a{padding-left:15px;}&.canExpand{a{padding-left:6px;}}a a .screen-icon{padding-left:2px;}}&.MenuItem.hasIcon.rResCanvas > a:first-child{padding-left:12px;}&.rResBunch.selected .arrow-right{opacity:0;}&.rResBunch::after{opacity:0;position:absolute;top:13px;right:13px;content:'';width:7px;height:4px;display:inline-block;border:1px solid rgba(0,0,0,0.93);border-width:0 0 2px 2px;transform:rotate(-45deg);}&.rResBunch.selected::after{opacity:1;}&.rResCanvas::before{opacity:0;position:absolute;top:14px;right:24px;content:'';width:7px;height:4px;display:inline-block;border:1px solid #fff;border-width:0 0 2px 2px;transform:rotate(-45deg);}&.rResCanvas.selected::before{opacity:1;}}a{height:32px;padding-left:16px;color:",";.expander{padding-left:0;padding-right:5px;&.canExpand{}.arrow-icon{width:9px;height:6px;path{fill:#999999;}&:not(.is-expand){transform:rotate(-90deg);}}.screen-icon{padding-left:1px;.sm-folder-icon{width:23px;height:22px;color:#333 !important;path{stroke:#fff;fill:transparent !important;}}.page{path{fill:","}}}.design-rResCanvas-new{width:20px;height:20px;path{fill:#fff;}}.arrow-right{position:absolute;right:6px;top:10px;transform:rotate(-90deg);path{fill:#fff;}}}span{max-width:6em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}.MenuItem{flex:1;.right-arrow{display:none;}}.SubMenu{border-radius:8px;min-width:200px;background:",";color:",";box-shadow:",";border:1px solid ",";}.context-menu-mask{z-index:1001;}"],Ci.ZJ,t=>t.theme.color_text_L0,t=>t.theme.color_text_L1,t=>t.theme.color_text_L1,t=>t.theme.color_bg_white,t=>t.theme.color_text_L1,t=>t.theme.shadow_m,t=>t.theme.color_bg_border_01),XC=u.Ay.div.withConfig({displayName:"styles__StyledScreenMetaMenu",componentId:"sc-1jhw9vf-1"})(["display:flex;align-items:center;cursor:pointer;.toolbar-menu-opener{display:flex;align-items:center;width:160px;height:24px;border:1px solid ",";border-radius:4px;transition:all 0.2s ease-in-out 0s;&:hover{background-color:",";}&.isFullScreen{width:189px;height:28px;margin-right:16px;}.title{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0 10px;font-weight:400;font-size:12px;color:",";}.arrow-right{margin-right:8px;color:",";width:9px;}}"],t=>t.theme.color_border_state,t=>t.theme.color_content_background_item_state_hover,t=>t.theme.color_content_text_item_state,t=>t.theme.color_content_text_item_state);class QC extends r.PureComponent{constructor(){super(...arguments),(0,p.A)(this,"state",{isOpen:!1,isShowMoreTips:!0,position:{left:90,top:48}}),(0,p.A)(this,"createRef",n=>this.$ref=n),(0,p.A)(this,"handleToggle",n=>{const{isOpen:s}=this.state,c=n===void 0?!s:n;this.setState({isOpen:c,isShowMoreTips:!this.state.isShowMoreTips}),this.handleSetPosition(c)}),(0,p.A)(this,"handleSetPosition",n=>{if(!this.$ref||!n)return;const s=this.$ref.getBoundingClientRect();if(s){const c=(48-s.height)/2,d={left:s.left-2,top:s.bottom+c-2};this.setState({position:d})}}),(0,p.A)(this,"handleScreenList",(n,s,c)=>{const d=s.children;for(const w of d){const P={...w,depth:c,canExpand:!1,expand:!1,show:!0};w.children&&w.children.length>0?(n.push({...P,canExpand:!0,expand:!0}),this.handleScreenList(n,w,c+1)):n.push(P)}}),(0,p.A)(this,"handleActiveScreenMeta",n=>{if((0,La.Mo)(n))return;const{activeScreenMetaCid:c,dispatch:d}=this.props,{cid:w,key:P}=n,F=w||P;if(c===F)return;d({type:"entry:memory:current:screen:offset:scale"}),d({type:"entry:goto:project-alike",payload:{screenMetaCid:F}}),d(R.GO.editBasketItemKey("")),d(R.GO.editBasketHotItem(null)),d({type:"entry:memory:last:screenAndCanvas",payload:{screenMetaCid:F}});const X=rootSdk.sdkStore.getHotItem(F);d({type:"screen:update:state",payload:{currentPage:X}})}),(0,p.A)(this,"handleClickScreen",(n,s)=>{this.handleActiveScreenMeta(s),this.handleToggle(!1)})}render(){var n;const{screenTreeData:s,activeScreenMetaCid:c,fullScreenMode:d,isEmbedV2Preview:w}=this.props,{position:P,isOpen:F}=this.state,X=((n=sdkStore.getHotItem(c))==null||(n=n.hotAttr)==null?void 0:n.name)||"",ee=[];return this.handleScreenList(ee,s,0),ee.length===0?null:(0,i.jsxs)(XC,{children:[(0,i.jsxs)("div",{className:f()("toolbar-menu-opener",{isFullScreen:d}),onClick:()=>this.handleToggle(!F),ref:this.createRef,children:[(0,i.jsx)("span",{className:"title",children:X}),(0,i.jsx)(Je.C,{className:"arrow-right",name:"common/expand"})]}),F&&(0,i.jsx)(ZC,{className:f()(d&&"isFullScreen",w&&"isEmbedV2Preview"),position:P,alwaysOpen:!0,onClose:()=>this.handleToggle(!1),children:(0,i.jsx)(JC,{activeScreenCid:c,screenList:ee,onClickScreen:this.handleClickScreen})})]})}}const JC=t=>{let{activeScreenCid:n,screenList:s,onClickScreen:c}=t;const[d,w]=(0,r.useState)(s);(0,r.useEffect)(()=>{const X=document.querySelector(".scroll.rResBunch"),ee=document.querySelector(".content-list.rResBunch");if(n){const pe=document.querySelector(".padd."+n);if(X&&ee&&pe){const{top:ye}=ee.getBoundingClientRect(),{top:Ae}=pe.getBoundingClientRect();X.scrollTo(0,Ae-ye)}}},[n]);const P=(X,ee,pe,ye,Ae)=>{X.stopPropagation();let we=1/0,_e=0,Fe=!1;const Ye=[];d.forEach((He,tt)=>{let It=He;He.cid===ee&&(It={...He,expand:!He.expand},we=tt),Fe&&(tt===_e?Fe=!1:It={...He,show:!1}),!Fe&&tt>we&&(He.data.sup!==pe&&He.depth>ye?It={...He,show:!Ae}:(He.data.sup===pe||He.depth<=ye)&&(we=1/0),!Ae&&!He.expand&&(_e=d.slice(tt+1).findIndex(Nt=>Nt.data.sup===He.data.sup||Nt.depth<=He.depth)+(tt+1),_e!==-1&&(Fe=!0))),Ye.push(It)}),w(Ye)},F=X=>{let{type:ee,canExpand:pe,cid:ye,supCid:Ae,depth:we,expand:_e,icon:Fe}=X;return(0,i.jsxs)("a",{className:f()("expander rResBunch",{canExpand:pe}),onClick:Ye=>P(Ye,ye,Ae,we,_e),style:{paddingLeft:8*we+"px"},children:[pe&&(0,i.jsx)(Je.C,{className:f()("arrow-icon",{"is-expand":_e}),name:"common/triangle-filled-down"}),(0,i.jsx)(vi.k,{icon:Fe,theme:"",isExpand:_e})]})};return(0,i.jsx)("div",{className:"scroll rResBunch",children:(0,i.jsx)("div",{className:"content-list rResBunch",children:d.map(X=>{let{cid:ee,data:pe,depth:ye,show:Ae,expand:we,canExpand:_e}=X;const{name:Fe,asFolder:Ye,sup:He,icon:tt}=pe,Nt=sdkStore.getSubHotItemList(ee).filter(Lt=>{let{hotAttr:{type:Xt,asOverlay:_o}}=Lt;return Xt===J.x.Canvas&&!_o}).length>0;if(Ae)return(0,i.jsx)("div",{className:"padd "+ee,children:(0,i.jsx)(be.Dr,{dataIndex:ee,text:Fe,icon:F({type:"rResBunch",canExpand:_e,cid:ee,supCid:He,depth:ye,expand:we,icon:tt}),onClick:Lt=>c(Lt,pe),className:f()("rResBunch",_e&&"canExpand",{isFolder:Ye},{selected:n===ee},{disabled:!Nt&&!Ye}),disabled:!Nt&&!Ye},ee)},ee)})})})},$C=(0,m.Mz)([pt.HA,S.Ur,ce.p$,pt.Hs,A.T7],(t,n,s,c,d)=>{const{cid:w}=n||{};return{screenTreeData:t,activeScreenMetaCid:w,screenSelection:c,fullScreenMode:d}}),R3=(0,o.Ng)(t=>$C(t))(QC);class qC extends r.PureComponent{constructor(){super(...arguments),(0,p.A)(this,"handleBack",()=>{const{dispatch:n,isShowExitCombo:s}=this.props;if(s){n({type:"entry:exit:combo"});return}n({type:"entry:leave:project"})}),(0,p.A)(this,"onClickLogo",()=>{var n;const{isHtmlZipPreview:s,isCommunityPreview:c,isEmbedV2Preview:d,importAbarOptions:{isFromAbar:w}}=this.props;c||d||w||(s?location.href="https://modao.cc/":(n=MB)!=null&&(n=n.user)!=null&&n.id?location.href=location.origin+"/dashboard/me":location.href=location.origin,(0,C0.A)({operation_type:C0.D.Logo}))}),(0,p.A)(this,"handleGoEdit",()=>{const{rootProject:n,importAbarOptions:{isFromAbar:s}}=this.props;s?(0,Wh.sg)(Wh.ZW.enterEdit):location.href=""+location.origin+(0,Bm.Dw)("design/"+n.cid),(0,Dc.kH)("model_change",{change_type:"\u603B\u89C8\u6A21\u5F0F\u5207\u6362\u7F16\u8F91\u6A21\u5F0F"})})}render(){const{isShowBackIcon:n,isShowExitCombo:s,designOptions:c,quickCreateWidgetName:d,isDirectlyEditingProjectMain:w,onlyView:P,isCommunityPreview:F,isEmbedV2Preview:X,isHtmlZipPreview:ee,handMode:pe,inspectMode:ye,isEmptyScreen:Ae,isInCommentMode:we,isDisabledComment:_e,fullScreenMode:Fe,isInElbowMode:Ye,rootProject:He,screenMeta:tt,theme:It,importAbarOptions:Nt,layoutV9:Lt,isSaving:Xt,editingComboName:_o,isRenderProjectTips:co,isRenderExperienceTips:yn,isRenderScreenGlueTips:An,isEditingUserCombo:In,projectMeta:wn,showDragMode:_n,isAdsorbentReferenceLine:Jn,isShowAIMenu:rs,dispatch:as}=this.props,mi=(0,S2.OB)(),ha=(0,S2.KV)(),Ca=(0,I.Y8)(It),{fromAbarIsPreview:ms}=Nt||{},qn=co||An||yn,si=ENV.IS_WONDER_SHARE?(0,i.jsx)("img",{onClick:this.onClickLogo,className:(0,I.ot)()+"-logo",src:Ca}):(0,i.jsx)(Je.C,{className:"toolbar-logo-icon",name:"toolbar/modao/logo",onClick:this.onClickLogo});return(0,i.jsxs)("div",{className:f()("toolbar-left",{isEmbed:X},{isCommunity:F},{isHtmlZip:ee},{"is-only-view":P}),children:[ha&&P||ee||Fe?(0,i.jsxs)("div",{className:"logo",children:[si,(!(X||F)||Fe)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:f()("project-name"),children:(0,Gt.qk)(He.name)}),MB.canEditByCurrentUser&&!(X||F)&&(0,i.jsx)(Zn.Oc,{className:"edit-btn",type:"secondary",size:"common",onClick:this.handleGoEdit,children:I18N.pPreviewToolbar.edit})]})]}):(0,i.jsx)("div",{className:"toolbar-menu-box",children:(n||s)&&(0,i.jsx)(kC,{isShowExitCombo:s})}),X&&!Fe&&(0,i.jsx)("div",{className:"prd-box",children:(0,i.jsx)(R3,{isEmbedV2Preview:X})}),qn&&!(P||F||X||ms)?(0,i.jsx)(YC,{onlyView:P,isSaving:Xt,rootProjectName:He==null?void 0:He.name,rootProject:He,editingComboName:_o,isRenderProjectTips:co,isRenderExperienceTips:yn,isRenderScreenGlueTips:An,isShowExitCombo:s,isEditingUserCombo:In,projectMeta:wn,screenMeta:tt,dispatch:as,importAbarOptions:Nt,layoutV9:Lt}):null]})}}const e9=(0,m.Mz)([y.r,S.W4,S.wq,T.PI,T.k3,A.Ro,l.sI,A._b,C2.C,L3.Q1,T.O4,T.MZ,C.Er,ce.p$,S.YT,S.HW],(t,n,s,c,d,w,P,F,X,ee,pe,ye,Ae,we,_e,Fe)=>{let{isEmptyScreen:Ye}=X;const{isDesign:He,isExperience:tt,isLoggedExperience:It}=n,{isEditingProjectMain:Nt,isEditingCombo:Lt,isEditingUserCombo:Xt,isEditingOrgCombo:_o,isEditingBasket:co,isEditingMuban:yn}=t,An=(0,ya.F6)(s),In=!Lt&&He,wn=Xt?I18N.SettingPanel.my_widgets:_o?I18N.SettingPanel.team_widgets:"",_n=!Lt&&(He&&we.length===0||ye==="recommend"),Jn=!Lt&&(tt||It)&&we.length===0,rs=Lt&&(He&&we.length===0||ye==="recommend"),as=!Lt&&!co&&!yn&&!!(Fe!=null&&Fe.id);return{quickCreateWidgetName:An,isShowBackIcon:In,isDirectlyEditingProjectMain:Nt,showDragMode:c,isAdsorbentReferenceLine:d,handMode:w,isInCommentMode:P,inspectMode:F,isEmptyScreen:Ye,isInElbowMode:ee,theme:pe,layoutV9:ye,isSaving:Ae,editingComboName:wn,isRenderProjectTips:_n,isRenderExperienceTips:Jn,isRenderScreenGlueTips:rs,isEditingUserCombo:Xt,projectMeta:_e,isShowAIMenu:as}}),t9=(0,o.Ng)(t=>e9(t))(qC);var o9=e(67531),Vh=e(59844),A2=e(8066);const n9=(0,u.Ay)(be.Ay).withConfig({displayName:"styles__StyledCanvasSizeSelectMenu",componentId:"sc-1ieyxre-0"})(["li{list-style:none;}a{color:",";}.MenuItem{&.disabled a{color:rgba(255,255,255,0.22);.shortfont kbd{color:rgba(255,255,255,0.22);}}}ul.SubMenu{min-width:280px;&:lang(en){min-width:280px;}li.MenuItem{a{padding-left:16px;}}}",";"],t=>t.theme.color_text_L1,Ci.ZJ),s9=(0,u.DU)(["body > div > div.context-menu-mask{width:initial;height:initial;}"]),i9=t=>{let{position:n,onSelect:s,onClose:c}=t;const d=(0,r.useCallback)(P=>{if(!s)return;const F=P.currentTarget.dataset.type,X=F==="google_nexus"?"Android":F,ee=z0.v2[X];s({width:ee==null?void 0:ee.width,height:ee==null?void 0:ee.height,device:X}),c&&c()},[s,c]),w=(0,r.useCallback)(P=>{if(!c)return;const F=P.target.closest(".CanvasSizeSelectMenu"),X=P.target.closest(".CanvasSizeSelectSubMenu");F||X||c()},[c]);return n?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n9,{className:f()("CanvasSizeSelectMenu"),position:n,children:z0.a$.map((P,F)=>{let{device:X,modelList:ee}=P;const pe=ee.length;if(pe===0)return null;if(pe===1){const ye=ee[0];return(0,i.jsx)(be.Dr,{text:(0,z0.KB)({device:X}),hotKeyText:ye.key!=="customize"?[ye.width+" \xD7 "+ye.height]:null,dataType:ye.key,className:"CanvasSizeSelectMenuItem SelectOption",subMenuClassName:"CanvasSizeSelectSubMenu",onClick:d},X+" -"+(F+1))}return(0,i.jsx)(be.Dr,{text:(0,z0.KB)({device:X}),className:"CanvasSizeSelectMenuItem SelectOption",subMenuClassName:"CanvasSizeSelectSubMenu",isAiry:!0,children:ee.map(ye=>{let{width:Ae,height:we,key:_e}=ye;const Fe=_e==="google_nexus"?"Android":(0,z0.d0)({model:_e,device:X,isPageSize:!0}),Ye=_e==="customize"||_e==="none"?null:[Ae+" \xD7 "+we];return(0,i.jsx)(be.Dr,{className:"SelectOption",text:Fe,hotKeyText:Ye,dataType:_e,onClick:d},_e+" -"+(F+1))})},X+" -"+(F+1))})}),(0,i.jsx)(s9,{}),(0,i.jsx)(Hc.A,{target:document,onClick:(0,Hc.t)(w,{capture:!0})})]}):null},a9=(0,r.memo)(i9);function r9(t){const{source:n}=t,s=(0,o.d4)(S.Ur),c=(0,o.wA)(),d=(0,r.useCallback)(w=>{const P=(0,Q1.gu)({type:J.x.Canvas,screen:s,selectedDeviceModel:w});c({type:"entry:batch:create:items:position",payload:{finalWidget:P}}),(0,At.wS)(n,w==null?void 0:w.device),c({type:"set:quick-create-widget",payload:{widget:null}})},[s,n,c]);return(0,r.useEffect)(()=>{c({type:"set:quick-create-widget",payload:{widget:null}})},[c]),(0,i.jsx)(a9,{...t,onSelect:d})}const l9=(0,r.memo)(r9);function c9(t){const{isDisabled:n,quickCreateWidgetName:s,onQuickCreateWidget:c,onCreateWidget:d}=t,w=(0,r.useRef)(null),[P,F]=(0,r.useState)(!1),[X,ee]=(0,r.useState)(0),pe=s===J.x.Canvas||P,ye=()=>{c(J.x.Canvas)},Ae=Ye=>{d(Ye,J.x.Canvas)},we=Ye=>{Ye.stopPropagation()},_e=()=>{var Ye;return ee((((Ye=w.current)==null||(Ye=Ye.$element)==null?void 0:Ye.getBoundingClientRect().left)||82)-82)};(0,r.useEffect)(()=>(window.addEventListener("resize",_e),()=>{window.removeEventListener("resize",_e)}),[]);const Fe=Ye=>{Ye&&_e(),F(Ye)};return(0,i.jsxs)("div",{className:f()("shape-list-box",Ha.c.GUIDE_OLD_NEW_CREATE_PAGE,Ha.c.GUIDE_DS_SCREEN_STEP_1,Ha.c.GUIDE_NOVICE_2408_CREATE_PAGE,pe&&"active",n&&"disabled"),onClick:ye,onMouseDown:Ae,children:[(0,i.jsx)(Kc.A,{content:(0,Vh.Qc)(J.x.Canvas),direction:"down",distance:8,children:(0,i.jsx)("div",{className:"shapeContainer",children:(0,i.jsx)(Je.C,{className:"toolbar-shape",name:"toolbar/page/material"})})}),(0,i.jsx)(A2.A,{ref:w,menuPosTop:48,onClick:Fe,className:"shape-list-dropdown",isCloseMenuItem:!1,renderOpener:(0,i.jsx)(Kc.A,{content:"",direction:"down",distance:8,children:(0,i.jsx)("div",{className:"shape-opener",children:(0,i.jsx)(Je.C,{className:"toolbar-dropDown",name:"toolbar/triangle-down",onDoubleClick:we})})}),renderMenu:(0,i.jsx)(l9,{position:{left:X,top:46},source:At.ln.TopNavSizeSelectList})})]})}const d9=(0,r.memo)(c9);var I2=e(34161);const p9=[{name:J.x.WVector,svg_icon:"vector"},{name:J.x.WVector,svg_icon:"pencil",attrs:{toolType:ya.pv.PENCIL}}],h9=[["graphics",J.x.WRect,"shape_tool",[{name:J.x.WRect,svg_icon:"rectangle"},{name:J.x.WOval,svg_icon:"circle"},{name:J.x.WLine,svg_icon:"line"},{name:J.x.WLR,svg_icon:"linkarea"},{name:J.x.WImage,svg_icon:"image"},...p9]],{name:J.x.WRichText,svg_icon:"text"},{name:J.x.WElbow,svg_icon:"elbow"}],u9={name:"wSticky",svg_icon:"note",shapeList:[{name:J.x.WSticky,svg_icon:"note"},{name:J.x.WTear,svg_icon:"tear"}]},m9=()=>h9.map(t=>Array.isArray(t)?{name:t[0],defaultActiveType:t[1],combineToolTips:t[2],shapeList:t[3]}:t);var g9=e(18001);const f9=(0,Dr.R)(()=>({[J.x.WRect]:I18N.w.rounded_rect,[J.x.WOval]:I18N.w.circle_rect,[J.x.WLine]:I18N.w.line,[J.x.WLR]:I18N.w.lr,[J.x.WImage]:I18N.w.image_view,[J.x.WElbow]:I18N.BasicWidgetsNav.wired,[J.x.WVector]:I18N.BasicWidgetsNav.wVector,[ya.pv.PENCIL]:I18N.BasicWidgetsNav.pencil})),y9={[J.x.WRect]:"rectangle",[J.x.WOval]:"circle",[J.x.WLine]:"line",[J.x.WImage]:"image",[J.x.WLR]:"linkarea",[J.x.WVector]:"vector",[J.x.WElbow]:"elbow",[ya.pv.PENCIL]:"pencil"},x9={[J.x.WRect]:"R",[J.x.WOval]:"O",[J.x.WLine]:"L",[J.x.WLR]:"H",[J.x.WVector]:"P",[J.x.WElbow]:"E",[ya.pv.PENCIL]:(0,g9.sl)("shift+P")},v9=u.Ay.div.withConfig({displayName:"styles__StyledShapeMenu",componentId:"sc-18kbex7-0"})(["padding:8px;min-width:160px;background:",";color:",";box-shadow:",";border-radius:8px;border:1px solid ",";li{list-style:none;}.toolbar-check_mark{width:16px;height:16px;position:absolute;left:8px;}.shape-icon{margin-right:8px;width:16px;height:16px;color:",";&.toolbar-annotate{path{&:first-child{fill:none;}}}&.toolbar-note{rect[stroke]{fill:none;}}}.menu-item{position:relative;height:28px;padding:0 16px 0 28px;display:flex;align-items:center;cursor:pointer;.shape-kdd{margin-left:auto;color:",";}.shape-title{color:",";&.shortCutKeyLabel{margin-left:24px;}}&:hover{background:",";}.shortfont{margin-left:auto;kbd{display:inline-block;text-align:center;min-width:12px;color:",";&:first-child{margin-left:0;}&:last-child{margin-right:0;}}}}.menu-divider{height:1px;margin:3px 0;background-color:",";}.menu-item{border-radius:4px;}"],t=>t.theme.color_bg_white,t=>t.theme.color_text_L1,t=>t.theme.shadow_m,t=>t.theme.color_bg_border_01,t=>t.theme.color_text_L1,t=>t.theme.color_text_L3,t=>t.theme.color_text_L1,t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_text_L2,t=>t.theme.color_bg_border_01),b9=(0,u.DU)([".toolbar_annotate_tips_menu{> div{padding:8px;width:125px;background:#1684fc;border-radius:2px;}}"]);class C9 extends r.PureComponent{constructor(n){super(n),(0,p.A)(this,"handleOpenerQuickCreateWidget",()=>{const{currentQuickName:s}=this.state,{onQuickCreateWidget:c}=this.props;if(s===ya.pv.PENCIL){c(J.x.WVector,{toolType:s});return}c(s)}),(0,p.A)(this,"handleQuickCreateWidget",s=>{const{onQuickCreateWidget:c}=this.props;this.setState({currentQuickName:(0,ya.xy)(s)}),c(s.name,s.attrs)}),(0,p.A)(this,"handleCreateShapeMenuRef",s=>this.$shapeMenuRef=s),(0,p.A)(this,"handleDown",s=>{const{onCreateWidget:c}=this.props,{currentQuickName:d}=this.state;if(d===J.x.WVector)return;let w=document.getElementById("mb-toolbar").getBoundingClientRect();if(s.target.closest(".menu-item")&&this.$shapeMenuRef&&(w=this.$shapeMenuRef.getBoundingClientRect()),d===ya.pv.PENCIL){c(s,J.x.WVector,w,{toolType:d});return}c(s,d,w,{})}),(0,p.A)(this,"handleCreateWidgetDoubleClick",()=>{const{currentQuickName:s}=this.state,{onCreateWidgetDoubleClick:c}=this.props;c&&c(s)}),(0,p.A)(this,"handleStopPropagation",s=>{s.stopPropagation()}),(0,p.A)(this,"handleChangeStyle",s=>{this.setState({isActive:s})}),this.state={currentQuickName:n.widget.defaultActiveType,isActive:!1}}componentDidUpdate(n){if(this.props.quickCreateWidgetName&&n.quickCreateWidgetName!==this.props.quickCreateWidgetName){const{widget:{shapeList:s},quickCreateWidgetName:c}=this.props;s.map(w=>(0,ya.xy)(w)).includes(c)&&this.setState({currentQuickName:c})}}render(){const{widget:n,quickCreateWidgetName:s,isEmptyScreen:c}=this.props,{currentQuickName:d,isActive:w}=this.state,{shapeList:P}=n,F="toolbar/"+y9[d],X=F.replace("/","-"),ee=P.map(pe=>{let{name:ye}=pe;return ye}).concat(ya.pv.PENCIL).includes(s)||w;return(0,i.jsxs)("div",{className:f()("shape-list-box",{active:ee,disabled:c}),onClick:this.handleOpenerQuickCreateWidget,onMouseDown:this.handleDown,onDoubleClick:this.handleCreateWidgetDoubleClick,children:[(0,i.jsx)(Kc.A,{content:(0,Vh.Qc)(d),direction:"down",distance:8,children:(0,i.jsx)("div",{className:"shapeContainer",children:(0,i.jsx)(Je.C,{className:f()("toolbar-shape",X),name:F})})}),(0,i.jsx)(A2.A,{menuPosTop:48,offsetX:8,onClick:this.handleChangeStyle,className:"shape-list-dropdown",renderOpener:(0,i.jsx)(Kc.A,{content:I18N.BasicWidgetsNav[n.combineToolTips],direction:"down",distance:8,children:(0,i.jsx)("div",{className:"shape-opener",children:(0,i.jsx)(Je.C,{className:"toolbar-dropDown",name:"toolbar/triangle-down",onDoubleClick:this.handleStopPropagation})})}),renderMenu:(0,i.jsx)(w9,{quickCreateWidgetName:d,shapeList:P,onQuickCreateWidget:this.handleQuickCreateWidget,onCreateShapeMenuRef:this.handleCreateShapeMenuRef})})]})}}class w9 extends r.PureComponent{constructor(){super(...arguments),(0,p.A)(this,"handleCreateRef",n=>{const{onCreateShapeMenuRef:s}=this.props;s(n)})}render(){const{shapeList:n,quickCreateWidgetName:s,onQuickCreateWidget:c}=this.props;return(0,i.jsx)(v9,{ref:this.handleCreateRef,children:n==null?void 0:n.map(d=>(0,i.jsx)(S9,{shape:d,quickCreateWidgetName:s,onQuickCreateWidget:c},d.name))})}}class S9 extends r.PureComponent{constructor(){super(...arguments),(0,p.A)(this,"handleQuickCreateWidget",()=>{const{shape:n,onQuickCreateWidget:s}=this.props;s(n)}),(0,p.A)(this,"getIsShowCheckMark",()=>{const{shape:n,quickCreateWidgetName:s}=this.props;return(0,ya.xy)(n)===s}),(0,p.A)(this,"getTitle",()=>{const{shape:n}=this.props,s=(0,ya.xy)(n);return s?f9()[s]:void 0}),(0,p.A)(this,"getKdd",()=>{const{shape:n}=this.props,s=(0,ya.xy)(n);if(s)return x9[s]})}render(){const{shape:n}=this.props,s=this.getIsShowCheckMark(),c=this.getTitle(),d=this.getKdd();return(0,i.jsxs)("li",{className:"menu-item",onClick:this.handleQuickCreateWidget,children:[s&&(0,i.jsx)(Je.C,{className:"toolbar-check_mark",name:"common/checked"}),(0,i.jsx)(Je.C,{className:"shape-icon toolbar-"+n.svg_icon,name:"toolbar/"+n.svg_icon+"/min"}),(0,i.jsx)("span",{className:"shape-title",children:c}),(0,i.jsx)("span",{className:"shape-kdd",children:d}),(0,i.jsx)(b9,{})]})}}function A9(){return(0,i.jsx)(I9,{})}const I9=u.Ay.div.withConfig({displayName:"Divider__StyledDivider",componentId:"sc-1x148vl-0"})(["height:16px;width:1px;margin:0 12px 0 12px;background:",";"],t=>t.theme.color_bg_border_02),M9=(0,Dr.R)(()=>({[J.x.WSticky]:I18N.w.sticky,[J.x.WTear]:I18N.w.annotate})),Mg={[J.x.WSticky]:"note",[J.x.WTear]:"tear"},T9={[J.x.WSticky]:"N",[J.x.WTear]:"W"},E9=u.Ay.div.withConfig({displayName:"styles__StyledShapeMenu",componentId:"sc-1jwtp5w-0"})(["padding:8px;min-width:160px;background:",";color:",";box-shadow:",";border-radius:8px;border:1px solid ",";li{list-style:none;}.toolbar-check_mark{width:16px;height:16px;position:absolute;left:8px;}.shape-icon{margin-right:8px;width:16px;height:16px;color:",";&.toolbar-annotate{path{&:first-child{fill:none;}}}&.toolbar-note{rect[stroke]{fill:none;}}}.menu-item{position:relative;height:28px;padding:0 16px 0 28px;display:flex;align-items:center;cursor:pointer;.shape-kdd{margin-left:auto;color:",";}.shape-title{color:",";&.shortCutKeyLabel{margin-left:24px;}}&:hover{background:",";}.shortfont{margin-left:auto;kbd{display:inline-block;text-align:center;min-width:12px;color:",";&:first-child{margin-left:0;}&:last-child{margin-right:0;}}}}.menu-divider{height:1px;margin:3px 0;background-color:",";}.menu-item{border-radius:4px;background:",";color:",";}"],t=>t.theme.color_bg_white,t=>t.theme.color_text_L1,t=>t.theme.shadow_m,t=>t.theme.color_bg_border_01,t=>t.theme.color_text_L1,t=>t.theme.color_text_L3,t=>t.theme.color_text_L1,t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_text_L2,t=>t.theme.color_bg_border_01,t=>t.theme.color_bg_white,t=>t.theme.color_text_L1),k9=(0,u.DU)([".toolbar_annotate_tips_menu{> div{padding:8px;width:125px;background:#1684fc;border-radius:2px;}}"]);class _9 extends r.PureComponent{constructor(n){super(n),(0,p.A)(this,"handleOpenerQuickCreateWidget",()=>{const{currentQuickName:s}=this.state,{onQuickCreateWidget:c}=this.props;c(s)}),(0,p.A)(this,"handleQuickCreateWidget",s=>{const{onQuickCreateWidget:c}=this.props;this.setState({currentQuickName:s}),c(s)}),(0,p.A)(this,"handleCreateShapeMenuRef",s=>this.$shapeMenuRef=s),(0,p.A)(this,"handleDown",s=>{const{onCreateWidget:c}=this.props,{currentQuickName:d}=this.state;let w=document.getElementById("mb-toolbar").getBoundingClientRect();s.target.closest(".menu-item")&&this.$shapeMenuRef&&(w=this.$shapeMenuRef.getBoundingClientRect()),c(s,d,w)}),(0,p.A)(this,"handleCreateWidgetDoubleClick",()=>{const{currentQuickName:s}=this.state,{onCreateWidgetDoubleClick:c}=this.props;c&&c(s)}),(0,p.A)(this,"handleChangeStyle",s=>{this.setState({isActive:s})}),this.state={currentQuickName:J.x.WSticky,isActive:!1}}componentDidUpdate(n){this.props.quickCreateWidgetName&&n.quickCreateWidgetName!==this.props.quickCreateWidgetName?Mg[this.props.quickCreateWidgetName]&&(this.setState({currentQuickName:this.props.quickCreateWidgetName}),this.props.dispatch({type:"entry:ST:STMode:enable"})):!J.Q.ST_MODE_WIDGET_NAMES.includes(this.props.quickCreateWidgetName)&&this.props.dispatch({type:"entry:ST:STMode:disable"})}render(){const{widget:n,quickCreateWidgetName:s,isEmptyScreen:c}=this.props,{currentQuickName:d,isActive:w}=this.state,{shapeList:P}=n,F="toolbar/"+(Mg[s]||Mg[d]),X=F.replace("/","-"),ee=Mg[s]&&s||w;return(0,i.jsxs)("div",{className:f()("shape-list-box",{active:ee,disabled:c}),onClick:this.handleOpenerQuickCreateWidget,onDoubleClick:this.handleCreateWidgetDoubleClick,children:[(0,i.jsx)(Kc.A,{content:(0,Vh.Qc)(d),direction:"down",distance:8,children:(0,i.jsx)("div",{className:"shapeContainer",onMouseDown:this.handleDown,children:(0,i.jsx)(Je.C,{size:32,className:f()("toolbar-shape",X),name:F})})}),(0,i.jsx)(A2.A,{menuPosTop:48,offsetX:8,onClick:this.handleChangeStyle,className:"shape-list-dropdown",renderOpener:(0,i.jsx)(Kc.A,{content:I18N.Note.note_option,direction:"down",distance:8,children:(0,i.jsx)("div",{className:"shape-opener",children:(0,i.jsx)(Je.C,{className:"toolbar-dropDown",name:"toolbar/triangle-down"})})}),renderMenu:(0,i.jsx)(P9,{quickCreateWidgetName:d,shapeList:P,onQuickCreateWidget:this.handleQuickCreateWidget,onCreateShapeMenuRef:this.handleCreateShapeMenuRef})})]})}}class P9 extends r.PureComponent{constructor(){super(...arguments),(0,p.A)(this,"handleCreateRef",n=>{const{onCreateShapeMenuRef:s}=this.props;s(n)})}render(){const{shapeList:n,quickCreateWidgetName:s,onQuickCreateWidget:c}=this.props;return(0,i.jsx)(E9,{ref:this.handleCreateRef,children:n.map(d=>(0,i.jsx)(N9,{shape:d,quickCreateWidgetName:s,onQuickCreateWidget:c},d.name))})}}class N9 extends r.PureComponent{constructor(){super(...arguments),(0,p.A)(this,"handleQuickCreateWidget",()=>{const{shape:n,onQuickCreateWidget:s}=this.props;s(n.name)})}render(){const{shape:n,quickCreateWidgetName:s}=this.props,c=n.name===s,d=M9();return(0,i.jsxs)("li",{className:"menu-item",onClick:this.handleQuickCreateWidget,children:[c&&(0,i.jsx)(Je.C,{className:"toolbar-check_mark",name:"common/checked"}),(0,i.jsx)(Je.C,{className:"shape-icon toolbar-"+n.svg_icon,name:"toolbar/"+n.svg_icon+"/min",size:20}),(0,i.jsx)("span",{className:"shape-title",children:d[n.name]}),(0,i.jsx)("span",{className:"shape-kdd",children:T9[n.name]}),(0,i.jsx)(k9,{})]})}}var j3=e(40323);const L9=(0,u.Ay)(be.Ay).withConfig({displayName:"styles__StyledAIMenu",componentId:"sc-u591je-0"})(["",";ul{.ai-menu-divider{border-top:1px solid ",";}}.ai-menu-header{height:32px;display:flex;align-items:center;margin-left:10px;span{color:",";font-size:14px;font-weight:600;line-height:16px;text-align:left;}.ai-beta{width:36px;padding-left:4px;}}.MenuItem{height:32px;margin:4px 0;.ai-menu-item-icon{width:24px;height:24px;margin-right:8px;}a{height:32px;}}.MenuItem{a{padding-left:6px;}}.SubMenu li.MenuItem.hasIcon a{padding-left:6px;}"],Ci.ZJ,t=>t.theme.color_bg_border_01,t=>t.theme.color_text_L1),D9=t=>{const{dispatch:n}=t,s=(0,r.useRef)(null),[c,d]=(0,r.useState)(!1),[w,P]=(0,r.useState)(0),F=()=>{var He;return P((((He=s.current)==null||(He=He.$element)==null?void 0:He.getBoundingClientRect().left)||82)-82)},X=Do.SR.Chat||"Chat";(0,r.useEffect)(()=>(window.addEventListener("resize",F),()=>{window.removeEventListener("resize",F)}),[]);const ee=He=>{He&&F(),d(He)},pe=He=>{n({type:Wn.X.AIComponentCreateMode})},ye=He=>{n({type:Wn.X.AIToggleOpenSemantic}),(0,j3.Z)(He==null?void 0:He.type)},Ae=He=>{n({type:Wn.X.AIToggleOpenChatPanel})},we=He=>{n({type:Wn.X.AIOpenModal,payload:He}),(0,j3.Z)(He==null?void 0:He.type)},_e=He=>{let tt=we;switch(He.type){case Do.SR.Component:tt=pe;break;case Do.SR.Semantic:tt=ye;break;case X:tt=Ae;break;default:tt=we;break}He.source="\u9876\u90E8 ToolBar menu",tt(He)},Fe=He=>{const tt=(0,Do.Rj)()[He];return(0,i.jsx)(be.Dr,{icon:Ye(He),text:tt.componentTitle||tt.title,onClick:()=>_e(tt),disabled:!1},"AI-toolbar-menu-"+He)},Ye=He=>(0,i.jsx)(Je.C,{name:"chetGPT/toolbar/"+He,className:"ai-menu-item-icon",isColorPure:!0});return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(A2.A,{ref:s,className:Ha.c.GUIDE_NOVICE_V9_2408_STEP_3,menuPosTop:48,onClick:ee,isCloseMenuItem:!1,renderOpener:(0,i.jsx)(yh.A,{size:32,toolTipName:(0,Vh.Qc)("AI"),svgIconName:"toolbar/ai",toolTipDistance:8,active:c,isColorPure:!0}),renderMenu:(0,i.jsxs)(L9,{position:{left:w,top:46},children:[(0,i.jsxs)("div",{className:"ai-menu-header",children:[(0,i.jsx)("span",{children:I18N.BasicWidgetsNav.AI.MDAI}),(0,i.jsx)(Je.C,{className:"ai-beta",name:"chatGPT/ai-beta",isColorPure:!0})]}),[Do.SR.PageV9,Do.SR.Component].map(He=>Fe(He)),(0,i.jsx)(be.Dr,{icon:Ye("other"),text:I18N.BasicWidgetsNav.AI.gen_other,disabled:!1,subMenuTopOffset:-3,isAiry:!0,children:[Do.SR.Flow,Do.SR.Mind,Do.SR.Table,Do.SR.Chart].map(He=>Fe(He))}),(0,i.jsx)(be.cG,{className:"ai-menu-divider"}),(0,i.jsx)(be.Dr,{icon:Ye(Do.SR.Semantic),text:I18N.BasicWidgetsNav.AI.semantic,onClick:()=>_e({type:Do.SR.Semantic}),disabled:!1}),(0,i.jsx)(be.Dr,{icon:Ye(X),text:I18N.BasicWidgetsNav.AI.chat,onClick:()=>_e({type:X}),disabled:!1}),(0,i.jsx)(be.cG,{className:"ai-menu-divider"}),Fe(Do.SR.AutoFill)]})})})},B9=(0,r.memo)(D9),R9=t=>{var n;const{onlyView:s,isDirectlyEditingProjectMain:c,isEmptyScreen:d,quickCreateWidgetName:w,screenMeta:P,rootProject:F,showDragMode:X,isAdsorbentReferenceLine:ee,isShowExitCombo:pe,isInElbowMode:ye,isCommunityPreview:Ae,isEmbedV2Preview:we,isHtmlZipPreview:_e,fullScreenMode:Fe,handMode:Ye,isInCommentMode:He,isDisabledComment:tt,isShowAIMenu:It,layoutV9:Nt,dispatch:Lt}=t,Xt=(In,wn)=>{const _n=(0,Q1.gu)({type:In,screen:P,attrs:{width:0,height:0,...wn}}),Jn=(0,ya.F6)(_n);if(w&&Jn===w){Lt({type:"set:quick-create-widget",payload:{widget:null}}),Lt({type:"entry:pencil:vector:exit:edit",payload:{isSelectLastCreate:!0}});return}Lt({type:"set:quick-create-widget",payload:{widget:_n,quickCreateWidgetFrom:I2.Hq.ToolBar}}),Jn===J.x.WElbow?Lt({type:"elbow:update",payload:{isDraggingElbow:!0}}):Jn===J.x.WVector?(Lt({type:"update:screenContainer:state",payload:{addVectorSource:Ky.dZ.Toolbar}}),MB.commonGuideHelper.checkGuideToBeShown(Ha.c.GUIDE_VECTOR_TASK_ENDING_EDITING)&&(MB.commonGuideHelper.markGuideAsRead(Ha.c.GUIDE_VECTOR_TASK_ENDING_EDITING),MB.commonGuideHelper.closeGuide(Ha.c.GUIDE_VECTOR_TASK_ENDING_EDITING)),MB.commonGuideHelper.tryToShowGuide(Ha.c.GUIDE_VECTOR_TASK_QUICK_CREATE)):Jn===ya.pv.PENCIL&&Lt({type:"entry:pencil:vector:enter:edit"}),Lt(R.GO.toggleHandMode(!1)),Lt({type:"elbow:clear"}),Lt({type:"entry:comment:disabled",payload:{noWigglingCommentCid:!0}}),Lt({type:"entry:aiComponent:exit:mode:for-toolbar"}),Lt({type:"versions:update",payload:{isVersionManagementPaneShow:!1}}),J.Q.ST_MODE_WIDGET_NAMES.includes(Jn)?(Lt({type:"entry:ST:STMode:enable"}),Lt({type:"toolbar:update:state",payload:{isShowSticky:!0}})):Lt({type:"entry:ST:STMode:disable"}),Jn!==ya.pv.PENCIL&&Lt({type:"entry:pencil:vector:exit:edit"})},_o=(In,wn,_n,Jn)=>{Lt(R.GO.toggleHandMode(!1)),Lt({type:"entry:comment:disabled",payload:{noWigglingCommentCid:!0}}),Lt({type:"entry:aiComponent:exit:mode:for-toolbar"});const rs=(0,Q1.gu)({type:wn,screen:P,attrs:Jn}),as=_n||document.getElementById("mb-toolbar").getBoundingClientRect();(0,ya.dD)({e:In,items:[rs],width:rs.width||rs.w,height:rs.height||rs.h,doNotCreateRect:as,callback:()=>{(rs==null?void 0:rs.type)===J.x.Canvas?(0,At.Se)({page:rs}):((0,I2.Yp)({source:""+I2.ol.ToolBar+I2.k8.Drag,widgetName:(0,I2.KR)(wn)}),rs.type===J.x.WElbow&&(0,Ve.Zf)(rs.elbow.elbowType))},isToolbarCreate:!0,rootProject:F,showDragMode:X,isAdsorbentReferenceLine:ee})},co=()=>{Lt({type:"entry:elbow:isInElbowMode:toggle"}),Lt({type:"entry:comment:disabled",payload:{noWigglingCommentCid:!0}}),Lt({type:"entry:aiComponent:exit:mode:for-toolbar"}),Lt({type:"set:quick-create-widget",payload:{widget:null,quickCreateWidgetFrom:I2.Hq.ToolBar}}),Lt(R.GO.toggleInspectMode(!1)),Lt(R.GO.toggleHandMode(!1)),Lt({type:"entry:pencil:vector:exit:edit"})},yn=()=>{Lt({type:"entry:toolbar:toggle:handTool"}),Lt({type:"entry:aiComponent:exit:mode:for-toolbar"}),Lt({type:"entry:observe:dom:size:update-viewport-rect"}),(0,C0.A)({operation_type:C0.D.HandTool})},An=()=>{Lt({type:"entry:comment:toggle"}),Lt({type:"entry:aiComponent:exit:mode:for-toolbar"}),Lt(R.GO.toggleInspectMode(!1)),Lt(R.GO.toggleHandMode(!1)),Lt(R.GO.select([])),Lt({type:"elbow:update",payload:{isInElbowMode:!1}}),Lt({type:"entry:ST:STMode:disable"}),Lt({type:"entry:observe:dom:size:update-viewport-rect"}),Lt({type:"versions:update",payload:{isVersionManagementPaneShow:!1}}),(0,C0.A)({operation_type:C0.D.Comment})};return(0,i.jsxs)(i.Fragment,{children:[!s&&(0,i.jsx)(d9,{isDisabled:!c||d,quickCreateWidgetName:w,onQuickCreateWidget:Xt,onCreateWidget:_o}),!s&&(0,i.jsxs)(i.Fragment,{children:[m9().map((In,wn)=>{if(In.name==="graphics")return(0,i.jsx)(C9,{widget:In,quickCreateWidgetName:w,onQuickCreateWidget:Xt,onCreateWidget:_o,isEmptyScreen:d},wn);if(In.name==="divider")return(0,i.jsx)(A9,{},"divider-"+wn);{if(pe&&In.name===J.x.Canvas)return null;const _n=In.name===J.x.WElbow?co:Xt,Jn=In.name===J.x.WElbow?ye:In.name===w;return(0,i.jsx)(yh.A,{disabled:d,active:Jn,onClick:_n,name:In.name,toolTipName:(0,Vh.Qc)(In.name),svgIconName:"toolbar/"+In.svg_icon,toolTipDistance:8,onMouseDown:_o,size:32,className:In.name===J.x.WElbow?Ha.c.GUIDE_OLD_ADD_LINE_FEATURE:""},In.name)}}),!(Ae||we||_e&&Fe)&&(0,i.jsx)(yh.A,{onClick:yn,name:I18N.pPreviewToolbar.comment,className:"handMode",toolTipName:(0,Vh.Qc)("handMode"),svgIconName:"toolbar/handTool",toolTipDistance:8,active:Ye,disabled:d}),!s&&!pe&&((n=MB)==null||(n=n.user)==null?void 0:n.id)&&(0,i.jsx)("div",{className:"prd-box",children:(0,i.jsx)(yh.A,{className:f()(Ha.c.GUIDE_OLD_USE_COMMENT,"toolbar-comment"),onClick:An,name:I18N.pPreviewToolbar.comment,toolTipName:(0,Vh.Qc)("comment"),svgIconName:"design/preview/comment",toolTipDistance:8,size:32,active:He,disabled:tt})}),(0,i.jsx)("div",{className:f()("widget-box",Ha.c.GUIDE_OLD_UPGRADE_ANNOTATE),children:(0,i.jsx)(_9,{widget:u9,quickCreateWidgetName:w,onQuickCreateWidget:Xt,onCreateWidget:_o,dispatch:Lt,isEmptyScreen:d})})]}),we&&!Fe&&(0,i.jsx)("div",{className:"prd-box",children:(0,i.jsx)(R3,{isEmbedV2Preview:we})}),!s&&It&&!ENV.IS_ON_PREMISES&&(0,i.jsx)(B9,{dispatch:Lt})]})};class j9 extends r.PureComponent{constructor(){super(...arguments),(0,p.A)(this,"handleUpdatePreviewViewMode",n=>{this.props.dispatch({type:"entry:handle-tool:preview:view_mode",payload:{previewViewMode:n}})})}render(){const{isSaving:n,canModify:s,canDistribute:c,canGroup:d,canUngroup:w,canLock:P,canMove:F,rootProjectName:X,rootProject:ee,isLocked:pe,isRenderProjectTips:ye,isRenderScreenGlueTips:Ae,isRenderExperienceTips:we,onlyView:_e,isCommunityPreview:Fe,isEmbedV2Preview:Ye,editingComboName:He,isShowExitCombo:tt,isEditingUserCombo:It,projectMeta:Nt,screenMeta:Lt,dispatch:Xt,importAbarOptions:_o,isFullScreenMode:co,layoutV9:yn,isDirectlyEditingProjectMain:An,isEmptyScreen:In,quickCreateWidgetName:wn,showDragMode:_n,isAdsorbentReferenceLine:Jn,isInElbowMode:rs,isHtmlZipPreview:as,fullScreenMode:mi,handMode:ha,isInCommentMode:Ca,isDisabledComment:ms,isShowAIMenu:qn,previewViewMode:si}=this.props,{fromAbarIsPreview:Hi}=_o||{},ra=ye||Ae||we;return(0,i.jsxs)("div",{className:f()("toolbar-center"),children:[ra&&!(_e||Fe||Ye||Hi)?(0,i.jsx)(R9,{onlyView:_e,isDirectlyEditingProjectMain:An,isEmptyScreen:In,quickCreateWidgetName:wn,screenMeta:Lt,rootProject:ee,showDragMode:_n,isAdsorbentReferenceLine:Jn,isShowExitCombo:tt,isInElbowMode:rs,isCommunityPreview:Fe,isEmbedV2Preview:Ye,isHtmlZipPreview:as,fullScreenMode:mi,handMode:ha,isInCommentMode:Ca,isDisabledComment:ms,isShowAIMenu:qn,layoutV9:yn,dispatch:Xt}):null,_e&&(!Fe||co)&&(0,i.jsx)(o9.D,{size:Ye&&!co?"small":"normal",isShowInspect:!Ye&&!Fe,mode:si,onSwitch:this.handleUpdatePreviewViewMode})]})}}const O9=(0,m.Mz)([A.lY,Io.X.query.getIsShallowEditing,y.r,C.Er,S.W4,S.z$,S.wA,S.YT,ce.p$,C.BM,A.T7,T.MZ,C2.C,S.wq,T.PI,T.k3,L3.Q1,A.Ro,l.sI,S.HW,A.MM],(t,n,s,c,d,w,P,F,X,ee,pe,ye,Ae,we,_e,Fe,Ye,He,tt,It,Nt)=>{let{isEmptyScreen:Lt}=Ae,Xt=!1,_o=!1,co=!1,yn=!1,An=!1,In=!1,wn=!1;if(X.length>0){var _n;Xt=X.length>0&&!t&&!n,_o=!!((_n=sdkStore.getHotItem(X[0]))!=null&&_n.hotAttr.isLock),co=(0,nt.GS)(X)&&!t&&!n,yn=(0,nt.sQ)(X)&&!n,An=(0,nt.oR)(X)&&!n,In=(0,nt.kE)(X)&&!n,wn=(0,nt.P6)(X)&&!n}const{isDesign:Jn,isExperience:rs,isLoggedExperience:as}=d,{isEditingProjectMain:mi,isEditingCombo:ha,isEditingUserCombo:Ca,isEditingOrgCombo:ms,isEditingBasket:qn,isDirectlyEditingBasket:si,isEditingMuban:Hi}=s,ra=!ha&&Jn,Ta=!ha&&(rs||as)&&X.length===0,Pi=ha&&Jn,Bi=Ca?I18N.SettingPanel.my_widgets:ms?I18N.SettingPanel.team_widgets:"",Ji=mi,Ui=(0,ya.F6)(we),wa=!ha&&!qn&&!Hi&&!!(It!=null&&It.id);return{canModify:co,canMove:yn,canDistribute:An,canGroup:In,canUngroup:wn,canLock:Xt,isLocked:_o,canOpenFlow:Ji,isSaving:c,isRenderProjectTips:ra,isRenderExperienceTips:Ta,isRenderScreenGlueTips:Pi,isEditingUserCombo:Ca,sharingInReadOnly:w,editingComboName:Bi,currentOrg:P,projectMeta:F,isFullScreenMode:pe,toolbarRefresh:ee,layoutV9:ye,isDirectlyEditingProjectMain:mi,isEmptyScreen:Lt,quickCreateWidgetName:Ui,showDragMode:_e,isAdsorbentReferenceLine:Fe,isInElbowMode:Ye,handMode:He,isInCommentMode:tt,isShowAIMenu:wa,previewViewMode:Nt}}),F9=(0,o.Ng)(t=>O9(t))(j9);var U9=e(71072),z9=e(87404);const O3=t=>{const{isDisabledSharing:n,onShare:s,isNotLogined:c}=t,d=(0,S2.OB)(),w=(0,r.useContext)(S4.G),P=(0,r.useContext)(S4.n),[F,X]=(0,r.useState)((0,z9.N)()),[ee,pe]=(0,r.useState)(!1),ye=()=>{F&&(MB.commonGuideHelper.closeGuide(Ha.c.GUIDE_2309_CLICK_SHARE),pe(F),setTimeout(()=>{X(!1),pe(!1)},6e3)),s()};return(0,r.useEffect)(()=>{if(d)(0,M4.c)(I18N)[Ha.c.GUIDE_2407_PREVIEW].howToShow({isInDesign:d});else{if(w==="device")return;P&&(0,M4.c)(I18N)[Ha.c.GUIDE_2309_CLICK_SHARE].howToShow({isInDesign:d})}},[w,d,P]),w==="device"?null:(0,i.jsx)("div",{id:"sharing-box",className:f()(Ha.c.GUIDE_NOVICE_2309_STEP_5,Ha.c.GUIDE_2309_CLICK_SHARE),children:(0,i.jsxs)("div",{className:f()("share-box",{disabled:n,isNotLogined:c,"show-animation":F}),onClick:ye,children:[(0,i.jsx)("span",{children:I18N.ToolBar.share}),F&&(0,i.jsx)("div",{className:f()("animation-list",{"is-hidding":F&&ee}),children:Array(12).fill(0).map((Ae,we)=>(0,i.jsx)("div",{className:"circle circle-"+(we+1)},we))})]})})};var F3=e(75422);const W9=u.Ay.div.withConfig({displayName:"styles__StyledDropdown",componentId:"sc-sp1p33-0"})(["position:relative;&.dark{> .content{background-color:#333;}}&.center{&.visible > .content{transform:translateX(-50%) scale(1);}> .content{left:50%;transform:translateX(-50%) scale(.9);}}&.visible > .content{opacity:1;transform:scale(1);visibility:visible;}&.transparent > .content{background-color:transparent;}> .content{border:1px solid ",";position:absolute;top:100%;background-color:",";border-radius:8px;opacity:0;transform:scale(.9);transform-origin:50% 0;transition:visibility .2s,transform .2s,opacity .2s;visibility:hidden;z-index:1000;}.trigger-container{margin:3px;height:30px;font-size:12px;border-radius:2px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;cursor:pointer;&:hover{background-color:#666666;}.icon{flex:1;display:flex;flex-direction:row;justify-content:center;align-items:center;color:#ffffff;position:relative;.svg-icon{margin:0;cursor:pointer;}}.trigger{margin:0 5px;display:flex;flex-direction:row;justify-content:center;align-items:center;transform-origin:center center;transform:scale(0.8);}}.content-container{font-size:12px;position:absolute;top:0;left:0;transform:translate(-50%,0);.menu-root{width:fit-content;height:fit-content;overflow:hidden;border-radius:4px;background-color:#333333;display:flex;flex-direction:column;justify-content:center;align-items:center;.line-anchor-option-list{width:100%;height:100%;position:relative;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;padding:6px 0;.option-item{width:56px;display:flex;justify-content:center;align-items:center;cursor:pointer;&:hover{background-color:rgb(102,102,102);}.item-bg{width:100%;height:24px;position:relative;background-color:transparent;display:flex;justify-content:center;align-items:center;box-sizing:content-box;&.active{background-color:#666666;}}}}.line-style-option-list{width:100%;height:100%;position:relative;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;.option-item{display:flex;justify-content:center;align-items:center;cursor:pointer;margin:6px;border-radius:2px;overflow:hidden;&:hover{background-color:#666666;}.item-bg{position:relative;background-color:transparent;display:flex;justify-content:center;align-items:center;box-sizing:content-box;.svg{width:24px;height:24px;display:flex;justify-content:center;align-items:center;}&.active{background-color:#666666;}}}.menu-separator{width:1px;height:40px;padding:0;margin:0 4px;background-color:#000;.separator-line{width:1px;height:100%;border-left:1px solid rgba(0,0,0,0.1);}}}}}"],t=>t.theme.color_bg_border_01,t=>t.theme.color_bg_white),V9=r.memo(r.forwardRef((t,n)=>{const{position:s,top:c,right:d,bottom:w,left:P,dark:F,center:X,className:ee,trigger:pe,onBeforeShow:ye,onShow:Ae,onClose:we,onBeforeClose:_e,closeOnContentClick:Fe,onClickOutside:Ye}=t,[He,tt]=(0,r.useState)(!1),[It,Nt]=(0,r.useState)(!1),Lt=(0,r.useRef)(),Xt=(0,r.useRef)(),_o=(0,r.useMemo)(()=>({position:s,top:c,right:d,bottom:w,left:P}),[s,c,d,P,w]),co=(0,r.useCallback)(async yn=>{if(Lt.current===yn.target||Lt.current.contains(yn.target)){if(!He&&ye&&!ye())return;tt(An=>!An)}else Xt.current===yn.target||Xt.current.contains(yn.target)?Fe&&tt(!1):_e?_e(yn)!==!1&&tt(!1):Ye&&Ye(yn)!==!1&&tt(!1)},[He,ye,_e,Fe,Ye]);return(0,r.useImperativeHandle)(n,()=>({setDropdownVisible:tt,show:()=>tt(!0),close:()=>tt(!1)})),(0,r.useEffect)(()=>(document.addEventListener("click",co),()=>{document.removeEventListener("click",co)}),[co]),(0,r.useEffect)(()=>{Ae&&He&&Ae()},[He,Ae]),(0,r.useEffect)(()=>{It&&we&&!He&&we()},[He,It,we]),(0,r.useEffect)(()=>{Nt(!0)},[]),(0,i.jsxs)(W9,{className:f()(ee,{dark:F,center:X,visible:He}),children:[(0,i.jsx)("a",{ref:Lt,className:"trigger",id:"drop-trigger",children:pe}),(0,i.jsx)("div",{ref:Xt,className:"content",style:_o,children:t.children})]})})),H9=(0,u.DU)([".fake-avatar,.image-avatar{display:block;width:24px;height:24px;border-radius:50%;color:#fff;font-size:14px;text-align:center;line-height:24px;display:flex;align-items:center;justify-content:center;}.dropdown-collaborators{width:180px;max-height:300px;overflow:auto;padding:8px;.dropdown-collaborator{display:flex;align-items:center;height:28px;margin-bottom:8px;&:last-child{margin-bottom:0;}.name{margin-left:8px;flex:1;color:",";font-size:12px;",";}}}"],t=>t.theme.color_text_L1,Ci.L9),K9=u.Ay.div.withConfig({displayName:"styles__StyledCollaboratorsWrapper",componentId:"sc-zgsb2u-0"})(["display:flex;align-items:center;justify-content:flex-end;margin-right:1px;&.collaborators{height:32px;padding-right:12px;border-radius:4px;}#drop-trigger{height:28px;width:28px;display:flex;justify-content:center;align-items:center;padding:2px;border-radius:50%;background:",";margin-left:-4px;}.dropdown-caret{height:24px;width:24px;display:flex;justify-content:center;align-items:center;border-radius:50%;background:",";font-size:13px;color:",";}.visitor-avatar,.dropdown-caret{&:hover{background-color:",";}}.collaborator{position:relative;height:28px;width:28px;display:flex;justify-content:center;align-items:center;padding:2px;border-radius:50%;background:",";}.avatar-container{display:flex;align-items:center;&:not(:first-child){margin-left:-4px;}}"],t=>t.theme.color_bg_white,t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_text_L1,t=>t.theme.color_background_icon_hover_active,t=>t.theme.color_bg_white),G9=(0,i.jsx)(Je.C,{name:"toolbar/visitor",size:28,style:{borderRadius:"50%"}}),Y9=(0,i.jsx)(Je.C,{name:"toolbar/dropdown",size:16}),Z9=t=>(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:[(0,i.jsx)("div",{style:{paddingBottom:3},children:"+"}),(0,i.jsx)("div",{style:{paddingBottom:1},children:t})]}),U3=["#266FFF","#e031c5","#fe9f0a","#ff5d60","#32c67d","#4e90f3","#139b83","#F9c74e","#7c55ec","#fe5B0a"];class z3 extends r.PureComponent{constructor(){super(...arguments),(0,p.A)(this,"state",{ssList:[]}),(0,p.A)(this,"getAvatar",(n,s,c,d)=>{var w;if(!n)return(0,i.jsx)("div",{className:"visitor-avatar",children:G9});if(s&&!s.includes("/images/avatar.png"))return(0,i.jsx)("img",{className:f()("image-avatar",{isDropdown:d}),src:s,alt:n});const P=U3[c%U3.length];return(0,i.jsx)("div",{className:f()("fake-avatar",{isDropdown:d}),style:{backgroundColor:""+P},children:(w=n.slice(0,1))==null?void 0:w.toUpperCase()})}),(0,p.A)(this,"onClickOutside",()=>{var n;this.dropDownRef&&this.dropDownRef.current&&((n=this.dropDownRef.current)==null||n.close())})}componentDidMount(){this.token=setInterval(()=>{if(typeof rootSdk>"u")return;const n=rootSdk.cssCur.getRoomStat();this.setState({ssList:n})},2*1e3)}componentWillUnmount(){clearTimeout(this.token)}render(){const{ssList:n}=this.state;if(n.length===0)return null;const s=n.find(P=>{let[F]=P;return F===rootSdk.flatSocket.getSocketId()})||["specialUser","?",""],c=n.filter(P=>{let[F]=P;return F!==s[0]}),d=c.slice(0,2),w=c.slice(2);return(0,i.jsxs)(K9,{className:"collaborators",children:[(0,i.jsx)("div",{className:"avatar-container",children:(0,i.jsx)(Cd.A,{content:""+s[1]+I18N.ToolBar.CollaboratorsYou,direction:"down",distance2:2,children:(0,i.jsx)("div",{className:"collaborator",children:this.getAvatar(s[1],s[2],0,!1)})})}),d.map((P,F)=>{let[X,ee,pe]=P;return(0,i.jsx)("div",{className:"avatar-container",children:(0,i.jsx)(Cd.A,{content:ee,direction:"bottom",distance2:2,children:(0,i.jsx)("div",{className:"collaborator",children:this.getAvatar(ee,pe,F+1,!1)},F)},F)},X)}),w.length>0&&(0,i.jsx)(V9,{top:38,right:0,ref:this.dropDownRef,onClickOutside:this.onClickOutside,trigger:(0,i.jsx)("div",{className:"dropdown-caret",children:w.length>10?Y9:Z9(w.length)}),children:(0,i.jsx)("div",{className:"dropdown-collaborators",children:w.map((P,F)=>{let[X,ee,pe]=P;return(0,i.jsxs)("div",{className:"dropdown-collaborator",children:[this.getAvatar(ee,pe,F,!0),(0,i.jsx)("span",{className:"name",children:ee})]},X)})})}),(0,i.jsx)(H9,{})]})}}var X9=e(72996);const Q9=u.Ay.div.withConfig({displayName:"styles__StyledToolBarRight4ReadOnly",componentId:"sc-1i332un-0"})(['width:510px;.login{margin-right:6px;&:lang(en){width:80px;}}.signup{margin-right:6px;width:96px;background:linear-gradient(230.47deg,#FFA41C -0.87%,#FE4141 25.89%,#F4153E 77.87%,#FF27C3 97.94%),#E73828;&:hover:not([class*="is-disabled"]){color:#d9d9d9;background:linear-gradient(230.47deg,#FFA41C -0.87%,#FE4141 25.89%,#F4153E 77.87%,#FF27C3 97.94%),#E73828;}&:active:not([class*="is-disabled"]){color:#d9d9d9;background:linear-gradient(230.47deg,#FFA41C -0.87%,#FE4141 25.89%,#F4153E 77.87%,#FF27C3 97.94%),#E73828;}&:lang(en){width:120px;}}&.toolbar-right .toolbar-icon-item.full-screen-button{width:32px;height:32px;&.small{width:24px;height:24px;}}.to-share{width:32px;height:32px;cursor:pointer;font-size:12px;.svg-icon{width:32px;height:32px;}}a{cursor:pointer;}.preview-box.toolbar-icon-item.isEmbed{width:28px;height:24px;svg{width:24px;height:24px;}}.save-tips-dropdown.isEmbedV2Preview.NotFullScreen{.fixed-layout-position{width:28px;height:24px;svg{width:24px;height:24px;}}}.icon-box{margin-right:8px;.svg-icon{color:',";[fill]{fill:currentColor;stroke:none;}[stroke]{stroke:currentColor;fill:none;}}}"],t=>t.theme.color_text_L1),J9=(0,r.memo)(t=>{var n;let{isShowSharing:s,isCommunityPreview:c,isEmbedV2Preview:d,isHtmlZipPreview:w,fullScreenMode:P,handleZoomIn:F,handleZoomOut:X,handleZoomInitialScale:ee,handleZoomSelection:pe,handleZoomSpecifiedScale:ye,handleShare:Ae,handleToggleCommentMode:we,scale:_e,isDisabledSharing:Fe,dispatch:Ye,isFromAbar:He,className:tt,currentSharingInReadOnly:It,commentMode:Nt}=t;const Lt=!((n=MB)!=null&&(n=n.user)!=null&&n.id),Xt=s&&!(c||d||w)&&!((0,Wh.M2)()||He);return(0,i.jsxs)(Q9,{className:f()("toolbar-right",{isEmbed:d},tt),children:[c||d||w?null:Lt?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Zn.tA,{className:"login",onClick:()=>{MB.global.popupHelper.loginAsync({onConfirm:()=>{setTimeout(()=>location.reload(),50),(0,yc.JW)("/dashboard/me","_blank","noreferrer")},type:"signin",source:"proto-preview"}),(0,C0.A)({operation_type:C0.D.Login}),ENV.IS_WONDER_SHARE&&(0,Dc.lW)("Device-Top-Signin")},children:I18N.pPreviewToolbar.login}),(0,i.jsx)(Zn.jn,{className:"signup",onClick:()=>{MB.global.popupHelper.loginAsync({onConfirm:()=>{setTimeout(()=>location.reload(),50),(0,yc.JW)("/dashboard/me","_blank","noreferrer")},type:"signup",source:"proto-preview"}),(0,C0.A)({operation_type:C0.D.FreeToUse}),ENV.IS_WONDER_SHARE&&(0,Dc.lW)("Device-Top-Start for Free")},children:I18N.pPreviewToolbar.signup})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(yh.A,{size:32,svgIconName:"design/preview/comment",disabled:(It==null?void 0:It.comment_permission)==="off",className:"icon-box",toolTipName:(0,Vh.Qc)("comment"),direction:"up",active:Nt,onClick:we}),(0,i.jsx)(z3,{})]}),Xt&&!Lt&&(0,i.jsx)(O3,{isDisabledSharing:Fe,onShare:Ae,isNotLogined:Lt}),(0,i.jsx)(F3.X,{}),(0,i.jsx)(X9.A,{scale:_e,fullScreenMode:P,isShowZoomSelection:!1,isEmbedV2Preview:d,onZoomIn:F,onZoomOut:X,onZoomInitialScale:ee,onZoomSpecifiedScale:ye,onZoomSelection:pe,dispatch:Ye})]})}),$9=u.Ay.div.withConfig({displayName:"style__StyledBuyMe",componentId:"sc-xiyek6-0"})(["position:relative;margin-right:10px;.buyme-btn{border-radius:44px;height:28px;font-size:13px;display:flex;font-weight:600;justify-content:center;align-items:center;cursor:pointer;&.free{width:87px;color:",";background:",";&.isHovered{background:",";}}&.trial{width:72px;color:",";background:",";&.isHovered{color:",";background:",";}}&.due{justify-content:flex-start;padding:4px 4px 4px 12px;color:",";background:",";.buyme-close{width:20px;height:20px;border-radius:10px;margin-left:2px;background:transparent;color:",";&:hover{background:",";color:",";}}}}.buyme-btn.activity-style{background:url('https://cdn-yunyin.modao.cc/2502/proto-btn-bg.png') center center / contain no-repeat;.text{color:rgba(172,73,17,1);}svg{current-color:rgba(172,73,17,1);}}.buyme-btn.activity-style:hover,.buyme-btn.activity-style.isHovered{background:url('https://cdn-yunyin.modao.cc/2502/proto-btn-bg.png') center center / contain no-repeat;opacity:0.85;}"],t=>t.theme.free_buyme_btn_color,t=>t.theme.free_buyme_btn_bg_color,t=>t.theme.free_buyme_btn_bg_color_hover,t=>t.theme.color_text_link_normal,t=>t.theme.trial_buyme_btn_bg_color,t=>t.theme.color_text_link_hover,t=>t.theme.trial_buyme_btn_bg_color_hover,t=>t.theme.color_text_error,t=>t.theme.color_error_bg,t=>t.theme.color_polyline_normal,t=>t.theme.color_error_bg,t=>t.theme.color_text_error),q9=u.Ay.div.withConfig({displayName:"style__StyledVIPRightsModal",componentId:"sc-xiyek6-1"})(["position:absolute;z-index:10086;top:100%;width:352px;border-radius:10px;filter:drop-shadow(0px 9px 28px rgba(0,0,0,0.09)) drop-shadow(0px 6px 16px rgba(0,0,0,0.02)) drop-shadow(0px 3px 6px rgba(0,0,0,0.02));&.free{left:-131px;}&.trial{left:-139px;}&.due{left:-121px;}img{width:100%;height:100%;}.desc-grid{position:absolute;top:137px;display:flex;text-align:center;width:352px;justify-content:space-between;padding:0 20px;.desc-cell{width:72px;height:45px;}.desc1{color:#39250A;font-size:20px;font-weight:500;line-height:28px;height:28px;&.has-han{font-size:18px;font-weight:600;}}.desc2{color:#865903;font-size:12px;line-height:17px;height:17px;font-weight:400;}}.features{font-size:16px;font-weight:500;line-height:24px;position:absolute;top:33px;left:31px;color:rgba(51,51,51,1);}.more{position:absolute;top:33px;right:24px;display:flex;align-items:center;color:#865903;font-size:12px;line-height:24px;.svg-icon{color:#865903;}&:hover{color:#503510;.svg-icon{color:#503510;}}}.upgrade{position:absolute;top:206px;left:31px;width:290px;height:32px;border-radius:6px;background:linear-gradient(90deg,#DBBB82 20.83%,#986818 100%);display:flex;justify-content:center;align-items:center;color:#FFF;font-size:14px;cursor:pointer;&:hover{background:linear-gradient(90deg,#E0B05B 20.83%,#845403 100%);}img{width:144px;height:22px;position:absolute;margin-left:5px;left:-8px;top:-12px;}}"]);var F4=e(97566);const ew="enterprise",tw="personal",Tg="buy-me-btn-close-day-org",Eg="buy-me-btn-close-day-user",ow=[30,15,7,3],nw=[7,3];var lp=function(t){return t.Free="free",t.Trial="trial",t.Due="due",t}(lp||{});const sw=t=>/[\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u3005\u3007\u3021-\u3029\u3038-\u303B\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFA6D\uFA70-\uFAD9\u{16FE2}\u{16FE3}\u{16FF0}\u{16FF1}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}]/u.test(t),iw=(t,n,s)=>t?n?[{desc1:s.FreeUpgrade.infinite,desc2:s.FreeUpgrade.file_num},{desc1:s.FreeUpgrade.infinite,desc2:s.FreeUpgrade.widget_num},{desc1:s.FreeUpgrade.infinite,desc2:s.FreeUpgrade.canvas_num},{desc1:ENV.IS_WONDER_SHARE?"500+":"10000+",desc2:s.FreeUpgrade.resource_num}]:[{desc1:"100",desc2:s.FreeUpgrade.file_num},{desc1:s.FreeUpgrade.infinite,desc2:s.FreeUpgrade.widget_num},{desc1:"3000",desc2:s.FreeUpgrade.canvas_num},{desc1:ENV.IS_WONDER_SHARE?"500+":"10000+",desc2:s.FreeUpgrade.resource_num}]:[{desc1:"100",desc2:s.FreeUpgrade.file_num},{desc1:s.FreeUpgrade.infinite,desc2:s.FreeUpgrade.widget_num},{desc1:"500",desc2:s.FreeUpgrade.canvas_num},{desc1:ENV.IS_WONDER_SHARE?"500+":"10000+",desc2:s.FreeUpgrade.resource_num}],aw=(t,n,s)=>{let c=!1,d="",w=0,P=!1;if(!s)return{planType:d,leftDays:w,isOrgFull:c,showBtn:P};if(t){const{value:Ae=0,next_billing_on:we,nextBillingOn:_e}=n,Fe=we||_e||"",{leftDays:Ye}=(0,F4.Nm)(Fe,Ae),{plan:He,status:tt}=(0,ta.rM)(n),It=Ye>=0&&Ye<=30,Nt=(0,We.Yt)(Tg,-1,We.qW.Number);switch(He){case Rd.Sj.OrgExpired:case Rd.Sj.OrgFree:d=lp.Free,P=!0;break;case"org_lite":case"org_full":if(P=!1,c=He===Rd.Sj.OrgFull,!It)break;if(d=lp.Due,w=Ye,Nt===-1){P=!0;break}if(Nt<Ye){P=!0,(0,We.a0)(Tg,-1,We.qW.Number);break}if(Nt===Ye){P=!1;break}ow.some(Lt=>Nt>Lt&&Lt>=Ye)&&(P=!0,(0,We.a0)(Tg,-1,We.qW.Number));break;default:P=!1}return tt===Rd._E.Trial&&(d=lp.Trial,P=!0),{planType:d,leftDays:w,isOrgFull:c,showBtn:P}}const F=(0,F4.pE)(s),{userPlanPeriod:X,leftDays:ee}=F,pe=ee>=0&&ee<=7,ye=(0,We.Yt)(Eg,-1,We.qW.Number);switch(X){case lp.Free:d=lp.Free,P=!0;break;case lp.Trial:d=lp.Trial,P=!0;break;case"standard_lifetime":case"premium_lifetime":P=!1;break;case"monthly":case"yearly":if(P=!1,s.sub_plan!==""||!pe)break;if(d=lp.Due,w=ee,ye===-1){P=!0;break}if(ye<ee){P=!0,(0,We.a0)(Eg,-1,We.qW.Number);break}if(ye===ee){P=!1;break}nw.some(Ae=>ye>Ae&&Ae>=ee)&&(P=!0,(0,We.a0)(Eg,-1,We.qW.Number));break;default:P=!1}return{planType:d,leftDays:w,isOrgFull:c,showBtn:P}},rw="\n data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAsAAAAIOCAMAAACBE0sZAAADAFBMVEUAAADhuHDjxpLn2r/k0qzlzJ7+/v3l0Kbs48rl0arm2Lvftm3//v3gtm7//v3+/v3mzJ7+/vzftm38/Pr///7//fb8+vbn2r/byJ/+/vz18OTm2b3o3MLp3cT9/Prax5328ebr4Mn07eDcyqH69/Daxpvu5dH07+L38ujZxZn59e3q38j6+PL7+fPw6Nfdy6Ps4s3x6trt48749Ovx6djv5tPz7N738+r9+/jt5NDy69vy7N359u7s4cvq3sbv59TYw5bm2LvdzKXfzqji07Lk1rfZxJjg0Kz///7h0a7fz6rj1LTezKbi0rDl17jj1bbXwpPo28Hl17rw59XawpHaxJbWwZLaw5TZwI3avIPZwpPetm/bvIDaxZjbunvZwY/Vv4/avofYwI/av4nftW3bu33dt3Law5PcuHbUvYzKfhzcxpncxZbcx5vawY7av4vcuHjbvobdyJ3cxJPdx5nduHXcwo7TvInetnHbwIveyqDdyZ/gzKTkzKDcv4jgzKLhzqbfyJvfyZ3i0Krey6LdwYvdxpbcvYPfwYngy6Di0a3gxZLevYDgyp7duXj/9uXevH3ev4bfxpXgz6nfx5jgw4zSuobhyZvdw5HevoPjzqTix5XcwpHewo7exJPcvoXiz6fgxI//9+ngv4PUkTbdunvl1LDgu3nqwmvhyJjgwIbky53hvn/Xlz3l1bP/8Nbl1rbixI7l0qzl0KjhvHzfuXTfunfZm0PNhCL/9OHjr13hqlfjwonSjS+ncSnPiCnfp1L/6MDdo03boEj57+HqvW//+Ozsw3b/5LbkyZjnt2jls2PkxpHguHH/68jlvGf/7s/tx33iwYXhtmzJmkywfTbes2DTp1farVz03K7Dk0b57tq3hDm9jECqdS3505D1zoj0yn/HpGyueTD04cH72J/sz6P79urgtmrqyYnRtYX36dDOoFHv1qvtzJT/+/LYnlLCmFn93ai2iEj14Lmzg0D15MrPsYHbsW3HoGLiunTy1Z+7kFLRrGzMq3jn17iz/AoyAAAAFXRSTlMAX19gYCaCikK539vfj8+fb7+/sK8K/rr4AACZOUlEQVR42uzbz0obQRwH8DW6JLEI3jwo+Cw5FxfsNdd9BE/FIZqANCm5NQTiJRCI4Irkj8nJFxD0kn2JfQTJJf3+ZmeyO7upLaW0Hfl9fr+d2c2EwMKXgTnEYYwxxt6jUrFYchizVFFA0WHMSsgvJ5hZa18o+w5j1nGFVncdxizjHou1Y4cxy5TFWiDKDmNWKQqFD3LMQvsio+AwZg23LmJ8kGMWSg5wfJBjFiqLrEAEfJBjligirxIf5JiFdoTCBzlmoeQAxwc5ZqFjsVnAB7m/wnW37FcooP+NciCoNivv/Fnb6P9F4Q07cvgN2yBnUiq5Pwvv3ocojKLIj0Jc1GEY+pHvhxBR05JP3wip5ToeaMAiPfr0TCPIFZ/Kl7+GrwFG+kzzX/KWs9lyOcOAaTlHLefz+c38JuXh5kG5ozIMBncDWCwGCxq1R1y3mEyd8QbPadeJJ/QGQdAN0kQ6wT0UTWnT3jSr0Zg2JhnDydBwnzYarUZkRbO38rzVyqt4lZRDcgAY4JTq9JRuDo7oRl+yNLmOSy9holl+FtMfy9+IR3Tt6uzqDL6dXRKMdWi36yjS/Nys1dBwfn5xfkH6pKG0Gq1Wa4Lr5GR4ol72I15T8kaeVNl94x8Ce69+WohG6dtQ3eAuWTLpRS1/p38vLnS1+pIziy1RMsAkG2B4WLvLQ4TJgvJrZhiM/HYex51xp5ML8Pj56zNauTZS/JTT7ZoRzm7CvbiUKVUfZZqgJ5NMjI0AyyExIirIHkGCVxWM2qF0oCG36yjHN/pZptV0lHxPJh6TjjY9J0vEu7wiFOFLXBRgJFhrN9tNqRbrIcMywn10v9FXCdYQYIQY0q/pwSf5ZrvbziZbr0nQwiSOPxAZXzaS+stC+fPVF9qDq2aCE3MtHV1jBwZjDx6gqUBtwbjgViUY+f2yjm8c4A4yjDbzS/GVwzUKETY8JQJUFxNluJvPsCm1CaOn2ICmhmyEh7kM36ONAJtbFNA+/J1Zs+mpq4rCcB0Yv+LEqWP/hwqkIUhvJBhJGODAwIALA7AJoTVQQCNfDYi2gaqBNC2hGoMfMOofcNCJ/gnjn9BnrbUXa69zctH4Efvstdc5lwuaG56+XfvoSBicHH4738QtLToXf5m/0XGXtWgb3Y8NAhiKwslhFCaEwUPYCYOBDGY9LAprBtsH7ajCONxL4VeygHGbkzN/JRv+lyz2GKf0+gSDdUPbYA3hZgBnfdsG4652V5hCXzVXPH786PHPGExFCmMw1QjhI0KYVRKYSlxkr1lsd5cZrAlMdwjgA/Q9aI8S37epDKYSoTDbIIR/J6xc41ffEIX/O169ibrdksDT6i/6Givi8LYInEL4JgofuMAQQwQ8ZIqAh6pwCDygn29E/3S+8Gxj+H2pt2+/+jUreLmvOcipXt8xDq0ZImewGXycyfpSTljsRAKzqcdNsDf0TSG8ubl5jx4RHPpqC+6y6FALzE6EwhHDh1RWmFliNevbO4bh1B12k0HG4RH3V7dKjMZ0bWCNe3/LXlqj6xXsXeDKi/Rz3L/xwcfz3W5J4AB5TWGbgm2OWLoweJkihm2QONyLDAZCGH3xtx9IYWIYgcEMviYh/Gz2t6eC/5xfLr8f9wimnLM6gs+dhsBUMrhFCCzt0SNV2LO4ZPDnlsChcAKJv9MQpt0TjzNm8Ak7UvhrDM4kf9VhqgaBK4MPJYS/p9rT8HDOYXaS2Pk95gnCSsfGEYtht9NEBHp5HXZLKa6yawt+qSeTYfSFCOHPYoxQfykk9iEiFGaMcIHTUc7gQ4rECDwkfHvakQS2UXhkJBuMvz0HiBh1/7a30HOmtgS2WljAXXbDYB8hqKbC2V926xTnJzm5PjJQ+TH2QtGXYgIWsr3fHcnlCH1NYFbm5N5PJ0Bjk76SwCgsC2iucItmBh9C0ngVfqgNHnaHk8VpkqDSROyM4C8OozAUWYu/YWLqFCssDufzndwsz4MmcHFY9Z22sxysUMbi9qJPEWtligiHK4WN4Y1hVRiD+0VgQlgTmIJsMP7+HyAvG0xi/F2QbfbGowh6FcG0IGUwq/ksLSHjA5TLJ49tfS4KB9+lID6imCKOGCVshthkJ8xeYpjG/V0z+PLj3EErhDEYfdmsLHHt8AYWP4xZIlvMaWfoNCwuA6PnsKRWfjLhAv4t4ueu3ZoviMFdlVgepTlmsGWwsOiT8JqFMLjBe4ere66wYXOwGSyDxGmHGB64NlA+1Ivu78s9DSNG/2uQWP1FYIlg3WcJ89djONmbMrhtcOaRRzAOI7ArrA67vew8SRwdYfFmgRmCmbjFiYC+pd+FojDVM4azw4clhdVjuvmrCrNaTyYaQewGxyyRDnY6OI5QLjA7rnTBrmyDO2/xpt9Y49LfnZ8yf1G3zBG02t8ZmyFgkQzmcfAiFZMwBvsYsUoKm8MbtcIyCQ/hMHRQeIAPhcLyJ/K5MkC8/z8y7hDAlCRw6xAXZId/bFDLmzOYIYJe1HU+EcpTCApyEHsEAzms3NPNqmCMQOHABTZ5pW+z14vC65XBDYVlG2UUhlUnYpgFbYExuGxTuFNpbKAwk0RRuMWrcSPbMcPtrsXy/BdTCGx0HVPYQeE5DJ5Th0lgHSTM4LUyRqCxKAx7e8lg0Dl42MYIO8wxCxPDwsjzNkCMm0qmE6308oolDfx74hu8Sdd7pfwM2NWqtPyvYAcLhSdwicCJH3fc460sMfK2eJSR/FVqibHWDI4Ehs1NqjySIIcTJ+xscA0Ob9/d3v6ahcYInI5zSweJ2mF29YDUxwkO6OwNNg7zvNQ97leJiSpQm9VhqkPj983oSCeD62Gi3MRwMZLfgPw6v+rMfTE1P0VVAtsg/EGVwdTcnPg7t01bxGGN4CUDg81fHyQweK+eIiyF+8EU7nQGZJHD8IIGcDhVJAsV3dE2+dvjVbT4p9Iz4XE7gKmzhbNMbS8tPQ7G3x3EpWOvGrwVI3BonEeIyOBQ+JPIYXU4C5y5J+X+2kowCFeovdv4u73+NQs+XF/6kCVIDtOcQ6qAwtlgwF6BLjwkn3RROixScmin2KdDqrEYjL3oq/gp3ort8JrtXSq+JNbW6FvD3dHR0S++mMdg85dSh604yFUhzCxhGbzIHIy/hLArbFwMwnuAxKFwgU9GmcSn/nEkgl8O/ahKRA/e5LCHZybevkx2VhD3OX9d4kTvCEZcaufHnW+4yY/Ttrbu36cSSWLG4ETMD4aoqw4bhHDgBgdZ4TqDQ2KZJzSDtYnEWd88TKCwkS1GX6pADit6Yi/PTfuxV2Gi6Mjc2GEPACKXifjPucaqaP/MIfpOTU0xQ4A7fKEw9k67voDAhDCTRHLYj3IkcJzlkBjSWW6wGAzq79CphjBIBCeVePEv8X5cen9P8lf2JDxZmDyTJXV2vccQ8aBsIvgYfQ2Rd2dHInjrPgvoIvF+zBCyXeAMGYzDFUefHyXaQexkh/UglxS22gb9jxvroA4TwOtLNFlUGiQ41rjAzUmC2pBx2DGJxWBzeEgsxl48tlNdR2pAfumcf+QYZKimlG9Wea03YN3frxjYHi1IAkMIzBQB3elud9pnCMETWAbhG4uLa6z19TV7oKa4w6sYDP5MOFLYBUZhkI9zjQcRz4w/HTBBKCruk8nJs+uG+HudF+fXz89v3759zqLUXtoDrj8eSwIbCLy1s7Ul6YvEsvB4f781B++WhsRUlcHsQAI4+Uul0xwrCUw5GNxkW8FfLEbgdVV4nRiWhb+qcsQwaUQpbYk3qFD4YZXDPjF+i8cY7GcfjWHgKZQ/iQoG8m3cZcLib+fd3ynFFa6nCMlgZ0YknpMUVta3UZgpIinsKSwfds9H4atlElaBGwpLCD/PBPE0sABusOMGW52jritMd4Ux2OSl46+UCRwDBHf71Qxxf3fX/c1BHBZneiewWfxpcjjTFljPc4DCIjH7YH0dcc1gWs3ygTuMvoc/pEGCqiaJDQ9h6/2GyiulAg+xB+wXbxLb9ZqUki50KuCb2DT68ujsqDOFwzFGdOffuRgkpm2SYGEw/loKU4KNETZHrDUymAimcFhDGIkHTWAfI0xi/SDPXXll/ClgQfaFv5K/k9cnw95zucVfBGYhr/oLxw92HpC/D0xfut7Y7GCNta/cZ6nA+6hb2ctK9srOcIxze2lNgfH3kkmYqg2mHP8/DIlhfocBCqu5BzfpBXfYVhB/x/qhLjx2hWUZHWmnpvFAlhiys21E8/L+0Nro7OxsOFz0hZLA7/gogbzT6GvMzMxhMKzMkb83FjFYxog14ImaP06DvuW+PcNCmBQelBj2DAb+UJrBL/AQ7SlB7aVM4TO62MumicIWv9qPaXQEJoG57AQIvEUZNgibvTQ2xXWXEIZyyQLLyjTn4CwxCSwgsqyTTz89kZ0miawwuMI1YTCFxfwqEZkmKSwUiTMbsmuGTWFIv++EhrDUwN+ivzs2MTsxMep4Ar978TSNrUzzQC24NYPCc4RwyWAsVtaWRGKfhIvCe+KwzxEi8OAgWyI4p/CLV8afFkr+UgoR7BlsqLQ0dVeb+rvDIQ6DExzjXGH8RVzFrpLBGAwInI5zTvso9yWLcjA4WWz+Qrni72cnbOozM/jWXf76DIkjhVnZ4LCYkhhGY7YIHDRzuEmlMAXFYkqDWCeKMFhu6pcdaaXk3nWn0zZGJyZmVeAYI9IUIUMEJREMEsC2bzFHYHA5zt1AYEdDGIM9hfv6+vi8feawIBkM5U+nOOwfpf9Kj7/NaXaxl/E2FffV92iTr7TR5wt+m67xg2ylEriGCK6OcIroW2gZvBWgLA7vG9zs7jJH7GMv/sYckQ0GmiPmfoe/oa9WbTCThMcwXQ3GXRbdBgkMTtNwpDAVDlPBAb9SSWKVOM50q9Zb1DHsSaz+ahtqRrEMxSjZpPhLF+xLQ9w4a7MTs2MIPOYG5xA2hTH4HRwGj2AEnoFbFsJzN3QMLgpzkqsVXi4pDJbCYjCkwxwMoe9rd664itbaknoFrmyW3gW2zsXv7S4cTv+ePEBUVAc443YxmH1MP1Z92TthbzI4OUwVxF0uIjAG06WapziKFQaTwiTwhcKbsrPAoAarvfdkjMBcNPYxwnM4Bok0DVOYvGRU0wQKLx/w+6RJCovBMUpwVu+dw2FwiBzjsE/Df51i8HB3bAx5Z6UTwjXqLyX2dp1p+IDCXyCDOczpFFFC+EaEcH2Ue2sZYhK+ehWDyWA+lT4T7jeuvn7nzm9XLPvY4MnrqItsj9r8VS2XE+iGazvJHVq61nLhBdi9XiLC5a12+pZD3O3A5l+JYAeH2Q1/2ca+DBKavjr+isD3MdcFvuw5xEdiLyseCUcEZ4q8gL1skPCl3OOcwSTwCosqaABTtiqF9WBDFRCYjserIrFNiT4qUsogxQqJ+y213GG60+kNb9Z3uq9OzYq+NkNQKYFpEr/vdqdkCn6HpQq7wzAjBzkimARmza0sNgReW7tpEsfplU+Gv3uSwYNXBwGBbRJ+6z30/e3OlYVg0pteWQ5isXUl+IJKZ/ctJttfGZch138uvsXkpZw0PVgPhY9NXo/gNil+qQvKFLyb+KSp8Eds7GVFCGv+RgbLcr4Sf0lh09dhfAA6TZEE1h1E/rIdBGbnpxL6Ow2JgYsqHOwhsFjsDrePdFopiDsmsTUW5V+j2PENspc0eMfGOMSNUgg8ceGvdfxlMQWTwxgcCiOwG+yQwIs2RaxRShj81lvEsGfwKhLzMEIEdoXffO+3O0ACh1xU0lfLbyi/JNtZl0s7SaVXSEz51+XG3wgseMHHB09eGyCOc/yyKGerabAoTHd2qcCfR6QJAtIQTPxyjqPYTpGXBZ9aR2B/FsHG3iIxJQKfNOy9u6Lk41yO4AP2TToKewwnkzWGWRRb/XX01C4SB57D5rC0mo73TMcv/TNjQAIDT9EomDCBKUXsRV6fgOsMZoyYQWCZg3UKvrHCpiyFyxTsYwTuInCfIiHMZowwfSn0xV8KgSfB3eFKs85F7a3fYZVKX4V4w63Xu5DSQjz/m9K7gT0CzpTZwXnwBzNntxNZFURh32XihVe8ghkuiKRNvAAZid1OOkGZIDoR1NgQRhFEoxIDE8VEQS+88AV8Pr9aVXXq7HPGjtFoZu2q2ruB9if5slxnNw4ANwFCeyjjQyFs3SeYLv/1INw4cGVghQgXEPdi8FBX1EBgbOzKgpkAXB5cGJcAOBnWCAnhsGCbFSaEr3795fN8Xmdy8U/n7SnDfPgVVqVhBvwio1i9XPqRV995EACDsKeH99KC4Te1ZTF4UwFCHZ9meA7el+AXgH1xIYwBS2HBuhGW/3IVcS2AkUIEAuK1Fz+W93q/8Pbzpw8HBDfwKvyqQu7ApRZfsUuNAa4gUfcQBTCC4fPMD1ylmYLecRAWvi3DdRHByMuIz55+9tSu1ESyPtgoCwZaZhAcW4ewNDRgKhQEd79N6w/uxrGuUN2HA2L4LStOfDmFegdz6iT8jAc36a1Sl4DfogthYrCu0jJC5McZtCHs+cGTcD3G8bsRX1kMRvUoN9F1mj/ISQThlzw60NqfN4AH8O5ai9qW4MaAhwQPVOgWwv0IYZ38tkkiY7DxyzCC04NvbGQIJkjQisGNnl49LQEx9P4uem2c/nBqBgzCqHcZoS6AS3nD1Io4vPrLp6JXAwXEIhh4bZnaJKEWoYFpnDRzaNf64EHoPQy4A9iXtL2B+XqKwILFLzJ+K0TAcHhw6siECbsDpwm7B1MTRYiQ/fusCt9g97l04BG9GPAu64+i93EbIZ5xB0wvRbhz3iSYBEE1Ond84fZc3stCHIrhm5uvv6aMXUoAUw3BVOFrBb2UEQy2P6BTTxFgLIJphpEbBGtArwFMSWQJhzcRVpogSyS/eSmxVs8+sEyUKCNG0FkcS+7ElZKZGq9sJb9z+IXh95LgXgamYPjgnU1SMCGiHLi7Tdunkl+GXQZHBO7HYAgO+cfKKACevBThgUq90GTPv6vdv4PiPyV4t4+vAkTjwcDLKNUzXBG8hN8mAifBwvdkyC8RGMHvedCbKUI035gAWB78l0F44MBmwCURLIqdYWrZhYTxGz7M6BC+Bl/GKndOYOwQs1lqpJAFYYlD8VtmLBXF9SqpXs30wPIDDLvqKY6BxPABDDvANDrsLHg/HNga+bPc4Do4A5NSRABsCN977ftW4cD6r3Y3opGOVNpivep+Jo4aVPvDiXDu+RP1Lqr+VhypZHe3w5dCDb8tvqwmAFOtLn5kXVw4vXUPcUeXTmC4BVj0CmIAbhUmDL+IESlCtxFDfq9YZcHWHcWn7sbge0qSYMAura2huABWiWEaBccWFRnExRL4Xq/hxA6wTX0Yy+OcCY7LiKllOnqQAM8fzIEWjD0BUxp1EUGO2LQMQXqg04JDBIgMEe7AgwzRv0wzF55MrOMy4t7DMbxy4A8Henv0UrNOf6Xd4pylQ319+d+k/dau8xvpd3e39d8BwN+N3be9RBPCxrDLT318sd8T4B1nCBP4DgkONxa+Qa+PuEobIky1IkZQlYXhF8WWWYJeUO7BVKlihLbUqgF8bTbco9gQXhPDkSNoKWy4ANZArSfbi7VNwRsBwtLDHH7Z2s/hbJn4MA4Rgn1hwsUw0kUaIw0YgoNhZWBn+NiWNFmdYMKF71gATCAAMq14oYphXzEKfXFg0JSxxpH3MOxrDL2fKpJ386+f76Llrkw1r+s7/v5Wl49Tvz3+7XI2mxm4M9N3v82gd0eFNIcXELJfoRvx1+Yde59gJQgW2Db8il6qUSZhJQj69ua2k3Hc8ssa8ks5wfJfELaFkl8KZZZYPBk+0FUWptQp/ce2ACY2QrCJ2wh9GAvHhTDLP9eiHVaUUCNtqxvFL/gC8XxelxAMpYcKEJQcGG3RGYKTX1v+cVyXIaA4XRh8adf9lZXJMYsHuRcbfIcA7yKRaOjYqzqx006vTnJHf0nzDYpzfJHRf5ctoYn000x9g9Yplp8+DO5pvcHmpeNrdUlBMPRS1izCg23pvjvfCN+dAcCQSyXDGSFanRi9DcBOb2ZgRukmcvCNhYhbEDZqU/DLy6vbwhh+qS9ahgkS+nN0S9+6F4Pt+FeG04RpAewQl0gSpYiM7S8SIAiWHGK7Hk6SA2EHt+/LbIsgt1Jw4FsZQvDSoS1EjshbiEK4CJY6gikBfAS7FSLOnqwcK0KsvPQITpcBLHhQoiQVW1K8EniBPJXAO9h9uDn7Xu/1IUBD+SYpg692KQEWvD4yPcyqiRCy4B0mDEtv0hLIWkcETnzvxvwawY6wHc8NYCpNGIRZpo/CgD8ygH/+6MYIRsrA3legS9sqAfAQYdQ+z6UH9x2YDhOuzzaKYfLwkOBrzxIgjHo+jAk7x4ALwgZw4kvD8EDB8St7Ru2jHr9z5YeNOd5LdQBT29sb+UEG+RcFwVMliKnwjce4PceXCbyVIqRg+Al9H4DPXraLh49ZEvsQ4OIuiSrEHFcx5cgWcELNoU508zux5dcZxWi99EMu/TTNiELC1tzX+Z2Zkl8VDbdOrj/Cvfkm9DKYkj++qQRy3ULcZSfCXXY4OS96lX+ZRW8c7CIYcmlihA0HGNnHykVvMSwVxYcFsScIBhWy6wiysK9FmnAyfOYFubRrArkAzGanAJgqiBEQlwuH8lTwlq7fcnpLln/HH2WIYeMXirdcm+HAVDKcgmEkeq0jQSxo5r3FvXtnK2bB1PEK+Bq1H7OVPlYxAuDWEBsIW6csLhnL9OHwdR0K5OXCeVnil2Kb4b5JrsQJ74VgISyIdwJdNfPigue3cF/tF+BrMmzvaHR3og3zTfs9MYLLfsN8GSXwxYEx4E63JaNXhyCX/uLp1RemHsH2f+sOfPi0L8/ANqwWgviMFr+ss/Dh+pCu8+FVtSy4XFgDJcJ0H2CZcAymtgX8vt/GX4N3LnLzkPwqRkCuPHiTAxFYFE/fnU7JENO9d3sh4jAQppNhWbD1vUwRR8KX1mbyWRgL4OdQl7EnwGg2sw52c6/wwA613wW66cAXKbmvHuDg1sjNoiFYDMOvoUufyIAL4kgRacHsHLgHDoSVI3BfmXBRrCGKIfcKctkGJnyoh7nDng/THPxJjiEbXoAv82wBxSwDuZ7mqJTwnRi8jGD4OrKESuReQ3DJAS4JXwd6bb/gNXZpw1gIs0A4soQDjOoe2EIw/FYK3kNgrM0AThNmBb8VIrBg82Ce3IBVHVsFCF5rIAP4ccPOUI81qOb15TOhe8zi2Lx1jGf7Db1o35d/x55mJIiCV72DAyMD+Bvb3lR+MHFKfgtgpd+LOzgWt4Gx0DUDRqArcr/UamTsnnf8Qu+vUAzBqdvWgvMgfAFYHQRXhkCNC3uMYEcfZCAOeYxgUqRESimC7ZgKyYMnFI/uIjklJ15fh2KcOG34lWI4bVjlWtt+8L7HBybsIriV6drYsK25By5tmv3WJYTG3nQ67UWIgDgc+KhkJowMX/GZ7MZelXpBaAIkU2SJGweWheIryRRVfMXuc4RfgqojZ585mi/V+9n8L5ki/F5ivlJBbOSyUsJX4cGl/FCC3zsRDLSu/h3aiW4haEOYbpUXEdiu6KWQnuAGEYKR0jWEKgS7QTBVwoKJEqKXrhTMHhK9mLA2fuGFIkf4c45v9ThHEqatQBhu+WWuhBiAQZgl9eMwHFsNtDI3cN9/6PbrLXxpFE9wtGt7G4TrfywSwBL4Uiasl8oUURGCVQzHbQT4OrBaeWTLsyQTBuDCkU6A4ohIog5zwhV4+UnO6YCmNSu08rJ+JJZe1aRiSz+vv/0lzaQs/Rq/veRrk/Br+YGh3e236B0TjAQx7IrgE4M400PpWQjjvYavipHqEgTk+oPc7UhFsOiljOOKEIeob8HBcWlB4cMJsCIEHOtyOB7XAZjqCxeWCa+2uu6LG+LSKE3su/eyHN0YFBSnxC8FuRDMiASxJftluKa6R7MoLIDp/b6Er1WH8PRhBV4/sWrXlicAFigpjstUvjj+4cqrDmhoyTuWf7e+0sReooNehPPGNHrVvkEsh2D3jvJVguJ8gpP9Jr0cn+G/dOLLZI/TDbPx4DHANPmBpac4oGX6wRkODZ/mfKYJL4D4q1N8OAF+srAHOtmvRwkc+OyYEr4iGBNGLcB9M17XR83rLcPIxvqW2K0EkQHCTJjFjBxBh7a5gqB5imNIbsAAjAObxG9I4A7ugwPh15zVgfH6MQ4FsQBeruWE/QfvvmySL2skRV/PEKC7811nu5RU9P7oAMMuXVLwBWLgHSCsFEwPEK4AQSfEBW+FYLaDA3baZOQeKAfLgF3Am0lC8NI+O2wVKT5QCHYdYcLmwkfKEWBsScJTsPKE8H1SUVhxQquF+JolfmNhw60M4cnGg0ZzW5QCBMsHneziv7pFy2s0XUNsuvITZXuECw/et+vgvcaCO4Zfe1S2q3a1Ftxm4OdaY3qxXqqyL1X4xrgIfN9QIZilnV010Nrtg1Xp3EdAO0ZYJlwiQxTDYtd2WwYxja4ODsRs+C8tgKl8kjuM5zgIFr/lwohf/C6KF+iIJSXGhAkG7MYTXV8TBMLjJEGvr68CMBbMbAleO8rwID3MDJHkdhRLiTDw0lgwSv8FYyd4atMiBJXKxzhaCVi/2oP7toC2AI+/UxGC8jFji5M+R5B0JzuLV3gircTAqh+r91I4pwdYbfUjl7Z0oJCO0XnO4whdqrhVAa+1o1sEV/4NejWFse5/ORm/RAhUEJ8nwJ/QiEPQi+dSAW7AC73lwUkvZS0ThuIDDPjW6CUFp//aYpP/ZhIWvsySWK6HuQUdfxzTt8RE0JUJs52FZMTUysr94/vH4cFAnGoIRsYvk11JgkLsm+BbzisJXh8owIXijbnglQdjvvQ7W4oRIpdBESKmiCBMtyFC/GooB++9nlCO6a35aATwjAVolItdQ6DqyJSMqDz7e+h8CzDa5EgjhhUcIzuIx3zPpY5sJntPfKH5q7OPCW4Fv/nkVnOI8I9NfAiAxS3d6pwFtZ8ALpWdjjuwYDHcCxB5YBq+Kg5f4MLQ2+jQV2kchB1fRi8LC+JUHAkRMuKk+L6GEL4PwGz+QMdodC2SAVhas0aT+fsKvtRD+I2VUnKIQYJgz4/hPD+4/XYZmPIMbGuKOoDzJq0yxPThkNnSo3ZvAVaoLFiK1aUq1P/BG0uiXP8Ay1UApwFL0DsSqeENhtRmX86RIFh4LxWqBAy9smAhXEYMwucOb7F8k/77kxD+SR7MOLi5OWCCb7YMmC5+cWDxiw87ujVSp/ZHgIBwBAlpoT/N5rRPL629ZCRPzjDhifE7oUujNIEFU7TlYQj+YB5Pb2olX0bRyzTJfjfkwGgbcQ+B+Ypgc2BVEawQLH6Z4pdGDAl8hecyPRofOQHw/6h/AfyO9VBjfjMAvyF61RRSBv6TurPZbasMwnAuozsWVte+hSprFmdhx8RShOMIRchOK0MUKQRZAgVyAbBgEdFb5Zl3Zjr+znGcAlGh7zd/x267ejp6z3F+NhzqloK0fgcbGGgDYTJV+JqRKCW/fyrkHB7Fcexf4CWpPV0ToEuQ1F05vgawpJ/EBMJxS3dn1Y3EDsNpJajYCNR+nURRHE/XyCRY0iJmH68AdxnkhgrfdMEpFjDewQS5shC2fSlSuOCzfJQGusEw5cq3cAp8WzoptLrIgcgp9J8D/JH4DrUXXZIDv6xhuK0lTGxAd0Nh2G62QNyCmwrzoNYooS16y0M8yjzQGB+FbHgIEoTzNq70exoJGeEG33wecSWQSf1o/u8gV6LrWb+Ve52UbHHKQB4fc4D3RwoqgkkQTrkRpnzZ5cPfhd+3Ob+WfYzNR8Q3dMKuJeR6YxNDrsd6KtHAl6O7OEIEU2UlOkeS6s2Gqt5QvuPBFeV/sIE/1jn0GN5PL3vX12+y2z6CCHpBt+BtES7/wElwxS7ZShaibIS2rk9wa7MxzGj4WpClpNdA7hHsTyP4GTYQ7D/KEYABOb7mxRBGwbASWI3eEVnyLUwZ39sCbjewShBcEN8BLA6CSl/QE95Cl5NX+hC5ti/kEqZ0wQCcAl8y+RXBr8+glzg7CSJR8JujpiBahUhuJfpnATC8ksXuUwRr9RLIqjYvSS1tyHr0MFjAoHtLWiV0dSOIn5KjS6V9bxB7f9T6jSIfUQu4VYFbBKvavTmJfvpZHgIZwxzWsX4uHqfZvgBsIZCFrsueSozNRBzvOmGKKiH9dlYPzeCYWuDGFBAnv9rBEOwC4KiwS374agjizBKAVfILetS7bxvVrk3Ftq03yObyyO0ltXadoKnXLUpGU/R6zSuylu/lVYkrTuNq643oNev6KfdAGcjAJZxigRv5sHF4vW1LLcNJriqhvDGG96Eb/dHYJang6vwyoHiQ5lrbr2IlWq2uyScQvkK2hC1Bl4ryhs6XsAgmU05w6UciGD4eJ77Hx+Ukkl8uZjIP6Rxy/Q4lF0ybcOoeDun2zYZZ0tsKhqUV6S4CfPs8Dng+JL17JFRFZdbEt32HKDR1mLMGffUnm38xuSwe6URQr4rq79ZfoPYEukP3cEpq/5J1A6dEYtdl7kEEbzb0BuCLX3wBU1CaiBsuW34TXLavfDAEk5JsxCMIQzKltHYHsc4iXccKJvbqys4VBFNSrF8SdGkozERKEww3EAvj43sIFrpBcTIcfmK0FLhUQkkMqE1NdOZzbuJ02L0hbV9pmhQXv3aQG4jXb072IllzlspUuggH+LNSi+9DFgA+dXrL/p7ifDcGcKDLEbUE6cP5dntxQdlav70lgmBS7ZB9eFQRv36AVgy7HskwEGxfDgyvaYTJSeZnJTA84SOu5IfNSGj3BsKcoDgJVjWpjUaj8f3onkBjFeLHsRE8tv17PA5HXLb4Kj51C3p1eioDPKFjILAP9I4TG5iYzTkuDeWBYZdaz4Jni+dXrVbzU/ocAd7je7322SVcG5s3Ja1fGy6sObjGLsXgJctFQK8D7Gco0Usic725h5k4rX6NHbz2IE3X7iLWUOxFWcqfaE6opGBXv+2n4ZdAI38ucQ/FibDF2CoIjw3esfuI0vFsYR9bLBbxxZNP6+uAd0l0+gBu+WH3RssFLKmdWaDA1zQtfJ/n+OUB1ib8pNLnxcRQWr66cQuM0zkoBW8VCYbVUrcG8S0Q35YEsX98QQ29JXob+A9ZYEIF/yB+6eBc9KquS0axegQqcgtfrwh4f7IWym0scqmwy2CtMAZiETxGVaRjO7aITdCLfYBZ+GUDMxCHNMFKTHycT5aXmIjODETn/oGxtQ+k6KWW5uD7YjoCi4KEo4oSUy7qLUQjOQwxUmsmamOSDp83In2AmiY1dR9o+doh45vuF3iVVJEMv8JYyEbhyDhQhC5RAlxK8evOgeo3cJTbABgZwqTQjafAMDuhSDIRVM6eJUwIWJkH51gugt+N7QSvOPmLqehcXf10XV93aIp6p+ZGQi22sDU79QGdf4OOyBXHJAPgmp+w9tp8A8uX4p9i7L9zaxwwYvWqiN6ywKQATopJ0as9rKED35cEWCA4soUZaqARX4pCUFfN3yzSgkIiZnpc1NsadJBe8Ew5yJqGe1ebl+L4hoPgou7dkt7wDkgTxjcBPr8Ibq1sqe0ChltJXegS9GBYAmL8A+HcEmWAKaU1okjhgvOeznkdGmEIlokIiV6qk/szSahQUeCLosIuXmIMw/IRfX2JlyDPQHJByvYqDmki86BhTqWI3sv4HM5rmgiyXDDaj++CqEGjrj4W4MRsqD47NdZLB65cCWphW5y2c+EsqdfrfYCJUjCMaJuHU3Fb2irONV9shO75OfhKbOBkuPDloAQX+dgKZG+I8L1oYv3SyOX0xT3cmloEpx/mYgXEK0FMJXbU+7JZCtG44TimssOUkd3OATFFwNI0wPIxg6/kUcfOBeCvFofWbs0ywCfdUgtYu3dZDrhzhhNgyZuxS3lzEljSWoLjtNIrZIl5CPB/Ioj8p2L1UotdlB54c7ox89DoHHjPNVxsDV/QdXHN/rUjZS+VARa+gXMxDbok3HJS3+ua3mimWr83Qn0qhqe+jVd4CDspH6/ykXAiTCC1QpjI/uqHxkqMgFgPJMZgDLocV3qKL+p5AxQf8A4nWr1BcLckOxh2dZzUNB8/ME0/6I23wNfrYSzRIsNLqcX6KLGIOswhQASqWg21b2Wv+RsmxcG/vx9djrsGspT4Qq/fvu0uX61e+gXDRTjh9A/vdOtmZyjWrxFMDWoTYfRY+KKJE8tA0P4Qv2QjMxBiuGcjCOG74gKCXeAb7SropYJvEcxp5QwLXzimj9wL30MxuhfF457OWLyFMPNTOpFpyBnzC8/zRjNVsVsmYlezRbDIMTCRLqMWqLpi8rlGZic6D6IdFU52SgVZi5COSkRe+ODTNzGJ14KUM8S3Xq53s7U8i1waVdSWxO4pC3igc/AFW4aLem5mvkHrV6fU8gutt+BKSu5/H6344iVuyInPmmK8vJQFppaG9JZWBAhDLR0lxvgHUgiXykWoC9xoqJ5I+OWIvGcX3znG7N5R7uHRfBHOl3xeBi2ml9Mt5Xx5ANH1CNb+fZMfxTHRpM7RQxS0g6MPNGWGXopGULzmC8j7kSNRFCcjLUzFWIZeHJDOUP/IkM52gRey6p55EtnmP8hg8QJttB1m0/iyZtGGY0NaX8hN3b673S9/9BDg5rnxSxA2weuk0k4CfPk4udT+3eeEBwyXGoCZ0ZVMcFmIKnlPd1crOPvup8wS6JK2ghWh71i5ROiQBe7i0YNPANwR8zxzzdIMqQAuQRKGbwFXrYguJc9xoSiOyUa6PkpCEpVkpgVQg4KkZqoUe/U/gUnhQ8P6DsAZyj7IaoiiWupxvHnf270gS5AcLd9zYL6gbTmxeYknd68eoBm6O0ojzA7WnZtDS0MUVbuHc8EqiWKYNTZ42mIMtUxJb+siQBiOiR2Ec45TG5ikIoYPGnGAmZay7Tt+vYBehdp+49B/eHYy6ZbzE925BcLIS8cOJso9kNbeJL7FpHqP6UC3xEwhVOrlOroC4ELhKUJeVg/KA+8feoMStTYvtcU3FSOeIR46WBXAKPjNHVzzW1ItN7CSoCTCAJybV00ga4bXSxKp+AXc7rqI6fRXGCaU0ko1wCWQBtJqfP8NRQTH+kU0InXHeZV3dLuyu7nSmOz6tC6G/HpSokEx6BJyEJ0jbI3OMLNXHd8s6KTItVIIc4YM03rRUj1oAPzSfL74v9Je1R2b8Ysozq1KCXIN3MSWATEYuQJYyaEBL2GFZpxSWcNfhYOg39QOht630EpyopguGS8JQUtSqISVtZ2ZwQu0enzm9OqKWKXWya66qrPLIRJhb2GEyxeLXZFMabYwhqIQ/g6sllrBUVUGBBMnE58/+AeDFYKD3yxpHwhOOAfh+6y+ffYPZN1vIQ7j92mW8jO0DvVADGxDWQcEqVgHTQRiCmiJ6NBKokSYYBKu7+reLSfN9gny5GYCv5CrxqDz/QSIET4i1zCNAc18//oPu5tRIDkZ9r7iKPQtC5S6kbsuD2GtbLAV0ksZYiGMAuFXjjAtbcRquRDAz+qE5dtRRHBnD36FLsGQE/TSuWWb2+1b103DRBS+/47iwzpKJP4WpA/V+3ofr22eBZWI4Um9593mcldBrbXgNvo2Gc6AZpfhSUsLTHn3Lk2EhrcQDLtD3agQyAgGWIleErjcudEJZe9RcDmHrKUiOHSGBTaGIdgAJu1YvE6MyZSo/SIARjEBbrgI8Uu+mrr7RUUxc0NuQzC7F+/LxChBLCFpROzgTo8dZlMq/Hbg+wkEwGkikzqKQqpXLSnFTw1E6RC++a/QNA3e1qE3nKpGpyqQ+nkpIE54tySBkt4d66sevkHowiYsv+UFMA2CmVqZd/iLuXPZjaQIoqg/Y3Ze9cJ/USvWXrhpY6nVYBYseAkWSBa/wsdy4kZcrlLJWLzFrYxHRma5QXOIySoz434hYXJ19p2cIwTATv+d3iuMm90huPnFW0nFLu5KsBe5kuFFATdTcMXf//jzfUH84UPBi0nVhuG4Qf7xpXFdH99uYfYJg1isvl9BDp6QS1aovmIS0fwSmHXj7QMET27/ke78ELQw2jUUOl1Qho1EVu6dLfLMlHTme4yuFh17ITdrJbxi7bvwBc7ARj454MZwTHEBF60vf4G3O285AIZjMRyA8RaUMsXLRY0z+DIK2faXMhC+COHz/PhKjhGWSQ6/Na45QdB+ZYa4vJ/mVhW6OQd/YNCM/UDXPH/oNnwStJ9qrK2XisvFMNZ6YfJb630adofbi9vwhenBO+DjfAHl/6L7BmCA+KyY6MydjYA3XJNr2ivA9EVIjcgX94XL8Un94d4sP2Rnpyz/KMKXD8ct6Nob4eitHUGRXgy56Dd+8dA7R99nrlIw/kVH4VD73UpusUsrFr44CXCh9wK+PLtdyJAOwUJWoQA2uvFqwleuVWLWQQSnC5PJCuB7nx3uMRGMCl/SD+gcZsPw5HVU8Jm30hf5arrCF9cQ22FN8SN2wUqPjBXfmiXb1xTs12TfuJXuIKIHJEEGgRSu8GJGRUNNLpS6aqbYKaqosuqtTEIbBXZX1JSY/yTsWNUOf5rurLImjN5ubKOcd7vlOuwIo+9bIPuMcWqAWSJH32fI5eq46pfuv3r7sItHtwo4NIdfPFJ2kb45VxvuH9/jg7C7cD/Cnb8Wv/j5+z8YJE0vk7Ard/r2dJIJ4QwQjgTvvFYD4m8hEqXh4su5wgyAyz1RfnwCYkyofoqj/76E4ctvCb1XeoThA3xh69ONwNBLnh0dmOK8Lfc4kix7lDfAgWCVCJOMjDiMlgmwueIMwyuqqJTccolrtnh/1rPDK8kCb5LuvG/lvmdgI71uEL7PwIrjAmFODRIIkxW6q9yInwQwB+D03aiarsjlPQQ5V94Bk1z6f4SA4HkJHIll0yx/hWX14kYXATPEVm5+yzmcvoZfhjRv1BR1jMAkvR0G4lNgLUiFcM9mUGRIlYKuGjFx6b6OnBxI5OsJrg4UwDUAB05EWq6kzAqWkvPeM05RnoC8ig/A7yrAZPqnb9vg/1v6AVIjeNWI0nCJeX5rXGm9zxVgFi7VfVH6rpMbzM45wrAmC7yIaGRx2EyY1l+SQFQLPn9DDLolZVclYMu4lohmmAGs0qmN6XYATlrw3lPhWe4effhQgwuYHyCU9w6fEqS8I6NgfiX6rcYL/lWnBeTuG7vI0XZxx3FwdhgFtoFPianMgslUEjHRhZRoYEnzOQZ45WHP94rTFPaN+/5/Ul8m5j0DjqHsDd+xhB+B7Vs5wSxw355N7aYnEL79ZG43fjVGv8hHHIEvjHO5eorrky/Sm+CKhEgcD8Ow6+TrKM9xCvReLtQCWWeiuOy+SO7T7/1ljgvCtF1VCE9VUy7pvMtFMhPLp17ze4jqA4bFdDgkbErNXdkK1L5Qh32X907hzs/uEXOVqmaLggy+N04tN3iHV3ozWm/ohdayd5RbsiqpoqCEAbJDL7zKmDPDorc5OzwXwzV03G23CVRxYyu5Qy2+YmUojRdpUtzK8gfEpIFYNF+vQvnq5ziCDsFgW6MiwT1Y0S1YGQkKxj/aTv1STY2YBgzJwhPX+IhhzTXRNAS7B6MkktEF42JZr37xVQ1njHZpoMgxPpzKdtqzmIKubLvb2RUfycg1upSFcKhtM8KivS+NDWO8k+yQeUuWl3tcQUAqZ2gRtL5Vqr47Lindt8awq/Cxo+/ednN4cILErEaBizGIVPxnHBVMcHrxVQOp/UK0+m734CSCORh7YCedjOdZLvoRbiFZVgD/+PAoBui/1uMMLo4SqU7XnQiolNRyfWoA2Hlmkw4V2R3i3u2+hjy7nWdf0llJIberCsCma0FQw5Q4J0hdTZ9duXVfzE2KTlxG5jjsdtE7uqTZCj5u9H2iZZIx2m2LKGIRZwUZSv9lbCcHd97b78GLydXwIfiCy5sHeTA+9yECRG1WI3ytaJD9lycE3LrIGOhEjkvrPUGwHuSguRiuC+UgQRDC5yZWHisXjMehXlHqqbBFima4EkLjzIuHndV9kvleTiFUB2O8k5Br3fkXvZwyri+wTeFX2+QDTaNmCaHRmkSDeRhsgleplq+1yzf7Y0Mso0zodg6rgZaLugbuJmix2xPhJng3BWVAxUaFsYIrFwSrenTrsy+qSn72nwl2661IxmD1GvkQrCBRKVi7/ZIXtKiRJYBrOYbgJdzz9mxHxrAaXMFJ5eXTbrm7KF8aYzyZ/+dfFv6SPv/721i7Wx59nOs339/rbV5ntRwTLJqvM+suKGhBS4S3zrQc2AldilzYxU2+wVkTuzIscPu0iw3AqNxNCfAqJ95uGKOuEEsY/1X4NbTRzC5cffw947nwBL4Fd9l7r2AG2ya4ACYn4JmufVihpCIMC2Oxi5+zMAifCEo74jg+7PhyDcPGM4bC8Hb+JRzHQf5yAPFH6F3L++o/pjtBiXKCJLqkxEWp6FuwGUPLboJIxTTZ+ZOfJLWEsG8f+Ut2wATrtFn8GzY91wC3ilw564Y0h9mCFF/6jmuV0fVQw11VLQmvrP90mF86DL1UiAykFHILW64m2O0Xtr9OD+6LgcmL3poonJj5EFxvHcpjmpyw886usLUhd2B3X8N7CbmJhwYGxehdHB//MsuPfxjgaV1CAT/z5lrxrZO0TMNuZS/e9HIfrkfHoKzEs1Bf/llRw8uamPjnDpvg9U2xX+9WRDUXt7aSwrTdp/KCt1JsP/V+DGRYlaLi94K3SM3rxCi6toNc4UwCpQVzAAZm03vCUKMrE8HYHCbAtjQRhA9ztDI859vKoxeu9dxr47IOdWBFH6KjiFVn79G7J7g/wfudf9MVxXjPVJdLsTLvdylmnwq7K8NFzzmnLp+zrX1M4jlbzGhaLI5QPrUB100Xx/jpJ/InlbACF6JXTD/SghWXd2atkMtDXENLSoii63giuOrwEGgxK6XUT6Asbq9YyboXxDUa4qsgs23PacRdYfnY60d7xZ3VaM4ogS4TKeW4de09ivOZdxsrmsMEieFyxdkEVbCUqVDFe8l+2cQ1W5WkqDARU73nnkpZ9+eJWfulgDRB9NnnGxLBIrYPDjXbn9YEqc3YutyVYNuhMrD1SaFE6iQCVDOrOehScrEtyJrZh0q8cGqPqgEriloOwSZZ/fihMQuzCu/qBeP3kkqOSmX4IwyrGogImuW7HqoFWyubyiuRlIR6FLc3ct2aDmwGBERnnjmTyHRtSs3rcrk1a0vFoDvbvkA+3TGZ3SKjeoPb8koJFG9DLhXpaS6NJzskerHAmqc1/kRCT2dFVXXcGdWJBayRHX4xpcQ030n8AgJD5CY4ehDGGMmJDM8gnYhEa3Q/KB+DlmSy/qAuYpXvU+COsipgOvpub99Q2AuWQbuuiguvXg/58ikZ6TY718sB8LsKHP9v6Tms2y4RwwMrDi+7aQfEDqmh2BOJ6Fx/94E4ZeiHoGEM6orThC8vja8khLkG25EKE3FCtx/ZOoPfwpbUfXhpxKK3MgLccp2YAG/nw/Au/5JjKBn6ExxDr3SB3EtNmtWhuOwY4NJbw6Rkbomp+ktkmuaseVjOznzOFO7+NqbfvcfUv/+fQ06503zJRLNFxjnBBTXb8sTBVmM/8wKvsMUhnKL4BVPNcUykCpGg5bKUUT4IkX7637w2i84Jhrr4ZZwYyk6CF5EMvSxZdGPZJx+n8lhSTAE/M0+5XiiuSi+XDrlPFaKuUdzL3lw+KCd3CNRRdjnehSYyufYz6X7m9cZDYX9QIrdLrQxlzZqaMdeC6et7szWE+qNXcnHqsfiuwCyOMOama15JsJ7vSvt9cs9F6rU+8L7ojQMh4FJhktOCwcVWHX54OyZePzl/YmYR80kjfzMOULE+ApPCcpXgtymWtXZ+w2VmCWExZdFm8S+IX1DfdPiuVFRiYGbOWx2VvK9DGzPJAgBbNw/xYEBugQUUeou33Ux6VPvNvbe4MRJydzNboPUyQ/OcX3HcEKhV5/IyXtl8E4Jd6bgVTS2piUWTYZHbrz0OdotbnXzzsNbgyqC1Jtiqc7uzIbbfdW1DEPsJ2MozlD9cHz65fv3wkJMwgyLwPpzEMuyKZJotiWWQ3+fhkGu6wodxI7Y5sZioGPTw0c5/oFtmKYXwlJ1ky7Jn3XqnX2yT0SkkvJJ5QUgIm3Y1FHrjM6O3YuWEEgl61d1oZj19YlWovr5WsmgQZ3N3UJzvTvBXfW3C02Ob2zRcOQZy0oskELqjW7ySFKh9yuWS1IcF7rnALYNoIle4negDhGzX1QOtCeQWx4hkFfCexDB9lyhQHyAXt+vh4QgCS2tMgnAtL1S6UKuNUYgbkgO8qY9LC5a6MEtyxjPqYj45UjkfOsa4u42eHJy+vgadZI5ebkhS37e+NklRvsTczw7iq0vZkNifwaZXBWyq2HaTlwWqvPUqTJdeK0JJmleKRE360ICRMF8ODOm9ghZrl1wrAXbRwi0Bj6b/WqSOgreohdZpwq3pvEY46fVX6s5eR6oYhsL7MhTzFqlST8GwEtI0NBTw/jWfj310FF3xDxL4Jvax4wRW9yMMKwHHvWoiNH/Yrs1m1SRdWwOxSwHP1DJdnjPs31lOzjipzZZsM8CxvPthgmg76SnosjSLbokFskFZSKdJ8E6aUqZ9qMdrZo+ytiCPBlmbP9oWpB+g0n8os4rBZ3kcCwi86GXwCM4BNKx2ZfD1DcywrYmfm1fGZyZRLG90j3aYgLX6JM+sAaVCmkEqX+gGY12/JiA37usFz58xjghPKcmXFn+KV4ylXJOMBecUyKNtPgQ/TqWXIBZyKz1RVXmipM2EucVZ2HSXa1Bk1ZilEMiFnoS3oPQchB+MJ+vr9b2eRNj1vIvM0+4BmGGSE8UpYQ21Te5gvAZWlSW0Sn0Z36eU8BzxObRWPo/SuXk15jvAaKE8BsTMfrBWsudxgdmQv2zZH4ajQ2kPHsMd1rAWJ8SJ3h8RYNNnmR/r5fhjeZHifBZwrbyMRRE+WsYo+ih7Kj5OPicGx0o08gmVxGVK2kZIl463ox4TeYDbiWb+T1Q5pwxbf6jF2U9NySpQ369VcC6xWtaePEbxObGWePZez8fa+2HTfduYPjbLz5qVMm4DLU6qw4ZXSQKrHcCVaEeO7fXHzaQGpAtSF0s52gSf/oRcMdu+e/BLYDnInPd+sYDTSLLZBWlnWZGJu1RiQXBOo23a03xuc6ddx/fygra9WT0NJvP93HBLgm+jZYQH6OL6CobKMfEZg+7icq1QatGMLuZGKZx2K2yL3BuBCKakeCqFrJhGatQS9qay/tTrUM/37tsdmVqKpz2+BbU3Of/92/1X7OXje719ocBrxOfiGiJVOqGGguTQQFAXyDRNJWcbotI6qBdnQWVFNnU/TbQIQDnqejrzaVJ9Nk4hTDK1HWWGs+pb1QqrKCc+De7xOfdqsIq72nykDb4Wu65WHANtq+rUh2CgxCQjNvg6B2YVjXCMnLX1o7YZR0zBHZT+fXupV+v7qLhE9MxnQhHnsoQj294ys3og4/qphZYbs0mHBbZD9Arucp6HjyLopINc0WrrZCCtxLdpgPW8YsvUmgbOnx1KPTW3GG5mzW8L8doz1D6tGYVpcWyMLaiONqYKcgwKUvif4Bc8GSMrk9DT2f8A7wB85+m3bjrugYSlUMvCvRhBUO+8dr6qRFal8iKISgUd3ztQ08TUDjpVDJc69FW+qggdiXRXV31eYFYSE6fz+Mpts3oc6GJVMqGtBbQxVdZBHymci1j5EoJRWjmFjRLaGxOz+JHSilkQxcywS8gniKGVySPzfXyB7uTQeCblMboIZLufpPdH2v/agS+vRYh5JMgp8pAQyklqvs66HHm2XPXh2Yg3vMplBK/cXXCOSWlSB+0WWaBC6HaS2QalaxW6S+VaWAT9NfA7/CEeiwTwSImrAV5mMzDTtlhdSIke7cjlAbeH6d1MNG4qIRcUEVbIGjflm1wZTjlGEaN2a3ZHlGyOnyIYnZcvE4pJrVJTNunGiOMY3+UqSbJrZTuLzJJVxP5BtHPkC6966Urqf54YW7zr1zvJgEDD/L7LEjg8mPSCMjxRo0lCOxELoNhABVkmSZ2jxD+PL0I0Z1UByWIjNoSvOpCEKhpZXfTrSEy5JBX/HHQI7Daw+pIYC8GkJGZxq1BlCEfyKuBkSCf4jVWykVV6qqyX3JtXJ1s24N1GyjHIh15BAqFitqH1VdxOawj2EGCVKpoIrOyCYSJTnUkCS/OnKUVUVeEC4lArEfBjGwswOTdHX8GMPAG+5olZ8hnn/pTTAsC8wmFB4T1qLd50JcoJIIaiD4HHYXr32twtMvFLcxO7eje6OH8AmRhiNrytmfPDTSrglKBFWQPLLx02Drg0qav22kp1Bw1LJ/hYrK9QprCb0HqcijwbIkHUTXvuMsqVmOkCTsHwWtDsyq3RvhVdoMpDRpFYgwXNEdsKR3c+PYAx8O43+XjxRMM3afNMMUCGAzlD+rWr12B4u7+GtCqxN9P+io1+nM7yBm/1oyxUZjezlavX3xq8KwwDMK5RWQ2MUiGgt32XzrIwGN7vCGuaUW4b8qSnY80WRXc4LtBkhdbZh6kbp6Q59GHepQqbCa17WLGNSaQpZmR5xKecCrvqYtNv6FneBalFkTWU/KqKLSr3b+H2hV1zyc0bhoGwL+OFbuHVf4Muef9rdP4hBx8EIUWAtIsUoW0+RtSD0Fh1moivYaZSZEPXyL2A35SNkEI+2B2jtqyAbfeTFyqtBoaQac2NKEDjhkpLhvvZG6G1V3UswHawZMjmNZFQjQFcKmT818VfsD7NPu1ns6cNNNDduDFY3T/mNPGc5BT15mtyxgrhpMKzvtxRid1j6OdBDDcHFU5iKJoOzxgkHwMysLZshq7WSFVl0028kDeCO82IyZcGoLjVHDYKAXEOubG3zd4CAjwsQAiID4za/Pqk/uSto/7gURQLdtRvf+39GfIUevreZ2J9YfYlz1spoLfcxueLw/ChPVv+zYEukR6CuILFEpBm50WGAhsQ/s0bUmbSJqI7dGLQmgO1fj0l/bYyKstaj1w+WotgDRZrXePVTtM48RJvObgrTM+3wUf8xeAS6r6D9u8vzv12iF0ObEijnQLCRUmHAcn+RP1nTmQbFJKTyUIjxxrwpa/X/EWqv/usqhoSFcwB7/kjU/0otjxySr5UKRiacLi9nC5FWn6xKtX06lmrRPR35rBMae5cXlcvQlgJUUMJf7nhaU4qu1sU9CjvpIZnelukYgAISmIIuEYn3I+eNcdsyWEcIdDGadaVTrYneaWgqTUNJq5UUINhnEfM0MyYSy4COwGgY0aB3czRyFH/3IY+rp+6I84gsTWDz1ooJ+Mwy9Wm95f/k/RWvfljN/vP5j1ta6CdCXvbRLS5d3G0+RYpM3N6zJVopILLTX8esuYoXG5p5iSZWouDaw5G6l+swIOwK1KCVraz9h1VXHYmhE+wvIexUdjj2W7M7NPVN7AwX+F4FtSX3Wi23MqGUw8mQHrn+2HI7gT5EkNn6qfprD+pR/3AiZyccF8p65qlXsKYsxtivdvty4ltk9XHPkvi72uKlfCB7oFjGWh7zQaLCjZrHRa4KetMbWhJFg3OpLJpeez+qf59szhJ9vqTlxlw/dxSwNaVCqvnLOoX+93AJvk2Vf3kDI4664d94DAzLj41B5ON9/X611F/Vmez7z+DE5HEfrDSa3vt9gLJAgvKKMzlh1r33hsVBmBOyBMHJtNtvMQkh5ntSqg7FnEiwN+rf322/vXJ+q3O+k1iBt/ql4LD27PJt65f+iAwEC7+WfOZj4fFtMIlOATskHMq5ANqf5BDxk/937v+y6/zIaBfkvvrQ73WP5Z7zH9W/31C/2X9FxPwIy8QHq2AtP1huXQ5cQwT/0noRCo4Lr4TyQaN/an/e9d/3ftyUz1IYDV0rtUk3knHvc81E4HgbbCECXX5ztBpvEHoP2lMrwtNJU6k40/9v9mpl6RKQiAKwyyDGYMOB73/DTZWcfwGeaM02okYpFokycnHT93r3vztg9uAlyG5opn2LenTcpZeSYp8ORlB+fsvc6bDMvnKz1XCqpYlrLbTYIQl2YnmJg7/3vzt3RVbpLBTV1cCICSmcVKEZs0h4oRclaf4tSAJbEzEPS6cazM+6o3Dvzd/m97iYQLVNI9w/HUh8vnXyRAec/9cepQJSmH1avpz6oVNdPj35m8vWzKx8bLVkFJ78IpVxZPmWZshYmU7SMp0h39v/lakj1C2kByzilRL8FKxxGNEdnzL+CoEO/x787c5h52h1LuOr9tJoDQoUxLeidMdKa7US2kdNa7jQTLmhkScG4E3rM50Dv/e/G1xzEcKCCg40jKqYEnJmolzaeSZMxptr1OXBxvdSHd6oLD0zEDEeg0Xcvj35m9mWgPrMx++4PLDPI0oa6jVgp2s66lF5jWiUu8+1NtynuPI6VYhtEZfHb2Kw783fwv8ZSubMIs/isunybEt0qRI0ET2aq9dFBquDqlMhz2FvFESJd7S9fDvzd+GUj7qQj0ba/67J+K0X/l3Sl8n/eqbCHVO589M+TjoPcL0+fBUcCt9+e41iwJiEhU9/Hvzt8GY5p3Xx3ooUkwjAFMakkRV6MGYvwwMs+Hal2kI6RnF4d+bv2kUp9u/qEvWM2gViZTqFtGqLDeH5vG6xHgcJnT49+ZvpPGwZVAzRziN9PX8D10dFTInovZmlW0pZaLKXkF2+PfmbxJ6jopJ6uD0cTmFlZ5Ydr+Vuevu1PZWykKinbvWfhVRcAblyzv8e/M3LZPkqWKa3LpCJTlrn7Z2Pc2ySEVmvZtJUmbGQID28qK0JpbJ8xINcvj35m+jryaZRZnEPa4lxdzg9F1hJk4EVr5EyS686AB6P7dEy1UdZxgkQ8to0Nfu8O/N36aDPNxLA6XL6muB13OKitCXVMnccfLUC0vyYHVjgxYyX3g6MNu8AN/nw783f+uhiWPLt3UzcXMZidZS9gRMaBj/ciSX/klwKuqd2nBiiR3+vfmbsOVzG4+7L5th/tPGt/WHf2/+1o8d29h+wAf4z6eK39DyRw3zi/jbV4tQWZ+VnGf951jfLqYC78+9O/z/2Ct/3SaCIIzvS0SiAFEgaK+zRIeuoMFFaFzT+gl4O97C7RVxgeTOsiwrkhUxXu+nn46B9WQTRZzw+Hy78//7ZgyZNv/0B3j6ElruwJKREEJxjFK4jsb4rqQQVXCSIlWgAOOAEj2+e4MaXvlPm3/SHWMuC2oIKfMk2MkEqk5d1RKYSrUPpInObyBjMPltE+I2Bq3izBOUFLf3lf+0+adiz7iAJn5nM4PApSNfFH52CnlJ/D2cYLWGjwAIIW6tQzHiqjXgLURlVIzs+QTYlf+0+adi4EFAUzSmw0WgyVAH0EOzKBorrQgCIV5quC1IQSOIQdFAcBV/5T9t/km1x3BJJg1Bp7A/6wLvSnmdAYebMYIXofOV/6T5JzwYCcdVQ9WJu+PrRdPqMIUF5t4mO5NBUH3ilf+0+ad6dGdP7vaqnPXaY961qu1yYT4dN6JMO+ldPfnKf4L8ExXz28Hvok2J8eWoA4Qqpa7ehAYUBPJ50B0WgjrX+cp/2vwT4QyAE0i4sl4+uAnppPHiHCUIB7mAkM/ho5Wa5YdaZJHTYy9O7i/In/h/jj/XRv6kvCj/VE7LUKbdGQxspeKx0Pwq6fmjkwFncXBLU3WiHFOAUScEildwrgA3VaKVoumI/SxX/s/M3+Ql+adsLTn0Jvx8gqSMTD6hBqCpUFUnBlQU+Kqwqp9TYUa4sFBSiJXPugjASYJGShDD/s/5T23/Sf0VOi4MdVSVR6A+HhOexcPd8bhfDT9MhtVut707LEb5ZFUEBkRCBTOBrI+hsXESPL7N4jn540dkDPCvzO+p/J++/8r8wvzb95+wjArR0QvNYI/mZHl3NGJehuPd0pflhrjR+jh2hNWvoceHfP87vu/t/InmgEif36Q5/jF8y+fg377/hvlV+cf3j6QR2r4jA7J1Oef9LXqzzeRW28PnLx9nP29Mfs6+fv182K6y/bjx9bgJ1/NIX35vpxN86xA+LwH+WP0fe4ycxDTOL84fadt/HF8T//j+E+x6xwlLZDpeFvdrI7E/zGfGy8nsy8M+c1zUfh0ZWH4CHaN77BvwhfmD3f2GC493kUJxfLct/JH2/d8G59fAP7z/VBQLrJXUQyEvfc9xCt3sTuyWX28q8vFgHIfjxhLcENEj0gdDoV7wvb6Az/6HOW5c8QD/6m6c2/E3fENsfoYvzh+EUhv2z/zC+Or82/efmLzv0ENVJwyU5wej8Q+rw5ubi/L6YRiG3cb3L5reNAitiiK9W4XZCr7XYXzCEOGP3gPBr4irtzTgi/LvhUvSsP8WfHX+rftPpgoVmb3y2QCVOGRX4WIVvW8/b0Iye2/Ru0/UBCUATg8o7IqXtvxkmLbga3X2NOG7jfPnbaIQxgl4/GQzv+Xj5vcY/vRv2H8bvtsA/4b9p+KjVt8rXpTpYUJEvpWU0r6ob+/5ecTkRHF7W1aQRQCybd5hZglnVQKaLFqYHPLbtxXfpyh/WuvbAwZwFFDB87UZX4S/dMFq2H8zvij/+P7zD3h+NtthYsfcFHEW7hxTIiiVQ+enC26TzX4YoBeT2WEY9g/CYcWAbBDMKIBCJJcAuXNeAimjownfJuML8EfMpQXhA4YGq0M1G+e3Nnwx/qPODftv3+8l/g37TygwyMdcWXMfgsVn2j/P9fYD0MMUd+v1/au+dB9V58LJG/HxwNdSDd+6Hd/bC/w5cHXlNoeZS0Z5Or46f9fzcft/Kr5L/B+9/1+sljFqHEEQRecSA84cCAw+gB0K4QYJfAAFinQLn7QzRTuBQKlYlBk33ft4NO0ZZrRVXq26uzxT79evndXUERKw91veMAS9Ncv+7rycv86fiudlOd9ZzDJ2VnRDtj6kIhvBt6F/kwZZq7kgvm394+qg/wF82/qP+l8GmGvWJp0+XHwainbbj7y8/5T58Ic0f3ArnlkgUHuj++YqMtd4GsG3qp+gLsVlEpic2bD+beqHwOOD/l/Pt6qfOOb/VNfcwwya+EJpDeGk7doB19fUaVn+vs6fjte3ZTlxO97tY9VEOUSSAUmP2ikK6j6Cb0O/1sjvUPMLWK2oqSi+Lf3jn1i7/Q/j29BfF8f8n3p1wHbjqlxFWtgydX6f56viEYVIsVqlsf8yoECi4Zvvkg7kG/XLAuswHK2pCFElkIXvMYJv1G9peWvs9j+uf+v6iQP+T0ir+RpcjRIagCS8UFnLlv7n/Hu+Mh6cELtPUev7GOSoEgipKV5b+n89X15Oa/rpMKR2GzIUKYLHT+OL6d+afj/iFt7vP/0L4FvRz9f7Ef/rALe72FnYHQU/NNRiidI6v+fb+er4ds5FIUFJmkl1zkzXRPdYVFE036jf7nOuI37UZEpQcl5+BfKN+nW0b+wB/+P4/q/fggf8n+o6cZGRPHcxRsLL2v8fUEZMiOhqAucXxVM5Kz/rwXClWL5RP4v1PiWMaq+699kTzDfq11US4O7yP5Rv1C8ssc//yd6OYcJFQlp7d3fKGX1Xxm3Op6Tr1NniSyvn8KYUztfrt3CiZFmWnxEJqC4ZzTfq76pr527/o/mEEFPO3f5PXsHFyaza7EIyUV+Xm7/l/DAHxUPObxAhAToGo9Zl5cu2cH4hjuZTP4SOSqKuCsB1IHSocobzqV8X5QU27fU/mq/XbyGWe/2fmpSEHLKs8IEyjIm79p+/v+SnOSye8ss981h/40Tb0fnLoZ7A6YK5uQ/luyt86i/vdqIbBFJy0Gltafn4/vV1ffKCBsg+/+/P0Xyd/voi2m6P/2U9yawJzmiXManGy52+vL/8mQPjI7/fJMOCdLU/7baa5qfuJprvpfCp32r1zKDT/uO8Iy/9y+F8jiAricBgPAaX9b/xxffviyV9HnYUm/4TUxoDOf94K5+WNoIwjOdL5FxQPHjqqfeC0IX3WjwWvMZ+AQ899t5Dv0ERvBi8CGoSSeLfYKBUb2lnSRq0QYq2SaXV1kMnO/vwsoy7+27cyRNdd2bB/c3zPDMh/XlgngesvrofFHPU4F71o/DoRwSJglkK5u3qkGs+2zVCHPgEfGydgY10KFiDez68DcVMlAFnWId8IAIVsUvp+ZsTGIoWQ7c3rtu2/ig1U8xVM79UyapGEgzvXtNn88cdnw++WCYKjgB4TmZiYcr+2T2QC7BT8w/7HUrKHyokw2O9yTWe99XzYs56q/xZG0oq93yz4IuVnYTeVHF8iw78e5ruDInY56aS72S0BcmKKKU/d+q+mLv6qv8QCcmWSVPnsyEIdxRjMEinwoe3JYummW8akST/QmRluI36TvbyiIgn5/EFk6ueKXzJQESEa/h6M8E0Nub4d84Zn+UZ2YHwFBl4C9UdH6zi7YQxwTxB/m74Xgb+kd0vZiZB/gWr1ESoBO4XMMAqww/+21CVig70Qg2Z3FpLCETBxdyDDsxk5IpvUfMRwXNmABL8jibAiwGtQ/9orKhr7I4ZC/KfiG+n1TxK5UNHcQUkKizIv0AQeDl+dAC+a/FzDqmkhjNFBxr4qoRD1DgKHkyCEVxmkn/Mwyx8RzfnO1n4gAXDCKcwWxYM3/MzeEcUDp36h+gNFrzjNCk1/8n4Po5ao9FGKh+jIGNgIcSU/FFgq60YCzRUb+L34c1NZ6x/ga7Hurys1c4OJCa8UkOCLL9jED3MW3yS+l61q43GNeAy8nkWD/caqeAGkwl8P5ot413nCubBvtrZ2frm5tra35WVldtvEj7bMdwl5w++CfqrdbEh9C8WKj3/Aj1WS/4wFrHV7fV6X09Pj48PD09O2pVKtdrY29vf2mpISjL4rEr0eD4FvjR12mO+xl6lowcyviVy5d+Hi25XexeaB/c03b62r1xeXd3drdfr29vLy7du+UrMJ+9vq9lKajD4fPDxGZBNeRT4zo/doJ9MBuivjsAkoAP4KWnwa3+YZWUeeWI+W98vw4ZowOpvzIr45GhyvlGXNz+7Z7Z/GQXW/dU6z8yXW7690+NDvbWqmqq8ulu/DedbTS1ucDKfFxexJ2l2QWIyy37FE9+P7eIo7gDWAex/kRxx/hPBahIegC9V767bFfCNAdcPijI+iy2RUM5n+svm2Qcw+rtcS+bzQJSC5mX27z/vZtIzQxSF4foTEhIR08LGztZO0IteCBEkNmLDL5BY2drYWoiFdGJhipinIEqbO42OoTq9kfYJTRUibQpxbt16vX376nOvNpxvqKrbQz11zlPnu6rLcymuwJ2XrJX+nt1u5jPFsautqzQ4pr4qnF7/hENe7rnupYAH/Kz3ikReEdhDpASogC3AmQiDN/S+uwAqnB/k06P59HplCFtcHvHZ6RbyrcIPc6MBrtLyR4Hh7+3y9KK/rsCRfPLNNYZe/89K/oQPDXhE4GMtE1CYBut8PhQG9M0EubTfOBT/0MzjZokRFCvrLZjIN6EBX3iRmwIcCRu8oJeN7G20Blg3o4QdqQGeBz4t+jfY4ajItTfBFy4XPotWEa3Ct1YAHosswKfkjg3Ym0BAYC1/q/wm7JRQq7+eP0wgrsBfI/C5VhsGYx6s5K+H3QGIimFFr38y9jokloayIHxPPrRFm+I7M2A24AezZt0yBYgw+F1v/SoT5d5AZRccIjfYuAY+Jbr5bedP9DUoglNM5dtS0lS1ByjL4djMbGJscv7CEwgRBgJrfCgoqeSbA3r99fraBswJhBH4XNsEejAM1vkkAAQ/ebYF6p/YUbyDWaIU5vfY67HN1We9LZPxJsyAH8hDd00HaQQF2dX7ZkEQQEJQCZv1MblLPjWaXx1Dxv5G7+hG8Lkg+MEWmTHKcih84w3Y0jlwFFjlowRcsp6B+qv5G5lAQGDx91iMweRzMEBFAgm1/olj5KSAHdjg76y3VhH415cgDs8yBpsCwGDtbzT3zOMgV4i9I3zqBxf3OcW84PhrHbl8MYJPx+GJxe1w/oy/T/v9/gcTuCBsYqaK3MTFSxBY4SOQt3+Ocz0+f2MTCIk37daxYzS4Uvj9MZ1PD73+ifrKWuitV6p/oX/dgEVgE8fliMMGv+utVAGm4WN0Xwqc0oBNk2vM6HybtbxNzyfn/tdm88DP2PMzzo3GGwis8E0fNT1/N5wrEBJfWleNwL7Be/5yfRlJ9DNrXHLxsbdRExj+Og1YBC7j4vYIg/dlH0NcmjkfM43vA/5Cuw3Y+ZhA4qDyFus0Pj30/JkG7ApMg0ccHgYE3tebgi82f+MTiEbraV8ENuEYLFFE8dW4EhsJnzxND/6crQkJfN27BnxyVrzBR7PPk8hqOnZNvnS+4Y0bXgOGv84kcyaOr+avYRO/4vMnqTMdmP56PZgCT5c/tqJp6zs+gXhyFQLDYEyE3xeFwqe7p9c/4XP5iDvEVd+eLNMu+HuXIOzfZwgcY3CaZe6ZyQ1gugOAi+D76vjrzIDZgMvC6HzEc7kI7Af5NIEdg70WTIFVPt0Hvf56fcsrENd++nv2UlsEbtPgNg1uFiqfrxtPe73+Sc3y+upyjC/FAJ63KOto9nkzYApMg0UPLTrZIuzYfBEIENTYd2inyvd15EOCO1/M+cUG3HgLfyXe6nw1wKHz17wy1MwoKMmq5E9S586BoTDlpcAq3+wSqeJgLfFbqb+aPwlMICDw5cPlHNgz+Ob77ouimMS3EwQlEzkZWv2Tao1PQKYl8Dr7jR+sya9N2TdV4F824MZWPsPqocW3bBvyWqtMwKZlIGZ1CIBcFeLL2YBfLlnSP88GfORBml4MCEw+pBCuwmILiGGkH6PgixWY/TeqA5NvyyoA0U96oNU/VF93AiECX5ppU2Aa/H6YvlhaKHzIEOqGYgNIqX/ChNJLBHSgwlwph19l+7QD/HUDblz6dEpuAzTxNizw3uwV9skTaLwezjNoiPDt1wS+/rMBD5csmZ++uWAb8JGLgzRNFza2xwi8T/hsUFg/l2h11RB0VvInqTMCU1/24OgOTD5W0gYZ1foLnyowJxAScs2xcWuAGQQMNv72uyk7sF9fJocLIJtQ658QGcEBtzB4T8bu79kJVWDvEsT4p6BhgU9k38DBY3DYFHidL+cMuC/+SsxcOXLkzMVlqYnBZRIG+fwgrBIKn6RuVOAprkKQD9UjDqnU+gfqywkEOvCtAQzmP+Xe9wcQWMsf5eISUiv1T2p/Ep+z5UGB/QZ8Cf7GCDzXFYT4irqRfDkvod35kKZLSoUrfdP+4zjCNQ4fDfnT/FFgXoVQOrCev39UX14ChsCHBkPX4NLfZd0lFFjlY+Iii/zHAqs3zvozYDTgeIGXZZ//DR8FLvG+DNORGOxwCf8/n6Qu/irE/+VjB+YEojL4UHfg9uD2zf7ANOBm8Q/4/lzg1500QuDbDw5/+XLv4Z1HF668LWcR8DdG4LTz2u6rroHUp+HL3UvAhwc/9T18KeYUIx85VDadTxf4lx24OWvO6tWrF8+ZF8tHGm5MX9/8zJjAjUHaZQ92/C1i+NQSawLXvccxUFffr9NRb5q1/r40ByUf6sun+LfuPji549OTxm8I/KLTwe7q5sthqBPRow3z5bgJAvd5nRyW+j5oXI47xcjHXXPNJ+VmmE9S50wh/A58YNZqxhyNr04Ij1Spv+XTYljem8FIXyxJ0YPD/Zd8uqdq/RO7lJ86hpzAo3hrrNj1TmdWWOA33YEI/EEO9dDdi4dPf3ry5Mz2oB4MHCD2b4FAAnY8xmGz1Ply/yYIY/BbmeJECEw+UNVHs0XiipdDPADhUwTOmzQYFyE4gSjgrq6w8NWZLsBRBaX+4IuPoigNHg6qC2ha/yWfexJhg2Nq/ZMq9XXKMHao1UPlDyoSKbCdY14fir5PS33L/vv47aXfE7hCsngVKHJOcCYAoCGBX3p3oZUCHzECxxCSjxowxXaIC4stP8AOCHzbEXi8Ae+ZU0o7r5DtciIhMVkQctUhAi1W6i98UxpcfgJX+btY8bfko2isMMfqav2TKqtAh6jl7xV1RA2LkcMNC6xegogXmASAcFFcPVitoMD+TRClwJGE5LP7Rl4RpEYZ6Hj1WJTA/oU0+FucKxvd1Vbbbk8SxAVBtQGt1D9Q36JV3ulpphGH8lt3j1/sGoMHZuBpSz4/zu/elcEZ1V/h8+oKWTGu1T/BaPnNoLwMvhYREnjSJYjGrZlP8QKrXMTxIyTw+F1ojekEXlFx1WLAeBh6B5bUuQJT38rfeXuOta3AEu0mDPb5QKdR+fWPqO9TuVvL3pGGyxHDWcU58/nrly/51/zhkytvj8i/J57E1peMjm9q/ZNfDNqCmK+Q0q/1Sb7fgCt/zatmYv8R97quhwKp870c+586EJj+klDlw4795fT5k1M/n3QdeM8P1s5k5YkgisJ5CRduXPgUPoBCQwQXLhVBHBBXgi4UBEXduBAXPoAiQRcqgogaB/THOKEGB7BbsojCHwdMjIhIQERPVfXxpKz07Thck+6q6jb91b0ntyuV7vxLnFjb8UWLJzUOTvnKiM5AMONfE99X/qa4X18oh+v2Fp8+hX6fP3/3Avq93IKsW3PEV2rTmmUzFTREb/RMhbiaDzsWXFUCHvmtb+acRsv9EWPno44Hy+ouV+Qzp4HeJ5exewG3/kjAnWEuL+kZwyYLvzL58NZPMjAF7LXajq+6xU+RoXUmn1yGJ6XMNiP+5DMul70XJWAv4C9P3Wf3dw+Dfm+gtULA4iND4qHAasWfGZj7spLmErwCS2rMhz0LLiTgh73eVzeJ9ujZpQKnZ3+iWdbFuOjBPAL+OvzO45OQWGwjT+yGer73nELTVWhBwJKuCG2+aQ2LSalM7tWuNt9DQ8AuAR8tv6l9ee+b1y/+oXnpbL6VDJ+CT6ca8a+Nb5KAvYChXx936Pecl3WrJr7pyZ4i48OIf2NK46EtbCq7SYmEWukIvcD34aIFFxLw6IPX78frZ3e/CBcpwiv3u7yasl7A6lDAUPcUFq20ruN7nyRgJ+DlfyxguU1McZ4jOIvkNPgggWQWguZSbXmpQRcX1PC2h/Non8XH3CtGGDmN+NfGN07AFHBoDLcaobVewHEqIqTibMa/oU1YqAhzJb55JWRf4g7bhqdsATuJPF/84BPw9YuTwp2eg4A/L4yh4HoBXxhuCIcjO91MP/NJTBJjCb4LloCT+4iCgLenArb5qEt5p2xhncIJgPL1hHyGgDUNTBtPJeCFW7fPUcBKwYn/qExKQFRm/C3/wZSA3VCBAnb6hVvV2qqJr+RGT5IhgJrxb8jLZUlv12RT+fqyjcMHFlzVVRCYbbkvBdsCfjDcKHl4i9+XUu2vuna0+d5rCq3kuzHqLP9wMxWwzceTE73EhZypM9h0HjD9hzfX+4ohBHS6rF1m4AXkOT/l6hTcloBjPgHACMoWI/7ks+5K5hU9kYARc7W2auLLMPLI8iFBjPg3fvWj+VuJu6vIVql753CHBRdNQUi/EPBdCJgKtgW8Y7hLoxmgkUIoJZCoZTbf0/RG5HMP3uQ3Jz86WWdxUor3QSeDLiw+aqBJlEDq6r5CUpXZtHO4ofpicQh49iyEnwGmgHH67vLOySfYMpNPp1G5knBW/B2fYUrAUCoF/DK609MQsPiIQWPVocCJZvwbLGvd5G6hkipZO+8f5hZcxXXAFPDA3at6ukbA+XD1ysSIIsK4W0FKdXzPZt7I+amTBesU27fffKBvaqv49tOxolJRNcEKnXyGgGnxEPiuE/CXO1ehnnCefu8EvCABR3ypCcaIf2184wRMAetW+/Jc1rLju1c8JIg5zfg37J2NvvunPY/GBEyBBP1KwF7Bk081syxJl5pcNpsxT2I233sNIPRLELuhju6g//kLRpqTmx+yFV8Gr1/3u5ijMvh09CYLKXTqRIsPnosF7P7FAn7/8BqEEj7+f6KAUz5LEOa22vgyATv9SsBRAq4TcCfPA4Y4WCecGX8JmG0zPU19JC86yb8YdNSvEnAsYOjkLuaDLQEv5pOUnWv1VIuIH3w/jJ+FiKfQPGAry86DC/YKcuhkd/uvvfUhmwq+pqFQbkNJlORsWnxgqxoDU8DfkIDLs/cVZeCETz6qIDTiDz57luni86u3YgGPygSsxtb88RWmanb8Gwo76VWP2ptq8zVf3ZSfmUvALSXgSMD9wXiJaY/yTUmKlQYq8p1sj8n3Jk3AnezJoBSwU/CK/mva3WypwQezRBIkRGwWLP/Bc7d6s4cQSzkG7i4sjjCAwI9OhV9E70LAKR8PGruOsrbjDz5ziIgJptGjCRimBYysUC9g8cVHZFE8dvwb7Bgf9HgUAOxJ4cZJ+HA+sQScJOBEwK9qFDzJD680cgSpsEj7ST4jB1+NfwkCA4gx9Ptt8HIAATsFL7jsO3ACHkgcEd8+ciXuZ0FkMR6Khyr53Mnh2vPn+EbralHgS4EpWwQJP8R9wQCCH+LcRPDSlE8xV/DEZ8cffKaAOx++vLm+ORawblW2BSw+IhAqfoPZ8W+gRTrAkj11lUQY7hGeVHaef6imSxNwKmBbwb28WBn0WYKxl0QiH7eQmdtMPtiba8DTJ7gfWRcC7q7Isq5TcBcK7rezMJBoZ9V8eJaGQiAQYNmgJxVi8V1LfwuYdh06/SXgK1MC5jxwxEc2icITy59m/MFnJaizo4/PNl92bBJwuFX5hohb88QXRgpSkcaMf4Nl+vqXuyl2bcZDfS9fc0tuDGHTBEwBn5SAXw8MfZ3Jd3CoQCwFXy3SrkIV8B2faZ1n0z/Fsza7Pxh8zpx1X8GQ08au0oaAF6iOmI8SoHhZIpR0rEA0CV3N9yb9YwK0lhsEcxoNdQgYxhFE4j+ySJmhzqIZ//VmfDXYlYABzkZTwOJTXFESKpvs+Dccb2CPTPGgKKJak+sD1jmGU2hKwBTw0VLAfuRmnmEO8HhysIzdiVCjIvksCRf6LbQsQwJ+knn70oe1vSiyDCn4MwUc83kEeZsipdOjspZBIRbfx/S3gGmL5TcZT2AfP733AmYCTvkIJ1lEZscffPZt9ZSqBExRmwIWH4Mqrrhsxx8CrrA1yWvFfeSWwjjHVCRgCbjuI9yHvJgNBzrRJFgqkc+20W3PJwEHu9+Hnfwl4PuUR8InLq1jk8ojM/k6X70tptYD3Pi334DkpRApn212/G3/PQ9a3S4bYV5BCbi0c3Z8bauLfyNq14olFvhIwnPc+Jx6UQmY+pWAF47eH/S7dXMQG3A04aRkVkvMZx+oBOxkLzE7nTlblmUv+7Cxq9zlECLh0xFFZ5vBN68tdUixgJ1+BSg+cJkKteMPPmMM0XvsbzNv/bIH/tRRfLo83fipN098DU4z/o0gzDVRqyr1dqx4cbeK76sScCJgXE95ftAf1Jzci4MJFMnYI3agYq+D5LOtt9vz4UNcmYKffB5nyz5DwAMoeNz382gpX34wHJxHFIbMjs6xXHzzm39TRQJuu6bkW4LiRHw4coiqJv7gK8D3n03xPVblLz7q4t+Ywo93deYb/QpL7aQCFluLUfVn/PhLONrbJSfd9cBj6KNt3rJSbPMIMRsjIb34IkzbSSy+WvvQAlmBaTQY/tAvFuMMf+kO9vnzq9nTaKNiW+xQyYGPYHQj91ZwbD5bwZhLo4B5R1HCl6pVRYLY8SfffzXxEUluiuJbF38v4KQ7/oX0n6UPhaXcjucRK8V1FvGHHB74e/umjFu7EIfVwXXFkRKPJCxQoIIL+EQnHRaHyVdrb1puDHEeg/Ngbgpi0C//4mD/brZsBh+PI5/Q31GCC5gExUL9sfxnKxh4/ra48+Ut9hX+E4fDYIwJVRd/8v1fE5/HitIifeitNv4NrB0rLWyBaS1RaENTDf/wFm1DHOetBLyVWM5IKlrVuNZOqs3P18OVRW7w4M0PJKDgIGDoNzP4dFA5na1USsTN+Py9/5ZavwtBPuHweCyzUB///5+CxScsWuyh+vg31hjGnWybI8UZf4v2fnX2XlccngfHcIJb/BFfb9RxF/NAvwsnnSayDBkZ4+AFfLVh8zW1XMU2li3v/oP/Iv1W+U/v75SKrTYh+f6bie9ICmD7LSVuuJ25N4v266xSK0p4/v1b9Amy27jyjO4TyCqzPykuO8Etf5ziftJmNqtRBFEU7tcQwXdpMCCIJfT7iAtXiuADuB+iEf+ycukiycJImyyaSLYiCRLduIoby6o++aYsu6yuqb7O1G9313fuuTOJeuOW4gbfc3zBhXxbUwxp2gK+FOu1GxP5S4AxS/oPX92AD9titAz/G9dRmO6lN6rU6RI27fDhyclpmYYftoA/Tey9s/8EkVGsEE/GXL4bQcVeYxLzkQoGpCzCBpgt+GoFfIkaYDXh/8J8j2DZsuEGmsOV9r+hElWieqCb62m00unDXXg8HJd+Bb+f/AL+ODy+uyUQ9wLRBjieFGat2GakfX4CX7X4ePJC+rf+hMpW0Fjhxloj23THS/BdDi+k33VKmujGtOb4/3yoyoe//Mj0b7ViyvC/sY3KQFUgbXijJkgGj7l5Nnyure9iOHskbv9HAJKp4hEUFSwpqvA7S/EpjZwsB/icUzmocENuWy3EdxcQnSyLOT/D/4X8fSD9MkrOaS3H/0aUPiRSKqlaM05kh7bd+95w9q6uvnfD8FQZJkj8XeMkmbAqJJxVz3l/ET7034VNDPCqiOEkRsJl8od+fkaoZkHJ8H8ZvmfoJ0HBF2SO/82oyOgepTsh8R8V8ny4rPo31f3L4TmHRhwIM8h3a8Zr+5v9eAk+9K+nxmeSdT7wDs/AD94SfMfoH7nWaoPI83+J/EWnRLWa43/jkup8jy+l9woJ7xNrL8+G7zUFfh3OboZnUbB/gxgxsm+YutcSfLcDGIWKRbisMTDxfTcX4UO/H8MBbJ7/q/p8L0OQOIl5/jfUIjJdr4ZwQtkL6uTt2XBR9xc4MIKgAGbFo+p8oX4jsDhpwo20sLwEXzIdsGT4vzCfmeDK879Rkidkyh/GLATP3BmGL7X0fRmGneBkDmVOsIoYTdTX5wv1e9CYCm4TzLRrhF2bD/0BIFBqMv1fJH/ojwoq1/+GMUptg2S/SF3E1Wzcwpth+FZH3+kwvOHbzA9CeWhCGBev83N/Xb5IPwuiUT+O/JAMUkrL8KE/RGMRiAz/K/NF+uWbspnrf2Nb3ST2q4kLsm4kWyas7bgK7k+r6OtVv1fnS5TI0YofAvSNqGwoFYcV+SL9GoqWY8cxH//AM+6vyhfpF/BITUnn+V/b31i/73E51/8GSAF7cilfnzMJVuTP4YcaCr/1Hw7NVS12/kABcyqNLmBbilitytcf/lt/kCB62OVRAMq8Zv5i/XyoAIMk6X99vli/lpjm+d/8Bd0xIbBqiyfyjUeF9P2XjX8/8vXBw2Mg9KBD1dN1rnWTTld0Y1+PL9bPEF7GVAnwkXnV+Kb083Gjy/a/It+Ufpiz/VcBEx0D9XTd2LG5pb2u8wo3/C+bz74+/AM7YNxcGBwPCkPC+gikqcY3qZ9MwxgmLxH1+Cb1E3Bl+1+ZL02U73+j5LsbSDYPYMkt6jn4wa7prMKL/XJ5+7+kD5Q1CdOFIfZOa8FN2q3Dl9If+24DCoxwoTEprcGX0i/wDo/n+F+Fb0q/imue/w0qqAOeZhv/9i0euKkb+kUx3Ov7gyel+p4c9P09lWHnAwuEMdaFKJh7lf4Nl97+tTlfQj+UnKsLTNsZLajVlIUKfGn9V0kV6zz/K/Al9duY6X/TdW2nsEl2qf7TK9MKm3/XEu7BLRQ+VpfFP2Z+7vV7K3dIazoQYfed3TWt8gsAGYHTGCbi29uUL60/yBhVjh+tnQOMwrYO37R+oFm1zTz/N+b7n/65/jfQoyX2A8VMJuL1YdmH9PS8789f+4dbTpdanROTsMu7jVgNM/jON+FL6deWiOicJCLMcFuTL6E/Ffn+O76jQr5D8SX0z/S/aX2+ybRegSNc40b4ZGOc8+Cdg76/mClx/7O1bRffdUYbs4NKDUeroEoQyOV8efppY2vi9VhbOV+efvuGuMD/nb0yvr3dDP1z/W8kiIvXjMEf6WylRsL8ZTStbVbn/fbRz1nyDra37deHMtqKT0ycqGVNRdF6Qo15UqvMk53V+XYRX65+u8epwNley1pjlYIrz1+ufh3sosD/Ir7e8mXon+t/A2qQfc38ECO0Na4S4dbq6E+JPJmR/qPdlghwNGqvA0DFcK4SogWhs80dJXyZ+pmEl8LKzW4VJZvmL18/Rxf4X8yX1l/mf2PXIw9QxgKXMYqD/V0rcfvXq//Le4U8IsprIiCCNUnZlfDN0V+2S5TwzdNPlPhfzpfgKvS/4bnX6e1LU9f8Zr/sdewogijcb0HA3cCJEyfWZgS777C8mHMeYIVkaZHwO2ARElqkJCskR2Qk9HTPt59KZZrhXlai7S7PdNd/nVPjizANcByC8u7x+4r8w69jdnUP0EsCFHW09nPE+JYcU2KXr/eKuJ7z8B3nLyogs2M5sOVL93cO/+A4/v3PwneA/5nfv0gxFFoit9xdBPXKwYfH9xv8P39/IyXlzW+VXZWP95kFqJhtrPrq4UjvWOq+YCBI7vtj+B7O5V9fI4HX6Cuad2h/7z/en8FfOf/7H93f/QH+Z3//Ug3Ism5Obj1NJ7tdODZJ4Or7rnJsW/7wxw8/vPmp/S/Rm19//+PDx+qv8viuU6hvu/oNmK4yyKxADWRgphHVis1hcQDfJfwdJpyO3KYj/kfwXcSf0rO//xF8Y/4Xfv8iB/pJxpmbr9v7oQ98dqVsn/zj20YyyfvHtz/u+XTa2zKrKQ730r2/VGKSsgkmQ8ji/vHnRyBFeXx7fzl/UdsBb9UP8K/7+1t8l/O//PvfD/Ad5X/+9y/W446mYW+dei3Ua++H+hV++eV9/4v7/pfHx7ffPfTmCmziPC+3kKG611wkWcVIx/jw7u1H8H3f8L17+C/5Y8SS4/w/he8/43/596/4fhYf3/cA/8u/f8HMQt6lCcqZs4wOP0pe7ZHw4j83/9KMr/BmRTEy9l4udhxntD+aB8oJeS3+c/MvW+JXkQuXXhaVaVuwScs0x3DeeczTyYGZ4BgEd7888DZM/7ScxX9u/iV5TU4VugC9J0oi8E2E7a9qOJxswko2XQ8GGnc1YEibjxTIXPzn5l82lVAeTIFuyImInqYFjBqMJ8crmgDce7bDh5awSWtgcAvRaTd5hL/4z82/1Is9+Cs2ThVx0r9SDzUcELQJSPYgxYLqTcNSiMOHJFOAk/9jYbHc7P50L/5z8y/U09OZHgx3UU2Nv2OXJSXmwwyFRQlLwE1rNsR4ddLAuuZ2NmMdADJgsdLFf27+hX4tasgN4KwiIGntMQox0GkMWKTqtIWEbaHsykUgvw5IikIUv/+wIEo96Bb/ufmXqmM5767ZvCRzxqM+gvFH2JsYa1MkzGml7LnpZBt0SMMJBate1JPZNX/w+Bf/ufmX3XVnpg0qiE1Ho5HYENHjA3BoJusqxO8AZ8xt4hpIypCODRjVjLtK5sm3+M/Nv/TGEnCYCqq6yMdltSZ04EDxOl/uLuqy+M/Nv9Ajt3FIRp/zE+AxMcxYm9d5bKiqTOw6bLn4z82/BKSc9UKxKE+nkqGjPR3n1HaQ+8BtUJq3OZrar8V/bv4lgAE5UQBinPKKZIGMuLiWelaxY3MBI6UrJ6wIreGgUNVVtAxbnQgv/nPzL/0WrtK7pxDDBXpqith2JFadAO22a5UgvNWzfefCThWbaewwb4/xALsDoF0X/7n5l6pVu1ec9vHU9ikRTaQiE0iRBBMgsxI4kgHBNrfO69volvOYT9RRJxrWWpL7SjvTTrUbG5CNYz1rTi9d/OfmX/hBtchpo9Kfmnrqd6XVr059e7ejz+00kC21Z9SKemypdKvS+jep0Y6xZbJ3NtW5dAqeNXFvAIN69LwGe4ueWgAOtTH0dnbNavlMW/zn5l/qnD67z6pKf06MO/VN6NuezV+Fjt1Bp105Wd/8Pb/bdkDd3Hu4poGzZdqf32gztljP3/G7M92tTdcA0mExf/Gfm3/ZsTOy92Q07v3tg9qDyXCIhHkU4KGa/em648LHJ2AqWjto12Yg2Hu9qIRMHF6btvjPzb/AdrupxAIHR32IWIGLAtCAg1OPeKiOq0cwyXTdewsTEPHrNE8R9+I/N/9ibhA7XUUzZ1y5wzydJlL8NEy9kS2mP35k8FFSYABu8Z+bf9G8UvNMYg6K93gp40ZCyo3RdJqsNRxCPMniPzf/ktvFilStHQ08g4CbyZcZuSy7DjoHNJDFf27+BR8vSWHWeDMWUZVQtce+5sTE7MrD7GaO8x0SEnAgxhb/ufmXRCiw0NJlIIXTKMkoMEr5asRdS9w1JGQuPMIASLPjzMV/bv6FAlsYtYm92A2d0g7E7kw71hdxLusONLx6oSF9VVyk3JlKxmY4KMriPzf/App6iBk7YuobMejCWgQ6zvEJjYDDaDKM0qyZhDGhjQf+DGdhtFDxi9tx8Z+bf4FDdcCQdOuJ+7iZVgIigm0MIRCH3yKG6+gum7sv+socWKRVkQb8NI0jV/RY/OfmX6pJnjz9Xe2UAhIhE0Ph6cJIuBKlW32hYJHT7Ob6XIBz6OZK7APIbrgCGyz+c/Mv1qGMRGxouFV9jORGY5+620rCblDISaVaufviPzf/crVkycRSzqi5vfqyZfH/H0n5x4zbceD2Ijq3PM8gThhxWfzn5l9SP9rh0QVe4Wug9D8Dwsm0MJucIkm9TSKBeiKJTQC8+M/Nv1Dh9AYyY8e7uVoSjhbxEUQ4e6Ho7Jw35iQtvdY1wxTTLfHUpA368/InafF/Fv6l+3pHqqpIsGqM3KJYnLR2Fjqb6ATh3C5SuJoiRS/pN2kKaXhcmzDdLJO7JUjaLP5z8y8dl0F+hkxisFNETi6wgQaHsAzQy4LHYcJAcehu6nYcPrp2DV8AILU9sPjPzb/cIpS9eqURhTY9ATLoo6pRSEVDEbSUxp2FfwjT4j83/3KE9hlbIst7nKTJO8g/2OlQxeI/N/8S5qC+eoWyn9VGNYDKQxVxDSDZ1jvvEQzWIaEkt6Kia6hdjzOlufjPzb9s4BhNfru6VB3+GAEwBylVehNre7RNIYeyJ5hEdJPB+jDYr+CqGCEkyB0MJTQExeI/N/9CGZ0QSQemEYu5iFDIVsUPOiwYkJSLeE2X+K5iu3xnONXe+Bb/ufmX4Ax0VbLADGq6MV5UxTy3NeytUGwDRcSH5bYB8oetLP5z8y+HN3BAXhyvNDkHOIaZRs9Ba9XiPzf/8slq1Rweu3QTOPszKOPK+jDsDFn85+ZfNvZ2YSHNWQ/8qCpxMoUD4ly5JEpu5+D8qcwwkjJyzMDiPzf/AjvZNMt0oihaqhSn2Q4GhhshNU9yWxpxJnG6Q8zWcR6G4aZXY/Gfm3/pS/DptuOh2EY0NW4Bk4Dk6RB7NjOi6NJLjEnUPu5YELpaL0rw0Ac/FKla/OfmXxgQBJeG5Dy9hbDjI7orDtStUOZCt0fNJAK2120Lv1OzBS146xf/ufkXrCikjG2no+aguu942Ng9GqfveGjxn5t/ebFkycTyWf4FvnnxZcuXxP8z+Qt8E5Usn/lX/XL5l+24aQ8cg6YnWuZTax+T8bV8HebXcySD+ACkmAZ1DF/85+ZfHBmZ3dge+2a0jCpw20y4cDeP2RwW5aZ0MMwZ02MMCRQ6vBysz+I/N/9yQysy6AvD7SYgF4DuGjmyZwUkd454enrc5OuWY3ceB9HIZbqoKkBzPmNFbpT73/N/vfj/f/gXIECWG0ONVmbEIiKkxFnYTaPItgQN+FVMD/0jGObEpim+txXr4j83/7L7XxPOYqkYTVV3G5kwU16gDEYRARaiM9eO0Qsw5y7+c/MvpqS8dny6RX3IyJHkzllc49WbcTwG6HGuYBf/ufmX10zdTt5Q2SNWkUyMGx9CxGufkRjioFXEVA+qNkeaTT1WXLMpvSHdCC7+c/MvPbNKL6iyt5BLlRajCdtAEYL7oBEwyImEeXuvnR1TQGE1eXjAwrT+8Cl07c1DFmgW/7n5l14hEG7ogEa5gaT3DXlWYcc0D2haCxfHRHYskiGStUTwUTphTesX/7n5F6o5FE1xqAbyyY2qfh0XbWt+2dhpmGIwCzW5dpy/+M/Nv5h1WK7rM9rIGf3G4eeUxX9u/mVYek319bgbeclnCfrZYkNurWQfn7X4z82/qAob6EoAgU3yIT6GIjFGZXC6lQxGI0OxKUeWxX9u/qXX19PBmLTgytB66XXz06NekRpuMqxlAjtrxTFP3ZtuOLjs1RqRA8rICXPxn5t/qVaroFUHzFD6A25TYU0W+2kXlNmf/JnsjnlNq2JzAIGLHQAmRNkbGQ4hE32nTsniPzf/co2QAX2E8DdPfQEndXKqosOuHhKnFEAm0CTCQgtBY3SDY2Chbi3wF/+5+ZfAYCTf+DMb5wVr0F5/TujbOiwS1BrCcjGL/9z8yxEc+p5FbJ9H6Bo7DdQnRFM8Rhf/ufkX9ZxjW3ifQ5AeKPWk2yGoeiOu7FNTQE8jEviYi//c/AvhFLdSthyc+xEyhZgnZ0fGpOoA7MGgegIuZRK0pxMW/7n5F8MigwBwTemeereTZxPobeJo68JeeHiJ9r5uGI1pHYFfzD2aQQJI4OF6WgD8i//c/Ev3bnFiVaEPRtN3tUdpR1IPasuRfC8MdhtE0/2AwN2JwHU4zV1KB/gkkL74z82/kJmLc19vgOlPu3JNGbqbCK5QzfUyj0ec5M5MsYU5mcbiPzf/ghLlpQU6tHXS/5ph9bEANawVL5eZEga8URSTnFwvcjgPy+I/N/9C+KWZu8PmhOyXycoHGpkLflErhjUYqq0zLKBjJYEniRWGF/+5+ZeqAP+ltRCgRupyc2e8m4MMXFQHCxT0a5o2Wne1SKBETdXAyoHZLA8qsESz+M/Nv1DY7qqxB09iAKwWJRz4AUj+EyUBdI8tPQQGEb5PYGJP1yoOty8eohgczbv4z82/NFucPY3mzW0/SdIecsATFmZ31JNOYnAsUfxEmBiwS9LfNTPSdHbliF0YtfjPzb9AkFQEi7hTU2eEOLOws8B1e60DBXsUB0MVWQdW+61n74LpopDF/y/2yiVXkiKGorEORogBMHoSErxBMWARtf+94LLrcGRZJAkNghDhlxnhv+91dar35r9EigZZDJIvZWb0bvLVOdI1eIf/lgj4j3sc/nvzX39uOY7/i0L9f08O/y35r9fx0/TrvBHTp8Vxr2C6tafLGFe8qRu4K4f/3vzX7wRczk/5/hTv5Q4cZKKdjJqveo3VMAN4rrM9Z5rzDv+9+S89mQHhUJgdGjQ4hJaxtGFoubk2ohdha/rU1G0j8lL1294TMSw+mBA5/Pfmv+LgA3NAnvjTzgQvfKmVLhvcqJgWuq3yuQzLRBySl034ID0thHgF8TvwTZX8w39v/iuUPhDovzBanBoR/TaOeE3rcVwwBRZRlkYQVY5tOZDLKMF+tDzFn5erKYf/3vxXB/VLXowXnR4e7GYNMtlv+BWj039fZvH96OG/N/8FqqyI03JfA3OEBPRDrTtmvfzMvSi4FZqIpNGlWB3+e/NfeIxKTgx9rNlg1fQONxEaGm5uIi2GoUuVT586FKBUdPx+MjL38N+b/6K4bsBkWOK9IbHIKiMtPPGmRu5z8K8RESGJRqwYg2RhA1Hy7BogZteUZ15MkT7Fh//e/JdTCWLXsLfjWdNqNNWJLzMqp+/iHQBWxouOmyQuhjgqDwR8awFB9vQEUBru+wkIEhBX8KwRz8N/b/4rPWB4Jo7MAPwz9ARXZsFweXKpDGLuhV2ICD9oTLJBQGGrLwTF4gmSCNrqWUpWJBAWX7E4/aIB5wIO/735r2eCDHcGn/FmhmOgGo3omTwZzCdIsJT6xrOXXxctc5pmqLR6Joj00biU4lQUKivJ5WTKsRHQcfGb8JundfjvzX+lX4FjurPgWSquah/XWFSugSoahU6hIzKner9KQiGb/uEe7a1EMKqu1gL1EJcTMfaTYRqFcvjvzX/l9WHgWbZfrrkh6ckZHReibR+YskHkozyViJOmgK4eH9pdSEBoaL6x2Fc6WP8ztcN/b/4rGrweGqaSfekd5Qx4ViyDH3HXIV74fYQfsM+PgkmznFGdigF59mBqjSh+CaeQuU7qQFXP0yUSfr4LgQWJcB/+e/Nfr0BB/whXNgdyuLKsdhA3vOxR0Ao1eCu5st+IWVR1cdnhKYARyLpq8JFXIqj6kDeRMkMLT7aLpzWv3vwMkVNEsm1MAHFo1fbw35v/SiUapLgV+NCvpL6uCtZ3XVizBhwfL6mceLKCzOpee325skXuOvV3MtMrEyNHsDF+DQwwf0A5tUjJPRaWmsaPluHQDv+9+a+q/LCKycW4lHTVRXai1P9hvEIvgRBNKo0d0IGGtHZmStXY3hbGCOAFOg1FkG9tsqoO/735r3cmmGSWVhGmxQhwIbjMkRtXHIIqi/GkodgdqwUZIWgkVSkzUrxWH/5781/6+vwp5EHoxzJ+NOKt6DUw+RqH1xUI5poCW+3r4ZqH/97814+oQ0B3Q8ynYsxsgVHGjXIx/prb5e9gqa0P/735L9Xb4jw0nLz36eZZBujv9XD73fZWtCfcw39v/osy6rFDS/315KC0uJVKIDZq66VmLIA0fZ2XoFLrXcA2tmk1nUyhI+fhvzf/xRwyqIAsjjroRSKF8TJEvr+d/anewJeLgCdaZ8vWDekDmYDKbRbTsQ//vfmvolQxADCGGlP8jgEOLkZCnQxcbA4XzCh1tAF79yXH7QDVjE6cFBQOfOQd/nvzX+r0xK58VIZCBsGrAsU6bYCXPcoNJyZ+28rf8pFlFwOgsHO+djn89+a/Oop5D6z9dMyUHwa/wX34P6jDUjXjWky8yqXh4b83/zWnDc8ouwI8vdR/gXzYymsMGsa0pxz+e/NfWg70HkH9ajOr58x4naahoOPo6Q2DTSoitNnJCJXK4b83/6XTAhLSbbGmRZkVV529T9mCsiWC7RiRVb2jk3Fd9kChNEvsR/H4ab0O/735rzJIyA0AJP9S5aa6FO6MjqENL556qhpIurEyGZN0VFABtTn7KqDsdAJ2Pfz35r/SDfLSHpWEMx4mOOAhi0aESrfyyH3hjpNEcstDOjlaAKOeFohN6QNLR8oPFf3w35v/AmcMsp2Yk45ipweGs1IeVYdBNRm9U5/KOL/FMLKOmamnu1VxUAcC4hfyOPz35r+ccS2PPB6g+iJ53Eqaideehy4MHbyjyeG/N/+FC9Kewp5tqNAzx5qn/YhnYDPKcD1aKBrTNH0mT3CpH/5781+qj2pAHyFq8NrdXQC3jAdn6zPoSFoEimkkaDq9rY4K9bA4kCJRsA7/vfmvhzXgn59gBat/bYMtpKSBu22hk588WKPoQlJNBVXUIMHTfyhKgMk+md+gVvLhvzf/VeFWUhkw4QuWA0LMHTnCJRohC+P18NLWeuqYSgEuLn4jTDeGpEF1OdzE4b83/wUQJriS9NrXqYDgIMm94AEYp92gShk8cHFowoc2jOJjZBRQ3G5LMa2Uw39v/kvKUpKmNmKSgPWM77RZP2erPLs0mpGhcS0wQcMplyHsCuPw35v/KiV6Kz83WsxmbuNCGbeqipo08dNMjVswsxtZOLJan80ET5Ho3j/B4b83/2V0gBBKEVCGx1TDWuzZfFs4nezeS6OHMCgPk18KMXqx5sN/b/7r8/Gp9UlRaPGEOx7CqZWPLgzkqZcBn7nP11FXThIJBRk3EA9kssoxziI/Wr7mmCQMGtT4vPCnC+Xw35v/KvuznLUMCBe/ND6rMz2ooClMWQzpcbi9POEfDT4f2YQaiEoamtj0g+eDSm/TS0rRxwIA8/k4/Pfmv+IgAfkcF2G8j1Tg8fl6EjVitNIflHwSqAuhYTbjgV4ZKu+VRovom2NpS95DyFNJsOqH/978V/nDIiuNz7ypIUqbMgViWvfR+91QRx5McKSFcnUlw8g2VOI3WF1I67UyPPz35r9SwbaaeCnVLi8Fn4vCCLWqwUFSmnmSCBvwtm33ANkKUzqnQmKiYRfpkg//vfmvDNidfGF8ksEkCPpZ6NSLR7gywZTS2ClMcdvUjaO1kCvgolP5AIL78N+b/0qd+myYgsJ86FaOsQzA0fk4Uiz0Q3IX/UeQB4BIDMGGoMSFw2cLUflJu1LLPvz35r/8CvrXJ22oSwzMadGMKv3UtU2AhQbk9l6iJmQnx4IGOIRwki8m/4tlE4f/3vxXucsSmQPREbjaUr8hXbAAsy1tiwY7x5Plmm07ZlmormM0Ljn89+a/CooOv45v6BfyTfx1tigZ7NhdToZ0ON5E33TV2OjZk6jNBGHUA4o5hI9+ZNj38N+b/2owphAm45vSuElBZ2oXkFBLGW25TBcidyuIFkmSvSGjZ/XBDmMs9fDfm/+Ky+rZi2mozI+7jJ7sTS4ZaRMlp7DY38yWrtccoTmEUyCYWtXHuYf/3vxX6AwKJSWzJBkXSLjyQHUefWhRB9BCAECwdceiJRjg6nx2YnG5THwrTAMhD3g55I/c4K96+P97/Bd5ws4zpGMGU2bSURLmWOO4EjSdFJeOFyCC6JXvVxjmfkeNXFDQOd7q4b83/1WXGTfFTMcMEYSOmx21Zp6H7UcU6eynHP5781/fbCbfffP/lv87/y4b/gM+cuRP/wP+j3z33/0TvQ7/vfmvHtXSpQ/lO2zuq6Fcl1nZNP6wesxRqgOp9tQGDI3Df2/+q4orHDI44LJVuuqhxBx18uJElU+1ni7H2c10G1PWEE8S+EjNt3sP/735rwjArQIh6ZJWZRRV/jLVKx/gStA5FLrDunHmK5vezhFCRPAzyVJKKMAPt3Ic/nvzX/CEvWbpzOQkSf716GRZTusLxVMHFn4TU8BCvl5FVqmZ3/ZQiV9Ry334781/fYVp0BzlOqbnnl/56irRiCzrtt4krZ5wLYf/3vxXbzMNTv13AN1KpetV8b2Z8VLNJfRrOfz35r9E1xCzFcW0LxfbqDH3XoO/DdXhvzf/hTFCUOjAjXLz6LyESMOvEqwzVDjHHE8nNrADewmtqTIhKg7/vfmveGll23wcZn/wpquOEFdBYxwU40dhKJNwmMAQ9LJpiKdtavD0aNGmHf578199WAh90sJLjAZ0q7cP7lyoKcPREAiNxmbaXp5sELi4SShTICZUCaPMz6TDf2/+qxWyEvkSbh8UU82hkixHAsipednaea7YPJ3izCJ055kmoRAiIMB+Yzr89+a/yBAHZVPkhFDUD040mIlDvrpYvd7xZZJqW1cu3bZi4Dqm4zv89+a/vrovk1ijcrt+uu+PmV7NbtxscvjvzX99deTIxtL+AX+tqudSzJrO+33u9zVE9Evl8N+b/2rOkYLr/sAJ/D6RicCTg+vLlqD38N+b//q6e2aN9g3GI3ZNSLfVTuNGu+6TRPQPXhl2CuHDf2/+C4c7yFPoxtIwwyw/VTIzKZ54Cbu99E0SFaO6bkKpp9+hNk9XXnSYu4EOUazDf2/+6+UlVHFH/jYZzI6hhnTKQUkIfkQx3RbtWYWz+FXsICH3XAh9QUmgsZY5yYf/3vyXTfJScOklVQPL72bmYSqaZvWwps39/vKceRosVYdAQuCVeYf/3vwXSV8oQrifJVeB3m9lueKX2tMuUB7+e/NfXx85srGcf8BHtpaF0uT7+Ku7u/HcFwumcav0y+W64eG/N/+VeSZfVxtQwfr+Pre5E4snnrlGs7IWfXKYgEfO4f8re+WzInsRQ+GAOLgQRYQBN3c1CxF71Ytx4QP4/k/kz+R+fIZg2Yx35JZWprsqf06Sc+rauLf+IDHRJjwhmhvTIwDD7ZMBqU56xZl1Xga1CIdAcB51S6q/ARjZmKzOo39v/YEOBvEoNYR57BQGiieZjwORykEJAFnFFg8+PJR5ZqXHavXV7DKW++Z8KFP98ejfW3+kA2OtcKJhS44MrwQb6j5Wv1pNrya0PMIxYaR9Wh7Czqmkteoe/XvrDzve3ySyri4Rr6u29WShDjv699Yfs/7p7XVdfZfha6zB0b+3/nBEeo9Oe30/xetV+q8z9QY7+vfWHzyDlxjOV4J0iIS0Gxi55s7ErHEzbICkK2KtvM0sCdjRv7f+KAddeXh5TxqvHjUBgC2mmkJakmQtHW9KH62JJGUdgO3yHv8IGLg8j/699YfsEwORjMCXlw5lauhlV43hLUoYrdKCh/UEiCJkSl4UCVnrgELn3RXhUU5sXkf/3vojXUAVlBxmYERugibDPalgcBXr4SA3KNqmtDvZqliDD06aK3wFH66uo39v/dEJ3nHcrJsnk+7KttbfoyJGNmvkVFWjLxrJVfEUavMFuPzMZyqjPtuzFSFk1/3o31t/XF9XiLzrc3BbG325GZODs67MnYXO8nTjfC01mrnzaQ2jOPQ55ejfW39cXs6su5IZ5p50AVesmq5+MvN2ci9P8FTFVZtFwIaUnMZcYyZ4Hv176497BlkHCQQZ5fGHA2FF0whdEp24JVy3QA2cELaA81Xb2LbIbP074LXq0b+3/shqgiggFHGGNEO/TJqKZANrOBmVbRX233rm8UD7DmzxRy/vLMgZFlNRukw4+vfWH5mjBZctwGGToMIio2I6eElQ9hORTmOKG3HBkndVxmrJdhHpGeBzcsvq6N9bf1jo+nCoOx2c47Byqc3JBk7RGtI39aNUMgnmqedEc5CbtaN/b/3ROgFOTpZ7bEbHBPrQoo3IZbiOFqxraEruk/pUWd7Rv7f+uK/tp79Iv1KcpekZrleBMLXsfX2M7Lrx6N9bf1BdrjYWXHkSXJPOrJgzM1Idrt9ruaUxwNMvIHwSn/TqPvr31h+1SH2MM/YNKkoIgEzyGFWjBVjdl+GKUGyf7knqssywlUFs6SRNM0RRmZDt0b+z/p/uUemawqSslcenOhhSDnPpKlj5VTCEJuxQSIFO9mREoTTT4iGbRElevaqWF8vTP/r31h9XDYAT8H7NGyKdlYXp/lrz5GSZTRZXo8zZbd7pDjMz52m+9dG/t/7AWRikuLn+qcnEHXMZhC1qQu8E9/Ekazv699YfFJa0H0JMz5Bjds80GUsPdI4Z1+fv+rN+9O+tP2gix+lC3YY0w1/69XiJ4JH4TnOXgE6guQ4mpnWt3PJMHv1764/aMTvNCUcfY8uvUt0V/zrf5MoCoIZAGDCELkwBTtAxnK9sWDsUKO2jf2/90XGyzZ3QrFMvvwxEGrsBlUsadFkmyDQEjygFScEM8QxsGmHWa2I8047+vfVHzWOAu3kOOEgdfaomyj7pIDQDhTYU5FhYfpNLb3noQDcSyZUJhz66HVEbjv699Uc6tQU55b04t//IZWa1gpfsbFOsuqYOgEChLoB1PkdGVaqvQ14EpCML5cvB8tG/t/6gyVn1HH9IyI/5CqqCm2m7Rb+AYSbdWcxvFzCNBncLfeHJXirwF5tV2ngmT62e5ejfW39MCVo9zvVHu9ZxBZu9eYw8VTJ9vLN6TnuUi8ai/PaZR//e+uPFpqm3GNTpJlkXjJjDCNc8YNKqEDie5jI72/qsFU/y8K3WRktXzUf/nvovJ/EBiVJT8Lr8EZG1dhlgunhQpVY2k1DIInlrFfvwTOEBgZFAGLxEkSxQByYW3uSP/h31586EBbqw5jPG1+HoqPZG02A1VqjUMe4S5AIzXpMoZseIOY/+vfWHUxf73242m9jNjv7PWH+8HDu2sYVut585P605/jO3o38P/aHr8DzyL4PHd4paV8yRrm3v9GhumHb0760/Op72KaXnuScFvnOMh1ldsQzlWz0/i6mYjENt6wbij3J5eVfu6N9bf5QGWarOVi7yL0Jc1SXlYxUyJ7JRInJnc14+rFIqw1wg5AYJsHbneoeXlXf0760/rgvTYwBBgUjIUzgJkPVmsONjFcoMqyRfJhMxzpfou+qVVAvE1vIFv6Dl6N9bf4CFyEeoniZu4atr3cwDvJjnvKUnSiI6xkhb2K29Srtfjv699Qfug3bTYeIsGr2/3R5B6A/n6N9bf+Dc3HfLT3pDvQI47bRWE4BoTpw5fecZOLnb3KOvLUpH/976Q3ibR+I2moT1vQbzGQqhbL6Ll7BX7gaiV4spQdFYoUf/3vrDPc5yilXzJImLKhFMC+iAP/vUEuRQdUOXg2w6NtLkb54e1+py90VH/976o5wbK8olpDf99LKeGTwrrIVwlWplXW0uuwzH/zVYyxQWFI751v0X8Q0kQim/7D3699YftRdyVQDpTRmRbLLJXwp0VMDteAVlI2tU7qMUBgZCAGaF7gI5w67yYK6oo39v/XFDDgzZgNFHnW0qbUAM2kS67fkgLlp2vi4gIbh0mPWFkew3MzWRLUf/3vqDPuzZ7a42hYfjNeg/j9oEqoPP5GAX8SRDs50iBOpoR//e+gNH/s/PBl4NZKrjJsCb6SIesCIzt81Qkz6H8bSjf2/9IdscX7fJ8QiGAsjJkoCqUzmEsqS3V5qADqcpbgKkD36W2Hz0760/rqsyl/0ZknHVVFHJj1k1gLKjVaHGqvR4PmK4d9qXgawbBii1x7XpUmEtNJHOSxz9e+uPj1xZbNB+kFUmb8SbDAnu+hkC1BU8d/N44CBCGt7wlAQ3qfTtkmmmXHz0760/kO9M6l2rZJFBqotXncpasxNMUjfnH4Y7uHTPQfioINnnH/176w8BMGE8KXvV2EfyamJx53MCAagiu91GRaATBBAIlaPMKNTJjqN/b/0Bp0EPrNb3Ch8Ql5EZU/3aLhSfe9AnzWd2uV5Xk/nRv4N+0lN/uFzkiBagx2vLjncz38rEhBz9u+qP52PHNrb45BN/ef5/29H/r1rosvsBBp/PP9Mvb0OaPfr31h8w6en6/kJxSd3U+qmc9oYBDwEsz3VGXdfRv7f+yJBEuhlmpm6LqkcfbvkVg6LacI4nZ6uNJnDJecrFLQNu3dFdztG/t/6ApV8+V5QXe59JN8G0kcLnxqeRGwIFqUqNayoHJdIFYxaj0CCTCkDZj7ijf2/9wcQiXIg0JpabNiaxFLXpw5wUOx1WDa6AQN9lkqv25eEMvTxl5HtTEObko39v/QEeIN043h1idiQ5Z046iwEU9D+YGU1rWldn8yf06N9bf6DyAQP4YGxSbw14Ew9lvcmO/r31R2VILVoWEIpTELfBh3T4itHVH73G2mwVwr14zKN/b/0xqDg/PyZtc2IVwQmZJGvY9SeyO+7qTGnQeAgwwCc9jmFmj/699Ue5ZLzJfShkjRLRXk2QFcfII2uYoyQpvuDsL1HscKQvDNc2Ir89K+uPPI/+vfUHoMwR2JYXlu2+i3BIW7SPsSWfSjmMpCyLCrHCG5RgPAHlwr/1FI4+3aN/b/1hrqF7JE3jvqW7evqohIzkpynBaCK8+tsTCBw6rB39e+uP2yysTYye4aJ9JXTQxV9PWqV118OO/p313+Lrx6X9sIjMjdR/xo7+z0//N/H9Yt8Dsfk8KJufSLIm6hpJUjTZOUeLnFvXlI7+nfV/H0+L58AbdaevpVlT34NdVh+vrLeQ933y7+jfWf9TfIVPtsEuyzSK+RDPHlO6PpYeQTs5WDYlM2IAeu9Sfud19O+s/6uImyPso7OCijhSV31RKJatjRo1lWdkDQjUmEkbOSpNIcN8IJgYVWNl04Be3tG/r/6vI+KpaPQfW0Um5Qs/UuVkqXkwri5ypNFujw/O+5qvD0g8H8wUMPCW/OUzFyZH/776v43LMiM5HNCSkrqCudmpibLEaja5WbTQ9ti0I9lW3zKHopAVrHG4k7N89G+r/4cv47KnPrpYgmZOfhqrKRQTnQcpcQOL63hoo16VSpSXLWODwKzb5sijf1f930bazVHYNIdPBvBALoY7GpbmBNHreXYZ+h2vNEYd/Xvq//rLSHsy9bA5cnv78MPRv6f+LyL4L/jYse3sKQL7LhPab7ot+w7G0McbOB6bZ2GFOfr30/9NhPbNx6QwouWk9YutR4mbCT27zTqVr7reakf/7+2UUQrCMBBEA2LwoyiC9Bbeo/c/kbjL47EUSulXCxl1s9lMsjPB9mr+362gJ/v/WRb4xKwxyRSSvKzajxhnVhdwbRocGsUE9fbRhFXSos1BVA+k6h3+L+V/6S0gbhMaOZG9tooh1nQWWQgk870AlVAOVK8XytFkMCNGwJ3O+aqlXDAcOilVC1kc/q/j/9vbCvdXyIifwXmOSGXJmIDsgGUWMwepFUMu6N2CENypKQJFFQGYunv4v4r/3kT5C08w3FMLRkFtD+BpsipE+pEGkLbLXroz14f/8/ufewNrPPrnOR/WxxO8h+bgru3dGtst5tjdDv9n9P+3P0+f/mgFP2G4opHzpiinAAAAAElFTkSuQmCC\n";var W3=e(42226),V3=e(44367);const lw={width:"96px",padding:"0 13px 0 9px",display:"flex",justifyContent:"space-between",lineHeight:"28px"},cw=(0,r.memo)(()=>{const t=(0,o.d4)(S.wA),n=(0,o.d4)(S.HW),s=(0,o.d4)(T.O4),c=!!t,{planType:d,leftDays:w,isOrgFull:P,showBtn:F}=aw(c,t,n),X=(0,W3.tg)(),[ee,pe]=(0,r.useState)(!1),[ye,Ae]=(0,r.useState)(F),we=()=>{const Nt=ENV.IS_WONDER_SHARE?Cg.Jh:location.origin+"/brand/pricing?tab="+(c?ew:tw)+"&next="+location.href;(0,yc.JW)(Nt,"_blank","noreferrer")},_e=()=>{let Nt,Lt;d===lp.Trial?(Nt="\u7F16\u8F91\u533A_v8\u9876\u90E8_\u8BD5\u7528\u5347\u7EA7",Lt="workspace-v8_trial_upgrade"):(Nt="\u7F16\u8F91\u533A_v8\u9876\u90E8_\u5347\u7EA7",Lt="workspace-v8_top_upgrade");const Xt=(0,oa.l)(t,Nt,Lt);if(c){const{pTotalSeats:_o,bTotalSeats:co}=(0,V3.HZ)(t),yn=new Rd.KX(t).getOrgPlan();Xt.immediateUse=yn===Rd.Sj.OrgLite?_o>=10&&co>=10?"org_full":"org_lifeTime":"org_full"}else Xt.immediateUse="lifeTime_ptbx",Xt.soloSubMode="bomx_proto";MB.global.popupHelper.chargeAsync(Xt)},Fe=()=>{const Xt=(0,oa.l)(t,"\u7F16\u8F91\u533A_v8\u9876\u90E8_hover\u5347\u7EA7","workspace-v8_top_hover_upgrade");if(c){const{pTotalSeats:_o,bTotalSeats:co}=(0,V3.HZ)(t),yn=new Rd.KX(t).getOrgPlan();Xt.immediateUse=yn===Rd.Sj.OrgLite?_o>=10&&co>=10?"org_full":"org_lifeTime":"org_full"}else Xt.immediateUse="lifeTime_ptbx",Xt.soloSubMode="bomx_proto";MB.global.popupHelper.chargeAsync(Xt)},Ye=(Nt,Lt)=>{Lt.preventDefault(),Lt.stopPropagation(),(0,We.a0)(c?Tg:Eg,Nt,We.qW.Number),Ae(!1)},He=s==="dark",tt=d===lp.Trial?I18N.FreeUpgrade.trial:d===lp.Due?I18N.FreeUpgrade.due.replace(/{n}/,w):I18N.FreeUpgrade.free,It=iw(c,P,I18N);return ye&&!X&&(0,i.jsxs)($9,{isDark:He,onMouseEnter:()=>pe(!0),onMouseLeave:()=>pe(!1),children:[(0,i.jsxs)("div",{className:f()("buyme-btn activity-style",d,{isHovered:ee}),style:ENV.IS_WONDER_SHARE?{}:lw,onClick:_e,children:[(0,i.jsx)(Je.C,{name:"toolbar/upgrade_activity",size:16,isColorPure:!0}),ENV.IS_WONDER_SHARE?(0,i.jsx)("div",{className:"text",children:d===lp.Due?I18N.Common.renew:I18N.dModals.renew_now}):(0,i.jsx)("div",{className:"text",style:{fontSize:"14px"},children:"\u5F00\u5DE5\u7279\u60E0"})]}),ee&&(0,i.jsxs)(q9,{className:""+d,isDark:He,children:[(0,i.jsx)("img",{src:rw,alt:"",draggable:"false"}),(0,i.jsx)("div",{className:"desc-grid",children:It.map((Nt,Lt)=>(0,i.jsxs)("div",{className:"desc-cell",children:[(0,i.jsx)("div",{className:f()("desc1",{"has-han":sw(Nt.desc1)}),children:Nt.desc1}),(0,i.jsx)("div",{className:"desc2",children:Nt.desc2})]},Lt))}),(0,i.jsx)("div",{className:"features",children:I18N.FreeUpgrade.membership_features}),(0,i.jsx)("div",{className:"more",onClick:we,children:(0,i.jsx)("div",{className:"text",children:I18N.FreeUpgrade.more})}),(0,i.jsxs)("div",{className:"upgrade",onClick:Fe,children:[(0,i.jsx)("div",{className:"text",children:d===lp.Due?I18N.Common.renew:I18N.dModals.renew_now}),(0,i.jsx)("img",{src:"https://cdn-yunyin.modao.cc/2502/proto-activity-1.png",alt:""})]})]})]})});var dw=e(78013),pw=e(65474),hw=e(93443);const uw=(t,n,s)=>{const[c,d]=(0,r.useState)((0,We.Yt)(t,n,s));return(0,r.useEffect)(()=>{(0,We.a0)(t,c,s)},[t,c,s]),[c,d]},mw=()=>{const t=(0,o.d4)(S.PL),{isEditingBasket:n,isDirectlyEditingBasket:s,isEditingCombo:c}=(0,o.d4)(y.r),d=(0,o.d4)(pt.p$),{isFromAbar:w}=(0,o.d4)(S.fv),P=(0,o.d4)(S.z$),F=(0,o.d4)(A.rg),X=(0,o.d4)(A.uu),ee=(0,o.d4)(S.zv),pe=(0,a0.WM)(),ye=(0,o.wA)(),[Ae,we]=(0,r.useState)(!1),[_e,Fe]=uw(t.cid+"_mode_selected","device",We.qW.String);if((0,r.useEffect)(()=>{let It;return(0,a0.WM)()&&(It=setTimeout(()=>{we(!0)},hw.b)),()=>clearTimeout(It)},[pe]),(0,r.useEffect)(()=>{(ee.includes(Ha.c.GUIDE_NOVICE_2309_TASK_4)||ee.includes(Ha.c.GUIDE_2407_PREVIEW_CLOSE))&&we(!1)},[ee]),n||s)return null;const Ye=(P==null?void 0:P.access_token)||t.access_token,He=It=>{const Nt=d.key;if(!Nt)return MB.notice({text:I18N.dUtils.no_canvas_cannot_be_previewed,type:"warning"});switch(It){case"device":{var Lt;if(MB.global.experienceLoginModalHelper("isSave"))return;if(X||ye({type:"entry:start:saving"}),c){ye({type:"entry:preview:combo"});return}const co=((Lt=MB.getSelectionItems().findLast(An=>{const In=An.hotAttr||An;return In.type==="rResCanvas"&&!In.asOverlay}))==null?void 0:Lt.cid)||(0,dw.XV)(Nt),yn=(0,Pm.f1)({accessToken:Ye,screen:Nt,canvasId:co});w?(0,Wh.sg)(Wh.ZW.enterPreview,{link:yn}):(0,yc.Ix)(yn,"_blank","noreferrer"),F||((0,wd.kX)({operation_type:wd.mV.Device}),ye({type:"entry:update:novice:guide:and:task",payload:{guideType:Ha.c.GUIDE_NOVICE_2309_STEP_4,taskType:Ha.c.GUIDE_NOVICE_2309_TASK_4}})),(0,on.bO)({currentProject:t,preview_type:"\u6F14\u793A\u6A21\u5F0F"}),(0,Dc.kH)("model_change",{change_type:"\u7F16\u8F91\u6A21\u5F0F\u5207\u6362\u6F14\u793A\u6A21\u5F0F"});break}case"read_only":{const Xt=(0,Pm.h2)({accessToken:Ye,currentPageKey:d.key});w?(0,Wh.sg)(Wh.ZW.enterPreview,{link:Xt}):(0,yc.Ix)(Xt,"_blank","noreferrer"),(0,on.bO)({currentProject:t,preview_type:"\u53EA\u8BFB\u6A21\u5F0F"}),(0,Dc.kH)("model_change",{change_type:"\u7F16\u8F91\u6A21\u5F0F\u5207\u6362\u603B\u89C8\u6A21\u5F0F"});break}}Ae&&(MB.commonGuideHelper.closeGuide(Ha.c.GUIDE_2407_PREVIEW),we(!1))},tt=It=>{Fe(It),He(It)};return(0,i.jsxs)(fw,{className:Ha.c.GUIDE_NOVICE_2309_STEP_4+" "+Ha.c.GUIDE_2407_PREVIEW+" "+(Ae?"guide-type-preview":""),onClick:()=>He(_e),children:[(0,i.jsx)(Kc.A,{content:_e==="device"?(0,Vh.Qc)("preview"):I18N.ToolBar.overview,direction:"down",distance:8,children:(0,i.jsx)("div",{className:"mode-container",children:(0,i.jsx)(Je.C,{name:_e==="device"?"toolbar/preview":"toolbar/read_only"})})}),!c&&(0,i.jsx)(A2.A,{menuPosTop:48,offsetX:-52,direction:"down-start",className:"select-mode-dropdown",renderOpener:(0,i.jsx)(Kc.A,{content:I18N.ArtBoard.preview,direction:"down",distance:8,children:(0,i.jsx)("div",{className:"mode-menu-opener",children:(0,i.jsx)(Je.C,{className:"toolbar-dropDown",name:"toolbar/triangle-down"})})}),renderMenu:(0,i.jsx)(gw,{onSelectMode:tt})})]})},gw=t=>{let{onSelectMode:n}=t;return(0,i.jsxs)(yw,{children:[(0,i.jsxs)("li",{onClick:()=>n("device"),children:[(0,i.jsx)(Je.C,{size:16,name:"toolbar/mode/device/small"}),(0,Vh.Qc)("preview")]}),(0,i.jsxs)("li",{onClick:()=>n("read_only"),children:[(0,i.jsx)(Je.C,{name:"toolbar/mode/read_only/small"}),I18N.ToolBar.overview]})]})},fw=u.Ay.div.withConfig({displayName:"OpenNewModeBtn__StyledOpenNewModeButton",componentId:"sc-fp4th1-0"})(["width:48px;height:32px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:6px;&.guide-type-preview{width:48px;height:32px;border-radius:8px;transition:none;",";::before,::after{border-radius:8px;}}.mode-container{width:32px;height:32px;position:relative;.svg-icon{width:100%;}}.select-mode-dropdown{height:100%;display:flex;align-items:center;.mode-menu-opener{width:100%;height:100%;margin-right:9px;margin-top:0;display:flex;align-items:center;justify-content:center;.toolbar-dropDown{width:7px;height:4px;}}&.is-open,&:hover{.toolbar-dropDown{margin-top:5px;transition:margin-top ease-in-out 0.2s;}}}&:not(.active):hover{background-color:",";}&.disabled{opacity:0.4;pointer-events:none;}&:not(.disabled):active,&:not(.disabled).active{background-color:",";.select-mode-dropdown.is-open{background-color:unset;}}"],pw.K6,t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_btn_secondary_active),yw=u.Ay.div.withConfig({displayName:"OpenNewModeBtn__StyledModeMenu",componentId:"sc-fp4th1-1"})(["padding:8px;width:160px;background:",";color:",";box-shadow:",";border-radius:8px;border:1px solid ",";li{list-style:none;.svg-icon{margin-right:4px;width:16px;height:16px;color:",";[stroke]{stroke:currentColor;fill:none;}}.key{position:absolute;right:16px;color:",";}position:relative;height:28px;padding:4px 16px;display:flex;align-items:center;cursor:pointer;font-size:12px;line-height:16px;&:hover{background:",";}}li{border-radius:4px;}"],t=>t.theme.color_bg_white,t=>t.theme.color_text_L1,t=>t.theme.shadow_m,t=>t.theme.color_bg_border_01,t=>t.theme.color_text_L1,t=>t.theme.color_text_L3,t=>t.theme.color_btn_secondary_hover);var xw=e(88175),vw=e(95175);const bw=u.Ay.div.withConfig({displayName:"styles__StyledMissFontModal",componentId:"sc-j1bci5-0"})(["position:absolute;right:24px;z-index:199;top:49px;display:flex;flex-direction:column;width:606px;border-radius:8px;background-color:",";font-size:12px;outline:",";box-shadow:",";",";header{border-top-left-radius:8px;border-top-right-radius:8px;font-size:14px;border-bottom:1px solid "," !important;}.body{display:flex;flex-direction:column;padding-left:20px;.tip{color:",";margin-top:20px;font-weight:500;}.sub-tip{color:",";height:34px;display:flex;align-items:center;.sub-tip-1{margin-right:186px;}}.content-body{&::-webkit-scrollbar{width:6px;}&::-webkit-scrollbar-thumb{background-color:",";border-radius:8px;&:hover{background-color:",";}}border-radius:0 !important;max-height:266px;overflow-y:scroll;overflow-x:hidden;margin-right:4px;}}#last{display:flex;margin-top:24px;justify-content:flex-end;align-items:flex-start;padding:0 20px;height:56px;& > .button-root{margin-left:12px;}}"],t=>t.theme.color_bg_white,t=>t.$theme==="dark"?"1px solid #4F5052":void 0,t=>t.theme.miss_font_box_shadow,R4.wy,t=>t.theme.color_bg_border_01,t=>t.theme.color_text_L1,t=>t.theme.color_text_L3,t=>t.theme.color_slider_normal,t=>t.theme.color_slider_hover),Cw=u.Ay.div.withConfig({displayName:"styles__StyeldFontItem",componentId:"sc-j1bci5-1"})(["display:flex;align-items:center;height:34px;margin-bottom:8px;.svg-icon *{color:",";fill:currentColor}.p1-1{margin-right:8px;}.p1-2{margin-right:6px;}.p1-3{width:140px;margin-right:8px;color:",";}.p1-4{margin-right:16px;}.selct-border{border-radius:6px;border:1px solid ",";&:hover{border:1px solid ",";}}.p4{width:200px;margin-right:8px;}.p5{width:126px;}.p4,.p5{&:hover{background:",";}.WorkspaceSelect{width:100%;display:flex;justify-content:space-between;border:none;}}"],t=>t.theme.color_text_L1,t=>t.theme.color_text_L3,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_btn_secondary_hover);var U4=e(17383),ww=e(67231),z4=e.n(ww),Sw=e(68431),H3=e.n(Sw);function K3(t){return H3()(t)||z4()(t)||(0,r.isValidElement)(t)?t:t.label||t.value?t.label||t.value:void 0}function Aw(t){return H3()(t)||z4()(t)?String(t):t.value||t.label?String(t.value||t.label):void 0}function G3(t,n){return!!n&&Aw(t)===String(n)}var Iw=e(10923);const Y3=u.Ay.label.withConfig({displayName:"styles__StyledSelect",componentId:"sc-dlp340-0"})(["position:relative;display:inline-flex;align-items:center;max-width:100%;min-width:3em;height:28px;font-size:12px;color:",";cursor:pointer;&.is-disabled{cursor:not-allowed;}.btn{height:100%;display:flex;align-items:center;max-width:calc(100% - 10px - 1em);.questionMark{display:flex;align-items:center;min-width:16px;margin-right:8px;}span{text-align:start;cursor:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;color:",";}.show-question-mark{color:",";}}.caret{padding:0 8px;color:",";height:100%;display:inline-flex;align-items:center;.svg-icon{color:",";}svg{width:8px;height:8px;transition:transform 0.2s ease-out;}}&{padding-left:8px;border:1px solid transparent;border-radius:2px;}&.is-open .caret svg{transform:rotate(180deg);}"],t=>t.theme.color_text_L2,t=>t.theme.color_text_L1,t=>t.theme.color_text_L3,t=>t.theme.color_text_L2,t=>t.theme.color_text_L2),Mw=(0,i.jsx)(Je.C,{name:"toolbar/selected",className:"selected-icon"}),Tw=t=>{const{value:n,onChange:s,className:c,showQuestionMark:d,selectValue:w,disabled:P,hasCheck:F,optionList:X,$menuMaxHeight:ee,$menuWidth:pe,$hasScroll:ye}=t,Ae=(0,r.useRef)(null),{handleToggle:we,handleClose:_e,menuStatus:Fe}=(0,Iw.x)({ref:Ae,leftUse:"left",xOffset:125}),Ye=Xt=>s(Xt),He=()=>{if(d)return(0,U4.cB)((0,xh.cD)(n));const Xt=X.find(_o=>G3(_o,n));return Xt?(0,xh.cD)(K3(Xt)):n},tt=()=>{P||we()},It=P,Nt=!P,Lt=(0,lc.Hn)(["WorkspaceSelect","regular",c,It&&"is-disabled"]);return(0,i.jsxs)(Y3,{className:Lt,role:"listbox",ref:Ae,onClick:tt,children:[(0,i.jsx)("div",{className:"btn",children:(0,i.jsx)("span",{className:f()({"show-question-mark":d}),children:He()})}),(0,i.jsx)("span",{className:"caret",children:(0,i.jsx)(Je.C,{name:"common/expand"})}),Fe.isOpenContextMenu&&(0,i.jsxs)(Ew,{position:Fe.position,canSelect:Nt,onClose:_e,className:f()("font-family-menu"),$menuWidth:pe,$menuMaxHeight:ee,$hasScroll:ye,children:[w&&(0,i.jsxs)("div",{className:"select-value",children:[(0,i.jsx)(Je.C,{name:"common/checked"}),w]}),X.map((Xt,_o)=>{const co=G3(Xt,n);return(0,i.jsx)("div",{className:"font-family-level",style:{position:"relative"},children:(0,i.jsx)(be.Dr,{text:K3(Xt),option:Xt,onClick:()=>Ye(Xt),icon:F&&co?Mw:null})},_o)})]})]})},Ew=(0,u.Ay)(be.Ay).withConfig({displayName:"Select__StyledContextMenu",componentId:"sc-10rjh3h-0"})(["",";.select-value{padding-left:5px;height:28px;margin:8px 0;border-bottom:1px solid ",";line-height:21px;white-space:nowrap;text-overflow:ellipsis;display:flex;align-items:center;cursor:pointer;svg{margin-left:6px;margin-right:4px;}}.svg-icon{width:16px;height:16px;}&.font-family-menu ul{&::-webkit-scrollbar{display:block;width:6px;height:6px;}&::-webkit-scrollbar-thumb{background-color:",";border-radius:8px;&:hover{background-color:",";}}}& > ul:first-of-type{max-height:",";min-width:","px;width:","px;overflow-y:",";padding:0px;}.MenuItem{a{padding-left:32px;}&.hasIcon{> a{padding-left:15px;}}}"],Ci.ZJ,t=>t.theme.color_bg_border_01,t=>t.theme.color_slider_normal,t=>t.theme.color_slider_hover,t=>t.$hasScroll?t.$menuMaxHeight+"px":void 0,t=>t.$menuWidth,t=>t.$menuWidth,t=>t.$hasScroll?"scroll":void 0);var kw=e(60199);const _w=t=>{const{className:n,showQuestionMark:s,disabled:c,allFontList:d,stateFamily:w,stateWeight:P,handleFontFamilyChange:F,handleFontWeightChange:X,familyShowValue:ee}=t,pe=(0,r.useRef)(null),ye=c,Ae=(0,lc.Hn)(["WorkspaceSelect","regular",n,ye&&"is-disabled"]),[we,_e]=(0,r.useState)(!1),[Fe,Ye]=(0,r.useState)({top:0,right:0}),He=()=>{_e(!1)},tt=(0,r.useRef)(null),It=Lt=>{const Xt=Lt.target;!Xt.closest("#font-list-panel")&&!Xt.closest(".font-family-label")&&He()},Nt=()=>{const Lt=tt==null?void 0:tt.current.getBoundingClientRect();Lt&&Ye({top:Lt.top+28+4,left:Lt.left-9}),_e(!we)};return(0,i.jsxs)(Y3,{className:Ae,role:"listbox",ref:pe,children:[(0,i.jsx)("button",{onClick:Nt,disabled:ye,ref:tt,children:(0,i.jsx)("span",{className:f()({"show-question-mark":s}),children:ee})}),(0,i.jsx)("span",{className:"caret",children:(0,i.jsx)(Je.C,{name:"common/expand"})}),we&&(0,dr.createPortal)((0,i.jsx)(kw.Z,{fontFamily:w,fontWeight:P,fontStyle:"normal",position:Fe,wbiVersion:3,subMenuDirection:"left",clickFF:Lt=>{F(Lt),_e(!1)},clickFW:(Lt,Xt)=>{X(Lt,Xt),_e(!1)},hoverFF:Lt=>null,hoverFW:(Lt,Xt)=>null,clearOverrideAttr:()=>null,handleClickOutSideToClose:It,fontListOriginal:d,setIsOpenListPanel:_e}),document.body)]})};function Pw(t){var n;const{family:s,weight:c,changeOpenFZAuthInfo:d,modifyFontFamily:w,modifyFontWeight:P,fontItemKey:F,handleFocusItem:X,changeMap:ee,allFontList:pe}=t,ye=s,Ae=c,[we,_e]=(0,r.useState)("PLACE_HOLDER_FAMILY"),[Fe,Ye]=(0,r.useState)(c),He=()=>ye,tt=async function(wn,_n){_n===void 0&&(_n=!1);const Jn=He();let rs=wn.value;const as=()=>{if(wn.type==="cloud"){const{ff:mi,fw:ha}=(0,xh.dv)(wn);rs=mi,w({fontItemKey:F,fromFF:Jn,toFF:rs}),P({fontItemKey:F,fromFW:Ae,toFW:ha}),Ye(ha)}else w({fontItemKey:F,fromFF:Jn,toFF:rs}),Nt({font:wn,value:"regular"});_e(rs)};_n?as():(0,xh.x7)(rs)?d(!0,as):as()},It=(wn,_n)=>{let Jn=wn.value;wn.type==="cloud"&&(Jn=wn.weightExtKeyKV[_n.value]||wn.strangeExtKeyWeightKV[_n.value]),w({fontItemKey:F,fromFF:He(),toFF:Jn});const rs=_n.value;P({fontItemKey:F,fromFW:Ae,toFW:rs}),_e(Jn),Ye(rs)},Nt=wn=>{const _n=wn.value;if(wn.font.type==="cloud"){const Jn=wn.font.weightExtKeyKV[_n]||wn.font.strangeExtKeyWeightKV[_n];w({fontItemKey:F,fromFF:He(),toFF:Jn})}P({fontItemKey:F,fromFW:Ae,toFW:_n}),Ye(_n)},Lt=(0,ii.w0)(we,pe),Xt=(Lt==null?void 0:Lt.typeList.map(wn=>({font:Lt,label:(0,U4.cB)(wn),value:wn})))||[],_o=we==="PLACE_HOLDER_FAMILY"?"\u9009\u62E9\u66FF\u6362\u7684\u5B57\u4F53":(Lt==null?void 0:Lt.label)||(0,xh._9)(we),co=Fe,yn=((n=(0,ii.w0)(ye,pe))==null?void 0:n.label)||(0,xh._9)(ye),An=(0,U4.cB)(Ae)||Ae,In=Lt==null?void 0:Lt.typeList.find(wn=>wn===Fe);return(0,r.useEffect)(()=>{const wn=(0,ii.w0)(s,pe);wn&&setTimeout(()=>{tt(wn)},4)},[]),(0,i.jsxs)(Cw,{children:[(0,i.jsx)(Kc.A,{content:"\u9009\u4E2D\u4F7F\u7528\u8BE5\u5B57\u4F53\u7684\u7EC4\u4EF6",direction:"down",distance2:4,children:(0,i.jsx)(b0.A,{onClick:()=>X(F),size:24,name:"font/miss/focus",className:"p1-1"})}),(0,i.jsx)(Kc.A,{content:"\u5B57\u4F53\u7F3A\u5931",direction:"down",distance2:4,children:(0,i.jsx)(Je.C,{size:16,isColorPure:!0,name:"design/notify/questionMark",className:"p1-2"})}),(0,i.jsx)("span",{className:"p1-3",children:yn+", "+An}),(0,i.jsx)(Je.C,{size:14,name:"design/missfont/arrow",className:"p1-4"}),(0,i.jsx)("div",{className:"p4 selct-border",children:(0,i.jsx)(_w,{familyShowValue:_o,stateFamily:we,stateWeight:Fe,allFontList:pe,handleFontFamilyChange:tt,handleFontWeightChange:It})}),(0,i.jsx)("div",{className:"p5 selct-border",children:(0,i.jsx)(Tw,{optionList:Xt,value:Fe,onChange:Nt,disabled:Xt.length===0,showQuestionMark:!In,hasCheck:!0,$menuWidth:130,$menuMaxHeight:270,$hasScroll:!1})})]})}var Nw=e(38057);const Z3=()=>({changeFF:null,changeFW:null});function Lw(t){const{missFontKeyMap:n,handleClose:s}=t,c=(0,r.useRef)(new Map),d=Pn(),[w,P]=(0,r.useState)([...n.keys()]),F=(0,o.d4)(vl.y.query.getCloudFontLocalList),X=(0,o.d4)(T.O4),ee=(0,r.useMemo)(()=>(0,xh.r)(Nw.concat(F)),[F]);(0,r.useEffect)(()=>{c.current=new Map,P([...n.keys()])},[n]);const[pe,ye]=(0,r.useState)(!1),Ae=(0,o.wA)(),we=()=>{Ae({type:vl.y.entryKey["font:modify:fontItem:confirm"],payload:{changeMap:c.current}}),s()},_e=Xt=>{Ae({type:vl.y.entryKey["font:focus:fontItem"],payload:{fontItemKey:Xt}})},Fe=Xt=>{let{fontItemKey:_o,fromFF:co,toFF:yn}=Xt,An=c.current.get(_o);An||c.current.set(_o,An=Z3()),An.changeFF={fontItemKey:_o,fromFF:co,toFF:yn,type:"ff"},d()},Ye=Xt=>{let{fontItemKey:_o,fromFW:co,toFW:yn}=Xt,An=c.current.get(_o);An||c.current.set(_o,An=Z3()),An.changeFW={fontItemKey:_o,fromFW:co,toFW:yn,type:"fw"},d()},He=(Xt,_o)=>{ye(Xt)},tt=()=>{(0,We.cH)("FZFontAuthInformed",!0),ye(!1)},It=()=>{ye(!1)},Nt=c.current.size>0,Lt=w.sort((Xt,_o)=>{var co,yn;const An=Xt.split(":"),In=_o.split(":"),wn=""+(((co=(0,ii.w0)(An[0],ee))==null?void 0:co.label)||(0,xh._9)(An[0]))+(An[1]||""),_n=""+(((yn=(0,ii.w0)(In[0],ee))==null?void 0:yn.label)||(0,xh._9)(In[0]))+(In[1]||"");return wn.localeCompare(_n,"zh-Hans-CN",{sensitivity:"accent"})});return(0,i.jsxs)(bw,{className:"missingFont",$theme:X,children:[(0,i.jsx)(_u.rQ,{title:I18N.ToolBar.missingFont_title}),(0,i.jsx)(_u.v,{canClose:!0,onClick:s}),(0,i.jsxs)("div",{className:"body",children:[(0,i.jsx)("div",{className:"tip",children:I18N.ToolBar.missingFont.tip}),(0,i.jsxs)("div",{className:"sub-tip",children:[(0,i.jsx)("div",{className:"sub-tip-1",children:"\u7F3A\u5931\u5B57\u4F53"}),(0,i.jsx)("div",{className:"sub-tip-2",children:"\u66FF\u6362\u5B57\u4F53\u4E3A"})]}),(0,i.jsx)("div",{className:"content-body",children:Lt.map((Xt,_o)=>{const co=Xt.split(":"),yn=co[0];return(0,i.jsx)(Pw,{fontItemKey:Xt,weight:co[1]||"regular",family:yn,changeOpenFZAuthInfo:He,modifyFontFamily:Fe,modifyFontWeight:Ye,handleFocusItem:_e,changeMap:c.current,allFontList:ee},Xt)})}),(0,i.jsxs)("div",{id:"last",children:[(0,i.jsx)(Zn.tA,{onClick:s,children:I18N.Popups.cancel}),(0,i.jsx)(Zn.jn,{disabled:!Nt,onClick:we,children:I18N.ToolBar.missingFont.replaceFont})]})]}),pe&&(0,i.jsx)(xw.A,{isOpen:!0,className:"MissFontFZAuthInformed",onConfirm:tt,onClose:It}),(0,i.jsx)(vw.F,{})]})}const Dw=(0,r.memo)(()=>{const t=(0,r.useRef)(null),n=(0,o.wA)(),s=(0,o.d4)(vl.y.query.getIsShowMissFontModal),c=(0,o.d4)(vl.y.query.getMissFontKeyMap);(0,r.useEffect)(()=>{setTimeout(()=>{n({type:vl.y.entryKey["font:missFontKeyMap:update"]})},2e3)},[]);const d=()=>{vl.y.dispatchState({isShowMissFontModal:!1},n)},w=()=>{s?vl.y.dispatchState({isShowMissFontModal:!1},n):n({type:vl.y.entryKey["font:miss:modal:open"]})};return c!=null&&c.size?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:f()("missing-font",s&&"active"),style:{position:"relative"},ref:t,onClick:w,children:(0,i.jsx)(Kc.A,{content:"\u5B57\u4F53\u7F3A\u5931",direction:"down",distance:5,enterHoverTime:500,children:(0,i.jsx)(Je.C,{size:32,isColorPure:!1,name:"toolbar/missingfont"})})}),s&&t.current&&(0,dr.createPortal)((0,i.jsx)(Lw,{missFontKeyMap:c,handleClose:d}),document.body)]}):null}),Bw=u.Ay.div.withConfig({displayName:"styles__StyledNotice",componentId:"sc-8qqb00-0"})(["position:relative;margin-right:10px;.buyme-btn{width:118px;border-radius:44px;height:28px;font-size:14px;line-height:20px;font-weight:500;display:flex;justify-content:center;align-items:center;cursor:pointer;color:#FFFFFF;border:",";background:linear-gradient(353.67deg,#333333 33.16%,#666666 94.29%);&:hover{background:linear-gradient(353.67deg,rgba(51,51,51,0.85) 33.16%,rgba(102,102,102,0.85) 94.29%);}}"],t=>t.isDark?"1px solid #FFFFFF":"1px solid #333333"),Rw=(0,r.memo)(()=>{const t=(0,o.d4)(T.O4),n=(0,o.wA)(),s=t==="dark",c=()=>{n({type:"modal:update:state",payload:{noticeModal:{isOpen:!0}}})};return(0,i.jsx)(Bw,{isDark:s,onClick:c,children:(0,i.jsxs)("div",{className:f()("buyme-btn"),children:[(0,i.jsx)(Je.C,{name:"toolbar/notice/serve",size:16,isColorPure:!0}),(0,i.jsx)("div",{className:"text",children:"\u7CFB\u7EDF\u5347\u7EA7\u7EF4\u62A4"})]})})});class jw extends r.PureComponent{constructor(){super(...arguments),(0,p.A)(this,"handleZoomIn",()=>{this.props.dispatch({type:"entry:design:zoom:in"})}),(0,p.A)(this,"handleZoomOut",()=>{this.props.dispatch({type:"entry:design:zoom:out"})}),(0,p.A)(this,"handleZoomInitialScale",n=>{n==null||n.stopPropagation(),n==null||n.preventDefault();const{dispatch:s}=this.props;s({type:"entry:zoom:fit:scale:offset"})}),(0,p.A)(this,"handleZoomSelection",n=>{n.stopPropagation(),n.preventDefault(),this.props.dispatch({type:"entry:design:zoom:selection"})}),(0,p.A)(this,"handleZoomSpecifiedScale",n=>{const s=Number(n),{dispatch:c}=this.props;c({type:"entry:set:scale",payload:{scale:s}})}),(0,p.A)(this,"handleDownload",n=>{n.stopPropagation(),!MB.global.experienceLoginModalHelper("isSave")&&(this.props.dispatch({type:"entry:toolbar:open:export_menu"}),(0,wd.kX)({operation_type:wd.mV.Download}))}),(0,p.A)(this,"handleShare",()=>{const{isDisabledSharing:n,dispatch:s}=this.props;n||MB.global.experienceLoginModalHelper("isSave")||(s({type:"toolbar:sharingManager:toggle"}),s({type:"entry:update:novice:guide:and:task",payload:{guideType:Ha.c.GUIDE_NOVICE_2309_STEP_5,taskType:Ha.c.GUIDE_NOVICE_2309_TASK_5}}),(0,wd.kX)({operation_type:wd.mV.Sharing}))}),(0,p.A)(this,"handleLaunchCombo",()=>{this.props.dispatch({type:"entry:preview:combo"});const{rootProject:n}=this.props;(0,on.bO)({currentProject:n,source:"\u7EC4\u4EF6\u7F16\u8F91",preview_type:"\u6F14\u793A\u6A21\u5F0F"})}),(0,p.A)(this,"handleExitFullScreenMode",async()=>{const{dispatch:n}=this.props;n({type:"entry:toolbar:toggle:fullScreen"})}),(0,p.A)(this,"handleToggleCommentMode",()=>{const{dispatch:n}=this.props;n({type:"entry:comment:toggle",payload:{onlyView:!0}}),(0,C0.A)({operation_type:C0.D.Comment})})}componentDidMount(){var n,s;this.props.onlyView&&!((n=MB)!=null&&(n=n.commonGuideHelper)!=null&&n.checkGuideHasShown(Ha.c.GUIDE_TO_PREVIEW_IN_SHARE))&&((s=MB)==null||(s=s.commonGuideHelper)==null||s.tryToShowGuide(Ha.c.GUIDE_TO_PREVIEW_IN_SHARE))}render(){const{scale:n,isShowSharing:s,isDisabledSharing:c,isShowExport:d,isDisabledExport:w,isShowPreview:P,isExportMenuShow:F,dispatch:X,onlyView:ee,isCommunityPreview:pe,isEmbedV2Preview:ye,isHtmlZipPreview:Ae,fullScreenMode:we,isShowExitCombo:_e,importAbarOptions:Fe,isDisabledLunchCombo:Ye,currentSharingInReadOnly:He,commentMode:tt}=this.props,{isFromAbar:It,isImportAbar:Nt,fromAbarIsReadOnly:Lt}=Fe||{};let Xt="";if(ee&&It&&!Lt&&(Xt=Nt?"toolbar-right-abar-import":"toolbar-right-abar"),ee)return(0,i.jsx)(J9,{isShowSharing:s,isCommunityPreview:pe,isEmbedV2Preview:ye,isHtmlZipPreview:Ae,fullScreenMode:we,scale:n,isDisabledSharing:c,currentSharingInReadOnly:He,commentMode:tt,dispatch:X,handleZoomIn:this.handleZoomIn,handleZoomOut:this.handleZoomOut,handleZoomInitialScale:this.handleZoomInitialScale,handleZoomSelection:this.handleZoomSelection,handleZoomSpecifiedScale:this.handleZoomSpecifiedScale,handleShare:this.handleShare,handleToggleCommentMode:this.handleToggleCommentMode,isFromAbar:It,className:Xt});const _o=s&&!_e&&!(It||(0,Wh.M2)()),co=(0,W3.tg)();return(0,i.jsxs)("div",{className:f()("toolbar-right",Xt),children:[!ENV.IS_ON_PREMISES&&(co?(0,i.jsx)(Rw,{}):(0,i.jsx)(cw,{})),(0,i.jsx)(z3,{}),_o&&(0,i.jsx)(O3,{isDisabledSharing:c,onShare:this.handleShare,isNotLogined:!1}),!ee&&(0,i.jsx)(Dw,{}),P&&(_e?(0,i.jsx)(yh.A,{className:f()("preview-box",Ha.c.GUIDE_NOVICE_2309_STEP_4),toolTipName:(0,Vh.Qc)("preview"),toolTipDistance:8,svgIconName:"toolbar/preview",disabled:Ye,onClick:this.handleLaunchCombo}):(0,i.jsx)(mw,{})),d&&!_e&&(0,i.jsx)("div",{id:"design-export",onClick:this.handleDownload,children:(0,i.jsx)(yh.A,{toolTipName:I18N.ToolBar.download,toolTipDistance:8,disabled:w,active:F,svgIconName:"toolbar/download",className:"export-screen-btn"})}),(0,i.jsx)(F3.X,{}),(0,i.jsx)("div",{className:"design-zoom-box-container",children:(0,i.jsx)(U9.Pd,{className:"toolbar-right-zoom",scale:n,onZoomIn:this.handleZoomIn,onZoomOut:this.handleZoomOut,onZoomInitialScale:this.handleZoomInitialScale,onZoomSpecifiedScale:this.handleZoomSpecifiedScale,onZoomSelection:this.handleZoomSelection})}),we&&(0,i.jsx)(yh.A,{size:32,svgIconName:"toolbar/fullscreen_exit",toolTipName:I18N.PreferenceBar.exit_full_screen_mode,toolTipDistance:8,onClick:this.handleExitFullScreenMode})]})}}const Ow=(0,m.Mz)([y.r,Nm.bc,S.X_,S.Ur,S.z$,l.sI,A.MM],(t,n,s,c,d,w,P)=>{const{isEditingProjectMain:F,isEditingCombo:X}=t,ee=!F;return{isExportMenuShow:n,isShowPreview:F||X,isDisabledExport:ee,isShowExport:F,isDisabledSharing:ee,isShowSharing:F,scale:s,isDisabledLunchCombo:X&&!c,currentSharingInReadOnly:d,commentMode:w,previewViewMode:P}}),Fw=(0,o.Ng)(t=>Ow(t))(jw);var X3=e(62048);const W4=(0,u.AH)(["display:flex;align-items:center;height:100%;"]),Uw=u.Ay.div.withConfig({displayName:"styles__StyledToolbar",componentId:"sc-1bwimj5-0"})(["position:relative;height:","px;padding:0 8px;background:",";display:flex;justify-content:space-between;box-shadow:0 1px 0 ",";z-index:107;opacity:1;pointer-events:auto;transition:all 0.3s ease-in-out;&.isHidden{opacity:0;> *{pointer-events:none;}}&.isEmbedV2NotFull{height:32px;.toolbar-left svg.modao-logo{width:51px;height:30px;}}.back-icon{.svg-icon{width:24px;height:24px;}&.exit-combo .svg-icon{width:30px;height:30px;}}.toolbar-menu{width:16px;height:14px;}.toolbar-text,.toolbar-rectangle,.toolbar-circle,.toolbar-linkarea,.toolbar-line,.toolbar-image,.toolbar-org_members,.toolbar-version_record,.toolbar-download,.toolbar-preview,.toolbar-note,.toolbar-rResCanvas,.toolbar-annotate{width:32px;height:32px;}.toolbar-comment{[stroke]{stroke:currentColor;fill:none;}}.toolbar-widget_align_center,.toolbar-layer,.toolbar-group,.toolbar-ungroup,.toolbar-lock,.toolbar-un-lock{width:24px;height:24px;}.common-triangle-filled-down{width:8px;height:5px;}.toolbar-triangle-down{width:7px;height:4px;}.svg-icon{color:",";}.toolbar-left{min-width:466px;width:466px;",";&.isEmbed,&.isCommunity,&.isHtmlZip{.modao-logo{margin-right:13px}}&.isEmbed,&.isCommunity{.modao-logo{cursor:default;}}&.is-only-view{min-width:510px;width:510px;}.toolbar-icon-item:not(.back-icon):not(.undoIcon):not(.redoIcon){width:38px;}.logo{display:flex;align-items:center;cursor:pointer;.toolbar-logo-icon{width:32px;height:32px;margin-right:8px;path{fill:",";}}}.modao-logo{height:32px;margin-right:10px;}.mockitt-logo{width:106px;height:22px;cursor:pointer;margin-right:10px;}}.toolbar-left,.toolbar-center{.toolbar-menu-div{display:flex;align-items:center;.toolbar-menu-opener-notice{display:inline-block;width:6px;height:6px;background:#1684fc;border-radius:50%;top:4px;right:0;border:none;}}.edit-btn{display:flex;align-items:center;justify-content:center;width:58px;max-height:32px;.btn-icon-text-container{font-weight:500;}}.widget-box{display:flex;align-items:center;}.prd-box{display:flex;a{cursor:pointer;}.toolbar-icon-item{margin-right:8px;}}.shape-list-box{width:48px;height:32px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:6px;margin-right:8px;.shapeContainer{width:32px;height:32px;position:relative;.svg-icon{width:100%;}.toolbar-shape{&.toolbar-note,&.toolbar-annotate,&.toolbar-elbow,&.toolbar-vector{width:32px;height:32px;}}.circle{width:10px;height:10px;background:#1684fc;border:2px solid ",";border-radius:50%;position:absolute;top:2px;right:0;}}.shape-list-dropdown{height:100%;display:flex;align-items:center;.Tooltip{height:100%;}.shape-opener{width:100%;height:100%;margin-right:9px;margin-top:0;display:flex;align-items:center;justify-content:center;.toolbar-dropDown{width:7px;height:4px;}}&.is-open,&:hover{.toolbar-dropDown{margin-top:5px;transition:margin-top ease-in-out 0.2s;}}}&:not(.active):hover{background-color:",";}&:hover:active{background:",";}&.disabled{opacity:0.4;pointer-events:none;}&:not(.disabled).active{background-color:",";.shape-list-dropdown.is-open{background-color:unset;}}}.toolbar-menu-box{display:flex;align-items:center;border-radius:4px;margin-right:12px;.back-icon,.toolbar-menu-opener{svg{width:32px;height:32px;}&:hover:not(.disabled):not(.active){background:",";}&:hover:not(.disabled):active{background:",";}}.divider{width:1px;height:16px;height:0;margin:0 7px;background:",";}.toolbar-left-dropdown-menu.is-open{.toolbar-menu-opener:not(.disabled):not(.active){background:",";}}&.page{width:38px;height:32px;border-radius:4px;display:flex;align-items:center;justify-content:center;cursor:pointer;margin-right:0;.material-icon{width:38px;height:32px;flex:0 0 32px;.svg-icon{width:38px;height:32px;}}.shape-list-dropdown{width:100%;height:100%;display:flex;align-items:center;margin-right:9px;.toolbar-dropDown{width:7px;height:4px;}&:hover{.toolbar-dropDown{margin-top:5px;transition:margin-top ease-in-out 0.2s;}}}&.disabled{pointer-events:none;cursor:not-allowed;opacity:0.4;}}}.comment,.handMode{width:38px;height:32px;display:flex;align-items:center;justify-content:center;.svg-icon{width:32px;height:32px;}}.undoIcon,.redoIcon{.svg-icon{width:32px;height:32px;}}.project-name{padding:6px 0px;margin-right:12px;align-items:center;gap:10px;font-size:13px;font-weight:bold;color:",";max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;cursor:auto;}}.toolbar-center{",";flex:1;justify-content:center;max-width:calc(100% - 596px);min-width:334px;.toolbar_center_dropdown{.toolbar-icon-item{width:48px;}&.is-open{background-color:unset;.toolbar-icon-item{background-color:"," !important;}}}.toolbar-icon-item{width:32px;margin-right:10px;}.group-button,.lock-button{min-width:32px;&.active{background-color:"," !important;}}}.toolbar-right{min-width:466px;",";justify-content:flex-end;.missing-font{width:38px;display:flex;justify-content:center;border-radius:6px;&:hover{background-color:",";cursor:pointer;}&.active{background-color:",";}}&.toolbar-right-abar-import{padding-right:78px;}.backToOldVersion{margin-right:30px;text-decoration:underline;color:#1684fc;&:hover{color:#1169c9;}}#design-export{position:relative;.export-screen-btn svg{width:32px;}}.toolbar-icon-item{width:32px;}.design-zoom-box-container{.toolbar-right-zoom{width:72px;}}#sharing-box{margin-right:12px;.share-box{display:flex;align-items:center;height:32px;padding:0 16px;background:",";border-radius:6px;font-size:13px;font-weight:500;color:",";cursor:pointer;white-space:nowrap;&:hover:not(.disabled){background:",";}&:active:not(.disabled){background:",";}&.isNotLogined{background:transparent;color:",";border:1px solid ",";margin:0;color:",";background:",";border:1px solid ",";&:hover:not(.disabled){background:",";border:1px solid ",";&:lang(en){border:1px solid #000;}}&:active:not(.disabled){background:",";border:1px solid ",";&:lang(en){border:1px solid #000;}}}&.disabled{cursor:not-allowed;background:",";color:",";.svg-icon{color:",";}}}.share-box.show-animation{",";}}.zoom{display:flex;align-items:center;border:1px solid #E5E5E5;border-radius:3px;}}&:hover{.svg-icon{.fore{color:",";}}}&.isDeleteRulerLine{pointer-events:none;}@media only screen and (max-width:1082px){&.isEmbedV2NotFull{.toolbar-left,.toolbar-right{min-width:calc(50% - 75px);}}}"],I.E0,t=>t.theme.color_bg_white,t=>t.theme.color_bg_border_01,t=>t.theme.color_text_L1,W4,t=>t.theme.color_text_L1,t=>t.theme.color_bg_white,t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_bg_border_02,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_text_L1,W4,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_btn_secondary_active,W4,t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_btn_primary_normal,t=>t.theme.color_text_btn,t=>t.theme.color_btn_primary_hover,t=>t.theme.color_btn_primary_clicked,t=>t.theme.color_text_L1,t=>t.theme.color_bg_border_02,t=>t.theme.color_text_L1,t=>t.theme.color_bg_white,t=>t.theme.color_bg_border_02,t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_bg_border_02,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_bg_border_02,t=>t.theme.color_btn_primary_disabled,t=>t.theme.color_text_disabled01,t=>t.theme.color_text_disabled01,X3.e,t=>t.theme.color_primary_brand01);class zw extends r.PureComponent{render(){const{designOptions:n,rootProject:s,isShowExitCombo:c,screenMeta:d,isDeleteRulerLine:w,onlyView:P,isCommunityPreview:F,isEmbedV2Preview:X,isHtmlZipPreview:ee,fullScreenMode:pe,importAbarOptions:ye,currentSharingInReadOnly:Ae}=this.props,we=P&&(Ae==null?void 0:Ae.comment_permission)==="off";return(0,i.jsxs)(Uw,{id:"mb-toolbar","data-is-widget-insertable":!1,className:f()(Ha.c.GUIDE_TOOLBAR_COMMON,Ha.c.GUIDE_NOVICE_2309,{isDeleteRulerLine:w,isEmbedV2:X,isEmbedV2NotFull:X&&!pe}),children:[(0,i.jsx)(t9,{onlyView:P,isCommunityPreview:F,isEmbedV2Preview:X,isHtmlZipPreview:ee,isShowExitCombo:c,designOptions:n,rootProject:s,screenMeta:d,fullScreenMode:pe,isDisabledComment:we,importAbarOptions:ye}),(0,i.jsx)(F9,{onlyView:P,isCommunityPreview:F,isEmbedV2Preview:X,rootProjectName:s==null?void 0:s.name,rootProject:s,isShowExitCombo:c,screenMeta:d,importAbarOptions:ye,isHtmlZipPreview:ee,fullScreenMode:pe,isDisabledComment:we}),(0,i.jsx)(Fw,{onlyView:P,isCommunityPreview:F,isEmbedV2Preview:X,isHtmlZipPreview:ee,rootProject:s,fullScreenMode:pe,isShowExitCombo:c,importAbarOptions:ye})]})}}const Ww=(0,m.Mz)([y.r,S.PL,S.W4,S.Ur,g.Q,A.jx,A.pH,A.rg,A.uu,A.T7,S.YT,S.fv,S.z$],(t,n,s,c,d,w,P,F,X,ee,pe,ye,Ae)=>{const{isDesign:we}=s,{isEditingCombo:_e}=t,Fe=_e&&we,Ye=w===R.qi.OnlyView;return{screenMeta:c,rootProject:n,designOptions:s,isShowExitCombo:Fe,isDeleteRulerLine:d,onlyView:Ye,isCommunityPreview:P,isEmbedV2Preview:F,isHtmlZipPreview:X,fullScreenMode:ee,projectMeta:pe,importAbarOptions:ye,currentSharingInReadOnly:Ae}}),Vw=(0,o.Ng)(t=>Ww(t))(zw);var Hw=e(71539),Kw=e(35709),Q3=e(47813),V4=e(54608),Gw=e(63552),Yw=e(82572);function Zw(t){let{device:n,deviceKey:s,width:c,height:d}=t;const w=(0,o.wA)(),P=(0,o.d4)(S.Ur),F=(0,o.d4)(S.wq),X=()=>{const ee=(0,Q1.X0)(P,{width:c,height:d,device:s}),pe={...F,...ee};w({type:"entry:batch:create:items:position",payload:{finalWidget:pe}}),w({type:"set:quick-create-widget",payload:{widget:null}}),(0,At.s9)({page:{device:s}})};return(0,i.jsxs)(Xw,{onClick:X,children:[(0,i.jsx)("span",{className:"deviceName",children:(0,z0.d0)({model:s,device:n,isPageSize:!0})}),(0,i.jsxs)("span",{className:"deviceSize",children:[c," \xD7 ",d]})]})}const Xw=u.Ay.div.withConfig({displayName:"SizeItem__StyledSizeItem",componentId:"sc-1ynrsz-0"})(["width:100%;padding:6px 16px 6px 32px;line-height:20px;display:flex;justify-content:space-between;cursor:pointer;.deviceName{color:",";}.deviceSize{color:",";white-space:nowrap;display:flex;align-items:center;}&:hover{background:",";}&:first-child{margin-top:8px;}&:last-child{margin-bottom:8px;}"],t=>t.theme.color_text_L1,t=>t.theme.color_text_L3,t=>t.theme.color_btn_secondary_hover),Qw=u.Ay.div.withConfig({displayName:"CanvasSizeSelect__StyledCanvasSizeSelect",componentId:"sc-1jbp3ik-0"})([".collapse-panel-wrapper{&:not(:first-child){margin-top:2px;border-top:1px solid ",";}.collapse-panel{header{height:24px;&:hover{background:none;}}&:not(.expanded) header{margin:4px 0;}&.expanded header{margin-top:4px;}div.title{font-weight:500;margin-left:6px;}}}"],t=>t.theme.color_bg_border_02),Jw=(0,r.memo)(t=>{var n;let{defaultDevice:s}=t;const[c,d]=(0,r.useState)(s!=="none"&&((n=z0.v2[s])==null?void 0:n.device)||"iphone"),w=P=>()=>{d(c===P?"":P)};return(0,i.jsx)(Qw,{children:z0.a$.map((P,F)=>{let{device:X,modelList:ee}=P;const pe=c===X;return(0,i.jsx)("div",{className:"collapse-panel-wrapper",children:(0,i.jsx)(Yw.A,{id:F+"1",title:(0,z0.KB)({device:X}),width:250,expanded:pe,onToggle:w(X),children:ee.map((ye,Ae)=>{let{width:we,height:_e,key:Fe}=ye;return(0,i.jsx)(Zw,{device:X,deviceKey:Fe,width:we,height:_e},Ae)})},F)},"collapse-panel-wrapper-"+F)})})});var $w=e(88976);const qw=u.Ay.div.withConfig({displayName:"styles__StyledExportButton",componentId:"sc-17z87l9-0"})(["width:100%;height:40px;background:",";padding:0 10px;display:flex;justify-content:flex-end;align-items:center;z-index:1;border-top:1px solid ",";.button-root{width:100%;}.svg-icon.btn-loading{animation:spinning 2s linear infinite;}"],t=>t.theme.color_bg_white,t=>t.theme.color_bg_border_01);class eS extends r.PureComponent{constructor(){super(...arguments),(0,p.A)(this,"handleClick",()=>{MB.global.experienceLoginModalHelper("isSave")||this.props.dispatch({type:"entry:toolbar:open:export_menu"})})}render(){return(0,i.jsx)(qw,{children:(0,i.jsx)(Zn.lV,{className:"export-screen-btn2",onClick:this.handleClick,children:I18N.SettingPanel.export})})}}var tS=e(36603),H4=e(41197);class oS extends r.PureComponent{render(){const{updateHeight:n,updateWidth:s,selectNewModel:c,updateOrientation:d,deviceType:w,deviceWidth:P,deviceHeight:F,orientation:X}=this.props,ee=P==="\u591A\u4E2A\u503C",pe=F==="\u591A\u4E2A\u503C";return(0,i.jsxs)(nS,{title:I18N.ScreenPanel.prototype_presentation,children:[(0,i.jsxs)("div",{className:"screen-info height-32",children:[(0,i.jsx)(tS.A,{model:w,renderList:z0.X6,onSelect:c}),(0,i.jsx)("div",{className:"placeholder"}),(0,z0.$n)(w)&&w!=="\u591A\u4E2A\u503C"&&(0,i.jsxs)("section",{className:f()("orientation-body"),children:[(0,i.jsx)(Cd.A,{content:I18N.SettingPanel.portrait,children:(0,i.jsx)("div",{className:f()("orientation-option",{active:X==="portrait"}),onClick:()=>{d({deviceOrientation:"portrait"})},children:(0,i.jsx)(Je.C,{className:"icon",name:"setting_panel/screen/screen_portrait"})})}),(0,i.jsx)(Cd.A,{content:I18N.SettingPanel.landscape,children:(0,i.jsx)("div",{className:f()("orientation-option",{active:X==="landscape"}),onClick:()=>{d({deviceOrientation:"landscape"})},children:(0,i.jsx)(Je.C,{className:"icon",name:"setting_panel/screen/screen_landscape"})})})]})]}),w==="customize"&&(0,i.jsxs)("div",{className:"general-line height-32",children:[(0,i.jsx)(E1.A,{className:"general-input screen-width-edit step-input-width-72",title:"W",attr:"width",value:ee?void 0:P,disabled:!1,min:1,max:99999,isNotVerify:ee,placeholder:"\u591A\u4E2A\u503C",onConfirm:s}),(0,i.jsx)(E1.A,{className:"general-input screen-height-edit step-input-width-72",title:"H",attr:"height",value:pe?void 0:F,disabled:!1,min:1,max:99999,isNotVerify:pe,placeholder:"\u591A\u4E2A\u503C",onConfirm:n})]})]})}}const nS=(0,u.Ay)(H4.A).withConfig({displayName:"indexui__StyledDeviceSettings",componentId:"sc-1wt9e1z-0"})(["",";.screen-info{display:flex;align-items:center;padding:0 10px;}.placeholder{flex:1}.orientation-body{display:flex;flex-direction:row;justify-content:flex-start;margin-left:10px;.orientation-option{cursor:pointer;width:24px;height:24px;border-radius:4px;&:not(.active):hover{background:",";color:",";}&.active{color:",";background:",";}.icon{font-size:24px;margin-right:6px;}.svg-icon{color:",";}&:first-child{margin:0 3px;}}}.general-line{display:flex;align-items:center;padding:0 10px;&.is-clip-content-line{padding-left:5px;margin-top:4px;.Check-label{margin-left:10px;}}.general-input{flex:0 0 66px;display:flex;justify-content:space-between;align-items:center;margin-bottom:4px;&:not(:last-child){margin-right:8px;}&.is-active:not(.has-menu):not(.is-disabled) .title{color:",";}}.active{background:#1A70D8;}}"],Ci.L9,t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_text_L1,t=>t.theme.color_text_L1,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_text_L1,t=>t.theme.color_text_L3);var J3=e(36037);function sS(t){const{screenSelection:n,currentPage:s}=t,[c,d]=(0,r.useState)(!1),[w,P]=(0,r.useState)(0),F=(0,o.wA)(),X=(0,Pm.FT)(n),ee=X.length?X:[s.key],pe=si=>{var Hi;let ra;si.key==="customize"?ra={device:si.key}:ra={deviceW:si.width,deviceH:si.height,device:si.key};const{screen:Ta,currentProject:Pi}=t,Bi=It(Ta);!(0,z0.$n)(si.key)&&(Bi==null||(Hi=Bi.hotAttr)==null?void 0:Hi.deviceOrientation)==="landscape"&&(ra={...ra,deviceOrientation:"portrait"}),F({type:"entry:update:root-project:object",payload:{currentProject:{...Pi,model:si.key,device:si.device,width:si.width,height:si.height}}}),tt(ra),(0,Lc.Le)(si.key)},ye=si=>{tt({deviceScroll:si})},Ae=si=>{tt({isShowDeviceGuide:si})},we=si=>{tt(si)},_e=si=>{si.trim()===""||si.includes("/")?MB.notice({text:I18N.Common.name_cannot_be_empty_or_symbol,type:"warning"}):tt({name:si}),d(!1)},Fe=()=>{d(!0)},Ye=si=>{tt({deviceW:si})},He=si=>{tt({deviceH:si})},tt=si=>{const{screen:Hi}=t,ra=[];ee.forEach(Ta=>{const Pi=sdkStore.getHotItem(Ta),Bi={...Pi.hotAttr,...si},Ji={...Pi,hotAttr:Bi};P(w+1),Hi.cid===Ta&&F({type:"current:update:state",payload:{currentScreen:{...Ji.hotAttr,cid:Ji.key}}}),ra.push([Ji.key,Bi])}),sdkStore.updateHotAttrMergeBatch(ra),F({type:"entry:update:screen:list"})},It=si=>sdkStore.getHotItem(si.cid),Nt=si=>{F({type:"entry:update:all-screen:bgcolor",payload:{fill:{...si,fillIsVisible:!0}}})},Lt=()=>{F({type:"entry:update:all-screen:bgcolor",payload:{fill:{fillIsVisible:!1,fill:"solid",solidColor:I.kV[wn||I.Sx.LIGHT]}}})},Xt=si=>{const{screen:Hi}=t,ra=It(Hi).hotAttr,{fill:Ta}=ra,Pi=(0,sd.BN)(Ta.solidColor),Bi=(0,sd.u_)({...Pi,A:si}),Ji={...Ta,fillIsVisible:!0,solidColor:Bi};Nt(Ji)},_o=si=>{Xt(si),sdkStore.combineMerge("screen-fill-update")},co=()=>sdkStore.combineMergeMark("screen-fill-update"),{isProject:yn,isMultipleScreen:An,screen:In,theme:wn}=t,_n=yn,Jn=X.length?It({cid:X[0]}).hotAttr:It(In).hotAttr,{fill:rs}=Jn,as=(0,I.t6)(wn,{fill:rs}),mi=(0,sd.BN)(as).A,[ha,Ca,ms,qn]=(()=>{const si=ee.map(Ea=>{const Ba=sdkStore.getHotItem(Ea).hotAttr;return[Ba.device,Ba.deviceScroll,Ba.deviceW,Ba.deviceH]}),[Hi,ra,Ta,Pi]=si[0];let[Bi,Ji,Ui,wa]=[Hi,ra,Ta,Pi];for(const Ea of si)Hi!==Ea[0]&&(Bi="\u591A\u4E2A\u503C"),ra!==Ea[1]&&(Ji="\u591A\u4E2A\u503C"),Ta!==Ea[2]&&(Ui="\u591A\u4E2A\u503C"),Pi!==Ea[3]&&(wa="\u591A\u4E2A\u503C");return[Bi,Ji,Ui,wa]})();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{children:(0,i.jsx)(aS,{className:"screenSettings",children:(0,i.jsx)("div",{className:f()("layer-size","screen-name-edit",{isLayerHover:!c,layerState:c}),onClick:Fe,children:(0,i.jsx)(O4,{value:An?I18N.LeftSidePanel.multi_select_page:Jn.name,className:"layer-name",isEditing:c,onConfirm:_e})})})}),(0,i.jsx)($3,{title:I18N.ScreenPanel.background_color,children:(0,i.jsx)("section",{className:"bgcolor-body",children:(0,i.jsxs)("div",{className:"screen-bg-line height-32",children:[(0,i.jsx)(h0.R_,{attr:"fill",className:h0.Fw,color:{...rs,solidColor:as},pIsSolidColorOnly:!0,onChange:Nt,onResetColor:rs!=null&&rs.fillIsVisible?Lt:null}),ee.length===1&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(J3.A,{value:mi,max:100,onChange:Xt,onConfirm:_o,onMouseDown:co}),(0,i.jsx)(E1.A,{precision:0,className:"input-number",min:0,max:100,suffix:"%",value:mi,onConfirm:Xt})]})]})})}),(0,i.jsx)(oS,{updateOrientation:we,updateWidth:Ye,updateHeight:He,selectNewModel:pe,deviceType:ha,deviceWidth:ms,deviceHeight:qn,orientation:Jn.deviceOrientation}),ha!=="none"&&ha!=="\u591A\u4E2A\u503C"?(0,i.jsx)(rS,{title:I18N.ScreenPanel.when_artboards_exceed_the_device,children:(0,i.jsx)("section",{className:"size-body",children:(0,i.jsxs)("div",{className:"screen-info",children:[(0,i.jsx)("div",{className:"screen-setting-line select height-32",children:(0,i.jsx)(ge.mq,{value:Ca,placeholder:Ca,optionList:iS(),onChange:ye,isMultipleScreen:An})}),(0,i.jsx)("div",{className:"screen-setting-line check height-32",children:(0,i.jsx)(Ei.A,{className:f()("check",Ei.p),isChecked:Jn.isShowDeviceGuide,onChange:Ae,label:I18N.SettingPanel.overflowLine})})]})})}):(0,i.jsx)("div",{style:{flex:"1"}}),_n&&(0,i.jsx)(eS,{dispatch:F})]})}const iS=()=>[{label:I18N.SettingPanel.singlePanelScroll.hide,value:"hide"},{label:I18N.SettingPanel.singlePanelScroll.vertical,value:"vertical"},{label:I18N.SettingPanel.singlePanelScroll.horizontal,value:"horizontal"},{label:I18N.SettingPanel.singlePanelScroll.auto,value:"auto"}],aS=u.Ay.div.withConfig({displayName:"ScreenSettings__StyledNameSetting",componentId:"sc-12gpg8f-0"})(["padding:0px 16px;height:40px;width:240px;display:flex;align-items:center;color:",";font-weight:500;",";.layer-size{flex:1;border:1px solid transparent;cursor:text;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;.is-editing{textarea{font-weight:500;}}}.layer-name{flex:1;width:100%;height:23px;line-height:22px;overflow:hidden;border-bottom:1px solid transparent;font-weight:500;}.layerState{border-bottom:1px solid ",";}.isLayerHover{&:hover{border-bottom:1px solid ",";}}"],t=>t.theme.color_text_L1,Ci.L9,t=>t.theme.color_proto,t=>t.theme.color_proto),rS=(0,u.Ay)(H4.A).withConfig({displayName:"ScreenSettings__StyledScrollSetting",componentId:"sc-12gpg8f-1"})(["",";flex:1;.screen-info{padding:0 16px;.screen-setting-line{display:flex;align-items:center;&.select{margin-left:-7px;}&.check{margin-left:-6px;.Check-label{color:",";}}}}"],Ci.L9,t=>t.theme.color_text_L1),$3=(0,u.Ay)(H4.A).withConfig({displayName:"ScreenSettings__StyledBgColorSetting",componentId:"sc-12gpg8f-2"})(['.bgcolor-body{padding:0 10px;.screen-bg-line{display:flex;justify-content:space-between;align-items:center;[type="slider"]{width:120px;margin:0 8px;.rail{.fill{background-color:',";}}}.input-number{width:60px;input::placeholder{color:",";}}}}&.combo-setting{border-top:none;}"],t=>t.theme.color_proto,t=>t.theme.color_text_L2),lS=(0,m.Mz)([y.r,S.Ur,pt.Hs,T.O4,S.PL,pt.p$],(t,n,s,c,d,w)=>{let{isEditingProjectMain:P}=t;const F=n.orientation==="landscape",X=P&&(0,$w.M)(d,n);let ee=(0,Gt.qk)(d.name);const pe=d.model,ye=s.length>1;return P&&(ee=ye?I18N.SettingPanel.choose_pages.replace(/%page/,s.length):""+(n==null?void 0:n.name)),{isProject:P,canSetOrientation:X,isScreenLandScape:F,screen:n,projectModel:pe,displayName:ee,isEditingProjectMain:P,isMultipleScreen:ye,screenSelection:s,theme:c,currentProject:d,currentPage:w}}),cS=(0,o.Ng)(t=>lS(t))(sS);var dS=e(27643),pS=e(15297),hS=e(14116);const uS=u.Ay.div.withConfig({displayName:"styles__StyledLayerInfo",componentId:"sc-16umwuo-0"})(["height:40px;display:flex;align-items:center;margin:0 0 8px -9px;padding:0 16px;color:",";font-weight:500;border-bottom:1px solid ",";.layer-size{flex:1;border:1px solid transparent;cursor:text;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;.is-editing{textarea{font-weight:500;}}}.layer-name{flex:1;width:100%;height:23px;line-height:22px;overflow:hidden;border-bottom:1px solid transparent;font-weight:500;}.layerState{border-bottom:1px solid ",";}.isLayerHover{&:hover{border-bottom:1px solid ",";}}.action,.my-widget-action{display:inline-block;width:24px;height:24px;text-align:center;color:",";border-radius:4px;.icon{width:24px;height:24px;color:",";}&.icon-disabled{cursor:not-allowed;color:",";}&:not(.icon-disabled):hover{background:",";}&:not(.icon-disabled):active{background:",";}}.actions,.my-widget-action{display:flex;align-items:center;}.divider{display:inline-block;content:'';width:1px;height:24px;background:",";margin-right:6px;margin-left:10px;}"],t=>t.theme.color_text_L1,t=>t.theme.color_bg_border_01,t=>t.theme.color_proto,t=>t.theme.color_proto,t=>t.theme.color_text_L2,t=>t.theme.color_text_L1,t=>t.theme.color_text_disabled01,t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_bg_border_01);class mS extends r.PureComponent{constructor(n){super(n),(0,p.A)(this,"handleEdit",()=>{this.setState({isEditing:!0})}),(0,p.A)(this,"handleLayerName",s=>{const{onChange:c}=this.props;s.trim()===""||s.includes("/")?MB.notice({text:I18N.Common.name_cannot_be_empty_or_symbol,type:"warning"}):c(s,"name"),this.setState({isEditing:!1})}),this.state={isEditing:!1}}render(){const{isEditing:n}=this.state,{layerName:s}=this.props;return(0,i.jsx)(uS,{className:"layer-info",children:(0,i.jsx)("div",{className:f()("layer-size",{isLayerHover:!n,layerState:n}),onClick:this.handleEdit,children:(0,i.jsx)(hS.A,{value:s,className:"layer-name",isEditing:n,onConfirm:this.handleLayerName},s)})})}}var gS=e(24207);const fS=u.Ay.div.withConfig({displayName:"styles__StyledBasketSetting",componentId:"sc-rtsi1b-0"})([".layer-info{margin-left:0;}.general-line{display:flex;align-items:center;padding-left:6px;margin-bottom:8px;&.is-clip-content-line{padding-left:5px;margin-top:4px;.Check-label{margin-left:10px;}}.general-input{flex:0 0 72px;display:flex;justify-content:space-between;align-items:center;&:not(:last-child){margin-right:4px;}&.is-active:not(.has-menu):not(.is-disabled) .title{color:",";}}.active{background:#1a70d8;}}.state-scroll-container{padding:8px 0;border-top:1px solid ",";}"],t=>t.theme.color_text_L3,t=>t.theme.color_bg_border_01),yS=(0,m.Mz)([A.bt,A.PR],(t,n)=>({editingBasketRefPage:t,editingBasketHotItem:n})),xS=(0,r.memo)(()=>{const{editingBasketRefPage:t,editingBasketHotItem:n}=(0,o.d4)(yS),s=(0,o.wA)(),{hotAttr:c,key:d}=n||{},w={...c,key:d},{w:P,h:F,scroll:X,name:ee,isLockAspect:pe}=w,ye=(0,r.useCallback)((Ae,we)=>{const _e=we==="w"||we==="h";let Fe={key:d,hotAttr:{[we]:Ae}};if(_e&&pe){const He=(0,gS.K)(P,F),tt=we==="w"?Ae:Ae*He,It=we==="h"?Ae:Ae/He;Fe={...Fe,hotAttr:{...Fe.hotAttr,w:tt,h:It}}}s({type:"entry:widget:change",payload:{flatChgList:[Fe]}});const Ye={...n,hotAttr:{...n.hotAttr,[we]:Ae}};s(R.GO.editBasketHotItem(Ye)),_e&&s({type:"entry:layout:basket-canvas"}),we==="name"&&(s({type:"artboard:update:state",payload:{basketPathCacheTag:Math.random()}}),t&&s({type:"muban-panel:update:mubanList",payload:{mubanList:(0,p0.AG)()}}))},[s,n,t,F,pe,d,P]);return(0,i.jsxs)(fS,{children:[(0,i.jsx)(mS,{layerName:ee,onChange:ye}),(0,i.jsxs)("div",{className:f()("general-line"),children:[(0,i.jsx)(E1.A,{className:"general-input",title:"W",attr:"w",value:P,disabled:!1,min:0,max:99999,placeholder:P,onConfirm:ye}),(0,i.jsx)(E1.A,{className:"general-input",title:"H",attr:"h",value:F,disabled:!1,min:0,max:99999,placeholder:F,onConfirm:ye})]}),(0,i.jsxs)("div",{className:"state-scroll-container",children:[(0,i.jsx)(pS._,{panel:w,dispatch:s,editingBasketRefPage:t}),(0,i.jsx)(dS.E,{scroll:X,handleChange:ye})]})]})});class vS extends r.PureComponent{constructor(){super(...arguments),(0,p.A)(this,"handleChangeFill",n=>{this.props.dispatch({type:"entry:update:root-project:bgcolor",payload:{fill:{...n,fillIsVisible:!0}}})}),(0,p.A)(this,"handleRestoreBgColor",()=>{const{dispatch:n,theme:s}=this.props;n({type:"entry:update:root-project:bgcolor",payload:{fill:{fillIsVisible:!1,fill:"solid",solidColor:I.kV[s||I.Sx.LIGHT]}}})}),(0,p.A)(this,"handleFillAlphaChanged",n=>{const{currentScreen:s}=this.props,{fill:c}=s,d=(0,sd.BN)(c.solidColor),w=(0,sd.u_)({...d,A:n}),P={...c,fillIsVisible:!0,solidColor:w};this.handleChangeFill(P)}),(0,p.A)(this,"handleFillAlphaConfirm",n=>{this.handleFillAlphaChanged(n),sdkStore.combineMerge("fill-update")}),(0,p.A)(this,"handleFillAlphaMouseDown",()=>sdkStore.combineMergeMark("fill-update"))}render(){const{theme:n,currentScreen:s,isEmptyScreen:c}=this.props;if(c||!s)return null;const{fill:d}=s,w=(0,I.t6)(n,s),P=(0,sd.BN)(w).A;return(0,i.jsx)($3,{className:f()("combo-setting",{disabled:c}),title:I18N.ScreenPanel.background_color,children:(0,i.jsx)("section",{className:"bgcolor-body",children:(0,i.jsxs)("div",{className:"screen-bg-line height-32",children:[(0,i.jsx)(h0.R_,{attr:"fill",color:{...d,solidColor:w},pIsSolidColorOnly:!0,onChange:this.handleChangeFill,onResetColor:d!=null&&d.fillIsVisible?this.handleRestoreBgColor:null}),(0,i.jsx)(J3.A,{value:P,max:100,onChange:this.handleFillAlphaChanged,onConfirm:this.handleFillAlphaConfirm,onMouseDown:this.handleFillAlphaMouseDown}),(0,i.jsx)(E1.A,{precision:0,className:"input-number",min:0,max:100,suffix:"%",value:P,onConfirm:this.handleFillAlphaChanged})]})})})}}const bS=(0,m.Mz)([S.Ur,C2.C,T.O4],(t,n,s)=>{let{isEmptyScreen:c}=n;return{currentScreen:t,isEmptyScreen:c,theme:s}}),CS=(0,o.Ng)(t=>bS(t))(vS),wS=u.Ay.aside.withConfig({displayName:"styles__StyledSettingPanel",componentId:"sc-1v83yrb-0"})(["display:flex;flex:1;flex-direction:column;background:",";overflow:hidden;position:relative;width:","px;& > header{display:flex;height:40px;min-width:60px;padding-left:16px;padding-right:12px;border-bottom:1px solid ",";.title{color:",";line-height:40px;font-weight:600;}.design-warning{display:flex;align-items:center;justify-content:center;margin-left:5px;color:",";&:hover{color:",";}.svg-icon{width:14px;height:14px;}}}.height-32{height:32px;}.margin-left-n6{margin-left:-6px;}.margin-right-n6{margin-right:-6px;}.step-input-width-72{flex:0 0 72px;display:flex;justify-content:space-between;align-items:center;.title{width:24px;height:24px;padding:0;flex-shrink:0;margin-left:1px;svg{width:24px;height:24px;color:inherit;}}input{margin-left:4px;}&:not(:last-child){margin-right:4px;}}.width-66{width:66px;}"],t=>t.theme.color_bg_white,I.xM,t=>t.theme.color_bg_border_01,t=>t.theme.color_text_L1,t=>t.theme.color_text_L2,t=>t.theme.color_text_L2),SS=(0,u.Ay)(V4.A).withConfig({displayName:"styles__StyledNewSlideNav",componentId:"sc-1v83yrb-1"})(["margin-left:-8px;.nav-label{padding:0;}.nav-item{padding:0 8px;&.active{font-weight:600;&::after{display:none;}}}height:40px;min-height:40px;.nav-item{font-size:12px;}"]),AS=(0,Dr.R)((t,n,s,c)=>{let{isGlobalSetting:d,isQuickCreateCanvasSetting:w,isWidgetSetting:P,isCanvasSetting:F,isBasketSetting:X,isEditingComboSetting:ee,isPencilSetting:pe}=t;const ye=[{key:"main",title:I18N.ScreenPanel.page_setting,label:I18N.ScreenPanel.page_setting}],Ae=[{key:"setting",title:I18N.ScreenPanel.artboard_size,label:I18N.ScreenPanel.artboard_size}],we=[{key:"setting",title:I18N.SettingPanel.panel,label:I18N.SettingPanel.style},{key:"main",title:I18N.Interaction.new_name,label:I18N.Interaction.new_name,disabled:!!c}],_e=[{key:"setting",title:I18N.SettingPanel.panel,label:I18N.SettingPanel.style},{key:"main",title:I18N.Interaction.new_name,label:I18N.Interaction.new_name,disabled:!!c}];let Fe=I18N.builtin.dynamic_widget_setting;if(X&&n){const It=sdkStore.getHotItem(n);if(It){const{hotAttr:{basket:Nt}}=It;Nt==="bMuban"&&(Fe=I18N.SettingPanel.master_settings)}}X&&s&&(Fe=I18N.SettingPanel.master_settings);const Ye=[{key:"setting",title:Fe,label:Fe}],He=[{key:"setting",title:I18N.SettingPanel.panel,label:I18N.SettingPanel.style}],tt=[{key:"setting",title:I18N.SettingPanel.panel,label:I18N.SettingPanel.style},{key:"main",title:I18N.SettingPanel.design.link_event,label:I18N.SettingPanel.tab_event,disabled:!0}];return w?Ae:pe?tt:d?ye:P?we:F?_e:X?Ye:ee?He:[]});function nE(t){let{direction:n,distance:s=3,toolTippedWillBe:c}=t;const d={whiteSpace:"nowrap"},w=c&&c.getBoundingClientRect();if(!w)return d;const{x:P,y:F,width:X,height:ee}=w;switch(n){case"left":{Object.assign(d,{top:F+ee/2,left:P-s,transform:"translateX(-100%) translateY(-50%)"});break}case"right":{Object.assign(d,{top:F+ee/2,left:P+X+s,transform:"translateY(-50%)"});break}case"up":{Object.assign(d,{left:P+X/2,top:F-s,transform:"translateX(-50%) translateY(-100%)"});break}case"down":Object.assign(d,{left:P+X/2,top:F+ee+s,transform:"translateX(-50%)"})}return d}var IS=e(50824),q3=e(31284),K4=e(80814),MS=e(96391),TS=e(11199),ES=e(27288),kS=e(41434),_S=e(72093),PS=e(11573),NS=e(34708),kg=e(97788);const LS=t=>{let{initPos:n}=t;const{editingInteraction2:s,currentCanvas:c,selectInteractionKey:d,itemKey:w,interactionTree:P,selectItaInfo:F,selectTreeNode:X,interactionStore:ee}=(0,K4.Cl)({from:"treePanelRight"}),pe=ee==null?void 0:ee.query.getNode(d),{position:ye,setPosition:Ae}=(0,_S.J)(n),we=(0,o.d4)(mt.R7.query.getEditorFloatOpenFrom),_e=(0,o.wA)(),Fe=(0,r.useRef)(null),Ye=(It,Nt)=>{Ae({left:It,top:Nt})};(0,r.useEffect)(()=>()=>{we!=="itaConnector"&&mt.R7.dispatchState({editorFloatPosition:{top:mt.iA,left:mt.iA}},_e)},[]),(0,r.useLayoutEffect)(()=>{const It=Fe.current!==n;if(Fe.current=n,we==="alignTop")return;const Nt=document.getElementById("tree-editor-float");if(!Nt)return;if(It){if(Fe.current=n,we==="itaConnector")return;setTimeout(()=>{const _o=document.querySelector('#interaction-tree-list [data-key="'+d+'"]'),co=_o?_o.getBoundingClientRect().top:n.top,yn=_o?_o.getBoundingClientRect().left:n.left,{height:An}=Nt.getBoundingClientRect(),{finalTop:In,finalLeft:wn}=(0,kg.X2)({top:co,left:yn-mt.mJ,height:An});Ae({left:wn,top:In})},20);return}const{height:Lt}=Nt.getBoundingClientRect(),{finalTop:Xt}=(0,kg.X2)({top:ye.top,left:ye.left,height:Lt});Ae({left:ye.left,top:Xt})},[n,pe]),(0,r.useEffect)(()=>{(!P||F.type==="empty"||F.type==="normal"&&!s)&&setTimeout(()=>{mt.R7.dispatchState({newInteractionTypeEditingKey:""},_e)},4)},[_e,s,P,F.type]);const He=()=>{_e(mt.R7.command.clearAllCommand({withClearCellLinks:!0}))},tt=It=>{It.target.closest("#mb-toolbar")&&_e(mt.R7.command.clearAllCommand({}))};return!P||F.type==="empty"||F.type==="normal"&&!s?null:(0,i.jsx)(ir.A,{position:{left:ye.left,top:ye.top},onMove:Ye,children:(0,i.jsxs)(q3.$s,{id:"tree-editor-float",className:Ha.c.GUIDE_PAGE_CREAT_LINK2,children:[(0,i.jsx)(NS.C,{uiFrom:"treePanelRight",hasTrash:F.type!=="action",interactionTree:P,interactionStore:ee,selectTreeNode:X,isClearAll:!0,onClose:He}),F.type==="normal"?(0,i.jsx)(kS.A,{link:s,currentCanvas:c,currentWidgetKey:w,interactionTree:P,interactionStore:ee,hasTrash:!1}):(0,i.jsx)(PS.S,{itemKey:w,interactionDummyKey:d,selectItaInfo:F,interactionTree:P,interactionStore:ee,uiFrom:"treePanelRight"}),(0,i.jsx)(Hc.A,{target:document,onMouseDown:(0,Hc.t)(tt,{capture:!0})})]})})},DS=()=>{const t=(0,o.d4)(mt.R7.query.getIsEditorFloatOpen),n=(0,o.d4)(mt.R7.query.getEditorFloatPosition);return t?(0,dr.createPortal)((0,i.jsx)(i.Fragment,{children:(0,i.jsx)(LS,{initPos:n})}),document.body):null};var BS=e(50167),RS=e(58724);const jS=()=>{const t=(0,o.wA)(),n="treePanelRight",{interactionTree:s,itemKey:c,isEditingCombo:d,editingPanelRefPage:w,selectInteractionKey:P,disableType:F,isGlobalLink:X,interactionStore:ee}=(0,K4._C)({from:n});(0,o.d4)(BS.wN);const{collapseList:pe,handleCollapse:ye}=(0,K4.zi)({cacheKey:c,interactionTree:s}),Ae=(0,r.useCallback)((_e,Fe)=>{Fe?(t(mt.R7.command.interactionEditorFloatOpenCommand({directlySelect:!0,interactionType:Fe.attr.interactionType})),(0,kg.Es)(Fe.attr.key)&&(0,RS.X)()):t(mt.R7.command.interactionEditorFloatOpenCommand({directlySelect:!0}))},[t]);(0,r.useEffect)(()=>{P&&(0,kg._6)({itaKey:P})},[]);const we=_e=>{if(_e.target.closest("#interaction-tree-list")===_e.target){t(mt.R7.command.interactionSelectCommand({selectInteractionKeyList:[]}));return}_e.target.closest("#interaction-tree-list")||_e.target.closest("#interaction-panel-float")||_e.target.closest(".SelectMenuPortal")||_e.target.closest(".DropdownMenuPortal")||_e.target.closest(".context-menu-mask")||_e.target.closest("#tree-editor-float")||_e.target.closest(".quickCreateItaBtn")||_e.target.closest(".setting-panel-header")||t(mt.R7.command.interactionSelectCommand({selectInteractionKeyList:[]}))};return(0,i.jsxs)(q3.LY,{onClick:we,className:f()("link-settings",Ha.c.GUIDE_PAGE_CREAT_LINK),children:[(0,i.jsx)(TS.m,{disabled:F!=="none",showPreference:!X,buttonType:X?"global":"common",uiFrom:n,handleCollapse:ye,interactionTree:s,interactionStore:ee}),F!=="none"?(0,i.jsx)(ES.q,{disableType:F}):(ee==null?void 0:ee.type)!=="defaultData"?(0,i.jsx)(MS.L,{itemKey:c,interactionTree:s,selectInteractionKey:P,editingPanelRefPage:w,extraClick:Ae,uiFrom:n,collapseList:pe,handleCollapse:ye,interactionStore:ee}):(0,i.jsx)(IS.U,{isEditingCombo:d,itemKey:c,openEditorFloat:!0,uiFrom:n,interactionStore:ee}),F==="none"&&s&&(0,i.jsx)(DS,{})]})};var OS=e(78022),FS=e(9332);const US=(0,u.Ay)(FS.Y).withConfig({displayName:"styles__StylesBorderOpener",componentId:"sc-143fzdu-0"})([".color-line{margin-left:-4px;}.border-collapse-body{margin-left:0;}"]),zS=u.Ay.div.withConfig({displayName:"styles__StyledPencilSetting",componentId:"sc-143fzdu-1"})(["flex:1;width:240px;padding:8px 16px 0;color:",";"],t=>t.theme.color_text_L2);var G4=e(3835);function ex(t){let{bdrStyle:n,bdrColor:s,bdrWidth:c,dispatch:d}=t;const w=(P,F)=>{["bdrStyle","bdrWidth","bdrColor"].includes(F)&&d({type:"pencil:update",payload:{[F]:P}})};return(0,i.jsx)(zS,{className:"pencil-setting-body",children:(0,i.jsxs)(US,{className:f()("label-option"),children:[(0,i.jsxs)("div",{className:"color-line appearance-line border-open height-32",children:[(0,i.jsx)(h0.R_,{className:h0.Fw,attr:"bdrColor",attrPanel:"attrPanel",color:s,onChange:w}),(0,i.jsx)("label",{className:"left-label",children:I18N.SettingPanel.stroke})]}),(0,i.jsxs)("div",{className:f()("border-collapse-body height-32 margin-right-n6 is-open"),children:[(0,i.jsxs)("div",{className:"border-select-size-warp",children:[(0,i.jsx)(OS.v,{}),(0,i.jsx)(ge.mq,{className:f()("border-select-size"),attr:"bdrStyle",menuClassName:"border_style_select_menu",optionList:(0,N4.se)(),value:n,onChange:w})]}),(0,i.jsx)(E1.A,{className:"border-width-input",attr:"bdrWidth",value:c,optionList:N4.xq,onConfirm:w})]})]})})}ex.displayName="PencilSetting";const WS=(t,n)=>{const s=(0,G4.pp)(t),c=(0,G4.lu)(t),d=(0,G4.E)(t);return{bdrStyle:s,bdrColor:c,bdrWidth:d}},VS=(0,o.Ng)(WS,null)(ex);class HS extends r.PureComponent{constructor(){super(...arguments),(0,p.A)(this,"handleTabChange",n=>{this.props.dispatch({type:"settings:set:autoTabIndex",payload:{autoTabIndex:null}}),this.props.dispatch({type:"settings:set:activeIndex",payload:{activeIndex:n}})})}render(){var n;const{activeIndex:s,showLinkSetting:c,showGlobalSetting:d,showWidgetSetting:w,showQuickCreateCanvasSetting:P,showPencilSetting:F,showBasketSetting:X,currentScreenDevice:ee,showEditingComboSetting:pe,isGlobalSetting:ye,isQuickCreateCanvasSetting:Ae,isPencilSetting:we,isWidgetSetting:_e,isCanvasSetting:Fe,isBasketSetting:Ye,isEditingComboSetting:He,vectorEditor:tt,editingPanelRefPage:It,editingPanelCid:Nt,layoutV9:Lt}=this.props,Xt=AS({isGlobalSetting:ye,isQuickCreateCanvasSetting:Ae,isWidgetSetting:_e,isCanvasSetting:Fe,isBasketSetting:Ye,isEditingComboSetting:He,isPencilSetting:we},Nt,It,tt);return(0,i.jsxs)(wS,{id:"setting-panel",children:[(0,i.jsx)("header",{children:Xt.length===1?(0,i.jsx)("span",{className:"title",children:(n=Xt[0])==null?void 0:n.label}):(0,i.jsx)(SS,{activeIndex:s,onTabChange:this.handleTabChange,children:Xt.map(_o=>{let{key:co,...yn}=_o;return(0,i.jsx)(V4.n,{...yn,className:f()({line_active:Xt.length>1})},co)})})}),F&&(0,i.jsx)(VS,{}),P&&(0,i.jsx)(Jw,{defaultDevice:ee}),c&&(0,i.jsx)(jS,{}),d&&(0,i.jsx)(cS,{}),w&&(0,i.jsx)(Gw.A,{}),X&&(0,i.jsx)(xS,{}),pe&&(0,i.jsx)(CS,{})]})}}const KS=(0,m.Mz)([tc.Jg,Q3.y],(t,n)=>{let{isGlobalSetting:s,isQuickCreateCanvasSetting:c,isWidgetSetting:d,isCanvasSetting:w,isBasketSetting:P,isEditingComboSetting:F,isPencilSetting:X}=n;const ee=w||d||X;return ee||(t=0),{showGlobalSetting:s&&t===0,showWidgetSetting:(w||d)&&t===0,showLinkSetting:ee&&t===1,showQuickCreateCanvasSetting:c&&t===0,showPencilSetting:X&&t===0,showBasketSetting:P&&t===0,showEditingComboSetting:F&&t===0}}),GS=(0,m.Mz)([tc.Jg,Q3.y,KS,A.jI,A.bt,S.Ur,A.lY,T.MZ],(t,n,s,c,d,w,P,F)=>({activeIndex:t,...n,...s,editingPanelCid:c,editingPanelRefPage:d,vectorEditor:P,currentScreenDevice:w==null?void 0:w.device,layoutV9:F})),YS=(0,o.Ng)(t=>GS(t))(HS),ZS=u.Ay.div.withConfig({displayName:"styles__StyledLeftBorderResizeHOC",componentId:"sc-1qdmz76-0"})(["position:relative;height:100%;right:0;top:0;background:",";box-shadow:"," -1px 0px 0px;&.with-switch-header{display:flex;flex-direction:column;.border-resizer.left{left:-1px;}&.is-in-version{width:240px !important;}}.border-resizer.left{left:0;&:hover{background-color:rgba(22,132,252,.6);}&.active{background-color:rgba(22,132,252,.6);}}"],t=>t.theme.color_bg_white,t=>t.theme.color_background_split);function Y4(t){const{id:n,className:s,children:c,isShowBorderResizer:d=!0}=t,{rightPanelResizedWidth:w,rightPanelResizedMaxWidth:P,rootProject:F}=(0,o.d4)(XS),X=r.useRef(null),ee=(0,o.wA)(),pe=(0,r.useCallback)(()=>{X.current&&(X.current.style.transition="none")},[]),ye=(0,r.useCallback)(()=>{X.current&&(X.current.style.transition="")},[]),Ae=we=>{ee({type:"right-side-panel:update:resize:width",payload:{width:we,projectCid:F.cid}}),ee({type:"entry:observe:dom:right-panel-width"})};return(0,i.jsxs)(ZS,{id:n,className:s,ref:X,style:{width:w},children:[c,d&&(0,i.jsx)(Y0.A,{placement:"left",className:"v-resizer",value:w,min:I.xM,max:P,onResizeStart:pe,onResizeEnd:ye,onChange:Ae})]})}const XS=(0,m.Mz)([tc.TW,tc.HC,S.PL],(t,n,s)=>({rightPanelResizedWidth:t,rightPanelResizedMaxWidth:n,rootProject:s}));var QS=e(63033);const JS=t=>(0,i.jsx)(QS.L,{...t}),$S=(0,m.Mz)([l.ZA,l.Cb,l.c1,l.M5,A.jx,tc.TW,A.uu],(t,n,s,c,d,w,P)=>({commentList:t,activeCommentCid:n,selected:s,isShowCompletedComment:c,viewType:d,commentPanelWidth:w,isHtmlZipPreview:P})),qS=(0,o.Ng)(t=>$S(t))(JS);function eA(){return(0,i.jsx)(Y4,{id:"design-comment-panel",children:(0,i.jsx)(qS,{})})}var tA=e(36450),oA=e(18265),nA=e(77242);const sA=t=>{const n=document.querySelector("#st-list-container"),c=document.querySelector("#st-list").getBoundingClientRect(),d=n.getBoundingClientRect(),w=[],P={},F={},X={},ee={};return Array.from(document.querySelectorAll("#st-list >.st-card")).forEach((ye,Ae)=>{const{cid:we}=ye.dataset,_e=ye.getBoundingClientRect();P[we]=X[we]=_e;const Fe=(0,Gt.yB)(ye);F[we]=Fe;const{left:Ye,top:He,width:tt,height:It}=_e,Nt=Ye-c.left,Lt=He-c.top,Xt=Nt+tt,_o=Lt+It,co={top:Lt,left:Fe.left-c.left,width:tt,height:It};if(ee[we]={contentRect:co,rect:co,treeRect:co},t.includes(we)){w.push({cid:we,type:null,min:{x:Nt,y:Lt},max:{x:Xt,y:_o},isValid:!1,parentCid:null});return}w.push({cid:we,type:"prevSibling",min:{x:Nt,y:Lt},max:{x:Xt,y:Lt+It/2},isValid:!0,parentCid:null}),w.push({cid:we,type:"nextSibling",min:{x:Nt,y:Lt+It/2},max:{x:Xt,y:_o},isValid:!0,parentCid:null})}),{matchDataList:w,containerRect:d,rectQueryMap:ee}};class tx extends r.PureComponent{constructor(n){super(n),(0,p.A)(this,"createListRef",s=>this.$listRef=s),(0,p.A)(this,"handleMouseDown",(s,c,d)=>{const{isOnlyView:w}=this.props;if(w)return;const{top:P,left:F}=d.getBoundingClientRect(),X=s.clientX-F,ee=s.clientY-P,pe=[c.key],ye={item:c,$element:d,offsetX:X,offsetY:ee,selection:pe,...sA(pe)};this.setState({dragAndDropState:ye})}),(0,p.A)(this,"getContainerElement",()=>document.getElementById("st-list-container")),(0,p.A)(this,"handleDrop",s=>{let{cid:c,type:d,isValid:w}=s;const{dragAndDropState:P}=this.state,{dispatch:F,stickyList:X}=this.props;if(this.setState({dragAndDropState:null}),!w)return;const ee=[];for(const Fe of P==null?void 0:P.selection)ee.push(sdkStore.getHotItem(Fe));ee.sort((Fe,Ye)=>Fe.hotAttr.order-Ye.hotAttr.order);const ye=([...X]||[]).filter(Fe=>!(P!=null&&P.selection.includes(Fe.key))),Ae=ye.findIndex(Fe=>Fe.key===c),we=d==="prevSibling"?Ae:d==="nextSibling"?Ae+1:"error";if(we==="error")throw new Error("drag type error");ye.splice(we,0,...ee),ye.forEach((Fe,Ye)=>{if(Fe.hotAttr.order!==Ye+1){const He=sdkStore.getHotItem(Fe.key),tt={...He,hotAttr:{...He.hotAttr,order:Ye+1}};sdkStore.updateHotItem(tt)}}),F({type:"entry:refresh:link-list"}),F({type:"entry:rebuild:screen-widget-tree"}),F({type:"entry:select:items",payload:{cids:P==null?void 0:P.selection}});const{hotAttr:_e}=sdkStore.getHotItem(c);(0,wg.Uz)({operation_type:wg.P6.Drag,widget:_e})}),(0,p.A)(this,"handleClick",()=>{const{dispatch:s}=this.props;s({type:"entry:select:items",payload:{cids:[]}})}),(0,p.A)(this,"selectST",s=>{const{dispatch:c}=this.props;c({type:"entry:update:selection:select:items",payload:{type:"selection:select:items",cids:[s]}}),c({type:"entry:STPanel:fit-viewport",payload:{STKey:s}})}),(0,p.A)(this,"deleteST",s=>{const{dispatch:c}=this.props;c({type:"entry:delete:selected-items",payload:{key:s}})}),(0,p.A)(this,"toggleExpandKeySet",s=>{const{dispatch:c}=this.props;c({type:"entry:STPanel:update:expandKeySet",payload:{key:s}})}),(0,p.A)(this,"pushToAlreadyExpandKeySet",s=>{const{dispatch:c}=this.props;c({type:"STPanel:add:alreadyExpandKeySet",payload:{key:s}})}),(0,p.A)(this,"deleteFromAlreadyExpandKeySet",s=>{const{dispatch:c}=this.props;c({type:"STPanel:delete:alreadyExpandKeySet",payload:{key:s}})}),this.state={dragAndDropState:null}}render(){const{stickyList:n,setIsExportOpenFromContainer:s,isOnlyView:c,selection:d,expandKeySet:w,alreadyExpandKeySet:P,STPanelWidth:F,isHtmlZipPreview:X}=this.props,{dragAndDropState:ee}=this.state,{matchDataList:pe,containerRect:ye,rectQueryMap:Ae,$element:we,offsetX:_e,offsetY:Fe}=ee||{};return(0,i.jsxs)(oA.TV,{id:"st-list-container",ref:this.createListRef,onClick:this.handleClick,children:[(0,i.jsx)("div",{id:"st-list",className:"st-list",children:n.map((Ye,He)=>(0,i.jsx)(tA.i,{isActive:d.includes(Ye.key),st:Ye,isHtmlZipPreview:X,setIsExportOpenFromContainer:s,onMouseDown:this.handleMouseDown,editable:!c,selectST:this.selectST,deleteST:this.deleteST,isExpanded:w.has(Ye.key),isAlreadyExpanded:P.has(Ye.key),STPanelWidth:F,toggleExpandKeySet:this.toggleExpandKeySet,pushToAlreadyExpandKeySet:this.pushToAlreadyExpandKeySet,deleteFromAlreadyExpandKeySet:this.deleteFromAlreadyExpandKeySet},He))}),ee&&(0,i.jsx)(nA.A,{draggingElement:we,getContainerElement:this.getContainerElement,matchDataList:pe,containerRect:ye,rectQueryMap:Ae,offsetX:_e,offsetY:Fe,onDrop:this.handleDrop})]})}}var Z4=e(48438),ox=e(5173);const iA=u.Ay.div.withConfig({displayName:"styles__StyledSTPanelContainer",componentId:"sc-i5vtxm-0"})(["&.comment-panel{width:100%;height:100%;position:absolute;right:0;border-radius:4px;display:flex;flex:1 1 0%;flex-direction:column;.filter-header{width:100%;height:40px;box-sizing:border-box;border-bottom:1px solid ",";padding:0 16px 0 16px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;background:",";h3{flex:1;font-size:12px;font-weight:500;line-height:16px;color:",";}.st-filter-dropdown,.st-options-dropdown{width:auto;}.filter-trigger-container{width:max-content;display:flex;flex-direction:row;justify-content:flex-end;align-items:center;.svg-icon{circle{fill:none;}}.filter-active-icon{circle{fill:#1684fc;}path{fill:#fff !important;}}}.filter-content-container{width:144px;display:flex;justify-content:center;position:relative;padding:8px 0;.list-container{width:100%;position:relative;box-sizing:border-box;.item-container{width:100%;padding-left:8px;padding-right:8px;color:#fff;cursor:pointer;margin:2px 0;display:flex;align-items:center;&:hover{background-color:#666;}.icon-left{font-size:12px;line-height:24px;display:inline-flex;align-items:center;width:20px;text-align:right;margin-right:2px;.svg-icon{width:20px;height:20px;path{fill:none;}}}.value-right{font-size:12px;line-height:24px;display:inline-block;width:max-content;text-align:left;}}}.separate-line{width:100%;height:1px;background-color:rgba(245,245,245,0.1);margin:6px 0;}}.options-trigger-container{width:24px;height:24px;margin-left:4px;}.options-content-container{padding:2px 0;width:240px;background:#fff;box-shadow:0 3px 6px -4px rgba(0,0,0,0.12),0px 6px 16px rgba(0,0,0,0.08),0px 9px 28px 8px rgba(0,0,0,0.05);border-radius:4px;.options-item-container{padding:0 15px;display:flex;align-items:center;justify-content:space-between;margin:2px 0;.info-content{flex:1;.main-info{font-size:12px;line-height:12px;color:#333;}.desc-info{margin-top:3px;font-size:12px;transform:scale(0.75);transform-origin:left center;line-height:16px;color:#999;white-space:nowrap;margin-right:-50px;}}}.end-st{height:45px;}.show-st-in-canvas{height:45px;}}.filter-trigger-container,.options-trigger-container{color:#999;cursor:pointer;border-radius:4px;transition:300ms;color:",";&.active{color:",";background:",";}&:not(.active):hover{background:",";}.svg-icon{width:24px;height:24px;path[fill]{fill:currentColor;}path[stroke]{stroke:currentColor;}}}span.expandAll{cursor:pointer;color:",";&:hover,&:active{color:",";}}}}"],t=>t.theme.color_bg_border_02,t=>t.theme.color_bg_white,t=>t.theme.color_text_L1,t=>t.theme.color_text_L1,t=>t.theme.color_text_L1,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_text_L2,t=>t.theme.color_text_L1),aA=(0,r.memo)(t=>{const[n,s]=(0,r.useState)(!1),{stickyList:c,selection:d,expandKeySet:w,alreadyExpandKeySet:P,STPanelWidth:F,dispatch:X,isHtmlZipPreview:ee}=t,pe=new Set([...Array.from(w),...Array.from(P)]),ye=!c.every(_e=>{let{key:Fe}=_e;return P.has(Fe)}),Ae=c.every(_e=>{let{key:Fe}=_e;return pe.has(Fe)}),we=()=>{X({type:"entry:STPanel:toggle:all:expandKeySet",payload:{isExpandAll:Ae,stickyList:c}})};return(0,i.jsxs)(iA,{id:"STPanel-container",className:"comment-panel",children:[(0,i.jsxs)("div",{className:"filter-header",children:[(0,i.jsx)("h3",{children:I18N.Note.note}),ye&&(0,i.jsx)("span",{className:"expandAll",onClick:we,children:Ae?I18N.ScreenList.collapse_screens:I18N.ScreenList.expand_screens})]}),c.length===0?(0,i.jsx)(ox.h,{}):(0,i.jsx)(tx,{selection:d,isOnlyView:!1,isHtmlZipPreview:!1,stickyList:c,setIsExportOpenFromContainer:s,expandKeySet:w,alreadyExpandKeySet:P,dispatch:X,STPanelWidth:F}),!ee&&(0,i.jsx)(Z4.A,{isExportOpenFromContainer:n,setIsExportOpenFromContainer:s})]})}),rA=(0,m.Mz)([S.Ur,ce.p$,tc.zM,tc.ju,tc.TW,A.uu],(t,n,s,c,d,w)=>{const P=t!=null&&t.cid?(0,ns.UR)(t.cid):[];return{selection:n,expandKeySet:s,alreadyExpandKeySet:c,STPanelWidth:d,stickyList:P,isHtmlZipPreview:w}}),lA=(0,o.Ng)(t=>rA(t))(aA);function cA(){return(0,i.jsx)(Y4,{id:"ST-panel",children:(0,i.jsx)(lA,{})})}const _g=(0,u.Ay)(Vn.H).withConfig({displayName:"styles__StyledVersionModel",componentId:"sc-1fu9lb0-0"})(["border:1px solid ",";&.ResetVersionConfirmModel{width:400px !important;.header{span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:30px;}}p.tip{margin-top:6px;line-height:20px;color:",";}}&.CollaboratorsConfirmModel{width:510px;.collaborators-scroll-container{width:470px;padding:0 0 0 24px;margin-top:20px;position:relative;height:76px;overflow-y:auto;.collaborators-container{display:flex;flex-flow:row wrap;}.collaborators-item{width:70px;margin-right:28px;margin-bottom:20px;display:flex;flex-direction:column;align-items:center;.collaborator-avatar{width:34px;height:34px;margin-bottom:8px;}.collaborator-name{color:",";font-size:12px;line-height:14px;width:100%;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}}}&.UpgradeToOrgModel{margin-top:100px;width:530px;border-radius:8px;> header{display:none;}.content{padding:24px 24px 40px 24px;border-radius:8px;.close-container{display:flex;justify-content:flex-end;.close-icon{width:14px;height:14px;cursor:pointer;path{fill:",";}}}.title{font-size:18px;line-height:25px;font-weight:500;text-align:center;margin-bottom:20px;color:",";}p{text-align:center;}p a{color:",";text-decoration:underline;&:hover{color:#1a70d8;}}.background-container{width:100%;padding:18px;border:1px solid #ededed;border-color:",";background:",";border-radius:2px;margin:24px 0;.org-features-title{padding:0;font-size:14px;line-height:20px;font-weight:500;color:",";margin-bottom:22px;text-align:center;a{color:",";font-weight:400;text-decoration:underline;&:hover{color:#1a70d8;}}}.org-features-container{display:flex;width:100%;justify-content:space-between;.org-feature-item{width:90px;display:flex;flex-flow:column nowrap;align-items:center;.org-feature-image{display:block;height:79px;width:auto;}.org-feature-text{font-size:12px;line-height:17px;margin-top:8px;}}.divider{width:1px;height:51px;background:#e8e8e8;transform:translateY(14px);}}}.upgrade-link{display:block;text-align:center;width:316px;height:32px;line-height:32px;border-radius:2px;background:",";color:#fff;font-size:14px;margin:0 auto;&:hover{background:",";}}}}&.VersionResetNoticeModel{width:510px;}&.DeleteVersionConfirmModel{width:400px !important;}&.new-version-modal{width:400px !important;.modal-content{display:flex;flex-direction:column;input,textarea{color:",";border-radius:6px;padding:10px 12px;resize:none;outline:1px solid ",";border:none;&::placeholder{color:",";}&:focus{outline:2px solid ",";}}.version-title-input{width:100%;height:32px;margin-bottom:10px;}.version-description-container{position:relative;height:104px;width:100%;outline:1px solid ",";border-radius:6px;padding:10px 2px 0 0;&.is-active{outline:2px solid ",";}.version-description-input{width:100%;height:66px;outline:none;padding:0 4px 0 12px;background-color:inherit;&::-webkit-scrollbar{height:36px;}}.words-counter{position:absolute;bottom:6px;right:12px;font-size:12px;line-height:14px;color:",";&.is-limit{color:",";}}}}}"],t=>t.theme.color_bg_border_02,t=>t.theme.color_text_L2,t=>t.theme.color_text_L2,t=>t.theme.color_text_L3,t=>t.theme.color_text_L1,t=>t.theme.color_text_link_normal,t=>t.theme.color_bg_border_02,t=>t.theme.modal_bg1,t=>t.theme.color_text_L1,t=>t.theme.color_text_link_normal,t=>t.theme.color_proto,t=>t.theme.color_proto,t=>t.theme.color_text_L1,t=>t.theme.color_bg_border_02,t=>t.theme.color_text_L3,t=>t.theme.color_proto,t=>t.theme.color_bg_border_02,t=>t.theme.color_proto,t=>t.theme.color_text_L3,t=>t.theme.color_text_error),dA=(0,r.memo)(t=>{let{projectCid:n,allVersions:s,currentDeleting:c,currentViewing:d,dispatch:w}=t;if(!c)return null;const P=()=>h8({projectCid:n,versionCid:c.cid,allVersions:s,currentViewing:d,dispatch:w}),F=()=>{w({type:"versions:model:deleting:close"})};return(0,i.jsxs)(_g,{isOpen:!!c,title:I18N.VersionManagementPane.delete_version_model_title,onConfirm:P,confirmText:I18N.VersionManagementPane.delete_version_model_confirm,onCancel:F,onClose:F,cancelText:I18N.VersionManagementPane.delete_version_model_cancel,className:"DeleteVersionConfirmModel",children:[(0,i.jsxs)("p",{children:[I18N.VersionManagementPane.delete_version_model_text1,c.title,I18N.VersionManagementPane.delete_version_model_text2]}),(0,i.jsx)("p",{children:I18N.VersionManagementPane.delete_version_model_text3})]})}),pA=(0,r.memo)(t=>{let{projectCid:n,currentResetting:s,currentCollaborators:c,dispatch:d}=t;if(!s||!c.checked)return null;const w=async()=>{try{await u8(s==null?void 0:s.cid),ku("\u8FD8\u539F\u7248\u672C")}catch(F){/404/.test(F.message)&&(MB.notice({text:I18N.VersionManagementPane.version_toast_error_deleted,type:"warning"}),d4({projectCid:n,dispatch:d}))}},P=()=>{d({type:"versions:model:resetting:close"})};return(0,i.jsxs)(_g,{isOpen:!!s&&c.checked,title:(0,i.jsx)("span",{children:I18N.VersionManagementPane.reset_version_model_title+"\u300C"+s.title+"\u300D"}),onConfirm:w,confirmText:I18N.VersionManagementPane.reset_model_confirm,onCancel:P,onClose:P,cancelText:I18N.VersionManagementPane.reset_model_cancel,className:"ResetVersionConfirmModel",children:[(0,i.jsx)("p",{children:I18N.VersionManagementPane.reset_version_model_text1}),(0,i.jsx)("p",{className:"tip",children:"\u5F53\u524D\u5DE5\u4F5C\u533A\u5185\u5BB9\u5C06\u81EA\u52A8\u4FDD\u5B58\u5230\u7248\u672C\u8BB0\u5F55\u4E2D\u3002"})]})}),hA=(0,r.memo)(t=>{let{currentCollaborators:n,dispatch:s}=t;const{collaborators:c,checked:d}=n;if(!c.length||d)return null;const w=async()=>{s({type:"versions:model:resetting:cllaborators:confirm"})},P=()=>{s({type:"versions:model:resetting:close"})};return(0,i.jsxs)(_g,{isOpen:!!c.length&&!d,title:c.length+" "+I18N.VersionManagementPane.collaborator_model_title,onConfirm:w,confirmText:I18N.VersionManagementPane.collaborator_model_confirm,onCancel:P,onClickCloseIcon:P,cancelText:I18N.VersionManagementPane.collaborator_model_cancel,className:"CollaboratorsConfirmModel",children:[(0,i.jsx)("p",{children:I18N.VersionManagementPane.collaborator_model_text}),(0,i.jsx)("div",{className:"collaborators-scroll-container",children:(0,i.jsx)("div",{className:"collaborators-container",children:c.map(F=>{let[X,ee,pe]=F;return(0,i.jsxs)("div",{className:"collaborators-item",children:[(0,i.jsx)("img",{className:"collaborator-avatar",src:pe}),(0,i.jsx)("p",{className:"collaborator-name",children:ee})]},X)})})})]})}),uA=(0,r.memo)(t=>{let{onClose:n,projectCid:s,allVersions:c,currentEditing:d,dispatch:w}=t;const P=d?c.find(co=>{let{cid:yn}=co;return yn===d.cid}):null,[F,X]=(0,r.useState)((P==null?void 0:P.title)||""),[ee,pe]=(0,r.useState)((P==null?void 0:P.description)||""),[ye,Ae]=(0,r.useState)(!1),we=(0,r.useRef)(null),_e=(0,r.useRef)(null);(0,r.useEffect)(()=>{we.current.select()},[]);const Fe=co=>{X(co.target.value)},Ye=co=>{pe(co.target.value)},He=()=>{w({type:"versions:update",payload:{currentEditing:null}})},tt=async()=>{await He(),P?await p8({projectCid:s,versionCid:P.cid,newTitle:F,newDesc:ee,dispatch:w,allVersions:c}):await jy({projectCid:s,dispatch:w,title:F,desc:ee})},It=async()=>{await He(),n()},Nt=co=>{co.key===vo._.Enter?(co.preventDefault(),tt(),It()):co.key===vo._.Tab&&(co.preventDefault(),_e.current.select())},Lt=co=>{co.key===vo._.Enter&&!co.shiftKey?(co.preventDefault(),tt(),It()):co.key===vo._.Tab?co.preventDefault():co.key===vo._.Enter&&_e.current.scrollHeight>=parseInt(window.getComputedStyle(_e.current).lineHeight)*10&&(MB.notice({text:I18N.VersionManagementPane.version_toast_edit_lines_overflow,type:"warning"}),co.preventDefault())},Xt=()=>Ae(!0),_o=()=>Ae(!1);return(0,i.jsxs)(_g,{isOpen:!0,title:"\u7248\u672C\u4FE1\u606F",onConfirm:tt,onClose:It,className:"new-version-modal",children:[(0,i.jsx)("input",{type:"text",className:"version-title-input",value:F,maxLength:25,ref:we,placeholder:Fs()().format("YYYY.MM.DD HH:mm"),onChange:Fe,onKeyDown:Nt}),(0,i.jsxs)("div",{className:f()("version-description-container",{"is-active":ye}),children:[(0,i.jsx)("textarea",{ref:_e,className:"version-description-input",value:ee,maxLength:200,placeholder:"\u8F93\u5165\u7248\u672C\u63CF\u8FF0",onChange:Ye,onKeyDown:Lt,onFocus:Xt,onBlur:_o}),(0,i.jsx)("div",{className:f()("words-counter",{"is-limit":ee.length>=200}),children:(0,i.jsxs)("span",{children:[ee.length,"/200"]})})]})]})}),mA=(0,m.Mz)([tc.cS,T.MZ],(t,n)=>{const{filter:s}=t;return{filter:s,isV9Layout:n==="recommend"}}),nx=(0,r.memo)(()=>{const[t,n]=(0,r.useState)({top:0,left:0}),[s,c]=(0,r.useState)(!1),d=(0,r.useRef)(null),w=(0,o.wA)(),{filter:P,isV9Layout:F}=(0,o.d4)(mA),X=(0,i.jsx)(Je.C,{name:"toolbar/selected",className:"selected-icon"}),ee=ye=>{const Ae=ye.currentTarget.dataset.type;w({type:"versions:update",payload:{filter:Ae}}),ku(Ae==="all"?"\u7B5B\u9009-\u5168\u90E8":"\u7B5B\u9009-\u624B\u52A8\u521B\u5EFA")},pe=ye=>{if(c(ye),!ye||!d.current)return;const{left:Ae,bottom:we}=d.current.getBoundingClientRect();n({top:we+6,left:Ae+23})};return(0,i.jsx)(gA,{renderOpener:(0,i.jsx)(Kc.A,{content:"\u7B5B\u9009",direction:"down",children:(0,i.jsx)(b0.A,{className:f()("filter-icon",{active:s,"filter-icon-active":P==="active"}),name:P==="active"?"comment/filter-active":"comment/filter",size:24,ref:d})}),direction:"down",onClick:pe,renderMenu:(0,i.jsxs)(fA,{position:t,className:f()({isV9Layout:F}),children:[(0,i.jsx)(be.Dr,{text:"\u5168\u90E8",dataType:"all",onClick:ee,icon:P==="all"?X:null}),(0,i.jsx)(be.Dr,{text:"\u624B\u52A8\u521B\u5EFA",dataType:"active",onClick:ee,icon:P==="active"?X:null})]})})}),gA=(0,u.Ay)(A2.A).withConfig({displayName:"VersionFilterDropdown__StyledVersionFilterDropdown",componentId:"sc-gbgndu-0"})([".filter-icon{circle{fill:none;stroke:currentColor;}path{stroke:currentColor;}&.filter-icon-active{circle{fill:#1684fc;stroke:#1684fc;}path{fill:#fff;stroke:#fff;}}}.svg-icon{fill:currentColor;}"]),fA=(0,u.Ay)(be.Ay).withConfig({displayName:"VersionFilterDropdown__StyledContextMenu",componentId:"sc-gbgndu-1"})(["min-width:144px;width:max-content;ul{min-width:144px;}&.isV9Layout{",";}.MenuItem{a{padding-left:32px;}&.hasIcon{> a{padding-left:15px;}}}"],Ci.ZJ),yA=(0,r.memo)(t=>{let{currentViewing:n,onClickCreatingButton:s,onClosePane:c,allVersions:d,orgPlan:w,isReadOnly:P,dispatch:F}=t;const X=(0,r.useRef)(null),[ee,pe]=(0,r.useState)(!1),ye=(0,r.useMemo)(()=>!MB.getRootProject().is_org_project,[]),Ae=(0,r.useMemo)(()=>{if(MB.currentOrg&&MB.getRootProject().is_org_project){const Ye=d.filter(He=>He.category==="active").length;if(w==="org_free"||w==="org_expire")return Ye>=2;if(w==="org_lite")return Ye>=10;if(w==="org_full"||w==="org_trial")return Ye>=30}return!1},[d,w]),we=Ye=>{Ye.stopPropagation(),X.current=setTimeout(()=>{pe(!0)},0)},_e=()=>{X.current&&clearTimeout(X.current),pe(!1)},Fe=()=>{F({type:"modal:update:state",payload:{rightsAndInterestsModal:{isOpen:!0,type:Xe.hC.ProjectVersionFromCount}}})};return(0,i.jsxs)("header",{className:"panel-header",children:[(0,i.jsx)("span",{className:"title",children:I18N.VersionManagementPane.version_pane_title}),(0,i.jsxs)("div",{className:"actions",children:[!P&&(!n&&(ye||Ae)?(0,i.jsxs)("div",{className:"disable-add-version-content",onMouseEnter:we,onMouseLeave:_e,children:[(0,i.jsx)(b0.A,{name:"common/add_plus",onClick:s,size:24,isDisabled:!0}),ee&&(0,i.jsxs)("div",{className:"drop-tips-content",onClick:Ye=>Ye.stopPropagation(),children:[(0,i.jsx)("div",{className:"top-bar"}),(0,i.jsx)("span",{children:ye?"\u4E2A\u4EBA\u7248\u4E0D\u652F\u6301\u624B\u52A8\u521B\u5EFA\u7248\u672C\u8BB0\u5F55":"\u624B\u52A8\u521B\u5EFA\u7684\u7248\u672C\u6570\u91CF\u5DF2\u8FBE\u5230\u4E0A\u9650"}),(0,i.jsx)("a",{onClick:Fe,children:"\u5347\u7EA7"})]})]}):!n&&(0,i.jsx)(Kc.A,{content:"\u6DFB\u52A0\u7248\u672C",direction:"down",children:(0,i.jsx)(b0.A,{name:"common/add_plus",onClick:s,size:24})})),(0,i.jsx)(nx,{}),!n&&(0,i.jsx)(Kc.A,{content:"\u5173\u95ED",direction:"down",children:(0,i.jsx)(b0.A,{name:"common/close",size:24,className:"close-pane-icon",onClick:c})})]})]})}),xA=u.Ay.aside.withConfig({displayName:"styles__StyledVersionManagementPane",componentId:"sc-180wedk-0"})(["position:relative;width:240px;height:100%;background:",";z-index:106;right:0;display:flex;flex-direction:column;box-shadow:-1px 0 0 ",";&.only-view{box-shadow:none;z-index:auto;right:auto;width:100%;&.in-version{border-left:none;width:240px;}}&.in-version{width:241px;border-left:1px solid ",";}a{cursor:pointer;color:",";&:hover{color:",";}}.panel-header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid ",";height:40px;padding:0 10px 0 16px;.disable-add-version-content{position:relative;z-index:1;.drop-tips-content{font-size:12px;font-weight:400;line-height:18px;position:absolute;background:#454647;top:38px;right:-45px;width:max-content;padding:4px 6px;border-radius:6px;&::before{content:'';position:absolute;top:0;right:51px;transform:translateY(-100%);display:inline-block;width:0;height:0;border:6px solid transparent;border-bottom:6px solid #454647;}.top-bar{position:absolute;width:100%;height:15px;top:-15px;right:0;}span{color:",";}a{margin-left:10px;color:#80BCFF;&:hover{color:",";}}}}&.is-auto-save{.title{font-weight:400;}}.title{color:",";font-size:12px;line-height:16px;font-weight:500;}.actions{display:flex;.toolbar-dropdown-opener{color:",";}.filter-icon{circle{fill:none;stroke:currentColor;}path{stroke:currentColor;}&.filter-icon-active{circle{fill:#1684fc;stroke:#1684fc;}path{fill:#fff;stroke:#fff;}}}.svg-icon{fill:currentColor;}}}.panel-content{flex:1;overflow:hidden auto;position:relative;.versions-list-scroll-container{max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto;scrollbar-width:none;.upgrade-tips{width:208px;margin:8px auto;padding:10px;background-color:",";border-radius:6px;color:",";}.versions-loading{position:absolute;width:50px;height:50px;left:50%;top:50%;transform:translate(-50%);}.versions-blank-container{width:180px;margin:160px auto;.versions-blank-bg{width:99px;height:auto;margin:0 auto;display:block;margin-bottom:25px;position:relative;left:-8px;}.blank-title{font-size:14px;line-height:20px;font-weight:500;margin-bottom:6px;text-align:center;color:",";}.blank-text{font-size:12px;line-height:17px;text-align:center;color:",";}}}}.panel-bottom{padding:8px 16px;background-color:",";border-top:1px solid ",";color:",";}"],t=>t.theme.color_bg_white,t=>t.theme.color_background_split,t=>t.theme.color_background_split,t=>t.theme.color_text_link_normal,t=>t.theme.color_text_link_hover,t=>t.theme.color_bg_border_02,t=>t.theme.color_text_btn,t=>t.theme.color_text_link_hover,t=>t.theme.color_text_L1,t=>t.theme.color_text_L1,t=>t.theme.color_info_bg,t=>t.theme.color_text_L1,t=>t.theme.color_text_L2,t=>t.theme.color_text_L3,t=>t.theme.color_bg_white,t=>t.theme.color_bg_border_02,t=>t.theme.color_text_L2),vA=u.Ay.div.withConfig({displayName:"styles__StyledVersionItem",componentId:"sc-180wedk-1"})(["&.version-item-wrapper{padding-top:12px;width:100%;overflow:hidden;cursor:pointer;&.is-hide{cursor:auto;.top-part{.version-title{opacity:0.3;}}.bottom-part{opacity:0.3;}}&.has-expand{&.is-expand{.bottom-part .version-description{max-height:none;overflow:initial;}}.bottom-part{.version-description{display:flex;flex-direction:column;max-height:56px;overflow:hidden;margin-bottom:0;}.expand-action{min-height:24px;line-height:24px;color:",";}}}&.is-auto-create{.top-part .version-title{font-weight:400;}}.top-part{display:flex;justify-content:space-between;align-items:center;height:24px;padding:0 10px 0 16px;.version-title{flex-grow:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0;font-size:12px;line-height:16px;font-weight:500;color:",";}.options{display:flex;align-items:center;.option{display:none;&:not(.disabled):hover{background-color:transparent;}&:not(.disabled){cursor:pointer;color:",";}}}}.bottom-part{display:flex;flex-direction:column;padding:0 16px;.version-description{display:flex;align-items:center;color:",";font-size:12px;min-height:24px;white-space:pre-wrap;word-break:break-word;}.bottom-line{display:flex;align-items:center;min-height:24px;.version-author-name{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:",";font-size:12px;line-height:17px;font-weight:500;margin-right:6px;}.create-time{color:",";font-size:12px;line-height:17px;}}}.divider-line{border-top:1px solid ",";margin-top:12px;}&:hover{&:not(.is-hide){background-color:",";}.top-part .options .option{display:block}}&.active{&:not(.is-hide){background-color:",";}.top-part .options .option{display:block}}&:last-child{.divider-line{border:none;}}}"],t=>t.theme.color_text_link_normal,t=>t.theme.color_text_L1,t=>t.theme.color_text_L1,t=>t.theme.color_text_L2,t=>t.theme.color_text_L3,t=>t.theme.color_text_L3,t=>t.theme.color_bg_border_02,t=>t.theme.color_btn_secondary_hover,t=>t.theme.comment_active),sx=(0,r.memo)(t=>{let{versionCid:n,title:s,description:c,createdTime:d,ownerName:w,category:P,currentViewing:F,dispatch:X,onOpenVersionModal:ee,isHide:pe,isOrgFree:ye,isReadOnly:Ae,showDays:we}=t;const _e=Fs()(d).format("YYYY.MM.DD HH:mm"),[Fe,Ye]=(0,r.useState)(!1),[He,tt]=(0,r.useState)(!1),It=r.useRef(null);(0,r.useEffect)(()=>{It.current&&It.current.clientHeight>48&&tt(!0)},[c]);const Nt=async An=>{pe||(An.stopPropagation(),await X({type:"versions:update",payload:{currentEditing:{cid:n}}}),ee())},Lt=An=>{An.stopPropagation(),X({type:"versions:model:deleting:open",payload:{currentDeleting:{cid:n,title:s}}})},Xt=An=>{pe||(An.stopPropagation(),m8({versionCid:n,title:s,dispatch:X}))},_o=()=>{pe||X({type:"versions:update",payload:{currentViewing:{cid:n,title:s}}})},co=(An,In)=>In.offsetWidth<In.scrollWidth,yn=An=>{An.stopPropagation(),Ye(!Fe)};return(0,i.jsxs)(vA,{className:f()("version-item-wrapper",{active:F&&F.cid===n},{"has-expand":He},{"is-expand":Fe},{"is-auto-create":P==="auto"},{"is-hide":pe}),onClick:_o,children:[(0,i.jsxs)("div",{className:"top-part",children:[(0,i.jsx)(Kc.A,{direction:"down",content:s,isShowTipsByTarget:co,children:(0,i.jsx)("h4",{className:"version-title",children:s})}),!Ae&&(0,i.jsxs)("div",{className:"options",children:[(0,i.jsx)(Kc.A,{direction:"down",content:pe?"\u8D85\u8FC7 "+we+" \u5929\u7684\u7248\u672C\u4E0D\u652F\u6301\u8FD8\u539F":"\u8FD8\u539F\u7248\u672C",children:(0,i.jsx)(b0.A,{className:"option",name:"design/versions/restore",onClick:Xt,size:24,isDisabled:pe})}),(0,i.jsx)(Kc.A,{direction:"down",content:P==="auto"?"\u81EA\u52A8\u521B\u5EFA\u7684\u7248\u672C\u4E0D\u652F\u6301\u7F16\u8F91":pe?"\u8D85\u8FC7 "+we+" \u5929\u7684\u7248\u672C\u4E0D\u652F\u6301\u7F16\u8F91":I18N.VersionManagementPane.version_item_option_edit,children:(0,i.jsx)(b0.A,{className:"option",name:"design/versions/edit",onClick:Nt,size:24,isDisabled:P==="auto"||pe})}),(0,i.jsx)(Kc.A,{direction:"down",content:P==="auto"?"\u81EA\u52A8\u521B\u5EFA\u7684\u7248\u672C\u4E0D\u652F\u6301\u5220\u9664":I18N.VersionManagementPane.version_item_option_delete,children:(0,i.jsx)(b0.A,{className:"option",name:"design/versions/delete",onClick:Lt,size:24,isDisabled:P==="auto"})})]})]}),(0,i.jsxs)("div",{className:"bottom-part",children:[c&&(0,i.jsx)("p",{className:"version-description",ref:It,children:c}),He?(0,i.jsx)("span",{className:"expand-action",onClick:yn,children:Fe?"\u6536\u8D77":"\u5C55\u5F00"}):null,(0,i.jsxs)("div",{className:"bottom-line",children:[(0,i.jsx)(Kc.A,{direction:"down",content:w,isShowTipsByTarget:co,children:(0,i.jsx)("p",{className:"version-author-name",children:w})}),P==="active"&&(0,i.jsx)("p",{className:"create-time",children:_e})]})]}),(0,i.jsx)("div",{className:"divider-line"})]})}),ix=3,ax=30,bA=(0,r.memo)(t=>{let{allVersions:n,currentViewing:s,orgPlan:c,soloPlan:d,dispatch:w,onOpenVersionModal:P,isReadOnly:F,isSoloLifeTime:X}=t;const ee=d==="free"||c==="org_free",pe=(0,r.useMemo)(()=>ee?ix:(F?!(X||c===Rd.Sj.OrgFull):d===Rd.L1.Solo||c===Rd.Sj.OrgLite)?ax:null,[ee,X,c,d,F]),{showFilterVersions:ye,filterHideAutoAndActiveVersions:Ae}=(0,r.useMemo)(()=>{const Fe=[],Ye=[];return pe!==null?(n.forEach(He=>{Fs()().diff(Fs()(He.created_at),"day")<=pe?Fe.push(He):Ye.push(He)}),{showFilterVersions:Fe,filterHideAutoAndActiveVersions:Ye}):{showFilterVersions:n,filterHideAutoAndActiveVersions:[]}},[n,pe]),we=()=>{w({type:"modal:update:state",payload:{rightsAndInterestsModal:{isOpen:!0,type:Xe.hC.ProjectVersionFromTime}}})},_e=Ae.findIndex(Fe=>Fe.category==="auto")!==-1;return(0,i.jsxs)("div",{className:"version-items-wrapper",children:[ye.map(Fe=>{let{cid:Ye,title:He,description:tt,owner_name:It,created_at:Nt,category:Lt}=Fe;return(0,i.jsx)(sx,{versionCid:Ye,title:He,description:tt,ownerName:It,createdTime:Nt,category:Lt,currentViewing:s,isReadOnly:F,dispatch:w,onOpenVersionModal:P,isHide:!1},Ye)}),_e&&(0,i.jsxs)("div",{className:"upgrade-tips",children:["\u8D85\u8FC7 ",ee?ix:ax," \u5929\u7684\u81EA\u52A8\u521B\u5EFA\u7684\u7248\u672C\u9700\u8981\u5347\u7EA7\u4F1A\u5458\u67E5\u770B",(0,i.jsx)("a",{onClick:we,children:"\u7ACB\u5373\u5347\u7EA7"})]}),Ae.map(Fe=>{let{cid:Ye,title:He,description:tt,owner_name:It,created_at:Nt,category:Lt}=Fe;return(0,i.jsx)(sx,{versionCid:Ye,title:He,description:tt,ownerName:It,createdTime:Nt,category:Lt,currentViewing:s,dispatch:w,onOpenVersionModal:P,isHide:Lt==="auto",isOrgFree:c==="org_free",showDays:pe},Ye)})]})}),CA=(0,r.memo)(t=>{let{projectCid:n,allVersions:s,fetched:c,fetching:d,isVersionManagementPaneShow:w,currentEditing:P,currentViewing:F,currentDeleting:X,currentResetting:ee,currentCollaborators:pe,filter:ye,theme:Ae,isReadOnly:we,accessToken:_e,dispatch:Fe,currentUser:Ye,currentOrg:He,onlyView:tt}=t;const[It,Nt]=(0,r.useState)(!1),Lt=(0,r.useRef)(!1),Xt=r.useRef(null),_o=(0,r.useRef)(null),co=Lt.current,{maxProjectVersionCount:yn}=(0,ta.xR)(Ye,He);(0,r.useEffect)(()=>{Lt.current=w}),(0,r.useEffect)(()=>{!co&&w&&d4({projectCid:n,accessToken:_e,dispatch:Fe})},[Fe,w,co,n]);const An=()=>{Nt(!0)},In=()=>{Nt(!1)},wn=()=>{Fe({type:"versions:update",payload:{isVersionManagementPaneShow:!1}}),ku("\u5173\u95ED")},_n=(0,r.useMemo)(()=>ye==="all"?s:s.filter(mi=>{let{category:ha}=mi;return ha===ye}),[ye,s]),Jn=(0,r.useMemo)(()=>{if(MB.currentOrg&&MB.getRootProject().is_org_project){const{plan:mi}=(0,ta.rM)(MB.currentOrg);return mi}return null},[]),{soloPlan:rs,isSoloLifeTime:as}=(0,r.useMemo)(()=>{if(MB.user&&!MB.getRootProject().is_org_project){const ha=I4.t.InitialUser(MB.user).planSdk.prototypePlan.getUserPlan(),Ca=[Rd.L1.Lifetime,Rd.L1.PremiumLifetime].includes(ha);return{soloPlan:ha,isSoloLifeTime:Ca}}return{}},[]);return(0,i.jsxs)(xA,{id:"version-panel",className:f()({"only-view":tt},{"in-version":F}),children:[!tt&&(0,i.jsx)(yA,{currentViewing:F,onClickCreatingButton:An,onClosePane:wn,allVersions:s,isReadOnly:we,orgPlan:Jn,dispatch:Fe}),(0,i.jsx)("div",{className:"panel-content",ref:Xt,children:(0,i.jsxs)("div",{className:"versions-list-scroll-container",ref:_o,children:[d?(0,i.jsx)(F1.ft,{className:"versions-loading"}):c?_n.length?(0,i.jsx)(bA,{allVersions:_n,currentViewing:F,dispatch:Fe,onOpenVersionModal:An,orgPlan:Jn,soloPlan:rs,isReadOnly:we,isSoloLifeTime:as}):(0,i.jsx)(SA,{theme:Ae,filter:ye}):null,(0,i.jsx)(D1.yP,{type:"vertical",containerRef:_o,isAutoHideBar:!0})]})}),(0,i.jsxs)("div",{className:"panel-bottom",children:["\u81EA\u52A8\u521B\u5EFA\u7684\u7248\u672C\u4EC5\u4FDD\u5B58 180 \u5929\uFF0C\u624B\u52A8\u521B\u5EFA\u7684\u7248\u672C\u53EF\u6C38\u4E45\u4FDD\u5B58\u3002",!ENV.IS_ON_PREMISES&&(0,i.jsx)("a",{rel:"noopener noreferrer",target:"_blank",href:"/hc/articles/415",onClick:()=>ku("\u4E86\u89E3\u66F4\u591A"),children:"\u4E86\u89E3\u66F4\u591A"})]}),(0,i.jsx)(dA,{projectCid:n,allVersions:s,currentDeleting:X,currentViewing:F,dispatch:Fe}),(0,i.jsx)(pA,{projectCid:n,allVersions:s,currentResetting:ee,currentCollaborators:pe,dispatch:Fe,currentUser:Ye,currentOrg:He,maxProjectVersionCount:yn}),(0,i.jsx)(hA,{currentCollaborators:pe,dispatch:Fe}),It&&(0,i.jsx)(uA,{onClose:In,projectCid:n,currentEditing:P,allVersions:s,dispatch:Fe})]})}),wA=(0,m.Mz)([tc.cS,S.wA,S.HW,S.PL,T.O4,A.jx,S.z$],(t,n,s,c,d,w,P)=>{const{allVersions:F,fetched:X,fetching:ee,isVersionManagementPaneShow:pe,currentEditing:ye,currentViewing:Ae,currentDeleting:we,currentResetting:_e,currentCollaborators:Fe,filter:Ye}=t,He=w===R.qi.OnlyView,tt=He?P==null?void 0:P.access_token:"";return{projectCid:c.cid,allVersions:F,fetched:X,fetching:ee,isVersionManagementPaneShow:pe,currentEditing:ye,currentViewing:Ae,currentDeleting:we,currentResetting:_e,filter:Ye,currentCollaborators:Fe,theme:d,currentOrg:n,currentUser:s,isReadOnly:He,accessToken:tt}}),rx=(0,o.Ng)(t=>wA(t))(CA),lx={VERSIONS_LIST_DARK:["/mb-workspace/images/workspace/design/versions_blank_dark.png","/mb-workspace/images/workspace/design/versions_blank_dark_en.png"],VERSIONS_LIST_LIGHT:["/mb-workspace/images/workspace/design/versions_blank_light.png","/mb-workspace/images/workspace/design/versions_wonder.png"]},SA=(0,r.memo)(t=>{let{theme:n,filter:s}=t;return(0,i.jsxs)("div",{className:"versions-blank-container",children:[(0,i.jsx)("img",{src:n==="dark"?lx.VERSIONS_LIST_DARK[+(ENV.IS_WONDER_SHARE===!0)]:lx.VERSIONS_LIST_LIGHT[+(ENV.IS_WONDER_SHARE===!0)],className:"versions-blank-bg"}),s==="all"?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{className:"blank-title",children:I18N.VersionManagementPane.versions_blank1}),(0,i.jsx)("p",{className:"blank-text",children:I18N.VersionManagementPane.versions_blank2})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{className:"blank-title",children:"\u65E0\u624B\u52A8\u521B\u5EFA\u7684\u7248\u672C\u8BB0\u5F55"}),(0,i.jsx)("p",{className:"blank-text",children:"\u624B\u52A8\u521B\u5EFA\u7684\u7248\u672C\u53EF\u6C38\u4E45\u4FDD\u5B58\uFF0C\u5E2E\u60A8\u8F7B\u677E\u8FD8\u539F\u5230\u67D0\u4E00\u5173\u952E\u8282\u70B9\u3002"})]})]})});var dx=e(93218);const AA=u.Ay.div.withConfig({displayName:"styles__StyledSingleNewbieVideo",componentId:"sc-1cm90x5-0"})(["width:240px;height:154px;margin-top:8px;.video-cover{position:relative;width:240px;height:124px;text-align:center;img{width:220px;height:124px;border-radius:8px;}.video-play-mask{position:absolute;top:0;left:10px;width:220px;height:124px;background-color:rgba(0,0,0,0.08);border-radius:8px;display:flex;justify-content:center;align-items:center;}}.video-info{width:240px;height:30px;padding:6px 16px;display:flex;justify-content:space-between;.video-title{max-width:160px;p{color:",";font-size:12px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}.video-duration{width:40px;height:18px;border-radius:9px;background-color:",";text-align:center;p{color:",";font-size:12px;font-weight:400;}}}"],t=>t.theme.color_text_L1,t=>t.theme.color_bg_card,t=>t.theme.color_text_L2),IA=t=>{const n=Math.floor(t/60),s=Math.floor(t%60),c=""+n,d=s<10?"0"+s:""+s;return c+":"+d};function MA(t){let{index:n,coverSrc:s,videoSrc:c,videoName:d,duration:w}=t;const P=(0,o.wA)(),F=(0,r.useCallback)(()=>{P({type:"modal:update:state",payload:{newbieVideoModal:{isOpen:!0,index:n}}})},[]),[X,ee]=(0,r.useState)(!1);return(0,i.jsxs)(AA,{children:[(0,i.jsxs)("div",{className:"video-cover",onMouseEnter:()=>ee(!0),onMouseLeave:()=>ee(!1),children:[(0,i.jsx)("img",{src:s,alt:d}),X&&(0,i.jsx)("div",{className:"video-play-mask",children:(0,i.jsx)(Zn.jn,{onClick:F,children:I18N.Common.play_video})})]}),(0,i.jsxs)("div",{className:"video-info",children:[(0,i.jsx)("div",{className:"video-title",children:(0,i.jsx)("p",{children:d})}),(0,i.jsx)("div",{className:"video-duration",children:(0,i.jsx)("p",{children:IA(w)})})]})]})}const TA=(0,r.memo)(MA),EA=u.Ay.div.withConfig({displayName:"styles__StyledNewbieVideoPanel",componentId:"sc-eymadb-0"})(["width:240px;height:100%;background:",";position:absolute;z-index:4;.newbie-video-header{display:flex;align-items:center;height:40px;border-bottom:1px solid ",";p{color:",";font-size:12px;font-weight:600;margin-left:16px;}.close{cursor:pointer;margin:0 8px 0 auto;width:24px;border-radius:4px;color:",";&:hover{background:",";}&:active{background:",";}}}.newbie-video-list{height:calc(100% - 40px);padding-top:2px;overflow-y:scroll;overflow-x:hidden;}"],t=>t.theme.color_bg_white,t=>t.theme.color_bg_border_02,t=>t.theme.color_text_L1,t=>t.theme.color_text_L1,t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_btn_secondary_active),px=200,kA=()=>({right:-308,transition:"right "+px+"ms ease-in-out"}),_A=()=>({entering:{right:-308},entered:{right:0},exiting:{right:-308}});function PA(){const t=(0,o.wA)(),n=(0,o.d4)(tc.BR),s=()=>{t({type:"newbieVideoPanelState:toggle",payload:{show:!1}})};return(0,i.jsx)(dx.Ay,{in:n,timeout:px,children:c=>{if(c===dx.Ay.EXITED)return null;const d={...kA(),..._A()[c]};return(0,i.jsxs)(EA,{id:"newbie-video-panel",style:d,children:[(0,i.jsxs)("div",{className:"newbie-video-header",children:[(0,i.jsx)("p",{children:I18N.ToolBar.newbie_video}),(0,i.jsx)(Je.C,{name:"common/close",className:"close",onClick:s})]}),(0,i.jsx)("div",{className:"newbie-video-list",children:gn.map((w,P)=>(0,i.jsx)(TA,{index:P,coverSrc:w.coverSrc,videoSrc:w.videoSrc,videoName:w.videoName,duration:w.duration},P))})]})}})}const hx=(0,r.memo)(PA),NA=u.Ay.div.withConfig({displayName:"styles__StyledRightPanel",componentId:"sc-iqy9e-0"})(["position:relative;height:100%;display:flex;box-shadow:-1px 0 0 ",";z-index:5;#ST-panel,#design-comment-panel,#version-panel,#newbie-video-panel{position:absolute;}#ST-panel,#design-comment-panel{z-index:2;}#version-panel{z-index:3;}#newbie-video-panel{z-index:4;}"],t=>t.theme.color_bg_border_01);function LA(){const{isShowSettingPanel:t,isShowCommentPanel:n,isShowSTPanel:s,isShowVersionPanel:c,isShowNewbieVideoPanel:d}=(0,o.d4)(DA);return(0,i.jsxs)(NA,{className:"mb-right-panel",children:[t&&(0,i.jsx)(YS,{}),n&&(0,i.jsx)(eA,{}),s&&(0,i.jsx)(cA,{}),c&&(0,i.jsx)(rx,{}),d&&(0,i.jsx)(hx,{})]})}const DA=(0,m.Mz)([tc.UI,C2.C,S.W4,l.sI,Kw.Lc,tc.cS],(t,n,s,c,d,w)=>{let{isEmptyScreen:P}=n,{isDesign:F}=s,{currentViewing:X,isVersionManagementPaneShow:ee}=w;return{isShowSettingPanel:t&&!P&&!X,isShowCommentPanel:t&&!P&&c,isShowSTPanel:t&&!P&&!c&&d,isShowVersionPanel:F&&ee,isShowNewbieVideoPanel:F}}),BA=(0,r.memo)(LA);var RA=e(63065);function jA(t){const{stickyList:n,expandKeySet:s,alreadyExpandKeySet:c}=t,d=(0,o.d4)(ce.p$),w=(0,o.d4)(A.uu),P=(0,o.d4)(tc.TW),[F,X]=(0,r.useState)(!1),ee=(0,o.wA)();return(0,i.jsxs)(i.Fragment,{children:[n!=null&&n.length?(0,i.jsx)(tx,{selection:d,isOnlyView:!0,isHtmlZipPreview:w,stickyList:n,setIsExportOpenFromContainer:X,expandKeySet:s,alreadyExpandKeySet:c,STPanelWidth:P,dispatch:ee}):(0,i.jsx)(ox.h,{}),!w&&(0,i.jsx)(Z4.A,{isExportOpenFromContainer:F,setIsExportOpenFromContainer:X})]})}const OA=(0,r.memo)(jA);var FA=e(36702);function UA(){const t=(0,o.d4)(A.uu),n=(0,o.d4)(A.jx),s=(0,o.d4)(l.Cb),c=(0,o.d4)(l.ZA),d=(0,o.d4)(tc.TW);return(0,i.jsx)(FA.K,{activeCommentCid:s,commentList:c,isHtmlZipPreview:t,commentPanelWidth:d,viewType:n})}const zA=(0,r.memo)(UA);var WA=e(50485);const VA=(0,r.memo)(t=>{var n;let{isEnableVersionControl:s,layoutV9:c,onTabChange:d,isActive:w}=t;const P=(0,o.d4)(tc.vr),F=(0,o.d4)(S.HW),X=(0,o.d4)(S.wA),ee=(0,o.d4)(S.PL),pe=(0,o.d4)(S.z$),ye=(0,o.wA)(),Ae=c==="recommend",we=ee==null?void 0:ee.is_org_project,_e=ee==null?void 0:ee.is_solo_lifetime,Fe=we&&X?(0,F4.uP)(X,F==null?void 0:F.id):{},Ye=we&&X?(n=X.permissions)==null?void 0:n.find(co=>Number(co.user_id)===Number(F==null?void 0:F.id)):!1,He=((X==null?void 0:X.lifetime_bindings)||(X==null?void 0:X.lifetimeBindings)||[]).length>0,tt=s&&(we?Fe.isFullOrg||Fe.isTrialOrg||Fe.displayPlan==="org_full"&&He:_e),It=MB.canEditByCurrentUser,Nt=()=>{const co=(0,oa.l)(X,"v8_\u603B\u89C8\u6A21\u5F0F_\u5E95\u90E8\u7248\u672C\u8BB0\u5F55\u529F\u80FD","v8proto-read-use-version",!0);co.immediateUse="org_full",MB.global.popupHelper.chargeAsync(co)},Lt=()=>{!tt||w||(d(),ye({type:"entry:comment:disabled",payload:{noWigglingCommentCid:!0}}),ye(R.GO.toggleInspectMode(!1)),ye(R.GO.toggleHandMode(!1)),ye(R.GO.select([])),ye({type:"elbow:update",payload:{isInElbowMode:!1}}),ye({type:"entry:ST:STMode:disable"}),ye({type:"entry:toolbar:open:versionControl:modal"}),P?(0,C0.A)({operation_type:C0.D.TurnOffVersionControl}):(0,C0.A)({operation_type:C0.D.TurnOnVersionControl}))},Xt=()=>{const co=new URL("/proto/design/"+ee.cid,window.location.origin);pe!=null&&pe.access_token&&co.searchParams.append("projShareToEdit",pe.access_token),(0,yc.JW)(co.href)},_o=(0,r.useMemo)(()=>{const co=(0,i.jsxs)("span",{children:[I18N.ToolBar.versionControlNotAvailable.content,(0,i.jsx)("span",{className:"change-settings",onClick:Xt,children:I18N.ToolBar.versionControlNotAvailable.changeSettings})]}),yn=(0,i.jsxs)("span",{children:[I18N.ToolBar.upgradeToVersionControl.content,(0,i.jsxs)("span",{className:"upgrade-now",onClick:Nt,children:[(0,i.jsx)(Je.C,{size:16,name:"sharing/updated"}),I18N.ToolBar.upgradeToVersionControl.upgradeNow]})]}),An=""+I18N.ToolBar.versionControlNotAvailable.content+I18N.ToolBar.versionControlNotAvailable.contact;return tt?I18N.ToolBar.versionControl:we?Fe.isFullOrg||Fe.isTrialOrg?It?co:An:Ye?yn:An:It&&_e?co:An},[Xt,Nt,tt,we,Fe.isFullOrg,Fe.isTrialOrg,It,Ye,_e]);return tt?(0,i.jsx)(ux,{className:f()("nav-item",{active:w},{isV9Layout:Ae}),onClick:Lt,children:(0,i.jsx)("span",{className:"nav-label",children:I18N.ToolBar.versionControl})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(WA.I,{className:"version-control-entry-tt",content:_o,children:(0,i.jsx)(ux,{className:f()("nav-item","disabled",{isV9Layout:Ae}),children:(0,i.jsx)("span",{className:"nav-label",children:I18N.ToolBar.versionControl})})}),(0,i.jsx)(HA,{})]})}),ux=u.Ay.li.withConfig({displayName:"VersionControlEntryTab__StyledVersionControlEntryTab",componentId:"sc-1v90i57-0"})([""]),HA=(0,u.DU)([".version-control-entry-tt{padding:6px;margin-top:-10px;> span{display:flex;align-items:center;line-height:16px;.change-settings,.upgrade-now{display:flex;align-items:center;margin-left:10px;color:rgba(112,188,246,1);cursor:pointer;&:hover{color:rgba(149,209,248,1);}}.upgrade-now{.svg-icon{margin-right:2px;path{fill:rgba(22,132,252,1);}path:last-of-type{fill:#fff;}}}}}"]);var mx=e(81988);function KA(){var t;const n=(0,o.d4)(tc.UI),s=(0,o.d4)(l.sI),c=(0,o.d4)(A.uu),d=(0,o.d4)(A.rg),w=(0,o.d4)(A.jx),P=(0,o.d4)(S.z$),F=w===R.qi.OnlyView&&(P==null?void 0:P.comment_permission)==="off",X=(0,o.d4)(C.I9),ee=!c&&(P==null?void 0:P.type)==="advanced",{currentViewing:pe}=(0,o.d4)(tc.cS),ye=!!pe,Ae=[];ye||(c||d?Ae.push({label:I18N.Note.note}):(X&&Ae.push({label:I18N.Note.note}),F||Ae.push({label:I18N.Comment.comment})));const[we,_e]=(0,r.useState)(0),Fe=(0,o.wA)(),Ye=(0,o.d4)(l.c1),He=(0,o.d4)(l.M5),tt=(0,o.d4)(S.Ur),It=(0,o.d4)(tc.zM),Nt=(0,o.d4)(tc.ju),Lt=(0,o.d4)(T.MZ),Xt=Lt==="old",_o=tt!=null&&tt.cid?rootSdk.sdkStore.getSubHotItemList(tt.cid).filter(rs=>{let{hotAttr:as}=rs;return["wSticky","wTear"].includes(as.type)}).sort((rs,as)=>rs.hotAttr.order-as.hotAttr.order):[],co=new Set([...Array.from(It),...Array.from(Nt)]),yn=!_o.every(rs=>{let{key:as}=rs;return Nt.has(as)}),An=_o.every(rs=>{let{key:as}=rs;return co.has(as)}),In=!c&&!X&&!F;if((0,r.useEffect)(()=>{(s||!X&&!F)&&_e(1)},[s,X,F]),!n&&!s)return null;const wn=()=>{Fe({type:"entry:STPanel:toggle:all:expandKeySet",payload:{isExpandAll:An,stickyList:_o}})},_n=()=>{Fe({type:"versions:update",payload:{isVersionManagementPaneShow:!1}})},Jn=rs=>{[0,1].includes(rs)&&_n(),_e(rs)};return(0,i.jsxs)(Y4,{className:f()("with-switch-header",{"is-in-version":ye}),isShowBorderResizer:!ye,children:[(0,i.jsxs)(mx.b,{children:[s?(0,i.jsx)("h3",{children:I18N.Comment.comment}):(0,i.jsxs)(mx.u,{className:f()({isOldV8UI2408:Xt}),activeIndex:In?0:we,onTabChange:Jn,layoutV9:Lt,children:[Ae.map((rs,as)=>{let{...mi}=rs;return(0,i.jsx)(V4.n,{...mi,className:f()({line_active:Ae.length>1})},as)}),ee?(0,i.jsx)(VA,{isEnableVersionControl:P==null?void 0:P.enable_version_record,layoutV9:Lt,onTabChange:()=>Jn(2),isActive:we===2},2):(0,i.jsx)(i.Fragment,{})]}),we===0?yn&&(0,i.jsx)("span",{className:"expandAll",onClick:wn,children:An?I18N.ScreenList.collapse_screens:I18N.ScreenList.expand_screens}):we===1?((t=MB)==null||(t=t.user)==null?void 0:t.id)&&(0,i.jsx)(RA.A,{selected:Ye,isShowCompletedComment:He,viewType:w,dispatch:Fe}):we===2?(0,i.jsx)(nx,{}):null]}),we===0?(0,i.jsx)(OA,{stickyList:_o,expandKeySet:It,alreadyExpandKeySet:Nt}):we===2?(0,i.jsx)(rx,{onlyView:!0}):(0,i.jsx)(zA,{})]})}const GA=(0,r.memo)(t=>{const{isHtmlZipPreview:n,inspectMode:s}=t;return(0,i.jsx)("div",{id:"inspect-panel",children:!n&&s&&(0,i.jsx)(Z4.A,{})})});var gx=e(1190);const YA=(0,gx.$)(KA),ZA=(0,gx.$)(GA);function XA(){const{inspectMode:t,isCommunityPreview:n,isEmbedV2Preview:s,isReadOnlyCommentMode:c,fullScreenMode:d,isShowRightPane:w,isHtmlZipPreview:P}=(0,o.d4)(QA),F=(0,o.wA)(),X=()=>F({type:"entry:toggle:right-panel"}),ee=()=>t||n||s&&!d?null:c?(0,i.jsx)(YA,{isVisible:w,orientation:"right",vacuum:12,toggleFunc:X}):null;return(0,i.jsxs)(i.Fragment,{children:[ee(),(0,i.jsx)(hx,{}),(0,i.jsx)(ZA,{className:f()("with-toggle-visibility-button-readOnly-inspect-panel",{"is-inspect-mode":t}),isVisible:w&&t,orientation:"right",vacuum:12,inspectMode:t,isHtmlZipPreview:P,toggleFunc:X})]})}const QA=(0,m.Mz)([A._b,A.pH,A.rg,S.z$,A.T7,C.I9,tc.UI,A.uu],(t,n,s,c,d,w,P,F)=>{const X=w||(c==null?void 0:c.comment_permission)!=="off";return{inspectMode:t,isCommunityPreview:n,isEmbedV2Preview:s,isReadOnlyCommentMode:X,fullScreenMode:d,isShowRightPane:P,isHtmlZipPreview:F}}),JA=(0,r.memo)(XA),$A=u.Ay.div.withConfig({displayName:"styles__StyledRightSidePanel",componentId:"sc-103a1mw-0"})(["display:flex;position:relative;flex-direction:column;&.isDeleteRulerLine{pointer-events:none;}.with-toggle-visibility-button-readOnly-inspect-panel{height:0;.toggle-button{visibility:hidden;opacity:0;}&.is-inspect-mode{height:100%;.toggle-button{&:not(.pane-visible){visibility:visible;opacity:1;}&.visible{visibility:visible;opacity:1;}}}}#inspect-panel{width:100%;height:100%;display:flex;position:relative;flex-direction:column;}"]);function qA(){const{isDeleteRulerLine:t,onlyView:n}=(0,o.d4)(eI);return(0,i.jsx)($A,{id:"right-slide-panel",className:f()({isDeleteRulerLine:t}),"data-is-widget-insertable":!1,children:n?(0,i.jsx)(JA,{}):(0,i.jsx)(BA,{})})}const eI=(0,m.Mz)([g.Q,A.jx],(t,n)=>{const s=n===R.qi.OnlyView;return{isDeleteRulerLine:t,onlyView:s}});var tI=e(88875),oI=e(26737),nI=e(5904),sI=e(40432),iI=e(35078);const aI=u.Ay.div.withConfig({displayName:"styles__StyledSharingManager",componentId:"sc-1xm9iti-0"})(["min-width:376px;background:",";color:",";position:absolute;transform:translateX(-84%);top:48px;border-radius:8px;border:1px solid ",";box-shadow:",";overflow:hidden;cursor:auto;"],t=>t.theme.color_bg_white,t=>t.theme.color_text_L2,t=>t.theme.color_bg_border_02,t=>t.theme.shadow_5),rI=(0,nI.dl)();window.SharingEventEmitter=rI;const lI=(0,m.Mz)([T.O4,S.HW,S.wA,S.z$,C.iJ,S.Ur],(t,n,s,c,d,w)=>({theme:t,user:n,org:s,sharingInReadOnly:c,projShareToEdit:d,hostCurrentScreen:w}));function cI(){var t;const{theme:n,user:s,org:c,sharingInReadOnly:d,projShareToEdit:w,hostCurrentScreen:P}=(0,o.d4)(Ye=>lI(Ye),o.bN),F=(t=MB)==null?void 0:t.getRootProject(),X=(0,o.wA)(),[ee,pe]=(0,r.useState)(void 0),{screenDataMap:ye,screenTreeData:Ae}=(0,iI.tb)(),we={pageAttrMap:ye,pageKeyList:Object.keys(ye),treeData:Ae},_e=()=>{X({type:"toolbar:update:state",payload:{isShowSharingManager:!1,projShareToEdit:""}})},Fe=Ye=>{const He=document.elementFromPoint(Ye.clientX,Ye.clientY),tt=document.querySelector("#sharing-box"),It=document.querySelector("#IBOT_MODAL_ROOT");He!=null&&He.closest("#IBOT_SELECT_MENU_ROOT")||Ye.target.closest(".sharingV2-click-visible")!==null||Ye.target.closest(".ai-semantic-share")!==null||It.contains(He)||Ye.target.closest("#sharing-box")!==null||tt.contains(He)||Ye.target.closest(".context-menu-mask > .design-avoid")!==null||Ye.target.closest(".go-to-sharing")!==null||Ye.target.closest(".sharing--drop-canvas-list")!==null||Ye.target.closest(".dropmenu-no-exit")!==null||Ye.target.closest(".permission-select.CheckSelectMenu")!==null||(X({type:"toolbar:sharingManager:toggle"}),X({type:"toolbar:update:state",payload:{projShareToEdit:""}}))};return(0,r.useEffect)(()=>{const Ye=tt=>{let{whichModal:It}=tt;MB.action("modal:update:state",{rightsAndInterestsModal:{isOpen:!0,type:Xe.hC.MaxSharingCount,project:F}})},He=window.SharingEventEmitter;return He.on("sharing:count",Ye),()=>{He.off("sharing:count",Ye)}},[F,X]),(0,r.useEffect)(()=>{pe(document.getElementById("sharing-box"))},[]),(0,r.useEffect)(()=>{var Ye;F!=null&&F.is_org_project&&c&&c!=null&&c.cid&&!(c!=null&&(Ye=c.members)!=null&&Ye.length)&&(async()=>{try{const tt=await(0,c0.jm)(c.cid);X({type:"update:org:member:list",payload:{orgMembers:tt}})}catch(tt){console.error("requestOrgMembers",tt)}})()},[F==null?void 0:F.is_org_project,X,c]),ee?(0,dr.createPortal)((0,i.jsxs)(aI,{children:[(0,i.jsx)(sI.n,{theme:n,org:c,user:s,project:F,members:(c==null?void 0:c.members)||[],hostType:"proto",hostSharingData:d,projShareToEdit:w,screenMetaList:we,handleClose:_e,hostCurrentScreen:P}),(0,i.jsx)(Hc.A,{target:document,onClick:(0,Hc.t)(Fe,{capture:!0})})]}),ee):null}const dI="px",Pg="rem",Ng="em",pI="pt",hI="dp",fx="rpx",uI=[dI,hI,pI,fx,Ng,Pg],mI=[10,12,14,16],yx=t=>1,rd=function(t,n,s,c,d){var w;t===void 0&&(t=0),n===void 0&&(n=1),s===void 0&&(s=""),c===void 0&&(c=1),d===void 0&&(d=!0);let P=Number.parseFloat((n*t).toFixed(2));return s===fx?P=Number.parseFloat((P*c).toFixed(2)):[Ng,Pg].includes(s)&&(P=Number.parseFloat((1/n*t).toFixed(2))),(w=s)!=null&&w.length&&d?P+s:P},X4=()=>{try{const t=window.localStorage.getItem("user_pick_color");return JSON.parse(t||"[]")}catch(t){return[]}},gI=t=>{const n=X4(),s=t==null?void 0:t.toLowerCase();return n.includes(s)?{history:n,focusColor:t}:(n.unshift(s),n.length>40&&n.pop(),window.localStorage.setItem("user_pick_color",JSON.stringify(n)),{history:n,focusColor:null})},fI=t=>{const n=X4(),s=t==null?void 0:t.toLowerCase(),c=n.indexOf(s);return c===-1||(n.splice(c,1),window.localStorage.setItem("user_pick_color",JSON.stringify(n))),n},Q4=t=>{const n=new Map;return t&&t.split(";").filter(s=>s).forEach(s=>{const[c,d]=s.split(":");n.set(c.trim(),d.trim())}),n},xx=(t,n)=>{var s;const{selectionLeftTopInfo:{x:c,y:d}}=t,w=n!=null&&(s=n.tableData)!=null&&s.cellStyles&&n.tableData.cellStyles[d]?n.tableData.cellStyles[d][c]:"",P=Q4(w);return yI(P)},J4={ha:["text-align","left"],va:["align-items","center"],fontSize:["font-size",14],color:["color","rgba(255,255,255,1)"],boldType:["font-weight","normal"],fontStyle:["font-style","normal"],textDecoration:["text-decoration","normal"],lineHeight:["line-height",20],padding:["padding",4]},yI=t=>{const n={newOverOld:!1,showContentBox:!1,ha:"center",va:"center",fontSize:14,color:"rgba(91, 107, 115, 1)",boldType:0,fontStyle:"normal",textDecoration:"normal",lineHeight:20,padding:0,haDisabled:!1,vaDisabled:!1,canShowParagraph:!0,isDisabledFontDropdown:!1,isDisabledFontRadioLine:!1,isEditing:!1};return Object.keys(n).forEach(s=>{J4[s]&&(n[s]=t.get(J4[s][0])||J4[s][1])}),n.padding=Number.parseInt(n.padding),n.fontSize=Number.parseInt(n.fontSize),n.lineHeight=Number.parseInt(n.lineHeight),n.boldType=+(n.boldType==="bold"),n},Lg=(t,n)=>{var s,c,d,w;if((0,xg.SS)(t))return xI(t,n);const{x:P,y:F}=n,{x:X,y:ee,w:pe,h:ye,tableData:{columns:Ae,rows:we,mergeCells:_e}}=t;let Fe=((s=Ae[P])==null?void 0:s.width)||0,Ye=((c=we[F])==null?void 0:c.height)||0;if(_e[P+"-"+F]){const[Lt,Xt]=_e[P+"-"+F];for(let _o=P+1;_o<=P+Lt-1;_o++){var He;Fe+=((He=Ae[_o])==null?void 0:He.width)||0}for(let _o=F+1;_o<=F+Xt-1;_o++){var tt;Ye+=((tt=we[_o])==null?void 0:tt.height)||0}}const It=Ae.reduce((Lt,Xt,_o)=>Lt+(_o<=P?Xt.width:0),0)-((d=Ae[P])==null?void 0:d.width)||0,Nt=we.reduce((Lt,Xt,_o)=>Lt+(_o<=F?Xt.height:0),0)-((w=we[F])==null?void 0:w.height)||0;return{w:Fe,h:Ye,x:X-pe/2+It+Fe/2,y:ee-ye/2+Nt+Ye/2,r:0}},xI=(t,n)=>{const{x:s,y:c}=n,{x:d,y:w,w:P,h:F,widthList:X,heightList:ee,tableData:{mergeCells:pe}}=t;let ye=X[s],Ae=ee[c];if(pe[s+"-"+c]){const[Fe,Ye]=pe[s+"-"+c];for(let He=s+1;He<=s+Fe-1;He++)ye+=X[He];for(let He=c+1;He<=c+Ye-1;He++)Ae+=ee[He]}const we=X.reduce((Fe,Ye,He)=>Fe+(He<=s?Ye:0),0)-X[s],_e=ee.reduce((Fe,Ye,He)=>Fe+(He<=c?Ye:0),0)-ee[c];return{w:ye,h:Ae,x:d-P/2+we+ye/2,y:w-F/2+_e+Ae/2,r:0}},vI=(t,n,s,c)=>{if((0,xg.SS)(t))return bI(t,n,s,c);const{x:d,y:w}=s,{tableData:{data:P,cellStyles:F}}=t,X=Lg(t,s),ee=P[w][d],pe=Q4(F[w][d]),{color:ye,fontSize:Ae,fontStyle:we,boldType:_e,textDecoration:Fe,ha:Ye,va:He,lineHeight:tt,padding:It}=xx({selectionLeftTopInfo:s},t);return $4({...t,table_cell_text:ee,x:X.x,y:X.y,w:X.w,h:X.h,border:void 0,color:ye,fontSize:Ae,fontStyle:we,boldType:_e,textDecoration:Fe,ha:Ye,va:He,lineHeight:tt,padding:It,table_cell_background:pe.get("background")},n,c)},bI=(t,n,s,c)=>{const{x:d,y:w}=s,{table:P,cells:F}=t,X=Lg(t,s),ee=(0,xg.j)(F,P,w,d),pe=(ee==null?void 0:ee.data)||"",ye=Q4((ee==null?void 0:ee.style)||""),{color:Ae,fontSize:we,fontStyle:_e,boldType:Fe,textDecoration:Ye,ha:He,va:tt,lineHeight:It,padding:Nt}=xx({selectionLeftTopInfo:s},t);return $4({...t,table_cell_text:pe,x:X.x,y:X.y,w:X.w,h:X.h,border:void 0,color:Ae,fontSize:we,fontStyle:_e,boldType:Fe,textDecoration:Ye,ha:He,va:tt,lineHeight:It,padding:Nt,table_cell_background:ye.get("background")},n,c)},CI=["wRect","wOval","wMTextInput","wMTextArea","wMSelect","wButton","wMTooltip","wLine","wArrow","wIconButton","wPlaceholder","wPolygon","wStar","wSegmentedControl","wCollapse","wDigitalStepper","wPaginationMobile","wPaginationWeb","wDropMenu"],$4=(t,n,s)=>{var c,d;const w={top:t.y-t.h*.5,width:t.w,height:t.h,left:t.x-t.w*.5};if(typeof s=="function"){const{displayName:ee,textStyles:pe,inspectText:ye,widgetText:Ae,bgColors:we}=s(t);w.displayName=ee,Ae&&(w.textStyles=pe,w.inspectText=ye),we&&(w.bgColors=we)}else console.error("getWidgetInspectStyles is not a function");const P=t.borderRadius;P&&P!=="0"&&(w.bdRadius=P);const F=t.ro;if(F&&(w.rotation=F),t.border&&CI.includes(t.type)){var X;w.borders=t!=null&&(X=t.border)!=null&&X.bdrIsVisible?[{thickness:t.border.bdrWidth,color:(0,sd.t0)(t.border.bdrColor)}]:[]}if((t==null||(c=t.shadow)==null?void 0:c.type)==="box_shadow"){const ee=t==null?void 0:t.shadow;w.shadows=ee!=null&&ee.shadowIsVisible?[{offset_x:ee.offsetX,offset_y:ee.offsetY,blur_radius:ee.blurRadius,spread:ee.spreadRadius,color:(0,sd.t0)(ee.shadowColor)}]:[]}if((t==null||(d=t.shadow)==null?void 0:d.type)==="text_shadow"){const ee=t==null?void 0:t.shadow;w.shadows=ee!=null&&ee.shadowIsVisible?[{offset_x:ee.offsetX,offset_y:ee.offsetY,blur_radius:ee.blurRadius,color:(0,sd.t0)(ee.shadowColor)}]:[]}return Object.assign({},t,w)},sE=(t,n)=>{const s=wI(t)?"chinese":"english",c=SI()?"mac":"windows";return AI[c]["others"][s]},wI=t=>{const n=t.charCodeAt(0);return n>=19968&&n<=40869},SI=()=>/Mac|iPod|iPhone|iPad/.test(navigator.platform),AI={mac:{ios:{chinese:"PingFang SC",english:"-apple-system"},android:{chinese:"PingFang SC",english:"Roboto"},others:{chinese:"PingFang SC",english:"Roboto"}},windows:{ios:{chinese:"Microsoft Yahei",english:"Arial"},android:{chinese:"Microsoft Yahei",english:"Roboto"},others:{chinese:"Microsoft Yahei",english:"Roboto"}}};var II=e(22544),q4=e.n(II);const Rm=t=>{if(cp(t)!==vh)return console.warn("Not rgbacolor but use rgba2hexWithA"),t;const s=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+(\.\d+)?)[\s+]?/i);return s&&s.length>=4?{hex:("#"+("0"+parseInt(s[1],10).toString(16)).slice(-2)+("0"+parseInt(s[2],10).toString(16)).slice(-2)+("0"+parseInt(s[3],10).toString(16)).slice(-2)).toUpperCase(),o:Number((+s[4]).toFixed(2))}:t},cp=function(t){return t===void 0&&(t=jm),t.includes(vh)?vh:t.includes(i1)?i1:t.includes("#")&&t.length===9?k1:t.includes("#")?_1:t.includes(ny)?ny:!1},dp=function(t,n){if(n===void 0&&(n=vh),!t)return jm;const s=cp(t);if(!s)return jm;switch(s){case vh:if(n===s)return t;if(n===i1)return bx(t);if(n===_1)return Cx(t);if(n===k1)return wx(t);break;case i1:if(n===s)return t;if(n===vh)return Sx(t);if(n===_1)return Ax(t);if(n===k1)return MI(t);break;case _1:if(n===s)return t;if(n===vh)return TI(t);if(n===i1)return ey(t);if(n===k1)return Ix(t);break;case k1:if(n===s)return t;if(n===vh)return ty(t);if(n===i1)return EI(t);if(n===_1)return kI(t);break;case ny:if(n===vh)return Dg;if(n===i1)return bx(Dg);if(n===_1)return Cx(Dg);if(n===k1)return wx(Dg);break;default:return t}},vx=t=>{if(cp(t)!==vh)return console.warn("Not rgbacolor but use rgba2rgbWithA"),t;const{hex:s,o:c}=Rm(t);return s?{rgb:ey(s),o:c}:jm},ey=t=>{if(cp(t)!==_1)return console.warn("Not hexcolor but use hex2rgb"),t;if(t=t.replace("#",""),t.length===3){const[w,P,F]=t.split("");t=""+w+w+P+P+F+F}const s=parseInt(t.substring(0,2),16),c=parseInt(t.substring(2,4),16),d=parseInt(t.substring(4,6),16);return"rgb("+s+", "+c+", "+d+")"},bx=t=>{const{rgb:n,o:s}=vx(t);if(!n)return t;const c=s<=1?s*100:s;return n+" "+Math.round(c)+"%"},Cx=t=>{const{hex:n,o:s}=Rm(t);if(!n)return t;const c=s<=1?s*100:s;return n.toUpperCase()+" "+Math.round(c)+"%"},wx=t=>{if(cp(t)!==vh)return console.warn("Not rgbacolor but use rgba2argb"),t;const{hex:s,o:c}=Rm(t);return s?"#"+("0"+Math.round(c*255/100).toString(16)).slice(-2).toUpperCase()+s.slice(1):t},Sx=t=>cp(t)!==i1?(console.warn("Not rgbcolor but use rgb2rgba"),t):"rgba("+t.slice(4,-1)+", 1)",Ax=t=>{if(cp(t)!==i1)return console.warn("Not rgbcolor but use rgb2hex"),t;const s=t.match(/^rgb?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);if(s&&s.length===4){const c=("0"+parseInt(s[1],10).toString(16)).slice(-2),d=("0"+parseInt(s[2],10).toString(16)).slice(-2),w=("0"+parseInt(s[3],10).toString(16)).slice(-2);return("#"+c+d+w).toUpperCase()}},MI=t=>cp(t)!==i1?(console.warn("Not rgbcolor but use rgb2argb"),t):Ix(Ax(t)),Ix=t=>cp(t)!==_1?(console.warn("Not hexcolor but use hex2argb"),t):"#FF"+t.slice(1),TI=t=>cp(t)!==_1?(console.warn("Not hexcolor but use hex2rgba"),t):Sx(ey(t)),ty=t=>{if(cp(t)!==k1)return console.warn("Not argbcolor but use argb2rgba"),t;const s=[];for(let F=1;F<t.length;F+=2)s.push(t.slice(F,F+2));let[c,d,w,P]=s;return d=parseInt(d,16),w=parseInt(w,16),P=parseInt(P,16),c=Number((parseInt(c,16)/255).toString().slice(0,4)),"rgba("+d+", "+w+", "+P+", "+c+")"},EI=t=>{if(cp(t)!==k1)return console.warn("Not argbcolor but use argb2rgbWithA"),t;const s=ty(t),{rgb:c,o:d}=vx(s);return c?c+" "+Math.round(d*100)+"%":t},kI=t=>{if(cp(t)!==k1)return console.warn("Not argbcolor but use argb2hexWithA"),t;const s=ty(t),{hex:c,o:d}=Rm(s);return c?c.toUpperCase()+" "+Math.round(d*100)+"%":t},oy=t=>Number(t.toFixed(2)),_I=t=>{if(!t)return jm;const{R:n,G:s,B:c,A:d}=(0,sd.BN)((0,sd.Sd)(t)),w=oy(n/255),P=oy(s/255),F=oy(c/255);return"UIColor(red:"+w+", green:"+P+", blue:"+F+", alpha:"+d+")"},PI=t=>{try{if(cp(t)!==vh)return console.warn("Not rgbacolor but use rgba2hexWithA"),t;const s=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+(\.\d+)?)[\s+]?/i);if(s&&s.length>=4){let c="#",d=parseFloat(Number((+s[4]).toFixed(2)).toString());return d>=0&&d<=1?d=Math.round(255*d):d>=0&&d<=100?d=Math.round(255*d/100):d=-1,d>=0&&(c=c+(d|256).toString(16).slice(1)),c=(c+("0"+parseInt(s[1],10).toString(16)).slice(-2)+("0"+parseInt(s[2],10).toString(16)).slice(-2)+("0"+parseInt(s[3],10).toString(16)).slice(-2)).toUpperCase(),c}return t}catch(n){return t}},vh="rgba",k1="argb",i1="rgb",_1="hex",ny="transparent",Dg="rgba(255, 255, 255, 0)",jm="#FFFFFF",NI=t=>{let{attr:n,language:s,unit:c}=t;const d=Tx(s),{width:w,height:P,lineHeight:F,opacity:X,borderRadius:ee,borderWidth:pe,borderColor:ye,background:Ae,backgroundColor:we,color:_e,fontSize:Fe,fontFamily:Ye,fontStyle:He,boxShadow:tt,textAlign:It,x:Nt,y:Lt}=n,Xt=Nt&&{[s0[d].x]:bh(Nt,c,d)},_o=Lt&&{[s0[d].y]:bh(Lt,c,d)},co=w&&{[s0[d].width]:bh(w,c,d)},yn=P&&{[s0[d].height]:bh(P,c,d)},An=F&&{[s0[d].lineHeight]:bh(F,c,d)},In=X&&{[s0[d].opacity]:bh(X,c,d)},wn=ee&&{[s0[d].borderRadius]:bh(ee,c,d)},_n=we&&{[s0[d].backgroundColor]:Om(we,s)},Jn=Ae&&{[s0[d].background]:bh(Ae,c,d,!0)},rs=_e&&{[s0[d].color]:Om(_e,s)},as=Fe&&{[s0[d].fontSize]:bh(Fe,c,d)},mi=Ye&&{[s0[d].fontFamily]:bh(Ye,c,d)},ha=He&&{[s0[d].fontStyle]:bh(He,c,d)},Ca=tt&&{[s0[d].shadows]:tt},ms=pe&&{[s0[d].borderWidth]:bh(pe,c,d)},qn=ye&&{[s0[d].borderColor]:Om(ye,s)},si=It&&{[s0[d].textAlign]:It};return Object.assign({},Xt,_o,co,yn,An,In,wn,ms,qn,Jn,_n,rs,as,ha,si,Ca,mi)},bh=function(t,n,s,c){if(c===void 0&&(c=!1),t=t.toString(),s==="px")return n==="dp"?t.replace(n,s):t;if(s==="dp")return t.replace(n,s);if(s==="pt")return t.replace(n,"")},Om=(t,n)=>{t=t.toString();try{if(n==="android")return PI(t);if(n==="swift")return _I(t)}catch(s){console.warn("### color error:",s)}return t},s0={px:{x:"left",y:"top",width:"width",height:"height",lineHeight:"line-height",opacity:"opacity",border:"border",borderRadius:"border-radius",borderColor:"border-color",borderWidth:"border-width",background:"background",backgroundColor:"background-color",color:"color",fontSize:"font-size",fontFamily:"font-family",fontStyle:"font-style",textAlign:"text-align",shadows:"box-shadow",innerShadows:"inner-shadow"},dp:{x:"left",y:"top",width:"layout_width",height:"layout_height",border:"border",opacity:"opacity",color:"textColor",fontSize:"textSize",fontFamily:"font-family",fontStyle:"font-style",textAlign:"gravity",background:"background",backgroundColor:"background",borderRadius:"radius",borderColor:"border-color",lineHeight:"line-height",borderWidth:"border-width",shadows:"box-shadow",innerShadows:"inner-shadow"},pt:{x:"x",y:"y",width:"width",height:"height",opacity:"opacity",border:"border",background:"background",backgroundColor:"backgroundColor",color:"text-color",textAlign:"alignment",fontSize:"fontSize",fontFamily:"fontFamily",fontStyle:"font-style",borderRadius:"cornerRadius",borderColor:"borderColor",borderWidth:"border-width",lineHeight:"lineSpacing"}},sy=t=>{const n=/<[^>]+>/ig;return t?t.replace(n,""):""},LI=t=>{const{width:n,height:s,left:c,top:d,opacity:w,borderRadius:P,rotation:F,ratio:X,unit:ee,rectHeight:pe,rectWidth:ye,rpxRatio:Ae}=t,we=rd(c,X,ee,Ae),_e=rd(d,X,ee,Ae),Fe=rd(ye||n,X,ee,Ae),Ye=rd(pe||s,X,ee,Ae),He=P?(()=>{if(typeof P=="number")return rd(parseInt(P)||0,X,ee,Ae);{const Nt=Object.values(P),Lt=Nt[2];return Nt[2]=Nt[3],Nt[3]=Lt,Nt.map(Xt=>rd(parseInt(Xt)||0,X,ee,Ae)).join(" ")}})():null,tt=iy(F)?null:F+"\xB0",It=iy(w)?null:w+"%";return{adapterLeft:we,adapterTop:_e,adapterWidth:Fe,adapterHeight:Ye,radius:He,opacity:It,rotate:tt}},iy=t=>t===null||isNaN(t)||t===0,ay=function(t,n,s,c){return c===void 0&&(c=1),iy(t)?null:rd(t,n,s,c)},DI=t=>{let{textStyles:n,borders:s,background:c,shadows:d,innerShadows:w,unit:P,ratio:F,language:X,rpxRatio:ee}=t,pe,ye,Ae,we,_e,Fe,Ye,He,tt,It,Nt,Lt;if(n){const{color:co,fontSize:yn,fontFace:An,lineHeight:In,horizontalAlign:wn}=n;pe=co,ye=rd(yn,F,P,ee),Ae=An,_e=wn,we=ay(In,F,P,ee)}if(s.length){const{position:co="inside",color:yn,thickness:An}=s[0];Fe=rd(An,F,P,ee),He=co,yn&&(Ye=yn)}return c.length&&(["linear","radial"].includes(c[0].type)?Lt=BI(c[0],X):tt=c[0].value),d.length&&(It=Mx(d,P,F,X,!1,ee)),w.length&&(Nt=Mx(w,P,F,X,!0,ee),It=It+", "+Nt),{fontFamily:Ae,fontSize:ye,color:pe,lineHeight:we,textAlign:_e,borderWidth:Fe,borderColor:Ye,borderPosition:He,backgroundColor:tt,background:Lt,boxShadow:It}},Mx=function(t,n,s,c,d,w){d===void 0&&(d=!1),w===void 0&&(w=1);const P=t.length;return t.reduce((F,X,ee)=>{let{color:pe,offset_x:ye=0,offset_y:Ae=0,blur_radius:we=0,spread:_e=0}=X;const Fe=rd(ye,s,n,w),Ye=rd(Ae,s,n,w),He=rd(we,s,n,w),tt=rd(_e,s,n,w);pe=Om(pe,c);const It=ee<P-1?", ":"",Nt=d?"inset ":"";return F.concat(""+Nt+Fe+" "+Ye+" "+He+" "+tt+" "+pe+It)},"")},BI=(t,n)=>{try{if(!["android","swift"].includes(n))return t.value;const{value:s,gradient:{color_stops:c}}=t;let d=s;return c&&c.length&&c.forEach(w=>{let{color:P}=w;const F=Om(P,n);d=d.replace(P,F)}),d}catch(s){console.warn("### reduceGradient error:",s)}return(t==null?void 0:t.value)||""},RI="pt",jI="dp",OI="px",Tx=t=>{switch(t){case"swift":return RI;case"android":return jI;default:return OI}},FI=()=>window.getSelection?window.getSelection().toString():document.selection?document.selection.createRange().text:"",UI={"&":"&","<":"<",">":">"},zI=/(&|<|>)/g,WI=t=>UI[t]||t,VI=t=>t&&t.replace(zI,WI),Fm=function(t){var n,s,c;t===void 0&&(t=!0);const d=(n=MB)==null||(n=n.global)==null||(n=n.previewOptions)==null?void 0:n.isHTMLZip;return t?!!((s=MB)!=null&&(s=s.user)!=null&&s.id)||d||ENV.IS_ON_PREMISES:!!((c=MB)!=null&&(c=c.user)!=null&&c.id)||d},Bg=function(t,n){n===void 0&&(n=!0),Fm(n)||MB.global.popupHelper.loginAsync({onConfirm:()=>{setTimeout(()=>location.reload(),50)},type:"signin",source:t})};var Ex=e(99739);class HI extends r.Component{constructor(){super(...arguments),(0,p.A)(this,"handleCopy",()=>{Bg("proto-inspect")})}componentDidMount(){const{target:n,text:s}=this.props;Fm()&&(this.clipboard=s?new(q4())(this.$copyBtn,{text:()=>VI(document.querySelector(s).innerText)}):new(q4())(this.$copyBtn,{target:()=>document.querySelector(n)}),this.clipboard.on("success",d=>{this.error=!1,window.getSelection().removeAllRanges()}),this.clipboard.on("error",d=>{this.error=!0}))}componentWillUnmount(){this.clipboard&&this.clipboard.destroy()}render(){return(0,i.jsx)(Pc.A,{arrowed:!1,content:{click:I18N.pInspect.copied},duration:1e3,className:"copyBtn",onClick:this.handleCopy,children:(0,i.jsx)("span",{ref:n=>this.$copyBtn=n,children:I18N.pInspect.copy})})}}class Rg extends r.PureComponent{constructor(n){super(n),(0,p.A)(this,"handleClick",()=>{this.setState(s=>({activeColor:s.colorList[s.index%4],index:s.index+1}))}),(0,p.A)(this,"handleCopy",()=>{Bg("proto-inspect")}),this.state={index:0,activeColor:n.stateColor,colorList:n.rgbaColor==="transparent"?Array(4).fill("transparent"):kx(n.rgbaColor)||[]}}componentDidUpdate(n){this.props.stateColor!==n.stateColor&&this.setState({index:0,activeColor:this.props.stateColor,colorList:this.props.rgbaColor==="transparent"?Array(4).fill("transparent"):kx(this.props.rgbaColor)||[]})}render(){const{activeColor:n}=this.state,{title:s,rgbaColor:c}=this.props,d=f()("panel","panel-bottom-8"),w=c.split(","),P=w.length,F=P>3&&+w[P-1].replace(")","")!=1,X=Fm();return(0,i.jsx)("div",{className:d,"data-value":s,children:(0,i.jsxs)("div",{className:"panel-item panel-item-color item-flex-1",children:[(0,i.jsx)(Pc.A,{className:"panel-item-value textEllipsis",content:{click:I18N.pInspect.copied},"data-type":"copy",arrowed:!1,"data-clipboard-text":X?n:"",onClick:this.handleCopy,children:n}),(0,i.jsx)("div",{className:"panel-item-color-block-wrap "+(F?"panel-item-color-block-imageback-wrap":""),children:(0,i.jsx)("div",{className:"panel-item-color-block",style:{backgroundColor:c},onClick:this.handleClick})})]})})}}const kx=t=>{if(t)return[dp(t,"rgba"),dp(t,"rgb"),dp(t,"argb"),dp(t,"hex")]};class Uc extends r.PureComponent{constructor(n){super(n),(0,p.A)(this,"handleSelectTextContent",()=>{const{text:s}=this.props,c=FI();c&&s!==c&&this.setState({copyTextSelected:c})}),(0,p.A)(this,"handleClearSelectTextContent",()=>{this.setState({copyTextSelected:""})}),(0,p.A)(this,"handleCopy",()=>{Bg("proto-inspect")}),this.state={copyTextSelected:""}}render(){const{color:n,colorUnit:s,dataValue:c,className:d,title:w,text:P,data:F,first:X,i18n:ee}=this.props,{copyTextSelected:pe}=this.state,ye=dp(n,"rgba"),Ae=dp(n,s),we=c.length>0,_e=c.length===4,Fe=f()("panel",""+d,{"panel-bottom-8":!we,"panel-item-text":!!P,"shadow-panel":_e}),Ye=Fm();return n?(0,i.jsx)(Rg,{title:w,rgbaColor:ye,stateColor:Ae}):(0,i.jsx)("div",{className:Fe,"data-value":w,children:P?(0,i.jsx)(Pc.A,{arrowed:!1,className:"panel-item item-flex-1",content:{click:I18N.pInspect.copied},duration:1e3,onClick:this.handleCopy,children:(0,i.jsx)("pre",{type:"text","data-placement":"top","data-type":"copy","data-clipboard-text":Ye?(0,Gt.qk)(pe||P):"",className:"panel-item-value text-content",dangerouslySetInnerHTML:{__html:P},onMouseUp:this.handleSelectTextContent,onMouseDown:this.handleClearSelectTextContent})}):(0,i.jsx)("div",{className:F.length<2?"single-panel-box":"mult-panel-box",children:(X?F.slice(0,1):F).map((He,tt)=>(0,i.jsx)(Pc.A,{arrowed:!1,content:{click:I18N.pInspect.copied},duration:1e3,className:"panel-item","data-value":c[tt],onClick:this.handleCopy,children:(0,i.jsx)("div",{"data-type":"copy","data-clipboard-text":Ye?He:"",className:"panel-item-value",children:ee?I18N.pInspect[He]:He})},tt))})})}}(0,p.A)(Uc,"defaultProps",{dataValue:[],data:[]});const _x=(0,r.memo)(t=>{let{value:n,title:s}=t;return(0,i.jsx)("div",{className:f()("container")+" "+f()("layer-name"),children:(0,i.jsx)(Uc,{title:s||I18N.pInspect.layer_name,data:[n]})})}),KI=t=>{let{colorUnit:n,backgroundColorSort:s}=t;return(0,i.jsxs)(ou,{children:[I18N.pInspect.fills,s.map((c,d)=>{let{value:w,type:P="color",opacity:F,gradient:X}=c;const ee=w,pe=ee&&dp(ee,n);return P==="color"?(0,i.jsx)(Rg,{stateColor:pe,rgbaColor:ee,title:I18N.pInspect.color},d):(0,i.jsx)(Px,{gradient:X,colorUnit:n,opacity:F},d)})]})},Px=t=>{let{gradient:{color_stops:n=[],type:s},opacity:c,colorUnit:d}=t;return(0,i.jsxs)("div",{children:[n.length>0&&n.map((w,P)=>{let{color:F,position:X}=w;return(0,i.jsx)("div",{children:(0,i.jsx)(Uc,{colorUnit:d,color:F,title:P===0?I18N.pInspect.gradient:""})},""+F+P)}),c&&(0,i.jsx)(Uc,{title:I18N.pInspect.opacity,data:[c*100+"%"]}),s&&(0,i.jsx)(Uc,{data:[s],title:I18N.pInspect.type})]})},Nx=t=>{let{shadows:n=[],isInnerShadows:s=!1,unit:c,ratio:d,colorUnit:w,textShadows:P=[],rpxRatio:F=1}=t;return(0,i.jsxs)(ou,{children:[s?I18N.pInspect.inner_shadow:I18N.pInspect.shadow,n.length>0&&(0,i.jsx)(Lx,{shadows:n,unit:c,ratio:d,colorUnit:w,rpxRatio:F}),P.length>0&&(0,i.jsx)(Lx,{shadows:P,unit:c,ratio:d,colorUnit:w,rpxRatio:F})]})},Lx=(0,r.memo)(t=>{let{shadows:n,unit:s,ratio:c,colorUnit:d,rpxRatio:w=1}=t;return(0,i.jsx)(i.Fragment,{children:n.map((P,F)=>{let{color:X,offset_x:ee=0,offset_y:pe=0,blur_radius:ye=0,spread:Ae=0}=P;const we=rd(ee,c,s,w),_e=rd(pe,c,s,w),Fe=rd(ye,c,s,w),Ye=rd(Ae,c,s,w);return(0,i.jsxs)("div",{className:"shadow-item-gap",children:[X&&(0,i.jsx)(Uc,{title:I18N.pInspect.color,color:X,colorUnit:d}),(0,i.jsx)(Uc,{data:[we,_e,Fe,Ye],dataValue:[I18N.pInspect._x,I18N.pInspect._y,I18N.pInspect.blur,I18N.pInspect.spread]})]},F)})})}),GI=(0,r.memo)(t=>{let{colorUnit:n,borderSort:s,unit:c,ratio:d,isStroke:w,rpxRatio:P=1}=t;return(0,i.jsxs)(ou,{children:[w?I18N.pInspect.stroke:I18N.pInspect.borders,s.reverse().map((F,X)=>{let{position:ee="inside",color:pe,thickness:ye,gradient:Ae}=F;const we=pe,_e=ye&&rd(ye,d,c,P);return[pe?(0,i.jsx)(Uc,{color:we,title:I18N.pInspect.color,colorUnit:n},""+X+we):(0,i.jsx)(Px,{gradient:Ae,colorUnit:n}),ee&&(0,i.jsx)(Uc,{title:I18N.pInspect.position,data:[ee]},""+X+ee),_e&&(0,i.jsx)(Uc,{title:I18N.pInspect.thickness,data:[_e]},""+X+_e)]})]})}),ou=t=>{let{children:n}=t;return(0,i.jsxs)("section",{children:[(0,i.jsx)("div",{className:f()("header"),children:n[0]}),(0,i.jsx)("div",{className:f()("container"),children:n.slice(1)})]})};var YI=e(14965),Pu=e.n(YI),ZI=e(65355),XI=e.n(ZI),QI=e(43363),JI=e.n(QI),$I=e(3294),qI=e.n($I),eM=e(71624),tM=e.n(eM),oM=e(16259),nM=e.n(oM),sM=e(46269),iM=e.n(sM);Pu().registerLanguage("css",XI()),Pu().registerLanguage("less",JI()),Pu().registerLanguage("scss",qI()),Pu().registerLanguage("stylus",tM()),Pu().registerLanguage("swift",nM()),Pu().registerLanguage("xml",iM());const aM={css:"css",less:"less",sass:"scss",stylus:"stylus",swift:"swift",android:"xml"},rM=[{value:"swift",label:"Swift"},{value:"android",label:"Android"},{value:"css",label:"CSS"},{value:"less",label:"Less"},{value:"sass",label:"Sass"},{value:"stylus",label:"Stylus"}];class lM extends r.PureComponent{constructor(n){super(n),(0,p.A)(this,"highlight",()=>{this.hljsRef&&this.hljsRef.current.querySelectorAll("pre code").forEach(c=>{Pu().highlightBlock(c)})}),(0,p.A)(this,"updateLanguage",s=>{this.props.dispatch({type:"inspect:update:state",payload:{language:s}})}),(0,p.A)(this,"renderCode",s=>{const c={px:this.renderCss,dp:this.renderAndroidCode,pt:this.renderIos},d=Tx(s);return c[d]()}),(0,p.A)(this,"renderIos",()=>{const{code:s,text:c}=this.props;return(0,i.jsx)(dM,{code:s,text:c})}),(0,p.A)(this,"renderCss",()=>{const{code:s,language:c}=this.props;return(0,i.jsx)(cM,{language:c,code:s})}),(0,p.A)(this,"renderAndroidCode",()=>{const{whichAndView:s,code:c,text:d}=this.props;return(0,i.jsx)(pM,{code:c,text:d,whichAndView:s})}),this.hljsRef=r.createRef()}componentDidMount(){this.highlight()}componentDidUpdate(n){(n.code!==this.props.code||n.language!==this.props.language)&&this.highlight()}render(){const{language:n,theme:s}=this.props;return(0,i.jsxs)(ou,{children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(Ex.Ay,{menuClassName:"CodeBoxSelectMenu",placeholder:" ",unstyled:!0,menuX:"center",optionList:rM,value:n,onChange:this.updateLanguage}),(0,i.jsx)(HI,{text:"#code-content"})]}),(0,i.jsx)("div",{ref:this.hljsRef,className:f()("code-content",{"is-dark-theme":s==="dark"}),id:"code-content",children:(0,i.jsx)("pre",{children:this.renderCode(n)})})]})}}const cM=t=>{let{language:n,code:s}=t;const c=hM(n),d=uM(n),w=gM(s);return(0,i.jsx)(i.Fragment,{children:Object.entries(w).map(P=>{let[F,X]=P;return(0,i.jsx)("code",{className:aM[n],children:""+F+d+X+c},F)})})},dM=t=>{let{code:n,text:s}=t;const c=mM({code:n,text:s});return(0,i.jsx)(i.Fragment,{children:c.map((d,w)=>(0,i.jsx)("code",{className:"swift",children:d},w))})},pM=t=>{let{code:n,text:s,whichAndView:c}=t;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("code",{className:"xml",children:"<"+c}),Object.entries(n).map(d=>{let[w,P]=d;return(0,i.jsx)("code",{className:"xml",children:"android:"+w+'="'+P+'"'},w)}),s.length>0&&(0,i.jsx)("div",{children:'android:text="'+s+'"'}),(0,i.jsx)("code",{className:"xml",children:"/>"})]})},hM=t=>{switch(t){case"stylus":case"sass":return"";default:return";"}},uM=t=>{switch(t){case"stylus":return" ";default:return": "}},mM=t=>{let{code:n,text:s}=t;const{width:c,height:d,x:w,y:P,fontFamily:F,cornerRadius:X,fontSize:ee,opacity:pe,"border-width":ye,borderColor:Ae,alignment:we,background:_e,backgroundColor:Fe}=n,Ye=s?"textLayer":"layer",He=s?"UILabel":"UIView",tt=[];return tt.push("let "+Ye+" = "+He+"(frame: CGRect(x: "+w+", y:"+P+", width: "+c+", height: "+d+"))"),_e&&tt.push(Ye+".background = "+_e),Fe&&tt.push(Ye+".backgroundColor = "+Fe),pe&&tt.push(Ye+".alpha = "+pe),X&&tt.push("layer.layer.cornerRadius = "+X),ye&&tt.push("layer.layer.borderWidth = "+ye),Ae&&tt.push("layer.layer.borderColor = "+Ae+".cgColor"),s&&(tt.push('let textContent = "'+s+'"'),tt.push('let textString = NSMutableAttributedString(string: textContent, attributes: [\n NSAttributedStringKey.font: UIFont(name: "'+F+'", size: '+ee+")!\n ])"),tt.push("let textRange = NSRange(location:0, length: textString.length)"),tt.push("let paragraphStyle = NSMutableParagraphStyle()"),tt.push("paragraphStyle.alignment = ."+we),tt.push("textString.addAttribute(NSAttributedStringKey.paragraphStyle, value: paragraphStyle, range: textRange)"),tt.push("textLayer.attributedText = textString")),tt},gM=t=>{if(t["border-color"]&&t["border-width"]){const n={border:t["border-width"]+" solid "+t["border-color"]};return delete t["border-color"],delete t["border-width"],Object.assign(t,n)}return t},fM=t=>{let{adapterLeft:n,adapterTop:s,adapterWidth:c,adapterHeight:d,opacity:w,radius:P,rotate:F,mask:X,ignore_underlying_mask:ee}=t;return(0,i.jsxs)(ou,{children:[I18N.pInspect.basic_attribute,n&&(0,i.jsx)(Uc,{title:I18N.pInspect.position,dataValue:[I18N.pInspect._x,I18N.pInspect._y],data:[n,s]}),c&&(0,i.jsx)(Uc,{title:I18N.pInspect.size,dataValue:[I18N.pInspect.width,I18N.pInspect.height],data:[c,d]}),F&&(0,i.jsx)(Uc,{title:I18N.pInspect.rotation,data:[F]}),P&&(0,i.jsx)(Uc,{title:I18N.pInspect.border_radius,data:[P]}),w&&(0,i.jsx)(Uc,{title:I18N.pInspect.opacity,data:[w]}),X&&(0,i.jsx)(Uc,{title:I18N.pInspect.mask,data:[X],i18n:!0}),ee&&(0,i.jsx)(Uc,{title:I18N.pInspect.underlying_mask,data:["ignore_underlying_mask"],i18n:!0})]})},yM=(0,r.memo)(t=>{let{textStyles:n,ratio:s,unit:c,text:d,colorUnit:w,hiddenSpacing:P,rpxRatio:F}=t;const{color:X,fontSize:ee,fontFace:pe,fontStyle:ye,horizontalAlign:Ae,verticalAlign:we,paraSpacing:_e,letterSpacing:Fe,lineHeight:Ye,italic:He}=n||{},tt=dp(X,"rgba"),It=rd(ee,s,c,F),Nt=dp(X,w),Lt=ay(Ye,s,c,F),Xt=ay(Fe,s,c,F),co=ye||(typeof He=="boolean"?He?"italic":"normal":void 0);return(0,i.jsxs)(ou,{children:[I18N.pInspect.font,n&&(0,i.jsxs)("div",{children:[pe&&(0,i.jsx)(Uc,{title:I18N.pInspect.type_face,data:[pe]}),co&&(0,i.jsx)(Uc,{title:I18N.pInspect.font_style,data:[co]}),tt&&(0,i.jsx)(Rg,{stateColor:Nt,title:I18N.pInspect.color,rgbaColor:tt}),It&&(0,i.jsx)(Uc,{title:I18N.pInspect.font_size,data:[It]})]}),Ae&&(0,i.jsx)(Uc,{title:I18N.pInspect.align,data:[Ae,we||"auto"],dataValue:[I18N.pInspect.horizontal_align,I18N.pInspect.vertical_align]}),_e!==void 0?(0,i.jsx)(Uc,{title:I18N.pInspect.graph,data:[Xt||0,Lt,_e],dataValue:[I18N.pInspect.letter_spacing,I18N.pInspect.text_line_height,I18N.pInspect.para_spacing]}):Lt&&(0,i.jsx)(Uc,{title:I18N.pInspect.graph,data:[Lt,Xt||"auto"],dataValue:[I18N.pInspect.line_height,I18N.pInspect.letter_spacing],first:P}),d&&(0,i.jsx)(Uc,{text:d,title:I18N.pInspect.content})]})});var xM=e(29584);const vM=()=>(0,i.jsx)("div",{children:"Error in GlobalAttributes"});class bM extends r.PureComponent{constructor(){super(...arguments),(0,p.A)(this,"handleDelColor",n=>{const s=Rm(n),c=fI((s==null?void 0:s.hex)||s);this.props.dispatch({type:"inspect:update:state",payload:{usePickerColor:c}})}),(0,p.A)(this,"handleCopy",()=>{Bg("proto-inspect")})}componentWillUnmount(){this.props.dispatch({type:"inspect:update:state",payload:{focusColor:""}})}componentDidCatch(n,s){return console.error(n,s),(0,i.jsx)(vM,{})}render(){const{screenName:n,rgbaColor:s,stateColor:c,userPickColor:d=[],colorUnit:w,focusColor:P}=this.props,F=Fm();return(0,i.jsxs)("div",{className:f()("global-attributes"),children:[(0,i.jsx)(_x,{title:I18N.pInspect.screen_name,value:n}),(0,i.jsxs)(ou,{children:[I18N.pInspect.basic_attribute,(0,i.jsx)(Rg,{title:I18N.pInspect.backgroundColor,rgbaColor:s,stateColor:c})]}),(0,i.jsxs)(ou,{children:[I18N.pInspect.color_title,(0,i.jsx)(CM,{trackId:I18N.pInspect.pick_color,title:I18N.pInspect.pick_color,handleDelColor:this.handleDelColor,colorBlockMap:d,focusColor:P,colorUnit:w,canDel:!0,isSignIn:F,onCopy:this.handleCopy})]})]})}}const CM=t=>{let{trackId:n,title:s,colorBlockMap:c,handleDelColor:d,canDel:w,colorUnit:P,focusColor:F,isSignIn:X,onCopy:ee}=t;return(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{className:"second-title",children:s}),(0,i.jsx)("div",{className:"panel-row",children:c.length?c.map((pe,ye)=>{const Ae=dp(pe,"rgba"),we=dp(Ae,P);return(0,i.jsx)(wM,{canDel:w,trackId:n,handleDelColor:d,color:we,rgbaColor:Ae,colorUnit:P,focusColor:F,isSignIn:X,onCopy:ee},""+ye+pe)}):(0,i.jsx)(SM,{})})]})},wM=t=>{let{color:n,rgbaColor:s,colorUnit:c,handleDelColor:d,canDel:w,trackId:P,focusColor:F,isSignIn:X,onCopy:ee}=t;const pe=n===dp(F,c);return(0,i.jsx)(i.Fragment,{children:X?(0,i.jsx)(xM.A,{shouldOpenOnHover:!0,className:f()("color-dropdown",{"is-focus":pe}),opener:(0,i.jsx)(Pc.A,{arrowed:!1,"data-type":"copy","data-track-id":P,"data-clipboard-text":n,duration:1e3,content:{click:I18N.pInspect.copied},children:(0,i.jsx)("span",{className:"row-item color-block",style:{background:s,display:"block"},onClick:ee})}),inflexible:!0,arrowed:!0,menuX:"left",menuY:"top",menu:(0,i.jsx)(AM,{color:n,rgbaColor:s,canDel:w,handleDelColor:d}),menuClassName:(0,lc.Hn)(["palette-dropdown-menu",c])}):(0,i.jsx)(Pc.A,{arrowed:!1,duration:1e3,children:(0,i.jsx)("span",{className:"row-item color-block row-margin",style:{background:s,display:"block"},onClick:ee})})})},SM=()=>(0,i.jsx)("div",{className:"forbid-color",children:(0,i.jsx)("div",{className:"transparent"})});class AM extends r.PureComponent{constructor(){super(...arguments),(0,p.A)(this,"handleClick",()=>{const{rgbaColor:n,handleDelColor:s}=this.props;s(n)})}render(){const{color:n,canDel:s}=this.props;return(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{children:n}),s&&(0,i.jsx)(Oc.C,{name:"new_replace/trash",className:"trash",onClick:this.handleClick})]})}}const IM=t=>{let{theme:n,layer:s,unit:c,ratio:d,showGlobal:w,language:P,colorUnit:F,currPageName:X,currPageBgColor:ee,usePickerColor:pe,focusColor:ye,rpxRatio:Ae,dispatch:we}=t;if(w){const Er=dp(ee,"rgba"),Va=dp(ee,F);return(0,i.jsx)(bM,{rgbaColor:Er,stateColor:Va,colorUnit:F,screenName:X,userPickColor:pe,focusColor:ye,dispatch:we})}const{left:_e,top:Fe,width:Ye,height:He,o:tt,bdRadius:It,bgColors:Nt=[],borders:Lt=[],hiddenSpacing:Xt=!1,displayName:_o,textStyles:co=null,inspectText:yn,image:An,shadows:In=[],inner_shadows:wn=[],rotation:_n,textShadows:Jn=[],mask:rs=null,ignore_underlying_mask:as=!1}=s,mi=Lt.length>0,ha=Nt.length>0,Ca=!!An,ms=co&&yn&&!!sy(yn).length,qn=In.length>0||Jn.length>0,si=wn.length>0,Hi={left:_e,top:Fe,width:Ye,height:He,borderRadius:It,opacity:tt,rotation:_n,ratio:d,unit:c,rpxRatio:Ae},ra=s.name==="line"||s.name==="arrow",{adapterTop:Ta,adapterLeft:Pi,adapterWidth:Bi,adapterHeight:Ji,radius:Ui,opacity:wa,rotate:Ea}=LI(Hi),lr=DI({textStyles:co,background:Nt,borders:Lt,shadows:In,innerShadows:wn,colorUnit:F,ratio:d,unit:c,language:P,rpxRatio:Ae}),Ya=tt&&tt!==100?tt/100:null,cr=NI({attr:{x:Pi,y:Ta,width:Bi,height:Ji,opacity:Ya,borderRadius:Ui,...lr},language:P,unit:c}),zr=Ca?"ImageView":ms?"TextView":"View",dl=_o;return(0,i.jsxs)("div",{children:[(0,i.jsx)(_x,{value:dl}),(0,i.jsx)(fM,{adapterTop:Ta,adapterLeft:Pi,adapterWidth:Bi,adapterHeight:Ji,rotate:Ea,radius:Ui,opacity:wa,mask:rs,ignore_underlying_mask:as}),ms&&(0,i.jsx)(yM,{textStyles:co,ratio:d,unit:c,colorUnit:F,text:sy(yn),hiddenSpacing:Xt,rpxRatio:Ae}),ha&&(0,i.jsx)(KI,{backgroundColorSort:Nt,colorUnit:F}),mi&&(0,i.jsx)(GI,{isStroke:ra,borderSort:Lt,ratio:d,unit:c,colorUnit:F,rpxRatio:Ae}),qn&&(0,i.jsx)(Nx,{shadows:In,textShadows:Jn,colorUnit:F,unit:c,ratio:d,rpxRatio:Ae}),si&&(0,i.jsx)(Nx,{shadows:wn,colorUnit:F,unit:c,ratio:d,isInnerShadows:!0}),(0,i.jsx)(lM,{theme:n,code:cr,whichAndView:zr,language:P,text:sy(yn),dispatch:we})]})},MM=u.Ay.div.withConfig({displayName:"styles__StyledLayerPanel",componentId:"sc-wu10f9-0"})(["display:flex;flex-direction:column;position:relative;flex:1;width:260px;height:100%;font-size:12px;background-color:",";transition:left 0.5s ease-in-out;color:",";overflow-x:hidden;overflow-y:auto;.layerInfo{position:relative;width:inherit;height:100%;overflow-x:hidden;overflow-y:auto;flex:1;& > div{width:inherit;}.Select{color:",";}.global-attributes{.color-dropdown{button{border-radius:2px;transition:box-shadow 0.5s;background-image:linear-gradient(45deg,#ccc 25%,transparent 0),linear-gradient(-45deg,#ccc 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ccc 0),linear-gradient(-45deg,transparent 75%,#ccc 0);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0;background-clip:padding-box;overflow:hidden;}&.is-focus{button{box-shadow:0 0 0 2px #1e98ea;}}}}.layer-name{.panel-item-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;}}.panelAction{border-bottom:1px solid ",";padding:20px;width:100%;.panelMoreStateButton{text-align:center;cursor:pointer;.name{display:inline-block;width:100%;height:32px;line-height:32px;border:1px solid #1684FC;border-radius:4px;color:#1684FC;&.exit{background-color:#1684FC;color:#ffffff;}}}.panelstate{display:flex;align-items:center;margin-top:16px;.left-label{margin-right:38px;color:#5B6B73;}.right-content{label.panelstate-select{width:158px;}}}}.header{line-height:32px;height:32px;font-size:12px;color:",";background:",";font-weight:bold;padding:0 20px;}.panel{display:flex;height:22px;line-height:22px;margin-bottom:24px;position:unset;&::before{content:attr(data-value);min-width:62px;max-width:62px;color:",";}&.panel-item-text{height:60px;}&.panel-bottom-8{margin-bottom:8px;}&.shadow-panel{&::before{width:0 !important;}.panel-item{width:50px !important;}}.mult-panel-box{width:151px;display:flex;justify-content:space-between;flex:1;.panel-item{&::after{content:attr(data-value);min-width:62px;max-width:62px;color:",";}}}.single-panel-box{display:flex;flex:1;.panel-item{width:100%;}}.panel-item{width:73px;text-align:center;background:",";border-radius:2px;border:1px solid ",";cursor:pointer;margin-right:10px;&:last-child{margin-right:0;}&.panel-item-color{position:relative;display:flex;justify-content:flex-start;width:138px;.panel-item-value{text-indent:8px;text-align:left;width:138px;}}&.item-flex-1{flex:1;height:auto;}.panel-item-value{width:100%;max-width:158px;line-height:22px;user-select:text;&.text-content{flex:1;padding:0.25em 0.5em;height:100%;line-height:1.5;word-wrap:break-word;overflow-x:hidden;overflow-y:scroll;text-align:left;white-space:pre-wrap;}}.panel-item-color-block-wrap{position:absolute;right:0;top:-1px;width:100%;height:100%;border:inset 1px rgba(0,0,0,0.2);border-radius:2px;cursor:pointer;width:22px;height:22px;}.panel-item-color-block-imageback-wrap{background-image:linear-gradient(45deg,#ccc 25%,transparent 0),linear-gradient(-45deg,#ccc 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ccc 0),linear-gradient(-45deg,transparent 75%,#ccc 0);background-size:12px 12px;background-position:-1px -1px,-1px 5px,5px -7px,-7px -1px;}.panel-item-color-block{height:100%;}}}.container{padding:20px 20px 12px;min-width:230px;&.global-layer{padding-top:0;height:60px;}.second-title{display:flex;margin-bottom:10px;color:",";}.code-content{position:relative;width:100%;overflow:hidden;color:",";font-size:12px;font-family:Menlo,Courier,monospace;line-height:22px;&.is-dark-theme{pre code{color:",";background:",";span{color:inherit;}}}pre{white-space:pre-wrap;}*{user-select:text;font-weight:normal;overflow:hidden;}}.text-content{flex:1;line-height:18px;word-wrap:break-word;}.global-font{line-height:22px;&::before{min-width:0 !important;}.panel-item-value{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}.panel-row{display:flex;flex-wrap:wrap;.Dropdown{margin:0 6px 6px 0;cursor:pointer;}.Tooltip{display:block;}.row-item.color-block{border:inset 1px rgba(0,0,0,0.2);width:18px;height:18px;border-radius:2px;&.row-margin{margin:0 6px 6px 0;cursor:pointer;}}}.panel-image{width:100%;height:50px;background-image:svg-load('./background.svg');object-fit:contain;}.image-download{justify-content:space-between;align-items:center;& a{height:19px;font-size:19px;color:#f55d54;}}.download-file-type{display:flex;align-items:center;}.download-file-type-icon{display:inline-block;text-align:center;color:#f55d54;border:1px solid currentColor;width:30px;height:19px;line-height:17px;vertical-align:middle;margin-right:9px;}}.shadow-item-gap{padding-bottom:20px;&:last-child{padding-bottom:0;}}.forbid-color{position:relative;width:18px;height:18px;border:1px solid #d9d9d9;margin-bottom:8px;background:#fff;cursor:not-allowed;overflow:hidden;.transparent{width:200%;position:absolute;left:0;top:0;border-top:1px solid #eb5648;transform:translateY(-50%) rotate(45deg);transform-origin:0 0;}}.slice-title{display:flex;justify-content:space-between;align-items:center;& > span{cursor:pointer;color:var(--copy-btn-color);}}.slice-panel{height:40px;display:flex;justify-content:flex-start;align-items:center;}.slice-item-wrap{min-width:40px;height:40px;border:1px solid #B7BBC1;border-radius:2px;display:flex;align-items:center;justify-content:center;overflow:hidden;& > img{box-shadow:rgba(25,39,45,0.4) 0 1px 4px;}}.slice-item-name{margin-left:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.slice-panel-item{height:24px;line-height:24px;margin-bottom:8px;text-indent:8px;color:#415058;background:#F6F7F8;border:1px solid #F2F2F2;border-radius:2px;}.copyBtn{cursor:pointer;float:right;color:",";&:focus{outline:0;}}@keyframes rotate-infinite{from{transform:rotate(0);}to{transform:rotate(720deg);}}}&.is-loading{justify-content:center;align-items:center;.layer-panel-loading{width:60px;height:60px;}}"],t=>t.theme.color_background_white,t=>t.theme.color_text_L1,t=>t.theme.color_text_L2,t=>t.theme.color_background_icon_active,t=>t.theme.color_text_L2,t=>t.theme.color_background,t=>t.theme.color_text_L2,t=>t.theme.color_text_L2,t=>t.theme.color_background,t=>t.theme.color_background_icon_hover,t=>t.theme.color_text_L2,t=>t.theme.color_text_L2,t=>t.theme.color_text_L2,t=>t.theme.color_background,t=>t.theme.color_primary_proto01),TM=(0,u.DU)(["#IBOT_DROPDOWN_MENU_ROOT{.palette-dropdown-menu{color:#415058;width:auto;&.hex,&.argb{text-transform:uppercase;}.arrow{svg path{fill:",";}}.content{opacity:0.9;background-color:",";& > div{display:flex;justify-content:space-between;align-items:center;> span{display:block;width:-moz-max-content;width:-webkit-max-content;width:max-content;}}}.trash{margin-left:.5em;font-size:14px;color:#C8CDD0;cursor:pointer;}}}.textEllipsis{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;}#IBOT_SELECT_MENU_ROOT{ul.CodeBoxSelectMenu{background-color:",";width:100%;padding:0 0.5em;font-size:12px;min-width:7em;.SelectOption{color:",";justify-content:center;margin:0.5em 0;border-radius:2px;&:not(.is-active):hover{color:",";background-color:",";}&.is-active{color:",";background-color:",";}}}}"],t=>t.theme.color_background_white,t=>t.theme.color_background_white,t=>t.theme.color_background_white,t=>t.theme.color_text_L2,t=>t.theme.color_primary_proto01,t=>t.theme.color_background,t=>t.theme.color_primary_proto01,t=>t.theme.color_background),EM=t=>{const{state:{unit:n,ratio:s,language:c,colorUnit:d,usePickerColor:w,focusColor:P},dispatch:F}=Og(),{sdk:X,theme:ee,selectedWidgetInfo:pe,currPageKey:ye,getWidgetInspectStyles:Ae}=t,we=!pe,_e=(0,r.useRef)(null);(0,r.useEffect)(()=>(_e.current=new(q4())('[data-type="copy"]'),()=>{_e.current.destroy()}));let Fe=null;if(pe!=null&&pe.key){let Lt=np()(X.getHotItem(pe.key).hotAttr);if(Lt.type!=="rResCanvas"&&(Lt={...Lt,...X.getRelocateLocalBound(pe.key,X.locUpColdCanvasKey(pe.key)||X.locUpRBPageKey(pe.key))}),pe.extra){const{extra:{x:Xt,y:_o}}=pe;Fe=vI(Lt,"none",{x:Xt,y:_o},Ae)}else Fe=$4(Lt,"none",Ae)}const{name:Ye="",fill:He={},deviceW:tt}=X.getHotItem(ye).hotAttr||{},It=He?(0,sd.t0)(He.solidColor):"",Nt=yx(tt);return(0,i.jsxs)(MM,{className:we?"is-loading":"",children:[(0,i.jsx)("div",{className:"layerInfo",children:(0,i.jsx)(IM,{layer:Fe,unit:n,ratio:s,language:c,colorUnit:d,currPageName:Ye,currPageBgColor:It,usePickerColor:w,focusColor:P,showGlobal:!Fe,theme:ee,rpxRatio:Nt,dispatch:F})}),(0,i.jsx)(TM,{})]})};var kM=e(26114),ry=e(11334);const _M=u.Ay.label.withConfig({displayName:"styled__StyledInputLabel",componentId:"sc-54bl9a-0"})(["&.Textarea,&.CoreTextarea,&.Input,&.CoreInput{display:inline-block;color:#415058;input,textarea{font-size:inherit;color:inherit;&:disabled{opacity:0.5;cursor:not-allowed;}&[readonly]{color:#8d9ea7;}&:focus{outline:0;}&::placeholder{color:#8d9ea7;}}}&.is-invalid input,&.is-invalid textarea,& input:not([type=email]):invalid,& textarea:invalid{border-color:#ff6161 !important;box-shadow:0 0 6px 0 rgba(#ff6161,.5) !important;}&:not(.unstyled){input,textarea{background-color:#f6f7f8;border:1px solid #f2f2f3;border-radius:2px;caret-color:#298df8;transition:0.2s ease-out;transition-property:background,border,box-shadow,opacity;&:enabled:not([readonly]){:hover{border-color:#298df8;}:focus{background-color:#fff;border-color:#298df8;box-shadow:0 0 6px 0 rgba(41,141,248,.5);}}}}&.is-readonly{color:#8d9ea7;}&.Input,&.CoreInput{&.regular{height:34px;font-size:14px;}&.small{height:22px;font-size:12px;}input{padding:0 .5em;width:100%;height:100%;}}&.Textarea,&.CoreTextarea{&.regular{font-size:14px;}&.small{font-size:12px;}textarea{padding:.5em;width:100%;min-height:5em;max-height:10em;resize:vertical;&:disabled,&[readonly]{resize:none;}}}&.CoreInput:not(.unstyled) input,&.CoreTextarea:not(.unstyled) textarea{background-color:#fff;border-color:#c8cdd1;}&.InputEmail,&.CoreInputEmail{&:not(.unstyled).isnt-valid input{box-shadow:0 0 6px 0 rgba(255,97,97,.5) !important;border-color:#ff6161 !important;}}"]),PM=(0,u.Ay)(_M).withConfig({displayName:"styled__StyledInputNumber",componentId:"sc-54bl9a-1"})(["&.InputNumber,&.CoreInputNumber{position:relative;display:inline-block;min-width:2em;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;&:not(.unstyled).is-active input{background-color:#fff;border-color:#298df8;box-shadow:0 0 6px 0 rgba(41,141,248,.5);}&:not(.unstyled).isnt-valid input{border-color:#ff6161 !important;box-shadow:0 0 6px 0 rgba(255,97,97,.5) !important;}&.is-disabled{cursor:not-allowed;> *{opacity:0.5;}}&.is-disabled,&.is-readonly{.action{visibility:hidden;}}input{padding-right:1.5em;padding-left:.5em;font-family:inherit;}&.regular input{padding-right:2em;}}&:not(.is-disabled):hover input:not([readonly]),input:not([readonly]):focus{& ~ .action{opacity:1;transition:all 0.2s ease-out;}}.action{position:absolute;top:0;right:0;width:1.5em;height:100%;text-align:center;&:not(.caret){opacity:0;}svg{height:4px;fill:currentColor;fill-rule:evenodd;}&.caret{button{height:100%;}svg{transition:transform 0.2s ease-out;}/.InputNumber.is-menu-open .caret svg{transform:rotate(180deg);}}button{display:block;margin:0;padding:0;width:100%;height:50%;line-height:0;color:#8d9ea7;transition:all 0.1s ease-out;&:hover{color:#5b6b73;}&:active{color:#298df8;}&[data-action=up] svg{margin:5px 0 2px;}&[data-action=down] svg{margin:2px 0 5px;}}}&.regular .action{top:50%;transform:translateY(-50%);width:2em;height:28px;}&.with-desc{margin-top:6px;margin-bottom:1.5em;}.title,.desc,.prefix,.suffix{position:absolute;top:0;left:0;display:flex;align-items:center;height:100%;pointer-events:none;user-select:none;border:1px solid transparent;}&.is-empty{.prefix,.suffix{opacity:0.3;}}.title{margin-left:.5em;color:#8d9ea7;}.desc{top:100%;width:100%;height:1.5em;line-height:1.5;justify-content:center;color:#8d9ea7;}.prefix{margin-left:.5em;}.suffix{padding-left:.5em;padding-right:1.625em;width:100%;&:before{content:attr(data-value);display:inline-block;margin-right:0.125em;width:-moz-fit-content;width:-webkit-fit-content;width:fit-content;overflow:hidden;opacity:0;}}"]);function Sd(t,n,s){return(n=NM(n))in t?Object.defineProperty(t,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[n]=s,t}function NM(t){var n=LM(t,"string");return typeof n=="symbol"?n:n+""}function LM(t,n){if(typeof t!="object"||!t)return t;var s=t[Symbol.toPrimitive];if(s!==void 0){var c=s.call(t,n||"default");if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(t)}const DM=500,BM=30,RM=1e3,jM=(t,n)=>Number(Number(t).toFixed(n)),Dx=function(t,n){let{shiftKey:s,metaKey:c}=t;return n===void 0&&(n=1),s?n*10:c?n*100:n},OM=t=>t===""||/^0?[+-]0*$/.test(t)||/^[+-]?\d*\.$/.test(t),FM=t=>{let{currentTarget:n}=t;return setTimeout(()=>n.select(),50)};class ly extends r.PureComponent{constructor(){super(...arguments),Sd(this,"state",{prevProps:this.props,value:(0,lc.Fd)(this.props.value),isActive:!1,isValid:!0,isMenuOpen:!1}),Sd(this,"onChange",n=>{const{target:{value:s}}=n;this.setValue(s.trim(),n)}),Sd(this,"correctNumber",n=>{const{min:s,max:c,precision:d}=this.props;return jM(Math.min(Math.max(n,s),c),d)}),Sd(this,"checkValidity",n=>n===""||isFinite(n)&&this.correctNumber(n)===Number(n)),Sd(this,"setValue",(n,s)=>{s.persist(),clearTimeout(this.correctionTimeout);const{value:c,parser:d,placeholder:w,onChange:P}=this.props,F=d(n.toString()).toString(),X=n!=="0"&&!F&&!!w,ee=this.checkValidity(F),pe=n!==""&&isFinite(F),ye=OM(F);if(!pe&&!ye)return;const Ae=this.correctNumber(F),we=isNaN(Ae)?c:Ae,_e=X?"":ye||!ee?F:we;this.setState({value:_e,isValid:ee}),ee?P(_e,s):Object.assign(this,{correctionTimeout:setTimeout(()=>this.state.value===_e&&this.setState({value:we,isValid:!0},P(we,s)),RM)})}),Sd(this,"focusOnInput",n=>{try{const s=n.currentTarget.closest("label").querySelector("input");setTimeout(()=>s.focus())}catch(s){console.error(s)}}),Sd(this,"onStep",n=>{n.persist(),n.nativeEvent.stopPropagation();const{action:s}=n.currentTarget.dataset,c=Dx(n,this.props.step)*(s==="up"?1:-1);this.setValue(this.correctNumber(Number(this.state.value)+c),n),this.focusOnInput(n),Object.assign(this,{longPressedTimeout:setTimeout(()=>Object.assign(this,{steppingInterval:setInterval(()=>this.setValue(this.correctNumber(Number(this.state.value)+c),n),BM)}),DM)})}),Sd(this,"onRelease",()=>{clearTimeout(this.longPressedTimeout),clearInterval(this.steppingInterval)}),Sd(this,"onKeyDown",n=>{const s=n.key==="ArrowUp"?"up":n.key==="ArrowDown"?"down":null;if(n.key==="Enter"&&this.props.isEnterBlur){var c;this.setInactive(),(c=this.$label)==null||(c=c.querySelector("input"))==null||c.blur();return}if(!s)return;n.persist(),n.nativeEvent.preventDefault();const d=Dx(n,this.props.step)*(s==="up"?1:-1);this.setValue(this.correctNumber(Number(this.state.value)+d),n)}),Sd(this,"set$label",n=>Object.assign(this,{$label:n})),Sd(this,"setActive",()=>this.setState({isActive:!0})),Sd(this,"setInactive",()=>this.setState({isActive:!1})),Sd(this,"toggleMenu",()=>this.setState({isMenuOpen:!this.state.isMenuOpen})),Sd(this,"closeMenu",()=>this.setState({isMenuOpen:!1})),Sd(this,"onSelect",n=>{n.persist();const{currentTarget:s}=n;this.setValue(s.dataset.value,n),this.closeMenu()}),Sd(this,"onClickOutside",n=>{let{target:s}=n;s.closest("label")&&this.$label.contains(s)||this.setInactive()}),Sd(this,"onBlur",n=>{const{valueForEmptyInput:s,onBlur:c}=this.props,{value:d}=this.state;c(n),!d&&z4()(s)&&this.setValue(s,n)})}static getDerivedStateFromProps(n,s){let{prevProps:c,value:d}=s;if(!G0()(c,n)){const{value:w}=n;return{prevProps:n,value:(0,lc.Fd)(w)}}return null}componentDidMount(){const{$label:n}=this,{value:s,title:c,prefix:d,suffix:w}=this.props,P=this.checkValidity(s);if(this.setState({isValid:P}),!c&&!d&&!w)return;const F=n.querySelector("input"),X=n.querySelector(".action"),ee=n.querySelector(".title"),pe=n.querySelector(".prefix"),ye=n.querySelector(".suffix span"),Ae=parseInt(getComputedStyle(F).getPropertyValue("padding-left"));if(c||d){const _e={paddingLeft:(ee?ee.clientWidth+6:0)+(pe?pe.clientWidth:0)+Ae+"px"};Object.assign(F.style,_e),c&&d&&Object.assign(pe.style,{left:ee.clientWidth+6+"px"}),w&&Object.assign(ye.parentNode.style,_e)}if(w){const we=X.clientWidth+ye.clientWidth;Object.assign(F.style,{paddingRight:we+"px"})}}render(){const{className:n,size:s,theme:c,unstyled:d,readOnly:w,placeholder:P,prefix:F,suffix:X,title:ee,desc:pe,formatter:ye,dontSelectOnFocus:Ae,onFocus:we=Ae?void 0:FM,optionList:_e,menuX:Fe}=this.props,{value:Ye,isActive:He,isValid:tt,isMenuOpen:It}=this.state,Nt=Ye==="",Lt=this.props.isDisabled||this.props.disabled,Xt=(0,lc.Hn)([c==="core"?"CoreInput CoreInputNumber":"Input InputNumber",s,d&&"unstyled",n,He&&!Lt&&!w&&"is-active",It&&"is-menu-open",Lt&&"is-disabled",w&&"is-readonly",tt?"is-valid":"isnt-valid",Nt?"is-empty":"isnt-empty",!!ee&&"with-title",!!pe&&"with-desc",!!F&&"with-prefix",!!X&&"with-suffix"]),_o=_e&&_e.length>0;return(0,i.jsxs)(PM,{className:Xt,ref:this.set$label,onMouseDown:this.setActive,children:[ee&&(0,i.jsx)("span",{className:"title",children:ee}),pe&&(0,i.jsx)("span",{className:"desc",children:pe}),F&&(0,i.jsx)("span",{className:"prefix",children:F}),(0,i.jsx)("input",{type:"text",value:ye(Ye),placeholder:P,disabled:Lt,readOnly:w,onChange:this.onChange,onKeyDown:this.onKeyDown,onFocus:we,onBlur:this.onBlur,...(0,lc.vq)(this.constructor,this.props)}),X&&(0,i.jsx)("span",{className:"suffix","data-value":ye(Ye),"data-suffix":X,children:(0,i.jsx)("span",{children:X})}),(0,i.jsx)(Bx,{hasMenu:_o,onToggleMenu:this.toggleMenu,onStep:this.onStep,onRelease:this.onRelease}),_o&&(0,i.jsx)(Ex.eB,{isOpen:It,menuClassName:"SelectNumberMenu",$select:this.$label,optionList:_e,value:Ye,menuX:Fe,onChange:this.onSelect,onClose:this.closeMenu}),(He||It)&&(0,i.jsx)(Hc.A,{target:document,onClick:this.onClickOutside})]})}}Sd(ly,"propTypes",{size:ur().oneOf(["regular","small"]),theme:ur().oneOf(["core","plain"]),unstyled:ur().bool,step:ur().number,precision:ur().number,formatter:ur().func,parser:ur().func,value:ur().oneOfType([ur().string,ur().number]),valueForEmptyInput:ur().oneOfType([ur().string,ur().number]),placeholder:ur().oneOfType([ur().string,ur().number]),optionList:ur().arrayOf(ur().oneOfType([ur().string,ur().number])),menuX:ur().oneOf(["left","center"]),dontSelectOnFocus:ur().bool,title:ur().node,desc:ur().node,prefix:ur().node,suffix:ur().node,min:ur().number,max:ur().number,isDisabled:ur().bool,disabled:ur().bool,readOnly:ur().bool,onChange:ur().func.isRequired,onFocus:ur().func,onBlur:ur().func,className:ur().string}),Sd(ly,"defaultProps",{size:"regular",theme:"plain",unstyled:!1,value:"",valueForEmptyInput:null,placeholder:"",step:1,precision:1,parser:t=>t,formatter:t=>t,min:0,max:1/0,isDisabled:!1,disabled:!1,readOnly:!1,isEnterBlur:!1,onChange:()=>null,onBlur:()=>null});class Bx extends r.PureComponent{render(){const{hasMenu:n,onToggleMenu:s,onStep:c,onRelease:d}=this.props;return(0,i.jsx)(r.Fragment,{children:n?(0,i.jsx)("div",{className:"action caret",children:(0,i.jsx)(ry.Ay,{type:"text",tabIndex:"-1",onClick:s,children:(0,i.jsx)(Al.A,{name:"triangle_down"})})}):(0,i.jsxs)("div",{className:"action",children:[(0,i.jsx)(ry.Ay,{type:"text",tabIndex:"-1","data-action":"up",onMouseDown:c,onMouseLeave:d,onMouseUp:d,children:(0,i.jsx)(Al.A,{name:"triangle_up"})}),(0,i.jsx)(ry.Ay,{type:"text",tabIndex:"-1","data-action":"down",onMouseDown:c,onMouseLeave:d,onMouseUp:d,children:(0,i.jsx)(Al.A,{name:"triangle_down"})})]})})}}Sd(Bx,"propTypes",{hasMenu:ur().bool,onStep:ur().func,onToggleMenu:ur().func,onRelease:ur().func});var Rx=e(10259);const UM=(0,u.Ay)(H1.Ay).withConfig({displayName:"styled__StyledWorkspaceSelectProto",componentId:"sc-1443prg-0"})(["&.WorkspaceSelect{padding:0px;border-radius:4px;button{width:auto;display:flex;padding:0 6px;align-items:center;color:",";}.caret{flex-shrink:0;width:8px;display:flex;justify-content:center;align-items:center;padding:0;color:",";svg{width:8px;height:8px;}}&:not(.is-disabled):not(.readonly):hover{border-color:",";button{width:calc(100% - 26px);}.caret{padding:0;color:",";}}&.is-open{border-color:transparent;}}"],t=>t.theme.color_text_L1,t=>t.theme.color_text_L3,t=>t.theme.color_bg_border_02,t=>t.theme.color_text_L1),jx="select-menu-width-108",hE=(0,u.DU)(["#IBOT_SELECT_MENU_ROOT{.SelectMenuPortal{.menu-animation-select{margin-left:-15px;}.WorkspaceSelectMenu.is-open{border:1px solid #454647;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);.SelectOption{&:not(.empty-msg):not(.is-disabled):hover{background:#666;}}}}.autoFillPanelSelectScreenMenu{margin-left:-138px;margin-top:26px;width:175px;}.bdr-width-input-menu{width:88px;}.arrow-setting-menu{width:78px;}.","{width:108px;}}"],jx),zM=(0,u.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;&.is-active{color:",";}&:not(.empty-msg):not(.is-disabled):not(.is-active):hover{background-color:",";color:",";}}}}.autoFillPanelSelectScreenMenu{margin-left:-138px;margin-top:26px;width:175px;}.bdr-width-input-menu{width:88px;}.arrow-setting-menu{width:78px;}.","{width:108px;}}"],t=>t.theme.color_text_L0,t=>t.theme.color_bg_white,t=>t.theme.shadow_m,t=>t.theme.color_bg_border_01,t=>t.theme.color_bg_white,t=>t.theme.shadow_m,t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_bg_border_01,t=>t.theme.color_text_L0,t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_text_L0,jx);class jg extends r.PureComponent{render(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(UM,{...this.props,arrowSvg:(0,i.jsx)(Oc.C,{className:"triangle-icon",name:"common/expand"})}),(0,i.jsx)(zM,{})]})}}var WM=e(79461);const VM=u.Ay.div.withConfig({displayName:"styles__StyledLayerBorder",componentId:"sc-1h0nsie-0"})(["position:absolute;pointer-events:none;border:1px solid ",";.LayerCorner{position:absolute;display:inline-block;width:6px;height:6px;border-radius:50%;background-color:white;border:1px solid ",";&.left{left:-4px;}&.top{top:-4px;}&.right{right:-4px;}&.bottom{bottom:-4px;}}.layer-width,.layer-height{line-height:1;padding:3px 5px;background-color:",";color:#fff;}.layer-width{position:absolute;top:-5px;left:50%;transform:translateX(-50%) translateY(-100%);}.layer-height{position:absolute;top:50%;right:-5px;transform:translateX(100%) translateY(-50%);}.rect_info{position:absolute;display:inline-block;top:calc(100% + 5px);left:50%;transform:translateX(-50%);line-height:1;padding:3px 5px;background-color:#1E98EA;color:#fff;border-radius:2px;white-space:nowrap;}"],t=>t.theme.color_primary_proto01,t=>t.theme.color_primary_proto01,t=>t.theme.color_interaction_reference_line),HM=u.Ay.div.withConfig({displayName:"styles__StyledInspectorToolBar",componentId:"sc-1h0nsie-1"})(["&{position:absolute;z-index:10;top:78px;left:50%;transform:translateX(-50%);display:flex;justify-content:center;align-items:center;min-width:263px;height:40px;border:1px solid ",";background:",";border-radius:6px;box-shadow:0 2px 6px 0 rgba(39,54,78,0.08);pointer-events:auto;padding:2px 8px;}span.divider{display:block;width:1px;height:18px;margin-left:8px;background-color:",";}.mode{display:flex;align-items:center;justify-content:center;.picker{width:28px;height:28px;display:flex;justify-content:center;align-items:center;border-radius:6px;cursor:pointer;.svg-icon{width:24px;height:24px;path{fill:",";}}&:hover{background-color:",";}&:active,&.is-active{background-color:",";}}}.param{display:flex;flex:1;justify-content:center;align-items:center;.ToolbarSelect{margin-left:8px;width:56px;height:28px;border-radius:6px;padding:0 6px;border:none;button{width:36px;padding:0;font-size:13px;}.caret{color:",";}&:not(.is-disabled):not(.readonly):hover{border:none;background-color:",";button{width:36px;}.caret{margin-top:2px;}}&:not(.is-disabled):not(.readonly).is-open{background-color:",";.caret{margin-top:2px;svg{transform:rotate(0deg);}}}}}.dora{margin-top:-1px;font-size:15px;cursor:pointer;}.cursor.is-active{color:",";}.px-ratio{color:",";margin-right:10px;}"],t=>t.theme.color_bg_border_01,t=>t.theme.color_bg_white,t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_text_L1,t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_text_L1,t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_btn_secondary_active,t=>t.theme.color_primary_proto01,t=>t.theme.color_text_L1),KM=(0,u.DU)(["ul.ToolbarSelectMenu{&{width:100%;margin-top:1em;padding:0 0.5em;font-size:12px;min-width:7em;}li{justify-content:center;margin:0.5em 0;border-radius:2px;}}#IBOT_SELECT_MENU_ROOT{.PreviewSubToolbarSelectMenu{margin-left:-10px;background-color:",";.SelectOption{color:",";&:not(.is-active):hover{color:",";background-color:",";}&.is-active{color:",";background-color:",";}}}.PreviewSubToolbarSelectMenu.scale-select-menu{margin-left:-5px;width:80px;li:nth-last-child(2){display:none;}li:last-child{padding:0.25em 0;line-height:1.5;&:hover{background-color:transparent;}> .Ellipsis{padding:0;}.InputNumber{width:100%;height:30px;input{padding:0 1em;text-align:center;background-color:transparent;&:focus::placeholder{color:transparent;}}}}}}"],t=>t.theme.color_background_white,t=>t.theme.color_text_L2,t=>t.theme.color_primary_proto01,t=>t.theme.color_background,t=>t.theme.color_primary_proto01,t=>t.theme.color_background),GM=(0,u.DU)(["ul.ToolbarSelectMenu{&{width:100%;margin-top:11px;font-size:12px;min-width:7em;}li{justify-content:center;border-radius:4px;}}#IBOT_SELECT_MENU_ROOT{.PreviewSubToolbarSelectMenu{margin-left:-10px;padding:8px;background-color:",";box-shadow:0px 4px 10px 0px ",";border-radius:8px;border:1px solid ",";.SelectOption{color:",";border-radius:4px;&:hover,&.is-active{background-color:",";}.InputNumber input{border-radius:6px;border:1px solid ",";box-shadow:none;&:hover,&:focus{border:1px solid ",";}}}}.PreviewSubToolbarSelectMenu.scale-select-menu{margin-left:-5px;width:80px;li:nth-last-child(2){display:none;}li:last-child{padding:0.25em 0;line-height:1.5;&:hover{background-color:transparent;}> .Ellipsis{padding:0;}.InputNumber{width:100%;height:30px;input{padding:0 1em;text-align:center;background-color:transparent;&:focus::placeholder{color:transparent;}}}}}.SelectMenuPortal{.WorkspaceSelectMenu.toolbar-select-menu.is-open{top:calc(100% + 10px) !important;li.SelectOption{height:28px;line-height:28px;}}.WorkspaceSelectMenu.color-unit-select-menu.is-open{width:94px;}.WorkspaceSelectMenu.device-unit-select-menu.is-open{width:82px;}.WorkspaceSelectMenu.rpx-ratio-select-menu.is-open{width:134px;}.WorkspaceSelectMenu.em-pixel-select-menu.is-open{width:86px;li.SelectOption:last-child{.Ellipsis{padding-left:0;height:28px;.Input.small{width:70px;height:28px;border-radius:6px;border:1px solid transparent;overflow:hidden;background:",";display:flex;align-items:center;input{color:",";width:100%;height:100%;cursor:default;background:none;border:0;outline:0;padding-right:2px;text-align:left;}&.is-empty{input{text-align:right;color:",";}}&:not(.is-empty):not(:hover):not(.is-active){input{padding-left:32px;}}&:hover:not(.is-disabled){border:1px solid ",";input{text-align:left;padding-left:6px;}}&.is-active:not(.is-disabled){border:1px solid ",";outline:1px solid ",";outline-offset:-2px;input{text-align:left;padding-left:6px;}}}}&:not(.empty-msg):not(.is-disabled):not(.is-active):hover{background-color:transparent;}}li.SelectOption:nth-last-child(2){display:none;}}}}"],t=>t.theme.color_bg_white,t=>t.theme.shadow_m,t=>t.theme.color_bg_border_01,t=>t.theme.color_text_L0,t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_bg_border_01,t=>t.theme.color_proto,t=>t.theme.color_bg_white,t=>t.theme.color_text_L1,t=>t.theme.color_text_L3,t=>t.theme.color_bg_border_02,t=>t.theme.color_proto,t=>t.theme.color_proto),YM=u.Ay.div.withConfig({displayName:"styles__StyledMarkLabel",componentId:"sc-1h0nsie-2"})(["padding:0 5px;color:#fff;background-color:",";border-radius:2px;"],t=>t.theme.color_interaction_reference_line),ZM=t=>{const{state:n,dispatch:s}=Og(),{ratio:c,customEmPixel:d,colorUnit:w,unit:P,emPixel:F,unitRatio:X,isShowColorPicker:ee}=n,{onPickColor:pe,openDownloadPluginModal:ye,useNativeEyedropper:Ae}=t,we=[Ng,Pg].includes(P);let _e=!1,Fe=!1;const Ye=()=>{let wn=null;try{if(Fe){var _n;Fe=!1,(_n=wn)==null||_n.abort("abort EyeDropper already opened")}else{Fe=!0;const Jn=new EyeDropper;wn=new AbortController,s({type:"inspect:update:state",payload:{isShowColorPicker:!0}}),Jn.open({signal:wn.signal}).then(rs=>{Nt(rs.sRGBHex)}).catch(rs=>{console.warn(rs)}).finally(()=>{Fe=!1,s({type:"inspect:update:state",payload:{isShowColorPicker:!1}})})}}catch(Jn){Fe=!1,s({type:"inspect:update:state",payload:{isShowColorPicker:!1}})}},tt=(()=>{let wn=!1,_n=null,Jn=null,rs=null;const as=r.memo(ha=>{let{colorPickedCallback:Ca,event:ms}=ha;const[qn,si]=(0,r.useState)(!0);(0,r.useEffect)(()=>(_n=si,()=>{_n=null}),[]);const Hi=Ta=>{Ca({sRGBHex:Ta})},ra=(0,r.useCallback)(()=>{wn=!1,si(!1),s({type:"inspect:update:state",payload:{isShowColorPicker:!1}}),Jn&&rs&&(Jn.unmount(),document.body.removeChild(rs),Jn=null,rs=null)},[si]);return(0,r.useEffect)(()=>{const Ta=Pi=>{Pi&&Pi.key!=="Escape"||ra()};return document.addEventListener("keydown",Ta),()=>{document.removeEventListener("keydown",Ta)}},[ra]),(0,i.jsx)(WM.A,{open:qn,event:ms,onClose:ra,onChange:Hi,handleOpenDownloadPluginModal:ye})}),mi=()=>{rs||(rs=document.createElement("div"),document.body.appendChild(rs),Jn=kM.createRoot(rs))};return(ha,Ca)=>{mi();try{if(wn)wn=!1,_n&&_n(!1);else{var ms;if(!window.mbRequestMessage){s({type:"inspect:update:state",payload:{isShowColorPicker:!1}});return}wn=!0,_n&&_n(!0),(ms=Jn)==null||ms.render((0,i.jsx)(as,{colorPickedCallback:ha,event:Ca}))}}catch(si){var qn;s({type:"inspect:update:state",payload:{isShowColorPicker:!1}}),(qn=MB)==null||qn.notice({text:"\u5F53\u524D\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u53D6\u8272\u5668"}),console.log(si)}}})(),It=wn=>{pe(),s({type:"inspect:update:state",payload:{isShowColorPicker:!0}});const _n=window.MB_DESKTOP_GET_COLOR_HEX_RGB||window.parent.MB_DESKTOP_GET_COLOR_HEX_RGB;if(_n)if((0,Rx.uF)()&&Ae)new window.EyeDropper().open().then(rs=>{let{sRGBHex:as}=rs;return Nt(as)});else{if(_e)return;_e=!0;try{_n().then(rs=>{if(!rs)return;const{hex:as}=(0,lc.H0)(rs);Nt(as)},rs=>{console.warn(rs),s({type:"inspect:update:state",payload:{isShowColorPicker:!1}})}).then(()=>_e=!1)}catch(rs){console.warn(rs),_e=!1,s({type:"inspect:update:state",payload:{isShowColorPicker:!1}})}}else{var Jn;(Jn=ENV)!=null&&Jn.IS_WONDER_SHARE||(0,Rx.cX)()?window.EyeDropper&&Ye():window.mbSendMessage?tt(rs=>{let{sRGBHex:as}=rs;return Nt(as)},wn):(s({type:"inspect:update:state",payload:{isShowColorPicker:!1}}),ye())}},Nt=wn=>{const{history:_n,focusColor:Jn}=gI(wn);s({type:"inspect:update:state",payload:{usePickerColor:_n,focusColor:Jn,isShowColorPicker:!1}})},Lt=wn=>{const _n=[Ng,Pg].includes(wn)?F:X;s({type:"inspect:update:state",payload:{unit:wn,ratio:_n,isChangeUnitRatio:!0}})},Xt=wn=>{s({type:"inspect:update:state",payload:{colorUnit:wn}})},_o=wn=>{const _n=Number(wn);s({type:"inspect:update:state",payload:{emPixel:_n,ratio:_n,customEmPixel:"",isChangeUnitRatio:!0}})},co=wn=>{wn&&s({type:"inspect:update:state",payload:{customEmPixel:wn,emPixel:wn,ratio:wn}})},yn=wn=>{s({type:"inspect:update:state",payload:{ratio:Number(wn),unitRatio:Number(wn),isChangeUnitRatio:!0}})},An=()=>{const wn=mI.concat([F]).map(Jn=>({value:Jn,label:Jn+"px"})),_n=(0,i.jsx)("div",{onClick:Jn=>Jn.stopPropagation(),children:(0,i.jsx)(ly,{size:"small",min:1,max:99,precision:0,value:d,placeholder:I18N.pInspect.custom,isEnterBlur:!0,onChange:co})});return wn.concat([_n])},In=Cu();return(0,i.jsxs)(HM,{className:f()("sub-toolbar","preview-sub-toolbar"),children:[(0,i.jsxs)("div",{className:"mode",children:[(0,i.jsx)(Pc.A,{arrowed:!0,position:"bottom",duration:1500,className:(0,lc.Hn)(["picker",ee&&"is-active"]),tipClassName:"marign-top-20",content:{click:null,hover:I18N.pInspect.color_picker},children:(0,i.jsx)(Oc.C,{name:"preview/inspect/color_absorber",onClick:wn=>It(wn)})}),(0,i.jsx)("span",{className:"divider"})]}),(0,i.jsxs)("div",{className:"param",children:[(0,i.jsx)(jg,{className:"ToolbarSelect color-unit",menuClassName:"toolbar-select-menu color-unit-select-menu",placeholder:" ",value:w,optionList:XM,onChange:Xt}),(0,i.jsx)("span",{className:"divider"}),(0,i.jsx)(jg,{className:"ToolbarSelect device-unit",menuClassName:"toolbar-select-menu device-unit-select-menu",placeholder:" ",value:P,optionList:uI,onChange:Lt}),(0,i.jsx)("span",{className:"divider"}),we?(0,i.jsx)(jg,{className:"ToolbarSelect em-pixel",menuClassName:"toolbar-select-menu em-pixel-select-menu",placeholder:" ",optionList:An(),value:F,onChange:_o}):(0,i.jsx)(jg,{className:"ToolbarSelect rpx-ratio",menuClassName:"toolbar-select-menu rpx-ratio-select-menu",placeholder:" ",value:c,optionLabelProp:"labelText",optionList:JM,onChange:yn})]}),In?(0,i.jsx)(KM,{}):(0,i.jsx)(GM,{})]})},XM=[{value:"hex",label:"Hex"},{value:"rgb",label:"RGB"},{value:"rgba",label:"RGBA"},{value:"argb",label:"ARGB"}],QM=[1/3,1/2,1,2,3],Ox=["1/3","1/2","1","2","3"],JM=QM.map((t,n)=>({value:t,label:"\u8BBE\u8BA1\u5C3A\u5BF8x"+Ox[n],labelText:Ox[n]+"x"}));var $M=e(4098);const qM=(t,n)=>{const s=[],c=cy(t,n);if(c.width<t.width+n.width)s[0]=null;else{const d=c.width-(t.width+n.width),w=n.left>t.left;s[0]=w?d:-d}if(c.height<t.height+n.height)s[1]=null;else{const d=c.height-(t.height+n.height),w=n.top>t.top;s[1]=w?d:-d}return s},eT=(t,n)=>{if(oT(t,n))return{top:t.top-n.top,right:n.left+n.width-(t.left+t.width),bottom:n.top+n.height-(t.top+t.height),left:t.left-n.left};{const s={},c=qM(t,n);return c[0]>0?s.right=c[0]:c[0]<0&&(s.left=Math.abs(c[0])),c[1]>0?s.bottom=c[1]:c[1]<0&&(s.top=Math.abs(c[1])),s}},P1=t=>t*100+"%",Fx=t=>[t.left,t.top,t.left+t.width,t.top+t.height];function yE(t,n){var s,c;const d=(s=document.querySelector("#canvas"))==null?void 0:s.getBoundingClientRect(),w=(c=document.querySelector("#screens"))==null?void 0:c.getBoundingClientRect();if(!d||!w)return;const P=d.left-w.left,F=d.top-w.top,X=100/n;return tT(t,{offsetX:P,offsetY:F,ratio:X})}function xE(t,n,s){let{startX:c,startY:d,endX:w,endY:P}=t;n===void 0&&(n=90),s===void 0&&(s=0);const F=Math.atan2(P-d,w-c)/Math.PI*180,X=Math.hypot(w-c,P-d),ee=s+n*Math.round((F-s)/n),pe=X*Math.cos((F-ee)/180*Math.PI);return{startX:c,startY:d,endX:c+Math.round(pe*Math.cos(ee/180*Math.PI).toFixed(2)),endY:d+Math.round(pe*Math.sin(ee/180*Math.PI).toFixed(2))}}function vE(t){let{startX:n,startY:s,endX:c,endY:d}=t;const w=Math.min(s,d),P=Math.min(n,c),F=Math.abs(c-n),X=Math.abs(d-s);return{top:Math.round(w),left:Math.round(P),width:Math.round(F),height:Math.round(X)}}function tT(t,n){let{startX:s,startY:c,endX:d,endY:w}=t,{offsetX:P,offsetY:F,ratio:X}=n;return{startX:Math.round((s-P)*X),startY:Math.round((c-F)*X),endX:Math.round((d-P)*X),endY:Math.round((w-F)*X)}}const Ux=(t,n)=>["top","left","width","height"].every(s=>t[s]===n[s]),oT=(t,n)=>{const s=cy(t,n);return s.width<t.width+n.width&&s.height<t.height+n.height},cy=(t,n)=>{const s=Math.min(t.top||0,n.top||0),c=Math.max((t.top||0)+t.height,(n.top||0)+n.height),d=Math.min(t.left||0,n.left||0),w=Math.max((t.left||0)+t.width,(n.left||0)+n.width);return{top:s,left:d,width:w-d,height:c-s}},bE=(t,n,s)=>nT(t,s)&&sT(n,s),nT=(t,n)=>t>n.left&&t<n.left+n.width,sT=(t,n)=>t>n.top&&t<n.top+n.height,iT=function(t,n,s){return t===void 0&&(t=0),n===void 0&&(n=1),s===void 0&&(s=null),Number.parseFloat((1/n*t).toFixed(2))+s};class aT extends r.PureComponent{constructor(){super(...arguments),(0,p.A)(this,"getDistanceMarksStyle",n=>{const{ratio:s}=this.props;return{width:n.width*s,height:n.height*s,left:n.left*s,top:n.top*s}}),(0,p.A)(this,"mapDistanceMarks",(n,s)=>{let[c,d]=n;const{style:w,renderValue:P}=this.props,{colorForLines:F,colorForText:X,backgroundColorForText:ee,dashed:pe}=w,ye=this.getMarkStyle(c,d),Ae=Math.abs(d),we=iT(Ae);return(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:"distance-line "+c,style:{...ye.line,[["top","bottom"].includes(c)?"borderLeftStyle":"borderTopStyle"]:pe?"dashed":"solid",borderColor:F}}),P?P({value:Ae,style:ye.value,customClassName:"distance-value "+c}):(0,i.jsx)("span",{className:"distance-value "+c,style:{...ye.value,color:X,backgroundColor:ee},children:we})]},s+"-"+d)}),(0,p.A)(this,"getMarkStyle",(n,s)=>{const{baseRect:c,refRect:d}=this.props,w={line:{},value:{},endBoundary:{}},P=Fx(c),F=Fx(d),X=(0,se.Pn)(P,F),ee=["right","left"],pe=["right","bottom"],ye=["top","bottom"],Ae=ee.includes(n)?s/c.width:s/c.height,we=(d.left-c.left+d.width/2)/c.width,_e=(d.top-c.top+d.height/2)/c.height,Fe=ye.includes(n)?"left":"top";return w.line={[n]:s<0?0:P1(-Ae),[Fe]:X?P1(Math.abs(Fe==="left"?we:_e)):"50%",[ee.includes(n)?"width":"height"]:P1(Math.abs(Ae))},w.endBoundary={[n]:P1(-Ae)},w.value={[ee.includes(n)?"left":"top"]:pe.includes(n)?P1(1+Ae/2):P1(-Ae/2),[Fe]:X?P1(Math.abs(Fe==="left"?we:_e)):"50%"},w})}render(){const{baseRect:n,refRect:s}=this.props,c=eT(n,s),d=this.getDistanceMarksStyle(n);return(0,i.jsx)("div",{className:"distance-marks",style:d,children:Object.entries(c).map(this.mapDistanceMarks)})}}const rT=t=>{let{refRect:n,ratio:s,style:{dashed:c,colorForLines:d}}=t;return(0,i.jsx)("div",{style:{position:"absolute",pointerEvents:"none",width:n.width*s,height:n.height*s,left:n.left*s,top:n.top*s,border:"1px "+(c?"dashed":"solid")+" "+d}})};class lT extends r.Component{constructor(){super(...arguments),(0,p.A)(this,"getAuxiliaryLinesStyle",n=>{const{ratio:s}=this.props;return{width:n.width*s,height:n.height*s,top:n.top*s,left:n.left*s}}),(0,p.A)(this,"getAuxiliaryLinesLength",()=>{const n={},{baseRect:s,refRect:c}=this.props,d=cy(s,c),w=d.width-c.width;d.height-(s.height+c.height)>0&&w>s.width/2&&(n.horizontal=w);const F=d.height-c.height;return d.width-(s.width+c.width)>0&&F>s.height/2&&(n.vertical=F),n}),(0,p.A)(this,"getLineStyle",(n,s)=>{const{baseRect:c,refRect:d,ratio:w}=this.props,P=c.left>d.left,F=c.top>d.top,X={};if(n){const ee=n/d.width;X.horizontal={[F?"bottom":"top"]:0,[P?"right":"left"]:P1(-ee),width:P1(ee)}}if(s){const ee=s/d.height;X.vertical={[P?"right":"left"]:0,[F?"bottom":"top"]:-ee*w,height:ee*w}}return X})}render(){const{refRect:n,style:s}=this.props,{horizontal:c,vertical:d}=this.getAuxiliaryLinesLength();if(!c&&!d)return null;const w=this.getAuxiliaryLinesStyle(n),P=this.getLineStyle(c,d);return(0,i.jsxs)("div",{className:"smart-auxiliary-lines",style:w,children:[c&&(0,i.jsx)("div",{className:"line horizontal",style:{...P.horizontal,borderTopStyle:s.dashed?"dashed":"solid",borderTopColor:s.colorForLines}}),d&&(0,i.jsx)("div",{className:"line vertical",style:{...P.vertical,borderLeftStyle:s.dashed?"dashed":"solid",borderLeftColor:s.colorForLines}})]})}}const cT=u.Ay.div.withConfig({displayName:"styles__StyledDistanceMeasurement",componentId:"sc-1sjqq8d-0"})(["width:100%;height:100%;pointer-events:none;.distance-marks{position:absolute;pointer-events:none;.distance-line{position:absolute;width:1px;height:1px;&.top,&.bottom{border-left:1px solid black;}&.left,&.right{border-top:1px solid black;}}.distance-value{position:absolute;&.top,&.bottom{transform:translateY(-50%);}&.left,&.right{transform:translate(-50%,-100%);}}.distance-mark-start-boundary{&.top{top:0;}&.right{right:0;}&.bottom{bottom:0;}&.left{left:0;}}.distance-mark-start-boundary,.distance-mark-end-boundary{position:absolute;&.top,&.bottom{transform:translateX(-4px);width:9px;height:1px;border-top:1px solid black;}&.left,&.right{transform:translateY(-4px);width:1px;height:9px;border-left:1px solid black;}}}.smart-auxiliary-lines{position:absolute;pointer-events:none;.line{position:absolute;width:1px;height:1px;&.horizontal{border-top:1px solid black;}&.vertical{border-left:1px solid black;}}}.verbose-auxiliary-lines{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;.line{position:absolute;&.top,&.bottom{width:100%;height:1px;border-top:1px solid black;}&.bottom{transform:translateY(-1px);}&.left,&.right{width:1px;height:100%;border-left:1px solid black;}&.right{transform:translateX(-1px);}}}"]),Nu={color_interaction_reference_line:{value:"#ff1313",description:"\u667A\u80FD\u5BF9\u9F50/\u624B\u52A8\u6D4B\u8DDD/\u53C2\u8003\u7EBF"},color_primary_proto01:{value:"#1684fc",description:"\u539F\u578B\u4E3B\u8981\u5F3A\u8C03\u8272"}},dy={design:{distanceMarks:{showStartAndEndBoundary:!1,dashed:!1,colorForLines:Nu.color_interaction_reference_line.value,colorForText:Nu.color_interaction_reference_line.value},refRectBorder:{dashed:!1,colorForLines:Nu.color_interaction_reference_line.value},verboseAuxiliaryLines:!1,auxiliaryLines:{dashed:!0,colorForLines:Nu.color_interaction_reference_line.value}},preview:{distanceMarks:{showStartAndEndBoundary:!0,dashed:!0,colorForLines:Nu.color_interaction_reference_line.value},refRectBorder:{dashed:!0,colorForLines:Nu.color_primary_proto01.value},verboseAuxiliaryLines:!0,auxiliaryLines:{dashed:!0,colorForLines:Nu.color_primary_proto01.value}}};class dT extends r.Component{shouldComponentUpdate(n){return!(Ux(n.baseRect,this.props.baseRect)&&Ux(n.refRect,this.props.refRect)&&n.ratio===this.props.ratio&&n.theme===this.props.theme)}render(){const{baseRect:n,refRect:s,theme:c,renderValue:d,ratio:w}=this.props;return(0,i.jsxs)(cT,{className:"distance-measurement-container",children:[(0,i.jsx)(aT,{baseRect:n,refRect:s,ratio:w,style:dy[c].distanceMarks,renderValue:d}),(0,i.jsx)(lT,{baseRect:n,refRect:s,ratio:w,style:dy[c].auxiliaryLines}),(0,i.jsx)(rT,{refRect:s,ratio:w,style:dy[c].refRectBorder})]})}}const zx=t=>{const{state:{unit:n,ratio:s}}=Og(),{layerBound:c,viewportScale:d,displayLayerSizeAndRoInfo:w,rpxRatio:P}=t,{x:F,y:X,r:ee,w:pe,h:ye}=c,Ae={width:pe*d,height:ye*d,transform:"translate("+(F-pe*.5)*d+"px,"+(X-ye*.5)*d+"px) rotate("+ee+"deg)"},we=rd(pe,s,n,P,!1),_e=rd(ye,s,n,P,!1);return(0,i.jsx)(VM,{style:Ae,children:w&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"LayerCorner left top"}),(0,i.jsx)("span",{className:"LayerCorner left bottom"}),(0,i.jsx)("span",{className:"LayerCorner right top"}),(0,i.jsx)("span",{className:"LayerCorner right bottom"}),(0,i.jsx)("span",{className:"layer-width",children:""+we+n}),(0,i.jsx)("span",{className:"layer-height",children:""+_e+n}),ee!==0&&(0,i.jsxs)("span",{className:"rect_info",children:[we+" x "+_e,"\xA0\xA0",ee+"\xB0"]})]})})},Wx=r.memo(t=>{let{value:n,unit:s,style:c,className:d,customClassName:w,ratio:P,rpxRatio:F}=t;const X=rd(n,P,s,F);return(0,i.jsx)(YM,{style:c,className:d+" "+w,children:""+X})});Wx.displayName="MarkLabel";const pT=t=>{const{state:{unit:n,ratio:s,isShowColorPicker:c}}=Og();if(c)return null;const{sdk:d,viewportScale:w,selectedWidgetInfo:P,hoveredWidgetInfo:F,currPageKey:X}=t;let ee=null,pe=null;if(P!=null&&P.key)if(P.extra){const{key:_e,extra:{x:Fe,y:Ye}}=P,He={...d.getHotItem(_e).hotAttr,...d.getRelocateLocalBound(P.key,d.locUpRBPageKey(P.key))};ee=Lg(He,{x:Fe,y:Ye})}else ee=d.getHotBound(P.key);if(F!=null&&F.key)if(F.extra){const{key:_e,extra:{x:Fe,y:Ye}}=F,He={...d.getHotItem(_e).hotAttr,...d.getRelocateLocalBound(F.key,d.locUpRBPageKey(F.key))};pe=Lg(He,{x:Fe,y:Ye})}else pe=d.getHotBound(F.key);let ye=1;if(X){var Ae;const _e=d.getHotItem(X),Fe=_e==null||(Ae=_e.hotAttr)==null?void 0:Ae.deviceW;ye=yx(Fe)}const we=_e=>(0,i.jsx)(Wx,{unit:n,ratio:s,rpxRatio:ye,..._e});return(0,i.jsxs)(i.Fragment,{children:[ee&&pe&&!G0()(ee,pe)&&(0,i.jsx)(dT,{baseRect:Vx(ee),refRect:Vx(pe),ratio:w,renderValue:we,theme:"preview"}),ee&&(0,i.jsx)(zx,{viewportScale:w,displayLayerSizeAndRoInfo:!(pe&&!G0()(ee,pe)),layerBound:ee,rpxRatio:ye}),pe&&(0,i.jsx)(zx,{viewportScale:w,displayLayerSizeAndRoInfo:!1,layerBound:pe,rpxRatio:ye})]})},Vx=t=>{const n=(0,$M.Pb)(t);return{width:n[2]-n[0],height:n[3]-n[1],left:n[0],top:n[1],right:n[2],bottom:n[3]}},hT={unit:"px",colorUnit:"hex",emPixel:16,customEmPixel:"",ratio:1,unitRatio:1,language:"css",usePickerColor:X4(),focusColor:"",isShowColorPicker:!1,isChangeUnitRatio:!1};function uT(t,n){let{type:s,payload:c}=n;switch(s){case"inspect:update:state":return{...t,...c};default:return t}}const Hx=(0,r.createContext)(null),Og=()=>{const t=(0,r.useContext)(Hx);if(t===null)throw new Error("Inspector context is null");return t},mT=t=>{let{sdk:n,hoveredWidgetInfo:s,selectedWidgetInfo:c,viewportScale:d,containerSelector:w,currPageKey:P}=t;return document.querySelector(w)?dr.createPortal((0,i.jsx)(pT,{sdk:n,viewportScale:d,selectedWidgetInfo:c,hoveredWidgetInfo:s,currPageKey:P}),document.querySelector(w)):null},Kx=r.memo(mT);Kx.displayName="InspectorMeasurementToolPortal";const gT=t=>{let{sdk:n,theme:s,currPageKey:c,selectedWidgetInfo:d,containerSelector:w,getWidgetInspectStyles:P}=t;return document.querySelector(w)?dr.createPortal((0,i.jsx)(EM,{sdk:n,selectedWidgetInfo:d,theme:s,currPageKey:c,getWidgetInspectStyles:P}),document.querySelector(w)):null},Gx=r.memo(gT);Gx.displayName="InspectorPanelPortal";const fT=t=>{let{onPickColor:n,openDownloadPluginModal:s,useNativeEyedropper:c,containerSelector:d}=t;return document.querySelector(d)?dr.createPortal((0,i.jsx)(ZM,{onPickColor:n,openDownloadPluginModal:s,useNativeEyedropper:c}),document.querySelector(d)):null},Yx=r.memo(fT);Yx.displayName="InspectorToolbarPortal";const yT=(0,r.memo)(t=>{let{enabled:n,sdk:s,hoveredWidgetInfo:c,selectedWidgetInfo:d,viewportScale:w,theme:P,currPageKey:F,useNativeEyedropper:X,initialUnitRatio:ee,onPickColor:pe,openDownloadPluginModal:ye,measurementToolContainerSelector:Ae,panelContainerSelector:we,toolbarContainerSelector:_e,getWidgetInspectStyles:Fe}=t;const[Ye,He]=(0,r.useReducer)(uT,hT),tt=(0,r.useMemo)(()=>({state:Ye,dispatch:He}),[Ye,He]),It=(0,r.useMemo)(()=>({key:c==null?void 0:c.key,extra:c==null?void 0:c.extra}),[c==null?void 0:c.key,c==null?void 0:c.extra]),Nt=(0,r.useMemo)(()=>({key:d==null?void 0:d.key,extra:d==null?void 0:d.extra}),[d==null?void 0:d.key,d==null?void 0:d.extra]),{isChangeUnitRatio:Lt}=Ye;return(0,r.useEffect)(()=>{Lt||He({type:"inspect:update:state",payload:{unit:ee.unit,ratio:ee.ratio}})},[ee,Lt]),(0,i.jsx)(Hx.Provider,{value:tt,children:n&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Kx,{sdk:s,hoveredWidgetInfo:It,selectedWidgetInfo:Nt,viewportScale:w,containerSelector:Ae,currPageKey:F}),(0,i.jsx)(Gx,{sdk:s,selectedWidgetInfo:Nt,theme:P,currPageKey:F,containerSelector:we,getWidgetInspectStyles:Fe}),(0,i.jsx)(Yx,{onPickColor:pe,openDownloadPluginModal:ye,useNativeEyedropper:X,containerSelector:_e})]})})}),xT=t=>{const n=t();return(0,i.jsx)(yT,{...n})};var Zx=e(73523),Xx=e(46927);const py=t=>typeof t=="number"?(0,sd.t0)(t):typeof t=="string"&&t!=null&&t.includes("#")?(0,fh.d9)((0,fh.UV)(t)):t,vT=(t,n)=>{if((0,Xx.yD)(t.type)&&t.textV0){const{fontSize:Fe,color:Ye,horizontalAlign:He,verticalAlign:tt,italic:It,letterSpacing:Nt,lineHeight:Lt,fontFamily:Xt,fontWeight:_o}=(0,$1.Mi)(t.textV0);return{fontSize:Fe,color:py(Ye),length:n==null?void 0:n.length,horizontalAlign:He,verticalAlign:tt,italic:It,lineHeight:Lt,fontFace:(0,xh.cD)(Xt)+"-"+_o,letterSpacing:Nt}}if((0,Xx.e_)(t.type)){const{fontColor:Fe="#000000",fontSize:Ye=14,italic:He,fontFamily:tt="PingFang SC"}=(0,$1.DG)(t.textV1);return{fontFace:tt,fontSize:Ye,color:py(Fe),length:n==null?void 0:n.length,italic:He}}const{fontFamily:s,fontWeight:c,fontSize:d,fontStyle:w,textColor:P,letterSpacing:F,paraSpacing:X,lineHeight:ee,paddingTuple:pe,horizontalAlign:ye,verticalAlign:Ae,italic:we}=(0,$1.xH)({baseItem:t});return{...{fontSize:d,color:py(P),fontStyle:w,lineHeight:ee,paraSpacing:X,horizontalAlign:ye,verticalAlign:Ae,italic:we,letterSpacing:F,fontFace:(0,xh.cD)(s)+"-"+c}}},bT=t=>{var n,s;const c=(0,Co.WM)({...t,display_name:t.name});let d="";if(t.textV1)d=(0,Kn.YZ)(t.textV1);else if(typeof((n=t.textV0)==null?void 0:n.text)=="string"){var w;d=(w=t.textV0)==null?void 0:w.text}else{var P,F;(P=t.textV0)!=null&&P.text&&(d=JSON.stringify((F=t.textV0)==null?void 0:F.text))}let X,ee;if(d){const we=d.replace(/<p>/g,"").replace(/<\/p>/g,"\n"),_e=we&&we.replace(/<[^>]+>/ig,"");X=vT(t,_e),ee=_e}t.table_cell_text&&(d=t.table_cell_text,X={fontStyle:t.fontStyle,letterSpacing:t.padding,lineHeight:t.lineHeight,paraSpacing:0,fontSize:t.fontSize,color:t.color,length:d.length,horizontalAlign:t.ha,verticalAlign:t.va},ee=d);let pe;if(t.fill){const we=t==null?void 0:t.fill,_e=(0,fh.$8)(we,{w:t.w,h:t.h});switch(we==null?void 0:we.fill){case"linearGradient":pe=[{type:"linear",opacity:"1",value:(0,Zx.l$)(_e),gradient:{color_stops:we.knobList.map(Fe=>({color:(0,sd.t0)(Fe.color)}))}}];break;case"radialGradient":pe=[{type:"radial",opacity:"1",value:(0,Zx.rp)(_e),gradient:{color_stops:we.knobList.map(Fe=>({color:(0,sd.t0)(Fe.color)}))}}];break;case"solid":pe=[{value:(0,sd.t0)(t==null||(s=t.fill)==null?void 0:s.solidColor)}];break;default:pe=[{value:"transparent"}]}}if(t.table_cell_background&&(pe=[{value:(0,sd.t0)(t.table_cell_background)}]),t.type===J.x.WTriangleB||t.type===J.x.WTriangleTL){var ye,Ae;pe=t!=null&&(ye=t.fill)!=null&&ye.fillIsVisible?[{value:(0,sd.t0)(t==null||(Ae=t.fill)==null?void 0:Ae.solidColor)}]:[]}return{displayName:c,textStyles:X,inspectText:ee,widgetText:d,bgColors:pe}},hy={default:{unit:"px",ratio:1},iphone:{unit:"pt",ratio:1},android:{unit:"dp",ratio:1}},CT=t=>{if(!t)return hy.default;const{device:n}=t;let s="default";return Object.entries(z0.Am).forEach(c=>{let[d,w]=c;w.includes(n)&&(s=d)}),hy[s]||hy.default},wT=(0,m.Mz)([A._b,A.IL,ce.p$,a.zg,S.Ur,T.O4,S.X_,T.AM],(t,n,s,c,d,w,P,F)=>{const X=s[0]?c.selectCellInfo&&c.selectCellInfo.key===s[0]?{key:c.selectCellInfo.key,extra:{x:c.selectCellInfo.x,y:c.selectCellInfo.y}}:{key:s[0]}:null,ee=n?c.hoverCellInfo&&c.hoverCellInfo.key===n?{key:c.hoverCellInfo.key,extra:{x:c.hoverCellInfo.x,y:c.hoverCellInfo.y}}:{key:n}:X&&sdkStore.locUpHotCanvasKey(X.key)?{key:sdkStore.locUpHotCanvasKey(X.key)}:null;return{enabled:t,hoveredWidgetInfo:ee,selectedWidgetInfo:X,viewportScale:P/100,theme:w,currentScreen:d,currPageKey:(d==null?void 0:d.cid)||"",useNativeEyedropper:F}}),ST=(0,o.Ng)(wT)(t=>{let{enabled:n,hoveredWidgetInfo:s,selectedWidgetInfo:c,viewportScale:d,theme:w,currentScreen:P,currPageKey:F,useNativeEyedropper:X,dispatch:ee}=t;const pe=(0,r.useCallback)(()=>{const Ae=CT(P);return{enabled:n,hoveredWidgetInfo:s,selectedWidgetInfo:c,viewportScale:d,theme:w,currPageKey:F,useNativeEyedropper:X,initialUnitRatio:Ae,onPickColor:()=>ee({type:"entry:clear:selection"}),openDownloadPluginModal:()=>ee({type:"modal:update:state",payload:{colorPickerDownloadModal:{isOpen:!0}}}),sdk:sdkStore,measurementToolContainerSelector:"#ro-fe-canvas",toolbarContainerSelector:"#fixed-area",panelContainerSelector:"#inspect-panel",getWidgetInspectStyles:bT}},[n,s,c,d,w,F,X,P,ee]),ye=xT(pe);return(0,i.jsx)(i.Fragment,{children:ye})});var uy=e(35195),AT=e(33520),IT=e(50654),MT=e(11154),TT=e(18213),ET=e(96834),kT=e(94947);const _T=(t,n,s)=>{const c=new URL("/",t!=null?t:"https://embed.diagrams.net"),d=c.searchParams;return d.append("embed","1"),d.append("proto","json"),s&&d.append("configure","1"),n&&Object.keys(n).forEach(w=>{const P=n[w];P!==void 0&&(typeof P=="boolean"?d.append(w,P?"1":"0"):d.append(w,P.toString()))}),c.toString()};function PT(t,n,s){if(t.origin.includes("embed.diagrams.net")||s&&t.origin.includes(s))try{const c=JSON.parse(t.data);if(c.event in n){const d=n[c.event];d&&d(c)}}catch(c){}}const NT=t=>{const n=(we,_e)=>{var Fe;(Fe=t.current)==null||(Fe=Fe.contentWindow)==null||Fe.postMessage(JSON.stringify({action:we,..._e}),"*")};return{load:we=>{n("load",we)},configure:we=>{n("configure",we)},merge:we=>{n("merge",we)},dialog:we=>{n("dialog",we)},prompt:we=>{n("prompt",we)},template:we=>{n("template",we)},layout:we=>{n("layout",we)},draft:we=>{n("draft",we)},status:we=>{n("status",we)},spinner:we=>{n("spinner",we)},exportDiagram:we=>{n("export",we)}}},LT=(0,r.forwardRef)((t,n)=>{const{autosave:s=!1,baseUrl:c,urlParameters:d,configuration:w,xml:P,csv:F,exportFormat:X,onAutoSave:ee,onSave:pe,onClose:ye,onLoad:Ae,onConfigure:we,onDraft:_e,onExport:Fe,onMerge:Ye,onPrompt:He,onTemplate:tt}=t,It=(0,r.useRef)(null),Nt=NT(It),Lt=_T(c,d,!!w),[Xt,_o]=(0,r.useState)(!1),[co,yn]=(0,r.useState)(!1);return(0,r.useImperativeHandle)(n,()=>({...Nt}),[Nt]),(0,r.useEffect)(()=>{let An={};Xt&&(P?X==="xmlpng"?An={xmlpng:P}:An={xml:P}:F?An={descriptor:{format:"csv",data:F}}:An={xml:""},An={...An,autosave:s},Nt.load(An))},[Xt,P,F,s,Nt,X]),(0,r.useEffect)(()=>{const An=In=>{PT(In,{init:()=>{_o(!0)},load:wn=>{yn(!0),Ae&&Ae(wn)},configure:wn=>{w&&Nt.configure({config:w}),we&&we(wn)},autosave:wn=>{Nt.exportDiagram({format:"xmlsvg"}),ee&&ee(wn)},save:wn=>{Nt.exportDiagram({format:X||"xmlsvg",exit:wn.exit,parentEvent:"save"})},exit:wn=>{ye&&ye(wn)},draft:wn=>{_e&&_e(wn)},export:wn=>{pe&&pe({event:"save",xml:wn.data,parentEvent:wn.message.parentEvent||"export"}),Fe&&Fe(wn),wn.message.exit&&ye&&ye({event:"exit",modified:!0,parentEvent:wn.message.parentEvent||"export"})},merge:wn=>{Ye&&Ye(wn)},prompt:wn=>{He&&He(wn)},template:wn=>{tt&&tt(wn)}},c)};return window.addEventListener("message",An),()=>{window.removeEventListener("message",An)}},[]),(0,i.jsxs)("div",{className:"diagrams-iframe-container",children:[(0,i.jsx)("iframe",{className:"diagrams-iframe",src:Lt,ref:It,title:"\u58A8\u5200\u7ED8\u56FE",frameBorder:"0",style:{opacity:co?1:0}}),!co&&(0,i.jsx)("div",{className:"loading-wrapper",children:(0,i.jsx)(F1.Os,{className:"iframe-loading"})})]})});function DT(t){if(!t)return"";try{if(!t.startsWith("data:image/svg+xml;base64,"))throw new Error("\u8F93\u5165\u7684 BASE64 \u6570\u636E\u4E0D\u662F SVG \u7C7B\u578B");const n=t.split(",")[1],s=atob(n),c=new Uint8Array(s.length);for(let P=0;P<s.length;P++)c[P]=s.charCodeAt(P);return new TextDecoder("utf-8").decode(c)}catch(n){return console.error("BASE64 \u5230 SVG \u8F6C\u6362\u5931\u8D25:",n),""}}const Qx=(t,n)=>n.width>n.height?{width:n.width,height:Math.round(n.width*(t.height/t.width))}:{height:n.height,width:Math.round(n.height*(t.width/t.height))},BT=u.Ay.div.withConfig({displayName:"styles__StyledMbDrawioContainer",componentId:"sc-1cq5nu-0"})(["position:absolute;top:0;left:0;width:100vw;height:100vh;z-index:108;background:",";.header{height:30px;display:flex;flex-direction:row;align-items:center;justify-content:flex-end;margin-bottom:12px;z-index:1;width:100%;position:absolute;.left{color:",";font-size:16px;font-weight:600;}.save-close-btn{display:flex;align-items:center;height:28px;padding:0 15px;background:",";border-radius:6px;font-size:13px;font-weight:500;color:",";cursor:pointer;white-space:nowrap;margin-right:12px;position:absolute;top:53px;right:54px;&:hover{background:",";}&:active{background:",";}}}.diagrams-iframe-container{width:100%;height:100%;overflow:hidden;position:relative;margin-top:18px;}.diagrams-iframe{width:100%;height:100%;border:none;.geMenubarContainer{margin-left:20px;}}.loading-wrapper{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;.iframe-loading{width:100px;}}"],t=>t.theme.color_bg_canvas,t=>t.theme.color_text_L1,t=>t.theme.color_btn_primary_normal,t=>t.theme.color_text_btn,t=>t.theme.color_btn_primary_hover,t=>t.theme.color_btn_primary_clicked),Um={width:200,height:200},Jx=t=>t!=null&&t.length&&t.length/1024>600?(MB.notice({text:"\u6682\u4E0D\u652F\u6301\u5927\u4E8E600kb\u7684\u7ED8\u56FE\u7EC4\u4EF6",type:"warning"}),!1):!0,RT=()=>{var t;const n=(0,o.wA)(),s=(0,o.d4)(T.O4),c=(0,o.d4)(S.Ur),d=(0,r.useRef)(null),w=(0,o.d4)(S.q6),P=(w==null?void 0:w.editType)==="newWidget",F=(0,r.useRef)(null),[X,ee]=(0,r.useState)(!1),pe=(0,r.useMemo)(()=>({lang:"zh",ui:s==="dark"?"dark":void 0,saveAndExit:!1,noSaveBtn:!0,noExitBtn:!0}),[s]),ye=_e=>{F.current=_e},Ae=()=>{if(n({type:"set:current:drawio:editor:item",payload:{hotItem:null}}),ee(!1),!P&&!F.current){n(R.GO.select([w.key]));return}if(!P){var _e;const{height:He,width:tt}=F.current.bounds;if(He===0&&tt===0){n({type:"entry:widget:change",payload:{flatChgList:[{key:w.key,hotAttr:{xmlData:""}}]}}),F.current=null,n(R.GO.select([w.key]));return}const It=Qx({height:He,width:tt},{height:w.hotAttr.h,width:w.hotAttr.w}),Nt=Jx(F.current.data)?F.current.data:(w==null||(_e=w.hotAttr)==null?void 0:_e.xmlData)||"",Lt=[{key:w.key,hotAttr:{xmlData:Nt,h:It.height,w:It.width}}];F.current=null,n({type:"entry:widget:change",payload:{flatChgList:Lt}}),n(R.GO.select([w.key]));return}const Fe=(0,Q1.gu)({type:"wGraph",screen:c});if(!F.current||F.current.bounds.height===0&&F.current.bounds.width===0||!Jx(F.current.data)){(0,ya.Q7)([{...Fe,xmlData:"",h:Um.height,w:Um.height}],Um.width,Um.height);return}const Ye=Qx({height:F.current.bounds.height,width:F.current.bounds.width},Um);(0,ya.Q7)([{...Fe,xmlData:F.current.data,h:Ye.height,w:Ye.width}],Ye.width,Ye.height),F.current=null},we=()=>{ee(!0)};return w?(0,i.jsxs)(BT,{children:[(0,i.jsx)("div",{className:"header",children:(0,i.jsx)("div",{className:"right",children:X&&(0,i.jsx)("div",{className:"save-close-btn",onClick:Ae,children:"\u4FDD\u5B58\u5E76\u9000\u51FA"})})}),(0,i.jsx)(LT,{ref:d,autosave:!0,xml:DT((t=w.hotAttr)==null?void 0:t.xmlData)||"",onExport:ye,urlParameters:pe,exportFormat:"xmlsvg",onLoad:we})]}):null};class jT extends r.PureComponent{constructor(n){super(n),(0,p.A)(this,"setElementRef",s=>this.$element=s),(0,p.A)(this,"handleFullScreenChange",()=>{if(uy.A.isFullscreen){(0,S2.gh)()&&setTimeout(()=>MB.commonGuideHelper.tryToShowGuide(Ha.c.INTER_SWITCHABLE_VIEW_MODE_OV_TOGGLE_PANE_BTN),1e3);return}const{dispatch:s}=this.props;s(R.GO.toggleFullScreenMode(!1)),s({type:"entry:toolbar:restore:leftrightpane"}),s({type:"entry:update:mode:viewType"}),s(R.GO.toggleHandMode(!1)),MB.commonGuideHelper.closeGuide(Ha.c.INTER_SWITCHABLE_VIEW_MODE_OV_TOGGLE_PANE_BTN),MB.commonGuideHelper.markGuideAsRead(Ha.c.INTER_SWITCHABLE_VIEW_MODE_OV_TOGGLE_PANE_BTN)}),(0,p.A)(this,"handleBeforeUnload",()=>{this.props.dispatch({type:"entry:reset:dragging:state"})}),(0,p.A)(this,"handleResize",()=>{const{dispatch:s}=this.props;s({type:"entry:update:viewport:rect"}),s({type:"entry:observe:dom:left-panel-width"}),s({type:"entry:observe:dom:right-panel-width"})}),n.dispatch({type:"entry:update:toolbar"}),n.dispatch({type:"entry:update:ui:by:preference"}),n.dispatch({type:"entry:update:ui:by:iconinfo"}),MB.clientX=0,MB.clientY=0}componentDidMount(){var n;const{onlyView:s}=this.props,c=(0,S2.OB)();(!s||s&&c)&&(n=ENV["@FLPAK_SIZE_INFO"])!=null&&n.isFlpakSizeWarn&&this.props.dispatch({type:"modal:update:state",payload:{flpakSizeWarnModal:{isOpen:!0}}}),window.addEventListener("dragover",this.preventDefault),window.addEventListener("drop",this.preventDefault),window.addEventListener("contextmenu",this.preventDefault),window.addEventListener("beforeunload",this.handleBeforeUnload),this.$element.addEventListener("wheel",this.handleWheel,{passive:!1}),uy.A.on("change",this.handleFullScreenChange),new URLSearchParams(location.hash.replace(/^#/,"")).get("version")==="reset"&&(MB.notice({text:I18N.__App__.version_toast_reset_success}),window.history.replaceState(void 0,void 0,"#")),!s&&document.addEventListener("paste",d=>{const{isShallowEditText:w}=this.props;if(d.target.className.includes("batch-set-content-area")||MB.f.editingRichText&&!w)return;const{isEditingComment:P}=this.props;P||Io.X.query.getIsShallowEditing((0,un.dP)())||MB.action("entry:prepare:paste:by:shortcut",{e:d})}),(0,Wh.KA)(),(0,Wh.BG)()&&(0,Wh.sg)("currentTheme",{theme:this.props.theme}),window.addEventListener("popstate",d=>{location.pathname.startsWith(Bm.o$+"/")&&location.reload()}),FT()}componentWillUnmount(){window.removeEventListener("dragover",this.preventDefault),window.removeEventListener("drop",this.preventDefault),window.removeEventListener("contextmenu",this.preventDefault),window.removeEventListener("beforeunload",this.handleBeforeUnload),uy.A.off("change",this.handleFullScreenChange),this.$element.removeEventListener("wheel",this.handleWheel,{passive:!1})}preventDefault(n){n.preventDefault()}handleWheel(n){(n.ctrlKey||n.metaKey)&&n.preventDefault()}render(){const{theme:n,isShowSharingManager:s,isDeleteRulerLine:c,onlyView:d,isCommunityPreview:w,isEmbedV2Preview:P,fullScreenMode:F}=this.props,X=d?!(P&&!F):!F,ee=!(w&&!F),pe=d?w||P?_m.xO:_m.tt:_m.xz;return(0,i.jsx)(u.NP,{theme:O1.A[n],children:(0,i.jsxs)(b.D.Provider,{value:n,children:[(0,i.jsxs)(MT.n,{ref:this.setElementRef,className:f()({isDeleteRulerLine:c,isEmbedV2Preview:P}),children:[d?(0,i.jsx)(TT.VW,{sheet:pe,viewMode:["read_only","inspect"]}):(0,i.jsx)(E.NH,{sheet:pe}),ee&&(0,i.jsx)(Vw,{}),(0,i.jsxs)("div",{className:"main-content",children:[(0,i.jsx)(oI.A,{}),X&&(0,i.jsx)(Hw.D,{}),(0,i.jsxs)("main",{className:"mb-viewport",children:[(0,i.jsx)(tI.A,{}),(0,i.jsx)(h.A,{onResize:this.handleResize})]}),(0,i.jsx)(qA,{})]}),(0,i.jsx)(vC,{}),(0,i.jsx)(RT,{}),s&&(0,i.jsx)(cI,{}),(0,i.jsx)(ST,{})]}),!(0,kT.FM)()&&(0,i.jsx)(ET.w9,{}),(0,i.jsx)(OT,{})]})})}}const OT=(0,r.memo)(()=>(0,i.jsxs)(r.Fragment,{children:[(0,i.jsx)(AT.r,{}),(0,i.jsx)(X3.l,{}),(0,i.jsx)(IT.K,{})]}));function FT(){const t=new Date;t.setHours(4,0,0,0),t.setDate(t.getDate()+1);const n=t.getTime(),s=setInterval(()=>{Date.now()<=n||(clearInterval(s),setInterval(()=>{MB.global.popupHelper.alertAsync({title:I18N.Popups.inactive_for_too_long_title,desc:I18N.Popups.inactive_for_too_long_content,confirmText:I18N.Popups.inactive_for_too_long_confirm}).then(()=>{rootSdk.hasSave()||window.location.reload()})},20*1e3))},10*60*1e3)}const UT=(0,m.Mz)([T.O4,l.ud,C.H5,g.Q,A.jx,A.pH,A.rg,A.T7,k.aJ],(t,n,s,c,d,w,P,F,X)=>({onlyView:d===R.qi.OnlyView,isEditingComment:n,isCommunityPreview:w,isEmbedV2Preview:P,theme:t,isShowSharingManager:s,isDeleteRulerLine:c,fullScreenMode:F,isShallowEditText:X})),zT=(0,o.Ng)(t=>UT(t))(jT)},41469:(Et,ke,e)=>{"use strict";e.d(ke,{J7:()=>x,PF:()=>E,tt:()=>b,xO:()=>h,xz:()=>u});var o=e(76713),m=e.n(o),g=e(14672),l=e(1694),C=e(84044),T=e(9376),A=e(23340),k=e(10572),p=e(76445),r=e(39506);const x=()=>MB.getSelectionItems().length===0,f=async()=>{const N={clientX:MB.clientX,clientY:MB.clientY},z=await(0,g.LD)({isShowPrompt:!1});await(0,A.$H)({hasNotice:!1})&&z!=null&&z.data?MB.action("entry:paste:items:at",{clientPos:N,hasPrompt:!0}):MB.action("entry:prepare:paste:by:contextmenu",{cursorPos:N})},u={keys:{tab:()=>{if(document.activeElement===document.body)return!1},enter:()=>{MB.action("entry:enter:key"),(0,C.L)("enter")},f2:()=>{MB.action("entry:enter:key"),(0,C.L)("f2")},"command+shift+h":()=>{MB.action("entry:toggle:visible"),(0,C.L)("command+shift+h")},"ctrl+shift+h":()=>{MB.action("entry:toggle:visible"),(0,C.L)("ctrl+shift+h")},left:()=>{MB.action("entry:arrow:key",{direction:"x",rate:-1}),(0,C.L)("left")},"alt+left":()=>{MB.action("entry:arrow:key",{direction:"x",rate:-1}),(0,C.L)("alt+left")},right:()=>{MB.action("entry:arrow:key",{direction:"x",rate:1}),(0,C.L)("right")},"alt+right":()=>{MB.action("entry:arrow:key",{direction:"x",rate:1}),(0,C.L)("alt+right")},up:()=>{MB.action("entry:arrow:key",{direction:"y",rate:-1}),(0,C.L)("up")},"alt+up":()=>{MB.action("entry:arrow:key",{direction:"y",rate:-1}),(0,C.L)("alt+up")},down:()=>{MB.action("entry:arrow:key",{direction:"y",rate:1}),(0,C.L)("down")},"alt+down":()=>{MB.action("entry:arrow:key",{direction:"y",rate:1}),(0,C.L)("alt+down")},"shift+left":()=>{MB.action("entry:arrow:key",{direction:"x",rate:-10}),(0,C.L)("shift+left")},"alt+shift+left":()=>{MB.action("entry:arrow:key",{direction:"x",rate:-10}),(0,C.L)("alt+shift+left")},"shift+right":()=>{MB.action("entry:arrow:key",{direction:"x",rate:10}),(0,C.L)("shift+right")},"alt+shift+right":()=>{MB.action("entry:arrow:key",{direction:"x",rate:10}),(0,C.L)("alt+shift+right")},"shift+up":()=>{MB.action("entry:arrow:key",{direction:"y",rate:-10}),(0,C.L)("shift+up")},"alt+shift+up":()=>{MB.action("entry:arrow:key",{direction:"y",rate:-10}),(0,C.L)("alt+shift+up")},"shift+down":()=>{MB.action("entry:arrow:key",{direction:"y",rate:10}),(0,C.L)("shift+down")},"alt+shift+down":()=>{MB.action("entry:arrow:key",{direction:"y",rate:10}),(0,C.L)("alt+shift+down")},"command+c":()=>{x()||(MB.action("entry:copy:items",{needPasteProperties:!0}),(0,g.P8)(),(0,C.L)("command+c"))},"ctrl+c":()=>{x()||(MB.action("entry:copy:items",{needPasteProperties:!0}),(0,g.P8)(),(0,C.L)("ctrl+c"))},"command+d":()=>{x()||(MB.action("entry:duplicate:items",{shift:!1}),(0,C.L)("command+d"))},"ctrl+d":()=>{x()||(MB.action("entry:duplicate:items",{shift:!1}),(0,C.L)("ctrl+d"))},"command+shift+d":()=>{x()||(MB.action("entry:duplicate:items",{shift:!0}),(0,C.L)("command+shift+d"))},"ctrl+shift+d":()=>{x()||(MB.action("entry:duplicate:items",{shift:!0}),(0,C.L)("ctrl+shift+d"))},"command+shift+v":()=>{f(),(0,C.L)("command+shift+v")},"ctrl+shift+v":()=>{f(),(0,C.L)("ctrl+shift+v")},"command+x":()=>{x()||(MB.action("entry:cut:items"),(0,g.P8)(),(0,C.L)("command+x"))},"ctrl+x":()=>{x()||(MB.action("entry:cut:items"),(0,g.P8)(),(0,C.L)("ctrl+x"))},backspace:()=>{MB.action("entry:delete:selected-items"),MB.action("enter:comment:shortcut:del"),(0,C.L)("backspace")},del:()=>{MB.action("entry:delete:selected-items"),MB.action("enter:comment:shortcut:del"),(0,C.L)("delete")},"command+shift+l":()=>{MB.action("entry:toggle:lock"),(0,C.L)("command+shift+l")},"ctrl+shift+l":()=>{MB.action("entry:toggle:lock"),(0,C.L)("ctrl+shift+l")},"command+g":()=>{MB.action("entry:group:items"),(0,C.L)("command+g")},"ctrl+g":()=>{MB.action("entry:group:items"),(0,C.L)("ctrl+g")},"command+shift+g":()=>{MB.action("entry:ungroup:items"),(0,C.L)("command+shift+g")},"ctrl+shift+g":()=>{MB.action("entry:ungroup:items"),(0,C.L)("ctrl+shift+g")},"command+alt+l":()=>{MB.action("entry:align:items",{direction:"left"}),(0,C.L)("command+alt+l")},"ctrl+alt+l":()=>{MB.action("entry:align:items",{direction:"left"}),(0,C.L)("ctrl+alt+l")},"command+alt+c":()=>{MB.action("entry:align:items",{direction:"center"}),(0,C.L)("command+alt+c")},"ctrl+alt+c":()=>{MB.action("entry:align:items",{direction:"center"}),(0,C.L)("ctrl+alt+c")},"command+alt+r":()=>{MB.action("entry:align:items",{direction:"right"}),(0,C.L)("command+alt+r")},"ctrl+alt+r":()=>{MB.action("entry:align:items",{direction:"right"}),(0,C.L)("ctrl+alt+r")},"command+alt+t":()=>{MB.action("entry:align:items",{direction:"top"}),(0,C.L)("command+alt+t")},"ctrl+alt+t":()=>{MB.action("entry:align:items",{direction:"top"}),(0,C.L)("ctrl+alt+t")},"command+alt+m":()=>{MB.action("entry:align:items",{direction:"middle"}),(0,C.L)("command+alt+m")},"ctrl+alt+m":()=>{MB.action("entry:align:items",{direction:"middle"}),(0,C.L)("ctrl+alt+m")},"command+alt+b":()=>{MB.action("entry:align:items",{direction:"bottom"}),(0,C.L)("command+alt+b")},"ctrl+alt+b":()=>{MB.action("entry:align:items",{direction:"bottom"}),(0,C.L)("ctrl+alt+b")},"command+alt+h":()=>{MB.action("entry:distribute:items",{direction:"horizontal"}),(0,C.L)("command+alt+h")},"ctrl+alt+h":()=>{MB.action("entry:distribute:items",{direction:"horizontal"}),(0,C.L)("ctrl+alt+h")},"command+alt+u":()=>{MB.action("entry:distribute:items",{direction:"vertical"}),(0,C.L)("command+alt+u")},"ctrl+alt+u":()=>{MB.action("entry:distribute:items",{direction:"vertical"}),(0,C.L)("ctrl+alt+u")},"command+alt+up":()=>{MB.action("entry:items:forward"),(0,C.L)("command+alt+up")},"ctrl+alt+up":()=>{MB.action("entry:items:forward"),(0,C.L)("ctrl+alt+up")},"command+alt+down":()=>{MB.action("entry:items:backward"),(0,C.L)("command+alt+down")},"ctrl+alt+down":()=>{MB.action("entry:items:backward"),(0,C.L)("ctrl+alt+down")},"command+shift+up":()=>{MB.action("entry:items:send:front"),(0,C.L)("command+shift+up")},"ctrl+shift+up":()=>{MB.action("entry:items:send:front"),(0,C.L)("ctrl+shift+up")},"command+shift+down":()=>{MB.action("entry:items:send:back"),(0,C.L)("command+shift+down")},"ctrl+shift+down":()=>{MB.action("entry:items:send:back"),(0,C.L)("ctrl+shift+down")},"command+;":()=>{MB.action("entry:expand:all:screen"),(0,C.L)("command+;")},"ctrl+;":()=>{MB.action("entry:expand:all:screen"),(0,C.L)("ctrl+;")},"command+'":()=>{MB.action("entry:unExpand:all:screen"),(0,C.L)("command+''")},"ctrl+'":()=>{MB.action("entry:unExpand:all:screen"),(0,C.L)("ctrl+'")},"`":()=>{(0,C.L)("`")},"\xB7":()=>{(0,C.L)("`")},"[, ]":()=>{m()().isBefore("2021-11-12 23:59:59")&&MB.notice({text:I18N.Common.brackets_key_update_tips.replace("%key%",'<span class="key">'+((0,T.uF)()?"Ctrl":"\u2318")+"</span>")}),(0,C.L)("[, ]")},"command+[":()=>{MB.action("entry:toggle:left-nav-panel"),(0,C.L)("command+[")},"ctrl+[":()=>{MB.action("entry:toggle:left-nav-panel"),(0,C.L)("ctrl+[")},"command+]":()=>{MB.action("entry:toggle:right-panel"),(0,C.L)("command+]")},"ctrl+]":()=>{MB.action("entry:toggle:right-panel"),(0,C.L)("ctrl+]")},"command+p":()=>{MB.action("entry:preview:root-or-current:project"),(0,C.L)("command+p")},"ctrl+p":()=>{MB.action("entry:preview:root-or-current:project"),(0,C.L)("ctrl+p")},"command+s":()=>{MB.global.experienceLoginModalHelper("isSave")||MB.action("entry:start:saving"),(0,C.L)("command+s")},"ctrl+s":()=>{MB.global.experienceLoginModalHelper("isSave")||MB.action("entry:start:saving"),(0,C.L)("ctrl+s")},"command+k":()=>{MB.action(k.X.AIToggleOpenSemantic)},"ctrl+k":()=>{MB.action(k.X.AIToggleOpenSemantic)},1:()=>{MB.action("entry:number:key",{key:1}),(0,C.L)("1")},2:()=>{MB.action("entry:number:key",{key:2}),(0,C.L)("2")},3:()=>{MB.action("entry:number:key",{key:3}),(0,C.L)("3")},4:()=>{MB.action("entry:number:key",{key:"4"}),(0,C.L)("4")},5:()=>{MB.action("entry:number:key",{key:5}),(0,C.L)("5")},6:()=>{MB.action("entry:number:key",{key:6}),(0,C.L)("6")},7:()=>{MB.action("entry:number:key",{key:7}),(0,C.L)("7")},8:()=>{MB.action("entry:number:key",{key:8}),(0,C.L)("8")},"command+a":()=>{MB.action("entry:select:all"),(0,C.L)("command+a")},"ctrl+a":()=>{MB.action("entry:select:all"),(0,C.L)("ctrl+a")},esc:()=>{MB.action("entry:escape:key"),(0,C.L)("esc")},"command+z":()=>{MB.action("entry:undo-stack:undo"),(0,C.L)("command+z")},"ctrl+z":()=>{MB.action("entry:undo-stack:undo"),(0,C.L)("ctrl+z")},"command+shift+z":()=>{MB.action("entry:undo-stack:redo"),(0,C.L)("command+shift+z")},"ctrl+shift+z":()=>{MB.action("entry:undo-stack:redo"),(0,C.L)("ctrl+shift+z")},"command+=":()=>{MB.action("entry:design:zoom:in"),(0,C.L)("command+=")},"ctrl+=":()=>{MB.action("entry:design:zoom:in"),(0,C.L)("ctrl+=")},"command+numpad_add":()=>{MB.action("entry:design:zoom:in"),(0,C.L)("command+numpad_add")},"ctrl+numpad_add":()=>{MB.action("entry:design:zoom:in"),(0,C.L)("ctrl+numpad_add")},"command+-":()=>{MB.action("entry:design:zoom:out"),(0,C.L)("command+-")},"ctrl+-":()=>{MB.action("entry:design:zoom:out"),(0,C.L)("ctrl+-")},"command+numpad_subtract":()=>{MB.action("entry:design:zoom:out"),(0,C.L)("command+numpad_subtract")},"ctrl+numpad_subtract":()=>{MB.action("entry:design:zoom:out"),(0,C.L)("ctrl+numpad_subtract")},"command+0":()=>{MB.action("entry:set:scale",{scale:100}),(0,C.L)("command+0")},"ctrl+0":()=>{MB.action("entry:set:scale",{scale:100}),(0,C.L)("ctrl+0")},"command+numpad_0":()=>{MB.action("entry:set:scale",{scale:100}),(0,C.L)("command+numpad_0")},"ctrl+numpad_0":()=>{MB.action("entry:set:scale",{scale:100}),(0,C.L)("ctrl+numpad_0")},"command+1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,C.L)("command+1")},"ctrl+1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,C.L)("ctrl+1")},"command+numpad_1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,C.L)("command+numpad_1")},"ctrl+numpad_1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,C.L)("ctrl+numpad_1")},"command+2":()=>{MB.action("entry:design:zoom:selection"),(0,C.L)("command+2")},"ctrl+2":()=>{MB.action("entry:design:zoom:selection"),(0,C.L)("ctrl+2")},"command+numpad_2":()=>{MB.action("entry:design:zoom:selection"),(0,C.L)("command+numpad_2")},"ctrl+numpad_2":()=>{MB.action("entry:design:zoom:selection"),(0,C.L)("ctrl+numpad_2")},"command+alt+a":()=>{MB.action("entry:isShowSticky:toggle"),(0,C.L)("command+alt+a")},"ctrl+alt+a":()=>{MB.action("entry:isShowSticky:toggle"),(0,C.L)("ctrl+alt+a")},"command+f":()=>{MB.action("entry:findReplacePanel:toggle:show"),(0,C.L)("command+f")},"ctrl+f":()=>{MB.action("entry:findReplacePanel:toggle:show"),(0,C.L)("ctrl+f")},"command+alt+v":()=>{x()||(MB.action("entry:paste:items:properties"),(0,C.L)("command+alt+v"))},"ctrl+alt+v":()=>{x()||(MB.action("entry:paste:items:properties"),(0,C.L)("ctrl+alt+v"))},"command+b":()=>{MB.action("entry:set:text:attr:by:key",{attr:"boldType"}),(0,C.L)("command+b \u9009\u4E2D\u6574\u4F53")},"ctrl+b":()=>{MB.action("entry:set:text:attr:by:key",{attr:"boldType"}),(0,C.L)("command+b \u9009\u4E2D\u6574\u4F53")},"command+i":()=>{MB.action("entry:set:text:attr:by:key",{attr:"italic"}),(0,C.L)("command+i \u9009\u4E2D\u6574\u4F53")},"ctrl+i":()=>{MB.action("entry:set:text:attr:by:key",{attr:"italic"}),(0,C.L)("command+i \u9009\u4E2D\u6574\u4F53")},"command+u":()=>{MB.action("entry:set:text:attr:by:key",{attr:"underline"}),(0,C.L)("command+u \u9009\u4E2D\u6574\u4F53")},"ctrl+u":()=>{MB.action("entry:set:text:attr:by:key",{attr:"underline"}),(0,C.L)("command+u \u9009\u4E2D\u6574\u4F53")},"command+shift+s":()=>{MB.action("entry:set:text:attr:by:key",{attr:"lineThrough"}),(0,C.L)("command+shift+s \u9009\u4E2D\u6574\u4F53")},"ctrl+shift+s":()=>{MB.action("entry:set:text:attr:by:key",{attr:"lineThrough"}),(0,C.L)("command+shift+s \u9009\u4E2D\u6574\u4F53")},"command+shift+.":()=>{MB.action("entry:set:text:attr:by:key",{attr:"fontSize",action:"increase"}),(0,C.L)("command+shift+. \u9009\u4E2D\u6574\u4F53")},"ctrl+shift+.":()=>{MB.action("entry:set:text:attr:by:key",{attr:"fontSize",action:"increase"}),(0,C.L)("command+shift+. \u9009\u4E2D\u6574\u4F53")},"command+shift+,":()=>{MB.action("entry:set:text:attr:by:key",{attr:"fontSize",action:"decrease"}),(0,C.L)("command+shift+, \u9009\u4E2D\u6574\u4F53")},"ctrl+shift+,":()=>{MB.action("entry:set:text:attr:by:key",{attr:"fontSize",action:"decrease"}),(0,C.L)("command+shift+, \u9009\u4E2D\u6574\u4F53")},"shift+/":()=>{MB.action("entry:shortcut:undoable:items:set:attr:border")},i:()=>{r.w[(0,r.y)()]()(z=>{let{sRGBHex:S}=z;return MB.action("entry:i:key",{color:S})}),(0,C.L)("i")},"alt+1":()=>{MB.action("entry:directory:nav:key",{key:1}),(0,C.L)("alt+1")},"alt+2":()=>{MB.action("entry:directory:nav:key",{key:2}),(0,C.L)("alt+2")},c:()=>{MB.action("entry:keyC"),(0,C.L)("c")},e:()=>{MB.action("entry:elbow:isInElbowMode:toggle"),MB.action("entry:ST:STMode:disable"),MB.action("set:quick-create-widget",{widget:null})}},priority:l.zu.Normal,isGlobal:!1},b={keys:{"command+[":()=>{MB.action("entry:toggle:left-nav-panel"),(0,C.L)("command+[")},"ctrl+[":()=>{MB.action("entry:toggle:left-nav-panel"),(0,C.L)("ctrl+[")},"command+]":()=>{MB.action("entry:toggle:right-panel"),(0,C.L)("command+]")},"ctrl+]":()=>{MB.action("entry:toggle:right-panel"),(0,C.L)("ctrl+]")},esc:()=>{MB.action("entry:escape:key"),(0,C.L)("esc")},"command+=":()=>{MB.action("entry:design:zoom:in"),(0,C.L)("command+=")},"ctrl+=":()=>{MB.action("entry:design:zoom:in"),(0,C.L)("ctrl+=")},"command+numpad_add":()=>{MB.action("entry:design:zoom:in"),(0,C.L)("command+numpad_add")},"ctrl+numpad_add":()=>{MB.action("entry:design:zoom:in"),(0,C.L)("ctrl+numpad_add")},"command+-":()=>{MB.action("entry:design:zoom:out"),(0,C.L)("command+-")},"ctrl+-":()=>{MB.action("entry:design:zoom:out"),(0,C.L)("ctrl+-")},"command+numpad_subtract":()=>{MB.action("entry:design:zoom:out"),(0,C.L)("command+numpad_subtract")},"ctrl+numpad_subtract":()=>{MB.action("entry:design:zoom:out"),(0,C.L)("ctrl+numpad_subtract")},"command+0":()=>{MB.action("entry:set:scale",{scale:100}),(0,C.L)("command+0")},"ctrl+0":()=>{MB.action("entry:set:scale",{scale:100}),(0,C.L)("ctrl+0")},"command+numpad_0":()=>{MB.action("entry:set:scale",{scale:100}),(0,C.L)("command+numpad_0")},"ctrl+numpad_0":()=>{MB.action("entry:set:scale",{scale:100}),(0,C.L)("ctrl+numpad_0")},"command+1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,C.L)("command+1")},"ctrl+1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,C.L)("ctrl+1")},"command+numpad_1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,C.L)("command+numpad_1")},"ctrl+numpad_1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,C.L)("ctrl+numpad_1")},"command+2":()=>{MB.action("entry:design:zoom:selection"),(0,C.L)("command+2")},"ctrl+2":()=>{MB.action("entry:design:zoom:selection"),(0,C.L)("ctrl+2")},"command+numpad_2":()=>{MB.action("entry:design:zoom:selection"),(0,C.L)("command+numpad_2")},"ctrl+numpad_2":()=>{MB.action("entry:design:zoom:selection"),(0,C.L)("ctrl+numpad_2")},"command+f":()=>{MB.action("entry:findReplacePanel:toggle:show"),(0,C.L)("command+f")},"ctrl+f":()=>{MB.action("entry:findReplacePanel:toggle:show"),(0,C.L)("ctrl+f")},c:()=>{MB.action("entry:comment:toggle",{onlyView:!0}),MB.action("entry:observe:dom:size:update-viewport-rect"),MB.action(p.GO.toggleInspectMode(!1)),MB.action(p.GO.toggleHandMode(!1)),MB.action(p.GO.select([])),MB.action({type:"elbow:update",payload:{isInElbowMode:!1}}),MB.action({type:"entry:ST:STMode:disable"}),(0,C.L)("c")},"alt+1":()=>{MB.action("entry:directory:nav:key",{key:1}),(0,C.L)("alt+1")},"alt+2":()=>{MB.action("entry:directory:nav:key",{key:2}),(0,C.L)("alt+2")},"command+p":()=>{MB.action("entry:preview:root-or-current:project"),(0,C.L)("command+p")},"ctrl+p":()=>{MB.action("entry:preview:root-or-current:project"),(0,C.L)("ctrl+p")},"command+alt+a":()=>{MB.action("entry:isShowSticky:toggle"),(0,C.L)("command+alt+a")},"ctrl+alt+a":()=>{MB.action("entry:isShowSticky:toggle"),(0,C.L)("ctrl+alt+a")}},priority:l.zu.Normal,isGlobal:!1},h={keys:{esc:()=>{MB.action("entry:escape:key"),(0,C.L)("esc")},"command+=":()=>{MB.action("entry:design:zoom:in"),(0,C.L)("command+=")},"ctrl+=":()=>{MB.action("entry:design:zoom:in"),(0,C.L)("ctrl+=")},"command+numpad_add":()=>{MB.action("entry:design:zoom:in"),(0,C.L)("command+numpad_add")},"ctrl+numpad_add":()=>{MB.action("entry:design:zoom:in"),(0,C.L)("ctrl+numpad_add")},"command+-":()=>{MB.action("entry:design:zoom:out"),(0,C.L)("command+-")},"ctrl+-":()=>{MB.action("entry:design:zoom:out"),(0,C.L)("ctrl+-")},"command+numpad_subtract":()=>{MB.action("entry:design:zoom:out"),(0,C.L)("command+numpad_subtract")},"ctrl+numpad_subtract":()=>{MB.action("entry:design:zoom:out"),(0,C.L)("ctrl+numpad_subtract")},"command+0":()=>{MB.action("entry:set:scale",{scale:100}),(0,C.L)("command+0")},"ctrl+0":()=>{MB.action("entry:set:scale",{scale:100}),(0,C.L)("ctrl+0")},"command+numpad_0":()=>{MB.action("entry:set:scale",{scale:100}),(0,C.L)("command+numpad_0")},"ctrl+numpad_0":()=>{MB.action("entry:set:scale",{scale:100}),(0,C.L)("ctrl+numpad_0")},"command+1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,C.L)("command+1")},"ctrl+1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,C.L)("ctrl+1")},"command+numpad_1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,C.L)("command+numpad_1")},"ctrl+numpad_1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,C.L)("ctrl+numpad_1")}},priority:l.zu.Normal,isGlobal:!1},E={keys:{"command+[":()=>{MB.action("entry:toggle:left-nav-panel"),(0,C.L)("command+[")},"ctrl+[":()=>{MB.action("entry:toggle:left-nav-panel"),(0,C.L)("ctrl+[")},"command+]":()=>{MB.action("entry:toggle:right-panel"),(0,C.L)("command+]")},"ctrl+]":()=>{MB.action("entry:toggle:right-panel"),(0,C.L)("ctrl+]")},esc:()=>{MB.action("entry:escape:key"),(0,C.L)("esc")},"command+=":()=>{MB.action("entry:design:zoom:in"),(0,C.L)("command+=")},"ctrl+=":()=>{MB.action("entry:design:zoom:in"),(0,C.L)("ctrl+=")},"command+numpad_add":()=>{MB.action("entry:design:zoom:in"),(0,C.L)("command+numpad_add")},"ctrl+numpad_add":()=>{MB.action("entry:design:zoom:in"),(0,C.L)("ctrl+numpad_add")},"command+-":()=>{MB.action("entry:design:zoom:out"),(0,C.L)("command+-")},"ctrl+-":()=>{MB.action("entry:design:zoom:out"),(0,C.L)("ctrl+-")},"command+numpad_subtract":()=>{MB.action("entry:design:zoom:out"),(0,C.L)("command+numpad_subtract")},"ctrl+numpad_subtract":()=>{MB.action("entry:design:zoom:out"),(0,C.L)("ctrl+numpad_subtract")},"command+0":()=>{MB.action("entry:set:scale",{scale:100}),(0,C.L)("command+0")},"ctrl+0":()=>{MB.action("entry:set:scale",{scale:100}),(0,C.L)("ctrl+0")},"command+numpad_0":()=>{MB.action("entry:set:scale",{scale:100}),(0,C.L)("command+numpad_0")},"ctrl+numpad_0":()=>{MB.action("entry:set:scale",{scale:100}),(0,C.L)("ctrl+numpad_0")},"command+1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,C.L)("command+1")},"ctrl+1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,C.L)("ctrl+1")},"command+numpad_1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,C.L)("command+numpad_1")},"ctrl+numpad_1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,C.L)("ctrl+numpad_1")},"command+2":()=>{MB.action("entry:design:zoom:selection"),(0,C.L)("command+2")},"ctrl+2":()=>{MB.action("entry:design:zoom:selection"),(0,C.L)("ctrl+2")},"command+numpad_2":()=>{MB.action("entry:design:zoom:selection"),(0,C.L)("command+numpad_2")},"ctrl+numpad_2":()=>{MB.action("entry:design:zoom:selection"),(0,C.L)("ctrl+numpad_2")},"command+f":()=>{MB.action("entry:findReplacePanel:toggle:show"),(0,C.L)("command+f")},"ctrl+f":()=>{MB.action("entry:findReplacePanel:toggle:show"),(0,C.L)("ctrl+f")},"alt+1":()=>{MB.action("entry:directory:nav:key",{key:1}),(0,C.L)("alt+1")},"alt+2":()=>{MB.action("entry:directory:nav:key",{key:2}),(0,C.L)("alt+2")},"command+p":()=>{MB.action("entry:preview:root-or-current:project"),(0,C.L)("command+p")},"ctrl+p":()=>{MB.action("entry:preview:root-or-current:project"),(0,C.L)("ctrl+p")}},priority:l.zu.Normal,isGlobal:!1}},11154:(Et,ke,e)=>{"use strict";e.d(ke,{n:()=>l});var o=e(21676),m=e(40942),g=e(17084);const l=o.Ay.div.withConfig({displayName:"styles__StyledApp",componentId:"sc-1mzbbw4-0"})(["",";position:relative;overflow:hidden;display:flex;flex-direction:column;height:100%;color:",";font-size:12px;z-index:1;background-color:",";ol,ul{list-style:none;}.main-content{position:relative;flex:1;display:flex;justify-content:space-between;overflow:hidden;.mb-viewport{flex:1;display:flex;flex-direction:column;min-width:400px;}}.fixed_area{position:absolute;top:0;left:0;width:100%;}a{&.link-highlight,.link-highlight{background:#BAD7FB;}}&.isDeleteRulerLine{cursor:",";}"],m.c,C=>C.theme.color_text_L2,C=>C.theme.color_btn_secondary_active,g.M.rulerDelete)},2743:(Et,ke,e)=>{"use strict";e.d(ke,{Fw:()=>r,R_:()=>z});var o=e(51044),m=e(63686),g=e(72605),l=e(30797),C=e(89535),T=e(91416),A=e(21676),k=e(90643);const p=(0,A.Ay)(k.I$).withConfig({displayName:"styles__StyledColorThumbnail",componentId:"sc-1aky3bu-0"})(["width:16px;height:16px;.thumbnail{border-width:0;border-radius:1px;}&:before{width:16px;height:16px;left:-1px;top:-1px;border:solid 1px ",";cursor:pointer;overflow:hidden;}"],S=>S.theme.color_bg_border_02),r="color-btn-has-box",x=A.Ay.div.withConfig({displayName:"styles__StyledColorButton",componentId:"sc-1aky3bu-1"})(["display:flex;align-self:center;cursor:pointer;div.thumbnail-wrapper{border:solid 1px ",";}div.thumbnail-wrapper-multiple{width:16px;height:16px;display:flex;align-items:center;justify-content:center;color:",';position:relative;&:before{content:"";position:absolute;border-radius:2px;background-color:transparent;z-index:0;box-sizing:content-box;width:16px;height:16px;left:-1px;top:-1px;border:solid 1px ',";cursor:pointer;overflow:hidden;}span{height:100%;line-height:8px;}}&.","{width:24px;height:24px;display:flex;justify-content:center;align-items:center;}&.disabled{cursor:not-allowed;}"],S=>S.theme.color_bg_border_02,S=>S.theme.color_text_L3,S=>S.theme.color_bg_border_02,r);var f=e(86992),u=e(40472),b=e(7290),h=e(57464);const E=(0,m.Mz)([l.p$],S=>({newSelection:S})),N=(0,o.memo)(S=>{var _;let{className:y,attrPanel:a,color:$,colorPanelPosOffset:ce={offsetLeft:285,offsetTop:340},attr:de,enable:fe=!0,iconImg:se,index:J,onColorChange:ve,length:D,isShowMultipleColor:R=!1,isDefaultColor:V,onResetColor:O,pIsSolidColorOnly:Ce=!1,onMouseEnter:ae,onMouseLeave:q,onOpenColorPanel:K,onCloseColorPanel:xe}=S;const[te,H]=(0,o.useState)(!1),[re,be]=(0,o.useState)({left:0,top:0}),{newSelection:Le}=(0,g.d4)(gt=>E(gt)),Ve=(0,o.useRef)(null),Ne=(0,o.useRef)(""),We=(0,g.wA)(),ze=()=>{H(!1),We({type:"colorpanel:set:attr",payload:{attr:void 0}}),We({type:"colorpanel:set:attrPanel",payload:{attrPanel:void 0}}),xe&&xe()},ft=gt=>{if(!fe)return;if(te)return ze();const{offsetLeft:Je,offsetTop:Pt}=ce,{left:bt,top:qt,height:pt,right:$t}=gt.target.getBoundingClientRect(),go={left:bt>=276?Math.max(bt-Je>>0,0):$t+20,top:Math.max(qt+pt/2-Pt>>0,56)};We({type:"colorpanel:set:attr",payload:{attr:de}}),We({type:"colorpanel:set:attrPanel",payload:{attrPanel:a}}),be(go),H(!0),Ne.current=$,K&&K()},mt=Le.length>0?((_=sdkStore.getHotItem(Le[0]))==null?void 0:_.hotAttr)||{}:{},i=(0,T.$8)($,{w:mt.w,h:mt.h});return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(x,{className:y,type:se&&se.src?"":"color-btn",onMouseEnter:ae,onMouseLeave:q,children:se&&se.src?(0,h.jsx)("div",{ref:Ve,style:{display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",width:se.width||16,height:se.height||16,marginLeft:se.marginLeft||0,marginRight:se.marginRight||0,marginTop:se.marginTop||0,marginBottom:se.marginBottom||0,borderRadius:se.borderRadius||void 0},onMouseDown:ft,children:(0,h.jsx)("img",{src:se.src,style:{width:"100%",height:"100%"}})}):R?(0,h.jsx)("div",{className:"thumbnail-wrapper-multiple",children:(0,h.jsx)("span",{children:"..."})}):(0,h.jsx)(p,{ref:Ve,color:i,attr:de,index:J,handleColorThumbnailMouseDown:ft})}),te&&(0,h.jsx)(f.Fo,{onSetIsColorPanelOpened:H,position:re,onSetPosition:be,color:$,attr:de,index:J,onColorChange:ve,length:D,isDefaultColor:V,onResetColor:O,pIsSolidColorOnly:Ce,colorThumbnailEle:Ve,onCloseColorPanel:ze})]})}),z=(0,o.memo)(S=>{let{attr:_,attrPanel:y,onChange:a,color:$,toolTips:ce,direction:de,pIsSolidColorOnly:fe=!1,iconImg:se,disabled:J,...ve}=S;const D=(0,o.useMemo)(()=>_!=="fill"?Array.isArray($)?(0,T.dT)($[0]):$===void 0?void 0:(0,T.dT)($):$,[_,$]),R=(0,u.qK)((O,Ce)=>{if(_!=="fill")if(Array.isArray($)){const ae=$.slice();ae.splice(1,1,(0,T.wT)(O)),a(ae,_,Ce)}else a(O.solidColor,_,Ce);else a(O,_,Ce)});if($===void 0||D===void 0)return null;let V=!0;return J!==void 0&&(V=!J),J?(0,h.jsx)(b.C,{size:24,name:"font/disabled_color_button"}):(0,h.jsx)(C.A,{isShowTips:!!ce,content:ce,direction:de,children:(0,h.jsx)(N,{attr:_,attrPanel:y,color:D,index:0,length:1,onColorChange:R,enable:!0,pIsSolidColorOnly:fe,iconImg:se,...ve})})})},86992:(Et,ke,e)=>{"use strict";e.d(ke,{Fo:()=>q,JL:()=>Ce,um:()=>O});var o=e(51044),m=e(63686),g=e(72605),l=e(26114),C=e(2302),T=e(83573),A=e(19418),k=e(28149),p=e(90643),r=e(17599),x=e(83931),f=e(79461),u=e(47143),b=e(78570),h=e(30797),E=e(91416),N=e(54909),z=e(78647),S=e(29601),_=e(72866),y=e(9376),a=e(57464);const $=K=>K.colorpanel.currentSelect,ce=K=>K.colorpanel.isShowColorList,de=K=>K.colorpanel.colorInputOption,fe=K=>K.colorpanel.isEyedroppedOpen,se=K=>K.colorpanel.historyColors,J=K=>K.colorpanel.favoriteColors,ve=K=>K.colorpanel.colorPickerListener,D=()=>{},R=()=>{let K=!1,xe=null;return te=>{try{if(K){var H;K=!1,(H=xe)==null||H.abort("abort EyeDropper already opened")}else K=!0,xe=new AbortController,MB.action("colorpanel:set:eyedropperStatus",{isEyedroppedOpen:!0}),new window.EyeDropper().open({signal:xe.signal}).then(re=>{te(re),MB.action("colorpanel:set:eyedropperStatus",{isEyedroppedOpen:!1})}).catch(re=>!1).finally(()=>{K=!1,MB.action("colorpanel:set:eyedropperStatus",{isEyedroppedOpen:!1})})}catch(re){const{name:be,version:Le}=(0,y.VK)();MB.action("colorpanel:set:eyedropperStatus",{isEyedroppedOpen:!1}),["Chrome","Edge"].includes(be)&&Le<=95||be==="Opera"&&Le<=81?MB.notice({text:"\u5F53\u524D\u6D4F\u89C8\u5668\u7248\u672C\u4E0D\u652F\u6301\u53D6\u8272\u5668"}):MB.notice({text:"\u5F53\u524D\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u53D6\u8272\u5668"})}}},V=()=>{let K=!1,xe=null;const te=o.memo(Le=>{let{colorPickedCallback:Ve,setIsNativeEyedropperComponentClosed:Ne,openDownloadPluginModal:We,event:ze}=Le;const[ft,mt]=(0,o.useState)(!0);(0,o.useEffect)(()=>(xe=mt,()=>{xe=null}),[]),(0,o.useEffect)(()=>{ft&&(MB.action("colorpanel:set:eyedropperStatus",{isEyedroppedOpen:!0}),Ne==null||Ne(!1))},[ft]);const i=Je=>{Ve({sRGBHex:Je})},gt=(0,o.useCallback)(()=>{K=!1,mt(!1),Ne==null||Ne(!0),MB.action("colorpanel:set:eyedropperStatus",{isEyedroppedOpen:!1})},[mt]);return(0,o.useEffect)(()=>{const Je=Pt=>{Pt&&Pt.key!=="Escape"||gt()};return document.addEventListener("keydown",Je),()=>{document.removeEventListener("keydown",Je)}},[gt]),(0,a.jsx)(f.A,{open:ft,event:ze,onClose:gt,onChange:i,handleOpenDownloadPluginModal:We})});let H=null;const re=document.createElement("div");document.body.appendChild(re),H=l.createRoot(re);const be=()=>MB.action("modal:update:state",{colorPickerDownloadModal:{isOpen:!0}});return(Le,Ve,Ne)=>{try{if(K)K=!1,xe&&xe(!1);else{var We;if(!window.mbRequestMessage){be();return}K=!0,xe&&xe(!0),(We=H)==null||We.render((0,a.jsx)(te,{colorPickedCallback:Le,setIsNativeEyedropperComponentClosed:Ne,openDownloadPluginModal:be,event:Ve}))}}catch(ze){MB.notice({text:"\u5F53\u524D\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u53D6\u8272\u5668"}),console.log(ze)}}},O=R(),Ce=V(),ae=(0,m.Mz)([h.x$,u.$S,$,de,se,J,ve,fe,b.O4,b.AM,b.nu,ce,u.X_,u.ER],(K,xe,te,H,re,be,Le,Ve,Ne,We,ze,ft,mt,i)=>{var gt;const Je={scale:mt/100,size:xe,offset:i},Pt=K[0]?(0,_.Oj)(K[0].key):null;let bt=((gt=K[0])==null?void 0:gt.widget)||{};bt={cid:bt.cid,name:bt.name,w:bt.width,h:bt.height,x:bt.left,y:bt.top};const qt=re.map($t=>(0,E.jA)($t,{w:1,h:1})),pt=be.map($t=>(0,E.jA)($t,{w:1,h:1}));return{widgetProps:bt,boundingBox:Pt,currentSelect:te==="history"?"favorite":te,colorInputOption:H,isEyedroppedOpen:Ve,historyColors:qt,favoriteColors:pt,colorPickerListener:Le,theme:Ne,useNativeEyedropper:We,colorPanelMode:ze,isShowColorList:ft,viewport:Je}}),q=K=>{let{color:xe,attr:te,index:H,onColorChange:re,length:be,isDefaultColor:Le,onResetColor:Ve,pIsSolidColorOnly:Ne=!1,onSetIsColorPanelOpened:We,position:ze,onSetPosition:ft,colorThumbnailEle:mt,onCloseColorPanel:i}=K;const{isShowColorList:gt,isEyedroppedOpen:Je,widgetProps:Pt,viewport:bt,boundingBox:qt,colorInputOption:pt,currentSelect:$t,historyColors:go,favoriteColors:Co,colorPickerListener:Tt,theme:mo,useNativeEyedropper:jo,colorPanelMode:Kt}=(0,g.d4)(Lo=>ae(Lo)),Ft=te!=="fill"||Ne,nt=(0,o.useRef)(null);(0,o.useEffect)(()=>()=>{nt.current&&clearTimeout(nt.current)},[]);const Rt=()=>!Kt||Kt==="panel"?1:0,yt=Lo=>{const Ao=Lo.target,xt=document.querySelector(".color-input-wp")||null;if(!Ao.closest(".--mb--color-picker")&&!Ao.closest(".gradient-control-bar")&&xt!=null&&xt.classList.contains("is-active")){Lo.stopPropagation(),xt.classList.remove("is-active"),xt.blur&&(xt.blur(),nt.current&&clearTimeout(nt.current),nt.current=setTimeout(()=>{i()}));return}if(mt.current.contains(Ao))return Lo.preventDefault();Ao.closest(".header-btn")&&Lo.preventDefault();const Ut=Ao.closest(".hover-add")||Ao.closest("#circle1")||Ao.closest("#circle2")||Ao.closest("#circle3")||Ao.closest(".color-stop");if(Ao.closest("#mb-toolbar")||Ao.closest("#left-slide-panel")||Ao.closest("#right-slide-panel")||Ao.closest("[type=color-btn]")||Ao.closest("#screens")&&!Ut)return Lo.stopPropagation(),i()},Jt=()=>{var Lo;const Ao=((Lo=document.getElementById("screens"))==null?void 0:Lo.getBoundingClientRect())||{width:0,height:0};return new T.h().scale(bt.scale,bt.scale).translate(C.Z.xy(Ao.width/2,Ao.height/2)).translate(C.Z.xy(bt.offset.x,bt.offset.y))},vo=(0,g.wA)(),Yo=Lo=>{Lo.colorDropdownOption?vo({type:"colorpanel:set:currentSelect",payload:{currentSelect:Lo.colorDropdownOption}}):Lo.colorInputOption?vo({type:"colorpanel:set:colorInputOption",payload:{colorInputOption:Lo.colorInputOption}}):Lo.favoriteColors?vo({type:"entry:update:favorite-colors",payload:{favoriteColors:JSON.stringify(Lo.favoriteColors.map(Ao=>(0,E.sD)(Ao)))}}):Lo.historyColors&&vo({type:"entry:update:history-colors",payload:{historyColors:JSON.stringify(Lo.historyColors.map(Ao=>(0,E.sD)(Ao)))}})},Ho=Lo=>{Lo.colorPickerListener&&vo({type:"colorpanel:set:colorPickerListener",payload:{colorPickerListener:Lo.colorPickerListener}})};let kt=!1;const[Ze,it]=(0,o.useState)(!0),st=async Lo=>{if((0,y.b8)()){let Ao=null;try{Ao=window.MB_DESKTOP_GET_COLOR_HEX_RGB||window.parent.MB_DESKTOP_GET_COLOR_HEX_RGB}catch(xt){console.warn(xt)}if((0,y.uF)()&&jo)new window.EyeDropper().open().then(xt=>{let{sRGBHex:Ut}=xt;return Tt(x.Q.hex(Ut))});else{if(!Ao||kt)return;kt=!0;try{Ao().then(xt=>{if(!xt)return;const{hex:Ut}=(0,k.H0)(xt);Tt(x.Q.hex(Ut))},xt=>console.warn(xt)).then(()=>kt=!1)}catch(xt){console.warn(xt),kt=!1}}}else{if(ENV.IS_WONDER_SHARE){window.EyeDropper&&O(Ao=>{let{sRGBHex:xt}=Ao;return Tt(x.Q.hex(xt))});return}if((0,y.cX)()){window.EyeDropper&&O(Ao=>{let{sRGBHex:xt}=Ao;return Tt(x.Q.hex(xt))});return}if(!window.chrome){vo({type:"modal:update:state",payload:{colorPickerDownloadModal:{isOpen:!0}}});return}if(window.mbSendMessage){Ce(Ao=>{let{sRGBHex:xt}=Ao;return Tt(x.Q.hex(xt))},Lo,it);return}vo({type:"modal:update:state",payload:{colorPickerDownloadModal:{isOpen:!0}}})}},dt=(Lo,Ao,xt)=>{re((0,E.F0)(Lo),Ao),Lo.type!==r.LA.Solid&&MB.commonGuideHelper.checkGuideToBeShown(z.c.GUIDE_GRADIENT_FILL)&&!MB.commonGuideHelper.checkGuideHasShown(z.c.GUIDE_GRADIENT_FILL)&&(MB.commonGuideHelper.closeGuide(z.c.GUIDE_GRADIENT_FILL),MB.commonGuideHelper.markGuideAsRead(z.c.GUIDE_GRADIENT_FILL))},Ot=(0,E.$8)(xe,{w:Pt.w,h:Pt.h}),Ct=Lo=>{vo({type:"entry:update:color_panel_mode",payload:{mode:Lo===1?"panel":"space"}})},wo=Lo=>{vo({type:"colorpanel:set:isShowColorList",payload:{isShowColorList:Lo}})},ln=()=>{sdkStore.combineMergeMark("color-panel-change")},Io=()=>{sdkStore.combineMerge("color-panel-change")};return(0,o.useEffect)(()=>(MB.f.isInSetting=!0,()=>{MB.f.isInSetting=!1}),[]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(p.SP,{locale:(0,S.w)(),theme:mo,themeColor:N.f.color_proto.value_light,widgetProps:Pt,historyColors:go,favoriteColors:Co,currentSelect:$t,colorInputOption:pt,colorPickerEnabled:!1,isEyedropperOpen:Je,nativeEyedropperIsOpen:Ze,toggleColorPicker:st,saveColorPreference:Yo,containerEle:document.querySelector("#screens"),viewport:bt,screenOffset:C.Z.xy(0,48),contextTransform:Jt(),boundingBox:qt,controlBarInteract:D,setInteraction:Ho,isDefaultColor:Le,onResetColor:Ve,colorObj:Ot,attr:te,position:ze,isSolidColorOnly:Ft,isHideBlendMode:!0,index:be-H,onClose:i,onPositionChanged:ft,onColorSave:dt,defaultTab:Rt(),onChangeTab:Ct,onChangeShowColorList:wo,isShowColorList:gt,onMouseDownCallback:ln,onMouseUpCallback:Io}),(0,a.jsx)(A.A,{target:document,onMouseDown:(0,A.t)(yt,{capture:!0})})]})}},39506:(Et,ke,e)=>{"use strict";e.d(ke,{w:()=>g,y:()=>l});var o=e(9376),m=e(86992);const g={electron:()=>m.um,wondershare:()=>m.um,mac:()=>m.um,windows:()=>m.JL},l=()=>(0,o.b8)()?"electron":ENV.IS_WONDER_SHARE?"wondershare":(0,o.cX)()?"mac":"windows"},91643:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>l});var o=e(74059),m=e(51044),g=e(57464);class l extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"setInputRef",T=>this.$input=T),(0,o.A)(this,"click",()=>{this.$input.value="",this.$input.setAttribute("value",""),this.$input.click()}),(0,o.A)(this,"handleFileChange",T=>{this.props.onChange(T.target.files)})}render(){return(0,g.jsx)("input",{hidden:!0,multiple:!0,type:"file",accept:"image/gif, image/jpg, image/jpeg, image/png, image/svg+xml",ref:this.setInputRef,onChange:this.handleFileChange})}}},49269:(Et,ke,e)=>{"use strict";e.d(ke,{I:()=>m,a:()=>g});var o=e(72907);const m={request401:"request401",requestVersion403:"requestVersion403",requestVersionRO403:"requestVersionRO403",requestVersion404:"requestVersion404"},g=l=>{const{type:C}=l.data;switch(C){case m.request401: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,isHTML:!1}).then(()=>(0,o.AG)());break;case m.requestVersion403:MB.global.popupHelper.alertAsyncBlocked({title:I18N.dModule.cant_edit,confirmText:I18N.dModule.exit_editing,desc:I18N.dModule.cant_edit_desc,isHTML:!1}).then(()=>MB.global.onBackButtonClick());break;case m.requestVersionRO403:MB.global.popupHelper.alertAsync({title:I18N.dModule.project_share_p_changed,confirmText:I18N.dModule.confirm,desc:I18N.dModule.project_share_p_changed_desc}).then(()=>location.reload());break;case m.requestVersion404:MB.global.popupHelper.alertAsync({title:I18N.dModule.version_deleted,confirmText:I18N.dModule.confirm,desc:I18N.dModule.version_deleted_desc}).then(()=>location.reload());break;default:break}}},49390:(Et,ke,e)=>{"use strict";e.d(ke,{CF:()=>k,GF:()=>l,ON:()=>r,b4:()=>x,cm:()=>T,jD:()=>A});var o=e(63555),m=e(51794),g=e(36892);const l=f=>{const u={};f.forEach(h=>{const E=sdkStore.getHotItem(h),N=E.sup;u[N]?u[N].cids.push(h):u[N]={gid:N,cids:[h],siblings:sdkStore.getSubHotItemList(E.sup).filter(S=>!(0,g.yT)(S.hotAttr.type))}});const b=[];return Object.entries(u).forEach(h=>{let[,E]=h;return b.push(E)}),b},C=f=>f.sort((u,b)=>u.data.zIndex-b.data.zIndex),T=f=>{const u=sdkStore.locUpRBPageKey(f[0]),b={};let h=0;sdkStore.getHotItem(f[0]).hotAttr.type!==o.x.Canvas&&(h=(0,m.ZS)(f[0])),h===0?f.forEach(N=>{const z=sdkStore.getHotItem(N),S=z.sup;b[S]?b[S].cids.push(N):b[S]={gid:S,cids:[N],siblings:sdkStore.getSubHotItemList(z.sup).filter(y=>y.hotAttr.type===o.x.WSticky?(0,m.ZS)(y.key)===0:y.hotAttr.type===o.x.Canvas)}}):f.forEach(N=>{const z=(0,m.kP)(N),S=b[z],_=(0,m.iq)(u,z);if(S)b[z].cids.push(N);else{const y=[];for(const a of _)y.push(sdkStore.getSubHotItemList(N).find($=>$.key===a.key));b[z]={gid:z,cids:[N],siblings:y}}});const E=[];return Object.entries(b).forEach(N=>{let[,z]=N;return E.push(z)}),E},A=(f,u,b)=>{const h=JSON.parse(JSON.stringify(u)),E=(z,S)=>{for(const _ of z){if(_.cid===S.sup)return _.subFolder=_.subFolder||[],_.subFolder.unshift(S),!0;if(_.subFolder&&_.subFolder.length>0&&E(_.subFolder,S))return!0}return!1};E(h,f)||h.unshift(f);const N=function(z,S){return S===void 0&&(S=0),C(z).map((y,a)=>{const $=S+a;return y.data.zIndex!==$&&(b(y.cid,{zIndex:$}),y={...y,data:{...y.data,zIndex:$}}),y.subFolder&&y.subFolder.length>0&&(y.subFolder=N(y.subFolder,$+1)),y})};return N(h)},k=(f,u,b)=>{const h=[...f,...u];return C(h.map((E,N)=>E.data.zIndex!==N?(b(E.cid,{zIndex:N}),{...E,data:{...E.data,zIndex:N}}):E))},p=f=>f.every(b=>{let{position:h}=b;return!isNaN(h)})?f.sort((b,h)=>b.position-h.position):f.sort((b,h)=>h.created_at-b.created_at),r=(f,u,b)=>{const h=[f,...u];return p(h.map((E,N)=>E.position!==N?(b(E.cid,{position:N}),{...E,position:N}):E))},x=(f,u,b)=>{const h=[f,...u];return p(h).map((N,z)=>N.position!==z?(b(N.cid,{position:z}),{...N,position:z}):N)}},72522:(Et,ke,e)=>{"use strict";e.d(ke,{T:()=>uu});var o=e(47143),m=e(61535),g=e(95230),l=e(63555),C=e(66976),T=e(20141),A=e(66303);const k=g.I,p={"entry:move:canvas":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const{dx:M=0,dy:j=0}=I,Y=B(),oe=(0,o.ER)(Y),ie={x:oe.x+M,y:oe.y+j};v({type:"design:set:canvas:offset",payload:{offset:ie}}),v({type:"entry:update:ruler"})},"entry:design:zoom:in":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,o.X_)(v),M=k.findIndex(Y=>Y>I),j=k[M]||k[k.length-1];B({type:"entry:set:scale",payload:{scale:j}})},"entry:design:zoom:out":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,o.X_)(v),M=k.findIndex(Y=>Y>=I),j=k[M-1]||k[0];B({type:"entry:set:scale",payload:{scale:j}})},"entry:design:zoom:widget":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{hotItem:I,mindKey:M}}=G;const j=B(),Y=(0,m.UV)(j);if(!I)return;const oe=document.querySelector('#canvas .group-list [data-cid="'+I.key+'"]')||document.querySelector('#mb-panel-edit-list [data-cid="'+I.key+'"]'),ie=document.querySelector(".main-content");if(!oe||!ie)return;const le=oe.getBoundingClientRect(),ue=ie.getBoundingClientRect(),{leftSidePanelWidth:Te}=(0,A._)(!1),De=g.xM,$e=ue.left+Te,Qe=ue.top,qe=ue.width-Te-De,ut=ue.height,Bt=le.left>=$e&&le.right<=$e+qe,ao=le.top>=Qe&&le.bottom<=Qe+ut;if(!Bt||!ao){let ko=0,vn=0,Hn=0,os=0;if(I.hotAttr.type===l.x.WMindNode&&M){var To;const[Ts,Js]=(0,C.C0)(sdkStore,M,I.hotAttr),ki=Y.getNode(M),js=Y.getNode(I.key),ai=(To=ki.children[0])==null?void 0:To.children.find(or=>or.widget.isRoot),qi=(0,T.AT)(ai);ko=js.mindNodeSize.w,vn=js.mindNodeSize.h,Hn=Ts+qi.x+js.mindNodePosition.x,os=Js+qi.y+js.mindNodePosition.y}else{const[Ts,Js,ki,js]=(0,C.C0)(sdkStore,I.key,I.hotAttr);ko=ki-Ts,vn=js-Js,Hn=Ts,os=Js}const hn=(0,o.X_)(j)/100,Rn=-ko/2-Hn,Ln=-vn/2-os,Ms=Rn*hn,pi=Ln*hn;v({type:"current:update:state",payload:{currentScreenOriginOffset:{x:Ms,y:pi}}}),v({type:"design:set:canvas:offset",payload:{offset:{x:Ms,y:pi}}}),v({type:"entry:update:ruler"})}}};var r=e(76713),x=e.n(r),f=e(36521),u=e(78647),b=e(11891),h=e(14517),E=e(98386),N=e(76347),z=e(6637),S=e(2302),_=e(72428),y=e(83012),a=e(73734),$=e(30797),ce=e(35332),de=e(42627);const fe={name:"wImage",zIndex:20,r:0,w:500,h:176,opacity:1,isLock:!1,isVisible:!0,isLockAspect:!0,fixPosTo:"none",stickyOffset:null,interactions:[],animation:{aniName:"none",aniDelay:0,aniDuration:"1s",aniCount:1},fill:{fillIsVisible:!1,fill:"solid",solidColor:3857049087},border:{bdrIsVisible:!1,bdrColor:3149642751,bdrWidth:1,bdrStyle:"solid"},borderRadius:0,shadow:{type:"box_shadow",shadowIsVisible:!1,shadowColor:102,offsetX:0,offsetY:2,blurRadius:6,spreadRadius:0},flip:{flipH:!1,flipV:!1}},se={name:"wImage",zIndex:20,r:0,w:380,h:134,opacity:1,isLock:!1,isVisible:!0,isLockAspect:!0,fixPosTo:"none",stickyOffset:null,interactions:[],animation:{aniName:"none",aniDelay:0,aniDuration:"1s",aniCount:1},fill:{fillIsVisible:!1,fill:"solid",solidColor:3857049087},border:{bdrIsVisible:!1,bdrColor:3149642751,bdrWidth:1,bdrStyle:"solid"},borderRadius:0,shadow:{type:"box_shadow",shadowIsVisible:!1,shadowColor:102,offsetX:0,offsetY:2,blurRadius:6,spreadRadius:0},flip:{flipH:!1,flipV:!1}};var J=e(98310),ve=e(78570),D=e(88711);const R=Z=>setTimeout(()=>MB.commonGuideHelper.tryToShowGuide(u.c.GUIDE_NOVICE_V9_2408_STEP_1),Z),V=()=>{if(MB.commonGuideHelper.checkGuideHasShown(u.c.GUIDE_NOVICE_V9_2408_STEP_1))return null;const Z=document.querySelector("."+u.c.GUIDE_NOVICE_V9_2408_STEP_1),G=document.querySelector(".widget-panel-container");if(!Z||!G)return null;Z.getAttribute("data-cid")==="\u6D41\u7A0B"?setTimeout(()=>(0,D._)(Z,G,()=>R(200)),50):R(200)};var O=e(48141);const Ce={"entry:initial:guide:type":async Z=>{let{getState:G,dispatch:B}=Z;const v=G(),{isExperience:I,isLoggedExperience:M}=(0,o.W4)(v);if(I||M)return;const j=(0,o.HW)(v),Y=(0,o.wA)(v);if((0,ve.MZ)(v)==="recommend"){var le;!(0,y.XM)()&&(le=(0,y.yX)())!=null&&le.isCompleted&&setTimeout(()=>V(),200)}if(x()(j.created_at).isAfter("2023-08-17")&&!MB.commonGuideHelper.checkGuideHasShown(u.c.ENTER_DESIGN_PROTO_IN_SPACE_CREATED_DAY)){const De=Y?Y.created_at:j.solo_active_date;x()().isSame(De,"day")&&MB.commonGuideHelper.markGuideAsRead(u.c.ENTER_DESIGN_PROTO_IN_SPACE_CREATED_DAY)}const ue=(0,h.jN)(),Te=(0,f.Yt)(b.d,!0,f.qW.Boolean);if(ue!=null&&ue.isCompleted){Te||B({type:"update:taskList:isHide",payload:{isHide:!1}}),ue!=null&&ue.isShowTaskList&&B({type:"entry:show:taskList"});return}else ue!=null&&ue.isToShow&&(B({type:"update:taskList:isHide",payload:{isHide:!1}}),B({type:"update:taskList:isCollapse",payload:{isCollapse:!0}}));(0,O.iX)(),(0,y.rB)(v)},"entry:prepare:novice:guide:screen:data":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{mtResourceCid:I,marketTemplateKey:M,sceneTag:j}}=G;const Y=B(),oe=(0,o.X_)(Y),ie=(0,o.Ur)(Y),ue=(0,E.fm)(Y).get(I);if(!ue||!M)return;let Te=0,De=!0;const $e=(0,de.VC)(j)==="PC";M.forEach(Qe=>{const qe=[Qe],{w:ut,h:Bt}=(0,N.lY)({sub:qe},ue);let{left:ao,top:To}=(0,z.u5)({width:ut,height:Bt,scale:oe});$e?(To+=Te,Te+=Bt+80):(ao+=Te,Te+=ut+80);const ko=S.Z.xy(ao,To),vn=ie==null?void 0:ie.cid,Hn=ue.saveSubtree(qe),os=(0,_.BB)({data:Hn,worldPos:ko,keyRndSup:vn,currentPageKey:vn});De&&(v({type:"entry:select:items",payload:{cids:os}}),De=!1),v({type:"entry:rebuild:screen-widget-tree"}),v({type:"entry:refresh:link-list"})}),v({type:"entry:zoom:fit:scale:offset"}),v({type:"entry:show:guide:popup:panel",payload:{isGuidePC:$e}})},"entry:show:guide:popup:panel":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{isGuidePC:I}}=G;const M=(0,$.Z9)(B());if(!M||M.length===0)return;const{x:j,y:Y,width:oe,height:ie}=M[0],le={left:j+oe/2-10,top:Y+ie/2},ue={left:j+oe/2-650,top:Y+ie/2+100},Te=(0,ce.cF)("imgtip"),De={key:Te,hotAttr:{type:l.x.WImage,x:I?ue.left:le.left,y:I?ue.top:le.top,...I?fe:se,image:{imageFilter:"",imageClipType:"none",imageRectAspectRatio:3.15,imageRectR:0,imageRectCenterX:I?222.2:168.87,imageRectCenterY:I?80.83:61.43,imageRectWidth:I?506.46:384.91,imageRectHeight:I?161.62:122.83,imageRectOriginalWidth:780,imageRectOriginalHeight:248,imageFillType:"stretch",imageRef:(0,J.q4)("\u5F15\u5BFC\u56FE\u7247","https://cdn.modao.cc/app_guide.png").key}},sub:[],sup:M[0].key};sdkStore.updateHotItem(De);const $e=[{key:Te,hotAttr:{...De.hotAttr}}];v({type:"entry:widget:change",payload:{flatChgList:$e,isCreateWidget:!0,shouldReBuildTree:!0}})},"entry:skip:novice:guide":async Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,o.Ur)(v),M=sdkStore.findAllTypeUnder(I==null?void 0:I.cid,"rResCanvas");if((M==null?void 0:M.length)!==0)return;const j=(0,a.gu)({type:l.x.Canvas,screen:I,attrs:{width:0,height:0}});B({type:"entry:batch:create:items",payload:{data:[{items:[j],width:j.w,height:j.h}],isSkipUpdateGuides:!0}}),B({type:"entry:zoom:fit:scale:offset"})},"entry:update:novice:guide:and:task":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{guideType:I,taskType:M}}=G;I&&(0,h.EG)(I),M&&v({type:"entry:update:guide:task",payload:{taskType:M}})},"entry:move:screen:right":Z=>{var G,B;let{getState:v,dispatch:I}=Z;const M=v(),j=(0,o.X_)(M),Y=(0,o.ER)(M),oe=(0,o.eo)(M),le=(G=(B=sdkStore.findAllTypeUnder(oe,l.x.Canvas).pop())==null?void 0:B.key)!=null?G:null;if(le===null)return;const ue=sdkStore.getHotAABB(le),[Te,De]=ue,Qe=(De-Te)*(j/100),qe={x:Y.x+Qe,y:Y.y};I({type:"design:set:canvas:offset",payload:{offset:qe}})}};var ae=e(46795),q=e(72907);const K=async()=>{let Z=null;try{const G=await(0,ae.DE)("/api/library/v4/workspace_labels");G!=null&&G.keywords&&(Z=G==null?void 0:G.keywords)}catch(G){(0,q.$r)()}return Z},xe=async()=>{let Z=[];try{const G=await(0,ae.DE)("/api/web/v3/configuration/square_search_keywords");G!=null&&G.keywords&&(Z=G==null?void 0:G.keywords.split(/[,,]/))}catch(G){(0,q.$r)()}return Z};var te=e(36875),H=e(46664),re=e(55561),be=e(48411);const Le={"entry:init:hotKeyWords":async Z=>{let{dispatch:G,getState:B}=Z;const v=B();if(!(0,E.t$)(v))try{const M=await xe(),j=M.length>0?M.slice(0,5):[];G({type:"update:popups:state",payload:{hotKeyWords:j}}),G({type:"resources:update:popupLoaded",payload:{isHotKeyWordsLoaded:!0}})}catch(M){(0,te.wd)("\u53D1\u751F\u4E25\u91CD\u62A5\u9519"),(0,te.Cp)(M)}},"entry:init:design:configurations":async Z=>{let{dispatch:G,getState:B}=Z;const v=B();if((0,E.RD)(v))return;const M=(0,ve.MZ)(v);try{const j=await(0,H.dC)(),Y=(0,be.nh)(),oe={...j,...Y};(0,re.IP)(j),G({type:"widget-panel:update:state",payload:{sceToPLabelMap:oe}});const ie=await K();let le=[];ie!=null&&ie.screen_list&&(le=Object.keys(ie==null?void 0:ie.screen_list)),G({type:"page-panel:update:state",payload:{libraryFilterWords:le}}),G({type:"resources:update:popupLoaded",payload:{isFilterWordsLoaded:!0}})}catch(j){(0,te.wd)("\u53D1\u751F\u4E25\u91CD\u62A5\u9519"),(0,te.Cp)(j)}}};var Ve=e(84470),Ne=e(20029),We=e(39562),ze=e(14495),ft=e(1163),mt=e(96851),i=e(76445),gt=e(59742),Je=e(15400),Pt=e(13974),bt=e(72866),qt=e(73518),pt=e.n(qt),$t=e(35473),go=e(86310);const Co={"entry:screenContainer:selecting":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{event:I}}=G;const{target:M}=I;if(M.closest(".selection-handler")||M.closest(".gap-adjuster")||M.closest(".imageWrapperResizeBox")||M.closest(".line"))return;const j=B(),Y=(0,Ne.jx)(j),oe=(0,We.WH)(j);!I.shiftKey&&!oe&&setTimeout(()=>v({type:"entry:clear:selection"}),0),Y!==i.qi.OnlyView&&v({type:"start:range:select",payload:{startX:I.clientX,startY:I.clientY}})},"entry:screenContainer:enter:editing:widget":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const M=I==null?void 0:I.event,j=B(),oe=(0,Ne.jx)(j)===i.qi.OnlyView,ie=(0,$.p$)(j),le=(0,m.UV)(j),ue=(0,Ve.j)(j);if(ie.length!==1)return;const Te=(0,bt.Op)(ie[0]),De=le.getNode(ie[0]);if(Te.type===l.x.Canvas||Te.type===l.x.WWrap||Te.type===l.x.WIcon||Te.isLock||Te.type===l.x.WElbow&&M.target.classList.contains("line-rect-anchor"))return;if(oe){Te.type===l.x.WBasket&&De&&v({type:"entry:edit:bDanli",payload:{bDanliKey:De.keyToAccessIntAct}});return}if(oe)return;const $e=(0,Pt.ji)(Te);if(Te.type===l.x.WElbow){const{elbow:{textPositionProportion:ut,dPathList:Bt,elbowType:ao}}=Te;if(ut===void 0||ut===-1){const To=(0,$t.ce)(Bt,ao);v({type:"entry:elbow:update:textPositionProportion",payload:{key:Te.key,textPositionProportion:To}})}}if(Te.type===l.x.WBasket){if(ue&&!oe)return;Te.basket==="bDanli"&&v({type:"entry:edit:bDanli",payload:{bDanliKey:De.keyToAccessIntAct}})}else if((0,ze.a$)(Te.type)&&!$e){if(Te.type===l.x.WSwimlane)v({type:Je.X.entryKey["entry:flow:text-edit:prepare"],payload:{event:M}});else{const ut=go.y.query.getMissFontHiKeySet(j);if(ut&&ut.has(Te.key)){v({type:go.y.entryKey["font:miss:modal:open"]});return}v({type:"entry:set:editing:cid",payload:{item:Te}})}v({type:"entry:select:items",payload:{cids:[Te.cid]}})}else if(Te.type===l.x.WImage){var Qe,qe;if(!Te.image||!((Qe=Te.image)!=null&&Qe.imageRef)||(0,gt.OO)(Te.cid))return;((qe=Te.image)==null?void 0:qe.imageClipType)==="none"&&sdkStore.updateHotAttrMerge(Te.key,{image:{...Te.image,imageClipType:ft.Mg.square}}),v({type:"image:update:state",payload:{isEditingImageWrapperCid:Te.cid,currentImageOperateType:ft.bl.cutting}}),v({type:"entry:select:items",payload:{cids:[Te.cid]}})}else if(Te.type===l.x.WChart)v({type:"entry:chart:in:edit",payload:{widget:Te,trackType:"\u53CC\u51FB"}});else if($e||(0,ze.X3)(Te.type))v({type:"entry:select:items",payload:{cids:[Te.cid]}}),v({type:"mode:update:state",payload:{isEditingEditableWidgetCid:Te.cid}});else if([l.x.WMind,l.x.WTable].includes(Te.type))v({type:"entry:select:items",payload:{cids:[Te.cid]}});else if(Te.type===l.x.WCode)v({type:"entry:aiComponent:in:edit",payload:{cids:[Te.cid]}});else if(Te.type===l.x.WGraph){if(ue)return;v({type:"entry:widget:graph:edit",payload:{action:"update-widget"}})}},"entry:screenContainer:create:widget:mousemove":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{event:I,isTear:M=!1}}=G;const j=B(),Y=(0,o.X_)(j),oe=(0,o.ER)(j),ie=(0,o.$S)(j),le=(0,o.Ur)(j),ue=(0,$.p$)(j),Te=(0,mt.mG)(I,{scale:Y,offset:oe,viewportRect:ie}),De=I.ctrlKey||I.metaKey,$e=(0,mt.nS)({isTear:M,world:Te,scale:Y,newSelection:ue,currentPageKey:le.cid,isCtrlDown:De});v(i.GO.hoverItem($e))},"entry:screenContainer:dragCanvas":(Z,G)=>{var B,v;let{getState:I,dispatch:M}=Z,{payload:{e:j}}=G;const Y=j.clientX,oe=j.clientY,ie=I(),{x:le,y:ue}=(0,o.ER)(ie);M({type:"close:contextmenu"}),M({type:"reducer:flag:set:is-dragging-canvas",payload:{isDraggingCanvas:!0}}),M({type:"comment:update:activeCommentCid",payload:{activeCommentCid:""}});const Te=(B=(v=MB).getWidgetStore)==null?void 0:B.call(v).getAllWidget().size,De=qe=>{const ut={x:le+(qe.clientX-Y),y:ue+(qe.clientY-oe)};M({type:"entry:set:canvas:offset",payload:{offset:ut}}),M(i.GO.toggleIsShowFloatingToolbar(!1))},$e=Te>800?pt()(De,16):De,Qe=qe=>{var ut;(ut=$e.flush)==null||ut.call($e),document.removeEventListener("mousemove",$e),document.removeEventListener("mouseup",Qe),M({type:"reducer:flag:set:is-dragging-canvas",payload:{isDraggingCanvas:!1}}),M(i.GO.toggleIsShowFloatingToolbar(!0))};document.addEventListener("mousemove",$e),document.addEventListener("mouseup",Qe)}};var Tt=e(54606),mo=e(35592),jo=e(52191),Kt=e(38047),Ft=e(25961),nt=e(56315),Rt=e(98236),yt=e.n(Rt),Jt=e(45411),vo=e(70351),Yo=e(4643),Ho=e(35709),kt=e(20592),Ze=e(46927),it=e(20154),st=e(11123),dt=e(13780),Ot=e(58197),Ct=e(60420),wo=e(72868);const ln=Z=>({x:Z.clientX,y:Z.clientY}),Io=(Z,G)=>S.Z.subtract(G,{x:Z,y:g.E0}),Lo=Z=>{const G=MB.__store__.getState(),B=(0,Ne.lY)(G),{key:v}=B;if(!v)return;const I=(0,Ne.Je)(G),M=(0,Ct.n)(G),j=(0,Ct.H)(G),Y=ln(Z),oe=Io(M,Y),ie=dt.L.applyInverse(j,oe),{hotAttr:{vector:le}}=sdkStore.getHotItem(v),ue=(le==null?void 0:le.points)||[],Te=(0,wo.YW)(v),De=ue.map(ut=>{let{x:Bt,y:ao}=ut;return Te.apply({x:Bt,y:ao})});I!==0&&MB.action("start:range:select",{startX:Z.clientX,startY:Z.clientY});let $e=!1;const Qe=ut=>{if(I!==0){const Bt=ln(ut),ao=Io(M,Bt);if(S.Z.distance(Y,Bt)>2&&($e=!0),$e){const To=dt.L.applyInverse(j,ao),ko=ie.x<To.x?ie.x:To.x,vn=ie.x>=To.x?ie.x:To.x,Hn=ie.y<To.y?ie.y:To.y,os=ie.y>=To.y?ie.y:To.y,on=Ot.rw.ltrb(ko,Hn,vn,os),hn=[];De.forEach((Rn,Ln)=>{Ot.rw.contains(on,Rn)&&hn.push(Ln)}),MB.action("mode:update:state",{vectorEditor:{key:v,selectedIndex:hn,selectedAssistIndex:void 0}})}}},qe=()=>{I!==0&&($e===!1&&(I===1?MB.action("mode:update:state",{vectorEditor:{key:v,selectedIndex:[],selectedAssistIndex:void 0}}):(B==null?void 0:B.selectedIndex.length)>0?MB.action("mode:update:state",{vectorEditor:{key:v,selectedIndex:[],selectedAssistIndex:void 0}}):MB.action("entry:vector:exit:edit",{end:it.z9.ClickBlank})),MB.action("mode:update:state",{enabledRangeSelection:0})),document.removeEventListener("mousemove",Qe),document.removeEventListener("mouseup",qe)};document.addEventListener("mousemove",Qe),document.addEventListener("mouseup",qe)};var Ao=e(41725),xt=e(91344),Ut=e(34129),Wo=e(93284),qo=e(40778),sn=e(99895),Kn=e(14615),ds=e(96343),_s=e(6795),Ls=e(18578);let gs=!1;const Wn={...Co,...{"entry:screenContainer:mousedown":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{e:I}}=G;const M=B(),j=(0,o.wq)(M),Y=(0,mo.sI)(M),oe=(0,sn.y1)(M),ie=(0,Ne.Ro)(M),le=(0,Ne.lY)(M),ue=(0,vo.Q1)(M),Te=(0,mo.EH)(M),De=(0,Ne.jx)(M),{isSpaceDown:$e}=(0,o.ZS)(M);I.button!==0?I.button===1?v({type:"entry:screenContainer:dragCanvas",payload:{e:I}}):v({type:"entry:screenContainer:contextmenu",payload:{e:I}}):(v({type:"close:contextmenu"}),oe?v({type:"entry:aiComponent:create:mousedown",payload:{event:I}}):$e||ie?De===i.qi.OnlyView&&ie?v({type:"entry:screenContainer:pointDown",payload:{event:I}}):v({type:"entry:screenContainer:dragCanvas",payload:{e:I}}):Y?v({type:"entry:comment:create:mousedown",payload:{event:I}}):le?Lo(I):ue?v({type:"entry:elbow:isInElbowMode:create",payload:{event:I,canInstantCreate:!1}}):j?v({type:"entry:widget:create",payload:{e:I}}):(Te&&v({type:"entry:comment:create:mousedown",payload:{event:I}}),v({type:"entry:screenContainer:pointDown",payload:{event:I}})))},"entry:screenContainer:pointDown":(Z,G)=>{var B;let{getState:v,dispatch:I}=Z,{payload:{event:M}}=G;M.persist();const{target:j}=M,Y=v(),oe=(0,Ut.c)(Y),ie=(0,Ne.jx)(Y),le=(0,Ne.IL)(Y),ue=(0,$.p$)(Y);if(j.closest(".resizable-handler")||j.closest(".square")||j.closest(".line")||j.closest(".canvas-title .is-editing-title")||M.target.closest('.public-DraftEditor-content[contenteditable="true"] .draft-image-atomic')||M.target.closest(".draft-link-decorator-a"))return;M.target.closest(".draft-link-toast")||!oe&&xt.A.emit("draft:link-toast:quit");const Te=(B=sdkStore.getHotItem(le))==null?void 0:B.hotAttr.type,De=le?CSS.escape(le):"",$e=j.closest("#elbow-text-dom-"+De);($e||Te==="wElbow"&&j.closest(".wElbow #text-dom-"+De))&&(ue.length===0||ue.length===1&&$e.dataset.elbowKey===le)&&I({type:"elbow:update",payload:{isDraggingElbowText:!0}}),v().screencontainer.domVisibilityState||I({type:"update:screenContainer:state",payload:{domVisibilityState:!0}});const Qe=S.Z.xy(M.clientX,M.clientY);gs=!!le;const qe=Bt=>{const ao=()=>{if(S.Z.distance(Qe,To)>1){if(document.removeEventListener("mousemove",qe),document.removeEventListener("mouseup",ut),ie===i.qi.OnlyView){if(M.target.closest(".read-only-text-can-select"))return;I({type:"entry:screenContainer:dragCanvas",payload:{e:M}})}else I({type:"entry:screenContainer:dragStart",payload:{event:M}});gs=!1}},To=S.Z.xy(Bt.clientX,Bt.clientY);v().screencontainer.domVisibilityState&&ao()},ut=Bt=>{if(gs=!1,ie===i.qi.OnlyView){if(Bt.target.closest(".emoji-toast")||Bt.target.closest(".project-member-list")){document.removeEventListener("mousemove",qe),document.removeEventListener("mouseup",ut);return}I({type:"comment:update:activeCommentCid",payload:{activeCommentCid:""}})}if(I({type:"entry:screenContainer:mousedown:hit",payload:{event:M,rehitForContextMenu:!1,gas:0}}),ie===i.qi.OnlyView&&!qo.eT){const ao=(0,$.p$)(v());(0,Wo.f3)(ao[0])}document.removeEventListener("mousemove",qe),document.removeEventListener("mouseup",ut),I({type:"entry:screenContainer:mouseup",payload:{event:Bt}})};document.addEventListener("mousemove",qe),document.addEventListener("mouseup",ut)},"entry:screenContainer:contextmenu":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{e:I}}=G;const M=B();if((0,o.wq)(M)||MB.f.editing||I.target.closest(".iconWrap")||(I.preventDefault(),I.ctrlKey))return;const Y={left:I.clientX,top:I.clientY};v({type:"entry:screenContainer:mousedown:hit",payload:{event:I,rehitForContextMenu:!0,gas:0}}),v({type:"entry:contextmenu:withtype",payload:{position:Y}})},"entry:screenContainer:mousemove":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{event:I}}=G;if(MB.f.isResizing||gs)return;const M=B();if((0,o.pO)(M))return;if((0,Ho.LS)(M).bindingKey!==""){v(i.GO.update({isHitVectorPath:!1}));return}const{isKeySDown:oe}=(0,o.ZS)(M);if(oe||(0,o.AW)(M)||(0,Kn.vv)(M)||(0,Kt.RT)(M))return;if(I.target.closest(".design-widget-portal-menu")){v(i.GO.update({hover:{item:"",panel:""}}));return}if((0,sn.y1)(M)){v({type:"entry:aiComponent:create:mousemove",payload:{event:I}});return}const De=(0,o.X_)(M),$e=(0,o.ER)(M),Qe=(0,o.$S)(M),qe=(0,m.RX)(M),ut=(0,Ne.jx)(M),Bt=(0,$.p$)(M),ao=(0,o.iv)(M),To=(0,o.w8)(M),ko=(0,Ne._b)(M),vn=(0,st.o5)(M),Hn=(0,mo.fd)(M),os=(0,Ne.Ro)(M),on=(0,mo.sI)(M),hn=(0,mo.Cb)(M),Rn=(0,mo.AU)(M),Ln=(0,$.QA)(M),Ms=(0,Kt.nF)(M),pi=(0,Kt.tC)(M),Ts=(0,o.rV)(M),{isEditingCombo:Js}=(0,Tt.r)(M),ki=(0,mt.mG)(I,{scale:De,offset:$e,viewportRect:Qe}),js=I.ctrlKey||I.metaKey||ko,ai=(0,vo.rP)(M),qi=(0,o.wq)(M),or=(0,jo.$7)(M),Yi=I.altKey,Hr=(0,Ho.jy)(M),Wa=(0,Ho.Hr)(M),nr=(0,Ho.tI)(M),zi=(0,Ne.lY)(M),ca=(0,Ne._W)(M),Ua=(0,Ne.IL)(M),Za=Je.X.query.getIsDeepEditing(M),ia=(0,vo.Q1)(M),yl=(0,mt.mG)(I,{scale:100,offset:$e,viewportRect:Qe}),er={x:yl.x/De*100,y:yl.y/De*100};if(qi||Hr){const Ha=(qi==null?void 0:qi.type)===l.x.WTear||(Bt==null?void 0:Bt.length)===1,qr=(qi==null?void 0:qi.type)===l.x.WVector;Ha&&!qr&&v({type:"entry:screenContainer:create:widget:mousemove",payload:{event:I,isTear:Ha}}),zi&&ca&&v(i.GO.update({isHitVectorPath:!1})),(qi==null?void 0:qi.type)===l.x.Canvas&&v({type:"update:screenContainer:state",payload:{cursorPos:er}});return}if((!Hr&&(vn||os&&ut!==i.qi.OnlyView||Ts.isActive||MB.f.isResizing||Wa)||nr||zi||Za)&&Ua&&v(i.GO.hoverItem("")),Hn){const Ha=(0,ds.xJ)(ki,qe.key);Ua!==Ha&&v(i.GO.hoverItem(Ha));return}const Cr=Rn.find(Ha=>Ha.cid===hn);if(on||Cr){v({type:"entry:screenContainer:create:widget:mousemove",payload:{event:I}}),v({type:"entry:comment:create:mousemove",payload:{event:I}});return}const Cl=Ms||Yi||ai||ia||Hr||pi||(qi==null?void 0:qi.type)===l.x.WTear,od=!Cl,Bc=(0,C.Dg)(ki,De/100,qe.key,{isDraggingElbow:ai||ia,isShowSticky:or,isDraggingWTear:Hr,needHitCanvasEdge:od,event:I},Bt);if((0,C.h9)(Bc,Bt,js||ai||ia?"ctrl":"default",Cl),Bc!=null&&Bc.hitKey){const Ha=(Hr||pi)&&Bc.hitIType===l.x.WSticky;let qr=Bc.hitKey;if(Ha&&(qr=""),Ms){var Yd,Cc;const Rc=sdkStore.locUpColdCanvasKey(Bc.hitKey),nd=sdkStore.locUpColdCanvasKey(((Yd=Ln[0])==null?void 0:Yd.key)||"");(0,gt.OO)(qr)?qr=nd!==Rc?qr:"":Rc?qr===nd?qr="":nd!==Rc&&(qr=Bc.hitIType===l.x.Canvas?qr:Rc||""):qr=Js?qr:"",qr===((Cc=Ln[0])==null?void 0:Cc.key)&&(qr="")}if(ut!==i.qi.OnlyView&&Ze.LM.includes(Bc.hitIType)&&Bt.length===1&&Bt[0]===qr){if(!(0,Jt.td)([qr])){const nd=(0,C.AJ)(ki,De/100,qr);nd!==ca&&v(i.GO.update({isHitVectorPath:nd}))}}else ca&&v(i.GO.update({isHitVectorPath:!1}));Ua!==qr&&v(i.GO.hoverItem(qr));const Ld=Bt.length===1&&Bc.hitKey===Bt[0];if(ut!==i.qi.OnlyView&&Ld&&(0,ze.v8)(Bc.hitIType)&&v({type:"reducer:flag:set-isShowRadiusResizer",payload:{isShowRadiusResizer:!0}}),ut===i.qi.OnlyView&&v(i.GO.toggleHandMode(!1)),ia){const Rc=(0,Yo.s)(Bc.hitKey,er);v(Rc!==void 0?{type:"elbow:update",payload:{highlightAnchor:Rc.key}}:{type:"elbow:update",payload:{highlightAnchor:""}})}}else Ua&&v(i.GO.hoverItem("")),ca&&v(i.GO.update({isHitVectorPath:!1})),ut!==i.qi.OnlyView&&ao&&v({type:"reducer:flag:set-isShowRadiusResizer",payload:{isShowRadiusResizer:To}}),ut===i.qi.OnlyView&&v(i.GO.toggleHandMode(!0));v({type:"update:screenContainer:state",payload:{cursorPos:er}})},"entry:screenContainer:mousedown:hit":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{event:I,rehitForContextMenu:M,gas:j}}=G;const Y=B(),oe=(0,o.X_)(Y),ie=(0,o.ER)(Y),le=(0,o.$S)(Y),ue=(0,m.RX)(Y),Te=(0,$.p$)(Y),De=(0,Ft.P2)(Y),$e=(0,st.o5)(Y),{isAdjustingColGap:Qe,isAdjustingRowGap:qe}=(0,nt.$)(Y),ut=(0,Ne.jx)(Y),Bt=(0,mo.sI)(Y),ao=(0,mo.Cb)(Y),To=(0,mo.AU)(Y),ko=(0,Ne._b)(Y),vn=(0,jo.$7)(Y),Hn=(0,Ne.lY)(Y),os=(0,Ne.IL)(Y),{isKeySDown:on}=(0,o.ZS)(Y);if(on)return;const{shiftKey:hn,ctrlKey:Rn,metaKey:Ln}=I,Ms=(0,mt.mG)(I,{scale:oe,offset:ie,viewportRect:le}),pi=Rn||Ln||ko,Ts=j>0?"dblclick":pi?"ctrl":"default";if(Ts==="dblclick"){const zi=document.elementFromPoint(I.clientX,I.clientY);if(zi!=null&&zi.closest(".DraftEditor-editorContainer")||zi!=null&&zi.closest(".STSticky")||zi!=null&&zi.closest(".table-add-handle"))return}if(De||$e||Qe||qe||Hn!=null&&Hn.key)return;let Js;const ki=To.find(zi=>zi.cid===ao);if(Bt||ki)return;const js=(0,C.Dg)(Ms,oe/100,ue.key,{isShowSticky:vn,needHitCanvasEdge:!0,event:I},Te),ai=ko&&I.buttons===1&&js.hitKey,{hasUnusedDblclick:qi}=(0,C.h9)(js,Te,Ts,!1);if(js.hitKey&&(Js=js.hitKey),ai&&js.hitIType==="wLr"){const zi=(0,C.Dg)(Ms,oe/100,ue.key,{isShowSticky:vn,needHitCanvasEdge:!0,filterKey:js.hitKey,event:I},Te);zi.hitKey!==void 0&&zi.hitKey!==js.hitKey&&MB.notice({text:I18N.ContextMenu.inspect_lr,type:"info"})}let or=!1;if(Ze.LM.includes(js.hitIType)?or=!(0,Jt.td)([Js]):l.x.WMind===js.hitIType&&v(i.GO.toggleIsShowFloatingToolbar(!0)),qi){if(Js){if(or&&js.hitIType!=="wLine"&&(0,C.AJ)(Ms,oe/100,Js)){v({type:"entry:vector:enter:edit",payload:{key:Js}}),v({type:"update:screenContainer:state",payload:{addVectorSource:js.hitIType===l.x.WVector?null:it.dZ.TransformDoubleClick}});return}v({type:"entry:screenContainer:enter:editing:widget",payload:{event:I}})}return}let Yi=(0,C.jT)(Te,Js,hn&&!ko,M);if(Yi.length===0&&M){const zi=(0,C.Tg)(Ms,ue.key);zi&&(Yi=[zi])}if(!yt()(Te,Yi)){var Hr,Wa,nr;const zi=((Hr=Yi)==null?void 0:Hr.length)===1?Yi[0]:"";if(os!==zi&&v(i.GO.hoverItem(zi)),v({type:"flow:update:clear"}),(Wa=Yi)!=null&&Wa.length?(v({type:"entry:select:items",payload:{cids:Yi}}),(0,_s._o)(()=>{const ca=(0,$.p$)(B());ca!=null&&ca.length&&v({type:"entry:expend:groupOrCanvasOrBasket",payload:{cids:ca}})},{timeout:200})):(v({type:"entry:clear:selection"}),v(Ls.R7.command.clearAllCommand({}))),((nr=Yi)==null?void 0:nr.length)===1){const ca=sdkStore.getHotItem(Yi[0]);ca&&ut!==i.qi.OnlyView&&(0,ze.v8)(ca.hotAttr.type)&&v({type:"reducer:flag:set-isShowRadiusResizer",payload:{isShowRadiusResizer:!0}})}}},"entry:screenContainer:mouseup":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{event:I}}=G;const M=B(),j=(0,$.p$)(M);if((j==null?void 0:j.length)===1){const Y=sdkStore.getHotItem(j[0]);if(Y.hotAttr.type===l.x.WElbow)v({type:"elbow:update",payload:{isDraggingElbowText:!1,activeElbowKey:"",highlightAnchor:""}});else if(Y.hotAttr.type===l.x.WTear){const oe=I.button===0;v({type:"ST:toggle:wTearLeftDown",payload:{isLeftDown:oe,activeTearKey:Y.key}})}}},"entry:screenContainer:dragStart":(Z,G)=>{var B;let{getState:v,dispatch:I}=Z,{payload:{event:M}}=G;const j=v(),Y=(0,$.x$)(j),oe=(0,o.X_)(j),ie=(0,o.ER)(j),le=(0,o.$S)(j),ue=(0,$.p$)(j),Te=(0,Ne.IL)(j),De=(0,vo.CP)(j),$e=Je.X.query.getIsShallowEditing(j),{isAdjustingColGap:Qe,isAdjustingRowGap:qe}=(0,nt.$)(j),ut=(0,We.WH)(j);if(De||Qe||qe||$e)return;const ao=Y.map(Hn=>Hn.key).filter(Hn=>!sdkStore.getHotItem(Hn).hotAttr.isLock),To=(0,mt.mG)(M,{scale:oe,offset:ie,viewportRect:le}),ko=ao.length>0&&!ao.includes(ut)&&(0,kt.N0)(sdkStore.getHotKeyListAABB(ao),To),vn=Te!==""&&!((B=sdkStore.getHotItem(Te))!=null&&(B=B.hotAttr)!=null&&B.isLock)&&(ut?Te!==ut:!0);ko||vn?(Te&&!ue.includes(Te)&&I({type:"entry:screenContainer:mousedown:hit",payload:{event:M}}),I({type:"entry:event:item:drag-start",payload:{event:M}})):I({type:"entry:screenContainer:selecting",payload:{event:M}})},"entry:screenContainer:drop":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{e:I}}=G;I.stopPropagation(),I.preventDefault();const M=B(),j=(0,Ne.jx)(M),{isExperience:Y,isLoggedExperience:oe}=(0,o.W4)(M),ie=(0,o.Pz)(M),le=(0,o.PL)(M),ue=(0,o.HW)(M),Te=(0,o.wA)(M),De=(0,o.X_)(M);if(j===i.qi.OnlyView)return;if(Y||oe){MB.notice({text:I18N.LibraryContainer.un_save_tips});return}v({type:"entry:clear:selection"});const $e=De/100;let Qe=I.nativeEvent.pageY-(ie==null?void 0:ie.canvasTop);const qe=I.nativeEvent.pageX-(ie==null?void 0:ie.canvasLeft),ut=[];await(0,Ao.i3)({files:I.nativeEvent.dataTransfer.files,rootProject:le,isCreate:!0,callback:(Bt,ao)=>{const To=(Bt==null?void 0:Bt.w)||(Bt==null?void 0:Bt.width)||0,ko=(Bt==null?void 0:Bt.h)||(Bt==null?void 0:Bt.height)||0;Bt.top=Math.round(Qe/$e)+ko/2,Bt.left=Math.round(qe/$e)+To/2;const vn=Bt.type===l.x.WIcon?(0,J.kk)(Bt):(0,J.BL)(Bt);ut.push(vn),Qe+=vn.h*$e,ao&&v({type:"entry:batch:create:items",payload:{data:[{items:ut,width:vn.w,height:vn.h}],offset:{top:0,left:0},isShouldCalcSup:!0}})}},ue,Te)}}};var Do=e(17534),Go=e(88223),an=e(70877),Mo=e(64726),Cn=e(35556),Tn=e(8907);const cn=Z=>{const G=(0,o.X_)(Z),B=(0,o.ER)(Z),v=(0,o.$S)(Z);return{scale:G/100,offset:B,size:v}},bs={...Cn.u,"entry:comment:create:mousedown":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{event:I}}=G;const M=B(),j=(0,m.RX)(M),Y=(0,mo.sI)(M),oe=(0,o.X_)(M),ie=(0,o.ER)(M),le=(0,o.$S)(M),ue=(0,mo.nO)(M),Te=(0,mo.fd)(M),De=(0,mo.YW)(M),$e=(0,mo.AU)(M),Qe=(0,mo.Cb)(M),qe=(0,mo.V8)(M);if((0,ds.m0)(I)){ue&&v({type:"comment:update:startCommentAnchorPoint",payload:{startCommentAnchorPoint:null}}),Te&&v({type:"entry:comment:benot-dragging"});return}if(De)return;const ut=(0,Cn.F)();if(ut){v({type:"entry:comment:wigglingCommentCid",payload:{wigglingCommentCid:ut}});return}if(qe){v({type:"entry:comment:clear"});return}if(Qe){const os=$e.find(on=>on.cid===Qe);if(os){const{comments:on}=os,hn=(0,mo.Ou)(M);[os,...on].find(Ln=>Ln.cid===hn)&&v({type:"comment:update:editingRecordCid",payload:{editingRecordCid:""}})}v({type:"comment:update:activeCommentCid",payload:{activeCommentCid:""}});return}if(!Y)return;const Bt=(0,mt.mG)(I,{scale:oe,offset:ie,viewportRect:le}),ao=(0,ds.xJ)(Bt,j.key),To=(0,ds.vl)(Bt,ao),{cid:ko}=(0,o.Ur)(M),{user:vn}=window.MB,Hn={threadType:"point",cid:(0,Do.xc)(),isCompleted:!1,comments:[],screenCid:ko||"",canvasCid:ao||"",canvasVec2:To,message:"",x:Bt.x,y:Bt.y,w:0,h:0,z:1,userInfo:vn,userId:vn==null?void 0:vn.id,vec2:Bt,rect:null,status:"creating"};v({type:"comment:update:startCommentAnchorPoint",payload:{startCommentAnchorPoint:Bt}}),v({type:"comment:update:creatingComment",payload:{creatingComment:Hn}})},"entry:comment:create:mousemove":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{event:I}}=G;const M=B(),j=(0,mo.nO)(M),Y=(0,m.RX)(M),oe=(0,o.X_)(M),ie=(0,o.ER)(M),le=(0,o.$S)(M);if(!j)return;let ue=(0,mo.V8)(M);if(!ue)return;const Te=(0,mt.mG)(I,{scale:oe,offset:ie,viewportRect:le});if(S.Z.distance(j,Te)<5){const $e=(0,ds.xJ)(Te,Y.key),Qe=(0,ds.vl)(Te,$e);ue={threadType:"point",...ue,canvasVec2:Qe,vec2:Te,rect:null,x:Te.x,y:Te.y,w:0,h:0,canvasCid:$e||""},v(i.GO.hoverItem($e))}else{const{x:$e,y:Qe}=j,{x:qe,y:ut}=Te,Bt={x:$e<=qe?$e:qe,y:Qe<=ut?Qe:ut,w:Math.abs(qe-$e),h:Math.abs(ut-Qe),rotate:0},ao=[Bt.x,Bt.y,Bt.x+Bt.w,Bt.y+Bt.h],To=(0,ds.kJ)(ao,Y.key),ko=(0,ds.vl)(Bt,To);ue={...ue,threadType:"frame",vec2:null,rect:Bt,x:$e<=qe?$e:qe,y:Qe<=ut?Qe:ut,w:Math.abs(qe-$e),h:Math.abs(ut-Qe),canvasVec2:ko,canvasCid:To||""},v(i.GO.hoverItem(To))}v({type:"comment:update:creatingComment",payload:{creatingComment:ue}})},"entry:comment:create:mouseup":Z=>{let{getState:G,dispatch:B}=Z;const v=G();if(!(0,mo.nO)(v))return;B({type:"comment:update:isCommentDragging",payload:{isCommentDragging:!1}});const M=(0,mo.V8)(v);M&&(B({type:"comment:update:activeCommentCid",payload:{activeCommentCid:M.cid}}),B({type:"comment:update:editorRawContentObject",payload:{editorRawContentObject:{}}}),B({type:"comment:update:editorIsEditing",payload:{editorIsEditing:!0}}),B({type:"comment:update:editingCommentCid",payload:{editingCommentCid:M.cid}})),B({type:"comment:update:startCommentAnchorPoint",payload:{startCommentAnchorPoint:null}})},"entry:comment:resize":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{cid:I,rect:M}}=G;const j=B(),Y=(0,mo.AU)(j),oe=(0,m.RX)(j),ie=(0,mo.V8)(j);if(!Y.find(qe=>qe.cid===I)&&(ie==null?void 0:ie.cid)!==I)return;const ue=Ot.rw.enclosingRects([M]),Te=[M.x,M.y,M.x+M.w,M.y+M.h],De=(0,ds.kJ)(Te,oe.key),$e=(0,ds.vl)(M,De),Qe={x:ue.x,y:ue.y,w:ue.w,h:ue.h,canvasVec2:$e,canvasCid:De||""};if((ie==null?void 0:ie.cid)===I){const qe={...ie,...Qe,rect:{...ue}};v({type:"comment:update:creatingComment",payload:{creatingComment:qe}})}else v({type:"entry:comment:update:item",payload:{cid:I,attr:Qe}});v(i.GO.hoverItem(De))},"entry:comment:cancel":Z=>{let{getState:G,dispatch:B}=Z;B({type:"entry:comment:clear"})},"entry:comment:confirm":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{cid:I}}=G;const M=B(),j=(0,mo.V8)(M),Y=(0,mo.AU)(M),oe=(0,mo.uX)(M),ie=(0,o.$5)(M),le=j||Y.find(ao=>ao.cid===I);if(!le)return;const{user:ue}=window.MB,Te=ie||[],{content:De,replyUserCid:$e,userCids:Qe}=(0,ds.bL)(oe);let qe="";const ut=Qe.concat($e).filter(Boolean);if(j)qe=ut.length>0?"appointed":"comment";else{qe=ut.length>0?"replied_appoint":"replied_comment";const{userInfo:ao}=le;if(ue.cid!==ao.cid){const To=Te.find(ko=>ko.user_cid===ao.cid);To&&(ao.name=To.name,ao.avatar=To.avatar,ao.email=To.email),ao.cid}}const Bt=(0,Tn.qn)(oe);v({type:"entry:comment:noticeAtUsers",payload:{content:De,noticeType:qe,userCids:ut,commentCid:I}}),v(j?{type:"entry:comment:init:item",payload:{type:"thread",curComment:le,message:Bt}}:{type:"entry:comment:init:item",payload:{type:"content",curComment:le,message:Bt}}),v({type:"comment:update:creatingComment",payload:{creatingComment:null}}),v({type:"comment:update:editorRawContentObject",payload:{editorRawContentObject:{}}}),v({type:"comment:update:editorIsEditing",payload:{editorIsEditing:!1}}),v({type:"comment:update:editingCommentCid",payload:{editingCommentCid:""}}),v({type:"comment:update:startCommentAnchorPoint",payload:{startCommentAnchorPoint:null}}),v(i.GO.hoverItem(""))},"entry:comment:delete":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{cid:I}}=G;const M=B(),j=(0,mo.AU)(M);if(!I)return;const Y=j.find(le=>le.cid===I);if(!Y)return;const{userInfo:oe}=Y,{user:ie}=window.MB;if(ie.cid!==oe.cid){MB.notice({text:"\u5220\u9664\u8BC4\u8BBA\u6743\u9650\u4E0D\u8DB3"});return}v({type:"entry:comment:del:item",payload:{cid:I}}),v({type:"comment:update:activeCommentCid",payload:{activeCommentCid:""}}),v({type:"comment:update:editingCommentCid",payload:{editingCommentCid:""}}),v({type:"comment:update:editingRecordCid",payload:{editingRecordCid:""}})},"entry:comment:record:editing":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{cid:I,recordCid:M}}=G;const j=B(),oe=(0,mo.AU)(j).find(le=>le.cid===I);!oe||![...oe.comments,oe].find(le=>le.cid===M)||(v({type:"comment:update:editorIsEditing",payload:{editorIsEditing:!1}}),v({type:"comment:update:editingCommentCid",payload:{editingCommentCid:""}}),v({type:"comment:update:editingRecordCid",payload:{editingRecordCid:M}}))},"entry:comment:record:delete":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{cid:I,recordCid:M}}=G;const j=B(),oe=(0,mo.AU)(j).find(le=>le.cid===I);!oe||![...oe.comments,oe].find(le=>le.cid===M)||(v({type:"entry:comment:del:item",payload:{cid:M||I}}),v({type:"comment:update:editingRecordCid",payload:{editingRecordCid:""}}))},"entry:comment:record:confirm":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{cid:I,recordCid:M,rawContent:j}}=G;const Y=B(),ie=(0,mo.AU)(Y).find(Bt=>Bt.cid===I);if(!ie)return;let le=-1,ue=null;if(ie.cid===M?ue=ie:ie.comments.forEach((Bt,ao)=>{Bt.cid===M&&(le=ao,ue=Bt)}),!ue)return;const{content:Te,replyUserCid:De,userCids:$e}=(0,ds.bL)(j),Qe=$e.concat(De).filter(Boolean);let qe="";le===-1?(qe="comment",Qe.length>0&&(qe="appointed")):(qe="replied_comment",Qe.length>0&&(qe="replied_appoint")),v({type:"entry:comment:noticeAtUsers",payload:{content:Te,noticeType:qe,userCids:Qe,commentCid:I}});const ut={message:j,mtime:rootSdk.fssCmt.getClockStore().getMtime()};v({type:"entry:comment:update:item",payload:{cid:M||I,attr:ut}}),v({type:"comment:update:editingRecordCid",payload:{editingRecordCid:""}})},"entry:comment:record:cancel":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{cid:I,recordCid:M}}=G;const j=B(),oe=(0,mo.AU)(j).find(ue=>ue.cid===I);!oe||![oe,...oe.comments].find(ue=>ue.cid===M)||!(0,mo.Ou)(j)||v({type:"comment:update:editingRecordCid",payload:{editingRecordCid:""}})},"entry:comment:anchor:mousedown":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{event:I,comment:M}}=G;const j=B(),Y=cn(j),oe=(0,mo.V8)(j),ie=(0,mo.Cb)(j),le=(0,mo.az)(j),ue={x:I.pageX,y:I.pageY},Te={...M};let De;if(Te.vec2){const Qe=dt.L.apply(Y,Te.vec2),qe=ue.x-Qe.x,ut=ue.y-Qe.y;De={x:qe,y:ut}}const $e=(0,Cn.F)();if($e){v({type:"entry:comment:wigglingCommentCid",payload:{wigglingCommentCid:$e}});return}oe&&v({type:"comment:update:creatingComment",payload:{creatingComment:null}}),v({type:"entry:clear:selection"}),(0,Go.FJ)({onPointerDown:()=>{M.cid===le&&v({type:"entry:comment:clear"})},onDragStart:()=>{const Qe=(0,Ne.Ro)(j);(0,Ne.jx)(j)!==i.qi.OnlyView&&Qe||!(0,qo.OB)()&&!MB.canEditByCurrentUser||v({type:"entry:comment:be-dragging"})},onDrag:(Qe,qe)=>{const ut=(0,Ne.Ro)(j);(0,Ne.jx)(j)!==i.qi.OnlyView&&ut||!(0,qo.OB)()&&!MB.canEditByCurrentUser||v({type:"entry:comment:drag",payload:{cid:M.cid,prevComment:Te,prevPoint:ue,curPoint:{x:Qe,y:qe},vec2Delta:De}})},onDrop:(Qe,qe)=>{const ut=Te&&Te.cid;qe&&!ie&&v({type:"comment:update:activeCommentCid",payload:{activeCommentCid:M.cid}}),qe&&M.cid===ut&&["created","checked"].includes(M.status)?M.cid===ie?v({type:"comment:update:activeCommentCid",payload:{activeCommentCid:""}}):v({type:"comment:update:activeCommentCid",payload:{activeCommentCid:M.cid}}):v({type:"comment:update:activeCommentCid",payload:{activeCommentCid:M.cid}}),setTimeout(()=>{v({type:"entry:comment:benot-dragging",payload:{cid:M.cid,undo:!0}}),v(i.GO.hoverItem(""))},16.7)}})},"entry:comment:drag":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{cid:I,prevComment:M,prevPoint:j,curPoint:Y,vec2Delta:oe}}=G;const ie=B(),le=(0,mo.AU)(ie),ue=cn(ie),Te=(0,o.dK)(ie),De=(0,m.RX)(ie);if(!le.find(vn=>vn.cid===I))return;const Qe=dt.L.applyInverse(ue,j),qe=dt.L.applyInverse(ue,Y);let ut,Bt;if(Te){const[vn,Hn]=(0,ds.RR)(Qe,qe,!0,!1);ut=Hn.x-vn.x,Bt=Hn.y-vn.y}else ut=qe.x-Qe.x,Bt=qe.y-Qe.y;const{threadType:ao,vec2:To,rect:ko}=M;if(ao==="point"){const vn=S.Z.add(To,{x:ut,y:Bt}),Hn=(0,ds.xJ)(vn,De.key),os=(0,ds.vl)(vn,Hn),on={x:vn.x,y:vn.y,canvasVec2:os,canvasCid:Hn||""};v({type:"entry:comment:update:item",payload:{cid:I,attr:on}}),v(i.GO.hoverItem(Hn))}else{const vn={...ko,x:ko.x+ut,y:ko.y+Bt},Hn=Ot.rw.enclosingRects([vn]),os=[vn.x,vn.y,vn.x+vn.w,vn.y+vn.h],on=(0,ds.kJ)(os,De.key),hn=(0,ds.vl)(vn,on),Rn={rect:vn,x:Hn.x,y:Hn.y,canvasVec2:hn,canvasCid:on||""};v({type:"entry:comment:update:item",payload:{cid:I,attr:Rn}}),v(i.GO.hoverItem(on))}},"entry:comment:be-dragging":Z=>{let{dispatch:G}=Z;G({type:"comment:update:isCommentDragging",payload:{isCommentDragging:!0}})},"entry:comment:benot-dragging":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;v({type:"comment:update:isCommentDragging",payload:{isCommentDragging:!1}})},"entry:comment:fit-viewport":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{cid:I}}=G;const M=B(),j=cn(M),Y=(0,o.$S)(M),ie=(0,mo.AU)(M).find(qe=>qe.cid===I);if(!ie)return;const le={x:Y.x,y:Y.y,w:Y.width,h:Y.height},{x:ue,y:Te,w:De,h:$e,threadType:Qe}=ie;if(Qe==="point"){const qe=dt.L.apply(j,{x:ue,y:Te}),ut={x:Y.x+Y.width/2,y:Y.y+Y.height/2},Bt={x:ut.x+qe.x,y:ut.y+qe.y};if(!Ot.rw.contains(le,Bt)){const{offset:To,scale:ko}=j,vn=S.Z.subtract(ut,Bt),Hn=S.Z.add(To,vn);v({type:"design:set:canvas:offset",payload:{offset:Hn}}),v({type:"design:set:scale",payload:{scale:ko*100}})}}else{const qe=dt.L.applyRect(j,{x:ue,y:Te,w:De,h:$e}),ut={x:Y.x+Y.width/2,y:Y.y+Y.height/2},Bt={...qe,x:ut.x+qe.x,y:ut.y+qe.y};if(!an.a.containsRect(an.a.fromRect(le),Bt)){const{offset:To,scale:ko}=j,vn=S.Z.subtract(ut,{x:Bt.x+Bt.w/2,y:Bt.y+Bt.h/2}),Hn=S.Z.add(To,vn);v({type:"design:set:canvas:offset",payload:{offset:Hn}}),v({type:"design:set:scale",payload:{scale:ko*100}})}}v({type:"comment:update:activeCommentCid",payload:{activeCommentCid:I}}),v({type:"comment:update:editorRawContentObject",payload:{editorRawContentObject:{}}}),v({type:"comment:update:editorIsEditing",payload:{editorIsEditing:!1}}),v({type:"comment:update:editingCommentCid",payload:{editingCommentCid:""}})},"entry:comment:noticeAtUsers":(Z,G)=>{let{getState:B}=Z,{payload:{content:v,noticeType:I,userCids:M,commentCid:j}}=G;const Y=B(),oe=(0,o.PL)(Y),ie=(0,E.Hs)(Y);let le=(0,Ne.jI)(Y);const ue=oe.cid;le&&(0,gt.OO)(le)&&(le=(0,gt.QL)(le).pop()),Mo.A.noticeCommentAtUsers({projectCid:ue,noticeType:I,userCids:M,content:v,screenCid:ie[0],commentCid:j,basketCid:le})},"entry:comment:rightPanel:active":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{commentCid:I}}=G;const M=B(),j=(0,E.He)(M),oe=(0,mo.Vr)(M).find(ue=>ue.cid===I);if(!oe)return;const{cid:ie}=(0,o.Ur)(M),le=j[ie];if(!le){v({type:"entry:comment:fit-viewport",payload:{cid:I}});return}le.key===oe.screenCid&&v({type:"entry:comment:fit-viewport",payload:{cid:I}})},"entry:comment:move-canvas":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{updates:I}}=G;const M=B();(0,mo.AU)(M).forEach(Y=>{const oe=I.find(ie=>ie.cid===Y.canvasCid);if(oe){const{canvasVec2:ie}=Y,le={x:oe.x-oe.w/2,y:oe.y-oe.h/2},ue=S.Z.add(le,ie),Te={x:ue.x,y:ue.y};v({type:"entry:comment:update:item",payload:{cid:Y.cid,attr:Te}})}})},"entry:comment:update:atStyle":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{event:I}}=G;const M=B(),j=(0,o.X_)(M),Y=(0,o.ER)(M),oe=(0,o.$S)(M),ie=(0,mt.mG)(I,{scale:j,offset:Y,viewportRect:oe}),le=j/100,ue=ie.x*le+16,Te=ie.y*le+16+20;v({type:"comment:update:atStyle",payload:{atStyle:{top:Te,left:ue}}})},"entry:comment:update:emojiToastStyle":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{event:I,scrollTop:M}}=G;const j=B(),Y=(0,o.X_)(j),oe=(0,o.ER)(j),ie=(0,o.$S)(j),le=(0,mt.mG)(I,{scale:Y,offset:oe,viewportRect:ie}),ue=Y/100;v({type:"comment:update:emojiToastStyle",payload:{emojiToastStyle:{left:le.x*ue-20,top:le.y*ue-M+59}}})}};var Vn=e(96010),ti=e(96510),oi=e(64983),Gt=e(23492),Rs=e(36820);const Xs={"entry:initial:guide:task":async Z=>{let{dispatch:G}=Z;if((0,y.Ge)()){const B=MB.commonGuideHelper.getState().commonGuidesHasShown;G({type:"update:taskList:data",payload:{completeList:B}}),oi._D.every(M=>B.includes(M))&&G({type:"update:taskList:completed"}),oi.vY.every(M=>B.includes(M))&&(G({type:"update:taskList:completed"}),MB.commonGuideHelper.batchMarkGuideAsRead(oi._D)),ENV.IS_WONDER_SHARE&&oi._D.every(j=>B.indexOf(j)===-1)&&(0,Rs.kH)("novice_task_V8",{operation_type:"\u65E0"})}else G({type:"update:taskList:completed"})},"entry:update:guide:task":async(Z,G)=>{var B;let{getState:v,dispatch:I}=Z,{payload:{taskType:M}}=G;if(!(0,y.Ge)())return;const j=v();if((0,o.jj)(j))return;const{scene_tag:oe}=(0,o.PL)(j);if((B=MB.commonGuideHelper)!=null&&B.checkGuideHasShown&&MB.commonGuideHelper.checkGuideHasShown(M))return;await MB.commonGuideHelper.markGuideAsRead(M);const ie=MB.commonGuideHelper.getState().commonGuidesHasShown;if(I({type:"update:taskList:data",payload:{completeList:ie}}),(oe==null?void 0:oe.split("-")[0])==="DS"&&!MB.commonGuideHelper.checkGuideHasShown(u.c.GUIDE_NOVICE_2309))return;if(oi._D.every(De=>ie.includes(De))){I({type:"update:taskList:completed"});try{ENV.IS_WONDER_SHARE?I({type:"modal:update:state",payload:{mockittGuideModal:{isOpen:!0,orgCid:"",addDay:!1}}}):await I({type:"entry:fetch:guideTask:award"})}catch(De){console.error("guide error:",De)}!ENV.IS_WONDER_SHARE&&(0,Rs.kH)("novice_task_V8",{operation_type:"\u7ED3\u675F"})}if(ENV.IS_WONDER_SHARE){var Te;const De=(Te=oi.Pr.find($e=>$e.guideKey===M))==null?void 0:Te.track;(0,Rs.kH)("novice_task_V8",{operation_type:De})}},"entry:show:taskList":Z=>{let{dispatch:G}=Z;G({type:"update:taskList:isHide",payload:{isHide:!1}}),G({type:"update:taskList:isCollapse",payload:{isCollapse:!1}})},"entry:hide:taskList":Z=>{let{dispatch:G}=Z;G({type:"update:taskList:isHide",payload:{isHide:!0}}),G({type:"update:taskList:isCollapse",payload:{isCollapse:!0}})},"entry:fetch:guideTask:award":async Z=>{var G,B;let{getState:v,dispatch:I}=Z;if((G=MB)!=null&&G.commonGuideHelper.checkGuideHasShown(u.c.GUIDE_AWARDED))return;(B=MB)==null||B.commonGuideHelper.markGuideAsRead(u.c.GUIDE_AWARDED);const M=v(),j="v8_proto",Y=(0,o.wA)(M),{data:oe}=await(0,Gt.Qt)(j);setTimeout(()=>I({type:"modal:update:state",payload:{couponReceivedModal:{isOpen:!0,org:Y,coupons:[oe]}}}),2e3)}};var Ti=e(10572),di=e(53436),vs=e(26637),ei=e(50639),Si=e(70226);const Gs={"entry:findReplacePanel:search":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{isCurrentScreen:I,searchValue:M}}=G;const j=B(),Y=(0,o.eo)(j),oe=(0,Ne.jI)(j),ie=(0,Ne.bt)(j);v({type:"findReplacePanel:update",payload:{status:vs.nW.searching}});const le=(0,ei.wp)({isCurrentScreen:I||oe,currentScreenCid:Y}),ue=[],Te=[];let De=null;const $e=oe&&sdkStore.getHotItem(oe);oe&&(De={widget:$e,pageKey:(0,ei.bB)(oe)});const Qe=new Set;(0,ei.k1)({widgetList:le,searchValue:M,findWidgetList:ue,findWidgetPanelList:Te,mubans:Qe,parent:De});const qe=ue.length>0,ut=qe?vs.nW.hasResults:vs.nW.notFound;if(v({type:"findReplacePanel:update",payload:{findWidgetList:ue,findWidgetPanelList:Te,status:ut}}),qe)if(v({type:"entry:findReplacePanel:select:widget",payload:{index:1}}),v({type:"mode:update:state",payload:{isEditingEditableWidgetCid:""}}),oe){const Bt=ie||($e==null?void 0:$e.hotAttr.basket)==="bMuban";MB.notice({text:I18N.Popups.findReplacePanel.notice.searchedOther.replace(/%name%/,Bt?"\u6BCD\u7248":"\u52A8\u6001\u7EC4\u4EF6")})}else MB.notice({text:I18N.Popups.findReplacePanel.notice.searched})},"entry:findReplacePanel:select:widget":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{index:I}}=G;const M=B(),j=(0,di.sI)(M),Y=(0,Ne.jI)(M),oe=(0,o.eo)(M),{searchValue:ie}=(0,di.Gh)(M),le=j[I-1];if(!le)return;const{index:ue,parent:Te}=le;if(Te&&!(0,ei.kB)(Te)){v({type:"entry:findReplacePanel:delete:current:item",payload:{index:I}});return}const De=(0,ei.kB)(le);if(!De){v({type:"entry:findReplacePanel:delete:current:item",payload:{index:I}});return}const $e=(0,ei.YU)(De,ie);if($e.length===0||ue>=$e.length){v({type:"entry:findReplacePanel:delete:current:item",payload:{index:I}});return}if(le){const{parent:Qe,widget:qe,pageKey:ut}=le,Bt=ut===oe;if(Qe)Bt&&Y?v({type:"entry:findReplacePanel:goto:widget",payload:{select:le,parent:Qe}}):(Y&&v({type:"entry:exit:edit:basket"}),v({type:"entry:findReplacePanel:goto:panel:widget",payload:{parent:Qe}}),v({type:"entry:findReplacePanel:goto:widget",payload:{select:le,parent:Qe}}));else{const{isInPanel:ao}=le;Y&&!ao&&v({type:"entry:exit:edit:basket"}),v({type:"entry:findReplacePanel:goto:widget",payload:{select:le,isSamePanel:Bt}})}v({type:"findReplacePanel:update",payload:{findSelectWidgetCid:qe.key,selectIndex:I}}),v({type:"entry:design:zoom:widget",payload:{hotItem:De,mindKey:le.mindKey}})}},"entry:findReplacePanel:goto:widget":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{select:I,parent:M=null,isSamePanel:j=!1}}=G;const Y=B(),oe=(0,o.eo)(Y),{widget:ie,isInPanel:le,pageKey:ue,mindKey:Te}=I;let De=!1;ue!==oe&&!M&&(le||(v({type:"entry:goto:project-alike",payload:{screenMetaCid:ue}}),v({type:"screen:update:screen-selection",payload:{screenSelection:[ue]}}),De=!0),j||(v({type:"entry:goto:project-alike",payload:{screenMetaCid:ue}}),De=!0)),v({type:"entry:update:selection:select:items",payload:{type:"selection:clear"}}),ie.hotAttr.type===l.x.WMindNode?Te&&v({type:"entry:select:items",payload:{cids:[Te]}}):v({type:"entry:select:items",payload:{cids:[ie.key]}}),De&&MB.notice({text:I18N.Popups.findReplacePanel.notice.gotoOtherPages})},"entry:findReplacePanel:goto:panel:widget":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{parent:I}}=G;const{widget:M}=I;v({type:"entry:edit:basket:directly",payload:{basketKey:M.key}})},"entry:findReplacePanel:replace:widget":async Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,o.eo)(v),M=go.y.query.getMissFontHiKeySet(v),{selectIndex:j,findWidgetList:Y,searchValue:oe,replaceValue:ie}=(0,di.Gh)(v),le=Y[j-1],{index:ue,pageKey:Te}=le,De=(0,ei.kB)(le),$e=Y.length,Qe=j>=$e?1:j;if(De){const qe=(0,ei.YU)(De,oe),ut=(0,ei.t$)(ie).includes((0,ei.t$)(oe)),Bt=(0,Si.mR)(M,De.key);if(qe.length>0&&ue<=qe.length-1){const ao=qe[ue];if(Bt){const ko=j>=$e?1:j+1;B({type:"entry:findReplacePanel:select:widget",payload:{index:ko}}),(0,Si.od)();return}const{newItem:To}=(0,ei.qk)({hotItem:De,matchValue:oe,replaceValue:ie,current:ao});if(To){if(sdkStore.updateHotItem(To),Te===I&&B({type:"entry:remove:selected:items:from-rich-text",payload:{hotItems:[To]}}),B({type:"entry:rebuild:screen-widget-tree"}),!ut){const ko=(0,ei.LH)(Y,j,To);B({type:"findReplacePanel:update",payload:{findWidgetList:ko,selectIndex:Qe}}),ko.length===0?B({type:"findReplacePanel:update",payload:{status:vs.nW.notFound,selectIndex:1}}):(B({type:"findReplacePanel:update",payload:{selectIndex:Qe}}),B({type:"entry:findReplacePanel:select:widget",payload:{index:Qe}}))}MB.notice({text:I18N.Popups.findReplacePanel.notice.singleReplaceSuccess,type:"success"});return}}}MB.notice({text:I18N.Popups.findReplacePanel.notice.searchNotFound})},"entry:findReplacePanel:replace:all:widget":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{handleReplaceAllNotice:I}}=G;const M=B(),j=go.y.query.getMissFontHiKeySet(M),{findWidgetList:Y,searchValue:oe,replaceValue:ie}=(0,di.Gh)(M),le=(0,o.eo)(M),ue=(0,ei.FH)(Y),Te=[];let De=!1;for(const Bt of ue)(0,Si.mR)(j,Bt[0].widget.key)?De=!0:Te.push(Bt);const $e=(0,ei.t$)(ie).includes((0,ei.t$)(oe));let Qe=[];const qe=[],ut=[];Te.forEach(Bt=>{const{widget:ao,pageKey:To}=Bt[0],ko=(0,ei.kB)(Bt[0]),vn=(0,ei.YU)(ao,oe);if(ko){const Hn=(0,ei.YU)(ko,oe);if(Hn.length>0){qe.push(Hn);const os=(0,ei.Ly)({hotItem:ko,matchValue:oe,replaceValue:ie,indexs:Hn});ut.push(os),To===le&&v({type:"entry:remove:selected:items:from-rich-text",payload:{hotItems:[os]}})}Hn.length<vn.length&&(Qe=Qe.concat(new Array(vn.length-Hn.length).fill(1)))}else Qe.push(vn)}),sdkStore.updateHotItemBatch(ut),v({type:"entry:rebuild:screen-widget-tree"}),I(qe.flat(),Qe.flat()),$e||v({type:"findReplacePanel:update",payload:{findWidgetList:[],selectIndex:1,status:vs.nW.notFound}}),De&&(0,Si.od)()},"entry:findReplacePanel:delete:current:item":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{index:I}}=G;const M=B(),Y=(0,di.sI)(M).filter((oe,ie)=>I-1!==ie);if(await v({type:"findReplacePanel:update",payload:{findWidgetList:Y}}),Y.length===0)v({type:"findReplacePanel:update",payload:{status:vs.nW.notFound,selectIndex:1}});else{const oe=Y.length,ie=I>=oe?oe:I;v({type:"entry:findReplacePanel:select:widget",payload:{index:ie}})}MB.notice({text:I18N.Popups.findReplacePanel.notice.nextNotFound})},"entry:findReplacePanel:toggle:show":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,E.Xf)(v),M=(0,E.uE)(v),j=(0,di.jQ)(v),oe=I?M+0:0,ie=(0,f.Yt)(vs.nb,56,f.qW.Number),le=(0,f.Yt)(vs.Zz,oe+8,f.qW.Number);B({type:"findReplacePanel:update",payload:{show:!j,isFocusPanel:!j}}),B({type:"findReplacePanel:set:position",payload:{position:{top:ie,left:le}}}),B({type:"mind:exit:edit:state"}),j&&B({type:"findReplacePanel:reset:state"})},"entry:findReplacePanel:remove:findSelectWidgetCid":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{selections:I}}=G;const M=B(),j=(0,di.gP)(M);if(j&&I.includes(j)){const oe=(0,di.sI)(M).filter(ie=>ie.widget.key!==j);v({type:"findReplacePanel:update",payload:{findSelectWidgetCid:"",selectIndex:0,findWidgetList:oe}})}}};var Vs=e(63711),ps=e.n(Vs),kn=e(1540),zn=e(61724);function hs(Z,G,B){const v=[];return B.forEach(I=>{const M=ps()(I);if(I.textV0){const j=I.textV0.text;Z==="textColor"&&(M.textV0.text=ri(j)),Z==="bold"&&(M.textV0.text=_t(j)),Z==="italic"&&(M.textV0.text=Li(j)),Z==="textDecoration"&&G==="line-through"&&(M.textV0.text=Aa(j)),Z==="textDecoration"&&G==="underline"&&(M.textV0.text=ji(j)),Z==="fontSize"&&(M.textV0.lineHeight=Math.round(G*1.45))}v.push(M)}),v}function Ss(Z,G,B,v){const I=[];return B.forEach(M=>{const j=ps()(M);M.textV0&&(M.type!=="wTree"||!v)&&(Z==="bold"&&(j.textV0.bold=G),Z==="italic"&&(j.textV0.italic=G),Z==="fontFamily"&&(j.textV0.fontFamily=G),Z==="fontWeight"&&(j.textV0.fontWeight=G)),I.push(j)}),I}function fi(Z){let{attr:G,value:B,supAttr:v,items:I}=Z;const M=[];return I.forEach(j=>{const Y=ps()(j);j[v]&&v==="textInput"&&G==="prefillTextColorV0"&&(Y.textInput.prefillTextColorV0=B),M.push(Y)}),M}const ri=Z=>Z.replace(/<font.*?>(.*?)<\/font>/g,"$1"),Li=Z=>Z.replace(/<i>(.*?)<\/i>/g,"$1"),ji=Z=>Z.replace(/<u>(.*?)<\/u>/g,"$1"),_t=Z=>Z.replace(/<b>(.*?)<\/b>/g,"$1").replace(/<span.*?>(.*?)<\/span>/g,"$1"),Aa=Z=>Z.replace(/<strike>(.*?)<\/strike>/g,"$1");var Ki=e(68496),bi=e(80504),sa=e(9376),Zi=e(17383),Fa=e(57465),to=e(45309),Qt=e(96958),Sn=e(91416),Vo=e(15336),ho=e(56693),Uo=e(7283),pn=e(70549),ys=e(39709),Dn=e(47442),Hs=e(66802),Qn=e(52098),Gi=e(81962);const oa={"entry:batch:edit:text:content":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{contentArray:I}}=G;const M=B(),j=(0,$.Z9)(M),Y=[];j.forEach(oe=>{const ie=No(oe,I);ie&&Y.push({key:oe.key,hotAttr:{...ie,name:ie.display_name}})}),Y.length>0&&v({type:"entry:widget:change",payload:{flatChgList:Y}})},"entry:set:specify:text:attr":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{attr:I,value:M,widgets:j}}=G;const Y=B();ta({widgets:j,dispatch:v,attr:I,value:M,state:Y}),(0,Hs.Xq)(j.map(oe=>(0,bt.Op)(oe.key)))},"entry:set:text:align":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{attr:I,value:M}}=G;const j=B(),Y=(0,$.Z9)(j),oe=Y.filter(ue=>Ze.VV.includes(ue.type)),ie=Y.filter(ue=>!Ze.VV.includes(ue.type));if(oe.length>0){const ue=oe.map(Te=>({key:Te.key,hotAttr:{richTextV1:{...Te.richTextV1,[I]:M}}}));v({type:"entry:widget:change",payload:{flatChgList:ue}})}const le=oe.filter(ue=>l.Q.USE_CLIP_TEXT.includes(ue.type));if(le.length>0){const ue=le.map(Te=>{const De=sdkStore.getHotItem(Te.key);return De?{key:Te.key,hotAttr:{...!De.hotAttr.richTextV1.isClipText&&{richTextMetric:(0,to.Ro)(De.hotAttr)}}}:null});v({type:"entry:widget:change",payload:{flatChgList:ue}})}if(ie.length>0){const ue=ie.map(Te=>({key:Te.key,hotAttr:{textV0:{...Te.textV0,[I]:M}}}));v({type:"entry:widget:change",payload:{flatChgList:ue}})}(0,Hs.Xq)(Y.map(ue=>(0,bt.Op)(ue.key)))},"entry:set:text:attr":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{attr:I,value:M,compressible:j=!0,fromUI:Y}}=G;const oe=B(),ie=(0,$.Z9)(oe),le=(0,Ne.nx)(oe),ue=(0,Ut.c)(oe),Te=(0,We.WH)(oe),De=(0,We.GP)(oe),$e=(0,We.OX)(oe),Qe=(0,We.aJ)(oe),qe=go.y.query.getMissFontHiKeySet(oe),ut=(ie==null?void 0:ie.length)===1&&ie[0].key===Te&&$e.length,Bt=ut?$e:ie,ao=ut?De:ue,To=Bt.filter(on=>Qt.cX.includes(on.type));if(To.length===0)return;const ko=To.filter(on=>Ze.VV.includes(on.type)),vn=To.filter(on=>!Ze.VV.includes(on.type)),Hn=To.filter(on=>(0,ho.kY)(on));if(sdkStore.combineMergeMark("update-text-attr"),ta({widgets:To,dispatch:v,attr:I,value:M,state:oe,compressible:j,fromUI:Y,recordAvailableInheritTextAttrs:Hs.Xq,missFontHiKeySet:qe}),ao&&!Qe&&((0,Ze.e_)(ao.type)||(0,Ze.gM)(ao.type)))return;const os=ko.filter(on=>l.Q.USE_CLIP_TEXT.includes(on.type));if(os.length>0){const on=os.map(hn=>{const Rn=sdkStore.getHotItem(hn.key);return Rn?{key:hn.key,hotAttr:{...!Rn.hotAttr.richTextV1.isClipText&&{richTextMetric:(0,to.Ro)(Rn.hotAttr)}}}:null});v({type:"entry:widget:change",payload:{flatChgList:on}})}if(!(I==="sizeType"&&To.find(on=>on.type===l.x.WRichText))){if(Object.keys(le).length===0){const on=Rn=>{let{a:Ln,v:Ms,supAttr:pi,list:Ts}=Rn;const Js=Ts.map(ki=>{const js=sdkStore.getHotItem(ki.key);return{key:ki.key,hotAttr:{[pi]:{...js.hotAttr[pi],[Ln]:Ms}}}});v({type:"entry:widget:change",payload:{flatChgList:Js}})},hn=ko.filter(Rn=>Rn.type===l.x.WMindNode);if(hn.length>0){const{a:Rn,v:Ln}=Ja(I,M,"wMind");on({a:Rn,v:Ln,supAttr:"richTextV1",list:hn})}if(vn.length>0){const{a:Rn,v:Ln}=Ja(I,M,"commonText");on({a:Rn,v:Ln,supAttr:"textV0",list:vn})}if(Hn.length>0)if(I==="prefillTextColorV0")on({a:"prefillTextColorV0",v:M,supAttr:"textInput",list:Hn});else{const{a:Rn,v:Ln}=Ja(I,M,"commonText");on({a:Rn,v:Ln,supAttr:"textV0",list:Hn})}}ut&&I!=="textColor"&&v({type:"entry:mind:update:mind-size"}),sdkStore.combineMerge("update-text-attr")}},"entry:set:text:attr:fakeOverride":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{attrValueList:I,supAttr:M,isTreeSelectNode:j}}=G;const Y=B(),oe=(0,$.Z9)(Y),ie=(0,Ut.c)(Y),le=(0,We.WH)(Y),ue=(0,m.UV)(Y),Te=(0,We.OX)(Y),De=(0,o.Mj)(Y),Qe=(oe==null?void 0:oe.length)===1&&oe[0].key===le&&Te.length?Te:oe;if(!!ie&&ie.cid===Qe[0].cid&&De&&(0,Ze.AG)(ie)){(0,Fa.nk)(De,I);return}const ut=La({widgets:Qe,attrValueList:I,editingItem:ie,richTextEditorState:De,widgetStore:ue,supAttr:M,isTreeSelectNode:j});v({type:"selection:update:state",payload:{widgetTreeData:ut}})},"entry:set:text:attr:fakeOverride:restore":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,m.UV)(v),M=ya(I);M&&B({type:"selection:update:state",payload:{widgetTreeData:M}})},"entry:set:text:attr:by:key":async(Z,G)=>{var B;let{getState:v,dispatch:I}=Z,{payload:{attr:M,action:j,isInEditing:Y=!1}}=G;const oe=v(),ie=(0,$.Z9)(oe),le=(0,We.OX)(oe),ue=ie.some(os=>{let{type:on}=os;return on===l.x.WMind})&&!le.length;if(ie.length===0||((B=ie[0])==null?void 0:B.name)===l.x.RbPage||ue)return;const Te=le[0]||ie[0],De=(0,zn.zX)(oe),$e=Te.type===l.x.WTable&&De,Qe=(0,Ze.AG)(Te);if(!Qe&&Te&&!Te.textV0)return;const qe={underline:"textDecoration",lineThrough:"textDecoration",boldType:"bold"},ut={lineThrough:"strikethrough",boldType:"fontWeight"};let Bt;Qe?Bt=ut[M]||M:Bt=qe[M]||M;const ao=Qe?(0,Dn.xH)({baseItem:Te})[Bt]:Te.textV0[Bt],To={bold:!ao,boldType:!ao,italic:!ao,fontSize:j==="increase"?ao+1:ao-1<1?1:ao-1,textDecoration:ao==="line-through"||ao==="underline"?"noraml":Bt==="underline"?"underline":"line-through",underline:ao==="normal"||ao==="line-through"?"underline":"normal",lineThrough:ao==="normal"||ao==="underline"?"line-through":"normal"},ko={...To,underline:!ao,lineThrough:!ao,fontWeight:ao==="bold"?"regular":"bold"},vn=Qe?ko[Bt]:To[Bt];if($e){I({type:"entry:table:set:cell:attr:new",payload:{attr:Bt,value:vn}});return}let Hn=Bt;Qe&&(Hn=Bt==="bold"?"boldType":Bt==="strikethrough"?"line-through":Bt),await I({type:"entry:set:text:attr",payload:{attr:Hn,value:vn}})},"entry:set:richText:attr:fontWeight":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{fontFamily:I,fontWeight:M,boldType:j}}=G;if(I){const oe=(0,Zi.dA)(I).map(le=>{let{value:ue}=le;return ue});j===1?!(0,Zi.GZ)(M)&&oe.includes("bold")&&await v({type:"entry:set:text:attr",payload:{attr:"fontWeight",value:"bold"}}):await v({type:"entry:set:text:attr",payload:{attr:"fontWeight",value:"regular"}})}},"entry:paste:text:from:clipboard":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{html:I,pasteAtData:M}}=G;if(MB.f.isPastingRichText=!0,I===void 0)return;const Y=new DOMParser().parseFromString(I,"text/html"),oe=Y.querySelectorAll("[data-mb-type]");let ie,le,ue=null;if(oe.length>0)ie=(0,ys.lN)("COPIED__MB__WIDGET");else{var Te;ue=Y.querySelector("[data-mb-text-flag]"),le=(Te=Y.querySelector("[data-mb-richData]"))==null?void 0:Te.getAttribute("data-mb-richdata"),ie=(0,pn.Ld)({html:I,isClearStyle:ue===null})}const De=(0,a.gu)({type:l.x.WRichText,attrs:{textV1:ie,isRawText:ue===null}});if(le)try{const $e=JSON.parse(le).richData;De.w=$e.w,De.h=$e.h,De.richTextV1=$e.richTextV1}catch($e){console.warn("clipboard-richData-error",$e,{html:I,richDataAttr:le})}M?(De.x=M.worldPos.x,De.y=M.worldPos.y,v({type:"entry:batch:create:items",payload:{data:[{items:[De],width:De.w,height:De.h}],sup:M.keyRndSup,offset:{top:0,left:0}}})):v({type:"entry:batch:create:items",payload:{data:[{items:[De],width:De.w,height:De.h}]}})},"entry:min:fontsize:issue":Z=>{let{getState:G,dispatch:B}=Z;if(MB.f.inSharing||(0,sa.Fr)())return;const v=G(),I=v==null?void 0:v.ui.fixedLayout.preference;if(I&&I.showFsWarning)return MB.global.popupHelper.confirmAsync({title:I18N.railsLib.warning,desc:I18N.railsLib.font_size_issue,confirmText:I18N.railsLib.know_how,cancelText:I18N.railsLib.remind_not,isClose:!1}).then(M=>{if(M)return(0,Vo.JW)("/hc/articles/127","_blank","noreferrer");B({type:"entry:update:preference-data",payload:{show_fs_warning:!1}})})}};function ta(Z){let{widgets:G,dispatch:B,attr:v,value:I,state:M,compressible:j=!0,fromUI:Y,recordAvailableInheritTextAttrs:oe,missFontHiKeySet:ie}=Z;sdkStore.combineMergeMark("text-attr");const le=(0,Ut.c)(M),ue=(0,o.Mj)(M),Te=!!le&&le.cid===G[0].cid;v==="fontFamily"&&(G=G.map(Qe=>({...Qe,"!ffVersion":1})));const De=G.filter(Qe=>Qe.type===l.x.WRichText);if(De.length>0&&v==="sizeType"){const Qe=(0,bi.GP)(I,De);B({type:"entry:widget:change",payload:{flatChgList:Qe}}),sdkStore.combineMerge("text-attr");return}const $e=G.filter(Qe=>l.Q.USE_TEXT_FONT_DIRECTION.includes(Qe.type));if(v==="fontDirection"){const Qe=(0,bi.rA)(I,$e);B({type:"entry:widget:change",payload:{flatChgList:Qe}}),sdkStore.combineMerge("text-attr"),oe&&oe(Qe.map(qe=>(0,bt.Op)(qe.key)));return}if(v==="isClipText"){const Qe=G.filter(qe=>l.Q.USE_CLIP_TEXT.includes(qe.type)).map(qe=>({key:qe.key,hotAttr:{richTextV1:{...qe.richTextV1,isClipText:I}}}));B({type:"entry:widget:change",payload:{flatChgList:Qe}}),sdkStore.combineMerge("text-attr");return}if(Te){if((0,Ze.AG)(le)&&ue){const Qe=qe=>{if((0,Gi.$B)(qe)&&!["sizeType","listType","isClipText","paddingTuple"].includes(v)){const ut=(0,Qn.dM)(qe.getCurrentContent()),Bt=(0,Tn.qn)(ut);oe([le].map(ao=>(0,bt.Op)(ao.key,{textV1:Bt})))}if(v==="fontSize"){const ut=(0,Qn.dM)(qe.getCurrentContent()),Bt=(0,Tn.qn)(ut);le.richTextV1.fontSize=(0,Wo.Zm)({...le,textV1:Bt}),le.richTextV1.lineHeight=(0,Wo.sn)({...le,textV1:Bt})}};if((0,Fa.l2)(ue,v,I,j,Qe),v==="lineHeight"){const qe=G.filter(ut=>ut.richTextV1["!lhVersion"]===1).map(ut=>{const Bt=sdkStore.getHotItem(ut.cid);return{key:ut.cid,hotAttr:{richTextV1:{...Bt.hotAttr.richTextV1,"!lhVersion":3}}}});qe.length>0&&B({type:"entry:widget:change",payload:{flatChgList:qe}})}else if(v==="paraSpacing"){const qe=G.filter(ut=>ut["!psVersion"]===1).map(ut=>({key:ut.cid,hotAttr:{"!psVersion":3}}));qe.length>0&&B({type:"entry:widget:change",payload:{flatChgList:qe}})}}}else{const Qe=G.filter(Rn=>(0,Ze.AG)(Rn)),qe=G.filter(Rn=>!(0,Ze.AG)(Rn)),{a:ut,v:Bt}=Ja(v,I,"richText"),ao=(0,bi.zs)(Qe,ut,Bt,Y),{a:To,v:ko}=Ja(v,I,"commonText"),vn=hs(To,ko,qe),Hn=G.filter(Rn=>(0,ho.kY)(Rn));let os=[];Hn.length>0&&(v==="prefillTextColorV0"?os=fi({attr:"prefillTextColorV0",value:I,supAttr:"textInput",items:Hn}):os=hs(To,ko,Hn));const on=ao.concat(vn).concat(os),hn=on.map(Rn=>({key:Rn.cid,hotAttr:{...Rn,name:Rn.display_name}}));B({type:"entry:widget:change",payload:{flatChgList:hn}}),["sizeType","listType","isClipText","paddingTuple"].includes(v)||oe&&oe(on.map(Rn=>(0,bt.Op)(Rn.key)))}sdkStore.combineMerge("text-attr"),(v==="fontFamily"||v==="fontWeight"||v==="fontStyle")&&G.filter(Qe=>ie.has(Qe.cid)).length>0&&setTimeout(()=>{(0,Si.WV)()},4)}const Sa=new Map,La=Z=>{let{widgets:G,attrValueList:B,supAttr:v,widgetStore:I,isTreeSelectNode:M}=Z,j=G.filter(ie=>(0,Ze.AG)(ie)),Y=G.filter(ie=>!(0,Ze.AG)(ie));for(const[ie,le]of B){const{a:ue,v:Te}=Ja(ie,le,"richText"),{a:De,v:$e}=Ja(ie,le,"commonText");if(j=(0,bi.zs)(j,ue,Te),Y=Ss(De,$e,Y,M),v){const Qe=v.split("-"),qe=Qe.length;for(const ut of Y)if(ut.type===l.x.WTree)M&&(ut.selectNode[De]=$e);else{let Bt=ut;for(let ao=0;ao<qe;ao++)Bt=Bt[Qe[ao]];Bt.textV0[De]=$e}}}const oe=j.concat(Y);for(const ie of G)Sa.get(ie.key)||Sa.set(ie.key,JSON.parse(JSON.stringify(ie)));return I.updateWidgets2(oe)},ya=Z=>{try{if(Sa.size===0)return;const G=[...Sa.values()];if(G.length==0)return;const B=Z.updateWidgets(G);return Sa.clear(),B}catch(G){Sa.clear();return}},Ja=(Z,G,B)=>{let v=Z,I=G;return B==="richText"?(Z==="textColor"&&typeof G=="number"&&(I=(0,Ki.t0)(G)),Z==="textDecoration"&&(G==="underline"&&(v="underline",I=!0),G==="line-through"&&(v="line-through",I=!0),G==="normal"&&(v="underline",I=!1)),Z==="italic"&&(v="fontStyle",I=G?"italic":"normal"),{a:v,v:I}):B==="wMind"?(Z==="textColor"&&typeof G=="number"&&(I=(0,Ki.t0)(G)),Z==="boldType"&&(v="bold"),Z==="line-through"&&(v="strikethrough"),{a:v,v:I}):(Z==="textColor"&&typeof G=="string"&&(I=(0,Sn.dT)(G)),Z==="underline"&&(v="textDecoration",I=G?"underline":"normal"),Z==="line-through"&&(v="textDecoration",I=G?"line-through":"normal"),Z==="fontStyle"&&(v="italic",I=G==="italic"),{a:v,v:I})};function No(Z,G){let B,v;if(Ze.VV.includes(Z.type)){const I=(0,Fa.Qj)(Z.textV1,G);I&&(B=(0,bi.zs)([Z],"textV1",I,!1)[0])}else{Z.type===l.x.WMSelect?v=G.join("\n"):[l.x.WWebpage,l.x.WButton,l.x.WButtonSolid,l.x.WMTextInput,l.x.WMTextArea,l.x.WDropMenu,l.x.WElbow].includes(Z.type)?v=G[0]:v=(0,Go.c1)(G.join("\n"));let I={textV0:{...Z.textV0,text:v}};if([l.x.WMTextInput,l.x.WMTextArea].includes(Z.type)&&(I={textInput:{...Z.textInput,prefillTextV0:v}}),B={...Z,...I},Z.type===l.x.WMTooltip){const M=(0,Uo.EO)(B),j=Z.y-Z.h/2;B={...B,h:M,y:j+M/2}}}return B}var ct=e(80412),Mt=e(29601),ht=e(51514);const oo={"entry:autoFillPanel:toggle:show":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const M=B(),j=(0,kn.wb)(M),{canClose:Y=!0,openFrom:oe}=I,ie=(0,f.Yt)(ct.i,52,f.qW.Number),le=(0,f.Yt)(ct.W,215,f.qW.Number);v({type:"autoFillPanel:set:position",payload:{position:{top:ie,left:le}}}),Y?(v({type:"autoFillPanel:update",payload:{show:!j,openFrom:oe}}),j&&v({type:"autoFillPanel:reset:state"})):v({type:"autoFillPanel:update",payload:{show:!0,openFrom:oe}})},"entry:autoFill:update:widget":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const M=B(),j=go.y.query.getMissFontHiKeySet(M),{widgetType:Y,data:oe,type:ie,device:le}=I;let ue=!1,Te;if(ie==="create")Y===l.x.WRichText?Te=(0,a.gu)({type:l.x.WRichText,attrs:{richText:(0,a.DV)(oe.content,(0,Mt.w)(),le)}}):Y===l.x.WImage&&(Te=(0,J.BL)(oe)),(0,N.Q7)([Te],Te.width||Te.w,Te.height||Te.h);else if(ie==="update"){switch(Y){case"wRichText":{const De=[];oe.forEach($e=>{if(j.has($e.key)){ue=!0;return}const Qe=No($e,$e.content);Qe&&(delete Qe.content,De.push({key:Qe.key,hotAttr:{...Qe,name:Qe.display_name}}))}),De!=null&&De.length&&v({type:"entry:widget:change",payload:{flatChgList:De}});break}case"wImage":{const De=oe.map($e=>{const Qe=(0,ht.JB)($e.asset,[$e])[0];return delete $e.asset,{key:Qe.key,hotAttr:{...Qe,name:Qe.display_name}}});v({type:"entry:widget:change",payload:{flatChgList:De}});break}case"wCarousel":{const De=oe.map($e=>{const Qe=ps()($e.carousel.slides);for(let qe=0;qe<$e.carousel.slides.length;qe++){const ut=sdkStore.getHotItem(Qe[qe].asset)?sdkStore.getHotItem(Qe[qe].asset).hotAttr.extData:Qe[qe].asset;Qe[qe].asset=(0,J.q4)("Carousel",ut).key}return{key:$e.key,hotAttr:{carousel:{...$e.carousel,slides:Qe}}}});v({type:"entry:widget:change",payload:{flatChgList:De}});break}default:{const De=oe.map($e=>({key:$e.key,hotAttr:{...$e,name:$e.display_name}}));v({type:"entry:widget:change",payload:{flatChgList:De}})}}ue&&(0,Si._f)()}}};var uo=e(43391),So=e(98195),zo=e(8580),en=e(4210);const mn=Z=>Z.replace(/_(\w)/g,(G,B)=>B.toUpperCase()),jn={"entry:update:preference":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const M=B(),{isFromAbar:j}=(0,o.fv)(M)||{};await v({type:"entry:update:preference-data",payload:I}),v({type:"entry:update:ui:by:preference"}),j&&(0,zo.sg)("currentTheme",I)},"entry:update:iconinfo":async(Z,G)=>{let{dispatch:B}=Z,{payload:v}=G;const{iconDefaultSize:I,iconDefaultColor:M}=v,j={};M&&(j.icon_color=M),I&&(j.icon_size=I),await B({type:"entry:update:preference-data",payload:j}),B({type:"entry:update:ui:by:iconinfo"})},"entry:update:history-colors":(Z,G)=>{let{dispatch:B}=Z,{payload:v}=G;const{historyColors:I}=v;B({type:"colorpanel:set:historyColors",payload:{historyColors:JSON.parse(I)}}),I&&B({type:"entry:update:preference-data",payload:{history_colors_v2:I}})},"entry:update:favorite-colors":(Z,G)=>{let{dispatch:B}=Z,{payload:v}=G;const{favoriteColors:I}=v;B({type:"colorpanel:set:favoriteColors",payload:{favoriteColors:JSON.parse(I)}}),I&&B({type:"entry:update:preference-data",payload:{favorite_colors_v2:I}})},"entry:update:auto-fill-history":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{attr:I,value:M}}=G;const j=B(),Y={...(0,ve.dd)(j),[I]:M};v({type:"entry:update:preference-data",payload:{auto_fill_history:JSON.stringify(Y)}})},"entry:update:color_panel_mode":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{mode:I}}=G;v({type:"entry:update:preference-data",payload:{color_panel_mode:I}})},"entry:update:preference_flags_by_sticky":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{flags:I}}=G;if(I){const M=(0,en.s4)(I);v({type:"entry:update:preference-data",payload:{flags:M}})}},"entry:update:preference-layout_v8":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{layout_v8:I}}=G;v({type:"entry:update:preference-data",payload:{layout_v8:I}});const M=B(),j=(0,E.OW)(M),{isEmptyScreen:Y}=(0,uo.C)(M);I==="old_right"&&j===So.lS.Directory&&v({type:"entry:resources:update:current:popup:panel",payload:{name:So.lS.Builtin}}),j||v({type:"entry:resources:update:current:popup:panel",payload:{name:I==="old_right"?So.lS.Builtin:So.lS.Directory}}),Y&&I!=="old_right"&&v({type:"entry:resources:update:current:popup:panel",payload:{name:So.lS.Directory}}),setTimeout(()=>{v({type:"entry:update:viewport:rect"}),v({type:"entry:update:screen_list_rect"})},200)},"entry:update:preference-data":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const M=B(),{isDesign:j}=(0,o.W4)(M),Y={};I&&Object.entries(I).forEach(oe=>{let[ie,le]=oe;const ue=mn(ie);["builtinListInvisible","recentlyUsedScreenMetaIcons"].includes(ue)?Y[ue]=new Set(JSON.parse(le)):ue==="autoFillHistory"||ue==="defaultFontFamily"||ue==="defaultFontSize"?Y[ue]=JSON.parse(le):Y[ue]=le}),await v({type:"preference:update:state",payload:Y}),j&&await(0,H.SD)(I)},"preference:toggle:theme":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,ve.O4)(v);B({type:"entry:update:preference",payload:{theme:I===g.Sx.LIGHT?g.Sx.DARK:g.Sx.LIGHT}}),B({type:"entry:init:ruler:canvas"})},"preference:toggle:multiplayerMouse":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,ve.lU)(v);B({type:"entry:update:preference",payload:{isShowMultiCursor:!I}})},"preference:toggle:showRulerReferLine":Z=>{let{getState:G,dispatch:B}=Z;const v=G();if(!(0,ve.qT)(v)){MB.notice({text:"\u8BF7\u5148\u542F\u7528\u6807\u5C3A\u4EE5\u4F7F\u7528\u6B64\u529F\u80FD",type:"warning"});return}const M=(0,ve.gf)(v);B({type:"entry:update:preference",payload:{show_ruler_line:!M}})},"preference:toggle:ruler":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,ve.qT)(v);B({type:"entry:update:preference",payload:{ruler:!I}})},"preference:toggle:AlignLine":Z=>{let{getState:G,dispatch:B}=Z;const v=G();if(!(0,ve.qT)(v)){MB.notice({text:"\u8BF7\u5148\u542F\u7528\u6807\u5C3A\u4EE5\u4F7F\u7528\u6B64\u529F\u80FD",type:"warning"});return}const M=(0,ve.Nn)(v);B({type:"entry:update:preference",payload:{show_align_line:!M}})},"preference:toggle:containSelect":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,ve.vZ)(v);B({type:"entry:update:preference",payload:{contain_select:!I}})},"preference:toggle:useNativeEyedropper":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,ve.AM)(v);B({type:"entry:update:preference",payload:{use_native_eyedropper:!I}})},"preference:toggle:dragMode":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,ve.PI)(v);B({type:"entry:update:preference",payload:{show_drag_mode:!I}})},"preference:toggle:panelLinkDefaultTransition":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,ve.Bl)(v);B({type:"entry:update:preference",payload:{panel_link_default_transition:I===0?1:0}})},"preference:toggle:stateLinkDefaultTransition":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,ve.EK)(v);B({type:"entry:update:preference",payload:{state_link_default_transition:I===0?1:0}})}};var Oo=e(94153),Nn=e(44622),es=e(60863),zt=e(35078),po=e(79700),Fo=e(64303),Mn=e(59305),Fn=e(29107),ts=e(57464);const As=Z=>(0,Nn.e7)(Z.key).map(B=>{let{key:v}=B;return v}),Is=Z=>{const G=Z.map(I=>I.cid),B=[],v=I=>I.map(M=>({...M,children:v(M.children.filter(j=>{if(G.includes(j.cid))return B.push(j.cid),!0}))}));return v(Z).filter(I=>!B.includes(I.cid))},io=Z=>{const G=[],B=v=>{const{hotAttr:I,sub:M=[]}=sdkStore.getHotItem(v)||{};(I==null?void 0:I.bunch)===l.x.RbPage&&!(I!=null&&I.asFolder)?G.push(v):M.forEach(j=>B(j))};return Z.forEach(v=>B(v)),G},Jo={"entry:update:screen:list":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,o.z$)(v);if((0,qo.St)()&&I.screen_visible_switch){const{screenTreeData:M,screenTreeMap:j,screenDataMap:Y}=(0,zt.wb)(I.screen_visible_list);B({type:"screen:set:all:screen-data",payload:{screenTreeData:M,screenTreeMap:j,screenDataMap:Y}})}else{const{screenTreeData:M,screenTreeMap:j,screenDataMap:Y}=(0,zt.tb)("B@main");B({type:"screen:set:all:screen-data",payload:{screenTreeData:M,screenTreeMap:j,screenDataMap:Y}})}},"entry:create:screen:auto:to:root-project":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I={isCreateChildren:!1,parentScreen:null,direction:Fo.$.MOVEUP}}=G;const M=B();if(!(0,Fn.Iz)())return;const{isCreateChildren:j,parentScreen:Y,direction:oe}=I;if(j&&Y){v({type:"entry:create:new:child:screen",payload:{screen:Y}});return}const ie=(0,E.He)(M),le=(0,o.Ur)(M),ue=le==null?void 0:le.cid,Te=(0,E.Hs)(M),De=ie[Te.length===1?Te[0]:ue],$e=ie[ue];v({type:"entry:create:screen:to:root-project",payload:{screen:Y||De||$e,direction:oe}})},"entry:create:screen:to:root-project":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{screen:I,direction:M=Fo.$.MOVEUP}}=G;const j=B(),Y=(0,o.PL)(j);if(!I){v({type:"entry:create:and:activate:screen",payload:{attrs:{name:I18N.LeftSidePanel.page,zIndex:1,sup:"B@main"}}});return}const oe=(0,Nn.BS)(I),ie=oe.findIndex($e=>$e.cid===I.key),le=M===Fo.$.MOVEDOWN?ie+M<0?0:ie+M+1:ie+M;oe.splice(le,0,null),oe.forEach(($e,Qe)=>{$e&&($e.sup!==I.sup||$e.zIndex!==Qe+1)&&sdkStore.updateHotAttrMerge($e.cid,{zIndex:Qe+1})});const Te={name:(0,es.pV)(oe),zIndex:le+1,sup:I.sup};v({type:"entry:create:and:activate:screen",payload:{attrs:Te}});const De=As(I);v({type:"screen:del:collapseKeySet",payload:{refs:De,projectCid:Y.cid}})},"entry:create:new:child:screen":(Z,G)=>{var B;let{getState:v,dispatch:I}=Z,{payload:{screen:M}}=G;const j=v(),Y=(0,o.PL)(j);let oe=[];if(M!=null&&(B=M.sub)!=null&&B.length){const Te=sdkStore.getHotItem(M.sub[0]);oe=(0,Nn.BS)(Te)}const le={name:(0,es.pV)(oe),zIndex:oe.length+1,sup:M.key};I({type:"entry:create:and:activate:screen",payload:{attrs:le}});const ue=As(M).concat(M.key);I({type:"screen:del:collapseKeySet",payload:{refs:ue,projectCid:Y.cid}})},"entry:create:and:activate:screen":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{attrs:I}}=G;const M=B(),{attr:{orientation:j}}=(0,o.PL)(M),{width:Y,height:oe,model:ie}=(0,o.PL)(M),le=j==="landscape"?oe:Y,ue=j==="landscape"?Y:oe;sdkStore.combineMergeMark("create-screen");const Te=(0,es.Hz)({...I,device:ie,deviceH:ue,deviceW:le,deviceOrientation:j});v({type:"entry:update:screen:list"}),v({type:"entry:goto:project-alike",payload:{screenMetaCid:Te.key}}),v(i.GO.editBasketItemKey("")),v(i.GO.editBasketRefPage("")),v({type:"screen:update:editing-screen-cid",payload:{cid:Te.key}});const De={...po.N[l.x.Canvas](),w:le,h:ue,x:0,y:0,name:"\u9875\u9762",orientation:j||"portrait",device:ie};v({type:"entry:batch:create:items",payload:{data:[{items:[De]}],offset:{top:ue/2,left:le/2},sup:Te.key}}),v({type:"entry:zoom:fit:scale:offset"}),v({type:"entry:reset:screen:selection",payload:{resetScreenCid:Te.key}}),v({type:"entry:memory:last:screenAndCanvas",payload:{screenMetaCid:Te.key}}),v({type:"entry:memory:current:screen:offset:scale"}),v({type:"screen:update:state",payload:{currentPage:Te}}),sdkStore.combineMerge("create-screen")},"entry:create:screen_folder:auto:to:root-project":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I={isCreateChildren:!1,parentScreenFolder:null}}=G;const{isCreateChildren:M,parentScreenFolder:j}=I;if(M){let Qe=j;if(!Qe){const qe=B(),ut=(0,Oo.I_)(qe),Bt=(0,E.He)(qe),{contextScreenSelection:ao}=ut,To=ao.length===1,ko=Bt[ao[0]];Qe=To?ko:null}if(Qe){v({type:"entry:create:new:child:screen_folder",payload:{screen:Qe}});return}}const Y=B(),oe=(0,E.He)(Y),ie=(0,o.Ur)(Y),le=ie==null?void 0:ie.cid,ue=(0,E.Hs)(Y),Te=oe[ue.length===1?ue[0]:le],De=oe[le];v({type:"entry:create:screen_folder:to:root-project",payload:{screen:Te||De}})},"entry:create:creeen_folder:auto:to:current_folder":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I={curScreenFolder,isCreateNextSibling:!1}}=G;return function(){const{isCreateNextSibling:M,curScreenFolder:j}=I,Y=sdkStore.getHotItem(j.sup),oe={cid:Y.key},ie=(0,Nn.BS)(j),le=(0,es.pV)(ie,!0),ue=ie.indexOf(ie.find(De=>De.cid===j.key)),Te={name:le,zIndex:M?ue:ue-1,sup:Y.key,asFolder:!0};v({type:"entry:create:and:select:screen_folder",payload:{attrs:Te,screenGlue:oe}})}()},"entry:create:screen_folder:to:root-project":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{screen:I}}=G;const M=B(),j=(0,o.PL)(M),Y={cid:j.cid};if(!I){v({type:"entry:create:and:select:screen_folder",payload:{attrs:{name:I18N.LeftSidePanel.page_folder,zIndex:1,sup:"B@main",asFolder:!0},screenGlue:Y}});return}const oe=(0,Nn.BS)(I),le=oe.findIndex(De=>De.cid===I.key)+1;oe.splice(le,0,null),oe.forEach((De,$e)=>{if(De&&(De.sup!==I.sup||De.zIndex!==$e+1)){const Qe=sdkStore.getHotItem(De.cid),qe={...Qe,hotAttr:{...Qe.hotAttr,zIndex:$e+1}};sdkStore.updateHotItem(qe)}});const ue={name:(0,es.pV)(oe,!0),zIndex:le+1,sup:I.sup,asFolder:!0};v({type:"entry:create:and:select:screen_folder",payload:{attrs:ue,screenGlue:Y}});const Te=As(I);v({type:"screen:del:collapseKeySet",payload:{refs:Te,projectCid:j.cid}})},"entry:create:new:child:screen_folder":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{screen:I}}=G;const M=B(),j=(0,o.PL)(M),Y={cid:j.cid},oe=(0,Nn.BS)(I),le={name:(0,es.pV)(oe,!0),zIndex:oe.length+1,sup:I.key,asFolder:!0};v({type:"entry:create:and:select:screen_folder",payload:{attrs:le,screenGlue:Y}});const ue=As(I).concat(I.cid);v({type:"screen:del:collapseKeySet",payload:{refs:ue,projectCid:j.cid}})},"entry:create:and:select:screen_folder":(Z,G)=>{let{dispatch:B}=Z,{payload:{attrs:v}}=G;const I=(0,es.Hz)(v);B({type:"entry:update:screen:list"}),B({type:"screen:update:editing-screen-cid",payload:{cid:I.key}}),B({type:"entry:reset:screen:selection",payload:{resetScreenCid:I.key}})},"entry:check:dup:screen:page:folder:batch":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,E.Hs)(v),M=(0,E.HA)(v),{isEditingCombo:j}=(0,Tt.r)(v);let Y=!1;const oe=I.filter(ie=>{var le;const ue=(le=rootSdk.sdkStore.getHotItem(ie))==null?void 0:le.hotAttr;return ue?!(ue.bunch===l.x.RbPage&&ue.asFolder):!1});if(!(!j&&!(0,Fn.X9)(oe,!1))){if(I.forEach(ie=>{var le;const ue=(0,Nn.Bq)(ie,M);!(ue!=null&&(le=ue.data)!=null&&le.asFolder)&&(ue==null?void 0:ue.children.length)>0&&(Y=!0)}),Y){B({type:"modal:update:state",payload:{screenDupModal:{isOpen:!0,isBatch:!0,isEditingCombo:j}}});return}if(j){B({type:"entry:auto:dup:combo:comboGroup:on:screenList",payload:{isWithChildren:!1}});return}B({type:"entry:dup:screen:page:folder:batch",payload:{isWithChildren:!1}})}},"entry:dup:screen:page:folder:batch":(Z,G)=>{var B;let{getState:v,dispatch:I}=Z,{payload:{isWithChildren:M,isScreenSelectionContextMenu:j=!1}}=G;const Y=v(),{isEditingCombo:oe}=(0,Tt.r)(Y),ie=(0,E.Hs)(Y);if(!oe&&!(0,Fn.X9)(ie,M))return;const le=(0,E.He)(Y),ue=(0,E.HA)(Y),Te=ie[ie.length-1],De=(0,Nn.zK)(Te,ue),$e=[];let Qe=!0;const qe=ie.map(Bt=>{const ao=le[Bt],To=(0,Nn.Bq)(ao==null?void 0:ao.key,ue);if((M||(0,Nn.Mo)(ao.hotAttr))&&!j){const ko=(0,Nn.QR)(To);if(De+ko-1>7){Qe=!1,MB.notice({text:I18N.ScreenPanel.invalid_screen_nested_level.replace(/%s/,7),type:"error"});return}}return ao});if(!Qe)return;sdkStore.combineMergeMark("dup-folder-batch"),qe.forEach(Bt=>{const{key:ao}=(0,es.o)(Bt);$e.push(ao),(M||(0,Nn.Mo)(Bt.hotAttr))&&!j&&(0,es.NA)(Bt,ao)});const ut=(B=qe[ie.length-1])==null?void 0:B.sup;I({type:"entry:update:screen:list"}),I({type:"entry:update:screen_list:by:sort",payload:{pathSelectedIds:$e,parentCid:ut,cid:Te,type:"nextSibling",isSort:!1}}),I({type:"screen:update:screen-selection",payload:{screenSelection:$e}}),sdkStore.combineMerge("dup-folder-batch")},"entry:check:dup:screen:page:folder":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{screen:I}}=G;const M=B(),j=(0,E.HA)(M),Y=(0,Nn.Bq)(I==null?void 0:I.key,j);if((0,Nn.Mo)(Y.data))v({type:"entry:dup:screen:folder",payload:{screen:I}});else{const ie=Y.children.length;v(ie?{type:"modal:update:state",payload:{screenDupModal:{isOpen:!0,screen:I,screenTreeNode:Y}}}:{type:"entry:dup:screen:page",payload:{screen:I}})}},"entry:dup:screen:selection":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{isScreenSelectionContextMenu:I}}=G;const M=B(),Y=(0,E.Hs)(M).filter(oe=>{var ie;const le=(ie=rootSdk.sdkStore.getHotItem(oe))==null?void 0:ie.hotAttr;return le?!(le.bunch===l.x.RbPage&&le.asFolder):!1});(0,Fn.X9)(Y,!1)&&v({type:"entry:dup:screen:page:folder:batch",payload:{isWithChildren:!1,isScreenSelectionContextMenu:I}})},"entry:dup:screen:folder":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{screen:I}}=G;const M=B(),j=(0,E.HA)(M),{isEditingCombo:Y}=(0,Tt.r)(M);if(!Y&&!(0,Fn.Rk)(I,!0))return;sdkStore.combineMergeMark("dup-folder");const{key:oe}=(0,es.o)(I);(0,es.NA)(I,oe),(0,es.Pv)(I,j),sdkStore.combineMerge("dup-folder"),v({type:"entry:update:screen:list"}),v({type:"screen:update:editing-screen-cid",payload:{cid:oe}}),v({type:"entry:reset:screen:selection",payload:{resetScreenCid:oe}}),Y?MB.notice({text:I18N.__entry__.widget_dup_success}):MB.notice({text:I18N.__entry__.copied_successfully})},"entry:dup:screen:page":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{screen:I,isWithChildren:M=!1}}=G;const j=B(),{isEditingCombo:Y}=(0,Tt.r)(j),oe=(0,E.HA)(j),ie=(0,Ne.jI)(j),le=(0,Ne.bt)(j);if(!Y&&!(0,Fn.Rk)(I,M))return;const{key:ue}=(0,es.o)(I);M&&(0,es.NA)(I,ue),(0,es.Pv)(I,oe),v({type:"entry:update:screen:list"}),ie&&v({type:"entry:exit:edit:basket"}),le||(v({type:"entry:activate:screen",payload:{screenCid:ue}}),v({type:"entry:reset:screen:selection",payload:{resetScreenCid:ue}}),v({type:"screen:update:editing-screen-cid",payload:{cid:ue}})),Y?MB.notice({text:I18N.__entry__.widget_dup_success}):MB.notice({text:I18N.__entry__.copy_page_success})},"entry:transfer:screen":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{screen:I,isScreenSelectionContextMenu:M=!1}}=G;const j=B(),Y=(0,E.He)(j),oe=(0,E.HA)(j),ie=(0,E.WU)(j);let le=new Set,ue=[],Te=[];if(M){const qe=(0,E.Hs)(j);ue=qe,Te=Is(qe.map(ut=>(0,Nn.Bq)(ut,oe)))}else if(I){const qe=(0,Nn.Bq)(I.key,oe);ue=(0,Nn.kz)(qe),Te=[qe]}else{const qe=(0,Oo.q3)(j),Bt=Array.from(qe).map(ao=>(0,Nn.Bq)(ao,oe));ue=Bt.map(ao=>[...(0,Nn.kz)(ao)]).flat(),Te=Bt}le=new Set(ue);const $e=Object.values(Y).filter(qe=>!(0,Nn.Mo)(qe)&&!le.has(qe.key)).length===0;v({type:"modal:update:state",payload:{screenTransferModal:{isOpen:!0,screenMetaList:Te,isAllTransfer:$e,isMultiplePage:ie}}})},"entry:remove:screen:check:del":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{screen:I}}=G;const M=B(),j=(0,o.HW)(M),{isEditingCombo:Y}=(0,Tt.r)(M),oe=(0,Ne.jI)(M),ie=(0,Ne.bt)(M),le=(0,E.p$)(M),{hotAttr:{name:ue,asFolder:Te},sub:De,key:$e}=I,Qe=io(De),qe=(0,E.He)(M),ut=(0,E.HA)(M),Bt=(0,Nn.Bq)(I.key,ut),ao=(0,Nn.kz)(Bt),To=new Set(ao);if(Object.values(qe).filter(Hn=>!(0,Nn.Mo)(Hn)&&!To.has(Hn.key)).length===0&&!Y)return MB.notice({text:I18N.__entry__.cant_remove_screen,type:"warning"});const vn=Qe.length;if(Te){if(vn===0)(0,es.X3)(I.key,j),v({type:"entry:update:screen:list"}),MB.notice({text:I18N.SettingPanel.design.floder_del_success}),v({type:"screen:update:state",payload:{isMultiplePage:!1}});else{const Hn=()=>{(0,es.X3)(I.key,j),Qe.includes(le==null?void 0:le.key)?(oe&&v({type:"entry:exit:edit:basket"}),v(ie?{type:"entry:update:screen:list"}:{type:"entry:activate:root-project:home-screen"})):v({type:"entry:update:screen:list"}),MB.notice({text:I18N.SettingPanel.design.floder_del_success}),v({type:"screen:update:state",payload:{isMultiplePage:!1}}),v({type:"entry:update:screen_list_rect"}),v({type:go.y.entryKey["font:missFontKeyMap:update"]})};v({type:"modal:update:confirm:state",payload:{isOpen:!0,title:I18N.__entry__.remove_folders,desc:Y?I18N.__entry__.del_screen_folder_desc.replace(/%s/,ue).replace(/%d/,vn):""+I18N.__entry__.del_screen_folder_desc.replace(/%s/,ue).replace(/%d/,vn)+I18N.__entry__.restore_in_recycle_in,confirmText:I18N.__entry__.delete,onConfirm:Hn}})}return}vn>0?v({type:"modal:update:state",payload:{screenRemovalModal:{isOpen:!0,name:ue,count:vn,isEditingCombo:Y,onConfirm:os=>{v({type:"entry:screen:delete:page:by:father",payload:{screenTreeNode:I,isRemovingAll:os}}),Y?MB.notice({text:I18N.__entry__.widget_del_success}):MB.notice({text:I18N.dModals.page_del_success}),!Y&&v({type:"screen:update:state",payload:{isMultiplePage:!1}})}}}}):((0,es.X3)(I.key,j),(le==null?void 0:le.key)===$e?(oe&&v({type:"entry:exit:edit:basket"}),v(ie?{type:"entry:update:screen:list"}:{type:"entry:activate:root-project:home-screen"})):v({type:"entry:update:screen:list"}),Y?MB.notice({text:I18N.__entry__.widget_del_success}):MB.notice({text:I18N.dModals.page_del_success}),!Y&&v({type:"screen:update:state",payload:{isMultiplePage:!1}})),v({type:"entry:update:linkNodeList",payload:I}),v({type:go.y.entryKey["font:missFontKeyMap:update"]})},"entry:remove:screen:list:by:context_menu":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{screenSelection:I}}=G;const M=B(),j=(0,E.He)(M),Y=(0,E.HA)(M),oe=new Set(I),ie=(0,o.HW)(M),le=(0,o.wA)(M),{isEditingCombo:ue}=(0,Tt.r)(M),Te=(0,Ne.jI)(M),De=(0,Ne.bt)(M),$e=(0,E.p$)(M);if((0,Nn.sV)(Y,Bt=>{const{cid:ao,children:To}=Bt;if(oe.has(ao)&&To.length>0)for(const ko of Bt.children)oe.add(ko.cid)}),Object.values(j).filter(Bt=>!(0,Nn.Mo)(Bt)&&!oe.has(Bt.key)).length===0&&!ue)return MB.notice({text:I18N.__entry__.cant_remove_screen,type:"warning"});const qe=(0,Mn.ln)(ie,le),ut=()=>{sdkStore.combineMergeMark("remove-screen");const Bt=[];for(const ao of Array.from(oe)){const To=j[ao];To&&Bt.push(To)}(0,es.gu)(Bt,ie),oe.has($e==null?void 0:$e.key)?(Te&&v({type:"entry:exit:edit:basket"}),v(De?{type:"entry:update:screen:list"}:{type:"entry:activate:root-project:home-screen"})):v({type:"entry:update:screen:list"}),sdkStore.combineMerge("remove-screen"),MB.notice({text:I18N.dModals.delete_success}),v({type:"screen:update:state",payload:{isMultiplePage:!1}}),v({type:"entry:update:screen_list_rect"}),v({type:go.y.entryKey["font:missFontKeyMap:update"]})};v({type:"modal:update:confirm:state",payload:{isOpen:!0,title:ue?I18N.__entry__.del_widget_title:I18N.dModals.delete_page_confirm_title,desc:ue?I18N.__entry__.del_multi_widget_desc:I18N.dModals.delete_page_confirm_content,className:"screen-action-modal",renderDesc:()=>ue?null:(0,ts.jsx)("p",{style:{color:"#999",fontSize:"12px",marginTop:"2px"},children:I18N.dModals.delete_page_confirm_des.replace(/{recycleDays}/,qe)}),confirmText:I18N.__entry__.delete,onConfirm:ut}})},"entry:remove:screen:list:by:managePageModal":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{screenSelection:I}}=G;const M=B(),j=(0,E.He)(M),Y=new Set(I),oe=(0,o.HW)(M),{isEditingCombo:ie}=(0,Tt.r)(M),le=Object.values(j).filter(Te=>!(0,Nn.Mo)(Te)&&!Y.has(Te.key)).map(Te=>Te==null?void 0:Te.key);if(le.length===0&&!ie)return MB.notice({text:I18N.__entry__.cant_remove_screen,type:"warning"});sdkStore.combineMergeMark("remove-screen");const ue=[];for(const Te of Array.from(Y)){const De=j[Te];De&&ue.push(De)}for(const Te of le){const $e=sdkStore.findUpHotItemList(Te).map(Qe=>Qe==null?void 0:Qe.key).filter(Qe=>Qe!==Te).find(Qe=>!Y.has(Qe));$e&&sdkStore.moveHotItem(Te,$e)}(0,es.gu)(ue,oe),sdkStore.combineMerge("remove-screen"),v({type:"entry:activate:root-project:home-screen"}),MB.notice({text:I18N.dModals.delete_success})},"entry:remove:screen:selection:del":async Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,o.HW)(v),M=(0,E.Hs)(v),j=(0,E.He)(v),{isEditingCombo:Y}=(0,Tt.r)(v);if(Object.values(j).filter(le=>!(0,Nn.Mo)(le)&&!M.includes(le.key)).length===0&&!Y)return MB.notice({text:I18N.__entry__.cant_remove_screen,type:"warning"});const ie=()=>{sdkStore.combineMergeMark("remove-screen-selection"),M.forEach(le=>{const ue=sdkStore.getHotItem(le),{sub:Te}=ue;Te.filter(Qe=>{const{hotAttr:{bunch:qe}}=sdkStore.getHotItem(Qe);return qe===l.x.RbPage}).length>0?B({type:"entry:screen:delete:page:by:father",payload:{screenTreeNode:ue,isRemovingAll:!1}}):((0,es.X3)(ue.key,I),B({type:"entry:activate:root-project:home-screen"}),B({type:"entry:rebuild:screen-widget-tree"}))}),MB.notice({text:I18N.dModals.page_del_success}),sdkStore.combineMerge("remove-screen-selection"),B({type:"screen:update:state",payload:{isMultiplePage:!1}}),B({type:"entry:update:screen_list_rect"}),B({type:go.y.entryKey["font:missFontKeyMap:update"]})};B({type:"modal:update:confirm:state",payload:{isOpen:!0,title:I18N.__entry__.remove_screens,renderDesc:()=>(0,ts.jsxs)("p",{children:[(0,ts.jsx)("span",{className:"desc-text-1",children:I18N.__entry__.del_screens_desc}),(0,ts.jsx)("span",{className:"desc-text-2",children:I18N.__entry__.del_screens_desc_2})]}),confirmText:I18N.__entry__.delete,onConfirm:ie}})},"entry:activate:root-project:home-screen":Z=>{let{getState:G,dispatch:B}=Z;const{screenTreeData:v,screenTreeMap:I,screenDataMap:M}=(0,zt.tb)();B({type:"screen:set:all:screen-data",payload:{screenTreeData:v,screenTreeMap:I,screenDataMap:M}});const j=(0,Nn.Ct)(v);if(!j){B({type:"current:update:state",payload:{isEditingCid:"",currentScreen:null}}),B({type:"screen:update:state",payload:{currentPage:{}}});return}const{cid:Y}=j;B({type:"entry:goto:project-alike",payload:{screenMetaCid:Y}}),B({type:"entry:reset:screen:selection",payload:{resetScreenCid:Y}}),B({type:"entry:memory:last:screenAndCanvas",payload:{screenMetaCid:j.cid}}),B({type:"screen:update:state",payload:{currentPage:sdkStore.getHotItem(Y)}});const oe=G(),ie=oe.ui.fixedLayout.modals.previewModal;if(ie!=null&&ie.isOpen){const ue=ie.basketKey;ue&&sdkStore.isTrashed(ue)&&B({type:"modal:update:state",payload:{previewModal:{isOpen:!1}}})}const le=oe.ui.fixedLayout.modals.previewComboModal;if(le!=null&&le.isOpen){const ue=le.activeWidgetKey;ue&&sdkStore.isTrashed(ue)&&B({type:"modal:update:state",payload:{previewComboModal:{isOpen:!1}}})}},"entry:expand:all:screen":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,o.PL)(v);B({type:"screen:reset:collapseKeySet",payload:{projectCid:I.cid}}),B({type:"entry:update:screen:list"})},"entry:unExpand:all:screen":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,E.HA)(v),M=(0,o.PL)(v),j=(0,Nn.Gw)(I);B({type:"screen:add:collapseKeySet",payload:{refs:j,projectCid:M.cid}}),B({type:"entry:update:screen:list"})},"entry:update:screen_list:by:sort":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{pathSelectedIds:I,parentCid:M,type:j,cid:Y,isUndo:oe=!0,isSort:ie=!0}}=G;const le=B(),ue=(0,o.PL)(le),{cid:Te}=(0,o.Ur)(le),{screenDataMap:De}=(0,zt.tb)(),$e=[];for(const ao of I){const To=De[ao];To&&$e.push(To)}ie&&$e.sort((ao,To)=>{var ko,vn;return((ko=ao.hotAttr)==null?void 0:ko.zIndex)-((vn=To.hotAttr)==null?void 0:vn.zIndex)});const Qe=sdkStore.getHotItem(M),qe=Qe.sub.filter(ao=>!I.includes(ao)).map(ao=>sdkStore.getHotItem(ao)).sort((ao,To)=>ao.hotAttr.zIndex-To.hotAttr.zIndex),ut=qe.findIndex(ao=>ao.key===Y),Bt=j==="prevSibling"?ut:j==="firstChild"?0:j==="nextSibling"?ut+1:"error";qe.splice(Bt,0,...$e),j==="firstChild"&&Qe&&v({type:"screen:del:collapseKeySet",payload:{refs:[Qe==null?void 0:Qe.key],projectCid:ue==null?void 0:ue.cid}}),sdkStore.combineMergeMark("sort-screen"),qe.forEach((ao,To)=>{var ko;if(ao.sup!==M||((ko=ao.hotAttr)==null?void 0:ko.zIndex)!==To+1){const vn=sdkStore.getHotItem(ao.key),Hn={...vn,sup:M,hotAttr:{...vn.hotAttr,zIndex:To+1}};if(sdkStore.updateHotItem(Hn),Te===ao.key){const os=(0,zt.ON)(Hn);v({type:"entry:update:current:screen-mata",payload:{screenMeta:os}})}}}),sdkStore.combineMerge("sort-screen"),v({type:"entry:update:screen:list"})},"entry:update:screen_list:by:sort:direction":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{screenMeta:I,direction:M}}=G;const j=B(),Y=(0,E.Hs)(j),oe=(0,E.He)(j),ie=I?[I.key]:Y,le=ie.map(ue=>oe[ue]).sort((ue,Te)=>{var De,$e,Qe,qe;return M===Fo.$.MOVEUP||M===Fo.$.DOWNGRADE?((De=ue.hotAttr)==null?void 0:De.zIndex)-(($e=Te.hotAttr)==null?void 0:$e.zIndex):((Qe=Te.hotAttr)==null?void 0:Qe.zIndex)-((qe=ue.hotAttr)==null?void 0:qe.zIndex)});if(sdkStore.combineMergeMark("update-screen"),(M===Fo.$.DOWNGRADE||M===Fo.$.UPGRADE)&&ie.length>1){const ue=(0,Oo.q3)(j);le.forEach(Te=>{ue.has(Te.key)&&v({type:"entry:update:screen_list:by:sort:direction:single",payload:{screenMetaList:[Te],direction:M,isUndo:!1}})}),sdkStore.combineMerge("update-screen");return}le.forEach(ue=>{v({type:"entry:update:screen_list:by:sort:direction:single",payload:{screenMetaList:[ue],direction:M,isUndo:!1}})}),sdkStore.combineMerge("update-screen")},"entry:screen:delete:page:by:father":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{screenTreeNode:I,isRemovingAll:M}}=G;const j=B(),Y=(0,o.HW)(j),oe=(0,Ne.jI)(j),ie=(0,Ne.bt)(j),le=(0,E.p$)(j);if(sdkStore.combineMergeMark("delete-page-by-father"),!M){const{sup:Te,key:De}=I,$e=sdkStore.getSubHotItemList(De).filter(ao=>{var To;return(ao==null||(To=ao.hotAttr)==null?void 0:To.bunch)===l.x.RbPage}).map(ao=>ao.key),Qe=sdkStore.getSubHotItemList(Te).filter(ao=>{var To;return(ao==null||(To=ao.hotAttr)==null?void 0:To.bunch)===l.x.RbPage}).sort((ao,To)=>{var ko,vn;return(ao==null||(ko=ao.hotAttr)==null?void 0:ko.zIndex)-(To==null||(vn=To.hotAttr)==null?void 0:vn.zIndex)}).map(ao=>ao.key),qe=Qe.findIndex(ao=>ao===De),ut=Qe[qe===Qe.length-1?qe-1:qe+1],Bt=qe===Qe.length-1?"nextSibling":"prevSibling";v({type:"entry:update:screen_list:by:sort",payload:{pathSelectedIds:$e,parentCid:Te,cid:ut,type:Bt,isUndo:!1}})}(0,es.X3)(I.key,Y);const ue=M?sdkStore.findAllTypeUnder(I.key,"rResBunch").map(Te=>Te==null?void 0:Te.key):[I.key];ue!=null&&ue.includes(le==null?void 0:le.key)?(oe&&v({type:"entry:exit:edit:basket"}),v(ie?{type:"entry:update:screen:list"}:{type:"entry:activate:root-project:home-screen"})):v({type:"entry:update:screen:list"}),sdkStore.combineMerge("delete-page-by-father")},"entry:update:screen_list:by:sort:direction:single":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{screenMetaList:I,direction:M,isUndo:j=!0}}=G;const Y=B(),oe=(0,E.He)(Y),ie=(0,o.PL)(Y),le=(0,Oo.ey)(Y),ue=I.map(ko=>ko.key);if(M===Fo.$.MOVEUP||M===Fo.$.MOVEDOWN){var Te,De;if(M===Fo.$.MOVEUP){var $e;if(le.has(($e=I[0])==null?void 0:$e.key))return}else{var Qe;if((0,Oo.Xw)(Y).has((Qe=I[0])==null?void 0:Qe.key))return}const ko=(0,Nn.BS)(I[0]).sort((on,hn)=>on.zIndex-hn.zIndex),Hn=ko.findIndex(on=>{var hn;return on.cid===((hn=I[0])==null?void 0:hn.key)})-M,os=(Te=ko[Hn])==null?void 0:Te.cid;if(!os)return;v({type:"entry:update:screen_list:by:sort",payload:{isUndo:j,pathSelectedIds:ue,parentCid:(De=I[0])==null?void 0:De.sup,cid:os,type:M===Fo.$.MOVEUP?"prevSibling":"nextSibling"}})}else{if(M===Fo.$.UPGRADE){var qe;const ko=oe[(qe=I[0])==null?void 0:qe.sup];if(!ko)return;v({type:"entry:update:screen_list:by:sort",payload:{isUndo:j,pathSelectedIds:ue,parentCid:ko.sup,cid:ko.key,type:"nextSibling"}})}if(M===Fo.$.DOWNGRADE){var ut,Bt,ao,To;if((0,Oo.nF)(Y).has((ut=I[0])==null?void 0:ut.key)||le.has((Bt=I[0])==null?void 0:Bt.key))return;const vn=(0,Nn.BS)(I[0]),Hn=vn.findIndex(Rn=>{var Ln;return Rn.cid===((Ln=I[0])==null?void 0:Ln.key)}),os=(ao=vn[Hn-1])==null?void 0:ao.cid;if(!os)return;const on=oe[os],hn=on==null?void 0:on.sub[(on==null||(To=on.sub)==null?void 0:To.length)-1];v({type:"screen:del:collapseKeySet",payload:{refs:[on==null?void 0:on.key],projectCid:ie==null?void 0:ie.cid}}),v({type:"entry:update:screen_list:by:sort",payload:{isUndo:j,pathSelectedIds:ue,parentCid:os,cid:hn,type:"nextSibling"}})}}},"entry:memory:current:screen:offset:scale":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,o.ER)(v),M=(0,o.X_)(v),j=(0,o.Ur)(v);j&&B({type:"screen:update:screenInfoMap",payload:{key:j.cid,value:{offset:I,scale:M}}})}};var Zo=e(24016);const us={...{"entry:set:default:left-side-panel-width":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),M=(0,ve.bP)(v)==="old_right"?g.sR:g.Cj;B({type:"left-panel:set:width",payload:{width:M,isNotSaveLocal:!0}})},"entry:toggle:left-nav-panel":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I={isAlwaysShow:!1}}=G;const{isAlwaysShow:M}=I,j=B(),Y=(0,Ne.T7)(j),oe=document.querySelector(".mb-left-panel");if(oe&&(oe.style.transition="none"),M){v({type:"left-panel:collapse:panel:show",payload:{isMemorize:!Y}}),v({type:"entry:observe:dom:size:update-viewport-rect"});return}v({type:"left-panel:collapse:panel",payload:{isMemorize:!Y}}),v({type:"entry:observe:dom:size:update-viewport-rect"})},"entry:open:contextmenu:by:component-list":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{item:I,position:M,byComponentList:j=!0,byCanvasLayers:Y=!1}}=G;const oe=B(),ie=(0,m.GO)(oe),le=(0,$.p$)(oe),ue=le.includes(I.cid)?le:[I.cid],Te=ie.includes(I.cid),De=ue.filter($e=>Te?ie.includes($e):!ie.includes($e));v({type:"entry:update:selection:select:items",payload:{cids:De}}),v({type:"open:contextmenu",payload:{position:M,byComponentList:j,byCanvasLayers:Y}})}},...Jo,...{"layerExpandedKeySet:open:ref":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,o.Ur)(v).cid,M=(0,Zo.vl)(I);B({type:"layerExpandedKeySet:delAllSet:ref",payload:{refs:M}})}}};var bn=e(40684),Gn=e(43859),xs=e(45465),Es=e(66923),Ys=e(33270),lo=e(52781),Ko=e(31632),eo=e(48217),ro=e(94307),Yt=e(43974),Be=e(51050),Wt=e(21385),At=e(58277);const Xe=Z=>Z?eo.rf.Org:eo.rf.User,Vt=(Z,G)=>{var B;return(B=Z[G])==null?void 0:B.list},Xo=(Z,G)=>{var B;return(B=Z[G])==null?void 0:B.total},rn=Z=>{var G;let{searchResultListMap:B,category:v,nextSearchResultList:I,nextTotal:M=0}=Z;return{...B,[v]:{...B[v],list:I,total:M||((G=B[v])==null?void 0:G.total)}}},Ps={"entry:search-panel:update:combo:or:asset:attr":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{cid:I,type:M,attr:j,isOrg:Y=!1,category:oe}}=G;const ie=B(),le=(0,Oo.uq)(ie),ue=Vt(le,oe);if(!(ue!=null&&ue.length))return;const Te=Xe(Y),De=(0,eo.dU)({list:ue,keys:[Te],type:M,mapFunc:$e=>$e.map(Qe=>Qe.key===I?{...Qe,hotAttr:{...Qe.hotAttr,...j}}:Qe)});v({type:"searchPanel:update:state",payload:{searchResultListMap:rn({searchResultListMap:le,category:oe,nextSearchResultList:De})}})},"entry:search-panel:remove:combo:or:asset:from:cidSet":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{cidsSet:I,type:M,isOrg:j=!1,category:Y}}=G;const oe=B(),ie=(0,Oo.uq)(oe),le=Vt(ie,Y),ue=Xo(ie,Y),Te=(0,Oo.Vs)(oe),De=(0,Oo.lW)(oe);if(!(le!=null&&le.length)||De)return;const $e=Xe(j),Qe=(0,eo.dU)({list:le,keys:[$e],type:M,mapFunc:qe=>qe.filter(ut=>{let{key:Bt,cid:ao}=ut;return!I.has(Bt||ao)})});v({type:"searchPanel:update:state",payload:{searchResultSum:Te-I.size,searchResultListMap:rn({searchResultListMap:ie,category:Y,nextSearchResultList:Qe,nextTotal:ue-I.size})}})},"entry:search-panel:remove:group":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{matchSelectDelSet:I,isOrg:M=!1,category:j}}=G;const Y=B(),oe=(0,Oo.uq)(Y),ie=Vt(oe,j),le=Xo(oe,j),ue=(0,Oo.Vs)(Y);if(!(ie!=null&&ie.length))return;const Te=Xe(M),De=(0,eo.dU)({list:ie,keys:[Te],type:ro.I.Group,mapFunc:$e=>$e.filter(Qe=>{let{cid:qe}=Qe;return!I.has(qe)})});v({type:"searchPanel:update:state",payload:{searchResultSum:ue-I.size,searchResultListMap:rn({searchResultListMap:oe,category:j,nextSearchResultList:De,nextTotal:le-I.size})}})},"entry:search-panel:refresh:group:add":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{category:I,groupAddList:M}}=G;const j=B(),Y=(0,Oo.uq)(j),oe=Vt(Y,I),ie=Xo(Y,I),le=(0,Oo.Vs)(j);if(!(oe!=null&&oe.length))return;const ue=(0,eo.dU)({list:oe,keys:[eo.rf.Org],category:I,type:ro.I.Group,addList:M,mapFunc:Te=>[...Te].concat(M),spliceFunc:(Te,De)=>Te.splice(1,0,De)});v({type:"searchPanel:add:collapsePanelSet",payload:{id:(0,eo.wt)(I,eo.rf.Org)}}),v({type:"searchPanel:update:state",payload:{searchResultSum:le+1,searchResultListMap:rn({searchResultListMap:Y,category:I,nextSearchResultList:ue,nextTotal:ie+1})}})},"entry:search-panel:remove:combo:from:comboCid":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{comboCidsSet:I,isOrg:M=!1}}=G;v({type:"entry:search-panel:remove:combo:or:asset:from:cidSet",payload:{cidsSet:I,type:ro.I.SelfMakeCombo,isOrg:M,category:bn.t_}})},"entry:search-panel:update:combo:name":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{cid:I,name:M,isOrg:j=!1}}=G;v({type:"entry:search-panel:update:combo:or:asset:attr",payload:{cid:I,type:ro.I.SelfMakeCombo,attr:{name:M},isOrg:j,category:bn.t_}})},"entry:search-panel:dup:combo":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{cid:I,comboGroupCid:M,isOrg:j=!1,category:Y=bn.t_}}=G;const oe=B(),ie=(0,Oo.uq)(oe),le=Vt(ie,Y),ue=Xo(ie,Y),Te=(0,Oo.Vs)(oe),De=(0,Oo.lW)(oe);if(!(le!=null&&le.length)||De)return;const $e=Xe(j),Qe=(0,Oo.wS)(oe),qe=(0,Oo.lb)(oe),Bt=(j?qe:Qe).find(Hn=>Hn.cid===M),ao=Bt==null?void 0:Bt.children;if(!(ao!=null&&ao.length))return;const To=ao.find(Hn=>Hn.key===I);if(!To)return;const ko={...To,hotAttr:{...To.hotAttr,name:To.hotAttr.name+" "+I18N.__entry__.name_copy},group:Bt},vn=(0,eo.dU)({list:le,keys:[$e],type:ro.I.SelfMakeCombo,mapFunc:Hn=>Hn.concat(ko)});v({type:"searchPanel:update:state",payload:{searchResultSum:Te+1,searchResultListMap:rn({searchResultListMap:ie,category:Y,nextSearchResultList:vn,nextTotal:ue+1})}})},"entry:search-panel:transfer:combo":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{transferCombos:I,isOrg:M=!1,category:j=bn.t_}}=G;const Y=B(),oe=(0,Oo.uq)(Y),ie=Vt(oe,j);if(!(ie!=null&&ie.length))return;const le=Xe(M),ue=De=>De.map($e=>I.find(Qe=>Qe.key===$e.key)||$e),Te=(0,eo.dU)({list:ie,keys:[le],type:ro.I.SelfMakeCombo,mapFunc:ue});v({type:"searchPanel:update:state",payload:{searchResultListMap:rn({searchResultListMap:oe,category:j,nextSearchResultList:Te})}})},"entry:search-panel:refresh:star:resources":async(Z,G)=>{var B,v;let{getState:I,dispatch:M}=Z,{payload:{category:j,resources:Y,isFromIconSelectPopup:oe,updateResources:ie}}=G;const le=I(),ue=(0,Oo.uq)(le),Te=(B=ue[j])==null?void 0:B.list,De=(0,Oo.NA)(le),$e=oe?De:Te,Qe=oe?"iconSelectPopupSearchResultList":"searchResultListMap";if(!($e!=null&&$e.length))return;const qe=j===bn.C,ut=j===bn.Gd,{is_star:Bt}=Y,ao=eo.rf.User,To=vn=>vn?ao:eo.rf.Find;let ko=[];if(qe)ko=$e.map(vn=>{if([ro.I.Resources,ro.I.IconList].includes(vn.type)){const Hn=vn.items.map(os=>os.cid===Y.cid?ie(os):os);return{...vn,items:Hn}}return vn});else if(ut){const vn=ie(Y);ko=(0,eo.o0)($e,vn)}else{const vn=ie(Y);ko=(0,eo.dU)({list:Te,keys:[To(!Bt)],category:j,type:ro.I.Resources,addList:[vn],mapFunc:os=>[...os].concat(vn),spliceFunc:(os,on)=>{const hn=Bt?os.length:0;os.splice(hn,0,on)},otherKeys:[To(Bt)],filterFunc:os=>os.filter(on=>on.cid!==vn.cid)}),ko=(0,eo.dU)({list:ko,keys:[eo.rf.Find],category:j,type:ro.I.MarketTemplate,mapFunc:os=>os.map(on=>on.currentResources.cid===vn.cid?{...on,currentResources:vn}:on)});const Hn=(0,eo.wt)(j,To(!Bt));M({type:"searchPanel:add:collapsePanelSet",payload:{id:Hn}})}if((v=ko)!=null&&v.length)if(oe)M({type:"searchPanel:update:state",payload:{[Qe]:ko}});else{const vn={...ue,[j]:{...ue[j],list:ko}};M({type:"searchPanel:update:state",payload:{[Qe]:vn}})}},"entry:search-panel:remove:resources":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{resources:I}}=G;const M=B(),j=I.category,Y=(0,Oo.uq)(M),oe=Vt(Y,j),ie=Xo(Y,j),le=(0,Oo.Vs)(M);if(!(oe!=null&&oe.length))return;const ue=(0,eo.dU)({list:oe,keys:[eo.rf.Star,eo.rf.User,eo.rf.Find],type:ro.I.Resources,mapFunc:Te=>Te.filter(De=>De.cid!==I.cid)});v({type:"searchPanel:update:state",payload:{searchResultSum:le-1,searchResultListMap:rn({searchResultListMap:Y,category:j,nextSearchResultList:ue,nextTotal:ie-1})}})},"entry:search-panel:update:asset:name":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{cid:I,name:M,isOrg:j=!1}}=G;v({type:"entry:search-panel:update:combo:or:asset:attr",payload:{cid:I,type:ro.I.Asset,attr:{name:M},isOrg:j,category:bn.b4}})},"entry:search-panel:remove:asset:from:asset":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{asset:I,isOrg:M=!1}}=G;const j=new Set([I.cid]);v({type:"entry:search-panel:remove:combo:or:asset:from:cidSet",payload:{cidsSet:j,type:ro.I.Asset,isOrg:M,category:bn.b4}})},"entry:search-panel:transfer:user:asset:to:org":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{cid:I,groupCid:M,category:j=bn.b4}}=G;const Y=B(),oe=(0,Oo.uq)(Y),ie=Vt(oe,j),le=Xo(oe,j),ue=(0,Oo.Vs)(Y),Te=(0,Oo.lW)(Y);if(!(ie!=null&&ie.length)||Te)return;const{orgAssets:De}=await(0,H.l9)(),$e=De.filter(ut=>Bt=>Bt.group_cid===M);if(!$e)return;for(const ut of $e)ut.cid=ut.asset_cid;const Qe=$e.find(ut=>ut.cid===I);if(!Qe)return;const qe=(0,eo.dU)({list:ie,keys:[eo.rf.Org],type:ro.I.Asset,mapFunc:ut=>ut.concat(Qe),category:bn.b4,addList:[Qe],spliceFunc:(ut,Bt)=>ut.splice(1,0,Bt)});v({type:"searchPanel:add:collapsePanelSet",payload:{id:(0,eo.wt)(bn.b4,eo.rf.Org)}}),v({type:"searchPanel:update:state",payload:{searchResultSum:ue+1,searchResultListMap:rn({searchResultListMap:oe,category:j,nextSearchResultList:qe,nextTotal:le+1})}})},"entry:search-panel:search:from:keyword":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{from:I,category:M,isHistoryWord:j=!1,isHotKeyWord:Y=!1}}=G;const oe=I===Be.Z.iconSelectPopup,ie=B(),{isEditingProjectMain:le,isEditingCombo:ue,isEditingBasket:Te,isEditingMuban:De}=(0,Tt.r)(ie),$e=(0,Oo.uJ)(ie),Qe=(0,Oo.TF)(ie),qe=(0,o.wA)(ie),ut=(0,E.OW)(ie),Bt=(0,o.HW)(ie),ao=(0,o.F2)(ie),To=(0,o._x)(ie),ko=(0,Ze.D1)(le,!(ue||Te||De),$e),vn=(0,Oo.XN)(ie),Hn=(0,Oo.qY)(ie),os=(0,E.aN)(ie),on=(0,Oo.sF)(ie),hn=(0,Oo.zX)(ie),Rn=new Set(on.concat(hn).map(ki=>{let{cid:js}=ki;return js})),Ln=qe==null?void 0:qe.cid,Ms=oe?Qe.trim():$e.trim(),pi=oe?"isIconSelectPopupLoading":"isLoading",Ts=!oe;if(Ms){if(v({type:"exalt:panel:order",payload:{name:So.lS.Search}}),v({type:"searchPanel:update:state",payload:{[pi]:!0,type:M}}),v(oe?{type:"icon-select-popup:update:state",payload:{isShowSearch:!0}}:{type:"searchPanel:update:state",payload:{show:!0}}),Ts||M===bn.t_){const js=Bt==null?void 0:Bt.id;!window.userSdkStore&&ao&&await(0,Wt.Z)({fcg:ao,userId:js}),!window.orgSdkStore&&qe!=null&&qe.cid&&To&&await(0,Wt.Z)({fcg:To,userId:js,isOrg:!0})}try{var Js;(0,H.Gx)(Ms);const js=oe?"iconSelectPopupSearchResultList":"searchResultListMap",ai=oe?"iconSelectPopupSearchResultSum":"searchResultSum",qi=B(),or=(0,Oo.wS)(qi),Yi=(0,Oo.lb)(qi),{scene_tag:Hr}=(0,o.PL)(qi),Wa=Date.now(),nr=await(0,eo.WA)({dispatch:v,category:M,isSearchAll:Ts,keyword:Ms,orgCid:Ln,builtWidgets:ko,assetGroupCidSet:Rn,userResourcesComboGroup:or,orgResourcesComboGroup:Yi,sceneTag:Hr,from:I,userAssetsMap:vn,orgAssetsMap:Hn,isSaveAllAssetsMap:os}),zi=Date.now()-Wa,ca=new Map;(Js=nr.resources)!=null&&Js.length&&nr.resources.forEach(Za=>{var ia;const{cid:yl,project_metas:er}=Za;ca.set(yl,(ia=er[0])==null?void 0:ia.cid)});let Ua;if(Ts){({total:Ua}=nr);const{result:Za}=nr;let ia=[ko==null?void 0:ko.cid];Object.entries(Za).forEach(yl=>{let[er,{list:Cr}]=yl;ia=ia.concat(Cr.map(Cl=>{let{cid:od}=Cl;return od}))}),[bn.t_,bn.Gd,bn.C,bn.b4,Yt.Jf].forEach(yl=>ia.push(yl)),v({type:"searchPanel:update:state",payload:{searchResultCategory:M,searchCollapsePanelSet:new Set(ia),searchMtMetaCidMap:ca}}),v({type:"searchPanel:update:state",payload:{[js]:Za,[ai]:Ua,[pi]:!1}})}else{({total:Ua}=nr);const{list:Za}=nr;v({type:"searchPanel:update:state",payload:{[js]:Za,[ai]:Ua,[pi]:!1}})}(0,At.vL)({isFromIconSelectPopup:oe,panelName:ut,keyword:Ms,sort:M,count:Ua,responseTime:zi})}catch(js){console.error("search error",js),v({type:"searchPanel:update:state",payload:{[pi]:!1}})}}else v({type:"entry:search-panel:clear:state",payload:{from:I}})},"entry:search-panel:clear:state":async(Z,G)=>{let{dispatch:B}=Z,{payload:v}=G,I=!1;v&&(I=v.from===Be.Z.iconSelectPopup),I?(B({type:"searchPanel:clear:search:state:from:icon-select-popup"}),B({type:"icon-select-popup:update:state",payload:{isShowSearch:!1}})):B({type:"entry:search-panel:clear:search:state"}),B({type:"update:popups:state",payload:{showGlobalHeader:!0}})},"entry:search-panel:close:combo-group":async Z=>{let{getState:G}=Z;const B=G(),v=(0,Oo.uq)(B),I=Vt(v,bn.t_);if(I!=null&&I.length){const M=I.map(Y=>{let{list:oe}=Y;if(oe&&oe!=null&&oe.length)return oe.map(ie=>{let{type:le,items:ue}=ie;if(le===ro.I.SelfMakeCombo)return ue.map(Te=>{let{project_meta_cid:De}=Te;return De})})}).flat(1/0).filter(Y=>!!Y),j=Array.from(new Set(M));j&&j!=null&&j.length&&j.forEach(Y=>{})}},"entry:search-panel:clear:search:state":async Z=>{let{dispatch:G}=Z;G({type:"entry:search-panel:close:combo-group"}),G({type:"searchPanel:clear:search:state"})},"entry:search-panel:resources:set:mtSdkStore:map":async(Z,G)=>{let{dispatch:B,getState:v}=Z,{payload:{mtResourceCidList:I}}=G;const M=v(),j=(0,Oo.FM)(M);B({type:"entry:resources:set:mtSdkStore:map",payload:{mtResourceCidList:I,mtProjectMetaCidMap:j}})}};var Os=e(68160);const ss=(Z,G)=>{const v=new RegExp("^"+G+"(\\s(\\d+))?$").exec(Z);return v&&Number(v[2])||0},Fs=Z=>{const G=Math.max.apply(null,Z);for(let B=1;B<=G;B++)if(Z.indexOf(B)===-1)return B;return G+1},Ei=Z=>{const G=[],B=v=>{v.forEach(I=>{G.push(I.name),I.subFolder&&I.subFolder.length>0&&B(I.subFolder)})};return B(Z),G},vi=(Z,G)=>{const B=Ei(Z),v=new RegExp("^"+G+"\\s(\\d+)$"),I=[];return B.forEach(M=>{v.exec(M)&&I.push(ss(M,G))}),I.length>0?G+" "+Fs(I):G+" 1"};var li=e(71604),Ci=e(67122),yi=e(49390),ea=e(92351),ii=e(51691),Wi=e(39547),ua=e(89604);const va={"entry:prepare:asset:to:user:org:group":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I={targetType:"user"}}=G;const{targetType:M}=I,j=B(),Y=M==="user",oe=(0,o.wA)(j),ie=(0,o.HW)(j),le=(0,Oo.cb)(j),ue=(0,Oo.Hl)(j),Te=(0,$.QA)(j).filter(on=>!(0,gt.OO)(on.cid)),De=Y?I18N.dModals.add_image_me_asset:I18N.dModals.add_image_org_asset;MB.safeDelayLoading(I18N.__entry__.in_progress);let $e=0;const Qe=[];for(const on of Te){const{image:{imageRef:hn}}=on,Rn=(0,J.Kf)(hn);if(Y){const{asset:Ln,user_asset:Ms}=await(0,H.E8)(Rn);Ms||($e+=Ln.size,Qe.push(Ln))}else{const{asset:Ln,org_asset:Ms}=await(0,H.Wr)(Rn,oe.cid);Ms||($e+=Ln.size,Qe.push(Ln))}}if(!Qe.length){MB.safeDelayLoading(!1),Y?MB.notice({text:I18N.dModals.me_asset_exit_image}):MB.notice({text:I18N.dModals.org_asset_exit_image});return}let qe=null;if(Y){if(!le){const{userAssetGroupList:ki}=await(0,H.OJ)();v({type:"image-panel:set:user-assets-groups",payload:{nextGroups:ki}}),v({type:"image-panel:update:state",payload:{isRequestUserAssetGroup:!0}})}const on=B(),hn=(0,Oo.sF)(on);MB.safeDelayLoading(!1);let Rn=0;for(const ki of hn){const{assets_size:js}=ki;Rn=Rn+js}const Ln=ie.limitation.storage,Ms=Number(Ln),pi=Ms>=1e3?Ms/1e3+"GB":Ms+"MB",Js=Wi.t.InitialUser(ie).planSdk.prototypePlan.getUserPlan()===ua.L1.Free;if(Rn+$e>Ln*1024*1024)return(0,Os.Nd)("storage",{storage:" "+pi,action:Js?"upgradeByFree":"upgradeByNotFree",role:"user",submit:Js?I18N.__entry__.upgrade_solo:I18N.__entry__.renew_prompt.check_enterprise,gotoPrice:!Js,paymentRenewModalParams:Js?{mode:"solo",payEntrance:"\u7D20\u6750\u5E93\u5BB9\u91CF\u8D85\u8FC7\u9650\u5236"}:null}),!0;qe=hn}else{if(!ue){const{orgAssetGroupList:Ts}=await(0,H.l9)(oe.cid);v({type:"image-panel:set:user-assets-groups",payload:{nextGroups:Ts}}),v({type:"image-panel:update:state",payload:{isRequestOrgAssetGroup:!0}})}const on=B(),hn=(0,Oo.zX)(on);if(MB.safeDelayLoading(!1),!hn)return;let Rn=0;for(const Ts of hn){const{assets_size:Js}=Ts;Rn=Rn+Js}const{storage:Ln}=(0,Mn.xR)(ie,oe),Ms=Number(Ln),pi=Ms>=1e3?Ms/1e3+"GB":Ms+"MB";if(Rn+$e>Ln*1024*1024)return(0,Os.Nd)("storage",{storage:" "+pi,action:"addseats",role:"org",paymentRenewModalParams:{mode:"org_adding_seats",payEntrance:"\u7D20\u6750\u5E93\u5BB9\u91CF\u8D85\u8FC7\u9650\u5236"},submit:I18N.__entry__.renew_prompt.add_seats,orgCid:oe.cid}),!0;qe=hn}MB.safeDelayLoading(!1);const ut=Te.length?(0,li.WM)(Te[0]):I18N.__entry__.untitled,Bt=vi(qe,I18N.__entry__.folder),ao=qe.sort((on,hn)=>hn.created_at-on.created_at),To=ao.length===0,ko=ao.length&&ao[0].name,vn=String(ko),Hn=(0,ea.H)(ao);v({type:"modal:update:state",payload:{designCreateWithGroupModal:{isOpen:!0,isCreating:To,modalTitle:De,createName:ut,targetGroupCid:vn,groupName:Bt,optionGroupItemList:Hn,onModalConfirm:async on=>{let{isCreating:hn,createName:Rn,targetGroupCid:Ln,groupName:Ms,onModalClose:pi}=on;pi();let Ts="";if(hn){if(qe.some(ki=>ki.name===Ms))return MB.notice({text:I18N.__entry__.folder_dup_of_name,type:"warning"}),!0;if(Y){const ki=(0,Oo.sF)(j),js=ie.solo_org.cid,ai={name:Ms,position:0},{asset_group:qi}=await(0,H.A9)(js,ai);Ts=qi.cid;const or=(0,yi.ON)(qi,ki,H.Qs);await v({type:"image-panel:set:user-assets-groups",payload:{nextGroups:or}})}else{const ki=(0,Oo.zX)(j),js=oe.cid,ai={name:Ms,position:0},{asset_group:qi}=await(0,H.A9)(js,ai);Ts=qi.cid;const or=(0,yi.ON)(qi,ki,(0,H.XG)(js));await v({type:"image-panel:set:org-assets-groups",payload:{nextGroups:or}})}}else Ts=Ln;Y?!(0,Oo.$L)(j).includes(Ts)&&v({type:"image-panel:set:local-user-assets-expand-cids",payload:{oper:"plus",cid:Ts}}):!(0,Oo.i)(j).includes(Ts)&&v({type:"image-panel:set:local-org-assets-expand-cids",payload:{oper:"plus",cid:Ts}});for(const Js of Qe)Y?await(0,H.Xw)({assetCid:Js.cid,name:Rn,groupCid:Ts}):await(0,H.ob)({assetCid:Js.cid,name:Rn,groupCid:Ts});Y?(await v({type:"entry:load:user:asset:group:list"}),await v({type:"entry:refresh:user-asset:from:cid",payload:{groupCid:Ts}})):(await v({type:"entry:load:org:asset:group:list"}),await v({type:"entry:refresh:org-asset:from:cid",payload:{groupCid:Ts}})),v({type:"entry:auto:scroll-to:active-asset-group",payload:{activeAssetGroup:Ts,isOrg:!Y}})}}}})},"entry:check:asset:auto:to:user:org:group":(Z,G)=>{let{dispatch:B}=Z,{payload:{isOrg:v}}=G;B({type:"entry:create:asset:to:user:org:group",payload:{targetType:!v?"user":"org"}})},"entry:create:asset:to:user:org:group":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I={targetType:"user"}}=G;const{targetType:M}=I,j=B(),Y=(0,o.wA)(j),oe=(0,o.HW)(j),{storage:ie}=(0,Mn.xR)(oe,Y),le=M==="user",ue=le?(0,Oo.sF)(j):(0,Oo.zX)(j),Te=le?I18N.Resources.upload_image_to_my_assets:I18N.Resources.upload_image_to_team_library,De=I18N.__entry__.folder,$e=ue.length===0,qe=ue.length&&ue[0].cid||"";v({type:"modal:update:state",payload:{assetCreateWithGroupModal:{isOpen:!0,isCreating:$e,modalTitle:Te,targetGroupCid:qe,groupName:De,optionGroupItemList:ue,onModalConfirm:async Bt=>{var ao;let{files:To,isCreating:ko,targetGroupCid:vn,groupName:Hn,onModalClose:os}=Bt;os();let on;if(ko){if(ue.some(Js=>Js.name===Hn))return MB.notice({text:I18N.__entry__.folder_dup_of_name,type:"warning"}),!0;if(le){const Js=(0,Oo.sF)(j),ki=oe.solo_org.cid,js={name:Hn,position:0},ai=await(0,H.A9)(ki,js);if(!ai)return;const{asset_group:qi}=ai,or=qi;on=or.cid;const Yi=(0,yi.ON)(or,Js,H.Qs);v({type:"image-panel:set:user-assets-groups",payload:{nextGroups:Yi}})}else{const Js=(0,Oo.zX)(j),ki=Y.cid,js={name:Hn,position:0},ai=await(0,H.A9)(ki,js);if(!ai)return;const{asset_group:qi}=ai;on=qi.cid;const or=(0,yi.ON)(qi,Js,(0,H.XG)(ki));v({type:"image-panel:set:org-assets-groups",payload:{nextGroups:or}})}}else on=vn;le?(!(0,Oo.$L)(j).includes(on)&&v({type:"image-panel:set:local-user-assets-expand-cids",payload:{oper:"plus",cid:on}}),await v({type:"entry:refresh:user-asset:from:cid",payload:{groupCid:on}})):(!(0,Oo.i)(j).includes(on)&&v({type:"image-panel:set:local-org-assets-expand-cids",payload:{oper:"plus",cid:on}}),await v({type:"entry:refresh:org-asset:from:cid",payload:{groupCid:on}})),v({type:"entry:auto:scroll-to:active-asset-group",payload:{activeAssetGroup:on,isOrg:!le}});const hn={assetType:"flat_image",groupCid:on,orgCid:le?oe==null||(ao=oe.solo_org)==null?void 0:ao.cid:Y.cid,userName:oe.name},Rn=Ts=>{v({type:"update:popups:state",payload:{assetUpload:Ts}})},Ln=Ts=>{v({type:"update:popups:state",payload:{assetUploadState:Ts}})};let Ms=0;for(const Ts of ue){const{assets_size:Js}=Ts;Ms=Ms+Js}const pi=ie;tr(To,{assetAttrs:hn,userId:oe.id,onChangeAssetUpload:Rn,onChangeAssetUploadState:Ln,exceededChecker:Ts=>{const Js=Number(pi),ki=Js>=1e3?Js/1e3+"GB":Js+"MB",ai=Wi.t.InitialUser(oe).planSdk.prototypePlan.getUserPlan()===ua.L1.Free;if(Ms+Ts>pi*1024*1024)return(0,Os.Nd)("storage",{storage:" "+ki,action:ai?"upgradeByFree":"upgradeByNotFree",role:"user",submit:ai?I18N.LibraryContainer.renew_prompt.upgrade_solo:I18N.LibraryContainer.renew_prompt.check_enterprise,gotoPrice:!ai,paymentRenewModalParams:ai?{mode:"solo",payEntrance:"\u7D20\u6750\u5E93\u5BB9\u91CF\u8D85\u8FC7\u9650\u5236"}:null}),!0},callback:(Ts,Js,ki)=>{const js=Js===ki;setTimeout(()=>{v({type:"entry:refresh:asset:add",payload:{asset:{...Ts,asset_cid:Ts==null?void 0:Ts.cid},isCreateToUser:le}}),Rn({index:Js,indexMax:ki,assetUploaderFailure:[]}),js&&setTimeout(()=>{Ln("end")},1e3)},100),!le&&ii.Y4.trackLibraryMaterialOperation({materialType:"\u56FE\u7247",materialOperation:"\u4E0A\u4F20\u56FE\u7247"})}},"workspace",oe,Y)}}}})},"entry:refresh:asset:add":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{asset:I,isCreateToUser:M}}=G;const j=B(),Y=I.group_cid,ie=(M?(0,Oo.XN)(j):(0,Oo.qY)(j)).get(Y);if(ie){const le=[...ie],ue={};for(const Te of ie)ue[Te.cid]=Te;ue[I.cid]||(le.push(I),M?(v({type:"image-panel:set:user-assets-map",payload:{groupCid:Y,userAssets:le}}),v({type:"entry:refresh:user-asset:count:url"})):v({type:"image-panel:set:org-assets-map",payload:{groupCid:Y,orgAssets:le}}))}else if(M){const le=(0,Oo.sF)(j),ue=[];for(const Te of le)Y===Te.cid&&(Te.assets_count=Te.assets_count+1),ue.push(Te);v({type:"image-panel:set:user-assets-groups",payload:{nextGroups:ue}})}}},tr=(Z,G,B,v,I)=>{let{assetAttrs:M,userId:j,onChangeAssetUpload:Y,onChangeAssetUploadState:oe,exceededChecker:ie,callback:le}=G;if(Z=Array.from(Z),!Z.length)return;const ue=Z.reduce((Te,De)=>Te+De.size,0);ie(ue)||(oe("start"),xa(Z,j,M,le,B,v,I,"design").catch(Te=>console.warn("[Asset]",Te)).then(Te=>{if(!Te){oe("close");return}const{assetUploaderSuccess:De,assetUploaderFailure:$e}=Te,Qe=De.length,qe=Qe!==0,ut=$e.length!==0;qe&&setTimeout(()=>{oe("close"),Y({index:0,indexMax:0,assetUploaderFailure:[]})},2e3),ut&&setTimeout(()=>{oe("failure"),Y({index:0,indexMax:0,assetUploaderFailure:$e})},2e3),setTimeout(()=>{Qe===Z.length?MB.notice({text:I18N.LibraryContainer.image_upload_success,type:"success"}):Qe>0&&Qe<Z.length?MB.notice({text:I18N.LibraryContainer.someimage_upload_success}):Qe===0&&(MB.notice({text:I18N.LibraryContainer.image_faild_tips,type:"warning"}),oe("close"))},2e3)}))},xa=async function(Z,G,B,v,I,M,j,Y){G===void 0&&(G="");let{assetType:oe,groupCid:ie,orgCid:le,userName:ue=""}=B;const Te=[],De=[];for(let $e=0,Qe=Z.length;$e<Qe;$e++)try{const qe=Z[$e];(0,Ci.XI)(qe,I,M,j,Y),await(0,Ao.lO)(qe,{assetType:oe,orgCid:le,groupCid:ie,userId:G},void 0).then(ut=>{ut&&(ut.group_cid=ie,ut.user_id=G,ut.user_name=ue,ut.name=qe.name,ut.size=qe.size,ut.created_at=new Date().valueOf(),De.push(ut),oe==="org_image"&&(ut.org_cid=le),v&&v(ut,De.length,Qe))})}catch(qe){if(console.error(qe),qe.asset&&Te.push(qe.asset),MB.currentOrg)return;(qe==null?void 0:qe.message)!=="NoErrorTips"&&(0,Ci.lK)(qe)}return{assetUploaderSuccess:De,assetUploaderFailure:Te}},dr={"entry:refresh:user-asset:from:cid":async(Z,G)=>{let{dispatch:B}=Z,{payload:{groupCid:v}}=G;const{userAssets:I}=await(0,H.OJ)(),M=I.filter(j=>j.group_cid===v);M&&B({type:"image-panel:set:user-assets-map",payload:{groupCid:v,userAssets:M}})},"entry:batch:remove:user-asset":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{userAsset:I,callback:M}}=G;const[j,Y]=[I18N.LibraryContainer.materialLibrary.dele_image,I18N.LibraryContainer.materialLibrary.image_delete_tips.replace(/%s/,I.name)],oe=B(),ie=(0,Oo.XN)(oe);ie!=null&&ie.get(I.group_cid)||await v({type:"entry:refresh:user-asset:from:cid",payload:{groupCid:I.group_cid}});const le=()=>{v({type:"entry:refresh:user-asset:delete",payload:{userAsset:I}}),v({type:"entry:search-panel:remove:asset:from:asset",payload:{asset:I}}),MB.notice({text:I18N.LibraryContainer.image_del_success}),M&&M()};v({type:"modal:update:confirm:state",payload:{isOpen:!0,title:j,desc:Y,onConfirm:()=>{le()}}})},"entry:batch:transfer:user-asset":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{userAsset:I,callback:M}}=G;const j=B(),Y=(0,Oo.sF)(j),oe=async le=>{let{selectedGroupCid:ue}=le;if(ue===I.group_cid){MB.notice({text:"\u56FE\u7247\u5DF2\u5B58\u5728\u5F53\u524D\u6587\u4EF6\u5939\u4E2D",type:"error"});return}const Te=[I.group_cid];I.group_cid=ue,Te.push(ue),await v({type:"entry:refresh:transfer:user-asset:from:group_cid",payload:{refreshGroupCidList:Te,userAsset:I}}),await(0,H.wR)({cids:[I.cid],...I}),MB.notice({text:I18N.LibraryContainer.asset_move_success}),!(0,Oo.$L)(j).includes(ue)&&v({type:"image-panel:set:local-user-assets-expand-cids",payload:{oper:"plus",cid:ue}}),await v({type:"entry:refresh:user-asset:from:cid",payload:{groupCid:ue}}),v({type:"entry:auto:scroll-to:active-asset-group",payload:{activeAssetGroup:ue,isOrg:!1}}),M&&M()},ie=I18N.LibraryContainer.materialLibrary.asset_move;v({type:"modal:update:state",payload:{designTransferModal:{isOpen:!0,title:ie,selectCidSet:new Set(I.cid),itemGroups:Y,isImage:!0,onModalTransfer:oe}}})},"entry:refresh:user-asset:delete":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{userAsset:I}}=G;const M=B(),j=(0,Oo.sF)(M),Y=(0,Oo.XN)(M);for(const oe of j)if(I.group_cid===oe.cid&&Y.get(I.group_cid)){const ie=[],le=Y.get(I.group_cid);for(const ue of le)ue.cid!==I.cid?ie.push(ue):(0,H.Qy)(I);v({type:"image-panel:set:user-assets-map",payload:{groupCid:I.group_cid,userAssets:ie}})}v({type:"entry:refresh:user-asset:count:url"})},"entry:refresh:transfer:user-asset:from:group_cid":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{refreshGroupCidList:I,userAsset:M}}=G;const j=B(),Y=(0,Oo.XN)(j),[oe,ie]=I;if(Y.get(oe)){const Te=[],De=Y.get(oe);for(const $e of De)$e.cid!==M.cid&&Te.push($e);v({type:"image-panel:set:user-assets-map",payload:{groupCid:oe,userAssets:Te}})}const ue=[...Y.get(ie)||[],M];v({type:"image-panel:set:user-assets-map",payload:{groupCid:ie,userAssets:ue}}),v({type:"entry:refresh:user-asset:count:url"})},"entry:refresh:user-asset:update":async(Z,G)=>{var B,v;let{getState:I,dispatch:M}=Z,{payload:{userAssetUpdateList:j}}=G;const Y=I(),oe=(0,Oo.XN)(Y),ie=[],le=j[0].group_cid,ue=j[0].cid,Te=oe.get(le),De=(0,Oo.uq)(Y),$e=(B=De[bn.b4])==null?void 0:B.list;if(!($e!=null&&$e.length))return;const Qe=(0,eo.dU)({list:$e,keys:[eo.rf.User],type:ro.I.Asset,mapFunc:function(Bt){return Bt===void 0&&(Bt=[]),Bt.map(ao=>(ao==null?void 0:ao.cid)===ue?{...j[0]}:ao)}}),qe={...De,asset:{...De[eo.rf.Org],list:Qe,total:(v=De.asset)==null?void 0:v.total}};M({type:"searchPanel:update:state",payload:{searchResultListMap:qe}});const ut={};for(const Bt of j)ut[Bt.cid]=Bt,(0,H.wR)({cids:[Bt.cid],...Bt});if(Te){for(const Bt of Te)if(ut[Bt.cid]){const ao=ut[Bt.cid];ie.push(ao)}else ie.push(Bt);M({type:"image-panel:set:user-assets-map",payload:{groupCid:le,userAssets:ie}})}M({type:"entry:refresh:user-asset:count:url"})},"entry:refresh:user-asset:count:url":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,Oo.XN)(v),M=(0,Oo.sF)(v),j=[];for(const Y of M){const oe=I.get(Y.cid);if(oe){let ie=0;for(const ue of oe)ie=ie+ue.size;const le={...Y,assets_count:oe.length,assets_size:ie};j.push(le)}else j.push(Y)}B({type:"image-panel:set:user-assets-groups",payload:{nextGroups:j}})},"entry:batch:transfer:user:asset:to:org":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{userAsset:I,callback:M}}=G;const j=B(),Y=(0,o.wA)(j);let oe=0;MB.safeDelayLoading(I18N.LibraryContainer.in_progress);const ie=[],{org_asset:le,asset:ue}=await(0,H.Wr)(I.image,Y.cid);if(le||ie.push(le),MB.safeDelayLoading(!1),!ie.length){MB.notice({text:"\u4F01\u4E1A\u7D20\u6750\u5E93\u5DF2\u5B58\u5728\u56FE\u7247",type:"error"});return}oe+=I.size,MB.safeDelayLoading(I18N.LibraryContainer.in_progress);const{orgAssetGroupList:Te}=await(0,H.l9)(Y.cid);if(!Te)return;let De=0;for(const ut of Te){const{assets_size:Bt}=ut;De=De+Bt}MB.safeDelayLoading(!1);const $e=Y?Y.limitation.storage:0,Qe=Number($e),qe=Qe>=1e3?Qe/1e3+"GB":Qe+"MB";if(De+oe>$e*1024*1024)return(0,Os.Nd)("storage",{storage:" "+qe,action:"addseats",role:"org",paymentRenewModalParams:{mode:"org_adding_seats",payEntrance:"\u7D20\u6750\u5E93\u5BB9\u91CF\u8D85\u8FC7\u9650\u5236"},submit:I18N.LibraryContainer.renew_prompt.add_seats,orgCid:Y.cid}),!0;{const ut=async To=>{let{selectedGroupCid:ko}=To;const vn=await(0,H.ob)({assetCid:ue.cid,name:I.name,groupCid:ko});v({type:"entry:refresh:org-asset:from:cid",payload:{groupCid:ko}}),v({type:"entry:search-panel:transfer:user:asset:to:org",payload:{cid:vn,groupCid:ko}}),MB.notice({text:I18N.LibraryContainer.image_move_to_org_success}),M&&M()},Bt=I18N.LibraryContainer.add_assets_from_personal_to_team,ao=I18N.LibraryContainer.add_to_team_assets;v({type:"modal:update:state",payload:{designTransferModal:{isOpen:!0,title:Bt,confirmText:ao,selectCidSet:new Set(I.cid),itemGroups:Te,isImage:!0,onModalTransfer:ut}}})}}},gr={"entry:refresh:org-asset:from:cid":async(Z,G)=>{let{dispatch:B}=Z,{payload:{groupCid:v}}=G;const{orgAssets:I}=await(0,H.l9)(),M=I.filter(j=>j.group_cid===v);M&&B({type:"image-panel:set:org-assets-map",payload:{groupCid:v,orgAssets:M}})},"entry:batch:remove:org-asset":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{orgAsset:I,callback:M}}=G;const j=B(),Y=(0,Oo.qY)(j),oe=[];if(oe.push(I),oe.length===0){MB.notice({text:I18N.LibraryContainer.no_image_can_del});return}const[ie,le]=[I18N.LibraryContainer.dele_image,I18N.LibraryContainer.materialLibrary.image_delete_tips.replace(/%s/,oe[0].name)];Y!=null&&Y.get(I.group_cid)||await v({type:"entry:refresh:org-asset:from:cid",payload:{groupCid:I.group_cid}});const ue=()=>{const Te=new Set(oe.map(De=>{let{cid:$e}=De;return $e}));Te.size===1?(v({type:"entry:refresh:org-asset:delete",payload:{orgAsset:I}}),v({type:"entry:search-panel:remove:asset:from:asset",payload:{asset:I,isOrg:!0}}),MB.notice({text:I18N.LibraryContainer.image_del_success}),M&&M()):Te.size===0&&MB.notice({text:I18N.LibraryContainer.no_image_can_del}),ii.Y4.trackLibraryMaterialOperation({materialType:"\u56FE\u7247",materialOperation:"\u5220\u9664"})};v({type:"modal:update:confirm:state",payload:{isOpen:!0,title:ie,desc:le,onConfirm:()=>{ue()}}})},"entry:batch:transfer:org-asset":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{orgAsset:I,callback:M}}=G;const j=B(),Y=(0,Oo.zX)(j),oe=async le=>{let{selectedGroupCid:ue}=le;if(ue===I.group_cid){MB.notice({text:"\u56FE\u7247\u5DF2\u5B58\u5728\u5F53\u524D\u6587\u4EF6\u5939\u4E2D",type:"error"});return}const Te=[I.group_cid];I.group_cid=ue,Te.push(ue),await v({type:"entry:refresh:org-asset:from:group_cid",payload:{refreshGroupCidList:Te,orgAsset:I}}),await(0,H.hY)({cids:[I.cid],...I}),MB.notice({text:I18N.LibraryContainer.asset_move_success}),!(0,Oo.i)(j).includes(ue)&&v({type:"image-panel:set:local-org-assets-expand-cids",payload:{oper:"plus",cid:ue}}),await v({type:"entry:refresh:org-asset:from:cid",payload:{groupCid:ue}}),v({type:"entry:auto:scroll-to:active-asset-group",payload:{activeAssetGroup:ue,isOrg:!0}}),M&&M(),ii.Y4.trackLibraryMaterialOperation({materialType:"\u56FE\u7247",materialOperation:"\u79FB\u52A8"})},ie=I18N.LibraryContainer.materialLibrary.asset_move;v({type:"modal:update:state",payload:{designTransferModal:{isOpen:!0,title:ie,selectCidSet:new Set(I.cid),itemGroups:Y,isImage:!0,onModalTransfer:oe}}})},"entry:refresh:org-asset:delete":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{orgAsset:I}}=G;const M=B(),j=(0,Oo.zX)(M),Y=(0,Oo.qY)(M);for(const oe of j)if(I.group_cid===oe.cid&&Y.get(I.group_cid)){const ie=[],le=Y.get(I.group_cid);for(const ue of le)ue.cid!==I.cid?ie.push(ue):(0,H.vS)(I);v({type:"image-panel:set:org-assets-map",payload:{groupCid:I.group_cid,orgAssets:ie}})}v({type:"entry:refresh:org-asset:count:url"})},"entry:refresh:org-asset:from:group_cid":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{refreshGroupCidList:I,orgAsset:M}}=G;const j=B(),Y=(0,Oo.qY)(j),[oe,ie]=I;if(Y.get(oe)){const le=[],ue=Y.get(oe);for(const Te of ue)Te.cid!==M.cid&&le.push(Te);v({type:"image-panel:set:org-assets-map",payload:{groupCid:oe,orgAssets:le}})}if(Y.get(ie)){const ue=[...Y.get(ie),M];v({type:"image-panel:set:org-assets-map",payload:{groupCid:ie,orgAssets:ue}})}v({type:"entry:refresh:org-asset:count:url"})},"entry:refresh:org-asset:update":async(Z,G)=>{var B,v;let{getState:I,dispatch:M}=Z,{payload:{orgAssetUpdateList:j}}=G;const Y=I(),oe=(0,Oo.qY)(Y),ie=[],le=j[0].group_cid,ue=j[0].cid,Te=oe.get(le),De=(0,Oo.uq)(Y),$e=(B=De[bn.b4])==null?void 0:B.list;if(!($e!=null&&$e.length))return;const Qe=(0,eo.dU)({list:$e,keys:[eo.rf.Org],type:ro.I.Asset,mapFunc:function(Bt){return Bt===void 0&&(Bt=[]),Bt.map(ao=>(ao==null?void 0:ao.cid)===ue?{...j[0]}:ao)}}),qe={...De,asset:{...De[eo.rf.Org],list:Qe,total:(v=De.asset)==null?void 0:v.total}};M({type:"searchPanel:update:state",payload:{searchResultListMap:qe}});const ut={};for(const Bt of j)ut[Bt.cid]=Bt,(0,H.hY)({cids:[Bt.cid],...Bt});if(Te){for(const Bt of Te)if(ut[Bt.cid]){const ao=ut[Bt.cid];ie.push(ao)}else ie.push(Bt);M({type:"image-panel:set:org-assets-map",payload:{groupCid:le,orgAssets:ie}})}M({type:"entry:refresh:org-asset:count:url"}),ii.Y4.trackLibraryMaterialOperation({materialType:"\u56FE\u7247",materialOperation:"\u91CD\u547D\u540D"})},"entry:refresh:org-asset:count:url":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,Oo.qY)(v),M=(0,Oo.zX)(v),j=[];for(const Y of M){const oe=I.get(Y.cid);if(oe){let ie=0;for(const ue of oe)ie=ie+ue.size;const le={...Y,assets_count:oe.length,assets_size:ie};j.push(le)}else j.push(Y)}B({type:"image-panel:set:org-assets-groups",payload:{nextGroups:j}})},"entry:update:org:asset":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{orgAssetList:I,type:M,fromUser:j}}=G;const Y=B();if(!((0,E.OW)(Y)===So.lS.Asset))return;const le=(0,Oo.qY)(Y),ue=(0,o.HW)(Y),Te={};for(const De of I)Te[De.cid]=De;for(const De of I)if(le.get(De.group_cid)){const $e=le.get(De.group_cid),Qe={},qe=[];for(const ut of $e)Qe[ut.cid]=ut;if(M==="del")for(const ut of $e)Te[ut.cid]||qe.push(ut);else{for(const ut of $e)Te[ut.cid]&&Qe[ut.cid]?(qe.push(Te[ut.cid]),delete Te[ut.cid]):Qe[ut.cid]&&qe.push(Qe[ut.cid]);for(const ut of Object.values(Te))Qe[ut.cid]||ue.id!==j.id&&qe.push(ut)}v({type:"image-panel:set:org-assets-map",payload:{groupCid:De.group_cid,orgAssets:qe}})}}};var ir=e(79619);const Wr=(Z,G)=>{let B=0;for(;G!==null;){const v=Z.find(I=>I.cid===G);if(v)G=v.parent_cid,B++;else throw new Error("Parent node "+G+" not found.")}return B},pl=(Z,G,B)=>G===null?!0:Wr(Z,G)+1<=B,br=(Z,G)=>{const B=[G];function v(I){const M=Z.filter(j=>j.parent_cid===I);B.push(...M),M.forEach(j=>v(j.cid))}return v(G.cid),Array.from(new Set(B))},Na=(Z,G,B)=>{const v=br(G,Z),I=[];return v.forEach(M=>{I.push(...B.get(M.cid)||[])}),{groupsAndSub:v,assets:I}},Nr=(Z,G)=>{const B=(0,ea.H)(Z),v=[],I=(M,j,Y)=>{for(const ie of M){var oe;ie.level<=j&&ie.cid!==Y&&(ie.level===j&&(ie.subFolder=[]),v.push(ie)),((oe=ie.subFolder)==null?void 0:oe.length)>0&&I(ie.subFolder,j,Y)}};return I(B,G.level,G.cid),v};var ma=e(61654);const ml={...va,...dr,...gr,...{"entry:load:user:asset:group:list":async Z=>{let{dispatch:G}=Z;const{userAssetGroupList:B}=await(0,H.OJ)();await G({type:"image-panel:set:user-assets-groups",payload:{nextGroups:B}}),await G({type:"image-panel:update:state",payload:{isRequestUserAssetGroup:!0}})},"entry:create:user-asset-group":async Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,Oo.sF)(v),M=(0,o.HW)(v),j={cid:(0,ir.Z)()?(0,Do.kt)("oag"):(0,Do.kt)("uag"),name:vi(I,I18N.LibraryContainer.folder),expanded:!1,position:0,parent_cid:null},{asset_group:Y}=await(0,H.A9)(M.solo_org.cid,j),oe=Y.cid,ie=(0,yi.ON)(Y,I,H.Qs);B({type:"image-panel:set:user-assets-groups",payload:{nextGroups:ie}}),B({type:"entry:auto:scroll-to:active-asset-group",payload:{activeAssetGroup:oe,isOrg:!1}}),B({type:"update:popups:state",payload:{editingCid:oe}}),ii.Y4.trackLibraryFolderOperation({folderType:"\u56FE\u7247",folderOperation:"\u65B0\u5EFA\u6587\u4EF6\u5939"})},"entry:create:user-asset-group-insertion":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{assetGroup:I,insertionType:M}}=G;const j=B(),Y=(0,Oo.sF)(j),oe=(0,o.HW)(j),{cid:ie,position:le,parent_cid:ue}=I;let Te;Y.forEach(qe=>{qe.cid!==ie?qe.position>le&&(qe.position+=1):M==="up"?(Te={cid:(0,ir.Z)()?(0,Do.kt)("oag"):(0,Do.kt)("uag"),name:vi(Y,I18N.LibraryContainer.folder),expanded:!1,position:le,parentCid:ue},qe.position+=1):Te={cid:(0,ir.Z)()?(0,Do.kt)("oag"):(0,Do.kt)("uag"),name:vi(Y,I18N.LibraryContainer.folder),expanded:!1,position:le+1,parentCid:ue}});const{asset_group:De}=await(0,H.A9)(oe.solo_org.cid,Te),$e=De.cid,Qe=(0,yi.b4)(De,Y,H.Qs);v({type:"image-panel:set:user-assets-groups",payload:{nextGroups:Qe}}),v({type:"entry:auto:scroll-to:active-asset-group",payload:{activeAssetGroup:$e,isOrg:!1}}),v({type:"update:popups:state",payload:{editingCid:$e}}),ii.Y4.trackLibraryFolderOperation({folderType:"\u56FE\u7247",folderOperation:M==="up"?"\u4E0A\u65B9\u6DFB\u52A0\u6587\u4EF6\u5939":"\u4E0B\u65B9\u6DFB\u52A0\u6587\u4EF6\u5939"})},"entry:create:user-sub-asset-group":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{assetGroup:I}}=G;const M=B(),j=(0,Oo.sF)(M),Y=(0,o.HW)(M),{cid:oe,position:ie}=I;try{if(!pl(j,oe,4)){MB.notice({text:"\u6700\u591A\u652F\u63014\u7EA7",type:"error"});return}}catch($e){}let le;j.forEach($e=>{$e.cid!==oe?$e.position>ie&&($e.position+=1):le={cid:(0,ir.Z)()?(0,Do.kt)("oag"):(0,Do.kt)("uag"),name:vi(j,I18N.LibraryContainer.folder),expanded:!1,position:ie+1,parentCid:oe}});const{asset_group:ue}=await(0,H.A9)(Y.solo_org.cid,le),Te=ue.cid,De=(0,yi.b4)(ue,j,H.Qs);v({type:"image-panel:set:user-assets-groups",payload:{nextGroups:De}}),v({type:"entry:auto:scroll-to:active-asset-group",payload:{activeAssetGroup:Te,isOrg:!1}}),v({type:"entry:refresh:user-asset:from:cid",payload:{groupCid:I.cid}}),v({type:"image-panel:set:local-user-assets-expand-cids",payload:{oper:"plus",cid:I.cid}}),v({type:"update:popups:state",payload:{editingCid:Te}}),ii.Y4.trackLibraryFolderOperation({folderType:"\u56FE\u7247",folderOperation:"\u65B0\u5EFA\u5B50\u6587\u4EF6\u5939"})},"entry:remove:user-asset-group":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{assetGroup:I,callback:M}}=G;const j=B(),Y=(0,ma.IE)(j),oe=(0,Oo.sF)(j);MB.safeDelayLoading(I18N.LibraryContainer.in_progress);const{userAssets:ie}=await(0,H.OJ)(),le=br(oe,I),ue=new Map;le.forEach(qe=>{ue.set(qe.cid,[])}),ie.forEach(qe=>{ue.has(qe.group_cid)&&ue.set(qe.group_cid,[...ue.get(qe.group_cid),qe])}),ue.forEach((qe,ut)=>{ut.length>0&&v({type:"image-panel:set:org-assets-map",payload:{groupCid:qe,orgAssets:ut}})});const Te=ue.get(I.cid),{assets:De}=Na(I,oe,ue),$e=Nr(oe,I),Qe=async qe=>{let{isDeleteAsset:ut,selectedCid:Bt}=qe;if(ut)for(const To of De)v({type:"entry:refresh:user-asset:delete",payload:{userAsset:To}});else{const To=[],ko=[];Te.forEach(vn=>{To.push(vn.cid)}),I.subFolder.forEach(vn=>{const Hn={cid:vn.cid,parent_cid:Bt,position:9999};ko.push(Hn)}),ko.length>0&&await(0,H.Jm)(ko),To.length>0&&await(0,H.r3)(To,{groupCid:Bt})}const ao=[];for(const To of oe)I.cid!==To.cid?ao.push(To):await(0,H.ty)(To.cid);v({type:"image-panel:set:user-assets-groups",payload:{nextGroups:ao}}),v({type:"entry:search-panel:remove:group",payload:{matchSelectDelSet:new Set([I.cid]),isOrg:!1,category:bn.b4}}),v({type:"entry:load:user:asset:group:list"}),MB.notice({text:I18N.LibraryContainer.floder_del_success}),M&&M(),ii.Y4.trackLibraryFolderOperation({folderType:"\u56FE\u7247",folderOperation:"\u5220\u9664"})};MB.safeDelayLoading(!1),v({type:"modal:update:state",payload:{assetGroupRemoveModal:{isOpen:!0,assetGroup:I,otherAssetGroups:$e,assetToRemove:De,onModalDelete:Qe}}})},"entry:refresh:user-asset-group:update":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{userAssetGroupUpdateList:I}}=G;const M=B(),j=(0,Oo.sF)(M),Y={};for(const ie of I)Y[ie.cid]=ie;const oe=[];for(const ie of j)Y[ie.cid]?(oe.push(Y[ie.cid]),(0,H.V7)(Y[ie.cid])):oe.push(ie);v({type:"image-panel:set:user-assets-groups",payload:{nextGroups:oe}})},"entry:transfer:to:org:asset-groups":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{assetGroup:I,callback:M}}=G;const j=B(),Y=(0,o.wA)(j),oe=(0,Oo.zX)(j);MB.safeDelayLoading(I18N.LibraryContainer.in_progress);const{orgAssetGroupList:ie}=await(0,H.l9)(Y.cid);if(!ie)return;let le=0;for(const ut of ie){const{assets_size:Bt}=ut;le=le+Bt}const{storage:ue}=(0,Mn.xR)(null,Y),Te=Number(ue),De=Te>=1e3?Te/1e3+"GB":Te+"MB";let $e=0;const{userAssets:Qe}=await(0,H.OJ)();if(Qe.filter(ut=>ut.group_cid===I.cid).forEach(ut=>$e+=ut.size),MB.safeDelayLoading(!1),le+$e>ue*1024*1024)return(0,Os.Nd)("storage",{storage:" "+De,action:"addseats",role:"org",paymentRenewModalParams:{mode:"org_adding_seats",payEntrance:"\u7D20\u6750\u5E93\u5BB9\u91CF\u8D85\u8FC7\u9650\u5236"},submit:I18N.LibraryContainer.renew_prompt.add_seats,orgCid:Y.cid}),!0;{const ut=async()=>{const Bt=(0,Do.kt)("oag"),{name:ao,cid:To}=I,ko=await(0,H.kZ)({org_cid:Y.cid,name:ao,group_cid:To});v({type:"entry:load:org:asset:group:list"}),v({type:"entry:search-panel:refresh:group:add",payload:{category:bn.b4,groupAddList:[ko]}}),MB.notice({text:I18N.LibraryContainer.image_move_to_org_success}),M&&M()};v({type:"modal:update:confirm:state",payload:{isOpen:!0,title:I18N.LibraryContainer.add_to_org_material,desc:I18N.LibraryContainer.materialLibrary.add_to_org_tips.replace(/%s/,(0,Go.rB)().process(I.name)),onConfirm:()=>{ut()}}})}},"entry:refresh:user-asset-group:delete":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{matchSelectDelSet:I}}=G;const M=B(),j=(0,Oo.sF)(M),Y=[];for(const oe of j)I.has(oe.cid)?(0,H.ty)(oe.cid):Y.push(oe);v({type:"image-panel:set:user-assets-groups",payload:{nextGroups:Y}})}},...{"entry:load:org:asset:group:list":async Z=>{let{dispatch:G,getState:B}=Z;const v=B(),I=(0,o.wA)(v),{orgAssetGroupList:M}=await(0,H.l9)(I.cid);M&&(await G({type:"image-panel:set:org-assets-groups",payload:{nextGroups:M}}),await G({type:"image-panel:update:state",payload:{isRequestOrgAssetGroup:!0}}))},"entry:refresh:org-asset-group:update":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{orgAssetGroupUpdateList:I}}=G;const M=B(),j=(0,Oo.zX)(M),Y={};for(const ie of I)Y[ie.cid]=ie;const oe=[];for(const ie of j)Y[ie.cid]?(oe.push(Y[ie.cid]),(0,H.A1)(Y[ie.cid])):oe.push(ie);v({type:"image-panel:set:org-assets-groups",payload:{nextGroups:oe}})},"entry:create:org-asset-group":async Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,o.wA)(v),M=(0,Oo.zX)(v),j={cid:(0,Do.kt)("oag"),org_cid:I.cid,name:vi(M,I18N.LibraryContainer.folder),expanded:!1,position:0},{asset_group:Y}=await(0,H.A9)(I.cid,j),oe=Y.cid,ie=(0,yi.ON)(Y,M,(0,H.XG)(I.cid));B({type:"image-panel:set:org-assets-groups",payload:{nextGroups:ie}}),B({type:"entry:auto:scroll-to:active-asset-group",payload:{activeAssetGroup:oe,isOrg:!0}}),B({type:"update:popups:state",payload:{editingCid:oe}}),ii.Y4.trackLibraryFolderOperation({folderType:"\u56FE\u7247",folderOperation:"\u65B0\u5EFA\u6587\u4EF6\u5939"})},"entry:create:org-asset-group-insertion":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{assetGroup:I,insertionType:M}}=G;const j=B(),Y=(0,o.wA)(j),oe=(0,Oo.zX)(j),{cid:ie,position:le,parent_cid:ue}=I;let Te;oe.forEach(qe=>{qe.cid!==ie?qe.position>le&&(qe.position+=1):M==="up"?(Te={cid:(0,Do.kt)("oag"),name:vi(oe,I18N.LibraryContainer.folder),expanded:!1,position:le,parentCid:ue},qe.position+=1):Te={cid:(0,Do.kt)("oag"),name:vi(oe,I18N.LibraryContainer.folder),expanded:!1,position:le+1,parentCid:ue}});const{asset_group:De}=await(0,H.A9)(Y.cid,Te),$e=De.cid,Qe=(0,yi.b4)(De,oe,(0,H.XG)(Y.cid));v({type:"image-panel:set:org-assets-groups",payload:{nextGroups:Qe}}),v({type:"entry:auto:scroll-to:active-asset-group",payload:{activeAssetGroup:$e,isOrg:!0}}),v({type:"update:popups:state",payload:{editingCid:$e}}),ii.Y4.trackLibraryFolderOperation({folderType:"\u56FE\u7247",folderOperation:M==="up"?"\u4E0A\u65B9\u6DFB\u52A0\u6587\u4EF6\u5939":"\u4E0B\u65B9\u6DFB\u52A0\u6587\u4EF6\u5939"})},"entry:create:org-sub-asset-group":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{assetGroup:I}}=G;const M=B(),j=(0,Oo.zX)(M),{cid:Y,position:oe}=I,ie=(0,o.wA)(M);try{if(!pl(j,Y,4)){MB.notice({text:"\u6700\u591A\u652F\u63014\u7EA7",type:"error"});return}}catch($e){}let le;j.forEach($e=>{$e.cid!==Y?$e.position>oe&&($e.position+=1):le={cid:(0,Do.kt)("oag"),name:vi(j,I18N.LibraryContainer.folder),expanded:!1,position:oe+1,parentCid:Y}});const{asset_group:ue}=await(0,H.A9)(ie.cid,le),Te=ue.cid,De=(0,yi.b4)(ue,j,(0,H.XG)(ie.cid));v({type:"image-panel:set:org-assets-groups",payload:{nextGroups:De}}),v({type:"entry:auto:scroll-to:active-asset-group",payload:{activeAssetGroup:Te,isOrg:!0}}),v({type:"entry:refresh:org-asset:from:cid",payload:{groupCid:I.cid}}),v({type:"image-panel:set:local-org-assets-expand-cids",payload:{oper:"plus",cid:I.cid}}),v({type:"update:popups:state",payload:{editingCid:Te}}),ii.Y4.trackLibraryFolderOperation({folderType:"\u56FE\u7247",folderOperation:"\u65B0\u5EFA\u5B50\u6587\u4EF6\u5939"})},"entry:refresh:org-asset-group:delete":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{matchSelectDelSet:I}}=G;const M=B(),j=(0,Oo.zX)(M),Y=[];for(const oe of j)I.has(oe.cid)?(0,H.yV)(oe.cid):Y.push(oe);MB.notice({text:I18N.LibraryContainer.floder_del_success}),v({type:"image-panel:set:org-assets-groups",payload:{nextGroups:Y}})},"entry:remove:org-asset-group":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{assetGroup:I,callback:M}}=G;const j=B(),Y=(0,ma.IE)(j),oe=(0,Oo.zX)(j);MB.safeDelayLoading(I18N.LibraryContainer.in_progress);const{orgAssets:ie}=await(0,H.l9)(Y),le=br(oe,I),ue=new Map;le.forEach(qe=>{ue.set(qe.cid,[])}),ie.forEach(qe=>{ue.has(qe.group_cid)&&ue.set(qe.group_cid,[...ue.get(qe.group_cid),qe])}),ue.forEach((qe,ut)=>{ut.length>0&&v({type:"image-panel:set:org-assets-map",payload:{groupCid:qe,orgAssets:ut}})});const Te=ue.get(I.cid),{assets:De}=Na(I,oe,ue),$e=Nr(oe,I),Qe=async qe=>{let{isDeleteAsset:ut,selectedCid:Bt}=qe;if(ut)for(const To of De)v({type:"entry:refresh:org-asset:delete",payload:{orgAsset:To}});else{const To=[],ko=[];Te.forEach(vn=>{To.push(vn.cid)}),I.subFolder.forEach(vn=>{const Hn={cid:vn.cid,parent_cid:Bt,position:9999};ko.push(Hn)}),ko.length>0&&await(0,H.Jm)(ko),To.length>0&&await(0,H.r3)(To,{groupCid:Bt})}const ao=[];for(const To of oe)I.cid!==To.cid?ao.push(To):await(0,H.yV)(To.cid);v({type:"image-panel:set:org-assets-groups",payload:{nextGroups:ao}}),v({type:"entry:search-panel:remove:group",payload:{matchSelectDelSet:new Set([I.cid]),isOrg:!0,category:bn.b4}}),v({type:"entry:load:org:asset:group:list"}),MB.notice({text:I18N.LibraryContainer.floder_del_success}),M&&M(),ii.Y4.trackLibraryFolderOperation({folderType:"\u56FE\u7247",folderOperation:"\u5220\u9664"})};MB.safeDelayLoading(!1),v({type:"modal:update:state",payload:{assetGroupRemoveModal:{isOpen:!0,assetGroup:I,otherAssetGroups:$e,assetToRemove:De,onModalDelete:Qe}}})},"entry:update:org:asset-group":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{orgAssetGroupList:I,type:M}}=G;const j=B(),Y=(0,Oo.zX)(j),oe=(0,E.OW)(j),ie=[],le={},ue={};if(oe===So.lS.Asset){for(const De of I)le[De.cid]=De;for(const De of Y)ue[De.cid]=De;if(M==="del")for(const De of Y)le[De.cid]||ie.push(De);else{for(const De of Y)le[De.cid]&&ue[De.cid]?(ie.push(le[De.cid]),delete le[De.cid]):ue[De.cid]&&ie.push(ue[De.cid]);for(const De of Object.values(le))ue[De.cid]||ie.push(De)}v({type:"image-panel:set:org-assets-groups",payload:{nextGroups:ie}})}}},...{"entry:create:widget:by:asset":(Z,G)=>{let{dispatch:B}=Z,{payload:{asset:v}}=G;if(!(0,Fn._c)({type:l.x.WImage}))return;const I=(0,J.BL)(v),M=[{items:[I],width:I.width,height:I.height}];B({type:"entry:batch:create:items",payload:{data:M}})},"entry:replace:widget:by:asset":(Z,G)=>{let{dispatch:B}=Z,{payload:{asset:v,assetReplaceMode:I}}=G;I===l.x.WImage?B({type:"entry:items:set:asset",payload:{asset:v}}):I===l.x.WCarousel&&B({type:"entry:replace:carousel:image",payload:{image:v==null?void 0:v.image,resetSelectIndex:!1}})},"entry:insert:sticky:by:asset":(Z,G)=>{var B;let{getState:v,dispatch:I}=Z,{payload:{asset:M}}=G;const j=v(),Y=(0,o.lh)(j),oe=sdkStore.getHotItem(Y);oe&&[l.x.WSticky,l.x.WTear].includes(oe==null||(B=oe.hotAttr)==null?void 0:B.type)&&xt.A.emit("draft:side-toolbar:image",{asset:M})}}};var zc=e(80627);function zl(Z,G,B){if(Z.cid===G.sup){Z.subFolder.forEach(I=>{I.data.zIndex=I.data.zIndex>=B?(I.data.zIndex||0)+1:I.data.zIndex});return}Z&&Z.folder&&Z.folder.forEach(v=>zl(v,G,B))}function Wl(Z,G,B){B===void 0&&(B=0);for(const v of Z){if(v.cid===G)return B;if(v.subFolder&&v.subFolder.length>0){const I=Wl(v.subFolder,G,B+1);if(I!==-1)return I}}return-1}const $r=(Z,G,B)=>{const v=Wl(Z,G);if(v===-1)throw new Error("cid not found");return v<B-1},Bl=(Z,G)=>{const B=v=>{for(const j of v){var I,M;if((I=j.children)!=null&&I.length&&(j.children.some(Y=>Y.key===G)||B(j.children))||(M=j.subFolder)!=null&&M.length&&B(j.subFolder))return!0}return!1};return B(Z)},Jl=(Z,G)=>{const B=v=>{for(const M of v){var I;if(M.cid===G)return M;if((I=M.subFolder)!=null&&I.length){const j=B(M.subFolder);if(j)return j}}return null};return B(Z)},$l=function(Z,G,B){B===void 0&&(B=null);const v=I=>{for(const Y of I){var M,j;if((M=Y.children)!=null&&M.length){const oe=Y.children.find(le=>le.key===G);if(oe)return B&&B(oe),Z;const ie=v(Y.children);if(ie)return ie}if((j=Y.subFolder)!=null&&j.length){const oe=v(Y.subFolder);if(oe)return oe}}return null};return v(Z)},Rl=(Z,G)=>{const B=[],v=[],I=(j,Y)=>{for(const ie of j){var oe;if(ie.cid===Y)return M(ie),!0;if(((oe=ie.subFolder)==null?void 0:oe.length)>0&&I(ie.subFolder,Y))return!0}return!1},M=j=>{var Y;if(B.push(...j.children),v.push(j),((Y=j.subFolder)==null?void 0:Y.length)>0)for(const oe of j.subFolder)M(oe)};return I(G,Z.cid),{combos:B,groupsAndSub:v}},Ic=(Z,G)=>{const B=[],v=new Set,I=ps()(G),M=(j,Y,oe)=>{for(const le of j){var ie;le.level<=Y&&(le.level===Y&&(le.subFolder=[]),!v.has(le.cid)&&B.push(le),le.subFolder=le.subFolder.filter(ue=>{if(v.add(ue.cid),ue.cid!==oe)return ue})),((ie=le.subFolder)==null?void 0:ie.length)>0&&M(le.subFolder,Y,oe)}};return M(I,Z.level,Z.cid),B},Sl=(Z,G)=>{const B=function(I,M,j){j===void 0&&(j=[]);for(const Y of I){const oe=[...j,Y.name];if(Y.cid===M)return oe;if(Y.subFolder){const ie=B(Y.subFolder,M,oe);if(ie)return ie}}return null},v=B(Z,G)||[];return v.length===0?"\u9876\u5C42\u6587\u4EF6\u5939":v.join("/")};var ql=e(63785);const uc=Symbol("CREATE_FOLDER"),mc=Symbol("DELETE_FOLDER"),ld=Symbol("RENAME_FOLDER"),Gc=Symbol("MOVE_FOLDER"),ar=Symbol("CREATE_ELEMENT"),ec=Symbol("MOVE_ELEMENT"),gd=Symbol("DELETE_ELEMENT"),Yc=Symbol("CHANGE_ACCESS"),_c={[uc]:4e3,[mc]:4001,[ld]:4002,[Gc]:4003,[ar]:4004,[ec]:4005,[gd]:4006,[Yc]:4010},Zc=(Z,G)=>{const{userName:B,folderCid:v,folderName:I,folderNewName:M,folderType:j,folderContainsCount:Y,category:oe,elementName:ie,memberName:le,memberId:ue,policy:Te,elementPath:De,folderPath:$e}=G;switch(Z){case uc:return{user_name:B,design_folder_cid:v,design_folder_name:I,design_folder_type:j};case mc:return{user_name:B,design_folder_cid:v,design_folder_name:I,design_folder_type:j,design_folder_contains:Y};case ld:return{user_name:B,design_folder_cid:v,design_folder_name:I,design_folder_type:j,design_folder_new_name:M};case ar:return{user_name:B,design_category:oe,design_element_name:ie};case ec:return{user_name:B,design_category:oe,design_element_name:ie,element_path:De};case Gc:return{user_name:B,design_folder_cid:v,design_folder_name:I,design_folder_type:j,folder_path:$e};case gd:return{user_name:B,design_category:oe,design_element_name:ie};case Yc:return{user_name:B,member_name:le,member_id:ue,policy:Te};default:return{}}},i0={"entry:track:org:library:operation:log":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const{operationType:M,optional:j}=I,Y=B(),{cid:oe}=(0,o.wA)(Y),ie=(0,o.HW)(Y),le=Zc(M,{...j,userName:ie.name});await(0,ql.VX)({actionType:4,action:_c[M],orgCid:oe,extra:le})}},Mc={"entry:create:combo:to:user:org:group":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I={group_cid:"",targetType:"user"}}=G;const{group_cid:M,targetType:j,callback:Y}=I,oe=B(),ie=(0,$.x$)(oe).filter(Rn=>!(0,gt.OO)(Rn.key)),le=j==="user",ue=(0,o.HW)(oe),Te=ue==null?void 0:ue.id;if(le&&!window.userSdkStore){const Rn=(0,o.F2)(oe);await(0,Wt.Z)({fcg:Rn,userId:Te})}if(!le&&!window.orgSdkStore){const Rn=(0,o._x)(oe);await(0,Wt.Z)({fcg:Rn,userId:Te,isOrg:!0})}const De=B(),$e=le?(0,Oo.wS)(De):(0,Oo.lb)(De),Qe=(0,Jt.ju)(ie),qe=le?userSdkStore:orgSdkStore,ut=[];ie.forEach(Rn=>ut.push(...(0,zc.Yf)(Rn))),ut.length&&!Qe&&(ut.some(Rn=>Rn.name===l.x.WBasket)?MB.notice({text:I18N.__entry__.dynamic_create_tips}):MB.notice({text:I18N.__entry__.master_create_tips})),MB.safeDelayLoading(I18N.__entry__.in_progress);const Bt=(0,$.QA)(oe),ao=Bt.length?(0,li.WM)(Bt[0]):I18N.__entry__.untitled,To=vi($e,I18N.__entry__.folder),ko=$e.sort((Rn,Ln)=>Rn.data.zIndex-Ln.data.zIndex),vn=ko.length===0,Hn=ko.length&&ko[0].cid,os=M||Hn,on=le?I18N.__entry__.add_to_my_widget:I18N.__entry__.add_to_org_widget;qe.combineMergeMark("create-combo");const hn=async Rn=>{let{isCreating:Ln,createName:Ms,targetGroupCid:pi,groupName:Ts,onModalClose:Js}=Rn,ki;if(Ln){const ca=(0,es.Hz)({name:Ts,sup:"B@main",asFolder:!0,store:qe,zIndex:0});ki=ca.key;const Ua={cid:ca.key,name:ca.hotAttr.name,data:ca.hotAttr,children:[]};le?await v({type:"entry:refresh:user-combo-group:add",payload:{userComboGroupAddList:[Ua]}}):await v({type:"entry:refresh:org-combo-group:add",payload:{orgComboGroupAddList:[Ua]}})}else ki=pi;const js=Jl($e,pi),ai=(js==null?void 0:js.children)||[],qi=(0,es.Hz)({name:Ms,sup:ki,store:qe}),or=sdkStore.saveSubtree(ut.map(ca=>ca.cid)),{contentFlatTree:Yi}=sdkStore.parseSubtree(or),[Hr,Wa]=sdkStore.getHotKeyListAABB(ie.map(ca=>ca.key)),nr={x:-Hr,y:-Wa};(0,_.BB)({data:or,worldPos:{x:0,y:0},keyRndSup:qi.key,currentPageKey:qi.key,store:qe,option:{isRename:!0,isRenameOnCreate:!1,isOptionDup:!1,isResetStickyPoint:!1},offset:nr});const zi=[qi].concat(ai).map((ca,Ua)=>({...ca,hotAttr:{...ca.hotAttr,zIndex:Ua+1}}));qe.updateHotItemBatch(zi),Yi.get("B@ref-muban").sub.forEach(ca=>{Array.from(qe._calcIntActConnMapCached().refPageToBasket[ca]||[]).forEach(Ua=>{v({type:"entry:basket:transform",payload:{itemsKeyList:[Ua],store:qe,hasUpdateWidgetTreeData:!1,type:"createCombo"}})})}),qe.combineMerge("create-combo"),Js(),le?(v({type:"entry:load:user:combo:group:list"}),!(0,Oo.MV)(oe).includes(ki)&&v({type:"widget-panel:set:local-user-combo-expand-cids",payload:{oper:"plus",cid:ki}}),MB.notice({text:I18N.__entry__.widget_move_to_solo_success}),userSdk.saveAsync()):(v({type:"entry:load:org:combo:group:list"}),!(0,Oo.bg)(oe).includes(ki)&&v({type:"widget-panel:set:local-org-combo-expand-cids",payload:{oper:"plus",cid:ki}}),MB.notice({text:I18N.__entry__.widget_move_to_org_success}),v({type:"entry:track:org:library:operation:log",payload:{operationType:ar,optional:{category:"combo",elementName:Ms}}}),orgSdk.saveAsync()),v({type:"entry:auto:scroll-to:active-combo-group",payload:{activeComboGroup:ki,isOrg:!le}}),Y&&Y()};MB.safeDelayLoading(!1),v({type:"modal:update:state",payload:{designCreateWithGroupModal:{isOpen:!0,isCreating:vn,modalTitle:on,createName:ao,targetGroupCid:os,groupName:To,optionGroupItemList:ko,onModalConfirm:hn}}})},"entry:check:combo:auto:to:user:org:group":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const{isOrg:M}=I;v({type:"entry:create:combo:to:user:org:group",payload:{targetType:M?"org":"user"}})},"entry:batch:transfer:user:combo:to:org":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{combo:I,callback:M}}=G;const j=B(),Y=(0,o.wA)(j),oe=(0,o.HW)(j),ie=(0,o._x)(j);!window.orgSdkStore&&Y&&ie&&oe&&await(0,Wt.Z)({fcg:ie,userId:oe.id,isOrg:!0});const le=async ut=>{let{selectedGroupCid:Bt}=ut;const ao=Te.find(hn=>hn.cid===Bt),To=userSdkStore.getHotItem(I.key),ko=(0,es.Hz)({name:To.hotAttr.name,sup:Bt,store:orgSdkStore}),vn=userSdkStore.saveSubtree(To.sub),{x:Hn,y:os}=(0,N.lY)(To,userSdkStore);(0,_.BB)({data:vn,worldPos:{x:Hn,y:os},keyRndSup:ko.key,currentPageKey:ko.key,store:orgSdkStore,option:{isRename:!0,isRenameOnCreate:!1,isOptionDup:!1,isResetStickyPoint:!1}});const on=[ko].concat((ao==null?void 0:ao.children)||[]).map((hn,Rn)=>({...hn,sup:Bt,hotAttr:{...hn.hotAttr,zIndex:Rn+1}}));orgSdkStore.updateHotItemBatch(on),M&&M(),MB.notice({text:I18N.__entry__.widget_move_to_org_success}),v({type:"entry:load:org:combo:group:list"})},ue=B(j),Te=(0,Oo.lb)(ue),De=new Set([I.key]),$e=I18N.LibraryContainer.add_assets_from_personal_to_team,Qe=I18N.LibraryContainer.add_to_team_assets;v({type:"modal:update:state",payload:{designTransferModal:{isOpen:!0,title:$e,confirmText:Qe,selectCidSet:De,itemGroups:Te,onModalTransfer:le}}}),await orgSdk.saveAsync()}},Id={"entry:batch:remove:user:combo":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{group:I,combo:M,callback:j}}=G;const Y=B(),oe=(0,Oo.wS)(Y);Bl(oe,M.key)&&v({type:"entry:auto:remove:combo",payload:{group:I,combosToRemove:[M],callback:j}})},"entry:batch:transfer:user:combos":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const{excludedCombo:M,selectedGroupCid:j}=I,Y=B(),ie=(0,Oo.wS)(Y).find(Te=>Te.cid===j),le=[M].concat((ie==null?void 0:ie.children)||[]).map((Te,De)=>({...Te,sup:j,hotAttr:{...Te.hotAttr,zIndex:De+1}}));userSdkStore.updateHotItemBatch(le),v({type:"entry:load:user:combo:group:list"});const ue=[M].map(Te=>({...Te,group:ie}));v({type:"entry:search-panel:transfer:combo",payload:{transferCombos:ue}}),await userSdk.saveAsync()},"entry:update:user-combo:name":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{groupCid:I,itemCid:M,name:j}}=G;const Y=B(),oe=(0,Oo.wS)(Y),ie=$l(oe,M,le=>{userSdkStore.updateHotAttrMerge(le.key,{name:j}),le.hotAttr.name=j});v({type:"widget-panel:set:user-combo-groups",payload:{nextComboGroups:ie}}),userSdk.saveAsync()}},Tc={"entry:batch:remove:org:combo":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{group:I,combo:M,callback:j}}=G;const Y=B(),oe=(0,Oo.lb)(Y),ie=Bl(oe,M.key),le=[M];ie&&v({type:"entry:auto:remove:combo",payload:{group:I,combosToRemove:le,isOrg:!0,callback:()=>{v({type:"entry:track:org:library:operation:log",payload:{operationType:gd,optional:{elementName:le.map(Te=>{let{hotAttr:De}=Te;return De.name}).join(","),category:"combo"}}}),j&&j()}}})},"entry:batch:transfer:org:combos":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const{excludedCombo:M,selectedGroupCid:j}=I,Y=B(),oe=(0,Oo.lb)(Y),ie=oe.find(De=>De.cid===j),le=[M].concat((ie==null?void 0:ie.children)||[]).map((De,$e)=>({...De,sup:j,hotAttr:{...De.hotAttr,zIndex:$e+1}}));orgSdkStore.updateHotItemBatch(le),v({type:"entry:load:org:combo:group:list"});const ue=[M].map(De=>({...De,group:ie}));v({type:"entry:search-panel:transfer:combo",payload:{transferCombos:ue,isOrg:!0}});const Te=Sl(oe,j);v({type:"entry:track:org:library:operation:log",payload:{operationType:ec,optional:{category:"combo",elementName:ue.map(De=>{let{hotAttr:$e}=De;return $e.name}).join(","),elementPath:Te}}}),orgSdk.saveAsync()},"entry:update:org-combo:name":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{groupCid:I,itemCid:M,name:j}}=G;const Y=B(),oe=(0,Oo.lb)(Y),ie=$l(oe,M,le=>{orgSdkStore.updateHotAttrMerge(le.key,{name:j}),le.hotAttr.name=j});v({type:"widget-panel:set:org-combo-groups",payload:{nextComboGroups:ie}}),orgSdk.saveAsync(),ii.Y4.trackLibraryMaterialOperation({materialType:"\u7EC4\u4EF6",materialOperation:"\u91CD\u547D\u540D"})}},jd=Z=>{const G=Z.sdkStore,{screenDataMap:B}=(0,zt.tb)("B@main",G),v=(ie,le)=>{const ue=[],Te=G.getSubHotItemList(ie.key).filter(De=>De.hotAttr.bunch===l.x.RbPage&&!(0,Nn.Mo)(De)).map(De=>({...De,flpakKey:Z.fssDat.flpakKey,level:le})).sort((De,$e)=>De.hotAttr.zIndex-$e.hotAttr.zIndex);return ue.push(...Te),Te.forEach(De=>ue.push(...v(De,le+1))),ue},I=(ie,le)=>ie.map(ue=>{const Te=B[ue],De=le+1;if((0,Nn.Mo)(Te))return{cid:Te.key,name:Te.hotAttr.name,data:Te.hotAttr,level:De,subFolder:I(Te.sub,De),children:v(Te,De),sup:Te.sup}}).filter(Boolean),M=[];Array.from(Object.values(B)).filter(ie=>(0,Nn.Mo)(ie)&&ie.sup==="B@main").sort((ie,le)=>ie.hotAttr.zIndex-le.hotAttr.zIndex).forEach(ie=>{M.push({cid:ie.key,name:ie.hotAttr.name,data:ie.hotAttr,level:0,subFolder:I(ie.sub,0),children:v(ie,0),sup:ie.sup})});const j=ie=>ie.sort((le,ue)=>le.data.zIndex-ue.data.zIndex),Y=ie=>j(ie).map((ue,Te)=>{const De=Te;return ue.data.zIndex!==De&&(ue={...ue,data:{...ue.data,zIndex:De+1}}),ue.subFolder&&ue.subFolder.length>0&&(ue.subFolder=Y(ue.subFolder)),ue});return Y(M)},mp={"entry:load:user:combo:group:list":async Z=>{let{dispatch:G}=Z;const B=jd(userSdk);await G({type:"widget-panel:set:user-combo-groups",payload:{nextComboGroups:B}})},"entry:upgrade:user:combo:group:list":async(Z,G)=>{let{dispatch:B}=Z,{payload:{upgradeUserComboGroupList:v}}=G;B({type:"widget-panel:update:state",payload:{upgradeUserComboGroupList:v,isRequestV7UserComboGroup:!0}})},"entry:upgrade:org:combo:group:list":async(Z,G)=>{let{dispatch:B}=Z,{payload:{upgradeOrgComboGroupList:v}}=G;B({type:"widget-panel:update:state",payload:{upgradeOrgComboGroupList:v,isRequestV7OrgComboGroup:!0}})},"entry:create:user-combo-group":async Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,Oo.wS)(v),M=(0,es.Hz)({name:vi(I,I18N.__entry__.folder),asFolder:!0,sup:"B@main",store:userSdkStore,zIndex:0}),j={cid:M.key,name:M.hotAttr.name,data:M.hotAttr,children:[]};await B({type:"entry:refresh:user-combo-group:add",payload:{userComboGroupAddList:[j]}}),B({type:"update:popups:state",payload:{editingCid:j.cid}}),B({type:"entry:auto:scroll-to:active-combo-group",payload:{activeComboGroup:j.cid,isOrg:!1}}),userSdk.saveAsync(),ii.Y4.trackLibraryFolderOperation({folderType:"\u7EC4\u4EF6",folderOperation:"\u65B0\u5EFA\u6587\u4EF6\u5939"})},"entry:create:user-combo-group-insertion":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{comboGroup:I,insertionType:M}}=G;const j=B(),Y=(0,Oo.wS)(j);M==="up"?zl(Y,I,I.data.zIndex):zl(Y,I,I.data.zIndex+1);const oe=(0,es.Hz)({name:vi(Y,I18N.__entry__.folder),asFolder:!0,sup:I.sup,store:userSdkStore,zIndex:M==="up"?I.data.zIndex:I.data.zIndex+1}),ie={cid:oe.key,name:oe.hotAttr.name,data:oe.hotAttr,children:[],sup:oe.sup};await v({type:"entry:refresh:user-combo-group:add",payload:{userComboGroupAddList:[ie]}}),v({type:"update:popups:state",payload:{editingCid:ie.cid}}),userSdk.saveAsync(),ii.Y4.trackLibraryFolderOperation({folderType:"\u7EC4\u4EF6",folderOperation:M==="up"?"\u4E0A\u65B9\u6DFB\u52A0\u6587\u4EF6\u5939":"\u4E0B\u65B9\u6DFB\u52A0\u6587\u4EF6\u5939"})},"entry:create:user-sub-combo-group":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{comboGroup:I}}=G;const M=B(),j=(0,Oo.wS)(M);try{if(!$r(j,I.cid,4)){MB.notice({text:"\u6700\u591A\u652F\u63014\u7EA7",type:"error"});return}}catch(ie){console.log(ie)}const Y=(0,es.Hz)({name:vi(j,I18N.__entry__.folder),asFolder:!0,sup:I.cid,store:userSdkStore}),oe={cid:Y.key,name:Y.hotAttr.name,data:Y.hotAttr,children:[],sup:Y.sup};await v({type:"entry:refresh:user-combo-group:add",payload:{userComboGroupAddList:[oe]}}),v({type:"widget-panel:set:local-user-combo-expand-cids",payload:{oper:"plus",cid:I.cid}}),v({type:"update:popups:state",payload:{editingCid:oe.cid}}),userSdk.saveAsync(),ii.Y4.trackLibraryFolderOperation({folderType:"\u7EC4\u4EF6",folderOperation:"\u65B0\u5EFA\u5B50\u6587\u4EF6\u5939"})},"entry:remove:user-combo-group":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{comboGroup:I,callback:M}}=G;const j=B(),Y=(0,Oo.wS)(j);MB.safeDelayLoading(I18N.__entry__.in_progress);const{combos:oe}=Rl(I,Y),ie=Ic(I,Y),le=async ue=>{let{isDeleteCombo:Te,selectedCid:De}=ue;if(!Te&&Jl(Y,De)){const qe=[...I.children].map((ut,Bt)=>({key:ut.key,sup:De,hotAttr:{...ut.hotAttr,zIndex:Bt+1},sub:ut.sub})).concat([...I.subFolder.map((ut,Bt)=>({key:ut.cid,sup:De,hotAttr:{...ut.data,zIndex:Bt+1},sub:ut.sub}))]);userSdkStore.updateHotItemBatch(qe),v({type:"entry:load:user:combo:group:list"})}const $e=new Set([I.cid]);v({type:"entry:refresh:user-combo-group:delete",payload:{matchSelectDelSet:$e}}),M&&M(),userSdk.saveAsync(),MB.notice({text:I18N.__entry__.floder_del_success}),ii.Y4.trackLibraryFolderOperation({folderType:"\u7EC4\u4EF6",folderOperation:"\u5220\u9664"})};MB.safeDelayLoading(!1),v({type:"modal:update:state",payload:{comboGroupRemoveModal:{isOpen:!0,comboGroup:I,combosToRemove:oe,comboGroupsCanMoveTo:ie,onModalDelete:le}}})},"entry:transfer:to:org:combo-groups":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{comboGroup:I,callback:M}}=G;const j=B(),Y=(0,Oo.lb)(j),oe=(0,o.wA)(j),ie=(0,o.HW)(j),le=(0,o._x)(j);!window.orgSdkStore&&oe&&le&&ie&&await(0,Wt.Z)({fcg:le,userId:ie.id,isOrg:!0});const ue=async()=>{const Te=(qe,ut)=>{qe.forEach(Bt=>{const ao=userSdkStore.getHotItem(Bt);if(ao!=null&&ao.hotAttr.asFolder){const To=(0,es.Hz)({name:ao.hotAttr.name,sup:ut,store:orgSdkStore,asFolder:ao.hotAttr.asFolder});ao.sub&&ao.sub.length&&ao.hotAttr.asFolder&&Te(ao.sub,To.key)}else{const To=userSdkStore.getHotItem(Bt),ko=userSdkStore.saveSubtree(To.sub),vn=(0,es.Hz)({name:To.hotAttr.name,sup:ut,store:orgSdkStore,asFolder:To.hotAttr.asFolder,zIndex:To.hotAttr.zIndex}),{x:Hn,y:os}=(0,N.lY)(To,userSdkStore);(0,_.BB)({data:ko,worldPos:{x:Hn,y:os},keyRndSup:vn.key,currentPageKey:vn.key,store:orgSdkStore,option:{isRename:!0,isRenameOnCreate:!1,isOptionDup:!1,isResetStickyPoint:!1}})}})},De=userSdkStore.getHotItem(I.cid),$e=(0,es.Hz)({name:De.hotAttr.name,sup:"B@main",store:orgSdkStore,asFolder:De.hotAttr.asFolder});De.sub&&De.sub.length&&Te(De.sub,$e.key);const Qe=qe=>{qe.forEach((ut,Bt)=>{var ao;((ao=ut.data)==null?void 0:ao.zIndex)!==Bt+2&&orgSdkStore.updateHotAttrMerge(ut.cid,{zIndex:Bt+2}),ut.subFolder&&ut.subFolder.length&&Qe(ut.subFolder)})};Qe(Y),v({type:"entry:load:org:combo:group:list"}),v({type:"entry:search-panel:refresh:group:add",payload:{category:bn.t_,groupAddList:[{cid:$e.key,name:$e.hotAttr.name,data:$e.hotAttr}]}}),orgSdk.saveAsync(),MB.notice({text:I18N.__entry__.widget_move_to_org_success}),M&&M()};v({type:"modal:update:confirm:state",payload:{isOpen:!0,title:I18N.__entry__.add_to_org_material,desc:I18N.__entry__.add_to_org_tips.replace(/%s/,(0,Go.rB)().process(I.name)),onConfirm:()=>{ue()}}})},"entry:refresh:user-combo-group:delete":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{matchSelectDelSet:I}}=G;const M=B(),j=(0,o.HW)(M),Y=(0,Oo.wS)(M),oe=le=>le.filter(ue=>{const Te=!I.has(ue.cid);return Te||(0,es.X3)(ue.cid,j,userSdkStore),ue.subFolder=oe(ue.subFolder),Te}),ie=oe(Y);v({type:"widget-panel:set:user-combo-groups",payload:{nextComboGroups:ie}})},"entry:refresh:user-combo-group:update":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{userComboGroupUpdateList:I}}=G;const M=B(),j=(0,Oo.wS)(M),Y={};for(const le of I){const ue=(le==null?void 0:le.children)||[];Y[le.cid]={...le,children:ue}}const oe=le=>le.map(ue=>{if(Y[ue.cid]){const Te=Y[ue.cid],{name:De}=Te;return userSdkStore.updateHotAttrMerge(ue.cid,{name:De}),Te.subFolder=oe(ue.subFolder),Te}else return ue.subFolder=oe(ue.subFolder),ue}),ie=oe(j);v({type:"widget-panel:set:user-combo-groups",payload:{nextComboGroups:ie}}),userSdk.saveAsync()},"entry:refresh:user-combo-group:add":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{userComboGroupAddList:I}}=G;const M=B(),j=(0,Oo.wS)(M),Y=(0,yi.jD)(...I,j,userSdkStore.updateHotAttrMerge);v({type:"widget-panel:set:user-combo-groups",payload:{nextComboGroups:Y}})},"entry:refresh:user-combo-group:add:migrate":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{oldUserComboGroups:I}}=G;const M=B(),j=(0,Oo.wS)(M),Y=[];for(const ie of j){let le=!1;const{cid:ue}=ie;for(const Te of I){const{cid:De}=Te;if(De===ue){le=!0;break}}le||Y.push(ie)}const oe=(0,yi.CF)(Y,I,userSdkStore.updateHotAttrMerge);v({type:"widget-panel:set:user-combo-groups",payload:{nextComboGroups:oe}}),await userSdk.saveAsync()}},H0={"entry:load:org:combo:group:list":async Z=>{let{dispatch:G}=Z;const B=jd(orgSdk);await G({type:"widget-panel:set:org-combo-groups",payload:{nextComboGroups:B}})},"entry:create:org:combo-group":async Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,Oo.lb)(v),M=(0,es.Hz)({name:vi(I,I18N.__entry__.folder),asFolder:!0,sup:"B@main",store:orgSdkStore,zIndex:0}),j={cid:M.key,name:M.hotAttr.name,data:M.hotAttr,children:[]};await B({type:"entry:refresh:org-combo-group:add",payload:{orgComboGroupAddList:[j]}}),B({type:"update:popups:state",payload:{editingCid:j.cid}}),B({type:"entry:auto:scroll-to:active-combo-group",payload:{activeComboGroup:j.cid,isOrg:!0}}),orgSdk.saveAsync(),B({type:"entry:track:org:library:operation:log",payload:{operationType:uc,optional:{folderCid:j.cid,folderName:j.name,folderType:"combo"}}}),ii.Y4.trackLibraryFolderOperation({folderType:"\u7EC4\u4EF6",folderOperation:"\u65B0\u5EFA\u6587\u4EF6\u5939"})},"entry:create:org-combo-group-insertion":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{comboGroup:I,insertionType:M}}=G;const j=B(),Y=(0,Oo.lb)(j);M==="up"?zl(Y,I,I.data.zIndex):zl(Y,I,I.data.zIndex+1);const oe=(0,es.Hz)({name:vi(Y,I18N.__entry__.folder),asFolder:!0,sup:I.sup,store:orgSdkStore,zIndex:M==="up"?I.data.zIndex:I.data.zIndex+1}),ie={cid:oe.key,name:oe.hotAttr.name,data:oe.hotAttr,children:[],sup:oe.sup};await v({type:"entry:refresh:org-combo-group:add",payload:{orgComboGroupAddList:[ie]}}),v({type:"update:popups:state",payload:{editingCid:ie.cid}}),orgSdk.saveAsync(),v({type:"entry:track:org:library:operation:log",payload:{operationType:uc,optional:{folderCid:ie.cid,folderName:ie.name,folderType:"combo"}}}),ii.Y4.trackLibraryFolderOperation({folderType:"\u7EC4\u4EF6",folderOperation:M==="up"?"\u4E0A\u65B9\u6DFB\u52A0\u6587\u4EF6\u5939":"\u4E0B\u65B9\u6DFB\u52A0\u6587\u4EF6\u5939"})},"entry:create:org-sub-combo-group":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{comboGroup:I}}=G;const M=B(),j=(0,Oo.lb)(M);try{if(!$r(j,I.cid,4)){MB.notice({text:"\u6700\u591A\u652F\u63014\u7EA7",type:"error"});return}}catch(ie){console.log(ie)}const Y=(0,es.Hz)({name:vi(j,I18N.__entry__.folder),asFolder:!0,sup:I.cid,store:orgSdkStore}),oe={cid:Y.key,name:Y.hotAttr.name,data:Y.hotAttr,children:[],sup:Y.sup};await v({type:"entry:refresh:org-combo-group:add",payload:{orgComboGroupAddList:[oe]}}),v({type:"widget-panel:set:local-org-combo-expand-cids",payload:{oper:"plus",cid:I.cid}}),v({type:"update:popups:state",payload:{editingCid:oe.cid}}),orgSdk.saveAsync(),v({type:"entry:track:org:library:operation:log",payload:{operationType:uc,optional:{folderCid:oe.cid,folderName:oe.name,folderType:"combo"}}}),ii.Y4.trackLibraryFolderOperation({folderType:"\u7EC4\u4EF6",folderOperation:"\u65B0\u5EFA\u5B50\u6587\u4EF6\u5939"})},"entry:remove:org-combo-group":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{comboGroup:I,callback:M}}=G;const j=B(),Y=(0,Oo.lb)(j);MB.safeDelayLoading(I18N.__entry__.in_progress);const{combos:oe}=Rl(I,Y),ie=Ic(I,Y),le=async ue=>{let{isDeleteCombo:Te,selectedCid:De}=ue;if(!Te&&Jl(Y,De)){const qe=[...I.children].map((Bt,ao)=>({key:Bt.key,sup:De,hotAttr:{...Bt.hotAttr,zIndex:ao+1},sub:Bt.sub})).concat([...I.subFolder.map((Bt,ao)=>({key:Bt.cid,sup:De,hotAttr:{...Bt.data,zIndex:ao+1},sub:Bt.sub}))]);orgSdkStore.updateHotItemBatch(qe),v({type:"entry:load:org:combo:group:list"});const ut=Sl(Y,De);I.children.forEach(Bt=>{v({type:"entry:track:org:library:operation:log",payload:{operationType:ec,optional:{category:"combo",elementName:Bt.hotAttr.name,elementPath:ut}}})}),I.subFolder.forEach(Bt=>{v({type:"entry:track:org:library:operation:log",payload:{operationType:Gc,optional:{folderType:"combo",folderCid:Bt.cid,folderName:Bt.name,folderPath:ut}}})})}const $e=new Set([I.cid]);v({type:"entry:refresh:org-combo-group:delete",payload:{matchSelectDelSet:$e}}),M&&M(),orgSdk.saveAsync(),MB.notice({text:I18N.__entry__.floder_del_success}),v({type:"entry:track:org:library:operation:log",payload:{operationType:mc,optional:{folderCid:I.cid,folderName:I.name,folderType:"combo",folderContainsCount:Te?oe.length:0}}}),ii.Y4.trackLibraryFolderOperation({folderType:"\u7EC4\u4EF6",folderOperation:"\u5220\u9664"})};MB.safeDelayLoading(!1),v({type:"modal:update:state",payload:{comboGroupRemoveModal:{isOpen:!0,comboGroup:I,combosToRemove:oe,comboGroupsCanMoveTo:ie,onModalDelete:le}}})},"entry:refresh:org-combo-group:delete":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{matchSelectDelSet:I}}=G;const M=B(),j=(0,o.HW)(M),Y=(0,Oo.lb)(M),oe=le=>le.filter(ue=>{const Te=!I.has(ue.cid);return Te||(0,es.X3)(ue.cid,j,orgSdkStore),ue.subFolder=oe(ue.subFolder),Te}),ie=oe(Y);v({type:"widget-panel:set:org-combo-groups",payload:{nextComboGroups:ie}})},"entry:refresh:org-combo-group:update":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{orgComboGroupUpdateList:I}}=G;const M=B(),j=(0,Oo.lb)(M),Y={};for(const le of I){const ue=(le==null?void 0:le.children)||[];Y[le.cid]={...le,children:ue}}const oe=le=>le.map(ue=>{if(Y[ue.cid]){const Te=Y[ue.cid],{name:De}=Te;return orgSdkStore.updateHotAttrMerge(ue.cid,{name:De}),Te.subFolder=oe(ue.subFolder),Te}else return ue.subFolder=oe(ue.subFolder),ue}),ie=oe(j);v({type:"widget-panel:set:org-combo-groups",payload:{nextComboGroups:ie}}),orgSdk.saveAsync()},"entry:refresh:org-combo-group:add":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{orgComboGroupAddList:I}}=G;const M=B(),j=(0,Oo.lb)(M),Y=I[0],oe=(0,yi.jD)(Y,j,orgSdkStore.updateHotAttrMerge);v({type:"widget-panel:set:org-combo-groups",payload:{nextComboGroups:oe}})},"entry:update:org-combo-group":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{orgComboGroupList:I,type:M}}=G;const j=B(),Y=(0,Oo.lb)(j),oe=[],ie={},le={};for(const ue of I)ie[ue.cid]=ue;for(const ue of Y)le[ue.cid]=ue;if(M==="del")for(const ue of Y)ie[ue.cid]||oe.push(ue);else{for(const ue of Y)ie[ue.cid]&&le[ue.cid]?(oe.push(ie[ue.cid]),delete ie[ue.cid]):le[ue.cid]&&oe.push(ue);for(const ue of Object.values(ie))le[ue.cid]||oe.push(ue)}v({type:"widget-panel:set:org-combo-groups",payload:{nextComboGroups:oe}})},"entry:refresh:org-combo-group:add:migrate":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{oldOrgComboGroups:I}}=G;const M=B(),j=(0,Oo.lb)(M),Y=[];for(const ie of j){let le=!1;const{cid:ue}=ie;for(const Te of I){const{cid:De}=Te;if(De===ue){le=!0;break}}le||Y.push(ie)}const oe=(0,yi.CF)(Y,I,orgSdkStore.updateHotAttrMerge);v({type:"widget-panel:set:org-combo-groups",payload:{nextComboGroups:oe}}),orgSdk.saveAsync()}},K0=(Z,G,B,v)=>{const I=M=>M.map(j=>{if(j.cid===G){const oe=B(j.children).map((ie,le)=>({...ie,hotAttr:{...ie.hotAttr,zIndex:le+1}}));return v.updateHotItemBatch(oe),{...j,children:oe}}return j.subFolder&&j.subFolder.length?{...j,subFolder:I(j.subFolder)}:j.children&&j.children.length?{...j,children:I(j.children)}:j});return I(Z)},S0=(Z,G)=>{const B=(0,Nn.BS)({sup:Z}),v=(0,es.pV)(B,!1,!0),I=G===void 0?B==null?void 0:B.length:G;return B.splice(I,0,null),B.forEach((M,j)=>{if(M&&M.zIndex!==j+1){const Y=sdkStore.getHotItem(M.cid),oe={...Y,hotAttr:{...Y.hotAttr,zIndex:j+1}};sdkStore.updateHotItem(oe)}}),{name:v,sup:Z,zIndex:I+1}},a0={...Mc,...Id,...Tc,...mp,...H0,...{"entry:auto:duplicate:combo":(Z,G)=>{var B;let{getState:v,dispatch:I}=Z,{payload:{group:M,combo:j,isOrg:Y}}=G;const oe=v(),ie=(0,Oo.lb)(oe),le=(0,Oo.wS)(oe),ue=Y?ie:le,Te=Y?orgSdkStore:userSdkStore,De=(0,es.Hz)({name:j.hotAttr.name+" "+I18N.__entry__.name_copy,sup:j.sup,store:Te});Te.dupRBPageSub(j.key,De.key);const $e=Te.getHotItem(De.key),Qe=K0(ue,j.sup,ut=>[$e].concat(ut),Te),qe=Y?"orgComboGroups":"userComboGroups";MB.notice({text:I18N.__entry__.widget_dup_success}),I({type:"widget-panel:update:state",payload:{[qe]:Qe}}),I({type:"entry:search-panel:dup:combo",payload:{cid:De.key,comboGroupCid:(B=j.group)==null?void 0:B.cid,isOrg:Y}}),Y?orgSdk.saveAsync():userSdk.saveAsync(),Y&&ii.Y4.trackLibraryMaterialOperation({materialType:"\u7EC4\u4EF6",materialOperation:"\u521B\u5EFA\u526F\u672C"})},"entry:auto:batch:remove:combo":(Z,G)=>{let{dispatch:B}=Z,{payload:{group:v,combo:I,isOrg:M,callback:j}}=G;B(M?{type:"entry:batch:remove:org:combo",payload:{group:v,combo:I,callback:j}}:{type:"entry:batch:remove:user:combo",payload:{group:v,combo:I,callback:j}})},"entry:auto:remove:combo":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{group:I,combosToRemove:M,isOrg:j=!1,callback:Y}}=G;if(!M.length)return;const oe=M[0],[ie,le]=M.length===1?[I18N.__entry__.del_widget_title,I18N.__entry__.del_widget_desc.replace(/%s/,(0,Go.rB)().process(oe.hotAttr.name))]:[I18N.__entry__.del_widget_title,I18N.__entry__.del_multi_widget_desc],ue=j?orgSdkStore:userSdkStore,Te=B(),De=(0,o.HW)(Te),$e=(0,Oo.lb)(Te),Qe=(0,Oo.wS)(Te),qe=j?$e:Qe,ut=()=>{M.forEach(ko=>(0,es.X3)(ko.key,De,ue));const Bt=M.map(ko=>ko.key),ao=K0(qe,I.cid,ko=>ko.filter(vn=>!Bt.includes(vn.key)),ue),To=j?"orgComboGroups":"userComboGroups";MB.notice({text:I18N.__entry__.widget_del_success}),v({type:"widget-panel:update:state",payload:{[To]:ao}}),v({type:"entry:search-panel:remove:combo:from:comboCid",payload:{comboCidsSet:new Set(Bt),isOrg:j}}),v({type:go.y.entryKey["font:missFontKeyMap:update"]}),Y&&Y(),j?orgSdk.saveAsync():userSdk.saveAsync(),j&&ii.Y4.trackLibraryMaterialOperation({materialType:"\u7EC4\u4EF6",materialOperation:"\u5220\u9664"})};v({type:"modal:update:confirm:state",payload:{isOpen:!0,title:ie,desc:le,confirmText:I18N.__entry__.delete,onConfirm:ut}})},"entry:auto:transfer:combo":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{group:I,excludedCombo:M,isOrg:j,callback:Y}}=G;const oe=B(),ie=!j;MB.safeDelayLoading(I18N.__entry__.in_progress);const le=ie?(0,Oo.wS)(oe):(0,Oo.lb)(oe),ue=new Set([M.key]),Te=async Qe=>{let{selectedGroupCid:qe}=Qe;if(qe===M.sup){MB.notice({text:"\u7EC4\u4EF6\u5DF2\u5728\u8BE5\u6587\u4EF6\u5939\u4E2D",type:"error"});return}Bl(le,M.key)&&(ie?(v({type:"entry:batch:transfer:user:combos",payload:{excludedCombo:M,selectedGroupCid:qe}}),!(0,Oo.MV)(oe).includes(qe)&&v({type:"widget-panel:set:local-user-combo-expand-cids",payload:{oper:"plus",cid:qe}})):(v({type:"entry:batch:transfer:org:combos",payload:{excludedCombo:M,selectedGroupCid:qe}}),!(0,Oo.bg)(oe).includes(qe)&&v({type:"widget-panel:set:local-org-combo-expand-cids",payload:{oper:"plus",cid:qe}})),MB.notice({text:I18N.__entry__.widget_move_success}),v({type:"entry:auto:scroll-to:active-combo-group",payload:{activeComboGroup:qe,isOrg:!ie}}),Y&&Y(),!ie&&ii.Y4.trackLibraryMaterialOperation({materialType:"\u7EC4\u4EF6",materialOperation:"\u79FB\u52A8"}))},$e={isOpen:!0,title:I18N.LibraryContainer.materialLibrary.combo_move,selectCidSet:ue,itemGroups:le,onModalTransfer:Te};MB.safeDelayLoading(!1),v({type:"modal:update:state",payload:{designTransferModal:$e}})},"entry:auto:create:combo-group":(Z,G)=>{let{dispatch:B}=Z,{payload:{isOrg:v}}=G;B(v?{type:"entry:create:org:combo-group"}:{type:"entry:create:user-combo-group"})},"entry:auto:create:sub-combo-group":(Z,G)=>{let{dispatch:B}=Z,{payload:{comboGroup:v,isOrg:I}}=G;B(!I?{type:"entry:create:user-sub-combo-group",payload:{comboGroup:v}}:{type:"entry:create:org-sub-combo-group",payload:{comboGroup:v}})},"entry:auto:create:combo-group-insertion":(Z,G)=>{let{dispatch:B}=Z,{payload:{comboGroup:v,isOrg:I,insertionType:M}}=G;B(!I?{type:"entry:create:user-combo-group-insertion",payload:{comboGroup:v,insertionType:M}}:{type:"entry:create:org-combo-group-insertion",payload:{comboGroup:v,insertionType:M}})},"entry:auto:change:confirm:combo_group:name":(Z,G)=>{let{dispatch:B}=Z,{payload:{comboGroup:v,comboGroupName:I,isOrg:M,callback:j}}=G;if(I.trim()==="")B({type:"update:popups:state",payload:{editingCid:""}});else if(v.name===I)B({type:"update:popups:state",payload:{editingCid:""}}),j&&j();else{const oe=v.name;v.name=I,M?(B({type:"entry:refresh:org-combo-group:update",payload:{orgComboGroupUpdateList:[v]}}),B({type:"entry:track:org:library:operation:log",payload:{operationType:ld,optional:{folderCid:v.cid,folderName:oe,folderNewName:I,folderType:"combo"}}})):B({type:"entry:refresh:user-combo-group:update",payload:{userComboGroupUpdateList:[v]}}),B({type:"update:popups:state",payload:{editingCid:""}})}M&&ii.Y4.trackLibraryFolderOperation({folderType:"\u7EC4\u4EF6",folderOperation:"\u91CD\u547D\u540D"})},"entry:auto:update:combo:name":(Z,G)=>{let{dispatch:B}=Z,{payload:{isOrg:v,...I}}=G;B(v?{type:"entry:update:org-combo:name",payload:{...I}}:{type:"entry:update:user-combo:name",payload:{...I}})},"entry:auto:create:combo:on:screenList":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),{isEditingCombo:I}=(0,Tt.r)(v);if(!I)return;const M=(0,o.Ur)(v),j=(0,E.Hs)(v),Y=(0,E.He)(v),ie=(0,E.HA)(v).children.filter($e=>(0,Nn.Mo)($e.data)).map($e=>$e.data),le=j==null?void 0:j.find($e=>ie==null?void 0:ie.find(Qe=>Qe.cid===$e));let ue=null;if(le)ue=S0(le);else if(M){var Te;const $e=(Te=Y[M.cid])==null?void 0:Te.sup;if(!$e)return;const ut=(0,Nn.BS)({sup:$e}).findIndex(Bt=>Bt.cid===M.cid)+1;ue=S0($e,ut)}else if(ie!=null&&ie.length)ue=S0(ie[0].cid);else{const $e=vi(ie,I18N.__entry__.folder);ue={name:"\u7EC4\u4EF61",sup:(0,es.Hz)({name:$e,sup:"B@main",asFolder:!0}).key}}if(!ue)return;const De=(0,es.Hz)(ue);B({type:"entry:update:screen:list"}),B({type:"entry:goto:project-alike",payload:{screenMetaCid:De.key}}),B(i.GO.editBasketItemKey("")),B(i.GO.editBasketHotItem(null)),B({type:"screen:update:editing-screen-cid",payload:{cid:De.key}}),B({type:"entry:zoom:fit:scale:offset"}),B({type:"entry:reset:screen:selection",payload:{resetScreenCid:De.key}}),B({type:"entry:memory:last:screenAndCanvas",payload:{screenMetaCid:De.key}}),B({type:"entry:memory:current:screen:offset:scale"}),B({type:"screen:update:state",payload:{currentPage:De}})},"entry:auto:create:comboGroup:on:screenList":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),{isEditingCombo:I}=(0,Tt.r)(v);if(!I)return;const j=(0,E.HA)(v).children.filter(ue=>(0,Nn.Mo)(ue.data)).map(ue=>ue.data),Y=vi(j,I18N.__entry__.folder),oe=(0,Nn.BS)({sup:"B@main"}),ie=0;oe.splice(ie,0,null),oe.forEach((ue,Te)=>{if(ue&&ue.zIndex!==Te+1){const De=sdkStore.getHotItem(ue.cid),$e={...De,hotAttr:{...De.hotAttr,zIndex:Te+1}};sdkStore.updateHotItem($e)}});const le=(0,es.Hz)({name:Y,zIndex:ie+1,sup:"B@main",asFolder:!0});B({type:"entry:update:screen:list"}),B({type:"screen:update:editing-screen-cid",payload:{cid:le.key}}),B({type:"entry:reset:screen:selection",payload:{resetScreenCid:le.key}})},"entry:auto:dup:combo:comboGroup:on:screenList":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{isWithChildren:I}}=G;const M=B(),{isEditingCombo:j}=(0,Tt.r)(M);if(!j)return;const Y=(0,E.Hs)(M),oe=(0,E.He)(M),ie=(0,E.HA)(M);sdkStore.combineMergeMark("dup-combo-group");const le=Y.map(ue=>{const Te=oe[ue],{key:De}=(0,es.o)(Te);return(I||(0,Nn.Mo)(Te))&&(0,es.NA)(Te,De),(0,es.Pv)(Te,ie),De});sdkStore.combineMerge("dup-combo-group"),v({type:"entry:update:screen:list"}),v({type:"screen:update:screen-selection",payload:{screenSelection:le}}),MB.notice({text:I18N.__entry__.widget_dup_success})},"entry:auto:change:confirm:asset_group:name":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{assetGroup:I,assetGroupName:M,callback:j,isOrg:Y}}=G;const oe=B(),ie=(0,Oo.sF)(oe),le=(0,Oo.zX)(oe),De=(Y?le:ie).filter(Qe=>Qe.cid!==I.cid).some(Qe=>Qe.name===M),$e=M.trim()==="";De||$e?(De&&MB.notice({text:I18N.__entry__.folder_dup_of_name,type:"warning"}),v({type:"update:popups:state",payload:{editingCid:""}})):I.name===M?(v({type:"update:popups:state",payload:{editingCid:""}}),j&&j()):(I.name=M,v(Y?{type:"entry:refresh:org-asset-group:update",payload:{orgAssetGroupUpdateList:[I]}}:{type:"entry:refresh:user-asset-group:update",payload:{userAssetGroupUpdateList:[I]}}),v({type:"update:popups:state",payload:{editingCid:""}})),Y&&ii.Y4.trackLibraryFolderOperation({folderType:"\u56FE\u7247",folderOperation:"\u91CD\u547D\u540D"})},"entry:auto:create:asset-group":(Z,G)=>{let{dispatch:B}=Z,{payload:{isOrg:v}}=G;B(!v?{type:"entry:create:user-asset-group"}:{type:"entry:create:org-asset-group"})},"entry:auto:create:asset-group-insertion":(Z,G)=>{let{dispatch:B}=Z,{payload:{assetGroup:v,isOrg:I,insertionType:M}}=G;B(!I?{type:"entry:create:user-asset-group-insertion",payload:{assetGroup:v,insertionType:M}}:{type:"entry:create:org-asset-group-insertion",payload:{assetGroup:v,insertionType:M}})},"entry:auto:create:sub-asset-group":(Z,G)=>{let{dispatch:B}=Z,{payload:{assetGroup:v,isOrg:I}}=G;B(!I?{type:"entry:create:user-sub-asset-group",payload:{assetGroup:v}}:{type:"entry:create:org-sub-asset-group",payload:{assetGroup:v}})},"entry:auto:scroll-to:active-combo-group":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{activeComboGroup:I}}=G;const M=document.querySelector("#group-list"),j=M==null?void 0:M.querySelector(".combo-group-panel[data-cid="+I+"]");j&&setTimeout(()=>{M.scrollTop=j.offsetTop},300)},"entry:auto:scroll-to:active-asset-group":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{activeAssetGroup:I}}=G;const M=document.querySelector("#group-list"),j=M==null?void 0:M.querySelector(".asset-group-panel[data-cid="+I+"]");j&&setTimeout(()=>{M.scrollTop=j.offsetTop},300)}}},Qd={...{"entry:active:popup:panel":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const{name:M}=I,j=B(),Y=(0,ve.bP)(j),oe=(0,E.OW)(j);v({type:"historyPanel:set:show",payload:{show:!1}}),v({type:"searchPanel:set:show",payload:{show:!1}}),v({type:"exalt:panel:order",payload:{name:M}}),v({type:"entry:resources:update:current:popup:panel",payload:{name:M}}),So.Mf[M]&&v({type:"searchPanel:update:state",payload:{type:So.Mf[M]}}),v({type:"entry:init:hotKeyWords"}),v({type:"entry:init:design:configurations"}),Y==="recommend"&&M!==oe&&(M===So.lS.Directory||oe===So.lS.Directory)&&setTimeout(()=>{v({type:"entry:update:screen_list_rect"})},200)},"entry:toggle:popup:panel":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const{name:M}=I,j=B(),Y=(0,E.OW)(j);v({type:"historyPanel:set:show",payload:{show:!1}}),v({type:"searchPanel:set:show",payload:{show:!1}}),Y===M?v({type:"entry:resources:update:current:popup:panel",payload:{name:null}}):(v({type:"exalt:panel:order",payload:{name:M}}),v({type:"entry:resources:update:current:popup:panel",payload:{name:M}}),So.Mf[M]&&v({type:"searchPanel:update:state",payload:{type:So.Mf[M]}}))},"entry:toggle:icon-select-popup":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const{iconName:M,source:j}=I,Y=B(),oe=(0,Oo.p8)(Y),ie=(0,Oo.bw)(Y);let le=(0,Oo.Ou)(Y),ue=null;if(M){let Te=M==null?void 0:M.slice(0,M==null?void 0:M.indexOf("-"));if(Te==="fa"&&(Te="fa5"),Te){let De=(0,Oo.CQ)(Y);if(!De){const{result:{market_templates:$e}}=await(0,lo.X)("&category="+bn.C);De=$e,v({type:"icon-select-popup:update:state",payload:{iconGroupData:De}})}ue=De.find($e=>{let{title:Qe}=$e;return Te==="if"?xs.rJ.includes(Qe):Qe===xs.jS[Te]||Qe===Te})}}oe===Es.Z.navigationMenuSettingPanel&&ie&&(v({type:"icon-select-popup:update:state",payload:{navigationIconResources:ie}}),le=ie),j===Es.Z.navigationMenuSettingPanel&&!ue&&le&&(ue=le),v({type:"icon-panel:update:state",payload:{iconSelectPopupCurrentIconResources:ue}}),v({type:"icon-select-popup:update:state",payload:{source:j}})},"entry:resources:update:current:popup:panel":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{name:I}}=G;const M=B(),j=(0,o.PL)(M),Y=(0,ve.bP)(M);if(j.cid&&I&&(0,f.cH)("current_popup_panel_name_"+j.cid,I),v({type:"set:current:popup:panel",payload:{name:I}}),Y==="old_right")return;const oe=g.Cj;I===So.lS.Directory?v({type:"left-panel:set:width",payload:{width:(0,f.Yt)("layer_left_panel_width_"+j.cid,oe,f.qW.Number),isNotSaveLocal:!0}}):v({type:"left-panel:set:width",payload:{width:oe,isNotSaveLocal:!0}})},"entry:resources:goto:square":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,o.wA)(v);B({type:"exalt:panel:order",payload:{name:So.lS.Builtin}}),B({type:"entry:resources:update:current:popup:panel",payload:{name:So.lS.Builtin}}),B({type:"widget-panel:update:state",payload:{navIndex:I?3:2}})},"entry:resources:starred:icon_groups":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{resources:I}}=G;if(MB.global.experienceLoginModalHelper("isSave"))return;const M=B(),j=(0,Oo.IR)(M),Y=(0,Oo.nn)(M),oe=(0,Oo.Bu)(M),{is_star:ie,cid:le}=I;await(0,Ys.lU)(ie,le);const ue={...I,is_star:!ie},Te=oe.map(De=>De.cid===le?ue:De);if(ie){const De=[ue].concat(j),$e=Y.filter(Qe=>Qe.cid!==le);v({type:"icon-panel:update:state",payload:{resources:Te,unStarResources:De,starResources:$e}})}else{const De=[ue].concat(Y),$e=j.filter(Qe=>Qe.cid!==le);v({type:"icon-panel:update:state",payload:{resources:Te,starResources:De,unStarResources:$e}})}},"entry:resources:paid:success:goto:starred":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{cid:I,category:M}}=G;if(MB.global.experienceLoginModalHelper("isSave"))return;const j=B(),Y=(0,E.ut)(j),oe=(0,E.SE)(j);Y?v({type:"entry:search-panel:clear:state"}):oe&&v({type:"historyPanel:set:show",payload:{show:!1}});const ie=M===bn.t_?So.lS.Builtin:M===bn.Gd?So.lS.Page:So.lS.Icon,le=M===bn.t_?0:1;v({type:"exalt:panel:order",payload:{name:ie}}),v({type:"entry:resources:update:current:popup:panel",payload:{name:ie}});const ue=M===bn.t_?"widget-panel:update:state":M===bn.Gd?"page-panel:update:state":"icon-panel:update:state";if(v({type:ue,payload:{navIndex:le}}),M===bn.t_&&v({type:"widget-panel:update:state",payload:{showComboStar:!0}}),M===bn.Gd&&v({type:"page-panel:update:state",payload:{libraryNavIndex:1}}),M!==bn.C){const Te=(0,Oo.tY)(j),De=new Set(Te);!De.has(I)&&De.add(I),v({type:"resources:update:collapsePanelSet",payload:{collapsePanelSet:De}})}if(M===bn.C){v({type:"icon-panel:update:state",payload:{navIndex:1}});const Te=await(0,lo.Yk)(I);if(Te){const{market_template:De}=Te;De&&v({type:"icon-panel:update:state",payload:{currentIconResources:De}})}}},"entry:resources:update:find:data":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{cid:I,category:M,updateData:j}}=G;const Y=B(),oe=(0,Oo.AC)(Y),ie=(0,Oo.Cd)(Y),le=(0,Oo.SQ)(Y),ue=(0,Oo.zS)(Y),De=j||($e=>({...$e,is_purchased:!0,is_star:!0}));if(M===bn.t_){if(oe.has(I)){const $e=oe.get(I).map(Qe=>({...Qe,marketTemplateSource:De(Qe.marketTemplateSource)}));v({type:"resources:set:resources_marketTemplateItem_list_map",payload:{mtResourcesMtItemListMap:new Map([[I,$e]])}})}}else if(M===bn.Gd&&ie!=null&&ie.size){const $e=le?(0,Ys.Z_)(le,I,De):null,Qe=ue?De(ue):null,qe=(0,Ys.Z1)(ie,I,De);v({type:"page-panel:update:state",payload:{libraryCurrentSquareTopic:$e,libraryCurrentResources:Qe,libraryTopicListMap:qe}})}},"entry:resource:open:assetPanel":(Z,G)=>{let{dispatch:B,getState:v}=Z,{payload:{isToFindPanel:I=!1}={}}=G;const M="asset";if(B({type:"historyPanel:set:show",payload:{show:!1}}),B({type:"searchPanel:set:show",payload:{show:!1}}),B({type:"exalt:panel:order",payload:{name:M}}),B({type:"entry:resources:update:current:popup:panel",payload:{name:M}}),I){const{is_org_project:j}=(0,o.PL)(v());B({type:"image-panel:update:state",payload:{navIndex:j?2:1}})}B({type:"searchPanel:update:state",payload:{type:So.Mf[M]}}),B({type:"entry:set:default:left-side-panel-width"})},"entry:resources:init:marketTemplateItemList:map":async(Z,G)=>{let{dispatch:B,getState:v}=Z,{payload:{resourcesCids:I}}=G;const M=v(),j=(0,Oo.AC)(M),oe=Array.from(new Set(I)).filter(Te=>!j.has(Te));if(!oe.length)return;const{marketTemplateItemListMap:ie,marketTemplateListDataMap:le}=await(0,Ys._4)(oe);B({type:"resources:set:resources_marketTemplateItem_list_map",payload:{mtResourcesMtItemListMap:ie}});const ue=new Map;le.forEach((Te,De)=>{var $e;let{projectMetaList:Qe}=Te;ue.set(De,($e=Qe[0])==null?void 0:$e.cid)}),B({type:"entry:resources:set:mtSdkStore:map",payload:{mtResourceCidList:oe,mtProjectMetaCidMap:ue}})},"entry:resources:set:mtSdkStore:map":async(Z,G)=>{let{dispatch:B,getState:v}=Z,{payload:{mtResourceCidList:I,mtProjectMetaCidMap:M}}=G;const j=v(),Y=(0,E.fm)(j),ie=Array.from(new Set(I)).filter(ue=>!Y.has(ue)),{mtSdkStoreListMap:le}=await(0,Ys.jA)(ie,M);B({type:"resources:set:resources_mtSdkStore_list_map",payload:{mtResourceSdkStoreMap:le}})},"entry:resources:set:pagePanel:find:init:data":async Z=>{let{dispatch:G,getState:B}=Z;const v=B(),I=(0,o.Ur)(v),M=(0,Oo.E)(v),j=(0,Oo.WG)(v),Y=(0,Oo.xQ)(v),oe={findPlatformType:"mobile",findPlatformSubType:"recommend",findCurrentMtResourceCid:""};if(!M&&!j)try{var le;const ue=(0,o.PL)(v),Te=(0,f.kV)(ue.cid+"-platformType"),De=["ipad","web"].includes((le=Gn.v2[I==null?void 0:I.device])==null?void 0:le.device)?"web":"mobile",$e=Te||De||"mobile";$e&&$e!==oe.findPlatformType&&(oe.findPlatformType=$e)}catch(ue){console.log(ue.message)}else oe.findPlatformType=M,oe.findPlatformSubType=j,oe.findCurrentMtResourceCid=Y;G({type:"page-panel:update:state",payload:oe}),G({type:"entry:resources:set:pagePanel:find:update:data",payload:null})},"entry:resources:set:pagePanel:find:update:data":async(Z,G)=>{let{dispatch:B,getState:v}=Z,{payload:I}=G;const M=v(),j=(0,o.PL)(M),Y=(0,Oo.E)(M),oe=(0,Oo.WG)(M),ie=(0,Oo.E_)(M),le=(0,Oo.CL)(M),ue=(0,Oo.v3)(M),{scene_tag:Te}=j,{platformType:De,platformSubType:$e,isReRequest:Qe}=I||{},qe=De||Y;let ut=$e||oe;if(B({type:"page-panel:update:state",payload:{findPlatformType:qe}}),j.cid&&qe&&(0,f.cH)(j.cid+"-platformType",qe),qe!==Y&&(ut=ie.get(qe)||"recommend"),!le.get(qe)){B({type:"page-panel:update:state",payload:{findLoading:!0}});const To=await(0,lo.ZF)(qe);B({type:"page-panel:update:map:state",payload:{key:"findPlatformSubTypeListMap",value:new Map([[qe,[{cid:"recommend",name:I18N.Resources.page_panel.recommend,children:[]},...To]]])}})}B({type:"page-panel:update:state",payload:{findPlatformSubType:ut}}),B({type:"page-panel:update:map:state",payload:{key:"findPlatformSubTypeMap",value:new Map([[qe,ut]])}});const ao=qe+"-"+ut;if(!ue.has(ao)||Qe){let To=[];const ko=[],vn=new Map,Hn=new Map,os=new Map;try{if(B({type:"page-panel:update:state",payload:{findLoading:!0}}),ut==="recommend"){const on=await(0,lo.Jv)(qe),hn=(0,de.VC)(Te);if(qe==="mobile"&&hn==="MP"||qe==="web"&&hn==="PC"){const Rn=(0,h.jN)();if(Rn&&Rn.isInProgress){const Ms=(0,Oo.AC)(M).get((0,de.xR)(Te));if(Ms){const pi=(0,de.NR)(Te),Ts=Ms.find(Js=>(Js==null?void 0:Js.key)===pi);Ts&&To.push(Ts)}}}Object.values(on).forEach(Rn=>{const{market_template:Ln,project_meta_cid:Ms,p2mList:pi}=Rn,Ts=(0,Ko.QD)(Ln,Ms,pi);let Js=Ts;if((pi==null?void 0:pi.length)>2){const ki=Math.floor(Math.random()*pi.length);let js=Math.floor(Math.random()*pi.length);js===ki&&(js=(ki+1)%pi.length),Js=[Ts[ki],Ts[js]]}To=To.concat(Js),ko.push(Ln.cid),vn.set(Ln.cid,Ms),Hn.set(Ln.cid,Ln),os.set(Ln.cid,Ts)})}else{const{marketTemplates:on,p2mMMap:hn}=await(0,lo.je)({platform:qe,firstTypeCid:ut});on&&on.forEach(Rn=>{const{project_meta_cid:Ln,cid:Ms}=Rn,pi=Object.values(hn[Ln]),Ts=(0,Ko.QD)(Rn,Ln,pi);To=To.concat(Ts),ko.push(Ms),vn.set(Ms,Ln),Hn.set(Ms,Rn),os.set(Ms,Ts)})}B({type:"page-panel:update:map:state",payload:{key:"findPlatformSubTypeMtDataMap",value:new Map([[ao,To]])}}),B({type:"page-panel:update:map:state",payload:{key:"findMtResourceMap",value:Hn}}),B({type:"resources:set:resources_marketTemplateItem_list_map",payload:{mtResourcesMtItemListMap:os}}),B({type:"entry:resources:set:mtSdkStore:map",payload:{mtResourceCidList:ko,mtProjectMetaCidMap:vn}})}catch(on){console.log(on)}}B({type:"page-panel:update:state",payload:{findLoading:!1}})},"entry:number:key":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const{key:M}=I,j=B(),Y=(0,ve.bP)(j);if([6,7,8].includes(M))return;const oe=(0,E.OW)(j),{isEditingBasket:ie,isEditingMuban:le,isEditingCombo:ue}=(0,Tt.r)(j),Te=(0,o.HW)(j),De=!!(Te!=null&&Te.id),$e=So.qB;if(M>$e.length)return;const Qe=$e[M-1];if(!(Qe===So.lS.AI&&ENV.IS_ON_PREMISES)&&!(Qe===So.lS.AI&&!De)&&!(Qe===So.lS.Asset&&MB.global.experienceLoginModalHelper("isSave"))&&!([So.lS.Page,So.lS.Template,So.lS.AI].includes(Qe)&&ue)&&!([So.lS.Page,So.lS.AI].includes(Qe)&&(ie||le))){if(Qe&&oe!==Qe){Y!=="old_right"&&v({type:"entry:toggle:left-nav-panel",payload:{isAlwaysShow:!0}}),v({type:"entry:active:popup:panel",payload:{name:Qe}});return}Y!=="old_right"&&v({type:"entry:toggle:left-nav-panel"}),v({type:"entry:active:popup:panel",payload:{name:Y==="old_right"?null:Qe}})}},"entry:directory:nav:key":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{key:I}}=G;const M=B(),j=(0,ve.bP)(M),Y=(0,E.OW)(M),oe=(0,E.AT)(M);if(I>2)return;const ie=I-1;if(j==="old_right"||Y===So.lS.Directory){if(oe!==ie){v({type:"entry:toggle:left-nav-panel",payload:{isAlwaysShow:!0}}),v({type:"directory-panel:bottom:set:nav",payload:{nav:ie}});return}v({type:"entry:toggle:left-nav-panel"})}else Y!==So.lS.Directory&&(v({type:"entry:toggle:left-nav-panel",payload:{isAlwaysShow:!0}}),v({type:"entry:active:popup:panel",payload:{name:So.lS.Directory}}),v({type:"directory-panel:bottom:set:nav",payload:{nav:ie}}))}},...Ps,...ml,...a0,...i0},Md={...us,...Qd},Up={"entry:toggle:right-panel":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,Ne.T7)(v);B({type:"right-side-panel:collapse:panel",payload:{isMemorize:!I}}),B({type:"entry:observe:dom:size:update-viewport-rect"})}};var _r=e(12298),r0=e(5115);const wh={...Up,...{"entry:STPanel:fit-viewport":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{STKey:I}}=G;const M=B(),j=(0,o.X_)(M),Y=(0,o.ER)(M),oe=(0,o.$S)(M),ie=sdkStore.getHotAABB(I),[le,ue,Te,De]=ie,$e={scale:j/100,size:{w:oe.width,h:oe.height},offset:Y};if((0,_r._W)($e,oe.left,ie))return;const qe=le,ut=ue,Bt=Te-le,ao=De-ue,To=j/100,ko=(-Bt/2-qe)*To,vn=(-ao/2-ut)*To;v({type:"design:set:canvas:offset",payload:{offset:{x:ko,y:vn}}})},"entry:STPanel:update:expandKeySet":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{key:I}}=G;const M=B(),j=(0,r0.zM)(M),Y=new Set(j);Y.has(I)?Y.delete(I):Y.add(I),v({type:"STPanel:toggle:expandKeySet",payload:{expandKeySet:Y}})},"entry:STPanel:toggle:all:expandKeySet":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{isExpandAll:I,stickyList:M}}=G;const j=B(),Y=(0,r0.ju)(j),oe=I?[]:M.map(ie=>{let{key:le}=ie;return le}).filter(ie=>!Y.has(ie));v({type:"STPanel:toggle:expandKeySet",payload:{expandKeySet:new Set(oe)}})}}};var ul=e(39444),ui=e(35195),Sh=e(57947),zp=e(43004),A0=e(78013),ur=e(39271),ic=e(54386),Wp=e(90968),fp=e(92365),Yl=e(64756),G0=e(90579),Al=e(96380),Y0=e(64598);const I0={"entry:toolbar:open:versionControl:modal":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,r0.UI)(v),M=(0,r0.vr)(v);I||B({type:"entry:toggle:right-panel"}),B({type:"versions:update",payload:{isVersionManagementPaneShow:!M}})},"entry:toolbar:open:export_menu":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const M=B(),j=(0,ul.bc)(M);if(!((0,Sh.Lm)(I==null?void 0:I.open)?I.open:!j)){v({type:"export:update:state",payload:{isExportMenuShow:!1,progress:0}});return}if(!(0,Al.v)()){v({type:"modal:update:state",payload:{mktWMExportModal:{isOpen:!0,onExport:()=>{v({type:"export:update:state",payload:{isExportMenuShow:!0}})}}}}),(0,Y0.f)({exposure_reason:"\u5BFC\u51FA\u884C\u4E3A\u63D0\u793A"});return}v({type:"export:update:state",payload:{isExportMenuShow:!0,progress:0}})},"entry:toolbar:restore:leftrightpane":Z=>{let{dispatch:G}=Z;const B=(0,f.Yt)((0,qo.OB)()?fp.me:fp.KP,!0,f.qW.Boolean);G({type:"right-side-panel:collapse:panel",payload:{show:B}});const v=(0,f.Yt)((0,qo.OB)()?Yl.lS:Yl.jm,!0,f.qW.Boolean);G({type:"left-panel:collapse:panel:show",payload:{show:v}})},"entry:toolbar:toggle:fullScreen":async Z=>{let{dispatch:G}=Z;ui.A.isFullscreen?(await ui.A.exit(),G({type:"entry:update:mode:viewType"}),G({type:"entry:toolbar:restore:leftrightpane"})):(await ui.A.request(),G(i.GO.setOnlyViewMode()),G({type:"right-side-panel:collapse:panel",payload:{show:!1,isMemorize:!1}}),G({type:"left-panel:collapse:panel:show",payload:{show:!1,isMemorize:!1}})),G(i.GO.toggleFullScreenMode()),G(i.GO.toggleHandMode()),setTimeout(()=>{G({type:"entry:update:viewport:rect"})},200)},"entry:toolbar:toggle:handTool":Z=>{let{dispatch:G}=Z;G({type:"entry:hand-tool:toggle"}),G(i.GO.toggleInspectMode(!1)),G({type:"entry:comment:disabled",payload:{noWigglingCommentCid:!0}}),G({type:"entry:ST:STMode:disable"}),G({type:"elbow:update",payload:{isInElbowMode:!1}})},"entry:open:Launch":(Z,G)=>{var B,v;let{getState:I,dispatch:M}=Z,{payload:j}=G;if(MB.global.experienceLoginModalHelper("isSave"))return;const Y=I(),oe=(0,E.Hs)(Y),ie=(0,$.QA)(Y),{isFromAbar:le}=(0,o.fv)(Y)||{},ue=(0,o.eo)(Y),Te=(0,Ne.rg)(Y),De=(0,Ne.uu)(Y),$e=(0,o.PL)(Y),{isDesign:Qe}=(0,o.W4)(Y)||{},{isEditingCombo:qe}=(0,Tt.r)(Y)||{},ut=qe&&Qe,ao=(0,Ne.jx)(Y)===i.qi.OnlyView,To=(0,o.z$)(Y);if(De||M({type:"entry:start:saving"}),ut){M({type:"entry:preview:combo"});return}const ko=ie.filter(Ln=>Ln.type===zp.x.Canvas),vn=(j==null?void 0:j.activePageKey)||ue||oe[0],Hn=(j==null?void 0:j.activeCanvasKey)||((B=(v=ko[ko.length-1])==null?void 0:v.cid)!=null?B:(0,A0.XV)(vn)),os=new URLSearchParams(location.search).get("selection"),on=(0,qo.St)()?Te?"launch":"sharing":"",hn=(To==null?void 0:To.access_token)||$e.access_token,Rn=(0,ur.s_)({isHtmlZipPreview:De,isEmbedV2Preview:Te,accessToken:hn,pageId:vn,canvasId:Hn,selection:os,from:on});Te?(0,Vo.JW)(Rn,"_self"):(le&&!ao?(0,zo.sg)(zo.ZW.enterPreview,{link:Rn}):(0,Vo.JW)(Rn,"_blank","noreferrer"),M({type:"entry:update:novice:guide:and:task",payload:{guideType:u.c.GUIDE_NOVICE_2309_STEP_4,taskType:u.c.GUIDE_NOVICE_2309_TASK_4}})),(0,G0.bO)({currentProject:$e,preview_type:(j==null?void 0:j.preview_type)||null,source:(j==null?void 0:j.source)||"\u7F16\u8F91\u533A"}),ao?(0,ic.A)({operation_type:ic.D.Device}):(0,Wp.kX)({operation_type:Wp.mV.Device})}};var _l=e(23340),gl=e(99388),Vl=e(14672);const fd={"entry:contextmenu:withtype":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{position:I,type:M}}=G;const j=B(),Y=(0,$.sK)(j);let oe=!1,ie=!1;if(M==="text")if(await(0,_l.$H)({hasNotice:!1})){const le=await(0,Vl.LD)({isShowPrompt:!1});le!=null&&le.html&&(oe=!0)}else{const le=await(0,_l.oV)({itemType:"text/plain"}),ue=await(0,_l.Tq)(),Te=await(0,_l.EU)("widget");(Te!=null&&Te.html||ue||le)&&(oe=!0)}else await(0,_l.$H)({hasNotice:!1})?oe=!!await(0,Vl.LD)({isShowPrompt:!1}):oe=!!await(0,Vl.LD)({isShowPrompt:!1})||await(0,_l.Xy)(),ie=(await(0,Vl.FR)(Y)).canPaste;v({type:"open:contextmenu",payload:{position:I,canPaste:oe,canPasteProperties:ie}})},"copy:as:html":async Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,$.sK)(v),{injection:M}=I[0],j=(0,gl.f)(M);try{await(0,_l.ZC)(j),MB.notice({text:"\u4EE3\u7801\u590D\u5236\u6210\u529F",type:"success"})}catch(Y){MB.notice({text:"\u4EE3\u7801\u590D\u5236\u5931\u8D25",type:"error"})}}};var yd=e(8508),M0=e(2937),Fr=e(62065);const Vp={"entry:update:linkNodeList":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const M=B(),j=(0,yd.$_)(M),{isEditingCombo:Y}=(0,Tt.r)(M),oe=[...j],le=(0,ve.Jv)(M)===2;(0,Fr.uG)({linkNodeList:oe,widget:I,isShowAllLinks:le,isSet:!0,isEditingCombo:Y})&&v({type:"links:update:link-node-list",payload:{linkNodeList:oe}})},"entry:remove:linkNodeList":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const{link:M}=I,j=B(),Y=(0,yd.$_)(j),oe=(0,M0.Op)(Y,ie=>ie.key===M.key);v({type:"links:update:link-node-list",payload:{linkNodeList:oe}})}},Z0={...{"entry:observe:dom:size:update-viewport-rect":Z=>{let{dispatch:G}=Z;const B=document.querySelector(".mb-viewport");if(!B)return;const v=new ResizeObserver(function(I){G({type:"entry:update:viewport:rect"}),v.disconnect()});v.observe(B)}},...Xs,...Ti.Q,...Gs,...oo,...jn,...Md,...wh,...I0,...fd,...Vp};var Zl=e(36429),yp=e(26557),xp=e(60043),vp=e(82924),Od=e(30127),Wc=e(93196),gc=e(36892),Fd=e(55560),il=e(98040),l0=e(44864);const Xc=Z=>{let{trackParams:G,start:B,success:v}=Z;const I=performance.now(),M=Math.ceil((I-B)/1e3);(0,Rs.kH)("download_project",{...G,is_download_success:v,download_time:M}),ii.Y4.editProjectNew("\u4E0B\u8F7D\u9879\u76EE")};var Td=e(33386),Hp=e(78463),bp=e(66451),X0=e(53867),Kp=e(77885),Gp=e(99191);const Jd=(Z,G)=>{if(Z instanceof Od.ku)return G({type:"export:update:state",payload:{canvasDimensionExceeded:!0}}),!1;if(Z instanceof Od.PU)return MB.notice({text:"\u6240\u9009\u753B\u5E03\u4E0D\u5305\u542B\u9875\u9762",type:"warning"}),!0;if(Z instanceof Od.mg)return G({type:"export:update:state",payload:{loading:!1,progress:0}}),MB.notice({text:I18N.ExportManager.large_pdf_can_not_export,duration:0,showClose:!0}),!0;throw Z},c0=(Z,G,B)=>{const v={source:"\u5DE5\u4F5C\u533A",project_type:"\u539F\u578B V8",project_name:G.name,project_cid:G.cid,download_source:(0,qo.OB)()?"\u7F16\u8F91\u533A\u53F3\u4FA7\u5E95\u90E8\u5BFC\u51FA":B?"\u6807\u6CE8\u6A21\u5F0F\u53F3\u4FA7\u5E95\u90E8\u5BFC\u51FA":"\u603B\u89C8\u6A21\u5F0F\u53F3\u4FA7\u5E95\u90E8\u5BFC\u51FA"},I=Z.map(j=>{let{format:Y,scale:oe,isWithDeviceFrame:ie}=j;const le={...v,download_type:Y,export_image_times:oe+"x",include_device_frame:ie?1:0};return Y==="png"&&(le.download_page_type="\u5F53\u524D\u9875"),{trackParams:le,start:performance.now()}});return j=>{I.forEach(Y=>{let{trackParams:oe,start:ie}=Y;return Xc({trackParams:oe,start:ie,success:j})})}},Ks={"entry:export:item":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{exportConfigList:I}}=G;v({type:"export:update:state",payload:{isWidgetBeingExported:!0,pdfDimensionExceeded:!1,canvasDimensionExceeded:!1}});const M=B(),j=(0,o.PL)(M),Y=(0,Ne._b)(M),oe=j.name,ie=(0,Wc.XB)((0,o.HW)(M),(0,o.wA)(M),(0,o.PL)(M));let le=(0,$.p$)(M);le.length===0&&((0,Ho.Lc)(M)||(0,mo.sI)(M)||(0,Ne.jx)(M)===i.qi.OnlyView)&&(le=(0,gc.UR)((0,o.Ur)(M).cid).map(De=>De.key));const ue=[];for(const De of le)for(const $e of I)ue.push({...$e,hasWatermark:ie,itemKey:De});const Te=c0(I,j,Y);await(0,Od.WE)(ue,oe,De=>Jd(De,v),Te),v({type:"export:update:state",payload:{isWidgetBeingExported:!1}})},"copy:as:png":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{exportConfigList:I}}=G;if(await(0,_l.AU)())return;v({type:"export:update:state",payload:{pdfDimensionExceeded:!1,canvasDimensionExceeded:!1}});const M=B(),j=(0,o.PL)(M),Y=(0,o.HW)(M),oe=(0,o.wA)(M),ie=(0,Wc.XB)(Y,oe,j);MB.notice({text:I18N.ContextMenu.copy_png_ing,type:"loading"});const le=(0,$.p$)(M),ue=(0,kt.F1)();for(const ko of le){const vn=sdkStore.getHotItem(ko);switch((0,kt.il)(ue,(0,Gp.Gq)(sdkStore,ko,!1,"hot")),vn.hotAttr.type){case"rResCanvas":{if(vn.hotAttr.isClipContent)continue;for(const Hn of vn.sub)(0,Gp.Gq)(sdkStore,Hn,!1,"hot");break}}}const Te=(0,l0.gO)("",9,10,10,"",0,0,""),De={key:(0,ce.cF)("rbp"),hotAttr:Te,sup:l0.$k,sub:[]},$e=(0,il.Nc)("asdf");$e.w=ue[2]-ue[0],$e.h=ue[3]-ue[1],$e.x=ue[0]+$e.w/2,$e.y=ue[1]+$e.h/2,$e.fill.fillIsVisible=!1,$e.isClipContent=!1;const Qe={key:(0,ce.cF)("rc"),hotAttr:$e,sup:De.key,sub:[]},qe=(0,bp.aw)((0,X0.b8)(),(0,Kp.aF)({})),ut=(0,Hp.uq)(qe);ut.updateHotItem(De),ut.updateHotItem(Qe);const Bt=sdkStore.saveSubtree(le);(0,_.Td)({data:Bt,worldPos:{x:Qe.hotAttr.x-Qe.hotAttr.w/2,y:Qe.hotAttr.y-Qe.hotAttr.h/2},keyRndSup:Qe.key,commonKeyRndSup:"",currentPageKey:De.key,store:ut,keepSup:!0});const ao=I[0],To=(0,Od.gD)({itemKey:Qe.key,pseudoSdkStore:ut,...ao,hasWatermark:ie,isExportSticky:!0});try{To.validateIE(ao.format);const ko=await To.toIE(ao.format);await navigator.clipboard.write([new ClipboardItem({[ko.type]:ko})]),MB.notice({text:I18N.ContextMenu.copy_png_success,type:"success"})}catch(ko){if(ko instanceof Od.ku)MB.notice({text:I18N.ContextMenu.copy_png_faild_limit,type:"error"});else{if(ko.name==="NotAllowedError")return;MB.notice({text:I18N.ContextMenu.copy_png_faild_common,type:"error"}),(0,te.Cp)(ko)}}},"entry:export:page":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{pageToExportKeyList:I,scale:M,isWithDeviceFrame:j,format:Y,isExportSticky:oe=!1,downloadPageType:ie,isIncludeCanvasName:le=!1,trackParams:ue}}=G;const Te=Y,De=performance.now();v({type:"export:update:state",payload:{isWidgetBeingExported:!0,pdfDimensionExceeded:!1,canvasDimensionExceeded:!1}});const $e=B(),Qe=(0,o.PL)($e),qe=(0,o.HW)($e),ut=(0,o.wA)($e),Bt=Qe.name,ao=(0,Wc.XB)(qe,ut,Qe);j=ie===Fd.y5.CANVAS?!1:j,le=ie===Fd.y5.PAGE?!1:le;const To=I.map(os=>(0,Od.QV)({pageKey:os,downloadPageType:ie,scale:M,hasWatermark:ao,isWithDeviceFrame:j,isExportSticky:oe,isIncludeCanvasName:le}));try{To.forEach(os=>os.validatePE(Te))}catch(os){if(Jd(os,v))return;(0,Td.p)("export-"+Te+"-failed",os),Xc({trackParams:ue,start:De,success:!1})}v({type:"export:update:state",payload:{type:Te,loading:!0,progress:0}});let ko,vn;const Hn=(0,Wc.K4)(os=>v({type:"export:update:state",payload:{progress:os}})).splitTo(To.length);if(To.length===1)try{const os=Hn[0],on=To[0];ko=await(Te==="png"?on.toPngZipFilePE(Te,os):on.toPdfFilePE(Te,os)),vn=ko.name,(0,yp.saveAs)(ko,vn),Xc({trackParams:ue,start:De,success:!0})}catch(os){if(Jd(os,v))return;(0,Td.p)("export-"+Te+"-failed",os),Xc({trackParams:ue,start:De,success:!1})}else{const{JsZip:os}=await Zl.QN.loadLLG(),on=new os,hn=new Map;try{const Rn=To.map((Ln,Ms)=>async()=>{var pi;const Ts=Hn[Ms],Js=(pi=hn.get(Ln.name))!=null?pi:0,ki=Ms+" "+(Js>0?Ln.name+" ("+(Js+1)+")":Ln.name);hn.set(Ln.name,Js+1);const js=on.folder(ki);if(Te==="png")(await Ln.toPngFilesPE("png-unzip",Ts)).forEach(qi=>js.file(""+qi.name,qi));else{const ai=await Ln.toPdfFilePE(Te,Ts);js.file(Ms+" "+ai.name,ai)}});for(const Ln of Rn)await Ln()}catch(Rn){if(Jd(Rn,v))return;(0,Td.p)("export-"+Te+"-failed",Rn),Xc({trackParams:ue,start:De,success:!1})}(0,Wc.vb)(on),ko=await on.generateAsync({type:"blob"}),vn=Bt+".zip",(0,yp.saveAs)(ko,vn),Xc({trackParams:ue,start:De,success:!0})}v({type:"export:update:state",payload:{type:Te,loading:!1,progress:100,downloadable:ko,downloadFileName:vn,isWidgetBeingExported:!1}})},"entry:export:all:page":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{scale:I,isWithDeviceFrame:M,format:j,isExportSticky:Y,downloadPageType:oe,isIncludeCanvasName:ie,trackParams:le}}=G;const ue=j,Te=performance.now();v({type:"export:update:state",payload:{isWidgetBeingExported:!0,pdfDimensionExceeded:!1,canvasDimensionExceeded:!1}});const De=B(),$e=(0,o.PL)(De),Qe=(0,o.HW)(De),qe=(0,o.wA)(De),ut=$e==null?void 0:$e.name,Bt=(0,Wc.XB)(Qe,qe,$e);M=oe===Fd.y5.CANVAS?!1:M,ie=oe===Fd.y5.PAGE?!1:ie;const ao={};for(const{key:hn,hotAttr:Rn}of sdkStore.findAllTypeUnder("B@main","rResBunch"))Rn.bunch!=="rbPage"||Rn.asFolder||(ao[hn]=(0,Od.QV)({pageKey:hn,downloadPageType:oe,scale:I,hasWatermark:Bt,isWithDeviceFrame:M,isExportSticky:Y,isIncludeCanvasName:ie}));try{Object.values(ao).forEach(hn=>hn.validatePE(ue))}catch(hn){if(Jd(hn,v))return;(0,Td.p)("export-"+ue+"-failed",hn),Xc({trackParams:le,start:Te,success:!1})}v({type:"export:update:state",payload:{type:ue,loading:!0,progress:0}});const To=new Map,ko=async(hn,Rn,Ln)=>{try{const Ms=sdkStore.getSubHotItemList(Rn).sort((Js,ki)=>Js.hotAttr.zIndex-ki.hotAttr.zIndex).filter(Js=>Js.hotAttr.bunch==="rbPage"),pi=Ln.splitTo(Ms.length),Ts=Ms.map((Js,ki)=>async()=>{const js=pi[ki],ai=Js.hotAttr;if(ai.asFolder){const or=hn.folder(ki+" "+ai.name);await ko(or,Js.key,js)}else{var qi;const or=ao[Js.key],Yi=(qi=To.get(or.name))!=null?qi:0,Hr=ki+" "+(Yi>0?or.name+" ("+(Yi+1)+")":or.name);To.set(or.name,Yi+1);const Wa=hn.folder(Hr),[nr,zi]=js.divideAt(1/(1+sdkStore.getSubHotItemList(Js.key).filter(ca=>ca.hotAttr.bunch==="rbPage").length));if(ue==="png")(await or.toPngFilesPE("png-unzip",nr)).forEach(Ua=>Wa.file(""+Ua.name,Ua));else{const ca=await or.toPdfFilePE(ue,nr);Wa.file(ki+" "+ca.name,ca)}await ko(Wa,Js.key,zi)}});for(const Js of Ts)await Js()}catch(Ms){Jd(Ms,v)}},{JsZip:vn}=await Zl.QN.loadLLG(),Hn=new vn;await ko(Hn,"B@main",(0,Wc.K4)(hn=>v({type:"export:update:state",payload:{progress:hn}}))),(0,Wc.vb)(Hn);const os=await Hn.generateAsync({type:"blob"}),on=ut+".zip";(0,yp.saveAs)(os,on),Xc({trackParams:le,start:Te,success:!0}),v({type:"export:update:state",payload:{type:ue,loading:!1,progress:100,downloadable:os,downloadFileName:on,isWidgetBeingExported:!1}})},"entry:download:project":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{type:I="htmlzip",trackParams:M}}=G;const j=performance.now(),Y=B(),oe=(0,o.PL)(Y),ie=(0,o.YT)(Y),{name:le}=oe;v({type:"export:update:state",payload:{type:I,loading:!0,progress:0}});try{if(I===Fd.xk.APK){if(!(ie!=null&&ie.cid))return;const{flcchTimeB36:ue}=await(0,xp.r_)({flpakKey:ie==null?void 0:ie.cid}),Te=location.origin+"/flatkiq/apk/download?fKey="+(ie==null?void 0:ie.cid)+"&fTim="+ue,De=""+le+vp.Wq[I].postfix;(0,Wc.Q)(Te,De),v({type:"export:update:state",payload:{downloadable:Te,downloadFileName:De,loading:!1,progress:100}}),Xc({trackParams:M,start:j,success:!0})}else if(I===Fd.xk.HTMLZIP){const{flcchTimeB36:ue}=await(0,xp.wr)({flpakKey:ie==null?void 0:ie.cid}),Te=location.origin+"/flatkiq/htmlzip/download?fKey="+(ie==null?void 0:ie.cid)+"&fTim="+ue,De=""+le+vp.Wq[I].postfix;(0,Wc.Q)(Te,De),v({type:"export:update:state",payload:{downloadable:Te,downloadFileName:"",loading:!1,progress:100}}),Xc({trackParams:M,start:j,success:!0})}else if(I===Fd.xk.SOURCE_FILE){const{key:ue}=await(0,xp.ax)({flpakKey:ie==null?void 0:ie.cid}),Te="/go/v1/mdrp/download?key="+ue,De=""+le+vp.Wq[I].postfix;(0,Wc.Q)(Te,De),v({type:"export:update:state",payload:{downloadable:Te,downloadFileName:"",loading:!1,progress:100}}),Xc({trackParams:M,start:j,success:!0})}}catch(ue){ue.status===413?(v({type:"modal:update:state",payload:{flpakSizeWarnModal:{isOpen:!0}}}),v({type:"export:update:state",payload:{loading:!1}})):MB.global.popupHelper.alertAsync({title:"\u79BB\u7EBF\u6F14\u793A\u5305\u4E0B\u8F7D\u5931\u8D25"}),(0,Td.p)("export-"+I+"-failed",ue),Xc({trackParams:M,start:j,success:!1})}}};var Hl=e(74059),fr=e(99005);const fc=.83,Ec=1,_i=!1,yc=(Z,G,B)=>Math.round(G+Z/B),T0=Z=>Z<=.05?200:Z<=.1?100:Z<=.2?50:Z<=.5?20:Z<=1?10:Z<=2?5:Z<=5?2:(Z<=40,1),Qc=Z=>Z<=10?10:Z<=20?5:Z<=40?2:10,Yp=(Z,G)=>{const B=T0(Z),v=B*Z,I=B*Qc(Z),M=I*Z,j=Math.floor(G/B)*B,Y=Math.floor(G/I)*I,oe=(j-G)/B*v,ie=(Y-G)/I*M;return{gridSize:B,gridPixel:v,gridSize_10:I,gridPixel_10:M,startValue:j,startValue_10:Y,offset:oe,offset_10:ie}},Sr=function(Z,G,B,v,I,M){if(M===void 0&&(M="h"),!I)return;const{x:j,y:Y,w:oe,h:ie}=I,le=M==="h"?(j-v)*B:0,ue=M==="h"?0:(Y-v)*B,Te=M==="h"?oe*B:oe*Ec,De=M==="h"?ie*Ec:ie*B;Z.fillStyle=G,Z.fillRect(le,ue,Te,De)},Kh=(Z,G,B,v)=>{const{scale:I,width:M,height:j,canvasConfigs:Y}=v,{bgColor:oe,fontColor:ie,ratio:le,shadowColor:ue,longfgColor:Te,shortfgColor:De}=Y,$e=_i;Z.scale(le,le),Z.clearRect(0,0,M,j),Z.fillStyle=oe,Z.fillRect(0,0,M,j),Sr(Z,ue,I,G,B);const{gridSize:Qe,gridPixel:qe,gridSize_10:ut,gridPixel_10:Bt,startValue:ao,startValue_10:To,offset:ko,offset_10:vn}=Yp(I,G),Hn=G+Math.ceil(M/I);Z.beginPath(),Z.fillStyle=ie,Z.strokeStyle=Te;for(let os=To,on=0;os<Hn;os+=ut,on++){const hn=vn+on*Bt+.5;Z.moveTo(hn,0),Z.save(),Z.translate(hn,j*.4),Z.scale(fc/le,fc/le),Z.fillText(os,-Z.measureText(os).width/2,4*le),Z.restore(),Z.moveTo(hn,j-2),Z.lineTo(hn,j)}if(Z.stroke(),Z.closePath(),$e){Z.beginPath(),Z.strokeStyle=De;for(let os=ao,on=0;os<Hn;os+=Qe,on++){const hn=ko+on*qe+.5;Z.moveTo(hn,0),os%ut!==0&&Z.lineTo(hn,j*1/4)}Z.stroke(),Z.closePath()}Z.setTransform(1,0,0,1,0,0)},Gh=(Z,G,B,v)=>{const{scale:I,width:M,height:j,canvasConfigs:Y}=v,{bgColor:oe,fontColor:ie,ratio:le,shadowColor:ue,longfgColor:Te,shortfgColor:De}=Y,$e=_i;Z.scale(le,le),Z.clearRect(0,0,M,j),Z.fillStyle=oe,Z.fillRect(0,0,M,j),Sr(Z,ue,I,G,B,"v");const{gridSize:Qe,gridPixel:qe,gridSize_10:ut,gridPixel_10:Bt,startValue:ao,startValue_10:To,offset:ko,offset_10:vn}=Yp(I,G),Hn=G+Math.ceil(j/I);Z.beginPath(),Z.fillStyle=ie,Z.strokeStyle=Te;for(let os=To,on=0;os<Hn;os+=ut,on++){const hn=vn+on*Bt+.5;Z.moveTo(0,hn),Z.save(),Z.translate(M*.4,hn),Z.rotate(-Math.PI/2),Z.scale(fc/le,fc/le),Z.fillText(os,-Z.measureText(os).width/2,4*le),Z.restore(),Z.moveTo(M-2,hn),Z.lineTo(M,hn)}if(Z.stroke(),Z.closePath(),$e){Z.beginPath(),Z.strokeStyle=De;for(let os=ao,on=0;os<Hn;os+=Qe,on++){const hn=ko+on*qe+.5;Z.moveTo(0,hn),os%ut!==0&&Z.lineTo(M*1/4,hn)}Z.stroke(),Z.closePath()}Z.setTransform(1,0,0,1,0,0)},Ih=Z=>{const{ratio:G,viewportRect:B,canvasLeft:v,canvasTop:I,x:M,y:j,width:Y,height:oe,selectedParentCanvas:ie,rulerLineCanvas:le}=Z,ue=B.width-fr.MV,Te=B.height-fr.MV,De=(B.left+fr.MV-v)/G,$e=(B.top+fr.MV-I)/G;return{rulerWidth:ue,rulerHeight:Te,startX:De,startY:$e,shadow:{x:M,y:j,width:Y,height:oe},startWithCanvas:le||ie}};class Mh{constructor(G,B){var v=this;if((0,Hl.A)(this,"canvasH",document.createElement("canvas")),(0,Hl.A)(this,"canvasV",document.createElement("canvas")),(0,Hl.A)(this,"handleUpdateCanvasConfig",()=>{const{ratio:I,palette:M}=this.config,j=M||fr.GT,Y={ratio:I||fr.tj,bgColor:j.bgColor,longfgColor:j.longfgColor,shortfgColor:j.shortfgColor,fontColor:j.fontColor,shadowColor:j.shadowColor};this.config={...this.config,canvasConfigs:Y}}),(0,Hl.A)(this,"handleCompare",I=>{if(!I)return!0;const M={...this.config,...I},{scale:j,width:Y,height:oe,thick:ie,startX:le,startY:ue,theme:Te,shadow:{x:De,y:$e,width:Qe,height:qe},startWithCanvas:ut}=this.config;return this.config=M,this.handleUpdateCanvasConfig(),j!==M.scale||Y!==M.width||oe!==M.height||ie!==M.thick||le!==M.startX||ue!==M.startY||Te!==M.theme||De!==M.shadow.x||$e!==M.shadow.y||Qe!==M.shadow.width||qe!==M.shadow.height||ut!==M.startWithCanvas}),(0,Hl.A)(this,"drawContext",function(I){I===void 0&&(I=null),v.handleCompare(I)&&(v.ctxH=v.drawContextByDirection(v.canvasH),v.ctxV=v.drawContextByDirection(v.canvasV,"v"))}),(0,Hl.A)(this,"drawRuler",function(I,M){I===void 0&&(I=null),M===void 0&&(M=!1),!(!M&&!v.handleCompare(I))&&(v.drawRulerByDirection(),v.drawRulerByDirection("v"))}),(0,Hl.A)(this,"drawContextByDirection",function(I,M){M===void 0&&(M="h");const{width:j,height:Y,thick:oe,canvasConfigs:ie}=v.config,{ratio:le}=ie;M==="h"?(I.width=j*le,I.height=oe*le):(I.width=oe*le,I.height=Y*le);const ue=I.getContext("2d");return ue.font=12*le+'px -apple-system, "Helvetica Neue", ".SFNSText-Regular", "SF UI Text", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Zen Hei", sans-serif',ue.lineWidth=1,ue.textBaseline="middle",ue}),(0,Hl.A)(this,"drawRulerByDirection",function(I){I===void 0&&(I="h");const{scale:M,width:j,height:Y,thick:oe,startX:ie,startY:le,shadow:ue,canvasConfigs:Te,startWithCanvas:De,layoutV9:$e}=v.config,{x:Qe,y:qe,width:ut,height:Bt}=ue;let ao=ie,To=le,ko=Qe,vn=qe;if(De&&sdkStore.getHotItem(De.key)){const{hotAttr:{x:os,y:on,w:hn,h:Rn}}=sdkStore.getHotItem(De.key),Ln=os-hn/2,Ms=on-Rn/2;ao-=Ln,To-=Ms,ko-=Ln,vn-=Ms}if(I==="h"){const Hn={scale:M,width:j,height:oe,canvasConfigs:Te};Kh(v.ctxH,ao,{x:ko,w:ut,h:oe},Hn)}else{const Hn={scale:M,width:oe,height:Y,canvasConfigs:Te};Gh(v.ctxV,To,{y:vn,w:oe,h:Bt},Hn)}}),(0,Hl.A)(this,"updateCanvasContext",I=>{window.requestAnimationFrame(()=>{this.drawContext(I),this.drawRuler(I,!0)})}),(0,Hl.A)(this,"updateCanvasRuler",I=>{window.requestAnimationFrame(()=>{this.drawRuler(I)})}),this.canvasH.className="ruler rulerH",this.canvasV.className="ruler rulerV",G){for(;G.firstChild;)G.removeChild(G.firstChild);G.appendChild(this.canvasH),G.appendChild(this.canvasV)}this.config=B,this.handleUpdateCanvasConfig()}}var Jc=e(78695),Cp=e(98521);const E0={...{"entry:update:current-screen:screen-align":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{lines:I}}=G;const M=B(),j=(0,o.eo)(M),Y=sdkStore.getHotItem(j),oe={...Y,hotAttr:{...Y.hotAttr,alignH:I.h,alignV:I.v}};sdkStore.updateHotItem(oe),v({type:"entry:widget:change",payload:{flatChgList:[oe]}})},"entry:update:canvas:align":(Z,G)=>{let{dispatch:B}=Z,{payload:{canvasCid:v,lines:I}}=G;B({type:"entry:widget:change",payload:{flatChgList:[{key:v,hotAttr:{alignH:I.h,alignV:I.v}}]}})}},"entry:init:ruler:canvas":Z=>{let{getState:G,dispatch:B}=Z;const v=G();if(!(0,m.UV)(v))return;const M=(0,ve.qT)(v),j=(0,o.X_)(v),Y=(0,ve.O4)(v),oe=(0,$.p$)(v),{canvasTop:ie,canvasLeft:le}=(0,o.Pz)(v),ue=(0,o.$S)(v),Te=(0,st.Hw)(v),De=(0,ve.MZ)(v);if(!M||!ue)return;const $e=j/100,{x:Qe,y:qe,w:ut,h:Bt}=(0,Jc.dP)(oe),ao=(0,Cp.zB)(oe),To=ao.size===1?[...ao.values()][0]:null,{rulerWidth:ko,rulerHeight:vn,startX:Hn,startY:os,shadow:on,startWithCanvas:hn}=Ih({ratio:$e,viewportRect:ue,canvasTop:ie,canvasLeft:le,x:Qe,y:qe,width:ut,height:Bt,selectedParentCanvas:To,rulerLineCanvas:Te}),Rn={scale:$e,width:ko,height:vn,thick:fr.MV,startX:Hn,startY:os,theme:Y,shadow:on,palette:fr.MF[Y],startWithCanvas:hn,layoutV9:De};setTimeout(()=>{const Ln=document.querySelector("#mb-ruler .canvas-container"),Ms=new Mh(Ln,Rn);Ms&&(Ms.drawContext(),Ms.drawRuler(),B({type:"ruler:update:state",payload:{canvasRuler:Ms,rulerRect:{startX:Hn,startY:os}}}))})},"entry:update:ruler":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const M=B();if(!(0,m.UV)(M))return;const Y=(0,ve.qT)(M),oe=(0,o.X_)(M),ie=(0,ve.O4)(M),le=(0,$.p$)(M),{canvasTop:ue,canvasLeft:Te}=(0,o.Pz)(M),De=(0,o.$S)(M),$e=(0,st.Hw)(M);if(!Y||!De)return;const Qe=oe/100,{x:qe,y:ut,w:Bt,h:ao}=(0,Jc.dP)(le),To=(0,Cp.zB)(le),ko=To.size===1?[...To.values()][0]:null,{rulerWidth:vn,rulerHeight:Hn,startX:os,startY:on,shadow:hn,startWithCanvas:Rn}=Ih({ratio:Qe,viewportRect:De,canvasTop:ue,canvasLeft:Te,x:qe,y:ut,width:Bt,height:ao,selectedParentCanvas:ko,rulerLineCanvas:$e}),Ln={scale:Qe,width:vn,height:Hn,thick:fr.MV,startX:os,startY:on,theme:ie,shadow:hn,palette:fr.MF[ie],startWithCanvas:Rn},Ms=(0,st.dM)(M);!Ln||!Ms||(I!=null&&I.isUpdateContext?Ms.updateCanvasContext(Ln):Ms.updateCanvasRuler(Ln),v({type:"ruler:update:state",payload:{rulerRect:{startX:os,startY:on}}}))}},Pc={...Ks,...E0},ac={"entry:refresh:combo:status":Z=>{let{dispatch:G,getState:B}=Z;G({type:"entry:exit:edit:basket"});const v=B(),{isEditingCombo:I}=(0,Tt.r)(v);I&&G({type:"entry:exit:combo"})},"entry:edit:combo":(Z,G)=>{let{dispatch:B,getState:v}=Z,{payload:{isOrg:I,combo:M}}=G;B({type:"modal:reset:preview:modal:state"}),setTimeout(()=>{B({type:"screen:update:state",payload:{isMultiplePage:!1}}),B({type:"entry:refresh:combo:status"}),B({type:"set:quick-create-widget",payload:{widget:null}});const j=v(),Y=(0,o.Ur)(j),oe=(0,ve.bP)(j),ie=(0,o.F2)(j),le=(0,o._x)(j);B(i.GO.hoverItem("")),B({type:"entry:clear:selection"}),B({type:"current:update:state",payload:{editingComboPageKey:Y.cid}}),B(I?i.GO.toggleEditingOrgComboMode(!0):i.GO.toggleEditingUserComboMode(!0)),B({type:"widget-panel:update:state",payload:{navIndex:0}});const ue=I?orgSdk:userSdk;Object.assign(globalThis,{...ue});const Te=I?{...le,name:I18N.SettingPanel.team_widgets}:{...ie,name:I18N.SettingPanel.my_widgets},De=Te.attr instanceof Object?Te:Object.assign(Te,{attr:{}}),$e=I?{cid:le.project_meta_cid}:{cid:ie.project_meta_cid},{screenTreeData:Qe,screenTreeMap:qe,screenDataMap:ut}=(0,zt.tb)("B@main");B({type:"current:update:state",payload:{comboCurrentProject:De,comboCurrentProjectMeta:$e}}),B({type:"screen:set:all:screen-data",payload:{screenTreeData:Qe,screenTreeMap:qe,screenDataMap:ut}}),B({type:"entry:activate:screen",payload:{screenCid:M.key}}),B({type:"entry:init:design:scale"}),B({type:"settings:set:activeIndex",payload:{activeIndex:0}}),B({type:"entry:resources:update:current:popup:panel",payload:{name:oe==="old_right"?So.lS.Builtin:So.lS.Directory}}),B({type:"entry:update:trash:page"}),B({type:"entry:comment:disabled"}),B({type:go.y.entryKey["font:cloudFontList:init"],payload:{needUpdateMissFont:!0}}),setTimeout(()=>{B({type:"entry:update:viewport:rect"})},200)}),I&&ii.Y4.trackLibraryMaterialOperation({materialType:"\u7EC4\u4EF6",materialOperation:"\u7F16\u8F91"})},"entry:exit:combo":Z=>{let{dispatch:G,getState:B}=Z;G({type:"modal:reset:preview:modal:state"}),setTimeout(()=>{G(i.GO.hoverItem("")),G({type:"entry:clear:selection"}),G({type:"entry:exit:edit:basket"});const v=B(),I=(0,o.vD)(v),M=(0,o.PL)(v),j=(0,o.YT)(v),{isEditingUserCombo:Y}=(0,Tt.r)(v);G(Y?i.GO.toggleEditingUserComboMode(!1):i.GO.toggleEditingOrgComboMode(!1)),Object.assign(globalThis,{...rootSdk}),G({type:"entry:activate:root-project",payload:{projectBasic:M,projectMeta:j,screenCid:I}}),G(Y?{type:"entry:load:user:combo:group:list"}:{type:"entry:load:org:combo:group:list"}),G({type:"entry:resources:update:current:popup:panel",payload:{name:So.lS.Builtin}}),G({type:"widget-panel:update:state",payload:{navIndex:Y?1:2}}),G({type:go.y.entryKey["font:cloudFontList:init"],payload:{needUpdateMissFont:!0}}),setTimeout(()=>{G({type:"entry:update:viewport:rect"})},200)})}};var k0=e(85153);const Mr={"entry:undo-stack:screen":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,o.Ur)(v);!I||!sdkStore.isTrashed(I.cid)||(B({type:"entry:clear:selection"}),B({type:"current:update:state",payload:{currentScreen:null}}))},"entry:update:root-project:name":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{name:I}}=G;const M=B(),j=(0,o.PL)(M);if((j==null?void 0:j.name)!==I){if(I.trim().length===0){MB.notice({text:I18N.ToolBar.empty_project_name,type:"warning"});return}v({type:"entry:update:root-project:attr",payload:{attr:"name",value:I}}),(0,zo.sg)(zo.ZW.projectNameChange,{name:I}),document.title=""+(0,Go.qk)(I),MB.notice({text:I18N.ToolBar.project_updated})}},"entry:update:root-project:attr":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{attr:I,value:M}}=G;const j=B();let Y=(0,o.PL)(j);Y[I]=M,Y=(0,k0.n)(Y),(0,H.Yu)(Y.cid,{[I]:M}),v({type:"current:update:state",payload:{currentProject:Y}})},"entry:update:root-project:object":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{currentProject:I}}=G;(0,H.Yu)(I.cid,I),v({type:"current:update:state",payload:{currentProject:I}})},"entry:update:root-project:bgcolor":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{fill:I}}=G;const M=B(),j=(0,o.Ur)(M);j&&(sdkStore.updateHotAttrMerge(j.cid,{fill:I}),v({type:"current:update:state",payload:{currentScreen:{...j,fill:I}}}))},"entry:update:all-screen:bgcolor":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{fill:I}}=G;const M=B(),j=(0,E.Hs)(M);if(j.length===1){v({type:"entry:update:root-project:bgcolor",payload:{fill:{...I,fillIsVisible:!0}}});return}const Y=(0,o.Ur)(M),oe=j.map(ie=>[ie,{fill:I}]);sdkStore.updateHotAttrMergeBatch(oe),v({type:"current:update:state",payload:{currentScreen:{...Y,fill:I}}})},"entry:update:root-project:exportSettings":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const M=B();let j=(0,o.PL)(M);const{exportSettings:Y,exportWithDeviceFrame:oe}=I;j.attr?(j.attr.export_settings=Y,j.attr.export_with_device_frame=oe):j.attr={export_settings:Y,export_with_device_frame:oe},j=(0,k0.n)(j),(0,H.Yu)(j.cid,{cid:j.cid,attr:{export_settings:Y,export_with_device_frame:oe}}),v({type:"current:update:state",payload:{rootProject:j}})},"entry:update:current:screen-mata":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{screenMeta:I,updateWidgetTreeData:M=!0}}=G;if(M){const ie=[{key:I.cid,hotAttr:{device:I.device,deviceW:I.deviceW,deviceH:I.deviceH,deviceOrientation:I.deviceOrientation,deviceScroll:I.deviceScroll}}];v({type:"entry:widget:change",payload:{flatChgList:ie}})}v({type:"current:update:state",payload:{currentScreen:I}});const j=B(),Y=(0,Ne.jI)(j),oe=(0,Ne.bt)(j);!Y&&!oe||v({type:"artboard:update:state",payload:{basketPathCacheTag:Math.random()}})},"entry:memory:last:screenAndCanvas":(Z,G)=>{var B;let{getState:v}=Z,{payload:{screenMetaCid:I,canvasKey:M}}=G;const j=v(),Y=(0,Ne.jI)(j),oe=(0,Ne.bt)(j);if(Y||oe)return;const ie=(0,o.PL)(j),ue=(0,o.ZI)(j)||ie,Te=I||((B=(0,o.Ur)(j))==null?void 0:B.cid);(0,f.a0)(g.NF+"-"+ue.cid,Te+","+(M||""),f.qW.String)},"entry:update:screen-name":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{attr:I,value:M,screen:j}}=G;if(j[I]===M)return;const Y=B(),oe=(0,E.He)(Y),ie=(0,E.HA)(Y),le=sdkStore.getHotItem(j.cid),ue={...le,hotAttr:{...le.hotAttr,[I]:M}};sdkStore.updateHotItem(ue),v({type:"screen:update:state",payload:{screenDataMap:(0,es.iZ)([ue],oe),screenTreeData:(0,es.Ed)([ue],ie)}});const Te=(0,Ne.jI)(Y),De=(0,Ne.bt)(Y);if(I==="name"&&!(0,Nn.Mo)(j)&&!Te&&!De){const $e=(0,zt.ON)(ue);v({type:"entry:update:current:screen-mata",payload:{screenMeta:$e}})}}};var wp=e(99478),_0=e(62427),Ud=e(41449),El=e(60482),Vc=e(53955),Q0=e(90827);const xc=async()=>{const Z=Date.now();await rootSdk.saveAsync(),await(0,wp.Y_)(Math.max(Z+1e3-Date.now(),0)),await(0,Q0.G_)()},Sp={"entry:leave:project":Z=>{let{dispatch:G,getState:B}=Z;const v=B(),{isEditingProjectMain:I}=(0,Tt.r)(v);MB.commonGuideHelper.closeAllGuide(),(async()=>{if(I&&rootSdk.hasSave()){if(!(0,Vc.ys)())return G({type:"modal:update:state",payload:{doNotLeaveProjectModal:{isOpen:!0}}});MB.safeLoading&&MB.safeLoading(I18N.__entry__.saving),await xc(),MB.safeLoading&&MB.safeLoading(!1)}G({type:"entry:clear:selection"}),MB.global.onBackButtonClick()})()},"entry:preview:current-project":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,Ne.jI)(v),M=(0,Ne.bt)(v);if(I){const{hotAttr:{refRBPageKey:j},sub:Y}=sdkStore.getHotItem(I);B({type:"entry:preview:panel",payload:{activePageKey:j,activeCanvasKey:Y[0],basketKey:I}})}else if(M){const j=sdkStore.getHotItem(M).hotAttr;B({type:"entry:preview:panel",payload:{activePageKey:M,activeCanvasKey:j.defaultCanvasKey,basketKey:M}})}},"entry:preview:root-or-current:project":Z=>{var G,B;let{getState:v,dispatch:I}=Z;const M=v(),{isEditingCombo:j,isDirectlyEditingBasket:Y,isEditingBasket:oe}=(0,Tt.r)(M),ie=(0,o.PL)(M),le=(0,E.Hs)(M),{isDesign:ue}=(0,o.W4)(M),Te=(0,$.Z9)(M),De=(0,o.z$)(M),$e=(0,Ne.rg)(M),Qe=(0,Ne.uu)(M);if(Y||oe){I({type:"entry:preview:current-project"});return}const qe=j&&ue,ut=Te.filter(vn=>vn.hotAttr.type===l.x.Canvas),Bt=De!=null&&De.screen_visible_switch?De==null?void 0:De.screen_visible_list:[];if(!Qe&&!MB.global.experienceLoginModalHelper("isSave")&&I({type:"entry:start:saving"}),qe){I({type:"entry:preview:combo"});return}const ao=le[0],To=(G=(B=ut[ut.length-1])==null?void 0:B.cid)!=null?G:(0,A0.XV)(ao),ko=(0,El.Uh)(Bt);if(Qe){(0,Vo.JW)(location.pathname+"?view_mode=device&screen="+ao+"&canvasId="+To,"_blank","noreferrer");return}if((0,qo.St)()){const vn=(0,Ud.H)({search:"",pathname:location.pathname});$e?(0,Vo.JW)((0,Ud.Dw)(vn+"/embed/v2?view_mode=device"+(ko?"&selection="+ko:"")+"&screen="+ao+"&canvasId="+To+"&from=launch"),"_self"):(0,Vo.JW)((0,Ud.Dw)(vn+"?view_mode=device"+(ko?"&selection="+ko:"")+"&screen="+ao+"&canvasId="+To+"&from=sharing"),"_blank","noreferrer")}else I({type:"entry:update:novice:guide:and:task",payload:{guideType:u.c.GUIDE_NOVICE_2309_STEP_4,taskType:u.c.GUIDE_NOVICE_2309_TASK_4}}),MB.commonGuideHelper.checkGuideHasShown(u.c.GUIDE_2407_PREVIEW)&&MB.commonGuideHelper.closeGuide(u.c.GUIDE_2407_PREVIEW),(0,Vo.JW)((0,Ud.Dw)(ie.access_token+"?view_mode=device"+(ko?"&selection="+ko:"")+"&screen="+ao+"&canvasId="+To),"_blank","noreferrer")},"entry:preview:panel":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{activePageKey:I,activeCanvasKey:M,basketKey:j}}=G;const Y=B(),{isEditingCombo:oe}=(0,Tt.r)(Y),ie=(0,o.PL)(Y),le=(0,o.YT)(Y),ue=(0,o.ZI)(Y),Te=(0,o.SA)(Y),De=oe?Te:le,$e=oe?ue:ie,Qe=Y.ui.fixedLayout.modals.previewModal,{hotAttr:{w:qe,h:ut}}=sdkStore.getHotItem(j);!M||sdkStore.isTrashed(M)||Qe!=null&&Qe.isOpen&&(Qe==null?void 0:Qe.basketKey)===j||(v({type:"modal:reset:preview:modal:state"}),setTimeout(()=>{sdkStore.isTrashed(M)||v({type:"modal:update:state",payload:{previewModal:{isOpen:!0,activePageKey:I,activeCanvasKey:M,basketKey:j,currentProjectMeta:De,projectAlike:$e,width:qe,height:ut}}})},600))},"entry:preview:combo":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,o.Ur)(v),M=(0,o.ZI)(v),j=(0,o.SA)(v),Y=v.ui.fixedLayout.modals.previewComboModal,oe=I==null?void 0:I.cid;!oe||sdkStore.isTrashed(oe)||Y!=null&&Y.isOpen&&!(Y!=null&&Y.activeWidgetKey)||(B({type:"modal:reset:preview:modal:state"}),setTimeout(()=>{sdkStore.isTrashed(oe)||B({type:"modal:update:state",payload:{previewComboModal:{isOpen:!0,activePageKey:oe,currentProjectMeta:j,projectAlike:M}}})},600))},"entry:preview:widget":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{activePageKey:I,activeWidgetKey:M}}=G;const j=B(),Y=(0,o.PL)(j),oe=(0,o.YT)(j),ie=j.ui.fixedLayout.modals.previewComboModal;if(!M||sdkStore.isTrashed(M)||ie!=null&&ie.isOpen&&(ie==null?void 0:ie.activeWidgetKey)===M)return;const le=sdkStore.getHotItem(M);!le||!(le!=null&&le.hotAttr)||(v({type:"modal:reset:preview:modal:state"}),setTimeout(()=>{sdkStore.isTrashed(M)||v({type:"modal:update:state",payload:{previewComboModal:{isOpen:!0,activePageKey:I,activeWidgetKey:M,currentProjectMeta:oe,projectAlike:Y,width:le.hotAttr.w,height:le.hotAttr.h}}})},600))},"entry:preview:canvas":(Z,G)=>{var B,v;let{getState:I,dispatch:M}=Z,{payload:{activePageKey:j,activeCanvasKey:Y}}=G;const oe=I(),ie=(0,o.PL)(oe),le=(0,o.YT)(oe),ue=(B=sdkStore.getHotItem(j))==null?void 0:B.hotAttr,Te=(v=sdkStore.getHotItem(Y))==null?void 0:v.hotAttr,De=oe.ui.fixedLayout.modals.previewCanvasModal;if(!ue||!Te||De!=null&&De.isOpen&&(De==null?void 0:De.activeCanvasKey)===Y)return;const{deviceW:$e,deviceH:Qe,deviceOrientation:qe,device:ut}=ue,{w:Bt,h:ao}=Te;let{width:To,height:ko}=qe==="portrait"?{width:$e,height:Qe}:{width:Qe,height:$e};ut==="none"&&(To=Bt,ko=ao),M({type:"modal:reset:preview:modal:state"}),setTimeout(()=>{sdkStore.isTrashed(Y)||M({type:"modal:update:state",payload:{previewCanvasModal:{isOpen:!0,activePageKey:j,activeCanvasKey:Y,currentProjectMeta:le,projectAlike:ie,width:To,height:ko}}})},600)},"entry:start:saving":(0,_0.Ds)(async Z=>{let{getState:G,dispatch:B}=Z;const v=G();if((0,Ne.jx)(v)===i.qi.OnlyView)return;B({type:"set:saving",payload:{saving:!0}});const j=Date.now();await xc(),B({type:"set:saving",payload:{saving:!1}}),MB.notice({text:I18N.Common.save_notice}),await(0,wp.Y_)(Math.max(j+3e3-Date.now(),0))}).trigger};var xd=e(16526),J0=e(48358),P0=e(2079),cd=e(2313),rc=e(37738),N0=e(72300),Ap=e(78322),bl=e(34161),d0=e(42708),Kl=e(7972);const fl=(Z,G)=>{const{previewComboModal:B,previewModal:v,previewCanvasModal:I}=Z.ui.fixedLayout.modals,M=[];if(B!=null&&B.isOpen){const j=B.activeWidgetKey;j&&sdkStore.isTrashed(j)&&M.push("previewComboModal")}if(v!=null&&v.isOpen){const j=v.basketKey;j&&sdkStore.isTrashed(j)&&M.push("previewModal")}if(I!=null&&I.isOpen){const j=I.activeCanvasKey;j&&sdkStore.isTrashed(j)&&M.push("previewCanvasModal")}M.length&&G({type:"modal:update:state",payload:M.reduce((j,Y)=>(j[Y]={isOpen:!1},j),{})})};let L0;const D0={...ac,...Mr,...Sp,...{"entry:widget:change":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{flatChgList:I=[],shouldReBuildTree:M=!1,isCombineChange:j=!0,shouldBreakLayerUICache:Y=!1,shouldBreakCanvasUICache:oe=!1,isCreateWidget:ie=!1,sup:le=null,shouldReBuildChildren:ue=!1}}=G;if(!I.length)return;const Te=B(),De=(0,m.UV)(Te),$e=(0,Ne.jI)(Te),Qe=(0,Ne.bt)(Te),qe=(0,o.Ur)(Te),{isEditingCombo:ut}=(0,Tt.r)(Te),Bt=qe==null?void 0:qe.cid;j&&sdkStore.combineMergeMark("widget-change");const ao=[],To=[];let ko=M;const vn=["x","y","r","w","h"],Hn=[];I.forEach(os=>{let{key:on,sup:hn,hotAttr:Rn}=os;try{const Ln=sdkStore.getHotItem(on);Ln&&(Hn.push({key:on,sup:hn||Ln.sup,sub:Ln.sub,hotAttr:{...Ln.hotAttr,...Rn}}),!ko&&vn.some(Ms=>Ms in Rn&&Ln.hotAttr[Ms]!==Rn[Ms])&&(ko=!0))}catch(Ln){console.error("[fatal]: sdkStore.getHotItem error",Ln,{key:on,hotAttr:Rn,sup:hn}),(0,Td.p)("[fatal]: sdkStore.getHotItem",Ln)}});try{sdkStore.updateHotItemBatch(Hn)}catch(os){console.error("[fatal]: sdkStore.updateHotItemBatch error",os,Hn),(0,Td.p)("[fatal]: sdkStore.updateHotItemBatch",os);return}for(const{key:os,hotAttr:on,sup:hn}of I){const Rn=(0,bt.Op)(os);v({type:"entry:update:linkNodeList",payload:{key:os,hotAttr:Rn,sub:Rn.sub}}),ao.push({cid:os,...Rn,sup:hn}),To.push({cid:os,...Rn})}if(j&&sdkStore.combineMerge("widget-change"),M)v({type:"entry:rebuild:screen-widget-tree"});else{const os=ie?De.newWidgetsV2(ao,{folderKey:Bt,isEditingCombo:ut,editingBasketRefPage:Qe,editingBDanliKey:$e}):De.updateWidgets([...ao,...(0,xd.b2)(I)],{folderKey:Bt,isEditingCombo:ut,editingBasketRefPage:Qe,editingBDanliKey:$e},ue);v({type:"selection:update:state",payload:{widgetTreeData:os}})}ko&&(clearTimeout(L0),L0=setTimeout(()=>{v({type:"entry:update:ruler"})})),Y&&v({type:"selection:update:state",payload:{layerListCacheTag:Math.random()}}),oe&&v({type:"directory-panel:bottom:update",payload:{canvasListCacheTag:Math.random()}}),v({type:"entry:comment:move-canvas",payload:{updates:To}})},"entry:widget:delete":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{keys:I,shouldBreakLayerUICache:M=!1,shouldRefreshLinkList:j=!1,shouldBreakCanvasUICache:Y=!1}}=G;const oe=B(),le=(0,m.UV)(oe).deleteWidgets(I),{isEditingCombo:ue}=(0,Tt.r)(oe),Te=(0,m.VH)(oe);v({type:"selection:update:state",payload:{widgetTreeData:le}}),M&&v({type:"selection:update:state",payload:{layerListCacheTag:Math.random()}}),Y&&v({type:"directory-panel:bottom:update",payload:{canvasListCacheTag:Math.random()}}),j&&v({type:"entry:refresh:link-list",payload:{updateAllLink:!0}}),Te&&sdkStore.isTrashed(Te)&&v({type:"set:echo:item",payload:{cid:void 0}});const De=(0,yd.GP)(oe);I.findIndex(Qe=>(0,Fr.uG)({linkNodeList:De,widget:sdkStore.getHotItem(Qe),isShowAllLinks:!0,isSet:!1,isEditingCombo:ue}))!==-1&&v({type:"entry:rebuild:screen-widget-tree"}),fl(oe,v)},"entry:widget:create":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{e:I}}=G;const M=B(),j=(0,o.wq)(M),Y=(0,o.Sb)(M),oe=(0,m.RX)(M),ie=(0,ve.PI)(M),le=(0,ve.k3)(M),ue=(0,o.ER)(M),Te=(0,o.$S)(M),De=(0,Ne.jx)(M),$e=(0,o.Ur)(M),Qe=(0,o.X_)(M);if(De===i.qi.OnlyView)return;MB.f.isSelecting=!0;const ut=document.querySelector(".mb-viewport"),{top:Bt,left:ao,bottom:To,right:ko}=ut.getBoundingClientRect(),vn=(0,mt.mG)(I,{scale:Qe,offset:ue,viewportRect:Te}),Hn=(0,C.Tg)(vn,oe.key);let on=Hn&&j.type!==l.x.Canvas?Hn:$e==null?void 0:$e.cid,hn=I.clientX,Rn=I.clientY-Bt,Ln;(ie||le)&&(Ln=(0,J0.ay)({movableItems:[],createSnapper:ie?P0.WY:J0.xb,viewport:{scale:Qe/100}}));const Ms={startX:hn,startY:Rn,endX:hn,endY:Rn},pi=(0,cd.vI)(Ms,Qe),Ts=(0,Jc.q2)(j.type,pi);let Js;if(j.type===l.x.WElbow){const Yi={x:pi.startX,y:pi.startY};sdkStore.combineMergeMark("elbow-create"),Js=(0,rc.Z1)(Yi,$e.cid),v({type:"entry:elbow:create:start",payload:{elbowKey:Js,cursorWorldPos:vn,moveAnchor:"start"}})}else v({type:"set:quick-create-widget",payload:{widget:{...j,top:Ts.top,left:Ts.left,width:0,height:0,x:Ts.left+j.w/2,y:Ts.top+j.h/2,line:Ts.line}}});if(j.type===l.x.Canvas&&v({type:"reducer:flag:update-state",payload:{isStartCreatingCanvas:!0}}),j.type===l.x.WVector){var ki;if(((ki=j.vector)==null?void 0:ki.toolType)===N.pv.PENCIL){MB.f.isSelecting=!1;return}let Yi=S.Z.xy(Ts.left,Ts.top);if(Hn){const Hr=sdkStore.getHotItem(Hn);if(Hr){const{hotAttr:{x:Wa,y:nr,w:zi,h:ca}}=Hr;Yi=S.Z.subtract(Yi,{x:Wa-zi/2,y:nr-ca/2})}}v({type:"entry:vector:editor:drag",payload:{pos:Yi,sup:on}});return}const[js,ai]=[l.x.WLine,l.x.WArrow].includes(j.name)?[45,0]:[90,45],qi=Yi=>{const Hr=Yi.clientX,Wa=Yi.clientY-Bt,nr={startX:hn,startY:Rn,endX:Hr,endY:Wa};let zi=0,ca=0;if(Yi.clientX<ao?zi=10:Yi.clientX>ko&&(zi=-10),Yi.clientY<Bt?ca=10:Yi.clientY>To&&(ca=-10),zi||ca){hn+=zi,Rn+=ca;const{x:ia,y:yl}=ue,er={x:ia+zi,y:yl+ca};v({type:"entry:set:canvas:offset",payload:{offset:er}})}const Ua=(0,cd.vI)(nr,Qe);let Za;if(Yi.shiftKey)Za=(0,cd.T7)(Ua,js,ai);else{const ia={left:Hr<hn,right:Hr>=hn,top:Wa<Rn,bottom:Wa>=Rn},yl=(0,cd.rn)(Ua);let er,Cr,Cl,od,Bc,Yd,Cc;ie||le?({top:er,left:Cr,width:Cl,height:od,alignment:Bc,distributed:Yd,sameSize:Cc}=Ln({_rect:yl,resizing:(0,N0.$)(ia),sup:on}),v({type:"set:alignment",payload:{alignment:Bc}}),v({type:"set:sameSize",payload:{sameSize:Cc}}),v({type:"set:distributed",payload:{distributed:Yd}})):{top:er,left:Cr,width:Cl,height:od}=yl,Za={startX:ia.left?Cr+Cl:Cr,startY:ia.top?er+od:er,endX:ia.right?Cr+Cl:Cr,endY:ia.bottom?er+od:er}}if(j.type===l.x.WElbow){const ia={x:Za.endX,y:Za.endY};v({type:"entry:elbow:create:start",payload:{elbowKey:Js,cursorWorldPos:ia,moveAnchor:"end"}})}else if(j.type===l.x.Canvas){const ia=(0,Jc.q2)(j.type,Za);v({type:"set:quick-create-widget",payload:{widget:{...j,...ia,w:ia.width,h:ia.height,x:ia.left+ia.width/2,y:ia.top+ia.height/2,line:ia.line,device:"customize"}}})}else{const ia=(0,Jc.q2)(j.type,Za);v({type:"set:quick-create-widget",payload:{widget:{...j,...ia,w:ia.width,h:ia.height,x:ia.left+ia.width/2,y:ia.top+ia.height/2,line:ia.line}}})}},or=Yi=>{if(MB.f.isSelecting=!1,document.removeEventListener("mousemove",qi),document.removeEventListener("mouseup",or),!(0,Fn._c)({type:j.type,count:1})){v({type:"set:quick-create-widget",payload:{widget:null}}),v({type:"entry:ST:STMode:disable"});return}const Hr=B(),Wa=(0,Tt.r)(Hr),nr=(0,Ne.IL)(Hr),zi=(0,o.wq)(Hr),ca=(0,Ap.P)(Wa),Ua=1;let Za;if(j.type===l.x.WRichText){const er=(0,Wo.gg)(zi);Za={...er,width:er.w,height:er.h}}else if([l.x.WLine,l.x.WArrow].includes(j.type)){if(zi.width<3&&zi.height<3){const{startX:er,startY:Cr}=(0,cd.vI)({startX:hn,startY:Rn,endX:0,endY:0},Qe);Za=(0,Jc.q2)(j.type,{startX:er,startY:Cr,endX:er+150,endY:Cr}),Za.x=zi.left+Za.width/2,Za.y=zi.top+Za.height/2}}else if([l.x.WLR,l.x.WOval,l.x.WRect].includes(j.type)){if(zi.width<Ua&&zi.height<Ua){const er=ca.find(Cr=>{let{name:Cl}=Cr;return Cl===j.type});if(er){const Cr=er.default.width,Cl=er.default.height;Za={x:zi.left+Cr/2,y:zi.top+Cl/2,width:Cr,height:Cl}}else{const Cr=Math.max(zi.width,Ua),Cl=Math.max(zi.height,Ua);Za={x:zi.left+Cr/2,y:zi.top+Cl/2,width:Cr,height:Cl}}}}else if([l.x.WSticky].includes(j.type)){let er=zi.width,Cr=zi.height;const Cl=ca.find(Yd=>{let{name:Cc}=Yd;return Cc===j.type});Cl&&(er=er<280?Cl.default.width:er,Cr=Cr<120?Cl.default.height:Cr);const od=$e.cid,Bc=(0,gc.Be)(od);Za={x:zi.left+er/2,y:zi.top+Cr/2,width:er,height:Cr,order:Bc+1},on=$e==null?void 0:$e.cid}else if(j.type===l.x.WImage)if(zi.width<Ua&&zi.height<Ua)Za={x:zi.left+200/2,y:zi.top+100/2,width:200,height:100};else{const er=Math.max(zi.width,Ua),Cr=Math.max(zi.height,Ua);Za={x:zi.left+er/2,y:zi.top+Cr/2,width:er,height:Cr}}else if(j.type===l.x.Canvas)if(zi.width<Ua&&zi.height<Ua)Za=(0,a.X0)($e),Za.width=Za.w,Za.height=Za.h,Za.x=zi.left+Za.w/2,Za.y=zi.top+Za.h/2;else{const er=Math.max(zi.width,Ua),Cr=Math.max(zi.height,Ua);Za={x:zi.left+er/2,y:zi.top+Cr/2,width:er,height:Cr}}else if(j.type===l.x.WTear){const er=(0,gc.Be)($e.cid),Cr=(0,C.Tg)(vn,oe.key);let Cl;nr?(0,gc.yT)(sdkStore.getHotItem(nr).hotAttr.type)?Cl="":Cl=nr:Cl=Cr||"",on=$e==null?void 0:$e.cid,Za={x:zi.x+zi.width*.5,y:zi.y+zi.height*.5,width:20,height:20,order:er+1,refWCKey:Cl},v({type:"ST:update",payload:{isLeftDown:!0}})}else{const er=Math.max(zi.width,10),Cr=Math.max(zi.height,10);Za={x:zi.left+er/2,y:zi.top+Cr/2,width:er,height:Cr}}const ia={...zi,...Za},yl={...ia,w:(ia==null?void 0:ia.width)||(ia==null?void 0:ia.w),h:(ia==null?void 0:ia.height)||(ia==null?void 0:ia.h)};(ie||le)&&(v({type:"set:alignment",payload:{alignment:{}}}),v({type:"set:sameSize",payload:{sameSize:{}}}),v({type:"set:distributed",payload:{distributed:{}}})),j.type===l.x.WElbow?(v({type:"entry:elbow:after-quick-create",payload:{elbowKey:Js,originalSup:on}}),v({type:"entry:select:items",payload:{cids:[Js]}}),v({type:"elbow:update",payload:{highlightAnchor:"",isDraggingElbow:!1}}),v({type:"entry:rebuild:screen-widget-tree"}),sdkStore.combineMerge("elbow-create")):v({type:"entry:batch:create:items",payload:{data:[{items:[yl]}],offset:{top:0,left:0},sup:on,source:"draw"}}),j.type===l.x.Canvas?(Y===bl.Hq.ToolBar?(0,d0.lR)({page:j}):(0,d0.Ig)({page:j}),v({type:"reducer:flag:update-state",payload:{isStartCreatingCanvas:!1}})):((0,bl.Yp)({source:Y===bl.Hq.ToolBar?""+bl.ol.ToolBar+bl.k8.Click:bl.ol.ShortCut,widgetName:(0,bl.KR)(j.name)}),Kl.K1[j.type]&&(0,Kl.Uz)({operation_type:Kl.P6.Create,widget:j})),v({type:"set:quick-create-widget",payload:{widget:null}}),v({type:"entry:ST:STMode:disable"})};document.addEventListener("mousemove",qi),document.addEventListener("mouseup",or)},"entry:collaborate:widget:change":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{creates:I,updates:M,deletes:j,shouldReBuildChildren:Y}}=G;const oe=B(),ie=(0,m.UV)(oe),le=(0,m.RX)(oe),ue=(0,Ne.jI)(oe),Te=(0,Ne.bt)(oe),De=(0,o.Ur)(oe),{isEditingCombo:$e}=(0,Tt.r)(oe),Qe=(0,We.ul)(oe),ut={folderKey:De==null?void 0:De.cid,isEditingCombo:$e,editingBasketRefPage:Te,editingBDanliKey:ue};if(!((I==null?void 0:I.length)||(j==null?void 0:j.length)||(M==null?void 0:M.length)))return;let ao=le;if(I!=null&&I.length&&I.forEach(To=>{const ko={cid:To.key,...(0,bt.Op)(To.key),...To.hotAttr,sup:To.sup};ao=ie.newWidgets([ko],To.sup,ut)}),M!=null&&M.length){const To=[];for(const{key:ko,hotAttr:vn,sup:Hn}of M)To.push({cid:ko,...(0,bt.Op)(ko),...vn,sup:Hn});ao=ie.updateWidgets(To,ut,Y)}if(j!=null&&j.length&&(ao=ie.deleteWidgets(j),Qe!=null&&Qe.length)){const To=Qe.filter(ko=>!sdkStore.isTrashed(ko));v({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:To}})}v({type:"selection:update:state",payload:{widgetTreeData:ao}}),MB.action("selection:update:state",{layerListCacheTag:Math.random()}),MB.action("entry:refresh:link-list")}}};var zd=e(64211),jl=e(87383),Pl=e(21109);const Ed=function(Z,G){G===void 0&&(G=!0);const B=new Map,v={};if(G){const{hotAttr:I,key:M}=sdkStore.getHotItem(Z),j=I.type===l.x.WBasket?I==null?void 0:I.refRBPageKey:M,Y=(0,gc.Mn)(j);for(const oe of Y){const{key:ie,hotAttr:{refWCKey:le}}=oe;!le||!sdkStore.locUpColdCanvasKey(le)||((0,jl.Ie)(le,v),(0,jl.Ie)(ie,v),B.has(le)?B.set(le,B.get(le).concat([ie])):B.set(le,[ie]))}}return{keyRefWCToKeyTear:B,preDragSnapshot:v}},Nc=(Z,G)=>{const B={},v=[];return Z.forEach((I,M)=>{(0,jl.Ie)(M,B);const j=B[M],Y=G[M];if(j&&Y&&I!=null&&I.length){const oe=j.hb.x-Y.hb.x,ie=j.hb.y-Y.hb.y;for(const le of I){const{hb:ue,wasoX:Te,wasoY:De}=G[le],{x:$e,y:Qe}=sdkStore.toAttrXY({x:ue.x+oe,y:ue.y+ie},le);v.push({key:le,hotAttr:{x:$e+Te,y:Qe+De}})}}}),v},Ip=Z=>Z.reduce((B,v)=>{const I=sdkStore.getHotItem(v);return I&&I.hotAttr.type===l.x.Canvas?B.concat([v]):B},[])[0],Mp={"entry:create:basket":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{basketType:I="bDanli",attr:M={},isToDoubleTheCanvas:j=!1,onSuccess:Y=()=>0}={}}=G;v({type:"entry:create:basket:v2",payload:{basketType:I,attr:M,isToDoubleTheCanvas:j,onSuccess:Y}})},"entry:create:basket:v1":async(Z,G)=>{var B,v;let{getState:I,dispatch:M}=Z,{payload:{basketType:j="bDanli",attr:Y={},isToDoubleTheCanvas:oe=!1}={}}=G;const ie=I(),le=(0,o.Ur)(ie).cid,ue=(0,$.p$)(ie).filter(ao=>!(0,gt.OO)(ao));if(!(ue!=null&&ue.length))return;const Te=ue.map(ao=>sdkStore.getHotItem(ao));if(Te.length===1&&((B=Te[0])==null?void 0:B.hotAttr.type)===l.x.WBasket&&((v=Te[0])==null||(v=v.hotAttr)==null?void 0:v.basket)==="bDanli"&&j==="bMuban"){M({type:"entry:basket:transform",payload:{basketType:j,attr:Y}});return}const De=(0,ce.cF)("wb"),$e=(0,ce.cF)("rc");let Qe=le;Te.filter(ao=>!(0,gc.yT)(ao.hotAttr.type)).every(ao=>ao.sup===Te[0].sup)&&(Qe=Te[0].sup),sdkStore.combineMergeMark("create-basket"),sdkStore.summonRCanvas(ue,le,$e,I18N.Basket.state1,5),sdkStore.updateHotAttrMerge($e,{fill:{fillIsVisible:!1,fill:"solid",solidColor:4294967295}});const qe=(Y==null?void 0:Y.name)||(0,li.KD)(Te[0].key);if(sdkStore.summonWBasketFromRCanvas($e,Qe,De,j,qe,Te[0].hotAttr.zIndex),oe){const ao=sdkStore.getHotItem(De).hotAttr.refRBPageKey,To=sdkStore.loadSubtreeTL(sdkStore.saveSubtree([$e]),ao,0,0)[0];sdkStore.updateHotAttrMerge(To,{name:I18N.Basket.state2,order:(0,A0.QN)(ao)})}const ut=sdkStore.getHotItem($e).sup,Bt=[];Te.forEach(ao=>{(0,gc.yT)(ao.hotAttr.type)&&Bt.push([ao.key,ut])}),sdkStore.moveHotItemBatch(Bt),(0,_r.F6)(ue),(0,_r.gs)(ut,ue),(0,_r.gs)(le,[]),sdkStore.combineMerge("create-basket"),M({type:"entry:rebuild:screen-widget-tree"}),M({type:"links:active:link",payload:{cid:[]}}),M({type:"links:singleSelectLink:update",payload:{singleSelectLink:void 0}}),M({type:"update:link:selectLinkItem",payload:null}),M({type:"entry:refresh:link-list"}),M(i.GO.select([De])),M(i.GO.hoverItem("")),j==="bDanli"&&(M(i.GO.editBasketItemKey(De)),M(i.GO.editBasketHotItem(sdkStore.getHotItem(De))))},"entry:create:basket:v2":async(Z,G)=>{var B,v;let{getState:I,dispatch:M}=Z,{payload:{basketType:j="bDanli",attr:Y={},isToDoubleTheCanvas:oe=!1,onSuccess:ie}={}}=G;const le=I(),ue=(0,o.Ur)(le).cid,Te=(0,$.p$)(le).filter(Hn=>!(0,gt.OO)(Hn)),De=(0,Ne.jI)(le);if(!(Te!=null&&Te.length))return;let $e=1;const Qe=Te.length;if(j==="bDanli"?$e=oe?Qe*2+1:1:$e=Qe+1+1,!(0,Fn._c)({type:"basket",count:$e}))return;setTimeout(()=>{ie==null||ie()});const qe=Te.map(Hn=>sdkStore.getHotItem(Hn));if(qe.length===1&&((B=qe[0])==null?void 0:B.hotAttr.type)===l.x.WBasket&&((v=qe[0])==null||(v=v.hotAttr)==null?void 0:v.basket)==="bDanli"&&j==="bMuban"){M({type:"entry:basket:transform",payload:{basketType:j,attr:Y,type:"danliToMuban"}});return}const ut=(0,ce.cF)("wb"),Bt=(0,ce.cF)("rc"),ao=(0,Pl.Lf)(Te);if(!ao)return;sdkStore.combineMergeMark("create-basket"),sdkStore.summonRCanvas(Te,ue,Bt,I18N.Basket.state1,5),sdkStore.updateHotAttrMerge(Bt,{fill:{fillIsVisible:!1,fill:"solid",solidColor:4294967295}});const To=(Y==null?void 0:Y.name)||(0,li.KD)(qe[0].key);if(sdkStore.summonWBasketFromRCanvas(Bt,ao.sup,ut,j,To,ao.hotAttr.zIndex),De&&(0,zd.On)(ut,De),oe){const Hn=sdkStore.getHotItem(ut).hotAttr.refRBPageKey,os=sdkStore.loadSubtreeTL(sdkStore.saveSubtree([Bt]),Hn,0,0)[0];sdkStore.updateHotAttrMerge(os,{name:I18N.Basket.state2,order:(0,A0.QN)(Hn)})}const ko=sdkStore.getHotItem(Bt).sup,vn=[];sdkStore.walkHotItemSubtree2(ko,Hn=>{(0,gc.yT)(Hn.hotAttr.type)&&vn.push([Hn.key,ko])}),sdkStore.moveHotItemBatch(vn),(0,_r.hf)(Te,ue,M),(0,_r.F6)(Te),(0,Si.WV)(Te),(0,_r.gs)(ko,Te),(0,_r.gs)(ue,[]),sdkStore.combineMerge("create-basket"),M({type:"entry:rebuild:screen-widget-tree"}),M({type:"links:active:link",payload:{cid:[]}}),M({type:"links:singleSelectLink:update",payload:{singleSelectLink:void 0}}),M({type:"update:link:selectLinkItem",payload:null}),M({type:"entry:refresh:link-list"}),M(i.GO.select([ut])),M(i.GO.hoverItem("")),j==="bDanli"&&(M(i.GO.editBasketItemKey(ut)),M(i.GO.editBasketHotItem(sdkStore.getHotItem(ut))))},"entry:basket:transform":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{itemsKeyList:I=[],attr:M={},basketType:j="bDanli",store:Y=sdkStore,type:oe}={},hasUpdateWidgetTreeData:ie=!0}=G;const le=B(),Te=(I.length>0?I:(0,$.p$)(le)).filter(ut=>!(0,gt.OO)(ut));if(Te.length===0)return;let De=0;if(oe==="detachMuban"){var $e;De=(0,Fn.UU)({initKeyList:[($e=sdkStore.getHotItem(Te[0]))==null?void 0:$e.hotAttr.refRBPageKey].filter(Boolean)})}else oe==="danliToMuban"?De=1:oe==="createCombo"&&(De=0);if(!(0,Fn._c)({type:"basket",count:De}))return;sdkStore.combineMergeMark("transform-basket");const Qe=[];if(Te.forEach(ut=>{const{hotAttr:Bt}=Y.getHotItem(ut);if((Bt==null?void 0:Bt.type)===l.x.WBasket){var ao,To;Y.convertWBasketType(ut,j);const ko=(ao=Y.getHotItem(ut).hotAttr)==null?void 0:ao.refRBPageKey,vn=(To=Y.getHotItem(ut))==null?void 0:To.hotAttr;j==="bDanli"&&Y.updateHotAttrMerge(ko,{defaultCanvasKey:vn==null?void 0:vn.refContentKey}),Y.updateHotAttrMerge(ko,{w:vn.w,h:vn.h,scroll:vn.scroll,name:M==null?void 0:M.name}),Qe.push({cid:ut,...(0,bt.Op)(ut)})}}),ie){const Bt=(0,m.UV)(le).updateWidgets(Qe,null,!0);v({type:"selection:update:state",payload:{widgetTreeData:Bt,layerListCacheTag:Math.random()}})}sdkStore.combineMerge("transform-basket");const qe=le.ui.fixedLayout.modals.previewModal;if(qe!=null&&qe.isOpen){const ut=qe.basketKey;if(ut){const Bt=(0,gt.OO)(ut)?(0,gt.QL)(ut).pop():ut;Te.includes(Bt)&&v({type:"modal:update:state",payload:{previewModal:{isOpen:!1}}})}}(0,Si.WV)()},"entry:basket:delete":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{removeList:I}}=G;const M=B(),j=(0,Ne.jI)(M),Y=(0,Ne.bt)(M),oe=(0,Ne.PR)(M);sdkStore.combineMergeMark("delete-basket"),sdkStore.deleteHotItemBatch(I);let ie;if(j){var le;const{refContentKey:Te,refRBPageKey:De}=(le=sdkStore.getHotItem(j))==null?void 0:le.hotAttr,{sub:$e,hotAttr:{defaultCanvasKey:Qe}}=sdkStore.getHotItem(De),qe=Ip($e);qe&&(I.includes(Te)&&sdkStore.updateHotAttrKV((0,gt.OO)(j)?(0,gt.QL)(j).pop():j,"refContentKey",qe),I.includes(Qe)&&sdkStore.updateHotAttrKV(De,"defaultCanvasKey",qe)),j===(oe==null?void 0:oe.key)&&(ie=sdkStore.getHotItem(j))}if(Y){const{hotAttr:{defaultCanvasKey:Te},sub:De}=sdkStore.getHotItem(Y),$e=Ip(De);if($e){I.includes(Te)&&sdkStore.updateHotAttrKV(Y,"defaultCanvasKey",$e);for(const Qe of sdkStore.findAllBasketFRBPage(Y)){var ue;const{refContentKey:qe}=(ue=sdkStore.getHotItem(Qe))==null?void 0:ue.hotAttr;I.includes(qe)&&sdkStore.updateHotAttrKV(Qe,"refContentKey",$e)}}Y===(oe==null?void 0:oe.key)&&(ie=sdkStore.getHotItem(Y))}v({type:"entry:refresh:canvas:order"}),v({type:"entry:layout:basket-canvas"}),ie&&v(i.GO.editBasketHotItem(ie)),sdkStore.combineMerge("delete-basket")},"entry:exit:edit:basket":Z=>{var G;let{getState:B,dispatch:v}=Z;sdkStore.setPCXYConfigMap(void 0);const I=B(),M=(0,Ne.jI)(I),j=(0,Ne.bt)(I);if(!M&&!j)return;const[Y]=(0,Ne.ER)(I),oe=(0,E.OW)(I),ie=(0,Ne.uj)(I);v(i.GO.editBasketItemKey("")),v(i.GO.editBasketHotItem(null)),v(i.GO.editBasketRefPage("")),v({type:"entry:clear:selection"}),v({type:"entry:memory:current:screen:offset:scale"}),sdkStore.isTrashed(Y)?v({type:"entry:activate:root-project:home-screen"}):(v({type:"entry:goto:project-alike",payload:{screenMetaCid:Y}}),v({type:"screen:update:screen-selection",payload:{screenSelection:[Y]}})),oe===So.lS.List&&v({type:"set:current:popup:panel",payload:{name:ie}}),(G=MB.commonGuideHelper)!=null&&G.checkGuideHasShown&&!MB.commonGuideHelper.checkGuideHasShown(u.c.GUIDE_BASKET_QUICK_COPY_CANVAS)&&(MB.commonGuideHelper.closeGuide(u.c.GUIDE_BASKET_QUICK_COPY_CANVAS),MB.commonGuideHelper.markGuideAsRead(u.c.GUIDE_BASKET_QUICK_COPY_CANVAS)),v({type:"modal:reset:preview:modal:state"})},"entry:detach:basket":Z=>{let{getState:G,dispatch:B}=Z;B({type:"entry:detach:basket:v2"})},"entry:detach:basket:v1":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,$.p$)(v)[0],M=sdkStore.getHotItem(I),j=sdkStore.locUpRBPageKey(I);sdkStore.combineMergeMark("basket-detach");const{sub:Y,hotAttr:{zIndex:oe,name:ie}}=sdkStore.getHotItem(M==null?void 0:M.hotAttr.refContentKey),{x:le,y:ue,w:Te,h:De}=sdkStore.getHotBound(M.key),$e=le-Te/2,Qe=ue-De/2;let qe="";if(Y.length>0){qe=(0,ce.cF)("ww");const To={key:qe,sub:[],sup:M.sup,hotAttr:{...po.N[l.x.WWrap](),name:ie||(0,bt.Mn)(M.hotAttr),zIndex:M.hotAttr.zIndex,fixPosTo:M.hotAttr.fixPosTo}};sdkStore.updateHotItem(To),sdkStore.loadSubtreeTL(sdkStore.saveSubtree(Y),qe,$e,Qe)}sdkStore.deleteHotItem(M.hotAttr.refContentKey);const ut=sdkStore.findAllTypeUnder(M.hotAttr.refRBPageKey,"rResCanvas").map(To=>To.key);if(ut.length>0){const To=ut[0];sdkStore.updateHotAttrKV(M.key,"refContentKey",To),sdkStore.updateHotAttrKV(M.hotAttr.refRBPageKey,"defaultCanvasKey",To),qe&&sdkStore.updateHotAttrKV(qe,"zIndex",(0,_r.Z_)(M.sup)+1)}else{var Bt;sdkStore.deleteHotItem(M.key),sdkStore.getHotItem(M.hotAttr.refRBPageKey).sub.filter(hn=>["wSticky","wTear"].includes(sdkStore.getHotItem(hn).hotAttr.type)).sort((hn,Rn)=>sdkStore.getHotItem(hn).hotAttr.order-sdkStore.getHotItem(Rn).hotAttr.order).forEach(hn=>{const Rn=sdkStore.getHotItem(hn).hotAttr;Rn.type==="wSticky"&&Rn.sticky.point.length&&sdkStore.updateHotAttrKV(hn,"sticky",{...Rn.sticky,point:[Rn.sticky.point[0]+$e,Rn.sticky.point[1]+Qe]}),sdkStore.updateHotAttrKV(hn,"order",(0,gc.Be)(j)+1),sdkStore.changeRndSup(hn,j);const{x:Ln,y:Ms}=sdkStore.getHotBound(hn);sdkStore.updateHotAttrMerge(hn,{...sdkStore.toAttrXY({x:Ln+$e,y:Ms+Qe},hn)})});const ko=sdkStore.getHotItem(M.hotAttr.refRBPageKey).sub.filter(hn=>!["wSticky","wTear"].includes(sdkStore.getHotItem(hn).hotAttr.type)),{lowZIndexItemsKeyList:vn,highZIndexItemsKeyList:Hn}=(0,_r.CB)(ko,oe),{lowZIndexItemsKeyList:os,highZIndexItemsKeyList:on}=(0,_r.CB)(sdkStore.getHotItem(M.sup).sub.filter(hn=>!l.Q.ALWAYS_ON_TOP_NAMES.includes(sdkStore.getHotItem(hn).hotAttr.type)),M.hotAttr.zIndex);os.concat(vn).concat(qe?[qe]:[]).concat(Hn).concat(on).forEach((hn,Rn)=>sdkStore.updateHotAttrKV(hn,"zIndex",Rn+1)),ko.forEach(hn=>{sdkStore.changeRndSup(hn,M.sup);const{x:Rn,y:Ln}=sdkStore.getHotBound(hn);sdkStore.updateHotAttrMerge(hn,{...sdkStore.toAttrXY({x:Rn+$e,y:Ln+Qe},hn)})}),(Bt=rootSdk.cmtStore.getHotItem(M.hotAttr.refRBPageKey))==null||Bt.sub.forEach(hn=>{const Rn=rootSdk.cmtStore.getHotItem(hn).hotAttr;if(!rootSdk.cmtStore.getHotItem(j)){const Ln=(0,ds.$S)(j);rootSdk.cmtStore.updateHotItem(Ln)}rootSdk.cmtStore.moveHotItem(hn,j),rootSdk.cmtStore.updateHotAttrMerge(hn,{x:Rn.x+$e,y:Rn.y+Qe})})}sdkStore.combineMerge("basket-detach"),B({type:"entry:rebuild:screen-widget-tree"}),B({type:"entry:comment:rebuild:commentList"}),qe&&B({type:"entry:select:items",payload:{cids:[qe]}});const ao=v.ui.fixedLayout.modals.previewModal;if(ao!=null&&ao.isOpen){const To=ao.basketKey;To&&sdkStore.isTrashed(To)&&B({type:"modal:update:state",payload:{previewModal:{isOpen:!1}}})}},"entry:detach:basket:v2":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,$.p$)(v)[0],M=sdkStore.getHotItem(I),j=(0,o.eo)(v);sdkStore.combineMergeMark("basket-detach");const{sup:Y,hotAttr:{refContentKey:oe,refRBPageKey:ie,zIndex:le}}=M,{sub:ue,hotAttr:{zIndex:Te,name:De}}=sdkStore.getHotItem(oe),$e=sdkStore.getHotItem(Y),[Qe,qe]=sdkStore.getHotAABB(M.key);let ut=null;const Bt=(0,Pl.G9)(j),ao=$e.hotAttr.type==="wWrap";if(ao)ut=Y;else if(ue.length>0){const hn=sdkStore.getHotKeyListAABB(ue),Rn=hn[2]-hn[0],Ln=hn[3]-hn[1],Ms=[Qe,qe,Qe+Rn,qe+Ln];ut=Bt(Ms,$e.hotAttr.type==="rResCanvas"?$e.key:null)||j}const To=new Map,ko=hn=>{if(!To.has(hn)){const Rn=hn===ut?le:(0,_r.Z_)(hn),Ln=sdkStore.getSubHotItemList(Y).filter(Ms=>!Pl.o7.has(Ms.hotAttr.type)&&Ms.hotAttr.zIndex>Rn).sort((Ms,pi)=>Ms.hotAttr.zIndex-pi.hotAttr.zIndex);To.set(hn,{anchorZIndex:Rn,theDetachedZ:null,aboveAnchorList:Ln})}return To.get(hn)},vn=[],Hn=sdkStore.getSubHotItemList(ie).filter(hn=>hn.hotAttr.type==="rResCanvas"&&hn.key!==oe);if(Hn.length>0){const hn=Hn[0].key;sdkStore.updateHotAttrKV(I,"refContentKey",hn)}else{var os;const hn=[],Rn=[];sdkStore.getSubHotItemList(ie).forEach(js=>{(0,gc.yT)(js.hotAttr.type)?hn.push(js):js.hotAttr.type!=="rResCanvas"&&Rn.push(js)});let Ln=(0,gc.Be)(j);const Ms=hn.sort((js,ai)=>js.hotAttr.order-ai.hotAttr.order).map(js=>{const{x:ai,y:qi}=sdkStore.getHotBound(js.key);return{...js,sup:j,hotAttr:{...js.hotAttr,...sdkStore.toAttrXY({x:ai+Qe,y:qi+qe},js.key),...js.hotAttr.type==="wSticky"&&js.hotAttr.sticky.point.length>0&&(js.hotAttr.refWCKey===oe||sdkStore.isTrashed(js.hotAttr.refWCKey))&&{sticky:{...js.hotAttr.sticky,point:[js.hotAttr.sticky.point[0]+Qe,js.hotAttr.sticky.point[1]+qe]}},order:++Ln}}}),pi=Rn.sort((js,ai)=>js.hotAttr.zIndex-ai.hotAttr.zIndex).map(js=>{vn.push(js.key);let ai=null,qi=null,or=null;if(ao){const Yi=ko(ut);js.hotAttr.zIndex<Te?qi=Yi.anchorZIndex+1:Yi.theDetachedZ!==null?(qi=Yi.anchorZIndex+1,or=Yi.theDetachedZ):(or=Yi.anchorZIndex+1,qi=Yi.anchorZIndex+2),To.set(ut,{...Yi,anchorZIndex:qi,theDetachedZ:or})}else{const Yi=sdkStore.getHotAABB(js.key),Hr=[Yi[0]+Qe,Yi[1]+qe,Yi[2]+Qe,Yi[3]+qe];ai=Bt(Hr,$e.hotAttr.type==="rResCanvas"?$e.key:null)||j;const Wa=ko(ai);js.hotAttr.zIndex<Te?qi=Wa.anchorZIndex+1:Wa.theDetachedZ!==null?(qi=Wa.anchorZIndex+1,or=Wa.theDetachedZ):(or=Wa.anchorZIndex+1,qi=Wa.anchorZIndex+2),To.set(ai,{...Wa,anchorZIndex:qi,theDetachedZ:or})}return{...js,sup:ai,hotAttr:{...js.hotAttr,...sdkStore.toAttrXY({x:js.hotAttr.x+Qe,y:js.hotAttr.y+qe},js.key,ai),zIndex:qi}}}),Ts=ko(ut);let Js=Ts.anchorZIndex;const ki=Ts.aboveAnchorList.map(js=>(Js+=1,{...js,hotAttr:{...js.hotAttr,zIndex:Js}}));To.set(ut,{...Ts,anchorZIndex:Js}),sdkStore.updateHotItemBatch(Ms.concat(pi)),(os=rootSdk.cmtStore.getHotItem(ie))==null||os.sub.forEach(js=>{const ai=rootSdk.cmtStore.getHotItem(js).hotAttr;if(!rootSdk.cmtStore.getHotItem(j)){const qi=(0,ds.$S)(j);rootSdk.cmtStore.updateHotItem(qi)}rootSdk.cmtStore.moveHotItem(js,j),rootSdk.cmtStore.updateHotAttrMerge(js,{x:ai.x+Qe,y:ai.y+qe})}),sdkStore.deleteHotItem(I)}if(ue.length>0){const hn=(0,ce.cF)("ww");vn.push(hn);const Rn=ko(ut);let Ln=Rn.anchorZIndex;const Ms=Rn.theDetachedZ||++Ln;sdkStore.summonWWrap(ue,ut,hn,De,Ms,!0,!0);const pi=sdkStore.getHotKeyListAABB(ue),Ts=pi[2]-pi[0],Js=pi[3]-pi[1];sdkStore.updateHotAttrMerge(hn,{...sdkStore.toAttrXY({x:Qe+Ts/2,y:qe+Js/2},hn)});const ki=Rn.aboveAnchorList.map(js=>(Ln+=1,{...js,hotAttr:{...js.hotAttr,zIndex:Ln}}));sdkStore.updateHotItemBatch(ki),To.set(ut,{...Rn,anchorZIndex:Ln})}sdkStore.deleteHotItem(oe),sdkStore.combineMerge("basket-detach"),B({type:"entry:rebuild:screen-widget-tree"}),B({type:"entry:comment:rebuild:commentList"}),B({type:"entry:select:items",payload:{cids:vn}});const on=v.ui.fixedLayout.modals.previewModal;if(on!=null&&on.isOpen){const hn=on.basketKey;hn&&sdkStore.isTrashed(hn)&&B({type:"modal:update:state",payload:{previewModal:{isOpen:!1}}})}},"entry:finish:resize:canvas:within:basket":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,Ne.jI)(v),M=(0,Ne.bt)(v),j=(0,Ne.PR)(v);if(!I&&!M)return;const{hotAttr:Y,key:oe}=j,{w:ie,h:le}=Y,ue=Y.type===l.x.WBasket?Y==null?void 0:Y.refRBPageKey:oe,Te=sdkStore.getSubHotItemList(ue).filter(qe=>qe.hotAttr.type===l.x.Canvas),{keyRefWCToKeyTear:De,preDragSnapshot:$e}=Ed(oe);sdkStore.combineMergeMark("resize-basket");for(const{key:qe,hotAttr:{x:ut,y:Bt,w:ao,h:To}}of Te){const{x:ko,y:vn}=sdkStore.getSourceHotItem(qe).hotAttr,Hn=ao*.5,os=To*.5;ko<0-Hn?sdkStore.updateHotAttrKV(qe,"x",ut-ko-Hn):ko>ie+Hn&&sdkStore.updateHotAttrKV(qe,"x",ut-ko+ie+Hn),vn<0-os?sdkStore.updateHotAttrKV(qe,"y",Bt-vn-os):vn>le+os&&sdkStore.updateHotAttrKV(qe,"y",Bt-vn+le+os)}const Qe=Nc(De,$e);B({type:"entry:widget:change",payload:{flatChgList:Qe}}),sdkStore.combineMerge("resize-basket")},"entry:layout:basket-canvas":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I={canUpdateTear:!0}}=G;const M=B(),j=(0,Ne.jI)(M),Y=(0,Ne.bt)(M),oe=(0,Ne.PR)(M);if(!j&&!Y||!oe)return;const ie=I==null?void 0:I.canUpdateTear,{keyRefWCToKeyTear:le,preDragSnapshot:ue}=Ed(oe.key,ie);sdkStore.setPCXYConfigMap(void 0);const Te=(0,zd.fR)(oe.key);if(sdkStore.setPCXYConfigMap(Te),ie){const De=Nc(le,ue);v({type:"entry:widget:change",payload:{flatChgList:De}})}v({type:"entry:rebuild:screen-widget-tree"}),v({type:"entry:refresh:link-list"})},"entry:basket:muban:resetOwa":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,$.p$)(v);if(sdkStore.combineMergeMark("owa-reset-to-muban"),I.forEach(Y=>sdkStore.resetOwa(Y)),B({type:"entry:rebuild:screen-widget-tree"}),I.length===1){var M,j;const Y=((M=sdkStore.getHotItem(I[0]))==null||(M=M.hotAttr)==null?void 0:M.interactions.length)>0?(j=sdkStore.getHotItem(I[0]))==null||(j=j.hotAttr)==null?void 0:j.interactions.map(oe=>oe.key):"";B({type:"links:active:link",payload:{cid:Y}})}B({type:"entry:refresh:link-list"}),sdkStore.combineMerge("owa-reset-to-muban")}};var $c=e(28497),vc=e(67305),lc=e(25399),Wd=e(34637),Xl=e(19216),vd=e(40829);const $0=Z=>{const{key:G,cid:B,subKey:v,interactionType:I,interactionTrigger:M,transition:j,transitionDelay:Y,timerDuration:oe,menuOrDrawerOffset:ie,targetRBPageKey:le,targetResCanvasKey:ue,targetOverlayKey:Te,resetTargetCanvasScrollOffset:De,addBackdrop:$e,closeWhenClickingOutside:Qe,backdropColor:qe,backdropFilterBlurRadius:ut,overlayRelativePos:Bt,overlayRelativePosX:ao,overlayRelativePosY:To,transitionDuration:ko,interactionExternalUrl:vn,openIn:Hn,targetBasketKey:os,targetWidgetKey:on,scrollToOffsetX:hn,scrollToOffsetY:Rn,scrollToDir:Ln,actionType:Ms,setVisibleTransition:pi,setHiddenTransition:Ts,setVisibleTransitionDuration:Js,setHiddenTransitionDuration:ki,order:js}=Z;let ai={key:G||B,interactionType:I,interactionTrigger:M,order:js};switch(v&&(ai={...ai,subKey:v}),M==="timer"?ai={...ai,timerDuration:oe}:ai={...ai,transitionDelay:Y},I!==lc.N_.TYPE.SetVisibility&&(ai={...ai,transition:j},j!=="none"&&(ai={...ai,transitionDuration:ko},Wd.F.includes(j)&&(ai={...ai,menuOrDrawerOffset:ie}))),I){case $c.O2.LinkToCanvas:{ai={...ai,targetRBPageKey:le,targetResCanvasKey:ue,resetTargetCanvasScrollOffset:De};break}case $c.O2.OpenExternalUrl:{ai={...ai,interactionExternalUrl:vn,openIn:Hn};break}case $c.O2.SetBasketCanvas:{ai={...ai,targetBasketKey:os,targetResCanvasKey:ue};break}case $c.O2.ScrollTo:{ai={...ai,targetWidgetKey:on,scrollToOffsetX:hn,scrollToOffsetY:Rn,scrollToDir:Ln};break}case $c.O2.SetVisibility:{ai={...ai,actionType:Ms,targetWidgetKey:on},Ms!=="setVisible"&&(ai={...ai,setHiddenTransition:Ts,setHiddenTransitionDuration:ki}),Ms!=="setHidden"&&(ai={...ai,setVisibleTransition:pi,setVisibleTransitionDuration:Js});break}case $c.O2.OpenOverlay:{ai={...ai,targetRBPageKey:le,targetOverlayKey:Te,addBackdrop:$e,closeWhenClickingOutside:Qe,backdropColor:qe,backdropFilterBlurRadius:ut,overlayRelativePos:Bt,overlayRelativePosX:ao,overlayRelativePosY:To};break}case $c.O2.SwapOverlay:{ai={...ai,targetRBPageKey:le,targetOverlayKey:Te};break}}return ai},q0=function(Z,G,B){B===void 0&&(B=[]);const{interactions:v}=Z,I=(0,Fr.G$)(v),M=I.find(Qe=>Qe.key===G.key),j=$0(G),Y=(0,Xl.uw)(j);let oe=[...B];const ie=Qe=>Qe.slice(0,10);let le;M?Y?(le=I.map(Qe=>Qe.key===G.key?j:Qe),oe=oe.filter(Qe=>ie(Qe.key)!==ie(G.key))):(le=I.filter(Qe=>ie(Qe.key)!==ie(G.key)),oe=oe.filter(Qe=>Qe.key===G.key?j:Qe)):Y?(le=[...I,j],oe=oe.filter(Qe=>ie(Qe.key)!==ie(G.key))):le=[...I];for(const Qe of le){const qe=oe.findIndex(ut=>ut.key===Qe.key);qe!==-1&&oe.splice(qe,1)}const ue=(0,Fr.G$)([...le,...oe]),Te=(0,Fr.$B)(ue),De=Te.filter(Qe=>{for(const qe of le)if(qe.key===Qe.key)return!0;return!1}),$e=Te.filter(Qe=>{for(const qe of oe)if(qe.key===Qe.key)return!0;return!1});return{newInteractions:De,newLink:j,newLinkListBeingCreated:$e}},kd=(Z,G,B)=>{const{cid:v}=Z,{newInteractions:I,newLink:M,newLinkListBeingCreated:j}=q0(Z,G,B);return sdkStore.updateHotAttrKV(v,"interactions",I),{newLink:M,newLinkListBeingCreated:j}},Zp=(Z,G,B)=>{let{selectTableCellInfo:v,linkListBeingCreated:I}=B;const M=[],j={current:null};return j.current=I,Z.forEach(Y=>{if(Y.type===l.x.WTable&&v)(0,vd.SS)(Y)?Vd({item:Y,selectTableCellInfo:v,linkAttrs:G,linkListBeingCreated:I,newLinksRef:M,nextLinkListBeingCreatedRef:j}):_d({item:Y,selectTableCellInfo:v,linkAttrs:G,linkListBeingCreated:I,newLinksRef:M,nextLinkListBeingCreatedRef:j});else{const{newLink:oe,newLinkListBeingCreated:ie}=kd(Y,{...G,key:(0,ce.cF)(G.key.slice(0,10)),order:G.order?G.order:(0,Fr.yA)([...Y.interactions,...I])+1},I);M.push(oe),j.current=ie}}),{newLinks:M,nextLinkListBeingCreated:j.current}},Xp=Z=>{let{oldCellItas:G,linkAttrs:B,linkListBeingCreated:v,newLinksRef:I,nextLinkListBeingCreatedRef:M,loopCount:j,newCellItasListRef:Y}=Z,oe=v,ie=0;j===0&&(ie=(0,Fr.$B)([...G,...v]).reverse().findIndex(De=>De.key===B.key)||0,oe=v.filter(De=>De.key!==B.key));const le=$0({...B,key:(0,ce.cF)(B.key.slice(0,10)),subKey:(0,ce.cF)("ita")}),{nextItas:ue,nextLinkListBeingCreated:Te}=(0,Fr.Sw)({loopCount:j,bePastedItas:[le],oldItas:G,linkListBeingCreated:oe,insertPos:ie});return j===0&&(M.current=Te),Y.push(...ue),I.push(le),le},_d=Z=>{let{item:G,selectTableCellInfo:B,linkAttrs:v,linkListBeingCreated:I,newLinksRef:M,nextLinkListBeingCreatedRef:j}=Z;const{tableData:Y}=G,{selectionLeftTopInfo:{x:oe,y:ie},selectionRightBottomInfo:{x:le,y:ue}}=B;let Te=[...G.interactions];const De=[];let $e=0;const Qe=(0,vc._h)(Y);for(let qe=oe;qe<=le;qe++)for(let ut=ie;ut<=ue;ut++){const{oldCellItas:Bt,oldCellItaKeys:ao}=(0,Fr.Ql)({tableData:Y,interactions:G.interactions,j:ut,i:qe});for(const vn of ao)Te=Te.filter(Hn=>Hn.subKey!==vn);const To=Xp({loopCount:$e,oldCellItas:Bt,linkAttrs:v,linkListBeingCreated:I,newLinksRef:M,nextLinkListBeingCreatedRef:j,newCellItasListRef:De}),ko=Qe[ut][qe]&&Qe[ut][qe].split(",")||[];ko.push(To.subKey),Qe[ut][qe]=ko.join(","),$e+=1}Tp({oldHi:sdkStore.getHotItem(G.key),newLinkArr:Qe,newItas:[...Te,...De]})},Vd=Z=>{let{item:G,selectTableCellInfo:B,linkAttrs:v,linkListBeingCreated:I,newLinksRef:M,nextLinkListBeingCreatedRef:j}=Z;const{table:Y,cells:oe}=G,ie=JSON.parse(JSON.stringify(oe)),{selectionLeftTopInfo:{x:le,y:ue},selectionRightBottomInfo:{x:Te,y:De}}=B;let $e=[...G.interactions];const Qe=[];let qe=0;for(let ut=le;ut<=Te;ut++)for(let Bt=ue;Bt<=De;Bt++){const{oldCellItas:ao,oldCellItaKeys:To}=(0,Fr.iL)({cells:oe,table:Y,interactions:G.interactions,j:Bt,i:ut});for(const os of To)$e=$e.filter(on=>on.subKey!==os);const ko=Xp({loopCount:qe,oldCellItas:ao,linkAttrs:v,linkListBeingCreated:I,newLinksRef:M,nextLinkListBeingCreatedRef:j,newCellItasListRef:Qe}),vn=(0,vd.j)(ie,Y,Bt,ut);if(!vn)continue;const Hn=(0,Fr.gB)(vn.link).filter(Boolean)||[];Hn.push(ko.subKey),vn.link=Hn.join(","),qe+=1}Jp({oldHi:sdkStore.getHotItem(G.key),newItas:[...$e,...Qe],cells:ie})};function Qp(Z,G,B){let{selectTableCellInfo:v}=B;const I=G.key;Z.forEach(M=>{if(M.type!==l.x.RbPage)if(M.type===l.x.WTable&&v){const j=sdkStore.getHotItem(M.key);if(!j)return;const{selectionLeftTopInfo:{x:Y,y:oe},selectionRightBottomInfo:{x:ie,y:le}}=v,ue=j.hotAttr.interactions.filter(Te=>Te.key!==I);if((0,vd.SS)(j.hotAttr)){const{table:Te,cells:De}=M,$e=JSON.parse(JSON.stringify(De));for(let Qe=Y;Qe<=ie;Qe++)for(let qe=oe;qe<=le;qe++){const ut=(0,vd.j)($e,Te,qe,Qe);if(!ut)continue;const ao=((0,Fr.gB)(ut.link).filter(Boolean)||[]).filter(To=>To!==G.subKey);ut.link=ao.join(",")}Jp({oldHi:j,newItas:ue,cells:$e})}else{const Te=(0,vc._h)(M.tableData);for(let De=Y;De<=ie;De++)for(let $e=oe;$e<=le;$e++){const qe=(Te[$e][De]&&Te[$e][De].split(",")||[]).filter(ut=>ut!==G.subKey);Te[$e][De]=qe.join(",")}Tp({oldHi:j,newLinkArr:Te,newItas:ue})}}else{const j=M.interactions.filter(Y=>Y.key!==I);sdkStore.updateHotAttrKV(M.cid,"interactions",j)}})}const Tp=Z=>{let{oldHi:G,newLinkArr:B,newItas:v}=Z;const I={...G,hotAttr:{...G.hotAttr,tableData:{...G.hotAttr.tableData,links:B},interactions:v}};sdkStore.updateHotItem(I)},Jp=Z=>{let{oldHi:G,newItas:B,cells:v}=Z;const I={...G,hotAttr:{...G.hotAttr,interactions:B,cells:v}};sdkStore.updateHotItem(I)},$p={"entry:set:carousel:attr":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const{attr:M,value:j}=I,Y=B(),oe=(0,$.Z9)(Y);if(!(oe!=null&&oe.length))return;const ie=oe.map(le=>({key:le.key,hotAttr:{carousel:{...le.carousel,[M]:j}}}));v({type:"entry:widget:change",payload:{flatChgList:ie}})},"entry:undoable:destroy:carousel:link":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const{link_cid:M,carouselImageIndex:j}=I,Y=B(),oe=(0,$.Z9)(Y)[0],ie=oe.carousel;ie.slides[j].linkCids="",v({type:"entry:widget:change",payload:{flatChgList:[{key:oe.key,hotAttr:{carousel:ie,interactions:oe.interactions.filter(le=>le.key!==M)}}]}})},"entry:undoable:save:carousel:link":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const{link:M,carouselImageIndex:j}=I,Y=B(),oe=(0,$.Z9)(Y)[0],ie=ps()(oe.carousel);ie.slides[j].linkCids=M.subKey;const{newInteractions:le}=q0(oe,M);v({type:"entry:widget:change",payload:{flatChgList:[{key:oe.key,hotAttr:{carousel:ie,interactions:le}}],shouldReBuildTree:!0}})},"entry:replace:carousel:image":(Z,G)=>{var B,v;let{getState:I,dispatch:M}=Z,{payload:j}=G;const{image:Y,resetSelectIndex:oe=!0,carouselImageIndex:ie,carousel:le}=j,ue=I(),Te=le!=null?le:(0,$.Z9)(ue)[0],De=(B=ie!=null?ie:(0,r0.Yg)(ue))!=null?B:0;if((Te==null?void 0:Te.type)!==l.x.WCarousel)return;const $e=JSON.parse(JSON.stringify(Te==null||(v=Te.carousel)==null?void 0:v.slides));$e!==void 0&&($e[De].asset=(0,J.q4)("Carousel",Y).key,$e[De].fillType="fill",M({type:"entry:set:carousel:attr",payload:{attr:"slides",value:$e}}),oe&&M({type:"setting:select:carousel:image",payload:{selectCarouselImageIndex:null}}))},"entry:carousel:image:displayIndex:update":(Z,G)=>{let{dispatch:B}=Z,{payload:v}=G;B({type:"entry:set:carousel:attr",payload:{attr:"displayIndex",value:v}})}};var ep=e(39541),qp=e(54635);const eh={"entry:set:chart:series:color:attr":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{attr:I,color:M}}=G;const j=B(),Y=(0,$.Z9)(j);if(!(Y.length>0))return;const ie=Y.map(le=>{const{key:ue,chartData:Te}=le,De=(0,qp.xH)(I),$e=ps()(Te.series);$e[De].color=M;const Qe={...Te,series:$e};return{key:ue,hotAttr:{chartData:Qe}}});v({type:"entry:widget:change",payload:{flatChgList:ie}})},"entry:set:chart:mapSolidColor":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{color:I}}=G;const M=B(),j=(0,$.Z9)(M);if(!(j.length>0))return;const oe=j.map(ie=>{const{key:le,chartConfig:ue}=ie,Te={...ue,mapSolidColor:I};return{key:le,hotAttr:{chartConfig:Te}}});v({type:"entry:widget:change",payload:{flatChgList:oe}})},"entry:set:chart:chartData:attr":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{attr:I,value:M}}=G;const j=B(),Y=(0,$.Z9)(j);if(!(Y.length>0))return;const ie=Y.map(le=>{const{key:ue,chartData:Te}=le,De={...Te,[I]:M};return{key:ue,hotAttr:{chartData:De}}});v({type:"entry:widget:change",payload:{flatChgList:ie}})},"entry:chart:in:edit":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{widget:I}}=G;if(v({type:"entry:select:items",payload:{cids:[I.cid]}}),v({type:"mode:update:state",payload:{isEditChartDataCid:I.cid}}),![ep.N.progress_chart,ep.N.gauge_chart].includes(I.chartConfig.chartType)){const M=B().ui.fixedLayout.modals.chartTableSettingModal;MB.f.editing=!M.isOpen,v({type:"modal:update:state",payload:{chartTableSettingModal:{isOpen:!M.isOpen}}})}},"entry:chart:out:edit":Z=>{let{dispatch:G}=Z;MB.f.editing=!1,G({type:"modal:update:state",payload:{chartTableSettingModal:{isOpen:!1}}}),G({type:"mode:update:state",payload:{isEditChartDataCid:""}})}};var th=e(91463),Lc=e(63552),qc=e(47946),ed=e(39719),Pd=e(5585),oh=e(75221),Ep=e(88031),Eh=e(96828),p0=e(89345);const kh={"entry:toggle:paste:direct:by:contextmenu":async Z=>{let{getState:G,dispatch:B}=Z;const v=await(0,Vl.LD)({isShowPrompt:!0});await(0,_l.$H)({hasNotice:!1})?v&&(v.data?B({type:"entry:paste:items:into:current-page",payload:{triggerType:"contextmenu",hasPrompt:!0}}):B({type:"entry:paste:text:create",payload:{content:v.html}})):B({type:"entry:prepare:paste:by:contextmenu",payload:{}})},"entry:copy:items":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const{needPasteProperties:M}=I||{},j=B(),Y=(0,$.Z9)(j);if(Y.length>0){var oe;const ie=Y.sort((0,Pl.tU)()).map($e=>$e.key),le=Y.some($e=>{var Qe;return((Qe=$e.hotAttr)==null?void 0:Qe.type)===ze.Z6.canvas}),ue=(0,_r.dk)(ie),Te=ue?sdkStore.getHotItem(ue).hotAttr.type===ze.Z6.canvas:!1,De=sdkStore.saveSubtree(ie,Te?{x:sdkStore.getHotAABB(ue)[0],y:sdkStore.getHotAABB(ue)[1]}:0);await(0,Vl.NO)({data:De,commonKeyRndSup:ue,isIncludeCanvas:le,isUnderSameCanvas:Te,currentProjectCid:(oe=(0,o.PL)(j))==null?void 0:oe.cid}),v({type:"entry:update:toolbar"})}M&&v({type:"entry:copy:items:properties"})},"entry:duplicate:items":(Z,G)=>{let{dispatch:B}=Z,{payload:{shift:v}}=G;B({type:"entry:copy:items"}),B(v?{type:"entry:paste:items:at",payload:{clientPos:{clientX:MB.clientX,clientY:MB.clientY}}}:{type:"entry:paste:items:into:current-page",payload:{triggerType:"shortcut"}})},"entry:prepare:paste:by:shortcut":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{e:I}}=G;const M=B(),j=(0,We.aJ)(M);if(document.querySelector("input:focus, textarea:focus, .widget div[contenteditable]:focus, .setting-drag-menu-container div[contenteditable]:focus, .annotateEditorItem div[contenteditable]:focus")||MB.f.isEditTable)return;if(MB.f.editing&&!j){I.preventDefault(),jt(I);return}let{pasteType:Y,pasteTypeList:oe}=await Dc(I);if(oe.length>2&&Y==="FILES"&&(Y=oe[1]),Y==="FILES"&&((0,sa.H8)()||(0,sa.gm)()))v({type:"entry:paste:images:by:shortcut",payload:{e:I}});else if(Y==="TEXT"||Y==="HTML"){const ie=I.clipboardData.getData("text/html"),le=I.clipboardData.getData("text/plain");await(0,_l.$H)({hasNotice:!1})?v({type:"entry:paste:text:by:shortcut",payload:{e:I,pasteType:Y,html:ie,plainText:le}}):await(0,_l.EU)("widget")?v({type:"entry:paste:items:into:current-page",payload:{triggerType:"shortcut"}}):v({type:"entry:paste:text:by:shortcut",payload:{e:I,pasteType:Y,html:ie,plainText:le}})}else if(Y==="WIDGET")if(I.preventDefault(),await(0,_l.$H)({hasNotice:!1})){const ie=(0,Vl.bC)();if(!ie||typeof ie!="object")return;ie.data?v({type:"entry:paste:items:into:current-page",payload:{triggerType:"shortcut"}}):v({type:"entry:paste:text:create",payload:{e:I,content:ie.html}})}else if(await(0,_l.EU)("widget"))v({type:"entry:paste:items:into:current-page",payload:{triggerType:"shortcut"}});else{const ie=await(0,_l.oV)({itemType:"text/html"});v({type:"entry:paste:text:create",payload:{e:I,content:ie}})}else Y==="WIDGET_V7"&&MB.notice({text:"\u6682\u4E0D\u652F\u6301\u7C98\u8D34\u65E7\u7248\u5143\u7D20\uFF0C\u53EF\u901A\u8FC7\u521B\u5EFA\u65B0\u7248\u526F\u672C\u8FC1\u79FB\u6570\u636E\u3002 ",duration:5e3,showClose:!1,CustomChildComponent:(0,ed.At)(I18N.CommonGuides.version_guide_learn_more)})},"entry:prepare:paste:by:contextmenu":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{cursorPos:I}}=G;const M=B();let j;if(I){const Y=(0,o.Ur)(M).cid,oe=(0,o.X_)(M),ie=(0,o.ER)(M),le=(0,o.$S)(M),ue=(0,mt.mG)(I,{scale:oe,offset:ie,viewportRect:le}),Te={x:Math.round(ue.x),y:Math.round(ue.y)},De=(0,C.Tg)(Te,Y)||Y;j={worldPos:ue,keyRndSup:De}}if(await(0,_l.$H)({hasNotice:!1})){const Y=await(0,Vl.LD)({isShowPrompt:!1});Y&&(Y.data?v({type:"entry:paste:items:at",payload:{clientPos:I}}):v({type:"entry:paste:text:create",payload:{content:Y.html,pasteAtData:j}}))}else await(0,_l.oV)({itemType:"image/png"})&&(!await(0,_l.oV)({itemType:"text/plain"})||!await(0,_l.oV)({itemType:"text/html"}))?v({type:"entry:paste:images:by:clipboard",payload:{pasteAtData:j}}):await(0,_l.oV)({itemType:"text/html"})?await(0,_l.EU)("widget")?v(I?{type:"entry:paste:items:at",payload:{clientPos:I}}:{type:"entry:paste:items:into:current-page",payload:{triggerType:"contextmenu"}}):v({type:"entry:paste:text:by:clibpoard",payload:{type:"html",pasteAtData:j}}):await(0,_l.oV)({itemType:"text/plain"})&&v({type:"entry:paste:text:by:clibpoard",payload:{type:"plain",pasteAtData:j}})},"entry:paste:items:into:current-page":async(Z,G)=>{var B;let{getState:v,dispatch:I}=Z,{payload:{triggerType:M,hasPrompt:j}}=G;if(document.querySelector("input:focus, textarea:focus")||!await(0,Vl.LD)({isShowPrompt:!1}))return;const oe=v(),ie=(0,We.ul)(oe),le=(0,Ne.jI)(oe),ue=(0,Ne.bt)(oe),{isEditingCombo:Te}=(0,Tt.r)(oe),De=(0,o.Ur)(oe).cid,$e=(0,o.X_)(oe),Qe=(0,o.ER)(oe),qe=(0,o.$S)(oe),ut=await(0,Vl.LD)({isShowPrompt:!j&&M==="contextmenu"});if(!ut)return;const{data:Bt,commonKeyRndSup:ao,isIncludeCanvas:To,isUnderSameCanvas:ko,currentProjectCid:vn}=ut;if(ie.length>0){const{contentFlatTree:js}=sdkStore.parseSubtree(Bt);if(js.get("B@main").sub.every(ai=>js.get(ai).attr.T===th.H2)){sdkStore.combineMergeMark("paste-mind-nodes");const ai=[];ie.forEach(qi=>{const or=sdkStore.loadSubtree(Bt,"B@main"),Yi=sdkStore.getSubHotItemList(qi).reduce((nr,zi)=>Math.max(nr,zi.hotAttr.order),0),{placement:Hr,expand:Wa}=sdkStore.getHotItem(qi).hotAttr;Wa||sdkStore.updateHotAttrKV(qi,"expand",!0),or.forEach((nr,zi)=>{const[ca]=sdkStore.getHotItem(sdkStore.getHotItem(nr).hotAttr.refContentKey).sub;sdkStore.moveHotItem(ca,qi),sdkStore.updateHotAttrMerge(ca,{isRoot:!1,order:Yi+zi+1}),sdkStore.walkHotItemSubtree(ca,Ua=>{sdkStore.updateHotAttrKV(Ua.key,"placement",Hr)}),sdkStore.deleteHotItem(nr),ai.push(ca)})}),(0,oh.h)("\u589E\u52A0\u8282\u70B9"),I({type:"entry:rebuild:screen-widget-tree"}),I({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:ai}}),I({type:"entry:mind:update:mind-size"}),sdkStore.combineMerge("paste-mind-nodes");return}else I({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:[]}}),I({type:"mind:update:state",payload:{editMindKey:""}})}if((Te||le||ue)&&To){MB.notice({text:I18N.SettingPanel.design.widgets_cannot_paste_artboard,type:"warning",duration:3500});return}if(!Bt)return;const{contentFlatTree:Hn,hotXY:os,hotAABB:on}=sdkStore.parseSubtree(Bt),hn=Hn,Rn=os,Ln=on;if(ue&&hn.get("B@ref-muban").sub.includes(ue)){MB.notice({text:I18N.SettingPanel.design.master_cannot_nesting,type:"warning"});return}if(Te&&hn.get("B@ref-muban").sub.length>0){MB.notice({text:I18N.SettingPanel.design.widgets_cannot_paste_master,type:"warning"});return}const Ms=(0,$.p$)(oe),pi=sdkStore.getHotKeyListAABB(Ms),Ts={scale:$e/100,size:{w:qe.width,h:qe.height},offset:Qe},Js=(0,_r.Dl)(Ts,qe.left);if(To)if(Ms.length>0){let js=pi[2],ai=(0,_r.Q5)(js,De);for(;;){if(!ai||ai[0]>js+Ln[2]-Ln[0]+50){const qi={x:js+50,y:pi[1]};I({type:"entry:paste:items",payload:{data:Bt,worldPos:qi,keyRndSup:De,commonKeyRndSup:ao}});break}js=ai[2],ai=(0,_r.Q5)(js,De)}}else if(sdkStore.getHotItem(De).sub.length){let js=ao===De?Ln[2]:-1/0,ai=(0,_r.Q5)(js,De);for(js===-1/0&&(ai?js=ai[2]:js=Js.x-(Ln[2]-Ln[0])/2);;){if(!ai||ai[0]>js+Ln[2]-Ln[0]+50){const qi={x:js+50,y:Ln[1]};I({type:"entry:paste:items",payload:{data:Bt,worldPos:qi,keyRndSup:De,commonKeyRndSup:ao}});break}js=ai[2],ai=(0,_r.Q5)(js,De)}}else{const js={x:Js.x-(Ln[2]-Ln[0])/2,y:Js.y-(Ln[3]-Ln[1])/2};I({type:"entry:paste:items",payload:{data:Bt,worldPos:js,keyRndSup:De,commonKeyRndSup:ao}})}else if(ko)if(Ms.length>0)if(Ms.every(js=>sdkStore.getHotItem(js).hotAttr.type===ze.Z6.canvas)){const js=Ms.map(ai=>{const qi=sdkStore.getHotAABB(ai),{x:or,y:Yi}=sdkStore.getHotBound(ai),[Hr,Wa]=qi,nr=[Hr-Rn.x+Ln[0],Wa-Rn.y+Ln[1],Hr-Rn.x+Ln[2],Wa-Rn.y+Ln[3]];return{worldPos:(0,kt.cj)(qi,nr)?{x:nr[0],y:nr[1]}:{x:or-(Ln[2]-Ln[0])/2,y:Yi-(Ln[3]-Ln[1])/2},keyRndSup:ai}});I({type:"entry:batch:paste:items",payload:{data:Bt,worldPosKeyRndSupList:js,commonKeyRndSup:ao}})}else{const js={x:pi[0],y:pi[3]},ai=(0,_r.dk)(Ms)||De;I({type:"entry:paste:items",payload:{data:Bt,worldPos:js,keyRndSup:ai,commonKeyRndSup:ao}})}else{const js=(0,_r.Zb)(Ts,qe.left,Ln)&&sdkStore.getSubHotItemList(De).find(qi=>qi.key===ao)?{x:Math.ceil(Ln[0]),y:Math.ceil(Ln[1])}:{x:Math.ceil(Js.x-(Ln[2]-Ln[0])/2),y:Math.ceil(Js.y-(Ln[3]-Ln[1])/2)},ai=(0,C.Tg)({x:js.x+.5*(Ln[2]-Ln[0]),y:js.y+.5*(Ln[3]-Ln[1])},De)||De;I({type:"entry:paste:items",payload:{data:Bt,worldPos:js,keyRndSup:ai,commonKeyRndSup:ao}})}else if(Ms.length>0)if(Ms.every(js=>sdkStore.getHotItem(js).hotAttr.type===ze.Z6.canvas)){const js=Ms.map(ai=>{const{x:qi,y:or}=sdkStore.getHotBound(ai);return{worldPos:{x:qi-(Ln[2]-Ln[0])/2,y:or-(Ln[3]-Ln[1])/2},keyRndSup:ai}});I({type:"entry:batch:paste:items",payload:{data:Bt,worldPosKeyRndSupList:js,commonKeyRndSup:ao}})}else{const js={x:pi[0],y:pi[3]},ai=(0,_r.dk)(Ms)||De;I({type:"entry:paste:items",payload:{data:Bt,worldPos:js,keyRndSup:ai,commonKeyRndSup:ao}})}else{const js=(0,_r.Zb)(Ts,qe.left,Ln)&&ao===De?{x:Ln[0],y:Ln[1]}:{x:Js.x-(Ln[2]-Ln[0])/2,y:Js.y-(Ln[3]-Ln[1])/2},ai=(0,C.Tg)({x:js.x+.5*(Ln[2]-Ln[0]),y:js.y+.5*(Ln[3]-Ln[1])},De)||De;I({type:"entry:paste:items",payload:{data:Bt,worldPos:js,keyRndSup:ai,commonKeyRndSup:ao}})}const ki=(0,E.OW)(oe);vn!==((B=(0,o.PL)(oe))==null?void 0:B.cid)&&ki===So.lS.Template&&I({type:"muban-panel:update:mubanList",payload:{mubanList:(0,Ys.AG)()}})},"entry:paste:items:at":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{clientPos:I,hasPrompt:M}}=G;if(!await(0,Vl.LD)({isShowPrompt:!1})||!v({type:"entry:pre:paste:items"}))return;const Y=B(),oe=(0,Ne.jI)(Y),ie=(0,Ne.bt)(Y),{isEditingCombo:le}=(0,Tt.r)(Y),ue=(0,o.Ur)(Y).cid,Te=(0,o.X_)(Y),De=(0,o.ER)(Y),$e=(0,o.$S)(Y),Qe=await(0,Vl.LD)({isShowPrompt:!M});if(!Qe)return;const{data:qe,isIncludeCanvas:ut,commonKeyRndSup:Bt}=Qe;if((le||oe||ie)&&ut){MB.notice({text:I18N.SettingPanel.design.widgets_cannot_paste_artboard,type:"warning",duration:3500});return}const ao=(0,mt.mG)(I,{scale:Te,offset:De,viewportRect:$e}),To={x:Math.round(ao.x),y:Math.round(ao.y)},ko=ut?ue:(0,C.Tg)(To,ue)||ue;v({type:"entry:paste:items",payload:{data:qe,worldPos:To,keyRndSup:ko,commonKeyRndSup:Bt}})},"entry:batch:paste:items":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{data:I,worldPosKeyRndSupList:M,commonKeyRndSup:j}}=G;const Y=B(),oe=(0,o.PL)(Y),ie=(0,o.X_)(Y),le=(0,o.ER)(Y),ue=(0,o.$S)(Y),Te=(0,o.eo)(Y),De=(0,$.p$)(Y),$e={scale:ie/100,size:{w:ue.width,h:ue.height},offset:le},Qe=(0,_r.Dl)($e,ue.left);sdkStore.combineMergeMark("paste-items");const qe=M.reduce((To,ko)=>{const{worldPos:vn,keyRndSup:Hn}=ko,os=(0,_.Dd)(I,vn,Te,De,j);return[...To,...os]},[]);(0,_r.F6)(qe),(0,Si.WV)(qe),(0,_r.gs)(Te,qe),sdkStore.combineMerge("paste-items");const ut=sdkStore.getHotKeyListAABB(qe);if(!(0,_r.Zb)($e,ue.left,ut)){const To=(Qe.x-(ut[0]+(ut[2]-ut[0])/2))*ie/100;v({type:"design:set:canvas:offset",payload:{offset:{x:le.x+To,y:le.y}}})}v({type:"entry:rebuild:screen-widget-tree"});let Bt=!1;if(qe.forEach(To=>{sdkStore.getHotItem(To).hotAttr.type===l.x.WMind&&(Bt=!0,v({type:"entry:mind:update:mind-size",payload:{keyMindToUpdateSize:To,resizeOrigin:"tl"}}))}),Bt&&(0,bl.gJ)("\u7C98\u8D34\u521B\u5EFA"),v({type:"entry:rebuild:screen-widget-tree"}),v({type:"entry:refresh:link-list"}),v({type:go.y.entryKey["font:cloudFontExtList:refresh"]}),v({type:"entry:clear:selection"}),v({type:"entry:select:items",payload:{cids:qe}}),v({type:"entry:layout:basket-canvas"}),qe&&qe.length===1){var ao;const To=(ao=sdkStore.getHotItem(qe[0]))==null?void 0:ao.hotAttr;(0,bl.lF)(To,oe)}},"entry:paste:items":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{data:I,worldPos:M,keyRndSup:j,commonKeyRndSup:Y,isPaste:oe=!0}}=G;const ie=B(),le=(0,o.PL)(ie),ue=(0,o.X_)(ie),Te=(0,o.ER)(ie),De=(0,o.$S)(ie),$e=(0,o.eo)(ie),Qe=(0,$.p$)(ie),qe=(0,Ne.bt)(ie),{isEditingCombo:ut}=(0,Tt.r)(ie),Bt={scale:ue/100,size:{w:De.width,h:De.height},offset:Te},ao=(0,_r.Dl)(Bt,De.left);if(!(0,Fn.z5)(I,M))return;const{contentFlatTree:To}=sdkStore.parseSubtree(I);if(To&&qe&&To.get("B@ref-muban").sub.includes(qe)){MB.notice({text:I18N.SettingPanel.design.master_cannot_nesting,type:"warning"});return}if(ut){if(To.get("B@ref-muban").sub.length>0){MB.notice({text:I18N.SettingPanel.design.widgets_cannot_paste_master,type:"warning"});return}if(Dt(I,M)){MB.notice({text:"\u6211\u7684\u7EC4\u4EF6/\u4F01\u4E1A\u7EC4\u4EF6\u4E2D\u4E0D\u5141\u8BB8\u7C98\u8D34 AI \u7EC4\u4EF6",type:"warning"});return}}sdkStore.combineMergeMark("paste-item-single");const ko=(0,_.Dd)(I,M,$e,Qe,Y);(0,_r.F6)(ko),(0,Si.WV)(ko),(0,_r.gs)($e,ko);const vn=sdkStore.getHotKeyListAABB(ko);if(!(0,_r.Zb)(Bt,De.left,vn)){const on=(ao.x-(vn[0]+(vn[2]-vn[0])/2))*ue/100;v({type:"design:set:canvas:offset",payload:{offset:{x:Te.x+on,y:Te.y}}})}v({type:"entry:rebuild:screen-widget-tree"});let Hn=!1;if(ko.forEach(on=>{sdkStore.getHotItem(on).hotAttr.type===l.x.WMind&&(Hn=!0,v({type:"entry:mind:update:mind-size",payload:{keyMindToUpdateSize:on,resizeOrigin:"tl"}}))}),sdkStore.combineMerge("paste-item-single"),Hn&&oe&&(0,bl.gJ)("\u7C98\u8D34\u521B\u5EFA"),v({type:"entry:refresh:link-list"}),v({type:go.y.entryKey["font:cloudFontExtList:refresh"]}),v({type:"entry:clear:selection"}),v({type:"entry:select:items",payload:{cids:ko}}),v({type:"entry:publish:create:items:success",payload:{newKeys:ko}}),v({type:"entry:layout:basket-canvas"}),ko&&ko.length===1){var os;const on=(os=sdkStore.getHotItem(ko[0]))==null?void 0:os.hotAttr;(on==null?void 0:on.type)===l.x.Canvas?(0,d0.mB)({page:on}):(0,bl.lF)(on,le)}},"entry:paste:images:by:clipboard":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{pasteAtData:I}}=G;const M=B(),{isExperience:j,isLoggedExperience:Y}=(0,o.W4)(M);if(j||Y){MB.notice({text:I18N.LibraryContainer.un_save_tips});return}const oe=await navigator.clipboard.read(),ie=[];for(const le of oe){if(!le.types.includes("image/png"))continue;const ue=await le.getType("image/png");ie.push(ue)}ie.length!==0&&v({type:"entry:paste:images:command",payload:{files:ie,pasteAtData:I}})},"entry:paste:images:by:shortcut":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{e:I}}=G;const M=B(),{isExperience:j,isLoggedExperience:Y}=(0,o.W4)(M);if(j||Y){MB.notice({text:I18N.LibraryContainer.un_save_tips});return}const oe=Array.from(I.clipboardData.items).filter(ie=>ie.type.match(/^image\//)).map(ie=>ie.getAsFile()).filter(ie=>ie);oe.length!==0&&v({type:"entry:paste:images:command",payload:{files:oe,givinPosition:void 0}})},"entry:paste:images:command":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{files:I,pasteAtData:M}}=G;const j=B(),Y=(0,o.Ur)(j),oe=(0,o.PL)(j),ie=(0,o.HW)(j),le=(0,o.wA)(j),ue=(0,We.ul)(j),{isExperience:Te,isLoggedExperience:De}=(0,o.W4)(j);if(Te||De){MB.notice({text:I18N.LibraryContainer.un_save_tips});return}(0,Ao.i3)({files:I,rootProject:oe,isCreate:ue.length!==1,callback:$e=>{if(ue.length===1)v({type:"entry:mind:insert:asset",payload:{asset:$e}});else{const Qe=$e.type===l.x.WIcon?(0,J.kk)($e):(0,J.BL)($e);M?(Qe.x=M.worldPos.x,Qe.y=M.worldPos.y,v({type:"entry:batch:create:items",payload:{data:[{items:[Qe],width:Qe.width,height:Qe.height}],offset:{top:0,left:0},sup:M.keyRndSup}})):v({type:"entry:batch:create:items",payload:{data:[{items:[Qe],width:Qe.width,height:Qe.height}]}})}}},ie,le)},"entry:cut:items":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,$.p$)(v),M=I.filter(j=>!(0,gt.OO)(j));if((0,Jt.td)(I)){MB.notice({text:"\u5B9E\u4F8B\u5185\u56FE\u5C42\u4E0D\u652F\u6301\u526A\u5207/\u5220\u9664",type:"warning"});return}M.length!==0&&(B({type:"entry:copy:items"}),B({type:"entry:delete:selected-items"}))},"entry:copy:items:properties":Z=>{let{getState:G}=Z;const B=G(),v=(0,$.Z9)(B);if((0,Jt.pH)(v)){const I=(0,Lc.g)(B);(0,p0.vz)(I)}},"entry:paste:items:properties":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const M=B(),j=(0,$.Z9)(M),Y=(0,zn.zX)(M),oe=(0,We.fo)(M),ie=go.y.query.getMissFontHiKeySet(M),{canPaste:le,trees:ue}=await(0,Vl.FR)(j);if(le){const Te=await(0,p0.hS)(ue,Y,oe,ie);Te!=null&&Te.length&&(v({type:"entry:widget:change",payload:{flatChgList:Te}}),(0,Hs.Xq)(Te.map(De=>(0,bt.Op)(De.key))))}(0,Si.WV)()},"entry:delete:selected-items":Z=>{let{getState:G,dispatch:B}=Z;const v=G();if((0,Jt.td)((0,$.p$)(v))){MB.notice({text:"\u5B9E\u4F8B\u5185\u56FE\u5C42\u4E0D\u652F\u6301\u526A\u5207/\u5220\u9664",type:"warning"});return}const I=(0,o.eo)(v),M=(0,_r.Ar)((0,$.p$)(v).filter(Te=>!(0,gt.OO)(Te))),j=(0,Ne.jI)(v),Y=(0,Ne.bt)(v),oe=v.ui.fixedLayout.modals.previewModal;if(B({type:"entry:clear:selection"}),sdkStore.combineMergeMark("delete-items"),j||Y){var ie,le,ue;const Te=j?(ie=sdkStore.getHotItem(j))==null||(ie=ie.hotAttr)==null?void 0:ie.refRBPageKey:Y,De=j?(le=sdkStore.getHotItem(j))==null||(le=le.hotAttr)==null?void 0:le.refContentKey:(ue=sdkStore.getHotItem(Y))==null||(ue=ue.hotAttr)==null?void 0:ue.defaultCanvasKey,Qe=sdkStore.findAllTypeUnder(Te,l.x.Canvas).map(qe=>qe.key).every(qe=>M.includes(qe))?M.filter(qe=>qe!==De):M;B({type:"entry:basket:delete",payload:{removeList:Qe}})}else sdkStore.deleteHotItemBatch(M);if((0,_r.hf)(M,I,B),(0,_r.gs)(I,[]),(0,Si.WV)(),B({type:"entry:refresh:canvas:order",payload:{newSelection:M,combineMergeUndo:"delete-items"}}),B({type:"entry:widget:delete",payload:{keys:M,shouldBreakLayerUICache:!0,shouldRefreshLinkList:!0,shouldBreakCanvasUICache:!0}}),B({type:"elbow:update",payload:{isShowWidgetPopup:!1}}),B({type:"entry:findReplacePanel:remove:findSelectWidgetCid",payload:{selections:M}}),oe!=null&&oe.isOpen){const Te=M.map(De=>{const $e=sdkStore.getHotItem(De);return $e.hotAttr.type===l.x.WBasket?$e:null}).filter(Boolean);Te!=null&&Te.length&&Te.some($e=>$e.key===oe.basketKey)&&B({type:"modal:update:state",payload:{previewModal:{isOpen:!1}}})}},"entry:refresh:canvas:order":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I={newSelection:[],combineMergeUndo:null}}=G;const M=B(),j=(0,o.Ur)(M),{combineMergeUndo:Y,newSelection:oe}=I||{};if(!j)return;sdkStore.getSubHotItemList(j.cid).filter(le=>{var ue;return((ue=le.hotAttr)==null?void 0:ue.type)===l.x.Canvas&&!oe.includes(le.key)}).sort((le,ue)=>ue.hotAttr.zIndex-le.hotAttr.zIndex).sort((le,ue)=>{var Te,De;return((Te=le.hotAttr)==null?void 0:Te.order)-((De=ue.hotAttr)==null?void 0:De.order)}).forEach((le,ue)=>{const{key:Te,hotAttr:{order:De}}=le;De!==ue+1&&sdkStore.updateHotAttrKV(Te,"order",ue+1)}),Y&&sdkStore.combineMerge(Y)},"entry:copy:interaction":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{isCanvasLayerItemContext:I}}=G;const M=B(),j=(0,$.p$)(M),Y=(0,m.UV)(M),oe=(0,Ne.jI)(M),{isEditingCombo:ie}=(0,Tt.r)(M);if(j.length!==1)return;const le=sdkStore.getHotItem(j[0]);if(le.hotAttr.interactions.length===0)return;let ue=(0,Xl.Xr)(Y.sdkStore,j[0],ie,oe);if(I){const $e=(0,Fr.G$)(sdkStore.getInteractionsOf(le.key)).reduce((Qe,qe)=>{if(qe.subKey)return Qe;const ut=le.hotAttr.interactions.find(Bt=>Bt.key===qe.key);return ut?Qe.concat([{...qe,data:{...ut,triggerItemKey:le.key}}]):Qe},[]);ue=(0,Xl.e5)(sdkStore,$e,le.key,"non-combo")}const Te=(0,Fr.mV)(le.hotAttr.type,ue),De=(0,Fr.QP)({oldInteractions:Te});(0,Vl.Ro)(De)},"entry:copy:interaction:select":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{selectInteraction:I}}=G;const M=(0,Fr.QP)({oldInteractions:[I]});(0,Vl.Ro)(M)},"entry:paste:interaction":async(Z,G)=>{var B;let{getState:v,dispatch:I}=Z,{payload:M}=G;const j=v(),Y=(0,$.p$)(j),{isEditingBasket:oe}=(0,Tt.r)(j),ie=(0,$.Z9)(j),le=(0,zn.zX)(j),ue=(0,m.Mm)(j),Te=ie.length===1&&((B=ie[0].hotAttr)==null?void 0:B.type)===l.x.WTable&&le,De=(0,Ne.jI)(j),$e=await(0,Vl.Di)({isShowPrompt:!0});if(Te)I({type:"entry:table:paste:cell:interaction",payload:M});else{const Qe=[];let qe=0,ut,Bt;for(const ao of Y){const To=sdkStore.getHotItem(ao);if(Bt=To.hotAttr.type,Fr.eX.includes(To.hotAttr.type))continue;const ko=To.hotAttr.interactions,vn=(0,Fr.gu)({clipboardItas:$e,editingBasketKey:De,isEditingBasket:oe,hasSubKey:!1}),{nextItas:Hn,nextLinkListBeingCreated:os}=(0,Fr.Sw)({loopCount:qe,oldItas:ko,bePastedItas:vn,linkListBeingCreated:ue,insertPos:M.insertPos});qe===0&&(ut=os);const on={key:To.key,hotAttr:{interactions:Hn}};Qe.push(on),qe+=1}I({type:"linklist_beingcreated:update:state",payload:{linkListBeingCreated:ut}}),I({type:"links:active:link",payload:{cid:(0,Fr.mV)(Bt,Qe[0].hotAttr.interactions).map(ao=>ao.key)}}),I({type:"entry:widget:change",payload:{flatChgList:Qe,shouldReBuildTree:!0}}),I({type:"entry:refresh:link-list"})}},"entry:paste:text:by:shortcut":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{e:I,pasteType:M,html:j,plainText:Y}}=G;(0,Fn._c)({type:l.x.WImage})&&v(M==="HTML"?{type:"entry:paste:text:create",payload:{e:I,content:j}}:{type:"entry:paste:text:resolve:plain",payload:{e:I,content:Y}})},"entry:paste:text:by:clibpoard":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{type:I,pasteAtData:M}}=G;if((0,Fn._c)({type:l.x.WImage}))if(I==="plain"){const j=await(0,_l.oV)({itemType:"text/plain"});v({type:"entry:paste:text:resolve:plain",payload:{pasteAtData:M,content:j}})}else{const j=await(0,_l.oV)({itemType:"text/html"});v({type:"entry:paste:text:create",payload:{content:j,pasteAtData:M}})}},"entry:paste:text:resolve:plain":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{e:I,content:M,pasteAtData:j}}=G;const Y=M.replace(qc.Qt,"");if(qc.Bq.test(Y))I==null||I.preventDefault(),v({type:"entry:paste:svg",payload:{pastedPlainText:Y,pasteAtData:j}});else if(Ge(M)==="TEXT"){const ie=M.split("\n").map(le=>"<p>"+le+"</p>").join("");v({type:"entry:paste:text:create",payload:{e:I,content:ie,pasteAtData:j}})}},"entry:paste:text:create":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{e:I,content:M,pasteAtData:j}}=G;const Y=B(),oe=(0,We.ul)(Y);if(M)if(oe.length>0){I==null||I.preventDefault();const ie=(0,pn.Ld)({html:M,isClearStyle:!0});let le="";for(const ue of Object.values(ie.blocks))le+=ue.text;v({type:"entry:mind:add:node-mind",payload:{defaultText:le,type:Pd.eB.CHILD_LEVEL}})}else v({type:"entry:paste:text:from:clipboard",payload:{html:M,pasteAtData:j}})},"entry:paste:svg":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{pastedPlainText:I,pasteAtData:M}}=G;const j=B(),Y=(0,o.PL)(j),oe=(0,o.HW)(j),ie=(0,o.wA)(j),le=new Blob([I],{type:"image/svg+xml"}),ue=new File([le],I18N.w.svg_icon_button+".svg",{type:"image/svg+xml"});/<image/.test(I)?(0,Ao._E)({imageFiles:[ue],svgFilesCount:0,allCount:1,rootProject:Y,callback:async Te=>{const De=(0,J.BL)(Te);await v({type:"entry:batch:create:items",payload:{data:[{items:[De],width:De.width,height:De.height}]}})}},!1,oe,ie):(0,Ao.pD)({svgFiles:[ue],rootProject:Y,allCount:1,callback:async Te=>{const De={...(0,J.kk)(Te),x:0,y:0};M?(De.x=M.worldPos.x,De.y=M.worldPos.y,await v({type:"entry:batch:create:items",payload:{data:[{items:[De],width:De.width||De.w,height:De.height||De.h}],offset:{top:0,left:0},sup:M.keyRndSup}})):await v({type:"entry:batch:create:items",payload:{data:[{items:[De],width:De.width||De.w,height:De.height||De.h}]}})}},oe,ie)},"entry:copy:canvas":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,$.Z9)(v).filter(j=>j.type===l.x.Canvas);if(I.length>0){var M;const j=I.map(ue=>ue.key),Y=I.some(ue=>{var Te;return((Te=ue.hotAttr)==null?void 0:Te.type)===ze.Z6.canvas}),oe=(0,_r.dk)(j),ie=oe?sdkStore.getHotItem(oe).hotAttr.type===ze.Z6.canvas:!1,le=sdkStore.saveSubtree(j,ie?{x:sdkStore.getHotAABB(oe)[0],y:sdkStore.getHotAABB(oe)[1]}:0);(0,Vl.NO)({data:le,commonKeyRndSup:oe,isIncludeCanvas:Y,isUnderSameCanvas:ie,currentProjectCid:(M=(0,o.PL)(v))==null?void 0:M.cid}),B({type:"entry:update:toolbar"})}},"entry:cut:canvas":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,$.p$)(v).filter(j=>{var Y;return((Y=sdkStore.getHotItem(j))==null||(Y=Y.hotAttr)==null?void 0:Y.type)===l.x.Canvas}),M=I.filter(j=>!(0,gt.OO)(j));if((0,Jt.td)(I)){MB.notice({text:"\u5B9E\u4F8B\u5185\u56FE\u5C42\u4E0D\u652F\u6301\u526A\u5207/\u5220\u9664",type:"warning"});return}M.length!==0&&(B({type:"entry:copy:items"}),B({type:"entry:delete:selected-items"}))}},Dc=async Z=>{const B=Z.clipboardData.types;let v;const I=[];for(let oe=0;oe<B.length;oe++){const ie=B[oe];(ie==="Files"||ie.match(/^image\//))&&(v="FILES",I.push("FILES"))}Z.clipboardData.getData("text/html")&&(v||(v="HTML"),I.push("HTML"));const j=Z.clipboardData.getData("text/plain"),Y=Ge(j);return Y&&(v||(v=Y),I.push(Y)),{pasteType:v,pasteTypeList:I}},Ge=Z=>{if(/COPIED__MB__WIDGET_V7/.test(Z))return"WIDGET_V7";if(/COPIED__MB__WIDGET/.test(Z))return"WIDGET";if(Z)return"TEXT"},jt=Z=>{const G=Z.clipboardData.getData("text/plain");let B;/\r/.test(G)?B=G.replace(/\r\n\r\n/g,"\n"):B=G.replace(/\n\n/g,"\n"),document.execCommand("insertText",!1,B)},Dt=(Z,G)=>{const B=(0,Ep.v)((0,Eh.Id)(),(0,Kp.aF)({})),v=(0,Hp.uq)(B),I=(0,l0.gO)("",9,10,10,"",0,0,""),M={key:(0,ce.cF)("rbp"),hotAttr:I,sup:l0.$k,sub:[]};v.updateHotItem(M);const Y=v.loadSubtreeTL(Z,M.key,G.x,G.y).map(oe=>{const{hotAttr:ie,key:le}=v.getHotItem(oe)||{};return{...ie,key:le}}).filter(oe=>oe&&![l.x.WTear,l.x.WSticky].includes(oe.type));return(0,Jt.vZ)(Y,v)};var Zt=e(39557),fo=e(70299);function Eo(Z,G,B,v){const I=[];return Z.forEach(M=>{let{items:j,width:Y,height:oe}=M;if(j.length===0)return;const ie=j[0].type===l.x.Canvas,{top:le,left:ue}=G(Y,oe,ie);j.forEach(Te=>{if(Te.type!==l.x.WWrap){let De=S.Z.xy(ue+Te.x-Te.w/2,le+Te.y-Te.h/2);const{sup:$e}=B(De,Te);Te.sup=Te.gid||$e,De=v(De,Te),Te.x=De.x+Te.w/2,Te.y=De.y+Te.h/2}Te.display_name=Te.name=(0,li.aw)(Te),I.push(Te)})}),I}var Bo=e(37051),xn=e(82821),Qo=e(33924);const Yn={"entry:batch:create:items":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{data:I,offset:M,sup:j=MB.getCurrentScreen().cid,source:Y,isShouldCalcSup:oe=!1,isSkipUpdateGuides:ie=!1}}=G;const le=B(),ue=(0,o.X_)(le),Te=(0,$.Z9)(le),De=(0,m.RX)(le),$e=(0,o.eo)(le),Qe=(0,$.p$)(le),qe=sdkStore.getSubHotItemList($e).filter(on=>{let{hotAttr:{type:hn}}=on;return hn===l.x.Canvas}).map(on=>{let{key:hn}=on;return hn}),ut=(0,N.ZZ)(Qe),Bt=j,ao=Eo(I,(on,hn,Rn)=>{const Ln=!!(Rn&&(qe!=null&&qe.length)),Ms=Te.filter(Js=>Js.type===l.x.Canvas),pi=!!(Rn&&Ms.length>0);let Ts;return M?Ts=M:pi?Ts=(0,z.hw)($e,on,Ms):Ln?Ts=(0,z.Fw)(De.children,{width:on,height:hn,scale:ue},Te):Ts=(0,z.u5)({width:on,height:hn,scale:ue}),{top:Ts.top,left:Ts.left}},(on,hn)=>{if((hn==null?void 0:hn.type)===l.x.Canvas)return{sup:$e};if((hn==null?void 0:hn.type)===l.x.WSticky||(hn==null?void 0:hn.type)===l.x.WTear)return{sup:$e};if(ut)return{sup:ut};{const Rn=[on.x,on.y,on.x+hn.w,on.y+hn.h];return{sup:(0,Pl.G9)($e,[])(Rn)||$e}}},(on,hn)=>{if(hn.type===l.x.Canvas||hn.gid)return on;const Rn={x:on.x+hn.w/2,y:on.y+hn.h/2,w:hn.w,h:hn.h},{x:Ln,y:Ms}=sdkStore.toAttrXY(Rn,"",hn.sup);return{x:Ln-hn.w/2,y:Ms-hn.h/2}});if(ao.forEach(on=>{if(on.type===l.x.WImage){const{image:{imageRef:hn,imageClipType:Rn,imageRectOriginalWidth:Ln}}=on;Rn!=="none"&&hn&&Ln?on.image=(0,ht.aR)(on):on.image=(0,ht.VX)(on,{originWidth:on.width,originHeight:on.height}).image}}),ao.length===0)return;const To=ao.map(on=>{const{sup:hn,...Rn}=on;let Ms=(0,Bo._)(hn);if(Rn.type===l.x.WSticky||Rn.type===l.x.WTear){var pi;const Js=((pi=(0,gc.UR)(hn).at(-1))==null?void 0:pi.hotAttr.order)||0;Ms=a.Mh+Js}const Ts=Rn.type===l.x.Canvas?"rc":"";return{key:(0,ce.cF)(Ts),sup:on.sup,sub:[],hotAttr:{...Rn,zIndex:Ms}}}),ko=(To==null?void 0:To.length)===1&&To[0].hotAttr.type===l.x.Canvas&&!To[0].hotAttr.asOverlay,vn=To.some(on=>[l.x.WTear,l.x.WSticky].includes(on.hotAttr.type));if(ko&&sdkStore.combineMergeMark("create-canvas"),sdkStore.updateHotItemBatch(To),ko){const on=To[0],hn=(0,Qo.y2)(on);hn!==void 0&&(sdkStore.updateHotItemBatch(hn),hn.length===1?on.hotAttr.stickyHeaderHeight=hn[0].hotAttr.h:(on.hotAttr.stickyHeaderHeight=hn[0].hotAttr.h,on.hotAttr.stickyFooterHeight=hn[1].hotAttr.h))}v({type:"entry:widget:change",payload:{flatChgList:To,isCreateWidget:!0,sup:Bt,shouldBreakLayerUICache:!0}}),v({type:"entry:refresh:link-list"}),ao.length===1&&([l.x.WRichText,l.x.WTear,l.x.WSticky].includes(ao[0].type)?(ao[0].type===l.x.WSticky?v({type:"entry:ST:drag:sticky:point:real:bind",payload:{stickyKey:To[0].key,createSource:Y}}):ao[0].type===l.x.WTear&&v({type:"entry:ST:tear:bind",payload:{tearKey:To[0].key,afterCreate:!0}}),v({type:"entry:set:editing:cid",payload:{item:{...ao[0],cid:To[0].key}}})):ao[0].type===l.x.WSwimlane&&v({type:"flow:update:clear"}));const os=[To.at(-1).key];v({type:"entry:select:items",payload:{cids:os}}),v({type:"entry:expend:groupOrCanvasOrBasket",payload:{cids:os}}),vn&&v({type:"toolbar:update:state",payload:{isShowSticky:!0}}),ko&&(v({type:"entry:update:free:widget:by:create:canvas",payload:{canvasKey:To[0].key}}),sdkStore.combineMerge("create-canvas")),v({type:"entry:publish:create:items:success",payload:{newItems:ao,sup:j,isSkipUpdateGuides:ie,newHotItemKeys:os}})},"entry:create:svg_icon_path:by:mousedown":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const M=B(),j=(0,E.QU)(M),Y=(0,E.Ct)(M),oe=(0,fo.G)(M),ie=(0,o.Pz)(M),le=(0,o.PL)(M),ue=(0,ve.PI)(M),Te=(0,ve.k3)(M),De=(0,E.B8)(M),{event:$e,iconName:Qe,iconDisplayName:qe,icon:ut,callback:Bt,isMultiColorIcon:ao}=I,To={iconData:{viewBox:ut.view_box,path:ut.path,iconName:Qe,iconSize:Y,iconColor:j||"",svgAttr:{fill:ut.fill,stroke:ut.stroke},isMultiColorIcon:ao},width:Y,height:Y,display_name:qe,name:qe,z:oe,view_box:ut.view_box,left:0,top:0,path:ut.path},ko=(0,J.kk)(To),vn={...To,...ko,fill:{...ko.fill,solidColor:typeof j=="number"?j:(0,Zt.Wi)(j)},mktCid:ut.groupCid||void 0,_keywords:ut.keywords,_type:ut.type,_icon_id:ut.id};if($e.type==="mousedown"){var Hn;const os=(Hn=document.getElementById(De))==null?void 0:Hn.getBoundingClientRect();(0,N.dD)({e:$e,items:[vn],width:vn.width||vn.w,height:vn.height||vn.h,doNotCreateRect:os,callback:Bt,canvasRect:ie,rootProject:le,showDragMode:ue,isAdsorbentReferenceLine:Te})}else(0,N.Q7)([vn],vn.width||vn.w,vn.height||vn.h),Bt&&Bt()},"entry:update:free:widget:by:create:canvas":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{canvasKey:I}}=G;const M=sdkStore.getHotItem(I),j=sdkStore.getHotAABB(I);if(!M||!M.sup)return;const Y=sdkStore.getSubHotItemList(M.sup).filter(oe=>{const{hotAttr:{type:ie,bunch:le}}=oe,ue=le!=null?le:ie;if([l.x.Canvas,l.x.WTear,l.x.WSticky,l.x.RbPage].includes(ue))return!1;const Te=sdkStore.getHotAABB(oe.key);return(0,kt.cj)(j,Te)});Y.length&&(Y.forEach(oe=>{sdkStore.changeRndSup(oe.key,I)}),v({type:"layerExpandedKeySet:delAllSet:ref",payload:{refs:[I]}}),v({type:"entry:rebuild:screen-widget-tree"}),v({type:"entry:refresh:link-list"}))},"entry:batch:create:items:position":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{finalWidget:I}}=G;(0,Fn._c)({type:I.type})&&(v({type:"entry:batch:create:items",payload:{data:[{items:[I],width:I.w,height:I.h}]}}),v({type:"entry:batch:set:canvas:offset"}))},"entry:batch:set:canvas:offset":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,o.X_)(v),M=(0,o.$S)(v),j=(0,o.ER)(v),Y=(0,o.eo)(v),oe=sdkStore.findAllTypeUnder(Y,l.x.Canvas).pop().key,ie=sdkStore.getHotAABB(oe),[le,ue,Te,De]=ie,$e={scale:I/100,size:{w:M.width,h:M.height},offset:j};if(!(0,_r._W)($e,M.left,ie)){const qe=le,ut=ue,Bt=Te-le,ao=De-ue,To=I/100,ko=(-Bt/2-qe)*To,vn=(-ao/2-ut)*To;B({type:"design:set:canvas:offset",payload:{offset:{x:ko,y:vn}}})}},"entry:publish:create:items:success":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{newItems:I,sup:M,newKeys:j=[],isSkipUpdateGuides:Y=!1,newHotItemKeys:oe=[]}}=G;try{const ie=I||j.map(Qe=>{var qe;return(qe=sdkStore.getHotItem(Qe))==null?void 0:qe.hotAttr}),le=ie==null?void 0:ie.filter(Qe=>Qe==null?void 0:Qe.type);if(!le||le.length<1||Y)return;const ue=le.find(Qe=>Qe.type===l.x.Canvas&&!Qe.asOverlay),Te=(le==null?void 0:le.length)===1&&ue,De=B(),{scene_tag:$e}=(0,o.PL)(De);if(Te){const Qe=M||(0,o.eo)(De),qe=(0,E.OW)(De);(0,xn.K)(I18N)[u.c.GUIDE_MORE_PAGE].howToShow({currentPopupPanel:qe,sup:Qe})}else if((le==null?void 0:le.length)===1&&le[0].type===l.x.Canvas&&le[0].asOverlay)MB.commonGuideHelper.tryToShowGuide(u.c.GUIDE_NEW_OVERLAY_ONCE);else{if(!$e)return;if($e.split("-")[0]==="DS"&&MB.commonGuideHelper.checkGuideHasShown(u.c.GUIDE_NOVICE_2309_STEP_2))v({type:"entry:update:novice:guide:and:task",payload:{guideType:u.c.GUIDE_NOVICE_2309_STEP_3}});else{const Qe=(0,h.jN)(),qe=(0,o.eo)(De),ut=(0,Pl.G9)(qe,[]),Bt=oe[0]||j[0],ao=sdkStore.getHotAABB(Bt),To=ut(ao);if(Qe&&Qe.isInProgress){if(To){const ko=sdkStore.findAllTypeUnder(qe,l.x.WImage).filter(vn=>{let{key:Hn}=vn;return Hn.startsWith("imgtip")});sdkStore.deleteHotItemBatch(ko.map(vn=>{let{key:Hn}=vn;return Hn})),v({type:"entry:rebuild:screen-widget-tree"}),v({type:"entry:update:novice:guide:and:task",payload:{guideType:u.c.GUIDE_NOVICE_2309_STEP_2,taskType:u.c.GUIDE_NOVICE_2309_TASK_2}})}}else v({type:"entry:update:novice:guide:and:task",payload:{taskType:u.c.GUIDE_NOVICE_2309_TASK_2}})}}$e.split("-")[0]==="DS"?ue&&v({type:"entry:update:novice:guide:and:task",payload:{taskType:u.c.GUIDE_NOVICE_2309_TASK_1,guideType:u.c.GUIDE_NOVICE_2309_STEP_1}}):ue&&(v({type:"entry:update:novice:guide:and:task",payload:{taskType:u.c.GUIDE_NOVICE_2309_TASK_1,guideType:u.c.GUIDE_NOVICE_2408_CREATE_PAGE}}),MB.commonGuideHelper.tryToCloseMountGuide(u.c.GUIDE_NOVICE_2408_CREATE_PAGE))}catch(ie){console.log(ie.message)}}};var $n=e(73807),ls=e(57488),Ns=e(60180),Cs=e(28868),Us=e(80009),Qs=e(89104),Bs=e(331),Ws=e(28678);const ci=70,Ai={"entry:elbow:isInElbowMode:create":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{event:I,key:M,canInstantCreate:j,givinStartInfo:Y}}=G;I.persist();const oe=S.Z.xy(I.clientX,I.clientY),ie=B(),le=M||(0,Ne.IL)(ie),ue=(0,o.ER)(ie),Te=(0,o.X_)(ie),De=(0,o.$S)(ie),$e=(0,m.RX)(ie),Qe=(0,o.Ur)(ie),qe=(0,o.Sb)(ie);let ut,Bt=!1,ao;if(!(0,Fn._c)({type:l.x.WElbow,count:1})||I.target.closest("#widget-popup"))return;const To=Te/100;sdkStore.combineMergeMark("elbowmode-create");const ko=I.target.tagName==="circle"&&I.target.closest("span.elbow-anchor-start-point");let vn="";ko&&(vn=ko.dataset.cid);const Hn=on=>{const hn=S.Z.xy(on.clientX,on.clientY);let Rn=(0,mt.mG)(on,{scale:Te,offset:ue,viewportRect:De});if(S.Z.distance(oe,hn)>1&&Bt===!1){if(Bt=!0,Y!=null&&Y.key){const{x:Ln,y:Ms,w:pi,h:Ts}=sdkStore.getHotBound(Y.key);switch(Y.startDirection){case"left":Rn={x:Ln-pi*.5,y:Ms};break;case"right":Rn={x:Ln+pi*.5,y:Ms};break;case"top":Rn={x:Ln,y:Ms-Ts*.5};break;case"bottom":Rn={x:Ln,y:Ms+Ts*.5};break;default:break}}ut=(0,rc.Z1)(Rn,MB.getCurrentScreen().cid),v({type:"elbow:update",payload:{isDraggingElbow:!0}}),v({type:"entry:elbow:create:start",payload:{elbowKey:ut,cursorWorldPos:Rn,moveAnchor:"start",fresh:!1,givinStartInfo:Y,isCreateElbowFromItem:!!ko,eventTargetItemKey:vn}})}ut&&v({type:"entry:elbow:create:start",payload:{elbowKey:ut,cursorWorldPos:Rn,moveAnchor:"end"}})},os=on=>{const hn=(0,mt.mG)(on,{scale:Te,offset:ue,viewportRect:De});ao=(0,C.Tg)(hn,$e.key)||(Qe==null?void 0:Qe.cid);let Ln={x:0,y:0};const Ms={x:on.clientX,y:on.clientY};if(Bt){const pi=sdkStore.getHotItem(ut).hotAttr;if(Y!=null&&Y.key){const{x:Ts,y:Js,w:ki,h:js}=sdkStore.getHotBound(Y.key);switch(Y.startDirection){case"left":Ln={x:Ts-ki*.5,y:Js};break;case"right":Ln={x:Ts+ki*.5,y:Js};break;case"top":Ln={x:Ts,y:Js-js*.5};break;case"bottom":Ln={x:Ts,y:Js+js*.5};break;default:break}v({type:"entry:elbow:create:start",payload:{elbowKey:ut,cursorWorldPos:Ln,moveAnchor:"start",fresh:!1,givinStartInfo:Y}}),v({type:"entry:elbow:after-quick-create",payload:{elbowKey:ut,originalSup:ao}}),pi.elbow.elbowType==="curve"&&v({type:"entry:elbow:drag:start",payload:{elbowKey:ut,cursorWorldPos:hn,moveAnchor:"end",event:on}}),v({type:"entry:elbow:after-quick-create:popup",payload:{elbowKey:ut,openFrom:"drag-out",mousePos:Ms}}),sdkStore.combineMerge("elbowmode-create"),v({type:"entry:rebuild:screen-widget-tree"})}else v({type:"entry:elbow:after-quick-create",payload:{elbowKey:ut,originalSup:ao}}),pi.elbow.elbowType==="curve"&&v({type:"entry:elbow:drag:start",payload:{elbowKey:ut,cursorWorldPos:hn,moveAnchor:"end",event:on}}),v({type:"elbow:update",payload:{highlightAnchor:"",isDraggingElbow:!1}}),v({type:"entry:rebuild:screen-widget-tree"});sdkStore.combineMerge("elbowmode-create")}else if(j){const pi=sdkStore.getHotItem(le).hotAttr.type;if(![l.x.WTear,l.x.WElbow].includes(pi)){const{x:Ts,y:Js,w:ki,h:js}=sdkStore.getHotBound(Y.key),ai=ci*To;switch(Y.startDirection){case"left":Ln={x:Ts-ki*.5,y:Js},Ms.x=(0,mt.mY)(Ln).x-ai;break;case"right":Ln={x:Ts+ki*.5,y:Js},Ms.x=(0,mt.mY)(Ln).x+ai;break;case"top":Ln={x:Ts,y:Js-js*.5},Ms.y=(0,mt.mY)(Ln).y-ai;break;case"bottom":Ln={x:Ts,y:Js+js*.5},Ms.y=(0,mt.mY)(Ln).y+ai;break;default:break}ut=(0,rc.Z1)(Ln,Qe.cid),v({type:"entry:elbow:create:start",payload:{elbowKey:ut,cursorWorldPos:Ln,moveAnchor:"start",fresh:!1}}),v({type:"entry:elbow:popup:elbow:modify",payload:{elbowKey:ut,givinStartInfo:Y,sup:ao}}),v({type:"entry:elbow:after-quick-create",payload:{elbowKey:ut,originalSup:ao}}),v({type:"entry:elbow:after-quick-create:popup",payload:{elbowKey:ut,openFrom:"instant",mousePos:Ms}}),sdkStore.combineMerge("elbowmode-create"),v({type:"entry:rebuild:screen-widget-tree"})}}if(v({type:"elbow:update",payload:{isDraggingElbow:!1}}),(0,bl.Yp)({source:qe===bl.Hq.ToolBar?""+bl.ol.ToolBar+bl.k8.Click:bl.ol.ShortCut,widgetName:(0,bl.KR)(l.x.WElbow)}),ut){const pi=sdkStore.getHotItem(ut).hotAttr.elbow.elbowType;(0,Ws.Zf)(pi)}document.removeEventListener("mousemove",Hn),document.removeEventListener("mouseup",os)};document.addEventListener("mousemove",Hn),document.addEventListener("mouseup",os)},"entry:elbow:create:start":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{elbowKey:I,cursorWorldPos:M,moveAnchor:j,fresh:Y=!0,givinStartInfo:oe,isCreateElbowFromItem:ie=!1,eventTargetItemKey:le=""}}=G;const ue=B(),Te=sdkStore.getHotItem(I),De=(0,Ne.IL)(ue),$e=(0,o.X_)(ue),Qe=(0,m.RX)(ue),qe=(0,$.p$)(ue),ut=(0,jo.$7)(ue),Bt=(0,C.Dg)(M,$e/100,Qe.key,{isDraggingElbow:!0,isShowSticky:ut,isCreateElbowFromItem:ie,eventTargetItemKey:le});(0,C.h9)(Bt,qe,"ctrl",!0);let ao;if(Bt.hitKey&&Bt.hitIType!==l.x.WTear){const To=sdkStore.getHotBound(Bt.hitKey);let ko={...M,key:"",direction:"none"};if(oe!==void 0)ko={...M,key:oe.key,direction:oe.startDirection};else{const vn=(0,Cs.yT)(To,M);if(vn!==void 0){const Hn=ie===!0&&le===Bt.hitKey?le:De;ko={...vn.xy,key:Hn,direction:vn.key}}}ao=(0,rc.b)({elbowKey:Te.key,worldPos:ko,moveAnchor:j,refKey:ko.key,direction:ko.direction,isUseWroldBound:!0})}else ao=(0,rc.b)({elbowKey:Te.key,worldPos:M,moveAnchor:j,refKey:"",direction:"none",isUseWroldBound:!0});ao&&(sdkStore.updateHotItem(ao),Y&&v({type:"entry:rebuild:screen-widget-tree"}))},"entry:elbow:drag:start":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{elbowKey:I,cursorWorldPos:M,moveAnchor:j,event:Y}}=G;const oe=B(),ie=sdkStore.getHotItem(I);if(ie&&ie.hotAttr&&ie.hotAttr.type!==l.x.WElbow)return;const le=(0,Ne.IL)(oe),ue=(0,o.X_)(oe),Te=(0,m.RX)(oe),De=(0,$.p$)(oe),$e=(0,jo.$7)(oe),Qe=(0,C.Dg)(M,ue/100,Te.key,{isDraggingElbow:!0,isShowSticky:$e,event:Y});(0,C.h9)(Qe,De,"ctrl",!0);let qe;if(Qe.hitKey&&Qe.hitIType!==l.x.WTear){const{realPos:Bt,updated:ao,offsetSup:To}=(0,xd.GN)(I,M),{hotAttr:ko}=ie,{elbow:vn}=ko;let Hn=Bt;const os=sdkStore.getHotBound(Qe.hitKey),on=(0,Cs.yT)(os,M);let hn="",Rn="none";on!==void 0?(ao&&vn.elbowType!=="curve"?Hn=sdkStore.toAttrXY(on.xy,"",To):Hn=on.xy,hn=le,Rn=on.key,v({type:"elbow:update",payload:{highlightAnchor:on.key}})):v({type:"elbow:update",payload:{highlightAnchor:""}}),qe=(0,rc.b)({elbowKey:ie.key,worldPos:Hn,moveAnchor:j,refKey:hn,direction:Rn})}else{const{realPos:Bt}=(0,xd.GN)(I,M);qe=(0,rc.b)({elbowKey:ie.key,worldPos:Bt,moveAnchor:j,refKey:"",direction:"none"})}const ut=[qe];(0,xd.f7)(qe.key,ut),v({type:"entry:widget:change",payload:{flatChgList:ut}})},"entry:elbow:line-segment-move":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{event:I,fromIndex:M,toIndex:j,direction:Y,elbowKey:oe}}=G;const ie=B(),le=(0,o.$S)(ie),ue=(0,o.X_)(ie),Te=(0,o.ER)(ie),De=(0,mt.mG)(I,{scale:100,offset:Te,viewportRect:le}),$e={x:De.x/ue*100,y:De.y/ue*100},Qe=sdkStore.getHotItem(oe),{realPos:qe}=(0,xd.GN)(oe,$e),{x:ut,y:Bt,w:ao,h:To,elbow:{dPathList:ko}}=Qe.hotAttr,vn=ut-ao*.5,Hn=Bt-To*.5,os=(0,Cs.Ui)(S.Z.xy(vn,Hn),ko);if(M===0||j===os.length-1)return;const hn=(0,ls.eQ)(os,qe,M,j,Y,10),Rn=Ot.rw.enclosing(hn),Ln=(0,Cs.uK)(S.Z.xy(Rn.x,Rn.y),hn),Ms=Rn.w,pi=Rn.h,Ts=Rn.x+Ms*.5,Js=Rn.y+pi*.5,ki={...Qe,hotAttr:{...Qe.hotAttr,elbow:{...Qe.hotAttr.elbow,dPathList:Ln.map((js,ai)=>(ai===M||ai===j?ai!==0&&ai!==Ln.length-1&&(js.isAdjusted=!0):js.isAdjusted=!1,js))},x:Ts,y:Js,h:pi,w:Ms}};sdkStore.updateHotItem(ki),v({type:"entry:rebuild:screen-widget-tree"})},"entry:elbow:line-anchor-add":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{length:I,index:M,event:j,elbowKey:Y,direction:oe}}=G;const ie=B(),le=(0,o.$S)(ie),ue=(0,o.X_)(ie),Te=(0,o.ER)(ie),De=(0,mt.mG)(j,{scale:100,offset:Te,viewportRect:le}),$e={x:De.x/ue*100,y:De.y/ue*100},{realPos:Qe}=(0,xd.GN)(Y,$e),qe=sdkStore.getHotItem(Y),{x:ut,y:Bt,elbow:{dPathList:ao},w:To,h:ko}=qe.hotAttr,vn=ut-To*.5,Hn=Bt-ko*.5,os=(0,Cs.Ui)(S.Z.xy(vn,Hn),ao),on=!1,hn=null,Rn=!1,Ln=null,Ms=JSON.parse(JSON.stringify(os));let pi,Ts,Js;if(I===1){pi=1,Ts=0;const Wa=Ms[0],nr=Ms[1];let zi,ca,Ua,Za;if(oe==="horizontal"){const ia=Math.round((Wa.y+Qe.y)/2),yl=Math.round((nr.y+Qe.y)/2),er=Qe.x-Wa.x;on?(zi={x:hn.x,y:hn.y},ca={x:hn.x+er,y:hn.y}):(zi={x:Wa.x,y:ia},ca={x:Wa.x+er,y:ia}),Rn?(Ua={x:Ln.x+er,y:Ln.y},Za={x:Ln.x,y:Ln.y}):(Ua={x:nr.x+er,y:yl},Za={x:nr.x,y:yl})}else{const ia=Math.round((Wa.x+Qe.x)/2),yl=Math.round((nr.x+Qe.x)/2),er=Qe.y-Wa.y;on?(zi={x:hn.x,y:hn.y},ca={x:hn.x,y:hn.y+er}):(zi={x:ia,y:Wa.y},ca={x:ia,y:Wa.y+er}),Rn?(Ua={x:Ln.x,y:Ln.y+er},Za={x:Ln.x,y:Ln.y}):(Ua={x:yl,y:nr.y+er},Za={x:yl,y:nr.y})}Js=[zi,ca,Ua,Za]}if(I!==1){Ts=1;let Wa,nr,zi;if(M===0){const ca=Ms[0],Ua=Ms[1];if(pi=1,oe==="horizontal"){const Za=Math.round((ca.y+Qe.y)/2),ia=Math.round(Qe.x-ca.x);on?(Wa={x:hn.x,y:hn.y},nr={x:hn.x+ia,y:hn.y},zi={x:Ua.x+ia,y:Ua.y}):(Wa={x:ca.x,y:Za},nr={x:ca.x+ia,y:Za},zi={x:Ua.x+ia,y:Ua.y})}if(oe==="vertical"){const Za=Math.round((ca.x+Qe.x)/2),ia=Math.round(Qe.y-ca.y);on?(Wa={x:hn.x,y:hn.y},nr={x:hn.x,y:hn.y+ia},zi={x:Ua.x,y:Ua.y+ia}):(Wa={x:Za,y:ca.y},nr={x:Za,y:ca.y+ia},zi={x:Ua.x,y:Ua.y+ia})}Js=[Wa,nr,zi]}else{const ca=Ms[Ms.length-2],Ua=Ms[Ms.length-1];if(pi=Ms.length-2,oe==="horizontal"){const Za=Math.round((Ua.y+Qe.y)/2),ia=Math.round(Qe.x-ca.x);Rn?(Wa={x:ca.x+ia,y:ca.y},nr={x:Ln.x+ia,y:Ln.y},zi={x:Ln.x,y:Ln.y}):(Wa={x:ca.x+ia,y:ca.y},nr={x:Ua.x+ia,y:Za},zi={x:Ua.x,y:Za})}if(oe==="vertical"){const Za=Math.round((Ua.x+Qe.x)/2),ia=Math.round(Qe.y-Ua.y);Rn?(Wa={x:ca.x,y:ca.y+ia},nr={x:Ln.x,y:Ln.y+ia},zi={x:Ln.x,y:Ln.y}):(Wa={x:ca.x,y:ca.y+ia},nr={x:Za,y:Ua.y+ia},zi={x:Za,y:Ua.y})}Js=[Wa,nr,zi]}}Ms.splice(pi,Ts,...Js);const ki=Ot.rw.enclosing(Ms),js=(0,Cs.uK)(S.Z.xy(ki.x,ki.y),Ms),ai=ki.w,qi=ki.h,or=ki.x+ai*.5,Yi=ki.y+qi*.5,Hr={...qe,hotAttr:{...qe.hotAttr,elbow:{...qe.hotAttr.elbow,dPathList:js},x:or,y:Yi,h:qi,w:ai}};sdkStore.updateHotItem(Hr),v({type:"entry:rebuild:screen-widget-tree"})},"entry:elbow:line-optimize":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{elbowKey:I}}=G;const M=sdkStore.getHotItem(I),{hotAttr:{x:j,y:Y,w:oe,h:ie,elbow:{dPathList:le}}}=M,ue=j-oe*.5,Te=Y-ie*.5,De=(0,Cs.Ui)(S.Z.xy(ue,Te),le),$e=(0,ls.rD)([...De]),Qe=Ot.rw.enclosing($e),qe=Qe.w,ut=Qe.h,Bt=Qe.x+qe*.5,ao=Qe.y+ut*.5,To=(0,Cs.uK)(S.Z.xy(Qe.x,Qe.y),$e),ko={...M,hotAttr:{...M.hotAttr,elbow:{...M.hotAttr.elbow,dPathList:To},x:Bt,y:ao,w:qe,h:ut}};sdkStore.updateHotItem(ko),v({type:"entry:rebuild:screen-widget-tree"})},"entry:elbow:line-adjust":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{elbowKey:I}}=G;const M=sdkStore.getHotItem(I),j=M.hotAttr,{x:Y,y:oe,elbow:ie,w:le,h:ue,refFromKey:Te,refToKey:De}=j,{dPathList:$e,fromDirection:Qe,toDirection:qe}=ie,ut=Y-le*.5,Bt=oe-ue*.5,ao=(0,Cs.Ui)(S.Z.xy(ut,Bt),[$e[0]])[0],To=(0,Cs.Ui)(S.Z.xy(ut,Bt),[$e[$e.length-1]])[0],ko={elbowKey:I,currentElbowItem:M,startPickPoint:{...ao,key:Te,direction:Qe},endPickPoint:{...To,key:De,direction:qe},isAdjust:!0},{data:vn}=(0,Ns.X)(ko),Hn=[];if(sdkStore._updateHotItem(vn,Hn),Hn.length>0){sdkStore.updateHotItem(vn),v({type:"entry:rebuild:screen-widget-tree"});return}v({type:"entry:set:editing:cid",payload:{item:{...M==null?void 0:M.hotAttr,cid:I}}})},"entry:elbow:after-quick-create":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{elbowKey:I,originalSup:M}}=G;v({type:"entry:elbow:after-quick-create:v2",payload:{elbowKey:I}})},"entry:elbow:after-quick-create:v1":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{elbowKey:I,originalSup:M}}=G;const j=B(),Y=(0,Ne.IL)(j),oe=(0,o.eo)(j);let ie=M;if(Y){const De=sdkStore.locUpHotCanvasKey(Y);De?(0,gt.OO)(De)?ie=oe:ie=De:ie=oe}const{sup:le}=sdkStore.getHotItem(I);le!==ie&&(0,xd.F2)(I,ie);const ue=(0,li.aw)({type:"wElbow",sup:ie,key:I}),Te=(0,Bo._)(ie);sdkStore.updateHotAttrMerge(I,{name:ue,zIndex:Te}),v({type:"entry:publish:create:items:success",payload:{newKeys:[I]}})},"entry:elbow:after-quick-create:v2":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{elbowKey:I}}=G;const M=B(),j=(0,o.eo)(M),Y=(0,Pl.G9)(j),oe=sdkStore.getHotItem(I),{hotAttr:{elbow:{dPathList:ie},w:le,h:ue,refFromKey:Te,refToKey:De}}=oe,$e=sdkStore.getHotAABB(I),Qe={x:.5*($e[0]+$e[2]),y:.5*($e[1]+$e[3])},qe={x:Qe.x-le*.5,y:Qe.y-ue*.5},ut=sdkStore.getHotItem(Te||""),Bt=sdkStore.getHotItem(De||""),ao=(0,Cs.Ui)(qe,[ie[0]])[0],To=(0,Cs.Ui)(qe,[ie[ie.length-1]])[0],ko=(0,C.Tg)(ao,j),vn=(0,C.Tg)(To,j);let Hn;if(ut&&Bt){const hn=sdkStore.locUpHotCanvasKey(ut.key),Rn=sdkStore.locUpHotCanvasKey(Bt.key);Hn=hn&&Rn&&hn===Rn?hn:j}else if(ut&&!Bt){const hn=sdkStore.locUpHotCanvasKey(ut.key);Hn=hn&&hn===vn?hn:j}else if(!ut&&Bt){const hn=sdkStore.locUpHotCanvasKey(Bt.key);Hn=hn&&hn===ko?hn:j}else Hn=Y($e)||j;const os=(0,Pl.YQ)(),on=(0,Pl.Us)();sdkStore.updateHotItem({...oe,sup:Hn,hotAttr:{...oe.hotAttr,...sdkStore.toAttrXY(Qe,I,Hn),name:os(Hn,"wElbow",oe.hotAttr.name,hn=>hn.key!==I),zIndex:on(I,Hn)}})},"entry:elbow:after-quick-create:popup":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{elbowKey:I,openFrom:M,mousePos:j}}=G;if(sdkStore.getHotItem(I).hotAttr.refToKey)return;const[Y,oe]=sdkStore.getHotAABB(I),{elbow:{dPathList:ie,elbowType:le}}=sdkStore.getHotItem(I).hotAttr;let ue=ie.at(-1);le==="curve"&&(ue=(0,wo.Ig)({closed:!1,points:ie}).at(-1));const Te={x:Y+ue.x,y:oe+ue.y};v({type:"elbow:update",payload:{isShowWidgetPopup:!0,popupWorldPos:Te}}),xt.A.emit("elbowPopupShowed",{from:M,mousePos:j,elbowKey:I})},"entry:elbow:popup:create":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{elbowKey:I,widgetType:M,openFrom:j}}=G;if(!(0,Fn._c)({type:"widget",count:1}))return;const Y=B(),oe=(0,o.Ur)(Y),ie=(0,vo.Fc)(Y),le=(0,a.gu)({type:M,screen:oe}),ue=sdkStore.getHotItem(I),Te={...ue,hotAttr:{...ue.hotAttr,elbow:{...ue.hotAttr.elbow}}},{dPathList:De,elbowType:$e}=Te.hotAttr.elbow,Qe=(0,rc.R)(De,$e),qe=Te.hotAttr.refFromKey,ut=qe&&!sdkStore.isTrashed(qe);if(j==="instant"&&ut){const Hn=sdkStore.getHotBound(qe),{x:os,y:on,w:hn,h:Rn}=Hn;Qe==="up"?(le.x=os,le.y=on-Rn*.5-le.h*.5-ci,Te.hotAttr.elbow.toDirection="bottom"):Qe==="down"?(le.x=os,le.y=on+Rn*.5+le.h*.5+ci,Te.hotAttr.elbow.toDirection="top"):Qe==="left"?(le.x=os-hn*.5-le.w*.5-ci,le.y=on,Te.hotAttr.elbow.toDirection="right"):(le.x=os+hn*.5+le.w*.5+ci,le.y=on,Te.hotAttr.elbow.toDirection="left")}else Qe==="up"?(le.x=ie.x,le.y=ie.y-le.h*.5,Te.hotAttr.elbow.toDirection="bottom"):Qe==="down"?(le.x=ie.x,le.y=ie.y+le.h*.5,Te.hotAttr.elbow.toDirection="top"):Qe==="left"?(le.x=ie.x-le.w*.5,le.y=ie.y,Te.hotAttr.elbow.toDirection="right"):(le.x=ie.x+le.w*.5,le.y=ie.y,Te.hotAttr.elbow.toDirection="left");const ao=(0,C.Tg)(ie,oe.cid)||oe.cid,To=(0,Bo._)(ao),ko={key:(0,ce.cF)(),sup:oe.cid,sub:[],hotAttr:{...le,zIndex:To}};ko.hotAttr.name=(0,li.aw)({...le,sup:ao}),sdkStore.combineMergeMark("widgetpopup-create"),sdkStore.updateHotItem(ko),sdkStore.changeRndSup(ko.key,ao),Te.hotAttr.refToKey=ko.key,sdkStore.updateHotItem(Te),sdkStore.combineMerge("widgetpopup-create"),v({type:"entry:rebuild:screen-widget-tree"}),v({type:"entry:select:items",payload:{cids:[ko.key]}});const vn=j==="instant"?"\u7EC4\u4EF6\u52A0\u53F7\u6DFB\u52A0":"\u7EBF\u6761\u62D6\u62FD";(0,Us.W)({widget_source:vn,widget_type:M})},"entry:elbow:popup:elbow:modify":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{elbowKey:I,givinStartInfo:M,sup:j}}=G;const Y=sdkStore.getHotItem(I),{key:oe,startDirection:ie}=M,ue=sdkStore.getHotBound(oe),Te=Y.hotAttr.elbow.elbowType==="curve"?[...Bs.XS]:[{x:0,y:0},{x:0,y:0}],De={...Y,hotAttr:{...Y.hotAttr,elbow:{...Y.hotAttr.elbow,dPathList:Te}}},$e=Te.length-1;De.hotAttr.refFromKey=M.key,De.hotAttr.elbow.fromDirection=M.startDirection;let Qe={x:0,y:0},qe={x:0,y:0};if(ie==="left"?(De.hotAttr.elbow.dPathList[0].x=ci,De.hotAttr.elbow.dPathList[0].y=0,De.hotAttr.elbow.dPathList[$e].x=0,De.hotAttr.elbow.dPathList[$e].y=0,De.hotAttr.x=ue.x-ue.w*.5-ci*.5,De.hotAttr.y=ue.y,De.hotAttr.w=ci,De.hotAttr.h=0,De.hotAttr.elbow.elbowType==="curve"&&(Qe={x:ue.x-ue.w/2,y:ue.y},qe={x:ue.x-ue.w/2-ci,y:ue.y})):ie==="right"?(De.hotAttr.elbow.dPathList[0].x=0,De.hotAttr.elbow.dPathList[0].y=0,De.hotAttr.elbow.dPathList[$e].x=ci,De.hotAttr.elbow.dPathList[$e].y=0,De.hotAttr.x=ue.x+ue.w*.5+ci*.5,De.hotAttr.y=ue.y,De.hotAttr.w=ci,De.hotAttr.h=0,De.hotAttr.elbow.elbowType==="curve"&&(Qe={x:ue.x+ue.w/2,y:ue.y},qe={x:ue.x+ue.w/2+ci,y:ue.y})):ie==="bottom"?(De.hotAttr.elbow.dPathList[0].x=0,De.hotAttr.elbow.dPathList[0].y=0,De.hotAttr.elbow.dPathList[$e].x=0,De.hotAttr.elbow.dPathList[$e].y=ci,De.hotAttr.x=ue.x,De.hotAttr.y=ue.y+ue.h*.5+ci*.5,De.hotAttr.h=ci,De.hotAttr.w=0,De.hotAttr.elbow.elbowType==="curve"&&(Qe={x:ue.x,y:ue.y+ue.h/2},qe={x:ue.x,y:ue.y+ue.h/2+ci})):(De.hotAttr.elbow.dPathList[0].x=0,De.hotAttr.elbow.dPathList[0].y=ci,De.hotAttr.elbow.dPathList[$e].x=0,De.hotAttr.elbow.dPathList[$e].y=0,De.hotAttr.x=ue.x,De.hotAttr.y=ue.y-ue.h*.5-ci*.5,De.hotAttr.h=ci,De.hotAttr.w=0,De.hotAttr.elbow.elbowType==="curve"&&(Qe={x:ue.x,y:ue.y-ue.h/2},qe={x:ue.x,y:ue.y-ue.h/2-ci})),sdkStore.updateHotItem(De),De.hotAttr.elbow.elbowType==="curve"){const ut=(0,rc.b)({elbowKey:I,moveAnchor:"start",worldPos:Qe,refKey:M.key,direction:M.startDirection});sdkStore.updateHotItem(ut);const Bt=(0,rc.b)({elbowKey:I,moveAnchor:"end",worldPos:qe,refKey:"",direction:"none"});sdkStore.updateHotItem(Bt)}sdkStore.changeRndSup(De.key,j)},"entry:elbow:popup:elbow:from:modify":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{elbowKey:I,givinStartInfo:M,isInstantCreate:j=!1}}=G;const Y=sdkStore.getHotItem(I),{key:oe,startDirection:ie}=M,le={...Y,hotAttr:{...Y.hotAttr,elbow:{...Y.hotAttr.elbow,dPathList:[]}}};le.hotAttr.refFromKey=oe,le.hotAttr.elbow.fromDirection=ie,sdkStore.updateHotItem(le)},"entry:elbow:isInElbowMode:toggle":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,vo.Q1)(v);B({type:"elbow:update",payload:{isInElbowMode:!I}}),B({type:"entry:clear:selection"})},"entry:elbow:type:transform":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const M=B(),j=(0,$.p$)(M),{nextType:Y}=I,oe=[];for(const ie of j){const le=sdkStore.getHotItem(ie),{elbow:ue,w:Te,h:De,x:$e,y:Qe,refToKey:qe,refFromKey:ut}=le.hotAttr,{dPathList:Bt,toDirection:ao,fromDirection:To}=ue;if(Y===ue.elbowType)continue;const ko={...ue,elbowType:Y},vn=$e-Te/2,Hn=Qe-De/2,os=()=>{const on=(0,wo.Ig)({closed:!1,points:ue.dPathList}).map((pi,Ts)=>Ts===0||Ts===ue.dPathList.length-1?{x:pi.x+vn,y:pi.y+Hn,isAdjusted:!1}:{x:pi.x,y:pi.y,isAdjusted:!1}),hn=on[0],Rn=on.at(-1),Ln=(0,rc.b)({elbowKey:ie,moveAnchor:"end",worldPos:Rn,refKey:qe,direction:ao},{...le,hotAttr:{...le.hotAttr,elbow:{...ko,dPathList:[{x:0,y:0,isAdjusted:!1},Rn]}}}),Ms=(0,rc.b)({elbowKey:ie,moveAnchor:"start",worldPos:hn,refKey:ut,direction:To},Ln);oe.push({...Ms,notTriggerAttachedUpdate:!0})};switch(ko.elbowType){case"sharp":case"rounded":{if(ue.elbowType==="straight"){const on=Bt.at(-1),hn={x:vn+on.x,y:Hn+on.y},Rn=(0,rc.b)({elbowKey:ie,moveAnchor:"end",worldPos:hn,refKey:qe,direction:ao},{...le,hotAttr:{...le.hotAttr,elbow:ko}});oe.push({...Rn,notTriggerAttachedUpdate:!0})}else ue.elbowType==="curve"?os():oe.push({key:ie,hotAttr:{elbow:ko},notTriggerAttachedUpdate:!0});break}case"straight":{if(ue.elbowType==="rounded"||ue.elbowType==="sharp"){const on=[ue.dPathList[0],ue.dPathList.at(-1)];ko.dPathList=on,oe.push({key:ie,hotAttr:{elbow:ko},notTriggerAttachedUpdate:!0})}else ue.elbowType==="curve"&&os();break}case"curve":{const on=(0,Cs.Ui)(S.Z.xy(vn,Hn),[Bt[0]])[0],hn=(0,Cs.Ui)(S.Z.xy(vn,Hn),[Bt[Bt.length-1]])[0],Rn=(on.x+hn.x)/2,Ln=(on.y+hn.y)/2,Ms=Math.abs(hn.x-on.x),pi=Math.abs(hn.y-on.y),Ts=[{x:0,y:0,type:"straight",prev:{x:0,y:0},next:{x:0,y:0},radius:0},{x:0,y:0,type:"mirrored",prev:{x:0,y:0},next:{x:0,y:0},radius:0},{x:hn.x-on.x,y:hn.y-on.y,type:"straight",prev:{x:0,y:0},next:{x:0,y:0},radius:0}];(0,rc.eO)(Ts),ko.dPathList=Ts,ko.middleIsAdjusted=!1,oe.push({key:ie,hotAttr:{elbow:ko,x:Rn,y:Ln,w:Ms,h:pi},notTriggerAttachedUpdate:!0})}}}v({type:"entry:widget:change",payload:{flatChgList:oe}})},"entry:elbow:middle-anchor:reset":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const{elbowKey:M}=I,j=sdkStore.getHotItem(M),{elbow:Y,elbow:{dPathList:oe}}=j.hotAttr,ie=JSON.parse(JSON.stringify(oe));(0,rc.eO)(ie);const{x:le,y:ue,w:Te,h:De}=(0,Qs.zh)({key:M,vector:{closed:!1,points:ie}}),$e=[];$e.push({key:M,hotAttr:{x:le,y:ue,w:Te,h:De,elbow:{...Y,dPathList:ie,middleIsAdjusted:!1}}}),v({type:"entry:widget:change",payload:{flatChgList:$e}}),v({type:"entry:select:items",payload:{cids:[M]}})},"entry:elbow:update:textPositionProportion":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const M=B();if(!(M&&(0,vo.CP)(M)))return;const{key:Y,textPositionProportion:oe}=I||{},ie=sdkStore.getHotItem(Y);if(!ie)return;const le=[{key:Y,hotAttr:{...ie.hotAttr,elbow:{...ie.hotAttr.elbow,textPositionProportion:oe}}}];v({type:"entry:widget:change",payload:{flatChgList:le}})}};var Qi=e(17670),Oi=e(87812);const Ii={"entry:image-view:edit":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const M=B(),{operationType:j}=I,oe=(0,$.Z9)(M).filter(le=>{var ue;return le.name===l.x.WImage&&le.image&&((ue=le.image)==null?void 0:ue.imageRef)}),ie=j===ft.bl.cutting;(oe==null?void 0:oe.length)>0&&(v({type:"image:update:state",payload:{isEditingImageWrapperCid:oe.map(le=>{let{cid:ue}=le;return ue}).join(","),currentImageOperateType:j}}),!ie&&MB.commonGuideHelper.checkGuideToBeShown(u.c.GUIDE_IMAGE_SLICING)&&!MB.commonGuideHelper.checkGuideHasShown(u.c.GUIDE_IMAGE_SLICING)&&(MB.commonGuideHelper.closeGuide(u.c.GUIDE_IMAGE_SLICING),MB.commonGuideHelper.markGuideAsRead(u.c.GUIDE_IMAGE_SLICING)))},"entry:image-view:cutting":Z=>{var G;let{getState:B,dispatch:v}=Z;const I=B(),M=(0,Ft.tl)(I);if(!M||!(M!=null&&M.length))return;const j=M[0];if(((G=j.widget)==null||(G=G.image)==null?void 0:G.imageClipType)==="none"){var Y;v({type:"entry:widget:change",payload:{flatChgList:[{key:j.key||j.cid,hotAttr:{image:{...(Y=j.widget)==null?void 0:Y.image,imageClipType:ft.Mg.square}}}]}})}},"entry:image-view:exit:edit":Z=>{let{dispatch:G}=Z;G({type:"image:update:state",payload:{isEditingImageWrapperCid:"",currentImageOperateType:"",currentImageClipSelected:ft.Q7.cutFrame}})},"entry:image-view:slicing":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{wImageKeyList:I,sliceWorldPos:M,slicingDirection:j}}=G;v({type:"entry:image-view:exit:edit"}),sdkStore.combineMergeMark("image-slice");const Y=I.reduce((oe,ie)=>{const le=(0,Qi.A)({sdk:sdkStore,sliceWorldPos:M,wImageKey:ie,slicingDirection:j});return le.forEach(ue=>{ue.hotAttr.image.imageFillType="stretch"}),le.length>0&&(sdkStore.deleteHotItem(ie),sdkStore.updateHotItemBatch(le)),[...oe,...le.map(ue=>ue.key)]},[]);sdkStore.combineMerge("image-slice"),v({type:"entry:rebuild:screen-widget-tree"}),v({type:"entry:refresh:link-list"}),v({type:"entry:select:items",payload:{cids:Y}})},"entry:image-view:fill-type":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{imageFillType:I}}=G;const M=B();if(!I)return;let j;const oe=((0,$.p$)(M)||[]).map($e=>sdkStore.getHotItem($e)).filter($e=>$e.hotAttr.type==="wImage");if(!oe||oe.length===0)return;const ie=oe[0],{hotAttr:{w:le,h:ue,image:{imageRectOriginalWidth:Te,imageRectOriginalHeight:De}}}=ie;if(I==="fill"){const $e=(0,Oi.Z)({w:le,h:ue,imageRectOriginalWidth:Te,imageRectOriginalHeight:De});j={...ie.hotAttr.image,...$e,imageFillType:I}}else I==="stretch"&&(j={...ie.hotAttr.image,imageFillType:I,imageRectWidth:le,imageRectHeight:ue,imageRectCenterX:le/2,imageRectCenterY:ue/2});v({type:"entry:widget:change",payload:{flatChgList:[{key:ie.key,hotAttr:{image:j}}]}})},"entry:image-view:horizontal-flip":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{isImage:I}}=G;const M=B(),Y=((0,$.p$)(M)||[]).map(oe=>sdkStore.getHotItem(oe)).filter(oe=>{var ie;return!!(oe.hotAttr.type===l.x.WImage&&(ie=oe.hotAttr.image)!=null&&ie.imageRef&&I||oe.hotAttr.type===l.x.WIcon&&!I)});!Y||Y.length===0||(Y.forEach(oe=>{oe.hotAttr.flip.flipH=!oe.hotAttr.flip.flipH}),v({type:"entry:widget:change",payload:{flatChgList:Y,shouldReBuildTree:!0}}),(0,ii.$j)({operation_type:"\u6C34\u5E73\u7FFB\u8F6C",widget_type:I?"\u56FE\u7247":"\u56FE\u6807"}))},"entry:image-view:vertically-flip":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{isImage:I}}=G;const M=B(),Y=((0,$.p$)(M)||[]).map(oe=>sdkStore.getHotItem(oe)).filter(oe=>{var ie;return!!(oe.hotAttr.type===l.x.WImage&&(ie=oe.hotAttr.image)!=null&&ie.imageRef&&I||oe.hotAttr.type===l.x.WIcon&&!I)});!Y||Y.length===0||(Y.forEach(oe=>{oe.hotAttr.flip.flipV=!oe.hotAttr.flip.flipV}),v({type:"entry:widget:change",payload:{flatChgList:Y,shouldReBuildTree:!0}}),(0,ii.$j)({operation_type:"\u5782\u76F4\u7FFB\u8F6C",widget_type:I?"\u56FE\u7247":"\u56FE\u6807"}))}};var $a=e(83053),Re=e(10091),je=e(27420);const et=(Z,G,B,v)=>{const{x:I,y:M,w:j,h:Y}=Z,oe=G[2]-G[0],ie=G[3]-G[1];switch(B){case"left":return{x:v[0]+oe/2,y:M,w:j,h:Y};case"center":return{x:(v[0]+v[2])*.5,y:M,w:j,h:Y};case"right":return{x:v[2]-oe/2,y:M,w:j,h:Y};case"top":return{x:I,y:v[1]+ie/2,w:j,h:Y};case"middle":return{x:I,y:(v[1]+v[3])*.5,w:j,h:Y};case"bottom":return{x:I,y:v[3]-ie/2,w:j,h:Y}}},St=(Z,G)=>{const B=Z.sub.filter(I=>I!==G);return sdkStore.getHotKeyListAABB(B)},vt=(Z,G,B)=>{const v={};Z.forEach(j=>(0,jl.Ie)(j,v));const I=(0,je.TJ)(B,Z,v),M=[];if(Z.length===1){const j=Z[0],Y=sdkStore.locUpColdCanvasKey(j),oe=sdkStore.getHotItem(j),ie=sdkStore.findUpType(oe.sup,l.x.WWrap);if(ie){const le=St(ie,j),ue=et(sdkStore.getHotBound(j),sdkStore.getHotAABB(j),G,le);(0,jl.$O)(M,j,ue,v),(0,je.PB)(M,j,ue,I,v)}else if(Y){const le=et(sdkStore.getHotBound(j),sdkStore.getHotAABB(j),G,sdkStore.getHotAABB(Y));(0,jl.$O)(M,j,le,v),(0,je.PB)(M,j,le,I,v)}}else Z.forEach(j=>{const Y=et(sdkStore.getHotBound(j),sdkStore.getHotAABB(j),G,sdkStore.getHotKeyListAABB(Z));(0,jl.$O)(M,j,Y,v),(0,je.PB)(M,j,Y,I,v)});return M},no=(Z,G,B)=>{const v={};Z.forEach(Y=>(0,jl.Ie)(Y,v));const I=sdkStore.getHotKeyListAABB(Z),M=(0,je.TJ)(B,Z,v),j=[];if(Z.length>2)switch(G){case"horizontal":{const Y=(I[2]-I[0]-Z.reduce((le,ue)=>{const Te=sdkStore.getHotAABB(ue),De=Te[2]-Te[0];return le+De},0))/(Z.length-1),oe=Z.sort((le,ue)=>sdkStore.getHotAABB(le)[0]-sdkStore.getHotAABB(ue)[0]);let ie=sdkStore.getHotAABB(oe[0])[2];oe.slice(1,-1).forEach((le,ue)=>{const{y:Te,w:De,h:$e}=sdkStore.getHotBound(le),Qe=sdkStore.getHotAABB(le),qe=Qe[2]-Qe[0];ie+=Y+qe;const ut={x:ie-qe/2,y:Te,w:De,h:$e};(0,jl.$O)(j,le,ut,v),(0,je.PB)(j,le,ut,M,v)});break}case"vertical":{const Y=(I[3]-I[1]-Z.reduce((le,ue)=>{const Te=sdkStore.getHotAABB(ue),De=Te[3]-Te[1];return le+De},0))/(Z.length-1),oe=Z.sort((le,ue)=>sdkStore.getHotAABB(le)[1]-sdkStore.getHotAABB(ue)[1]);let ie=sdkStore.getHotAABB(oe[0])[3];oe.slice(1,-1).forEach((le,ue)=>{const{x:Te,w:De,h:$e}=sdkStore.getHotBound(le),Qe=sdkStore.getHotAABB(le),qe=Qe[3]-Qe[1];ie+=Y+qe;const ut={x:Te,y:ie-qe/2,w:De,h:$e};(0,jl.$O)(j,le,ut,v),(0,je.PB)(j,le,ut,M,v)});break}}return j},$o=[l.x.WWrap,l.x.Canvas,l.x.RbPage],gn=Z=>{const B=Z.map(Y=>{if(sdkStore.isTrashed(Y.key))return[];const oe=sdkStore.findUpHotItemList(Y.key);return!oe||!(oe!=null&&oe.length)?[]:oe.filter(ie=>{let{key:le}=ie;return le!==Y.key}).map(ie=>{let{key:le}=ie;return le})}).filter(Y=>Y==null?void 0:Y.length).reduce((Y,oe)=>Y.filter(ie=>oe.some(le=>ie===le))),v=(Y,oe)=>{const ie=[],le=sdkStore.getHotItem(Y),ue=oe(le);ue&&ie.push(ue);const{hotAttr:{type:Te,bunch:De}}=le,$e=De!=null?De:Te;return $o.includes($e)&&sdkStore.getSubHotItemList(Y).sort((Qe,qe)=>qe.hotAttr.zIndex-Qe.hotAttr.zIndex).forEach(Qe=>{let{key:qe}=Qe;return ie.push(...v(qe,oe))}),ie},I=B[0],M=v(I,Y=>Y.key);return Z.sort((Y,oe)=>M.indexOf(Y.key)-M.indexOf(oe.key))[0]},En=Z=>{const B=Z.map(ie=>sdkStore.getHotItem(ie)).filter(ie=>![l.x.WTear,l.x.WSticky].includes(ie.hotAttr.type)&&!(0,gt.OO)(ie.key)&&!sdkStore.isTrashed(ie.key));if(!(B!=null&&B.length))return[];const v=gn(B),I=v.sup,M=v.hotAttr.zIndex,j=sdkStore.findAllTypeUnder(I,l.x.WWrap),Y=j.length?I18N.w[l.x.WWrap]+" "+(j.length+1):I18N.w[l.x.WWrap],oe=(0,ce.cF)("ww");return sdkStore.summonWWrap(B.map(ie=>ie.key),I,oe,Y,M,!0,!0),[oe]},cs=Z=>{const G=new Map,B=(v,I)=>v.hotAttr.zIndex-I.hotAttr.zIndex;return Z.forEach(v=>{const I=sdkStore.getHotItem(v),M=G.get(v);let j=M?M.hotAttr.zIndex:I.hotAttr.zIndex;const Y=sdkStore.getSubHotItemList(I.sup).sort(B),oe=Y.findIndex(ue=>ue.key===v),ie=Y.slice(oe+1,Y.length);if(sdkStore.getSubHotItemList(I.key).sort(B).forEach(ue=>{G.set(ue.key,{...ue,hotAttr:{...ue.hotAttr,zIndex:++j}})}),ie.length){const ue=ie[0].hotAttr.zIndex;j>=ue&&ie.forEach(Te=>{G.set(Te.key,{...Te,hotAttr:{...Te.hotAttr,zIndex:++j}})})}}),Array.from(G.values())},Zn=new Set(["rResCanvas","wTear","wSticky"]),fs=Z=>!Zn.has(Z.hotAttr.type)&&!(0,gt.OO)(Z.key),ks=Z=>{const G=Z.map(ie=>sdkStore.getHotItem(ie)),[B,v]=G.reduce((ie,le)=>{let[ue,Te]=ie;return fs(le)?[ue,Te.concat([le])]:[ue.concat([le]),Te]},[[],[]]);if(!v.length)return;const I=(0,Pl.Lf)(Z);if(!I)return;const M=I.sup;if((0,gt.OO)(M))return;sdkStore.combineMergeMark("summon-wwrap-from-selection");const j=[];Z.filter(ie=>ie!==I.key).forEach(ie=>{const le=sdkStore.getHotItem(ie).sup,ue=sdkStore.getSubHotItemList(le).filter(Te=>Te.key!==ie);ue!=null&&ue.length||j.push(le)});const Y=(0,Pl.YQ)(),oe=(0,ce.cF)("ww");return sdkStore.updateHotAttrMergeBatch(v.sort((0,Pl.tU)(M)).map((ie,le)=>[ie.key,{zIndex:le+1}])),sdkStore.summonWWrap(v.map(ie=>ie.key),M,oe,Y(M,"wWrap",I18N.w[l.x.WWrap]),I.hotAttr.zIndex,!0,!0),j!=null&&j.length&&sdkStore.deleteHotItemBatch(j),sdkStore.combineMerge("summon-wwrap-from-selection"),B.map(ie=>ie.key).concat([oe])},Zs=function(Z,G,B){B===void 0&&(B="zIndex");const v=[];return Z.forEach(I=>{const{cids:M,siblings:j}=I,Y=[...j].sort((ie,le)=>ie.hotAttr[B]-le.hotAttr[B]),oe=ni(M,Y,G,B);v.push(...oe)}),v},ni=(Z,G,B,v)=>{const I=G.map(le=>le.hotAttr[v]),M=wi(I),j=G.map(le=>le.key),Y=B===1?xi(j,Z):Fi(j,Z),oe={};Y.forEach((le,ue)=>oe[le]=M[ue]);const ie=[];return G.forEach(le=>{const ue=oe[le.key];le.hotAttr[v]!==ue&&ie.push({...le,hotAttr:{...le.hotAttr,[v]:ue}})}),ie},wi=Z=>{const G=[];return Z.forEach((B,v)=>{const I=G[v-1];v===0||B>I?G.push(B):G.push(I+1)}),G},xi=(Z,G)=>{const B=[];let v=[];return Z.forEach(I=>{G.includes(I)?v.push(I):(B.push(I),B.push(...v),v=[])}),B.push(...v),B},Fi=(Z,G)=>{const B=[...Z].reverse();return xi(B,G).reverse()};var $i=e(32723),ga=e(24207),Ia=e(90515),_a=e(852);const za=Z=>{var G;if(sdkStore.isTrashed(Z))return null;const B=sdkStore.getHotItem(Z);return(G=sdkStore.findUpHotItemList(Z).find(I=>{let{hotAttr:M}=I;return B.hotAttr.type===l.x.Canvas?M.bunch===l.x.RbPage:M.bunch===l.x.RbPage||M.type===l.x.Canvas&&!(0,gt.OO)(Z)}))==null?void 0:G.key},la=Z=>{let{keyList:G,pageKey:B,pre:v,dir:I}=Z;const M={},j=(0,je.oh)(G,!0),Y=(0,je.TJ)(B,j,M);return j.reduce((oe,ie)=>{const le=za(ie);if(!le)return oe;const{hotAttr:ue}=sdkStore.getHotItem(ie),{x:Te,y:De,w:$e,h:Qe}=sdkStore.getRelocateLocalBound(ie,le),qe=sdkStore.getLocalBound(ie),ut=Y.get(ie);if(I==="left"){const Bt=ue.x-qe.x,{x:ao}=sdkStore.toAttrXY(sdkStore.fromAttrXY({x:v+$e/2+Bt,y:De},ie,le),ie),To=ao-ue.x,ko=(0,je.ol)(ut,To,0,M);return[...oe,...ko,{key:ie,hotAttr:{x:ao}}]}else if(I==="top"){const Bt=ue.y-qe.y,{y:ao}=sdkStore.toAttrXY(sdkStore.fromAttrXY({x:Te,y:v+Qe/2+Bt},ie,le),ie),To=ao-ue.y,ko=(0,je.ol)(ut,0,To,M);return[...oe,...ko,{key:ie,hotAttr:{y:ao}}]}return[]},[])},qa=Z=>{let{keyList:G,pre:B,dir:v}=Z;const M=(0,je.oh)(G,!0)[0];if(!za(M))return;const{hotAttr:Y}=sdkStore.getHotItem(M),oe=MB.getScale()/100,{x:ie,y:le,w:ue,h:Te}=sdkStore.getHotBound(M),$e={...v==="left"?{x:ie+(B-Y.x+ue/2)/oe,y:le}:{x:ie,y:le+(B-Y.y+Te/2)/oe},r:Y.r,w:ue,h:Te},{x:Qe,y:qe}=sdkStore.toAttrXY($e,M);return[{key:M,hotAttr:{x:Qe,y:qe,image:{...Y.image,...(0,Qi.N)(M,$e),imageFillType:"stretch"}}}]},rr=Z=>{let{keyList:G,pageKey:B,offsetX:v,offsetY:I}=Z;const M={},j=(0,je.oh)(G,!1,!0),Y=(0,je.TJ)(B,j,M);return{flatChgList:j.reduce((ie,le)=>{const{x:ue,y:Te}=sdkStore.getHotItem(le).hotAttr,De=Y.get(le),$e=(0,je.ol)(De,v,I,M);return[...ie,...$e,{key:le,hotAttr:{x:ue+v,y:Te+I}}]},[]),keyList:j}};var pr=e(15915);const yr=Z=>{if(!(0,pr._5)()||MB.commonGuideHelper.checkGuideHasShown(u.c.UNGROUP_WITH_WM))return!0;const G=(0,Vc.fV)();if(!G)return!0;const{mdWMMktList:B,mtWMMktList:v}=G,I=new Set([...B,...v]),M=[];return Z.forEach(j=>{sdkStore.walkHotItemSubtree2(j.key,Y=>{Y.hotAttr.mktCid&&I.has(Y.hotAttr.mktCid)&&M.push(Y.key)})}),M.length<2};var Lr=e(44580);const Tr={"entry:group:items":Z=>{let{getState:G,dispatch:B}=Z;B({type:"entry:group:items:v2"})},"entry:group:items:v1":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,$.p$)(v);if(!(0,Jt.kE)(I))return;const j=En(I);j!=null&&j.length&&(B({type:"entry:rebuild:screen-widget-tree"}),B({type:"entry:select:items",payload:{cids:j}}),B({type:"entry:refresh:link-list"}),B({type:"mind:exit:edit:state"}),B({type:"toolbar:update:state",payload:{refresh:Math.random()}}))},"entry:group:items:v2":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,$.p$)(v);if(!(0,Jt.kE)(I))return;const j=ks(I);j!=null&&j.length&&(B({type:"entry:rebuild:screen-widget-tree"}),B({type:"entry:select:items",payload:{cids:j}}),B({type:"entry:refresh:link-list"}),B({type:"mind:exit:edit:state"}),B({type:"toolbar:update:state",payload:{refresh:Math.random()}}))},"entry:ungroup:items":Z=>{let{getState:G,dispatch:B}=Z;B({type:"entry:ungroup:items:v2"})},"entry:ungroup:items:v1":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,$.p$)(v);if(!(0,Jt.P6)(I))return;const M=(0,o.eo)(v),j=I.map(le=>sdkStore.getHotItem(le)),Y=j.reduce((le,ue)=>ue.hotAttr.type===l.x.WWrap?[...le,ue.key]:le,[]).sort(C.tM).reverse();if(Y.length===0)return;sdkStore.combineMergeMark("ungroup"),(0,_r.hf)(Y,M,B);const oe=cs(Y);oe!=null&&oe.length&&sdkStore.updateHotItemBatch(oe),Y.forEach(le=>sdkStore.dispelWWrap(le));const ie=j.reduce((le,ue)=>ue.hotAttr.type===l.x.WWrap?[...le,...ue.sub]:[...le,ue.key],[]);sdkStore.combineMerge("ungroup"),B(i.GO.hoverItem("")),B({type:"clear:echo:item"}),B({type:"entry:select:items",payload:{cids:ie}}),B({type:"entry:rebuild:screen-widget-tree"}),B({type:"entry:refresh:link-list"}),B({type:"toolbar:update:state",payload:{refresh:Math.random()}})},"entry:ungroup:items:v2":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,$.p$)(v),M=(0,o.eo)(v),j=I.map(Qe=>sdkStore.getHotItem(Qe)),[Y,oe]=j.reduce((Qe,qe)=>{let[ut,Bt]=Qe;return qe.hotAttr.type===l.x.WWrap?[ut,Bt.concat([qe])]:[ut.concat([qe]),Bt]},[[],[]]);if(oe.length===0)return;if(!yr(oe)){B({type:"modal:update:state",payload:{mktWMUngroupModal:{isOpen:!0}}}),(0,Y0.f)({exposure_reason:"\u89E3\u7EC4\u884C\u4E3A\u63D0\u793A"});return}const ie=[],le=oe.map(Qe=>Qe.key);sdkStore.combineMergeMark("ungroup"),(0,_r.hf)(le,M,B);const ue=(0,Pl.wr)(le),Te=(0,Pl.G9)(M,[]),De=[];for(const Qe of oe){const{key:qe,sup:ut,sub:Bt}=Qe,ao=Bt.map(Hn=>sdkStore.getHotItem(Hn)).sort((Hn,os)=>Hn.hotAttr.zIndex-os.hotAttr.zIndex),To=sdkStore.getHotItem(ut),ko=To.hotAttr.type==="wWrap",vn=To.hotAttr.type==="rResCanvas";for(const Hn of ao){const os=sdkStore.getHotAABB(Hn.key),on=ko||vn&&(0,kt.cj)(os,sdkStore.getHotAABB(ut))?ut:Te(os)||M;De.push({key:Hn.key,sup:on,hotAttr:{...sdkStore.getRelocateLocalXYR(Hn.key,on),zIndex:ue.getReStackZIndex(Hn.key,on)}}),ie.push(Hn.key)}sdkStore.dispelWWrap(qe)}ue.subsequentReStack(De),sdkStore.deleteHotItemBatch(le),sdkStore.updateHotItemBatch(De.map(Qe=>{const qe=sdkStore.getHotItem(Qe.key);return{...qe,sup:Qe.sup||qe.sup,hotAttr:{...qe.hotAttr,...Qe.hotAttr}}})),sdkStore.combineMerge("ungroup");const $e=ie.concat(Y.map(Qe=>Qe.key));B({type:"entry:rebuild:screen-widget-tree"}),B(i.GO.hoverItem("")),B({type:"clear:echo:item"}),B({type:"entry:select:items",payload:{cids:$e}}),B({type:"entry:refresh:link-list"}),B({type:"toolbar:update:state",payload:{refresh:Math.random()}})},"entry:toggle:attr":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const M=B();if((0,Ne.lY)(M))return;const{attr:Y,widget:oe}=I,ie=oe!=null&&oe.key?(0,bt.Op)(oe==null?void 0:oe.key):null,le=ie?[ie]:(0,$.QA)(M),ue=Y==="isVisible"?le.filter(ut=>!(0,gc.yT)(ut.type)):le,Te=(0,o.Ur)(M),De=ue.length===1&&ue[0].key===Te.cid,$e=ue.length===0;if(De||$e)return;const Qe=(0,Re.i)(ue,Y),qe=ue.map(ut=>{let{key:Bt}=ut;return{key:Bt,hotAttr:{[Y]:!Qe}}});v({type:"entry:widget:change",payload:{flatChgList:qe,shouldBreakLayerUICache:!0}}),v({type:"mind:exit:edit:state"})},"entry:toggle:lock":(Z,G)=>{let{dispatch:B}=Z,{payload:v={}}=G;B({type:"entry:toggle:attr",payload:{attr:"isLock",...v}}),B({type:"toolbar:update:state",payload:{refresh:Math.random()}})},"entry:toggle:visible":(Z,G)=>{let{dispatch:B}=Z,{payload:v={}}=G;B({type:"entry:toggle:attr",payload:{attr:"isVisible",...v}}),B({type:"directory-panel:bottom:update",payload:{canvasListCacheTag:Math.random()}})},"entry:set:Fixed":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{value:I}}=G;const M=B(),Y=(0,$.p$)(M).filter(ie=>!(0,gt.OO)(ie)).map(sdkStore.getHotItem).filter(ie=>!(0,gc.yT)(ie.hotAttr.type));if(Y.length===0)return;const oe=Y.map(ie=>{let{key:le}=ie;return{key:le,hotAttr:{fixPosTo:I}}});v({type:"entry:widget:change",payload:{flatChgList:oe}})},"entry:align:items":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const{direction:M}=I,j=B(),Y=(0,$.p$)(j),oe=(0,Ne.lY)(j),ie=(0,o.eo)(j);if(!((0,Jt.GS)(Y)&&!oe))return;const ue=(0,je.oh)(Y),Te=vt(ue,M,ie);v({type:"entry:widget:change",payload:{flatChgList:Te}}),(0,xd.b2)(Te),v({type:"entry:rebuild:screen-widget-tree"}),v({type:"entry:refresh:link-list"}),v({type:"entry:select:smartly"})},"entry:distribute:items":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const{direction:M}=I,j=B(),Y=(0,Ne.lY)(j),oe=(0,$.p$)(j),ie=(0,o.eo)(j);if(!((0,Jt.oR)(oe)&&!Y))return;const ue=(0,je.oh)(oe),Te=no(ue,M,ie);v({type:"entry:widget:change",payload:{flatChgList:Te}}),(0,xd.b2)(Te),v({type:"entry:rebuild:screen-widget-tree"}),v({type:"entry:refresh:link-list"}),v({type:"entry:select:smartly"})},"entry:items:set:icon":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{icon:I,iconName:M,iconDisplayName:j,isMultiColorIcon:Y}}=G;const oe=B(),ie=(0,$.QA)(oe);if(ie.length===0)return;const le=[],ue=new Set;ie.forEach(Te=>{var De,$e,Qe,qe,ut,Bt,ao;Te.mktCid&&ue.add(Te.mktCid),I.groupCid&&ue.delete(I.groupCid),!((Te==null||(De=Te.iconData)==null?void 0:De.iconName)===void 0||(Te==null||($e=Te.iconData)==null?void 0:$e.viewBox)===void 0||(Te==null||(Qe=Te.iconData)==null?void 0:Qe.path)===void 0)&&(Te&&Te.iconData&&(!(Te!=null&&(qe=Te.iconData)!=null&&qe.iconColor)||(Te==null||(ut=Te.iconData)==null?void 0:ut.iconColor)==="unset")&&(Te.iconData.iconColor="rgba(16, 16, 16, 1)"),le.push({key:Te.key,hotAttr:{w:Te==null||(Bt=Te.iconData)==null?void 0:Bt.iconSize,h:Te==null||(ao=Te.iconData)==null?void 0:ao.iconSize,name:j,mktCid:I.groupCid||void 0,iconData:{...Te.iconData,iconName:M,viewBox:I.view_box,path:I.path,isMultiColorIcon:Y}}}))}),v({type:"entry:widget:change",payload:{flatChgList:le}}),(0,Lr.uC)([...ue])},"entry:items:set:asset":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{asset:I}}=G;const M=B(),j=(0,$.QA)(M).filter(ie=>ie.type===l.x.WImage),oe=(0,ht.JB)(I,j).map(ie=>({key:ie.key,hotAttr:{...ie,name:ie.display_name}}));v({type:"entry:widget:change",payload:{flatChgList:oe}})},"entry:items:set:clipType":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{clipType:I}}=G;const M=B(),j=(0,$.QA)(M).filter(oe=>{var ie;return oe.type===l.x.WImage&&((ie=oe.image)==null?void 0:ie.imageRef)}),Y=(0,ht.lt)(I,j);v({type:"entry:widget:change",payload:{flatChgList:Y}})},"entry:items:set:top":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{top:I}}=G;const M=B(),j=(0,Ne.jI)(M),Y=(0,Ne.bt)(M),oe=(0,o.eo)(M),ie=(0,$.p$)(M);if((0,Ft.tR)(M)===ft.bl.cutting){const ue=qa({keyList:ie,pre:I,dir:"top"});v({type:"entry:widget:change",payload:{flatChgList:ue}})}else{const ue=la({keyList:ie,pageKey:oe,pre:I,dir:"top"});v({type:"entry:widget:change",payload:{flatChgList:ue}}),(j||Y)&&v({type:"entry:layout:basket-canvas"}),v({type:"entry:select:smartly"})}},"entry:items:set:left":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{left:I}}=G;const M=B(),j=(0,Ne.jI)(M),Y=(0,Ne.bt)(M),oe=(0,o.eo)(M),ie=(0,$.p$)(M);if((0,Ft.tR)(M)===ft.bl.cutting){const ue=qa({keyList:ie,pre:I,dir:"left"});v({type:"entry:widget:change",payload:{flatChgList:ue}})}else{const ue=la({keyList:ie,pageKey:oe,pre:I,dir:"left"});v({type:"entry:widget:change",payload:{flatChgList:ue}}),(j||Y)&&v({type:"entry:layout:basket-canvas"}),v({type:"entry:select:smartly"})}},"entry:items:set:width":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{width:I}}=G;const M=B(),j=(0,$.p$)(M),Y=(0,Ne.jI)(M),oe=(0,Ne.bt)(M);if((0,Ft.tR)(M)===ft.bl.cutting){const le=(0,_a.kP)({keyList:j,pre:I,type:"width"});v({type:"entry:widget:change",payload:{flatChgList:le}})}else{const le=j.filter(De=>sdkStore.getHotItem(De).hotAttr.type!==l.x.WMind),ue={};le.forEach(De=>(0,jl.Ie)(De,ue));const Te=[];le.forEach(De=>{if((0,gt.OO)(De))return;const{hotAttr:{isLockAspect:$e}}=sdkStore.getHotItem(De),Qe=sdkStore.getHotBound(De),qe=$e?(0,ga.K)(Qe.w,Qe.h):!1,ut=(0,_a.Wj)(Qe,I-Qe.w,0,"w",qe);(0,jl.$O)(Te,De,ut,ue,qe)}),v({type:"entry:widget:change",payload:{flatChgList:Te}}),(Y||oe)&&v({type:"entry:layout:basket-canvas"}),v({type:"entry:select:smartly"})}},"entry:items:set:height":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{height:I}}=G;const M=B(),j=(0,$.p$)(M),Y=(0,Ne.jI)(M),oe=(0,Ne.bt)(M);if((0,Ft.tR)(M)===ft.bl.cutting){const le=(0,_a.kP)({keyList:j,pre:I,type:"height"});v({type:"entry:widget:change",payload:{flatChgList:le}})}else{const le=j.filter(De=>sdkStore.getHotItem(De).hotAttr.type!==l.x.WMind),ue={};le.forEach(De=>(0,jl.Ie)(De,ue));const Te=[];le.forEach(De=>{if((0,gt.OO)(De))return;const{hotAttr:{isLockAspect:$e}}=sdkStore.getHotItem(De),Qe=sdkStore.getHotBound(De),qe=$e?(0,ga.K)(Qe.w,Qe.h):!1,ut=(0,_a.Wj)(Qe,0,I-Qe.h,"h",qe);(0,jl.$O)(Te,De,ut,ue,qe)}),v({type:"entry:widget:change",payload:{flatChgList:Te}}),(Y||oe)&&v({type:"entry:layout:basket-canvas"}),v({type:"entry:select:smartly"})}},"entry:items:move:by:offset":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const{offsetX:M,offsetY:j}=I,Y=B(),oe=(0,o.eo)(Y),ie=(0,$.p$)(Y),{flatChgList:le,keyList:ue}=rr({keyList:ie,pageKey:oe,offsetX:M,offsetY:j});v({type:"entry:widget:change",payload:{flatChgList:le}}),(ue==null?void 0:ue.length)>1&&v({type:"entry:select:smartly"})},"entry:items:forward":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I={attr:"zIndex"}}=G;const{attr:M}=I,j=B(),Y=(0,$.p$)(j),oe=(0,Ne.lY)(j);if(!((0,Jt.sQ)(Y)&&!oe))return;const le=(0,yi.GF)(Y),ue=Zs(le,1,M);ue.length&&v({type:"entry:widget:change",payload:{flatChgList:ue,shouldReBuildTree:!0}})},"entry:items:canvasList:forward":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I={attr:"zIndex"}}=G;const{attr:M}=I,j=B(),Y=(0,$.p$)(j),oe=(0,yi.cm)(Y),ie=Zs(oe,1,M);ie.length&&v({type:"entry:widget:change",payload:{flatChgList:ie,shouldBreakCanvasUICache:!0}})},"entry:items:backward":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I={attr:"zIndex"}}=G;const{attr:M}=I,j=B(),Y=(0,$.p$)(j),oe=(0,Ne.lY)(j);if(!((0,Jt.sQ)(Y)&&!oe))return;const le=(0,yi.GF)(Y),ue=Zs(le,-1,M);ue.length&&v({type:"entry:widget:change",payload:{flatChgList:ue,shouldReBuildTree:!0}})},"entry:items:canvasList:backward":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I={attr:"zIndex"}}=G;const{attr:M}=I,j=B(),Y=(0,$.p$)(j),oe=(0,yi.cm)(Y),ie=Zs(oe,-1,M);ie.length&&v({type:"entry:widget:change",payload:{flatChgList:ie,shouldBreakCanvasUICache:!0}})},"entry:items:send:front":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,$.p$)(v),M=(0,Ne.lY)(v);if(!((0,Jt.sQ)(I)&&!M))return;const Y=(0,yi.GF)(I),oe=(0,$i.j)(Y,1);oe.length&&B({type:"entry:widget:change",payload:{flatChgList:oe,shouldReBuildTree:!0}})},"entry:items:send:back":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,$.p$)(v),M=(0,Ne.lY)(v);if(!((0,Jt.sQ)(I)&&!M))return;const Y=(0,yi.GF)(I),oe=(0,$i.j)(Y,-1);oe.length&&B({type:"entry:widget:change",payload:{flatChgList:oe,shouldReBuildTree:!0}})},"entry:set:editing:cid":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{item:I}}=G;if((0,Ze.gM)(I.type)){const M=(0,Dn.xH)({baseItem:I});v(i.GO.updateTextEditorDefaultAttrs(M))}v({type:"set:editing:cid",payload:{cid:I.cid}}),setTimeout(()=>(0,Wo.ay)(I,"add"))},"entry:set:line:length":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{value:I}}=G;const M=B(),j=(0,$.p$)(M);if(!(j!=null&&j.length))return;const Y=sdkStore.getHotItem(j[0]);if(!(Y!=null&&Y.hotAttr))return;const oe=[{key:Y.key,hotAttr:(0,Ia.wh)(Y.hotAttr,I)}];v({type:"entry:widget:change",payload:{flatChgList:oe}})},"entry:set:rotate":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{value:I}}=G;const M=B(),j=(0,$.Z9)(M),Y=(0,Ft.P2)(M),oe=(0,Ft.KF)(M);if(I=(0,$a.wj)(I),oe==="img"&&j.length===1&&j[0].key===Y&&j[0].hotAttr.type===l.x.WImage)v({type:"entry:widget:change",payload:{flatChgList:[{key:j[0].key,hotAttr:{image:{...j[0].image,imageRectR:I}}}]}});else{const ie=[];j.forEach(le=>{(0,jl.bp)(ie,le.key,I,j.length===1)}),ie.length&&v({type:"entry:widget:change",payload:{flatChgList:ie}})}},"entry:shortcut:undoable:items:set:attr:border":(Z,G)=>{var B;let{getState:v,dispatch:I}=Z,{payload:M}=G;const j=v(),oe=(0,$.p$)(j).map(sdkStore.getHotItem),ie=(B=oe[0])==null||(B=B.hotAttr)==null?void 0:B.type;if(ie)if(ie===l.x.WSlider){const le=oe[0].hotAttr.slider.thumbBorder,ue={...le,bdrIsVisible:!le.bdrIsVisible},Te=oe.filter(De=>De.hotAttr.type===l.x.WSlider).map(De=>({key:De.key,hotAttr:{slider:{...De.hotAttr.slider,thumbBorder:ue}}}));I({type:"entry:widget:change",payload:{flatChgList:Te}})}else{const le=oe.find($e=>$e.hotAttr.border);if(le===void 0)return;const ue=le.hotAttr.border,Te={...ue,bdrIsVisible:!ue.bdrIsVisible},De=oe.map($e=>({key:$e.key,hotAttr:{border:Te}}));I({type:"entry:widget:change",payload:{flatChgList:De}}),I({type:"entry:auto:show:hide:item"})}}};var Nl=e(4098),Il=e(70999);const rl=10,Ol=Z=>{const G=new Set(Z);let B=!1;const v=Z.reduce((I,M)=>{const j=(0,gt.OO)(M);if(j||sdkStore.isTrashed(M))return j&&(B=!0),I;const oe=sdkStore.findUpHotItemList(M).slice(1).map(le=>le.key).filter(le=>G.has(le));if(oe!=null&&oe.length)return B=!0,I;const ie=sdkStore.getHotItem(M);if(!ie||ie.hotAttr.isLock)return I;if(ie.hotAttr.type==="wElbow"){const{refFromKey:le,refToKey:ue}=ie.hotAttr,{isRefFromExist:Te,isRefToExist:De}=(0,Il.v)(M,le,ue);if(Te&&De){const $e=sdkStore.findUpHotItemList(le).map(qe=>qe.key).filter(qe=>G.has(qe)),Qe=sdkStore.findUpHotItemList(ue).map(qe=>qe.key).filter(qe=>G.has(qe));if(!($e.length&&Qe.length))return I}}return I.concat([ie])},[]);return{shouldReBuildTree:B,draggableItems:v}},Ur=(Z,G,B)=>{var v,I;let{currPageKey:M,getState:j,draggableItems:Y,getScale:oe,getOffset:ie,getViewportRect:le,getWidgetStore:ue,dispatch:Te}=G,{onDragStart:De,onDragEnd:$e}=B;const Qe=ue();let qe=!1;const ut=(0,mt.mG)(Z,{scale:oe(),offset:ie(),viewportRect:le()}),Bt=Y.map(on=>on.key),ao={},To=[];for(const on of Y){(0,jl.Ie)(on.key,ao);const hn=Qe.getRelatedTypeWidgetKeys("wTear",on.key);for(const Rn of hn)To.push(Rn),(0,jl.Ie)(Rn,ao)}ao["@@START-DND"]={hb:(0,Nl.T3)(sdkStore.getHotKeyListAABB(Bt)),lbR:0,wasoX:0,wasoY:0,sup:"",zIndex:0},Te({type:"update:drag-event:state",payload:{isActive:!0,draggableItems:Y,worldPosPreDrag:ut,worldPosLastDrag:ut,eventOnDrag:Z,boundTearKeyList:To,preDragSnapshot:ao}}),Y.length===1&&Y[0].hotAttr.type===l.x.WSticky&&Te({type:"ST:update",payload:{fakePointToDir:Y[0].hotAttr.pointToDir}});const ko=on=>{if(qe=qe||Math.abs(on.clientX-Z.clientX)>1||Math.abs(on.clientY-Z.clientY)>1,!qe)return;if(Y.length===0){Te({type:"reducer:flag:set:is-dragging-item",payload:{isDraggingItem:!1}});return}const hn=(0,mt.mG)(on,{scale:oe(),offset:ie(),viewportRect:le()});De();const Rn=Y.filter(Ln=>Ln.hotAttr.type===l.x.WTear).map(Ln=>Ln.key);if(Rn!=null&&Rn.length){const Ln=(0,gc.Cu)(hn,Rn[0],on);Te({type:"ST:update",payload:{fakeBindingInfo:{...Ln,stickyKey:Rn.join(",")}}})}Te({type:"update:drag-event:state",payload:{eventOnDrag:on,worldPosOnDrag:hn,isToLockDragAxis:on.shiftKey}})},vn=(v=(I=MB).getWidgetStore)==null?void 0:v.call(I).getAllWidget().size,Hn=vn>400?pt()(ko,Math.min(Math.ceil(vn/400)*8,80)):ko,os=()=>{var on;document.removeEventListener("mousemove",Hn),document.removeEventListener("mouseup",os),(on=Hn.flush)==null||on.call(Hn),$e(qe);const hn=j(),Rn=le(hn),Ln=(0,o.ER)(hn),pi={scale:oe(hn)/100,size:{w:Rn.width,h:Rn.height},offset:Ln},Ts=(0,h.jN)();if(Ts&&Ts.isInProgress){const Js=Y.some(js=>{const{x:ai,y:qi}=sdkStore.getHotItem(js.key).hotAttr;return!js.key.startsWith("imgtip")&&ai>=0&&ai<=pi.size.w&&qi>=0&&qi<=pi.size.h}),ki=(0,o.eo)(hn);if(Js){const js=sdkStore.findAllTypeUnder(ki,l.x.WImage).filter(ai=>{let{key:qi}=ai;return qi.startsWith("imgtip")});sdkStore.deleteHotItemBatch(js.map(ai=>{let{key:qi}=ai;return qi})),Te({type:"entry:rebuild:screen-widget-tree"}),Te({type:"entry:update:novice:guide:and:task",payload:{guideType:u.c.GUIDE_NOVICE_2309_STEP_2,taskType:u.c.GUIDE_NOVICE_2309_TASK_2}})}}};document.addEventListener("mousemove",Hn),document.addEventListener("mouseup",os)},bc=Z=>{const G=getWTearList(Z),B=new Map;for(const v of G){const{key:I,hotAttr:{refWCKey:M}}=v;B.has(M)?B.set(M,B.get(M).concat([I])):B.set(M,[I])}return v=>{const I=[v],M=[];for(;I.length;){const j=I.pop(),Y=sdkStore.getHotItem(j);Y&&(M.push(...B.get(j)||[]),[WidgetType.Canvas,WidgetType.WWrap,WidgetType.WBasket].includes(Y.hotAttr.type)&&I.push(...Y.sub))}return M}},Ll=Z=>{var G;let{getState:B,dispatch:v,subscribe:I,draggableItems:M}=Z,j,Y,oe;const ie=B(),le=(0,ve.PI)(ie),ue=(0,ve.k3)(ie),Te=(G=(0,o.Ur)(ie))==null?void 0:G.cid;if(!Te)return;let De=[];const $e=function(ko,vn){vn===void 0&&(vn=0),De.push(setTimeout(ko,vn))},Qe=()=>{De.forEach(clearTimeout),De=[]};let qe=[];const ut=ko=>{const vn=ko.some((Hn,os)=>Hn!==qe[os]);return qe=ko,vn},ao=I(()=>{var ko,vn;const Hn=B(),os=(0,o.$S)(Hn),on=(0,o.ER)(Hn),hn=Hn.screencontainer.dragEventState,Rn=(0,o.X_)(Hn);if(ut([os,on,hn,Rn])&&hn.isActive&&hn.worldPosOnDrag&&(((ko=j)==null?void 0:ko.x)!==hn.worldPosOnDrag.x||((vn=j)==null?void 0:vn.y)!==hn.worldPosOnDrag.y)){const{draggableItems:Ms,worldPosPreDrag:pi,worldPosOnDrag:Ts,isToLockDragAxis:Js,preDragSnapshot:ki,boundTearKeyList:js}=hn;if(Ms.length===0)return;Y=typeof Y=="function"?Y:!Ms.every(qr=>qr.hotAttr.type===l.x.WTear)&&(le||ue)?(0,J0.ay)({movableItems:Ms,createSnapper:le?P0.WY:J0.xb,viewport:{scale:Rn/100}}):null,j=Ts;let ai=Ts.x-pi.x>>0,qi=Ts.y-pi.y>>0;Js?oe?(oe==="y"&&(ai=0),oe==="x"&&(qi=0)):Math.abs(ai)>Math.abs(qi)?(qi=0,oe="x"):(ai=0,oe="y"):oe=null;const or=[],{hb:Yi}=ki["@@START-DND"],Hr=Yi.w*.5,Wa=Yi.h*.5,nr={left:Math.round(Yi.x-Hr+ai),right:Math.round(Yi.x+Hr+ai),top:Math.round(Yi.y-Wa+qi),bottom:Math.round(Yi.y+Wa+qi),width:Math.round(Yi.w),height:Math.round(Yi.h)},zi=Array.from(new Set(Ms.reduce((qr,Ld)=>{let{key:Rc}=Ld;const nd=sdkStore.getHotItem(Rc);return!nd||nd.hotAttr.type==="wSticky"||nd.hotAttr.type==="wTear"?qr:qr.concat([nd.sup])},[]))),ca=Y?Y({_rect:nr,sup:zi.length===1?zi[0]:Te}):{left:nr.left,top:nr.top},{left:Ua,top:Za,alignment:ia,sameSize:yl,distributed:er}=ca;ai=Ua-(Yi.x-Hr),qi=Za-(Yi.y-Wa);for(const qr of Ms)if(ki[qr.key]){const{hb:Ld,wasoX:Rc,wasoY:nd}=ki[qr.key],{x:Lp,y:Dp}=sdkStore.toAttrXY({x:Ld.x+ai,y:Ld.y+qi},qr.key),Dd=or.findIndex(h1=>h1.key===qr.key);Dd!==-1?or[Dd]={...or[Dd],hotAttr:{...or[Dd].hotAttr,x:Lp+Rc,y:Dp+nd}}:or.push({key:qr.key,hotAttr:{x:Lp+Rc,y:Dp+nd}})}for(const qr of js)if(ki[qr]){const{hb:Ld,wasoX:Rc,wasoY:nd}=ki[qr],{x:Lp,y:Dp}=sdkStore.toAttrXY({x:Ld.x+ai,y:Ld.y+qi},qr);or.push({key:qr,hotAttr:{x:Lp+Rc,y:Dp+nd}})}v({type:"entry:widget:change",payload:{flatChgList:or,shouldBreakLayerUICache:!1}}),Qe(),typeof Y=="function"&&(v({type:"set:alignment",payload:{alignment:ia}}),v({type:"set:sameSize",payload:{sameSize:yl}}),v({type:"set:distributed",payload:{distributed:er}}));const Cr={scale:Rn/100,size:{w:os.width,h:os.height},offset:on},[Cl,od,Bc,Yd]=(0,_r.WO)(Cr,os.left),Cc=[],Ha=10/(Rn/100);if(Ts.x<Cl+Ha?Cc[0]=rl:Ts.x>Bc-Ha&&(Cc[0]=-rl),Ts.y<od+Ha?Cc[1]=rl:Ts.y>Yd-Ha&&(Cc[1]=-rl),Cc.length){const[qr=0,Ld=0]=Cc;$e(()=>v({type:"entry:set:canvas:offset",payload:{offset:{x:on.x+qr,y:on.y+Ld}}}))}}});return()=>{ao(),Qe()}};var tp=e(84044);const kl={"entry:event:item:drag-start":(Z,G)=>{var B,v;let{getState:I,dispatch:M}=Z,{payload:{event:j}}=G,Y=I();if((0,Ne.jx)(Y)===i.qi.OnlyView)return;let le=(0,$.p$)(Y);const ue=(0,Ne.Pm)(Y),Te=(0,$.Z9)(Y),De=(0,o.PL)(Y),$e=(0,vo.Zn)(Y),Qe=(0,o.lh)(Y),qe=(0,o.Ur)(Y),ut=(0,We.WH)(Y),Bt=Te.every(hn=>{let{hotAttr:Rn}=hn;return(Rn==null?void 0:Rn.type)===l.x.WTear}),{isKeySDown:ao}=(0,o.ZS)(Y);if(ao||$e&&$e===Qe||((B=Te[0])==null?void 0:B.key)===ue||((v=Te[0])==null?void 0:v.key)===ut)return;const To=Ol(le);let{draggableItems:ko}=To;if(ko.length===0)return;if(sdkStore.combineMergeMark("dnd-item"),j.altKey){if(!(0,Fn.x7)(ko)){sdkStore.combineMerge("dnd-item");return}const hn=ko.map(Ms=>Ms.key),Rn=sdkStore.dupWithinPage(hn),Ln=ko[0].sup;if((0,_.Nt)({selections:Rn,keyRndSup:Ln,commonKeyRndSup:Ln,option:{isOptionDup:!0}}),(0,_r.F6)(Rn),(0,Si.WV)(le),(0,_r.gs)(qe.cid,Rn),ko=Rn.map(sdkStore.getHotItem),M({type:"entry:rebuild:screen-widget-tree"}),M({type:"entry:select:items",payload:{cids:Rn}}),(0,tp.L)("alt+\u9F20\u6807\u62D6\u62FD"),ko&&ko.length===1){var vn;const Ms=(vn=ko[0])==null?void 0:vn.hotAttr;(Ms==null?void 0:Ms.type)===l.x.Canvas?(0,d0.mB)({page:Ms}):(0,bl.lF)(Ms,De)}}Y=I(),le=(0,$.p$)(Y),ko=Ol(le).draggableItems;const os=new Map;ko.forEach(hn=>(0,Pl.s_)(hn.key,os));const on=Ll({getState:I,dispatch:M,subscribe:MB.__store__.subscribe,draggableItems:ko});M({type:"reducer:flag:set:is-dragging-item",payload:{isDraggingItem:!0}}),Ur(j,{getState:I,draggableItems:ko,currPageKey:qe.cid,getScale:()=>(0,o.X_)(I()),getOffset:()=>(0,o.ER)(I()),getViewportRect:()=>(0,o.$S)(I()),getWidgetStore:()=>(0,m.UV)(I()),dispatch:M},{onDragStart:()=>{Bt&&M({type:"ST:update",payload:{isDraggingWTear:!0}}),ko.length===1&&ko[0].hotAttr.type===l.x.WSticky&&M({type:"entry:ST:drag:sticky:point:fake:bind",payload:{stickyKey:ko[0].key}})},onDragEnd:hn=>{if(hn){const Rn=[],Ln=(0,Pl.G9)(qe.cid,ko.map(ki=>ki.key)),Ms=(0,Pl.wr)();let pi=!1;for(const{key:ki}of ko.sort((0,Pl.tU)())){const js=(0,Pl.Rv)(Rn,ki,os,Ln,Ms);pi=pi||js!==null}M({type:"entry:widget:change",payload:{flatChgList:Rn,shouldBreakLayerUICache:pi}});const Ts=j.button===0;if(M({type:"ST:update",payload:{isLeftDown:Ts}}),ko.length===1){const{hotAttr:ki,key:js}=ko[0];ki.type===l.x.WSticky&&M({type:"entry:ST:drag:sticky:point:real:bind",payload:{stickyKey:js}})}const Js=ko.filter(ki=>ki.hotAttr.type===l.x.WTear).map(ki=>ki.key);M({type:"entry:ST:tears:bind",payload:{tearKeys:Js}}),M({type:"ST:clear:fake-related"}),M({type:"entry:finish:resize:canvas:within:basket"}),M({type:"entry:layout:basket-canvas"}),M({type:"entry:select:smartly"})}M({type:"entry:reset:dragging:state"}),on==null||on(),M({type:"entry:refresh:link-list"}),sdkStore.combineMerge("dnd-item")}})},"entry:reset:dragging:state":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,ve.PI)(v);B({type:"reducer:flag:set:is-dragging-item",payload:{isDraggingItem:!1}}),I&&(B({type:"set:alignment",payload:{alignment:{}}}),B({type:"set:sameSize",payload:{sameSize:{}}}),B({type:"set:distributed",payload:{distributed:{}}})),B({type:"reset:drag-event:state"})}};var cc=e(83931),Nd=e(5683);const bd={"entry:enter:key":Z=>{var G;let{getState:B,dispatch:v}=Z;const I=B(),M=(0,o.rZ)(I),j=go.y.query.getMissFontHiKeySet(I);M&&(v({type:"colorpanel:set:attr",payload:{attr:void 0}}),v({type:"colorpanel:set:attrPanel",payload:{attrPanel:void 0}})),v({type:"reducer:flag:set-isShowRadiusResizer",payload:{isShowRadiusResizer:!1}}),v({type:"reducer:flag:set-isResizingRadius",payload:{isResizingRadius:!1}});const Y=(0,$.Z9)(I),oe=Y.length===1&&Y[0],ie=(0,di.u7)(I);if(oe&&!(oe!=null&&oe.hotAttr.isLock)&&oe.hotAttr.type!==l.x.WSwimlane&&!/_status_bar$/.test(oe==null||(G=oe.hotAttr)==null?void 0:G.type)&&!ie){var le;const ue=(0,Pt.ji)(oe);(0,ze.a$)(oe==null||(le=oe.hotAttr)==null?void 0:le.type)&&!ue&&(j.has(oe.key)?v({type:go.y.entryKey["font:miss:modal:open"]}):v({type:"entry:set:editing:cid",payload:{item:oe}}))}},"entry:arrow:key":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const M=B(),j=(0,$.Z9)(M),Y=(0,o.Ur)(M),oe=(0,st.uE)(M),ie=(0,Kn.kA)(M);if(oe||(0,Jt.td)((0,$.p$)(M))||ie)return;const{direction:le,rate:ue}=I,[Te,De]=[ue*10,ue],[$e,Qe,qe,ut]=le==="x"?[Te,0,De,0]:[0,Te,0,De],Bt=j.length===1&&j[0].key===Y.cid,ao=j.length===0;v(Bt||ao?{type:"entry:move:canvas",payload:{dx:$e,dy:Qe}}:{type:"entry:items:move:by:offset",payload:{offsetX:qe,offsetY:ut}})},"entry:escape:key":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,Ft.P2)(v),M=(0,mo.sI)(v),j=(0,Ho.Lc)(v);document.querySelector(".--mb--color-picker")?(B({type:"colorpanel:set:attr",payload:{attr:void 0}}),B({type:"colorpanel:set:attrPanel",payload:{attrPanel:void 0}})):B(I?{type:"entry:image-view:exit:edit"}:M?{type:"entry:comment:create:esc"}:j?{type:"entry:ST:STMode:disable"}:{type:"entry:clear:selection"})},"entry:i:key":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const{color:M}=I,j=B(),Y=(0,$.x$)(j),oe=(0,Nd.n3)(Y),ie=(0,o.th)(j);let le=!1;if(ie){const Qe=new B0;Qe.generatePathMap(oe,ie);let qe;if(ie==="fill")qe=oe.map(ut=>{const Bt=Qe.deepUpdate(ut,ie,(0,Sn.dT)(M));return{key:Bt.key,hotAttr:Bt}});else if(ie==="bgcolor"){v({type:"entry:update:root-project:bgcolor",payload:{bgcolor:cc.Q.hex2rgbaStr(M,1)}});return}else qe=oe.map(ut=>{const Bt=Qe.deepUpdate(ut,ie,(0,Sn.zX)(M));return{key:Bt.key,hotAttr:Bt}});v({type:"entry:widget:change",payload:{flatChgList:qe}});return}if(oe.length===0){MB.notice({text:"\u8BF7\u9009\u62E9\u66F4\u6539\u989C\u8272\u7684\u5BF9\u8C61"});return}const ue=oe.filter(Qe=>{let{type:qe}=Qe;return qe===l.x.WRichText});ue.length>0&&(le=!0,v({type:"entry:set:specify:text:attr",payload:{widgets:ue,attr:"textColor",value:cc.Q.hex2rgbaStr(M,1)}}));const Te=oe.filter(Qe=>{let{type:qe}=Qe;return[l.x.Canvas,l.x.WRect,l.x.WOval,l.x.WImage,l.x.WButton,l.x.WButtonSolid,l.x.WPlaceholder,l.x.WMTextInput,l.x.WMTextArea,l.x.WMSelect,l.x.WPolygon,l.x.WStar,l.x.WTriangleB,l.x.WDropMenu,l.x.WTriangleTL,l.x.WIcon].includes(qe)});if(Te.length>0){le=!0;const Qe=Te.filter(qe=>{let{type:ut}=qe;return[...l.Q.BACKGROUND_TO_FILLS,...l.Q.TC_TO_FILLS].includes(ut)});if(Qe.length>0){const qe=Qe.map(ut=>({key:ut.key,hotAttr:{fill:(0,Sn.dT)(M)}}));v({type:"entry:widget:change",payload:{flatChgList:qe}})}}const De=oe.filter(Qe=>{let{type:qe}=Qe;return qe===l.x.WLine});if(De.length>0){le=!0;const Qe=De.map(qe=>({key:qe.key,hotAttr:{border:{...qe.border,bdrColor:(0,Sn.zX)(M)}}}));v({type:"entry:widget:change",payload:{flatChgList:Qe}})}const $e=oe.filter(Qe=>{let{type:qe}=Qe;return qe===l.x.WArrow});if($e.length>0){le=!0;const Qe=$e.map(qe=>({key:qe.key,hotAttr:{arrow:{...qe.arrow,arrowStroke:{...qe.arrow.arrowStroke,bdrColor:(0,Sn.zX)(M)}}}}));v({type:"entry:widget:change",payload:{flatChgList:Qe}})}le||MB.notice({text:"\u9009\u4E2D\u7684\u5BF9\u8C61\u4E0D\u652F\u6301\u5FEB\u901F\u66F4\u6539\u989C\u8272",type:"warning"})},"entry:keyC":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),{isEditingCombo:I}=(0,Tt.r)(v);I||(B({type:"entry:comment:toggle"}),B({type:"entry:ST:STMode:disable"}),B({type:"elbow:update",payload:{isInElbowMode:!1}}))}};class B0{constructor(){(0,Hl.A)(this,"pathMap",new Map),(0,Hl.A)(this,"keyPath",""),(0,Hl.A)(this,"findObjectPathByTargetKey",(G,B,v)=>{Object.entries(G).forEach(I=>{let[M,j]=I;M===B?this.keyPath=v+":"+M:typeof G[M]=="object"&&G[M]!==null&&this.findObjectPathByTargetKey(G[M],B,(v===""?"":v+":")+M)})}),(0,Hl.A)(this,"detectWhichPath",(G,B)=>{let v="";const I=this.pathMap.get(B);return I==null||I.forEach(M=>{const j=M.split(":");let Y=G[j[0]];if(Y!==void 0){for(let oe=1;oe<j.length&&(Y=Y[j[oe]],Y!==void 0);oe++);Y!==void 0&&(v=M)}}),v}),(0,Hl.A)(this,"generatePathMap",(G,B)=>{G.forEach(v=>{v[B]!==void 0?this.keyPath=B:this.findObjectPathByTargetKey(v,B,"");const I=this.pathMap.get(B);I===void 0?this.pathMap.set(B,[this.keyPath]):this.pathMap.set(B,[...I,this.keyPath])})}),(0,Hl.A)(this,"deepUpdate",(G,B,v)=>{const M=this.detectWhichPath(G,B).split(":"),j=(Y,oe)=>M[oe]===B?{...Y,[B]:v}:{...Y,[M[oe]]:{...j(Y[M[oe]],oe+1)}};return j(G,0)})}}var kp=e(21840);const _h={"entry:select:link":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{link:I}}=G;v({type:"entry:select:items",payload:{cids:[I.data.triggerItemKey]}})},"entry:update:single-link":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{link:I}}=G;const M=B(),j=(0,$.Z9)(M),Y=(0,yd.vy)(M),oe=(0,m.Mm)(M),{scene_tag:ie}=(0,o.PL)(M);if(!(j!=null&&j.length)||(j==null?void 0:j.length)>1)return;const{newLink:le,newLinkListBeingCreated:ue}=kd(j[0],I,oe);v({type:"links:active:link",payload:{cid:Y.concat([le.key])}}),MB.action("linklist_beingcreated:update:state",{linkListBeingCreated:ue}),v({type:"entry:rebuild:screen-widget-tree"}),v({type:"entry:refresh:link-list"}),I.transition==="auto"&&(MB.commonGuideHelper.checkGuideHasShown(u.c.GUIDE_PAGE_CREAT_LINK)||MB.commonGuideHelper.tryToShowGuide(u.c.GUIDE_PAGE_CREAT_LINK)),ie&&(ie.split("-")[0]==="DS"?v({type:"entry:update:novice:guide:and:task",payload:{taskType:u.c.GUIDE_NOVICE_2309_TASK_3}}):v({type:"entry:update:novice:guide:and:task",payload:{guideType:u.c.GUIDE_NOVICE_2309_STEP_3,taskType:u.c.GUIDE_NOVICE_2309_TASK_3}}))},"entry:create:link":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{attrs:I,callback:M}}=G;const j=B(),Y=(0,yd.vy)(j),oe=(0,zn.zX)(j),ie=(0,m.Mm)(j),{scene_tag:le}=(0,o.PL)(j),ue=qe=>{I.transition=qe?"auto":"none",qe&&!I.transitionDuration&&(I.transitionDuration="0.2s")};if(I.interactionType===$c.O2.LinkToCanvas||I.interactionType===$c.O2.LinkToSourceCanvas){const qe=(0,ve.EK)(j);ue(qe===1)}if(I.interactionType===$c.O2.SetBasketCanvas){const qe=(0,ve.Bl)(j);ue(qe===1)}if(I.interactionType===$c.O2.OpenOverlay){const qe=(0,ve.D9)(j);ue(qe===1)}if(I.interactionType===$c.O2.SwapOverlay){const qe=(0,ve.KV)(j);ue(qe===1)}const Te=(0,$.Z9)(j),{newLinks:De,nextLinkListBeingCreated:$e}=Zp(Te,I,{selectTableCellInfo:oe,linkListBeingCreated:ie});v({type:"linklist_beingcreated:update:state",payload:{linkListBeingCreated:$e}}),v({type:"entry:rebuild:screen-widget-tree"}),v({type:"entry:refresh:link-list"});const Qe=Te.length===1&&Te[0].type===l.x.WTable&&oe;(De.length===1||Qe)&&(v({type:"links:active:link",payload:{cid:Y.concat([De[0].key])}}),v({type:"update:link:selectLinkItem",payload:De[0]}),v({type:"settings:set:autoTabIndex",payload:{autoTabIndex:1}})),M&&M(De[0],Te),De[0].transition==="auto"&&(MB.commonGuideHelper.checkGuideHasShown(u.c.GUIDE_PAGE_CREAT_LINK)||MB.commonGuideHelper.tryToShowGuide(u.c.GUIDE_PAGE_CREAT_LINK)),le&&(le.split("-")[0]==="DS"?v({type:"entry:update:novice:guide:and:task",payload:{taskType:u.c.GUIDE_NOVICE_2309_TASK_3}}):v({type:"entry:update:novice:guide:and:task",payload:{guideType:u.c.GUIDE_NOVICE_2309_STEP_3,taskType:u.c.GUIDE_NOVICE_2309_TASK_3}}))},"entry:remove:link":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const{link:M}=I,j=B(),Y=(0,yd.vy)(j),oe=(0,zn.zX)(j),ie=(0,$.Z9)(j);let le=ie;le.length===0&&oe&&ie.length&&(le=ie.filter(ue=>ue.name===ue)),Qp(le,M,{selectTableCellInfo:oe}),v({type:"links:active:link",payload:{cid:Y.filter(ue=>ue!==M.key)}}),v({type:"entry:rebuild:screen-widget-tree"}),v({type:"settings:set:autoTabIndex",payload:{autoTabIndex:null}}),v({type:"entry:remove:linkNodeList",payload:{link:M}})},"entry:save:option:link":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const{link:M,currentPath:j}=I,Y=B(),oe=(0,yd.B0)(Y),ie=(0,r0.w_)(Y);if(!ie)return;const le=ps()(oe.optionData),ue=j.split("-");if(ue.length===1){const De=le[j];De.data={...De.data,linkCids:M.subKey}}else{const De=$e=>{$e.data={...$e.data,linkCids:M.subKey}};(0,kp.PM)({newOptionData:le,pathArr:ue,onUpdate:De})}const{newInteractions:Te}=q0(oe,M);v({type:"entry:widget:change",payload:{flatChgList:[{key:oe.key,hotAttr:{optionData:le,interactions:Te}}],shouldReBuildTree:!0}}),v({type:"settings:set:select:option:node",payload:{node:{...ie,data:{...ie.data,linkCids:M.subKey}}}})},"entry:destroy:option:link":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const{link_cid:M,currentPath:j}=I,Y=B(),oe=(0,$.Z9)(Y)[0],ie=ps()(oe.optionData),le=j.split("-");if(le.length===1){const ue=ie[j];ue.data={...ue.data,linkCids:""}}else{const ue=Te=>{Te.data={...Te.data,linkCids:""}};(0,kp.PM)({newOptionData:ie,pathArr:le,onUpdate:ue})}v({type:"entry:widget:change",payload:{flatChgList:[{key:oe.key,hotAttr:{optionData:ie,interactions:oe.interactions.filter(ue=>ue.key!==M)}}],shouldReBuildTree:!0}})},"entry:set:option:item":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,$.Z9)(v)[0];B({type:"update:link:selectOptionLinkItem",payload:{selectOptionLinkItem:I}})}};var Dl=e(85797),_p=e(37593),Hd=e(7233);const Ph={"entry:mind:update:mind-size":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const M=B(),{keyMindToUpdateSize:j="",resizeOrigin:Y="ctr",isCombineChange:oe=!0}=I!=null?I:{},ie=j||(0,We.WH)(M),le=(0,m.UV)(M);if(!ie)return;const ue=le.getNode(ie),{w:Te,h:De}=(0,T.lW)(ue);if(Y==="tl"){const $e=sdkStore.getHotBound(ie),{x:Qe,y:qe}=sdkStore.toAttrXY({x:$e.x-$e.w/2+Te/2,y:$e.y-$e.h/2+De/2,w:Te,h:De},ie);v({type:"entry:widget:change",payload:{flatChgList:[{key:ie,hotAttr:{x:Qe,y:qe,w:Te,h:De}}],isCombineChange:oe}})}else Y==="ctr"&&v({type:"entry:widget:change",payload:{flatChgList:[{key:ie,hotAttr:{w:Te,h:De}}],isCombineChange:oe}})},"entry:mind:mindNode:by:rect":(Z,G)=>{var B;let{getState:v,dispatch:I}=Z,{payload:M}=G;const{rect:{top:j,left:Y,width:oe,height:ie},originalSelection:le}=M,ue=v(),Te=(0,We.WH)(ue),De=(0,m.UV)(ue),$e=(0,ve.vZ)(ue);if(!Te)return;const Qe=[Y,j,Y+oe,j+ie],ut=(B=De.getNode(Te).children[0])==null?void 0:B.children,Bt=ut.find(on=>on.widget.isRoot),[ao,To]=sdkStore.getHotKeyAABB(Te),ko=(0,T.AT)(Bt),Hn=ut.filter(on=>!on.widget.expand).map(on=>{let{key:hn}=on;return(0,Hd.$)(hn,sdkStore)}).flat(1/0);let os=ut.filter(on=>{if(Hn.includes(on.key))return!1;const{x:hn,y:Rn}=on.mindNodePosition,{w:Ln,h:Ms}=on.mindNodeSize,pi=ao+hn+ko.x,Ts=To+Rn+ko.y,Js=[pi,Ts,pi+Ln,Ts+Ms];return $e?(0,kt.Pn)(Qe,Js):(0,kt.cj)(Qe,Js)}).map(on=>on.key);os=[...os,...le].filter(on=>!os.includes(on)||!le.includes(on)),I({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:os}})},"entry:mind:add:node-mind":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{node:I,type:M,defaultText:j,attr:Y={}}}=G;if(!(0,Fn._c)({type:l.x.WMindNode}))return;const oe=B(),ie=(0,We.ul)(oe);if(ie.length>1)return;const le=(0,m.UV)(oe),ue=I||le.getNode(ie[0]);sdkStore.combineMergeMark("add-mind-node");const Te=(0,ce.cF)();if(M===Pd.eB.SAME_LEVEL){if(ue.widget.isRoot)return;if(ue.parent.type===l.x.WMindNode){const De=ue.widget.order+1,$e=j||I18N.FloatingToolbar.Mind.nodeDefaultName+" "+(ue.parent.children.length+1);sdkStore.updateHotItem({key:Te,sup:ue.parent.key,sub:[],hotAttr:{...(0,_p.yf)($e,$e,!1,De),placement:ue.widget.placement,...Y}}),Kd(ue),(0,oh.h)("\u589E\u52A0\u8282\u70B9")}}else if(M===Pd.eB.CHILD_LEVEL){ue.widget.expand||sdkStore.updateHotAttrKV(ue.key,"expand",!0);const De=ue.children.length+1,$e=j||I18N.FloatingToolbar.Mind.nodeDefaultName+" "+(ue.children.length+1);sdkStore.updateHotItem({key:Te,sup:ue.key,sub:[],hotAttr:{...(0,_p.yf)($e,$e,!1,De),placement:ue.widget.placement,...Y}}),(0,oh.h)("\u589E\u52A0\u8282\u70B9")}v({type:"entry:rebuild:screen-widget-tree"}),v({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:[Te]}}),v({type:"entry:mind:update:mind-size"}),sdkStore.combineMerge("add-mind-node")},"entry:mind:del:selected:node-mind":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,We.UN)(v),M=(0,We.g0)(v);if(I||M){sdkStore.combineMergeMark("delete-mindNode-param"),I?(B({type:"entry:widget:change",payload:{flatChgList:[{key:I,hotAttr:{icon:""}}],shouldReBuildTree:!0,isCombineChange:!1}}),B({type:"mind:update:state",payload:{selectedMindNodeFlagIconKey:""}}),B({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:[I]}})):(B({type:"entry:widget:change",payload:{flatChgList:[{key:M,hotAttr:{image:{imageRef:"",imageRectWidth:0,imageRectHeight:0}}}],shouldReBuildTree:!0,isCombineChange:!1}}),B({type:"mind:update:state",payload:{selectedMindNodeImageKey:""}}),B({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:[M]}})),B({type:"entry:mind:update:mind-size",payload:{isCombineChange:!1}}),sdkStore.combineMerge("delete-mindNode-param");return}const j=(0,We.fo)(v).filter(ue=>!ue.widget.isRoot),Y=j.sort(T.ZC).map(ue=>ue.key);sdkStore.combineMergeMark("delete-mind-node"),sdkStore.deleteHotItemBatch(Y);const oe=a1(j);let ie=j[j.length-1],le;if(ie){for(;ie.parent&&oe.includes(ie.parent);)ie=ie.parent;const ue=ie.isMindFirstDepth?ie.parent.children.filter(De=>De.widget.placement===ie.widget.placement):ie.parent.children;let Te=ue.findIndex(De=>De.key===ie.key);for(;Te-->=0&&!le;)le=ue[Te],oe.includes(le)&&(le=null);if(!le)for(le=ie.parent;!le.widget.isRoot&&oe.includes(le);)le=le.parent}B({type:"entry:rebuild:screen-widget-tree"}),B({type:"entry:mind:update:mind-size"}),sdkStore.combineMerge("delete-mind-node"),le&&(sdkStore.isTrashed(le.key)||B({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:[le.key]}}))},"entry:mind:insert:asset":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{asset:I}}=G;const M=B(),j=(0,We.fo)(M);if(j.length===1){const Y=(0,J.t$)(I),oe=j[0].key,ie=[{key:oe,hotAttr:{image:Y}}];sdkStore.combineMergeMark("insert-mindNode-image"),v({type:"entry:widget:change",payload:{flatChgList:ie,shouldReBuildTree:!0,isCombineChange:!1}}),v({type:"entry:mind:update:mind-size",payload:{isCombineChange:!1}}),sdkStore.combineMerge("insert-mindNode-image"),v({type:"mind:update:state",payload:{selectedMindNodeImageKey:oe}})}},"entry:mind:copy:node:properties":async(Z,G)=>{let{getState:B}=Z,{payload:v}=G;const I=B(),M=(0,We.fo)(I);if(M.length===1){const j=(0,Lc.g)(I);await(0,p0.vz)({...j,selectedTrees:M}),await(0,_l.$H)({hasNotice:!1})&&(0,Vl.P8)()}},"entry:mind:cut:node":Z=>{let{dispatch:G}=Z;G({type:"entry:mind:copy:selected:node-mind"}),G({type:"entry:mind:del:selected:node-mind"})},"entry:mind:paste:node:properties":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const M=B(),j=(0,We.fo)(M),Y=await(0,Vl._d)({isShowPrompt:!0});if(Y&&j!=null&&j.length){const oe=j.map(ie=>{let{widget:le}=ie;const ue=new Set,Te=(0,p0.MP)(Y,le,ue,!1);return{key:le.key,hotAttr:Te}});v({type:"entry:widget:change",payload:{flatChgList:oe,shouldReBuildTree:!0}}),v({type:"entry:mind:update:mind-size"})}},"entry:mind:start:drag:mind-node":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const{e:M,mindNodeKey:j}=I,Y=B(),oe=(0,o.X_)(Y),ie=(0,o.$S)(Y),le=(0,o.ER)(Y),ue=(0,We.ul)(Y),Te=(0,m.UV)(Y),De=(0,We.WH)(Y),$e=(0,We.UN)(Y),Qe=(0,We.g0)(Y),qe=(0,We.aJ)(Y),Bt=Te.getNode(De).children[0].children.find(os=>os.widget.isRoot),ao=(0,T.AT)(Bt);let To=[...ue];if(ue.includes(j)||(To=[j]),To.length===0||To.find(os=>sdkStore.getHotItem(os).hotAttr.isRoot)||$e||Qe||!qe)return;let ko=null,vn=null,Hn=null;(0,T.Xb)(M,{scale:oe,viewportRect:ie,offset:le},{onDragStart:()=>{ue.includes(j)||v({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:[j]}}),v({type:"mind:update:draggingState",payload:{isDragging:!0}}),v({type:"end:range:select"})},onDragging:os=>{const on=(0,T.D7)(De,ao),hn=(0,Dl.fJ)(on,os.x,os.y);let{closestMindNode:Rn,relPos:Ln}=(0,T.wj)(hn,Bt,Ms=>To.includes(Ms))||{};if(Rn?vn=hn:vn&&Math.abs(vn.x-hn.x)<100&&Math.abs(vn.y-hn.y)<100&&(Rn=ko,Ln=Hn),Rn!==ko||Ln!==Hn){if(ko=Rn,Hn=Ln,!Rn){v({type:"mind:update:draggingState",payload:{mindNodeToAttach:null,attachPosition:null,attachToSelf:null}});return}if(To.includes(Rn.key)&&(Rn.widget.placement==="right"?Ln.startsWith("right"):Ln.startsWith("left"))){v({type:"mind:update:draggingState",payload:{mindNodeToAttach:null,attachPosition:null,attachToSelf:null}});return}const[Ms,pi,Ts]=(0,T.Id)(Rn,Ln);v({type:"mind:update:draggingState",payload:{mindNodeToAttach:Ms,attachPosition:pi,attachToSelf:Ts}})}},onDragEnd:()=>{const os=B(),{mindNodeToAttach:on,attachPosition:hn}=(0,We.H_)(os);if(on){const Rn=To.map(Ms=>Te.getNode(Ms));let Ln=[...To];switch(Rn.forEach(Ms=>{let pi=Ms.parent;do{if(Ln.includes(pi.key)){Ln=Ln.filter(Ts=>Ms.key!==Ts);break}pi=pi.parent}while(pi.type==="wMindNode")}),sdkStore.combineMergeMark("drag-and-attach"),hn){case"left":{const Ms=sdkStore.getSubHotItemList(on.key).reduce((pi,Ts)=>Math.max(Ts.hotAttr.order,pi),0);Ln.forEach((pi,Ts)=>{sdkStore.moveHotItem(pi,on.key),sdkStore.updateHotAttrMerge(pi,{placement:"left",order:Ts+Ms+1}),sdkStore.walkHotItemSubtree(pi,Js=>{sdkStore.updateHotAttrKV(Js.key,"placement","left")})});break}case"right":{const Ms=sdkStore.getSubHotItemList(on.key).reduce((pi,Ts)=>Math.max(Ts.hotAttr.order,pi),0);Ln.forEach((pi,Ts)=>{sdkStore.moveHotItem(pi,on.key),sdkStore.updateHotAttrMerge(pi,{placement:"right",order:Ts+Ms+1}),sdkStore.walkHotItemSubtree(pi,Js=>{sdkStore.updateHotAttrKV(Js.key,"placement","right")})});break}case"above":{const Ms=sdkStore.getSubHotItemList(on.parent.key).filter(Js=>Js.hotAttr.placement===on.widget.placement).sort((Js,ki)=>Js.hotAttr.order-ki.hotAttr.order).map(Js=>Js.key),pi=on.widget.placement,Ts=Ms.findIndex(Js=>Js===on.key);Ms.slice(Ts,Ms.length).forEach(Js=>{const ki=sdkStore.getHotItem(Js).hotAttr.order;sdkStore.updateHotAttrKV(Js,"order",ki+Ln.length)}),Ln.forEach((Js,ki)=>{sdkStore.moveHotItem(Js,on.parent.key),sdkStore.updateHotAttrMerge(Js,{order:on.widget.order+ki,placement:pi}),sdkStore.walkHotItemSubtree(Js,js=>{sdkStore.updateHotAttrKV(js.key,"placement",pi)})});break}case"below":{const Ms=sdkStore.getSubHotItemList(on.parent.key).filter(Js=>Js.hotAttr.placement===on.widget.placement).sort((Js,ki)=>Js.hotAttr.order-ki.hotAttr.order).map(Js=>Js.key),pi=on.widget.placement,Ts=Ms.findIndex(Js=>Js===on.key);Ms.slice(Ts+1,Ms.length).forEach(Js=>{const ki=sdkStore.getHotItem(Js).hotAttr.order;sdkStore.updateHotAttrKV(Js,"order",ki+Ln.length)}),Ln.forEach((Js,ki)=>{sdkStore.moveHotItem(Js,on.parent.key),sdkStore.updateHotAttrMerge(Js,{order:on.widget.order+ki+1,placement:pi}),sdkStore.walkHotItemSubtree(Js,js=>{sdkStore.updateHotAttrKV(js.key,"placement",pi)})});break}}v({type:"entry:rebuild:screen-widget-tree"}),v({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:Ln}}),v({type:"entry:mind:update:mind-size"}),sdkStore.combineMerge("drag-and-attach")}v({type:"mind:update:draggingState",payload:{isDragging:!1,mindNodeToAttach:null,attachPosition:null,attachToSelf:null}})}})},"entry:mind:copy:selected:node-mind":async Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,We.ul)(v),M=(0,We.WH)(v),j=(0,m.UV)(v),Y=I.map(le=>j.getNode(le));let oe=[...I];Y.forEach(le=>{let ue=le.parent;do{if(oe.includes(ue.key)){oe=oe.filter(Te=>le.key!==Te);break}ue=ue.parent}while(ue.type==="wMindNode")});const ie=sdkStore.saveSubtree(oe);await(0,Vl.NO)({data:ie,commonKeyRndSup:sdkStore.getHotItem(M).sup}),B({type:"entry:mind:copy:node:properties"})},"entry:mind:enter:text:editing":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{isSelectAll:I=!1}}=G;const M=B(),j=(0,We.ul)(M);if(!j.length)return;const Y=j[j.length-1];v({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:[Y]}}),v({type:"mind:update:isShallowEditText",payload:!1}),v({type:"mind:update:isEditingSelectAll",payload:I}),v({type:"mind:update:isEditingMoveToEnd",payload:!I})},"entry:mind:update:textV1":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,We.ux)(v),M=(0,o.Mj)(v);if(!M||!I)return;const j=(0,Qn.dM)(M.getCurrentContent()),Y=(0,Tn.qn)(j);if((0,ys.eI)(Y,I.textV1))return;const ie=(0,bi.zs)([I],"textV1",Y).map(le=>({key:le.cid,hotAttr:{...le,name:le.display_name}}));B({type:"entry:widget:change",payload:{flatChgList:ie,shouldReBuildTree:!0}}),B({type:"mind:update:state",payload:{selectedMindNodeKeys:[I.key]}}),B({type:"mind:update:isShallowEditText",payload:!1}),B({type:"mind:update:isEditingSelectAll",payload:!1}),B({type:"mind:update:isEditingMoveToEnd",payload:!1})},"entry:mind:arrow:key":(Z,G)=>{var B,v;let{getState:I,dispatch:M}=Z,{payload:j}=G;const{direction:Y}=j,oe=I(),ie=(0,We.fo)(oe),le=(0,We.UN)(oe),ue=(0,We.g0)(oe);if(ie.length===0||le||ue)return;const Te=ie[ie.length-1];let De="";switch(Y){case Pd.M8.LEFT:De=Te.widget.isRoot||Te.widget.placement==="left"?Pp(Te,"left"):Te==null||(B=Te.parent)==null?void 0:B.key;break;case Pd.M8.RIGHT:De=Te.widget.placement==="left"?Te==null||(v=Te.parent)==null?void 0:v.key:Pp(Te,"right");break;case Pd.M8.UP:if(Te.widget.isRoot)break;if(Te.isMindFirstDepth){var $e;const Bt=au(Te);De=($e=Bt[Bt.findIndex(ao=>ao.key===Te.key)-1])==null?void 0:$e.key}else{var Qe;const Bt=iu(Te);De=(Qe=Bt[Bt.findIndex(ao=>ao.key===Te.key)-1])==null?void 0:Qe.key}break;case Pd.M8.DOWN:if(Te.widget.isRoot)break;if(Te.isMindFirstDepth){var qe;const Bt=au(Te);De=(qe=Bt[Bt.findIndex(ao=>ao.key===Te.key)+1])==null?void 0:qe.key}else{var ut;const Bt=iu(Te);De=(ut=Bt[Bt.findIndex(ao=>ao.key===Te.key)+1])==null?void 0:ut.key}break;default:De="";break}De&&(M({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:[De]}}),M({type:"entry:mind:move:in:viewport",payload:{newKey:De}}))},"entry:mind:move:in:viewport":(Z,G)=>{var B;let{getState:v,dispatch:I}=Z,{payload:{newKey:M=""}}=G;const j=v(),Y=(0,We.WH)(j);if(!M&&!Y)return;const oe=(0,m.UV)(j),ie=oe.getNode(M),[le,ue]=sdkStore.getHotAABB(Y),De=(B=oe.getNode(Y).children[0])==null?void 0:B.children.find(ko=>ko.widget.isRoot),$e=(0,T.AT)(De),Qe=[le,ue,le+ie.mindNodePosition.x+$e.x+ie.mindNodeSize.w,ue+ie.mindNodePosition.y+$e.y+ie.mindNodeSize.h],qe=(0,o.X_)(j),ut=(0,o.$S)(j),Bt=(0,o.ER)(j),ao={scale:qe/100,size:{w:ut.width,h:ut.height},offset:Bt};if(!(0,_r._W)(ao,ut.left,Qe)){const ko=(0,_r.WO)(ao,ut.left);let vn=0,Hn=0;ko[0]>Qe[0]&&(vn=Qe[0]-ko[0]),ko[2]<Qe[2]&&(vn=Qe[2]-ko[2]),ko[1]>Qe[1]&&(Hn=Qe[1]-ko[1]),ko[3]<Qe[3]&&(Hn=Qe[3]-ko[3]),I({type:"design:set:canvas:offset",payload:{offset:{x:Bt.x-vn,y:Bt.y-Hn}}})}}},Kd=Z=>{const G=[...Z.parent.children],B=G.findIndex(v=>v.key===Z.key)+1;G.splice(B,0,null),G.forEach((v,I)=>{if(v&&(v.sup!==Z.sup||v.widget.order!==I+1)){const M=sdkStore.getHotItem(v.key),j={...M,hotAttr:{...M.hotAttr,order:I+1}};sdkStore.updateHotItem(j)}})},Pp=function(Z,G){var B;if(G===void 0&&(G="left"),!Z.widget.expand)return"";const v=Z.children.filter(j=>j.widget.placement===G);if(v.length===0)return"";let I=Math.abs(v[0].mindNodePosition.y-Z.mindNodePosition.y),M=(B=v[0])==null?void 0:B.key;for(let j=1;j<v.length;j++)Math.abs(v[j].mindNodePosition.y-Z.mindNodePosition.y)<I&&(I=Math.abs(v[j].mindNodePosition.y-Z.mindNodePosition.y),M=v[j].key);return M},iu=Z=>Z.parent.parent.children.sort(T.ZC).map(G=>G.children.filter(B=>B.widget.placement===Z.widget.placement).sort(T.ZC)).flat(),au=Z=>Z.parent.children.filter(G=>G.widget.placement===Z.widget.placement).sort(T.ZC),a1=Z=>{const G=[];return Z.forEach(B=>{G.push(B),Array.isArray(B.children)&&Array.prototype.push.apply(G,a1(B.children))}),G},ru={"entry:navigationMenu:migrate":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const{key:M}=I;if(!sdkStore.getHotItem(M))return;let Y=!1;if((0,gt.OO)(M)){var oe;const ue=(0,gt.QL)(M)[0],Te=(oe=sdkStore.getHotItem(ue))==null?void 0:oe.hotAttr;Te&&(Y=Te.type==="wBasket"&&Te.basket==="bDanli")}if(Y)return;v({type:"entry:widget:change",payload:{flatChgList:[{key:M,hotAttr:{"!version":2}}]}})},"entry:set:navigationMenu:canExpandOneMenu":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,$.Z9)(v);if(!(I.length>0))return;const j=[];I.forEach(Y=>{if(Y.optionData.findIndex(ie=>ie.data.designExpanded)!==-1){const ie=Y.optionData.map((le,ue)=>ue?{...le,data:{...le.data,designExpanded:!1}}:{...le,data:{...le.data,designExpanded:!0}});j.push({key:Y.key,hotAttr:{optionData:ie}})}}),B({type:"entry:widget:change",payload:{flatChgList:j}})},"entry:set:navigationMenu:canExpandOneMenu2":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,$.Z9)(v);if(!(I.length>0))return;const j=[];I.forEach(Y=>{let oe=!1;const{optionDataDesignUnExpanded:ie}=Y;let le=[...ie];Y.optionData.forEach((ue,Te)=>{le.findIndex(De=>De===ue.data.cid)===-1&&Te&&(le.push(ue.data.cid),oe=!0),ie.includes(ue.data.cid)&&!Te&&(le=le.filter(De=>De!==ue.data.cid),oe=!0)}),oe&&j.push({key:Y.key,hotAttr:{optionDataDesignUnExpanded:le}})}),B({type:"entry:widget:change",payload:{flatChgList:j}})}};var Zh=e(86803);const lu={"quit:rich:text:editing":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const{isWidgetFirstEdit:M,isNeedMigrateLinkItalic:j,onlySave:Y}=I||{};MB.f.isPastingRichText=!1;const oe=B(),ie=(0,Ut.c)(oe),le=(0,We.ux)(oe),ue=(0,o.Mj)(oe),Te=ie||le;if(!Te||(Y||ie&&(0,Wo.ay)(ie,"remove"),!ue))return;const De=(0,Qn.dM)(ue.getCurrentContent()),$e=(0,Tn.qn)(De),Qe=(0,Zh.SD)($e.blocks);M&&!Qe&&(0,Hs.p4)(Te.type,Te.richTextV1),j&&(Te["!liVersion"]=3);const qe=(0,bi.zs)([Te],"textV1",$e);if(Te.type===l.x.WSwimlane){const{tl:{x:Bt,y:ao}}=Je.X.query.getSelectedCellsInfo(oe),{cells:To,table:ko}=qe[0].database,vn=ko[ao][Bt];To[vn].textV1=qe[0].textV1}const ut=qe.map(Bt=>({key:Bt.cid,hotAttr:{...Bt,name:Bt.display_name},notTriggerAttachedUpdate:!0}));v({type:"entry:widget:change",payload:{flatChgList:ut,shouldBreakLayerUICache:!0}}),!Y&&(v({type:"set:editing:cid",payload:{cid:""}}),v({type:"clear:rich:text:editor:state"}),v({type:"flow:update:state",payload:{isDeepEditing:!1}}),v(i.GO.update({textEditor:{selectionAttrs:{},defaultAttrs:{}}})),le&&v({type:"entry:mind:update:mind-size"}))},"entry:remove:selected:items:from-rich-text":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{hotItems:I}}=G;const M=I[0];if(M){const{key:Y,hotAttr:{type:oe,textV1:ie}}=M;if(oe===l.x.WRichText){var j;const le=(0,Fa.YZ)(ie),ue=document.createElement("div");ue.innerHTML=le,((j=ue.innerText)==null?void 0:j.length)===0&&sdkStore.deleteHotItem(Y)}}}};var nh=e(63646),Xh=e(64792);const cu=Z=>{var G;if(!(0,gt.OO)(Z))return!1;const B=(0,gt.QL)(Z)[0];return((G=sdkStore.getHotItem(B).hotAttr)==null?void 0:G.basket)!=="bMuban"};var r1=e(97788);let l1=null;const Hc=1e3,Nh={"entry:select:all":Z=>{let{getState:G,dispatch:B}=Z;const v=G();let I=[];const M=(0,$.p$)(v);let j=!1,Y=!1,oe=!1,ie=!1;const le=[...new Set(M.map(ue=>{let Te=!1,De=ue;const{hotAttr:$e}=sdkStore.getHotItem(ue),{type:Qe,refWCKey:qe,isLock:ut}=$e;ut&&(ie=!0),(Qe==="wSticky"||Qe==="wTear")&&(qe?sdkStore.getHotItem(qe).hotAttr.type==="rResCanvas"&&(Te=!0):j=!0,De=qe);let Bt="";if(De){const{hotAttr:ao}=sdkStore.getHotItem(De);ao.type==="rResCanvas"&&!Te&&(Y=!0),Bt=sdkStore.locUpColdCanvasKey(De)}return Bt||(j=!0),Bt}))];if(oe=le.length===1,!Y&&oe&&!j){const ue=sdkStore.getHotItem(le[0]).sub.filter($e=>{const Qe=sdkStore.getHotItem($e);return Qe.hotAttr.type==="wWrap"&&Qe.sub.length===0?!1:ie||Qe.hotAttr.isLock!==!0}),Te=(0,o.Ur)(v).cid,De=(0,gc.GG)(Te,le[0]).map($e=>$e.key);I=ue.concat(De)}else I=(0,Ne.Bk)(v).map(Te=>Te.cid).filter(Te=>ie||sdkStore.getHotItem(Te).hotAttr.isLock!==!0);B({type:"entry:update:selection:select:items",payload:{cids:I}}),B({type:"entry:select:smartly",payload:{shouldAlign:!0}})},"entry:select:items":(Z,G)=>{var B;let{getState:v,dispatch:I}=Z,{payload:{cids:M,hasClearVectorEditing:j=!0,fromUndoRedo:Y}}=G;const oe=v(),ie=(0,o.KW)(oe),le=(0,Ne.Pm)(oe);if(M=M.filter(Qe=>!(sdkStore.isTrashed(Qe)||cu(Qe))),!(M.length===1&&M[0]===le)&&le&&I({type:"mode:update:state",payload:{isEditingEditableWidgetCid:""}}),ie&&(clearTimeout(l1),I({type:"reducer:flag:set:is-selection-border-resizer",payload:{isHideSelectionBorder_Resizer:!1}})),M.length===1){var ue;const Qe=sdkStore.getHotItem(M[0]);if(Qe&&((ue=Qe.hotAttr)==null?void 0:ue.type)===l.x.WTable){const qe=(0,zn.nh)(oe);(Qe==null?void 0:Qe.key)!==(qe==null?void 0:qe.cid)&&I({type:"table:update:info",payload:{selectTableCellInfo:null}})}}const Te=Array.from(new Set(M));I({type:"entry:update:selection:select:items",payload:{cids:Te}}),I({type:"entry:update:select:items:links",payload:{fromUndoRedo:Y}});const De=(0,$.Z9)(v());if(De.length===1&&((B=De[0])==null||(B=B.hotAttr)==null?void 0:B.type)===l.x.Canvas){var $e;I({type:"entry:memory:last:screenAndCanvas",payload:{canvasKey:($e=De[0])==null?void 0:$e.key}})}j&&I({type:"entry:vector:exit:edit"}),setTimeout(()=>{var Qe,qe,ut;I({type:"entry:select:smartly",payload:{shouldAlign:!0}}),(0,xn.K)(I18N)[u.c.GUIDE_ALL_REPLACE_PAGE].howToShow(Te),(0,xn.K)(I18N)[u.c.GUIDE_BASKET_MUBAN_USE].howToShow(Te),(0,xn.K)(I18N)[u.c.GUIDE_SELECT_STICKY].howToShow(Te),(Qe=MB)==null||(Qe=Qe.commonGuideHelper)==null||Qe.tryToShowGuide(u.c.GUIDE_COMMON_V9_OPERATIONS_GUIDE),!(ENV.IS_WONDER_SHARE||MB.f.isSelecting||Te.length<2||(qe=MB)!=null&&(qe=qe.commonGuideHelper)!=null&&qe.checkGuideHasShown(u.c.GUIDE_COPY_AS_PNG))&&((ut=MB)==null||(ut=ut.commonGuideHelper)==null||ut.tryToShowGuide(u.c.GUIDE_COPY_AS_PNG))})},"entry:update:select:items:links":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const M=B();if((0,m.FG)(M))return;const Y=(0,yd.yk)(M),oe=(0,$.x$)(M),ie=(0,yd.vy)(M),le=(0,zn.zX)(M),ue=oe.length===1?oe[0].hotAttr.interactions.reduce(($e,Qe)=>Qe.subKey?$e:$e.concat([Qe.key]),[]):"",Te=yt()(ie,ue);if(le){var De;if(I!=null&&I.fromUndoRedo&&((De=oe[0])==null?void 0:De.type)==="wTable"&&(0,r1.PP)(le)===1){const{interactions:$e,cells:Qe,table:qe}=sdkStore.getHotItem(oe[0].key).hotAttr,{selectionLeftTopInfo:{x:ut,y:Bt},selectionRightBottomInfo:{x:ao,y:To}}=le;(0,r1.In)({x1:ut,x2:ao,y1:Bt,y2:To},(ko,vn)=>{const{oldCellItas:Hn}=(0,Fr.iL)({cells:Qe,table:qe,interactions:$e,j:vn,i:ko});v({type:"links:active:link",payload:{cid:Hn.map(os=>os.key)}})})}}else Te||v({type:"links:active:link",payload:{cid:ue}});Y&&!ue.includes(Y.key)&&v({type:"update:link:selectLinkItem",payload:null}),I!=null&&I.fromUndoRedo||document.getElementById("interaction-panel-float")||v(Ls.R7.command.clearAllCommand({}))},"entry:select:items:by:rect":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const{rect:{top:M,left:j,width:Y,height:oe},originalSelection:ie}=I,le=B(),ue=(0,m.RX)(le),Te=(0,jo.$7)(le),De=(0,o.X_)(le);if((0,Ne.lY)(le))return;const Qe=(0,ve.vZ)(le),qe={x:j,y:M,w:Y,h:oe};let ut=(0,Xh.I)(ue,qe,!Qe,Te,De);ut=[...ut,...ie].filter(Bt=>!ut.includes(Bt)||!ie.includes(Bt)),v({type:"entry:select:items",payload:{cids:ut}})},"entry:auto:show:hide:item":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=!(0,o.KW)(v),M=!(0,nt.$)(v).isHidden;I&&B({type:"reducer:flag:set:is-selection-border-resizer",payload:{isHideSelectionBorder_Resizer:!0}}),M&&B(nh.UU.update({isHidden:!0})),clearTimeout(l1),l1=setTimeout(()=>{B({type:"reducer:flag:set:is-selection-border-resizer",payload:{isHideSelectionBorder_Resizer:!1}}),B(nh.UU.update({isHidden:!1}))},Hc)},"entry:expend:groupOrCanvasOrBasket":(Z,G)=>{let{dispatch:B}=Z,{payload:{cids:v}}=G;const I=new Set;v.map(M=>{sdkStore.findUpHotItemList(M).filter(j=>{var Y;return[l.x.Canvas,l.x.WWrap,l.x.WBasket].includes(j==null||(Y=j.hotAttr)==null?void 0:Y.type)&&j.key!==M}).forEach(j=>I.add(j.key))}),I.size!==0&&B({type:"layerExpandedKeySet:delAllSet:ref",payload:{refs:[...Array.from(I)]}})},"entry:isShowSticky:toggle":(Z,G)=>{var B;let{getState:v,dispatch:I}=Z,{payload:M}=G;const j=v();if(!((B=M==null?void 0:M.isShowSticky)!=null?B:!(0,jo.$7)(j))){const ie=(0,$.Z9)(j).filter(le=>{var ue;return((ue=le.hotAttr)==null?void 0:ue.type)!==l.x.WSticky}).map(le=>le.key);I({type:"entry:update:selection:select:items",payload:{type:"selection:select:items",cids:ie}})}I({type:"toolbar:isShowSticky:toggle",payload:M})}},c1=(Z,G,B,v)=>{const I=sdkStore.getHotItem(Z);return{key:Z,hotAttr:{[G]:{...I.hotAttr[G],[B]:v}}}},L1={"entry:set:slider:attr":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const{attr:M,value:j}=I,Y=B(),ie=(0,$.p$)(Y).map(le=>c1(le,"slider",M,j));v({type:"entry:widget:change",payload:{flatChgList:ie}})},"entry:digital-stepper:attr:set":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const{attr:M,value:j}=I,Y=B(),ie=(0,$.p$)(Y).map(le=>c1(le,"digitalStepper",M,j));v({type:"entry:widget:change",payload:{flatChgList:ie}})},"entry:switch:attr:set":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const{attr:M,value:j}=I,Y=B(),ie=(0,$.p$)(Y).map(le=>c1(le,"switch",M,j));v({type:"entry:widget:change",payload:{flatChgList:ie}})}};var Gd=e(28717);const du={"entry:smart-selection:updating:gap":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const M=B(),j=(0,nt.$)(M),Y=j.selectedWidgetInfo,{rowGap:oe,colGap:ie}=I;let le,ue;if(oe!==void 0){const{colGap:Te,rowStates:De}=j;({result:le,changes:ue}=(0,Gd.KC)(Y,Te,oe,De))}else if(ie!==void 0){const{rowGap:Te,rowStates:De}=j;({result:le,changes:ue}=(0,Gd.KC)(Y,ie,Te,De))}v(nh.UU.update({...I,rowStates:le})),v({type:"entry:widget:change",payload:{flatChgList:ue}})},"entry:select:smartly":(Z,G)=>{var B;let{getState:v,dispatch:I}=Z,{payload:M}=G;const j=v(),Y=(0,Gd.$3)((0,$.Z9)(j));if(Y.length<=1){I(nh.UU.reset());return}const oe=(0,Gd.cb)(Y),ie=(0,Gd.kW)(oe,Y),le=(B=M==null?void 0:M.shouldAlign)!=null?B:!1;let ue=[],Te=[],De=Gd.jH,$e=Gd.jH;ie&&({result:Te,changes:ue,lineSpace:De,itemMargin:$e}=(0,Gd.Im)(oe,null,null,Y.length===2?!1:le)),I(nh.UU.update({isActive:ue.length===0&&ie,selectedWidgetInfo:oe,rowGap:De,colGap:$e,rowStates:Te,changes:ue,enableMarginChange:ie}))},"entry:smart-selection:arrange:widgets":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),{changes:I}=(0,nt.$)(v);B({type:"entry:widget:change",payload:{flatChgList:I}});const M=(0,Gd.$3)((0,$.Z9)(v)),j=(0,Gd.cb)(M),{result:Y}=(0,Gd.Im)(j,null,null);B(nh.UU.update({rowStates:Y,isActive:!0,changes:[]}))}},sh=Z=>{let{pageKey:G,stickyAABB:B,fakePointToDir:v,isOnlyCanvas:I=!1,isCtrlDown:M,stickyPointVersion:j}=Z;const[Y,oe,ie]=B;let le={x:Y-35,y:oe+9};v==="r"&&(le={x:ie+35,y:oe+9});const ue=(0,C.Dg)(le,1,G,{isSkipST:!0,isOnlyCanvas:I});if(ue.hitKey){(0,C.h9)(ue,[],M?"ctrl":"default",!0);const{x:Te,y:De,w:$e,h:Qe}=sdkStore.getHotBound(ue.hitKey);return j===2?{point:[le.x-Te+$e/2,le.y-De+Qe/2],bindingKey:ue.hitKey}:{point:[le.x-Te,le.y-De],bindingKey:ue.hitKey}}},D1=Z=>{let{stickyAABB:G,canvasKey:B}=Z;const v=sdkStore.getHotAABB(B),I=[v[0]-40,v[1],v[2]+40,v[3]];return(0,kt.cj)(I,G)},h0={"entry:ST:STMode:disable":Z=>{let{dispatch:G}=Z;G({type:"ST:update",payload:{STMode:!1}}),G({type:"entry:observe:dom:right-panel-width"})},"entry:ST:STMode:enable":Z=>{let{dispatch:G}=Z;G(i.GO.select([])),G({type:"ST:update",payload:{STMode:!0}}),G({type:"entry:observe:dom:right-panel-width"})},"entry:ST:tear:bind":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{tearKey:I,afterCreate:M=!1}}=G;const j=B(),Y=(0,o.eo)(j),oe=(0,$.p$)(j),{isCtrlDown:ie}=(0,o.ZS)(j);if(M){const le=sdkStore.getHotItem(I),ue=(0,C.Dg)(le.hotAttr,1,Y,{isSkipST:!0});ue&&((0,C.h9)(ue,oe,ie?"ctrl":"default",!0),v({type:"entry:widget:change",payload:{flatChgList:[{key:I,hotAttr:{refWCKey:ue.hitKey}}]}}))}else{const le=(0,Ho.LS)(j);v({type:"entry:widget:change",payload:{flatChgList:[{key:I,hotAttr:{refWCKey:le.bindingKey}}]}})}},"entry:ST:tears:bind":(Z,G)=>{var B;let{getState:v,dispatch:I}=Z,{payload:{tearKeys:M}}=G;const j=v(),Y=(0,Ho.LS)(j);if(!Y||!(Y!=null&&Y.stickyKey))return;const oe=Y==null||(B=Y.stickyKey)==null?void 0:B.split(",");if(!(oe!=null&&oe.length))return;const ie=[];M.forEach(le=>{oe.includes(le)&&ie.push({key:le,hotAttr:{refWCKey:Y.bindingKey}})}),I({type:"entry:widget:change",payload:{flatChgList:ie}})},"entry:ST:drag:sticky:point:fake:bind":(Z,G)=>{var B;let{getState:v,dispatch:I}=Z,{payload:{stickyKey:M,stickyAABBP:j,callback:Y}}=G;const oe=v(),ie=(0,o.eo)(oe),le=(0,Ho.sL)(oe),ue=(0,Ho.SF)(oe),Te=sdkStore.getHotItem(M),{isCtrlDown:De}=(0,o.ZS)(oe);if(Te!=null&&Te.hotAttr.refWCKey||(Te==null||(B=Te.hotAttr.sticky.point)==null?void 0:B.length)>0)return;const $e=j||sdkStore.getHotAABB(M);let Qe,qe,ut=ue,Bt;if(ue)if(D1({stickyAABB:$e,canvasKey:ue}))qe=(0,C.di)({stickyAABB:$e,canvasKey:ue,preDir:le}),Bt=sh({pageKey:ie,stickyAABB:$e,fakePointToDir:qe,isCtrlDown:De});else{const ao=(0,C.VI)($e,ie);qe=ao?(0,C.di)({stickyAABB:$e,canvasKey:ao,preDir:le}):le,ut=ao||"",Bt=sh({pageKey:ie,stickyAABB:$e,fakePointToDir:qe,isCtrlDown:De})}else{const ao=(0,C.VI)($e,ie);ut=ao||"",qe=ao?(0,C.di)({stickyAABB:$e,canvasKey:ao,preDir:le}):le,Bt=sh({pageKey:ie,stickyAABB:$e,fakePointToDir:qe,isCtrlDown:De})}Bt?Qe={stickyKey:M,bindingKey:Bt.bindingKey,isBinded:!0}:Qe={stickyKey:M,bindingKey:"",isBinded:!1},I({type:"ST:update",payload:{fakeBindingInfo:Qe,fakePointToDir:qe,prevBindingCanvasKey:ut}}),Y&&Y({fakeBindingInfo:Qe,fakePointToDir:qe})},"entry:ST:drag:sticky:point:real:bind":(Z,G)=>{var B;let{getState:v,dispatch:I}=Z,{payload:{stickyKey:M,stickyAABBP:j,callback:Y,createSource:oe}}=G;const ie=v(),le=sdkStore.getHotItem(M);if(!le)return;const{isCtrlDown:ue}=(0,o.ZS)(ie),{refWCKey:Te,sticky:De,"!stickyPointVersion":$e}=le.hotAttr;if(Te||((B=De.point)==null?void 0:B.length)>0)return;const Qe=(0,o.eo)(ie),qe=(0,Ho.sL)(ie),ut=j||sdkStore.getHotAABB(M);let Bt,ao=!1,To=!1;if((oe==="draw"||oe==="click")&&(ao=!0,To=!0),To){const vn=sh({pageKey:Qe,stickyAABB:ut,fakePointToDir:"l",isOnlyCanvas:ao,isCtrlDown:ue,stickyPointVersion:$e});vn?Bt=vn:Bt=sh({pageKey:Qe,stickyAABB:ut,fakePointToDir:"r",isOnlyCanvas:ao,isCtrlDown:ue,stickyPointVersion:$e})}else Bt=sh({pageKey:Qe,stickyAABB:ut,fakePointToDir:qe,isOnlyCanvas:ao,isCtrlDown:ue,stickyPointVersion:$e});I({type:"ST:clear:fake-related"});const ko=Bt===void 0?[{key:M,hotAttr:{pointToDir:qe}}]:[{key:M,hotAttr:{refWCKey:Bt.bindingKey,sticky:{point:Bt.point}}}];I({type:"entry:widget:change",payload:{flatChgList:ko}})}};var R0=e(51794);const pu={"entry:sticky:bind":(Z,G)=>{var B;let{getState:v,dispatch:I}=Z,{payload:{widget:M,event:j}}=G;const Y=v(),oe=(0,Ne.IL)(Y),ie=(0,o.eo)(Y),le=(0,o.X_)(Y),ue=(0,o.ER)(Y),Te=(0,o.$S)(Y);let $e=(0,Ho.LS)(Y).bindingKey||oe;if(oe!==M.key){if([l.x.WSticky,l.x.WTear].includes((B=sdkStore.getHotItem(oe))==null||(B=B.hotAttr)==null?void 0:B.type)){const Qe=(0,mt.mG)(j,{scale:le,offset:ue,viewportRect:Te});$e=(0,C.Tg)(Qe,ie)}if(!$e)I({type:"entry:widget:change",payload:{flatChgList:[{key:M.key,hotAttr:{refWCKey:""}}]}});else{const Qe={...M},{x:qe,y:ut,w:Bt,h:ao}=sdkStore.getHotBound($e),To=[...Qe.sticky.point],[ko,vn]=(0,R0.OH)({stickyPointVersion:M["!stickyPointVersion"],getV1Offset:()=>[To[0]-qe,To[1]-ut],getV2Offset:()=>[To[0]-(qe-Bt/2),To[1]-(ut-ao/2)]});I({type:"entry:widget:change",payload:{flatChgList:[{key:M.key,hotAttr:{refWCKey:$e,sticky:{...M.sticky,point:[ko,vn]}}}]}})}}},"entry:sticky:migrate":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{key:I}}=G;const M=B();if((0,Ne.jx)(M)===i.qi.OnlyView||(0,gt.OO)(I)&&!(0,vc.K)(I))return;const{hotAttr:{refWCKey:Y,sticky:oe,"!stickyPointVersion":ie}}=sdkStore.getHotItem(I);if(ie===2)return;let le;if(!Y||!sdkStore.getHotItem(Y))le=[{key:I,hotAttr:{"!stickyPointVersion":2}}];else{const ue=sdkStore.getHotBound(Y),{point:Te}=oe,De=[Te[0]+ue.w/2,Te[1]+ue.h/2];le=[{key:I,hotAttr:{"!stickyPointVersion":2,sticky:{point:De}}}]}v({type:"entry:widget:change",payload:{flatChgList:le}})}};var Ri=e(7173);const Np={"entry:set:tabs:selected:optionData":(Z,G)=>{var B;let{getState:v,dispatch:I}=Z,{payload:M}=G;const{index:j}=M,Y=v(),oe=(0,$.Z9)(Y);if(!(oe.length>0))return;const le=oe[0],ue=(B=le.hotAttr)==null||(B=B.optionData)==null?void 0:B.map((Te,De)=>De===j?{...Te,data:{...Te.data,selected:!0}}:{...Te,data:{...Te.data,selected:!1}});I({type:"entry:widget:change",payload:{flatChgList:[{key:le.key,hotAttr:{optionData:ue}}]}})}},B1={"entry:undo-stack:undo":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,Ne.jI)(v),M=(0,$.p$)(v),j=(0,Ne.bt)(v),Y=(0,E.Hs)(v),oe=(0,o.Ur)(v),ie=(0,E.WU)(v),le=(0,E.p$)(v),ue=I||j;if(!sdkStore.canUndo())return;if(sdkStore.undo(),B({type:"entry:vector:rectify:vectorEditor:selectedIndex"}),ue&&sdkStore.isTrashed(ue)){B(i.GO.editBasketHotItem(null)),B({type:"entry:clear:selection"}),B(I?i.GO.editBasketItemKey(""):i.GO.editBasketRefPage("")),Y[0]&&B({type:"entry:goto:project-alike",payload:{screenMetaCid:Y[0]}});return}B({type:"entry:select:items",payload:{cids:M,fromUndoRedo:!0}}),B({type:"entry:undo-stack:screen"}),B({type:"entry:rebuild:screen-widget-tree"}),B({type:"entry:refresh:link-list"}),B(Ls.R7.command.undoCommand({})),ue&&(B(i.GO.editBasketHotItem(sdkStore.getHotItem(ue))),B({type:"entry:layout:basket-canvas"})),B({type:"entry:update:screen:list"}),B({type:"entry:select:smartly"}),B({type:"entry:undo-stack:active:screen"}),B({type:"elbow:update",payload:{isShowWidgetPopup:!1}}),oe!=null&&oe.cid&&!sdkStore.isTrashed(oe.cid)&&B({type:"current:update:state",payload:{currentScreen:{...oe,...sdkStore.getHotItem(oe.cid).hotAttr}}}),ie&&B({type:"entry:reset:screen:selection",payload:{resetScreenCid:oe.cid}}),(!(le!=null&&le.key)||le!=null&&le.key&&sdkStore.isTrashed(le.key))&&B({type:"entry:activate:root-project:home-screen"}),B({type:"entry:aiComponent:undo"}),(0,Si.WV)([])},"entry:undo-stack:redo":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,Ne.jI)(v),M=(0,$.p$)(v),j=(0,Ne.bt)(v),Y=I||j,oe=(0,E.Hs)(v),ie=(0,o.Ur)(v),le=(0,E.WU)(v),ue=(0,E.p$)(v);if(!sdkStore.canRedo())return;if(sdkStore.redo(),B({type:"entry:vector:rectify:vectorEditor:selectedIndex"}),Y&&sdkStore.isTrashed(Y)){B(i.GO.editBasketHotItem(null)),B({type:"entry:clear:selection"}),B(I?i.GO.editBasketItemKey(""):i.GO.editBasketRefPage("")),oe[0]&&B({type:"entry:goto:project-alike",payload:{screenMetaCid:oe[0]}});return}B({type:"entry:select:items",payload:{cids:M,fromUndoRedo:!0}}),B({type:"entry:rebuild:screen-widget-tree"}),B({type:"entry:refresh:link-list"}),Y&&B({type:"entry:layout:basket-canvas"}),B({type:"entry:update:screen:list"}),B({type:"entry:select:smartly"}),B({type:"entry:undo-stack:active:screen"}),ie!=null&&ie.cid&&!sdkStore.isTrashed(ie.cid)&&B({type:"current:update:state",payload:{currentScreen:{...ie,...sdkStore.getHotItem(ie.cid).hotAttr}}}),le&&B({type:"entry:reset:screen:selection",payload:{resetScreenCid:ie.cid}}),(!(ue!=null&&ue.key)||ue!=null&&ue.key&&sdkStore.isTrashed(ue.key))&&B({type:"entry:activate:root-project:home-screen"}),B({type:"entry:aiComponent:redo"}),(0,Si.WV)([])},"entry:undo-stack:active:screen":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,o.Ur)(v),M=(0,o.PL)(v),j=(0,E.HA)(v);if(I)return;let Y=(0,f.Yt)(g.NF+"-"+M.cid,"",f.qW.String);if(sdkStore.isTrashed(Y)){var ie;Y=(ie=(0,Nn.YU)(j).filter(ue=>ue.bunch===l.x.RbPage&&!(0,Nn.Mo)(ue))[0])==null?void 0:ie.cid}Y&&B({type:"entry:goto:project-alike",payload:{screenMetaCid:Y}})}};var R1=e(83573);const d1=()=>{MB.commonGuideHelper.checkGuideToBeShown(u.c.GUIDE_VECTOR_TASK_QUICK_CREATE)&&(MB.commonGuideHelper.markGuideAsRead(u.c.GUIDE_VECTOR_TASK_QUICK_CREATE),MB.commonGuideHelper.closeGuide(u.c.GUIDE_VECTOR_TASK_QUICK_CREATE)),MB.commonGuideHelper.checkGuideToBeShown(u.c.GUIDE_VECTOR_TASK_EDITING_EXIST_VECTOR)&&(MB.commonGuideHelper.markGuideAsRead(u.c.GUIDE_VECTOR_TASK_EDITING_EXIST_VECTOR),MB.commonGuideHelper.closeGuide(u.c.GUIDE_VECTOR_TASK_EDITING_EXIST_VECTOR)),MB.commonGuideHelper.tryToShowGuide(u.c.GUIDE_VECTOR_TASK_ENDING_EDITING)},p1={"entry:vector:clear:vectorEditor":Z=>{let{dispatch:G}=Z;G(i.GO.update({vectorEditor:null})),G({type:"set:quick-create-widget",payload:{widget:null}})},"entry:vector:esc":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,Ne.lY)(v),M=(0,o.s3)(v);if(!I)return;const{key:j}=I,{hotAttr:{vector:Y}}=sdkStore.getHotItem(j),oe=()=>{B({type:"entry:select:items",payload:{cids:[j],hasClearVectorEditing:!1}}),B({type:"entry:vector:clear:vectorEditor"}),B({type:"entry:vector:transform:undo",payload:{key:j}}),B({type:"entry:publish:create:items:success",payload:{newKeys:[j]}}),B(i.GO.update({transformVector:null})),M&&(0,it.Uu)(M,Y.closed,it.z9.Esc),d1()},ie=()=>{B({type:"entry:delete:selected-items"}),B({type:"entry:vector:clear:vectorEditor"}),B(i.GO.update({transformVector:null})),d1()},le=(0,wo.vm)(I,"Vector",Y,oe,ie);if(le){const{vectorEditor:ue}=le;B(i.GO.update({vectorEditor:ue}))}},"entry:vector:exit:edit":(Z,G)=>{var B;let{getState:v,dispatch:I}=Z,{payload:M}=G;const j=v(),Y=(0,Ne.lY)(j),oe=(0,o.s3)(j);if(!Y)return;const{key:ie}=Y;if(!ie||sdkStore.isTrashed(ie)||!((B=sdkStore.getHotItem(ie))!=null&&(B=B.hotAttr)!=null&&B.vector))return;const{hotAttr:{vector:{points:le,closed:ue}}}=sdkStore.getHotItem(ie);le.length===1&&I({type:"entry:delete:selected-items"}),I({type:"entry:vector:clear:vectorEditor"}),I({type:"entry:vector:transform:undo",payload:{key:ie}});const Te=sdkStore.getHotItem(ie);if(!Te)return null;if(I({type:"entry:widget:change",payload:{flatChgList:[{key:ie,hotAttr:{...!Te.hotAttr.richTextV1.isClipText&&{richTextMetric:(0,to.Ro)(Te.hotAttr)}}}]}}),le.length>1&&I({type:"entry:publish:create:items:success",payload:{newKeys:[ie]}}),I(i.GO.update({transformVector:null})),le.length>1&&oe){const De=(M==null?void 0:M.end)||it.z9.Other;(0,it.Uu)(oe,ue,De)}M!=null&&M.isNoGuide||d1()},"entry:vector:enter:edit":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{key:I}}=G;if(!I)return;const M=B(),j=(0,o.Ur)(M);if((0,Ne.jx)(M)===i.qi.OnlyView||!!(0,Ne.pq)(M))return;const le=sdkStore.getHotItem(I);if(!le||![...Ze.LM,l.x.WLine].includes(le.hotAttr.type))return;const ue=(0,a.gu)({type:l.x.WVector,screen:j,attrs:{width:0,height:0}});if(le.hotAttr.type===l.x.WVector){const De=le.hotAttr.vector.points;if(!(De!=null&&De.length))return;v(i.GO.update({vectorEditor:{key:I,selectedIndex:[De.length-1]}}))}else{var Te;const De=(0,wo.K1)(le.key),$e=De==null||(Te=De.vector)==null?void 0:Te.points;if(!($e!=null&&$e.length))return;sdkStore.combineMergeMark("transform-vector"),sdkStore.deleteHotItem(I);const Qe={...le,hotAttr:{...ue,...le.hotAttr,type:l.x.WVector,...De}};sdkStore.updateHotItem(Qe),sdkStore.combineMerge("transform-vector"),v({type:"entry:rebuild:screen-widget-tree"}),v(i.GO.update({vectorEditor:{key:I,selectedIndex:[$e.length-1]}}));const{hotAttr:{vector:qe}}=sdkStore.getHotItem(I);v(i.GO.update({transformVector:{hotItem:le,vector:qe}}))}v({type:"entry:select:items",payload:{cids:[I],hasClearVectorEditing:!1}}),v({type:"set:quick-create-widget",payload:{widget:ue}}),MB.commonGuideHelper.checkGuideToBeShown(u.c.GUIDE_VECTOR_TASK_ENDING_EDITING)&&(MB.commonGuideHelper.markGuideAsRead(u.c.GUIDE_VECTOR_TASK_ENDING_EDITING),MB.commonGuideHelper.closeGuide(u.c.GUIDE_VECTOR_TASK_ENDING_EDITING)),MB.commonGuideHelper.tryToShowGuide(u.c.GUIDE_VECTOR_TASK_EDITING_EXIST_VECTOR)},"entry:vector:transform:undo":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{key:I}}=G;const M=B(),j=(0,Ne.AC)(M);if(!j)return;const Y=sdkStore.getHotItem(I),{hotAttr:{vector:oe}}=Y,{hotItem:ie,vector:le}=j;if(ie.key===I&&yt()(le,oe)){sdkStore.deleteHotItem(I);const ue={...ie,...Y,hotAttr:{...ie.hotAttr,...Y.hotAttr,type:ie.hotAttr.type,w:ie.hotAttr.w,h:ie.hotAttr.h}};sdkStore.updateHotItem(ue),v({type:"entry:widget:change",payload:{flatChgList:[ue],shouldReBuildTree:!0}})}},"entry:vector:open:path":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,Ne.lY)(v);if(!I)return;const{key:M,selectedIndex:j}=I;if(j.length===0)return;const{hotAttr:{vector:Y}}=sdkStore.getHotItem(M);if(Y!=null&&Y.length)return;const oe=[],ie=Y.points.length;for(let le=1;le<ie;le++){const ue=(j[0]+le)%ie,Te=Y.points[ue];oe.push(Te)}oe.length===1?(B({type:"entry:delete:selected-items"}),B({type:"entry:vector:clear:vectorEditor"})):(B(i.GO.update({vectorEditor:{key:M,selectedIndex:[0]}})),B({type:"entry:vector:update:vector",payload:{vector:{points:oe,closed:!1}}}))},"entry:vector:update:radius":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{radius:I}}=G;const M=B(),j=(0,$.x$)(M);if(!(j!=null&&j.length))return;const Y=j.map(oe=>{var ie,le;if(!oe||!(oe!=null&&(ie=oe.widget)!=null&&ie.vector)||!(oe!=null&&(le=oe.widget)!=null&&(le=le.vector)!=null&&(le=le.points)!=null&&le.length))return null;const{key:ue,widget:{vector:Te}}=oe,{points:De}=Te,$e=De.map(To=>({...To,radius:I})),Qe={...Te,points:$e},{x:qe,y:ut,w:Bt,h:ao}=(0,wo.GU)({key:ue,vector:Qe});return{key:ue,hotAttr:{x:qe,y:ut,w:Bt,h:ao,vector:Qe}}}).filter(oe=>!!oe);v({type:"entry:widget:change",payload:{flatChgList:Y,shouldReBuildTree:!0}})},"entry:vector:update:vector":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{vector:I,compressible:M}}=G;const j=B(),Y=(0,Ne.lY)(j);if(!Y)return;const{key:oe}=Y,{x:ie,y:le,w:ue,h:Te}=(0,wo.GU)({key:oe,vector:I});v({type:"entry:widget:change",payload:{flatChgList:[{key:oe,hotAttr:{x:ie,y:le,w:ue,h:Te,vector:I}}],shouldReBuildTree:!0,isCombineChange:!M}})},"entry:vector:shortcut:by:pointType":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{pointType:I}}=G;const M=B(),j=(0,Ne.lY)(M);if(!j)return;const{key:Y}=j,{hotAttr:{vector:oe}}=sdkStore.getHotItem(Y),{vector:ie}=(0,wo.Vn)(I,j,oe),{x:le,y:ue,w:Te,h:De}=(0,wo.GU)({key:Y,vector:ie});v({type:"entry:widget:change",payload:{flatChgList:[{key:Y,hotAttr:{x:le,y:ue,w:Te,h:De,vector:ie}}],shouldReBuildTree:!0}})},"entry:vector:shortcut:by:arrowKey":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{dir:I,rate:M}}=G;const j=B(),Y=(0,Ne.lY)(j),oe=(0,Ct.H)(j);if(!Y)return;const{key:ie}=Y,{hotAttr:{vector:le}}=sdkStore.getHotItem(ie),ue=(0,wo.YW)(ie),Te=dt.L.toMutableTransform(oe).append(ue),De=(0,wo.z3)(I,M,Y,le,Te);if(!De||!De.vector)return;const{vector:$e}=De,{x:Qe,y:qe,w:ut,h:Bt}=(0,wo.GU)({key:ie,vector:$e});v({type:"entry:widget:change",payload:{flatChgList:[{key:ie,hotAttr:{x:Qe,y:qe,w:ut,h:Bt,vector:$e}}],shouldReBuildTree:!0}})},"entry:vector:shortcut:by:mod":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,Ne.lY)(v);if(!I)return;const{key:M}=I,{hotAttr:{vector:j}}=sdkStore.getHotItem(M),Y=(0,wo.rX)(I,j);if(!Y||!Y.vector)return;const{vector:oe}=Y,{x:ie,y:le,w:ue,h:Te}=(0,wo.GU)({key:M,vector:oe});B({type:"entry:widget:change",payload:{flatChgList:[{key:M,hotAttr:{x:ie,y:le,w:ue,h:Te,vector:oe}}],shouldReBuildTree:!0}})},"entry:vector:shortcut:by:selectAll":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,Ne.lY)(v);if(!I)return;const{key:M}=I,{hotAttr:{vector:j}}=sdkStore.getHotItem(M),{vectorEditor:Y}=(0,wo.sG)(j);B(i.GO.update({vectorEditor:{key:M,...Y}}))},"entry:vector:shortcut:by:toggle:closed":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,Ne.lY)(v);if(!I)return;const{key:M}=I,{hotAttr:{vector:j}}=sdkStore.getHotItem(M),{vector:Y}=(0,wo.T_)(j),{x:oe,y:ie,w:le,h:ue}=(0,wo.GU)({key:M,vector:Y});B({type:"entry:widget:change",payload:{flatChgList:[{key:M,hotAttr:{x:oe,y:ie,w:le,h:ue,vector:Y}}],shouldReBuildTree:!0}})},"entry:vector:shortcut:by:tab":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,Ne.lY)(v);if(!I)return;const{key:M}=I,{hotAttr:{vector:j}}=sdkStore.getHotItem(M),{vectorEditor:Y}=(0,wo.VD)(I,j);Y&&B(i.GO.update({vectorEditor:{key:M,...Y}}))},"entry:vector:shortcut:by:del":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,Ne.lY)(v);if(!I)return;const{key:M}=I,{hotAttr:{vector:j}}=sdkStore.getHotItem(M),Y=()=>{B({type:"entry:delete:selected-items"}),B({type:"entry:vector:clear:vectorEditor"})},oe=(0,wo.wc)("Vector",I,j,Y);if(!oe)return;const{props:{vector:ie},mode:{vectorEditor:le}}=oe;B(i.GO.update({vectorEditor:{key:M,...le}}));const{x:ue,y:Te,w:De,h:$e}=(0,wo.GU)({key:M,vector:ie});B({type:"entry:widget:change",payload:{flatChgList:[{key:M,hotAttr:{x:ue,y:Te,w:De,h:$e,vector:ie}}],shouldReBuildTree:!0}})},"entry:vector:rectify:vectorEditor:selectedIndex":Z=>{let{getState:G,dispatch:B}=Z;const v=G(),I=(0,Ne.lY)(v);if(!I)return;const{key:M}=I,j=sdkStore.isTrashed(M),Y=sdkStore.getHotItem(M);if(!Y||j){B({type:"entry:clear:selection"}),B({type:"entry:vector:clear:vectorEditor"});return}const{hotAttr:{vector:oe}}=Y,ie=oe==null?void 0:oe.points,{selectedIndex:le}=I;if(!(ie!=null&&ie.length)){B({type:"entry:clear:selection"}),B({type:"entry:vector:clear:vectorEditor"});return}(le<0||le>=(ie==null?void 0:ie.length))&&B(i.GO.update({vectorEditor:{key:M,selectedIndex:[ie.length-1]}}))},"entry:vector:editor:drag":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:{pos:I,sup:M}}=G;const j=B(),Y=(0,o.wq)(j);v(i.GO.select([])),sdkStore.combineMergeMark("vector-quick-create");const oe={key:(0,ce.cF)(),sup:M,hotAttr:{...Y,x:I.x,y:I.y,zIndex:(0,Bo._)(M),name:(0,li.aw)({type:l.x.WVector,sup:M})}};sdkStore.updateHotItem(oe),v({type:"entry:rebuild:screen-widget-tree"}),v({type:"entry:select:items",payload:{cids:[oe.key],hasClearVectorEditing:!1}}),MB.f.isSelecting=!1;const ie=sdkStore.getHotMatrix(oe.key),le=new R1.h(ie.a,ie.b,ie.c,ie.d,ie.tx,ie.ty),ue=(0,mt.cj)(oe.key),{x:Te,y:De}=ue.apply({x:0,y:0}),$e=0,Qe=[],qe={type:wo.pQ.Straight,x:0,y:0,next:S.Z.zero,prev:S.Z.zero,radius:0};sdkStore.updateHotAttrMerge(oe.key,{vector:{...oe.hotAttr.vector,points:[qe]}}),v({type:"entry:rebuild:screen-widget-tree"}),v(i.GO.update({vectorEditor:{key:oe.key,selectedIndex:[$e]}}));let ut=0;const Bt=To=>{if(ut<5)return ut++;const ko={x:To.offsetX,y:To.offsetY},vn=ue.inverted().apply({x:ko.x,y:ko.y}),{x:Hn,y:os}=le.apply(vn),{x:on,y:hn}=le.inverted().apply({x:Math.round(Hn),y:Math.round(os)}),Rn="next";let Ln;v(i.GO.update({vectorEditor:{key:oe.key,selectedIndex:[$e],selectedAssistIndex:Rn}}));const Ms={x:on,y:hn};Ms.x===0&&Ms.y===0||Math.abs(Te-To.clientX)<6&&Math.abs(De-To.clientY)<6?Ln={...qe,type:wo.pQ.Straight}:(Ln={...qe,type:wo.pQ.Mirrored},Ln=(0,wo.Yw)(Ln,Rn,Ms)),Qe[$e]=Ln;const pi={points:Qe,closed:!1};sdkStore.updateHotAttrMerge(oe.key,{vector:pi}),v({type:"entry:rebuild:screen-widget-tree"})},ao=()=>{v(i.GO.update({vectorEditor:{key:oe.key,selectedIndex:[$e],selectedAssistIndex:void 0}})),v({type:"entry:ST:STMode:disable"}),document.removeEventListener("mousemove",Bt),document.removeEventListener("mouseup",ao)};sdkStore.combineMerge("vector-quick-create"),document.addEventListener("mousemove",Bt),document.addEventListener("mouseup",ao)}};var Lh=e(3835);const ih={"entry:pencil:vector:enter:edit":Z=>{let{getState:G,dispatch:B}=Z;B(i.GO.select([])),B(i.GO.togglePencilMode(!0)),B({type:"settings:set:autoTabIndex",payload:{autoTabIndex:0}})},"entry:pencil:vector:exit:edit":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;v(i.GO.togglePencilMode(!1));const{isSelectLastCreate:M=!1}=I||{},j=(0,Lh.n$)(B());j&&M&&v(i.GO.select([j])),v({type:"pencil:clear:lastCreateKey"})},"entry:pencil:create:vector":(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;const M=B(),j=(0,o.wq)(M),Y=(0,Ct.H)(M),{cid:oe}=(0,o.Ur)(M),ie=(0,Lh.lu)(M),le=(0,Lh.E)(M),ue=(0,Lh.pp)(M),{scale:Te}=Y,{path:De,getRelativeVectorFromPath:$e}=I,Qe=De.segments[0].point;De.simplify(100);const{bounds:qe}=De,{width:ut,height:Bt,centerX:ao,centerY:To}=qe;if(ut<6&&Bt<6)return;let ko=dt.L.applyInverse(Y,{x:ao,y:To}),vn=oe;const Hn=dt.L.applyInverse(Y,{x:Qe.x,y:Qe.y}),os=(0,C.Tg)(Hn,oe);if(os){vn=os;const pi=sdkStore.getHotItem(os);if(pi){const{hotAttr:{x:Ts,y:Js,w:ki,h:js}}=pi;ko=S.Z.subtract(ko,{x:Ts-ki/2,y:Js-js/2})}}const on=$e(De),hn=td(on,Te),Rn={key:(0,ce.cF)(),sup:vn,hotAttr:{...j,border:{...j.border,bdrColor:ie,bdrWidth:le,bdrStyle:ue},w:$d(ut,Te),h:$d(Bt,Te),x:ko.x,y:ko.y,zIndex:(0,Bo._)(vn),name:(0,li.aw)({type:zp.x.WVector,sup:vn}),vector:{...j.vector,...hn}}},Ln=Rn.key;sdkStore.combineMergeMark("pencil-vector-quick-create"),sdkStore.updateHotItem(Rn),sdkStore.combineMerge("pencil-vector-quick-create");const Ms=sdkStore.getHotItem(Ln);v({type:"pencil:update:lastCreateKey",payload:{lastCreateKey:Ln}}),v({type:"entry:widget:change",payload:{isCreateWidget:!0,shouldReBuildTree:!0,sup:Ms.sup,isCombineChange:!1,flatChgList:[Ms]}})}},$d=(Z,G)=>Z/G,td=(Z,G)=>{const{points:B,closed:v}=Z,I=B[0],M=B.map(j=>{const Y={x:$d(j.x-I.x,G),y:$d(j.y-I.y,G)},oe={x:$d(j.prev.x,G),y:$d(j.prev.y,G)},ie={x:$d(j.next.x,G),y:$d(j.next.y,G)};return{...j,...Y,prev:oe,next:ie}});return{closed:v,points:M}},dc={"entry:widget:graph:edit":async(Z,G)=>{let{getState:B,dispatch:v}=Z,{payload:I}=G;if((0,sa.b8)()){MB.notice({text:"\u8BF7\u524D\u5F80web\u7AEF\u4F7F\u7528",type:"warning"});return}const{action:M}=I,j=B(),Y=(0,$.p$)(j);switch(M){case"new-widget":v({type:"set:current:drawio:editor:item",payload:{hotItem:{editType:"newWidget"}}});break;case"update-widget":const oe=sdkStore.getHotItem(Y[0]);v({type:"set:current:drawio:editor:item",payload:{hotItem:oe}});break;default:break}}},j1={...Mp,...$p,...eh,...kh,...Yn,...$n.k.__entry,...Ai,...Ii,...Tr,...kl,...bd,..._h,...Ph,...ru,...lu,...Nh,...L1,...du,...h0,...pu,...Je.X.__entry,...Ri.Z8,...Np,...oa,...B1,...p1,...ih,...go.y.__entry,...Ls.R7.__entry,...dc},hu={...D0,...j1},uu={...p,...Le,...Wn,...bs,...Vn.G,...Ce,...ti.s,...Z0,...Pc,...hu}},66303:(Et,ke,e)=>{"use strict";e.d(ke,{O:()=>x,_:()=>r});var o=e(63686),m=e(47143),g=e(61535),l=e(20029),C=e(30797),T=e(95230),A=e(96851),k=e(29673);const p=(0,o.Mz)([C.x$],f=>{const u=[];return f.forEach(b=>u.push(...(0,k.gf)(b))),u}),r=f=>{var u,b,h,E;const N=(u=(b=document.querySelector("#left-slide-panel"))==null?void 0:b.getBoundingClientRect().width)!=null?u:f?184:294,z=(h=(E=document.querySelector("#right-slide-panel"))==null?void 0:E.getBoundingClientRect().width)!=null?h:f?0:240;return{leftSidePanelWidth:N,rightSidePanelWidth:z}},x={"entry:init:design:scale":f=>{let{dispatch:u}=f;u({type:"entry:reset:design:scale"}),u({type:"entry:reset:canvas:offset"})},"entry:reset:design:scale":f=>{var u;let{getState:b,dispatch:h}=f;const E=b(),N=(0,g.RX)(E),z=(0,l.pH)(E);if(!((u=N.children)!=null&&u.length)){h({type:"entry:set:scale",payload:{scale:100}});return}const[S,_,y,a]=sdkStore.getHotKeyListAABB(N.children.map(V=>V.key)),$=y-S,ce=a-_,de=56,{leftSidePanelWidth:fe,rightSidePanelWidth:se}=r(z),J=window.innerHeight-de,ve=window.innerWidth-fe-se,D=Math.min((J-150)/ce,(ve-150)/$)*100,R=Math.min(Math.max(D,T.sI),100);h({type:"entry:set:scale",payload:{scale:R}})},"entry:reset:canvas:offset":f=>{var u;let{getState:b,dispatch:h}=f;const E=b(),N=(0,g.RX)(E),z=(0,l.pH)(E);if(!((u=N.children)!=null&&u.length)){h({type:"current:update:state",payload:{currentScreenOriginOffset:{x:0,y:0}}}),h({type:"design:set:canvas:offset",payload:{offset:{x:0,y:0}}});return}const[S,_,y,a]=sdkStore.getHotKeyListAABB(N.children.map(O=>O.key)),{leftSidePanelWidth:$,rightSidePanelWidth:ce}=r(z),de=S,fe=_,se=y-S,J=a-_,D=(0,m.X_)(E)/100,R=(-se/2-de+($-ce)/2)*D,V=(-J/2-fe)*D;h({type:"current:update:state",payload:{currentScreenOriginOffset:{x:R,y:V}}}),h({type:"design:set:canvas:offset",payload:{offset:{x:R,y:V}}}),h({type:"entry:update:ruler"})},"entry:set:scale":(f,u)=>{let{getState:b,dispatch:h}=f,{payload:E}=u;const N=b(),{scale:z}=E,S=(0,m.X_)(N);h({type:"design:set:scale",payload:{scale:z}}),h({type:"entry:design:update:canvas:offset",payload:{scaleD:z/S}}),h({type:"entry:update:ruler"})},"entry:design:zoom:selection":(f,u)=>{let{getState:b,dispatch:h}=f,{payload:E}=u;const N=b(),z=p(N),S=(0,l.pH)(N),_=(E==null?void 0:E.initScale)||!1;if(!(z!=null&&z.length)){h({type:"entry:zoom:fit:scale:offset"});return}const[y,a,$,ce]=sdkStore.getHotKeyListAABB(z.map(xe=>xe.key)),de=y,fe=a,se=$-y,J=ce-a,{leftSidePanelWidth:ve,rightSidePanelWidth:D}=r(S),R=window.innerHeight-56,V=window.innerWidth-ve-D,O=Math.min((R-150)/J,(V-150)/se)*100,Ce=Math.min(Math.max(O,T.sI),400),ae=_?(0,m.X_)(N):Ce,q=(-se/2-de+(ve-D)/2)*ae/100,K=(-J/2-fe)*ae/100;h({type:"design:set:scale",payload:{scale:ae}}),h({type:"current:update:state",payload:{currentScreenOriginOffset:{x:q,y:K}}}),h({type:"design:set:canvas:offset",payload:{offset:{x:q,y:K}}}),h({type:"entry:update:ruler"})},"entry:design:update:canvas:offset":(f,u)=>{let{getState:b,dispatch:h}=f,{payload:{scaleD:E}}=u;const{view_mode:N}=Object.fromEntries(new URLSearchParams(location.search));if(N!=="device"){const z=b(),{x:S,y:_}=(0,m.ER)(z),y={x:E*S,y:E*_};h({type:"entry:set:canvas:offset",payload:{offset:y}})}},"entry:zoom:fit:scale:offset":f=>{let{dispatch:u}=f;u({type:"entry:reset:design:scale"}),u({type:"entry:reset:canvas:offset"}),u({type:"entry:update:ruler"})},"entry:set:canvas:offset":(f,u)=>{let{getState:b,dispatch:h}=f,{payload:{offset:{x:E,y:N}}}=u;h({type:"design:set:canvas:offset",payload:{offset:{x:E,y:N}}}),h({type:"entry:update:ruler"});const z=b(),S=(0,m.pO)(z),{eventOnDrag:_}=z.screencontainer.dragEventState,y=(0,m.X_)(z),a=(0,m.$S)(z);if(S&&_){const $=(0,A.mG)(_,{scale:y,offset:{x:E,y:N},viewportRect:a});h({type:"update:drag-event:state",payload:{worldPosOnDrag:$}})}}}},14804:(Et,ke,e)=>{"use strict";e.d(ke,{s:()=>Yt});var o=e(28055),m=e(82928);const g={viewportRect:null,screenListRect:null};function l(Be,Wt){Be===void 0&&(Be=g);let{type:At,payload:Xe}=Wt;switch(At){case"dom:update:state":return{...Be,...Xe};default:return Be}}var C=e(25813);const T={isSpaceDown:!1,isKeySDown:!1,isCtrlDown:!1,isAltDown:!1,isShiftDown:!1},A={keyFlags:T,isDraggingItem:!1,isResizingItem:!1,isDraggingCanvas:!1,isShowRadiusResizer:!1,isResizingRadius:!1,isHideSelectionBorder_Resizer:!1,isInPreview:!1,isHideResizer:!1,isDeleteRulerLine:!1,isInChatModal:!1,isStartCreatingCanvas:!1};function k(Be,Wt){Be===void 0&&(Be=A);let{type:At,payload:Xe}=Wt;switch(At){case"reducer:flag:update-state":return(0,C.O1)(Be,Xe);case"set:key:flags":return{...Be,keyFlags:{...T,...Xe}};case"set:key:keyFlags":return{...Be,keyFlags:{...Be.keyFlags,...Xe}};case"reset:key:flags":return{...Be,keyFlags:{...T}};case"reducer:flag:set:is-dragging-item":return{...Be,isDraggingItem:Xe.isDraggingItem};case"reducer:flag:set:is-resizing-item":return{...Be,isResizingItem:Xe.isResizingItem};case"reducer:flag:set:is-dragging-canvas":return{...Be,isDraggingCanvas:Xe.isDraggingCanvas};case"reducer:flag:set:is-selection-border-resizer":return{...Be,isHideSelectionBorder_Resizer:Xe.isHideSelectionBorder_Resizer};case"reducer:flag:set:is-show-resizer":return{...Be,isHideResizer:Xe.isHideResizer};case"reducer:flag:set-isResizingRadius":return{...Be,isResizingRadius:Xe.isResizingRadius};case"reducer:flag:set-isShowRadiusResizer":return{...Be,isShowRadiusResizer:Xe.isShowRadiusResizer};case"reducer:flag:is-in-chatGPT":return{...Be,isInChatModal:Xe.isInChatModal};default:return Be}}var p=e(8580);const r={rootProject:null,currentProject:null,currentProjectMeta:null,currentUser:null,designOptions:{},currentScreenOriginOffset:null,currentProjectShare:null,currentOrg:{},currentTeam:null,orgList:[],sharings:[],sharingInReadOnly:null,currentScreen:null,currentDrawioEditorItem:null,editingComboPageKey:"",user_fcg:null,org_fcg:null,comboCurrentProject:null,comboCurrentProjectMeta:null,currentSpace:{},importAbarOptions:{isFromAbar:(0,p.BG)(),fromAbarIsReadOnly:(0,p.Tk)(),isImportAbar:(0,p.Zt)(),fromAbarIsPreview:(0,p.$E)(),tabCid:(0,p.S1)()}};function x(Be,Wt){Be===void 0&&(Be=r);const{type:At,payload:Xe}=Wt;switch(At){case"current:update:state":return{...Be,...Xe};case"set:current:project":return{...Be,currentProject:Xe.project};case"update:design:options":return{...Be,designOptions:Xe.designOptions};case"update:org:member:list":{const{orgMembers:Vt}=Xe;return{...Be,currentOrg:{...Be.currentOrg,members:Vt}}}case"set:current:user":return{...Be,currentUser:Xe.user};case"set:current:org":return{...Be,currentOrg:Xe.org};case"set:current:drawio:editor:item":return{...Be,currentDrawioEditorItem:Xe.hotItem};default:return Be}}var f=e(86899);const u={saving:!1,isShowSharingManager:!1,projShareToEdit:"",canToggleSticky:!0,isShowSticky:!0,canPaste:!1,refresh:null};function b(Be,Wt){var At;Be===void 0&&(Be=u);const{type:Xe,payload:Vt}=Wt;switch(Xe){case"toolbar:update:state":return{...Be,...Vt};case"set:saving":return Be.saving===Vt.saving?Be:{...Be,saving:Vt.saving};case"toolbar:sharingManager:open":return{...Be,isShowSharingManager:!0};case"toolbar:sharingManager:toggle":return{...Be,isShowSharingManager:!Be.isShowSharingManager};case"toolbar:isShowSticky:toggle":return{...Be,isShowSticky:(At=Vt==null?void 0:Vt.isShowSticky)!=null?At:!Be.isShowSticky};default:return Be}}var h=e(64756),E=e(36521),N=e(98195);const z="resources_collapse_panel_set",S=(0,E.Yt)(z,[],E.qW.Array),_=[N.lS.Template,N.lS.Icon,N.lS.Builtin,N.lS.State,N.lS.Asset,N.lS.Page,N.lS.History,N.lS.Search],y={currentPopupPanel:N.lS.Directory,panelOrder:_,hotKeyWords:[],mtResourcesMtItemListMap:new Map,mtResourceSdkStoreMap:new Map,editingCid:"",assetUploadState:"close",assetUpload:{index:0,indexMax:0,assetUploaderFailure:[]},collapsePanelSet:new Set(S),showGlobalHeader:!0,isVersionModalClosed:!1,popupLoaded:{isHotKeyWordsLoaded:!1,isFilterWordsLoaded:!1},paramStarMtCid:""};function a(Be,Wt){Be===void 0&&(Be=y);const{type:At,payload:Xe}=Wt;switch(At){case"update:popups:state":return{...Be,...Xe};case"set:current:popup:panel":{const{name:Vt}=Xe;return(0,E.a0)("popups_show",!!Vt,E.qW.Boolean),{...Be,currentPopupPanel:Vt}}case"close:popup:panel":return{...Be,currentPopupPanel:null};case"exalt:panel:order":{const Vt=Be.panelOrder,{name:Xo}=Xe,rn=Vt.indexOf(Xo),Ps=[...Vt];return Ps.splice(rn,1),Ps.push(Xo),{...Be,panelOrder:Ps}}case"resources:set:resources_marketTemplateItem_list_map":{const Vt=Be.mtResourcesMtItemListMap,Xo=Xe.mtResourcesMtItemListMap,rn=new Map([...Vt,...Xo]);return{...Be,mtResourcesMtItemListMap:rn}}case"resources:set:resources_mtSdkStore_list_map":{const Vt=Be.mtResourceSdkStoreMap,Xo=Xe.mtResourceSdkStoreMap,rn=new Map([...Vt,...Xo]);return{...Be,mtResourceSdkStoreMap:rn}}case"resources:update:collapsePanelSet":{const{collapsePanelSet:Vt}=Xe;return(0,E.a0)(z,Array.from(Vt),E.qW.Array),{...Be,collapsePanelSet:Xe.collapsePanelSet}}case"resources:update:popupLoaded":return{...Be,popupLoaded:{...Be.popupLoaded,...Xe}};default:return Be}}var $=e(70110);const ce={layerExpandedKeySet:new Set,layerRange:{start:0,end:void 0}};function de(Be,Wt){Be===void 0&&(Be=ce);const{type:At,payload:Xe}=Wt;switch(At){case"update:layer:select:range":return{...Be,layerRange:Xe.layerRange};case"layerExpandedKeySet:toggle:ref":{const{layerExpandedKeySetRef:Vt}=Xe,Xo=new Set(Be.layerExpandedKeySet);return Be.layerExpandedKeySet.has(Vt)?Xo.delete(Vt):Xo.add(Vt),{...Be,layerExpandedKeySet:Xo}}case"layerExpandedKeySet:delAllSet:ref":{const{refs:Vt}=Xe,Xo=new Set([...Array.from(new Set(Be.layerExpandedKeySet)),...Vt]);return{...Be,layerExpandedKeySet:Xo}}case"layerExpandedKeySet:close:ref":return{...Be,layerExpandedKeySet:new Set};default:return Be}}const fe="design_layer_panel_height",se={height:(0,E.Yt)(fe,window.innerHeight*.6,E.qW.Number),nav:0,canvasListCacheTag:0};function J(Be,Wt){Be===void 0&&(Be=se);const{type:At,payload:Xe}=Wt;switch(At){case"directory-panel:bottom:update":return{...Be,...Xe};case"directory-panel:bottom:set:height":{const{height:Vt}=Xe;return(0,E.a0)(fe,Vt,E.qW.Number),{...Be,height:Vt}}case"directory-panel:bottom:set:nav":return{...Be,nav:Xe.nav};default:return Be}}const ve={mubanList:null};function D(Be,Wt){Be===void 0&&(Be=ve);const{type:At,payload:Xe}=Wt;switch(At){case"muban-panel:update:mubanList":return{...Be,mubanList:Xe.mubanList};default:return Be}}const R={show:!1};function V(Be,Wt){Be===void 0&&(Be=R);const{type:At,payload:Xe}=Wt;switch(At){case"historyPanel:set:show":return{...Be,show:Xe.show};default:return Be}}const O={isShowHeader:!0,isShowSearch:!1,source:null,iconGroupData:null,navigationIconResources:null};function Ce(Be,Wt){Be===void 0&&(Be=O);const{type:At,payload:Xe}=Wt;switch(At){case"icon-select-popup:update:state":return{...Be,...Xe};default:return Be}}const ae={navIndex:0,findPanelTabIndex:0,iconSelectPopupNavIndex:0,iconSelectPopupTabIndex:0,iconType:"All",iconDefaultColor:"rgba(16,16,16,1)",iconDefaultSize:24,libraryIconDataForTabs:new Map,findPanelCurrentIconGroup:"",iconSelectPopupCurrentIconGroup:"",resources:[],unStarResources:[],starResources:[],currentIconResources:null,iconSelectPopupCurrentIconResources:null,isRequestHotIconList:!1,hotIconList:[],hotColorIconList:[]};function q(Be,Wt){Be===void 0&&(Be=ae);const{type:At,payload:Xe}=Wt;switch(At){case"icon-panel:update:state":return{...Be,...Xe};case"icon-panel:set:default:color":{const{iconDefaultColor:Vt}=Xe;return{...Be,iconDefaultColor:Vt}}case"icon-panel:set:default:size":{const{iconDefaultSize:Vt}=Xe;return{...Be,iconDefaultSize:Vt}}case"icon-panel:set:iconType":return{...Be,iconType:Xe.iconType};case"icon-panel:update:icon_library_data_map:for:data":{const{cid:Vt,iconGroupData:Xo}=Xe,rn=new Map(Be.libraryIconDataForTabs);return rn.set(Vt,Xo),{...Be,libraryIconDataForTabs:rn}}default:return Be}}const K="local-user-assets-expand-cids",xe="local-org-assets-expand-cids",te=()=>{let Be=[],Wt=[];try{const At=(0,E.kV)(K);At&&(Be=JSON.parse(At));const Xe=(0,E.kV)(xe);Xe&&(Wt=JSON.parse(Xe))}catch(At){}return Object.prototype.toString.call(Be)!=="[object Array]"&&(Be=[]),Object.prototype.toString.call(Wt)!=="[object Array]"&&(Wt=[]),{localUserAssetsOpenCids:Be,localOrgAssetsOpenCids:Wt}},{localUserAssetsOpenCids:H,localOrgAssetsOpenCids:re}=te(),be={isRequestUserAssetGroup:!1,isRequestOrgAssetGroup:!1,navIndex:-1,metadata:[],stickerData:[],isRequestFindAssets:!1,isSaveAllAssetsMap:!1,findFilterWords:[],findActiveWord:"",assetNavIndex:0,userAssetGroups:[],userAssetsMap:new Map,orgAssetGroups:[],orgAssetsMap:new Map,localUserAssetsOpenCids:H,localOrgAssetsOpenCids:re};function Le(Be,Wt){Be===void 0&&(Be=be);const{type:At,payload:Xe}=Wt;switch(At){case"image-panel:update:state":return{...Be,...Xe};case"image-panel:set:metadata":return{...Be,metadata:Xe,isRequestFindAssets:!0};case"image-panel:set:user-assets-map":{const{groupCid:Vt,userAssets:Xo}=Xe,rn=new Map(Be.userAssetsMap);return rn.set(Vt,Xo),{...Be,userAssetsMap:rn}}case"image-panel:set:org-assets-map":{const{groupCid:Vt,orgAssets:Xo}=Xe,rn=new Map(Be.orgAssetsMap);return rn.set(Vt,Xo),{...Be,orgAssetsMap:rn}}case"image-panel:set:user-assets-groups":{const{nextGroups:Vt}=Xe;return{...Be,userAssetGroups:Vt}}case"image-panel:set:org-assets-groups":{const{nextGroups:Vt}=Xe;return{...Be,orgAssetGroups:Vt}}case"image-panel:set:local-user-assets-expand-cids":{const{oper:Vt,cid:Xo}=Xe;let rn=[...Be.localUserAssetsOpenCids];return Vt==="plus"?rn=rn.concat(Xo):rn=rn.filter(Ps=>Ps!==Xo),(0,E.cH)(K,JSON.stringify(rn)),{...Be,localUserAssetsOpenCids:rn}}case"image-panel:set:local-org-assets-expand-cids":{const{oper:Vt,cid:Xo}=Xe;let rn=[...Be.localOrgAssetsOpenCids];return Vt==="plus"?rn=rn.concat(Xo):rn=rn.filter(Ps=>Ps!==Xo),(0,E.cH)(xe,JSON.stringify(rn)),{...Be,localOrgAssetsOpenCids:rn}}default:return Be}}const Ve={navIndex:0,findLoading:!1,findPlatformType:null,findPlatformSubType:null,findPlatformSubTypeMap:new Map,findPlatformSubTypeListMap:new Map,findPlatformSubTypeMtDataMap:new Map,findMtResourceMap:new Map,findCurrentMtResourceCid:null,libraryNavIndex:0,libraryFilterWords:[],libraryActiveWord:"",libraryTopicListMap:new Map,libraryCurrentSquareTopic:null,libraryCurrentResources:null};function Ne(Be,Wt){Be===void 0&&(Be=Ve);const{type:At,payload:Xe}=Wt;switch(At){case"page-panel:update:state":return{...Be,...Xe};case"page-panel:update:map:state":{const{key:Vt,value:Xo}=Xe,rn=Be[Vt]||new Map,Ps=new Map([...rn,...Xo]);return{...Be,[Vt]:Ps}}default:return Be}}var We=e(40684);const ze={show:!1,keyword:"",iconKeyword:"",masterKeyword:"",isLoading:!0,isIconSelectPopupLoading:!0,unsplashLoading:!1,searchResultList:[],searchResultSum:0,searchResultCategory:"",searchMtMetaCidMap:new Map,iconSelectPopupSearchResultList:[],iconSelectPopupSearchResultSum:0,isSearching:!1,iconSelectPopupIsSearching:!1,type:We.t_,historyKeyWords:[],currentComboGroup:null,searchCollapsePanelSet:new Set,searchResultListMap:{combo_group:[],screen_list:[],icon_group:[],asset:[]}};function ft(Be,Wt){Be===void 0&&(Be=ze);const{type:At,payload:Xe}=Wt;switch(At){case"searchPanel:update:state":return{...Be,...Xe};case"searchPanel:set:show":return{...Be,show:Xe.show};case"searchPanel:clear:search:state":return{...Be,show:!1,searchResultList:[],searchResultSum:0,searchResultCategory:"",keyword:"",currentComboGroup:null,isSearching:!1,searchCollapsePanelSet:new Set};case"searchPanel:clear:search:state:from:icon-select-popup":return{...Be,iconSelectPopupSearchResultList:[],iconSelectPopupSearchResultSum:0,iconKeyword:"",currentComboGroup:null,iconSelectPopupIsSearching:!1,...Xe};case"searchPanel:toggle:collapsePanelSet":{const Vt=new Set(Be.searchCollapsePanelSet),{id:Xo}=Xe;return Vt.has(Xo)?Vt.delete(Xo):Vt.add(Xo),{...Be,searchCollapsePanelSet:Vt}}case"searchPanel:add:collapsePanelSet":{const Vt=new Set(Be.searchCollapsePanelSet),{id:Xo}=Xe;return Vt.add(Xo),{...Be,searchCollapsePanelSet:Vt}}case"searchPanel:async:update:unsplash:searchResult":{const{asyncKeyword:Vt,searchResultListMap:Xo,searchResultSum:rn,searchCollapseId:Ps}=Xe;if(Be.keyword!==Vt)return Be;const Os=new Set(Be.searchCollapsePanelSet);return Os.add(Ps),{...Be,searchResultListMap:Xo,searchResultSum:rn,searchCollapsePanelSet:Os,unsplashLoading:!1}}default:return Be}}var mt=e(48411);const i="local-user-combo-expand-cids",gt="local-org-combo-expand-cids",Je=()=>{let Be=[],Wt=[];try{const At=(0,E.kV)(i);At&&(Be=JSON.parse(At));const Xe=(0,E.kV)(gt);Xe&&(Wt=JSON.parse(Xe))}catch(At){}return Object.prototype.toString.call(Be)!=="[object Array]"&&(Be=[]),Object.prototype.toString.call(Wt)!=="[object Array]"&&(Wt=[]),{localUserComboOpenCids:Be,localOrgComboOpenCids:Wt}},{localUserComboOpenCids:Pt,localOrgComboOpenCids:bt}=Je(),qt={navIndex:0,userComboGroups:[],orgComboGroups:[],localUserComboOpenCids:Pt,localOrgComboOpenCids:bt,upgradeUserComboGroupList:[],upgradeOrgComboGroupList:[],isRequestV7UserComboGroup:!1,isRequestV7OrgComboGroup:!1,selectedSceTag:"",selectedPLabel:mt.P8,sceneMktsMap:{},sceToPLabelMap:null,scrollTop:0,sceCollapsedCategories:[],showComboUploadGuide:!1,showComboStar:!1};function pt(Be,Wt){Be===void 0&&(Be=qt);const{type:At,payload:Xe}=Wt;switch(At){case"widget-panel:update:state":return{...Be,...Xe};case"widget-panel:set:user-combo-groups":{const{nextComboGroups:Vt}=Xe;return{...Be,userComboGroups:Vt}}case"widget-panel:set:org-combo-groups":{const{nextComboGroups:Vt}=Xe;return{...Be,orgComboGroups:Vt}}case"widget-panel:set:local-user-combo-expand-cids":{const{oper:Vt,cid:Xo}=Xe;let rn=[...Be.localUserComboOpenCids];return Vt==="plus"?rn=rn.concat(Xo):rn=rn.filter(Ps=>Ps!==Xo),(0,E.cH)(i,JSON.stringify(rn)),{...Be,localUserComboOpenCids:rn}}case"widget-panel:set:local-org-combo-expand-cids":{const{oper:Vt,cid:Xo}=Xe;let rn=[...Be.localOrgComboOpenCids];return Vt==="plus"?rn=rn.concat(Xo):rn=rn.filter(Ps=>Ps!==Xo),(0,E.cH)(gt,JSON.stringify(rn)),{...Be,localOrgComboOpenCids:rn}}case"widget-panel:set:scene_combo_mkts_map":{const{sceneMktsMap:Vt}=Xe;return{...Be,sceneMktsMap:Vt}}case"widget-panel:update:showComboUploadGuide":{const{showComboUploadGuide:Vt}=Xe;return{...Be,showComboUploadGuide:Vt}}case"widget-panel:update:selectedPLabel:by:name":{const{name:Vt}=Xe;if(Vt==="all")return{...Be,selectedPLabel:mt.P8};const{sceToPLabelMap:Xo}=Be,rn=Xo[Be.selectedSceTag].find(Ps=>Ps.name===Vt);return{...Be,selectedPLabel:rn}}case"widget-panel:update:sceCollapsedCategories":{const{sceCollapsedCategories:Vt=[]}=Xe;return{...Be,sceCollapsedCategories:Vt}}default:return Be}}const $t=(0,o.HY)({screen:$.n,layer:de,bottom:J}),go=(0,o.HY)({leftPanel:h._H,popups:a,directory:$t,muban:D,history:V,iconSelectPopup:Ce,icon:q,image:Le,page:Ne,search:ft,widget:pt});var Co=e(92365),Tt=e(95230);const mo={autoTabIndex:null,activeIndex:0,panelUI:{position:(0,E.Yt)("mp_position",!0,E.qW.Boolean),shadows:(0,E.Yt)("mp_shadows",!0,E.qW.Boolean),text:(0,E.Yt)("mp_text",!0,E.qW.Boolean),image:(0,E.Yt)("mp_image",!0,E.qW.Boolean),state:(0,E.Yt)("mp_state",!0,E.qW.Boolean),clip:(0,E.Yt)("mp_clip",!1,E.qW.Boolean),filter:(0,E.Yt)("mp_filter",!1,E.qW.Boolean),chart_settings_type:(0,E.Yt)("mp_chart_settings_type",!0,E.qW.Boolean),chart_settings_theme:(0,E.Yt)("mp_chart_settings_theme",!0,E.qW.Boolean),chart_settings_option:(0,E.Yt)("mp_chart_settings_option",!0,E.qW.Boolean),collapse_title_settings:(0,E.Yt)("mp_collapse_title_settings",!0,E.qW.Boolean),collapse_content_settings:(0,E.Yt)("mp_collapse_content_settings",!0,E.qW.Boolean),collapse_switches_checked_panel:(0,E.Yt)("mp_collapse_switches_checked_panel",!0,E.qW.Boolean),collapse_switches_unchecked_panel:(0,E.Yt)("mp_collapse_switches_unchecked_panel",!0,E.qW.Boolean),segmented_control_checked_item:(0,E.Yt)("mp_segmented_control_checked_item",!0,E.qW.Boolean),slider_track_settings:(0,E.Yt)("mp_slider_track_settings",!0,E.qW.Boolean),slider_thumb_settings:(0,E.Yt)("mp_slider_thumb_settings",!0,E.qW.Boolean),collapse_panel:(0,E.Yt)("mp_collapse_panel",!0,E.qW.Boolean),segmented_control:(0,E.Yt)("mp_segmented_control",!0,E.qW.Boolean),options:(0,E.Yt)("mp_options",!0,E.qW.Boolean),nav_menu_panel:(0,E.Yt)("mp_nav_menu_panel",!0,E.qW.Boolean),nav_expand_panel:(0,E.Yt)("mp_nav_expand_panel",!0,E.qW.Boolean),nav_selected_panel:(0,E.Yt)("mp_nav_selected_panel",!0,E.qW.Boolean),nav_menu_type:(0,E.Yt)("mp_nav_menu_type",!0,E.qW.Boolean),digital_stepper_button:(0,E.Yt)("mp_digital_stepper_button",!0,E.qW.Boolean),digital_stepper_number:(0,E.Yt)("mp_digital_stepper_number",!0,E.qW.Boolean),pagination:(0,E.Yt)("mp_pagination",!0,E.qW.Boolean),pagination_checked:(0,E.Yt)("mp_pagination_checked",!0,E.qW.Boolean),tabs:(0,E.Yt)("mp_tabs",!0,E.qW.Boolean),tabs_checked:(0,E.Yt)("mp_tabs_checked",!0,E.qW.Boolean),tab_bars_panel:(0,E.Yt)("mp_tab_bars_panel",!0,E.qW.Boolean),tab_bars_selected:(0,E.Yt)("mp_tab_bars_selected",!0,E.qW.Boolean),selection_control_type_panel:(0,E.Yt)("mp_selection_control_type_panel",!0,E.qW.Boolean),selection_control_checked_style_panel:(0,E.Yt)("mp_selection_control_checked_style_panel",!0,E.qW.Boolean),selection_control_unchecked_style_panel:(0,E.Yt)("mp_selection_control_unchecked_style_panel",!0,E.qW.Boolean)},layout:{row:{enabled:!1,...Tt.rs.row},col:{enabled:!1,...Tt.rs.col}},bgcolor:"rgba(245, 245, 245, 1)",collapseKeySet:new Set,selectCarouselImageIndex:null,selectTableCellInfo:null,selectOptionCid:null,isShowLinkPanel:!1};function jo(Be,Wt){Be===void 0&&(Be=mo);const{type:At,payload:Xe}=Wt;switch(At){case"settings:update:state":return{...Be,...Xe};case"settings:set:autoTabIndex":return{...Be,autoTabIndex:Xe.autoTabIndex};case"settings:set:activeIndex":return{...Be,activeIndex:Xe.activeIndex};case"settings:set:panel:expanded":{const{title:Vt,expanded:Xo}=Xe;return(0,E.a0)("mp_"+Vt,Xo,E.qW.Boolean),{...Be,panelUI:{...Be.panelUI,[Vt]:Xo}}}case"settings:set:layout":{const{dir:Vt,type:Xo,val:rn}=Xe,Ps={...Be.layout,[Vt]:{...Be.layout[Vt],[Xo]:rn}};return{...Be,layout:Ps}}case"settings:update:layout:preference":{const{layout_information:Vt}=Xe;return{...Be,layout:{...Vt}}}case"linkSettings:update:collapseKeySet":return{...Be,collapseKeySet:Xe.collapseKeySet};case"setting:select:carousel:image":return{...Be,selectCarouselImageIndex:Xe.selectCarouselImageIndex};case"settings:set:select:option":return{...Be,option:Xe.option};case"settings:set:select:option:node":return{...Be,option:{...Be.option,node:Xe.node}};default:return Be}}const Kt={collaborators:[],checked:!1},Ft={isVersionManagementPaneShow:!1,allVersions:[],fetched:!1,fetching:!1,isCreating:!1,currentEditing:void 0,currentViewing:void 0,currentDeleting:void 0,currentResetting:void 0,currentCollaborators:Kt,isMemberManager:!1,versionResetNoticeInfo:void 0,filter:"all"},nt=function(Be,Wt){Be===void 0&&(Be=Ft);let{type:At,payload:Xe}=Wt;switch(At){case"versions:set:versions":return{...Be,allVersions:Xe.versions};case"versions:update":return{...Be,...Xe};case"versions:create":return{...Be,allVersions:[Xe.newVersion,...Be.allVersions]};case"versions:model:deleting:open":return{...Be,currentDeleting:Xe.currentDeleting};case"versions:model:deleting:close":return{...Be,currentDeleting:void 0};case"versions:model:resetting:open":return{...Be,currentResetting:Xe.currentResetting,currentCollaborators:Xe.currentCollaborators};case"versions:model:resetting:close":return{...Be,currentResetting:void 0,currentCollaborators:Kt};case"versions:model:resetting:cllaborators:confirm":return{...Be,currentCollaborators:{...Be.currentCollaborators,checked:!0}}}return Be},Rt={alreadyExpandKeySet:new Set,expandKeySet:new Set,STPanelWidth:Tt.xM,STPanelMaxWidth:1/0};function yt(Be,Wt){Be===void 0&&(Be=Rt);const{type:At,payload:Xe}=Wt;switch(At){case"STPanel:clear":return Rt;case"STPanel:update":return Object.assign({},Be,Xe);case"STPanel:add:alreadyExpandKeySet":{const Vt=new Set(Be.alreadyExpandKeySet);return Vt.add(Xe.key),Object.assign({},Be,{alreadyExpandKeySet:Vt})}case"STPanel:delete:alreadyExpandKeySet":{const Vt=new Set(Be.alreadyExpandKeySet);return Vt.delete(Xe.key),Object.assign({},Be,{alreadyExpandKeySet:Vt})}case"STPanel:toggle:expandKeySet":{const{expandKeySet:Vt}=Xe;return{...Be,expandKeySet:Vt}}default:return Be}}const Jt={show:!1};function vo(Be,Wt){Be===void 0&&(Be=Jt);const{type:At,payload:Xe}=Wt;switch(At){case"newbieVideoPanelState:toggle":{const Vt=(Xe==null?void 0:Xe.show)!==void 0?Xe==null?void 0:Xe.show:!Be.show;return{...Be,show:Vt}}default:return Be}}const Yo=(0,o.HY)({rightPanel:Co.xK,settingPanel:jo,versions:nt,STPanel:yt,newbieVideoPanel:vo}),Ho={showAIModal:!1,currentAiComponent:null,showAIGuide:!1,aiGenerating:!1,userInputObj:{userInput:""},aiTaskID:"",switchIsChat:!1,showAISemantic:!1,historySemanticValue:"",showAISemanticTip:!0,showAIChatPanel:!1};function kt(Be,Wt){Be===void 0&&(Be=Ho);let{type:At,payload:Xe}=Wt;switch(At){case"ai:update:state":return{...Be,...Xe};case"ai:update:showAIGuide":return{...Be,showAIGuide:Xe};case"ai:update:aiGenerating":return{...Be,aiGenerating:Xe};case"ai:update:aiTaskID":return{...Be,aiTaskID:Xe};case"ai:update:switchIsChat":return{...Be,switchIsChat:Xe};case"ai:update:showAISemanticTip":return{...Be,showAISemanticTip:Xe};case"ai:update:showAIChatPanel":return{...Be,showAIChatPanel:Xe};default:return Be}}var Ze=e(80412);const it={show:!1,position:{top:52,left:215},openFrom:null,aiTextAutoSearch:!1};function st(Be,Wt){Be===void 0&&(Be=it);const{type:At,payload:Xe}=Wt;switch(At){case"autoFillPanel:update":return{...Be,...Xe};case"autoFillPanel:set:show":return{...Be,show:Xe.show};case"autoFillPanel:reset:state":{const Vt=(0,E.Yt)(Ze.i,52,E.qW.Number),Xo=(0,E.Yt)(Ze.W,215,E.qW.Number);return{...Be,show:!1,openFrom:null,position:{top:Vt,left:Xo}}}case"autoFillPanel:set:position":{const{position:Vt}=Xe;return(0,E.a0)(Ze.i,Vt.top,E.qW.Number),(0,E.a0)(Ze.W,Vt.left,E.qW.Number),{...Be,position:Vt}}default:return Be}}const dt={show:!1,position:{top:0,left:0},byCanvasLayers:!1,byComponentList:!1,canPaste:!1,canPasteProperties:!1};function Ot(Be,Wt){Be===void 0&&(Be=dt);const{type:At,payload:Xe}=Wt;switch(At){case"open:contextmenu":return{...Be,show:!0,position:Xe.position,byComponentList:Xe.byComponentList||!1,byCanvasLayers:Xe.byCanvasLayers||!1,canPaste:Xe.canPaste||!1,canPasteProperties:Xe.canPasteProperties||!1};case"close:contextmenu":return{...Be,show:!1};default:return Be}}var Ct=e(26637);const wo={show:!1,position:{top:56,left:Tt.CN+98+8},findWidgetList:[],findWidgetPanelList:[],findSelectWidgetCid:"",searchValue:"",status:Ct.nW.normal,selectScreenValue:"current",selectIndex:1,replaceValue:"",isFocusPanel:!1,isFold:!0};function ln(Be,Wt){Be===void 0&&(Be=wo);const{type:At,payload:Xe}=Wt;switch(At){case"findReplacePanel:update":return{...Be,...Xe};case"findReplacePanel:set:position":{const{position:Vt}=Xe;return(0,E.a0)(Ct.nb,Vt.top,E.qW.Number),(0,E.a0)(Ct.Zz,Vt.left,E.qW.Number),{...Be,position:Vt}}case"findReplacePanel:reset:state":{const Vt=(0,E.Yt)(Ct.nb,56,E.qW.Number),Xo=(0,E.Yt)(Ct.Zz,217,E.qW.Number);return{...wo,position:{top:Vt,left:Xo}}}case"findReplacePanel:clear:result":return{...Be,findWidgetList:[],findWidgetPanelList:[],findSelectWidgetCid:"",status:Ct.nW.normal,selectIndex:1};default:return Be}}const Io={activeLinkCid:[],linkMap:{},selectLinkItem:null,linkNodeList:[],allLinkNodeList:[],hasLinkNodeList:[],selectOptionLinkItem:null,clickedLink:void 0};function Lo(Be,Wt){Be===void 0&&(Be=Io);const{type:At,payload:Xe}=Wt;switch(At){case"links:update:has-link-node-list":return(0,C.MK)(Be,"hasLinkNodeList",Xe.hasLinkNodeList);case"links:update:link-node-list":return(0,C.MK)(Be,"linkNodeList",Xe.linkNodeList);case"links:update:all-link-node-list":return(0,C.MK)(Be,"allLinkNodeList",Xe.allLinkNodeList);case"links:active:link":return(0,C.MK)(Be,"activeLinkCid",Xe.cid);case"update:link:selectLinkItem":return(0,C.MK)(Be,"selectLinkItem",Xe);case"update:link:selectOptionLinkItem":return(0,C.MK)(Be,"selectOptionLinkItem",Xe.selectOptionLinkItem);case"links:clickedLink:update":return(0,C.MK)(Be,"clickedLink",Xe.clickedLink);case"links:singleSelectLink:update":return(0,C.MK)(Be,"singleSelectLink",Xe.singleSelectLink);default:return Be}}const Ao={comboGroupRemoveModal:{isOpen:!1},masterCreateModal:{isOpen:!1,template:null,isCreateByPanel:!1},masterDeleteModal:{isOpen:!1},linkBackModal:{open:!1},screenDupModal:{isOpen:!1,screenTreeNodeList:null},screenTransferModal:{isOpen:!1,screenMetaList:[]},screenRemovalModal:{isOpen:!1,screenTreeNode:null},screenTrashModal:{isOpen:!1,screens:[]},previewModal:{isOpen:!1,template:null},workspaceConfirmAsyncModal:{isOpen:!1},designTransferModal:{isOpen:!1},assetGroupRemoveModal:{isOpen:!1},loginModal:{isOpen:!1},teamSelectModal:{isOpen:!1},designCreateWithGroupModal:{isOpen:!1},assetCreateWithGroupModal:{isOpen:!1},noticeModal:{isOpen:!1},optionRemoveModal:{isOpen:!1},doNotLeaveProjectModal:{isOpen:!1},nestedDynamicModal:{isOpen:!1},secondaryConfirmModal:{isOpen:!1},preOpenHyperlinkModal:{isOpen:!1},helpCenterModal:{isOpen:!1},couponReceivedModal:{isOpen:!1},mockittGuideModal:{isOpen:!1},rightsAndInterestsModal:{isOpen:!1},orgFullBeyondNotice:{isOpen:!1},resourcePurchaseModal:{isOpen:!1},resourcesPaidSuccessModal:{isOpen:!1},managePageModal:{isOpen:!1},imagePreviewModal:{isOpen:!1},previewComboModal:{isOpen:!1},upgradeComboModal:{isOpen:!1},chargeModal:{isOpen:!1},projectSummaryModal:{isOpen:!1},flpakSizeWarnModal:{isOpen:!1},newbieVideoModal:{isOpen:!1,index:0},comboUploadModal:{isOpen:!1,cgCid:"",projectUpperCid:"",teamCid:"",comboName:""},chartTableSettingModal:{isOpen:!1},previewCanvasModal:{isOpen:!1,projectAlike:null,activePageKey:"",activeCanvasKey:"",width:0,height:0},isDragOrResizeModal:!1,widgetOperationLayoutModal:{isOpen:!1},colorPickerDownloadModal:{isOpen:!1},mktWMExportModal:{isOpen:!1},mktWMUngroupModal:{isOpen:!1}};function xt(Be,Wt){Be===void 0&&(Be=Ao);const{type:At,payload:Xe}=Wt;switch(At){case"modal:update:state":return{...Be,...Xe};case"modal:update:confirm:state":return{...Be,workspaceConfirmAsyncModal:Xe};case"modal:reset:state":return Ao;case"modal:reset:popup:state":{const{modalName:Vt}=Xe;return{...Be,[Vt]:Ao[Vt]}}case"modal:reset:preview:modal:state":return{...Be,previewCanvasModal:Ao.previewCanvasModal,previewModal:Ao.previewModal,previewComboModal:Ao.previewComboModal};default:return Be}}const Ut={theme:Tt.Sx.LIGHT,ruler:!0,showRulerReferLine:!0,showAlignLine:!0,linkDisplay:1,showToolTip:!0,showDragMode:!0,showPreference:!1,preferenceNav:"common",flags:0,isContainSelect:!0,guideState:!1,isShowUserGuideModel:!1,builtinListInvisible:new Set,showFsWarning:!0,stateLinkDefaultTransition:0,panelLinkDefaultTransition:1,openOverlayDefaultTransition:0,swapOverlayDefaultTransition:0,recentlyUsedScreenMetaIcons:new Set,useNativeEyedropper:!1,autoFillHistory:{},colorPanelMode:null,isShowMultiCursor:!0,layout:"recommend",layoutV8:"recommend",layoutV9:"recommend"};function Wo(Be,Wt){Be===void 0&&(Be=Ut);const{type:At,payload:Xe}=Wt;switch(At){case"preference:update:state":return{...Be,...Xe};case"preference:open:appearance":return{...Be,showPreference:!Be.showPreference};default:return Be}}const qo=(0,o.HY)({ai:kt,autoFillPanel:st,contextmenu:Ot,findReplacePanel:ln,linklist:Lo,modals:xt,preference:Wo}),sn={showShortCutArtBoard:!1,isShowNps:!1,isDragLink:!1,isDragAnnotationBindingPoint:!1,draggingStickyKey:"",basketPathCacheTag:0,isAdjustOverlayRelPos:!1};function Kn(Be,Wt){Be===void 0&&(Be=sn);const{type:At,payload:Xe}=Wt;switch(At){case"artboard:update:state":return{...Be,...Xe};case"toggle:showShortCutArtBoard":return{...Be,showShortCutArtBoard:!Be.showShortCutArtBoard};case"hide:showShortCutArtBoard":return{...Be,showShortCutArtBoard:!1};case"update:isShowNps":return{...Be,isShowNps:Xe.isShowNps};default:return Be}}const ds=(0,o.HY)({toolbar:b,leftLayout:go,rightLayout:Yo,fixedLayout:qo,artboard:Kn}),_s="AI_COMPONENT_CURSOR_HAS_SHOWN",Ls=16,gs={isInAIComponentCreateMode:!1,isInAIComponentSnapshotMode:!1,createStartPoint:null,createEndPoint:null,isDraggingMouse:!1,generatedTmpList:[],requestLoading:{isLoading:!1,key:""},editingAIComponentKey:null,isOptimumLoading:!1,isShowAIComponentTextCursor:!(0,E.kV)(_s),floatBarOperation:{type:"",key:"",isLoading:!1},selectedElementList:[],feedbackStatus:"",isShowInputContainer:!1};function ns(Be,Wt){Be===void 0&&(Be=gs);const{type:At,payload:Xe}=Wt;switch(At){case"ai-component:update:isInAIComponentCreateMode":return Object.assign({},Be,{isInAIComponentCreateMode:Xe.isInAIComponentCreateMode});case"ai-component:update:isInAIComponentSnapshotMode":return Object.assign({},Be,{isInAIComponentSnapshotMode:Xe.isInAIComponentSnapshotMode});case"ai-component:update:createStartPoint":return Object.assign({},Be,{createStartPoint:Xe.createStartPoint});case"ai-component:update:createEndPoint":return Object.assign({},Be,{createEndPoint:Xe.createEndPoint});case"ai-component:update:isDraggingMouse":return Object.assign({},Be,{isDraggingMouse:Xe.isDraggingMouse});case"ai-component:update:generatedTmpList":return Object.assign({},Be,{generatedTmpList:Xe.generatedTmpList});case"ai-component:update:requestLoading":return Object.assign({},Be,{requestLoading:{...Xe}});case"ai-component:clear:requestLoading":return Object.assign({},Be,{requestLoading:{isLoading:!1,key:""}});case"ai-component:update:editingAIComponentKey":return Object.assign({},Be,{editingAIComponentKey:Xe.editingAIComponentKey});case"ai-component:update:isOptimumLoading":return Object.assign({},Be,{isOptimumLoading:Xe.isOptimumLoading});case"ai-component:update:isShowAIComponentTextCursor":return Object.assign({},Be,{isShowAIComponentTextCursor:Xe.isShowAIComponentTextCursor});case"ai-component:update:floatBarOperation":return Object.assign({},Be,{floatBarOperation:{...Be.floatBarOperation,...Xe}});case"ai-component:clear:floatBarOperation":return Object.assign({},Be,{floatBarOperation:{type:"",key:"",isLoading:!1}});case"ai-component:update:selectedElementList":return Object.assign({},Be,{selectedElementList:Xe.selectedElementList});case"ai-component:update:feedbackStatus":return Object.assign({},Be,{feedbackStatus:Xe.feedbackStatus});case"ai-component:update:isShowInputContainer":return Object.assign({},Be,{isShowInputContainer:Xe.isShowInputContainer});default:return Be}}const Wn={isExportMenuShow:!1,type:"",progress:0,loading:!1,downloadFileName:"",downloadable:null,pdfDimensionExceeded:!1,canvasDimensionExceeded:!1,isWidgetBeingExported:!1,currentExportTag:"png"};function Do(Be,Wt){Be===void 0&&(Be=Wn);const{type:At,payload:Xe}=Wt;switch(At){case"export:update:state":return{...Be,...Xe};case"export:reset:state":return Wn;case"export:reset:loading":return{...Wn,isExportMenuShow:!0}}return Be}const Go={canvasRuler:null,rulerLineCanvas:null,selectedLine:[],draggingLine:null,isDeleteLine:!1,isDraggingLine:!1,rulerRect:{startX:0,startY:0}};function an(Be,Wt){Be===void 0&&(Be=Go);const{type:At,payload:Xe}=Wt;switch(At){case"ruler:update:state":return{...Be,...Xe}}return Be}const Mo=(0,o.HY)({exportmanager:Do,ruler:an}),Cn={newSelection:[],selectionUndone:!1,hoverItem:"",echoItem:"",hoverPanel:"",itemQueryMap:{},ghostItemCids:[],linkListBeingCreated:[],layerListCacheTag:0};function Tn(Be,Wt){Be===void 0&&(Be=Cn);const{type:At,payload:Xe}=Wt;switch(At){case"selection:clear:state":return{...Be,...Cn};case"selection:update:state":return{...Be,...Xe};case"set:hover:panel":return{...Be,hoverPanel:Xe.cid};case"set:echo:item":return{...Be,echoItem:Xe.cid};case"clear:echo:item":return{...Be,echoItem:""};case"selection:select:items":{const{cids:Vt}=Xe;return{...Be,newSelection:Vt}}case"selection:reverse:select:items":{const{cids:Vt,originalSelection:Xo}=Xe,rn=[...Xo];return Vt.forEach(Ps=>{const Os=rn.indexOf(Ps);Os===-1?rn.push(Ps):rn.length!==1&&rn.splice(Os,1)}),{...Be,newSelection:rn}}case"selection:unselect:items":{const Vt=Be.newSelection.filter(Xo=>!Xe.cids.includes(Xo));return{...Be,newSelection:Vt}}case"selection:clear":return{...Be,newSelection:[],hoverItem:"",editingCid:""};case"linklist_beingcreated:update:state":return{...Be,linkListBeingCreated:Xe.linkListBeingCreated};default:return Be}}const cn=(0,o.HY)({widgetTree:Tn});var bs=e(1163);const Vn={isEditingImageWrapperCid:"",currentImageOperateType:"",currentImageClipSelected:bs.Q7.cutFrame};function ti(Be,Wt){Be===void 0&&(Be=Vn);const{type:At,payload:Xe}=Wt;switch(At){case"image:update:state":return{...Be,...Xe};default:return Be}}const oi={editMindKey:"",selectedMindNodeKeys:[],selectedMindNodeFlagIconKey:"",selectedMindNodeImageKey:"",isShowMindNodeMenu:!1,draggingState:{isDragging:!1,position:{x:0,y:0},mousePosition:{x:0,y:0}},isShallowEditText:!1,isEditingSelectAll:!1,isEditingMoveToEnd:!1};function Gt(Be,Wt){Be===void 0&&(Be=oi);let{type:At,payload:Xe}=Wt;switch(At){case"mind:update:state":return{...Be,...Xe};case"mind:update:state:selectedMindNodeKeys":{const Vt=Xe.selectedMindNodeKeys,Xo=!!Vt.length;return{...Be,selectedMindNodeKeys:Vt,selectedMindNodeFlagIconKey:"",selectedMindNodeImageKey:"",isShallowEditText:Xo}}case"mind:update:draggingState":return{...Be,draggingState:{...Be.draggingState,...Xe}};case"mind:clear:edit:state":return{...Be,selectedMindNodeKeys:[],selectedMindNodeFlagIconKey:"",selectedMindNodeImageKey:"",isShallowEditText:!1,isEditingSelectAll:!1,isEditingMoveToEnd:!1};case"mind:exit:edit:state":return{...Be,editMindKey:"",selectedMindNodeKeys:[],selectedMindNodeFlagIconKey:"",selectedMindNodeImageKey:"",isShallowEditText:!1,isEditingSelectAll:!1,isEditingMoveToEnd:!1};case"mind:update:isShallowEditText":return{...Be,isShallowEditText:Xe};case"mind:update:isEditingSelectAll":return{...Be,isEditingSelectAll:Xe};case"mind:update:isEditingMoveToEnd":return{...Be,isEditingMoveToEnd:Xe};default:return Be}}const Rs={selectTableCellInfo:null,selectCopyCell:null,isShowTableMenu:!1,tableCopyInfo:null,widget:null,isResizeCell:!1,isMouseDownInTable:!1,isEditTable:!1,inspectTableInfo:{selectCellInfo:null,hoverCellInfo:null},isMovingInDrag:!1,isDragging:!1,isShowTableDragMenu:!1,tableRightClickDragInfo:{isHorizontal:!1,index:0}};function Xs(Be,Wt){Be===void 0&&(Be=Rs);let{type:At,payload:Xe}=Wt;switch(At){case"table:update:info":return{...Be,...Xe};case"table:update:inspect:info":return{...Be,inspectTableInfo:{...Be.inspectTableInfo,...Xe}};default:return Be}}var Ti=e(63646),di=e(76445);const vs={activeTearKey:"",STMode:!1,isDraggingWTear:!1,tearOffset:{left:0,top:0},isShowTearSticky:!1,isLeftDown:!1,fakeBindingInfo:{stickyKey:"",bindingKey:"",isBinded:!1},fakePointToDir:"l",prevBindingCanvasKey:""};function ei(Be,Wt){Be===void 0&&(Be=vs);const{type:At,payload:Xe}=Wt;switch(At){case"ST:clear":return vs;case"ST:update":return Object.assign({},Be,Xe);case"ST:toggle:wTearLeftDown":{const{isLeftDown:Vt,activeTearKey:Xo}=Xe,{activeTearKey:rn,isLeftDown:Ps}=Be;return Object.assign({},Be,{...Xe,isLeftDown:rn!==Xo?Vt:!Ps,activeTearKey:Xo,tearOffset:vs.tearOffset})}case"ST:clear:fake-related":return{...Be,fakeBindingInfo:vs.fakeBindingInfo,fakePointToDir:vs.fakePointToDir,prevBindingCanvasKey:vs.prevBindingCanvasKey};default:return Be}}const Si={activeElbowKey:"",startPickPoint:null,highlightAnchor:"",isDraggingElbow:!1,isDraggingElbowText:!1,isInElbowMode:!1,isShowWidgetPopup:!1,popupWorldPos:!1};function Gs(Be,Wt){Be===void 0&&(Be=Si);const{type:At,payload:Xe}=Wt;switch(At){case"elbow:clear":return Si;case"elbow:update":return Object.assign({},Be,Xe);default:return Be}}var Vs=e(95206),ps=e(90743),kn=e(86310),zn=e(18578);const hs={bdrStyle:"solid",bdrColor:3149642751,bdrWidth:1,lastCreateKey:""};function Ss(Be,Wt){Be===void 0&&(Be=hs);const{type:At,payload:Xe}=Wt;switch(At){case"pencil:update":return Object.assign({},Be,Xe);case"pencil:reset":return hs;case"pencil:update:lastCreateKey":return Object.assign({},Be,{lastCreateKey:Xe.lastCreateKey});case"pencil:clear:lastCreateKey":return Object.assign({},Be,{lastCreateKey:""});default:return Be}}const fi=(0,o.HY)({image:ti,mind:Gt,table:Xs,smartSelection:Ti.mg,mode:di.yl,ST:ei,elbow:Gs,swimlane:Vs.F,draft:ps.A,font:kn.y.__reducer,interaction:zn.R7.__reducer,pencil:Ss}),ri=(0,o.HY)({data:cn,state:fi});var Li=e(11891),ji=e(14495);const _t={richTextEditorState:null,editingCid:"",alignment:{},sameSize:{},distributed:{},quickCreateWidget:null,quickCreateWidgetFrom:null,rangeSelect:{isActive:!1,startX:0,startY:0},isDraggingCanvas:!1,showNumberLineType:"",resizingRadiusNum:0,defaultImageSlicingOffset:{x:0,y:0},cursorPos:null,addVectorSource:null,dragEventState:{isActive:!1,isToLockDragAxis:!1,worldPosPreDrag:null,worldPosOnDrag:null,eventOnDrag:null,keyRndSupAtWorldPosPreDrag:null,keyCanvasAtWorldPosPreDrag:null,boundTearKeyList:[],preDragSnapshot:{}},domVisibilityState:!0};function Aa(Be,Wt){Be===void 0&&(Be=_t);const{type:At,payload:Xe}=Wt;switch(At){case"update:screenContainer:state":return{...Be,...Xe};case"start:range:select":return{...Be,rangeSelect:{isActive:!0,...Xe}};case"clear:range:select":return{...Be,rangeSelect:{isActive:!1,startX:0,startY:0}};case"end:range:select":return{...Be,rangeSelect:_t.rangeSelect};case"set:rich:text:editor:state":return{...Be,richTextEditorState:Xe.richTextEditorState};case"clear:rich:text:editor:state":return{...Be,richTextEditorState:null};case"set:editing:cid":return{...Be,editingCid:Xe.cid};case"set:quick-create-widget":return{...Be,quickCreateWidget:Xe.widget,quickCreateWidgetFrom:Xe.quickCreateWidgetFrom||ji.Hq.shortCut};case"set:alignment":return{...Be,alignment:Xe.alignment};case"set:sameSize":return{...Be,sameSize:Xe.sameSize};case"set:distributed":return{...Be,distributed:Xe.distributed};case"selection:toggle:canvas:dragging":return{...Be,isDraggingCanvas:Xe.isDraggingCanvas};case"set:numberLineType:show":return{...Be,showNumberLineType:Xe.type};case"set:resizing:radius:num":return{...Be,resizingRadiusNum:Xe.resizingRadiusNum};case"update:drag-event:state":return{...Be,dragEventState:{...Be.dragEventState,...Xe}};case"reset:drag-event:state":return{...Be,dragEventState:_t.dragEventState};default:return Be}}var Ki=e(50378);const bi={attr:"",attrPanel:"",position:{top:0,left:0},colorInputOption:"HEX",currentSelect:"favorite",historyColors:[],favoriteColors:[],isEyedroppedOpen:!1,colorPickerListener:()=>null,isShowColorList:!0};function sa(Be,Wt){Be===void 0&&(Be=bi);const{type:At,payload:Xe}=Wt;switch(At){case"colorpanel:set:attr":{const Xo=Xe.attr&&Xe.attr===Be.attr?"":Xe.attr;return{...Be,attr:Xo}}case"colorpanel:set:attrPanel":return{...Be,attrPanel:Xe.attrPanel};case"colorpanel:set:position":return{...Be,position:Xe.position};case"colorpanel:set:historyColors":return{...Be,historyColors:Xe.historyColors};case"colorpanel:set:favoriteColors":return{...Be,favoriteColors:Xe.favoriteColors};case"colorpanel:set:currentSelect":return{...Be,currentSelect:Xe.currentSelect};case"colorpanel:set:isShowColorList":return{...Be,isShowColorList:Xe.isShowColorList};case"colorpanel:set:colorInputOption":return{...Be,colorInputOption:Xe.colorInputOption};case"colorpanel:set:colorPickerListener":return{...Be,colorPickerListener:Xe.colorPickerListener};case"colorpanel:set:eyedropperStatus":return{...Be,isEyedroppedOpen:Xe.isEyedroppedOpen};default:return Be}}var Zi=e(60591);const Fa={offset:{x:0,y:0},scale:100,selectionAttrs:{}};function to(Be,Wt){switch(Be===void 0&&(Be=Fa),Wt.type){case"design:set:canvas:offset":return{...Be,offset:Wt.payload.offset};case"design:set:scale":return{...Be,scale:Wt.payload.scale};case"design:set:scale-and-offset":return{...Be,scale:Wt.payload.scale,offset:Wt.payload.offset};case"set:selection:attrs":return{...Be,selectionAttrs:Wt.payload.attrs};default:return Be}}const Qt=(0,o.HY)({dom:l,flag:k,common:to,current:x,taskList:Li.A,comment:f.A,aiComponent:ns,colorpanel:sa,screencontainer:Aa,projectAccess:Ki.Ay,ui:ds,plugin:Mo,editor:ri,watermark:Zi.A});var Sn=e(63686),Vo=e(76713),ho=e.n(Vo),Uo=e(47143),pn=e(98386),ys=e(5115),Dn=e(78570),Hs=e(20029),Qn=e(35709);const Gi=Be=>Be.comment.isInCommentMode;var oa=e(77180),ta=e(83012),Sa=e(66802),La=e(29601);const ya=14637,Ja=()=>{if(window.WUES)return;const Be=document.createElement("script");Be.type="text/javascript",Be.src="https://msg.wondershare.cc/NPS/sdk/user_evaluation_system_sdk.js?t="+new Date().getTime(),document.head.appendChild(Be)},No=Be=>{let{theme:Wt,scene:At="MD_NPS3.0",sp:Xe="bottom_right",pos:Vt,width:Xo=328}=Be;if(window.WUES){const rn=(0,La.w)()==="en"?"en":"zh-cn",{paid:Ps,expired:Os,wsid:ss}=MB.user||{},Fs=Ps&&!Os?2:1;window.WUES.popup({lang:rn,theme:Wt,w:Xo,sp:Xe,pos:Vt,source:{uid:ss||"",ut:Fs,pid:ya,pv:"1.0.0",ps:"web",scene:At}})}};var ct=e(60531);const Mt=(0,Sn.Mz)([Qn.Lc,Gi,ys.TW,Hs.jx],(Be,Wt,At,Xe)=>Xe===di.qi.OnlyView||Be||Wt?At:Tt.xM),ht=Be=>ho()(Be.created_at).isAfter(ho()("2024-04-10"))?!0:ho()(Be.created_at).isBefore(ho()("2024-04-10"))&&Math.abs(ho()(Be.created_at).diff(ho()(),"day"))>=180,oo={"entry:init:design:degreeOfSatisfaction":Be=>{let{getState:Wt,dispatch:At}=Be;const Xe=Wt(),Vt=(0,Uo.HW)(Xe),Xo=(0,Uo.PL)(Xe),{isDesign:rn}=(0,Uo.W4)(Xe);if(/^.*modao.cc/.test(location.hostname)&&rn&&!ENV.IS_ON_PREMISES&&!ENV.IS_WONDER_SHARE&&Vt){var Os;const ss=(0,ta.yX)(),Fs=(0,Dn.O4)(Xe),Ei=!!(0,E.kV)(oa.nM),vi=ht(Vt);Ei&&vi&&ss!=null&&ss.isCompleted&&No({theme:Fs,pos:{bottom:20,right:335}}),ss!=null&&ss.isCompleted&&(Xo==null?void 0:Xo.scene_tag)==="axure_import"&&(Xo==null||(Os=Xo.attr)==null?void 0:Os.from)!=="mdrp"&&(Xo==null?void 0:Xo.owner_id)===(Vt==null?void 0:Vt.id)&&Math.abs(ho()(Xo==null?void 0:Xo.created_at).diff(ho()(),"day"))<=3&&No({theme:Fs,scene:"MD_Axure_import",width:337,pos:{bottom:20,right:335}})}},"entry:observe:dom:left-panel-width":Be=>{let{getState:Wt,dispatch:At}=Be;const Xe=Wt(),Vt=(0,pn.uE)(Xe),rn=(0,Dn.bP)(Xe)==="old_right"?0:Tt.fn,Ps=window.innerWidth-(Tt.K_+Vt+rn);At({type:"right-side-panel:update:resize:maxWidth",payload:{width:Ps}})},"entry:observe:dom:right-panel-width":Be=>{let{getState:Wt,dispatch:At}=Be;const Xe=Wt(),Vt=Mt(Xe),rn=(0,Dn.bP)(Xe)==="old_right"?0:Tt.fn,Ps=window.innerWidth-(Tt.K_+Vt+rn);At({type:"left-panel:update:max-width",payload:{screenListMaxWidth:Ps}})},"entry:init:preference":(Be,Wt)=>{var At,Xe,Vt,Xo,rn,Ps,Os;let{dispatch:ss}=Be,{payload:{preference:Fs}}=Wt;const Ei=new Set(JSON.parse(Fs.builtin_list_invisible)),vi=new Set(JSON.parse(Fs.recently_used_screen_meta_icons||"[]")),li=!Fs.theme||Fs.theme==="grey"?Tt.Ke.theme:Fs.theme,Ci={grid:Fs.grid,gridSize:Fs.grid_Size||Tt.Ke.grid_size,ruler:Fs.ruler,flags:Fs.flags,showRulerLine:Fs.show_ruler_line,showAlignLine:Fs.show_align_line,showDragMode:Fs.show_drag_mode,inheritTextStyle:Fs.inherit_text_style,containSelect:Fs.contain_select,theme:li,showToolTip:Fs.show_tooltip,layoutInformation:Fs.layout_information,showFsWarning:Fs.show_fs_warning,iconColor:Fs.icon_color,iconSize:Fs.icon_size,linkDisplay:Fs.link_display,historyColors:Fs.history_colors,favoriteColors:Fs.favorite_colors,historyColorsV2:Fs.history_colors_v2,favoriteColorsV2:Fs.favorite_colors_v2,builtinListInvisible:Ei,useNativeEyedropper:Fs.use_native_eyedropper,stateLinkDefaultTransition:Fs.state_link_default_transition,panelLinkDefaultTransition:Fs.panel_link_default_transition,openOverlayDefaultTransition:Fs.open_overlay_default_transition,swapOverlayDefaultTransition:Fs.swap_overlay_default_transition,recentlyUsedScreenMetaIcons:vi,autoFillHistory:JSON.parse((At=Fs.auto_fill_history)!=null?At:"{}"),colorPanelMode:Fs.color_panel_mode,isShowMultiCursor:(Xe=Fs.is_show_multi_cursor)!=null?Xe:!0,layout:(Vt=Fs.layout)!=null?Vt:"recommend",layoutV8:(Xo=Fs.layout_v8)!=null?Xo:"recommend",layoutV9:(rn=Fs.layout_v9)!=null?rn:"recommend",defaultFontFamily:JSON.parse((Ps=Fs.default_font_family)!=null?Ps:"{}"),defaultFontSize:JSON.parse((Os=Fs.default_font_size)!=null?Os:"{}")};(0,Sa.SO)(Ci.inheritTextStyle),Object.keys(Ci.defaultFontFamily).length>0&&(0,ct.$R)(ct.RF,Ci.defaultFontFamily),Object.keys(Ci.defaultFontSize).length>0&&(0,ct.$R)(ct.Q6,Ci.defaultFontSize),ss({type:"preference:update:state",payload:Ci})},"entry:update:ui:by:preference":Be=>{var Wt;let{getState:At,dispatch:Xe}=Be;const Vt=At(),{ui:{fixedLayout:{preference:Xo}}}=Vt,rn=JSON.parse(Xo.historyColorsV2||"[]"),Ps=JSON.parse(Xo.favoriteColorsV2||"[]");if(Xo.layoutInformation){const ss=JSON.parse(Xo.layoutInformation);ss&&Xe({type:"settings:update:layout:preference",payload:{layout_information:ss}})}const Os=(0,Uo.PL)(Vt);Xe({type:"settings:update:state",payload:{exportSettings:(Wt=Os.attr)==null?void 0:Wt.export_settings}}),Xe({type:"colorpanel:set:historyColors",payload:{historyColors:rn}}),Xe({type:"colorpanel:set:favoriteColors",payload:{favoriteColors:Ps}})},"entry:update:ui:by:iconinfo":Be=>{let{getState:Wt,dispatch:At}=Be;const Xe=Wt(),{ui:{fixedLayout:{preference:Vt}}}=Xe;Vt.iconColor&&At({type:"icon-panel:set:default:color",payload:{iconDefaultColor:Vt.iconColor}}),Vt.iconSize&&At({type:"icon-panel:set:default:size",payload:{iconDefaultSize:Vt.iconSize}})}};var uo=e(54606),So=e(8508),zo=e(25961),en=e(30797),mn=e(63555),jn=e(41449),Oo=e(82821),Nn=e(78647),es=e(59742),zt=e(34129),po=e(44622),Fo=e(59305),Mn=e(75188),Fn=e(48310),ts=e(7233),As=e(35078),Is=e(88223),io=e(96343),Jo=e(19216),Zo=e(93284);const Un={"entry:init:community:params":Be=>{let{dispatch:Wt}=Be;const At=new URLSearchParams(location.search),Xe=At.get("type"),Vt=At.get("mt");Xe&&Vt&&(Wt({type:"entry:resources:paid:success:goto:starred",payload:{cid:Vt,category:Xe}}),Xe===We.Gd&&Wt({type:"update:popups:state",payload:{paramStarMtCid:Vt}}))},"entry:comment:rebuild:commentList":Be=>{let{dispatch:Wt}=Be;const At=rootSdk.cmtStore.getSubHotItemList("C@main").filter(Vt=>Vt.hotAttr.type==="cCmtPack"),Xe=[];At.forEach(Vt=>{Vt.sub.forEach(Xo=>{const rn=rootSdk.cmtStore.getHotItem(Xo),Ps=(0,io.Bt)(rn);rn.sub.forEach(Os=>{const ss=rootSdk.cmtStore.getHotItem(Os);Ps.comments.push((0,io.gR)(ss))}),Xe.push(Ps)})}),Wt({type:"comment:update:allCommentList",payload:{allCommentList:Xe}})},"entry:design:update:current:sharing":(Be,Wt)=>{let{dispatch:At}=Be,{payload:{sharing:Xe}}=Wt;const Vt=(Xe==null?void 0:Xe.type)==="default"?(Xe==null?void 0:Xe.view_sticky)==="view_sticky":Xe==null?void 0:Xe.view_sticky;if(At({type:"current:update:state",payload:{sharingInReadOnly:{...Xe,view_sticky:Vt}}}),Xe.type==="default"){const{screen_visible_switch:Xo,screen_visible_list:rn}=Xe;if(Xo){const Ps=(0,As.UG)(rn[0]),Os=(Xe==null?void 0:Xe.view_sticky)==="view_sticky";At({type:"current:update:state",payload:{sharingInReadOnly:{...Xe,screen_visible_list:Ps,view_sticky:Os}}})}}else At({type:"preview:set:current-projectShare",payload:{projectShare:Xe}})},"entry:activate:root-project":(Be,Wt)=>{let{dispatch:At,getState:Xe}=Be,{payload:{projectBasic:Vt,projectMeta:Xo,screenCid:rn}}=Wt;const Ps=Xe(),{sub:Os}=sdkStore.getHotItem("B@main"),ss=(0,Dn.bP)(Ps),{screenTreeData:Fs,screenTreeMap:Ei,screenDataMap:vi}=(0,As.tb)("B@main");At({type:"screen:set:all:screen-data",payload:{screenTreeData:Fs,screenTreeMap:Ei,screenDataMap:vi}}),document.title=""+((0,Is.qk)(Vt.name)||Vt.title);let li,Ci,yi;try{var ea,ii;const[br,Na]=(0,E.Yt)(Tt.NF+"-"+Vt.cid,"",E.qW.String).split(",");if(li=rn||br,yi=Na,!li||br&&(((ea=sdkStore.getHotItem(br))==null?void 0:ea.sup)==="B@ref-danli"||((ii=sdkStore.getHotItem(br))==null?void 0:ii.sup)==="B@ref-muban")){var Wi;li=Os[0]&&(((Wi=sdkStore.findAllTypeUnder(Os[0],"rResBunch").find(Ir=>!Ir.hotAttr.asFolder))==null?void 0:Wi.key)||Os[0])}if(sdkStore.isTrashed(li))throw new Error("");const{hotAttr:ma,key:hr}=sdkStore.getHotItem(li);Ci={...ma,cid:hr}}catch(br){var ua;console.warn("reset screenMetaCid to first page",br),li=(ua=(0,po.YU)(Fs).filter(hr=>hr.bunch===mn.x.RbPage&&!(0,po.Mo)(hr))[0])==null?void 0:ua.cid;const{hotAttr:Nr,key:ma}=sdkStore.getHotItem(li);Ci={...Nr,cid:ma}}const va=Vt.attr instanceof Object?Vt:Object.assign(Vt,{attr:{}});At({type:"current:update:state",payload:{currentScreen:Ci,currentProject:va,currentProjectMeta:Xo}});const tr=sdkStore.getHotItem(Ci.cid);At({type:"entry:activate:screen",payload:{screenCid:li}}),At({type:"screen:update:state",payload:{currentPage:tr}}),yi&&!sdkStore.isTrashed(yi)&&(At(di.GO.select([yi])),setTimeout(()=>{At({type:"entry:design:zoom:selection"})},100)),At({type:"entry:init:design:scale"});const xa=va==null?void 0:va.cid,dr=ho()(va==null?void 0:va.created_at).isAfter(ho()("2023-09-25T23:59:59+08:00")),gr=dr&&!!(va!=null&&va.source_upper_cid||va!=null&&va.parent_cid),ir=(0,E.Yt)("current_popup_panel_name_"+xa,null,E.qW.String);let Wr=null;if(ss==="old_right"){const br=(0,E.Yt)("popups_show",!0,E.qW.Boolean),Na=N.qB;Wr=br?Na.includes(ir)?ir:N.lS.Builtin:null}else Wr=ir||(gr?N.lS.Directory:N.lS.Builtin);if(xa&&Wr&&(0,E.cH)("current_popup_panel_name_"+xa,Wr),[N.lS.Flow,N.lS.Mind,N.lS.AI].includes(Wr)&&(Wr=N.lS.Builtin),At({type:"set:current:popup:panel",payload:{name:Wr}}),N.Mf[Wr]&&At({type:"searchPanel:update:state",payload:{type:N.Mf[Wr]}}),N.P4.includes(Wr)||ss==="old_right"){const br=ss==="old_right"?Tt.sR:Tt.Cj;At({type:"left-panel:set:width",payload:{width:(0,E.Yt)("layer_left_panel_width_"+xa,br,E.qW.Number),projectCid:xa}})}At({type:"right-side-panel:update:resize:width",payload:{width:(0,E.Yt)("ST_panel_width_"+xa,Tt.xM,E.qW.Number),projectCid:xa}}),At({type:"entry:observe:dom:left-panel-width"}),At({type:"entry:observe:dom:right-panel-width"}),At({type:"entry:update:mode:viewType"}),At({type:"entry:update:trash:page"})},"entry:root-project:readOnly:activate":(Be,Wt)=>{var At,Xe;let{dispatch:Vt,getState:Xo}=Be,{payload:{projectBasic:rn,projectMeta:Ps,screenCid:Os,canvasCid:ss,isHtmlZip:Fs}}=Wt;const Ei=Xo(),vi=(0,Uo.HW)(Ei);let li,Ci,yi;const ea=(0,Uo.z$)(Ei),ii=(0,Dn.bP)(Ei);if(ea!=null&&ea.screen_visible_switch){const{screenTreeData:Ir,screenTreeMap:Jr,screenDataMap:ml}=(0,As.wb)(ea.screen_visible_list);li=Ir,Ci=Jr,yi=ml}else{const{screenTreeData:Ir,screenTreeMap:Jr,screenDataMap:ml}=(0,As.tb)("B@main");li=Ir,Ci=Jr,yi=ml}Vt({type:"screen:set:all:screen-data",payload:{screenTreeData:li,screenTreeMap:Ci,screenDataMap:yi}}),document.title=""+((0,Is.qk)(rn.name)||rn.title);let Wi;if(Os&&sdkStore.getHotItem(Os).hotAttr.asFolder?Wi=(0,po.uS)(li)||Os:Wi=Os||(0,po.uS)(li),ea){const{screen_visible_switch:Ir,screen_visible_list:Jr}=ea;if(Ir&&(0,po.Rm)(Jr).length===0)throw new Error("visibleIsEmpty")}if(sdkStore.isTrashed(Wi)){if(li.children.length===0)throw new Error("visibleIsEmpty");Wi=li.children[0].cid}const{hotAttr:va,key:tr}=sdkStore.getHotItem(Wi),xa={...va,cid:tr},dr=rn.attr instanceof Object?rn:Object.assign(rn,{attr:{}});Vt({type:"current:update:state",payload:{currentScreen:xa,currentProject:dr,currentProjectMeta:Ps}});const gr=ii==="old_right"?Tt.sR:Tt.Cj,ir=dr.cid;Vt({type:"left-panel:set:width",payload:{width:(0,E.Yt)("layer_left_panel_width_"+ir,gr,E.qW.Number),projectCid:ir}}),Vt({type:"right-side-panel:update:resize:width",payload:{width:(0,E.Yt)("ST_panel_width_"+ir,Tt.xM,E.qW.Number),projectCid:ir}});const Wr=location.pathname.includes(jn.QQ),pl=location.pathname.includes("/embed/v2"),br=new URLSearchParams(location.search).has("version");Vt(di.GO.setCommunityPreview(Wr)),Vt(di.GO.setEmbedV2Preview(pl)),Vt(di.GO.setIsVersionPreview(br)),Vt({type:"elbow:clear"}),Vt({type:"set:quick-create-widget",payload:{widget:null}}),Vt({type:"entry:activate:screen",payload:{screenCid:Wi}}),ss&&((At=sdkStore.getHotItem((Xe=sdkStore.getHotItem(ss))==null?void 0:Xe.sup))==null||(At=At.hotAttr)==null?void 0:At.bunch)===mn.x.RbPage&&(Vt(di.GO.select([ss])),setTimeout(()=>{Vt({type:"entry:design:zoom:selection"})},100)),Vt({type:"entry:activate:screen",payload:{screenCid:Wi}}),Vt({type:"entry:init:design:scale"});const Na=Fs||(ea==null?void 0:ea.view_sticky),Nr=Fs||(ea==null?void 0:ea.view_sticky);Vt({type:"toolbar:update:state",payload:{canToggleSticky:Na,isShowSticky:Nr}}),Vt(di.GO.setOnlyViewMode()),Vt(di.GO.setHtmlZipPreview(Fs));const ma=!(vi!=null&&vi.id)||(ea==null?void 0:ea.comment_permission)==="off";!Na&&ma&&Vt({type:"entry:toggle:right-panel"}),ma&&Vt({type:"comment:update:isShowCommentInCanvas",payload:{isShowCommentInCanvas:!1}}),(0,pn.OW)(Ei)!==N.lS.Directory&&Vt({type:"entry:resources:update:current:popup:panel",payload:{name:N.lS.Directory}})},"entry:activate:screen":(Be,Wt)=>{let{dispatch:At}=Be,{payload:{screenCid:Xe}}=Wt;const{hotAttr:Vt,key:Xo}=sdkStore.getHotItem(Xe),rn={...Vt,cid:Xo};At({type:"current:update:state",payload:{currentScreen:rn}}),At({type:"screen:update:state",payload:{currentPage:sdkStore.getHotItem(Xe)}}),At({type:"selection:clear:state"}),At({type:"entry:reset:screen:selection",payload:{resetScreenCid:Xe}}),At({type:"entry:rebuild:screen-widget-tree"}),At({type:"entry:refresh:link-list",payload:{updateAllLink:!0}}),At({type:"entry:reset:canvas:offset"})},"entry:update:mode:viewType":Be=>{let{dispatch:Wt,getState:At}=Be;const Xe=At(),Vt=(0,Hs.uu)(Xe),Xo=(0,Hs.pH)(Xe),rn=(0,Hs.rg)(Xe),Ps=new URLSearchParams(location.search).get("view_mode");if(location.pathname.includes("/ro")||Vt||["read_only","device","inspect"].includes(Ps)||Xo||rn||Vt){Wt(di.GO.setOnlyViewMode());return}Wt(di.GO.setEditMode())},"entry:update:trash:page":Be=>{let{getState:Wt}=Be;const At=Wt(),Xe=(0,Uo.HW)(At),Vt=(0,Uo.wA)(At),Xo=(0,Fo.ln)(Xe,Vt),rn=sdkStore.getSubHotItemList("B@trash"),Ps=(0,Mn.y)(rn,Xo+2,!0);if(Ps!=null&&Ps.length){const Os=Ps.map(ss=>{let{key:Fs}=ss;return Fs});sdkStore.deleteHotItemBatch(Os)}},"entry:reset:screen:selection":(Be,Wt)=>{let{getState:At,dispatch:Xe}=Be,{payload:{resetScreenCid:Vt}}=Wt;const Xo=At(),rn=(0,pn.HA)(Xo),Ps=(0,po.kz)(rn).slice(1);Xe({type:"screen:update:screen-selection",payload:{screenSelection:[Vt]}}),Xe({type:"screen:update:select:range",payload:{screenRange:{start:Ps.indexOf(Vt),end:void 0}}})},"entry:rebuild:screen-widget-tree":(Be,Wt)=>{let{getState:At,dispatch:Xe}=Be,{payload:{pageKey:Vt=void 0}={}}=Wt;const Xo=At(),rn=(0,Hs.jI)(Xo),Ps=(0,Hs.bt)(Xo),Os=(0,Uo.Ur)(Xo),{isEditingCombo:ss}=(0,uo.r)(Xo),Fs=(0,Fn.v)(Fn.K.design),Ei=Vt!=null?Vt:Os==null?void 0:Os.cid;if(!Ei)return;const vi=new ts.c(Fs,sdkStore);vi.buildWidgetTree({folderKey:Ei,isEditingCombo:ss,editingBasketRefPage:Ps,editingBDanliKey:rn});const li=vi.widgetNode,Ci=Math.random();Xe({type:"selection:update:state",payload:{widgetStore:vi,widgetTreeData:li,layerListCacheTag:Ci}})},"entry:refresh:link-list":(Be,Wt)=>{var At;let{getState:Xe,dispatch:Vt}=Be,{payload:{updateAllLink:Xo=!1}={}}=Wt;const rn=Xe(),Ps=(At=(0,Uo.Ur)(rn))==null?void 0:At.cid;if(!Ps)return;const{isEditingCombo:Os}=(0,uo.r)(rn),ss=(0,Hs.jI)(rn),Fs=(0,Dn.Jv)(rn);let Ei=[];if([Tt.J_.none,Tt.J_.marker].includes(Fs)){const li=(0,en.p$)(rn);li.length===1&&li[0]&&(sdkStore.locUpHotCanvasKey(li[0])?Ei=(0,Jo.Xr)(sdkStore,li[0],Os,ss):Ei=[])}if(Tt.J_.markerAndLine===Fs||Xo){const li=(0,Jo.WY)(sdkStore,Ps,Os,ss);Vt({type:"links:update:all-link-node-list",payload:{allLinkNodeList:li}}),Ei=Tt.J_.markerAndLine===Fs?li:Ei}(0,So.$_)(rn).length===0&&Ei.length===0||Vt({type:"links:update:link-node-list",payload:{linkNodeList:Ei}})},"entry:edit:basket:directly":(Be,Wt)=>{let{dispatch:At}=Be,{payload:{basketKey:Xe}}=Wt;const Vt=sdkStore._calcIntActConnMapCached(),Xo=[Xe],rn=[Xe];for(;rn.length;){var Ps;const Fs=rn.pop(),Ei=Vt.subBasketToPage[Fs];if(!Ei){console.error("basket ref not valid");return}const vi=(Ps=sdkStore.getHotItem(Ei))==null?void 0:Ps.sup;if(Vt.mainPage.has(Ei)||vi==="B@ref-muban"){Xo.unshift(Ei);break}else if(vi==="B@ref-danli"){const li=Array.from(Vt.refPageToBasket[Ei])[0];rn.push(li),Xo.unshift(li)}else{console.error("basket ref not valid");return}}const Os=Xo[0],ss=sdkStore.locTopRBActiveKey(Os);if(ss==="B@main"){At({type:"entry:goto:project-alike",payload:{screenMetaCid:Os}});const Fs=Xo.slice(1,Xo.length).length>0?(0,es.j_)(Xo.slice(1,Xo.length)):"";Fs&&sdkStore.isActiveKey(Fs)&&At({type:"entry:edit:bDanli",payload:{bDanliKey:Fs}})}else if(ss==="B@ref-muban"){const Fs=sdkStore.getHotItem(Os);At({type:"entry:edit:basket:source:muban",payload:{item:{...Fs,...Fs.hotAttr}}});const Ei=Xo.slice(1,Xo.length).length>0?(0,es.j_)(Xo.slice(1,Xo.length)):"";Ei&&sdkStore.isActiveKey(Ei)&&At({type:"entry:edit:bDanli",payload:{bDanliKey:Ei}})}},"entry:goto:project-alike":(Be,Wt)=>{let{getState:At,dispatch:Xe}=Be,{payload:{screenMetaCid:Vt,isResetScale:Xo=!1}}=Wt;const rn=At(),Ps=(0,pn.Jx)(rn),Os=Ps==null?void 0:Ps.get(Vt),{hotAttr:ss,key:Fs}=sdkStore.getHotItem(Vt),Ei={...ss,cid:Fs};if(Xe({type:"current:update:state",payload:{isEditingCid:"",currentScreen:Ei}}),Xe({type:"entry:clear:selection"}),Xe({type:"selection:clear:state"}),Xe({type:"entry:rebuild:screen-widget-tree"}),Xe({type:"entry:refresh:link-list"}),Xe({type:"layerExpandedKeySet:close:ref"}),Os){const{offset:vi,scale:li}=Os;Xe({type:"current:update:state",payload:{currentScreenOriginOffset:vi}}),Xe({type:"design:set:canvas:offset",payload:{offset:vi}}),Xe({type:"design:set:scale",payload:{scale:li}}),Xe({type:"entry:update:ruler"})}else Xo&&Xe({type:"entry:reset:design:scale"}),Xe({type:"entry:reset:canvas:offset"})},"entry:edit:basket:source:muban":(Be,Wt)=>{let{getState:At,dispatch:Xe}=Be,{payload:{item:Vt}}=Wt;const Xo=At(),rn=(0,pn.OW)(Xo),Ps=(0,pn.p$)(Xo).key;Xe(di.GO.updateBasketPrevPopupPanel(rn)),Xe(di.GO.editBasketItemKey("")),Xe(di.GO.editBasketRefPage(Vt.key)),Xe(di.GO.editBasketHotItem(sdkStore.getHotItem(Vt.key))),Xe({type:"entry:layout:basket-canvas",payload:{canUpdateTear:!1}}),Xe({type:"entry:memory:current:screen:offset:scale"}),Xe({type:"entry:goto:project-alike",payload:{screenMetaCid:Vt.key,breadCrumbKey:Vt.key}}),Xe({type:"entry:update:selection:select:items",payload:{type:"selection:clear"}}),Xe(di.GO.updateBasketPrevSelection([Ps])),[N.lS.AI,N.lS.Page].includes(rn)&&Xe({type:"set:current:popup:panel",payload:{name:N.lS.Builtin}}),Xe({type:"modal:reset:preview:modal:state"})},"entry:edit:bDanli":(Be,Wt)=>{var At;let{getState:Xe,dispatch:Vt}=Be,{payload:{bDanliKey:Xo}}=Wt;const rn=Xe(),Ps=(0,pn.OW)(rn),Os=(0,pn.p$)(rn).key,ss=sdkStore.getHotItem(Xo),Fs=(0,es.OO)(Xo)?(0,es.QL)(Xo).pop():Xo;Vt(di.GO.editBasketItemKey(Xo)),Vt(di.GO.editBasketHotItem(sdkStore.getHotItem(Fs))),Vt({type:"entry:layout:basket-canvas",payload:{canUpdateTear:!1}}),Vt({type:"entry:memory:current:screen:offset:scale"}),Vt({type:"entry:goto:project-alike",payload:{screenMetaCid:ss.hotAttr.refRBPageKey,breadCrumbKey:Xo,isResetScale:!0}}),Vt({type:"entry:update:selection:select:items",payload:{type:"selection:clear"}}),Vt(di.GO.updateBasketPrevPopupPanel(Ps)),Vt(di.GO.updateBasketPrevSelection([Os])),(At=MB.commonGuideHelper)!=null&&At.checkGuideHasShown&&!MB.commonGuideHelper.checkGuideHasShown(Nn.c.GUIDE_BASKET_QUICK_COPY_CANVAS)&&MB.commonGuideHelper.tryToShowGuide(Nn.c.GUIDE_BASKET_QUICK_COPY_CANVAS),[N.lS.AI,N.lS.Page].includes(Ps)&&Vt({type:"set:current:popup:panel",payload:{name:N.lS.Builtin}}),Vt({type:"modal:reset:preview:modal:state"})},"entry:clear:selection":Be=>{let{getState:Wt,dispatch:At}=Be;const Xe=Wt(),Vt=(0,Uo.PL)(Xe);At({type:"entry:update:selection:select:items",payload:{type:"selection:clear"}}),At({type:"entry:clear:select"});const[Xo,rn]=(0,E.Yt)(Tt.NF+"-"+Vt.cid,"",E.qW.String).split(",");rn&&(0,E.a0)(Tt.NF+"-"+Vt.cid,Xo+",",E.qW.String)},"entry:update:selection:select:items":(Be,Wt)=>{let{getState:At,dispatch:Xe}=Be,{payload:Vt}=Wt;const{type:Xo="selection:select:items",...rn}=Vt;switch(Xe({type:Xo,payload:{...rn}}),Xo){case"selection:select:items":{const{cids:ss}=Vt;Xe(di.GO.select(ss));break}case"selection:unselect:items":{const{cids:ss}=Vt;Xe(di.GO.unSelect(ss));break}case"selection:clear":{Xe(di.GO.select([])),Xe(di.GO.hoverItem(""));break}}setTimeout(()=>{Xe({type:"entry:update:ruler"}),(0,Oo.K)(I18N)[Nn.c.GUIDE_SELECT_STICKY].howToShow(Vt.cids)});const Ps=At(),Os=(0,Dn.Jv)(Ps);(Os===0||Os===1)&&Xe({type:"entry:refresh:link-list"})},"entry:clear:select":Be=>{let{getState:Wt,dispatch:At}=Be;const Xe=Wt(),Vt=(0,zo.P2)(Xe),{isEditingCombo:Xo}=(0,uo.r)(Xe);if(Vt)return;At({type:"reducer:flag:set-isShowRadiusResizer",payload:{isShowRadiusResizer:!1}}),At({type:"reducer:flag:set-isResizingRadius",payload:{isResizingRadius:!1}}),At({type:"settings:set:autoTabIndex",payload:{autoTabIndex:null}}),Xo&&At({type:"settings:set:activeIndex",payload:{activeIndex:0}}),At({type:"links:active:link",payload:{cid:[]}}),At({type:"links:singleSelectLink:update",payload:{singleSelectLink:void 0}}),At({type:"update:link:selectLinkItem",payload:null});const rn=(0,zt.c)(Xe);rn&&(0,Zo.ay)(rn,"remove"),At({type:"set:editing:cid",payload:{cid:""}}),At({type:"colorpanel:set:attr",payload:{attr:void 0}}),At({type:"colorpanel:set:attrPanel",payload:{attrPanel:void 0}}),At({type:"mode:update:state",payload:{isEditingEditableWidgetCid:""}}),At({type:"entry:reset:smart-selection"})},"entry:reset:smart-selection":Be=>{let{dispatch:Wt}=Be;Wt(Ti.UU.update(Ti.HM))}};var On=e(66303),us=e(14672);const bn={"entry:update:viewport:rect":Be=>{let{dispatch:Wt}=Be;const At=document.querySelector(".mb-viewport");if(!At)return;const Xe=At.getBoundingClientRect();Wt({type:"dom:update:state",payload:{viewportRect:Xe}}),Wt({type:"entry:update:ruler",payload:{isUpdateContext:!0}})},"entry:update:toolbar":async Be=>{let{dispatch:Wt}=Be;const At=await(0,us.LD)({isShowPrompt:!1});Wt({type:"toolbar:update:state",payload:{canPaste:At}})},"entry:update:screen_list_rect":Be=>{let{dispatch:Wt}=Be;const At=document.querySelector("#screen_list");let Xe=null;At&&(Xe=At.getBoundingClientRect()),Wt({type:"dom:update:state",payload:{screenListRect:Xe}})}};var Gn=e(54386);const xs={"entry:hand-tool:toggle":Be=>{let{getState:Wt,dispatch:At}=Be;const Xe=Wt(),Vt=(0,Hs.Ro)(Xe);At(Vt?{type:"entry:hand-tool:disable",payload:{triggerMethod:"click"}}:{type:"entry:hand-tool:enable",payload:{triggerMethod:"click"}})},"entry:hand-tool:enable":(Be,Wt)=>{let{getState:At,dispatch:Xe}=Be,{payload:Vt}=Wt;const Xo=At(),{isSpaceDown:rn}=(0,Uo.ZS)(Xo),Ps=(0,Hs.Ro)(Xo),{triggerMethod:Os}=Vt;Os==="click"&&(rn||(Xe(di.GO.toggleHandMode(!0)),Xe({type:"set:quick-create-widget",payload:{widget:null}}))),Os==="pressDown"&&(Ps||(Xe(di.GO.toggleHandMode(!0)),Xe({type:"set:quick-create-widget",payload:{widget:null}})))},"entry:hand-tool:disable":(Be,Wt)=>{let{getState:At,dispatch:Xe}=Be,{payload:Vt}=Wt;const Xo=At(),{isSpaceDown:rn}=(0,Uo.ZS)(Xo),Ps=(0,Hs.Ro)(Xo),{triggerMethod:Os}=Vt;Os==="click"&&(rn||(Xe(di.GO.toggleHandMode(!1)),Xe({type:"set:quick-create-widget",payload:{widget:null}}))),Os==="pressUp"&&(Ps||rn)&&(Xe(di.GO.toggleHandMode(!1)),Xe({type:"set:quick-create-widget",payload:{widget:null}}))},"entry:handle-tool:toggle:inspect-mode":(Be,Wt)=>{let{getState:At,dispatch:Xe}=Be,{payload:{mode:Vt,isCommentDisabled:Xo=!0}}=Wt;const rn=At();(0,Hs._b)(rn)!==Vt&&(Xe(di.GO.toggleHandMode(!1)),Xo&&Xe({type:"entry:comment:disabled",payload:{noWigglingCommentCid:!0}}),Xe({type:"entry:ST:STMode:disable"}),Xe({type:"versions:update",payload:{isVersionManagementPaneShow:!1}}),Xe(di.GO.toggleInspectMode(Vt)),Xe(di.GO.select([])),Xe({type:"elbow:update",payload:{isDraggingElbow:!1}}),(0,Gn.A)({operation_type:Gn.D.Inspect}))},"entry:handle-tool:preview:view_mode":(Be,Wt)=>{let{dispatch:At}=Be,{payload:{previewViewMode:Xe}}=Wt;MB.__store__.dispatch(di.GO.updatePreviewViewMode(Xe)),MB.webpackInterface.store.dispatch({type:"current:update:previewViewMode",payload:{previewViewMode:Xe}})}},Es={...oo,...Un,...On.O,...bn,...xs};var Ys=e(70299),lo=e(39562),Ko=e(61535),eo=e(52191),ro=e(60875);const Yt=Be=>{const Wt=(0,m.RZ)(),At=(0,o.Yl)(Qt,(0,o.Tw)(Wt.middleware,ro.v));return Wt.setEntryMap(Es),Be.reduxEntry=Wt,Be.getSelectedTrees=()=>(0,en.x$)(At.getState()),Be.getSelectedMindNodeTrees=()=>(0,lo.fo)(At.getState()),Be.__store__=At,Be.action=(Xe,Vt)=>At.dispatch({type:Xe,payload:Vt}),Be.getScale=()=>(0,Uo.X_)(At.getState()),Be.getCanvasRect=()=>(0,Uo.Pz)(At.getState()),Be.getCurrentToolBarHeight=()=>(0,eo.wT)(At.getState()),Be.getCanvasOffset=()=>(0,Uo.ER)(At.getState()),Be.getNextWidgetZ=()=>(0,Ys.G)(At.getState()),Be.getCurrentProjectMeta=()=>(0,Uo.YT)(At.getState()),Be.getCurrentScreen=()=>(0,Uo.Ur)(At.getState()),Be.getWidgetStore=()=>(0,Ko.UV)(At.getState()),Be.getRootProject=()=>(0,Uo.PL)(At.getState()),Be.getSelectionItems=()=>(0,en.QA)(At.getState()),At}},32723:(Et,ke,e)=>{"use strict";e.d(ke,{j:()=>m});var o=e(59742);const m=(C,T)=>{const A=[];return C.forEach(k=>{const{cids:p,siblings:r}=k,x=[...r].sort((u,b)=>u.hotAttr.zIndex-b.hotAttr.zIndex),f=T===1?g(p,x):l(p,x);A.push(...f)}),A.filter(k=>!(0,o.OO)(k.key))},g=(C,T)=>{let A=-1/0;const k=[];if(T.forEach(x=>{C.includes(x.key)?k.push(x):A=Math.max(x.hotAttr.zIndex,A)}),A===-1/0)return[];const p=[],r=A+1;return k.forEach((x,f)=>{const u=r+f===0?1:r+f;x.hotAttr.zIndex!==u&&p.push({...x,hotAttr:{...x.hotAttr,zIndex:u}})}),p},l=(C,T)=>{let A=1/0;const k=[];if(T.forEach(r=>{C.includes(r.key)?k.unshift(r):A=Math.min(r.hotAttr.zIndex,A)}),A===1/0)return[];const p=[];if(A===0||A-k.length<=0){T.sort((x,f)=>f.hotAttr.zIndex-x.hotAttr.zIndex);const r=T.filter(x=>!C.includes(x.key)).concat(k);r.forEach((x,f)=>{p.push({...x,hotAttr:{...x.hotAttr,zIndex:r.length-f}})})}else{const r=A-1;k.forEach((x,f)=>{const u=r-f===0?-1:r-f;x.zIndex!==u&&p.push({...x,hotAttr:{...x.hotAttr,zIndex:u}})})}return p}},7173:(Et,ke,e)=>{"use strict";e.d(ke,{On:()=>fe,wm:()=>ce,Z8:()=>de});var o=e(61535),m=e(61724),g=e(20029),l=e(30797),C=e(67305),T=e(61269),A=e(40829),k=e(39557),p=e(14672);const r={fontSize:"font-size",lineHeight:"line-height",textDecoration:"text-decoration",fontStyle:"font-style"},x=(se,J)=>{const ve={};if(se){const{appearance:R,text:V}=se;if(R){const O=(0,p.Dy)(R,J.appearance),{background:Ce}=O;Ce&&(ve.background=Ce[1])}if(V){const O=(0,p.Dy)(V,J.text);Object.entries(O).forEach(Ce=>{let[ae,q]=Ce;["fontSize","lineHeight","padding"].includes(ae)?ve[r[ae]||ae]=q+"px":ae==="boldType"?ve["font-weight"]=q?"bold":"normal":ae==="ha"?ve["text-align"]=q:ae==="va"?ve["align-items"]=q:ae==="textColor"?ve.color=(0,k._o)(q):ve[r[ae]||ae]=q})}}let D="";return Object.entries(ve).forEach(R=>{let[V,O]=R;D+=V+":"+O+";"}),D};var f=e(8508),u=e(63552),b=e(63555),h=e(62065),E=e(54606),N=e(23340),z=e(7997),S=e(51691),_=e(89345),y=e(90176),a=e(59742);const $=(se,J)=>se?J.find(ve=>ve.key===se.cid):J.find(ve=>{var D;return((D=ve.hotAttr)==null?void 0:D.type)===b.x.WTable}),ce=se=>{const J=se(),ve=$((0,m.nh)(J),(0,l.Z9)(J)),D=(0,m.zX)(J),R=(0,m.Eb)(J);return{widget:ve,selectTableCellInfo:D,selectCopyInfo:R}},de={"entry:insert:top:row":(se,J)=>{let{getState:ve}=se,{payload:{rowNumber:D}}=J;const{widget:R,selectTableCellInfo:V}=ce(ve),{selectionLeftTopInfo:{x:O,y:Ce},selectionRightBottomInfo:{x:ae,y:q}}=V,K=(0,C.BG)(R,D,Number(Ce),!0);fe(K),(0,z.Z)({widget:K,x1:O,y1:Number(Ce)+D,x2:ae,y2:Number(q)+D}),(0,S.Wv)(D)},"entry:insert:bottom:row":(se,J)=>{let{getState:ve}=se,{payload:{rowNumber:D}}=J;const{widget:R,selectTableCellInfo:V}=ce(ve),{selectionLeftTopInfo:{x:O,y:Ce},selectionRightBottomInfo:{x:ae,y:q}}=V,K=(0,C.BG)(R,D,Number(q));fe(K),(0,z.Z)({widget:K,x1:O,y1:Ce,x2:ae,y2:q}),(0,S.Wv)(D)},"entry:table:delete:row":se=>{let{getState:J}=se;const{widget:ve,selectTableCellInfo:D}=ce(J),{selectionLeftTopInfo:{y:R,x:V},selectionRightBottomInfo:{y:O,x:Ce}}=D,ae=O-R+1,{newWidget:q}=(0,C.CF)(ve,R,ae);if(!q)return;fe(q);const{maxY:K}=(0,T.II)(q);let xe=O;O>K&&(xe=K),(0,z.Z)({widget:q,x1:V,y1:xe,x2:Ce,y2:xe})},"entry:table:insert:left:column":(se,J)=>{let{getState:ve}=se,{payload:{columnNumber:D}}=J;const{widget:R,selectTableCellInfo:V}=ce(ve),{selectionLeftTopInfo:{x:O,y:Ce},selectionRightBottomInfo:{x:ae,y:q}}=V,K=(0,C.GF)(R,D,O,!0);fe(K),(0,z.Z)({widget:K,x1:O+D,y1:Ce,x2:ae+D,y2:q}),(0,S.qt)(D)},"entry:table:insert:right:column":(se,J)=>{let{getState:ve}=se,{payload:{columnNumber:D}}=J;const{widget:R,selectTableCellInfo:V}=ce(ve),{selectionLeftTopInfo:{x:O,y:Ce},selectionRightBottomInfo:{x:ae,y:q}}=V,K=(0,C.GF)(R,D,ae);fe(K),(0,z.Z)({widget:K,x1:O,y1:Ce,x2:ae,y2:q}),(0,S.qt)(D)},"entry:table:delete:column":se=>{let{getState:J}=se;const{widget:ve,selectTableCellInfo:D}=ce(J),{selectionLeftTopInfo:{y:R,x:V},selectionRightBottomInfo:{y:O,x:Ce}}=D,ae=Ce-V+1,{newWidget:q}=(0,C.AR)(ve,V,ae);if(!q)return;fe(q);const{maxX:K}=(0,T.II)(q);let xe=Ce;Ce>K&&(xe=K),(0,z.Z)({widget:q,x1:xe,y1:R,x2:xe,y2:O})},"entry:table:merge:cell":async se=>{let{getState:J}=se;const{widget:ve,selectTableCellInfo:D}=ce(J);if(ve)if((0,y.NJ)(D,ve)){if(await(0,T.aT)()){const R=(0,y.Ry)(ve,D);fe(R)}}else{const R=(0,y.Ry)(ve,D);fe(R)}},"entry:table:remove:merge:cell":se=>{let{getState:J}=se;const{widget:ve,selectTableCellInfo:D}=ce(J),R=(0,y.zO)(ve,D);fe(R)},"entry:table:copy:selection":async se=>{let{getState:J,dispatch:ve}=se;const{widget:D,selectTableCellInfo:R}=ce(J);if(!D)return;const{str:V}=await(0,C.Bm)(D,R);(0,T.t0)({tableCopyInfo:V}),ve({type:"entry:table:copy:cell:properties"})},"entry:table:cut:selection":async se=>{let{getState:J}=se;const{widget:ve,selectTableCellInfo:D}=ce(J);if(!ve)return;const{widget:R,str:V}=await(0,C.Bm)(ve,D);fe(R),(0,T.t0)({tableCopyInfo:V})},"entry:table:key:down":async(se,J)=>{let{getState:ve}=se,{payload:D}=J;const{widget:R,eventType:V,options:O,selectTableCellInfo:Ce}=D;if(!Ce)return;const{selectionLeftTopInfo:{x:ae,y:q},selectionRightBottomInfo:{x:K,y:xe}}=Ce,{maxX:te,maxY:H}=(0,T.II)(R);let re=!1,be=R,Le={isNeedUpdate:!1,x1:ae,y1:q,x2:K,y2:xe};if(V==="up"){if(q-1<0)return;Le={isNeedUpdate:!0,x1:ae,x2:ae,y1:q-1,y2:q-1},Le=(0,C.n7)(R,Le,"up")}else if(V==="left"){if(ae-1<0)return;Le={isNeedUpdate:!0,x1:ae-1,x2:ae-1,y1:q,y2:q},Le=(0,C.n7)(R,Le,"left")}else if(V==="right"){if(ae+1>te)return;Le={isNeedUpdate:!0,x1:ae+1,x2:ae+1,y1:q,y2:q},Le=(0,C.n7)(R,Le,"right")}else if(V==="down"){if(q+1>H)return;Le={isNeedUpdate:!0,x1:ae,x2:ae,y1:q+1,y2:q+1},Le=(0,C.n7)(R,Le,"down")}else if(V==="delete"){re=!0;const Ve=(0,C.WJ)(ae,q,K,xe,"");be=(0,C.HW)(R,Ve)}else if(V==="selectAll")Le={isNeedUpdate:!0,x1:0,x2:te,y1:0,y2:H};else if(V==="copy"){const{str:Ve}=await(0,C.Bm)(R,Ce);(0,T.t0)({tableCopyInfo:Ve}),MB.action("entry:table:copy:cell:properties")}else if(V==="cut"){const{widget:Ve,str:Ne}=await(0,C.Bm)(R,Ce);(0,T.t0)({tableCopyInfo:Ne}),re=!0,be=Ve}else if(V==="paste"){const{text:Ve}=O;re=!0;const{map:Ne,endX:We,endY:ze,willCopyStyles:ft}=await(0,C.zi)(R,Ve,ae,q);be=(0,C.HW)(R,Ne),ft&&(be=(0,C.hB)(be,ae,q,K,xe,ft)),Le={isNeedUpdate:!0,x1:ae,x2:We,y1:q,y2:ze}}else V==="undo"?MB.action("entry:undo-stack:undo"):V==="redo"?MB.action("entry:undo-stack:redo"):V==="pasteProperties"&&MB.action("entry:table:paste:cell:properties");Le&&(Le.isNeedUpdate&&(0,z.Z)({widget:be,x1:Le.x1,y1:Le.y1,x2:Le.x2,y2:Le.y2}),re&&fe(be))},"entry:table:paste:selection":async se=>{let{getState:J,dispatch:ve}=se;if(await(0,N.$H)({hasNotice:!1})){const{widget:D,selectTableCellInfo:R,selectCopyInfo:V}=ce(J);if(!D||V===void 0||V===null)return;ve({type:"entry:table:key:down",payload:{widget:D,eventType:"paste",options:{text:V},selectTableCellInfo:R}})}else{const{widget:D,selectTableCellInfo:R,selectCopyInfo:V}=ce(J);let O=V;if(O===null&&(O=await(0,N.oV)({itemType:"text/plain"})),!D||!O)return;ve({type:"entry:table:key:down",payload:{widget:D,eventType:"paste",options:{text:O},selectTableCellInfo:R}})}},"entry:table:set:cell:attr:new":(se,J)=>{let{getState:ve,dispatch:D}=se,{payload:R}=J;const{attr:V,value:O}=R,{widget:Ce,selectTableCellInfo:ae}=ce(ve);if(!Ce)return;const q=(0,C.Kr)(Ce,ae,O,V);D({type:"entry:widget:change",payload:{flatChgList:[{key:q.key,hotAttr:{...q,name:q.display_name}}]}})},"entry:table:set:cell:width:height":(se,J)=>{let{getState:ve}=se,{payload:D}=J;const{attr:R,value:V}=D,{widget:O,selectTableCellInfo:Ce}=ce(ve);if(!O)return;const ae=(0,C.rq)(O,Ce,V,R);fe(ae)},"entry:set:table:style:type":(se,J)=>{let{getState:ve}=se,{payload:D}=J;const{type:R}=D,{widget:V}=ce(ve),O=(0,C.zc)(V,R);fe(O)},"entry:table:change:rows":(se,J)=>{let{getState:ve,dispatch:D}=se,{payload:R}=J;const V=ve(),Ce=(0,l.p$)(V).map(sdkStore.getHotItem).filter(q=>q.hotAttr.type===b.x.WTable),ae=[];for(const q of Ce){const K={key:q.key,...q.hotAttr},xe=(0,A.SS)(K)?K.heightList.length:K.tableData.data.length,te=R-xe;if(te===0)return;let H;te>0?H=(0,C.BG)(K,te,xe-1):H=((0,A.SS)(K)?(0,C.HS)(K,xe+te,Math.abs(te)):(0,C.CF)(K,xe+te,Math.abs(te))).newWidget,H&&ae.push({key:H.key,hotAttr:{...H}})}D({type:"entry:widget:change",payload:{flatChgList:ae}})},"entry:table:change:columns":(se,J)=>{let{getState:ve,dispatch:D}=se,{payload:R}=J;const V=ve(),Ce=(0,l.p$)(V).map(sdkStore.getHotItem).filter(q=>(q==null?void 0:q.hotAttr.type)===b.x.WTable),ae=[];for(const q of Ce){const K={key:q.key,...q.hotAttr},xe=(0,A.SS)(K)?K.widthList.length:K.tableData.columns.length,te=R-xe;if(te===0)return;let H=K;if(te>0)H=(0,C.GF)(K,te,xe-1);else{const re=(0,C.AR)(K,xe+te,Math.abs(te));if(!re)return;H=re.newWidget}H&&ae.push({key:H.key,hotAttr:{...H}})}D({type:"entry:widget:change",payload:{flatChgList:ae}})},"entry:table:copy:cell:properties":se=>{let{getState:J}=se;const ve=J(),{selectTableCellInfo:D}=ce(J),{selectionLeftTopInfo:{x:R,y:V},selectionRightBottomInfo:{x:O,y:Ce},isCanRemoveMerge:ae}=D;if(R===O&&V===Ce||ae){const K=(0,u.g)(ve);(0,_.vz)(K)}},"entry:table:paste:cell:properties":async(se,J)=>{let{getState:ve,dispatch:D}=se,{payload:R}=J;const{widget:V,selectTableCellInfo:O}=ce(ve),{tableData:{cellStyles:Ce}}=V,{selectionLeftTopInfo:{x:ae,y:q},selectionRightBottomInfo:{x:K,y:xe}}=O,te=await(0,p._d)({isShowPrompt:!1});if(te&&Ce)if((0,A.SS)(V)){const{table:H,cells:re}=V,be=JSON.parse(JSON.stringify(re));for(let Le=ae;Le<=K;Le++)for(let Ve=q;Ve<=xe;Ve++){const Ne=(0,A.j)(be,H,Ve,Le);if(!Ne)continue;const We=(0,T.Gj)(Ne.style);Ne.style=x(te,We)}D({type:"entry:widget:change",payload:{flatChgList:[{key:V.key,hotAttr:{cells:be}}]}})}else{const H=JSON.parse(JSON.stringify(Ce));for(let re=ae;re<=K;re++)for(let be=q;be<=xe;be++){const Le=(0,T.Gj)(Ce[be][re]);H[be][re]=x(te,Le)}D({type:"entry:widget:change",payload:{flatChgList:[{key:V.key,hotAttr:{tableData:{...V.tableData,cellStyles:H}}}]}})}},"entry:table:copy:cell:interaction":se=>{let{getState:J}=se;const{widget:ve,selectTableCellInfo:D}=ce(J),{selectionLeftTopInfo:{x:R,y:V},selectionRightBottomInfo:{x:O,y:Ce},isCanRemoveMerge:ae}=D;if(R===O&&V===Ce||ae){let xe;if((0,A.SS)(ve)){var K;const{table:H,cells:re}=ve;xe=(((K=(0,A.j)(re,H,V,R))==null?void 0:K.link)||"").split(",")}else xe=ve.tableData.links[V][R].split(",");const te=ve.interactions.filter(H=>xe.find(re=>re===H.subKey)).map(H=>({...H,subKey:null}));(0,p.Ro)(te)}},"entry:table:paste:cell:interaction":async(se,J)=>{let{getState:ve,dispatch:D}=se,{payload:R}=J;const V=ve(),{widget:O,selectTableCellInfo:Ce}=ce(ve);if((0,A.SS)(O)){D({type:"entry:table:paste:cell:interaction2",payload:R});return}const ae=(0,f.vy)(V),q=(0,o.Mm)(V),{isEditingBasket:K}=(0,E.r)(V),xe=(0,g.jI)(V),{selectionLeftTopInfo:{x:te,y:H},selectionRightBottomInfo:{x:re,y:be}}=Ce,Le=await(0,p.Di)({isShowPrompt:!0});let Ve;if(Le){let Ne=[...O.interactions];const We=JSON.parse(JSON.stringify(O.tableData.links)),ze=[];let ft,mt=0;for(let i=te;i<=re;i++)for(let gt=H;gt<=be;gt++){const{oldCellItas:Je,oldCellItaKeys:Pt}=(0,h.Ql)({tableData:O.tableData,interactions:O.interactions,j:gt,i}),bt=(0,h.gu)({clipboardItas:Le,editingBasketKey:xe,isEditingBasket:K,hasSubKey:!0});We[gt][i]?We[gt][i]=We[gt][i]+","+bt.map($t=>$t.subKey).join(","):We[gt][i]=bt.map($t=>$t.subKey).join(","),mt===0&&(Ve=bt.map($t=>$t.key));for(const $t of Pt)Ne=Ne.filter(go=>go.subKey!==$t);const{nextItas:qt,nextLinkListBeingCreated:pt}=(0,h.Sw)({loopCount:mt,oldItas:Je,bePastedItas:bt,linkListBeingCreated:q,insertPos:R.insertPos});mt===0&&(ft=pt),ze.push(...qt),mt+=1}D({type:"linklist_beingcreated:update:state",payload:{linkListBeingCreated:ft}}),D({type:"links:active:link",payload:{cid:(0,h.mV)(b.x.WTable,[...ae,...Ve])}}),D({type:"entry:widget:change",payload:{flatChgList:[{key:O.key,hotAttr:{interactions:[...Ne,...ze],tableData:{...O.tableData,links:We}}}]}})}},"entry:table:paste:cell:interaction2":async(se,J)=>{let{getState:ve,dispatch:D}=se,{payload:R}=J;const V=ve(),{widget:O,selectTableCellInfo:Ce}=ce(ve),ae=(0,f.vy)(V),q=(0,o.Mm)(V),{isEditingBasket:K}=(0,E.r)(V),xe=(0,g.jI)(V),{selectionLeftTopInfo:{x:te,y:H},selectionRightBottomInfo:{x:re,y:be}}=Ce,Le=await(0,p.Di)({isShowPrompt:!0});let Ve;if(!Le)return;let Ne=[...O.interactions];const{cells:We,table:ze}=O,ft=JSON.parse(JSON.stringify(We)),mt=[];let i,gt=0;for(let Je=te;Je<=re;Je++)for(let Pt=H;Pt<=be;Pt++){const{oldCellItas:bt,oldCellItaKeys:qt}=(0,h.iL)({cells:We,table:ze,interactions:O.interactions,j:Pt,i:Je}),pt=(0,h.gu)({clipboardItas:Le,editingBasketKey:xe,isEditingBasket:K,hasSubKey:!0}),$t=(0,A.j)(ft,ze,Pt,Je);if(!$t)continue;$t.link?$t.link=$t.link+","+pt.map(Tt=>Tt.subKey).join(","):$t.link=pt.map(Tt=>Tt.subKey).join(","),gt===0&&(Ve=pt.map(Tt=>Tt.key));for(const Tt of qt)Ne=Ne.filter(mo=>mo.subKey!==Tt);const{nextItas:go,nextLinkListBeingCreated:Co}=(0,h.Sw)({loopCount:gt,oldItas:bt,bePastedItas:pt,linkListBeingCreated:q,insertPos:R.insertPos});gt===0&&(i=Co),mt.push(...go),gt+=1}D({type:"linklist_beingcreated:update:state",payload:{linkListBeingCreated:i}}),D({type:"links:active:link",payload:{cid:(0,h.mV)(b.x.WTable,[...ae,...Ve])}}),D({type:"entry:widget:change",payload:{flatChgList:[{key:O.key,hotAttr:{interactions:[...Ne,...mt],cells:ft}}]}})},"entry:table:widget:change":(se,J)=>{let{getState:ve,dispatch:D}=se,{payload:R}=J;const{data:V}=R;D({type:"entry:widget:change",payload:{flatChgList:[{key:V.key,hotAttr:{...V,name:V.display_name}}]}})},"entry:table:save:widget":(se,J)=>{let{getState:ve,dispatch:D}=se,{payload:R}=J;const{newWidget:V}=R;D({type:"entry:table:widget:change",payload:{data:V}})},"entry:table:limitOneRowOrColumnAlert":se=>{let{getState:J,dispatch:ve}=se;ve({type:"modal:update:confirm:state",payload:{isOpen:!0,canCancel:!1,title:I18N.ScreenContainer.del_table_row_or_column_max_title,desc:I18N.ScreenContainer.del_table_row_or_column_max_desc,onConfirm:()=>{}}})},"entry:table:set:value":(se,J)=>{let{getState:ve,dispatch:D}=se,{payload:R}=J;const{widget:V,position:{x:O,y:Ce},text:ae}=R;let q;if((0,A.SS)(V)){const{cells:K,table:xe}=V,te=JSON.parse(JSON.stringify(K)),H=(0,A.j)(te,xe,Ce,O);if(!H)return;H.data=ae,q={...V,cells:te}}else{const{data:K}=V.tableData,xe=K.map((te,H)=>te.map((re,be)=>Number(O)===be&&Number(Ce)===H?ae:re));q={...V,tableData:{...V.tableData,data:xe}}}D({type:"entry:table:widget:change",payload:{data:q}})},"entry:table:paste:copyselection":(se,J)=>{let{getState:ve,dispatch:D}=se,{payload:R}=J;const{widget:V,selectCopyCell:O,selectionTableCellInfo:Ce}=R;let ae;if((0,A.SS)(V)){const q=(0,C.R3)(V,Ce),K=(0,C.Oc)(q,Ce,O);ae=(0,C.XU)(V,K)}else{const q=(0,C.qR)(V,Ce),K=(0,C.Oc)(q,Ce,O);ae=(0,C.cG)(V,K)}fe(ae),(0,T.t0)({selectCopyCell:null})},"entry:table:migrate":(se,J)=>{let{getState:ve,dispatch:D}=se,{payload:R}=J;const{key:V}=R;if((0,a.OO)(V)&&!(0,C.K)(V))return;const O=sdkStore.getHotItem(V);if(!O)return;const Ce=(0,A.U1)(O.hotAttr.tableData),ae=[{key:V,hotAttr:{"!version":3,...Ce}}];D({type:"entry:widget:change",payload:{flatChgList:ae}})},"entry:table:rollback":(se,J)=>{let{getState:ve,dispatch:D}=se,{payload:R}=J;const{key:V}=R;if((0,a.OO)(V)&&!(0,C.K)(V))return;const O=sdkStore.getHotItem(V);if(!O)return;const Ce=(0,A.F7)(O.hotAttr);D({type:"entry:widget:change",payload:{flatChgList:[{key:V,hotAttr:{"!version":1,tableData:Ce}}]}})}},fe=function(se,J){J===void 0&&(J=!1),MB.action("entry:table:widget:change",{data:se})}},90743:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>l});var o=e(25813);const m={linkToastShow:!1,activeEntityKey:"",alignmentToolbarShow:!1,isCreatingLink:!1,isStopAutoSave:!1},l=function(C,T){C===void 0&&(C=m);let{type:A,payload:k}=T;switch(A){case"draft:update:state":return(0,o.O1)(C,k);default:return C}}},63646:(Et,ke,e)=>{"use strict";e.d(ke,{HM:()=>o,UU:()=>g,mg:()=>m});const o={isHidden:!1,isActive:!1,isDraggingWidgetCid:null,newItems:[],isDragging:!1,isAdjustingRowGap:!1,isAdjustingColGap:!1,isResizingGap:!1,rowGap:null,colGap:null,selectedWidgetInfo:[],rowStates:[],changes:[],enableMarginChange:!1};function m(l,C){switch(l===void 0&&(l=o),C.type){case"smart-selection:update:state":return{...l,...C.payload};case"smart-selection:reset:state":return{...o};default:return l}}let g;(function(l){function C(A){return{type:"smart-selection:update:state",payload:{...A}}}l.update=C;function T(){return{type:"smart-selection:reset:state"}}l.reset=T})(g||(g={}))},34129:(Et,ke,e)=>{"use strict";e.d(ke,{c:()=>l});var o=e(63686),m=e(47143),g=e(61535);const l=(0,o.Mz)([m.lh,g.RX,g.UV],(C,T,A)=>{var k;return(k=A.getNode(C))==null?void 0:k.widget})},43391:(Et,ke,e)=>{"use strict";e.d(ke,{C:()=>T});var o=e(63686),m=e(63555),g=e(44622),l=e(47143),C=e(98386);const T=(0,o.Mz)([C.HA,l.Ur],(A,k)=>{var p;const r=!A||(A==null||(p=A.children)==null?void 0:p.length)===0;if(!r){const x=(0,g.YU)(A).filter(f=>f.bunch===m.x.RbPage&&!(0,g.Mo)(f));return{isEmptyScreen:!(x!=null&&x.length)||!k,isEmpty:r}}return{isEmptyScreen:!0,isEmpty:r}})},84470:(Et,ke,e)=>{"use strict";e.d(ke,{j:()=>l});var o=e(63686),m=e(45411),g=e(30797);const l=(0,o.Mz)([g.p$],C=>(0,m.td)(C))},70299:(Et,ke,e)=>{"use strict";e.d(ke,{G:()=>A});var o=e(63686),m=e(63555),g=e(32723),l=e(49390),C=e(20029),T=e(30797);const A=(0,o.Mz)([C.Bk,T.x$,T.p$],(k,p,r)=>{let x=k;if(r&&r.length>0){const b=(0,l.GF)(r);x=(0,g.j)(b,1)}const u=(x.length>0?x:k).filter(b=>!m.Q.ALWAYS_ON_TOP_NAMES.includes(b.type||b.hotAttr.type)).map(b=>{var h;return((h=sdkStore.getHotItem(b.key))==null||(h=h.hotAttr)==null?void 0:h.zIndex)||5});return Math.max.call(null,4,...u)+1})},25961:(Et,ke,e)=>{"use strict";e.d(ke,{KF:()=>l,P2:()=>g,tR:()=>C,tl:()=>T});var o=e(63686),m=e(61535);const g=A=>A.editor.state.image.isEditingImageWrapperCid,l=A=>A.editor.state.image.currentImageClipSelected,C=A=>A.editor.state.image.currentImageOperateType,T=(0,o.Mz)([m.UV,m.RX,g],(A,k,p)=>p?p.split(",").map(x=>A.getNode(x)).filter(x=>!!x):null)},3835:(Et,ke,e)=>{"use strict";e.d(ke,{E:()=>g,lu:()=>m,n$:()=>l,pp:()=>o});const o=C=>C.editor.state.pencil.bdrStyle,m=C=>C.editor.state.pencil.bdrColor,g=C=>C.editor.state.pencil.bdrWidth,l=C=>C.editor.state.pencil.lastCreateKey},56315:(Et,ke,e)=>{"use strict";e.d(ke,{$:()=>o});const o=m=>m.editor.state.smartSelection},93443:(Et,ke,e)=>{"use strict";e.d(ke,{b:()=>o});const o=1e4},68673:(Et,ke,e)=>{"use strict";e.d(ke,{F:()=>o});var o=function(m){return m[m.Design=0]="Design",m[m.Experience=1]="Experience",m}(o||{})},5985:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>re});var o=e(51044),m=e(74059),g=e(86634),l=e.n(g),C=e(28149),T=e(15668),A=e(7290),k=e(67234),p=e(55560),r=e(21676);const x=40,f=r.Ay.footer.withConfig({displayName:"styles__StyledWidgetExport",componentId:"sc-1o3cpyy-0"})(["position:relative;display:flex;flex-direction:column;align-items:flex-start;height:1px;transition:all 0.2s ease-in-out;overflow:hidden;&.is-open{height:auto;border-top:none;box-shadow:",";background-color:",";}.export-panel{width:100%;height:auto;display:flex;flex-direction:column;align-items:stretch;.export-header{display:flex;justify-content:space-between;align-items:center;height:40px;padding:0 10px 0px 16px;border-bottom:1px solid ",";&.is-misc-opened{&:lang(en){height:auto;padding:10px 10px 10px 16px;align-items:flex-start;.check{align-items:flex-start;}}}.label{color:",";font-weight:600;align-self:center;}.check{margin-left:-6px;input,.Check-state{margin:6px;}.Check-label{margin-left:4px;}}}.svg-icon-wrapper{color:",";width:24px;height:24px;cursor:pointer;text-align:center;border-radius:4px;&.is-disabled{cursor:not-allowed;color:",";}&:not(.is-disabled):hover{background-color:",";}&:not(.is-disabled).active{background-color:",";}svg{width:24px;height:24px;}&:nth-child(2){margin-left:auto;}}.export-settings{display:flex;flex-direction:column;padding:8px 10px 0px;.export-state{display:flex;align-items:center;height:28px;margin-bottom:4px;label{width:212px;height:28px;}}.is-multi-select-includes-panel-tip{background-color:rgba(22,132,252,0.1);width:202px;height:28px;color:",";align-self:center;border-radius:2px;line-height:28px;text-align:center;margin-top:3px;margin-bottom:10px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding:0 7px;}.select-label{height:26px;display:flex;justify-content:space-between;padding-right:32px;span{padding-left:7px;color:",";&.ratio{margin-left:0px;width:51px;}&.affix{width:64px;}&.format{width:65px;}}}.export-second{display:flex;justify-content:space-between;flex-direction:column;& > div.select{height:32px;display:flex;align-items:center;justify-content:space-between;position:relative;padding-right:32px;.WorkspaceSelect.export-select{width:100%;}button:disabled{color:#c8cdd0;cursor:not-allowed;}.ratio{width:51px;}.affix{width:64px;}.format{width:65px;input{color:",";background-color:",";border:none;}}.remove{position:absolute;right:0;}& > label{width:100%;height:28px;border-radius:4px;}& > span{color:",";line-height:20px;}}}}}"],be=>be.theme.export_bar_box_shadow,be=>be.theme.color_bg_white,be=>be.theme.color_btn_secondary_active,be=>be.theme.color_text_L1,be=>be.theme.color_text_L1,be=>be.theme.color_text_disabled01,be=>be.theme.color_btn_secondary_hover,be=>be.theme.color_btn_secondary_active,be=>be.theme.color_proto,be=>be.theme.color_text_L3,be=>be.theme.color_text_disabled01,be=>be.theme.color_bg_white,be=>be.theme.color_text_L3),u=r.Ay.div.withConfig({displayName:"styles__StyledExportButton",componentId:"sc-1o3cpyy-1"})(["width:100%;height:","px;background:",";padding:0 10px;display:flex;justify-content:flex-end;align-items:center;z-index:1;border-top:",";.button-root{width:100%;.btn-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}.svg-icon.btn-loading{animation:spinning 2s linear infinite;}"],x,be=>be.theme.color_bg_white,be=>be.isOpen?"none":"1px solid "+be.theme.color_bg_border_01),b=(0,r.DU)(["#IBOT_SELECT_MENU_ROOT{.SelectMenuPortal{.WorkspaceSelectMenu.export-select-menu.is-open{width:90px;}.select-format-menu{right:0;}}}"]);var h=e(28678),E=e(7972),N=e(11777),z=e(7775);const S=[{label:"1x",value:"1"},{label:"2x",value:"2"},{label:"3x",value:"3"}],_=[{label:"1x",value:"1"},{label:"2x",value:"2"}],y=["prefix","suffix"],a=S.map(be=>be.value),$=_.map(be=>be.value),ce=(be,Le,Ve,Ne)=>be.reduce((We,ze)=>!Le&&ze.format===p.xk.GIF?(Ne||We.push({...ze,format:p.xk.PNG}),We):!Ve&&ze.format===p.xk.SVG?(Ne||We.push({...ze,format:p.xk.PNG}),We):(We.push(ze),We),[]),de=(be,Le)=>be.filter(Ve=>Ve.format===Le).map(Ve=>Ve.scale);var fe=e(57464);const se=be=>{let{id:Le,config:Ve,isSelectSvgIconsOnly:Ne,isSelectGifOnly:We,isRemoveButtonDisabled:ze,availablePNGScale:ft,availablePDFScale:mt,isFreePlan:i,handleRemoveConfig:gt,onChange:Je}=be;const{format:Pt,scale:bt,affix:qt}=Ve,pt=(0,o.useCallback)(()=>{gt==null||gt(Le)},[gt,Le]),$t=(0,o.useCallback)((mo,jo)=>{Je==null||Je({...Ve,[jo]:mo},Le)},[Ve,Le,Je]),go=(0,o.useMemo)(()=>y.map(mo=>({label:I18N.WidgetExport[mo],value:mo})),[]),Co=(0,o.useMemo)(()=>{const mo=Pt===p.xk.PDF?_:S,jo=Pt===p.xk.PDF?mt:ft;return mo.map(Kt=>{if(!jo.includes(Kt.value)){const Ft=Kt.value!==bt;return{...Kt,isDisabled:Ft,tooltipWrapper:i?J:void 0}}return{...Kt,isDisabled:!1}})},[Pt,bt,ft,mt,i]),Tt=(0,o.useMemo)(()=>[{label:"PNG",value:p.xk.PNG,isDisabled:Pt===p.xk.PNG?!1:ft.length<=0||!ft.includes(bt)},...Ne?[{label:"SVG",value:p.xk.SVG,isDisabled:Pt===p.xk.SVG?!1:bt!=="1"}]:We?[{label:"GIF",value:p.xk.GIF,isDisabled:Pt===p.xk.GIF?!1:bt!=="1"}]:[],{label:"PDF",value:p.xk.PDF,isDisabled:Pt===p.xk.PDF?!1:mt.length<=0||!mt.includes(bt)}],[Pt,bt,Ne,We,ft,mt]);return(0,fe.jsxs)("div",{className:"select",children:[(0,fe.jsx)("div",{className:"ratio",children:(0,fe.jsx)(z.mq,{isDisabled:Pt===p.xk.SVG||Pt===p.xk.GIF,className:"select export-select",menuClassName:"export-select-menu",value:bt,optionList:Co,onChange:mo=>$t(mo,"scale")})}),(0,fe.jsx)("div",{className:"affix",children:(0,fe.jsx)(z.mq,{isDisabled:Pt===p.xk.SVG||Pt===p.xk.GIF,className:"affix-select export-select",menuClassName:"export-select-menu",value:qt,optionList:go,onChange:mo=>$t(mo,"affix")})}),(0,fe.jsx)("div",{className:"format",children:(0,fe.jsx)(z.mq,{isDisabled:!1,className:"select export-select",menuClassName:"export-select-menu select-format-menu",value:Pt,optionList:Tt,onChange:mo=>$t(mo,"format")})}),(0,fe.jsx)("div",{className:(0,C.Hn)(["svg-icon-wrapper","remove",ze&&"is-disabled"]),children:(0,fe.jsx)(A.C,{className:"remove",name:"common/subtract",isDisabled:ze,onClick:pt})}),(0,fe.jsx)(b,{})]})},J=be=>(0,fe.jsx)(N.A,{content:I18N.ExportManager.export_watermark_tip,maxWidth:100,direction:"right",children:be}),ve=o.memo(se);class D extends o.PureComponent{constructor(Le){super(Le),(0,m.A)(this,"handleClick",()=>{const{onCheck:go,isWidgetBeingExported:Co,widgetDisplayName:Tt,exportItem:mo}=this.props;if(go&&go()||Co)return;const{configs:jo,isWithDeviceFrame:Kt}=this.state;mo(jo.map(Ft=>({...Ft,isWithDeviceFrame:Kt}))),Tt.includes("\u6279\u6CE8")&&(0,E.Uz)({operation_type:Tt==="\u591A\u9009\u6279\u6CE8"?E.P6.BatchExport:E.P6.SingleExport}),(0,h.O3)({operation_type:h.VW.SettingPanelExportToPNG,operation_from:h._Y.SettingPanel})}),(0,m.A)(this,"handleChangeConfig",(go,Co)=>{const{updateExportSettings:Tt,isFreePlan:mo}=this.props;this.setState(jo=>{const Kt=Array.from(jo.configs),Ft=Kt[Co].format===p.xk.SVG&&Kt[Co].format!==go.format,nt=Kt[Co].format===p.xk.GIF&&Kt[Co].format!==go.format;Kt.splice(Co,1,go);const Rt=de(Kt,p.xk.PNG),yt=de(Kt,p.xk.PDF),Jt=go.format===p.xk.PNG&&Kt[Co].format!==go.format?[...jo.availablePNGScale,go.scale]:a.filter(Yo=>!Rt.includes(Yo)).filter(Yo=>mo?Yo==="1":!0),vo=go.format===p.xk.PDF&&Kt[Co].format!==go.format?[...jo.availablePDFScale,go.scale]:$.filter(Yo=>!yt.includes(Yo)).filter(Yo=>mo?Yo==="1":!0);return Tt(Kt,jo.isWithDeviceFrame),{configs:Kt,availablePNGScale:Jt,availablePDFScale:vo,isSvgOptionAvailable:Ft,isGifOptionAvailable:nt}})}),(0,m.A)(this,"handleInsertConfig",()=>{const{isSelectSvgIconsOnly:go,isSelectGifOnly:Co,updateExportSettings:Tt}=this.props,{availablePNGScale:mo,availablePDFScale:jo,isSvgOptionAvailable:Kt,isGifOptionAvailable:Ft}=this.state;mo.length<=0&&jo.length<=0&&(go&&!Kt||Co&&!Ft)||this.setState(nt=>{const Rt=Array.from(nt.configs),yt=de(Rt,p.xk.PNG),Jt=de(Rt,p.xk.PDF),vo=a.filter(it=>!yt.includes(it)),Yo=$.filter(it=>!Jt.includes(it)),Ho=vo.length,kt=Yo.length,Ze=nt.configs.concat(Ho?[{scale:vo.shift(),affix:"suffix",format:p.xk.PNG}]:kt?[{scale:Yo.shift(),affix:"suffix",format:p.xk.PDF}]:Kt||Ft?[{scale:"1",affix:"suffix",format:Kt?p.xk.SVG:p.xk.GIF}]:[]);return Tt(Ze,nt.isWithDeviceFrame),{configs:Ze,availablePNGScale:vo,availablePDFScale:Yo,isSvgOptionAvailable:go&&Ze.filter(it=>it.format===p.xk.SVG).length<1,isGifOptionAvailable:Co&&Ze.filter(it=>it.format===p.xk.GIF).length<1}})}),(0,m.A)(this,"handleRemoveConfig",go=>{const{isSelectSvgIconsOnly:Co,isSelectGifOnly:Tt,updateExportSettings:mo}=this.props,{configs:jo}=this.state;jo.length<=1||this.setState(Kt=>{const Ft=Array.from(Kt.configs);Ft.splice(go,1);const nt=de(Ft,p.xk.PNG),Rt=de(Ft,p.xk.PDF),yt=a.filter(Ho=>!nt.includes(Ho)),Jt=$.filter(Ho=>!Rt.includes(Ho)),vo=Co&&!Ft.find(Ho=>Ho.format===p.xk.SVG),Yo=Tt&&!Ft.find(Ho=>Ho.format===p.xk.GIF);return mo(Ft,Kt.isWithDeviceFrame),{configs:Ft,availablePNGScale:yt,availablePDFScale:Jt,isSvgOptionAvailable:vo,isGifOptionAvailable:Yo}})}),(0,m.A)(this,"onShowTipsByTarget",(go,Co)=>{const Tt=Co.querySelector(".is-multi-select-includes-panel-tip");return Tt.offsetWidth<Tt.scrollWidth}),(0,m.A)(this,"handleClose",()=>{const{setIsOpen:go,setIsExportOpenFromContainer:Co,updateExportSettings:Tt}=this.props,{configs:mo,isWithDeviceFrame:jo}=this.state;go(!1),Co&&Co(!1),Tt(mo,jo)}),(0,m.A)(this,"handleIsWithDeviceFrameChecked",go=>{const{updateExportSettings:Co}=this.props,{configs:Tt}=this.state;this.setState({isWithDeviceFrame:go}),Co(Tt,go)});const{isSelectSvgIconsOnly:Ve,isSelectGifOnly:Ne,exportSettings:We,isFreePlan:ze,exportWithDeviceFrame:ft}=Le,mt=[Ve?{format:p.xk.SVG,scale:"1",affix:"suffix"}:Ne?{format:p.xk.GIF,scale:"1",affix:"suffix"}:{format:p.xk.PNG,scale:"1",affix:"suffix"}],i=We!=null&&We.length?We.some(go=>go.format===p.xk.PNG&&go.scale==="1"):!0,gt=We!=null&&We.length?ce(We,Ne,Ve,i):mt,Je=de(gt,p.xk.PNG),Pt=de(gt,p.xk.PDF),bt=a.filter(go=>!Je.includes(go)).filter(go=>ze?go==="1":!0),qt=$.filter(go=>!Pt.includes(go)).filter(go=>ze?go==="1":!0),pt=Ve&&!gt.some(go=>go.format===p.xk.SVG),$t=Ne&&!gt.some(go=>go.format===p.xk.GIF);this.state={isMiscOpened:!1,isWithDeviceFrame:ft!=null?ft:!1,configs:gt,availablePNGScale:bt,availablePDFScale:qt,isSvgOptionAvailable:pt,isGifOptionAvailable:$t}}componentDidUpdate(Le,Ve){const{exportSettings:Ne,isSelectGifOnly:We,isSelectSvgIconsOnly:ze,updateExportSettings:ft}=this.props;let mt=this.state.configs,i=!1,gt=this.state.isSvgOptionAvailable,Je=this.state.isGifOptionAvailable;const Pt=Ne!=null&&Ne.length?Ne.some(bt=>bt.format===p.xk.PNG&&bt.scale==="1"):!0;(Le.isSelectGifOnly!==We||Le.isSelectSvgIconsOnly!==ze)&&((!We||!ze)&&(mt=ce(mt,We,ze,Pt),i=!0),We&&(Je=!mt.some(bt=>bt.format===p.xk.GIF),i=!0),ze&&(gt=!mt.some(bt=>bt.format===p.xk.SVG),i=!0)),i&&(mt.length||mt.push({format:p.xk.PNG,scale:"1",affix:"suffix"}),this.setState({configs:mt,isGifOptionAvailable:Je,isSvgOptionAvailable:gt}),ft(mt,this.state.isWithDeviceFrame))}render(){const{isWidgetBeingExported:Le,selectedWidgetsCount:Ve,isSelectSvgIconsOnly:Ne,isSelectGifOnly:We,widgetDisplayName:ze,isFreePlan:ft}=this.props;if(!Ve)return null;const{configs:mt,isMiscOpened:i,isWithDeviceFrame:gt,availablePNGScale:Je,availablePDFScale:Pt,isSvgOptionAvailable:bt,isGifOptionAvailable:qt}=this.state,go=Je.length>0||Pt.length>0||(We||Ne?bt||qt:!1);return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(f,{className:l()({"is-open":!0}),children:(0,fe.jsxs)("div",{className:l()("export-panel",{"is-open":!0}),children:[(0,fe.jsx)("div",{className:l()("export-header",{"is-misc-opened":i}),children:i?(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(k.A,{className:"check",label:I18N.WidgetExport.show_device_frame_when_exporting_pages,isChecked:gt,onChange:this.handleIsWithDeviceFrameChecked}),(0,fe.jsx)("div",{className:"svg-icon-wrapper close",children:(0,fe.jsx)(A.C,{name:"common/close",onClick:()=>this.setState({isMiscOpened:!1})})})]}):(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)("label",{className:"label",children:I18N.WidgetExport.export}),(0,fe.jsx)("div",{className:"svg-icon-wrapper",children:(0,fe.jsx)(A.C,{name:"common/misc",onClick:()=>this.setState({isMiscOpened:!0})})}),(0,fe.jsx)("div",{className:"svg-icon-wrapper caret",children:(0,fe.jsx)(A.C,{name:"common/expand/plus",onClick:this.handleClose})}),(0,fe.jsx)("div",{className:(0,C.Hn)(["svg-icon-wrapper","add",!go&&"is-disabled"]),children:(0,fe.jsx)(A.C,{name:"common/add",onClick:this.handleInsertConfig})})]})}),(0,fe.jsx)("div",{className:"export-settings",children:(0,fe.jsxs)("div",{className:"export-second",children:[mt.map((Co,Tt)=>(0,fe.jsx)(ve,{id:Tt,config:Co,availablePNGScale:Je,availablePDFScale:Pt,isSelectSvgIconsOnly:Ne,isSelectGifOnly:We,isRemoveButtonDisabled:mt.length<=1,handleRemoveConfig:this.handleRemoveConfig,onChange:this.handleChangeConfig,isFreePlan:ft},Tt)),(0,fe.jsxs)("div",{className:"select-label",children:[(0,fe.jsx)("span",{className:"ratio",children:I18N.WidgetExport.times}),(0,fe.jsx)("span",{className:"affix",children:I18N.WidgetExport.prefix_suffix}),(0,fe.jsx)("span",{className:"format",children:I18N.WidgetExport.format})]})]})})]})}),(0,fe.jsx)(u,{isOpen:!0,children:(0,fe.jsx)(T.lV,{isLoading:Le,onClick:this.handleClick,children:Ve>1?Ne?""+I18N.WidgetExport.export_selected_icons.replace("%selectedIconCount%",Ve):ze+"\uFF08"+Ve+"\uFF09":""+I18N.WidgetExport.export+ze})})]})}}var R=e(36892),V=e(63555),O=e(71604),Ce=e(96380),ae=e(64598),q=e(39547),K=e(89604),xe=e(59305);const te=()=>MB.global.experienceLoginModalHelper("isSave"),re=be=>{var Le,Ve;let{isExportAllAIComponent:Ne,isWidgetBeingExported:We,isHtmlZipPreview:ze,isExportOpenFromContainer:ft,setIsExportOpenFromContainer:mt,updateExportSettings:i,isST:gt,currentScreen:Je,exportItem:Pt,newSelection:bt,currentUser:qt,currentOrg:pt,currentProject:$t}=be;const[go,Co]=(0,o.useState)(!1),Tt=(0,o.useMemo)(()=>bt.length>0?bt.map(vo=>sdkStore.getHotItem(vo)):[],[bt]),mo=(0,o.useMemo)(()=>gt&&Tt.length===0,[gt,Tt.length]),jo=(0,o.useMemo)(()=>mo?(0,R.UR)(Je.cid).map(vo=>({...vo,cid:vo.key})):Tt,[Je.cid,mo,Tt]),Kt=(0,o.useMemo)(()=>jo.every(vo=>{let{hotAttr:Yo}=vo;return Yo.type===V.x.WIcon}),[jo]),Ft=(0,o.useMemo)(()=>{const vo=[];return!jo.some(Ho=>{if((Ho==null?void 0:Ho.hotAttr.type)!==V.x.WImage)return!0;{var kt;const Ze=Ho.hotAttr.image;if(!Ze)return!0;const it=(kt=sdkStore.getHotItem(Ze.imageRef))==null?void 0:kt.hotAttr.extData;return it&&it.toLowerCase().endsWith(".gif")?(vo.push(it),!1):!0}})},[jo]),nt=go||ft&&(qt==null?void 0:qt.id),Rt=(0,o.useMemo)(()=>{var vo,Yo,Ho,kt;if(!nt)return"";let Ze=I18N.Note.selected_notes;if(jo.length>1&&!mo){let it=0,st=0;jo.forEach(dt=>{var Ot;((Ot=dt.hotAttr)==null?void 0:Ot.type)===V.x.Canvas?it+=1:st+=1}),it===jo.length?Ze=I18N.SettingPanel.multi_select_artboards:st===jo.length?Ze=I18N.SettingPanel.multi_select:Ze=I18N.SettingPanel.multi_select_artboards_widgets}return Tt.length>0?jo.length>1?Ze:((vo=jo[0].hotAttr)==null?void 0:vo.type)===V.x.WRichText?(0,O.rs)(jo[0]):V.Q.ST_MODE_WIDGET_NAMES.includes((Yo=jo[0].hotAttr)==null?void 0:Yo.type)?I18N.Note.note+((Ho=jo[0])==null||(Ho=Ho.hotAttr)==null?void 0:Ho.order):(kt=jo[0])==null||(kt=kt.hotAttr)==null?void 0:kt.name:mo?Ze:""},[jo,mo,Tt.length,nt]),{isFree:yt}=(0,o.useMemo)(()=>{if(!qt)return{isFree:!0};if($t!=null&&$t.is_org_project&&pt){const{plan:vo}=(0,xe.rM)(pt);return{isFree:[K.Sj.OrgExpired,K.Sj.OrgFree].includes(vo)}}else return{isFree:q.t.InitialUser(qt).planSdk.prototypePlan.getUserPlan()===K.L1.Free}},[pt,$t==null?void 0:$t.is_org_project,qt]);if(jo.length===0||ze||Ne)return null;const Jt=()=>{if(MB.global.experienceLoginModalHelper("isSave")||!(qt!=null&&qt.id)){MB.global.popupHelper.loginAsync({onConfirm:()=>{setTimeout(()=>location.reload(),50)},type:"signin",source:"proto-inspect"});return}if(!(0,Ce.s)(jo)){MB.action("modal:update:state",{mktWMExportModal:{isOpen:!0,onExport:()=>{Co(!0)}}}),(0,ae.f)({exposure_reason:"\u5BFC\u51FA\u884C\u4E3A\u63D0\u793A"});return}Co(!0)};return go||ft&&qt!=null&&qt.id?(0,fe.jsx)(D,{isSelectSvgIconsOnly:Kt,isWidgetBeingExported:We,onCheck:te,setIsOpen:Co,widgetDisplayName:Rt,selectedWidgetsCount:jo.length,exportSettings:(Le=$t.attr)==null?void 0:Le.export_settings,exportWithDeviceFrame:(Ve=$t.attr)==null?void 0:Ve.export_with_device_frame,isSelectGifOnly:Ft,setIsExportOpenFromContainer:mt,isFreePlan:yt,updateExportSettings:i,exportItem:Pt}):(0,fe.jsx)(u,{isOpen:go,children:(0,fe.jsx)(T.lV,{isLoading:We,onClick:Jt,children:qt!=null&&qt.id?I18N.WidgetExport.export:I18N.WidgetExport.export_after_login})})}},48438:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>u});var o=e(72605),m=e(63686),g=e(47143),l=e(30797),C=e(20029),T=e(35709),A=e(76445),k=e(5985),p=e(39444),r=e(63555);const x=(0,m.Mz)([l.x$,l.p$,p.x,g.PL,C.uu,g.wA,g.HW,g.Ur,T.Lc,C.jx,C._b],(b,h,E,N,z,S,_,y,a,$,ce)=>{const de=$===A.qi.OnlyView&&!ce||$===A.qi.Edit&&a;return{isExportAllAIComponent:b.every(se=>{var J;return((J=se.widget)==null?void 0:J.type)===r.x.WCode}),isST:de,currentScreen:y,isWidgetBeingExported:E,isHtmlZipPreview:z,newSelection:h,currentUser:_,currentOrg:S,currentProject:N}}),f=b=>({updateExportSettings:(h,E)=>b({type:"entry:update:root-project:exportSettings",payload:{exportSettings:h,exportWithDeviceFrame:E}}),exportItem:h=>b({type:"entry:export:item",payload:{exportConfigList:h}})}),u=(0,o.Ng)(b=>x(b),f)(k.A)},82924:(Et,ke,e)=>{"use strict";e.d(ke,{$S:()=>m,C$:()=>p,Jh:()=>r,Wq:()=>A,lJ:()=>g,z4:()=>T});var o=e(55560);const m=[{dataType:"png",text:"PNG",iconName:"png",tempDisabled:!1},{dataType:"pdf",text:"PDF",iconName:"pdf",tempDisabled:!1},{dataType:"htmlzip",text:"html5_zip",iconName:"htmlzip",tempDisabled:!1},{dataType:"apk",text:"apk_file",iconName:"apk",tempDisabled:!1},{dataType:"source_file",text:"source_file",iconName:"source_file",tempDisabled:!1}],g=[{label:"current_screen",value:"currentPage"},{label:"all_screen",value:"allPage"}],l=x=>[{label:"1x",value:1},{label:"2x",value:2,isDisabled:x},{label:"3x",value:3,isDisabled:x}],C=x=>[{label:"1x",value:1},{label:"2x",value:2,isDisabled:x}],T=function(x,f){switch(f===void 0&&(f=!1),x){case o.xk.PNG:return l(f);default:return C(f)}},A={png:{postfix:".png",MIME:"image/png"},pdf:{postfix:".pdf",MIME:"application/pdf"},pngs:{postfix:".zip",MIME:"application/zip"},htmlzip:{postfix:".zip",MIME:"application/zip"},apk:{postfix:".apk",MIME:"application/vnd.android.package-archive"},source_file:{postfix:".mdrp",MIME:"application/zip"}},k='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><g fill="#FFF"><path d="M8 0C3.6 0 0 3.6 0 8 0 12.4 3.6 16 8 16 12.4 16 16 12.4 16 8 16 3.6 12.4 0 8 0ZM8.6 12.4C8.4 12.6 8.2 12.7 7.9 12.7 7.7 12.7 7.5 12.6 7.3 12.5 7.1 12.3 7 12.1 7 11.8 7 11.5 7.1 11.3 7.3 11.1 7.4 10.9 7.7 10.8 7.9 10.8 8.2 10.8 8.4 10.9 8.6 11.1 8.8 11.3 8.8 11.5 8.8 11.8 8.8 12.1 8.8 12.3 8.6 12.4ZM10.9 6.7C10.7 7 10.6 7.2 10.4 7.4 10.2 7.6 9.8 7.9 9.3 8.4 9.2 8.5 9.1 8.6 9 8.7 8.9 8.8 8.8 8.9 8.8 9 8.8 9 8.7 9.1 8.7 9.2 8.7 9.3 8.6 9.4 8.6 9.6 8.5 10.1 8.3 10.3 7.9 10.3 7.6 10.3 7.5 10.2 7.3 10.1 7.2 9.9 7.1 9.7 7.1 9.4 7.1 9.1 7.1 8.8 7.3 8.5 7.4 8.3 7.5 8.1 7.7 7.9 7.9 7.7 8.1 7.4 8.4 7.2 8.7 6.9 8.9 6.8 9 6.7 9.1 6.5 9.2 6.4 9.3 6.3 9.4 6.1 9.4 6 9.4 5.8 9.4 5.5 9.3 5.2 9 5 8.8 4.7 8.5 4.6 8.1 4.6 7.6 4.6 7.3 4.7 7.1 5 6.9 5.2 6.7 5.5 6.5 6 6.4 6.4 6.1 6.7 5.7 6.7 5.5 6.7 5.3 6.6 5.1 6.4 5 6.3 4.9 6.1 4.9 5.9 4.9 5.5 5 5.1 5.3 4.7 5.5 4.3 5.9 4 6.4 3.7 6.9 3.4 7.4 3.3 8.1 3.3 8.7 3.3 9.2 3.4 9.7 3.6 10.1 3.9 10.5 4.2 10.7 4.5 11 4.9 11.1 5.3 11.1 5.8 11.1 6.1 11 6.4 10.9 6.7Z"/></g></svg>',p="https://org.modao.cc/brand/pricing",r="https://mockitt.wondershare.com/pricing.html"},39444:(Et,ke,e)=>{"use strict";e.d(ke,{OB:()=>l,bc:()=>g,d1:()=>o,x:()=>m});const o=C=>C.plugin.exportmanager,m=C=>C.plugin.exportmanager.isWidgetBeingExported,g=C=>C.plugin.exportmanager.isExportMenuShow,l=C=>C.plugin.exportmanager.currentExportTag},93196:(Et,ke,e)=>{"use strict";e.d(ke,{C8:()=>p,K4:()=>k,Q:()=>T,XB:()=>C,aT:()=>l,vb:()=>A});var o=e(26557),m=e.n(o),g=e(59305);const l=r=>{const x={};return r.map(f=>{const u=x[f.name]=(x[f.name]||0)+1;if(u===1)return f;const b=f.name.split("."),h=b.pop();return new File([f],b.join(".")+" ("+u+")."+h,{type:f.type})})},C=(r,x,f)=>{const{isExportWatermark:u}=(0,g.xR)(r,x);return u},T=(r,x)=>{(0,o.saveAs)(r,x)},A=r=>{const x=new Date;r.files=Object.fromEntries(Object.values(r.files).map(f=>{const u=parseInt(f.name.split("/").slice(f.dir?-2:-1)[0].split(" ")[0]),b=f.name.split("/").map(h=>h.split(" ").slice(1).join(" ")).join("/");return f.date=new Date(x.getTime()-(x.getTimezoneOffset()+u)*6e4),[b,f]}))},k=function(r,x,f,u){r===void 0&&(r=z=>{}),x===void 0&&(x=0),f===void 0&&(f=99),u===void 0&&(u=x);const b=(z,S,_)=>Math.max(Math.min(z,_),S);return{advanceRR:z=>{u=b(u+(f-x)*z,x,f),r(Math.round(u))},splitTo:z=>{const S=[];let _=u;for(let y=0;y<z;y++){const a=b(_+(f-u)/z,_,f);S.push(k(r,_,a)),_=a}return S},divideAt:z=>{const S=b(u+(f-u)*z,u,f);return[k(r,u,S),k(r,S,f)]}}},p=r=>{try{var x,f;const{currentOrg:u,userId:b}=r;if(!u||!b||!(u!=null&&u.permissions)||(u==null||(x=u.permissions)==null?void 0:x.length)===0)return!1;const h=(f=u.permissions)==null||(f=f.find(N=>Number(N.user_id)===Number(b)))==null?void 0:f.role;return(u.settings.mdrp_export||[]).includes(h)}catch(u){return!1}}},30127:(Et,ke,e)=>{"use strict";e.d(ke,{ku:()=>zo,PU:()=>mn,mg:()=>en,gD:()=>Oo,QV:()=>Nn,WE:()=>es});var o=e(26557),m=e(36429),g=e(62427),l=e(17036),C=e(83931),T=e(91463),A=e(5904);const k=function(zt,po,Fo){return po===void 0&&(po=null),Fo===void 0&&(Fo=null),{value:zt,prev:po,next:Fo}},p=()=>{let zt,po,Fo;const Mn=()=>{zt=k(null),po=k(null,zt),zt.next=po,Fo=0};Mn();const Fn=(Is,io)=>{const{next:Jo}=io;Is.prev=io,Is.next=Jo,io.next=Jo.prev=Is,Fo++},ts=(Is,io)=>{const{prev:Jo}=io;Is.prev=Jo,Is.next=io,io.prev=Jo.next=Is,Fo++},As=Is=>{const{prev:io,next:Jo}=Is;io.next=Jo,Jo.prev=io,Is.prev=Is.next=null,Fo--};return{clear:Mn,getHead:()=>zt,getTail:()=>po,getLength:()=>Fo,insertAfter:Fn,insertBefore:ts,remove:As,removeBetween:(Is,io)=>{const{prev:Jo}=Is,{next:Zo}=io;Jo.next=Zo,Zo.prev=Jo,Is.prev=io.next=null;let Un=Is;for(;Un;)Fo--,Un=Un.next},forEach:Is=>{let io=zt.next,Jo=0;for(;io!==po;)Is(io,Jo),io=io.next,Jo++},forEachReverse:Is=>{let io=po.prev,Jo=Fo-1;for(;io!==zt;)Is(io,Jo),io=io.prev,Jo--},reverse:()=>{let Is=zt.next;for(;Is!==po;){const{prev:Zo,next:Un}=Is;Is.prev=Un,Is.next=Zo,Is=Un}const{next:io}=zt,{prev:Jo}=po;zt.next=Jo,po.prev=io,Jo.prev=zt,io.next=po},moveToFirst:Is=>{if(Is===zt.next)return;const{prev:io,next:Jo}=Is;io.next=Jo,Jo.prev=io,Is.prev=zt,Is.next=zt.next,Is.next.prev=zt.next=Is},moveToLast:Is=>{if(Is===po.prev)return;const{prev:io,next:Jo}=Is;io.next=Jo,Jo.prev=io,Is.next=po,Is.prev=po.prev,Is.prev.next=po.prev=Is},push:Is=>ts(Is,po),pop:()=>As(po.prev),unshift:Is=>Fn(Is,zt),shift:()=>As(zt.next)}},r=(zt,po,Fo,Mn)=>({...k(po),key:zt,size:Fo,expireAt:Mn}),x=zt=>{let{valueSizeSumMax:po,valueSizeSingleMax:Fo=Math.max(.05*po,1),expireAfter:Mn=6e4,eventHub:Fn=(0,A.wz)()}=zt;const ts=!!Fn,{clear:As,subscribe:Is,unsubscribe:io,send:Jo}=ts?Fn:{},Zo=new Map,Un=p();let On=0;const us=Gn=>{Zo.set(Gn.key,Gn),Un.unshift(Gn),On+=Gn.size,ts&&Jo({type:"add",key:Gn.key,payload:Gn.value})},bn=Gn=>{Zo.delete(Gn.key),Un.remove(Gn),On-=Gn.size,ts&&Jo({type:"delete",key:Gn.key,payload:Gn.value})};return{hasEventHub:ts,clearEventHub:As,subscribe:Is,unsubscribe:io,clear:()=>Zo.forEach(bn),getSize:Un.getLength,getValueSizeSum:()=>On,set:function(Gn,xs,Es,Ys){Es===void 0&&(Es=1),Ys===void 0&&(Ys=Date.now()+Mn);const lo=Zo.get(Gn);if(lo&&bn(lo),!(Es>Fo)){for(;Es+On>po;)bn(Un.getTail().prev);us(r(Gn,xs,Es,Ys))}},get:function(Gn,xs){xs===void 0&&(xs=Date.now());const Es=Zo.get(Gn);if(Es)return Es.expireAt<=xs?bn(Es):(Un.moveToFirst(Es),Es.value)},touch:function(Gn,xs){xs===void 0&&(xs=Date.now()+Mn);const Es=Zo.get(Gn);if(Es)return Es.expireAt=xs,Un.moveToFirst(Es),Es.value},delete:Gn=>{const xs=Zo.get(Gn);return xs&&bn(xs),xs&&xs.value},saveCacheList:()=>{const Gn=[];return Un.forEachReverse(xs=>{const{key:Es,value:Ys,size:lo,expireAt:Ko}=xs;Gn.push({key:Es,value:Ys,size:lo,expireAt:Ko})}),Gn},loadCacheList:function(Gn,xs){return xs===void 0&&(xs=Date.now()),Gn.forEach(Es=>{let{key:Ys,value:lo,size:Ko,expireAt:eo}=Es;if(eo<=xs)return;const ro=Zo.get(Ys);ro&&ro.expireAt>=eo||(ro&&bn(ro),us(r(Ys,lo,Ko,eo)))})}}},{fetch:f}=window,u=async zt=>f(zt,{method:"GET",cache:"force-cache",mode:"cors",credentials:"same-origin"}),b=x({valueSizeSumMax:512*1024*1024,valueSizeSingleMax:64*1024*1024,expireAfter:1/0,eventHub:null}),h=async zt=>{let po=b.get(zt);return po||(po=await(await u(zt)).text(),b.set(zt,po,po.length)),po},E=async zt=>{let po=b.get(zt);return po===void 0&&(po=await(0,l.G6)(await(await u(zt)).blob()),b.set(zt,po,po.length)),po},N=(zt,po)=>{if(z.exec(zt))return zt;const[Fo]=z.exec(po)||[""],Mn=zt[0]!=="/"?[...po.split("/").slice(0,-1),...zt.split("/")]:[Fo.slice(0,-1),...zt.split("/").slice(1)],Fn=[];return Mn.forEach(ts=>ts===".."?Fn.pop():Fn.push(ts)),Fn.join("/")},z=/((https?:)?\/\/)?[-\w@:%._+~#=]{2,256}\.[a-z]{2,63}(:\d{1,5})?\//,S=async(zt,po)=>{if(zt.startsWith("data:"))return zt;if(zt.startsWith("blob:"))return E(zt);po&&(zt=N(zt,po));const Fo=_.exec(zt);return Fo&&y[Fo[1].toLowerCase()]?E(zt):""},_=/\.([0-9a-z]{3,5})(?:[?#]|$)/i,y={woff2:"font/woff2",woff:"font/woff",ttf:"font/ttf",otf:"font/otf",svg:"image/svg+xml",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",bmp:"image/bmp",ico:"image/x-icon"},a=async zt=>{let{urlMap:po={},fragList:Fo=[]}=zt;for(const Mn of Object.values(po)){const{urlString:Fn,originUrl:ts,isIgnore:As}=Mn;Mn.dataUrl=As?Fn:await S(Fn,ts)||""}for(let Mn=0,Fn=Fo.length;Mn<Fn;Mn++){const ts=Fo[Mn];typeof ts=="object"&&(Fo[Mn]=ts.dataUrl)}return Fo},$=zt=>{let{extractorList:po,initUrlMap:Fo,trimComment:Mn}=zt;const Fn=[],ts=Fo||{},As={};let Is=!1;return{getOutput:()=>(Is=!0,{fragList:Fn,urlMap:ts,fontFaceMap:As}),collect:function(Zo,Un){if(Un===void 0&&(Un=""),Is)throw new Error("doneOutput");if(Zo&&Mn&&(Zo=Mn(Zo)),!Zo)return;const On=bn=>(ts[bn]===void 0&&(ts[bn]={urlString:bn,originUrl:Un,dataUrl:""}),ts[bn]);let us=[Zo];for(const bn of po){const Gn=[];for(const xs of us)bn(Gn,xs,On);us=Gn}if(Fn.push(...us),ae.test(Zo)){const bn=xs=>{const[Es]=K(xs),Ys=[];if(Es&&ft([],xs,Ko=>{const eo=On(Ko);return Ys.push(eo),eo}),!Ys.length)return;const lo=Es+"|"+te(xs)+"|"+re(xs);As[lo]===void 0?As[lo]=new Set(Ys):ce(As[lo],Ys)};let Gn;for(;Gn=Ce.exec(Zo);){const[xs]=Gn;bn(xs)}}}}},ce=(zt,po)=>po.forEach(zt.add,zt),de=(zt,po)=>{if(!zt.global)throw new Error("[createUrlExtractor] global expected for regexpSearchBlock: "+zt);if(po.global)throw new Error("[createUrlExtractor] non-global expected for regexpExtractUrl: "+po);return(Fo,Mn,Fn)=>{if(typeof Mn=="object"){Fo.push(Mn);return}let ts=0,As;for(;(As=zt.exec(Mn))!==null;){const Is=As[0],io=po.exec(Is),Jo=io&&io[1];if(!Jo||Jo.startsWith("#"))continue;const Zo=As.index+io.index+io[0].indexOf(Jo),Un=Mn.slice(ts,Zo);Fo.push(Un),Fo.push(Fn(Jo)),ts=Zo+Jo.length}Fo.push(Mn.substr(ts))}},fe=/<!--([\s\S]*?)-->/g,se=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,D=de(/<img [^>]*>/g,/src=['"]([^'"]*)['"]/),R=/style=['"].*url\([^)]*\).*['"]/g,V=/url\(['"]?([^)'"]*)['"]?\)/,O=de(R,V),Ce=/@font-face\s*{[^}]*font-family[^}]+}/g,ae=/font(-family)?\s*:/,q=/font(-family)?\s*:\s*([^;}>]+)\s*[;}>]?/g,K=zt=>{const po=[];let Fo;for(;Fo=q.exec(zt);){const[,Mn,Fn]=Fo;Fn&&Fn.split(",").forEach((ts,As)=>{As===0&&!Mn&&(ts=ts.trim(),ts=ts.split(/["']$/.test(ts)?/["']/:" ").filter(Boolean).pop());const Is=Le(ts);Is&&po.push(Is)})}return po},xe=/font-style\s*:\s*(\w+)/,te=zt=>(xe.exec(zt)||[])[1]||"normal",H=/font-weight\s*:\s*(\w+)/,re=zt=>{let po=(H.exec(zt)||[])[1];return po==="normal"?po="400":po==="bold"&&(po="700"),po||"400"},be=/^["'](.*)["']$/,Le=function(zt){return zt===void 0&&(zt=""),zt.trim().replace(be,"$1")},Ve=()=>$({extractorList:[D,O],trimComment:zt=>zt.replace(fe,"")}),Ne=/url\([^)]*\)/g,We=de(Ne,V),ft=de(Ne,/(\/?(?:\.?\.\/)*\b[-\w@:%_+.~#?&/= ]+\.(?:woff2|woff|ttf|TTF|OTF|otf|WOFF2|WOFF|svg|eot)(?:[?#][-\w%._#=]{1,256})?)/),mt=()=>$({extractorList:[We,ft],trimComment:zt=>zt.replace(se,"")});var i="-ms-",gt="-moz-",Je="-webkit-",Pt="comm",bt="rule",qt="decl",pt="@page",$t="@media",go="@import",Co="@charset",Tt="@viewport",mo="@supports",jo="@document",Kt="@namespace",Ft="@keyframes",nt="@font-face",Rt="@counter-style",yt="@font-feature-values",Jt="@layer",vo=Math.abs,Yo=String.fromCharCode,Ho=Object.assign;function kt(zt,po){return Ot(zt,0)^45?(((po<<2^Ot(zt,0))<<2^Ot(zt,1))<<2^Ot(zt,2))<<2^Ot(zt,3):0}function Ze(zt){return zt.trim()}function it(zt,po){return(zt=po.exec(zt))?zt[0]:zt}function st(zt,po,Fo){return zt.replace(po,Fo)}function dt(zt,po,Fo){return zt.indexOf(po,Fo)}function Ot(zt,po){return zt.charCodeAt(po)|0}function Ct(zt,po,Fo){return zt.slice(po,Fo)}function wo(zt){return zt.length}function ln(zt){return zt.length}function Io(zt,po){return po.push(zt),zt}function Lo(zt,po){return zt.map(po).join("")}function Ao(zt,po){return zt.filter(function(Fo){return!it(Fo,po)})}var xt=1,Ut=1,Wo=0,qo=0,sn=0,Kn="";function ds(zt,po,Fo,Mn,Fn,ts,As,Is){return{value:zt,root:po,parent:Fo,type:Mn,props:Fn,children:ts,line:xt,column:Ut,length:As,return:"",siblings:Is}}function _s(zt,po){return assign(ds("",null,null,"",null,null,0,zt.siblings),zt,{length:-zt.length},po)}function Ls(zt){for(;zt.root;)zt=_s(zt.root,{children:[zt]});append(zt,zt.siblings)}function gs(){return sn}function ns(){return sn=qo>0?Ot(Kn,--qo):0,Ut--,sn===10&&(Ut=1,xt--),sn}function Wn(){return sn=qo<Wo?Ot(Kn,qo++):0,Ut++,sn===10&&(Ut=1,xt++),sn}function Do(){return Ot(Kn,qo)}function Go(){return qo}function an(zt,po){return Ct(Kn,zt,po)}function Mo(zt){switch(zt){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Cn(zt){return xt=Ut=1,Wo=wo(Kn=zt),qo=0,[]}function Tn(zt){return Kn="",zt}function cn(zt){return Ze(an(qo-1,Gt(zt===91?zt+2:zt===40?zt+1:zt)))}function bs(zt){return Tn(ti(Cn(zt)))}function Vn(zt){for(;(sn=Do())&&sn<33;)Wn();return Mo(zt)>2||Mo(sn)>3?"":" "}function ti(zt){for(;Wn();)switch(Mo(sn)){case 0:append(Xs(qo-1),zt);break;case 2:append(cn(sn),zt);break;default:append(from(sn),zt)}return zt}function oi(zt,po){for(;--po&&Wn()&&!(sn<48||sn>102||sn>57&&sn<65||sn>70&&sn<97););return an(zt,Go()+(po<6&&Do()==32&&Wn()==32))}function Gt(zt){for(;Wn();)switch(sn){case zt:return qo;case 34:case 39:zt!==34&&zt!==39&&Gt(sn);break;case 40:zt===41&&Gt(zt);break;case 92:Wn();break}return qo}function Rs(zt,po){for(;Wn()&&zt+sn!==57;)if(zt+sn===84&&Do()===47)break;return"/*"+an(po,qo-1)+"*"+Yo(zt===47?zt:Wn())}function Xs(zt){for(;!Mo(Do());)Wn();return an(zt,qo)}function Ti(zt){return Tn(di("",null,null,null,[""],zt=Cn(zt),0,[0],zt))}function di(zt,po,Fo,Mn,Fn,ts,As,Is,io){for(var Jo=0,Zo=0,Un=As,On=0,us=0,bn=0,Gn=1,xs=1,Es=1,Ys=0,lo="",Ko=Fn,eo=ts,ro=Mn,Yt=lo;xs;)switch(bn=Ys,Ys=Wn()){case 40:if(bn!=108&&Ot(Yt,Un-1)==58){dt(Yt+=st(cn(Ys),"&","&\f"),"&\f",vo(Jo?Is[Jo-1]:0))!=-1&&(Es=-1);break}case 34:case 39:case 91:Yt+=cn(Ys);break;case 9:case 10:case 13:case 32:Yt+=Vn(bn);break;case 92:Yt+=oi(Go()-1,7);continue;case 47:switch(Do()){case 42:case 47:Io(ei(Rs(Wn(),Go()),po,Fo,io),io);break;default:Yt+="/"}break;case 123*Gn:Is[Jo++]=wo(Yt)*Es;case 125*Gn:case 59:case 0:switch(Ys){case 0:case 125:xs=0;case 59+Zo:Es==-1&&(Yt=st(Yt,/\f/g,"")),us>0&&wo(Yt)-Un&&Io(us>32?Si(Yt+";",Mn,Fo,Un-1,io):Si(st(Yt," ","")+";",Mn,Fo,Un-2,io),io);break;case 59:Yt+=";";default:if(Io(ro=vs(Yt,po,Fo,Jo,Zo,Fn,Is,lo,Ko=[],eo=[],Un,ts),ts),Ys===123)if(Zo===0)di(Yt,po,ro,ro,Ko,ts,Un,Is,eo);else switch(On===99&&Ot(Yt,3)===110?100:On){case 100:case 108:case 109:case 115:di(zt,ro,ro,Mn&&Io(vs(zt,ro,ro,0,0,Fn,Is,lo,Fn,Ko=[],Un,eo),eo),Fn,eo,Un,Is,Mn?Ko:eo);break;default:di(Yt,ro,ro,ro,[""],eo,0,Is,eo)}}Jo=Zo=us=0,Gn=Es=1,lo=Yt="",Un=As;break;case 58:Un=1+wo(Yt),us=bn;default:if(Gn<1){if(Ys==123)--Gn;else if(Ys==125&&Gn++==0&&ns()==125)continue}switch(Yt+=Yo(Ys),Ys*Gn){case 38:Es=Zo>0?1:(Yt+="\f",-1);break;case 44:Is[Jo++]=(wo(Yt)-1)*Es,Es=1;break;case 64:Do()===45&&(Yt+=cn(Wn())),On=Do(),Zo=Un=wo(lo=Yt+=Xs(Go())),Ys++;break;case 45:bn===45&&wo(Yt)==2&&(Gn=0)}}return ts}function vs(zt,po,Fo,Mn,Fn,ts,As,Is,io,Jo,Zo,Un){for(var On=Fn-1,us=Fn===0?ts:[""],bn=ln(us),Gn=0,xs=0,Es=0;Gn<Mn;++Gn)for(var Ys=0,lo=Ct(zt,On+1,On=vo(xs=As[Gn])),Ko=zt;Ys<bn;++Ys)(Ko=Ze(xs>0?us[Ys]+" "+lo:st(lo,/&\f/g,us[Ys])))&&(io[Es++]=Ko);return ds(zt,po,Fo,Fn===0?bt:Is,io,Jo,Zo,Un)}function ei(zt,po,Fo,Mn){return ds(zt,po,Fo,Pt,Yo(gs()),Ct(zt,2,-2),0,Mn)}function Si(zt,po,Fo,Mn,Fn){return ds(zt,po,Fo,qt,Ct(zt,0,Mn),Ct(zt,Mn+1,-1),Mn,Fn)}function Gs(zt,po){for(var Fo="",Mn=0;Mn<zt.length;Mn++)Fo+=po(zt[Mn],Mn,zt,po)||"";return Fo}function Vs(zt,po,Fo,Mn){switch(zt.type){case Jt:if(zt.children.length)break;case go:case qt:return zt.return=zt.return||zt.value;case Pt:return"";case Ft:return zt.return=zt.value+"{"+Gs(zt.children,Mn)+"}";case bt:if(!wo(zt.value=zt.props.join(",")))return""}return wo(Fo=Gs(zt.children,Mn))?zt.return=zt.value+"{"+Fo+"}":""}const{document:ps}=window,kn=zt=>zt.map(po=>po.replace(/<br>/g,"<br/>").replace(/ /g," ").replace(_t,"")),zn=zt=>{const po=new Set,Fo=new Set,Mn=ts=>{for(const As of ts)As.id&&po.add(As.id),As.classList&&As.classList.length&&As.classList.forEach(Is=>Fo.add(Is)),As.children.length&&Mn(As.children)},Fn=ps.createElement("div");return Fn.innerHTML=zt,Mn(Fn.children),{isUseless:ts=>{if(ts.includes(":hover")||ts.includes(":focus")||ts.includes(":active")||ts.includes(":selection"))return!0;const As=/^\w*\.([\w-_]+)(?:\.|\[|>|:| |$)/.exec(ts);if(As&&!Fo.has(As[1]))return!0;const Is=/^\w*#([\w-_]+)(?:\.|\[|>|:| |$)/.exec(ts);return!!(Is&&!po.has(Is[1]))},isUselessCSSR:ts=>{if(ts==="DROP")return!0;if(ts==="????")return!1;let As=ts.length;for(const[Is,io]of ts)!(Is==="Class"?Fo:po).has(io)&&As--;return As===0}}},hs=zt=>{if(zt instanceof CSSKeyframesRule)return"DROP";if(zt instanceof CSSStyleRule){const po=[],Fo=Ti(zt.selectorText+"{}")[0];for(const Mn of Fo.props){if(Mn.includes(":hover")||Mn.includes(":focus")||Mn.includes(":active")||Mn.includes(":selection"))continue;const Fn=/^\w*\.([\w-_]+)(?:\.|\[|>|:| |$)/.exec(Mn);if(Fn){po.push(["Class",Fn[1]]);continue}const ts=/^\w*#([\w-_]+)(?:\.|\[|>|:| |$)/.exec(Mn);if(ts){po.push(["Id",ts[1]]);continue}return"????"}return po.length===0?"DROP":po}return"????"},Ss=zt=>["<style>",Aa,...zt,"</style>"],fi=new WeakMap,ri=(zt,po,Fo)=>{let Mn=fi.get(po);return Mn===void 0&&(zt=zt.replace(/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,"").replace(/#iefix&/g,"").replace(_t,""),Mn=Ti(zt),fi.set(po,Mn)),Gs(Mn,(Fn,ts,As,Is)=>{if(Fn.type==="@keyframes"||Fn.type==="@-webkit-keyframes")return"";if(Fn.type==="rule"){let io=0;for(const Jo of Fn.props)Fo.isUseless(Jo)&&io++;if(io===Fn.props.length)return""}return Vs(Fn,ts,As,Is)})},Li=new WeakMap,ji=(zt,po)=>{let Fo=Li.get(zt);return Fo===void 0&&(Fo=hs(zt),Li.set(zt,Fo)),po.isUselessCSSR(Fo)},_t=/[^\x09\x0A\x0D\x20-\xFF\x85\xA0-\uD7FF\uE000-\uFDCF\uFDE0-\uFFFD\u{10000}-\u{10FFFF}]/gmu,Aa="\ninput { -webkit-appearance: textfield; -moz-appearance: textfield; }\nselect { -webkit-appearance: menulist; -moz-appearance: menulist; }\n",Ki=zt=>{let{domStringList:po,width:Fo,height:Mn}=zt;return['<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="'+Fo+'" height="'+Mn+'"><switch>','<foreignObject width="'+Fo+'" height="'+Mn+'"><body xmlns="http://www.w3.org/1999/xhtml" style="font-size:16px">',...po,"</body></foreignObject>",'<text font-size="24"><tspan x="'+Fo/2+'" y="'+Mn/2+'" text-anchor="middle">Feature not supported</tspan></text>',"</switch></svg>"]},bi=zt=>{let{imageSrc:po,width:Fo,height:Mn}=zt;return new Promise((Fn,ts)=>{const As=ps.createElement("img");As.addEventListener("error",ts),As.addEventListener("load",()=>Fn(As)),As.crossOrigin="anonymous",As.width=Fo,As.height=Mn,As.src=po})},sa=zt=>{let{imageElement:po,width:Fo,height:Mn}=zt;return new Promise(Fn=>{const ts=ps.createElement("canvas");ts.width=Fo,ts.height=Mn,setTimeout(()=>{ts.getContext("2d").drawImage(po,0,0),Fn(ts)},0)})},{document:Zi}=window,Fa=async zt=>{let{element:po,width:Fo,height:Mn,presetFontsSet:Fn}=zt;if(!po)throw new Error("invalid element: "+po);if(Fo=parseInt(Fo||po.style.width.endsWith("px")&&po.style.width||po.offsetWidth),Mn=parseInt(Mn||po.style.height.endsWith("px")&&po.style.height||po.offsetHeight),!Fo||!Mn)throw new Error("can not get output size: width: "+Fo+", height: "+Mn);const ts=[new window.XMLSerializer().serializeToString(po)];return to({htmlSourceList:ts,width:Fo,height:Mn,presetFontsSet:Fn})},to=async zt=>{let{htmlSourceList:po,width:Fo,height:Mn,presetFontsSet:Fn}=zt;if(!Array.isArray(po))throw new Error("invalid htmlSourceList: "+po);if(!Fo||!Mn)throw new Error("invalid size: width: "+Fo+", height: "+Mn);const ts=Ko=>Object.entries(Ko.fontFaceMap).forEach(eo=>{let[ro,Yt]=eo;if(Fn&&!Fn.has(ro))return Yt.forEach(Xe=>{Xe.isIgnore=!0});let Be=null,Wt=null;Yt.forEach(Xe=>{Be=Be||(Xe.urlString.includes("woff2")?Xe:null),Wt=Wt||(Xe.urlString.includes("woff")?Xe:null)});let At=!1;Yt.forEach(Xe=>{Be&&Xe!==Be||Wt&&Xe!==Wt?Xe.isIgnore=!0:(Xe.isIgnore=At,At=!0)})}),As="DOMS"+Date.now().toString(36).slice(-4);performance.mark(As+":start");const Is=zn(po.join(""));performance.mark(As+":nameSetConf-done");const io=[],Jo=await Promise.all(Array.from(Zi.getElementsByTagName("link")).filter(Ko=>Ko.rel==="stylesheet"&&Ko.href).map(Ko=>(async()=>[await h(Ko.href),Ko])()));performance.mark(As+":cssLinkPair-done");for(const[Ko,eo]of Jo){const ro=ri(Ko,eo,Is);io.push([ro,eo.href])}for(const Ko of Array.from(Zi.getElementsByTagName("style")))if(Ko.innerHTML.length!==0){const eo=ri(Ko.innerHTML,Ko,Is);io.push([eo,""])}else if(Ko.sheet)for(let eo=0,ro=Ko.sheet.cssRules.length;eo<ro;eo++){const Yt=Ko.sheet.cssRules[eo],Be=ji(Yt,Is)?"":Yt.cssText;io.push([Be,""])}performance.measure(As+":cssString-trim",As+":cssLinkPair-done");const Zo=mt();for(const[Ko,eo]of io)Zo.collect(Ko,eo);const Un=Zo.getOutput();ts(Un);const On=Ss(await a(Un));performance.measure(As+":cssString",As+":nameSetConf-done"),performance.mark(As+":cssString-done");const us=Ve();po.forEach(Ko=>us.collect(Ko,""));const bn=us.getOutput();ts(bn);const Gn=kn(await a(bn));performance.measure(As+":htmlString",As+":cssString-done"),performance.mark(As+":htmlString-done");const Es=["data:image/svg+xml;charset=UTF-8,",...Ki({domStringList:[...On,...Gn],width:Fo,height:Mn}).map(Ko=>encodeURIComponent(Ko))].join("");performance.measure(As+":imageSrc",As+":htmlString-done"),performance.mark(As+":imageSrc-done");const Ys=await bi({imageSrc:Es,width:Fo,height:Mn});performance.measure(As+":imageElement",As+":imageSrc-done");const lo=await sa({imageElement:Ys,width:Fo,height:Mn});return performance.measure(As,As+":start"),{fetchPngBlob:()=>new Promise((Ko,eo)=>lo.toBlob(ro=>ro?Ko(ro):eo(new Error("missing pngBlob"))))}};var Qt=e(91416),Sn=e(17599),Vo=e(57882),ho=e(68496),Uo=e(7233),pn=e(48310),ys=e(63555),Dn=e(59956),Hs=e(55560),Qn=e(58912),Gi=e(99191),oa=e(93196);const ta=(zt,po,Fo)=>{if(zt&&(po!=="unset"||Fo)){const Mn=Fo?"url(#"+Fo+")":po,Fn=zt.children;if(Fn&&Fn.length>0)for(const ts of Fn){const As=ts.getAttribute("fill"),Is=ts.getAttribute("stroke");Is&&Is!=="none"?(ts.setAttribute("stroke",Mn),(!As||As==="none")&&ts.setAttribute("fill","none")):As&&As!=="none"?(ts.setAttribute("fill",Mn),(!Is||Is==="none")&&ts.setAttribute("stroke","none")):!As&&!Is&&ts.setAttribute("fill",Mn),ta(ts,Mn,void 0)}}},Sa=function(zt,po,Fo,Mn){Mn===void 0&&(Mn=!1);const Fn='<svg xmlns="http://www.w3.org/2000/svg">'+zt+"</svg>",As=new DOMParser().parseFromString(Fn,"text/html"),Is=As.querySelector("svg");return As.querySelector("parsererror")?zt:(Mn||ta(Is,po,Fo),Is.innerHTML)},La=268435456,ya=65535,Ja=65535,No=14400,ct=async(zt,po)=>{window.alert=void 0;const Fo=zt.output("blob");if(Fo===void 0)throw new en;return new File([Fo],po+".pdf",{type:"application/pdf"})},Mt=zt=>{const{iconData:{iconColor:po,viewBox:Fo,path:Mn},display_name:Fn,shadow:ts,width:As,height:Is,border:io}=zt,Jo="drop-shadow("+ts.offsetX+"px "+ts.offsetY+"px "+ts.blurRadius+"px "+(0,ho.t0)(ts.shadowColor)+")",Zo=ts.shadowIsVisible?Jo:"none";let Un="";io.bdrIsVisible&&(Un+="border-color: "+(0,ho.t0)(io.bdrColor)+";border-width: "+io.bdrWidth+";border-style: "+io.bdrStyle);const On=(0,Qt.$8)(zt.fill,{w:zt.width,h:zt.height});let us=null,bn=po==="unset"?"unset":null;const Gn=On.type===Sn.LA.RadialGradient||On.type===Sn.LA.LinearGradient;Gn?us=""+zt.cid+On.type:On.type===Sn.LA.Solid&&(bn=C.Q.toRGBAStr(On.color));const xs=Sa(Mn,bn,us,po==="unset"),Es=Fo.split(" ").map(Ko=>Number(Ko)),Ys='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="'+Fo+'" width="'+As+'" height="'+Is+'" style="'+Un+'" filter="'+Zo+'">\n '+(Gn?(0,Vo.vS)(On,us,{minX:Es[0],minY:Es[1],width:Es[2],height:Es[3]}):"")+"\n <g>\n "+xs+"\n </g>\n </svg>",lo=new Blob([Ys],{type:"image/svg"});return new File([lo],Fn+".svg",{type:"image/svg"})},ht=zt=>{const{richTextV1:{fontFamily:po,fontWeight:Fo,italic:Mn,bold:Fn},textV1:{blocks:ts}}=zt.hotAttr;return new Set(Object.values(ts).reduce((Is,io)=>{const{inlineStyleRanges:Jo,text:Zo}=io,Un={FONTFAMILY:new Array(Zo.length),FONTWEIGHT:new Array(Zo.length),BOLD:new Array(Zo.length),ITALIC:new Array(Zo.length)};return Jo.forEach(On=>{const us=On.offset,bn=us+On.length;for(let Gn=us;Gn<bn;Gn+=1)On.style.startsWith("fontfamily-")?Un.FONTFAMILY[Gn]=On.style.substring(11):On.style.startsWith("fontweight-")?Un.FONTWEIGHT[Gn]=On.style.substring(11):On.style==="BOLD"?Un.BOLD[Gn]=!0:On.style==="ITALIC"&&(Un.ITALIC[Gn]=!0)}),[...Is,...Array.from(Zo).flatMap((On,us)=>{const bn=Un.FONTFAMILY[us]||po,Gn=Un.FONTWEIGHT[us]||(Fn?700:Dn.dV[Fo]),xs=Un.BOLD[us]||Fn,Es=Un.ITALIC[us]||Mn;return[...bn==="PingFangSC"?["PingFangSC|normal|400","PingFangSC|normal|600"]:[bn+"|normal|400"],bn+"|"+(Es?"italic":"normal")+"|"+(xs?700:Gn)]})]},[]))},oo=zt=>{const{icon:po}=zt.hotAttr;if(/^(fa|md|mb|ci|fa5|antOutline|antFill)-/.test(po))switch(po.split("-")[0]){case"ci":return new Set(["CustomIcon|normal|400"]);case"fa5":case"fa":return new Set(["FontAwesome|normal|400"]);case"md":return new Set(["Material Icons|normal|400"]);case"mb":return new Set(["mb-icons|normal|400"]);default:return new Set}return new Set},uo=(zt,po)=>{const Fo=po.getHotItem(zt);if(!Fo)return new Set;const{sub:Mn,hotAttr:Fn}=Fo;return T.X4.has(Fn.type)?new Set(Mn.reduce((ts,As)=>[...ts,...Array.from(uo(As,po))],[])):Fn.type==="wRichText"?ht(Fo):Fn.type==="wIconButton"?oo(Fo):Fn.type==="wBasket"?uo(Fn.refContentKey,po):new Set},So=zt=>{let{itemNode:po,isWithDeviceFrame:Fo,scale:Mn,isExportSticky:Fn,isIncludeCanvasName:ts,sdk:As=sdkStore}=zt;if(Fo&&po.type==="rResCanvas"&&!po.hotAttr.asOverlay){var Is;const us=As.getHotItem(As.locUpRBPageKey(po.key)),bn=(0,Qn.MR)(us==null||(Is=us.hotAttr)==null?void 0:Is.device);if(bn)return{width:bn.width*Mn,height:bn.height*Mn}}if(po.type==="rbPage"&&po.children.length===0)return{width:po.hotAttr.deviceW*Mn,height:po.hotAttr.deviceH*Mn};const Jo=(0,Gi.Gq)(As,po.key,Fn,"local"),Zo=Jo[2]-Jo[0],Un=ts?(0,Gi.Yp)(po,Jo):0,On=Jo[3]-Jo[1]+Un;return{width:Math.round(Zo*Mn),height:Math.round(On*Mn)}};class zo extends Error{constructor(){super(),this.name="CanvasDimensionExceededWarning"}}class en extends Error{constructor(){super(),this.name="PdfDimensionExceededError"}}class mn extends Error{constructor(){super(),this.name="EmptyPageWarning"}}const jn=(zt,po)=>{const Fo=.265*Math.min(1,19169/zt,19169/po);return[zt*Fo,po*Fo]},Oo=zt=>{let{itemKey:po,attrsOverride:Fo={},pseudoSdkStore:Mn,affix:Fn=void 0,scale:ts,hasWatermark:As=!0,isWithDeviceFrame:Is=!1,isExportSticky:io=!1,isIncludeCanvasName:Jo}=zt;const Zo=Mn||sdkStore,On=(()=>{const Yt=(0,pn.v)(pn.K.snapshot),Be={...Zo,getInteractionsOf:()=>[],getHotItem:At=>{if(At===po){const Xe=Zo.getHotItem(At);if(!Xe)return;const Vt={...Xe,hotAttr:{...Xe.hotAttr,...Fo}};return(0,Gi.tG)({hotItem:Vt,isExportSticky:io})}else{const Xe=Zo.getHotItem(At);return Xe?(0,Gi.tG)({hotItem:Xe,isExportSticky:io}):void 0}}},Wt=new Uo.c(Yt,Be);return Wt.buildWidgetTree({folderKey:po}),Wt.getNode(po)})(),us=()=>{const Yt="@"+ts+"x";let Be;return On.type==="wBasket"?Be=On.widget.display_name+"-"+Zo.getHotItem(On.widget.refContentKey).hotAttr.name:On.type==="wTear"||On.type==="wSticky"?Be="\u6279\u6CE8"+On.widget.order:Be=On.widget.display_name,""+(Fn==="prefix"?Yt:"")+Be+(Fn==="suffix"?Yt:"")},bn=()=>So({itemNode:On,isWithDeviceFrame:Is,scale:ts,isExportSticky:io,isIncludeCanvasName:Jo,sdk:Zo}),Gn=Yt=>{const{width:Be,height:Wt}=bn();try{xs(Yt)}catch(At){if(Yt&&Yt.includes("png")&&At instanceof zo){const Xe=Be>ya?ya:Be,Vt=Wt*Xe>ya?Math.min(Ja,Math.floor(La/Xe)):Wt;return{width:Xe,height:Vt}}else if(Yt==="pdf"&&At instanceof en)return{width:Be>No?No:Be,height:Wt>No?No:Wt}}return{width:Be,height:Wt}},xs=Yt=>{const{width:Be,height:Wt}=bn();if(Yt.includes("png")&&(Be*Wt>La||Be>ya||Wt>Ja))throw new zo;if(Yt==="pdf"&&(Be>No||Wt>No))throw new en},Es=async Yt=>{const Be="PNGB"+Date.now().toString(36).slice(-4);performance.mark(Be+":start");let{width:Wt,height:At}=Gn(Yt);if(Is&&On.type==="rResCanvas"&&!On.hotAttr.asOverlay){var Xe;const Ps=Zo.getHotItem(Zo.locUpRBPageKey(On.key));(Ps==null||(Xe=Ps.hotAttr)==null?void 0:Xe.deviceOrientation)==="landscape"&&([Wt,At]=[At,Wt])}const Vt=document.createElement("div");Vt.innerHTML=(0,Gi.Pf)({item:On,scale:ts,isWithDeviceFrame:Is,hasWatermark:As,isExportSticky:io,isIncludeCanvasName:Jo,sdk:Zo}),performance.measure(Be+":innerHTML",Be+":start");const{fetchPngBlob:Xo}=await Fa({element:Vt,width:Wt,height:At,presetFontsSet:uo(po,Zo)});performance.mark(Be+":domss-done");const rn=await Xo();return performance.measure(Be+":fetchPngBlob",Be+":domss-done"),performance.measure(Be,Be+":start"),rn},Ys=async Yt=>{const Be=await Es(Yt);return new Uint8Array(await(0,l.WL)(Be))},lo=async Yt=>{const Be=await Es(Yt);return new File([Be],us()+".png",{type:Be.type})},Ko=async Yt=>{const{JsPdf:Be}=await m.QN.loadLLG(),{width:Wt,height:At}=Gn(Yt),[Xe,Vt]=jn(Wt,At),Xo=new Be({orientation:Wt>At?"l":"p",unit:"mm",format:[Xe,Vt]});return Xo.addImage(await Ys(Yt),"png",0,0,Xe,Vt,"","SLOW"),ct(Xo,us())},eo=async Yt=>{var Be;const{display_name:Wt}=Yt,At=Zo.getHotItem(po);if((At==null?void 0:At.hotAttr.type)!==ys.x.WImage)return null;const Xe=At.hotAttr.image.imageRef,Vt=((Be=Zo.getHotItem(Xe))==null||(Be=Be.hotAttr)==null?void 0:Be.extData)||"";if(!Vt)return null;const rn=await(await fetch(Vt,{method:"GET",cache:"force-cache",mode:"cors",credentials:"same-origin"})).blob();return new File([rn],Wt+".gif",{type:rn.type})},ro=async Yt=>{switch(Yt){case"png":case"png-unzip":return lo(Yt);case"pdf":return Ko(Yt);case"svg":return On.type===ys.x.WIcon&&Mt(On.widget);case"gif":return On.type===ys.x.WImage&&eo(On.widget)}};return{validateIE:xs,getDimensionsIE:bn,getCutDimensionsIE:Gn,name:On.type==="rResCanvas"?On.widgetStore.sdkStore.getHotItem(On.sup).hotAttr.name+"-"+On.widget.display_name:On.widget.display_name,toPngU8ArrayIE:Ys,toPngFileIE:lo,toIE:ro}},Nn=zt=>{let{pageKey:po,downloadPageType:Fo,scale:Mn,hasWatermark:Fn,isWithDeviceFrame:ts,isExportSticky:As,isIncludeCanvasName:Is}=zt;const io=sdkStore.getHotItem(po),Zo=(Fo===Hs.y5.PAGE?sdkStore.getSubHotItemList(po).filter(Gn=>Gn.hotAttr.type==="rResCanvas"&&!Gn.hotAttr.asOverlay).sort((Gn,xs)=>Gn.hotAttr.order-xs.hotAttr.order):[io]).map(Gn=>Oo({itemKey:Gn.key,scale:Mn,hasWatermark:Fn,isWithDeviceFrame:ts,isExportSticky:As,isIncludeCanvasName:Is})),Un=Gn=>{if(Fo===Hs.y5.PAGE&&Zo.length===0)throw new mn;Zo.forEach(xs=>xs.validateIE(Gn))},On=async function(Gn,xs){xs===void 0&&(xs=(0,oa.K4)());const Es=[];let Ys=1;if(location.hash.includes("EM_PARALLEL"))try{Ys=Math.min(Math.round(navigator.hardwareConcurrency*.6),navigator.deviceMemory>=8?8:4)||2}catch(ro){}await(0,g.t_)(Ys,Zo.map((ro,Yt)=>async()=>{Es[Yt]=await ro.toPngFileIE(Gn),xs.advanceRR(1/Zo.length)}));const lo=[],Ko=new Map,eo=Zo.map((ro,Yt)=>async()=>{var Be;const Wt=Es[Yt],At=(Be=Ko.get(ro.name))!=null?Be:0,Xe=Yt+" "+(At>0?Wt.name.replace(/\.[^/.]+$/,"")+" ("+(At+1)+").png":Wt.name);Ko.set(ro.name,At+1),lo.push(new File([Wt],Xe,{type:Wt.type}))});for(const ro of eo)await ro();return lo},us=async function(Gn,xs){xs===void 0&&(xs=(0,oa.K4)());const{JsZip:Es}=await m.QN.loadLLG(),Ys=Es();return(await On(Gn,xs)).forEach(Ko=>Ys.file(""+Ko.name,Ko)),(0,oa.vb)(Ys),new File([await Ys.generateAsync({type:"blob"})],io.hotAttr.name+".zip",{type:"application/zip"})},bn=async function(Gn,xs){xs===void 0&&(xs=(0,oa.K4)());const Es=Yt=>{let{width:Be,height:Wt}=Yt;return ts&&io.hotAttr.deviceOrientation==="landscape"&&([Be,Wt]=[Wt,Be]),jn(Be,Wt)},[Ys,lo]=Es(Zo[0].getCutDimensionsIE(Gn)),{JsPdf:Ko}=await m.QN.loadLLG(),eo=new Ko({orientation:Ys>lo?"l":"p",unit:"mm",format:[Ys,lo]}),ro=Zo.map((Yt,Be)=>async()=>{const[Wt,At]=Es(Yt.getDimensionsIE());Be!==0&&eo.addPage([Wt,At],Wt>At?"l":"p"),eo.addImage(await Yt.toPngU8ArrayIE(Gn),"png",0,0,Wt,At,"","SLOW"),xs.advanceRR(1/Zo.length)});for(const Yt of ro)await Yt();return ct(eo,io.hotAttr.name)};return{validatePE:Un,name:io.hotAttr.name,toPngZipFilePE:us,toPngFilesPE:On,toPdfFilePE:bn}},es=async(zt,po,Fo,Mn)=>{try{zt.forEach(As=>Oo(As).validateIE(As.format))}catch(As){if(Fo(As)){Mn&&Mn(!1);return}}const Fn=[];for(const As of zt)Fn.push(await Oo(As).toIE(As.format));const ts=(0,oa.aT)(Fn);if(ts.length===1){const As=ts[0];(0,o.saveAs)(As,As.name)}else{const{JsZip:As}=await m.QN.loadLLG(),Is=new As;ts.forEach(io=>{Is.file(io.name,io)}),(0,o.saveAs)(await Is.generateAsync({type:"blob"}),po+".zip")}MB.notice({text:"\u5BFC\u51FA\u6210\u529F",type:"success"}),Mn&&Mn(!0)}},99005:(Et,ke,e)=>{"use strict";e.d(ke,{BE:()=>h,CX:()=>E,GT:()=>k,Jx:()=>f,MF:()=>C,MV:()=>l,iU:()=>p,my:()=>x,n2:()=>b,qZ:()=>r,tj:()=>A,zF:()=>N});var o=e(35524),m=e(54909),g=e(57464);const l=18,C={light:{bgColor:m.f.color_bg_white.value_light,borderColor:m.f.color_bg_border_01.value_light,cornerActiveColor:o.af.color_interaction_grid.value,fontColor:m.f.color_text_disabled01.value_light,line:{normal:m.f.color_polyline_normal.value_light,hover:m.f.color_polyline_hover.value_light,active:m.f.color_polyline_select.value_light},shadowColor:o.af.color_ruler_shadow_color.value,longfgColor:m.f.color_text_disabled01.value_light,shortfgColor:m.f.color_text_disabled01.value_light,menu:{bgColor:o.af.color_text_L1.value,dividerColor:"rgba(255, 255, 255, 0.1)",listItem:{textColor:m.f.color_text_btn.value_light,hoverTextColor:m.f.color_text_btn.value_light,disabledTextColor:o.af.color_text_disabled01.value,bgColor:o.af.color_text_L1.value,hoverBgColor:o.af.color_text_L2.value}}},dark:{bgColor:m.f.color_bg_white.value_dark,borderColor:m.f.color_bg_border_01.value_dark,cornerActiveColor:o.af.color_interaction_grid.value,fontColor:m.f.color_text_disabled01.value_dark,line:{normal:m.f.color_polyline_normal.value_dark,hover:m.f.color_polyline_hover.value_dark,active:m.f.color_polyline_select.value_dark},shadowColor:o.qY.ruler_dark_common_color2.value,longfgColor:m.f.color_text_disabled01.value_dark,shortfgColor:m.f.color_text_disabled01.value_dark,menu:{bgColor:o.af.color_text_L1.value,dividerColor:"rgba(255, 255, 255, 0.1)",listItem:{textColor:m.f.color_text_btn.value_light,hoverTextColor:m.f.color_text_btn.value_light,disabledTextColor:o.af.color_text_disabled01.value,bgColor:o.af.color_text_L1.value,hoverBgColor:o.af.color_text_L2.value}}}},T={distance_line:26,distance_left:18,distance_right:18,distance_top:18,distance_bottom:48,guide_width:281,guide_height:284},A=2,k={bgColor:"rgba(225,225,225)",longfgColor:"#babbbc",shortfgColor:"#c8cdd0",fontColor:"#7d8694",shadowColor:"#f2f2f2",line:{normal:"rgba(255, 19, 19, 0.5)",hover:"#ff1313",active:"#1684fc"},borderColor:"#dadadc",cornerActiveColor:"rgb(235, 86, 72, 0.6)"},p=(0,g.jsx)("svg",{width:"10",height:"10",xmlns:"http://www.w3.org/2000/svg",children:(0,g.jsx)("path",{d:"M1 5.066c0 .211.07.39.212.538L3.346 7.78A.699.699 0 0 0 3.872 8a.69.69 0 0 0 .517-.221l4.39-4.49A.731.731 0 0 0 9 2.753a.717.717 0 0 0-.22-.532A.714.714 0 0 0 8.255 2a.714.714 0 0 0-.524.221l-3.86 3.955L2.26 4.528a.714.714 0 0 0-.524-.221.714.714 0 0 0-.524.221.749.749 0 0 0-.212.538z",fill:"#415058",fillRule:"evenodd"})}),r={"zh-CN":{vertical:"\u7EB5\u5411",horizontal:"\u6A2A\u5411",show_ruler:"\u663E\u793A\u6807\u5C3A",show_refer_line:"\u663E\u793A\u53C2\u8003\u7EBF",remove_all:"\u5220\u9664\u6240\u6709",refer_line:"\u53C2\u8003\u7EBF",align_line:"\u5BF9\u9F50\u53C2\u8003\u7EBF"},en:{vertical:"vertical",horizontal:"horizontal",show_ruler:"show rulers",show_refer_line:"show all guides",remove_all:"remove all ",refer_line:"guides",align_line:"align guides"}},x={bgColor:"#fff",dividerColor:"#dbdbdb",listItem:{textColor:"#415058",hoverTextColor:"#298df8",disabledTextColor:"rgba(65, 80, 88, 0.4)",bgColor:"#fff",hoverBgColor:"#f2f2f2"}},f=["downarrow","uparrow","leftarrow","rightarrow"],u=["shift.downarrow","shift.uparrow","shift.leftarrow","shift.rightarrow"],b=["leftarrow","rightarrow","shift.leftarrow","shift.rightarrow"],h=["downarrow","uparrow","shift.downarrow","shift.uparrow"],E=["backspace","delete"],N=[...f,...u]},11123:(Et,ke,e)=>{"use strict";e.d(ke,{$U:()=>A,Hw:()=>m,KF:()=>l,Q:()=>k,dM:()=>o,iX:()=>T,ks:()=>p,o5:()=>g,uE:()=>C});const o=r=>r.plugin.ruler.canvasRuler,m=r=>r.plugin.ruler.rulerLineCanvas,g=r=>r.plugin.ruler.isDraggingLine,l=r=>r.plugin.ruler.selectedLine,C=r=>{var x;return((x=r.plugin.ruler.selectedLine)==null?void 0:x.length)>0},T=r=>r.plugin.ruler.draggingLine,A=r=>r.plugin.ruler.rulerRect,k=r=>r.plugin.ruler.isDeleteLine,p=r=>{var x,f,u;const b=(x=r.plugin.ruler.selectedLine)==null?void 0:x[0],h=r.plugin.ruler.draggingLine;return!b||!h||(h==null?void 0:h.type)!==(b==null?void 0:b.type)||(h==null?void 0:h.index)!==(b==null?void 0:b.index)?!1:!(h!=null&&h.canvas)&&!(b!=null&&b.canvas)||(h==null||(f=h.canvas)==null?void 0:f.key)===(b==null||(u=b.canvas)==null?void 0:u.key)}},64983:(Et,ke,e)=>{"use strict";e.d(ke,{Pr:()=>l,_D:()=>g,vY:()=>m});var o=e(78647);const m=[o.c.TASK_GUIDE_NEW_CREATE_PAGE,o.c.TASK_GUIDE_NEW_SHOW_WIDGET_LIBRARY,o.c.TASK_GUIDE_NEW_CREATE_LINK,o.c.TASK_GUIDE_NEW_USE_PREVIEW,o.c.TASK_GUIDE_NEW_USE_SHARE,o.c.TASK_GUIDE_NEW_USE_COMMENT,o.c.TASK_GUIDE_NEW_CREATE_ANNOTATE,o.c.TASK_GUIDE_NEW_CREATE_FLOW,o.c.TASK_GUIDE_NEW_CREATE_MIND],g=[o.c.GUIDE_NOVICE_2309_TASK_1,o.c.GUIDE_NOVICE_2309_TASK_2,o.c.GUIDE_NOVICE_2309_TASK_3,o.c.GUIDE_NOVICE_2309_TASK_4,o.c.GUIDE_NOVICE_2309_TASK_5],l=[{label:"add_artboard",guideKey:o.c.GUIDE_NOVICE_2309_TASK_1,imgUrl:ENV.IS_WONDER_SHARE?"https://cdn-release.modao.cc/mb_proto/guide/GUIDE_NOVICE_2309_TASK_1_ws.gif":"/mb-proto2/images/guide/noviceGuides2309/"+o.c.GUIDE_NOVICE_2309_TASK_1+".gif",icon:{name:"art_board/guide/task/CREATE_PAGE",width:12,height:14},track:"\u65B0\u5EFA\u9875\u9762"},{label:"add_widget",guideKey:o.c.GUIDE_NOVICE_2309_TASK_2,imgUrl:ENV.IS_WONDER_SHARE?"https://cdn-release.modao.cc/mb_proto/guide/GUIDE_NOVICE_2309_TASK_2_ws.gif":"/mb-proto2/images/guide/noviceGuides2309/"+o.c.GUIDE_NOVICE_2309_TASK_2+".gif",icon:{name:"art_board/guide/task/CREATE_WIDGET",width:14,height:16},track:"\u521B\u5EFA\u7EC4\u4EF6"},{label:"add_interaction",guideKey:o.c.GUIDE_NOVICE_2309_TASK_3,imgUrl:ENV.IS_WONDER_SHARE?"https://cdn-release.modao.cc/mb_proto/guide/GUIDE_NOVICE_2309_TASK_3_ws.gif":"/mb-proto2/images/guide/noviceGuides2309/"+o.c.GUIDE_NOVICE_2309_TASK_3+".gif",icon:{name:"art_board/guide/task/CREATE_LINK",width:16,height:16},track:"\u6DFB\u52A0\u4EA4\u4E92"},{label:"preview",guideKey:o.c.GUIDE_NOVICE_2309_TASK_4,imgUrl:ENV.IS_WONDER_SHARE?"https://cdn-release.modao.cc/mb_proto/guide/GUIDE_NOVICE_2309_TASK_4_ws.gif":"/mb-proto2/images/guide/noviceGuides2309/"+o.c.GUIDE_NOVICE_2309_TASK_4+".gif",icon:{name:"art_board/guide/task/USE_PREVIEW",width:12,height:14},track:"\u771F\u673A\u6F14\u793A"},{label:"share",guideKey:o.c.GUIDE_NOVICE_2309_TASK_5,imgUrl:ENV.IS_WONDER_SHARE?"https://cdn-release.modao.cc/mb_proto/guide/GUIDE_NOVICE_2309_TASK_5_ws.gif":"/mb-proto2/images/guide/noviceGuides2309/"+o.c.GUIDE_NOVICE_2309_TASK_5+".gif",icon:{name:"art_board/guide/task/USE_SHARE",width:12,height:12},track:"\u6587\u4EF6\u5206\u4EAB"}]},11891:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>C,d:()=>m});var o=e(36521);const m="IS_HIDE_TASK_LIST",g="IS_COLLAPSE_TASK_LIST",l={isHide:(0,o.Yt)(m,!0,o.qW.Boolean),isCollapse:(0,o.Yt)(g,!0,o.qW.Boolean),isComplete:!1,completeList:[]};function C(T,A){T===void 0&&(T=l);const{type:k,payload:p}=A;switch(k){case"update:taskList:data":return{...T,...p};case"update:taskList:isHide":return(0,o.a0)(m,p.isHide,o.qW.Boolean),{...T,isHide:p.isHide};case"update:taskList:isCollapse":return(0,o.a0)(g,p.isCollapse,o.qW.Boolean),{...T,isCollapse:p.isCollapse};case"update:taskList:completed":return(0,o.a0)(m,!0,o.qW.Boolean),{...T,isComplete:!0,isHide:!0};default:return T}}},88875:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>Is});var o=e(72605),m=e(63686),g=e(47143),l=e(43391),C=e(54606),T=e(38047),A=e(78570),k=e(20029),p=e(5115),r=e(76445),x=e(74059),f=e(51044),u=e(7290),b=e(21676),h=e(57464);class E extends f.PureComponent{constructor(){super(...arguments),(0,x.A)(this,"handleDoubleClick",()=>{const{dispatch:Jo}=this.props;Jo({type:"entry:auto:create:combo:on:screenList"})})}render(){return(0,h.jsx)(N,{onDoubleClick:this.handleDoubleClick,children:(0,h.jsxs)("div",{className:"main",children:[(0,h.jsx)(u.C,{name:"art_board/empty/combo"}),(0,h.jsx)("span",{className:"none",children:"\u6682\u65E0\u7EC4\u4EF6"}),(0,h.jsx)("span",{className:"double",children:"\u53CC\u51FB\u521B\u5EFA\u7EC4\u4EF6"})]})})}}const N=b.Ay.div.withConfig({displayName:"EmptyEditCombo__StyledEmptyEditCombo",componentId:"sc-19i6v5g-0"})(["width:100%;height:100%;display:flex;justify-content:center;align-items:center;transition:background 0.2s ease-in-out;background:rgba(31,41,46,0.3);cursor:pointer;pointer-events:auto;.main{display:flex;flex-direction:column;align-items:center;svg.svg-icon{width:90px;}span{display:inline-block;&.none{margin-top:22px;color:",";}&.double{margin-top:12px;color:",";}}}"],io=>io.theme.color_text_L2,io=>io.theme.color_text_L1);var z=e(89535),S=e(30797),_=e(58314);const y=b.Ay.div.withConfig({displayName:"styles__StyledStickyBoard",componentId:"sc-1hpbcbf-0"})(["z-index:4;position:absolute;left:32px;top:",";display:flex;justify-content:center;gap:12px;align-items:center;.stickyBoardItem{width:30px;height:30px;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 6px rgba(39,54,78,0.08);border-radius:4px;white-space:nowrap;cursor:pointer;pointer-events:auto;background-color:",";.svg-icon{width:30px;height:30px;color:",";}.undoIcon,.redoIcon{width:24px;height:24px;path{fill:",";}}&.disabled{cursor:not-allowed;.undoIcon,.redoIcon{path{fill:",";}}}&:not(.disabled):hover{background-color:",";}&.linking{background:",";color:",";}}.stickyBoardContainer{display:flex;align-items:center;justify-content:center;margin-left:8px;border-radius:4px;box-shadow:0 2px 6px rgba(39,54,78,0.08);overflow:hidden;position:relative;.stickyBoardItem{border-radius:0;box-shadow:none;position:relative;&:first-child{&::after{content:'';display:inline-block;width:1px;height:16px;background:",";position:absolute;right:0;}}}}"],io=>io.showPanelEditBreadNav?"76px":"30px",io=>io.theme.color_bg_white,io=>io.theme.color_text_L1,io=>io.theme.color_text_L2,io=>io.theme.color_text_disabled01,io=>io.theme.color_btn_secondary_active,io=>io.theme.color_btn_secondary_active,io=>io.theme.color_text_L2,io=>io.theme.color_btn_secondary_active),$=io=>{var Jo,Zo;let{showPanelEditBreadNav:Un,dispatch:On}=io;const us=()=>{On({type:"modal:update:state",payload:{linkBackModal:{isOpen:!0}}})},bn=(0,o.d4)(T.nF),Gn=(0,o.d4)(S.x$),xs=sdkStore.locUpColdCanvasKey(((Jo=Gn[0])==null?void 0:Jo.keyToAccessIntAct)||""),Es=bn&&xs&&((Zo=sdkStore.getHotItem(xs))==null?void 0:Zo.hotAttr.asOverlay);return(0,h.jsxs)(y,{showPanelEditBreadNav:Un,children:[bn&&(0,h.jsx)(z.A,{content:I18N.ArtBoard.link_to_prev,direction:"down",children:(0,h.jsx)("div",{className:"stickyBoardItem interactive-target-hotspot","data-interactive-target-key":"source","data-interactive-target-type":_.E.canvas,onClick:us,children:(0,h.jsx)(u.C,{name:"art_board/linkBack",className:"linkBackIcon"})})}),Es&&(0,h.jsx)(z.A,{content:I18N.SettingPanel.close_overlay,direction:"down",children:(0,h.jsx)("div",{className:"stickyBoardItem interactive-target-hotspot","data-interactive-target-key":"close","data-interactive-target-type":_.E.overlay,onClick:us,children:(0,h.jsx)(u.C,{name:"common/close",className:"linkBackIcon"})})})]})};var ce=e(37931),de=e(76713),fe=e.n(de),se=e(86634),J=e.n(se),ve=e(19418),D=e(78647),R=e(10572),V=e(11777),O=e(40323),Ce=e(82658);const ae=b.Ay.div.withConfig({displayName:"styles__StyledHelperButton",componentId:"sc-83yeen-0"})(["z-index:106;position:absolute;right:20px;bottom:20px;pointer-events:auto;cursor:pointer;display:flex;align-items:center;height:34px;padding:0 8px;background:",";box-shadow:0px 3.25px 4.875px 0px rgba(0,0,0,0.10);border-radius:17px;&.only-helpButton{padding:0;width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;}.round{width:28px;height:28px;display:flex;justify-content:center;align-items:center;position:relative;color:",";svg{width:100%;height:100%;path{fill:currentColor;}}}.expand-panel{position:absolute;border-radius:8px;right:0;bottom:44px;width:176px;padding:8px;background-color:",";font-size:12px;color:",";box-shadow:",";line-height:0px;.box-icon{width:18px;height:18px;display:flex;align-items:center;justify-content:center;position:relative;svg path{fill:",";}&.tempDisabled,&.tempDisabled + span{opacity:0.4;}.video{font-size:14px;}}.show-task-list{position:relative;.text-icon{font-size:14px;}.task-list-text{position:relative;.task-tips{top:0;left:100%;}}}& > div{height:28px;display:flex;justify-content:flex-start;align-items:center;& > *{margin-left:13px;&.qr-code-box{margin:0;}}&:hover{background-color:",";.in{border-color:",";}}}}.expand-panel{border:1px solid ",";.box-icon{svg path{color:",";}}& > div{border-radius:4px;.in{border-color:",";}}}.question-button{pointer-events:none;path{fill:",";}}.ai-semantic{width:26px;height:26px;position:relative;svg{width:100%;height:100%;}.semantic-tip{background-color:#1684FC;right:-4px;}}.line{width:1px;height:24px;background-color:",";margin:0 6px;}"],io=>io.theme.help_button_background_color,io=>io.theme.color_text_L1,io=>io.theme.color_bg_white,io=>io.theme.color_text_L1,io=>io.theme.shadow_m,io=>io.theme.color_text_L1,io=>io.theme.color_btn_secondary_hover,io=>io.theme.color_btn_secondary_hover,io=>io.theme.color_bg_border_01,io=>io.theme.color_text_L1,io=>io.theme.color_bg_white,io=>io.theme.help_button_question_fill_color,io=>io.theme.help_button_line_color),q=b.Ay.span.withConfig({displayName:"styles__StyledDivider",componentId:"sc-83yeen-1"})(["display:inline-block;width:160px;height:1px;background:",";margin:8px 0;"],io=>io.theme.color_bg_border_01),K=b.Ay.div.withConfig({displayName:"styles__StyledBlueTips",componentId:"sc-83yeen-2"})(["position:absolute;top:0;right:0;display:inline-block;width:10px;height:10px;background:#1684fc;border:2px solid ",";border-radius:50%;&.in{top:-2px;right:-2px;border-color:#333;}"],io=>io.theme.color_bg_menu);var xe=e(9376);function te(io){let{isShowBlueTips:Jo,setShowBlueTips:Zo,onClose:Un}=io;const On=(0,o.wA)(),us=(0,f.useMemo)(()=>{const Gn=(0,xe.cX)()?"\u2318 K":"Ctrl + K";return(0,V.u)({text:I18N.ChatGPT.ai_semantic,key:"<kbd>"+Gn+"</kbd>"})},[]),bn=Gn=>{Gn.stopPropagation(),On({type:R.X.AIToggleOpenSemantic,payload:{source:"\u5DE6\u4FA7AI\u5165\u53E3"}}),Zo(!1),(0,O.Z)(Ce.SR.Semantic),Un&&Un()};return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(V.A,{content:us,direction:"down",children:(0,h.jsxs)("div",{className:"ai-semantic",onClick:bn,children:[(0,h.jsx)(u.C,{name:"chatGPT/ai-semantic",isColorPure:!0}),Jo&&(0,h.jsx)(K,{className:"semantic-tip"})]})}),(0,h.jsx)("div",{className:"line"})]})}const H=(0,f.memo)(te);function re(io){let{isShowBlueTips:Jo,isOpen:Zo,onClick:Un}=io;return(0,h.jsx)(V.A,{content:I18N.ToolBar.help,direction:"down",children:(0,h.jsxs)("div",{className:"round",onClick:Un,children:[(0,h.jsx)(u.C,{className:"question-button",name:Zo?"common/question_close":"common/question_mark",isColorPure:!0}),Jo&&(0,h.jsx)(K,{})]})})}const be=(0,f.memo)(re);var Le=e(36820);let Ve=function(io){return io.ChatGroup="\u65B0\u7248\u4EA4\u6D41\u7FA4",io.TaskList="\u65B0\u4EBA\u5F15\u5BFC",io.NewFeature="\u65B0\u7248\u672C\u529F\u80FD",io.NewbieVideo="\u5FEB\u901F\u5165\u95E8",io.ShortcutKey="\u5FEB\u6377\u952E",io.HelperCenter="\u5E2E\u52A9\u4E2D\u5FC3",io.Feedback="\u9700\u6C42\u53CD\u9988",io.OnlineSupport="\u5728\u7EBF\u5BA2\u670D",io.LayoutV9="\u65B0\u7248\u5E03\u5C40\u5207\u6362",io}({}),Ne=!1;const We=()=>{Ne=!0},ze=io=>{(0,Le.kH)("v8_q_action",{click_options:io,is_v7_upgrade:Ne})},ft=(0,h.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.6021 2.58107C10.8632 2.31128 11.283 2.27488 11.5866 2.4957C12.0089 2.80289 12.1251 3.38255 11.8539 3.82883L11.7189 4.05107H9.17989L10.6021 2.58107ZM7.98585 5.05107C7.99153 5.05123 7.99723 5.0513 8.00294 5.05126C8.00682 5.05124 8.0107 5.05118 8.01457 5.05107L11.9829 5.05107C11.994 5.05144 12.0051 5.05144 12.0162 5.05107H13.4989L13.4989 6.45066H2.50098V5.05107H4.0178C4.02871 5.05142 4.03963 5.05142 4.05056 5.05107L7.98585 5.05107ZM6.80237 4.05107L5.37883 2.61155C5.12745 2.35735 4.72897 2.32256 4.43734 2.52935C4.01231 2.83074 3.89891 3.41281 4.17972 3.85172L4.30726 4.05107H6.80237ZM3.16345 4.05107C2.83495 3.22072 3.10435 2.24869 3.8589 1.71363C4.54995 1.2236 5.4942 1.30603 6.08988 1.9084L7.9963 3.83623L9.88345 1.88573C10.491 1.25778 11.4682 1.17303 12.1748 1.68702C12.9267 2.23396 13.1926 3.2136 12.8571 4.05107H13.4989C14.0512 4.05107 14.4989 4.49878 14.4989 5.05107V6.45066C14.4989 6.96917 14.1043 7.39551 13.599 7.44572V13.1495C13.599 13.9779 12.9274 14.6495 12.099 14.6495H7.99994H3.90075C3.07232 14.6495 2.40075 13.9779 2.40075 13.1495V7.4457C1.89553 7.39542 1.50098 6.96912 1.50098 6.45066V5.05107C1.50098 4.49878 1.94869 4.05107 2.50098 4.05107H3.16345ZM7.49994 7.4507H3.40075V13.1495C3.40075 13.4256 3.62461 13.6495 3.90075 13.6495H7.49994V7.4507ZM8.49994 13.6495V7.4507H12.599V13.1495C12.599 13.4256 12.3752 13.6495 12.099 13.6495H8.49994Z",fill:"#333333"})});function mt(io){let{onClose:Jo}=io;const Zo=(0,o.wA)(),Un=(0,f.useCallback)(On=>{On.stopPropagation(),Zo({type:"entry:show:taskList"}),Jo&&Jo(),ze(Ve.TaskList)},[Zo,Jo]);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("div",{className:"show-task-list",onClick:Un,children:[(0,h.jsx)("div",{className:"box-icon",children:ft}),(0,h.jsx)("span",{className:"task-list-text",children:I18N.CommonGuides.show_novice_tasks})]}),(0,h.jsx)(q,{})]})}const i=(0,f.memo)(mt),gt=(0,h.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.1001 3.50156C3.1001 3.28065 3.27918 3.10156 3.5001 3.10156H12.5001C12.721 3.10156 12.9001 3.28065 12.9001 3.50156V12.5016C12.9001 12.7225 12.721 12.9016 12.5001 12.9016H3.5001C3.27918 12.9016 3.1001 12.7225 3.1001 12.5016V3.50156ZM3.5001 2.10156C2.7269 2.10156 2.1001 2.72836 2.1001 3.50156V12.5016C2.1001 13.2748 2.7269 13.9016 3.5001 13.9016H12.5001C13.2733 13.9016 13.9001 13.2748 13.9001 12.5016V3.50156C13.9001 2.72836 13.2733 2.10156 12.5001 2.10156H3.5001ZM6.6001 5.23022C6.4454 5.1409 6.2548 5.1409 6.1001 5.23022C5.9454 5.31954 5.8501 5.4846 5.8501 5.66323V8.00149V10.3398C5.8501 10.5184 5.9454 10.6834 6.1001 10.7728C6.2548 10.8621 6.4454 10.8621 6.6001 10.7728L8.6251 9.60364L10.6501 8.43451C10.8048 8.34519 10.9001 8.18013 10.9001 8.00149C10.9001 7.82286 10.8048 7.6578 10.6501 7.56848L8.6251 6.39935L6.6001 5.23022ZM6.8501 8.00149V6.52926L8.1251 7.26538L9.40009 8.00149L8.1251 8.73761L6.8501 9.47373V8.00149Z",fill:"black",fillOpacity:"0.85"})});function Je(io){let{isShowBlueTips:Jo,setShowBlueTips:Zo,onClose:Un}=io;const On=(0,o.wA)(),us=(0,f.useCallback)(()=>{On({type:"newbieVideoPanelState:toggle",payload:{show:!0}}),MB.commonGuideHelper.markGuideAsRead(D.c.GUIDE_NEWBIE_VIDEO),Zo(!1),Un&&Un(),ze(Ve.NewbieVideo)},[On,Zo,Un]);return(0,h.jsxs)("div",{onClick:us,children:[(0,h.jsxs)("div",{className:"box-icon",children:[gt,Jo&&(0,h.jsx)(K,{className:"in"})]}),(0,h.jsx)("span",{children:I18N.ToolBar.newbie_video})]})}const Pt=(0,f.memo)(Je),bt=(0,h.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.5 4H13.5V12H2.5L2.5 4ZM1.5 4C1.5 3.44772 1.94772 3 2.5 3H13.5C14.0523 3 14.5 3.44772 14.5 4V12C14.5 12.5523 14.0523 13 13.5 13H2.5C1.94772 13 1.5 12.5523 1.5 12V4ZM4 7C4 6.72386 4.22386 6.5 4.5 6.5H5.09929C5.37543 6.5 5.59929 6.72386 5.59929 7C5.59929 7.27614 5.37543 7.5 5.09929 7.5H4.5C4.22386 7.5 4 7.27614 4 7ZM7.19971 6.5C6.92356 6.5 6.69971 6.72386 6.69971 7C6.69971 7.27614 6.92356 7.5 7.19971 7.5H7.799C8.07514 7.5 8.299 7.27614 8.299 7C8.299 6.72386 8.07514 6.5 7.799 6.5H7.19971ZM9.09961 7C9.09961 6.72386 9.32347 6.5 9.59961 6.5H11.6994C11.9756 6.5 12.1994 6.72386 12.1994 7C12.1994 7.27614 11.9756 7.5 11.6994 7.5H9.59961C9.32347 7.5 9.09961 7.27614 9.09961 7ZM4.5 9.19971C4.22386 9.19971 4 9.42356 4 9.69971C4 9.97585 4.22386 10.1997 4.5 10.1997H11.6993C11.9755 10.1997 12.1993 9.97585 12.1993 9.69971C12.1993 9.42356 11.9755 9.19971 11.6993 9.19971H4.5Z",fill:"black",fillOpacity:"0.85"})});function qt(io){let{isShowBlueTips:Jo,setShowBlueTips:Zo,onClose:Un}=io;const On=(0,o.wA)(),us=(0,f.useCallback)(()=>{On({type:"toggle:showShortCutArtBoard",payload:{helpCenterModal:{index:1}}}),MB.commonGuideHelper.markGuideAsRead(D.c.GUIDE_SHORT_CUT_PANEL),Zo(!1),Un&&Un(),ze(Ve.ShortcutKey)},[On,Zo,Un]);return(0,h.jsxs)("div",{onClick:us,children:[(0,h.jsxs)("div",{className:"box-icon",children:[bt,Jo&&(0,h.jsx)(K,{className:"in"})]}),(0,h.jsx)("span",{children:I18N.ArtBoard.shortCutKey})]})}const pt=(0,f.memo)(qt);var $t=e(80396),go=e(66748),Co=e.n(go),Tt=e(56940);mo.propTypes={productId:Co().string,children:Co().oneOfType([Co().array,Co().string,Co().node]),isWonderShare:Co().bool,className:Co().string,wsLink:Co().string,onClick:Co().func,data:Co().object,params:Co().string,disabled:Co().bool,canClick:Co().bool};function mo(io){let{isWonderShare:Jo=!1,wsLink:Zo="https://mockitt.wondershare.com/feedback.html",productId:Un="315118",className:On="",params:us="",data:bn,children:Gn,onClick:xs=null,disabled:Es,canClick:Ys}=io;const lo=()=>{if(Es){Ys&&xs&&xs();return}xs&&xs(),(0,Tt.v)({productId:Un,data:bn,params:us,isWonderShare:Jo,wsLink:Zo})};return(0,h.jsx)("div",{className:On,onClick:lo,children:Gn})}var jo=e(29601),Kt=e(15336);const Ft=(0,h.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 13C10.7614 13 13 10.7614 13 8C13 5.23858 10.7614 3 8 3C5.23858 3 3 5.23858 3 8C3 10.7614 5.23858 13 8 13ZM8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14Z",fill:"black",fillOpacity:"0.85"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 5C7.17157 5 6.5 5.67157 6.5 6.5C6.5 6.77614 6.27614 7 6 7C5.72386 7 5.5 6.77614 5.5 6.5C5.5 5.11929 6.61929 4 8 4C9.38071 4 10.5 5.11929 10.5 6.5C10.5 7.07815 10.3472 7.51571 10.0838 7.85811C9.83337 8.18368 9.50835 8.38604 9.25952 8.53714C9.24553 8.54564 9.2318 8.55396 9.21833 8.56214C8.96702 8.71457 8.80401 8.81345 8.6832 8.94692C8.58235 9.05834 8.5 9.209 8.5 9.5C8.5 9.77614 8.27614 10 8 10C7.72386 10 7.5 9.77614 7.5 9.5C7.5 8.97141 7.66765 8.57876 7.9418 8.27587C8.16636 8.02776 8.45515 7.8541 8.67487 7.72197C8.69752 7.70835 8.71944 7.69516 8.74048 7.68239C8.99165 7.52987 9.16663 7.41033 9.29119 7.2484C9.4028 7.10331 9.5 6.88779 9.5 6.5C9.5 5.67157 8.82843 5 8 5Z",fill:"black",fillOpacity:"0.85"}),(0,h.jsx)("path",{d:"M8.75 11.5C8.75 11.9142 8.41421 12.25 8 12.25C7.58579 12.25 7.25 11.9142 7.25 11.5C7.25 11.0858 7.58579 10.75 8 10.75C8.41421 10.75 8.75 11.0858 8.75 11.5Z",fill:"black",fillOpacity:"0.85"})]}),nt=(0,h.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,h.jsx)("g",{clipPath:"url(#clip0_2026_37846)",children:(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 4.00684V12C1.5 12.5523 1.94772 13 2.5 13H13.5C14.0523 13 14.5 12.5523 14.5 12V4C14.5 3.44772 14.0523 3 13.5 3H2.5C1.95143 3 1.50603 3.44171 1.50006 3.98886C1.50002 3.99257 1.5 3.99628 1.5 4M2.5 4.93426L7.72265 8.41603C7.89679 8.53212 8.12482 8.52747 8.29409 8.40437L13.5 4.61825V12H2.5L2.5 4.93426ZM12.6499 4H2.90139L7.98757 7.39079L12.6499 4Z",fill:"black",fillOpacity:"0.85"})}),(0,h.jsx)("defs",{children:(0,h.jsx)("clipPath",{id:"clip0_2026_37846",children:(0,h.jsx)("rect",{width:"16",height:"16",fill:"white"})})})]}),Rt=(0,h.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,h.jsx)("g",{clipPath:"url(#clip0_2026_37851)",children:(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.97058 2.25C2.1584 2.25 1.5 2.9084 1.5 3.72058V10.7794C1.5 11.5916 2.1584 12.25 2.97058 12.25H3.6V13.25C3.6 13.4233 3.68973 13.5842 3.83713 13.6753C3.98454 13.7664 4.16861 13.7747 4.32361 13.6972L7.21803 12.25H13.0294C13.8416 12.25 14.5 11.5916 14.5 10.7794V3.72058C14.5 2.9084 13.8416 2.25 13.0294 2.25H2.97058ZM2.5 3.72058C2.5 3.46069 2.71069 3.25 2.97058 3.25H13.0294C13.2893 3.25 13.5 3.46069 13.5 3.72058V10.7794C13.5 11.0393 13.2893 11.25 13.0294 11.25H7.1C7.02238 11.25 6.94582 11.2681 6.87639 11.3028L4.6 12.441V11.75C4.6 11.4739 4.37614 11.25 4.1 11.25H2.97058C2.71069 11.25 2.5 11.0393 2.5 10.7794V3.72058ZM10.5996 5.44995C10.5996 5.17381 10.3758 4.94995 10.0996 4.94995C9.82347 4.94995 9.59961 5.17381 9.59961 5.44995V5.74995C9.59961 6.02609 9.82347 6.24995 10.0996 6.24995C10.3758 6.24995 10.5996 6.02609 10.5996 5.74995V5.44995ZM5.90039 4.94995C6.17653 4.94995 6.40039 5.17381 6.40039 5.44995V5.74995C6.40039 6.02609 6.17653 6.24995 5.90039 6.24995C5.62425 6.24995 5.40039 6.02609 5.40039 5.74995V5.44995C5.40039 5.17381 5.62425 4.94995 5.90039 4.94995ZM5.67678 7.70293C5.92363 7.57951 6.22376 7.67943 6.34739 7.92611L6.34719 7.92572L6.34714 7.92548C6.34918 7.92924 6.3534 7.93689 6.35987 7.94786C6.37284 7.96987 6.39461 8.0049 6.42559 8.04864C6.48794 8.13666 6.58517 8.25653 6.72007 8.37644C6.98568 8.61253 7.39679 8.85015 8.00039 8.85015C8.60399 8.85015 9.0151 8.61253 9.28071 8.37644C9.41561 8.25653 9.51284 8.13666 9.57519 8.04864C9.60617 8.0049 9.62794 7.96987 9.64091 7.94786C9.64738 7.93689 9.6516 7.92924 9.65364 7.92548L9.65359 7.92572L9.65339 7.92612C9.77701 7.67944 10.0771 7.57951 10.324 7.70293C10.571 7.82643 10.6711 8.12676 10.5476 8.37375L10.1004 8.15015C10.5476 8.37375 10.5475 8.37398 10.5474 8.3742L10.5471 8.37468L10.5466 8.37573L10.5454 8.37815L10.5422 8.38432L10.5329 8.40176C10.5254 8.41558 10.5153 8.43372 10.5024 8.45555C10.4767 8.49917 10.4399 8.5579 10.3912 8.62666C10.2942 8.76363 10.1477 8.94377 9.94507 9.12385C9.53568 9.48776 8.89679 9.85015 8.00039 9.85015C7.10399 9.85015 6.4651 9.48776 6.05571 9.12385C5.85311 8.94377 5.70659 8.76363 5.60957 8.62666C5.56086 8.5579 5.52403 8.49917 5.49833 8.45555C5.48546 8.43372 5.47533 8.41558 5.46785 8.40176L5.45858 8.38432L5.4554 8.37815L5.45417 8.37573L5.45364 8.37468L5.4534 8.3742C5.45329 8.37398 5.45318 8.37375 5.90039 8.15015L5.45318 8.37375C5.32968 8.12676 5.42979 7.82643 5.67678 7.70293ZM9.65364 7.92548L9.65395 7.925L9.65452 7.92388L9.65504 7.92286L9.65505 7.92284C9.65505 7.92284 9.65458 7.92374 9.65364 7.92548ZM6.34714 7.92548L6.34683 7.925L6.34626 7.92388L6.34574 7.92286L6.34573 7.92284C6.34573 7.92284 6.3462 7.92374 6.34714 7.92548Z",fill:"black",fillOpacity:"0.85"})}),(0,h.jsx)("defs",{children:(0,h.jsx)("clipPath",{id:"clip0_2026_37851",children:(0,h.jsx)("rect",{width:"16",height:"16",fill:"white"})})})]});function yt(io){let{onClose:Jo}=io;const Zo=(0,o.wA)(),Un=(0,f.useCallback)(()=>{(0,jo.k)()?Zo({type:"modal:update:state",payload:{helpCenterModal:{isOpen:!0,productName:"a10_proto_tool_v8"}}}):(0,Kt.JW)("https://mockitt.wondershare.com/guide/","_blank","noreferrer"),Jo&&Jo(),ze(Ve.HelperCenter)},[Zo,Jo]),On=(0,f.useCallback)(()=>{ze(Ve.Feedback),Jo&&Jo()},[Jo]),us=(0,f.useCallback)(()=>{ze(Ve.OnlineSupport),Jo&&Jo()},[Jo]);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("div",{onClick:Un,children:[(0,h.jsx)("div",{className:"box-icon",children:Ft}),(0,h.jsx)("span",{children:I18N.ArtBoard.helpCenter})]}),(0,h.jsxs)(mo,{isWonderShare:ENV.IS_WONDER_SHARE,data:{nickname:MB.user.name,avatar:MB.user.avatar,openid:MB.user.cid},canClick:!0,onClick:On,children:[(0,h.jsx)("div",{className:"box-icon",children:nt}),(0,h.jsx)("span",{children:I18N.ArtBoard.feedBack})]}),(0,h.jsxs)($t.A,{isWonderShare:ENV.IS_WONDER_SHARE,canClick:!0,onClick:us,children:[(0,h.jsx)("div",{className:"box-icon",children:Rt}),(0,h.jsx)("span",{children:I18N.ArtBoard.onLine})]})]})}const Jt=(0,f.memo)(yt);var vo=e(36521),Yo=e(29839);const Ho="2022-08-17",kt=(0,m.j8)({rootProject:g.PL,currentUser:g.HW,currentOrg:g.wA,isHideTaskList:g.SD,isCompleteTaskList:g.jj,currentViewType:k.jx,currentEditMode:C.r,showAISemanticTip:Yo.tK,layoutV9:A.MZ});function Ze(){const{rootProject:io,currentUser:Jo,currentOrg:Zo,isHideTaskList:Un,isCompleteTaskList:On,currentViewType:us,currentEditMode:{isEditingProjectMain:bn},showAISemanticTip:Gn,layoutV9:xs}=(0,o.d4)(kt),[Es,Ys]=(0,f.useState)(!1),lo=(0,f.useRef)(null),Ko=(0,f.useCallback)(()=>Ys(Ei=>!Ei),[]),eo=(0,f.useCallback)(()=>Ys(!1),[]),ro=(0,f.useCallback)(Ei=>{var vi;let{target:li}=Ei;!((vi=lo.current)!=null&&vi.contains(li))&&Ys(!1)},[]),[Yt,Be]=(0,f.useState)(()=>!MB.commonGuideHelper.checkGuideHasShown(D.c.GUIDE_SEMANTIC_PANEL)),[Wt,At]=(0,f.useState)(()=>{const Ei=Jo?fe()(Jo==null?void 0:Jo.created_at).isAfter(fe()(Ho)):!1;return!ENV.IS_WONDER_SHARE&&Ei&&!MB.commonGuideHelper.checkGuideHasShown(D.c.GUIDE_NEWBIE_VIDEO)}),[Xe,Vt]=(0,f.useState)(()=>{const Ei=Jo?fe()(Jo==null?void 0:Jo.created_at).isAfter(fe()(Ho)):!1;return!ENV.IS_WONDER_SHARE&&Ei&&!MB.commonGuideHelper.checkGuideHasShown(D.c.GUIDE_SHORT_CUT_PANEL)}),Xo=(0,vo.Yt)("UPGRADED_PROJECT_"+(io==null?void 0:io.cid),!1,vo.qW.String),[rn,Ps]=(0,f.useState)(Xo&&!MB.commonGuideHelper.checkGuideHasShown(D.c.UPGRADE_V8_COMMUNITY_GROUP)),Os=!ENV.IS_ON_PREMISES&&!On&&Un,ss=!1,Fs=Xe||rn||Wt;return(0,h.jsxs)(ae,{ref:lo,className:J()(!ss&&"only-helpButton"),children:[ss&&(0,h.jsx)(H,{isShowBlueTips:Yt&&Gn,setShowBlueTips:Be}),(0,h.jsx)(be,{isOpen:Es,isShowBlueTips:Fs,onClick:Ko}),Es&&(0,h.jsxs)("div",{className:"expand-panel",children:[Os&&Gn&&(0,h.jsx)(i,{onClose:eo}),!ENV.IS_WONDER_SHARE&&(0,h.jsx)(Pt,{isShowBlueTips:Wt,setShowBlueTips:At,onClose:eo}),(0,h.jsx)(pt,{isShowBlueTips:Xe,setShowBlueTips:Vt,onClose:eo}),!ENV.IS_WONDER_SHARE&&!ENV.IS_ON_PREMISES&&(0,h.jsx)(q,{}),!ENV.IS_ON_PREMISES&&(0,h.jsx)(Jt,{onClose:eo})]}),Es&&(0,h.jsx)(ve.A,{target:document,onClick:ro})]})}const it=(0,f.memo)(Ze);var st=e(90503);const dt=(0,b.DU)(["::-webkit-scrollbar-track{background-color:transparent;}::-webkit-scrollbar{width:6px;height:6px;}::-webkit-scrollbar-thumb{background-color:rgb(222,222,228);border-radius:4px;}::-webkit-scrollbar-corner{background-color:transparent;}"]),Ot=b.Ay.div.withConfig({displayName:"styled__StyledShortCut",componentId:"sc-1wqap92-0"})(["position:absolute;background:#333;border:1px solid rgba(0,0,0,0.11);border-radius:8px;color:#fff;header{display:flex;flex-flow:row nowrap;justify-content:center;align-items:center;border:1px solid rgba(255,255,255,0.1);padding:0 10%;position:relative;a{margin:auto;line-height:32px;cursor:pointer;p{margin:0 auto;width:fit-content;opacity:0.6;line-height:1.2;padding-top:12px;padding-bottom:8px;}&.is-active p{opacity:1;font-weight:500;}}}.indicator{position:absolute;height:2px;width:28px;background-color:#fff;bottom:0px;display:inline-block;transition:0.2s all ease-out;}.close-icon{position:absolute;right:14px;top:4px;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:1;svg{width:24px;height:24px;path{fill:#fff;}}}.shortcut-content{overflow-x:auto;height:calc(100% - 34px);padding:27px 50px;.shortcut-box{display:flex;height:100%;justify-content:space-start;margin:0 auto;.shortcut-column{&.has-border{border-right:1px solid rgba(255,255,255,0.1);}}.shortcut-item{padding:10px 40px;min-width:275px;line-height:1.33;display:flex;justify-content:space-between;p{margin:0px;}&:first-child{padding-top:0px;}&:last-child{padding-bottom:0px;}&:lang(en){min-width:325px;}}}}"]);function Ct(io,Jo,Zo){return(Jo=wo(Jo))in io?Object.defineProperty(io,Jo,{value:Zo,enumerable:!0,configurable:!0,writable:!0}):io[Jo]=Zo,io}function wo(io){var Jo=ln(io,"string");return typeof Jo=="symbol"?Jo:Jo+""}function ln(io,Jo){if(typeof io!="object"||!io)return io;var Zo=io[Symbol.toPrimitive];if(Zo!==void 0){var Un=Zo.call(io,Jo||"default");if(typeof Un!="object")return Un;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Jo==="string"?String:Number)(io)}class Io extends f.PureComponent{constructor(Jo){super(Jo),Ct(this,"state",{activeIndex:this.props.defaultIndex||0}),Ct(this,"maxColumn",0),Ct(this,"formatData",()=>{let{list:Zo,maxRows:Un}=this.props,On=[];Zo.map((us,bn)=>{On[bn]=On[bn]||[],On[bn].label=us.label,On[bn].title=us.title;let Gn=[];us.data.map((xs,Es)=>{let Ys=Math.floor(Es/Un);Gn[Ys]=Gn[Ys]||[],Gn[Ys].push(xs),Ys>this.maxColumn&&(this.maxColumn=Ys)}),On[bn].data=Gn}),this.list=On}),Ct(this,"componentDidMount",()=>{let Zo=document.querySelector(".shortcut-content").offsetWidth,Un=document.querySelector(".shortcut-column").offsetWidth*(this.maxColumn+1);Un<Zo&&(document.querySelector(".shortcut-box").style.width=Un+"px"),this.placeIndicator(this.state.activeIndex)}),Ct(this,"changeTab",Zo=>{let Un=Zo.target.dataset.index,{activeIndex:On}=this.state;if(Un!==On){this.setState({activeIndex:Un}),this.placeIndicator(Un);const{onTrack:us}=this.props,bn=Zo.target.dataset.track;us&&us(bn)}}),Ct(this,"placeIndicator",Zo=>{const Un=document.querySelector(".shortcut-panel"),On=Un&&Un.querySelector("[data-index='"+Zo+"']"),us=Un&&Un.querySelector(".indicator");!Un||!On||!us||requestAnimationFrame(()=>{const{left:bn}=Un.getBoundingClientRect(),{left:Gn}=On.getBoundingClientRect(),xs=On.offsetWidth,Es=us.offsetWidth,Ys=Gn-bn+xs/2-Es/2;Object.assign(us.style,{left:Ys+"px"})})}),this.formatData()}render(){const{activeIndex:Jo}=this.state,{changeTab:Zo,list:Un}=this,{onClose:On,style:us}=this.props,bn=Un[Jo].data;return(0,h.jsxs)(Ot,{className:"shortcut-panel",style:us,children:[(0,h.jsx)(dt,{}),(0,h.jsx)("div",{className:"close-icon",onClick:On,children:(0,h.jsx)(st.A,{name:"general/modal/times"})}),(0,h.jsxs)("header",{children:[Un.map((Gn,xs)=>(0,h.jsx)("a",{className:J()({"is-active":parseInt(Jo)===xs}),"data-index":xs,"data-track":Gn.title,onClick:Zo,children:Gn.title},Gn.label)),(0,h.jsx)("span",{className:"indicator"})]}),(0,h.jsx)("div",{className:"shortcut-content",children:(0,h.jsx)("div",{className:"shortcut-box",children:bn.map((Gn,xs)=>(0,h.jsx)("div",{className:J()("shortcut-column",{"has-border":xs!==bn.length-1||xs===0}),children:Gn.map((Es,Ys)=>(0,h.jsxs)("div",{className:"shortcut-item",children:[(0,h.jsx)("p",{children:Es.label}),(0,h.jsx)("p",{children:Es.shortcut})]},Ys))},xs))})})]})}}Ct(Io,"propTypes",{defaultIndex:Co().number,maxRows:Co().number,list:Co().array.isRequired,style:Co().object.isRequired,onClose:Co().func.isRequired,onTrack:Co().func}),Ct(Io,"defaultProps",{defaultIndex:0,maxRows:6,list:[],style:{},onClose:()=>null});const Lo=()=>[{label:"frequency",title:I18N.WorkspaceGuidePane.frequency,data:[{label:I18N.WorkspaceGuidePane.fast_copy,shortcut:Ut("alt+"+I18N.WorkspaceGuidePane.mouse_dray,"+")},{label:I18N.WorkspaceGuidePane.select_inner_elements,shortcut:Ut("mod+"+I18N.WorkspaceGuidePane.single_clike,"+")},{label:I18N.WorkspaceGuidePane.group,shortcut:Ut("mod+G")},{label:I18N.WorkspaceGuidePane.ungroup,shortcut:Ut("shift+mod+g")},{label:I18N.WorkspaceGuidePane.geometric_scaling,shortcut:Ut("shift+"+I18N.WorkspaceGuidePane.mouse_dray,"+")},{label:I18N.WorkspaceGuidePane.fast_moving,shortcut:Ut("shift+"+I18N.WorkspaceGuidePane.up_and_down,"+")},{label:I18N.WorkspaceGuidePane.move_canvas,shortcut:Ut("Space+"+I18N.WorkspaceGuidePane.mouse_dray,"+")},{label:I18N.WorkspaceGuidePane.zoom_canvas,shortcut:Ut(["mod+/-"+I18N.SettingPanel.or,"mod+"+I18N.WorkspaceGuidePane.wheel],"+")},{label:I18N.WorkspaceGuidePane.widget_panel,shortcut:Ut("1")},{label:I18N.WorkspaceGuidePane.bold_text,shortcut:Ut("mod+B")},{label:I18N.WorkspaceGuidePane.preview,shortcut:Ut("mod+P")}]},{label:"tool",title:I18N.WorkspaceGuidePane.tool,data:[{label:I18N.WorkspaceGuidePane.artboard,shortcut:Ut("A")},{label:I18N.WorkspaceGuidePane.text,shortcut:Ut("T")},{label:I18N.WorkspaceGuidePane.rounded_rect,shortcut:Ut("R")},{label:I18N.WorkspaceGuidePane.circle,shortcut:Ut("O")},{label:I18N.WorkspaceGuidePane.straight_line,shortcut:Ut("L")},{label:I18N.WorkspaceGuidePane.lr,shortcut:Ut("H")},{label:I18N.WorkspaceGuidePane.connect_line,shortcut:Ut("E")},{label:I18N.w.sticky,shortcut:Ut("N")},{label:I18N.w.annotate,shortcut:Ut("W")},{label:I18N.WorkspaceGuidePane.comment,shortcut:Ut("C")},{label:I18N.WorkspaceGuidePane.color_picker,shortcut:Ut("I")}]},{label:"edit",title:I18N.WorkspaceGuidePane.edit,data:[{label:I18N.WorkspaceGuidePane.save,shortcut:Ut("mod+S")},{label:I18N.WorkspaceGuidePane.delete,shortcut:Ut("Del/Backspace")},{label:I18N.WorkspaceGuidePane.undo,shortcut:Ut("mod+Z")},{label:I18N.WorkspaceGuidePane.redo,shortcut:Ut("shift+mod+Z")},{label:I18N.WorkspaceGuidePane.cut,shortcut:Ut("mod+X")},{label:I18N.WorkspaceGuidePane.copy+"/"+I18N.ContextMenu.copy_properties,shortcut:Ut("mod+C")},{label:I18N.WorkspaceGuidePane.fast_copy,shortcut:Ut("alt+"+I18N.WorkspaceGuidePane.mouse_dray,"+")},{label:I18N.WorkspaceGuidePane.duplicate,shortcut:Ut("mod+D")},{label:I18N.WorkspaceGuidePane.paste,shortcut:Ut("mod+V")},{label:I18N.WorkspaceGuidePane.p_to_cursor,shortcut:Ut("shift+mod+V")},{label:I18N.ContextMenu.paste_properties,shortcut:Ut("alt+mod+V")},{label:I18N.WorkspaceGuidePane.launch,shortcut:Ut("mod+P")},{label:I18N.ToolBar.find_replace,shortcut:Ut("mod+F")}]},{label:"selectOperation",title:I18N.WorkspaceGuidePane.selectOperation,data:[{label:I18N.WorkspaceGuidePane.multi_select,shortcut:Ut("shift+"+I18N.WorkspaceGuidePane.click,"+")},{label:I18N.WorkspaceGuidePane.select_part,shortcut:Ut("S+"+I18N.WorkspaceGuidePane.electorates,"+")},{label:I18N.WorkspaceGuidePane.select_all,shortcut:Ut("mod+A")},{label:I18N.WorkspaceGuidePane.select_inner_elements,shortcut:Ut("mod+"+I18N.WorkspaceGuidePane.single_clike,"+")},{label:I18N.ContextMenu.hide,shortcut:Ut("shift+mod+H")},{label:I18N.ContextMenu.lock_widget,shortcut:Ut("shift+mod+L")},{label:I18N.WorkspaceGuidePane.group,shortcut:Ut("mod+G")},{label:I18N.WorkspaceGuidePane.ungroup,shortcut:Ut("shift+mod+g")},{label:I18N.WorkspaceGuidePane.text_editor,shortcut:Ut("Enter")},{label:I18N.WorkspaceGuidePane.exit_editing,shortcut:Ut("mod+Enter")},{label:I18N.WorkspaceGuidePane.geometric_scaling,shortcut:Ut("shift+"+I18N.WorkspaceGuidePane.mouse_dray,"+")},{label:I18N.WorkspaceGuidePane.fast_moving,shortcut:Ut("shift+"+I18N.WorkspaceGuidePane.up_and_down,"+")},{label:I18N.WorkspaceGuidePane.hide_or_show_stroke,shortcut:Ut("shift+/")}]},{label:"text",title:I18N.WorkspaceGuidePane.text,data:[{label:I18N.WorkspaceGuidePane.bold,shortcut:Ut("mod+B")},{label:I18N.WorkspaceGuidePane.italic,shortcut:Ut("mod+ I")},{label:I18N.WorkspaceGuidePane.underline,shortcut:Ut("mod+U")},{label:I18N.WorkspaceGuidePane.strike_through,shortcut:Ut("shift+mod+S")},{label:I18N.WorkspaceGuidePane.add_fond_size,shortcut:Ut("shift+mod+ .")},{label:I18N.WorkspaceGuidePane.reduce_font_size,shortcut:Ut("shift+mod+ ,")}]},{label:"arrayControl",title:I18N.WorkspaceGuidePane.arrayControl,data:[{label:I18N.WorkspaceGuidePane.vtop_2,shortcut:Ut("alt+mod+T")},{label:I18N.WorkspaceGuidePane.vbottom_2,shortcut:Ut("alt+mod+B")},{label:I18N.WorkspaceGuidePane.hleft_2,shortcut:Ut("alt+mod+L")},{label:I18N.WorkspaceGuidePane.hright_2,shortcut:Ut("alt+mod+R")},{label:I18N.WorkspaceGuidePane.hcenter_2,shortcut:Ut("alt+mod+C")},{label:I18N.WorkspaceGuidePane.vcenter_2,shortcut:Ut("alt+mod+M")},{label:I18N.WorkspaceGuidePane.hdistribute,shortcut:Ut("alt+mod+H")},{label:I18N.WorkspaceGuidePane.vdistribute,shortcut:Ut("alt+mod+U")},{label:I18N.WorkspaceGuidePane.forward,shortcut:Ut("alt+mod+\u2191")},{label:I18N.WorkspaceGuidePane.backward,shortcut:Ut("alt+mod+\u2193")},{label:I18N.WorkspaceGuidePane.send_front_2,shortcut:Ut("shift+mod+\u2191")},{label:I18N.WorkspaceGuidePane.send_back_2,shortcut:Ut("shift+mod+\u2193")},{label:I18N.WorkspaceGuidePane.expand_all,shortcut:Ut("mod+;")},{label:I18N.WorkspaceGuidePane.shrink_all,shortcut:Ut("mod+'")}]},{label:"view",title:I18N.WorkspaceGuidePane.view,data:[{label:I18N.WorkspaceGuidePane.move_canvas,shortcut:Ut("Space+"+I18N.WorkspaceGuidePane.mouse_dray,"+")},{label:I18N.WorkspaceGuidePane.horizontalScroll,shortcut:Ut("shift+"+I18N.WorkspaceGuidePane.wheel,"+")},{label:I18N.WorkspaceGuidePane.zoom_canvas,shortcut:Ut(["mod+/-"+I18N.SettingPanel.or,"mod+"+I18N.WorkspaceGuidePane.wheel],"+")},{label:I18N.WorkspaceGuidePane.catalogue_panel,shortcut:Ut("alt+1")},{label:I18N.WorkspaceGuidePane.layer_panel,shortcut:Ut("alt+2")},{label:I18N.WorkspaceGuidePane.widget_panel,shortcut:Ut("1")},{label:I18N.WorkspaceGuidePane.icon_pannel,shortcut:Ut("2")},{label:I18N.WorkspaceGuidePane.image_panel,shortcut:Ut("3")},{label:I18N.WorkspaceGuidePane.page_panel,shortcut:Ut("4")},{label:I18N.WorkspaceGuidePane.master_panel,shortcut:Ut("5")},{label:I18N.WorkspaceGuidePane.hideLeftSidePanel,shortcut:Ut("mod+[")},{label:I18N.WorkspaceGuidePane.hideRightSidePanel,shortcut:Ut("mod+]")},{label:I18N.WorkspaceGuidePane.showOrHideAnnotatePanel,shortcut:Ut("alt+mod+A")}]}],Ao=new Map;function xt(io,Jo){if(Jo===void 0&&(Jo=""),!io)return;let Zo=Ao.get(io);if(Zo!==void 0)return Zo;const Un=io.split("+");if((0,xe.cX)()){const On=us=>us==="mod"?"\u2318":us==="alt"?"\u2325":us==="shift"?"\u21E7":us==="ctrl"?"\u2303":us==="backspace"?"\u232B":us==="del"?"Delete":us.charAt(0).toUpperCase()+us.slice(1);Zo=Un.map(On).join(Jo)}else{const On=us=>us==="mod"?"Ctrl":us.toLowerCase()==="alt"?"Alt":us.toLowerCase()==="shift"?"Shift":us.toLowerCase()==="ctrl"?"Ctrl":us==="backspace"?"Backspace":us==="del"?"Delete":us.toLowerCase()==="return"?"Enter":us.charAt(0).toUpperCase()+us.slice(1);Zo=Un.map(On).join("+")}return Ao.set(io,Zo),Zo}function Ut(io,Jo){if(Jo===void 0&&(Jo=""),!!io)if(Array.isArray(io)){const Zo=[];return io.forEach(Un=>{Zo.push(xt(Un,Jo))}),Zo.join("")}else return xt(io,Jo)}class Wo extends f.PureComponent{constructor(){super(...arguments),(0,x.A)(this,"close",()=>{const{dispatch:Jo}=this.props;Jo({type:"hide:showShortCutArtBoard"})})}render(){var Jo,Zo,Un,On;const Gn=document.body.clientHeight,xs=document.body.clientWidth,Es=(Jo=(Zo=document.querySelector("#left-slide-panel"))==null?void 0:Zo.getBoundingClientRect().width)!=null?Jo:0,Ys=(Un=(On=document.querySelector("#right-slide-panel"))==null?void 0:On.getBoundingClientRect().width)!=null?Un:0,lo={top:Gn-56-Math.min(Gn,244),left:25,width:xs-Es-Ys-25-20,height:Math.min(Gn-64,244),zIndex:107,pointerEvents:"auto"};return(0,h.jsx)(Io,{style:lo,maxRows:5,list:Lo(),onClose:this.close})}}var qo=e(88319);const sn=(0,b.Ay)(qo.A).withConfig({displayName:"styles__StyledListMenu",componentId:"sc-1eh6q20-0"})(["&.list-content{min-width:120px;margin-left:-105px;.action{height:24px;}}"]),Kn=b.Ay.div.withConfig({displayName:"styles__StyledTaskList",componentId:"sc-1eh6q20-1"})(['z-index:106;position:absolute;right:19px;bottom:64px;pointer-events:auto;.tack-list-container{width:190px;background-color:#fff;background-image:url("/mb-proto2/images/guide/noviceGuides2309/task_list_bg.png");background-repeat:no-repeat;background-size:100% auto;border-radius:4px;box-shadow:0 3px 6px rgb(0 0 0 / 2%),0 6px 16px rgb(0 0 0 / 2%),0 9px 28px rgb(0 0 0 / 9%);margin-bottom:12px;.header{width:100%;height:60px;padding:18px 16px;display:flex;align-items:center;justify-content:space-between;.title{font-size:14px;color:#333;font-weight:500;}.action{width:24px;height:24px;border-radius:4px;margin-bottom:12px;color:',";&:hover{background-color:rgba(22,132,252,0.15)}&.is-open{background-color:rgba(22,132,252,0.15)}.more-icon{cursor:pointer;width:24px;}}}.content{position:relative;padding-bottom:8px;.task-list{li.task-item{height:36px;color:#333333;font-size:12px;font-weight:400;cursor:pointer;position:relative;&:hover{background-color:#F1F8FF;}&.complete{color:#CCCCCC;&:hover{background-color:#F5F5F5;}.task-icon{background-color:#F7F7F7;color:#CCCCCC;}.check{color:#E5E5E5;}}.task-content{display:flex;align-items:center;padding:0 25px 0 16px;height:100%;}.task-icon{width:28px;height:28px;border-radius:50%;background-color:#F1F8FF;color:#1684FC;display:flex;align-items:center;justify-content:center;}.title{margin-left:9px;flex:1;}.check{color:#1684FC;}.task-img-wrap{position:absolute;left:-264px;top:-75px;width:260px;background-color:#ffffff;visibility:hidden;background-color:#1685FC;padding:10px;border-radius:10px;color:#FFFFFF;&.show{visibility:visible;}img.task-img{width:100%;height:100%;border-radius:8px;}.task-img-desc{line-height:18px;font-weight:500;font-size:12px;img{vertical-align:text-top;}}}}}}.bottom{width:100%;height:36px;padding:8px 20px;display:flex;align-items:center;justify-content:flex-start;background:linear-gradient(97deg,#FDEEFF -36.68%,#E8F7FF 66.4%);border-bottom-right-radius:4px;border-bottom-left-radius:4px;.gift-icon{width:20px;margin-right:4px;}.desc{font-size:12px;font-weight:400;line-height:12px;background:linear-gradient(77deg,#1E8AFF 25.47%,#F67EFF 108.44%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;}}}.gift{cursor:pointer;}.animate-gift{width:40px;height:60px;position:absolute;bottom:0px;right:-6px;overflow:hidden;.new-box{width:80px;position:absolute;left:-20px;}}.ani-gift{animation-duration:1s;animation-iteration-count:infinite;}.task-icon-btn{width:32px;height:32px;background-color:#1684fc;border-radius:50%;color:#fff;display:flex;align-items:center;justify-content:center;margin-left:auto;cursor:pointer;box-shadow:0 4px 6px rgba(0,96,185,0.100306);}.collapse-task-list{display:none;}"],io=>io.theme.color_text_L1);var ds=e(64983),_s=e(30108),Ls=e.n(_s),gs=e(63785),ns=e(85984),Wn=e(42627);const Do=(0,h.jsxs)("svg",{width:"16",height:"16",fill:"none",children:[(0,h.jsx)("path",{fill:"white",d:"M2.136 2.136a.75.75 0 0 1 1.061 0l10.667 10.667a.75.75 0 0 1-1.061 1.06L2.136 3.198a.75.75 0 0 1 0-1.06Z"}),(0,h.jsx)("path",{fill:"white",d:"M13.864 2.136a.75.75 0 0 1 0 1.061L3.197 13.864a.75.75 0 1 1-1.06-1.061L12.802 2.136a.75.75 0 0 1 1.06 0Z"})]});class Go extends f.PureComponent{constructor(){super(...arguments),(0,x.A)(this,"state",{activeGuide:null,isOpenActionsMenu:!1,canReceiveReward:!1,isAnimateGift:!0}),(0,x.A)(this,"setElementRef",Jo=>this.$element=Jo),(0,x.A)(this,"handleToggleTaskListData",()=>{const{dispatch:Jo,isCollapse:Zo}=this.props;Jo({type:"update:taskList:isCollapse",payload:{isCollapse:!Zo}}),Zo||this.handleToggleActionMenu(!1)}),(0,x.A)(this,"handleHideTaskList",()=>{const{dispatch:Jo}=this.props;this.handleToggleActionMenu(!1),Jo({type:"entry:hide:taskList"})}),(0,x.A)(this,"handleHover",Jo=>this.setState({activeGuide:Jo})),(0,x.A)(this,"handleToggleActionMenu",Jo=>this.setState({isOpenActionsMenu:Ls()(Jo)?Jo:!this.state.isOpenActionsMenu}))}async componentDidMount(){const{dispatch:Jo,currentOrg:Zo}=this.props;this.isHidden||(0,ns.BT)(Object.values(ds.Pr==null?void 0:ds.Pr.map(Gn=>Gn==null?void 0:Gn.imgUrl)));const{orgs:Un}=await(0,gs.F3)(),On=Un.find(Gn=>Gn.cid===(Zo==null?void 0:Zo.cid))||Un[Un.length-1],{cid:us,is_ws_rewarded:bn}=On||{cid:"",is_ws_rewarded:!0};this.setState({canReceiveReward:us&&!bn}),Jo({type:"entry:initial:guide:task"})}componentDidUpdate(Jo){Jo.isCollapse!==this.props.isCollapse&&this.state.isAnimateGift&&this.setState({isAnimateGift:!1})}render(){const{isCollapse:Jo,isHide:Zo,completeList:Un,isComplete:On,sourceUpperCid:us,sceneTag:bn=""}=this.props,{activeGuide:Gn,isOpenActionsMenu:xs,canReceiveReward:Es,isAnimateGift:Ys}=this.state,lo=MB.commonGuideHelper.checkGuideHasShown(D.c.GUIDE_AWARDED),Ko=!!us,ro=["MP","PC","DS"].includes((0,Wn.VC)(bn))&&!Un.includes(D.c.GUIDE_NOVICE_2309)&&!Ko;return this.isHidden=Zo||On||lo||ro,this.isHidden?null:(0,h.jsxs)(Kn,{children:[(0,h.jsxs)("div",{className:J()("tack-list-container",{"collapse-task-list":Jo}),children:[(0,h.jsxs)("div",{className:"header",children:[(0,h.jsx)("span",{className:"title",children:I18N.CommonGuides.novice_tasks}),(0,h.jsx)("div",{className:J()("action",{active:xs}),onClick:this.handleToggleActionMenu,ref:this.setElementRef,children:(0,h.jsx)(u.C,{name:"common/more",className:"more-icon"})}),xs&&(0,h.jsx)(h.Fragment,{children:(0,h.jsx)(sn,{targetNode:this.$element,direction:"bottom",distance:4,menuItems:[{isShow:!0,label:I18N.CommonGuides.hide_tasks,onClick:this.handleHideTaskList}]})})]}),(0,h.jsx)("div",{className:"content",children:(0,h.jsx)("ul",{className:"task-list",children:ds.Pr.map((Yt,Be)=>{const Wt=Un.findIndex(Xo=>Xo===Yt.guideKey)!==-1,At=Gn===Yt.guideKey,Xe="v8guide_task_step"+(Be+1),Vt=I18N.CommonGuides[Xe];return(0,h.jsxs)("li",{className:J()("task-item",{complete:Wt}),children:[(0,h.jsxs)("div",{className:"task-content",onMouseEnter:()=>this.handleHover(Yt.guideKey),onMouseLeave:()=>this.handleHover(null),children:[(0,h.jsx)("div",{className:"task-icon",children:(0,h.jsx)(u.C,{name:Yt.icon.name,style:{width:Yt.icon.width,height:Yt.icon.height}})}),(0,h.jsx)("span",{className:"title",children:I18N.CommonGuides[Yt.label]}),Wt&&(0,h.jsx)(u.C,{className:"check",name:"art_board/guide/task/check"})]}),(0,h.jsxs)("div",{className:J()("task-img-wrap",{show:At}),children:[(0,h.jsx)("img",{src:Yt.imgUrl,alt:I18N.CommonGuides.guidance_image,className:"task-img"}),(0,h.jsx)("div",{className:"task-img-desc",dangerouslySetInnerHTML:{__html:Vt}})]})]},Yt.guideKey)})})}),(!ENV.IS_WONDER_SHARE||ENV.IS_WONDER_SHARE&&Es)&&(0,h.jsxs)("div",{className:"bottom",children:[(0,h.jsx)(u.C,{name:"art_board/guide/task/gift",className:"gift-icon",isColorPure:!0}),(0,h.jsx)("span",{className:"desc",children:I18N.CommonGuides.finish_tasks_to_get_rewards})]})]}),Jo?Ys?(0,h.jsx)("div",{className:"animate-gift",children:(0,h.jsx)("img",{className:"gift new-box",src:"/mb-proto2/images/guide-gift.gif",onClick:this.handleToggleTaskListData})}):(0,h.jsx)(u.C,{name:"art_board/guide/task/gift/new",className:"tada gift",onClick:this.handleToggleTaskListData,size:32,isColorPure:!0}):(0,h.jsx)("div",{className:"task-icon-btn",onClick:this.handleToggleTaskListData,children:Do})]})}}const an=(0,m.Mz)([g.Rm,g.zv,g.SD,g.jj,g.wA,g.PL],(io,Jo,Zo,Un,On,us)=>{const{source_upper_cid:bn,scene_tag:Gn}=us;return{isHide:Zo,isCollapse:io,completeList:Jo,isComplete:Un,currentOrg:On,sourceUpperCid:bn,sceneTag:Gn}}),Mo=(0,o.Ng)(io=>an(io))(Go),Cn=io=>io.watermark.mdWMMktList,Tn=io=>io.watermark.mtWMMktList,cn=io=>io.watermark.noWMMktList,bs=io=>io.watermark.isShowUpMktTip,Vn=(0,m.Mz)([Cn,Tn,cn],(io,Jo,Zo)=>({mdWMMktList:io,mtWMMktList:Jo,noWMMktList:Zo}));var ti=e(54909);const oi=b.Ay.div.withConfig({displayName:"styles__StyledMktWMTip",componentId:"sc-1uvm0mq-0"})(["z-index:106;position:absolute;right:65px;bottom:16px;pointer-events:auto;.up-mkt-btn{width:110px;height:36px;margin-bottom:2px;border-radius:8px;display:flex;justify-content:center;background:#415058;color:#FFDCA9;font-size:14px;font-weight:600;line-height:36px;.icon{width:16px;height:16px;margin:10px 6px 10px 0;}}.up-mkt-tip{width:280px;height:349px;border-radius:10px;box-shadow:",";background:url('/mb-proto2/images/mktWM/mkt_wm_tip_bg.png') center center / 280px 349px no-repeat;animation:expandFromBottomRight 0.25s ease-in-out;transform-origin:bottom right;.header{height:63px;color:#fff;font-size:17px;font-weight:500;line-height:20px;padding-top:27px;padding-left:20px;}.content{height:230px;.title{height:50px;padding-top:33px;padding-left:32px;color:#333333;font-size:12px;font-weight:500;line-height:17px;}.desc{height:180px;padding:34px 0 34px 66px;.desc-item{height:28px;color:#333333;font-size:12px;font-weight:500;line-height:28px;}}}.footer{height:64px;padding:0 20px 16px 20px;.btn{width:240px;height:40px;border-radius:8px;display:flex;justify-content:center;background-color:#415058;color:#FFDCA9;font-size:14px;font-weight:600;line-height:40px;.icon{width:18px;height:18px;margin:11px 6px 11px 0;}&:hover{background-color:#313C42;}}}.diamond{width:97px;height:91px;background:url('/mb-proto2/images/mktWM/mkt_wm_tip_dm.png') center center / 97px 91px no-repeat;position:absolute;top:8px;right:-19px;}}@keyframes expandFromBottomRight{from{transform:scale(0.5);}to{transform:scale(1);}}"],ti.$.shadow_l.value_light);var Gt=e(63508),Rs=e(64598),Xs=e(15915);const di=io=>{const{mdMktList:Jo,mtMktlist:Zo,isShowUpMktTip:Un,currentUser:On}=io,us=(0,o.wA)(),bn=!!Jo.size,Gn=!!Zo.size,{isSoloMdMember:xs}=(0,Gt.s)(On,MB.currentOrg),Es=bn||Gn,[Ys,lo]=(0,f.useState)(!0),[Ko,eo]=(0,f.useState)(!1);(0,f.useEffect)(()=>{if(Un){lo(!1),eo(!0),us({type:"reducer:watermark:update:is-show-up-mkt-tip",payload:!1});const Xe=setTimeout(()=>{lo(!0),eo(!1),clearTimeout(Xe)},8*1e3)}},[Un]);const ro=()=>{const Xe=!!MB.currentOrg,Vt={mode:"mat",payEntrance:"\u7F16\u8F91\u533A-v8-"+(Xe?"\u56E2\u961F":"\u4E2A\u4EBA")+"-\u4ED8\u8D39\u7D20\u6750\u8BD5\u7528-\u53F3\u4E0B\u89D2-"+(xs?"\u5347\u7EA7\u7D20\u6750\u4F1A\u5458":"\u5347\u7EA7\u53CC\u4F1A\u5458"),checkoutPlace:"workspace_v8_"+(Xe?"org":"solo")+"_watermark_bottom-right_"+(xs?"template":"vip-template"),checkoutArea:"proto"};MB.global.popupHelper.chargeAsync({...Vt}),(0,Rs._)({click_button:"\u7F16\u8F91\u533A\u53F3\u4E0B\u89D2-"+(xs?"\u5347\u7EA7\u7D20\u6750\u4F1A\u5458":"\u5347\u7EA7\u53CC\u4F1A\u5458")})},Yt=()=>{lo(!1),!Ko&&(0,Rs.f)({exposure_reason:"\u7F16\u8F91\u533A\u53F3\u4E0B\u89D2\u63D0\u793A"})},Be=()=>{lo(!0)},Wt=()=>(0,h.jsxs)("div",{className:"up-mkt-btn",onMouseEnter:Yt,children:[(0,h.jsx)(u.C,{className:"upgrade-icon",name:"common/watermark/upgrade-"+(xs?"mt":"md")}),I18N.WaterMark.mkt.remove_wm]}),At=()=>(0,h.jsxs)("div",{className:"up-mkt-tip",onMouseLeave:Be,children:[(0,h.jsx)("div",{className:"header",children:I18N.WaterMark.mkt.lb_tip.content_1}),(0,h.jsxs)("div",{className:"content",children:[(0,h.jsx)("div",{className:"title",children:I18N.WaterMark.mkt.lb_tip.content_2}),(0,h.jsxs)("div",{className:"desc",children:[(0,h.jsx)("div",{className:"desc-item",children:I18N.WaterMark.mkt.lb_tip.content_3}),(0,h.jsx)("div",{className:"desc-item",children:xs?I18N.WaterMark.mkt.lb_tip.content_4_1:I18N.WaterMark.mkt.lb_tip.content_4_2}),(0,h.jsx)("div",{className:"desc-item",children:xs?I18N.WaterMark.mkt.lb_tip.content_5_1:I18N.WaterMark.mkt.lb_tip.content_5_2}),(0,h.jsx)("div",{className:"desc-item",children:xs?I18N.WaterMark.mkt.lb_tip.content_5_2:I18N.WaterMark.mkt.lb_tip.content_6})]})]}),(0,h.jsx)("div",{className:"footer",children:(0,h.jsxs)("div",{className:"btn",onClick:ro,children:[(0,h.jsx)(u.C,{className:"upgrade-icon",name:"common/watermark/upgrade-"+(xs?"mt":"md")}),xs?I18N.WaterMark.mkt.upgrade_mkt:I18N.WaterMark.mkt.upgrade_two]})}),(0,h.jsx)("div",{className:"diamond"})]});return!(0,Xs._5)()||!Es?null:(0,h.jsx)(oi,{children:Ko||!Ys?At():Wt()})},vs=(0,m.Mz)([Cn,Tn,bs,g.HW],(io,Jo,Zo,Un)=>({mdMktList:io,mtMktlist:Jo,isShowUpMktTip:Zo,currentUser:Un})),ei=(0,o.Ng)(io=>vs(io))(di),Si=io=>{let{showShortCutArtBoard:Jo,isShowNps:Zo,currentUser:Un,theme:On,dispatch:us,onlyView:bn}=io;const Gn=!ENV.IS_ON_PREMISES&&!bn&&Un;return(0,h.jsxs)(h.Fragment,{children:[Gn&&(0,h.jsx)(Mo,{}),!ENV.IS_ON_PREMISES&&(0,h.jsx)(it,{}),Jo&&(0,h.jsx)(Wo,{dispatch:us}),!bn&&(0,h.jsx)(ei,{}),(0,h.jsx)(ce.A,{})]})};var Gs=e(98386),Vs=e(50881),ps=e(63555),kn=e(40684),zn=e(67531);class hs extends f.PureComponent{constructor(){super(...arguments),(0,x.A)(this,"handleZoomIn",()=>{this.props.dispatch({type:"entry:design:zoom:in"})}),(0,x.A)(this,"handleZoomOut",()=>{this.props.dispatch({type:"entry:design:zoom:out"})}),(0,x.A)(this,"handleZoomInitialScale",Jo=>{Jo.stopPropagation(),Jo.preventDefault();const{dispatch:Zo}=this.props;Zo({type:"entry:zoom:fit:scale:offset"})}),(0,x.A)(this,"handleZoomSpecifiedScale",Jo=>{const Zo=Number(Jo);this.props.dispatch({type:"entry:set:scale",payload:{scale:Zo}})}),(0,x.A)(this,"handleZoomSelection",Jo=>{Jo.stopPropagation(),Jo.preventDefault(),this.props.dispatch({type:"entry:design:zoom:selection"})}),(0,x.A)(this,"handleToggleFullScreenMode",()=>this.props.dispatch({type:"entry:toolbar:toggle:fullScreen"}))}render(){const{scale:Jo,screenSelection:Zo,selectionsCanvas:Un,isEmbedV2Preview:On,isCommunityComboPreview:us,viewModeSwitchable:bn,dispatch:Gn}=this.props;return(0,h.jsxs)(h.Fragment,{children:[bn&&(0,h.jsx)(zn.D,{size:"compact",mode:"read_only",isShowInspect:!1}),(0,h.jsx)(Vs.j,{isReadOnly:!0,scale:Jo,isCommunityPreview:!0,isEmbedV2Preview:On,isCommunityComboPreview:us,handleZoomIn:this.handleZoomIn,handleZoomOut:this.handleZoomOut,handleZoomInitialScale:this.handleZoomInitialScale,handleZoomSpecifiedScale:this.handleZoomSpecifiedScale,handleZoomSelection:this.handleZoomSelection,handleToggleFullScreenMode:this.handleToggleFullScreenMode,dispatch:Gn})]})}}const Ss=(0,m.Mz)([g.X_,Gs.Hs,S.QA,g.PL],(io,Jo,Zo,Un)=>{let{category:On}=Un;const us=Zo.filter(xs=>xs.type===ps.x.Canvas),bn=On===kn.t_,Gn=On!==kn.t_&&On!==kn.Gd;return{scale:io,screenSelection:Jo,selectionsCanvas:us,isCommunityComboPreview:bn,viewModeSwitchable:Gn}}),fi=(0,o.Ng)(io=>Ss(io))(hs);var ri=e(17534),Li=e(98040),ji=e(59742),_t=e(60185),Aa=e(14116),Ki=e(84780);const bi=b.Ay.div.withConfig({displayName:"styles__StyledBasketEditorControl",componentId:"sc-1a2l41f-0"})(["pointer-events:auto;position:absolute;display:flex;z-index:5;right:14px;top:","px;width:calc(100% - ","px);height:36px;justify-content:space-between;align-items:center;background-color:",";border-radius:4px;overflow:hidden;padding-right:3px;box-shadow:0 2px 10px rgba(0,0,0,0.1);.left-content,.right-content{display:flex;align-items:center;}.left-content{flex:1;max-width:calc(100% - 238px - 40px);overflow:hidden;.quit-container{display:flex;align-items:center;cursor:pointer;}.icon-box{width:24px;height:24px;display:flex;align-items:center;justify-content:center;&.quit{width:30px;height:30px;margin:0 4px 0 3px;color:",";.svg-icon{width:30px;height:30px;}&:hover{background-color:",";border-radius:4px;}}&.arrow{color:",";.svg-icon{transform:rotate(180deg);}}}}.ctrl-btn-wrapper{display:flex;justify-content:center;align-items:center;width:34px;height:28px;cursor:pointer;border-radius:4px;color:",";&:last-child{margin-right:0;}.svg-icon.state{width:24px;height:24px;}&:hover,&.active{background-color:",";}.icon{width:34px;height:28px;}}.divide{height:20px;width:1px;background-color:",";margin:0 10px;}"],io=>14+(io.isShowRuler?18:0),io=>2*14+(io.isShowRuler?18:0),io=>io.theme.color_bg_white,io=>io.theme.color_text_L1,io=>io.theme.color_btn_secondary_active,io=>io.theme.color_text_L1,io=>io.theme.color_text_L1,io=>io.theme.color_btn_secondary_active,io=>io.theme.color_bg_border_02),sa=(0,b.AH)(["display:flex;flex:1;align-items:center;cursor:pointer;position:relative;height:32px;padding-left:8px;padding-right:4px;color:",";font-size:12px;max-width:200px;white-space:nowrap;.state-icon{display:flex;margin-right:2px;.svg-icon{width:20px;height:20px;}}"],io=>io.theme.color_content_text_item_state),Zi=b.Ay.div.withConfig({displayName:"styles__StyledStatePanel",componentId:"sc-1a2l41f-1"})(["position:fixed;width:240px;background-color:",";color:",";box-shadow:4px 12px 40px rgba(39,54,78,0.1),0 2px 10px rgba(39,54,78,0.08);border-radius:4px;border:1px solid ",";z-index:110;pointer-events:auto;header{height:40px;background-color:",";display:flex;justify-content:space-between;align-items:center;padding:0 16px;cursor:move;border-radius:4px 4px 0;.title{font-weight:500;}.icon{color:",";width:18px;height:18px;&:hover{color:",";}}}#mb-state-list{position:relative;}.state-list{display:flex;flex-direction:column;max-height:320px;width:100%;padding:8px 0;overflow-x:hidden;.list-index{font-weight:500;flex-shrink:0;height:32px;width:30px;line-height:32px;text-align:center;color:",";padding-left:5px;}.state-list-box{display:flex;align-items:center;cursor:pointer;&:hover{background-color:",";}&.active{background-color:",";color:#333333;.list-index{font-weight:500;}}.state-list-item{",";.invisible{width:20px;height:20px;margin-right:6px;color:",";}}}}"],io=>io.theme.color_bg_white,io=>io.theme.color_title_text_state,io=>io.theme.color_border_state,io=>io.theme.color_header_background_state,io=>io.theme.color_text_L2,io=>io.theme.color_text_L1,io=>io.theme.color_content_text_item_state,io=>io.theme.color_content_background_item_state_hover,io=>io.theme.color_content_background_item_state_active,sa,ti.f.color_text_L2.value_light),Fa=(0,b.DU)([".dragging-item{.state-list-item{","}}"],sa),to=(0,b.DU)([".DesignDropdownMenuBase{.basket-path-list{.content{padding:8px 0;}}}"]),Qt=b.Ay.ul.withConfig({displayName:"styles__StyledBasketPathList",componentId:"sc-1a2l41f-2"})(["display:flex;flex-direction:column;max-width:240px;align-items:center;cursor:pointer;font-size:12px;font-weight:400;width:auto;padding:8px;background-color:",";box-shadow:",";border-radius:8px;color:",";border:1px solid ",";li{display:flex;align-items:center;width:100%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;padding-left:10px;padding-right:12px;border-radius:4px;height:24px;svg.svg-icon{width:20px;height:20px;margin-right:4px;}& > .Ellipsis{flex:1;}&:not(.is-disabled):hover{background-color:",";}}"],io=>io.theme.color_bg_white,io=>io.theme.shadow_m,io=>io.theme.color_text_L0,io=>io.theme.color_bg_border_01,io=>io.theme.color_btn_secondary_hover),Sn=b.Ay.div.withConfig({displayName:"styles__StyledBasketPathBreadCrumb",componentId:"sc-1a2l41f-3"})(["display:flex;flex:1 1 0%;min-width:0;align-items:center;.breadcrumb-item{white-space:nowrap;color:",";cursor:pointer;font-size:12px;line-height:28px;flex-shrink:100000;min-width:24px;&.page{max-width:84px;}&.ellipsis{min-width:fit-content;}div.path-name-container{display:flex;span{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;}}&.active{color:",";font-weight:500;}&:hover{color:",";}&:not(:first-child):last-child{flex-shrink:1;max-width:100%;min-width:70px;text-overflow:ellipsis;overflow:hidden;}}.breadcrumb-separator{width:24px;flex-shrink:0;height:24px;display:flex;align-items:center;justify-content:center;color:",";.svg-icon{transform:rotate(180deg);}}"],io=>io.theme.color_text_L2,io=>io.theme.color_text_L1,io=>io.theme.color_text_L1,io=>io.theme.color_text_L1);var Vo=e(77242),ho=e(88223);const Uo=io=>{const Jo=document.querySelector("#mb-state-list-container"),Zo=document.querySelector("#mb-state-list"),Un=Array.from(Zo.querySelectorAll(".state-list-item")),On=Zo.getBoundingClientRect(),us=Jo.getBoundingClientRect(),bn=[],Gn={},xs={},Es={},Ys={};return Un.forEach((lo,Ko)=>{const{cid:eo}=lo.dataset,ro=lo.getBoundingClientRect();Gn[eo]=Es[eo]=ro;const Yt=(0,ho.yB)(lo);xs[eo]=Yt;const{left:Be,top:Wt,width:At,height:Xe}=ro,Vt=Be-On.left,Xo=Wt-On.top,rn=Vt+At,Ps=Xo+Xe,Os={top:Xo,left:Yt.left-On.left,width:At,height:Xe};if(Ys[eo]={contentRect:Os,rect:Os,treeRect:Os},eo===io.key){bn.push({cid:eo,type:null,min:{x:Vt,y:Xo},max:{x:rn,y:Ps},isValid:!1,parentCid:null});return}bn.push({cid:eo,type:"prevSibling",min:{x:Vt,y:Xo},max:{x:rn,y:Xo+Xe/2},isValid:!0,parentCid:null}),bn.push({cid:eo,type:"nextSibling",min:{x:Vt,y:Xo+Xe/2},max:{x:rn,y:Ps},isValid:!0,parentCid:null})}),{matchDataList:bn,containerRect:us,rectQueryMap:Ys}},pn=io=>{let{cid:Jo,type:Zo,screenState:Un,refRBPageKey:On}=io;const bn=sdkStore.getSubHotItemList(On).filter(Es=>{let{hotAttr:{type:Ys}}=Es;return Ys===ps.x.Canvas}).sort((Es,Ys)=>Es.hotAttr.order-Ys.hotAttr.order).filter(Es=>Es.key!==Un.key),Gn=bn.findIndex(Es=>Es.key===Jo),xs=Zo==="prevSibling"?Gn:Zo==="nextSibling"?Gn+1:"error";bn.splice(xs,0,Un),bn.forEach((Es,Ys)=>{Es.hotAttr.order!==Ys+1&&sdkStore.updateHotAttrKV(Es.key,"order",Ys+1)})},ys=io=>sdkStore.getSubHotItemList(io).filter(Jo=>{let{hotAttr:{type:Zo}}=Jo;return Zo===ps.x.Canvas}).sort((Jo,Zo)=>Jo.hotAttr.order-Zo.hotAttr.order);class Dn extends f.PureComponent{constructor(Jo){super(Jo),(0,x.A)(this,"portal",document.createElement("div")),(0,x.A)(this,"setElementRef",Zo=>this.$item=Zo),(0,x.A)(this,"handleUpdateState",()=>this.setState({innerHeight:window.innerHeight,innerWidth:window.innerWidth})),(0,x.A)(this,"handleWheel",Zo=>Zo.preventDefault()),(0,x.A)(this,"handleMove",(Zo,Un)=>{this.props.dispatch(r.GO.updateBasketStatePanelPosition({left:Zo,top:Un}))}),(0,x.A)(this,"handleClose",()=>{this.props.onClose(),document.removeChild(this.portal)}),(0,x.A)(this,"getContainerElement",()=>document.getElementById("mb-state-list-container")),(0,x.A)(this,"handleMouseDown",(Zo,Un,On)=>{Zo.stopPropagation();const{top:us,left:bn}=On.getBoundingClientRect(),Gn=Zo.clientX-bn,xs=Zo.clientY-us,Es={screenState:Un,$element:On,offsetX:Gn,offsetY:xs,...Uo(Un)};this.setState({dragAndDropState:Es})}),(0,x.A)(this,"handleDropState",Zo=>{let{cid:Un,type:On,isValid:us}=Zo;const{dragAndDropState:{screenState:bn}}=this.state;if(this.setState({dragAndDropState:null}),!us)return;const{refRBPageKey:Gn,dispatch:xs}=this.props;pn({cid:Un,type:On,screenState:bn,refRBPageKey:Gn}),this.setState({stateList:ys(Gn)}),xs({type:"entry:layout:basket-canvas"})}),(0,x.A)(this,"handleScroll",()=>{}),(0,x.A)(this,"handleNameChange",(Zo,Un)=>{if(Un==="")return;const{dispatch:On}=this.props;On({type:"entry:widget:change",payload:{flatChgList:[{key:Zo.key,hotAttr:{name:Un}}],shouldBreakLayerUICache:!0}}),this.setState({stateList:ys(this.props.refRBPageKey)})}),this.state={dragAndDropState:null,stateList:ys(Jo.refRBPageKey),innerHeight:window.innerHeight,innerWidth:window.innerWidth}}componentDidUpdate(Jo,Zo,Un){JSON.stringify(ys(this.props.refRBPageKey))!==JSON.stringify(this.state.stateList)&&this.setState({stateList:ys(this.props.refRBPageKey)})}static getDerivedStateFromProps(Jo,Zo){let{stateList:Un}=Zo;return sdkStore.getHotItem(Jo.refRBPageKey).sub.length!==Un.length?{stateList:ys(Jo.refRBPageKey)}:null}componentDidMount(){document.body.appendChild(this.portal),this.portal.addEventListener("wheel",this.handleWheel,{passive:!1}),window.addEventListener("resize",this.handleUpdateState)}componentWillUnmount(){document.body.removeChild(this.portal),this.portal.removeEventListener("wheel",this.handleWheel,{passive:!1}),window.removeEventListener("resize",this.handleUpdateState)}render(){const{isOpen:Jo,statePanelPosition:Zo,onClose:Un,newSelections:On,dispatch:us}=this.props;if(!Jo)return null;const{dragAndDropState:bn,stateList:Gn,innerWidth:xs,innerHeight:Es}=this.state,{$element:Ys,matchDataList:lo,containerRect:Ko,rectQueryMap:eo,offsetX:ro,offsetY:Yt}=bn||{},Be=Math.max(Math.min(Zo==null?void 0:Zo.left,xs-240),0),Wt=Math.max(Math.min(Zo==null?void 0:Zo.top,Es-360),0);return(0,h.jsx)(h.Fragment,{children:(0,_t.createPortal)((0,h.jsx)(Ki.A,{position:{left:Be,top:Wt},onMove:this.handleMove,children:(0,h.jsxs)(Zi,{className:"basket-state-panel-container","data-is-widget-insertable":!1,children:[(0,h.jsxs)("header",{type:"draggable",children:[(0,h.jsx)("span",{className:"title",children:I18N.builtin.state}),(0,h.jsx)("a",{className:"icon",onClick:Un,children:(0,h.jsx)(u.C,{className:"times-icon",name:"general/times"})})]}),(0,h.jsx)("div",{id:"mb-state-list-container",className:"state-list",onScroll:this.handleScroll,children:(0,h.jsx)("div",{id:"mb-state-list-indicator-container",className:"mb-state-list-indicator-container",children:(0,h.jsxs)("div",{id:"mb-state-list",children:[Gn.map(At=>(0,h.jsxs)("div",{"data-type":"state",className:J()("state-list-box","interactive-target-hotspot",{active:At.key===On[0]}),"data-cid":At.key,"data-interactive-target-key":At.key,"data-interactive-target-type":_.E.canvasStateList,children:[(0,h.jsx)("span",{className:"list-index",children:At.hotAttr.order}),(0,h.jsx)(Hs,{item:At,onMouseDown:this.handleMouseDown,onChangeName:this.handleNameChange,dispatch:us})]},At.key)),bn&&(0,h.jsx)(Vo.A,{draggingElement:Ys,getContainerElement:this.getContainerElement,matchDataList:lo,containerRect:Ko,rectQueryMap:eo,offsetX:ro,offsetY:Yt,onDrop:this.handleDropState})]})})}),(0,h.jsx)(Fa,{})]})}),document.querySelector(".statePanelRoot"))})}}class Hs extends f.PureComponent{constructor(){super(...arguments),(0,x.A)(this,"setElementRef",Jo=>this.$item=Jo),(0,x.A)(this,"state",{isEditing:!1}),(0,x.A)(this,"handleMouseDown",Jo=>{const{item:Zo}=this.props;this.props.onMouseDown(Jo,Zo,this.$item)}),(0,x.A)(this,"handleClick",()=>{this.props.dispatch(r.GO.select([this.props.item.key])),this.props.dispatch({type:"entry:design:zoom:selection",payload:{initScale:!0}})}),(0,x.A)(this,"handleEdit",()=>{this.setState({isEditing:!0})}),(0,x.A)(this,"handleNameChange",(Jo,Zo)=>{this.setState({isEditing:!1}),Jo!==""&&this.props.onChangeName(this.props.item,Jo)}),(0,x.A)(this,"handleInvisibleClick",(Jo,Zo)=>{Jo.stopPropagation(),this.props.dispatch({type:"entry:toggle:visible",payload:{widget:Zo}})})}render(){const{item:Jo}=this.props,{isEditing:Zo}=this.state;return(0,h.jsxs)("div",{"data-cid":Jo.key,ref:this.setElementRef,className:"state-list-item",onMouseDown:this.handleMouseDown,onClick:this.handleClick,onDoubleClick:this.handleEdit,children:[(0,h.jsx)(Aa.A,{isEditing:Zo,className:"editable-span",value:(0,ho.wh)(Jo.hotAttr.name),onConfirm:this.handleNameChange},Jo.hotAttr.name),!Jo.hotAttr.isVisible&&(0,h.jsx)(u.C,{className:"invisible",name:"common/invisible",onClick:Un=>this.handleInvisibleClick(Un,Jo)})]})}}var Qn=e(22379),Gi=e(8066),oa=e(44864),ta=function(io){return io[io.mainPage=0]="mainPage",io[io.mubanRefPage=1]="mubanRefPage",io[io.danli=2]="danli",io}(ta||{});const Sa=io=>{const Jo=sdkStore.getHotItem(io);if(!Jo)return null;const{hotAttr:{name:Zo,basket:Un},sup:On}=Jo,us=Un==="bDanli"?ta.danli:On===oa.fW?ta.mubanRefPage:ta.mainPage;return{key:io,name:Zo,type:us}},La=io=>{const Jo=[];if((0,ji.OO)(io)){const Zo=(0,ji.QL)(io);for(let Un=0;Un<Zo.length;Un++)Un===0?Jo.push(Sa(Zo[Un])):Jo.push(Sa((0,ji.iK)(Zo.slice(0,Un),Zo[Un])))}else Jo.push(Sa(io));return Jo.filter(Zo=>!!Zo)};class ya extends f.PureComponent{constructor(){super(...arguments),(0,x.A)(this,"setComponentRef",Jo=>this.dropdown=Jo)}render(){const{basketPathList:Jo,onBasketPathClick:Zo}=this.props;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(Gi.A,{ref:this.setComponentRef,shouldPreventScrollingPropagation:!0,isDisabled:!1,menuX:"left",isPlaceholder:!1,className:"",renderOpener:(0,h.jsx)("div",{className:"breadcrumb-item ellipsis",children:"..."}),menuClassName:"basket-path-list",renderMenu:(0,h.jsx)(Qt,{children:Jo.map(Un=>(0,h.jsxs)("li",{onClick:()=>Zo(Un),children:[(0,h.jsx)(u.C,{name:"left_panel/dynamic/new"}),(0,h.jsx)(Qn.A,{children:Un.name})]},Un.key))})}),(0,h.jsx)(to,{})]})}}const Ja=io=>{let{currentPageKey:Jo,editingBasketKey:Zo,editingBasketRefPage:Un,dispatch:On}=io;const us=Jo?[Sa(Jo)]:[];Un&&us.push(Sa(Un)),Zo&&us.push(...La(Zo));const bn=us.slice(1,-1).at(-1),Gn=us.slice(1,-1).slice(0,-1),xs=Es=>{const{type:Ys,key:lo}=Es;switch(Ys){case ta.mainPage:{On({type:"entry:exit:edit:basket"});break}case ta.mubanRefPage:{const Ko=sdkStore.getHotItem(lo);On({type:"entry:edit:basket:source:muban",payload:{item:{...Ko,...Ko.hotAttr}}});break}case ta.danli:{On({type:"entry:edit:bDanli",payload:{bDanliKey:lo}});break}default:break}};return(0,h.jsxs)(Sn,{hasEllipsis:Gn.length>0,hasSecondLastPath:!!bn,children:[Zo&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"breadcrumb-item page",onClick:()=>xs(us[0]),children:(0,h.jsx)("div",{className:"path-name-container",children:(0,h.jsx)("span",{children:us[0].name})})}),(0,h.jsx)("div",{className:"breadcrumb-separator",children:(0,h.jsx)(u.C,{name:"common/back"})})]}),Gn.length>0&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(ya,{basketPathList:Gn,onBasketPathClick:xs}),(0,h.jsx)("div",{className:"breadcrumb-separator",children:(0,h.jsx)(u.C,{name:"common/back"})})]}),bn&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(V.A,{content:bn.name,distance:5,direction:"down",children:(0,h.jsx)("div",{className:"breadcrumb-item",onClick:()=>xs(bn),children:(0,h.jsx)("div",{className:"path-name-container",children:(0,h.jsx)("span",{children:bn.name})})})}),(0,h.jsx)("div",{className:"breadcrumb-separator",children:(0,h.jsx)(u.C,{name:"common/back"})})]}),(0,h.jsx)(V.A,{content:us.at(-1).name,distance:5,direction:"down",children:(0,h.jsx)("div",{className:"breadcrumb-item active",onClick:()=>xs(us.at(-1)),children:(0,h.jsx)("div",{className:"path-name-container",children:(0,h.jsx)("span",{children:us.at(-1).name})})})})]})},No=(0,m.Mz)([T.e2],io=>({basketPathCacheTag:io})),ct=(0,o.Ng)(io=>No(io))(Ja);var Mt=e(61535),ht=e(37051),oo=e(78013),uo=e(90968),So=e(54386),zo=e(11271);const en=(0,m.Mz)([k.jI,k.bt,k.jj,S.p$,Gs.p$,k.jx,g.$S,A.qT,k.pH,k.rg,k.uu,Mt.UV,k.PR,S.x$,k.YL],(io,Jo,Zo,Un,On,us,bn,Gn,xs,Es,Ys,lo,Ko,eo,ro)=>{const Yt=us===r.qi.OnlyView,Be=bn&&Gn&&!xs&&!Es&&!Ys;return{statePanelPosition:Zo,editingBasketKey:io,editingBasketRefPage:Jo,newSelections:Un,pageKey:On==null?void 0:On.key,onlyView:Yt,isShowRuler:Be,editingBasketHotItem:Ko,selectedItems:eo,isVersionPreview:ro}});function mn(io){const[Jo,Zo]=(0,f.useState)(io);return(0,f.useEffect)(()=>{Zo(io)},[io]),[Jo,Zo]}const jn=(0,f.memo)(io=>{var Jo,Zo,Un,On,us;let{editingBasketHotItem:bn,editingBasketKey:Gn,editingBasketRefPage:xs,statePanelPosition:Es,newSelections:Ys,pageKey:lo,onlyView:Ko,isShowRuler:eo,isVersionPreview:ro,dispatch:Yt}=io;const[Be,Wt]=(0,f.useState)(!1),At=(0,f.useRef)(null),Xe=(bn==null||(Jo=bn.hotAttr)==null?void 0:Jo.type)==="rResBunch"?bn==null?void 0:bn.key:bn==null||(Zo=bn.hotAttr)==null?void 0:Zo.refRBPageKey,[Vt,Xo]=mn(bn==null||(Un=bn.hotAttr)==null?void 0:Un.layout),rn=(bn==null||(On=bn.hotAttr)==null?void 0:On.type)===ps.x.WBasket&&(bn==null||(us=bn.hotAttr)==null?void 0:us.basket)==="bDanli",Ps=(0,f.useCallback)(()=>{var vi,li,Ci;if(!bn)return;const yi=bn==null||(vi=bn.hotAttr)==null?void 0:vi.w,ea=bn==null||(li=bn.hotAttr)==null?void 0:li.h,ii=(Ci=(0,oo.BZ)(Xe))==null?void 0:Ci.length,Wi=(0,ri.kt)("rc");sdkStore.combineMergeMark("add-canvas");const ua={key:Wi,sup:Xe,sub:[],hotAttr:{...(0,Li.Nc)(I18N.builtin.state+" "+(ii+1),ii+1),w:yi,h:ea,x:yi/2,y:ea/2,fill:{fillIsVisible:!0,fill:"solid",solidColor:4294967040},order:(0,oo.QN)(Xe),zIndex:(0,ht._)(Xe)}};sdkStore.updateHotItem(ua),ii||(rn?sdkStore.updateHotAttrKV(bn.key,"refContentKey",ua.key):sdkStore.updateHotAttrKV(bn.key,"defaultCanvasKey",ua.key),Yt(r.GO.editBasketHotItem(sdkStore.getHotItem(bn.key)))),Yt({type:"entry:layout:basket-canvas"}),sdkStore.combineMerge("add-canvas"),Yt({type:"entry:rebuild:screen-widget-tree"}),Yt({type:"entry:refresh:link-list"}),Yt({type:"entry:clear:selection"}),Yt({type:"entry:select:items",payload:{cids:[Wi]}}),(0,zo.RW)({operation_type:zo.Q1.AddState,operation_from:rn?zo.IL.Dynamic:zo.IL.Muban})},[Yt,bn,rn,Xe]),Os=(0,f.useCallback)(()=>{Yt({type:"entry:preview:current-project"}),Ko?(0,So.A)({operation_type:rn?So.D.BasketPreview:So.D.MubanPreview}):(0,uo.kX)({operation_type:rn?uo.mV.BasketPreview:uo.mV.MubanPreview}),(0,zo.RW)({operation_type:zo.Q1.Device,operation_from:rn?zo.IL.Dynamic:zo.IL.Muban})},[Yt,rn,Ko]),ss=(0,f.useCallback)(vi=>{Xo(vi),Gn&&sdkStore.updateHotAttrKV((0,ji.OO)(Gn)?(0,ji.QL)(Gn).pop():Gn,"layout",vi),xs&&sdkStore.updateHotAttrKV(xs,"layout",vi),Yt({type:"entry:layout:basket-canvas"}),Yt({type:"entry:rebuild:screen-widget-tree"}),Yt({type:"entry:refresh:link-list"}),Yt({type:"entry:zoom:fit:scale:offset"}),(0,zo.RW)({operation_type:zo.Q1[vi],operation_from:rn?zo.IL.Dynamic:zo.IL.Muban})},[Yt,Gn,xs,rn,Xo]),Fs=(0,f.useCallback)(()=>{Yt({type:"entry:exit:edit:basket"}),(0,zo.RW)({operation_type:zo.Q1.BackToCanvas,operation_from:rn?zo.IL.Dynamic:zo.IL.Muban})},[Yt,rn]),Ei=(0,f.useCallback)(()=>{if(Es.top===0&&Es.left===0&&!Be){const{left:vi,top:li,width:Ci,height:yi}=At.current.getBoundingClientRect(),ea=vi-240+Ci,ii=li+yi+16;Yt(r.GO.updateBasketStatePanelPosition({left:ea,top:ii}))}Wt(!Be),(0,zo.RW)({operation_type:zo.Q1.StatePanel,operation_from:rn?zo.IL.Dynamic:zo.IL.Muban})},[Yt,rn,Be,Es.left,Es.top]);return(0,h.jsxs)(bi,{isShowRuler:eo,"data-is-widget-insertable":!1,children:[(0,h.jsxs)("div",{className:"left-content",children:[(0,h.jsx)("div",{className:"quit-container",onClick:Fs,children:(0,h.jsx)("div",{className:"icon-box quit",children:(0,h.jsx)(V.A,{content:I18N.dModule.exit_editing,direction:"down",children:(0,h.jsx)(u.C,{name:"art_board/basket/quit"})})})}),(0,h.jsx)(ct,{currentPageKey:lo,editingBasketKey:Gn,editingBasketRefPage:xs,dispatch:Yt})]}),(0,h.jsxs)("div",{className:"right-content",children:[!ro&&(0,h.jsx)(V.A,{content:I18N.builtin.demo,direction:"down",distance:8,children:(0,h.jsx)("div",{className:"ctrl-btn-wrapper",onClick:Os,children:(0,h.jsx)(u.C,{name:"art_board/basket/preview"})})}),!Ko&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(V.A,{content:I18N.builtin.add_state,direction:"down",distance:8,children:(0,h.jsx)("div",{className:"ctrl-btn-wrapper",onClick:Ps,children:(0,h.jsx)(u.C,{name:"art_board/basket/add"})})}),(0,h.jsx)("div",{className:"divide"}),(0,h.jsx)(V.A,{content:I18N.builtin.horizontal,direction:"down",distance:8,children:(0,h.jsx)("div",{className:J()("ctrl-btn-wrapper",{active:Vt==="col"}),onClick:()=>ss("col"),children:(0,h.jsx)(u.C,{name:"art_board/basket/layout/col"})})}),(0,h.jsx)(V.A,{content:I18N.builtin.vertical,direction:"down",distance:8,children:(0,h.jsx)("div",{className:J()("ctrl-btn-wrapper",{active:Vt==="row"}),onClick:()=>ss("row"),children:(0,h.jsx)(u.C,{name:"art_board/basket/layout/row"})})}),(0,h.jsx)("div",{className:"divide"}),(0,h.jsx)(V.A,{content:I18N.builtin.state_panel,direction:"down",distance:8,children:(0,h.jsx)("div",{ref:At,className:J()("ctrl-btn-wrapper",{active:Be}),onClick:Ei,children:(0,h.jsx)(u.C,{name:"art_board/state",className:"state"})})})]})]}),Xe&&(0,h.jsx)(Dn,{isOpen:Be,statePanelPosition:Es,refRBPageKey:Xe,newSelections:Ys,onClose:()=>Wt(!1),dispatch:Yt})]})}),Oo=(0,o.Ng)(io=>en(io))(jn);var Nn=e(4114),es=e(87954);class zt extends f.PureComponent{constructor(){super(),(0,x.A)(this,"handleScroll",Jo=>{Jo.stopPropagation();const Zo=Jo.target.dataset.axis,{clientX:Un,clientY:On}=Jo,{canvasOffset:{x:us,y:bn},viewportHeight:Gn,viewportWidth:xs,canvasRange:Es,onScroll:Ys}=this.props,lo=Zo==="x"?xs:Gn,Ko=ro=>{const{clientY:Yt,clientX:Be}=ro;let Wt=Zo==="x"?Be-Un:Yt-On;Wt=Wt/(lo-lo/Es[Zo]*lo)*Es[Zo];const At=Zo==="x"?{x:us-Wt,y:bn}:{x:us,y:bn-Wt};Ys(At)},eo=ro=>{document.removeEventListener("mousemove",Ko),document.removeEventListener("mouseup",eo)};document.addEventListener("mousemove",Ko),document.addEventListener("mouseup",eo)}),(0,x.A)(this,"handleClickTrack",Jo=>{const Zo=Jo.target.dataset.axis,{clientX:Un,clientY:On}=Jo,{onScroll:us,canvasRange:bn,viewportHeight:Gn,viewportWidth:xs}=this.props,{top:Es,bottom:Ys,left:lo,right:Ko}=this.scrollbarX.getBoundingClientRect(),eo=Zo==="x"?this.scrollbarX:this.scrollbarY,ro=Zo==="x"?Un>Ko:On>Ys,Yt=Zo==="x"?Un<lo:On<Es,Be=Zo==="x"?xs:Gn,Wt=()=>{const{top:Xe,bottom:Vt,left:Xo,right:rn}=eo.getBoundingClientRect(),{canvasOffset:{x:Ps,y:Os}}=this.props,ss=Zo==="x"?Un>rn:On>Vt,Fs=Zo==="x"?Un<Xo:On<Xe,vi=(Fs?-1:ss?1:0)*Math.min(bn[Zo]/10,Be),li=Zo==="x"?{x:Ps-vi,y:Os}:{x:Ps,y:Os-vi};(ss||Fs)&&us(li)};(ro||Yt)&&(eo.style.transition="all 0.1s linear",Wt(),this.timer=setTimeout(()=>this.timeInterval=setInterval(Wt,100),500));const At=Xe=>{eo.style.transition="",clearTimeout(this.timer),clearInterval(this.timeInterval),document.removeEventListener("mouseup",At)};document.addEventListener("mouseup",At)}),this.setRefY=Jo=>this.scrollbarY=Jo,this.setRefX=Jo=>this.scrollbarX=Jo}render(){const{className:Jo,canvasOffset:{x:Zo,y:Un},canvasRange:On,viewportWidth:us,viewportHeight:bn,showRuler:Gn}=this.props,xs=us/On.x;let Es=(On.x/2-Zo)*(On.x-us)/(On.x*On.x);Es=Math.min(Math.max(Es,0),(On.x-us)/On.x);const Ys=bn/On.y;let lo=(On.y/2-Un)*(On.y-bn)/(On.y*On.y);lo=Math.min(Math.max(lo,0),(On.y-bn)/On.y);const Ko={width:xs*100+"%",transform:"translateX("+Es*us+"px)"},eo={height:Ys*100+"%",transform:"translateY("+lo*bn+"px)"},ro=Gn?null:{left:0},Yt=Gn?null:{top:0};return(0,h.jsxs)(es.W,{className:Jo,children:[(0,h.jsx)("div",{"data-axis":"x",className:"track x-track",style:ro,onMouseDown:this.handleClickTrack,children:(0,h.jsx)("div",{ref:this.setRefX,className:"handler","data-axis":"x",onMouseDown:this.handleScroll,style:Ko,children:(0,h.jsx)("div",{className:"thumb"})})}),(0,h.jsx)("div",{"data-axis":"y",className:"track y-track",style:Yt,onMouseDown:this.handleClickTrack,children:(0,h.jsx)("div",{ref:this.setRefY,className:"handler y-handler","data-axis":"y",onMouseDown:this.handleScroll,style:eo,children:(0,h.jsx)("div",{className:"thumb"})})})]})}}(0,x.A)(zt,"propTypes",{className:Co().string,canvasOffset:Co().object,canvasRange:Co().object,viewportWidth:Co().number,viewportHeight:Co().number,showRuler:Co().bool,onScroll:Co().func}),(0,x.A)(zt,"defaultProps",{showRuler:!1});const po=(0,Nn.R)((io,Jo)=>({x:io,y:Jo})),Fo=(0,m.Mz)([g.$S,g.X_,g.Ur],(io,Jo,Zo)=>{var Un;if(!io||!Zo)return{x:0,y:0};const On=(Un=sdkStore.getHotItem(Zo==null?void 0:Zo.cid))==null?void 0:Un.sub.filter(Ko=>sdkStore.isActiveKey(Ko)&&sdkStore.getHotItem(Ko).hotAttr.type!=="rResBunch");let[us,bn,Gn,xs]=sdkStore.getHotKeyListAABB(On);const Es=Jo/100;us=Math.min(us*Es,-io.width*3/2),Gn=Math.max(Gn*Es,io.width*3/2),bn=Math.min(bn*Es,-io.height*3/2),xs=Math.max(xs*Es,io.height*3/2);const Ys=Math.max(-us,Gn,0),lo=Math.max(-bn,xs,0);return po(Ys*2,lo*2)}),Mn=io=>{let{viewportRect:Jo,showRuler:Zo,onScroll:Un}=io;const On=(0,o.d4)(bn=>(0,g.ER)(bn)),us=(0,o.d4)(bn=>Fo(bn));return(0,h.jsx)(zt,{viewportWidth:Jo.width,viewportHeight:Jo.height,canvasOffset:On,canvasRange:us,showRuler:Zo,onScroll:Un})},Fn=b.Ay.section.withConfig({displayName:"styles__StyledArtboard",componentId:"sc-1a974hx-0"})(["flex:1;position:relative;pointer-events:none;#mb-ruler{.h-container,.v-container{.indicator .value{padding:3px;background-color:",";color:",";}}.corner::after{top:8px;left:6px;padding:0 6px;}}.shortcut-panel{header{a{color:#b8bcbf;&.is-active{color:#fff;}}}.shortcut-box{.shortcut-column{&:last-child{border:none;}.shortcut-item{p:last-child{letter-spacing:1px;}}}}}.operate{z-index:106;pointer-events:auto;cursor:pointer;position:absolute;top:15px;right:30px;display:flex;column-gap:5px;}"],io=>io.theme.color_bg_white,io=>io.theme.color_text_L2);class ts extends f.PureComponent{constructor(){super(...arguments),(0,x.A)(this,"handleScroll",Jo=>this.props.dispatch({type:"entry:set:canvas:offset",payload:{offset:Jo}}))}componentDidMount(){const{isCommunityPreview:Jo,isEmbedV2Preview:Zo,handMode:Un,dispatch:On}=this.props;this.props.dispatch({type:"entry:update:viewport:rect"}),(Jo||Zo)&&!Un&&(On({type:"entry:hand-tool:enable",payload:{triggerMethod:"click"}}),On(r.GO.toggleInspectMode(!1)))}render(){const{showPanelEditBreadNav:Jo,viewportRect:Zo,showRuler:Un,showLinkBack:On,dispatch:us,showShortCutArtBoard:bn,isShowNps:Gn,currentUser:xs,theme:Es,onlyView:Ys,isCommunityPreview:lo,isEmbedV2Preview:Ko,isHtmlZipPreview:eo,isVersionPreview:ro,fullScreenMode:Yt,showEmptyEditCombo:Be,isShowVersionView:Wt}=this.props,At=!(lo||Ko||eo||ro||Wt);return Zo?(0,h.jsx)(Fn,{id:"mb-artboard",className:D.c.GUIDE_NEW_OVERLAY_ONCE,children:Be?(0,h.jsx)(E,{dispatch:us}):(0,h.jsxs)(h.Fragment,{children:[!Ys&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)($,{showLinkBack:On,showPanelEditBreadNav:Jo,dispatch:us}),(0,h.jsx)("div",{className:"statePanelRoot"})]}),Jo&&(0,h.jsx)(Oo,{}),At&&(0,h.jsx)(Si,{showShortCutArtBoard:bn,isShowNps:Gn,currentUser:xs,theme:Es,dispatch:us,onlyView:Ys}),!lo&&(0,h.jsx)(Mn,{viewportRect:Zo,showRuler:Un,onScroll:this.handleScroll}),lo&&!Yt&&(0,h.jsx)(fi,{isEmbedV2Preview:Ko})]})}):null}}const As=(0,m.Mz)([g.$S,A.qT,T.Z7,g.HW,T.xM,A.O4,k.jx,C.r,k.pH,k.rg,k.uu,k.YL,k.T7,k.Ro,l.C,T.nF,p.cS],(io,Jo,Zo,Un,On,us,bn,Gn,xs,Es,Ys,lo,Ko,eo,ro,Yt,Be)=>{let{isEditingBasket:Wt,isDirectlyEditingBasket:At,isEditingCombo:Xe}=Gn,{isEmptyScreen:Vt}=ro;const Xo=!!Be.currentViewing;return{onlyView:bn===r.qi.OnlyView,isCommunityPreview:xs,isEmbedV2Preview:Es,isHtmlZipPreview:Ys,isVersionPreview:lo,fullScreenMode:Ko,showLinkBack:Yt,showPanelEditBreadNav:Wt||At,showRuler:Jo,viewportRect:io,showShortCutArtBoard:Zo,isShowNps:On,currentUser:Un,theme:us,handMode:eo,showEmptyEditCombo:Vt&&Xe,isShowVersionView:Xo}}),Is=(0,o.Ng)(io=>As(io))(ts)},29839:(Et,ke,e)=>{"use strict";e.d(ke,{Bg:()=>A,Ky:()=>C,Ny:()=>p,Pp:()=>o,Qj:()=>g,Sd:()=>T,Uz:()=>r,fh:()=>m,fz:()=>l,tK:()=>k});const o=x=>x.ui.fixedLayout.ai.showAIModal,m=x=>x.ui.fixedLayout.ai.currentAiComponent,g=x=>x.ui.fixedLayout.ai.showAIGuide,l=x=>x.ui.fixedLayout.ai.aiGenerating,C=x=>x.ui.fixedLayout.ai.showAISemantic,T=x=>x.ui.fixedLayout.ai.historySemanticValue,A=x=>x.ui.fixedLayout.ai.switchIsChat,k=x=>{var f;return(f=x.ui)==null||(f=f.fixedLayout)==null||(f=f.ai)==null?void 0:f.showAISemanticTip},p=x=>{var f;return(f=x.ui)==null||(f=f.fixedLayout)==null||(f=f.ai)==null?void 0:f.userInputObj},r=x=>x.ui.fixedLayout.ai.showAIChatPanel},10572:(Et,ke,e)=>{"use strict";e.d(ke,{Q:()=>J,X:()=>fe});var o=e(20592),m=e(47143),g=e(6637),l=e(16526),C=e(13096),T=e(98310),A=e(63555),k=e(37051),p=e(71604),r=e(78013),x=e(29839),f=e(78570),u=e(98195),b=e(95230),h=e(97772),E=e(82658),N=e(54606),z=e(78647),S=e(24201),_=e(66802),y=e(40323),a=e(29107),$=e(86310),ce=e(70226);const de=["textfill","genprd","text"],fe={AIOpenModal:"entry:ai:update:openAIModal",AIOpenLeftNav:"entry:ai:update:OpenLeftAINav",AIOpenSemantic:"entry:ai:update:openAISemantic",AIToggleOpenSemantic:"entry:ai:update:toggleOpenAISemantic",AIComponentCreateMode:"entry:ai:open:aiComponentCreateMode",AIToggleOpenChatPanel:"entry:ai:update:toggleOpenAIChatPanel"},J={...{[fe.AIOpenModal]:(ve,D)=>{let{getState:R,dispatch:V}=ve,{payload:O}=D;if(!O)return;const Ce=R(),ae=(0,x.fh)(Ce),q=(0,C.gu)(),K=O.type,xe=O==null?void 0:O.userInput,te=O==null?void 0:O.openTrackSource;if(!(!xe&&K!==E.SR.AIAssistant&&(ae==null?void 0:ae.type)===K)){if(K===E.SR.AutoFill){V({type:"entry:autoFillPanel:toggle:show",payload:{canClose:!1,openFrom:h.G.RightClick}});return}V({type:"ai:update:state",payload:{showAIModal:!0,currentAiComponent:O,showAIGuide:q,userInputObj:{userInput:O.userInput||""}}}),te&&(0,y.Z)(K,te)}},[fe.AIOpenLeftNav]:ve=>{let{getState:D,dispatch:R}=ve;const V=D(),O=(0,f.bP)(V);if(R({type:"entry:active:popup:panel",payload:{name:u.lS.AI}}),O==="old_right")R({type:"entry:search-panel:clear:state"});else{R({type:"entry:toggle:left-nav-panel",payload:{isAlwaysShow:!0}});const Ce=O==="old_right"?b.sR:b.Cj;R({type:"left-panel:set:width",payload:{width:Ce,isNotSaveLocal:!0}})}},[fe.AIOpenSemantic]:ve=>{let{dispatch:D}=ve;const R=(0,C.gu)();let V={};R&&(V={showAIModal:!0}),D({type:"ai:update:state",payload:{showAISemantic:!0,showAIGuide:R,...V}})},[fe.AIToggleOpenSemantic]:ve=>{let{getState:D,dispatch:R}=ve;const V=D(),{isEditingProjectMain:O}=(0,N.r)(V);if(!O)return;const Ce=(0,x.Ky)(V),ae=(0,C.gu)();let q={};ae&&(q={showAIModal:!0}),!Ce&&R({type:"entry:aiComponent:exit:mode"}),R({type:"ai:update:state",payload:{showAISemantic:!Ce,showAIGuide:ae,...q}}),!ae&&(R({type:"ai:update:showAISemanticTip",payload:!1}),MB.commonGuideHelper.checkGuideHasShown(z.c.GUIDE_SEMANTIC_PANEL)||MB.commonGuideHelper.markGuideAsRead(z.c.GUIDE_SEMANTIC_PANEL))},[fe.AIComponentCreateMode]:async ve=>{let{getState:D,dispatch:R}=ve;await R({type:"ai:update:state",payload:{showAIModal:!1,showAISemantic:!1,currentAiComponent:null}}),S.ZF.setCache("\u5DE6\u4FA7AI\u5165\u53E3"),(0,S.U2)({source:"AI\u9762\u677F\u751F\u6210AI\u7EC4\u4EF6"}),R({type:"entry:aiComponent:open:mode"})},[fe.AIToggleOpenChatPanel]:ve=>{let{getState:D,dispatch:R}=ve;const V=D(),O=(0,x.Uz)(V);R({type:"ai:update:state",payload:{showAIChatPanel:!O}})}},"ai:generate:hotItems":(ve,D)=>{let{dispatch:R}=ve,{payload:V}=D;const{hotItems:O,autoSizeKeys:Ce=[],moveToCenterKey:ae="",updateMindSizeKey:q="",isFitCanvas:K=!0,isGroup:xe=!1}=V;if(!O||!(O!=null&&O.length))return;sdkStore.combineMergeMark("ai-semantic-function"),sdkStore.updateHotItemBatch(O),ae&&(0,C.EQ)(ae),R({type:"entry:rebuild:screen-widget-tree"}),q&&R({type:"entry:mind:update:mind-size",payload:{keyMindToUpdateSize:q}}),(0,C.X9)(Ce);const te=O.filter(be=>{var Le;return((Le=be.hotAttr)==null?void 0:Le.type)!=="rResExt"}),H=te.filter(be=>{var Le;return((Le=be.hotAttr)==null?void 0:Le.type)===A.x.Canvas}).map(be=>be.key),re=(H==null?void 0:H.length)>0?H:te.map(be=>be.key);R({type:"entry:select:items",payload:{cids:ae?[ae]:re}}),xe&&R({type:"entry:group:items"}),K&&R({type:"entry:design:zoom:selection"}),sdkStore.combineMerge("ai-semantic-function")},"ai:generate:flow":(ve,D)=>{let{getState:R,dispatch:V}=ve,{payload:O}=D;const Ce=R(),ae=(0,m.X_)(Ce),{hotItems:q}=O;sdkStore.updateHotItemBatch(q);const K=[],xe=[];q.forEach(ze=>{ze.hotAttr.type===A.x.WElbow?xe.push(ze):K.push(ze)});let te=o.QG;for(const{key:ze}of K){const ft=sdkStore.getHotAABB(ze);te=(0,o.il)(te,ft)}const H=te[2]-te[0],re=te[3]-te[1],{top:be,left:Le}=(0,g.u5)({width:H,height:re,scale:ae}),Ve=K.map(ze=>(ze.hotAttr.x=Le+ze.hotAttr.x,ze.hotAttr.y=be+ze.hotAttr.y,ze));sdkStore.updateHotItemBatch(Ve);const Ne=xe.map(ze=>{const ft=ze.key,{refFromKey:mt,refToKey:i,elbow:{fromDirection:gt,toDirection:Je}}=ze.hotAttr,Pt=sdkStore.getLocalBound(mt),bt=sdkStore.getLocalBound(i),qt=(0,l.Jv)({elbowKey:ft,bound:Pt,direction:gt,refKey:mt,moveAnchor:"start"});return(0,l.Jv)({elbowKey:ft,bound:bt,direction:Je,refKey:i,moveAnchor:"end",elbow:qt})});sdkStore.updateHotItemBatch(Ne),V({type:"entry:rebuild:screen-widget-tree"});const We=[...K.map(ze=>ze.key),...xe.map(ze=>ze.key)];V({type:"entry:select:items",payload:{cids:We}})},"ai:generate":async(ve,D)=>{let{getState:R,dispatch:V}=ve,{payload:O}=D;const{type:Ce,hotItems:ae}=O,q=Ce==="mind"?1:ae.length;if(!(0,a._c)({type:"widget",count:q})){setTimeout(()=>{MB.notice({isShow:!1})},4);return}const K=R(),xe=(0,m.Ur)(K),te=(0,m.lh)(K),H=(0,m.Mj)(K),re=xe==null?void 0:xe.cid;let be=(0,k._)(re),Le=(0,r.QN)(re);const Ve=$.y.query.getMissFontHiKeySet(K),Ne=gt=>{const Je=[];return gt.forEach(Pt=>{if(Pt.hotAttr.type!=="rResExt"){if(Pt.hotAttr.zIndex=be,be+=1,Pt.hotAttr.name=(0,p.Fg)(Pt.hotAttr),Pt.hotAttr.type===A.x.Canvas)Pt.hotAttr.order=Le,Le=Le+1;else if(Pt.hotAttr.type===A.x.WImage){const{name:bt,url:qt}=Pt.hotAttr.ext,pt=(0,T.q4)(bt,qt);Je.push(pt),Pt.hotAttr.image.imageRef=pt.key}else if(Pt.hotAttr.type===A.x.WCarousel){const qt=Pt.hotAttr.exts.map((pt,$t)=>{const{name:go,url:Co}=pt,Tt=(0,T.q4)(go,Co);return Pt.hotAttr.carousel.slides[$t].asset=Tt.key,Tt});Je.push(...qt)}}}),[...gt,...Je]};switch(Ce){case"Page":{var We,ze;if(!ae||!(ae!=null&&ae.length))return;const gt=Ne(ae),Je=((We=gt[0])==null||(We=We.hotAttr)==null?void 0:We.type)===A.x.Canvas?(ze=gt[0])==null?void 0:ze.key:"";await V({type:"ai:generate:hotItems",payload:{hotItems:gt,moveToCenterKey:Je,isFitCanvas:!1}});break}case"PageV9":{const gt=(0,_.wt)();gt&&(0,_.H2)(!1),await V({type:"ai:generate:hotItems",payload:{hotItems:ae,moveToCenterKey:ae[0].key,isFitCanvas:!1}}),gt&&(0,_.H2)(!0);break}case"flow":{if(!ae||!(ae!=null&&ae.length))return;const gt=ae.map(Je=>({...Je,hotAttr:{...Je.hotAttr,name:(0,p.Fg)(Je.hotAttr),zIndex:be}}));V({type:"ai:generate:flow",payload:{hotItems:gt}});break}case"mind":{var ft,mt;if(!ae||!(ae!=null&&ae.length))return;let gt=null;const Je=ae.map(Pt=>(Pt.hotAttr.type===A.x.WMind&&(gt=Pt),{...Pt,hotAttr:{...Pt.hotAttr,name:(0,p.Fg)(Pt.hotAttr),zIndex:Pt.hotAttr.type===A.x.WMind?be:Pt.hotAttr.zIndex}}));V({type:"ai:generate:hotItems",payload:{hotItems:Je,moveToCenterKey:(ft=gt)==null?void 0:ft.key,updateMindSizeKey:(mt=gt)==null?void 0:mt.key,isFitCanvas:!1}});break}case"chart":case"table":{var i;if(!ae||!(ae!=null&&ae.length))return;const gt=ae.map(Je=>({...Je,hotAttr:{...Je.hotAttr,name:(0,p.Fg)(Je.hotAttr),zIndex:be}}));V({type:"ai:generate:hotItems",payload:{hotItems:gt,moveToCenterKey:(i=gt[0])==null?void 0:i.key,isFitCanvas:!1}});break}case"semantic":{const{semanticType:gt,status:Je}=O,Pt=ae.filter(bt=>!Ve.has(bt.key));if(Pt.length!==ae.length){setTimeout(()=>{MB.notice({isShow:!1}),(0,ce.Kv)()},4);const bt=ae.filter(qt=>Ve.has(qt.key)).map(qt=>({key:qt.key,hotAttr:{isLock:!1}}));if(V({type:"entry:widget:change",payload:{flatChgList:bt,shouldReBuildTree:!0}}),Pt.length===0)break}switch(gt){case"edittext":case"texttranslate":case"textpolish":case"textstyle":case"textexpand":case"textshort":{const bt=Pt[0];if(Je===200){if(!bt)break;sdkStore.combineMergeMark("ai-semantic-function"),V({type:"entry:widget:change",payload:{flatChgList:Pt,shouldReBuildTree:!0}}),bt.hotAttr.type===A.x.WRichText?(0,C.X9)([bt.key]):(V({type:"entry:set:editing:cid",payload:{item:{cid:bt.key}}}),V({type:"entry:set:editing:cid",payload:{item:{cid:""}}}),te&&V({type:"entry:set:editing:cid",payload:{item:{cid:te}}})),sdkStore.combineMerge("ai-semantic-function")}else(0,C.We)(H),V({type:"entry:widget:change",payload:{flatChgList:Pt}});break}case"editstyle":{if(!ae||!(ae!=null&&ae.length))return;sdkStore.combineMergeMark("ai-semantic-function"),V({type:"entry:widget:change",payload:{flatChgList:ae,shouldReBuildTree:!0}});const bt=ae.filter(qt=>qt.hotAttr.type===A.x.WRichText).map(qt=>qt.key);(0,C.X9)(bt),sdkStore.combineMerge("ai-semantic-function");break}case"gencomponent":{if(!ae||!(ae!=null&&ae.length))return;const bt=Ne(ae);V({type:"ai:generate:hotItems",payload:{hotItems:bt,isGroup:!0}});break}default:{if(!ae||!(ae!=null&&ae.length))return;const bt=Ne(ae),qt=de.includes(gt)?ae.map(pt=>pt.key):[];V({type:"ai:generate:hotItems",payload:{hotItems:bt,autoSizeKeys:qt}});break}}break}default:break}}}},13096:(Et,ke,e)=>{"use strict";e.d(ke,{EQ:()=>u,Ub:()=>h,We:()=>b,X9:()=>f,gu:()=>E});var o=e(52098),m=e(80504),g=e(93284),l=e(6637),C=e(57465),T=e(53955),A=e(47143),k=e(5115),p=e(54606),r=e(30797),x=e(61724);const f=N=>{if(!N||N.length===0)return;const z=[];N.forEach(S=>{const _=sdkStore.getHotItem(S);if(!_)return;const{hotAttr:y}=_;y.cid=_.key;try{if(y.richTextV1.sizeType!==2)(0,m.PQ)(y);else{const{y:a,h:$}=y,ce=a-$/2,de=(0,g.x1)(y);y.y=ce+de/2,y.h=de,y.height=de}z.push(_)}catch(a){console.error("setUpdateAutoSizeAttr error:",a)}}),z.length&&sdkStore.updateHotItemBatch(z)},u=N=>{const{hotAttr:{w:z,h:S}}=sdkStore.getHotItem(N),{top:_,left:y}=(0,l.u5)({width:z,height:S,scale:MB.getScale()});sdkStore.updateHotAttrMerge(N,{x:y+z/2,y:_+S/2})},b=N=>{if(!N)return;const S=N.getSelection().set("hasFocus",!0),{_setEditorState:_}=(0,C.DT)();_&&_(o.$t.set(N,{selection:S,forceSelection:!0,nativelyRenderedContent:null,inlineStyleOverride:null}))},h=()=>{const N=(0,T.dP)(),z=(0,A.Ur)(N),S=(0,r.x$)(N),_=(0,x.nh)(N),y=(0,x.zX)(N),a=(0,k.Yg)(N),$=(0,A.lh)(N),ce=(0,A.Mj)(N),{isEditingCombo:de,isEditingMuban:fe,isEditingBasket:se}=(0,p.r)(N);return{pageKey:z.cid,selectedTrees:S,tableInfoData:{editingTableWidget:_,tableSelectionLeftTopInfo:y},selectedCarouseImage:a,editingCid:$,richTextEditorState:ce,canNotCreateCanvas:de||fe||se}},E=()=>!1},1540:(Et,ke,e)=>{"use strict";e.d(ke,{Hh:()=>g,qX:()=>m,wb:()=>o});const o=l=>l.ui.fixedLayout.autoFillPanel.show,m=l=>l.ui.fixedLayout.autoFillPanel.position,g=l=>l.ui.fixedLayout.autoFillPanel.openFrom},80412:(Et,ke,e)=>{"use strict";e.d(ke,{W:()=>m,i:()=>o});const o="AUTO_COMPLETE_POSITION_TOP",m="AUTO_COMPLETE_POSITION_LEFT"},31552:(Et,ke,e)=>{"use strict";e.d(ke,{$m:()=>Tt,Am:()=>K,F0:()=>te,Kf:()=>$t,Ld:()=>We,OD:()=>Je,Om:()=>pt,QR:()=>re,Qq:()=>mt,Xr:()=>ae,YJ:()=>Ce,YR:()=>H,ZE:()=>gt,af:()=>bt,av:()=>Co,c_:()=>Ne,cz:()=>xe,do:()=>jo,ep:()=>Le,fc:()=>Ve,fs:()=>i,lD:()=>be,qv:()=>Pt,sg:()=>mo,u2:()=>qt,xx:()=>go,yX:()=>q});var o=e(74059),m=e(51044),g=e(86634),l=e.n(g),C=e(44057),T=e(5241),A=e(89535),k=e(39719),p=e(11777),r=e(14672),x=e(19722),f=e(9376),u=e(24695),b=e(1163),h=e(97772),E=e(36521),N=e(60482),z=e(93869),S=e(33270),_=e(28678),y=e(36820),a=e(35619),$=e(34161),ce=e(10572),de=e(82658),fe=e(71604),se=e(8580),J=e(96731),ve=e(23340),D=e(40323),R=e(15039),V=e(57464);const O=Kt=>Kt.stopPropagation();class Ce extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleGroup",Ft=>{Ft.preventDefault(),this.props.dispatch({type:"entry:group:items"}),(0,_.O3)({operation_from:this.props.from,operation_type:_.VW.Combination})})}render(){const{disabled:Ft}=this.props;return(0,V.jsx)(C.Dr,{text:I18N.ContextMenu.group,onClick:this.handleGroup,hotKeyText:u.V.group,disabled:Ft})}}class ae extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleUngroup",Ft=>{Ft.preventDefault(),this.props.dispatch({type:"entry:ungroup:items"}),(0,_.O3)({operation_from:this.props.from,operation_type:_.VW.BreakUp})})}render(){const{disabled:Ft}=this.props;return(0,V.jsx)(C.Dr,{text:I18N.ContextMenu.ungroup,onClick:this.handleUngroup,hotKeyText:u.V.ungroup,disabled:Ft})}}class q extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handlePosition",Ft=>{Ft.preventDefault(),this.props.dispatch({type:"entry:design:zoom:selection"})})}render(){const{disabled:Ft}=this.props;return(0,V.jsx)(C.Dr,{text:I18N.ContextMenu.zoom_to_the_element,onClick:this.handlePosition,disabled:Ft})}}class K extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleSendFront",Ft=>{Ft.preventDefault(),this.props.dispatch({type:"entry:items:send:front"}),(0,_.O3)({operation_from:this.props.from,operation_type:_.VW.Top})}),(0,o.A)(this,"handleForward",Ft=>{Ft.preventDefault();const{disabled:nt}=this.props;nt||(this.props.dispatch({type:"entry:items:forward"}),(0,_.O3)({operation_from:this.props.from,operation_type:_.VW.MoveUp}))})}render(){const{disabled:Ft}=this.props;return(0,V.jsxs)(a.n_,{children:[(0,V.jsx)(C.Dr,{text:I18N.ContextMenu.send_front,onClick:this.handleSendFront,disabled:Ft,hotKeyText:u.V.sendFront}),(0,V.jsx)("div",{className:l()("icon-box","forward","menu-right-box",{disabled:Ft}),onClick:this.handleForward,onMouseDown:O,children:(0,V.jsx)(T.P,{name:"common/z_forward",iconClassName:"menu-icon-box menu-z_forward",tagName:"SVGIcon",content:I18N.ContextMenu.z_forward,hotKeyText:u.V.zForward,direction:"right"})})]})}}class xe extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleSendBack",Ft=>{Ft.preventDefault(),this.props.dispatch({type:"entry:items:send:back"}),(0,_.O3)({operation_from:this.props.from,operation_type:_.VW.Bottom})}),(0,o.A)(this,"handleBackward",Ft=>{Ft.preventDefault();const{disabled:nt}=this.props;nt||(this.props.dispatch({type:"entry:items:backward"}),(0,_.O3)({operation_from:this.props.from,operation_type:_.VW.MoveDown}))})}render(){const{disabled:Ft}=this.props;return(0,V.jsxs)(a.n_,{children:[(0,V.jsx)(C.Dr,{text:I18N.ContextMenu.send_back,onClick:this.handleSendBack,disabled:Ft,hotKeyText:u.V.sendBack}),(0,V.jsx)("div",{className:l()("icon-box","backward","menu-right-box",{disabled:Ft}),onClick:this.handleBackward,onMouseDown:O,children:(0,V.jsx)(T.P,{name:"common/z_backward",iconClassName:"menu-icon-box menu-z_backward",tagName:"SVGIcon",content:I18N.ContextMenu.z_backward,hotKeyText:u.V.zBackward,direction:"right"})})]})}}class te extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleMoveUp",()=>{this.props.dispatch({type:"entry:items:canvasList:backward",payload:{attr:"order"}}),(0,_.O3)({operation_from:this.props.from,operation_type:_.VW.MoveUp})})}render(){const{disabled:Ft}=this.props;return(0,V.jsx)(C.Dr,{text:I18N.ContextMenu.move_up,disabled:Ft,onClick:this.handleMoveUp})}}class H extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleMoveDown",()=>{this.props.dispatch({type:"entry:items:canvasList:forward",payload:{attr:"order"}}),(0,_.O3)({operation_from:this.props.from,operation_type:_.VW.MoveDown})})}render(){const{disabled:Ft}=this.props;return(0,V.jsx)(C.Dr,{text:I18N.ContextMenu.move_down,disabled:Ft,onClick:this.handleMoveDown})}}class re extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleCopy",Ft=>{Ft.preventDefault(),this.props.dispatch({type:"entry:copy:items"}),(0,_.O3)({operation_from:this.props.from,operation_type:_.VW.Copy}),(0,f.H8)()&&(0,r.P8)()})}render(){return(0,V.jsx)(C.Dr,{text:""+I18N.ContextMenu.copy,onClick:this.handleCopy,hotKeyText:u.V.copy})}}class be extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleCut",Ft=>{this.props.disabled||(Ft.preventDefault(),this.props.dispatch({type:"entry:cut:items"}),(0,_.O3)({operation_from:this.props.from,operation_type:_.VW.Cut}),(0,f.H8)()&&(0,r.P8)())})}render(){return(0,V.jsx)(C.Dr,{text:I18N.ContextMenu.cut,onClick:this.handleCut,hotKeyText:u.V.cut,disabled:this.props.disabled})}}class Le extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleDelete",Ft=>{this.props.disabled||(Ft.preventDefault(),this.props.dispatch({type:"entry:delete:selected-items"}),(0,_.O3)({operation_from:this.props.from,operation_type:_.VW.Delete}))})}render(){return(0,V.jsx)(C.Dr,{text:I18N.ContextMenu.delete,onClick:this.handleDelete,disabled:this.props.disabled})}}class Ve extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleAutoFill",Ft=>{if(Ft.preventDefault(),ENV.IS_WONDER_SHARE){this.handleAI(Ft);return}const{from:nt}=this.props;this.props.dispatch({type:"entry:autoFillPanel:toggle:show",payload:{canClose:!1,openFrom:nt||h.G.RightClick}}),(0,_.O3)({operation_from:this.props.from,operation_type:_.VW.AutoFill}),(0,D.Z)(de.SR.AutoFill)}),(0,o.A)(this,"handleAI",Ft=>{Ft.preventDefault();const nt=(0,de.$I)().find(Rt=>Rt.type===de.SR.AutoFill);nt.source="\u53F3\u952E\u83DC\u5355\u667A\u80FD\u586B\u5145AI",this.props.dispatch({type:ce.X.AIOpenModal,payload:nt})})}render(){const{from:Ft}=this.props,nt=Ft===h.G.TopBar;return(0,V.jsxs)(a.n_,{children:[(0,V.jsx)(C.Dr,{text:I18N.ChatGPT.magic_fill,onClick:this.handleAutoFill}),!ENV.IS_ON_PREMISES&&(0,V.jsx)(x.A,{size:16,name:"chatGPT/left_panel_header"+(ENV.IS_WONDER_SHARE?"":"_new"),isColorPure:!0,className:l()("en-auto-fill-box",nt&&"from-topbar")})]})}}class Ne extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleLock",Ft=>{const{isLocked:nt}=this.props;Ft.preventDefault(),this.props.dispatch({type:"entry:toggle:lock"}),(0,_.O3)({operation_from:this.props.from,operation_type:nt?_.VW.UnLocked:_.VW.Locked})})}render(){const{isLocked:Ft,disabled:nt}=this.props,[Rt]=Ft?[I18N.ContextMenu.unlock]:[I18N.ContextMenu.lock_widget];return(0,V.jsx)(C.Dr,{text:Rt,onClick:this.handleLock,hotKeyText:u.V.lock,disabled:nt})}}class We extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleHide",Ft=>{const{isVisible:nt}=this.props;Ft.preventDefault(),this.props.dispatch({type:"entry:toggle:visible"}),(0,_.O3)({operation_from:this.props.from,operation_type:nt?_.VW.Hide:_.VW.Show})})}render(){const{isVisible:Ft,disabled:nt}=this.props,Rt=Ft?I18N.ContextMenu.hide:I18N.ContextMenu.show;return(0,V.jsx)(C.Dr,{text:Rt,onClick:this.handleHide,hotKeyText:u.V.hide,disabled:nt})}}class ze extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleAddWidgetToUser",Ft=>{if(MB.global.experienceLoginModalHelper("isSave"))return;Ft.preventDefault();const{dispatch:nt}=this.props;nt({type:"entry:create:combo:to:user:org:group",payload:{targetType:"user",callback:()=>{(0,_.O3)({operation_from:this.props.from,operation_type:_.VW.AddToMyCombo})}}})}),(0,o.A)(this,"handleAddWidgetToOrg",Ft=>{if(MB.global.experienceLoginModalHelper("isSave"))return;Ft.preventDefault();const{dispatch:nt}=this.props;nt({type:"entry:create:combo:to:user:org:group",payload:{targetType:"org",callback:()=>{(0,_.O3)({operation_from:this.props.from,operation_type:_.VW.AddToOrgCombo})}}})})}render(){const{isMeDesign:Ft,isEditingOrgCombo:nt,isEditingUserCombo:Rt,canEditLibrary:yt}=this.props;return(0,V.jsxs)(V.Fragment,{children:[!Rt&&(0,V.jsx)(C.Dr,{text:I18N.ContextMenu.my_widgets,onClick:this.handleAddWidgetToUser}),!Ft&&!nt&&(0,V.jsx)(p.A,{maxWidth:"236px",content:yt?"":I18N.pComment.no_permission_contact_administrator,direction:"down",isNeedWrap:!0,style:{padding:"12px 16px"},children:(0,V.jsx)(C.Dr,{disabled:!yt,text:I18N.ContextMenu.org_widgets,onClick:this.handleAddWidgetToOrg})})]})}}class ft extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleAddAssetToUser",Ft=>{if(MB.global.experienceLoginModalHelper("isSave"))return;Ft.preventDefault();const{dispatch:nt}=this.props;nt({type:"entry:prepare:asset:to:user:org:group",payload:{targetType:"user"}})}),(0,o.A)(this,"handleAddAssetToOrg",Ft=>{if(MB.global.experienceLoginModalHelper("isSave"))return;Ft.preventDefault();const{dispatch:nt}=this.props;nt({type:"entry:prepare:asset:to:user:org:group",payload:{targetType:"org"}})})}render(){const{isMeDesign:Ft,canEditLibrary:nt}=this.props;return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(C.Dr,{text:I18N.ContextMenu.my_assets,onClick:this.handleAddAssetToUser}),!Ft&&(0,V.jsx)(p.A,{maxWidth:"236px",content:nt?"":I18N.pComment.no_permission_contact_administrator,direction:"down",isNeedWrap:!0,style:{padding:"12px 16px"},children:(0,V.jsx)(C.Dr,{disabled:!nt,text:I18N.ContextMenu.org_assets,onClick:this.handleAddAssetToOrg})})]})}}class mt extends m.PureComponent{render(){const{canCreateCombo:Ft,canCreateAsset:nt,isMeDesign:Rt,dispatch:yt,canEditLibrary:Jt,canAddToMyOrOrgAsset:vo,isEditingOrgCombo:Yo,isEditingUserCombo:Ho,from:kt,disabled:Ze}=this.props;return(0,V.jsxs)(C.Dr,{text:I18N.ContextMenu.add_to,disabled:Ze,isAiry:!0,children:[Ft&&(0,V.jsx)(ze,{canEditLibrary:Jt,isMeDesign:Rt,isEditingOrgCombo:Yo,isEditingUserCombo:Ho,dispatch:yt,from:kt}),nt&&vo&&(0,V.jsx)(ft,{canEditLibrary:Jt,isMeDesign:Rt,dispatch:yt})]})}}class i extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleCreate",async Ft=>{if(Ft.preventDefault(),MB.global.experienceLoginModalHelper("isSave")||this.props.disabled)return;const{dispatch:nt,selectedItems:Rt,isEditingBasket:yt}=this.props,Jt=Rt[0].hotAttr.name||(0,fe.KD)(Rt[0].key);nt({type:"modal:update:state",payload:{masterCreateModal:{isOpen:!0,name:Jt,onConfirm:async vo=>{let{name:Yo,onSuccess:Ho}=vo;await nt({type:"entry:create:basket",payload:{basketType:"bMuban",attr:{name:Yo},onSuccess:Ho}}),nt({type:"muban-panel:update:mubanList",payload:{mubanList:(0,S.AG)()}}),(0,_.O3)({operation_from:this.props.from,operation_type:_.VW.SwitchMuban})}}}}),(0,$.SJ)("\u53F3\u952E\u8F6C\u5316\u6BCD\u7248",yt,Rt.map(vo=>vo.key))})}render(){return(0,V.jsx)(C.Dr,{text:I18N.ContextMenu.create_master,onClick:this.handleCreate,disabled:this.props.disabled})}}class gt extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleCreateWidget",async()=>{const{dispatch:Ft,selectedItems:nt,isEditingBasket:Rt}=this.props;await Ft({type:"entry:create:basket",payload:{basketType:"bDanli"}}),Ft({type:"entry:screenContainer:enter:editing:widget"}),(0,_.O3)({operation_from:this.props.from,operation_type:_.VW.SwitchBasket}),(0,$.XG)("\u53F3\u952E\u8F6C\u6362\u52A8\u6001\u7EC4\u4EF6",Rt,nt.map(yt=>yt.key))}),(0,o.A)(this,"handleCreate",async Ft=>{if(this.props.disabled)return;Ft.preventDefault();const{dispatch:nt,selectedItems:Rt}=this.props;Rt.length===1&&Rt[0].hotAttr.type==="wBasket"&&Rt[0].hotAttr.basket==="bDanli"?nt({type:"modal:update:state",payload:{nestedDynamicModal:{isOpen:!0,from:"contextMenu",onConfirm:()=>this.handleCreateWidget()}}}):this.handleCreateWidget()})}render(){return(0,V.jsx)(C.Dr,{text:I18N.ContextMenu.create_panel,onClick:this.handleCreate,disabled:this.props.disabled})}}class Je extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleClick",()=>{MB.global.experienceLoginModalHelper("isSave")||(this.props.dispatch({type:"entry:basket:transform",payload:{basketType:"bDanli",type:"detachMuban"}}),(0,y.kH)("master_operation_V8",{source:"\u53F3\u952E",operation_type:I18N.ContextMenu.detach_panel}))})}render(){return(0,V.jsx)(C.Dr,{text:I18N.ContextMenu.detach_panel,onClick:this.handleClick})}}class Pt extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleClick",()=>{MB.global.experienceLoginModalHelper("isSave")||this.props.dispatch({type:"entry:detach:basket"})})}render(){return(0,V.jsx)(C.Dr,{text:I18N.Basket.separateState,onClick:this.handleClick,disabled:this.props.disabled})}}class bt extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleClick",async()=>{const{widget:Ft,dispatch:nt}=this.props;await sdkStore.commitOwa(Ft.cid),nt({type:"entry:rebuild:screen-widget-tree"}),(0,y.kH)("master_operation_V8",{source:"\u53F3\u952E",operation_type:I18N.ContextMenu.sync_to_muban})})}render(){const{widget:Ft}=this.props;return(0,V.jsx)(C.Dr,{text:I18N.ContextMenu.sync_to_muban,onClick:this.handleClick,disabled:!sdkStore.hasOwa(Ft.cid)})}}class qt extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleClick",()=>{const{widget:Ft,dispatch:nt}=this.props,Rt=sdkStore.getHotItem(Ft.refRBPageKey);nt({type:"entry:edit:basket:source:muban",payload:{item:{...Rt,...Rt.hotAttr}}}),(0,y.kH)("master_operation_V8",{source:"\u53F3\u952E",operation_type:I18N.ContextMenu.edit_muban})})}render(){return(0,V.jsx)(C.Dr,{text:I18N.ContextMenu.edit_muban,onClick:this.handleClick})}}class pt extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleClick",()=>{this.props.dispatch({type:"entry:basket:muban:resetOwa"}),(0,y.kH)("master_operation_V8",{source:"\u53F3\u952E",operation_type:I18N.ContextMenu.reset_to_muban})})}render(){const{selectItems:Ft}=this.props,nt=Ft.every(Rt=>!sdkStore.hasOwa(Rt.cid));return(0,V.jsx)(C.Dr,{text:I18N.ContextMenu.reset_to_muban,onClick:this.handleClick,disabled:nt})}}class $t extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleImageCut",Ft=>{Ft.preventDefault();const{dispatch:nt}=this.props;nt({type:"entry:image-view:edit",payload:{operationType:b.bl.cutting}}),nt({type:"entry:image-view:cutting"})})}render(){return(0,V.jsx)(C.Dr,{text:I18N.SettingPanel.crop,onClick:this.handleImageCut})}}class go extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleImageCut",Ft=>{Ft.preventDefault();const{dispatch:nt}=this.props;nt({type:"entry:image-view:edit",payload:{operationType:b.bl.slicing}}),nt({type:"update:screenContainer:state",payload:{defaultImageSlicingOffset:{x:Ft.clientX,y:Ft.clientY}}})})}render(){return(0,V.jsx)(C.Dr,{text:I18N.SettingPanel.division,onClick:this.handleImageCut})}}class Co extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleCreate",async(Ft,nt)=>{const{canvas:Rt,currentProject:yt,dispatch:Jt,isFromAbar:vo}=this.props;if(Ft.preventDefault(),MB.global.experienceLoginModalHelper("isSave"))return;if(!1)Jt({type:"modal:update:state",payload:{rightsAndInterestsModal:{isOpen:!0,type:J.hC.MaxSharingCount,isFromScreenList:!0,project:yt}}});else{const Ho=Rt.hotAttr.name;let kt;const Ze=Rt==null?void 0:Rt.sup;nt==="curPage"?kt=Ze?[Ze]:[]:nt==="allPage"&&(kt=[]),kt=(0,N.Uh)(kt);const it=(0,E.Yt)(yt.cid+"_default_sharing_view_mode","read_only",E.qW.String),st=(0,N.CV)({accessToken:yt.access_token,view_mode:it,pageKey:Ze,targetKey:Rt.key,selection:kt}),dt=(0,N.R_)(st,MB.getRootProject().name,Ho,"");(0,z.$)(dt),vo||(0,se.M2)()?MB.notice({text:"\u5206\u4EAB\u94FE\u63A5\u5DF2\u590D\u5236",duration:5e3}):MB.notice({text:I18N.ScreenPanel.copy_share_url_success,CustomChildComponent:k.pU,duration:5e3}),(0,_.O3)({operation_from:this.props.from,operation_type:_.VW.CopySharingLink}),(0,R.E9)({project:yt,isEditMode:!0,shareSource:"\u9875\u9762\u590D\u5236\u5206\u4EAB\u94FE\u63A5"})}})}render(){return(0,V.jsx)(V.Fragment,{children:(0,V.jsx)(Tt,{text:I18N.ContextMenu.copy_share_link,tips:I18N.ContextMenu.share_link_browsing_from_current_canvas,onClick:Ft=>this.handleCreate(Ft,"allpage")})})}}class Tt extends m.PureComponent{render(){const{text:Ft,tips:nt,distance:Rt=10,maxWidth:yt=ENV.IS_WONDER_SHARE?"none":"250px",onClick:Jt}=this.props;return(0,V.jsxs)(a.g$,{children:[(0,V.jsx)(C.Dr,{text:Ft,onClick:Jt}),(0,V.jsx)(A.A,{content:nt,direction:"right",tipClassName:"tips-container",distance:Rt,maxWidth:yt,children:(0,V.jsx)(x.A,{className:"tipsIcon",name:"common/tip",size:16})}),(0,V.jsx)(a.hb,{})]})}}class mo extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handlePaste",async Ft=>{const{dispatch:nt}=this.props;Ft.preventDefault(),!MB.f.editing&&(nt({type:"entry:toggle:paste:direct:by:contextmenu"}),(0,_.O3)({operation_from:this.props.from,operation_type:_.VW.Paste}))})}render(){return(0,V.jsx)(C.Dr,{text:I18N.ToolBar.paste,onClick:this.handlePaste,hotKeyText:u.V.past,disabled:this.props.disabled})}}class jo extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handlePasteToPoint",async Ft=>{const{position:{top:nt,left:Rt},dispatch:yt}=this.props,Jt={clientX:Rt,clientY:nt};if(Ft.preventDefault(),MB.f.editing)return;const vo=await(0,r.LD)({isShowPrompt:!0});await(0,ve.$H)({hasNotice:!1})?vo!=null&&vo.data?yt({type:"entry:paste:items:at",payload:{clientPos:Jt,hasPrompt:!0}}):yt({type:"entry:prepare:paste:by:contextmenu",payload:{cursorPos:Jt}}):yt({type:"entry:prepare:paste:by:contextmenu",payload:{cursorPos:Jt}}),(0,_.O3)({operation_from:this.props.from,operation_type:_.VW.Paste})})}render(){return(0,V.jsx)(C.Dr,{text:""+I18N.ToolBar.paste+I18N.ContextMenu.paste_to_point,onClick:this.handlePasteToPoint,hotKeyText:u.V.pastToPoint,disabled:this.props.disabled})}}},35619:(Et,ke,e)=>{"use strict";e.d(ke,{g$:()=>C,hb:()=>T,nU:()=>g,n_:()=>l});var o=e(21676),m=e(44057);const g=(0,o.Ay)(m.Ay).withConfig({displayName:"styles__StyledRightClickMenu",componentId:"sc-11cd6gn-0"})(["ul{padding:8px;border-radius:8px;background:",";box-shadow:",";border:1px solid ",";}li.MenuItem{&:not(.disabled).active{a{background:",";border-radius:4px;}}a{color:",";svg:not(.is-multi-color-icon) > path{fill:",";}.right-arrow svg > path{fill:",";}.shortfont kbd{color:",";}}&.disabled{a{color:",";svg path{fill:",";}.shortfont kbd{color:",";}}}}"],A=>A.theme.color_bg_white,A=>A.theme.shadow_m,A=>A.theme.color_bg_border_01,A=>A.theme.color_btn_secondary_hover,A=>A.theme.color_text_L1,A=>A.theme.color_text_L1,A=>A.theme.color_text_L3,A=>A.theme.color_text_L3,A=>A.theme.color_text_disabled01,A=>A.theme.color_text_disabled01,A=>A.theme.color_text_disabled01),l=o.Ay.div.withConfig({displayName:"styles__StyledIconMenuItem",componentId:"sc-11cd6gn-1"})(["display:flex;align-items:center;justify-content:space-between;height:24px;li.MenuItem{flex:1;a{padding-right:6px;}}.icon-box{flex:0 0 26px;height:24px;display:flex;align-items:center;justify-content:center;cursor:pointer;position:relative;svg.svg-icon{width:16px;}& .menu-z_forward,.menu-z_backward{svg.svg-icon{width:24px;}}&::before{display:inline-block;content:'';width:1px;height:16px;background:",";position:absolute;left:0;margin:0 2px;}&.disabled{opacity:0.4;cursor:not-allowed;a{cursor:not-allowed;}}&:not(.disabled):hover{background:#666;}&.forward,&.backward,&.unGroup{a{color:#979797;}}&.menu-right-box{padding-left:5px;padding-right:10px;&.from-topbar{padding-right:12px;}&:hover{background:rgba(0,0,0,0);}.auto-fill-box:hover{background:#666;}.menu-icon-box{width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:4px;color:",";&:hover{background:",";}}}&.unGroup{svg.svg-icon{path{&:nth-child(2),&:nth-child(4){fill:#dedee4;}}}}}.en-auto-fill-box{position:absolute;right:14px;pointer-events:none;width:24px;&.from-topbar{right:12px;}svg{width:24px;height:24px;}}"],A=>A.theme.color_bg_border_01,A=>A.theme.color_text_L1,A=>A.theme.color_btn_secondary_hover),C=o.Ay.div.withConfig({displayName:"styles__StyledMenuItemTips",componentId:"sc-11cd6gn-2"})(["display:flex;align-items:center;height:24px;position:relative;li.MenuItem{width:100%;a{padding-right:8px;}}.tipsIcon{position:absolute;right:10px;top:0px;width:24px;height:24px;border-radius:4px;path{color:",";}&:not(.disabled):hover{background:",";}&:not(.disabled):active{background:",";}}"],A=>A.theme.color_text_L1,A=>A.theme.color_btn_secondary_hover,A=>A.theme.color_btn_secondary_hover),T=(0,o.DU)(["#IBOT_TOOLTIP_ROOT{.tips-container{&.Tip.on-right{transform:translate(0,-50%);}&.is-open{transform:translate(0,-50%);}}}"])},26637:(Et,ke,e)=>{"use strict";e.d(ke,{Zz:()=>m,nW:()=>g,nb:()=>o});const o="FIND_REPLACE_POSITION_TOP",m="FIND_REPLACE_POSITION_LEFT";let g=function(l){return l[l.normal=0]="normal",l[l.searching=1]="searching",l[l.notFound=2]="notFound",l[l.hasResults=3]="hasResults",l}({})},50639:(Et,ke,e)=>{"use strict";e.d(ke,{FH:()=>be,LH:()=>re,Ly:()=>Le,YU:()=>V,_H:()=>fe,bB:()=>i,k1:()=>R,kB:()=>ft,qk:()=>te,rn:()=>mt,t$:()=>de,wp:()=>D});var o=e(63711),m=e.n(o),g=e(63555),l=e(21840),C=e(8907),T=e(57465),A=e(52098),k=e(47483),p=e(23854),r=e(80504),x=e(23340),f=e(40829);const u=[g.x.WRichText,g.x.WRect,g.x.WOval,g.x.WPolygon,g.x.WStar,g.x.WSticky,g.x.WVector,g.x.WTriangle,g.x.WMindNode,g.x.wFlowClosed,g.x.WFlowOpened,g.x.WButton],b=[g.x.WPlaceholder,g.x.WMTooltip],h=[g.x.WButtonSolid,g.x.WMTextInput,g.x.WMTextArea],E=[g.x.WDropMenu,g.x.WNavigationMenu,g.x.WCollapse,g.x.WSegmentedControl,g.x.WTabs,g.x.WMobileTabBars,g.x.WSelectionControl,g.x.WTree],N=b.concat(h),z=/(>)[^>]+(?=<[/]?\w+.*>)/g,S=[],_="xAxis",y="series",a="highOption",$="highText",ce=gt=>gt.length===0||gt==="<p></p>"?"<p> </p>":gt,de=gt=>gt.toLowerCase(),fe=gt=>{const Je={"<":"<",">":">","&":"&"};return gt.replace(/(<|>|&)/g,Pt=>Je[Pt])},se=function(gt,Je){return Je===void 0&&(Je="-"),gt.toString().split(Je).map(Pt=>isNaN(parseInt(Pt))?Pt:parseInt(Pt))},J=gt=>gt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),ve=gt=>{const Je=J(gt);return new RegExp(Je,"ig")},D=gt=>{let{isCurrentScreen:Je,currentScreenCid:Pt}=gt;const bt=(qt,pt,$t,go)=>{var Co;const Tt=[];if(!qt)return Tt;const{key:mo,sub:jo,hotAttr:Kt}=qt,Ft=(Co=Kt.bunch)!=null?Co:Kt.type;if([g.x.RbPage,g.x.Canvas,g.x.WWrap].includes(Ft)){const nt=jo.map(yt=>sdkStore.getHotItem(yt)).sort((yt,Jt)=>{var vo,Yo;return((vo=Jt.hotAttr)==null?void 0:vo.zIndex)-((Yo=yt.hotAttr)==null?void 0:Yo.zIndex)}),Rt=Ft===g.x.RbPage?qt.key:pt;Tt.push(...nt.map(yt=>[...bt(yt,Rt,$t,go)]).flat(1/0))}else if(Ft===g.x.WBasket&&Kt.basket==="bMuban"){const nt=jo.map(yt=>sdkStore.getHotItem(yt)).sort((yt,Jt)=>{var vo,Yo;return((vo=Jt.hotAttr)==null?void 0:vo.zIndex)-((Yo=yt.hotAttr)==null?void 0:Yo.zIndex)}),Rt=pt;Tt.push(...nt.map(yt=>[...bt(yt,Rt,!0)]).flat(1/0))}else if(Ft===g.x.WMind&&jo.length){const nt=sdkStore.getHotItem(Kt.refContentKey);Tt.push(...bt(nt,pt,$t,mo))}else if(Ft===g.x.WMindNode){if($t&&Kt.basket==="bDanli")return Tt;Tt.push({...qt,pageKey:pt,mindKey:go});const nt=jo.map(Rt=>sdkStore.getHotItem(Rt)).sort((Rt,yt)=>{var Jt,vo;return((Jt=Rt.hotAttr)==null?void 0:Jt.order)-((vo=yt.hotAttr)==null?void 0:vo.order)});Tt.push(...nt.map(Rt=>[...bt(Rt,pt,$t,go)]).flat(1/0))}else{if($t&&Kt.basket==="bDanli")return Tt;Tt.push({...qt,pageKey:pt})}return Tt};if(Je){const qt=sdkStore.getHotItem(Pt);return bt(qt,Pt,!1)}else return sdkStore.getSubHotItemList("B@main").filter(pt=>{var $t;return(($t=pt.hotAttr.bunch)!=null?$t:pt.hotAttr.type)===g.x.RbPage}).sort((pt,$t)=>{var go,Co;return((go=$t.hotAttr)==null?void 0:go.zIndex)-((Co=pt.hotAttr)==null?void 0:Co.zIndex)}).map(pt=>[...bt(pt,pt.key,!1)]).flat(1/0)},R=gt=>{let{widgetList:Je,searchValue:Pt,findWidgetList:bt,findWidgetPanelList:qt,mubans:pt,parent:$t=null}=gt,go=!0;go&&Je.forEach(Co=>{const{hotAttr:{type:Tt,refRBPageKey:mo},pageKey:jo,mindKey:Kt}=Co;if(Tt===g.x.WBasket&&Co.hotAttr.basket==="bDanli"){const Ft=D({isCurrentScreen:!0,currentScreenCid:mo});R({widgetList:Ft,searchValue:Pt,findWidgetList:bt,findWidgetPanelList:qt,mubans:pt,parent:{widget:Co,pageKey:jo}})}else{const Ft=V(Co,Pt);if((Ft==null?void 0:Ft.length)>0&&(Ft.forEach((nt,Rt)=>{bt.push({widget:Co,parent:$t,index:Rt,pageKey:jo,mindKey:Kt})}),$t)){const{widget:{hotAttr:{type:nt,refRBPageKey:Rt,basket:yt}}}=$t,Jt=nt===g.x.WBasket&&yt==="bMuban";go=!Jt||!pt.has(Rt),Jt&&pt.add(Rt),!Jt&&qt.push($t)}}})},V=function(gt,Je,Pt){Pt===void 0&&(Pt=0);const{hotAttr:{type:bt,textV0:qt,textV1:pt,tableData:$t,chartData:go,optionData:Co}}=gt;if(u.includes(bt)){Je=fe(Je);const Tt=(0,T.YZ)(pt,!0);return K({str:Tt,matchValue:Je,replaceEndIndex:Pt})}else if(N.includes(bt)){const Tt=qt.text,mo=h.includes(bt);return Je=h.includes(bt)?Je:fe(Je),K({str:Tt,matchValue:Je,pureHTML:mo,replaceEndIndex:Pt})}else{if(bt===g.x.WMSelect)return qt.text.split(/\n/).map((mo,jo)=>K({str:mo,matchValue:Je,pureHTML:!0}).map(Ft=>jo+"-"+Ft)).flat();if(bt===g.x.WTable){const Tt=[];if(Je=fe(Je),(0,f.SS)(gt.hotAttr))for(const[mo,jo]of Object.entries(gt.hotAttr.cells)){const Kt=K({str:jo.data,matchValue:Je,pureHTML:!0});Kt.length>0&&Tt.push(Kt.map(Ft=>mo+"-"+Ft))}else $t.data.forEach((jo,Kt)=>{jo.forEach((Ft,nt)=>{const Rt=K({str:Ft,matchValue:Je,pureHTML:!0});Rt.length>0&&Tt.push(Rt.map(yt=>Kt+"-"+nt+"-"+yt))})});return Tt.flat()}else if(bt===g.x.WChart){const{xAxis:Tt,series:mo}=go,jo=mo.map(nt=>{let{name:Rt}=nt;return Rt}),Kt=Tt.map((nt,Rt)=>K({str:nt,matchValue:Je,pureHTML:!0}).map(Jt=>_+"-"+Rt+"-"+Jt)),Ft=jo.map((nt,Rt)=>K({str:nt,matchValue:Je,pureHTML:!0}).map(Jt=>y+"-"+Rt+"-"+Jt));return Kt.concat(Ft).flat()}else if(E.includes(bt)){const Tt=bt===g.x.WDropMenu?qt.text:"",mo=[];xe(Co,mo,Je);const jo=K({str:Tt,matchValue:Je,pureHTML:!0});return mo.push(jo.map(Kt=>$+"/"+Kt)),mo.flat()}}return S},O=function(gt,Je,Pt){return Pt===void 0&&(Pt=0),de(gt).indexOf(de(Je),Pt)},Ce=function(gt,Je,Pt){Pt===void 0&&(Pt=0);let bt=[],qt=O(gt,Je,Pt);for(;qt!==-1;)bt.push(qt),qt=O(gt,Je,qt+Je.length);return bt=bt.sort((pt,$t)=>pt-$t),bt},ae=gt=>{const Je=[...gt.matchAll(z)];return Je&&Je.length>0?Je.map(Pt=>({...Pt,0:Pt[0].replace(">",""),index:Pt.index+1})):S},q=function(gt,Je,Pt){Pt===void 0&&(Pt=0);const bt=ae(gt),qt=[];if(bt&&bt.length>0){const pt=de(Je.substring(0,1)),$t=de(Je.substring(Je.length-1)),go=bt.map((nt,Rt)=>de(nt[0]).includes(pt)?Rt:null).filter(nt=>nt!==null),Co=bt.map((nt,Rt)=>de(nt[0]).includes($t)?Rt:null).filter(nt=>nt!==null),Tt=[],mo=[];go.forEach(nt=>{const Rt=bt[nt][0];Ce(Rt,pt).forEach(Jt=>{Tt.push(nt+"-"+Jt)})}),Co.forEach(nt=>{const Rt=bt[nt][0];Ce(Rt,$t).forEach(Jt=>{mo.push(nt+"-"+Jt)})});const jo=[];Tt.forEach(nt=>{const Rt=se(nt);mo.forEach(yt=>{const Jt=se(yt);Jt[0]===Rt[0]?Jt[1]>=Rt[1]&&jo.push({start:nt,end:yt}):Jt[0]>Rt[0]&&jo.push({start:nt,end:yt})})});const Kt=jo.map(nt=>{let{start:Rt,end:yt}=nt;const Jt=se(Rt),vo=se(yt),Yo={contents:[],startIndex:Jt[1],endIndex:vo[1]};return bt.forEach((Ho,kt)=>{kt>=Jt[0]&&kt<=vo[0]&&Yo.contents.push(Ho)}),Yo}),Ft=[];Kt.forEach(nt=>{const{contents:Rt,startIndex:yt,endIndex:Jt}=nt;if(Rt.length===1)de(Rt[0][0].substring(yt,Jt+1))===de(Je)&&Ft.push(nt);else{const vo=Rt.reduce((Yo,Ho,kt)=>kt===0?Yo+Ho[0].substring(yt):kt===Rt.length-1?Yo+Ho[0].substring(0,Jt+1):Yo+Ho[0],"");de(vo)===de(Je)&&Ft.push(nt)}}),Ft.forEach(nt=>{const Rt=nt.contents[0].index+nt.startIndex;if(Rt>=Pt)if(qt.length>0){const{contents:yt,endIndex:Jt}=qt[qt.length-1],vo=yt[yt.length-1].index+Jt;Rt>vo&&qt.push(nt)}else qt.push(nt)})}return qt},K=gt=>{let{str:Je,matchValue:Pt,pureHTML:bt=!1,replaceEndIndex:qt=0}=gt,pt=[];return Je&&(bt||ae(Je).length===0?pt=Ce(Je,Pt,qt):pt=q(Je,Pt,qt)),pt},xe=function(gt,Je,Pt,bt){bt===void 0&&(bt=""),gt.forEach((qt,pt)=>{let{data:$t,children:go}=qt;const Co=bt.length>0?bt+"-"+pt:""+pt,Tt=K({str:$t.name,matchValue:Pt,pureHTML:!0});Je.push(Tt.map(mo=>a+"/"+Co+"/"+mo)),go&&go.length>0&&xe(go,Je,Pt,Co)})},te=gt=>{let{hotItem:Je,matchValue:Pt,replaceValue:bt,current:qt}=gt;const{hotAttr:{type:pt,textV0:$t,textV1:go,tableData:Co,chartData:Tt,optionData:mo}}=Je;if(u.includes(pt)){const jo=(0,T.YZ)(go,!0);bt=fe(bt);const{newHtml:Kt,replaceEndIndex:Ft}=Ne(jo,qt,Pt,bt),nt=pt===g.x.WTear||pt===g.x.WSticky?p.a.COMMON:pt===g.x.WRichText?p.a.TEXT:p.a.BASIC,Rt=(0,k.A)({html:Kt,componentType:nt,isSearchReplace:!0}),yt=A.z6.createFromBlockArray(Rt.contentBlocks,Rt.entityMap),Jt=A.$t.createWithContent(yt),vo=(0,A.dM)(Jt.getCurrentContent()),Yo=(0,C.qn)(vo),Ho={...Je,hotAttr:{...Je.hotAttr,textV1:Yo}},kt={...Ho.hotAttr,cid:Ho.key};return pt===g.x.WRichText&&(0,r.PQ)(kt),{newItem:{...Ho,hotAttr:kt},replaceEndIndex:Ft}}else if(b.includes(pt)){const jo=$t.text;if(bt=fe(bt),isNaN(qt)){const{newHtml:Kt,replaceEndIndex:Ft}=Ne(jo,qt,Pt,bt);return{newItem:{...Je,hotAttr:{...Je.hotAttr,textV0:{...Je.hotAttr.textV0,text:ce(Kt)}}},replaceEndIndex:Ft}}else{const{newData:Kt,replaceEndIndex:Ft}=We(jo,qt,Pt,bt);return{newItem:{...Je,hotAttr:{...Je.hotAttr,textV0:{...Je.hotAttr.textV0,text:ce(Kt)}}},replaceEndIndex:Ft}}}else if(pt===g.x.WMSelect){const jo=$t.text.split(/\n/),Kt=se(qt),Ft=ze({data:jo,indexArr:Kt,matchValue:Pt,replaceValue:bt});return{newItem:{...Je,hotAttr:{...Je.hotAttr,textV0:{...Je.hotAttr.textV0,text:Ft.join("\n")}}}}}else if(pt===g.x.WTable){const jo=se(qt);if(bt=fe(bt),Pt=fe(Pt),(0,f.SS)(Je.hotAttr)){const Kt={...Je.hotAttr.cells};for(const[Ft,nt]of Object.entries(Kt))if(Ft===""+jo[0]){const{newData:Rt}=We(nt.data||"",jo[1],Pt,bt);Kt[Ft].data=Rt}return{newItem:{...Je,hotAttr:{...Je.hotAttr,cells:Kt}}}}else{const Ft=Co.data.map((nt,Rt)=>Rt===jo[0]?nt.map((yt,Jt)=>{if(Jt===jo[1]){const{newData:vo}=We(yt,jo[2],Pt,bt);return vo}return yt}):nt);return{newItem:{...Je,hotAttr:{...Je.hotAttr,tableData:{...Je.hotAttr.tableData,data:Ft}}}}}}else if(pt===g.x.WChart){const{xAxis:jo,series:Kt}=Tt,Ft=se(qt),nt=Ft[0]===_;let Rt=[];return nt?Rt=ze({data:jo,indexArr:Ft.slice(1),matchValue:Pt,replaceValue:bt}):Rt=Kt.map((yt,Jt)=>{if(Jt===Ft[1]){const{newData:vo}=We(yt.name,Ft[2],Pt,bt);return{...yt,name:vo}}return yt}),nt?{newItem:{...Je,hotAttr:{...Je.hotAttr,chartData:{...Je.hotAttr.chartData,xAxis:Rt}}}}:{newItem:{...Je,hotAttr:{...Je.hotAttr,chartData:{...Je.hotAttr.chartData,series:Rt}}}}}else if(h.includes(pt)){const jo=$t.text,{newData:Kt,replaceEndIndex:Ft}=We(jo,qt,Pt,bt);return{newItem:{...Je,hotAttr:{...Je.hotAttr,textV0:{...Je.hotAttr.textV0,text:Kt}}},replaceEndIndex:Ft}}else if(E.includes(pt)){const jo=qt.split("/");if(jo[0]===a){const Kt=m()(mo),Ft=jo[1],nt=se(Ft);if(nt.length===1){const yt=Kt[nt[0]],{newData:Jt}=We(yt.data.name,parseInt(jo[2]),Pt,bt);Kt[nt[0]].data={...Kt[nt[0]].data,name:Jt}}else{const yt=Jt=>{const{newData:vo}=We(Jt.data.name,parseInt(jo[2]),Pt,bt);Jt.data={...Jt.data,name:vo}};(0,l.PM)({newOptionData:Kt,pathArr:nt,onUpdate:yt})}return{newItem:{...Je,hotAttr:{...Je.hotAttr,optionData:Kt}}}}else{const Kt=$t.text,{newData:Ft}=We(Kt,jo[1],Pt,bt);return{newItem:{...Je,hotAttr:{...Je.hotAttr,textV0:{...Je.hotAttr.textV0,text:Ft}}}}}}return null},H=(gt,Je)=>{const{widget:{key:Pt},pageKey:bt}=gt,{widget:{key:qt},pageKey:pt}=Je;return Pt===qt&&bt===pt},re=(gt,Je,Pt)=>{const bt=gt.find(($t,go)=>go===Je-1),pt=gt.filter($t=>H(bt,$t)).filter($t=>{let{index:go}=$t;return go!==bt.index}).map(($t,go)=>({...$t,newIndex:go}));return gt.filter(($t,go)=>go!==Je-1).map($t=>{const{index:go}=$t,Co=pt.find(Tt=>{let{index:mo,...jo}=Tt;return H($t,jo)&&go===mo});return Co?{...$t,index:Co.newIndex,widget:Pt}:$t})},be=gt=>{const Je=new Map;return gt.forEach(Pt=>{const{widget:{key:bt},pageKey:qt}=Pt,pt=qt+"-"+bt;if(Je.has(pt))Je.get(pt).push(Pt);else{const $t=[Pt];Je.set(pt,$t)}}),[...Je.values()]},Le=gt=>{let{hotItem:Je,matchValue:Pt,replaceValue:bt,indexs:qt}=gt,pt=ve(Pt);const{hotAttr:{type:$t,textV0:go,tableData:Co,chartData:Tt,optionData:mo}}=Je;if(u.concat(b).concat(h).includes($t)){let jo=Je;const Kt=qt.length;let Ft=0;for(;qt.length&&Ft<Kt;){const nt=qt[0],{newItem:Rt,replaceEndIndex:yt}=te({hotItem:jo,matchValue:Pt,replaceValue:bt,current:nt});Ft+=1,jo=Rt,jo?qt=V(jo,Pt,yt):qt.shift()}return jo}else if($t===g.x.WMSelect){const Kt=go.text.split(/\n/).map(Ft=>Ft.replace(pt,bt));return{...Je,hotAttr:{...Je.hotAttr,textV0:{...Je.hotAttr.textV0,text:Kt.join("\n")}}}}else if($t===g.x.WTable)if(bt=fe(bt),Pt=fe(Pt),pt=ve(Pt),(0,f.SS)(Je.hotAttr)){const jo={...Je.hotAttr.cells};for(const[Kt,Ft]of Object.entries(jo))jo[Kt].data=(Ft.data||"").replace(pt,bt);return{...Je,hotAttr:{...Je.hotAttr,cells:jo}}}else{const Kt=Co.data.map(Ft=>Ft.map(nt=>nt.replace(pt,bt)));return{...Je,hotAttr:{...Je.hotAttr,tableData:{...Je.hotAttr.tableData,data:Kt}}}}else if($t===g.x.WChart){const{xAxis:jo,series:Kt}=Tt,Ft=jo.map(Rt=>Rt.replace(pt,bt)),nt=Kt.map(Rt=>({...Rt,name:Rt.name.replace(pt,bt)}));return{...Je,hotAttr:{...Je.hotAttr,chartData:{...Je.hotAttr.chartData,xAxis:Ft,series:nt}}}}else if(E.includes($t)){const jo=m()(mo);Ve(jo,pt,bt);let Kt={...Je,hotAttr:{...Je.hotAttr,optionData:jo}};if(go){const nt=go.text.replace(pt,bt);Kt={...Kt,hotAttr:{...Kt.hotAttr,textV0:{...Je.hotAttr.textV0,text:nt}}}}return Kt}},Ve=(gt,Je,Pt)=>{gt.forEach(bt=>{let{data:qt,children:pt}=bt;qt.name=qt.name.replace(Je,Pt),pt&&pt.length>0&&Ve(pt,Je,Pt)})},Ne=(gt,Je,Pt,bt)=>{let qt="",pt=0;const{contents:$t,startIndex:go,endIndex:Co}=Je;if($t&&$t.length>0)if($t.length===1){const{index:Tt}=$t[0];qt=gt.substring(0,Tt+go)+bt+gt.substring(Tt+Co+1),pt=Tt+go+bt.length}else qt=$t.reduce((Tt,mo,jo)=>{const{index:Kt}=mo;return jo===0?(pt=Kt+go+bt.length,Tt+gt.substring(0,Kt+go)+bt+gt.substring(Kt+mo[0].length,$t[jo+1].index)):jo===$t.length-1?Tt+gt.substring(Kt+Co+1):Tt+gt.substring(Kt+mo[0].length,$t[jo+1].index)},"");return{newHtml:qt.trim()+x.ze,replaceEndIndex:pt}},We=(gt,Je,Pt,bt)=>{const qt=gt.substring(0,Je)+bt+gt.substring(Je+Pt.length),pt=Je+bt.length;return{newData:qt.trim(),replaceEndIndex:pt}},ze=gt=>{let{data:Je,indexArr:Pt,matchValue:bt,replaceValue:qt}=gt;return Je.map((pt,$t)=>$t===Pt[0]?We(pt,Pt[1],bt,qt).newData:pt)},ft=gt=>{const{widget:Je}=gt;return sdkStore.isTrashed(Je.key)?null:sdkStore.getHotItem(Je.key)},mt=gt=>{},i=gt=>{let Je=sdkStore.getHotItem(gt);for(;Je;){var Pt;if(((Pt=Je.hotAttr.bunch)!=null?Pt:Je.hotAttr.type)===g.x.RbPage)return Je.key;Je=sdkStore.getHotItem(Je.sup)}return null}},14615:(Et,ke,e)=>{"use strict";e.d(ke,{kA:()=>l,rE:()=>T,tP:()=>C,vv:()=>A,zs:()=>o});const o=k=>k.ui.fixedLayout.modals,m=k=>{var p;return(p=k.ui.fixedLayout.modals.previewModal)==null?void 0:p.isOpen},g=k=>{var p;return(p=k.ui.fixedLayout.modals.previewComboModal)==null?void 0:p.isOpen},l=k=>{var p;return(p=k.ui.fixedLayout.modals.helpCenterModal)==null?void 0:p.isOpen},C=k=>{var p;return(p=k.ui.fixedLayout.modals.widgetOperationLayoutModal)==null?void 0:p.isOpen},T=k=>k.ui.fixedLayout.modals.optionRemoveModal,A=k=>k.ui.fixedLayout.modals.isDragOrResizeModal},71539:(Et,ke,e)=>{"use strict";e.d(ke,{D:()=>Ys});var o=e(74059),m=e(51044),g=e(72605),l=e(63686),C=e(20029),T=e(78570),A=e(76445),k=e(86634),p=e.n(k),r=e(11777),x=e(59844),f=e(7290),u=e(98386),b=e(47143),h=e(43391),E=e(54606),N=e(98195),z=e(9376),S=e(87704),_=e(95230),y=e(36521),a=e(78647),$=e(90968),ce=e(10572),de=e(82658),fe=e(5683),se=e(21676);const J=se.Ay.div.withConfig({displayName:"styles__StyledRecommendNav",componentId:"sc-3kb17s-0"})(["position:absolute;left:105%;bottom:32px;width:28px;height:28px;display:flex;justify-content:center;align-items:center;cursor:pointer;background:",";border-radius:4px;z-index:4;transition:all 0.2s ease-in-out;box-shadow:0px 2px 6px rgba(0,0,0,0.08);&:hover{background:",";}.toggle-btn{color:",";&.isToggle{transform:rotate(180deg);}}"],lo=>lo.theme.color_bg_white,lo=>lo.theme.color_btn_secondary_active,lo=>lo.theme.color_text_L2),ve=se.Ay.div.withConfig({displayName:"styles__StyledLeftNav",componentId:"sc-3kb17s-1"})(["width:","px;height:100%;padding:6px 0;display:flex;flex-direction:column;align-items:center;justify-content:space-between;background:",";border-right:1px solid ",";.left-nav-top{position:relative;width:100%;display:flex;flex-direction:column;align-items:center;}ul.catalog-list{width:100%;display:flex;flex-direction:column;align-items:center;li{width:38px;height:52px;border-radius:6px;display:flex;flex-direction:column;align-items:center;cursor:pointer;position:relative;color:",";.item-label{font-size:12px;font-weight:400;line-height:12px;white-space:nowrap;}.item-icon{width:32px;height:32px;}&.builtin{.item-icon{path{stroke:",";}}&.active{.item-icon{path{fill:",";stroke:none;}}}&.disabled{.item-icon{path{stroke:",";}}&.active{.item-icon{path{fill:",";stroke:none;}}}}}&.active{background:",";}&.disabled{color:",";cursor:not-allowed;}&:not(.active):not(.disabled):hover{background:",";}&:not(.active):not(.disabled):active{background:",";}&:not(:first-child){margin-top:8px;}}}.set-layout-dropdown{width:24px;height:24px;border-radius:4px;margin-bottom:4px;color:",";&:hover{background-color:",";}&.is-open{background-color:",";}.more-icon{cursor:pointer;width:24px;}}.toggle-btn{width:32px;height:32px;display:flex;align-items:center;justify-content:center;cursor:pointer;&.isToggle{svg.svg-icon{transform:rotate(180deg);}}svg.svg-icon{width:32px;height:32px;path{fill:",";}&:hover{path{fill:",";}}&:active{path{fill:",";}}}}"],_.fn,lo=>lo.theme.color_bg_white,lo=>lo.theme.color_bg_border_01,lo=>lo.theme.color_text_L1,lo=>lo.theme.color_text_L1,lo=>lo.theme.color_text_L1,lo=>lo.theme.color_text_disabled01,lo=>lo.theme.color_text_disabled01,lo=>lo.theme.color_navigation_active,lo=>lo.theme.color_text_disabled01,lo=>lo.theme.color_navigation_active,lo=>lo.theme.color_navigation_active,lo=>lo.theme.color_text_L1,lo=>lo.theme.color_btn_secondary_active,lo=>lo.theme.color_btn_secondary_active,lo=>lo.theme.color_text_L1,lo=>lo.theme.color_interaction_text_area,lo=>lo.theme.color_proto),D=(0,se.DU)(["ul.set-layout-dropdown-menu{position:absolute;top:-72px;}#IBOT_TOOLTIP_ROOT{.nav-item-tooltip.on-right{transform:translate(-5px,-50%);}.nav-item-tooltip.on-right.is-open{transform:translate(-5px,-50%);}}"]);var R=e(35372),V=e(83012),O=e(57464);class Ce extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"optionListInDesign",()=>[{key:N.lS.Directory,label:I18N.LeftSidePanel.directory,icon:"left_panel/nav/directory",shortCut:x.lk["catalogue_"+((0,z.cX)()?"mac":"win")]},{key:N.lS.Builtin,label:I18N.LeftSidePanel.widget,icon:"left_panel/nav/builtin",shortCut:"1",isColorPure:!0},{key:N.lS.Icon,label:I18N.LeftSidePanel.icon,icon:"left_panel/nav/icon",shortCut:"2"},{key:N.lS.Asset,label:I18N.LeftSidePanel.image,icon:"left_panel/nav/asset",shortCut:"3"},{key:N.lS.Page,label:I18N.LeftSidePanel.screens,icon:"left_panel/nav/page",shortCut:"4"},{key:N.lS.Template,label:I18N.LeftSidePanel.master,icon:"left_panel/nav/template",shortCut:"5"},{key:N.lS.Drawio,label:I18N.LeftSidePanel.graphModal.graph.title,icon:"left_panel/dropdown/drawio"}]),(0,o.A)(this,"optionListLoggedIn",[{key:N.lS.AI,label:I18N.LeftSidePanel.ai,icon:"chatGPT/AI_new",shortCut:"8",isColorPure:!0}]),(0,o.A)(this,"optionListInEditBasket",()=>[{key:N.lS.Directory,label:I18N.LeftSidePanel.directory,icon:"left_panel/nav/directory",shortCut:x.lk["catalogue_"+((0,z.cX)()?"mac":"win")]},{key:N.lS.Builtin,label:I18N.LeftSidePanel.widget,icon:"left_panel/nav/builtin",shortCut:"1",isColorPure:!0},{key:N.lS.Icon,label:I18N.LeftSidePanel.icon,icon:"left_panel/nav/icon",shortCut:"2"},{key:N.lS.Asset,label:I18N.LeftSidePanel.image,icon:"left_panel/nav/asset",shortCut:"3"},{key:N.lS.Template,label:I18N.LeftSidePanel.master,icon:"left_panel/nav/template",shortCut:"5"},{key:N.lS.Drawio,label:I18N.LeftSidePanel.graphModal.graph.title,icon:"left_panel/dropdown/drawio"}]),(0,o.A)(this,"optionListInEditCombo",()=>[{key:N.lS.Directory,label:I18N.LeftSidePanel.directory,icon:"left_panel/nav/directory",shortCut:x.lk["catalogue_"+((0,z.cX)()?"mac":"win")]},{key:N.lS.Builtin,label:I18N.LeftSidePanel.widget,icon:"left_panel/nav/builtin",shortCut:"1",isColorPure:!0},{key:N.lS.Icon,label:I18N.LeftSidePanel.icon,icon:"left_panel/nav/icon",shortCut:"2"},{key:N.lS.Asset,label:I18N.LeftSidePanel.image,icon:"left_panel/nav/asset",shortCut:"3"},{key:N.lS.Drawio,label:I18N.LeftSidePanel.graphModal.graph.title,icon:"left_panel/dropdown/drawio"}]),(0,o.A)(this,"getOptionList",()=>{const{isEditingBasket:Ko,isEditingCombo:eo,currentUser:ro}=this.props,Yt=!!(ro!=null&&ro.id);if(Ko)return this.optionListInEditBasket();if(eo)return this.optionListInEditCombo();if(Yt){if(ENV.IS_ON_PREMISES)return this.optionListInDesign()}else return this.optionListInDesign();return this.optionListInDesign()}),(0,o.A)(this,"onToggle",()=>this.props.dispatch({type:"entry:toggle:left-nav-panel"})),(0,o.A)(this,"handleSelectNav",Ko=>{const eo=(0,fe.gu)();if(Ko===N.lS.AI&&eo){this.props.dispatch({type:ce.X.AIOpenModal,payload:{type:de.SR.AIAssistant}}),(0,$.kX)({operation_type:$.bZ[Ko]});return}const{dispatch:ro,currentPopupPanel:Yt,rootProject:Be,layout:Wt}=this.props;if(Ko===N.lS.Drawio){ro({type:"entry:widget:graph:edit",payload:{action:"new-widget"}});return}if(Yt!==Ko){ro({type:"entry:toggle:left-nav-panel",payload:{isAlwaysShow:!0}});const At=Wt==="old_right"?_.sR:_.Cj;Ko===N.lS.Directory?ro({type:"left-panel:set:width",payload:{width:(0,y.Yt)("layer_left_panel_width_"+Be.cid,At,y.qW.Number),isNotSaveLocal:!0}}):ro({type:"left-panel:set:width",payload:{width:At,isNotSaveLocal:!0}}),ro({type:"entry:active:popup:panel",payload:{name:Ko}})}else ro({type:"entry:toggle:left-nav-panel"});(0,$.kX)({operation_type:$.bZ[Ko]})})}componentDidMount(){var Ko,eo;const{currentPopupPanel:ro,layoutV9:Yt,currentUser:Be,dispatch:Wt}=this.props,At=(0,V.XM)();Yt==="recommend"&&!At&&!((Ko=MB.commonGuideHelper)!=null&&Ko.checkGuideHasShown(a.c.GUIDE_NOVICE_V9_2408))&&!((eo=MB.commonGuideHelper)!=null&&eo.checkGuideHasShown(a.c.GUIDE_NOVICE_V9_2408_STEP_1))&&setTimeout(()=>{ro!==N.lS.Builtin&&Wt({type:"entry:active:popup:panel",payload:{name:N.lS.Builtin}})},0),Yt==="recommend"&&(0,R.c)(I18N)[a.c.GUIDE_DRAW_IO_NAV].howToShow({currentUser:Be})}componentWillUnmount(){const{layoutV9:Ko}=this.props;Ko==="recommend"&&MB.commonGuideHelper.closeGuide(a.c.GUIDE_DRAW_IO_NAV)}render(){const{currentPopupPanel:Ko,isLeftPanelShow:eo,fullScreenMode:ro,isEmptyScreen:Yt,layout:Be}=this.props;return ro?(0,O.jsx)(J,{onClick:this.onToggle,children:(0,O.jsx)(f.C,{size:28,className:p()("toggle-btn",{isToggle:!eo}),name:"left_panel/nav/arrow"})}):(0,O.jsxs)(ve,{children:[(0,O.jsx)("div",{className:"left-nav-top",children:(0,O.jsx)("ul",{className:p()("catalog-list",a.c.GUIDE_MORE_PAGE),children:this.getOptionList().map(Wt=>{let{key:At,label:Xe,icon:Vt,shortCut:Xo,isColorPure:rn=!1}=Wt;const Ps=Xo?(0,r.u)({text:At===N.lS.AI?I18N.LeftSidePanel.ai_label:Xe,key:Xo}):Xe,Os=Yt&&![N.lS.Directory].includes(At),ss=eo&&Ko===At,Fs=At===N.lS.Drawio;return(0,O.jsx)(r.A,{content:Ps,direction:"left",tipClassName:"nav-item-tooltip",distance2:-5,children:(0,O.jsxs)("li",{className:p()(At,{active:ss},{disabled:Os},{[a.c.GUIDE_DRAW_IO_NAV]:Fs}),onClick:Os?null:()=>this.handleSelectNav(At),children:[(0,O.jsx)(f.C,{className:"item-icon",name:ss?Vt+"/selected":Vt,isColorPure:rn}),(0,O.jsx)("span",{className:"item-label",children:Xe})]})},At)})})}),(0,O.jsx)(S.e,{layout:Be}),(0,O.jsx)(D,{})]})}}const ae=(0,l.Mz)([u.Xf,u.OW,C.T7,E.r,h.C,T.bP,b.PL,b.HW,T.MZ],(lo,Ko,eo,ro,Yt,Be,Wt,At,Xe)=>{let{isEditingCombo:Vt,isEditingMuban:Xo,isEditingBasket:rn}=ro,{isEmptyScreen:Ps}=Yt;return{currentPopupPanel:Ko,isLeftPanelShow:lo,fullScreenMode:eo,isEditingBasket:rn||Xo,isEditingCombo:Vt,isEmptyScreen:Ps,layout:Be,rootProject:Wt,currentUser:At,layoutV9:Xe}}),q=(0,g.Ng)(lo=>ae(lo))(Ce);var K=e(11123),xe=e(94153),te=e(30973),H=e(19418),re=e(20571),be=e(44057),Le=e(39719),Ve=e(31552),Ne=e(44622),We=e(64303),ze=e(63555),ft=e(96731),mt=e(60482),i=e(93869),gt=e(8580),Je=e(53955),Pt=e(28678);const bt=(0,se.Ay)(be.Ay).withConfig({displayName:"styles__StyledContextMenu",componentId:"sc-1p3afdo-0"})(["&.mb-screen-context-menu{ul{min-width:176px;padding:8px;}ul{border-radius:8px;border:1px solid ",";color:",";background:",";box-shadow:",";li.MenuItem{a{border-radius:4px;background:",";color:",";svg path{fill:",";}.right-arrow svg > path{fill:",";}.shortfont kbd{color:",";}}&:not(.disabled).active{a{background:",";}}&.disabled{a{color:",";svg path{fill:",";}.shortfont kbd{color:",";}}}}}.SubMenu{min-width:160px;max-width:152px;position:absolute;&:lang(en){max-width:200px;}li.MenuItem{position:relative;width:100%;> a{padding-left:16px;align-items:stretch;span{display:inline-block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;&.text{line-height:28px;}}}}}}"],lo=>lo.theme.color_bg_border_01,lo=>lo.theme.color_text_L1,lo=>lo.theme.color_bg_white,lo=>lo.theme.shadow_m,lo=>lo.theme.color_bg_white,lo=>lo.theme.color_text_L1,lo=>lo.theme.color_text_L1,lo=>lo.theme.color_text_L3,lo=>lo.theme.color_text_L3,lo=>lo.theme.color_btn_secondary_hover,lo=>lo.theme.color_text_disabled01,lo=>lo.theme.color_text_disabled01,lo=>lo.theme.color_text_disabled01);var qt=e(31626),pt=e(15039);const $t=lo=>{const Ko=Wt=>sdkStore.getHotItem(Wt),eo=Wt=>{let At=0,Xe=Wt;for(;Xe!=="B@main";){const Vt=Ko(Xe);if(!Vt)return-1;At++,Xe=Vt.sup}return At},ro=Wt=>{const At=Ko(Wt);if(!At||At.hotAttr.asFolder===!1)return 0;let Xe=0;for(const Vt of At.sub){const Xo=ro(Vt);Xo>Xe&&(Xe=Xo)}return Xe+1},Yt=eo(lo),Be=ro(lo);return{rootToTargetDepth:Yt,targetSubtreeDepth:Be}};class go extends m.PureComponent{render(){const{position:Ko,screenTreeData:eo,screenDataMap:ro,screenSelection:Yt,onMouseLeave:Be,actionProps:Wt,screenMeta:At,isEditingCombo:Xe,isEditingProjectMain:Vt,currentProject:Xo,isMultiplePage:rn}=this.props;return(0,O.jsx)(bt,{className:p()("mb-screen-context-menu"),position:Ko,onClose:Be,children:(0,O.jsx)(Co,{isSelectedSingle:!0,contextScreenSelection:[At.cid],onMouseLeave:Be,screenTreeData:eo,screenDataMap:ro,screenSelection:Yt,isEditingProjectMain:Vt,currentProject:Xo,isEditingCombo:Xe,isMultiplePage:rn,...Wt})})}}const Co=lo=>{let{isSelectedSingle:Ko,onCreateNewScreenMetaChild:eo,onCreateNewScreenMetaPrevSibling:ro,onCreateNewScreenMetaNextSibling:Yt,onCreateNewScreenFolderNextSibling:Be,onCreateNewScreenFolderPrevSibling:Wt,onNewScreenFolderChild:At,onUpdateScreenLevel:Xe,onDup:Vt,onTransfer:Xo,onDel:rn,onExportPng:Ps,onSingleSelect:Os,onRename:ss,selectNotMoveDownScreenSet:Fs,selectNotMoveUpScreenSet:Ei,isNotUpgrade:vi,isNotDownGrade:li,contextScreenSelection:Ci,screenTreeData:yi,screenDataMap:ea,screenSelection:ii,currentProject:Wi,isEditingProjectMain:ua,isEditingCombo:va,isMultiplePage:tr}=lo;const xa=ea[Ci[0]];if(!xa)return null;const dr=Ci.every(ar=>ea[ar].hotAttr.asFolder),gr=tr&&(!Ko||Ko&&ii.length===1&&xa.key===ii[0]),ir=ar=>{ar.preventDefault(),eo(Ko?xa:null)},Wr=ar=>{ar.preventDefault(),ro(Ko?xa:null)},pl=ar=>{ar.preventDefault(),Yt(Ko?xa:null)},br=ar=>{ar.preventDefault(),Wt(Ko?xa:null)},Na=ar=>{ar.preventDefault(),Be(Ko?xa:null)},Nr=ar=>{ar.preventDefault(),At(Ko?xa:null)},ma=function(ar,ec){ec===void 0&&(ec=1),ar.preventDefault(),Xe(Ko?xa:null,ec)},hr=ar=>{ar.preventDefault(),Vt(Ko?xa:null,gr)},Ir=ar=>{ar.preventDefault(),Xo(Ko?xa:null,gr)},Jr=ar=>{ar.preventDefault(),rn(Ko?xa:null,gr)},ml=ar=>{ar.preventDefault(),!MB.global.experienceLoginModalHelper("isSave")&&(Ko&&Os(Ko?xa:null),Ps())},zc=()=>{ss(xa)},zl=ar=>async ec=>{if(ec.preventDefault(),MB.global.experienceLoginModalHelper("isSave"))return;if(!1)MB.action("modal:update:state",{rightsAndInterestsModal:{isOpen:!0,type:ft.hC.MaxSharingCount,isFromScreenList:!0,project:Wi}});else{var Yc;let _c;const Zc=Ci[0];ar==="curPage"?_c=Ci:ar==="curPageWithChid"||ar==="selectedMultiPage"?_c=Array.from(new Set([...Ci,...(0,Ne.he)(Ci,yi)])):ar==="curFolderWithChid"?_c=Ci:ar==="allPage"&&(_c=[]);const i0=xa.hotAttr.name;let Mc="\u5206\u4EAB";_c.length===1?Mc=""+i0:_c.length>1&&(Mc=i0+"...\u7B49"+_c.length+"\u4E2A\u9875\u9762"),_c=(0,mt.Uh)(_c);const Id=(0,y.Yt)(Wi.cid+"_default_sharing_view_mode","read_only",y.qW.String),Tc=(0,mt.CV)({accessToken:Wi.access_token,view_mode:Id,selection:null,pageKey:Zc}),jd=(0,mt.R_)(Tc,MB.getRootProject().name,Mc,"");(0,i.$)(jd);const mp=(0,Je.dP)();(mp==null||(Yc=mp.current)==null||(Yc=Yc.importAbarOptions)==null?void 0:Yc.isFromAbar)&&(0,gt.M2)()?MB.notice({text:"\u5206\u4EAB\u94FE\u63A5\u5DF2\u590D\u5236",duration:5e3}):MB.notice({text:I18N.ScreenPanel.copy_share_url_success,CustomChildComponent:Le.pU,duration:5e3}),(0,Pt.O3)({operation_from:"\u76EE\u5F55\u5217\u8868",operation_type:Pt.VW.CopySharingLink}),(0,pt.E9)({project:Wi,isEditMode:!0,shareSource:"\u753B\u5E03\u590D\u5236\u5206\u4EAB\u94FE\u63A5"})}};let Wl,$r,Bl,Jl,$l,Rl,Ic=!1,Sl=!1,ql=!1,uc=!1;if(Ko){var mc,ld,Gc;const{sup:ar}=xa,ec=(0,Ne.BS)(xa);Wl=((mc=ec[(ec==null?void 0:ec.length)-1])==null?void 0:mc.cid)===xa.key;const gd=(0,Ne.c$)(xa),Yc=(0,Ne.zK)(xa.key);$l=Yc<7;const _c=4;$r=((ld=ec[0])==null?void 0:ld.cid)===(xa==null?void 0:xa.key),Jl=Yc-1+gd===7||$r,Bl=((Gc=sdkStore.getHotItem(ar))==null?void 0:Gc.hotAttr.bunch)!==ze.x.RbPage,Ic=(0,Ne.Mo)(xa);const Zc=ec.findIndex(Id=>Id.cid===xa.key),{rootToTargetDepth:i0,targetSubtreeDepth:Mc}=$t(xa.key);ql=i0+Mc>_c||$r||!(0,Ne.Mo)(ec[Zc-1]),Sl=ar==="B@main",uc=Yc<_c,(0,Ne.Mo)(xa)?Rl="curFolderWithChid":(ar==null?void 0:ar.length)>0?Rl="curPageWithChid":Rl="curPage"}else Wl=Array.from(Fs||[]).length===Ci.length,$r=Array.from(Ei||[]).length===Ci.length,Bl=vi,Jl=li||$r,Rl="selectedMultiPage";return(0,O.jsxs)(O.Fragment,{children:[!tr&&Ko&&!va&&(0,O.jsxs)(be.Dr,{text:I18N.ContextMenu.add,isAiry:!0,children:[(0,O.jsx)(be.Dr,{text:I18N.ContextMenu.sub_page,disabled:!$l,onClick:ir}),(0,O.jsx)(be.Dr,{text:I18N.ContextMenu.add_page_above,onClick:Wr}),(0,O.jsx)(be.Dr,{text:I18N.ContextMenu.add_page_below,onClick:pl}),(0,O.jsx)(be.Dr,{text:I18N.ContextMenu.sub_folder,disabled:!$l,onClick:Nr})]}),!tr&&Ko&&va&&va&&Ic&&(0,O.jsxs)(be.Dr,{text:I18N.ContextMenu.add,isAiry:!0,children:[(0,O.jsx)(be.Dr,{text:I18N.Resources.combo_panel.add_folder_above,onClick:br}),(0,O.jsx)(be.Dr,{text:I18N.Resources.combo_panel.add_folder_below,onClick:Na}),(0,O.jsx)(be.Dr,{text:I18N.ContextMenu.sub_folder,disabled:!uc,onClick:Nr})]}),(0,O.jsxs)(be.Dr,{text:I18N.ContextMenu.move,isAiry:!0,children:[(0,O.jsx)(be.Dr,{text:I18N.ContextMenu.move_up,disabled:$r,onClick:ar=>ma(ar,We.$.MOVEUP)}),(0,O.jsx)(be.Dr,{text:I18N.ContextMenu.move_down,disabled:Wl,onClick:ar=>ma(ar,We.$.MOVEDOWN)}),va&&Ic&&(0,O.jsx)(be.Dr,{text:I18N.ContextMenu.upgrade,disabled:Sl,onClick:ar=>ma(ar,We.$.UPGRADE)}),va&&Ic&&(0,O.jsx)(be.Dr,{text:I18N.ContextMenu.downgrade,disabled:ql,onClick:ar=>ma(ar,We.$.DOWNGRADE)}),!va&&(0,O.jsx)(be.Dr,{text:I18N.ContextMenu.upgrade,disabled:Bl,onClick:ar=>ma(ar,We.$.UPGRADE)}),!va&&(0,O.jsx)(be.Dr,{text:I18N.ContextMenu.downgrade,disabled:Jl,onClick:ar=>ma(ar,We.$.DOWNGRADE)})]}),(0,O.jsx)(be.Dr,{text:I18N.ContextMenu.duplicate,onClick:hr}),!va&&(0,O.jsx)(be.Dr,{text:I18N.ContextMenu.move_to,onClick:Ir,canClick:!0}),!tr&&Ko&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(be.Dr,{text:I18N.ContextMenu.rename,onClick:zc}),!va&&(0,O.jsx)(qt.c,{})]}),(0,O.jsx)(be.Dr,{text:I18N.ContextMenu.delete,onClick:Jr}),(Ko&&(xa==null?void 0:xa.orientation)!=="folder"||!Ko)&&!va&&ua&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(qt.c,{}),(0,O.jsx)(be.Dr,{text:I18N.ContextMenu.export_to_png,onClick:ml,disabled:dr})]}),!tr&&(Ko||Rl==="curFolderWithChid")&&!va&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(qt.c,{}),Rl==="curFolderWithChid"?(0,O.jsx)(Ve.$m,{text:I18N.ContextMenu.copy_share_link,tips:I18N.ContextMenu.include_all_paged,onClick:zl("allPage")}):(0,O.jsx)(Ve.$m,{text:I18N.ContextMenu.copy_share_link,tips:I18N.ContextMenu.share_link_browsing_from_current_page,onClick:zl("allPage")})]})]})},Tt=lo=>{let{screenMeta:Ko,screenTreeData:eo}=lo;return(0,Ne.Bq)((Ko==null?void 0:Ko.sup)||"B@main",eo).children.findIndex(Yt=>Yt.cid===(Ko==null?void 0:Ko.key))+1},mo=lo=>{let{screenSelection:Ko,screenDataMap:eo,screenTreeData:ro}=lo;const Yt=new Set,Wt=Ko.map(Xe=>eo[Xe]).filter(Xe=>Xe==null?void 0:Xe.key).sort((Xe,Vt)=>Xe.hotAttr.zIndex-Vt.hotAttr.zIndex);return Wt.forEach(Xe=>{Tt({screenMeta:Xe,screenTreeData:ro})<=1&&Yt.add(Xe==null?void 0:Xe.key)}),Wt.filter(Xe=>{let{key:Vt}=Xe;return!Yt.has(Vt)}).forEach(Xe=>{var Vt;const Xo=(0,Ne.Bq)((Xe==null?void 0:Xe.sup)||"B@main",ro),rn=Xo.children.findIndex(Ps=>Ps.cid===(Xe==null?void 0:Xe.key))+1;Yt.has((Vt=Xo.children[rn-1-1])==null?void 0:Vt.cid)&&Yt.add(Xe==null?void 0:Xe.key)}),Yt},jo=lo=>{let{screenSelection:Ko,screenDataMap:eo,screenTreeData:ro}=lo;const Yt=new Set,Wt=Ko.map(Xe=>eo[Xe]).filter(Xe=>Xe==null?void 0:Xe.key).sort((Xe,Vt)=>Vt.hotAttr.zIndex-Xe.hotAttr.zIndex);return Wt.forEach(Xe=>{const Vt=(0,Ne.Bq)((Xe==null?void 0:Xe.sup)||"B@main",ro);Vt.children.findIndex(rn=>rn.cid===(Xe==null?void 0:Xe.key))+1>=Vt.children.length&&Yt.add(Xe==null?void 0:Xe.key)}),Wt.filter(Xe=>{let{key:Vt}=Xe;return!Yt.has(Vt)}).forEach(Xe=>{var Vt;const Xo=(0,Ne.Bq)((Xe==null?void 0:Xe.sup)||"B@main",ro),rn=Xo.children.findIndex(Ps=>Ps.cid===(Xe==null?void 0:Xe.key))+1;Yt.has((Vt=Xo.children[rn])==null?void 0:Vt.cid)&&Yt.add(Xe==null?void 0:Xe.key)}),Yt},Kt=lo=>{let{screenSelection:Ko,selectScreenMetaParentSet:eo,screenDataMap:ro,screenTreeData:Yt,selectNotMoveUpScreenSet:Be}=lo;const Wt=new Set;return Ko.map(rn=>ro[rn]).filter(rn=>rn==null?void 0:rn.key).forEach(rn=>{const Ps=(0,Ne.Bq)(rn==null?void 0:rn.key,Yt),Os=(0,Ne.QR)(Ps),ss=(0,Ne.zK)(rn==null?void 0:rn.key),Fs=Tt({screenMeta:rn,screenTreeData:Yt});(ss-1+Os===7||Fs===1)&&Wt.add(rn.key)}),{isNotDownGrade:Array.from(eo).filter(rn=>!Wt.has(rn)&&!Be.has(rn)).length===0,selectNotDownGradeScreenSet:Wt}},Ft=lo=>{let{screenSelection:Ko,screenDataMap:eo,screenTreeData:ro}=lo;const Yt=new Set,Wt=Ko.map(At=>eo[At]).filter(At=>At==null?void 0:At.key).sort((At,Xe)=>Xe.hotAttr.zIndex-At.hotAttr.zIndex);return Wt.forEach(At=>{(0,Ne.Bq)(At.key,ro).children.length>=0&&Yt.add(At.key)}),Wt.forEach(At=>{(0,Ne.e7)(At.key).forEach(Vt=>{Yt.has(Vt.key)&&Yt.delete(At.key)})}),Yt},nt=lo=>{let{screenSelection:Ko,screenDataMap:eo,selectScreenMetaParentSet:ro}=lo;const Yt=new Set;return Ko.map(At=>eo[At]).filter(At=>At==null?void 0:At.key).forEach(At=>{(!At.sup||At.sup==="B@main")&&Yt.add(At.key)}),{isNotUpgrade:Yt.size===ro.size}};class Rt extends m.PureComponent{constructor(Ko){var eo;super(Ko),eo=this,(0,o.A)(this,"handleClose",()=>{this.props.dispatch({type:"screen:close:contextmenu"})}),(0,o.A)(this,"handleDelete",function(Wt,At){At===void 0&&(At=!1);const{contextScreenSelection:Xe,dispatch:Vt}=eo.props;if(At){Vt({type:"entry:remove:screen:selection:del"});return}if(Wt){Vt({type:"entry:remove:screen:check:del",payload:{screen:Wt}});return}Vt({type:"entry:remove:screen:list:by:context_menu",payload:{screenSelection:Xe}})}),(0,o.A)(this,"handleUpdateScreenLevel",(Wt,At)=>{const{dispatch:Xe}=this.props;Xe({type:"entry:update:screen_list:by:sort:direction",payload:{screenMeta:Wt,direction:At}})}),(0,o.A)(this,"handleExportPng",()=>this.props.dispatch({type:"entry:toolbar:open:export_menu",payload:{open:!0}})),(0,o.A)(this,"handleTransfer",function(Wt,At){At===void 0&&(At=!1);const{dispatch:Xe}=eo.props;MB.global.experienceLoginModalHelper("isSave")||Xe({type:"entry:transfer:screen",payload:{screen:Wt,isScreenSelectionContextMenu:At}})}),(0,o.A)(this,"handleOnDup",function(Wt,At){At===void 0&&(At=!1);const{dispatch:Xe}=eo.props;if(At){Xe({type:"entry:dup:screen:selection",payload:{isScreenSelectionContextMenu:At}});return}if(Wt){Xe({type:"entry:check:dup:screen:page:folder",payload:{screen:Wt}});return}Xe({type:"entry:check:dup:screen:page:folder:batch"})}),(0,o.A)(this,"handleCreateNewScreenMetaChild",Wt=>{const{dispatch:At}=this.props;At({type:"entry:create:screen:auto:to:root-project",payload:{isCreateChildren:!0,parentScreen:Wt}})}),(0,o.A)(this,"handleCreateNewScreenMetaNextSibling",Wt=>{const{dispatch:At}=this.props;At({type:"entry:create:screen:auto:to:root-project",payload:{parentScreen:Wt}})}),(0,o.A)(this,"handleCreateNewScreenMetaPrevSibling",Wt=>{const{dispatch:At}=this.props;At({type:"entry:create:screen:auto:to:root-project",payload:{parentScreen:Wt,direction:We.$.MOVEDOWN}})}),(0,o.A)(this,"handleNewScreenFolderChild",Wt=>{const{dispatch:At}=this.props;At({type:"entry:create:screen_folder:auto:to:root-project",payload:{isCreateChildren:!0,parentScreenFolder:Wt}})}),(0,o.A)(this,"handleNewScreenFolderNextSibling",Wt=>{const{dispatch:At}=this.props;At({type:"entry:create:creeen_folder:auto:to:current_folder",payload:{isCreateNextSibling:!0,curScreenFolder:Wt}})}),(0,o.A)(this,"handleNewScreenFolderPrevSibling",Wt=>{const{dispatch:At}=this.props;At({type:"entry:create:creeen_folder:auto:to:current_folder",payload:{curScreenFolder:Wt}})}),(0,o.A)(this,"handleActiveScreenMeta",Wt=>{const{dispatch:At}=this.props,{cid:Xe,key:Vt}=Wt,Xo=Xe||Vt;At({type:"entry:memory:current:screen:offset:scale"}),At({type:"entry:exit:edit:basket"}),At({type:"entry:goto:project-alike",payload:{screenMetaCid:Xo}}),At({type:"entry:memory:last:screenAndCanvas",payload:{screenMetaCid:Xo}}),At({type:"screen:update:screen-selection",payload:{screenSelection:[Xo]}}),At({type:"entry:activate:screen",payload:{screenCid:Xo}})}),(0,o.A)(this,"onRename",Wt=>{const{key:At,hotAttr:Xe,sup:Vt,sub:Xo}=Wt,rn={cid:At,...Xe,sup:Vt,sub:Xo};this.handleActiveScreenMeta(rn);const{dispatch:Ps}=this.props;Ps({type:"screen:update:editing-screen-cid",payload:{cid:rn.cid}})});const{screenTreeData:ro,screenDataMap:Yt,contextScreenSelection:Be}=Ko;if(Be.length>1){const Wt=Ft({screenSelection:Be,screenDataMap:Yt,screenTreeData:ro}),At=mo({screenTreeData:ro,screenSelection:Be,screenDataMap:Yt}),Xe=jo({screenTreeData:ro,screenSelection:Be,screenDataMap:Yt}),{isNotUpgrade:Vt}=nt({screenSelection:Be,screenDataMap:Yt,selectScreenMetaParentSet:Wt});this.isNotUpgrade=Vt;const{isNotDownGrade:Xo,selectNotDownGradeScreenSet:rn}=Kt({screenSelection:Be,screenTreeData:ro,selectScreenMetaParentSet:Wt,screenDataMap:Yt,selectNotMoveUpScreenSet:At});this.isNotDownGrade=Xo,this.props.dispatch({type:"screen:update:state",payload:{selectNotMoveUpScreenSet:At,selectNotMoveDownScreenSet:Xe,selectNotDownGradeScreenSet:rn,selectScreenMetaParentSet:Wt}})}}render(){const{position:Ko,selectNotMoveUpScreenSet:eo,selectNotMoveDownScreenSet:ro,screenTreeData:Yt,contextScreenSelection:Be,screenDataMap:Wt,currentProject:At,isEditingProjectMain:Xe,isEditingCombo:Vt,isMultiplePage:Xo,screenSelection:rn}=this.props;return(0,O.jsx)(bt,{className:p()("mb-screen-context-menu"),position:Ko,onClose:this.handleClose,children:(0,O.jsx)(Co,{isSelectedSingle:Be.length===1,onUpdateScreenLevel:this.handleUpdateScreenLevel,onExportPng:this.handleExportPng,onDel:this.handleDelete,onTransfer:this.handleTransfer,onDup:this.handleOnDup,selectNotMoveUpScreenSet:eo,selectNotMoveDownScreenSet:ro,isNotUpgrade:this.isNotUpgrade,isNotDownGrade:this.isNotDownGrade,contextScreenSelection:Be,screenTreeData:Yt,screenDataMap:Wt,screenSelection:rn,onCreateNewScreenMetaChild:this.handleCreateNewScreenMetaChild,onCreateNewScreenMetaNextSibling:this.handleCreateNewScreenMetaNextSibling,onCreateNewScreenMetaPrevSibling:this.handleCreateNewScreenMetaPrevSibling,onCreateNewScreenFolderNextSibling:this.handleNewScreenFolderNextSibling,onCreateNewScreenFolderPrevSibling:this.handleNewScreenFolderPrevSibling,onNewScreenFolderChild:this.handleNewScreenFolderChild,onSingleSelect:this.handleActiveScreenMeta,onRename:this.onRename,currentProject:At,isEditingProjectMain:Xe,isEditingCombo:Vt,isMultiplePage:Xo})})}}const yt=(0,l.Mz)([xe.I_,u.Hs,u.He,u.HA,xe.ey,xe.Xw,xe.nF,u.WU,b.Ur,b.PL,E.r,b.fv],(lo,Ko,eo,ro,Yt,Be,Wt,At,Xe,Vt,Xo,rn)=>{let{isEditingProjectMain:Ps,isEditingCombo:Os}=Xo,{isFromAbar:ss}=rn;const{position:Fs,show:Ei,contextScreenSelection:vi}=lo,{cid:li}=Xe||{};return{show:Ei,contextScreenSelection:vi,position:Fs,screenSelection:Ko,screenDataMap:eo,screenTreeData:ro,selectNotMoveUpScreenSet:Yt,selectNotMoveDownScreenSet:Be,selectNotDownGradeScreenSet:Wt,activeScreenMetaCid:li,currentProject:Vt,isEditingProjectMain:Ps,isEditingCombo:Os,isFromAbar:ss,isMultiplePage:At}}),Jt=lo=>{let{show:Ko,dispatch:eo,position:ro,...Yt}=lo;return Ko&&(0,O.jsx)(Rt,{position:ro,dispatch:eo,...Yt},String(ro.top)+String(ro.left))},vo=(0,g.Ng)(lo=>yt(lo))(Jt);var Yo=e(33169),Ho=e(77242),kt=e(66965),Ze=e(14116),it=e(52367),st=e(88223);class dt extends m.PureComponent{constructor(){var Ko;super(...arguments),Ko=this,(0,o.A)(this,"state",{isMenuOpen:!1,position:{left:0,top:0}}),(0,o.A)(this,"setElementRef",eo=>this.$element=eo),(0,o.A)(this,"handleClickAction",eo=>{eo.stopPropagation(),this.handleToggle()}),(0,o.A)(this,"handleToggle",function(eo){eo===void 0&&(eo=void 0);const{isMenuOpen:ro}=Ko.state,{screenMeta:Yt,onToggle:Be}=Ko.props,Wt=eo!==void 0?eo:!ro;Ko.setState({isMenuOpen:Wt}),Be(Wt?Yt.cid:""),Ko.handleSetPosition()}),(0,o.A)(this,"handleSetPosition",()=>{if(!this.$element)return;const eo=this.$element.getBoundingClientRect();this.setState({position:{left:eo.left+eo.width,top:eo.top}})}),(0,o.A)(this,"handleClickOutSide",eo=>{let{target:ro}=eo;const{isMenuOpen:Yt}=this.state;Yt&&(ro.closest(".MenuItem")||this.$element.contains(ro)||ro.closest(".action")||ro.closest(".settingScreenConfig")||ro.closest(".go-to-sharing")||this.handleToggle(!1))})}render(){const{screenMeta:Ko,actionProps:eo,screenTreeData:ro,screenDataMap:Yt,screenSelection:Be,isEditingCombo:Wt,isEditingProjectMain:At,currentProject:Xe,isMultiplePage:Vt}=this.props,{isMenuOpen:Xo,position:rn}=this.state;return(0,O.jsxs)("div",{ref:this.setElementRef,className:p()("actions",{"is-active":Xo}),onClick:this.handleClickAction,children:[(0,O.jsx)(f.C,{className:"actions-ellipsis",name:"left_panel/screen_action_menu/min"}),Xo&&(0,O.jsx)(go,{screenMeta:Ko,actionProps:eo,position:rn,onMouseLeave:()=>this.handleToggle(!1),screenTreeData:ro,screenDataMap:Yt,screenSelection:Be,isEditingProjectMain:At,isEditingCombo:Wt,currentProject:Xe,isMultiplePage:Vt}),(0,O.jsx)(H.A,{target:document,onMouseDown:(0,H.t)(this.handleClickOutSide,{capture:!0})})]})}}var Ot=e(89099),Ct=e(24016),wo=e(58314),ln=e(67234),Io=e(35524),Lo=e(54909),Ao=e(48590);const xt=(lo,Ko)=>{var eo,ro;if(lo.forceDarkTheme)switch(Ko){case"workspace_dropdown_menu_shadow":return"0 2px 7px 0 rgba(0, 0, 0, 0.26), 0 12px 36px 0 rgba(0, 0, 0, 0.1)";case"color_proto":return"#1A70D8";case"interation_active_box_shadow":return"0 0 4px 0 rgba(41,141,248,0.50)";case"color_bg_select01":return"rgba(69, 157, 253, 0.5)";case"color_bg_select02":return"rgba(69, 157, 253, 0.3)";default:return((eo=Lo.f[Ko])==null?void 0:eo.value_dark)||((ro=Io.qY[Ko])==null?void 0:ro.value)}return lo.theme[Ko]},Ut=(0,se.AH)(["position:relative;height:32px;width:100%;padding-left:14px;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{color:",";}"],lo=>xt(lo,"color_text_L2"),lo=>xt(lo,"color_text_disabled01"),lo=>xt(lo,"color_text_L2"),lo=>xt(lo,"color_text_L2"),lo=>xt(lo,"color_text_L1"),lo=>xt(lo,"color_text_L1"),lo=>xt(lo,"color_btn_secondary_hover"),lo=>xt(lo,"color_text_L1")),Wo=se.Ay.div.withConfig({displayName:"styles__StyledScreenItem",componentId:"sc-121m7wg-0"})([""," .screen-checkbox{position:absolute;z-index:1;left:16px;}.expander{display:flex;align-items:center;justify-content:center;margin-left:-15px;width:14px;height:14px;margin-right:1px;pointer-events:all;.arrow-icon{color:#999;width:8px;&:not(.is-expand){transform:rotate(-90deg);}}}.screen-item-icon{display:flex;flex-shrink:0;justify-content:center;align-items:center;width:24px;height:24px;margin-right:2px;color:",";}.editable-span{flex:1;color:",";margin-right:0;border:none;",";&.show-circle{margin-right:16px;}span.highlight-keyword{font-weight:600;}}&[disabled]{opacity:0.4;pointer-events:none;}.actions{padding:0;margin-right:4px;width:20px;height:20px;border-radius:4px;color:#333;.svg-icon{width:100%;height:100%;color:",";}}.child-screens{position:relative;}&.wait-hover *{pointer-events:none;}&.linking{color:",";background:",";.actions{display:none;}}&:hover,&.hover{background:",";color:unset;}&:not(.is-mult-select):hover,&:not(.is-mult-select).hover{.active-circle{display:none;}.editable-span{margin-right:0;}}&.active,&.is-active{color:",";background:unset;.screen-name{.editable-span{font-weight:500;}.screen-item-icon .icon{color:",";}}.expander .arrow-icon{color:#999;}}&.dummy-select{background:",";.screen-icon{&:not(.disabled).can-hover:hover{background:",";}}.screen-item-icon{.is-open{.screen-icon.canClick{background:",";}}}}&.select{color:",";background:",";.editable-span{font-weight:500;}.screen-name .screen-item-icon .icon{color:",";}.screen-icon{&:not(.disabled).can-hover:hover{background:",";}}.screen-item-icon{.is-open{.screen-icon.canClick{background:",";}}}}&.active .editable-span{font-weight:500;}.active-circle{position:absolute;right:11px;width:6px;height:6px;display:inline-block;border-radius:50%;background:",";}&.is-mult-select{background:",";.screen-name .screen-item-icon .icon{color:",";}}&.context-menu-select{border:1px solid ",";border-radius:4px;&:not(.dummy-select):not(.select){background-color:",";}}.editable-span,.editable-name{&.is-editing{textarea{margin-right:18px;border:1px solid #0077FF;border-radius:6px;line-height:16px;padding:3px 6px;}}}"],Ut,lo=>xt(lo,"color_text_L1"),lo=>xt(lo,"color_text_L1"),Ao.L9,lo=>xt(lo,"color_text_L1"),lo=>xt(lo,"color_text_L2"),lo=>xt(lo,"color_bg_select02"),lo=>xt(lo,"color_directory_hover"),lo=>xt(lo,"color_text_L1"),lo=>xt(lo,"color_text_L1"),lo=>xt(lo,"color_directory_hover"),lo=>xt(lo,"color_bg_border_01"),lo=>xt(lo,"color_bg_border_01"),lo=>xt(lo,"color_text_L1"),lo=>xt(lo,"color_directory_active"),lo=>xt(lo,"color_text_L1"),lo=>xt(lo,"color_bg_border_02"),lo=>xt(lo,"color_bg_border_02"),lo=>xt(lo,"color_text_link_normal"),lo=>xt(lo,"color_directory_active"),lo=>xt(lo,"color_text_L1"),lo=>lo.theme.color_btn_primary_normal,lo=>xt(lo,"color_directory_active"));class qo extends m.PureComponent{constructor(Ko){super(Ko),(0,o.A)(this,"timer",null),(0,o.A)(this,"setElementRef",eo=>this.$elem=eo),(0,o.A)(this,"handleExpand",eo=>{eo.stopPropagation();const{screenMeta:ro,actionProps:{onExpand:Yt}}=this.props;Yt(ro)}),(0,o.A)(this,"handleClick",async eo=>{eo.stopPropagation();const{depth:ro,screenMeta:Yt,actionProps:{onClick:Be},isMultiplePage:Wt}=this.props;Be(eo,Yt,ro,Wt)}),(0,o.A)(this,"handleDown",eo=>{const{screenMeta:ro,actionProps:{onDropDown:Yt,onContextMenu:Be}}=this.props;eo.button===0?this.timer=setTimeout(()=>{Yt&&Yt(eo,ro)},200):eo.button===2&&Be&&Be(eo,ro)}),(0,o.A)(this,"handleMouseUp",()=>{clearTimeout(this.timer)}),(0,o.A)(this,"handleEdit",()=>{const{isMultiplePage:eo}=this.props;if(eo)return;const{screenMeta:ro,actionProps:{onEdit:Yt}}=this.props;Yt&&Yt(ro)}),(0,o.A)(this,"handleNameChange",(eo,ro)=>{const{screenMeta:Yt,actionProps:{onNameChange:Be}}=this.props;Be&&Be(Yt,eo,this.isNewScreenMeta,ro),this.isNewScreenMeta=!1}),(0,o.A)(this,"handleToggle",eo=>{this.setState({hoverCid:eo})}),(0,o.A)(this,"onShowTipsByTarget",(eo,ro)=>{const Yt=ro.querySelector(".editable-span");return Yt.offsetWidth<Yt.scrollWidth}),(0,o.A)(this,"onSelectByCheckbox",(eo,ro,Yt)=>{Yt.stopPropagation();const{depth:Be,screenMeta:Wt,actionProps:{onClick:At},isMultiplePage:Xe}=this.props;At(Yt,Wt,Be,Xe)}),(0,o.A)(this,"handleToggleHover",(eo,ro)=>{eo.stopPropagation();const{actionProps:{onToggleHover:Yt},screenMeta:{cid:Be}}=this.props;Yt&&Yt(ro?Be:"")}),this.isNewScreenMeta=!1,this.state={hoverCid:""}}componentDidMount(){this.props.isEditing&&(this.isNewScreenMeta=!0)}stopPropagation(Ko){Ko.stopPropagation()}render(){const{depth:Ko,screenMeta:eo,actionProps:ro,isMultSelect:Yt,screenTreeData:Be,screenDataMap:Wt,screenSelection:At,contextMenuState:Xe,isActive:Vt,isEditing:Xo,isSelect:rn,isExpand:Ps,showExpander:Os,isDummySelect:ss,paddingLeftLayout:Fs,theme:Ei,recentlyUsedScreenMetaIcons:vi,onlyView:li,isEditingCombo:Ci,initPaddingLeft:yi,isEditingProjectMain:ea,currentProject:ii,isMultiplePage:Wi,highlightKeyword:ua,className:va}=this.props,{hoverCid:tr}=this.state,xa=(0,Ct.N8)(Ko,Fs,yi)+28*Number(Wi),dr=(0,Ne.Mo)(eo),{cid:gr,name:ir,icon:Wr}=eo,pl=tr===gr,br=(Xe==null?void 0:Xe.show)&&(Xe==null?void 0:Xe.contextScreenSelection.length)===1&&(Xe==null?void 0:Xe.contextScreenSelection[0])===gr,Na=Vt&&!Xo&&!pl;return(0,O.jsx)(r.A,{content:ir,distance:5,direction:"right",onMouseEvent:"onDoubleClick",isShowTipsByTarget:this.onShowTipsByTarget,children:(0,O.jsxs)(Wo,{ref:this.setElementRef,"data-cid":gr,"data-interactive-target-type":dr?"":wo.E.page,"data-interactive-target-key":gr,onClick:this.handleClick,onMouseDown:this.handleDown,onDoubleClick:this.handleEdit,onMouseUp:this.handleMouseUp,onMouseEnter:Nr=>this.handleToggleHover(Nr,!0),onMouseLeave:Nr=>this.handleToggleHover(Nr,!1),style:{paddingLeft:xa},className:p()("rn-list-item",va,{active:Vt,select:rn,hover:pl&&!br,folder:dr,page:!dr,"dummy-select":ss,"is-mult-select":Yt,"context-menu-select":br,"interactive-target-hotspot":!dr}),children:[Wi&&(0,O.jsx)("div",{className:"screen-checkbox",onClick:this.stopPropagation,children:(0,O.jsx)(ln.A,{attr:"selectByCheckbox",isChecked:rn,onChange:this.onSelectByCheckbox})}),Os&&(0,O.jsx)("a",{className:"expander",onClick:this.handleExpand,onDoubleClick:this.stopPropagation,children:(0,O.jsx)(f.C,{className:p()("arrow-icon",{"is-expand":Ps}),name:"common/expand"})}),(0,O.jsx)("div",{className:"screen-item-icon",onClick:Os?this.handleExpand:null,onDoubleClick:this.stopPropagation,children:(0,O.jsx)(Ot.k,{isEditingCombo:Ci,screenMeta:eo,icon:Wr,theme:Ei,isExpand:Ps,recentlyUsedScreenMetaIcons:vi,actionProps:ro.iconAction})}),li?(0,O.jsx)("span",{className:p()("editable-span",{"show-circle":Na}),children:(0,O.jsx)(it.A,{value:(0,st.wh)(ir),highlightKeyword:ua})}):(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(Ze.A,{isEditing:Xo,className:p()("editable-span",{"show-circle":Na}),value:(0,st.wh)(ir),highlightKeyword:ua,onConfirm:this.handleNameChange},ir),!Xo&&!Yt&&!br&&(0,O.jsx)(dt,{screenMeta:eo,actionProps:ro,viewMode:"literal",onToggle:this.handleToggle,screenTreeData:Be,screenDataMap:Wt,screenSelection:At,isEditingCombo:Ci,isEditingProjectMain:ea,currentProject:ii,isMultiplePage:Wi})]}),Na&&(0,O.jsx)("span",{className:"active-circle"})]})})}}const sn=(lo,Ko,eo)=>{const ro=document.querySelector("#screen-scroll-list"),Yt=ro.firstChild,Be=Array.from(ro.querySelectorAll(".rn-content-item")),Wt=ro.getBoundingClientRect(),At=Yt.getBoundingClientRect(),Xe=[],Vt={},Xo=MB.__store__.getState(),rn=(0,xe.TZ)(Xo);let Ps=new Set,Os=1,ss=Ko;if(lo){const Ei=new Set(Ko),vi=new Set;for(const Ci of Ko){const yi=sdkStore.getHotItem(Ci);yi&&Ei.has(yi.sup)&&vi.add(yi.key)}for(const Ci of vi)Ei.delete(Ci);ss=Array.from(Ei),Ps=new Set(ss);const li=[];(0,Ne.sV)(eo,Ci=>{const{cid:yi,children:ea}=Ci;if(Ps.has(yi)&&ea.length>0)for(const ii of Ci.children)Ps.add(ii.cid);Ko.includes(yi)&&li.push(Ci)});for(const Ci of li){const yi=(0,Ne.QR)(Ci);Os=Math.max(yi,Os)}}const Fs=Be.length;return Be.forEach((Ei,vi)=>{const{cid:li}=Ei.dataset,Ci=(0,Ne.Bq)(li,eo),yi=Ci.data,ea=(0,Ne.zK)(Ci.cid,eo),ii=Ei.querySelector(":scope > .rn-list-item"),Wi=ii.getBoundingClientRect(),ua=(0,st.yB)(ii),va=Ei.getBoundingClientRect(),tr={top:Wi.top-At.top,left:Wi.left-At.left,width:Wi.width,height:Wi.height},xa={top:ua.top-At.top,left:ua.left-At.left,width:ua.width,height:ua.height},dr={top:va.top-At.top,left:xa.left,width:xa.width,height:va.height};Vt[li]={rect:tr,contentRect:xa,treeRect:dr};const{left:gr,top:ir,width:Wr,height:pl}=tr,br=gr+Wr,Na=ir+pl/3,Nr=ir+pl/3*2,ma=ir+pl;if(Ps.has(li)){Xe.push({cid:li,type:null,min:{x:gr,y:ir},max:{x:br,y:ma},isValid:!1});return}vi===0&&Xe.push({cid:li,type:"prevSibling",parentCid:yi.sup,min:{x:gr,y:ir},max:{x:br,y:Na},isValid:!0}),vi===Fs-1&&Xe.push({cid:li,type:"nextSibling",parentCid:yi.sup,min:{x:gr,y:ma},max:{x:br,y:Wt.height},isValid:!0});const hr=7,Ir=ea+Os<=hr,Jr=ea-1+Os<=hr;if(Xe.push({cid:li,type:"firstChild",parentCid:li,min:{x:gr,y:ir},max:{x:br,y:Nr},isValid:Ir}),!rn.has(li)&&Ci.children.length>0){const{cid:zc}=Ci.children[0];Xe.push({cid:zc,type:"prevSibling",parentCid:li,min:{x:gr,y:Nr},max:{x:br,y:ma},isValid:Ir})}else{const zc=(0,Ne.Bq)(yi.sup,eo);if((0,Ne.pe)(li,eo)&&zc){Xe.push({cid:li,type:"nextSibling",parentCid:yi.sup,min:{x:Vt[li].contentRect.left,y:Nr},max:{x:br,y:ma},isValid:Jr});let Wl=Ci,$r=null;for(;Wl&&(0,Ne.pe)(Wl.cid,eo)&&($r=(0,Ne.Bq)(Wl.data.parent_cid,eo));){const Bl=(0,Ne.zK)($r,eo)-1+Os<=4;Xe.push({cid:$r.cid,type:"nextSibling",parentCid:$r.data.sup,min:{x:Vt[$r.cid].contentRect.left,y:Nr},max:{x:Vt[Wl.cid].contentRect.left,y:ma},isValid:Bl}),Wl=$r}}else Xe.push({cid:li,type:"nextSibling",parentCid:yi.sup,min:{x:gr,y:Nr},max:{x:br,y:ma},isValid:Jr})}}),{matchDataList:Xe,containerRect:Wt,rectQueryMap:Vt,pathSelectedIds:ss}},Kn=(lo,Ko,eo)=>{const ro=document.querySelector("#screen-scroll-list"),Yt=ro.firstChild,Be=Array.from(ro.querySelectorAll(".rn-content-item")),Wt=ro.getBoundingClientRect(),At=Yt.getBoundingClientRect(),Xe=[],Vt={},Xo=MB.__store__.getState(),rn=(0,xe.TZ)(Xo);let Ps=new Set,Os=1,ss=Ko,Fs=!1,Ei=!1;if(lo){const Ci=new Set(Ko),yi=new Set;for(const ii of Ko){const Wi=sdkStore.getHotItem(ii);Wi&&Ci.has(Wi.sup)&&yi.add(Wi.key)}for(const ii of yi)Ci.delete(ii);ss=Array.from(Ci),Ps=new Set(ss);const ea=[];(0,Ne.sV)(eo,ii=>{const{cid:Wi,children:ua}=ii;if(Ps.has(Wi)&&ua.length>0)for(const va of ii.children)Ps.add(va.cid);Ko.includes(Wi)&&ea.push(ii)}),Fs=ea.find(ii=>!(0,Ne.Mo)(ii.data)),Ei=ea.find(ii=>(0,Ne.Mo)(ii.data));for(const ii of ea){const Wi=(0,Ne._A)(ii);Os=Math.max(Wi,Os)}}const vi=Ci=>Ci?Fs?Ci!=="B@main":!0:!1,li=Be.length;return Be.forEach((Ci,yi)=>{const{cid:ea}=Ci.dataset,ii=(0,Ne.Bq)(ea,eo),Wi=ii.data,ua=(0,Ne.zK)(ii.cid,eo),va=Ci.querySelector(":scope > .rn-list-item"),tr=va.getBoundingClientRect(),xa=(0,st.yB)(va),dr=Ci.getBoundingClientRect(),gr={top:tr.top-At.top,left:tr.left-At.left,width:tr.width,height:tr.height},ir={top:xa.top-At.top,left:xa.left-At.left,width:xa.width,height:xa.height},Wr={top:dr.top-At.top,left:ir.left,width:ir.width,height:dr.height};Vt[ea]={rect:gr,contentRect:ir,treeRect:Wr};const{left:pl,top:br,width:Na,height:Nr}=gr,ma=pl+Na,hr=br+Nr/3,Ir=br+Nr/3*2,Jr=br+Nr;if(Ps.has(ea)){Xe.push({cid:ea,type:null,min:{x:pl,y:br},max:{x:ma,y:Jr},isValid:!1});return}yi===0&&Xe.push({cid:ea,type:"prevSibling",parentCid:Wi.sup,min:{x:pl,y:br},max:{x:ma,y:hr},isValid:vi(Wi.sup)}),yi===li-1&&Xe.push({cid:ea,type:"nextSibling",parentCid:Wi.sup,min:{x:pl,y:Jr},max:{x:ma,y:Wt.height},isValid:vi(Wi.sup)});const ml=4,zc=ua+Os<=ml&&(0,Ne.Mo)(Wi),zl=ua-1+Os<=ml;if((0,Ne.Mo)(Wi)){let $r=!1;Os>1||(0,Ne.Mo)(lo)?$r=ua+Os<=ml:$r=ua+Os<=ml+1,Xe.push({cid:ea,type:"firstChild",parentCid:ea,min:{x:pl,y:br},max:{x:ma,y:Ir},isValid:$r&&vi(ea)})}else Xe.push({cid:ea,type:null,parentCid:ea,min:{x:pl,y:br},max:{x:ma,y:Ir},isValid:zc&&vi(ea)});if(!rn.has(ea)&&ii.children.length>0){const{cid:$r}=ii.children[0];Xe.push({cid:$r,type:"prevSibling",parentCid:ea,min:{x:pl,y:Ir},max:{x:ma,y:Jr},isValid:zc&&vi(ea)})}else{const $r=(0,Ne.Bq)(Wi.sup,eo);if((0,Ne.pe)(ea,eo)&&$r){Xe.push({cid:ea,type:"nextSibling",parentCid:Wi.sup,min:{x:Vt[ea].contentRect.left,y:Ir},max:{x:ma,y:Jr},isValid:zl&&vi(Wi.sup)});let Jl=ii,$l=null;for(;Jl&&(0,Ne.pe)(Jl.cid,eo)&&($l=(0,Ne.Bq)(Jl.data.parent_cid,eo));){const Rl=(0,Ne.zK)($l,eo)-1+Os<=ml;Xe.push({cid:$l.cid,type:"nextSibling",parentCid:$l.data.sup,min:{x:Vt[$l.cid].contentRect.left,y:Ir},max:{x:Vt[Jl.cid].contentRect.left,y:Jr},isValid:Rl&&vi($l.data.sup)}),Jl=$l}}else Xe.push({cid:ea,type:"nextSibling",parentCid:Wi.sup,min:{x:pl,y:Ir},max:{x:ma,y:Jr},isValid:zl&&vi(Wi.sup)})}}),{matchDataList:Xe,containerRect:Wt,rectQueryMap:Vt,pathSelectedIds:ss}};var ds=e(70110);const _s=se.Ay.div.withConfig({displayName:"styles__StyledSortableList",componentId:"sc-gd43tn-0"})([".sm-list{",";}&.is-multiple{.sm-list{padding-bottom:42px;}}"],Ao.eP);var Ls=e(78869),gs=e.n(Ls);class ns extends m.PureComponent{constructor(Ko){super(Ko),(0,o.A)(this,"handleInitData",gs()(()=>{const{screenSelection:eo,screenTreeData:ro,screenCollapseKeySet:Yt}=this.props,{hoverCid:Be}=this.state;if(!(eo!=null&&eo.length))return;const Wt=(0,Ne.he)(eo,ro),At=(0,Ne.d4)(ro,Yt),Xe=[...Array.from(new Set([...Array.from(Wt),Be].concat(eo)))],Vt=(0,Ne.Z7)(At,Xe);this.setState({dummySelect:Wt,continuousGroup:Vt})},10)),(0,o.A)(this,"handleScreenMetaDropDown",(eo,ro)=>{const{editingScreenMetaCid:Yt,searchKeyword:Be,screenTreeData:Wt,screenSelection:At,isEditingCombo:Xe,onlyView:Vt}=this.props;if(Vt||Yt===ro.cid||Be)return;const Xo=document.querySelector('#screen_list [data-cid="'+ro.cid+'"] .rn-list-item'),{top:rn,left:Ps}=Xo.getBoundingClientRect(),Os=eo.clientX-Ps,ss=eo.clientY-rn,Fs=At.includes(ro.cid)?At:[ro.cid],vi={screen:ro,$element:Xo,offsetX:Os,offsetY:ss,...(Xe?Kn:sn)(ro,Fs,Wt)};this.setState({dragAndDropState:vi})}),(0,o.A)(this,"handleDropScreen",eo=>{let{cid:ro,type:Yt,parentCid:Be,isValid:Wt}=eo;const{dispatch:At,isEditingCombo:Xe}=this.props,{dragAndDropState:Vt}=this.state;if(!Vt)return;const{pathSelectedIds:Xo}=Vt;if(this.setState({dragAndDropState:null}),!Wt){Yt&&MB.notice({text:I18N.ScreenPanel.invalid_screen_nested_level.replace(/%s/,Xe?4:7),type:"warning"});return}At({type:"entry:update:screen_list:by:sort",payload:{pathSelectedIds:Xo,parentCid:Be,type:Yt,cid:ro}}),At({type:"entry:update:screen_list_rect"})}),(0,o.A)(this,"getContainerElement",()=>document.getElementById("screen-scroll-list")),(0,o.A)(this,"handleToggleHover",eo=>this.setState({hoverCid:eo})),(0,o.A)(this,"renderScreenMetaItem",eo=>{let{depth:ro,screenMeta:Yt,hasScreenMetaChildren:Be,screenSelection:Wt,activeScreenMetaCid:At,editingScreenMetaCid:Xe,collapseScreenMetaCidSet:Vt,dummySelect:Xo,continuousGroup:rn}=eo;const{screenTreeData:Ps,screenDataMap:Os,contextMenuState:ss,theme:Fs,recentlyUsedScreenMetaIcons:Ei,onlyView:vi,isEditingCombo:li,isEditingProjectMain:Ci,isCommunityPreview:yi,currentProject:ea,isMultiplePage:ii,searchKeyword:Wi,layoutV9:ua}=this.props,{cid:va}=Yt,tr=At===va,xa=Xe===va,dr=!Vt.has(va),gr=Wt.includes(va),{isContinuousStart:ir,isContinuousEnd:Wr,isContinuousMiddle:pl}=(0,Ne.M5)(va,rn),br=Be||(0,Ne.Mo)(Yt),Na=Xo.has(va),Nr=Wt.length>1&&gr||Wt.length===1&&gr&&ii,{initPaddingLeft:ma,paddingLeftLayout:hr}=(0,Ct.zD)({isCommunityPreview:yi});return(0,O.jsx)(qo,{className:p()({"is-continuous-start":ir},{"is-continuous-end":Wr,"is-continuous-middle":pl}),theme:Fs,depth:ro,screenMeta:Yt,isActive:tr,isEditing:xa,isSelect:gr,isMultSelect:Nr,isExpand:dr,isDummySelect:Na,showExpander:br,initPaddingLeft:ma,paddingLeftLayout:hr,actionProps:this.literalActionProps,screenTreeData:Ps,screenDataMap:Os,screenSelection:Wt,contextMenuState:ss,recentlyUsedScreenMetaIcons:Ei,onlyView:vi,isEditingProjectMain:Ci,isEditingCombo:li,currentProject:ea,isMultiplePage:ii,highlightKeyword:Wi,layoutV9:ua})}),this.state={dragAndDropState:null,hoverCid:"",dummySelect:new Set,continuousGroup:[]},this.literalActionProps={...Ko.literalActionProps,onDropDown:this.handleScreenMetaDropDown,onToggleHover:this.handleToggleHover}}componentDidMount(){const{currentProject:{cid:Ko},onlyView:eo,dispatch:ro}=this.props;if(!eo){const Yt=(0,y.Yt)((0,ds.l)(Ko),[],y.qW.Array);ro({type:"screen:add:collapseKeySet",payload:{refs:Yt}})}this.handleInitData()}componentDidUpdate(Ko,eo){const{screenSelection:ro,screenTreeData:Yt,screenCollapseKeySet:Be}=Ko,{hoverCid:Wt}=eo,{screenSelection:At,screenTreeData:Xe,screenCollapseKeySet:Vt}=this.props,{hoverCid:Xo}=this.state;(ro!==At||Yt!==Xe||Be!==Vt||Wt!==Xo)&&this.handleInitData()}render(){const{screenTreeData:Ko,screenSelection:eo,activeScreenMetaCid:ro,editingScreenMetaCid:Yt,screenCollapseKeySet:Be,onlyView:Wt,isMultiplePage:At}=this.props,{dragAndDropState:Xe,dummySelect:Vt,continuousGroup:Xo}=this.state,{$element:rn,matchDataList:Ps,containerRect:Os,rectQueryMap:ss,offsetX:Fs,offsetY:Ei}=Xe||{};return(0,O.jsxs)(_s,{className:"sortable-container "+(At?"is-multiple":""),children:[(0,O.jsx)("div",{className:"sm-list",children:(0,O.jsx)(kt.A,{screenTreeData:Ko,activeScreenMetaCid:ro,editingScreenMetaCid:Yt,screenSelection:eo,dummySelect:Vt,collapseScreenMetaCidSet:Be,continuousGroup:Xo,renderScreenMetaItem:this.renderScreenMetaItem})}),Xe&&!Wt&&(0,O.jsx)(Ho.A,{draggingElement:rn,getContainerElement:this.getContainerElement,matchDataList:Ps,containerRect:Os,rectQueryMap:ss,offsetX:Fs,offsetY:Ei,onDrop:this.handleDropScreen})]})}}const Wn=se.Ay.div.withConfig({displayName:"styles__StyledScreenListBottom",componentId:"sc-qsyvjd-0"})(["position:absolute;width:calc(100% - 24px);height:34px;margin:0 12px;padding:4px 0;bottom:4px;background-color:",";border:1px solid ",";border-radius:6px;display:flex;align-items:center;justify-content:space-between;z-index:2;.btn{width:100%;height:24px;border-radius:4px;margin:0 4px;color:",";background-color:",";display:flex;align-items:center;justify-content:center;&:hover,&.active{background-color:",";}&.disabled{color:#999;background-color:",";cursor:not-allowed;}}.svg-box svg{width:auto;height:13px;}.divider{width:1px;height:16px;margin:0 4px;background-color:",";flex-shrink:0;}.exit-multiple-btn{font-size:12px;font-weight:400;line-height:16px;}"],lo=>lo.theme.color_bg_card,lo=>lo.theme.color_bg_border_02,lo=>lo.theme.color_text_L1,lo=>lo.theme.color_bg_card,lo=>lo.theme.color_btn_secondary_active,lo=>lo.theme.color_bg_card,lo=>lo.theme.color_bg_border_02),Do=lo=>{const{screenSelection:Ko,screenDataMap:eo,dispatch:ro}=lo,Yt=Ko.length===1,Be=Ko.length===0,Wt=eo[Ko[0]],At=(0,m.useCallback)(rn=>{Be||(rn.preventDefault(),ro({type:"entry:dup:screen:selection",payload:{isScreenSelectionContextMenu:!0}}))},[ro,Be]),Xe=(0,m.useCallback)(rn=>{Be||(rn.preventDefault(),!MB.global.experienceLoginModalHelper("isSave")&&ro({type:"entry:transfer:screen",payload:{screen:Yt?Wt:null,isScreenSelectionContextMenu:!0}}))},[ro,Be,Yt,Wt]),Vt=(0,m.useCallback)(rn=>{Be||(rn.preventDefault(),ro({type:"entry:remove:screen:selection:del"}))},[ro,Be]),Xo=(0,m.useCallback)(()=>{ro({type:"screen:update:state",payload:{isMultiplePage:!1}})},[ro]);return(0,O.jsxs)(Wn,{className:"screen-list-bottom",children:[(0,O.jsx)(r.A,{isShowTips:!Be,distance:8,enterHoverTime:100,content:I18N.ScreenPanel.make_a_copy,direction:"up",children:(0,O.jsx)("div",{className:p()("svg-box","btn",{disabled:Be}),onClick:At,children:(0,O.jsx)(f.C,{className:"",name:"left_panel/bottom/dup"})})}),(0,O.jsx)(r.A,{isShowTips:!Be,distance:8,enterHoverTime:100,content:I18N.ScreenPanel.move_or_copy_to2,direction:"up",children:(0,O.jsx)("div",{className:p()("svg-box","btn",{disabled:Be}),onClick:Xe,children:(0,O.jsx)(f.C,{className:"",name:"left_panel/bottom/transfer"})})}),(0,O.jsx)(r.A,{isShowTips:!Be,distance:8,enterHoverTime:100,content:I18N.SettingPanel.delete,direction:"up",children:(0,O.jsx)("div",{className:p()("svg-box","btn",{disabled:Be}),onClick:Vt,children:(0,O.jsx)(f.C,{className:"",name:"left_panel/bottom/del"})})}),(0,O.jsx)("div",{className:"divider"}),(0,O.jsx)("div",{className:"exit-multiple-btn btn",onClick:Xo,children:I18N.SettingPanel.exit})]})},Go=(0,m.memo)(Do);var an=e(87644),Mo=e(24013),Cn=e(54386),Tn=e(35556),cn=e(39271),bs=e(6637);const Vn=se.Ay.div.withConfig({displayName:"styles__StyledScreenList",componentId:"sc-3gv3ja-0"})(["flex:1;display:flex;flex-direction:column;overflow:hidden;position:relative;min-height:100px;.sortable-container{position:relative;min-height:100%;}.screen-scroll-list{width:","}"],lo=>lo.scrollHeight>lo.clientHeight?"calc(100% - 2px)":"100%");var ti=e(73518),oi=e.n(ti);class Gt extends m.PureComponent{constructor(Ko){var eo;super(Ko),eo=this,(0,o.A)(this,"setElementRef",ro=>this.$elem=ro),(0,o.A)(this,"autoScrollSelected",()=>{const{screenSelection:ro}=this.props,Yt=ro[0];Yt&&this.$elem&&(0,bs.yA)(this.$elem,Yt)}),(0,o.A)(this,"setAttr",(ro,Yt,Be)=>{const{dispatch:Wt}=this.props;Wt({type:"entry:update:screen-name",payload:{attr:ro,value:Yt,screen:Be}})}),(0,o.A)(this,"handleScreenMetaContextMenu",(ro,Yt)=>{const{screenSelection:Be,dispatch:Wt,onlyView:At}=this.props;if(At)return;const Xe={left:ro.clientX,top:ro.clientY},Vt=Be.findIndex(Xo=>Xo===Yt.cid)!==-1?Be:[Yt.cid];Wt({type:"screen:open:contextmenu",payload:{contextMenuState:{contextScreenSelection:Vt,show:!0,position:Xe}}})}),(0,o.A)(this,"handleCloseScreenMetaContextMenu",()=>this.props.dispatch({type:"screen:open:contextmenu",payload:{contextMenuState:{show:!1,contextScreenSelection:[],position:{left:-9999,top:-9999}}}})),(0,o.A)(this,"handleSingleSelectedScreenMeta",ro=>{const{dispatch:Yt}=this.props,Be=(0,Tn.F)();if(Be){Yt({type:"entry:comment:wigglingCommentCid",payload:{wigglingCommentCid:Be}});return}Yt({type:"entry:comment:clear"}),this.handleActiveScreenMeta(ro),Yt({type:"screen:update:screen-selection",payload:{screenSelection:[ro.cid||ro.key]}})}),(0,o.A)(this,"handleSelectScreenMeta",function(ro,Yt,Be,Wt){Wt===void 0&&(Wt=!1);const{onlyView:At,isEditingCombo:Xe}=eo.props,Vt=!At&&!Xe,Xo=ro.target.type==="checkbox";if(ro.button!==0&&!Wt)return;const{dispatch:rn}=eo.props,Ps=(0,Tn.F)();if(Ps){rn({type:"entry:comment:wigglingCommentCid",payload:{wigglingCommentCid:Ps}});return}rn({type:"entry:comment:clear"}),(ro.shiftKey||ro.metaKey||ro.ctrlKey)&&Vt?rn({type:"screen:update:state",payload:{isMultiplePage:!0}}):(!Xo||!Vt)&&eo.handleActiveScreenMeta(Yt);const{screenSelection:Os,screenRange:ss}=eo.props,{displayTreeData:Fs}=eo.state,Ei=(0,Ne.kz)(Fs);Ei.shift(),(0,Ct.uX)({rangeStart:ss.start,rangeEnd:ss.end,selected:Os},{cid:Yt.cid,cids:Ei,e:ro,selectFrom:"screen",isMultiplePage:Wt,canCheck:Vt},vi=>{let{rangeStart:li,rangeEnd:Ci,selected:yi}=vi,ea=yi;if(yi.length>0&&Ci!==void 0){let ii,Wi;li<Ci?(ii=yi.pop(),Wi=(0,cn.BH)([ii]),ea=yi.concat(Wi)):(ii=yi.shift(),Wi=(0,cn.BH)([ii]),ea=Wi.concat(yi))}rn({type:"screen:update:select:range",payload:{screenRange:{start:li,end:Ci}}}),rn({type:"screen:update:screen-selection",payload:{screenSelection:ea}})})}),(0,o.A)(this,"handleScreenMetaNameChange",(ro,Yt)=>{const{isEditingCombo:Be}=this.props,Wt=Yt.trim()==="";if(Be?Wt:Wt||Yt.includes("/")){this.props.dispatch({type:"screen:update:editing-screen-cid",payload:{cid:""}});const Xe=Be?I18N.Common.name_cannot_be_empty:I18N.Common.name_cannot_be_empty_or_symbol;MB.notice({text:Xe,type:"warning"})}else this.setAttr("name",Yt,ro),this.props.dispatch({type:"screen:update:editing-screen-cid",payload:{cid:""}})}),(0,o.A)(this,"handleScreenMetaEdit",ro=>{this.props.dispatch({type:"screen:update:editing-screen-cid",payload:{cid:ro.cid}})}),(0,o.A)(this,"handleScreenMetaRename",ro=>{const{key:Yt,hotAttr:Be,sup:Wt,sub:At}=ro,Xe={cid:Yt,...Be,sup:Wt,sub:At};this.handleSingleSelectedScreenMeta(Xe),this.handleScreenMetaEdit(Xe)}),(0,o.A)(this,"handleScreenMetaExpand",ro=>{const{currentProject:{cid:Yt},dispatch:Be}=this.props,{keyword:Wt}=this.state,At=ro.cid;if(Wt){const{searchCollapseKeySet:Xe}=this.state,Vt=new Set(Xe);Xe.has(At)?Vt.delete(At):Vt.add(At),this.setState({searchCollapseKeySet:Vt})}else Be({type:"screen:update:collapseKeySet",payload:{screenExpandedKeySetRef:At,projectCid:Yt}});setTimeout(()=>{this.props.dispatch({type:"entry:update:screen_list_rect"})},50)}),(0,o.A)(this,"handleActiveScreenMeta",ro=>{if((0,Ne.Mo)(ro))return;const{onlyView:Be,activeScreenMetaCid:Wt,dispatch:At}=this.props,{cid:Xe,key:Vt}=ro,Xo=Xe||Vt;if(Wt===Xo)return;At({type:"entry:exit:edit:basket"}),At({type:"entry:memory:current:screen:offset:scale"}),At({type:"entry:goto:project-alike",payload:{screenMetaCid:Xo,isResetScale:!0}}),At({type:"entry:memory:last:screenAndCanvas",payload:{screenMetaCid:Xo}}),Be&&(0,Mo.AT)(Xo,"",!1);const rn=sdkStore.getHotItem(Xo);At({type:"screen:update:state",payload:{currentPage:rn}})}),(0,o.A)(this,"handleCreateNewScreenMetaChild",ro=>{const{dispatch:Yt}=this.props;Yt({type:"entry:create:screen:auto:to:root-project",payload:{isCreateChildren:!0,parentScreen:ro}})}),(0,o.A)(this,"handleCreateNewScreenMetaNextSibling",ro=>{const{dispatch:Yt}=this.props;Yt({type:"entry:create:screen:auto:to:root-project",payload:{parentScreen:ro}})}),(0,o.A)(this,"handleCreateNewScreenMetaPrevSibling",ro=>{const{dispatch:Yt}=this.props;Yt({type:"entry:create:screen:auto:to:root-project",payload:{parentScreen:ro,direction:We.$.MOVEDOWN}})}),(0,o.A)(this,"handleUpdateScreenLevel",(ro,Yt)=>{const{dispatch:Be}=this.props;Be({type:"entry:update:screen_list:by:sort:direction",payload:{screenMeta:ro,direction:Yt}})}),(0,o.A)(this,"handleNewScreenFolderChild",ro=>{const{dispatch:Yt}=this.props;Yt({type:"entry:create:screen_folder:auto:to:root-project",payload:{isCreateChildren:!0,parentScreenFolder:ro}})}),(0,o.A)(this,"handleNewScreenFolderNextSibling",ro=>{const{dispatch:Yt}=this.props;Yt({type:"entry:create:creeen_folder:auto:to:current_folder",payload:{isCreateNextSibling:!0,curScreenFolder:ro}})}),(0,o.A)(this,"handleNewScreenFolderPrevSibling",ro=>{const{dispatch:Yt}=this.props;Yt({type:"entry:create:creeen_folder:auto:to:current_folder",payload:{curScreenFolder:ro}})}),(0,o.A)(this,"handleScreenMetaDup",ro=>{const{dispatch:Yt}=this.props;Yt({type:"entry:check:dup:screen:page:folder",payload:{screen:ro}})}),(0,o.A)(this,"handleScreenMetaTransfer",ro=>{const{dispatch:Yt}=this.props;MB.global.experienceLoginModalHelper("isSave")||Yt({type:"entry:transfer:screen",payload:{screen:ro}})}),(0,o.A)(this,"handleScreenMetaDel",ro=>{const{dispatch:Yt}=this.props;Yt({type:"entry:remove:screen:check:del",payload:{screen:ro}})}),(0,o.A)(this,"handleThrottleUpdateScreenListRect",oi()(ro=>{ro({type:"entry:update:screen_list_rect"})},20)),(0,o.A)(this,"handleScroll",ro=>{const{dispatch:Yt}=this.props;this.handleThrottleUpdateScreenListRect(Yt)}),(0,o.A)(this,"handleExportPng",()=>{this.props.dispatch({type:"entry:toolbar:open:export_menu",payload:{open:!0}})}),(0,o.A)(this,"onClickOutside",ro=>{var Yt,Be;const{activeScreenMetaCid:Wt,screenSelection:At,isMultiplePage:Xe,dispatch:Vt}=this.props,{target:Xo}=ro;let rn;const Ps=[".mb-screen-context-menu",".screenSettings",".screen-info-menu",".export-panel-menu",".export-panel-more-pages-state-menu",".export-screen-btn",".export-screen-btn2",".transfer-screen-modal",".transfer-screen-modal-select-menu",".screen-action-modal",".WorkspaceSelectMenu","#right-slide-panel",".screen-name-edit",".screen-width-edit",".screen-height-edit",".exit-multiple-btn"];(Yt=this.$elem)!=null&&Yt.contains(Xo)||document.querySelector(".--mb--color-picker")||!Xe&&At.length===1||Xe&&[".catalog-list",".exit-multiple-btn"].every(Os=>{var ss;return!((ss=Xo.closest)!=null&&ss.call(Xo,Os))})&&!(rn=(Be=document.querySelector(".exit-multiple-btn-in-list-menu"))==null||(Be=Be.parentNode)==null||(Be=Be.parentNode)==null?void 0:Be.contains(Xo))||Ps.some(Os=>{var ss;return(ss=Xo.closest)==null?void 0:ss.call(Xo,Os)})||(!rn&&Vt({type:"screen:update:state",payload:{isMultiplePage:!1}}),Vt({type:"entry:reset:screen:selection",payload:{resetScreenCid:Wt}}))}),(0,o.A)(this,"handleChangeIcon",async(ro,Yt)=>{Yt&&(this.setAttr("icon",Yt,ro),await this.handleUpdateRecentlyUsedScreenMetaIcon(Yt))}),(0,o.A)(this,"handleUpdateRecentlyUsedScreenMetaIcon",async ro=>{const{isDesign:Yt,isLoggedExperience:Be,recentlyUsedScreenMetaIcons:Wt,dispatch:At}=this.props,[Xe,Vt]=ro.split(re.wv),Xo=Xe===re.L7&&Vt;if((Yt||Be)&&!Xo){const rn=Array.from(new Set(Wt));rn.unshift(ro);const Ps=JSON.stringify(rn.splice(0,12));At({type:"entry:update:preference-data",payload:{recently_used_screen_meta_icons:Ps}})}}),(0,o.A)(this,"handleCloseGuide",()=>{}),(0,o.A)(this,"handleTrack",()=>{}),(0,o.A)(this,"handleSearch",ro=>{const{screenTreeData:Yt}=this.props,[Be,Wt]=(0,Ne.ZG)(Yt,ro);this.setState({displayTreeData:Be,searchCollapseKeySet:new Set(Wt),keyword:ro}),ro&&(0,Cn.A)({operation_type:Cn.D.SearchCanvas}),setTimeout(()=>{this.props.dispatch({type:"entry:update:screen_list_rect"})},50)}),(0,o.A)(this,"handleToggleExpanded",ro=>{const{dispatch:Yt}=this.props;Yt(ro?{type:"entry:expand:all:screen"}:{type:"entry:unExpand:all:screen"}),(0,Cn.A)({operation_type:ro?Cn.D.ExpandCanvas:Cn.D.CollapseCanvas})}),this.literalActionProps={onExpand:this.handleScreenMetaExpand,onActive:this.handleActiveScreenMeta,onEdit:this.handleScreenMetaEdit,onNameChange:this.handleScreenMetaNameChange,onCreateNewScreenMetaChild:this.handleCreateNewScreenMetaChild,onCreateNewScreenMetaNextSibling:this.handleCreateNewScreenMetaNextSibling,onCreateNewScreenMetaPrevSibling:this.handleCreateNewScreenMetaPrevSibling,onCreateNewScreenFolderNextSibling:this.handleNewScreenFolderNextSibling,onCreateNewScreenFolderPrevSibling:this.handleNewScreenFolderPrevSibling,onNewScreenFolderChild:this.handleNewScreenFolderChild,onUpdateScreenLevel:this.handleUpdateScreenLevel,onDup:this.handleScreenMetaDup,onTransfer:this.handleScreenMetaTransfer,onDel:this.handleScreenMetaDel,onExportPng:this.handleExportPng,onContextMenu:this.handleScreenMetaContextMenu,onCloseContextMenu:this.handleCloseScreenMetaContextMenu,onClick:this.handleSelectScreenMeta,onSingleSelect:this.handleSingleSelectedScreenMeta,iconAction:Ko.onlyView?null:{onChangeIcon:this.handleChangeIcon,onClickIcon:this.handleCloseGuide,onTrack:this.handleTrack},onRename:this.handleScreenMetaRename},this.state={displayTreeData:Ko.screenTreeData,searchCollapseKeySet:new Set,keyword:""}}componentDidUpdate(Ko){const{screenTreeData:eo,screenSelection:ro}=this.props,{keyword:Yt}=this.state;if(Ko.screenTreeData!==eo){const[Be]=(0,Ne.ZG)(eo,Yt);this.setState({displayTreeData:Be})}ro!=null&&ro.length&&ro!==Ko.screenSelection&&this.autoScrollSelected()}componentDidMount(){const{dispatch:Ko}=this.props;Ko({type:"entry:update:screen_list_rect"}),this.autoScrollSelected()}render(){var Ko,eo;const{isExperience:ro,isLoggedExperience:Yt,activeScreenMetaCid:Be,editingScreenMetaCid:Wt,screenRange:At,screenSelection:Xe,dispatch:Vt,screenDataMap:Xo,screenCollapseKeySet:rn,contextMenuState:Ps,theme:Os,recentlyUsedScreenMetaIcons:ss,onlyView:Fs,isEditingCombo:Ei,isCommunityPreview:vi,currentProject:li,isEditingProjectMain:Ci,isEditingUserCombo:yi,isMultiplePage:ea,layoutV9:ii}=this.props,{displayTreeData:Wi,searchCollapseKeySet:ua,keyword:va}=this.state,tr=va?ua:rn,xa=rn.size>0,dr=Object.values(Xo).filter(gr=>!gr.hotAttr.asFolder).length;return(0,O.jsxs)(Vn,{id:"screen_list",scrollHeight:(Ko=this.$elem)==null?void 0:Ko.scrollHeight,clientHeight:(eo=this.$elem)==null?void 0:eo.clientHeight,children:[(0,O.jsx)(Yo.A,{isEditingCombo:Ei,isEditingUserCombo:yi,isMultiplePage:ea,screenSelection:Xe,displayTreeData:Wi,onlyView:Fs,keyword:va,hasFoldedScreen:xa,isCommunityPreview:vi,dispatch:Vt,nonFolderPGCount:dr,onSearch:this.handleSearch,onToggleExpanded:this.handleToggleExpanded}),(0,O.jsxs)("div",{ref:this.setElementRef,id:"screen-scroll-list",className:p()("rn-content-body","scrollbar2-container",{isCommunityPreview:vi}),onScroll:this.handleScroll,children:[Wi&&(0,O.jsx)(ns,{theme:Os,isExperience:ro,isLoggedExperience:Yt,activeScreenMetaCid:Be,searchKeyword:va,editingScreenMetaCid:Wt,screenTreeData:Wi,screenRange:At,screenSelection:Xe,screenCollapseKeySet:tr,dispatch:Vt,literalActionProps:this.literalActionProps,screenDataMap:Xo,contextMenuState:Ps,recentlyUsedScreenMetaIcons:ss,onlyView:Fs,isEditingProjectMain:Ci,isEditingCombo:Ei,isEditingUserCombo:yi,isCommunityPreview:vi,currentProject:li,isMultiplePage:ea,layoutV9:ii}),this.$elem&&(0,O.jsx)(an.yP,{type:"vertical",containerRef:{current:this.$elem},isAutoHideBar:!0})]}),ea&&(0,O.jsx)(Go,{screenSelection:Xe,screenDataMap:Xo,dispatch:Vt}),(0,O.jsx)(vo,{}),(0,O.jsx)(H.A,{target:document,onMouseDown:(0,H.t)(this.onClickOutside,{capture:!0})})]})}}const Rs=(0,l.Mz)([xe.CY,u.HA,u.Hs,u.He,xe.TZ,xe.I_,u.WU,T.O4,b.W4,b.PL,T.Dc,b.HW,b.wA,C.jx,E.r,C.pH,u.p$,T.MZ],(lo,Ko,eo,ro,Yt,Be,Wt,At,Xe,Vt,Xo,rn,Ps,Os,ss,Fs,Ei,vi)=>{let{isDesign:li,isExperience:Ci,isLoggedExperience:yi}=Xe,{isEditingProjectMain:ea,isEditingCombo:ii,isEditingUserCombo:Wi}=ss;const{editingScreenMetaCid:ua,screenRange:va,height:tr}=lo,{key:xa}=Ei;return{onlyView:Os===A.qi.OnlyView,theme:At,isExperience:Ci,isLoggedExperience:yi,isDesign:li,activeScreenMetaCid:xa,editingScreenMetaCid:ua,screenTreeData:Ko,screenSelection:eo,screenDataMap:ro,screenRange:va,screenCollapseKeySet:Yt,contextMenuState:Be,recentlyUsedScreenMetaIcons:Xo,currentUser:rn,currentOrg:Ps,componentPanelHeight:tr,isEditingProjectMain:ea,isEditingCombo:ii,isEditingUserCombo:Wi,isCommunityPreview:Fs,currentProject:Vt,isMultiplePage:Wt,layoutV9:vi}}),Xs=(0,g.Ng)(lo=>Rs(lo))(Gt);var Ti=e(61535),di=e(30797),vs=e(42205),ei=e(45411),Si=e(59742);const Gs=[ze.x.WWrap,ze.x.Canvas],Vs=lo=>Gs.includes(lo.hotAttr.type)||lo.hotAttr.type==="wBasket"&&lo.hotAttr.basket==="bMuban",ps=lo=>sdkStore.getSubHotItemList(lo).sort((Ko,eo)=>eo.hotAttr.zIndex-Ko.hotAttr.zIndex),kn=(lo,Ko)=>{const eo=[],ro=Ko(lo);ro&&eo.push(ro);const{key:Yt,hotAttr:{type:Be,bunch:Wt,basket:At},sub:Xe}=lo,Vt=Wt!=null?Wt:Be;if(Gs.includes(Vt))ps(Yt).forEach(Xo=>{let{key:rn}=Xo;return eo.push(...kn(sdkStore.getHotItem(rn),Ko))});else if(Vt===ze.x.WBasket&&At==="bMuban"){const Xo=Xe[0];Xo&&ps(Xo).forEach(rn=>{let{key:Ps}=rn;return eo.push(...kn(sdkStore.getHotItem(Ps),Ko))})}return eo},zn=lo=>ps(lo).filter(eo=>eo.hotAttr.bunch!==ze.x.RbPage).reduce((eo,ro)=>[...eo,...kn(ro,Yt=>Yt.key)],[]),hs=(lo,Ko,eo)=>{const ro=document.querySelector("#layer-scroll-list"),Yt=document.querySelector("#mb-enabled-layer-list"),Be=Array.from(Yt.querySelectorAll(".rn-content-item")),Wt=ro.getBoundingClientRect(),At=Yt.getBoundingClientRect(),Xe=[],Vt={},Xo=[],rn=new Set(Ko);for(const ii of Ko)if(!(0,Si.OO)(ii)&&!sdkStore.isTrashed(ii)){const ua=sdkStore.findUpHotItemList(ii).slice(1).map(va=>va.key).filter(va=>rn.has(va));ua!=null&&ua.length||Xo.push(ii)}let Ps=1;const Os=Xo.some(ii=>{var Wi;return((Wi=sdkStore.getHotItem(ii))==null||(Wi=Wi.hotAttr)==null?void 0:Wi.type)===ze.x.Canvas}),ss=lo.filter(ii=>ii.type===ze.x.Canvas).map(ii=>{let{key:Wi}=ii;return Wi}),Fs=new Set(Xo),Ei=[];lo.forEach(ii=>{const Wi=sdkStore.getHotItem(ii.key);kn(Wi,ua=>{const{key:va,sub:tr,hotAttr:{type:xa}}=ua;Fs.has(va)&&tr.length>0&&Gs.includes(xa)&&tr.forEach(dr=>Fs.add(dr)),Xo.includes(va)&&tr.length>0&&Gs.includes(xa)&&Ei.push(ua)})});for(const ii of Ei){const Wi=sdkStore.findUpHotItemList(ii.key).filter(ua=>ua.hotAttr.type!=="rResBunch").length;Ps=Math.max(Wi,Ps)}const vi=ii=>{if(!ii)return!1;const{hotAttr:{type:Wi,bunch:ua}}=ii,va=ua!=null?ua:Wi,tr=sdkStore.findUpHotItemList(ii.key).map(xa=>{let{key:dr}=xa;return dr});return Os?va===ze.x.WWrap?!1:!ss.some(xa=>tr.includes(xa)):Gs.concat(ze.x.RbPage).includes(va)},li=ii=>sdkStore.getSubHotItemList(ii).sort((Wi,ua)=>ua.hotAttr.zIndex-Wi.hotAttr.zIndex),Ci=ii=>{const{sup:Wi,key:ua}=ii,va=li(Wi);return{isLastChild:va[va.length-1].key===ua}},yi=ii=>{var Wi;return(ii==null||(Wi=ii.hotAttr)==null?void 0:Wi.type)==="rResBunch"||!(ii!=null&&ii.sup)?null:sdkStore.getHotItem(ii.sup)},ea=Be.length;return Be.forEach((ii,Wi)=>{const{cid:ua}=ii.dataset,va=sdkStore.getHotItem(ua),{sub:tr,sup:xa,hotAttr:{type:dr}}=va,gr=ii.querySelector(":scope > .rn-list-item"),ir=gr.getBoundingClientRect(),Wr=(0,st.yB)(gr),pl=ii.getBoundingClientRect(),br={top:ir.top-At.top,left:ir.left-At.left,width:ir.width,height:ir.height},Na={top:Wr.top-At.top,left:Wr.left-At.left,width:Wr.width,height:Wr.height},Nr={top:pl.top-At.top,left:Na.left,width:Na.width,height:pl.height};Vt[ua]={rect:br,contentRect:Na,treeRect:Nr};const{left:ma,top:hr,width:Ir,height:Jr}=br,ml=ma+Ir,zc=hr+Jr/3,zl=hr+Jr/3*2,Wl=hr+Jr;if(Fs.has(ua)){Xe.push({cid:ua,type:null,min:{x:ma,y:hr},max:{x:ml,y:Wl},isValid:!1});return}const $r=sdkStore.getHotItem(xa),Bl=vi($r)&&!(0,ei.td)([xa]);Wi===0&&Xe.push({cid:ua,type:"prevSibling",parentCid:xa,min:{x:ma,y:hr},max:{x:ml,y:zc},isValid:Bl}),Wi===ea-1&&Xe.push({cid:ua,type:"nextSibling",parentCid:xa,min:{x:ma,y:Wl},max:{x:ml,y:Wt.height},isValid:Bl});const Jl=vi(va)&&!(0,ei.td)([ua]);Gs.includes(dr)&&Xe.push({cid:ua,type:"firstChild",parentCid:ua,min:{x:ma,y:hr},max:{x:ml,y:zl},isValid:Jl});const $l=eo.has(ua);if(Gs.includes(dr)&&$l&&tr.length){const ql=li(ua)[0].key;Xe.push({cid:ql,type:"prevSibling",parentCid:ua,min:{x:ma,y:zl},max:{x:ml,y:Wl},isValid:Jl})}else{const Sl=$r&&Ci(va).isLastChild,ql=vi($r)&&!(0,ei.td)([xa]);if(Sl){Xe.push({cid:ua,type:"nextSibling",parentCid:xa,min:{x:Vt[ua].contentRect.left,y:zl},max:{x:ml,y:Wl},isValid:ql});let uc=va,mc=null;for(;uc&&((Rl=uc)==null||(Rl=Rl.hotAttr)==null?void 0:Rl.bunch)!==ze.x.RbPage&&Ci(uc).isLastChild&&(mc=yi(uc));){var Rl,Ic;const ld=yi(mc);if(!ld)break;const Gc=vi(ld)&&!(0,ei.td)([ld==null?void 0:ld.key]);Vt[mc.key]&&Xe.push({cid:mc.key,type:"nextSibling",parentCid:mc.sup,min:{x:Vt[mc.key].contentRect.left,y:zl},max:{x:(Ic=Vt[uc.key])==null||(Ic=Ic.contentRect)==null?void 0:Ic.left,y:Wl},isValid:Gc}),uc=mc}}else Xe.push({cid:ua,type:"nextSibling",parentCid:xa,min:{x:ma,y:zl},max:{x:ml,y:Wl},isValid:ql})}}),{matchDataList:Xe,containerRect:Wt,rectQueryMap:Vt,pathSelectedIds:Xo}},Ss=lo=>{const Ko=MB.__store__.getState(),eo=(0,Ti.UV)(Ko);let ro=[];return lo&&lo.length>0&&(ro=lo.map(Yt=>{const Be=eo.getNode(Yt);return(Be==null?void 0:Be.type)===ze.x.RbPage?[]:fi(Be)})),new Set(ro.flat())},fi=lo=>{var Ko;const eo=[];return lo&&((Ko=lo.children)==null?void 0:Ko.length)>0&&lo.children.forEach(ro=>{eo.push(ro.cid),eo.push(...fi(ro))}),eo},ri=(lo,Ko)=>lo.findIndex(eo=>eo===Ko),Li=(lo,Ko)=>{const eo=lo.length,ro=lo[eo-1]&&sdkStore.getHotItem(lo[eo-1]);let Yt=!1;ro&&(Yt=Vs(ro));const Be=Yt?kn(ro,rn=>rn.key):[],Wt=lo.concat(Be),At=[];let Xe=[];lo.sort((rn,Ps)=>ri(Ko,rn)-ri(Ko,Ps)).forEach((rn,Ps)=>{const Os=At.includes(rn);if((Ps===0||Ps===eo-1)&&!Os&&Xe.push(rn),!Os){const ss=sdkStore.getHotItem(rn);if(!ss)return;if(Vs(ss)){const Ei=kn(ss,li=>li.key);Ei.every(li=>Wt.includes(li))&&At.push(...Ei)}Xe.push(rn)}}),Xe=Array.from(new Set(Xe));const Vt=ri(Ko,Xe[0]),Xo=ri(Ko,Xe[Xe.length-1]);return{rangeStart:Vt,rangeEnd:Xo,selected:Xe}};class ji extends m.PureComponent{constructor(Ko){super(Ko),(0,o.A)(this,"getContainerElement",()=>document.getElementById("layer-scroll-list")),(0,o.A)(this,"handleClick",(eo,ro)=>{const{inspectMode:Yt,currentScreen:Be}=this.props,{widget:Wt}=ro;if(Wt.type===ze.x.WWrap&&Yt)return;const{newSelection:At,layerRange:Xe,widgetTreeData:Vt,widgetStore:Xo,dispatch:rn}=this.props,Ps=At.length===1&&At[0]===Be.cid?[]:At,Os=zn(Be.cid);(0,Ct.uX)({rangeStart:Xe.start,rangeEnd:Xe.end,selected:Ps},{cid:Wt.cid,cids:Os,e:eo},ss=>{const{rangeStart:Fs,rangeEnd:Ei,selected:vi}=Li(ss.selected,Os),li=vi.filter(Ci=>{var yi;return!(((yi=sdkStore.getHotItem(Ci))==null||(yi=yi.hotAttr)==null?void 0:yi.type)===ze.x.Canvas&&(0,Si.OO)(Ci))});rn({type:"entry:select:items",payload:{cids:li,hasNotScrollTop:!0}}),MB.action("update:layer:select:range",{layerRange:{start:Fs,end:Ei}})})}),(0,o.A)(this,"handleMouseDown",(eo,ro,Yt)=>{const{keyword:Be,newSelection:Wt,rootLayers:At,layerExpandedKeySet:Xe}=this.props,{widget:Vt}=ro,Xo=Wt.includes(Vt.cid)?Wt:[Vt.cid];if((0,ei.td)(Xo)||Be)return;const{top:rn,left:Ps}=Yt.getBoundingClientRect(),Os=eo.clientX-Ps,ss=eo.clientY-rn,Fs={item:Vt,$element:Yt,offsetX:Os,offsetY:ss,...hs(At,Xo,Xe)};this.setState({dragAndDropState:Fs})}),(0,o.A)(this,"handleContextMenu",(eo,ro)=>{const{widgetTreeData:Yt,dispatch:Be}=this.props,{widget:Wt,cid:At}=ro,Xe=(0,Ne.kz)(Yt),Vt={left:eo.clientX,top:eo.clientY};Be({type:"entry:open:contextmenu:by:component-list",payload:{item:Wt,position:Vt}}),Be({type:"update:layer:select:range",payload:{layerRange:{start:Xe.findIndex(Xo=>Xo===At),end:void 0}}})}),(0,o.A)(this,"handleDrop",eo=>{var ro;let{cid:Yt,type:Be,parentCid:Wt,isValid:At}=eo;const{widgetStore:Xe,dispatch:Vt}=this.props,{dragAndDropState:Xo}=this.state;if(this.setState({dragAndDropState:null}),!At||!Xo)return;const{pathSelectedIds:rn}=Xo,Ps=rn.map(li=>Xe.getNode(li)).filter(li=>!!li);Ps.sort((li,Ci)=>Ci.widget.zIndex-li.widget.zIndex);const Os=[...this.props.rootLayers],Fs=((Wt?Xe==null||(ro=Xe.getNode(Wt))==null?void 0:ro.children:Os)||[]).filter(li=>!rn.includes(li.cid)),Ei=Fs.findIndex(li=>li.cid===Yt),vi=Be==="prevSibling"?Ei:Be==="firstChild"?-Fs.length:Be==="nextSibling"?Ei+1:"error";if(vi==="error")throw new Error("drag type error");Fs.splice(vi,0,...Ps),sdkStore.combineMergeMark("sort-component"),Fs.reverse().forEach((li,Ci)=>{if(li.sup!==Wt||li.widget.zIndex!==Ci+1){const yi=sdkStore.getHotItem(li.cid),ea={...yi,hotAttr:{...yi.hotAttr,zIndex:Ci+1}};sdkStore.updateHotItem(ea),li.sup!==Wt&&sdkStore.changeRndSup(li.cid,Wt)}}),sdkStore.combineMerge("sort-component"),Vt({type:"entry:rebuild:screen-widget-tree"}),Vt({type:"entry:refresh:link-list"})}),(0,o.A)(this,"handleInitData",gs()(()=>{const{newSelection:eo,echoItemCid:ro,rootLayers:Yt,layerExpandedKeySet:Be}=this.props;if(!(eo!=null&&eo.length))return;const Wt=Ss(eo),At=(0,Ne.K3)({children:Yt,cid:"root"},Be),Xe=[...Array.from(new Set([...Array.from(Wt),ro].concat(eo)))],Vt=(0,Ne.Z7)(At,Xe);this.setState({dummySelect:Wt,continuousGroup:Vt})},10)),this.state={dragAndDropState:null,dummySelect:new Set,continuousGroup:[]},this.treeProps={onClick:this.handleClick,onMouseDown:this.handleMouseDown,onMouseEnter:eo=>{const{dispatch:ro}=this.props,{cid:Yt}=eo;ro({type:"set:echo:item",payload:{cid:Yt}})},onMouseLeave:eo=>{const{dispatch:ro}=this.props;ro({type:"clear:echo:item"})},onContextMenu:this.handleContextMenu,onToggleExpanded:eo=>{this.props.dispatch({type:"layerExpandedKeySet:toggle:ref",payload:{layerExpandedKeySetRef:eo}})},onLock:eo=>this.props.dispatch({type:"entry:toggle:lock",payload:{widget:eo}}),onVisible:eo=>this.props.dispatch({type:"entry:toggle:visible",payload:{widget:eo}}),onChangeDisplayName:eo=>{const{newSelection:ro,dispatch:Yt}=this.props;if(eo.trim()===""||eo.includes("/"))MB.notice({text:I18N.Common.name_cannot_be_empty_or_symbol,type:"warning"});else{const Wt=ro.map(At=>({key:At,hotAttr:{name:eo}}));Yt({type:"entry:widget:change",payload:{flatChgList:Wt,shouldBreakLayerUICache:!0}})}},onClickIcon:()=>{this.props.dispatch({type:"entry:design:zoom:selection"})}}}componentDidMount(){this.handleInitData()}componentDidUpdate(Ko){const{newSelection:eo,echoItemCid:ro,rootLayers:Yt,layerExpandedKeySet:Be}=this.props;(Ko.newSelection!==eo||Ko.echoItemCid!==ro||Ko.rootLayers!==Yt||Ko.layerExpandedKeySet!==Be)&&this.handleInitData()}render(){const{rootLayers:Ko,hoverItem:eo,newSelection:ro,layerExpandedKeySet:Yt,onlyView:Be}=this.props,{dragAndDropState:Wt,dummySelect:At,continuousGroup:Xe}=this.state,{matchDataList:Vt,containerRect:Xo,rectQueryMap:rn,$element:Ps,offsetX:Os,offsetY:ss}=Wt||{},{initPaddingLeft:Fs,paddingLeftLayout:Ei}=(0,Ct.zD)();return(0,O.jsxs)("div",{className:"layer-sortable-list",children:[(0,O.jsx)("ul",{id:"mb-enabled-layer-list",children:Ko.map((vi,li)=>(0,O.jsx)(vs.A,{depth:0,treeNode:vi,hoverItem:eo,newSelection:ro,layerExpandedKeySet:Yt,childrenSelect:!1,initPaddingLeft:Fs,paddingLeftLayout:Ei,treeProps:this.treeProps,dummySelect:At,continuousGroup:Xe,onlyView:Be,isPreview:!1},vi.cid))}),Wt&&(0,O.jsx)(Ho.A,{draggingElement:Ps,getContainerElement:this.getContainerElement,matchDataList:Vt,containerRect:Xo,rectQueryMap:rn,offsetX:Os,offsetY:ss,onDrop:this.handleDrop})]})}}var _t=e(80627),Aa=e(59475);const Ki=lo=>[ze.x.WSticky,ze.x.WTear].indexOf(lo.type)===-1,sa=(0,m.memo)(lo=>{const{show:Ko,keyword:eo,hoverItem:ro,newSelection:Yt,widgetTreeData:Be,widgetStore:Wt,layerRange:At,layerExpandedKeySet:Xe,dispatch:Vt,onlyView:Xo,inspectMode:rn,currentScreen:Ps,echoItemCid:Os}=lo;if(!Ko)return null;const ss=(0,m.useMemo)(()=>(0,_t.Lx)(Be.children,eo).filter(Ki),[Be,eo]),Fs=(0,m.useRef)(null);(0,m.useEffect)(()=>{if(Yt.length){const li=new Set;Yt.forEach(Ci=>{const yi=sdkStore.locUpColdCanvasKey(Ci);yi&&!Xe.has(yi)&&li.add(yi)}),li.size&&Vt({type:"layerExpandedKeySet:delAllSet:ref",payload:{refs:li}})}},[]),(0,m.useEffect)(()=>{(0,bs.yA)(Fs.current,Yt[0])},[Yt]);const Ei=(0,m.useDeferredValue)(ro),vi=(0,m.useDeferredValue)(Os);return(0,O.jsx)(Aa.PN,{className:p()("mb-layer-panel"),children:(0,O.jsxs)("div",{id:"layer-scroll-list",className:"layer-scroll-list scrollbar2-container",ref:Fs,children:[(0,O.jsx)(ji,{keyword:eo,hoverItem:Ei,echoItemCid:vi,rootLayers:ss,newSelection:Yt,layerRange:At,widgetTreeData:Be,widgetStore:Wt,layerExpandedKeySet:Xe,dispatch:Vt,onlyView:Xo,inspectMode:rn,currentScreen:Ps}),Fs&&(0,O.jsx)(an.yP,{type:"vertical",containerRef:Fs,isAutoHideBar:!0})]})})}),Zi=(0,l.Mz)([Ti.GO,Ti.Aw],(lo,Ko)=>lo.map(eo=>Ko[eo][0].data));let Fa,to=null;const Qt=(0,l.Mz)([Ti.Qs,Ti.RX],(lo,Ko)=>((!to||Fa!==lo)&&(to=Ko),Fa=lo,to)),Sn=(0,l.Mz)([xe.vB,u.wJ,Qt,C.IL,di.p$,Zi,Ti.UV,C.jx,C._b,b.Ur,T.MZ,Ti.VH],(lo,Ko,eo,ro,Yt,Be,Wt,At,Xe,Vt,Xo,rn)=>{if(!Vt)return{show:!1};const Ps=At===A.qi.OnlyView;return{show:!0,hoverItem:ro,newSelection:Yt,widgetTreeData:eo,widgetStore:Wt,ghostLayers:Be,layerRange:lo,layerExpandedKeySet:Ko,onlyView:Ps,inspectMode:Xe,currentScreen:Vt,layoutV9:Xo,echoItemCid:rn}}),Vo=(0,g.Ng)(lo=>Sn(lo))(sa);var ho=e(67231),Uo=e.n(ho),pn=e(71604);class ys extends m.PureComponent{constructor(Ko){super(Ko),(0,o.A)(this,"timer",null),(0,o.A)(this,"setElementRef",eo=>this.$element=eo),(0,o.A)(this,"handleClick",eo=>{eo.stopPropagation();const{canvas:ro,treeProps:{onClick:Yt}}=this.props;Yt(eo,ro),eo.shiftKey||eo.ctrlKey||this.handleClickIcon(eo)}),(0,o.A)(this,"handleClickIcon",eo=>{eo.stopPropagation();const{treeProps:{onClickIcon:ro}}=this.props;ro(),(0,Cn.A)({operation_type:Cn.D.DoubleClickPageIcon})}),(0,o.A)(this,"handleMouseDown",eo=>{const{isEditing:ro}=this.state;if(ro)return;const{canvas:Yt,onlyView:Be,treeProps:{onMouseDown:Wt,onContextMenu:At}}=this.props;if(!Be){if(eo.button===0)this.timer=setTimeout(()=>{Wt&&Wt(eo,Yt,this.$element)},200);else if(eo.button===2){if(MB.f.editing||(eo.preventDefault(),eo.ctrlKey))return;At&&At(eo,Yt)}}}),(0,o.A)(this,"handleDoubleClick",()=>{this.setState({isEditing:!0})}),(0,o.A)(this,"handleConfirm",async(eo,ro)=>{if(ro){const{treeProps:{onChangeDisplayName:Yt}}=this.props;Yt(eo)}this.setState({isEditing:!1})}),(0,o.A)(this,"onShowTipsByTarget",(eo,ro)=>{const Yt=ro.querySelector(".editable-name");return Yt.offsetWidth<Yt.scrollWidth}),(0,o.A)(this,"handleMouseUp",()=>{clearTimeout(this.timer)}),(0,o.A)(this,"handleInvisibleClick",eo=>{eo.stopPropagation();const{onlyView:ro,canvas:Yt,treeProps:{onToggleVisible:Be}}=this.props;ro||Be&&Be(Yt)}),this.state={isEditing:!1}}render(){const{index:Ko,depth:eo,canvas:ro,isHover:Yt,isSelected:Be,onlyView:Wt,maxOrderDigit:At,initPaddingLeft:Xe,paddingLeftLayout:Vt,treeProps:{onMouseEnter:Xo,onMouseLeave:rn},className:Ps}=this.props;if(!ro)return null;const{isEditing:Os}=this.state,{hotAttr:{isLock:ss,isVisible:Fs,name:Ei}}=ro,vi=(0,pn.WM)({...ro.hotAttr,display_name:Ei}),li=(0,Ct.N8)(eo,Vt,Xe);return(0,O.jsx)("li",{"data-cid":ro.key,className:"rn-content-item",children:(0,O.jsx)(r.A,{content:vi,direction:"right",distance:5,onMouseEvent:"onDoubleClick",isShowTipsByTarget:this.onShowTipsByTarget,children:(0,O.jsxs)("div",{"data-interactive-target-type":wo.E.canvasList,"data-interactive-target-key":ro==null?void 0:ro.key,ref:this.setElementRef,className:p()("rn-list-item","layer-item","interactive-target-hotspot",Ps,{active:Be,"is-hidden":!Fs,"is-locked":ss,hover:Yt}),style:{paddingLeft:li},onClick:this.handleClick,onMouseEnter:()=>Xo(ro),onMouseLeave:rn,onMouseDown:this.handleMouseDown,onDoubleClick:this.handleDoubleClick,onMouseUp:this.handleMouseUp,children:[Uo()(Ko)?(0,O.jsxs)(Aa.MI,{len:JSON.stringify(At).length,children:[Ko," "]}):(0,O.jsx)(Aa.MI,{len:JSON.stringify(At).length}),(0,O.jsxs)(O.Fragment,{children:[Wt?(0,O.jsx)("span",{className:"editable-name",children:vi}):(0,O.jsx)(Ze.A,{value:vi,className:"editable-name",isEditing:Os,onConfirm:this.handleConfirm},vi),Fs?null:(0,O.jsx)(f.C,{name:"left_panel/invisible",className:"eye-icon",onClick:this.handleInvisibleClick})]})]})})})}}const Dn=lo=>{const Ko=document.querySelector("#canvas-scroll-list"),ro=document.querySelector("#mb-enabled-canvas-list").getBoundingClientRect(),Yt=Ko.getBoundingClientRect(),Be=[],Wt={},At={},Xe={},Vt={};return Array.from(document.querySelectorAll("#mb-enabled-canvas-list >.rn-content-item")).forEach((rn,Ps)=>{const{cid:Os}=rn.dataset,ss=rn.querySelector(":scope > .rn-list-item"),Fs=ss.getBoundingClientRect();Wt[Os]=Xe[Os]=Fs;const Ei=(0,st.yB)(ss);At[Os]=Ei;const{left:vi,top:li,width:Ci,height:yi}=Fs,ea=vi-ro.left,ii=li-ro.top,Wi=ea+Ci,ua=ii+yi,va={top:ii,left:Ei.left-ro.left,width:Ci,height:yi};if(Vt[Os]={contentRect:va,rect:va,treeRect:va},lo.includes(Os)){Be.push({cid:Os,type:null,min:{x:ea,y:ii},max:{x:Wi,y:ua},isValid:!1,parentCid:null});return}Be.push({cid:Os,type:"prevSibling",min:{x:ea,y:ii},max:{x:Wi,y:ii+yi/2},isValid:!0,parentCid:null}),Be.push({cid:Os,type:"nextSibling",min:{x:ea,y:ii+yi/2},max:{x:Wi,y:ua},isValid:!0,parentCid:null})}),{matchDataList:Be,containerRect:Yt,rectQueryMap:Vt}};var Hs=e(72866);const Qn=se.Ay.div.withConfig({displayName:"styles__StyledCanvasListPanel",componentId:"sc-9vkdg5-0"})(["&.canvas-scroll-list{flex:1;overflow-x:hidden;overflow-y:overlay;width:100%;.canvas-sortable-list{position:relative;",";.layer-item{",";padding-left:19px;color:",";background-color:",";&.is-disabled{&.active{color:",";}}.eye-icon{width:20px;height:20px;}&.dummy-select{background:",";}&.active{background:",";}&:not(.active):not(.dummy-select):hover,&:not(.active):not(.dummy-select).hover{background:",";}.expander{display:flex;align-items:center;justify-content:center;margin-left:-15px;margin-right:1px;width:14px;height:14px;.arrow-icon{margin-right:0;color:#999;width:8px;&:not(.is-expand){transform:rotate(-90deg);}}}.layer-item-icon{",";svg.design-rResCanvas-new{color:",";}}.group-icon{opacity:1;.main{fill:#1684fc;}}.ant-icon{width:16px;height:16px;color:#8d9ea7;}.editable-name{overflow:hidden;white-space:nowrap;flex:1;text-overflow:ellipsis;margin-right:0;border:none;}.action{width:20px;height:20px;display:flex;align-items:center;justify-content:center;visibility:visible;cursor:pointer;.svg-icon{width:20px;height:20px;}}&:hover{.action{visibility:visible;}}&:hover,&.hover,&.active{.arrow-icon{color:#999;}.actions{background-color:transparent;}}&.is-disabled{& > *{opacity:0.4;}.actions{display:none;background:inherit;}}&.is-hidden{.eye-icon{visibility:visible;margin-right:6px;color:",";}}&.is-locked{.lock-icon{visibility:visible;}}&.is-linked{.link-icon{visibility:visible;color:",";}}&.is-hidden,&.is-locked,&.is-linked{.actions{display:flex;align-items:center;}}}}}&.canvas-scroll-list{padding:8px;.canvas-sortable-list{.layer-item{border-radius:6px;.editable-span,.editable-name{&.is-editing{textarea{margin-right:18px;border:1px solid #0077FF;border-radius:6px;line-height:16px;padding:3px 6px;}}}}}}"],Ao.eP,Ao.Aw,lo=>lo.theme.color_text_L1,lo=>lo.theme.color_bg_white,lo=>lo.theme.color_proto,lo=>lo.theme.color_bg_select03,lo=>lo.theme.color_directory_active,lo=>lo.theme.color_directory_hover,Aa.u6,lo=>lo.theme.color_text_L1,lo=>lo.theme.color_text_L2,lo=>lo.theme.color_proto);class Gi extends m.PureComponent{constructor(Ko){super(Ko),(0,o.A)(this,"setContainerRef",eo=>{this.$containerRef=eo}),(0,o.A)(this,"getContainerElement",()=>this.$containerRef),(0,o.A)(this,"autoScrollSelected",()=>{const{newSelection:eo,canvasList:ro}=this.props,Yt=eo[0];Yt&&this.$containerRef&&ro.find(Be=>Be.key===Yt)&&(0,bs.yA)(this.$containerRef,Yt)}),(0,o.A)(this,"handleInitData",gs()(()=>{const{keyword:eo,canvasList:ro,echoItemCid:Yt,newSelection:Be}=this.props;if(!(Be!=null&&Be.length))return;const At=(eo?ro.filter(Vt=>Vt.hotAttr.name.toLowerCase().indexOf(eo)!==-1):ro).map(Vt=>{let{key:Xo}=Vt;return Xo}),Xe=(0,Ne.Z7)(At,[...Be,Yt]);this.setState({continuousGroup:Xe})},10)),(0,o.A)(this,"handleClick",(eo,ro)=>{const{newSelection:Yt,canvasList:Be,dispatch:Wt}=this.props,{canvasRange:At}=this.state,Xe=MB.getCurrentScreen().cid,Vt=Yt.length===1&&Yt[0]===Xe?[]:Yt,Xo=Be.map(rn=>{let{key:Ps}=rn;return Ps});(0,Ct.uX)({rangeStart:At.start,rangeEnd:At.end,selected:Vt},{cid:ro.key,cids:Xo,e:eo},rn=>{let{rangeStart:Ps,rangeEnd:Os,selected:ss}=rn;Wt({type:"entry:exit:edit:basket"}),Wt({type:"entry:select:items",payload:{cids:ss,hasNotScrollTop:!0}}),this.setState({canvasRange:{start:Ps,end:Os}})})}),(0,o.A)(this,"handleMouseDown",(eo,ro,Yt)=>{const{newSelection:Be,keyword:Wt}=this.props;if(Wt)return;const{top:At,left:Xe}=Yt.getBoundingClientRect(),Vt=eo.clientX-Xe,Xo=eo.clientY-At,rn=Be.includes(ro.key)?Be:[ro.key],Ps={$element:Yt,offsetX:Vt,offsetY:Xo,selection:rn,...Dn(rn)};this.setState({dragAndDropState:Ps})}),(0,o.A)(this,"handleContextMenu",(eo,ro)=>{const{canvasList:Yt,dispatch:Be}=this.props,{hotAttr:Wt,key:At}=ro,Xe={left:eo.clientX,top:eo.clientY};Be({type:"entry:open:contextmenu:by:component-list",payload:{item:{...Wt,cid:At},position:Xe,byCanvasLayers:!0,byComponentList:!1}}),this.setState({canvasRange:{start:Yt.findIndex(Vt=>{let{key:Xo}=Vt;return Xo===ro.key}),end:void 0}})}),(0,o.A)(this,"handleDrop",eo=>{let{cid:ro,type:Yt,isValid:Be}=eo;const{canvasList:Wt,dispatch:At}=this.props,{dragAndDropState:Xe}=this.state;if(this.setState({dragAndDropState:null}),!Be)return;const Vt=[];for(const Os of Xe==null?void 0:Xe.selection){const ss=sdkStore.getHotItem(Os);Vt.push(ss)}Vt.sort((Os,ss)=>Os.hotAttr.order-ss.hotAttr.order);const Xo=(Wt||[]).filter(Os=>!(Xe!=null&&Xe.selection.includes(Os.key))),rn=Xo.findIndex(Os=>Os.key===ro),Ps=Yt==="prevSibling"?rn:Yt==="nextSibling"?rn+1:"error";if(Ps==="error")throw new Error("drag type error");Xo.splice(Ps,0,...Vt),sdkStore.combineMergeMark("sort-canvas"),Xo.forEach((Os,ss)=>{if(Os.hotAttr.order!==ss+1){const Fs=sdkStore.getHotItem(Os.key),Ei={...Fs,hotAttr:{...Fs.hotAttr,order:ss+1}};sdkStore.updateHotItem(Ei)}}),sdkStore.combineMerge("sort-canvas"),At({type:"entry:refresh:link-list"}),At({type:"entry:rebuild:screen-widget-tree"}),At({type:"directory-panel:bottom:update",payload:{canvasListCacheTag:Math.random()}})}),this.state={dragAndDropState:null,canvasRange:{start:0,end:void 0},continuousGroup:[]},this.treeProps={onClick:this.handleClick,onMouseDown:this.handleMouseDown,onMouseEnter:eo=>{const{dispatch:ro}=this.props;ro({type:"set:echo:item",payload:{cid:eo.key}})},onMouseLeave:()=>{const{dispatch:eo}=this.props;eo({type:"clear:echo:item"})},onContextMenu:this.handleContextMenu,onChangeDisplayName:eo=>{const{newSelection:ro,dispatch:Yt}=this.props;if(eo.trim()===""||eo.includes("/"))MB.notice({text:I18N.Common.name_cannot_be_empty_or_symbol,type:"warning"});else{const Wt=ro.map(At=>({key:At,hotAttr:{name:eo}}));Yt({type:"entry:widget:change",payload:{flatChgList:Wt,shouldBreakLayerUICache:!0,shouldBreakCanvasUICache:!0}})}},onClickIcon:()=>{this.props.dispatch({type:"entry:design:zoom:selection"})},onToggleVisible:eo=>{this.props.dispatch({type:"entry:toggle:visible",payload:{widget:eo}})}}}componentDidUpdate(Ko){const{newSelection:eo,keyword:ro,canvasList:Yt,echoItemCid:Be}=this.props;eo!=null&&eo.length&&eo!==Ko.newSelection&&this.autoScrollSelected(),(Ko.newSelection!==eo||Ko.keyword!==ro||Ko.canvasList!==Yt||Ko.echoItemCid!==Be)&&this.handleInitData()}componentDidMount(){this.autoScrollSelected(),this.handleInitData()}render(){const{canvasList:Ko,newSelection:eo,hoverItem:ro,onlyView:Yt,isCommunityPreview:Be,show:Wt,keyword:At}=this.props,{dragAndDropState:Xe,continuousGroup:Vt}=this.state;if(!Wt)return null;const{matchDataList:Xo,containerRect:rn,rectQueryMap:Ps,$element:Os,offsetX:ss,offsetY:Fs}=Xe||{},Ei=At?Ko.filter(Ci=>Ci.hotAttr.name.toLowerCase().indexOf(At)!==-1):Ko,{initPaddingLeft:vi,paddingLeftLayout:li}=(0,Ct.zD)({isCommunityPreview:Be,isCanvasSortableList:!0});return(0,O.jsx)(O.Fragment,{children:(0,O.jsxs)(Qn,{id:"canvas-scroll-list",className:p()("canvas-scroll-list","scrollbar2-container"),ref:this.setContainerRef,children:[(0,O.jsxs)("div",{className:"canvas-sortable-list",children:[(0,O.jsx)("ul",{id:"mb-enabled-canvas-list",children:Ei.map((Ci,yi)=>{const{isContinuousStart:ea,isContinuousEnd:ii,isContinuousMiddle:Wi}=(0,Ne.M5)(Ci.key,Vt);return(0,O.jsx)(ys,{className:p()({"is-continuous-start":ea},{"is-continuous-end":ii,"is-continuous-middle":Wi}),depth:0,index:yi+1,canvas:Ci,isHover:ro===Ci.key,isSelected:eo==null?void 0:eo.includes(Ci.key),onlyView:Yt,treeProps:this.treeProps,initPaddingLeft:vi,paddingLeftLayout:li,maxOrderDigit:Ei.length},Ci.key)})}),Xe&&!Yt&&(0,O.jsx)(Ho.A,{draggingElement:Os,getContainerElement:this.getContainerElement,matchDataList:Xo,containerRect:rn,rectQueryMap:Ps,offsetX:ss,offsetY:Fs,onDrop:this.handleDrop})]}),this.$containerRef&&(0,O.jsx)(an.yP,{type:"vertical",containerRef:{current:this.$containerRef},isAutoHideBar:!0})]})})}}const oa=(0,l.Mz)([di.p$,C.IL,C.jx,C.pH,u.p$,u.dA,Ti.VH],(lo,Ko,eo,ro,Yt,Be,Wt)=>{const At=Yt.key;if(!At)return{show:!1};const Xe=eo===A.qi.OnlyView;return{show:!0,canvasList:(0,Hs.YM)(At),newSelection:lo,hoverItem:Ko,onlyView:Xe,isCommunityPreview:ro,echoItemCid:Wt}}),ta=(0,g.Ng)(lo=>oa(lo))(Gi);var Sa=e(19722),La=e(94498),ya=e(73734),Ja=e(42708);function No(){const lo=(0,g.d4)(b.Ur),Ko=(0,g.wA)(),eo=(0,m.useCallback)(Yt=>Yt.stopPropagation(),[]),ro=(0,m.useCallback)(()=>{if(!lo){MB.notice({text:"\u5F53\u524D\u65E0\u753B\u5E03\uFF0C\u8BF7\u5148\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u753B\u5E03",type:"warning"});return}const Yt=(0,ya.gu)({type:ze.x.Canvas,screen:lo,attrs:{width:0,height:0}});Ko({type:"entry:batch:create:items:position",payload:{finalWidget:Yt}}),(0,Ja.wH)({page:Yt})},[Ko,lo]);return(0,O.jsx)(r.A,{content:I18N.ScreenPanel.screen,direction:"down",children:(0,O.jsx)("a",{className:"header-icon",onMouseDown:eo,onClick:ro,children:(0,O.jsx)(Sa.A,{name:"common/add_plus"})})})}const ct=(0,m.memo)(No);var Mt=e(89535);function ht(){const lo=(0,g.d4)(b.Ur),Ko=(0,g.d4)(u.wJ),eo=(0,g.wA)(),ro=(0,m.useMemo)(()=>(0,Ct.ww)(lo,Ko),[lo,Ko]),Yt=(0,m.useMemo)(()=>ro?{content:I18N.Comment.collapse,onClick:()=>eo({type:"layerExpandedKeySet:close:ref",payload:{refs:[]}}),iconName:"common/layer_collpase_close"}:{content:I18N.ScreenPanel.expand,onClick:()=>eo({type:"layerExpandedKeySet:open:ref"}),iconName:"common/layer_collpase_open"},[eo,ro]),Be=(0,m.useCallback)(Wt=>Wt.stopPropagation(),[]);return(0,O.jsx)(Mt.A,{content:Yt.content,direction:"down",children:(0,O.jsx)("a",{className:"header-icon",onMouseDown:Be,onClick:Yt.onClick,children:(0,O.jsx)(Sa.A,{name:Yt.iconName})})})}const oo=(0,m.memo)(ht),uo=se.Ay.header.withConfig({displayName:"styles__StyledHeader",componentId:"sc-1vhzls3-0"})(["width:100%;height:40px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid ",";border-bottom:1px solid ",";&:not(.is-search-mode){padding:0 9px 0 16px;&.isCommunityPreview{padding:0 6px 0 14px;}}.switch-tab{position:relative;display:flex;align-items:center;height:100%;.label{color:",";font-size:12px;font-style:normal;font-weight:400;line-height:12px;&.active{color:",";font-weight:500;}}button{height:40px;width:40px;&:lang(en){width:52px;}display:flex;justify-content:center;align-items:center;&.readonly{pointer-events:none;color:",";}}.indicator{position:absolute;left:8px;bottom:0px;height:2px;width:24px;background-color:",";transition:left 0.2s ease-in-out;&.page{left:8px;}&.layer{left:48px;&:lang(en){left:60px;}}}}&.has-drag{cursor:grab;}.header-icon{","}.buttons{display:flex;.sticky-collapse{margin-left:4px;}}.searchBar{height:28px;margin:6px 0;}"],lo=>lo.theme.color_bg_border_01,lo=>lo.theme.color_bg_border_01,lo=>lo.theme.color_text_L3,lo=>lo.theme.color_text_L1,lo=>lo.theme.color_text_L1,lo=>lo.theme.color_text_L1,Ao.n9);function So(lo){const{mode:Ko="all",keyword:eo,height:ro,navIndex:Yt,onSwitchTab:Be,onChangeHeight:Wt,onChangeKeyword:At}=lo,Xe=(0,g.d4)(C.pH),Vt=(0,g.d4)(C.jx),Xo=(0,g.d4)(E.r),rn=Vt===A.qi.OnlyView,Ps=Xo==null?void 0:Xo.isEditingProjectMain,[Os,ss]=(0,m.useState)(!1),Fs=(0,m.useCallback)(ii=>ii.stopPropagation(),[]),Ei=(0,m.useCallback)(ii=>{ii.stopPropagation(),Be(Number(ii.currentTarget.dataset.index))},[Be]),vi=(0,m.useCallback)(ii=>{if(ii.stopPropagation(),Os)return;const Wi=window.innerHeight-310,ua=ii.clientY,va=-1,tr=dr=>{const ir=(dr.clientY-ua)*va,Wr=Math.max(Math.min(ro+ir,Wi),_.nG);Wt(Wr)},xa=()=>{document.removeEventListener("mousemove",tr),document.removeEventListener("mouseup",xa)};document.addEventListener("mousemove",tr),document.addEventListener("mouseup",xa)},[Os,ro,Wt]),li=(0,m.useCallback)(()=>ss(!0),[]),Ci=(0,m.useCallback)(ii=>{ii.stopPropagation(),At(""),ss(!1)},[At]),yi=Xe?262:310,ea=Yt===0?I18N.ScreenPanel.search_screen:I18N.ScreenPanel.search_widgets;return(0,O.jsxs)(m.Fragment,{children:[(0,O.jsx)(te.A,{placement:"top",value:ro,min:_.nG,max:window.innerHeight-yi,onChange:Wt}),(0,O.jsx)(uo,{className:p()({"has-drag":!Os},{"is-search-mode":Os},{isCommunityPreview:Xe}),onMouseDown:vi,children:Os?(0,O.jsx)(La.A,{keyword:eo,placeholder:ea,onChangeKeyword:At,onExitSearch:Ci}):(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)("div",{className:"switch-tab",children:[["all","page"].includes(Ko)&&(0,O.jsx)("button",{className:p()("label page",Yt===0&&"active",Ko!=="all"&&"readonly"),"data-index":"0",onClick:Ei,children:I18N.LeftSidePanel.artboard}),["all","layer"].includes(Ko)&&(0,O.jsx)("button",{className:p()("label layer",Yt===1&&"active",Ko!=="all"&&"readonly"),"data-index":"1",onClick:Ei,children:I18N.LeftSidePanel.layer})]}),(0,O.jsxs)("div",{className:"buttons",children:[Yt===0&&!rn&&Ps&&(0,O.jsx)(ct,{}),(0,O.jsx)(r.A,{content:Yt===0?I18N.ScreenPanel.search_screen:I18N.ScreenPanel.element_search,direction:"down",children:(0,O.jsx)("a",{className:"header-icon",onMouseDown:Fs,onClick:li,children:(0,O.jsx)(Sa.A,{name:"common/search"})})}),Yt===1&&(0,O.jsx)(oo,{})]})]})})]})}const zo=(0,m.memo)(So),en=se.Ay.div.withConfig({displayName:"styles__StyledBottomPanel",componentId:"sc-1uo4d86-0"})(["position:relative;background:",";width:100%;height:100%;display:flex;flex-direction:column;overflow:hidden;&.has-bottom-padding{padding-bottom:112px;}.border-resizer.top{top:0;&:hover{background-color:rgba(22,132,252,.6);}&.active{background-color:rgba(22,132,252,.6);}}"],lo=>lo.theme.color_bg_white);function mn(lo,Ko){Ko==="click"&&(0,$.kX)({operation_type:lo===0?$.mV.directoryPage:$.mV.directoryLayer}),Ko==="search"&&(0,Cn.A)({operation_type:lo===0?Cn.D.SearchPage:Cn.D.SearchLayers})}function jn(lo){let{mode:Ko="all",isRenderFreeNumberExceeded:eo}=lo;const ro=(0,g.wA)(),Yt=(0,g.d4)(u.K_),Be=(0,g.d4)(u.AT),[Wt,At]=(0,m.useState)(""),Xe=p()({"has-bottom-padding":eo}),Vt=(0,m.useMemo)(()=>Ko==="all"?Be:Ko==="page"?0:Ko==="layer"?1:Be,[Ko,Be]),Xo=(0,m.useCallback)(ss=>{ro({type:"directory-panel:bottom:set:nav",payload:{nav:ss}}),mn(ss,"click")},[ro]),rn=oi()((0,m.useCallback)(ss=>{ss({type:"entry:update:screen_list_rect"})},[]),20),Ps=(0,m.useCallback)(ss=>{ro({type:"directory-panel:bottom:set:height",payload:{height:ss}}),rn(ro)},[ro,rn]),Os=(0,m.useCallback)(ss=>{At(ss),mn(Vt,"search")},[Vt]);return(0,m.useEffect)(()=>{mn(Vt,"click")},[]),(0,O.jsxs)(en,{style:{flexBasis:Yt},className:Xe,children:[(0,O.jsx)(zo,{mode:Ko,height:Yt,keyword:Wt,navIndex:Vt,onSwitchTab:Xo,onChangeKeyword:Os,onChangeHeight:Ps}),Vt===0&&(0,O.jsx)(ta,{keyword:Wt}),Vt===1&&(0,O.jsx)(Vo,{keyword:Wt})]})}const Oo=(0,m.memo)(jn);var Nn=e(59305),es=e(24660);const zt=se.Ay.div.withConfig({displayName:"styles__StyledFreeNumberExceeded",componentId:"sc-8hzan9-0"})(["width:100%;height:72px;border-top:1px solid ",";display:flex;align-items:center;justify-content:center;color:",";font-size:12px;background-color:",";padding:0 24px;position:absolute;bottom:0;.free-left{display:flex;align-items:center;width:calc(100% - 50px);height:100%;.free-number{display:flex;flex-direction:column;span{margin-left:8px;}.red{color:",";font-weight:500;}}}.uprate{height:24px;width:54px;color:#FFFFFF;font-weight:500;align-items:center;justify-content:center;display:flex;cursor:pointer;border-radius:6px;padding:4px 8px 4px 8px;background:#FF8C19;white-space:nowrap;gap:2px;}"],lo=>lo.theme.color_bg_border_01,lo=>lo.theme.color_text_L1,lo=>lo.theme.canvas_page_exceeded_panel,lo=>lo.theme.color_text_error);var po=e(29107),Fo=e(39547),Mn=e(89604);const Fn=lo=>{let{setIsRenderFreeNumberExceeded:Ko}=lo;const eo=(0,g.d4)(b.HW),ro=(0,g.d4)(b.wA),Yt=(0,g.d4)(Ti.RX),Be=(0,g.d4)(u.HA),[Wt,At]=(0,m.useState)(0),[Xe,Vt]=(0,m.useState)(0),[Xo,rn]=(0,m.useState)(0),[Ps,Os]=(0,m.useState)(!1),ss=(0,m.useMemo)(()=>{if(!eo)return!1;if(ro&&ro.otype!=="personal"){const{plan:yi}=(0,Nn.rM)(ro);return[Mn.Sj.OrgExpired,Mn.Sj.OrgFree].includes(yi)}else return Fo.t.InitialUser(eo).planSdk.prototypePlan.getUserPlan()===Mn.L1.Free},[eo,ro]);(0,m.useEffect)(()=>{if(!ss)return;const yi=(0,po.Uu)(),ea=(0,po.$Q)();At(yi),Vt(ea),rn((0,po.UU)({}))},[Yt,Wt,Xe,ss,Be]);const{maxCanvasCount:Fs,maxScreenCount:Ei,maxWidgetCount:vi}=(0,Nn.xR)(eo,ro),li=function(yi){yi===void 0&&(yi=!1);const ea=ro?"v8_\u4F01\u4E1A_\u6587\u4EF6\u4FE1\u606F\u70B9\u51FB":"v8_\u4E2A\u4EBA_\u6587\u4EF6\u4FE1\u606F\u70B9\u51FB",ii=yi?"proto-v8_file_info_upgrade":"proto-v8_file_info_click",Wi=(0,es.l)(ro,ea,ii);MB.global.popupHelper.chargeAsync(Wi)};if((0,m.useEffect)(()=>{if(!ss||Wt<Ei&&Xe<Fs&&Xo<100){Os(!1),Ko(!1);return}Os(!0),Ko(!0)},[ss,Wt,Ei,Xe,Fs,Xo,Ko]),!Ps)return null;const Ci=(0,po.N)(vi)?"\u4E0D\u9650":vi;return(0,O.jsxs)(zt,{children:[(0,O.jsx)("div",{className:"free-left",children:(0,O.jsxs)("div",{className:"free-number",children:[(0,O.jsxs)("div",{children:[I18N.LeftSidePanel.page,(0,O.jsx)("span",{className:p()(Wt>=Ei&&"red"),children:Wt}),"/",Ei]}),(0,O.jsxs)("div",{children:[I18N.LeftSidePanel.screens,(0,O.jsx)("span",{className:p()(Xe>=Fs&&"red"),children:Xe}),"/",Fs]}),(0,O.jsxs)("div",{children:[I18N.LeftSidePanel.widgets,(0,O.jsx)("span",{className:p()(Ci!=="\u4E0D\u9650"&&Xo>=vi&&"red"),children:Xo}),"/",Ci]})]})}),(0,O.jsxs)("div",{className:"uprate",onClick:()=>li(!0),children:[(0,O.jsx)(f.C,{size:12,name:"common/limit/upgrade"}),(0,O.jsx)("span",{children:I18N.Common.upgrade})]})]})},ts=(0,m.memo)(Fn);function As(){const lo=(0,g.d4)(E.r),Ko=lo==null?void 0:lo.isEditingCombo,eo=(0,g.d4)(C.jx),[ro,Yt]=(0,m.useState)(!1);return(0,O.jsx)("div",{className:"mb-left-panel-container",children:(0,O.jsxs)("div",{className:"list-panel",children:[(0,O.jsx)(Xs,{}),(0,O.jsx)(Oo,{mode:Ko?"layer":"all",isRenderFreeNumberExceeded:ro}),!Ko&&eo!==A.qi.OnlyView&&(0,O.jsx)(ts,{setIsRenderFreeNumberExceeded:Yt})]})})}const Is=(0,m.memo)(As);var io=e(78765);const Jo=se.Ay.div.withConfig({displayName:"styles__StyledLeftPane",componentId:"sc-5fx6js-0"})(["box-sizing:border-box;position:relative;flex-shrink:0;display:flex;align-items:stretch;background:",";box-shadow:1px 0 0 ",";font-size:12px;z-index:4;width:","px;height:100%;&.left-panel-size{box-sizing:border-box;}.mb-left-panel{width:100%;height:100%;display:flex;overflow:hidden;.title{white-space:nowrap;}.mb-left-panel-container{display:flex;flex-direction:column;width:100%;header.tabs-container{height:40px;flex-shrink:0;border-bottom:1px solid ",";font-size:12px;padding:0px 20px 0px 20px;.nav-item:not(:first-child){margin-left:16%;}.nav-item{padding:0;.nav-label{padding:0;width:30px;}&.active{font-weight:500;}}.left-panel-tabs{max-width:104px;}}#mb-layer-panel{flex:1;}}.list-panel{flex:1;position:relative;background:",";display:flex;flex-direction:column;overflow:hidden;.rn-content-body{flex:1;overflow-x:hidden;overflow-y:overlay;padding:8px;}}aside.popups-panel{width:100%;height:100%;border:none;box-shadow:none;}.border-resizer.right{right:-1px;&:hover{background-color:rgba(22,132,252,.6);}&.active{background-color:rgba(22,132,252,.6);}}.scrollbar2-container{overflow:auto;scrollbar-width:none;&::-webkit-scrollbar{display:none;}.bar-vertical{top:40px;height:calc(100% - 40px);}}}&.isDeleteRulerLine{pointer-events:none;}"],lo=>lo.theme.color_bg_white,lo=>lo.theme.color_bg_border_01,_.Cj,lo=>lo.theme.color_bg_border_02,lo=>lo.theme.color_bg_white);class Zo extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"setElementRef",Ko=>this.$elem=Ko),(0,o.A)(this,"handleResizeStart",()=>{this.$elem.style.transition="none"}),(0,o.A)(this,"handleResizeEnd",()=>this.$elem.style.transition=""),(0,o.A)(this,"handleWidthChange",Ko=>{const{dispatch:eo,rootProject:ro}=this.props;eo({type:"left-panel:set:width",payload:{width:Ko,projectCid:ro.cid}}),eo({type:"entry:update:viewport:rect"}),eo({type:"entry:observe:dom:left-panel-width"})})}render(){const{isLeftShow:Ko,currentPopupPanel:eo,leftPanelWidth:ro,isDeleteRulerLine:Yt,maxWidth:Be,layout:Wt,isCommunityPreview:At}=this.props,Xe=At||Ko?1:0,Vt=eo===N.lS.Directory,Xo=eo===N.lS.AI,rn=N.P4.includes(eo)||Wt==="old_right",Ps=Xe*ro,Os=Xe===0?"none":" ";return(0,O.jsx)(Jo,{className:p()("left-panel-box",{"left-panel-size":!Ko},{isDeleteRulerLine:Yt}),style:{width:Ps,display:Os},children:(0,O.jsxs)("div",{className:"mb-left-panel left-panel-body",ref:this.setElementRef,children:[Wt==="old_right"&&(0,O.jsx)(Is,{}),Wt!=="old_right"&&(0,O.jsxs)(O.Fragment,{children:[" ",Vt?(0,O.jsx)(Is,{}):(0,O.jsx)(io.A,{})]}),Ko&&!Yt&&rn&&(0,O.jsx)(te.A,{placement:"right",className:"v-resizer",value:ro,min:Xo?_.Cj:_.CN,max:Be,onResizeStart:this.handleResizeStart,onResizeEnd:this.handleResizeEnd,onChange:this.handleWidthChange})]})})}}const Un=(0,l.Mz)([u.Xf,u.OW,u.uE,K.Q,xe.g6,b.PL,T.bP,C.pH],(lo,Ko,eo,ro,Yt,Be,Wt,At)=>({isLeftShow:lo,currentPopupPanel:Ko,leftPanelWidth:eo,isDeleteRulerLine:ro,maxWidth:Yt,rootProject:Be,layout:Wt,isCommunityPreview:At})),On=(0,g.Ng)(lo=>Un(lo))(Zo),us=se.Ay.div.withConfig({displayName:"styles__StyledLeftSidePanel",componentId:"sc-1i1nmxp-0"})(["display:flex;position:relative;z-index:2;"]);var bn=e(1190);const Gn=(0,bn.$)(On);class xs extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"toggleLeftPane",()=>{const{dispatch:Ko}=this.props;Ko({type:"entry:toggle:left-nav-panel"})})}componentDidMount(){var Ko,eo;const{dispatch:ro,layoutV9:Yt}=this.props,Be=(0,V.XM)();Yt==="recommend"&&!Be&&!((Ko=MB.commonGuideHelper)!=null&&Ko.checkGuideHasShown(a.c.GUIDE_NOVICE_V9_2408))&&!((eo=MB.commonGuideHelper)!=null&&eo.checkGuideHasShown(a.c.GUIDE_NOVICE_V9_2408_STEP_1))&&setTimeout(()=>{ro({type:"left-panel:collapse:panel:show"})},0)}render(){const{isCommunityPreview:Ko,isHTMLZipPreviewMode:eo,isEmbedV2Preview:ro,layout:Yt,isShowRuler:Be,isShowLeftPane:Wt,isFullScreenMode:At,onlyView:Xe}=this.props;return(0,O.jsxs)(us,{id:"left-slide-panel","data-is-widget-insertable":!1,children:[!Ko&&!ro&&!Xe&&Yt!=="old_right"&&(0,O.jsx)(q,{}),Xe&&(!Ko||At)?(0,O.jsx)(Gn,{isVisible:Wt,orientation:"left",vacuum:!Be||Ko||ro||eo?0:24,toggleFunc:this.toggleLeftPane,guideKey:a.c.INTER_SWITCHABLE_VIEW_MODE_OV_TOGGLE_PANE_BTN}):(0,O.jsx)(On,{})]})}}const Es=(0,l.Mz)([C.pH,C.rg,C.uu,T.bP,T.qT,u.Xf,C.T7,C.jx,T.MZ],(lo,Ko,eo,ro,Yt,Be,Wt,At,Xe)=>{const Vt=At===A.qi.OnlyView;return{isCommunityPreview:lo,isHTMLZipPreviewMode:Ko,isEmbedV2Preview:eo,layout:ro,isShowLeftPane:Be,isShowRuler:Yt,isFullScreenMode:Wt,onlyView:Vt,layoutV9:Xe}}),Ys=(0,g.Ng)(lo=>Es(lo))(xs)},64756:(Et,ke,e)=>{"use strict";e.d(ke,{_H:()=>A,jm:()=>C,lS:()=>l});var o=e(36521),m=e(95230),g=e(40778);const l="leftnav_collapse",C="ro_leftnav_collapse",T={show:(0,o.Yt)((0,g.OB)()?l:C,!0,o.qW.Boolean),width:m.Cj,maxWidth:1/0};function A(k,p){k===void 0&&(k=T);const{type:r,payload:x}=p;switch(r){case"left-panel:update:state":return{...k,...x};case"left-panel:collapse:panel":{var f;return((f=x==null?void 0:x.isMemorize)!=null?f:!0)&&(0,o.a0)((0,g.OB)()?l:C,!k.show,o.qW.Boolean),{...k,show:!k.show}}case"left-panel:collapse:panel:show":{var u,b,h;return((u=x==null?void 0:x.isMemorize)!=null?u:!0)&&(0,o.a0)((0,g.OB)()?l:C,(b=x==null?void 0:x.show)!=null?b:!0,o.qW.Boolean),{...k,show:(h=x==null?void 0:x.show)!=null?h:!0}}case"left-panel:set:width":return x!=null&&x.isNotSaveLocal||(0,o.a0)("layer_left_panel_width_"+x.projectCid,x.width,o.qW.Number),{...k,width:x.width};case"left-panel:update:max-width":return{...k,maxWidth:x.screenListMaxWidth}}return k}},89399:(Et,ke,e)=>{"use strict";e.d(ke,{A6:()=>g,BD:()=>l,P2:()=>o,jy:()=>m,kE:()=>T,l7:()=>A,rg:()=>C,wO:()=>k});const o="left-layout:mt-inter-observer:exposure-track:set:shown-cids",m="left-layout:mt-inter-observer:exposure-track:set:observer-items-obj",g="left-layout:mt-inter-observer:exposure-track:add:observer-items-obj",l="left-layout:mt-inter-observer:exposure-track:exec-observe",C="search-panel:mt-inter-observer:load-mt-data:init-observer",T="search-panel:mt-inter-observer:load-mt-data:exec-observe",A="combo-panel:mt-inter-observer:load-mt-data:init-observer",k="combo-panel:mt-inter-observer:load-mt-data:exec-observe"},78765:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>Dc});var o=e(51044),m=e(72605),g=e(63686),l=e(98386),C=e(74059),T=e(47143),A=e(54606),k=e(94153),p=e(78570),r=e(27032),x=e(30797),f=e(86634),u=e.n(f),b=e(7290),h=e(11777),E=e(43974),N=e(29601),z=e(21676);const S=z.Ay.div.withConfig({displayName:"styles__StyledTabResourcesOptionBox",componentId:"sc-17ufrg5-0"})(["width:100%;display:flex;flex-shrink:0;align-items:center;cursor:pointer;.new-picture{margin-left:14px;}.box-item{height:28px;background:",";color:",";border-radius:4px;display:flex;flex:1;flex-shrink:0;align-items:center;justify-content:center;&.disabled{cursor:not-allowed;color:",";.upload-image{svg.svg-icon{path{stroke:",";}}}}&:not(.disabled):hover{background:",";.upload-image{svg.svg-icon{path{stroke:",";}}}}p{margin-left:2px;}}"],Ge=>Ge.theme.color_bg_card,Ge=>Ge.theme.color_text_L1,Ge=>Ge.theme.color_text_L3,Ge=>Ge.theme.color_text_L3,Ge=>Ge.theme.color_btn_secondary_hover,Ge=>Ge.theme.color_text_L1),_=z.Ay.div.withConfig({displayName:"styles__StyledIconResourcesOptionBox",componentId:"sc-17ufrg5-1"})(["display:flex;align-items:center;.container{&:first-child{margin-right:8px;}}"]),y=z.Ay.div.withConfig({displayName:"styles__StyledIconPark",componentId:"sc-17ufrg5-2"})(["width:","px;height:","px;display:flex;align-items:center;justify-content:center;&.add{svg.svg-icon{width:10px;height:10px;}}&.add-folder{svg.svg-icon{width:13px;height:12px;}}&.upload-image{svg.svg-icon{width:8px;height:10px;path{stroke:",";}}}&.disabled{cursor:not-allowed;color:",";}&:not(.disabled).icon-container{border-radius:4px;cursor:pointer;transition:all 0.2s ease-in-out;&:active{background-color:",";}&:not(:active):hover{background-color:",";}}"],Ge=>Ge.width||16,Ge=>Ge.width||16,Ge=>Ge.theme.color_text_L2,Ge=>Ge.theme.color_text_L3,Ge=>Ge.theme.color_btn_secondary_active,Ge=>Ge.theme.color_btn_secondary_active);var a=e(57464);class $ extends o.PureComponent{constructor(){super(...arguments),(0,C.A)(this,"handleAddToNewWeights",()=>{const{canCreateCombo:jt,isOrg:Dt,dispatch:Zt}=this.props;jt&&Zt({type:"entry:check:combo:auto:to:user:org:group",payload:{isOrg:Dt}})}),(0,C.A)(this,"handleAddToNewAssets",()=>{const{dispatch:jt,isOrg:Dt}=this.props;jt({type:"entry:check:asset:auto:to:user:org:group",payload:{isOrg:Dt}})}),(0,C.A)(this,"handleCreateGroup",()=>{const{isOrg:jt,isImage:Dt,collapsePanelSet:Zt,dispatch:fo}=this.props;fo(Dt?{type:"entry:auto:create:asset-group",payload:{isOrg:jt}}:{type:"entry:auto:create:combo-group",payload:{isOrg:jt}});const Eo=new Set(Zt),Bo=Dt?jt?E.eA:E.Hj:jt?E.iT:E.fO;Eo.add(Bo),fo({type:"resources:update:collapsePanelSet",payload:{collapsePanelSet:Eo}})})}render(){const{canCreateCombo:jt,hasSelectedTree:Dt,isPureIcon:Zt,isStar:fo,isImage:Eo,isOrg:Bo,canEditLibrary:xn,onGotoFind:Qo}=this.props,Yn=Eo?"":Dt?jt&&Zt?I18N.Popups.new_weights:"":I18N.Resources.userResources.selectedElement;return(0,a.jsx)(a.Fragment,{children:Zt?fo?(0,N.k)()?(0,a.jsx)(h.A,{content:I18N.Popups.findMore,direction:"down",children:(0,a.jsx)("div",{className:"container",children:(0,a.jsx)(fe,{name:"panel/add",className:"add icon-container",width:24,onClick:Qo})})}):null:(0,a.jsx)(ce,{comboTips:Yn,canCreateCombo:jt,onAddToNewWeights:this.handleAddToNewWeights,onCreateGroup:this.handleCreateGroup}):(0,a.jsx)(de,{comboTips:Yn,canCreateCombo:jt,isOrg:Bo,canEditLibrary:xn,isImage:Eo,onAddToNewAssets:this.handleAddToNewAssets,onAddToNewWeights:this.handleAddToNewWeights,onCreateGroup:this.handleCreateGroup})})}}const ce=(0,o.memo)(Ge=>{let{comboTips:jt,canCreateCombo:Dt,onAddToNewWeights:Zt,onCreateGroup:fo}=Ge;return(0,a.jsxs)(_,{children:[(0,a.jsx)(h.A,{content:jt,direction:"down",children:(0,a.jsx)("div",{className:"container",children:(0,a.jsx)(fe,{name:"panel/add",className:u()("add","icon-container",{disabled:!Dt}),width:24,onClick:Zt})})}),(0,a.jsx)(h.A,{content:I18N.Popups.new_folder,direction:"down",children:(0,a.jsx)("div",{className:"container",children:(0,a.jsx)(fe,{name:"common/add/folder",className:"add-folder icon-container",width:24,onClick:fo})})})]})}),de=(0,o.memo)(Ge=>{let{comboTips:jt,canCreateCombo:Dt,isImage:Zt,isOrg:fo,canEditLibrary:Eo,onAddToNewWeights:Bo,onAddToNewAssets:xn,onCreateGroup:Qo}=Ge;const Yn=fo&&!Eo||!Zt&&!Dt,$n=fo&&!Eo;return(0,a.jsxs)(S,{children:[(0,a.jsx)(h.A,{maxWidth:"236px",content:fo?Eo?jt:I18N.pComment.no_permission_contact_administrator:jt,direction:"down",style:{padding:"12px 16px"},children:(0,a.jsxs)("div",{className:u()("box-item",{disabled:Yn}),onClick:Yn?void 0:Zt?xn:Bo,children:[(0,a.jsx)(fe,{name:Zt?"art_board/upload/image":"panel/add",className:Zt?"upload-image":"add"}),(0,a.jsx)("p",{children:Zt?I18N.LibraryContainer.add_image:I18N.Popups.new_weights})]})}),(0,a.jsx)(h.A,{content:$n?I18N.pComment.no_permission_contact_administrator:"",direction:"down",maxWidth:"236px",style:{padding:"12px 16px"},children:(0,a.jsxs)("div",{className:u()("new-picture box-item",{disabled:$n}),onClick:$n?void 0:Qo,children:[(0,a.jsx)(fe,{name:"common/add/folder",className:"add-folder"}),(0,a.jsx)("p",{children:I18N.Popups.new_folder})]})})]})}),fe=(0,o.memo)(Ge=>{let{className:jt,name:Dt,width:Zt,onClick:fo}=Ge;return(0,a.jsx)(y,{className:jt,width:Zt,onClick:fo,children:(0,a.jsx)(b.C,{name:Dt})})});var se=e(15668),J=e(51684);const ve=z.Ay.div.withConfig({displayName:"styles__StyledItemThumbnailList",componentId:"sc-1qlb8ua-0"})(["height:100%;padding-top:4px;padding-left:12px;overflow-x:hidden;overflow-y:auto;ul{width:calc(100% + 18px);display:flex;flex-wrap:wrap;}"]);class D extends o.PureComponent{render(){const{groupCid:jt,currentUserId:Dt,canEditLibrary:Zt,canAddToOrg:fo,selectCidSet:Eo,items:Bo,itemActions:xn,containerRect:Qo}=this.props;return(0,a.jsx)(ve,{className:u()("item-thumbnail-list","thumbnail-list"),children:(0,a.jsx)("ul",{children:Bo.map(Yn=>(0,a.jsx)(J.A,{canAddToOrg:fo,canEditLibrary:Zt,groupCid:jt,item:Yn,currentUserId:Dt,isSelect:Eo.has(Yn.key),containerRect:Qo,comboActions:xn},Yn.key))})})}}(0,C.A)(D,"defaultProps",{selectCidSet:new Set,canEditLibrary:!0});var R=e(29739),V=e(98195),O=e(55624),Ce=e(14116),ae=e(44057),q=e(48590);const K=(0,z.Ay)(ae.Ay).withConfig({displayName:"styles__StyledActionsMenu",componentId:"sc-1cwo72i-0"})(["",";"],q.ZJ),xe=(0,z.DU)(["body > div > div.context-menu-mask{width:initial;height:initial;.mb-resource-action-menu{ul{min-width:auto;width:136px;.add-sub-item > a{padding-left:16px;}}}}"]);var te=e(19418),H=e(51691);const re=(Ge,jt)=>{if(!Ge)return 0;let Dt=jt?Ge.assets_count:Ge.children?Ge.children.length:0;if(Ge.subFolder)for(const Zt of Ge.subFolder)Dt+=re(Zt,jt);return Dt},be=(0,o.memo)(Ge=>{const{canRemove:jt,position:Dt,isShowAddToOrg:Zt,level:fo,onShowMenu:Eo}=Ge,{onEdit:Bo,onTransferOrg:xn,onRemove:Qo,onAdd:Yn,onAddSub:$n}=Ge,ls=(0,m.d4)(T.qv),Ns=Ws=>{xn(Ws),Eo(!1)},Cs=Ws=>{Bo(Ws),Eo(!1)},Us=Ws=>{Qo(Ws),Eo(!1)},Qs=Ws=>{Ws.stopPropagation(),$n(Ws),Eo(!1)},Bs=(Ws,ci)=>{Ws.stopPropagation(),Yn(Ws,ci),Eo(!1)};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(K,{className:u()("mb-resource-action-menu"),position:Dt,children:[(0,a.jsx)(ae.Dr,{text:I18N.Resources.combo_panel.rename,onClick:Cs}),(0,a.jsxs)(ae.Dr,{text:I18N.Resources.combo_panel.add,isAiry:!0,children:[(0,a.jsx)(ae.Dr,{text:I18N.Resources.combo_panel.subfolder,className:"add-sub-item",disabled:fo===4,onClick:Qs}),(0,a.jsx)(ae.Dr,{text:I18N.Resources.combo_panel.add_folder_above,className:"add-sub-item",onClick:Ws=>Bs(Ws,"up")}),(0,a.jsx)(ae.Dr,{text:I18N.Resources.combo_panel.add_folder_below,className:"add-sub-item",onClick:Ws=>Bs(Ws,"down")})]}),Zt&&ls&&(0,a.jsx)(ae.Dr,{text:I18N.Resources.combo_panel.add_to_org,onClick:Ns}),jt&&(0,a.jsx)(ae.Dr,{text:I18N.Resources.combo_panel.delete,onClick:Us})]}),(0,a.jsx)(xe,{})]})});be.displayName="ActionsMenu";const Le=Ge=>{const{source:jt,isOrg:Dt,sceneTag:Zt,canRemove:fo,cgCid:Eo,level:Bo,isShowAddToOrg:xn,showMenu:Qo,projectUpperCid:Yn,teamCid:$n,group:ls,onShowMenu:Ns,onEdit:Cs,onRemove:Us,onTransferOrg:Qs,onAdd:Bs,onAddSub:Ws}=Ge,{name:ci,children:Ai}=ls,Oi=re(ls,!1)>0,[Ii,$a]=o.useState({top:0,left:0}),Re=o.useRef(null),je=vt=>{if(vt.stopPropagation(),Ns(!Qo),Qo)return;const{top:no,left:$o}=Re.current.getBoundingClientRect();$a({top:no+24,left:$o})},et=vt=>{let{target:no}=vt;!Qo||!Re||no.closest(".resource-menu-opener."+Eo)||no.closest(".mb-resource-action-menu")||Ns(!1)},St=vt=>{vt.stopPropagation(),Oi?(MB.action("modal:update:state",{comboUploadModal:{isOpen:!0,cgCid:Eo,projectUpperCid:Yn,teamCid:$n,comboName:ci}}),(0,H.d8)(ci,Zt)):MB.notice({type:"warning",text:I18N.Resources.combo_panel.no_combo_publish_mkt_error})};return(0,a.jsxs)(a.Fragment,{children:[jt===V.lS.Builtin&&!Dt&&(0,a.jsx)(h.A,{content:I18N.Resources.combo_panel.publish_to_mkt,direction:"down",children:(0,a.jsx)("a",{className:"action",onClick:St,children:(0,a.jsx)(b.C,{name:"left_panel/combo/upload"})})}),(0,a.jsx)(h.A,{content:I18N.Resources.all,direction:"down",children:(0,a.jsx)("a",{className:u()("action resource-menu-opener",Eo,{"show-menu":Qo}),onClick:je,ref:Re,children:(0,a.jsx)(b.C,{name:"left_panel/combo/action_menu"})})}),Qo&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(be,{position:Ii,isShowAddToOrg:xn,canRemove:fo,level:Bo,onEdit:Cs,onRemove:Us,onTransferOrg:Qs,onShowMenu:Ns,onAdd:Bs,onAddSub:Ws}),(0,a.jsx)(te.A,{target:document,onMouseDown:(0,te.t)(et,{capture:!0})})]})]})},Ve=(0,g.Mz)([T.F2,T.H7,T.PL],(Ge,jt,Dt)=>{let{scene_tag:Zt}=Dt;return{projectUpperCid:Ge==null?void 0:Ge.cid,teamCid:jt==null?void 0:jt.cid,sceneTag:Zt}}),Ne=(0,m.Ng)(Ge=>Ve(Ge))((0,o.memo)(Le)),We=Ge=>{const{isOrg:jt,source:Dt,level:Zt,cgCid:fo,isShowAddToOrg:Eo,canRemove:Bo,groupAction:xn,group:Qo,isEditing:Yn,showMenu:$n,onShowMenu:ls}=Ge,{onTransfer:Ns,onEdit:Cs,onRemove:Us,onAdd:Qs,onAddSub:Bs}=xn,Ws=(0,o.useMemo)(()=>Yn?"":Qo.cid,[Yn,Qo.cid]),ci=(0,o.useCallback)(Re=>{Re.stopPropagation(),Ns(Qo)},[Qo,Ns]),Ai=(0,o.useCallback)(Re=>{Re.stopPropagation(),Cs(Ws)},[Ws,Cs]),Qi=(0,o.useCallback)(Re=>{Re.stopPropagation(),Us(Qo)},[Qo,Us]),Oi=(0,o.useCallback)((Re,je)=>{Re.stopPropagation(),Qs(Qo,je)},[Qo,Qs]),Ii=(0,o.useCallback)(Re=>{Re.stopPropagation(),Bs(Qo)},[Qo,Bs]),$a=Re=>Re.preventDefault();return Yn?null:(0,a.jsx)("div",{className:"actions "+(Dt||""),children:ENV.IS_WONDER_SHARE?Dt===V.lS.Builtin&&!jt?(0,a.jsx)(Ne,{cgCid:fo,isShowAddToOrg:Eo,showMenu:$n,canRemove:Bo,group:Qo,onShowMenu:ls,onEdit:Ai,onRemove:Qi,onTransferOrg:ci}):(0,a.jsxs)(a.Fragment,{children:[Eo?(0,a.jsx)(h.A,{content:I18N.Popups.add_to_org,direction:"down",children:(0,a.jsx)("a",{className:"action",onClick:ci,children:(0,a.jsx)(b.C,{name:"design/add_to_org"})})}):null,(0,a.jsx)("a",{className:"action",onMouseDown:$a,onClick:Ai,children:(0,a.jsx)(b.C,{name:"general/pen"})}),Bo&&(0,a.jsx)("a",{className:"action",onClick:Qi,children:(0,a.jsx)(b.C,{name:"design/trash"})})]}):(0,a.jsx)(Ne,{isOrg:jt,source:Dt,cgCid:fo,level:Zt,isShowAddToOrg:Eo,showMenu:$n,canRemove:Bo,group:Qo,onShowMenu:ls,onEdit:Ai,onRemove:Qi,onTransferOrg:ci,onAdd:(Re,je)=>Oi(Re,je),onAddSub:Ii})})},ze=(0,o.memo)(We),ft=z.Ay.div.withConfig({displayName:"styles__StyledCollapsePanel",componentId:"sc-jkmcuu-0"})(["&.show-guide:first-child header{background:",";}header{height:32px;padding-left:10px;padding-right:10px;display:flex;align-items:center;cursor:pointer;.title{flex:1;height:20px;line-height:18px;color:",";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.arrow-icon{flex-shrink:0;margin:0 6px 0 4px;width:6px;height:8px;text-align:center;color:",";transition:transform 0.2s ease-in-out;}.expanded-icon{width:14px;height:14px;margin-right:4px;.main{fill:",";}.secondary{fill:",";}}&:hover,&.show-menu{background:",";}}&.collapse-children > header{padding-left:12px;}&.expanded > header .arrow-icon{transform:rotate(90deg);}"],Ge=>Ge.theme.color_btn_secondary_hover,Ge=>Ge.theme.color_text_L1,Ge=>Ge.theme.sce_svg_arrow_icon_color,Ge=>Ge.theme.color_text_L3,Ge=>Ge.theme.color_text_disabled01,Ge=>Ge.theme.color_btn_secondary_hover);function mt(Ge){let{isOrg:jt,canEditLibrary:Dt,className:Zt,width:fo,level:Eo,isEditing:Bo=!1,shouldAuth:xn=!1,currentUserId:Qo="",isShowTransferOrg:Yn,children:$n,groupAction:ls,group:Ns,isAsset:Cs,isExpanded:Us,source:Qs,showComboUploadGuide:Bs,onConfirm:Ws}=Ge;const ci=(0,o.useRef)(null),[Ai,Qi]=o.useState(!1),Oi=vt=>{vt.stopPropagation();const{onToggle:no}=ls;no(Ns)},{cid:Ii,name:$a}=Ns,Re=re(Ns,Cs),{onTransfer:je}=ls,et=!0,St=Us?"design/group_open":"design/group_close";return(0,a.jsxs)(ft,{type:"asset-collapse-panel",className:u()("collapse-panel","collapse-children",Zt,{expanded:Us},{"show-guide":Bs}),"data-cid":Ii,children:[(0,a.jsxs)("header",{className:u()({"show-menu":Ai}),onClick:Oi,style:{width:fo},children:[(0,a.jsx)(b.C,{className:"arrow-icon",name:"new/arrow_1/mini"}),(0,a.jsx)(b.C,{className:"expanded-icon",name:St}),(0,a.jsx)(Ce.A,{value:$a,className:"title",isEditing:Bo,onConfirm:Ws},Bo+$a),!Bo&&(0,a.jsx)("span",{className:u()("count",{"is-always-show":!Dt}),children:Re}),Dt&&(0,a.jsx)(ze,{isOrg:jt,source:Qs,level:Eo,cgCid:Ii,isEditing:Bo,isShowAddToOrg:je&&Yn,canRemove:et,group:Ns,groupAction:ls,showMenu:Ai,onShowMenu:Qi})]}),(0,a.jsx)(O.A,{collapse:!Us,children:$n})]})}const i=(0,z.Ay)(mt).withConfig({displayName:"styles__StyledCollapsePanel",componentId:"sc-gliqp1-0"})(["position:relative;&.collapse-children > header{padding-left:","px;}&.show-guide:first-child header{.expanded-icon .main{fill:",";}.actions{display:block;background:",";color:",";}.count{display:none;}}& > header{position:relative;transition:border-color 0.2s ease-in-out;padding-left:12px;.count{margin-left:auto;margin-right:10px;color:",";opacity:0.7;}.actions{display:none;position:absolute;top:5px;bottom:5px;right:12px;background:",";.action{display:inline-flex;align-items:center;justify-content:center;column-gap:4px;width:24px;height:24px;color:",";font-size:12px;border-radius:4px;.svg-icon{width:12px;height:12px;}&:hover,&.show-menu{background-color:",";}}}&:hover,&.show-menu{.expanded-icon .main{fill:",";}.title{width:","px;flex:0 1 auto;}.actions{display:block;background:",";color:",";}.count{display:none;}.is-always-show.count{display:block;}}}&::after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;border:2px solid transparent;transition:all 0.15s ease-in-out;}&.active{pointer-events:none;& > header{border-color:transparent;.actions{display:none;}}&::after{background:rgba(41,141,248,0.06);border-color:#298df8;}}.collapse-loading{height:24px;}"],Ge=>12+(Ge.level-1)*8,Ge=>Ge.theme.color_proto,Ge=>Ge.theme.color_btn_secondary_hover,Ge=>Ge.theme.color_proto,Ge=>Ge.theme.color_text_L3,Ge=>Ge.theme.color_bg_white,Ge=>Ge.theme.color_text_L1,Ge=>Ge.theme.color_btn_secondary_active,Ge=>Ge.theme.color_proto,Ge=>Ge.isOrg?185:165,Ge=>Ge.theme.color_btn_secondary_hover,Ge=>Ge.theme.color_proto);class gt extends o.PureComponent{constructor(jt){super(jt),(0,C.A)(this,"handleConfirm",Dt=>{const{comboGroupAction:{onConfirm:Zt},comboGroup:fo}=this.props;Zt(Dt,fo,()=>{this.isNewGroup&&MB.notice({text:I18N.Popups.folder_save_success}),this.isNewGroup=!1})}),(0,C.A)(this,"renderSubFolders",Dt=>{const{isOrg:Zt,isEditing:fo,canEditLibrary:Eo,canAddToOrg:Bo,editingCid:xn,width:Qo,level:Yn,containerRect:$n,comboActions:ls,comboGroupAction:Ns,isShowTransferOrg:Cs,currentUserId:Us,comboOpenCids:Qs,showComboUploadGuide:Bs}=this.props;return Dt.map(Ws=>(0,a.jsx)(gt,{isOrg:Zt,canEditLibrary:!Zt||Eo,canAddToOrg:Bo,comboGroup:Ws,isEditing:xn===Ws.cid,editingCid:xn,width:Qo,level:Yn+1,containerRect:$n,comboActions:ls,comboGroupAction:Ns,isShowTransferOrg:Cs,currentUserId:Us,comboOpenCids:Qs,showComboUploadGuide:Bs},Ws.cid))}),this.isNewGroup=!1}componentDidMount(){this.props.isEditing&&(this.isNewGroup=!0)}render(){const{isOrg:jt,canEditLibrary:Dt,canAddToOrg:Zt,comboGroup:fo,isEditing:Eo,editingCid:Bo,width:xn,level:Qo,containerRect:Yn,comboActions:$n,comboGroupAction:ls,isShowTransferOrg:Ns,currentUserId:Cs,comboOpenCids:Us,showComboUploadGuide:Qs}=this.props,{cid:Bs,children:Ws,subFolder:ci}=fo,Ai=Us.includes(Bs);let Qi;const Oi=Ws,Ii=!!(Ws!=null&&Ws.length);return(0,a.jsx)(i,{isOrg:jt,canEditLibrary:Dt,source:V.lS.Builtin,"data-cid":Bs,className:"combo-group-panel",group:fo,isExpanded:Ai,width:xn,level:Qo,isEditing:Eo,editingCid:Bo,currentUserId:Cs,isShowTransferOrg:Ns,groupAction:ls,showComboUploadGuide:Qs,onConfirm:this.handleConfirm,children:(0,a.jsxs)(a.Fragment,{children:[Qi?(0,a.jsx)(R.A,{className:"collapse-loading"}):null,Ii?(0,a.jsx)(D,{groupCid:Bs,canEditLibrary:Dt,canAddToOrg:Zt,items:Oi,currentUserId:Cs,containerRect:Ai?Yn:null,itemActions:$n}):null,ci&&this.renderSubFolders(ci)]})})}}(0,C.A)(gt,"defaultProps",{level:1});const Je=z.Ay.div.withConfig({displayName:"StyledNoComboGroups",componentId:"sc-3xhtxy-0"})(["padding:0 12px;display:flex;align-items:center;justify-content:center;img{width:48px;height:48px;margin-right:11px;}p{color:",";a{color:",";&:hover{color:",";}}}"],Ge=>Ge.theme.color_text_L3,Ge=>Ge.theme.color_text_link_normal,Ge=>Ge.theme.color_text_link_hover);var Pt=e(36349);const bt=(0,z.Ay)(Pt.A).withConfig({displayName:"StyledCustomizeList",componentId:"sc-txzsf6-0"})(["&.active{box-shadow:inset 0 0 0 3px rgba(41,141,248,0.6);}.thumbnail-list{height:unset;padding-top:8px;}"]);var qt=e(95230),pt=e(94137),$t=e(14221),go=e(1398),Co=e(78647),Tt=e(82821);class mo extends o.PureComponent{constructor(jt){super(jt),(0,C.A)(this,"getContainerElement",()=>document.getElementById("group-list-container")),(0,C.A)(this,"updateComboList",(Dt,Zt,fo)=>{const{dispatch:Eo}=this.props,Bo=Dt.map((xn,Qo)=>xn.data.zIndex!==Qo+1?(fo(xn.cid,{zIndex:Qo+1}),{...xn,data:{...xn.data,zIndex:Qo+1}}):xn);Eo({type:Zt,payload:{nextComboGroups:Bo}})}),this.state={dragAndDropState:null}}componentDidMount(){const{isOrg:jt,comboGroupList:Dt,rootProject:Zt}=this.props;!jt&&(0,Tt.K)(I18N)[Co.c.GUIDE_PUBLISH_COMBO_TO_MKT].howToShow({sceneTag:Zt.scene_tag,hasComboFolder:!!Dt&&Dt.length>0})}render(){const{editingCid:jt,comboGroupList:Dt,canEditLibrary:Zt,canAddToOrg:fo,currentOrg:Eo,currentUser:Bo,isOrg:xn,comboOpenCids:Qo,isShowUpgradeButton:Yn,showComboUploadGuide:$n}=this.props;return(0,a.jsx)(pt.Z,{id:"group-list-container",isShowUpgradeButton:Yn,children:(0,a.jsx)("div",{className:u()("group-main",Co.c.GUIDE_PUBLISH_COMBO_TO_MKT),children:(0,a.jsx)(bt,{id:"group-list",show:!0,type:"main",style:{width:qt.qv},children:(ls,Ns)=>(0,a.jsx)(a.Fragment,{children:Dt.length?Dt.map(Cs=>(0,a.jsx)(gt,{isOrg:xn,canEditLibrary:Zt,canAddToOrg:fo,level:Cs.level+1,comboGroup:Cs,comboOpenCids:Qo,width:qt.qv,isEditing:jt===Cs.cid,editingCid:jt,containerRect:Ns?ls:null,comboActions:(0,$t.s)({...this.props,group:Cs,popupsName:V.lS.Builtin}),comboGroupAction:(0,go.H)({...this.props,popupsName:V.lS.Builtin}),isShowTransferOrg:!!Eo,currentUserId:Bo==null?void 0:Bo.id,showComboUploadGuide:$n},Cs.cid)):(0,a.jsx)(jo,{isOrg:xn})})})})})}}const jo=Ge=>{let{isOrg:jt}=Ge;return(0,a.jsxs)(Je,{children:[(0,a.jsx)("img",{src:"/mb-workspace/images/workspace/design/empty_self_make.png",alt:""}),(0,a.jsx)("p",{children:jt?I18N.Resources.ComboPanel.noOrgCombo:I18N.Resources.ComboPanel.noUserCombo})]})};var Kt=e(46479),Ft=e(21385),nt=e(46664),Rt=e(99920);const yt=z.Ay.div.withConfig({displayName:"styles__StyledCustomComboGroupPanel",componentId:"sc-1xgb0fk-0"})(["display:flex;flex:1 1 0;flex-direction:column;overflow:hidden;> header{flex:0 0 32px;margin:0 0 16px 0;display:flex;align-items:center;padding:4px 12px 0 12px;.nav-item{.nav-underline{width:85%;left:7.5%;}}}"]),Jt=z.Ay.div.withConfig({displayName:"styles__StyledCustomComboPanel",componentId:"sc-1xgb0fk-1"})(["display:flex;flex:1;overflow:hidden;.upgrade-combo{width:100%;height:56px;background-color:",";display:flex;align-items:center;justify-content:center;position:absolute;bottom:0;left:0;border-top:1px solid ",";.button-root{width:208px;}}"],Ge=>Ge.theme.color_bg_white,Ge=>Ge.theme.color_bg_border_02);class vo extends o.PureComponent{constructor(){super(...arguments),(0,C.A)(this,"state",{isLoading:!1}),(0,C.A)(this,"handleUpgradeCombo",()=>{const{dispatch:jt,isOrg:Dt,currentUser:Zt,userFcg:fo,orgFcg:Eo,orgComboGroupList:Bo,userComboGroupList:xn,upgradeUserComboGroupList:Qo,upgradeOrgComboGroupList:Yn}=this.props;jt({type:"modal:update:state",payload:{upgradeComboModal:{isOpen:!0,currentComboPanel:Dt?"org":"user",comboGroupList:Dt?Bo:xn,upgradeComboGroupList:Dt?Yn:Qo,userFcg:fo,orgFcg:Eo,userId:Zt==null?void 0:Zt.id}}})}),(0,C.A)(this,"initComboSdkStore",async()=>{const{isOrg:jt,currentUser:Dt,currentOrg:Zt,userFcg:fo,orgFcg:Eo}=this.props,Bo=Dt==null?void 0:Dt.id;Bo&&(jt?!window.orgSdkStore&&Zt&&Eo&&(this.setState({isLoading:!0}),await(0,Ft.Z)({fcg:Eo,userId:Bo,isOrg:!0})):!window.userSdkStore&&fo&&(this.setState({isLoading:!0}),await(0,Ft.Z)({fcg:fo,userId:Bo})),this.setState({isLoading:!1}))}),(0,C.A)(this,"initV7ComboGroupList",async()=>{const{isOrg:jt,currentUser:Dt,currentOrg:Zt,isRequestV7UserComboGroup:fo,isRequestV7OrgComboGroup:Eo}=this.props;if(Dt!=null&&Dt.id){if(jt){if(Zt!=null&&Zt.cid&&!Eo){const{orgComboGroupList:xn}=await(0,nt.bX)({orgCid:Zt.cid}),Qo=xn.sort((Yn,$n)=>Yn.position-$n.position);MB.action("entry:upgrade:org:combo:group:list",{upgradeOrgComboGroupList:Qo||[]})}}else if(!fo){const{userComboGroupList:xn}=await(0,nt.qi)(),Qo=xn.sort((Yn,$n)=>Yn.position-$n.position);MB.action("entry:upgrade:user:combo:group:list",{upgradeUserComboGroupList:Qo||[]})}}})}async componentDidMount(){await this.initComboSdkStore(),await this.initV7ComboGroupList()}render(){const{isOrg:jt,canEditLibrary:Dt,userComboGroupList:Zt,orgComboGroupList:fo,localUserComboOpenCids:Eo,localOrgComboOpenCids:Bo,projectUpperCid:xn,upgradeUserComboGroupList:Qo,upgradeOrgComboGroupList:Yn,dispatch:$n,...ls}=this.props,{isLoading:Ns}=this.state,Cs=jt&&Yn.length!==0||!jt&&Qo.length!==0;return Ns?(0,a.jsx)(Rt.qt,{children:(0,a.jsx)("div",{className:"loading-container",children:(0,a.jsx)(Kt.ft,{className:"loading"})})}):(0,a.jsxs)(Jt,{children:[(0,a.jsx)(mo,{isOrg:jt,canEditLibrary:!jt||Dt,canAddToOrg:Dt,comboGroupList:jt?fo:Zt,comboOpenCids:jt?Bo:Eo,projectUpperCid:jt?"":xn,isShowUpgradeButton:Cs,dispatch:$n,...ls}),(!jt||Dt)&&Cs&&(0,a.jsx)("div",{className:"upgrade-combo",onClick:this.handleUpgradeCombo,children:(0,a.jsx)(se.Oc,{type:"secondary",size:"tiny",corner:"soft",children:I18N.Resources.import_old_widgets})})]})}}const Yo=(0,g.Mz)([k.tl,T.wA,T.qv,k.tY,T.X_,T.Pz,T.PL,T.HW,p.PI,p.k3,k.wS,k.lb,k.MV,k.bg,A.r,T.F2,T._x,k.L,k.G6,k.TD,k.WF,T.H7,k.wY],(Ge,jt,Dt,Zt,fo,Eo,Bo,xn,Qo,Yn,$n,ls,Ns,Cs,Us,Qs,Bs,Ws,ci,Ai,Qi,Oi,Ii)=>({userComboGroupList:$n,orgComboGroupList:ls,editingCid:Ge,currentOrg:jt,canEditLibrary:Dt,collapsePanelSet:Zt,scale:fo,canvasRect:Eo,rootProject:Bo,currentUser:xn,showDragMode:Qo,isAdsorbentReferenceLine:Yn,localUserComboOpenCids:Ns,localOrgComboOpenCids:Cs,currentEditMode:Us,projectUpperCid:Qs==null?void 0:Qs.cid,userFcg:Qs,orgFcg:Bs,upgradeUserComboGroupList:Ws,upgradeOrgComboGroupList:ci,isRequestV7UserComboGroup:Ai,isRequestV7OrgComboGroup:Qi,teamCid:Oi==null?void 0:Oi.cid,showComboUploadGuide:Ii})),Ho=(0,m.Ng)(Ge=>Yo(Ge))(vo);var kt=e(45411);class Ze extends o.PureComponent{constructor(){super(...arguments),(0,C.A)(this,"tabList",[{key:"1",label:I18N.Resources.user_resource_panel.self_make}])}render(){const{canCreateCombo:jt,hasSelectedTree:Dt,collapsePanelSet:Zt,isOrg:fo,canEditLibrary:Eo,dispatch:Bo,onGotoFind:xn,layoutV9:Qo}=this.props;return(0,a.jsxs)(yt,{children:[(0,a.jsx)("header",{children:(0,a.jsx)($,{isOrg:fo,hasSelectedTree:Dt,canCreateCombo:jt,collapsePanelSet:Zt,isPureIcon:!1,isStar:!1,canEditLibrary:Eo,dispatch:Bo,onGotoFind:xn})}),(0,a.jsx)(Ho,{isOrg:fo})]})}}const it=(0,g.Mz)([x.x$,k.tY,T.qv,p.MZ],(Ge,jt,Dt,Zt)=>{const fo=(0,kt.ju)(Ge)&&!(0,kt.vZ)(Ge);return{hasSelectedTree:Ge.length>0,canCreateCombo:fo,collapsePanelSet:jt,canEditLibrary:Dt,layoutV9:Zt}}),st=(0,m.Ng)(Ge=>it(Ge))(Ze);var dt=e(43727),Ot=e(76713),Ct=e.n(Ot),wo=e(82572),ln=e(73518),Io=e.n(ln),Lo=e(31211),Ao=e(84919);const xt=(0,z.Ay)(Pt.A).withConfig({displayName:"styles__StyledStarResourcesPanel",componentId:"sc-1kxvdvm-0"})(["flex:1;overflow-x:hidden;overflow-y:overlay;.combo-groups-item-collapse{& > header{padding-left:12px;.title{color:",";font-size:12px;font-weight:normal;}svg.arrow-icon{width:12px;}.star{display:none;}.sign{display:inline-block;}&:hover{.star{display:flex;}.sign{display:none;}}}.combo-groups-item-container{padding:0 12px;display:grid;grid-row-gap:8px;grid-column-gap:8px;grid-template-columns:repeat(auto-fill,109px);.template-item{margin:0 8px 10px 0;}li > .img-wrapper{width:109px;height:109px;}}}"],Ge=>Ge.theme.color_text_L1),Ut=z.Ay.div.withConfig({displayName:"styles__StyledLoadingContainer",componentId:"sc-1kxvdvm-1"})(["display:flex;align-items:center;justify-content:center;.loading{width:18px;height:18px;}&.all-height{flex:1;}"]),Wo=z.Ay.div.withConfig({displayName:"styles__StyledStarScreenList",componentId:"sc-1kxvdvm-2"})(["display:flex;flex:1 1 0;flex-direction:column;margin-top:10px;overflow-x:hidden;overflow-y:overlay;.screen_list_star{.resources-card-list{padding:0 8px;}}"]);var qo=e(19284);const sn=(0,z.Ay)(Pt.A).withConfig({displayName:"styles__StyledWidgetInsertableContainer",componentId:"sc-5byiw4-0"})(["display:flex;flex-direction:column;flex:1;width:100%;overflow-x:hidden;overflow-y:auto;padding-bottom:1vh;.widget-insertable-list{display:flex;flex-flow:row wrap;padding:0 4px 0 12px;margin-top:8px;}"]),Kn=z.Ay.div.withConfig({displayName:"styles__StyledWidgetInsertable",componentId:"sc-5byiw4-1"})(["position:relative;width:70px;height:70px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;background:",";color:",";border-radius:6px;margin-bottom:8px;margin-right:8px;cursor:pointer;transition:all 0.2s ease-out;"," span.widget-name{margin-bottom:10px;line-height:12px;text-align:center;color:",";}span.recently-added-highlight{position:absolute;right:8px;top:8px;display:inline-block;width:6px;height:6px;border-radius:50%;background-color:",";}.widget-key{width:14px;height:14px;position:absolute;top:0;left:0;rect{&:nth-child(1){fill:",";}&:nth-child(2){fill:",";}}}&:hover{background:",";}&:lang(en){span{margin:0;flex:1;display:flex;align-items:center;}}"],Ge=>Ge.theme.color_navigation_hover,Ge=>Ge.theme.color_text_L3,qo.n,Ge=>Ge.theme.color_text_L2,Ge=>Ge.theme.color_proto,Ge=>Ge.theme.color_bg_border_01,Ge=>Ge.theme.color_bg_menu,Ge=>Ge.theme.color_btn_secondary_active),ds=z.Ay.div.withConfig({displayName:"styles__StyledWidgetInsertableCategoryNav",componentId:"sc-5byiw4-2"})(["width:100%;display:flex;flex-flow:row wrap;align-items:flex-start;padding:4px 11px 8px 12px;row-gap:8px;column-gap:6px;"]),_s=z.Ay.a.withConfig({displayName:"styles__StyledWidgetInsertableCategoryNavItem",componentId:"sc-5byiw4-3"})(["font-family:PingFang SC;height:24px;width:auto;word-break:keep-all;padding:0 8px;display:flex;flex-direction:row;align-items:center;text-decoration:none;color:",";max-width:123px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;&:not(.dropDown){background:",";border-radius:4px;&:hover{background:",";}&:active{background:",";color:",";}&.is_active{background:",";color:",";}span::before{content:attr(title);display:block;height:0;overflow:hidden;visibility:hidden;font-weight:500;}}&.dropDown{flex:1;padding:0;height:auto;.shape-list-dropdown{max-width:100%;width:fit-content;height:24px;display:flex;align-items:center;background:",";border-radius:4px;&:hover,&.is-open{background:",";}&:active{background:",";}.opener{width:100%;display:flex;column-gap:7px;padding:0 7px;&:hover,&.is-open{svg{transition:margin-top 0.2s ease-in-out 0s;margin-top:4px;}}span{width:calc(100% - 14px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}svg{width:7px;}}}&.is_active .shape-list-dropdown{background:",";color:#fff;border:1px solid ",";;span{font-weight:500;}}}span{line-height:16px;}"],Ge=>Ge.theme.color_text_L2,Ge=>Ge.theme.color_navigation_hover,Ge=>Ge.theme.color_navigation_active,Ge=>Ge.theme.color_bg_tab,Ge=>Ge.theme.color_text_link_normal,Ge=>Ge.theme.color_bg_tab,Ge=>Ge.theme.color_text_link_normal,Ge=>Ge.theme.color_navigation_hover,Ge=>Ge.theme.color_navigation_active,Ge=>Ge.theme.color_navigation_active,Ge=>Ge.theme.color_primary_proto01,Ge=>Ge.theme.color_primary_proto01),Ls=z.Ay.div.withConfig({displayName:"styles__StyledSceResourcesPanel",componentId:"sc-5byiw4-4"})(["margin-top:6px;.combo-group .collapse-box{position:relative;width:250px;padding:0 12px;&:hover{.scroll-bar{opacity:1;}}}.combo-groups-item-container{width:100%;display:flex;column-gap:8px;overflow:auto hidden;scrollbar-width:none;-ms-overflow-style:none;&::-webkit-scrollbar{display:none;}li > .img-wrapper{width:109px;height:109px;}.template-item{width:109px;}}"]),gs=z.Ay.div.withConfig({displayName:"styles__StyledSceneAndStarFilter",componentId:"sc-5byiw4-5"})(["display:flex;align-items:center;justify-content:space-between;padding:8px 12px 8px 8px;.scene-tag-filter{.opener-box{display:flex;column-gap:10px;align-items:center;width:fit-content;padding:3px 13px 3px 6px;border-radius:2px;&:not(:lang(en)){cursor:pointer;&:hover{outline:1px solid ",";}}span{font-size:12px;font-weight:400;color:",";}.arrow-icon{width:8px;transition:transform 0.2s ease-out 0s;&.is-expand{transform:rotateX(180deg);}}}}.star{padding:4px 12px;font-size:12px;font-weight:400;line-height:16px;color:",";border-radius:4px;cursor:pointer;&:hover{background-color:",";}&:active{background-color:",";}}"],Ge=>Ge.theme.color_bg_border_02,Ge=>Ge.theme.color_text_L1,Ge=>Ge.theme.color_text_L1,Ge=>Ge.theme.color_btn_secondary_hover,Ge=>Ge.theme.color_btn_secondary_active),ns=z.Ay.div.withConfig({displayName:"styles__StyledSceneAndStarFilterV9",componentId:"sc-5byiw4-6"})(["position:relative;display:flex;align-items:center;justify-content:end;padding:12px 12px 12px 0;&.is-float{position:absolute;left:174px;}.star-box{width:24px;height:24px;border-radius:6px;color:",";.svg-icon{width:24px;height:24px;}&:hover{background-color:",";}&:active{background-color:",";}}.scene-tag-filter{.opener-box{display:flex;align-items:center;width:fit-content;padding:0 6px 0 2px;border-radius:6px;color:",";&:not(:lang(en)){cursor:pointer;&:hover{outline:1px solid ",";}}span{font-size:12px;font-weight:400;color:",";}.sce-tag{width:24px;height:24px;}.arrow-icon{width:8px;transition:transform 0.2s ease-out 0s;color:",";&.is-expand{transform:rotateX(180deg);}}}}"],Ge=>Ge.theme.color_text_L1,Ge=>Ge.theme.color_btn_secondary_hover,Ge=>Ge.theme.color_btn_secondary_active,Ge=>Ge.theme.color_text_L1,Ge=>Ge.theme.color_bg_border_01,Ge=>Ge.theme.color_text_L1,Ge=>Ge.theme.color_text_L3),Wn=z.Ay.div.withConfig({displayName:"styles__StyledStarPanel",componentId:"sc-5byiw4-7"})(["display:flex;flex-direction:column;flex:1;overflow:hidden;header.back{display:flex;align-items:center;color:",";cursor:pointer;margin:0 0 12px 6px;width:fit-content;.arrow-left{margin-right:4px;flex:0 0 24px;.svg-icon{width:6px;height:10px;transform:rotate(-180deg);}}.title{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}.combo-groups-item-collapse{& > header{padding-left:9px;}.combo-groups-item-container{padding-top:8px;}}"],Ge=>Ge.theme.color_text_L1),Do=(0,z.Ay)(ae.Ay).withConfig({displayName:"styles__StyledScenesMenu",componentId:"sc-5byiw4-8"})(["ul{min-width:auto;width:176px;& > li{& > a{padding-left:32px;.widget-icon-selected{width:8px;margin-right:12px;}}&.combo-scene-select-menu.hasIcon{& > a{padding-left:12px;}}}}",";"],q.ZJ),Go=(0,z.Ay)(ae.Ay).withConfig({displayName:"styles__StyledPlabelsMenu",componentId:"sc-5byiw4-9"})(["ul{min-width:auto;width:176px;& > li{& > a{padding-left:32px;.widget-icon-selected{width:8px;margin-right:12px;}}&.combo-plabel-select-menu.hasIcon{& > a{padding-left:12px;}}}}",";"],q.ZJ),an=(0,z.DU)(["body > div > div.context-menu-mask{width:initial;height:initial;}"]),Mo=z.Ay.div.withConfig({displayName:"styles__StyledSceAIComponentEntry",componentId:"sc-5byiw4-10"})([".entry-header{height:32px;display:flex;align-items:center;width:calc(100% - 6px);padding:0 4px 0 14px;}.ai-entry-icon-button{.left svg{background:",";border-radius:8px;stop:first-child{stop-color:",";}stop:nth-child(2){stop-color:",";}}}"],Ge=>Ge.theme.color_background_AI_component,Ge=>Ge.theme.color_AI_component_stop_color_1,Ge=>Ge.theme.color_AI_component_stop_color_2),Cn=z.Ay.div.withConfig({displayName:"styles__StyledClabelResDetailPanel",componentId:"sc-5byiw4-11"})(["height:100%;flex:1 1 0%;display:flex;flex-direction:column;overflow:hidden;.resources-details-search{height:28px;}.search-no-results{flex:1;justify-content:center;}.marketTemplate-list{height:100%;overflow:hidden;}.template-item{width:109px;}"]);var Tn=e(10052),cn=e(34161),bs=e(34095),Vn=e(91344);const ti=Ge=>{const{scrollContainerEl:jt,topDiff:Dt=0,getNextScrollLeft:Zt}=Ge,[fo,Eo]=(0,o.useState)(!1),[Bo,xn]=(0,o.useState)(!0),Qo=(0,m.d4)(p.O4),Yn=$n=>{if(!jt||!Zt)return;const ls=Zt($n);jt.scroll({top:0,left:ls,behavior:"smooth"}),Eo(ls>0),xn(ls+jt.clientWidth<jt.scrollWidth)};return(0,a.jsxs)(oi,{topDiff:Dt,children:[fo&&(0,a.jsx)("div",{className:u()("scroll-bar left",Qo),onClick:()=>Yn("left"),children:(0,a.jsx)(b.C,{className:"scroll-arrow left",name:"design/arrow/right"})}),Bo&&(0,a.jsx)("div",{className:u()("scroll-bar right",Qo),onClick:()=>Yn("right"),children:(0,a.jsx)(b.C,{className:"scroll-arrow right",name:"design/arrow/right"})})]})},oi=z.Ay.div.withConfig({displayName:"XScrollBar__StyledXScrollBar",componentId:"sc-j3j78m-0"})([".scroll-bar{z-index:1;transition:opacity 0.15s ease-in-out;opacity:0;display:flex;align-items:center;justify-content:center;width:20px;height:28px;position:absolute;top:calc((100% - 28px - ","px) / 2);border-radius:6px;backdrop-filter:blur(10px);background-color:#00000014;&:hover{background-color:#00000026;}&.dark{background-color:#FFFFFF14;&:hover{background-color:#FFFFFF26;}}&.left{left:6px;}&.right{right:7px;}.scroll-arrow{width:8px;height:12px;color:",";&.left{transform:rotate(180deg);}}}"],Ge=>Ge.topDiff,Ge=>Ge.theme.color_text_L1);var Gt=e(89399),Rs=e(55561),Xs=e(63967),Ti=e(12856);const di=Ge=>{const{toggleTabScrollTop:jt,selectedSceTag:Dt,selectedPLabel:Zt,containerRect:fo,mtResourcesMtItemListMap:Eo,sceneMktsMap:Bo,rootProject:xn,dispatch:Qo,onToggleCurrentClabel:Yn,onOpenFolder:$n}=Ge,[ls,Ns]=(0,o.useState)(!Bo.loaded),Cs=(0,o.useMemo)(()=>{var Bs;const Ws=(Bs=Bo[Dt])==null?void 0:Bs[Zt.name||"all"];return Ws?(0,Rs.yp)(Ws,Eo):[]},[Eo,Bo,Zt.name,Dt]);(0,o.useEffect)(()=>{const Bs=async()=>{try{Ns(!0);const Ws=await(0,Xs.DE)("/market-template/v8_rec_combo_2410c.json");Ws.loaded=!0,Qo({type:"widget-panel:set:scene_combo_mkts_map",payload:{sceneMktsMap:Ws}}),Ns(!1)}catch(Ws){Qo({type:"widget-panel:set:scene_combo_mkts_map",payload:{sceneMktsMap:{loaded:!0}}})}};Bo.loaded||Bs()},[Cs,Qo,Bo.loaded]),(0,o.useEffect)(()=>{const Bs=document.querySelector(".widget-panel-container");Bs&&Bs.scrollTo(0,jt)},[jt]),(0,o.useEffect)(()=>{const Bs=document.querySelector(".widget-panel-container");Bs&&Bs.scrollTo(0,0)},[Dt,Zt.name]);const Us=Bs=>{const{cid:Ws,category:ci}=Bs;Qo({type:"entry:resources:update:find:data",payload:{cid:Ws,category:ci}})},Qs=(Bs,Ws,ci,Ai,Qi)=>{const{policy:Oi,category:Ii,title:$a,copyright:Re,platform:je}=ci,et=Zt.name==="all"?"\u63A8\u8350":Zt.name,St=cn.Ii.Find+"-"+et+"-"+Qi;(0,cn.Mi)({popupsName:V.lS.Builtin,addType:Ws,source:St,category:Ii,platform:je,policy:Oi,templateGroupName:$a,copyright:Re,name:Ai,rootProject:xn,widgetType:Zt.name,esSearchKey:Bs})};return(0,a.jsx)(Ls,{children:!ls&&Cs.length!==0&&(0,a.jsxs)(a.Fragment,{children:[Cs.map((Bs,Ws)=>{let{clabel:ci,list:Ai}=Bs;const Qi=!(Ai!=null&&Ai.length);return(0,a.jsx)(Ao.A,{className:"combo-group",title:ci,canCollapse:!1,onClickResources:()=>Yn(ci),children:Qi?(0,a.jsx)(Ut,{children:(0,a.jsx)(Kt.ft,{className:"loading"})}):(0,a.jsx)(Si,{list:Ai,containerRect:fo,onTrack:(Oi,Ii,$a,Re)=>Qs(Oi,Ii,$a,Re,ci),onPaidTemplates:Us,onOpenFolder:$n})},ci+Ws)}),(0,a.jsx)(Gs,{clabelResList:Cs,sceTag:Dt,plabel:Zt})]})})},vs=(0,g.Mz)([T.PL,k.tY,k.AC,k.xH],(Ge,jt,Dt,Zt)=>({rootProject:Ge,collapsePanelSet:jt,mtResourcesMtItemListMap:Dt,sceneMktsMap:Zt})),ei=(0,m.Ng)(Ge=>vs(Ge))(di),Si=(0,o.memo)(Ge=>{let{containerRect:jt,list:Dt,onTrack:Zt,onPaidTemplates:fo,onOpenFolder:Eo}=Ge;const Bo=(0,o.useRef)(null),[xn,Qo]=(0,o.useState)(),[Yn,$n]=(0,o.useState)();(0,o.useEffect)(()=>{var Cs;Qo(Bo.current),$n((Cs=Bo.current)==null?void 0:Cs.getBoundingClientRect())},[]);const ls=Cs=>{if(!xn)return 0;const Us=xn.scrollLeft;if(Cs==="right")return Math.floor(Math.ceil(Us)/117+2)*117;if(Cs==="left"){const Qs=xn.clientWidth;return Math.floor(Math.ceil(Us+Qs)/117-3)*117}return Us},Ns=Io()(Cs=>{if(!xn)return null;$n(xn.getBoundingClientRect())},100,{trailing:!1});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("ul",{onScroll:Ns,ref:Bo,className:"combo-groups-item-container",children:Dt.map((Cs,Us)=>"hotAttr"in Cs&&"marketTemplateSource"in Cs?(0,a.jsx)(Lo.A,{marketTemplate:Cs,currentResources:Cs.marketTemplateSource,containerRect:jt,xContainerRect:Yn,isShowSign:!0,isShowFolderIcon:!0,onTrack:Zt,onPaidTemplates:()=>fo(Cs.marketTemplateSource),onOpenFolder:Eo},Cs.key+Us):(0,a.jsx)(Ti.a,{item:Cs},Cs.key+Us))}),xn&&Dt.length>2&&(0,a.jsx)(ti,{scrollContainerEl:xn,topDiff:20,getNextScrollLeft:ls})]})}),Gs=Ge=>{let{clabelResList:jt,sceTag:Dt,plabel:Zt}=Ge;return(0,o.useEffect)(()=>{let fo=[];jt.forEach(Bo=>{fo=fo.concat(Bo.list)});const Eo=(0,Tn.X_)({list:fo,sceTag:Dt,plabel:Zt});Vn.A.emit(Gt.jy,{observeMtItemObj:Eo}),Vn.A.emit(Gt.BD)},[jt,Zt,Dt]),(0,o.useEffect)(()=>(setTimeout(()=>{Vn.A.emit(Gt.l7),Vn.A.emit(Gt.wO)}),()=>{Vn.A.emit(Gt.P2,{shownMtItemCids:[]})}),[Zt,Dt]),null};var Vs=e(36521),ps=e(63555),kn=e(40684),zn=e(48411),hs=e(72117),Ss=e(33270);const ri=Ge=>{const{selectedPLabel:jt,currentResources:Dt,setCurrentResources:Zt,dispatch:fo}=Ge,Eo=async()=>{if(!Dt||MB.global.experienceLoginModalHelper("isSave"))return;const{is_star:ls,cid:Ns}=Dt,Cs={...Dt,is_star:!ls};Zt(Cs),fo({type:"entry:search-panel:refresh:star:resources",payload:{category:kn.t_,resources:Cs,isFromIconSelectPopup:!1,updateResources:Us=>({...Us,is_star:!Us.is_star})}}),fo({type:"entry:resources:update:find:data",payload:{cid:Ns,category:kn.t_,updateData:Us=>({...Us,is_star:!Us.is_star})}}),await(0,Ss.lU)(ls,Ns)},Bo=()=>{Zt({...Dt,is_purchased:!0}),xn(Dt)},xn=ls=>{fo({type:"entry:search-panel:refresh:star:resources",payload:{category:kn.t_,resources:ls,isFromIconSelectPopup:!1,updateResources:Ns=>({...Ns,is_purchased:!0,is_star:!0})}}),fo({type:"entry:resources:update:find:data",payload:{cid:ls.cid,category:kn.t_,updateData:Ns=>({...Ns,is_star:!Ns.is_star})}})},Qo=()=>{Dt&&fo({type:"entry:search-panel:remove:resources",payload:{resources:Dt}}),Yn()},Yn=function(ls){ls===void 0&&(ls=null),Zt(ls)},$n=(ls,Ns,Cs,Us,Qs)=>{const{policy:Bs,category:Ws,title:ci,copyright:Ai,platform:Qi}=Cs,Oi=jt.name==="all"?"\u63A8\u8350":jt.name,Ii=cn.Ii.Find+"-"+Oi+"-"+ci+"-"+cn.un;(0,cn.Mi)({popupsName:V.lS.Builtin,addType:Ns,source:Ii,category:Ws,platform:Qi,policy:Bs,templateGroupName:ci,copyright:Ai,name:Us,rootProject:Qs,esSearchKey:ls})};return(0,a.jsx)(hs.A,{className:"search-resources-detail-panel",currentResources:Dt,onStarTemplates:Eo,onPaidTemplates:Bo,onBack:Qo,onTrack:$n})};var Li=e(8066);const _t=Ge=>{const{$widgetPanel:jt,sceToPLabelMap:Dt,selectedSceTag:Zt,selectedPLabel:fo,onSelectedPLabel:Eo,dispatch:Bo}=Ge,xn=(0,o.useRef)(null),[Qo,Yn]=(0,o.useState)({top:194,left:157}),$n=(0,o.useMemo)(()=>Dt[Zt]||[],[Dt,Zt]),ls=(0,zn.HI)(),Ns=(0,o.useMemo)(()=>$n.filter(Oi=>{let{name:Ii}=Oi;return Object.keys(ls[Zt]||{}).includes(Ii)}),[$n,ls,Zt]),Cs=(0,o.useMemo)(()=>$n.filter(Oi=>{let{name:Ii}=Oi;return!Object.keys(ls[Zt]||{}).includes(Ii)}),[$n,ls,Zt]),Us=Ns.length>0,Qs=Cs.length>0,Bs=function(Oi,Ii){Ii===void 0&&(Ii=!1),!Ii&&Ws(Oi)},Ws=Oi=>{Eo(Oi),(0,H.SU)(Oi.name)},ci=()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Go,{position:Qo,children:Cs.map(Oi=>{const Ii=fo.name===Oi.name;return(0,a.jsx)(ae.Dr,{text:Oi.name,icon:Ii&&(0,a.jsx)(b.C,{className:"state-icon widget-icon-selected",name:"toolbar/selected"}),className:"combo-plabel-select-menu",onClick:()=>Ws(Oi)},Oi.name)})}),(0,a.jsx)(an,{})]}),Ai=Oi=>{let{pLabel:Ii,isDropDown:$a=!1}=Oi;return(0,a.jsx)(_s,{className:u()({is_active:fo.name===Ii.name},{dropDown:$a},{[Co.c.GUIDE_NOVICE_V9_2408_STEP_1]:Ii.name==="\u6D41\u7A0B"}),"data-category-guide-id":Ii.name,onClick:()=>Bs(Ii,$a),children:$a?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(Li.A,{className:"shape-list-dropdown",isCloseMenuItem:!1,onClick:Qi,renderOpener:(0,a.jsxs)("div",{className:"opener",ref:xn,children:[(0,a.jsx)("span",{children:I18N.LeftSidePanel.pLabel[Ii.name]||Ii.name}),(0,a.jsx)(b.C,{name:"toolbar/triangle-down"})]}),renderMenu:ci()})}):(0,a.jsx)("span",{title:I18N.LeftSidePanel.pLabel[Ii.name]||Ii.name,children:I18N.LeftSidePanel.pLabel[Ii.name]||Ii.name})},Ii.name)},Qi=()=>{const Oi=xn.current.getBoundingClientRect();Yn({top:Oi.bottom+3,left:Oi.left-29})};return Us?(0,a.jsxs)(ds,{className:u()("widget-insertable-cagegory-nav"),children:[Ai({pLabel:zn.P8}),Ns.map(Oi=>Ai({pLabel:Oi})),Qs&&Ai({pLabel:Cs.some(Oi=>{let{name:Ii}=Oi;return Ii===fo.name})?fo:zn.ZQ,isDropDown:!0})]}):null};var Aa=e(48358),Ki=e(2079),bi=e(96851),sa=e(2313),Zi=e(29107),Fa=e(12298),to=e(72428),Qt=e(21109),Sn=e(66802),Vo=e(36892),ho=e(4210);const Uo=function(Ge,jt,Dt){Dt===void 0&&(Dt=()=>{});const{data:Zt,meta:{name:fo,type:Eo}}=Ge,Bo=(0,m.Pj)();return xn=>{if((0,Zi.z5)(Zt))try{var Qo;sdkStore.combineMergeMark("dblclick-to-insert-widget");const Yn=((Qo=(0,T.Ur)(Bo.getState()))==null?void 0:Qo.cid)||"",$n=(0,T.X_)(Bo.getState()),ls=(0,T.$S)(Bo.getState()),Ns=(0,T.ER)(Bo.getState()),Cs=(0,x.p$)(Bo.getState()),Us={scale:$n/100,size:{w:ls.width,h:ls.height},offset:Ns},Qs=(0,Fa.Dl)(Us,ls.left);let Bs=[],Ws;switch(Eo){case ps.x.CanvasAsOverlay:{Ws=Yn,Bs=sdkStore.loadSubtree(Zt,Yn,Qs.x,Qs.y),(0,Fa.OV)(Bs,Ws,sdkStore),(0,Fa.tu)(Bs,Ws,sdkStore),(0,to.Yx)(Bs,Ws,sdkStore);break}case"wSticky":case"wTear":{Ws=Yn,Bs=sdkStore.loadSubtree(Zt,Yn,Qs.x,Qs.y),(0,Fa.gs)(Yn,Bs,sdkStore),(0,to.Yx)(Bs,Yn,sdkStore);break}default:{const Ai=(0,Fa.dk)(Cs,sdkStore);if(Ai&&sdkStore.getHotItem(Ai).hotAttr.type==="wWrap")Ws=Ai,Bs=sdkStore.loadSubtree(Zt,Ws,Qs.x,Qs.y);else{Bs=sdkStore.loadSubtree(Zt,Yn,Qs.x,Qs.y);const Qi=(0,Qt.G9)(Yn,Bs),Oi=(0,Qt.YQ)(),Ii=(0,Qt.wr)(),$a=Bs.map(Re=>{const je=sdkStore.getHotItem(Re),et=sdkStore.getHotAABB(Re),St=Qi(et)||Yn;return{...je,sup:St,hotAttr:{...je.hotAttr,...sdkStore.getRelocateLocalXYR(Re,St),zIndex:Ii.getReStackZIndex(Re,St),name:Oi(St,je.hotAttr.type,je.hotAttr.name)}}});sdkStore.updateHotItemBatch($a)}}}if(Bo.dispatch({type:"reducer:flag:set:is-dragging-item",payload:{isDraggingItem:!1}}),Bo.dispatch({type:"ST:update",payload:{isLeftDown:!0}}),Bo.dispatch({type:"set:alignment",payload:{alignment:{}}}),Bo.dispatch({type:"set:sameSize",payload:{sameSize:{}}}),Bo.dispatch({type:"set:distributed",payload:{distributed:{}}}),Bo.dispatch({type:"elbow:update",payload:{isDraggingElbow:!1}}),Bs.length===1){const Ai=sdkStore.getHotItem(Bs[0]);switch(Ai.hotAttr.type){case"wSticky":{const{info:Qi}=(0,ho.lp)();Bo.dispatch({type:"entry:ST:drag:sticky:point:real:bind",payload:{stickyKey:Ai.key,createSource:"click"}}),Bo.dispatch({type:"entry:set:editing:cid",payload:{item:{...Ai.hotAttr,cid:Ai.key}}}),Bo.dispatch({type:"toolbar:update:state",payload:{isShowSticky:!0}}),sdkStore.updateHotAttrMerge(Ai.key,{info:Qi});break}case"wTear":{const{info:Qi}=(0,ho.lp)();Bo.dispatch({type:"entry:ST:tear:bind",payload:{tearKey:Ai.key,afterCreate:!0}}),Bo.dispatch({type:"entry:set:editing:cid",payload:{item:{...Ai.hotAttr,cid:Ai.key}}}),Bo.dispatch({type:"toolbar:update:state",payload:{isShowSticky:!0}}),sdkStore.updateHotAttrMerge(Ai.key,{info:Qi});break}case"wRichText":{Bo.dispatch({type:"entry:set:editing:cid",payload:{item:{...Ai.hotAttr,cid:Ai.key}}});break}case"wSwimlane":{Bo.dispatch({type:"flow:update:clear"});break}}(0,Sn.xB)(Eo,Bs[0])}const ci=Bs.map(Ai=>sdkStore.getHotItem(Ai));Bo.dispatch({type:"entry:widget:change",payload:{flatChgList:ci,isCreateWidget:!0,shouldBreakLayerUICache:!0}}),Bo.dispatch({type:"entry:select:items",payload:{cids:Bs}}),Bo.dispatch({type:"entry:expend:groupOrCanvasOrBasket",payload:{cids:Bs}}),Bo.dispatch({type:"entry:publish:create:items:success",payload:{newKeys:Bs}}),(0,cn.Yp)({source:""+cn.ol.BuiltPanel+cn.k8.DoubleClick,widgetName:fo,templateWidgetType:jt.widgetType,widgetTypeNew:jt.plabel+"-"+jt.widgetType,isTotalWidget:jt.plabel===zn.bp.All}),typeof Dt=="function"&&Dt()}catch(Yn){}finally{sdkStore.combineMerge("dblclick-to-insert-widget")}}},pn=function(Ge,jt,Dt){Dt===void 0&&(Dt=()=>{});const{data:Zt,meta:{name:fo,width:Eo,height:Bo,type:xn}}=Ge,Qo=(0,m.Pj)();return Yn=>{var $n;if(Yn.button!==0)return;const ls=(($n=(0,T.Ur)(Qo.getState()))==null?void 0:$n.cid)||"";let Ns=!1;const Cs=Yn.clientX,Us=Yn.clientY,Qs=Array.from(document.querySelectorAll('[data-is-widget-insertable="false"]')).map($o=>$o.getBoundingClientRect());Qo.dispatch({type:"reducer:flag:set:is-dragging-item",payload:{isDraggingItem:!0}});const{moveAndScaleWidgetInsertablePuppet:Bs,destroyWidgetInsertablePuppet:Ws,updateWidgetInsertablePuppetRenderProps:ci}=(0,Rs.C1)(Zt,ls);sdkStore.combineMergeMark("drag-and-insert-widget");let Ai;const Qi=(0,p.k3)(Qo.getState()),Oi=(0,p.PI)(Qo.getState()),Ii=(0,T.X_)(Qo.getState()),$a=(0,T.ER)(Qo.getState()),Re=(0,T.$S)(Qo.getState()),je=(0,x.p$)(Qo.getState());(Qi||Oi)&&(Ai=(0,Aa.ay)({movableItems:[],createSnapper:Oi?Ki.WY:Aa.xb,viewport:{scale:Ii/100}}));let et=(0,bi.mG)(Yn,{scale:Ii,offset:$a,viewportRect:Re}),St;const vt=$o=>{if(Ns=Ns||Math.abs($o.clientX-Cs)>1||Math.abs($o.clientY-Us)>1,!Ns)return;St=(0,bi.nS)({isTear:xn==="wTear",world:et,scale:Ii,newSelection:je,currentPageKey:ls,isCtrlDown:$o.ctrlKey||$o.metaKey})||"",et=(0,bi.mG)($o,{scale:(0,T.X_)(Qo.getState()),offset:$a,viewportRect:Re});let gn={},En={},cs={};if(typeof Ai=="function"){var Zn;const{top:ks,left:Zs,alignment:ni,sameSize:wi,distributed:xi}=Ai({_rect:{left:Math.round(et.x-Eo/2),top:Math.round(et.y-Bo/2),right:Math.round(et.x+Eo/2),bottom:Math.round(et.y+Bo/2),width:Math.round(Eo),height:Math.round(Bo)},sup:((Zn=sdkStore.getHotItem(St))==null?void 0:Zn.hotAttr.type)==="rResCanvas"?St:ls});et={x:Zs+Eo/2,y:ks+Bo/2},gn=ni,En=wi,cs=xi}const fs=(0,bi.mY)({x:et.x-Eo/2,y:et.y-Bo/2});switch(Bs({top:fs.y,left:fs.x,scale:Qs.some(ks=>(0,sa.El)($o.clientX,$o.clientY,ks))?100:Ii}),xn){case"wSticky":{const ks=[et.x-Eo/2,et.y-Bo/2,et.x+Eo/2,et.y+Bo/2];Qo.dispatch({type:"entry:ST:drag:sticky:point:fake:bind",payload:{stickyKey:"fake",stickyAABBP:ks,callback:ci}});break}case"wTear":{ci({refWCKey:St,tearMode:!0});break}default:break}Qo.dispatch({type:"set:alignment",payload:{alignment:gn}}),Qo.dispatch({type:"set:sameSize",payload:{sameSize:En}}),Qo.dispatch({type:"set:distributed",payload:{distributed:cs}}),(0,Vo.yT)(xn)&&Qo.dispatch({type:"mode:update:hover:item",payload:St})},no=$o=>{if(document.removeEventListener("mousemove",vt),document.removeEventListener("mouseup",no),Ws(),Qo.dispatch({type:"reducer:flag:set:is-dragging-item",payload:{isDraggingItem:!1}}),!Ns||!(0,Zi.z5)(Zt))return;let gn=[],En;if((0,sa.El)($o.clientX,$o.clientY,Re)&&Qs.every(Zn=>!(0,sa.El)($o.clientX,$o.clientY,Zn)))switch(xn){case ps.x.CanvasAsOverlay:{En=ls,gn=sdkStore.loadSubtree(Zt,ls,et.x,et.y),(0,Fa.OV)(gn,En,sdkStore),(0,Fa.tu)(gn,En,sdkStore),(0,to.Yx)(gn,En,sdkStore);break}case"wSticky":case"wTear":{En=ls,gn=sdkStore.loadSubtree(Zt,ls,et.x,et.y),(0,Fa.gs)(ls,gn,sdkStore),(0,to.Yx)(gn,ls,sdkStore);break}default:{const Zn=(0,Fa.dk)(je,sdkStore);if(Zn&&sdkStore.getHotItem(Zn).hotAttr.type==="wWrap")En=Zn,gn=sdkStore.loadSubtree(Zt,En,et.x,et.y);else{gn=sdkStore.loadSubtree(Zt,ls,et.x,et.y);const fs=(0,Qt.G9)(ls,gn),ks=(0,Qt.YQ)(),Zs=(0,Qt.wr)(),ni=gn.map(wi=>{const xi=sdkStore.getHotItem(wi),Fi=sdkStore.getHotAABB(wi),$i=fs(Fi)||ls;return{...xi,sup:$i,hotAttr:{...xi.hotAttr,...sdkStore.getRelocateLocalXYR(wi,$i),zIndex:Zs.getReStackZIndex(wi,$i),name:ks($i,xi.hotAttr.type,xi.hotAttr.name)}}});sdkStore.updateHotItemBatch(ni)}}}if((0,Sn.xB)(xn,gn[0]),sdkStore.combineMerge("drag-and-insert-widget"),Qo.dispatch({type:"reducer:flag:set:is-dragging-item",payload:{isDraggingItem:!1}}),Qo.dispatch({type:"ST:update",payload:{isLeftDown:!0}}),Qo.dispatch({type:"set:alignment",payload:{alignment:{}}}),Qo.dispatch({type:"set:sameSize",payload:{sameSize:{}}}),Qo.dispatch({type:"set:distributed",payload:{distributed:{}}}),Qo.dispatch({type:"elbow:update",payload:{isDraggingElbow:!1}}),gn.length===1){const Zn=sdkStore.getHotItem(gn[0]);switch(Zn.hotAttr.type){case"wSticky":{const{info:fs}=(0,ho.lp)();Qo.dispatch({type:"entry:ST:drag:sticky:point:real:bind",payload:{stickyKey:Zn.key}}),Qo.dispatch({type:"entry:set:editing:cid",payload:{item:{...Zn.hotAttr,cid:Zn.key}}}),Qo.dispatch({type:"toolbar:update:state",payload:{isShowSticky:!0}}),sdkStore.updateHotAttrMerge(Zn.key,{info:fs});break}case"wTear":{const{info:fs}=(0,ho.lp)();Qo.dispatch({type:"entry:ST:tear:bind",payload:{tearKey:Zn.key,afterCreate:!0}}),Qo.dispatch({type:"entry:set:editing:cid",payload:{item:{...Zn.hotAttr,cid:Zn.key}}}),Qo.dispatch({type:"toolbar:update:state",payload:{isShowSticky:!0}}),sdkStore.updateHotAttrMerge(Zn.key,{info:fs});break}case"wRichText":{Qo.dispatch({type:"entry:set:editing:cid",payload:{item:{...Zn.hotAttr,cid:Zn.key}}});break}case"wSwimlane":{Qo.dispatch({type:"flow:update:clear"});break}}}const cs=gn.map(Zn=>sdkStore.getHotItem(Zn));Qo.dispatch({type:"entry:widget:change",payload:{flatChgList:cs,isCreateWidget:!0,shouldBreakLayerUICache:!0}}),Qo.dispatch({type:"entry:select:items",payload:{cids:gn}}),Qo.dispatch({type:"entry:expend:groupOrCanvasOrBasket",payload:{cids:gn}}),Qo.dispatch({type:"entry:publish:create:items:success",payload:{newKeys:gn}}),(0,cn.Yp)({source:""+cn.ol.BuiltPanel+cn.k8.Drag,widgetName:fo,templateWidgetType:jt.widgetType,widgetTypeNew:jt.plabel+"-"+jt.widgetType,isTotalWidget:jt.plabel===zn.bp.All}),typeof Dt=="function"&&Dt()};document.addEventListener("mousemove",vt),document.addEventListener("mouseup",no)}},Dn=Ge=>{var jt;const{selectedSceTag:Dt,onSelectedSceTag:Zt,layoutV9:fo,showSlideNav:Eo,dispatch:Bo}=Ge,xn=(0,o.useRef)(null),[Qo,Yn]=(0,o.useState)({top:0,left:0}),[$n,ls]=(0,o.useState)(!1),Ns=Ws=>{if(Ws.stopPropagation(),!$n){const{top:ci,left:Ai}=xn.current.getBoundingClientRect();Yn({top:ci+26,left:Ai-3})}ls(!$n)},Cs=Ws=>{let{target:ci}=Ws;if(!$n)return;const Ai=ci.closest(".combo-scenes-select-menu"),Qi=ci.closest(".scene-tag-filter > opener-box");Ai||Qi||ls(!1)},Us=(Ws,ci)=>{var Ai;Ws.stopPropagation(),Zt(ci),ls(!1),(0,cn.mF)(((Ai=I18N.LeftSidePanel)==null?void 0:Ai.category[ci])||ci)},Qs=()=>Bo({type:"widget-panel:update:state",payload:{showComboStar:!0}}),Bs=()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Do,{className:u()("combo-scenes-select-menu"),position:Qo,children:Object.entries(zn.Qv).map(Ws=>{var ci;let[Ai,Qi]=Ws;if(Qi.length===0)return null;if(Qi.length===1){var Oi;const Ii=Qi[0],$a=Dt===Ii;return(0,a.jsx)(ae.Dr,{text:((Oi=I18N.LeftSidePanel)==null?void 0:Oi.platform[Ai])||Ai,icon:$a&&(0,a.jsx)(b.C,{className:"state-icon widget-icon-selected",name:"toolbar/selected"}),className:u()("combo-scene-select-menu",{selected:$a}),onClick:Re=>Us(Re,Ii)},Ai)}return(0,a.jsx)(ae.Dr,{text:((ci=I18N.LeftSidePanel)==null?void 0:ci.platform[Ai])||Ai,className:"combo-scene-select-menu",subMenuClassName:"combo-scene-select-sub-menu",isAiry:!0,children:Qi.map(Ii=>{var $a;const Re=Dt===Ii;return(0,a.jsx)(ae.Dr,{text:(($a=I18N.LeftSidePanel)==null?void 0:$a.category[Ii])||Ii,icon:Re&&(0,a.jsx)(b.C,{className:"state-icon widget-icon-selected",name:"toolbar/selected"}),className:u()("combo-scene-select-menu",{selected:Re}),onClick:je=>Us(je,Ii)},Ii)})},Ai)})}),(0,a.jsx)(an,{}),(0,a.jsx)(te.A,{target:document,onClick:Cs})]});return(0,a.jsxs)(ns,{className:u()({"is-float":Eo}),children:[(0,a.jsx)(h.A,{content:I18N.LeftSidePanel.category.store,direction:"down",children:(0,a.jsx)("a",{className:"star-box",onClick:Qs,children:(0,a.jsx)(b.C,{name:"left_panel/category/star"})})}),(0,a.jsx)("div",{className:"scene-tag-filter",children:ENV.IS_WONDER_SHARE?(0,a.jsx)("div",{className:"opener-box",children:I18N.LeftSidePanel.category.common}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h.A,{content:((jt=I18N.LeftSidePanel)==null?void 0:jt.category[Dt])||Dt,direction:"down",children:(0,a.jsxs)("div",{className:u()("opener-box",$n&&"is-open"),ref:xn,onClick:Ns,children:[(0,a.jsx)(b.C,{name:"left_panel/scene_tag/"+(Dt||"common"),className:"sce-tag"}),(0,a.jsx)(b.C,{className:u()("arrow-icon",{"is-expand":$n}),name:"common/expand"})]})}),$n&&Bs()]})})]})};var Hs=e(19722),Qn=e(48985),Gi=e(67217);const oa={[kn.t_]:["mtki03rbk1qwhipm","mtki0106yqmswq36"],[kn.Gd]:["mtk4s6te0a5t9kjn","mtk7y1os4bhhtpy0"]};var ta=e(52781);const Sa=z.Ay.div.withConfig({displayName:"styles__StyledEmptyStarGuide",componentId:"sc-1i5cl60-0"})(["padding:10px 12px;span{display:block;color:",";&.desc{margin-top:12px;}}.guideTemplate{width:100%;margin-top:10px;display:flex;align-items:center;justify-content:space-between;height:32px;padding:0 8px;border-radius:4px;background:",";span{color:",";}.star{width:24px;height:24px;cursor:pointer;&.isSaved{path{fill:",";stroke:",";}}}}"],Ge=>Ge.theme.color_text_L3,Ge=>Ge.theme.color_bg_card,Ge=>Ge.theme.color_text_L1,Ge=>Ge.theme.color_proto,Ge=>Ge.theme.color_proto),La=z.Ay.div.withConfig({displayName:"styles__StyledScreenListEmptyStarGuide",componentId:"sc-1i5cl60-1"})(["width:100%;height:100%;display:flex;justify-content:center;align-items:center;.content{width:180px;margin-bottom:100px;text-align:center;font-size:12px;span{display:block;}svg{margin-bottom:20px;}.title{font-weight:500;line-height:16px;color:",";margin-bottom:10px;}.desc{font-weight:400;line-height:22px;color:",";}}"],Ge=>Ge.theme.color_text_L1,Ge=>Ge.theme.color_text_L3);class ya extends o.PureComponent{constructor(){super(...arguments),(0,C.A)(this,"state",{marketTemplate:null}),(0,C.A)(this,"handleStartTemplates",async()=>{if(MB.global.experienceLoginModalHelper("isSave"))return;const{marketTemplate:jt}=this.state;await(0,Ss.lU)(!1,jt.cid),this.setState({marketTemplate:null}),this.props.onLoadData()})}async componentDidMount(){const{type:jt,width:Dt}=this.props,Zt=+(Dt>=960),fo=oa[jt][Zt],Eo=await(0,ta.Yk)(fo,!1);if(Eo){const{market_template:Bo}=Eo;this.setState({marketTemplate:Bo})}}render(){const{type:jt,hasGuide:Dt}=this.props,{marketTemplate:Zt}=this.state;return jt===kn.Gd?(0,a.jsx)(Ja,{}):(0,a.jsxs)(Sa,{children:[(0,a.jsx)("span",{children:I18N.Resources.emptyStarGuide[jt].title}),(0,a.jsx)("span",{className:"desc",children:I18N.Resources.emptyStarGuide[jt].desc}),Dt&&Zt&&(0,a.jsxs)("div",{className:"guideTemplate",children:[(0,a.jsx)("span",{children:Zt.title}),(0,a.jsx)(Gi.X,{onClick:this.handleStartTemplates})]})]})}}function Ja(){return(0,a.jsx)(La,{children:(0,a.jsxs)("div",{className:"content",children:[(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"123",height:"77",fill:"none",children:[(0,a.jsx)("path",{fill:"url(#paint0_linear_5870_65721)",d:"M47.434 12.467c-.583 0-1.164.072-1.729.214v-.214a6.943 6.943 0 0 0-1.79-5.36 7.043 7.043 0 0 0-10.381 0 6.968 6.968 0 0 0-1.79 5.36v.064c-1.03.137-2.015.5-2.886 1.063a6.995 6.995 0 0 0-2.151 2.191 6.954 6.954 0 0 0 .96 8.545 7.043 7.043 0 0 0 8.566 1.13c.923.421 1.927.64 2.942.642a6.898 6.898 0 0 0 3.942-1.208 7.035 7.035 0 0 0 9.178-.415 6.964 6.964 0 0 0 1.788-2.77 6.934 6.934 0 0 0-.924-6.33 6.993 6.993 0 0 0-2.506-2.149 7.032 7.032 0 0 0-3.219-.763Z"}),(0,a.jsx)("path",{fill:"url(#paint1_linear_5870_65721)",d:"M16.46 2.582a2.893 2.893 0 0 0-.671.088v-.088a2.72 2.72 0 0 0-.847-1.834 2.734 2.734 0 0 0-3.76 0 2.72 2.72 0 0 0-.846 1.834 2.727 2.727 0 0 0-1.948 1.27A2.711 2.711 0 0 0 9.766 7.82a2.73 2.73 0 0 0 2.319-.203 2.713 2.713 0 0 0 2.678-.214 2.726 2.726 0 0 0 4.255-1.243A2.71 2.71 0 0 0 17.7 2.856a2.728 2.728 0 0 0-1.246-.304l.007.03Z"}),(0,a.jsx)("path",{fill:"url(#paint2_linear_5870_65721)",d:"M114.874 10.447a7.608 7.608 0 0 0-1.984.245.836.836 0 0 0 0-.245 8.02 8.02 0 0 0-2.353-5.675 8.036 8.036 0 0 0-11.36 0 8.022 8.022 0 0 0-2.353 5.675 8.038 8.038 0 0 0-5.76 3.747 8.022 8.022 0 0 0 4.056 11.733 8.04 8.04 0 0 0 6.847-.604 8.213 8.213 0 0 0 3.38.734 8.088 8.088 0 0 0 4.506-1.37 8.035 8.035 0 0 0 7.253 1.412 8.036 8.036 0 0 0 5.339-5.105 8.016 8.016 0 0 0-3.989-9.764 8.038 8.038 0 0 0-3.705-.857l.123.074Z"}),(0,a.jsx)("path",{fill:"#FF6161",fillRule:"evenodd",d:"M4.902 25.192h.001-.001Zm3.75-1.47c1.05.17 2.043.396 2.914.648.93.27 2.526 1.827 3.238 3.494.207.799-.503-.12-1.874-.781-.467-.232-1.13-.482-1.941-.717a23.566 23.566 0 0 0-5.763-.889 5.488 5.488 0 0 1-.741-.058 1.867 1.867 0 0 1-.362-.095 1.232 1.232 0 0 1-.28-.15 1.068 1.068 0 0 1-.297-1.429c.115-.19.262-.3.337-.35.154-.104.312-.158.4-.186a4.7 4.7 0 0 1 .731-.148c.507-.07.992-.153 1.386-.278.195-.061.34-.125.442-.184a.713.713 0 0 0 .099-.068.936.936 0 0 0-.085-.201c-.19-.358-.658-.927-1.643-1.744a3.499 3.499 0 0 1-.295-.27 1.601 1.601 0 0 1-.284-.395 1.128 1.128 0 0 1 .017-1.05c.231-.416.627-.525.758-.554.284-.064.589-.027.75-.005.21.028.454.074.703.124l.52.107c.95.199 2.056.43 3.02.455.574.015.964-.05 1.187-.153.154-.07.191-.127.21-.266.031-.239-.026-.75-.466-1.67-.428-.897-1.169-2.076-2.335-3.604a2.695 2.695 0 0 1-.434-.79c-.086-.267-.16-.699.06-1.13.246-.485.704-.674 1.07-.714.341-.037.677.036.961.134 1.646.565 4.162 1.427 6.686.992 2.387-.411 5.006-2.034 6.767-6.999a2.41 2.41 0 0 1 .77-1.073c.09-.068.224-.155.395-.213a1.16 1.16 0 0 1 .813.018c.375.152.568.457.648.697.073.217.073.42.063.552-.022.305-.09.696-.17 1.158-.375 2.14.356 6.27 2.105 9.662.63 1.22.565 1.375-.338.341-1.527-1.75-3.735-4.873-3.711-8.207-1.258 4.462-4.634 5.705-6.99 6.111-2.274.392-4.486-.068-6.132-.558.732 1.043 1.273 1.946 1.647 2.727.504 1.055.76 2.007.65 2.838-.123.932-.682 1.552-1.405 1.883-.653.3-1.42.359-2.107.34a14.066 14.066 0 0 1-1.967-.218c.122.17.227.338.314.503.406.77.482 1.613-.021 2.334a1.7 1.7 0 0 1-.02.028Zm-1.708-1.145s-.002-.01.001-.024c.003.018 0 .024 0 .024Z",clipRule:"evenodd"}),(0,a.jsx)("ellipse",{cx:"61.3846",cy:"68.3999",fill:"url(#paint3_linear_5870_65721)",rx:"33.3764",ry:"6.92983",transform:"rotate(2.572 61.385 68.4)"}),(0,a.jsx)("path",{fill:"#fff",stroke:"#90C0FA",strokeDasharray:"4 4",strokeWidth:"2",d:"m36.41 52.07-.42-.908-2.008.929a1 1 0 0 1-1.328-.489l-.909-1.966-.907.42-1.818-3.934.907-.42-1.817-3.934-.908.42-1.818-3.934.908-.42-1.818-3.933-.908.42-1.818-3.934.908-.42-.91-1.966a1 1 0 0 1 .489-1.327l1.967-.91-.42-.907 3.934-1.818.42.908 3.933-1.818-.42-.908 3.934-1.818.42.908 3.933-1.818-.42-.908 3.934-1.818.42.908 1.966-.909a1 1 0 0 1 1.328.488l.95 2.059.909-.42 1.902 4.117-.908.42 1.903 4.116.908-.42 1.902 4.117-.908.42.952 2.058a1 1 0 0 1 .02.79l-1.058 2.654.93.37-2.118 5.308-.929-.37-1.058 2.654a1 1 0 0 1-.51.537l-2.008.928.42.908-4.018 1.857-.42-.908-4.017 1.857.42.907-4.018 1.857Z"}),(0,a.jsx)("path",{fill:"#9EA9BC",d:"m45.57 24.703-15.68 7.246a.736.736 0 0 0-.36.977l.291.628c.17.369.608.53.977.359l15.68-7.246a.736.736 0 0 0 .358-.977l-.29-.628a.736.736 0 0 0-.977-.36ZM41.423 33.229l-9.382 4.336c-.167.077-.174.416-.016.757l.268.58c.157.341.42.555.587.478l9.382-4.336c.166-.077.174-.416.016-.757l-.268-.58c-.158-.341-.42-.555-.587-.478Z"}),(0,a.jsx)("path",{stroke:"#90C0FA",strokeWidth:"3.5",d:"M59.166 5.95a3.964 3.964 0 0 1 4.592-3.215l20.18 3.558a3.964 3.964 0 0 1 2.558 1.63l6.555 9.362c.603.861.84 1.927.657 2.962l-5.047 28.62a3.964 3.964 0 0 1-4.592 3.216L55.932 47.12a3.964 3.964 0 0 1-3.216-4.592l6.45-36.579Z"}),(0,a.jsx)("circle",{cx:"68.4527",cy:"33.699",r:"7.14286",stroke:"#90C0FA",strokeWidth:"3.5",transform:"rotate(10 68.453 33.699)"}),(0,a.jsx)("path",{stroke:"#90C0FA",strokeWidth:"3.5",d:"M77.37 17.138a1.429 1.429 0 0 1 2.436.43l4.232 11.626a1.429 1.429 0 0 1-1.59 1.895l-12.185-2.148a1.429 1.429 0 0 1-.846-2.325l7.952-9.478Z"}),(0,a.jsxs)("defs",{children:[(0,a.jsxs)("linearGradient",{id:"paint0_linear_5870_65721",x1:"31.1855",x2:"42.8442",y1:"-1.97973",y2:"26.5167",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{stopColor:"#CEE1FF"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#FCF7FF"})]}),(0,a.jsxs)("linearGradient",{id:"paint1_linear_5870_65721",x1:"10.1443",x2:"14.699",y1:"-3.07064",y2:"8.02848",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{stopColor:"#CEE1FF"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#FCF7FF"})]}),(0,a.jsxs)("linearGradient",{id:"paint2_linear_5870_65721",x1:"105.812",x2:"106.545",y1:"0.41503",y2:"22.1669",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{stopColor:"#E9EEFF"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#FCF7FF"})]}),(0,a.jsxs)("linearGradient",{id:"paint3_linear_5870_65721",x1:"46.1107",x2:"68.9711",y1:"61.4701",y2:"82.6198",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{stopColor:"#CDE1FF"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#FBF6FF"})]})]})]}),(0,a.jsx)("span",{className:"title",children:I18N.Resources.emptyStarGuide.screen_list.title}),(0,a.jsx)("span",{className:"desc",children:I18N.Resources.emptyStarGuide.screen_list.desc})]})})}var No=e(87416);const ct=z.Ay.div.withConfig({displayName:"styles__StyledFindComponentPanel",componentId:"sc-mn4bs8-0"})(["display:flex;flex:1 1 0;flex-direction:column;overflow:hidden;ul{list-style-type:none;display:grid;grid-row-gap:8px;grid-column-gap:4px;grid-template-columns:repeat(4,1fr);padding:4px 12px 10px 12px;&:lang(en){grid-template-columns:repeat(3,1fr);}li{display:inline-flex;align-items:center;justify-content:center;height:24px;border-radius:6px;cursor:pointer;background:",";color:",";&.active{background-color:",";color:",";}}}.topic-list{overflow-x:hidden;overflow-y:overlay;display:flex;flex-direction:column;flex:1;.list{flex:1;}.gotoSquare{height:40px;flex:0 0 40px;width:100%;white-space:nowrap;display:flex;align-items:center;justify-content:center;border-top:1px solid ",";a{color:",";margin-left:4px;}}}ul{li{border:1px solid ",";&.active{border:1px solid ",";}}}"],Ge=>Ge.theme.color_bg_white,Ge=>Ge.theme.color_text_L1,Ge=>Ge.theme.color_btn_primary_normal,Ge=>Ge.theme.color_text_btn,Ge=>Ge.theme.color_btn_secondary_active,Ge=>Ge.theme.color_text_link_normal,Ge=>Ge.theme.color_bg_border_01,Ge=>Ge.theme.color_btn_primary_normal),Mt=z.Ay.div.withConfig({displayName:"styles__StyledResourcesCard",componentId:"sc-mn4bs8-1"})(["margin-bottom:12px;.resources-card-list{padding:0 12px;display:grid;grid-row-gap:8px;grid-column-gap:8px;grid-template-columns:repeat(auto-fill,109px);}.card-header{display:flex;align-items:center;justify-content:space-between;height:32px;padding:0 12px;margin-bottom:6px;.title{color:",";}.right{display:flex;align-items:center;height:100%;color:",";cursor:pointer;.arrow-right{width:6px;height:10px;margin-left:10px;}}}.template-box{display:block;position:relative;width:109px;cursor:pointer;&:hover .template-cover .btn-box{display:flex;}.template-cover{position:relative;height:82px;background-size:48px auto;border-radius:6px;border:1px solid ",";overflow:hidden;.img-box{height:82px;width:109px;.template-cover-image{width:100%;height:100%;object-fit:cover;}}}.payment-only{position:absolute;top:0;right:0;width:28px;height:16px;&.isMockitt{width:46px;}}.template-info{margin-top:4px;display:flex;align-items:center;justify-content:center;.template-title{color:",";font-size:12px;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}}"],Ge=>Ge.theme.color_text_L1,Ge=>Ge.theme.color_text_L3,Ge=>Ge.theme.color_bg_border_01,Ge=>Ge.theme.color_text_L2);function ht(Ge){var jt;const{displayLibraries:Dt,paramStarMtCid:Zt,handleUnStarTemplate:fo,handleToggleStarTemplate:Eo,handlePaidResources:Bo,handleTrack:xn,dispatch:Qo}=Ge,[Yn,$n]=(0,o.useState)(Zt&&((jt=Dt.find(Bs=>{let{cid:Ws}=Bs;return Ws===Zt}))==null?void 0:jt.currentResources)||null),ls=(0,o.useMemo)(()=>Dt.map(Bs=>{let{currentResources:Ws}=Bs;return Ws}).filter(Bs=>!!Bs),[Dt]);(0,o.useEffect)(()=>()=>Zt&&Qo({type:"update:popups:state",payload:{paramStarMtCid:""}}),[Qo,Zt]);const Ns=(0,o.useCallback)(Bs=>$n(Bs),[]),Cs=(0,o.useCallback)(()=>$n(null),[]),Us=(0,o.useCallback)(()=>{Yn&&Eo(Yn)},[Yn,Eo]),Qs=(0,o.useCallback)(()=>{Yn&&Bo(Yn==null?void 0:Yn.cid,Yn)},[Bo,Yn]);return Yn?(0,a.jsx)(hs.A,{currentResources:Yn,onBack:Cs,onStarTemplates:Us,onPaidTemplates:Qs,onTrack:xn}):(0,a.jsx)(Wo,{children:(0,a.jsx)(Mt,{className:"screen_list_star",children:(0,a.jsx)("div",{className:"resources-card-list",children:ls.map(Bs=>(0,a.jsx)(No.A,{isStared:Bs.is_star,marketTemplate:Bs,onStarTemplates:fo,onClickCard:Ns},Bs.cid))})})})}const oo=(0,o.memo)(ht),uo=(Ge,jt)=>Ge?Ge.map(Dt=>{const{cid:Zt,type:fo,policy:Eo,title:Bo}=Dt;return{cid:Zt,type:fo,title:Bo,policy:Eo,items:[],currentResources:Dt,marketTemplateListData:{}}}).filter(Dt=>{let{cid:Zt}=Dt;return!jt.has(Zt)}):[];class So extends o.PureComponent{constructor(){super(...arguments),(0,C.A)(this,"state",{displayLibraries:[],isLoading:!0}),(0,C.A)(this,"handleToggleIsLoading",jt=>this.setState({isLoading:jt})),(0,C.A)(this,"initial",async()=>{const{builtinListInvisibleSet:jt,type:Dt}=this.props;this.handleToggleIsLoading(!0);const Zt=await(0,ta.Wu)(Dt),fo=uo(Zt,jt);this.setState({displayLibraries:fo},()=>{this.handleToggleIsLoading(!1),this.handleLoadExpandedData()})}),(0,C.A)(this,"handleLoadExpandedData",()=>{const{collapsePanelSet:jt,dispatch:Dt}=this.props,{displayLibraries:Zt}=this.state,fo=Zt.filter(Eo=>{let{cid:Bo}=Eo;return jt.has(Bo)}).map(Eo=>{let{cid:Bo}=Eo;return Bo});Dt({type:"entry:resources:init:marketTemplateItemList:map",payload:{resourcesCids:fo}})}),(0,C.A)(this,"renderIcon",jt=>{const Dt=jt?"design/group_open":"design/group_close";return(0,a.jsx)(b.C,{className:"expanded-icon",name:Dt})}),(0,C.A)(this,"renderContent",jt=>{const{is_star:Dt}=jt;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Qn.W,{resources:jt,isSmall:!0}),(0,a.jsx)(Gi.X,{isStar:Dt,onClick:Zt=>this.handleClickStarBox(Zt,jt)})]})}),(0,C.A)(this,"handleClickStarBox",(jt,Dt)=>{jt.stopPropagation(),this.handleUnStarTemplate(Dt)}),(0,C.A)(this,"handleUnStarTemplate",jt=>{const{dispatch:Dt}=this.props,{title:Zt}=jt;Dt({type:"modal:update:state",payload:{secondaryConfirmModal:{isOpen:!0,title:I18N.Resources.unStar.title,isHTML:!0,desc:I18N.Resources.unStar.desc.replace(/%name%/,Zt),onConfirm:()=>this.handleToggleStarTemplate(jt)}}})}),(0,C.A)(this,"handleToggleStarTemplate",async jt=>{const{dispatch:Dt}=this.props,{is_star:Zt,cid:fo,category:Eo}=jt,{displayLibraries:Bo}=this.state,xn=Bo.filter(Qo=>Qo.cid!==fo);this.setState({displayLibraries:xn}),await(0,Ss.lU)(Zt,fo),Dt({type:"entry:resources:update:find:data",payload:{cid:fo,category:Eo,updateData:Qo=>({...Qo,is_star:!Qo.is_star})}})}),(0,C.A)(this,"handlePaidResources",(jt,Dt)=>{const{displayLibraries:Zt}=this.state,{dispatch:fo}=this.props,{cid:Eo,category:Bo}=Dt,xn=Zt.map(Qo=>Qo.cid===jt?{...Qo,currentResources:{...Qo.currentResources,is_purchased:!0,is_star:!0}}:Qo);this.setState({displayLibraries:xn}),fo({type:"entry:resources:update:find:data",payload:{cid:Eo,category:Bo}})}),(0,C.A)(this,"handleTogglePanel",async jt=>{const{collapsePanelSet:Dt,dispatch:Zt}=this.props,fo=new Set(Dt),Eo=fo.has(jt);Eo?fo.delete(jt):fo.add(jt),Zt({type:"resources:update:collapsePanelSet",payload:{collapsePanelSet:fo}}),Eo||Zt({type:"entry:resources:init:marketTemplateItemList:map",payload:{resourcesCids:[jt]}})}),(0,C.A)(this,"handleLoadData",async()=>{await this.initial();const{displayLibraries:jt}=this.state;if(jt.length>0){const{cid:Dt}=jt[0];await this.handleTogglePanel(Dt)}}),(0,C.A)(this,"handleTrack",(jt,Dt,Zt,fo)=>{const{policy:Eo,category:Bo,title:xn,copyright:Qo,platform:Yn}=Zt,{rootProject:$n,type:ls}=this.props,Ns=ls===kn.t_?V.lS.Builtin:V.lS.Page,Cs=ls===kn.t_?cn.Ii.Star:cn.Ii.PageLibraryStar;(0,cn.Mi)({popupsName:Ns,addType:Dt,source:Cs,category:Bo,platform:Yn,policy:Eo,templateGroupName:xn,copyright:Qo,name:fo,rootProject:$n,esSearchKey:jt})})}async componentDidMount(){await this.initial()}render(){const{type:jt,rootProject:{width:Dt},builtinListInvisibleSet:Zt,collapsePanelSet:fo,mtResourcesMtItemListMap:Eo,paramStarMtCid:Bo,dispatch:xn}=this.props,{displayLibraries:Qo,isLoading:Yn}=this.state;return jt===kn.Gd&&Qo&&Qo.length>0?(0,a.jsx)(oo,{displayLibraries:Qo,paramStarMtCid:Bo,handleUnStarTemplate:this.handleUnStarTemplate,handleToggleStarTemplate:this.handleToggleStarTemplate,handlePaidResources:this.handlePaidResources,handleTrack:this.handleTrack,dispatch:xn}):(0,a.jsx)(xt,{className:jt,children:$n=>(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(a.Fragment,{children:Qo.length===0?!ENV.IS_WONDER_SHARE&&(0,a.jsx)(ya,{hasGuide:Zt.size===0,type:jt,width:Dt,onLoadData:this.handleLoadData}):!Yn&&Qo.map(ls=>{let{cid:Ns,title:Cs,policy:Us,currentResources:Qs}=ls;const Bs=fo.has(Ns),Ws=Eo.get(Ns),ci=!(Ws!=null&&Ws.length);return(0,a.jsx)(wo.A,{className:"combo-groups-item-collapse",id:Ns,title:Cs,width:qt.qv,expanded:Bs,renderIcon:()=>this.renderIcon(Bs),renderContent:()=>this.renderContent(Qs),onToggle:this.handleTogglePanel,children:ci?(0,a.jsx)(Ut,{children:(0,a.jsx)(Kt.ft,{className:"loading"})}):(0,a.jsx)("ul",{className:u()("combo-groups-item-container",Ns),style:{width:qt.qv},children:Ws.map(Ai=>(0,a.jsx)(Lo.A,{marketTemplate:{...Ai,policy:Us},currentResources:Qs,containerRect:$n,isShowSign:!1,onTrack:this.handleTrack,onPaidTemplates:()=>this.handlePaidResources(Ns,Qs)},Ai.key))})},Ns)})})})})}}const zo=(0,g.Mz)([p.rk,T.PL,k.tY,k.AC,k.zw],(Ge,jt,Dt,Zt,fo)=>({builtinListInvisibleSet:Ge,rootProject:jt,collapsePanelSet:Dt,mtResourcesMtItemListMap:Zt,paramStarMtCid:fo})),en=(0,m.Ng)(Ge=>zo(Ge))(So),jn=Ge=>{const{dispatch:jt}=Ge,Dt=()=>jt({type:"widget-panel:update:state",payload:{showComboStar:!1}});return(0,o.useEffect)(()=>()=>jt({type:"widget-panel:update:state",payload:{showComboStar:!1}}),[jt]),(0,a.jsxs)(Wn,{children:[(0,a.jsxs)("header",{className:"back",onClick:Dt,children:[(0,a.jsx)(Hs.A,{name:"design/arrow/right",className:"arrow-left"}),(0,a.jsx)("span",{className:"title",children:I18N.LeftSidePanel.category.store})]}),(0,a.jsx)(en,{type:kn.t_})]})};var Oo=e(83012),Nn=e(46751),es=e(24201);const zt=()=>{const Ge=(0,m.wA)(),jt=()=>{es.ZF.setCache("\u7EC4\u4EF6\u5217\u8868"),(0,es.U2)({source:"\u7EC4\u4EF6\u5217\u8868"}),Ge({type:"entry:aiComponent:open:mode"})};return(0,a.jsxs)(Mo,{children:[(0,a.jsx)("header",{className:"entry-header",children:"AI \u7EC4\u4EF6"}),(0,a.jsx)(Nn.r,{className:"ai-entry-icon-button",iconName:"chatGPT/ai-component-component",text:"AI \u751F\u6210\u4EA4\u4E92\u5F0F\u7EC4\u4EF6",onClick:jt})]})};var po=e(5868),Fo=e(42903),Mn=e(93677),Fn=e(99173);const ts=Ge=>{var jt;const{currentClabel:Dt,layoutV9:Zt,selectedSceTag:fo,selectedPLabel:Eo,onOpenFolder:Bo,onBack:xn,dispatch:Qo}=Ge,Yn=(0,m.d4)(T.PL),$n=(0,m.d4)(k.AC),ls=(0,m.d4)(k.xH),[Ns,Cs]=o.useState(!1),[Us,Qs]=o.useState(null),Bs=(0,o.useMemo)(()=>{var Re,je;const et=(Re=ls[fo])==null?void 0:Re[Eo.name||"all"];return et?((je=et.find(St=>{let{clabel:vt}=St;return vt===Dt}))==null?void 0:je.list)||[]:[]},[Dt,ls,Eo.name,fo]),Ws=(0,o.useMemo)(()=>Bs.every((Re,je,et)=>Re.mtCid===et[0].mtCid),[Bs]),ci=(0,o.useMemo)(()=>(0,Rs.Ob)(Bs,$n),[Bs,$n]);(0,o.useEffect)(()=>{if(Bs.length===0)return;const Re=Bs.map(je=>je.mtCid);Qo({type:"entry:resources:init:marketTemplateItemList:map",payload:{resourcesCids:Re}})},[Bs,Qo]);const Ai=Re=>{Qo({type:"entry:resources:update:find:data",payload:{cid:Re.cid,category:kn.t_}})},Qi=Re=>{if(Qs(null),Re){const je=new RegExp((0,po.$)(Re),"i");if(ci&&ci.length>0){Cs(!0);const et=ci.filter(St=>{var vt;return je.test((vt=St.hotAttr)==null?void 0:vt.name)});setTimeout(()=>{Cs(!1),Qs(et)},1e3)}}},Oi=(Re,je,et,St)=>{const{policy:vt,category:no,title:$o,copyright:gn,platform:En}=et,cs=Eo.name==="all"?"\u63A8\u8350":Eo.name,Zn=cn.Ii.Find+"-"+cs+"-"+Dt+"-"+cn.un;(0,cn.Mi)({popupsName:V.lS.Builtin,addType:je,source:Zn,category:no,platform:En,policy:vt,templateGroupName:$o,copyright:gn,name:St,rootProject:Yn,esSearchKey:Re})},Ii=Us||ci,$a=Ii&&Ii.length===0;return(0,a.jsxs)(Cn,{children:[(0,a.jsx)(Fo.l,{resources:Ws?(Ii==null||(jt=Ii[0])==null?void 0:jt.marketTemplateSource)||{title:Dt}:{title:Dt},layoutV9:Zt,onBack:xn,showStar:!1,onSearch:Qi}),Ns?(0,a.jsx)(Rt.qt,{children:(0,a.jsxs)("div",{className:"loading-container",children:[(0,a.jsx)(Kt.ft,{className:"loading"}),(0,a.jsx)("span",{children:I18N.Resources.searching.load})]})}):$a?(0,a.jsx)(Mn.b,{isNeedLink:!Us}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"marketTemplate-list",children:(0,a.jsx)(Fn.L,{category:kn.t_,marketTemplateItemList:Ii,isShowFolderIcon:!Ws,isShowSign:!Ws,onTrack:Oi,onPaidResources:Ai,onOpenFolder:Bo})}),(0,a.jsx)(As,{list:Ii})]})]})},As=Ge=>{let{list:jt}=Ge;return(0,o.useEffect)(()=>{const Dt=(0,Tn.R9)({source:"detail",list:jt});Vn.A.emit(Gt.jy,{observeMtItemObj:Dt}),Vn.A.emit(Gt.BD)},[jt]),null},Is=(Ge,jt)=>{const Dt=(0,m.d4)(k.S2);(0,o.useEffect)(()=>{const fo=(0,Vs.Yt)(Ge+"-collapsed-categories",[],Vs.qW.Array);jt({type:"widget-panel:update:sceCollapsedCategories",payload:{sceCollapsedCategories:fo}})},[]),(0,o.useEffect)(()=>{Array.isArray(Dt)&&(0,Vs.a0)(Ge+"-collapsed-categories",Dt,Vs.qW.Array)},[Ge,Dt]);const Zt=(0,o.useCallback)(fo=>{jt({type:"widget-panel:update:sceCollapsedCategories",payload:{sceCollapsedCategories:fo}})},[jt]);return[Dt,Zt]},io=Ge=>{let{sce:jt,sceneTag:Dt,scrollTop:Zt,sceToPLabelMap:fo,showComboStar:Eo,selectedSceTag:Bo,selectedPLabel:xn,layoutV9:Qo,showSlideNav:Yn,dispatch:$n}=Ge;const{sceName:ls,sceListing:Ns,sceData:Cs}=jt,[Us,Qs]=(0,o.useState)(null),[Bs,Ws]=(0,o.useState)(""),[ci,Ai]=(0,o.useState)(Zt),{isEditingCombo:Qi,isEditingBasket:Oi,isEditingMuban:Ii}=(0,m.d4)(A.r),[$a,Re]=Is(ls,$n),je=(0,o.useRef)(null),et=(0,o.useMemo)(()=>(0,Rs.Ow)(Dt),[Dt]),St=(0,o.useMemo)(()=>{const ni=Ii||Qi||Oi?Ns.filter(Fi=>{var $i;return(($i=Cs[Fi.split("/")[1]])==null?void 0:$i.meta.type)!=="rResCanvasAsOverlay"}):Ns;return(0,Rs.F5)(Bo,xn.name,ni).reduce((Fi,$i)=>{const[ga,Ia]=$i.split("/");return Fi.has(ga)?Fi.set(ga,[...Fi.get(ga),{key:Ia,...Cs[Ia]}]):Fi.set(ga,[{key:Ia,...Cs[Ia]}]),Fi},new Map)},[Bo,xn,Ns,Cs,Ii,Qi,Oi]);(0,o.useEffect)(()=>{Bo||$n({type:"widget-panel:update:state",payload:{selectedSceTag:et}})},[]),(0,o.useEffect)(()=>()=>{const ni=document.querySelector(".widget-panel-container"),wi=ni&&ni.scrollTop||0;$n({type:"widget-panel:update:state",payload:{scrollTop:wi}})},[$n]);const vt=(0,Oo.XM)();(0,o.useEffect)(()=>{var ni,wi;Qo==="recommend"&&!vt&&!((ni=MB.commonGuideHelper)!=null&&ni.checkGuideHasShown(Co.c.GUIDE_NOVICE_V9_2408))&&!((wi=MB.commonGuideHelper)!=null&&wi.checkGuideHasShown(Co.c.GUIDE_NOVICE_V9_2408_STEP_1))&&Re($a.filter(xi=>xi!=="\u57FA\u7840"&&xi!=="\u6D41\u7A0B"))},[]);const no=(0,o.useCallback)(ni=>$n({type:"widget-panel:update:state",payload:{selectedSceTag:ni}}),[$n]),$o=(0,o.useCallback)(ni=>$n({type:"widget-panel:update:state",payload:{selectedPLabel:ni}}),[$n]),gn=(0,o.useCallback)(ni=>{no(ni),$o(zn.P8),Ai(0)},[no,$o]),En=(0,o.useCallback)(ni=>{$o(ni),Ai(0)},[$o]),cs=(0,o.useCallback)(ni=>{$a.includes(ni)?Re($a.filter(wi=>wi!==ni)):Re($a.concat([ni]))},[$a,Re]),Zn=(0,o.useCallback)(()=>{const ni=document.querySelector(".widget-panel-container"),wi=ni&&ni.scrollTop||0;Ai(wi),$n({type:"widget-panel:update:state",payload:{scrollTop:wi}})},[$n]),fs=(0,o.useCallback)(ni=>{Zn(),Qs(ni||null)},[Zn]),ks=(0,o.useCallback)(ni=>{Zn(),Ws(ni||"")},[Zn]);if(!Bo)return null;const Zs=!Qi&&xn.name==="all"&&!ENV.IS_ON_PREMISES;return Us?(0,a.jsx)(ri,{selectedPLabel:xn,currentResources:Us,setCurrentResources:Qs,dispatch:$n}):Bs?(0,a.jsx)(ts,{currentClabel:Bs,layoutV9:Qo,selectedSceTag:Bo,selectedPLabel:xn,onBack:()=>Ws(""),onOpenFolder:fs,dispatch:$n}):Eo?(0,a.jsx)(jn,{layoutV9:Qo,dispatch:$n}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Dn,{selectedSceTag:Bo,onSelectedSceTag:gn,layoutV9:Qo,showSlideNav:Yn,dispatch:$n}),fo&&(0,a.jsx)(_t,{$widgetPanel:je,sceToPLabelMap:fo,selectedSceTag:Bo,selectedPLabel:xn,onSelectedPLabel:En,dispatch:$n}),(0,a.jsx)(sn,{className:"widget-panel-container",ref:je,children:ni=>(0,a.jsxs)(a.Fragment,{children:[Array.from(St.entries()).map(wi=>{let[xi,Fi]=wi;return(0,a.jsx)(wo.A,{className:""+(xi==="\u6D41\u7A0B"?Co.c.GUIDE_NOVICE_V9_2408_STEP_1:""),id:xi,"data-category":xi,title:xi,width:qt.qv,expanded:!$a.includes(xi),onToggle:cs,children:(0,a.jsx)("div",{className:"widget-insertable-list",style:{width:qt.qv},children:Fi.map($i=>(0,a.jsx)(Zo,{className:""+(($i==null?void 0:$i.preview)==="mind"?Co.c.GUIDE_NOVICE_V9_2408_STEP_2:""),category:xi,selectedPLabel:xn,widgetInsertableData:$i},$i.key))})},xi)}),Zs&&(0,a.jsx)(zt,{}),(0,a.jsx)(ei,{selectedSceTag:Bo,selectedPLabel:xn,containerRect:ni,type:kn.t_,toggleTabScrollTop:ci,onToggleCurrentResources:fs,onToggleCurrentClabel:ks,onOpenFolder:fs})]})})]})},Jo=Ge=>{if(ENV.IS_ON_PREMISES)return!1;try{const{meta:{type:Zt}}=Ge;switch(Zt){case ps.x.CanvasAsOverlay:{var jt,Dt;return MB.commonGuideHelper.checkGuideHasShown(Co.c.GUIDE_NEW_OVERLAY_ONCE)?!1:(jt=MB)!=null&&(jt=jt.user)!=null&&jt.created_at?Ct()((Dt=MB)==null||(Dt=Dt.user)==null?void 0:Dt.created_at).isBefore(Ct()("2024-07-02")):!1}default:return!1}}catch(Zt){return!1}},Zo=Ge=>{let{className:jt,category:Dt,selectedPLabel:Zt,widgetInsertableData:fo}=Ge;const[Eo,Bo]=(0,o.useState)(Jo(fo)),{preview:xn,meta:Qo}=fo,Yn=pn(fo,{widgetType:Dt,plabel:Zt.name},()=>Bo(!1)),$n=Uo(fo,{widgetType:Dt,plabel:Zt.name},()=>Bo(!1));return(0,a.jsxs)(Kn,{className:jt,"data-guide-id":xn,onMouseDown:Yn,onDoubleClick:$n,children:[(0,a.jsx)("div",{className:u()("widget-icon-wrapper","w_"+xn),children:(0,a.jsx)(b.C,{name:"art_board/widget/"+xn})}),(0,a.jsx)("span",{className:"widget-name",children:Qo.name}),Qo.key&&(0,a.jsx)(b.C,{className:"widget-key",name:"art_board/widget/"+xn+"/"+Qo.key,isColorPure:!0}),Eo&&(0,a.jsx)("span",{className:"recently-added-highlight"})]})},Un=z.Ay.div.withConfig({displayName:"styles__StyledHomePanel",componentId:"sc-11gy8y5-0"})(["flex:1;display:flex;flex-direction:column;overflow:hidden;position:relative;.basic-list{padding-top:0;}.home-panel-header{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;height:50px;padding:0 12px 0 5px;border-bottom:1px solid ",";.home-nav-box{display:flex;align-items:center;flex-shrink:0;height:32px;padding:0 8px;cursor:pointer;&.disabled{pointer-events:none;}.nav-menu-icon{width:13px;height:12px;margin-right:10px;color:",";}.item-icon{width:24px;height:24px;}&:hover{background:",";border-radius:4px;}&.active{background:",";border-radius:4px;}.nav-title{max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:16px;font-weight:500;color:",";&:lang(en){font-weight:600;}}.nav-hover-btn{width:13px;height:12px;margin-right:10px;}}.nav-back{height:100%;display:flex;align-items:center;cursor:pointer;margin-left:7px;.svg-icon{color:",";}&:hover{.svg-icon{color:",";}}.nav-back-icon{width:9px;height:15px;}}.home-panel-search{margin-left:13px;}}"],Ge=>Ge.theme.color_btn_secondary_active,Ge=>Ge.theme.color_text_L3,Ge=>Ge.theme.color_bg_canvas,Ge=>Ge.theme.color_bg_canvas,Ge=>Ge.theme.color_text_L1,Ge=>Ge.theme.color_text_L3,Ge=>Ge.theme.color_text_L2);var On=e(73262),us=e(46927),bn=e(76347),Gn=e(78060);const xs=z.Ay.div.withConfig({displayName:"style__StyledAIComponentDemoList",componentId:"sc-1p4ymf5-0"})(["height:100%;display:flex;flex-direction:column;.demo-list-title{height:32px;min-height:32px;margin:0 12px 8px 12px;display:flex;align-items:center;font-weight:500;font-size:12px;color:",";}.demo-list-container{padding:0 12px;overflow-y:auto;flex:1;}.list-wrap{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:8px;}"],Ge=>Ge.theme.color_text_L1),Es=z.Ay.div.withConfig({displayName:"style__StyledAIComponentDemoItem",componentId:"sc-1p4ymf5-1"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer;.img-container{width:109px;height:109px;display:flex;justify-content:center;align-items:center;border-radius:4px;overflow:hidden;border:1px solid ",";position:relative;background-color:",";img{max-width:100%;max-height:100%;pointer-events:none;}.demo-title{margin-top:4px;}.preview-icon,.copy-prompt-icon{position:absolute;bottom:6px;opacity:0;z-index:1;}.copy-prompt-icon{right:28px;}.preview-icon{right:6px;}&:hover,&.is-hover{.preview-icon,.copy-prompt-icon{opacity:1;}}}.operation-preview{}"],Ge=>Ge.theme.color_bg_border_01,Ge=>Ge.theme.color_bg_card);var Ys=e(60185);const lo=z.Ay.div.withConfig({displayName:"style__StyledCopyPromptIcon",componentId:"sc-jf92za-0"})(["display:flex;justify-content:center;align-items:center;.svgContainer{width:16px;height:16px;}svg{width:100%;height:100%;border-radius:4px;background-color:rgba(51,51,51,0.5);&:hover{background-color:rgba(51,51,51,0.7);}}"]),Ko=z.Ay.div.withConfig({displayName:"style__StyledTooltipChildren",componentId:"sc-jf92za-1"})(["padding:12px 16px 12px 16px;color:rgba(255,255,255,1);font-size:12px;line-height:20px;font-weight:400;.title{font-weight:500;margin-bottom:4px;}.copy-btn{color:rgba(128,188,255,1);&:hover{color:rgba(166,210,255,1);}}"]),eo=(0,z.DU)([".tooltip-with-hover{position:absolute;left:0;top:0;z-index:1;width:250px;height:auto;background-color:rgba(69,70,71,1);box-shadow:0px 9px 28px 8px rgba(0,0,0,0.05);box-shadow:0px 6px 16px 0px rgba(0,0,0,0.08);box-shadow:0px 3px 6px -4px rgba(0,0,0,0.12);border-radius:6px;.arrow{position:absolute;width:12px;height:7px;svg{width:100%;height:100%;}&.bottom{transform:rotate(180deg);}}}"]),ro=o.memo(Ge=>{let{className:jt,prompt:Dt,onToggleHover:Zt}=Ge;const[fo,Eo]=(0,o.useState)(!1),Bo=(0,o.useRef)(null),xn=(0,o.useRef)(null),Qo=Cs=>{Eo(Cs),Zt(Cs)},Yn=Cs=>{Cs.buttons===0&&(clearTimeout(Bo.current),Qo(!0))},$n=()=>{Bo.current=setTimeout(()=>{Qo(!1)},200)},ls=Cs=>{const{height:Us}=Cs.current.getBoundingClientRect();Us>255&&(Cs.current.style.width="350px")},Ns=(0,o.useMemo)(()=>(0,a.jsxs)(Ko,{children:[(0,a.jsx)("div",{className:"title",children:"\u63D0\u793A\u8BCD"}),(0,a.jsx)("div",{className:"prompt",children:Dt})]}),[Dt]);return(0,a.jsxs)(lo,{className:jt,children:[(0,a.jsx)("div",{className:"svgContainer",onMouseEnter:Yn,onMouseLeave:$n,ref:xn,children:(0,a.jsx)(b.C,{name:"design/view/prompt"})}),fo&&(0,a.jsx)(At,{setTooltipSize:ls,tooltipChildren:Ns,targetNode:xn.current,handMouseEnter:Yn,handMouseLeave:$n})]})}),Yt=12,Be=7,Wt=10,At=Ge=>{let{setTooltipSize:jt,tooltipChildren:Dt,targetNode:Zt,handMouseEnter:fo,handMouseLeave:Eo}=Ge;const Bo=(0,o.useRef)(null),[xn,Qo]=(0,o.useState)({});(0,o.useEffect)(()=>{Bo.current&&jt&&jt(Bo)},[jt,Bo]),(0,o.useEffect)(()=>{Qo((()=>{if(!Zt||!Bo.current)return;const{left:Us,top:Qs,width:Bs,height:Ws}=Zt.getBoundingClientRect(),{offsetWidth:ci,offsetHeight:Ai}=Bo.current,Qi=Us+Bs/2,Oi=Qs+Ws,Ii=()=>{let vt=Qi-ci/2;vt<0&&(vt=0),vt+ci>window.innerWidth&&(vt=window.innerWidth-ci);let no=Oi+Wt;return no+Ai>window.innerHeight&&(no=Qs-Ai-Wt),{tooltipLeft:vt,tooltipTop:no}},$a=(vt,no)=>{const $o=Us-vt+Bs/2-Yt/2;return no<Qs?{position:{left:$o+"px",top:"100%"},className:"bottom"}:{position:{left:$o+"px",top:-Be+"px"},className:"top"}},{tooltipLeft:Re,tooltipTop:je}=Ii(),{position:et,className:St}=$a(Re,je);return{tooltipPosition:{left:Re+"px",top:je+"px"},arrowPosition:et,arrowClassName:St}})())},[Zt,Bo]);const Yn=Cs=>{Cs.stopPropagation()},{tooltipPosition:$n,arrowPosition:ls,arrowClassName:Ns}=xn;return Zt===null?null:(0,Ys.createPortal)((0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"tooltip-with-hover",ref:Bo,style:$n,onMouseEnter:fo,onMouseLeave:Eo,onMouseDown:Yn,children:[Dt,(0,a.jsx)(b.C,{className:"arrow "+Ns,style:ls,name:"design/view/prompt/arrow",isColorPure:!0})]}),(0,a.jsx)(eo,{})]}),document.body)},Xe=Ge=>{let{className:jt}=Ge;const Dt=(0,m.d4)(T.X_),Zt=(0,m.d4)(T.Pz),fo=(0,m.d4)(l.B8),Eo=!0,Bo=!0,xn=(Yn,$n)=>{var ls;const Ns=(ls=document.getElementById(fo))==null?void 0:ls.getBoundingClientRect(),Cs=(0,us.yC)()[$n];(0,bn.ow)({e:Yn,template:Cs,doNotCreateRect:Ns,canvasRect:Zt,scale:Dt,showDragMode:Eo,isAdsorbentReferenceLine:Bo,callback:()=>{es.ZF.setCache("AI\u7EC4\u4EF6\u5DE6\u4FA7\u521B\u5EFA"),(0,es.e$)({code:200,userTextContent:"",snapshotBase64Url:"",startTimestamp:""})}})},Qo=async(Yn,$n)=>{const ls=(0,us.yC)()[$n];await(0,bn.lc)(Yn,ls),es.ZF.setCache("AI\u7EC4\u4EF6\u5DE6\u4FA7\u521B\u5EFA"),(0,es.e$)({code:200,userTextContent:"",snapshotBase64Url:"",startTimestamp:""})};return(0,a.jsxs)(xs,{className:jt,children:[(0,a.jsx)("div",{className:"demo-list-title",children:"\u7EC4\u4EF6\u751F\u6210\u6848\u4F8B"}),(0,a.jsx)("div",{className:"demo-list-container",children:(0,a.jsx)("div",{className:"list-wrap",children:(0,us.yC)().map((Yn,$n)=>{let{prompt:ls,imgUrl:Ns,name:Cs}=Yn;return(0,a.jsx)("div",{onDoubleClick:Us=>Qo(Us,$n),onMouseDown:Us=>xn(Us,$n),children:(0,a.jsx)(Vt,{prompt:ls,imgUrl:Ns,name:Cs})},$n)})})})]})},Vt=Ge=>{let{imgUrl:jt,name:Dt,prompt:Zt}=Ge;const[fo,Eo]=(0,o.useState)(!1),Bo=xn=>{Eo(xn)};return(0,a.jsxs)(Es,{children:[(0,a.jsxs)("div",{className:"img-container "+(fo?"is-hover":""),children:[(0,a.jsx)("img",{src:jt,alt:""}),(0,a.jsx)("span",{className:"frame"}),(0,a.jsx)(ro,{className:"copy-prompt-icon",prompt:Zt,onToggleHover:Bo}),(0,a.jsx)(Gn.Y,{className:"preview-icon",getImgSrc:()=>jt,onToggleHover:Bo})]}),(0,a.jsx)("span",{className:"demo-title",children:Dt})]})};var Xo=e(56146);const rn=z.Ay.div.withConfig({displayName:"styles__StylesAIComponentListItem",componentId:"sc-1v5zp2r-0"})(["position:relative;width:100%;height:74px;margin-top:10px;.item-content{width:100%;height:100%;background:",";box-shadow:0px 2px 12px rgba(3,3,3,0.06);border-radius:8px;display:flex;align-items:start;padding:12px;cursor:pointer;transition:0.2s;&:hover{transform:translateY(-4px);box-shadow:0px 2px 14px rgba(3,3,3,0.12);}.item-left{width:32px;height:32px;display:flex;align-items:center;border-radius:8px;margin-right:12px;justify-content:center;svg{width:32px;height:32px;}&.ai-page{background:",";}&.ai-component{background:",";svg{stop:first-child{stop-color:",";}stop:nth-child(2){stop-color:",";}}}&.ai-flow{background:",";svg{path{fill:",";}}}&.ai-mind{background:",";svg{path{fill:",";}}}&.ai-table{background:",";svg{path{fill:",";}}}&.ai-chart{background:",";svg{path{fill:",";}}}&.ai-magic-fill{background:",";svg{path{fill:",";}}}}.item-right{width:calc(100% - 44px);.item-title{display:flex;justify-content:space-between;align-items:center;font-weight:500;font-size:12px;line-height:17px;color:",";.title-container{height:20px;display:flex;align-items:center;}svg.item-arrow{width:14px;height:14px;path{fill:rgba(0,0,0,0);stroke:",";}}svg.icon-beta{width:40px;height:20px;margin-left:4px;}}.item-des{margin-top:2px;font-weight:400;font-size:12px;line-height:17px;color:",";position:relative;text-align:justify;margin-right:2px;.help-des{color:",";position:absolute;right:0;bottom:0;&:hover{color:",";}}}}}"],Ge=>Ge.theme.color_background_white_modal,Ge=>Ge.theme.comment_active,Ge=>Ge.theme.color_background_AI_component,Ge=>Ge.theme.color_AI_component_stop_color_1,Ge=>Ge.theme.color_AI_component_stop_color_2,Ge=>Ge.theme.color_background_AI_flow,Ge=>Ge.theme.color_AI_flow_path,Ge=>Ge.theme.color_background_AI_mind,Ge=>Ge.theme.color_AI_mind_path,Ge=>Ge.theme.color_background_AI_table,Ge=>Ge.theme.color_AI_table_path,Ge=>Ge.theme.color_background_AI_chart,Ge=>Ge.theme.color_AI_chart_path,Ge=>Ge.theme.color_background_AI_magin_fill,Ge=>Ge.theme.color_AI_magic_fill_path,Ge=>Ge.theme.color_text_L1,Ge=>Ge.theme.color_text_L1,Ge=>Ge.theme.color_text_L2,Ge=>Ge.theme.color_text_link_normal,Ge=>Ge.theme.color_text_link_hover);class Ps extends o.PureComponent{constructor(){super(...arguments),(0,C.A)(this,"handleSelectAIComponent",()=>{const{onSelect:jt,item:Dt}=this.props;Dt.source="\u5DE6\u4FA7AI\u5165\u53E3",jt(Dt)}),(0,C.A)(this,"handleJumpToHelp",jt=>{jt.stopPropagation();const{item:{helpUrl:Dt}}=this.props;Dt&&window.open(Dt)})}render(){const{item:{icon:jt,title:Dt,desc:Zt,className:fo,componentTitle:Eo,isShowBeta:Bo,helpUrl:xn}}=this.props;return(0,a.jsx)(rn,{className:"item-content-container",onClick:this.handleSelectAIComponent,children:(0,a.jsxs)("div",{className:"item-content",children:[(0,a.jsx)("div",{className:u()("item-left",fo),children:(0,a.jsx)(Xo.C,{name:jt,isColorPure:!0})}),(0,a.jsxs)("div",{className:"item-right",children:[(0,a.jsxs)("div",{className:"item-title",children:[(0,a.jsxs)("div",{className:"title-container",children:[Eo||Dt,Bo&&(0,a.jsx)(Xo.C,{className:"icon-beta",name:"chatGPT/ai-beta",isColorPure:!0})]}),(0,a.jsx)(Xo.C,{className:"item-arrow",name:"chatGPT/ai-component-item-arror"})]}),(0,a.jsxs)("div",{className:"item-des",children:[Zt,xn&&(0,a.jsx)("a",{className:"help-des",onClick:this.handleJumpToHelp,target:"__brank",children:I18N.ChatGPT.view_help})]})]})]})})}}const Os=(0,m.Ng)()(Ps);var ss=e(27374);const Fs=Ge=>{let{aiOpenTrackSource:jt,aiFunctionTrackSource:Dt}=Ge;const Zt=(0,m.wA)(),fo={title:"AI\u751F\u6210\u7EC4\u4EF6",type:ss.SR.Component,points:200,aiType:"AI\u751F\u6210\u7EC4\u4EF6",source:"",icon:"chatGPT/ai-component-component",desc:I18N.ChatGPT.ai_component_desc,className:"ai-component",isShowBeta:!0,helpUrl:"https://modao.cc/hc/articles/410"},Eo=()=>{es.ZF.setCache(Dt),(0,es.U2)({source:jt}),Zt({type:"entry:aiComponent:open:mode"})};return(0,a.jsx)(Os,{item:fo,onSelect:Eo})},Ei=Ge=>{let{theme:jt}=Ge;return(0,a.jsxs)(vi,{className:jt,children:[(0,a.jsx)(Fs,{aiOpenTrackSource:"\u7EC4\u4EF6\u9762\u677F\u751F\u6210AI\u7EC4\u4EF6",aiFunctionTrackSource:"\u7EC4\u4EF6AI"}),(0,a.jsx)(Xe,{className:"demo-list"})]})},vi=z.Ay.div.withConfig({displayName:"AIComponentPanel__StyledAIComponentPanel",componentId:"sc-11rxfbl-0"})(["height:100%;display:flex;flex-direction:column;flex:1;overflow:hidden;.item-content-container{margin:12px;width:auto;.item-content{.item-right{.item-des{.help-des{position:relative;color:",";margin-left:1px;}}}}}.demo-list{flex:1;overflow:hidden;}&.dark{.item-content-container{.item-content{.item-right{.item-title{.title-container{.icon-beta{defs{linearGradient{stop{&:nth-child(1){stop-color:#BA52FA;}&:nth-child(2){stop-color:#7EBCFF;}}}}}}}}}}}"],Ge=>Ge.theme.color_text_link_normal);class li extends o.PureComponent{constructor(){super(...arguments),(0,C.A)(this,"tabList",[{label:I18N.Resources.findTab,source:dt.V.Find},{label:I18N.LeftSidePanel.user_resources,source:dt.V.User},{label:I18N.LeftSidePanel.org_resources,source:dt.V.Org},{label:I18N.LeftSidePanel.ai_component,source:dt.V.AIComponent}]),(0,C.A)(this,"handleGetTabList",()=>{const{currentOrg:jt,isEditingUserCombo:Dt,isEditingOrgCombo:Zt}=this.props,fo=jt?this.tabList:this.tabList.filter((Eo,Bo)=>Bo!==2);return Dt?fo.filter(Eo=>Eo.source!==dt.V.User&&Eo.source!==dt.V.AIComponent):Zt?fo.filter(Eo=>Eo.source!==dt.V.Org&&Eo.source!==dt.V.AIComponent):ENV.IS_ON_PREMISES?fo.filter(Eo=>Eo.source!==dt.V.AIComponent):fo}),(0,C.A)(this,"handleTabChange",jt=>{const{currentOrg:Dt,dispatch:Zt}=this.props;(Dt?[1,2]:[1]).includes(jt)&&MB.global.experienceLoginModalHelper("isSave")||Zt({type:"widget-panel:update:state",payload:{navIndex:jt}})})}componentDidMount(){setTimeout(()=>this.props.dispatch({type:"entry:init:design:configurations"}))}render(){const{navIndex:jt,currentOrg:Dt,isEditingUserCombo:Zt,isEditingOrgCombo:fo,sceneTag:Eo,scrollTop:Bo,sceToPLabelMap:xn,showComboStar:Qo,selectedSceTag:Yn,selectedPLabel:$n,layoutV9:ls,theme:Ns,dispatch:Cs}=this.props,Us=jt,Qs=Us===0,Bs=Zt?!1:Us===1,Ws=Dt&&(Zt?Us===1:fo?!1:Us===2),ci=Dt?Us===3:Us===2,Ai=this.handleGetTabList(),Qi=Ai.length>1;return(0,a.jsxs)(Un,{className:""+Co.c.GUIDE_FIND_MORE_SCENE_COMBO,children:[Qi&&(0,a.jsx)(r.A,{className:"resources-new-slide-nav",activeIndex:Us,onTabChange:this.handleTabChange,layoutV9:ls,children:Ai.map((Oi,Ii)=>{let{label:$a}=Oi;return(0,a.jsx)(r.n,{label:$a},Ii)})}),Qs&&(0,a.jsx)(io,{dispatch:Cs,sce:(0,On.y)(),sceneTag:Eo,scrollTop:Bo,sceToPLabelMap:xn,showComboStar:Qo,selectedSceTag:Yn,selectedPLabel:$n,layoutV9:ls,showSlideNav:Qi}),Bs&&(0,a.jsx)(st,{isOrg:!1,onGotoFind:()=>this.handleTabChange(Dt?3:2)}),Ws&&(0,a.jsx)(st,{isOrg:!0}),ci&&(0,a.jsx)(Ei,{theme:Ns})]})}}const Ci=(0,g.Mz)([k.SG,T.wA,A.r,T.PL,k.eH,k.sS,k.Ho,k.qm,k.Rs,p.MZ,p.O4],(Ge,jt,Dt,Zt,fo,Eo,Bo,xn,Qo,Yn,$n)=>{let{isEditingUserCombo:ls,isEditingOrgCombo:Ns}=Dt,{scene_tag:Cs}=Zt;return{navIndex:Ge,currentOrg:jt,isEditingUserCombo:ls,isEditingOrgCombo:Ns,sceneTag:Cs,scrollTop:fo,sceToPLabelMap:Eo,showComboStar:Bo,selectedSceTag:xn,selectedPLabel:Qo,layoutV9:Yn,theme:$n}}),yi=(0,m.Ng)(Ge=>Ci(Ge))(li);class ea extends o.PureComponent{render(){const{show:jt}=this.props;return jt?(0,a.jsx)(yi,{}):null}}const ii=(0,g.Mz)([l.OW],Ge=>({show:Ge===V.lS.Builtin})),Wi=(0,m.Ng)(Ge=>ii(Ge))(ea);var ua=e(20029);const va=z.Ay.div.withConfig({displayName:"PopupPanelBody",componentId:"sc-m9v6xh-0"})(["flex:1;display:flex;flex-direction:column;overflow:hidden;position:relative;.iconLibrary-active{position:absolute;top:-1px;left:-1px;right:-1px;bottom:-1px;animation:twinkling 0.8s 2 ease-in-out;}@keyframes twinkling{0%{background:unset;box-shadow:unset;}50%{background:rgba(41,141,248,0.3);box-shadow:inset 0 0 0 4px rgba(41,141,248,0.6);}100%{background:unset;box-shadow:unset;}}.panel-content-nav{justify-content:space-around;height:32px;border-bottom:1px solid ",';}& > [type="search"]{margin:10px;}.template-panel-header [type="text"]{border-radius:13px;}& > main,& > [type="main"]{flex:1;overflow-x:hidden;overflow-y:auto;}'],Ge=>Ge.theme.color_bg_canvas);var tr=e(27605);const xa=Ge=>{const jt=sdkStore.dupWithinPage([Ge.key]),Dt=sdkStore.getHotItem(jt[0]),Zt=Ge.hotAttr.name+" Copy";return Dt.hotAttr.name=Zt,sdkStore.updateHotAttrKV(Dt.key,"name",Zt),Dt};var dr=e(10870),gr=e(86310);class ir extends o.PureComponent{constructor(jt){super(jt),(0,C.A)(this,"handleDbClick",(Dt,Zt)=>{if(Dt.button!==0)return;const{editingPanelRefPage:fo}=this.props;if(fo===Zt.key||sdkStore.parseSubtree(sdkStore.saveSubtree(Zt.sub)).contentFlatTree.get("B@ref-muban").sub.includes(fo)){MB.notice({text:I18N.SettingPanel.design.master_cannot_nesting,type:"error"});return}(0,bn.UL)(Zt)}),(0,C.A)(this,"handleMouseDown",(Dt,Zt,fo)=>{const{scale:Eo,canvasRect:Bo,showDragMode:xn,isAdsorbentReferenceLine:Qo,editingPanelRefPage:Yn}=this.props,$n=fo.getBoundingClientRect();if(Yn===Zt.key||sdkStore.parseSubtree(sdkStore.saveSubtree(Zt.sub)).contentFlatTree.get("B@ref-muban").sub.includes(Yn)){MB.notice({text:I18N.SettingPanel.design.master_cannot_nesting,type:"error"});return}const ls=sdkStore.findAllTypeUnder(Zt.key,"rResCanvas");if(!(ls!=null&&ls.length)){MB.notice({text:I18N.SettingPanel.design.master_no_canvas,type:"error"});return}(0,bn.PK)({e:Dt,template:Zt,thumbnailRect:$n,scale:Eo,canvasRect:Bo,showDragMode:xn,isAdsorbentReferenceLine:Qo})}),(0,C.A)(this,"handleRename",(Dt,Zt)=>{const{dispatch:fo,editingPanelRefPage:Eo}=this.props;Dt.name!==Zt&&(Dt.name=Zt,fo({type:"entry:widget:change",payload:{flatChgList:[{key:Dt.cid,hotAttr:{name:Zt}}]}}),MB.notice({text:I18N.Popups.rename_successfully}),fo({type:"muban-panel:update:mubanList",payload:{mubanList:(0,Ss.AG)()}}),Eo===Dt.cid&&fo({type:"artboard:update:state",payload:{basketPathCacheTag:Math.random()}}))}),(0,C.A)(this,"handleEdit",Dt=>{this.props.dispatch({type:"entry:edit:basket:source:muban",payload:{item:{...Dt,key:Dt.cid}}})}),(0,C.A)(this,"handleDup",async Dt=>{const Zt=sdkStore.getHotItem(Dt.cid);(0,Zi._c)({type:"widget",count:(0,Zi.UU)({initKeyList:[Zt.key]})})&&(await xa(Zt),this.props.dispatch({type:"muban-panel:update:mubanList",payload:{mubanList:(0,Ss.AG)()}}),(0,cn.SJ)("\u5DE6\u4FA7\u6BCD\u7248\u526F\u672C",!1,Zt.sub))}),(0,C.A)(this,"handleRemove",Dt=>{const{editingPanelRefPage:Zt,dispatch:fo}=this.props;if(Zt===Dt.cid){MB.notice({text:"\u4E0D\u80FD\u5220\u9664\u6B63\u5728\u7F16\u8F91\u4E2D\u7684\u6BCD\u7248"});return}const Eo=sdkStore.findAllBasketFRBPage(Dt.cid);fo({type:"modal:update:state",payload:{masterDeleteModal:{isOpen:!0,template:Dt,panelCount:Eo.length,onConfirm:()=>{try{if(Eo.length>0){const Bo=(0,Zi.UU)({initKeyList:[sdkStore.getHotItem(Eo[0]).hotAttr.refRBPageKey].filter(Boolean)})*Eo.length;if(!(0,Zi._c)({type:"basket",count:Bo}))return;sdkStore.deleteHotItem(Dt==null?void 0:Dt.cid),this.props.dispatch({type:"muban-panel:update:mubanList",payload:{mubanList:(0,Ss.AG)()}}),fo({type:"entry:basket:transform",payload:{itemsKeyList:Eo,basketType:"bDanli",type:"removeMuban"}})}else sdkStore.deleteHotItem(Dt==null?void 0:Dt.cid),this.props.dispatch({type:"muban-panel:update:mubanList",payload:{mubanList:(0,Ss.AG)()}});fo({type:gr.y.entryKey["font:missFontKeyMap:update"]}),MB.notice({text:I18N.dModals.master_del_success})}catch(Bo){}}}}})}),this.itemActions={onMouseDown:this.handleMouseDown,onRename:this.handleRename,onEdit:this.handleEdit,onDup:this.handleDup,onRemove:this.handleRemove,onImport:this.handleDbClick}}componentDidMount(){this.props.dispatch({type:"muban-panel:update:mubanList",payload:{mubanList:(0,Ss.AG)()}})}componentDidUpdate(jt,Dt,Zt){var fo;(jt==null||(fo=jt.templates)==null?void 0:fo.length)!==(0,Ss.AG)().length&&this.props.dispatch({type:"muban-panel:update:mubanList",payload:{mubanList:(0,Ss.AG)()}})}render(){const{templates:jt,theme:Dt,keyword:Zt,layout:fo}=this.props;if(!jt)return null;const Eo=Zt,Bo=jt.filter(xn=>(xn==null?void 0:xn.name)&&xn.name.toLowerCase().indexOf(Eo)!==-1);return(0,a.jsx)(va,{children:(0,a.jsx)(dr.p7,{show:!0,type:"main",className:u()("template-panel-content",{right:fo==="old_right"}),children:(xn,Qo)=>Bo.length?(0,a.jsx)(D,{items:Bo,containerRect:Qo?xn:null,itemActions:this.itemActions}):(0,a.jsx)(br,{keyword:Eo,theme:Dt})})})}}const Wr=(0,g.Mz)([p.O4,T.Pz,T.X_,p.PI,p.k3,k.GI,k.AG,ua.bt,p.bP],(Ge,jt,Dt,Zt,fo,Eo,Bo,xn,Qo)=>({templates:Bo,theme:Ge,canvasRect:jt,scale:Dt,showDragMode:Zt,isAdsorbentReferenceLine:fo,keyword:Eo,editingPanelRefPage:xn,layout:Qo})),pl=(0,m.Ng)(Ge=>Wr(Ge))(ir),br=Ge=>{let{keyword:jt,theme:Dt}=Ge;if(jt)return(0,a.jsx)(Na,{theme:Dt});const Zt=fo=>ENV.IS_ON_PREMISES?fo==null?void 0:fo.replace(/<a\b[^>]*>(.*?)<\/a>/gi,""):fo;return(0,a.jsxs)(dr.I1,{children:[(0,a.jsx)("div",{className:"title",children:I18N.Popups.noMaster_title_1}),(0,a.jsxs)("div",{className:"content",children:[(0,a.jsx)("p",{dangerouslySetInnerHTML:{__html:Zt(I18N.Popups.noMaster_tips1)}}),(0,a.jsx)("p",{dangerouslySetInnerHTML:{__html:Zt(I18N.Popups.noMaster_tips3)}})]}),(0,a.jsx)("div",{className:"title",children:I18N.Popups.noMaster_title_2}),(0,a.jsx)("div",{className:"content",children:(0,a.jsx)("p",{dangerouslySetInnerHTML:{__html:Zt(I18N.Popups.noMaster_tips2)}})})]})},Na=Ge=>{let{theme:jt}=Ge;return(0,a.jsxs)(tr.k,{children:[(0,a.jsx)("img",{src:jt==="dark"?"/mb-workspace/images/workspace/design/no_icons_dark.png":"/mb-workspace/images/workspace/design/no_icons_light.png"}),(0,a.jsx)("p",{className:"tips",children:I18N.Popups.no_result})]})};class Nr extends o.PureComponent{render(){const{show:jt}=this.props;return jt?(0,a.jsx)(pl,{}):null}}const ma=(0,m.Ng)(Ge=>({show:(0,l.OW)(Ge)===V.lS.Template}))(Nr);var hr=e(21776),Ir=e(32036),Jr=e(25051),ml=e(88223);function zc(Ge,jt,Dt,Zt,fo){fo===void 0&&(fo="group-list-container");const Eo=(0,m.wA)(),[Bo,xn]=(0,o.useState)(void 0);return{dragAndDropState:Bo,getContainerElement:()=>document.getElementById(fo),handleDragAndDrop:(ls,Ns)=>{const Cs="#"+fo+' [data-cid="'+Ns+'"] header div',Us=document.querySelector(Cs),{top:Qs,left:Bs}=Us.getBoundingClientRect(),Ws=ls.clientX-Bs,ci=ls.clientY-Qs,Ai={$element:Us,offsetX:Ws,offsetY:ci,...zl(Ns)};xn(Ai)},handleDropGroup:ls=>{let{cid:Ns,type:Cs,parentCid:Us,isValid:Qs}=ls;const{pathSelectedIds:Bs}=Bo;if(xn(void 0),!Qs)return;const Ws=Bs[0],ci=Ge.filter(Re=>Re.cid!==Ws),Ai=ci.findIndex(Re=>Re.cid===Ns),Qi=Cs==="prevSibling"?Ai:Cs==="firstChild"?0:Cs==="nextSibling"?Ai+1:-1,Oi=Ge.filter(Re=>Re.cid===Ws),Ii=[...ci];Ii.splice(Qi,0,...Oi);const $a=Ii.map((Re,je)=>Re.position!==je?(Dt(Re.cid,{position:je}),{...Re,position:je}):Re);Eo({type:jt,payload:{nextGroups:$a}})}}}const zl=Ge=>{const jt=document.querySelector("#group-list-container"),Dt=document.querySelector("#group-list"),Zt=Array.from(Dt.querySelectorAll(".collapse-panel")),fo=jt.getBoundingClientRect(),Eo=Dt.getBoundingClientRect(),Bo=[],xn={},Qo=[Ge];return Zt.forEach((Yn,$n)=>{const{cid:ls}=Yn.dataset,Ns=Yn.getBoundingClientRect(),Cs=(0,ml.yB)(Yn),Us={top:Ns.top-Eo.top,left:Ns.left-Eo.left,width:Ns.width,height:Ns.height},Qs={top:Cs.top-Eo.top,left:Cs.left-Eo.left,width:Cs.width,height:Cs.height},Bs={top:Ns.top-Eo.top,left:Ns.left-Eo.left,width:Ns.width,height:Ns.height};xn[ls]={rect:Us,contentRect:Qs,treeRect:Bs};const{left:Ws,top:ci,width:Ai,height:Qi}=Us,Oi=Ws+Ai,Ii=ci+Qi/3,$a=ci+Qi/3*2,Re=ci+Qi;if(ls===Ge){Bo.push({cid:ls,type:null,min:{x:Ws,y:ci},max:{x:Oi,y:Re},isValid:!1});return}$n===0&&Bo.push({cid:ls,type:"prevSibling",parentCid:"",min:{x:Ws,y:ci},max:{x:Oi,y:Ii},isValid:!0}),Bo.push({cid:ls,type:"nextSibling",parentCid:"",min:{x:Ws,y:$a},max:{x:Oi,y:Re},isValid:!0})}),{matchDataList:Bo,containerRect:fo,rectQueryMap:xn,pathSelectedIds:Qo}};var Wl=e(20646),$r=e(72696),Bl=e(68158),Jl=e(93433);const $l=z.Ay.ul.withConfig({displayName:"styles__StyledAssetThumbnailList",componentId:"sc-199vaeo-0"})(["padding:0 4px 0px 12px;display:grid;gap:8px;grid-template-columns:repeat(auto-fill,109px);"]);var Rl=e(87675);function Ic(Ge){const jt=(0,m.wA)(),Dt=(0,m.d4)(Qs=>(0,l.ld)(Qs)),Zt=(0,m.d4)(Qs=>(0,l.p)(Qs)),fo=(0,m.d4)(p.MZ),{shouldAuth:Eo,canEditLibrary:Bo,canAddToOrg:xn,currentUserId:Qo,assetList:Yn=[],pictureList:$n=[],assetActions:ls,containerRect:Ns,canListItemGroup:Cs}=Ge,Us=Qs=>{if(!Qs)return null;if(Qs.includes("findPicture_")){if(!(Dt!=null&&Dt.length))return null;for(const Bs of Dt)for(const Ws of Bs.imgs)if("findPicture_"+Ws[0]===Qs)return(0,Bl.Kb)(Bs.tab,Ws)}if(Qs.includes("findSticker_")){if(!(Zt!=null&&Zt.length))return null;for(const Bs of Zt)for(const Ws of(Bs==null?void 0:Bs.list)||[])if("findSticker_"+(Ws==null?void 0:Ws.url)===Qs)return(0,Bl.nA)(Bs==null?void 0:Bs.category,Ws)}return null};return(0,a.jsxs)($l,{children:[Yn.map(Qs=>(0,a.jsx)(Wl.O,{asset:Qs,shouldAuth:Eo,canEditLibrary:Bo,canAddToOrg:xn,assetActions:ls,containerRect:Ns,currentUserId:Qo,canListItemGroup:Cs,dispatch:jt},Qs.cid)),((Dt==null?void 0:Dt.length)||(Zt==null?void 0:Zt.length))&&$n.map(Qs=>{const Bs=Us(Qs);return Bs?(0,a.jsxs)("div",{children:[Qs.includes("findPicture_")&&(0,a.jsx)($r.I,{isHistoryItem:!0,asset:Bs,popupsName:V.lS.History}),Qs.includes("findSticker_")&&(0,a.jsx)(Rl.B,{asset:Bs,popupsName:V.lS.History}),(0,a.jsx)(Jl.f,{children:Bs.img_tag.join(" ")||Bs.name})]},Qs):null})]})}const Sl=(0,z.Ay)(mt).withConfig({displayName:"styles__StyledCollapsePanel",componentId:"sc-13sltcn-0"})(["position:relative;&.collapse-children > header{padding-left:","px;}& > header{position:relative;transition:border-color 0.2s ease-in-out;padding-left:12px;.count{margin-left:auto;margin-right:10px;color:",";opacity:0.7;}.actions{display:none;position:absolute;top:5px;bottom:5px;right:12px;background:",";.action{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;color:",";font-size:12px;border-radius:4px;.svg-icon{width:12px;height:12px;}&:hover{background-color:",";}}}&:hover{color:",";.expanded-icon .main{fill:",";}.title{width:185px;flex:0 1 auto;}.actions{display:block;background:",";color:",";}.count{display:none;}.is-always-show.count{display:block;}}}&::after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;border:2px solid transparent;transition:all 0.15s ease-in-out;}&.active{pointer-events:none;& > header{border-color:transparent;.actions{display:none;}}&::after{background:rgba(41,141,248,0.06);border-color:#298df8;}}.collapse-loading{height:24px;}"],Ge=>12+(Ge.level-1)*8,Ge=>Ge.theme.color_text_L3,Ge=>Ge.theme.color_bg_white,Ge=>Ge.theme.color_text_L1,Ge=>Ge.theme.color_btn_secondary_active,Ge=>Ge.theme.color_proto,Ge=>Ge.theme.color_proto,Ge=>Ge.theme.color_btn_secondary_hover,Ge=>Ge.theme.color_proto),ql=(0,o.memo)(function Ge(jt){const{assetGroup:Dt,assetsMap:Zt,isEditing:fo,editingCid:Eo,canEditLibrary:Bo,canAddToOrg:xn,width:Qo,level:Yn,containerRect:$n,assetActions:ls,assetGroupAction:Ns,shouldAuth:Cs,isShowTransferOrg:Us,keyword:Qs,currentUserId:Bs,assetsOpenCids:Ws,handleDnd:ci}=jt,{cid:Ai,subFolder:Qi}=Dt,Oi=Ws.includes(Ai),[Ii,$a]=(0,o.useState)(!1),Re=no=>{const{onConfirm:$o}=Ns;$o(no,Dt,()=>{Ii&&MB.notice({text:I18N.Popups.folder_save_success}),$a(!1)})},{isShowLoading:je,displayAsset:et,isShowAssetList:St}=(0,o.useMemo)(()=>{const no=Zt.get(Ai),$o=(Zn,fs)=>fs?Zn.filter(ks=>{let{name:Zs}=ks;return Zs.toLowerCase().indexOf(fs.toLowerCase())!==-1}).sort((ks,Zs)=>Zs.timestamp-ks.timestamp):Zn.sort((ks,Zs)=>Zs.timestamp-ks.timestamp);let gn,En,cs;return Cs?(gn=Oi&&!no,En=!gn&&Oi&&no&&$o(no,Qs),cs=!gn&&Oi&&En.length):(gn=!no,En=!gn&&$o(no,Qs),cs=!gn&&En.length),{isShowLoading:gn,displayAsset:En,isShowAssetList:cs}},[Cs,Oi,Zt,Ai,Qs]);(0,o.useEffect)(()=>{const{onLoadData:no}=Ns;if(fo&&$a(!0),!Cs)Ws.includes(Ai)&&no(Ai);else{const{cid:$o}=Dt;Ws.includes($o)&&(Zt.get($o)||no($o))}},[]);const vt=no=>no.map($o=>(0,a.jsx)(Ge,{assetGroup:$o,isEditing:$o.cid===Eo,editingCid:Eo,canEditLibrary:Bo,canAddToOrg:xn,assetsMap:Zt,keyword:Qs,width:Qo,level:Yn+1,containerRect:$n,assetActions:ls,assetGroupAction:Ns,shouldAuth:Cs,isShowTransferOrg:Us,currentUserId:Bs,assetsOpenCids:Ws},$o.cid));return(0,a.jsx)(Sl,{"data-cid":Ai,className:"asset-group-panel",group:Dt,isExpanded:Oi,width:Qo,level:Yn,isEditing:fo,editingCid:Eo,shouldAuth:Cs,canEditLibrary:Bo,currentUserId:Bs,isShowTransferOrg:Us,groupAction:Ns,isAsset:!0,onConfirm:Re,children:(0,a.jsxs)(a.Fragment,{children:[je?(0,a.jsx)(R.A,{className:"collapse-loading"}):null,St?(0,a.jsx)(Ic,{shouldAuth:Cs,canEditLibrary:Bo,canAddToOrg:xn,assetList:et,currentUserId:Bs,containerRect:Oi?$n:null,assetActions:ls}):null,Qi&&vt(Qi)]})})});var uc=e(92351);const mc=(0,o.memo)(function(jt){const{assetList:Dt,assetMap:Zt,editingCid:fo,canEditLibrary:Eo,canAddToOrg:Bo,keyword:xn,currentOrg:Qo,assetActions:Yn,assetGroupAction:$n,theme:ls,dispatchPath:Ns,requestAPI:Cs,isOrg:Us,currentUserId:Qs,assetsOpenCids:Bs}=jt,{dragAndDropState:Ws,getContainerElement:ci,handleDragAndDrop:Ai,handleDropGroup:Qi}=zc(Dt,Ns,Cs,Us),[Oi,Ii]=(0,o.useState)((0,uc.H)(Dt)),$a=(0,m.d4)(p.MZ);return(0,o.useEffect)(()=>{const Re=(0,uc.H)(Dt);Ii(Re)},[Dt]),(0,a.jsx)(pt.Z,{id:"group-list-container",children:(0,a.jsx)("div",{className:"group-main",children:(0,a.jsx)(pt.g,{id:"group-list",className:u()("asset-content"),children:Re=>Oi.length>0?Oi.map(je=>(0,a.jsx)(ql,{assetGroup:je,assetsMap:Zt,canEditLibrary:Eo,canAddToOrg:Bo,assetsOpenCids:Bs,width:qt.qv,level:je.level,isEditing:fo===je.cid,editingCid:fo,containerRect:Re,assetActions:Yn,assetGroupAction:$n,keyword:xn,isShowTransferOrg:!!Qo,currentUserId:Qs,shouldAuth:Us},je.cid)):xn?(0,a.jsx)(Gc,{theme:ls}):(0,a.jsx)(ld,{isOrg:Us})})})})}),ld=Ge=>{const{isOrg:jt}=Ge;return(0,o.useMemo)(()=>{const Dt=jt?I18N.Resources.assetPanel.chooseImg:I18N.Resources.assetPanel.chooseMyImg;let Zt='<span class="title">'+I18N.Resources.assetPanel.uploadImg+"</span>"+Dt;return ENV.IS_WONDER_SHARE||(Zt+="<a href='/hc/articles/27' target=\"_blank\">"+I18N.Resources.assetPanel.learnMore+"</a>"),(0,a.jsx)(Je,{children:(0,a.jsx)("p",{dangerouslySetInnerHTML:{__html:Zt}})})},[jt])},Gc=()=>(0,a.jsx)(tr.k,{children:(0,a.jsx)("p",{className:"tips",children:I18N.Popups.content_not_found})}),ar=(0,g.Mz)([k.M5,T.Ur,k.$L,k.cb,T.qv],(Ge,jt,Dt,Zt,fo)=>{const{userAssetsMap:Eo,userAssetGroupList:Bo}=Ge;return{userAssetGroupList:Bo.sort((Qo,Yn)=>Qo.position-Yn.position),userAssetsMap:Eo,currentScreen:jt,localUserAssetsOpenCids:Dt,isRequestUserAssetGroup:Zt,canEditLibrary:fo}}),ec=(0,o.memo)(function(jt){const Dt=(0,m.wA)(),{userAssetGroupList:Zt,userAssetsMap:fo,currentScreen:Eo,localUserAssetsOpenCids:Bo,isRequestUserAssetGroup:xn}=(0,m.d4)(Bs=>ar(Bs)),{keyword:Qo,editingCid:Yn,theme:$n,currentOrg:ls,currentUser:Ns,canEditLibrary:Cs}=jt,Us=(0,Ir.B)({...jt,dispatch:Dt,isOrg:!1,popupsName:V.lS.Asset,localUserAssetsOpenCids:Bo}),Qs=(0,Jr.c)({...jt,dispatch:Dt,currentScreen:Eo,popupsName:V.lS.Asset});return(0,o.useEffect)(()=>{xn||(async()=>{await Dt({type:"entry:load:user:asset:group:list"})})()},[]),(0,a.jsx)(mc,{assetList:Zt,assetMap:fo,assetsOpenCids:Bo,editingCid:Yn,canEditLibrary:!0,canAddToOrg:Cs,keyword:Qo,currentOrg:ls,assetActions:Qs,assetGroupAction:Us,theme:$n,currentUserId:Ns==null?void 0:Ns.id,dispatchPath:"image-panel:set:user-assets-groups",requestAPI:nt.Qs,isOrg:!1})}),gd=(0,g.Mz)([k.vl,T.Ur,k.i,k.Hl],(Ge,jt,Dt,Zt)=>{const{orgAssetsMap:fo,orgAssetGroupList:Eo}=Ge;return{orgAssetGroupList:Eo.sort((xn,Qo)=>xn.position-Qo.position),orgAssetsMap:fo,currentScreen:jt,localOrgAssetsOpenCids:Dt,isRequestOrgAssetGroup:Zt}}),Yc=(0,o.memo)(function(jt){const Dt=(0,m.wA)(),{orgAssetGroupList:Zt,orgAssetsMap:fo,currentScreen:Eo,localOrgAssetsOpenCids:Bo,isRequestOrgAssetGroup:xn}=(0,m.d4)(Bs=>gd(Bs)),{keyword:Qo,editingCid:Yn,theme:$n,currentOrg:ls,currentUser:Ns,canEditLibrary:Cs}=jt,Us=(0,Ir.B)({...jt,dispatch:Dt,isOrg:!0,popupsName:V.lS.Asset,localOrgAssetsOpenCids:Bo}),Qs=(0,Jr.c)({...jt,dispatch:Dt,isOrg:!0,currentScreen:Eo,popupsName:V.lS.Asset});return(0,o.useEffect)(()=>{xn||(async()=>{Dt({type:"entry:load:org:asset:group:list"})})()},[Dt,xn]),(0,a.jsx)(mc,{assetList:Zt,assetMap:fo,assetsOpenCids:Bo,editingCid:Yn,canEditLibrary:Cs,keyword:Qo,currentOrg:ls,assetActions:Qs,assetGroupAction:Us,theme:$n,currentUserId:Ns==null?void 0:Ns.id,dispatchPath:"image-panel:set:org-assets-groups",requestAPI:(0,nt.XG)(ls.cid),isOrg:!0})}),_c=z.Ay.div.withConfig({displayName:"styles__StyledFindAssetsPanel",componentId:"sc-1oeyzvg-0"})(["width:100%;display:flex;flex-direction:column;.switch-tab{position:relative;display:flex;align-items:center;width:100%;padding:4px 12px;.label{height:26px;display:flex;align-items:center;cursor:pointer;color:",";font-size:12px;font-style:normal;font-weight:400;line-height:26px;&.picture{margin-right:6px;}&.active{color:",";font-weight:500;}svg{width:16px;height:16px;margin-left:4px;}}}.switch-tab{.label{padding:0px 14px;border-radius:4px;background:",";&.active{color:",";background-color:",";svg path{fill:#fff;}}&:not(.active):hover{background:",";}}}"],Ge=>Ge.theme.color_text_L1,Ge=>Ge.theme.color_text_btn,Ge=>Ge.theme.color_navigation_hover,Ge=>Ge.theme.color_text_link_normal,Ge=>Ge.theme.color_bg_tab,Ge=>Ge.theme.color_navigation_active),Zc=z.Ay.div.withConfig({displayName:"styles__StyledFindPictures",componentId:"sc-1oeyzvg-1"})(["display:flex;flex-direction:column;width:100%;padding-bottom:10px;row-gap:8px;.picture-panel{position:relative;width:250px;&.resources-list.expanded .card-header{margin-bottom:8px;width:calc(100% - 16px);padding-left:12px;}.collapse-box{padding:0 12px;position:relative;&:hover{.scroll-bar{opacity:1;}}.picture-item-container{display:flex;column-gap:8px;overflow:auto hidden;scrollbar-width:none;-ms-overflow-style:none;&::-webkit-scrollbar{display:none;}.pic-item{flex:0 0 auto;}}.scroll-bar{transition:opacity 0.15s ease-in-out;opacity:0;display:flex;align-items:center;justify-content:center;width:20px;height:28px;position:absolute;top:calc((100% - 28px) / 2);border-radius:6px;backdrop-filter:blur(10px);background-color:#00000014;&:hover{background-color:#00000026;}&.dark{background-color:#FFFFFF14;&:hover{background-color:#FFFFFF26;}}&.left{left:6px;}&.right{right:6px;}.scroll-arrow{width:8px;height:12px;color:",";&.left{transform:rotate(180deg);}}}}}padding-top:8px;"],Ge=>Ge.theme.color_text_L1),i0=z.Ay.div.withConfig({displayName:"styles__StyledPicturesDetail",componentId:"sc-1oeyzvg-2"})(["display:flex;flex-direction:column;height:100%;header{padding:0px 14px 12px 6px;}.picture-list{padding:0 12px;height:100%;transform:translateX(0px);}"]),Mc=z.Ay.div.withConfig({displayName:"styles__StyledFindStickers",componentId:"sc-1oeyzvg-3"})(["display:flex;flex-direction:column;width:100%;height:calc(100% - 40px);overflow:hidden auto;padding-bottom:10px;row-gap:8px;padding-top:8px;.sticker-group-item .group-header{padding:0 12px;}.sticker-group-item{display:flex;flex-direction:column;row-gap:8px;.group-header{display:flex;align-items:center;justify-content:space-between;height:32px;padding:0 12px;.left{display:flex;align-items:center;justify-content:center;column-gap:4px;.title{color:",";}.mat-member{width:12px;height:12px;}}.right{display:flex;align-items:center;height:100%;color:",";cursor:pointer;.arrow-right{width:6px;height:10px;margin-left:10px;}}}.content{width:226px;margin-left:12px;display:grid;grid-template-columns:repeat(3,66px);grid-template-rows:repeat(2,56px);gap:8px 6px;padding:7px;border:1px solid ",";border-radius:6px;}}"],Ge=>Ge.theme.color_text_L1,Ge=>Ge.theme.color_text_L3,Ge=>Ge.theme.color_btn_secondary_hover),Id=z.Ay.div.withConfig({displayName:"styles__StyledStickersDetail",componentId:"sc-1oeyzvg-4"})(["display:flex;flex-direction:column;height:100%;header{padding:0px 14px 12px 6px;}.sticker-item-list{padding:0 12px;}"]);var Tc=e(27806);const jd=Ge=>{const{metadata:jt=[],nameIndex:Dt,dispatch:Zt}=Ge,fo=(0,o.useMemo)(()=>jt.map(Bo=>{let{imgs:xn,tab:Qo,name:Yn}=Bo;const $n=xn.map(Qs=>(0,Bl.Kb)(Qo,Qs)),[ls,Ns]=(0,Bl.SU)($n),Cs=(0,Bl.kN)(ls,Ns),Us=(0,Bl.Pb)(Cs);return{imgs:Cs,tabHeight:Us,tab:Qo,name:Yn[Dt]}}),[jt,Dt]);(0,o.useEffect)(()=>()=>{Vn.A.emit(Gt.P2,{shownMtItemCids:[]})},[]),(0,o.useEffect)(()=>{if(fo&&fo.length>0){const Bo=(0,Tn._Z)(fo);Vn.A.emit(Gt.jy,{observeMtItemObj:Bo}),Vn.A.emit(Gt.BD)}},[fo]);const Eo=Bo=>{Zt({type:"image-panel:update:state",payload:{findActiveWord:Bo}}),(0,Tc.gQ)({widget_file_name:Bo,source:Tc.Dn.PIC_FIND})};return(0,a.jsx)(Zc,{children:fo.map(Bo=>{let{imgs:xn,tab:Qo,name:Yn,tabHeight:$n}=Bo;return(0,a.jsx)(Ao.A,{className:u()("picture-panel",Qo),title:Yn,canCollapse:!1,onClickResources:()=>Eo(Yn),children:(0,a.jsx)(mp,{imgs:xn,tabHeight:$n})},Qo)})})},mp=Ge=>{const{imgs:jt,tabHeight:Dt}=Ge,[Zt,fo]=(0,o.useState)(),Eo=(0,o.useRef)(null);(0,o.useEffect)(()=>{if(!Eo||!Eo.current)return;const Qo=Eo.current;fo(Qo.getBoundingClientRect())},[]);const Bo=Io()(Qo=>{const{target:Yn}=Qo,$n=Yn.getBoundingClientRect();fo($n)},200),xn=Qo=>{if(!Eo||!Eo.current)return 0;const Yn=Eo.current;if(!Yn)return 0;const{left:$n,right:ls}=Yn.getBoundingClientRect(),Ns=Array.from(Yn.children).filter(Qs=>Qs.className.includes("pic-item"));if(Ns.length<1)return 0;const Cs=Ns.map(Qs=>Qs.getBoundingClientRect()),Us=Yn.scrollLeft;if(Qo==="right"){const{left:Qs}=Cs.find(Ws=>{let{right:ci}=Ws;return ci>ls})||{},Bs=Qs?Qs-$n:0;return Us+Bs}if(Qo==="left"){const{right:Qs}=Cs.reverse().find(Ws=>{let{left:ci}=Ws;return ci<$n})||{},Bs=Qs?Qs-ls:0;return Us+Bs}return Us};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("ul",{className:"picture-item-container",ref:Eo,style:{height:Dt},onScroll:Bo,children:jt.map(Qo=>(Qo.tabHeight=Dt,(0,a.jsx)($r.I,{lazyLoad:!0,containerRect:Zt,scrollDirection:"x",preloadDistance:200,asset:Qo,popupsName:V.lS.Asset},Qo.asset_cid)))}),(0,a.jsx)(ti,{scrollContainerEl:Eo.current,getNextScrollLeft:xn})]})};var H0=e(76253);const K0=Ge=>{const{nameIndex:jt,metadata:Dt,activeWord:Zt,dispatch:fo}=Ge,Eo=(0,o.useMemo)(()=>{if(!Zt)return[];const xn=Dt.find(Qo=>Qo.name[jt]===Zt);return!xn||!(xn!=null&&xn.imgs)?[]:xn.imgs.map(Qo=>({tab:xn.tab,...(0,Bl.Kb)(xn.tab,Qo)}))},[Dt,Zt,jt]),Bo=(0,o.useCallback)(()=>fo({type:"image-panel:update:state",payload:{findActiveWord:""}}),[fo]);return(0,o.useEffect)(()=>()=>{Bo(),Vn.A.emit(Gt.P2,{shownMtItemCids:[]})},[]),(0,o.useEffect)(()=>{if(Eo&&Eo.length>0){const xn=(0,Tn.pq)(Eo,Zt);Vn.A.emit(Gt.jy,{observeMtItemObj:xn}),Vn.A.emit(Gt.BD)}},[Zt,Eo]),!Eo||Eo.length<1?null:(0,a.jsxs)(i0,{children:[(0,a.jsx)(Fo.l,{resources:{title:Zt},showSearch:!1,showStar:!1,onBack:Bo}),(0,a.jsx)(H0.D,{pictureList:Eo,popupsName:V.lS.Asset})]})},S0=Ge=>{const{activeWord:jt,renderLoading:Dt}=Ge,[Zt,fo]=(0,o.useState)(!1),Eo=(0,N.k)()?0:1,Bo=(0,m.d4)(l.ld),xn=(0,m.d4)(l.oE),Qo=(0,m.wA)();return(0,o.useEffect)(()=>{xn||(fo(!0),Ch().then(Yn=>fo(!1)).catch(Yn=>{console.error("download meta.json failed",Yn),fo(!1)}))},[xn]),Zt?Dt():!Bo||Bo.length<1?null:jt?(0,a.jsx)(K0,{nameIndex:Eo,metadata:Bo,activeWord:jt,dispatch:Qo}):(0,a.jsx)(jd,{metadata:Bo,nameIndex:Eo,dispatch:Qo})},Ch=async()=>{const Ge=ENV.IS_WONDER_SHARE?"/res-img/meta-en.json":"/res-img/meta.json",jt=await(0,Xs.DE)(Ge);MB.action("image-panel:set:metadata",Array.isArray(jt)?jt:[])};var a0=e(73402);const gp=Ge=>{const{activeWord:jt,list:Dt,dispatch:Zt}=Ge,fo=(0,o.useCallback)(()=>{Zt({type:"image-panel:update:state",payload:{findActiveWord:""}})},[Zt]);return(0,o.useEffect)(()=>()=>{fo()},[]),(0,a.jsxs)(Id,{children:[(0,a.jsx)(Fo.l,{resources:{title:jt},showSearch:!1,showStar:!1,onBack:fo}),(0,a.jsx)(a0.u,{stickerList:Dt,popupsName:V.lS.Asset})]})},Qd=Ge=>{var jt;const{activeWord:Dt,renderLoading:Zt}=Ge,[fo,Eo]=(0,o.useState)(!1),[Bo,xn]=(0,o.useState)(1),Qo=(0,o.useRef)(null),Yn=(0,m.wA)(),$n=(0,m.d4)(l.p);(0,o.useEffect)(()=>{(!$n||$n.length<1)&&(Eo(!0),Md().then(Us=>Eo(!1)).catch(Us=>{console.error("download meta.json failed",Us),Eo(!1)}))},[]);const ls=(0,o.useMemo)(()=>$n.slice(0,Bo*8).map(Us=>({...Us,list:Us.list.map(Qs=>(0,Bl.nA)(Us.category,Qs))})),[Bo,$n]),Ns=Us=>{Yn({type:"image-panel:update:state",payload:{findActiveWord:Us}}),(0,Tc.gQ)({widget_file_name:Us,source:Tc.Dn.STICKER_FIND})},Cs=Io()(Us=>{const Qs=Us.target,Bs=Qs.scrollTop,Ws=Qs.scrollHeight,ci=Qs.getBoundingClientRect().height;if(Bs+ci+24>Ws){if(Bo*8>ls.length)return;xn(Ai=>Ai+1)}},200);return fo?Zt():!ls||ls.length<1?null:Dt?(0,a.jsx)(gp,{list:(jt=ls.find(Us=>Us.category===Dt))==null?void 0:jt.list,activeWord:Dt,dispatch:Yn}):(0,a.jsx)(Mc,{ref:Qo,onScroll:Cs,children:ls.map((Us,Qs)=>(0,a.jsxs)("div",{className:"sticker-group-item",children:[(0,a.jsxs)("div",{className:"group-header",children:[(0,a.jsxs)("div",{className:"left",children:[(0,a.jsx)("p",{className:"title",children:Us.category}),(0,a.jsx)(h.A,{content:I18N.Resources.resourcesFooter.free_for_member,direction:"down",distance:8,enterHoverTime:100,children:(0,a.jsx)(b.C,{name:"left_panel/icon_list/mat_member",className:"mat-member",isColorPure:!0})})]}),(0,a.jsxs)("div",{className:"right",onClick:()=>Ns(Us.category),children:[(0,a.jsx)("p",{children:I18N.Popups.iconCat.All}),(0,a.jsx)(b.C,{className:"arrow-right",name:"design/arrow/right"})]})]}),(0,a.jsx)("ul",{className:"content",children:Us.list.slice(0,6).map((Bs,Ws)=>(0,a.jsx)(Rl.B,{asset:Bs,popupsName:V.lS.Asset,from:"findPanel"},Ws))})]},Qs))})},Md=async()=>{const Ge=await(0,Xs.DE)("/api/community/v1/recommend_sticker");MB.action("image-panel:update:state",{stickerData:Array.isArray(Ge)?Ge:[]})},Up=()=>{const Ge=(0,m.wA)(),jt=(0,m.d4)(k._V),Dt=(0,m.d4)(k.Z1),Zt=Eo=>{const Bo=Eo.currentTarget.dataset.index;Ge({type:"image-panel:update:state",payload:{assetNavIndex:Number(Bo)}}),(0,Tc.Ac)({source:jt===0?"\u56FE\u7247":"\u8D34\u7EB8"})},fo=()=>(0,a.jsx)(Rt.qt,{children:(0,a.jsx)("div",{className:"loading-container",children:(0,a.jsx)(Kt.ft,{className:"loading"})})});return(0,a.jsxs)(_c,{children:[!Dt&&(0,a.jsxs)("div",{className:"switch-tab",children:[(0,a.jsx)("div",{className:u()("label picture",jt===0&&"active"),"data-index":"0",onClick:Zt,children:I18N.LeftSidePanel.image}),(0,a.jsx)("div",{className:u()("label sticker",jt===1&&"active"),"data-index":"1",onClick:Zt,children:I18N.LeftSidePanel.image_sticker})]}),jt===0&&(0,a.jsx)(S0,{activeWord:Dt,renderLoading:fo}),jt===1&&(0,a.jsx)(Qd,{activeWord:Dt,renderLoading:fo})]})},_r=(0,g.Mz)([k.tl,p.O4,T.wA,T.qv,k.tY,T.X_,T.Pz,T.PL,T.HW,p.PI,p.k3,k.Z_,k.EV],(Ge,jt,Dt,Zt,fo,Eo,Bo,xn,Qo,Yn,$n,ls,Ns)=>({canEditLibrary:Zt,editingCid:Ge,theme:jt,collapsePanelSet:fo,scale:Eo,canvasRect:Bo,rootProject:xn,currentUser:Qo,currentOrg:Dt,showDragMode:Yn,isAdsorbentReferenceLine:$n,assetUploadState:ls,assetUpload:Ns}));function r0(Ge){const jt=(0,m.d4)(fo=>_r(fo)),{isOrgProject:Dt,activeIndex:Zt}=Ge;return(0,a.jsxs)(a.Fragment,{children:[Zt===0&&(0,a.jsx)(Up,{}),Zt===1&&(0,a.jsx)(ec,{...jt}),Dt&&Zt===2&&(0,a.jsx)(Yc,{...jt})]})}const Hh=z.Ay.div.withConfig({displayName:"styles__StyledImagePanel",componentId:"sc-1herk0a-0"})(["height:100%;display:flex;flex:1;flex-direction:column;overflow:hidden;> header{height:32px;margin:0 0 8px 0;display:flex;align-items:center;padding:4px 10px 0 12px;}"]),wh=(0,z.Ay)(Pt.A).withConfig({displayName:"styles__StyledImageContent",componentId:"sc-1herk0a-1"})(["display:flex;flex:1;justify-content:center;overflow:hidden auto;transition:box-shadow 0.2s ease-in-out;"]),ul=z.Ay.div.withConfig({displayName:"styles__StyledProgressBar",componentId:"sc-y7ckqj-0"})(["position:absolute;width:100%;display:flex;align-items:center;.rail{position:absolute;top:13px;left:0;width:100%;height:3px;&::before{content:'';position:absolute;height:100%;left:0;right:0;background:#b0d4fa;border-radius:3px;}}.fill{position:absolute;left:0;width:0;height:100%;background:",";border-radius:3px;transition:width 0.5s ease-in-out;}"],Ge=>Ge.theme.color_proto),ui=z.Ay.div.withConfig({displayName:"styles__StyledAssetUploadState",componentId:"sc-y7ckqj-1"})(["position:relative;width:100%;height:32px;display:flex;justify-content:center;align-items:center;p{color:#5b6b73;}","{visibility:hidden;}&.prepare{background:#faf0cb;}&.loading{background:#d3e6fb;","{visibility:visible;}}&.success{background:#ddf2e4;}&.failed{background:#fcdcdc;padding:0 22px;justify-content:flex-start;.image-failed{color:#5b6b73;text-decoration:underline;cursor:pointer;position:relative;padding-left:8px;&:hover{& + .image-zk{display:flex;}}}.times-icon{margin-left:auto;cursor:pointer;color:#5b6b73;}}"],ul,ul),Sh=z.Ay.div.withConfig({displayName:"styles__StyledImageFailedTips",componentId:"sc-y7ckqj-2"})(["display:none;position:absolute;flex-direction:column;bottom:40px;left:5px;min-width:210px;height:107px;padding:16px;background:#fff;border-radius:2px;box-shadow:0 2px 8px 0 rgba(0,0,0,0.15);.tips-mian{font-size:14px;font-weight:600;color:#415058;line-height:20px;margin-bottom:12px;}.tips-item{line-height:20px;margin-bottom:4px;}.asset-failure-list{overflow:hidden;}"]),zp=(0,o.memo)(function(jt){const{assetUploadState:Dt,assetUpload:Zt,onCloseUpload:fo}=jt;if(Dt==="close")return null;const Eo=Dt==="start"&&Zt.index===0,Bo=Dt==="start"&&Zt.index>0,xn=Dt==="end"&&Zt.assetUploaderFailure.length===0,Qo=Dt==="failure"&&Zt.assetUploaderFailure.length!==0,Yn=u()({prepare:Eo,loading:Bo,success:xn,failed:Qo}),$n=Eo?I18N.LibraryContainer.image_uploading_wait:Bo?I18N.LibraryContainer.image_uploading+" "+Zt.index+" / "+Zt.indexMax:xn?I18N.LibraryContainer.image_uploaded_ok:I18N.LibraryContainer.image_faild_tips,ls=Eo?0:Zt.index/Zt.indexMax||0;return(0,a.jsxs)(ui,{className:Yn,children:[(0,a.jsx)("p",{children:$n}),Qo&&(0,a.jsx)(ur,{assetFailureList:Zt.assetUploaderFailure,onClose:fo}),(0,a.jsx)(A0,{value:ls})]})}),A0=Ge=>{let{value:jt}=Ge;return(0,a.jsx)(ul,{className:"slider",children:(0,a.jsx)("div",{className:"rail",children:(0,a.jsx)("div",{className:"fill",style:{width:jt*100+"%"}})})})},ur=Ge=>{let{assetFailureList:jt,onClose:Dt}=Ge;return(0,a.jsxs)(o.Fragment,{children:[(0,a.jsx)("p",{className:"image-failed",children:I18N.LibraryContainer.image_faila_tips1}),(0,a.jsxs)(Sh,{className:"image-zk",children:[(0,a.jsx)("p",{className:"tips-mian",children:I18N.LibraryContainer.image_faild}),(0,a.jsx)("div",{className:"asset-failure-list",children:jt.map(Zt=>{const{name:fo}=Zt;return(0,a.jsx)("p",{className:"tips-item",children:fo},fo)})})]}),(0,a.jsx)(b.C,{className:"times-icon",name:"general/times",onClick:Dt})]})},ic=(0,g.Mz)([k.tY,k.R4,T.PL,k.Z_,k.EV,T.W4,T.qv,p.MZ],(Ge,jt,Dt,Zt,fo,Eo,Bo,xn)=>{const{is_org_project:Qo}=Dt;return{collapsePanelSet:Ge,imagePanelNavIndex:jt,isOrgProject:Qo,assetUploadState:Zt,assetUpload:fo,currentDesignOptions:Eo,canEditLibrary:Bo,layoutV9:xn}});function Wp(){const Ge=(0,m.wA)(),{collapsePanelSet:jt,imagePanelNavIndex:Dt,isOrgProject:Zt,assetUploadState:fo,assetUpload:Eo,canEditLibrary:Bo,currentDesignOptions:{isExperience:xn},layoutV9:Qo}=(0,m.d4)(Qs=>ic(Qs)),[Yn,$n]=(0,o.useState)(!1);(0,o.useEffect)(()=>{$n(Ns===2)},[]);const ls=(0,o.useMemo)(()=>Zt?[{key:0,label:I18N.Resources.findTab},{key:1,label:I18N.LeftSidePanel.user_resources},{key:2,label:I18N.LeftSidePanel.org_resources}]:[{key:0,label:I18N.Resources.findTab},{key:1,label:I18N.LeftSidePanel.user_resources}],[Zt]),Ns=Dt>=0&&Dt<=(ls==null?void 0:ls.length)-1?Dt:0,Cs=Qs=>{Qs===1&&xn&&MB.global.experienceLoginModalHelper("isSave")||(Ge({type:"image-panel:update:state",payload:{navIndex:Qs}}),$n(Qs===2))},Us=Ns===0||xn;return(0,a.jsxs)(Hh,{className:u()("image-panel-container"),children:[(0,a.jsx)(r.A,{activeIndex:Ns,onTabChange:Cs,layoutV9:Qo,children:ls.map(Qs=>{let{key:Bs,label:Ws}=Qs;return(0,a.jsx)(r.n,{label:Ws},Bs)})}),!Us&&(0,a.jsx)("header",{children:(0,a.jsx)($,{isOrg:Yn,isImage:!0,canEditLibrary:Bo,collapsePanelSet:jt,dispatch:Ge})}),(0,a.jsx)(wh,{className:"image-content",children:()=>(0,a.jsx)(r0,{isOrgProject:Zt,activeIndex:Ns})}),(0,a.jsx)(zp,{assetUpload:Eo,assetUploadState:fo,onCloseUpload:()=>{console.log("must been closed")}})]})}class fp extends o.PureComponent{render(){const{show:jt}=this.props;return jt?(0,a.jsx)(Wp,{}):null}}const Yl=(0,g.Mz)([l.OW],Ge=>({show:Ge===V.lS.Asset})),G0=(0,m.Ng)(Ge=>Yl(Ge))(fp),Al=z.Ay.div.withConfig({displayName:"styles__StyledFilterResourcesPanel",componentId:"sc-luijt9-0"})(["display:flex;flex:1 1 0;flex-direction:column;overflow:hidden;> header{padding:8px;.back{display:flex;align-items:center;color:",";cursor:pointer;.arrow-left{margin-right:4px;.svg-icon{width:6px;height:10px;transform:rotate(-180deg);}}span{font-weight:500;}}}.resources-card-list{overflow-x:hidden;overflow-y:overlay;.list{padding:0 8px;display:grid;grid-row-gap:8px;grid-column-gap:8px;grid-template-columns:repeat(auto-fill,109px);.template-box{display:block;position:relative;width:109px;cursor:pointer;&:hover .template-cover .btn-box{display:flex;}.template-cover{position:relative;height:82px;background:",";background-size:48px auto;border-radius:6px;border:1px solid ",";overflow:hidden;.img-box{height:82px;width:109px;.template-cover-image{width:100%;height:100%;object-fit:cover;}}}.payment-only{position:absolute;top:0;right:0;width:28px;height:16px;&.isMockitt{width:46px;}}.template-info{margin-top:4px;display:flex;align-items:center;justify-content:center;.template-title{color:",";font-size:12px;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}}}}"],Ge=>Ge.theme.color_text_L1,Ge=>Ge.cover?"none":"url(/images/square/template_default_cover.svg) no-repeat center #f7f7f7",Ge=>Ge.theme.color_bg_border_01,Ge=>Ge.theme.color_text_L2);class Y0 extends o.PureComponent{render(){const{squareTopic:{title:jt,market_templates:Dt},onBack:Zt,onClickCard:fo,onStarTemplates:Eo}=this.props;return(0,a.jsxs)(Al,{children:[(0,a.jsx)("header",{children:(0,a.jsxs)("div",{className:"back",onClick:Zt,children:[(0,a.jsx)(Hs.A,{name:"design/arrow/right",className:"arrow-left"}),(0,a.jsx)("span",{children:jt})]})}),(0,a.jsx)("div",{className:"resources-card-list",children:(0,a.jsx)("div",{className:"list",children:Dt.map(Bo=>(0,a.jsx)(No.A,{isStared:Bo.is_star,onStarTemplates:xn=>Eo(jt,xn),marketTemplate:Bo,onClickCard:xn=>fo(jt,xn)},Bo.cid))})})]})}}var I0=e(75501);const _l=async(Ge,jt,Dt,Zt)=>{const Eo=Zt||(Qo=>({...Qo,is_star:!Qo.is_star})),Bo=[],xn=Ge.map(Qo=>{const Yn=Qo.market_templates.map($n=>$n.cid===jt?(Dt&&!Zt&&Bo.push($n),Eo($n)):$n);return{...Qo,market_templates:Yn}});if(Bo!=null&&Bo.length){const Qo=new Set;for(const Yn of Bo){const{cid:$n,is_star:ls}=Yn;Qo.has($n)||await(0,Ss.lU)(ls,$n),Qo.add($n)}}return xn},gl=Ge=>{const jt=[];return Ge&&Object.entries(Ge).forEach(Dt=>{let[Zt,fo]=Dt;if((fo==null?void 0:fo.length)>0){const Eo=fo.filter(Bo=>(Bo==null?void 0:Bo.version)!=="v1");(Eo==null?void 0:Eo.length)>0&&jt.push({title:Zt,market_templates:Eo})}}),jt};var Vl=e(15336);class fd extends o.PureComponent{constructor(){var jt;super(...arguments),jt=this,(0,C.A)(this,"state",{secondaryTitle:""}),(0,C.A)(this,"handleChangeWord",async Dt=>{const{onChangeWord:Zt}=this.props;await Zt(Dt),await this.handleSearchFindMarketTemplates()}),(0,C.A)(this,"handleSearchFindMarketTemplates",async()=>{const{type:Dt,activeWord:Zt,onUpdateList:fo,topicList:Eo}=this.props;if(Eo||!Zt)return;const Bo=await(0,nt.yY)(Dt,Zt),xn=gl(Bo);await fo(Zt,xn)}),(0,C.A)(this,"handleStarResources",async function(Dt,Zt,fo){Zt===void 0&&(Zt=!0);const{topicList:Eo,activeWord:Bo,onUpdateList:xn}=jt.props,Qo=await _l(Eo,Dt,Zt,fo);await xn(Bo,Qo)}),(0,C.A)(this,"handleStarDetail",async Dt=>{const{currentResources:Zt,squareTopic:fo,onSetCurrentResources:Eo}=this.props;if(!Zt||MB.global.experienceLoginModalHelper("isSave"))return;const{is_star:Bo,cid:xn}=Zt,Yn=Dt?Dt(Zt):(ls=>({...ls,is_star:!ls.is_star}))(Zt);Eo(Yn);const{secondaryTitle:$n}=this.state;await(0,Ss.lU)(Bo,xn),fo?await this.handleStarFilter($n,Zt,!1,Dt):await this.handleStartTemplates($n,Zt,!1,Dt)}),(0,C.A)(this,"handleStarFilter",async function(Dt,Zt,fo,Eo){fo===void 0&&(fo=!0),Eo===void 0&&(Eo=null);const{squareTopic:Bo,onSetCurrentSquareTopic:xn}=jt.props;if(!Bo||MB.global.experienceLoginModalHelper("isSave"))return;const Yn=Eo||(Ns=>({...Ns,is_star:!Ns.is_star})),$n=Bo.market_templates.map(Ns=>Ns.cid===Zt.cid?Yn(Ns):Ns);await xn({...Bo,market_templates:$n});const ls=Zt.is_star;fo&&await(0,Ss.lU)(ls,Zt.cid),await jt.handleStartTemplates(Dt,Zt,!1,Eo)}),(0,C.A)(this,"handleStartTemplates",async function(Dt,Zt,fo,Eo){fo===void 0&&(fo=!0),Eo===void 0&&(Eo=null),!MB.global.experienceLoginModalHelper("isSave")&&await jt.handleStarResources(Zt.cid,fo,Eo)}),(0,C.A)(this,"handleToggleCurrentResources",async function(Dt,Zt){Dt===void 0&&(Dt=""),Zt===void 0&&(Zt=null);const{currentResources:fo}=jt.props,{onSetCurrentResources:Eo}=jt.props;await Eo(Zt),jt.setState({secondaryTitle:Dt}),Zt||jt.handleResourcesDetailsBackScrollToView(fo.cid)}),(0,C.A)(this,"handleToggleSquareTopic",async function(Dt,Zt){Dt===void 0&&(Dt=""),Zt===void 0&&(Zt=null);const{squareTopic:fo,onSetCurrentSquareTopic:Eo,type:Bo,activeWord:xn}=jt.props;await Eo(Zt),Zt||jt.handleTopicListBackScrollToView(fo.title)}),(0,C.A)(this,"handleResourcesDetailsBackScrollToView",Dt=>{const Zt=document.querySelector("#findComponent .topic-list"),fo=document.querySelector("#findComponent .template-box[data-cid="+Dt+"]");if(Zt&&fo){const Eo=fo.closest(".resources-list");(0,Ss.Cs)(Zt,Eo)}}),(0,C.A)(this,"handleTopicListBackScrollToView",Dt=>{const Zt=document.querySelector("#findComponent .topic-list"),fo=document.querySelector("#findComponent .resources-list[data-title="+Dt+"]");Zt&&(0,Ss.Cs)(Zt,fo)}),(0,C.A)(this,"handleTrack",(Dt,Zt,fo,Eo,Bo)=>{const{policy:xn,category:Qo,title:Yn,copyright:$n,platform:ls}=fo,{activeWord:Ns,type:Cs}=this.props,{secondaryTitle:Us}=this.state,Qs=Cs===kn.t_?V.lS.Builtin:V.lS.Page,Bs=Cs===kn.t_?cn.Ii.Find:cn.Ii.PageLibraryCommunity,Ws=Ns+"/"+Us;(0,cn.Mi)({popupsName:Qs,addType:Zt,source:Bs,category:Qo,platform:ls,policy:xn,templateGroupName:Yn,copyright:$n,name:Eo,classify:Ws,rootProject:Bo,esSearchKey:Dt})})}async componentDidMount(){await this.props.dispatch({type:"entry:init:design:configurations"}),await this.handleSearchFindMarketTemplates()}async componentDidUpdate(jt,Dt,Zt){var fo,Eo;((fo=jt.filterWords)==null?void 0:fo.length)!==((Eo=this.props.filterWords)==null?void 0:Eo.length)&&await this.handleSearchFindMarketTemplates()}render(){const{activeWord:jt,topicList:Dt,currentResources:Zt,squareTopic:fo}=this.props;return Zt?(0,a.jsx)(hs.A,{currentResources:Zt,onBack:()=>this.handleToggleCurrentResources(),onStarTemplates:this.handleStarDetail,onPaidTemplates:()=>this.handleStarDetail(Eo=>({...Eo,is_purchased:!0,is_star:!0})),onTrack:this.handleTrack}):fo?(0,a.jsx)(Y0,{squareTopic:fo,onBack:()=>this.handleToggleSquareTopic(),onStarTemplates:this.handleStarFilter,onClickCard:this.handleToggleCurrentResources}):(0,a.jsx)(yd,{...this.props,topicList:Dt,activeWord:jt,onChangeWord:this.handleChangeWord,onStarTemplates:this.handleStartTemplates,onClickCard:this.handleToggleCurrentResources,onClickSquareTopic:this.handleToggleSquareTopic})}}const yd=(0,o.memo)(Ge=>{let{type:jt,filterWords:Dt,activeWord:Zt,onChangeWord:fo,topicList:Eo,onClickCard:Bo,onClickSquareTopic:xn,onStarTemplates:Qo}=Ge;const Yn=()=>{(0,Vl.JW)("/com24/home?source=proto-page-lib&t=20250122","_blank","noreferrer"),H.Y4.communityEnterClick({source:"\u7F16\u8F91\u533A-\u9875\u9762-\u9875\u9762\u5E93"})};return(0,a.jsxs)(ct,{id:"findComponent",children:[(0,a.jsx)("ul",{children:Dt.map($n=>(0,a.jsx)("li",{className:u()({active:Zt===$n}),onClick:()=>fo($n),children:$n},$n))}),Eo?(0,a.jsxs)("div",{className:"topic-list",children:[(0,a.jsx)("div",{className:"list",style:{width:qt.qv},children:Eo.map($n=>(0,a.jsx)(M0,{marketTemplateList:$n.market_templates,squareTopic:$n,activeWord:Zt,onStarTemplates:ls=>Qo($n.title,ls),onClickCard:Bo,onClickSquareTopic:xn},$n.title))}),jt===kn.Gd&&!ENV.IS_ON_PREMISES&&(0,a.jsxs)("span",{className:"gotoSquare",children:[I18N.Resources.more_templates," ",(0,a.jsx)("a",{onClick:Yn,children:I18N.Resources.go_to_community})]})]}):(0,a.jsx)(I0.A,{itemWidth:109,itemHeight:106})]})}),M0=(0,o.memo)(Ge=>{let{squareTopic:jt,onClickCard:Dt,onClickSquareTopic:Zt,marketTemplateList:fo,onStarTemplates:Eo,activeWord:Bo}=Ge;const{title:xn}=jt,Qo=()=>{Zt(xn,jt),(0,Tc.gQ)({widget_file_name:xn,source:Tc.Dn.PAGE_LIB,filter:Bo})},Yn=$n=>{Dt(xn,$n)};return(0,a.jsxs)(Mt,{"data-title":xn,className:"resources-list",children:[(0,a.jsxs)("div",{className:"card-header",children:[(0,a.jsx)("p",{className:"title",children:xn}),(0,a.jsxs)("div",{className:"right",onClick:Qo,children:[(0,a.jsx)("p",{children:I18N.Popups.iconCat.All}),(0,a.jsx)(b.C,{className:"arrow-right",name:"design/arrow/right"})]})]}),(0,a.jsx)("div",{className:"resources-card-list",children:fo.slice(0,2).map($n=>(0,a.jsx)(No.A,{isStared:$n.is_star,marketTemplate:$n,onStarTemplates:Eo,onClickCard:Yn},$n.cid))})]})}),Fr=z.Ay.div.withConfig({displayName:"styles__StyledPagePanel",componentId:"sc-32pgcm-0"})(["display:flex;flex:1 1 0;flex-direction:column;overflow:hidden;.switch-tab{position:relative;display:flex;height:100%;.label{color:",";font-size:12px;font-style:normal;font-weight:400;line-height:12px;&.active{color:",";font-weight:500;}}button{height:100%;display:flex;align-items:center;}.indicator{position:absolute;left:0px;bottom:0px;height:2px;width:35px;background-color:",";transition:left 0.3s ease-in-out;}}.switch-tab{align-items:center;.label{height:26px;line-height:26px;padding:0px 14px;padding:0px 14px;border-radius:4px;background:",";&.active{color:",";background-color:",";svg path{fill:#fff;}}&:not(.active):hover{background:",";}}}"],Ge=>Ge.theme.color_text_L1,Ge=>Ge.theme.color_text_btn,Ge=>Ge.theme.color_text_L1,Ge=>Ge.theme.color_navigation_hover,Ge=>Ge.theme.color_text_link_normal,Ge=>Ge.theme.color_bg_tab,Ge=>Ge.theme.color_navigation_active),Vp=z.Ay.div.withConfig({displayName:"styles__StyledPageFind",componentId:"sc-32pgcm-1"})(["display:flex;flex:1 1 0;flex-direction:column;overflow:hidden;.create-group{display:flex;justify-content:space-between;align-items:center;width:100%;padding:0 12px;margin-top:0;button{display:flex;align-items:center;justify-content:center;width:109px;height:28px;border-radius:4px;background:",";&:hover{background:",";}&:active{background:",";}.title{color:",";font-size:12px;font-style:normal;line-height:12px;}&.model-generate-button{svg{width:10px;margin-right:4px;color:",";}}&.hide-ai{width:100%;}&.ai-entry-icon-button{.Tooltip{display:flex;height:100%;align-items:center;}&.is-page{svg{margin-right:4px;}}svg{width:16px;margin-right:2px;}}}}.platform-group{width:100%;height:32px;padding:0 12px;display:flex;justify-content:space-between;align-items:center;.switch-tab{button{&.mobile{margin-right:6px;}}.indicator{&.mobile{left:0px;}&.web{left:48px;}}}.sub-filter{.filter{margin-right:6px;}}}"],Ge=>Ge.theme.color_bg_card,Ge=>Ge.theme.color_btn_secondary_hover,Ge=>Ge.theme.color_btn_secondary_active,Ge=>Ge.theme.color_text_L1,Ge=>Ge.theme.color_text_L1),Ah=z.Ay.div.withConfig({displayName:"styles__StyledPageFindList",componentId:"sc-32pgcm-2"})(["display:flex;flex:1 1 0;flex-direction:column;overflow:hidden;margin-top:10px;"]),Z0=z.Ay.div.withConfig({displayName:"styles__StyledPageLibrary",componentId:"sc-32pgcm-3"})(["display:flex;flex:1 1 0;flex-direction:column;overflow:hidden;.switch-tab{width:24px;height:32px;padding:0;button{&.community{margin-right:12px;}}.indicator{&.community{left:18px;}&.star{left:66px;}&:lang(en){&.community{left:24px;}&.star{left:91px;}}}}.switch-tab{position:absolute;top:57px;left:214px;}.page-library-back{display:flex;align-items:center;color:",";cursor:pointer;margin:0 0 12px 6px;width:fit-content;.arrow-left{margin-right:4px;flex:0 0 24px;.svg-icon{width:6px;height:10px;transform:rotate(-180deg);}}.title{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}header{padding-top:0;}"],Ge=>Ge.theme.color_text_L1);class Zl extends o.PureComponent{constructor(){super(...arguments),(0,C.A)(this,"handleTabChange",jt=>{const Dt=jt.currentTarget.dataset.index;Dt==="1"&&MB.global.experienceLoginModalHelper("isSave")||this.props.dispatch({type:"page-panel:update:state",payload:{libraryNavIndex:Number(Dt)}})}),(0,C.A)(this,"handleChangeActiveWord",async jt=>{const{dispatch:Dt}=this.props;await Dt({type:"page-panel:update:state",payload:{libraryActiveWord:jt}})}),(0,C.A)(this,"handleUpdateTopicList",async(jt,Dt)=>{const{dispatch:Zt}=this.props;await Zt({type:"page-panel:update:map:state",payload:{key:"libraryTopicListMap",value:new Map([[jt,Dt]])}})}),(0,C.A)(this,"handleChangeCurrentResources",async jt=>{const{dispatch:Dt}=this.props;await Dt({type:"page-panel:update:state",payload:{libraryCurrentResources:jt}})}),(0,C.A)(this,"handleChangeCurrentSquareTopic",async jt=>{const{dispatch:Dt}=this.props;await Dt({type:"page-panel:update:state",payload:{libraryCurrentSquareTopic:jt}})})}render(){const{libraryNavIndex:jt,libraryFilterWords:Dt,libraryActiveWord:Zt,libraryTopicListMap:fo,libraryCurrentResources:Eo,libraryCurrentSquareTopic:Bo,dispatch:xn}=this.props,Qo=jt===0,Yn=Zt||Dt[0];return(0,a.jsxs)(Z0,{children:[Qo&&!Eo&&(0,a.jsx)("div",{className:"switch-tab",children:(0,a.jsx)(h.A,{content:I18N.LeftSidePanel.category.store,direction:"down",children:(0,a.jsx)(Hs.A,{name:"left_panel/category/star","data-index":"1",onClick:this.handleTabChange})})}),!Qo&&(0,a.jsxs)("div",{className:"page-library-back","data-index":"0",onClick:this.handleTabChange,children:[(0,a.jsx)(Hs.A,{name:"design/arrow/right",className:"arrow-left"}),(0,a.jsx)("span",{className:"title",children:I18N.LeftSidePanel.category.store})]}),Qo?(0,a.jsx)(fd,{type:kn.Gd,filterWords:Dt,activeWord:Zt||Dt[0],topicList:fo.get(Yn),currentResources:Eo,squareTopic:Bo,onChangeWord:this.handleChangeActiveWord,onUpdateList:this.handleUpdateTopicList,onSetCurrentResources:this.handleChangeCurrentResources,onSetCurrentSquareTopic:this.handleChangeCurrentSquareTopic,dispatch:xn}):(0,a.jsx)(en,{type:kn.Gd})]})}}const yp=(0,g.Mz)([k.QG,k.wF,k.zK,k.Cd,k.zS,k.SQ,p.MZ],(Ge,jt,Dt,Zt,fo,Eo,Bo)=>({libraryNavIndex:Ge,libraryFilterWords:jt,libraryActiveWord:Dt,libraryTopicListMap:Zt,libraryCurrentResources:fo,libraryCurrentSquareTopic:Eo,layoutV9:Bo})),vp=(0,m.Ng)(Ge=>yp(Ge))(Zl);var Od=e(76364);const Wc=z.Ay.div.withConfig({displayName:"style__StyledPlatformSubFilter",componentId:"sc-15cezsy-0"})(["label{width:100%;display:flex;padding:3px 6px;.display-name{max-width:80px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;text-align:left;color:",";}button{display:flex;align-items:center;.arrow-icon{margin-left:10px;transition:transform 0.2s ease-out 0s;&.is-expand{transform:rotateX(180deg);}}}&:hover{border-radius:6px;outline:1px solid ",";}}.svg-icon{width:8px;height:8px;margin-right:7px;}"],Ge=>Ge.theme.color_text_L1,Ge=>Ge.theme.color_bg_border_02),gc=(0,z.DU)(["#IBOT_DROPDOWN_MENU_ROOT{.DesignDropdownMenuBase{.DesignDropdownMenu{&.platform-sub-filter-menu{width:120px;overflow-y:overlay;border-radius:9px;box-shadow:",";border:1px solid ",";&.is-downward{top:0;right:0;left:initial;bottom:initial;}&.x-center.is-open{transition:unset;transform:unset;}.content{padding:0;background:",";color:",";}ul{list-style:none;font-size:12px;padding:8px;li{border-radius:4px;height:28px;padding:0 16px 0 32px;cursor:pointer;display:flex;align-items:center;justify-content:space-between;position:relative;span{color:",";}.checked{width:16px;height:16px;position:absolute;left:8px;}&:hover{background:",";}}.line{background:",";width:100%;height:1px;margin:4px 0;opacity:0.1;}}}}}}"],Ge=>Ge.theme.shadow_m,Ge=>Ge.theme.color_bg_border_01,Ge=>Ge.theme.color_bg_white,Ge=>Ge.theme.color_text_L1,Ge=>Ge.theme.color_text_L1,Ge=>Ge.theme.color_btn_secondary_hover,Ge=>Ge.theme.color_bg_border_01);function Fd(Ge){var jt;const{selectedValue:Dt,optionList:Zt,onChange:fo}=Ge,[Eo,Bo]=(0,o.useState)(!1),[xn,Qo]=(0,o.useState)(null),Yn=async Ns=>{const Cs=Ns.target.dataset.key;Bo(!1),fo(Cs)};(0,o.useEffect)(()=>{const Ns=document.querySelector(".platform-sub-filter label.filter-opener");if(!Ns)return;const{bottom:Cs,right:Us}=Ns.getBoundingClientRect();Qo({top:Cs+5,right:Us})},[]);const $n=(0,o.useCallback)(Ns=>Bo(Ns),[]),ls=(jt=Zt.find(Ns=>{let{value:Cs}=Ns;return Cs===Dt}))==null?void 0:jt.label;return(0,a.jsxs)(Wc,{className:"platform-sub-filter",children:[(0,a.jsx)(gc,{}),(0,a.jsx)(Od.A,{menuY:"bottom",isOpen:Eo,className:"filter-opener",onToggle:$n,shouldPreventScrollingPropagation:!1,menuBaseStyle:xn,opener:(0,a.jsxs)(o.Fragment,{children:[(0,a.jsx)("span",{className:"display-name",children:ls}),(0,a.jsx)(b.C,{className:u()("arrow-icon",{"is-expand":Eo}),name:"common/expand"})]}),menuClassName:"platform-sub-filter-menu",menu:(0,a.jsx)("ul",{children:Zt.map(Ns=>{let{label:Cs,value:Us}=Ns;const Qs=Dt===Us;return(0,a.jsxs)("li",{className:u()({active:Qs}),"data-key":Us,onClick:Yn,children:[Qs&&(0,a.jsx)(b.C,{name:"common/checked",className:"checked"}),Cs]},Us)})})})]})}const il=(0,o.memo)(Fd);function l0(){const Ge=(0,m.d4)(k.E),jt=(0,m.d4)(k.WG),Dt=(0,m.d4)(k.CL),Zt=(0,o.useMemo)(()=>(Dt.get(Ge)||[{cid:"recommend",name:I18N.Resources.page_panel.recommend,children:[]}]).map(Qo=>{let{name:Yn,cid:$n}=Qo;return{label:Yn,value:$n}}),[Ge,Dt]),fo=(0,m.wA)(),Eo=(0,o.useCallback)(xn=>{xn.stopPropagation();const Qo=xn.currentTarget.dataset.platform;fo({type:"entry:resources:set:pagePanel:find:update:data",payload:{platformType:Qo}})},[fo]),Bo=(0,o.useCallback)(xn=>{fo({type:"entry:resources:set:pagePanel:find:update:data",payload:{platformSubType:xn}})},[fo]);return(0,a.jsxs)("div",{className:"platform-group",children:[(0,a.jsxs)("div",{className:"switch-tab",children:[(0,a.jsx)("button",{className:u()("label mobile",Ge==="mobile"&&"active"),"data-platform":"mobile",onClick:Eo,children:I18N.Resources.page_panel.mobile}),(0,a.jsx)("button",{className:u()("label web",Ge==="web"&&"active"),"data-platform":"web",onClick:Eo,children:I18N.Resources.page_panel.web})]}),(0,a.jsx)(il,{selectedValue:jt,optionList:Zt,onChange:Bo})]})}const Xc=(0,o.memo)(l0);function Td(){const Ge=(0,m.d4)(k.Le),jt=(0,m.d4)(k.E),Dt=(0,m.d4)(k.WG),Zt=(0,m.d4)(k.v3),fo=(0,m.d4)(k.SH),Eo=(0,m.d4)(k.xQ),Bo=(0,m.d4)(T.PL),xn=jt+"-"+Dt,Qo=(0,o.useMemo)(()=>Zt.get(xn),[xn,Zt]),Yn=(0,o.useMemo)(()=>fo.get(Eo),[fo,Eo]),$n=(0,o.useMemo)(()=>jt==="mobile"?{itemWidth:109,itemHeight:109}:{itemWidth:225,itemHeight:150},[jt]),ls=(0,m.wA)();(0,o.useEffect)(()=>{const ci=document.querySelector(".scrollable-marketTemplate-masonry");return ci&&(ci.scrollTop=0),()=>{Vn.A.emit(Gt.P2,{shownMtItemCids:[]})}},[jt]);const Ns=(0,o.useCallback)(async function(ci){if(ci===void 0&&(ci=!1),!Yn||MB.global.experienceLoginModalHelper("isSave"))return;const{is_star:Ai,cid:Qi}=Yn,Oi=ci?{...Yn,is_purchased:!0,is_star:!0}:{...Yn,is_star:!Ai};ls({type:"page-panel:update:map:state",payload:{key:"findMtResourceMap",value:new Map([[Oi.cid,Oi]])}}),(!ci||ci&&!Ai)&&await(0,Ss.lU)(Ai,Qi)},[Yn,ls]),Cs=(0,o.useCallback)(()=>Ns(),[Ns]),Us=(0,o.useCallback)(()=>Ns(!0),[Ns]),Qs=(0,o.useCallback)((ci,Ai,Qi,Oi)=>{try{const{policy:Ii,category:$a,title:Re,copyright:je,platform:et}=Qi;(0,cn.Mi)({popupsName:V.lS.Page,addType:Ai,source:cn.Ii.PageFind,category:$a,platform:et,policy:Ii,templateGroupName:Re,copyright:je,name:Oi,rootProject:Bo,esSearchKey:ci})}catch(Ii){console.log(Ii.message)}},[Bo]),Bs=(0,o.useCallback)(()=>{ls({type:"page-panel:update:state",payload:{findCurrentMtResourceCid:null}})},[ls]),Ws=(0,o.useCallback)(ci=>{ls({type:"page-panel:update:state",payload:{findCurrentMtResourceCid:ci==null?void 0:ci.cid}})},[ls]);return(0,o.useEffect)(()=>{ls({type:"entry:resources:set:pagePanel:find:init:data"})},[ls]),Yn?(0,a.jsx)(hs.A,{currentResources:Yn,onBack:Bs,onStarTemplates:Cs,onPaidTemplates:Us,onTrack:Qs}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Xc,{}),(0,a.jsx)(Ah,{children:Ge?jt?(0,a.jsx)(I0.A,{...$n}):null:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Fn.L,{category:kn.Gd,platform:jt,marketTemplateItemList:Qo,isShowSign:!0,isShowFolderIcon:!0,onTrack:Qs,onPaidTemplates:Us,onOpenFolder:Ws}),(0,a.jsx)(bp,{renderList:Qo})]})})]})}const Hp=(0,o.memo)(Td),bp=Ge=>{let{renderList:jt}=Ge;return(0,o.useEffect)(()=>{if(jt&&jt.length>0){const Dt=(0,Tn.R9)({source:"\u539F\u578B\u5185\u53D1\u73B0-\u9875\u9762",list:jt});Vn.A.emit(Gt.jy,{observeMtItemObj:Dt}),Vn.A.emit(Gt.BD)}},[jt]),null};function X0(){return(0,a.jsx)(Vp,{children:(0,a.jsx)(Hp,{})})}function Kp(){const Ge=(0,m.d4)(k.rx),jt=(0,m.d4)(T.HW),Dt=(0,m.d4)(p.MZ),Zt=(0,m.wA)(),fo=Ge===0,Eo=xn=>{Zt({type:"page-panel:update:state",payload:{navIndex:xn}})};(0,o.useEffect)(()=>{if(jt){if(!(0,Ss.kn)(jt.created_at))return;MB.commonGuideHelper.tryToShowGuide(Co.c.PAGE_PANEL)}return()=>{MB.commonGuideHelper.closeGuide(Co.c.PAGE_PANEL)}},[jt]);const Bo=[{key:"1",label:I18N.Resources.page_panel.find},{key:"2",label:I18N.Resources.page_panel.page_library,disabled:!1}];return(0,a.jsxs)(Fr,{children:[(0,a.jsx)(r.A,{activeIndex:Ge,onTabChange:Eo,layoutV9:Dt,children:Bo.map(xn=>{let{key:Qo,label:Yn,disabled:$n}=xn;return(0,a.jsx)(r.n,{disabled:$n,label:Yn},Qo)})}),fo?(0,a.jsx)(X0,{}):(0,a.jsx)(vp,{})]})}class Gp extends o.PureComponent{render(){const{show:jt}=this.props;return jt?(0,a.jsx)(Kp,{}):null}}const Jd=(0,g.Mz)([l.OW,A.r],(Ge,jt)=>{let{isEditingProjectMain:Dt}=jt;return{show:Ge===V.lS.Page&&Dt}}),c0=(0,m.Ng)(Ge=>Jd(Ge))(Gp);var Ks=e(5783),Hl=e(49798),fr=e(31199),fc=e(54608);const Ec=z.Ay.div.withConfig({displayName:"styles__StyledHistoryPanel",componentId:"sc-4wgm4b-0"})(["height:100%;overflow-y:hidden;flex:1 1 0%;display:flex;flex-direction:column;"]),_i=(0,z.Ay)(Pt.A).withConfig({displayName:"styles__StyledHistoryContent",componentId:"sc-4wgm4b-1"})(["flex:1 1 0;height:100%;transition:box-shadow 0.2s ease-in-out;overflow-x:hidden;overflow-y:overlay;"]),yc=z.Ay.div.withConfig({displayName:"styles__StyledHistoryHeader",componentId:"sc-4wgm4b-2"})(["display:flex;align-items:center;justify-content:space-between;height:50px;min-height:50px;padding:0 12px;border-bottom:1px solid ",";.back{.arrow-left{svg.svg-icon{width:9px;height:15px;transform:rotate(0deg);path{fill:none;stroke:currentColor;}}}.template-title{font-size:16px;font-weight:500;flex:1;text-align:center;}}"],Ge=>Ge.theme.color_btn_secondary_active),T0=(0,z.Ay)(fc.A).withConfig({displayName:"styles__StyledHistoryNewSlideNav",componentId:"sc-4wgm4b-3"})(["height:36px;min-height:36px;background:transparent;.nav-underline{display:none;}.nav-item{flex:1;justify-content:center;font-size:13px;&.active{background:",";}}.nav-item:not(:first-child){margin-left:unset;}.nav-label{flex-shrink:0;}"],Ge=>Ge.theme.color_bg_white),Qc=z.Ay.div.withConfig({displayName:"styles__StyledSearchResultMessage",componentId:"sc-4wgm4b-4"})(["display:flex;align-items:center;height:28px;padding-left:13px;background:",";"],Ge=>Ge.theme.color_bg_canvas),Yp=z.Ay.div.withConfig({displayName:"styles__StyledIconContent",componentId:"sc-4wgm4b-5"})(["flex:1;overflow-y:overlay;overflow-x:hidden;margin:12px 0;.icon-list{display:grid;grid-row-gap:7px;grid-column-gap:8px;padding:0 12px;grid-template-columns:repeat(5,1fr);& > li{border:none;border-radius:6px;transition:all 0.2s ease-out 0s;&:hover{background:",";}}}"],Ge=>Ge.theme.color_btn_secondary_hover);var Sr=e(45465);const Kh=(0,g.Mz)([p.O4,T.PL],(Ge,jt)=>({theme:Ge,rootProject:jt})),Gh=o.memo(function(jt){const{theme:Dt,rootProject:Zt}=(0,m.d4)($n=>Kh($n)),{data:{iconItems:fo},keyword:Eo,multiColorIconObj:Bo}=jt,xn=(0,m.wA)(),Qo=($n,ls,Ns,Cs)=>{const Us=Bs=>{let{itemCid:Ws,groupCid:ci}=Bs;const Ai={projectUpperType:"icon_group",projectUpperCid:ci,itemCid:Ws};(0,ta.Cp)(Ai)},Qs=Bo[ls.groupCid];xn({type:"entry:create:svg_icon_path:by:mousedown",payload:{event:$n,icon:ls,iconName:Ns,iconDisplayName:Cs,isMultiColorIcon:Qs,callback:()=>{Us({itemCid:ls.id,groupCid:ls.groupCid}),Yn({addType:($n==null?void 0:$n.type)==="mousedown"?cn.k8.Drag:cn.k8.DoubleClick,iconName:Ns,iconType:ls.type,isMultiColorIcon:Qs,groupCid:ls.groupCid})}}})},Yn=$n=>{let{addType:ls,iconName:Ns,iconType:Cs,isMultiColorIcon:Us,groupCid:Qs}=$n;const Bs=Sr.jS[Cs]||Cs,Ws=Us?kn.WY:kn.C;(0,cn.Mi)({popupsName:V.lS.History,addType:ls,source:cn.Jj[Ws],category:Ws,templateGroupName:Bs,name:Ns,rootProject:Zt,templateGroupCid:Qs})};return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(Yp,{children:fo.length!==0?(0,a.jsx)(fr.q,{iconList:fo,multiColorIconObj:Bo,onMouseDown:Qo,onDoubleClick:Qo}):(0,a.jsx)(Hl.A,{theme:Dt,hasNoTips2:!0,keyword:Eo,onHandleClickSquarePanel:()=>{}})})})});var Ih=e(98310);const Mh=z.Ay.div.withConfig({displayName:"styles__StyledLoading",componentId:"sc-vx4onj-0"})(["width:100%;height:calc(100% - 64px);display:flex;align-items:center;justify-content:center;.loading{width:50px;height:50px;}"]),Jc=(0,z.Ay)(Pt.A).withConfig({displayName:"styles__StyledImagePanelContent",componentId:"sc-vx4onj-1"})(["flex:1;margin-top:0;overflow-y:overlay;overflow-x:hidden;margin-top:12px;"]),Cp=(0,z.Ay)(Pt.A).withConfig({displayName:"styles__StyledRecentPanelContent",componentId:"sc-vx4onj-2"})(["flex:1;overflow-y:overlay;overflow-x:hidden;margin-top:12px;&.recent-panel-content{.combos-container,.screens-container{padding:0 4px 0 12px;display:grid;grid-row-gap:8px;grid-column-gap:8px;grid-template-columns:repeat(auto-fill,109px);.template-item{margin:0 8px 10px 0;}.combo-item{margin:0 8px 10px 0;}li > .img-wrapper{width:109px;height:109px;}}.iconGroup-container{display:grid;grid-row-gap:7px;grid-column-gap:8px;padding:0 12px;grid-template-columns:repeat(5,1fr);& > li{border:none;border-radius:6px;margin-right:7px;margin-bottom:8px;&:hover{background:",";}}}.collapse-panel{.arrow-icon{width:16px;}.title{color:",";font-size:14px;font-weight:500;}}}"],Ge=>Ge.theme.color_btn_secondary_hover,Ge=>Ge.theme.color_text_L2),Th=(0,g.Mz)([p.O4,T.wA,T.Pz,T.PL,p.PI,p.k3,T.HW,l.oE,p.MZ,l.p],(Ge,jt,Dt,Zt,fo,Eo,Bo,xn,Qo,Yn)=>({theme:Ge,canvasRect:Dt,rootProject:Zt,showDragMode:fo,isAdsorbentReferenceLine:Eo,isOrgProject:!!jt,currentUser:Bo,isRequestFindAssets:xn,layoutV9:Qo,stickerData:Yn})),E0=o.memo(function(jt){const{theme:Dt,canvasRect:Zt,rootProject:fo,showDragMode:Eo,isAdsorbentReferenceLine:Bo,isOrgProject:xn,currentUser:Qo,isRequestFindAssets:Yn,layoutV9:$n,stickerData:ls}=(0,m.d4)(Qi=>Th(Qi)),{keyword:Ns,data:{assetList:Cs,pictureList:Us}}=jt,[Qs,Bs]=(0,o.useState)(!1),Ws=(0,m.wA)(),ci=(Qi,Oi,Ii,$a)=>{(0,cn.BZ)({popupsName:V.lS.History,addType:Oi,category:kn.b4,name:Ii,rootProject:fo,currentUser:Qo,esSearchKey:Qi,resId:$a})},Ai={onAssetDownload:Qi=>{(0,ml.z3)(Qi.name,Qi.image)},onAssetMove:Qi=>{MB.global.experienceLoginModalHelper("isSave")||Ws({type:"entry:batch:transfer:user-asset",payload:{userAsset:Qi}})},onAssetRemove:Qi=>{MB.global.experienceLoginModalHelper("isSave")||Ws({type:"entry:batch:remove:user-asset",payload:{userAsset:Qi}})},onAssetAdd:xn?Qi=>{MB.global.experienceLoginModalHelper("isSave")||Ws({type:"entry:batch:transfer:user:asset:to:org",payload:{userAsset:Qi}})}:null,onAssetNameConfirm:(Qi,Oi)=>{const Ii={...Qi};Ii.name=Oi,Ws({type:"entry:refresh:user-asset:update",payload:{userAssetUpdateList:[Ii]}})},onAssetImport:Qi=>{var Oi;Ws({type:"entry:create:widget:by:asset",payload:{asset:Qi}}),ci((Oi=Qi.cid)!=null?Oi:Qi.asset_cid,cn.k8.DoubleClick,Qi.name,Qi.id)},onMouseDown:async(Qi,Oi)=>{const Ii=(0,Ih.BL)(Oi),$a=(0,bn.g)(V.lS.History);(0,bn.dD)({e:Qi,items:[Ii],width:Ii.width,height:Ii.height,doNotCreateRect:$a,callback:()=>{var Re;ci((Re=Oi.cid)!=null?Re:Oi.asset_cid,cn.k8.Drag,Oi.name,Oi.id)},canvasRect:Zt,rootProject:fo,showDragMode:Eo,isAdsorbentReferenceLine:Bo})}};return(0,o.useEffect)(()=>{const Qi=Us==null?void 0:Us.find(Ii=>Ii.includes("findPicture_")),Oi=Us==null?void 0:Us.find(Ii=>Ii.includes("findSticker_"));Qi&&!Yn&&(Bs(!0),Ch().then(Ii=>Bs(!1)).catch(Ii=>{console.error("download meta.json failed",Ii),Bs(!1)})),Oi&&(!ls||ls.length===0)&&(Bs(!0),Md().then(Ii=>Bs(!1)).catch(Ii=>{console.error("download meta.json failed",Ii),Bs(!1)}))},[Us]),Qs?(0,a.jsx)(Rt.qt,{children:(0,a.jsx)("div",{className:"loading-container",children:(0,a.jsx)(Kt.ft,{className:"loading"})})}):(0,a.jsx)(Jc,{children:Qi=>Cs.length+Us.length>0?(0,a.jsx)(Ic,{containerRect:Qi,currentUserId:void 0,assetList:Cs,pictureList:Us.filter(Oi=>Oi!==null),shouldAuth:!1,assetActions:Ai,canListItemGroup:!1}):(0,a.jsx)(Hl.A,{theme:Dt,keyword:Ns,hasNoTips2:!0})})});var Pc=e(99842);class ac extends o.PureComponent{render(){const{isLoading:jt,isSearchLoading:Dt,foundNum:Zt,historyKeyword:fo}=this.props;return(0,a.jsx)(a.Fragment,{children:jt?(0,a.jsx)(Mh,{children:(0,a.jsx)(R.A,{className:"loading"})}):Dt?(0,a.jsx)(Rt.qt,{children:(0,a.jsxs)("div",{className:"loading-container",children:[(0,a.jsx)(Kt.ft,{className:"loading"}),(0,a.jsx)("span",{children:I18N.Resources.searching.load})]})}):fo!=null&&fo.length?(0,a.jsx)(Qc,{className:"result",children:(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:I18N.Resources.searchPanel.resultDesc.replace(/%num%/,(0,ml.rB)().process(String(Zt))).replace(/%keyword%/,(0,ml.rB)().process(fo))}})}):null})}}var k0=e(77211),Mr=e(83984);const wp=z.Ay.li.withConfig({displayName:"styles__StyledComboThumbnailItem",componentId:"sc-h0w76r-0"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer;margin-left:-1px;.img-wrapper{position:relative;width:75px;height:70px;border:1px solid ",";background-color:",";display:flex;align-items:center;justify-content:center;border-radius:6px;img{max-width:100%;max-height:100%;pointer-events:none;}}.dynamic-flag{display:flex;align-items:center;justify-content:center;position:absolute;top:2px;left:2px;width:16px;height:16px;background:",";border-top-left-radius:2px;.icon{width:8px;}}.combo-name{width:72px;height:31px;line-height:31px;text-align:center;color:",";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}&:hover{.img-wrapper{border-color:",";border-width:2px;}}"],Ge=>Ge.theme.color_btn_secondary_active,Ge=>Ge.theme.color_bg_card,Ge=>Ge.theme.color_bg_border_02,Ge=>Ge.theme.color_text_L2,Ge=>Ge.theme.color_proto);class _0 extends o.PureComponent{constructor(jt){super(jt),(0,C.A)(this,"setElementRef",Dt=>this.$elem=Dt),(0,C.A)(this,"updateIsVisible",()=>{this.setState({isVisible:this.isInBoundingClientRect()})}),(0,C.A)(this,"handleImport",Dt=>{Dt.stopPropagation();const{item:Zt,comboActions:{onImport:fo}}=this.props;fo&&fo(Dt,Zt)}),(0,C.A)(this,"handleMouseDown",Dt=>{Dt.preventDefault();const{item:Zt,comboActions:{onMouseDown:fo}}=this.props;fo&&fo(Dt,Zt)}),this.state={isVisible:!1}}componentDidMount(){this.props.containerRect&&this.updateIsVisible()}componentDidUpdate(){this.updateIsVisible()}isInBoundingClientRect(){const{containerRect:jt}=this.props;if(!jt||!this.$elem)return!1;const Dt=this.$elem.getBoundingClientRect();return Dt.bottom>jt.top&&Dt.top<jt.bottom}render(){var jt;const{item:Dt}=this.props,{isVisible:Zt}=this.state,{key:fo,flpakKey:Eo}=Dt,Bo=Dt.sup==="B@ref-muban"?Dt.hotAttr.defaultCanvasKey:fo,xn=Dt.sup==="B@ref-muban"?Mr.rY.PNG_CANVAS:Mr.rY.PNG_PAGE;return(0,a.jsxs)(wp,{className:"combo-item",children:[(0,a.jsx)("div",{ref:this.setElementRef,className:"img-wrapper",onDoubleClick:this.handleImport,onMouseDown:this.handleMouseDown,children:(0,a.jsx)(k0.Ay,{projectMetaCid:Eo,snapshotKey:Bo,isVisible:Zt,mode:xn})}),(0,a.jsx)("div",{className:"combo-name",children:(jt=Dt.hotAttr)==null?void 0:jt.name})]})}}const Ud=(0,g.Mz)([p.O4,T.X_,T.Pz,T.PL,p.PI,p.k3,T.HW],(Ge,jt,Dt,Zt,fo,Eo,Bo)=>({theme:Ge,scale:jt,canvasRect:Dt,rootProject:Zt,showDragMode:fo,isAdsorbentReferenceLine:Eo,currentUser:Bo})),El=o.memo(function(jt){const{theme:Dt,scale:Zt,canvasRect:fo,rootProject:Eo,showDragMode:Bo,isAdsorbentReferenceLine:xn,currentUser:Qo}=(0,m.d4)(Re=>Ud(Re)),Yn=(0,m.wA)(),{activeIndex:$n,data:ls,keyword:Ns,onPaidResources:Cs}=jt,Us=async(Re,je)=>{Re.persist&&Re.persist();const et=(0,bn.g)(V.lS.History);(0,bn.WP)({e:Re,combo:je,store:userSdkStore,doNotCreateRect:et,scale:Zt,canvasRect:fo,showDragMode:Bo,isAdsorbentReferenceLine:xn,callback:()=>{Bs(je),ci(cn.k8.Drag,je)}})},Qs=(Re,je)=>{(0,bn.QI)({e:Re,combo:je,store:userSdkStore,scale:Zt}),Bs(je)},Bs=Re=>{const je={projectUpperType:"user_combo",projectUpperCid:Re==null?void 0:Re.fcgCid,itemCid:Re.key};(0,ta.Cp)(je)},Ws=()=>{Yn({type:"entry:resources:goto:square"})},ci=(Re,je)=>{const{type:et,hotAttr:{name:St}}=je,vt=et.includes("combo")?kn.t_:kn.Gd;(0,cn.BZ)({popupsName:V.lS.History,addType:Re,category:vt,name:St,rootProject:Eo,currentUser:Qo})},Ai=(Re,je,et,St)=>{const{policy:vt,category:no,title:$o,platform:gn}=et;(0,cn.Mi)({popupsName:V.lS.History,addType:je,source:cn.Jj[no],category:no,platform:gn,policy:vt,templateGroupName:$o,name:St,rootProject:Eo,esSearchKey:Re})},Qi={onMouseDown:Us,onImport:Qs},{comboItems:Oi,screenItems:Ii,marketTemplateListMap:$a}=ls;return(0,a.jsx)(Cp,{className:"recent-panel-content",children:Re=>(0,a.jsxs)(a.Fragment,{children:[$n===0&&(0,a.jsx)(a.Fragment,{children:Oi.length===0?(0,a.jsx)(Hl.A,{theme:Dt,hasNoTips2:!0,keyword:Ns,onHandleClickSquarePanel:Ws}):(0,a.jsx)("ul",{className:"combos-container",style:{width:qt.qv},children:Oi.map(je=>{const{type:et}=je;return et==="user-combo"?(0,a.jsx)(_0,{item:je,comboActions:Qi,containerRect:Re},je.key):(0,a.jsx)(Lo.A,{marketTemplate:je,currentResources:$a.get(je.marketTemplateCid),containerRect:Re,onTrack:Ai,onPaidTemplates:()=>Cs(je.marketTemplateCid)},je.key)})})}),$n===2&&(0,a.jsx)(a.Fragment,{children:Ii.length===0?(0,a.jsx)(Hl.A,{theme:Dt,hasNoTips2:!0,keyword:Ns,onHandleClickSquarePanel:Ws},"search"):(0,a.jsx)("ul",{className:"screens-container",style:{width:qt.qv},children:Ii.map(je=>(0,a.jsx)(Lo.A,{marketTemplate:je,currentResources:$a.get(je.marketTemplateCid),containerRect:Re,onPaidTemplates:()=>Cs(je.marketTemplateCid)},je.key))})})]})})}),Vc=Ge=>{let{groups:jt,p2mMMap:Dt,projectUppers:Zt,marketTemplateListMap:fo,type:Eo}=Ge;const Bo=[];return jt!=null&&jt.length&&jt.forEach(xn=>{const[Qo,Yn]=xn,$n=Zt[Qo];if($n){const{project_metas:Ns,market_template:Cs}=$n;if(Ns!=null&&Ns.length&&Cs){var ls;fo.set(Qo,Cs);const Us=(ls=Ns[0])==null?void 0:ls.cid,Qs=Dt[Us];if(Qs){const Bs=Qs[Yn];if(Bs){const[Ws,ci,Ai]=Bs;Bo.push({key:Ws,sup:ci,hotAttr:Ai,type:Eo,marketTemplateCid:Qo,projectMetaCid:Us})}}}}}),Bo},Q0=Ge=>{const{combo_groups:jt,screen_lists:Dt,user_combo_groups:Zt,p2mMMap:fo,icon_groups:Eo,project_uppers:Bo,user_fcg:xn}=Ge,Qo=new Map,Yn=Vc({groups:jt,p2mMMap:fo,projectUppers:Bo,marketTemplateListMap:Qo,type:kn.t_}),$n=Vc({groups:Dt,p2mMMap:fo,projectUppers:Bo,marketTemplateListMap:Qo,type:kn.Gd});if(Zt!=null&&Zt.length&&xn){const{project_meta_cid:Ns}=xn;Zt.forEach(Cs=>{const[Us,Qs]=Cs;if(Us===xn.cid){const Ws=fo[Ns];if(Ws){const ci=Ws[Qs];if(ci){var Bs;const[Ai,Qi,Oi]=ci;Yn.push({key:Ai,sup:Qi,hotAttr:Oi,type:"user-combo",fcgCid:Us,flpakKey:(Bs=userSdk)==null||(Bs=Bs.fssDat)==null?void 0:Bs.flpakKey})}}}})}const ls=(0,us.D2)(Eo);return{comboItems:Yn,screenItems:$n,iconItems:ls,marketTemplateListMap:Qo}};var xc=function(Ge){return Ge[Ge.Builtin=0]="Builtin",Ge[Ge.Icon=1]="Icon",Ge[Ge.Asset=2]="Asset",Ge[Ge.Page=3]="Page",Ge}(xc||{});const Sp=(0,g.Mz)([l.OW,l.ld,T.HW,T.wA,T.F2,T._x,A.r,p.MZ,l.p],(Ge,jt,Dt,Zt,fo,Eo,Bo,xn,Qo)=>{const{isEditingBasket:Yn,isEditingMuban:$n,isEditingCombo:ls}=Bo;return{currentPopupPanel:Ge,findPictureMetaData:jt,currentUser:Dt,currentOrg:Zt,userFcg:fo,orgFcg:Eo,isShowPage:!(Yn||$n||ls),layoutV9:xn,findStickerData:Qo}});class xd extends o.PureComponent{constructor(jt){var Dt;super(jt),(0,C.A)(this,"HISTORY_TABS",[{key:xc.Builtin,panel:V.lS.Builtin,label:I18N.ArtBoard.widget},{key:xc.Icon,panel:V.lS.Icon,label:I18N.ArtBoard.icon},{key:xc.Asset,panel:V.lS.Asset,label:I18N.ArtBoard.image},{key:xc.Page,panel:V.lS.Page,label:I18N.ArtBoard.page}]),(0,C.A)(this,"initComboSdkStore",async()=>{const{currentUser:fo,currentOrg:Eo,userFcg:Bo,orgFcg:xn}=this.props,Qo=fo==null?void 0:fo.id;Qo&&(!window.userSdkStore&&Bo&&await(0,Ft.Z)({fcg:Bo,userId:Qo}),Eo!=null&&Eo.cid&&!window.orgSdkStore&&xn&&await(0,Ft.Z)({fcg:xn,userId:Qo,isOrg:!0}))}),(0,C.A)(this,"handleSetMtSdkStore",fo=>{const{dispatch:Eo}=this.props,{comboItems:Bo,screenItems:xn}=fo,Qo=Bo.filter(ls=>ls.type===kn.t_).concat(xn),Yn=[],$n=new Map;Qo.forEach(ls=>{const{marketTemplateCid:Ns,projectMetaCid:Cs}=ls;Yn.push(Ns),$n.set(Ns,Cs)}),Eo({type:"entry:resources:set:mtSdkStore:map",payload:{mtResourceCidList:Yn,mtProjectMetaCidMap:$n}})}),(0,C.A)(this,"renderPanel",()=>{const{navIndex:fo,recentData:Eo,searchRecentData:Bo,keyword:xn,multiColorIconObj:Qo}=this.state,Yn=Bo||Eo;switch(fo){case xc.Builtin:return(0,a.jsx)(El,{activeIndex:0,data:Yn,keyword:xn,onPaidResources:this.handlePaidResources});case xc.Icon:return(0,a.jsx)(Gh,{data:Yn,keyword:xn,multiColorIconObj:Qo});case xc.Asset:return(0,a.jsx)(E0,{data:Yn,keyword:xn});case xc.Page:return(0,a.jsx)(El,{activeIndex:2,data:Yn,keyword:xn,onPaidResources:this.handlePaidResources})}}),(0,C.A)(this,"handleTabChange",fo=>this.setState({navIndex:fo})),(0,C.A)(this,"handleNavBack",()=>this.props.dispatch({type:"historyPanel:set:show",payload:{show:!1}})),(0,C.A)(this,"handleSearch",fo=>{const{findPictureMetaData:Eo,findStickerData:Bo}=this.props,{recentData:xn}=this.state;if(this.setState({searchRecentData:null,keyword:fo}),fo){this.setState({isSearchLoading:!0});const Qo=new RegExp((0,po.$)(fo),"i"),{comboItems:Yn,iconItems:$n,screenItems:ls,assetList:Ns,pictureList:Cs}=xn,Us=[];Eo!=null&&Eo.length&&Eo.forEach(Bs=>{Bs.imgs.forEach(Ws=>{let[ci,,,Ai]=Ws;for(const Qi of Ai)Qi.includes(fo)&&Cs.includes("findPicture_"+ci)&&Us.push("findPicture_"+ci)})}),Bo!=null&&Bo.length&&Bo.forEach(Bs=>{var Ws;Bs==null||(Ws=Bs.list)==null||Ws.forEach(ci=>{ci!=null&&ci.name.includes(fo)&&Cs.includes("findSticker_"+(ci==null?void 0:ci.url))&&Us.push("findSticker_"+(ci==null?void 0:ci.url))})});const Qs={...xn,comboItems:Yn.filter(Bs=>{var Ws;return Qo.test((Ws=Bs.hotAttr)==null?void 0:Ws.name)}),iconItems:$n.filter(Bs=>Qo.test(Bs.keywords)),screenItems:ls.filter(Bs=>{var Ws;return Qo.test((Ws=Bs.hotAttr)==null?void 0:Ws.name)}),assetList:Ns.filter(Bs=>Qo.test(Bs.name)),pictureList:Us};setTimeout(()=>{this.setState({isSearchLoading:!1,searchRecentData:Qs})},1e3)}}),(0,C.A)(this,"handleGetFoundNum",()=>{const{searchRecentData:fo,navIndex:Eo}=this.state;if(fo){const{comboItems:Bo,screenItems:xn,iconItems:Qo,assetList:Yn,pictureList:$n}=fo;switch(Eo){case xc.Builtin:return(Bo==null?void 0:Bo.length)||0;case xc.Icon:return(Qo==null?void 0:Qo.length)||0;case xc.Asset:return(Yn==null?void 0:Yn.length)+($n==null?void 0:$n.length)||0;case xc.Page:return(xn==null?void 0:xn.length)||0}}return 0}),(0,C.A)(this,"handlePaidResources",fo=>{const{searchRecentData:Eo,recentData:Bo}=this.state,xn=Eo||Bo;if(!xn)return;const{marketTemplateListMap:Qo}=xn;if(!Qo)return;const Yn=new Map;let $n=null;if(Qo)for(const[Ns,Cs]of Qo)Ns===fo&&(Yn.set(Ns,{...Cs,is_purchased:!0,is_star:!0}),$n=Cs),Yn.set(Ns,Cs);const ls={...xn,marketTemplateListMap:Yn};Eo?this.setState({searchRecentData:ls}):this.setState({recentData:ls}),$n&&this.props.dispatch({type:"entry:resources:update:find:data",payload:{cid:$n.cid,category:$n.category}})});const Zt=((Dt=this.HISTORY_TABS.find(fo=>fo.panel===jt.currentPopupPanel))==null?void 0:Dt.key)||xc.Builtin;this.state={keyword:"",navIndex:Zt,isLoading:!1,isSearchLoading:!1,recentData:{comboItems:[],screenItems:[],iconItems:[],assetList:[],pictureList:[]},searchRecentData:null,multiColorIconObj:{}}}async componentDidMount(){this.setState({isLoading:!0}),await this.initComboSdkStore();const[jt,Dt]=await Promise.all([(0,ta.Uy)(),(0,ta.PJ)()]);if(jt){const Zt=Q0(jt);this.handleSetMtSdkStore(Zt),this.setState({recentData:{...Zt,assetList:jt.user_assets,pictureList:jt.pictures},multiColorIconObj:Dt})}this.setState({isLoading:!1})}render(){const{navIndex:jt,isLoading:Dt,isSearchLoading:Zt,keyword:fo}=this.state,{isShowPage:Eo,layoutV9:Bo}=this.props,xn=this.handleGetFoundNum();return(0,a.jsxs)(Ec,{children:[(0,a.jsx)(yc,{children:(0,a.jsx)(Pc.H,{title:I18N.Resources.searchHeader.history,iconName:"left_panel/back/arrow",layoutV9:Bo,onBack:this.handleNavBack,onSearch:this.handleSearch})}),(0,a.jsx)(T0,{activeIndex:jt,onTabChange:this.handleTabChange,layoutV9:Bo,children:this.HISTORY_TABS.map(Qo=>{let{key:Yn,label:$n}=Qo;return Yn===xc.Page&&!Eo?(0,a.jsx)(a.Fragment,{}):(0,a.jsx)(fc.n,{index:Yn,label:$n},Yn)})}),(0,a.jsx)(ac,{isLoading:Dt,isSearchLoading:Zt,foundNum:xn,historyKeyword:fo}),!Dt&&!Zt&&(0,a.jsx)(_i,{children:()=>this.renderPanel()})]})}}const J0=(0,m.Ng)(Ge=>Sp(Ge))(xd);class P0 extends o.PureComponent{render(){const{show:jt}=this.props;return jt?(0,a.jsx)(Ks.A,{id:"popups-"+V.lS.History+"-panel",className:"popups-panel",children:(0,a.jsx)(J0,{})}):null}}const cd=(0,g.Mz)([l.SE],Ge=>({show:Ge})),rc=(0,m.Ng)(Ge=>cd(Ge))(P0);var N0=e(23692),Ap=e(99048),bl=e(82274);const d0=z.Ay.div.withConfig({displayName:"styles__StyledMindPanel",componentId:"sc-1t93uac-0"})(["display:flex;.mind-content-wrap{display:flex;ul{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;padding-top:8px;}li.mind-option{width:110px;height:103px;margin-bottom:8px;&:nth-child(odd){margin-right:8px;}.img-container{width:100%;height:82px;}&:hover{background-color:unset;.frame{box-shadow:#79BAFF 0 0 0 2px inset;}}}}"]);class Kl extends o.PureComponent{constructor(){super(...arguments),(0,C.A)(this,"handleMouseDown",(jt,Dt)=>{var Zt;const{showDragMode:fo,isAdsorbentReferenceLine:Eo,canvasRect:Bo,scale:xn}=this.props,Qo=(Zt=document.getElementById("popups-mind-panel"))==null?void 0:Zt.getBoundingClientRect(),Yn=(0,us.aU)()[Dt];(0,bn.ow)({e:jt,template:Yn,doNotCreateRect:Qo,canvasRect:Bo,scale:xn,showDragMode:fo,isAdsorbentReferenceLine:Eo,callback:()=>{(0,cn.gJ)("\u62D6\u62FD\u521B\u5EFA")}})}),(0,C.A)(this,"handleCreate",async(jt,Dt)=>{const Zt=(0,us.aU)()[Dt];await(0,bn.lc)(jt,Zt),(0,cn.gJ)("\u53CC\u51FB\u521B\u5EFA")})}render(){return(0,a.jsx)(d0,{className:"mind-content-panel",children:(0,a.jsx)("div",{className:"mind-content-wrap",children:(0,a.jsx)("ul",{children:(0,Ap.B)(I18N).map((jt,Dt)=>{let{src:Zt,title:fo}=jt;return(0,a.jsx)("li",{className:"mind-option",onDoubleClick:Eo=>this.handleCreate(Eo,Dt),onMouseDown:Eo=>this.handleMouseDown(Eo,Dt),children:(0,a.jsx)(bl.k,{src:Zt,title:fo})},Dt)})})})})}}const fl=(0,g.Mz)([l.OW,p.PI,p.k3,T.Pz,T.X_],(Ge,jt,Dt,Zt,fo)=>({currentPopupPanel:Ge,showDragMode:jt,isAdsorbentReferenceLine:Dt,canvasRect:Zt,scale:fo})),L0=(0,m.Ng)(Ge=>fl(Ge))(Kl);class Yh extends o.PureComponent{render(){const{show:jt}=this.props;return jt?(0,a.jsx)(L0,{}):null}}const D0=(0,g.Mz)([l.OW],Ge=>({show:Ge===V.lS.Mind})),zd=(0,m.Ng)(Ge=>D0(Ge))(Yh);var jl=e(23460),Pl=e(72128);const Ed=z.Ay.div.withConfig({displayName:"styles__StyledHomePanel",componentId:"sc-iw79iw-0"})(["flex:1;display:flex;flex-direction:column;overflow:hidden;position:relative;.basic-list{padding-top:0;}.home-panel-header{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;height:50px;padding:0 12px 0 5px;border-bottom:1px solid ",";.home-nav-box{display:flex;align-items:center;flex-shrink:0;height:32px;padding:0 8px;cursor:pointer;&.disabled{pointer-events:none;}.nav-menu-icon{width:13px;height:12px;margin-right:10px;color:",";}.item-icon{width:24px;height:24px;}&:hover{background:",";border-radius:4px;}&.active{background:",";border-radius:4px;}.nav-title{max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:16px;font-weight:500;color:",";&:lang(en){font-weight:600;}}.nav-hover-btn{width:13px;height:12px;margin-right:10px;}}.nav-back{height:100%;display:flex;align-items:center;cursor:pointer;margin-left:7px;.svg-icon{color:",";}&:hover{.svg-icon{color:",";}}.nav-back-icon{width:9px;height:15px;}}.home-panel-search{margin-left:13px;}}"],Ge=>Ge.theme.color_btn_secondary_active,Ge=>Ge.theme.color_text_L3,Ge=>Ge.theme.color_bg_canvas,Ge=>Ge.theme.color_bg_canvas,Ge=>Ge.theme.color_text_L1,Ge=>Ge.theme.color_text_L3,Ge=>Ge.theme.color_text_L2),Nc=z.Ay.div.withConfig({displayName:"styles__StyledFlowPanelContent",componentId:"sc-iw79iw-1"})(["flex:1;width:calc(100% - 2px);overflow-x:hidden;overflow-y:auto;padding-bottom:1vh;.basic-list{display:flex;flex-flow:row wrap;padding:12px 4px 0 12px;margin-top:8px;}"]),Ip=(0,g.Mz)([T.PL,T.Ur,p.PI,p.k3,l.B8],(Ge,jt,Dt,Zt,fo)=>({rootProject:Ge,screenMeta:jt,showDragMode:Dt,isAdsorbentReferenceLine:Zt,popupsPanelName:fo}));function Mp(){const{rootProject:Ge,screenMeta:jt,showDragMode:Dt,isAdsorbentReferenceLine:Zt,popupsPanelName:fo}=(0,m.d4)(Bo=>Ip(Bo)),Eo=(0,m.wA)();return(0,a.jsx)(Nc,{children:(0,a.jsx)("div",{className:"basic-list",style:{width:qt.qv},children:us.v0.map(Bo=>(0,a.jsx)(Pl.Y,{screenMeta:jt,rootProject:Ge,type:Bo.type,name:Bo.name,icon:Bo.svg_icon,showDragMode:Dt,isAdsorbentReferenceLine:Zt,popupsPanelName:fo,source:cn.ol.BuiltPanel,dispatch:Eo},Bo.name))})})}class $c extends o.PureComponent{render(){const{show:jt}=this.props;return jt?(0,a.jsx)(Ed,{children:(0,a.jsx)(Mp,{})}):null}}const vc=(0,g.Mz)([l.OW],Ge=>({show:Ge===V.lS.Flow})),lc=(0,m.Ng)(Ge=>vc(Ge))($c),Wd=z.Ay.div.withConfig({displayName:"styles__StylesAIComponentListPanel",componentId:"sc-1d7xjdj-0"})(["width:100%;padding:0 12px 25px 12px;overflow:auto;height:100%;&:lang(en){height:calc(100% - 44px);}&::-webkit-scrollbar{width:4px;height:4px;}.section-title{font-weight:400;font-size:12px;line-height:16px;color:",";margin-top:20px;}"],Ge=>Ge.theme.color_text_L2);class Xl extends o.PureComponent{render(){const{openAIModal:jt,openAIComponentCreateMode:Dt}=this.props;return(0,a.jsx)(Wd,{children:(0,ss.UP)().map((Zt,fo)=>(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"section-title",children:Zt.title}),Zt.items.map((Eo,Bo)=>{const{label:xn}=Eo,Qo=xn===ss.Tq?Dt:jt;return(0,a.jsx)(Os,{item:Eo,onSelect:Qo},Bo)})]},fo))})}}var vd=e(13566),$0=e(7039),q0=e(38045);const kd=z.Ay.div.withConfig({displayName:"styles__StylesAIContentPanel",componentId:"sc-1ni4k55-0"})(["width:100%;display:flex;flex-direction:column;height:100%;.ai-panel-header{height:50px;min-height:50px;align-items:center;justify-content:space-between;padding:0 9px 0 15px;border-bottom:1px solid ",";position:relative;display:flex;.title{max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:16px;color:",";font-weight:500;&:lang(en){font-weight:600;}}}.ai-labels-content{display:flex;flex-wrap:wrap;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:start;padding:0px 7px 10px 7px;.ai-label{width:68px;line-height:24px;margin-top:10px;margin-left:8px;font-size:12px;text-align:center;border-radius:4px;color:",";border:1px solid ",";cursor:pointer;transition:all 0.2s ease-out 0s;&:hover{background:",";}}}"],Ge=>Ge.theme.color_background_icon_hover,Ge=>Ge.theme.color_text_L1,Ge=>Ge.theme.color_text_L1,Ge=>Ge.theme.color_background_icon_hover,Ge=>Ge.theme.color_background_icon_active),Zp=z.Ay.div.withConfig({displayName:"styles__StylesAISwitchBar",componentId:"sc-1jqe9tx-0"})(["width:100%;margin-top:12px;padding:0 12px;.switch-content{height:32px;background:",";border-radius:8px;padding:4px;display:flex;width:100%;align-items:center;position:relative;z-index:0;.ai-switch-bg{position:absolute;width:calc(50% - 4px);top:4px;left:4px;height:24px;transition:0.3s;box-shadow:0px 1.11697px 3.35092px rgba(0,0,0,0.2);border-radius:6px;background:",";z-index:-1;&.select-chat{left:50%;}}.ai-switch-item{width:50%;display:flex;justify-content:center;font-size:12px;color:#999999;cursor:pointer;height:100%;align-items:center;svg{width:14px;margin-right:4px;&.isDark{path{fill:url(#paint_linear_1);}}&.no-select{path{fill:#999999;}}}&.selected{font-weight:500;span{background:linear-gradient(265.2deg,"," -21.19%,"," 105.08%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-fill-color:transparent;}}}}"],Ge=>Ge.theme.color_background_AIPannel_component_item,Ge=>Ge.theme.color_background_AI_switch,Ge=>Ge.theme.color_AI_switch_gradient_start,Ge=>Ge.theme.color_AI_switch_gradient_end),Xp=Ge=>{let{switchIsChat:jt,theme:Dt,updateSwitchIsChat:Zt}=Ge;const fo=Dt==="dark",Eo=(0,o.useCallback)(xn=>{Zt&&Zt(xn)},[Zt]),Bo=o.useMemo(()=>[{select:!jt,icon:"chatGPT/ai-switch-left",title:I18N.ChatGPT.ai_create},{select:jt,icon:"chatGPT/ai-switch-right",title:I18N.ChatGPT.ai_chat}],[jt]);return(0,a.jsx)(Zp,{children:(0,a.jsxs)("div",{className:"switch-content",children:[(0,a.jsx)("div",{className:u()("ai-switch-bg",jt&&"select-chat")}),Bo.map((xn,Qo)=>(0,a.jsxs)("div",{className:u()("ai-switch-item",xn.select&&"selected"),onClick:()=>Eo(Qo===1),children:[(0,a.jsx)(Xo.C,{className:u()(!xn.select&&"no-select",fo&&"isDark"),name:xn.select,isColorPure:!0}),(0,a.jsx)("span",{children:xn.title})]},Qo))]})})},_d=o.memo(Xp);class Vd extends o.PureComponent{constructor(){super(...arguments),(0,C.A)(this,"handleUpdateAIPoints",jt=>{const{commonData:{user:Dt,org:Zt,project:fo},actions:{updateCurrentOrg:Eo,updateCurrentUser:Bo}}=this.props;fo.is_org_project&&Zt?Eo({org:Object.assign(Zt,{ai_points:jt})}):Bo({user:Object.assign(Dt,{ai_points:jt})})})}async componentDidMount(){const{commonData:{user:jt,org:Dt}}=this.props;await(0,q0.Rn)({user:jt,org:Dt,onUpdateAIPoints:this.handleUpdateAIPoints})}render(){const{commonData:{user:jt,org:Dt,project:Zt,theme:fo,switchIsChat:Eo,showHeadSwitch:Bo},actions:{openAIModal:xn,updateSwitchIsChat:Qo,openAIComponentCreateMode:Yn}}=this.props;return(0,a.jsxs)(kd,{children:[(0,a.jsx)($0.A,{isHeaderPanel:!0,user:jt,org:Dt,project:Zt}),Bo&&(0,a.jsx)(_d,{switchIsChat:Eo,theme:fo,updateSwitchIsChat:Qo}),Eo?(0,a.jsx)(vd.A,{...this.props}):(0,a.jsx)(Xl,{openAIModal:xn,openAIComponentCreateMode:Yn})]})}}const Qp=Ge=>{const jt=Ge();return(0,a.jsx)(Vd,{...jt})};var Tp=e(10572),Jp=e(36820),$p=e(40323),ep=e(29839);const qp=Ge=>{const{show:jt,currentEditorMode:{isEditingProjectMain:Dt},user:Zt,org:fo,project:Eo,theme:Bo,switchIsChat:xn,dispatch:Qo}=Ge,[Yn,$n]=(0,o.useState)((0,a.jsx)(a.Fragment,{})),ls=(0,o.useMemo)(()=>({user:Zt,org:fo,project:Eo,theme:Bo,switchIsChat:xn}),[fo,Eo,Zt,Bo,xn]),Ns=(0,o.useMemo)(()=>({openAIModal:Us=>{Qo({type:Tp.X.AIOpenModal,payload:Us}),(0,$p.Z)(Us==null?void 0:Us.type)},openAIComponentCreateMode:Us=>Qo({type:Tp.X.AIComponentCreateMode,payload:Us}),updateIsInChatModal:Us=>Qo({type:"reducer:flag:is-in-chatGPT",payload:{isInChatModal:Us}}),updateSwitchIsChat:Us=>Qo({type:"ai:update:switchIsChat",payload:Us}),updateCurrentOrg:Us=>{let{org:Qs}=Us;return Qo({type:"set:current:org",payload:{org:Qs}})},updateCurrentUser:Us=>{let{user:Qs}=Us;return Qo({type:"set:current:user",payload:{user:Qs}})},track:(Us,Qs)=>(0,Jp.kH)(Us,Qs)}),[Qo]),Cs=(0,o.useMemo)(()=>({commonData:{...ls,showHeadSwitch:!0},actions:Ns}),[ls,Ns]);return(0,o.useEffect)(()=>{$n(!jt||!Dt?(0,a.jsx)(a.Fragment,{}):Qp(()=>Cs))},[jt,Dt,Cs]),(0,a.jsx)(a.Fragment,{children:Yn})},eh=(0,g.Mz)([l.OW,A.r,T.wA,T.PL,T.HW,p.O4,ep.Bg],(Ge,jt,Dt,Zt,fo,Eo,Bo)=>({show:Ge===V.lS.AI,currentEditorMode:jt,org:Dt,project:Zt,user:fo,theme:Eo,switchIsChat:Bo})),th=(0,m.Ng)(Ge=>eh(Ge))(qp);var Lc=e(43391),qc=e(64835),ed=e(53955);const Pd=()=>{const Ge=(0,o.useRef)(new IntersectionObserver(()=>{},{})),jt=(0,o.useRef)([]),Dt=(0,o.useRef)({}),Zt=()=>{const Qo=Yn=>{const $n=jt.current||[],ls=Dt.current||{};Yn.forEach(Ns=>{if(Ns.isIntersecting){var Cs,Us;const Qs=(Cs=Ns.target)==null?void 0:Cs.dataset.cid,Bs=(Us=Ns.target)==null?void 0:Us.dataset.resourcesCid,Ws=Qs||Bs?Qs+"-"+(Bs||""):"";if(Ws&&!$n.includes(Ws)){const ci=ls[Ws];if(ci){$n.push(Ws);const{isMdVipTemplate:Ai,isMktVipTemplate:Qi}=(0,qc.wY)(ci.policy),Oi={...ci,is_scvip_template:Qi,vip_template:Ai};(0,Tc.d0)(Oi)}}}}),Eo({shownMtItemCids:$n})};Ge&&(Ge.current=(0,ed.e)({mode:"exposure",callback:Qo}))},fo=()=>{setTimeout(()=>{const Qo=document.querySelectorAll(".mt-exposure-observer");!(Ge!=null&&Ge.current)||Qo.length===0||Qo.forEach(Yn=>Ge.current.observe(Yn))},800)},Eo=Qo=>{let{shownMtItemCids:Yn=[]}=Qo;jt&&(jt.current=Yn)},Bo=Qo=>{let{observeMtItemObj:Yn={}}=Qo;Dt&&(Dt.current=Yn)},xn=Qo=>{let{addItemsObj:Yn={}}=Qo;Dt&&(Dt.current={...Dt.current||{},...Yn})};(0,o.useEffect)(()=>(Zt(),Vn.A.on(Gt.P2,Eo),Vn.A.on(Gt.jy,Bo),Vn.A.on(Gt.A6,xn),Vn.A.on(Gt.BD,fo),()=>{var Qo;(Qo=Ge.current)==null||Qo.disconnect(),Vn.A.off(Gt.P2,Eo),Vn.A.off(Gt.jy,Bo),Vn.A.off(Gt.A6,xn),Vn.A.off(Gt.BD,fo)}),[])},oh=()=>{const Ge=(0,o.useRef)(new IntersectionObserver(()=>{},{})),jt=(0,o.useRef)([]),Dt=(0,m.wA)(),Zt=()=>{const Eo=Bo=>{const xn=jt.current||[],Qo=[];Bo.forEach(Yn=>{if(Yn.isIntersecting){var $n,ls;const Ns=($n=Yn.target)==null?void 0:$n.dataset.cid,Cs=Ns!=null&&Ns.startsWith("mt")?Ns:(ls=Yn.target)==null?void 0:ls.dataset.resourcesCid;Cs&&!xn.includes(Cs)&&(Qo.push(Cs),xn.push(Cs))}}),jt.current=xn,Dt({type:"entry:search-panel:resources:set:mtSdkStore:map",payload:{mtResourceCidList:Qo}})};Ge&&(Ge.current=(0,ed.e)({mode:"preload",callback:Eo}))},fo=function(Eo){var Bo;Eo===void 0&&(Eo=500),(Bo=Ge.current)==null||Bo.disconnect();const Qo=document.querySelectorAll("#mb-search-results-panel .combo_group .observe-target-list .resources-list");if(!Ge.current)return null;if(Qo.length>0)for(let Yn=0;Yn<Qo.length;Yn++)Ge.current.observe(Qo[Yn]);setTimeout(()=>{const $n=document.querySelectorAll("#mb-search-results-panel .screen_list .mt-exposure-observer");if($n.length===0)return null;for(let ls=0;ls<$n.length;ls++)Ge.current.observe($n[ls])},Eo)};(0,o.useEffect)(()=>(Vn.A.on(Gt.rg,Zt),Vn.A.on(Gt.kE,fo),()=>{var Eo;(Eo=Ge.current)==null||Eo.disconnect(),Vn.A.off(Gt.rg,Zt),Vn.A.off(Gt.kE,fo)}),[])},Ep=()=>{const Ge=(0,o.useRef)(new IntersectionObserver(()=>{},{})),jt=(0,o.useRef)([]),Dt=(0,m.wA)(),Zt=()=>{const Eo=Bo=>{const xn=jt.current||[],Qo=[];Bo.forEach(Yn=>{if(Yn.isIntersecting){var $n;const ls=($n=Yn.target)==null?void 0:$n.dataset.resourcesCid;ls&&!xn.includes(ls)&&(Qo.push(ls),xn.push(ls))}}),jt.current=xn,Dt({type:"entry:resources:init:marketTemplateItemList:map",payload:{resourcesCids:Qo}})};Ge&&(Ge.current=(0,ed.e)({mode:"preload",callback:Eo,root:document.querySelector("#popups-builtin-panel .widget-panel-container"),rootMargin:"0px 0px 150px 0px"}))},fo=()=>{const Eo=".combo-group .mt-exposure-observer",Bo=document.querySelectorAll(Eo);if(!Ge.current)return null;if(Bo.length>0)for(let xn=0;xn<Bo.length;xn++)Ge.current.observe(Bo[xn]);setTimeout(()=>{document.querySelectorAll(Eo).length!==Bo.length&&fo()},1e3)};(0,o.useEffect)(()=>(Vn.A.on(Gt.l7,Zt),Vn.A.on(Gt.wO,fo),()=>{var Eo;(Eo=Ge.current)==null||Eo.disconnect(),Vn.A.off(Gt.l7,Zt),Vn.A.off(Gt.wO,fo)}),[])},Eh=()=>(Pd(),oh(),Ep(),null);class p0 extends o.PureComponent{componentDidMount(){var jt,Dt;const{currentPopupPanel:Zt,layoutV9:fo,dispatch:Eo}=this.props,Bo=(0,Oo.XM)();fo==="recommend"&&!Bo&&!((jt=MB.commonGuideHelper)!=null&&jt.checkGuideHasShown(Co.c.GUIDE_NOVICE_V9_2408))&&!((Dt=MB.commonGuideHelper)!=null&&Dt.checkGuideHasShown(Co.c.GUIDE_NOVICE_V9_2408_STEP_1))&&setTimeout(()=>{Zt!==V.lS.Builtin&&Eo({type:"entry:active:popup:panel",payload:{name:V.lS.Builtin}})},0)}componentDidUpdate(jt){const{currentPopupPanel:Dt}=this.props,{currentPopupPanel:Zt}=jt;Dt!==Zt&&Vn.A.emit(Gt.jy,{observeMtItemObj:{}})}render(){const{currentPopupPanel:jt,isShowHistoryPanel:Dt,isShowSearchPanel:Zt,showGlobalHeader:fo,popupsPanelName:Eo,isEmptyScreen:Bo}=this.props,xn=jt===V.lS.AI;return Bo?null:Dt?(0,a.jsx)(rc,{}):jt||Zt?(0,a.jsxs)(Ks.A,{id:Eo,className:"popups-panel","data-is-widget-insertable":!1,children:[!xn&&(0,a.jsx)(jl.F,{show:fo}),Zt?(0,a.jsx)(N0.P,{}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Wi,{}),(0,a.jsx)(hr.x,{}),(0,a.jsx)(G0,{}),(0,a.jsx)(c0,{}),(0,a.jsx)(ma,{}),(0,a.jsx)(lc,{}),(0,a.jsx)(zd,{}),(0,a.jsx)(th,{})]}),(0,a.jsx)(Eh,{})]}):null}}const kh=(0,g.Mz)([l.OW,l.SE,l.ut,l.B8,k.lj,Lc.C,p.MZ],(Ge,jt,Dt,Zt,fo,Eo,Bo)=>{let{isEmptyScreen:xn}=Eo;return{currentPopupPanel:Ge,isShowHistoryPanel:jt,isShowSearchPanel:Dt,popupsPanelName:Zt,showGlobalHeader:fo,isEmptyScreen:xn,layoutV9:Bo}}),Dc=(0,m.Ng)(Ge=>kh(Ge))(p0)},94137:(Et,ke,e)=>{"use strict";e.d(ke,{Z:()=>g,g:()=>l});var o=e(21676),m=e(36349);const g=o.Ay.div.withConfig({displayName:"styles__StyledDndContent",componentId:"sc-163z1lt-0"})(["position:relative;flex:1;transition:box-shadow 0.2s ease-in-out;padding-bottom:",'px;&.is-active{&::after{content:"";position:absolute;z-index:1;top:0;left:0;right:0;bottom:0;border:2px solid #7fbbfb;pointer-events:none;}}.group-main{position:relative;height:100%;#group-list{height:100%;overflow-x:hidden;overflow-y:overlay;}}'],C=>C.isShowUpgradeButton?56:0),l=(0,o.Ay)(m.A).withConfig({displayName:"styles__StyledRecentPanelContent",componentId:"sc-163z1lt-1"})(["width:250px;&.icon-content{margin:0 0 8px 0;}&.recent-panel-content{.combos-container,.screens-container{display:flex;flex-flow:row wrap;padding:0 4px 0 12px;.template-item{margin:0 8px 10px 0;}.combo-item{margin:0 8px 10px 0;}li > .img-wrapper{width:109px;height:109px;}}.icon-list{display:grid;grid-row-gap:7px;grid-column-gap:8px;padding:0 12px;grid-template-columns:repeat(5,1fr);& > li{border:none;border-radius:6px;transition:all 0.2s ease-out 0s;&:hover{background:",";}}}.collapse-panel{.arrow-icon{width:16px;}.title{color:",";font-size:14px;font-weight:500;}}}"],C=>C.theme.color_btn_secondary_hover,C=>C.theme.color_text_L2)},43727:(Et,ke,e)=>{"use strict";e.d(ke,{V:()=>g,W:()=>m});var o=e(79494);let m=function(l){return l[l.Everyone=o.b2.Everyone]="Everyone",l[l.MdMemberFree=o.b2.MdMemberFree]="MdMemberFree",l[l.MdMemberDiscount=o.b2.MdMemberDiscount]="MdMemberDiscount",l[l.MdOriginPrice=o.b2.MdOriginPrice]="MdOriginPrice",l[l.MktMemberFree=o.b2.MktMemberFree]="MktMemberFree",l[l.MktMemberDiscount=o.b2.MktMemberDiscount]="MktMemberDiscount",l[l.MktOriginPrice=o.b2.MktOriginPrice]="MktOriginPrice",l}({}),g=function(l){return l.Builtin="\u5185\u7F6E",l.User="\u6211\u7684",l.Org="\u4F01\u4E1A",l.Find="\u53D1\u73B0",l.AIComponent="AI\u7EC4\u4EF6",l}({})},33270:(Et,ke,e)=>{"use strict";e.d(ke,{AG:()=>de,Cs:()=>E,FS:()=>h,K1:()=>_,Z1:()=>a,ZU:()=>ce,Z_:()=>y,_4:()=>fe,f9:()=>f,jA:()=>se,kn:()=>N,lU:()=>u,o3:()=>S,qT:()=>$});var o=e(76713),m=e.n(o),g=e(63555),l=e(31632),C=e(52781),T=e(64835),A=e(63508),k=e(72907);const p=J=>{const{next_billing_on:ve}=J;return!dayjs().startOf("day").isBefore(dayjs(ve).subtract(1,"day"))},r=J=>{if(!J)return!1;const ve=p(J),{paid:D}=J;return!D&&!ve},x=J=>J&&["paid_org","solo"].indexOf(J==null?void 0:J.login_plan)!==-1,f=J=>{const{is_star:ve}=J,{isPurchased:D,isVipTemplate:R,isMdVipTemplate:V,isMktVipTemplate:O}=(0,T.TX)(J);return{isStar:ve,isPurchased:D,isVipTemplate:R,isMdVipTemplate:V,isMktVipTemplate:O}},u=async function(J,ve,D){D===void 0&&(D=!0);try{J?await(0,C.$z)(ve):await(0,C.a3)(ve),D&&MB.notice({text:J?I18N.Resources.user_resource_panel.success_unstore:I18N.Resources.user_resource_panel.success_store})}catch(R){(0,k.$r)()}},b={combo_group:{payEntrance:"\u7F16\u8F91\u533A-v8_\u539F\u578B\u7D20\u6750\u9762\u677F-\u7EC4\u4EF6_\u5347\u7EA7VIP",checkoutPlace:"workspace-v8_components_use_vip"},screen_list:{payEntrance:"\u7F16\u8F91\u533A-v8_\u539F\u578B\u7D20\u6750\u9762\u677F-\u9875\u9762_\u5347\u7EA7VIP",checkoutPlace:"workspace-v8_pages_use_vip"},icon_group:{payEntrance:"\u7F16\u8F91\u533A-v8_\u539F\u578B\u7D20\u6750\u9762\u677F-\u5F69\u8272\u56FE\u6807_\u5347\u7EA7VIP",checkoutPlace:"workspace-v8_color_icon_use_vip"},asset:{payEntrance:"\u7F16\u8F91\u533A-v8_\u539F\u578B\u7D20\u6750\u9762\u677F-\u8D34\u7EB8_\u5347\u7EA7VIP",checkoutPlace:"workspace-v8_sticker_use_vip"}},h=J=>["combo_group","screen_list","icon_group","asset"].includes(J)?b[J]:{payEntrance:"\u7F16\u8F91\u533A-v8_\u539F\u578B\u7D20\u6750\u9762\u677F-\u4F7F\u7528\u7D20\u6750_\u5347\u7EA7VIP",checkoutPlace:"workspace-v8_template_use_vip"},E=(J,ve)=>{var D,R;if(!ve||!J)return;const V=(D=J.getBoundingClientRect())==null?void 0:D.top,O=(R=ve.getBoundingClientRect())==null?void 0:R.top;J.scrollTo({top:O-V,left:0,behavior:"smooth"})},N=J=>m()(J).isBefore(m()("2022-03-22 23:59:59")),z=J=>dayjs(J).isBefore(dayjs("2022-06-14 00:00:00")),S=(J,ve)=>{const{isMdVipDiscountTemplate:D,isMktVipFreeTemplate:R,isMktVipDiscountTemplate:V}=(0,T.TX)(J),{isBeforeMdMember:O,isMktMember:Ce}=(0,A.s)(ve,MB.currentOrg),{canDirectUse:ae}=(0,A.F)(J,ve,MB.currentOrg);return{show:!ae,isMktMember:Ce,hasDiscount:O&&(D||R||V)}},_=(J,ve)=>{const{isMktMember:D}=(0,A.s)(ve,MB.currentOrg);return{show:J&&!D}},y=(J,ve,D)=>J.map(R=>{const V=R.market_templates.map(O=>O.cid===ve?D(O):O);return{...R,market_templates:V}}),a=(J,ve,D)=>{const R=new Map;for(const[V,O]of J){const Ce=y(O,ve,D);R.set(V,Ce)}return R},$=J=>{let{url:ve,tab:D,width:R,height:V,tags:O}=J;return{asset_cid:"findPicture_"+ve,created_at:new Date().getTime(),group_cid:"findPicture_"+D,height:V,width:R,name:I18N.Resources.image_example,size:999,image:"/res-img/org/"+ve,thumb:"/res-img/thmb/"+ve,timestamp:0,tags:"",img_tag:O}},ce=J=>{let{url:ve,tab:D,name:R,thumb_url:V,res_id:O}=J;return{id:O||-1,asset_cid:"findSticker_"+ve,created_at:new Date().getTime(),group_cid:"findSticker_"+D,height:180,width:320,name:R,size:999,image:ve,thumb:V||ve,timestamp:0,tags:"",img_tag:[]}},de=()=>{const J=MB.getCurrentProjectMeta().cid;return sdkStore.findAllTypeUnder("B@ref-muban","rResBunch").map(ve=>({...ve,flpakKey:J})).filter(ve=>{let{hotAttr:{bunch:D}}=ve;return D===g.x.RbPage}).map(ve=>{let{hotAttr:D,...R}=ve;return{...R,...D,cid:R.key,width:D.w,height:D.y,hotAttr:D}}).reverse()},fe=async J=>{const ve=await Promise.all(J.map(async V=>{const O=await(0,C.Yk)(V),{marketTemplateItemListMap:Ce,marketTemplateListDataMap:ae}=await(0,l.Ci)(O);return{itemListMap:Ce,dataMap:ae}}));let D=new Map,R=new Map;return ve.forEach(V=>{let{itemListMap:O,dataMap:Ce}=V;D=new Map([...D,...O]),R=new Map([...R,...Ce])}),{marketTemplateItemListMap:D,marketTemplateListDataMap:R}},se=async(J,ve)=>{const D=new Map;for(const R of J){const V=ve.get(R),O=await(0,C.rd)(V);D.set(R,O)}return{mtSdkStoreListMap:D}}},82658:(Et,ke,e)=>{"use strict";e.d(ke,{$I:()=>C,IA:()=>m,SR:()=>g});var o=e(4114);let m=function(A){return A.AIPanel="AI\u9762\u677F",A.SearchPanel="\u641C\u7D22\u9762\u677F",A.ComboPanel="\u7EC4\u4EF6\u9762\u677F",A.PagePanel="\u9875\u9762\u9762\u677F",A}({}),g=function(A){return A.AIAssistant="AIAssistant",A.Page="Page",A.PageV9="PageV9",A.Flow="flow",A.Mind="mind",A.Table="table",A.Chart="chart",A.AutoFill="autofill",A.Semantic="semantic",A.Combo="combo",A}({}),l=function(A){return A.page="page",A.component="component",A.other="other",A.semantic="semantic ",A}({});const C=(0,o.R)(()=>[{label:I18N.ChatGPT.ai_prototype,title:I18N.ChatGPT.ai_prototype_title,type:g.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:l.page,icon:"chatGPT/ai-component-page",desc:I18N.ChatGPT.ai_prototype_desc,className:"ai-page",componentTitle:I18N.ChatGPT.ai_prototype_component_title},{label:I18N.ArtBoard.flow,title:I18N.ChatGPT.ai_flow_title,type:g.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:l.component,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:g.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:l.component,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:g.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:l.component,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:g.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:l.component,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:g.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:l.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:g.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:l.semantic,icon:"chatGPT/ai-component-autofill",desc:I18N.ChatGPT.ai_magicFill_desc,className:"ai-magic-fill"}]),T=(0,o.R)(()=>[{title:I18N.ChatGPT.ai_prototype,items:C().filter(k=>k.menu===l.page)},{title:I18N.ChatGPT.ai_advanced_components,items:C().filter(k=>k.menu===l.component)},{title:I18N.ChatGPT.ai_magic_fill,items:C().filter(k=>k.menu===l.other)}])},42205:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>$});var o=e(74059),m=e(51044),g=e(86634),l=e.n(g),C=e(67231),T=e.n(C),A=e(7290),k=e(9126),p=e(11777),r=e(71604),x=e(14116),f=e(63555),u=e(58314),b=e(59475),h=e(59742),E=e(24016),N=e(44622),z=e(57464);class S extends m.PureComponent{constructor(de){super(de),(0,o.A)(this,"setElementRef",fe=>this.$element=fe),(0,o.A)(this,"handleMouseDown",fe=>{const{isEditing:se}=this.state;if(se)return;const{onMouseDown:J,onContextMenu:ve}=this.props;if(fe.button===0)this.timer=setTimeout(()=>{J&&this.$element&&J(fe,this.$element)},200);else if(fe.button===2){if(MB.f.editing||(fe.preventDefault(),fe.ctrlKey))return;ve&&ve(fe)}}),(0,o.A)(this,"handleMouseUp",()=>{clearTimeout(this.timer)}),(0,o.A)(this,"handleToggleLock",fe=>{fe.stopPropagation();const{widget:se,onLock:J}=this.props;J(se)}),(0,o.A)(this,"handleToggleVisible",fe=>{fe.stopPropagation();const{widget:se,onVisible:J}=this.props;J(se)}),(0,o.A)(this,"handleToggleExpand",fe=>{fe.stopPropagation();const{onToggleExpanded:se}=this.props;se()}),(0,o.A)(this,"handleDoubleClick",()=>{const{isDisabled:fe}=this.props;fe||this.setState({isEditing:!0})}),(0,o.A)(this,"handleConfirm",async(fe,se)=>{if(se){const{onChangeDisplayName:J}=this.props;await J(fe)}this.setState({isEditing:!1})}),(0,o.A)(this,"onShowTipsByTarget",(fe,se)=>{const J=se.querySelector(".editable-name");return J.offsetWidth<J.scrollWidth}),this.state={isEditing:!1}}stopPropagation(de){de.stopPropagation()}render(){var de;const{index:fe,depth:se,isSelect:J,isExpanded:ve,isHover:D,isDisabled:R,isLinked:V,widget:O,onClick:Ce,onMouseEnter:ae,onMouseLeave:q,onClickLink:K,onClickIcon:xe,initPaddingLeft:te,paddingLeftLayout:H,isDummySelect:re,treeNode:be,onlyView:Le,showAction:Ve,maxOrderDigit:Ne,isCanvasList:We,isPreview:ze,isHomepage:ft,continuousGroup:mt}=this.props;if(!be)return null;const{isEditing:i}=this.state,{isLock:gt,isVisible:Je}=be==null?void 0:be.widget,Pt=(0,r.WM)(O),bt=(O==null?void 0:O.type)===f.x.WBasket&&(O==null?void 0:O.basket)==="bDanli",qt=gt?"lock":"unlock",pt=Je?"visible":"invisible",$t=Ve&&!R&&!i,go=(be==null||(de=be.children)==null?void 0:de.length)>0&&!bt&&(O==null?void 0:O.type)!==f.x.WMind,Co=(0,E.N8)(se,H,te),{isContinuousStart:Tt,isContinuousEnd:mo,isContinuousMiddle:jo}=(0,N.M5)(be.key,mt);return(0,z.jsx)(p.A,{content:R?(0,z.jsx)(_,{}):Pt,direction:"right",distance:5,onMouseEvent:"onDoubleClick",isShowTipsByTarget:R?void 0:this.onShowTipsByTarget,style:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box","-webkit-line-clamp":"10","-webkit-box-orient":"vertical",lineHeight:"20px",textAlign:"left"},children:(0,z.jsxs)("div",{"data-interactive-target-key":be.key,"data-interactive-target-type":We?u.E.canvasList:"",ref:this.setElementRef,className:l()("rn-list-item","layer-item",{active:J,"dummy-select":re,"is-disabled":R,"is-hidden":!Je,"is-locked":gt,hover:D,"is-linked":V,"is-not-drag":(0,h.OO)(be==null?void 0:be.cid),"interactive-target-hotspot":We,"is-continuous-start":Tt,"is-continuous-end":mo,"is-continuous-middle":jo}),style:{paddingLeft:Co},onClick:Ce,onMouseEnter:ae,onMouseLeave:q,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onDoubleClick:this.handleDoubleClick,children:[T()(fe)&&Ne&&(0,z.jsx)(b.MI,{len:JSON.stringify(Ne).length,children:fe}),go&&(0,z.jsx)("a",{className:"expander",onClick:this.handleToggleExpand,onDoubleClick:this.stopPropagation,children:(0,z.jsx)(A.C,{className:l()("arrow-icon",{"is-expand":ve}),name:"common/expand"})}),!ze&&(0,z.jsx)("div",{className:"layer-item-icon",onDoubleClick:xe,children:(0,z.jsx)(k.A,{widget:O,isDynamic:bt,isExpanded:ve})}),Le?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)("span",{className:"editable-name",children:Pt}),ft&&(0,z.jsx)(A.C,{className:"homepage",name:"toolbar/preview/homepage"}),!Je&&!$t&&(0,z.jsx)(A.C,{className:"homepage invisible",name:"common/invisible"})]}):(0,z.jsxs)(z.Fragment,{children:[R?(0,z.jsx)("span",{className:"editable-name",children:Pt}):(0,z.jsx)(x.A,{value:Pt,className:"editable-name",isEditing:i,onConfirm:this.handleConfirm},Pt),$t&&(0,z.jsxs)("div",{className:"actions",onDoubleClick:this.stopPropagation,children:[(0,z.jsx)("i",{className:l()("action"),onClick:this.handleToggleVisible,children:(0,z.jsx)(A.C,{name:"left_panel/"+pt,className:"eye-icon"})}),(0,z.jsx)("i",{className:"action",onClick:this.handleToggleLock,children:(0,z.jsx)(A.C,{name:"left_panel/"+qt,className:"lock-icon"})}),(0,z.jsx)("i",{className:"action",onClick:K,children:(0,z.jsx)(A.C,{name:"left_panel/link_mark",className:"link-icon"})})]})]})]})})}}const _=()=>(0,z.jsx)("p",{style:{textAlign:"justify"},children:I18N.ScreenPanel.layer_item_disabled});var y=e(19216);const a=[f.x.WSticky];class $ extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleClick",de=>{de.stopPropagation();const{treeNode:fe,treeProps:{onClick:se}}=this.props;se(de,fe)}),(0,o.A)(this,"handleMouseDown",(de,fe)=>{const{onlyView:se,treeNode:J,treeProps:{onMouseDown:ve}}=this.props;se||ve(de,J,fe)}),(0,o.A)(this,"handleContextMenu",de=>{const{onlyView:fe,treeNode:se,treeProps:{onContextMenu:J}}=this.props;fe||J(de,se)}),(0,o.A)(this,"handleMouseEnter",()=>{const{treeNode:de,treeProps:{onMouseEnter:fe}}=this.props;fe&&fe(de)}),(0,o.A)(this,"handleMouseLeave",()=>{const{treeNode:de,treeProps:{onMouseLeave:fe}}=this.props;fe&&fe(de)}),(0,o.A)(this,"handleToggleExpanded",()=>{const{treeNode:{cid:de},treeProps:{onToggleExpanded:fe}}=this.props;fe(de)}),(0,o.A)(this,"handleClickLink",de=>{de.stopPropagation();const{treeNode:fe,treeProps:{onClick:se}}=this.props;se(de,fe);const ve=(0,y.Xr)(fe.widgetStore.sdkStore,fe.key,fe.runningIsEditingCombo,fe.editingBDanliKey).find(D=>D.interactive);ve?MB.action("entry:select:link",{link:ve}):MB.action("links:active:link",{cid:[]}),MB.action("right-side-panel:show:panel"),MB.action("settings:set:autoTabIndex",{autoTabIndex:1})}),(0,o.A)(this,"handleClickIcon",de=>{de.stopPropagation();const{treeProps:{onClickIcon:fe}}=this.props;fe()})}render(){var de,fe;const{index:se,depth:J,treeNode:ve,hoverItem:D,newSelection:R,treeProps:V,childrenSelect:O,initPaddingLeft:Ce,paddingLeftLayout:ae,dummySelect:q,layerExpandedKeySet:K,onlyView:xe,isHomepage:te,showAction:H,maxOrderDigit:re,isCanvasList:be,isPreview:Le,continuousGroup:Ve}=this.props,{ref:Ne,cid:We,widget:ze,children:ft}=ve,{onLock:mt,onVisible:i,onChangeDisplayName:gt}=V,Je=D===Ne,Pt=R.some(jo=>jo===We),bt=O?!0:Pt&&ve.type===f.x.WWrap&&ve.children.length>=1;if(a.includes(ze.type))return null;const qt=K.has(We),pt=(ze==null?void 0:ze.type)===f.x.WBasket&&(ze==null?void 0:ze.basket)==="bDanli",$t=(ze==null?void 0:ze.type)===f.x.WBasket&&(ze==null?void 0:ze.basket)==="bMuban",go=(ze==null?void 0:ze.type)===f.x.WMind,Co=q==null?void 0:q.has(ve.cid),Tt=(de=$t?(fe=ft[0])==null?void 0:fe.children:ft)!=null?de:[],mo=(0,y.Xr)(ve.widgetStore.sdkStore,ve.key,ve.runningIsEditingCombo,ve.editingBDanliKey);return(0,z.jsxs)("li",{"data-cid":We,className:"rn-content-item",children:[(0,z.jsx)(S,{index:se,depth:J,widget:ze,treeNode:ve,initPaddingLeft:Ce,paddingLeftLayout:ae,isHover:Je,isSelect:Pt,isExpanded:qt,isLinked:mo.some(jo=>jo.interactive),isDummySelect:Co,maxOrderDigit:re,isCanvasList:be,onClick:this.handleClick,onClickLink:this.handleClickLink,onContextMenu:this.handleContextMenu,onMouseDown:this.handleMouseDown,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onToggleExpanded:this.handleToggleExpanded,onLock:mt,onVisible:i,onChangeDisplayName:gt,onClickIcon:this.handleClickIcon,onlyView:xe,isHomepage:te&&te(We),isPreview:Le,showAction:H,continuousGroup:Ve}),Tt.length>0&&qt&&!pt&&!go&&(0,z.jsx)("ul",{className:"children",children:Tt.map((jo,Kt)=>(0,z.jsx)($,{initPaddingLeft:Ce,paddingLeftLayout:ae,depth:J+1,treeNode:jo,hoverItem:D,newSelection:R,childrenSelect:bt,treeProps:V,dummySelect:q,layerExpandedKeySet:K,continuousGroup:Ve,onlyView:xe,isHomepage:te,showAction:H,maxOrderDigit:re},jo.cid))})]})}}(0,o.A)($,"defaultProps",{layerExpandedKeySet:new Set,dummySelect:new Set,paddingLeftLayout:4,showAction:!0})},59475:(Et,ke,e)=>{"use strict";e.d(ke,{MI:()=>T,PN:()=>C,u6:()=>l});var o=e(21676),m=e(15335),g=e(48590);const l=(0,o.AH)(["width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:2px;cursor:pointer;.svg-icon{width:20px;height:20px;}svg.group-icon{path:first-child{fill:transparent;stroke:",";}path:last-child{fill:",";stroke:",";}}.icon{color:",";& > *{fill:currentColor;}&.old-icon,&.svg-icon-path-icon{width:14px;height:14px;",";}&.design-progress_chart-new{path:first-child{fill:#a4adb3;}}}.is-multi-color-icon{width:14px;height:14px;}"],A=>A.theme.color_text_L2,A=>A.theme.color_bg_border_02,A=>A.theme.color_text_L2,A=>A.theme.color_text_L1,m.T),C=o.Ay.div.withConfig({displayName:"styles__StyledComponentList",componentId:"sc-1wn9qcs-0"})(["width:100%;height:100%;display:flex;flex-direction:column;overflow:hidden;.layer-scroll-list{flex:1;overflow-x:hidden;overflow-y:overlay;.layer-sortable-list{position:relative;min-height:100%;",";.layer-item{",";padding-left:28px;color:",";background-color:",";&.is-disabled{&.active{color:",";}}&.dummy-select{background:",";}&.is-not-drag{.editable-name,.layer-item-icon svg.svg-icon{color:#808080;}}&.active{background:",";}&:not(.active):not(.dummy-select):hover,&:not(.active):not(.dummy-select).hover{background:",";}.expander{display:flex;align-items:center;justify-content:center;margin-left:-15px;margin-right:1px;width:14px;height:14px;.arrow-icon{margin-right:0;color:#999;width:8px;&:not(.is-expand){transform:rotate(-90deg);}}}.layer-item-icon{",";}.group-icon{opacity:1;.main{fill:#1684fc;}}.ant-icon{width:16px;height:16px;color:#8d9ea7;}.editable-name{flex:1;margin-right:0;border:none;",";}.action{width:20px;height:20px;display:flex;align-items:center;justify-content:center;visibility:hidden;cursor:pointer;.svg-icon{width:20px;height:20px;}&.disabled{color:"," !important;cursor:not-allowed;}}&:hover{.action{visibility:visible;}}&:hover,&.hover,&.active{.arrow-icon{color:#999;}.actions{background-color:transparent;}}&.is-disabled{& > *{opacity:0.4;}.actions{display:none;background:inherit;}}&.is-hidden{.eye-icon{visibility:visible;}}&.is-locked{.lock-icon{visibility:visible;}}&.is-linked{.link-icon{visibility:visible;color:",";}}&.is-hidden,&.is-locked,&.is-linked{.actions{display:flex;align-items:center;}}}}}.search-bar{border-radius:100px;width:calc(100% - 48px);margin:8px 24px 6px;}.old-right-header{display:flex;align-items:center;.search-bar{width:calc(100% - 54px);margin:8px 8px 6px 14px;}}.layer-scroll-list{padding:8px;.layer-sortable-list{.layer-item{border-radius:6px;.editable-span,.editable-name{&.is-editing{textarea{margin-right:18px;border:1px solid #0077FF;border-radius:6px;line-height:16px;padding:3px 6px;}}}.actions{.action{margin-right:4px;&:last-child{margin-right:0;}}}}}}"],g.eP,g.Aw,A=>A.theme.color_text_L1,A=>A.theme.color_bg_white,A=>A.theme.color_proto,A=>A.theme.color_directory_hover,A=>A.theme.color_directory_active,A=>A.theme.color_directory_hover,l,g.L9,A=>A.theme.color_text_disabled01,A=>A.theme.color_proto),T=o.Ay.span.withConfig({displayName:"styles__StyledOrderSpan",componentId:"sc-1wn9qcs-1"})(["display:inline-block;font-size:12px;font-weight:500;color:",";width:","px;"],A=>A.theme.color_text_L1,A=>24+(A.len>2?(A.len-2)*6:0))},33169:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>fe});var o=e(74059),m=e(51044),g=e(86634),l=e.n(g),C=e(11777),T=e(19722),A=e(19418),k=e(88319),p=e(21676),r=e(48590);const x=p.Ay.div.withConfig({displayName:"styles__StyledScreenActionsMenu",componentId:"sc-1fn9xyn-0"})(["",";&.is-open{.action-menu-opener{background:",";}}"],r.n9,se=>se.theme.color_btn_secondary_active);var f=e(57464);class u extends m.PureComponent{constructor(J){var ve;super(J),ve=this,(0,o.A)(this,"setElementRef",D=>this.$element=D),(0,o.A)(this,"handleClickAction",D=>{D.stopPropagation(),this.handleToggleActionMenu()}),(0,o.A)(this,"handleToggleActionMenu",function(D){D===void 0&&(D=void 0);const{isOpenScreenActionsMenu:R}=ve.state,{onCloseGuide:V}=ve.props,O=D===void 0?!R:D;ve.setState({isOpenScreenActionsMenu:O}),O&&V&&V()}),(0,o.A)(this,"actionToggleExpanded",D=>{const{handleToggleExpanded:R,isPreview:V,dispatch:O}=this.props;D.stopPropagation(),R(),this.handleToggleActionMenu(!1),!V&&setTimeout(()=>{O({type:"entry:update:screen_list_rect"})},50)}),(0,o.A)(this,"actionOpenTrash",D=>{D.stopPropagation(),this.props.handleOpenTrash(),this.handleToggleActionMenu(!1)}),(0,o.A)(this,"handleMultipleSelect",()=>{const{isMultiplePage:D,dispatch:R}=this.props;R({type:"screen:update:state",payload:{isMultiplePage:!D}}),this.handleToggleActionMenu(!1)}),(0,o.A)(this,"getScreenActionsMenuItems",()=>{const{isPreview:D,hasFoldedScreen:R,isEditingCombo:V,isMultiplePage:O,isOnlyView:Ce}=this.props;return V?[{isShow:!0,label:R?I18N.LeftSidePanel.expand_combo:I18N.LeftSidePanel.collapse_combo,onClick:this.actionToggleExpanded},{isShow:!0,label:"divider"},{isShow:!0,label:I18N.ToolBar.widget_trash_bin,onClick:this.actionOpenTrash}]:[{isShow:!0,label:R?I18N.LeftSidePanel.expand_page:I18N.LeftSidePanel.collapse_page,onClick:this.actionToggleExpanded},{isShow:!Ce&&!D,label:(0,f.jsx)("span",{className:"exit-multiple-btn-in-list-menu",children:O?I18N.LeftSidePanel.exit_multi_select:I18N.LeftSidePanel.multi_select_page}),onClick:this.handleMultipleSelect},{isShow:!D,label:"divider"},{isShow:!D,label:I18N.LeftSidePanel.page_recycle_bin,onClick:this.actionOpenTrash}]}),(0,o.A)(this,"handleDocDown",D=>{let{target:R}=D;const{isOpenScreenActionsMenu:V}=this.state;V&&(R.closest(".screenHeaderAction")||R.closest(".list-content")||this.handleToggleActionMenu(!1))}),this.state={isOpenScreenActionsMenu:!1}}render(){const{isOpenScreenActionsMenu:J}=this.state,{className:ve}=this.props,D=this.getScreenActionsMenuItems();return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(C.A,{content:I18N.LeftSidePanel.menu,direction:"down",children:(0,f.jsx)(x,{className:l()("screenHeaderAction",{"is-open":J},ve),ref:this.setElementRef,onClick:this.handleClickAction,children:(0,f.jsx)(T.A,{className:"action-menu-opener",name:"left_panel/screen_action_menu"})})}),J&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(k.A,{targetNode:this.$element,direction:"right-start",distance:0,menuItems:D}),(0,f.jsx)(A.A,{target:document,onMouseDown:(0,A.t)(this.handleDocDown,{capture:!0})})]})]})}}(0,o.A)(u,"defaultProps",{isPreview:!1,handleOpenTrash:()=>null});var b=e(94498),h=e(39271),E=e(94153),N=e(67234);const z=p.Ay.div.withConfig({displayName:"styles__StyledMultiplePageTop",componentId:"sc-1x5cwqh-0"})(["width:100%;height:100%;display:flex;align-items:center;.page-count{font-size:12px;font-weight:400;line-height:16px;color:",";margin-left:8px;}"],se=>se.theme.color_text_L1);var S=e(36875),_=e(72605);const y=(se,J)=>se.length!==J.length?!1:se.every(ve=>J.includes(ve)),a=se=>{const{screenSelection:J,handleSelectAll:ve,displayTreeData:D}=se,{screenDataMap:R,currentPage:V,keyword:O}=(0,_.d4)(E.CY);D||(0,S.Cp)(new Error("DEBUG setry issue 57258"),{level:"debug",fingerprint:["debug-sentry-issue-57258"],extra:{displayTreeData:JSON.stringify(D),screenSelection:J,screenDataMap:Object.keys(R),currentPage:V==null?void 0:V.key,keyWord:O}});const Ce=D.children.map(H=>H.cid),ae=(0,m.useMemo)(()=>(0,h.BH)(Ce),[Ce]),q=(0,m.useMemo)(()=>(0,h.FT)(J),[J]),K=(0,m.useMemo)(()=>J.length===0,[J]),xe=(0,m.useMemo)(()=>y(ae,J),[ae,J]),te=!xe&&!K?"mixed":xe;return(0,f.jsxs)(z,{className:"multiple-page-top",children:[(0,f.jsx)(N.A,{attr:"isMultiplePage",isChecked:te,onChange:ve}),(0,f.jsx)("span",{className:"page-count",children:I18N.SettingPanel.choose_pages2.replace(/%page/,q.length)})]})},$=(0,m.memo)(a);var ce=e(78647);const de=p.Ay.div.withConfig({displayName:"styles__StyledScreenHeader",componentId:"sc-e653cx-0"})(["height:40px;display:flex;align-items:center;border-top:1px solid transparent;border-bottom:1px solid ",";flex-shrink:0;&:not(.is-search-mode){padding:0 11px 0 24px;&.isCommunityPreview{padding:0 6px 0 14px;}}.title{color:",";font-weight:500;}.screen-title-right{display:flex;margin-left:auto;align-items:center;height:100%;color:#415058;transition:flex 0.2s ease-in-out;.box{&:not(:first-child){margin-left:4px;}}.svg-icon{width:24px;height:24px;}.arrow-icon{margin-left:4px;.svg-icon{transform:rotate(-90deg);}&.expanded .svg-icon{transform:rotate(0);}}}.header-icon{",";}"],se=>se.theme.color_bg_border_01,se=>se.theme.color_text_L1,r.n9);class fe extends m.PureComponent{constructor(J){super(J),(0,o.A)(this,"handleOpenSearch",()=>{this.setState({isSearching:!0})}),(0,o.A)(this,"handleExitSearch",ve=>{ve.stopPropagation(),this.setState({isSearching:!1});const{keyword:D,onSearch:R}=this.props;D&&R("")}),(0,o.A)(this,"handleNewScreen",ve=>{ve.preventDefault();const{isEditingCombo:D,dispatch:R}=this.props;if(D){R({type:"entry:auto:create:combo:on:screenList"});return}R({type:"entry:create:screen:auto:to:root-project"})}),(0,o.A)(this,"handleNewScreenFolder",ve=>{ve.preventDefault();const{isEditingCombo:D,dispatch:R}=this.props;if(D){R({type:"entry:auto:create:comboGroup:on:screenList"});return}R({type:"entry:create:screen_folder:auto:to:root-project"})}),(0,o.A)(this,"handleToggleExpanded",()=>{const{hasFoldedScreen:ve,onToggleExpanded:D}=this.props;D(ve)}),(0,o.A)(this,"handleOpenTrash",()=>{const{dispatch:ve,isEditingCombo:D,isEditingUserCombo:R}=this.props;ve({type:"modal:update:state",payload:{screenTrashModal:{isOpen:!0,isEditingCombo:D,isEditingUserCombo:R}}})}),(0,o.A)(this,"handleCloseGuide",()=>{const{onlyView:ve,isPreview:D}=this.props;ve||D||MB.commonGuideHelper.checkGuideHasShown(ce.c.GUIDE_TOOLBAR_TRASH)&&MB.commonGuideHelper.closeGuide(ce.c.GUIDE_TOOLBAR_TRASH)}),(0,o.A)(this,"handleSelectAll",ve=>{const{displayTreeData:D,dispatch:R}=this.props,V=D.children.map(O=>O.cid);typeof ve=="boolean"&&R({type:"screen:update:state",payload:{screenSelection:ve?(0,h.BH)(V):[]}})}),this.state={isSearching:!1}}render(){const{isEditingCombo:J,isMultiplePage:ve,keyword:D,hasFoldedScreen:R,onlyView:V,nonFolderPGCount:O,isPreview:Ce,isCommunityPreview:ae,onSearch:q,screenSelection:K,displayTreeData:xe,dispatch:te}=this.props,{isSearching:H}=this.state,re=J?I18N.LeftSidePanel.widget:V||Ce?I18N.LeftSidePanel.page+"\uFF08"+O+"\uFF09":I18N.LeftSidePanel.page;return(0,f.jsx)(de,{className:l()("header",{"is-search-mode":H},{isCommunityPreview:ae}),children:H?(0,f.jsx)(b.A,{keyword:D,placeholder:I18N.ScreenPanel.keyword_search,onChangeKeyword:q,onExitSearch:this.handleExitSearch}):(0,f.jsxs)(f.Fragment,{children:[ve?(0,f.jsx)($,{screenSelection:K,displayTreeData:xe,handleSelectAll:this.handleSelectAll}):(0,f.jsx)("span",{className:"title",children:re}),(0,f.jsxs)("div",{className:l()("screen-title-right",{"is-search-mode":H}),children:[!ve&&!(V||Ce)&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(C.A,{content:J?I18N.LeftSidePanel.widget:I18N.LeftSidePanel.build_page,direction:"down",children:(0,f.jsx)("div",{className:"box screen-title",onClick:this.handleNewScreen,children:(0,f.jsx)(T.A,{className:"s-page",name:"common/add_plus"})})}),(0,f.jsx)(C.A,{content:J?I18N.LeftSidePanel.widget_folder:I18N.LeftSidePanel.build_page_folder,direction:"down",children:(0,f.jsx)("div",{className:"box screen-folder",onClick:this.handleNewScreenFolder,children:(0,f.jsx)(T.A,{className:"s-folder",name:"left_panel/screen/folder"})})})]}),(0,f.jsx)(C.A,{content:J?I18N.LeftSidePanel.search_widget:I18N.LeftSidePanel.search_page,direction:"down",children:(0,f.jsx)("div",{className:"box header-icon",onClick:this.handleOpenSearch,children:(0,f.jsx)(T.A,{name:"common/search"})})}),(0,f.jsx)(u,{className:ce.c.GUIDE_TOOLBAR_TRASH,hasFoldedScreen:R,handleToggleExpanded:this.handleToggleExpanded,handleOpenTrash:this.handleOpenTrash,onCloseGuide:this.handleCloseGuide,isPreview:V||Ce,isEditingCombo:J,isMultiplePage:ve,isOnlyView:V,dispatch:te})]})]})})}}},70110:(Et,ke,e)=>{"use strict";e.d(ke,{l:()=>g,n:()=>T});var o=e(36521),m=e(40778);const g=A=>"design_screen_collapse_keys_"+A,l={show:!1,position:{top:0,left:0},contextScreenSelection:[]},C={editingScreenMetaCid:"",screenTreeMap:{},screenDataMap:{},screenSelection:[],currentPage:{},isMultiplePage:!1,screenTreeData:{cid:"root",data:null,children:[]},contextMenuState:l,screenRange:{start:0,end:void 0},screenCollapseKeySet:new Set,selectNotMoveUpScreenSet:new Set,selectNotMoveDownScreenSet:new Set,selectScreenMetaParentSet:new Set,selectNotDownGradeScreenSet:new Set,screenInfoMap:new Map};function T(A,k){A===void 0&&(A=C);const{type:p,payload:r}=k;switch(p){case"screen:update:state":return{...A,...r};case"screen:set:all:screen-data":{const{screenTreeData:x,screenTreeMap:f,screenDataMap:u}=r;return{...A,screenTreeData:x,screenTreeMap:f,screenDataMap:u}}case"screen:update:editing-screen-cid":return{...A,editingScreenMetaCid:r.cid};case"screen:open:contextmenu":return{...A,contextMenuState:r.contextMenuState};case"screen:update:contextmenu:contextScreenSelection":return{...A,contextMenuState:{...A.contextMenuState,contextScreenSelection:r}};case"screen:close:contextmenu":return{...A,contextMenuState:l};case"screen:update:select:range":return{...A,screenRange:r.screenRange};case"screen:update:screen-selection":{const{screenSelection:x}=r;return{...A,screenSelection:x}}case"screen:update:collapseKeySet":{const{screenExpandedKeySetRef:x,projectCid:f}=r,u=new Set(A.screenCollapseKeySet);return A.screenCollapseKeySet.has(x)?u.delete(x):u.add(x),(0,m.OB)()&&(0,o.a0)(g(f),[...Array.from(u)],o.qW.Array),{...A,screenCollapseKeySet:u}}case"screen:del:collapseKeySet":{const{refs:x,projectCid:f}=r,u=new Set(A.screenCollapseKeySet);return x!=null&&x.length&&x.forEach(b=>u.has(b)&&u.delete(b)),(0,m.OB)()&&(0,o.a0)(g(f),[...Array.from(u)],o.qW.Array),{...A,screenCollapseKeySet:u}}case"screen:add:collapseKeySet":{const{refs:x,projectCid:f}=r,u=new Set([...Array.from(new Set(A.screenCollapseKeySet)),...x]);return f&&(0,m.OB)()&&(0,o.a0)(g(f),[...Array.from(u)],o.qW.Array),{...A,screenCollapseKeySet:u}}case"screen:reset:collapseKeySet":{const{projectCid:x,collapseKeyList:f=[]}=r,u=new Set(f);return(0,m.OB)()&&(0,o.a0)(g(x),[...Array.from(u)],o.qW.Array),{...A,screenCollapseKeySet:u}}case"screen:update:screenInfoMap":{const{screenInfoMap:x}=A,f=new Map(x),{key:u,value:b}=r;return f.set(u,b),{...A,screenInfoMap:f}}default:return A}}},60863:(Et,ke,e)=>{"use strict";e.d(ke,{Ed:()=>r,Hz:()=>E,NA:()=>b,Pv:()=>p,X3:()=>z,gu:()=>S,iZ:()=>f,o:()=>u,pV:()=>h});var o=e(44622),m=e(35078),g=e(35332),l=e(79700),C=e(95230),T=e(53955),A=e(78647),k=e(63555);const p=(_,y)=>{const $=(0,o.Bq)(_.sup||"root",y).children.map(fe=>fe.data),de=$.findIndex(fe=>fe.cid===_.key)+1;$.splice(de,0,null),$.forEach((fe,se)=>{if(fe&&(fe.sup!==_.sup||fe.zIndex!==se+1)){const J=sdkStore.getHotItem(fe.cid),ve={...J,hotAttr:{...J.hotAttr,zIndex:se+1}};sdkStore.updateHotItem(ve)}})},r=(_,y)=>{const a={};_.forEach(ce=>a[ce.key]={cid:ce.key,...ce.hotAttr,sup:ce.sup,sub:ce.sub});const{treeData:$}=x(a,y);return $},x=(_,y)=>{const{cid:a,data:$,children:ce}=y,de=!!_[a];let fe=!1;const se=_[a],J=ce.map(ve=>{const{isChanged:D,treeData:R}=x(_,ve);return D&&(fe=!0),R});return de||fe?{isChanged:!0,treeData:{...y,data:de?se:$,children:fe?J:ce}}:{isChanged:!1,treeData:y}},f=(_,y)=>{const a={...y};return _.forEach($=>a[$.key]=$),a},u=_=>{const{hotAttr:{asFolder:y,zIndex:a,name:$,...ce},sup:de}=_,fe={name:$+" Copy",zIndex:a+1,sup:de,asFolder:y,...ce},se=E(fe);return sdkStore.dupRBPageSub(_.key,se.key),se},b=(_,y)=>{var a;_!=null&&(a=_.sub)!=null&&a.length&&_.sub.forEach($=>{const ce=sdkStore.getHotItem($);if(ce.hotAttr.bunch===k.x.RbPage){const de={...ce.hotAttr,sup:y},fe=E(de);sdkStore.dupRBPageSub(ce.key,fe.key),b(ce,fe.key)}})},h=function(_,y,a){return y===void 0&&(y=!1),a===void 0&&(a=!1),y?I18N.LeftSidePanel.page_folder+" "+(_.filter($=>$&&(0,o.Mo)($)).length+1):(a?I18N.LeftSidePanel.widget:I18N.LeftSidePanel.page)+" "+(_.filter($=>$&&!(0,o.Mo)($)).length+1)},E=_=>{var y;let{name:a,sup:$,zIndex:ce=1,asFolder:de=!1,device:fe="customize",deviceH:se=0,deviceW:J=0,deviceOrientation:ve="portrait",w:D=0,h:R=0,alignH:V=[],alignV:O=[],icon:Ce,fill:ae,deviceScroll:q="vertical",isShowDeviceGuide:K=!0,store:xe=sdkStore}=_;const te=l.N[k.x.RbPage](a,ce,J,se,Ce||(0,m.eO)({asFolder:de}),D,R,""),H=(y=(0,T.dP)())==null?void 0:y.ui.fixedLayout.preference.theme,re={sup:$,key:(0,g.cF)("rbp"),hotAttr:{...te,asFolder:de,device:fe,deviceScroll:q,deviceOrientation:ve,alignH:V,alignV:O,fill:ae||{fillIsVisible:!1,fill:"solid",solidColor:C.kV[H||C.Sx.LIGHT]},isShowDeviceGuide:K}};return xe.updateHotItem(re),re},N=(_,y,a)=>{const $={deleteTime:Math.floor(Date.now()/1e3),deleteUserName:y==null?void 0:y.name};a.updateHotAttrMerge(_,{deleteInfo:$});const ce=sdkStore.getSubHotItemList(_).filter(de=>de.hotAttr.bunch===k.x.RbPage);ce!=null&&ce.length&&ce.forEach(de=>N(de.key,y,a))},z=function(_,y,a){a===void 0&&(a=sdkStore),N(_,y,a),a.moveHotItem(_,"B@trash")},S=(_,y)=>{_.forEach(a=>{z(a.key||a.cid,y)}),MB.commonGuideHelper.tryToShowGuide(A.c.GUIDE_TOOLBAR_TRASH)}},24016:(Et,ke,e)=>{"use strict";e.d(ke,{N8:()=>u,uX:()=>z,vl:()=>r,ww:()=>x,zD:()=>f});var o=e(50755),m=e.n(o),g=e(90056),l=e.n(g),C=e(28749),T=e.n(C),A=e(63555),k=e(39271),p=e(53955);const r=S=>[...sdkStore.findAllTypeUnderNoSubPage(S,A.x.Canvas).map(_=>_.key),...sdkStore.findAllTypeUnderNoSubPage(S,A.x.WWrap).map(_=>_.key),...sdkStore.findAllTypeUnderNoSubPage(S,A.x.WBasket).filter(_=>_.hotAttr.basket==="bMuban").map(_=>_.key)],x=(S,_)=>{if(!(0,p.dP)())return!1;const a=r(S==null?void 0:S.cid);let $=!0;for(const ce of a)if(!_.has(ce)){$=!1;break}return $},f=S=>{const{isPreview:_,isCommunityPreview:y,isCanvasSortableList:a}=S||{};let $=20,ce=20;return _&&($=20),y&&($=24,ce=10),a&&($=20,ce=20,y&&($=14,ce=14)),{initPaddingLeft:$,paddingLeftLayout:ce}},u=(S,_,y)=>(y||21)+(_||22)*S,b=S=>S?S.shiftKey?"range":S.metaKey||S.ctrlKey?"multiple":"single":"single",h=(S,_)=>S.includes(_)?l()(S,_):S.concat(_),E=(S,_)=>{const y=(0,k.BH)([_]);return S.includes(_)?l()(S,...y):m()(S.concat([...y]))},N=(S,_)=>S.findIndex(y=>y===_),z=(S,_,y)=>{const{rangeStart:a,rangeEnd:$,selected:ce}=S,{cid:de,cids:fe,e:se,selectFrom:J,isMultiplePage:ve=!1,canCheck:D=!0}=_;let R=b(se);J==="screen"&&(R=ve?"multiple":D?R:"single");const V=fe.indexOf(de);if(R==="range")if($===void 0){const ae=V<a?fe.slice(V,a+1):fe.slice(a,V+1);a>V&&ae.reverse();const q=ae.filter(xe=>N(ce,xe)===-1),K={rangeStart:a,rangeEnd:V,selected:ce.concat(q)};return y&&y(K),K}else{if(V===$)return y&&y(S),S;{const ae=fe.slice(Math.min(a,$),Math.max(a,$)+1),q=fe.slice(Math.min(a,V),Math.max(a,V)+1),K=m()(T()(ce,ae),q);a>V&&K.reverse();const xe={rangeStart:a,rangeEnd:V,selected:K};return y&&y(xe),xe}}let O=R==="single"?[de]:h(ce,de);if(J==="screen"){const ae=ce.length===1?ce[0]:void 0;O=R==="single"?[de]:!ve&&R==="multiple"&&de===ae?(0,k.BH)([de]):E(ce,de)}const Ce={rangeStart:V,rangeEnd:void 0,selected:O};return y&&y(Ce),Ce}},84009:(Et,ke,e)=>{"use strict";e.d(ke,{a:()=>K});var o=e(74059),m=e(51044),g=e(63686),l=e(86634),C=e.n(l),T=e(72605),A=e(21676);const k=A.Ay.div.withConfig({displayName:"styles__StyledIconLoadingStyles",componentId:"sc-17k12g5-0"})(["flex:1;display:grid;grid-row-gap:7px;grid-column-gap:8px;padding:0 12px;grid-template-columns:repeat(5,1fr);.template-box{border-radius:2px;width:100%;height:40px;}@keyframes skeleton-loading{0%{background-position:100% 50%;}to{background-position:0 50%;}}.skeleton-loading{background:",";background-size:400% 100%;animation:skeleton-loading 1.4s ease infinite;}"],te=>te.theme.loading_styles_bg);var p=e(57464);class r extends m.PureComponent{constructor(H){super(H),(0,o.A)(this,"setComponentRef",re=>this.box=re),(0,o.A)(this,"arrayWithNumber",re=>[...Array(re).keys()]),this.state={count:20}}componentDidMount(){const H=this.box.getBoundingClientRect().height,re=this.box.getBoundingClientRect().width,be=H/40*(re/39);this.setState({count:Math.ceil(be)})}render(){const{count:H}=this.state,re=this.arrayWithNumber(H);return(0,p.jsx)(k,{className:"template-list",ref:this.setComponentRef,children:re.map(be=>(0,p.jsx)("div",{className:"template-box skeleton-loading"},be))})}}var x=e(31199),f=e(95230);const u=A.Ay.div.withConfig({displayName:"styles__StyledNoIcons",componentId:"sc-fzxg6q-0"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;img{width:67px;height:69px;}.tips{margin:27px 0;color:#7d8694;text-align:center;}.tips-link{margin:8px;text-align:center;a{color:",";text-decoration:underline;}}"],te=>te.theme.color_text_link_normal);function b(te){let{noIconText:H,iconLink:re,theme:be}=te;return(0,p.jsxs)(u,{children:[(0,p.jsx)("img",{src:"/mb-workspace/images/workspace/design/"+(be===f.Sx.DARK?"no_icons_dark":"no_icons_light")+".png",alt:""}),(0,p.jsx)("p",{className:"tips",dangerouslySetInnerHTML:{__html:H}}),re&&(0,p.jsx)("p",{className:"tips-link",dangerouslySetInnerHTML:{__html:re}})]})}var h=e(38473),E=e(98195),N=e(42903),z=e(46479),S=e(51050),_=e(34161),y=e(98386),a=e(94153),$=e(47143),ce=e(78570),de=e(25960),fe=e(78647),se=e(46664);const J=A.Ay.div.withConfig({displayName:"styles__StyledIconDetail",componentId:"sc-hq2tyf-0"})(["height:100%;display:flex;flex-direction:column;overflow:hidden;> header{padding:8px 14px 8px 8px;display:flex;align-items:center;justify-content:space-between;.back{display:flex;align-items:center;color:",";cursor:pointer;.arrow-left{margin-right:4px;.svg-icon{width:6px;height:10px;transform:rotate(-180deg);}}span{font-weight:500;}}}.incon-setting{height:32px;}.icons-container{overflow-x:hidden;overflow-y:overlay;flex:1;}.icon-list{display:grid;grid-row-gap:7px;grid-column-gap:8px;padding:0 12px 12px;grid-template-columns:repeat(5,1fr);& > li{display:flex;justify-content:center;align-items:center;border-radius:6px;transition:all 0.2s ease-out 0s;&:hover{background:",";}}}.fromSetting-customized-search{width:226px;height:26px;border-radius:13px;margin:12px auto 0 auto;}> footer{width:100%;height:40px;display:flex;align-items:center;.color-settings{padding:0 12px;flex:1;}}"],te=>te.theme.color_text_L1,te=>te.theme.color_btn_secondary_hover),ve=A.Ay.div.withConfig({displayName:"styles__StyledLoading",componentId:"sc-hq2tyf-1"})(["width:100%;height:100%;display:flex;align-items:center;justify-content:center;.loading{width:50px;height:50px;}"]);var D=e(99920),R=e(40684),V=e(10052),O=e(91344),Ce=e(89399);const ae=(0,g.Mz)([a._X,a.IG,y.QU,y.Ct,$.PL,ce.O4,ce.MZ],(te,H,re,be,Le,Ve,Ne)=>({libraryIconDataForTabs:te,iconType:H,iconDefaultColor:re,iconDefaultSize:be,rootProject:Le,theme:Ve,layoutV9:Ne}));class q extends m.PureComponent{constructor(H){var re;super(H),re=this,(0,o.A)(this,"handleInitMarketTemplate",async()=>{const{currentResources:be}=this.props,{libraryIconDataForTabs:Le,dispatch:Ve}=this.props,{cid:Ne}=be;if(Le.get(Ne))this.setState({marketTemplate:be});else{const{iconGroupData:ze,marketTemplate:ft}=await(0,se.yr)(be);Ve({type:"icon-panel:update:icon_library_data_map:for:data",payload:{cid:Ne,iconGroupData:ze}}),ft&&this.setState({marketTemplate:ft})}}),(0,o.A)(this,"handleSearch",function(be,Le){Le===void 0&&(Le=E.lS.Detail),re.setState({searchIconList:null});const{marketTemplate:Ve}=re.state,{libraryIconDataForTabs:Ne}=re.props,{cid:We}=Ve,ze=Ne.get(We);if(ze&&be){re.setState({searchLoading:!0});const ft=(0,de.s4)(ze.All,be);setTimeout(()=>{re.setState({searchIconList:ft,searchLoading:!1})},1e3)}MB.commonGuideHelper.closeGuide(fe.c.GUIDE_SEARCH_RESOURCES_DETAILS),MB.commonGuideHelper.markGuideAsRead(fe.c.GUIDE_SEARCH_RESOURCES_DETAILS)}),(0,o.A)(this,"handleMouseDown",(be,Le,Ve,Ne)=>{const{marketTemplate:{is_color_icon:We}}=this.state,{id:ze,groupCid:ft}=Le;this.props.dispatch({type:"entry:create:svg_icon_path:by:mousedown",payload:{event:be,icon:Le,iconName:Ve,iconDisplayName:Ne,isMultiColorIcon:We,callback:()=>{this.onRequestUpdateRecentImportesources({itemCid:ze}),this.addTrack(_.k8.Drag,Ve,ft)}}})}),(0,o.A)(this,"handleIconItemCreate",(be,Le,Ve,Ne)=>{const{marketTemplate:{is_color_icon:We}}=this.state,{id:ze,groupCid:ft}=Le;this.props.dispatch({type:"entry:create:svg_icon_path:by:mousedown",payload:{event:be,icon:Le,iconName:Ve,iconDisplayName:Ne,isMultiColorIcon:We,callback:()=>{this.onRequestUpdateRecentImportesources({itemCid:ze}),this.addTrack(_.k8.DoubleClick,Ve,ft)}}})}),(0,o.A)(this,"addTrack",(be,Le,Ve)=>{const{marketTemplate:Ne}=this.state,{popupsName:We,rootProject:ze,keyword:ft=""}=this.props,{policy:mt,category:i,title:gt,copyright:Je,is_color_icon:Pt}=Ne,bt=i===R.C&&Pt?R.WY:i,qt=_.Jj[bt]+"-"+_.un;(0,_.Mi)({popupsName:We,addType:be,source:qt,category:bt,policy:mt,templateGroupName:gt,copyright:Je,name:Le,rootProject:ze,keyword:ft,templateGroupCid:Ve})}),(0,o.A)(this,"onRequestUpdateRecentImportesources",be=>{var Le;let{itemCid:Ve}=be;const{marketTemplate:Ne}=this.state,ze={projectUpperType:"icon_group",projectUpperCid:Ne.source_upper_cid||((Le=Ne.icon_group)==null?void 0:Le.cid),itemCid:Ve};(0,se.Cp)(ze)}),(0,o.A)(this,"handleStarResources",be=>{const{marketTemplate:Le}=this.state,{onStarResources:Ve}=this.props;Ve(be),this.setState({marketTemplate:{...Le,is_star:!Le.is_star}})}),this.state={marketTemplate:H.currentResources,searchIconList:null,searchLoading:!1}}async componentDidMount(){await this.handleInitMarketTemplate()}async componentDidUpdate(H,re,be){H.currentResources&&this.props.currentResources&&H.currentResources.cid!==this.props.currentResources.cid&&await this.handleInitMarketTemplate()}componentWillUnmount(){O.A.emit(Ce.P2,{shownMtItemCids:[]})}render(){const{libraryIconDataForTabs:H,className:re,onSetCurrentNodeIcon:be,onBack:Le,iconType:Ve,iconDefaultColor:Ne,iconDefaultSize:We,theme:ze,from:ft,layoutV9:mt}=this.props,{marketTemplate:i,searchIconList:gt,searchLoading:Je}=this.state,{cid:Pt,title:bt,source_upper_cid:qt}=i,pt=H.get(Pt),$t=pt?Object.keys(pt):[],go=pt?pt[Ve]||[]:[],Co=(go==null?void 0:go.length)===0,Tt=gt||go;Tt.forEach(jo=>jo.groupCid=qt);const mo=ft===S.Z.iconSelectPopup;return(0,p.jsxs)(J,{className:re,children:[(0,p.jsx)(N.l,{resources:i,layoutV9:mt,onBack:Le,onStartTemplates:this.handleStarResources,onSearch:this.handleSearch}),Co?(0,p.jsx)(r,{}):Je?(0,p.jsx)(D.qt,{children:(0,p.jsxs)("div",{className:"loading-container",children:[(0,p.jsx)(z.ft,{className:"loading"}),(0,p.jsx)("span",{children:I18N.Resources.searching.load})]})}):(0,p.jsx)(p.Fragment,{children:(Tt==null?void 0:Tt.length)===0?(0,p.jsx)(b,{noIconText:I18N.Popups.iconContent_not_found,iconLink:(gt==null?void 0:gt.length)===0?"":I18N.Popups.iconContent_not_found_link,theme:ze}):(0,p.jsxs)(p.Fragment,{children:[!mo&&(0,p.jsx)("footer",{children:(0,p.jsx)(h.N,{iconDefaultColor:Ne,iconDefaultSize:We,iconTabs:gt?[]:$t,iconType:Ve,isMultiColorIcon:i.is_color_icon})}),(0,p.jsx)(xe,{list:Tt,title:bt,policy:i.policy,children:(0,p.jsx)("div",{className:C()("icons-container"),children:(0,p.jsx)(x.l,{onMouseDown:this.handleMouseDown,onDoubleClick:this.handleIconItemCreate,onSetCurrentNodeIcon:be,iconList:Tt,isMultiColorIcon:i.is_color_icon})})})]})})]})}}const K=(0,T.Ng)(te=>ae(te),null,null,{forwardRef:!0})(q),xe=te=>{let{list:H,title:re,policy:be,children:Le}=te;return(0,m.useEffect)(()=>{const Ve=(0,V.Oc)({source:"\u539F\u578B\u5185\u67E5\u770B\u5168\u90E8-\u56FE\u6807",list:H,igName:re,policy:be});O.A.emit(Ce.jy,{observeMtItemObj:Ve}),O.A.emit(Ce.BD)},[H,be,re]),Le}},21776:(Et,ke,e)=>{"use strict";e.d(ke,{x:()=>it});var o=e(51044),m=e(72605),g=e(63686),l=e(98386),C=e(98195),T=e(86634),A=e.n(T),k=e(94153),p=e(27032),r=e(51050),x=e(84009),f=e(19722),u=e(31199),b=e(38473),h=e(47143),E=e(46664),N=e(40684),z=e(34161),S=e(21676);const _=S.Ay.div.withConfig({displayName:"styles__StyledFilterGroupPanel",componentId:"sc-zr8rzd-0"})(["display:flex;flex:1 1 0;flex-direction:column;overflow:hidden;> header{display:flex;justify-content:space-between;padding:8px 12px;.back{display:flex;align-items:center;color:",";cursor:pointer;width:calc(100% - 76px);.arrow-left{margin-right:4px;flex:0 0 24px;.svg-icon{width:6px;height:10px;transform:rotate(-180deg);}}span{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.sign{margin-left:8px;}}.color-settings{width:68px;&.is-monochrome{width:90px;}}}.icon-list{display:grid;gap:7px 8px;padding:0px 12px;grid-template-columns:repeat(5,1fr);overflow-y:auto;& > li{border:none;border-radius:6px;transition:all 0.2s ease-out 0s;&:hover{background:",";}}}"],st=>st.theme.color_text_L1,st=>st.theme.color_btn_secondary_hover);var y=e(45465),a=e(48985),$=e(43727),ce=e(10052),de=e(91344),fe=e(89399),se=e(57464);const J=(0,g.Mz)([h.PL,l.QU,l.Ct,k.kU,k.xZ,k.O2,k.$d],(st,dt,Ot,Ct,wo,ln,Io)=>({rootProject:st,iconDefaultColor:dt,iconDefaultSize:Ot,hotIconList:Ct,hotColorIconList:wo,findPanelTabIndex:ln,iconSelectPopupTabIndex:Io}));function ve(st){const{isFromIconSelectPopup:dt,currentIconGroup:Ot,onBack:Ct,onSetCurrentNodeIcon:wo}=st,{rootProject:ln,iconDefaultColor:Io,iconDefaultSize:Lo,hotIconList:Ao,hotColorIconList:xt,findPanelTabIndex:Ut,iconSelectPopupTabIndex:Wo}=(0,m.d4)(Do=>J(Do)),qo=(0,m.wA)(),sn=dt?Wo===1:Ut===1,ds=(dt?Wo===0?Ao:xt:Ut===0?Ao:xt).find(Do=>Do.groupName===Ot),{groupName:_s,label:Ls,icons:gs}=ds;(0,o.useEffect)(()=>{if(ds){const Do=(0,ce.Oc)({source:"\u539F\u578B\u5185\u67E5\u770B\u5168\u90E8-\u56FE\u6807",list:gs,igCid:_s,igName:Ls,policy:sn?$.W.MktMemberFree:$.W.Everyone});de.A.emit(fe.jy,{observeMtItemObj:Do}),de.A.emit(fe.BD)}},[_s,gs,sn,Ls,ds]),(0,o.useEffect)(()=>()=>{de.A.emit(fe.P2,{shownMtItemCids:[]})},[]);const ns=(Do,Go,an,Mo)=>{const Cn=Tn=>{let{itemCid:cn,groupCid:bs}=Tn;const Vn={projectUpperType:"icon_group",projectUpperCid:bs,itemCid:cn};(0,E.Cp)(Vn)};qo({type:"entry:create:svg_icon_path:by:mousedown",payload:{event:Do,icon:Go,iconName:an,iconDisplayName:Mo,isMultiColorIcon:sn,callback:()=>{const Tn=Go.id.split("-"),cn=Tn[0];Cn({itemCid:cn==="fa5"?Tn.slice(1,Tn.length-1).join("-"):cn===Go.type?Go.id.slice(Go.id.indexOf("-")+1):Go.id,groupCid:Go.groupCid}),Wn((Do==null?void 0:Do.type)==="mousedown"?z.k8.Drag:z.k8.DoubleClick,an,Go.type,Go.groupCid)}}})},Wn=(Do,Go,an,Mo)=>{const Cn=y.jS[an]||an,Tn=sn?C.lS.ColorIcon:C.lS.Icon,cn=sn?N.WY:N.C,bs=(sn?z.Jj[cn]+"-":"")+z.Ii.Find;(0,z.Mi)({popupsName:Tn,addType:Do,source:bs,category:cn,templateGroupName:Cn,name:Go,rootProject:ln,templateGroupCid:Mo})};return(0,se.jsxs)(_,{children:[(0,se.jsxs)("header",{children:[(0,se.jsxs)("div",{className:"back",onClick:Ct,children:[(0,se.jsx)(f.A,{name:"design/arrow/right",className:"arrow-left"}),(0,se.jsx)("span",{children:Ls}),sn&&(0,se.jsx)(a.W,{resources:{policy:$.W.MktMemberFree}})]}),!dt&&(0,se.jsx)(b.N,{iconDefaultSize:Lo,iconDefaultColor:Io,isMultiColorIcon:sn})]}),(0,se.jsx)(u.l,{isMultiColorIcon:sn,onMouseDown:ns,onDoubleClick:ns,onSetCurrentNodeIcon:wo,iconList:gs})]})}var D=e(78647),R=e(82572),V=e(43974),O=e(75501),Ce=e(78570),ae=e(74059),q=e(7290),K=e(87416),xe=e(95230);const te=S.Ay.div.withConfig({displayName:"styles__StyledNoAsset",componentId:"sc-1t4mf5s-0"})(["padding:6px 12px 8px;display:flex;align-items:center;justify-content:center;p{color:",";}"],st=>st.theme.color_text_L3),H=S.Ay.div.withConfig({displayName:"styles__StyledResourcesContainer",componentId:"sc-1t4mf5s-1"})(["overflow-x:hidden;overflow-y:auto;.template-list{display:flex;flex-flow:row wrap;padding:0 4px 0 12px;width:inherit;.template-box{margin-right:8px;margin-bottom:10px;}}.load-more{text-align:center;}.scroll-to-top{display:flex;align-items:center;justify-content:center;position:absolute;right:12px;bottom:20px;width:28px;height:28px;border-radius:50%;background:#d8d8d8;box-shadow:0 4px 10px 0 rgba(65,80,88,0.11);cursor:pointer;svg{width:11px;height:12px;> *{fill:#fff;}}&:hover{background:#a4adb3;}}"]);class re extends o.PureComponent{constructor(dt){super(dt),(0,ae.A)(this,"handleCreateRed",Ot=>this.templateContainer=Ot),(0,ae.A)(this,"scrollToTop",()=>{this.templateContainer.current.scrollTo({top:0,behavior:"smooth"})}),(0,ae.A)(this,"handleScroll",()=>{const{scrollTop:Ot,offsetHeight:Ct}=this.templateContainer.current;Ot>Ct?this.setState({isShowScrollToTop:!0}):this.setState({isShowScrollToTop:!1})}),this.state={isShowScrollToTop:!1}}render(){const{marketTemplateList:dt,onStarTemplates:Ot,onClickCard:Ct}=this.props,{isShowScrollToTop:wo}=this.state;return(0,se.jsxs)(H,{style:{width:xe.qv},ref:this.handleCreateRed,onScroll:this.handleScroll,children:[dt.length>0?(0,se.jsx)("div",{className:"template-list",children:dt.map(ln=>(0,se.jsx)(K.A,{isStared:ln.is_star,marketTemplate:ln,onStarTemplates:Ot,onClickCard:Ct},ln.cid))}):(0,se.jsx)(be,{}),wo&&(0,se.jsx)("div",{className:"scroll-to-top",onClick:this.scrollToTop,children:(0,se.jsx)(q.C,{name:"design/templates/to-top-btn"})})]})}}const be=()=>(0,se.jsx)(te,{children:(0,se.jsx)("p",{children:I18N.Resources.noIconResources})});var Le=e(52781);const Ve=(0,g.Mz)([Ce.rk,k.Bu,k.nn,h.W4],(st,dt,Ot,Ct)=>{let{isExperience:wo,isLoggedExperience:ln}=Ct;const Io=Ot.filter(Lo=>{let{cid:Ao}=Lo;return!st.has(Ao)});return{resources:dt,starMarketTemplates:Io,isExperience:wo,isLoggedExperience:ln}}),Ne=o.memo(function(dt){const{starMarketTemplates:Ot,resources:Ct,isExperience:wo,isLoggedExperience:ln}=(0,m.d4)(Wn=>Ve(Wn)),{onStarTemplates:Io,onClickCard:Lo}=dt,Ao=(0,m.wA)(),[xt,Ut]=(0,o.useState)(!0),[Wo,qo]=(0,o.useState)(new Set([V.q$,V.er])),[sn,Kn]=(0,o.useState)(!1),ds=(0,o.useCallback)(async Wn=>{Ut(!0);const{result:{market_templates:Do}}=await(0,Le.X)("&category="+N.C),Go=Wn?await(0,Le.Wu)(N.C):[],an=Do.filter(Mo=>{let{is_star:Cn}=Mo;return!Cn});Ao({type:"icon-panel:update:state",payload:{resources:Do,starResources:Go,unStarResources:an}}),Ut(!1)},[Ao]),_s=Wn=>{const{is_star:Do}=Wn,Go=Do?V.er:V.q$,an=new Set(Wo);an.add(Go),qo(an),Io(Wn)},Ls=Wn=>{const Do=new Set(Wo);Do.has(Wn)?Do.delete(Wn):Do.add(Wn),qo(Do)};(0,o.useEffect)(()=>{let Wn=!1;wo?ln?Wn=!0:Wn=!1:Wn=!0,(async()=>(await ds(Wn),Kn(!0)))()},[ds,wo,ln]);const gs=Wo.has(V.q$),ns=Wo.has(V.er);return(0,se.jsx)("div",{className:"allIcon",children:xt?(0,se.jsx)(O.A,{itemWidth:109,itemHeight:82}):(0,se.jsxs)(se.Fragment,{children:[sn&&(0,se.jsx)(R.A,{title:I18N.Resources.star,id:V.q$,className:"collapse-group-item",expanded:gs,onToggle:Ls,children:(0,se.jsx)(re,{marketTemplateList:Ot,onStarTemplates:_s,onClickCard:Lo})}),(0,se.jsx)(R.A,{title:I18N.Resources.square,id:V.er,className:"collapse-group-item",expanded:ns,onToggle:Ls,children:(0,se.jsx)(re,{marketTemplateList:Ct,onStarTemplates:_s,onClickCard:Lo})})]})})});var We=e(29739),ze=e(49798);const ft=S.Ay.div.withConfig({displayName:"StyledCustomizePanelBody",componentId:"sc-1ytl3bv-0"})(["flex:1;display:flex;flex-direction:column;overflow:hidden;position:relative;.collapse-group-item > header{.arrow-icon{width:16px;}.title{font-size:14px;color:",";font-weight:500;}.panel-group-new .panel-floder{color:",";}}.panel-footer{margin-top:auto;}.nav-tooltip{position:absolute;right:-15px;top:2px;height:12px;display:flex;}.savePanelTabMenu{height:64px;min-height:64px;padding:0 12px;display:flex;align-items:center;justify-content:space-between;background:",";.nav-item{width:70px;height:28px;border-radius:100px;border:1px solid ",";color:",";&:not(:last-child){margin-right:8px;}&.active{background:#298df8;color:#fff;border:1px solid transparent;}}}"],st=>st.theme.color_text_L1,st=>st.theme.color_text_L3,st=>st.theme.color_bg_white,st=>st.theme.color_btn_secondary_active,st=>st.theme.color_text_L1),mt=(0,S.Ay)(ft).withConfig({displayName:"styles__StyledIconGroupPanel",componentId:"sc-1mzcft9-0"})([".allIcon{margin-top:4px;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;flex:1;.collapse-group-item > header .title{font-size:12px;}.collapse-group-item > header .arrow-icon{width:12px;}.icon-list{display:flex;flex-flow:row wrap;padding:8px 4px 0 12px;.template-box{margin-right:8px;margin-bottom:10px;}}.template-list{padding-top:8px;}}.find-icon{height:100%;overflow-y:auto;overflow-x:hidden;}.color-settings{width:100%;height:32px;margin:0;padding:0;background:",";}.header{.closeContainer{width:20px;height:20px;border-radius:4px;margin-left:14px;cursor:pointer;.closeIcon{width:20px;height:20px;g{path{fill:",";}}}&:hover{background:",";}&:active{background:",";}}}"],st=>st.theme.color_bg_white,st=>st.theme.color_text_L3,st=>st.theme.color_btn_secondary_active,st=>st.theme.color_btn_secondary_active),i=S.Ay.div.withConfig({displayName:"styles__StyledLoading",componentId:"sc-1mzcft9-1"})(["width:100%;height:calc(100% - 40px);display:flex;align-items:center;justify-content:center;.loading{width:50px;height:50px;}"]);var gt=e(94137);const Je=S.Ay.div.withConfig({displayName:"styles__StyledIconFindComponentPanel",componentId:"sc-wcuti9-0"})([""]),Pt=S.Ay.div.withConfig({displayName:"styles__StyledIconGroupList",componentId:"sc-wcuti9-1"})([".group-header{display:flex;align-items:center;justify-content:space-between;height:32px;padding:0 12px;margin:8px 0;.left{display:flex;align-items:center;justify-content:space-between;column-gap:4px;.title{color:",";font-weight:500;}.mat-member{width:12px;height:12px;}}.right{display:flex;align-items:center;height:100%;color:",";cursor:pointer;.arrow-right{width:6px;height:10px;margin-left:10px;}}}"],st=>st.theme.color_text_L1,st=>st.theme.color_text_L3);var bt=e(11777);const qt=o.memo(function(dt){const{iconGroup:Ot,isMultiColorIcon:Ct,onChangeIconGroup:wo,onSetCurrentNodeIcon:ln,onCreateIconItem:Io}=dt,Lo=(0,o.useCallback)(()=>{wo(Ot.groupName)},[Ot,wo]);if(!Ot)return null;const{label:Ao,groupName:xt,icons:Ut}=Ot;return(0,se.jsxs)(Pt,{"data-group":xt,className:"group-list",children:[(0,se.jsxs)("div",{className:"group-header",children:[(0,se.jsxs)("div",{className:"left",children:[(0,se.jsx)("p",{className:"title",children:Ao}),Ct&&(0,se.jsx)(bt.A,{content:I18N.Resources.resourcesFooter.free_for_member,direction:"down",distance:8,enterHoverTime:100,children:(0,se.jsx)(q.C,{name:"left_panel/icon_list/mat_member",className:"mat-member",isColorPure:!0})})]}),(0,se.jsxs)("div",{className:"right",onClick:Lo,children:[(0,se.jsx)("p",{children:I18N.Popups.iconCat.All}),(0,se.jsx)(q.C,{className:"arrow-right",name:"design/arrow/right"})]})]}),(0,se.jsx)("div",{className:"group-icon-list",children:(0,se.jsx)(u.l,{isMultiColorIcon:Ct,iconList:Ut.slice(0,15),onMouseDown:Io,onDoubleClick:Io,onSetCurrentNodeIcon:ln})})]})});var pt=e(27806);const $t=o.memo(function(dt){const{tabIndex:Ot,iconGroup:Ct,isFromIconSelectPopup:wo,rootProject:ln,groupByIconList:Io,onSetCurrentNodeIcon:Lo}=dt,Ao=(0,o.useMemo)(()=>Ot===1,[Ot]),xt=(0,m.wA)(),Ut=(sn,Kn,ds,_s)=>{const Ls=gs=>{let{itemCid:ns,groupCid:Wn}=gs;const Do={projectUpperType:"icon_group",projectUpperCid:Wn,itemCid:ns};(0,E.Cp)(Do)};xt({type:"entry:create:svg_icon_path:by:mousedown",payload:{event:sn,icon:Kn,iconName:ds,iconDisplayName:_s,isMultiColorIcon:Ao,callback:()=>{const gs=Kn.id.split("-"),ns=gs[0];Ls({itemCid:ns==="fa5"?gs.slice(1,gs.length-1).join("-"):ns===Kn.type?Kn.id.slice(Kn.id.indexOf("-")+1):Kn.id,groupCid:Kn.groupCid}),Wo((sn==null?void 0:sn.type)==="mousedown"?z.k8.Drag:z.k8.DoubleClick,ds,Kn.type,Kn.groupCid)}}})},Wo=(sn,Kn,ds,_s)=>{const Ls=y.jS[ds]||ds,gs=Ao?C.lS.ColorIcon:C.lS.Icon,ns=Ao?N.WY:N.C,Wn=(Ao?z.Jj[ns]+"-":"")+z.Ii.Find;(0,z.Mi)({popupsName:gs,addType:sn,source:Wn,category:ns,templateGroupName:Ls,name:Kn,rootProject:ln,templateGroupCid:_s})},qo=function(sn){sn===void 0&&(sn=""),xt(wo?{type:"icon-panel:update:state",payload:{iconSelectPopupCurrentIconGroup:sn}}:{type:"icon-panel:update:state",payload:{findPanelCurrentIconGroup:sn}}),(0,pt.gQ)({widget_file_name:sn,source:Ao?"\u5F69\u8272\u56FE\u6807-\u53D1\u73B0":"\u56FE\u6807-\u53D1\u73B0"})};return(0,se.jsx)(Je,{id:"iconFindComponent",children:(0,se.jsx)("div",{className:"group-list",children:(0,se.jsx)("div",{className:"list",style:{width:xe.qv},children:Io.map(sn=>(0,se.jsx)(qt,{isMultiColorIcon:Ao,iconGroup:sn,onChangeIconGroup:qo,onCreateIconItem:Ut,onSetCurrentNodeIcon:Lo},sn.groupName))})})})}),go=S.Ay.div.withConfig({displayName:"styles__StyledIconGroupContainer",componentId:"sc-uaa4cb-0"})([".group-container-title{display:flex;justify-content:space-between;}.color-settings{flex:1;margin-right:12px;}.switch-tab{position:relative;display:flex;width:100%;height:26px;padding:0 12px;.label{height:26px;display:flex;align-items:center;cursor:pointer;svg{width:16px;height:16px;margin-left:4px;}&.monochrome{margin-right:6px;}}}.group-container-title{height:32px;}.color-settings{height:32px;}.switch-tab{align-items:center;margin-top:4px;.label{color:",";font-size:12px;font-style:normal;font-weight:400;line-height:26px;padding:0px 14px;border-radius:4px;background:",";&.active{color:",";background-color:",";svg path{fill:#fff;}}&:not(.active):hover{background:",";}}}"],st=>st.theme.color_text_L2,st=>st.theme.color_navigation_hover,st=>st.theme.color_text_link_normal,st=>st.theme.color_bg_tab,st=>st.theme.color_navigation_active),Co=(0,g.Mz)([h.PL,l.QU,l.Ct,k.O2,k.m3,k.$d,k.vs,Ce.MZ],(st,dt,Ot,Ct,wo,ln,Io,Lo)=>({rootProject:st,iconDefaultColor:dt,iconDefaultSize:Ot,findPanelTabIndex:Ct,findPanelCurrentIconGroup:wo,iconSelectPopupTabIndex:ln,iconSelectPopupCurrentIconGroup:Io,layoutV9:Lo})),Tt=o.memo(function(dt){const{rootProject:Ot,iconDefaultColor:Ct,iconDefaultSize:wo,findPanelTabIndex:ln,findPanelCurrentIconGroup:Io,iconSelectPopupTabIndex:Lo,iconSelectPopupCurrentIconGroup:Ao,layoutV9:xt}=(0,m.d4)(Do=>Co(Do)),Ut=(0,m.wA)(),{isFromIconSelectPopup:Wo,groupByIconList:qo,groupByColorIconList:sn,onSetCurrentNodeIcon:Kn}=dt,ds=Wo?Lo:ln,_s=Wo?Ao:Io,Ls=ds===1,gs=Ls?sn:qo,ns=!Wo;(0,o.useEffect)(()=>()=>{de.A.emit(fe.P2,{shownMtItemCids:[]})},[ds]),(0,o.useEffect)(()=>{if(gs&&gs.length>0){const Do=(0,ce.le)(gs,Ls?$.W.MktMemberFree:$.W.Everyone);de.A.emit(fe.jy,{observeMtItemObj:Do}),de.A.emit(fe.BD)}},[Ls,gs]);const Wn=Do=>{const Go=Do.currentTarget.dataset.index;Ut(Wo?{type:"icon-panel:update:state",payload:{iconSelectPopupTabIndex:Number(Go)}}:{type:"icon-panel:update:state",payload:{findPanelTabIndex:Number(Go)}}),(0,pt.Ac)({source:Go==="0"?"\u5355\u8272\u56FE\u6807":"\u5F69\u8272\u56FE\u6807"})};return(0,se.jsxs)(go,{children:[!_s&&(0,se.jsxs)("div",{className:"group-container-title",children:[(0,se.jsxs)("div",{className:"switch-tab",children:[(0,se.jsx)("div",{className:A()("label monochrome",ds===0&&"active"),"data-index":"0",onClick:Wn,children:I18N.Resources.icon_panel.monochrome}),!ENV.IS_ON_PREMISES&&(0,se.jsx)("div",{className:A()("label color",ds===1&&"active"),"data-index":"1",onClick:Wn,children:(0,se.jsx)("span",{children:I18N.Resources.icon_panel.color})})]}),ns&&(0,se.jsx)(b.N,{iconDefaultSize:wo,iconDefaultColor:Ct,isMultiColorIcon:Ls})]}),(0,se.jsx)($t,{tabIndex:ds,iconGroup:_s,rootProject:Ot,groupByIconList:gs,isFromIconSelectPopup:Wo,onSetCurrentNodeIcon:Kn})]})});var mo=e(46927),jo=e(17534);const Kt=JSON.parse('{"content":["iconPark-picture-one","iconPark-like","iconPark-check-small","ze-good-job-o","iconPark-thumbs-down","riLine-rocket-2-line","if-play-alt-2","iconPark-acoustic","iconPark-volume-mute","iconPark-voice","ze-fire","ze-thumb-circle","if-stop","if-volume-off","if-volume-mute","if-video-alt","iconPark-voice-off","iconPark-music","iconPark-smiling-face-with-squinting-eyes","iconPark-slightly-frowning-face-whit-open-mouth","iconPark-star","arcoDesign-subscribed","arcoDesign-thunderbolt","arcoDesign-share-alt","arcoDesign-translate","if-volume-down","if-volume-up","ze-star","md-folder_special","antOutline-step-forward"],"symbol":["iconPark-add-one","iconPark-plus","iconPark-minus","iconPark-add","iconPark-attention","iconPark-close","iconPark-more-three","antOutline-exclamation","antOutline-info-circle","antOutline-question-circle","iconPark-copyright","iconPark-percentage","iconPark-division","arcoDesign-code","arcoDesign-at","arcoDesign-question","arcoDesign-stop","semiDesign-semi-icons-hash","semiDesign-semi-icons-font","md-exposure_plus_1","md-looks_one","md-looks_two","md-looks_3"],"direction":["iconPark-left","iconPark-right","iconPark-arrow-circle-down","iconPark-arrow-circle-left","iconPark-arrow-circle-right","iconPark-arrow-circle-up","iconPark-arrow-down","iconPark-arrow-left","iconPark-arrow-right","iconPark-arrow-up","iconPark-corner-down-left","iconPark-double-left","iconPark-down","iconPark-down-c","iconPark-left-c","iconPark-to-bottom","iconPark-to-bottom-one","iconPark-to-top","iconPark-to-top-one","iconPark-up-two","iconPark-undo","iconPark-right-two","riLine-arrow-up-down-line","fa5-caret-down-fas","antOutline-vertical-left","antOutline-right-square","antFill-right-circle","antFill-right-square"],"application":["ze-alipay","st-weixin","st-qq","riFill-weibo-fill","ze-chat","riFill-map-pin-2-fill","md-security","st-apple","iconPark-taobao","arcoDesign-message","ze-shopping-cart-o","ze-gem-o","iconPark-chart-pie","arcoDesign-location","iconPark-take-off","iconPark-trophy","iconPark-finance","iconPark-shopping-cart","iconPark-knife-fork","iconPark-gold-medal-two","iconPark-book-open","iconPark-sun","iconPark-heavy-rain","iconPark-thunderstorm-one","iconPark-moon","iconPark-comments"],"figure":["ze-manager-o","ze-friends-o","ze-user-circle-o","riFill-customer-service-2-fill","antOutline-user","iconPark-people-plus","riLine-user-voice-line","antOutline-user-delete","antOutline-user-add","iconPark-robot-one","ze-friends","if-group","fa5-users-fas 2","semiDesign-semi-icons-user_circle","riFill-user-settings-fill","iconPark-people-safe","iconPark-user-positioning","iconPark-woman","iconPark-baby","riFill-user-search-fill","riFill-account-box-fill","md-person_add","antFill-customer-service","if-live-support","if-girl-alt","if-user-alt-3"],"system":["ze-edit","semiDesign-semi-icons-plus","iconPark-check-one","iconPark-switch","ze-certificate","if-close","arcoDesign-search","iconPark-return","ze-scan","md-help_outline","ze-warning","riFill-close-circle-fill","fa5-check-circle-fas","if-bin","riFill-settings-2-fill","md-radio_button_unchecked","riLine-asterisk","ze-setting-o","ze-warning-o","riLine-add-line","riLine-close-circle-line","arcoDesign-more","riLine-time-line","ze-bar-chart-o","iconPark-alarm-clock","arcoDesign-drag-dot","arcoDesign-home","md-send","ze-eye-o","ze-filter-o","ze-bars","iconPark-wifi","fa5-square-far"],"popular":["ze-arrow","ze-arrow-left","ze-arrow-down","ze-cross","ze-add-o","mb-search","ze-plus","ze-ellipsis","ze-search","ze-bars","ze-checked","ze-clear","fa5-weixin-fab","ze-add","ze-manager","ze-circle","ze-arrow-up","antOutline-user","ze-close","ze-success","ze-star-o","ze-wap-home","ze-apps-o","ze-question-o","ze-chat-o","ze-like-o","riLine-checkbox-blank-line","fa5-times-fas","ze-weapp-nav","ze-wap-nav","ze-orders-o","ze-edit","ze-add-square","fa5-user-circle-fas","ze-star","ze-play","ze-like","ze-location","ze-bell","fa5-user-fas"]}');let Ft=function(st){return st.Popular="popular",st.System="system",st.Direction="direction",st.Figure="figure",st.Content="content",st.Symbol="symbol",st.Application="application",st}({});const nt=[Ft.Popular,Ft.System,Ft.Direction,Ft.Figure,Ft.Content,Ft.Symbol,Ft.Application],Rt=st=>st?nt.map(dt=>{var Ot,Ct;const wo=Kt[dt];return{label:(Ot=I18N)==null||(Ot=Ot.Resources)==null?void 0:Ot.icon_panel[dt],groupName:dt,icons:wo==null||(Ct=wo.map(ln=>st==null?void 0:st.find(Io=>Io.id===ln)))==null?void 0:Ct.filter(ln=>ln)}}):[],yt=st=>{if(!st)return[];const dt=[],Ot={};for(const wo of st){if(!wo)continue;const[ln,Io,Lo,Ao,xt,Ut,Wo]=wo,qo={cid:(0,jo.xc)(),id:ln,cat:Io,view_box:Lo,keywords:xt,lib:Ut,path:Ao,type:Io||"svg",groupCid:Wo};Ot[Io]||(Ot[Io]=Io),dt.push(qo)}return Object.values(Ot).map(wo=>({groupName:wo,label:wo,icons:dt.filter(ln=>ln.cat===wo)}))},Jt=(0,g.Mz)([Ce.O4,k.uJ,k.TF,k.gC,k.kU,k.xZ,Ce.MZ],(st,dt,Ot,Ct,wo,ln,Io)=>({theme:st,keyword:dt,iconKeyword:Ot,isRequestHotIconList:Ct,hotIconList:wo,hotColorIconList:ln,layoutV9:Io})),vo=o.memo(function(dt){const{theme:Ot,keyword:Ct,iconKeyword:wo,isRequestHotIconList:ln,hotIconList:Io,hotColorIconList:Lo,layoutV9:Ao}=(0,m.d4)(gs=>Jt(gs)),[xt,Ut]=(0,o.useState)(1),{isFromIconSelectPopup:Wo,onSetCurrentNodeIcon:qo}=dt,sn=(0,m.wA)(),Kn=(Io==null?void 0:Io.length)===0,ds=Wo?wo:Ct;(0,o.useEffect)(()=>{ln||(async()=>{const[ns,Wn]=await Promise.all([(0,Le.$r)(),(0,Le.Aq)()]),Do=ns==null?void 0:ns.icon_groups,Go=(0,mo.D2)(Do),an=Rt(Go),Mo=yt(Wn==null?void 0:Wn.icon_groups);sn({type:"icon-panel:update:state",payload:{hotIconList:an,hotColorIconList:Mo,isRequestHotIconList:!!(ns&&Wn)}})})().catch(ns=>{console.log("load hot icons failed",ns)})},[]);const _s=(0,o.useMemo)(()=>Lo.slice(0,8*xt),[xt,Lo]),Ls=(0,o.useCallback)(gs=>{const ns=gs.target,Wn=ns.scrollTop,Do=ns.scrollHeight,Go=ns.getBoundingClientRect().height;if(Wn+Go+24>Do){if(xt*8>Lo.length)return;Ut(an=>an+1)}},[xt,Lo.length]);return(0,se.jsx)("div",{className:"find-icon",onScroll:Ls,children:Kn?(0,se.jsx)(i,{children:(0,se.jsx)(We.A,{className:"loading"})}):(0,se.jsx)(gt.g,{className:A()("recent-panel-content icon-content"),children:()=>Io!=null&&Io.length?(0,se.jsx)(Tt,{isFromIconSelectPopup:Wo,groupByIconList:Io,groupByColorIconList:_s,onSetCurrentNodeIcon:qo}):(0,se.jsx)(ze.A,{theme:Ot,hasNoTips2:!0,keyword:ds,onHandleClickSquarePanel:()=>{}})})})}),Yo=(0,g.Mz)([k.dZ,k.oD,k.yt,k.bw,k.yQ,k.m3,k.vs,Ce.MZ],(st,dt,Ot,Ct,wo,ln,Io,Lo)=>({iconPanelNavIndex:st,iconSelectPopupNavIndex:dt,isShowAll:st===1,isShowHistory:st===0,currentIconResources:Ot,iconSelectPopupCurrentIconResources:Ct,isShowHeader:wo,findPanelCurrentIconGroup:ln,iconSelectPopupCurrentIconGroup:Io,layoutV9:Lo}));function Ho(st){const{from:dt,onSetCurrentNodeIcon:Ot}=st,{iconPanelNavIndex:Ct,iconSelectPopupNavIndex:wo,isShowAll:ln,isShowHistory:Io,currentIconResources:Lo,iconSelectPopupCurrentIconResources:Ao,isShowHeader:xt,findPanelCurrentIconGroup:Ut,iconSelectPopupCurrentIconGroup:Wo,layoutV9:qo}=(0,m.d4)(Mo=>Yo(Mo)),sn=(0,m.wA)(),Kn=dt===r.Z.iconSelectPopup,ds=[{key:"0",label:I18N.Resources.findTab},{key:"1",label:I18N.Popups.icon_library}];(0,o.useEffect)(()=>{Kn&&!xt&&sn({type:"icon-select-popup:update:state",payload:{isShowHeader:!0}})},[sn,Kn,xt]);const _s=Mo=>{sn(Kn?{type:"icon-panel:update:state",payload:{iconSelectPopupNavIndex:Mo}}:{type:"icon-panel:update:state",payload:{navIndex:Mo}})},Ls=function(Mo){Mo===void 0&&(Mo=null),sn(Kn?{type:"icon-panel:update:state",payload:{iconSelectPopupCurrentIconResources:Mo}}:{type:"icon-panel:update:state",payload:{currentIconResources:Mo}})},gs=function(Mo){Mo===void 0&&(Mo=""),sn(Kn?{type:"icon-panel:update:state",payload:{iconSelectPopupCurrentIconGroup:Mo}}:{type:"icon-panel:update:state",payload:{findPanelCurrentIconGroup:Mo}})},ns=Mo=>{Lo&&Lo.cid===Mo.cid&&sn({type:"icon-panel:update:state",payload:{currentIconResources:{...Mo,is_star:!Mo.is_star}}}),sn({type:"entry:resources:starred:icon_groups",payload:{resources:Mo}})},Wn=Kn?wo===0:Io,Do=Kn?wo===1:ln,Go=Kn?Ao:Lo,an=Kn?Wo:Ut;return(0,se.jsx)(mt,{className:A()({fromSettingPanel:Kn},D.c.GUIDE_SEARCH_RESOURCES_DETAILS),children:Go?(0,se.jsx)(x.a,{from:dt,popupsName:C.lS.Icon,currentResources:Go,onSetCurrentNodeIcon:Ot,onStarResources:ns,onBack:()=>Ls()}):an?(0,se.jsx)(ve,{isFromIconSelectPopup:Kn,currentIconGroup:an,onBack:()=>gs(),onSetCurrentNodeIcon:Ot}):(0,se.jsxs)(se.Fragment,{children:[(0,se.jsx)(p.A,{activeIndex:Kn?wo:Ct,onTabChange:_s,layoutV9:qo,children:ds.map(Mo=>{let{key:Cn,label:Tn}=Mo;return(0,se.jsx)(p.n,{label:Tn},Cn)})}),Wn&&(0,se.jsx)(vo,{onSetCurrentNodeIcon:Ot,isFromIconSelectPopup:Kn}),Do&&(0,se.jsx)(Ne,{onStarTemplates:ns,onClickCard:Ls})]})})}class kt extends o.PureComponent{render(){const{show:dt,from:Ot,onSetCurrentNodeIcon:Ct}=this.props,wo=Ot===r.Z.iconSelectPopup;return!dt&&!wo?null:(0,se.jsx)(Ho,{from:Ot,onSetCurrentNodeIcon:Ct})}}const Ze=(0,g.Mz)([l.OW],st=>({show:st===C.lS.Icon})),it=(0,m.Ng)(st=>Ze(st))(kt)},31199:(Et,ke,e)=>{"use strict";e.d(ke,{l:()=>C,q:()=>T});var o=e(51044),m=e(5775),g=e(95230),l=e(57464);const C=o.memo(function(k){const{onMouseDown:p,onDoubleClick:r,onSetCurrentNodeIcon:x,iconList:f,isMultiColorIcon:u}=k;return(0,l.jsx)("ul",{className:"icon-list",style:{width:g.qv},children:f.map((b,h)=>(0,l.jsx)(m.A,{index:h,icon:b,isMultiColorIcon:u,onDoubleClick:r,onMouseDown:p,onSetCurrentNodeIcon:x},h))})}),T=o.memo(function(k){const{onMouseDown:p,onDoubleClick:r,onSetCurrentNodeIcon:x,iconList:f,multiColorIconObj:u}=k;return(0,l.jsx)("ul",{className:"icon-list",style:{width:g.qv},children:f.map((b,h)=>(0,l.jsx)(m.A,{index:h,icon:b,isMultiColorIcon:!!u[b.groupCid],onDoubleClick:r,onMouseDown:p,onSetCurrentNodeIcon:x},h))})})},51050:(Et,ke,e)=>{"use strict";e.d(ke,{Z:()=>o});let o=function(m){return m[m.iconSelectPopup=0]="iconSelectPopup",m[m.sideBarPanel=1]="sideBarPanel",m}({})},66923:(Et,ke,e)=>{"use strict";e.d(ke,{Z:()=>o});let o=function(m){return m.iconWidgetSettingPanel="icon-widget-setting-panel",m.navigationMenuSettingPanel="navigation-menu-setting-panel",m}({})},72696:(Et,ke,e)=>{"use strict";e.d(ke,{I:()=>S});var o=e(51044),m=e(72605),g=e(86634),l=e.n(g),C=e(63686),T=e(25051),A=e(32443),k=e(47143),p=e(78570),r=e(30797),x=e(2320),f=e(63555),u=e(46664),b=e(7290),h=e(15336),E=e(89860),N=e(57464);const z=(0,C.Mz)([k.wA,k.HW,k.X_,k.Pz,k.PL,p.PI,p.k3,k.Ur,r.QA],(y,a,$,ce,de,fe,se,J,ve)=>({currentOrg:y,currentUser:a,scale:$,canvasRect:ce,rootProject:de,showDragMode:fe,isAdsorbentReferenceLine:se,currentScreen:J,selectedItems:ve})),S=y=>{const a=(0,m.wA)(),$=(0,m.d4)(mt=>z(mt)),ce=(0,T.c)({dispatch:a,...$,popupsName:y.popupsName,type:"picture",isFind:!0,isOrg:!1}),de=(mt,i)=>{$.selectedItems.find(gt=>gt.type===f.x.WImage)&&a({type:"entry:replace:widget:by:asset",payload:{asset:i,assetReplaceMode:f.x.WImage}}),$.selectedItems.find(gt=>gt.type===f.x.WCarousel)&&a({type:"entry:replace:widget:by:asset",payload:{asset:i,assetReplaceMode:f.x.WCarousel}}),(0,u.Cp)({projectUpperType:"picture",projectUpperCid:i.asset_cid}),a({type:"entry:insert:sticky:by:asset",payload:{asset:i}}),a({type:"entry:mind:insert:asset",payload:{asset:i}})},fe=(mt,i)=>{mt.stopPropagation();const{onAssetImport:gt}=ce;gt&>(i)},{handleClick:se,handleDoubleClick:J}=(0,x.A)({onClick:de,onDoubleClick:fe,asset:y.asset}),ve=(mt,i)=>{mt.stopPropagation();const{onMouseDown:gt}=ce;gt&>(mt,i)},D=mt=>mt.tabHeight?mt.tabHeight:y.isHistoryItem?109:109*mt.height/mt.width,R=mt=>mt.tabHeight?mt.width*mt.tabHeight/mt.height:109,V=mt=>{mt.stopPropagation();const{copyright:i}=Ce,{user_html:gt}=i||{};(0,h.JW)(gt,"_blank","noreferrer")},O=mt=>{mt.stopPropagation();const{copyright:i}=Ce,{img_html:gt}=i||{};(0,h.JW)(gt,"_blank","noreferrer")},{asset:Ce,lazyLoad:ae,containerRect:q,scrollDirection:K,preloadDistance:xe}=y;if(!Ce)return;const{image:te,thumb:H,from:re,copyright:be,asset_cid:Le,group_cid:Ve}=Ce,{user_name:Ne,img_html:We,user_html:ze}=be||{},ft={key:te,height:D(Ce),width:R(Ce),onDoubleClick:J,onClick:se,onMouseDown:mt=>ve(mt,Ce),isHistoryItem:y.isHistoryItem};return ae?!q||!K||!xe?null:(0,N.jsx)(_,{asset:Ce,containerRect:q,scrollDirection:K,preloadDistance:xe,commonProps:ft}):(0,N.jsx)(A.bu,{className:"pic-item mt-exposure-observer normal",url:H,"data-cid":Le,"data-resources-cid":Ve,...ft,children:re==="unsplash"&&(0,N.jsxs)("div",{className:"copy-right",children:[ze&&(0,N.jsx)("div",{className:"user-name",onClick:V,children:Ne}),We&&(0,N.jsx)(b.C,{name:"chatGPT/auth_image_html",isColorPure:!0,size:10,onClick:O})]})})},_=y=>{const{containerRect:a,scrollDirection:$,preloadDistance:ce,commonProps:de,asset:fe}=y,{thumb:se,asset_cid:J,group_cid:ve}=fe,[D,R]=(0,o.useState)(!1),V=(0,o.useRef)(null);return(0,o.useEffect)(()=>{if(!V||!V.current)return;const O=V.current;if($==="y"){const{top:Ce,bottom:ae}=O.getBoundingClientRect(),{top:q,bottom:K}=a;Ce-ce<K&&ae>q?R(!0):R(!1)}else if($==="x"){const{left:Ce,right:ae}=O.getBoundingClientRect(),{left:q,right:K}=a;Ce-ce<K&&ae>q?R(!0):R(!1)}},[a,ce,$]),(0,N.jsx)(A.bu,{className:l()("pic-item mt-exposure-observer lazy"),ref:V,"data-cid":J,"data-resources-cid":ve,...de,children:(0,N.jsx)(E.A,{isVisible:D,imageUrl:se})})}},76253:(Et,ke,e)=>{"use strict";e.d(ke,{D:()=>C});var o=e(51044),m=e(72696),g=e(32443),l=e(57464);const C=T=>{const A=[],k=[];let p=0,r=0;return T.pictureList.forEach(x=>{const f=109*x.height/x.width;p<r?(A.push(x),p+=f):(k.push(x),r+=f)}),(0,l.jsxs)(g.Ws,{className:"picture-list",children:[(0,l.jsx)("div",{children:A.map(x=>(0,l.jsx)(m.I,{...T,asset:x,popupsName:T.popupsName},x.asset_cid))}),(0,l.jsx)("div",{children:k.map(x=>(0,l.jsx)(m.I,{...T,asset:x,popupsName:T.popupsName},x.asset_cid))})]})}},87675:(Et,ke,e)=>{"use strict";e.d(ke,{B:()=>N});var o=e(51044),m=e(72605),g=e(63508),l=e(46664),C=e(63555),T=e(2320),A=e(47143),k=e(78570),p=e(30797),r=e(63686),x=e(25051),f=e(33270),u=e(40684),b=e(32443),h=e(57464);const E=(0,r.Mz)([A.wA,A.HW,A.X_,A.Pz,A.PL,k.PI,k.k3,A.Ur,p.QA],(z,S,_,y,a,$,ce,de,fe)=>({currentOrg:z,currentUser:S,scale:_,canvasRect:y,rootProject:a,showDragMode:$,isAdsorbentReferenceLine:ce,currentScreen:de,selectedItems:fe})),N=z=>{const{asset:S,popupsName:_,from:y}=z,a=(0,m.wA)(),$=(0,m.d4)(R=>E(R)),ce=(0,x.c)({dispatch:a,...$,popupsName:_,type:"sticker",isFind:!0,isOrg:!1}),de=()=>{if(ENV.IS_WONDER_SHARE)MB.notice({text:(0,h.jsxs)("p",{children:["You can ",(0,h.jsx)("a",{style:{color:"#fff"},onClick:()=>de(MB.currentOrg),children:"upgrade"})," to use premium templates."]}),showClose:!0,duration:0,isReactDom:!0});else{const{checkoutPlace:R,payEntrance:V}=(0,f.FS)(u.b4),O={mode:"mat",payEntrance:V,checkoutArea:"proto",checkoutPlace:R,templateCid:S==null?void 0:S.id,templateName:S==null?void 0:S.name,templateCategory:u.b4,templateGroupName:S==null?void 0:S.group_cid};MB.global.popupHelper.chargeAsync(O)}},fe=(R,V)=>{const{isMktMember:O}=(0,g.s)($.currentUser,MB.currentOrg);if(!O){de();return}$.selectedItems.find(Ce=>Ce.type===C.x.WImage)&&a({type:"entry:replace:widget:by:asset",payload:{asset:V,assetReplaceMode:C.x.WImage}}),$.selectedItems.find(Ce=>Ce.type===C.x.WCarousel)&&a({type:"entry:replace:widget:by:asset",payload:{asset:V,assetReplaceMode:C.x.WCarousel}}),(0,l.Cp)({projectUpperType:"picture",projectUpperCid:V.asset_cid}),a({type:"entry:insert:sticky:by:asset",payload:{asset:V}}),a({type:"entry:mind:insert:asset",payload:{asset:V}})},se=(R,V)=>{R.stopPropagation();const{isMktMember:O}=(0,g.s)($.currentUser,MB.currentOrg);if(!O){de();return}const{onAssetImport:Ce}=ce;Ce&&Ce(V)},{handleClick:J,handleDoubleClick:ve}=(0,T.A)({onClick:fe,onDoubleClick:se,asset:S}),D=(R,V)=>{R.stopPropagation();const{isMktMember:O}=(0,g.s)($.currentUser);if(!O){de();return}const{onMouseDown:Ce}=ce;Ce&&Ce(R,V)};if(S)return(0,h.jsx)(b.mh,{className:"sticker-item "+(y==="findPanel"?"builtin":"card"),onDoubleClick:ve,onClick:J,onMouseDown:R=>D(R,S),children:(0,h.jsx)("img",{src:S.thumb||S.image,alt:S.name})})}},73402:(Et,ke,e)=>{"use strict";e.d(ke,{u:()=>C});var o=e(51044),m=e(21676),g=e(87675),l=e(57464);const C=A=>{const{stickerList:k,popupsName:p}=A;return k?(0,l.jsx)(T,{className:"sticker-item-list",children:k.map((r,x)=>(0,l.jsx)(g.B,{asset:r,popupsName:p},x))}):null},T=m.Ay.div.withConfig({displayName:"StickerList__StyledStickerList",componentId:"sc-1bmduah-0"})(["&.sticker-item-list{width:100%;overflow:hidden auto;display:grid;grid-template-columns:repeat(2,109px);gap:8px;}"])},32443:(Et,ke,e)=>{"use strict";e.d(ke,{Ws:()=>g,bu:()=>l,mh:()=>C});var o=e(21676);const m=o.Ay.div.withConfig({displayName:"styles__StyledFilterWords",componentId:"sc-1pmrs9z-0"})(["width:235px;margin:0 auto;ul{list-style-type:none;display:grid;grid-row-gap:8px;grid-column-gap:4px;grid-template-columns:repeat(",",1fr);padding:4px 0 10px 0;margin:0 5.5px;li{display:inline-flex;align-items:center;justify-content:center;height:24px;border-radius:6px;cursor:pointer;background:",";color:",";&:not(.active):hover{background:",";}&.active{background-color:",";color:",";font-weight:500;}}}ul{li{border:1px solid ",";&.active{border:1px solid ",";}}}"],T=>T.col,T=>T.theme.color_bg_white,T=>T.theme.color_text_L1,T=>T.theme.color_btn_secondary_hover,T=>T.theme.color_btn_primary_normal,T=>T.theme.color_text_btn,T=>T.theme.color_bg_border_01,T=>T.theme.color_btn_primary_normal),g=o.Ay.div.withConfig({displayName:"styles__StyledPictureList",componentId:"sc-1pmrs9z-1"})(["display:flex;flex-direction:row;overflow-x:hidden;overflow-y:auto;& > div:first-child{margin-right:8px;}& > div{display:flex;flex-direction:column;height:max-content;}"]),l=o.Ay.div.withConfig({displayName:"styles__StyledPictureItem",componentId:"sc-1pmrs9z-2"})(["cursor:pointer;position:relative;width:","px;height:","px;min-height:","px;margin-bottom:",";background-size:cover;border-radius:6px;margin-right:",";&.lazy{display:flex;align-items:center;justify-content:center;img{max-width:100%;max-height:100%;border-radius:6px;}}&.normal{background-image:url(",');}&:hover{&::after{border:2px solid #79baff;}.copy-right{display:flex;}}&::after{content:"";position:absolute;top:0px;left:0px;width:100%;height:100%;border-radius:6px;border:1px solid ',";transition:all 0.15s ease-in-out 0s;}.copy-right{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(180deg,rgba(0,0,0,0) -31.25%,rgba(0,0,0,0.8) 100%);height:24px;font-size:12px;color:white;align-items:center;padding:0 6px;justify-content:space-between;overflow:hidden;border-radius:0 0 4px 4px;flex-direction:row;display:none;z-index:1;.user-name{color:white;max-width:70px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}"],T=>T.width,T=>T.height,T=>T.height,T=>T.isHistoryItem?"":"8px",T=>T.isHistoryItem?"8px":"",T=>T.url,T=>T.theme.color_btn_secondary_hover),C=o.Ay.div.withConfig({displayName:"styles__StyledStickerItem",componentId:"sc-1pmrs9z-3"})(["&.builtin{display:flex;justify-content:center;align-items:center;border-radius:6px;cursor:pointer;&:hover{background-color:",';}img{height:36px;}}&.card{display:flex;justify-content:center;align-items:center;transition:all 0.15s ease-in-out 0s;height:82px;position:relative;border-radius:6px;cursor:pointer;&:hover{&::after{border:2px solid #79baff;}.copy-right{display:flex;}}&::after{content:"";position:absolute;top:0px;left:0px;width:100%;height:100%;border-radius:5px;border:1px solid ',";transition:all 0.15s ease-in-out 0s;}img{height:60px;}}"],T=>T.theme.color_btn_secondary_hover,T=>T.theme.color_btn_secondary_hover)},68158:(Et,ke,e)=>{"use strict";e.d(ke,{Kb:()=>m,Pb:()=>A,SU:()=>C,kN:()=>T,nA:()=>g});var o=e(33270);const m=(k,p)=>{let[r,[x,f],[u,b],h]=p;return(0,o.qT)({url:r,tab:k,height:b,width:u,tags:h})},g=(k,p)=>{let{url:r,name:x,thumb_url:f,res_id:u}=p;return(0,o.ZU)({url:r,tab:k,name:x,thumb_url:f,res_id:u})},l=k=>k.sort(()=>Math.random()-.5),C=k=>{const p=[],r=[];return k.forEach(x=>x.width/x.height>1?p.push(x):r.push(x)),[p,r]},T=(k,p)=>{const r=[];if(k.length===0||p.length===0)return l([...k,...p]);const x=l(k),f=l(p);return r.push(...l([x.pop(),f.pop()])),r.push(...l([...x,...f])),r},A=k=>{const p=k[0],r=k[1];return 218/(p.width/p.height+r.width/r.height)}},2320:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>g});var o=e(51044);function m(l){let{onClick:C,onDoubleClick:T,asset:A}=l;const k=(0,o.useRef)(null),p=(0,o.useCallback)(()=>{k.current&&(clearTimeout(k.current),k.current=null)},[k]),r=(0,o.useCallback)(f=>{p(),k.current=setTimeout(()=>{k.current=null,C(f,A)},0)},[k,p,C,A]),x=(0,o.useCallback)(f=>{p(),T(f,A)},[p,T,A]);return{handleClick:r,handleDoubleClick:x}}const g=m},92351:(Et,ke,e)=>{"use strict";e.d(ke,{H:()=>o});function o(m){const g=new Map;m.forEach(T=>{g.set(T.cid,{...T,subFolder:[],level:1})});const l=[],C=(T,A,k)=>{k.has(T.cid)||(k.add(T.cid),T.level=A,T.subFolder.forEach(p=>C(p,A+1,k)))};return m.forEach(T=>{if(T.parent_cid===null){const A=g.get(T.cid);l.push(A),C(A,1,new Set)}else{const A=g.get(T.parent_cid);if(A){const k=g.get(T.cid);k.level=(A.level||1)+1,A.subFolder.push(k),C(k,k.level,new Set)}}}),l}},23692:(Et,ke,e)=>{"use strict";e.d(ke,{P:()=>Gs});var o=e(51044),m=e(72605),g=e(63686),l=e(98386),C=e(74059),T=e(47143),A=e(94153),k=e(46479),p=e(33270),r=e(78869),x=e.n(r),f=e(86634),u=e.n(f),b=e(78570),h=e(36875),E=e(7290),N=e(82572),z=e(93677),S=e(72128),_=e(34161),y=e(57464);class a extends o.PureComponent{render(){const{className:ps,level:kn,builtWidgets:zn,collapsePanelSet:hs,onRenderIcon:Ss,onTogglePanel:fi,screenMeta:ri,rootProject:Li,showDragMode:ji,isAdsorbentReferenceLine:_t,popupsPanelName:Aa,keyword:Ki="",dispatch:bi}=this.props;if(!zn)return null;const{cid:sa,type:Zi,groupName:Fa,items:to}=zn,Qt=hs.has(sa);return(0,y.jsx)(N.A,{className:u()("search-result-item-collapse",ps),id:sa,title:Fa,expanded:Qt,renderIcon:()=>Ss(Qt),onToggle:()=>fi(sa),isSearch:!0,secondary:!0,level:kn,children:(0,y.jsx)("ul",{className:u()("search-result-item-container","search_built_widgets",Zi),children:to.map(Sn=>{const{cid:Vo,name:ho,svg_icon:Uo,isMockingBotWidget:pn,template:ys,type:Dn,key:Hs}=Sn;return pn?(0,y.jsx)(S.Y,{screenMeta:ri,rootProject:Li,groupCid:"builtin",name:ho,type:Dn,icon:Uo,showDragMode:ji,isAdsorbentReferenceLine:_t,popupsPanelName:Aa,source:_.ol.SearchPanel,keyword:Ki,keyIcon:Hs,dispatch:bi},ho):ys?(0,y.jsx)(S.C,{template:Sn,showDragMode:ji,isAdsorbentReferenceLine:_t,popupsPanelName:Aa,dispatch:bi},Vo):null})})})}}const $=(0,g.Mz)([T.Ur,T.PL,b.PI,b.k3,l.B8,A.uJ],(Vs,ps,kn,zn,hs,Ss)=>({screenMeta:Vs,rootProject:ps,showDragMode:kn,isAdsorbentReferenceLine:zn,popupsPanelName:hs,keyword:Ss})),ce=(0,m.Ng)(Vs=>$(Vs))(a);var de=e(31211),fe=e(48985),se=e(87416),J=e(54606),ve=e(51684),D=e(98195),R=e(14221);class V extends o.PureComponent{constructor(){super(...arguments),(0,C.A)(this,"onAddToOrg",ps=>{if(MB.global.experienceLoginModalHelper("isSave"))return;const{dispatch:kn,onSearch:zn}=this.props;kn({type:"entry:batch:transfer:user:combo:to:org",payload:{combo:ps,callback:()=>{zn&&zn()}}})}),(0,C.A)(this,"handleGetComboActions",()=>{const{currentOrg:ps,isOrg:kn,group:zn}=this.props;return{...(0,R.s)({...this.props,group:zn,popupsName:D.lS.Search}),onOrg:ps&&!kn?this.onAddToOrg:null}})}render(){const{item:ps,group:kn,isOrg:zn,currentUser:hs,containerRect:Ss,canEditLibrary:fi}=this.props;return(0,y.jsx)(ve.A,{groupCid:kn==null?void 0:kn.cid,item:ps,currentUserId:hs==null?void 0:hs.id,canEditLibrary:zn?fi:!0,containerRect:Ss,comboActions:this.handleGetComboActions()},ps.key)}}const O=(0,g.Mz)([T.wA,T.HW,T.X_,T.Pz,T.PL,b.PI,b.k3,T.F2,J.r],(Vs,ps,kn,zn,hs,Ss,fi,ri,Li)=>({currentOrg:Vs,currentUser:ps,scale:kn,canvasRect:zn,rootProject:hs,showDragMode:Ss,isAdsorbentReferenceLine:fi,projectUpperCid:ri==null?void 0:ri.cid,currentEditMode:Li})),Ce=(0,m.Ng)(Vs=>O(Vs))(V);var ae=e(14116),q=e(88319),K=e(99920);class xe extends o.PureComponent{constructor(ps){var kn;super(ps),(0,C.A)(this,"handleEdit",hs=>{hs.stopPropagation(),this.setState({isEditing:!0}),this.handMouseLeave()}),(0,C.A)(this,"handleTransfer",hs=>{hs.stopPropagation();const{item:Ss,groupAction:{onTransfer:fi}}=this.props;fi(Ss)}),(0,C.A)(this,"handleConfirm",hs=>{const{isOrg:Ss,groupAction:{onConfirm:fi},item:ri}=this.props;fi(hs,ri,()=>{MB.notice({text:I18N.Popups.folder_save_success})},Ss),this.setState({isEditing:!1})}),(0,C.A)(this,"handleRemove",hs=>{hs.stopPropagation();const{isOrg:Ss,item:fi,groupAction:{onRemove:ri}}=this.props;ri(fi,Ss)}),(0,C.A)(this,"setListElementRef",hs=>this.$element=hs),(0,C.A)(this,"handleEditName",hs=>{hs.stopPropagation(),this.setState({isEditing:!0})}),(0,C.A)(this,"handMouseEnter",hs=>{hs.buttons===0&&this.setState({isListItemGroup:!0})}),(0,C.A)(this,"handMouseLeave",()=>{this.setState({isListItemGroup:!1})}),this.state={isEditing:!1,isListItemGroup:!1};const zn=ps.isOrg?ps.item.user_id&&ps.item.user_id===((kn=ps.currentUser)==null?void 0:kn.id):!0;this.menuItems=[{isShow:!0,label:I18N.ToolBar.rename,onClick:this.handleEdit},{isShow:zn,label:I18N.LibraryContainer.delete,onClick:this.handleRemove},{isShow:ps.canEditLibrary&&!ps.isOrg&&ps.currentOrg,label:I18N.Popups.add_to_org,onClick:this.handleTransfer}]}handStopPropagation(ps){ps.stopPropagation()}render(){const{item:ps,isOrg:kn,canEditLibrary:zn,onClickGroup:hs}=this.props,{cid:Ss,name:fi}=ps,{isEditing:ri,isListItemGroup:Li}=this.state,ji=kn?zn:!0;return(0,y.jsxs)(K.ju,{className:"folder-group","data-cid":Ss,children:[(0,y.jsxs)("div",{className:"container",onClick:()=>hs(kn,ps),children:[(0,y.jsx)(E.C,{name:"art_board/folder",className:"folder"}),ji&&(0,y.jsxs)("div",{ref:this.setListElementRef,className:u()("actions",{hover:Li}),onMouseDown:this.handStopPropagation,onClick:this.handStopPropagation,onMouseEnter:this.handMouseEnter,onMouseLeave:this.handMouseLeave,children:[(0,y.jsx)(E.C,{name:"design/templates/temp-btn",className:"library-menu"}),Li&&(0,y.jsx)(q.A,{targetNode:this.$element,menuItems:this.menuItems,direction:"down",distance:2})]})]}),(0,y.jsxs)("div",{className:u()("item-name",{isLayerHover:!ri}),onClick:this.handleEditName,children:[(0,y.jsx)(ae.A,{value:fi,className:"editable-name",isEditing:ji&&ri,onConfirm:this.handleConfirm},fi),ji&&!ri&&(0,y.jsx)("div",{className:"item-action",children:(0,y.jsx)(E.C,{name:"general/pen"})})]})]})}}const te=(0,g.Mz)([T.HW,T.wA],(Vs,ps)=>({currentUser:Vs,currentOrg:ps})),H=(0,m.Ng)(Vs=>te(Vs))(xe);var re=e(20646),be=e(25051);class Le extends o.PureComponent{render(){const{item:ps,isOrg:kn,canEditLibrary:zn,containerRect:hs,currentUser:Ss}=this.props;return(0,y.jsx)(re.O,{asset:ps,shouldAuth:kn,canEditLibrary:kn?zn:!0,assetActions:(0,be.c)({...this.props,popupsName:D.lS.Search}),containerRect:hs,currentUserId:Ss==null?void 0:Ss.id,dispatch:this.props.dispatch})}}const Ve=(0,g.Mz)([T.wA,T.HW,T.X_,T.Pz,T.PL,b.PI,b.k3,T.Ur],(Vs,ps,kn,zn,hs,Ss,fi,ri)=>({currentOrg:Vs,currentUser:ps,scale:kn,canvasRect:zn,rootProject:hs,showDragMode:Ss,isAdsorbentReferenceLine:fi,currentScreen:ri})),Ne=(0,m.Ng)(Vs=>Ve(Vs))(Le);var We=e(11777),ze=e(72696),ft=e(5775),mt=e(46664),i=e(40684),gt=e(94307),Je=e(27806);class Pt extends o.PureComponent{constructor(){super(...arguments),(0,C.A)(this,"handleRenderSearchResultItem",(ps,kn)=>{const{isOrg:zn,containerRect:hs,rootProject:Ss,keyword:fi,currentCategoryTab:ri,canEditLibrary:Li,dispatch:ji,onSetCurrentNodeIcon:_t,onStarResources:Aa,onClickResources:Ki,onPaidResources:bi,onClickGroup:sa,groupAction:Zi,onSearch:Fa,onTrackTemplate:to}=this.props;switch(ps){case gt.I.SelfMakeCombo:return(0,y.jsx)(Ce,{item:kn,group:kn==null?void 0:kn.group,isOrg:zn,canEditLibrary:Li,containerRect:hs,onSearch:Fa});case gt.I.MarketTemplate:{const{mt:Qt,currentResources:Sn,currentSearchCategory:Vo}=kn;return(0,y.jsx)(de.A,{marketTemplate:Qt,currentResources:Sn,containerRect:hs,onPaidTemplates:()=>bi(Sn),onTrack:to,isShowFolderIcon:Vo===i.Gd,onOpenFolder:Ki})}case gt.I.Group:return(0,y.jsx)(H,{item:kn,isOrg:zn,canEditLibrary:Li,onClickGroup:sa,groupAction:Zi});case gt.I.Resources:return(0,y.jsx)(se.A,{isStared:kn.is_star,marketTemplate:kn,onStarTemplates:()=>Aa(kn),onClickCard:()=>Ki(kn)});case gt.I.IconList:return(0,y.jsx)(bt,{rootProject:Ss,group:kn,keyword:fi,currentCategoryTab:ri,onSetCurrentNodeIcon:_t,onClickCard:()=>{Ki({cid:kn.cid,title:kn.title,is_star:kn.is_star,category:kn.category,is_color_icon:kn.is_color_icon,policy:kn.policy,groupCid:kn.groupCid}),(0,Je.gQ)({widget_file_name:kn.title,keyword:fi,source:kn.is_color_icon?Je.Dn.COLOR_ICON_SEARCH:Je.Dn.ICON_SEARCH})},dispatch:ji});case gt.I.Asset:return(0,y.jsx)(Ne,{item:kn,isOrg:zn,canEditLibrary:Li,containerRect:hs});case gt.I.FindPicture:return(0,y.jsx)(ze.I,{asset:kn,popupsName:D.lS.Search})}})}render(){const{type:ps,item:kn}=this.props;return(0,y.jsx)(y.Fragment,{children:this.handleRenderSearchResultItem(ps,kn)})}}class bt extends o.PureComponent{constructor(){super(...arguments),(0,C.A)(this,"handleIconItemCreate",(ps,kn,zn,hs)=>{const{group:{is_color_icon:Ss}}=this.props;this.props.dispatch({type:"entry:create:svg_icon_path:by:mousedown",payload:{event:ps,icon:kn,iconName:zn,iconDisplayName:hs,isMultiColorIcon:Ss,callback:()=>{this.onRequestUpdateRecentImportResources({itemCid:kn.id,groupCid:kn.groupCid}),this.handleTrack((ps==null?void 0:ps.type)==="mousedown"?_.k8.Drag:_.k8.DoubleClick,zn,kn.groupCid)}}})}),(0,C.A)(this,"onRequestUpdateRecentImportResources",ps=>{let{itemCid:kn,groupCid:zn}=ps;const hs={projectUpperType:"icon_group",projectUpperCid:zn,itemCid:kn};(0,mt.Cp)(hs)}),(0,C.A)(this,"handleTrack",(ps,kn,zn)=>{const{group:{title:hs,is_color_icon:Ss},rootProject:fi,keyword:ri,currentCategoryTab:Li}=this.props,ji=Li!==i.C,_t=Li===i.C&&Ss?i.WY:Li,Aa=ji?_.Jj[_t]+"-"+_.Ii.OtherSearchResults:_.Jj[_t];(0,_.Mi)({popupsName:D.lS.Search,addType:ps,source:Aa,category:_t,templateGroupName:hs,name:kn,rootProject:fi,keyword:ri,templateGroupCid:zn})}),(0,C.A)(this,"onShowTipsByTarget",(ps,kn)=>kn.offsetWidth<kn.scrollWidth)}render(){const{group:{title:ps,data:kn,is_color_icon:zn,policy:hs},onSetCurrentNodeIcon:Ss,onClickCard:fi}=this.props;return(0,y.jsxs)(K.Ve,{className:"search-result-icon-group-list",children:[(0,y.jsxs)("header",{children:[(0,y.jsxs)("div",{className:"left",children:[(0,y.jsx)(We.A,{content:ps,direction:"down",isShowTipsByTarget:this.onShowTipsByTarget,children:(0,y.jsx)("div",{className:"template-title",children:ps})}),zn&&(0,y.jsx)(fe.W,{resources:{policy:hs}})]}),(0,y.jsxs)("div",{className:"right",onClick:fi,children:[(0,y.jsx)("span",{children:I18N.Resources.all}),(0,y.jsx)(E.C,{className:"arrow-right",name:"design/arrow/right"})]})]}),(0,y.jsx)("div",{className:u()("search-result-item-container",gt.I.Icon),children:kn.map((ri,Li)=>(0,y.jsx)(ft.A,{index:Li,icon:ri,isMultiColorIcon:zn,onDoubleClick:this.handleIconItemCreate,onMouseDown:this.handleIconItemCreate,onSetCurrentNodeIcon:Ss},ri.id))})]})}}var qt=e(84919),pt=e(99173),$t=e(76253),go=e(73402),Co=e(48217),Tt=e(82658),mo=e(10572),jo=e(24201);const Kt=Vs=>{let{popupsPanelName:ps,children:kn,userInput:zn="",source:hs}=Vs;const Ss=(0,m.wA)();return kn(async()=>{if(MB.global.experienceLoginModalHelper("isSave"))return;const ri=Ft(hs,ps),Li=nt(hs,ps);if(ps===Tt.SR.Combo){await Ss({type:"ai:update:state",payload:{showAIModal:!1,currentAiComponent:null}}),jo.ZF.setCache(ri),(0,jo.U2)({source:Li}),Ss({type:"entry:aiComponent:open:mode",payload:{userTextContent:zn}});return}const ji=(0,Tt.$I)().find(_t=>_t.type===ps);ji&&Ss({type:mo.X.AIOpenModal,payload:{...ji,userInput:zn,source:ri,openTrackSource:Li}})})},Ft=(Vs,ps)=>{if(ps===Tt.SR.PageV9)switch(Vs){case Tt.IA.SearchPanel:return"\u641C\u7D22\u9762\u677F-\u9875\u9762AI";default:return"\u9875\u9762AI"}if(ps===Tt.SR.Combo)switch(Vs){case Tt.IA.SearchPanel:return"\u641C\u7D22\u9762\u677F-\u7EC4\u4EF6AI";default:return""}},nt=(Vs,ps)=>{if(ps===Tt.SR.PageV9)switch(Vs){case Tt.IA.SearchPanel:return"\u641C\u7D22\u9762\u677F-\u9875\u9762AI";default:return""}if(ps===Tt.SR.Combo)switch(Vs){case Tt.IA.SearchPanel:return"\u641C\u7D22\u9762\u677F-\u7EC4\u4EF6AI";default:return""}};var Rt=e(46751);let yt=function(Vs){return Vs.MOBILE="mobile",Vs.WEB="web",Vs.OTHER="other",Vs.APP="app",Vs.APPLET="applet",Vs.WEB_BACK="web_back",Vs.WEBSITE="website",Vs.IPAD="ipad",Vs.SMART_TV="smart_tv",Vs.SMART_CAR="smart_car",Vs.APPLE_WATCH="apple_watch",Vs.SLIDE="slide",Vs.DISPLAY_SCREEN="display_screen",Vs.HMI="HMI",Vs.ACTIVITY="activity",Vs}({});const Jt=[yt.MOBILE,yt.APP,yt.APPLET],vo=[yt.WEB,yt.WEB_BACK,yt.WEBSITE],Yo=[yt.OTHER,yt.IPAD,yt.SMART_TV,yt.SMART_CAR,yt.APPLE_WATCH,yt.SLIDE,yt.DISPLAY_SCREEN,yt.HMI,yt.ACTIVITY];var Ho=e(43974);class kt extends o.PureComponent{constructor(){super(...arguments),(0,C.A)(this,"collapse_title_i18n_map",{[Co.rf.User]:I18N.LeftSidePanel.user_resources,[Co.rf.Org]:I18N.LeftSidePanel.org_resources,[Co.rf.Find]:I18N.Resources.findTab,[Co.rf.Star]:I18N.Resources.user_resource_panel.store,[Co.rf.PageScreen]:I18N.Resources.page_panel.page,[Co.rf.PageLibrary]:I18N.Resources.page_panel.page_library,[Co.rf.AssetPic]:"\u56FE\u7247",[Co.rf.AssetSticker]:"\u8D34\u7EB8"}),(0,C.A)(this,"renderIcon",ps=>{const kn=ps?"design/group_open":"design/group_close";return(0,y.jsx)(E.C,{className:"expanded-icon",name:kn})}),(0,C.A)(this,"renderStickerHeader",()=>(0,y.jsxs)("header",{className:"sticker-header",onClick:()=>this.handleTogglePanel(Ho.SM),children:[(0,y.jsx)(E.C,{className:"arrow-icon",name:"new/arrow_1/mini"}),(0,y.jsx)("span",{children:this.collapse_title_i18n_map[Co.rf.AssetSticker]}),(0,y.jsx)(We.A,{content:I18N.Resources.resourcesFooter.free_for_member,direction:"down",distance:8,enterHoverTime:100,children:(0,y.jsx)(E.C,{name:"left_panel/icon_list/mat_member",className:"mat-member",isColorPure:!0})})]})),(0,C.A)(this,"handleTogglePanel",ps=>{this.props.dispatch({type:"searchPanel:toggle:collapsePanelSet",payload:{id:ps}})}),(0,C.A)(this,"handleClickResources",ps=>{const{onClickResources:kn,keyword:zn}=this.props;kn&&kn(ps),(0,Je.gQ)({widget_file_name:ps.title,keyword:zn,source:Je.Dn.WIDGET_SEARCH,filter:""})}),(0,C.A)(this,"handleRenderSearchResults",ps=>{let{resultList:kn,isOrg:zn,containerRect:hs,isVisible:Ss}=ps;if(!kn)return null;const{type:fi,items:ri}=kn;return fi===gt.I.FindPicture?(0,y.jsx)("div",{className:u()("search-result-find-picture-container"),children:(0,y.jsx)($t.D,{pictureList:ri,popupsName:D.lS.Search})},fi):fi===gt.I.FindSticker?(0,y.jsx)("div",{className:u()("search-result-find-sticker-container"),children:(0,y.jsx)(go.u,{stickerList:ri,popupsName:D.lS.Search})},fi):fi===gt.I.IconList?this.handleRenderItems({type:fi,items:ri,isOrg:zn,containerRect:hs,isVisible:Ss}):(0,y.jsx)("ul",{className:u()("search-result-item-container",fi&&fi),children:this.handleRenderItems({type:fi,items:ri,isOrg:zn,containerRect:hs,isVisible:Ss})},fi)}),(0,C.A)(this,"handleRenderComboMtSearchResults",ps=>{let{resultList:kn,isOrg:zn,containerRect:hs,isVisible:Ss}=ps;if(!kn)return null;const{resultCategory:fi,level:ri,keyword:Li}=this.props,{type:ji,items:_t}=kn,Aa=(0,Co.$Y)(_t,"title");return(0,y.jsx)("ul",{className:u()("search-result-item-container isCombo observe-target-list"),children:Object.entries(Aa).map((Ki,bi)=>{var sa;let[Zi,Fa]=Ki;return(0,y.jsx)(qt.A,{dataCid:(sa=Fa[0])==null||(sa=sa.currentResources)==null?void 0:sa.cid,className:fi,index:bi,title:Zi,onClickResources:()=>{var to;return this.handleClickResources((to=Fa[0])==null?void 0:to.currentResources)},trackSource:Je.Dn.WIDGET_SEARCH,keyword:Li,level:ri,children:(0,y.jsx)("div",{className:"resources-card-list",children:this.handleRenderItems({type:ji,items:Fa.slice(0,6),isOrg:zn,containerRect:hs,isVisible:Ss})})},Zi)})},ji)}),(0,C.A)(this,"handleRenderPageMtSearchResults",ps=>{let{resultList:kn,containerRect:zn,isVisible:hs}=ps;if(!kn)return null;const{type:Ss,items:fi}=kn,{level:ri,resultCategory:Li,onPaidResources:ji,onTrackTemplate:_t,onClickResources:Aa}=this.props,Ki=(0,Co.$Y)(fi,"platform"),bi=[["mobile",Jt,I18N.Resources.page_panel.mobile],["web",vo,I18N.Resources.page_panel.web],["other",Yo,I18N.Resources.page_panel.other]];return(0,y.jsx)("ul",{className:"search-page-result-container observe-target-list",children:bi.map((sa,Zi)=>{let[Fa,to,Qt]=sa;const Sn=to.reduce((ho,Uo)=>ho.concat(Ki[Uo]||[]),[]);if(!Sn||Sn.length===0)return null;const Vo=Sn==null?void 0:Sn.map(ho=>{let{mt:Uo}=ho;return Uo});return(0,y.jsx)(qt.A,{dataCid:Fa,className:Li,index:Zi,title:Qt,level:ri,children:(0,y.jsx)(pt.A,{category:i.Gd,platform:Fa,marketTemplateItemList:Vo,containerRect:hs?zn:null,onPaidResources:ji,onTrack:_t,isShowSign:!0,isShowFolderIcon:!0,onOpenFolder:Aa})},Fa)})},Ss)}),(0,C.A)(this,"handleRenderItems",ps=>{let{type:kn,items:zn,isOrg:hs,containerRect:Ss,isVisible:fi}=ps;if(!Array.isArray(zn)){const{resultCategory:Vo,resultGroupList:ho}=this.props;(0,h.Cp)(new Error("DEBUG search result is undefined"),{level:"debug",fingerprint:["debug-search-result-is-undefined"],extra:{resultCategory:Vo,resultGroupList:ho}})}if(!(zn!=null&&zn.length))return null;const{rootProject:ri,keyword:Li,currentCategoryTab:ji,canEditLibrary:_t,onSetCurrentNodeIcon:Aa,onStarResources:Ki,onClickResources:bi,onPaidResources:sa,onClickGroup:Zi,groupAction:Fa,onSearch:to,onTrackTemplate:Qt,dispatch:Sn}=this.props;return zn.map(Vo=>{var ho,Uo;const pn=kn===gt.I.MarketTemplate?((ho=Vo.mt)==null?void 0:ho.id)||((Uo=Vo.mt)==null?void 0:Uo.cid):kn===gt.I.Asset||kn===gt.I.FindPicture?Vo.asset_cid:kn===gt.I.SelfMakeCombo?Vo.key:Vo.cid;return(0,y.jsx)(Pt,{isOrg:hs,type:kn,item:Vo,canEditLibrary:_t,rootProject:ri,containerRect:fi?Ss:null,keyword:Li,currentCategoryTab:ji,onSetCurrentNodeIcon:Aa,onStarResources:Ki,onClickResources:bi,onPaidResources:sa,onClickGroup:Zi,groupAction:Fa,onSearch:to,onTrackTemplate:Qt,dispatch:Sn},pn)})}),(0,C.A)(this,"handleRenderCollapseItems",ps=>{var kn;let{containerRect:zn,isVisible:hs}=ps;const{resultCategory:Ss,resultGroupList:fi=[],searchCollapsePanelSet:ri,builtWidgets:Li,level:ji}=this.props,_t=(Li==null||(kn=Li.items)==null?void 0:kn.length)>0;return(0,y.jsxs)(y.Fragment,{children:[_t&&(0,y.jsx)(ce,{className:"search-widgets-render",builtWidgets:Li,collapsePanelSet:ri,level:ji,onRenderIcon:this.renderIcon,onTogglePanel:this.handleTogglePanel}),fi.map(Aa=>{const{cid:Ki,name:bi,list:sa}=Aa,Zi=ri.has(Ki),Fa=this.collapse_title_i18n_map[bi];if(!(sa!=null&&sa.length))return null;const to=sa.filter(ho=>{let{type:Uo}=ho;return![gt.I.Group,gt.I.Resources,gt.I.Widget].includes(Uo)}),Qt=sa.filter(ho=>{let{type:Uo}=ho;return[gt.I.Group,gt.I.Resources].includes(Uo)}),Sn=bi===Co.rf.Org,Vo=bi===Co.rf.AssetSticker;return(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(N.A,{className:u()("search-result-item-collapse",Ss),id:Ki,title:Fa,expanded:Zi,renderIcon:this.renderIcon,onToggle:this.handleTogglePanel,renderHeader:Vo?this.renderStickerHeader:void 0,isSearch:!0,level:ji,children:[...to,...Qt].map(ho=>{if(!ho)return null;const{type:Uo}=ho;return Ss===i.t_&&Uo===gt.I.MarketTemplate?this.handleRenderComboMtSearchResults({resultList:ho,isOrg:Sn,containerRect:zn,isVisible:hs}):Ss===i.Gd&&Uo===gt.I.MarketTemplate?this.handleRenderPageMtSearchResults({resultList:ho,containerRect:zn,isVisible:hs}):this.handleRenderSearchResults({resultList:ho,isOrg:Sn,containerRect:zn,isVisible:hs})})},Ki)})})]})}),(0,C.A)(this,"handleRenderContent",()=>{const{resultCategory:ps,resultGroupList:kn,containerRect:zn,isVisible:hs}=this.props;switch(ps){case i.t_:case i.b4:case i.Gd:return this.handleRenderCollapseItems({containerRect:zn,isVisible:hs});case i.C:return kn.map(Ss=>this.handleRenderSearchResults({resultList:Ss,isOrg:!1,containerRect:zn,isVisible:hs}));default:return null}}),(0,C.A)(this,"renderAI",()=>{const{isEditingCombo:ps,resultCategory:kn,keyword:zn}=this.props;if(![i.t_,i.Gd].includes(kn)||kn===i.t_&&ps)return;const hs=kn===i.Gd?Tt.SR.PageV9:Tt.SR.Combo,Ss=kn===i.Gd?I18N.ChatGPT.ai_prototype_component_title:I18N.ChatGPT.ai_component_title,fi=kn===i.Gd?"chatGPT/ai-component-page":"chatGPT/ai-component-component";return(0,y.jsx)(Kt,{popupsPanelName:hs,userInput:zn,source:Tt.IA.SearchPanel,children:ri=>(0,y.jsx)(Rt.r,{className:"ai-entry-icon-button "+kn,iconName:fi,text:"AI "+Ss,onClick:ri})})})}render(){const{sum:ps,onRenderIconSetting:kn,isCurrentSearchCategory:zn,isFromIconSelectPopup:hs}=this.props;return ps===0?(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(K.qt,{className:u()("searchPanel",{isFromIconSelectPopup:hs}),children:(0,y.jsx)(z.b,{})})}):(0,y.jsxs)(y.Fragment,{children:[!hs&&zn&&kn(),(0,y.jsx)(K.yi,{className:"search-result-container",children:(0,y.jsx)("div",{className:"resultList",children:this.handleRenderContent()})})]})}}var Ze=e(54608),it=e(38473),st=e(21676);const dt=Vs=>{const{resultCategory:ps,searchResultListMap:kn,searchCollapsePanelSet:zn,categoryList:hs,categoryI18nMap:Ss,isDirectlyEditingProjectMain:fi,handleTogglePanel:ri,renderSearchResultsContent:Li}=Vs,ji=zn.has(Ho.Jf),_t=()=>(0,y.jsxs)("header",{onClick:()=>ri(Ho.Jf),children:[(0,y.jsx)("span",{children:I18N.Resources.searchPanel.otherResults}),(0,y.jsx)(E.C,{name:"common/expand"})]});return(0,y.jsx)(Ot,{children:(0,y.jsx)(N.A,{className:u()("other-search-results-collapse"),id:Ho.Jf,title:I18N.Resources.searchPanel.otherResults,expanded:ji,onToggle:ri,renderHeader:_t,children:Object.entries(kn).map(Aa=>{let[Ki,bi]=Aa;if(Ki===ps&&hs.includes(Ki)||!bi||bi.total===0||!fi&&Ki===i.Gd)return null;const sa=zn.has(Ki);return(0,y.jsx)(N.A,{className:u()("category-search-results-collapse",Ki),id:Ki,title:I18N.Resources.searchPanel.searchCategory.replace(/%category%/,Ss[Ki])+"\uFF08"+bi.total+"\uFF09",expanded:sa,onToggle:ri,isSearch:!0,level:1,children:Li(Ki)},Ki)})},Ho.Jf)})},Ot=st.Ay.div.withConfig({displayName:"OtherSearchResultContent__StyledOtherSearchResults",componentId:"sc-67gw9b-0"})(["width:246px;.other-search-results-collapse{&:not(.expanded) > header svg{transform:rotate(180deg);}> header{position:relative;display:flex;align-items:center;justify-content:start;margin-bottom:8px;cursor:pointer;span{margin-left:68px;font-size:12px;font-weight:400;color:",";}svg{transition:transform 0.2s ease-in-out;margin:4.5px;width:8px;path{fill-opacity:1;fill:",";}}&::before{content:'';position:absolute;left:12px;top:15.5px;height:1px;width:61px;background-color:",";}&::after{content:'';position:absolute;left:177px;top:15.5px;height:1px;width:61px;background-color:",";}}> div{display:flex;flex-direction:column;row-gap:8px;}}"],Vs=>Vs.theme.color_text_L2,Vs=>Vs.theme.color_text_L3,Vs=>Vs.theme.color_btn_secondary_hover,Vs=>Vs.theme.color_btn_secondary_hover);var Ct=e(15336),wo=e(51691);class ln extends o.PureComponent{constructor(){super(...arguments),(0,C.A)(this,"handleGotoCommunity",()=>{const{keyword:ps,currentCategoryTab:kn}=this.props,[zn,hs]=(()=>{switch(kn){case i.t_:return["proto-combo","\u7F16\u8F91\u533A-\u7EC4\u4EF6\u641C\u7D22\u7ED3\u679C\u9875"];case i.C:return["proto-icon","\u7F16\u8F91\u533A-\u56FE\u6807\u641C\u7D22\u7ED3\u679C\u9875"];case i.Gd:return["proto-page","\u7F16\u8F91\u533A-\u9875\u9762\u641C\u7D22\u7ED3\u679C\u9875"];default:return["",""]}})();wo.Y4.communityEnterClick({source:hs}),(0,Ct.JW)("/com24/home?source="+zn+"&category="+kn+"&keyword="+ps+"&t=20250122","_blank","noreferrer")})}render(){const{currentCategoryTab:ps}=this.props;return ps!==i.b4&&(0,y.jsx)(Rt.r,{className:"goto-community-button",iconName:"art_board/mkt/search/community_icon",text:I18N.SettingPanel.sucai,onClick:this.handleGotoCommunity})}}(0,C.A)(ln,"defaultProps",{isFromIconSelectPopup:!1,isEmpty:!1});var Io=e(46927),Lo=e(10052),Ao=e(91344),xt=e(89399);const Ut=Vs=>{var ps;const{loading:kn,unsplashLoading:zn,word:hs,type:Ss,searchResultSum:fi,searchResultListMap:ri,rootProject:Li,isDirectlyEditingProjectMain:ji,isFromIconSelectPopup:_t,iconSelectPopupSearchResultList:Aa,iconSelectPopupSearchResultSum:Ki,searchCollapsePanelSet:bi,isExperience:sa,theme:Zi,layoutV9:Fa,searchMtMetaCidMap:to,isEditingCombo:Qt,withOverlay:Sn,canEditLibrary:Vo,onSetCurrentNodeIcon:ho,onStarResources:Uo,onPaidResources:pn,onToggleCurrentResources:ys,onToggleCurrentComboGroup:Dn,onToggleCurrentAssetGroup:Hs,onGetComboGroupActions:Qn,onGetAssetGroupAction:Gi,onTrack:oa,onGetIsCategory:ta,renderLoading:Sa,dispatch:La}=Vs,ya=(0,o.useMemo)(()=>{const zt=[{key:"1",label:I18N.ArtBoard.widget,type:i.t_},{key:"2",label:I18N.ArtBoard.icon,type:i.C},{key:"3",label:I18N.ArtBoard.page,type:i.Gd}],po={key:"4",label:I18N.ArtBoard.image,type:i.b4};return ji?zt.slice(0,2).concat(po).concat(zt.slice(2,3)):zt.slice(0,2).concat(po)},[ji]),Ja=(0,o.useMemo)(()=>ya.map(zt=>{let{type:po}=zt;return po}),[ya]),No=(0,o.useMemo)(()=>ya.reduce((zt,po)=>{let{type:Fo,label:Mn}=po;return zt[Fo]=Mn,zt},{}),[ya]),[ct,Mt]=(0,o.useState)(Ja.findIndex(zt=>zt===Ss)),ht=(0,o.useMemo)(()=>Ja[ct],[Ja,ct]),oo=fi-(((ps=ri[ht])==null?void 0:ps.total)||0),uo=(0,o.useMemo)(()=>(0,Io.D1)(ji,Sn,hs),[ji,Sn,hs]);(0,o.useEffect)(()=>(Ao.A.emit(xt.rg),()=>{Ao.A.emit(xt.P2,{shownMtItemCids:[]})}),[]),(0,o.useEffect)(()=>{const zt=document.querySelector("#mb-search-results-panel");zt&&zt.scrollTo(0,0),La({type:"searchPanel:update:state",payload:{searchCollapsePanelSet:new Set(Ho.CR)}})},[ht,La]),(0,o.useEffect)(()=>{La({type:"searchPanel:update:state",payload:{type:ht}})},[ht,La]);const So=(0,o.useCallback)(zt=>{Mt(zt),La({type:"searchPanel:update:state",payload:{searchResultCategory:Ja[zt]}})},[Ja,La]);(0,o.useEffect)(()=>{if(ji)return;ct===(sa?2:3)&&So(0)},[So,ji,sa,ct]);const zo=function(zt){var po,Fo;return zt===void 0&&(zt=ht),{list:_t?Aa:(po=ri[zt])==null?void 0:po.list,sum:_t?Ki:(Fo=ri[zt])==null?void 0:Fo.total,resultCategory:_t?i.C:zt,collapsePanelSet:_t?new Set:bi}},en=()=>{const{iconDefaultColor:zt,iconDefaultSize:po}=Vs,{isIcon:Fo}=ta(ht),{sum:Mn}=zo();return!Fo||Mn===0?null:(0,y.jsx)("footer",{children:(0,y.jsx)(it.N,{iconDefaultColor:zt,iconDefaultSize:po})})},mn=zt=>{La({type:"searchPanel:toggle:collapsePanelSet",payload:{id:zt}})},jn=()=>{const{isEditingCombo:zt,word:po}=Vs;if(ENV.IS_ON_PREMISES||![i.t_,i.Gd].includes(ht)||ht===i.t_&&zt)return;const Fo=ht===i.Gd?Tt.SR.PageV9:Tt.SR.Combo,Mn=ht===i.Gd?I18N.ChatGPT.ai_prototype_component_title:I18N.ChatGPT.ai_component_title,Fn=ht===i.Gd?"chatGPT/ai-component-page":"chatGPT/ai-component-component";return(0,y.jsx)(Kt,{popupsPanelName:Fo,userInput:po,source:Tt.IA.SearchPanel,children:ts=>(0,y.jsx)(Rt.r,{className:"ai-entry-icon-button "+ht,iconName:Fn,text:"AI "+Mn,onClick:ts})})},Oo=zt=>{const{sum:po}=zo(zt),Fo=(0,Co.Vt)(hs),Mn=No[zt];return(0,y.jsx)("div",{className:"result",children:(0,y.jsx)("span",{dangerouslySetInnerHTML:{__html:I18N.Resources.searchPanel.resultDesc_1.replace(/%num%/,po).replace(/%keyword%/,Fo).replace(/%category%/,Mn)}})})},Nn=(zt,po,Fo)=>{const Mn=zt===ht,{isCombo:Fn}=ta(zt),{list:ts,sum:As,collapsePanelSet:Is}=zo(zt);return!Mn&&(!ts||ts.length===0)?null:(0,y.jsx)(kt,{sum:As,isFromIconSelectPopup:_t,keyword:hs,builtWidgets:Fn?uo:null,resultCategory:zt,resultGroupList:ts||[],searchCollapsePanelSet:Is,rootProject:Li,currentCategoryTab:ht,isCurrentSearchCategory:Mn,isEditingCombo:Qt,canEditLibrary:Vo,containerRect:po,isVisible:Fo,onSetCurrentNodeIcon:ho,onStarResources:Uo,onClickResources:ys,onPaidResources:pn,onClickGroup:Fn?Dn:Hs,groupAction:Fn?Qn():Gi(),onTrackTemplate:oa,onRenderIconSetting:en,dispatch:La,level:Mn?1:2},zt)};if(!ri||!ht)return null;if(kn)return Sa();if(_t)return(0,y.jsx)(Wo,{keyword:hs,isFromIconSelectPopup:_t,iconList:Aa,children:(0,y.jsx)(K.m4,{children:(zt,po)=>Nn(ht,zt,po)})});const es=x()(()=>Ao.A.emit(xt.kE,{delay:0}),500);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("header",{children:(0,y.jsx)(Ze.A,{activeIndex:ct,onTabChange:So,layoutV9:Fa,children:ya.map(zt=>{let{key:po,...Fo}=zt;return(0,y.jsx)(Ze.n,{...Fo,className:u()({background_active:ya.length>1})},po)})})}),ht===i.b4&&zn?Sa():(0,y.jsxs)(Wo,{keyword:hs,currentCategory:ht,searchResultListMap:ri,children:[Oo(ht),(0,y.jsx)(K.m4,{id:"mb-search-results-panel",onScrollChange:es,children:(zt,po)=>(0,y.jsxs)(y.Fragment,{children:[Nn(ht,zt,po),jn(),oo!==0&&(0,y.jsx)(dt,{resultCategory:ht,searchResultListMap:ri,searchCollapsePanelSet:bi,categoryList:Ja,categoryI18nMap:No,isDirectlyEditingProjectMain:ji,handleTogglePanel:mn,renderSearchResultsContent:Fo=>Nn(Fo,zt,po)}),!ENV.IS_ON_PREMISES&&(0,y.jsx)(ln,{currentCategoryTab:ht,keyword:hs})]})})]})]})},Wo=Vs=>{let{keyword:ps,currentCategory:kn,searchResultListMap:zn,isFromIconSelectPopup:hs,iconList:Ss,children:fi}=Vs;return(0,o.useEffect)(()=>{const ri=hs?(0,Lo.K2)(ps,Ss):(0,Lo.wP)(ps,zn);Ao.A.emit(xt.jy,{observeMtItemObj:ri}),Ao.A.emit(xt.BD)},[Ss,hs,ps,zn,kn]),(0,o.useEffect)(()=>{!hs&&Ao.A.emit(xt.kE)},[kn,hs]),fi},qo=(0,g.Mz)([J.r,l.QU,l.Ct,T.W4,A.NA,A.Vs,A.I$,A.aP,A.uq,b.O4,A.FM,A.Xt,b.MZ,T.qv],(Vs,ps,kn,zn,hs,Ss,fi,ri,Li,ji,_t,Aa,Ki,bi)=>{let{isExperience:sa}=zn;const{isEditingProjectMain:Zi,isEditingCombo:Fa,isEditingBasket:to,isEditingMuban:Qt}=Vs;return{iconDefaultColor:ps,iconDefaultSize:kn,isExperience:sa,iconSelectPopupSearchResultList:hs,searchResultSum:Ss,iconSelectPopupSearchResultSum:fi,searchCollapsePanelSet:ri,isDirectlyEditingProjectMain:Zi,searchResultListMap:Li,theme:ji,searchMtMetaCidMap:_t,isEditingCombo:Fa,withOverlay:!(Fa||to||Qt),unsplashLoading:Aa,layoutV9:Ki,canEditLibrary:bi}}),sn=(0,m.Ng)(Vs=>qo(Vs))(Ut);var Kn=e(72117),ds=e(84009),_s=e(36349);const Ls=st.Ay.div.withConfig({displayName:"styles__StyledAssetGroupDetailPanel",componentId:"sc-vpipl0-0"})(["height:100%;display:flex;flex-direction:column;overflow:hidden;.asset-group-items-list{overflow-x:hidden;overflow-y:overlay;height:100%;flex:1;margin-top:12px;.scroll-container{padding:0 12px;display:grid;grid-row-gap:8px;grid-column-gap:8px;grid-template-columns:repeat(auto-fill,109px);width:250px;}}"]);class gs extends o.PureComponent{constructor(){super(...arguments),(0,C.A)(this,"handleLoadGroupData",ps=>{const{isOrg:kn,dispatch:zn}=this.props;zn(kn?{type:"entry:refresh:org-asset:from:cid",payload:{groupCid:ps}}:{type:"entry:refresh:user-asset:from:cid",payload:{groupCid:ps}})})}componentDidMount(){const{assetGroup:ps}=this.props;this.handleLoadGroupData(ps.cid)}render(){const{isOrg:ps,assetGroup:kn,orgAssetsMap:zn,userAssetsMap:hs}=this.props,{cid:Ss}=kn,fi=ps?zn.get(Ss):hs.get(Ss),ri=!fi,Li=!ri&&fi.sort((_t,Aa)=>Aa.ctime-_t.ctime),ji=!ri&&Li.length;return(0,y.jsx)(Ls,{children:ji?(0,y.jsx)("div",{className:"asset-group-items-list",children:(0,y.jsx)(_s.A,{className:"scroll-container",children:(_t,Aa)=>Li.map(Ki=>(0,y.jsx)(Ne,{isOrg:ps,item:Ki,containerRect:Aa&&_t},Ki.cid))})}):(0,y.jsx)(K.qt,{children:(0,y.jsx)("span",{children:I18N.Resources.empty_folder})})})}}const ns=(0,g.Mz)([A.vl,A.M5],(Vs,ps)=>{const{orgAssetsMap:kn}=Vs,{userAssetsMap:zn}=ps;return{orgAssetsMap:kn,userAssetsMap:zn}}),Wn=(0,m.Ng)(Vs=>ns(Vs))(gs);class Do extends o.PureComponent{constructor(){super(...arguments),(0,C.A)(this,"handleMouseDown",ps=>ps.preventDefault())}render(){var ps;const{isOrg:kn,comboGroup:zn,userComboGroup:hs,orgComboGroup:Ss}=this.props,{cid:fi}=zn,Li=((ps=(kn?Ss:hs).find(_t=>_t.cid===fi))==null?void 0:ps.children)||[],ji=Li==null?void 0:Li.length;return(0,y.jsx)(K.EZ,{children:ji?(0,y.jsx)("div",{className:"combo-group-items-list",children:(0,y.jsx)(_s.A,{className:"scroll-container",children:(_t,Aa)=>Li.map(Ki=>(0,y.jsx)(Ce,{isOrg:kn,item:Ki,group:zn,containerRect:Aa&&_t},Ki.key))})}):(0,y.jsx)(K.qt,{children:(0,y.jsx)("span",{children:I18N.Resources.empty_folder})})})}}const Go=(0,g.Mz)([A.wS,A.lb],(Vs,ps)=>({userComboGroup:Vs,orgComboGroup:ps})),an=(0,m.Ng)(Vs=>Go(Vs))(Do);var Mo=e(19722),Cn=e(9819),Tn=e(67217);class cn extends o.PureComponent{constructor(ps){super(ps),(0,C.A)(this,"handleCreateRef",kn=>this.$ref=kn),(0,C.A)(this,"setElementRef",kn=>this.$element=kn),(0,C.A)(this,"handMouseEnter",kn=>{kn.buttons===0&&this.setState({isOpenMenu:!0})}),(0,C.A)(this,"handMouseLeave",()=>{this.setState({isOpenMenu:!1})}),(0,C.A)(this,"handleGetItemLists",()=>{const{group:kn,isOrg:zn,currentUser:hs,currentOrg:Ss}=this.props,fi=zn?kn.user_id&&kn.user_id===(hs==null?void 0:hs.id):!0;return[{isShow:!0,label:I18N.ToolBar.rename,onClick:this.handleEdit},{isShow:fi,label:I18N.LibraryContainer.delete,onClick:this.handleRemove},{isShow:!zn&&Ss,label:I18N.Popups.add_to_org,onClick:this.handleTransfer}]}),(0,C.A)(this,"handleTransfer",()=>{const{group:kn,groupAction:zn}=this.props;if(!kn)return;const{onTransfer:hs}=zn;hs(kn),this.handMouseLeave()}),(0,C.A)(this,"handleConfirm",kn=>{const{group:zn}=this.props;if(!zn)return;const{isOrg:hs,groupAction:{onConfirm:Ss}}=this.props;Ss(kn,zn,()=>{MB.notice({text:I18N.Popups.folder_save_success})},hs),this.setState({isEditing:!1})}),(0,C.A)(this,"handleEdit",kn=>{const{group:zn}=this.props;zn&&(kn.stopPropagation(),this.setState({isEditing:!0}),this.handMouseLeave())}),(0,C.A)(this,"handleRemove",kn=>{const{group:zn}=this.props;if(!zn)return;kn.stopPropagation();const{isOrg:hs,groupAction:{onRemove:Ss},onBack:fi}=this.props;this.handMouseLeave(),Ss(zn,hs,()=>{fi()})}),(0,C.A)(this,"handleToggle",kn=>{const zn=kn!==void 0?kn:!this.state.isSearching;this.setState({isSearching:zn}),zn&&setTimeout(()=>{this.$ref&&this.$ref.focus()})}),(0,C.A)(this,"handleBack",()=>{const{isSearching:kn}=this.state,{onBack:zn,onSearch:hs}=this.props;kn?(hs(""),this.handleToggle(!1)):zn()}),(0,C.A)(this,"onShowTipsByTarget",(kn,zn)=>zn.offsetWidth<zn.scrollWidth),this.state={isOpenMenu:!1,isEditing:!1,isSearching:!1}}render(){const{group:ps,currentResources:kn,onStarResources:zn,onSearch:hs}=this.props,{isOpenMenu:Ss,isEditing:fi,isSearching:ri}=this.state,Li=kn?kn.title:ps?ps.name:"",ji=this.handleGetItemLists(),_t=!!kn;return(0,y.jsxs)(K.R7,{children:[(0,y.jsx)(Mo.A,{className:"nav-back-icon",name:"left_panel/back/arrow",onClick:this.handleBack}),(0,y.jsxs)("div",{className:"center",children:[_t?ri?null:(0,y.jsxs)("div",{className:"title-box",children:[(0,y.jsx)(We.A,{content:Li,direction:"down",isShowTipsByTarget:this.onShowTipsByTarget,children:(0,y.jsx)("div",{className:"template-title",children:Li})}),(0,y.jsx)(fe.W,{resources:kn})]}):(0,y.jsx)(ae.A,{value:Li,className:"title",isEditing:fi,onConfirm:this.handleConfirm},fi+Li),_t?ri?(0,y.jsx)(Cn.A,{ref:this.handleCreateRef,className:"search-bar is-searching",value:"",placeholder:I18N.ScreenPanel.keyword_search,onSearch:hs}):(0,y.jsx)(Mo.A,{className:"search-icon",name:"design/scale_search",onClick:this.handleToggle}):null]}),(0,y.jsx)("div",{className:"right",children:kn?(0,y.jsx)(Tn.X,{isStar:kn.is_star,onClick:zn}):(0,y.jsxs)(K._N,{className:u()({"is-open":Ss}),ref:this.setElementRef,onMouseEnter:this.handMouseEnter,onMouseLeave:this.handMouseLeave,children:[(0,y.jsx)(Mo.A,{className:"action-menu-opener",name:"left_panel/screen_action_menu"}),Ss&&(0,y.jsx)(q.A,{targetNode:this.$element,menuItems:ji})]})})]})}}const bs=(0,g.Mz)([T.HW],Vs=>({currentUser:Vs})),Vn=(0,m.Ng)(Vs=>bs(Vs))(cn),ti=Vs=>{const{loading:ps,currentOrg:kn,currentResources:zn,currentComboGroup:hs,currentAssetGroup:Ss,from:fi,word:ri,onSetCurrentResources:Li,onSetCurrentNodeIcon:ji,onStarResources:_t,onPaidResources:Aa,onToggleCurrentResources:Ki,onToggleCurrentComboGroup:bi,onToggleCurrentAssetGroup:sa,onGetComboGroupActions:Zi,onGetAssetGroupAction:Fa,onGetIsCategory:to,renderLoading:Qt,onTrack:Sn,dispatch:Vo}=Vs,{category:ho}=zn||{},{isCombo:Uo,isIcon:pn}=to(ho),ys=!!hs,Dn=hs||Ss,Hs=(0,o.useRef)(null),Qn=async()=>{if(!zn||MB.global.experienceLoginModalHelper("isSave"))return;const{is_star:La,cid:ya}=zn;Li({...zn,is_star:!La}),await(0,p.lU)(La,ya),await _t(zn,!1)},Gi=()=>{Li({...zn,is_purchased:!0}),Aa(zn)},oa=La=>{Hs&&Hs.current.handleSearch(La,D.lS.SearchDetail)},ta=()=>{zn&&Vo({type:"entry:search-panel:remove:resources",payload:{resources:zn}}),Ki()},Sa=()=>{if(zn)return pn?(0,y.jsx)(ds.a,{ref:Hs,className:"search-icon-detail-panel",from:fi,popupsName:D.lS.Search,keyword:ri,onSetCurrentNodeIcon:ji,currentResources:zn,onStarResources:Qn}):(0,y.jsx)(Kn.A,{ref:Hs,className:"search-resources-detail-panel",currentResources:zn,onStarTemplates:Qn,onPaidTemplates:Gi,onBack:ta,onTrack:Sn});if(hs)return(0,y.jsx)(an,{isOrg:hs.isOrg,comboGroup:hs.comboGroup});if(Ss)return(0,y.jsx)(Wn,{isOrg:Ss.isOrg,assetGroup:Ss.assetGroup})};return ps?Qt():(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Vn,{onBack:zn?()=>Ki():()=>ys?bi():sa(),currentOrg:kn,currentResources:zn,isOrg:Dn==null?void 0:Dn.isOrg,group:(hs==null?void 0:hs.comboGroup)||(Ss==null?void 0:Ss.assetGroup),onStarResources:zn?Qn:null,groupAction:Dn&&(ys?Zi():Fa()),onSearch:zn?oa:null}),Sa()]})};var oi=e(43727),Gt=e(1398),Rs=e(32036),Xs=e(51050);class Ti extends o.PureComponent{constructor(ps){var kn;super(ps),kn=this,(0,C.A)(this,"handleGetComboGroupActions",()=>(0,Gt.H)({...this.props,popupsName:D.lS.Search})),(0,C.A)(this,"handleGetAssetGroupAction",()=>(0,Rs.B)({...this.props,popupsName:D.lS.Search})),(0,C.A)(this,"handleGetIsFromIconSelectPopup",()=>{const{from:zn}=this.props;return zn===Xs.Z.iconSelectPopup}),(0,C.A)(this,"handleGetIsLoading",()=>{const{isLoading:zn,isIconSelectPopupLoading:hs}=this.props;return this.handleGetIsFromIconSelectPopup()?hs:zn}),(0,C.A)(this,"handleToggleShowHeader",zn=>{const{dispatch:hs}=this.props,Ss=this.handleGetIsFromIconSelectPopup();hs(Ss?{type:"icon-select-popup:update:state",payload:{isShowHeader:!zn}}:{type:"update:popups:state",payload:{showGlobalHeader:!zn}})}),(0,C.A)(this,"handleToggleCurrentResources",function(zn){zn===void 0&&(zn=null),kn.handleToggleShowHeader(zn);const{currentResources:hs}=kn.state;kn.setState({currentResources:zn}),hs&&kn.handleResourcesDetailsBackScrollToView(hs.cid)}),(0,C.A)(this,"handleResourcesDetailsBackScrollToView",zn=>{const hs=document.querySelector("#searchPanel .search-result-container"),Ss=document.querySelector('#searchPanel .template-box[data-cid="'+zn+'"]');(0,p.Cs)(hs,Ss)}),(0,C.A)(this,"handleStarResources",async function(zn,hs){hs===void 0&&(hs=!0);const{dispatch:Ss}=kn.props,fi=zn==null?void 0:zn.category,ri=kn.handleGetIsFromIconSelectPopup(),Li=zn.is_star;Ss({type:"entry:search-panel:refresh:star:resources",payload:{category:fi,resources:zn,isFromIconSelectPopup:ri,updateResources:ji=>({...ji,is_star:!ji.is_star})}}),Ss({type:"entry:resources:update:find:data",payload:{cid:zn.cid,category:fi,updateData:ji=>({...ji,is_star:!ji.is_star})}}),hs&&await(0,p.lU)(Li,zn.cid)}),(0,C.A)(this,"handlePaidResources",zn=>{const{dispatch:hs}=this.props,Ss=zn==null?void 0:zn.category,fi=this.handleGetIsFromIconSelectPopup();hs({type:"entry:search-panel:refresh:star:resources",payload:{category:Ss,resources:zn,isFromIconSelectPopup:fi,updateResources:ri=>({...ri,is_purchased:!0,is_star:!0})}}),hs({type:"entry:resources:update:find:data",payload:{cid:zn.cid,category:Ss}})}),(0,C.A)(this,"handleToggleCurrentComboGroup",async function(zn,hs){zn===void 0&&(zn=!1),hs===void 0&&(hs=null);const{currentComboGroup:Ss,dispatch:fi}=kn.props;if(kn.handleToggleShowHeader(hs),await fi({type:"searchPanel:update:state",payload:{currentComboGroup:hs?{isOrg:zn,comboGroup:hs}:null}}),Ss){var ri;kn.handleComboGroupBackScrollToView((ri=Ss.comboGroup)==null?void 0:ri.cid)}}),(0,C.A)(this,"handleToggleCurrentAssetGroup",async function(zn,hs){zn===void 0&&(zn=!1),hs===void 0&&(hs=null);const{currentAssetGroup:Ss}=kn.state;if(kn.handleToggleShowHeader(hs),kn.setState({currentAssetGroup:hs?{isOrg:zn,assetGroup:hs}:null}),Ss){var fi;kn.handleComboGroupBackScrollToView((fi=Ss.assetGroup)==null?void 0:fi.cid)}}),(0,C.A)(this,"handleComboGroupBackScrollToView",zn=>{const hs=document.querySelector("#searchPanel .search-result-container"),Ss=document.querySelector('#searchPanel .folder-group[data-cid="'+zn+'"]');(0,p.Cs)(hs,Ss)}),(0,C.A)(this,"handleTrack",(zn,hs,Ss,fi)=>{const{rootProject:ri,keyword:Li,type:ji}=this.props,{policy:_t,category:Aa,title:Ki,copyright:bi,is_star:sa,platform:Zi}=Ss,Fa=ji!==Aa,to=_t!==oi.W.Everyone,Qt=_.Jj[Fa?ji:Aa]+"-"+(Fa?_.Ii.OtherSearchResults:sa?Aa===i.t_?_.Ii.User:_.Ii.Star:_.Ii.Find);(0,_.Mi)({popupsName:D.lS.Search,addType:hs,source:Qt,category:Aa,platform:Zi,vipTemplate:Number(to),templateGroupName:Ki,copyright:bi,name:fi,rootProject:ri,keyword:Li,esSearchKey:zn})}),(0,C.A)(this,"renderLoading",()=>(0,y.jsx)(K.qt,{children:(0,y.jsxs)("div",{className:"loading-container",children:[(0,y.jsx)(k.ft,{className:"loading"}),(0,y.jsx)("span",{children:I18N.Resources.searching.load})]})})),(0,C.A)(this,"handleGetIsCategory",zn=>{if(!zn)return{isCombo:!1,isIcon:!1,isAsset:!1};const hs=zn===i.t_,Ss=zn===i.C,fi=zn===i.b4;return{isCombo:hs,isIcon:Ss,isAsset:fi}}),(0,C.A)(this,"handleSetCurrentResources",zn=>this.setState({currentResources:zn})),this.state={currentResources:null}}componentWillUnmount(){const{dispatch:ps,from:kn}=this.props;ps({type:"entry:search-panel:clear:state",payload:{from:kn}})}render(){const{type:ps,from:kn,currentOrg:zn,currentComboGroup:hs,iconKeyword:Ss,keyword:fi,rootProject:ri,onSetCurrentNodeIcon:Li,dispatch:ji}=this.props,{currentResources:_t,currentAssetGroup:Aa}=this.state,Ki=this.handleGetIsLoading(),bi=this.handleGetIsFromIconSelectPopup(),sa=bi?Ss:fi,Zi={onGetIsCategory:this.handleGetIsCategory,onSetCurrentNodeIcon:Li,onStarResources:this.handleStarResources,onPaidResources:this.handlePaidResources,onToggleCurrentResources:this.handleToggleCurrentResources,onToggleCurrentComboGroup:this.handleToggleCurrentComboGroup,onToggleCurrentAssetGroup:this.handleToggleCurrentAssetGroup,onGetComboGroupActions:this.handleGetComboGroupActions,onGetAssetGroupAction:this.handleGetAssetGroupAction,renderLoading:this.renderLoading,onTrack:this.handleTrack,dispatch:ji};return(0,y.jsx)(K.gr,{id:"searchPanel",children:_t||hs||Aa?(0,y.jsx)(ti,{loading:Ki,from:kn,word:sa,currentOrg:zn,currentResources:_t,currentComboGroup:hs,currentAssetGroup:Aa,onSetCurrentResources:this.handleSetCurrentResources,...Zi}):(0,y.jsx)(sn,{loading:Ki,type:ps,rootProject:ri,word:sa,isFromIconSelectPopup:bi,...Zi})})}}(0,C.A)(Ti,"defaultProps",{from:Xs.Z.sideBarPanel});const di=(0,g.Mz)([A.uJ,A.TF,A.Lq,T.wA,A.lW,A.hS,A.gt,T.PL],(Vs,ps,kn,zn,hs,Ss,fi,ri)=>({keyword:Vs,iconKeyword:ps,type:kn,currentOrg:zn,currentComboGroup:hs,isLoading:Ss,isIconSelectPopupLoading:fi,rootProject:ri})),vs=(0,m.Ng)(Vs=>di(Vs))(Ti);class ei extends o.PureComponent{render(){const{show:ps,from:kn,onSetCurrentNodeIcon:zn,onClose:hs}=this.props,Ss=kn===Xs.Z.iconSelectPopup;return!ps&&!Ss?null:(0,y.jsx)(vs,{from:kn,onSetCurrentNodeIcon:zn,onClose:hs})}}const Si=(0,g.Mz)([l.ut],Vs=>({show:Vs})),Gs=(0,m.Ng)(Vs=>Si(Vs))(ei)},99920:(Et,ke,e)=>{"use strict";e.d(ke,{EZ:()=>k,R7:()=>p,Ve:()=>x,_N:()=>r,gr:()=>l,ju:()=>A,m4:()=>f,qt:()=>C,yi:()=>T});var o=e(21676),m=e(36349),g=e(48590);const l=o.Ay.div.withConfig({displayName:"styles__StyledSearchPanel",componentId:"sc-78rp0k-0"})(["display:flex;flex:1 1 0;flex-direction:column;overflow:hidden;> header{flex:none;height:48px;display:flex;align-items:center;> ol{width:100%;justify-content:flex-start;.nav-item{.nav-underline{width:85%;left:7.5%;}}}}.result{flex:none;height:28px;width:100%;background:",";display:flex;align-items:center;padding-left:12px;color:",";position:sticky;top:0;z-index:2;}.search-resources-detail-panel,.search-icon-detail-panel{> header{display:none;}.marketTemplate-list{margin-top:12px;}}> footer{width:100%;height:40px;display:flex;align-items:center;.color-settings{margin:0;}}.ai-entry-icon-button{&.screen_list .left svg{background:",";border-radius:8px;}&.combo_group .left svg{background:",";border-radius:8px;stop:first-child{stop-color:",";}stop:nth-child(2){stop-color:",";}}}.goto-community-button .left svg{rect{fill:",";}}"],u=>u.theme.color_bg_white,u=>u.theme.color_text_L2,u=>u.theme.comment_active,u=>u.theme.color_background_AI_component,u=>u.theme.color_AI_component_stop_color_1,u=>u.theme.color_AI_component_stop_color_2,u=>u.theme.community_icon_background_color),C=o.Ay.div.withConfig({displayName:"styles__StyledCenterContainer",componentId:"sc-78rp0k-1"})(["width:100%;height:311px;display:flex;align-items:center;justify-content:center;&.searchPanel{width:246px;}&.isFromIconSelectPopup{height:100%;}.loading-container{display:flex;align-items:center;justify-content:center;flex-direction:column;margin-top:-25px;margin-left:-25px;span{color:",";margin-top:9px;}}.loading{width:50px;height:50px;}img{margin-top:0;}"],u=>u.theme.color_text_L1),T=o.Ay.div.withConfig({displayName:"styles__StyledSearchResultContent",componentId:"sc-78rp0k-2"})(["display:flex;flex-direction:column;width:246px;&::-webkit-scrollbar{width:4px !important;height:4px !important;}.resultList{flex:1;.search-result-item-collapse.asset .sticker-header{span{height:20px;line-height:18px;font-size:12px;color:",";}.mat-member{margin-left:4px;margin-bottom:2px;width:12px;width:12px;}}}.search-result-find-picture-container{padding:8px 12px 0;width:250px;}.search-result-find-sticker-container{padding:8px 12px;width:250px;}.search-result-item-container{padding:8px 6px 8px 12px;display:grid;grid-row-gap:8px;grid-column-gap:8px;grid-template-columns:repeat(auto-fill,109px);&.search_widget{grid-template-columns:repeat(auto-fill,70px);}&.search_built_widgets{padding:8px 6px 0 12px;}li{margin:0;}.template-item{width:109px;flex:0 0 109px;position:relative;.img-wrapper{width:100%;height:109px;border:none;border-radius:6px;border:1px solid ",";}}&.search_icon{display:grid;grid-row-gap:7px;grid-column-gap:8px;padding:0 12px;grid-template-columns:repeat(5,1fr);& > li{border:none;display:flex;justify-content:center;align-items:center;border-radius:6px;margin-right:7px;margin-bottom:8px;transition:all 0.2s ease-out 0s;&:hover{background:",";}}}&.isCombo{display:flex;flex-direction:column;grid-row-gap:16px;width:250px;padding:0px 12px 8px 12px;}}.search-page-result-container{width:250px;padding:0px 12px 8px 12px;.market-template-masonry-list-container{&.screen_list,&.project_basic{padding:1px 0 0 0;}}}.search-result-icon-group-list{&:not(:first-child){margin-top:8px;}}.search-widgets-render{margin-bottom:8px;}"],u=>u.theme.color_text_L1,u=>u.theme.color_bg_border_01,u=>u.theme.color_btn_secondary_hover),A=o.Ay.div.withConfig({displayName:"styles__StyledSearchResultFolder",componentId:"sc-78rp0k-3"})(["width:109px;flex:0 0 109px;flex-direction:column;justify-content:center;align-items:center;cursor:pointer;.container{width:100%;height:82px;display:flex;align-items:center;justify-content:center;position:relative;svg.svg-icon.folder{width:62px;height:40px;path{&:first-child{fill:#ccc;}&:nth-child(2){fill:rgba(255,255,255,0.7);}&:nth-child(3){fill:#fff;}&:nth-child(4){fill:#c57d00;}&:nth-child(5){fill:#e5e5e5;}}}&::after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;border-radius:4px;background-color:",";opacity:0;transition:opacity 0.2s ease-in-out;}.actions{z-index:1;position:absolute;display:flex;bottom:6px;right:6px;opacity:0;transition:all 0.15s ease-in-out;&.hover{opacity:1;}.flag-action{margin-right:4px;.library-tag{color:",";.rect{opacity:0.37;}}}.library-menu{color:",";width:16px;height:16px;}}&:hover{&::after{opacity:0.1;}.actions{opacity:1;}}}.item-name{display:flex;margin-top:4px;line-height:20px;text-align:center;cursor:text;justify-content:center;position:relative;.editable-name{width:100%;height:20px;line-height:20px;",";&.is-editing{border-bottom:1px solid #196ad4;}textarea{text-align:center;}}.item-action{display:none;position:absolute;width:14px;height:14px;bottom:3px;right:0;}&:hover{.item-action{display:flex;}}}"],u=>u.theme.color_text_L1,u=>u.theme.color_text_L1,u=>u.theme.color_text_L1,g.L9),k=o.Ay.div.withConfig({displayName:"styles__StyledComboGroupDetailPanel",componentId:"sc-78rp0k-4"})(["height:100%;display:flex;flex-direction:column;overflow:hidden;.combo-group-items-list{overflow-x:hidden;overflow-y:overlay;height:100%;flex:1;margin-top:12px;.scroll-container{padding:0 12px;display:grid;grid-row-gap:8px;grid-column-gap:8px;grid-template-columns:repeat(auto-fill,109px);width:250px;}}"]),p=o.Ay.header.withConfig({displayName:"styles__StyledResourcesGroupHeader",componentId:"sc-78rp0k-5"})(["height:50px;min-height:50px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;border-bottom:1px solid ",";position:relative;.nav-back-icon{margin-right:4px;flex:0 0 24px;svg.svg-icon{width:9px;height:14px;path{stroke:",";fill:none;}}}.center{flex:1;display:flex;align-items:center;justify-content:space-between;overflow:hidden;.title-box{width:calc(100% - 32px);display:flex;align-items:center;justify-content:center;margin-right:8px;}.template-title{margin-right:8px;}.title{white-space:nowrap;text-overflow:ellipsis;}.search-icon{flex:0 0 24px;}.search-bar{border-radius:13px;}.search-icon{svg.svg-icon{width:13px;height:14px;}}}.template-title{font-size:14px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.title{font-size:14px;font-weight:500;text-align:center;color:",";textarea{text-align:center;}}.right{display:flex;align-items:center;justify-content:flex-end;flex:0 0 24px;margin-left:4px;}"],u=>u.theme.color_btn_secondary_active,u=>u.theme.color_text_L1,u=>u.theme.color_text_L1),r=o.Ay.div.withConfig({displayName:"styles__StyledResourcesGroupActionsMenu",componentId:"sc-78rp0k-6"})(["",""],g.n9),x=o.Ay.div.withConfig({displayName:"styles__StyledSearchResultIconGroupList",componentId:"sc-78rp0k-7"})(["header{display:flex;align-items:center;justify-content:space-between;height:32px;padding:0 12px;margin-bottom:8px;.left{display:flex;align-items:center;justify-content:center;column-gap:4px;.title{color:",";font-weight:500;display:inline-block;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.vip-icon{margin-left:4px;width:16px;height:16px;}}.right{display:flex;flex:0 0 40px;align-items:center;height:100%;color:",";cursor:pointer;margin-left:10px;.arrow-right{width:6px;height:10px;margin-left:10px;}}}"],u=>u.theme.color_text_L1,u=>u.theme.color_text_L3),f=(0,o.Ay)(m.A).withConfig({displayName:"styles__StyledSearchResults",componentId:"sc-78rp0k-8"})(["flex:1;overflow:hidden auto;&::-webkit-scrollbar{width:4px;}.ai-entry-icon-button{display:flex;align-items:center;justify-content:start;margin:8px 0 16px 12px;padding:0 15px 0 12px;width:226px;height:56px;background-color:",";border-radius:8px;box-shadow:0px 2px 12px 0px #0303030F;cursor:pointer;.left{flex:1;display:flex;align-items:center;justify-content:start;span{font-size:12px;font-weight:500;color:",";}.AI-icon{margin-right:12px;width:32px;&.screen_list path{fill:none;}}}.arrow{fill:none;width:5px;path{stroke:",";}}}"],u=>u.theme.color_background_white_modal,u=>u.theme.color_text_L1,u=>u.theme.color_text_L1)},48217:(Et,ke,e)=>{"use strict";e.d(ke,{$Y:()=>xe,Vt:()=>Ce,WA:()=>S,dU:()=>q,o0:()=>K,rf:()=>N,wt:()=>E});var o=e(46584),m=e(46664),g=e(33270),l=e(44622),C=e(31632),T=e(94307),A=e(40684),k=e(43974),p=e(45465),r=e(68158);const x=[],f=4*2,u={user:k.ER,org:k.RC,find:k.gV},b={star:k.s$,find:k.F2,"page-screen":k.eg,"page-library":k.vL},h={user:k.wU,org:k.n,find:k.ez,"asset-pic":k.dn,"asset-sticker":k.SM},E=(te,H)=>{switch(te){case A.t_:return u[H];case A.Gd:return b[H];case A.b4:return h[H];case A.C:return""}};let N=function(te){return te.User="user",te.Org="org",te.Find="find",te.Star="star",te.PageScreen="page-screen",te.PageLibrary="page-library",te.AssetPic="asset-pic",te.AssetSticker="asset-sticker",te}({});const z=async te=>{var H,re;let{category:be,keyword:Le,size:Ve}=te;const Ne=()=>{be===A.b4&&MB.notice({text:I18N.Resources.searching.sensitive_keyword_search,type:"error"})};return await(0,o.P)({keyword:Le,size:Ve,triggerSensitiveWord:Ne,uId:(H=MB.user)==null?void 0:H.id,projectCid:(re=MB.getRootProject())==null?void 0:re.cid})},S=async te=>{let{dispatch:H,category:re,isSearchAll:be,keyword:Le,orgCid:Ve,builtWidgets:Ne,assetGroupCidSet:We,userResourcesComboGroup:ze,orgResourcesComboGroup:ft,sceneTag:mt,from:i,userAssetsMap:gt,orgAssetsMap:Je,isSaveAllAssetsMap:Pt}=te,bt,qt,pt,$t,go,Co=gt||new Map,Tt=Je||new Map,mo=We;const jo={category:be?"all":re,q:Le,limit:36};Ve&&(jo.org_cid=Ve),(re===A.t_||be)&&mt&&(jo.scene_tag=mt);const Kt=be?fe:de;if(re===A.b4||be){if([bt,qt,pt,$t,go]=await Promise.all([(0,m.F7)(new URLSearchParams(jo),i),(0,m.PK)(Le),z({category:re,keyword:Le,size:20}),!Pt&&(0,m.OJ)(),!Pt&&Ve&&(0,m.l9)(Ve)]),!Pt){const{userAssetGroupList:yt,userAssets:Jt}=$t,vo=Jt.reduce((Ho,kt)=>Ho.set(kt.group_cid,(Ho.get(kt.group_cid)||[]).concat(kt)),new Map);Co=vo,mo=new Set(yt.map(Ho=>Ho.cid));const Yo={userAssetGroups:yt,userAssetsMap:vo,isRequestUserAssetGroup:!0,isSaveAllAssetsMap:!0};if(Ve){const{orgAssetGroupList:Ho,orgAssets:kt}=go,Ze=kt.reduce((it,st)=>it.set(st.group_cid,(it.get(st.group_cid)||[]).concat(st)),new Map);Tt=Ze,mo=new Set([...mo,...Ho.map(it=>it.cid)]),Yo.orgAssetGroups=Ho,Yo.orgAssetsMap=Ze,Yo.isRequestOrgAssetGroup=!0}H({type:"image-panel:update:state",payload:Yo})}const nt=Kt({category:re,searchResults:bt,builtWidgets:Ne,assetGroupCidSet:mo,userResourcesComboGroup:ze,orgResourcesComboGroup:ft,userAssetsMap:Co,orgAssetsMap:Tt}),Rt=be?nt.result.asset:nt;return y({data:nt,assetData:Rt,unsplashList:pt,isSearchAll:be}),_({data:nt,assetData:Rt,stickers:qt,isSearchAll:be}),nt}return bt=await(0,m.F7)(new URLSearchParams(jo),i),Kt({category:re,searchResults:bt,builtWidgets:Ne,assetGroupCidSet:mo,userResourcesComboGroup:ze,orgResourcesComboGroup:ft,userAssetsMap:Co,orgAssetsMap:Tt})},_=te=>{let{data:H,assetData:re,stickers:be,isSearchAll:Le}=te;const Ve=be!=null&&be.length?be.map(We=>{var ze;return(0,r.nA)((ze=We.categories)==null||(ze=ze[0])==null?void 0:ze.name,{name:We.title,url:We.imageUrl,thumb_url:We.thumbUrl,res_id:We.res_id})}):[],Ne=Ve.length;Ne>0&&(re.list.push({cid:E(A.b4,N.AssetSticker),name:N.AssetSticker,list:[{type:T.I.FindSticker,items:Ve}]}),re.total+=Ne,Le&&(H.total+=Ne))},y=async te=>{let{data:H,assetData:re,unsplashList:be,isSearchAll:Le}=te;const Ve=be==null?void 0:be.length;Ve>0&&(re.list.push({cid:k.dn,list:[{type:T.I.FindPicture,items:be}],name:N.AssetPic}),re.total+=Ve,Le&&(H.total+=Ve))},a=(te,H)=>{const re=new Map;let be=[];const Le=[];if(H){const Ve=H.filter(Ne=>Ne.tab!=="hot");Ve.filter(Ne=>Ne.name[0].includes(te)).forEach(Ne=>{be=be.concat(Ne.imgs.map(We=>{let[ze,[ft,mt],[i,gt],Je]=We;return re.set("findPicture_"+ze,1),getFindPictureAsset({url:ze,tab:Ne.tab,height:gt,width:i,tags:Je})}))}),Ve.forEach(Ne=>{Ne.imgs.filter(We=>{let[,,,ze]=We;for(const ft of ze)if(ft.includes(te))return!0;return!1}).forEach(We=>{let[ze,ft,[mt,i],gt]=We;re.has("findPicture_"+ze)||(re.set("findPicture_"+ze,1),Le.push(getFindPictureAsset({url:ze,tab:Ne.tab,height:i,width:mt,tags:gt})))})})}return{cid:E(ASSET,N.Find),name:N.Find,list:[{type:SearchResultType.FindPicture,items:[...Le,...be]}]}},$=function(te,H,re){if(re===void 0&&(re=null),te!=null&&te.length&&H){const be=te.map(Ne=>(0,C.gT)(Ne,H).map(ze=>({mt:ze,currentResources:Ne,currentSearchCategory:re}))).flat(),Le=be.filter(Ne=>{let{currentResources:We}=Ne;return We.is_star}),Ve=be.filter(Ne=>{let{currentResources:We}=Ne;return!We.is_star});return{staredMarketTemplates:Le,unStaredMarketTemplates:Ve,marketTemplateItemList:be}}return{}},ce=te=>{if(te!=null&&te.length){const H=te.filter(be=>{let{is_star:Le}=be;return Le}),re=te.filter(be=>{let{is_star:Le}=be;return!Le});return{staredMarketTemplateGroups:H,unStaredMarketTemplateGroups:re}}return{}},de=te=>{let{category:H,searchResults:re,builtWidgets:be,assetGroupCidSet:Le,userResourcesComboGroup:Ve,orgResourcesComboGroup:Ne,userAssetsMap:We,orgAssetsMap:ze}=te;const ft=H===A.t_,mt=H===A.C,i=H===A.Gd,gt=H===A.b4;let Je=0,Pt=[],bt=[];if(re){const{data:qt,p2mMMap:pt}=re,{market_template_groups:$t,market_templates:go,user_combo_group:Co,org_combo_group:Tt,icons:mo,user_asset_groups:jo,user_assets:Kt,org_asset_groups:Ft,org_assets:nt}=qt,Rt=go&&go.filter(Ze=>(Ze==null?void 0:Ze.version)!=="v1"),yt=$t&&$t.filter(Ze=>(Ze==null?void 0:Ze.version)!=="v1"),{staredMarketTemplates:Jt,unStaredMarketTemplates:vo,marketTemplateItemList:Yo}=$(Rt,pt,H),{staredMarketTemplateGroups:Ho,unStaredMarketTemplateGroups:kt}=ce(yt);if(mt){const{data:Ze,sum:it}=O({icons:mo,marketTemplateGroups:$t});Pt=Ze,Je=it}else if(gt){const Ze=jo.filter(wo=>{var ln;return((ln=We.get(wo.cid))==null?void 0:ln.length)>0}),it=Ft.filter(wo=>{var ln;return((ln=ze.get(wo.cid))==null?void 0:ln.length)>0}),{data:st,sum:dt}=V({assets:Kt,assetGroups:Ze,assetGroupCidSet:Le}),{data:Ot,sum:Ct}=V({assets:nt,assetGroups:it,assetGroupCidSet:Le});dt&&Pt.push({cid:E(H,N.User),name:N.User,list:st}),Ct&&Pt.push({cid:E(H,N.Org),name:N.Org,list:Ot}),Je=dt+Ct}else if(i){const{pageList:Ze,pageGroupList:it,sum:st}=R({category:H,staredMarketTemplates:Jt,unStaredMarketTemplates:vo,staredMarketTemplateGroups:Ho,unStaredMarketTemplateGroups:kt});Ze&&Pt.push(Ze),it&&Pt.push(it),Je=st}else if(ft){const{data:Ze,sum:it}=J({category:H,staredMarketTemplates:[],userComboGroup:Co,staredMarketTemplateGroups:Ho,p2mMMap:pt,userResourcesComboGroup:Ve}),{data:st,sum:dt}=ve({category:H,orgComboGroup:Tt,p2mMMap:pt,orgResourcesComboGroup:Ne}),{data:Ot,sum:Ct}=D({category:H,marketTemplates:Yo,unStaredMarketTemplateGroups:kt,builtWidgets:be});Ct&&Pt.push(Ot),it&&Pt.push(Ze),dt&&Pt.push(st),Je=Je+it+dt+Ct}bt=Rt}return{list:Pt,total:Je,resources:bt}},fe=te=>{let{searchResults:H,builtWidgets:re,assetGroupCidSet:be,userResourcesComboGroup:Le,orgResourcesComboGroup:Ve,userAssetsMap:Ne,orgAssetsMap:We}=te;const ze={combo_group:{list:[],total:0},screen_list:{list:[],total:0},icon_group:{list:[],total:0},asset:{list:[],total:0}};let ft=0,mt=[];if(H){const{data:i,p2mMMap:gt}=H;Object.entries(i).forEach(Je=>{let[Pt,bt]=Je,qt=0,pt=[];const{market_template_groups:$t,market_templates:go,user_combo_group:Co,org_combo_group:Tt,icons:mo,user_asset_groups:jo,user_assets:Kt,org_asset_groups:Ft,org_assets:nt}=bt,Rt=go&&go.filter(Ze=>(Ze==null?void 0:Ze.version)!=="v1"),yt=$t&&$t.filter(Ze=>(Ze==null?void 0:Ze.version)!=="v1"),{staredMarketTemplates:Jt,unStaredMarketTemplates:vo,marketTemplateItemList:Yo}=$(Rt,gt,Pt),{staredMarketTemplateGroups:Ho,unStaredMarketTemplateGroups:kt}=ce(yt);switch(Pt){case A.C:{const{data:Ze,sum:it}=O({icons:mo,marketTemplateGroups:$t});pt=Ze,qt=it;break}case A.b4:{const Ze=jo.filter(wo=>{var ln;return((ln=Ne.get(wo.cid))==null?void 0:ln.length)>0}),it=Ft.filter(wo=>{var ln;return((ln=We.get(wo.cid))==null?void 0:ln.length)>0}),{data:st,sum:dt}=V({assets:Kt,assetGroups:Ze,assetGroupCidSet:be}),{data:Ot,sum:Ct}=V({assets:nt,assetGroups:it,assetGroupCidSet:be});Ct&&pt.push({cid:E(Pt,N.Org),name:N.Org,list:Ot}),dt&&pt.push({cid:E(Pt,N.User),name:N.User,list:st}),qt=dt+Ct;break}case A.Gd:{const{pageList:Ze,pageGroupList:it,sum:st}=R({category:Pt,staredMarketTemplates:Jt,unStaredMarketTemplates:vo,staredMarketTemplateGroups:Ho,unStaredMarketTemplateGroups:kt});Ze&&pt.push(Ze),it&&pt.push(it),qt=st;break}case A.t_:{const{data:Ze,sum:it}=J({category:Pt,staredMarketTemplates:[],userComboGroup:Co,staredMarketTemplateGroups:Ho,p2mMMap:gt,userResourcesComboGroup:Le}),{data:st,sum:dt}=ve({category:Pt,orgComboGroup:Tt,p2mMMap:gt,orgResourcesComboGroup:Ve}),{data:Ot,sum:Ct}=D({category:Pt,marketTemplates:Yo,unStaredMarketTemplateGroups:kt,builtWidgets:re});dt&&pt.push(st),it&&pt.push(Ze),Ct&&pt.push(Ot),qt=qt+it+dt+Ct;break}}ze[Pt]={list:pt,total:qt},ft=ft+qt,mt=Rt?mt.concat(Rt):mt})}return{result:ze,total:ft,resources:mt}},se=(te,H,re,be)=>{const Le=[];let Ve=0;if(te&&H){const{project_meta_cid:Ne}=te,We=H[Ne],ze=[],ft=[];Object.entries(We).forEach(mt=>{let[i,gt]=mt;const[Je,Pt,bt]=gt;(0,l.Mo)(bt)?!((be==null?void 0:be.getSubHotItemList(Je).length)===0)&&ft.push({cid:Je,name:bt==null?void 0:bt.name,data:bt}):ze.push({key:Je,flpakKey:Ne,sup:Pt,hotAttr:bt,group:re.find(pt=>pt.cid===Pt)})}),ze!=null&&ze.length&&(Le.push({type:T.I.SelfMakeCombo,items:ze}),Ve+=ze.length),ft!=null&&ft.length&&(Le.push({type:T.I.Group,items:ft}),Ve+=ft.length)}return{combos:Le,sum:Ve}},J=te=>{let{category:H,staredMarketTemplates:re,userComboGroup:be,staredMarketTemplateGroups:Le,p2mMMap:Ve,userResourcesComboGroup:Ne}=te;const We=[];let ze=0;const{combos:ft,sum:mt}=se(be,Ve,Ne,window.userSdkStore);return We.push(...ft),ze+=mt,re!=null&&re.length&&(We.push({type:T.I.MarketTemplate,items:re}),ze+=re.length),Le!=null&&Le.length&&(We.push({type:T.I.Resources,items:Le}),ze+=Le.length),ze?{data:{cid:E(H,N.User),name:N.User,list:We},sum:ze}:{sum:ze}},ve=te=>{let{category:H,orgComboGroup:re,p2mMMap:be,orgResourcesComboGroup:Le}=te;const Ve=[];let Ne=0;const{combos:We,sum:ze}=se(re,be,Le,window.orgSdkStore);return Ve.push(...We),Ne+=ze,Ne?{data:{cid:E(H,N.Org),name:N.Org,list:Ve},sum:Ne}:{sum:Ne}},D=te=>{let{category:H,marketTemplates:re,unStaredMarketTemplateGroups:be,builtWidgets:Le}=te;const Ve=[];let Ne=0;return Le&&(Ve.push({type:T.I.Widget}),Ne+=Le.items.length),re!=null&&re.length&&(Ve.push({type:T.I.MarketTemplate,items:re}),Ne+=re.length),be!=null&&be.length&&(Ve.push({type:T.I.Resources,items:be}),Ne+=be.length),Ne?{data:{cid:E(H,N.Find),name:N.Find,list:Ve},sum:Ne}:{sum:Ne}},R=te=>{let{category:H,staredMarketTemplates:re,unStaredMarketTemplates:be,staredMarketTemplateGroups:Le,unStaredMarketTemplateGroups:Ve}=te;const Ne=[],We=[],ze=[],ft=[];re!=null&&re.length&&ze.push(...re),be!=null&&be.length&&ze.push(...be),Le!=null&&Le.length&&ft.push(...Le),Ve!=null&&Ve.length&&ft.push(...Ve);let mt=0;ze!=null&&ze.length&&(Ne.push({type:T.I.MarketTemplate,items:ze}),mt+=ze.length),ft!=null&&ft.length&&(We.push({type:T.I.Resources,items:ft}),mt+=ft.length);const i={sum:mt,pageList:null,pageGroupList:null};return Ne.length>0&&(i.pageList={cid:E(H,N.PageScreen),name:N.PageScreen,list:Ne}),We.length>0&&(i.pageGroupList={cid:E(H,N.PageLibrary),name:N.PageLibrary,list:We}),i},V=te=>{let{assets:H,assetGroups:re,assetGroupCidSet:be}=te;const Le=[];let Ve=0;if(H!=null&&H.length){const Ne=H.map(We=>({...We,cid:We.cid})).filter(We=>{let{group_cid:ze}=We;return be.has(ze)});Le.push({type:T.I.Asset,items:Ne}),Ve+=Ne.length}return re!=null&&re.length&&(Le.push({type:T.I.Group,items:re}),Ve+=re.length),Ve?{data:Le,sum:Ve}:{sum:Ve}},O=te=>{let{icons:H,marketTemplateGroups:re}=te,be=0;const Le=[];if(H!=null&&H.length){const Ve=H.map(ze=>{const{data:ft,title:mt}=ze;be+=ft.length;const i=ft.map(gt=>({...gt,type:p.I1[mt]||mt||"svg",id:gt.name,groupCid:gt.cid}));return{...ze,data:i,category:A.C}}),Ne=Ve.filter(ze=>{let{is_star:ft}=ze;return ft}),We=Ve.filter(ze=>{let{is_star:ft}=ze;return!ft});Le.push({type:T.I.IconList,items:Ne.concat(We)})}return re!=null&&re.length&&(Le.push({type:T.I.Resources,items:re}),be+=re.length),{data:Le,sum:be}},Ce=te=>{const H=te.length;let re=0;for(let be=0;be<H;be++)if(te.charCodeAt(be)>128?re+=2:re+=1,re>f)return te.slice(0,be)+"...";return te},ae=te=>{if(!(te!=null&&te.length))return x;const H=[];return te.forEach(re=>{var be;(be=re.list)!=null&&be.length&&re.list.reduce((Ve,Ne)=>{let{items:We}=Ne;return Ve+((We==null?void 0:We.length)||0)},0)&&H.push(re)}),H},q=te=>{let{list:H,keys:re,type:be,mapFunc:Le,category:Ve,addList:Ne,spliceFunc:We,otherKeys:ze=[],filterFunc:ft}=te;if(!(H!=null&&H.length))return;const mt=H.find(Pt=>{let{name:bt}=Pt;return re.includes(bt)}),i=H.find(Pt=>{let{name:bt}=Pt;return ze==null?void 0:ze.includes(bt)}),gt=(Pt,bt)=>Pt.map(qt=>{if(qt.type===be){const pt=bt(qt.items);return{...qt,items:pt}}return qt});let Je=H;if(mt)Je=H.map(Pt=>{if(re.includes(Pt.name)){if(Pt.list.find(qt=>qt.type===be)){const qt=gt(Pt.list,Le);return{...Pt,list:qt}}else if(Ne){const qt=Pt.list.concat({type:be,items:Ne});return{...Pt,list:qt}}}else if(ze!=null&&ze.includes(Pt.name)&&ft){const bt=gt(Pt.list,ft);return{...Pt,list:bt}}return Pt});else if(Ne){const Pt={cid:E(Ve,re[0]),name:re[0],list:[{type:be,items:Ne}]};Je=H,We&&We(Je,Pt),i&&(Je=H.map(bt=>{if(ze!=null&&ze.includes(bt.name)&&ft){const qt=gt(bt.list,ft);return{...bt,list:qt}}return bt}))}return ae(Je)},K=(te,H)=>{try{return te.map(re=>{let{cid:be,name:Le,list:Ve}=re;const Ne=Ve.map(We=>{let{type:ze,items:ft}=We,mt=[];return ze===T.I.MarketTemplate&&(mt=ft==null?void 0:ft.map(i=>{const{mt:gt,currentResources:Je,currentSearchCategory:Pt}=i;return(Je==null?void 0:Je.cid)===H.cid?{mt:{...gt,marketTemplateSource:H},currentResources:H,currentSearchCategory:Pt}:i})),ze===T.I.Resources&&(mt=ft==null?void 0:ft.map(i=>{const{cid:gt}=i;return gt===H.cid?H:i})),{type:ze,items:mt}});return{cid:be,name:Le,list:Ne}})}catch(re){return console.log(re.message),[]}},xe=function(te,H){H===void 0&&(H="title");const re={};return!te||te.length<1||te.forEach(function(be){const Le=be.currentResources[H],Ve=re[Le]||[];Ve.push(be),re[Le]=Ve}),re}},10870:(Et,ke,e)=>{"use strict";e.d(ke,{I1:()=>l,Ij:()=>T,p7:()=>g});var o=e(21676),m=e(36349);const g=(0,o.Ay)(m.A).withConfig({displayName:"styles__StyledScrollableList",componentId:"sc-1mqrvsq-0"})([".thumbnail-list{padding-top:16px;}"]),l=o.Ay.div.withConfig({displayName:"styles__StyledNoMasters",componentId:"sc-1mqrvsq-1"})(["margin-top:-4px;padding:0 18px;.title{color:",";font-weight:600;margin:20px 0 8px 0;}.content{display:flex;flex-direction:column;.svg-icon{color:",";width:16px;height:16px;flex-shrink:0;margin:3px 8px 0 0;}p{color:",";line-height:20px;&:nth-child(2){a{display:block;}}a{color:",";&:hover{color:",";}}}}"],A=>A.theme.color_text_L1,A=>A.theme.color_text_L3,A=>A.theme.color_text_L2,A=>A.theme.color_text_link_normal,A=>A.theme.color_text_link_hover),C=o.Ay.div.withConfig({displayName:"styles__StyledTemplateHeader",componentId:"sc-1mqrvsq-2"})(["position:relative;width:100%;height:50px;min-height:50px;display:flex;align-items:center;justify-content:space-between;padding:0 12px 0 15px;border-bottom:1px solid ",";&.isSearching{justify-content:left;padding:0 12px;}.title{max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:16px;color:",";font-weight:500;&:lang(en){font-weight:600;}}.nav-back-icon{flex-shrink:0;margin-right:4px;svg.svg-icon{width:9px;height:14px;path{stroke:",";fill:none;}}}.search-bar{width:170px;border-radius:13px;background:",";color:#999;&.is-searching{flex:1;.search-icon{path{fill:",";}}}}"],A=>A.theme.color_btn_secondary_active,A=>A.theme.color_text_L1,A=>A.theme.color_text_L1,A=>A.theme.color_bg_card,A=>A.theme.color_text_L1),T=o.Ay.div.withConfig({displayName:"styles__StyledTemplateHeaderV9",componentId:"sc-1mqrvsq-3"})(["position:relative;width:100%;height:46px;min-height:46px;display:flex;align-items:center;justify-content:space-between;padding:14px 12px 0 12px;&.isSearching{justify-content:left;padding:0 12px;}.title{max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:16px;color:",";font-weight:500;&:lang(en){font-weight:600;}}.old_right-title{height:32px;line-height:32px;padding-right:12px;font-size:16px;font-weight:600;}.nav-back-icon{flex-shrink:0;margin-right:4px;svg.svg-icon{width:9px;height:14px;path{stroke:",";fill:none;}}}.search-bar{width:226px;height:32px;border:1px solid ",";border-radius:6px;background:",";color:",";flex:1;&:hover,&.isFocus{background:",";border-color:",";}&.is-searching{.search-icon{path{fill:",";}}}}"],A=>A.theme.color_text_L1,A=>A.theme.color_text_L1,A=>A.theme.color_bg_border_02,A=>A.theme.color_bg_white,A=>A.theme.color_text_L3,A=>A.theme.color_bg_white,A=>A.theme.color_text_link_normal,A=>A.theme.color_text_L1)},73262:(Et,ke,e)=>{"use strict";e.d(ke,{y:()=>x});var o=e(48411);const m={},g=()=>"\u5185\u7F6E",l=()=>ENV.IS_WONDER_SHARE?'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nwbTOkTYpTtTUeNK4eU3iYQ {"Z":"C","N":"Dynamic Widget 1","xy":"7r5}7PY.","T":"R","r":"((","wh":"7l527jD4","o":"3_","iLVA":"*","fPt":"(","I":"","B":"*","rRBPK":"rbpTOkTYU8O7ZfQPgip7GE","rCK":"rcTOkTYpU8O7ZfQlS7HBeK","s":")","l":")"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli ) {"T":")","B":"0"}\nrbpTOkTYU8O7ZfQPgip7GE * {"T":")","B":")","N":"Rectangle","Z":".","ic":"","aF":"(","dvc":")","dWH":"7l527jD4","dORT":")","dSCR":")","alH":"","alV":"","wh":"7l527jD4","s":")","l":")","dck":"rcTOkTYpU8O7ZfQlS7HBeK","di":"( ","fill":"h ( wTRu7"}\nrcTOkTYpU8O7ZfQlS7HBeK + {"N":"State 1","fill":"h ( wTRr:","xy":"7i^07he]","T":"*","Z":"-","wh":"7l527jD4","iLVA":"*","ort":")","icc":"h","shh":"(","sfh":"(","dvc":")","alH":"","alV":"","od":")","I":"","lg":"( 2 2 2 2 <"}\nlb4ryj5lU8O7ZfQmH2ybFF {"xy":"7gt07iju","N":"Oval","I":[[3,"itaTOkUSU8O7ZfQ6BPdr0N","","(",["9 0.4s 0 ","CURRENT_BASKET_REF","rcTOkTYpU8O7ZfQggV7Y7k"],"((((("]],"dtV":1,"!LHV":1,"!WBIV":1,"T":"Q","Z":"4","r":"((","wh":"7grF7grF","o":"3_","iLVA":"*","fPt":"(","ani":"( 0 0.1s 1","fill":"h ( wTRu7","brdR":"h bYpZx ) (!(","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g/.","rtB":"("}\nlb4rx66dU8O7ZfQe65JQy8 {"xy":"7iY]7hSi","b/#000000":["( ( ","\\"Dynamic Widget\\" refers to a widget with several states, which is helpful for adding animation.Eg. The circle below is linked to\\"State 2\\", you can preview that it will move to right and change to red after being clicked.you can try it by clicking on the \\"Preview\\" button in the upper right corner!",[")R 2 color-rgba(189,49,36,1)","*{ 1 color-rgba(189,49,36,1)"],[]],"N":"Text","wh":"7k>H7iE>","dtV":1,"!LHV":1,"!WBIV":1,"!LIV":3,"!PSV":1,"rtS":["SourceHanSansSC","regular","#101010"],"rtN":"( ( ( 6 ) < ( 7g/. 7g4u","T":"x","Z":"3","r":"((","o":"3_","iLVA":"*","fPt":"(","I":"","shd":"+ ( ((()8 ((((( ;_2g, ;rw*}","ani":"( 0 0.1s 1","rtB":"("}\nlb4rvq80U8O7ZfQbCFCCIz {"N":"Rectangle","dtV":1,"!LHV":1,"!WBIV":1,"T":"M","Z":".","xy":"7i^07he]","r":"((","wh":"7l527jD4","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 0.1s 1","fill":"h ( wTRu7","brdRV":"h bYpZx ) (!(!7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g/.","rtB":"("}\nrcTOkTYpU8O7ZfQggV7Y7k + {"N":"State 2","fill":"h ( wTRr:","Z":".","od":"*","xy":"7i^07he]","T":"*","wh":"7l527jD4","iLVA":"*","ort":")","icc":"h","shh":"(","sfh":"(","dvc":")","alH":"","alV":"","I":"","lg":"( 2 2 2 2 <"}\nlb4ryj5lU8O7ZfQ6JUriQW {"xy":"7k@27iju","N":"Oval","I":[[3,"itaTOkUVU8O7ZfQto2prTz","","(",["9 0.4s 0 ","CURRENT_BASKET_REF","rcTOkTYpU8O7ZfQlS7HBeK"],"((((("]],"dtV":1,"!LHV":1,"!WBIV":1,"fill":"h ( c*BHp","T":"Q","Z":"4","r":"((","wh":"7grF7grF","o":"3_","iLVA":"*","fPt":"(","ani":"( 0 0.1s 1","brdR":"h bYpZx ) (!(","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g/.","rtB":"("}\nlb4rx66dU8O7ZfQJ2xIQ03 {"xy":"7iY]7h9Z","N":"Text","b/#000000":["( ( ","Now you\'re in\\"State 2\\", the red circle below will back to left and change to white based on being linked back to\\"State 1\\". So try to create your interaction through adding new states and links by clicking\\"New\\"on the \\"Screen State\\" panel on the right side.",["5 1 color-rgba(189,49,36,1)",")B 2 color-rgba(189,49,36,1)","*H - color-rgba(189,49,36,1)"],[]],"dtV":1,"!LHV":1,"!WBIV":1,"!LIV":3,"!PSV":1,"rtS":["SourceHanSansSC","regular","#101010"],"wh":"7k>H7hgy","rtN":"( ( ( 6 ) < ( 7g/. 7g4u","T":"x","Z":"3","r":"((","o":"3_","iLVA":"*","fPt":"(","I":"","shd":"+ ( ((()8 ((((( ;_2g, ;rw*}","ani":"( 0 0.1s 1","rtB":"("}\nlb4rvq80U8O7ZfQyjWFoHF {"N":"Rectangle","dtV":1,"!LHV":1,"!WBIV":1,"T":"M","Z":".","xy":"7i^07he]","r":"((","wh":"7l527jD4","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 0.1s 1","fill":"h ( wTRu7","brdRV":"h bYpZx ) (!(!7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g/.","rtB":"("}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-03-29T06:13:10.230Z","hotAABB":[632,-1711,1007,-1471],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}':'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nwbTOkTYpTtTUeNK4eU3iYQ {"N":"\u52A8\u6001\u7EC4\u4EF6 1","Z":"@","T":"R","xy":"7eS]85jk","r":"((","wh":"7l527jD4","o":"3_","iLVA":"*","fPt":"(","I":"","B":"*","rRBPK":"rbpTOkTYTtTUeNK90Dmc7O","rCK":"rcTOkTYpTtTUeNKyZ2NaKu","s":")","l":")"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli ) {"T":")","B":"0"}\nrbpTOkTYTtTUeNK90Dmc7O * {"T":")","B":")","N":"\u77E9\u5F62","Z":".","ic":"","aF":"(","dvc":")","dWH":"7l527jD4","dORT":")","dSCR":")","alH":"","alV":"","wh":"7l527jD4","s":")","l":")","dck":"rcTOkTYpTtTUeNKyZ2NaKu","di":"( ","fill":"h ( wTRu7"}\nrcTOkTYpTtTUeNKyZ2NaKu + {"fill":"h ( wTRr:","xy":"7i^07he]","T":"*","N":"\u72B6\u6001 1","Z":"-","wh":"7l527jD4","iLVA":"*","ort":")","icc":"h","shh":"(","sfh":"(","dvc":")","alH":"","alV":"","od":")","I":"","lg":"( 2 2 2 2 <"}\nlb4rx66dTtTUeNKMA45x8m {"rtS":["SourceHanSansSC","regular","#101010"],"xy":"7iY]7hBu","b/#1BwVNo":["( ( ","\u4E0B\u9762\u7684\u767D\u8272\u5706\u5708\u94FE\u63A5\u5230\u4E86\u300C\u72B6\u60012\u300D\uFF0C\u5728\u8FD0\u884C\u72B6\u6001\u70B9\u51FB\u8FD9\u4E2A\u5706\u5708\uFF0C\u5B83\u5C06\u4F1A\u79FB\u52A8\u5230\u6700\u53F3\u4FA7\u5E76\u53D8\u4E3A\u7EA2\u8272\uFF0C\u60A8\u53EF\u4EE5\u70B9\u51FB\u53F3\u4E0A\u89D2\u7684\u300C\u6F14\u793A\u300D\u6309\u94AE\u4EB2\u81EA\u8BD5\u8BD5\u770B\uFF01",["3 - color-rgba(189,49,36,1)","^ , color-rgba(189,49,36,1)"],[]],"wh":"7k>H7hgy","rtN":"( ( ( 6 ) < ( 7g/. 7g4u","b/#000000":["( ( ","\u52A8\u6001\u7EC4\u4EF6\u662F\u62E5\u6709\u591A\u4E2A\u72B6\u6001\u7684\u7EC4\u4EF6\uFF0C\u662F\u60A8\u5236\u4F5C\u52A8\u6001\u6548\u679C\u7684\u597D\u5E2E\u624B\u3002",[],[]],"T":"x","N":"\u6587\u672C","Z":"3","r":"((","o":"3_","iLVA":"*","fPt":"(","I":"","shd":"+ ( ((()8 ((((( ;_2g, ;rw*}","ani":"( 0 0.1s 1","rtB":"("}\nlb4ryj5lTtTUeNKMA74CgM {"I":[[3,"itaTOkUSTtTUeNKk10wys1","","(",["9 0.4s 0 ","CURRENT_BASKET_REF","rcTOkTYpTtTUeNKDCLjoMG"]]],"xy":"7gt07i_>","T":"Q","N":"\u5706\u5F62","Z":"4","r":"((","wh":"7grF7grF","o":"3_","iLVA":"*","fPt":"(","ani":"( 0 0.1s 1","fill":"h ( wTRu7","brdR":"h bYpZx ) (!(","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g/.","rtB":"("}\nlb4rvq80TtTUeNKi00pnGs {"T":"M","N":"\u77E9\u5F62","Z":".","xy":"7i^07he]","r":"((","wh":"7l527jD4","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 0.1s 1","fill":"h ( wTRu7","brdRV":"h bYpZx ) (!(!7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g/.","rtB":"("}\nrcTOkTYpTtTUeNKDCLjoMG + {"fill":"h ( wTRr:","N":"\u72B6\u6001 2","Z":".","od":"*","xy":"7i^07he]","T":"*","wh":"7l527jD4","iLVA":"*","ort":")","icc":"h","shh":"(","sfh":"(","dvc":")","alH":"","alV":"","I":"","lg":"( 2 2 2 2 <"}\nlb4ryj5lTtTUeNKVlBUae9 {"xy":"7k@27i_>","I":[[3,"itaTOkUVTtTUeNK4KhZpor","","(",["9 0.4s 0 ","CURRENT_BASKET_REF","rcTOkTYpTtTUeNKyZ2NaKu"]]],"fill":"h ( c*BHp","T":"Q","N":"\u5706\u5F62","Z":"4","r":"((","wh":"7grF7grF","o":"3_","iLVA":"*","fPt":"(","ani":"( 0 0.1s 1","brdR":"h bYpZx ) (!(","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g/.","rtB":"("}\nlb4rx66dTtTUeNKlD0j0M9 {"rtS":["SourceHanSansSC","regular","#101010"],"xy":"7iY]7hBu","b/#1BwVNo":["( ( ","\u8FD9\u53EA\u662F\u4E00\u4E2A\u7B80\u5355\u7684\u6F14\u793A\uFF0C\u73B0\u5728\u60A8\u5C31\u53EF\u4EE5\u70B9\u51FB\u53F3\u4E0A\u89D2\u7684\u300C\u6DFB\u52A0\u72B6\u6001\u300D\u6309\u94AE\uFF0C\u6DFB\u52A0\u65B0\u7684\u72B6\u6001\u548C\u94FE\u63A5\u6765\u521B\u5EFA\u5C5E\u4E8E\u60A8\u81EA\u5DF1\u7684\u70AB\u9177\u4EA4\u4E92\u6548\u679C\u4E86\u3002",["? . color-rgba(189,49,36,1)"],[]],"b/#000000":["( ( ","\u597D\u4E86\uFF0C\u60A8\u73B0\u5728\u5DF2\u7ECF\u6765\u5230\u4E86\u300C\u72B6\u60012\u300D\uFF0C\u4E0B\u9762\u7684\u7EA2\u8272\u5706\u5708\u53C8\u94FE\u63A5\u56DE\u4E86\u300C\u72B6\u60011\u300D\uFF0C\u70B9\u51FB\u7EA2\u8272\u6309\u94AE\uFF0C\u5B83\u5C06\u4F1A\u56DE\u5230\u6700\u5DE6\u4FA7\u5E76\u6062\u590D\u767D\u8272\u3002",["3 - color-rgba(189,49,36,1)","E - color-rgba(189,49,36,1)"],[]],"wh":"7k>H7hgy","rtN":"( ( ( 6 ) < ( 7g/. 7g4u","T":"x","N":"\u6587\u672C","Z":"3","r":"((","o":"3_","iLVA":"*","fPt":"(","I":"","shd":"+ ( ((()8 ((((( ;_2g, ;rw*}","ani":"( 0 0.1s 1","rtB":"("}\nlb4rvq80TtTUeNKk7vwHWa {"T":"M","N":"\u77E9\u5F62","Z":".","xy":"7i^07he]","r":"((","wh":"7l527jD4","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 0.1s 1","fill":"h ( wTRu7","brdRV":"h bYpZx ) (!(!7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g/.","rtB":"("}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T02:59:38.445Z","hotAABB":[-304,2667,71,2907],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}',C=()=>ENV.IS_WONDER_SHARE?'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nwbTOkWBWTtTUelSImKcV05 {"xy":"7ioV7nKB","Z":"B","N":"Scroll Panel 1","s":",","T":"R","r":"((","wh":"7l527jD4","o":"3_","iLVA":"*","fPt":"(","I":"","B":"*","rRBPK":"rbpTOkWBU8OeCRLwb1Ctvz","rCK":"rcTOkWBWU8OeCRLhU0IRZ2","l":")"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli ) {"T":")","B":"0"}\nrbpTOkWBU8OeCRLwb1Ctvz ) {"T":")","B":")","N":"Rectangle","Z":"/","ic":"","aF":"(","dvc":")","dWH":"7l527jD4","dORT":")","dSCR":")","alH":"","alV":"","wh":"7l527jD4","s":")","l":")","dck":"rcTOkWBWU8OeCRLhU0IRZ2","di":"( ","fill":"h ( wTRu7"}\nrcTOkWBWU8OeCRLhU0IRZ2 , {"fill":"h ( wTRr:","xy":"7jFP7he]","wh":"7m^s7jD4","T":"*","N":"State 1","Z":"-","iLVA":"*","ort":")","icc":"h","shh":"(","sfh":"(","dvc":")","alH":"","alV":"","od":")","I":"","lg":"( 2 2 2 2 <"}\nlb4sacz7U8OeCRL65wuiFj {"xy":"7ia(7iS:","wh":"7k^k7h:i","dtV":1,"!LHV":1,"!WBIV":1,"!LIV":1,"!PSV":1,"rtS":["SourceHanSansSC","regular","#101010"],"b/#000000":["( ( ","The scrolling panel is a container for long pages. Use it when you need to display content by scrolling, and the setting on the right can adjust the display of the scroll bar.",[],[]],"Z":"-","rtN":"( ( ( 6 ) < ( 7g/. 7g4u","T":"x","N":"Text","r":"((","o":"3_","iLVA":"*","fPt":"(","I":"","shd":"+ ( ((()8 ((((( ;_2g, ;rw*}","ani":"( 0 0.1s 1","rtB":"("}\nlb4w3kp9U8OeCRLnp0l6vS {"N":"Widget","Z":"+","xy":"7l1,7h*P","wh":"7i{i7hMF","T":"f","r":"((","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 0.1s 1","fill":"h ( wTRu7","brdR":"h bYpZx ) (!(","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","ttv0P":",xd+r ( ( ) ) 6 < (","ttv0S":""}\nlb4w3kp9U8OeCRLT3sQJNh {"Z":"*","xy":"7hl(7h*P","wh":"7i{i7hMF","T":"f","N":"Widget","r":"((","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 0.1s 1","fill":"h ( wTRu7","brdR":"h bYpZx ) (!(","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","ttv0P":",xd+r ( ( ) ) 6 < (","ttv0S":""}\nlb4s9biaU8OeCRLW9oDVB8 {"xy":"7jFP7he]","wh":"7m^s7jD4","Z":")","fill":"h ( wTRu7","brdRV":"( bYpZx ) (!(!7","T":"M","N":"Rectangle","r":"((","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 0.1s 1","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g/.","rtB":"("}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-03-29T08:19:55.831Z","hotAABB":[15,422,390,662],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}':'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nwbTOkWBWTtTUelSImKcV05 {"xy":"7eZZ89(q","N":"\u6EDA\u52A8\u9762\u677F 1","Z":"A","s":",","T":"R","r":"((","wh":"7l527jD4","o":"3_","iLVA":"*","fPt":"(","I":"","B":"*","rRBPK":"rbpTOkWBTtTUelSr96Kh7r","rCK":"rcTOkWBWTtTUelS8RGJlJH","l":")"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli ) {"T":")","B":"0"}\nrbpTOkWBTtTUelSr96Kh7r ) {"T":")","B":")","N":"\u77E9\u5F62","Z":"/","ic":"","aF":"(","dvc":")","dWH":"7l527jD4","dORT":")","dSCR":")","alH":"","alV":"","wh":"7l527jD4","s":")","l":")","dck":"rcTOkWBWTtTUelS8RGJlJH","di":"( ","fill":"h ( wTRu7"}\nrcTOkWBWTtTUelS8RGJlJH , {"fill":"h ( wTRr:","xy":"7jFP7he]","wh":"7m^s7jD4","T":"*","N":"\u72B6\u6001 1","Z":"-","iLVA":"*","ort":")","icc":"h","shh":"(","sfh":"(","dvc":")","alH":"","alV":"","od":")","I":"","lg":"( 2 2 2 2 <"}\nlb4s9biaTtTUelS8GWmXZS {"Z":")","fill":"h ( wTRu7","brdRV":"( bYpZx ) (!(!7","xy":"7jFP7he]","wh":"7m^s7jD4","T":"M","N":"\u77E9\u5F62","r":"((","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 0.1s 1","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g/.","rtB":"("}\nlb4w3kp9TtTUelSnlrmfEv {"Z":"*","xy":"7hl(7h*P","wh":"7i{i7hMF","T":"f","N":"\u7EC4\u4EF6","r":"((","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 0.1s 1","fill":"h ( wTRu7","brdR":"h bYpZx ) (!(","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","ttv0P":",xd+r ( ( ) ) 6 < (","ttv0S":""}\nlb4w3kp9TtTUelSNCbIlAn {"N":"\u7EC4\u4EF6","Z":"+","xy":"7l1,7h*P","wh":"7i{i7hMF","T":"f","r":"((","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 0.1s 1","fill":"h ( wTRu7","brdR":"h bYpZx ) (!(","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","ttv0P":",xd+r ( ( ) ) 6 < (","ttv0S":""}\nlb4sacz7TtTUelStizbq4M {"rtS":["SourceHanSansSC","regular","#101010"],"xy":"7ia(7iGZ","wh":"7k^k7gj:","b/#000000":["( ( ","\u6EDA\u52A8\u9762\u677F\u662F\u4E00\u79CD\u627F\u8F7D\u957F\u9875\u9762\u7684\u5BB9\u5668\uFF0C\u5F53\u4F60\u9700\u8981\u6EDA\u52A8\u663E\u793A\u5185\u5BB9\u65F6\u4F7F\u7528\u3002\u53F3\u4FA7\u8BBE\u7F6E\u9879\u53EF\u4EE5\u8C03\u6574\u6EDA\u52A8\u65B9\u5F0F\u3002",[],[]],"Z":"-","rtN":"( ( ( 6 ) < ( 7g/. 7g4u","T":"x","N":"\u6587\u672C","r":"((","o":"3_","iLVA":"*","fPt":"(","I":"","shd":"+ ( ((()8 ((((( ;_2g, ;rw*}","ani":"( 0 0.1s 1","rtB":"("}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T02:59:38.445Z","hotAABB":[-298,2907,77,3147],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}',T=()=>ENV.IS_WONDER_SHARE?'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTTv1aKU8qNRlkIpmArkI {"!LIV":3,"xy":"7hAg7la4","wh":"7gPm7gFD","Z":"8","ani":"( 0s ","!LHV":1,"!WBIV":1,"!PSV":1,"T":"x","N":"","r":"((","o":"3_","iLVA":"*","fPt":"(","I":"","shd":"+ ( ((()8 ((((( ;_2g, ;rw*}","dtV":1,"b/#000000":["( ( ","Text",[],[]],"rtS":["PingFangSC","regular","#101010"],"rtN":"( ( ( 6 ( < ( 7g/. 7g4u","rtB":"("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-04-03T02:08:52.992Z","hotAABB":[75.5,402,104.5,422],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}':'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTTv1aKsE0cet {"xy":"7d2L7e:]","T":"x","N":"","Z":"-","r":"((","wh":"7h:i7gFD","o":"3_","iLVA":"*","fPt":"(","I":"","shd":"+ ( ((()8 ((((( ;_2g, ;rw*}","ani":"( 0s","dtV":1,"b/#000000":["( ( ","'+I18N.Widget.wRichTextText+'",[],[]],"rtS":["PingFangSC","regular","#101010"],"rtN":"( ( ( 6 ( < ( 7g/. 7g4u","rtB":"("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T02:59:38.439Z","hotAABB":[-261,-148,-177,-128],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}',A=()=>{const{basic:f,form:u,navigation:b,chart:h,advancedChart:E,multimedia:N,shape:z,flow:S}=(0,o.YN)(),_=[f+"/TtTTv1aKsE0cet",f+"/TtTTvIjJW6lSl8",f+"/TtTTvYwezJIByu",f+"/TtTUK6pc0nOlls",f+"/TtTUKRrrZeva6I",f+"/TtTUKk15K2VtVV",f+"/TtTUL5lIeY7QJC",f+"/TtTULQotepGKet",f+"/TtTULmLslJeJF3",f+"/TtTUM7TNsC6x26",f+"/TtTUMlqh5E4toI",f+"/TtUY5QWzcPDsM6",f+"/TtTUZws6BjIWp8",f+"/wbTOkTYpTtTUeNK4eU3iYQ",f+"/wbTOkWBWTtTUelSImKcV05",f+"/wbTZ7lTOUL2uLnzrbpq7Cv",f+"/rcUEDRX9UFNTz9UT8dScLT",u+"/TtTV0ibAA8Ph2U",u+"/TtTV1DMzwcJfQg",u+"/TtTV1gg4BqfTS1",u+"/TtTV2BRrZzU4mT",u+"/TtTV2jWVHN2Qxr",u+"/TtTV31eY4oQ3p4",u+"/TtTV41o7t3NTQh",u+"/TtTV4cQXkxxF1L",u+"/TtTV59Xqm0dfmL",u+"/TtTV5Yge00GJ4v",b+"/TtTVJcgsuOKfA0",b+"/wbTOksOVTtTVK7dHXfAC4d",b+"/TtTVKdZUNWYGJl",b+"/TtTVL8ogc4IFRO",b+"/TtTVLvB2MuPXDp",b+"/U5lkS3FEPNd1at",b+"/TtTVMLlFqQpSXt",b+"/TtTVMqx9iR0R5D",b+"/TtTVNBcbIennx",b+"/TtTVO2WuWGtO7a",b+"/TtTVOdXCG999rR",b+"/TtTVP4fRDRkZug",h+"/TtTWeOPmqcisnP",h+"/TtTWel7wW2HUxE",h+"/TtTWfCFq1eoQ9w",h+"/TtTWfWul8AGMEc",h+"/TtTWfrVJJuk07W",h+"/TtTWgHsD6EmAYA",h+"/TtTWgk9hDScIoD",h+"/TtTWhAVnCqoxVg",h+"/TtTWhURSssw9ki",E+"/U112FanAvTVF9D",E+"/U113fyFbNJRWiK",E+"/U113uufKHEoqFT",E+"/U1148gCZR4ygZq",E+"/U114OrAt1MlRVf",E+"/U4sweo7BYbHNop",E+"/U507Ub07zHbTJ",E+"/U509Kv0xZkvFgv",E+"/U50AIEeIuu8IWE",E+"/U50AqngLUEseDG",E+"/U50AwlCkzU0gYu",E+"/U50B5Zm1LHtlga",E+"/U2NQ5ozyHumOF",N+"/TtTWqGpGF2j58X",N+"/TtTWqmEKaaiarz",N+"/TtTWrJ6YLVnfQT",N+"/TtTWrmruU1KJsD",N+"/TtTWsKDImZMznw",N+"/TtTWsl4NuKb29L",N+"/TtTWtRSAWjtpHu",N+"/TtTWtx6mtGSTqv",z+"/TtTTvIjJW6lSl8",z+"/TtTTvYwezJIByu",z+"/TtTUd5TXzQiUZ8",z+"/TtTUdXcfZUPIbh",z+"/TtTUdvDe5xyvMg",S+"/ULDYqDqAdDqgrj",S+"/ULDYqXn9Q7t5eX",S+"/ULDYquH4iIv29k",S+"/ULDYrE8F27zeaQ",S+"/ULDYrWZgO0LsX1",S+"/ULDYrmAmMyPxFm",S+"/ULDYs5JTSKf4Ww",S+"/ULDYsPv4WDOzVz",S+"/ULDYsbgRo08xib",S+"/ULDYstMIb8crJV",S+"/ULDYt71zJtCSyS",S+"/ULDYtPft4pJ2Lr",S+"/ULDYtnbvaiddhp",S+"/ULDYtyZc9NCDC9",S+"/ULDYu8Io3j4nq",S+"/ULDYuK7KP2OrEq",S+"/ULDYuTuekx7DDu",S+"/ULDYue9RMtuBeb",S+"/ULDYutd6twPNm8",S+"/ULDYv4PTGfGty4",S+"/ULDYvFGNKc8O9t",S+"/ULDYvVI3GXbeO5",S+"/ULDYvfkSfGrbK6",S+"/ULDYvqC2QIyP8L",S+"/ULDYw2n7qdB8kr",S+"/ULDYwEvu5dBJ1q",S+"/ULDYwT06ufHaJH",S+"/ULDYwoyv4NEzbh",S+"/ULDYx1e6MFZTcA",S+"/ULDYxJHTvgSer6",S+"/ULDYxc8hZvULQr"];return ENV.IS_WONDER_SHARE&&k(_,[E+"/U2NQ5ozyHumOF"]),_},k=(f,u)=>{u.forEach(b=>{const h=f.indexOf(b);h>-1&&f.splice(h,1)})},p=(f,u)=>{const b=f.filter(h=>h.startsWith(u));k(f,b)},r=()=>({TtTTv1aKsE0cet:{preview:"text",meta:{name:I18N.w.rich_text,type:"wRichText",width:ENV.IS_WONDER_SHARE?29:84,height:20,key:"T"},data:T()},TtTTvIjJW6lSl8:{preview:"rectangle",meta:{name:I18N.w.wRect,type:"wRect",width:200,height:100,key:"R"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTTvIjJW6lSl8 {"xy":"7dvs7fv{","T":"M","N":"'+I18N.w.wRect+' 1","Z":".","r":"((","wh":"7il_7hMF","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","fill":"h ( wTRu7","brdRV":"h bYpZx ) (!(!7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","dtV":1,"rtS":["PingFangSC","regular","#101010"],"!FFV":1,"rtN":"( ) ) 6 ) < ( 7g/. 7g/.","rtB":"("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T02:59:38.439Z","hotAABB":[-261,-63,-61,37],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTTvYwezJIByu:{preview:"circle",meta:{name:I18N.w.wOval,type:"wOval",width:100,height:100,key:"O"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTTvYwezJIByu {"xy":"7dvs7i.(","T":"Q","N":"'+I18N.w.wOval+' 1","Z":"/","r":"((","wh":"7hMF7hMF","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","fill":"h ( wTRu7","brdR":"h bYpZx ) (!(","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","dtV":1,"rtS":["PingFangSC","regular","#101010"],"!FFV":1,"rtN":"( ) ) 6 ) < ( 7g/. 7g/.","rtB":"("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T02:59:38.439Z","hotAABB":[-211,97,-111,197],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTUK6pc0nOlls:{preview:"line",meta:{name:I18N.w.wLine,type:"wLine",width:150,height:1,key:"L"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTUK6pc0nOlls {"xy":"7dvs7j~e","T":"N","N":"'+I18N.w.wLine+' 1","Z":"0","r":"((","wh":"7i1R7g0<","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","fill":"h ( wTRu7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","brd":"h bYpZx ) (","linP":"5Tm5Z]5aL5Z]"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T02:59:38.439Z","hotAABB":[-236,289,-86,290],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTUKRrrZeva6I:{preview:"image",meta:{name:I18N.w.wImage,type:"wImage",width:200,height:100},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTUKRrrZeva6I {"xy":"7dvs7m<4","imgP":"( (( ((()((()((()((()((()((()((() *","T":"S","N":"'+I18N.w.wImage+' 1","Z":"1","r":"((","wh":"7il_7hMF","o":"3_","iLVA":".","fPt":"(","I":"","ani":"( 0 1s 1","fill":"( ( oT(h~","brdR":"( bYpZx ) (!(","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","imgF":"","imgR":""}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T02:59:38.439Z","hotAABB":[-261,405,-61,505],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTUKk15K2VtVV:{preview:"linkarea",meta:{name:I18N.w.wLr,type:"wLr",width:45,height:45,key:"H"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTUKk15K2VtVV {"xy":"7dwN7o*:","T":"_","N":"'+I18N.w.wLr+' 1","Z":"2","r":"((","wh":"7gdJ7gdJ","o":"3_","iLVA":"*","fPt":"(","I":""}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T02:59:38.439Z","hotAABB":[-183,565,-138,610],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTUL5lIeY7QJC:{preview:"button",meta:{name:I18N.w.wButton,type:"wButton",width:80,height:30},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTUL5lIeY7QJC {"ttv0F":"PingFangSC","!FFV":1,"xy":"7dk<7pzw","T":"]","N":"'+I18N.w.wButton+' 1","Z":"3","r":"((","wh":"7h607gQ{","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","fill":"h ( wTRu7","brdRV":"h bYpZx ) (!,!7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","ttv0P":",xd+r ( ( ) ) 6 < (","ttv0S":"'+I18N.w.wButton+'"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T02:59:38.439Z","hotAABB":[-211,715,-131,745],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTULQotepGKet:{preview:"button_solid",meta:{name:I18N.w.button_solid,type:"wButton",width:80,height:30},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTULQotepGKet {"ttv0F":"PingFangSC","!FFV":1,"xy":"7dk<7rN}","T":"]","N":"'+I18N.w.button_solid+'","Z":"4","r":"((","wh":"7h607gQ{","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","fill":"h ( ZSfa[","brdRV":"( bYpZx ) (!,!7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","ttv0P":"wTRu7 ( ( ) ) 6 < (","ttv0S":"'+I18N.w.wButton+'"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T02:59:38.439Z","hotAABB":[-211,826,-131,856],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTULmLslJeJF3:{preview:"placeholder",meta:{name:I18N.w.placeholder,type:"wPlaceholder",width:200,height:100},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTULmLslJeJF3 {"xy":"7e+R7sRT","T":"f","N":"'+I18N.w.placeholder+' 1","Z":"5","r":"((","wh":"7il_7hMF","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","fill":"h ( wTRu7","brdR":"h bYpZx ) (!(","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","ttv0P":",xd+r ( ( ) ) 6 < (","ttv0S":""}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T02:59:38.440Z","hotAABB":[-251,868,-51,968],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTUM7TNsC6x26:{preview:"table",meta:{name:I18N.w.wTable,type:"wTable",width:320,height:120},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTUM7TNUEFDnpALab04sR {"T":"w","N":"'+I18N.w.wTable+'","Z":"7","xy":"7dmX7lY6","r":"((","wh":"7kK67he]","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","fill":"h ( wTRu7","brdRV":"h bYpZx ) (!(!7","ttv0P":",xd+r ( ( ) ) 6 < 0 ( + 0!0!0!0","ttv0S":"","ttv0F":"PingFangSC","tblP":", , ( 7g/G7g/G7g/G7g/G 7g/G7g/G7g/G7g/G","tblIBH":"h bYpZx )","tblIBV":"h bYpZx )","tblOB":"h bYpZx )","hlP3":"7gQ{7gQ{7gQ{7gQ{","wlP3":"7h607h607h607h60","tbP":[["1","2","3","4"],["5","6","7","8"],["9","A","B","C"],["D","E","F","G"]],"c/1":["","",""],"c/2":["","",""],"c/3":["","",""],"c/4":["","",""],"c/5":["","",""],"c/6":["","",""],"c/7":["","",""],"c/8":["","",""],"c/9":["","",""],"c/A":["","",""],"c/B":["","",""],"c/C":["","",""],"c/D":["","",""],"c/E":["","",""],"c/F":["","",""],"c/G":["","",""],"tblD":{"css":[[""]],"col":[{"t":"text","w":80}],"row":[{"h":30}],"da":[[""]],"lk":[[""]],"mc":{}},"!V":3}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-07-12T03:56:57.159Z","hotAABB":[-329,346,-9,466],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTUMlqh5E4toI:{preview:"note",meta:{name:I18N.w.wSticky,type:"wSticky",width:280,height:140,key:"N"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTUMlqh5E4toI {"Z":";_2g-","xy":"7eZ(7w](","b/#000000":["( ( ","",[],[]],"T":"i","N":"'+I18N.w.wSticky+' 1","r":"((","wh":"7jsa7h|s","o":"3_","iLVA":"*","fPt":"(","I":"","fill":"h ( vqxy[","ttv0LhpP":"< @","styp":"","dtV":1,"od":")","rWK":"","ptd":"l"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T02:59:38.443Z","hotAABB":[-251,1162,29,1282],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtUY5QWzcPDsM6:{preview:"tear",meta:{name:I18N.w.wTear,type:"wTear",width:20,height:20,key:"W"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtUY5QWzcPDsM6 {"b/#000000":["( ( ","",[],[]],"T":")-","N":"'+I18N.w.wTear+' 1","Z":";_2g-","xy":"7eS*7ymH","r":"((","wh":"7gFD7gFD","o":"3_","iLVA":"*","fPt":"(","I":"","fill":"h ( vqxy[","ttv0LhpP":"< @","dtV":1,"od":")","sth":")J"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T07:19:37.418Z","hotAABB":[-127,1374,-107,1394],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTUZws6BjIWp8:{preview:"arrow",meta:{name:I18N.w.wArrow,type:"wArrow",width:150,height:1},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTUZws6BjIWp8 {"T":"Y","N":"'+I18N.w.wArrow+' 1","Z":"7","xy":"7elN7{O}","r":"((","wh":"7i1R7g0<","o":"3_","iLVA":"*","fPt":"(","I":"","fill":"h ( wTRu7","ani":"( 0 1s 1","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","linP":"5Tm5Z]5aL5Z]","arrP":",!)!h uOTd= * ("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T02:59:38.443Z","hotAABB":[-171,1507,-21,1508],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTUaNUAiMYciI:{preview:"iphone_x_status_bar",meta:{name:I18N.w.wIphoneXSB,type:"wIphoneXSB",width:390,height:47},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTUaNUAiMYciI {"T":"~","N":"'+I18N.w.wIphoneXSB+' 1","Z":"8","xy":"7eZ(7|j]","r":"((","wh":"7lFX7gfg","o":"3_","iLVA":"*","fPt":"(","I":"","fill":"h ( uG3db","ttv0P":",xd+r ( ( ) ) 6 < (","ttv0S":""}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T02:59:38.443Z","hotAABB":[-306,1580,84,1627],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTUap7E0wllRC:{preview:"input",meta:{name:I18N.w.wMTextInput,type:"wMTextInput",width:200,height:30},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTUap7E0wllRC {"T":"c","N":"'+I18N.w.wMTextInput+' 1","Z":"9","xy":"7eZ(7~>0","r":"((","wh":"7il_7gQ{","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":"QtD^Q ( ( ) ( 6 < (","ttv0S":"'+I18N.Widget.prompt+'","fill":"h ( wTRu7","brdRV":"h bYpZx ) (!(!7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","ti":"(","pt1":"","ptc1":",xd+r"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T02:59:38.443Z","hotAABB":[-211,1699,-11,1729],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTUbIaRroe2P0:{preview:"textarea",meta:{name:I18N.w.wMTextarea,type:"wMTextInput",width:200,height:100},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTUbIaRroe2P0 {"T":"b","N":"'+I18N.w.wMTextarea+' 1","Z":":","xy":"7eZ(8)Ha","r":"((","wh":"7il_7hMF","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":"QtD^Q ( ( ) ( 6 < 0","ttv0S":"'+I18N.Widget.prompt+'","fill":"h ( wTRu7","brdRV":"h bYpZx ) (!(!7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","ti":"(","pt1":"","ptc1":",xd+r"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T02:59:38.443Z","hotAABB":[-211,1821,-11,1921],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTUblAGCuLDKc:{preview:"select",meta:{name:I18N.w.wMSelect,type:"wMSelect",width:200,height:30},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTV1gg4UGlUWmVnmDOKOu {"brdRV":"h bYpZx ) (!.!7","N":"\u4E0B\u62C9\u9009\u62E9\u5668 20","Z":"Z","so":"","ttv0P":",xd+r ( ( ) ) 6 < 0 ( + (!;!(!1","ttv0F":"PingFangSC","!FFV":1,"T":"a","xy":"7wbH7gHT","r":"((","wh":"7il_7gQ{","o":"3_","iLVA":"*","fPt":"(","I":"","fill":"h ( wTRu7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","ttv0S":"1\\n2\\n3"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-06-26T01:56:34.656Z","hotAABB":[1126.62,6.879999999999999,1326.62,36.879999999999995],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTUcRx7Gxlvl5:{preview:"drop_menu",meta:{name:I18N.Widget.wDropMenuText,type:"wDropMenu",width:120,height:32},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTUcRx7Gxlvl5 {"!FFV":1,"T":"q","N":"'+I18N.Widget.wDropMenuText+' 1","Z":"<","xy":"7eS*8,kT","r":"((","wh":"7he]7gT@","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","ttv0P":",xd+r ( ( ) ( 6 < 0","ttv0S":"'+I18N.Widget.wDropMenuText+'","fill":"h ( wTRu7","brdRV":"h bYpZx ) (!(!7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","odDM":"( (","od":[[["'+I18N.Widget.option1+'","","(",""],[]],[["'+I18N.Widget.option2+'","","(",""],[]],[["'+I18N.Widget.option3+'","","(",""],[]]],"oc":"wTRu7 tMdit 1Wxsx"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T02:59:38.444Z","hotAABB":[-177,2106,-57,2138],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTUd5TXzQiUZ8:{preview:"polygon",meta:{name:I18N.w.wPolygon,type:"wPolygon",width:100,height:100},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTUd5TXzQiUZ8 {"!FFV":1,"T":"W","N":"'+I18N.w.wPolygon+' 1","Z":"=","xy":"7eNH8.Q*","r":"((","wh":"7hMF7hMF","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","fill":"h ( wTRu7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g/.","rtB":"(","plgN":"7g6,7g/.","brd":"h bYpZx ) ("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T02:59:38.445Z","hotAABB":[-171,2198,-71,2298],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTUdXcfZUPIbh:{preview:"star",meta:{name:I18N.w.wStar,type:"wStar",width:100,height:100},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTUdXcfZUPIbh {"!FFV":1,"T":"X","N":"'+I18N.w.wStar+' 1","Z":">","xy":"7e1B80n*","r":"((","wh":"7hMF7hMF","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","fill":"h ( wTRu7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g/.","rtB":"(","plgS":"7g4u7g/.7gj:","brd":"h bYpZx ) ("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T02:59:38.445Z","hotAABB":[-196,2370,-96,2470],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTUdvDe5xyvMg:{preview:"eq_triangle",meta:{name:I18N.w.wTriangleB,type:"wTriangle",width:120,height:100},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTUdvDe5xyvMg {"!FFV":1,"T":")0","N":"'+I18N.w.wTriangleB+' 1","Z":"?","xy":"7dvs833*","r":"((","wh":"7he]7hMF","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","fill":"h ( wTRu7","brdR":"h bYpZx ) (!(","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g/.","rtB":"("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T02:59:38.445Z","hotAABB":[-221,2542,-101,2642],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},wbTOkTYpTtTUeNK4eU3iYQ:{preview:"dynamic",meta:{name:I18N.w.dynamic_widget,type:"wBasket",width:375,height:240},data:l()},wbTOkWBWTtTUelSImKcV05:{preview:"scroll_panel",meta:{name:I18N.w.scroll_panel,type:"wBasket",width:375,height:240},data:C()},wbTZ7lTOUL2uLnzrbpq7Cv:{preview:"mind",meta:{name:I18N.w.wMind,type:"wMind",width:315,height:212},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nwbTZ7lTOUL2uLnzrbpq7Cv {"N":"'+I18N.w.wMind+' 1","Z":"W","so":"","t":"(","T":")5","xy":"9;q{7kv*","r":"((","wh":"7kEF7izZ","o":"3_","iLVA":"*","fPt":"(","I":"","rRBPK":"rbpTYYl9UL2uLnzWMXqtF2","rCK":"rcTZ7lTOUL2uLnzKbY0U3V","iAS":"h","fill":"( ( wTRu7","brd":"( bYpZx ) ("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind ) {"T":")","B":"1"}\nrbpTYYl9UL2uLnzWMXqtF2 ) {"T":")","B":")","N":"ref mind page 0","Z":"(","ic":"","aF":"(","dvc":"(","dWH":"7kw87r->","dORT":"*","dSCR":")","alH":"","alV":"","wh":"((((((((","s":")","l":")","dck":"","di":"( ","fill":"h ( wTRu7","iSDG":"h","!V":""}\nrcTZ7lTOUL2uLnzKbY0U3V ) {"T":"*","N":"\u72B6\u6001 1","Z":"(","xy":"7g/.7g/.","wh":"7g/.7g/.","fill":"h ( wTRu7","iLVA":".","ort":")","icc":"h","shh":"2","sfh":"2","dvc":"(","alH":"","alV":"","od":")","I":"","lg":"( 2 2 2 2 2","ao":"(","brdRV":"( bYpZx ) (!(!7","shd":") ( ((()8 ((((( ;_2g, ;rw*} ((((("}\nTaKaVouWUL2uLnzf5qxAxu + {"T":")6","N":"\u4E2D\u5FC3\u4E3B\u9898","Z":"-","xy":"7g/.7g/.","r":"((","wh":"7g/.7g/.","o":"3_","iLVA":"*","fPt":"(","I":"","exp":"h","od":")","icn":"","ir":"h","dtV":1,"b/#000000":["( ( ","\u4E2D\u5FC3\u4E3B\u9898",[],[]],"rtS":["PingFangSC","regular",""],"rtN":"( ( ( 6 ( < ( 7g/. 7g4u","rtB":"(","fill":"( ( wTRu7","brd":"( bYpZx ) (","pla":")","imgP":"7g/.7g/.","imgR":""}\nTZ8nrXSkUL2uLnztl0dGFC {"T":")6","N":"\u4E3B\u9898 1","Z":"-","xy":"7g/.7g/.","r":"((","wh":"7g/.7g/.","o":"3_","iLVA":"*","fPt":"(","I":"","exp":"h","od":")","icn":"","ir":"(","dtV":1,"b/#000000":["( ( ","\u4E3B\u9898 1",[],[]],"rtS":["PingFangSC","regular",""],"rtN":"( ( ( 6 ( < ( 7g/. 7g4u","rtB":"(","fill":"( ( wTRu7","brd":"( bYpZx ) (","pla":")","imgP":"7g/.7g/.","imgR":""}\nTZ8nLY6wUL2uLnzAbWSkBq {"T":")6","N":"\u4E3B\u9898 2","Z":"-","xy":"7g/.7g/.","r":"((","wh":"7g/.7g/.","o":"3_","iLVA":"*","fPt":"(","I":"","exp":"h","od":"*","icn":"","ir":"(","dtV":1,"b/#000000":["( ( ","\u4E3B\u9898 2",[],[]],"rtS":["PingFangSC","regular",""],"rtN":"( ( ( 6 ( < ( 7g/. 7g4u","rtB":"(","fill":"( ( wTRu7","brd":"( bYpZx ) (","pla":")","imgP":"7g/.7g/.","imgR":""}\nTZ6C5iVrUL2uLnzYYOSlEv {"T":")6","N":"\u4E3B\u9898 3","Z":"-","xy":"7g/.7g/.","r":"((","wh":"7g/.7g/.","o":"3_","iLVA":"*","fPt":"(","I":"","exp":"h","od":"+","icn":"","ir":"(","dtV":1,"b/#000000":["( ( ","\u4E3B\u9898 3",[],[]],"rtS":["PingFangSC","regular",""],"rtN":"( ( ( 6 ( < ( 7g/. 7g4u","rtB":"(","fill":"( ( wTRu7","brd":"( bYpZx ) (","pla":")","imgP":"7g/.7g/.","imgR":""}\n@page-content-tag-proto2-2208 {"time":"2024-08-10T12:08:05.952Z","hotAABB":[9440,250,9755,462],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},rcUEDRX9UFNTz9UT8dScLT:{preview:"overlay",meta:{name:I18N.w.rResCanvasAsOverlay,type:"rResCanvasAsOverlay",width:300,height:240},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nrcUEDRX9UFNTz9UT8dScLT {"xy":"7i1R7he]","wh":"7k3w7jD4","brdRV":"( bYpZx ) (!(!7","N":"'+I18N.w.rResCanvasAsOverlay+'","T":"*","Z":"@","fill":"h ( wTRu7","iLVA":"*","ort":")","ao":"h","icc":"h","shh":"(","sfh":"(","dvc":")","alH":"","alV":"","od":",","I":"","lg":"( 2 2 2 2 <","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","r":"(("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-06-11T08:56:36.947Z","hotAABB":[0,0,300,240],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTV0ibAA8Ph2U:{preview:"input",meta:{name:I18N.w.wMTextInput,type:"wMTextInput",width:200,height:30},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTV0ibAA8Ph2U {"T":"c","N":"'+I18N.w.wMTextInput+' 2","Z":"B","xy":"7sd{7h[B","r":"((","wh":"7il_7gQ{","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":"QtD^Q ( ( ) ( 6 < (","ttv0S":"'+I18N.Widget.prompt+'","fill":"h ( wTRu7","brdRV":"h bYpZx ) (!(!7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","ti":"(","pt1":"","ptc1":",xd+r"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:01:12.343Z","hotAABB":[833,97,1033,127],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTV1DMzwcJfQg:{preview:"textarea",meta:{name:I18N.w.wMTextarea,type:"wMTextInput",width:200,height:100},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTV1DMzwcJfQg {"T":"b","N":"'+I18N.w.wMTextarea+' 2","Z":"C","xy":"7sd{7ju}","r":"((","wh":"7il_7hMF","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":"QtD^Q ( ( ) ( 6 < 0","ttv0S":"'+I18N.Widget.prompt+'","fill":"h ( wTRu7","brdRV":"h bYpZx ) (!(!7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","ti":"(","pt1":"","ptc1":",xd+r"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:01:12.343Z","hotAABB":[833,232,1033,332],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTV1gg4BqfTS1:{preview:"select",meta:{name:I18N.w.wMSelect,type:"wMSelect",width:200,height:30},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTV1gg4UGlUWmVnmDOKOu {"brdRV":"h bYpZx ) (!.!7","N":"\u4E0B\u62C9\u9009\u62E9\u5668 20","Z":"Z","so":"","ttv0P":",xd+r ( ( ) ) 6 < 0 ( + (!;!(!1","ttv0F":"PingFangSC","!FFV":1,"T":"a","xy":"7wbH7gHT","r":"((","wh":"7il_7gQ{","o":"3_","iLVA":"*","fPt":"(","I":"","fill":"h ( wTRu7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","ttv0S":"1\\n2\\n3"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-06-26T01:56:34.656Z","hotAABB":[1126.62,6.879999999999999,1326.62,36.879999999999995],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTV2BRrZzU4mT:{preview:"file",meta:{name:I18N.w.wMFileInput,type:"wMFileInput",width:200,height:30},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTV2BRrZzU4mT {"T":"`","N":"'+I18N.w.wMFileInput+' 1","Z":"E","xy":"7sd{7no8","r":"((","wh":"7il_7gQ{","o":"3_","iLVA":"*","fPt":"(","I":""}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:01:12.343Z","hotAABB":[833,557,1033,587],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTV2jWVHN2Qxr:{preview:"selection_control_radio",meta:{name:I18N.w.selection_control_radio,type:"wSelectionControl",width:222,height:64},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTV2jWVHN2Qxr {"T":"s","N":"'+I18N.w.selection_control_radio+' 1","Z":"F","xy":"7sd{7pdo","r":"((","wh":"7j/:7gzR","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","odSLC":"( ( ), 6 7eS(K 7eS(K gn~wh .v~[9 7","od":[[["'+I18N.Widget.option1+'","","*",""],[]],[["'+I18N.Widget.option2+'","","(",""],[]],[["'+I18N.Widget.option3+'","","(",""],[]],[["'+I18N.Widget.option4+'","","(",""],[]]]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:01:12.344Z","hotAABB":[822,679,1044,743],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTV31eY4oQ3p4:{preview:"selection_control_checkbox",meta:{name:I18N.w.selection_control_checkbox,type:"wSelectionControl",width:222,height:64},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTV31eY4oQ3p4 {"xy":"7sqi7rci","T":"s","N":"'+I18N.w.selection_control_checkbox+' 1","Z":"G","r":"((","wh":"7j/:7gzR","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","odSLC":"( ) ), 6 7eS(K 7eS(K gn~wh .v~[9 7","od":[[["'+I18N.Widget.option1+'","","*",""],[]],[["'+I18N.Widget.option2+'","","(",""],[]],[["'+I18N.Widget.option3+'","","(",""],[]],[["'+I18N.Widget.option4+'","","(",""],[]]]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:01:12.345Z","hotAABB":[833,826,1055,890],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTV41o7t3NTQh:{preview:"android_switch",meta:{name:I18N.w.wAndroidSwitch,type:"wAndroidSwitch",width:37,height:20},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTV41o7t3NTQh {"T":"Z","N":"'+I18N.w.wAndroidSwitch+' 1","Z":"H","xy":"7sNN7tRX","r":"((","wh":"7gZ07gFD","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","swi":"g wTRu7 Cid{` X`vSz ^@cip"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:01:12.345Z","hotAABB":[896,982,933,1002],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTV4cQXkxxF1L:{preview:"ios_switch",meta:{name:I18N.w.wIosSwitch,type:"wIosSwitch",width:37,height:20},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTV4cQXkxxF1L {"T":"[","N":"'+I18N.w.wIosSwitch+' 1","Z":"I","xy":"7s[<7uCR","r":"((","wh":"7gZ07gFD","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","swi":"g wTRu7 wTRu7 nZXq7 (?D51"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:01:12.345Z","hotAABB":[907,1043,944,1063],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTV59Xqm0dfmL:{preview:"slider",meta:{name:I18N.w.wSlider,type:"wSlider",width:240,height:20},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTV59Xqm0dfmL {"T":"g","N":"'+I18N.w.wSlider+' 1","Z":"J","xy":"7soL7vPD","r":"((","wh":"7jD47gFD","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","sldP":"/ wTRu7 pMNcl .v~[9 < < , , 7gj:","sldB":"h .v~[9 ) (","sldSthb":") ( bYpZx ((((( ;_2g, ;rw*} (((((","sldStrk":") ( bYpZx ((((( ;_2g, ;rw*} ((((("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:01:12.345Z","hotAABB":[822,1128,1062,1148],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTV5Yge00GJ4v:{preview:"digital_stepper",meta:{name:I18N.w.wDigitalStepper,type:"wDigitalStepper",width:92,height:24},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTV5Yge00GJ4v {"T":"^","N":"'+I18N.w.wDigitalStepper+' 1","Z":"K","xy":"7soL7xC_","r":"((","wh":"7hD,7gJ}","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","brdR":"h bYpZx ) (!*","ds":",xd+r <*l0[ @ 0 6 ( 2 )","fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:01:12.345Z","hotAABB":[896,1263,988,1287],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTVJcgsuOKfA0:{preview:"drop_menu",meta:{name:I18N.w.drop_menu,type:"wDropMenu",width:140,height:40},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTVJcgsUPH7pUD1zC44Y3 {"xy":"7raL7v){","wh":"7h|s7g^Z","N":"'+I18N.w.drop_menu+'","Z":"H","od":[[["'+I18N.Widget.nav1+'","","(","",""],[]],[["'+I18N.Widget.nav2+'","","(","",""],[]],[["'+I18N.Widget.nav3+'","","(","",""],[]]],"oc":"wTRu7 tMdit 1Wxsx .v~[9","brdRV":"h bYpZx ) (!.!7","so":"","ttv0P":",xd+r ( ( ) ( 6 < 0 ( + 0!0!0!0","ttv0F":"PingFangSC","!FFV":1,"T":"q","r":"((","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","ttv0S":"'+I18N.w.drop_menu+'","fill":"h ( wTRu7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","odDM":"( ("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-09-24T07:37:58.060Z","hotAABB":[786,1085,926,1125],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},wbTOksOVTtTVK7dHXfAC4d:{preview:"dynamic_drop_menu",meta:{name:I18N.w.dynamic_drop_menu,type:"wBasket",width:136,height:188},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nwbTOksOVTtTVK7dHXfAC4d {"N":"'+I18N.w.dynamic_drop_menu+' 1","Z":"M","xy":"7s>i8(E2","T":"R","r":"((","wh":"7hx:7i^c","o":"3_","iLVA":"*","fPt":"(","I":"","B":"*","rRBPK":"rbpTOksOTtTVK7dMOsJOhF","rCK":"rcTOksOVTtTVK7d10RPe7d","s":")","l":")"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli ) {"T":")","B":"0"}\nrbpTOksOTtTVK7dMOsJOhF * {"T":")","B":")","N":"'+I18N.w.rounded_rect+' 2","Z":"0","ic":"","aF":"(","dvc":")","dWH":"7hx:7i^c","dORT":")","dSCR":")","alH":"","alV":"","wh":"7hx:7i^c","s":")","l":")","dck":"rcTOksOVTtTVK7d10RPe7d","di":"( ","fill":"h ( wTRu7"}\nrcTOksOVTtTVK7d10RPe7d ) {"xy":"7h(47hFH","fill":"h ( wTRr:","T":"*","N":"'+I18N.Basket.state1+'","Z":"-","wh":"7hx:7i^c","iLVA":"*","ort":")","icc":"h","shh":"(","sfh":"(","dvc":")","alH":"","alV":"","od":")","I":"","lg":"( 2 2 2 2 <"}\nlb4vfhn3TtTVK7dmdQPejP {"I":[[3,"itaTOkwTTtTVK7dibTqsxv","","(",["9 0.2s 0 ","wbTOksOVTtTVK7dHXfAC4d","rcTOksOVTtTVK7dlo1EKl6"]]],"N":"'+I18N.w.add+'","xy":"7h]P7g?F","wh":"7gO_7gO_","icNCS":["ze-add-o","rgba(16,16,16,1)","D"],"T":"y","Z":"1","r":"((","o":"3_","iLVA":".","fPt":"(","ani":"( 0 0.1s 1","brdR":"h bYpZx ( (!(","fill":"h ( ,xd+r","shd":"+ ( ((()8 ((((( ;_2g, ;rw*}","icVB":"0 0 32 32","icP":"<path d=\\"M15.111 15.118v-6.222c0-0.491 0.398-0.889 0.889-0.889h0.005c0.488 0.003 0.882 0.4 0.88 0.889l-0.032 6.222h6.259c0.491 0 0.889 0.398 0.889 0.889s-0.398 0.889-0.889 0.889h-6.268l-0.033 6.264c-0.002 0.469-0.383 0.847-0.852 0.847s-0.847-0.379-0.847-0.847v-6.264h-6.222c-0.491 0-0.889-0.398-0.889-0.889s0.398-0.889 0.889-0.889h6.222z\\"></path><path d=\\"M16 28.444c6.873 0 12.444-5.572 12.444-12.444s-5.572-12.444-12.444-12.444c-6.873 0-12.444 5.572-12.444 12.444s5.572 12.444 12.444 12.444zM16 30.222c-7.855 0-14.222-6.367-14.222-14.222s6.367-14.222 14.222-14.222 14.222 6.367 14.222 14.222-6.367 14.222-14.222 14.222z\\"></path>","icSA":[0,0]}\nrcTOksOVTtTVK7dlo1EKl6 - {"N":"'+I18N.Basket.state2+'","Z":".","od":"*","xy":"7h(47hFH","fill":"h ( wTRr:","T":"*","wh":"7hx:7i^c","iLVA":"*","ort":")","icc":"h","shh":"(","sfh":"(","dvc":")","alH":"","alV":"","I":"","lg":"( 2 2 2 2 <"}\nlb4vfhn3TtTVK7do46cJSv {"N":"'+I18N.w.add+'","I":[[3,"itaTOkwaTtTVK7dJaNntsW","","(",["9 0.2s 0 ","wbTOksOVTtTVK7dHXfAC4d","rcTOksOVTtTVK7d10RPe7d"]]],"xy":"7h]P7g?F","wh":"7gO_7gO_","icNCS":["ze-add-o","rgba(16,16,16,1)","D"],"T":"y","Z":"1","r":"((","o":"3_","iLVA":".","fPt":"(","ani":"( 0 0.1s 1","brdR":"h bYpZx ( (!(","fill":"h ( ,xd+r","shd":"+ ( ((()8 ((((( ;_2g, ;rw*}","icVB":"0 0 32 32","icP":"<path d=\\"M15.111 15.118v-6.222c0-0.491 0.398-0.889 0.889-0.889h0.005c0.488 0.003 0.882 0.4 0.88 0.889l-0.032 6.222h6.259c0.491 0 0.889 0.398 0.889 0.889s-0.398 0.889-0.889 0.889h-6.268l-0.033 6.264c-0.002 0.469-0.383 0.847-0.852 0.847s-0.847-0.379-0.847-0.847v-6.264h-6.222c-0.491 0-0.889-0.398-0.889-0.889s0.398-0.889 0.889-0.889h6.222z\\"></path><path d=\\"M16 28.444c6.873 0 12.444-5.572 12.444-12.444s-5.572-12.444-12.444-12.444c-6.873 0-12.444 5.572-12.444 12.444s5.572 12.444 12.444 12.444zM16 30.222c-7.855 0-14.222-6.367-14.222-14.222s6.367-14.222 14.222-14.222 14.222 6.367 14.222 14.222-6.367 14.222-14.222 14.222z\\"></path>","icSA":[0,0]}\nwwTOkvlETtTVK7d3IrkxZ4 + {"N":"'+I18N.w.file_transfer+'","T":"P","Z":"6","xy":"7h(47i8P","r":"((","wh":"7g/.7g/.","o":"3_","iLVA":"*","fPt":"(","I":"","iASC":"+"}\nlb4vko3aTtTVK7dLyxzf94 {"fill":"( ( ?e~4[","Z":")","N":"'+I18N.w.rounded_rect+'","T":"M","xy":"7g/.7g/.","r":"((","wh":"7hx:7gc<","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 0.1s 1","brdRV":"( bYpZx ) (!(!7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g/.","rtB":"("}\nlb4vl9gfTtTVK7dqDek3aV {"Z":"+","T":"x","N":"'+I18N.w.wRichText+'","xy":"7g7:7g.R","r":"((","wh":"7ggu7gIo","o":"3_","iLVA":"*","fPt":"(","I":"","shd":"+ ( ((()8 ((((( ;_2g, ;rw*}","ani":"( 0 0.1s 1","b/#000000":["( ( ","'+I18N.w.file_transfer+'",[],[]],"rtS":["SourceHanSansSC","regular","rgba(255,255,255,1)"],"rtN":"( ( ( 8 ( ? ( 7g/. 7g4u","rtB":"("}\nlb4vn4vyTtTVK7dzniLRLp {"Z":"*","N":"'+I18N.w.file_transfer+'","T":"y","xy":"7fXu7g/.","r":"((","wh":"7gJ}7gJ}","o":"3_","iLVA":".","fPt":"(","I":"","ani":"( 0 0.1s 1","brdR":"h bYpZx ( (!(","fill":"h ( wTRu7","shd":"+ ( ((()8 ((((( ;_2g, ;rw*}","icVB":"0 0 32 32","icP":"<path d=\\"M3.556 9.778v-4.444c0-0.982 0.796-1.778 1.778-1.778h4.444c0.491 0 0.889 0.398 0.889 0.889s-0.398 0.889-0.889 0.889h-4.444v4.444c0 0.491-0.398 0.889-0.889 0.889s-0.889-0.398-0.889-0.889zM5.333 22.222v4.444h4.444c0.491 0 0.889 0.398 0.889 0.889s-0.398 0.889-0.889 0.889h-4.444c-0.982 0-1.778-0.796-1.778-1.778v-4.444c0-0.491 0.398-0.889 0.889-0.889s0.889 0.398 0.889 0.889zM26.667 9.778v-4.444h-4.444c-0.491 0-0.889-0.398-0.889-0.889s0.398-0.889 0.889-0.889h4.444c0.982 0 1.778 0.796 1.778 1.778v4.444c0 0.491-0.398 0.889-0.889 0.889s-0.889-0.398-0.889-0.889zM28.444 22.222v4.444c0 0.982-0.796 1.778-1.778 1.778h-4.444c-0.491 0-0.889-0.398-0.889-0.889s0.398-0.889 0.889-0.889h4.444v-4.444c0-0.491 0.398-0.889 0.889-0.889s0.889 0.398 0.889 0.889zM4.444 15.111h23.111c0.491 0 0.889 0.398 0.889 0.889s-0.398 0.889-0.889 0.889h-23.111c-0.491 0-0.889-0.398-0.889-0.889s0.398-0.889 0.889-0.889z\\"></path>","icNCS":["ze-scan","rgba(16,16,16,1)","@"],"icSA":[0,0]}\nwwTOkvmlTtTVK7dPvwSWYn + {"N":"'+I18N.w.add_friend+'","T":"P","Z":";","xy":"7h(47h[B","r":"((","wh":"7g/.7g/.","o":"3_","iLVA":"*","fPt":"(","I":"","iASC":"+"}\nlb4vl9gfTtTVK7d7iWeBtp {"Z":",","T":"x","N":"'+I18N.w.wRichText+' 1","xy":"7g@T7g.R","r":"((","wh":"7gzR7gIo","o":"3_","iLVA":"*","fPt":"(","I":"","shd":"+ ( ((()8 ((((( ;_2g, ;rw*}","ani":"( 0 0.1s 1","b/#000000":["( ( ","'+I18N.w.add_friend+'",[],[]],"rtS":["SourceHanSansSC","regular","rgba(255,255,255,1)"],"rtN":"( ( ( 8 ( ? ( 7g/. 7g4u","rtB":"("}\nlb4vko3aTtTVK7d4uykMHK {"fill":"( ( ?e~4[","iLVA":"*","N":"'+I18N.w.rounded_rect+'","Z":")","T":"M","xy":"7g/.7g/.","r":"((","wh":"7hx:7gc<","o":"3_","fPt":"(","I":"","ani":"( 0 0.1s 1","brdRV":"( bYpZx ) (!(!7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g/.","rtB":"("}\nlb4vzdfhTtTVK7d2EwEzsY {"N":"'+I18N.w.add_friend+'","fill":"h ( wTRu7","xy":"7fXu7g-w","Z":"+","T":"y","r":"((","wh":"7gJ}7gJ}","o":"3_","iLVA":".","fPt":"(","I":"","ani":"( 0 0.1s 1","brdR":"h bYpZx ( (!(","shd":"+ ( ((()8 ((((( ;_2g, ;rw*}","icVB":"0 0 32 32","icP":"<path d=\\"M10.102 13.369v1.791c-3.696 0.493-6.546 3.658-6.546 7.489l0-0.032c0.001 0.018 0.002 0.037 0.002 0.056 0 0.491-0.398 0.889-0.889 0.889s-0.889-0.398-0.889-0.889c0-0.008 0-0.016 0-0.024h-0.002c0-4.814 3.644-8.776 8.324-9.279zM10.036 6.262l0.015 0c0.484 0.008 0.874 0.403 0.874 0.889 0 0.491-0.398 0.889-0.889 0.889-1.473 0-2.667 1.194-2.667 2.667s1.194 2.667 2.667 2.667v1.778c-2.455 0-4.444-1.99-4.444-4.444s1.99-4.444 4.444-4.444zM17.703 15.076c5.891 0 10.667 4.776 10.667 10.667h-1.778c0-4.909-3.98-8.889-8.889-8.889l-0.147 0.001c-4.841 0.078-8.742 4.028-8.742 8.888h-1.778c0-5.891 4.776-10.667 10.667-10.667zM10.036 13.373c0.491 0 0.889 0.398 0.889 0.889s-0.398 0.889-0.889 0.889-0.889-0.398-0.889-0.889c0-0.491 0.398-0.889 0.889-0.889zM7.926 24.854c0.491 0 0.889 0.398 0.889 0.889s-0.398 0.889-0.889 0.889c-0.491 0-0.889-0.398-0.889-0.889s0.398-0.889 0.889-0.889zM27.481 24.854c0.491 0 0.889 0.398 0.889 0.889s-0.398 0.889-0.889 0.889c-0.491 0-0.889-0.398-0.889-0.889s0.398-0.889 0.889-0.889zM17.751 14.222c2.455 0 4.444-1.99 4.444-4.444s-1.99-4.444-4.444-4.444-4.444 1.99-4.444 4.444c0 2.455 1.99 4.444 4.444 4.444zM17.751 16c-3.436 0-6.222-2.786-6.222-6.222s2.786-6.222 6.222-6.222 6.222 2.786 6.222 6.222c0 3.436-2.786 6.222-6.222 6.222z\\"></path>","icNCS":["ze-friends-o","rgba(16,16,16,1)","@"],"icSA":[0,0]}\nwwTOkvo5TtTVK7deIPHH38 + {"N":"'+I18N.w.message+'","T":"P","Z":">","xy":"7h(47h(4","r":"((","wh":"7g/.7g/.","o":"3_","iLVA":"*","fPt":"(","I":"","iASC":"+"}\nlb4vl9gfTtTVK7djUT69GJ {"Z":",","b/#000000":["( ( ","'+I18N.w.message+'",[],[]],"T":"x","N":"'+I18N.w.wRichText+' 2","xy":"7g@T7g.R","r":"((","wh":"7gzR7gIo","o":"3_","iLVA":"*","fPt":"(","I":"","shd":"+ ( ((()8 ((((( ;_2g, ;rw*}","ani":"( 0 0.1s 1","rtS":["SourceHanSansSC","regular","rgba(255,255,255,1)"],"rtN":"( ( ( 8 ( ? ( 7g/. 7g4u","rtB":"("}\nlb4vko3aTtTVK7dsz8rQ9q {"fill":"( ( ?e~4[","iLVA":"*","N":"'+I18N.w.wRichText+'","Z":")","T":"M","xy":"7g/.7g/.","r":"((","wh":"7hx:7gc<","o":"3_","fPt":"(","I":"","ani":"( 0 0.1s 1","brdRV":"( bYpZx ) (!(!7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g/.","rtB":"("}\nlb4vxrwaTtTVK7d2XimUnq {"N":"'+I18N.w.message+'","fill":"h ( wTRu7","xy":"7fXu7g-w","Z":"+","T":"y","r":"((","wh":"7gJ}7gJ}","o":"3_","iLVA":".","fPt":"(","I":"","ani":"( 0 0.1s 1","brdR":"h bYpZx ( (!(","shd":"+ ( ((()8 ((((( ;_2g, ;rw*}","icVB":"0 0 32 32","icP":"<path d=\\"M4.874 25.576l3.491-1.127 0.685 0.397c2.036 1.18 4.434 1.821 6.95 1.821 6.922 0 12.444-4.832 12.444-10.667s-5.523-10.667-12.444-10.667-12.444 4.832-12.444 10.667c0 2.059 0.683 4.033 1.958 5.739l0.603 0.807-1.242 3.031zM16 28.444c-2.898 0-5.593-0.758-7.841-2.061l-4.559 1.472c-0.082 0.027-0.176 0.043-0.273 0.043-0.122 0-0.237-0.024-0.343-0.069l0.006 0.002c-0.454-0.186-0.672-0.705-0.486-1.16l1.586-3.87c-1.462-1.955-2.311-4.292-2.311-6.803 0-6.873 6.367-12.444 14.222-12.444s14.222 5.572 14.222 12.444c0 6.873-6.367 12.444-14.222 12.444z\\"></path><path d=\\"M17.778 16c0 0.982-0.796 1.778-1.778 1.778s-1.778-0.796-1.778-1.778c0-0.982 0.796-1.778 1.778-1.778s1.778 0.796 1.778 1.778z\\"></path><path d=\\"M10.667 16c0 0.982-0.796 1.778-1.778 1.778s-1.778-0.796-1.778-1.778c0-0.982 0.796-1.778 1.778-1.778s1.778 0.796 1.778 1.778z\\"></path><path d=\\"M24.889 16c0 0.982-0.796 1.778-1.778 1.778s-1.778-0.796-1.778-1.778c0-0.982 0.796-1.778 1.778-1.778s1.778 0.796 1.778 1.778z\\"></path>","icNCS":["ze-chat-o","rgba(16,16,16,1)","@"],"icSA":[0,0]}\nwwTOkvpiTtTVK7dic22ooG * {"N":"'+I18N.w.bubble+'","T":"P","Z":"3","xy":"7h(47hYX","r":"((","wh":"7g/.7g/.","o":"3_","iLVA":"*","fPt":"(","I":"","iASC":"+"}\nlb4vimfnTtTVK7dlJwzTev {"fill":"h ( ?e~4[","T":"M","N":"'+I18N.w.wRichText+'","Z":"2","xy":"7g/.7g1}","r":"((","wh":"7hx:7i1R","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 0.1s 1","brdRV":"( bYpZx ) (!2!7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g/.","rtB":"("}\nlb4vjlm6TtTVK7dGOai1fU {"N":"'+I18N.w.triangleb+'","T":"h","Z":"3","xy":"7gd}7f.N","r":"((","wh":"7g9V7g6,","o":"3_","iLVA":"*","fPt":"(","I":"","fill":"h ( ?e~4[","ani":"( 0 0.1s 1"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:02:32.166Z","hotAABB":[833,1700,969,1888],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTVKdZUNWYGJl:{preview:"navigation_menu",meta:{name:I18N.w.navigation_menu,type:"wNavigationMenu",width:256,height:560},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTVKdZUNWYGJl {"!FFV":1,"T":"n","N":"'+I18N.w.navigation_menu+' 1","Z":"N","xy":"7sMs8._}","r":"((","wh":"7jVi7na<","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","brdRV":"h bYpZx ) (!(!7","odNM":"U ( wTRu7 6 <*l0[ P u,aHh 6 <*l0[ P oq=X3 6 .v~[9 )","odNMb":"h bYpZx ) (","odNMs":") ( ((()8 ((((( ;_2g, ;rw*} (((((","od":[[["'+I18N.Widget.nav1+'","","-",["<path d=\\"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 0 0-44.4 0L77.5 505a63.9 63.9 0 0 0-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0 0 18.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z\\"></path>","64 64 896 896"]],[[["'+I18N.Widget.navItem1+'","","/",""],[]],[["'+I18N.Widget.navItem2+'","","-",""],[]],[["'+I18N.Widget.navItem3+'","","-",""],[]]]],[["'+I18N.Widget.nav2+'","","-",["<path d=\\"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0 0 68.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z\\"></path>","64 64 896 896"]],[]],[["'+I18N.Widget.nav3+'","","-",["<path d=\\"M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z\\"></path>","64 64 896 896"]],[]]],"rm":"*"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:02:32.167Z","hotAABB":[786,1980,1042,2540],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTVL8ogc4IFRO:{preview:"navigation_menu_v",meta:{name:I18N.w.navigation_menu_v,type:"wNavigationMenu",width:256,height:560},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTVL8ogc4IFRO {"!FFV":1,"T":"n","N":"'+I18N.w.navigation_menu_v+' 1","Z":"O","xy":"7sn>87BD","r":"((","wh":"7jVi7na<","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","brdRV":"h bYpZx ) (!(!7","odNM":"U ) wTRu7 6 <*l0[ P u,aHh 6 <*l0[ P oq=X3 6 .v~[9 )","odNMb":"h bYpZx ) (","odNMs":") ( ((()8 ((((( ;_2g, ;rw*} (((((","od":[[["'+I18N.Widget.nav1+'","","-",["<path d=\\"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 0 0-44.4 0L77.5 505a63.9 63.9 0 0 0-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0 0 18.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z\\"></path>","64 64 896 896"]],[[["'+I18N.Widget.navItem1+'","","/",""],[]],[["'+I18N.Widget.navItem2+'","","-",""],[]],[["'+I18N.Widget.navItem3+'","","-",""],[]]]],[["'+I18N.Widget.nav2+'","","-",["<path d=\\"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0 0 68.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z\\"></path>","64 64 896 896"]],[]],[["'+I18N.Widget.nav3+'","","-",["<path d=\\"M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z\\"></path>","64 64 896 896"]],[]]],"rm":"*"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:02:32.168Z","hotAABB":[813,2621,1069,3181],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTVLvB2MuPXDp:{preview:"navigation_menu_h",meta:{name:I18N.w.navigation_menu_h,type:"wNavigationMenu",width:446,height:48},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTVLvB2MuPXDp {"!FFV":1,"N":"'+I18N.w.navigation_menu_h+' 1","Z":"`","T":"n","xy":"7s=Z7li@","r":"((","wh":"7m1c7ggu","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","brdRV":"h bYpZx ) (!(!7","odNM":"U * wTRu7 6 <*l0[ P u,aHh 6 <*l0[ P oq=X3 6 .v~[9 )","odNMb":"h bYpZx ) (","odNMs":") ( ((()8 ((((( ;_2g, ;rw*} (((((","od":[[["'+I18N.Widget.nav1+'","","-",["<path d=\\"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 0 0-44.4 0L77.5 505a63.9 63.9 0 0 0-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0 0 18.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z\\"></path>","64 64 896 896"]],[[["'+I18N.Widget.navItem1+'","","/",""],[]],[["'+I18N.Widget.navItem2+'","","-",""],[]],[["'+I18N.Widget.navItem3+'","","-",""],[]]]],[["'+I18N.Widget.nav2+'","","-",["<path d=\\"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0 0 68.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z\\"></path>","64 64 896 896"]],[]],[["'+I18N.Widget.nav3+'","","-",["<path d=\\"M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z\\"></path>","64 64 896 896"]],[]]],"rm":"*"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-02-05T03:39:34.619Z","hotAABB":[677,395,1123,443],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTVMLlFqQpSXt:{preview:"mobile_tab_bars",meta:{name:I18N.w.wMobileTabBars,type:"wMobileTabBars",width:375,height:50},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTVMLlFqQpSXt {"!FFV":1,"T":"r","N":"'+I18N.w.wMobileTabBars+' 1","Z":"Q","xy":"7sNN8?Y{","r":"((","wh":"7l527gj:","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","fill":"h ( wTRu7","brdRV":"h bYpZx ) (!(!7","odMTB":"7 6 6 GJ~|r .v~[9 .v~[9 GJ~|r","od":[[["'+I18N.Widget.tab1+'","","*",["<path d=\\"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 0 0-44.4 0L77.5 505a63.9 63.9 0 0 0-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0 0 18.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z\\"></path>","64 64 896 896"]],[]],[["'+I18N.Widget.tab2+'","","(",["<path d=\\"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0 0 68.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z\\"></path>","64 64 896 896"]],[]],[["'+I18N.Widget.tab3+'","","(",["<path d=\\"M854.6 289.1a362.49 362.49 0 0 0-79.9-115.7 370.83 370.83 0 0 0-118.2-77.8C610.7 76.6 562.1 67 512 67c-50.1 0-98.7 9.6-144.5 28.5-44.3 18.3-84 44.5-118.2 77.8A363.6 363.6 0 0 0 169.4 289c-19.5 45-29.4 92.8-29.4 142 0 70.6 16.9 140.9 50.1 208.7 26.7 54.5 64 107.6 111 158.1 80.3 86.2 164.5 138.9 188.4 153a43.9 43.9 0 0 0 22.4 6.1c7.8 0 15.5-2 22.4-6.1 23.9-14.1 108.1-66.8 188.4-153 47-50.4 84.3-103.6 111-158.1C867.1 572 884 501.8 884 431.1c0-49.2-9.9-97-29.4-142zM512 880.2c-65.9-41.9-300-207.8-300-449.1 0-77.9 31.1-151.1 87.6-206.3C356.3 169.5 431.7 139 512 139s155.7 30.5 212.4 85.9C780.9 280 812 353.2 812 431.1c0 241.3-234.1 407.2-300 449.1zm0-617.2c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 0 1 512 551c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 0 1 400 439c0-29.9 11.7-58 32.8-79.2C454 338.6 482.1 327 512 327c29.9 0 58 11.6 79.2 32.8C612.4 381 624 409.1 624 439c0 29.9-11.6 58-32.8 79.2z\\"></path>","64 64 896 896"]],[]],[["'+I18N.Widget.tab4+'","","(",["<path d=\\"M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z\\"></path>","64 64 896 896"]],[]]]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:02:32.171Z","hotAABB":[727,3488,1102,3538],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTVMqx9iR0R5D:{preview:"segmented_control",meta:{name:I18N.w.wSegmentedControl,type:"wSegmentedControl",width:280,height:32},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTVMqx9iR0R5D {"!FFV":1,"T":"o","N":"'+I18N.w.wSegmentedControl+' 1","Z":"R","xy":"7t/c8BE6","r":"((","wh":"7jsa7gT@","o":"3_","iLVA":"*","fPt":"(","I":"","fill":"h ( wTRu7","ani":"( 0 1s 1","brdRV":"h .v~[9 ) (!,!7","odSGC":"+ wTRu7 .v~[9 .v~[9 6 wTRu7 6","od":[[["'+I18N.Widget.option1+'","","+",""],[]],[["'+I18N.Widget.option2+'","",")",""],[]],[["'+I18N.Widget.option3+'","",")",""],[]]]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:02:32.171Z","hotAABB":[822,3701,1102,3733],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTVNBcbIennx:{preview:"collapse",meta:{name:I18N.w.wCollapse,type:"wCollapse",width:320,height:212},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTVNBcbIennx {"!FFV":1,"xy":"7ru88E<(","T":"m","N":"'+I18N.w.wCollapse+' 1","Z":"S","r":"((","wh":"7kK67izZ","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","brdRV":"h bYpZx ) (!*!7","ttv0P":"wTRu7 ( ( ) ) 6 < (","ttv0S":"","odCL":". ( wTRu7 <*l0[ 6 wTRu7 <*l0[ ((((6","od":[[["'+I18N.Widget.title1+'","","-",""],[[["'+I18N.Widget.content1+'","","(",""],[]]]],[["'+I18N.Widget.title2+'","",")",""],[[["'+I18N.Widget.content1+'","","(",""],[]]]],[["'+I18N.Widget.title3+'","",")",""],[[["'+I18N.Widget.content1+'","","(",""],[]]]]]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:02:32.173Z","hotAABB":[713,3825,1033,4037],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTVO2WuWGtO7a:{preview:"tabs",meta:{name:I18N.w.wTabs,type:"wTabs",width:240,height:32},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTVO2WuWGtO7a {"!FFV":1,"T":"p","N":"'+I18N.w.wTabs+' 1","Z":"T","xy":"7s>i8GrZ","r":"((","wh":"7jD47gT@","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":"wTRu7 ( ( ) ) 6 < (","ttv0S":"","ani":"( 0 1s 1","brdRV":"h bYpZx ) (!(!7","odT":"6 <*l0[ 6 .v~[9 ( ( (","odTb":"h .v~[9 * (","od":[[["'+I18N.Widget.tab1+'","","*",""],[]],[["'+I18N.Widget.tab2+'","","(",""],[]],[["'+I18N.Widget.tab3+'","","(",""],[]]]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:02:32.174Z","hotAABB":[781,4109,1021,4141],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTVOdXCG999rR:{preview:"pagination_mobile",meta:{name:I18N.w.wPaginationMobile,type:"wPaginationMobile",width:232,height:32},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTVOdXCG999rR {"!FFV":1,"T":"k","N":"'+I18N.w.wPaginationMobile+' 1","Z":"U","xy":"7ru88IKB","r":"((","wh":"7j:q7gT@","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":"wTRu7 ( ( ) ) 6 < (","ttv0S":"","fill":"h ( wTRu7","ani":"( 0 1s 1","brdRV":"h bYpZx ) (!*!7","pagM":"- 6 .v~[9 <*l0[ ((((6 *"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:02:32.174Z","hotAABB":[757,4224,989,4256],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTVP4fRDRkZug:{preview:"pagination_web",meta:{name:I18N.w.wPaginationWeb,type:"wPaginationWeb",width:232,height:32},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTVP4fRDRkZug {"!FFV":1,"T":"j","N":"'+I18N.w.wPaginationWeb+' 1","Z":"V","xy":"7rTm8K/R","r":"((","wh":"7j:q7gT@","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":"wTRu7 ( ( ) ) 6 < (","ttv0S":"","fill":"h ( wTRu7","ani":"( 0 1s 1","brdRV":"h bYpZx ) (!*!7","pagW":"- wTRu7 h 6 .v~[9 <*l0[ ((((6 *","pagWb":"h .v~[9 ) ("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:02:32.174Z","hotAABB":[730,4348,962,4380],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWeOPmqcisnP:{preview:"bar_chart",meta:{name:I18N.w.bar_chart,type:"wChart",width:360,height:300},data:'\'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWeOPmUJuPgqQ4v2yvqT {"chtP":"( ( ) , o ( ( e ), pMNcl .v~[9 ( + 5Tm 1]wvb 4 ,xd+r Z","N":"'+I18N.w.bar_chart+'","Z":"X","so":"","ttv0P":",xd+r ( ( ) ) 4 < ( ( + (!(!(!(","ttv0F":"PingFangSC","chtAX":"h 4 ,xd+r (","chtD":[["'+I18N.Widget.jan+'","'+I18N.Widget.feb+'","'+I18N.Widget.mar+'","'+I18N.Widget.apr+'","'+I18N.Widget.may+'"],[],[["'+I18N.Widget.data1+'",["100","140","230","100","130"],"","","",""],["'+I18N.Widget.data2+'",["150","100","200","140","100"],"","","",""]],"6 wTRu7"],"chtH":"pMNcl wTRu7 ) ,xd+r 4","chtT":"pMNcl wTRu7 ) ,xd+r 4","chtL":"( 4 ,xd+r","chtLT":"","chtLN":"","T":"t","xy":"7i[F7Vca","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0S":"","ani":"( 0 1s 1","chtSF":"","chtPF":"","chtB":"h bYpZx ) ("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-07-29T09:59:56.426Z","hotAABB":[6,-1289,366,-989],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWel7wW2HUxE:{preview:"horizontal_bar_chart",meta:{name:I18N.w.horizontal_bar_chart2,type:"wChart",width:360,height:300},data:'\'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWel7wUJuQJyN2PMk8ux {"chtP":") ( ) , o ( ( e ), pMNcl .v~[9 ( + 5Tm 1]wvb 4 ,xd+r Z","N":"'+I18N.w.horizontal_bar_chart2+'","Z":"[","so":"","ttv0P":",xd+r ( ( ) ) 4 < ( ( + (!(!(!(","ttv0F":"PingFangSC","chtAX":"h 4 ,xd+r (","chtD":[["'+I18N.Widget.jan+'","'+I18N.Widget.feb+'","'+I18N.Widget.mar+'","'+I18N.Widget.apr+'","'+I18N.Widget.may+'"],[],[["'+I18N.Widget.data1+'",["100","140","230","100","130"],"","","",""],["'+I18N.Widget.data2+'",["150","100","200","140","100"],"","","",""]],"6 wTRu7"],"chtH":"pMNcl wTRu7 ) ,xd+r 4","chtT":"pMNcl wTRu7 ) ,xd+r 4","chtL":"( 4 ,xd+r","chtLT":"","chtLN":"","T":"t","xy":"7n(L7Ym0","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0S":"","ani":"( 0 1s 1","chtSF":"","chtPF":"","chtB":"h bYpZx ) ("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-07-29T10:02:27.796Z","hotAABB":[332,-1059,692,-759],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWfCFq1eoQ9w:{preview:"line_chart",meta:{name:I18N.w.line_chart,type:"wChart",width:360,height:300},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWfCFq1eoQ9w {"T":"t","N":"'+I18N.w.line_chart+'","Z":"Y","xy":"7h+_8[Ha","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtP":"* ( ) , o ( ( e ), pMNcl .v~[9 ( + ","chtSF":"","chtPF":"","chtB":"h bYpZx ) (","chtD":[["'+I18N.Widget.jan+'","'+I18N.Widget.feb+'","'+I18N.Widget.mar+'","'+I18N.Widget.apr+'","'+I18N.Widget.may+'"],[],[["'+I18N.Widget.data1+'",["100","140","230","100","130"],""],["'+I18N.Widget.data2+'",["150","100","200","140","100"],""]],"6 wTRu7"]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:07:40.968Z","hotAABB":[-109,5419,251,5719],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWfWul8AGMEc:{preview:"line_area_chart",meta:{name:I18N.w.line_area_chart,type:"wChart",width:360,height:300},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWfWul8AGMEc {"T":"t","N":"'+I18N.w.line_area_chart+'","Z":"Z","xy":"7gV]8acP","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtP":"+ ( ) , o ( ( e ), pMNcl .v~[9 ( + ","chtSF":"","chtPF":"","chtB":"h bYpZx ) (","chtD":[["'+I18N.Widget.jan+'","'+I18N.Widget.feb+'","'+I18N.Widget.mar+'","'+I18N.Widget.apr+'","'+I18N.Widget.may+'"],[],[["'+I18N.Widget.data1+'",["100","140","230","100","130"],""],["'+I18N.Widget.data2+'",["150","100","200","140","100"],""]],"6 wTRu7"]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:07:40.968Z","hotAABB":[-146,5811,214,6111],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWfrVJJuk07W:{preview:"mixed_bar_line_chart",meta:{name:I18N.w.mixed_bar_line_chart,type:"wChart",width:360,height:300},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWfrVJUJuQUGbyBKlYWV {"chtP":"0 ( ) , o ( ( e ), pMNcl .v~[9 ( + 5Tm 1]wvb 4 ,xd+r Z","N":"\u7EC4\u5408\u56FE 2","Z":"]","chtD":[["'+I18N.Widget.jan+'","'+I18N.Widget.feb+'","'+I18N.Widget.mar+'","'+I18N.Widget.apr+'","'+I18N.Widget.may+'"],[],[["'+I18N.Widget.data1+'",["100","140","230","100","130"],"","","","("],["'+I18N.Widget.data2+'",["150","100","200","140","100"],"","","",")"]],"6 wTRu7"],"so":"","ttv0P":",xd+r ( ( ) ) 4 < ( ( + (!(!(!(","ttv0F":"PingFangSC","chtAX":"h 4 ,xd+r (","chtH":"pMNcl wTRu7 ) ,xd+r 4","chtT":"pMNcl wTRu7 ) ,xd+r 4","chtL":"( 4 ,xd+r","chtLT":"","chtLN":"","T":"t","xy":"7rt*7l.4","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0S":"","ani":"( 0 1s 1","chtSF":"","chtPF":"","chtB":"h bYpZx ) ("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-07-29T10:03:10.506Z","hotAABB":[692,219,1052,519],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWgHsD6EmAYA:{preview:"pie_chart",meta:{name:I18N.w.pie_chart,type:"wChart",width:360,height:300},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWgHsD6EmAYA {"T":"t","N":"'+I18N.w.pie_chart+'","Z":"]","xy":"7e]D8l(q","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtP":", ( ) , o ( ( e ), pMNcl .v~[9 ( + ","chtSF":"","chtPF":"","chtB":"h bYpZx ) (","chtD":[["'+I18N.Widget.jan+'","'+I18N.Widget.feb+'","'+I18N.Widget.mar+'","'+I18N.Widget.apr+'","'+I18N.Widget.may+'"],[],[["'+I18N.Widget.data1+'",["100","140","230","100","130"],""],["'+I18N.Widget.data2+'",["150","100","200","140","100"],""]],"6 wTRu7"]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:07:40.969Z","hotAABB":[-289,6575,71,6875],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWgk9hDScIoD:{preview:"ring_chart",meta:{name:I18N.w.ring_chart,type:"wChart",width:360,height:300},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWgk9hDScIoD {"T":"t","N":"'+I18N.w.ring_chart+'","Z":"^","xy":"7fy@8r2L","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtP":"- ( ) , o ( ( e ), pMNcl .v~[9 ( + ","chtSF":"","chtPF":"","chtB":"h bYpZx ) (","chtD":[["'+I18N.Widget.jan+'","'+I18N.Widget.feb+'","'+I18N.Widget.mar+'","'+I18N.Widget.apr+'","'+I18N.Widget.may+'"],[],[["'+I18N.Widget.data1+'",["100","140","230","100","130"],""],["'+I18N.Widget.data2+'",["150","100","200","140","100"],""]],"6 wTRu7"]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:07:40.969Z","hotAABB":[-191,7027,169,7327],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWhAVnCqoxVg:{preview:"progress_chart",meta:{name:I18N.w.progress_chart,type:"wChart",width:360,height:300},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWhAVnCqoxVg {"T":"t","N":"'+I18N.w.progress_chart+'","Z":"_","xy":"7gV]8wL<","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtP":". ( ) , o ( ( e ), pMNcl .v~[9 ( + ","chtSF":"","chtPF":"","chtB":"h bYpZx ) (","chtD":[["'+I18N.Widget.jan+'","'+I18N.Widget.feb+'","'+I18N.Widget.mar+'","'+I18N.Widget.apr+'","'+I18N.Widget.may+'"],[],[["'+I18N.Widget.data1+'",["100","140","230","100","130"],""],["'+I18N.Widget.data2+'",["150","100","200","140","100"],""]],"6 wTRu7"]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:07:40.969Z","hotAABB":[-146,7419,214,7719],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWhURSssw9ki:{preview:"radar_chart",meta:{name:I18N.w.radar_chart,type:"wChart",width:360,height:300},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWhURSssw9ki {"T":"t","N":"'+I18N.w.radar_chart+'","Z":"`","xy":"7fy@8}Uo","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtP":"/ ( ) , o ( ( e ), pMNcl .v~[9 ( + ","chtSF":"","chtPF":"","chtB":"h bYpZx ) (","chtD":[["'+I18N.Widget.jan+'","'+I18N.Widget.feb+'","'+I18N.Widget.mar+'","'+I18N.Widget.apr+'","'+I18N.Widget.may+'"],[],[["'+I18N.Widget.data1+'",["100","140","230","100","130"],""],["'+I18N.Widget.data2+'",["150","100","200","140","100"],""]],"6 wTRu7"]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:07:40.969Z","hotAABB":[-191,7871,169,8171],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U112FanAvTVF9D:{preview:"waterfall_chart",meta:{name:I18N.w.waterfall_chart,type:"wChart",width:360,height:300},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU112FanAUJuXtqJgWJ17H7 {"chtP":"1 ( ) , o ( ( e ), pMNcl .v~[9 ( / 5Tm 1]wvb 4 ,xd+r Z","N":"\u7011\u5E03\u56FE 4","Z":"i","so":"","ttv0P":",xd+r ( ( ) ) 4 < ( ( + (!(!(!(","ttv0F":"PingFangSC","chtAX":"h 4 ,xd+r (","chtD":[["'+I18N.Widget.jan+'","'+I18N.Widget.feb+'","'+I18N.Widget.mar+'","'+I18N.Widget.apr+'","'+I18N.Widget.may+'"],[],[["'+I18N.Widget.added_value+'",["600","300","-500","200","-100"],"@e5qC","","",""],["'+I18N.Widget.decreased_add+'",[],"H2W=M","","",""]],"6 wTRu7"],"chtH":"pMNcl wTRu7 ) ,xd+r 4","chtT":"pMNcl wTRu7 ) ,xd+r 4","chtL":"( 4 ,xd+r","chtLT":"","chtLN":"","xy":"7qx_7F^>","T":"t","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0S":"","ani":"( 0 1s 1","chtSF":"","chtPF":"","chtB":"h bYpZx ) ("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-07-29T10:32:30.768Z","hotAABB":[622,-2477,982,-2177],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U4sweo7BYbHNop:{preview:"scatter_chart",meta:{name:"\u6563\u70B9\u56FE",type:"wChart",width:360,height:300},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU4sweo7BYbHNop {"T":"t","N":"\u6563\u70B9\u56FE","Z":"1","xy":"7iTH7i_q","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtP":"2 ( ) , o ( ( e ), pMNcl .v~[9 ( / 5Tm 1]wvb 4 ,xd+r 7 ( H 4 e Z","chtSF":"","chtPF":"","chtB":"h bYpZx ) (","chtAX":"h 4 ,xd+r (","chtD":[["X","Y"],[],[["\u7C7B\u522B1",[1,3],"","",""],["\u7C7B\u522B1",[3,4],"","",""],["\u7C7B\u522B1",[5,7],"","",""],["\u7C7B\u522B2",[2,4],"","",""],["\u7C7B\u522B2",[4,5],"","",""],["\u7C7B\u522B2",[6,3],"","",""]],"6 wTRu7"],"chtH":"pMNcl wTRu7 ) ,xd+r 4","chtT":"pMNcl wTRu7 ) ,xd+r 4","chtL":"h 4 ,xd+r","chtLT":"h 4 ,xd+r","chtLN":"h 4 ,xd+r"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-03-18T01:23:06.149Z","hotAABB":[0,39,360,339],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U113fyFbNJRWiK:{preview:"nightingale_chart",meta:{name:I18N.w.nightingale_chart,type:"wChart",width:360,height:300},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU113fyFbNJRWiK {"chtP":"3 ( ) , < ( ( e ), pMNcl .v~[9 0 / ","Z":"l","N":"'+I18N.w.nightingale_chart+' 2","chtD":[["'+I18N.Widget.jan+'"],[],[["'+I18N.Widget.data1+'",["40"],""],["'+I18N.Widget.data2+'",["32"],""],["'+I18N.Widget.data3+'",["28"],""],["'+I18N.Widget.data4+'",["25"],""],["'+I18N.Widget.data5+'",["18"],""]],"6 wTRu7"],"xy":"7f767ex.","T":"t","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtSF":"","chtPF":"","chtB":"h bYpZx ) ("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-01-17T01:39:32.385Z","hotAABB":[-247,-236,113,64],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U113uufKHEoqFT:{preview:"funnel_chart",meta:{name:I18N.w.funnel_chart,type:"wChart",width:360,height:300},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU113uufKHEoqFT {"chtP":"4 ( ) , o ( ( e ), pMNcl .v~[9 ( / ","Z":"k","chtD":[["'+I18N.Widget.jan+'"],[],[["'+I18N.Widget.data1+'",["100"],""],["'+I18N.Widget.data2+'",["80"],""],["'+I18N.Widget.data3+'",["60"],""],["'+I18N.Widget.data4+'",["40"],""],["'+I18N.Widget.data5+'",["20"],""]],"6 wTRu7"],"xy":"7dBe7esL","T":"t","N":"'+I18N.w.funnel_chart+'","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtSF":"","chtPF":"","chtB":"h bYpZx ) ("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-01-17T01:41:07.311Z","hotAABB":[-385,-240,-25,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U1148gCZR4ygZq:{preview:"gauge_chart",meta:{name:I18N.w.gauge_chart,type:"wChart",width:360,height:300},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU1148gCZR4ygZq {"chtP":"5 ( ) , o ( ( e ), pMNcl .v~[9 ( / ( )6 ","chtSF":"","Z":"m","xy":"7opJ7kVm","T":"t","N":"'+I18N.w.gauge_chart+'","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtPF":"","chtB":"h bYpZx ) (","chtD":[["'+I18N.Widget.jan+'","'+I18N.Widget.feb+'","'+I18N.Widget.mar+'","'+I18N.Widget.apr+'","'+I18N.Widget.may+'"],[],[["'+I18N.Widget.data1+'",["100","140","230","100","130"],""],["'+I18N.Widget.data2+'",["150","100","200","140","100"],""]],"6 wTRu7"]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-01-16T09:21:09.437Z","hotAABB":[467,180,827,480],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U114OrAt1MlRVf:{preview:"liquid_fill_gauge_chart",meta:{name:I18N.w.liquid_fill_gauge_chart,type:"wChart",width:360,height:300},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU114OrAt1MlRVf {"chtP":"6 ( ) , o ( ( e ), pMNcl .v~[9 ( . ","N":"'+I18N.w.liquid_fill_gauge_chart+' 1","Z":"r","ttv0P":",xd+r ( ( ) ) D < (","chtD":[["'+I18N.Widget.jan+'"],[],[["'+I18N.Widget.data1+'",["0.6"],""],["'+I18N.Widget.data2+'",["0.4"],""],["'+I18N.Widget.data3+'",["0.2"],""]],"6 wTRu7"],"xy":"7jOk7gme","T":"t","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0S":"","ani":"( 0 1s 1","chtSF":"","chtPF":"","chtB":"h bYpZx ) ("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-01-25T02:27:03.644Z","hotAABB":[70,-97,430,203],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U2NQ5ozyHumOF:{preview:"map_chart",meta:{name:I18N.w.map_chart,type:"wChart",width:800,height:616},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU2NQ5ozyHumOF {"xy":"7lR87k=:","wh":"7qvB7oKF","Z":"5","chtT":"wTRu7 wTRu7 ) GJ~|r 6","Z":"6","chtH":"=F@k| ,xd+r ) ,xd+r 2","chtP":"7 ( ) , o ( ( e ), pMNcl .v~[9 ( + 5Tm 1]wvb","N":"'+I18N.w.map_chart+'","ttv0P":",xd+r ( ( ) ) 2 < (","T":"t","r":"((","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0S":"","ani":"( 0 1s 1","chtSF":"","chtPF":"","chtB":"h ;ei.S ) (","Z":"7","chtD":[["'+I18N.Widget.data1+'","'+I18N.Widget.data2+'"],[],[["d1",["130","150"],"u|sdf"],["d2",["100","170"],"wQB/n"],["d3",["130","110"],"kpR_S"],["d4",["150","160"],"ks5e["],["d5",["180","100"],"wQv[9"],["d6",["140","190"],"wO;9~"],["d7",["100","180"],"m{.Dx"],["d8",["150","110"],"agIL["],["d9",["110","100"],"m~E/A"],["d10",["110","170"],"iJ*9z"],["d11",["190","170"],"u|sdf"],["d12",["150","170"],"wQB/n"],["d13",["150","180"],"kpR_S"],["d14",["140","120"],"ks5e["],["d15",["160","170"],"wQv[9"],["d16",["180","160"],"wO;9~"],["d17",["180","140"],"m{.Dx"],["d18",["170","140"],"agIL["],["d19",["190","100"],"m~E/A"],["d20",["160","190"],"iJ*9z"],["d21",["150","120"],"u|sdf"],["d22",["160","100"],"wQB/n"],["d23",["150","130"],"kpR_S"],["d24",["140","190"],"ks5e["],["d25",["160","140"],"wQv[9"],["d26",["170","150"],"wO;9~"],["d27",["180","150"],"m{.Dx"],["d28",["190","150"],"agIL["],["d29",["110","140"],"m~E/A"],["d30",["170","160"],"iJ*9z"],["d31",["160","130"],"u|sdf"],["d32",["180","120"],"wQB/n"],["d33",["150","110"],"kpR_S"],["d34",["190","170"],"ks5e["],["d35",["100","100"],"wQv[9"],["d36",["140","140"],"wO;9~"],["d37",["150","130"],"m{.Dx"],["d38",["100","150"],"agIL["]],"6 wTRu7"]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-01-30T05:41:56.231Z","hotAABB":[0,0,800,616],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U507Ub07zHbTJ:{preview:"bubble_chart",meta:{name:"\u6C14\u6CE1\u56FE",type:"wChart",width:360,height:300},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU507Ub07zHbTJ {"T":"t","N":"\u6C14\u6CE1\u56FE","Z":"1","xy":"7ig}7j.,","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtP":"8 ( ) , o ( ( e ), pMNcl .v~[9 ( / 5Tm 1]wvb 4 ,xd+r < 2 L 4 e Z","chtSF":"","chtPF":"","chtB":"h bYpZx ) (","chtAX":"h 4 ,xd+r (","chtD":[["X","Y","\u6570\u503C"],[],[["\u7C7B\u522B1",[1,3,4],"","",""],["\u7C7B\u522B1",[3,4,2],"","",""],["\u7C7B\u522B1",[5,7,5],"","",""],["\u7C7B\u522B2",[2,4,3],"","",""],["\u7C7B\u522B2",[4,5,6],"","",""],["\u7C7B\u522B2",[6,3,4],"","",""]],"6 wTRu7"],"chtH":"pMNcl wTRu7 ) ,xd+r 4","chtT":"pMNcl wTRu7 ) ,xd+r 4","chtL":"h 4 ,xd+r","chtLT":"h 4 ,xd+r","chtLN":"h 4 ,xd+r"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-03-18T01:24:41.390Z","hotAABB":[16,71,376,371],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U509Kv0xZkvFgv:{preview:"radial_polar_chart",meta:{name:"\u7389\u73A6\u56FE",type:"wChart",width:360,height:300},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU509Kv0xZkvFgv {"T":"t","N":"\u7389\u73A6\u56FE","Z":"1","xy":"7i{i7iq@","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtP":"9 ( ) , o ( ( e ), pMNcl .v~[9 ( / 5Tm 1]wvb 4 ,xd+r < ( H 4 e Z","chtSF":"","chtPF":"","chtB":"h bYpZx ) (","chtAX":"h 4 ,xd+r (","chtD":[["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708"],[],[["\u6570\u636E1",[100,140,100,222,160],"","",""],["\u6570\u636E2",[140,100,140,190,140],"","",""]],"6 wTRu7"],"chtH":"pMNcl wTRu7 ) ,xd+r 4","chtT":"pMNcl wTRu7 ) ,xd+r 4","chtL":"( 4 ,xd+r","chtLT":"h 4 ,xd+r","chtLN":"h 4 ,xd+r"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-03-18T01:25:58.910Z","hotAABB":[33,54,393,354],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U50AIEeIuu8IWE:{preview:"sunburst_chart",meta:{name:"\u65ED\u65E5\u56FE",type:"wChart",width:360,height:300},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU50AIEeIuu8IWE {"T":"t","N":"\u65ED\u65E5\u56FE","Z":"-","xy":"7i7B7ijB","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtP":": ( ) ( o ( ( e ), pMNcl .v~[9 ( / 5Tm 1]wvb 4 ,xd+r < ( H 4 e Z","chtSF":"","chtPF":"","chtB":"h bYpZx ) (","chtAX":"h 4 ,xd+r (","chtD":[["\u5B63\u5EA6","\u6708\u4EFD","\u5468","\u6570\u503C"],[],[["1",["1","1\u6708","\u7B2C1\u5468",3],"","",""],["1",["1","1\u6708","\u7B2C2\u5468",2],"","",""],["1",["1","2\u6708","",1],"","",""],["1",["1","2\u6708","",4],"","",""],["1",["1","3\u6708","\u7B2C\u4E00\u5468",6],"","",""],["2",["2","4\u6708","\u7B2C1\u5468",4],"","",""],["2",["2","4\u6708","\u7B2C2\u5468",2],"","",""],["2",["2","5\u6708","",4],"","",""],["2",["2","6\u6708","\u7B2C1\u5468",2],"","",""],["2",["2","6\u6708","",2],"","",""]],"6 wTRu7"],"chtH":"pMNcl wTRu7 ) ,xd+r 4","chtT":"pMNcl wTRu7 ) ,xd+r 4","chtL":"h 4 ,xd+r","chtLT":"h 4 ,xd+r","chtLN":"( 4 ,xd+r"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-03-18T01:27:19.654Z","hotAABB":[-25,48,335,348],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U50AqngLUEseDG:{preview:"boxplot_chart",meta:{name:"\u7BB1\u578B\u56FE",type:"wChart",width:360,height:300},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU50AqngLUEseDG {"T":"t","N":"\u7BB1\u578B\u56FE","Z":"/","xy":"7e,a7itk","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtP":"= ( ) , o ( ( e ), pMNcl .v~[9 ( / 5Tm 1]wvb 4 ,xd+r < ( H 4 e <","chtSF":"","chtPF":"","chtB":"h bYpZx ) (","chtAX":"h 4 ,xd+r (","chtD":[["\u4E0B\u8FB9\u7F18","\u4E0A\u56DB\u5206\u4F4D\u6570","\u4E2D\u4F4D\u6570","\u4E0B\u56DB\u5206\u4F4D\u6570","\u4E0A\u8FB9\u7F18"],[],[["\u6570\u636E1",[100,140,180,80,130],"g;hSr","",""],["\u6570\u636E2",[240,160,180,140,60],"g;hSr","",""]],"6 wTRu7"],"chtH":"pMNcl wTRu7 ) ,xd+r 4","chtT":"pMNcl wTRu7 ) ,xd+r 4","chtL":"h 4 ,xd+r","chtLT":"h 4 ,xd+r","chtLN":"h 4 ,xd+r"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-03-18T01:29:55.364Z","hotAABB":[-330,57,30,357],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U50AwlCkzU0gYu:{preview:"sankey_chart",meta:{name:"\u6851\u57FA\u56FE",type:"wChart",width:360,height:300},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU50AwlCkzU0gYu {"T":"t","N":"\u6851\u57FA\u56FE","Z":"-","xy":"7fNL7dsH","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtP":"< ( ) , o ( ( e ), pMNcl .v~[9 ( / 5Tm 1]wvb 4 ,xd+r < ( H 4 e Z","chtSF":"","chtPF":"","chtB":"h bYpZx ) (","chtAX":"h 4 ,xd+r (","chtD":[["\u6765\u6E90","\u76EE\u6807","\u6570\u503C"],[],[["",["a","a1",2],"","",""],["",["a","a2",2],"","",""],["",["b","b1",3],"","",""],["",["a","b1",3],"","",""],["",["b1","a1",2],"","",""],["",["b1","c",2],"","",""]],"6 wTRu7"],"chtH":"pMNcl wTRu7 ) ,xd+r 4","chtT":"pMNcl wTRu7 ) ,xd+r 4","chtL":"h 4 ,xd+r","chtLT":"h 4 ,xd+r","chtLN":"( 4 ,xd+r"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-03-18T01:32:24.682Z","hotAABB":[-227,-314,133,-14],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U50B5Zm1LHtlga:{preview:"word_cloud_chart",meta:{name:"\u8BCD\u4E91",type:"wChart",width:360,height:300},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU50B5Zm1LHtlga {"T":"t","N":"\u8BCD\u4E91","Z":"-","xy":"7f6(7f4q","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtP":"; ( ) , o ( ( e ), pMNcl .v~[9 ( + 5Tm 1]wvb 4 ,xd+r < ( H 4 e Z","chtSF":"","chtPF":"","chtB":"h bYpZx ) (","chtAX":"h 4 ,xd+r (","chtD":[["\u8BCD","\u6570\u503C"],[],[["Welcome",[30],"","","("],["Word",[20],"","","("],["Cloud",[15],"","","("],["Happy",[10],"","","),"],["Lucky",[10],"","","),"],["Smile",[5],"","","),"]],"6 wTRu7"],"chtH":"pMNcl wTRu7 ) ,xd+r 4","chtT":"pMNcl wTRu7 ) ,xd+r 4","chtL":"h 4 ,xd+r","chtLT":"h 4 ,xd+r","chtLN":"h 4 ,xd+r"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-03-18T01:34:56.447Z","hotAABB":[-248,-219,112,81],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWqGpGF2j58X:{preview:"image",meta:{name:I18N.w.wImage,type:"wImage",width:200,height:100},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWqGpGF2j58X {"T":"S","N":"'+I18N.w.wImage+' 2","Z":"a","xy":"7v<X8pk4","r":"((","wh":"7il_7hMF","o":"3_","iLVA":".","fPt":"(","I":"","ani":"( 0 1s 1","fill":"( ( oT(h~","brdR":"( bYpZx ) (!(","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","imgP":"( (( (((((((((((((((((((((((((((( *","imgF":"","imgR":""}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:09:10.700Z","hotAABB":[1021,7027,1221,7127],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWqmEKaaiarz:{preview:"carousel",meta:{name:I18N.w.wCarousel,type:"wCarousel",width:375,height:200},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWqmEKaaiarz {"T":"l","N":"'+I18N.w.wCarousel+' 1","Z":"b","xy":"7v^e8sPe","r":"((","wh":"7l527il_","o":"3_","iLVA":"*","fPt":"(","I":"","crsS":[["","",")"],["","",")"]],"crsP":"-!?>!(!bYpZx!7eS(K!(","brdRo":"("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:09:10.700Z","hotAABB":[962,7177,1337,7377],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWrJ6YLVnfQT:{preview:"webpage",meta:{name:I18N.w.wWebpage,type:"wWebpage",width:320,height:210},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWrJ6YLVnfQT {"T":"u","N":"'+I18N.w.wWebpage+' 1","Z":"c","xy":"7v=g8wGZ","r":"((","wh":"7kK67ix>","o":"3_","iLVA":"*","fPt":"(","I":"","wbp":""}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:09:10.700Z","hotAABB":[962,7460,1282,7670],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWrmruU1KJsD:{preview:"video",meta:{name:I18N.w.wVideo,type:"wVideo",width:320,height:180},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWrmruU1KJsD {"T":"U","N":"'+I18N.w.wVideo+' 1","Z":"d","xy":"7v=g8zbB","r":"((","wh":"7kK67iTH","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","brdRo":"(","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","vidP":"(","vidS":"https://cdn.modao.cc/Default_video.mp4"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:09:10.700Z","hotAABB":[962,7719,1282,7899],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWsKDImZMznw:{preview:"audio",meta:{name:I18N.w.wAudio,type:"wAudio",width:330,height:60},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWsKDImZMznw {"T":"T","N":"'+I18N.w.wAudio+' 1","Z":"e","xy":"7vCV8}Uo","r":"((","wh":"7kVm7guq","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","brdRo":")6","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","audP":"(","audS":"https://cdn.modao.cc/Default_audio.mp3"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:09:10.700Z","hotAABB":[962,7991,1292,8051],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWsl4NuKb29L:{preview:"qrcode",meta:{name:I18N.w.wQRCode,type:"wQRCode",width:120,height:120},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWsl4NuKb29L {"T":"V","N":"'+I18N.w.wQRCode+' 1","Z":"f","xy":"7unF9)H(","r":"((","wh":"7he]7he]","o":"3_","iLVA":".","fPt":"(","I":"","ani":"( 0 1s 1","qrcC":"'+(ENV.IS_WONDER_SHARE?"https://mockitt.wondershare.com":"https://modao.cc")+'","qrcP":"+ wTRu7 (((*|"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:09:10.700Z","hotAABB":[1029,8171,1149,8291],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWtRSAWjtpHu:{preview:"map",meta:{name:I18N.w.wMapView,type:"wMapView",width:375,height:230},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWtRSAWjtpHu {"T":"d","N":"'+I18N.w.wMapView+' 1","Z":"g","xy":"7v)H9,W>","r":"((","wh":"7l527j8T","o":"3_","iLVA":"*","fPt":"(","I":"","mapS":"eTtTWt0WJPbDVIs"}\nB@trash {"T":")","B":"+"}\nB@ext ) {"T":")","B":"-"}\neTtTWt0WJPbDVIs {"T":"+","N":"Map","Z":"(","eD":"/mb-workspace/images/widget/staticmap_zh-CN.png","eT":")"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:09:10.700Z","hotAABB":[917,8351,1292,8581],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWtx6mtGSTqv:{preview:"dialog",meta:{name:I18N.w.wMTooltip,type:"wMTooltip",width:220,height:42},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWtx6mtGSTqv {"!FFV":1,"T":"e","N":"'+I18N.w.wMTooltip+' 1","Z":"h","xy":"7unF9/l6","r":"((","wh":"7j,u7g`w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ( ( 6 < 2","ttv0S":"'+I18N.w.wMTooltip+'","fill":"h ( SVzm+","brdRV":"h bYpZx ) (!-!7","ani":"( 0 1s 1","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","tt":"2 2 )"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:09:10.700Z","hotAABB":[979,8684,1199,8726],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U5lkS3FEPNd1at:{preview:"tree",meta:{name:"\u6811\u5F62\u7EC4\u4EF6",type:"wTree",width:256,height:210},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU612mEnkU7LrBvOzK6pSx2 {"!FFV":1,"od":[[["\u4E00\u7EA7\u9009\u98791","","/","",""],[[["\u4E8C\u7EA7\u9009\u98791","","-","",""],[]],[["\u4E8C\u7EA7\u9009\u98792","","-","",""],[]]]],[["\u4E00\u7EA7\u9009\u98792","","-","",""],[]],[["\u4E00\u7EA7\u9009\u98793","","-","",""],[]]],"Z":"c","tt":"h!(!gn~wh!.v~[9!h!(!P!@","N":"\u6811\u5F62\u7EC4\u4EF6 1","xy":"7ix>7ld_","wh":"7jVi7ix>","ttv0P":"<*l0[ ( ( ) ) 6 < (","tsn":"h!oq=X3!(!PingFangSC!6!(!(!.v~[9!(","T":")7","r":"((","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","brdV":"( bYpZx ) (!7","ttv0S":"","fi":"( ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-03-18T06:23:11.059Z","hotAABB":[82,310,338,520],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYqDqAdDqgrj:{preview:"flow_process",meta:{name:"\u6D41\u7A0B",width:100,height:60,type:"wFlowClosed"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYqDqAdDqgrj {"xy":"7gj:7gQ{","T":")3","N":"\u6D41\u7A0B 1","Z":"-","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":")","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.204Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYqXn9Q7t5eX:{preview:"flow_decision",meta:{name:"\u5224\u5B9A",width:100,height:60,type:"wFlowClosed"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYqXn9Q7t5eX {"xy":"7gj:7gQ{","T":")3","N":"\u5224\u5B9A 1","Z":".","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"*","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYquH4iIv29k:{preview:"flow_startEnd",meta:{name:"\u5F00\u59CB/\u7ED3\u675F",width:100,height:40,type:"wFlowClosed"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYquH4iIv29k {"xy":"7gj:7gFD","T":")3","N":"\u5F00\u59CB/\u7ED3\u675F 1","Z":"/","r":"((","wh":"7hMF7g^Z","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"+","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,40],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYrE8F27zeaQ:{preview:"flow_doc",meta:{name:"\u6587\u6863",width:100,height:74,type:"wFlowClosed"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYrE8F27zeaQ {"xy":"7gj:7gZ0","T":")3","N":"\u6587\u6863 1","Z":"0","r":"((","wh":"7hMF7h/2","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":",","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,74],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYrWZgO0LsX1:{preview:"flow_data",meta:{name:"\u6570\u636E",width:100,height:60,type:"wFlowClosed"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYrWZgO0LsX1 {"xy":"7gj:7gQ{","T":")3","N":"\u6570\u636E 1","Z":"1","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"-","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYrmAmMyPxFm:{preview:"flow_subProcess",meta:{name:"\u5B50\u6D41\u7A0B",width:100,height:60,type:"wFlowClosed"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYrmAmMyPxFm {"xy":"7gj:7gQ{","T":")3","N":"\u5B50\u6D41\u7A0B 1","Z":"2","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":".","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYs5JTSKf4Ww:{preview:"flow_outerData",meta:{name:"\u5916\u90E8\u6570\u636E",width:100,height:60,type:"wFlowClosed"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYs5JTSKf4Ww {"xy":"7gj:7gQ{","T":")3","N":"\u5916\u90E8\u6570\u636E 1","Z":"3","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"/","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYsPv4WDOzVz:{preview:"flow_innerData",meta:{name:"\u5185\u90E8\u5B58\u50A8",width:100,height:60,type:"wFlowClosed"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYsPv4WDOzVz {"xy":"7gj:7gQ{","T":")3","N":"\u5185\u90E8\u5B58\u50A8 1","Z":"4","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"0","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYsbgRo08xib:{preview:"flow_queueData",meta:{name:"\u961F\u5217\u6570\u636E",width:60,height:60,type:"wFlowClosed"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYsbgRo08xib {"xy":"7gQ{7gQ{","T":")3","N":"\u961F\u5217\u6570\u636E 1","Z":"5","r":"((","wh":"7guq7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"1","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,60,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYstMIb8crJV:{preview:"flow_database1",meta:{name:"\u6570\u636E\u5E93",width:100,height:60,type:"wFlowClosed"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYstMIb8crJV {"xy":"7gj:7gQ{","T":")3","N":"\u6570\u636E\u5E93 1","Z":"6","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"2","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYt71zJtCSyS:{preview:"flow_database2",meta:{name:"\u6570\u636E\u5E93",width:62,height:62,type:"wFlowClosed"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYt71zJtCSyS {"xy":"7gS27gS2","T":")3","N":"\u6570\u636E\u5E93 2","Z":"7","r":"((","wh":"7gx67gx6","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"3","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,62,62],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYtPft4pJ2Lr:{preview:"flow_humanInput",meta:{name:"\u4EBA\u5DE5\u8F93\u5165",width:100,height:60,type:"wFlowClosed"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYtPft4pJ2Lr {"xy":"7gj:7gQ{","T":")3","N":"\u4EBA\u5DE5\u8F93\u5165 1","Z":"8","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"4","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYtnbvaiddhp:{preview:"flow_card",meta:{name:"\u5361\u7247",width:100,height:60,type:"wFlowClosed"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYtnbvaiddhp {"xy":"7gj:7gQ{","T":")3","N":"\u5361\u7247 1","Z":"9","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"5","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYtyZc9NCDC9:{preview:"flow_strip",meta:{name:"\u6761\u5E26",width:100,height:74,type:"wFlowClosed"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYtyZc9NCDC9 {"xy":"7gj:7gZ0","T":")3","N":"\u6761\u5E26 1","Z":":","r":"((","wh":"7hMF7h/2","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"6","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,74],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYu8Io3j4nq:{preview:"flow_show",meta:{name:"\u5C55\u793A",width:100,height:60,type:"wFlowClosed"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYu8Io3j4nq {"xy":"7gj:7gQ{","T":")3","N":"\u5C55\u793A 1","Z":";","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"7","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYuK7KP2OrEq:{preview:"flow_humanOp",meta:{name:"\u4EBA\u5DE5\u64CD\u4F5C",width:100,height:60,type:"wFlowClosed"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYuK7KP2OrEq {"xy":"7gj:7gQ{","T":")3","N":"\u4EBA\u5DE5\u64CD\u4F5C 1","Z":"<","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"8","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYuTuekx7DDu:{preview:"flow_prepare",meta:{name:"\u9884\u5907",width:100,height:60,type:"wFlowClosed"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYuTuekx7DDu {"xy":"7gj:7gQ{","T":")3","N":"\u9884\u5907 1","Z":"=","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"9","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYue9RMtuBeb:{preview:"flow_loop",meta:{name:"\u5FAA\u73AF\u9650\u503C",width:100,height:60,type:"wFlowClosed"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYue9RMtuBeb {"xy":"7gj:7gQ{","T":")3","N":"\u5FAA\u73AF\u9650\u503C 1","Z":">","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":":","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.206Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYutd6twPNm8:{preview:"flow_refInPage",meta:{name:"\u9875\u9762\u5185\u5F15\u7528",width:60,height:60,type:"wFlowClosed"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYutd6twPNm8 {"xy":"7gQ{7gQ{","T":")3","N":"\u9875\u9762\u5185\u5F15\u7528 1","Z":"?","r":"((","wh":"7guq7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":";","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.206Z","hotAABB":[0,0,60,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYv4PTGfGty4:{preview:"flow_or",meta:{name:"\u6216\u8005",width:60,height:60,type:"wFlowClosed"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYv4PTGfGty4 {"xy":"7gQ{7gQ{","T":")3","N":"\u6216\u8005 1","Z":"@","r":"((","wh":"7guq7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"<","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.206Z","hotAABB":[0,0,60,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYvFGNKc8O9t:{preview:"flow_sum",meta:{name:"\u6C42\u548C",width:60,height:60,type:"wFlowClosed"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYvFGNKc8O9t {"xy":"7gQ{7gQ{","T":")3","N":"\u6C42\u548C 1","Z":"A","r":"((","wh":"7guq7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"=","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.206Z","hotAABB":[0,0,60,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYvVI3GXbeO5:{preview:"flow_refCrossPage",meta:{name:"\u8DE8\u9875\u5F15\u7528",width:100,height:60,type:"wFlowClosed"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYvVI3GXbeO5 {"xy":"7gj:7gQ{","T":")3","N":"\u8DE8\u9875\u5F15\u7528 1","Z":"B","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":">","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.206Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYvfkSfGrbK6:{preview:"flow_sort",meta:{name:"\u6392\u5E8F",width:60,height:60,type:"wFlowClosed"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYvfkSfGrbK6 {"xy":"7gQ{7gQ{","T":")3","N":"\u6392\u5E8F 1","Z":"C","r":"((","wh":"7guq7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"?","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.206Z","hotAABB":[0,0,60,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYvqC2QIyP8L:{preview:"flow_union",meta:{name:"\u5408\u5E76",width:60,height:40,type:"wFlowClosed"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYvqC2QIyP8L {"xy":"7gQ{7gFD","T":")3","N":"\u5408\u5E76 1","Z":"D","r":"((","wh":"7guq7g^Z","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"@","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.206Z","hotAABB":[0,0,60,40],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYw2n7qdB8kr:{preview:"flow_concurrent",meta:{name:"\u5E76\u884C\u6A21\u5F0F",width:100,height:60,type:"wFlowOpened"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYw2n7qdB8kr {"xy":"7gj:7gQ{","T":")4","N":"\u5E76\u884C\u6A21\u5F0F 1","Z":"E","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"!FFV":1,"sT":")"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.206Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYwEvu5dBJ1q:{preview:"flow_commentRight",meta:{name:"\u6CE8\u91CA",width:100,height:60,type:"wFlowOpened"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYwEvu5dBJ1q {"xy":"7gj:7gQ{","T":")4","N":"\u6CE8\u91CA 1","Z":"F","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"!FFV":1,"sT":"*"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.206Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYwT06ufHaJH:{preview:"flow_commentLeft",meta:{name:"\u6CE8\u91CA",width:100,height:60,type:"wFlowOpened"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYwT06ufHaJH {"xy":"7gj:7gQ{","T":")4","N":"\u6CE8\u91CA 2","Z":"G","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"!FFV":1,"sT":"+"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.206Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYwoyv4NEzbh:{preview:"flow_noteRight",meta:{name:"\u5907\u6CE8",width:100,height:60,type:"wFlowOpened"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYwoyv4NEzbh {"xy":"7gj:7gQ{","T":")4","N":"\u5907\u6CE8 1","Z":"H","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"!FFV":1,"sT":","}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.206Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYx1e6MFZTcA:{preview:"flow_noteLeft",meta:{name:"\u5907\u6CE8",width:100,height:60,type:"wFlowOpened"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYx1e6MFZTcA {"xy":"7gj:7gQ{","T":")4","N":"\u5907\u6CE8 2","Z":"I","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"!FFV":1,"sT":"-"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.207Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYxJHTvgSer6:{preview:"vertical_swimlane",meta:{name:"\u5782\u76F4\u6CF3\u9053",width:320,height:480,type:"wSwimlane"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYxJHTvgSer6 {"xy":"7i=27jD4","wh":"7kK67mY:","wl":["7i=2","7i=2"],"T":")2","N":"\u5782\u76F4\u6CF3\u9053 1","Z":"J","r":"((","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","brdR":"h bYpZx ) (!(","hl":["7gQ{","7gQ{","7m6D"],"tb":[["cell0"],["cell1","cell2"],["cell3","cell4"]],"cls":{"cell0":{"rt1":{"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3},"t1":{"dtV":1,"b/#000000":["( ( ","\u6CF3\u9053\u56FE\u6807\u9898",[],[]]},"fl":"h ( oT(h~"},"cell1":{"rt1":{"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3},"t1":{"dtV":1,"b/#000000":["( ( ","\u6CF3\u9053\u540D\u79F0",[],[]]},"fl":"h ( oT(h~"},"cell2":{"rt1":{"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3},"t1":{"dtV":1,"b/#000000":["( ( ","\u6CF3\u9053\u540D\u79F0",[],[]]},"fl":"h ( oT(h~"},"cell3":{"rt1":{"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3},"t1":{"dtV":1,"b/#000000":["( ( ","",[],[]]},"fl":"( ( oT(h~"},"cell4":{"rt1":{"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3},"t1":{"dtV":1,"b/#000000":["( ( ","",[],[]]},"fl":"( ( oT(h~"}},"ihbt":"(","smt":")"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.207Z","hotAABB":[0,0,320,480],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYxc8hZvULQr:{preview:"horizontal_swimlane",meta:{name:"\u6C34\u5E73\u6CF3\u9053",width:480,height:320,type:"wSwimlane"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYxc8hZvULQr {"xy":"7jD47i=2","T":")2","N":"\u6C34\u5E73\u6CF3\u9053 1","Z":"K","r":"((","wh":"7mY:7kK6","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","brdR":"h bYpZx ) (!(","wl":["7gQ{","7gQ{","7m6D"],"hl":["7i=2","7i=2"],"tb":[["cell0"],["cell1","cell3"],["cell2","cell4"]],"cls":{"cell0":{"rt1":{"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3},"t1":{"dtV":1,"b/#000000":["( ( ","\u6CF3\u9053\u56FE\u6807\u9898",[],[]]},"fl":"h ( oT(h~"},"cell1":{"rt1":{"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3},"t1":{"dtV":1,"b/#000000":["( ( ","\u6CF3\u9053\u540D\u79F0",[],[]]},"fl":"h ( oT(h~"},"cell2":{"rt1":{"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3},"t1":{"dtV":1,"b/#000000":["( ( ","\u6CF3\u9053\u540D\u79F0",[],[]]},"fl":"h ( oT(h~"},"cell3":{"rt1":{"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3},"t1":{"dtV":1,"b/#000000":["( ( ","",[],[]]},"fl":"( ( oT(h~"},"cell4":{"rt1":{"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3},"t1":{"dtV":1,"b/#000000":["( ( ","",[],[]]},"fl":"( ( oT(h~"}},"ihbt":"(","smt":"("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.207Z","hotAABB":[0,0,480,320],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'}}),x=()=>{const f={sceName:g(),sceListing:A(),sceData:r()};return m.BUILTIN_SCENE=f,f}},55561:(Et,ke,e)=>{"use strict";e.d(ke,{C1:()=>h,F5:()=>z,IP:()=>N,Ob:()=>_,Ow:()=>S,yp:()=>y});var o=e(12592),m=e(88031),g=e(96828),l=e(77885),C=e(78463),T=e(10858),A=e(44864),k=e(7233),p=e(48310),r=e(36892),x=e(66802),f=e(48411),u=e(53955);const b=()=>{const a=(0,m.v)((0,g.Id)(),(0,l.aF)({})),$=(0,C.uq)(a),ce=(0,T.jb)($);return a.applyDiff(ce),$},h=(a,$)=>{const ce=b(),de=ce.loadSubtreeTL(a,A.$k,0,0),fe=ce.getHotKeyListAABB(de),se=fe[2]-fe[0],J=fe[3]-fe[1],ve=ce.getHotItem(de[0]);switch(ve.hotAttr.type){case"wSticky":{const O=(0,r.Be)($)+1;ce.updateHotAttrMerge(de[0],{order:O});break}case"wTear":{const O=(0,r.Be)($)+1;ce.updateHotAttrMerge(de[0],{order:O});break}}(0,x.xB)(ve.hotAttr.type,de[0],ce);const D=new k.c((0,p.v)(p.K.snapshot),ce);D.buildWidgetTree({folderKey:de[0]});const R=D.widgetNode,V=document.createElement("div");switch(V.style.position="absolute",V.style.display="none",V.style.zIndex="11",V.style.width=se+"px",V.style.height=J+"px",V.style.transformOrigin="top left",V.style.transition="all 0.2s ease-in-out;",V.style.transform="translateZ(0)",V.style.willChange="transform",V.style.pointerEvents="none",R.type){case"wTear":{V.innerHTML=o.renderToString(R.render({tearMode:!0}));break}default:V.innerHTML=o.renderToString(R.render())}return document.body.appendChild(V),{getWidgetInsertablePuppet:()=>V,moveAndScaleWidgetInsertablePuppet:O=>{let{top:Ce,left:ae,scale:q}=O;V.style.display="block",V.style.top=Ce+"px",V.style.left=ae+"px",V.style.width=se*q/100+"px",V.style.height=J*q/100+"px",V.style.transform="scale("+q/100+")"},updateWidgetInsertablePuppetRenderProps:O=>{V.innerHTML=o.renderToString(R.render(O))},destroyWidgetInsertablePuppet:()=>{V.remove()}}},E=(a,$)=>{if(!a||!$)return[];$.sort((ce,de)=>{var fe,se;return(((fe=KNOWN_ORDER_MKTS_MAP[a])==null?void 0:fe[ce.cid])||1e4)-(((se=KNOWN_ORDER_MKTS_MAP[a])==null?void 0:se[de.cid])||1e4)})},N=a=>{if(!a)return[];const $=(0,f.HI)();Object.entries(a).forEach(ce=>{let[de,fe]=ce;fe.sort((se,J)=>{var ve,D;return(((ve=$[de])==null?void 0:ve[se.name])||1e4)-(((D=$[de])==null?void 0:D[J.name])||1e4)})},{})},z=(a,$,ce)=>{var de;const se=(de=(0,f.HP)()[a])==null?void 0:de[$];return se?ce.filter(J=>Object.keys(se).includes(J.split("/")[0])).sort((J,ve)=>se[J.split("/")[0]]-se[ve.split("/")[0]]):[]},S=a=>Object.values(f.c3).includes(a)?a===f.c3.Customize?f.c3.Common:a===f.c3.DS_Customize?f.c3.DS_Screen:a===f.c3.HMI_Customize?f.c3.HMI_IndusHmi:a===f.c3.CAR_Car?f.c3.HMI_Car:[f.c3.MP_ECommerce,f.c3.MP_Poster].includes(a)?f.c3.MP_App:a:f.c3.Common,_=(a,$)=>a.length===0?[]:a.map(ce=>($.get(ce.mtCid)||[]).find(se=>se.key===ce.key)||ce),y=(a,$)=>(0,u.YT)(a,"clabel").map(ce=>{const de=_((0,u.YT)(ce.list,"key"),$);return{...ce,list:de}})},48411:(Et,ke,e)=>{"use strict";e.d(ke,{P8:()=>b,ZQ:()=>u,bp:()=>x,Qv:()=>r,c3:()=>p,nh:()=>h,HI:()=>z,YN:()=>A,HP:()=>_,GT:()=>a});const o={Mobile:"mobile",PC:"pc",Pad:"pad",DisplayScreen:"display_screen",SmartTV:"smart_tv",SmartCar:"smart_car",Hmi:"hmi",Watch:"watch",Slide:"slide",Customize:"customize"},m={Mobile:"mobile",Web:"web",Other:"other",App:"app",Applet:"applet",Website:"website",WebBack:"web_back",Ipad:"ipad",SmartTV:"smart_tv",AppleWatch:"apple_watch",Slide:"slide",DisplayScreen:"display_screen",HMI:"HMI",Activity:"activity"},g={MP_App:"MP-app",MP_IOS:"MP-ios",MP_Android:"MP-android",MP_Applet:"MP-applet",MP_H5:"MP-h5",MP_Public:"MP-public",MP_ECommerce:"MP-e_commerce",MP_Poster:"MP-poster",PC_Website:"PC-web",PC_WebBack:"PC-web_back",PC_MacOS:"PC-mac",PC_Windows:"PC-win",PAD_IpadOs:"PAD-ipad",PAD_Android:"PAD-android",TV_AppleTVOS:"TV-apple",TV_AndroidTV:"TV-android",CAR_Car:"CAR-car",HMI_IndusHmi:"HMI-indus_hmi",HMI_Car:"HMI-car",WATCH_Apple:"WATCH-apple",WATCH_Android:"WATCH-android",SLIDE_Slide:"SLIDE-slide",DS_Screen:"DS-screen",Customize:"customize",DS_Customize:"DS-customize",HMI_Customize:"HMI-customize"},l={[o.Mobile]:[g.MP_App,g.MP_Applet,g.MP_H5,g.MP_Public,g.MP_IOS,g.MP_Android],[o.PC]:[g.PC_Website,g.PC_WebBack,g.PC_MacOS,g.PC_Windows],[o.Pad]:[g.PAD_IpadOs,g.PAD_Android],[o.DisplayScreen]:[g.DS_Screen],[o.SmartTV]:[g.TV_AppleTVOS,g.TV_AndroidTV],[o.Hmi]:[g.HMI_IndusHmi,g.HMI_Car],[o.Watch]:[g.WATCH_Apple,g.WATCH_Android],[o.Slide]:[g.SLIDE_Slide]},C={"MP-app":{all:[{clabel:"\u514D\u8D39",list:[{key:"sl4hv9chThmb520x3emdCy",mtCid:"mtl4hv9cfoo3ju0u"},{key:"sl4hv9chThmb52JX4SwBy6",mtCid:"mtl4hv9cfoo3ju0u"}]},{clabel:"\u4F1A\u5458\u514D\u8D39",list:[{key:"sl4hv9chThmb520x3emdCy",mtCid:"mtl4hv9cfoo3ju0u"},{key:"sl4hv9chThmb52JX4SwBy6",mtCid:"mtl4hv9cfoo3ju0u"}]},{clabel:"\u7D20\u6750\u4F1A\u5458\u514D\u8D39",list:[{key:"sl4hv9chThmb520x3emdCy",mtCid:"mtl4hv9cfoo3ju0u"},{key:"sl4hv9chThmb52JX4SwBy6",mtCid:"mtl4hv9cfoo3ju0u"}]}]}},T={"MP-app":{all:[{clabel:"\u514D\u8D39",list:[{key:"sk4s6tnqol1mm4f",mtCid:"mtk4s6tnpu2wjeno"},{key:"sk4s6tnqo7wp040",mtCid:"mtk4s6tnpu2wjeno"}]},{clabel:"\u4F1A\u5458\u514D\u8D39",list:[{key:"sk4s6trox95ivvt",mtCid:"mtk4s6tro3wncexo"},{key:"sk4s6troxs65vul",mtCid:"mtk4s6tro3wncexo"}]},{clabel:"\u7D20\u6750\u4F1A\u5458\u514D\u8D39",list:[{key:"sk6rlt9uz2kn47i",mtCid:"mtk6rlt9u4p7hmtf"},{key:"sk6rlt9uz8qrmn7",mtCid:"mtk6rlt9u4p7hmtf"}]}]}},A=()=>{const $=I18N.Resources.basic_widget,ce=I18N.Resources.form_widget,de=I18N.Resources.nav_widget,fe=I18N.Resources.chart_widget,se=I18N.Resources.advanced_chart_widget,J=I18N.Resources.multimedia_widget,ve=I18N.Resources.shape_widget,D=I18N.Resources.flow_widget;return{basic:$,form:ce,navigation:de,chart:fe,advancedChart:se,multimedia:J,shape:ve,flow:D}},k={...o,Common:"common"},p={...g,Common:"common"},r={...l,[k.Common]:[p.Common]},x={All:"all",More:"more"},f={[p.MP_App]:{mt2lozhvvrwd9qh3y:1,mt2lozhjwat9i4s4f:2,mt2lozn2pekekuj9o:3,mt2lozkjwaxx5sc6l:4,mt2lozkqyxzboszxp:5,mt2lozkx5obr587d4:6,mt2lozl89fz8opt8u:7,mt2loznb2k0zlyffa:8,mt2lozll0ulbic8cr:9,mt2lozo1tr65gz6pn:10,mt2lozmatpdb5sriv:11,mt2lozmj66ykejjy9:12,mt2lozmtwmqe7ys4b:13},[p.MP_IOS]:{mt2loxx9vhe83pho7:1,mt2lozcyfdcve2tbx:2,mt2lozruqjwdtbvue:3,mt2lozpshrhq5vij5:4,mt2lozs5uy3zaoupu:5,mt2lozsedohxe6r74:6,mt2lozqoyxhmgy5y5:7,mt2lp0j70wykekm4h:8,mt2lozq2ddinb4pf7:9},[p.MP_Android]:{mt2lozsl4bkv77j8s:1,mt2lozsovqt9b08nn:2,mt2lozss5n1uvuc46:3,mt2lozsu90qn0obeu:4},[p.MP_Applet]:{mtl2eevw55atfiu9:1,mtkc608a4k7xr0i2:2,mtkc33rwf8yjgahd:3,mtkc5zphvgbjz33n:4,mtl2gzug7zytusa4:5,mtkc33x51uq24mx:6,mtkc32xraihahnkg:7,mtk4s6tn56o6ph8a:8,mtk4s6tmciidvya6:9,mtki026w64jh2esk:10},[p.MP_H5]:{mtl121jwze5ph1ap:1,mtl4pfb4nyec95sh:2,mtk4s6tsiqfw31q2:3,mtl4f8r5zpju1kk6:4,mtl486i14562v4cu:5},[p.MP_Public]:{mt2lozoup371ddim9:1,mt2lozpcypmvjkd2p:2},[p.MP_ECommerce]:{mtk4s6ttaa6zwrn2:1,mtk4s6tstihx3kv:2,mtk4s6tu9ngo0rcj:3,mtk4s6tkm7vl5oj8:4},[p.MP_Poster]:{mtki03e4384ossnz:1},[p.PC_Website]:{mt2lp0te7lkorbvrt:1,mt2lp0jjhriinr65t:2,mt2lp0tla1tadz8i3:3,mt2lp0tod9dgs38vz:4,mt2lp0trerpe843hv:5,mt2lp0tu2xixvnzxq:6,mt2lp0y1yqzsmvq4b:7,mt2lp0ywxvf2oqb8u:8,mt2lp0y6te0ortuu9:9,mt2lp0yr1u4kwi6tg:10,mt2lp0yp388m469rj:11,mt2lp0yc11psuwxi4:12},[p.PC_WebBack]:{mt2loztlvsbwyhnct:1,mt2lp0hxsgd1u52oi:2,mt2lp0i0kr4oo4ham:3,mt2lp0it6gedxfg4e:4,mt2lp0i3buy38zpxw:5,mt2lozsoc1x8dhgcu:6,mt2lozrjpn1uvtppn:7,mt2lozsjfmlbtb8br:8,mt2lozrsfzox2pvxz:9,mt2lozrngjw8j02by:10},[p.PC_MacOS]:{mt2lp0nlmyrcmh92j:1,mt2lp0sl3piupf46h:2,mt2lp0rlhnccjqm51:3,mt2lp0shy54ktv3ia:4,mt2lp0xqwg1ytx1m1:5,mt2lp0u2tdh8jrsec:6,mt2lp0tyg6sz9t8oc:7,mt2lp0tv5f6q8rnw3:8,mt2lp0y0szn7hv2py:9,mt2lp0yvugl91ms3u:10,mt2lp0y6466kwqonr:11,mt2lp0yrgwtji3xcl:12,mt2lp0yonfcn3ah55:13,mt2lp0yltffjfqtbl:14},[p.PC_Windows]:{mt2lp12zpb0kdluo4:1,mt2lp16ho95o9h1be:2,mt2lp16lqjaey7agv:3,mt2lp16nnmowgzouf:4,mt2lp0xrf137mahyp:5,mt2lp0u3po8n4hcrq:6,mt2lp0tz1rehh8d73:7,mt2lp0tvw7cliz08m:8,mt2lp0y07dhidvrp4:9,mt2lp0yv8u4q8pnhr:10,mt2lp0y5hmrhbtc03:11,mt2lp0yruig74twz:12,mt2lp0yo93fkym2ec:13,mt2lp0yb0uom7m0n1:14},[p.PAD_IpadOs]:{mt2lozt1l2kg7iqtr:1,mt2lp0it6t990rnld:2,mt2lp0mwm8jwcotdv:3,mt2lp0n74zbbdnr7w:4},[p.PAD_Android]:{mtki03e4384ossnz:1},[p.TV_AppleTVOS]:{mt2lp1ycn4ioyfy5a:1,mt2lp1yffemkhsle3:2,mt2lp1yij1yg8g5i3:3,mt2lp1ylg5hmk0i5q:4},[p.TV_AndroidTV]:{mt2lp1y91m6cei8v9:1,mt2lp1xnd95laexgk:2,mt2lp1xuxbeh2rcg1:3,mt2lp1xpsdjrjh6db:4,mt2lp1xkugp2eu9nb:5},[p.HMI_Car]:{mt2lozre4zpi75z6k:1,mt2lozqzddfwb9gs8:2},[p.HMI_IndusHmi]:{mt2lpi48t5neqizai:1,mt2lpi43mu6wk9ffy:2},[p.WATCH_Apple]:{mt2lp0izyslgamu24:1},[p.WATCH_Android]:{mt2lp0j3czrmtow9j:1},[p.SLIDE_Slide]:{mt2lp0kvxkb2r9k7c:1},[p.DS_Screen]:{mt2lpi3vazsyug92l:1,mt2lpi38e9imwzi56:2,mt2lpi2w3koehilvz:3,mt2lpi340d21pk2bv:4,mt2lpi3cszx3ysf1k:5,mt2lpi30fwywrqmar:6}},u={name:x.More,id:null},b={name:x.All,id:null},h=()=>{const{basic:$,form:ce,navigation:de,chart:fe,multimedia:se,shape:J,flow:ve}=A();return{[p.Common]:[{name:$},{name:ce},{name:de},{name:fe},{name:se},{name:J},{name:ve}]}},E={[p.MP_App]:{\u5927\u5382\u8D44\u6E90:1,\u901A\u7528:2,\u6570\u636E\u5F55\u5165:3,\u6570\u636E\u5C55\u793A:4,\u5BFC\u822A:5,\u53CD\u9988:6,\u5176\u5B83:7},[p.MP_Applet]:{\u5927\u5382\u8D44\u6E90:1,\u901A\u7528:2,\u6570\u636E\u5F55\u5165:3,\u6570\u636E\u5C55\u793A:4,\u5BFC\u822A:5,\u53CD\u9988:6,\u5176\u5B83:7},[p.PC_WebBack]:{\u5927\u5382\u8D44\u6E90:1,\u901A\u7528:2,\u6570\u636E\u5F55\u5165:3,\u6570\u636E\u5C55\u793A:4,\u5BFC\u822A:5,\u53CD\u9988:6,\u5176\u5B83:7},[p.PC_Website]:{\u5B98\u7F51\u5BFC\u822A:1,\u5185\u5BB9\u533A:2,\u7279\u5F81\u533A:3,Banner:4,\u5B9A\u4EF7\u533A:5,\u9875\u811A:6},[p.DS_Screen]:{\u56FE\u8868:1,\u6846\u67B6\u80CC\u666F:2,\u6807\u9898\u6837\u5F0F:3,\u5730\u56FE:4,\u6309\u94AE:5,\u7A97\u53E3\u6846:6},[p.Common]:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u56FE\u8868:4,\u591A\u5A92\u4F53:5,\u5F62\u72B6:6}},N={[p.MP_App]:{\u5927\u5382\u8D44\u6E90:1,\u901A\u7528:2,\u6570\u636E\u5F55\u5165:3,\u6570\u636E\u5C55\u793A:4,\u5BFC\u822A:5,\u6D41\u7A0B:6},[p.MP_Applet]:{\u5927\u5382\u8D44\u6E90:1,\u901A\u7528:2,\u6570\u636E\u5F55\u5165:3,\u6570\u636E\u5C55\u793A:4,\u5BFC\u822A:5,\u6D41\u7A0B:6},[p.PC_WebBack]:{\u5927\u5382\u8D44\u6E90:1,\u901A\u7528:2,\u6570\u636E\u5F55\u5165:3,\u6570\u636E\u5C55\u793A:4,\u5BFC\u822A:5,\u6D41\u7A0B:6},[p.PC_Website]:{\u5B98\u7F51\u5BFC\u822A:1,\u5185\u5BB9\u533A:2,\u7279\u5F81\u533A:3,Banner:4,\u5B9A\u4EF7\u533A:5,\u6D41\u7A0B:6},[p.DS_Screen]:{\u56FE\u8868:1,\u6846\u67B6\u80CC\u666F:2,\u6807\u9898\u6837\u5F0F:3,\u5730\u56FE:4,\u6309\u94AE:5,\u6D41\u7A0B:6},[p.Common]:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u56FE\u8868:4,\u591A\u5A92\u4F53:5,\u5F62\u72B6:6,\u6D41\u7A0B:7}},z=()=>{if(!ENV.IS_WONDER_SHARE)return N;const{basic:$,form:ce,navigation:de,chart:fe,multimedia:se,shape:J}=A();return{[p.Common]:{[$]:1,[ce]:2,[de]:3,[fe]:4,[se]:5,[J]:6}}},S={[p.MP_App]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u591A\u5A92\u4F53:4,\u56FE\u8868:5,\u5F62\u72B6:6,\u6D41\u7A0B:7},\u901A\u7528:{\u57FA\u7840:1},\u6570\u636E\u5F55\u5165:{\u8868\u5355:1},\u5BFC\u822A:{\u5BFC\u822A:1},\u6D41\u7A0B:{\u6D41\u7A0B:1},\u6570\u636E\u5C55\u793A:{\u591A\u5A92\u4F53:1,\u56FE\u8868:2,\u9AD8\u7EA7\u56FE\u8868:3},\u5176\u5B83:{\u5F62\u72B6:1}},[p.MP_Applet]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u591A\u5A92\u4F53:4,\u6D41\u7A0B:5},\u901A\u7528:{\u57FA\u7840:1},\u6570\u636E\u5F55\u5165:{\u8868\u5355:1},\u5BFC\u822A:{\u5BFC\u822A:1},\u6D41\u7A0B:{\u6D41\u7A0B:1},\u6570\u636E\u5C55\u793A:{\u591A\u5A92\u4F53:1,\u56FE\u8868:2,\u9AD8\u7EA7\u56FE\u8868:3},\u5176\u5B83:{\u5F62\u72B6:1}},[p.PC_WebBack]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u56FE\u8868:4,\u9AD8\u7EA7\u56FE\u8868:5,\u591A\u5A92\u4F53:6,\u6D41\u7A0B:7},\u901A\u7528:{\u57FA\u7840:1},\u6570\u636E\u5F55\u5165:{\u8868\u5355:1},\u5BFC\u822A:{\u5BFC\u822A:1},\u6D41\u7A0B:{\u6D41\u7A0B:1},\u6570\u636E\u5C55\u793A:{\u591A\u5A92\u4F53:1,\u56FE\u8868:2,\u9AD8\u7EA7\u56FE\u8868:3},\u5176\u5B83:{\u5F62\u72B6:1}},[p.PC_Website]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u591A\u5A92\u4F53:4,\u56FE\u8868:5,\u5F62\u72B6:6,\u6D41\u7A0B:7},\u5B98\u7F51\u5BFC\u822A:{\u5BFC\u822A:1},\u5185\u5BB9\u533A:{\u591A\u5A92\u4F53:1},\u6D41\u7A0B:{\u6D41\u7A0B:1}},[p.DS_Screen]:{all:{\u57FA\u7840:1,\u56FE\u8868:2,\u9AD8\u7EA7\u56FE\u8868:3,\u591A\u5A92\u4F53:4,\u8868\u5355:5,\u5BFC\u822A:6,\u5F62\u72B6:7,\u6D41\u7A0B:8},\u56FE\u8868:{\u56FE\u8868:1,\u9AD8\u7EA7\u56FE\u8868:2},\u6D41\u7A0B:{\u6D41\u7A0B:1}},[p.MP_H5]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u591A\u5A92\u4F53:4,\u56FE\u8868:5,\u5F62\u72B6:6,\u6D41\u7A0B:7}},[p.MP_Public]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u591A\u5A92\u4F53:4,\u6D41\u7A0B:5}},[p.MP_IOS]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u591A\u5A92\u4F53:4,\u56FE\u8868:5,\u5F62\u72B6:6,\u6D41\u7A0B:7}},[p.MP_Android]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u591A\u5A92\u4F53:4,\u56FE\u8868:5,\u5F62\u72B6:6,\u6D41\u7A0B:7}},[p.PC_MacOS]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u591A\u5A92\u4F53:4,\u56FE\u8868:5,\u5F62\u72B6:6,\u6D41\u7A0B:7}},[p.PC_Windows]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u591A\u5A92\u4F53:4,\u56FE\u8868:5,\u5F62\u72B6:6,\u6D41\u7A0B:7}},[p.PAD_IpadOs]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u591A\u5A92\u4F53:4,\u56FE\u8868:5,\u5F62\u72B6:6,\u6D41\u7A0B:7}},[p.PAD_Android]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u591A\u5A92\u4F53:4,\u56FE\u8868:5,\u5F62\u72B6:6,\u6D41\u7A0B:7}},[p.TV_AppleTVOS]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u56FE\u8868:4,\u591A\u5A92\u4F53:5,\u5F62\u72B6:6,\u6D41\u7A0B:7}},[p.TV_AndroidTV]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u56FE\u8868:4,\u591A\u5A92\u4F53:5,\u5F62\u72B6:6,\u6D41\u7A0B:7}},[p.HMI_IndusHmi]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u56FE\u8868:4,\u9AD8\u7EA7\u56FE\u8868:5,\u591A\u5A92\u4F53:6,\u5F62\u72B6:7,\u6D41\u7A0B:8}},[p.HMI_Car]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u591A\u5A92\u4F53:3,\u5BFC\u822A:4,\u56FE\u8868:5,\u5F62\u72B6:6,\u6D41\u7A0B:7}},[p.WATCH_Apple]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u591A\u5A92\u4F53:4,\u5F62\u72B6:5,\u6D41\u7A0B:6}},[p.WATCH_Android]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u591A\u5A92\u4F53:4,\u5F62\u72B6:5,\u6D41\u7A0B:6}},[p.SLIDE_Slide]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u591A\u5A92\u4F53:3,\u56FE\u8868:4,\u9AD8\u7EA7\u56FE\u8868:5,\u5BFC\u822A:6,\u5F62\u72B6:7,\u6D41\u7A0B:7}},[p.Common]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u56FE\u8868:4,\u591A\u5A92\u4F53:5,\u5F62\u72B6:6,\u6D41\u7A0B:7},\u57FA\u7840:{\u57FA\u7840:1},\u8868\u5355:{\u8868\u5355:1},\u5BFC\u822A:{\u5BFC\u822A:1},\u56FE\u8868:{\u56FE\u8868:1,\u9AD8\u7EA7\u56FE\u8868:2},\u591A\u5A92\u4F53:{\u591A\u5A92\u4F53:1},\u5F62\u72B6:{\u5F62\u72B6:1},\u6D41\u7A0B:{\u6D41\u7A0B:1}}},_=()=>{if(!ENV.IS_WONDER_SHARE)return S;const{basic:$,form:ce,navigation:de,chart:fe,advancedChart:se,multimedia:J,shape:ve}=A();return{[p.Common]:{all:{[$]:1,[ce]:2,[de]:3,[fe]:4,[se]:5,[J]:6,[ve]:7},[$]:{[$]:1},[ce]:{[ce]:1},[de]:{[de]:1},[fe]:{[fe]:1,[se]:2},[J]:{[J]:1},[ve]:{[ve]:1}}}},y={[p.MP_App]:"app",[p.MP_IOS]:"ios",[p.MP_Android]:"android",[p.MP_Applet]:"\u5C0F\u7A0B\u5E8F",[p.MP_H5]:"H5",[p.MP_Public]:"\u516C\u4F17\u53F7",[p.MP_ECommerce]:"\u7535\u5546",[p.MP_Poster]:"\u6D77\u62A5",[p.PC_Website]:"web\u5B98\u7F51",[p.PC_WebBack]:"web\u540E\u53F0",[p.PC_MacOS]:"mac OS",[p.PC_Windows]:"windows",[p.PAD_IpadOs]:"iPad OS",[p.PAD_Android]:"\u5E73\u677F\u5B89\u5353",[p.TV_AppleTVOS]:"apple tv",[p.TV_AndroidTV]:"Android tv",[p.HMI_IndusHmi]:"\u5DE5\u4E1AHMI",[p.HMI_Car]:"\u8F66\u8F7D\u4E2D\u63A7",[p.CAR_Car]:"\u8F66\u8F7D\u4E2D\u63A7",[p.WATCH_Apple]:"watch os",[p.WATCH_Android]:"\u5B89\u5353\u624B\u8868",[p.SLIDE_Slide]:"\u5E7B\u706F\u7247",[p.DS_Screen]:"\u53EF\u89C6\u5316\u5927\u5C4F"},a={[m.Mobile]:"\u624B\u673A",[m.Web]:"\u7F51\u9875/\u7535\u89C6",[m.Other]:"\u5176\u5B83",[m.App]:"App",[m.Applet]:"\u5C0F\u7A0B\u5E8F",[m.Website]:"Web\u7F51\u7AD9",[m.WebBack]:"Web\u540E\u53F0",[m.Ipad]:"\u5E73\u677F\u7AEF",[m.SmartTV]:"\u667A\u80FD\u7535\u89C6",[m.AppleWatch]:"\u624B\u8868",[m.Slide]:"\u5E7B\u706F\u7247",[m.DisplayScreen]:"\u53EF\u89C6\u5316\u5927\u5C4F",[m.HMI]:"HMI",[m.Activity]:"\u6D3B\u52A8"}},21385:(Et,ke,e)=>{"use strict";e.d(ke,{Z:()=>m});var o=e(88753);const m=async g=>{let{fcg:l,userId:C,isOrg:T=!1}=g;if(!l||!C)return;const A=!T||(0,o.Bk)(),k=await(0,o.i_)({...l,userId:C,repaint:!0,isAllowDat:A});k&&(T?(Object.assign(globalThis,{orgSdk:k,orgSdkStore:k.sdkStore}),await MB.action("entry:load:org:combo:group:list")):(Object.assign(globalThis,{userSdk:k,userSdkStore:k.sdkStore}),await MB.action("entry:load:user:combo:group:list")))}},20646:(Et,ke,e)=>{"use strict";e.d(ke,{O:()=>h});var o=e(74059),m=e(51044),g=e(86634),l=e.n(g),C=e(7290),T=e(89860),A=e(14116),k=e(19418),p=e(88319),r=e(57464);class x extends m.PureComponent{constructor(z){super(z),(0,o.A)(this,"handleMove",_=>{_.stopPropagation();const{onMove:y,asset:a,onClose:$}=this.props;y(a),$()}),(0,o.A)(this,"handleRemove",_=>{_.stopPropagation();const{asset:y,onRemove:a,onClose:$}=this.props;a(y),$()}),(0,o.A)(this,"handleDownload",_=>{_.stopPropagation();const{asset:y,onDownload:a,onClose:$}=this.props;a(y),$()}),(0,o.A)(this,"handleTransferOrg",_=>{_.stopPropagation();const{asset:y,onAssetAdd:a,onClose:$}=this.props;a(y),$()});const S=z.canAccess;this.menuItems=[{isShow:z.canEditLibrary,label:I18N.LibraryContainer.move_to,onClick:this.handleMove},{isShow:z.canEditLibrary&&S,label:I18N.LibraryContainer.delete,onClick:this.handleRemove},{isShow:!0,label:I18N.LibraryContainer.download,onClick:this.handleDownload},{isShow:z.canAddToOrg&&z.onAssetAdd&&z.asset.image!=="/images/example.png",label:I18N.LibraryContainer.add_to_org,onClick:this.handleTransferOrg}]}render(){const{targetNode:z}=this.props;return(0,r.jsx)(p.A,{menuItems:this.menuItems,targetNode:z,direction:"down",distance:2})}}var f=e(63555),u=e(35187),b=e(93433);class h extends m.PureComponent{constructor(z){var S;super(z),S=this,(0,o.A)(this,"setListElementRef",_=>this.$element=_),(0,o.A)(this,"setImageRef",_=>this.$image=_),(0,o.A)(this,"updateIsVisible",()=>{this.setState({isVisible:this.isInBoundingClientRect()})}),(0,o.A)(this,"handleMouseEnter",()=>{this.setState({isHover:!0})}),(0,o.A)(this,"handleMouseLeave",()=>{this.setState({isHover:!1})}),(0,o.A)(this,"handleEdit",()=>{const{isMoreSelect:_}=this.props;_||this.setState({isEditing:!0})}),(0,o.A)(this,"handleConfirm",_=>{const{asset:y,assetActions:{onAssetNameConfirm:a}}=this.props;a(y,_),this.setState({isEditing:!1})}),(0,o.A)(this,"handleAssetImport",_=>{_.stopPropagation();const{asset:y,assetActions:{onAssetImport:a}}=this.props;a&&a(y)}),(0,o.A)(this,"handleMouseDown",_=>{_.stopPropagation();const{asset:y,assetActions:{onMouseDown:a}}=this.props;a&&a(_,y)}),(0,o.A)(this,"handleClick",_=>{_.stopPropagation();const{asset:y,dispatch:a}=this.props;a({type:"entry:replace:widget:by:asset",payload:{asset:y,assetReplaceMode:f.x.WImage}}),a({type:"entry:replace:widget:by:asset",payload:{asset:y,assetReplaceMode:f.x.WCarousel}}),a({type:"entry:insert:sticky:by:asset",payload:{asset:y}}),a({type:"entry:mind:insert:asset",payload:{asset:y}})}),(0,o.A)(this,"handleClickAction",_=>{_.stopPropagation(),this.handleToggleActionMenu()}),(0,o.A)(this,"handleToggleActionMenu",function(_){_===void 0&&(_=void 0);const{canListItemGroup:y}=S.props;if(!y)return;const{isListItemGroup:a}=S.state,$=_===void 0?!a:_;S.setState({isListItemGroup:$})}),(0,o.A)(this,"handleDocDown",_=>{var y;let{target:a}=_;const{isListItemGroup:$}=this.state;$&&((y=this.$element)!=null&&y.contains(a)||a.closest(".list-content")||this.handleToggleActionMenu(!1))}),this.state={isVisible:!1,isHover:!1,isEditing:!1,isListItemGroup:!1}}componentDidMount(){this.props.containerRect&&this.updateIsVisible()}componentDidUpdate(z,S){this.updateIsVisible()}isInBoundingClientRect(){const{containerRect:z}=this.props;if(!z||!this.$image)return!1;const S=this.$image.getBoundingClientRect();return S.bottom>z.top&&S.top<z.bottom}render(){const{asset:z,assetActions:S,currentUserId:_,shouldAuth:y,canEditLibrary:a,canAddToOrg:$,canListItemGroup:ce}=this.props,{isVisible:de,isHover:fe,isEditing:se,isListItemGroup:J}=this.state,ve=z.image,D=ve&&ve.slice(ve.lastIndexOf(".")+1).toUpperCase();return(0,r.jsxs)(b.G,{"data-cid":z.cid,className:l()({"is-hover":fe}),onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,children:[(0,r.jsxs)(u.e,{ref:this.setImageRef,onMouseDown:this.handleMouseDown,onDoubleClick:this.handleAssetImport,onClick:V=>this.handleClick(V),children:[(0,r.jsx)(T.A,{isVisible:de,imageUrl:E(z)}),(0,r.jsx)("div",{className:l()("actions",{hover:J}),children:(0,r.jsxs)("div",{ref:this.setListElementRef,onClick:this.handleClickAction,children:[ce&&(0,r.jsx)("div",{className:"btn-box",children:(0,r.jsx)(C.C,{name:"design/templates/temp-btn",className:"library-menu"})}),J&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x,{asset:z,canEditLibrary:a,canAddToOrg:$,targetNode:this.$element,canAccess:!0,onRemove:S.onAssetRemove,onMove:S.onAssetMove,onDownload:S.onAssetDownload,onClose:()=>this.handleToggleActionMenu(!1),onAssetAdd:S.onAssetAdd}),(0,r.jsx)(k.A,{target:document,onMouseDown:(0,k.t)(this.handleDocDown,{capture:!0})})]})]})}),(0,r.jsx)("div",{className:"image-type",children:D})]}),ce?(0,r.jsxs)("div",{className:l()("asset-name"),onClick:this.handleEdit,children:[(0,r.jsx)(A.A,{value:z.name,className:"editable-name",isEditing:a&&se,onConfirm:this.handleConfirm},z.name),a&&!se&&(0,r.jsx)("div",{className:"asset-action",children:(0,r.jsx)(C.C,{name:"general/pen"})})]}):(0,r.jsx)(b.f,{children:z.name})]})}}(0,o.A)(h,"defaultProps",{canListItemGroup:!0,canEditLibrary:!0});const E=N=>/svg$/.test(N.image)?N.image:N.thumb||N.raw||N.image},93433:(Et,ke,e)=>{"use strict";e.d(ke,{G:()=>l,f:()=>C});var o=e(21676),m=e(48590),g=e(35187);const l=o.Ay.li.withConfig({displayName:"styles__StyledLibraryThumbnailListItem",componentId:"sc-1cdrlom-0"})(["position:relative;width:109px;height:132px;margin-right:8px;margin-bottom:4px;display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;cursor:pointer;color:",";","{width:109px;height:109px;border-radius:6px;&::after{border-radius:6px;}}&.is-hover .asset-name .editable-name{width:calc(100% - 14px);}.asset-name{display:flex;height:26px;line-height:26px;text-align:center;cursor:text;justify-content:center;.editable-name{width:100%;height:23px;line-height:22px;",";&.is-editing{border-bottom:1px solid #196ad4;}textarea{text-align:center;}}& > span{&.editable-name:hover{border-bottom:1px solid #ff6161;}}.asset-action{display:none;position:absolute;width:14px;height:14px;bottom:8px;right:0;}&:hover{","{background:#fff;&::after{border:2px solid #79baff;}}.asset-action{display:flex;}}}"],T=>T.theme.color_text_L2,g.e,m.L9,g.e),C=o.Ay.span.withConfig({displayName:"styles__StyledUneditableSpan",componentId:"sc-1cdrlom-1"})(["display:flex;justify-content:center;width:100%;height:24px;line-height:22px;overflow:hidden;border-top:1px solid transparent;border-bottom:1px solid transparent;"])},46751:(Et,ke,e)=>{"use strict";e.d(ke,{r:()=>C});var o=e(51044),m=e(21676),g=e(7290),l=e(57464);const C=A=>{let{className:k,iconName:p,text:r,onClick:x}=A;return(0,l.jsxs)(T,{className:k,onClick:x,children:[(0,l.jsxs)("div",{className:"left",children:[(0,l.jsx)(g.C,{name:p,isColorPure:!0}),(0,l.jsx)("span",{children:r})]}),(0,l.jsx)(g.C,{name:"art_board/mkt/search/right_arrow",className:"arrow",isColorPure:!0})]})},T=m.Ay.div.withConfig({displayName:"CardButton__StyledCardButton",componentId:"sc-6w1nzw-0"})(["flex:none;display:flex;align-items:center;justify-content:start;margin:8px 0 8px 12px;padding:0 15px 0 12px;width:226px;height:56px;background-color:",";border-radius:8px;box-shadow:0px 2px 12px 0px #0303030F;cursor:pointer;transition:0.2s;&:hover{transform:translateY(-4px);box-shadow:0px 2px 14px rgba(3,3,3,0.12);}.left{flex:1;display:flex;align-items:center;justify-content:start;span{font-size:12px;font-weight:500;color:",";}svg{margin-right:12px;width:32px;&.screen_list path{fill:none;}}}.arrow{fill:none;width:5px;path{stroke:",";}}"],A=>A.theme.color_background_white_modal,A=>A.theme.color_text_L1,A=>A.theme.color_text_L1)},82572:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>x});var o=e(74059),m=e(51044),g=e(7290),l=e(55624),C=e(14116),T=e(86634),A=e.n(T),k=e(21676);const p=k.Ay.div.withConfig({displayName:"styles__StyledCollapsePanel",componentId:"sc-1pysor8-0"})(["width:inherit;&::-webkit-scrollbar{width:4px;height:4px;}header{height:32px;padding-left:","px;padding-right:10px;display:flex;align-items:center;cursor:pointer;.title{flex:1;height:20px;line-height:18px;font-size:12px;font-weight:500;color:",";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.arrow-icon{flex-shrink:0;text-align:center;color:",";transition:transform 0.2s ease-in-out;width:6px;height:8px;margin-right:10px;}.expanded-icon{width:14px;height:14px;margin-right:4px;.main{fill:",";}.secondary{fill:",";}}&:hover{background:",";}}&.expanded > header .arrow-icon{transform:rotate(90deg);}"],f=>f.level*12,f=>f.theme.color_text_L1,f=>f.theme.sce_svg_arrow_icon_color,f=>f.theme.color_text_L3,f=>f.theme.color_text_disabled01,f=>f.theme.color_btn_secondary_hover);var r=e(57464);class x extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleClick",()=>{const{id:u,onToggle:b}=this.props;b(u)})}render(){const{id:u,title:b,className:h,expanded:E,isEditing:N,children:z,onConfirm:S,renderHeader:_,renderContent:y,renderIcon:a,width:$,isSearch:ce,secondary:de,level:fe,...se}=this.props;return(0,r.jsxs)(p,{"data-cid":u,type:"collapse-panel",className:A()("collapse-panel",h,{expanded:E},{secondary:de}),isSearch:ce,level:fe,...se,children:[_?_():(0,r.jsxs)("header",{onClick:this.handleClick,style:{width:$},children:[(0,r.jsx)(g.C,{className:"arrow-icon",name:"new/arrow_1/mini"}),a&&a(E),(0,r.jsx)(C.A,{value:b,className:"title",isEditing:N,onConfirm:S},N+b),!N&&y&&y(u)]}),(0,r.jsx)(l.A,{collapse:!E,children:z})]})}}(0,o.A)(x,"defaultProps",{isEditing:!1,level:1})},51684:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>E});var o=e(74059),m=e(51044),g=e(86634),l=e.n(g),C=e(19418),T=e(83984),A=e(7290),k=e(77211),p=e(14116),r=e(88319),x=e(35187),f=e(21676),u=e(48590);const b=f.Ay.li.withConfig({displayName:"styles__StyledLibraryThumbnailListItem",componentId:"sc-wtox56-0"})(["position:relative;width:109px;height:132px;margin-right:8px;margin-bottom:4px;display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;cursor:pointer;color:",";","{width:109px;height:109px;border-radius:6px;background:",";&::after{border-radius:6px;border:1px solid ",";}}.item-name{display:flex;width:109px;height:26px;line-height:26px;text-align:center;cursor:text;justify-content:center;.editable-name{width:100%;height:23px;line-height:22px;",";&.is-editing{border-bottom:1px solid #196AD4;}textarea{text-align:center;}}&:not(.is-more-select) > span{&.editable-name:hover{border-bottom:1px solid ",";}}.item-action{display:none;position:absolute;width:14px;height:14px;bottom:8px;right:0;}&.is-more-select{.editable-name{cursor:pointer;}}}&:hover:not(.is-more-select){.item-name{width:94px;width:","}.cannot-edit-library{width:109px;}.item-action{display:flex;}}"],S=>S.theme.color_text_L2,x.e,S=>S.theme.color_bg_card,S=>S.theme.color_bg_border_01,u.L9,S=>S.theme.color_primary_brand01,S=>S.isEditing?"109px":"94px");var h=e(57464);class E extends m.PureComponent{constructor(_){super(_),(0,o.A)(this,"setElementRef",y=>this.$elem=y),(0,o.A)(this,"updateIsVisible",()=>{this.setState({isVisible:this.isInBoundingClientRect()})}),(0,o.A)(this,"handleConfirm",y=>{const{groupCid:a,item:$,comboActions:{onRename:ce}}=this.props;ce($,y,a),this.setState({isEditing:!1})}),(0,o.A)(this,"handleEditName",y=>{y.stopPropagation(),this.setState({isEditing:!0})}),(0,o.A)(this,"handleImport",y=>{y.stopPropagation();const{item:a,comboActions:{onImport:$},isMoreSelect:ce}=this.props;!ce&&$&&$(y,a)}),(0,o.A)(this,"handleSelect",y=>{y.stopPropagation();const{item:a,index:$,isSelect:ce,comboActions:{onSelect:de}}=this.props;de&&de(a,!ce,y,$)}),(0,o.A)(this,"handleMouseDown",y=>{y.preventDefault();const{item:a,comboActions:{onMouseDown:$}}=this.props;$&&$(y,a,this.$elem)}),this.state={isVisible:!1,isEditing:!1}}componentDidMount(){this.props.containerRect&&this.updateIsVisible()}componentDidUpdate(_,y){this.updateIsVisible()}isInBoundingClientRect(){const{containerRect:_}=this.props;if(!_||!this.$elem)return!1;const y=this.$elem.getBoundingClientRect();return y.bottom>_.top&&y.top<_.bottom}render(){const{canEditLibrary:_,canAddToOrg:y,currentUserId:a,item:$,isSelect:ce,comboActions:de,isMoreSelect:fe}=this.props,{isEditing:se,isVisible:J}=this.state,{key:ve,flpakKey:D,hotAttr:{name:R}}=$,V=$.sup==="B@ref-muban"?$.hotAttr.defaultCanvasKey:ve,O=$.sup==="B@ref-muban"?T.rY.PNG_CANVAS:T.rY.PNG_PAGE;return(0,h.jsxs)(b,{className:"thumbnail-list-item",isEditing:se,children:[(0,h.jsxs)(x.e,{ref:this.setElementRef,className:l()("thumbnail-list-item-img combo",{"is-select":ce},{"is-more-select":fe}),onClick:this.handleSelect,onDoubleClick:this.handleImport,onMouseDown:this.handleMouseDown,children:[(0,h.jsx)(k.Ay,{projectMetaCid:D,snapshotKey:V,isVisible:J,mode:O}),_&&!fe&&(0,h.jsx)(N,{item:$,isSelect:ce,comboActions:de,canAddToOrg:y,canEditLibrary:_,currentUserId:a})]}),(0,h.jsxs)("div",{className:l()("item-name",{"is-more-select":fe},{isLayerHover:!se},{"cannot-edit-library":!_}),onClick:this.handleEditName,children:[(0,h.jsx)(p.A,{value:R,className:"editable-name",isEditing:_&&se,onConfirm:this.handleConfirm},R),_&&!se&&(0,h.jsx)("div",{className:"item-action",children:(0,h.jsx)(A.C,{name:"general/pen"})})]})]})}}(0,o.A)(E,"defaultProps",{canEditLibrary:!0});class N extends m.PureComponent{constructor(_){var y;super(_),y=this,(0,o.A)(this,"setListElementRef",a=>this.$element=a),(0,o.A)(this,"handleClick",a=>{a.stopPropagation(),this.handleToggle()}),(0,o.A)(this,"handleToggle",function(a){a===void 0&&(a=void 0);const{isListItemGroup:$}=y.state,ce=a===void 0?!$:a;y.setState({isListItemGroup:ce})}),(0,o.A)(this,"handleDocDown",a=>{var $;let{target:ce}=a;const{isListItemGroup:de}=this.state;de&&(($=this.$element)!=null&&$.contains(ce)||ce.closest(".list-content")||this.handleToggle(!1))}),(0,o.A)(this,"handStopPropagation",a=>{a.stopPropagation()}),this.state={isListItemGroup:!1}}render(){const{currentUserId:_,item:y,isSelect:a,comboActions:$,canAddToOrg:ce,canEditLibrary:de}=this.props,{isListItemGroup:fe}=this.state,{onEdit:se,onDup:J,onRemove:ve,onMove:D,onOrg:R}=$;return(0,h.jsxs)("div",{ref:this.setListElementRef,className:l()("actions",{hover:fe}),onMouseDown:this.handStopPropagation,onDoubleClick:this.handStopPropagation,onClick:this.handleClick,children:[(0,h.jsx)("div",{className:"btn-box",children:(0,h.jsx)(A.C,{name:"design/templates/temp-btn",className:"library-menu"})}),fe&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(z,{isSelect:a,item:y,targetNode:this.$element,onClose:()=>this.handleToggle(!1),currentUserId:_,onRemove:!0?ve:null,canAddToOrg:ce,canEditLibrary:de,onEdit:se,onDup:J,onMove:D,onOrg:R}),(0,h.jsx)(C.A,{target:document,onMouseDown:(0,C.t)(this.handleDocDown,{capture:!0})})]})]})}}class z extends m.PureComponent{constructor(_){super(_),(0,o.A)(this,"handleMenuItemsEdit",y=>{y.stopPropagation();const{item:a,onEdit:$,onClose:ce}=this.props;$(a),ce()}),(0,o.A)(this,"handleDup",y=>{y.stopPropagation();const{item:a,onDup:$,onClose:ce}=this.props;$(a),ce()}),(0,o.A)(this,"handleMove",y=>{y.stopPropagation();const{onMove:a,isSelect:$,item:ce,onClose:de}=this.props;a(ce,!$),de()}),(0,o.A)(this,"handleRemove",y=>{y.stopPropagation();const{item:a,onRemove:$,onClose:ce}=this.props;$(a),ce()}),(0,o.A)(this,"handleAddToOrg",y=>{y.stopPropagation();const{item:a,onOrg:$,onClose:ce}=this.props;$(a),ce()}),this.menuItems=[{isShow:!!_.onEdit,label:I18N.LibraryContainer.edit,onClick:this.handleMenuItemsEdit},{isShow:!!_.onDup,label:I18N.LibraryContainer.make_a_copy,onClick:this.handleDup},{isShow:!!_.onMove,label:I18N.LibraryContainer.move_to,onClick:this.handleMove},{isShow:!!_.onRemove,label:I18N.LibraryContainer.delete,onClick:this.handleRemove},{isShow:!!_.onOrg&&this.props.canAddToOrg,label:I18N.LibraryContainer.add_to_org,onClick:this.handleAddToOrg}]}render(){const{targetNode:_}=this.props;return(0,h.jsx)(r.A,{menuItems:this.menuItems,targetNode:_,direction:"down",distance:2})}}},84177:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>h});var o=e(74059),m=e(51044),g=e(60185),l=e(26437),C=e(21676);const T=C.Ay.div.withConfig({displayName:"styles__StyledFloatPreviewPanel",componentId:"sc-ffws6-0"})(["&.fixed-size{position:absolute;z-index:105;width:320px;border:1px solid ",";border-radius:10px;overflow-x:hidden;overflow-y:auto;background-color:",";display:flex;justify-content:center;box-shadow:0 2px 10px rgba(39,54,78,0.08),0 12px 40px rgba(39,54,78,0.15);img{object-fit:contain;width:","px;max-width:100%;}}&.is-auto-size{position:absolute;z-index:105;.content{width:auto;height:auto;padding:16px;border:1px solid ",";border-radius:10px;overflow-x:hidden;overflow-y:auto;background-color:",";display:flex;justify-content:center;box-shadow:0 2px 10px rgba(39,54,78,0.08),0 12px 40px rgba(39,54,78,0.15);}img{width:","px;}}"],E=>E.theme.color_btn_secondary_active,E=>E.theme.color_bg_canvas,E=>E.width/2,E=>E.theme.color_btn_secondary_active,E=>E.theme.color_bg_canvas,E=>E.width),A=(E,N)=>{let z=E,S=N;return z>=S&&z>512&&(z=512,S=512/E*N),S>z&&S>512&&(S=512,z=512/N*E),[z,S]};var k=e(53955),p=e(57464);const r=320,x=462,f=56,u=8,b=20;class h extends m.PureComponent{constructor(N){super(N),(0,o.A)(this,"setRef",z=>this.$menu=z),(0,o.A)(this,"loadSuccess",z=>{const{isAutoSize:S}=this.props;if(S){const[_,y]=A(z.width,z.height);this.setState({imgWidth:_,imgHeight:y},()=>{const{sourceNodePosition:a}=this.getPosition();this.setState({position:a})})}else this.setState({imgWidth:z.width})}),(0,o.A)(this,"handleWheel",z=>{(z.ctrlKey||z.metaKey)&&z.preventDefault()}),(0,o.A)(this,"getTargetNode",()=>{const{targetNode:z,popupsPanelName:S,layout:_,isAutoSize:y}=this.props,a=_!=="old_right";let $=y&&a?26:8;const ce=document.getElementById(S).getBoundingClientRect(),de=ce?ce.left:0,fe=ce?ce.width:0,{left:se,right:J}=z.getBoundingClientRect();return $=a?de+fe+$-J:$+se-de,{distance:$,direction:a?"right":"left"}}),(0,o.A)(this,"getPosition",()=>{const{targetNode:z}=this.props,{direction:S,distance:_}=this.getTargetNode(),{sourceNodePosition:y}=(0,l.A)(z,this.$menu,{direction:S,distance:_,forceDirection:!0});return{sourceNodePosition:y}}),this.state={position:{},imgWidth:0,show:!1},this.el=document.createElement("div")}componentDidMount(){const{isAutoSize:N,getImgSrc:z}=this.props;if(document.body.appendChild(this.el),N)setTimeout(()=>{this.setState({show:!0})},500);else{const{sourceNodePosition:S}=this.getPosition();this.setState({position:S})}this.$menu&&this.$menu.addEventListener("wheel",this.handleWheel,{passive:!1}),(0,k.uc)(z(),this.loadSuccess)}componentWillUnmount(){document.body.removeChild(this.el)}render(){const{isAutoSize:N,getImgSrc:z}=this.props,{position:S,imgWidth:_,imgHeight:y=0,show:a}=this.state,$=N?y+b*2:x,ce=document.documentElement.clientHeight,de=S.top<=f?f:ce-S.top-$<=u?ce-$-u:S.top,fe={...S,height:$,width:N?_+b*2:r,top:de};return(0,g.createPortal)((0,p.jsx)(T,{className:N?"is-auto-size":"fixed-size",ref:this.setRef,style:fe,width:_,children:_&&(N?a&&(0,p.jsx)("div",{className:"content",children:(0,p.jsx)("img",{src:z(),alt:""})}):(0,p.jsx)("img",{src:z(),alt:""}))}),this.el)}}},78060:(Et,ke,e)=>{"use strict";e.d(ke,{Y:()=>x});var o=e(51044),m=e(72605),g=e(78570),l=e(98386),C=e(11777),T=e(7290),A=e(84177),k=e(21676);const p=k.Ay.div.withConfig({displayName:"style__StyledFloatPreviewIcon",componentId:"sc-xvp2aq-0"})(["display:flex;justify-content:center;align-items:center;.svgContainer{width:16px;height:16px;}svg{width:100%;height:100%;border-radius:4px;background-color:rgba(51,51,51,0.5);&:hover{background-color:rgba(51,51,51,0.7);}}"]);var r=e(57464);const x=f=>{let{className:u="",getImgSrc:b,onToggleHover:h}=f;const[E,N]=(0,o.useState)(!1),z=(0,m.d4)(g.bP),S=(0,m.d4)(l.B8),_=(0,o.useRef)(null),y=(0,o.useRef)(null),a=de=>{N(de),h&&h(de)},$=de=>{de.buttons===0&&(clearTimeout(_.current),a(!0))},ce=()=>{_.current=setTimeout(()=>{a(!1)},500)};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p,{className:u,children:(0,r.jsx)(C.A,{content:I18N.Resources.preview,direction:"down",children:(0,r.jsx)("div",{className:"svgContainer",onMouseEnter:$,onMouseLeave:ce,ref:y,children:(0,r.jsx)(T.C,{name:"design/templates/preview"})})})}),E&&(0,r.jsx)("div",{style:{display:"none"},onMouseEnter:$,onMouseLeave:ce,children:(0,r.jsx)(A.A,{layout:z,targetNode:y.current,getImgSrc:b,popupsPanelName:S})})]})}},5775:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>h});var o=e(74059),m=e(51044),g=e(86634),l=e.n(g),C=e(17534),T=e(21676);const A=T.Ay.li.withConfig({displayName:"styles__StyledIconItem",componentId:"sc-13dftct-0"})(["position:relative;display:flex;justify-content:center;align-items:center;width:100%;height:40px;font-size:16px;cursor:pointer;.library-icon-item{width:20px;height:20px;color:",";&.is_multi_color{width:24px;height:24px;}}&:hover{background:",";}"],E=>E.theme.color_text_L2,E=>E.theme.color_btn_secondary_hover);var k=e(33270),p=e(67122),r=e(40684),x=e(59041),f=e(15915),u=e(25960),b=e(57464);class h extends m.Component{constructor(){super(...arguments),(0,o.A)(this,"handleNoticeUpgrade",()=>{MB.notice({text:(0,b.jsxs)("p",{children:["You can ",(0,b.jsx)("a",{style:{color:"#fff"},onClick:()=>this.handleOpenPaymentPage(MB.currentOrg),children:"upgrade"})," to use premium templates."]}),showClose:!0,duration:0,isReactDom:!0})}),(0,o.A)(this,"handleOpenPaymentPage",()=>{const{icon:{id:N,cid:z,groupCid:S}}=this.props;if(ENV.IS_WONDER_SHARE)this.handleNoticeUpgrade();else{const{checkoutPlace:_,payEntrance:y}=(0,k.FS)(r.C),a={mode:"mat",payEntrance:y,checkoutArea:"proto",checkoutPlace:_,templateCid:z||S,templateName:N,templateCategory:r.C};MB.global.popupHelper.chargeAsync(a)}}),(0,o.A)(this,"handleClick",N=>{const{icon:z,isMultiColorIcon:S,onSetCurrentNodeIcon:_}=this.props;if(MB.global.experienceLoginModalHelper("isSave"))return;const{show:y}=(0,k.K1)(S,MB.user);if(y){if(!(0,f._5)()){this.handleOpenPaymentPage();return}(0,x.z)()}if(_){_(z,S);return}const{iconName:a,iconDisplayName:$}=(0,u.RU)(z);MB.action("entry:items:set:icon",{icon:z,iconName:a,iconDisplayName:$,isMultiColorIcon:S})}),(0,o.A)(this,"handleDown",N=>{const{isMultiColorIcon:z,icon:S,onMouseDown:_,onSetCurrentNodeIcon:y}=this.props;if(MB.global.experienceLoginModalHelper("isSave"))return;const{show:a}=(0,k.K1)(z,MB.user);if(a){if(!(0,f._5)()){this.handleOpenPaymentPage();return}(0,x.z)()}if(y){y(S,z);return}const{iconName:$,iconDisplayName:ce}=(0,u.RU)(S);_(N,S,$,ce)}),(0,o.A)(this,"handDoubleClick",N=>{const{isMultiColorIcon:z,icon:S,onDoubleClick:_,onSetCurrentNodeIcon:y}=this.props;if(MB.global.experienceLoginModalHelper("isSave"))return;const{show:a}=(0,k.K1)(z,MB.user);if(a){if(!(0,f._5)()){this.handleOpenPaymentPage();return}(0,x.z)()}if(y){y(S,z);return}const{iconName:$,iconDisplayName:ce}=(0,u.RU)(S);_(N,S,$,ce)})}render(){const{icon:N,style:z,index:S,isMultiColorIcon:_}=this.props,{view_box:y,path:a,id:$,groupCid:ce}=N,de=N.fill?{fill:N.fill}:N.stroke?{stroke:N.stroke}:{};let fe=a;if(_){const se=new DOMParser,J='<svg xmlns="http://www.w3.org/2000/svg">'+a+"</svg>",D=se.parseFromString(J,"text/html").querySelector("svg"),R={id:[],class:[]},V=((N==null?void 0:N.cid)||(N==null?void 0:N.groupCid)||(0,C.xc)())+S;(0,p.rD)(D,V,R),(0,p.kP)(D,V,R),fe="<g>"+(D==null?void 0:D.innerHTML)+"</g>"}return(0,b.jsx)(A,{className:"mt-exposure-observer",style:z,onMouseDown:this.handleDown,onClick:this.handleClick,onDoubleClick:this.handDoubleClick,"data-cid":$,"data-resources-cid":ce,children:(0,b.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:l()("library-icon-item svg-icon",{fill:!_},{is_multi_color:_}),viewBox:y,dangerouslySetInnerHTML:{__html:fe},...de})})}}},38473:(Et,ke,e)=>{"use strict";e.d(ke,{N:()=>h});var o=e(51044),m=e(72605),g=e(86634),l=e.n(g),C=e(60081),T=e(7775),A=e(7290),k=e(2743),p=e(68496),r=e(21676);const x=r.Ay.div.withConfig({displayName:"styles__StyledIconSettings",componentId:"sc-l3y2zr-0"})(["&.color-settings{height:24px;margin:12px 0;padding:0 12px;display:flex;align-items:center;flex-shrink:0;justify-content:space-between;.left-box{display:flex;justify-content:space-between;align-items:center;}.color-button{position:relative;width:20px;height:20px;border-radius:2px;border:1px solid ",";cursor:pointer;overflow:hidden;transition:border-color 0.2s ease-out;background-image:linear-gradient(45deg,#ccc 25%,transparent 0),linear-gradient(-45deg,#ccc 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ccc 0),linear-gradient(-45deg,transparent 75%,#ccc 0);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0;background-clip:padding-box;&:hover{border-color:",";}.inner{width:20px;height:20px;border-radius:1px;}}.color-text{color:",";line-height:21px;margin-left:5px;margin-right:5px;}.color-size{width:68px;margin-right:0;}.select-box{position:relative;.select-more-svg{position:absolute;top:8px;left:8px;}.select-icon-set{width:112px;height:28px;padding-left:24px;&:lang(en){width:120px}button{flex:1;}}}}&.is-monochrome{.color-size{margin-right:6px;}}.icon-seeting-library{position:relative;margin-left:auto;margin-right:4px;display:flex;color:",";.svg-icon{width:16px;height:16px;}.unread-icon{top:-5px;right:-5px;}&:hover{color:",";}}"],N=>N.theme.color_btn_secondary_active,N=>N.theme.color_text_L3,N=>N.theme.color_text_L2,N=>N.theme.color_text_L2,N=>N.theme.color_text_L2),f=(0,r.DU)(["#IBOT_SELECT_MENU_ROOT{.SelectMenuPortal .WorkspaceSelectMenu{max-height:","px;}}"],N=>N.height),u=(0,r.DU)(["#IBOT_SELECT_MENU_ROOT{.SelectMenuPortal .WorkspaceSelectMenu.icon-setting-menu{top:calc(100% + 4px) !important;&.is-open{width:120px;}}}"]);var b=e(57464);function h(N){const{iconType:z,iconDefaultColor:S,iconDefaultSize:_,iconTabs:y,isMultiColorIcon:a}=N,$=(0,m.wA)(),[ce,de]=(0,o.useState)(240),fe=D=>{$({type:"entry:update:iconinfo",payload:{iconDefaultSize:Number(D)}})},se=D=>{$({type:"icon-panel:set:iconType",payload:{iconType:D}})},J=(y==null?void 0:y.length)>1,ve=J?N.iconTabs.map(D=>({label:I18N.Popups.iconCat[D]||D,value:D})):[];return(0,o.useEffect)(()=>{$({type:"icon-panel:set:iconType",payload:{iconType:"All"}})},[]),(0,o.useEffect)(()=>{const D=()=>{const O=document.querySelector(".select-icon-set");if(!O)return 240;const{top:Ce}=O.getBoundingClientRect();return document.body.clientHeight-62-Ce},R=D();de(R);const V=()=>{const O=D();de(O)};return window.addEventListener("resize",V),()=>{window.removeEventListener("resize",V)}},[]),(0,b.jsxs)(x,{className:l()("color-settings",!a&&"is-monochrome"),children:[(0,b.jsxs)("div",{className:"left-box",children:[(0,b.jsx)(C.A,{className:"color-size",precision:0,min:12,max:99999,suffix:"px",value:_,optionList:E,menuClassName:"icon-setting-menu",onConfirm:fe}),!a&&(0,b.jsx)(k.R_,{attr:"iconDefaultColor",color:S,onChange:(D,R)=>{$({type:"entry:update:iconinfo",payload:{[R]:(0,p.t0)(D)}})}})]}),!a&&J&&(0,b.jsxs)("div",{className:"select-box",children:[(0,b.jsx)(A.C,{name:"design/templates/select-more",className:"select-more-svg"}),(0,b.jsx)(T.mq,{value:z,optionList:ve,onChange:se,className:"select-icon-set"}),(0,b.jsx)(f,{height:ce})]}),(0,b.jsx)(u,{})]})}const E=[12,14,16,24,32,48,100].map(N=>({label:N+"px",value:N}))},35187:(Et,ke,e)=>{"use strict";e.d(ke,{e:()=>g});var o=e(21676);const m="0.15s",g=o.Ay.div.withConfig({displayName:"ImageWrapper__StyledImageWrapper",componentId:"sc-1a2jgrx-0"})(["position:relative;display:flex;align-items:center;justify-content:center;border-radius:4px;background-color:",";transition:all "," ease-in-out;&.svg-icon-path-item .library-icon-item{width:36px;height:36px;}img{max-width:100%;max-height:100%;border-radius:4px;pointer-events:none;}.svg-icon{color:",';}&::after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;border-radius:4px;border:2px solid transparent;transition:all '," ease-in-out;}.actions{z-index:1;position:absolute;display:flex;bottom:8px;right:8px;opacity:0;transition:all "," ease-in-out;&.hover{opacity:1;.btn-box{background:rgba(51,51,51,0.7);}}.flag-action{margin-right:4px;.library-tag{color:",";.rect{opacity:0.37;}}}.btn-box{width:18px;height:18px;border-radius:4px;display:flex;align-items:center;justify-content:center;background:rgba(51,51,51,0.5);&:hover{background:rgba(51,51,51,0.7);}}.library-menu{color:",";width:16px;height:16px;rect{fill:none;}}}.image-type{position:absolute;top:2px;left:2px;padding:0 6px;height:24px;line-height:24px;font-size:20px;text-align:center;color:",";background:",";border-radius:1px;transform:scale(0.5);transform-origin:0 0;transition:all "," ease-in-out;}.dynamic-flag{display:flex;align-items:center;justify-content:center;position:absolute;top:2px;left:2px;width:16px;height:16px;background:",";border-top-left-radius:2px;.icon{width:8px;}}&.is-select{.image-type,.dynamic-flag{opacity:0;}&::after{border:1px solid ",";}}&.is-more-select{.actions{opacity:0;pointer-events:none;}}&:not(.is-select){&:hover,&.hover{background:",";.image-type,.dynamic-flag{opacity:0;}.actions{opacity:1;}&:not(.combo)::after{border:2px solid ",";}}}"],l=>l.theme.color_btn_secondary_active,m,l=>l.theme.color_text_L2,m,m,l=>l.theme.color_text_L1,l=>l.theme.color_text_L1,l=>l.theme.color_text_L2,l=>l.theme.color_btn_secondary_active,m,l=>l.theme.color_bg_border_02,l=>l.theme.color_proto,l=>l.theme.color_bg_white,l=>l.theme.color_proto)},87704:(Et,ke,e)=>{"use strict";e.d(ke,{e:()=>r});var o=e(51044),m=e(72605),g=e(8066),l=e(7290),C=e(21676),T=e(86634),A=e.n(T),k=e(95230),p=e(57464);const r=f=>{let{layout:u}=f;const b=(0,m.wA)(),h=E=>{var N;u!==E&&(b({type:"entry:update:preference-layout_v8",payload:{layout_v8:E}}),b({type:"left-panel:set:width",payload:{width:E==="old_right"?k.sR:k.Cj,projectCid:(N=MB.getRootProject())==null?void 0:N.cid}}))};return(0,p.jsx)(g.A,{className:"set-layout-dropdown",renderOpener:(0,p.jsx)(l.C,{name:"common/set-layout-dropdown",className:"more-icon",size:24}),direction:"right",renderMenu:(0,p.jsxs)(x,{className:A()("set-layout-dropdown-menu"),children:[(0,p.jsxs)("li",{className:"item-menu left",onMouseDown:()=>h("recommend"),children:[(0,p.jsx)(l.C,{name:"toolbar/selected",className:A()("selected-icon",{show:u==="recommend"})}),(0,p.jsx)(l.C,{name:"left_panel/layout/left",className:"layout-icon"}),(0,p.jsx)("span",{className:"title",children:I18N.LeftSidePanel.left_aligned})]}),(0,p.jsxs)("li",{className:"item-menu right",onMouseDown:()=>h("old_right"),children:[(0,p.jsx)(l.C,{name:"toolbar/selected",className:A()("selected-icon",{show:u==="old_right"})}),(0,p.jsx)(l.C,{name:"left_panel/layout/right",className:"layout-icon"}),(0,p.jsx)("span",{className:"title",children:I18N.LeftSidePanel.right_aligned})]})]})})},x=C.Ay.ul.withConfig({displayName:"LayoutDropDown__StyledLayoutMenu",componentId:"sc-1m8444o-0"})(["width:126px;background:",";box-shadow:",";border-radius:8px;color:",";border:1px solid ",";padding:8px;&:lang(en){width:166px;}li.item-menu{list-style:none;height:28px;padding-left:16px;padding-right:14px;display:flex;align-items:center;cursor:pointer;&:hover{background:",";}.selected-icon{opacity:0;width:8px;&.show{opacity:1;}}.layout-icon{width:20px;margin:0 4px 0 8px;}}li.item-menu{border-radius:4px;}"],f=>f.theme.color_bg_white,f=>f.theme.shadow_m,f=>f.theme.color_text_L1,f=>f.theme.color_bg_border_01,f=>f.theme.color_btn_secondary_hover)},75501:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>T});var o=e(74059),m=e(51044),g=e(21676);const l=g.Ay.div.withConfig({displayName:"styles__StyledLoadingStyles",componentId:"sc-1pby6la-0"})(["display:grid;grid-row-gap:8px;grid-column-gap:8px;grid-template-columns:repeat(auto-fill,","px);padding-left:12px;.template-box{.template-cover{border-radius:6px;border:1px solid ",";}.template-info{margin-top:4px;height:20px;border-radius:4px;}}@keyframes skeleton-loading{0%{background-position:100% 50%;}to{background-position:0 50%;}}.skeleton-loading{background:",";background-size:400% 100%;animation:skeleton-loading 1.4s ease infinite;}"],A=>A.width,A=>A.theme.color_bg_border_01,A=>A.theme.loading_styles_bg);var C=e(57464);class T extends m.PureComponent{constructor(k){super(k),(0,o.A)(this,"setComponentRef",p=>this.box=p),(0,o.A)(this,"arrayWithNumber",p=>[...Array(p).keys()]),this.state={count:20}}componentDidMount(){const{itemWidth:k,itemHeight:p}=this.props,r=this.box.getBoundingClientRect().height,x=this.box.getBoundingClientRect().width,f=r/(p+10+24)*(x/(k+8));this.setState({count:Math.ceil(f)})}render(){const{itemWidth:k,itemHeight:p}=this.props,{count:r}=this.state,x=this.arrayWithNumber(r);return(0,C.jsx)(l,{className:"template-list",ref:this.setComponentRef,width:k,children:x.map(f=>(0,C.jsxs)("div",{className:"template-box",children:[(0,C.jsx)("div",{className:"template-cover skeleton-loading",style:{width:k,height:p}}),(0,C.jsx)("div",{className:"template-info skeleton-loading"})]},f))})}}},48985:(Et,ke,e)=>{"use strict";e.d(ke,{D:()=>E,W:()=>N});var o=e(51044),m=e(86634),g=e.n(m),l=e(83984),C=e(11777),T=e(7290),A=e(77211),k=e(33270),p=e(78060),r=e(12856),x=e(21676);const f=x.Ay.li.withConfig({displayName:"styles__StyledMarketTemplateItem",componentId:"sc-eeidlb-0"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer;position:relative;margin-bottom:8px;.img-wrapper{position:relative;display:flex;align-items:center;justify-content:center;padding:10px;background:",";border-radius:6px;border:1px solid ",";overflow:hidden;.operation-box{position:absolute;bottom:6px;right:6px;display:flex;align-items:center;justify-content:center;column-gap:6px;z-index:1;}.operation{display:flex;align-items:center;opacity:0;.svgContainer{width:16px;height:16px;.open-folder{width:16px;height:16px;border-radius:4px;background-color:rgba(51,51,51,0.5);&:hover{background-color:rgba(51,51,51,0.7);}}}}&::after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;border-radius:6px;opacity:0;transition:opacity 0.2s ease-in-out;}&:hover,&.is-hover{&::after{opacity:0.1;}.operation{opacity:1;}.preview-button{display:block;}}img{max-width:100%;max-height:100%;pointer-events:none;}}.template-name{width:80%;margin-top:6px;line-height:16px;text-align:center;color:",";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.preview-button{display:none;position:absolute;width:109px;height:24px;color:#fff;text-align:center;line-height:24px;background:rgba(0,0,0,0.5);border-bottom-right-radius:4px;border-bottom-left-radius:4px;bottom:0;z-index:1;}svg.sign{position:absolute;top:3px;right:3px;z-index:0;}img.sign{position:absolute;top:6px;right:6px;z-index:0;}"],z=>z.theme.color_bg_card,z=>z.theme.color_bg_border_01,z=>z.theme.color_text_L2),u=x.Ay.img.withConfig({displayName:"styles__StyledResourcesSign",componentId:"sc-eeidlb-1"})(["width:28px;height:16px;flex:0 0 28px;&.small{width:21px;height:12px;flex:0 0 21px;}&.isMockitt{width:46px;height:16px;}&.discount{width:47px;}"]),b=x.Ay.div.withConfig({displayName:"styles__StyledNewResourcesSign",componentId:"sc-eeidlb-2"})(["display:flex;svg{width:18px;fill:none;border-radius:4px;&.small{width:16px;}}img{height:16px;}"]);var h=e(57464);const E=(0,o.memo)(z=>{const{className:S,itemKey:_,cid:y,isBasicOrScreen:a,projectMetaCid:$,platform:ce,flatItemType:de,ssZoomMode:fe,policy:se,is_purchased:J,name:ve,isShowSign:D,isShowFolderIcon:R,isVisible:V,isShowFloatPreviewPanel:O,isShowFloatPreviewIcon:Ce,onMouseDown:ae,onCreate:q,onMouseUp:K,onToggleHoverPreviewIcon:xe,onShowTipsByTarget:te,onOpenFolder:H,onSetElementRef:re,onGetImgSrc:be,handMouseEnter:Le,handMouseLeave:Ve}=z;return V?(0,h.jsxs)(f,{className:g()("template-item mt-exposure-observer",S,ce,{"is-basic-or-screen":a}),ref:re,onMouseDown:ae,onDoubleClick:q,onMouseUp:K,"data-cid":_,"data-resources-cid":y,"data-project-cid":$,onMouseEnter:Ne=>Le&&Le(Ne),onMouseLeave:Ne=>Ve&&Ve(Ne),children:[(0,h.jsxs)("div",{className:g()("img-wrapper",{"is-hover":O}),children:[(0,h.jsx)(A.Ay,{projectMetaCid:$,snapshotKey:_,isVisible:V,mode:de==="rResCanvas"?l.rY.PNG_CANVAS:l.rY.PNG_PAGE,ssZoomMode:fe}),(0,h.jsxs)("div",{className:"operation-box",children:[R&&(0,h.jsx)("div",{className:"operation folder",onClick:H,children:(0,h.jsx)(C.A,{content:I18N.Resources.folder,direction:"down",children:(0,h.jsx)("div",{className:"svgContainer",children:(0,h.jsx)(T.C,{className:"open-folder",name:"design/templates/folder"})})})}),Ce&&(0,h.jsx)(p.Y,{className:"operation preview",getImgSrc:be,onToggleHover:xe})]}),D&&(0,h.jsx)(N,{resources:{policy:se,is_purchased:J},isCard:!0})]}),(0,h.jsx)(C.A,{content:ve,direction:"down",isShowTipsByTarget:te,children:(0,h.jsx)("span",{className:"template-name",children:ve})})]}):(0,h.jsx)(r.a,{item:{key:_,mtCid:y},onSetTemplateRef:re},_)}),N=z=>{let{resources:S,isSmall:_=!1,isCard:y=!1}=z;const{isPurchased:a,isVipTemplate:$,isMdVipTemplate:ce}=(0,k.f9)(S);if(ENV.IS_ON_PREMISES)return null;if(a)return(0,h.jsx)(u,{className:g()("sign purchased",{small:_}),src:"/mb-workspace/images/nav/mt_purchased@"+(y?"card":_?"21":"28")+".png"});if($){const de=ce?"art_board/community_resources/md_vip":"art_board/community_resources/mkt_vip",fe=ce?"/mb-proto2/images/nav/md_vip.png":"/mb-proto2/images/nav/mt_vip.png";return(0,h.jsx)(b,{children:ENV.IS_WONDER_SHARE?(0,h.jsx)(T.C,{className:g()("sign",{small:_}),name:de,isColorPure:!0}):(0,h.jsx)("img",{className:"sign",src:fe})})}return null}},99173:(Et,ke,e)=>{"use strict";e.d(ke,{L:()=>N,A:()=>z});var o=e(51044),m=e(86634),g=e.n(m),l=e(95230),C=e(31211),T=e(31632),A=e(21676),k=e(36349);const p=(0,A.Ay)(k.A).withConfig({displayName:"styles__StyledScrollableMarketTemplateMasonryList",componentId:"sc-15mlyhq-0"})(["height:100%;overflow:hidden auto;margin-bottom:8px;.market-template-masonry-list-container{width:250px;}"]),r=A.Ay.div.withConfig({displayName:"styles__StyledMarketTemplateMasonryList",componentId:"sc-15mlyhq-1"})(["width:100%;height:fit-content;&.combo_group{padding:0 12px;}&.screen_list,&.project_basic{padding:1px 12px 0 12px;&.mobile{display:flex;justify-content:space-between;}}"]),x=A.Ay.ul.withConfig({displayName:"styles__StyledMarketTemplateMasonryColumn",componentId:"sc-15mlyhq-2"})(["&.combo_group{display:grid;grid-row-gap:8px;grid-column-gap:8px;grid-template-columns:repeat(auto-fill,109px);.template-item{width:109px;flex:0 0 109px;position:relative;width:100%;justify-content:start;.img-wrapper{width:100%;height:109px;}}}&.screen_list,&.project_basic{width:100%;&.mobile{width:calc(50% - 4px);.template-item{.img-wrapper{min-height:109px;max-height:265px;border-radius:6px;}}}.template-item{position:relative;width:100%;&.last-mt-item{margin-bottom:0;}.img-wrapper{width:100%;min-height:150px;max-height:510px;border:1px solid ",";padding:0px;}}}"],S=>S.theme.color_bg_border_02);var f=e(40684),u=e(12856),b=e(57464);function h(S){const{marketTemplateItemList:_,category:y="",platform:a,currentResources:$,containerRect:ce,isShowSign:de,isShowFolderIcon:fe,masonryColumn:se,onTrack:J,onPaidTemplates:ve,onPaidResources:D,onOpenFolder:R}=S,V=_==null?void 0:_.length,O=(0,o.useMemo)(()=>["project_basic","screen_list"].includes(y),[y]),[Ce,ae]=(0,o.useState)(2),q=(0,o.useRef)(null),K=(0,o.useRef)(0),xe=(0,o.useCallback)(()=>{K.current>=V||(ae(H=>H+1),K.current+=1,q.current=requestAnimationFrame(xe))},[V]);(0,o.useEffect)(()=>(q.current=requestAnimationFrame(xe),()=>{cancelAnimationFrame(q.current),ae(1),K.current=0}),[xe]);let te=(0,o.useMemo)(()=>V&&Ce<V-1?V*200+"px":"fit-content",[V,Ce]);return y===f.t_&&(te="fit-content"),(0,b.jsx)(x,{className:g()("market-template-masonry-column",y&&y,a&&a),style:{minHeight:te},children:_==null?void 0:_.slice(0,Ce).map((H,re)=>{const be=$||(H==null?void 0:H.marketTemplateSource),Le=re===V-1,Ve=()=>{ve&&ve(),D&&D(H.marketTemplateSource)};return"hotAttr"in H&&"marketTemplateSource"in H?(0,b.jsx)(C.A,{className:g()(Le&&"last-mt-item"),marketTemplate:H,currentResources:be,containerRect:ce,isShowSign:de,isShowFolderIcon:fe,onTrack:J,onPaidTemplates:Ve,onOpenFolder:R},H.key):(0,b.jsx)(u.a,{item:{key:H.key,mtCid:H.mtCid||(be==null?void 0:be.cid)}},H.key)})})}function E(S){const{marketTemplateItemList:_,platform:y,category:a,currentResources:$,...ce}=S,de=y||($==null?void 0:$.platform),fe=a||($==null?void 0:$.category),se=["project_basic","screen_list"].includes(fe)&&de==="mobile"?2:1,J=(0,o.useMemo)(()=>(0,T.He)(_,se),[_,se]);return J.length<1?null:(0,b.jsx)(r,{className:g()("market-template-masonry-list-container",fe&&fe,de&&de),children:J.map((ve,D)=>(0,b.jsx)(h,{marketTemplateItemList:ve,category:fe,platform:de,currentResources:$,masonryColumn:se,...ce},"masonry-column-"+(D+1)))})}function N(S){return(0,b.jsx)(p,{className:"scrollable-marketTemplate-masonry",style:{width:l.qv},children:_=>(0,b.jsx)(E,{...S,containerRect:_})})}const z=(0,o.memo)(E)},12856:(Et,ke,e)=>{"use strict";e.d(ke,{a:()=>C});var o=e(51044),m=e(21676),g=e(77211),l=e(57464);const C=A=>{const{item:k,onSetTemplateRef:p}=A;return(0,l.jsx)(T,{ref:p,className:"sample mt-exposure-observer","data-cid":k.key,"data-resources-cid":k.mtCid,children:(0,l.jsx)("img",{src:g.V})},k.key)},T=m.Ay.li.withConfig({displayName:"SampleTemplateItem__StyledSampleTemplateItem",componentId:"sc-114ge1i-0"})(["&.sample{display:flex;align-items:center;justify-content:center;flex:0 0 109px;width:100%;height:109px;margin-bottom:28px;background:",";border-radius:4px;pointer-events:none;}"],A=>A.theme.color_bg_card)},31211:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>fe});var o=e(74059),m=e(72605),g=e(51044),l=e(63508),C=e(77211),T=e(40684),A=e(76347),k=e(33270),p=e(24660),r=e(78647),x=e(47143),f=e(61535),u=e(54606),b=e(98386),h=e(78570),E=e(34161),N=e(83984),z=e(52781),S=e(84177),_=e(57464);const y=se=>{let{targetElement:J,getImgSrc:ve,onToggleHover:D,children:R}=se;const[V,O]=(0,g.useState)(!1),Ce=(0,m.d4)(h.bP),ae=(0,m.d4)(b.B8),q=(0,g.useRef)(null),K=re=>{O(re),D&&D(re)},xe=re=>{re.buttons===0&&K(!0)},te=()=>{clearTimeout(q.current),K(!1)},H=re=>{re.buttons===0&&K(!0)};return(0,_.jsxs)(_.Fragment,{children:[R(xe,te),V&&(0,_.jsx)("div",{style:{display:"none"},onMouseEnter:H,onMouseLeave:te,children:(0,_.jsx)(S.A,{layout:Ce,targetNode:J,getImgSrc:ve,popupsPanelName:ae,isAutoSize:!0})})]})};var a=e(59041),$=e(15915),ce=e(48985);class de extends g.PureComponent{constructor(J){super(J),(0,o.A)(this,"setElementRef",ve=>this.$elem=ve),(0,o.A)(this,"setRef",ve=>this.$element=ve),(0,o.A)(this,"updateIsVisible",()=>{this.setState({isVisible:this.isInBoundingClientRect()})}),(0,o.A)(this,"handleOpenPaymentPage",ve=>{const D=(0,p.l)(ve,"","");MB.global.popupHelper.chargeAsync(D)}),(0,o.A)(this,"handleNoticeUpgrade",ve=>{MB.notice({text:(0,_.jsxs)("p",{children:["You can ",(0,_.jsx)("a",{style:{color:"#fff"},onClick:()=>this.handleOpenPaymentPage(ve),children:"upgrade"})," to use premium templates."]}),showClose:!0,duration:0,isReactDom:!0})}),(0,o.A)(this,"handleMouseDown",ve=>{ve.persist(),this.isDown=!0,this.startX=ve.clientX,this.startY=ve.clientY,this.$elem.addEventListener("mousemove",this.handleMouseMove)}),(0,o.A)(this,"handleMouseMove",async ve=>{this.isDown&&(Math.abs(ve.clientX-this.startX)>1||Math.abs(ve.clientY-this.startY)>1)&&(await this.handleDown(ve),this.isDown=!1)}),(0,o.A)(this,"handleMouseUp",()=>{this.isDown=!1,this.startX=0,this.startY=0,this.$elem.removeEventListener("mousemove",this.handleMouseMove)}),(0,o.A)(this,"handleDown",async ve=>{var D;const{currentResources:R,marketTemplate:V,currentEditorMode:O,ghostItemCids:Ce,showDragMode:ae,isAdsorbentReferenceLine:q,popupsPanelName:K,currentUser:xe,currentOrg:te,mtResourceSdkStoreMap:H,dispatch:re,onPaidTemplates:be}=this.props;if(MB.global.experienceLoginModalHelper("isSave"))return;const{show:Le}=(0,k.o3)(R,xe);if(Le){if(!(0,$._5)()){if(ENV.IS_WONDER_SHARE)this.handleNoticeUpgrade(te);else{const{isMktMember:ft}=(0,l.s)(xe,MB.currentOrg);if(ft){re({type:"modal:update:state",payload:{resourcePurchaseModal:{isOpen:!0,resources:R,currentOrg:te,paidCallback:be}}});return}const{cid:mt,title:i,category:gt}=R,{checkoutPlace:Je,payEntrance:Pt}=(0,k.FS)(gt),{isMdVipTemplate:bt}=(0,k.f9)(R),qt={mode:bt?"solo":"mat",payEntrance:Pt,checkoutArea:"proto",checkoutPlace:Je,templateCid:mt,templateName:i,templateCategory:gt};MB.global.popupHelper.chargeAsync(qt);return}return}(0,a.z)()}const Ve=(D=document.getElementById(K))==null?void 0:D.getBoundingClientRect(),Ne=H.get(R.cid);if(!Ne)return;const We=MB.getCanvasRect(),ze=MB.getScale();(0,A.Su)({e:ve,marketTemplate:V,mtSdkStore:Ne,doNotCreateRect:Ve,canvasRect:We,scale:ze,currentEditorMode:O,ghostItemCids:Ce,callback:()=>{this.onRequestUpdateRecentImportResources(),this.addTrack(E.k8.Drag)},showDragMode:ae,isAdsorbentReferenceLine:q})}),(0,o.A)(this,"handleCreate",async ve=>{const{currentResources:D,marketTemplate:R,currentUser:V,currentOrg:O,mtResourceSdkStoreMap:Ce,dispatch:ae,onPaidTemplates:q}=this.props;if(ve.persist(),ve.stopPropagation(),MB.global.experienceLoginModalHelper("isSave"))return;const{show:K}=(0,k.o3)(D,V);if(K){if(!(0,$._5)()){if(ENV.IS_WONDER_SHARE)this.handleNoticeUpgrade(O);else{const{isMktMember:H}=(0,l.s)(V);if(H){ae({type:"modal:update:state",payload:{resourcePurchaseModal:{isOpen:!0,resources:D,currentOrg:O,paidCallback:q}}});return}const{cid:re,title:be,category:Le}=D,{checkoutPlace:Ve,payEntrance:Ne}=(0,k.FS)(Le),{isMdVipTemplate:We}=(0,k.f9)(D),ze={mode:We?"solo":"mat",payEntrance:Ne,checkoutArea:"proto",checkoutPlace:Ve,templateCid:re,templateName:be,templateCategory:Le};MB.global.popupHelper.chargeAsync(ze)}return}(0,a.z)()}const xe=MB.getScale(),te=Ce.get(D.cid);te&&((0,A.ob)({e:ve,marketTemplate:R,store:te,scale:xe}),this.onRequestUpdateRecentImportResources(),this.addTrack(E.k8.DoubleClick))}),(0,o.A)(this,"addTrack",ve=>{const{onTrack:D,currentResources:R,marketTemplate:{key:V,hotAttr:{name:O}}}=this.props;MB.commonGuideHelper.closeGuide(r.c.GUIDE_RESOURCES_SHOW),D&&D(V,ve,R,O)}),(0,o.A)(this,"onRequestUpdateRecentImportResources",()=>{const{marketTemplate:{key:ve,type:D},currentResources:{cid:R}}=this.props,V={projectUpperType:D,projectUpperCid:R,itemCid:ve};(0,z.Cp)(V)}),(0,o.A)(this,"onToggleHoverPreviewIcon",ve=>{this.setState({isShowFloatPreviewPanel:ve})}),(0,o.A)(this,"onShowTipsByTarget",(ve,D)=>D.offsetWidth<D.scrollWidth),(0,o.A)(this,"handleOpenFolder",ve=>{ve.stopPropagation();const{onOpenFolder:D,currentResources:R}=this.props;D&&D(R)}),(0,o.A)(this,"getImgSrc",()=>{const{marketTemplate:ve,isFloatPreviewMkt:D}=this.props,{projectMetaCid:R,key:V,hotAttr:{type:O},category:Ce}=ve,ae=D&&Ce===T.t_?N.BU.ZOOM_200:N.BU.ZOOM_100;return(0,C.NI)({flpakKey:R,ssKey:V,ssTaskMode:O==="rResCanvas"?N.rY.PNG_CANVAS:N.rY.PNG_PAGE,ssZoomMode:ae})}),this.state={isVisible:!1,isShowFloatPreviewPanel:!1}}componentDidMount(){const{containerRect:J}=this.props,{isVisible:ve}=this.state;J&&(ve||(this.updateIsVisible(),this.timer=null))}componentDidUpdate(){const{isVisible:J}=this.state;J||this.updateIsVisible()}isInBoundingClientRect(){const{containerRect:J,xContainerRect:ve,preloadDistance:D=150}=this.props;if(!J||!this.$elem)return!1;const R=this.$elem.getBoundingClientRect(),V=R.bottom>J.top&&R.top-D<J.bottom;return ve?V&&R.right>ve.left&&R.left<ve.right:V}render(){const{className:J,marketTemplate:ve,currentResources:D,isShowSign:R,isShowFolderIcon:V,isFloatPreviewMkt:O}=this.props,{isVisible:Ce,isShowFloatPreviewPanel:ae}=this.state,{key:q,category:K,hotAttr:{name:xe,type:te},projectMetaCid:H}=ve,re=["project_basic","screen_list"].includes(K),be=re?"wf320":void 0;return O?(0,_.jsx)(y,{getImgSrc:this.getImgSrc,targetElement:this.$elem,children:(Le,Ve)=>(0,_.jsx)(ce.D,{className:J,itemKey:q,cid:D.cid,isBasicOrScreen:re,projectMetaCid:H,platform:D.platform,flatItemType:te,ssZoomMode:be,policy:D.policy,is_purchased:D.is_purchased,name:xe,isShowSign:R,isShowFolderIcon:!!V,isVisible:Ce,isShowFloatPreviewPanel:ae,isShowFloatPreviewIcon:!O,onMouseDown:this.handleMouseDown,onCreate:this.handleCreate,onMouseUp:this.handleMouseUp,onToggleHoverPreviewIcon:this.onToggleHoverPreviewIcon,onShowTipsByTarget:this.onShowTipsByTarget,onOpenFolder:this.handleOpenFolder,onSetElementRef:this.setElementRef,onGetImgSrc:this.getImgSrc,handMouseEnter:Le,handMouseLeave:Ve})}):(0,_.jsx)(ce.D,{className:J,itemKey:q,cid:D.cid,isBasicOrScreen:re,projectMetaCid:H,platform:D.platform,flatItemType:te,ssZoomMode:be,policy:D.policy,is_purchased:D.is_purchased,name:xe,isShowSign:R,isShowFolderIcon:!!V,isVisible:Ce,isShowFloatPreviewPanel:ae,isShowFloatPreviewIcon:!O,onMouseDown:this.handleMouseDown,onCreate:this.handleCreate,onMouseUp:this.handleMouseUp,onToggleHoverPreviewIcon:this.onToggleHoverPreviewIcon,onShowTipsByTarget:this.onShowTipsByTarget,onOpenFolder:this.handleOpenFolder,onSetElementRef:this.setElementRef,onGetImgSrc:this.getImgSrc})}}(0,o.A)(de,"defaultProps",{isShowSign:!0,isFloatPreviewMkt:!0});const fe=(0,m.Ng)(se=>{const J=(0,u.r)(se),ve=(0,f.GO)(se),D=(0,h.PI)(se),R=(0,h.k3)(se),V=(0,b.B8)(se),O=(0,x.HW)(se),Ce=(0,x.wA)(se),ae=(0,b.fm)(se),q=(0,h.bP)(se);return{currentEditorMode:J,ghostItemCids:ve,showDragMode:D,isAdsorbentReferenceLine:R,popupsPanelName:V,currentUser:O,currentOrg:Ce,mtResourceSdkStoreMap:ae,layout:q}})(de)},49798:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>A});var o=e(51044),m=e(93677),g=e(21676);const l=g.Ay.div.withConfig({displayName:"styles__StyledNoBuiltinWidgets",componentId:"sc-exacig-0"})(["display:flex;flex-direction:column;align-items:center;margin-top:120px;width:100%;img{width:88px;height:88px;margin-bottom:24px;}.tips{margin:27px 0;color:#7d8694;text-align:center;}.tips-link{margin:auto 8px;text-align:center;a{color:",";text-decoration:underline;}}.no-link{display:inline-flex;color:#1684fc;text-decoration:underline;cursor:pointer;}"],k=>k.theme.color_text_link_normal),C=g.Ay.div.withConfig({displayName:"styles__StyledNoSearchItemInHistory",componentId:"sc-exacig-1"})(["display:flex;flex-direction:column;align-items:center;margin-top:120px;img{margin-top:160px;width:67px;height:69px;}"]);var T=e(57464);function A(k){const{keyword:p,theme:r,hasNoTips2:x,onHandleClickSquarePanel:f}=k,u=r==="dark"?"/mb-workspace/images/workspace/design/no_starred_panel_dark.png":"/mb-workspace/images/workspace/design/no_starred_panel.png";return(0,T.jsx)(T.Fragment,{children:p?(0,T.jsx)(C,{children:(0,T.jsx)(m.b,{isNeedLink:!1})}):(0,T.jsxs)(l,{children:[(0,T.jsx)("img",{src:u,alt:""}),(0,T.jsx)("p",{className:"no-tips1",children:I18N.Resources.Nothing}),!x&&(0,T.jsxs)("p",{className:"no-tips2",children:[I18N.Resources.go," ",(0,T.jsx)("span",{className:"no-link",onClick:f,children:I18N.Resources.square})," ",I18N.Resources.look]})]})})}},93677:(Et,ke,e)=>{"use strict";e.d(ke,{b:()=>x});var o=e(74059),m=e(51044),g=e(72605),l=e(63686),C=e(78570),T=e(95230),A=e(27605),k=e(57464);class p extends m.PureComponent{render(){const{theme:u,isNeedLink:b}=this.props;return(0,k.jsxs)(A.k,{className:"search-no-results",children:[(0,k.jsx)("img",{src:"/mb-workspace/images/workspace/design/"+(u===T.Sx.DARK?"no_icons_dark":"no_icons_light")+".png",alt:""}),(0,k.jsx)("div",{className:"action-container",children:(0,k.jsx)("p",{className:"tips",children:I18N.Popups.content_not_found})}),b&&(0,k.jsx)("p",{className:"tips-link",dangerouslySetInnerHTML:{__html:I18N.Resources.search_no_results.feedback.replace(/%href%/,I18N.link.link_feedback)}})]})}}(0,o.A)(p,"defaultProps",{isNeedLink:!0});const r=(0,l.Mz)([C.O4],f=>({theme:f})),x=(0,g.Ng)(f=>r(f))(p)},5783:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>m});var o=e(21676);const m=o.Ay.aside.withConfig({displayName:"PopupPanel",componentId:"sc-cvia0u-0"})(["width:250px;height:72vh;min-height:468px;box-sizing:content-box;background:",";border-radius:8px;border:1px solid ",";box-shadow:",";display:flex;flex-direction:column;& > header{height:36px;display:flex;justify-content:space-between;align-items:center;background:",";& > .title{margin-left:10px;pointer-events:none;color:",";&.customize-title{pointer-events:unset;display:flex;}&.template-title{display:flex;align-items:center;pointer-events:unset;.question-action{height:14px;margin-left:6px;color:",";.svg-icon{width:14px;height:14px;}&:hover{color:",";}}}}& > .icon{width:30px;height:32px;line-height:32px;color:",";text-align:center;cursor:pointer;&:hover{color:",";}.times-icon{width:8px;height:8px;}}}& > footer{height:40px;padding-right:10px;display:flex;justify-content:flex-end;align-items:center;background:",";.footer-button{padding:10px;&.is-active{color:",";}}}"],g=>g.theme.color_bg_white,g=>g.theme.color_bg_border_01,g=>g.theme.shadow_l,g=>g.theme.color_btn_secondary_active,g=>g.theme.color_text_L2,g=>g.theme.color_text_L3,g=>g.theme.color_text_L2,g=>g.theme.color_text_L3,g=>g.theme.color_text_L2,g=>g.theme.color_bg_white,g=>g.theme.color_primary_brand01)},87416:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>x});var o=e(74059),m=e(51044),g=e(86634),l=e.n(g),C=e(7290),T=e(11777),A=e(48985),k=e(21676);const p=k.Ay.div.withConfig({displayName:"styles__StyledResourcesCard",componentId:"sc-wqgh6p-0"})(["display:block;position:relative;width:109px;cursor:pointer;.flex-row{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;}&:hover,&.is-hover{.template-cover .btn-box{display:flex;}.template-cover .img-box{&::after{opacity:0.1;}}}&:hover .template-cover .btn-box{display:flex;}.template-cover{position:relative;height:82px;background:",";background-size:48px auto;border-radius:6px;border:1px solid ",";overflow:hidden;.img-box{height:82px;width:109px;position:relative;&::after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;border-radius:4px;background-color:#1f292e;opacity:0;transition:opacity 0.2s ease-in-out;}.template-cover-image{width:100%;height:100%;object-fit:cover;}svg.sign{position:absolute;top:3px;right:3px;}img.sign{position:absolute;top:6px;right:6px;}}.btn-box{display:none;position:absolute;width:18px;height:18px;bottom:8px;right:8px;border-radius:4px;align-items:center;justify-content:center;background:rgba(51,51,51,0.5);.temp-star-btn{width:8px;height:11px;path{fill:#fff;}}&.isStarred{background:",";}&:not(.isStarred):hover{background:rgba(51,51,51,0.7);}}}.template-info{margin-top:4px;display:flex;align-items:center;justify-content:center;.template-title{color:",";font-size:12px;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}"],f=>f.cover?"none":"url(/images/square/template_default_cover.svg) no-repeat center #f7f7f7",f=>f.theme.color_bg_border_01,f=>f.theme.color_proto,f=>f.theme.color_text_L2);var r=e(57464);class x extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleClickCard",async()=>{const{marketTemplate:u,onClickCard:b}=this.props;b(u)}),(0,o.A)(this,"handleStarTemplate",async u=>{u.stopPropagation();const{onStarTemplates:b,marketTemplate:h}=this.props;b(h)}),(0,o.A)(this,"onShowTipsByTarget",(u,b)=>b.offsetWidth<b.scrollWidth)}render(){const{marketTemplate:u,marketTemplate:{cid:b,cover:h,title:E},isStared:N,className:z}=this.props;return(0,r.jsxs)(p,{"data-cid":b,cover:h,className:l()("template-box",z),onClick:this.handleClickCard,children:[(0,r.jsxs)("div",{className:"template-cover",children:[(0,r.jsxs)("div",{className:"img-box",children:[h&&(0,r.jsx)("img",{className:"template-cover-image",src:h}),(0,r.jsx)(A.W,{resources:u,isCard:!0})]}),(0,r.jsx)("div",{className:l()("btn-box",{"isStarred ":N}),onClick:this.handleStarTemplate,children:(0,r.jsx)(T.A,{content:N?I18N.Resources.stared:I18N.Resources.star,direction:"down",children:(0,r.jsx)(C.C,{className:l()("temp-star-btn"),name:"art_board/resources/star/small"})})})]}),(0,r.jsx)("div",{className:"template-info",children:(0,r.jsx)(T.A,{content:E,direction:"down",isShowTipsByTarget:this.onShowTipsByTarget,children:(0,r.jsx)("div",{className:"template-title",children:E})})})]})}}},84919:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>r});var o=e(51044),m=e(86634),g=e.n(m),l=e(7290),C=e(55624),T=e(21676);const A=T.Ay.div.withConfig({displayName:"styles__StyledFindResourcesCollapsePanel",componentId:"sc-1ouj5xp-0"})(["&.resources-list{&.expanded{.card-header{margin-bottom:6px;.left .arrow-icon{transform:rotate(90deg);}}}&.screen_list,&.combo-group,&.combo_group{&.noCollapse{margin-bottom:8px;.card-header{padding-left:","px;}}&.expanded .card-header{margin-bottom:8px;}.card-header{padding-left:","px;padding-right:4px;.left .arrow-icon{margin-left:0;margin-top:0;}}}.card-header{height:32px;display:flex;align-items:center;justify-content:space-between;width:calc(100% - 6px);.left{max-width:77%;display:flex;align-items:center;font-size:12px;font-weight:500;color:",";cursor:pointer;.arrow-icon{width:6px;height:8px;margin:1px 10px 0 10px;flex-shrink:0;text-align:center;transition:transform 0.2s ease-in-out;color:",";}.card-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}.right{display:flex;align-items:center;height:100%;color:",";cursor:pointer;.arrow-right{width:6px;height:10px;margin-left:10px;}}&.float{position:absolute;top:119px;z-index:2;width:226px;background-color:#fff;margin-bottom:0;}}.resources-card-list{display:grid;grid-row-gap:8px;grid-column-gap:8px;grid-template-columns:repeat(auto-fill,109px);}}"],x=>x.level*12,x=>x.level*12,x=>x.theme.color_text_L1,x=>x.theme.sce_svg_arrow_icon_color,x=>x.theme.color_text_L3);var k=e(57464);const r=x=>{const{index:f=0,title:u,onClickResources:b,children:h,className:E,canCollapse:N=!0,dataCid:z="",level:S=1}=x,[_,y]=(0,o.useState)([]),a=ce=>{if(!N)return;const de=JSON.parse(JSON.stringify(_));de[ce]=!de[ce],y(de)},$=()=>b&&b();return(0,k.jsxs)(A,{"data-cid":z,className:g()("resources-list",E,{expanded:!_[f]},{noCollapse:!N}),level:S,children:[(0,k.jsxs)("div",{className:"card-header",children:[(0,k.jsxs)("div",{className:"left",onClick:()=>a(f),children:[N&&(0,k.jsx)(l.C,{className:"arrow-icon",name:"new/arrow_1/mini"}),(0,k.jsx)("p",{className:"card-title",children:u})]}),!!b&&(0,k.jsxs)("div",{className:"right",onClick:$,children:[(0,k.jsx)("p",{children:I18N.Popups.iconCat.All}),(0,k.jsx)(l.C,{className:"arrow-right",name:"design/arrow/right"})]})]}),(0,k.jsx)(C.A,{className:"collapse-box",collapse:!!_[f],children:h})]})}},42903:(Et,ke,e)=>{"use strict";e.d(ke,{l:()=>A});var o=e(51044),m=e(67217),g=e(99842),l=e(33270),C=e(84655),T=e(57464);class A extends o.PureComponent{render(){const{showSearch:p,showStar:r=!0,resources:x,layoutV9:f,onStartTemplates:u,onBack:b,onSearch:h}=this.props,{title:E}=x,{isStar:N}=(0,l.f9)(x);return(0,T.jsxs)(C.Wp,{children:[(0,T.jsx)(g.H,{title:E,resources:x,layoutV9:f,showSearch:p,onBack:b,onSearch:h}),r&&(0,T.jsx)(m.X,{isStar:N,onClick:()=>u==null?void 0:u(x)})]})}}},72117:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>R});var o=e(72605),m=e(63686),g=e(74059),l=e(51044),C=e(86634),T=e.n(C),A=e(75501),k=e(42903),p=e(7290),r=e(84655),x=e(57464);class f extends l.PureComponent{render(){const{resources:{amount:O,discount_amount:Ce},isMktMember:ae,hasDiscount:q,onMemberClick:K,onBuySeparately:xe}=this.props,te=q?I18N.Resources.resourcesFooter.member_discount_purchase.replace(/%price%/,Number(Ce).toFixed(2)):I18N.Resources.resourcesFooter.buy_separately.replace(/%price%/,Number(O).toFixed(2));return(0,x.jsxs)(r.xk,{children:[(0,x.jsx)("div",{className:"footer-btn alone",onClick:()=>xe(),children:te}),!ae&&(0,x.jsxs)("div",{className:"footer-btn vip",onClick:K,children:[(0,x.jsx)(p.C,{name:"art_board/resources/mkt_vip"}),(0,x.jsx)("span",{children:I18N.Resources.resourcesFooter.free_for_member_1})]})]})}}var u=e(93677),b=e(46479),h=e(99173),E=e(78647),N=e(5868),z=e(98195),S=e(33270),_=e(52781),y=e(99920),a=e(10052),$=e(91344),ce=e(89399);class de extends l.PureComponent{constructor(){var O;super(...arguments),O=this,(0,g.A)(this,"state",{searchLoading:!1,searchList:null}),(0,g.A)(this,"handleStartTemplates",async()=>{const{onStarTemplates:Ce}=this.props;Ce()}),(0,g.A)(this,"handleTrack",(Ce,ae,q,K)=>{const{rootProject:xe,onTrack:te}=this.props;te(Ce,ae,q,K,xe)}),(0,g.A)(this,"handleSearch",function(Ce,ae){ae===void 0&&(ae=z.lS.Detail);const{currentResources:q,mtResourcesMtItemListMap:K}=O.props,{cid:xe}=q,te=K.get(xe);if(O.setState({searchList:null}),Ce){const H=new RegExp((0,N.$)(Ce),"i");if(te&&te.length>0){O.setState({searchLoading:!0});const re=te.filter(be=>{var Le;return H.test((Le=be.hotAttr)==null?void 0:Le.name)});setTimeout(()=>{O.setState({searchLoading:!1,searchList:re})},1e3)}}}),(0,g.A)(this,"handleBySeparately",()=>{if(MB.global.experienceLoginModalHelper("isSave"))return;const{currentResources:Ce,currentOrg:ae,onPaidTemplates:q,dispatch:K}=this.props;K({type:"modal:update:state",payload:{resourcePurchaseModal:{isOpen:!0,resources:Ce,currentOrg:ae,paidCallback:q,isFooter:!0}}})}),(0,g.A)(this,"handleMemberClick",()=>{if(MB.global.experienceLoginModalHelper("isSave"))return;const{currentResources:Ce}=this.props,{category:ae}=Ce||{};let q="",K="";ae==="combo_group"?(q="\u7F16\u8F91\u533A-v8_\u539F\u578B\u7D20\u6750\u9762\u677F-\u7EC4\u4EF6_\u8D2D\u4E70VIP",K="workspace-v8_components_buy_vip"):ae==="screen_list"?(q="\u7F16\u8F91\u533A-v8_\u539F\u578B\u7D20\u6750\u9762\u677F-\u9875\u9762_\u8D2D\u4E70VIP",K="workspace-v8_pages_buy_vip"):(q="\u7F16\u8F91\u533A-v8_\u539F\u578B\u7D20\u6750\u9762\u677F-\u4F1A\u5458\u7D20\u6750_\u8D2D\u4E70VIP",K="workspace-v8_template_buy_vip");const xe={mode:"mat",payEntrance:q,checkoutArea:"proto",checkoutPlace:K};MB.global.popupHelper.chargeAsync(xe)})}async componentDidMount(){const{currentResources:O,mtResourcesMtItemListMap:Ce,onBack:ae,dispatch:q}=this.props,{cid:K}=O;if(!((Ce==null?void 0:Ce.get(K))||await(0,_.Yk)(K))){ae&&ae();return}q({type:"entry:resources:init:marketTemplateItemList:map",payload:{resourcesCids:[K]}})}componentWillUnmount(){MB.commonGuideHelper.closeGuide(E.c.GUIDE_RESOURCES_SHOW),$.A.emit(ce.P2,{shownMtItemCids:[]})}render(){const{currentResources:O,mtResourcesMtItemListMap:Ce,className:ae,onBack:q,currentUser:K,onPaidTemplates:xe,layoutV9:te}=this.props,{searchLoading:H,searchList:re}=this.state,{cid:be}=O,Le=Ce.get(be),Ve=!Le,Ne=re||Le,We=Ne&&Ne.length===0,{show:ze,hasDiscount:ft,isMktMember:mt}=(0,S.o3)(O,K),i=ze&&!ENV.IS_WONDER_SHARE;return(0,x.jsxs)(r.em,{className:ae,children:[(0,x.jsx)(k.l,{resources:O,layoutV9:te,onBack:q,onStartTemplates:this.handleStartTemplates,onSearch:this.handleSearch}),Ve?(0,x.jsx)(A.A,{itemWidth:109,itemHeight:109}):H?(0,x.jsx)(y.qt,{children:(0,x.jsxs)("div",{className:"loading-container",children:[(0,x.jsx)(b.ft,{className:"loading"}),(0,x.jsx)("span",{children:I18N.Resources.searching.load})]})}):We?(0,x.jsx)(u.b,{isNeedLink:!re}):(0,x.jsxs)(fe,{list:Ne,children:[(0,x.jsx)("div",{className:T()(E.c.GUIDE_RESOURCES_SHOW+" marketTemplate-list",{showSign:i}),children:(0,x.jsx)(h.L,{currentResources:O,marketTemplateItemList:Ne,isShowSign:!1,onTrack:this.handleTrack,onPaidTemplates:xe})}),i&&(0,x.jsx)(f,{isMktMember:mt,hasDiscount:ft,resources:O,onBuySeparately:this.handleBySeparately,onMemberClick:this.handleMemberClick})]})]})}}const fe=V=>{let{list:O,children:Ce}=V;return(0,l.useEffect)(()=>{const ae=(0,a.R9)({source:"detail",list:O});$.A.emit(ce.jy,{observeMtItemObj:ae}),$.A.emit(ce.BD)},[O]),Ce};var se=e(94153),J=e(47143),ve=e(78570);const D=(0,m.Mz)([se.AC,J.PL,J.HW,J.wA,ve.MZ],(V,O,Ce,ae,q)=>({mtResourcesMtItemListMap:V,rootProject:O,currentUser:Ce,currentOrg:ae,layoutV9:q})),R=(0,o.Ng)(V=>D(V),null,null,{forwardRef:!0})(de)},84655:(Et,ke,e)=>{"use strict";e.d(ke,{Wp:()=>g,em:()=>m,xk:()=>l});var o=e(21676);const m=o.Ay.div.withConfig({displayName:"styles__StyledResourcesDetailPanel",componentId:"sc-6eofzn-0"})(["height:100%;flex:1;display:flex;flex-direction:column;overflow:hidden;.resources-details-search{width:calc(100% - 28px);height:28px;}.marketTemplate-list{overflow:hidden;height:100%;&.showSign{height:calc(100% - 40px - 48px);}}&.search-resources-detail-panel{.marketTemplate-list{&.showSign{height:calc(100% - 48px);}}}.search-no-results{flex:1;justify-content:center;img{margin-top:0;}.tips-link{margin:8px;}}"]),g=o.Ay.header.withConfig({displayName:"styles__StyledResourcesHeader",componentId:"sc-6eofzn-1"})(["padding:0 14px 8px 8px;display:flex;align-items:center;justify-content:space-between;.star{flex:0 0 24px;margin-left:4px;}"]),l=o.Ay.footer.withConfig({displayName:"styles__StyledResourcesDetailFooter",componentId:"sc-6eofzn-2"})(["width:100%;padding:0 12px;height:48px;display:flex;align-items:center;background:",";.footer-btn{width:110px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:4px;font-size:12px;cursor:pointer;&.alone{border:1px solid rgba(179,140,75,0.2);color:#b38c4b;}&.vip{width:118px;background:#415058;margin-left:10px;color:#ffdca9;.svg-icon{width:13px;margin-right:4px;}}}"],C=>C.theme.color_bg_white)},31632:(Et,ke,e)=>{"use strict";e.d(ke,{Ci:()=>l,He:()=>p,QD:()=>T,gT:()=>C});var o=e(40684),m=e(63555),g=e(46664);const l=async r=>{const x=new Map,f=new Map;if(r){const{market_template:b,project_metas:h}=r,E=b.category===o.C,N=b.category===o.t_;if(!E){var u;const z=(u=h[0])==null?void 0:u.cid,S=await(0,g.vs)(z),_=k(S,N),y=A(b,z,_);x.set(b.cid,y),f.set(b.cid,{projectMetaList:h})}}return{marketTemplateItemListMap:x,marketTemplateListDataMap:f}},C=(r,x)=>{const{project_metas:f,keys:u}=r;let b=[];if(u!=null&&u.length&&f!=null&&f.length&&x){const{cid:h}=f[0],E=Object.values(x[h]);b=A(r,h,E)}return b},T=function(r,x,f){f===void 0&&(f=[]);const u=k(f);return A(r,x,u)},A=function(r,x,f){var u;if(f===void 0&&(f=[]),!r||!x||!f||((u=f)==null?void 0:u.length)<1)return[];const{category:b,policy:h}=r,E=[];return f.forEach(N=>{if(N){const[z,S,_]=N;((_==null?void 0:_.bunch)===m.x.RbPage?!(_!=null&&_.asFolder):!0)&&E.push({key:z,sup:S,hotAttr:_,category:b,policy:h,type:b,projectMetaCid:x,marketTemplateSource:r})}}),E},k=function(r,x){var f;return r===void 0&&(r=[]),x===void 0&&(x=!1),(f=r)!=null&&f.length?x?r.filter(u=>{var b;return((b=u[(u==null?void 0:u.length)-1])==null?void 0:b.bunch)===m.x.RbPage}):r.filter(u=>{var b;return((b=u[(u==null?void 0:u.length)-1])==null?void 0:b.type)===m.x.Canvas}):[]},p=function(r,x){if(x===void 0&&(x=2),!r||(r==null?void 0:r.length)<1)return[];if(!Number.isInteger(x)||x<2)return[r];const f=new Map([...Array.from(new Array(x)).map((b,h)=>[h,[]])]),u=new Map([...Array.from(new Array(x)).map((b,h)=>[h,0])]);try{for(let b of r){if(!b||!b.hotAttr||!b.hotAttr.h)continue;const{hotAttr:{h,w:E}}=b,N=Math.min(E/320*h,800),z=[...u.values()],S=Math.min(...z),_=z.indexOf(S);f.get(_).push(b),u.set(_,N+S)}}catch(b){console.log(b.message)}return[...f.values()]}},99842:(Et,ke,e)=>{"use strict";e.d(ke,{H:()=>u});var o=e(74059),m=e(51044),g=e(86634),l=e.n(g),C=e(19722),T=e(11777),A=e(9819),k=e(48985),p=e(21676);const r=p.Ay.div.withConfig({displayName:"styles__StyledResourcesDetailSearch",componentId:"sc-10x3nsf-0"})(["display:flex;align-items:center;justify-content:space-between;flex:1;&.resources-details-search{width:calc(100% - 28px);}.back{display:flex;align-items:center;color:",";cursor:pointer;overflow:hidden;flex:1;margin-right:8px;.arrow-left{margin-right:4px;flex:0 0 24px;.svg-icon{width:6px;height:10px;transform:rotate(-180deg);}}.template-title{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.sign{margin-left:8px;}}.right{display:flex;align-items:center;justify-content:flex-end;flex:0 0 24px;.search-bar{border-radius:6px;}&.isSearching{flex:1;}.search-icon{svg.svg-icon{width:13px;height:14px;}}.search-bar.is-searching{height:24px;}}&.isSearching{.back{flex:0 0 24px;margin-right:4px;}.right{flex:1;}}"],b=>b.theme.color_text_L1),x=p.Ay.div.withConfig({displayName:"styles__StyledResourcesDetailSearchV9",componentId:"sc-10x3nsf-1"})(["display:flex;align-items:center;justify-content:space-between;flex:1;&.resources-details-search{width:calc(100% - 28px);}.back{display:flex;align-items:center;color:",";cursor:pointer;overflow:hidden;flex:1;margin-right:8px;.arrow-left{margin-right:4px;flex:0 0 24px;.svg-icon{width:6px;height:10px;transform:rotate(-180deg);}}.template-title{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.sign{margin-left:8px;}}.right{display:flex;align-items:center;justify-content:flex-end;flex:0 0 24px;.search-bar{border:1px solid ",";border-radius:6px;background:",";color:",";flex:1;&:hover,&.isFocus{background:",";border-color:",";}}.search-icon{svg.svg-icon{width:13px;height:14px;}}.search-bar.is-searching{height:28px;}}&.isSearching{.back{flex:0 0 24px;margin-right:4px;}.right{flex:1;}}"],b=>b.theme.color_text_L1,b=>b.theme.color_bg_border_02,b=>b.theme.color_bg_white,b=>b.theme.color_text_L3,b=>b.theme.color_bg_white,b=>b.theme.color_text_link_normal);var f=e(57464);class u extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"state",{isSearching:!1}),(0,o.A)(this,"handleCreateRef",h=>this.$ref=h),(0,o.A)(this,"handleToggle",h=>{const E=h!==void 0?h:!this.state.isSearching;this.setState({isSearching:E}),E&&setTimeout(()=>{this.$ref&&this.$ref.focus()})}),(0,o.A)(this,"handleBack",()=>{const{isSearching:h}=this.state,{onSearch:E,onBack:N}=this.props;h?(E==null||E(""),this.handleToggle(!1)):N()}),(0,o.A)(this,"onShowTipsByTarget",(h,E)=>E.offsetWidth<E.scrollWidth)}render(){const{showSearch:h,title:E,iconName:N,resources:z,onSearch:S,layoutV9:_}=this.props,{isSearching:y}=this.state;return(0,f.jsxs)(r,{className:l()("resources-details-search",{isSearching:y}),children:[(0,f.jsxs)("div",{className:"back",onClick:this.handleBack,children:[(0,f.jsx)(C.A,{name:N||"design/arrow/right",className:"arrow-left"}),y?null:(0,f.jsx)(T.A,{content:E,direction:"down",isShowTipsByTarget:this.onShowTipsByTarget,children:(0,f.jsx)("div",{className:"template-title",children:E})}),z&&(0,f.jsx)(k.W,{resources:z})]}),h&&(0,f.jsx)("div",{className:"right",children:y?(0,f.jsx)(A.A,{ref:this.handleCreateRef,className:"search-bar is-searching",value:"",placeholder:I18N.ScreenPanel.keyword_search,onSearch:S}):(0,f.jsx)(C.A,{className:"search-icon",name:"design/scale_search",onClick:this.handleToggle})})]})}}(0,o.A)(u,"defaultProps",{showSearch:!0})},27032:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>l,n:()=>o.n});var o=e(54608),m=e(21676);const l=(0,m.Ay)(o.A).withConfig({displayName:"ResourcesNewSlideNav",componentId:"sc-1lsbkpi-0"})(["height:32px;min-height:32px;.nav-underline{display:none;}.nav-item{flex:none;justify-content:center;font-size:12px;}.nav-item:not(:first-child){margin-left:unset;}.nav-label{flex-shrink:0;}padding:0;margin:8px 6px 4px 6px;.nav-item{color:",";&.active{color:",";font-weight:bold;}}"],C=>C.theme.color_text_L3,C=>C.theme.color_text_L1)},23460:(Et,ke,e)=>{"use strict";e.d(ke,{F:()=>R});var o=e(74059),m=e(51044),g=e(72605),l=e(63686),C=e(86634),T=e.n(C),A=e(19418),k=e(19722),p=e(11777),r=e(9819),x=e(94153),f=e(78570),u=e(10870),b=e(57464);function h(){const V=(0,g.d4)(x.GI),O=(0,g.d4)(f.bP),[Ce,ae]=(0,m.useState)(!1),q=(0,g.wA)(),K=(0,m.useCallback)(H=>q({type:"searchPanel:update:state",payload:{masterKeyword:H}}),[q]),xe=(0,m.useCallback)(()=>{ae(!0)},[]),te=(0,m.useCallback)(H=>{H.stopPropagation(),ae(!1),q({type:"searchPanel:update:state",payload:{masterKeyword:""}})},[q]);return(0,b.jsxs)(u.Ij,{className:T()({"is-search-mode":Ce}),children:[O==="old_right"&&(0,b.jsx)("span",{className:"title old_right-title",children:I18N.LeftPane.master}),(0,b.jsx)(r.A,{className:T()("search-bar",Ce?"is-searching":"default-search"),value:V,placeholder:I18N.LeftSidePanel.keyword_search,onChange:K,onFocus:xe,canClear:!1,renderRightNode:()=>Ce&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"devider search-bar-right-devider"}),(0,b.jsx)("span",{className:"search-bar-exit-word",onClick:te,children:"\u9000\u51FA"})]})})]})}const E=(0,m.memo)(h);var N=e(98386),z=e(47143),S=e(40684),_=e(98195),y=e(51050),a=e(58277),$=e(46664),ce=e(21676);const de=ce.Ay.div.withConfig({displayName:"styles__StyledResourcesPanelHeader",componentId:"sc-gmyrwz-0"})(["height:50px;min-height:50px;align-items:center;justify-content:space-between;padding:0 9px 0 15px;border-bottom:1px solid ",";position:relative;display:none;&.show{display:flex;}&.isSearching{justify-content:left;padding:0 12px 0 8px;}.title{max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:16px;color:",";font-weight:500;&:lang(en){font-weight:600;}}.nav-back-icon{margin-right:4px;svg.svg-icon{width:9px;height:14px;path{stroke:",";fill:none;}}}.search-bar{width:138px;border-radius:13px;background:",";color:#999;&.is-searching{flex:1;.search-icon{path{fill:",";}}}}&:lang(en){justify-content:flex-start;.title{min-width:60px;}.search-bar{width:auto;flex:1;margin-right:6px;}}&.has-ai-icon{justify-content:space-between;}.manage-icon{display:flex;.box-icon{}}.close{svg.svg-icon{width:8px;height:8px;}}.history-panel{position:absolute;top:calc(50% + 18px);left:0;z-index:3;width:250px;padding:16px 0 10px 4px;background:",";box-shadow:0 3px 6px rgba(0,0,0,0.02),0 6px 16px rgba(0,0,0,0.02),0 9px 28px rgba(0,0,0,0.09);.header{width:100%;padding:0 8px;display:flex;align-items:center;justify-content:space-between;span{display:inline-block;color:",";&.clear{cursor:pointer;&:hover{color:",";}}}}.history{padding-bottom:6px;}&.has-history{.hot{padding-top:12px;border-top:1px solid ",";}}.words-container{display:flex;flex-flow:row wrap;align-items:center;max-height:60px;overflow:hidden;span{display:inline-flex;cursor:pointer;color:",";margin:6px 8px;}}}"],V=>V.theme.color_btn_secondary_active,V=>V.theme.color_text_L1,V=>V.theme.color_text_L1,V=>V.theme.color_bg_card,V=>V.theme.color_text_L1,V=>V.theme.color_background_white_modal,V=>V.theme.color_text_L3,V=>V.theme.color_text_L1,V=>V.theme.color_btn_secondary_hover,V=>V.theme.color_text_L1),fe=ce.Ay.div.withConfig({displayName:"styles__StyledResourcesPanelHeaderV9",componentId:"sc-gmyrwz-1"})(["height:46px;min-height:46px;padding:14px 12px 0 12px;position:relative;display:none;&.show{display:flex;}.title{max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:16px;color:",";font-weight:500;&:lang(en){font-weight:600;}}.old_right-title{height:32px;line-height:32px;padding-right:12px;font-size:16px;font-weight:600;}.nav-back-icon{margin-right:4px;svg.svg-icon{width:9px;height:14px;path{stroke:",";fill:none;}}}.search-bar{width:226px;height:32px;border:1px solid ",";border-radius:6px;background:",";color:",";flex:1;&:hover,&.isFocus{background:",";border-color:",";}}&:lang(en){justify-content:flex-start;.title{min-width:60px;}.search-bar{width:auto;flex:1;margin-right:6px;}}&.has-ai-icon{justify-content:space-between;}.devider{width:1px;height:16px;background:",";}.manage-icon{display:flex;.history{width:24px;height:24px;margin:4px;}}.close{margin:4px 0px 4px 8px;svg.svg-icon{width:8px;height:8px;}}.history-panel{position:absolute;top:50px;left:0;z-index:3;width:226px;margin:0 12px;padding:10px 2px;border-radius:8px;border:1px solid ",";background:",";box-shadow:",";.header{width:100%;padding:0 8px;display:flex;align-items:center;justify-content:space-between;span{display:inline-block;color:",";&.clear{cursor:pointer;&:hover{color:",";}}}}.history{padding-bottom:6px;}&.has-history{.devider{width:calc(100% - 16px);height:1px;margin:0 8px;background:",";}.hot{padding-top:12px;}}.words-container{display:flex;flex-flow:row wrap;align-items:center;max-height:60px;overflow:hidden;span{display:inline-flex;cursor:pointer;color:",";margin:6px 8px;}}}"],V=>V.theme.color_text_L1,V=>V.theme.color_text_L1,V=>V.theme.color_bg_border_02,V=>V.theme.color_bg_white,V=>V.theme.color_text_L3,V=>V.theme.color_bg_white,V=>V.theme.color_text_link_normal,V=>V.theme.color_bg_border_02,V=>V.theme.color_bg_border_02,V=>V.theme.color_bg_white,V=>V.theme.shadow_m,V=>V.theme.color_text_L2,V=>V.theme.color_text_L1,V=>V.theme.color_bg_border_01,V=>V.theme.color_text_L1);var se=e(54606);const J=5;class ve extends m.PureComponent{constructor(O){var Ce;super(O),Ce=this,(0,o.A)(this,"titleFromPopupsName",{[_.lS.Builtin]:I18N.LeftSidePanel.widget,[_.lS.Icon]:I18N.LeftSidePanel.icon,[_.lS.Asset]:I18N.LeftSidePanel.image,[_.lS.Page]:I18N.LeftSidePanel.screens,[_.lS.Template]:I18N.LeftSidePanel.master,[_.lS.Flow]:I18N.LeftSidePanel.flow,[_.lS.Mind]:I18N.LeftSidePanel.mind}),(0,o.A)(this,"handleCreateRef",ae=>{this.$ref=ae}),(0,o.A)(this,"handleGetIsFromIconSelectPopup",()=>{const{from:ae}=this.props;return ae===y.Z.iconSelectPopup}),(0,o.A)(this,"handleGetConfig",()=>{const{currentPopupPanel:ae,type:q}=this.props,K=this.handleGetIsFromIconSelectPopup(),xe=K?S.C:q,te=K?I18N.ArtBoard.icon:this.titleFromPopupsName[ae],H=!(ae===_.lS.Template&&!K),re=K?!1:ae!==_.lS.Template;return{type:xe,title:te,isGlobalSearch:H,isShowManage:re}}),(0,o.A)(this,"handleHistoryKeyWords",async()=>{const{historyKeyWords:ae,dispatch:q}=this.props,{isGlobalSearch:K}=this.handleGetConfig();if(!K||ae.length)return;const xe=await(0,$.Tf)();q({type:"searchPanel:update:state",payload:{historyKeyWords:xe.splice(0,J)}})}),(0,o.A)(this,"handleChange",ae=>{const{dispatch:q}=this.props,K=this.handleGetIsFromIconSelectPopup();q(K?{type:"searchPanel:update:state",payload:{iconKeyword:ae}}:{type:"searchPanel:update:state",payload:{keyword:ae}})}),(0,o.A)(this,"handleSearch",async function(ae,q,K){q===void 0&&(q=!1),K===void 0&&(K=!1),await Ce.handleUpdateHistory(ae,q,K)}),(0,o.A)(this,"handleClearHistory",()=>{this.props.dispatch({type:"searchPanel:update:state",payload:{historyKeyWords:[]}}),(0,$.s_)()}),(0,o.A)(this,"handleUpdateHistory",async(ae,q,K)=>{const{currentPopupPanel:xe,historyKeyWords:te,type:H,dispatch:re}=this.props,be=this.handleGetIsFromIconSelectPopup();if(!(xe===_.lS.Template&&!be))if(ae){const Ve=[ae].concat(te.filter(Ne=>Ne!==ae)).splice(0,J);re({type:"searchPanel:update:state",payload:{historyKeyWords:Ve}}),this.handleGlobalSearch(ae,q,K)}else{var Le;this.handleNavBack(),await this.handleFocus(),(Le=this.$ref)==null||Le.focus(),(0,a.vL)({isFromIconSelectPopup:be,keyword:"",panelName:xe,sort:H,count:0})}}),(0,o.A)(this,"handleGlobalSearch",(ae,q,K)=>{const{dispatch:xe,from:te}=this.props,{type:H}=this.handleGetConfig();xe({type:"entry:search-panel:search:from:keyword",payload:{from:te,category:H,isHistoryWord:q,isHotKeyWord:K}}),this.handleToggleIsHideHistory(!!ae)}),(0,o.A)(this,"handleToggleIsHideHistory",ae=>this.setState({isHideHistory:ae})),(0,o.A)(this,"handleOpenHistory",()=>{MB.global.experienceLoginModalHelper("isSave")||(this.props.dispatch({type:"exalt:panel:order",payload:{name:_.lS.History}}),this.props.dispatch({type:"historyPanel:set:show",payload:{show:!0}}))}),(0,o.A)(this,"handleFocus",async()=>{const{isSearching:ae,iconSelectPopupIsSearching:q,isExperience:K}=this.props,te=this.handleGetIsFromIconSelectPopup()?q:ae;this.handleToggleIsSearching(!0),this.handleToggleIsHideHistory(!1),await this.props.dispatch({type:"entry:init:hotKeyWords"}),!te&&!K&&await this.handleHistoryKeyWords()}),(0,o.A)(this,"handleToggleIsSearching",ae=>{const K=this.handleGetIsFromIconSelectPopup()?"iconSelectPopupIsSearching":"isSearching";this.props.dispatch({type:"searchPanel:update:state",payload:{[K]:ae}})}),(0,o.A)(this,"handleNavBack",()=>{this.handleToggleIsSearching(!1);const{dispatch:ae,from:q}=this.props;ae({type:"entry:search-panel:clear:state",payload:{from:q}})}),(0,o.A)(this,"handleBlur",ae=>{let{target:q}=ae;q.closest(".search-bar")||q.classList.contains("words")||q.classList.contains("clear")||this.handleToggleIsHideHistory(!0)}),(0,o.A)(this,"handleSelectWord",async function(ae,q,K){q===void 0&&(q=!1),K===void 0&&(K=!1),Ce.handleChange(ae),await Ce.handleSearch(ae,q,K)}),(0,o.A)(this,"handleFocusSearch",()=>{this.handleFocus();const ae=this.handleGetIsFromIconSelectPopup(),{currentPopupPanel:q}=this.props;(0,a.Qj)({panelName:q,isFromIconSelectPopup:ae})}),this.state={isHideHistory:!1}}render(){const{keyword:O,iconKeyword:Ce,className:ae,hotKeyWords:q,historyKeyWords:K,onClose:xe,show:te,isSearching:H,iconSelectPopupIsSearching:re,currentPopupPanel:be,currentEditMode:Le,layoutV8:Ve,layoutV9:Ne}=this.props,{isHideHistory:We}=this.state,{title:ze,isGlobalSearch:ft,isShowManage:mt}=this.handleGetConfig(),i=this.handleGetIsFromIconSelectPopup(),gt=i?Ce:O,Je=i?re:H,Pt=![_.lS.Flow,_.lS.Mind,_.lS.AI].includes(be)||i,{isEditingProjectMain:bt}=Le||{},qt=!ENV.IS_ON_PREMISES&&[_.lS.Flow,_.lS.Mind].includes(be)&&!i&&bt;return be===_.lS.Template&&!i?(0,b.jsx)(E,{}):(0,b.jsxs)(fe,{className:T()("resourcesPanel-header",{show:te},ae,qt&&be!==_.lS.Page&&"has-ai-icon"),children:[Ve==="old_right"&&(0,b.jsx)("span",{className:"title old_right-title",children:ze}),(0,b.jsx)(r.A,{ref:this.handleCreateRef,className:"search-bar",value:gt,placeholder:ft?I18N.ScreenPanel.search_sea:I18N.ScreenPanel.keyword_search,onChange:this.handleChange,onSearch:this.handleSearch,onFocus:this.handleFocusSearch,canClear:!1,renderRightNode:()=>Je&&ft?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"devider search-bar-right-devider"}),(0,b.jsx)("span",{className:"search-bar-exit-word",onClick:this.handleNavBack,children:"\u9000\u51FA"})]}):mt?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"devider search-bar-right-devider"}),(0,b.jsx)("div",{className:"manage-icon",children:(0,b.jsx)(p.A,{content:I18N.Resources.searchHeader.history,direction:"down",children:(0,b.jsx)("a",{className:"box-icon",onClick:this.handleOpenHistory,children:(0,b.jsx)(k.A,{name:"art_board/widget/history",className:"history"})})})})]}):null}),i&&(0,b.jsx)(k.A,{name:"design/scale_clear",className:"close",onClick:xe}),Je&&ft&&ft&&!We?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:T()("history-panel",{"has-history":K==null?void 0:K.length}),children:[K!=null&&K.length?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"history",children:[(0,b.jsxs)("div",{className:"header",children:[(0,b.jsx)("span",{children:I18N.Resources.searching.recent}),(0,b.jsx)("span",{className:"clear",onClick:this.handleClearHistory,children:I18N.Resources.searching.clear})]}),(0,b.jsx)("div",{className:"words-container",children:K.map(pt=>(0,b.jsx)("span",{className:"words",onClick:()=>this.handleSelectWord(pt,!0),children:pt},pt))})]}),(0,b.jsx)("div",{className:"devider"})]}):null,!ENV.IS_WONDER_SHARE&&q!=null&&q.length?(0,b.jsx)(b.Fragment,{children:(0,b.jsxs)("div",{className:"hot",children:[(0,b.jsx)("div",{className:"header",children:(0,b.jsx)("span",{children:I18N.Resources.searching.hot})}),(0,b.jsx)("div",{className:"words-container",children:q.map(pt=>(0,b.jsx)("span",{className:"words",onClick:()=>this.handleSelectWord(pt,!1,!0),children:pt},pt))})]})}):null]}),(0,b.jsx)(A.A,{target:document,onMouseDown:(0,A.t)(this.handleBlur,{capture:!0})})]}):null]})}}const D=(0,l.Mz)([N.OW,x.y9,x.pM,x.uJ,x.TF,x.F8,x.At,x.Lq,z.W4,z.HW,z.wA,se.r,f.bP,f.MZ],(V,O,Ce,ae,q,K,xe,te,H,re,be,Le,Ve,Ne)=>{let{isExperience:We}=H;return{currentPopupPanel:V,hotKeyWords:O,historyKeyWords:Ce,keyword:ae,iconKeyword:q,isSearching:K,iconSelectPopupIsSearching:xe,type:te,isExperience:We,user:re,org:be,currentEditMode:Le,layoutV8:Ve,layoutV9:Ne}}),R=(0,g.Ng)(V=>D(V))(ve)},27605:(Et,ke,e)=>{"use strict";e.d(ke,{k:()=>m});var o=e(21676);const m=o.Ay.div.withConfig({displayName:"StyledNoItem",componentId:"sc-v7wsa-0"})(["display:flex;flex-direction:column;align-items:center;img{margin-top:160px;width:67px;height:69px;}.tips{margin:24px 0 4px;color:",";text-align:center;}.tips-link{margin:auto 8px;text-align:center;a{color:",";text-decoration:underline;&:hover{color:",";}}}&.search-no-results{img{margin-top:0;}.action-container{display:flex;align-items:center;justify-content:center;height:26px;margin-top:25px;margin-bottom:8px;.tips{margin:0;}.action{cursor:pointer;margin-left:6px;padding-left:3px;padding-right:5px;display:flex;align-items:center;justify-content:center;border-radius:4px;border:1px solid ",";svg.svg-icon{width:24px;height:24px;}span{color:",";}}}}"],g=>g.theme.color_text_L3,g=>g.theme.color_text_link_normal,g=>g.theme.color_text_link_hover,g=>g.theme.color_btn_secondary_active,g=>g.theme.color_text_L1)},67217:(Et,ke,e)=>{"use strict";e.d(ke,{X:()=>r});var o=e(74059),m=e(51044),g=e(86634),l=e.n(g),C=e(11777),T=e(21676),A=e(19722);const k=(0,T.Ay)(A.A).withConfig({displayName:"styles__StyledStarIcon",componentId:"sc-1f8wv2f-0"})(["svg.svg-icon{width:9px;path{fill:transparent;stroke:",";}}&.isStarred{svg.svg-icon{path{fill:",";stroke:",";}}}&:hover{background-color:",";}"],x=>x.theme.color_text_L1,x=>x.theme.color_text_link_normal,x=>x.theme.color_text_link_normal,x=>x.theme.color_background_icon_active);var p=e(57464);class r extends m.PureComponent{render(){const{onClick:f,className:u,isStar:b}=this.props;return(0,p.jsx)(C.A,{content:b?I18N.Resources.stared:I18N.Resources.star,direction:"down",children:(0,p.jsx)(k,{name:"art_board/resources/star/small",className:l()("star",{isStarred:b},u),onClick:f})})}}(0,o.A)(r,"defaultProps",{isStar:!1})},72128:(Et,ke,e)=>{"use strict";e.d(ke,{C:()=>h,Y:()=>b});var o=e(74059),m=e(51044),g=e(86634),l=e.n(g),C=e(7290),T=e(73734),A=e(76347),k=e(14495),p=e(34161),r=e(19284),x=e(57464);const f=E=>{let{type:N,name:z,groupCid:S,rootProject:_,screenMeta:y,showDragMode:a,isAdsorbentReferenceLine:$,popupsPanelName:ce,source:de,keyword:fe=""}=E;return se=>{var J,ve,D;const R=(0,T.gu)({type:N,screen:y}),V=(J=document.getElementById(ce))==null?void 0:J.getBoundingClientRect();(0,A.dD)({e:se,items:[R],width:(ve=R.width)!=null?ve:R.w,height:(D=R.height)!=null?D:R.h,doNotCreateRect:V,callback:()=>{(0,p.Yp)({source:""+de+p.k8.Drag,widgetName:(0,p.KR)(z),groupCid:S,type:N,popupsPanelName:ce,keyword:fe})},rootProject:_,showDragMode:a,isAdsorbentReferenceLine:$})}},u=function(E,N,z,S,_,y,a,$,ce){return ce===void 0&&(ce=""),()=>{const de=(0,T.gu)({type:E,screen:y});(0,A.Q7)([de],de.width||de.h,de.height|de.h),(0,p.Yp)({source:""+a+p.k8.DoubleClick,widgetName:(0,p.KR)(N),groupCid:S,type:E,popupsPanelName:$,keyword:ce})}};class b extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleDown",N=>{const{name:z,groupCid:S,rootProject:_,screenMeta:y,showDragMode:a,isAdsorbentReferenceLine:$,popupsPanelName:ce,source:de,type:fe,keyword:se=""}=this.props;return f({type:fe,name:z,groupCid:S,rootProject:_,screenMeta:y,showDragMode:a,isAdsorbentReferenceLine:$,popupsPanelName:ce,source:de,keyword:se})(N)}),(0,o.A)(this,"handleWidgetItemCreate",()=>{const{type:N,name:z,dispatch:S,groupCid:_,rootProject:y,screenMeta:a,source:$,popupsPanelName:ce,keyword:de=""}=this.props;return u(N,z,S,_,y,a,$,ce,de)()})}render(){var N;const{name:z,type:S,icon:_,keyIcon:y}=this.props;return(0,x.jsxs)(r.X,{"data-guide-id":z,className:l()("widget-item",{"deluxe-widget":(0,k.X3)(S)}),onMouseDown:this.handleDown,onDoubleClick:this.handleWidgetItemCreate,children:[(0,x.jsx)("div",{className:l()("widget-icon-wrapper","w_"+_),children:(0,x.jsx)(C.C,{name:"art_board/widget/"+_})}),(0,x.jsx)("span",{children:((N=I18N.w[z])==null?void 0:N.replace("Chart",""))||z}),y&&(0,x.jsx)(C.C,{className:"widget-key",name:"art_board/widget/"+_+"/"+y,isColorPure:!0})]})}}class h extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"setElementRef",N=>this.$elem=N),(0,o.A)(this,"handleDown",N=>{var z;const{template:S,showDragMode:_,isAdsorbentReferenceLine:y,popupsPanelName:a,dispatch:$}=this.props,ce=(z=document.getElementById(a))==null?void 0:z.getBoundingClientRect();(0,A.ow)({e:N,template:S,doNotCreateRect:ce,callback:()=>{$({type:"state-panel:set:show",payload:{key:"panelStateShow",show:!0}}),(0,p.XG)("\u5DE6\u4FA7\u5E38\u7528\u9762\u677F")},showDragMode:_,isAdsorbentReferenceLine:y})}),(0,o.A)(this,"handleCreate",async N=>{const{template:z,dispatch:S}=this.props;await(0,A.lc)(N,z),S({type:"state-panel:set:show",payload:{key:"panelStateShow",show:!0}})})}render(){const{template:N}=this.props;return(0,x.jsxs)(r.X,{ref:this.setElementRef,className:"widget-item",onMouseDown:this.handleDown,onDoubleClick:this.handleCreate,"data-guide-id":N.name,children:[(0,x.jsx)("div",{className:l()("widget-icon-wrapper","w_"+N.svg_icon),children:(0,x.jsx)(C.C,{name:N.icon})}),(0,x.jsx)("span",{children:N.name})]})}}},19284:(Et,ke,e)=>{"use strict";e.d(ke,{X:()=>g,n:()=>m});var o=e(21676);const m=(0,o.AH)([".widget-icon-wrapper{width:68px;height:46px;display:flex;justify-content:center;.svg-icon{width:68px;height:46px;color:",";*{fill-opacity:1;stroke-opacity:1;}path.noFill{fill:none;}}&.w_text{.svg-icon{path{fill:",";}}}&.w_rectangle,&.w_circle{.svg-icon{rect{fill:",";stroke:",";}}}&.w_circle{.svg-icon{circle{fill:",";stroke:",";}}}&.w_line,&.w_flow_commentRight,&.w_flow_commentLeft,&.w_flow_noteRight,&.w_flow_noteLeft{.svg-icon{path{fill:none;stroke:",";}}}&.w_image,&.w_placeholder{.svg-icon{path{&:nth-child(1){fill:",";}&:nth-child(2){fill:",";}}}}&.w_linkarea{.svg-icon{rect{fill:",";stroke:",";}path{fill:",";stroke:",";}}}&.w_button{.svg-icon{rect{fill:",";stroke:",";}path{fill:",";}}}&.w_button_solid{.svg-icon{rect{fill:",";}path{fill:",";}}}&.w_table,&.w_polygon,&.w_star,&.w_eq_triangle{.svg-icon{path{fill:",";stroke:",";}}}&.w_note{.svg-icon{color:#FFECA8;path{stroke:#FFC85D;}}}&.w_tear{.svg-icon{color:#FFECA8;path{stroke:#FFC85D;}rect{fill:#FFC85D;stroke:",";}}}&.w_arrow{.svg-icon{path{fill:",";}}}&.w_dynamic{.svg-icon{path{&:first-child{fill:",";}&:last-child{fill:",";}}}}&.w_scroll_panel{.svg-icon{rect{fill:",";stroke:",";}path{fill:",";}}}&.w_mind{.svg-icon{rect{&:first-child{fill:",";}&:last-child{fill:",";}}path{&:nth-child(2){fill:",";}&:nth-child(3){fill:none;stroke:",";}}}}&.w_overlay{.svg-icon{rect{&:first-child{fill:",";stroke:",";}&:last-child{fill:",";}}}}&.w_input{.svg-icon{rect{fill:",";stroke:",";}path{fill:",";}}}&.w_textarea{.svg-icon{path{&:nth-child(1){fill:",";stroke:",";}&:nth-child(2){fill:",";}}}}&.w_select{.svg-icon{rect{fill:",";stroke:",";}path{&:nth-last-child(2){fill:",";}&:last-child{fill:",";}}}}&.w_file{.svg-icon{path{&:nth-child(1){fill:",";}&:nth-child(2){fill:",";}&:nth-child(3){fill:",";stroke:",";}}}}&.w_selection_control_radio{.svg-icon{path{fill:",";}}}&.w_selection_control_checkbox,&.w_ios_switch{.svg-icon{path{&:first-child{fill:",";}&:last-child{fill:#fff;}}}}&.w_android_switch{.svg-icon{path{&:first-child{fill:",";}&:last-child{fill:",";}}}}&.w_slider{.svg-icon{path{&:nth-child(1){fill:",";}&:nth-child(2){fill:",";}&:nth-child(3){fill:#fff;stroke:",";}}}}&.w_digital_stepper{.svg-icon{rect{&:nth-child(1),&:nth-child(3){fill:",";}&:nth-child(2),&:nth-child(4){fill:",";stroke:",";}}path{fill:",";}}}&.w_drop_menu{.svg-icon{path{&:nth-child(1),&:nth-child(4){fill:",";}&:nth-child(2){fill:",";}&:nth-child(3),&:nth-child(5){fill:none;stroke:",";}&:nth-child(6){fill:",";}}}}&.w_dynamic_drop_menu{.svg-icon{path{&:last-child{fill:",";}&:first-child{fill:",";}}circle{fill:none;stroke:",";}}}&.w_navigation_menu{.svg-icon{path{fill:",";&:nth-child(1){fill:",";stroke:",";}&:nth-child(2){fill:",";}&:nth-child(3){fill:",";}}}}&.w_navigation_menu_v{.svg-icon{path{&:nth-child(1),&:nth-child(3){fill:",";stroke:",";}&:nth-child(2){fill:",";}&:nth-child(4){stroke:",";}&:nth-child(5){fill:",";}}rect{&:nth-last-child(2){fill:",";}}}}&.w_navigation_menu_h{.svg-icon{path{&:nth-child(1){fill:",";stroke:",";}&:nth-child(2){fill:",";}}rect{fill:",";&:nth-last-child(2){fill:",";}}}}&.w_tree{.svg-icon{path{&:nth-child(1){fill:",";stroke:",";}&:nth-child(2){fill:",";}&:nth-child(3),&:nth-child(5){fill:",";}&:nth-child(4){stroke:",";}}}}&.w_tabs{.svg-icon{rect{fill:",";}path{fill:",";}}}&.w_pagination_mobile{.svg-icon{path{&:nth-child(1),&:nth-child(3){stroke:",";}&:nth-child(2){fill:",";}}}}&.w_pagination_web{.svg-icon{rect{&:nth-child(1),&:nth-child(3),&:nth-child(5){fill:",";}&:nth-child(2),&:nth-child(4),&:nth-child(6){fill:none;stroke:",";}}path{&:nth-last-child(1){fill:none;stroke:",";}&:nth-last-child(2){fill:",";}}}}&.w_mobile_tab_bars{.svg-icon{circle,rect:nth-child(4){fill:",";}}}&.w_segmented_control{.svg-icon{rect{fill:",";stroke:",";}path{fill:",";}}}&.w_collapse{.svg-icon{rect{fill:",";&:nth-child(2){stroke:",";}}path:nth-child(2){fill:",";}}}&.w_carousel{.svg-icon{rect{fill:",";stroke:",";}path{&:nth-child(2),&:nth-child(3){fill:none;stroke:",";}}}}&.w_webpage{.svg-icon{rect{fill:",";stroke:",";}path{&:nth-child(1){stroke:",";}&:nth-child(2){fill:",";}}circle{fill:",";}}}&.w_video{.svg-icon{rect{fill:",";stroke:",";}path{&:nth-child(2),&:nth-child(4){stroke:",";}&:nth-child(3){fill:",";}}}}&.w_audio{.svg-icon{path{&:nth-child(1),&:nth-child(2){fill:none;stroke:",";}&:nth-child(3){fill:",";}}}}&.w_qrcode{.svg-icon{path{fill:",";}}}&.w_map{.svg-icon{path{&:nth-child(1){fill:",";stroke:",";}&:nth-child(2){fill:",";stroke:",";}&:nth-child(3){fill:",";}}}}&.w_dialog{.svg-icon{path{&:nth-child(1){fill:",";stroke:",";}&:nth-child(2){fill:",";}}}}&.w_bar_chart,&.w_horizontal_bar_chart{.svg-icon{path{&:first-child{fill:",";}&:nth-child(2){fill:",";}}}}&.w_line_chart{.svg-icon{path{&:nth-child(1),&:nth-child(2){fill:none;stroke:",";}&:nth-child(3){fill:none;stroke:",";}}}}&.w_line_area_chart{.svg-icon{path{&:nth-child(1),&:nth-child(2){fill:none;stroke:",";}&:nth-child(3){fill:",";}}}}&.w_mixed_bar_line_chart{.svg-icon{path{&:nth-child(1){fill:",";}&:nth-child(2){stroke:",";}}}}&.w_pie_chart{.svg-icon{path{&:nth-child(1){fill:",";}&:nth-child(2){fill:",";}}}}&.w_ring_chart{.svg-icon{path{&:nth-child(1){fill:",";}&:nth-child(2){fill:",";}}}}&.w_progress_chart{.svg-icon{circle{fill:none;stroke:",";}path{&:nth-child(2){fill:",";}&:nth-child(3){fill:",";}}}}&.w_radar_chart{.svg-icon{path{&:nth-child(1){fill:",";stroke:",";}&:nth-child(2){fill:none;stroke:",";}&:nth-child(3){fill:",";}}}}&.w_waterfall_chart,&.w_funnel_chart,&.w_gauge_chart,&.w_sunburst_chart,&.w_word_cloud_chart,&.w_flow_concurrent{.svg-icon{path{fill:",";}}}&.w_nightingale_chart{.svg-icon{path{&:nth-child(1),&:nth-child(2){fill:",";}&:nth-child(3){fill:",";}}}}&.w_scatter_chart{.svg-icon{path{&:nth-child(1){fill:",";}&:nth-child(2){fill:none;stroke:",";}}}}&.w_liquid_fill_gauge_chart{.svg-icon{circle{fill:none;stroke:",";}path{fill:",";}}}&.w_bubble_chart{.svg-icon{path{fill:none;stroke:",";&:last-child{fill:",";}}}}&.w_radial_polar_chart{.svg-icon{path{fill:none;&:nth-child(1),&:nth-child(3){stroke:",";}&:nth-child(2){stroke:",";}}}}&.w_boxplot_chart{.svg-icon{path{fill:none;stroke:",";&:nth-child(2),&:nth-child(4){fill:",";stroke:",";}}}}&.w_sankey_chart{.svg-icon{path{fill:",";&:nth-child(1),&:nth-child(3){fill:","}&:nth-child(4){fill:",";}}}}&.w_map_chart{.svg-icon{path{&:nth-child(1){fill:",";}&:nth-child(2){fill:",";}}}}&.w_flow_process,&.w_flow_startEnd{.svg-icon{rect{fill:",";stroke:",";}}}&.w_flow_decision,&.w_flow_data,&.w_flow_outerData,&.w_flow_humanInput,&.w_flow_card,&.w_flow_strip,&.w_flow_show,&.w_flow_humanOp,&.w_flow_prepare,&.w_flow_loop,&.w_flow_refCrossPage{.svg-icon{path{fill:",";stroke:",";}}}&.w_flow_doc{.svg-icon{path{&:nth-child(1),&:nth-child(2){fill:",";}&:nth-child(3){fill:",";}}}}&.w_flow_subProcess,&.w_flow_innerData,&.w_vertical_swimlane,&.w_horizontal_swimlane{.svg-icon{rect{fill:",";stroke:",";}path{fill:none;stroke:",";}}}&.w_flow_queueData,&.w_flow_or,&.w_flow_sum{.svg-icon{circle{fill:",";stroke:",";}path{fill:none;stroke:",";}}}&.w_flow_database1,&.w_flow_database2{.svg-icon{path{&:nth-child(1),&:nth-child(2){fill:",";}&:nth-child(3){fill:none;stroke:",";}}}}&.w_flow_refInPage{.svg-icon{circle{fill:",";stroke:",";}}}&.w_flow_sort{.svg-icon{path{&:nth-child(1){fill:",";}&:nth-child(2){fill:none;stroke:",";}}}}&.w_flow_union{.svg-icon{path{&:nth-child(1){fill:",";}&:nth-child(2){fill:",";}}}}}"],l=>l.theme.color_bg_border_02,l=>l.theme.color_text_L2,l=>l.theme.color_bg_menu,l=>l.theme.color_text_L2,l=>l.theme.color_bg_menu,l=>l.theme.color_text_L2,l=>l.theme.color_text_L2,l=>l.theme.color_bg_menu,l=>l.theme.color_text_L2,l=>l.theme.color_bg_menu,l=>l.theme.color_text_link_normal,l=>l.theme.color_text_link_normal,l=>l.theme.color_text_link_normal,l=>l.theme.color_bg_menu,l=>l.theme.color_text_L2,l=>l.theme.color_text_L2,l=>l.theme.color_btn_primary_normal,l=>l.theme.color_text_btn,l=>l.theme.color_bg_menu,l=>l.theme.color_text_L2,l=>l.theme.color_bg_menu,l=>l.theme.color_text_L2,l=>l.theme.color_bg_menu,l=>l.theme.color_warning,l=>l.theme.color_bg_menu,l=>l.theme.color_text_L2,l=>l.theme.color_text_L2,l=>l.theme.color_text_tips_hover,l=>l.theme.color_btn_primary_normal,l=>l.theme.color_text_tips_hover,l=>l.theme.color_text_L2,l=>l.theme.color_bg_menu,l=>l.theme.color_text_L2,l=>l.theme.color_text_L2,l=>l.theme.color_bg_menu,l=>l.theme.color_bg_border_02,l=>l.theme.color_text_L2,l=>l.theme.color_bg_menu,l=>l.theme.color_bg_border_02,l=>l.theme.color_text_L2,l=>l.theme.color_bg_menu,l=>l.theme.color_bg_border_02,l=>l.theme.color_text_L2,l=>l.theme.color_text_disabled01,l=>l.theme.color_bg_menu,l=>l.theme.color_text_L2,l=>l.theme.color_text_L2,l=>l.theme.color_text_L2,l=>l.theme.color_btn_primary_normal,l=>l.theme.color_btn_primary_normal,l=>l.theme.color_textarea,l=>l.theme.color_btn_primary_normal,l=>l.theme.color_slider_normal,l=>l.theme.color_btn_primary_normal,l=>l.theme.color_btn_primary_normal,l=>l.theme.color_bg_menu,l=>l.theme.color_bg_menu,l=>l.theme.color_bg_border_02,l=>l.theme.color_text_L2,l=>l.theme.color_bg_menu,l=>l.theme.color_text_L2,l=>l.theme.color_bg_border_02,l=>l.theme.color_text_disabled01,l=>l.theme.color_text_L2,l=>l.theme.color_bg_border_02,l=>l.theme.color_text_L2,l=>l.theme.color_bg_border_02,l=>l.theme.color_bg_menu,l=>l.theme.color_bg_border_02,l=>l.theme.color_grid,l=>l.theme.color_btn_primary_normal,l=>l.theme.color_bg_menu,l=>l.theme.color_bg_border_02,l=>l.theme.color_grid,l=>l.theme.color_bg_border_02,l=>l.theme.color_text_L2,l=>l.theme.color_btn_primary_normal,l=>l.theme.color_bg_menu,l=>l.theme.color_bg_border_02,l=>l.theme.color_grid,l=>l.theme.color_bg_border_02,l=>l.theme.color_btn_primary_normal,l=>l.theme.color_bg_menu,l=>l.theme.color_bg_border_02,l=>l.theme.color_grid,l=>l.theme.color_btn_primary_normal,l=>l.theme.color_bg_border_02,l=>l.theme.color_btn_primary_normal,l=>l.theme.color_text_L2,l=>l.theme.color_text_L2,l=>l.theme.color_text_L2,l=>l.theme.color_bg_menu,l=>l.theme.color_bg_border_02,l=>l.theme.color_text_L2,l=>l.theme.color_text_L2,l=>l.theme.color_btn_primary_normal,l=>l.theme.color_bg_menu,l=>l.theme.color_btn_primary_normal,l=>l.theme.color_btn_primary_normal,l=>l.theme.color_bg_menu,l=>l.theme.color_bg_border_02,l=>l.theme.color_text_L2,l=>l.theme.color_bg_menu,l=>l.theme.color_text_L2,l=>l.theme.color_text_L2,l=>l.theme.color_bg_menu,l=>l.theme.color_text_L2,l=>l.theme.color_text_L2,l=>l.theme.color_bg_border_02,l=>l.theme.color_text_L2,l=>l.theme.color_bg_menu,l=>l.theme.color_text_L2,l=>l.theme.color_text_L2,l=>l.theme.color_btn_primary_normal,l=>l.theme.color_text_L2,l=>l.theme.color_bg_border_02,l=>l.theme.color_text_L2,l=>l.theme.color_bg_menu,l=>l.theme.color_text_L2,l=>l.theme.color_bg_menu,l=>l.theme.color_btn_primary_normal,l=>l.theme.color_btn_primary_normal,l=>l.theme.color_bg_menu,l=>l.theme.color_text_L2,l=>l.theme.color_text_L2,l=>l.theme.color_text_L2,l=>l.theme.color_text_disabled01,l=>l.theme.color_text_L2,l=>l.theme.color_text_disabled01,l=>l.theme.color_text_L2,l=>l.theme.color_text_L2,l=>l.theme.color_text_L2,l=>l.theme.color_text_L2,l=>l.theme.color_text_disabled01,l=>l.theme.color_text_L2,l=>l.theme.color_text_L2,l=>l.theme.color_text_disabled01,l=>l.theme.color_bg_border_02,l=>l.theme.color_text_L2,l=>l.theme.color_text_L2,l=>l.theme.color_bg_white,l=>l.theme.color_text_L2,l=>l.theme.color_text_L2,l=>l.theme.color_text_L2,l=>l.theme.color_text_L2,l=>l.theme.color_text_L2,l=>l.theme.color_text_disabled01,l=>l.theme.color_text_L2,l=>l.theme.color_text_L2,l=>l.theme.color_text_L2,l=>l.theme.color_text_L2,l=>l.theme.color_text_L2,l=>l.theme.color_bg_white,l=>l.theme.color_text_L2,l=>l.theme.color_text_disabled01,l=>l.theme.color_text_L2,l=>l.theme.color_bg_white,l=>l.theme.color_text_L2,l=>l.theme.color_text_L3,l=>l.theme.color_text_disabled01,l=>l.theme.color_text_L2,l=>l.theme.color_text_L2,l=>l.theme.color_text_disabled01,l=>l.theme.color_bg_white,l=>l.theme.color_text_L2,l=>l.theme.color_bg_white,l=>l.theme.color_text_L2,l=>l.theme.color_bg_white,l=>l.theme.color_text_L2,l=>l.theme.color_bg_white,l=>l.theme.color_text_L2,l=>l.theme.color_text_L2,l=>l.theme.color_bg_white,l=>l.theme.color_text_L2,l=>l.theme.color_text_L2,l=>l.theme.color_bg_white,l=>l.theme.color_text_L2,l=>l.theme.color_bg_white,l=>l.theme.color_text_L2,l=>l.theme.color_bg_white,l=>l.theme.color_text_L2,l=>l.theme.color_bg_white,l=>l.theme.color_text_L2),g=o.Ay.li.withConfig({displayName:"styles__StyledWidgetItem",componentId:"sc-o4gmpk-0"})(["width:70px;height:70px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;background:",";color:",";border-radius:6px;margin-bottom:8px;margin-right:8px;cursor:pointer;transition:all 0.2s ease-out;position:relative;"," .widget-key{width:14px;height:14px;position:absolute;top:0;left:0;rect{&:nth-child(1){fill:",";}&:nth-child(2){fill:",";}}}.new_text{width:20px;height:10px;position:absolute;top:2px;right:4px;path{fill:#1684fc;}}span{margin-bottom:10px;line-height:12px;text-align:center;color:",";}&:hover{background:",";}&:lang(en){span{margin:0;flex:1;display:flex;align-items:center;}}"],l=>l.theme.color_bg_card,l=>l.theme.color_text_L2,m,l=>l.theme.color_bg_border_01,l=>l.theme.color_bg_menu,l=>l.theme.color_text_L2,l=>l.theme.color_btn_secondary_active)},25051:(Et,ke,e)=>{"use strict";e.d(ke,{c:()=>A});var o=e(88223),m=e(34161),g=e(98310),l=e(76347),C=e(40684),T=e(52781);const A=k=>{const p=(z,S)=>{const{isOrg:_,type:y="user_asset"}=k;if(_)return;let a={};y==="user_asset"?a={projectUpperType:y,projectUpperCid:S,itemCid:z}:(y==="picture"||y==="sticker")&&(a={projectUpperType:"picture",projectUpperCid:z}),(0,T.Cp)(a)},r=(z,S,_,y)=>{const{isOrg:a,rootProject:$,currentOrg:ce,currentUser:de,popupsName:fe,isFind:se,type:J}=k,ve=J==="sticker"?C.R5:C.b4;(0,m.BZ)({tab:se?m.Ii.Find:a?m.Ii.Org:m.Ii.User,popupsName:fe,addType:S,category:ve,name:_,rootProject:$,currentOrg:ce,currentUser:de,esSearchKey:z,resId:y})},x=z=>{const{isOrg:S}=k;(0,o.z3)(z.name,z.image,S)},f=z=>{if(MB.global.experienceLoginModalHelper("isSave"))return;const{isOrg:S,dispatch:_}=k;_(S?{type:"entry:batch:transfer:org-asset",payload:{orgAsset:z}}:{type:"entry:batch:transfer:user-asset",payload:{userAsset:z}})},u=z=>{if(MB.global.experienceLoginModalHelper("isSave"))return;const{isOrg:S,dispatch:_}=k;_(S?{type:"entry:batch:remove:org-asset",payload:{orgAsset:z}}:{type:"entry:batch:remove:user-asset",payload:{userAsset:z}})},b=z=>{if(MB.global.experienceLoginModalHelper("isSave"))return;const{dispatch:S}=k;S({type:"entry:batch:transfer:user:asset:to:org",payload:{userAsset:z}})},h=(z,S)=>{if(MB.global.experienceLoginModalHelper("isSave"))return;const{isOrg:_,dispatch:y}=k,a={...z,name:S};y(_?{type:"entry:refresh:org-asset:update",payload:{orgAssetUpdateList:[a]}}:{type:"entry:refresh:user-asset:update",payload:{userAssetUpdateList:[a]}}),y({type:"entry:search-panel:update:asset:name",payload:{cid:z.cid,name:S,isOrg:_}})},E=z=>{var S,_;if(MB.global.experienceLoginModalHelper("isSave"))return;const{dispatch:y}=k;p((S=z.cid)!=null?S:z.asset_cid,z.group_cid),y({type:"entry:create:widget:by:asset",payload:{asset:z}}),r((_=z.cid)!=null?_:z.asset_cid,m.k8.DoubleClick,z.name,z.id)},N=async(z,S)=>{const{canvasRect:_,rootProject:y,showDragMode:a,isAdsorbentReferenceLine:$,popupsName:ce}=k,de=(0,g.BL)(S),fe=(0,l.g)(ce);(0,l.dD)({e:z,items:[de],width:de.width,height:de.height,doNotCreateRect:fe,callback:()=>{var se,J;p((se=S.cid)!=null?se:S.asset_cid,S.group_cid),r((J=S.cid)!=null?J:S.asset_cid,m.k8.Drag,S.name,S.id)},canvasRect:_,rootProject:y,showDragMode:a,isAdsorbentReferenceLine:$})};return{onAssetDownload:x,onAssetMove:f,onAssetRemove:u,onAssetAdd:!k.isOrg&&k.currentOrg?b:null,onAssetNameConfirm:h,onAssetImport:E,onMouseDown:N}}},32036:(Et,ke,e)=>{"use strict";e.d(ke,{B:()=>o});const o=m=>{const{dispatch:g,isOrg:l,localOrgAssetsOpenCids:C,localUserAssetsOpenCids:T}=m,A=E=>{g(l?{type:"entry:refresh:org-asset:from:cid",payload:{groupCid:E}}:{type:"entry:refresh:user-asset:from:cid",payload:{groupCid:E}})},k=E=>{const{cid:N}=E;if(l){if(Object.prototype.toString.call(C)==="[object Array]"){const z=C.includes(N)?"minus":"plus";g({type:"image-panel:set:local-org-assets-expand-cids",payload:{oper:z,cid:N}}),z==="plus"&&A(E.cid)}}else if(Object.prototype.toString.call(T)==="[object Array]"){const z=T.includes(N)?"minus":"plus";g({type:"image-panel:set:local-user-assets-expand-cids",payload:{oper:z,cid:N}}),z==="plus"&&A(E.cid)}},p=(E,N,z,S)=>{if(MB.global.experienceLoginModalHelper("isSave"))return;g({type:"entry:auto:change:confirm:asset_group:name",payload:{assetGroup:N,assetGroupName:E,callback:z,isOrg:S!==void 0?S:l}})},r=E=>{MB.global.experienceLoginModalHelper("isSave")||g({type:"update:popups:state",payload:{editingCid:E}})},x=(E,N)=>{if(MB.global.experienceLoginModalHelper("isSave"))return;g((N!==void 0?N:l)?{type:"entry:remove:org-asset-group",payload:{assetGroup:E}}:{type:"entry:remove:user-asset-group",payload:{assetGroup:E}})},f=E=>{MB.global.experienceLoginModalHelper("isSave")||g({type:"entry:transfer:to:org:asset-groups",payload:{assetGroup:E}})},u=E=>{g(l?{type:"entry:refresh:org-asset:from:cid",payload:{groupCid:E}}:{type:"entry:refresh:user-asset:from:cid",payload:{groupCid:E}})},b=E=>{g({type:"entry:auto:create:sub-asset-group",payload:{assetGroup:E,isOrg:l}})},h=(E,N)=>{g({type:"entry:auto:create:asset-group-insertion",payload:{assetGroup:E,isOrg:l,insertionType:N}})};return{onToggle:k,onConfirm:p,onEdit:r,onRemove:x,onTransfer:!m.isOrg&&m.currentOrg?f:null,onLoadData:u,onAddSub:b,onAdd:h}}},14221:(Et,ke,e)=>{"use strict";e.d(ke,{s:()=>C});var o=e(76347),m=e(34161),g=e(40684),l=e(52781);const C=T=>{const A=N=>{const{projectUpperCid:z,isOrg:S}=T;if(S)return;const _={projectUpperType:"user_combo",projectUpperCid:z,itemCid:N.key};(0,l.Cp)(_)},k=(N,z,S)=>{const{isOrg:_,rootProject:y,currentOrg:a,currentUser:$,popupsName:ce}=T;(0,m.BZ)({tab:_?m.Ii.Org:m.Ii.User,popupsName:ce,addType:z,category:g.t_,name:S,rootProject:y,currentOrg:a,currentUser:$,esSearchKey:N})},p=async(N,z)=>{const{isOrg:S,scale:_,canvasRect:y,showDragMode:a,isAdsorbentReferenceLine:$,popupsName:ce}=T,de=S?orgSdkStore:userSdkStore,fe=(0,o.g)(ce);(0,o.WP)({e:N,combo:z,store:de,doNotCreateRect:fe,scale:_,canvasRect:y,showDragMode:a,isAdsorbentReferenceLine:$,callback:()=>{var se,J;A(z),k((se=z.flpakKey)!=null?se:"",m.k8.Drag,(J=z.hotAttr)==null?void 0:J.name)}})},r=N=>{const{isOrg:z,dispatch:S}=T;MB.global.experienceLoginModalHelper("isSave")||S({type:"entry:edit:combo",payload:{isOrg:z,combo:N}})},x=(N,z,S)=>{var _;const{isOrg:y,dispatch:a}=T;MB.global.experienceLoginModalHelper("isSave")||((_=N.hotAttr)==null?void 0:_.name)!==z&&(a({type:"entry:auto:update:combo:name",payload:{isOrg:y,groupCid:S,itemCid:N.key,name:z}}),a({type:"entry:search-panel:update:combo:name",payload:{cid:N.key,name:z,isOrg:y}}))},f=N=>{const{isOrg:z,group:S,dispatch:_}=T;MB.global.experienceLoginModalHelper("isSave")||_({type:"entry:auto:duplicate:combo",payload:{group:S,combo:N,isOrg:z}})},u=N=>{const{isOrg:z,group:S,dispatch:_}=T;MB.global.experienceLoginModalHelper("isSave")||_({type:"entry:auto:batch:remove:combo",payload:{group:S,combo:N,isOrg:z}})},b=(N,z)=>{var S,_;const{isOrg:y,scale:a}=T,$=y?orgSdkStore:userSdkStore;(0,o.QI)({e:N,combo:z,store:$,scale:a}),A(z),k((S=z.flpakKey)!=null?S:"",m.k8.DoubleClick,(_=z.hotAttr)==null?void 0:_.name)},h=N=>{const{group:z,isOrg:S,dispatch:_}=T;MB.global.experienceLoginModalHelper("isSave")||_({type:"entry:auto:transfer:combo",payload:{group:z,excludedCombo:N,isOrg:S}})},E=N=>{if(MB.global.experienceLoginModalHelper("isSave"))return;const{dispatch:z}=T;z({type:"entry:batch:transfer:user:combo:to:org",payload:{combo:N}})};return{onMouseDown:p,onEdit:r,onRename:x,onDup:f,onRemove:u,onImport:b,onMove:h,onOrg:T.currentOrg&&!T.isOrg?E:null}}},1398:(Et,ke,e)=>{"use strict";e.d(ke,{H:()=>o});const o=m=>{const g=r=>{const{isOrg:x,comboOpenCids:f,dispatch:u}=m,{cid:b}=r;if(Object.prototype.toString.call(f)==="[object Array]"){const h=f.includes(b)?"minus":"plus";u({type:x?"widget-panel:set:local-org-combo-expand-cids":"widget-panel:set:local-user-combo-expand-cids",payload:{oper:h,cid:b}})}},l=(r,x,f,u)=>{const{isOrg:b,dispatch:h}=m,E=u!==void 0?u:b;MB.global.experienceLoginModalHelper("isSave")||h({type:"entry:auto:change:confirm:combo_group:name",payload:{comboGroup:x,comboGroupName:r,isOrg:E,callback:f}})},C=r=>{const{dispatch:x}=m;MB.global.experienceLoginModalHelper("isSave")||x({type:"update:popups:state",payload:{editingCid:r}})},T=(r,x)=>{const{isOrg:f,dispatch:u}=m,b=x!==void 0?x:f;MB.global.experienceLoginModalHelper("isSave")||u(b?{type:"entry:remove:org-combo-group",payload:{comboGroup:r}}:{type:"entry:remove:user-combo-group",payload:{comboGroup:r}})},A=r=>{if(MB.global.experienceLoginModalHelper("isSave"))return;const{dispatch:x}=m;x({type:"entry:transfer:to:org:combo-groups",payload:{comboGroup:r}})},k=r=>{const{isOrg:x,dispatch:f}=m;f({type:"entry:auto:create:sub-combo-group",payload:{comboGroup:r,isOrg:x}})},p=(r,x)=>{const{isOrg:f,dispatch:u}=m;u({type:"entry:auto:create:combo-group-insertion",payload:{comboGroup:r,isOrg:f,insertionType:x}})};return{onToggle:g,onConfirm:l,onEdit:C,onRemove:T,onTransfer:!m.isOrg&&m.currentOrg?A:null,onAddSub:k,onAdd:p}}},10052:(Et,ke,e)=>{"use strict";e.d(ke,{K2:()=>r,Oc:()=>T,R9:()=>C,X_:()=>l,_Z:()=>k,le:()=>A,pq:()=>p,wP:()=>x});var o=e(40684),m=e(34161),g=e(43727);const l=f=>{let{list:u,sceTag:b,plabel:h}=f;return u.reduce((E,N,z)=>{if(N.hotAttr){const{marketTemplateSource:S={}}=N,_=N.key+"-"+(S.cid||"");E[_]={source:"\u539F\u578B\u5185\u53D1\u73B0-\u7EC4\u4EF6",template_cid:N.key,template_name:N.hotAttr.name,template_group_cid:S.cid,template_group_name:S.title,template_category:S.category,sence_tag:b,widget_categories:h.name==="all"?"\u63A8\u8350":h.name,sort:z,policy:S.policy}}return E},{})},C=f=>{let{source:u,list:b}=f;return b.reduce((h,E,N)=>{var z;const{cid:S="",title:_="",category:y="",policy:a=""}=E.marketTemplateSource||{},$=E.key+"-"+S;return h[$]={source:u==="detail"?"\u539F\u578B\u5185\u67E5\u770B\u5168\u90E8-"+m.Jj[y]:u,template_cid:E.key,template_name:(z=E.hotAttr)==null?void 0:z.name,template_group_cid:S,template_group_name:_,template_category:y,sort:N,policy:a},h},{})},T=f=>{let{source:u,list:b,igCid:h="",igName:E,policy:N}=f;return b.reduce((z,S,_)=>{const y=S.id+"-"+(S.groupCid||"");return z[y]={source:u,template_cid:S.id,template_name:S.id,template_group_cid:h||S.groupCid,template_group_name:E,template_category:o.C,sort:_,policy:N},z},{})},A=(f,u)=>f.reduce((b,h)=>{const{icons:E}=h;return E.forEach((N,z)=>{const S=N.id+"-"+(N.groupCid||"");b[S]={source:"\u539F\u578B\u5185\u53D1\u73B0-\u56FE\u6807",template_cid:N.id,template_name:N.id,template_group_cid:h.groupName,template_group_name:h.label,template_category:o.C,sort:z,policy:u}}),b},{}),k=f=>f.reduce((u,b,h)=>{const{imgs:E,tab:N,name:z}=b;return E.forEach(S=>{const _=S.asset_cid+"-"+(S.group_cid||"");u[_]={source:"\u539F\u578B\u5185\u53D1\u73B0-\u56FE\u7247",template_cid:S.asset_cid,template_name:S.name,template_group_cid:N,template_group_name:z,template_category:o.b4,sort:h,policy:g.W.Everyone}}),u},{}),p=(f,u)=>f.reduce((b,h,E)=>{const{tab:N,asset_cid:z,group_cid:S,name:_}=h,y=z+"-"+(S||"");return b[y]={source:"\u539F\u578B\u5185\u67E5\u770B\u5168\u90E8-\u56FE\u7247",template_cid:z,template_name:_,template_group_cid:N,template_group_name:u,template_category:o.b4,sort:E,policy:g.W.Everyone},b},{}),r=(f,u)=>{var b;let h={};const E=u==null||(b=u.find(N=>N.type==="search_icon_list"))==null?void 0:b.items;return E&&E.length>0&&(h=E.reduce((N,z)=>{const{data:S}=z;return S.forEach((_,y)=>{const a=_.id+"-"+(_.groupCid||"");N[a]={source:"\u539F\u578B\u5185\u641C\u7D22-\u56FE\u6807",template_cid:_.id,template_name:_.name,template_group_cid:_.groupCid,template_group_name:_.group,template_category:z.category,sort:y,policy:z.policy,keyword:f}}),N},{})),h},x=(f,u)=>{var b,h,E,N;let z={};const S=u==null||(b=u.combo_group)==null||(b=b.list)==null||(b=b.find($=>$.cid==="search_combo_find_collapse"))==null||(b=b.list)==null||(b=b.find($=>$.type==="search_template"))==null?void 0:b.items,_=u==null||(h=u.screen_list)==null||(h=h.list)==null||(h=h.find($=>$.cid==="search_page_screen_collapse"))==null||(h=h.list)==null||(h=h.find($=>$.type==="search_template"))==null?void 0:h.items,y=u==null||(E=u.icon_group)==null||(E=E.list)==null||(E=E.find($=>$.type==="search_icon_list"))==null?void 0:E.items,a=u==null||(N=u.asset)==null||(N=N.list)==null||(N=N.find($=>$.cid==="search_asset_find_collapse"))==null||(N=N.list)==null||(N=N.find($=>$.type==="search_find_picture"))==null?void 0:N.items;if(S&&S.length>0){const $=S.reduce((ce,de,fe)=>{const se=de.mt.key+"-"+(de.currentResources.cid||"");return ce[se]={source:"\u539F\u578B\u5185\u641C\u7D22-\u7EC4\u4EF6",template_cid:de.mt.key,template_name:de.mt.hotAttr.name,template_group_cid:de.currentResources.cid,template_group_name:de.currentResources.title,template_category:de.currentResources.category,sort:fe,policy:de.currentResources.policy,keyword:f},ce},{});z={...z,...$}}if(_&&_.length>0){const $=_.reduce((ce,de,fe)=>{const se=de.mt.key+"-"+(de.currentResources.cid||"");return ce[se]={source:"\u539F\u578B\u5185\u641C\u7D22-\u9875\u9762",template_cid:de.mt.key,template_name:de.mt.hotAttr.name,template_group_cid:de.currentResources.cid,template_group_name:de.currentResources.title,template_category:de.currentResources.category,sort:fe,policy:de.currentResources.policy,keyword:f},ce},{});z={...z,...$}}if(y&&y.length>0){const $=y.reduce((ce,de)=>{const{data:fe}=de;return fe.forEach((se,J)=>{const ve=se.id+"-"+(se.groupCid||"");ce[ve]={source:"\u539F\u578B\u5185\u641C\u7D22-\u56FE\u6807",template_cid:se.id,template_name:se.name,template_group_cid:se.groupCid,template_group_name:se.group,template_category:de.category,sort:J,policy:de.policy,keyword:f}}),ce},{});z={...z,...$}}if(a&&a.length>0){const $=a.reduce((ce,de,fe)=>{const se=de.asset_cid+"-"+(de.groupCid||"");return ce[se]={source:"\u539F\u578B\u5185\u641C\u7D22-\u56FE\u7247",template_cid:de.asset_cid,template_name:de.name,template_group_cid:de.group_cid,template_group_name:"",template_category:o.b4,sort:fe,policy:g.W.Everyone,keyword:f},ce},{});z={...z,...$}}return z}},94153:(Et,ke,e)=>{"use strict";e.d(ke,{$L:()=>Ut,$d:()=>se,AC:()=>dt,AG:()=>x,At:()=>jo,Bu:()=>E,CL:()=>Le,CQ:()=>R,CY:()=>g,Cd:()=>i,E:()=>H,EV:()=>it,E_:()=>be,F8:()=>mo,FM:()=>Yo,G6:()=>Do,GI:()=>Jt,Hl:()=>ae,Ho:()=>bs,I$:()=>$t,IG:()=>de,IR:()=>N,I_:()=>C,L:()=>ns,Le:()=>te,Lq:()=>Rt,M5:()=>sn,MV:()=>Ls,NA:()=>qt,O2:()=>fe,Ou:()=>D,QG:()=>ze,R4:()=>O,Rs:()=>ti,S2:()=>oi,SG:()=>an,SH:()=>Ne,SQ:()=>gt,TD:()=>Wn,TF:()=>nt,TZ:()=>l,VG:()=>u,Vs:()=>pt,WF:()=>Go,WG:()=>re,XN:()=>Lo,Xt:()=>Ho,Xw:()=>A,Z1:()=>K,Z_:()=>Ze,_V:()=>qo,_X:()=>ce,aP:()=>Kt,bg:()=>gs,bw:()=>$,cb:()=>Ce,dZ:()=>b,eH:()=>Cn,ey:()=>T,g6:()=>m,gC:()=>_,gt:()=>Tt,hS:()=>Co,i:()=>Wo,kU:()=>y,lW:()=>go,lb:()=>_s,lj:()=>Ct,m3:()=>ve,nF:()=>p,nn:()=>z,oD:()=>h,p8:()=>V,pM:()=>yt,q3:()=>k,qY:()=>xt,qm:()=>Vn,rx:()=>xe,sF:()=>Io,sS:()=>Mo,tY:()=>Ot,tl:()=>st,uJ:()=>Ft,uq:()=>vo,v3:()=>Ve,vB:()=>r,vl:()=>Kn,vs:()=>J,wF:()=>ft,wS:()=>ds,wY:()=>cn,xH:()=>Tn,xQ:()=>We,xZ:()=>a,y9:()=>kt,yQ:()=>f,yt:()=>S,zK:()=>mt,zS:()=>Je,zX:()=>Ao,zw:()=>ln});var o=e(63686);const m=Gt=>Gt.ui.leftLayout.leftPanel.maxWidth,g=Gt=>Gt.ui.leftLayout.directory.screen,l=Gt=>Gt.ui.leftLayout.directory.screen.screenCollapseKeySet,C=Gt=>Gt.ui.leftLayout.directory.screen.contextMenuState,T=Gt=>Gt.ui.leftLayout.directory.screen.selectNotMoveUpScreenSet,A=Gt=>Gt.ui.leftLayout.directory.screen.selectNotMoveDownScreenSet,k=Gt=>Gt.ui.leftLayout.directory.screen.selectScreenMetaParentSet,p=Gt=>Gt.ui.leftLayout.directory.screen.selectNotDownGradeScreenSet,r=Gt=>Gt.ui.leftLayout.directory.layer.layerRange,x=Gt=>Gt.ui.leftLayout.muban.mubanList,f=Gt=>Gt.ui.leftLayout.iconSelectPopup.isShowHeader,u=Gt=>Gt.ui.leftLayout.iconSelectPopup.isShowSearch,b=Gt=>Gt.ui.leftLayout.icon.navIndex,h=Gt=>Gt.ui.leftLayout.icon.iconSelectPopupNavIndex,E=Gt=>Gt.ui.leftLayout.icon.resources,N=Gt=>Gt.ui.leftLayout.icon.unStarResources,z=Gt=>Gt.ui.leftLayout.icon.starResources,S=Gt=>Gt.ui.leftLayout.icon.currentIconResources,_=Gt=>Gt.ui.leftLayout.icon.isRequestHotIconList,y=Gt=>Gt.ui.leftLayout.icon.hotIconList,a=Gt=>Gt.ui.leftLayout.icon.hotColorIconList,$=Gt=>Gt.ui.leftLayout.icon.iconSelectPopupCurrentIconResources,ce=Gt=>Gt.ui.leftLayout.icon.libraryIconDataForTabs,de=Gt=>Gt.ui.leftLayout.icon.iconType,fe=Gt=>Gt.ui.leftLayout.icon.findPanelTabIndex,se=Gt=>Gt.ui.leftLayout.icon.iconSelectPopupTabIndex,J=Gt=>Gt.ui.leftLayout.icon.iconSelectPopupCurrentIconGroup,ve=Gt=>Gt.ui.leftLayout.icon.findPanelCurrentIconGroup,D=Gt=>Gt.ui.leftLayout.iconSelectPopup.navigationIconResources,R=Gt=>Gt.ui.leftLayout.iconSelectPopup.iconGroupData,V=Gt=>Gt.ui.leftLayout.iconSelectPopup.source,O=Gt=>Gt.ui.leftLayout.image.navIndex,Ce=Gt=>Gt.ui.leftLayout.image.isRequestUserAssetGroup,ae=Gt=>Gt.ui.leftLayout.image.isRequestOrgAssetGroup,q=Gt=>Gt.ui.leftLayout.image.findFilterWords,K=Gt=>Gt.ui.leftLayout.image.findActiveWord,xe=Gt=>Gt.ui.leftLayout.page.navIndex,te=Gt=>Gt.ui.leftLayout.page.findLoading,H=Gt=>Gt.ui.leftLayout.page.findPlatformType,re=Gt=>Gt.ui.leftLayout.page.findPlatformSubType,be=Gt=>Gt.ui.leftLayout.page.findPlatformSubTypeMap,Le=Gt=>Gt.ui.leftLayout.page.findPlatformSubTypeListMap,Ve=Gt=>Gt.ui.leftLayout.page.findPlatformSubTypeMtDataMap,Ne=Gt=>Gt.ui.leftLayout.page.findMtResourceMap,We=Gt=>Gt.ui.leftLayout.page.findCurrentMtResourceCid,ze=Gt=>Gt.ui.leftLayout.page.libraryNavIndex,ft=Gt=>Gt.ui.leftLayout.page.libraryFilterWords,mt=Gt=>Gt.ui.leftLayout.page.libraryActiveWord,i=Gt=>Gt.ui.leftLayout.page.libraryTopicListMap,gt=Gt=>Gt.ui.leftLayout.page.libraryCurrentSquareTopic,Je=Gt=>Gt.ui.leftLayout.page.libraryCurrentResources,Pt=Gt=>Gt.ui.leftLayout.search.searchResultList,bt=Gt=>Gt.ui.leftLayout.search.searchResultCategory,qt=Gt=>Gt.ui.leftLayout.search.iconSelectPopupSearchResultList,pt=Gt=>Gt.ui.leftLayout.search.searchResultSum,$t=Gt=>Gt.ui.leftLayout.search.iconSelectPopupSearchResultSum,go=Gt=>Gt.ui.leftLayout.search.currentComboGroup,Co=Gt=>Gt.ui.leftLayout.search.isLoading,Tt=Gt=>Gt.ui.leftLayout.search.isIconSelectPopupLoading,mo=Gt=>Gt.ui.leftLayout.search.isSearching,jo=Gt=>Gt.ui.leftLayout.search.iconSelectPopupIsSearching,Kt=Gt=>Gt.ui.leftLayout.search.searchCollapsePanelSet,Ft=Gt=>Gt.ui.leftLayout.search.keyword,nt=Gt=>Gt.ui.leftLayout.search.iconKeyword,Rt=Gt=>Gt.ui.leftLayout.search.type,yt=Gt=>Gt.ui.leftLayout.search.historyKeyWords,Jt=Gt=>Gt.ui.leftLayout.search.masterKeyword,vo=Gt=>Gt.ui.leftLayout.search.searchResultListMap,Yo=Gt=>Gt.ui.leftLayout.search.searchMtMetaCidMap,Ho=Gt=>Gt.ui.leftLayout.search.unsplashLoading,kt=Gt=>Gt.ui.leftLayout.popups.hotKeyWords,Ze=Gt=>Gt.ui.leftLayout.popups.assetUploadState,it=Gt=>Gt.ui.leftLayout.popups.assetUpload,st=Gt=>Gt.ui.leftLayout.popups.editingCid,dt=Gt=>Gt.ui.leftLayout.popups.mtResourcesMtItemListMap,Ot=Gt=>Gt.ui.leftLayout.popups.collapsePanelSet,Ct=Gt=>Gt.ui.leftLayout.popups.showGlobalHeader,wo=Gt=>Gt.ui.leftLayout.popups.isVersionModalClosed,ln=Gt=>Gt.ui.leftLayout.popups.paramStarMtCid,Io=Gt=>Gt.ui.leftLayout.image.userAssetGroups,Lo=Gt=>Gt.ui.leftLayout.image.userAssetsMap,Ao=Gt=>Gt.ui.leftLayout.image.orgAssetGroups,xt=Gt=>Gt.ui.leftLayout.image.orgAssetsMap,Ut=Gt=>Gt.ui.leftLayout.image.localUserAssetsOpenCids,Wo=Gt=>Gt.ui.leftLayout.image.localOrgAssetsOpenCids,qo=Gt=>Gt.ui.leftLayout.image.assetNavIndex,sn=(0,o.Mz)([Lo,Io],(Gt,Rs)=>({userAssetsMap:Gt,userAssetGroupList:Rs})),Kn=(0,o.Mz)([Ao,xt],(Gt,Rs)=>({orgAssetsMap:Rs,orgAssetGroupList:Gt})),ds=Gt=>Gt.ui.leftLayout.widget.userComboGroups,_s=Gt=>Gt.ui.leftLayout.widget.orgComboGroups,Ls=Gt=>Gt.ui.leftLayout.widget.localUserComboOpenCids,gs=Gt=>Gt.ui.leftLayout.widget.localOrgComboOpenCids,ns=Gt=>Gt.ui.leftLayout.widget.upgradeUserComboGroupList,Wn=Gt=>Gt.ui.leftLayout.widget.isRequestV7UserComboGroup,Do=Gt=>Gt.ui.leftLayout.widget.upgradeOrgComboGroupList,Go=Gt=>Gt.ui.leftLayout.widget.isRequestV7OrgComboGroup,an=Gt=>Gt.ui.leftLayout.widget.navIndex,Mo=Gt=>Gt.ui.leftLayout.widget.sceToPLabelMap,Cn=Gt=>Gt.ui.leftLayout.widget.scrollTop,Tn=Gt=>Gt.ui.leftLayout.widget.sceneMktsMap,cn=Gt=>Gt.ui.leftLayout.widget.showComboUploadGuide,bs=Gt=>Gt.ui.leftLayout.widget.showComboStar,Vn=Gt=>Gt.ui.leftLayout.widget.selectedSceTag,ti=Gt=>Gt.ui.leftLayout.widget.selectedPLabel,oi=Gt=>Gt.ui.leftLayout.widget.sceCollapsedCategories},81988:(Et,ke,e)=>{"use strict";e.d(ke,{b:()=>g,u:()=>l});var o=e(21676),m=e(54608);const g=o.Ay.div.withConfig({displayName:"styles__StyledSTCommentSwitchHeader",componentId:"sc-24q1pa-0"})(["width:100%;height:40px;box-sizing:border-box;border-bottom:1px solid ",";padding:0 10px 0 16px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;background:",";h3{flex:1;font-size:12px;font-weight:500;line-height:16px;color:",";}.tab-container{display:inline-flex;align-items:center;}.comment-filter-dropdown,.comment-options-dropdown{width:auto;}.options-trigger-container{width:24px;height:24px;margin-left:4px;}.options-content-container{padding:2px 0;width:240px;background:#fff;box-shadow:0 3px 6px -4px rgba(0,0,0,0.12),0px 6px 16px rgba(0,0,0,0.08),0px 9px 28px 8px rgba(0,0,0,0.05);border-radius:4px;.options-item-container{padding:0 15px;display:flex;align-items:center;justify-content:space-between;margin:2px 0;.info-content{flex:1;.main-info{font-size:12px;line-height:12px;color:#333;}.desc-info{margin-top:3px;font-size:12px;transform:scale(0.75);transform-origin:left center;line-height:16px;color:#999;white-space:nowrap;margin-right:-50px;}}}.end-comment{height:45px;}.show-comment-in-canvas{height:45px;}}.filter-trigger-container,.options-trigger-container{color:#999;cursor:pointer;border-radius:4px;transition:300ms;color:",";&.active{color:",";background:",";}&:not(.active):hover{background:",";}.svg-icon{width:24px;height:24px;path[fill]{fill:currentColor;}path[stroke]{stroke:currentColor;}}}span.expandAll{cursor:pointer;color:",";margin-right:6px;&:hover,&:active{color:",";}}"],C=>C.theme.color_bg_border_01,C=>C.theme.color_bg_white,C=>C.theme.color_text_L1,C=>C.theme.color_text_L1,C=>C.theme.color_text_L1,C=>C.theme.color_btn_secondary_active,C=>C.theme.color_btn_secondary_hover,C=>C.theme.color_text_L2,C=>C.theme.color_text_L1),l=(0,o.Ay)(m.A).withConfig({displayName:"styles__StyledNewSlideNav",componentId:"sc-24q1pa-1"})(["margin-left:-8px;.nav-label{padding:0;}.nav-item{padding:0 8px;&.active{font-weight:600;&::after{display:none;}}}height:40px;min-height:40px;"])},5173:(Et,ke,e)=>{"use strict";e.d(ke,{h:()=>l});var o=e(51044),m=e(21676),g=e(57464);function l(){return(0,g.jsxs)(C,{children:[T,(0,g.jsx)("span",{className:"text",children:I18N.Note.no_node})]})}const C=m.Ay.div.withConfig({displayName:"STEmptyList__StyledEmptyList",componentId:"sc-nz9lz6-0"})(["width:100%;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;flex:1;background:",";.text{white-space:nowrap;margin-top:16px;font-size:12px;line-height:16px;color:#666666;}"],A=>A.theme.color_bg_white),T=(0,g.jsxs)("svg",{width:"123",height:"94",viewBox:"0 0 123 94",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,g.jsx)("path",{d:"M47.4341 29.4479C46.8511 29.4478 46.2703 29.5195 45.705 29.6616C45.705 29.5868 45.705 29.5227 45.705 29.4479C45.7986 28.4797 45.6878 27.5028 45.3795 26.5797C45.0713 25.6567 44.5725 24.808 43.9152 24.0881C43.2579 23.3681 42.4566 22.7929 41.5627 22.3992C40.6688 22.0056 39.702 21.8022 38.7245 21.8022C37.7469 21.8022 36.7802 22.0056 35.8863 22.3992C34.9924 22.7929 34.1911 23.3681 33.5338 24.0881C32.8764 24.808 32.3777 25.6567 32.0695 26.5797C31.7612 27.5028 31.6503 28.4797 31.7439 29.4479V29.512C30.7145 29.6494 29.7287 30.0127 28.8575 30.5754C27.9864 31.1382 27.2518 31.8865 26.7068 32.7663C26.1618 33.646 25.82 34.6352 25.7061 35.6624C25.5922 36.6896 25.7091 37.7291 26.0482 38.7059C26.3873 39.6827 26.9403 40.5723 27.6671 41.3105C28.394 42.0487 29.2766 42.6171 30.2511 42.9745C31.2256 43.3319 32.2678 43.4695 33.3023 43.3773C34.3368 43.2851 35.3378 42.9654 36.233 42.4413C37.1564 42.862 38.1599 43.0806 39.1755 43.0824C40.5826 43.0908 41.9583 42.6694 43.1169 41.875C43.9936 42.5663 45.0241 43.0385 46.122 43.2521C47.2199 43.4657 48.3533 43.4144 49.4272 43.1026C50.5011 42.7908 51.4843 42.2275 52.2944 41.4599C53.1045 40.6923 53.718 39.7427 54.0835 38.6907C54.4489 37.6387 54.5558 36.5149 54.395 35.4134C54.2342 34.3118 53.8105 33.2647 53.1594 32.3596C52.5082 31.4545 51.6486 30.7178 50.6525 30.2112C49.6564 29.7046 48.5528 29.4429 47.4341 29.4479Z",fill:"url(#paint0_linear_7226_73395)"}),(0,g.jsx)("path",{d:"M16.4603 19.5625C16.2338 19.5655 16.0084 19.5952 15.7888 19.6508C15.7888 19.6508 15.7888 19.5919 15.7888 19.5625C15.7525 18.8657 15.4494 18.2095 14.9421 17.7291C14.4348 17.2488 13.762 16.981 13.0625 16.981C12.363 16.981 11.6902 17.2488 11.1829 17.7291C10.6756 18.2095 10.3725 18.8657 10.3362 19.5625C9.93751 19.6176 9.55607 19.7602 9.21929 19.98C8.88251 20.1998 8.59877 20.4913 8.38849 20.8336C8.17821 21.1758 8.04662 21.5604 8.0032 21.9595C7.95978 22.3585 8.00559 22.7623 8.13736 23.1416C8.26912 23.5209 8.48355 23.8663 8.76522 24.1531C9.04688 24.4398 9.38878 24.6607 9.76629 24.7998C10.1438 24.939 10.5475 24.9929 10.9485 24.9577C11.3494 24.9226 11.7375 24.7992 12.0849 24.5965C12.4426 24.7646 12.833 24.8525 13.2285 24.8541C13.7758 24.8536 14.3104 24.6895 14.7632 24.383C15.1042 24.6506 15.5043 24.833 15.9302 24.9151C16.3561 24.9972 16.7956 24.9766 17.2119 24.855C17.6282 24.7334 18.0094 24.5143 18.3236 24.216C18.6379 23.9178 18.8761 23.5489 19.0185 23.1402C19.1609 22.7314 19.2034 22.2947 19.1423 21.8663C19.0812 21.4379 18.9183 21.0303 18.6673 20.6774C18.4163 20.3245 18.0844 20.0365 17.6992 19.8374C17.314 19.6384 16.8867 19.534 16.4529 19.5331L16.4603 19.5625Z",fill:"url(#paint1_linear_7226_73395)"}),(0,g.jsx)("path",{d:"M114.874 27.4273C114.205 27.4211 113.538 27.5034 112.89 27.672C112.902 27.5909 112.902 27.5084 112.89 27.4273C112.89 25.2988 112.044 23.2575 110.537 21.7525C109.031 20.2474 106.987 19.4019 104.857 19.4019C102.726 19.4019 100.683 20.2474 99.1767 21.7525C97.6702 23.2575 96.8238 25.2988 96.8238 27.4273C95.6461 27.5872 94.5185 28.0062 93.5224 28.6541C92.5263 29.302 91.6866 30.1626 91.0637 31.174C90.4409 32.1853 90.0503 33.3221 89.9204 34.5025C89.7905 35.6828 89.9245 36.8773 90.3125 37.9997C90.7006 39.1221 91.3331 40.1445 92.1644 40.9931C92.9958 41.8418 94.0053 42.4955 95.1201 42.9072C96.235 43.319 97.4274 43.4784 98.6114 43.374C99.7954 43.2696 100.942 42.9041 101.967 42.3037C103.029 42.7855 104.181 43.0358 105.347 43.0377C106.952 43.0382 108.52 42.5612 109.853 41.6675C110.861 42.4656 112.045 43.0104 113.308 43.2561C114.57 43.5018 115.872 43.4411 117.106 43.0793C118.34 42.7175 119.469 42.0651 120.398 41.1768C121.327 40.2886 122.029 39.1906 122.445 37.975C122.861 36.7594 122.979 35.4618 122.788 34.1913C122.598 32.9208 122.105 31.7145 121.351 30.6738C120.598 29.633 119.605 28.7883 118.456 28.2106C117.308 27.6329 116.037 27.3391 114.751 27.3539L114.874 27.4273Z",fill:"url(#paint2_linear_7226_73395)"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.90182 42.1735L4.9033 42.173L4.90182 42.1735ZM8.65192 40.7023C9.70269 40.8731 10.6949 41.099 11.5664 41.3514C12.4957 41.6204 14.0916 43.1779 14.804 44.8451C15.0107 45.6439 14.3012 44.7245 12.9295 44.0637C12.4627 43.8323 11.7991 43.5814 10.9887 43.3468C9.37049 42.8783 7.27742 42.5063 5.22568 42.4583C4.94562 42.4518 4.69145 42.434 4.48486 42.3997C4.38696 42.3834 4.25506 42.3565 4.12267 42.3055C4.05726 42.2803 3.95273 42.2347 3.84302 42.1554C3.74251 42.0828 3.54639 41.9161 3.44697 41.6218C3.33065 41.2776 3.40935 40.9523 3.54558 40.7268C3.66102 40.5357 3.80804 40.4257 3.88305 40.3752C4.03676 40.2719 4.19543 40.2177 4.2836 40.1902C4.4856 40.1272 4.73907 40.0802 5.01413 40.0424C5.521 39.9729 6.00599 39.8888 6.40015 39.7641C6.59471 39.7025 6.74016 39.6392 6.84207 39.5795C6.88994 39.5515 6.92113 39.5284 6.94053 39.5121C6.93116 39.474 6.9082 39.4098 6.85576 39.3105C6.66666 38.9526 6.19845 38.3837 5.21304 37.5672C5.10857 37.4807 5.00723 37.3901 4.91842 37.2972C4.83994 37.2151 4.72111 37.0801 4.63382 36.9024C4.55259 36.737 4.39548 36.3094 4.65066 35.8513C4.88228 35.4355 5.27808 35.3269 5.40897 35.2975C5.69258 35.2337 5.99798 35.2713 6.1595 35.2928C6.3695 35.3208 6.61315 35.3667 6.86198 35.4169C7.02851 35.4504 7.20266 35.4868 7.38239 35.5243C8.33205 35.7225 9.43774 35.9533 10.4012 35.9788C10.9761 35.994 11.3655 35.9285 11.589 35.8262C11.7428 35.7558 11.7804 35.6992 11.7987 35.5603C11.8303 35.3212 11.7731 34.81 11.3334 33.8899C10.9045 32.9924 10.1643 31.8135 8.99751 30.2862C8.81698 30.0498 8.65698 29.7828 8.5642 29.4964C8.47756 29.2289 8.40489 28.7974 8.6235 28.3665C8.86976 27.8811 9.3282 27.6919 9.69446 27.6518C10.0353 27.6144 10.3706 27.6879 10.6555 27.7857C12.3008 28.351 14.8172 29.2126 17.3407 28.7778C19.7277 28.3666 22.3473 26.7438 24.1075 21.7794C24.2545 21.3648 24.5483 20.9527 24.8784 20.7055C24.9683 20.6381 25.1024 20.5514 25.2735 20.4931C25.4371 20.4373 25.7442 20.372 26.086 20.5108C26.4614 20.6633 26.6535 20.9678 26.7342 21.2076C26.8074 21.425 26.8069 21.6272 26.7973 21.7596C26.7752 22.0648 26.7068 22.456 26.6261 22.9177C26.2518 25.0584 26.9827 29.1871 28.732 32.5794C29.3613 33.7997 29.2973 33.9554 28.3944 32.9211C26.8671 31.1717 24.6585 28.0482 24.6827 24.7135C23.4253 29.176 20.0491 30.4192 17.6934 30.825C15.4193 31.2168 13.207 30.7566 11.5607 30.2674C12.2928 31.31 12.8342 32.2125 13.2078 32.9942C13.7116 34.0486 13.968 35.0011 13.8582 35.8324C13.7351 36.764 13.1763 37.3844 12.4534 37.7152C11.8004 38.014 11.0332 38.0736 10.3462 38.0554C9.70776 38.0385 9.02219 37.9478 8.37878 37.8369C8.50096 38.0079 8.60557 38.1755 8.69256 38.3401C9.09917 39.1098 9.17525 39.9528 8.67178 40.6743C8.66523 40.6837 8.65861 40.693 8.65192 40.7023ZM6.94448 39.5578C6.94448 39.5578 6.94171 39.5483 6.94503 39.5343C6.94762 39.5516 6.94448 39.5578 6.94448 39.5578Z",fill:"#FF6161"}),(0,g.jsx)("g",{clipPath:"url(#clip0_7226_73395)",children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M98.7292 30.9892L62.4203 19.8885C61.6436 19.651 60.8215 20.0882 60.584 20.8648L49.4833 57.1737C49.2458 57.9504 49.6829 58.7726 50.4596 59.01L81.7007 68.5614C82.0737 68.6754 82.4767 68.6366 82.821 68.4535L89.4383 64.935C89.7827 64.7519 90.0402 64.4395 90.1542 64.0666L99.7056 32.8255C99.943 32.0488 99.5059 31.2267 98.7292 30.9892ZM63.7493 15.5416C60.5719 14.5702 57.2086 16.3585 56.2372 19.5359L45.1364 55.8448C44.165 59.0222 45.9533 62.3854 49.1307 63.3569L80.3717 72.9082C81.8976 73.3747 83.5462 73.216 84.955 72.4669L91.5723 68.9484C92.981 68.1994 94.0346 66.9214 94.5011 65.3955L104.052 34.1545C105.024 30.9771 103.236 27.6138 100.058 26.6424L63.7493 15.5416ZM59.8927 46.4463C59.5257 47.6466 60.2013 48.9172 61.4016 49.2842L72.2687 52.6066C73.4691 52.9736 74.7397 52.298 75.1066 51.0977C75.4736 49.8973 74.798 48.6267 73.5977 48.2598L62.7306 44.9373C61.5303 44.5704 60.2597 45.2459 59.8927 46.4463ZM64.724 38.4171C63.5237 38.0501 62.8481 36.7795 63.2151 35.5792C63.5821 34.3788 64.8527 33.7033 66.053 34.0702L87.7872 40.7151C88.9875 41.082 89.6631 42.3526 89.2961 43.553C88.9292 44.7533 87.6586 45.4289 86.4582 45.0619L64.724 38.4171Z",fill:"#90C0FA"})}),(0,g.jsx)("ellipse",{cx:"61.3846",cy:"85.3804",rx:"33.3764",ry:"6.92983",transform:"rotate(2.57165 61.3846 85.3804)",fill:"url(#paint3_linear_7226_73395)"}),(0,g.jsx)("path",{d:"M36.4098 69.0505L35.9903 68.1427L33.9816 69.0711C33.4802 69.3027 32.886 69.0842 32.6543 68.5828L31.7453 66.616L30.8376 67.0356L29.0197 63.102L29.9274 62.6825L28.1095 58.7489L27.2018 59.1684L25.3838 55.2349L26.2916 54.8153L24.4737 50.8818L23.5659 51.3013L21.748 47.3677L22.6557 46.9482L21.7468 44.9814C21.5151 44.4801 21.7337 43.8859 22.235 43.6542L24.2018 42.7452L23.7823 41.8375L27.7158 40.0195L28.1354 40.9273L32.0689 39.1094L31.6494 38.2016L35.583 36.3837L36.0025 37.2914L39.9361 35.4735L39.5165 34.5658L43.4501 32.7479L43.8696 33.6556L45.8364 32.7467C46.3378 32.515 46.932 32.7335 47.1637 33.2349L48.1149 35.2932L49.0227 34.8736L50.9252 38.9902L50.0174 39.4097L51.9199 43.5263L52.8277 43.1068L54.7302 47.2234L53.8224 47.6429L54.7737 49.7012C54.8889 49.9504 54.8965 50.2361 54.7948 50.4911L53.7363 53.1451L54.6651 53.5156L52.5481 58.8235L51.6193 58.453L50.5608 61.107C50.466 61.3447 50.2837 61.5369 50.0514 61.6443L48.0427 62.5726L48.4622 63.4804L44.4448 65.3371L44.0252 64.4293L40.0078 66.286L40.4273 67.1938L36.4098 69.0505Z",fill:"white",stroke:"#90C0FA",strokeWidth:"2",strokeDasharray:"4 4"}),(0,g.jsx)("path",{d:"M45.5695 41.6833L29.8901 48.9296C29.5212 49.1001 29.3604 49.5373 29.5309 49.9062L29.821 50.5341C29.9915 50.903 30.4288 51.0639 30.7977 50.8934L46.4771 43.6471C46.846 43.4766 47.0068 43.0393 46.8363 42.6704L46.5461 42.0426C46.3756 41.6736 45.9384 41.5128 45.5695 41.6833Z",fill:"#9EA9BC"}),(0,g.jsx)("path",{d:"M41.4228 50.2093L32.0409 54.5452C31.8743 54.6222 31.867 54.961 32.0246 55.3021L32.2929 55.8825C32.4505 56.2236 32.7134 56.4376 32.88 56.3606L42.2618 52.0248C42.4284 51.9478 42.4357 51.6089 42.2781 51.2678L42.0099 50.6874C41.8522 50.3463 41.5894 50.1323 41.4228 50.2093Z",fill:"#9EA9BC"}),(0,g.jsxs)("defs",{children:[(0,g.jsxs)("linearGradient",{id:"paint0_linear_7226_73395",x1:"31.1855",y1:"15.0012",x2:"42.8442",y2:"43.4977",gradientUnits:"userSpaceOnUse",children:[(0,g.jsx)("stop",{stopColor:"#CEE1FF"}),(0,g.jsx)("stop",{offset:"1",stopColor:"#FCF7FF"})]}),(0,g.jsxs)("linearGradient",{id:"paint1_linear_7226_73395",x1:"10.1443",y1:"13.9103",x2:"14.699",y2:"25.0094",gradientUnits:"userSpaceOnUse",children:[(0,g.jsx)("stop",{stopColor:"#CEE1FF"}),(0,g.jsx)("stop",{offset:"1",stopColor:"#FCF7FF"})]}),(0,g.jsxs)("linearGradient",{id:"paint2_linear_7226_73395",x1:"105.812",y1:"17.3955",x2:"106.545",y2:"39.1474",gradientUnits:"userSpaceOnUse",children:[(0,g.jsx)("stop",{stopColor:"#E9EEFF"}),(0,g.jsx)("stop",{offset:"1",stopColor:"#FCF7FF"})]}),(0,g.jsxs)("linearGradient",{id:"paint3_linear_7226_73395",x1:"46.1107",y1:"78.4505",x2:"68.9711",y2:"99.6003",gradientUnits:"userSpaceOnUse",children:[(0,g.jsx)("stop",{stopColor:"#CDE1FF"}),(0,g.jsx)("stop",{offset:"1",stopColor:"#FBF6FF"})]}),(0,g.jsx)("clipPath",{id:"clip0_7226_73395",children:(0,g.jsx)("rect",{width:"71.0369",height:"71.0369",fill:"white",transform:"translate(51.2004) rotate(17.3641)"})})]})]})},36450:(Et,ke,e)=>{"use strict";e.d(ke,{i:()=>S});var o=e(74059),m=e(51044),g=e(86634),l=e.n(g),C=e(98712),T=e(21676);const A=T.Ay.span.withConfig({displayName:"styles__StyledTriggerContainerDiv",componentId:"sc-1hyrv03-0"})([".toolbar-btn{margin:0 4px;width:18px;cursor:pointer;border-radius:4px;&.free-width{width:auto;}&.disabled{background-color:transparent;opacity:.3;cursor:not-allowed;}&:hover{background-color:rgba(255,255,255,0.3);}}.toolbar-btn .svg-icon{width:18px;height:18px;}"]),k=T.Ay.div.withConfig({displayName:"styles__StyledContentContainer",componentId:"sc-1hyrv03-1"})(["width:max-content;position:relative;.list-container{width:100%;position:relative;box-sizing:border-box;padding:8px;.item-container{width:100%;height:28px;font-size:12px;color:",";display:flex;padding-left:20px;align-items:center;cursor:pointer;&:hover{background-color:",";}}}.list-container{border-radius:8px;border:1px solid ",";color:",";background:",";box-shadow:",";.item-container{border-radius:4px;background:",";}}"],y=>y.theme.color_text_L1,y=>y.theme.color_btn_secondary_hover,y=>y.theme.color_bg_border_01,y=>y.theme.color_text_L1,y=>y.theme.color_bg_white,y=>y.theme.shadow_m,y=>y.theme.color_bg_white);var p=e(57464);const x=y=>{const{style:a,onChange:$,options:ce}=y,{top:de,right:fe,width:se}=a,J=(0,m.useCallback)(ve=>()=>{$&&$(ve)},[$]);return(0,p.jsx)(C.A,{dark:!0,top:Number(de),right:Number(fe),closeOnContentClick:!0,trigger:(0,p.jsx)(A,{children:(0,p.jsxs)("svg",{className:"toolbar-btn comment-more-btn",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,p.jsx)("g",{clipPath:"url(#clip0_6819_28530)",children:(0,p.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.625 9C5.625 8.37868 5.12132 7.875 4.5 7.875C3.87868 7.875 3.375 8.37868 3.375 9C3.375 9.62132 3.87868 10.125 4.5 10.125C5.12132 10.125 5.625 9.62132 5.625 9ZM9.00001 7.875C9.62133 7.875 10.125 8.37868 10.125 9C10.125 9.62132 9.62133 10.125 9.00001 10.125C8.37868 10.125 7.87501 9.62132 7.87501 9C7.87501 8.37868 8.37868 7.875 9.00001 7.875ZM13.5 7.875C14.1213 7.875 14.625 8.37868 14.625 9C14.625 9.62132 14.1213 10.125 13.5 10.125C12.8787 10.125 12.375 9.62132 12.375 9C12.375 8.37868 12.8787 7.875 13.5 7.875Z",fill:"#333333"})}),(0,p.jsx)("defs",{children:(0,p.jsx)("clipPath",{id:"clip0_6819_28530",children:(0,p.jsx)("rect",{y:"18",width:"18",height:"18",rx:"4",transform:"rotate(-90 0 18)",fill:"white"})})})]})}),children:(0,p.jsx)(k,{style:{width:se},children:(0,p.jsx)("div",{className:"list-container",children:ce.map(ve=>(0,p.jsx)("div",{className:"item-container",onClick:J(ve.value),children:ve.label},ve.value))})})})};var f=e(68496),u=e(3732),b=e(7972),h=e(18265),E=e(15336),N=e(76713),z=e.n(N);const S=y=>{let{st:a,setIsExportOpenFromContainer:$,onMouseDown:ce,editable:de,isActive:fe,isExpanded:se,isAlreadyExpanded:J,STPanelWidth:ve,isHtmlZipPreview:D,toggleExpandKeySet:R,pushToAlreadyExpandKeySet:V,deleteFromAlreadyExpandKeySet:O,selectST:Ce,deleteST:ae}=y;const q=[{label:I18N.Note.export,value:"export"},{label:I18N.Note.delete,value:"delete"}],K=[{label:I18N.Note.export,value:"export"}],{key:xe,hotAttr:te}=a,H=(0,m.useRef)(),re=(0,m.useCallback)(We=>{We.stopPropagation(),Ce(xe),(0,b.Uz)({operation_type:b.P6.Select,widget:te})},[xe,Ce,te]),be=(0,m.useCallback)(We=>{if(We==="delete")ae(xe);else if(We==="export"){var ze;if(!((ze=MB)!=null&&(ze=ze.user)!=null&&ze.id)){MB.global.popupHelper.loginAsync({onConfirm:()=>{setTimeout(()=>location.reload(),50),(0,E.Ix)("/dashboard/me","_blank","noreferrer")},type:"signin",source:"proto-preview"});return}$(!0)}},[xe,ae,$]),Le=We=>{ce(We,a,H.current)},Ve=(0,f.t0)(a.hotAttr.fill.solidColor),Ne="1px solid "+Ve;return(0,p.jsx)(h.dX,{"data-cid":a.key,className:l()("st-card",{isActive:fe}),onClick:re,ref:H,border:Ne,children:(0,p.jsxs)("div",{className:l()("st-card-container"),children:[(0,p.jsxs)("header",{className:"st-card-header",style:{background:Ve},onMouseDown:Le,children:[(0,p.jsx)("div",{className:"st-summary",children:(0,p.jsx)("div",{className:"user-name",children:""+a.hotAttr.order})}),!D&&(0,p.jsx)("div",{className:"more-btn",children:(0,p.jsx)(x,{options:de?q:K,style:{width:96,top:22,right:0},onChange:be})})]}),(0,p.jsx)(_,{st:a,isExpand:se,showExpand:!J,STPanelWidth:ve,toggleExpandKeySet:R,pushToAlreadyExpandKeySet:V,deleteFromAlreadyExpandKeySet:O})]})})};class _ extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"createRef",a=>this.$ref=a),(0,o.A)(this,"handleExpand",()=>{const{st:{key:a},toggleExpandKeySet:$}=this.props;$(a)}),(0,o.A)(this,"handleUpdateAlreadyExpandKeySet",()=>{setTimeout(()=>{if(this.$ref){const a=this.$ref.querySelector(".draft-editor-div"),{st:{key:$},pushToAlreadyExpandKeySet:ce,deleteFromAlreadyExpandKeySet:de}=this.props;a.scrollHeight<=52?ce($):de($)}})})}componentDidMount(){this.handleUpdateAlreadyExpandKeySet()}componentDidUpdate(a,$,ce){const{STPanelWidth:de}=this.props,{STPanelWidth:fe}=a;de!==fe&&this.handleUpdateAlreadyExpandKeySet()}render(){const{st:a,isExpand:$,showExpand:ce}=this.props,{hotAttr:{info:{showAuthor:de,showTime:fe,author:se,time:J}}}=a,ve=J?z()(Number(J)).format("YYYY.MM.DD"):"";return(0,p.jsxs)(h.AB,{className:"st-card-content",ref:this.createRef,children:[(0,p.jsxs)("div",{className:l()("content-container",{isExpand:$},{showExpand:ce}),children:[(0,p.jsx)(u.a,{is4Tear:!1,widget:{...a.hotAttr,cid:a.key},placeHolderColor:"#7D8694",placeHolder:I18N.Note.no_content}),ce&&(de||fe)&&(0,p.jsxs)("div",{className:"footer",children:[de&&(0,p.jsx)("span",{className:"username",children:se}),fe&&(0,p.jsx)("span",{children:ve})]})]}),ce?(0,p.jsx)("span",{className:"expand",onClick:this.handleExpand,children:$?I18N.Comment.collapse:I18N.Comment.expand}):(0,p.jsx)(p.Fragment,{children:(de||fe)&&(0,p.jsxs)("div",{className:"footer",children:[de&&(0,p.jsx)("span",{className:"username",children:se}),fe&&(0,p.jsx)("span",{children:ve})]})})]})}}},18265:(Et,ke,e)=>{"use strict";e.d(ke,{AB:()=>l,TV:()=>m,dX:()=>g});var o=e(21676);const m=o.Ay.div.withConfig({displayName:"styles__StyledSTList",componentId:"sc-3kk9jt-0"})(["height:calc(100% - 40px);flex:1 1 0;overflow-y:auto;position:relative;background:",";.st-list{.no-more-tips{font-size:12px;transform:scale(0.834);transform-origin:center;line-height:24px;text-align:center;color:#999;margin-top:2px;}}"],C=>C.theme.color_bg_white),g=o.Ay.div.withConfig({displayName:"styles__StyledSTCard",componentId:"sc-3kk9jt-1"})(["width:100%;position:relative;box-sizing:border-box;.st-card-container{height:100%;width:100%;padding:10px 16px;display:flex;flex-direction:column;.st-card-header{display:flex;position:relative;width:100%;border-top-right-radius:8px;border-top-left-radius:8px;border-right:",";border-left:",";border-top:",";.st-summary{flex:1;display:flex;position:relative;width:calc(100% - 20px);.user-name{font-weight:500;color:#333;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-left:10px;}}.more-btn{width:20px;height:20px;margin-right:10px;.toolbar-btn{width:20px;height:20px;margin:0;cursor:pointer;border-radius:4px;.svg-icon{width:20px;height:20px;}}}}.st-card-content{border-bottom-right-radius:8px;border-bottom-left-radius:8px;padding:10px;font-size:12px;align-items:center;color:#000;border-right:",";border-left:",";border-bottom:",";background:#fff;}}&:not(.isActive):hover{background:",";}&.isActive{background:",";}}"],C=>C.border,C=>C.border,C=>C.border,C=>C.border,C=>C.border,C=>C.border,C=>C.theme.color_btn_secondary_active,C=>C.theme.color_bg_select02),l=o.Ay.div.withConfig({displayName:"styles__StyledSTCardContent",componentId:"sc-3kk9jt-2"})([".expand{display:block;margin-top:4px;color:",";cursor:pointer;font-size:12px;line-height:14px;&:hover,&:active{color:",";}}.footer{font-size:12px;background:white;color:rgba(0,0,0,0.4);display:flex;align-items:center;.username{margin-right:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}.content-container{.draft-editor-div{padding:0;background:initial !important;color:#000 !important;&.show-placeholder{pointer-events:none;}}.footer{font-size:12px;background:white;color:rgba(0,0,0,0.4);display:flex;align-items:center;height:24px;.username{margin-right:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}&:not(.isExpand){height:52px;overflow:hidden;position:relative;&.showExpand{&::after{content:'';height:24px;width:100%;position:absolute;bottom:0;background:linear-gradient(180deg,rgba(255,255,255,0) 0%,#ffffff 100%);z-index:1;}}}}"],C=>C.theme.color_proto,C=>C.theme.color_primary_proto02)},77411:(Et,ke,e)=>{"use strict";e.d(ke,{L:()=>ve,X:()=>R});var o=e(74059),m=e(51044),g=e(36521),l=e(41197),C=e(95487),T=e(53955),A=e(57464);const k="state",p="mp_"+k,r=["children"];class x extends m.Component{constructor(){super(...arguments),(0,o.A)(this,"state",{show:(0,g.Yt)(p,!0,g.qW.Boolean)}),(0,o.A)(this,"handleChange",()=>{const{show:O}=this.state;(0,g.a0)(p,!O,g.qW.Boolean),this.setState({show:!O})})}shouldComponentUpdate(O,Ce,ae){var q;return(q=(0,T.dP)())!=null&&q.flag.isDraggingItem?!1:(0,C.N)(r).call(this,O,Ce)}render(){const{show:O}=this.state;return(0,A.jsx)(l.A,{collapse:!O,title:I18N.SettingPanel.inspector[k],onChange:this.handleChange,children:(0,A.jsx)("section",{type:"panel-body",className:"animation-panel",children:this.props.children})})}}var f=e(21676),u=e(7775),b=e(60081);function h(V){return V&&(V==="0"||V.endsWith("s"))?parseFloat(V)*1e3:V}var E=e(4114);const N=["none","bounce","fadeIn","fadeOut","flash","pulse","rubberBand","shake","swing","tada","wobble","jello",{groupName:"bouncing_entrances",itemList:["bounceIn","bounceInDown","bounceInLeft","bounceInRight","bounceInUp"]},{groupName:"flippers",itemList:["flipInX","flipInY"]},{groupName:"rotating_entrances",itemList:["spinning","spinning-reverse","rotateIn","rotateInDownLeft","rotateInDownRight","rotateInUpLeft","rotateInUpRight"]},{groupName:"sliding_entrances",itemList:["slideInDown","slideInLeft","slideInRight","slideInUp"]},{groupName:"zoom_entrances",itemList:["zoomIn","zoomInDown","zoomInLeft","zoomInRight","zoomInUp"]},{groupName:"specials",itemList:["rollIn","lightSpeedIn"]}],z="0",S=[{label:"0ms",value:z},{label:"10ms",value:10},{label:"50ms",value:50},{label:"100ms",value:100},{label:"200ms",value:200},{label:"500ms",value:500},{label:"1000ms",value:1e3},{label:"2000ms",value:2e3},{label:"5000ms",value:5e3}],_=V=>V===z,y=[{label:"100ms",value:100},{label:"200ms",value:200},{label:"300ms",value:300},{label:"500ms",value:500},{label:"1000ms",value:1e3},{label:"2000ms",value:2e3},{label:"5000ms",value:5e3}],a=(0,E.R)(()=>Array.from({length:10},(O,Ce)=>{const ae=(Ce+1).toString();return{label:ae,value:ae}}).concat({label:I18N.dConst.infinite,value:"infinite"})),$=(0,E.R)(()=>N.map(V=>typeof V=="string"?{label:I18N.dConst.ani[V],value:V}:[I18N.dConst.ani[V.groupName],...V.itemList.map(O=>({label:I18N.dConst.ani[O],value:O}))])),ce=(0,E.R)(()=>[{label:I18N.SettingPanel.ani_delay,attrName:"aniDelay",valueName:"aniDelay",optionList:S},{label:I18N.SettingPanel.ani_duration,attrName:"aniDuration",valueName:"aniDuration",optionList:y}]);class de extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleChange",(O,Ce)=>{const{onChange:ae,dispatch:q,aniName:K,aniDelay:xe,aniDuration:te,aniCount:H,selections:re}=this.props,be={aniName:K,aniDelay:xe,aniDuration:te,aniCount:H,[Ce]:O};ae({value:be,attr:"animation",dispatch:q,selections:re})}),(0,o.A)(this,"handleAniSChange",(O,Ce)=>{this.handleChange(parseFloat(O)/1e3+"s",Ce)}),(0,o.A)(this,"handleAniCountChange",(O,Ce)=>{this.handleChange(O,Ce)})}render(){const{aniName:O,aniDelay:Ce,aniDuration:ae,aniCount:q}=this.props,K={aniDelay:Ce,aniDuration:ae},xe={animationName:O,animationDelay:Ce,animationDuration:_(ae)?se:ae};return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)("div",{className:"line animation-line height-32",children:[(0,A.jsx)("label",{className:"left-label",children:I18N.SettingPanel.animation}),(0,A.jsx)("div",{className:"right-content",children:(0,A.jsx)(u.mq,{className:"select animation-select",attr:"aniName",optionList:$(),value:O,onChange:this.handleChange,menuClassName:"menu-animation-select"})})]}),ce().map(te=>{let{label:H,attrName:re,valueName:be,optionList:Le}=te;return(0,A.jsxs)("div",{className:"line animation-line height-32",children:[(0,A.jsx)("label",{className:"left-label",children:H}),(0,A.jsx)("div",{className:"right-content",children:(0,A.jsx)(b.A,{className:"select",attr:re,value:h(K[be]),min:0,suffix:"ms",max:1e4,optionList:Le,onConfirm:this.handleAniSChange})})]},H)}),(0,A.jsxs)("div",{className:"line animation-line height-32",children:[(0,A.jsx)("label",{className:"left-label",children:I18N.SettingPanel.ani_count}),(0,A.jsx)("div",{className:"right-content",children:(0,A.jsx)(b.A,{className:"select",attr:"aniCount",min:1,max:100,optionList:a(),isNotVerify:q==="infinite",formatter:te=>te==="infinite"?I18N.SettingPanel.infinite:te,value:q,onConfirm:this.handleAniCountChange})})]}),(0,A.jsx)("div",{className:"animation-box",children:(0,A.jsx)(fe,{style:xe,children:I18N.SettingPanel.show_case})})]})}}const fe=f.Ay.div.withConfig({displayName:"Animationui__StyledShowCase",componentId:"sc-f0aqym-0"})(["height:80px;font-size:18px;color:",";display:flex;justify-content:center;align-items:center;animation-timing-function:ease-in-out;animation-iteration-count:infinite;"],V=>V.theme.color_text_L1),se="2s";var J=e(91100);const ve=V=>{let{selectedTrees:O}=V;const Ce=O.map(ae=>ae.widget)[0];if(Ce.animation)return{aniName:Ce.animation.aniName,aniDelay:Ce.animation.aniDelay||"0",aniCount:Ce.animation.aniCount||"1",aniDuration:Ce.animation.aniDuration||"1s"}},D={component:de,params:{},getter:[ve],setter:{onChange:J.c}},R=()=>[x,[D,"AnimationInfo"]]},37679:(Et,ke,e)=>{"use strict";e.d(ke,{H3:()=>r,hp:()=>u,Ge:()=>x,pQ:()=>b,ae:()=>E});var o=e(54225),m=e(29516),g=e(10091);const l=N=>{if(!N)return!1;const[z,S]=N,[_,y]=z,[a,$]=S;return _===1&&y===0&&a===0&&$===1||_===1&&y===.5&&a===0&&$===.5||_===1&&y===1&&a===0&&$===0};var C=e(63555),T=e(96958),A=e(38550),k=e(1163),p=e(37401);const r=[...T.cX,C.x.CanvasAsOverlay,C.x.WLine,C.x.WArrow,C.x.WImage,C.x.WAudio,C.x.WVideo,C.x.WTriangleB,C.x.WTriangleTL,C.x.WIcon,C.x.WDropMenu,C.x.WDigitalStepper,C.x.WMobileTabBars,C.x.WSegmentedControl,C.x.WPaginationWeb,C.x.WPaginationMobile,C.x.WElbow,C.x.WMind],x=[C.x.CanvasAsOverlay,C.x.WRect,C.x.WOval,C.x.WButton,C.x.WButtonSolid,C.x.WSticky,C.x.WPlaceholder,C.x.WPolygon,C.x.WStar,C.x.WTriangleTL,C.x.WTriangleB,C.x.WIcon,C.x.WMSelect,C.x.WTriangle],f=[C.x.CanvasAsOverlay,C.x.WRect,C.x.WOval,C.x.WButton,C.x.WButtonSolid,C.x.WSticky,C.x.WPlaceholder,C.x.WPolygon,C.x.WStar,C.x.WTriangleTL,C.x.WTriangleB,C.x.WIcon,C.x.WMSelect,C.x.WMTextInput,C.x.WMTextArea,C.x.WVector,C.x.WTriangle,C.x.WFlowOpened,C.x.wFlowClosed,C.x.WMind,C.x.WMindNode,C.x.WImage],u=[C.x.WMapView,C.x.WWebpage],b={[o.z.BorderRadiusPanel]:{[m.m9]:N=>{let{selectedTrees:z}=N;const S=z.map(y=>y.widget);return{borderRadius:(0,g.i)(S,"borderRadius")||A.A.border_radius,show:!0}},[C.x.WImage]:N=>{let{selectedTrees:z}=N;const S=z.map($=>$.widget),_=S.find($=>$.type===C.x.WImage),{image:{imageClipType:y}}=_;return{borderRadius:(0,g.i)(S,"borderRadius")||A.A.border_radius,show:y!==k.Mg.circular}},[C.x.WPolygon]:N=>{let{selectedTrees:z}=N;const S=z.map(a=>a.widget);return{borderRadius:(0,g.i)(S,"polygon").cornerRadius||A.A.border_radius,show:!0}},[C.x.WStar]:N=>{let{selectedTrees:z}=N;const S=z.map(a=>a.widget),_=(0,g.i)(S,"star");return{borderRadius:(_==null?void 0:_.cornerRadius)||A.A.border_radius,show:!0}},[C.x.WVector]:N=>{let{selectedTrees:z}=N;const S=z.map(de=>de.widget),_=(0,g.i)(S,"vector"),{points:y}=_,a=y.map(de=>{let{radius:fe}=de;return fe}),$=new Set(a);return{borderRadius:$.size===1?a[0]:0,show:!0,placeholder:$.size===1?"":I18N.SettingPanel.multiple_value}}},[o.z.FillPanel]:{[m.m9]:N=>{let{selectedTrees:z,isTextEditing:S,selectionAttrs:_}=N;const y=z.map($=>$.widget),a=(0,g.i)(y,"background")||A.A.background;return{background:S&&_.background||a}},new:()=>{},properties:N=>{let{selectedTrees:z}=N;const S=z.map(y=>y.widget);return{attr:"fill",fill:(0,g.i)(S,"fill")||{fillIsVisible:!0,fill:"solid",solidColor:4294967295}}},solidFillOnly:N=>{let{selectedTrees:z}=N;const S=z.map(y=>y.widget);return{attr:"fill",fill:(0,g.i)(S,"fill")||{fillIsVisible:!0,fill:"solid",solidColor:4294967295},pIsSolidColorOnly:!0}},segmentedControl:N=>{let{selectedTrees:z}=N;const S=z.map(a=>a.widget),{backgroundColor:_,isBackgroundVisible:y}=(0,g.i)(S,"segmentedControl");return{backgroundColorAttr:"backgroundColor",isVisibleAttr:"isBackgroundVisible",isBackgroundVisible:y,backgroundColor:_,supAttr:"segmentedControl"}},[C.x.WTree]:N=>{let{selectedTrees:z}=N;const S=z.map(y=>y.widget);return{attr:"fill",fill:(0,g.i)(S,"fill"),pIsSolidColorOnly:!0}},[C.x.WIphoneXSB]:N=>{let{selectedTrees:z}=N;const S=z.map(y=>y.widget);return{attr:"fill",fill:(0,g.i)(S,"fill"),pIsSolidColorOnly:!0}},[C.x.WVector]:N=>{let{selectedTrees:z}=N;const S=z.map(a=>a.widget),_=(0,g.i)(S,"fill"),y=(0,g.i)(S,"vector");return{show:y==null?void 0:y.closed,attr:"fill",fill:_}},[C.x.wFlowClosed]:N=>{let{selectedTrees:z}=N;const S=z.map(y=>y.widget);return{attr:"fill",fill:(0,g.i)(S,"fill"),pIsSolidColorOnly:!0}}},[o.z.BorderPanel]:{[m.m9]:()=>{},properties:N=>{let{selectedTrees:z}=N;const S=z.map(a=>a.widget),_=(0,g.i)(S,"borderVisibility")||A.A.border_visibility,y=(0,g.i)(S,"border")||A.A.border;return{borderVisibility:_,border:y}}},[o.z.BoxShadowsPanel]:{[m.m9]:()=>({}),properties:N=>{let{selectedTrees:z}=N;const S=z.map(y=>y.widget);return{shadowValue:(0,g.i)(S,"shadow")||A.A.box_shadow}}},[o.z.TextShadowsPanel]:{[m.m9]:N=>{let{selectedTrees:z}=N;return{}},properties:N=>{let{selectedTrees:z}=N;const S=z.map(y=>y.widget);return{shadowValue:(0,g.i)(S,"shadow")||A.A.text_shadow}}},[o.z.ArrowSettingPanel]:{[C.x.WElbow]:N=>{let{selectedTrees:z}=N;const S=z.map(fe=>fe.widget),_=(0,g.i)(S,"elbow"),{arrowStroke:y,startAnchor:a,endAnchor:$}=_,ce=p.nF[a],de=p.EL[$];return{arrowTypes:[ce,de],arrowStroke:y,anchorFromType:"startAnchor",anchorToType:"endAnchor",supAttr:"elbow",reverseArrow:!1,elbow:_}},[m.m9]:N=>{var z,S,_,y;let{selectedTrees:a}=N;const $=a.map(de=>de.widget),ce=(0,g.i)($,"arrow");return{arrowTypes:[ce==null?void 0:ce.arrowPointFromType,ce==null?void 0:ce.arrowPointToType],anchorFromType:"arrowPointFromType",anchorToType:"arrowPointToType",supAttr:"arrow",arrowStroke:ce==null?void 0:ce.arrowStroke,reverseArrow:l([[ce==null||(z=ce.arrowPointFrom)==null?void 0:z.x,ce==null||(S=ce.arrowPointFrom)==null?void 0:S.y],[ce==null||(_=ce.arrowPointTo)==null?void 0:_.x,ce==null||(y=ce.arrowPointTo)==null?void 0:y.y]])}}},[o.z.ToolTipArrowSettingPanel]:{[m.m9]:N=>{let{selectedTrees:z}=N;const S=z.map(y=>y.widget);return{tooltip:(0,g.i)(S,"tooltip")}}},[o.z.TextStatusBarPanel]:{[m.m9]:N=>{let{selectedTrees:z}=N;const S=z.map(y=>y.widget),{textColor:_}=(0,g.i)(S,"textV0");return{textColor:_,supAttr:"textV0"}}},[o.z.InputTypeKeyboardPanel]:{[m.m9]:N=>{let{selectedTrees:z}=N;const S=z.map(y=>y.widget),{inputTypes:_}=(0,g.i)(S,"textInput");return{inputType:_,supAttr:"textInput"}}},[o.z.QRCodeSettingPanel]:{[m.m9]:N=>{let{selectedTrees:z}=N;const S=z.map(ce=>ce.widget),{foregroundColor:_,isForegroundVisible:y,backgroundColor:a,isBackgroundVisible:$}=(0,g.i)(S,"qrCode");return{foreground:{color:_,isVisible:y},background:{color:a,isVisible:$}}}},[o.z.TextPanel]:{[m.m9]:N=>{let{selectedTrees:z}=N;const S=z.map(a=>a.widget),{fontSize:_,textColor:y}=(0,g.i)(S,"textV0");return{fs:_,textColor:y,supAttr:"textV0"}},[C.x.WPaginationWeb]:N=>{let{selectedTrees:z}=N;const S=z.map(a=>a.widget),{textSize:_,textColor:y}=(0,g.i)(S,"paginationWeb");return{fs:_,textColor:y,supAttr:"paginationWeb",fsAttr:"textSize"}},[C.x.WPaginationMobile]:N=>{let{selectedTrees:z}=N;const S=z.map(a=>a.widget),{textSize:_,textColor:y}=(0,g.i)(S,"paginationMobile");return{fs:_,textColor:y,supAttr:"paginationMobile",fsAttr:"textSize"}},[C.x.WTabs]:N=>{let{selectedTrees:z}=N;const S=z.map(a=>a.widget),{fontSize:_,textColor:y}=(0,g.i)(S,"tabs");return{fs:_,textColor:y,supAttr:"tabs"}},[C.x.WMobileTabBars]:N=>{let{selectedTrees:z}=N;const S=z.map(a=>a.widget),{fontSize:_,textColor:y}=(0,g.i)(S,"mobileTabBars");return{fs:_,textColor:y,supAttr:"mobileTabBars"}},[C.x.WSegmentedControl]:N=>{let{selectedTrees:z}=N;const S=z.map(a=>a.widget),{fontSize:_,textColor:y}=(0,g.i)(S,"segmentedControl");return{fs:_,textColor:y,supAttr:"segmentedControl"}}},[o.z.DigitalStepperPanel]:{[m.m9]:N=>{let{selectedTrees:z}=N;const S=z.map(y=>y.widget),_=(0,g.i)(S,"digitalStepper");return{is:_.iconSize,iconColor:_.iconColor,sliderSize:_.sliderSize}}},[o.z.IconSettingsPanel]:{[m.m9]:N=>{let{selectedTrees:z}=N;const S=z.map(y=>y.widget),_=(0,g.i)(S,"iconData");return{is:(_==null?void 0:_.iconSize)||0,fill:(0,g.i)(S,"fill"),iconColor:_==null?void 0:_.iconColor,canSetIconColor:!(_!=null&&_.isMultiColorIcon)}},old:N=>{let{selectedTrees:z}=N;const S=z.map(y=>y.widget),_=(0,g.i)(S,"tc")||A.A.tc;return{is:(0,g.i)(S,"is")||0,iconColor:_}}},[o.z.MobileTabBarsIconPanel]:{[m.m9]:N=>{let{selectedTrees:z}=N;const S=z.map(a=>a.widget),{iconSize:_,iconColor:y}=(0,g.i)(S,"mobileTabBars");return{iconSize:_,iconColor:y}}},[o.z.UnifiedKeyboardPanel]:{[m.m9]:N=>{let{selectedTrees:z}=N;const S=z.map(_=>_.widget);return{kbdStyle:(0,g.i)(S,"numeric")?"numeric":"text"}}},[o.z.CheckPanel]:{[m.m9]:N=>{let{selectedTrees:z}=N;const S=z.map(_=>_.widget);return{isChecked:!!(0,g.i)(S,"isChecked")}}}},h=[C.x.WRichText,C.x.WIcon],E=N=>{if(!r.includes(N))return[];const S=h.includes(N)?b[o.z.TextShadowsPanel].properties:b[o.z.BoxShadowsPanel].properties,_=[C.x.WRichText].includes(N)?()=>({}):b[o.z.BorderPanel].properties;return[b[o.z.BorderRadiusPanel][N]||b[o.z.BorderRadiusPanel][m.m9],b[o.z.FillPanel][f.includes(N)?"properties":m.m9],b[o.z.ArrowSettingPanel][N]||b[o.z.ArrowSettingPanel][m.m9],S,_]}},9332:(Et,ke,e)=>{"use strict";e.d(ke,{Y:()=>m});var o=e(21676);const m=o.Ay.div.withConfig({displayName:"styles__StylesBorderOpener",componentId:"sc-cpd12v-0"})(["display:flex;flex-direction:column;transition:height 200ms ease-in-out 0s;&.is-open{height:auto;}.appearance-line{display:flex;align-items:center;margin-left:-6px;}.border-open{min-height:16px;}.legendPos{margin:0;}.border-collapse-body{display:flex;align-items:center;color:#415058;transition:height 200ms ease-in-out 0s;overflow:hidden;margin-left:28px;> label{width:50px;height:22px;}.border-select-size-warp{margin-right:6px;}.border-select-size{width:83px;height:28px;border:1px solid ",";.border-style{width:12px;height:12px;}.radio-option{&.active{.border-style{border-color:",";}}}button{.border-line{color:",";}}}.WorkspaceInputNumber,.CoreInput{width:48px;height:28px;}.border-width-input{width:67px;height:28px;}.border-width-menu-opener{width:24px;height:24px;margin-left:6px;&.is-open{.widthSettings{background-color:",";}}}.font-size-container{margin-left:47px;margin-right:25px;.WorkspaceInputNumber{width:64px;}}}&.label-option{.border-collapse-body{&:not(.can-change-color){.font-size-container{margin-right:43px;}}}}"],g=>g.theme.color_bg_border_02,g=>g.theme.color_proto,g=>g.theme.color_text_L1,g=>g.theme.color_btn_secondary_active)},49133:(Et,ke,e)=>{"use strict";e.d(ke,{$d:()=>u,Jh:()=>h,K3:()=>b,se:()=>r,xq:()=>f});var o=e(21676),m=e(86634),g=e.n(m),l=e(4114),C=e(57464);const T=o.Ay.div.withConfig({displayName:"common__StyledLine",componentId:"sc-198dvpo-0"})(["width:43px;height:2px;color:",";background-repeat:repeat-x;background-position:left center;&.solid{background-image:linear-gradient(to right,currentColor 0%,currentColor 100%,transparent 0%);background-size:43px 1px;}&.dotted{background-image:linear-gradient(to right,currentColor 0%,currentColor 25%,transparent 25%);background-size:4px 1px;}&.dashed{background-image:linear-gradient(to right,currentColor 0%,currentColor 55%,transparent 55%);background-size:22% 1px;}"],E=>E.theme.color_text_L1),A=()=>(0,C.jsx)(T,{className:g()("border-line solid")}),k=()=>(0,C.jsx)(T,{className:g()("border-line dotted")}),p=()=>(0,C.jsx)(T,{className:g()("border-line dashed")}),r=(0,l.R)(()=>[{label:(0,C.jsx)(A,{}),value:"solid",tip_title:I18N.SettingPanel.solid_line},{label:(0,C.jsx)(k,{}),value:"dotted",tip_title:I18N.SettingPanel.dot_line},{label:(0,C.jsx)(p,{}),value:"dashed",tip_title:I18N.SettingPanel.break_line}]),x=E=>E.map(N=>({label:N.toString(),value:N})),f=x([0,1,2,3,4,5,6,7,8,9]),u=x([1,2,3,4,5,6,7,8,9]),b=x([1,2,3,4,5,6,7,8,9,10]),h=x([0,30,45,60,90])},78022:(Et,ke,e)=>{"use strict";e.d(ke,{Y:()=>g,v:()=>m});var o=e(21676);const m=(0,o.DU)([".border_style_select_menu{li span{display:flex !important;align-items:center;}&.is-open.WorkspaceSelectMenu{width:78px !important;.svg-icon2{svg.svg-icon{left:12px;}}.SelectOption > .Ellipsis{min-width:auto;}}}.border_width_select_menu{&.is-open.WorkspaceSelectMenu{width:66px;}}"]),g=(0,o.DU)([".arrow_type_select_menu{li span{display:flex!important;align-items:center;.svg-icon{width:24px;}}&.is-open.WorkspaceSelectMenu{width:78px;}}.arrow_type_select_menu_end{.reverse{width:24px;transform:rotate(180deg);}}"])},54225:(Et,ke,e)=>{"use strict";e.d(ke,{z:()=>o});let o=function(m){return m.BorderRadiusPanel="BorderRadiusPanel",m.FillPanel="FillPanel",m.BorderPanel="BorderPanel",m.BoxShadowsPanel="BoxShadowsPanel",m.TextShadowsPanel="TextShadowsPanel",m.ToolTipArrowSettingPanel="ToolTipArrowSettingPanel",m.TextStatusBarPanel="TextStatusBarPanel",m.InputTypeKeyboardPanel="InputTypeKeyboardPanel",m.ArrowSettingPanel="ArrowSettingPanel",m.QRCodeSettingPanel="QRCodeSettingPanel",m.TextPanel="TextPanel",m.DigitalStepperPanel="DigitalStepperPanel",m.IconSettingsPanel="IconSettingsPanel",m.MobileTabBarsIconPanel="MobileTabBarsIconPanel",m.SVGIconPathSettings="SVGIconPathSettings",m.IconPathSettings="IconPathSettings",m.UnifiedKeyboardPanel="UnifiedKeyboardPanel",m.CheckPanel="CheckPanel",m.TreeNodePanel="TreeNodePanel",m}({})},95057:(Et,ke,e)=>{"use strict";e.d(ke,{U:()=>l});var o=e(36072),m=e(29516),g=e(37679);const l={[o.q.OpacityInfoPanel]:{[m.m9]:C=>{var T;let{selectedTrees:A}=C;const k=A.map(p=>p.widget)[0];if(!g.hp.includes(k.type))return{opacity:(T=k.opacity*100)!=null?T:100}}},[o.q.FixedInfoPanel]:{[m.m9]:C=>{let{selectedTrees:T}=C;const A=T[0].widget,p=new Set(T.map(f=>{let{widget:u}=f;return Number(u.stickyOffset)||0})).size>1,r=p?void 0:A.stickyOffset,x=p?I18N.SettingPanel.multiple_value:"";return{fixPosTo:A.fixPosTo,isShowMultipleOffset:p,stickyOffset:r,placeholderOffset:x}}}}},36072:(Et,ke,e)=>{"use strict";e.d(ke,{q:()=>o});let o=function(m){return m.OpacityInfoPanel="OpacityInfoPanel",m.FixedInfoPanel="FixedInfoPanel",m}({})},72399:(Et,ke,e)=>{"use strict";e.d(ke,{p:()=>f,h:()=>b});var o=e(51044),m=e(60081),g=e(21676);const l=g.Ay.section.withConfig({displayName:"style__StyledTableCellInfo",componentId:"sc-yqvqsy-0"})([".general-line{border-top:1px solid ",";padding:0px 16px;height:48px;align-items:center;&.tableCellWH{display:flex;padding:0 8px;border-top:none;label{&:first-child{margin-right:10px;}}}&.colorBtnWarp{display:flex;[type=color-btn]{margin-left:20px;}.thumbnail{width:14px;}}}"],h=>h.theme.color_bg_border_01);var C=e(2743),T=e(68496),A=e(67305),k=e(57464);const p=h=>{let{width:E,height:N,background:z,isShowMultipleWidth:S,isShowMultipleHeight:_,placeholder:y,dispatch:a}=h;const $=(de,fe)=>{de&&a({type:"entry:table:set:cell:width:height",payload:{value:de,attr:fe}})};let ce=z;return Number.isNaN(Number(z))?(!z||z.split(",").length===3)&&(ce="rgba(255,255,255,1)"):ce=(0,T.t0)(z),(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)("div",{className:"general-line tableCellWH",children:[(0,k.jsx)(m.A,{className:"general-input step-input-width-72",title:"W",attr:"columns",value:S?void 0:E,isNotVerify:S,placeholder:y,min:A.__,onConfirm:$}),(0,k.jsx)(m.A,{className:"general-input step-input-width-72",title:"H",attr:"rows",value:_?void 0:N,isNotVerify:_,placeholder:y,min:A.__,onConfirm:$})]}),(0,k.jsxs)("div",{className:"general-line colorBtnWarp",children:[(0,k.jsx)("div",{children:I18N.SettingPanel.cellfill}),(0,k.jsx)(C.R_,{attr:"cellBackground",color:ce,onChange:(de,fe)=>a({type:"entry:table:set:cell:attr:new",payload:{attr:fe,value:de}})})]})]})},r=(0,o.memo)(p),x=h=>{let{children:E}=h;return(0,k.jsx)(l,{children:E})},f=h=>{let{selectedTrees:E,selectionTableCell:N}=h;const z=E.map(de=>de.widget),{width:S,height:_,background:y,isShowMultipleWidth:a,isShowMultipleHeight:$,placeholder:ce}=(0,A.Kx)(N,z[0]);return{width:S,height:_,background:y,isShowMultipleWidth:a,isShowMultipleHeight:$,placeholder:ce}},u={component:r,params:{},getter:[f],setter:{}},b=()=>[x,[u]]},27643:(Et,ke,e)=>{"use strict";e.d(ke,{E:()=>A});var o=e(51044),m=e(7775),g=e(54635),l=e(21676);const C=l.Ay.section.withConfig({displayName:"styles__StyledSinglePanelScroll",componentId:"sc-111g21s-0"})(["width:240px;color:",";display:flex;align-items:center;padding:0 14px;justify-content:space-between;.left-label{height:14px;color:",";line-height:14px;white-space:nowrap;margin-right:40px;&:lang(en){margin-right:0;}}.scrollSettingSelect{width:140px;margin-left:auto;}"],k=>k.theme.color_text_L2,k=>k.theme.color_text_L2);var T=e(57464);const A=(0,o.memo)(k=>{let{scroll:p,handleChange:r}=k;const x=f=>{r(parseInt(f),"scroll")};return(0,T.jsxs)(C,{className:"height-32",children:[(0,T.jsx)("label",{className:"left-label",children:I18N.SettingPanel.singlePanelScroll.title}),(0,T.jsx)("div",{className:"right-content",children:(0,T.jsx)(m.mq,{className:"scrollSettingSelect",optionList:g.SK.map(f=>({...f,label:I18N.SettingPanel.singlePanelScroll[f.label]})),value:p||g.Ci.hide,onChange:x})})]})})},15297:(Et,ke,e)=>{"use strict";e.d(ke,{_:()=>r});var o=e(51044),m=e(7775),g=e(21676);const l=g.Ay.div.withConfig({displayName:"styles__StyledSinglePanelState",componentId:"sc-ynvey1-0"})(["display:flex;justify-content:space-between;align-items:center;width:100%;padding:0 14px;color:",";.left-label{height:14px;line-height:14px;white-space:nowrap;}.right-content{width:140px;display:flex;flex-wrap:wrap;justify-content:space-between;}.panelstate-select{width:140px;margin-left:auto;&:lang(ja){width:110px;}}.panelstate-selectmenu{width:140px;}"],x=>x.theme.color_text_L2);var C=e(63555),T=e(72866),A=e(33386),k=e(86310),p=e(57464);const r=(0,o.memo)(x=>{let{panel:f,dispatch:u,editingBasketRefPage:b}=x;const h=S=>{if((f==null?void 0:f.type)===C.x.WBasket){try{sdkStore.updateHotAttrKV(f.key,"refContentKey",S)}catch(_){(0,A.p)("[fatal]: no owa update under",_,JSON.stringify(f)),u({type:"entry:update:selection:select:items",payload:{type:"selection:clear"}});return}(f==null?void 0:f.basket)==="bDanli"&&sdkStore.updateHotAttrKV(f==null?void 0:f.refRBPageKey,"defaultCanvasKey",S)}else(f==null?void 0:f.bunch)===C.x.RbPage&&sdkStore.updateHotAttrKV(f==null?void 0:f.key,"defaultCanvasKey",S);u({type:"entry:rebuild:screen-widget-tree"}),u({type:k.y.entryKey["font:missFontKeyMap:update"]})},E=(f==null?void 0:f.refRBPageKey)||(f==null?void 0:f.key);if(!E||sdkStore.isTrashed(E))return null;const z=(0,T.XY)(E).map(S=>({value:S.cid,label:S.name}));return(0,p.jsxs)(l,{className:"height-32",children:[(0,p.jsx)("label",{className:"left-label",children:b?I18N.SettingPanel.main_default_state:I18N.SettingPanel.main_state}),(0,p.jsx)("div",{className:"right-content",children:(0,p.jsx)(m.mq,{className:"panelstate-select",menuClassName:"panelstate-selectmenu",value:(f==null?void 0:f.refContentKey)||(f==null?void 0:f.defaultCanvasKey),optionList:z,isRightAlign:!0,onChange:h})})]})})},76995:(Et,ke,e)=>{"use strict";e.d(ke,{X:()=>de});var o=e(74059),m=e(51044),g=e(60185),l=e(86634),C=e.n(l),T=e(16112),A=e.n(T),k=e(17383),p=e(88175),r=e(36521),x=e(11777),f=e(34677),u=e(8078),b=e(7290),h=e(60199),E=e(50685),N=e(86310),z=e(72605),S=e(30797),_=e(57465),y=e(43585),a=e(57464);const{w4:$}=f;function ce(fe){let{fontFamily:se,fontWeight:J,fontStyle:ve,wbiVersion:D,isShowFontWeightLabel:R,dispatch:V,handleChange:O,handleChangeFontFamily:Ce,handleFakeOverrideChange:ae,isTextEditing:q,handleChangeBatch:K,subMenuDirection:xe,subMenuLeftOffset:te,getPositionRelativeRef:H,positionRelative:re,positionRelativeRef:be,hasMissFontHi:Le,isMissFont:Ve,fontSize:Ne,lineHeight:We}=fe;const ze=(0,z.d4)(N.y.query.getFontLocalList),ft=(0,z.d4)(S.p$),[mt,i]=(0,m.useState)({top:300,left:0}),[gt,Je]=(0,m.useState)(!1),[Pt,bt]=(0,m.useState)(!1),[qt,pt]=(0,m.useState)(se),[$t,go]=(0,m.useState)(J),[Co,Tt]=(0,m.useState)(ve),mo=(0,m.useRef)(!1),jo=(0,m.useRef)(!1),Kt=(0,m.useRef)(null),Ft=(0,m.useRef)(()=>null),nt=(0,m.useRef)(()=>null),Rt=(0,m.useRef)(void 0),yt=(0,m.useRef)(void 0);(0,m.useLayoutEffect)(()=>{gt||(pt(se),go(J),mo.current=!1,jo.current=!1)},[gt,se,J]);const Jt=Lo=>{const Ao=(0,E.dv)(Lo),xt=Ao.ff,Ut=(0,k._K)(Ao.fw),Wo=(0,k.LR)(Ao.fw)?"italic":"normal";return[xt,Ut,Wo,Ao.defaultFw]},vo=()=>{mo.current||jo.current&&(clearTimeout(Rt.current),yt.current=setTimeout(()=>{q?(O(qt,"fontFamily"),O($t,"fontWeight"),O(Co,"fontStyle")):V({type:"entry:set:text:attr:fakeOverride:restore"})},200))};(0,m.useEffect)(()=>()=>{vo()},[]),(0,m.useEffect)(()=>{pt(se),go(J),Tt(ve)},[gt,ft]),(0,m.useEffect)(()=>{gt?q&&V({type:"draft:update:state",payload:{isStopAutoSave:!0}}):q&&V({type:"draft:update:state",payload:{isStopAutoSave:!1}})},[gt,V]);const Yo=async Lo=>{const Ao=Lo.value,xt=Lo.type==="cloud",Ut=()=>{sdkStore.combineMergeMark("font-style-family-change");const Wo=(0,_.qp)(qt,Ne);if(xt){const qo=Jt(Lo);if(O(qo[0],"fontFamily"),$t!=="bold"&&Co!=="italic")O(qo[1],"fontWeight"),O(qo[1]==="bold","bold"),Co!==qo[2]&&O(qo[2],"fontStyle");else{const{isAllWeightItalic:sn,isAllWeightOverBold:Kn}=(0,E.rB)(Lo);sn||Kn?($t!=="bold"&&O(qo[1],"fontWeight"),Co!==qo[2]&&O(qo[2],"fontStyle"),O(qo[1]==="bold","bold")):$t!=="bold"&&O(qo[1],"fontWeight")}We===Wo&&O((0,_.qp)(qo[0],Ne),"lineHeight")}else O(Ao,"fontFamily"),$t!=="bold"&&O("regular","fontWeight"),O($t==="bold","bold"),We===Wo&&O((0,_.qp)(Ao,Ne),"lineHeight");if(sdkStore.combineMerge("font-style-family-change"),(0,y.rr)({operation_type:"\u5E94\u7528\u5B57\u4F53",font_type:xt?"\u4E91\u7AEF":"\u5B98\u65B9"}),!!K)if(xt){const qo=Jt(Lo);K({fontFamily:Lo.value,fontWeight:qo[3]||qo[1],fontStyle:qo[2]})}else K({fontFamily:Ao,fontWeight:$t!=="bold"?"regular":void 0})};if((0,E.x7)(Ao))bt(!0),new Promise((qo,sn)=>{Ft.current=()=>qo(),nt.current=()=>sn()}).then(()=>{Ut(),(0,r.cH)("FZFontAuthInformed",!0),bt(!1)},()=>{bt(!1)});else if($.includes(Ao))Ut();else try{xt||(await new(A())(Ao).load(),await new(A())(Ao,{waight:(0,k._y)($t,!1)}).load())}catch(Wo){}finally{Ut()}dt()},Ho=async Lo=>{const Ao=[];if(Lo.type==="cloud"){const xt=Jt(Lo);if(Ao.push(["fontFamily",xt[0]]),$t!=="bold"&&Co!=="italic")Ao.push(["fontWeight",xt[1]],["fontStyle",xt[2]]);else{const{isAllWeightItalic:Ut,isAllWeightOverBold:Wo}=(0,E.rB)(Lo);Ut||Wo?($t!=="bold"&&Ao.push(["fontWeight",xt[1]]),Ao.push(["fontStyle",xt[2]])):$t!=="bold"&&Ao.push(["fontWeight",xt[1]])}}else Ao.push(["fontFamily",Lo.value]);clearTimeout(yt.current),Rt.current=setTimeout(()=>{ae(Ao)},200)},kt=(Lo,Ao)=>{let xt=Lo.value;Lo.type==="cloud"&&(xt=Lo.weightExtKeyKV[Ao.value]);const Ut=Ao.value,Wo=(0,k._K)(Ut),qo=k.S0[Wo]!==void 0,sn=(0,k.LR)(Ut)?"italic":"normal";return{nextFontFamily:xt,nextFontWeight:qo?Wo:"regular",nextFontStyle:sn,nextBold:Wo==="bold",fontWeightNoItalic:Wo}},Ze=async(Lo,Ao)=>{const xt=Lo.type==="cloud",{nextFontFamily:Ut,nextFontWeight:Wo,nextFontStyle:qo,fontWeightNoItalic:sn}=kt(Lo,Ao);try{$.includes(Ut)||(xt?await new(A())(Ut).load():await new(A())(Ut,{weight:(0,k._y)(sn,!1),style:qo}).load())}catch(Kn){}finally{sdkStore.combineMergeMark("font-style-weight-change"),jo.current&&O($t,"fontWeight"),O(Ut,"fontFamily"),O(Wo,"fontWeight"),O(Wo==="bold","bold"),qo!==Co&&O(qo,"fontStyle");const Kn=(0,_.qp)(qt,Ne);We===Kn&&O((0,_.qp)(Ut,Ne),"lineHeight"),sdkStore.combineMerge("font-style-weight-change"),(0,y.rr)({operation_type:"\u5E94\u7528\u5B57\u4F53",font_type:xt?"\u4E91\u7AEF":"\u5B98\u65B9"}),K&&K(xt?{fontFamily:Lo.value,fontWeight:sn,fontStyle:qo}:{fontFamily:Ut,fontWeight:sn,fontStyle:qo}),dt()}},it=async(Lo,Ao)=>{const{nextFontFamily:xt,nextFontStyle:Ut,nextFontWeight:Wo,nextBold:qo}=kt(Lo,Ao);clearTimeout(yt.current),Rt.current=setTimeout(()=>{const sn=[];sn.push(["fontFamily",xt]),sn.push(["fontStyle",Ut]),Wo!==J&&sn.push(["fontWeight",Wo]),ae(sn)},200)},st=()=>{var Lo;const Ao=(Lo=Kt.current)==null?void 0:Lo.getBoundingClientRect();if(Ao){let xt=Ao.top-82,Ut=Ao.left-250;re.yOffset&&(xt+=re.yOffset),re.xOffset&&(Ut+=re.xOffset),xt+432-window.innerHeight>0&&(xt=window.innerHeight-432-18),i({top:xt,left:Ut})}Je(!gt)},dt=()=>{Je(!1),vo()},Ot=()=>{const{chooseFont:Lo,fontWeightList:Ao}=(0,E.Y_)(ze,qt,$t);if(!R||Ao.length===0)return"";const xt=Ao.length;if(xt===0||xt===1||!Lo)return"";const Ut=(0,k.KI)(Lo,Ao),Wo=(0,E.Ls)($t,Ut,Co);return(0,k.cB)(Wo)||Wo},Ct=Lo=>{!Lo.target.closest("#font-list-panel")&&!Lo.target.closest(".font-family-label")&&dt();let Ao=Lo.target;for(;Ao.nodeName!=="BODY";){var xt;if(Ao=Ao.parentElement,!Ao)return;if((xt=Ao.classList)!=null&&xt.contains("typeface2-btn")){Ao!==Kt.current&&dt();return}}},wo=(0,E.c9)(qt,ze),ln=Ot(),Io=R&&ln.length>0?wo+","+ln:wo;return(0,a.jsxs)("div",{className:"typeface2-btn",ref:Kt,children:[(0,a.jsxs)(u.dA,{className:C()("font-family-label",{"is-open":gt}),onClick:st,children:[(0,a.jsxs)("button",{children:[(Ve||K&&(0,E.Zf)(ze,qt,$t))&&(0,a.jsx)(x.A,{content:"\u5B57\u4F53\u7F3A\u5931",direction:"down",distance:5,enterHoverTime:500,children:(0,a.jsx)(b.C,{isColorPure:!0,name:"design/notify/questionMark",className:"questionMark"})}),(0,a.jsx)("span",{children:Io})]}),(0,a.jsx)(b.C,{name:"arrow/down",className:"caret",size:24})]}),gt&&(0,g.createPortal)((0,a.jsx)(h.Z,{fontFamily:qt,fontWeight:$t,fontStyle:Co,position:mt,subMenuDirection:xe,clickFF:Lo=>{mo.current=!0,Yo(Lo)},clickFW:(Lo,Ao)=>{mo.current=!0,Ze(Lo,Ao)},hoverFF:Lo=>{jo.current=!0,Ho(Lo)},hoverFW:(Lo,Ao)=>{jo.current=!0,it(Lo,Ao)},clearOverrideAttr:vo,handleClickOutSideToClose:Ct,fontListOriginal:ze,setIsOpenListPanel:Je}),document.body),Pt&&(0,a.jsx)(p.A,{isOpen:!0,onConfirm:Ft.current,onClose:nt.current}),(0,a.jsx)(u.e,{})]})}class de extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleChange",(se,J)=>{const{onChange:ve,dispatch:D}=this.props;ve&&ve({value:se,attr:J,dispatch:D})}),(0,o.A)(this,"handleFakeOverrideChange",se=>{const{supAttr:J,dispatch:ve}=this.props;ve({type:"entry:set:text:attr:fakeOverride",payload:{attrValueList:se,supAttr:J,isTreeSelectNode:J==="wTree-selectNode"}})})}render(){const{fontFamily:se,fontWeight:J,fontStyle:ve,wbiVersion:D,dispatch:R,subMenuDirection:V,subMenuLeftOffset:O,isShowFontWeightLabel:Ce,onChangeBatch:ae,isTextEditing:q,positionRelative:K={xOffset:0,yOffset:0},hasMissFontHi:xe,isMissFont:te,fontSize:H,lineHeight:re}=this.props;return(0,a.jsx)("div",{className:"font-group font-line height-32",children:(0,a.jsx)(ce,{fontFamily:se,isTextEditing:q,fontWeight:J,fontStyle:ve,handleChange:this.handleChange,wbiVersion:D,dispatch:R,subMenuDirection:V,subMenuLeftOffset:O,isShowFontWeightLabel:Ce,handleChangeBatch:ae,handleFakeOverrideChange:this.handleFakeOverrideChange,positionRelative:K,hasMissFontHi:xe,isMissFont:te,fontSize:H,lineHeight:re})})}}},96958:(Et,ke,e)=>{"use strict";e.d(ke,{b5:()=>z,cX:()=>x,sE:()=>E,xR:()=>N});var o=e(63555),m=e(67305),g=e(38550),l=e(50253),C=e(29516),T=e(73688),A=e(10091),k=e(47442),p=e(46927),r=e(70226);const x=[o.x.WRichText,o.x.WRect,o.x.WOval,o.x.WStar,o.x.WLine,o.x.WArrow,o.x.WPolygon,o.x.WPlaceholder,o.x.WMTooltip,o.x.WButton,o.x.WButtonSolid,o.x.WMTextInput,o.x.WMTextArea,o.x.WMSelect,o.x.WTabs,o.x.WDropMenu,o.x.WVector,o.x.WMindNode,o.x.WElbow,o.x.WTriangle,o.x.WFlowOpened,o.x.wFlowClosed,o.x.WMindNode,o.x.WTree,o.x.WMobileTabBars],f=_=>y=>{let{selectedTrees:a,rootProject:{device:$,model:ce},hasMissFontHi:de,cloudFontLocalList:fe}=y;const se=a.map(xe=>xe.widget),{fontSize:J,bold:ve,textDecoration:D,italic:R,letterSpacing:V,fontFamily:O,fontWeight:Ce,textColor:ae}=(0,A.i)(se,"textV0"),q=se.find(xe=>xe.name===_);let K=ae;if([o.x.WMTextInput,o.x.WMTextArea].includes(_)){const{prefillTextColorV0:xe}=(0,A.i)(se,"textInput");K=xe}return{device:$,model:ce,fontSize:J,boldType:ve?1:0,textDecoration:D,fontStyle:R?"italic":"normal",boldAttr:"boldType",letterSpacing:V,fontFamily:O,wbiVersion:3,fontWeight:Ce,textColor:K,name:q.name,colorAttr:"prefillTextColorV0",hasMissFontHi:de,isMissFont:(0,r.QT)(O,Ce),cloudFontLocalList:fe}},u=_=>{let{defaultCanHa:y,defaultCanVa:a}=_;return $=>{let{selectedTrees:ce,hasMissFontHi:de}=$;const fe=ce.map(J=>J.widget),se=(0,A.i)(fe,"richTextV1");return{ha:se.horizontalAlign,va:se.verticalAlign,canHa:y,canVa:a==="dependSizetype"?se.sizeType!==0:a,shouldReverseDesc:(se==null?void 0:se.fontDirection)==="vertical-lr",hasMissFontHi:de}}},b=_=>y=>{let{selectedTrees:a,isTextEditing:$,richTextEditorState:ce,hasMissFontHi:de}=y;const se=a.map(H=>H.widget).find(H=>H.name===_),{fontWeight:J,lineHeight:ve,paddingTuple:D,letterSpacing:R,listValue:V,paraSpacing:O,fontDirection:Ce,isHavingLink:ae,isClipText:q,fontFamily:K,sizeType:xe,fontSize:te}=(0,k.mj)({baseItem:se,isEditing:$,richTextEditorState:ce});return{fontSize:te,lineHeight:ve,paddingTuple:D,letterSpacing:R,name:se.name,disabled:$&&_!==o.x.WRichText,shouldReverseDesc:Ce==="vertical-lr",listValue:V,paraSpacing:O,isClipText:q,fontDirection:Ce,isHavingLink:ae,isWRichText:!0,fontFamily:K,hasMissFontHi:de,isMissFont:de,sizeType:xe}},h=_=>y=>{let{selectedTrees:a,rootProject:{device:$,model:ce},isTextEditing:de,richTextEditorState:fe,hasMissFontHi:se,cloudFontLocalList:J}=y;const D=a.map(re=>re.widget).find(re=>re.name===_),{letterSpacing:R,fontFamily:V,color:O,fontSize:Ce,fontStyle:ae,sizeType:q,textDecoration:K,boldType:xe,fontWeight:te,lineHeight:H}=(0,k.mj)({baseItem:D,isEditing:de,richTextEditorState:fe});return{device:$,model:ce,fontFamily:V,lineHeight:H,letterSpacing:R,fontSize:Ce,fontWeight:te,fontStyle:ae,fontStyleAttr:"fontStyle",textColor:O||g.A.tc,colorAttr:"textColor",sizeType:q,textDecoration:K,boldType:xe,boldAttr:"boldType",isTextEditing:de,isRichText:!0,hasMissFontHi:se,isMissFont:se,cloudFontLocalList:J}},E={[l.s.TextFontPanel]:{[C.m9]:_=>{let{selectedTrees:y,rootProject:{device:a,model:$},hasMissFontHi:ce,cloudFontLocalList:de}=_;const fe=y.map(Ce=>Ce.widget),{fontFamily:se,fontWeight:J,fontSize:ve,bold:D,italic:R,textColor:V,textDecoration:O}=(0,A.i)(fe,"textV0")||{};return{device:a,model:$,fontFamily:se,fontSize:ve,textColor:V,fontWeight:J,boldAttr:"boldType",boldType:D?1:0,textDecoration:O,wbiVersion:3,fontStyle:R?"italic":"normal",hasMissFontHi:ce,isMissFont:(0,r.QT)(se,J),cloudFontLocalList:de}},[o.x.WTree]:_=>{let{selectedTrees:y,hasMissFontHi:a,cloudFontLocalList:$}=_;const ce=y.map(fe=>fe.widget),de=(0,A.i)(ce,"textV0");return{fontSize:de.fontSize,textColor:de.textColor,boldType:de.bold?1:0,boldAttr:"boldType",textDecoration:de.textDecoration,fontStyle:de.italic?"italic":"normal",fontFamily:de.fontFamily,fontWeight:de.fontWeight,isMissFont:(0,r.QT)(de.fontFamily,de.fontWeight),hasMissFontHi:a,cloudFontLocalList:$}},[o.x.WTabs]:_=>{let{selectedTrees:y}=_;const a=y.map(de=>de.widget),{textColor:$,fontSize:ce}=(0,A.i)(a,"tabs");return{fontSize:ce,textColor:$,colorAttr:"textColor",supAttr:"tabs"}},[o.x.WMTextArea]:f(o.x.WMTextArea),[o.x.WMTextInput]:f(o.x.WMTextInput),[o.x.WMSelect]:f(o.x.WMSelect),[o.x.WDropMenu]:f(o.x.WDropMenu),[o.x.WRichText]:_=>{let{selectedTrees:y,rootProject:{device:a,model:$},isTextEditing:ce,richTextEditorState:de,hasMissFontHi:fe,cloudFontLocalList:se}=_;const ve=y.map(We=>We.widget).find(We=>We.name===o.x.WRichText),{fontFamily:D,color:R,fontSize:V,fontStyle:O,sizeType:Ce,textDecoration:ae,boldType:q,fontWeight:K,fontDirection:xe,listValue:te,isHavingLink:H,curBlockKey:re,wbiVersion:be,paraSpacing:Le,isClipText:Ve,lineHeight:Ne}=(0,k.mj)({baseItem:ve,isEditing:ce,richTextEditorState:de});return{device:a,model:$,fontFamily:D,fontSize:V,lineHeight:Ne,fontWeight:K,fontStyle:O,fontStyleAttr:"fontStyle",textColor:R||g.A.tc,colorAttr:"textColor",sizeType:Ce,textDecoration:ae,isClipText:Ve,boldType:q,boldAttr:"boldType",isTextEditing:ce,fontDirection:xe,isRichText:!0,listValue:te,isHavingLink:H,curBlockKey:re,isWRichText:!0,wbiVersion:be,shouldReverseDesc:xe==="vertical-lr",paraSpacing:Le,isMissFont:fe,hasMissFontHi:fe,cloudFontLocalList:se}},[o.x.WRect]:h(o.x.WRect),[o.x.WOval]:h(o.x.WOval),[o.x.WLine]:h(o.x.WLine),[o.x.WElbow]:h(o.x.WElbow),[o.x.WArrow]:h(o.x.WArrow),[o.x.WPlaceholder]:h(o.x.WPlaceholder),[o.x.WMTooltip]:h(o.x.WMTooltip),[o.x.WButton]:h(o.x.WButton),[o.x.WPolygon]:h(o.x.WPolygon),[o.x.WStar]:h(o.x.WStar),[o.x.WVector]:h(o.x.WVector),[o.x.WTriangle]:h(o.x.WTriangle),[o.x.WFlowOpened]:h(o.x.WFlowOpened),[o.x.wFlowClosed]:h(o.x.wFlowClosed),[o.x.WMindNode]:h(o.x.WMindNode)},[l.s.TableTextFontPanel]:{[C.m9]:_=>{let{selectedTrees:y,selectionTableCell:a}=_;const $=y.map(ve=>ve.widget),{color:ce,fontSize:de,fontStyle:fe,boldType:se,textDecoration:J}=(0,m.kO)(a,$[0]);return{textColor:ce,colorAttr:"color",isTableCell:!0,fontSize:de,fontStyle:fe,fontStyleAttr:"fontStyle",boldType:se,boldAttr:"boldType",textDecoration:J}}},[l.s.ChartTextFontPanel]:{[C.m9]:_=>{let{selectedTrees:y}=_;const a=y.map(ce=>ce.widget),$=(0,A.i)(a,"textV0");return{fontSize:$.fontSize,textColor:$.textColor}}},[l.s.AlignPanel]:{[C.m9]:_=>{let{selectedTrees:y,hasMissFontHi:a}=_;const $=y.map(de=>de.widget),ce=(0,A.i)($,"textV0");return{ha:ce.horizontalAlign,va:ce.verticalAlign,canVa:!0,canHa:!0,hasMissFontHi:a}},[o.x.WRichText]:u({defaultCanHa:!0,defaultCanVa:"dependSizetype"}),[o.x.WRect]:u({defaultCanHa:!0,defaultCanVa:"dependSizetype"}),[o.x.WOval]:u({defaultCanHa:!0,defaultCanVa:"dependSizetype"}),[o.x.WLine]:u({defaultCanHa:!1,defaultCanVa:!1}),[o.x.WElbow]:u({defaultCanHa:!1,defaultCanVa:!1}),[o.x.WArrow]:u({defaultCanHa:!1,defaultCanVa:!1}),[o.x.WPlaceholder]:u({defaultCanHa:!0,defaultCanVa:"dependSizetype"}),[o.x.WButton]:u({defaultCanHa:!0,defaultCanVa:"dependSizetype"}),[o.x.WMTooltip]:u({defaultCanHa:!0,defaultCanVa:"dependSizetype"}),[o.x.WPolygon]:u({defaultCanHa:!0,defaultCanVa:!0}),[o.x.WStar]:u({defaultCanHa:!0,defaultCanVa:!0}),[o.x.WVector]:u({defaultCanHa:!0,defaultCanVa:!0}),[o.x.WTriangle]:u({defaultCanHa:!0,defaultCanVa:!0}),[o.x.wFlowClosed]:u({defaultCanHa:!0,defaultCanVa:!0}),[o.x.WFlowOpened]:u({defaultCanHa:!0,defaultCanVa:!0}),[o.x.WMTextInput]:()=>({canVa:!1}),[o.x.WMTextArea]:()=>({canVa:!1}),[o.x.WTree]:()=>({canVa:!1}),[o.x.WMSelect]:()=>({canVa:!1,canHa:!1}),[o.x.WTable]:_=>{let{selectedTrees:y,selectionTableCell:a}=_;const $=y.map(fe=>fe.widget),{ha:ce,va:de}=(0,m.kO)(a,$[0]);return{ha:ce,va:de,canVa:!0,canHa:!0}}},[l.s.SpacingPanel]:{[C.m9]:_=>{let{selectedTrees:y,isTextEditing:a,hasMissFontHi:$}=_;const de=y.map(ae=>ae.widget).filter(ae=>ae.type!==o.x.WRichText),fe=(0,A.i)(de,"textV0"),{lineHeight:se=g.A.lineHeight,paddingTuple:J=g.A.paddingTuple,letterSpacing:ve,paraSpacing:D,padding:R,fontFamily:V,fontWeight:O}=fe||{},Ce=de.length===1?de[0].name:void 0;return{lineHeight:se,paddingTuple:J,padding:R,disabled:a,letterSpacing:ve,baseItem:de,name:Ce,paraSpacing:D,isMissFont:(0,r.QT)(V,O),hasMissFontHi:$}},[o.x.WRichText]:b(o.x.WRichText),[o.x.WPlaceholder]:b(o.x.WPlaceholder),[o.x.WButton]:b(o.x.WButton),[o.x.WMTooltip]:b(o.x.WMTooltip),[o.x.WTree]:f(o.x.WTree),[o.x.WRect]:b(o.x.WRect),[o.x.WOval]:b(o.x.WOval),[o.x.WPolygon]:b(o.x.WPolygon),[o.x.WStar]:b(o.x.WStar),[o.x.WVector]:b(o.x.WVector),[o.x.WLine]:b(o.x.WLine),[o.x.WElbow]:b(o.x.WElbow),[o.x.WArrow]:b(o.x.WArrow),[o.x.WTriangle]:b(o.x.WTriangle),[o.x.WFlowOpened]:b(o.x.WFlowOpened),[o.x.wFlowClosed]:b(o.x.wFlowClosed),[o.x.WTable]:_=>{let{selectedTrees:y,selectionTableCell:a}=_;const ce=y.map(se=>se.widget)[0],{lineHeight:de,padding:fe}=(0,m.kO)(a,ce);return{lineHeight:de,padding:fe,name:ce.name}}},[l.s.ContentBoxPanel]:{[C.m9]:_=>{let{selectedTrees:y,hasMissFontHi:a}=_;const $=y.map(se=>se.widget),ce=$.find(se=>x.includes(se.name)),de=$.length>1&&($.every(se=>se.name===o.x.WMSelect)||$.findIndex(se=>se.name===o.x.WMSelect)===-1)&&$.every(se=>x.includes(se.type)),fe=$.filter(se=>p.VV.includes(se.type)).length===$.length;return{canShowContentBox:de,disableModifyContentBox:a,canMultiline:fe,content:de&&(0,T.MZ)($)}}},disableSetting:{[C.m9]:()=>({}),[o.x.WMTextInput]:()=>({noTd:!0}),[o.x.WMTextArea]:()=>({noTd:!0}),[o.x.WMSelect]:()=>({noTd:!0,noBold:!0,noItalic:!0})}},N=_=>x.includes(_)?[E[l.s.TextFontPanel][_]||E[l.s.TextFontPanel][C.m9],E[l.s.AlignPanel][C.m9],E[l.s.AlignPanel][_]||E[l.s.AlignPanel][C.m9],E[l.s.AlignPanel][_]||E[l.s.SpacingPanel][C.m9],E[l.s.SpacingPanel][_]||E[l.s.SpacingPanel][C.m9],E.disableSetting[_]||E.disableSetting[C.m9]]:[],z=()=>[E[l.s.TableTextFontPanel][C.m9],E[l.s.AlignPanel][C.m9],E[l.s.AlignPanel][o.x.WTable],E[l.s.SpacingPanel][o.x.WTable]],S=_=>{let{selectedTrees:y,isTextEditing:a,selectionAttrs:$}=_;const ce=y.map(fe=>fe.widget),de=itemsGetAttr(ce,"selectNode");return{fontSize:de.fontSize,textColor:de.textColor,boldType:de.bold?1:0,textDecoration:de.textDecoration,fontStyle:de.italic?"italic":"normal",fontFamily:de.fontFamily}}},88175:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>x});var o=e(51044),m=e(66748),g=e.n(m),l=e(21676),C=e(3930),T=e(86634),A=e.n(T),k=e(57464);const p=f=>{let{isOpen:u,onConfirm:b,onClose:h,className:E}=f;return(0,k.jsxs)(r,{isOpen:u,className:A()("fz-auth-modal",E),title:"\u5B57\u4F53\u4F7F\u7528\u987B\u77E5",confirmText:"\u540C\u610F",cancelText:"\u4E0D\u540C\u610F",onConfirm:b,onCancel:h,onClose:h,width:400,children:[(0,k.jsx)("p",{children:"\u5C0A\u656C\u7684\u58A8\u5200\u7528\u6237\uFF0C\u60A8\u597D!"}),(0,k.jsx)("p",{children:"\u60A8\u53EF\u4EE5\u5728\u58A8\u5200\u8BBE\u8BA1\u5DE5\u5177\u4E2D\u514D\u8D39\u8BD5\u7528\u65B9\u6B63\u5B57\u4F53\uFF0C\u4EE5\u5448\u73B0\u66F4\u597D\u7684\u5728\u7EBF\u8BBE\u8BA1\u6548\u679C\u3002\u5F53\u60A8\u5C06\u65B9\u6B63\u5B57\u4F53\u7528\u4E8E\u5546\u4E1A\u7528\u9014\u65F6\uFF0C\u9700\u8981\u4E3B\u52A8\u8054\u7CFB\u65B9\u6B63\u5B57\u5E93\u8D2D\u4E70\u6388\u6743\u3002\u300C\u514D\u8D39\u83B7\u5F97\u8BD5\u7528\u6743\uFF0C\u4ED8\u8D39\u83B7\u5F97\u4F7F\u7528\u6743\u300D\u3002"}),(0,k.jsx)("br",{}),(0,k.jsxs)("p",{children:["\u65B9\u6B63\u5B57\u5E93\u4EC5\u9488\u5BF9\u6700\u7EC8\u7528\u6237\u7684\u5546\u4E1A\u884C\u4E3A\u6536\u53D6\u6388\u6743\u8D39\u3002\u6709\u5173\u65B9\u6B63\u5B57\u5E93\u6388\u6743\u6A21\u5F0F\u548C\u4EF7\u683C\u7684\u8BE6\u7EC6\u5185\u5BB9\uFF0C\u8BF7\u4ED4\u7EC6\u9605\u8BFB",(0,k.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"http://www.foundertype.com/index.php/About/bookAuth/key/my_sysq.html",children:"\u300A\u65B9\u6B63\u5B57\u5E93\u201C\u5546\u4E1A\u53D1\u5E03\u201D\u6388\u6743\u4EF7\u683C\u8BF4\u660E\u300B"})]})]})};p.propTypes={isOpen:g().bool,className:g().string,onConfirm:g().func,onClose:g().func};const r=(0,l.Ay)(C.H).withConfig({displayName:"FZAuthModal__StyledModal",componentId:"sc-fk7ij6-0"})(["&.fz-auth-modal{background-color:",";border:1px solid ",";p{color:",";}.content{a{color:",";}}}"],f=>f.theme.color_bg_white,f=>f.theme.color_bg_border_02,f=>f.theme.color_text_L1,f=>f.theme.color_text_link_normal),x=p},10312:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>b,X:()=>h});var o=e(74059),m=e(51044),g=e(86634),l=e.n(g),C=e(7290),T=e(60185),A=e(60081),k=e(36521),p=e(8078),r=e(50485),x=e(57464);const f=139,u="local_font_size_less_12";class b extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"state",{isOpen:!1,y:0}),(0,o.A)(this,"$portalElem",document.createElement("div")),(0,o.A)(this,"onClose",()=>{document.body.removeChild(this.$portalElem),this.setState({isOpen:!1})}),(0,o.A)(this,"onToggle",N=>{if(this.state.isOpen)document.body.removeChild(this.$portalElem);else{document.body.appendChild(this.$portalElem);const z=window.innerHeight-N.clientY<f?window.innerHeight-f:N.clientY;this.setState({y:z})}this.setState({isOpen:!this.state.isOpen})}),(0,o.A)(this,"handleNotips",()=>{(0,k.a0)(u,!0,k.qW.Boolean),this.onClose()})}render(){const{fontSize:N,attr:z,disabled:S,less12UseTooltip:_=!1}=this.props,{isOpen:y,y:a}=this.state,$=N<12&&!(0,k.Yt)(u,null,k.qW.Boolean);return(0,x.jsxs)(p.Sv,{className:"font-size-container",children:[(0,x.jsx)(A.A,{className:l()("font-size-input",{"less-than":$}),menuClassName:"font-size-input-menu",attr:z||"fontSize",disabled:S,value:N,min:1,max:1e3,optionList:h,onConfirm:this.props.handleChange}),$&&(0,x.jsx)(x.Fragment,{children:_?(0,x.jsx)(r.I,{isWrap:!0,content:(0,x.jsxs)("div",{style:{width:237,fontSize:"12px",lineHeight:"20px"},children:["\u56E0\u6D4F\u89C8\u5668\u6700\u5C0F\u5B57\u53F7\u9650\u5236\uFF0C\u5C0F\u4E8E 12 \u7684\u5B57\u4F53\u65E0\u6CD5\u6B63\u5E38\u663E\u793A\uFF0C\u8BF7\u524D\u5F80\u6D4F\u89C8\u5668\u8BBE\u7F6E\u3002",(0,x.jsx)("a",{className:"tutorials",href:"/hc/articles/191",target:"_blank",rel:"noopener noreferrer",children:"\u67E5\u770B\u6559\u7A0B"})]}),children:(0,x.jsx)(C.C,{isColorPure:!0,size:16,name:"design/notify/questionMark",className:"questionMark",onClick:this.onToggle})}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(C.C,{isColorPure:!0,size:16,name:"design/notify/questionMark",className:"questionMark",onClick:this.onToggle}),y&&(0,T.createPortal)((0,x.jsxs)(p.v3,{y:a,height:f,children:[(0,x.jsxs)("header",{children:[(0,x.jsx)("span",{children:"\u5B57\u53F7\u8FC7\u5C0F"}),(0,x.jsx)("div",{className:"close-btn",onClick:this.onClose,children:(0,x.jsx)(C.C,{name:"common/close"})})]}),(0,x.jsxs)("div",{className:"content",children:[(0,x.jsx)("span",{children:"\u56E0\u6D4F\u89C8\u5668\u6700\u5C0F\u5B57\u53F7\u9650\u5236\uFF0C\u5C0F\u4E8E 12 \u7684\u5B57\u4F53\u65E0\u6CD5\u6B63\u5E38\u663E\u793A\uFF0C\u8BF7\u524D\u5F80\u6D4F\u89C8\u5668\u8BBE\u7F6E\u3002"}),(0,x.jsxs)("div",{className:"bottomContainer",children:[(0,x.jsx)("a",{className:"tutorials",href:"/hc/articles/191",target:"_blank",rel:"noopener noreferrer",children:"\u70B9\u51FB\u67E5\u770B\u6559\u7A0B"}),(0,x.jsx)("span",{className:"noTips",onClick:this.handleNotips,children:"\u4E0D\u518D\u63D0\u793A"})]})]})]}),this.$portalElem)]})})]})}}const h=[12,13,14,16,18,20,28,36,48,72].map(E=>({label:E,value:E}))},60199:(Et,ke,e)=>{"use strict";e.d(ke,{Z:()=>Le});var o=e(51044),m=e(19418),g=e(86634),l=e.n(g),C=e(8078),T=e(9819);const A=(Ve,Ne)=>{const[We,ze]=(0,o.useState)(Ne);return{activeIndex:We,tabList:Ve,goToTab:ze}};var k=e(54608),p=e(17383),r=e(44057),x=e(7290),f=e(11777),u=e(21676);const b=u.Ay.div.withConfig({displayName:"style__StyledCommercialLabel",componentId:"sc-16bepnv-0"})(["display:flex;&.cloud{color:",";border:1px solid ",";justify-content:center;width:30px;height:18px;border-radius:4px;margin-left:6px;font-size:11px;line-height:16px;}&.commercial{margin-left:6px;path{fill:"," !important;}}"],Ve=>Ve.theme.color_text_link_normal,Ve=>Ve.theme.color_text_link_normal,Ve=>Ve.theme.color_warning);var h=e(57464);const E=Ve=>{if(Ve==="normal")return null;const Ne=Ve==="commercial"?"\u82E5\u4F7F\u7528\u5546\u7528\u5B57\u4F53\uFF0C\n\u8BF7\u8054\u7CFB\u5B57\u5E93\u5382\u5546\u8D2D\u4E70\u6388\u6743":"\u4E0A\u4F20\u7684\u5B57\u4F53\u4EC5\u9650\u4E2A\u4EBA\u4F7F\u7528\uFF0C\n\u8BF7\u786E\u4FDD\u60A8\u62E5\u6709\u76F8\u5E94\u6388\u6743",We=Ve==="commercial"?"\u5546\u7528":"\u4E91\u7AEF";return(0,h.jsx)(f.A,{content:Ne,direction:"down",tipClassName:"fontPaidTipsContainer",distance2:4,children:(0,h.jsx)(b,{className:Ve,children:Ve==="cloud"?(0,h.jsx)("div",{className:"font-tip-label",children:We}):(0,h.jsx)(x.C,{size:16,isColorPure:!0,name:"font/commercial"})})})};var N=e(50685),z=e(58741),S=e(89535);const _=(0,h.jsx)(x.C,{name:"font/panel/select",className:"selected-icon"}),y=Ve=>{let{fontFamily:Ne,fontWeight:We,wbiVersion:ze,fontList:ft,fontStyle:mt,clickFF:i,clickFW:gt,hoverFF:Je,hoverFW:Pt,height:bt,isSearch:qt,clearOverrideAttr:pt}=Ve;const[$t,go]=(0,o.useState)(null),Co=(0,z.mz)(typeof Ne=="string"?Ne:"");return(0,h.jsx)(C.NV,{height:bt,position:{top:0,left:0},className:"font-family-menu",isSearch:qt,children:ft.map((Tt,mo)=>{let jo=!1;const Kt=Tt.type==="cloud";Co?Kt&&(jo=!!Object.values(Tt.weightExtKeyKV).find(Yo=>Yo===Ne)):Kt||(jo=Tt.value===Ne);const Ft=(0,p.KI)(Tt,Tt.typeList),nt=(0,N.Ls)(We,Ft,mt),Rt=Tt.type!=="cloud"?"regular":(0,N.dv)(Tt).fw,yt=Tt.typeUrlKV[Rt]||Tt.typeUrlKV[Object.keys(Tt.typeUrlKV)[0]],Jt={fontFamily:yt?void 0:Tt.value},vo=Yo=>{const Ho=(kt,Ze)=>{try{const st=Ze.getElementsByClassName("is-svg");if((st==null?void 0:st.length)>0){var it;if((((it=[...st][0])==null||(it=it.childNodes[0])==null?void 0:it.getBoundingClientRect().width)||0)>164)return!0}return!1}catch(st){return!1}};return(0,h.jsx)(S.A,{content:Tt.label,onChangeTooltipsHover:(kt,Ze)=>Ze==null?void 0:Ze(),isShowTipsByTarget:Ho,children:Yo},mo)};return(0,h.jsx)("div",{style:Jt,className:l()("font-family-level",{"font-active":jo}),children:(0,h.jsx)(r.aM,{text:Tt.label,dataIndex:mo,className:$t===Tt&&Tt.type!=="normal"?"hovered":void 0,onClick:()=>{i(Tt)},onMouseEnter:()=>{go(Tt),Je(Tt)},onMouseLeave:Yo=>{go(null),pt()},subMenuDirection:"left",subMenuLeftOffset:700,subMenuTopOffset:-426,icon:jo?_:null,isAiry:!0,fontUrl:yt,tooltipComponent:E($t===Tt?Tt.type:"normal"),tooltipWrapper:vo,children:Ft.length>1&&Ft.map((Yo,Ho)=>{let kt=jo&&Yo.value===nt;return Co&&Kt&&(Tt.isVF?kt=Yo.value===nt:Object.keys(Tt.strangeExtKeyWeightKV).length===Object.keys(Tt.weightExtKeyKV).length&&(kt=Yo.extKey===Ne)),(0,h.jsx)(r.aM,{usePlainText:!0,dataIndex:Ho,text:Yo.label,className:"font-weight-item-wrapper",icon:kt?_:null,onClick:()=>{gt(Tt,Yo)},onMouseEnter:()=>Pt(Tt,Yo),onMouseLeave:pt,fontUrl:Tt.typeUrlKV[Yo.value]},Tt.label+Yo.label)})},Tt.label)},mo)})})},a=()=>(0,h.jsxs)(C.E4,{children:[(0,h.jsx)("img",{src:"/mb-proto2/images/font/font_empty.png"}),(0,h.jsx)("span",{children:"\u6CA1\u6709\u5339\u914D\u7684\u7ED3\u679C"})]});var $=e(15668),ce=e(19722),de=e(86310),fe=e(47143),se=e(72605),J=e(24660),ve=e(43585),D=e(39547),R=e(89604),V=e(59305);const O=(Ve,Ne)=>{let We=!1;if(Ne&&Ne.otype!=="personal"){const{plan:ze}=(0,V.rM)(Ne);We=[R.Sj.OrgExpired,R.Sj.OrgFree].includes(ze)}else We=D.t.InitialUser(Ve).planSdk.prototypePlan.getUserPlan()===R.L1.Free;return We},Ce=Ve=>{const Ne=(0,se.d4)(fe.HW),We=(0,se.d4)(fe.wA);return O(Ne,We)?(0,h.jsx)(q,{user:Ne,org:We,setIsOpenListPanel:Ve.setIsOpenListPanel}):(0,h.jsxs)(C.MB,{children:[Ve.fontList.length===0?(0,h.jsxs)("div",{className:"empty-font-container",children:[(0,h.jsx)("div",{className:"upload-image-container",children:(0,h.jsx)("img",{src:"/mb-proto2/images/font/font_upload.png"})}),(0,h.jsx)("div",{className:"sub-title tip1",children:"\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u4EE5\u4E0A\u4F20\u5B57\u4F53"}),(0,h.jsx)("div",{className:"sub-title",children:"\uFF08\u4E0A\u4F20\u7684\u5B57\u4F53\u4EC5\u9650\u4E2A\u4EBA\u4F7F\u7528\uFF0C\u8BF7\u786E\u4FDD\u60A8\u62E5\u6709\u76F8\u5E94\u6388\u6743\uFF09"})]}):(0,h.jsx)(y,{height:292,...Ve}),(0,h.jsx)(ae,{setIsOpenListPanel:Ve.setIsOpenListPanel})]})},ae=Ve=>{let{setIsOpenListPanel:Ne,noSetting:We=!1}=Ve;const ze=(0,se.d4)(fe.HW),ft=(0,se.d4)(fe.wA),mt=O(ze,ft),i=(0,se.wA)(),gt=()=>{de.y.dispatchState({fontModalState:"cloud-manager",isShowFontModal:!0,isShowMissFontModal:!1},i),i({type:"preference:update:state",payload:{showPreference:!1}}),Ne(!1),(0,ve.rr)({operation_type:"\u7BA1\u7406\u5B57\u4F53"})},Je=()=>{i({type:de.y.entryKey["font:manage:to:upload"]}),Ne(!1),(0,ve.rr)({operation_type:We?"\u4E0A\u4F20\u5B57\u4F53-\u641C\u7D22\u5B57\u4F53":"\u4E0A\u4F20\u5B57\u4F53-\u5B57\u4F53\u9009\u62E9\u9762\u677F"})},Pt=()=>{const bt=ft?"\u7F16\u8F91\u533A-v8_\u56E2\u961F_\u4E0A\u4F20\u5B57\u4F53":"\u7F16\u8F91\u533A-V8_\u4E2A\u4EBA_\u4E0A\u4F20\u5B57\u4F53",qt=ft?"workspace-v8_org_font_upload":"workspace-v8_solo_font_upload",pt=(0,J.l)(ft,bt,qt);MB.global.popupHelper.chargeAsync(pt),Ne(!1)};return(0,h.jsxs)(C.Xh,{className:"cloud-font-footer",noSetting:We,children:[mt?(0,h.jsx)($.tA,{className:"payme-upload-btn",children:ft?xe:K,onClick:Pt}):(0,h.jsx)($.tA,{className:"upload-btn",children:(0,h.jsx)("div",{className:"payme-font",children:"\u4E0A\u4F20\u5B57\u4F53"}),onClick:Je}),We?null:(0,h.jsx)(f.A,{direction:"down",distance2:4,content:"\u7BA1\u7406\u5B57\u4F53",children:(0,h.jsx)(ce.A,{onClick:gt,name:"common/font/setting"})})]})},q=Ve=>{let{user:Ne,org:We,setIsOpenListPanel:ze}=Ve;const ft=()=>{const mt=We?"\u7F16\u8F91\u533A-v8_\u56E2\u961F_\u4E0A\u4F20\u5B57\u4F53":"\u7F16\u8F91\u533A-V8_\u4E2A\u4EBA_\u4E0A\u4F20\u5B57\u4F53",i=We?"workspace-v8_org_font_upload":"workspace-v8_solo_font_upload",gt=(0,J.l)(We,mt,i);MB.global.popupHelper.chargeAsync(gt),ze(!1)};return(0,h.jsxs)(C.MB,{children:[(0,h.jsxs)("div",{className:"empty-font-container",children:[(0,h.jsx)("div",{className:"upload-image-container",children:(0,h.jsx)("img",{src:"/mb-proto2/images/font/font_upload.png"})}),(0,h.jsx)("div",{className:"sub-title tip1",children:"\u4E0A\u4F20\u5B57\u4F53\u4E3A\u4ED8\u8D39\u7A7A\u95F4\u4E13\u4EAB\u529F\u80FD"}),(0,h.jsx)("div",{onClick:ft,className:"sub-title blue",children:"\u7ACB\u5373\u5347\u7EA7"})]}),(0,h.jsx)(C.Xh,{noSetting:!0,className:"cloud-font-footer",children:(0,h.jsx)($.tA,{className:"payme-upload-btn",children:We?xe:K,onClick:ft})})]})},K=(0,h.jsxs)("div",{className:"payme-font",children:[(0,h.jsxs)("svg",{width:"16",height:"17",fill:"none",viewBox:"0 0 16 17",children:[(0,h.jsx)("path",{fill:"#FEC345",d:"m14.62 5.83-2.16-2.9a1 1 0 0 0-.4-.32 1 1 0 0 0-.53-.12h-6.9a1.2 1.2 0 0 0-.93.45L1.54 5.83a1 1 0 0 0 .06 1.3l5.61 6.23a1.2 1.2 0 0 0 1.74 0l5.61-6.22q.25-.28.27-.65a1 1 0 0 0-.2-.66"}),(0,h.jsx)("path",{fill:"url(#paint0_linear_7048_158037)",fillRule:"evenodd",d:"m13.96 6.33-2.16-2.9-.1-.07a.4.4 0 0 0-.17-.04h-6.9l-.15.03h-.01l-.1.1L2.2 6.32a.2.2 0 0 0 .02.24l5.61 6.22q.05.05.1.08l.15.03q.08 0 .15-.03l.1-.08 5.61-6.2v-.01a.2.2 0 0 0 .06-.14zM3.7 2.93l-2.16 2.9Zm-2.16 2.9q-.22.3-.2.66Zm-.2.66q.01.37.26.65Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M11.93 6.38 8.7 9.64a.8.8 0 0 1-.57.24.8.8 0 0 1-.61-.24L4.27 6.38l.18-.13a1.7 1.7 0 0 1 2.14.19L8.1 7.95l1.5-1.51a1.7 1.7 0 0 1 2.15-.2z",clipRule:"evenodd"}),(0,h.jsx)("defs",{children:(0,h.jsxs)("linearGradient",{id:"paint0_linear_7048_158037",x1:"8.08",x2:"8.08",y1:"2.49",y2:"13.74",gradientUnits:"userSpaceOnUse",children:[(0,h.jsx)("stop",{stopColor:"#FEC345"}),(0,h.jsx)("stop",{offset:"1",stopColor:"#F1A400"})]})})]}),(0,h.jsx)("span",{children:"\u4E0A\u4F20\u5B57\u4F53"})]}),xe=(0,h.jsxs)("div",{className:"payme-font",children:[(0,h.jsxs)("svg",{width:"16",height:"17",fill:"none",viewBox:"0 0 16 17",children:[(0,h.jsx)("path",{fill:"#E1B866",d:"m14.62 6.56-2.16-2.88a1 1 0 0 0-.4-.34 1 1 0 0 0-.53-.12h-6.9a1.2 1.2 0 0 0-.93.46L1.54 6.56a1 1 0 0 0 .06 1.31l5.61 6.22a1.2 1.2 0 0 0 1.74 0l5.61-6.22q.25-.27.27-.64a1 1 0 0 0-.2-.67"}),(0,h.jsx)("path",{fill:"url(#paint0_linear_7048_158042)",fillRule:"evenodd",d:"M13.96 7.06 11.8 4.18l-.1-.09a.4.4 0 0 0-.17-.03h-6.9q-.07 0-.15.03h-.01l-.1.09L2.2 7.07a.2.2 0 0 0 .02.24l5.61 6.22.1.08.15.03.15-.03.1-.08 5.61-6.21a.2.2 0 0 0 .06-.14l-.04-.1zM3.7 3.68 1.54 6.56ZM1.54 6.56q-.22.3-.2.67Zm-.2.67q.01.37.26.64Z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M11.93 7.15 8.7 10.41a.8.8 0 0 1-.57.24.8.8 0 0 1-.61-.23L4.27 7.15l.18-.12a1.7 1.7 0 0 1 2.14.18L8.1 8.73 9.6 7.2a1.7 1.7 0 0 1 2.15-.19z",clipRule:"evenodd"}),(0,h.jsx)("defs",{children:(0,h.jsxs)("linearGradient",{id:"paint0_linear_7048_158042",x1:"8.08",x2:"8.08",y1:"3.22",y2:"14.47",gradientUnits:"userSpaceOnUse",children:[(0,h.jsx)("stop",{stopColor:"#E1B866"}),(0,h.jsx)("stop",{offset:"1",stopColor:"#C49A47"})]})})]}),(0,h.jsx)("span",{children:"\u4E0A\u4F20\u5B57\u4F53"})]});var te=e(62026),H=e(36521);const re=[{key:"all",label:"\u5168\u90E8"},{key:"official",label:"\u5B98\u65B9"},{key:"cloud",label:"\u4E91\u7AEF"}];let be=0;const Le=Ve=>{let{position:Ne,fontFamily:We,fontWeight:ze,fontStyle:ft,wbiVersion:mt,clickFF:i,clickFW:gt,hoverFF:Je,hoverFW:Pt,handleClickOutSideToClose:bt,fontListOriginal:qt,clearOverrideAttr:pt,setIsOpenListPanel:$t}=Ve;const{activeIndex:go,tabList:Co,goToTab:Tt}=A(re,be),[mo,jo]=(0,o.useState)(qt),[Kt,Ft]=(0,o.useState)(!1),[nt,Rt]=(0,o.useState)(""),yt=Ot=>{Tt(Ot),be=Ot,Ot===2&&!Ho&&(kt(!0),(0,H.a0)("is-show-CloudFont-signal",!0,te.qW.Boolean))},Jt=(0,o.useCallback)(async()=>{jo(go===0?qt:go===1?qt.filter(Ot=>Ot.type!=="cloud"):qt.filter(Ot=>Ot.type==="cloud"))},[go]),vo=(0,o.useCallback)(Ot=>{const Ct=Ot.toUpperCase();jo(qt.filter(wo=>wo.label.toUpperCase().includes(Ct))),Ft(!0)},[]),Yo=(0,o.useCallback)(Ot=>{Rt(Ot)},[]),[Ho,kt]=(0,o.useState)((0,te.Yt)("is-show-CloudFont-signal",!1,te.qW.Boolean)),Ze=(0,o.useCallback)(()=>{Jt(),Ft(!1),Rt("")},[Jt,Rt]);(0,o.useEffect)(()=>{Jt()},[Jt]),(0,o.useEffect)(()=>{setTimeout(()=>{var Ot;const Ct=((Ot=document.querySelector("#font-list-panel .font-active"))==null?void 0:Ot.offsetTop)||0,wo=document.querySelector("#font-list-panel .font-content ul");wo&&(wo.scrollTop=Ct)},4)},[go]);const it=(0,o.useRef)(null);(0,o.useEffect)(()=>{const Ot=wo=>{wo.ctrlKey===!0&&wo.preventDefault()},Ct=it.current;if(Ct)return Ct.addEventListener("wheel",Ot),()=>{Ct.removeEventListener("wheel",Ot)}},[]);const st=()=>{(0,ve.rr)({operation_type:"\u641C\u7D22\u5B57\u4F53"})},dt={fontFamily:We,fontWeight:ze,wbiVersion:mt,fontList:mo,fontStyle:ft,clickFF:i,clickFW:gt,hoverFF:Je,hoverFW:Pt,clearOverrideAttr:pt};return(0,h.jsxs)(C.ut,{position:Ne,id:"font-list-panel",ref:it,children:[(0,h.jsx)("div",{className:"searchbar-container",children:(0,h.jsx)(T.A,{value:nt,className:"search-bar",placeholder:"\u641C\u7D22\u5B57\u4F53",onChange:Yo,onSearch:vo,onClear:Ze,wait:200,canClear:!1,onFocus:st,renderRightNode:()=>Kt?(0,h.jsx)(h.Fragment,{children:(0,h.jsx)(x.C,{size:18,name:"common/font/exit",className:"font-search-exit",onClick:Ze})}):null})}),!Kt&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(k.A,{className:"font-nav",onTabChange:yt,activeIndex:go,layoutV9:"recommend",children:Co.map(Ot=>{let{key:Ct,...wo}=Ot;return(0,h.jsx)(k.n,{...wo,className:l()({background_active:Co.length>1,"cloud-unread":Ct==="cloud"&&!Ho})},Ct)})}),(0,h.jsx)("div",{className:"placeholder"})]}),(0,h.jsx)("div",{className:"font-content",children:Kt?mo.length===0?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(a,{}),(0,h.jsx)(ae,{setIsOpenListPanel:$t,noSetting:!0})]}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(y,{...dt,isSearch:!0,height:329}),(0,h.jsx)(ae,{setIsOpenListPanel:$t,noSetting:!0})]}):go===2?(0,h.jsx)(Ce,{...dt,setIsOpenListPanel:$t}):(0,h.jsx)(y,{...dt})}),(0,h.jsx)(m.A,{target:document,onMouseDown:(0,m.t)(bt,{capture:!0})})]})}},8078:(Et,ke,e)=>{"use strict";e.d(ke,{E4:()=>h,L4:()=>l,MB:()=>u,NV:()=>f,Sv:()=>A,Xh:()=>b,dA:()=>p,e:()=>T,jl:()=>C,mO:()=>r,ut:()=>x,v3:()=>k});var o=e(21676),m=e(48590),g=e(44057);const l=o.Ay.div.withConfig({displayName:"styles__StyledDropDown",componentId:"sc-r8oal8-0"})(["line-height:10px;.options-menu-opener{display:block;height:24px;width:24px;}"]),C=o.Ay.div.withConfig({displayName:"styles__StyledMenu",componentId:"sc-r8oal8-1"})(["width:204px;height:auto;header{height:40px;border-bottom:1px solid ",";display:flex;align-items:center;justify-content:space-between;padding:0 10px 0 16px;color:",";.title{font-weight:500;}div{&:not(.disabled):hover{background:",";}&:not(.disabled):active{background:",";}}}.svg-size .icon{width:24px;height:24px;}.menu-container{padding:8px 10px 8px 16px;}.menu-wrapper{display:flex;justify-content:space-between;align-items:center;padding:4px 0;color:",";.is-clip-text{height:24px;}.font-style-type,.is-clip-text,.font-style{display:flex;justify-content:space-between;align-items:center;width:100%;.paragraph-input{width:51px;}.radio-line{background:transparent;color:",";&:lang(en){justify-content:flex-start;}}.radio-option{border-radius:4px;overflow:hidden;}.radio-line{&:not(.disabled){.radio-option{&:not(.active):hover{background:",";color:",";}&.active{background:",";color:",";}}}}}.font-padding{display:flex;width:100%;align-items:baseline;justify-content:space-between;}}"],E=>E.theme.color_bg_border_02,E=>E.theme.color_text_L1,E=>E.theme.color_btn_secondary_hover,E=>E.theme.color_btn_secondary_active,E=>E.theme.color_text_L2,E=>E.theme.color_text_L1,E=>E.theme.color_btn_secondary_hover,E=>E.theme.color_text_L1,E=>E.theme.color_btn_secondary_active,E=>E.theme.color_text_L1),T=(0,o.DU)([".fontPaidTipsContainer.Tip.on-bottom.is-open{transform:translate(-50%,0);.content{width:176px;padding:12px 16px;}}.font-family-selector .font-loading{width:24px;height:24px;}"]),A=o.Ay.div.withConfig({displayName:"styles__StyledFontSize",componentId:"sc-r8oal8-2"})(["position:relative;width:66px;.font-size-input{&.less-than{input{padding-left:20px;}}}.questionMark{position:absolute;top:6px;left:4px;cursor:pointer;}"]),k=o.Ay.div.withConfig({displayName:"styles__StyledFontSizeTipsModal",componentId:"sc-r8oal8-3"})(["position:absolute;width:288px;height:",";border-radius:8px;background-color:",";box-shadow:0 2px 10px rgba(0,0,0,0.12);z-index:106;right:234px;top:",";padding:12px 0;color:",";header{display:flex;align-items:center;justify-content:space-between;padding:0 16px 8px;border-bottom:1px solid ",";font-weight:500;.close-btn{width:24px;height:24px;border-radius:4px;display:flex;align-items:center;justify-content:center;cursor:pointer;&:hover{background-color:",";}&:active{background-color:",";}.svg-icon{width:100%;}}}.content{display:flex;flex-direction:column;padding:15px 24px 0;.bottomContainer{display:flex;justify-content:space-between;align-items:center;margin-top:12px;a.tutorials{text-decoration:underline;color:#1684FC;}span.noTips{color:",";cursor:pointer;&:hover{color:",";}}}}"],E=>E.height+"px",E=>E.theme.color_bg_white,E=>E.y+"px",E=>E.theme.color_text_L1,E=>E.theme.color_btn_secondary_active,E=>E.theme.color_btn_secondary_active,E=>E.theme.color_btn_secondary_active,E=>E.theme.color_text_L2,E=>E.theme.color_text_L1),p=o.Ay.div.withConfig({displayName:"styles__StyledFontInput",componentId:"sc-r8oal8-4"})(["position:relative;display:inline-flex;align-items:center;max-width:100%;min-width:3em;height:28px;font-size:12px;color:",";cursor:pointer;max-width:218px;border-radius:4px;border:1px solid transparent;button{height:100%;color:",";display:flex;align-items:center;max-width:192px;span{cursor:inherit;",";margin-left:6px;}.questionMark{width:16px;height:16px;margin-left:4px;}}&:not(.is-disabled):not(.readonly):hover,&.is-open{width:218px;border-color:",";.caret{margin-left:auto;visibility:visible;}}"],E=>E.theme.color_text_L2,E=>E.theme.color_text_L1,m.L9,E=>E.theme.color_bg_border_02),r=o.Ay.div.withConfig({displayName:"styles__StyledFontPadding",componentId:"sc-r8oal8-5"})(["flex:1;display:flex;max-width:146px;.padding-item{display:flex;flex-direction:column;align-items:center;&:not(:first-child) .padding-number{border-left:1px solid transparent !important;}&:first-child .padding-number{border-radius:4px 0 0 4px;}&:last-child .padding-number{border-radius:0 4px 4px 0;}.padding-number{border-radius:0;&:not(.is-active){border-color:",";}&:hover{border-color:",";border-left:1px solid "," !important;}&.is-active{outline:unset;border-left:1px solid "," !important;}}.label{margin:8px 0;}}"],E=>E.theme.color_bg_border_02,E=>E.theme.color_proto,E=>E.theme.color_proto,E=>E.theme.color_proto),x=o.Ay.div.withConfig({displayName:"styles__StyledTypeface3Panel",componentId:"sc-r8oal8-6"})(["position:absolute;top:","px;right:","px;left:","px;z-index:199;width:240px;height:432px;background:",";box-shadow:0px 2px 10px rgba(0,0,0,0.12);border-radius:8px;border:1px solid ",";.cloud-unread{&::after{content:'';position:absolute;width:6px;height:6px;background-color:",";border-radius:50%;top:9px;right:0px;}}.searchbar-container{padding:0 8px;margin-top:12px;.search-bar{height:32px;border:1px solid ",";border-radius:6px;background:",";color:",";&:hover,&.isFocus{background:",";border-color:",";}}.font-search-exit{cursor:pointer;color:",";circle{fill:",";}&:hover{circle{fill:",";}}.svg-icon *{fill:currentColor;}margin-right:8px;}}.placeholder{border-bottom:1px solid ",";margin:0 21px;}.font-nav{height:36px;min-height:30px;padding:0px 15px;}.ol{height:34px;min-height:34px;}"],E=>E.position.top,E=>E.position.right,E=>E.position.left,E=>E.theme.color_bg_white,E=>E.theme.color_bg_border_01,E=>E.theme.color_proto,E=>E.theme.color_bg_border_02,E=>E.theme.color_bg_white,E=>E.theme.color_text_L3,E=>E.theme.color_bg_white,E=>E.theme.color_text_link_normal,E=>E.theme.color_slider_normal,E=>E.theme.color_slider_normal,E=>E.theme.color_slider_hover,E=>E.theme.color_bg_border_01),f=(0,o.Ay)(g.m).withConfig({displayName:"styles__StyledContextMenuEmbed",componentId:"sc-r8oal8-7"})(["position:relative !important;& > ul:first-of-type{height:","px;width:230px;overflow-y:scroll;overflow-x:hidden;margin-top:8px;padding:0;}&.font-family-menu ul{padding-left:8px;border-radius:8px;color:",";background:",";box-shadow:",";border:1px solid ",";&::-webkit-scrollbar-thumb{background:transparent;}&:hover{&::-webkit-scrollbar-thumb{background-color:",";border-radius:8px;&:hover{background-color:",";}}}&:first-of-type{height:",";background:transparent;box-shadow:none;border:0px;border-radius:0px;}.font-family-level{position:relative;}li.MenuItem{a{color:",";& > svg{margin-left:9px;}svg > path{fill:",";}.right-arrow svg > path{fill:",";}& > span{margin-left:28px;}.is-svg{fill:",";display:block;height:16px;max-width:164px;svg{height:14px;}}.is-svg *{fill:currentColor;}.right-arrow{margin-right:0px;position:absolute;right:8px;}& > .text{flex:none;}}&:not(.disabled).active{a{background:",";border-radius:4px;}}&.hovered{.is-svg{max-width:130px;}}}}& > ul:nth-of-type(2){min-width:116px;max-width:116px;margin-left:-16px;> li{max-width:unset;min-width:unset;a{margin-right:8px;}}}"],E=>E.isSearch?365:328,E=>E.theme.color_text_L1,E=>E.theme.color_bg_white,E=>E.theme.shadow_m,E=>E.theme.color_bg_border_01,E=>E.theme.color_slider_normal,E=>E.theme.color_slider_hover,E=>E.height+"px"||0,E=>E.theme.color_text_L1,E=>E.theme.color_text_L1,E=>E.theme.color_text_L2,E=>E.theme.color_text_L1,E=>E.theme.color_btn_secondary_hover),u=o.Ay.div.withConfig({displayName:"styles__StyledCloudFontPanel",componentId:"sc-r8oal8-8"})([".empty-font-container{position:absolute;top:168px;display:flex;flex-direction:column;align-items:center;width:100%;.upload-image-container{width:148px;height:67px;img{width:100%}}.sub-title{width:200px;color:",";text-align:center;}.tip1{margin-top:8px;}.blue{margin-top:6px;color:",";cursor:pointer;font-weight:500;&:hover{color:",";}}}"],E=>E.theme.color_text_L2,E=>E.theme.color_text_link_normal,E=>E.theme.color_text_link_hover),b=o.Ay.div.withConfig({displayName:"styles__StyledUploadBtn",componentId:"sc-r8oal8-9"})(["&.cloud-font-footer{display:flex;position:absolute;bottom:12px;margin-left:8px;align-items:center;.upload-btn{width :","px;height:28px;margin-right:4px;}.payme-upload-btn{width :224px;height:28px;}.payme-font{display:flex;align-items:center;justify-content:center;height:14px;}}"],E=>E.noSetting?224:196),h=o.Ay.div.withConfig({displayName:"styles__StyledEmptySearchResult",componentId:"sc-r8oal8-10"})(["display:flex;justify-content:center;align-items:center;flex-direction:column;height:386px;img{width:117px;margin-bottom:20px;}span{color:",";}"],E=>E.theme.color_text_L2)},95175:(Et,ke,e)=>{"use strict";e.d(ke,{F:()=>m,M:()=>g});var o=e(21676);const m=(0,o.DU)([".DesignDropdownMenu{&.font-options-menu{transition:unset !important;background:",";border:1px solid ",";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:8px;overflow:hidden;.content{padding:0 !important;position:relative;background:",";}.radio-line{color:",";&.disabled{background:transparent;}.check-line{&.disabled{background-color:transparent;cursor:not-allowed;&:hover{background:transparent !important;}.svg-icon{color:",";}}}}}&.border-width-menu{transition:unset !important;.content{padding:0 !important;border-radius:8px !important;position:relative;}}}"],l=>l.theme.color_bg_white,l=>l.theme.color_bg_border_02,l=>l.theme.color_bg_white,l=>l.theme.color_text_L2,l=>l.theme.color_text_disabled01),g=o.Ay.section.withConfig({displayName:"styles__StyledTextSettings",componentId:"sc-1hpsc6c-0"})(["width:240px;padding:0 10px;color:",";>:not(:first-child){margin-top:2px;}.font-group{display:flex;align-items:center;position:relative;&.font-line{justify-content:space-between;.font-family-selector{flex:0 0 100px;margin-right:23px;&:not(.is-disabled):not(.readonly):hover{.caret{padding:0 11px;}}}.font-menu-opener{display:flex;}}&.style-line{>:nth-child(1){margin-right:6px;}>:nth-child(3){width:96px;right:0px;position:absolute;}.font-size-input{width:66px;}.font-weight-selector{width:60px;}.options-menu-opener{&.is-open{.menu-opener{background-color:",";&.fontSettings{background-color:",";}}}&.font-menu-opener{margin-left:auto;display:flex;align-items:center;}}}&.ali-line >:nth-child(2){width:96px;position:absolute;right:0;justify-content:flex-start;*{flex-grow:0;}}&.spacing-line{justify-content:space-between;& >:nth-child(2){margin-left:46px;.radio-option svg{width:24px;height:24px;}}}}.size-type-item{width:60px;}.sizetype,.h-alignment,.v-alignment{&.radio-line{margin-bottom:0;height:24px;border:none;.radio-option{width:24px;height:24px;transition:background-color 0.2s ease-in-out;border-radius:4px;.svg-icon{width:24px;height:24px;color:",";}&.active{background:",";}&:not(.active):hover{background:",";}}}.icon{width:24px;height:24px;}}.item-with-name{display:flex;justify-content:space-between;margin:8px 0;.item-name{height:22px;line-height:22px;color:#5b6b73;}.item-value{width:100%;}}.text-setting-tips{background:#f8efa7;width:202px;height:auto;line-height:24px;text-align:center;color:#415058;margin-bottom:8px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-all;padding:0 10px;}"],l=>l.theme.color_text_L2,l=>l.theme.color_bg_border_02,l=>l.theme.color_btn_secondary_active,l=>l.theme.color_text_L1,l=>l.theme.color_btn_secondary_active,l=>l.theme.color_btn_secondary_hover)},50253:(Et,ke,e)=>{"use strict";e.d(ke,{s:()=>o});let o=function(m){return m.TextFontPanel="TextFontPanel",m.RichTextFontPanel="RichTextFontPanel",m.AlignPanel="AlignPanel",m.SpacingPanel="SpacingPanel",m.RichTextSpacingPanel="RichTextSpacingPanel",m.ContentBoxPanel="ContentBoxPanel",m.ChartTextFontPanel="ChartTextFontPanel",m.TableTextFontPanel="TableTextFontPanel",m.TableAlignPanel="TableAlignPanel",m.TableSpacingPanel="TableSpacingPanel",m}({})},73688:(Et,ke,e)=>{"use strict";e.d(ke,{MZ:()=>T,yt:()=>p});var o=e(46927),m=e(63555),g=e(36820),l=e(71604);const C=r=>{if(o.VV.includes(r.type)){const{textV1:f}=r;return(0,l.V7)(f)}else{let f="";if([m.x.WMTextInput,m.x.WMTextArea].includes(r.type))f=r.textInput.prefillTextV0;else{var x;f=((x=r.textV0)==null?void 0:x.text)||""}return A(f.replace(/<\/p><p>/gm,"\n").replace(/<(?:.)*?>/gm,""))}},T=r=>{let x,f;for(let u=0;u<r.length;u++){const b=r[u];if(u===0)x=C(b),f=x;else{const h=C(b);if(x!==h){f="";break}}}return f},A=r=>{let x=r;return k.forEach(f=>{let[u,b]=f;return x=x.replace(new RegExp(b,"g"),u)}),x},k=[[""," "],[">",">"],["<","<"],["&","&"]],p=r=>{(0,g.kH)("add_text_v8",{operation_type:r})}},38349:(Et,ke,e)=>{"use strict";e.d(ke,{fw:()=>C,sr:()=>l,z5:()=>g});var o=e(21676),m=e(41197);const g=(0,o.Ay)(m.A).withConfig({displayName:"styles__StyledVideoSubPanel",componentId:"sc-1newfzy-0"})(['&.video-panel-container{header{.customize-title{order:1;}.angle-icon-wrap{order:2;}}}.icon-wrapper{cursor:default;}.colorful-svg{margin-right:8px;width:16px;height:16px;}.colorful-svg path[fill="#1684FC"]{fill:#1684FC;}.colorful-svg path[fill="#FF4A4A"]{fill:#FF4A4A;}.colorful-svg path[fill="#38CEFF"]{fill:#38CEFF;}.colorful-svg path[fill="#0B99FF"]{fill:#0B99FF;}.colorful-svg path[fill="#F5001A"]{fill:#F5001A;}.colorful-svg path[fill="#10ABF2"]{fill:#10ABF2;}.colorful-svg path[fill="#FF8F21"]{fill:#FF8F21;}.colorful-svg path[fill="#7DE621"]{fill:#7DE621;}.colorful-svg path[fill="#1296DB"]{fill:#1296DB;}.colorful-svg path[fill="#fff"]{fill:#fff;}.colorful-svg circle[fill="#1684FC"]{fill:#1684FC;}']),l=o.Ay.div.withConfig({displayName:"styles__StyledVideoSettings",componentId:"sc-1newfzy-1"})([".video-settings-checkboxes{display:grid;grid-template-columns:123px 90px;padding:0 16px 0px 10px;&:lang(en){grid-template-columns:106px 106px;}label{min-width:100px;height:32px;}}"]),C=o.Ay.div.withConfig({displayName:"styles__StyledVideoTipContent",componentId:"sc-1newfzy-2"})(['position:absolute;top:22px;left:-42px;width:240px;background:#454647;color:#fff;flex-direction:column;justify-content:space-around;padding:12px 28px 10px 16px;border-radius:6px;z-index:1;transform:scaleY(-1);&:lang(en){left:-80px;}&::before{content:"";position:absolute;top:100%;left:19%;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #454647;}p{a{text-decoration:underline;color:#80BCFF;&:hover{color:#A6D2FF;}}&:hover{visibility:visible;}font-size:14px;font-weight:400;line-height:20px;}.icon-wrapper{margin-top:11px;}'])},91100:(Et,ke,e)=>{"use strict";e.d(ke,{c:()=>C,k:()=>T});var o=e(63555),m=e(29516),g=e(45411);const l=(A,k,p)=>{switch(A){case o.x.Canvas:{if(["asOverlay","shadow","border","borderRadius","borderVisibility"].includes(k)||k==="fill"&&p.fill!=="solid")return!1;break}case o.x.CanvasAsOverlay:{if(["asOverlay","stickyHeaderHeight","stickyFooterHeight","layoutGrid","orientation","device"].includes(k))return!1;break}default:return!0}return!0},C=A=>{let{value:k,attr:p,dispatch:r,supAttr:x,selections:f=[]}=A;const u=f.map(b=>{if(sdkStore.isTrashed(b))return null;const h=sdkStore.getHotItem(b),E=(0,g.o9)(h);return!l(E,p,k)||!l(E,x,k)?null:x&&h.hotAttr[x]?{key:b,hotAttr:{[x]:{...h.hotAttr[x],[p]:k}}}:{key:b,hotAttr:{[p]:k}}}).filter(b=>!!b);r({type:"entry:widget:change",payload:{flatChgList:u}})},T=A=>{let{selectedTrees:k,settingPanelMap:p,otherProps:r}=A;const x={},f=[],u=k.map(h=>h.widget),b=h=>(p[(0,g.o9)(h)]||p[m.m9])(k,{...r}).flat().filter(E=>typeof E=="number");u.forEach(h=>{b(h).forEach(N=>{x[N]=x[N]?x[N]+1:1})});for(const[h,E]of Object.entries(x))E===u.length&&f.push(Number(h));return f}},63552:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>t4,g:()=>dg});var o=e(72605),m=e(63686),g=e(47143),l=e(34129),C=e(25961),T=e(20029),A=e(30797),k=e(61724),p=e(51044),r=e(74059),x=e(86634),f=e.n(x),u=e(21676);const b=u.Ay.div.withConfig({displayName:"styles__StyledArrange",componentId:"sc-yhs0oc-0"})(["height:40px;display:flex;align-items:center;border-bottom:1px solid ",";padding:0 10px;justify-content:space-between;"],L=>L.theme.color_bg_border_01);var h=e(89340),E=e(59844),N=e(11777),z=e(9376),S=e(7290),_=e(45411),y=e(28678),a=e(57464);class $ extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"_handleAlign",U=>{this.props.dispatch({type:"entry:align:items",payload:{direction:U}}),(0,y.W0)({operationType:y.MO[U]})}),(0,r.A)(this,"handleAlignLeft",()=>{this._handleAlign("left")}),(0,r.A)(this,"handleAlignRight",()=>{this._handleAlign("right")}),(0,r.A)(this,"handleAlignCenter",()=>{this._handleAlign("center")}),(0,r.A)(this,"handleAlignTop",()=>{this._handleAlign("top")}),(0,r.A)(this,"handleAlignMiddle",()=>{this._handleAlign("middle")}),(0,r.A)(this,"handleAlignBottom",()=>{this._handleAlign("bottom")}),(0,r.A)(this,"_handleDistribute",U=>{this.props.dispatch({type:"entry:distribute:items",payload:{direction:U}})}),(0,r.A)(this,"handleHorizontalDistribute",()=>{this._handleDistribute("horizontal")}),(0,r.A)(this,"handleVerticalDistribute",()=>{this._handleDistribute("vertical")}),(0,r.A)(this,"handleGetContent",(U,ne)=>{const me=E.lk[ne+"_mac"],Ee=E.lk[ne+"_win"];return(0,N.u)({text:U,key:(0,z.cX)()?me:Ee})}),(0,r.A)(this,"handleRenderIcon",U=>(0,a.jsx)(S.C,{name:U})),(0,r.A)(this,"handleGetTipsClassName",U=>f()("arrangeTips",(0,z.cX)()?"mac":"windows",U))}render(){const{canAlign:U,canDistribute:ne}=this.props;return(0,a.jsxs)(b,{children:[(0,a.jsx)(h.Q,{icon:this.handleRenderIcon("setting_panel/arrange/dist_evenly_h"),content:this.handleGetContent(I18N.SettingPanel.hdistribute,"dist_evenly_h"),tipsClassName:this.handleGetTipsClassName("dist_evenly_h"),disabled:!ne,onClick:this.handleHorizontalDistribute}),(0,a.jsx)(h.Q,{icon:this.handleRenderIcon("setting_panel/arrange/dist_evenly_v"),content:this.handleGetContent(I18N.SettingPanel.vdistribute,"dist_evenly_v"),tipsClassName:this.handleGetTipsClassName("dist_evenly_v"),disabled:!ne,onClick:this.handleVerticalDistribute}),(0,a.jsx)(h.Q,{icon:this.handleRenderIcon("setting_panel/arrange/align_left"),content:this.handleGetContent(I18N.SettingPanel.hleft,"align_left"),tipsClassName:this.handleGetTipsClassName("align_left"),disabled:!U,onClick:this.handleAlignLeft}),(0,a.jsx)(h.Q,{icon:this.handleRenderIcon("setting_panel/arrange/align_center_v"),content:this.handleGetContent(I18N.SettingPanel.hcenter,"align_center_v"),tipsClassName:this.handleGetTipsClassName("align_center_v"),disabled:!U,onClick:this.handleAlignCenter}),(0,a.jsx)(h.Q,{icon:this.handleRenderIcon("setting_panel/arrange/align_right"),content:this.handleGetContent(I18N.SettingPanel.hright,"align_right"),tipsClassName:this.handleGetTipsClassName("align_right"),disabled:!U,onClick:this.handleAlignRight}),(0,a.jsx)(h.Q,{icon:this.handleRenderIcon("setting_panel/arrange/align_top"),content:this.handleGetContent(I18N.SettingPanel.vtop,"align_top"),tipsClassName:this.handleGetTipsClassName("align_top"),disabled:!U,onClick:this.handleAlignTop}),(0,a.jsx)(h.Q,{icon:this.handleRenderIcon("setting_panel/arrange/align_center_h"),content:this.handleGetContent(I18N.SettingPanel.vcenter,"align_center_h"),tipsClassName:this.handleGetTipsClassName("align_center_h"),disabled:!U,onClick:this.handleAlignMiddle}),(0,a.jsx)(h.Q,{icon:this.handleRenderIcon("setting_panel/arrange/align_bottom"),content:this.handleGetContent(I18N.SettingPanel.vbottom,"align_bottom"),tipsClassName:this.handleGetTipsClassName("align_bottom"),disabled:!U,onClick:this.handleAlignBottom})]})}}const ce=(0,m.Mz)([A.p$,T.lY],(L,U)=>{var ne;const me=L.length>0&&((ne=sdkStore.getHotItem(L[0]))==null?void 0:ne.hotAttr.isLocked),Ee=!me&&!U&&(0,_.GS)(L),Ue=!me&&!U&&(0,_.oR)(L);return{canAlign:Ee,canDistribute:Ue}}),de=(0,o.Ng)(L=>ce(L))($),fe=240,se=u.Ay.main.withConfig({displayName:"PanelBody",componentId:"sc-1uekj7k-0"})(["flex:1;width:",'px;overflow-x:hidden;overflow-y:auto;position:relative;[type="panel-body"]{width:',"px;padding:10px 16px;color:",";}.side{display:flex;justify-content:space-between;align-items:center;}.line{display:flex;justify-content:space-between;align-items:center;&:empty{position:relative;left:-5px;width:calc(100% + 10px);min-height:initial;border-bottom:1px solid #dedee4;}& > .side{flex:0 0 90px;}.left-label{height:14px;color:",";line-height:14px;}.right-content{width:140px;display:flex;flex-wrap:wrap;justify-content:space-between;color:",";& > .side{flex:1;&:not(:last-child){margin-right:8px;}}}}&.widget-settings{.appearance-panel,.general-panel{.right-content{.select{width:100%;}}}.animation-panel{padding:0 16px;.line{display:flex;align-items:center;margin:0;}.right-content{width:140px;.select{width:100%;}.WorkspaceInputNumber.has-menu{.TextButton{&:hover{color:",";}&:active{color:",";}}}}.animation-box{margin:8px 0;background:",";overflow:hidden;border-radius:6px;}}}.image-settings{padding:0 14px;}.scroll-container{max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto;scrollbar-width:none;}"],fe,fe,L=>L.theme.color_text_L2,L=>L.theme.color_text_L2,L=>L.theme.color_text_L2,L=>L.theme.color_text_L2,L=>L.theme.color_text_L2,L=>L.theme.color_bg_card);var J=e(87644),ve=e(48438),D=e(63555),R=e(29516),V=e(7283);let O=function(L){return L.LayerInfoPanel="LayerInfoPanel",L.WidgetStatePanel="WidgetStatePanel",L.PositionInfoPanel="PositionInfoPanel",L.SizeInfoPanel="SizeInfoPanel",L.TableTypePanel="TableTypePanel",L.SmartGapPanel="SmartGapPanel",L.ClipContentPanel="ClipContentPanel",L.DevicePanel="DevicePanel",L}({});var Ce=e(14116),ae=e(5241),q=e(24695),K=e(44057),xe=e(30108),te=e.n(xe),H=e(36820),re=e(20154),be=e(36892),Le=e(95487);const Ve=["dispatch","isLocked","canVisible","canLocked","isVisible","layerName","canShowOverridesMenu","keySelection","canEditVector","vectorEditor","targetKey","type"];var Ne=e(48590),We=e(31626);const ze=u.Ay.div.withConfig({displayName:"styles__StyledLayerInfo",componentId:"sc-pyvjzv-0"})(["height:40px;display:flex;align-items:center;margin:0 -14px 0px -9px;padding:0 10px 0 16px;color:",";font-weight:500;border-bottom:1px solid ",";.layer-size{flex:1;border:1px solid transparent;cursor:text;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;.is-editing{textarea{font-weight:500;}}}.layer-name{flex:1;width:100%;height:23px;line-height:22px;overflow:hidden;border-bottom:1px solid transparent;font-weight:500;}.layerState{border-bottom:1px solid ",";}.isLayerHover{&:hover{border-bottom:1px solid ",";}}.action,.my-widget-action{display:inline-block;width:24px;height:24px;text-align:center;color:",";border-radius:4px;.icon{width:24px;height:24px;color:",";}&.icon-disabled{cursor:not-allowed;.icon{color:",";}}&:not(.icon-disabled):hover{background:",";}&:not(.icon-disabled):active,&:not(.icon-disabled).active{background:",";}}.actions,.my-widget-action{display:flex;align-items:center;margin-left:14px;}.action a{&.action.muban-menu-icon .svg-icon{width:18px;}}.divider{display:inline-block;content:'';width:1px;height:24px;background:",";margin-right:6px;margin-left:10px;}"],L=>L.theme.color_text_L1,L=>L.theme.color_bg_border_01,L=>L.theme.color_proto,L=>L.theme.color_proto,L=>L.theme.color_text_L2,L=>L.theme.color_text_L1,L=>L.theme.color_text_disabled01,L=>L.theme.color_btn_secondary_hover,L=>L.theme.color_btn_secondary_active,L=>L.theme.color_bg_border_02),ft=L=>L.filter(U=>!(0,be.yT)(sdkStore.getHotItem(U).hotAttr.type));class mt extends p.Component{constructor(U){super(U),(0,r.A)(this,"setElementRef",ne=>this.$element=ne),(0,r.A)(this,"handleEdit",()=>{this.setState({isEditing:!0})}),(0,r.A)(this,"handleLayerName",ne=>{const{dispatch:me,keySelection:Ee}=this.props;if(ne.trim()===""||ne.includes("/"))MB.notice({text:I18N.Common.name_cannot_be_empty_or_symbol,type:"warning"});else{const Ht=ft(Ee).map(xo=>({key:xo,hotAttr:{name:ne}}));me({type:"entry:widget:change",payload:{flatChgList:Ht,shouldBreakLayerUICache:!0,shouldBreakCanvasUICache:!0}})}this.setState({isEditing:!1})}),(0,r.A)(this,"handleToggleLocked",()=>this.props.dispatch({type:"entry:toggle:lock"})),(0,r.A)(this,"handleToggleVisible",()=>this.props.dispatch({type:"entry:toggle:visible"})),(0,r.A)(this,"handleToggleIsOpenMenu",ne=>{const{isOpenMenu:me}=this.state;if(this.setState({isOpenMenu:te()(ne)?ne:!me}),!me){const Ee=this.$element.getBoundingClientRect();this.setState({position:{left:Ee.left+Ee.width,top:Ee.top+Ee.height}})}}),(0,r.A)(this,"handleDetachMuban",()=>{this.props.dispatch({type:"entry:basket:transform",payload:{basketType:"bDanli",type:"detachMuban"}}),(0,H.kH)("master_operation_V8",{source:"\u56FE\u6807",operation_type:I18N.ContextMenu.detach_panel})}),(0,r.A)(this,"handleSyncMuban",async()=>{const{targetKey:ne,dispatch:me}=this.props;await sdkStore.commitOwa(ne),me({type:"entry:rebuild:screen-widget-tree"}),(0,H.kH)("master_operation_V8",{source:"\u56FE\u6807",operation_type:I18N.ContextMenu.sync_to_muban})}),(0,r.A)(this,"handleEditMuban",()=>{const{targetKey:ne,dispatch:me}=this.props,Ee=sdkStore.getHotItem(ne).hotAttr,Ue=sdkStore.getHotItem(Ee.refRBPageKey);me({type:"entry:edit:basket:source:muban",payload:{item:{...Ue,...Ue.hotAttr}}}),(0,H.kH)("master_operation_V8",{source:"\u56FE\u6807",operation_type:I18N.ContextMenu.edit_muban})}),(0,r.A)(this,"handleResetToMuban",()=>{this.props.dispatch({type:"entry:basket:muban:resetOwa"}),(0,H.kH)("master_operation_V8",{source:"\u56FE\u6807",operation_type:I18N.ContextMenu.reset_to_muban})}),(0,r.A)(this,"handleResetSize",()=>{var ne,me;const{targetKey:Ee,dispatch:Ue}=this.props,at=sdkStore.getHotItem(Ee).hotAttr,Ht=(ne=sdkStore.getHotItem(at==null?void 0:at.refRBPageKey))==null?void 0:ne.hotAttr.w,xo=(me=sdkStore.getHotItem(at==null?void 0:at.refRBPageKey))==null?void 0:me.hotAttr.h;Ue({type:"entry:items:set:width",payload:{width:Ht}}),Ue({type:"entry:items:set:height",payload:{height:xo}})}),(0,r.A)(this,"handleResetState",()=>{var ne;const{dispatch:me,targetKey:Ee}=this.props,Ue=(ne=sdkStore.getHotItem(sdkStore.getHotItem(Ee).hotAttr.refRBPageKey))==null||(ne=ne.hotAttr)==null?void 0:ne.defaultCanvasKey;me({type:"entry:widget:change",payload:{flatChgList:[{key:Ee,hotAttr:{refContentKey:Ue}}]}})}),(0,r.A)(this,"handleResetScroll",()=>{var ne;const{dispatch:me,targetKey:Ee}=this.props,Ue=(ne=sdkStore.getHotItem(sdkStore.getHotItem(Ee).hotAttr.refRBPageKey))==null||(ne=ne.hotAttr)==null?void 0:ne.scroll;me({type:"entry:widget:change",payload:{flatChgList:[{key:Ee,hotAttr:{scroll:Ue}}]}})}),(0,r.A)(this,"getMubanMenuList",ne=>{var me,Ee,Ue,at;const Ht=sdkStore.getHotItem(ne).hotAttr,xo=((me=sdkStore.getHotItem(Ht==null?void 0:Ht.refRBPageKey))==null||(me=me.hotAttr)==null?void 0:me.w)===Ht.w&&((Ee=sdkStore.getHotItem(Ht==null?void 0:Ht.refRBPageKey))==null?void 0:Ee.hotAttr.h)===Ht.h,Po=((Ue=sdkStore.getHotItem(Ht==null?void 0:Ht.refRBPageKey))==null||(Ue=Ue.hotAttr)==null?void 0:Ue.defaultCanvasKey)===Ht.refContentKey,nn=((at=sdkStore.getHotItem(Ht==null?void 0:Ht.refRBPageKey))==null||(at=at.hotAttr)==null?void 0:at.scroll)===Ht.scroll,is=(0,_.K4)([ne]),Bn=(0,_.h1)([ne]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(K.Dr,{text:I18N.ContextMenu.detach_panel,onClick:this.handleDetachMuban,disabled:!is}),(0,a.jsx)(K.Dr,{text:I18N.ContextMenu.sync_to_muban,onClick:this.handleSyncMuban,disabled:!Bn||!sdkStore.hasOwa(ne)}),(0,a.jsx)(K.Dr,{text:I18N.ContextMenu.edit_muban,onClick:this.handleEditMuban,disbaled:!Bn}),(0,a.jsx)(We.c,{}),(0,a.jsx)(K.Dr,{text:I18N.ContextMenu.reset_to_muban,onClick:this.handleResetToMuban,disabled:!sdkStore.hasOwa(ne)}),!xo&&(0,a.jsx)(K.Dr,{text:I18N.ContextMenu.reset_to_muban_size,onClick:this.handleResetSize,disabled:xo}),!Po&&(0,a.jsx)(K.Dr,{text:I18N.ContextMenu.reset_to_muban_state,onClick:this.handleResetState,disabled:Po}),!nn&&(0,a.jsx)(K.Dr,{text:I18N.ContextMenu.reset_to_muban_scroll,onClick:this.handleResetScroll,disabled:nn})]})}),(0,r.A)(this,"getWidgetMenuList",ne=>(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(K.Dr,{text:I18N.ContextMenu.reset_to_muban,onClick:this.handleResetToMuban,disabled:!sdkStore.hasOwa(ne)})})),(0,r.A)(this,"handleEditVector",()=>{const{dispatch:ne,keySelection:me,targetKey:Ee}=this.props,Ue=ft(me);ne({type:"entry:vector:enter:edit",payload:{key:Ue[0]}}),ne({type:"update:screenContainer:state",payload:{addVectorSource:sdkStore.getHotItem(Ee).hotAttr.type===D.x.WVector?null:re.dZ.TransformSettingPanel}})}),this.state={isEditing:!1,isOpenMenu:!1,position:{left:0,top:0}}}shouldComponentUpdate(U,ne,me){return(0,Le.N)(Ve).call(this,U,ne)}render(){const{isEditing:U,isOpenMenu:ne,position:me}=this.state,{type:Ee,targetKey:Ue,layerName:at,isVisible:Ht,isLocked:xo,canLocked:Po,canVisible:nn,canShowOverridesMenu:is,canEditVector:Bn,vectorEditor:$s,keySelection:qs}=this.props,Mi=ft(qs);return(0,a.jsxs)(ze,{className:"layer-info",children:[(0,a.jsx)("div",{className:f()("layer-size",{isLayerHover:!U,layerState:U}),onClick:this.handleEdit,children:(0,a.jsx)(Ce.A,{value:at,className:"layer-name",isEditing:U,onConfirm:this.handleLayerName},at)}),!U&&(0,a.jsxs)("div",{className:"actions",children:[is&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{ref:this.setElementRef,className:f()("action",{active:ne}),children:(0,a.jsx)(ae.P,{iconClassName:"action muban-menu-icon",onClick:this.handleToggleIsOpenMenu,name:"left_panel/nav/template",direction:"left",tagName:"SVGIcon",content:"\u6BCD\u7248\u5B9E\u4F8B\u8BBE\u7F6E"})}),ne&&(0,a.jsx)(i,{position:me,onClose:()=>this.handleToggleIsOpenMenu(!1),children:Ee===D.x.WBasket?this.getMubanMenuList(Ue):this.getWidgetMenuList(Ue)})]}),Bn&&(Mi==null?void 0:Mi.length)===1&&!is&&(0,a.jsx)(ae.P,{iconClassName:f()("action",{active:!!$s}),onClick:this.handleEditVector,name:"setting_panel/vector/edit",content:I18N.SettingPanel.vectorSetting.editPath,direction:"down",tagName:"SVGIcon"}),(0,a.jsx)(ae.P,{iconClassName:f()("action",{active:!Ht},{"icon-disabled":!nn}),onClick:nn?this.handleToggleVisible:null,name:"common/"+(Ht?"visible":"invisible"),content:Ht?I18N.SettingPanel.hide:I18N.ContextMenu.show,hotKeyText:q.V.hide,direction:"down",tagName:"SVGIcon"}),(0,a.jsx)(ae.P,{iconClassName:f()("action",{active:xo},{"icon-disabled":!Po}),onClick:Po?this.handleToggleLocked:null,name:"common/"+(xo?"lock":"unlock"),content:xo?I18N.ContextMenu.unlock:I18N.SettingPanel.lock_widget_tip,hotKeyText:q.V.lock,direction:"down",tagName:"SVGIcon"})]})]})}}const i=(0,u.Ay)(K.Ay).withConfig({displayName:"indexui__StyledMenuContent",componentId:"sc-ma2664-0"})(["",";"],Ne.ZJ);var gt=e(15668),Je=e(34161);const Pt=["selections","dispatch","canCreateWidgetState"];class bt extends p.Component{constructor(){super(...arguments),(0,r.A)(this,"handleCreateWidget",async()=>{var U,ne;const{dispatch:me,selections:Ee}=this.props,Ue=((U=MB)==null||(U=U.__store__)==null||(U=U.getState())==null?void 0:U.editor.state.mode.basketEditor.key)||((ne=MB)==null||(ne=ne.__store__)==null||(ne=ne.getState())==null?void 0:ne.editor.state.mode.basketEditor.refPage);me({type:"entry:create:basket",payload:{basketType:"bDanli",isToDoubleTheCanvas:!0}}),me({type:"entry:screenContainer:enter:editing:widget"}),(0,Je.XG)("\u53F3\u4FA7\u6DFB\u52A0\u7EC4\u4EF6\u72B6\u6001",Ue,Ee||[])}),(0,r.A)(this,"onCreateWidgetState",async()=>{var U,ne;const{dispatch:me,selections:Ee}=this.props;Ee.length===1&&((U=sdkStore.getHotItem(Ee[0]))==null?void 0:U.hotAttr.type)==="wBasket"&&((ne=sdkStore.getHotItem(Ee[0]))==null?void 0:ne.hotAttr.basket)==="bDanli"?me({type:"modal:update:state",payload:{nestedDynamicModal:{isOpen:!0,from:"rightPanel",onConfirm:()=>this.handleCreateWidget()}}}):this.handleCreateWidget()})}shouldComponentUpdate(U,ne,me){return(0,Le.N)(Pt).call(this,U,ne)}render(){const{canCreateWidgetState:U}=this.props;return U?(0,a.jsx)(qt,{children:(0,a.jsx)(gt.jf,{type:"secondary",size:"tiny",corner:"soft",className:"state-button",icon:(0,a.jsx)(S.C,{name:"common/add@10"}),onClick:this.onCreateWidgetState,children:(0,a.jsx)("p",{children:I18N.SettingPanel.add_widget_state})})}):null}}const qt=u.Ay.div.withConfig({displayName:"indexui__StyledWidgetStateCreateButton",componentId:"sc-z7g9qq-0"})(["margin:0px -14px 8px -9px;padding:15px 16px;border-bottom:1px solid ",";.state-button{&.button-root{width:208px;}.svg-icon{width:10px;height:10px;margin-right:4px;}}"],L=>L.theme.color_bg_border_01);var pt=e(60081),$t=e(42708);const go=(0,a.jsx)(S.C,{className:"design-rotate",name:"setting_panel/general/rotate"});class Co extends p.PureComponent{constructor(U){super(U),(0,r.A)(this,"handleLeft",ne=>{const{dispatch:me,type:Ee}=this.props;typeof ne=="number"&&(me({type:"entry:items:set:left",payload:{left:ne}}),me({type:"entry:auto:show:hide:item"}),Ee===D.x.Canvas&&(0,$t.A9)({attr:"x"}))}),(0,r.A)(this,"handleTop",ne=>{const{dispatch:me,type:Ee}=this.props;typeof ne=="number"&&(me({type:"entry:items:set:top",payload:{top:ne}}),me({type:"entry:auto:show:hide:item"}),Ee===D.x.Canvas&&(0,$t.A9)({attr:"y"}))}),(0,r.A)(this,"handleRotate",ne=>{const{dispatch:me}=this.props,Ee=parseInt(ne)||0;me({type:"entry:set:rotate",payload:{value:Ee}}),me({type:"entry:auto:show:hide:item"})}),this.state={canRotate:!1,isSelectItemsInMuban:!1,isShowMultipleLeft:!1,isShowMultipleTop:!1,prevSelections:[]}}static getDerivedStateFromProps(U,ne){if(U.selections!==ne.prevSelections){const Ee={canRotate:(0,_.QH)(U.selections),isSelectItemsInMuban:(0,_.td)(U.selections),prevSelections:U.selections};if(U.selections.length>1){let Ue=!1,at=!1;for(const Ht of U.selections.slice(1)){var me;const Po=sdkStore.getHotItem(Ht).hotAttr.type===D.x.Canvas?null:sdkStore.locUpColdCanvasKey(Ht),nn=(me=MB.getCurrentScreen())==null?void 0:me.cid,{x:is,y:Bn,w:$s,h:qs}=sdkStore.getRelocateLocalBound(Ht,Po||nn);!Ue&&U.left!==is-$s/2&&(Ue=!0),!at&&U.top!==Bn-qs/2&&(at=!0)}return{...Ee,isShowMultipleLeft:Ue,isShowMultipleTop:at}}return{...Ee,isShowMultipleLeft:!1,isShowMultipleTop:!1}}return null}render(){const{top:U,left:ne,canX:me,canY:Ee,hasRotate:Ue=!0,ro:at,selections:Ht}=this.props,{canRotate:xo,isSelectItemsInMuban:Po,isShowMultipleLeft:nn,isShowMultipleTop:is}=this.state,Bn=Ht.length>1?I18N.SettingPanel.multiple_value:"";return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"general-line height-32",style:{marginTop:8},children:[(0,a.jsx)(pt.A,{className:"general-input step-input-width-72",title:"X",attr:"left",value:nn?void 0:ne,disabled:!me||Po,min:-99999,max:99999,placeholder:Bn,isNotVerify:nn,onConfirm:this.handleLeft}),(0,a.jsx)(pt.A,{className:"general-input step-input-width-72",title:"Y",attr:"top",value:is?void 0:U,disabled:!Ee||Po,min:-99999,max:99999,isNotVerify:is,placeholder:Bn,onConfirm:this.handleTop}),Ue&&(0,a.jsx)(pt.s,{className:"general-input screen-rotate-input-number step-input-width-72",disabled:!xo||Po,title:go,attr:"ro",suffix:"\xB0",min:-360,max:360,value:at,onConfirm:this.handleRotate,withToolTip:!0,toolTipContent:I18N.SettingPanel.rotate,direction:"down"})]})})}}const Tt=["dispatch","isShowMultipleWidth","isShowMultipleHeight","placeholder","canW","width","minWidth","canH","height","minHeight","canAspectRatio","isLockAspect","type","isSelectItemsInMuban","isSelectItemsAllMind","selections","isLine","disableAspectRatio"];class mo extends p.Component{constructor(){super(...arguments),(0,r.A)(this,"handleWidth",U=>{const{minWidth:ne,type:me,isLine:Ee,dispatch:Ue}=this.props;if(typeof U!="number")return;const at=U>ne?U:ne;if(Ee){const Ht=parseInt(String(at))||0;Ue({type:"entry:set:line:length",payload:{value:Ht}})}else Ue({type:"entry:items:set:width",payload:{width:at}});Ue({type:"entry:auto:show:hide:item"}),me===D.x.Canvas&&(0,$t.A9)({attr:"w"})}),(0,r.A)(this,"handleHeight",U=>{const{minHeight:ne,type:me,dispatch:Ee}=this.props;if(typeof U!="number")return;const Ue=U>ne?U:ne;Ee({type:"entry:items:set:height",payload:{height:Ue}}),Ee({type:"entry:auto:show:hide:item"}),me===D.x.Canvas&&(0,$t.A9)({attr:"h"})}),(0,r.A)(this,"handleChangeAspectRatio",()=>{const{canAspectRatio:U,isLockAspect:ne,dispatch:me,selections:Ee}=this.props;if(!U)return;const Ue=Ee.map(at=>({key:at,hotAttr:{isLockAspect:!ne}}));me({type:"entry:widget:change",payload:{flatChgList:Ue}})})}shouldComponentUpdate(U,ne,me){return(0,Le.N)(Tt).call(this,U,ne)}render(){const{isShowMultipleWidth:U,isShowMultipleHeight:ne,placeholder:me,canW:Ee,width:Ue,minWidth:at,canH:Ht,height:xo,minHeight:Po,disableAspectRatio:nn,canAspectRatio:is,isLockAspect:Bn,isSelectItemsInMuban:$s,isSelectItemsAllMind:qs}=this.props;return(0,a.jsxs)("div",{className:"general-line height-32",style:{marginTop:2},children:[(0,a.jsx)(pt.A,{className:"general-input step-input-width-72",title:"W",attr:"width",value:U?void 0:Ue,isNotVerify:U,disabled:!Ee||$s||qs,min:at,max:99999,placeholder:me,onConfirm:this.handleWidth}),(0,a.jsx)(pt.A,{className:"general-input step-input-width-72",title:"H",attr:"height",value:ne?void 0:xo,isNotVerify:ne,disabled:!Ht||$s||qs,min:Po,max:99999,placeholder:me,onConfirm:this.handleHeight}),(0,a.jsx)(h.Q,{className:f()("aspectRatioButton",{disabled:!is,locked:Bn,unLocked:!Bn}),icon:(0,a.jsx)(S.C,{name:Bn?"setting_panel/aspectRatio/lock":"setting_panel/aspectRatio/unlock"}),onClick:this.handleChangeAspectRatio,content:I18N.SettingPanel.lock_ratio,direction:"down",disabled:$s||qs||nn})]})}}(0,r.A)(mo,"defaultProps",{minWidth:1,minHeight:1});var jo=e(61269);class Kt extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleChangeTableType",U=>{const{dispatch:ne}=this.props,{index:me}=U.currentTarget.dataset;ne({type:"entry:set:table:style:type",payload:{type:Number(me)}})})}render(){const{styleType:U}=this.props;return(0,a.jsxs)("div",{className:f()("general-line","tableStyleType"),children:[(0,a.jsx)("div",{className:"name",children:I18N.SettingPanel.type}),(0,a.jsx)("div",{className:"tableStyleTypeList",children:jo.hG.map((ne,me)=>(0,a.jsx)("div",{"data-index":me,className:f()({tableStyleItem:"tableStyleItem",active:(U||0)===me}),onClick:this.handleChangeTableType,children:(0,a.jsx)(S.C,{className:"tableStyleItem-"+ne,name:"setting_panel/table/"+ne})},ne))})]})}}var Ft=e(56315),nt=e(28717),Rt=e(63646);class yt extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleSmartSelectionGapChange",(U,ne)=>{const{dispatch:me}=this.props;me({type:"entry:smart-selection:updating:gap",payload:{[ne]:U,shouldItemsUpdate:!0}}),me({type:"entry:select:smartly"})}),(0,r.A)(this,"handleSmartSelectionGapResizeMove",()=>{const{dispatch:U}=this.props;U(Rt.UU.update({isResizingGap:!0}))}),(0,r.A)(this,"handleSmartSelectionGapResizeEnd",()=>{const{dispatch:U}=this.props;U(Rt.UU.update({isResizingGap:!1}))})}render(){const{isSmartSelectionActive:U,colGap:ne,minColGap:me,rowGap:Ee,minRowGap:Ue}=this.props;return U?(0,a.jsxs)("div",{className:"general-line height-32",children:[(0,a.jsx)(pt.s,{className:"general-input col-gap step-input-width-72",title:(0,a.jsx)(S.C,{name:"setting_panel/smart_selection/col_gap"}),attr:"colGap",value:ne,disabled:ne===null,min:me,max:99999,onResizeMove:this.handleSmartSelectionGapResizeMove,onResizeEnd:this.handleSmartSelectionGapResizeEnd,onConfirm:this.handleSmartSelectionGapChange,withToolTip:!0,toolTipContent:I18N.SettingPanel.horizontal_spacing,direction:"down"}),(0,a.jsx)(pt.s,{className:"general-input row-gap step-input-width-72",title:(0,a.jsx)(S.C,{name:"setting_panel/smart_selection/row_gap"}),attr:"rowGap",value:Ee,disabled:Ee===null,min:Ue,max:99999,onResizeMove:this.handleSmartSelectionGapResizeMove,onResizeEnd:this.handleSmartSelectionGapResizeEnd,onConfirm:this.handleSmartSelectionGapChange,withToolTip:!0,toolTipContent:I18N.SettingPanel.vertical_spacing,direction:"down"})]}):null}}const Jt=(0,m.Mz)([Ft.$],L=>{const{minItemMargin:U,minLineSpace:ne}=(0,nt.no)(L.rowStates);return{rowGap:L.rowGap,minRowGap:ne,colGap:L.colGap,minColGap:U,isSmartSelectionActive:L.isActive}}),vo=(0,o.Ng)(L=>Jt(L))(yt),Yo=u.Ay.section.withConfig({displayName:"styles__StyledGeneral",componentId:"sc-11o09go-0"})(["width:240px;padding:0 14px 6px 8px;color:",";.general-line{display:flex;align-items:center;.active{background:#1A70D8;}}.tableStyleType{display:flex;flex-wrap:wrap;margin:0 -14px 0px -9px;padding:8px 16px 8px 16px;border-bottom:1px solid ",";.name{font-size:12px;font-weight:600;height:32px;line-height:32px;color:",";}.tableStyleTypeList{width:calc(100% + 15px);height:44px;display:flex;align-items:center;justify-content:space-around;.tableStyleItem{width:32px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:4px;.svg-icon{.noHover{fill:",";}path:not(.noHover){fill:",";&:first-child{fill:",";stroke:",";}}}&.active{background:",";}&:hover:not(.active){background:",";}.svg-icon{width:25px;height:21px;cursor:pointer;}}}}"],L=>L.theme.color_text_L2,L=>L.theme.color_bg_border_01,L=>L.theme.color_text_L1,L=>L.theme.color_bg_border_02,L=>L.theme.color_text_L2,L=>L.theme.color_bg_white,L=>L.theme.color_text_L2,L=>L.theme.color_btn_secondary_active,L=>L.theme.color_btn_secondary_hover);class Ho extends p.PureComponent{render(){return(0,a.jsx)(Yo,{className:"general-panel",children:this.props.children})}}var kt=e(21011),Ze=e(10091),it=e(70999),st=e(70226),dt=e(1163);const Ot={[O.LayerInfoPanel]:{[R.m9]:L=>{var U;let{selectedTrees:ne,selections:me}=L;const Ee=[];for(const nn of ne)Ee.push(nn.widget);const Ue=Ee.length>1?Ee.find(nn=>nn.type===D.x.Canvas)?Ee.every(nn=>nn.type===D.x.Canvas)?I18N.SettingPanel.multi_select_artboards:I18N.SettingPanel.multi_select_artboards_widgets:I18N.SettingPanel.multi_select:(0,_.X0)(Ee)[0],at=!!(0,Ze.i)(Ee,"isVisible"),Ht=!!(0,Ze.i)(Ee,"isLock"),xo=(0,_.td)(me)||(0,_.bp)(Ee),Po=sdkStore.getHotItem(me[0]);return{layerName:Ue,isLocked:Ht,isVisible:at,canShowOverridesMenu:xo,keySelection:me,targetKey:Po==null?void 0:Po.key,type:Po==null||(U=Po.hotAttr)==null?void 0:U.type}}},[O.WidgetStatePanel]:{[R.m9]:L=>{let{selectedTrees:U}=L;return{canCreateWidgetState:(0,_.mO)(U),selectedTrees:U}}},[O.PositionInfoPanel]:{[R.m9]:L=>{var U;const{selectedTrees:ne}=L;if(sdkStore.isTrashed(ne[0].key))return{};const me=ne[0].type===D.x.Canvas?null:sdkStore.locUpColdCanvasKey(ne[0].key),Ee=(U=MB.getCurrentScreen())==null?void 0:U.cid,{x:Ue,y:at,r:Ht,w:xo,h:Po}=sdkStore.getRelocateLocalBound(ne[0].key,me||Ee);return{top:at-Po/2,left:Ue-xo/2,ro:Ht}},[D.x.WLine]:L=>{let{selectedTrees:U}=L;const ne=U.map(xo=>xo.widget),{w:me,h:Ee}=ne[0],{linePointFrom:Ue,linePointTo:at}=(0,Ze.i)(ne,"line"),Ht=[[Ue.x,Ue.y],[at.x,at.y]];return{ro:Math.round((0,kt.W8)(me,Ee,Ht))%360||0}},[D.x.WArrow]:L=>{let{selectedTrees:U}=L;const ne=U.map(xo=>xo.widget),{w:me,h:Ee}=ne[0],{arrowPointFrom:Ue,arrowPointTo:at}=(0,Ze.i)(ne,"arrow"),Ht=[[Ue.x,Ue.y],[at.x,at.y]];return{ro:Math.round((0,kt.W8)(me,Ee,Ht))%360||0}},[D.x.WWrap]:L=>{let{selectedTrees:U}=L;const ne=sdkStore.locUpColdCanvasKey(U[0].key),me=sdkStore.locUpRBPageKey(U[0].key);if(!(ne||me))return{top:0,left:0};const{x:Ee,y:Ue,w:at,h:Ht}=sdkStore.getRelocateLocalBound(U[0].key,ne||me);return{top:Ue-Ht/2,left:Ee-at/2}},[D.x.WElbow]:L=>{let{selectedTrees:U}=L;const ne=U.find(Ee=>{const{hotAttr:{refFromKey:Ue,refToKey:at}}=sdkStore.getHotItem(Ee.key),{isRefFromExist:Ht,isRefToExist:xo}=(0,it.v)(Ee.key,Ue,at);return!(Ht||xo)});let me=!1;return ne!==void 0&&(me=!0),{canX:me,canY:me,hasRotate:!0,canRotate:!1}}},[O.SizeInfoPanel]:{[R.m9]:L=>{let{selectedTrees:U,selections:ne,hasMissFontHi:me,imageProps:{currentImageOperateType:Ee}}=L,Ue=!1,at=!1;const Ht=U.map(Mi=>Mi.widget),xo=Ht.length>1,Po=(0,Ze.i)(Ht,"isLockAspect"),{w:nn,h:is}=sdkStore.getLocalBound(U[0].key),Bn=[D.x.WElbow].includes(U[0].type)?!1:st.u3.includes(U[0].type)?!0:!me,$s=[D.x.WElbow].includes(U[0].type)?!1:st.u3.includes(U[0].type)?!0:!me,qs=[D.x.WElbow,D.x.WQRCode].includes(U[0].type)||Ee===dt.bl.cutting?!1:!me;return xo&&Ht.forEach(Mi=>{nn!==Mi.width&&(Ue=!0),is!==Mi.height&&(at=!0)}),{isLockAspect:Po,isShowMultipleWidth:Ue,isShowMultipleHeight:at,placeholder:xo?I18N.SettingPanel.multiple_value:"",width:nn,height:is,isSelectItemsInMuban:(0,_.td)(ne),disableAspectRatio:Ht.every(Mi=>Mi.type===D.x.WGraph),isSelectItemsAllMind:Ht.every(Mi=>Mi.type===D.x.WMind),selections:ne,canW:Bn,canH:$s,canAspectRatio:qs}},[D.x.WLine]:L=>{let{selectedTrees:U}=L;const ne=U[0].widget,{w:me,h:Ee,border:Ue}=ne;return{width:Math.round(Math.sqrt(me*me+Ee*Ee)),height:Ue.bdrWidth,canW:!0,canH:!1,canAspectRatio:!1}},[D.x.WArrow]:L=>{let{selectedTrees:U}=L;const ne=U[0].widget,{w:me,h:Ee,arrow:Ue}=ne;return{width:Math.round(Math.sqrt(me*me+Ee*Ee)),height:Ue.arrowStroke.bdrWidth,canW:!0,canH:!1,canAspectRatio:!1}}},[O.TableTypePanel]:{[R.m9]:L=>{var U;let{selectedTrees:ne}=L;const me=ne.map(Ue=>Ue.widget);return{styleType:((U=(0,Ze.i)(me,"tableConfig"))==null?void 0:U.styleType)||0}}},[O.SmartGapPanel]:{[R.m9]:()=>({})}};var Ct=e(67234);class wo extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleCanvasAttrsChanged",(U,ne)=>{const{canvasAttrs:me,type:Ee,selections:Ue,dispatch:at}=this.props,{isClipContent:Ht}=me,xo=Ue.map(Po=>({key:Po,hotAttr:{[ne]:U}}));at({type:"entry:widget:change",payload:{flatChgList:xo}}),Ee===D.x.Canvas&&(0,$t.A9)({attr:"isClipContent",isOpen:!Ht})}),(0,r.A)(this,"handleIsClipContentChanged",U=>{this.handleCanvasAttrsChanged(U,"isClipContent")})}render(){const{canvasAttrs:U}=this.props,{isClipContent:ne}=U;return(0,a.jsx)("div",{className:"general-line is-clip-content-line height-32",children:(0,a.jsx)(Ct.A,{className:f()("check",Ct.p),attr:"isClipContent",isChecked:ne,label:I18N.builtin.is_crop,onChange:this.handleIsClipContentChanged})})}}var ln=e(36603),Io=e(43859),Lo=e(89535);class Ao extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"selectNewModel",U=>{const{type:ne,canvasAttrs:{orientation:me},selections:Ee,dispatch:Ue}=this.props,at=(0,Io.$n)(U.key),Ht=at?me==="landscape":!1,xo=Ee.map(Po=>{let nn={device:U.key};if(!at&&me==="landscape"&&(nn={...nn,orientation:"portrait"}),U.key!=="customize"){const{hotAttr:{x:is,y:Bn,w:$s,h:qs}}=sdkStore.getHotItem(Po),Mi=Ht?U.height:U.width,Xi=Ht?U.width:U.height,na={x:is-$s/2,y:Bn-qs/2};nn={...nn,x:na.x+Mi/2,y:na.y+Xi/2,w:Mi,h:Xi}}return{key:Po,hotAttr:nn}});Ue({type:"entry:widget:change",payload:{flatChgList:xo}}),ne===D.x.Canvas&&(0,$t.A9)({attr:"device"})}),(0,r.A)(this,"handleOrientationChanged",U=>{const{canvasAttrs:{orientation:ne,w:me,h:Ee},selections:Ue,dispatch:at}=this.props;if(U===ne)return;const Ht=Ue.map(xo=>{const{hotAttr:{x:Po,y:nn,w:is,h:Bn}}=sdkStore.getHotItem(xo),$s={x:Po-is/2,y:nn-Bn/2};return{key:xo,hotAttr:{x:$s.x+Ee/2,y:$s.y+me/2,w:Ee,h:me,orientation:U}}});at({type:"entry:widget:change",payload:{flatChgList:Ht}})})}render(){const{canvasAttrs:U,editingPanelCid:ne}=this.props,{orientation:me,device:Ee}=U,Ue=(0,Io.$n)(Ee);return!Ue&&ne?null:(0,a.jsx)(xt,{className:"general-line height-32",children:(0,a.jsxs)("div",{className:"screen-info",children:[!ne&&(0,a.jsx)(ln.A,{model:Ee,renderList:Io.a$,onSelect:this.selectNewModel,isPageSize:!0}),(0,a.jsx)("div",{className:"placeholder"}),Ue&&(0,a.jsxs)("section",{className:f()("orientation-body"),children:[(0,a.jsx)(Lo.A,{content:I18N.SettingPanel.portrait,direction:"down",children:(0,a.jsx)("div",{className:f()("orientation-option",{active:me==="portrait"}),onClick:()=>this.handleOrientationChanged("portrait"),children:(0,a.jsx)(S.C,{className:"icon",name:"setting_panel/screen/screen_portrait"})})}),(0,a.jsx)(Lo.A,{content:I18N.SettingPanel.landscape,direction:"down",children:(0,a.jsx)("div",{className:f()("orientation-option",{active:me==="landscape"}),onClick:()=>this.handleOrientationChanged("landscape"),children:(0,a.jsx)(S.C,{className:"icon",name:"setting_panel/screen/screen_landscape"})})})]})]})})}}const xt=u.Ay.div.withConfig({displayName:"indexui__StyledCanvasSettings",componentId:"sc-1hnaxt5-0"})(["width:auto;overflow:hidden;margin-top:8px;margin-bottom:-8px;.screen-info{display:flex;align-items:center;width:100%;}.placeholder{flex:1}.orientation-body{display:flex;flex-direction:row;justify-content:flex-start;margin-left:10px;.orientation-option{cursor:pointer;width:24px;height:24px;border-radius:4px;&:not(.active):hover{background:",";color:",";}&.active{color:",";background:",";}.icon{font-size:24px;margin-right:6px;}.svg-icon{color:",";}&:first-child{margin:0 3px;}}}"],L=>L.theme.color_btn_secondary_hover,L=>L.theme.color_text_L1,L=>L.theme.color_text_L1,L=>L.theme.color_btn_secondary_active,L=>L.theme.color_text_L1),Ut=L=>{let U,ne;return L&&L===D.x.WSticky&&(U=(0,V.He)({type:D.x.WSticky}),ne=(0,V.m1)({type:D.x.WSticky})),L&&L===D.x.WMTooltip&&(U=(0,V.He)({type:D.x.WMTooltip}),ne=(0,V.m1)({type:D.x.WMTooltip})),{minWidth:U,minHeight:ne}},Wo={component:mt,params:{canLocked:!0,canVisible:!0},getter:[Ot[O.LayerInfoPanel][R.m9]]},qo=function(L){return L===void 0&&(L=!0),{component:mt,params:{canLocked:L,canVisible:L,canEditVector:L},getter:[Ot[O.LayerInfoPanel][R.m9]]}},sn={component:mt,params:{canLocked:!0,canVisible:!0},getter:[Ot[O.LayerInfoPanel][R.m9]]},Kn={component:bt,params:{},getter:[Ot[O.WidgetStatePanel][R.m9]]},ds=L=>({component:Co,params:{canX:!0,canY:!0,canRotate:!0,type:L},getter:L?[Ot[O.PositionInfoPanel][R.m9],Ot[O.PositionInfoPanel][L]]:[Ot[O.PositionInfoPanel][R.m9]],setter:{}}),_s={...ds(),params:{...ds().params,hasRotate:!1,canRotate:!1}},Ls=L=>({...ds(L),params:{...ds().params,hasRotate:!1,canRotate:!1}}),gs={component:mo,params:{canW:!0,canH:!0,canAspectRatio:!0},getter:[Ot[O.SizeInfoPanel][R.m9]],setter:{}},ns=L=>({component:mo,params:{canW:!0,canH:!0,canAspectRatio:!0,...Ut(L)},getter:[Ot[O.SizeInfoPanel][R.m9]],setter:{}}),Wn=L=>({component:mo,params:{canW:!0,canH:!0,canAspectRatio:!0,type:L},getter:[Ot[O.SizeInfoPanel][R.m9]],setter:{}}),Do={...gs,params:{canW:!0,canH:!1,canAspectRatio:!0}},Go={...gs,params:{canW:!0,canH:!0,canAspectRatio:!1}},an={...gs,params:{canW:!1,canH:!1,canAspectRatio:!1}},Mo={...gs,params:{...gs.params,canH:!1,canAspectRatio:!1,isLine:!0},getter:[...gs.getter,Ot[O.SizeInfoPanel][D.x.WLine]],setter:{}},Cn={...gs,params:{...gs.params,canH:!1,canAspectRatio:!1,isLine:!0},getter:[...gs.getter,Ot[O.SizeInfoPanel][D.x.WArrow]],setter:{}},Tn={component:Kt,params:{},getter:[Ot[O.TableTypePanel][R.m9]],setter:{}},cn={component:vo,params:{},getter:[Ot[O.SmartGapPanel][R.m9]],setter:{}},bs=L=>({component:wo,params:{type:L},getter:[U=>{let{selectedTrees:ne}=U;return{canvasAttrs:ne.map(Ee=>Ee.widget)[0],selections:ne.filter(Ee=>Ee.type===D.x.Canvas).map(Ee=>{let{key:Ue}=Ee;return Ue})}}],setter:{}}),Vn=L=>({component:Ao,params:{type:L},getter:[U=>{let{selectedTrees:ne,editingPanelCid:me}=U;return{canvasAttrs:ne.map(Ue=>Ue.widget)[0],editingPanelCid:me,selections:ne.filter(Ue=>Ue.type===D.x.Canvas).map(Ue=>{let{key:at}=Ue;return at})}}],setter:{}}),ti=L=>[[Wo,O.LayerInfoPanel],[Kn,O.WidgetStatePanel],[ds(L),O.PositionInfoPanel],[gs,O.SizeInfoPanel],[cn,O.SmartGapPanel]],oi=[[qo(),O.LayerInfoPanel],[Kn,O.WidgetStatePanel],[ds(D.x.WLine),O.PositionInfoPanel],[Mo,O.SizeInfoPanel],[cn,O.SmartGapPanel]],Gt=[[Wo,O.LayerInfoPanel],[Kn,O.WidgetStatePanel],[_s,O.PositionInfoPanel],[gs,O.SizeInfoPanel],[cn,O.SmartGapPanel]],Rs=[[Wo,O.LayerInfoPanel],[Kn,O.WidgetStatePanel],[ds(R.m9),O.PositionInfoPanel],[Go,O.SizeInfoPanel],[cn,O.SmartGapPanel]],Xs=L=>[[sn,O.LayerInfoPanel],[_s,O.PositionInfoPanel],[ns(L),O.SizeInfoPanel]],Ti=[[Wo,O.LayerInfoPanel],[Kn,O.WidgetStatePanel],[ds(R.m9),O.PositionInfoPanel],[Do,O.SizeInfoPanel],[cn,O.SmartGapPanel]],di=[[Wo,O.LayerInfoPanel],[ds(D.x.WElbow),O.PositionInfoPanel],[gs,O.SizeInfoPanel],[cn,O.SmartGapPanel]],vs=[[qo(),O.LayerInfoPanel],[Kn,O.WidgetStatePanel],[ds(R.m9),O.PositionInfoPanel],[gs,O.SizeInfoPanel],[cn,O.SmartGapPanel]],ei=L=>[[Wo,O.LayerInfoPanel],[Kn,O.WidgetStatePanel],[ds(R.m9),O.PositionInfoPanel],[ns(L),O.SizeInfoPanel],[cn,O.SmartGapPanel]],Si={[R.m9]:ti(R.m9),[R.n1]:Ti,[D.x.WRect]:vs,[D.x.WOval]:vs,[D.x.WPolygon]:vs,[D.x.WStar]:vs,[D.x.WVector]:vs,[D.x.WLine]:oi,[D.x.WArrow]:[[Wo,O.LayerInfoPanel],[Kn,O.WidgetStatePanel],[ds(D.x.WArrow),O.PositionInfoPanel],[Cn,O.SizeInfoPanel],[cn,O.SmartGapPanel]],[D.x.WWrap]:ti(D.x.WWrap),[D.x.WSticky]:Xs(D.x.WSticky),[D.x.WWebpage]:Gt,[D.x.WMSelect]:Gt,[D.x.WMTextInput]:Gt,[D.x.WMTextArea]:Gt,[D.x.WMFileInput]:Gt,[D.x.WMapView]:Gt,[D.x.WBasket]:Gt,[D.x.WLR]:Gt,[D.x.WCode]:Gt,[D.x.WGraph]:Rs,[D.x.WIcon]:Rs,[D.x.WIconButton]:Rs,[D.x.WQRCode]:Rs,[D.x.WTable]:[[Wo,O.LayerInfoPanel],[Tn,O.TableTypePanel],[Kn,O.WidgetStatePanel],[_s,O.PositionInfoPanel],[gs,O.SizeInfoPanel],[cn,O.SmartGapPanel]],[D.x.Canvas]:[[sn,O.LayerInfoPanel],[Vn(D.x.Canvas),O.DevicePanel],[Ls(D.x.Canvas),O.PositionInfoPanel],[Wn(D.x.Canvas),O.SizeInfoPanel],[bs(D.x.Canvas),O.ClipContentPanel]],[D.x.CanvasAsOverlay]:[[sn,O.LayerInfoPanel],[Ls(D.x.Canvas),O.PositionInfoPanel],[Wn(D.x.Canvas),O.SizeInfoPanel],[bs(D.x.Canvas),O.ClipContentPanel]],[D.x.WElbow]:[[Wo,O.LayerInfoPanel],[ds(D.x.WElbow),O.PositionInfoPanel],[an,O.SizeInfoPanel]],[D.x.WTear]:Xs(D.x.WTear),[D.x.WIosCB]:di,[D.x.WAndroidCB]:di,[D.x.WTabItem]:di,[D.x.WSearchBar]:di,[D.x.WUnifiedKeyboard]:di,[D.x.WTriangle]:vs,[D.x.WSwimlane]:Gt,[D.x.WMTooltip]:ei(D.x.WMTooltip)},Gs=L=>{const U=L[0].widget,ne=L.findIndex(Ue=>Ue.type===D.x.WLine)!==-1,me=L.length>1&&L.some(Ue=>(0,_.o9)(Ue.widget)===D.x.Canvas)&&L.some(Ue=>(0,_.o9)(Ue.widget)===D.x.CanvasAsOverlay),Ee=ne&&L.length>1?Si[R.n1]:me?Si[D.x.CanvasAsOverlay]:Si[(0,_.o9)(U)]||Si[R.m9];return[Ho,...Ee]},Vs=()=>[Ho,[qo(!1),O.LayerInfoPanel]];var ps=e(53955);const kn=u.Ay.section.withConfig({displayName:"styled__StyledCommon",componentId:"sc-1tynnhp-0"})(["width:100%;padding:8px 0px 8px 16px;color:",";border-top:1px solid ",';>:not(:first-child){margin-top:2px;}.common-line{display:flex;align-items:center;}.opacity-line{[type="slider"]{width:92px;margin:0 8px;.rail{.fill{background-color:',";}}}.input-number{width:52px;}}.fix-line{.right-content{margin-right:16px;.fix-select{width:100%;}}}.expand{cursor:pointer;display:flex;align-items:center;height:32px;font-size:12px;color:",";&:hover,&:active{color:",";}}"],L=>L.theme.color_text_L2,L=>L.theme.color_bg_border_01,L=>L.theme.color_proto,L=>L.theme.color_text_link_normal,L=>L.theme.color_text_link_hover),zn=["children"];class hs extends p.Component{shouldComponentUpdate(U,ne,me){var Ee;return(Ee=(0,ps.dP)())!=null&&Ee.flag.isDraggingItem||MB.f.isResizing?!1:(0,Le.N)(zn).call(this,U,ne)}render(){return(0,a.jsx)(kn,{className:"widgetSetting-common-panel",children:this.props.children})}}var Ss=e(36037);class fi extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleOpacityChange",(U,ne)=>{const{onChange:me,dispatch:Ee,selections:Ue}=this.props;me({value:parseInt(U)/100,attr:ne,dispatch:Ee,selections:Ue}),Ee({type:"entry:auto:show:hide:item"})}),(0,r.A)(this,"handleOpacityConfirm",(U,ne)=>{this.handleOpacityChange(U,ne),sdkStore.combineMerge("opacity-update")}),(0,r.A)(this,"handleOpacityMouseDown",()=>sdkStore.combineMergeMark("opacity-update")),(0,r.A)(this,"createOnChangeHandler",U=>ne=>{this.handleOpacityChange(ne,U)})}render(){const{opacity:U}=this.props,ne=parseInt(String(U));return(0,a.jsxs)("div",{className:"common-line opacity-line height-32",children:[(0,a.jsx)("span",{children:I18N.SettingPanel.o}),(0,a.jsx)(Ss.A,{attr:"opacity",value:ne,max:100,min:0,onChange:this.handleOpacityChange,onConfirm:this.handleOpacityConfirm,onMouseDown:this.handleOpacityMouseDown}),(0,a.jsx)(pt.A,{className:"input-number",attr:"opacity",value:ne,min:0,max:100,suffix:"%",onConfirm:this.createOnChangeHandler("opacity")})]})}}var ri=e(7775),Li=e(78647),ji=e(19418);class _t extends p.PureComponent{constructor(U){super(U),(0,r.A)(this,"FIX_OPTION_LIST",[{value:"none",label:I18N.SettingPanel.not_fixed},{value:"top",label:I18N.SettingPanel.fixed_top},{value:"bottom",label:I18N.SettingPanel.fixed_bottom},{value:"sticky",label:I18N.SettingPanel.sticky}]),(0,r.A)(this,"updateModeState",ne=>{(0,T.HD)(MB.__store__.getState())!==ne&&this.props.dispatch({type:"mode:update:state",payload:{isFocusStickyOffset:ne}})}),(0,r.A)(this,"handleCancelTimer",()=>{clearTimeout(this.timer),this.updateModeState(!1)}),(0,r.A)(this,"handleFixTypeChange",ne=>{const{onChange:me,dispatch:Ee,selections:Ue,stickyOffset:at}=this.props;if(this.closeGuide(),me({value:ne,attr:"fixPosTo",dispatch:Ee,selections:Ue}),at===null&&ne==="sticky"){var Ht;const xo=sdkStore.locUpHotCanvasKey(Ue[0]),Po=(Ue==null?void 0:Ue.length)>1?0:xo&&((Ht=sdkStore.getHotItem(xo))==null||(Ht=Ht.hotAttr)==null?void 0:Ht.stickyHeaderHeight)||0;me({value:Po,attr:"stickyOffset",dispatch:Ee,selections:Ue})}(0,y.W0)({operationType:y.Vi[ne]})}),(0,r.A)(this,"handleStickyOffsetChange",ne=>{const{onChange:me,dispatch:Ee,selections:Ue}=this.props;me({value:ne,attr:"stickyOffset",dispatch:Ee,selections:Ue})}),(0,r.A)(this,"handleBeforeChangeValue",()=>{const{stickyOffset:ne}=this.props;this.setState({prevStickyOffset:ne})}),(0,r.A)(this,"handleFocus",()=>{clearTimeout(this.timer),this.updateModeState(!0)}),(0,r.A)(this,"handleBlur",ne=>{if(this.state.prevStickyOffset===this.props.stickyOffset){this.updateModeState(!1);return}this.setState({prevStickyOffset:this.props.stickyOffset}),this.timer=setTimeout(()=>{this.updateModeState(!1)},2e3)}),(0,r.A)(this,"handleOpen",()=>{setTimeout(()=>{MB.commonGuideHelper.tryToShowGuide(Li.c.GUIDE_POSITION_STICKY_FEATURES),this.dropDownMenu=document.querySelector("."+Li.c.GUIDE_POSITION_STICKY_FEATURES)},200)}),(0,r.A)(this,"handleClickOutside",ne=>{this.dropDownMenu&&!this.dropDownMenu.contains(ne.target)&&this.closeGuide()}),(0,r.A)(this,"closeGuide",()=>{MB.commonGuideHelper.closeGuide(Li.c.GUIDE_POSITION_STICKY_FEATURES),MB.commonGuideHelper.markGuideAsRead(Li.c.GUIDE_POSITION_STICKY_FEATURES)}),this.state={prevStickyOffset:U.stickyOffset}}componentDidUpdate(U,ne,me){U.selections!==this.props.selections&&this.handleCancelTimer()}componentWillUnmount(){this.handleCancelTimer()}render(){const{fixPosTo:U,selections:ne,stickyOffset:me,placeholderOffset:Ee,isShowMultipleOffset:Ue}=this.props;if(!(ne.length===1?!(0,_.Wi)(ne[0]):!0))return null;const{FIX_OPTION_LIST:Ht}=this;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"fix-line line height-32",children:[(0,a.jsx)("span",{className:"left-label",children:I18N.SettingPanel.fixed}),(0,a.jsx)("div",{className:"right-content",children:(0,a.jsx)(ri.mq,{className:"fix-select",optionList:Ht,value:U,onChange:this.handleFixTypeChange,menuClassName:Li.c.GUIDE_POSITION_STICKY_FEATURES,onOpen:this.handleOpen})})]}),U==="sticky"&&(0,a.jsxs)("div",{className:"fix-line line height-32",children:[(0,a.jsx)("span",{className:"left-label",children:I18N.SettingPanel.stickyOffset}),(0,a.jsx)("div",{className:"right-content",children:(0,a.jsx)(pt.A,{className:"general-input width-66 sticky-offset-input",attr:"stickyOffset",min:-9999,max:9999,value:me,isNotVerify:Ue,placeholder:Ee,onConfirm:this.handleStickyOffsetChange,onFocus:this.handleFocus,onBlur:this.handleBlur,onBeforeChangeValue:this.handleBeforeChangeValue})})]}),(0,a.jsx)(ji.A,{target:document,onMouseDown:(0,ji.t)(this.handleClickOutside,{capture:!0})})]})}}var Aa=e(95057),Ki=e(36072),bi=e(91100);const sa={component:fi,params:{},getter:[Aa.U[Ki.q.OpacityInfoPanel][R.m9]],setter:{onChange:bi.c}},Zi={component:_t,params:{},getter:[Aa.U[Ki.q.FixedInfoPanel][R.m9]],setter:{onChange:bi.c}},Fa=[[Zi,Ki.q.FixedInfoPanel]],to={[D.x.WMapView]:Fa,[D.x.WLR]:Fa,[R.m9]:[[sa,Ki.q.OpacityInfoPanel],[Zi,Ki.q.FixedInfoPanel]]},Qt=L=>{const U=L[0].widget,ne=to[U.name]||to[R.m9];return[hs,...ne]};var Sn=e(88223),Vo=e(36521),ho=e(41197),Uo=e(95175);const pn="mp_text",ys=["children"];class Dn extends p.Component{constructor(){super(...arguments),(0,r.A)(this,"state",{show:(0,Vo.Yt)(pn,!0,Vo.qW.Boolean)}),(0,r.A)(this,"handleChange",()=>{const{show:U}=this.state;(0,Vo.a0)(pn,!U,Vo.qW.Boolean),this.setState({show:!U})})}shouldComponentUpdate(U,ne,me){var Ee;return(Ee=(0,ps.dP)())!=null&&Ee.flag.isDraggingItem?!1:(0,Le.N)(ys).call(this,U,ne)}render(){const{show:U}=this.state;return(0,a.jsx)(ho.A,{collapse:!U,title:I18N.SettingPanel.inspector.text,onChange:this.handleChange,children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Uo.M,{id:"text-settings",onMouseDown:Sn.kI,children:this.props.children}),(0,a.jsx)(Uo.F,{})]})})}}var Hs=e(76995),Qn=e(2743),Gi=e(10312),oa=e(68496),ta=e(73688),Sa=e(51343);const La=L=>[{label:(0,a.jsx)(S.C,{name:"setting_panel/font/font_bold"}),icon:"setting_panel/font/font_bold",value:"bold",title:L.TextToolbar.style1},{label:(0,a.jsx)(S.C,{name:"setting_panel/font/font_italic"}),icon:"setting_panel/font/font_italic",value:"italic",title:L.TextToolbar.style2},{label:(0,a.jsx)(S.C,{name:"setting_panel/font/font_underline"}),icon:"setting_panel/font/font_underline",value:"underline",title:L.TextToolbar.style3},{label:(0,a.jsx)(S.C,{name:"setting_panel/font/font_line_through"}),icon:"setting_panel/font/font_line_through",value:"line-through",title:L.TextToolbar.style4}],ya=L=>La(L).map(U=>["underline","line-through"].includes(U.value)?{...U,disabled:!0}:U),Ja=(L,U,ne)=>{const me=[];return L===1&&me.push("bold"),U==="italic"&&me.push("italic"),typeof ne=="string"&&(ne.includes("underline")&&me.push("underline"),ne.includes("line-through")&&me.push("line-through")),me},No=(0,Sa.V)(Ja),ct=u.Ay.div.withConfig({displayName:"style__StyledTextFontContainer",componentId:"sc-8r4hph-0"})([".radio-line{color:",";&.disabled{background:transparent;}.check-line{&.disabled{background-color:transparent;cursor:not-allowed;&:hover{background:transparent !important;}.svg-icon{color:",";}}}}"],L=>L.theme.color_text_L2,L=>L.theme.color_text_disabled);var Mt=e(16112),ht=e.n(Mt),oo=e(17383),uo=e(38057),So=e(15082),zo=e(34677),en=e(58741),mn=e(86310),jn=e(50685);const{w4:Oo}=zo;class Nn extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleChange",(U,ne,me)=>{const{onChange:Ee,dispatch:Ue,supAttr:at="textV0",isRichText:Ht,isTableCell:xo,selections:Po}=this.props;let nn=U;if(ne==="fontSize"){nn=parseInt(U),Ee({value:nn,attr:ne,supAttr:at,dispatch:Ue,selections:Po});return}(Ht&&ne==="textColor"||xo&&ne==="color")&&(nn=(0,oa.t0)(U)),Ee({value:nn,attr:ne,supAttr:at,dispatch:Ue,compressible:me,selections:Po,fromUI:ne==="fontWeight"?"bold":ne})}),(0,r.A)(this,"handleBoldChange",async()=>{const{boldType:U,boldAttr:ne,fontFamily:me,fontStyle:Ee}=this.props,Ue=me?(0,en.mz)(me):!1;if(me!==void 0&&!Oo.includes(me)&&uo.find(xo=>xo.family===me&&xo.typeList.find(Po=>Po==="bold")))try{Ue||await new(ht())(me,{weight:700}).load()}catch(xo){}const at=U===0?"bold":"regular",Ht=me?sdkStore.getHotItem(me):void 0;if(Ue&&Ht){const Po=mn.y.query.getCloudFontLocalList((0,ps.dP)()).find(Bn=>Bn.family===Ht.hotAttr.extKV.ff);if(!Po)return;const nn=Ee==="italic"?at+"Italic":at,is=Po.typeList.find(Bn=>Bn===nn);if(is)this.handleChange(Po.weightExtKeyKV[is],"fontFamily"),this.handleChange(at,"fontWeight");else if(Po.weightExtKeyKV[at])this.handleChange(Po.weightExtKeyKV[at],"fontFamily"),this.handleChange(at,"fontWeight");else if(nn.includes("bold"))this.handleChange(at,"fontWeight");else{const Bn=(0,jn.dv)(Po);this.handleChange(Bn.ff,"fontFamily"),this.handleChange(Bn.fw,"fontWeight")}}else ne==="boldType"&&(U===0?this.handleChange("bold","fontWeight"):this.handleChange("regular","fontWeight"));this.handleChange(!!(1-U),"bold")}),(0,r.A)(this,"handleFontStyleChange",async U=>{const{fontStyleAttr:ne="italic",fontFamily:me,fontWeight:Ee,fontStyle:Ue}=this.props,at=me?(0,en.mz)(me):!1;if(me!==void 0&&!Oo.includes(me)&&uo.find(Po=>Po.family===me&&Po.typeList.find(nn=>nn===Ee+"Italic")))try{at||await new(ht())(me,{weight:(0,oo._y)(Ee,!1),style:"italic"}).load()}catch(Po){}const Ht=Ue!==U?"italic":"normal",xo=me?sdkStore.getHotItem(me):void 0;if(at&&xo){const nn=mn.y.query.getCloudFontLocalList((0,ps.dP)()).find($s=>$s.family===xo.hotAttr.extKV.ff);if(!nn)return;const is=Ht==="italic"?Ee+"Italic":Ee,Bn=nn.typeList.find($s=>$s===is);Bn&&this.handleChange(nn.weightExtKeyKV[Bn],"fontFamily")}ne==="fontStyle"?this.handleChange(Ht,ne):this.handleChange(Ue!==U,ne)}),(0,r.A)(this,"handleDecorationChange",(U,ne)=>{const{isRichText:me,textDecoration:Ee}=this.props;if(me){this.handleChange(!Ee.includes(U),ne);return}const Ue=this.props.textDecoration;this.handleChange(Ue!==U?U:"normal","textDecoration")}),(0,r.A)(this,"handleFontDirectionChange",U=>{const{onFontDirectionChange:ne,dispatch:me}=this.props;ne({fontDirection:U,dispatch:me})}),(0,r.A)(this,"handleTextStyleChange",async U=>{const ne=U.currentTarget.dataset.value;switch(ne){case"bold":{this.handleBoldChange(),(0,ta.yt)("\u52A0\u7C97");break}case"italic":{this.handleFontStyleChange(ne),(0,ta.yt)("\u503E\u659C");break}case"underline":{this.handleDecorationChange(ne,"underline"),(0,ta.yt)("\u4E0B\u5212\u7EBF");break}case"line-through":{this.handleDecorationChange(ne,"line-through"),(0,ta.yt)("\u5220\u9664\u7EBF");break}default:return null}})}render(){const{dispatch:U,textColor:ne,isTextEditing:me,fontSize:Ee,fontStyle:Ue,boldType:at,textDecoration:Ht,newOverOld:xo,isDisabledFontRadioLine:Po,colorAttr:nn="textColor",canShowBIUS:is=!0,hasMissFontHi:Bn,cloudFontLocalList:$s,fontFamily:qs}=this.props,Mi=No(at,Ue,Ht),Xi=Po?ya(I18N):La(I18N);let na=!1,Xa=!1;if(!Bn&&qs&&!(0,st.ph)(qs)&&qs){let Ga;if((0,en.mz)(qs)){const Qa=sdkStore.getHotItem(qs);if(Qa){const vr=Qa.hotAttr.extKV.ff;Ga=$s.find(al=>al.family===vr)}}else Ga=$s.find(Qa=>Qa.family===qs);const{isAllWeightOverBold:xr,isAllWeightItalic:Br}=(0,jn.rB)(Ga);na=xr,Xa=Br}if(na){const Ga=Xi.find(xr=>xr.value==="bold");Ga&&(Ga.disabled=!0)}if(Xa){const Ga=Xi.find(xr=>xr.value==="italic");Ga&&(Ga.disabled=!0)}return(0,a.jsxs)(ct,{className:"font-group style-line height-32",children:[(0,a.jsx)(Gi.A,{disabled:Bn||!xo&&me,fontSize:Ee,handleChange:this.handleChange}),(0,a.jsx)(Qn.R_,{className:f()(Qn.Fw,{disabled:Bn}),attr:nn,color:ne,onChange:this.handleChange,disabled:!!Bn}),is&&(0,a.jsx)(So.A,{disabled:Bn,isToolTip:!0,options:Xi,className:"font-style-type",value:Mi,handleChange:this.handleTextStyleChange})]})}}var es=e(86075);class zt extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"getHVList",()=>{const{shouldReverseDesc:U}=this.props,ne=U?[{label:(0,a.jsx)(S.C,{name:"setting_panel/font/text_align_left_re"}),value:"left",tip_title:I18N.SettingPanel.vtop_2},{label:(0,a.jsx)(S.C,{name:"setting_panel/font/text_align_center_re"}),value:"center",tip_title:I18N.SettingPanel.vcenter_2},{label:(0,a.jsx)(S.C,{name:"setting_panel/font/text_align_right_re"}),value:"right",tip_title:I18N.SettingPanel.vbottom_2},{label:(0,a.jsx)(S.C,{name:"setting_panel/font/text_align_justify_re"}),value:"justify",tip_title:I18N.SettingPanel.text_Justify}]:[{label:(0,a.jsx)(S.C,{name:"setting_panel/font/text_align_left"}),value:"left",tip_title:I18N.SettingPanel.hleft_2},{label:(0,a.jsx)(S.C,{name:"setting_panel/font/text_align_center"}),value:"center",tip_title:I18N.SettingPanel.align_text_center},{label:(0,a.jsx)(S.C,{name:"setting_panel/font/text_align_right"}),value:"right",tip_title:I18N.SettingPanel.hright_2},{label:(0,a.jsx)(S.C,{name:"setting_panel/font/text_align_justify"}),value:"justify",tip_title:I18N.SettingPanel.text_Justify}],me=U?[{label:(0,a.jsx)(S.C,{name:"setting_panel/font/text_align_v_top_re"}),value:"flex-start",tip_title:I18N.SettingPanel.hleft_2},{label:(0,a.jsx)(S.C,{name:"setting_panel/font/text_align_v_center_re"}),value:"center",tip_title:I18N.SettingPanel.align_text_center},{label:(0,a.jsx)(S.C,{name:"setting_panel/font/text_align_v_bottom_re"}),value:"flex-end",tip_title:I18N.SettingPanel.hright_2}]:[{label:(0,a.jsx)(S.C,{name:"setting_panel/font/text_align_v_top"}),value:"flex-start",tip_title:I18N.SettingPanel.vtop_2},{label:(0,a.jsx)(S.C,{name:"setting_panel/font/text_align_v_center"}),value:"center",tip_title:I18N.SettingPanel.vcenter_2},{label:(0,a.jsx)(S.C,{name:"setting_panel/font/text_align_v_bottom"}),value:"flex-end",tip_title:I18N.SettingPanel.vbottom_2}];return{H_ALIGNMENT_OPTION_LIST:ne,V_ALIGNMENT_OPTION_LIST:me}}),(0,r.A)(this,"handleChange",(U,ne)=>{const{onChange:me,dispatch:Ee}=this.props;me({value:U,attr:ne,dispatch:Ee})}),(0,r.A)(this,"handleHAChange",U=>{this.handleChange(U,"horizontalAlign"),y.MO[U]&&(0,y.W0)({operationType:y.MO[U]})}),(0,r.A)(this,"handleVAChange",U=>{this.handleChange(U,"verticalAlign"),y.Ww[U]&&(0,y.W0)({operationType:y.Ww[U]})})}render(){const{ha:U,va:ne,canHa:me,canVa:Ee,hasMissFontHi:Ue}=this.props,{H_ALIGNMENT_OPTION_LIST:at,V_ALIGNMENT_OPTION_LIST:Ht}=this.getHVList();return(0,a.jsxs)("div",{className:me||Ee?"font-group ali-line height-32":"",children:[me&&(0,a.jsx)(es.z,{className:"h-alignment",options:at,value:U,isLongTimeHover:!0,handleChange:this.handleHAChange,disabled:Ue}),Ee&&(0,a.jsx)(es.z,{className:"v-alignment",options:Ht,value:ne,isLongTimeHover:!0,handleChange:this.handleVAChange,disabled:Ue})]})}}var po=e(76364);class Fo extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"getSizeTypeOptionList",()=>{const{shouldReverseDesc:U}=this.props;return U?[{label:(0,a.jsx)(S.C,{name:"setting_panel/font/fixed_height"}),value:0,tip_title:I18N.SettingPanel.auto_height},{label:(0,a.jsx)(S.C,{name:"setting_panel/font/auto"}),value:2,tip_title:I18N.SettingPanel.auto_width},{label:(0,a.jsx)(S.C,{name:"setting_panel/font/fixed"}),value:1,tip_title:I18N.SettingPanel.fixed_size}]:[{label:(0,a.jsx)(S.C,{name:"setting_panel/font/auto"}),value:0,tip_title:I18N.SettingPanel.auto_width},{label:(0,a.jsx)(S.C,{name:"setting_panel/font/fixed_height"}),value:2,tip_title:I18N.SettingPanel.auto_height},{label:(0,a.jsx)(S.C,{name:"setting_panel/font/fixed"}),value:1,tip_title:I18N.SettingPanel.fixed_size}]})}render(){const{className:U,sizeType:ne,newOverOld:me}=this.props,Ee=this.getSizeTypeOptionList();return(0,a.jsx)(es.A,{className:U,options:Ee,value:ne,handleChange:this.props.handleSizeTypeChange,isLongTimeHover:!0})}}var Mn=e(57465),Fn=e(93284),ts=e(99786);class As extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"getOptionList",()=>{const{directionType:U}=this.props;return U==="vertical-lr"?[{label:(0,a.jsx)(S.C,{name:"setting_panel/font/unorder_list_re"}),value:"unordered",tip_title:I18N.TextToolbar.syntax5},{label:(0,a.jsx)(S.C,{name:"setting_panel/font/order_list_re"}),value:"ordered",tip_title:I18N.TextToolbar.syntax6}]:[{label:(0,a.jsx)(S.C,{name:"setting_panel/font/unorder_list"}),value:"unordered",tip_title:I18N.TextToolbar.syntax5},{label:(0,a.jsx)(S.C,{name:"setting_panel/font/order_list"}),value:"ordered",tip_title:I18N.TextToolbar.syntax6}]}),(0,r.A)(this,"handleListValueChange",U=>{const{handleChange:ne,listValue:me}=this.props,{_getEditorState:Ee}=(0,Mn.DT)();Ee?ne(U,"listType"):Is(me,U),(0,ta.yt)(U==="unordered"?"\u65E0\u5E8F\u5217\u8868":"\u6709\u5E8F\u5217\u8868")})}render(){const{className:U,listValue:ne,newOverOld:me}=this.props,Ee=this.getOptionList();let Ue=ne;return ne==="ordered-list-item"?Ue="ordered":ne==="unordered-list-item"?Ue="unordered":Ue="none",(0,a.jsx)(es.A,{disabled:!me,className:U,options:Ee,value:Ue,handleChange:this.handleListValueChange,isLongTimeHover:!0})}}const Is=(L,U)=>{const ne=(Ee,Ue,at)=>{const Ht={};for(const[xo,Po]of Object.entries(Ee))Ht[xo]={...Po,type:Ue,depth:at?Po.depth:0};return Ht},me=MB.getSelectionItems().map(Ee=>{if(!D.Q.USE_TEXT_LIST.includes(Ee.type))return null;let Ue;if(L==="ordered-list-item"||L==="unordered-list-item")L==="ordered-list-item"&&U==="unordered"?Ue=ne(Ee.textV1.blocks,"unordered-list-item",!0):L==="unordered-list-item"&&U==="ordered"?Ue=ne(Ee.textV1.blocks,"ordered-list-item",!0):Ue=ne(Ee.textV1.blocks,"unstyled",!1);else{const Ht=U==="unordered"?"unordered-list-item":"ordered-list-item";Ue=ne(Ee.textV1.blocks,Ht,!1)}const at={...Ee,textV1:{...Ee.textV1,blocks:Ue}};if(at.richTextV1.sizeType===0){const{width:Ht,height:xo}=(0,Fn.Dp)(at),{x:Po,y:nn}=(0,ts.p)({key:Ee.key,width:Ht,height:xo});at.width=Ht,at.height=xo,at.x=Po,at.y=nn}else if(at.richTextV1.sizeType===2){const Ht=(0,Fn.x1)(at),{x:xo,y:Po}=(0,ts.p)({key:Ee.key,width:Ee.width,height:Ht});at.height=Ht,at.x=xo,at.y=Po}return{key:Ee.key,hotAttr:{textV1:at.textV1,w:at.width,h:at.height,x:at.x,y:at.y}}}).filter(Ee=>Ee);MB.action("entry:widget:change",{flatChgList:me})};var io=e(91344),Jo=e(9574),Zo=e(29758),Un=e(52098),On=e(32148),us=e(73807),bn=e(57882);class Gn extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"store",(0,On.A)({isVisible:!1})),(0,r.A)(this,"handleHyperLink",async()=>{const{isHavingLink:U}=this.props,{_getEditorState:ne}=(0,Mn.DT)(),me=MB.getSelectionItems()[0];if(ne){const Ue=(0,Un.Jy)(window),{left:at,top:Ht}=Ue,xo={top:Ht-28-5,left:at},Po=ne(),nn=(0,Zo.Kt)(Po),{link:is,selectionText:Bn,blockKey:$s,start:qs,end:Mi}=(0,Jo.Q)(Po,nn);is&&is.target?io.A.emit("draft:link-toast:edit",{widget:me,linkTitle:is.title||Bn||"",linkTarget:is.target||"",style:xo,blockKey:$s,start:qs,end:Mi,fromType:"settingPanel",settingLevel:"editing"}):io.A.emit("draft:link-toast:add",{widget:me,linkTitle:Bn||"",linkTarget:"",style:xo,blockKey:$s,start:qs,end:Mi,fromType:"settingPanel",settingLevel:"editing"})}else{const Ue=document.querySelector("#text-dom-"+me.key).getBoundingClientRect(),{left:at,top:Ht}=Ue,xo={top:Ht-28-5,left:at};if(U==="exist"){var Ee;const Po=((Ee=Object.values(me.textV1.entityMap).find(nn=>nn.type==="LINK"))==null?void 0:Ee.data.url)||"";io.A.emit("draft:link-toast:edit",{widget:me,linkTitle:"",linkTarget:Po,style:xo,blockKey:"",start:"",end:"",fromType:"settingPanel",settingLevel:"widget"})}else io.A.emit("draft:link-toast:add",{widget:me,linkTitle:"",linkTarget:"",style:xo,blockKey:"",start:"",end:"",fromType:"settingPanel",settingLevel:"widget"})}MB.__store__.dispatch({type:us.k.EntryKey["entry:draft:isCreatingLink:update"],payload:{isCreatingLink:!0}}),(0,ta.yt)("\u63D2\u5165\u94FE\u63A5")})}render(){const{className:U,isHavingLink:ne}=this.props,me=MB.getSelectionItems()[0],Ee=!(0,bn.xc)(me);return(0,a.jsx)(es.A,{disabled:Ee,className:U,options:xs,value:ne,handleChange:this.handleHyperLink,isLongTimeHover:!0})}}const xs=[{label:(0,a.jsx)(S.C,{name:"setting_panel/font/hyper_link"}),value:"exist",tip_title:"\u8D85\u94FE\u63A5"}];var Es=e(19722),Ys=e(86778);class lo extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"SIZE_TYPE_OPTION_LIST",[{label:(0,a.jsx)(S.C,{name:"setting_panel/font/horizontal"}),value:"horizontal-tb",tip_title:I18N.builtin.horizontal},{label:(0,a.jsx)(S.C,{name:"setting_panel/font/vertical"}),value:"vertical-lr",tip_title:I18N.builtin.vertical}])}render(){const{className:U,directionType:ne,newOverOld:me,handleDirectionTypeChange:Ee}=this.props,{SIZE_TYPE_OPTION_LIST:Ue}=this;return(0,a.jsx)(es.A,{disabled:!me,className:U,options:Ue,value:ne,handleChange:Ee,isLongTimeHover:!0})}}var Ko=e(8078);const eo=99999,ro=0,Yt=[{label:()=>"\u4E0A",name:"pT",value:0},{label:()=>"\u4E0B",name:"pB",value:0},{label:()=>"\u5DE6",name:"pL",value:0},{label:()=>"\u53F3",name:"pR",value:0}],Wt=(0,p.memo)(L=>{let{paddingTuple:U,disabled:ne}=L;const me=(0,o.wA)(),Ee=Ue=>{const at={...U,...Ue};me({type:"entry:set:text:attr",payload:{attr:"paddingTuple",value:at}})};return(0,a.jsx)(Ko.mO,{children:Yt.map(Ue=>(0,a.jsxs)("div",{className:"padding-item",children:[(0,a.jsx)(pt.A,{max:eo,min:ro,disabled:ne,className:"padding-number",onConfirm:at=>{Ee({[Ue.name]:at})},value:(U==null?void 0:U[Ue.name])||ro}),(0,a.jsx)("div",{className:"label",children:Ue.label()})]},Ue.name))})});class At extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"OPTIONS_MENU_OPENER",(0,a.jsx)(h.Q,{className:"menu-opener fontSettings",content:I18N.SettingPanel.text_settings,icon:(0,a.jsx)(S.C,{name:"common/more",className:"options-icon"}),direction:"down"})),(0,r.A)(this,"setComponentRef",U=>this.workspaceDropdown=U),(0,r.A)(this,"handleCloseOptionsMenu",()=>{this.workspaceDropdown.close()})}render(){const{isDisabled:U,...ne}=this.props,{OPTIONS_MENU_OPENER:me}=this;return(0,a.jsx)(Ko.L4,{children:(0,a.jsx)(po.A,{menuX:"right",menuY:"bottom",ref:this.setComponentRef,isDisabled:U,className:"options-menu-opener font-menu-opener",opener:me,menuClassName:"font-options-menu",menu:(0,a.jsx)(Xe,{onClose:this.handleCloseOptionsMenu,...ne})})})}}const Xe=(0,p.memo)(L=>{let{directionType:U,newOverOld:ne,listValue:me,isHavingLink:Ee,isWRichText:Ue,handleFontDirectionChange:at,handleChange:Ht,onClose:xo,shouldReverseDesc:Po,sizeType:nn,paraSpacing:is,paddingTuple:Bn,name:$s,disabled:qs,isClipText:Mi,handleSizeTypeChange:Xi}=L;const na=vr=>{at(vr),vr==="vertical-lr"?(0,ta.yt)("\u7EB5\u5411\u6392\u5217"):(0,ta.yt)("\u6A2A\u6392")},Xa=D.Q.USE_SIZE_TYPE.includes($s),Ga=D.Q.USE_TEXT_FONT_DIRECTION.includes($s),xr=D.Q.USE_PARA_SPACING.includes($s),Br=!D.Q.HIDE_PADDING.includes($s),Qa=D.Q.USE_CLIP_TEXT.includes($s);return(0,a.jsxs)(Ko.jl,{children:[(0,a.jsxs)("header",{children:[(0,a.jsx)("span",{className:"title",children:I18N.SettingPanel.text_settings}),(0,a.jsx)(Es.A,{name:"common/close_sm",onClick:xo})]}),(0,a.jsxs)("div",{id:"text-settings-font-menu",className:"menu-container",children:[Xa&&(0,a.jsx)("div",{className:"menu-wrapper",children:(0,a.jsxs)("div",{className:"font-style svg-size",children:[(0,a.jsx)("p",{children:I18N.SettingPanel.text_fix_type}),(0,a.jsx)(Fo,{newOverOld:!0,isDisabledSizeType:!1,shouldReverseDesc:Po,sizeType:nn,handleSizeTypeChange:Xi})]})}),Ga&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"menu-wrapper",children:(0,a.jsxs)("div",{className:"font-style svg-size",children:[(0,a.jsx)("p",{children:I18N.TextToolbar.textDirection}),(0,a.jsx)(lo,{className:"font-size-type",newOverOld:ne,directionType:U,handleDirectionTypeChange:na})]})}),(0,a.jsx)("div",{className:"menu-wrapper",children:(0,a.jsxs)("div",{className:"font-style font-list-style svg-size",children:[(0,a.jsx)("p",{children:I18N.ScreenPanel.list_style}),(0,a.jsx)(As,{className:"font-size-type font-list",newOverOld:ne,listValue:me,directionType:U,handleChange:Ht})]})}),(0,a.jsx)("div",{className:"menu-wrapper",children:(0,a.jsxs)("div",{className:"font-style svg-size",children:[(0,a.jsx)("p",{children:I18N.SettingPanel.design.link}),(0,a.jsx)(Gn,{className:"font-size-type",isHavingLink:Ee})]})})]}),xr&&(0,a.jsx)("div",{className:"menu-wrapper",children:(0,a.jsxs)("div",{className:"font-style",children:[(0,a.jsx)("p",{children:I18N.SettingPanel.para_spacing}),(0,a.jsx)(pt.s,{className:"paragraph-input",disabled:!Ue,attr:"paraSpacing",value:is,step:.1,precision:2,min:0,max:9999,onConfirm:(vr,al)=>{vr!==is&&Ht(vr,al)},withToolTip:!0,toolTipContent:I18N.SettingPanel.para_spacing,direction:"down",normalRight:!0})]})}),Qa&&(0,a.jsx)("div",{className:"menu-wrapper",children:(0,a.jsxs)("div",{className:"is-clip-text",children:[(0,a.jsx)("p",{children:I18N.SettingPanel.is_clip_text}),(0,a.jsx)(Ys.A,{size:"small",isIOS:!0,isChecked:Mi,onChange:vr=>Ht(vr,"isClipText")})]})}),Br&&(0,a.jsx)("div",{className:"menu-wrapper",children:(0,a.jsxs)("div",{className:"font-padding",children:[(0,a.jsx)("p",{children:"\u8FB9\u8DDD"}),(0,a.jsx)(Wt,{paddingTuple:Bn,disabled:qs})]})})]})]})}),Vt=[D.x.WRichText,D.x.WRect,D.x.WOval,D.x.WPolygon,D.x.WStar,D.x.WTriangle,D.x.wFlowClosed,D.x.WFlowOpened,D.x.WVector,D.x.WMTextInput,D.x.WMSelect,D.x.WLine,D.x.WElbow,D.x.WArrow,D.x.WPlaceholder,D.x.WMTooltip,D.x.WButton],Xo=[D.x.WMTextInput,D.x.WDropMenu,D.x.WMSelect,D.x.WTabs,D.x.WMobileTabBars,D.x.WTree];class rn extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleChange",(U,ne)=>{const{onChange:me,dispatch:Ee}=this.props;me({value:U,attr:ne,dispatch:Ee})}),(0,r.A)(this,"handleSizeTypeChange",U=>{const{onSizeTypeChange:ne,dispatch:me}=this.props;ne==null||ne({sizeType:U,dispatch:me})}),(0,r.A)(this,"handleFontDirectionChange",U=>{const{onChange:ne,dispatch:me}=this.props;ne({value:U,attr:"fontDirection",dispatch:me})}),(0,r.A)(this,"getSpacingList",()=>{const{shouldReverseDesc:U}=this.props;return U?[{title:(0,a.jsx)(S.C,{className:"design-padding",name:"setting_panel/font/letter_spacing_re"}),toolTipContent:I18N.SettingPanel.letter_spacing},{title:(0,a.jsx)(S.C,{className:"design-text_line_height",name:"setting_panel/font/text_line_height_re"}),toolTipContent:I18N.SettingPanel.text_line_height},{title:(0,a.jsx)(S.C,{className:"design-para_spacing",name:"setting_panel/font/para_spacing_re"}),toolTipContent:I18N.SettingPanel.para_spacing}]:[{title:(0,a.jsx)(S.C,{className:"design-padding",name:"setting_panel/font/letter_spacing"}),toolTipContent:I18N.SettingPanel.letter_spacing},{title:(0,a.jsx)(S.C,{className:"design-text_line_height",name:"setting_panel/font/text_line_height"}),toolTipContent:I18N.SettingPanel.text_line_height},{title:(0,a.jsx)(S.C,{className:"design-para_spacing",name:"setting_panel/font/para_spacing"}),toolTipContent:I18N.SettingPanel.para_spacing}]})}render(){const{disabled:U,lineHeight:ne,paddingTuple:me,padding:Ee,canPadding:Ue=!0,sizeType:at,isWRichText:Ht,shouldReverseDesc:xo,letterSpacing:Po,fontSize:nn,fontFamily:is,paraSpacing:Bn,isClipText:$s,fontDirection:qs,curBlockKey:Mi,isHavingLink:Xi,listValue:na,isDisalbeLineHeight:Xa,name:Ga,baseItem:xr,hideLineHeight:Br,isMissFont:Qa}=this.props,vr=this.getSpacingList(),al=Vt.includes(Ga)||(xr==null?void 0:xr.every(Sc=>Vt.includes(Sc.name))),mr=Br||Xo.includes(Ga)||(xr==null?void 0:xr.every(Sc=>Xo.includes(Sc.name))),dd=Xa||(ne===1/0?!0:U),Ql=[D.x.WMTextArea,D.x.WTable].includes(Ga);return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"font-group spacing-line height-32",children:[Ql?(0,a.jsx)(pt.s,{className:"paragraph-input step-input-width-72",title:(0,a.jsx)(S.C,{className:"design-padding",name:"setting_panel/font/margin"}),disabled:Qa||!Ue||U,attr:"padding",value:Ee,min:0,max:9999,step:1,precision:2,onConfirm:this.handleChange,withToolTip:!0,toolTipContent:I18N.SettingPanel.padding,direction:"down"}):(0,a.jsx)(pt.s,{className:"paragraph-input step-input-width-72",title:vr[0].title,disabled:Qa||!Ue||U,attr:"letterSpacing",value:Po,min:0,max:9999,step:.1,precision:2,onConfirm:this.handleChange,withToolTip:!0,toolTipContent:vr[0].toolTipContent,direction:"down"}),!mr&&(0,a.jsx)(pt.s,{className:"paragraph-input step-input-width-72",tooltipTitle:I18N.SettingPanel.text_line_height,title:vr[1].title,disabled:Qa||dd,attr:"lineHeight",value:ne,isNotVerify:ne===1/0,onConfirm:this.handleChange,withToolTip:!0,toolTipContent:vr[1].toolTipContent,direction:"down",fontFamily:is,fontSize:nn,isWRichText:Ht,isLineHeight:!0}),al&&(0,a.jsx)(At,{isDisabled:Qa||!1,newOverOld:!0,listValue:na,isHavingLink:Xi,curBlockKey:Mi,isWRichText:!0,name:Ga,disabled:Qa||U,handleChange:this.handleChange,handleFontDirectionChange:this.handleFontDirectionChange,directionType:qs,handleSizeTypeChange:this.handleSizeTypeChange,sizeType:at,paddingTuple:me,paraSpacing:Bn,isClipText:$s,shouldReverseDesc:xo})]})})}}var Ps=e(72175);class Os extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleContentChange",U=>this.props.dispatch({type:"entry:batch:edit:text:content",payload:{contentArray:U}}))}render(){const{canShowContentBox:U}=this.props;if(!U)return null;const{content:ne,canMultiline:me,disableModifyContentBox:Ee}=this.props;return(0,a.jsx)("div",{className:"item-with-name",children:(0,a.jsx)("div",{className:"item-value",children:(0,a.jsx)(Ps.A,{canMultiline:me,content:ne,onChange:this.handleContentChange,placeholder:I18N.SettingPanel.content_box_placeholder,disableModifyContentBox:Ee})})})}}var ss=e(50253),Fs=e(96958),Ei=e(46927);const vi=L=>{let{attr:U,value:ne,dispatch:me,supAttr:Ee,selections:Ue}=L;(0,bi.c)({attr:U,value:ne,dispatch:me,supAttr:Ee,selections:Ue})},li=function(L){return L===void 0&&(L=R.m9),{component:Hs.X,params:{},getter:[Fs.sE[ss.s.TextFontPanel][L]],setter:{onChange:U=>{let{value:ne,attr:me,dispatch:Ee,isFakeOverride:Ue}=U;Ee({type:"entry:set:text:attr",payload:{value:ne,attr:me,isFakeOverride:Ue}})},onSetWeightValue:async U=>{let{fontFamily:ne,fontWeight:me,boldType:Ee,dispatch:Ue}=U;ne&&Ue({type:"entry:set:richText:attr:fontWeight",payload:{fontFamily:ne,fontWeight:me,boldType:Ee}})}}}},Ci=["\u81EA\u52A8\u5BBD\u5EA6","\u56FA\u5B9A\u5C3A\u5BF8","\u81EA\u52A8\u9AD8\u5EA6"],yi=L=>({component:Nn,params:{canShowMenu:!0,newOverOld:Ei.VV.includes(L),isDisabledSizeType:L!==D.x.WRichText,isDisabledFontRadioLine:!1},getter:[Fs.sE[ss.s.TextFontPanel][L]||Fs.sE[ss.s.TextFontPanel][R.m9]],setter:{onChange:U=>{let{value:ne,attr:me,dispatch:Ee,compressible:Ue,fromUI:at}=U;Ee({type:"entry:set:text:attr",payload:{value:ne,attr:me,compressible:Ue,fromUI:at}})}}}),ea={...yi(D.x.WRichText),params:{canShowMenu:!0,newOverOld:!0}},ii={component:Nn,params:{canShowBIUS:!1},getter:[Fs.sE[ss.s.ChartTextFontPanel][R.m9]],setter:{onChange:vi}},Wi={component:Nn,params:{canShowMenu:!0},getter:[Fs.sE[ss.s.TableTextFontPanel][R.m9]],setter:{onChange:L=>{let{value:U,attr:ne,dispatch:me}=L;me({type:"entry:table:set:cell:attr:new",payload:{attr:ne,value:U}})}}},ua=L=>({component:zt,params:{canHa:!0,canVa:!0},getter:L?[Fs.sE[ss.s.AlignPanel][R.m9],Fs.sE[ss.s.AlignPanel][L]||Fs.sE[ss.s.AlignPanel][R.m9]]:[Fs.sE[ss.s.AlignPanel][R.m9]],setter:{onChange:U=>{let{value:ne,attr:me,dispatch:Ee}=U;Ee({type:"entry:set:text:align",payload:{attr:me,value:ne}})}}}),va=L=>({...ua(L),setter:{onChange:U=>{let{value:ne,attr:me,dispatch:Ee}=U;Ee({type:"entry:table:set:cell:attr:new",payload:{attr:me,value:ne}})}}}),tr=L=>({component:rn,params:{},getter:[Fs.sE[ss.s.SpacingPanel][L||R.m9]],setter:{onChange:U=>{let{value:ne,attr:me,dispatch:Ee}=U;Ee({type:"entry:set:text:attr",payload:{value:ne,attr:me}})}}}),xa={...tr(),getter:[Fs.sE[ss.s.SpacingPanel][D.x.WTable]],setter:{onChange:L=>{let{value:U,attr:ne,dispatch:me}=L;me({type:"entry:table:set:cell:attr:new",payload:{attr:ne,value:U}})}}},dr={component:rn,params:{},getter:[Fs.sE[ss.s.SpacingPanel][D.x.WRichText]],setter:{onSizeTypeChange:L=>{let{sizeType:U,dispatch:ne}=L;const me=parseInt(U);ne({type:"entry:set:text:attr",payload:{value:me,attr:"sizeType"}}),(0,ta.yt)(Ci[me])},onChange:L=>{let{value:U,attr:ne,dispatch:me}=L;me({type:"entry:set:text:attr",payload:{value:U,attr:ne}})}}},gr={component:Os,params:{},getter:[Fs.sE[ss.s.ContentBoxPanel][R.m9]],setter:{}},ir=function(L){let{textFontInfoType:U,alignInfoType:ne}=L===void 0?{textFontInfoType:"",alignInfoType:""}:L;return[[yi(U),ss.s.TextFontPanel],[ua(ne),ss.s.AlignPanel],[tr(),ss.s.SpacingPanel],[gr,ss.s.ContentBoxPanel]]},Wr=function(L){let{textFontInfoType:U,alignInfoType:ne}=L===void 0?{textFontInfoType:"",alignInfoType:""}:L;return[[yi(U),ss.s.TextFontPanel],[ua(ne),ss.s.AlignPanel],[gr,ss.s.ContentBoxPanel]]},pl=[[li(D.x.WRichText),ss.s.RichTextFontPanel],[ea,ss.s.TextFontPanel],[ua(D.x.WRichText),ss.s.AlignPanel],[dr,ss.s.RichTextSpacingPanel],[gr,ss.s.ContentBoxPanel]],br=[[li(D.x.WDropMenu),ss.s.RichTextFontPanel],[yi(),ss.s.TextFontPanel],[ua(),ss.s.AlignPanel],[tr(),ss.s.SpacingPanel]],Na=L=>[[li(D.x.WMTextInput),ss.s.RichTextFontPanel],[yi(L),ss.s.TextFontPanel],[ua(D.x.WMTextArea),ss.s.AlignPanel],[gr,ss.s.ContentBoxPanel]],Nr=L=>[[li(L),ss.s.RichTextFontPanel],[yi(L),ss.s.TextFontPanel],[ua(L),ss.s.AlignPanel],[tr(L),ss.s.SpacingPanel],[gr,ss.s.ContentBoxPanel]],ma={[D.x.WRichText]:pl,[D.x.WPlaceholder]:Nr(D.x.WPlaceholder),[D.x.WRect]:Nr(D.x.WRect),[D.x.WOval]:Nr(D.x.WOval),[D.x.WLine]:[[li(D.x.WLine),ss.s.RichTextFontPanel],[yi(D.x.WLine),ss.s.TextFontPanel],[ua(D.x.WLine),ss.s.AlignPanel],[tr(D.x.WLine),ss.s.SpacingPanel],[gr,ss.s.ContentBoxPanel]],[D.x.WArrow]:[[li(D.x.WArrow),ss.s.RichTextFontPanel],[yi(D.x.WArrow),ss.s.TextFontPanel],[ua(D.x.WArrow),ss.s.AlignPanel],[tr(D.x.WArrow),ss.s.SpacingPanel],[gr,ss.s.ContentBoxPanel]],[D.x.WPolygon]:Nr(D.x.WPolygon),[D.x.WStar]:Nr(D.x.WStar),[D.x.wFlowClosed]:Nr(D.x.wFlowClosed),[D.x.WFlowOpened]:Nr(D.x.WFlowOpened),[D.x.WButton]:Nr(D.x.WButton),[D.x.WButtonSolid]:Wr(),[D.x.WDropMenu]:br,[D.x.WMTextInput]:Na(D.x.WMTextInput),[D.x.WMTextArea]:[[li(D.x.WMTextArea),ss.s.RichTextFontPanel],[yi(D.x.WMTextArea),ss.s.TextFontPanel],[ua(D.x.WMTextArea),ss.s.AlignPanel],[tr(),ss.s.SpacingPanel],[gr,ss.s.ContentBoxPanel]],[D.x.WMobileTabBars]:[[li(),ss.s.RichTextFontPanel],[yi(),ss.s.TextFontPanel],[tr(),ss.s.SpacingPanel]],[D.x.WMSelect]:[[li(),ss.s.RichTextFontPanel],[yi(),ss.s.TextFontPanel],[tr(),ss.s.SpacingPanel],[gr,ss.s.ContentBoxPanel]],[D.x.WTabs]:[[li(),ss.s.RichTextFontPanel],[yi(),ss.s.TextFontPanel],[tr(),ss.s.SpacingPanel]],[D.x.WSegmentedControl]:[[li(),ss.s.RichTextFontPanel],[yi(),ss.s.TextFontPanel],[tr(),ss.s.SpacingPanel]],[D.x.WChart]:[[ii,ss.s.ChartTextFontPanel]],[D.x.WTable]:[[Wi,ss.s.TableTextFontPanel],[va(D.x.WTable),ss.s.TableAlignPanel],[xa,ss.s.TableSpacingPanel]],[D.x.WElbow]:Nr(D.x.WElbow),[D.x.WVector]:Nr(D.x.WVector),[D.x.WTriangle]:Nr(D.x.WTriangle),[D.x.WTree]:[[li(D.x.WTree),ss.s.RichTextFontPanel],[yi(D.x.WTree),ss.s.TextFontPanel],[tr(D.x.WTree),ss.s.SpacingPanel],[gr,ss.s.ContentBoxPanel]],[D.x.WMTooltip]:[[li(D.x.WMTooltip),ss.s.RichTextFontPanel],[yi(D.x.WMTooltip),ss.s.TextFontPanel],[ua(D.x.WMTooltip),ss.s.AlignPanel],[tr(D.x.WMTooltip),ss.s.SpacingPanel],[gr,ss.s.ContentBoxPanel]],[R.m9]:ir()},hr=L=>{const U=L[0].widget,ne=ma[U.type]||ma[R.m9];if(L.length===1)return[Dn,...ne];{let me=[];const Ee=L.map(Ue=>Ue.type);if(Ee.every(Ue=>Ue===U.type))me=ma[U.type]||ma[R.m9];else{const Ue=new Map;if(Ee.includes(D.x.WRichText)){const Po=ma[D.x.WRichText]||ma[R.m9],[nn,is]=Po[0];Ue.set(is,[nn,is])}const at=Ee.findIndex(Po=>Fs.cX.includes(Po)),Ht=Ee[at]||U.type;me=[...Array.from(Ue.values()),...ir({textFontInfoType:Ht,alignInfoType:Ht})]}return[Dn,...me]}},Ir=u.Ay.section.withConfig({displayName:"styles__StyledAppearance",componentId:"sc-b2sraj-0"})(["width:240px;padding:0 16px 0 16px;color:",";>:not(:first-child){margin-top:2px;}.keyboard-size{width:100px;margin-left:44px;> label{width:100px;}}.tab-item-side{white-space:nowrap;input{margin-left:5px;}}.appearance-line{display:flex;align-items:center;color:",";.left-label{height:14px;color:",';line-height:14px;white-space:nowrap;}&.keyboad-line{margin-top:16px;}[type="color-btn"]{margin:0 6px;}&.qrcode-color{.foreground-color-setting{display:flex;align-items:center;margin-left:-4px;}.background-color-setting{display:flex;align-items:center;margin-left:32px;&:lang(en){margin-left:6px;}}[type="color-btn"]{margin:0 6px 0 0;}}&.enum-rect-line{margin-top:2px;}.enum-color-rect{width:16px;height:16px;border-radius:1px;margin-left:2px;margin-right:2px;cursor:pointer;box-sizing:border-box;&.border{border:1px solid #e5e5e5;}&.active{border:1px solid #e5e5e5;outline:2px solid #f2f2f2;}}}.divider{margin:7px 0;border-top:1px solid ',";}.slider_size,.slider_icon{height:36px;justify-content:flex-start;.WorkspaceInputNumber{margin-left:32px;width:64px;}.colorButton{margin-left:16px;}}.font-setting{justify-content:flex-start;.left-label.text_kbd{margin-right:24px;}.WorkspaceInputNumber{width:66px;}[type=color-btn]{margin-left:6px;}}&.isDigitalStepper{> div:last-child{margin-bottom:0;}}"],L=>L.theme.color_text_L2,L=>L.theme.color_text_L2,L=>L.theme.color_text_L2,L=>L.theme.color_bg_border_01),Jr=(0,u.DU)([".DesignDropdownMenu{&.border-width-menu{transition:unset !important;.content{padding:0 !important;border-radius:8px !important;position:relative;}}}"]),ml="position",zc="mp_"+ml,zl=["children"];class Wl extends p.Component{constructor(){super(...arguments),(0,r.A)(this,"state",{show:(0,Vo.Yt)(zc,!0,Vo.qW.Boolean)}),(0,r.A)(this,"handleChange",()=>{const{show:U}=this.state;(0,Vo.a0)(zc,!U,Vo.qW.Boolean),this.setState({show:!U})})}shouldComponentUpdate(U,ne,me){var Ee;return(Ee=(0,ps.dP)())!=null&&Ee.flag.isDraggingItem?!1:(0,Le.N)(zl).call(this,U,ne)}render(){const{show:U}=this.state;return(0,a.jsxs)(ho.A,{collapse:!U,title:I18N.SettingPanel.inspector[ml],onChange:this.handleChange,children:[(0,a.jsx)(Ir,{className:"appearance-body",children:this.props.children}),(0,a.jsx)(Jr,{})]})}}const $r=(0,u.i7)(["from{opacity:1;}to{opacity:0.3;}"]),Bl=u.Ay.div.withConfig({displayName:"styles__StyledBorderRadius",componentId:"sc-4prsk0-0"})(["display:flex;align-items:center;height:32px;.Tooltip{display:flex;}.radius-set-controller{display:flex;height:24px;margin-right:6px;position:relative;&.can-not-set-single{width:auto;}svg{color:",";}.set-separately{display:inline-flex;width:24px;vertical-align:middle;justify-content:center;align-items:center;transition:all 0.2s ease-in-out;cursor:pointer;border-radius:4px;&.active{background-color:",";svg{path:first-child{fill:",";}path:nth-child(2){fill:",";}path:nth-child(3){fill:",";}path:nth-child(4){fill:",";}}}&:not(.active):hover{background-color:",";}&:active{background-color:",";}}.set-all{display:flex;width:24px;justify-content:space-around;align-items:center;cursor:pointer;transition:all 0.2s ease-in-out;border-radius:4px;&.active{background-color:",";}&:not(.active):hover{background-color:",";}&:active{background-color:",";}}.separate-dropdown{position:relative;.expand-icon{position:absolute;right:6px;line-height:18px;color:#c8cdd0;svg{transform:rotate(180deg);transition:all 0.2s ease-out;}}&.is-open{.expand-icon{svg{transform:rotate(0);}}}}.radiusActiveIcon{position:absolute;width:5px;height:5px;display:none;path{fill:",";}&.radiusTL{top:6px;left:30px;}&.radiusTR{top:6px;right:5px;transform:rotate(90deg);}&.radiusBL{left:30px;bottom:6px;transform:rotate(-90deg);}&.radiusBR{right:5px;bottom:6px;transform:rotate(180deg);}&.animated{display:inline-block;animation:"," 0.4s ease-in-out 0.2s 4 alternate;}}}.separate-radius-input{flex:1;.set-all-input{height:28px;}.separate-set-area{display:flex;width:154px;.separate-input{height:28px;&:not(.is-active){border-color:",";}&.is-active{border-left:1px solid",";&:not(:first-child){border-left:1px solid ",";}}&:first-child{border-radius:4px 0 0 4px;&:hover{border-color:",";}}&:not(:first-child){border-radius:0;border-left:1px solid transparent;margin-left:-1px;&:hover{border-color:",";border-left:1px solid ",";}}&:last-child{border-radius:0 4px 4px 0;}}}}"],L=>L.theme.color_text_L1,L=>L.theme.color_btn_secondary_active,L=>L.activeRadius==="tl"?"transparent":L.theme.color_text_L1,L=>L.activeRadius==="tr"?"transparent":L.theme.color_text_L1,L=>L.activeRadius==="bl"?"transparent":L.theme.color_text_L1,L=>L.activeRadius==="br"?"transparent":L.theme.color_text_L1,L=>L.theme.color_btn_secondary_hover,L=>L.theme.color_btn_secondary_active,L=>L.theme.color_btn_secondary_active,L=>L.theme.color_btn_secondary_hover,L=>L.theme.color_btn_secondary_active,L=>L.theme.color_proto,$r,L=>L.theme.color_bg_border_02,L=>L.theme.color_proto,L=>L.theme.color_proto,L=>L.theme.color_proto,L=>L.theme.color_proto,L=>L.theme.color_proto),Jl=L=>typeof L!="number";class $l extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{setAll:!0,activeRadius:""}),(0,r.A)(this,"setElementRef",U=>this.$element=U),(0,r.A)(this,"setRadiusActive",U=>this.$radiusActiveRef=U),(0,r.A)(this,"handleChange",(U,ne)=>{const{onChange:me,selections:Ee,dispatch:Ue}=this.props;this.props.attr&&this.props.supAttr?me({value:U,attr:this.props.attr,dispatch:Ue,supAttr:this.props.supAttr,selections:Ee}):me({value:U,attr:ne,selections:Ee,dispatch:Ue})}),(0,r.A)(this,"setSetAllFromProps",()=>{const{borderRadius:U}=this.props;this.setState({setAll:!Jl(U)})}),(0,r.A)(this,"enableSetAll",()=>{if(this.state.setAll)return;const{radiusTL:U}=this.props.borderRadius;this.setState({activeRadius:""}),this.handleSetAll(U)}),(0,r.A)(this,"enableSetSeparately",()=>{this.state.setAll&&this.handleSetSeparatelyForOnce(this.props.borderRadius)}),(0,r.A)(this,"handleSetAll",U=>{const ne=parseInt(U)||0;if(!Jl(this.props.borderRadius)){const{radiusTL:me}=this.props.borderRadius;if(ne===me)return}this.handleChange(ne,"borderRadius")}),(0,r.A)(this,"handleSetSeparately",(U,ne)=>{const me=parseInt(U)||0,Ee=this.props.borderRadius;if(me===Ee[ne])return;const{radiusTL:Ue,radiusTR:at,radiusBR:Ht,radiusBL:xo}=Ee,Po={radiusTL:Ue,radiusTR:at,radiusBR:Ht,radiusBL:xo,[ne]:me};this.handleChange(Po,"borderRadius")}),(0,r.A)(this,"handleFocusSeparately",(U,ne)=>{if(this.setState({activeRadius:ne}),this.$radiusActiveRef){const me=this.$radiusActiveRef.querySelector(".radiusActiveIcon");me&&(me.classList.remove("animated"),window.requestAnimationFrame(()=>{me.classList.add("animated")}))}}),(0,r.A)(this,"handleSetSeparatelyForOnce",U=>{const ne={radiusTL:U,radiusTR:U,radiusBR:U,radiusBL:U};this.handleChange(ne,"borderRadius")}),(0,r.A)(this,"handleCancelActiveRadius",U=>{this.$element&&this.$element.contains(U.target)||this.setState({activeRadius:""})})}componentDidMount(){this.setSetAllFromProps()}componentDidUpdate(U){U.borderRadius!==this.props.borderRadius&&this.setSetAllFromProps()}render(){const{borderRadius:U,canSetSingleRadius:ne,show:me,max:Ee,placeholder:Ue,className:at}=this.props,{activeRadius:Ht,setAll:xo}=this.state;let Po,nn,is,Bn;return typeof U!="number"?{radiusTL:Po,radiusTR:nn,radiusBR:is,radiusBL:Bn}=this.props.borderRadius:(Po=this.props.borderRadius,nn=this.props.borderRadius,is=this.props.borderRadius,Bn=this.props.borderRadius),me?(0,a.jsxs)(Bl,{className:at,activeRadius:Ht,children:[(0,a.jsxs)("div",{className:f()("radius-set-controller",!ne&&"can-not-set-single"),children:[(0,a.jsx)(ae.P,{iconClassName:f()("set-all",{active:xo}),onClick:this.enableSetAll,name:"design/br_set_all",content:I18N.SettingPanel.radius,direction:"down",tagName:"SVGIcon"}),ne&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ae.P,{iconClassName:f()("set-separately",{active:!xo}),onClick:this.enableSetSeparately,name:"design/br_set_separately",content:I18N.SettingPanel.uni_radius,direction:"down",tagName:"SVGIcon"}),(0,a.jsx)("div",{ref:this.setRadiusActive,children:(0,a.jsx)(S.C,{name:"design/settingPanel/radius/active",className:f()("radiusActiveIcon",Ht)})})]})]}),(0,a.jsx)("div",{className:"separate-radius-input",children:xo?(0,a.jsx)(pt.A,{className:f()("set-all-input width-66",{placeholder:Ue}),min:0,max:Ee||9999,value:Ue?void 0:Po,disabled:!xo,isNotVerify:!!Ue,placeholder:Ue,onConfirm:this.handleSetAll}):(0,a.jsxs)("div",{className:"separate-set-area",ref:this.setElementRef,children:[(0,a.jsx)(pt.A,{className:"separate-input",attr:"radiusTL",min:0,max:9999,value:Po,onFocus:this.handleFocusSeparately,onConfirm:this.handleSetSeparately}),(0,a.jsx)(pt.A,{className:"separate-input",attr:"radiusTR",min:0,max:9999,value:nn,onFocus:this.handleFocusSeparately,onConfirm:this.handleSetSeparately}),(0,a.jsx)(pt.A,{className:"separate-input",attr:"radiusBL",min:0,max:9999,value:Bn,onFocus:this.handleFocusSeparately,onConfirm:this.handleSetSeparately}),(0,a.jsx)(pt.A,{className:"separate-input",attr:"radiusBR",min:0,max:9999,value:is,onFocus:this.handleFocusSeparately,onConfirm:this.handleSetSeparately}),Ht&&(0,a.jsx)(ji.A,{target:document,onClick:this.handleCancelActiveRadius})]})})]}):null}}class Rl extends p.PureComponent{constructor(U){super(U),(0,r.A)(this,"handleChange",(ne,me)=>{const{onChange:Ee,selections:Ue,dispatch:at}=this.props;Ee({value:ne,attr:me,selections:Ue,dispatch:at}),this.setState({fill:ne})}),(0,r.A)(this,"handleVisibleChanged",ne=>{var me;const{selections:Ee,onChange:Ue,dispatch:at}=this.props,xo={...(me=sdkStore.getHotItem(Ee[0]))==null||(me=me.hotAttr)==null?void 0:me.fill,fillIsVisible:ne};Ue({value:xo,attr:"fill",selections:Ee,dispatch:at}),this.setState({fill:xo})}),this.state={show:!0}}render(){const{show:U,pIsSolidColorOnly:ne,selections:me}=this.props,Ee=(0,Ze.i)(me.map(at=>{var Ht;return(Ht=sdkStore.getHotItem(at))==null?void 0:Ht.hotAttr}),"fill");if(!U)return null;const Ue={solid:I18N.SettingPanel.fill,linearGradient:I18N.SettingPanel.linear_gradient,radialGradient:I18N.SettingPanel.radial_gradient};return(0,a.jsxs)("div",{className:"appearance-line color-line height-32 margin-left-n6",children:[(0,a.jsx)(Ct.A,{attr:"isVisible",className:Ct.p,isChecked:Ee==null?void 0:Ee.fillIsVisible,onChange:at=>this.handleVisibleChanged(at)}),(0,a.jsx)(Qn.R_,{className:Qn.Fw,attr:"fill",color:Ee,pIsSolidColorOnly:!!ne,onChange:this.handleChange}),(0,a.jsx)("label",{className:"left-label background-label",children:Ue[Ee==null?void 0:Ee.fill]})]})}}(0,r.A)(Rl,"defaultProps",{show:!0});class Ic extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleChange",(U,ne)=>{const{onChange:me,selections:Ee,dispatch:Ue,supAttr:at}=this.props;me({value:U,attr:ne,selections:Ee,dispatch:Ue,supAttr:at})})}render(){const{isBackgroundVisible:U,backgroundColor:ne,backgroundColorAttr:me,isVisibleAttr:Ee}=this.props,Ue={solid:I18N.SettingPanel.fill,linearGradient:I18N.SettingPanel.linear_gradient,radialGradient:I18N.SettingPanel.radial_gradient};return(0,a.jsxs)("div",{className:"appearance-line color-line height-32 margin-left-n6",children:[(0,a.jsx)(Ct.A,{className:Ct.p,attr:Ee,isChecked:U,onChange:this.handleChange}),(0,a.jsx)(Qn.R_,{className:Qn.Fw,attr:me,color:ne,onChange:this.handleChange}),(0,a.jsx)("label",{className:"left-label background-label",children:Ue.solid})]})}}var Sl=e(38550),ql=e(49133);const uc=u.Ay.div.withConfig({displayName:"styles__StyledMenu",componentId:"sc-1mdqnec-0"})(["width:112px;height:112px;display:flex;align-items:center;justify-content:center;background:",";border-radius:8px;box-shadow:0 2px 10px rgba(0,0,0,0.12);border:1px solid ",";.wrapper{width:78px;height:78px;display:flex;align-items:center;justify-content:center;flex-direction:column;.border-top-width,.border-bottom-width{position:relative;width:36px;height:14px;background:",';cursor:pointer;&.border-line{&::after{content:" ";display:block;position:absolute;top:7px;left:-15px;height:2px;width:66px;background:',";}}}.border-left-width,.border-right-width{position:relative;height:36px;width:14px;background:",';cursor:pointer;&.border-line{&::after{content:" ";display:block;position:absolute;top:-14px;left:6px;height:66px;width:2px;background:',";}}}.center-wrapper{width:100%;display:flex;justify-content:space-between;margin:7px 0;}}"],L=>L.theme.color_background_white_modal,L=>L.theme.color_bg_border_02,L=>L.theme.color_btn_secondary_active,L=>L.theme.color_text_L2,L=>L.theme.color_btn_secondary_active,L=>L.theme.color_text_L2);class mc extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"OPTIONS_MENU_OPENER",(0,a.jsx)(h.Q,{className:"menu-opener widthSettings",icon:(0,a.jsx)(S.C,{name:"setting_panel/general/border_width",className:"options-icon"}),content:I18N.SettingPanel.single_side_border,direction:"down"})),(0,r.A)(this,"setComponentRef",U=>this.workspaceDropdown=U)}render(){const{borderVisibility:U,handleChange:ne}=this.props,{OPTIONS_MENU_OPENER:me}=this;return(0,a.jsx)(po.A,{menuX:"right",menuY:"bottom",ref:this.setComponentRef,className:"border-width-menu-opener",opener:me,menuClassName:"border-width-menu",menu:(0,a.jsx)(ld,{handleChange:ne,borderVisibility:U})})}}const ld=(0,p.memo)(L=>{let{handleChange:U,borderVisibility:ne}=L;const{bdrIsVisibleT:me,bdrIsVisibleR:Ee,bdrIsVisibleB:Ue,bdrIsVisibleL:at}=ne;return(0,a.jsx)(uc,{children:(0,a.jsxs)("div",{className:"wrapper",children:[(0,a.jsx)("span",{"data-border-side":"T",className:f()("border-top-width",{"border-line":me}),onClick:U}),(0,a.jsxs)("div",{className:"center-wrapper",children:[(0,a.jsx)("span",{"data-border-side":"L",className:f()("border-left-width",{"border-line":at}),onClick:U}),(0,a.jsx)("span",{"data-border-side":"R",className:f()("border-right-width",{"border-line":Ee}),onClick:U})]}),(0,a.jsx)("span",{"data-border-side":"B",className:f()("border-bottom-width",{"border-line":Ue}),onClick:U})]})})});var Gc=e(78022);const ar=u.Ay.div.withConfig({displayName:"styles__StylesBorderOpener",componentId:"sc-1t70v2k-0"})(["display:flex;flex-direction:column;transition:height 200ms ease-in-out 0s;height:auto;.appearance-line.border-open{min-height:16px;margin-left:-6px;}.border-collapse-body{display:flex;align-items:center;color:#415058;transition:height 200ms ease-in-out 0s;overflow:hidden;margin-left:28px;> label{width:50px;height:22px;}.border-select-size-warp{margin-right:6px;}.border-select-size{width:83px;height:28px;border:1px solid ",";.border-style{width:12px;height:12px;}.radio-option{&.active{.border-style{border-color:",";}}}button{.border-line{color:",";}}}.border-width-input{width:67px;height:28px;margin-right:6px;}.border-width-menu-opener{width:24px;height:24px;&.is-open{.widthSettings{background-color:",";}}}}"],L=>L.theme.color_bg_border_02,L=>L.theme.color_proto,L=>L.theme.color_text_L1,L=>L.theme.color_btn_secondary_active);class ec extends p.PureComponent{constructor(U){super(U),(0,r.A)(this,"handleBorderVisibilityChanged",me=>{const{onChange:Ee,selections:Ue,dispatch:at}=this.props,{borderVisibility:Ht}=this.state,{borderSide:xo}=me.currentTarget.dataset,Po={...Ht,["bdrIsVisible"+xo]:!Ht["bdrIsVisible"+xo]};Ee({value:Po,attr:"borderVisibility",selections:Ue,dispatch:at}),this.setState({borderVisibility:Po})}),(0,r.A)(this,"handleBorderChanged",(me,Ee)=>{const{onChange:Ue,selections:at,dispatch:Ht}=this.props,{border:xo}=this.state,Po={...xo,[Ee]:Ee==="bdrWidth"?parseInt(me):me};Ue({value:Po,attr:"border",selections:at,dispatch:Ht}),this.setState({border:Po})});const ne=U.selections.map(me=>{var Ee;return(Ee=sdkStore.getHotItem(me))==null?void 0:Ee.hotAttr});this.state={borderVisibility:(0,Ze.i)(ne,"borderVisibility")||Sl.A.border_visibility,border:(0,Ze.i)(ne,"border")||Sl.A.border}}componentDidUpdate(U,ne,me){if(U.selections!==this.props.selections){const Ee=this.props.selections.map(Ue=>{var at;return(at=sdkStore.getHotItem(Ue))==null?void 0:at.hotAttr});this.setState({borderVisibility:(0,Ze.i)(Ee,"borderVisibility")||Sl.A.border_visibility,border:(0,Ze.i)(Ee,"border")||Sl.A.border})}}render(){const{canBorderWidth:U,canBorderStyle:ne,canSetBorderVisibility:me,colorButtonAttr:Ee}=this.props,{border:Ue,borderVisibility:at}=this.state,Ht=!ne&&!U;return(0,a.jsxs)(ar,{className:f()({"is-open":Ue.bdrIsVisible&&!Ht}),children:[(0,a.jsxs)("div",{className:"appearance-line border-open height-32",children:[(0,a.jsx)(Ct.A,{className:Ct.p,attr:"bdrIsVisible",isChecked:Ue.bdrIsVisible,onChange:xo=>this.handleBorderChanged(xo,"bdrIsVisible")}),(0,a.jsx)(Qn.R_,{className:Qn.Fw,attr:Ee,color:Ue.bdrColor,onChange:this.handleBorderChanged}),(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.stroke})]}),(0,a.jsxs)("div",{className:f()("border-collapse-body height-32 margin-right-n6",{"is-open":Ue.bdrIsVisible&&!Ht}),children:[(0,a.jsx)(Gc.v,{}),ne&&(0,a.jsx)("div",{className:"border-select-size-warp",children:(0,a.jsx)(ri.mq,{className:"border-select-size",attr:"bdrStyle",menuClassName:"border_style_select_menu",optionList:(0,ql.se)(),value:Ue.bdrStyle,onChange:this.handleBorderChanged})}),U&&(0,a.jsx)(pt.A,{attr:"bdrWidth",value:Ue.bdrWidth,className:"border-width-input",menuClassName:"border_width_select_menu",optionList:ql.xq,onConfirm:this.handleBorderChanged}),me&&(0,a.jsx)(mc,{handleChange:this.handleBorderVisibilityChanged,borderVisibility:at})]})]})}}(0,r.A)(ec,"defaultProps",{colorButtonAttr:"bdrColor"});const gd=u.Ay.div.withConfig({displayName:"styles__StylesShadowCollapseBody",componentId:"sc-1c1xl9f-0"})(["height:0;transition:height 200ms ease-in-out 0s;overflow:hidden;&.is-open{height:auto;}.shadow-line{width:180px;margin-left:28px;height:32px;display:flex;align-items:center;.shadow-item{height:28px;&:not(.is-active){border-color:",";}&.is-active{border-left:1px solid ",";&:not(:first-child){border-left:1px solid ",";}}&:first-child{border-radius:4px 0 0 4px;&:hover{border-color:",";}}&:not(:first-child){border-radius:0;border-left:1px solid transparent;margin-left:-1px;&:not(&.is-disabled):hover{border-color:",";border-left:1px solid ",";}}&:last-child{border-radius:0 4px 4px 0;}}}.shadow-title{width:180px;height:24px;display:flex;margin-left:28px;span{flex:1;padding-left:6px;color:",";font-size:12px;}}"],L=>L.theme.color_bg_border_02,L=>L.theme.color_proto,L=>L.theme.color_proto,L=>L.theme.color_proto,L=>L.theme.color_proto,L=>L.theme.color_proto,L=>L.theme.color_text_L3),Yc=()=>null,_c=(L,U)=>{const ne=L==null?void 0:L.type;if(ne==="box_shadow"){var me;if(((me=U.hotAttr)==null?void 0:me.type)===D.x.WRichText)return{...L,spreadRadius:0,type:"text_shadow"};if(!L.spreadRadius)return{...L,spreadRadius:0}}else if(ne==="text_shadow"){var Ee;if(((Ee=U.hotAttr)==null?void 0:Ee.type)!==D.x.WRichText)return{...L,spreadRadius:L.spreadRadius||0,type:"box_shadow"}}return L};class Zc extends p.PureComponent{constructor(U){super(U),(0,r.A)(this,"handleShadowChanged",(me,Ee)=>{const{attr:Ue,onChange:at,selections:Ht,dispatch:xo}=this.props,{shadowValue:Po}=this.state,nn={...Po,type:Ue};nn[Ee]=me,Ht.length>1?Ht.forEach(is=>{const Bn=sdkStore.getHotItem(is),$s=_c({...nn},Bn);at({value:$s,attr:"shadow",selections:[is],dispatch:xo})}):at({value:nn,attr:"shadow",selections:Ht,dispatch:xo}),this.setState({shadowValue:nn})});const ne=U.selections.map(me=>{var Ee;return(Ee=sdkStore.getHotItem(me))==null?void 0:Ee.hotAttr});this.state={shadowValue:(0,Ze.i)(ne,"shadow")||(U.attr==="text_shadow"?Sl.A.text_shadow:Sl.A.box_shadow)}}componentDidUpdate(U,ne,me){if(U.selections!==this.props.selections){const Ee=this.props.selections.map(Ue=>{var at;return(at=sdkStore.getHotItem(Ue))==null?void 0:at.hotAttr});this.setState({shadowValue:(0,Ze.i)(Ee,"shadow")||(this.props.attr==="text_shadow"?Sl.A.text_shadow:Sl.A.box_shadow)})}}render(){const{attr:U}=this.props,{shadowValue:ne}=this.state;return(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"appearance-line height-32 margin-left-n6",children:[(0,a.jsx)(Ct.A,{attr:"shadowIsVisible",className:"style-check "+Ct.p,isChecked:ne.shadowIsVisible,onChange:this.handleShadowChanged}),(0,a.jsx)(Qn.R_,{className:Qn.Fw,attr:"shadowColor",color:ne.shadowColor,onChange:this.handleShadowChanged}),(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.shadows})]}),(0,a.jsxs)(gd,{className:f()({"is-open":ne.shadowIsVisible}),children:[(0,a.jsxs)("section",{className:"shadow-line",children:[(0,a.jsx)(pt.A,{className:"shadow-item",min:-99,max:99,attr:"offsetX",value:ne.offsetX,onConfirm:this.handleShadowChanged}),(0,a.jsx)(pt.A,{className:"shadow-item",min:-99,max:99,attr:"offsetY",value:ne.offsetY,onConfirm:this.handleShadowChanged}),(0,a.jsx)(pt.A,{className:"shadow-item",min:0,max:99,attr:"blurRadius",value:ne.blurRadius,onConfirm:this.handleShadowChanged}),(0,a.jsx)(pt.A,{className:"shadow-item",min:-99,max:99,disabled:U==="text_shadow",attr:"spreadRadius",value:ne.spreadRadius,onConfirm:U==="text_shadow"?Yc:this.handleShadowChanged})]}),(0,a.jsxs)("div",{className:"shadow-title",children:[(0,a.jsx)("span",{children:"X"}),(0,a.jsx)("span",{children:"Y"}),(0,a.jsx)("span",{children:I18N.SettingPanel.blur}),(0,a.jsx)("span",{children:I18N.SettingPanel.spread})]})]})]})}}const i0=u.Ay.div.withConfig({displayName:"styles__StylesArrowSetting",componentId:"sc-n786y5-0"})(['.color{label{margin-right:8px;}[type="color-btn"]{margin:0;}}.border{.border-select-size{margin-right:6px;button{.border-line{color:',";}}}.WorkspaceSelect,.WorkspaceInputNumber{width:83px;border:1px solid ",";}}.point{.arrow-setting-item{&.firstSelect,&.endSelect{.WorkspaceSelect{width:83px;border:1px solid ",";button{width:55px;justify-content:flex-start;.svg-icon{width:38px;height:10px;}}}}&.firstSelect{margin-right:6px;}&.endSelect{button{.svg-icon{transform:rotate(180deg);}}}}}.border,.point{display:flex;justify-content:space-between;.right-content{width:172px;display:flex;align-items:center;}}.arrowSettingLine{height:1px;width:calc(100% + 14px);background:",";margin-bottom:16px;}.elbow-type{ol{margin-left:12px;}.radio-option{border-radius:4px;color:",";.move-cube.active{background:",";}}.svg-icon{width:24px;height:24px;}}"],L=>L.theme.color_text_L1,L=>L.theme.color_bg_border_02,L=>L.theme.color_bg_border_02,L=>L.theme.color_bg_border_02,L=>L.theme.color_text_L1,L=>L.theme.color_btn_secondary_active);var Mc=e(13808),Id=e(37401),Tc=e(2285);const jd=["2","5","7","9"],mp=[1,2,3,4,5,6,7,8,9],H0=()=>[{label:(0,a.jsx)(S.C,{name:"setting_panel/elbow_type_rounded"}),value:"rounded",tip_title:I18N.SettingPanel.elbow_type_rounded},{label:(0,a.jsx)(S.C,{name:"setting_panel/elbow_type_sharp"}),value:"sharp",tip_title:I18N.SettingPanel.elbow_type_sharp},{label:(0,a.jsx)(S.C,{name:"setting_panel/elbow_type_straight"}),value:"straight",tip_title:I18N.SettingPanel.elbow_type_straight},{label:(0,a.jsx)(S.C,{name:"setting_panel/elbow_type_curve"}),value:"curve",tip_title:I18N.SettingPanel.elbow_type_curve}];class K0 extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"INPUT_TYPE_LIST",[{label:I18N.SettingPanel.none,value:"0"}].concat(Mc.Qb.map(U=>{let{settingIconName:ne,value:me}=U;return{label:(0,a.jsx)(S.C,{className:"reverse",name:ne}),value:String(me)}}))),(0,r.A)(this,"onChangeProxy",(U,ne)=>{const{onChange:me,selections:Ee,supAttr:Ue,dispatch:at}=this.props;me({value:ne,attr:U,selections:Ee,dispatch:at,supAttr:Ue}),(0,Tc.E)(U,ne)}),(0,r.A)(this,"handleChangeBc",(U,ne)=>{const{arrowStroke:me}=this.props;this.onChangeProxy("arrowStroke",{...me,[ne]:U})}),(0,r.A)(this,"handleChangeArrowType",(U,ne)=>{const{arrowTypes:me,anchorFromType:Ee,anchorToType:Ue}=this.props,at=[...me];ne===Ee&&(at[0]=Number(U)),ne===Ue&&(at[1]=Number(U));const Ht=at;(ne==="startAnchor"||ne==="endAnchor")&&(Ht[0]=Id.pt[at[0]],Ht[1]=Id.qs[at[1]]),this.onChangeProxy(Ee,Ht[0]),this.onChangeProxy(Ue,Ht[1])}),(0,r.A)(this,"handleChangeElbowType",U=>{const{dispatch:ne}=this.props;ne({type:"entry:elbow:type:transform",payload:{nextType:U}}),(0,Tc.E)("elbowType",U)})}render(){const{arrowTypes:U,arrowStroke:ne,reverseArrow:me,anchorFromType:Ee,anchorToType:Ue,supAttr:at,elbow:Ht}=this.props,{INPUT_TYPE_LIST:xo}=this,Po=at!=="elbow"?xo:xo.filter($s=>!jd.includes($s.value)),nn=(0,a.jsx)("div",{className:"arrow-setting-item",children:(0,a.jsx)(pt.A,{attr:"bdrWidth",className:"strokeWidth",menuClassName:"arrow-setting-menu",value:ne.bdrWidth,min:1,optionList:mp,onConfirm:this.handleChangeBc,showCaretIcon:!0})}),is=(0,a.jsx)("div",{className:"arrow-setting-item "+(me?"endSelect":"firstSelect"),children:(0,a.jsx)(ri.mq,{className:"select",attr:Ee,optionList:Po,menuClassName:"arrow_type_select_menu",value:String(U[0]),onChange:this.handleChangeArrowType})}),Bn=(0,a.jsx)("div",{className:"arrow-setting-item "+(me?"firstSelect":"endSelect"),children:(0,a.jsx)(ri.mq,{className:"select arrow_type_end",attr:Ue,optionList:Po,menuClassName:"arrow_type_select_menu arrow_type_select_menu_end",value:String(U[1]),onChange:this.handleChangeArrowType})});return(0,a.jsxs)(i0,{children:[(0,a.jsxs)("div",{className:"appearance-line color height-32",children:[(0,a.jsx)("label",{className:"color-title",children:I18N.SettingPanel.color}),(0,a.jsx)(Qn.R_,{className:Qn.Fw,attr:"bdrColor",color:ne.bdrColor,onChange:this.handleChangeBc})]}),(0,a.jsxs)("div",{className:f()("appearance-line border height-32",{"margin-right-n6":ENV.IS_WONDER_SHARE}),children:[(0,a.jsx)("label",{className:"border-title",children:I18N.SettingPanel.stroke2}),(0,a.jsxs)("div",{className:"right-content",children:[(0,a.jsx)(Gc.v,{}),(0,a.jsx)(ri.mq,{className:f()("border-select-size arrow-setting-item"),attr:"bdrStyle",menuClassName:"border_style_select_menu",optionList:(0,ql.se)(),value:ne.bdrStyle,onChange:this.handleChangeBc}),nn]})]}),(0,a.jsxs)("div",{className:f()("appearance-line point height-32",{"margin-right-n6":ENV.IS_WONDER_SHARE}),children:[(0,a.jsx)(Gc.Y,{}),(0,a.jsx)("label",{className:"point-title",children:I18N.SettingPanel.point}),(0,a.jsx)("div",{className:"right-content",children:me?(0,a.jsxs)(a.Fragment,{children:[Bn,is]}):(0,a.jsxs)(a.Fragment,{children:[is,Bn]})})]}),at==="elbow"&&(0,a.jsxs)("div",{className:"appearance-line elbow-type height-32",children:[(0,a.jsx)("span",{children:I18N.SettingPanel.type}),(0,a.jsx)(es.A,{options:H0(),value:Ht.elbowType,handleChange:this.handleChangeElbowType,isLongTimeHover:!0})]})]})}}const S0=u.Ay.div.withConfig({displayName:"styles__StyledToolTipArrowSettingPanel",componentId:"sc-6z4igd-0"})(["&.tooltip-settings{padding-top:10px;margin-top:10px;border-top:1px solid ",";.line{display:flex;align-items:center;.tooltip-size{&:lang(en){width:111px;}.WorkspaceSelect{width:100%;}}}}"],L=>L.theme.color_bg_border_01);class Ch extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"TOOTIP_DIRECTION_LIST",[{label:I18N.SettingPanel.top,value:"top"},{label:I18N.SettingPanel.left,value:"left"},{label:I18N.SettingPanel.right,value:"right"},{label:I18N.SettingPanel.down,value:"bottom"}]),(0,r.A)(this,"handleChange",(U,ne)=>{const{selections:me,onChange:Ee,dispatch:Ue}=this.props;Ee({value:U,attr:ne,dispatch:Ue,supAttr:"tooltip",selections:me})}),(0,r.A)(this,"handleIntChange",(U,ne)=>{const me=parseInt(U)||0;this.handleChange(me,ne)})}render(){const{TOOTIP_DIRECTION_LIST:U}=this,{tooltip:ne}=this.props,{placement:me,offset:Ee,arrowSize:Ue}=ne;return(0,a.jsxs)(S0,{className:"tooltip-settings",children:[(0,a.jsxs)("div",{className:"line height-32",children:[(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel._ttPlacement}),(0,a.jsx)("div",{className:"right-content tooltip-size",children:(0,a.jsx)(ri.mq,{className:"select",attr:"placement",menuClassName:ri.it,optionList:U,value:me,onChange:this.handleChange})})]}),(0,a.jsxs)("div",{className:"line height-32",children:[(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel._ttOffset}),(0,a.jsx)("div",{className:"right-content tooltip-size",children:(0,a.jsx)(pt.A,{className:"width-66",attr:"offset",value:Ee,onConfirm:this.handleIntChange})})]}),(0,a.jsxs)("div",{className:"line height-32",children:[(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel._ttArrowSize}),(0,a.jsx)("div",{className:"right-content tooltip-size",children:(0,a.jsx)(pt.A,{className:"width-66",attr:"arrowSize",value:Ue,onConfirm:this.handleIntChange})})]})]})}}const a0=(0,p.memo)(L=>{let{textColor:U,supAttr:ne,selections:me,dispatch:Ee,onChange:Ue}=L;const at=(Ht,xo)=>{Ue({value:Ht,attr:xo,selections:me,dispatch:Ee,supAttr:ne})};return(0,a.jsxs)("div",{className:"line height-32",children:[(0,a.jsx)("label",{className:"left-label background-label",children:I18N.SettingPanel.text}),(0,a.jsx)("div",{className:"right-content",children:(0,a.jsx)("div",{className:"side",children:(0,a.jsx)(Qn.R_,{attr:"textColor",color:U,onChange:at})})})]})}),gp=(0,p.memo)(L=>{let{foreground:U,background:ne,dispatch:me,onChange:Ee,selections:Ue}=L;const at=(Ht,xo)=>{Ee({value:Ht,attr:xo,dispatch:me,supAttr:"qrCode",selections:Ue})};return(0,a.jsxs)("div",{className:"appearance-line qrcode-color height-32",children:[(0,a.jsxs)("div",{className:"foreground-color-setting",children:[(0,a.jsx)(Qn.R_,{className:Qn.Fw,attr:"foregroundColor",color:U.color,onChange:at}),(0,a.jsx)("label",{className:"left-label background-label",children:I18N.SettingPanel.foreground_color})]}),(0,a.jsxs)("div",{className:"background-color-setting",children:[(0,a.jsx)(Qn.R_,{className:Qn.Fw,attr:"backgroundColor",color:ne.color,onChange:at}),(0,a.jsx)("label",{className:"left-label background-label",children:I18N.SettingPanel.bg_color})]})]})}),Qd=[{label:"16",value:16},{label:"20",value:20},{label:"24",value:24},{label:"32",value:32},{label:"40",value:40},{label:"48",value:48},{label:"60",value:60},{label:"72",value:72}],Md=[{label:"8",value:8},{label:"12",value:12},{label:"16",value:16},{label:"24",value:24},{label:"32",value:32},{label:"40",value:40},{label:"52",value:52},{label:"64",value:64}];class Up extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleChange",(U,ne)=>{const{selections:me,onChange:Ee,dispatch:Ue}=this.props;let at=U;(ne==="sliderSize"||ne==="iconSize")&&(at=parseInt(at)||0),Ee({value:at,attr:ne,dispatch:Ue,supAttr:"digitalStepper",selections:me})})}render(){const{sliderSize:U,is:ne,iconColor:me}=this.props;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"line slider_size height-32",children:[(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.size}),(0,a.jsx)(pt.A,{attr:"sliderSize",min:0,max:72,value:U,optionList:Qd,onConfirm:this.handleChange})]}),(0,a.jsxs)("div",{className:"line slider_icon height-32",children:[(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.icon}),(0,a.jsx)(pt.A,{attr:"iconSize",min:0,max:64,value:ne,optionList:Md,onConfirm:this.handleChange}),(0,a.jsx)(Qn.R_,{className:Qn.Fw,attr:"iconColor",color:me,onChange:this.handleChange})]})]})}}const _r=(0,p.memo)(L=>{let{canIconSize:U,canSetIconColor:ne,is:me,fill:Ee,iconColor:Ue,iconColorAttr:at,selections:Ht,dispatch:xo,onChange:Po}=L;const nn=(Bn,$s)=>{const qs=parseInt(Bn)||0;Po({value:qs,attr:$s,dispatch:xo,selections:Ht})},is=Bn=>{Po({value:Bn,attr:at,dispatch:xo,selections:Ht}),at==="fill"&&Ue==="unset"&&Po({value:"rgba(16,16,16,1)",attr:"iconColor",dispatch:xo,supAttr:"iconData",selections:Ht})};return(0,a.jsxs)(a.Fragment,{children:[U&&(0,a.jsx)("div",{className:"line height-32",children:(0,a.jsxs)("div",{className:f()("tab-item-side","side"),children:[(0,a.jsx)("label",{children:I18N.SettingPanel.is}),(0,a.jsx)(pt.A,{attr:"is",min:0,value:me,onConfirm:nn})]})}),ne&&(0,a.jsxs)("div",{className:"line height-32",children:[(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.icon_color}),(0,a.jsxs)("div",{className:"right-content",children:[(0,a.jsx)("div",{className:"side",children:(0,a.jsx)(Qn.R_,{attr:at,color:Ee,onChange:is})}),(0,a.jsx)("div",{className:"side"}),(0,a.jsx)("div",{className:"side"})]})]})]})});class r0 extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleChange",(U,ne)=>{const{selections:me,onChange:Ee,dispatch:Ue}=this.props;Ee({value:U,attr:ne,dispatch:Ue,supAttr:"mobileTabBars",selections:me})})}render(){const{iconSize:U,iconColor:ne}=this.props;return(0,a.jsxs)("div",{className:"line font-setting height-32",children:[(0,a.jsx)("label",{className:"left-label text_kbd",children:I18N.SettingPanel.design.icon}),(0,a.jsx)(Gi.A,{attr:"iconSize",fontSize:U,handleChange:this.handleChange}),(0,a.jsx)(Qn.R_,{className:Qn.Fw,attr:"iconColor",color:ne,onChange:this.handleChange})]})}}const Hh=(0,p.memo)(L=>{let{kbdStyle:U,selections:ne,onChange:me,dispatch:Ee}=L;const Ue=[{label:I18N.SettingPanel.text_kbd,value:"text"},{label:I18N.SettingPanel.numeric_kbd,value:"numeric"}],at=(Ht,xo)=>{me({value:Ht,attr:xo,selections:ne,dispatch:Ee}),Ee({type:"entry:auto:show:hide:item"})};return(0,a.jsxs)("div",{className:"appearance-line keyboad-line",children:[(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.kbd_style}),(0,a.jsx)("div",{className:"right-content keyboard-size",children:(0,a.jsx)(ri.mq,{className:"select",attr:"numeric",optionList:Ue,value:U,onChange:at})})]})}),wh=(0,p.memo)(L=>{let{isChecked:U,selections:ne,onChange:me,dispatch:Ee}=L;const Ue=(at,Ht)=>{me({value:at,attr:Ht,selections:ne,dispatch:Ee})};return(0,a.jsx)("div",{className:"line",style:{marginBottom:10},children:(0,a.jsx)(Ct.A,{attr:"isChecked",label:I18N.SettingPanel.checked,isChecked:U,onChange:Ue})})});var ul=e(37679),ui=e(54225);const Sh=u.Ay.ol.withConfig({displayName:"style__StyledNodeStatus",componentId:"sc-q15ums-0"})(["div{display:flex;align-items:center;height:32px;.node-input-number{width:155px;margin-left:26px;}}"]);class zp extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleChangeNodeHeight",U=>{const{onChange:ne,selections:me,dispatch:Ee}=this.props;ne({value:U,attr:"nodeHeight",supAttr:"tree",selections:me,dispatch:Ee})}),(0,r.A)(this,"handleChangeNodeIndent",U=>{const{onChange:ne,selections:me,dispatch:Ee}=this.props;ne({value:U,attr:"nodeIndent",supAttr:"tree",selections:me,dispatch:Ee})})}render(){const{tree:U}=this.props;return(0,a.jsxs)(Sh,{children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"leftLabel",children:I18N.SettingPanel.height}),(0,a.jsx)(pt.A,{className:"node-input-number",attr:"nodeHeight",value:U.nodeHeight,min:1,max:9999,optionList:A0,onConfirm:this.handleChangeNodeHeight})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"leftLabel",children:"\u7F29\u8FDB"}),(0,a.jsx)(pt.A,{className:"node-input-number",attr:"nodeIndent",value:U.nodeIndent,min:1,max:9999,optionList:A0,onConfirm:this.handleChangeNodeIndent})]})]})}}const A0=[{label:32,value:32,shortcutKey:""},{label:36,value:36,shortcutKey:""},{label:40,value:40,shortcutKey:""},{label:44,value:44,shortcutKey:""},{label:48,value:48,shortcutKey:""},{label:56,value:56,shortcutKey:""},{label:64,value:64,shortcutKey:""},{label:72,value:72,shortcutKey:""}];var ur=e(45309);const ic=L=>{let{value:U,attr:ne,dispatch:me,supAttr:Ee,selections:Ue}=L;(0,bi.c)({value:U,attr:ne,dispatch:me,supAttr:Ee,selections:Ue}),me({type:"entry:auto:show:hide:item"})},Wp=L=>{let{value:U,attr:ne,dispatch:me,selections:Ee}=L;const Ue=Ee.map(at=>{if(sdkStore.isTrashed(at))return null;const Ht=sdkStore.getHotItem(at);return Ht?{key:at,hotAttr:{[ne]:U,...D.Q.USE_CLIP_TEXT.includes(Ht.hotAttr.type)&&Ht.hotAttr.richTextV1&&!Ht.hotAttr.richTextV1.isClipText&&{richTextMetric:(0,ur.Ro)({...Ht.hotAttr,[ne]:U})}}}:null}).filter(at=>!!at);me({type:"entry:widget:change",payload:{flatChgList:Ue}}),me({type:"entry:auto:show:hide:item"})},fp=L=>{let{value:U,dispatch:ne}=L;ne({type:"entry:vector:update:radius",payload:{radius:U}})},Yl={component:$l,params:{canSetSingleRadius:!0},getter:[ul.pQ[ui.z.BorderRadiusPanel][R.m9]],setter:{onChange:ic}},G0={...Yl,getter:[ul.pQ[ui.z.BorderRadiusPanel][R.m9],ul.pQ[ui.z.BorderRadiusPanel][D.x.WImage]]},Al={...Yl,getter:[ul.pQ[ui.z.BorderRadiusPanel][D.x.WPolygon]],params:{canSetSingleRadius:!1,supAttr:"polygon",attr:"cornerRadius"}},Y0={...Yl,getter:[ul.pQ[ui.z.BorderRadiusPanel][D.x.WStar]],params:{canSetSingleRadius:!1,supAttr:"star",attr:"cornerRadius"}},I0={...Yl,params:{canSetSingleRadius:!1}},_l={...I0,params:{canSetSingleRadius:!1,max:100},getter:[ul.pQ[ui.z.BorderRadiusPanel][D.x.WVector]],setter:{onChange:fp}},gl=function(L){return L===void 0&&(L="new"),{component:Rl,params:{bgColorText:"fill"},getter:[ul.pQ[ui.z.FillPanel][L]],setter:{onChange:ic}}},Vl={component:Ic,params:{bgColorText:"fill"},getter:[ul.pQ[ui.z.FillPanel].segmentedControl],setter:{onChange:ic}},fd={component:ec,params:{canSetBorderVisibility:!0,canBorderWidth:!0,canBorderStyle:!0,colorButtonAttr:"bdrColor"},getter:[ul.pQ[ui.z.BorderPanel][R.m9]],setter:{onChange:Wp}},yd={...fd,params:{canSetBorderVisibility:!1,canBorderWidth:!0,canBorderStyle:!0,colorButtonAttr:"bdrColor"}},M0={component:zp,params:{},getter:[L=>{let{selectedTrees:U}=L;const ne=U.map(Ee=>Ee.widget);return{tree:(0,Ze.i)(ne,"tree")}}],setter:{onChange:ic}},Fr={...fd,params:{canSetBorderVisibility:!1,canBorderWidth:!0,canBorderStyle:!0,colorButtonAttr:"bdrColor"}},Vp={...fd,params:{canSetBorderVisibility:!1,canBorderWidth:!0,canBorderStyle:!1}},Ah={...fd,params:{canSetBorderVisibility:!0,canBorderWidth:!1,canBorderStyle:!1}},Z0={...fd,params:{canSetBorderVisibility:!1,canBorderWidth:!1,canBorderStyle:!0}},Zl={component:Zc,params:{type:"box",attr:"box_shadow"},getter:[ul.pQ[ui.z.BoxShadowsPanel][R.m9]],setter:{onChange:ic}},yp={component:Zc,params:{type:"svg",attr:"box_shadow"},getter:[ul.pQ[ui.z.BoxShadowsPanel][R.m9]],setter:{onChange:ic}},xp={component:Zc,params:{type:"text",attr:"text_shadow"},getter:[ul.pQ[ui.z.TextShadowsPanel][R.m9]],setter:{onChange:ic}},vp={component:K0,params:{},getter:[ul.pQ[ui.z.ArrowSettingPanel][R.m9]],setter:{onChange:ic}},Od={component:K0,params:{},getter:[ul.pQ[ui.z.ArrowSettingPanel][D.x.WElbow]],setter:{onChange:ic}},Wc={component:Ch,params:{},getter:[ul.pQ[ui.z.ToolTipArrowSettingPanel][R.m9]],setter:{onChange:ic}},gc={component:a0,params:{},getter:[ul.pQ[ui.z.TextStatusBarPanel][R.m9]],setter:{onChange:ic}},Fd={component:gp,params:{},getter:[ul.pQ[ui.z.QRCodeSettingPanel][R.m9]],setter:{onChange:ic}},il={component:Up,params:{},getter:[ul.pQ[ui.z.DigitalStepperPanel][R.m9]],setter:{onChange:ic}},l0={component:_r,params:{canSetIcon:!0,canIconSize:!1,canSetIconColor:!0,isSvgIconPath:!0,iconColorAttr:"fill"},getter:[ul.pQ[ui.z.IconSettingsPanel][R.m9]],setter:{onChange:ic}},Xc={...l0,getter:[ul.pQ[ui.z.IconSettingsPanel].old],params:{canSetIcon:!0,canIconSize:!0,canSetIconColor:!0,isSvgIconPath:!1,iconColorAttr:"tc"}},Td={component:r0,params:{},getter:[ul.pQ[ui.z.MobileTabBarsIconPanel][R.m9]],setter:{onChange:ic}},Hp={component:Hh,params:{},getter:[ul.pQ[ui.z.UnifiedKeyboardPanel][R.m9]],setter:{onChange:ic}},bp={component:wh,params:{},getter:[ul.pQ[ui.z.CheckPanel][R.m9]],setter:{onChange:ic}},X0=[[Yl,ui.z.BorderRadiusPanel],[gl(),ui.z.FillPanel],[fd,ui.z.BorderPanel],[Zl,ui.z.BoxShadowsPanel]],Kp=[[I0,ui.z.BorderRadiusPanel],[gl(),ui.z.FillPanel],[yd,ui.z.BorderPanel],[Zl,ui.z.BoxShadowsPanel]],Gp=[[Yl,ui.z.BorderRadiusPanel],[gl(),ui.z.FillPanel],[yd,ui.z.BorderPanel],[Zl,ui.z.BoxShadowsPanel]],Jd=[[Yl,ui.z.BorderRadiusPanel],[gl(),ui.z.FillPanel],[Fr,ui.z.BorderPanel],[Zl,ui.z.BoxShadowsPanel]],c0=[[gl(),ui.z.FillPanel]],Ks=[[Yl,ui.z.BorderRadiusPanel],[Zl,ui.z.BoxShadowsPanel]],Hl=[[Yl,ui.z.BorderRadiusPanel],[gl(),ui.z.FillPanel],[Vp,ui.z.BorderPanel],[Zl,ui.z.BoxShadowsPanel],[Wc,ui.z.ToolTipArrowSettingPanel]],fr=[[bp,ui.z.CheckPanel]],fc=[[Al,ui.z.BorderRadiusPanel],[gl(),ui.z.FillPanel],[Fr,ui.z.BorderPanel],[Zl,ui.z.BoxShadowsPanel]],Ec=[[Y0,ui.z.BorderRadiusPanel],[gl(),ui.z.FillPanel],[Fr,ui.z.BorderPanel],[Zl,ui.z.BoxShadowsPanel]],_i=[[Yl,ui.z.BorderRadiusPanel],[gl(),ui.z.FillPanel],[fd,ui.z.BorderPanel],[Zl,ui.z.BoxShadowsPanel]],yc=[[G0,ui.z.BorderRadiusPanel],[gl(),ui.z.FillPanel],[Fr,ui.z.BorderPanel],[Zl,ui.z.BoxShadowsPanel]],T0=[[gc,ui.z.TextStatusBarPanel],[gl(D.x.WIphoneXSB),ui.z.FillPanel]],Qc={[D.x.WImage]:yc,[D.x.WPlaceholder]:[[Yl,ui.z.BorderRadiusPanel],[gl(),ui.z.FillPanel],[Fr,ui.z.BorderPanel],[Zl,ui.z.BoxShadowsPanel]],[D.x.WDropMenu]:Jd,[D.x.WTriangleTL]:c0,[D.x.WTriangleB]:c0,[D.x.WMSelect]:Jd,[D.x.WAudio]:Ks,[D.x.WVideo]:Ks,[D.x.WMTooltip]:Hl,[D.x.WOval]:[[gl(),ui.z.FillPanel],[Fr,ui.z.BorderPanel],[Zl,ui.z.BoxShadowsPanel]],[D.x.WRect]:[[Yl,ui.z.BorderRadiusPanel],[gl(),ui.z.FillPanel],[fd,ui.z.BorderPanel],[Zl,ui.z.BoxShadowsPanel]],[D.x.Canvas]:[[gl("solidFillOnly"),ui.z.FillPanel]],[D.x.CanvasAsOverlay]:[[Yl,ui.z.BorderRadiusPanel],[gl(),ui.z.FillPanel],[fd,ui.z.BorderPanel],[Zl,ui.z.BoxShadowsPanel]],[D.x.WRichText]:[[xp,ui.z.TextShadowsPanel]],[D.x.WLine]:[[Fr,ui.z.BorderPanel],[yp,ui.z.BoxShadowsPanel]],[D.x.WVe]:[[Z0,ui.z.BorderPanel]],[D.x.WArrow]:[[vp,ui.z.ArrowSettingPanel],[Zl,ui.z.BoxShadowsPanel]],[D.x.WIphoneXSB]:T0,[D.x.WIphoneSB]:T0,[D.x.WAndroidSB]:T0,[D.x.WMTextInput]:X0,[D.x.WMTextArea]:X0,[D.x.WQRCode]:[[Fd,ui.z.QRCodeSettingPanel]],[D.x.WCollapse]:[[Yl,ui.z.BorderRadiusPanel],[Fr,ui.z.BorderPanel]],[D.x.WSegmentedControl]:[[Yl,ui.z.BorderRadiusPanel],[Vl,ui.z.FillPanel],[Fr,ui.z.BorderPanel]],[D.x.WPaginationMobile]:[[Yl,ui.z.BorderRadiusPanel],[gl(),ui.z.FillPanel],[Fr,ui.z.BorderPanel]],[D.x.WPaginationWeb]:[[Yl,ui.z.BorderRadiusPanel],[gl(),ui.z.FillPanel],[Fr,ui.z.BorderPanel]],[D.x.WDigitalStepper]:[[Yl,ui.z.BorderRadiusPanel],[il,ui.z.DigitalStepperPanel],[gl(),ui.z.FillPanel],[Fr,ui.z.BorderPanel]],[D.x.WIcon]:[[Yl,ui.z.BorderRadiusPanel],[l0,ui.z.SVGIconPathSettings],[Fr,ui.z.BorderPanel],[xp,ui.z.TextShadowsPanel]],[D.x.WTabItem]:[[Xc,ui.z.IconPathSettings],[Zl,ui.z.BoxShadowsPanel]],[D.x.WMobileTabBars]:[[gl(),ui.z.FillPanel],[Ah,ui.z.BorderPanel],[Td,ui.z.MobileTabBarsIconPanel]],[D.x.WUnifiedKeyboard]:[[Hp,ui.z.UnifiedKeyboardPanel]],[D.x.WSearchBar]:[[gl(),ui.z.FillPanel],[Fr,ui.z.BorderPanel],[Zl,ui.z.BoxShadowsPanel]],[D.x.WIosCB]:fr,[D.x.WAndroidRadio]:fr,[D.x.WAndroidCB]:fr,[D.x.WPolygon]:fc,[D.x.WStar]:Ec,[D.x.WButton]:_i,[D.x.WButtonSolid]:_i,[D.x.WElbow]:[[Od,ui.z.ArrowSettingPanel]],[D.x.WVector]:[[_l,ui.z.BorderRadiusPanel],[gl(D.x.WVector),ui.z.FillPanel],[Fr,ui.z.BorderPanel],[Zl,ui.z.BoxShadowsPanel]],[D.x.WTriangle]:[[I0,ui.z.BorderRadiusPanel],[gl(),ui.z.FillPanel],[Fr,ui.z.BorderPanel],[Zl,ui.z.BoxShadowsPanel]],[D.x.WFlowOpened]:[[Fr,ui.z.BorderPanel]],[D.x.wFlowClosed]:[[gl(D.x.wFlowClosed),ui.z.FillPanel],[Fr,ui.z.BorderPanel]],[D.x.WTree]:[[gl(D.x.WTree),ui.z.FillPanel],[fd,ui.z.BorderPanel],[M0,ui.z.TreeNodePanel]],[R.m9]:X0},Yp=[D.x.WButton,D.x.WMTextInput,D.x.WMTextArea,D.x.WRect,D.x.WMobileTabBars,D.x.WTree],Sr=L=>{const U=L[0].widget,ne=(0,_.o9)(U),me=Qc[ne]||Qc[R.m9];if(L.length===1)return[Wl,...me];{let Ee=[];if(L.some(Ue=>Qc[ne]!==Qc[(0,_.o9)(Ue.widget)])){const Ue=new Map;if(L.some(nn=>nn.type===D.x.WArrow)){const nn=Qc[D.x.WArrow]||Qc[R.m9],[is,Bn]=nn[0];Ue.set(Bn,[is,Bn])}const at=Array.from(Ue.values()),Ht=L.some(nn=>nn.type===D.x.WStar||nn.type===D.x.WPolygon),xo=L.every(nn=>Yp.includes((0,_.o9)(nn.widget)));Ee=[...Ht?Kp:xo?X0:Gp,...at],L.every(nn=>ul.Ge.includes((0,_.o9)(nn)))?(Ee[1]=Ee[1].slice(),Ee[1].splice(0,1,gl())):(Ee[1]=Ee[1].slice(),Ee[1].splice(0,1,gl("solidFillOnly")))}else Ee=Qc[ne]||Qc[R.m9];return[Wl,...Ee]}},Kh=u.Ay.section.withConfig({displayName:"styles__StyledPolygonInfo",componentId:"sc-qw6soa-0"})(['.radius,.sideNum{padding:0;.common-line{display:flex;align-items:center;}.side-num-line{span.labelName{min-width:48px;}[type="slider"]{width:92px;margin:0 8px;.rail{.fill{background-color:',";}}}.input-number{width:52px;}}}.sideNum{&.noPadding{padding-bottom:0;}}padding:8px 0 8px 16px;border-top:1px solid ",";"],L=>L.theme.color_proto,L=>L.theme.color_bg_border_02);class Gh extends p.PureComponent{render(){return(0,a.jsx)(Kh,{children:this.props.children})}}class Ih extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"createOnChangeHandler",U=>ne=>{const{dispatch:me,onChange:Ee,widgetType:Ue,selections:at}=this.props;Ee({value:ne,attr:U,dispatch:me,supAttr:Ue===D.x.WPolygon?"polygon":"star",selections:at}),me({type:"entry:auto:show:hide:item"})}),(0,r.A)(this,"handleRadiusChange",(U,ne)=>{const{dispatch:me,onChange:Ee,widgetType:Ue,selections:at}=this.props;Ee({value:parseInt(U),attr:ne,dispatch:me,supAttr:Ue===D.x.WPolygon?"polygon":"star",selections:at}),me({type:"entry:auto:show:hide:item"})}),(0,r.A)(this,"handleRadiusConfirm",(U,ne)=>{this.handleRadiusChange(U,ne),sdkStore.combineMerge(ne+"-update")}),(0,r.A)(this,"handleMouseDown",U=>sdkStore.combineMergeMark(U+"-update"))}render(){const{radius:U}=this.props;return(0,a.jsx)("div",{className:"radius",children:(0,a.jsxs)("div",{className:"common-line side-num-line height-32",children:[(0,a.jsx)("span",{className:"labelName",children:I18N.SettingPanel.rd}),(0,a.jsx)(Ss.A,{attr:"radius",value:U,min:0,max:100,onChange:this.handleRadiusChange,onConfirm:this.handleRadiusConfirm,onMouseDown:this.handleMouseDown}),(0,a.jsx)(pt.A,{className:"input-number",attr:"radius",value:U,min:0,max:100,suffix:"%",onConfirm:this.createOnChangeHandler("radius")})]})})}}class Mh extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"createOnChangeHandler",U=>ne=>{const{dispatch:me,onChange:Ee,widgetType:Ue,selections:at}=this.props;Ee({value:ne,attr:U,dispatch:me,supAttr:Ue===D.x.WPolygon?"polygon":"star",selections:at}),me({type:"entry:auto:show:hide:item"})}),(0,r.A)(this,"handleSideNumChange",(U,ne)=>{const{dispatch:me,onChange:Ee,widgetType:Ue,selections:at}=this.props;Ee({value:parseInt(U),attr:ne,dispatch:me,supAttr:Ue===D.x.WPolygon?"polygon":"star",selections:at}),me({type:"entry:auto:show:hide:item"})}),(0,r.A)(this,"handleSideNumConfirm",(U,ne)=>{this.handleSideNumChange(U,ne),sdkStore.combineMerge(ne+"-update")}),(0,r.A)(this,"handleSideNumMouseDown",U=>sdkStore.combineMergeMark(U+"-update"))}render(){const{sideNum:U,widgetType:ne}=this.props;return(0,a.jsx)("div",{className:f()("sideNum",ne===D.x.WPolygon&&"noPadding"),children:(0,a.jsxs)("div",{className:"common-line side-num-line height-32",children:[(0,a.jsx)("span",{className:"labelName",children:ne===D.x.WPolygon?I18N.SettingPanel.side_num.polygon:I18N.SettingPanel.side_num.star}),(0,a.jsx)(Ss.A,{attr:"sideNum",value:U,min:3,max:20,onChange:this.handleSideNumChange,onConfirm:this.handleSideNumConfirm,onMouseDown:this.handleSideNumMouseDown}),(0,a.jsx)(pt.A,{className:"input-number",attr:"sideNum",value:U,min:3,max:20,onConfirm:this.createOnChangeHandler("sideNum")})]})})}}let Jc=function(L){return L[L.SideNumPanel=0]="SideNumPanel",L[L.RadiusPanel=1]="RadiusPanel",L}({});const Cp={[Jc.RadiusPanel]:{[D.x.WStar]:L=>{let{selectedTrees:U}=L;const ne=U[0].widget;return{radius:ne.star.radius,widgetType:ne.type}}},[Jc.SideNumPanel]:{[D.x.WPolygon]:L=>{let{selectedTrees:U}=L;const ne=U[0].widget;return{sideNum:ne.polygon.sideNum,widgetType:ne.type}},[D.x.WStar]:L=>{let{selectedTrees:U}=L;const ne=U[0].widget;return{sideNum:ne.star.sideNum,widgetType:ne.type}}}},Th={component:Mh,params:{},getter:[Cp[Jc.SideNumPanel][D.x.WPolygon]],setter:{onChange:bi.c}},E0={component:Mh,params:{},getter:[Cp[Jc.SideNumPanel][D.x.WStar]],setter:{onChange:bi.c}},Pc={component:Ih,params:{},getter:[Cp[Jc.RadiusPanel][D.x.WStar]],setter:{onChange:bi.c}},ac={[R.m9]:[[]],[D.x.WPolygon]:[[Th,Jc.SideNumPanel]],[D.x.WStar]:[[E0,Jc.SideNumPanel],[Pc,Jc.RadiusPanel]]},k0=L=>{const U=L[0].widget,ne=ac[U.type]||ac[R.m9];return[Gh,...ne]};var Mr=e(77411);const wp="mp_image";class _0 extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{show:(0,Vo.Yt)(wp,!0,Vo.qW.Boolean)}),(0,r.A)(this,"handleChange",()=>{const{show:U}=this.state;(0,Vo.a0)(wp,!U,Vo.qW.Boolean),this.setState({show:!U})})}render(){const{show:U}=this.state;return(0,a.jsx)(ho.A,{collapse:!U,title:I18N.SettingPanel.inspector.image,onChange:this.handleChange,children:(0,a.jsx)("section",{type:"panel-body",className:"image-settings",children:this.props.children})})}}var Ud=e(76713),El=e.n(Ud),Vc=e(84884),Q0=e(60185),xc=e(4114);const Sp=(0,xc.R)(()=>[{attr:"blur",label:I18N.dConst.inspector.blur,step:1,max:100,postfix:"px"},{attr:"brightness",label:I18N.dConst.inspector.brightness,step:.1,max:10,postfix:"",defaultValue:1},{attr:"contrast",label:I18N.dConst.inspector.contrast,step:.1,max:10,postfix:"",defaultValue:1},{attr:"saturate",label:I18N.dConst.inspector.saturate,step:.1,max:10,postfix:"",defaultValue:1},{attr:"grayscale",label:I18N.dConst.inspector.grayscale,step:.1,max:1,postfix:""},{attr:"sepia",label:I18N.dConst.inspector.sepia,step:.1,max:1,postfix:""},{attr:"hue-rotate",label:I18N.dConst.inspector.hue_rotate,step:30,max:360,postfix:"deg"},{attr:"invert",label:I18N.dConst.inspector.invert,step:.1,max:1,postfix:""}]);function xd(L){L=L&&L.trim()||"";const U={};return L&&L.split(" ").forEach(me=>{if(me.trim()){const Ee=me.trim().split("("),Ue=Ee[0],at=Ee[1].replace(/[a-zA-Z]*\)$/,"");U[Ue]=at}}),U}function J0(L){const U=[];return Object.keys(L).forEach(ne=>{const me=L[ne];if(me&&me!=="none"){const{postfix:Ee}=Sp().find(Ue=>Ue.attr===ne);U.push(ne+"("+me+Ee+")")}}),U.join(" ")}const P0=u.Ay.div.withConfig({displayName:"styles__StyledImageFilterPanel",componentId:"sc-nn47g6-0"})(["position:absolute;z-index:1;margin-top:-25px;margin-left:1px;background:",";box-shadow:0 2px 10px rgba(0,0,0,0.12);border-radius:8px;border:1px solid ",";transform:translate(-100%);width:212px;header{display:flex;align-items:center;justify-content:space-between;height:40px;padding:0 8px 0 16px;font-weight:600;border-bottom:1px solid ",";.title{color:",";}.right{display:flex;align-items:center;justify-content:center;span.reset{visibility:hidden;&.show{visibility:visible;font-weight:400;font-size:12px;line-height:12px;color:",";width:50px;height:24px;padding:6px 13px;font-weight:400;font-size:12px;line-height:12px;cursor:pointer;border-radius:4px;&:hover{background-color:",";}&:active{background-color:",";}&:lang(en){width:40px;padding:6px 0;display:flex;justify-content:center;}}}.close{cursor:pointer;width:24px;height:24px;border-radius:4px;path{fill:",";}&:hover{background-color:",";}&:active{background-color:",";}}}}.content{padding:8px 16px 13px 16px;}"],L=>L.theme.color_bg_white,L=>L.theme.color_bg_border_02,L=>L.theme.color_btn_secondary_active,L=>L.theme.color_text_L1,L=>L.theme.color_text_L1,L=>L.theme.color_btn_secondary_active,L=>L.theme.color_btn_secondary_active,L=>L.theme.color_text_L1,L=>L.theme.color_btn_secondary_active,L=>L.theme.color_btn_secondary_active),cd=u.Ay.div.withConfig({displayName:"styles__StyledFilterSlider",componentId:"sc-nn47g6-1"})(["height:18px;align-items:center;display:flex;[type='slider']{width:67px;.rail .fill{background-color:",";}&:lang(en){width:56px;}}.WorkspaceInputNumber{border:none !important;outline:none !important;outline-offset:0 !important;height:18px;}input{height:18px;width:50px;margin-left:8px;text-indent:5px;color:",";background-color:",";outline:none;border-radius:4px;border-width:1px;border-style:solid;border-color:",";border-image:initial;cursor:text;&:lang(en){width:40px;}}span{flex:1 1 0;color:",";}&:not(:last-child){margin-bottom:14px;}"],L=>L.theme.color_proto,L=>L.theme.color_text_L2,L=>L.theme.color_btn_secondary_active,L=>L.theme.color_btn_secondary_active,L=>L.theme.color_text_L2);class rc extends p.PureComponent{constructor(U){var ne;super(U),(0,r.A)(this,"setElementRef",me=>this.$element=me),(0,r.A)(this,"setIsExceedScreen",()=>{const{y:me}=this.props,Ee=me>document.body.clientHeight-this.$element.offsetHeight;this.setState({isExceedScreen:Ee})}),(0,r.A)(this,"handleChange",(me,Ee)=>{const{filter:Ue,dispatch:at,selectedImageItems:Ht}=this.props,xo=xd(Ue);xo[Ee]=me;const Po=J0(xo),nn=Ht.map(is=>({key:is.key,hotAttr:{image:{...is.image,imageFilter:Po}}}));at({type:"entry:widget:change",payload:{flatChgList:nn}})}),(0,r.A)(this,"handleConfirm",(me,Ee)=>{this.handleChange(me,Ee),sdkStore.combineMerge(Ee+"-update")}),(0,r.A)(this,"handleMouseDown",me=>{sdkStore.combineMergeMark(me+"-update")}),(0,r.A)(this,"handleResetFilter",()=>{const{dispatch:me,selectedImageItems:Ee}=this.props,Ue=Ee.map(at=>({key:at.key,hotAttr:{image:{...at.image,imageFilter:""}}}));me({type:"entry:widget:change",payload:{flatChgList:Ue}})}),(0,r.A)(this,"handleClickOutside",me=>{var Ee;const{onClose:Ue}=this.props;(Ee=this.$element)!=null&&Ee.contains(me.target)||Ue(me)}),this.el=document.createElement("div"),this.x=((ne=document.querySelector(".main-content #right-slide-panel"))==null?void 0:ne.offsetLeft)-8,this.state={isExceedScreen:!1}}componentDidMount(){this.el&&document.body.append(this.el),this.setIsExceedScreen()}componentDidUpdate(){this.setIsExceedScreen()}componentWillUnmount(){this.el&&document.body.removeChild(this.el)}render(){const{y:U,filter:ne,canResetFilter:me,onClose:Ee}=this.props,{isExceedScreen:Ue}=this.state,at=xd(ne),Ht={top:Ue?"auto":U+"px",left:this.x+"px",bottom:Ue?"12px":"auto"};return(0,Q0.createPortal)((0,a.jsxs)(P0,{ref:this.setElementRef,style:Ht,children:[(0,a.jsxs)("header",{children:[(0,a.jsx)("span",{className:"title",children:I18N.SettingPanel.inspector.filter}),(0,a.jsxs)("div",{className:"right",children:[(0,a.jsx)("span",{className:f()("reset",{show:me}),onClick:this.handleResetFilter,children:I18N.SettingPanel.reset}),(0,a.jsx)(S.C,{name:"design/autoFillPanel/close",className:"close",isColorPure:!0,onClick:Ee})]})]}),(0,a.jsx)("div",{className:"content",children:Sp().map(xo=>{const{attr:Po}=xo,nn=at[Po];return(0,a.jsx)(N0,{filter:xo,value:nn,onChange:this.handleChange,onConfirm:this.handleConfirm,onMouseDown:this.handleMouseDown},Po)})}),(0,a.jsx)(ji.A,{target:document,onClick:(0,ji.t)(this.handleClickOutside,{capture:!0})})]}),this.el)}}class N0 extends p.PureComponent{render(){const{filter:U,value:ne,onChange:me,onConfirm:Ee,onMouseDown:Ue}=this.props,{attr:at,label:Ht,max:xo,defaultValue:Po}=U,nn=ne||Po||0;return(0,a.jsxs)(cd,{className:"line slider-line",children:[(0,a.jsx)("span",{children:Ht}),(0,a.jsx)(Ss.A,{attr:at,value:nn,max:xo,onChange:me,onConfirm:Ee,onMouseDown:Ue}),(0,a.jsx)(pt.A,{attr:at,min:0,max:xo,precision:1,actionButton:!1,value:nn,onConfirm:Ee})]})}}var Ap=e(41725);const bl=u.Ay.div.withConfig({displayName:"style__StyledImageLine",componentId:"sc-1v4x9dy-0"})(["position:relative;height:80px;border-radius:6px;overflow:hidden;margin:8px 0;border:1px solid ",";&.line:not(:last-child){margin-bottom:12px;}&:hover{.drop-area{visibility:visible;}}"],L=>L.theme.color_bg_border_01),d0=u.Ay.div.withConfig({displayName:"style__StyledImage",componentId:"sc-1v4x9dy-1"})(["height:80px;position:absolute;display:flex;align-items:center;justify-content:center;width:202px;background-image:url(",");background-color:",";.styleForPlaceholder{background-color:",";width:134px;height:80px;display:flex;align-items:center;justify-content:center;.svg-icon{color:",";width:32px;height:32px;}}img{max-width:100%;max-height:100%;}"],L=>L.theme.bg_base64,L=>L.theme.color_btn_secondary_active,L=>L.placeholderBackground,L=>L.theme.color_text_L1),Kl=u.Ay.div.withConfig({displayName:"style__StyledDropArea",componentId:"sc-1v4x9dy-2"})(["width:100%;height:80px;text-align:center;position:absolute;background:transparent;transition:all 0.15s ease-in-out;font-size:12px;color:#fff;padding-top:14px;.arrow-icon{width:24px;height:24px;}&:lang(ja){font-size:10px;}&:hover{background:rgba(0,0,0,0.29);.desc,label{display:block;}}&.is-open{background:rgba(0,0,0,0.29);.desc,label{display:block;}}&.is-active{background:rgba(41,141,248,0.06);border:1px solid ",";.desc,label{display:none;}}.desc{display:none;}label{border:1px solid #fff;height:28px;color:#fff;width:108px;margin:auto;border-radius:4px;margin-top:6px;align-items:center;justify-content:center;display:none;&:lang(ja){width:106px;}button{display:flex;align-items:center;justify-content:center;margin:auto;width:100%;height:100%;div{display:flex;align-items:center;justify-content:center;width:100%;height:26px;position:relative;font-weight:500;.arrow-icon{position:absolute;right:1px;top:1px;}&:lang(ja){width:100px;}}}.is-expand{transform:rotate(180deg);}&:hover,&.is-open{border:1px solid #fff;height:28px;color:rgba(0,0,0,0.9);background:#ffffff;.arrow-icon{color:rgba(0,0,0,0.9);}}}"],L=>L.theme.color_proto),fl=(0,u.DU)(["#IBOT_DROPDOWN_MENU_ROOT{.image-drop-area-menu{width:108px;color:#fff;border-radius:9px;.new{margin-left:4px;}.content{background:rgb(51,51,51);padding:8px;border-radius:8px;color:",";background:",";ul{list-style:none;li{height:24px;margin:2px 0;display:flex;align-items:center;padding-left:16px;border-radius:4px;cursor:pointer;color:",";.svg-icon{color:",";margin-left:12px;margin-right:6px;}&:hover{background:",";}}}}&:lang(en){width:130px;}}}"],L=>L.theme.color_text_L1,L=>L.theme.color_bg_white,L=>L.theme.color_text_L1,L=>L.theme.color_text_L2,L=>L.theme.color_btn_secondary_hover),L0=u.Ay.div.withConfig({displayName:"style__StyledCuttingButton",componentId:"sc-1v4x9dy-3"})(["display:flex;align-items:center;height:22px;span{color:",";}.radio-line{margin:0 16px 0 10px;width:50px;.radio-option.check-line{flex:0 0 24px;height:24px;border-radius:4px;transition:all 0.2s ease-in-out;&:not(.active):hover{background-color:",";}&.active{background:",";}}a{width:100%;height:100%;display:flex;align-items:center;justify-content:center;}.svg-icon{rect{fill:transparent;stroke:",";}}li{&.active{.svg-icon{rect{stroke:",";}}}}}button{width:101px;height:22px;display:flex;align-items:center;justify-content:center;border:1px solid ",";border-radius:2px;color:",";.svg-icon{margin-right:4px;}&:hover{background:",";}&:active{background:",";}}"],L=>L.theme.color_text_L2,L=>L.theme.color_btn_secondary_hover,L=>L.theme.color_btn_secondary_active,L=>L.theme.color_text_L1,L=>L.theme.color_text_L1,L=>L.theme.color_btn_secondary_active,L=>L.theme.color_text_L1,L=>L.theme.color_btn_secondary_hover,L=>L.theme.color_btn_secondary_active),Yh=u.Ay.div.withConfig({displayName:"style__StyledFooterOperationLine",componentId:"sc-1v4x9dy-4"})(["display:flex;align-items:center;justify-content:space-between;.image-operation-type,.filter{svg.svg-icon{width:24px;height:24px;color:",";&:not([fill]){[stroke]{fill:none;stroke:",";}}}}.Tooltip{display:flex;}.radio-line{display:flex;align-items:center;justify-content:center;height:24px;margin-bottom:0;.radio-option.check-line{flex:0 0 24px;height:24px;border-radius:4px;transition:all 0.2s ease-in-out;a{width:100%;height:100%;}&:not(.active):hover{background-color:",";}&.active,&:active{background:",";}}}.filter{width:24px;height:24px;border-radius:4px;transition:all 0.2s ease-in-out;&:not(.active):hover{background-color:",";}&.active{background:",";}}.image-operations{display:flex;align-items:center;.select-fill-type{width:64px;height:28px;align-items:center;justify-content:space-between;margin-left:6px;&:lang(en){width:76px;}&.select-fill-type-none{width:76px;button{color:",";}}}}"],L=>L.theme.color_text_L1,L=>L.theme.color_text_L1,L=>L.theme.color_btn_secondary_hover,L=>L.theme.color_btn_secondary_active,L=>L.theme.color_btn_secondary_hover,L=>L.theme.color_btn_secondary_active,L=>L.theme.color_text_L2),D0=(0,u.DU)(["#IBOT_SELECT_MENU_ROOT{.SelectMenuPortal{.WorkspaceSelectMenu.is-open{&.image-fill-type-menu{width:78px;&:lang(en){width:96px;}transform:translateY(28px);top:0px !important;.Ellipsis{padding:0 10px 0 22px;}svg{left:7px;}}}}}"]);var zd=e(97772),jl=e(98310),Pl=e(29601),Ed=e(58277);const Nc=L=>El()(L).isBefore(El()("2022-04-28 23:59:59"));class Ip extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{isActive:!1,isOpen:!1,filterPanelOpen:!1,filterPositionY:0}),(0,r.A)(this,"IMAGE_SETTING_OPTIONS",[{label:(0,a.jsx)(ae.P,{name:"setting_panel/image_view/slicing",tagName:"SVGIcon",content:I18N.SettingPanel.slicing,direction:"down"}),value:dt.bl.slicing},{label:(0,a.jsx)(ae.P,{name:"setting_panel/image_view/cutting",tagName:"SVGIcon",content:I18N.SettingPanel.cutting,direction:"down"}),value:dt.bl.cutting},{label:(0,a.jsx)(ae.P,{name:"setting_panel/image_view/horizontal_flip",tagName:"SVGIcon",content:I18N.SettingPanel.horizontal_flip,direction:"down",iconProps:{isColorPure:!0,size:24,className:"image_view_flipH"}}),value:dt.bl.flipH},{label:(0,a.jsx)(ae.P,{name:"setting_panel/image_view/vertical_flip",tagName:"SVGIcon",content:I18N.SettingPanel.vertical_flip,direction:"down",iconProps:{isColorPure:!0,size:24,className:"image_view_flipV"}}),value:dt.bl.flipV}]),(0,r.A)(this,"toggleDropdown",U=>this.setState({isOpen:U})),(0,r.A)(this,"setFileRef",U=>this.file=U),(0,r.A)(this,"handleManageImage",()=>{this.props.dispatch({type:"entry:resource:open:assetPanel"}),this.toggleDropdown(!1),(0,Ed.bM)({source:"\u56FE\u7247\u5E93"})}),(0,r.A)(this,"handleOpenAutoFill",()=>{this.props.dispatch({type:"entry:autoFillPanel:toggle:show",payload:{canClose:!1,openFrom:zd.G.ImageMenu}}),this.toggleDropdown(!1),(0,Ed.bM)({source:"\u667A\u80FD\u586B\u5145"})}),(0,r.A)(this,"handleUploadImage",()=>{this.file.click(),(0,Ed.bM)({source:"\u672C\u5730\u56FE\u7247"})}),(0,r.A)(this,"handleFileChange",U=>{const ne=U.target.files[0];this.file.value="",this.file.setAttribute("value",""),this.handleUpload(ne)}),(0,r.A)(this,"handleDragLeave",U=>{U.stopPropagation(),U.preventDefault(),this.setState({isActive:!1})}),(0,r.A)(this,"handleDragOver",U=>{U.stopPropagation(),U.preventDefault(),U.nativeEvent.dataTransfer.dropEffect="copy",this.setState({isActive:!0})}),(0,r.A)(this,"handleDrop",U=>{U.stopPropagation(),U.preventDefault(),this.setState({isActive:!1});const ne=U.nativeEvent.dataTransfer.files[0];this.handleUpload(ne)}),(0,r.A)(this,"handleChangeOperationType",U=>{const{currentImageOperateType:ne}=this.props,{dispatch:me}=this.props,Ee=U.currentTarget.dataset.value;if(!(ne&&ne===Ee))switch(Ee){case dt.bl.flipH:me({type:"entry:image-view:horizontal-flip",payload:{isImage:!0}});break;case dt.bl.flipV:me({type:"entry:image-view:vertically-flip",payload:{isImage:!0}});break;default:{me({type:"entry:image-view:edit",payload:{operationType:Ee}});const Ue=Ee===dt.bl.cutting;me(Ue?{type:"entry:image-view:cutting"}:{type:"update:screenContainer:state",payload:{defaultImageSlicingOffset:{x:U.clientX-90,y:U.clientY}}})}break}}),(0,r.A)(this,"handleToggleFilterPanelOpen",(U,ne)=>{const me=ne!==void 0?ne:!this.state.filterPanelOpen;this.setState({filterPanelOpen:me,filterPositionY:U.clientY}),me&&MB.commonGuideHelper.checkGuideToBeShown(Li.c.GUIDE_IMAGE_SLICING)&&!MB.commonGuideHelper.checkGuideHasShown(Li.c.GUIDE_IMAGE_SLICING)&&(MB.commonGuideHelper.closeGuide(Li.c.GUIDE_IMAGE_SLICING),MB.commonGuideHelper.markGuideAsRead(Li.c.GUIDE_IMAGE_SLICING))}),(0,r.A)(this,"handleChangeFillType",U=>{const{dispatch:ne,fillType:me}=this.props;me!==U&&ne({type:"entry:image-view:fill-type",payload:{imageFillType:U}})})}componentDidMount(){const{isDesign:U,currentUser:ne,canClipImage:me}=this.props;U&&ne&&me&&Nc(ne==null?void 0:ne.created_at)&&MB.commonGuideHelper.tryToShowGuide(Li.c.GUIDE_IMAGE_SLICING)}componentWillUnmount(){MB.commonGuideHelper.closeGuide(Li.c.GUIDE_IMAGE_SLICING)}handleUpload(U){const{isExperience:ne,isLoggedExperience:me,rootProject:Ee,currentUser:Ue,currentOrg:at}=this.props;if(ne||me){MB.notice({text:I18N.LibraryContainer.un_save_tips});return}(0,Ap.i3)({files:[U],rootProject:Ee,callback:Ht=>{this.props.dispatch({type:"entry:items:set:asset",payload:{asset:Ht}})},isFilterSvg:!1},Ue,at)}render(){const{showImageDropPanel:U,image:ne,filter:me,canClipImage:Ee,canSliceImage:Ue,canResetFilter:at,currentImageOperateType:Ht,background:xo,dispatch:Po,fillType:nn,canSetFillType:is,selectedImageItems:Bn}=this.props,{isActive:$s,isOpen:qs,filterPanelOpen:Mi,filterPositionY:Xi}=this.state;if(!U)return null;const na=xo&&(0,Vc.bH)(xo)?(0,Vc.bH)(xo):"rgb(229, 229, 229)",Xa=Ee?this.IMAGE_SETTING_OPTIONS:this.IMAGE_SETTING_OPTIONS.filter(Br=>Br.value!==dt.bl.cutting),Ga=(0,jl.Kf)(ne),xr=[{label:I18N.SettingPanel.image_fill,value:"fill",isDisabled:!1},{label:I18N.SettingPanel.image_stretch,value:"stretch",isDisabled:!1}];return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(bl,{className:f()(Li.c.GUIDE_IMAGE_SLICING),children:[(0,a.jsx)("input",{ref:this.setFileRef,type:"file",onChange:this.handleFileChange,hidden:!0,multiple:!0,accept:"image/*"}),(0,a.jsxs)(d0,{className:"bgImg",placeholderBackground:na,children:[Ga&&(0,a.jsx)("img",{src:Ga}),!Ga&&(0,a.jsx)("div",{className:"styleForPlaceholder",children:(0,a.jsx)(S.C,{name:"right_panel/image/place_holder"})})]}),(0,a.jsxs)(Kl,{className:f()("drop-area",{"is-active":$s,"is-open":qs}),onDrop:this.handleDrop,onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,children:[(0,a.jsx)("span",{className:"desc",children:I18N.SettingPanel.inspector.drag_image_here}),(0,a.jsx)(fl,{}),(0,a.jsx)(po.A,{menuY:"bottom",isOpen:qs,className:"image-drop-area-opener",onToggle:this.toggleDropdown,shouldPreventScrollingPropagation:!1,opener:(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"changeNewDeviceSize",children:I18N.SettingPanel.image_upload}),(0,a.jsx)(S.C,{className:f()("arrow-icon",{"is-expand":qs}),name:"common/expand@26"})]}),menuClassName:"image-drop-area-menu",menu:(0,a.jsxs)("ul",{children:[(0,a.jsx)("li",{onClick:this.handleUploadImage,children:I18N.SettingPanel.local_image}),(0,a.jsxs)("li",{onClick:this.handleManageImage,children:[I18N.SettingPanel.img_library,(0,a.jsx)(S.C,{className:"new",name:"design/find_picture/new",isColorPure:!0,style:{width:27,height:12}})]}),(0,Pl.k)()&&(0,a.jsx)("li",{onClick:this.handleOpenAutoFill,children:"\u667A\u80FD\u586B\u5145"})]})})]})]}),Ue&&(0,a.jsxs)(Yh,{className:"height-32",children:[(0,a.jsxs)("div",{className:"image-operations",children:[(0,a.jsx)(So.A,{className:"image-operation-type",options:Xa,value:Ht,handleChange:this.handleChangeOperationType}),is&&(0,a.jsx)(ri.mq,{className:f()("select-fill-type",!xr.find(Br=>Br.value===nn)&&"select-fill-type-none"),menuClassName:"export-select-menu image-fill-type-menu",value:nn,optionList:xr,onChange:this.handleChangeFillType,placeholder:I18N.SettingPanel.please_select})]}),(0,a.jsx)(ae.P,{iconClassName:f()("filter",{active:Mi}),name:"setting_panel/image_view/filter",tagName:"SVGIcon",content:I18N.SettingPanel.inspector.filter,onClick:this.handleToggleFilterPanelOpen}),Mi&&(0,a.jsx)(rc,{y:Xi,filter:me,canResetFilter:at,selectedImageItems:Bn,onClose:Br=>this.handleToggleFilterPanelOpen(Br,!1),dispatch:Po}),(0,a.jsx)(D0,{})]})]})}}var Mp=e(51514),$c=e(87812);const vc={component:Ip,params:{},getter:[L=>{let{selectedTrees:U,isLoggedExperience:ne,isExperience:me,rootProject:Ee,currentUser:Ue,currentOrg:at,isDesign:Ht,imageProps:{currentImageOperateType:xo}}=L;const Po=U.map(Xi=>Xi.widget),nn=Po.filter(Xi=>Xi.type===D.x.WImage),is=(0,Ze.i)(Po,"image");if(!is)return{showImageDropPanel:!1};const{imageClipType:Bn,imageRef:$s,imageFilter:qs}=is,Mi=(0,$c.v)(is);return{showImageDropPanel:!0,isLoggedExperience:ne,isExperience:me,canShowResetImage:Bn!=="none",clipType:Bn,image:$s,rootProject:Ee,background:(0,Ze.i)(Po,"background"),canClipImage:(0,Mp.Dt)(Po),canSliceImage:(0,Mp.yS)(Po),canResetFilter:qs,filter:qs,currentUser:Ue,currentOrg:at,isDesign:Ht,currentImageOperateType:xo,fillType:Mi,canSetFillType:(0,Mp.Ef)(Po),selectedImageItems:nn}}],setter:{}},lc=()=>[_0,[vc,"ImageDropInfo"]];var Wd=e(66748),Xl=e.n(Wd),vd=e(68696),$0=e(88319),q0=e(91643);class kd extends p.PureComponent{constructor(U){var ne;super(U),ne=this,(0,r.A)(this,"setListElementRef",me=>this.$element=me),(0,r.A)(this,"setInputRef",me=>this.input=me),(0,r.A)(this,"handleAssetUpload",()=>{const{assetIndex:me,onUploadStart:Ee}=this.props;Ee(me),this.input.click()}),(0,r.A)(this,"handleDropUpload",me=>{const{onUploadEnd:Ee,isExperience:Ue,isLoggedExperience:at,rootProject:Ht,currentUser:xo,currentOrg:Po}=this.props;if(Ue||at){MB.notice({text:I18N.LibraryContainer.un_save_tips});return}(0,Ap.i3)({files:me,rootProject:Ht,callback:nn=>Ee(nn.image)},xo,Po)}),(0,r.A)(this,"handleClickAction",me=>{me.stopPropagation(),this.handleToggle()}),(0,r.A)(this,"handleToggle",function(me){me===void 0&&(me=void 0);const{isListItemGroup:Ee}=ne.state,Ue=me===void 0?!Ee:me;ne.setState({isListItemGroup:Ue})}),(0,r.A)(this,"handleDocDown",me=>{var Ee;let{target:Ue}=me;const{isListItemGroup:at}=this.state;at&&((Ee=this.$element)!=null&&Ee.contains(Ue)||Ue.closest(".list-content")||this.handleToggle(!1))}),this.state={isListItemGroup:!1}}handStopPropagation(U){U.stopPropagation()}render(){const{assetIndex:U,isHasAsset:ne,onUploadByLibrary:me,onRemove:Ee,onOpenAutoFillPanel:Ue}=this.props,{isListItemGroup:at}=this.state;return(0,a.jsxs)("div",{ref:this.setListElementRef,className:f()("asset-menu-btn",{hover:at}),onMouseDown:this.handStopPropagation,onClick:this.handleClickAction,children:[(0,a.jsx)(S.C,{name:"design/templates/temp-btn",className:"library-menu"}),at&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Zp,{isHasAsset:ne,assetIndex:U,targetNode:this.$element,onUpload:this.handleAssetUpload,onUploadByLibrary:me,onRemove:Ee,onClose:()=>this.handleToggle(!1),onOpenAutoFillPanel:Ue}),(0,a.jsx)(ji.A,{target:document,onMouseDown:(0,ji.t)(this.handleDocDown,{capture:!0})})]}),(0,a.jsx)(q0.A,{ref:this.setInputRef,onChange:this.handleDropUpload})]})}}class Zp extends p.PureComponent{constructor(U){super(U),(0,r.A)(this,"onUpload",ne=>{ne.stopPropagation();const{assetIndex:me,onUpload:Ee,onClose:Ue}=this.props;Ee(me),Ue()}),(0,r.A)(this,"onUploadByLibrary",ne=>{ne.stopPropagation();const{assetIndex:me,onUploadByLibrary:Ee,onClose:Ue}=this.props;Ee(ne,me),Ue()}),(0,r.A)(this,"onOpenAutoFillPanel",ne=>{ne.stopPropagation();const{assetIndex:me,onClose:Ee,onOpenAutoFillPanel:Ue}=this.props;Ue(ne,me),Ee()}),(0,r.A)(this,"handleRemove",ne=>{ne.stopPropagation();const{assetIndex:me,onRemove:Ee,onClose:Ue}=this.props;Ee(me),Ue()}),this.menuItems=[{isShow:!0,label:I18N.TextToolbar.image1,onClick:this.onUpload},{isShow:!0,label:I18N.TextToolbar.image2,onClick:this.onUploadByLibrary,isNew:!0},{isShow:(0,Pl.k)(),label:I18N.SmartFill.smart_fill,onClick:this.onOpenAutoFillPanel},{isShow:!0,label:I18N.SettingPanel.delete,onClick:this.handleRemove}]}render(){const{targetNode:U}=this.props;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Xp,{}),(0,a.jsx)($0.A,{className:"asset-action-MenuItem",menuItems:this.menuItems,targetNode:U,direction:"down-end",distance:2})]})}}const Xp=(0,u.DU)([".asset-action-MenuItem.list-content{width:108px;min-width:108px;.action{margin:2px 0;}}"]);var _d=e(18578),Vd=e(84780),Qp=e(72093),Tp=e(96391),Jp=e(31284),$p=e(41434),ep=e(11573),qp=e(50824),eh=e(80814),th=e(34708),Lc=e(11199),qc=e(34728),ed=e(97788),Pd=e(27288),oh=e(58724);const Ep=(0,p.createContext)(null),Eh=(0,p.memo)(L=>{let{anchorMeta:U,onClose:ne,fromType:me}=L;const Ee="treePanelFloat",Ue=(0,o.wA)(),{interactionTree:at,editingInteraction2:Ht,itemKey:xo,currentCanvas:Po,isEditingCombo:nn,selectItaInfo:is,editingPanelRefPage:Bn,selectInteractionKey:$s,selectTreeNode:qs,currentPath:Mi,selectCarouselImage:Xi,selectSubItaType:na,disableType:Xa,interactionStore:Ga}=(0,eh._C)({from:Ee}),Br="TFPH-"+(0,o.d4)(g.PL).cid,[Qa,vr]=(0,qc.A)(Br,{defaultValue:{}}),al=U.type==="carousel"?"carousel":""+U.data.cid,mr=parseInt((Qa==null?void 0:Qa[al])||"418"),[dd,Ql]=(0,p.useState)({top:-99999,left:-99999}),Sc=(0,p.useRef)(null),n0=(0,p.useRef)("none");let cl="multiple",o1=Ht,Fh=qs,jp=$s;if(Xa!=="none")cl="disable";else if((Ga==null?void 0:Ga.type)==="defaultData"){var v0;cl="empty",jp=(0,ed.Yw)((at==null||(v0=at.sub[0])==null?void 0:v0.attr.trigger)||"tap")}else if((at==null?void 0:at.sub.length)===1){const id=(0,ed.zd)(at.sub[0].sub);id.length<=1?id.length===1?(Fh=(0,ed.zS)(id[0].attr.key,at),o1=Fh.attr,cl="single"):(jp=(0,ed.Yw)(at.sub[0].attr.trigger),cl="empty"):cl="multiple"}else cl="multiple";const Pr=cl==="multiple"?480:240;(0,p.useLayoutEffect)(()=>{if(U){var id;if(((id=Sc.current)==null?void 0:id.type)==="carousel"&&U.type==="carousel"&&Sc.current.imageIndex===U.imageIndex&&n0.current===cl)return;let mh;if(me==="carouselImage"?mh=document.querySelector(".carousel-asset-section"):mh=document.querySelector('.setting-drag-menu-item[data-path="'+U.path+'"]'),!mh){ne();return}const{top:n1,left:A1}=mh.getBoundingClientRect();let Uh=n1,Se=418;if(cl==="multiple")Se=mr||418;else if(cl==="disable")Se=418;else{var ad;const{height:U0}=(ad=document.getElementById("interaction-panel-float"))==null?void 0:ad.getBoundingClientRect();Se=U0}n1+Se-window.innerHeight>0&&(Uh=window.innerHeight-Se-18),Ql({top:Uh,left:A1-Pr}),Sc.current=U,n0.current=cl}},[U,me,Pr,cl,mr]);const Op=id=>{id.target.closest("#interaction-panel-float")||id.target.closest(".SelectMenuPortal")||id.target.closest(".DropdownMenuPortal")||id.target.closest(".context-menu-mask")||id.target.closest(".dropdown-trigger-list")||ne()},{position:ap,setPosition:uh}=(0,Qp.J)(dd),X1=(id,ad)=>{uh({left:id,top:ad})};(0,p.useEffect)(()=>{na==="carouselImage"?ed.e4.setSelection(xo+"-"+Xi,$s):na==="optionData"&&ed.e4.setSelection(xo+"-"+Mi,$s)},[xo,Ue,Mi,Xi,na,$s]);const Mu=(0,p.useCallback)((id,ad)=>{const{clientY:mh}=id,n1=Uh=>{const Se=Uh.clientY-mh,I1=window.innerHeight-48-20;if(ad==="bottom"){const U0=mr+Se;if(U0>418&&U0<I1){const Tu={...Qa,[al]:U0};vr(Tu)}}else{const U0=mr-Se;if(U0>418&&U0<I1){uh({top:ap.top+Se,left:ap.left});const Tu={...Qa,[al]:U0};vr(Tu)}}},A1=Uh=>{document.removeEventListener("mousemove",n1),document.removeEventListener("mouseup",A1)};document.addEventListener("mousemove",n1),document.addEventListener("mouseup",A1)},[ap]);return at?(0,a.jsxs)(Ep.Provider,{value:{uiFrom:Ee,handleMove:X1,position:ap,interactionTree:at,onClose:ne,editingInteraction2:Ht,selectTreeNode:qs,interactionStore:Ga,itemKey:xo,selectInteractionKey:$s,handleClickClose:Op,panelWidth:Pr,currentCanvas:Po,hadnleResize:Mu,editingPanelRefPage:Bn,selectItaInfo:is,isEditingCombo:nn,selectSubItaType:na,selectCarouselImage:Xi,currentPath:Mi,treePanelFloatRenderContentType:cl,singleEditingInteraction2:o1,singleSelectTreeNode:Fh,emptySelectInderactionKey:jp},children:[(0,a.jsx)(Vd.A,{position:{left:ap.left,top:ap.top},onMove:X1,children:(0,a.jsx)(Jp.iv,{id:"interaction-panel-float","data-rendertype":cl,panelWidth:Pr,panelHeight:cl==="multiple"?mr:void 0,children:cl==="empty"?(0,a.jsx)(p0,{}):cl==="single"?(0,a.jsx)(kh,{}):cl==="disable"?(0,a.jsx)(Pd.I,{disableType:Xa,onClose:ne}):(0,a.jsx)(Dc,{})})}),(0,a.jsx)(ji.A,{onMouseDown:Op,target:document})]}):null}),p0=(0,p.memo)(()=>{const{uiFrom:L,interactionTree:U,onClose:ne,itemKey:me,treePanelFloatRenderContentType:Ee,emptySelectInderactionKey:Ue,interactionStore:at}=(0,p.useContext)(Ep);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(th.C,{uiFrom:L,onClose:ne,interactionTree:U,interactionStore:at,treePanelFloatContentType:Ee}),(0,a.jsx)(ep.S,{itemKey:me,selectItaInfo:{type:"action",keyList:[]},interactionDummyKey:Ue,interactionTree:U,interactionStore:at,uiFrom:L})]})}),kh=(0,p.memo)(()=>{const{uiFrom:L,interactionTree:U,onClose:ne,interactionStore:me,itemKey:Ee,currentCanvas:Ue,treePanelFloatRenderContentType:at,singleEditingInteraction2:Ht,singleSelectTreeNode:xo}=(0,p.useContext)(Ep);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(th.C,{uiFrom:L,hasTrash:!0,hasAddTrigger:!0,isClearAll:!0,onClose:ne,interactionTree:U,interactionStore:me,selectTreeNode:xo,treePanelFloatContentType:at}),(0,a.jsx)($p.A,{link:Ht,currentCanvas:Ue,currentWidgetKey:Ee,hasTrash:!0,interactionTree:U,interactionStore:me,selectTreeNode:xo,uiFrom:L,isNewTriggerPlaceHolder:!1})]})}),Dc=(0,p.memo)(()=>{const{uiFrom:L,interactionTree:U,editingInteraction2:ne,interactionStore:me,selectTreeNode:Ee,onClose:Ue,itemKey:at,selectInteractionKey:Ht,editingPanelRefPage:xo,selectItaInfo:Po,currentCanvas:nn,isEditingCombo:is,selectSubItaType:Bn,selectCarouselImage:$s,currentPath:qs,hadnleResize:Mi,treePanelFloatRenderContentType:Xi}=(0,p.useContext)(Ep),na=(0,p.useMemo)(()=>Bn==="carouselImage"?at+"-"+$s:Bn==="optionData"?at+"-"+qs:at,[Bn,$s,qs,at]),{collapseList:Xa,handleCollapse:Ga}=(0,eh.zi)({cacheKey:na,interactionTree:U}),xr=(0,p.useCallback)((Br,Qa)=>{Qa&&(0,ed.Es)(Qa.attr.key)&&(0,oh.X)()},[]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"tree-float-resizer top",onMouseDown:Br=>Mi(Br,"top")}),(0,a.jsx)(th.C,{uiFrom:L,onClose:Ue,interactionTree:U,interactionStore:me,selectTreeNode:Ee,treePanelFloatContentType:Xi}),(0,a.jsxs)("div",{className:"big-container",children:[(0,a.jsxs)("div",{className:"tree-container",children:[(0,a.jsx)(Lc.m,{showPreference:!1,disabled:!1,buttonType:"common",uiFrom:L,handleCollapse:Ga,interactionTree:U,interactionStore:me}),U?(0,a.jsx)(Tp.L,{itemKey:at,interactionTree:U,selectInteractionKey:Ht,editingPanelRefPage:xo,uiFrom:L,collapseList:Xa,handleCollapse:Ga,interactionStore:me,extraClick:xr,onCloseCallback:Ue}):(0,a.jsx)(qp.U,{isEditingCombo:is,showImg:!1,openEditorFloat:!1,uiFrom:L,interactionStore:me})]}),(0,a.jsx)("div",{className:"editor-container",children:Po.type==="trigger"||Po.type==="action"?(0,a.jsx)(ep.S,{selectItaInfo:Po,interactionDummyKey:Ht,interactionTree:U,interactionStore:me,uiFrom:L}):ne?(0,a.jsx)($p.A,{link:ne,currentCanvas:nn,currentWidgetKey:at,hasTrash:!0,interactionTree:U,interactionStore:me,selectTreeNode:Ee,uiFrom:L}):null})]}),(0,a.jsx)("div",{className:"tree-float-resizer bottom",onMouseDown:Br=>Mi(Br,"bottom")})]})}),Ge=L=>{let{onClose:U,anchorMeta:ne,fromType:me}=L;const Ee=(0,o.wA)(),Ue=()=>{U(),Ee(_d.R7.command.clearAllCommand({}))};return(0,Q0.createPortal)((0,a.jsx)(a.Fragment,{children:(0,a.jsx)(Eh,{onClose:Ue,anchorMeta:ne,fromType:me})}),document.getElementById("fixed-area"))},jt={light:"#F7F7F7",dark:"#363738"};class Dt extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{assets:[],dragIndex:null,dragDelta:[0,0],orderThroughDrag:null,needForceUpdate:!1,showLinkEditor:!1,linkPositionY:0,selectedIndex:null,imageIndex:-1}),(0,r.A)(this,"setMaskRef",U=>this.mask=U),(0,r.A)(this,"calDragDelta",(U,ne,me,Ee)=>[U-me,ne-Ee]),(0,r.A)(this,"handleDragAssetStart",U=>{const ne=Number(U.currentTarget.dataset.index);this.setState({dragIndex:ne});const{pageX:me,pageY:Ee}=U,Ue=Ht=>{const xo=this.calDragDelta(Ht.pageX,Ht.pageY,me,Ee),{assets:Po}=this.state,{newOrder:nn}=xn(xo,ne,Po.length);this.setState({orderThroughDrag:nn,dragDelta:xo})},at=Ht=>{window.removeEventListener("mousemove",Ue),window.removeEventListener("mouseup",at);const xo=this.calDragDelta(Ht.pageX,Ht.pageY,me,Ee),{assets:Po}=this.state,{newOrder:nn}=xn(xo,ne,Po.length);this.popChangeOfReorder(nn)};window.addEventListener("mousemove",Ue),window.addEventListener("mouseup",at)}),(0,r.A)(this,"popChangeOfReorder",U=>{const{assets:ne}=this.state,me=Qo(ne,U);JSON.stringify(me)===JSON.stringify(ne)?this.setState({needForceUpdate:!0}):this.props.handleChange(me)}),(0,r.A)(this,"handleManageAsset",(U,ne)=>{U.stopPropagation();const me=U.currentTarget.dataset.index||ne,{dispatch:Ee}=this.props;Ee({type:"entry:carousel:image:displayIndex:update",payload:Number(me)}),Ee({type:"setting:select:carousel:image",payload:{selectCarouselImageIndex:Number(me)}}),this.setState({selectedIndex:Number(me)}),this.props.dispatch({type:"entry:resource:open:assetPanel"})}),(0,r.A)(this,"handleOpenAutoFillPanel",(U,ne)=>{U.stopPropagation();const me=U.currentTarget.dataset.index||ne,{dispatch:Ee}=this.props;Ee({type:"entry:carousel:image:displayIndex:update",payload:Number(me)}),Ee({type:"setting:select:carousel:image",payload:{selectCarouselImageIndex:Number(me)}}),this.setState({selectedIndex:Number(me)}),this.props.dispatch({type:"entry:autoFillPanel:toggle:show",payload:{canClose:!1,openFrom:zd.G.ImageMenu}})}),(0,r.A)(this,"handleAssetUploadEnd",U=>{this.props.dispatch({type:"entry:replace:carousel:image",payload:{image:U}})}),(0,r.A)(this,"handleAssetUploadStart",U=>{this.props.dispatch({type:"setting:select:carousel:image",payload:{selectCarouselImageIndex:U}})}),(0,r.A)(this,"handleOpenEditLink",U=>{U.stopPropagation();const ne=U.currentTarget.dataset.index,{dispatch:me}=this.props;me({type:"setting:select:carousel:image",payload:{selectCarouselImageIndex:Number(ne)}}),this.setState({showLinkEditor:!0,linkPositionY:U.clientY,imageIndex:ne}),this.props.dispatch({type:"settings:update:state",payload:{isShowLinkPanel:!0}}),me(_d.R7.command.subItaSelectCommand({type:"carouselImage",imageIndex:ne}))}),(0,r.A)(this,"handleCloseLinkEditor",U=>{this.setState({showLinkEditor:!1,imageIndex:-1}),this.props.dispatch({type:"settings:update:state",payload:{isShowLinkPanel:!1}})}),(0,r.A)(this,"handleClick",U=>{U.stopPropagation(),this.setState({selectedIndex:parseInt(U.currentTarget.dataset.index)}),this.props.dispatch({type:"entry:carousel:image:displayIndex:update",payload:Number(U.currentTarget.dataset.index)}),this.props.dispatch({type:"setting:select:carousel:image",payload:{selectCarouselImageIndex:Number(U.currentTarget.dataset.index)}})}),(0,r.A)(this,"genAssetsViewer",(U,ne)=>{let{asset:me,linkCids:Ee,fillType:Ue}=U;const{dragIndex:at,orderThroughDrag:Ht,dragDelta:xo,showLinkEditor:Po}=this.state,{carouselImageIndex:nn,theme:is,isExperience:Bn,isLoggedExperience:$s,rootProject:qs,currentUser:Mi,currentOrg:Xi,innerLinks:na}=this.props,Xa=at===ne,Ga=Po&&nn===ne,{hasUiInteractiveIta:xr}=(0,ed.HW)(na,Ee),Br=xr;let Qa,vr;if(Xa){const al=fo(at);Qa=al[0]+xo[0],vr=al[1]+xo[1]}else{const al=Ht.indexOf(ne),mr=fo(al);Qa=mr[0],vr=mr[1]}return(0,a.jsxs)("div",{className:"asset-viewer asset-box "+(this.state.selectedIndex===ne?"selected":"")+" "+(Xa?"dragging":""),style:{transform:"translate("+Qa+"px, "+vr+"px)"},"data-index":ne,onMouseDown:this.handleDragAssetStart,onDoubleClick:this.handleManageAsset,onClick:this.handleClick,children:[(0,a.jsx)(vd.A,{src:(0,jl.Kf)(me),backgroundColor:jt[is],fillType:Ue}),(0,a.jsx)(kd,{isLoggedExperience:$s,isExperience:Bn,isHasAsset:!!me,assetIndex:ne,rootProject:qs,onUploadStart:this.handleAssetUploadStart,onUploadEnd:this.handleAssetUploadEnd,onRemove:this.handleDeleteAsset,onUploadByLibrary:this.handleManageAsset,currentUser:Mi,currentOrg:Xi,onOpenAutoFillPanel:this.handleOpenAutoFillPanel}),(0,a.jsx)("i",{className:"asset-link-btn "+(Ga?"is-open":"")+" "+(Br?"is-linked":""),"data-index":ne,onClick:this.handleOpenEditLink,onMouseDown:this.stopDeleteBtnPress,onDoubleClick:this.stopDeleteBtnPress,children:Yn})]},"asset-box-"+ne)}),(0,r.A)(this,"handleAddAsset",()=>this.handleAddSlides("")),(0,r.A)(this,"handleAddSlides",U=>{const{assets:ne}=this.state,me=[...ne,{asset:(0,jl.q4)("Carousel",U).key,linkCids:"",fillType:"fill"}];this.props.handleChange(me),this.handleCloseLinkEditor();const Ee=me.length-1;this.props.dispatch({type:"setting:select:carousel:image",payload:{selectCarouselImageIndex:Ee}}),this.props.dispatch({type:"entry:carousel:image:displayIndex:update",payload:Number(Ee)}),this.setState({selectedIndex:Number(Ee)})}),(0,r.A)(this,"stopDeleteBtnPress",U=>U.stopPropagation()),(0,r.A)(this,"handleDeleteAsset",U=>{const{assets:ne}=this.state,me=[...ne.slice(0,U),...ne.slice(U+1)];this.props.dispatch({type:"setting:select:carousel:image",payload:{selectCarouselImageIndex:null}}),this.props.handleChange(me)}),(0,r.A)(this,"handleDragUploadLeave",()=>{this.mask.classList.remove("active")}),(0,r.A)(this,"handleDragUploadOver",U=>{U.stopPropagation(),U.preventDefault(),this.mask.classList.add("active"),U.nativeEvent.dataTransfer.dropEffect="copy"}),(0,r.A)(this,"handleDropUpload",U=>{U.stopPropagation(),U.preventDefault();const{rootProject:ne,currentUser:me,currentOrg:Ee}=this.props;this.mask.classList.remove("active"),(0,Ap.i3)({files:U.nativeEvent.dataTransfer.files,rootProject:ne,callback:Ue=>this.handleAddSlides(Ue.image)},me,Ee)})}static getDerivedStateFromProps(U,ne){return ne.needForceUpdate||U.assets!==ne.assets?{assets:U.assets,dragIndex:null,dragDelta:[0,0],orderThroughDrag:Eo(U.assets.length),needForceUpdate:!1}:ne}componentWillUnmount(){this.props.dispatch({type:"setting:select:carousel:image",payload:{selectCarouselImageIndex:null}})}render(){const{assets:U,dragIndex:ne,orderThroughDrag:me,showLinkEditor:Ee,linkPositionY:Ue,selectedIndex:at,imageIndex:Ht}=this.state,{height:xo,verticalMargin:Po,countInRow:nn}=Zt,is=Math.ceil((U.length+1)/nn)*(xo+Po)-Po,Bn=fo(U.length),$s={transform:"translate("+Bn[0]+"px, "+Bn[1]+"px)"},qs=ne!==null,Mi=fo(me.indexOf(ne)),Xi={transform:"translate("+Mi[0]+"px, "+Mi[1]+"px)"};return(0,a.jsxs)("section",{className:"carousel-asset-section",type:"panel-body",style:{height:is+"px"},onDragOver:this.handleDragUploadOver,children:[U.map(this.genAssetsViewer),(0,a.jsx)("div",{className:"add-asset asset-box",style:$s,onClick:this.handleAddAsset,children:$n}),qs&&(0,a.jsx)("div",{className:"drag-target asset-box",style:Xi}),(0,a.jsx)("div",{className:"mask",ref:this.setMaskRef,onDragLeave:this.handleDragUploadLeave,onDragOver:this.handleDragUploadOver,onDrop:this.handleDropUpload}),Ee&&(0,a.jsx)(Ge,{onClose:this.handleCloseLinkEditor,anchorMeta:{assets:U,imageIndex:Ht,type:"carousel"},fromType:"carouselImage"})]})}}Dt.propTypes={assets:Xl().array,carouselImageIndex:Xl().number,handleChange:Xl().func,dispatch:Xl().func,theme:Xl().string,isExperience:Xl().bool,isLoggedExperience:Xl().bool,rootProject:Xl().object,innerLinks:Xl().array,currentUser:Xl().object,currentOrg:Xl().object};const Zt={width:66,height:48,horizontalMargin:5,verticalMargin:8,countInRow:3},fo=L=>{const{width:U,height:ne,horizontalMargin:me,verticalMargin:Ee,countInRow:Ue}=Zt,at=Math.floor(L/Ue),Ht=L%Ue;return[(U+me)*Ht,(ne+Ee)*at]},Eo=L=>{const U=[];for(let ne=0;ne<L;ne++)U.push(ne);return U},Bo=(L,U,ne)=>{const me=L.slice(U,U+1)[0],Ee=[...L.slice(0,U),...L.slice(U+1)];return[...Ee.slice(0,ne),me,...Ee.slice(ne)]},xn=(L,U,ne)=>{let[me,Ee]=L;const[Ue,at]=fo(U),Ht=[Ue+me,at+Ee],{width:xo,height:Po,horizontalMargin:nn,verticalMargin:is,countInRow:Bn}=Zt,$s=Math.min(Math.ceil(ne/Bn)-1,Math.max(0,Math.floor(Ht[1]/(Po+is)))),qs=Math.min(2,Math.max(0,Math.floor(Ht[0]/(xo+nn)))),Mi=$s*Bn+qs,Xi=Eo(ne),na=Bo(Xi,U,Mi);return{newDragIndex:Mi,newOrder:na}},Qo=(L,U)=>U.map(ne=>L[ne]),Yn=(0,a.jsx)("svg",{width:"12px",height:"16px",viewBox:"0 0 12 16",children:(0,a.jsx)("path",{d:"M4.77273049,10 C4.69821385,10 4.6236972,9.98939518 4.54918056,9.95758071 C4.35046951,9.87274214 4.23869455,9.68185535 4.28837231,9.49096856 L4.9590221,6.83976317 L3.34449484,6.35194137 C3.19546155,6.30952209 3.07126714,6.20347387 3.02158938,6.06561119 C2.97191162,5.92774851 3.00916994,5.78988583 3.12094491,5.68383761 L6.5859688,2.15243202 C6.73500208,2.00396452 6.97097145,1.96154524 7.1696825,2.03577899 C7.36839355,2.11001274 7.49258795,2.30089953 7.45532963,2.49178632 L6.93371313,5.24903993 L8.59791815,5.54597493 C8.77179032,5.5777894 8.90840416,5.68383761 8.97050137,5.82170029 C9.03259857,5.9701678 8.99534025,6.1186353 8.87114584,6.23528834 L5.1453137,9.8515325 C5.05837762,9.94697589 4.90934433,10 4.77273049,10 Z",id:"Shape"})}),$n=(0,a.jsx)("svg",{width:"12px",height:"12px",viewBox:"0 0 12 12",children:(0,a.jsx)("path",{d:"M5,5 L5,1 C5,0.44771525 5.44771525,1.01453063e-16 6,0 C6.55228475,-1.01453063e-16 7,0.44771525 7,1 L7,5 L11,5 C11.5522847,5 12,5.44771525 12,6 C12,6.55228475 11.5522847,7 11,7 L7,7 L7,11 C7,11.5522847 6.55228475,12 6,12 C5.44771525,12 5,11.5522847 5,11 L5,7 L1,7 C0.44771525,7 6.76353751e-17,6.55228475 0,6 C-6.76353751e-17,5.44771525 0.44771525,5 1,5 L5,5 Z",id:"Combined-Shape"})}),ls=u.Ay.div.withConfig({displayName:"styles__StyledCarouselSettings",componentId:"sc-1fayona-0"})(["overflow:unset;.carousel-asset-section{position:relative;box-sizing:content-box;width:210px;padding-top:8px;padding-bottom:8px;}.asset-box{position:absolute;left:14px;display:inline-block;width:","px;height:","px;background-color:",";border:1px solid transparent;border-radius:4px;overflow:hidden;vertical-align:middle;}.selected{border:1px solid ",";outline:1px solid ",";outline-offset:-2px;}.asset-viewer{.image-wrapper{width:100%;height:100%;border-radius:1px;overflow:hidden;img{width:100%;}span{background:",";svg{width:32px;height:32px;color:",";}}}.asset-menu-btn{opacity:0;position:absolute;bottom:4px;right:4px;display:flex;justify-content:center;align-items:center;cursor:pointer;.library-menu{color:",";width:16px;height:16px;}&:hover,&.hover{opacity:1;}}.asset-link-btn{position:absolute;right:4px;top:4px;width:12px;height:12px;border-radius:2px;background-color:",";display:flex;justify-content:center;align-items:center;cursor:pointer;svg{fill:",";margin:3px 0 0 0;}&.is-linked{background-color:",";svg{fill:#fff;}}&.is-open{background-color:#fcfcfc;svg{fill:",";}}}&:hover{.asset-menu-btn{opacity:1;}}&.dragging{z-index:999;border-color:transparent;.asset-delete-btn{opacity:0;}.asset-link-btn{opacity:0;}}}.add-asset{background:",";svg{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);fill:",";cursor:pointer;}}.drag-target{border:1px solid ",";background:",";}.line{justify-content:space-between;.left-label{width:auto;}.right-content{width:140px;&.switch-container{padding-left:7px;}&.color-btn-container{padding-left:3px;}.direction-select,.interval-value{width:100%;}}}.border-radius-panel{justify-content:space-between;}.mask{display:none;position:absolute;top:-30px;left:0;width:calc(100% - 6px);height:calc(100% + 30px);border:2px solid rgba(41,144,248,1);background-color:rgba(41,144,248,0.06);&.active{display:block;}}.divider{border-top:1px solid ",';margin:4px 0;}[type="panel-body"]{&.carousel-section{padding:8px 16px;}}'],Zt.width,Zt.height,L=>L.theme.color_bg_white,L=>L.theme.color_proto,L=>L.theme.color_proto,L=>L.theme.color_bg_card,L=>L.theme.color_text_L3,L=>L.theme.color_text_L1,L=>L.theme.color_btn_secondary_active,L=>L.theme.color_text_L3,L=>L.theme.color_proto,L=>L.theme.color_proto,L=>L.theme.color_bg_card,L=>L.theme.color_text_disabled01,L=>L.theme.color_proto,L=>L.theme.color_bg_card,L=>L.theme.color_bg_border_01);class Ns extends p.PureComponent{render(){return(0,a.jsx)(ls,{children:this.props.children})}}var Cs=e(5115),Us=e(78570),Qs=e(19216);class Bs extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"mask",null),(0,r.A)(this,"DIRECTION_OPTIONS",[{label:I18N.SettingPanel.horizontal,value:"horizontal"},{label:I18N.SettingPanel.vertical,value:"vertical"}]),(0,r.A)(this,"handleChange",(U,ne)=>{const{onChange:me,dispatch:Ee,selections:Ue}=this.props;me({value:U,attr:ne,dispatch:Ee,selections:Ue})}),(0,r.A)(this,"handleChangeCarousel",(U,ne)=>{const{onChange:me,dispatch:Ee,selections:Ue}=this.props;me({value:U,attr:ne,dispatch:Ee,supAttr:"carousel",selections:Ue})}),(0,r.A)(this,"handleAssetsChange",U=>this.handleChangeCarousel(U,"slides")),(0,r.A)(this,"handleDirectionChange",U=>this.handleChangeCarousel(U==="vertical","vertical")),(0,r.A)(this,"handleIntervalChange",U=>this.handleChangeCarousel(Number(U),"interval")),(0,r.A)(this,"handleAutoShiftChange",U=>this.handleChangeCarousel(U,"autoShift")),(0,r.A)(this,"handlePointersVisibilityChange",U=>this.handleChangeCarousel(U,"showPointers"))}render(){const{carousel:U,carouselImageIndex:ne,dispatch:me,theme:Ee,borderRadius:Ue,isLoggedExperience:at,isExperience:Ht,rootProject:xo,currentUser:Po,currentOrg:nn,onChange:is,node:Bn,selections:$s}=this.props,{DIRECTION_OPTIONS:qs}=this,{slides:Mi,vertical:Xi,autoShift:na,interval:Xa,showPointers:Ga,pointerBg:xr,pointerFg:Br}=U,Qa=Xi?"vertical":"horizontal",vr=(0,Qs.DS)(Bn.widgetStore.sdkStore,Bn.key,Bn.runningIsEditingCombo,Bn.editingBDanliKey);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ho.A,{title:I18N.SettingPanel.inspector.carousel,children:(0,a.jsx)(Dt,{assets:Mi,carouselImageIndex:ne,handleChange:this.handleAssetsChange,dispatch:me,theme:Ee,isLoggedExperience:at,isExperience:Ht,rootProject:xo,currentUser:Po,currentOrg:nn,innerLinks:vr})}),(0,a.jsx)("div",{className:"divider"}),(0,a.jsxs)("section",{className:"carousel-section",type:"panel-body",children:[(0,a.jsxs)("div",{className:"line height-32",children:[(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.autoShift}),(0,a.jsx)("div",{className:"right-content switch-container",children:(0,a.jsx)(Ys.A,{size:"small",isIOS:!0,isChecked:na,onChange:this.handleAutoShiftChange})})]}),(0,a.jsxs)("div",{className:"line height-32",children:[(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.title}),(0,a.jsx)("div",{className:"right-content",children:(0,a.jsx)(ri.mq,{className:"direction-select",menuClassName:ri.it,attr:"direction",value:Qa,optionList:qs,onChange:this.handleDirectionChange})})]}),na&&(0,a.jsxs)("div",{className:"line height-32",children:[(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.interval}),(0,a.jsx)("div",{className:"right-content",children:(0,a.jsx)(ri.mq,{className:"interval-value",attr:"interval",suffix:Ai,value:Xa,optionList:Oi,onChange:this.handleIntervalChange})})]}),(0,a.jsx)($l,{className:"border-radius-panel",canSetSingleRadius:!0,borderRadius:Ue,onChange:is,dispatch:me,selections:$s,show:!0})]}),(0,a.jsx)("div",{className:"divider"}),(0,a.jsxs)("section",{className:"carousel-section",type:"panel-body",children:[(0,a.jsxs)("div",{className:"line height-32",children:[(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.showPointers}),(0,a.jsx)("div",{className:"right-content switch-container",children:(0,a.jsx)(Ys.A,{size:"small",isIOS:!0,isChecked:Ga,onChange:this.handlePointersVisibilityChange})})]}),Ga&&(0,a.jsxs)(p.Fragment,{children:[(0,a.jsxs)("div",{className:"line height-32",children:[(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.pointerBg}),(0,a.jsx)("div",{className:"right-content color-btn-container",children:(0,a.jsx)(Qn.R_,{className:Qn.Fw+" point-bg",attr:"pointerBg",color:xr,onChange:this.handleChangeCarousel})})]}),(0,a.jsxs)("div",{className:"line height-32",children:[(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.pointerFg}),(0,a.jsx)("div",{className:"right-content color-btn-container",children:(0,a.jsx)(Qn.R_,{className:Qn.Fw+" point-bg",attr:"pointerFg",color:Br,onChange:this.handleChangeCarousel})})]})]})]})]})}}const Ws=(0,o.Ng)(L=>{const U=(0,g.PL)(L),ne=(0,g.HW)(L),me=(0,g.wA)(L),Ee=(0,Cs.Yg)(L),Ue=(0,Us.O4)(L);return{rootProject:U,currentUser:ne,currentOrg:me,carouselImageIndex:Ee,theme:Ue}})(Bs),ci=[1e3,1500,2e3,2500,3e3,3500,4e3,4500,5e3],Ai="ms",Qi=L=>({label:L+" "+Ai,value:L}),Oi=ci.map(Qi),Ii={component:Ws,params:{},getter:[L=>{let{selectedTrees:U,isLoggedExperience:ne,isExperience:me}=L;const Ue=U.map(Po=>Po.widget)[0],at=sdkStore.getHotItem(Ue.cid).hotAttr,{borderRadius:Ht,carousel:xo}=at;return{isExperience:me,isLoggedExperience:ne,carousel:xo,borderRadius:Ht,node:U[0]}}],setter:{onChange:bi.c}},$a=()=>[Ns,[Ii,"CarouselInfo"]],Re=L=>{let{children:U}=L;return(0,a.jsx)("div",{children:U})},je=(0,u.Ay)(ho.A).withConfig({displayName:"styles__StyledFixedSlider",componentId:"sc-16tl11-0"})(["border-bottom:1px solid ",';&.fixed-slider-body{[type="screen-body"]{padding:0 16px;}.fixed-slider-line{display:flex;align-items:center;justify-content:space-between;margin-left:-5px;margin-right:28px;.input-number{width:72px;.title{width:24px;height:24px;padding:0;flex-shrink:0;margin-left:2px;.slider-icon{width:20px;height:20px;color:#999;}}input{margin-left:4px;}input::placeholder{color:',";}}}}"],L=>L.theme.color_bg_border_02,L=>L.theme.color_text_L2),et=(0,a.jsx)(S.C,{className:"slider-icon",name:"setting_panel/fixedSlider/slider_hh"}),St=(0,a.jsx)(S.C,{className:"slider-icon",name:"setting_panel/fixedSlider/slider_fh"});class vt extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleHeaderHeight",U=>{const{fh:ne,canvasHeight:me,onChange:Ee,dispatch:Ue,selections:at}=this.props;U+ne>me-14&&(U=me-ne-14),Ee({value:U,attr:"stickyHeaderHeight",dispatch:Ue,selections:at}),(0,$t.A9)({attr:"stickyHeaderHeight"})}),(0,r.A)(this,"handleHiddenNumberLineType",()=>{const{dispatch:U}=this.props;U({type:"set:numberLineType:show",payload:{type:""}})}),(0,r.A)(this,"handleBeforeNumberLineTypeForHh",()=>{const{dispatch:U}=this.props;U({type:"set:numberLineType:show",payload:{type:"hh"}})}),(0,r.A)(this,"handleBeforeNumberLineTypeForFh",()=>{const{dispatch:U}=this.props;U({type:"set:numberLineType:show",payload:{type:"fh"}})}),(0,r.A)(this,"handleFooterHeight",U=>{const{hh:ne,canvasHeight:me,onChange:Ee,dispatch:Ue,selections:at}=this.props;U+ne>me-14&&(U=me-ne-14),Ee({value:U,attr:"stickyFooterHeight",dispatch:Ue,selections:at}),(0,$t.A9)({attr:"stickyFooterHeight"})})}render(){const{show:U,hh:ne,fh:me,isShowMultipleFh:Ee,isShowMultipleHh:Ue,placeholderHh:at,placeholderFh:Ht}=this.props;return U?(0,a.jsx)(je,{title:I18N.SettingPanel.fixedslider,className:"fixed-slider-body",children:(0,a.jsx)("section",{type:"screen-body",children:(0,a.jsxs)("div",{className:"fixed-slider-line height-32",children:[(0,a.jsx)(pt.s,{toolTipContent:I18N.SettingPanel.top_fixed_slider,direction:"down",withToolTip:!0,className:"input-number",min:0,cursorSize:"row-resize",title:et,value:Ue?void 0:ne,isNotVerify:Ue,placeholder:at,onConfirm:this.handleHeaderHeight,onAfterChangeValue:this.handleHiddenNumberLineType,onBeforeChangeValue:this.handleBeforeNumberLineTypeForHh}),(0,a.jsx)(pt.s,{toolTipContent:I18N.SettingPanel.bottom_fixed_slider,direction:"down",withToolTip:!0,className:"input-number",min:0,cursorSize:"row-resize",cursorDirection:!1,title:St,value:Ee?void 0:me,isNotVerify:Ee,placeholder:Ht,onConfirm:this.handleFooterHeight,onAfterChangeValue:this.handleHiddenNumberLineType,onBeforeChangeValue:this.handleBeforeNumberLineTypeForFh})]})})}):null}}const no={component:vt,params:{},getter:[L=>{let{selectedTrees:U,editingPanelCid:ne,editingPanelRefPage:me}=L;const Ee=U.map(nn=>nn.widget),Ue=new Set(Ee.map(nn=>nn.stickyHeaderHeight)).size!==1,at=new Set(Ee.map(nn=>nn.stickyFooterHeight)).size!==1,Ht=!ne&&!me,xo=Ue?I18N.SettingPanel.multiple_value:"",Po=at?I18N.SettingPanel.multiple_value:"";return{show:Ht,hh:Ee[0].stickyHeaderHeight,fh:Ee[0].stickyFooterHeight,canvasHeight:Ee[0].h,isShowMultipleHh:Ue,isShowMultipleFh:at,placeholderHh:xo,placeholderFh:Po}}],setter:{onChange:bi.c}},$o=()=>[Re,[no,"StickyAreaInfo"]];var gn=e(95230);const En=(0,u.Ay)(ho.A).withConfig({displayName:"styles__StyledLayoutGridSettingsPanel",componentId:"sc-1bebkfz-0"})(['[type="screen-body"]{padding:0 16px;.screen-line{height:32px;display:flex;justify-content:space-between;align-items:center;margin-left:-6px;.dir-icon{width:24px;height:24px;margin:0 6px;display:flex;justify-content:center;align-items:center;.icon{width:24px;height:24px;color:',";}}.input{height:28px;flex:1;max-width:48.66px;&.middle-input{margin:0 4px;}input{padding-right:6px;}}&.grid-line{justify-content:flex-start;}}}"],L=>L.theme.color_text_L1),cs=["children"];class Zn extends p.Component{shouldComponentUpdate(U,ne,me){var Ee;return(Ee=(0,ps.dP)())!=null&&Ee.flag.isDraggingItem?!1:(0,Le.N)(cs).call(this,U,ne)}render(){return(0,a.jsx)(En,{title:I18N.PreferenceBar.layout,className:"screen-panel",children:(0,a.jsx)("section",{type:"screen-body",children:this.props.children})})}}const Zs={component:(0,p.memo)(L=>{let{layoutGrid:U,rowCount:ne,colWidth:me,onChange:Ee,dispatch:Ue,selections:at}=L;const{isGridLayout:Ht,gridSize:xo,isRowLayout:Po,rowHeight:nn,rowGutter:is,isColLayout:Bn,colCount:$s,colGutter:qs}=U,Mi=(Xi,na)=>{const Xa={...U,[na]:Xi};Ee({value:Xa,attr:"layoutGrid",dispatch:Ue,selections:at})};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"screen-line grid-line",children:[(0,a.jsx)(Ct.A,{className:"check "+Ct.p,attr:"isGridLayout",isChecked:Ht,onChange:(Xi,na)=>{Mi(Xi,na),(0,$t.A9)({attr:"isGridLayout",isOpen:!Ht})}}),(0,a.jsx)("div",{className:"dir-icon",children:(0,a.jsx)(S.C,{name:"setting_panel/layout/grid"})}),(0,a.jsx)(pt.A,{className:"input",attr:"gridSize",value:xo,min:1,max:99999,onConfirm:Mi})]}),(0,a.jsxs)("div",{className:"screen-line",children:[(0,a.jsx)(Ct.A,{className:"check "+Ct.p,attr:"isColLayout",isChecked:Bn,onChange:(Xi,na)=>{Mi(Xi,na),(0,$t.A9)({attr:"isColLayout",isOpen:!Bn})}}),(0,a.jsx)("div",{className:"dir-icon",children:(0,a.jsx)(S.C,{name:"setting_panel/layout/grid_column"})}),(0,a.jsx)(pt.s,{className:"input",attr:"colCount",value:$s,toolTipContent:I18N.SettingPanel.count,disabled:!Bn,min:1,onConfirm:Mi,direction:"down"}),(0,a.jsx)(pt.s,{className:"input middle-input",attr:"colGutter",value:qs,toolTipContent:I18N.SettingPanel.gutter,disabled:!Bn,min:0,onConfirm:Mi,direction:"down"}),(0,a.jsx)(pt.s,{className:"input",value:me,toolTipContent:I18N.SettingPanel.size,disabled:!0,min:0,direction:"down"})]}),(0,a.jsxs)("div",{className:"screen-line",children:[(0,a.jsx)(Ct.A,{className:"check "+Ct.p,attr:"isRowLayout",isChecked:Po,onChange:(Xi,na)=>{Mi(Xi,na),(0,$t.A9)({attr:"isRowLayout",isOpen:!Po})}}),(0,a.jsx)("div",{className:"dir-icon",children:(0,a.jsx)(S.C,{name:"setting_panel/layout/grid_row"})}),(0,a.jsx)(pt.s,{className:"input",attr:"rowCount",value:ne,toolTipContent:I18N.SettingPanel.rows,disabled:!Po,min:0,onConfirm:Mi,direction:"down"}),(0,a.jsx)(pt.s,{className:"input middle-input",attr:"rowGutter",value:is,toolTipContent:I18N.SettingPanel.gutter,disabled:!Po,min:0,onConfirm:Mi,direction:"down"}),(0,a.jsx)(pt.s,{className:"input",value:nn,toolTipContent:I18N.SettingPanel.size,disabled:!Po,min:0,direction:"down",onConfirm:Mi})]})]})}),params:{},getter:[L=>{let{selectedTrees:U}=L;const ne=U.map(Po=>Po.widget)[0],{rowGutter:me,rowHeight:Ee,colCount:Ue,colGutter:at}=ne.layoutGrid,Ht=Math.floor((ne.h-gn.nt.v)/(me+Ee)),xo=Math.round((ne.w-2*gn.nt.h-(Ue-1)*at)/Ue);return{layoutGrid:ne.layoutGrid,rowCount:Ht,colWidth:xo}}],setter:{onChange:bi.c}},ni=()=>[Zn,[Zs,"LayoutGridInfo"]],wi=(0,u.Ay)(ho.A).withConfig({displayName:"styles__StyledWebPagePanel",componentId:"sc-16c6qoj-0"})(["&.webpage-panel-container{header{.customize-title{order:1;}.angle-icon-wrap{order:2;}}}"]),xi=u.Ay.div.withConfig({displayName:"styles__StyledTipContent",componentId:"sc-16c6qoj-1"})(['position:absolute;top:20px;left:-55px;width:190px;background:#454647;color:#fff;flex-direction:column;justify-content:space-around;padding:16px 12px;border-radius:6px;z-index:1;transform:scaleY(-1);&:lang(en){width:240px;left:-95px;&::before{left:40%;}p{display:inline;white-space:normal;}}&::before{content:"";position:absolute;top:99%;left:29%;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #454647;}p{font-weight:400;line-height:20px;white-space:nowrap;}']),Fi=u.Ay.div.withConfig({displayName:"styles__StyledURLSettings",componentId:"sc-16c6qoj-2"})(["padding:8px 16px;textarea{min-height:80px;}"]),$i=L=>{const{url:U,placeholder:ne,handleURLChange:me,handleContentBoxBlur:Ee}=L;return(0,a.jsx)(Fi,{children:(0,a.jsx)(Ps.A,{placeholder:ne,content:U,onChange:me,onBlur:Ee})})},ga=L=>{const U=(me,Ee)=>{const{onChange:Ue,dispatch:at,selections:Ht}=L;Ue({value:me,attr:Ee,dispatch:at,supAttr:"webpage",selections:Ht})},ne=me=>{U(me[0],"url")};return(0,a.jsx)($i,{url:L.url,placeholder:I18N.SettingPanel.webpage_placeholder,handleURLChange:ne,handleContentBoxBlur:me=>{}})},_a="mp_"+"web_page_panel_container",za=()=>(0,a.jsxs)(xi,{children:[(0,a.jsx)("p",{children:I18N.SettingPanel.webpage_notice_tips1}),(0,a.jsx)("p",{children:I18N.SettingPanel.webpage_notice_tips2})]});class la extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{show:(0,Vo.Yt)(_a,!0,Vo.qW.Boolean)}),(0,r.A)(this,"handleChange",()=>{const{show:U}=this.state;(0,Vo.a0)(_a,!U,Vo.qW.Boolean),this.setState({show:!U})})}render(){return(0,a.jsx)(wi,{className:"webpage-panel-container",title:I18N.SettingPanel.inspector.web_address,renderTips:za,collapse:!this.state.show,onChange:this.handleChange,children:this.props.children})}}const qa={component:ga,params:{},getter:[L=>{let{selectedTrees:U}=L;const ne=U.map(Ee=>Ee.widget),{url:me}=(0,Ze.i)(ne,"webpage");return{url:me}}],setter:{onChange:bi.c}},rr=()=>[la,[qa]];var pr=e(38349);const Lr="mp_"+"video_panel_container",Tr=()=>(0,a.jsxs)(pr.fw,{children:[(0,a.jsx)("p",{dangerouslySetInnerHTML:{__html:I18N.SettingPanel.tip_on_online_video_platform}}),(0,a.jsxs)("div",{className:"icon-wrapper",children:[(0,a.jsx)(S.C,{name:"setting_panel/video/link",className:"colorful-svg"}),(0,a.jsx)(S.C,{name:"setting_panel/video/youku",className:"colorful-svg"}),(0,a.jsx)(S.C,{name:"setting_panel/video/bilibili",className:"colorful-svg"}),(0,a.jsx)(S.C,{name:"setting_panel/video/tencent",className:"colorful-svg"})]})]});class Nl extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{show:(0,Vo.Yt)(Lr,!0,Vo.qW.Boolean)}),(0,r.A)(this,"handleChange",()=>{const{show:U}=this.state;(0,Vo.a0)(Lr,!U,Vo.qW.Boolean),this.setState({show:!U})})}render(){const U=ENV.IS_WONDER_SHARE?null:Tr,{show:ne}=this.state;return(0,a.jsx)(pr.z5,{className:"video-panel-container",collapse:!ne,title:I18N.SettingPanel.inspector.video,renderTips:U,onChange:this.handleChange,children:this.props.children})}}const Il=u.Ay.div.withConfig({displayName:"styles__StyledURLSettings",componentId:"sc-mkc9mb-0"})(["padding:8px 16px;vertical-align:middle;textarea{min-height:80px;}"]),rl=L=>{const{url:U,placeholder:ne,handleURLChange:me,handleContentBoxBlur:Ee}=L;return(0,a.jsx)(Il,{children:(0,a.jsx)(Ps.A,{placeholder:ne,content:U,onChange:me,onBlur:Ee})})};var Ol=e(43109);const bc={component:L=>{const{videoSrc:U,isAutoplay:ne,isLoop:me,isMuted:Ee,isHideControls:Ue,onChange:at,dispatch:Ht,selections:xo}=L,Po=Bn=>{L.onChange({value:Bn[0],attr:"videoSrc",dispatch:L.dispatch,supAttr:"video",selections:xo})},nn=(Bn,$s)=>{at({value:Bn,attr:$s,supAttr:"video",dispatch:Ht,selections:xo})},is=Bn=>{const $s=I18N.SettingPanel.video_insert_succeed,qs=I18N.SettingPanel.video_insert_fail;(0,Ol.dB)(Bn[0])?MB.notice({text:$s}):MB.notice({text:qs})};return(0,a.jsxs)(pr.sr,{children:[(0,a.jsx)(rl,{url:U,placeholder:I18N.SettingPanel.video_url_setting_placeholder,handleURLChange:Po,handleContentBoxBlur:is}),(0,a.jsxs)("div",{className:"video-settings-checkboxes",children:[(0,a.jsx)(Ct.A,{label:I18N.SettingPanel.autoplay,className:Ct.p,attr:"isAutoplay",name:"autoplay",isChecked:ne,onChange:nn}),(0,a.jsx)(Ct.A,{label:I18N.SettingPanel.loop,className:Ct.p,attr:"isLoop",name:"loop",isChecked:me,onChange:nn}),(0,a.jsx)(Ct.A,{label:I18N.SettingPanel.muted,className:Ct.p,attr:"isMuted",name:"muted",isChecked:Ee,onChange:nn}),(0,a.jsx)(Ct.A,{label:I18N.SettingPanel.hide_controls,className:Ct.p,attr:"isHideControls",name:"hide-controls",isChecked:Ue,onChange:nn})]})]})},params:{},getter:[L=>{let{selectedTrees:U}=L;const me=U.map(Ee=>Ee.widget)[0];return{videoSrc:me.video.videoSrc,isAutoplay:me.video.isAutoplay,isLoop:me.video.isLoop,isMuted:me.video.isMuted,isHideControls:me.video.isHideControls}}],setter:{onChange:bi.c}},Ll=()=>[Nl,[bc]],tp=(0,u.Ay)(ho.A).withConfig({displayName:"styles__StyledAudioSubPanel",componentId:"sc-p6pe7b-0"})(["&.audio-panel-container{header{.customize-title{order:1;}.angle-icon-wrap{order:2;}}}"]),kl=u.Ay.div.withConfig({displayName:"styles__StyledAudioSettings",componentId:"sc-p6pe7b-1"})([".audio-settings-checkboxes{display:grid;grid-template-columns:123px 90px;padding:0 16px 0px 10px;&:lang(en){grid-template-columns:117px 106px;}label{min-width:100px;height:32px;}}"]),cc=u.Ay.div.withConfig({displayName:"styles__StyledAudioTipContent",componentId:"sc-p6pe7b-2"})(['position:absolute;top:22px;left:-35px;width:206px;background:#454647;color:#fff;flex-direction:column;justify-content:space-around;padding:12px 16px;border-radius:6px;z-index:1;transform:scaleY(-1);&::before{content:"";position:absolute;top:100%;left:19%;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #454647;}&:lang(en){&::before{left:18%;}}p{font-weight:400;line-height:20px;}']),bd="mp_"+"audio_panel_container",B0=()=>(0,a.jsx)(cc,{children:(0,a.jsx)("p",{children:I18N.SettingPanel.tip_on_supported_audio_coding_formats})});class kp extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{show:(0,Vo.Yt)(bd,!0,Vo.qW.Boolean)}),(0,r.A)(this,"handleChange",()=>{const{show:U}=this.state;(0,Vo.a0)(bd,!U,Vo.qW.Boolean),this.setState({show:!U})})}render(){const{show:U}=this.state;return(0,a.jsx)(tp,{className:"audio-panel-container",title:I18N.SettingPanel.inspector.audio,collapse:!U,renderTips:B0,onChange:this.handleChange,children:this.props.children})}}var _h=e(52611);const Dl=L=>{try{const U=new URL(L);if(!_h.YV.includes(U.href.split(".").slice(-1).join())||!_h.BF.includes(U.protocol))return!1}catch(U){return!1}return!0},Hd={component:L=>{const{isHidden:U,audioSrc:ne,isAutoplay:me,isLoop:Ee,isKeepAlive:Ue,onChange:at,dispatch:Ht,selections:xo}=L,Po=Bn=>{L.onChange({value:Bn[0],attr:"audioSrc",dispatch:L.dispatch,supAttr:"audio",selections:xo})},nn=(Bn,$s)=>{at({value:Bn,attr:$s,supAttr:"audio",dispatch:Ht,selections:xo})},is=Bn=>{const $s=I18N.SettingPanel.audio_insert_succeed,qs=I18N.SettingPanel.audio_insert_fail;Dl(Bn[0])?MB.notice({text:$s}):MB.notice({text:qs})};return(0,a.jsxs)(kl,{children:[(0,a.jsx)(rl,{url:ne,placeholder:I18N.SettingPanel.audio_url_setting_placeholder,handleURLChange:Po,handleContentBoxBlur:is}),(0,a.jsxs)("div",{className:"audio-settings-checkboxes",children:[(0,a.jsx)(Ct.A,{label:I18N.SettingPanel.autoplay,className:Ct.p,attr:"isAutoplay",name:"autoplay",isChecked:me,onChange:nn}),(0,a.jsx)(Ct.A,{label:I18N.SettingPanel.loop,className:Ct.p,attr:"isLoop",name:"loop",isChecked:Ee,onChange:nn}),(0,a.jsx)(Ct.A,{label:I18N.SettingPanel.keep_alive,className:Ct.p,attr:"isKeepAlive",name:"keep-alive",isChecked:Ue,onChange:nn}),(0,a.jsx)(Ct.A,{label:I18N.SettingPanel.hide_player,className:Ct.p,attr:"isHidden",name:"hidden",isChecked:U,onChange:nn})]})]})},params:{},getter:[L=>{let{selectedTrees:U}=L;const me=U.map(Ee=>Ee.widget)[0];return{audioSrc:me.audio.audioSrc,isAutoplay:me.audio.isAutoplay,isLoop:me.audio.isLoop,isKeepAlive:me.audio.isKeepAlive,isHidden:me.audio.isHidden}}],setter:{onChange:bi.c}},Ph=()=>[kp,[Hd]],Kd=(0,u.Ay)(ho.A).withConfig({displayName:"styles__StyledQRCodePanel",componentId:"sc-1o5wmsc-0"})(["&.qrcode-panel-container{header{.customize-title{order:1;}.angle-icon-wrap{order:2;}}}"]),Pp=u.Ay.div.withConfig({displayName:"styles__StyledQRCodeTipContent",componentId:"sc-1o5wmsc-1"})(['position:absolute;top:22px;left:-54px;width:240px;background:#454647;color:#fff;flex-direction:column;justify-content:space-around;padding:12px 16px;border-radius:6px;z-index:1;transform:scaleY(-1);&::before{content:"";position:absolute;top:100%;left:23%;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #454647;}&:lang(en){left:-69px;&::before{left:29%;}}p{a{text-decoration:underline;color:#80BCFF;&:hover{color:#A6D2FF;}}&:hover{visibility:visible;}font-weight:400;line-height:20px;}']),iu=u.Ay.div.withConfig({displayName:"styles__StyledURLSettings",componentId:"sc-1o5wmsc-2"})(["padding:0 14px 8px 14px;textarea{min-height:80px;}"]),a1="mp_"+"qrcode_panel_container",ru=()=>(0,a.jsx)(Pp,{children:(0,a.jsx)("p",{dangerouslySetInnerHTML:{__html:I18N.SettingPanel.tip_on_qrcode_link}})});class Zh extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{show:(0,Vo.Yt)(a1,!0,Vo.qW.Boolean)}),(0,r.A)(this,"handleChange",()=>{const{show:U}=this.state;(0,Vo.a0)(a1,!U,Vo.qW.Boolean),this.setState({show:!U})})}render(){return(0,a.jsx)(Kd,{className:"qrcode-panel-container",title:I18N.SettingPanel.inspector.qrcode,collapse:!this.state.show,onChange:this.handleChange,renderTips:ru,children:this.props.children})}}const lu=1273,Xh={component:L=>{const U=(me,Ee)=>{const{onChange:Ue,dispatch:at,selections:Ht}=L;Ue({value:me,attr:Ee,dispatch:at,supAttr:"qrCode",selections:Ht})},ne=me=>{U(me[0].slice(0,lu),"content")};return(0,a.jsx)(rl,{url:L.url,placeholder:I18N.SettingPanel.qrcode_url_setting_placeholder,handleURLChange:ne})},params:{},getter:[L=>{let{selectedTrees:U}=L;const ne=U.map(Ee=>Ee.widget),{content:me}=(0,Ze.i)(ne,"qrCode");return{url:me}}],setter:{onChange:bi.c}},cu=()=>[Zh,[Xh,"QRCodeInfo"]],r1=u.Ay.section.withConfig({displayName:"style__StyledTableInfo",componentId:"sc-ikrorw-0"})([".tableBorderLine{.tableBorderLineBody{padding:0 16px;}}.general-line{border-top:1px solid ",";padding:8px 14px;&.tableDimension{display:flex;margin-left:-5px;justify-content:space-between;padding:8px 16px;label{max-width:100px;.title{min-width:32px;&:lang(en){min-width:auto;white-space:nowrap;}}}}}"],L=>L.theme.color_bg_border_01);class l1 extends p.PureComponent{render(){return(0,a.jsx)(r1,{children:this.props.children})}}const Hc=u.Ay.div.withConfig({displayName:"styles__StylesBorderOpener",componentId:"sc-1vl3z9l-0"})(["display:flex;height:32px;transition:height 200ms ease-in-out 0s;align-items:center;margin-left:-6px;div[type=color-btn]{margin:0 6px;}.left-label{width:58px;}.border-collapse-body{flex:1;label{width:100%;}}"]);class Nh extends p.PureComponent{render(){const{border:U,borderName:ne,handleChange:me}=this.props,{bdrColor:Ee,bdrWidth:Ue,bdrIsVisible:at}=U,Ht=(0,a.jsx)(pt.A,{attr:"bdrWidth",value:Ue,optionList:ql.xq,onConfirm:me});return(0,a.jsxs)(Hc,{children:[(0,a.jsx)(Ct.A,{attr:"bdrIsVisible",className:Ct.p,isChecked:at,onChange:me}),(0,a.jsx)(Qn.R_,{className:Qn.Fw,attr:"bdrColor",color:Ee,onChange:me}),(0,a.jsx)("label",{className:"left-label",children:ne}),(0,a.jsx)("div",{className:"border-collapse-body height-32",children:Ht})]})}}(0,r.A)(Nh,"propTypes",{border:Xl().any,borderName:Xl().string,handleChange:Xl().func}),(0,r.A)(Nh,"defaultProps",{colorButtonAttr:"border"});class c1 extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleDimensions",(U,ne)=>{const{dispatch:me}=this.props;ne==="rowCount"&&me({type:"entry:table:change:rows",payload:U}),ne==="colCount"&&me({type:"entry:table:change:columns",payload:U}),this.handleChange(U,ne)}),(0,r.A)(this,"handleChange",(U,ne)=>{const{onChange:me,dispatch:Ee,selections:Ue}=this.props;me({value:U,attr:ne,dispatch:Ee,supAttr:"tableConfig",selections:Ue})}),(0,r.A)(this,"handleOuterBorderChange",(U,ne)=>{const{tableConfig:me}=this.props,Ue={...me.outerBorder,[ne]:U};this.handleChange(Ue,"outerBorder")}),(0,r.A)(this,"handleInnerBorderHChange",(U,ne)=>{const{tableConfig:me}=this.props,Ue={...me.innerBorderH,[ne]:U};this.handleChange(Ue,"innerBorderH")}),(0,r.A)(this,"handleInnerBorderVChange",(U,ne)=>{const{tableConfig:me}=this.props,Ue={...me.innerBorderV,[ne]:U};this.handleChange(Ue,"innerBorderV")})}render(){const{dispatch:U,tableConfig:ne}=this.props,{innerBorderV:me,innerBorderH:Ee,outerBorder:Ue,rowCount:at,colCount:Ht}=ne;return(0,a.jsxs)(r1,{children:[(0,a.jsxs)("div",{className:"general-line tableDimension",children:[(0,a.jsx)(pt.A,{className:"general-input",title:I18N.SettingPanel.row,attr:"rowCount",value:at,min:1,max:99999,onConfirm:this.handleDimensions}),(0,a.jsx)(pt.A,{className:"general-input",title:I18N.SettingPanel.column,attr:"colCount",value:Ht,min:1,max:99999,onConfirm:this.handleDimensions})]}),(0,a.jsx)(ho.A,{className:"tableBorderLine",title:I18N.SettingPanel.style,children:(0,a.jsxs)("div",{className:"tableBorderLineBody",children:[(0,a.jsx)(Nh,{canBorderWidth:!0,borderName:I18N.SettingPanel.border,border:Ue,width:0,height:0,handleChange:this.handleOuterBorderChange,dispatch:U}),(0,a.jsx)(Nh,{canBorderWidth:!0,borderName:I18N.SettingPanel.table_horizontal,border:Ee,width:0,height:0,handleChange:this.handleInnerBorderHChange,dispatch:U}),(0,a.jsx)(Nh,{canBorderWidth:!0,borderName:I18N.SettingPanel.table_vertical,border:me,width:0,height:0,handleChange:this.handleInnerBorderVChange,dispatch:U})]})})]})}}const L1={component:c1,params:{},getter:[L=>{let{selectedTrees:U}=L;const ne=U.map(Ue=>Ue.widget),me=(0,Ze.i)(ne,"tableConfig");return(0,Ze.i)(ne,"!version")===3&&(me.rowCount=(0,Ze.i)(ne,"heightList").length,me.colCount=(0,Ze.i)(ne,"widthList").length),{tableConfig:me}}],setter:{onChange:bi.c}},Gd=()=>[l1,[L1,"TableInfo"]];var du=e(72399);const sh="mp_options",D1=["children"];class h0 extends p.Component{constructor(){super(...arguments),(0,r.A)(this,"state",{show:(0,Vo.Yt)(sh,!0,Vo.qW.Boolean)})}shouldComponentUpdate(U,ne,me){var Ee;return(Ee=(0,ps.dP)())!=null&&Ee.flag.isDraggingItem?!1:(0,Le.N)(D1).call(this,U,ne)}render(){return(0,a.jsx)(ho.A,{title:I18N.SettingPanel.inspector.options,children:this.props.children})}}var R0=e(57947),pu=e(63711),Ri=e.n(pu),Np=e(51050);const B1=u.Ay.ul.withConfig({displayName:"styles__StyledDragMenu",componentId:"sc-1fxrfo8-0"})(["display:flex;flex-direction:column;align-items:flex-end;position:relative;li.setting-drag-menu-item{display:flex;flex-direction:column;width:100%;}"]),R1=u.Ay.div.withConfig({displayName:"styles__StyledDragItem",componentId:"sc-1fxrfo8-1"})(["&.dragItemWrap{min-height:32px;display:flex;align-items:center;justify-content:flex-end;cursor:move;&:hover{.dragHandArea{opacity:1;}}.dragHandArea{width:16px;flex-shrink:0;display:flex;align-items:center;justify-content:center;color:",";opacity:0;.dragHand{width:16px;height:16px;}}.expander{display:flex;align-items:center;justify-content:center;cursor:pointer;width:16px;height:24px;.arrowIcon{color:",";width:16px;height:16px;&:not(.is-expand){transform:rotate(-90deg);}}}&:hover{.itemContent .operations{opacity:1;.link,.selected{display:flex;}}}.itemContent{display:flex;justify-content:space-between;align-items:center;min-height:24px;position:relative;width:100%;flex-shrink:0;.iconWrap{position:absolute;display:flex;padding-left:5px;height:100%;align-items:center;cursor:pointer;.iconContent{width:16px;height:16px;border-radius:4px;display:flex;align-items:center;justify-content:center;&:not(.active):hover{background-color:",";}&:not(.active):active{background-color:",";}&.active{background-color:",";color:#fff;}}&::after{display:flex;content:'';width:1px;height:16px;background-color:",";margin-left:5px;}.svg-icon{width:14px;}}div.itemInput{flex:1;margin-right:6px;min-width:74px;background-color:",";border-radius:4px;height:28px;line-height:24px;padding-left:6px;color:",";border:2px solid ",";overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:auto;-webkit-user-select:text;user-select:text;&[contenteditable]{min-width:126px;&:focus{height:auto;white-space:break-spaces;}}&:focus{outline:none;border:2px solid #1684fc;}}input.itemInput{flex:1;margin-right:6px;min-width:74px;background-color:",";border-radius:4px;height:28px;line-height:28px;padding-left:6px;color:",";border:2px solid ",";text-overflow:ellipsis;&.hasPadding{line-height:14px;padding-left:32px;}&:focus{border:2px solid #1684fc;}}.actions{display:flex;color:#7d8b94;span{display:flex;width:24px;height:24px;align-items:center;justify-content:center;cursor:pointer;border-radius:4px;color:",";svg.svg-icon{width:10px;}&:not(.disabled):hover{background-color:",";}&:not(.disabled):active{background-color:",";}&.disabled{cursor:not-allowed;color:",";}&.hide{opacity:0;cursor:auto;}}span.remove{padding-top:9px;}}.operations{position:absolute;right:56px;top:6px;display:flex;background-color:",";opacity:0;&.show{opacity:1;}&.noIncreaseAction{right:32px;}.link,.selected{display:none;width:16px;height:16px;border-radius:4px;align-items:center;justify-content:center;cursor:pointer;&:not(.show):not(.active):hover{background-color:",";}}.link{svg.svg-icon{width:6px;path{fill:",";}}&.show{display:flex;.svg-icon.icon{path{fill:#1684fc;}}}&.active{display:flex;}&:not(.show):active,&.active{background-color:#1684fc;.svg-icon.icon{path{fill:#fff;}}}}.selected{&::after{display:inline-block;content:'';width:8px;height:8px;border-radius:50%;border:2px solid #7d8b94;background-color:#fff;}&.show{display:flex;&::after{border:2px solid #1684fc;}}&:not(.show):active{background-color:#dbdbdb;}}}}}"],L=>L.theme.color_text_L3,L=>L.theme.color_text_L1,L=>L.theme.color_btn_secondary_hover,L=>L.theme.color_btn_secondary_active,L=>L.theme.color_proto,L=>L.theme.color_btn_secondary_active,L=>L.theme.color_bg_card,L=>L.theme.color_text_L2,L=>L.theme.color_bg_card,L=>L.theme.color_bg_card,L=>L.theme.color_text_L2,L=>L.theme.color_bg_card,L=>L.theme.color_text_L1,L=>L.theme.color_btn_secondary_hover,L=>L.theme.color_btn_secondary_active,L=>L.theme.color_text_disabled01,L=>L.theme.color_bg_card,L=>L.theme.color_btn_secondary_active,L=>L.theme.color_text_L3);var d1=e(56812),p1=e(73773),Lh=e(72254),ih=e(51944);class $d extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{isFocus:!1}),(0,r.A)(this,"setElementRef",U=>this.$item=U),(0,r.A)(this,"setInputElementRef",U=>this.$input=U),(0,r.A)(this,"handleToggleFocus",()=>{this.setState({isFocus:!this.state.isFocus})}),(0,r.A)(this,"handleFocus",U=>{const{hasMissFontHi:ne}=this.props;if(U.preventDefault(),U.stopPropagation(),ne){U.target.blur(),MB.action(mn.y.entryKey["font:miss:modal:open"]);return}U.target.select(),this.handleToggleFocus()}),(0,r.A)(this,"handleBlur",()=>{this.handleToggleFocus()}),(0,r.A)(this,"handleContentEditableDivFocus",U=>{const{hasMissFontHi:ne}=this.props;if(ne){U.target.blur(),MB.action(mn.y.entryKey["font:miss:modal:open"]);return}window.getSelection().selectAllChildren(U.target),this.handleToggleFocus()}),(0,r.A)(this,"handleContentEditableDivBlur",U=>{window.getSelection().empty(),this.handleContentEditableDivChange(U),this.handleToggleFocus()}),(0,r.A)(this,"handleChangeName",U=>{const{node:ne,parent:me,path:Ee,onUpdate:Ue}=this.props,at={...ne.data,name:U.target.value};Ue({data:at,parent:me,path:Ee})}),(0,r.A)(this,"handleContentEditableDivChange",U=>{const{node:ne,parent:me,path:Ee,onUpdate:Ue}=this.props,at={...ne.data,name:U.target.textContent};Ue({data:at,parent:me,path:Ee})}),(0,r.A)(this,"handleMouseDown",U=>{const{onMouseDown:ne,node:me,parent:Ee,level:Ue,path:at}=this.props;ne(U,me,Ee,this.$item,Ue,at)}),(0,r.A)(this,"handleExpand",U=>{U.stopPropagation();const{node:ne,onUpdate:me,parent:Ee,path:Ue}=this.props,at={...ne.data,expanded:!ne.data.expanded};me({data:at,parent:Ee,path:Ue})}),(0,r.A)(this,"handleOpenLinkPanel",U=>{const{onOpenLinkPanel:ne,node:me,path:Ee}=this.props;ne({y:U.clientY,node:me,path:Ee,e:U})}),(0,r.A)(this,"handleSetSelectedValue",()=>{const{onSetSelectedValue:U,node:ne,path:me}=this.props;U({node:ne,path:me})}),(0,r.A)(this,"handleExpandIconPanel",U=>{const{onClickableIconPanel:ne,node:me,path:Ee}=this.props;ne({y:U.clientY,node:me,path:Ee})}),(0,r.A)(this,"handleBlurInput",U=>{const{key:ne,shiftKey:me}=U,Ee=ne===" ";ne===p1._.Enter&&!me&&U.target.blur(),Ee&&(0,Sn.kI)(U)}),(0,r.A)(this,"handlePaste",U=>{U.stopPropagation(),U.preventDefault();let ne="";const me=U.originalEvent||U;me.clipboardData&&me.clipboardData.getData&&(ne=me.clipboardData.getData("text/plain")),document.execCommand("insertText",!1,ne)}),(0,r.A)(this,"handleRemove",U=>{const{path:ne,parent:me,dispatch:Ee,onRemoveChildItems:Ue}=this.props;U.children.length>0?Ee({type:"modal:update:state",payload:{optionRemoveModal:{isOpen:!0,data:{parent:me,path:ne}}}}):Ue({parent:me,path:ne})})}render(){const{cid:U,path:ne,parent:me,node:Ee,node:{children:Ue,data:{linkCids:at,expanded:Ht,name:xo,icon:Po}},level:nn,maxLevel:is,minDepth:Bn,innerLinks:$s,type:qs,onAddChildItems:Mi,onRemoveChildItems:Xi,onUpdate:na,onMouseDown:Xa,onOpenLinkPanel:Ga,onSetSelectedValue:xr,isShowExpander:Br,isShowIncreaseAction:Qa,isShowSelectedOperation:vr,clickableIconNode:al,clickableLinkNode:mr,isDisabledDecrease:dd,isDisabledIncrease:Ql,minTopLevelOptionLength:Sc,maxOptionLength:n0,isExpandEditableContentOnEditing:cl,onClickableIconPanel:o1,hasMissFontHi:Fh,optionDataSelected:jp,widgetVersion:v0,dispatch:Pr}=this.props,{isFocus:Op}=this.state,ap=(0,ih.lt)({optionData:Ee,optionDataSelected:jp,widgetVersion:v0});let uh;qs===D.x.WTree?uh=!0:uh=Po&&nn===1;const X1=Bn>1&&uh?44:Br?32:16,id={paddingLeft:(nn-1)*16+X1+"px"},ad=Ue.length>0,mh=nn===1?Ht&&ad:ad,n1=nn===1&&Br,A1=Qa&&nn<is&&!Ql;let Uh;qs===D.x.WTree?Uh=vr:Uh=vr&&!ad;const Se=!!at||ap||ne===mr.path;let I1=!ad;qs===D.x.WTree||qs===D.x.WDropMenu?I1=!0:I1=!ad;const U0=nn===1?!dd:me.children.length>Bn,{firstUiInteractiveIta:Tu}=(0,ed.HW)($s,at),u2=Po!=null&&Po.path?Po:qs===D.x.WTree?nn===1?Lh.zb:Lh.bS:null;return(0,a.jsxs)("li",{"data-path":ne,className:"setting-drag-menu-item",children:[(0,a.jsxs)(R1,{ref:this.setElementRef,className:f()("dragItemWrap",{itemWrapLastLevel:nn>=is}),onMouseDown:this.handleMouseDown,style:id,children:[(0,a.jsx)("span",{className:f()("dragHandArea",{hasExpand:n1}),children:(0,a.jsx)(S.C,{name:"design/dragMenu/drag",className:"dragHand"})}),n1&&(0,a.jsx)("div",{className:"expander",onClick:this.handleExpand,onMouseDown:zh=>zh.stopPropagation(),children:(0,a.jsx)(S.C,{className:f()("arrowIcon",{"is-expand":Ht}),name:"new/arrow"})}),(0,a.jsxs)("div",{className:"itemContent",onMouseDown:zh=>zh.stopPropagation(),children:[uh&&(0,a.jsx)("div",{className:"iconWrap",onClick:this.handleExpandIconPanel,children:(0,a.jsx)("span",{className:f()("iconContent",{active:ne===al.path}),children:u2!=null&&u2.path?(0,a.jsx)(d1.F,{className:"svg-icon fill",cid:U,path:u2.path,viewBox:u2.viewBox}):null})}),cl&&nn===2?(0,a.jsx)("div",{ref:this.setInputElementRef,className:"itemInput",onFocus:this.handleContentEditableDivFocus,onBlur:this.handleContentEditableDivBlur,onKeyDown:this.handleBlurInput,contentEditable:!0,onPaste:this.handlePaste,suppressContentEditableWarning:!0,children:xo}):(0,a.jsx)("input",{ref:this.setInputElementRef,value:xo,type:"text",className:f()("itemInput",{hasPadding:uh}),onFocus:this.handleFocus,onChange:this.handleChangeName,onKeyDown:this.handleBlurInput,onBlur:this.handleBlur}),(0,a.jsxs)("div",{className:"actions",children:[Qa&&(0,a.jsx)(N.A,{isShowTips:Qa&&nn<is&&Ql,content:nn<is?I18N.SettingPanel.max_n_of_options_supported.replace("{n}",n0):I18N.SettingPanel.max_n_of_options_level_supported.replace("{n}",is),direction:"down",style:{width:"max-content"},children:(0,a.jsx)("span",{className:f()("add",{disabled:!A1,hide:Bn>=1&&nn!==1}),onClick:A1?()=>Mi(Ee,nn,ne):void 0,children:(0,a.jsx)(S.C,{name:"common/add@10"})})}),(0,a.jsx)(N.A,{isShowTips:!U0,content:I18N.SettingPanel.minimum_n_of_options_required.replace("{n}",nn===1&&Sc||1),direction:"down",children:(0,a.jsx)("span",{className:f()("remove",{disabled:!U0}),onClick:U0?()=>this.handleRemove(Ee):void 0,children:(0,a.jsx)(S.C,{name:"common/subtract@10"})})})]}),!Op&&(0,a.jsxs)("div",{className:f()("operations",{show:Se,noIncreaseAction:!Qa}),children:[I1&&(0,a.jsx)("span",{className:f()("link",{show:Tu,only:!vr,active:ne===mr.path}),onClick:zh=>this.handleOpenLinkPanel(zh),children:(0,a.jsx)(S.C,{name:"design/dragMenu/link"})}),Uh&&(0,a.jsx)(N.A,{content:I18N.SettingPanel.defaultValue,direction:"down",distance:10,children:(0,a.jsx)("span",{className:f()("selected",{show:!!ap}),onClick:this.handleSetSelectedValue})})]})]})]}),mh&&(0,a.jsx)(B1,{children:Ue.map((zh,pg)=>{var hg;return(0,a.jsx)($d,{cid:zh==null||(hg=zh.data)==null?void 0:hg.cid,path:ne+"-"+pg,parent:Ee,node:zh,level:nn+1,maxLevel:is,minDepth:Bn,isShowIncreaseAction:Qa,isDisabledIncrease:Ql,isDisabledDecrease:dd,maxOptionLength:n0,isExpandEditableContentOnEditing:cl,isShowExpander:Br,isShowSelectedOperation:vr,clickableIconNode:al,clickableLinkNode:mr,innerLinks:$s,type:qs,onAddChildItems:Mi,onRemoveChildItems:Xi,onUpdate:na,onMouseDown:Xa,onOpenLinkPanel:Ga,onSetSelectedValue:xr,onClickableIconPanel:o1,hasMissFontHi:Fh,optionDataSelected:jp,widgetVersion:v0,dispatch:Pr},""+pg)})})]})}}var td=e(77242),dc=e(21840),j1=e(94153),hu=e(5783),uu=e(21776),Z=e(23692),G=e(23460),B=e(98195);const v=432,I=250,M="ICON_SELECT_POPUP";function j(L){const{style:U,onSetCurrentNodeIcon:ne,onClose:me,isDraggable:Ee=!0}=L,Ue=(0,o.d4)(j1.VG),at=(0,o.d4)(j1.yQ),[Ht,xo]=(0,p.useState)({x:0,y:0}),[Po,nn]=(0,p.useState)({x:0,y:0}),is=Ue?B.lS.Search:B.lS.Icon,Bn=qs=>{if(["div.search-bar","div.close","div.nav-back-icon","div.history-panel"].find(xr=>qs.target.closest("#"+M+" .resourcesPanel-header "+xr)))return;const{pageX:Xi,pageY:na}=qs.nativeEvent,Xa=xr=>xo({x:xr.pageX-Xi,y:xr.pageY-na}),Ga=xr=>{nn({x:Po.x+xr.pageX-Xi,y:Po.y+xr.pageY-na}),xo({x:0,y:0}),document.removeEventListener("mousemove",Xa),document.removeEventListener("mouseup",Ga)};document.addEventListener("mousemove",Xa),document.addEventListener("mouseup",Ga)},$s=(0,p.useMemo)(()=>Ee?{...U,transform:((U==null?void 0:U.transform)||"")+" translate("+(Po.x+Ht.x)+"px, "+(Po.y+Ht.y)+"px)"}:U,[Ee,U,Po,Ht]);return(0,p.useEffect)(()=>{xo({x:0,y:0}),nn({x:0,y:0})},[U]),(0,a.jsxs)(hu.A,{id:"popups-"+is+"-panel",style:{...$s},children:[(0,a.jsx)(oe,{className:f()(Ee&&"isDraggable"),onMouseDown:Ee?Bn:void 0,children:(0,a.jsx)(G.F,{show:at,from:Np.Z.iconSelectPopup,onClose:me})}),Ue?(0,a.jsx)(Z.P,{from:Np.Z.iconSelectPopup,onSetCurrentNodeIcon:ne}):(0,a.jsx)(uu.x,{from:Np.Z.iconSelectPopup,onSetCurrentNodeIcon:ne})]})}function Y(L){const{emitBaseRect:U,...ne}=L,me=(0,o.d4)(Cs.UI),Ee=(0,p.useMemo)(()=>{const{top:Ue=0,left:at,right:Ht}=U||{},xo=Ue-v/2-8,Po=document.documentElement.clientHeight-(xo+v),nn=xo<0?8:Po<0?document.documentElement.clientHeight-v-8:xo;let is=gn.xM;if(at&&Ht){const Bn=at-I-8,$s=document.documentElement.clientWidth-(Ht+I+8),qs=Bn<0?$s<0?at-8:Ht+I+8:at-8;is=document.documentElement.clientWidth-qs||0}return{position:"absolute",height:v+"px",minHeight:"auto",borderRadius:"4px",right:(me?gn.xM:0)+Math.max(0,is-gn.xM)+"px",top:nn+"px",zIndex:106}},[U,me]);if(!document.getElementById(M)){const Ue=document.createElement("div");Ue.id=M,document.body.appendChild(Ue)}return typeof(U==null?void 0:U.top)!="number"?null:(0,Q0.createPortal)((0,a.jsx)(j,{style:Ee,...ne}),document.getElementById(M))}const oe=u.Ay.div.withConfig({displayName:"IconSelectPopup__StyledDraggableHeader",componentId:"sc-107ngcs-0"})(["&.isDraggable{.resourcesPanel-header{cursor:move;.search-bar,.history-panel{cursor:initial;}}}"]);var ie=e(66923),le=e(3930);const ue=(0,u.Ay)(le.H).withConfig({displayName:"styles__StyledOptionRemoveModal",componentId:"sc-dlt1ke-0"})([".mainContent{display:flex;flex-direction:column;.restore-tip{font-size:14px;color:",";margin-top:5px;}}"],L=>L.theme.color_text_L2);class Te extends p.PureComponent{render(){const{isOpen:U,onClose:ne,onConfirm:me}=this.props;return U&&(0,a.jsx)(ue,{isOpen:U,onClose:ne,type:"alert",className:"option-action-modal top-modal",onCancel:ne,canConfirm:!0,onConfirm:me,title:"\u9009\u9879\u4E2D\u5B58\u5728\u5B50\u9009\u9879",mask:!1,canClose:!1,confirmBtnProps:{type:"danger"},children:(0,a.jsxs)("div",{className:"mainContent",children:[(0,a.jsx)("span",{children:"\u5220\u9664\u540E\u5C06\u8FDE\u5E26\u5B50\u9009\u9879\u4E00\u8D77\u5220\u9664"}),(0,a.jsx)("span",{className:"restore-tip",children:"\u53EF\u901A\u8FC7\u64A4\u9500\u64CD\u4F5C\u6062\u590D"})]})})}}var De=e(96708),$e=e(35332);const Qe={1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94"};class qe extends p.PureComponent{constructor(U){super(U),(0,r.A)(this,"setElementRef",ne=>this.input=ne),(0,r.A)(this,"handleUpdate",ne=>{let{data:me,path:Ee,parent:Ue}=ne;const{handleChange:at,optionData:Ht}=this.props,xo=Ri()(Ht),Po=Ee.split("-"),nn=Po[Po.length-1];if(!Ue)xo[nn].data=me;else{const is=Bn=>{Bn.data=me};(0,dc.PM)({newOptionData:xo,pathArr:Po,onUpdate:is})}at(xo,"optionData")}),(0,r.A)(this,"clearSelect",()=>{this.setState({isShowLinkPanel:!1,clickableLinkNode:{}}),this.props.dispatch({type:"settings:update:state",payload:{isShowLinkPanel:!1}}),this.props.dispatch(_d.R7.command.clearAllCommand({}))}),(0,r.A)(this,"handleAddChildItems",async(ne,me,Ee)=>{const{handleChange:Ue,optionData:at,navigationMenuType:Ht,widgetVersion:xo,optionDataDesignUnExpanded:Po,optionDataSelected:nn}=this.props,is=ne.children.length,Bn=!is&&ne.data.selected;let $s=ne.data.selected;const qs=Ri()(at),Mi=Ht!==void 0?Ht===De.ue.navigationMenu:!0;Bn&&($s=!1);const Xi={...ne.data,selected:$s,expanded:!0,designExpanded:Mi},na={data:{name:this.props.getDefaultDescentContent(Qe[me+1],is+1),selected:Bn,designExpanded:Mi,expanded:!0,linkCids:""},children:[]};if(xo===2){const Ga=(0,$e.cF)("wod");if(na.data.cid=Ga,nn.includes(ne.data.cid)){const xr=[...nn.filter(Br=>Br!==ne.data.cid),Ga];Ue(xr,"optionDataSelected")}}const Xa=Ee.split("-");if(Xa.length===1)qs[Xa[0]]={data:Xi,children:[...ne.children,na]};else{const Ga=xr=>{xr.children.push(na),xr.data=Xi};(0,dc.PM)({newOptionData:qs,pathArr:Xa,onUpdate:Ga})}Ue(qs,"optionData"),this.clearSelect()}),(0,r.A)(this,"handleRemoveChildItems",ne=>{let{parent:me,path:Ee}=ne;const{optionData:Ue,handleChange:at,widgetVersion:Ht,optionDataSelected:xo,optionDataDesignUnExpanded:Po}=this.props,nn=Ee.split("-"),is=nn[nn.length-1],Bn=Ri()(Ue),$s=me||Ue[is];if(!me)Bn.splice(is,1);else{const qs=Mi=>{Mi.children.splice(is,1)};(0,dc.u2)({newOptionData:Bn,pathArr:nn,onUpdate:qs})}if(Ht===2){let qs=xo,Mi=Po;$s&&(Mi.includes($s.data.cid)&&(Mi=Mi.filter(Xi=>Xi!==$s.data.cid)),(0,dc.sV)($s.children,Xi=>{xo.includes(Xi.data.cid)&&(qs=qs.filter(na=>na!==Xi.data.cid)),Po.includes(Xi.data.cid)&&(Mi=Mi.filter(na=>na!==Xi.data.cid))}),xo!==qs&&at(qs,"optionDataSelected"),Po!==Mi&&at(Mi,"optionDataDesignUnExpanded"))}at(Bn,"optionData"),this.clearSelect()}),(0,r.A)(this,"handleMouseDown",(ne,me,Ee,Ue,at,Ht)=>{if(ne.stopPropagation(),Ue.querySelector(".actions").contains(ne.target)){this.setState({dragAndDropState:null});return}const{optionData:xo}=this.props,{top:Po,left:nn}=Ue.getBoundingClientRect(),is=ne.clientX-nn,Bn=ne.clientY-Po,$s={node:{...me,path:Ht},$element:Ue,offsetX:is,offsetY:Bn,...(0,dc.qL)({...me,path:Ht},xo,Ee,at)};this.setState({dragAndDropState:$s})}),(0,r.A)(this,"handleDropState",ne=>{let{cid:me,type:Ee,parent:Ue,isValid:at}=ne;const{dragAndDropState:{node:Ht}}=this.state;if(this.setState({dragAndDropState:null}),!me||!at)return;const{optionData:xo,handleChange:Po}=this.props,nn=Ri()(xo),is=me.split("-"),Bn=Number(is[is.length-1]),$s=Ht.path.split("-"),qs=Number($s[$s.length-1]),Mi=Ue?Ue.children[qs]:xo[qs],Xi=Ee==="prevSibling"?Bn:Ee==="nextSibling"?Bn+1:"error";if(Xi==="error")throw new Error("drag type error");if(!Ue)nn.splice(Xi,0,Mi);else{const Xa=Ga=>{Ga.children.splice(Xi,0,Mi)};(0,dc.u2)({newOptionData:nn,pathArr:me.split("-"),onUpdate:Xa})}const na=Xi>qs?qs:qs+1;if(!Ue)nn.splice(na,1);else{const Xa=Ga=>{Ga.children.splice(na,1)};(0,dc.u2)({newOptionData:nn,pathArr:me.split("-"),onUpdate:Xa})}Po(nn,"optionData")}),(0,r.A)(this,"getContainerElement",()=>document.querySelector(".widget-settings")),(0,r.A)(this,"handleClickableIconPanel",async ne=>{let{y:me,node:Ee,path:Ue}=ne;const{clickableIconNode:at}=this.state,Ht=at.path!==Ue;await this.handleToggleOpenIconPanel(Ht,{y:me,node:Ee,path:Ue})}),(0,r.A)(this,"handleToggleOpenIconPanel",(ne,me)=>{let{y:Ee,node:Ue,path:at}=me;const{widgetName:Ht}=this.props,xo=(0,R0.Lm)(ne)?ne:!this.state.isShowIconPanel;this.setState({isShowIconPanel:xo,clickableIconNode:ne?{...Ue,path:at,y:Ee}:{}}),xo&&this.props.dispatch({type:"entry:toggle:icon-select-popup",payload:{source:ie.Z.navigationMenuSettingPanel}}),this.props.dispatch({type:"entry:search-panel:clear:state",payload:{from:Np.Z.iconSelectPopup}}),xo&&(0,Ed.vT)({source:Ht})}),(0,r.A)(this,"handleSetCurrentNodeIcon",ne=>{const{path:me,view_box:Ee}=ne,{optionData:Ue,handleChange:at}=this.props,{clickableIconNode:Ht}=this.state,xo=Ri()(Ue),Po=Ht.path.split("-"),nn=is=>{is.data={...is.data,icon:{path:me,viewBox:Ee}}};Po.length===1?nn(xo[Po[0]]):(0,dc.PM)({newOptionData:xo,pathArr:Po,onUpdate:nn}),at(xo,"optionData")}),(0,r.A)(this,"handleSetSelectedValue",ne=>{let{node:me,path:Ee}=ne;const{optionData:Ue,handleChange:at,optionMultiSelectable:Ht,widgetVersion:xo,optionDataSelected:Po}=this.props;if(xo===2){(0,ih.hZ)({node:me,optionDataSelected:Po,onUpdate:$s=>at($s.optionDataSelected,"optionDataSelected")});return}const nn=Ri()(Ue);Ht||(0,dc.sV)(nn,$s=>{$s.data.selected&&($s.data={...$s.data,selected:!1})});const is={...me.data,selected:!me.data.selected},Bn=Ee.split("-");if(Bn.length===1)nn[Ee].data=is;else{const $s=qs=>{qs.data=is};(0,dc.PM)({newOptionData:nn,pathArr:Bn,onUpdate:$s})}at(nn,"optionData")}),(0,r.A)(this,"handleToggleOpenLinkPanel",(ne,me)=>{let{node:Ee,path:Ue,y:at,e:Ht}=me;const xo=(0,R0.Lm)(ne)?ne:!this.state.isShowLinkPanel;this.setState({isShowLinkPanel:xo,clickableLinkNode:ne?{...Ee,path:Ue,y:at}:{}}),this.props.dispatch({type:"settings:update:state",payload:{isShowLinkPanel:xo}}),xo&&(this.props.dispatch({type:"settings:set:select:option",payload:{option:{node:Ee,path:Ue}}}),this.props.dispatch({type:"entry:set:option:item"}),this.props.dispatch(_d.R7.command.subItaSelectCommand({type:"optionData",node:Ee,path:Ue})))}),(0,r.A)(this,"handleOpenLinkPanel",async ne=>{const{y:me,path:Ee,node:Ue,e:at}=ne,{clickableLinkNode:Ht}=this.state,xo=Ht.path!==Ee;this.handleToggleOpenLinkPanel(xo,{node:Ue,path:Ee,y:me,e:at})}),(0,r.A)(this,"handleUpdateLinkSuccess",()=>this.setState({isUpdateLinkSuccess:!0})),(0,r.A)(this,"handleCloseRemoveModal",()=>this.props.dispatch({type:"modal:update:state",payload:{optionRemoveModal:{isOpen:!1}}})),this.state={dragAndDropState:null,isShowIconPanel:!1,isShowLinkPanel:!1,clickableIconNode:{y:0},clickableLinkNode:{y:0}}}render(){const{cid:U,optionData:ne,minOptionLength:me,maxOptionLength:Ee,totalOptionLength:Ue,isShowIncreaseAction:at,isShowExpander:Ht,isShowSelectedOperation:xo,isExpandEditableContentOnEditing:Po,maxLevel:nn,optionRemoveModal:is,minDepth:Bn,innerLinks:$s,widgetName:qs,optionMultiSelectable:Mi,dispatch:Xi,hasMissFontHi:na,optionDataSelected:Xa,widgetVersion:Ga}=this.props,{dragAndDropState:xr,isShowIconPanel:Br,clickableIconNode:Qa,isShowLinkPanel:vr,clickableLinkNode:al}=this.state,{$element:mr,matchDataList:dd,containerRect:Ql,rectQueryMap:Sc,offsetX:n0,offsetY:cl}=xr||{},o1=ne.length<=me,Fh=Ue>=Ee;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(B1,{className:"setting-drag-menu-container",children:[ne.map((jp,v0)=>{var Pr;return(0,a.jsx)($d,{cid:(jp==null||(Pr=jp.data)==null?void 0:Pr.cid)||U+"-"+v0,path:""+v0,parent:null,node:jp,level:1,maxLevel:nn,minDepth:Bn,isShowIncreaseAction:at,isShowExpander:Ht,isShowSelectedOperation:xo,isDisabledDecrease:o1,minTopLevelOptionLength:me,isDisabledIncrease:Fh,maxOptionLength:Ee,isExpandEditableContentOnEditing:Po,clickableIconNode:Br?Qa:{},clickableLinkNode:vr?al:{},innerLinks:$s,onAddChildItems:this.handleAddChildItems,onRemoveChildItems:this.handleRemoveChildItems,onUpdate:this.handleUpdate,onMouseDown:this.handleMouseDown,onOpenLinkPanel:this.handleOpenLinkPanel,onSetSelectedValue:this.handleSetSelectedValue,onClickableIconPanel:this.handleClickableIconPanel,optionMultiSelectable:Mi,type:qs,hasMissFontHi:na,optionDataSelected:Xa,widgetVersion:Ga,dispatch:Xi},""+v0)}),xr&&(0,a.jsx)(td.A,{draggingElement:mr,getContainerElement:this.getContainerElement,matchDataList:dd,containerRect:Ql,rectQueryMap:Sc,offsetX:n0,offsetY:cl,onDrop:this.handleDropState})]}),vr&&(0,a.jsx)(Ge,{onClose:()=>this.handleToggleOpenLinkPanel(!1,{}),anchorMeta:al,fromType:"optionData"}),Br&&(0,a.jsx)(Y,{emitBaseRect:{top:Qa.y},onClose:()=>this.handleToggleOpenIconPanel(!1,{}),onSetCurrentNodeIcon:this.handleSetCurrentNodeIcon}),is.isOpen&&(0,a.jsx)(Te,{...is,onClose:this.handleCloseRemoveModal,onConfirm:()=>this.handleRemoveChildItems(is.data)})]})}}(0,r.A)(qe,"defaultProps",{maxLevel:5,isShowIncreaseAction:!0,isShowExpander:!0,isShowSelectedOperation:!0,isShowLinkOperation:!0,isDisabledDecrease:!1});var ut=e(14495);function Bt(L){switch(L){case ut.Z6.segmentedControl:case ut.Z6.tabs:case ut.Z6.mobileTabBars:case ut.Z6.selectionControl:return!1;default:return!0}}function ao(L){switch(L){case ut.Z6.segmentedControl:case ut.Z6.tabs:case ut.Z6.selectionControl:case ut.Z6.mobileTabBars:return!1;default:return!0}}function To(L){switch(L){case ut.Z6.collapse:return!1;default:return!0}}function ko(L){switch(L){case ut.Z6.dropMenu:return!0;case ut.Z6.collapse:return!1;default:return!0}}function vn(L){switch(L){case ut.Z6.collapse:return 2;case ut.Z6.segmentedControl:case ut.Z6.selectionControl:return 1;default:return 5}}function Hn(L){switch(L){case ut.Z6.navigationMenu:case ut.Z6.mobileTabBars:return!0;default:return!1}}function os(L){switch(L){case ut.Z6.selectionControl:case ut.Z6.dropMenu:case D.x.WNavigationMenu:case D.x.WCollapse:case D.x.WTree:return 1;default:return 2}}function on(L){switch(L){case D.x.WTree:case ut.Z6.navigationMenu:return 500;case ut.Z6.mobileTabBars:return 20;default:return 50}}function hn(L){switch(L){case ut.Z6.collapse:return 1;default:return-1/0}}function Rn(L){switch(L){case D.x.WDropMenu:case D.x.WTree:case ut.Z6.navigationMenu:return I18N.SettingPanel.new_option_first_prev_name.nav;case ut.Z6.tabs:case ut.Z6.mobileTabBars:return I18N.SettingPanel.new_option_first_prev_name.tab;case ut.Z6.collapse:return I18N.SettingPanel.new_option_first_prev_name.collapse;default:return I18N.SettingPanel.new_option_first_prev_name.default}}function Ln(L){switch(L){case D.x.WTree:case D.x.WDropMenu:case D.x.WNavigationMenu:return(U,ne)=>I18N.SettingPanel.option_descent_default_content.nav.replace(/%level/,U).replace(/%childCount/,ne);case ut.Z6.collapse:return()=>I18N.SettingPanel.option_descent_default_content.collapse;default:return()=>""}}function Ms(L){switch(L){case ut.Z6.collapse:return!0;default:return!1}}var pi=e(61535),Ts=e(14615);const Js=u.Ay.section.withConfig({displayName:"styles__StyledOptionSettings",componentId:"sc-15qrgpu-0"})(["width:240px;padding:0 10px 8px 0;position:relative;"]),ki=u.Ay.div.withConfig({displayName:"styles__StyledOptionHeaderAction",componentId:"sc-15qrgpu-1"})(["width:24px;height:24px;border-radius:4px;display:flex;align-items:center;justify-content:center;position:absolute;top:-33px;right:10px;cursor:pointer;&.disabled{cursor:not-allowed;.icon{color:",";}}.icon{width:10px;height:10px;color:",";}&:not(.disabled):hover{background-color:",";}&:not(.disabled):active{background-color:",";}"],L=>L.theme.color_text_disabled01,L=>L.theme.color_text_L1,L=>L.theme.color_btn_secondary_hover,L=>L.theme.color_btn_secondary_active);class js extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleClick",U=>{const{type:ne,optionData:me,canExpandOneMenu:Ee,handleChange:Ue}=this.props;U.stopPropagation();const at=me.filter(Bn=>!Bn.parent_cid),Ht=Ee?!me.some(Bn=>Bn.data.designExpanded):!0,xo=at.length+1,Po=""+Rn(ne)+xo,nn={path:'<path d="M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z" />',viewBox:"64 64 896 896"},is=[...me];if(ne.startsWith("collapse")){const Bn=Ln(ne)();is.push({data:{name:Po,link_cids:"",expanded:!0,designExpanded:Ht,selected:!1},children:[{data:{name:Bn,link_cids:"",expanded:!0,designExpanded:!0,selected:!1},children:[]}]})}else is.push({data:{name:Po,link_cids:"",expanded:!0,designExpanded:Ht,selected:!1,icon:Hn(ne)?nn:null},children:[]});Ue(is,"optionData")}),(0,r.A)(this,"handleStopPropagation",U=>U.stopPropagation())}render(){const{maxOptionLength:U,totalOptionLength:ne}=this.props,me=ne>=U;return(0,a.jsx)(ki,{className:me?"disabled":"",onClick:me?this.handleStopPropagation:this.handleClick,children:(0,a.jsx)(N.A,{isShowTips:me,content:I18N.SettingPanel.max_n_of_options_supported.replace("{n}",U),direction:"down",style:{width:"max-content"},children:(0,a.jsx)(S.C,{name:"common/add@10"})})})}}class ai extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleChange",(U,ne)=>{const{onChange:me,dispatch:Ee,selections:Ue}=this.props;me({value:U,attr:ne,dispatch:Ee,selections:Ue})})}render(){const{optionData:U,type:ne,node:me,canExpandOneMenu:Ee,optionRemoveModal:Ue,hasMissFontHi:at,dispatch:Ht}=this.props,{widget:xo}=me;let Po,nn,is;ne===D.x.WDropMenu?Po=xo.dropMenu.isMultiple:ne===D.x.WSelectionControl?nn=xo.selectionControl.type:ne===D.x.WNavigationMenu&&(is=xo.navigationMenu.navigationMenuType);const Bn=(0,Qs.DS)(me.widgetStore.sdkStore,me.key,me.runningIsEditingCombo,me.editingBDanliKey),$s=os(ne),qs=on(ne),Mi=(0,dc.vA)(U);return(0,a.jsxs)(Js,{className:"optionSetting_"+ne,children:[(0,a.jsx)(js,{canExpandOneMenu:Ee,type:ne,maxOptionLength:qs,totalOptionLength:Mi,optionData:U,handleChange:this.handleChange}),(0,a.jsx)(qe,{cid:xo.cid,isShowIncreaseAction:Bt(ne),isShowExpander:ao(ne),isShowSelectedOperation:To(ne),isShowLinkOperation:ko(ne),isExpandEditableContentOnEditing:Ms(ne),minOptionLength:$s,maxOptionLength:qs,optionData:U,totalOptionLength:Mi,getDefaultDescentContent:Ln(ne),optionMultiSelectable:ne===D.x.WSelectionControl&&nn==="checkbox"||ne===D.x.WDropMenu&&Po,minDepth:hn(ne),maxLevel:vn(ne),canExpandOneMenu:Ee,optionRemoveModal:Ue,innerLinks:Bn,widgetName:ne,navigationMenuType:is,handleChange:this.handleChange,dispatch:Ht,hasMissFontHi:at,optionDataDesignUnExpanded:xo==null?void 0:xo.optionDataDesignUnExpanded,optionDataSelected:xo==null?void 0:xo.optionDataSelected,widgetVersion:xo["!version"]})]})}}const or={component:(0,o.Ng)(L=>{const U=(0,pi.UV)(L),ne=(0,Ts.rE)(L);return{widgetStore:U,optionRemoveModal:ne}})(ai),params:{},getter:[L=>{var U;let{selectedTrees:ne,hasMissFontHi:me}=L;const Ee=ne.map(Ue=>Ue.widget);return{type:(U=Ee[0])==null?void 0:U.name,widget:Ee[0],node:ne[0],optionData:(0,Ze.i)(Ee,"optionData"),canExpandOneMenu:(0,Ze.i)(Ee,"canExpandOneMenu"),hasMissFontHi:me}}],setter:{onChange:bi.c}},Yi=()=>[h0,[or,"OptionInfo"]];var Hr=e(59742),Wa=e(852),nr=e(24207);const zi={0:"navigation_menu",1:"navigation_menu_v",2:"navigation_menu_h"},ca=[{icon:{width:27,height:24}},{icon:{width:41,height:24}},{icon:{width:39,height:27}}];class Ua extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleChange",(U,ne)=>{const{onChange:me,dispatch:Ee,selections:Ue}=this.props;me({value:U,attr:ne,dispatch:Ee,selections:Ue})}),(0,r.A)(this,"handleChangeNavigationMenuType",U=>{const{navigationMenuType:ne,selections:me,dispatch:Ee}=this.props,Ue=ne===De.ue.navigationMenuH&&U!==De.ue.navigationMenuH,at=ne!==De.ue.navigationMenuH&&U===De.ue.navigationMenuH,Ht=me.map(xo=>{const Po=sdkStore.getHotItem(xo);let nn={navigationMenu:{...Po.hotAttr.navigationMenu,navigationMenuType:U,align:"space-between"}};if((Ue||at)&&!(0,Hr.OO)(xo)){const is=Ue?256:375,Bn=Ue?560:48,{hotAttr:{isLockAspect:$s}}=Po,qs=sdkStore.getHotBound(xo),Mi=$s?(0,nr.K)(qs.w,qs.h):!1,Xi=(0,Wa.AL)(qs,is-qs.w,Bn-qs.h,"br",Mi),{x:na,y:Xa}=sdkStore.toAttrXY(Xi,xo);nn={...nn,x:na,y:Xa,w:is,h:Bn}}return{key:xo,hotAttr:nn}});Ee({type:"entry:widget:change",payload:{flatChgList:Ht}})})}render(){const{navigationMenuType:U}=this.props;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("ul",{className:"navTypeList",children:ca.map((ne,me)=>{let{icon:Ee}=ne;return(0,a.jsxs)("li",{className:f()("typeItem",{active:me===U}),onClick:()=>this.handleChangeNavigationMenuType(me),children:[(0,a.jsx)("div",{className:"iconTypeWrap",children:(0,a.jsx)(S.C,{style:{width:Ee.width+"px",height:Ee.height+"px"},name:"setting_panel/"+zi[me]})}),(0,a.jsx)("span",{className:"name",children:I18N.SettingPanel.nav_menu.type[zi[me]]})]},me)})})})}}const Za=u.Ay.section.withConfig({displayName:"styles__StyledNavigationMenuTypeSettings",componentId:"sc-1q2m6r-0"})(["&.navPanelSetting{padding:0 16px;}ul.navTypeList{display:flex;justify-content:space-between;padding:8px 0;li.typeItem{display:flex;flex-direction:column;align-items:center;.name{color:",";&:lang(en){text-align:center;}}.iconTypeWrap{width:56px;height:40px;border-radius:4px;display:flex;align-items:center;justify-content:center;cursor:pointer;margin-bottom:4px;&:hover{background-color:",";}.svg-icon{rect{stroke:",";fill:",";}path{stroke:",";fill:none;}}}&.active{.iconTypeWrap{background-color:",";}}}}"],L=>L.theme.color_text_L2,L=>L.theme.color_btn_secondary_hover,L=>L.theme.color_text_L2,L=>L.theme.color_bg_border_02,L=>L.theme.color_text_L2,L=>L.theme.color_btn_secondary_active),ia="nav_menu_type",yl="mp_"+ia;class er extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{show:(0,Vo.Yt)(yl,!0,Vo.qW.Boolean)}),(0,r.A)(this,"handleChange",()=>{const{show:U}=this.state;(0,Vo.a0)(yl,!U,Vo.qW.Boolean),this.setState({show:!U})})}render(){const{show:U}=this.state;return(0,a.jsx)(ho.A,{collapse:!U,title:I18N.SettingPanel.inspector[ia],onChange:this.handleChange,children:(0,a.jsx)(Za,{type:"panel-body",className:"navPanelSetting",children:this.props.children})})}}const Cr={component:Ua,params:{},getter:[L=>{let{selectedTrees:U}=L;const ne=U.map(Ee=>Ee.widget),{navigationMenuType:me}=(0,Ze.i)(ne,"navigationMenu");return{navigationMenuType:me}}],setter:{onChange:bi.c}},Cl=()=>[er,[Cr,"NavigationMenuTypeInfo"]],od=u.Ay.section.withConfig({displayName:"styles__StyledNavigationMenuSettings",componentId:"sc-1leho72-0"})(['.sub-panel{[type="panel-body"]{padding:0 16px;.panelItem{align-items:center;display:flex;[type="color-btn"]{margin:0 6px;}.navHasInputSetting{display:flex;flex:1;align-items:center;label.leftLabel{margin-right:24px;}.WorkspaceInputNumber{width:66px;margin-right:6px;}}}}}']),Bc=["children"];class Yd extends p.Component{shouldComponentUpdate(U,ne,me){var Ee;return(Ee=(0,ps.dP)())!=null&&Ee.flag.isDraggingItem?!1:(0,Le.N)(Bc).call(this,U,ne)}render(){return(0,a.jsx)(od,{children:this.props.children})}}const Cc=u.Ay.div.withConfig({displayName:"styles__StyledShadows",componentId:"sc-n3b09l-0"})(["display:flex;align-items:center;color:",";.left-label{height:14px;color:",';line-height:14px;white-space:nowrap;}[type="color-btn"]{margin:0 6px;}'],L=>L.theme.color_text_L2,L=>L.theme.color_text_L2),Ha=u.Ay.div.withConfig({displayName:"styles__StylesShadowCollapseBody",componentId:"sc-n3b09l-1"})(["height:0;transition:height 200ms ease-in-out 0s;overflow:hidden;&.is-open{height:auto;}.shadow-line{margin-left:28px;width:180px;height:32px;display:flex;align-items:center;.shadow-item{height:28px;&:not(.is-active){border-color:",";}&.is-active{border-left:1px solid ",";&:not(:first-child){border-left:1px solid ",";}}&:first-child{border-radius:4px 0 0 4px;&:hover{border-color:",";}}&:not(:first-child){border-radius:0;border-left:1px solid transparent;margin-left:-1px;&:hover{border-color:",";border-left:1px solid ",";}}&:last-child{border-radius:0 4px 4px 0;}}}.shadow-title{width:180px;height:24px;display:flex;margin-left:28px;span{flex:1;padding-left:6px;color:",";font-size:12px;}}"],L=>L.theme.color_bg_border_02,L=>L.theme.color_proto,L=>L.theme.color_proto,L=>L.theme.color_proto,L=>L.theme.color_proto,L=>L.theme.color_proto,L=>L.theme.color_text_L3),qr=()=>null;class Ld extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleChangeShadow",(U,ne)=>{const{shadow:me,handleChange:Ee,apattr:Ue}=this.props,at={...me,[ne]:U};Ee(at,Ue)})}render(){const{shadow:U,className:ne=""}=this.props,{type:me,shadowIsVisible:Ee,shadowColor:Ue,offsetX:at,offsetY:Ht,blurRadius:xo,spreadRadius:Po}=U;return(0,a.jsxs)(p.Fragment,{children:[(0,a.jsxs)(Cc,{className:ne+" height-32",children:[(0,a.jsx)(Ct.A,{attr:"shadowIsVisible",className:"style-check "+Ct.p,isChecked:Ee,onChange:this.handleChangeShadow}),(0,a.jsx)(Qn.R_,{className:Qn.Fw,attr:"shadowColor",attrPanel:"menuShadowPanel",color:Ue,onChange:this.handleChangeShadow}),(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.shadows})]}),(0,a.jsxs)(Ha,{className:f()({"is-open":Ee}),children:[(0,a.jsxs)("section",{className:"shadow-line",children:[(0,a.jsx)(pt.A,{className:"shadow-item",min:-99,max:99,attr:"offsetX",value:at,onConfirm:this.handleChangeShadow}),(0,a.jsx)(pt.A,{className:"shadow-item",min:-99,max:99,attr:"offsetY",value:Ht,onConfirm:this.handleChangeShadow}),(0,a.jsx)(pt.A,{className:"shadow-item",min:0,max:99,attr:"blurRadius",value:xo,onConfirm:this.handleChangeShadow}),(0,a.jsx)(pt.A,{className:"shadow-item",min:-99,max:99,disabled:me!=="box_shadow",attr:"spreadRadius",value:Po,onConfirm:me!=="box_shadow"?qr:this.handleChangeShadow})]}),(0,a.jsxs)("div",{className:"shadow-title",children:[(0,a.jsx)("span",{children:"X"}),(0,a.jsx)("span",{children:"Y"}),(0,a.jsx)("span",{children:I18N.SettingPanel.blur}),(0,a.jsx)("span",{children:I18N.SettingPanel.spread})]})]})]})}}class Rc extends p.PureComponent{render(){const{height:U,handleChangeHeight:ne}=this.props;return(0,a.jsxs)("div",{className:"navHasInputSetting",children:[(0,a.jsx)("label",{className:"leftLabel",children:I18N.SettingPanel.height}),(0,a.jsx)(pt.A,{className:"nav_menu_panel_height",attr:"panelDataHeight",value:U,min:1,max:9999,optionList:nd,onConfirm:ne})]})}}const nd=[32,36,40,44,48,56,64,72].map(L=>({label:L,value:L})),Lp="nav_menu_panel",Dp="mp_"+Lp;class Dd extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{show:(0,Vo.Yt)(Dp,!0,Vo.qW.Boolean)}),(0,r.A)(this,"handleSubChange",()=>{const{show:U}=this.state;(0,Vo.a0)(Dp,!U,Vo.qW.Boolean),this.setState({show:!U})}),(0,r.A)(this,"handleChangeHeight",U=>{const{handleChange:ne}=this.props;ne(U,"menuHeight")}),(0,r.A)(this,"handleChangeMenuBorder",(U,ne)=>{const{handleChange:me,widgetHotAttr:Ee}=this.props,at={...Ee.navigationMenu.menuBorder,[ne]:U};me(at,"menuBorder")})}render(){const{panelData:U,dispatch:ne,navigationMenuType:me,handleChange:Ee}=this.props,{background:Ue,isBackgroundVisible:at,border:Ht,fs:xo,tc:Po,shadow:nn,height:is}=U,{show:Bn}=this.state;return(0,a.jsx)(ho.A,{collapse:!Bn,title:I18N.SettingPanel.inspector[Lp],onChange:this.handleSubChange,children:(0,a.jsxs)("section",{type:"panel-body",className:"navPanelSetting",children:[(0,a.jsxs)("div",{className:"panelItem height-32 margin-left-n6",children:[(0,a.jsx)(Ct.A,{className:Ct.p,attr:"isMenuBackgroundVisible",isChecked:at,onChange:Ee}),(0,a.jsx)(Qn.R_,{className:Qn.Fw,attr:"menuBackground",attrPanel:"panelData",color:Ue,onChange:($s,qs)=>Ee($s,qs)}),(0,a.jsx)("label",{className:"rightLabel",children:I18N.SettingPanel.menu_setting.bg_color})]}),me!==De.ue.navigationMenuH&&(0,a.jsxs)("div",{className:"panelItem height-32 margin-left-n6",children:[(0,a.jsx)(Ct.A,{className:Ct.p,attr:"bdrIsVisible",isChecked:Ht.bdrIsVisible,onChange:this.handleChangeMenuBorder}),(0,a.jsx)(Qn.R_,{className:Qn.Fw,attr:"bdrColor",attrPanel:"panelData",color:Ht.bdrColor,onChange:this.handleChangeMenuBorder}),(0,a.jsx)("label",{className:"rightLabel",children:I18N.SettingPanel.menu_setting.dividing})]}),(0,a.jsx)("div",{children:(0,a.jsx)(Ld,{className:"margin-left-n6",shadow:nn,handleChange:Ee,apattr:"menuShadow"})}),me!==De.ue.navigationMenuH&&(0,a.jsx)("div",{className:"panelItem height-32",children:(0,a.jsx)(Rc,{height:is,handleChangeHeight:this.handleChangeHeight})})]})})}}const h1="nav_expand_panel",ah="mp_"+h1;class Bu extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{show:(0,Vo.Yt)(ah,!0,Vo.qW.Boolean)}),(0,r.A)(this,"handleSubChange",()=>{const{show:U}=this.state;(0,Vo.a0)(ah,!U,Vo.qW.Boolean),this.setState({show:!U})}),(0,r.A)(this,"handleChangeHeight",U=>{const{handleChange:ne}=this.props;ne(U,"subMenuHeight")})}render(){const{expandData:U,dispatch:ne,handleChange:me}=this.props,{background:Ee,isBackgroundVisible:Ue,fs:at,tc:Ht,height:xo}=U,{show:Po}=this.state;return(0,a.jsx)(ho.A,{collapse:!Po,title:I18N.SettingPanel.inspector[h1],onChange:this.handleSubChange,children:(0,a.jsxs)("section",{type:"panel-body",className:"navExpandSetting",children:[(0,a.jsxs)("div",{className:"panelItem height-32 margin-left-n6",children:[(0,a.jsx)(Ct.A,{className:Ct.p,attr:"isSubMenuBackground",isChecked:Ue,onChange:me}),(0,a.jsx)(Qn.R_,{className:Qn.Fw,attr:"subMenuBackground",attrPanel:"expandData",color:Ee,onChange:(nn,is)=>me(nn,is)}),(0,a.jsx)("label",{className:"rightLabel",children:I18N.SettingPanel.menu_setting.bg_color})]}),(0,a.jsx)("div",{className:"panelItem height-32",children:(0,a.jsx)(Rc,{height:xo,handleChangeHeight:this.handleChangeHeight})})]})})}}const Dh="nav_selected_panel",Bd="mp_"+Dh;class Bp extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{show:(0,Vo.Yt)(Bd,!0,Vo.qW.Boolean)}),(0,r.A)(this,"handleSubChange",()=>{const{show:U}=this.state;(0,Vo.a0)(Bd,!U,Vo.qW.Boolean),this.setState({show:!U})})}render(){const{selectedData:U,dispatch:ne,handleChange:me}=this.props,{background:Ee,isBackgroundVisible:Ue,fs:at,tc:Ht}=U,{show:xo}=this.state;return(0,a.jsx)(ho.A,{collapse:!xo,title:I18N.SettingPanel.inspector[Dh],onChange:this.handleSubChange,children:(0,a.jsx)("section",{type:"panel-body",className:"navSelectPanelSetting",children:(0,a.jsxs)("div",{className:"panelItem height-32 margin-left-n6",children:[(0,a.jsx)(Ct.A,{className:Ct.p,attr:"isActiveMenuItemBackgroundVisible",isChecked:Ue,onChange:me}),(0,a.jsx)(Qn.R_,{className:Qn.Fw,attr:"activeMenuItemBackground",attrPanel:"selectedData",color:Ee,onChange:(Po,nn)=>me(Po,nn)}),(0,a.jsx)("label",{className:"rightLabel",children:I18N.SettingPanel.menu_setting.bg_color})]})})})}}const j0=L=>{let{title:U,data:ne,onChange:me,updateFamilyVersion:Ee,hideFontFamily:Ue,supAttr:at,hasMissFontHi:Ht}=L;const xo=(0,o.wA)(),Po=(0,p.useRef)(ne.textV0),[nn,is]=(0,p.useState)(!1),{lineHeight:Bn,letterSpacing:$s,fontFamily:qs,fontWeight:Mi,fontSize:Xi,textDecoration:na,italic:Xa,textColor:Ga,bold:xr}=ne.textV0,Br=Xa?"italic":"normal",Qa=xr?1:0,vr=(0,o.d4)(mn.y.query.getCloudFontLocalList),al=(0,st.QT)(qs,Mi);(0,p.useEffect)(()=>{Po.current=ne.textV0},[ne]);const mr=()=>{is(!nn)},dd=Ql=>{let{value:Sc,attr:n0,dispatch:cl}=Ql;n0==="fontStyle"?Po.current={...Po.current,italic:Sc==="italic"}:Po.current={...Po.current,[n0]:Sc},me(Po.current),n0==="fontFamily"&&(Ee==null||Ee())};return(0,a.jsx)(ho.A,{collapse:nn,title:U,onChange:mr,children:(0,a.jsxs)(Uo.M,{children:[!Ue&&(0,a.jsx)(Hs.X,{dispatch:xo,wbiVersion:3,fontFamily:qs,fontWeight:Mi,fontStyle:Br,onChange:dd,supAttr:at,isMissFont:al}),(0,a.jsx)(Nn,{textColor:Ga,isTextEditing:!1,fontSize:Xi,fontStyle:Br,fontFamily:qs,textDecoration:na,fontWeight:Mi,boldType:Qa,boldAttr:"boldType",newOverOld:!0,dispatch:xo,isDisabledFontRadioLine:!1,colorAttr:"textColor",isRichText:!1,onChange:dd,hasMissFontHi:al,cloudFontLocalList:vr,supAttr:"textV0"}),(0,a.jsx)(rn,{lineHeight:Bn,letterSpacing:$s,onChange:dd,dispatch:xo,fontFamily:qs,fontSize:Xi,isWRichText:!1,hideLineHeight:!0,isMissFont:al})]})})};class O0 extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleChange",(U,ne)=>{const{onChange:me,dispatch:Ee,selections:Ue}=this.props;me({value:U,attr:ne,dispatch:Ee,supAttr:"navigationMenu",selections:Ue})}),(0,r.A)(this,"onChangeText",U=>ne=>{this.handleChange({textV0:ne},U)}),(0,r.A)(this,"updateFamilyVersion",()=>{const{onChange:U,dispatch:ne,selections:me}=this.props;U({value:1,attr:"!ffVersion",dispatch:ne,selections:me})})}render(){const{panelData:U,expandData:ne,selectedData:me,navigationMenuType:Ee,widgetHotAttr:Ue,dispatch:at}=this.props,{menuText:Ht,subMenuText:xo,activeMenuText:Po}=Ue.navigationMenu;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Dd,{panelData:U,navigationMenuType:Ee,widgetHotAttr:Ue,dispatch:at,handleChange:this.handleChange}),(0,a.jsx)(j0,{title:"\u4E00\u7EA7\u83DC\u5355\u6587\u672C",data:Ht,onChange:this.onChangeText("menuText"),supAttr:"navigationMenu-menuText",updateFamilyVersion:this.updateFamilyVersion}),(0,a.jsx)(Bu,{expandData:ne,widgetHotAttr:Ue,dispatch:at,handleChange:this.handleChange}),(0,a.jsx)(j0,{title:"\u5B50\u83DC\u5355\u6587\u672C",data:xo,onChange:this.onChangeText("subMenuText"),supAttr:"navigationMenu-subMenuText",updateFamilyVersion:this.updateFamilyVersion}),(0,a.jsx)(Bp,{selectedData:me,dispatch:at,handleChange:this.handleChange}),(0,a.jsx)(j0,{title:"\u9009\u4E2D\u9879\u6587\u672C",data:Po,onChange:this.onChangeText("activeMenuText"),supAttr:"navigationMenu-activeMenuText",updateFamilyVersion:this.updateFamilyVersion})]})}}const Rp={component:O0,params:{},getter:[L=>{let{selectedTrees:U,rootProject:ne,hasMissFontHi:me,cloudFontLocalList:Ee}=L;const Ue=U.map(xo=>xo.widget),{navigationMenuType:at}=(0,Ze.i)(Ue,"navigationMenu"),Ht=sdkStore.getHotItem(Ue[0].cid).hotAttr;return{navigationMenuType:at,panelData:(0,ih.qS)((0,Ze.i)(Ue,"navigationMenu")),expandData:(0,ih.Sr)((0,Ze.i)(Ue,"navigationMenu")),selectedData:(0,ih.H8)((0,Ze.i)(Ue,"navigationMenu")),widgetHotAttr:Ht,rootProject:ne,hasMissFontHi:me,cloudFontLocalList:Ee}}],setter:{onChange:bi.c}},u1=()=>[Yd,[Rp,"NavigationMenuSettingsInfo"]];class k2 extends p.PureComponent{render(){return(0,a.jsx)(a.Fragment,{children:this.props.children})}}const _2=u.Ay.div.withConfig({displayName:"style__StyledCollapseStyleSettings",componentId:"sc-2oaes7-0"})(["width:240px;padding:0 16px 0px 16px;color:",";.bg-color-line{display:flex;align-items:center;color:",';[type="color-btn"]{margin:0 6px;}}.font-setting{justify-content:flex-start;.left-label.text_kbd{margin-right:24px;}.WorkspaceInputNumber{width:66px;}.font-color,[type="color-btn"]{margin-left:6px;}}.marker-position-setting{height:36px;justify-content:flex-start;.left-label{margin-right:24px;}}'],L=>L.theme.color_text_L2,L=>L.theme.color_text_L2),P2=u.Ay.div.withConfig({displayName:"style__StyledMarkerPositionRatio",componentId:"sc-2oaes7-1"})(["display:flex;box-sizing:border-box;border-radius:2px;"]);class m1 extends p.PureComponent{render(){const{background:U,isBackgroundVisible:ne,markerPosition:me,handleChange:Ee,attrPanel:Ue,backgroundAttr:at,isBackgroundVisibleAttr:Ht}=this.props;return(0,a.jsxs)(_2,{children:[(0,a.jsxs)("div",{className:"bg-color-line height-32 margin-left-n6",children:[(0,a.jsx)(Ct.A,{className:Ct.p,attr:Ht,isChecked:ne,onChange:Ee}),(0,a.jsx)(Qn.R_,{className:Qn.Fw,attr:at,attrPanel:Ue,color:U,onChange:Ee}),(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.bg_color})]}),me&&(0,a.jsxs)("div",{className:"line marker-position-setting height-32",children:[(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.marker_position}),(0,a.jsx)(Wm,{markerPosition:me,handleChange:Ee})]})]})}}const Wm=L=>{const{markerPosition:U,handleChange:ne}=L,me=Ue=>{ne(Ue,"markerPosition")},Ee=[{label:I18N.SettingPanel.menu_setting.left,value:"left"},{label:I18N.SettingPanel.menu_setting.right,value:"right"}];return(0,a.jsx)(P2,{children:(0,a.jsx)(ri.mq,{value:U,className:ri.it,onChange:me,optionList:Ee})})},Ru="collapse_title_settings",ju="mp_"+Ru;class Ou extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{show:(0,Vo.Yt)(ju,!0,Vo.qW.Boolean)}),(0,r.A)(this,"handleChange",(U,ne)=>{const{onChange:me,dispatch:Ee,selections:Ue}=this.props;me({value:U,attr:ne,dispatch:Ee,supAttr:"collapse",selections:Ue})}),(0,r.A)(this,"handleSubChange",()=>{const{show:U}=this.state;(0,Vo.a0)(ju,!U,Vo.qW.Boolean),this.setState({show:!U})})}render(){const{show:U}=this.state,{dispatch:ne,titleData:{textSize:me,textColor:Ee,background:Ue,isBackgroundVisible:at},markerPosition:Ht}=this.props;return(0,a.jsx)(ho.A,{collapse:!U,title:I18N.SettingPanel.inspector[Ru],onChange:this.handleSubChange,children:(0,a.jsx)(m1,{backgroundAttr:"titleBackground",fontSizeAttr:"titleTextSize",isBackgroundVisibleAttr:"isTitleBackgroundVisible",fontColorAttr:"titleTextColor",attrPanel:"title",fontSize:me,color:Ee,background:Ue,isBackgroundVisible:at,markerPosition:Ht,handleChange:this.handleChange,dispatch:ne})})}}const Fu="collapse_content_settings",Uu="mp_"+Fu;class N2 extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{show:(0,Vo.Yt)(Uu,!0,Vo.qW.Boolean)}),(0,r.A)(this,"handleSubChange",()=>{const{show:U}=this.state;(0,Vo.a0)(Uu,!U,Vo.qW.Boolean),this.setState({show:!U})}),(0,r.A)(this,"handleChange",(U,ne)=>{const{onChange:me,dispatch:Ee,selections:Ue}=this.props;me({value:U,attr:ne,dispatch:Ee,supAttr:"collapse",selections:Ue})})}render(){const{show:U}=this.state,{dispatch:ne,contentData:{textSize:me,textColor:Ee,background:Ue,isBackgroundVisible:at}}=this.props;return(0,a.jsx)(ho.A,{collapse:!U,title:I18N.SettingPanel.inspector[Fu],onChange:this.handleSubChange,children:(0,a.jsx)(m1,{backgroundAttr:"isContentBackground",fontSizeAttr:"contentTextSize",isBackgroundVisibleAttr:"isContentBackgroundVisible",fontColorAttr:"contentTextColor",attrPanel:"content",fontSize:me,color:Ee,background:Ue,isBackgroundVisible:at,handleChange:this.handleChange,dispatch:ne})})}}class L2 extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"onChangeText",U=>ne=>{const{onChange:me,dispatch:Ee,selections:Ue}=this.props;me({value:{textV0:ne},attr:U,dispatch:Ee,supAttr:"collapse",selections:Ue})}),(0,r.A)(this,"updateFamilyVersion",()=>{const{onChange:U,dispatch:ne,selections:me}=this.props;U({value:1,attr:"!ffVersion",dispatch:ne,selections:me})})}render(){const{dispatch:U,contentData:ne,markerPosition:me,titleData:Ee,selections:Ue,onChange:at,collapse:Ht}=this.props,{titleText:xo,contentText:Po}=Ht||{};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Ou,{selections:Ue,dispatch:U,titleData:Ee,markerPosition:me,onChange:at}),(0,a.jsx)(j0,{title:"\u6807\u9898\u6587\u672C",data:xo,onChange:this.onChangeText("titleText"),supAttr:"collapse-titleText",updateFamilyVersion:this.updateFamilyVersion}),(0,a.jsx)(N2,{selections:Ue,dispatch:U,contentData:ne,onChange:at}),(0,a.jsx)(j0,{title:"\u5185\u5BB9\u6587\u672C",data:Po,onChange:this.onChangeText("contentText"),supAttr:"collapse-contentText",updateFamilyVersion:this.updateFamilyVersion})]})}}const O1={component:L2,params:{},getter:[L=>{let{selectedTrees:U,rootProject:ne,hasMissFontHi:me,cloudFontLocalList:Ee}=L;const at=U.map(Ga=>Ga.widget)[0],{collapse:Ht}=sdkStore.getHotItem(at.cid).hotAttr,{titleTextColor:xo,titleTextSize:Po,titleBackground:nn,isTitleBackgroundVisible:is,markerPosition:Bn,contentTextSize:$s,contentTextColor:qs,isContentBackground:Mi,isContentBackgroundVisible:Xi}=Ht;return{markerPosition:Bn,titleData:{textColor:xo,textSize:Po,background:nn,isBackgroundVisible:is},contentData:{textColor:qs,textSize:$s,background:Mi,isBackgroundVisible:Xi},rootProject:ne,collapse:Ht,hasMissFontHi:me,cloudFontLocalList:Ee}}],setter:{onChange:bi.c}},rh=()=>[k2,[O1,"CollapseSettingsInfo"]],Cd="segmented_control_checked_item",mu="mp_"+Cd;class Vm extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{show:(0,Vo.Yt)(mu,!0,Vo.qW.Boolean)}),(0,r.A)(this,"handleChange",(U,ne)=>{const{onChange:me,dispatch:Ee,selections:Ue}=this.props;let at=U;(ne.includes("Size")||ne.includes("size"))&&(at=parseInt(U)),me({value:at,attr:ne,dispatch:Ee,supAttr:"segmentedControl",selections:Ue})}),(0,r.A)(this,"handleSubChange",()=>{const{show:U}=this.state;(0,Vo.a0)(mu,!U,Vo.qW.Boolean),this.setState({show:!U})}),(0,r.A)(this,"onChangeText",U=>ne=>{this.handleChange({textV0:ne},U)}),(0,r.A)(this,"updateFamilyVersion",()=>{const{onChange:U,dispatch:ne,selections:me}=this.props;U({value:1,attr:"!ffVersion",dispatch:ne,selections:me})})}render(){const{show:U}=this.state,{dispatch:ne,segmentedControl:me,rootProject:Ee}=this.props,{text:Ue,checkedText:at,checkedTextColor:Ht,checkedBackgroundColor:xo,isCheckedBackgroundVisible:Po}=me;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(j0,{title:"\u6587\u672C",data:Ue,onChange:this.onChangeText("text"),supAttr:"segmentedControl-text",updateFamilyVersion:this.updateFamilyVersion}),(0,a.jsx)(ho.A,{collapse:!U,title:I18N.SettingPanel.inspector[Cd],onChange:this.handleSubChange,children:(0,a.jsx)(m1,{fontColorAttr:"checkedTextColor",fontSizeAttr:"checkedFontSize",color:Ht,background:xo,backgroundAttr:"checkedBackgroundColor",isBackgroundVisible:Po,isBackgroundVisibleAttr:"isCheckedBackgroundVisible",handleChange:this.handleChange,dispatch:ne})}),(0,a.jsx)(j0,{title:"\u9009\u4E2D\u9879\u6587\u672C",data:at,onChange:this.onChangeText("checkedText"),supAttr:"segmentedControl-checkedText",updateFamilyVersion:this.updateFamilyVersion})]})}}const op=L=>{let{children:U}=L;return(0,a.jsx)(a.Fragment,{children:U})},D2={component:Vm,params:{},getter:[L=>{let{selectedTrees:U,rootProject:ne,hasMissFontHi:me,cloudFontLocalList:Ee}=L;const at=U.map(xo=>xo.widget)[0],{segmentedControl:Ht}=sdkStore.getHotItem(at.cid).hotAttr;return{segmentedControl:Ht,rootProject:ne,hasMissFontHi:me,cloudFontLocalList:Ee}}],setter:{onChange:bi.c}},zu=()=>[op,[D2,"SegmentedControlInfo"]],jc=u.Ay.div.withConfig({displayName:"styles__StyledCommon",componentId:"sc-1wclw3f-0"})(["border-top:1px solid ",";padding:8px 0 8px 14px;.itemPanel{display:flex;align-items:center;.right-label{margin-left:4px;}}"],L=>L.theme.color_bg_border_01);class B2 extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleChange",(U,ne)=>{const{onChange:me,dispatch:Ee,selections:Ue}=this.props;me({value:U,attr:ne,dispatch:Ee,supAttr:"collapse",selections:Ue})}),(0,r.A)(this,"handleSetCanExpandOneMenu",U=>{const{dispatch:ne}=this.props;this.handleChange(U,"canExpandOneMenu"),U&&ne({type:"entry:set:navigationMenu:canExpandOneMenu"})})}render(){const{canExpandOneMenu:U}=this.props;return(0,a.jsxs)("div",{className:"itemPanel margin-left-n6 height-32",children:[(0,a.jsx)(Ct.A,{className:Ct.p,attr:"canExpandOneMenu",isChecked:U,onChange:this.handleSetCanExpandOneMenu}),(0,a.jsx)("label",{className:"right-label",children:I18N.SettingPanel.navigation_menu.accordion_mode})]})}}const R2=L=>{let{children:U}=L;return(0,a.jsx)(jc,{className:"navigationOtherSettingPanel",children:U})},j2={component:B2,params:{},getter:[L=>{let{selectedTrees:U}=L;const ne=U.map(Ee=>Ee.widget),{canExpandOneMenu:me}=(0,Ze.i)(ne,"collapse");return{canExpandOneMenu:me}}],setter:{onChange:bi.c}},O2=()=>[R2,[j2]],F2=u.Ay.ul.withConfig({displayName:"styles__StyledDropMenuSettings",componentId:"sc-1rfp374-0"})(["padding:8px 16px 8px 16px;border-top:1px solid ",";color:",";.common-line{display:flex;align-items:center;justify-content:space-between;.right-input{margin-left:-6px;width:140px;height:28px;border-radius:4px;padding-left:6px;white-space:nowrap;text-overflow:ellipsis;color:",";border:1px solid ",";&.has-value:not(:focus){border:1px solid transparent;&:hover{border:1px solid ",";}}&:hover{border:1px solid ",";}&:focus{border:1px solid ",";outline:"," solid 1px;outline-offset:-2px;}}.WorkspaceSelect{width:140px;}.right-switch-container{width:140px;padding-left:6px;display:flex;align-items:center;&:lang(en){width:112px;}}}"],L=>L.theme.color_bg_border_01,L=>L.theme.color_text_L2,L=>L.theme.color_text_L1,L=>L.theme.color_bg_border_02,L=>L.theme.color_bg_border_02,L=>L.theme.color_bg_border_02,L=>L.theme.color_proto,L=>L.theme.color_proto),U2=u.Ay.section.withConfig({displayName:"styles__StyledOptionColorSettings",componentId:"sc-1rfp374-1"})(["padding:0 16px;.drop-menu-option-color{height:32px;display:flex;justify-content:space-between;align-items:center;.right-area{width:140px;&:lang(en){width:80px;}}}"]);class F1 extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"MUTUAL_WAY_OPTION_LIST",[{label:I18N.SettingPanel.drop_menu_option.click,value:"click"},{label:I18N.SettingPanel.drop_menu_option.hover,value:"hover"}]),(0,r.A)(this,"handleChange",(U,ne,me)=>{const{onChange:Ee,dispatch:Ue,selections:at}=this.props;Ee({value:U,attr:ne,dispatch:Ue,supAttr:me,selections:at})}),(0,r.A)(this,"handleChangeText",U=>{const ne=U.target.value;this.handleChange(ne,"text","textV0")}),(0,r.A)(this,"handleSelect",(U,ne)=>{this.handleChange(U,ne,"dropMenu")}),(0,r.A)(this,"handleFocus",U=>{const{selections:ne}=this.props;if(U.preventDefault(),U.stopPropagation(),!(0,st.RC)(ne[0])){U.target.blur();return}U.target.select()}),(0,r.A)(this,"handleBlurInput",U=>{const{key:ne}=U;ne===p1._.Enter&&U.target.blur()}),(0,r.A)(this,"handleSetIsMultiple",U=>{this.handleChange(U,"isMultiple","dropMenu"),U===!0&&this.handleChange(!0,"dropMenuEcho","dropMenu")}),(0,r.A)(this,"handleSetEcho",U=>{this.handleChange(U,"dropMenuEcho","dropMenu")})}render(){const{text:U,mutualWay:ne,dropMenuEcho:me,isMultiple:Ee}=this.props;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("li",{className:"common-line height-32",children:[(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.btn_content}),(0,a.jsx)("input",{value:U,className:f()("right-input",{"has-value":U.length>0}),onFocus:this.handleFocus,onChange:this.handleChangeText,onKeyDown:this.handleBlurInput})]}),(0,a.jsxs)("li",{className:"common-line height-32",children:[(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.multiSelection}),(0,a.jsx)("div",{className:"right-switch-container",children:(0,a.jsx)(Ys.A,{size:"small",isIOS:!0,isChecked:Ee,onChange:this.handleSetIsMultiple})})]}),(0,a.jsxs)("li",{className:"common-line height-32",children:[(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.switch_echo}),(0,a.jsx)("div",{className:"right-switch-container",children:(0,a.jsx)(Ys.A,{size:"small",isIOS:!0,isChecked:me,onChange:this.handleSetEcho,isDisabled:Ee})})]}),(0,a.jsxs)("li",{className:"common-line height-32",children:[(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.interaction_mode}),(0,a.jsx)(ri.mq,{attr:"mutualWay",optionList:this.MUTUAL_WAY_OPTION_LIST,value:ne,onChange:this.handleSelect})]})]})}}const z2=L=>{let{children:U}=L;return(0,a.jsx)(F2,{children:U})};class U1 extends p.PureComponent{constructor(){var U;super(...arguments),U=this,(0,r.A)(this,"handleChange",function(ne,me,Ee){Ee===void 0&&(Ee="optionColor");const{onChange:Ue,dispatch:at,selections:Ht}=U.props;Ue({value:ne,attr:me,dispatch:at,supAttr:Ee,selections:Ht})})}render(){const{optionBgColor:U,optionHoverBgColor:ne,optionSelectTextColor:me,optionSelectedColor:Ee}=this.props;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"drop-menu-option-color",children:[(0,a.jsx)("div",{className:"title",children:I18N.SettingPanel.listBackground}),(0,a.jsx)("div",{className:"right-area",children:(0,a.jsx)(Qn.R_,{className:Qn.Fw,attr:"optionBgColor",color:U,onChange:(Ue,at)=>this.handleChange(Ue,at)})})]}),(0,a.jsxs)("div",{className:"drop-menu-option-color",children:[(0,a.jsx)("div",{className:"title",children:I18N.SettingPanel.hoverBackground}),(0,a.jsx)("div",{className:"right-area",children:(0,a.jsx)(Qn.R_,{className:Qn.Fw,attr:"optionHoverBgColor",color:ne,onChange:(Ue,at)=>this.handleChange(Ue,at)})})]}),(0,a.jsxs)("div",{className:"drop-menu-option-color",children:[(0,a.jsx)("div",{className:"title",children:I18N.SettingPanel.listTextColor}),(0,a.jsx)("div",{className:"right-area",children:(0,a.jsx)(Qn.R_,{className:Qn.Fw,attr:"optionSelectTextColor",color:me,onChange:(Ue,at)=>this.handleChange(Ue,at)})})]}),(0,a.jsxs)("div",{className:"drop-menu-option-color",children:[(0,a.jsx)("div",{className:"title",children:I18N.SettingPanel.listSelectedTextColor}),(0,a.jsx)("div",{className:"right-area",children:(0,a.jsx)(Qn.R_,{className:Qn.Fw,attr:"optionSelectedColor",color:Ee,onChange:(Ue,at)=>this.handleChange(Ue,at)})})]})]})}}const Wu="drop_menu_option_color",g1="mp_"+Wu,tc=["children"];class W2 extends p.Component{constructor(){super(...arguments),(0,r.A)(this,"state",{show:(0,Vo.Yt)(g1,!0,Vo.qW.Boolean)}),(0,r.A)(this,"handleChange",()=>{const{show:U}=this.state;(0,Vo.a0)(g1,!U,Vo.qW.Boolean),this.setState({show:!U})})}shouldComponentUpdate(U,ne,me){var Ee;return(Ee=(0,ps.dP)())!=null&&Ee.flag.isDraggingItem?!1:(0,Le.N)(tc).call(this,U,ne)}render(){const{show:U}=this.state,{children:ne}=this.props;return(0,a.jsx)(ho.A,{collapse:!U,title:I18N.SettingPanel.inspector[Wu],onChange:this.handleChange,children:(0,a.jsx)(U2,{className:"option-color-panel",children:ne})})}}const V2={component:F1,params:{},getter:[L=>{let{selectedTrees:U}=L;const ne=U.map(Ee=>Ee.widget),me=(0,Ze.i)(ne,"dropMenu");return{dropMenuEcho:me.dropMenuEcho,mutualWay:me.mutualWay,text:(0,Ze.i)(ne,"textV0").text,isMultiple:me.isMultiple}}],setter:{onChange:bi.c}},H2=()=>[z2,[V2]],Dr={component:U1,params:{},getter:[L=>{let{selectedTrees:U}=L;const ne=U.map(xo=>xo.widget),me=(0,Ze.i)(ne,"optionColor"),{optionBgColor:Ee,optionHoverBgColor:Ue,optionSelectTextColor:at,optionSelectedColor:Ht}=me;return{optionBgColor:Ee,optionHoverBgColor:Ue,optionSelectTextColor:at,optionSelectedColor:Ht}}],setter:{onChange:bi.c}},gu=()=>[W2,[Dr]];class f1 extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleChange",(U,ne)=>{const{onChange:me,dispatch:Ee,selections:Ue}=this.props;me({value:U,attr:ne,dispatch:Ee,supAttr:"navigationMenu",selections:Ue})}),(0,r.A)(this,"handleSetIsShowIcon",U=>{this.handleChange(U,"isShowIcon")}),(0,r.A)(this,"handleSetCanExpandOneMenu",U=>{const{dispatch:ne}=this.props;this.handleChange(U,"canExpandOneMenu"),U&&ne({type:"entry:set:navigationMenu:canExpandOneMenu2"})})}render(){const{isShowIcon:U,canExpandOneMenu:ne,isShowAccordionMode:me}=this.props;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"itemPanel margin-left-n6 height-32",children:[(0,a.jsx)(Ct.A,{className:Ct.p,attr:"isShowIcon",isChecked:U,onChange:this.handleSetIsShowIcon}),(0,a.jsx)("label",{className:"right-label",children:I18N.SettingPanel.display_icon})]}),me&&(0,a.jsxs)("div",{className:"itemPanel margin-left-n6 height-32",children:[(0,a.jsx)(Ct.A,{className:Ct.p,attr:"canExpandOneMenu",isChecked:ne,onChange:this.handleSetCanExpandOneMenu}),(0,a.jsx)("label",{className:"right-label",children:I18N.SettingPanel.navigation_menu.accordion_mode})]})]})}}const z1=L=>{let{children:U}=L;return(0,a.jsx)(jc,{className:"navigationOtherSettingPanel",children:U})},Qh={component:f1,params:{isShowAccordionMode:!0},getter:[L=>{let{selectedTrees:U}=L;const ne=U.map(Ue=>Ue.widget),{isShowIcon:me,canExpandOneMenu:Ee}=(0,Ze.i)(ne,"navigationMenu");return{isShowIcon:me,canExpandOneMenu:Ee}}],setter:{onChange:bi.c}},fu=()=>[z1,[Qh]],Vu=u.Ay.section.withConfig({displayName:"styles__StyledSwitchesState",componentId:"sc-wuwe2m-0"})(["padding:8px 16px;border-top:1px solid ",";color:",";display:flex;align-items:start;position:relative;flex-direction:column;box-sizing:content-box;.line{width:100%;display:flex;align-items:center;justify-content:space-between;.right-content{width:140px;padding-left:7px;align-items:center;.direction-radio-line{margin-bottom:0;width:100%;border:none;.radio-option{border-radius:2px;color:",";&.active{background:",";}}}.interval-value{width:100%;}}}"],L=>L.theme.color_bg_border_01,L=>L.theme.color_text_L2,L=>L.theme.color_text_L1,L=>L.theme.color_btn_secondary_active),Hu=(0,p.memo)(L=>{let{checked:U,isDisabled:ne,onChange:me,dispatch:Ee,selections:Ue}=L;const at=(Po,nn)=>{me({value:Po,attr:nn,supAttr:"switch",dispatch:Ee,selections:Ue})},Ht=Po=>{at(Po,"checked")},xo=Po=>{at(Po,"isDisabled")};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"line height-32",children:[(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.switch_state}),(0,a.jsx)("div",{className:"right-content",children:(0,a.jsx)(Ys.A,{size:"small",isIOS:!0,isChecked:U,onChange:Ht})})]}),(0,a.jsxs)("div",{className:"line height-32",children:[(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.switch_disabled}),(0,a.jsx)("div",{className:"right-content",children:(0,a.jsx)(Ys.A,{size:"small",isIOS:!0,isChecked:ne,onChange:xo})})]})]})}),W1=L=>{let{children:U}=L;return(0,a.jsx)(Vu,{children:U})},Ku={component:Hu,params:{},getter:[L=>{let{selectedTrees:U}=L;const ne=U.map(Ue=>Ue.widget),{isDisabled:me,checked:Ee}=(0,Ze.i)(ne,"switch");return{checked:Ee,isDisabled:me}}],setter:{onChange:bi.c}},yu=()=>[W1,[Ku]];class K2 extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleChange",(U,ne)=>{const{onChange:me,dispatch:Ee,selections:Ue}=this.props;me({value:U,attr:ne,dispatch:Ee,supAttr:"mobileTabBars",selections:Ue})}),(0,r.A)(this,"handleSetIsShowIcon",U=>{this.handleChange(U,"isShowIcon")}),(0,r.A)(this,"handleSetIsShowText",U=>{this.handleChange(U,"isShowText")})}render(){const{isShowIcon:U,isShowText:ne}=this.props;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"itemPanel margin-left-n6 height-32",children:[(0,a.jsx)(Ct.A,{className:Ct.p,attr:"isShowSelectedIcon",isChecked:U,onChange:this.handleSetIsShowIcon}),(0,a.jsx)("label",{className:"right-label",children:I18N.SettingPanel.display_icon})]}),(0,a.jsxs)("div",{className:"itemPanel margin-left-n6 height-32",children:[(0,a.jsx)(Ct.A,{className:Ct.p,attr:"isShowSelectedText",isChecked:ne,onChange:this.handleSetIsShowText}),(0,a.jsx)("label",{className:"right-label",children:I18N.SettingPanel.display_text})]})]})}}const Gu=L=>{let{children:U}=L;return(0,a.jsx)(jc,{className:"navigationOtherSettingPanel",children:U})},G2={component:K2,params:{},getter:[L=>{let{selectedTrees:U}=L;const ne=U.map(Ue=>Ue.widget),{isShowIcon:me,isShowText:Ee}=(0,Ze.i)(ne,"mobileTabBars");return{isShowIcon:me,isShowText:Ee}}],setter:{onChange:bi.c}},Yu=()=>[Gu,[G2]],Y2=u.Ay.section.withConfig({displayName:"styles__StyledSwitchesAppearance",componentId:"sc-1ga8u6h-0"})(["width:240px;padding:0 16px;color:",";.slider-setting-line{display:flex;align-items:center;[type=color-btn]{margin:0 6px;}}"],L=>L.theme.color_text_L2);class Zu extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{show:(0,Vo.Yt)("mp_"+this.props.collapseName,!0,Vo.qW.Boolean)}),(0,r.A)(this,"handleSwitchesTrackAttrChange",(U,ne)=>{const{dispatch:me,handleChange:Ee}=this.props;Ee(U,ne),me({type:"entry:auto:show:hide:item"})}),(0,r.A)(this,"handleSubChange",()=>{const{show:U}=this.state;(0,Vo.a0)("mp_"+this.props.collapseName,!U,Vo.qW.Boolean),this.setState({show:!U})})}render(){const{thumbAttr:U,trackAttr:ne,isThumbVisible:me,isTrackVisible:Ee,collapseName:Ue,trackColor:at,thumbColor:Ht,isThumbVisibleAttr:xo,isTrackVisibleAttr:Po}=this.props,{show:nn}=this.state;return(0,a.jsx)(ho.A,{collapse:!nn,title:I18N.SettingPanel.inspector[Ue],onChange:this.handleSubChange,children:(0,a.jsxs)(Y2,{children:[(0,a.jsxs)("div",{className:"slider-setting-line margin-left-n6 height-32",children:[(0,a.jsx)(Ct.A,{className:Ct.p,attr:xo,isChecked:me,onChange:this.handleSwitchesTrackAttrChange}),(0,a.jsx)(Qn.R_,{className:Qn.Fw,attr:U,color:Ht,onChange:this.handleSwitchesTrackAttrChange}),(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.thumb_bg_switches})]}),(0,a.jsxs)("div",{className:"slider-setting-line margin-left-n6 height-32",children:[(0,a.jsx)(Ct.A,{className:Ct.p,attr:Po,isChecked:Ee,onChange:this.handleSwitchesTrackAttrChange}),(0,a.jsx)(Qn.R_,{className:Qn.Fw,attr:ne,color:at,onChange:this.handleSwitchesTrackAttrChange}),(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.track_bg_switches})]})]})})}}const Z2=(0,p.memo)(L=>{let{dispatch:U,onChange:ne,isThumbVisible:me,isCheckedThumbVisible:Ee,isTrackVisible:Ue,isCheckedTrackVisible:at,thumbColor:Ht,trackColor:xo,checkedThumbColor:Po,checkedTrackColor:nn,selections:is}=L;const Bn=($s,qs)=>{ne({value:$s,attr:qs,dispatch:U,supAttr:"switch",selections:is})};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Zu,{dispatch:U,handleChange:Bn,isThumbVisible:Ee,thumbColor:Po,thumbAttr:"checkedThumbColor",isTrackVisible:at,trackColor:nn,trackAttr:"checkedTrackColor",isTrackVisibleAttr:"isCheckedTrackVisible",isThumbVisibleAttr:"isCheckedThumbVisible",collapseName:"collapse_switches_checked_panel"}),(0,a.jsx)(Zu,{dispatch:U,handleChange:Bn,isThumbVisible:me,isTrackVisible:Ue,thumbAttr:"thumbColor",trackAttr:"trackColor",thumbColor:Ht,trackColor:xo,isTrackVisibleAttr:"isTrackVisible",isThumbVisibleAttr:"isThumbVisible",collapseName:"collapse_switches_unchecked_panel"})]})}),lh=L=>{let{children:U}=L;return(0,a.jsx)(a.Fragment,{children:U})},y1={component:Z2,params:{},getter:[L=>{let{selectedTrees:U}=L;const ne=U.map(is=>is.widget),{isThumbVisible:me,isCheckedThumbVisible:Ee,isTrackVisible:Ue,isCheckedTrackVisible:at,thumbColor:Ht,trackColor:xo,checkedThumbColor:Po,checkedTrackColor:nn}=(0,Ze.i)(ne,"switch");return{isThumbVisible:me,isCheckedThumbVisible:Ee,isTrackVisible:Ue,isCheckedTrackVisible:at,thumbColor:Ht,trackColor:xo,checkedThumbColor:Po,checkedTrackColor:nn}}],setter:{onChange:bi.c}},x1=()=>[lh,[y1]];var ch=e(9332);class V1 extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleLineSizeChange",(U,ne)=>{const{borderAttr:me,border:Ee}=this.props,Ue=(parseInt(U)||0)+10,at={...Ee,[ne]:Ue};this.props.handleChange(at,me)}),(0,r.A)(this,"handleChangeBorder",(U,ne)=>{const{borderAttr:me,border:Ee}=this.props,Ue={...Ee,[ne]:U};this.props.handleChange(Ue,me)}),(0,r.A)(this,"handleChangeSingleBorder",U=>{U.stopPropagation();const{borderVisibility:ne}=this.props,{borderSide:me}=U.currentTarget.dataset,Ee=[...ne],Ue=Number(me);Ee[Ue]=!ne[Ue],this.props.handleChange(Ee,"border_visibility")})}render(){const{attrPanel:U,canBorderWidth:ne,canBorderStyle:me,border:Ee,isHLine:Ue,isVLine:at,width:Ht,height:xo,borderVisibility:Po,canSetBorderVisibility:nn,title:is}=this.props,{bdrIsVisible:Bn,bdrColor:$s,bdrStyle:qs,bdrWidth:Mi}=Ee;let Xi;if(Ue){const Xa=xo-10>0?xo-10:1;Xi=(0,a.jsx)(pt.A,{attr:"height",className:"border-width-input",value:Xa,optionList:ql.K3,onConfirm:this.handleLineSizeChange})}else if(at){const Xa=Ht-10>0?Ht-10:1;Xi=(0,a.jsx)(pt.A,{attr:"width",className:"border-width-input",value:Xa,optionList:ql.K3,onConfirm:this.handleLineSizeChange})}else ne?Xi=(0,a.jsx)(pt.A,{className:"border-width-input",attr:"bdrWidth",value:Mi,optionList:ql.xq,onConfirm:this.handleChangeBorder}):Xi=null;const na=!me&&!Xi;return(0,a.jsxs)(ch.Y,{className:f()({"is-open":Bn&&!na}),children:[(0,a.jsxs)("div",{className:"appearance-line border-open height-32",children:[(0,a.jsx)(Ct.A,{className:Ct.p,attr:"bdrIsVisible",isChecked:Bn,onChange:this.handleChangeBorder}),(0,a.jsx)(Qn.R_,{className:Qn.Fw,attr:"bdrColor",attrPanel:U,color:$s,onChange:this.handleChangeBorder}),(0,a.jsx)("label",{className:"left-label",children:is||I18N.SettingPanel.stroke})]}),(0,a.jsxs)("div",{className:f()("border-collapse-body height-32 margin-right-n6",{"is-open":Bn&&!na}),children:[me&&(0,a.jsxs)("div",{className:"border-select-size-warp",children:[(0,a.jsx)(Gc.v,{}),(0,a.jsx)(ri.mq,{className:f()("border-select-size"),attr:"bdrStyle",menuClassName:"border_style_select_menu",optionList:(0,ql.se)(),value:qs,onChange:this.handleChangeBorder})]}),Xi,nn&&(0,a.jsx)(mc,{handleChange:this.handleChangeSingleBorder,borderVisibility:Po})]})]})}}(0,r.A)(V1,"defaultProps",{colorButtonAttr:"bdrColor"});const X2=u.Ay.section.withConfig({displayName:"styles__StyledTabsInfo",componentId:"sc-98epg8-0"})(["width:240px;padding:0 16px;color:",";.appearance-line{display:flex;align-items:center;color:",";.left-label{height:14px;color:",';line-height:14px;white-space:nowrap;}[type="color-btn"]{margin:0 6px;}}.info{justify-content:flex-start;.left-label.text_kbd{margin-right:24px;}.WorkspaceInputNumber{width:66px;}[type=color-btn]{margin-left:6px;}.options-menu-opener{&.is-open{.menu-opener{background-color:',";}}&.font-menu-opener{flex:1;display:flex;justify-content:flex-end;align-items:center;}}}"],L=>L.theme.color_text_L2,L=>L.theme.color_text_L2,L=>L.theme.color_text_L2,L=>L.color_background_split),Hm=u.Ay.div.withConfig({displayName:"styles__StyledCheckedMenu",componentId:"sc-98epg8-1"})(["width:204px;height:126px;header{height:40px;border-bottom:1px solid ",";display:flex;align-items:center;justify-content:space-between;padding:0 12px;color:",";.title{font-weight:500;}div{&:not(.disabled):hover{background:",";}&:not(.disabled):active{background:",";}}}.menu-wrapper{display:flex;flex-direction:row;justify-content:space-between;padding:8px 10px 16px 10px;color:",";&:not(:first-child){padding-top:0;}.font-style{p{margin-bottom:14px;}.icon{width:24px;height:24px;}.radio-line{background:transparent;color:",";&:lang(en){justify-content:flex-start;}}.radio-option{border-radius:4px;overflow:hidden;}.radio-line{&:not(.disabled){.radio-option{&:not(.active):hover{background:",";color:",";}&.active{background:",";color:",";}}}}}}"],L=>L.theme.color_bg_border_02,L=>L.theme.color_text_L1,L=>L.theme.color_btn_secondary_hover,L=>L.theme.color_btn_secondary_active,L=>L.theme.color_text_L3,L=>L.theme.color_text_L1,L=>L.theme.color_btn_secondary_hover,L=>L.theme.color_text_L1,L=>L.theme.color_btn_secondary_active,L=>L.theme.color_text_L1),Km=(0,u.Ay)(Ko.L4).withConfig({displayName:"styles__StyledDropDown",componentId:"sc-98epg8-2"})(["flex:1;display:flex;justify-content:flex-end;"]),Xu="tabs_checked",Qu="mp_"+Xu;class Q2 extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{show:(0,Vo.Yt)(Qu,!0,Vo.qW.Boolean)}),(0,r.A)(this,"handleChange",(U,ne)=>{const{onChange:me,dispatch:Ee,selections:Ue}=this.props;me({value:U,attr:ne,dispatch:Ee,supAttr:"tabs",selections:Ue})}),(0,r.A)(this,"handleChangeFontSize",U=>{this.handleChange(U,"checkedFontSize")}),(0,r.A)(this,"handleBoldChange",()=>{const{tabs:{checkedBoldType:U}}=this.props;this.handleChange(1-U,"checkedBoldType")}),(0,r.A)(this,"handleFontStyleChange",U=>{const{tabs:{checkedFontStyle:ne}}=this.props;this.handleChange(ne!==U?U:"normal","checkedFontStyle")}),(0,r.A)(this,"handleDecorationChange",U=>{const{tabs:{checkedTextDecoration:ne}}=this.props;this.handleChange(ne!==U?U:"normal","checkedTextDecoration")}),(0,r.A)(this,"handleSubChange",()=>{const{show:U}=this.state;(0,Vo.a0)(Qu,!U,Vo.qW.Boolean),this.setState({show:!U})}),(0,r.A)(this,"onChangeText",U=>ne=>{this.handleChange({textV0:ne},U)}),(0,r.A)(this,"updateFamilyVersion",()=>{const{onChange:U,dispatch:ne,selections:me}=this.props;U({value:1,attr:"!ffVersion",dispatch:ne,selections:me})})}render(){const{tabs:{checkedBorder:U,text:ne,checkedText:me}}=this.props,{show:Ee}=this.state;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(j0,{title:"\u6587\u672C",data:ne,onChange:this.onChangeText("text"),supAttr:"tabs-text",updateFamilyVersion:this.updateFamilyVersion}),(0,a.jsx)(ho.A,{collapse:!Ee,title:I18N.SettingPanel.inspector[Xu],onChange:this.handleSubChange,children:(0,a.jsx)(X2,{children:(0,a.jsx)(V1,{canBorderWidth:!0,canBorderStyle:!0,border:U,isHLine:!1,isVLine:!1,borderAttr:"checkedBorder",supAttr:"tabs",title:I18N.SettingPanel.tabs_checked_stroke,handleChange:this.handleChange})})}),(0,a.jsx)(j0,{title:"\u9009\u4E2D\u9879\u6587\u672C",data:me,onChange:this.onChangeText("checkedText"),supAttr:"tabs-checkedText",updateFamilyVersion:this.updateFamilyVersion})]})}}const Oc=L=>{let{children:U}=L;return(0,a.jsx)(a.Fragment,{children:U})},J2={component:Q2,params:{},getter:[L=>{let{selectedTrees:U,rootProject:ne,hasMissFontHi:me,cloudFontLocalList:Ee}=L;const Ue=U.map(Ht=>Ht.widget);return{tabs:(0,Ze.i)(Ue,"tabs"),rootProject:ne,hasMissFontHi:me,cloudFontLocalList:Ee}}],setter:{onChange:bi.c}},xu=()=>[Oc,[J2]],v1=u.Ay.section.withConfig({displayName:"styles__StyledInfoSetting",componentId:"sc-qa3n1e-0"})(["width:240px;padding:0 16px;color:",";.appearance-line{display:flex;align-items:center;color:",";.left-label{height:14px;color:",';line-height:14px;white-space:nowrap;}[type="color-btn"]{margin:0 6px;}}.info{justify-content:flex-start;.left-label{&.text_kbd{margin-right:24px;}&.page-number{margin-right:20px;&:lang(en){margin-right:8px;}}}.WorkspaceInputNumber{width:66px;}[type=color-btn]{margin-left:6px;}}'],L=>L.theme.color_text_L2,L=>L.theme.color_text_L2,L=>L.theme.color_text_L2),vu=u.Ay.div.withConfig({displayName:"styles__StyledSub",componentId:"sc-qa3n1e-1"})(["width:240px;& > header{font-weight:600;padding:14px 14px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid ",";transition:all 0.2s ease-in-out;cursor:pointer;}"],L=>L.theme.color_bg_border_02),bu="pagination_checked",Ju="mp_"+bu;class $2 extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{show:(0,Vo.Yt)(Ju,!0,Vo.qW.Boolean)}),(0,r.A)(this,"handleChange",(U,ne)=>{const{onChange:me,dispatch:Ee,paginationType:Ue,selections:at}=this.props;let Ht;Ue==="web"?Ht="paginationWeb":Ht="paginationMobile",me({value:U,attr:ne,dispatch:Ee,supAttr:Ht,selections:at})}),(0,r.A)(this,"onAppearanceChange",(U,ne)=>{const{dispatch:me}=this.props;this.handleChange(U,ne),me({type:"entry:auto:show:hide:item"})}),(0,r.A)(this,"handleChangeFontSize",U=>{this.handleChange(U,"checkedTextSize")}),(0,r.A)(this,"handleSubChange",()=>{const{show:U}=this.state;(0,Vo.a0)(Ju,!U,Vo.qW.Boolean),this.setState({show:!U})}),(0,r.A)(this,"onChangeText",U=>ne=>{const{onChange:me,dispatch:Ee,selections:Ue,paginationType:at}=this.props;me({value:ne,attr:U,dispatch:Ee,supAttr:at==="web"?"paginationWeb":"paginationMobile",selections:Ue})}),(0,r.A)(this,"updateFamilyVersion",()=>{const{onChange:U,dispatch:ne,selections:me}=this.props;U({value:1,attr:"!ffVersion",dispatch:ne,selections:me})})}render(){const{paginationType:U,hotAttr:ne,dispatch:me,rootProject:Ee}=this.props,{show:Ue}=this.state,at=U==="web"?"paginationWeb":"paginationMobile",{isCheckedBackgroundVisible:Ht,checkedBackgroundColor:xo,checkedBorder:Po,textV0:nn,checkedTextV0:is}=ne[at],Bn=U==="web";return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(j0,{title:"\u6587\u672C",data:{textV0:nn},hideFontFamily:!0,onChange:this.onChangeText("textV0"),supAttr:at+"-textV0",updateFamilyVersion:this.updateFamilyVersion}),Bn&&(0,a.jsx)(ho.A,{collapse:!Ue,title:I18N.SettingPanel.inspector[bu],onChange:this.handleSubChange,children:(0,a.jsx)(v1,{children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"appearance-line color-line height-32 margin-left-n6",children:[(0,a.jsx)(Ct.A,{className:Ct.p,attr:"isCheckedBackgroundVisible",isChecked:Ht,onChange:this.handleChange}),(0,a.jsx)(Qn.R_,{className:Qn.Fw,attr:"checkedBackgroundColor",color:xo,onChange:this.handleChange}),(0,a.jsx)("label",{className:"left-label background-label",children:I18N.SettingPanel.fill})]}),(0,a.jsx)(V1,{canBorderWidth:!0,canBorderStyle:!0,border:Po,isHLine:!1,isVLine:!1,borderAttr:"checkedBorder",handleChange:this.handleChange})]})})}),(0,a.jsx)(j0,{title:"\u9009\u4E2D\u9879\u6587\u672C",data:{textV0:is},hideFontFamily:!0,onChange:this.onChangeText("checkedTextV0"),supAttr:at+"-checkedTextV0checkedTextV0",updateFamilyVersion:this.updateFamilyVersion})]})}}const H1=L=>{let{children:U}=L;return(0,a.jsx)(a.Fragment,{children:U})};var $u=e(40472);const q2="use-localstorage-pagination-max-page",em=L=>{let{maxNum:U,onChange:ne,dispatch:me,selections:Ee,supAttr:Ue}=L;const[at,Ht]=(0,$u.Vc)(q2,{defaultValue:!0}),xo=(0,$u.qK)(nn=>{ne({value:nn,attr:"pagesNumber",dispatch:me,supAttr:Ue,selections:Ee})}),Po=()=>{Ht(!at)};return(0,a.jsx)(ho.A,{collapse:!at,title:I18N.SettingPanel.numerValue,onChange:Po,children:(0,a.jsx)(v1,{children:(0,a.jsxs)("div",{className:"line info height-32",children:[(0,a.jsx)("label",{className:"left-label page-number",children:I18N.SettingPanel.maxPageNum}),(0,a.jsx)(pt.A,{value:U,onConfirm:xo,min:1,className:"page-input-number"})]})})})},Cu=(0,p.memo)(em),qu={component:$2,params:{paginationType:"default"},getter:[L=>{let{selectedTrees:U,rootProject:ne,hasMissFontHi:me,cloudFontLocalList:Ee}=L;const Ue=U.map(Ht=>Ht.widget);return{hotAttr:sdkStore.getHotItem(Ue[0].cid).hotAttr,rootProject:ne,hasMissFontHi:me,cloudFontLocalList:Ee}}],setter:{onChange:bi.c}},Gm={component:Cu,params:{paginationType:"default"},getter:[L=>{let{selectedTrees:U}=L;const ne=U.map(Ue=>Ue.widget),me=sdkStore.getHotItem(ne[0].cid).hotAttr;return{maxNum:("paginationWeb"in me?me.paginationWeb:me.paginationMobile).pagesNumber}}],setter:{onChange:bi.c}},tm=()=>[H1,[{...qu,params:{paginationType:"mobile"}}]],om=()=>[H1,[{...qu,params:{paginationType:"web"}}]],F0=L=>[H1,[{...Gm,params:{supAttr:L}}]],dh=u.Ay.section.withConfig({displayName:"styles__StyledDigitalStepperInfo",componentId:"sc-v3kpfw-0"})(["width:240px;padding:0 16px;color:",";.stepperInfo{justify-content:flex-start;.left-label{flex:1;}.right-content{width:140px;display:flex;align-items:center;justify-content:flex-start;}.WorkspaceInputNumber{width:44px;&.font-size-input{width:66px;}&.stepperInfoText{width:66px;}}[type=color-btn]{margin-left:6px;}.dividing-line{margin:0 14px 0 2px;display:inline-block;width:10px;height:1px;background:",";}}"],L=>L.theme.color_text_L2,L=>L.theme.color_bg_border_01),b1="digital_stepper_number",e2="mp_"+b1;class nm extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{show:(0,Vo.Yt)(e2,!0,Vo.qW.Boolean)}),(0,r.A)(this,"handleChange",(U,ne)=>{const{onChange:me,dispatch:Ee,selections:Ue}=this.props;me({value:U,attr:ne,dispatch:Ee,supAttr:"digitalStepper",selections:Ue})}),(0,r.A)(this,"handleIntChange",(U,ne)=>{const me=parseInt(U)||0;if(this.onDigitalStepperChange(me,ne),["min","max"].includes(ne)){const{text:Ee}=this.props,Ue=parseInt(Ee)||0;(ne==="min"&&me>Ue||ne==="max"&&me<Ue)&&this.onDigitalStepperChange(me,"value")}}),(0,r.A)(this,"onDigitalStepperChange",(U,ne)=>{this.handleChange(U,ne)}),(0,r.A)(this,"handleChangeFontSize",(U,ne)=>{this.handleChange(parseInt(U),ne)}),(0,r.A)(this,"handleSubChange",()=>{const{show:U}=this.state;(0,Vo.a0)(e2,!U,Vo.qW.Boolean),this.setState({show:!U})})}render(){const{min:U,max:ne,number:me,fontSize:Ee,color:Ue,dispatch:at}=this.props,{show:Ht}=this.state;return(0,a.jsx)(ho.A,{collapse:!Ht,title:I18N.SettingPanel.inspector[b1],onChange:this.handleSubChange,children:(0,a.jsxs)(dh,{children:[(0,a.jsxs)("div",{className:"line stepperInfo height-32",children:[(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.numericalRange}),(0,a.jsxs)("div",{className:"right-content",children:[(0,a.jsx)(pt.A,{attr:"min",value:U,max:ne,min:-99999,onConfirm:this.handleIntChange}),(0,a.jsx)("span",{className:"dividing-line"}),(0,a.jsx)(pt.A,{attr:"max",value:ne,min:U,max:99999,onConfirm:this.handleIntChange})]})]}),(0,a.jsxs)("div",{className:"line stepperInfo height-32",children:[(0,a.jsx)("label",{className:"left-label defaultValue",children:I18N.SettingPanel.defaultValue}),(0,a.jsx)("div",{className:"right-content",children:(0,a.jsx)(pt.A,{className:"stepperInfoText",attr:"value",value:me,max:ne,min:U,onConfirm:this.handleIntChange})})]}),(0,a.jsxs)("div",{className:"line stepperInfo height-32",children:[(0,a.jsx)("label",{className:"left-label text_kbd",children:I18N.SettingPanel.text_kbd}),(0,a.jsxs)("div",{className:"right-content",children:[(0,a.jsx)(Gi.A,{disabled:!1,fontSize:Ee,checkMinFontSize:!0,handleChange:this.handleChangeFontSize,dispatch:at}),(0,a.jsx)(Qn.R_,{className:Qn.Fw,attr:"textColor",color:Ue,onChange:this.handleChange})]})]})]})})}}const yo=L=>{let{children:U}=L;return(0,a.jsx)(a.Fragment,{children:U})},Ml={component:nm,params:{},getter:[L=>{let{selectedTrees:U}=L;const ne=U.map(Po=>Po.widget),me=(0,Ze.i)(ne,"digitalStepper"),{min:Ee,max:Ue,value:at,fontSize:Ht,textColor:xo}=me;return{min:Ee,max:Ue,number:at,fontSize:Ht,color:xo}}],setter:{onChange:bi.c}},Zd=()=>[yo,[Ml,"DigitalStepperInfo"]],Jh=L=>{const{thumbSize:U,thumbPosition:ne,thumbShadow:me,thumbBorderRadius:Ee,thumbBorder:Ue,thumbBackgroundColor:at,isThumbBackgroundVisible:Ht}=L;return{position:ne,size:U,borderRadius:Ee,border:Ue,background:at,isBackgroundVisible:Ht,shadow:me}},m0=L=>{const{trackSize:U,trackBorderRadius:ne,trackForegroundColor:me,isTrackForegroundVisible:Ee,trackBackgroundColor:Ue,isTrackBackgroundVisible:at,trackShadow:Ht}=L;return{size:U,borderRadius:ne,foreground:me,isForegroundVisible:Ee,background:Ue,isBackgroundVisible:at,shadow:Ht}};var wu=e(86913);const sm=(0,u.i7)(["from{opacity:1;}to{opacity:0.3;}"]),im=u.Ay.div.withConfig({displayName:"styles__StyledBorderRadius",componentId:"sc-3klhru-0"})(["display:flex;align-items:center;.radius-set-controller{display:flex;height:24px;margin-right:8px;position:relative;&.can-not-set-single{width:auto;}svg{color:",";}.set-seperately{display:inline-flex;width:24px;vertical-align:middle;justify-content:center;align-items:center;transition:all 0.2s ease-in-out;cursor:pointer;border-radius:4px;&.active{background-color:",";svg{path:first-child{fill:",";}path:nth-child(2){fill:",";}path:nth-child(3){fill:",";}path:nth-child(4){fill:",";}}}&:not(.active):hover{background-color:",";}&:active{background-color:",";}}.set-all{display:flex;width:24px;justify-content:space-around;align-items:center;cursor:pointer;transition:all 0.2s ease-in-out;border-radius:4px;&.active{background-color:",";}&:not(.active):hover{background-color:",";}&:active{background-color:",";}}.seperate-dropdown{position:relative;.expand-icon{position:absolute;right:6px;line-height:18px;color:#c8cdd0;svg{transform:rotate(180deg);transition:all 0.2s ease-out;}}&.is-open{.expand-icon{svg{transform:rotate(0);}}}}.radiusActiveIcon{position:absolute;width:5px;height:5px;display:none;path{fill:",";}&.tl{top:6px;left:30px;}&.tr{top:6px;right:5px;transform:rotate(90deg);}&.bl{left:30px;bottom:6px;transform:rotate(-90deg);}&.br{right:5px;bottom:6px;transform:rotate(180deg);}&.animated{display:inline-block;animation:"," 0.4s ease-in-out 0.2s 4 alternate;}}}.seperate-radius-input{.set-all-input{height:28px;}.seperate-set-area{display:flex;width:154px;.separate-input{height:28px;&:not(.is-active){border-color:",";}&.is-active{border-left:1px solid",";&:not(:first-child){border-left:1px solid ",";}}&:first-child{border-radius:4px 0 0 4px;&:hover{border-color:",";}}&:not(:first-child){border-radius:0;border-left:1px solid transparent;margin-left:-1px;&:hover{border-color:",";border-left:1px solid ",";}}&:last-child{border-radius:0 4px 4px 0;}}}}"],L=>L.theme.color_text_L1,L=>L.theme.color_btn_secondary_active,L=>L.activeRadius==="tl"?"transparent":L.theme.color_text_L1,L=>L.activeRadius==="tr"?"transparent":L.theme.color_text_L1,L=>L.activeRadius==="bl"?"transparent":L.theme.color_text_L1,L=>L.activeRadius==="br"?"transparent":L.theme.color_text_L1,L=>L.theme.color_btn_secondary_active,L=>L.theme.color_btn_secondary_active,L=>L.theme.color_btn_secondary_active,L=>L.theme.color_btn_secondary_hover,L=>L.theme.color_btn_secondary_active,L=>L.theme.color_proto,sm,L=>L.theme.color_bg_border_02,L=>L.theme.color_proto,L=>L.theme.color_proto,L=>L.theme.color_proto,L=>L.theme.color_proto,L=>L.theme.color_proto);class t2 extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{setAll:!0,activeRadius:""}),(0,r.A)(this,"setElementRef",U=>this.$element=U),(0,r.A)(this,"setRadiusActive",U=>this.$radiusActiveRef=U),(0,r.A)(this,"setSetAllFromProps",()=>{const{borderRadius:U}=this.props;this.setState({setAll:!(0,wu.k4)(U)})}),(0,r.A)(this,"enableSetAll",()=>{if(this.state.setAll)return;const{radiusTL:U}=this.props.borderRadius;this.setState({activeRadius:""}),this.handleSetAll(U)}),(0,r.A)(this,"enableSetSeparately",()=>{this.state.setAll&&this.handleSetSeparatelyForOnce(this.props.borderRadius)}),(0,r.A)(this,"handleSetAll",U=>{const{handleChange:ne,attr:me}=this.props,Ee=parseInt(U)||0;if(!(0,wu.k4)(this.props.borderRadius)){const{radiusTL:Ue}=this.props.borderRadius;if(Ee===Ue)return}ne(Ee,me)}),(0,r.A)(this,"handleSetSeparately",(U,ne)=>{const{handleChange:me,attr:Ee}=this.props,Ue=parseInt(U)||0,at=this.props.borderRadius;if(Ue===at[ne])return;const{radiusTL:Ht,radiusTR:xo,radiusBR:Po,radiusBL:nn}=at,is={radiusTL:Ht,radiusTR:xo,radiusBR:Po,radiusBL:nn,[ne]:Ue};me(is,Ee)}),(0,r.A)(this,"handleFocusSeparately",(U,ne)=>{if(this.setState({activeRadius:ne}),this.$radiusActiveRef){const me=this.$radiusActiveRef.querySelector(".radiusActiveIcon");me&&(me.classList.remove("animated"),window.requestAnimationFrame(()=>{me.classList.add("animated")}))}}),(0,r.A)(this,"handleSetSeparatelyForOnce",U=>{const{handleChange:ne,attr:me}=this.props;ne({radiusTL:U,radiusTR:U,radiusBR:U,radiusBL:U},me)}),(0,r.A)(this,"handleCancelActiveRadius",U=>{this.$element&&this.$element.contains(U.target)||this.setState({activeRadius:""})})}componentDidMount(){this.setSetAllFromProps()}componentDidUpdate(U){U.borderRadius!==this.props.borderRadius&&this.setSetAllFromProps()}render(){const{canSetSingleRadius:U,borderRadius:ne,className:me=""}=this.props,{activeRadius:Ee,setAll:Ue}=this.state;let at,Ht,xo,Po;return typeof ne!="number"?{radiusTL:at,radiusTR:Ht,radiusBR:xo,radiusBL:Po}=this.props.borderRadius:(at=this.props.borderRadius,Ht=this.props.borderRadius,xo=this.props.borderRadius,Po=this.props.borderRadius),(0,a.jsxs)(im,{className:me,activeRadius:Ee,children:[(0,a.jsxs)("div",{className:f()("radius-set-controller",!U&&"can-not-set-single"),children:[(0,a.jsx)(ae.P,{iconClassName:f()("set-all",{active:Ue}),onClick:this.enableSetAll,name:"design/br_set_all",content:I18N.SettingPanel.radius,direction:"down",tagName:"SVGIcon"}),U&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ae.P,{iconClassName:f()("set-seperately",{active:!Ue}),onClick:this.enableSetSeparately,name:"design/br_set_separately",content:I18N.SettingPanel.uni_radius,direction:"down",tagName:"SVGIcon"}),(0,a.jsx)("div",{ref:this.setRadiusActive,children:(0,a.jsx)(S.C,{name:"design/settingPanel/radius/active",className:f()("radiusActiveIcon",Ee)})})]})]}),(0,a.jsx)("div",{className:"seperate-radius-input",children:Ue?(0,a.jsx)(pt.A,{className:"set-all-input width-66",min:0,max:9999,value:at,disabled:!Ue,onConfirm:this.handleSetAll}):(0,a.jsxs)("div",{className:"seperate-set-area",ref:this.setElementRef,children:[(0,a.jsx)(pt.A,{className:"seperate-input",attr:"radiusTL",min:0,max:9999,value:at,onFocus:this.handleFocusSeparately,onConfirm:this.handleSetSeparately}),(0,a.jsx)(pt.A,{className:"seperate-input",attr:"radiusTR",min:0,max:9999,value:Ht,onFocus:this.handleFocusSeparately,onConfirm:this.handleSetSeparately}),(0,a.jsx)(pt.A,{className:"seperate-input",attr:"radiusBL",min:0,max:9999,value:Po,onFocus:this.handleFocusSeparately,onConfirm:this.handleSetSeparately}),(0,a.jsx)(pt.A,{className:"seperate-input",attr:"radiusBR",min:0,max:9999,value:xo,onFocus:this.handleFocusSeparately,onConfirm:this.handleSetSeparately}),Ee&&(0,a.jsx)(ji.A,{target:document,onClick:this.handleCancelActiveRadius})]})})]})}}const ph=u.Ay.section.withConfig({displayName:"style__StyledSliderTrackSettings",componentId:"sc-14o8pen-0"})(["width:240px;padding:0 14px;color:",";.line{display:flex;}"],L=>L.theme.color_text_L2),qd=u.Ay.section.withConfig({displayName:"style__StyledSliderSettings",componentId:"sc-14o8pen-1"})(["width:240px;padding:0 14px;color:",";.appearance-line{display:flex;align-items:center;color:",";.left-label{height:14px;color:",';line-height:14px;white-space:nowrap;}[type="color-btn"]{margin:0 6px;}}.slider-setting-line{display:flex;align-items:center;.label-with-margin{flex-shrink:0;margin-right:32px;&:lang(en){width:68px;margin-right:0;}}&.slider-position{[type=slider]{width:92px;margin:0 8px;.rail{.fill{background-color:#1684fc;}}}.input-number{width:52px;}}[type=color-btn]{margin:0 6px;}.WorkspaceInputNumber{width:62px;}}'],L=>L.theme.color_text_L2,L=>L.theme.color_text_L2,L=>L.theme.color_text_L2),am=[{label:"8",value:8},{label:"16",value:16},{label:"24",value:24},{label:"32",value:32},{label:"40",value:40},{label:"48",value:48},{label:"56",value:56},{label:"64",value:64},{label:"72",value:72},{label:"80",value:80}],o2="slider_thumb_settings",n2="mp_"+o2;class C1 extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{show:(0,Vo.Yt)(n2,!0,Vo.qW.Boolean)}),(0,r.A)(this,"handleSliderThumbAttrChange",(U,ne)=>{const{onChange:me}=this.props;me({value:U,attr:ne})}),(0,r.A)(this,"handleSliderThumbAttrConfirm",(U,ne)=>{this.handleSliderThumbAttrChange(U,ne),sdkStore.combineMerge(ne+"-update")}),(0,r.A)(this,"handleSliderThumbAttrMouseDown",U=>sdkStore.combineMergeMark(U+"-update")),(0,r.A)(this,"handleSubChange",()=>{const{show:U}=this.state;(0,Vo.a0)(n2,!U,Vo.qW.Boolean),this.setState({show:!U})})}render(){const{position:U,size:ne,borderRadius:me,background:Ee,isBackgroundVisible:Ue,border:at,shadow:Ht}=this.props,{show:xo}=this.state;return(0,a.jsx)(ho.A,{collapse:!xo,title:I18N.SettingPanel.inspector[o2],onChange:this.handleSubChange,children:(0,a.jsxs)(qd,{children:[(0,a.jsxs)("div",{className:"slider-setting-line slider-position height-32",children:[(0,a.jsx)("label",{style:{flexShrink:0},children:I18N.SettingPanel.thumb_position}),(0,a.jsx)(Ss.A,{attr:"thumbPosition",className:"slider-thumb-position-setting",value:U,max:100,min:0,onChange:this.handleSliderThumbAttrChange,onConfirm:this.handleSliderThumbAttrConfirm,onMouseDown:this.handleSliderThumbAttrMouseDown}),(0,a.jsx)(pt.A,{className:"input-number",attr:"thumbPosition",value:U,min:0,max:100,suffix:"%",onConfirm:this.handleSliderThumbAttrChange})]}),(0,a.jsxs)("div",{className:"slider-setting-line size-setting height-32",children:[(0,a.jsx)("label",{className:"label-with-margin",children:I18N.SettingPanel.thumb_size}),(0,a.jsx)(pt.A,{value:ne,attr:"thumbSize",onConfirm:this.handleSliderThumbAttrChange,min:2,max:80,optionList:am})]}),(0,a.jsx)("div",{className:"slider-setting-line height-32",children:(0,a.jsx)(t2,{attr:"thumbBorderRadius",canSetSingleRadius:!1,borderRadius:me,handleChange:this.handleSliderThumbAttrChange})}),(0,a.jsxs)("div",{className:"slider-setting-line margin-left-n6 height-32",children:[(0,a.jsx)(Ct.A,{className:Ct.p,attr:"isThumbBackgroundVisible",isChecked:Ue,onChange:this.handleSliderThumbAttrChange}),(0,a.jsx)(Qn.R_,{className:Qn.Fw,attr:"thumbBackgroundColor",attrPanel:"thumb",color:Ee,onChange:this.handleSliderThumbAttrChange}),(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.fill})]}),(0,a.jsx)(V1,{className:"slider-setting-line height-32",attrPanel:"thumb",border:at,canBorderWidth:!0,canBorderStyle:!0,handleChange:this.handleSliderThumbAttrChange,borderAttr:"thumbBorder"}),(0,a.jsx)(Ld,{className:"margin-left-n6",shadow:Ht,handleChange:this.handleSliderThumbAttrChange,apattr:"thumbShadow"})]})})}}const rm=[{label:"2",value:2},{label:"4",value:4},{label:"6",value:6},{label:"8",value:8},{label:"10",value:10},{label:"12",value:12},{label:"14",value:14},{label:"16",value:16},{label:"18",value:18},{label:"20",value:20}],s2="slider_track_settings",Su="mp_"+s2;class i2 extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{show:(0,Vo.Yt)(Su,!0,Vo.qW.Boolean)}),(0,r.A)(this,"handleSliderTrackAttrChange",(U,ne)=>{const{onChange:me}=this.props;me({value:U,attr:ne})}),(0,r.A)(this,"handleSubChange",()=>{const{show:U}=this.state;(0,Vo.a0)(Su,!U,Vo.qW.Boolean),this.setState({show:!U})})}render(){const{size:U,borderRadius:ne,background:me,isBackgroundVisible:Ee,isForegroundVisible:Ue,foreground:at,shadow:Ht}=this.props,{show:xo}=this.state;return(0,a.jsx)(ho.A,{collapse:!xo,title:I18N.SettingPanel.inspector[s2],onChange:this.handleSubChange,children:(0,a.jsxs)(qd,{children:[(0,a.jsx)("div",{className:"slider-setting-line height-32",children:(0,a.jsx)(t2,{attr:"trackBorderRadius",canSetSingleRadius:!1,borderRadius:ne,handleChange:this.handleSliderTrackAttrChange})}),(0,a.jsxs)("div",{className:"slider-setting-line size-setting height-32",children:[(0,a.jsx)("label",{className:"label-with-margin",children:I18N.SettingPanel.track_size}),(0,a.jsx)(pt.A,{value:U,attr:"trackSize",onConfirm:this.handleSliderTrackAttrChange,min:2,max:20,optionList:rm})]}),(0,a.jsxs)("div",{className:"slider-setting-line margin-left-n6 height-32",children:[(0,a.jsx)(Ct.A,{className:Ct.p,attr:"isTrackBackgroundVisible",isChecked:Ee,onChange:this.handleSliderTrackAttrChange}),(0,a.jsx)(Qn.R_,{className:Qn.Fw,attr:"trackBackgroundColor",attrPanel:"track",color:me,onChange:this.handleSliderTrackAttrChange}),(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.track_background_color})]}),(0,a.jsxs)("div",{className:"slider-setting-line margin-left-n6 height-32",children:[(0,a.jsx)(Ct.A,{className:Ct.p,attr:"isTrackForegroundVisible",isChecked:Ue,onChange:this.handleSliderTrackAttrChange}),(0,a.jsx)(Qn.R_,{className:Qn.Fw,attr:"trackForegroundColor",attrPanel:"track",color:at,onChange:this.handleSliderTrackAttrChange}),(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.track_foreground_color})]}),(0,a.jsx)(Ld,{className:"slider-setting-line shadow-line margin-left-n6",shadow:Ht,apattr:"trackShadow",handleChange:this.handleSliderTrackAttrChange})]})})}}const Ym=L=>{let{track:U,thumb:ne,selections:me,dispatch:Ee,onChange:Ue}=L;const at=Ht=>{let{value:xo,attr:Po}=Ht;Ue({value:xo,attr:Po,selections:me,dispatch:Ee})};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i2,{...U,onChange:at}),(0,a.jsx)(C1,{...ne,onChange:at})]})},a2=L=>{let{children:U}=L;return(0,a.jsx)(a.Fragment,{children:U})},lm={component:Ym,params:{},getter:[L=>{let{selectedTrees:U}=L;const me=U.map(Ee=>Ee.widget)[0];return{thumb:Jh(me.slider),track:m0(me.slider)}}],setter:{onChange:L=>{let{value:U,attr:ne,selections:me,dispatch:Ee}=L;return(0,bi.c)({value:U,attr:ne,dispatch:Ee,supAttr:"slider",selections:me})}}},cm=()=>[a2,[lm]],dm=u.Ay.section.withConfig({displayName:"styles__StyledTabBarSelected",componentId:"sc-1etwz9a-0"})(["padding:0 16px;color:",";.slider-setting-line{display:flex;align-items:center;[type=color-btn]{margin:0 6px;}}"],L=>L.theme.color_text_L2),r2="tab_bars_selected",l2="mp_"+r2;class pm extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{show:(0,Vo.Yt)(l2,!0,Vo.qW.Boolean)}),(0,r.A)(this,"handleChange",(U,ne)=>{const{onChange:me,dispatch:Ee,selections:Ue}=this.props;me({value:U,attr:ne,dispatch:Ee,supAttr:"mobileTabBars",selections:Ue})}),(0,r.A)(this,"handleCheckOnchange",(U,ne)=>{this.handleChange(U,ne)}),(0,r.A)(this,"handleSubChange",()=>{const{show:U}=this.state;(0,Vo.a0)(l2,!U,Vo.qW.Boolean),this.setState({show:!U})})}render(){const{show:U}=this.state,{selectedTextColor:ne,selectedIconColor:me,isShowSelectedText:Ee,isShowSelectedIcon:Ue}=this.props;return(0,a.jsx)(ho.A,{collapse:!U,title:I18N.SettingPanel.inspector[r2],onChange:this.handleSubChange,children:(0,a.jsxs)(dm,{children:[(0,a.jsxs)("div",{className:"slider-setting-line margin-left-n6 height-32",children:[(0,a.jsx)(Ct.A,{className:Ct.p,attr:"isShowSelectedText",isChecked:Ee,onChange:this.handleCheckOnchange}),(0,a.jsx)(Qn.R_,{className:Qn.Fw,attr:"checkedTextColor",color:ne,onChange:this.handleChange}),(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.mobile_tabs_text_color})]}),(0,a.jsxs)("div",{className:"slider-setting-line margin-left-n6 height-32",children:[(0,a.jsx)(Ct.A,{className:Ct.p,attr:"isShowSelectedIcon",isChecked:Ue,onChange:this.handleCheckOnchange}),(0,a.jsx)(Qn.R_,{className:Qn.Fw,attr:"checkedIconColor",color:me,onChange:this.handleChange}),(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.mobile_tabs_icon_color})]})]})})}}const hm=L=>{let{children:U}=L;return(0,a.jsx)(a.Fragment,{children:U})},$h={component:pm,params:{isShowAccordionMode:!0},getter:[L=>{let{selectedTrees:U}=L;const ne=U.map(Ht=>Ht.widget),{checkedTextColor:me,checkedIconColor:Ee,isShowSelectedText:Ue,isShowSelectedIcon:at}=(0,Ze.i)(ne,"mobileTabBars");return{selectedTextColor:me,selectedIconColor:Ee,isShowSelectedText:Ue,isShowSelectedIcon:at}}],setter:{onChange:bi.c}},he=()=>[hm,[$h,"MobileTabBarsInfo"]];var W=e(33039);const Q=u.Ay.section.withConfig({displayName:"styles__StyledSelectionControlTypeSetting",componentId:"sc-mmofej-0"})(["padding:0 14px;display:flex;align-items:center;ul{display:flex;align-items:center;li{display:inline-block;width:24px;height:24px;border-radius:4px;&:first-child{margin-right:4px;}a{width:24px;height:24px;svg{width:24px;height:24px;color:",";}&.active{background-color:",";}&:not(.active):hover{background-color:"," !important;}}}}"],L=>L.theme.color_text_L1,L=>L.theme.color_btn_secondary_active,L=>L.theme.color_btn_secondary_hover);var ge=function(L){return L.Radio="radio",L.Checkbox="checkbox",L}(ge||{});const Me=L=>{let{typeSelected:U,optionData:ne,onChange:me,dispatch:Ee,selections:Ue}=L;const at=function(xo,Po,nn){nn===void 0&&(nn="selectionControl"),me({value:xo,attr:Po,dispatch:Ee,supAttr:nn,selections:Ue})},Ht=xo=>{if(xo!==U&&(at(xo,"type"),xo===ge.Radio)){let Po=!1;const nn=Ri()(ne).map(is=>Po?{...is,data:{...is.data,selected:!1}}:(is.data.selected&&(Po=!0),is));at(nn,"optionData",null)}};return(0,a.jsx)(Q,{className:"height-32",children:(0,a.jsx)("ul",{children:Object.keys(ge).map(xo=>{const Po=ge[xo],nn=Po===U;return(0,a.jsx)("li",{children:(0,a.jsx)(W.A,{active:nn,svgIconName:"setting_panel/selection_control/"+Po,onClick:()=>Ht(Po)})},Po)})})})},Pe="selection_control_type_panel",Ie="mp_"+Pe,Oe=L=>{let{children:U}=L;const[ne,me]=(0,p.useState)((0,Vo.Yt)(Ie,!0,Vo.qW.Boolean)),Ee=()=>{(0,Vo.a0)(Ie,!ne,Vo.qW.Boolean),me(!ne)};return(0,a.jsx)(ho.A,{collapse:!ne,title:I18N.SettingPanel.inspector[Pe],onChange:Ee,children:U})},Ke={component:Me,params:{},getter:[L=>{let{selectedTrees:U}=L;const ne=U.map(Ee=>Ee.widget);return{typeSelected:(0,Ze.i)(ne,"selectionControl").type,optionData:(0,Ze.i)(ne,"optionData")}}],setter:{onChange:bi.c}},ot=()=>[Oe,[Ke]],rt=u.Ay.section.withConfig({displayName:"styles__StyledSelectionControlAttrSettings",componentId:"sc-eqyi3z-0"})(["border-top:1px solid ",";padding:8px 16px 8px 16px;.line{display:flex;align-items:center;.left-label{white-space:nowrap;}.right-content{width:140px;}&.selection-control-disabled-setting{.right-content{padding-left:7px;}}}.selection-control-style{justify-content:flex-start;ul{display:inline-flex;transform:translateX(-3px);flex:1;li{display:inline-flex;width:24px;height:24px;border-radius:4px;&:first-child{margin-right:4px;}a{width:24px;height:24px;svg{width:24px;height:24px;color:",";}&.active{background-color:",";}&:not(.active):hover{background-color:"," !important;}}}}.gap-input{width:66px;span.title{padding-left:0;}svg.gap-icon{width:24px;height:24px;}}}"],L=>L.theme.color_bg_border_01,L=>L.theme.color_text_L2,L=>L.theme.color_btn_secondary_active,L=>L.theme.color_btn_secondary_hover);var lt=function(L){return L.Row="row",L.Column="column",L}(lt||{});const wt=L=>{let{disabled:U,fontSize:ne,layoutSelected:me,gap:Ee,w:Ue,h:at,selections:Ht,onChange:xo,dispatch:Po}=L;const nn=(is,Bn)=>{if(Bn==="fontSize"){const $s=is/ne,qs=Math.round(Ee*$s),Mi=Math.round(Ue*$s),Xi=Math.round(at*$s);xo({value:qs,attr:"gap",dispatch:Po,supAttr:"selectionControl",selections:Ht}),xo({value:Mi,attr:"w",dispatch:Po,selections:Ht}),xo({value:Xi,attr:"h",dispatch:Po,selections:Ht})}xo({value:is,attr:Bn,dispatch:Po,supAttr:"selectionControl",selections:Ht})};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"selection-control-disabled-setting line height-32",children:[(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.switch_disabled}),(0,a.jsx)("div",{className:"right-content",children:(0,a.jsx)(Ys.A,{size:"small",isIOS:!0,isChecked:U,onChange:is=>nn(is,"isDisabled")})})]}),(0,a.jsxs)("div",{className:"selection-control-size-setting line height-32",children:[(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.design.size}),(0,a.jsx)("div",{className:"right-content",children:(0,a.jsx)(Gi.A,{attr:"fontSize",fontSize:ne,handleChange:nn,dispatch:Po})})]}),(0,a.jsxs)("div",{className:"selection-control-style line height-32",children:[(0,a.jsx)("ul",{children:Object.keys(lt).map(is=>{const Bn=lt[is],$s=Bn===me;return(0,a.jsx)("li",{children:(0,a.jsx)(h.Q,{icon:(0,a.jsx)(W.A,{active:$s,svgIconName:"setting_panel/selection_control/"+Bn}),content:I18N.SettingPanel.inspector["selection_control_"+Bn],onClick:()=>nn(Bn,"layout"),direction:"down"})},Bn)})}),(0,a.jsx)("div",{className:"right-content",children:(0,a.jsx)(pt.A,{className:"gap-input step-input-width-72",title:(0,a.jsx)(S.C,{name:"setting_panel/smart_selection/col_gap",className:"gap-icon"}),attr:"gap",value:Ee,min:2,max:9999,onConfirm:nn})})]})]})},so=L=>{let{children:U}=L;return(0,a.jsx)(rt,{children:U})},bo={component:wt,params:{},getter:[L=>{let{selectedTrees:U}=L;const ne=U.map(at=>at.widget),me=(0,Ze.i)(ne,"selectionControl"),Ee=(0,Ze.i)(ne,"w"),Ue=(0,Ze.i)(ne,"h");return{fontSize:me.fontSize,layoutSelected:me.layout,gap:me.gap,disabled:me.isDisabled,w:Ee,h:Ue}}],setter:{onChange:bi.c}},Ro=()=>[so,[bo]],tn=u.Ay.section.withConfig({displayName:"styles__StyledSelectionControlColorSettings",componentId:"sc-1684kax-0"})(['padding:0 16px;.line{justify-content:flex-start;[type="color-btn"]{margin:0 6px;}}label.right-content{color:',";}"],L=>L.theme.color_text_L2),Pn=L=>{let{collapseName:U,buttonColorAttr:ne,buttonColor:me,fontColorAttr:Ee,fontColor:Ue,handleChange:at,isBorderVisible:Ht,isTextVisible:xo,buttonIsVisibleAttr:Po,fontIsVisibleAttr:nn,dispatch:is}=L;const[Bn,$s]=(0,p.useState)((0,Vo.Yt)("mp_"+U,!0,Vo.qW.Boolean)),qs=()=>{(0,Vo.a0)("mp_"+U,!Bn,Vo.qW.Boolean),$s(!Bn)};return(0,a.jsx)(ho.A,{collapse:!Bn,title:I18N.SettingPanel.inspector[U],onChange:qs,children:(0,a.jsxs)(tn,{children:[(0,a.jsxs)("div",{className:"line height-32 margin-left-n6",children:[(0,a.jsx)(Ct.A,{className:Ct.p,attr:Po,isChecked:Ht,onChange:at}),(0,a.jsx)(Qn.R_,{className:Qn.Fw,attr:ne,color:me,onChange:at}),(0,a.jsx)("label",{className:"right-content",children:I18N.SettingPanel.inspector.digital_stepper_button})]}),(0,a.jsxs)("div",{className:"line height-32 margin-left-n6",children:[(0,a.jsx)(Ct.A,{className:Ct.p,attr:nn,isChecked:xo,onChange:at}),(0,a.jsx)(Qn.R_,{className:Qn.Fw,attr:Ee,color:Ue,onChange:at}),(0,a.jsx)("label",{className:"right-content",children:I18N.SettingPanel.inspector.text_color})]})]})})},un=L=>{let{borderColor:U,textColor:ne,checkedBorderColor:me,checkedTextColor:Ee,isCheckedTextVisible:Ue,isCheckedBorderVisible:at,isBorderVisible:Ht,isTextVisible:xo,selections:Po,dispatch:nn,onChange:is}=L;const Bn=($s,qs)=>{is({value:$s,attr:qs,dispatch:nn,supAttr:"selectionControl",selections:Po})};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Pn,{buttonColorAttr:"borderColor",buttonColor:U,isBorderVisible:Ht,fontColorAttr:"textColor",fontColor:ne,buttonIsVisibleAttr:"isBorderVisible",fontIsVisibleAttr:"isTextVisible",isTextVisible:xo,collapseName:"selection_control_unchecked_style_panel",dispatch:nn,handleChange:Bn}),(0,a.jsx)(Pn,{dispatch:nn,handleChange:Bn,buttonColorAttr:"checkedBorderColor",buttonColor:me,isBorderVisible:at,fontColorAttr:"checkedTextColor",fontColor:Ee,buttonIsVisibleAttr:"isCheckedBorderVisible",fontIsVisibleAttr:"isCheckedTextVisible",isTextVisible:Ue,collapseName:"selection_control_checked_style_panel"})]})},Xn=L=>{let{children:U}=L;return(0,a.jsx)(a.Fragment,{children:U})},ws={component:un,params:{},getter:[L=>{let{selectedTrees:U}=L;const ne=U.map(is=>is.widget),{checkedTextColor:me,checkedBorderColor:Ee,borderColor:Ue,textColor:at,isCheckedTextVisible:Ht,isCheckedBorderVisible:xo,isBorderVisible:Po,isTextVisible:nn}=(0,Ze.i)(ne,"selectionControl");return{checkedTextColor:me,checkedBorderColor:Ee,borderColor:Ue,textColor:at,isCheckedTextVisible:Ht,isCheckedBorderVisible:xo,isBorderVisible:Po,isTextVisible:nn}}],setter:{onChange:bi.c}},zs=()=>[Xn,[ws]];var fn=e(39541);const Ds=[{name:"bar_chart",type:"bar_chart"},{name:"horizontal_bar_chart",type:"horizontal_bar_chart"},{name:"line_chart",type:"line_chart"},{name:"line_area_chart",type:"line_area_chart"},{name:"mixed_bar_line_chart",type:"mixed_bar_line_chart"},{name:"radar_chart",type:"radar_chart"},{name:"radial_polar_chart",type:"radial_polar_chart"}],gi=[{name:"pie_chart",type:"pie_chart"},{name:"ring_chart",type:"ring_chart"},{name:"nightingale_chart",type:"nightingale_chart"}],hi={bar_chart:Ds,horizontal_bar_chart:Ds,line_chart:Ds,line_area_chart:Ds,pie_chart:gi,ring_chart:gi,radar_chart:Ds,mixed_bar_line_chart:Ds,radial_polar_chart:Ds,nightingale_chart:gi},Ni=[{name:"normal",type:"normal"},{name:"group",type:"group"},{name:"acc",type:"acc"},{name:"accPer",type:"accPer"}],ba={bar_chart:Ni,horizontal_bar_chart:Ni,line_chart:Ni,line_area_chart:Ni,pie_chart:[],ring_chart:[],radar_chart:[],mixed_bar_line_chart:[],radial_polar_chart:Ni,nightingale_chart:[]},fa=["progress_chart","waterfall_chart","scatter_chart","funnel_chart","gauge_chart","liquid_fill_gauge_chart","map_chart","bubble_chart","sunburst_chart","word_cloud_chart","sankey_chart","boxplot_chart"],Ka=[fn.N.pie_chart,fn.N.ring_chart,fn.N.progress_chart,fn.N.nightingale_chart,fn.N.gauge_chart,fn.N.scatter_chart,fn.N.bubble_chart,fn.N.sunburst_chart,fn.N.boxplot_chart,fn.N.mixed_bar_line_chart,fn.N.waterfall_chart,fn.N.bar_chart,fn.N.horizontal_bar_chart],da=[fn.N.progress_chart,fn.N.waterfall_chart,fn.N.gauge_chart,fn.N.map_chart,fn.N.boxplot_chart],aa=[fn.N.scatter_chart,fn.N.bubble_chart,fn.N.sunburst_chart,fn.N.boxplot_chart,fn.N.sankey_chart],ka=u.Ay.section.withConfig({displayName:"styles__StyledTypeSetting",componentId:"sc-1so9rcs-0"})(["&.chartTypeSettings{padding:0 !important;ul.typeList{display:flex;align-items:center;height:32px;&.subTypeList{height:72px;}.chartTypeItem{width:24px;height:24px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:4px;margin-right:6px;color:",";svg{width:14px;height:14px;}&.nightingale_chart{svg{width:24px;height:24px;}}&:hover{background-color:",";}&.chartType{&.active{background-color:",";}}&.disabled{cursor:not-allowed;.svg-icon{color:",";}}}li.chartCategory{display:flex;flex-direction:column;align-items:center;margin-right:10px;span{color:",";&:lang(en){font-size:11px;}}.chartCategoryItem{width:44px;height:36px;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:4px;margin-bottom:4px;svg{width:28px;height:28px;path,rect{fill:#1684fc;}.axis{fill:#5b6b73;}.category{fill:#84bfff;}}&.lineItem{svg{path,rect{fill:none;stroke:#1684fc;}.axis{fill:#5b6b73;stroke:none;}.category{fill:none;stroke:#84bfff;}}}&:hover{background-color:",";}&.active{background-color:",";}}}}.dividing-line{margin:8px 0;border-top:1px solid ",";}}"],L=>L.theme.color_text_L1,L=>L.theme.color_btn_secondary_hover,L=>L.theme.color_btn_secondary_active,L=>L.theme.color_text_L3,L=>L.theme.color_text_L2,L=>L.theme.color_btn_secondary_hover,L=>L.theme.color_btn_secondary_active,L=>L.theme.color_bg_border_01),Vi="chart_settings_type",Di="mp_"+Vi;class pa extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{show:(0,Vo.Yt)(Di,!0,Vo.qW.Boolean)}),(0,r.A)(this,"handleChangeType",U=>{const{handleChange:ne,chartData:me,handleChangeHasSupAttr:Ee}=this.props;if(!(U===fn.N.mixed_bar_line_chart&&me.series.length<2)&&(ne(U,"chartType"),U===fn.N.mixed_bar_line_chart)){ne("group","chartCategory");const at=me.series.map((Ht,xo)=>Ht.type?Ht:{...Ht,type:xo===me.series.length-1?"line":"bar"});Ee(at,"series","chartData")}}),(0,r.A)(this,"handleChangeCategory",U=>{const{handleChange:ne}=this.props;ne(U,"chartCategory")}),(0,r.A)(this,"handleSubChange",()=>{const{show:U}=this.state;(0,Vo.a0)(Di,!U,Vo.qW.Boolean),this.setState({show:!U})})}render(){const{type:U,category:ne,chartData:me}=this.props,{show:Ee}=this.state,Ue=hi[U],at=ba[U];return(0,a.jsx)(ho.A,{collapse:!Ee,title:I18N.SettingPanel.inspector[Vi],onChange:this.handleSubChange,children:(0,a.jsxs)(ka,{type:"panel-body",className:"chartTypeSettings",children:[Ue.length>0&&(0,a.jsx)("ul",{className:"typeList",children:Ue.map((Ht,xo)=>{const Po=Ht.type==="mixed_bar_line_chart"&&me.series.length<2;return(0,a.jsx)(h.Q,{icon:(0,a.jsx)(S.C,{name:"design/settingPanel/chart/type/"+Ht.name}),onClick:()=>!Po&&this.handleChangeType(Ht.type),content:Po?Ra():I18N.w[Ht.name],direction:"down",className:f()("chartType chartTypeItem",Ht.name,Ht.type===U&&"active",{disabled:Po})},xo)})}),at.length>0&&(0,a.jsxs)(a.Fragment,{children:[(Ue==null?void 0:Ue.length)>0&&(0,a.jsx)("div",{className:"dividing-line"}),(0,a.jsx)("ul",{className:f()("typeList","subTypeList"),children:at.map((Ht,xo)=>(0,a.jsxs)("li",{className:"chartCategory",children:[(0,a.jsx)("div",{className:f()("chartCategoryItem",Ht.type===ne&&"active",U===fn.N.line_chart&&"lineItem"),onClick:()=>this.handleChangeCategory(Ht.type),children:(0,a.jsx)(S.C,{name:"design/settingPanel/chart/type/"+U+"/subType/"+xo})}),(0,a.jsx)("span",{children:I18N.SettingPanel.chartInfo.type[Ht.name]})]},xo))})]})]})})}}const Ra=()=>(0,a.jsx)("span",{children:"\u7EC4\u5408\u56FE\u8868\u81F3\u5C11\u9700\u8981\u4E24\u4E2A\u6570\u636E\u7CFB\u5217"});var Ar=e(99739),ja=e(54635);const wr=u.Ay.section.withConfig({displayName:"styles__StyledThemeSetting",componentId:"sc-yghmn5-0"})(["height:44px;display:flex;align-items:center;label.chartSelect{width:100%;height:28px;background-color:",";border:1px solid ",";border-radius:4px;&.is-open:not(.unstyled){background-color:",";border-color:",";box-shadow:none;}&:not(.unstyled):hover{border-color:"," !important;}button span.Ellipsis{display:flex;align-items:center;justify-content:center;width:100%;height:100%;ul.chartThemeWrap{width:100%;height:100%;display:flex;align-items:center;li{width:16px;height:16px;margin-right:4px;border-radius:1px;}}}.caret{margin:0;flex-shrink:0;width:26px;display:flex;justify-content:center;align-items:center;padding:0;color:",";svg{width:26px;height:26px;transform:rotate(0deg);}}&:not(.is-disabled):not(.readonly):hover{border-color:",";button{width:calc(100% - 26px);}.caret{padding:0;color:",";}}&.is-open{border-color:transparent;}}"],L=>L.theme.color_bg_white,L=>L.theme.color_bg_border_02,L=>L.theme.color_bg_white,L=>L.theme.color_bg_border_02,L=>L.theme.color_bg_border_02,L=>L.theme.color_text_L3,L=>L.theme.color_bg_border_02,L=>L.theme.color_text_L1),Rr=(0,u.DU)([".chartSelectMenu{display:grid;grid-template-columns:repeat(auto-fill,36px);;grid-row-gap:8px;grid-column-gap:15px;border-radius:4px;padding:8px;margin:0;overflow:hidden;background-color:",";width:150px;display:grid;grid-template-columns:repeat(auto-fill,40px);grid-gap:6px 10px;li.SelectOption{width:40px;height:28px;border-radius:4px;border:1px solid transparent;overflow:hidden;padding:1px;background-color:",";&:not(.is-active):hover{background-color:"," !important;border-color:rgba(22,132,252,0.5);}&.is-active{background-color:"," !important;border-color:#1684FC;}span,ul.chartThemeWrap{overflow:hidden;display:flex;flex-wrap:wrap;width:36px;height:24px;padding:0 !important;align-items:center;justify-content:center;border-radius:2px;li{width:12px;height:12px;list-style:none;}}}}"],L=>L.theme.color_background_white_modal,L=>L.theme.color_bg_white,L=>L.theme.color_bg_white,L=>L.theme.color_bg_white),sr="chart_settings_theme",kc="mp_"+sr;class xl extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{show:(0,Vo.Yt)(kc,!0,Vo.qW.Boolean)}),(0,r.A)(this,"handleChangeTheme",U=>{const{handleChange:ne}=this.props;ne(+U,"chartTheme")}),(0,r.A)(this,"handleSubChange",()=>{const{show:U}=this.state;(0,Vo.a0)(kc,!U,Vo.qW.Boolean),this.setState({show:!U})})}render(){const{theme:U}=this.props,{show:ne}=this.state;return(0,a.jsx)(ho.A,{collapse:!ne,title:I18N.SettingPanel.inspector[sr],onChange:this.handleSubChange,children:(0,a.jsxs)(wr,{className:"themeTypeSettings",children:[(0,a.jsx)(Rr,{}),(0,a.jsx)(Ar.Ay,{className:"chartSelect",menuClassName:"chartSelectMenu",value:""+U,arrowSvg:(0,a.jsx)(S.C,{className:"triangle-icon",name:"common/expand@26"}),optionList:ja.B5.map((me,Ee)=>({label:(0,a.jsx)("ul",{className:"chartThemeWrap",children:me.map(Ue=>(0,a.jsx)("li",{style:{backgroundColor:Ue}},Ue))},Ee),value:""+Ee})),onChange:this.handleChangeTheme,onMouseEnter:this.handleChangeTheme})]})})}}var Vr=e(98236),ll=e.n(Vr);const Zr=u.Ay.section.withConfig({displayName:"styles__StyledOptionSetting",componentId:"sc-mklli1-0"})([".gridOption{.border-collapse-body{justify-content:flex-start;.WorkspaceInputNumber{flex:0 0 66px;}.border-select-size-warp{.border-select-size{width:70px;}}.color-btn-has-box{margin-left:auto;justify-content:flex-end;}}}.appearance-line{display:flex;align-items:center;&.border-open{min-height:auto;}.left-label{margin-left:4px;color:",";flex:1;}&.chartOption{align-items:center;.chartInput{width:111px;min-width:74px;border-radius:4px;height:28px;padding-left:6px;color:",";border:1px solid ",";text-overflow:ellipsis;opacity:0;pointer-events:none;&.has-value:not(:focus){border:1px solid transparent;&:hover{border:1px solid ",";}}&.show{opacity:1;pointer-events:auto;}&.hasPadding{padding-left:32px;}&:focus{border:1px solid ",";outline:1px solid ",";outline-offset:-2px;}}}}.legendOption,.AxisOption,.label-option{.border-collapse-body{label.name{line-height:22px;width:auto;color:",";}}}.legendOption{.border-collapse-body{.legendPos.radio-line{height:24px;flex:1;display:flex;justify-content:flex-end;padding-right:16px;.radio-option{width:24px;height:24px;border-radius:4px;max-width:24px;&:not(.active){color:",";}}}}}.AxisOption{.border-collapse-body{.right-content{width:111px;}label.WorkspaceInputNumber{width:111px;flex-shrink:0;&.width-66{width:66px;}&.font-size-input{width:66px;}}}}"],L=>L.theme.color_text_L2,L=>L.theme.color_text_L1,L=>L.theme.color_bg_border_02,L=>L.theme.color_bg_border_02,L=>L.theme.color_proto,L=>L.theme.color_proto,L=>L.theme.color_text_L2,L=>L.theme.color_text_L1),wc=(0,u.Ay)(ch.Y).withConfig({displayName:"styles__StylesBorderOpener",componentId:"sc-mklli1-1"})([".border-collapse-body{justify-content:space-between;margin-left:22px;height:0;}"]);class g0 extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleChangeGrid",(U,ne)=>{const{grid:me,handleChange:Ee}=this.props,Ue={...me,[ne]:U};Ee(Ue,"grid")})}render(){const{grid:U}=this.props,{bdrIsVisible:ne,bdrColor:me,bdrStyle:Ee,bdrWidth:Ue}=U;return(0,a.jsxs)(wc,{className:f()("gridOption",{"is-open":ne}),children:[(0,a.jsxs)("div",{className:"appearance-line border-open margin-left-n6 height-32",children:[(0,a.jsx)(Ct.A,{className:Ct.p,attr:"bdrIsVisible",isChecked:ne,onChange:this.handleChangeGrid}),(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.chartInfo.grid})]}),(0,a.jsxs)("div",{className:f()("border-collapse-body",{"is-open height-32":ne}),children:[(0,a.jsxs)("div",{className:"border-select-size-warp",children:[(0,a.jsx)(Gc.v,{}),(0,a.jsx)(ri.mq,{className:f()("border-select-size"),attr:"bdrStyle",menuClassName:"border_style_select_menu",optionList:(0,ql.se)(),value:Ee,onChange:this.handleChangeGrid})]}),(0,a.jsx)(pt.A,{className:"grid-border-width",attr:"bdrWidth",value:Ue,optionList:ql.xq,onConfirm:this.handleChangeGrid}),(0,a.jsx)(Qn.R_,{className:Qn.Fw,attr:"bdrColor",color:me,onChange:this.handleChangeGrid})]})]})}}(0,r.A)(g0,"propTypes",{grid:Xl().array,handleChange:Xl().func});class e0 extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"FIX_OPTION_LIST",[{label:(0,a.jsx)(S.C,{size:24,name:"setting_panel/chart/legend/top"}),value:"top",tip_title:I18N.SettingPanel.chartInfo.legend.top},{label:(0,a.jsx)(S.C,{size:24,name:"setting_panel/chart/legend/bottom"}),value:"bottom",tip_title:I18N.SettingPanel.chartInfo.legend.bottom},{label:(0,a.jsx)(S.C,{size:24,name:"setting_panel/chart/legend/left"}),value:"left",tip_title:I18N.SettingPanel.chartInfo.legend.left},{label:(0,a.jsx)(S.C,{size:24,name:"setting_panel/chart/legend/right"}),value:"right",tip_title:I18N.SettingPanel.chartInfo.legend.right}]),(0,r.A)(this,"handleChangeLegend",(U,ne)=>{const{legend:me,handleChange:Ee}=this.props,Ue={...me,[ne]:U};Ee(Ue,"legend")}),(0,r.A)(this,"handleChangeLegendPos",U=>{this.handleChangeLegend(U,"legendPos")}),(0,r.A)(this,"handleChangeTextStyle",(U,ne)=>{const{legend:{textStyle:me}}=this.props;this.handleChangeLegend({...me,[ne]:U},"textStyle")})}render(){const{legend:U}=this.props,{isVisible:ne,legendPos:me,textStyle:Ee}=U;return(0,a.jsxs)(wc,{className:f()("legendOption",{"is-open":ne}),children:[(0,a.jsxs)("div",{className:"appearance-line border-open legend-show height-32 margin-left-n6",children:[(0,a.jsx)(Ct.A,{className:Ct.p,attr:"isVisible",isChecked:ne,onChange:this.handleChangeLegend}),(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.chartInfo.legend.title})]}),(0,a.jsxs)("div",{className:f()("border-collapse-body",{"is-open height-32":ne}),children:[(0,a.jsx)("label",{className:"name",children:I18N.SettingPanel.chartInfo.legend.position}),(0,a.jsx)(es.z,{className:"legendPos",options:this.FIX_OPTION_LIST,value:me,isLongTimeHover:!0,handleChange:this.handleChangeLegendPos})]}),Ee&&(0,a.jsxs)("div",{className:f()("border-collapse-body",{"is-open height-32":ne}),children:[(0,a.jsx)("label",{className:"name",children:I18N.SettingPanel.inspector.text}),(0,a.jsx)(Gi.A,{attr:"fontSize",fontSize:Ee.fontSize,handleChange:this.handleChangeTextStyle}),(0,a.jsx)(Qn.R_,{attr:"color",color:Ee.color,onChange:this.handleChangeTextStyle})]})]})}}const f0=[fn.N.bar_chart,fn.N.horizontal_bar_chart,fn.N.line_chart,fn.N.line_area_chart,fn.N.mixed_bar_line_chart,fn.N.waterfall_chart,fn.N.scatter_chart,fn.N.bubble_chart,fn.N.radial_polar_chart,fn.N.boxplot_chart,fn.N.radar_chart],qh=[fn.N.scatter_chart,fn.N.bubble_chart],Bh=[fn.N.line_chart,fn.N.line_area_chart,fn.N.mixed_bar_line_chart],K1=[fn.N.bar_chart,fn.N.horizontal_bar_chart,fn.N.line_chart,fn.N.line_area_chart,fn.N.mixed_bar_line_chart,fn.N.waterfall_chart,fn.N.scatter_chart,fn.N.bubble_chart,fn.N.radial_polar_chart,fn.N.boxplot_chart],um=[fn.N.pie_chart,fn.N.ring_chart,fn.N.nightingale_chart],Zm=[fn.N.bar_chart,fn.N.horizontal_bar_chart,fn.N.line_chart,fn.N.line_area_chart,fn.N.radar_chart,fn.N.mixed_bar_line_chart,fn.N.waterfall_chart,fn.N.funnel_chart,fn.N.liquid_fill_gauge_chart],Ug=[fn.N.word_cloud_chart,fn.N.map_chart],zg=[fn.N.progress_chart,fn.N.funnel_chart,fn.N.liquid_fill_gauge_chart,fn.N.scatter_chart],Wg=[fn.N.progress_chart,fn.N.gauge_chart,fn.N.liquid_fill_gauge_chart,fn.N.sunburst_chart,fn.N.word_cloud_chart,fn.N.boxplot_chart,fn.N.sankey_chart],Rh=[fn.N.progress_chart,fn.N.radial_polar_chart,fn.N.pie_chart,fn.N.ring_chart,fn.N.nightingale_chart,fn.N.bar_chart,fn.N.horizontal_bar_chart,fn.N.line_chart,fn.N.line_area_chart,fn.N.radar_chart,fn.N.mixed_bar_line_chart,fn.N.waterfall_chart,fn.N.funnel_chart,fn.N.liquid_fill_gauge_chart,fn.N.gauge_chart],Vg=[fn.N.bar_chart,fn.N.horizontal_bar_chart,fn.N.line_chart,fn.N.line_area_chart,fn.N.radar_chart,fn.N.mixed_bar_line_chart,fn.N.waterfall_chart],Hg=[fn.N.sunburst_chart,fn.N.sankey_chart,fn.N.gauge_chart],Kg=[fn.N.sunburst_chart,fn.N.sankey_chart],Au=2352135087,c2=-2352135088;class Gg extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleChangeShowAxis",U=>{const{handleChange:ne,axis:me}=this.props;sdkStore.combineMergeMark("update-chart-axis-visible"),ne(U,"isShowAxis"),ne({...me,isVisible:U},"axis"),sdkStore.combineMerge("update-chart-axis-visible")}),(0,r.A)(this,"handleChangeAxisNumber",(U,ne,me,Ee)=>{const{axis:Ue,handleChange:at}=this.props,xo=Ee===""?void 0:U;if(typeof Number(U)!="number"||isNaN(U))return;const[Po,nn]=ne.split("_"),is={...Ue,[nn]:{...Ue[nn],[Po]:xo}};sdkStore.combineMergeMark("update-chart-axis-"+ne),nn==="yAxis"&&at(xo,Po),at(is,"axis"),sdkStore.combineMerge("update-chart-axis-"+ne)}),(0,r.A)(this,"handleChangeTextStyle",(U,ne)=>{const{axis:me,handleChange:Ee}=this.props;Ee({...me,textStyle:{...me.textStyle,[ne]:U}},"axis")}),(0,r.A)(this,"handleChangeAxisAttr",(U,ne,me,Ee)=>{const{axis:Ue,handleChange:at}=this.props,xo=Ee===""?void 0:U;typeof Number(U)!="number"||isNaN(U)||(sdkStore.combineMergeMark("update-chart-axis-"+ne),at(xo,ne),at({...Ue,[ne]:xo},"axis"),sdkStore.combineMerge("update-chart-axis-"+ne))})}render(){const{type:U,axis:ne}=this.props,{isVisible:me,xAxis:{minNum:Ee,maxNum:Ue},yAxis:{minNum:at,maxNum:Ht},textAngle:xo,interval:Po,textStyle:{fontSize:nn,color:is}}=ne,Bn=qh.includes(U),$s=U!==fn.N.radar_chart,qs=!Bn&&U!==fn.N.radar_chart;return(0,a.jsxs)(wc,{className:f()("AxisOption",{"is-open":me}),children:[(0,a.jsxs)("div",{className:f()("appearance-line","height-32","margin-left-n6","border-open","axis-show"),children:[(0,a.jsx)(Ct.A,{className:Ct.p,attr:"isShowAxis",isChecked:me,onChange:this.handleChangeShowAxis}),(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.chartInfo.axis.title})]}),Bn&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:f()("border-collapse-body",{"is-open height-32":me}),children:[(0,a.jsx)("label",{className:"name",children:I18N.SettingPanel.chartInfo.axis.maxNumX}),(0,a.jsx)("div",{className:"right-content",children:(0,a.jsx)(pt.A,{className:"general-input axis-input-num axis-option-input width-66",attr:"maxNum_xAxis",max:Au,min:Ee||c2,value:Ue===void 0?I18N.SettingPanel.chartInfo.axis.auto:Ue,isNotVerify:Ue===void 0,onConfirm:this.handleChangeAxisNumber})})]}),(0,a.jsxs)("div",{className:f()("border-collapse-body",{"is-open height-32":me}),children:[(0,a.jsx)("label",{className:"name",children:I18N.SettingPanel.chartInfo.axis.minNumX}),(0,a.jsx)("div",{className:"right-content",children:(0,a.jsx)(pt.A,{className:"general-input axis-input-num axis-option-input width-66",attr:"minNum_xAxis",max:Ue||Au,min:c2,value:Ee===void 0?I18N.SettingPanel.chartInfo.axis.auto:Ee,isNotVerify:Ee===void 0,onConfirm:this.handleChangeAxisNumber})})]})]}),$s&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:f()("border-collapse-body",{"is-open height-32":me}),children:[(0,a.jsx)("label",{className:"name",children:Bn?I18N.SettingPanel.chartInfo.axis.maxNumY:I18N.SettingPanel.chartInfo.axis.maxNum}),(0,a.jsx)("div",{className:"right-content",children:(0,a.jsx)(pt.A,{className:"general-input axis-input-num axis-option-input width-66",attr:"maxNum_yAxis",max:Au,min:at||c2,value:Ht===void 0?I18N.SettingPanel.chartInfo.axis.auto:Ht,isNotVerify:Ht===void 0,onConfirm:this.handleChangeAxisNumber})})]}),(0,a.jsxs)("div",{className:f()("border-collapse-body",{"is-open height-32":me}),children:[(0,a.jsx)("label",{className:"name",children:Bn?I18N.SettingPanel.chartInfo.axis.minNumY:I18N.SettingPanel.chartInfo.axis.minNum}),(0,a.jsx)("div",{className:"right-content",children:(0,a.jsx)(pt.A,{className:"general-input axis-input-num axis-option-input width-66",attr:"minNum_yAxis",max:Ht||Au,min:c2,value:at===void 0?I18N.SettingPanel.chartInfo.axis.auto:at,isNotVerify:at===void 0,onConfirm:this.handleChangeAxisNumber})})]})]}),qs&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:f()("border-collapse-body",{"is-open height-32":me}),children:[(0,a.jsx)("label",{className:"name",children:I18N.SettingPanel.chartInfo.axis.interval}),(0,a.jsx)("div",{className:"right-content",children:(0,a.jsx)(pt.A,{className:"general-input axis-input-num axis-option-input width-66",attr:"interval",value:Po===void 0?I18N.SettingPanel.chartInfo.axis.auto:Po,max:Au,min:0,isNotVerify:Po===void 0,onConfirm:this.handleChangeAxisAttr})})]}),(0,a.jsxs)("div",{className:f()("border-collapse-body",{"is-open height-32":me}),children:[(0,a.jsx)("label",{className:"name",children:I18N.SettingPanel.chartInfo.axis.textAngle}),(0,a.jsx)("div",{className:"right-content",children:(0,a.jsx)(pt.A,{className:"axis-option-input",attr:"textAngle",value:xo,optionList:ql.Jh,suffix:"\xB0",max:360,min:0,onConfirm:this.handleChangeAxisAttr})})]})]}),(0,a.jsxs)("div",{className:f()("border-collapse-body",{"is-open height-32":me}),children:[(0,a.jsx)("label",{className:"name",children:I18N.SettingPanel.inspector.text}),(0,a.jsx)(Gi.A,{attr:"fontSize",fontSize:nn,handleChange:this.handleChangeTextStyle}),(0,a.jsx)(Qn.R_,{attr:"color",color:is,onChange:this.handleChangeTextStyle})]})]})}}class d2 extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleChangeIsVisible",U=>{const{supAttr:ne,label:me,handleChange:Ee,type:Ue}=this.props,at={...me,isVisible:U};if(sdkStore.combineMergeMark("update-chart-label-visible"),ne==="label"){const Ht=["pie_chart","ring_chart","nightingale_chart"].includes(Ue)?"showHelpMark":"shLabel";Ee(U,Ht)}Ee(at,ne),sdkStore.combineMerge("update-chart-label-visible")}),(0,r.A)(this,"handleChangeTextStyle",(U,ne)=>{const{label:me,supAttr:Ee,handleChange:Ue}=this.props;Ue({...me,textStyle:{...me.textStyle,[ne]:U}},Ee)})}render(){const{label:U,title:ne,canChangeColor:me}=this.props,{isVisible:Ee,textStyle:{fontSize:Ue,color:at}}=U;return(0,a.jsxs)(wc,{className:f()("label-option",{"is-open":Ee}),children:[(0,a.jsxs)("div",{className:f()("appearance-line","border-open","label-show","height-32","margin-left-n6"),children:[(0,a.jsx)(Ct.A,{className:Ct.p,attr:"isVisible",isChecked:Ee,onChange:this.handleChangeIsVisible}),(0,a.jsx)("label",{className:"left-label",children:ne})]}),(0,a.jsxs)("div",{className:f()("border-collapse-body",{"is-open height-32":Ee,"can-change-color":me}),children:[(0,a.jsx)("label",{className:"name",children:I18N.SettingPanel.inspector.text}),(0,a.jsx)(Gi.A,{attr:"fontSize",fontSize:Ue,handleChange:this.handleChangeTextStyle}),me&&(0,a.jsx)(Qn.R_,{attr:"color",color:at,onChange:this.handleChangeTextStyle})]})]})}}(0,r.A)(d2,"defaultProps",{canChangeColor:!0});const Xm="chart_settings_option",Qm="mp_"+Xm,mm="prefix",gm="suffix";class Yg extends p.PureComponent{constructor(U){super(U),(0,r.A)(this,"createPrefixInputRef",ne=>this.$prefixInputRef=ne),(0,r.A)(this,"createSuffixInputRef",ne=>this.$suffixInputRef=ne),(0,r.A)(this,"handleSubChange",()=>{const{show:ne}=this.state;(0,Vo.a0)(Qm,!ne,Vo.qW.Boolean),this.setState({show:!ne})}),(0,r.A)(this,"handleChangeXFix",ne=>(me,Ee)=>{const{unit:Ue,handleChange:at}=this.props,Ht={...Ue[ne],[Ee]:me};if(at(Ht,ne),me){var xo,Po;ne===mm?(xo=this.$prefixInputRef)==null||xo.setSelectionRange(-1,-1):(Po=this.$suffixInputRef)==null||Po.setSelectionRange(-1,-1)}}),(0,r.A)(this,"handleInputChange",(ne,me)=>{const Ee=ne.target.value,Ue=Ee&&Ee.trim().replace(/[0-9]/,"");this.setState({[me]:Ue})}),(0,r.A)(this,"handleInputBlur",ne=>(me,Ee)=>{const Ue=this.state[Ee];Ue.length>5&&MB.notice({text:"\u5355\u4F4D\u540D\u79F0\u75315\u5B57\u4EE5\u5185\u7684\u7B26\u53F7/\u6C49\u5B57\u7EC4\u6210",type:"warning"}),this.handleChangeXFix(ne)(Ue,Ee)}),(0,r.A)(this,"handleKeyDown",(ne,me)=>{const{key:Ee}=ne;Ee===p1._.Enter&&this.handleInputBlur(me)(ne,me===mm?"prefixString":"suffixString")}),this.state={show:(0,Vo.Yt)(Qm,!0,Vo.qW.Boolean),prefixString:U.unit.prefix.prefixString,suffixString:U.unit.suffix.suffixString}}componentDidUpdate(U){const{unit:ne}=this.props,{unit:me}=U;ne&&me&&(ll()(ne,me)||this.setState({prefixString:ne.prefix.prefixString,suffixString:ne.suffix.suffixString}))}render(){const{show:U,prefixString:ne,suffixString:me}=this.state,{type:Ee,grid:Ue,legend:at,showToolTip:Ht,smooth:xo,unit:Po,category:nn,chartAnimation:is,axis:Bn,label:$s,labelText:qs,labelNumber:Mi,dispatch:Xi,handleChange:na}=this.props,Xa=f0.includes(Ee),Ga=Bh.includes(Ee),xr=K1.includes(Ee),Br=!Ug.includes(Ee),Qa=!zg.includes(Ee),vr=!Wg.includes(Ee),al=nn!=="accPer",mr=Rh.includes(Ee),dd=Hg.includes(Ee),Ql=Kg.includes(Ee),Sc=Ee===fn.N.sankey_chart,n0=Ee===fn.N.gauge_chart;return(0,a.jsx)(ho.A,{collapse:!U,title:I18N.SettingPanel.inspector[Xm],onChange:this.handleSubChange,children:(0,a.jsxs)(Zr,{type:"panel-body",className:"optionSettings",children:[Ga&&(0,a.jsxs)("div",{className:"appearance-line chartOption height-32 margin-left-n6",children:[(0,a.jsx)(Ct.A,{className:Ct.p,attr:"smooth",isChecked:xo,onChange:na}),(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.chartInfo.smooth})]}),at&&vr&&(0,a.jsx)(e0,{legend:at,handleChange:na}),mr&&(0,a.jsx)(d2,{supAttr:"label",title:I18N.SettingPanel.chartInfo.dataTag,label:$s,canChangeColor:!Vg.includes(Ee),type:Ee,handleChange:na}),dd&&(0,a.jsx)(d2,{supAttr:"labelText",title:Sc?I18N.SettingPanel.chartInfo.nodeTag:n0?I18N.SettingPanel.chartInfo.gauge.degree:I18N.SettingPanel.chartInfo.textTag,label:qs,handleChange:na}),Ql&&(0,a.jsx)(d2,{supAttr:"labelNumber",title:Sc?I18N.SettingPanel.chartInfo.flowsDataTag:I18N.SettingPanel.chartInfo.numberTag,label:Mi,handleChange:na}),(0,a.jsxs)("div",{className:"appearance-line chartOption height-32 margin-left-n6",children:[(0,a.jsx)(Ct.A,{className:Ct.p,attr:"isShowToolTip",isChecked:Ht,onChange:na}),(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.chartInfo.showToolTip})]}),Qa&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"appearance-line chartOption height-32 margin-left-n6 unit",children:[(0,a.jsx)(Ct.A,{className:Ct.p,attr:"isEnable",isChecked:Po.prefix.isEnable,onChange:this.handleChangeXFix("prefix")}),(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.chartInfo.prefix}),(0,a.jsx)("input",{ref:this.createPrefixInputRef,type:"text",className:f()("chartInput",{show:Po.prefix.isEnable,"has-value":ne.length>0}),value:ne,onChange:cl=>this.handleInputChange(cl,"prefixString"),onBlur:cl=>this.handleInputBlur("prefix")(cl,"prefixString"),onKeyDown:cl=>this.handleKeyDown(cl,mm)})]}),al&&(0,a.jsxs)("div",{className:f()("appearance-line","height-32","margin-left-n6","chartOption","unit",{"gauge-chart":Ee==="gauge_chart"}),children:[(0,a.jsx)(Ct.A,{className:Ct.p,attr:"isEnable",isChecked:Po.suffix.isEnable,onChange:this.handleChangeXFix("suffix")}),(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.chartInfo.suffix}),(0,a.jsx)("input",{ref:this.createSuffixInputRef,type:"text",className:f()("chartInput",{show:Po.suffix.isEnable,"has-value":me.length>0}),value:me,onChange:cl=>this.handleInputChange(cl,"suffixString"),onBlur:cl=>this.handleInputBlur("suffix")(cl,"suffixString"),onKeyDown:cl=>this.handleKeyDown(cl,gm)})]})]}),Xa&&(0,a.jsx)(Gg,{type:Ee,axis:Bn,handleChange:na}),Ue&&xr&&(0,a.jsx)(g0,{grid:Ue,dispatch:Xi,handleChange:na}),Br&&(0,a.jsxs)("div",{className:"appearance-line chartOption height-32 margin-left-n6",children:[(0,a.jsx)(Ct.A,{className:Ct.p,attr:"chartAnimation",isChecked:is,onChange:na}),(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.chartInfo.chartAnimation})]})]})})}}const fm=2352135087,ym=-2352135088;class Zg extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleValueChange",(U,ne)=>{const{handleChange:me}=this.props;me(parseInt(U),ne)}),(0,r.A)(this,"handleConfirm",(U,ne)=>{this.handleValueChange(U,ne),sdkStore.combineMerge(ne+"-update")}),(0,r.A)(this,"handleMouseDown",U=>sdkStore.combineMergeMark(U+"-update")),(0,r.A)(this,"handleChangeNumber",(U,ne)=>{const{handleChange:me}=this.props;typeof Number(U)!="number"||isNaN(U)||me(U,ne)})}render(){const{type:U,progress:ne,innerRadius:me,foregroundColor:Ee,backgroundColor:Ue,maxNum:at,minNum:Ht,handleChange:xo}=this.props,Po=U===fn.N.gauge_chart;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"progressAttr",children:[(0,a.jsxs)("div",{className:"appearance-line height-32",children:[(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.chartInfo.progress.background}),(0,a.jsx)("div",{className:"right-content",children:(0,a.jsx)(Qn.R_,{className:Qn.Fw,color:Ue,attr:"backgroundColor",onChange:xo})})]}),(0,a.jsxs)("div",{className:"appearance-line height-32",children:[(0,a.jsx)("label",{className:"left-label foreground-color",children:I18N.SettingPanel.chartInfo.progress.color}),(0,a.jsx)("div",{className:"right-content",children:(0,a.jsx)(Qn.R_,{className:Qn.Fw,color:Ee,attr:"foregroundColor",onChange:xo})})]})]}),Po?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"common-line opacity-line gauge-chart height-32",children:[(0,a.jsx)("label",{className:"name",children:I18N.SettingPanel.chartInfo.axis.maxNum}),(0,a.jsx)("div",{className:"right-content",children:(0,a.jsx)(pt.A,{className:"general-input axis-input-num axis-option-input width-66",attr:"maxNum",max:fm,min:ym,value:at===void 0?I18N.SettingPanel.chartInfo.axis.auto:at,isNotVerify:at===void 0,onConfirm:this.handleChangeNumber})})]}),(0,a.jsxs)("div",{className:"common-line opacity-line gauge-chart height-32",children:[(0,a.jsx)("label",{className:"name",children:I18N.SettingPanel.chartInfo.axis.minNum}),(0,a.jsx)("div",{className:"right-content",children:(0,a.jsx)(pt.A,{className:"general-input axis-input-num axis-option-input width-66",attr:"minNum",max:fm,min:ym,value:Ht===void 0?I18N.SettingPanel.chartInfo.axis.auto:Ht,isNotVerify:Ht===void 0,onConfirm:this.handleChangeNumber})})]}),(0,a.jsxs)("div",{className:"common-line opacity-line gauge-chart height-32",children:[(0,a.jsx)("label",{className:"name",children:I18N.SettingPanel.chartInfo.gauge.currentValue}),(0,a.jsx)("div",{className:"right-content",children:(0,a.jsx)(pt.A,{className:"general-input axis-input-num axis-option-input width-66",attr:"progress",max:fm,min:ym,value:ne,isNotVerify:ne===void 0,onConfirm:this.handleChangeNumber})})]})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"common-line opacity-line height-32",children:[(0,a.jsx)("span",{className:"label-name",children:I18N.SettingPanel.innerRadius}),(0,a.jsx)(Ss.A,{attr:"chartInnerRadius",value:me,max:100,onChange:this.handleValueChange,onConfirm:this.handleConfirm,onMouseDown:this.handleMouseDown}),(0,a.jsx)(pt.A,{className:"input-number",attr:"chartInnerRadius",value:me,min:0,max:100,onConfirm:this.handleValueChange,suffix:"%"})]}),(0,a.jsxs)("div",{className:"common-line opacity-line height-32",children:[(0,a.jsx)("span",{className:"label-name",children:I18N.SettingPanel.progress}),(0,a.jsx)(Ss.A,{attr:"progress",value:ne,max:100,onChange:this.handleValueChange,onConfirm:this.handleConfirm,onMouseDown:this.handleMouseDown}),(0,a.jsx)(pt.A,{className:"input-number",attr:"progress",value:ne,min:0,max:100,onConfirm:this.handleValueChange,suffix:"%"})]})]})]})}}const Xg=[fn.N.pie_chart,fn.N.ring_chart,fn.N.nightingale_chart,fn.N.sunburst_chart],Qg=[fn.N.ring_chart,fn.N.nightingale_chart],Jg=[fn.N.progress_chart,fn.N.gauge_chart],$g=[fn.N.scatter_chart],qg=[fn.N.bubble_chart],ef=[fn.N.boxplot_chart],Jm=[fn.N.mixed_bar_line_chart,fn.N.waterfall_chart,fn.N.bar_chart,fn.N.horizontal_bar_chart];class pc extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleBorderRadiusConfirm",(U,ne)=>{const{handleChange:me}=this.props;me(U,ne),sdkStore.combineMerge(ne+"-update")}),(0,r.A)(this,"handleBorderRadiusMouseDown",U=>sdkStore.combineMergeMark(U+"-update"))}render(){const{borderRadius:U,innerRadius:ne,type:me,progress:Ee,foregroundColor:Ue,backgroundColor:at,minNum:Ht,maxNum:xo,bubbleRadius:Po,minBubbleRadius:nn,maxBubbleRadius:is,boxWidth:Bn,barCategoryGap:$s,handleChange:qs,dispatch:Mi}=this.props,Xi=Qg.includes(me),na=Xg.includes(me),Xa=Jg.includes(me),Ga=$g.includes(me),xr=qg.includes(me),Br=ef.includes(me),Qa=Jm.includes(me);return(0,a.jsxs)(kn,{className:f()("chart-preference-common",(Xa||Qa)&&"noBorder",Qa&&"bottomBorder"),children:[Xa&&(0,a.jsx)(Zg,{type:me,progress:Ee,foregroundColor:Ue,backgroundColor:at,innerRadius:ne,minNum:Ht,maxNum:xo,handleChange:qs}),na&&(0,a.jsxs)("div",{className:"common-line opacity-line height-32",children:[(0,a.jsx)("span",{className:"label-name",children:I18N.SettingPanel.radius}),(0,a.jsx)(Ss.A,{attr:"chartBorderRadius",value:U,max:100,onChange:qs,onConfirm:this.handleBorderRadiusConfirm,onMouseDown:this.handleBorderRadiusMouseDown}),(0,a.jsx)(pt.A,{className:"input-number",attr:"chartBorderRadius",value:U,min:0,max:100,onConfirm:qs})]}),Xi&&(0,a.jsxs)("div",{className:"common-line opacity-line height-32",children:[(0,a.jsx)("span",{className:"label-name",children:I18N.SettingPanel.innerRadius}),(0,a.jsx)(Ss.A,{attr:"chartInnerRadius",value:ne,max:100,onChange:qs,onConfirm:qs}),(0,a.jsx)(pt.A,{className:"input-number",attr:"chartInnerRadius",value:ne,min:0,max:100,onConfirm:qs,suffix:"%"})]}),Ga&&(0,a.jsxs)("div",{className:"common-line opacity-line",children:[(0,a.jsx)("span",{className:"label-name",children:I18N.SettingPanel.bubbleRadius}),(0,a.jsx)(pt.A,{className:"input-number bubble-radius",attr:"bubbleRadius",value:Po,min:1,onConfirm:qs})]}),xr&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"common-line opacity-line",children:[(0,a.jsx)("span",{className:"label-name",children:I18N.SettingPanel.minBubbleRadius}),(0,a.jsx)(pt.A,{className:"input-number bubble-radius min",attr:"minBubbleRadius",value:nn,min:1,max:is,onConfirm:qs})]}),(0,a.jsxs)("div",{className:"common-line opacity-line",children:[(0,a.jsx)("span",{className:"label-name bubble-radius",children:I18N.SettingPanel.maxBubbleRadius}),(0,a.jsx)(pt.A,{className:"input-number bubble-radius max",attr:"maxBubbleRadius",value:is,min:nn||1,onConfirm:qs})]})]}),Br&&(0,a.jsxs)("div",{className:"common-line opacity-line",children:[(0,a.jsx)("span",{className:"label-name",children:I18N.SettingPanel.boxWidth}),(0,a.jsx)(Ss.A,{attr:"boxWidth",value:Bn,max:100,onChange:qs,onConfirm:qs}),(0,a.jsx)(pt.A,{className:"input-number",attr:"boxWidth",value:Bn,min:0,max:100,onConfirm:qs,suffix:"%"})]}),Qa&&(0,a.jsxs)("div",{className:"common-line opacity-line",children:[(0,a.jsx)("span",{className:"label-name",children:I18N.SettingPanel.boxWidth}),(0,a.jsx)(Ss.A,{attr:"barCategoryGap",value:$s,max:100,onChange:qs,onConfirm:qs}),(0,a.jsx)(pt.A,{className:"input-number",attr:"barCategoryGap",value:$s,min:0,max:100,onConfirm:qs,suffix:"%"})]})]})}}const Iu=u.Ay.div.withConfig({displayName:"styles__StyledWaterFallSetting",componentId:"sc-dwciu4-0"})(["padding:8px 16px 8px 8px;.waterfall-line{display:flex;align-items:center;height:32px;input{color:",";width:80px;height:28px;border:1px solid transparent;text-overflow:ellipsis;padding-left:8px;border-radius:4px;margin-right:20px;&:hover{border:1px solid ",";}&:focus{border:1px solid ",";outline:1px solid ",";}&:lang(en){width:118px;}}}"],L=>L.theme.color_text_L2,L=>L.theme.color_btn_secondary_active,L=>L.theme.color_proto,L=>L.theme.color_proto);class tf extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{seriesNameIn:this.props.chartData.series[0].name,seriesNameOut:this.props.chartData.series[1].name}),(0,r.A)(this,"handleChangeColor",(U,ne)=>{const{dispatch:me}=this.props;me({type:"entry:set:chart:series:color:attr",payload:{attr:ne,color:U}})}),(0,r.A)(this,"handleChangeSeriesName",(U,ne,me)=>{const Ee=U.target.value.trim();if(Ee===ne)return;const Ue=me?"seriesNameOut":"seriesNameIn";this.setState({[Ue]:Ee})}),(0,r.A)(this,"handleBlurSeriesName",(U,ne)=>{const me=U.target.value.trim(),{chartData:{series:Ee},dispatch:Ue}=this.props,at=Ee.map((Ht,xo)=>xo===ne?{...Ht,name:me}:Ht);Ue({type:"entry:set:chart:chartData:attr",payload:{attr:"series",value:at}})})}render(){const{chartData:{series:U}}=this.props,{seriesNameIn:ne,seriesNameOut:me}=this.state,Ee=U[0].color,Ue=U[1].color;return(0,a.jsxs)(Iu,{children:[(0,a.jsxs)("div",{className:"waterfall-line",children:[(0,a.jsx)("input",{type:"text",className:"series-name-input",value:ne,onChange:at=>this.handleChangeSeriesName(at,ne,0),onBlur:at=>this.handleBlurSeriesName(at,0)}),(0,a.jsx)(Qn.R_,{className:Qn.Fw,attr:"chart_series_0",color:Ee,onChange:this.handleChangeColor,toolTips:I18N.SettingPanel.chartInfo.changeColor,direction:"left"})]}),(0,a.jsxs)("div",{className:"waterfall-line",children:[(0,a.jsx)("input",{type:"text",className:"series-name-input",value:me,onChange:at=>this.handleChangeSeriesName(at,me,1),onBlur:at=>this.handleBlurSeriesName(at,1)}),(0,a.jsx)(Qn.R_,{className:Qn.Fw,attr:"chart_series_1",color:Ue,onChange:this.handleChangeColor,toolTips:I18N.SettingPanel.chartInfo.changeColor,direction:"left"})]})]})}}var el=e(69447);const Kr=u.Ay.div.withConfig({displayName:"styles__StyledMapSetting",componentId:"sc-rjlf7t-0"})([".collapse-block-title,.collapse-block-content{height:32px;display:flex;align-items:center;color:","}.collapse-block-title .checkable-title{margin-left:6px;}.collapse-block-content{margin-left:22px;.name{min-width:62px;}.general-input{width:66px;margin-left:10px;}&.hide{display:none;}}.theme-setting,.area-setting{&.sub-panel{header{}}.setting-line{height:32px;display:flex;align-items:center;}}.theme-select,.area-select{width:208px;}"],L=>L.theme.color_text_L2),tl=L=>"mp_"+L,xm=new Map([["chart_settings_map_theme","mapThemeShow"],["chart_settings_map_area","mapAreaShow"],["chart_settings_map_appearance","mapAppearanceShow"]]);class of extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{mapThemeShow:(0,Vo.Yt)(tl("chart_settings_map_theme"),!0,Vo.qW.Boolean),mapAreaShow:(0,Vo.Yt)(tl("chart_settings_map_area"),!0,Vo.qW.Boolean),mapAppearanceShow:(0,Vo.Yt)(tl("chart_settings_map_appearance"),!0,Vo.qW.Boolean)}),(0,r.A)(this,"handleSubChange",U=>{const ne=xm.get(U),me=this.state[ne];(0,Vo.a0)(tl(U),!me,Vo.qW.Boolean),this.setState({[ne]:!me})}),(0,r.A)(this,"handleChangeMapSetting",(U,ne,me)=>{const{handleChange:Ee}=this.props;Ee(U,ne,me)})}render(){const{mapAdCode:U,theme:ne,hoverStyle:me,toolTipStyle:Ee,textV0:Ue,grid:at,showToolTip:Ht,isShowAxis:xo}=this.props,{mapThemeShow:Po,mapAreaShow:nn,mapAppearanceShow:is}=this.state;return(0,a.jsxs)(Kr,{children:[(0,a.jsx)(ho.A,{collapse:!Po,title:"\u4E3B\u9898",onChange:()=>this.handleSubChange("chart_settings_map_theme"),className:"theme-setting",children:(0,a.jsx)("div",{className:"setting-line",children:(0,a.jsx)(ri.mq,{className:"theme-select",optionList:[{label:"\u5F69\u8272",value:"0"},{label:"\u5355\u8272",value:"1"}],value:String(ne),onChange:Bn=>this.handleChangeMapSetting(Number(Bn),"chartTheme","chartConfig")})})}),(0,a.jsx)(ho.A,{collapse:!nn,title:"\u533A\u57DF",onChange:()=>this.handleSubChange("chart_settings_map_area"),className:"area-setting",children:(0,a.jsx)("div",{className:"setting-line",children:(0,a.jsx)(ri.mq,{className:"area-select",optionList:[{value:"100000",label:"\u4E2D\u56FD"}].concat([...el.AG].map(Bn=>{let[$s,qs]=Bn;return{value:$s,label:qs}})),value:String(U),onChange:Bn=>this.handleChangeMapSetting(Number(Bn),"mapAdCode","chartConfig")})})}),(0,a.jsxs)(ho.A,{collapse:!is,title:"\u5916\u89C2",onChange:()=>this.handleSubChange("chart_settings_map_appearance"),className:"appearance-setting",children:[(0,a.jsx)("div",{className:"collapse-block-title",children:(0,a.jsx)("span",{children:"\u9ED8\u8BA4\u5916\u89C2"})}),(0,a.jsxs)("div",{className:"collapse-block-content",children:[(0,a.jsx)("label",{className:"name",children:"\u63CF\u8FB9"}),(0,a.jsx)(Qn.R_,{color:at.bdrColor,attr:"",onChange:Bn=>this.handleChangeMapSetting({...at,bdrColor:Bn},"grid","chartConfig")})]}),(0,a.jsxs)("div",{className:"collapse-block-content",children:[(0,a.jsx)("label",{className:"name",children:"\u6587\u672C"}),(0,a.jsx)(Qn.R_,{color:Ue.textColor,attr:"",onChange:Bn=>this.handleChangeMapSetting(Bn,"textColor","textV0")}),(0,a.jsx)(pt.A,{className:"general-input",value:Ue.fontSize,min:1,max:1e3,optionList:Gi.X,onConfirm:Bn=>this.handleChangeMapSetting(Bn,"fontSize","textV0")})]}),(0,a.jsx)("div",{className:"collapse-block-title",children:(0,a.jsx)("span",{children:"\u60AC\u505C\u5916\u89C2"})}),(0,a.jsxs)("div",{className:"collapse-block-content",children:[(0,a.jsx)("label",{className:"name",children:"\u586B\u5145"}),(0,a.jsx)(Qn.R_,{color:me.bgColor,attr:"",onChange:Bn=>this.handleChangeMapSetting({...me,bgColor:Bn},"hoverStyle","chartConfig")})]}),(0,a.jsxs)("div",{className:"collapse-block-content",children:[(0,a.jsx)("label",{className:"name",children:"\u63CF\u8FB9"}),(0,a.jsx)(Qn.R_,{color:me.bdrColor,attr:"",onChange:Bn=>this.handleChangeMapSetting({...me,bdrColor:Bn},"hoverStyle","chartConfig")})]}),(0,a.jsxs)("div",{className:"collapse-block-content",children:[(0,a.jsx)("label",{className:"name",children:"\u6587\u672C"}),(0,a.jsx)(Qn.R_,{color:me.textColor,attr:"",onChange:Bn=>this.handleChangeMapSetting({...me,textColor:Bn},"hoverStyle","chartConfig")}),(0,a.jsx)(pt.A,{className:"general-input",value:me.fontSize,min:1,max:1e3,optionList:Gi.X,onConfirm:Bn=>this.handleChangeMapSetting({...me,fontSize:Bn},"hoverStyle","chartConfig")})]}),(0,a.jsxs)("div",{className:"collapse-block-title",children:[(0,a.jsx)(Ct.A,{className:"general-check",isChecked:Ht,onChange:Bn=>this.handleChangeMapSetting(Bn,"isShowToolTip","chartConfig")}),(0,a.jsx)("span",{className:"checkable-title",children:"\u6570\u636E\u63D0\u793A"})]}),(0,a.jsxs)("div",{className:f()("collapse-block-content",{hide:!Ht}),children:[(0,a.jsx)("label",{className:"name",children:"\u586B\u5145"}),(0,a.jsx)(Qn.R_,{color:Ee.bgColor,attr:"",onChange:Bn=>this.handleChangeMapSetting({...Ee,bgColor:Bn},"toolTipStyle","chartConfig")})]}),(0,a.jsxs)("div",{className:f()("collapse-block-content",{hide:!Ht}),children:[(0,a.jsx)("label",{className:"name",children:"\u63CF\u8FB9"}),(0,a.jsx)(Qn.R_,{color:Ee.bdrColor,attr:"",onChange:Bn=>this.handleChangeMapSetting({...Ee,bdrColor:Bn},"toolTipStyle","chartConfig")}),(0,a.jsx)(pt.A,{className:"general-input",value:Ee.bdrWidth,min:1,max:1e3,onConfirm:Bn=>this.handleChangeMapSetting({...Ee,bdrWidth:Bn},"toolTipStyle","chartConfig")})]}),(0,a.jsxs)("div",{className:f()("collapse-block-content",{hide:!Ht}),children:[(0,a.jsx)("label",{className:"name",children:"\u6587\u672C"}),(0,a.jsx)(Qn.R_,{color:Ee.textColor,attr:"",onChange:Bn=>this.handleChangeMapSetting({...Ee,textColor:Bn},"toolTipStyle","chartConfig")}),(0,a.jsx)(pt.A,{className:"general-input",value:Ee.fontSize,min:1,max:1e3,optionList:Gi.X,onConfirm:Bn=>this.handleChangeMapSetting({...Ee,fontSize:Bn},"toolTipStyle","chartConfig")})]}),(0,a.jsxs)("div",{className:"collapse-block-title",children:[(0,a.jsx)(Ct.A,{className:"general-check",isChecked:xo,onChange:Bn=>this.handleChangeMapSetting(Bn,"isShowAxis","chartConfig")}),(0,a.jsx)("span",{className:"checkable-title",children:"\u533A\u57DF\u540D\u79F0"})]})]})]})}}var nf=e(39557),sf=e(62140);const np=(L,U)=>{const ne=[fn.N.scatter_chart,fn.N.bubble_chart].includes(U),me=U===fn.N.sunburst_chart,Ee=new Map;for(let Ue=0;Ue<L.length;Ue++){const at=L[Ue],Ht=ne?at.name:at.data[0];if(me&&!Ht)continue;const xo=Ee.get(Ht);xo?Ee.set(Ht,{...xo,numbers:xo.numbers.concat(Ue)}):Ee.set(Ht,{numbers:[Ue],color:at.color})}return Array.from(Ee.keys()).map(Ue=>({name:Ue,numbers:Ee.get(Ue).numbers,color:Ee.get(Ue).color}))},af=L=>{const U=new Map;return L.forEach((ne,me)=>{const Ee=String(ne.data[0]),Ue=String(ne.data[1]),at=U.get(Ee),Ht=U.get(Ue);!at||!Ht?(at?U.set(Ee,{...at,numbers:at.numbers.concat(me)}):Ee&&U.set(Ee,{numbers:[me],color:ne.color}),Ht?U.set(Ue,{...Ht,numbers:Ht.numbers.concat(me)}):Ue&&U.set(Ue,{numbers:[me],color:ne.targetColor})):(at&&U.set(Ee,{...at,numbers:at.numbers.concat(me)}),Ht&&U.set(Ue,{...Ht,numbers:Ht.numbers.concat(me)}))}),Array.from(U.keys()).map(ne=>({name:ne,numbers:U.get(ne).numbers,color:U.get(ne).color}))},p2=L=>{var U;const ne=(0,sf.o)(L);return((U=ne[0])==null||(U=U.data)==null?void 0:U.length)<2?[]:np(ne,fn.N.sunburst_chart)},sd=(L,U)=>{const ne=U===fn.N.sankey_chart,me=U===fn.N.sunburst_chart;return U===fn.N.boxplot_chart?[]:ne?af(L):me?p2(L):np(L,U)},fy=u.Ay.section.withConfig({displayName:"styles__StyledSeriesColorSetting",componentId:"sc-sijl2r-0"})([".color-section{height:32px;display:flex;align-items:center;span{display:block;width:88px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-right:8px;}}.color-container{max-height:104px;overflow:hidden;transition:all 0.2s ease-in-out;&.is-expand{height:auto;max-height:fit-content;.color-section{&:last-child{margin-bottom:0;}}}}.expand{cursor:pointer;display:flex;align-items:center;height:32px;font-size:12px;color:",";&:hover,&:active{color:",";}}"],L=>L.theme.color_text_link_normal,L=>L.theme.color_text_link_hover),rf="chart_settings_color",Oa="mp_"+rf;class yy extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{show:(0,Vo.Yt)(Oa,!0,Vo.qW.Boolean),isExpand:!1}),(0,r.A)(this,"handleSubChange",()=>{const{show:U}=this.state;(0,Vo.a0)(Oa,!U,Vo.qW.Boolean),this.setState({show:!U})}),(0,r.A)(this,"handleChangeColor",(U,ne,me)=>{const{handleChangeHasSupAttr:Ee,series:Ue,type:at}=this.props,Ht=at===fn.N.sankey_chart,xo=Ue.map((Po,nn)=>{if(ne.includes(nn)){if(Ht){const Bn=Po.data[0]===U?{color:me}:{targetColor:me};return{...Po,...Bn}}return{...Po,color:me}}return Po});Ee(xo,"series","chartData")}),(0,r.A)(this,"handleToggleExpand",()=>{const{isExpand:U}=this.state;this.setState({isExpand:!U})}),(0,r.A)(this,"handleChangeBoxplotColor",U=>{const{handleChangeHasSupAttr:ne,series:me}=this.props,Ee=me.map(Ue=>({...Ue,color:U}));ne(Ee,"series","chartData")})}render(){const{show:U,isExpand:ne}=this.state,{type:me,series:Ee,theme:Ue}=this.props,at=me===fn.N.boxplot_chart,Ht=sd(Ee,me),xo=Ht.length;return(0,a.jsx)(ho.A,{collapse:!U,title:I18N.SettingPanel.inspector[rf],onChange:this.handleSubChange,children:(0,a.jsx)(fy,{type:"panel-body",className:"series-color-settings",children:at?(0,a.jsx)("div",{className:"boxplot-color-container",children:(0,a.jsxs)("div",{className:"color-section",children:[(0,a.jsx)("span",{children:I18N.SettingPanel.boxplotColor}),(0,a.jsx)(Qn.R_,{attr:"chart_series_color",color:Ee[0].color,onChange:this.handleChangeBoxplotColor,toolTips:I18N.SettingPanel.chartInfo.changeColor,direction:"left"})]})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:f()("color-container",{"is-expand":ne}),children:Ht.map((Po,nn)=>{let{color:is,numbers:Bn,name:$s}=Po;const qs=is||(0,nf.zw)(ja.B5[Ue][nn%ja.B5.length]);return(0,a.jsxs)("div",{className:"color-section",children:[(0,a.jsx)("span",{children:$s}),(0,a.jsx)(Qn.R_,{attr:"chart_series_color",color:qs,onChange:(Mi,Xi)=>this.handleChangeColor($s,Bn,Mi),toolTips:I18N.SettingPanel.chartInfo.changeColor,direction:"left"})]},$s)})}),xo>3&&(0,a.jsx)("span",{className:"expand",onClick:this.handleToggleExpand,children:ne?I18N.ScreenList.collapse_screens:I18N.ScreenList.expand_screens})]})})})}}var xy=e(75915);class t0 extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleChangeFontSize",(U,ne)=>{const{minFontSize:me,maxFontSize:Ee,handleChange:Ue}=this.props;if(sdkStore.combineMergeMark("echart-world-cloud-"+ne),ne==="minFontSize"&&Number(U)>Ee){Ue(Ee,ne),this.handleRandomRotation(),sdkStore.combineMerge("echart-world-cloud-"+ne);return}else if(ne==="maxFontSize"&&Number(U)<me){Ue(me,ne),this.handleRandomRotation(),sdkStore.combineMerge("echart-world-cloud-"+ne);return}Ue(U,ne),this.handleRandomRotation(),sdkStore.combineMerge("echart-world-cloud-"+ne)}),(0,r.A)(this,"handleRandomRotation",()=>{const{series:U,handleChangeHasSupAttr:ne}=this.props,me=U.map(Ee=>({...Ee,rotation:(0,xy.s)()}));ne(me,"series","chartData")})}render(){const{minFontSize:U,maxFontSize:ne}=this.props;return(0,a.jsx)(kn,{className:f()("chart-preference-common"),children:(0,a.jsxs)("div",{className:"word_cloud_font_size",children:[(0,a.jsxs)("div",{className:"common-line opacity-line",children:[(0,a.jsx)("span",{className:"label-name min-font-size",children:I18N.SettingPanel.chartInfo.minFontSize}),(0,a.jsx)(Gi.A,{attr:"minFontSize",fontSize:U,handleChange:this.handleChangeFontSize})]}),(0,a.jsxs)("div",{className:"common-line opacity-line",children:[(0,a.jsx)("span",{className:"label-name max-font-size",children:I18N.SettingPanel.chartInfo.maxFontSize}),(0,a.jsx)(Gi.A,{attr:"maxFontSize",fontSize:ne,handleChange:this.handleChangeFontSize})]})]})})}}const y0=u.Ay.section.withConfig({displayName:"styles__StyledChartInfo",componentId:"sc-rh3mz-0"})(["width:100%;color:#415058;border-top:1px solid ",';.sub-panel{margin:0 16px;}.sub-panel,.sub-panel.collapse{width:auto;&:first-child{border-top:none;header{border-top:none;}}header{padding:0;.angle-icon-wrap{transform:translateX(6px);}}[type="panel-body"]{padding:0;width:auto;}}.chart-preference-common{border-top:1px solid ',";width:auto;margin:0 16px;padding:8px 0;&.noBorder{border-top:none;}.progressAttr{border-bottom:1px solid ",";margin-bottom:8px;padding-bottom:8px;.appearance-line{display:flex;align-items:center;justify-content:space-between;.colorBtn{width:16px;border:1px solid rgba(0,0,0,0.12);}.left-label{color:",";}.right-content{width:118px;padding-left:3px;}}}.common-line{.label-name{min-width:48px;&:lang(en){width:83px;}&.bubble-radius{word-break:keep-all;}}.input-number.bubble-radius{width:66px;margin-left:49px;&.min,&.max{margin-left:25px;}}&.gauge-chart{justify-content:space-between;label.name{line-height:22px;width:auto;color:",";}.right-content{width:111px;}}}.word_cloud_shape{justify-content:space-between;margin-bottom:8px;.word_cloud_shape_select{width:111px;border-radius:4px;justify-content:space-between;}}.word_cloud_font_size{.common-line{justify-content:space-between;.font-size-container{width:111px;}}}.mix-chart-type{max-height:96px;overflow:hidden;transition:all 0.2s ease-in-out;&.is-expand{height:auto;max-height:fit-content;}.Ellipsis{width:40%;}.common-line{justify-content:space-between;.border-select-size{width:110px;}}}}"],L=>L.theme.color_bg_border_01,L=>L.theme.color_bg_border_02,L=>L.theme.color_bg_border_02,L=>L.theme.color_text_L2,L=>L.theme.color_text_L2);var lf=e(22379);class cf extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{isExpand:!1,modifiedSeries:[]}),(0,r.A)(this,"handleChangeMixedType",(U,ne)=>{const{series:me,handleChangeHasSupAttr:Ee}=this.props,Ue=me.map((at,Ht)=>Ht===U?{...at,type:ne}:at);Ee(Ue,"series","chartData")}),(0,r.A)(this,"handleToggleExpand",()=>{const{isExpand:U}=this.state;this.setState({isExpand:!U})})}componentDidMount(){const{series:U,type:ne,handleChangeHasSupAttr:me}=this.props;if(ne===fn.N.mixed_bar_line_chart){const Ue=U.map((at,Ht)=>at.type?at:{...at,type:Ht===U.length-1?"line":"bar"});me(Ue,"series","chartData"),this.setState({modifiedSeries:Ue})}}componentDidUpdate(U){const{series:ne}=this.props;if(ne!==U.series){const me=ne.map((Ee,Ue)=>Ee.type?Ee:{...Ee,type:Ue===ne.length-1?"line":"bar"});this.setState({modifiedSeries:me})}}render(){const{isExpand:U,modifiedSeries:ne}=this.state,me=ne.length;return(0,a.jsxs)(kn,{className:f()("chart-preference-common"),children:[(0,a.jsx)("div",{className:f()("mix-chart-type",{"is-expand":U}),children:ne.map((Ee,Ue)=>(0,a.jsxs)("div",{className:"common-line opacity-line height-32",children:[(0,a.jsx)(lf.A,{children:Ee.name}),(0,a.jsx)(ri.mq,{className:f()("border-select-size"),menuClassName:"border_style_select_menu",optionList:[{label:"\u67F1\u72B6",value:"bar"},{label:"\u6298\u7EBF",value:"line"}],value:Ee.type,onChange:at=>this.handleChangeMixedType(Ue,at)})]},Ue))}),me>3&&(0,a.jsx)("span",{className:"expand",onClick:this.handleToggleExpand,children:U?I18N.ScreenList.collapse_screens:I18N.ScreenList.expand_screens})]})}}class sp extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleChange",(U,ne)=>{const{onChange:me,dispatch:Ee,selections:Ue}=this.props;me({value:U,attr:ne,dispatch:Ee,supAttr:"chartConfig",selections:Ue})}),(0,r.A)(this,"handleChangeHasSupAttr",(U,ne,me)=>{const{onChange:Ee,dispatch:Ue,selections:at}=this.props;Ee({value:U,attr:ne,dispatch:Ue,supAttr:me,selections:at})})}render(){const{chartData:U,smooth:ne,legend:me,grid:Ee,borderRadius:Ue,innerRadius:at,progress:Ht,unit:xo,backgroundColor:Po,foregroundColor:nn,theme:is,type:Bn,category:$s,showToolTip:qs,isShowAxis:Mi,minNum:Xi,maxNum:na,chartAnimation:Xa,axis:Ga,bubbleRadius:xr,minBubbleRadius:Br,maxBubbleRadius:Qa,label:vr,labelText:al,labelNumber:mr,minFontSize:dd,maxFontSize:Ql,boxWidth:Sc,barCategoryGap:n0,mapAdCode:cl,hoverStyle:o1,toolTipStyle:Fh,textV0:jp,showTypeSettingPanel:v0,dispatch:Pr}=this.props,Op=Ka.includes(Bn),ap=!da.includes(Bn),uh=Bn===fn.N.waterfall_chart,X1=Bn===fn.N.map_chart,Mu=![fn.N.map_chart].includes(Bn),id=aa.includes(Bn),ad=Bn===fn.N.word_cloud_chart,mh=Bn===fn.N.mixed_bar_line_chart;return(0,a.jsxs)(a.Fragment,{children:[v0&&(0,a.jsx)(pa,{chartData:U,type:Bn,category:$s,handleChange:this.handleChange,handleChangeHasSupAttr:this.handleChangeHasSupAttr}),ap&&(0,a.jsx)(xl,{theme:is,handleChange:this.handleChange}),id&&(0,a.jsx)(yy,{type:Bn,series:U.series,theme:is,handleChangeHasSupAttr:this.handleChangeHasSupAttr}),ad&&(0,a.jsx)(t0,{series:U.series,minFontSize:dd,maxFontSize:Ql,handleChange:this.handleChange,handleChangeHasSupAttr:this.handleChangeHasSupAttr}),mh&&(0,a.jsx)(cf,{series:U.series,type:Bn,handleChange:this.handleChange,handleChangeHasSupAttr:this.handleChangeHasSupAttr}),Op&&(0,a.jsx)(pc,{borderRadius:Ue,innerRadius:at,progress:Ht,foregroundColor:nn,backgroundColor:Po,minNum:Xi,maxNum:na,type:Bn,bubbleRadius:xr,minBubbleRadius:Br,maxBubbleRadius:Qa,boxWidth:Sc,barCategoryGap:n0,handleChange:this.handleChange,dispatch:Pr}),uh&&(0,a.jsx)(tf,{chartData:U,dispatch:Pr}),X1&&(0,a.jsx)(of,{theme:is,mapAdCode:cl,hoverStyle:o1,toolTipStyle:Fh,textV0:jp,grid:Ee,showToolTip:qs,isShowAxis:Mi,handleChange:this.handleChangeHasSupAttr}),Mu&&(0,a.jsx)(Yg,{type:Bn,grid:Ee,showToolTip:qs,legend:me,smooth:ne,category:$s,unit:xo,chartAnimation:Xa,axis:Ga,label:vr,labelText:al,labelNumber:mr,handleChange:this.handleChange,dispatch:Pr})]})}}const w1=L=>{let{children:U}=L;return(0,a.jsx)(y0,{children:U})},jh={component:sp,params:{},getter:[L=>{let{selectedTrees:U}=L;const ne=U.map(Ue=>Ue.widget),me=(0,Ze.i)(ne,"chartConfig"),Ee=(0,Ze.i)(ne,"textV0");return{showTypeSettingPanel:ne.every(Ue=>Ue.chartConfig.chartType===ne[0].chartConfig.chartType)&&!fa.includes(ne[0].chartConfig.chartType),type:me.chartType,category:me.chartCategory,theme:me.chartTheme,chartData:(0,Ze.i)(ne,"chartData"),grid:me.grid,legend:me.legend,borderRadius:me.chartBorderRadius,innerRadius:me.chartInnerRadius,progress:me.progress,minNum:me.minNum,maxNum:me.maxNum,showToolTip:me.isShowToolTip,isShowAxis:me.isShowAxis,smooth:me.smooth,unit:{prefix:me.prefix,suffix:me.suffix},foregroundColor:me.foregroundColor,backgroundColor:me.backgroundColor,chartAnimation:me.chartAnimation,mapAdCode:me.mapAdCode,hoverStyle:me.hoverStyle,textV0:Ee,toolTipStyle:me.toolTipStyle,axis:me.axis,bubbleRadius:me.bubbleRadius,minBubbleRadius:me.minBubbleRadius,maxBubbleRadius:me.maxBubbleRadius,label:me.label,labelText:me.labelText,labelNumber:me.labelNumber,minFontSize:me.minFontSize,maxFontSize:me.maxFontSize,boxWidth:me.boxWidth,barCategoryGap:me.barCategoryGap}}],setter:{onChange:bi.c}},Oh=()=>[w1,[jh,"ChartSettingsInfo"]];var $m=e(15297),df=e(27643);const pf=(0,p.memo)(L=>{let{showSinglePanelState:U,panel:ne,onChange:me,dispatch:Ee,selections:Ue}=L;const at=(Ht,xo)=>{me({value:Ht,attr:xo,dispatch:Ee,selections:Ue})};return(0,a.jsxs)(hf,{className:"state-scroll-container",children:[U&&(0,a.jsx)($m._,{panel:ne,dispatch:Ee}),(0,a.jsx)(df.E,{scroll:ne==null?void 0:ne.scroll,handleChange:at})]})}),hf=u.Ay.div.withConfig({displayName:"indexui__StyledTemplatePanel",componentId:"sc-1de6owv-0"})(["&.state-scroll-container{padding-top:8px;border-top:1px solid ",";}"],L=>L.theme.color_bg_border_01),uf=L=>{let{children:U}=L;return(0,a.jsx)(a.Fragment,{children:U})},mf={component:pf,params:{showSinglePanelState:!0},getter:[L=>{let{selectedTrees:U}=L;const me=U.map(Ee=>Ee.widget)[0];return{showSinglePanelState:U.length===1,panel:me}}],setter:{onChange:bi.c}},gf=()=>[uf,[mf]],ff=["children"];class yf extends p.Component{shouldComponentUpdate(U,ne,me){var Ee;return(Ee=(0,ps.dP)())!=null&&Ee.flag.isDraggingItem?!1:(0,Le.N)(ff).call(this,U,ne)}render(){return(0,a.jsx)("div",{children:this.props.children})}}class xf extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleCanvasAttrsChanged",(U,ne)=>{const{onChange:me,dispatch:Ee,selections:Ue}=this.props;me({value:U,attr:ne,dispatch:Ee,selections:Ue}),(0,$t.A9)({attr:"fill"})}),(0,r.A)(this,"handleVisibleChanged",U=>{const{canvasAttrs:{fill:ne}}=this.props,me={...ne,fillIsVisible:U};this.handleCanvasAttrsChanged(me,"fill")})}render(){const{canvasAttrs:U}=this.props,{fill:ne}=U;return(0,a.jsx)(vf,{title:I18N.SettingPanel.inspector.artboard_bgcolor,className:"bgcolor-body",children:(0,a.jsx)("section",{type:"screen-body",children:(0,a.jsxs)("div",{className:"screen-bg-line height-32 margin-left-n6",children:[(0,a.jsx)(Ct.A,{className:Ct.p,attr:"isVisible",isChecked:ne==null?void 0:ne.fillIsVisible,onChange:me=>this.handleVisibleChanged(me)}),(0,a.jsx)(Qn.R_,{className:Qn.Fw,attr:"fill",color:ne,pIsSolidColorOnly:!0,onChange:this.handleCanvasAttrsChanged}),(0,a.jsx)("label",{className:"left-label background-label",children:I18N.SettingPanel.fill})]})})})}}const vf=(0,u.Ay)(ho.A).withConfig({displayName:"CanvasColorPanelui__StyledCanvasColorPanel",componentId:"sc-rd9sj0-0"})(['&.bgcolor-body{[type="screen-body"]{padding:0 16px;}.screen-bg-line{display:flex;align-items:center;.left-label{height:14px;color:',';line-height:14px;white-space:nowrap;}[type="color-btn"]{margin:0 6px;}}}'],L=>L.theme.color_text_L2),vm={component:xf,params:{},getter:[L=>{let{selectedTrees:U}=L;return{canvasAttrs:U.map(me=>me.widget)[0]}}],setter:{onChange:bi.c}},o0=()=>[yf,[vm,"CanvasColorInfo"]],bm=u.Ay.div.withConfig({displayName:"styles__StyledVectorEditingPanel",componentId:"sc-mgbv25-0"})(["width:240px;color:",";.layer-info{margin:0;}.general-line{display:flex;align-items:center;padding-left:10px;.general-input{flex:0 0 66px;display:flex;justify-content:space-between;align-items:center;&:not(:last-child){margin-right:8px;}}.active{background:#1A70D8;}}.rows{display:flex;padding-left:15px;align-items:center;&.with-line{border-top:1px solid ",";height:48px;padding-top:8px;}&.is-disabled-setting{opacity:0.4;cursor:not-allowed;}.rows-title{color:",";margin-right:12px;&:lang(en){margin-right:8px;}}.rows-content{flex:1;height:24px;&.point{&:lang(en){margin-left:8px;}}}.flex{padding-right:10px;height:28px;display:flex;flex-direction:row;justify-content:space-between;color:",";align-items:center;.slider .rail{width:116px;&:lang(en){width:104px;}}&.hide-radius{color:#eee;}.input-with-no-title{position:relative;flex:0 0 49px;font-size:12px;}}&.with-line{position:relative;align-items:center;width:100%;label{padding:8px 0;margin-right:14px;.col-resize{margin-left:6px;&.no-title{width:5px;margin:0;}}}}&.first-line{&::after{content:'';position:absolute;left:-16px;right:-16px;bottom:-10px;height:1px;background-color:#ededed;}}&.second-line{&::after{content:'';position:absolute;left:0;right:0;bottom:-16px;height:1px;background-color:#ededed;}}}.point-type{display:inline-flex;justify-content:center;align-items:center;border-radius:4px;cursor:pointer;width:40px;height:24px;margin-right:6px;&.active{background-color:",";color:#fff;path,circle{fill:#fff;}}&.disabled{cursor:not-allowed;}svg.svg-icon{width:40px;height:24px;}&:lang(en){width:36px;}&:nth-last-of-type(1){margin-right:0;}&:not(.active):not(.disabled):hover{background-color:",";}}.setting-btn{width:96px;&:not(:nth-last-of-type(1)){margin-right:16px;}}.seperate-set-area{display:flex;.seperate-input{border:solid 1px rgba(204,204,204,0.3);border-radius:0;font-size:12px;&:nth-of-type(1){border-radius:2px 0 0 2px;}&:nth-last-of-type(1){border-radius:0 2px 2px 0;}&:not(:nth-of-type(1)){margin-left:-1px;}input{width:32px;}}}.normal-h{height:40px;}"],L=>L.theme.color_text_L2,L=>L.theme.color_bg_border_02,L=>L.theme.color_text_L1,L=>L.theme.color_text_L1,L=>L.theme.color_proto,L=>L.theme.color_btn_secondary_active),vy=L=>{let{children:U}=L;return(0,a.jsx)(bm,{children:U})};var x0=e(72868),bf=e(2302);function Ma(L,U){if(L.length===0)return;const ne=U(L[0]);if(L.every(me=>U(me)===ne))return ne}function Cm(L,U){if(L.length===0)return null;const ne=U(L[0]);return L.every(me=>Math.abs(U(me)-ne)<1e-5)?ne:null}class Cf extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"pointTypeList",[{type:x0.pQ.Straight,icon:"setting_panel/vector/pointType/straight",title:I18N.SettingPanel.vectorSetting.pointType.straight},{type:x0.pQ.Mirrored,icon:"setting_panel/vector/pointType/mirrored",title:I18N.SettingPanel.vectorSetting.pointType.mirrored},{type:x0.pQ.Asymmetric,icon:"setting_panel/vector/pointType/asymmetric",title:I18N.SettingPanel.vectorSetting.pointType.asymmetric},{type:x0.pQ.Disconnected,icon:"setting_panel/vector/pointType/disconnected",title:I18N.SettingPanel.vectorSetting.pointType.disconnected}]),(0,r.A)(this,"changeToVector",()=>{const{vectorWidget:{key:U,type:ne},dispatch:me}=this.props;if(ne!==D.x.WVector){const Ee=[{key:U,hotAttr:{type:D.x.WVector}}];me({type:"entry:widget:change",payload:{flatChgList:Ee}})}}),(0,r.A)(this,"handleChangePosition",(U,ne,me,Ee)=>{this.changeToVector();const{vectorEditor:{selectedIndex:Ue,selectedAssistIndex:at},vectorWidget:{key:Ht,vector:xo,contextBoundingBox:{transform:Po}},dispatch:nn}=this.props;if(Ue.length<1)return;const is=[...xo.points];if(Ue.length===1&&at){const{x:Bn,y:$s}=is[Ue[0]],qs=is[Ue[0]][at],{x:Mi,y:Xi}=Po.clone().apply({x:Bn+qs.x,y:$s+qs.y});let na;ne==="X"&&(na={x:U,y:Xi}),ne==="Y"&&(na={x:Mi,y:U});const Xa=Po.inverted().apply(na);is[Ue[0]]=(0,x0.Yw)(is[Ue[0]],at,{x:Xa.x-Bn,y:Xa.y-$s})}else ne==="X"&&Ue.map(Bn=>{const $s=is[Bn],{x:qs,y:Mi}=Po.clone().apply({x:$s.x,y:$s.y}),{x:Xi,y:na}=Po.inverted().apply({x:U,y:Mi});is[Bn]={...$s,x:Xi,y:na}}),ne==="Y"&&Ue.map(Bn=>{const $s=is[Bn],{x:qs,y:Mi}=Po.clone().apply({x:$s.x,y:$s.y}),{x:Xi,y:na}=Po.inverted().apply({x:qs,y:U});is[Bn]={...$s,x:Xi,y:na}});nn({type:"entry:vector:update:vector",payload:{vector:{...xo,points:is}}})}),(0,r.A)(this,"handlePointType",U=>{this.changeToVector();const{vectorEditor:{selectedIndex:ne,selectedAssistIndex:me},vectorWidget:{key:Ee,vector:Ue},dispatch:at}=this.props;if(ne.length>0){const Ht=U.currentTarget.dataset.pointType,xo=[...Ue.points];ne.map(Po=>{const nn=xo[Po].type;if(Ht===x0.pQ.Straight)xo[Po]={...xo[Po],type:Ht,next:bf.Z.zero,prev:bf.Z.zero};else if(nn===x0.pQ.Straight){const{prev:is,next:Bn}=(0,x0.wX)(xo,Po);xo[Po]={...xo[Po],type:Ht,prev:is,next:Bn}}else if(nn===x0.pQ.Mirrored||nn===x0.pQ.Asymmetric&&Ht===x0.pQ.Disconnected)xo[Po].type=Ht;else{const is=me||"next";xo[Po].type=Ht,xo[Po]=(0,x0.Yw)(xo[Po],is,xo[Po][is])}}),at({type:"entry:vector:update:vector",payload:{vector:{...Ue,points:xo}}})}}),(0,r.A)(this,"handleSlider",U=>{const ne=Math.round(U);this.changeRadiusValue(ne)}),(0,r.A)(this,"changeRadiusValue",U=>{this.changeToVector();const{vectorEditor:{selectedIndex:ne},vectorWidget:{vector:me},dispatch:Ee}=this.props,Ue=[...me.points];ne.map(at=>{const Ht=Ue[at];Ue[at]={...Ht,radius:U}}),Ee({type:"entry:vector:update:vector",payload:{vector:{...me,points:Ue}}})}),(0,r.A)(this,"handleExitVectorEditor",()=>{this.props.dispatch({type:"entry:vector:exit:edit",payload:{end:re.z9.Exit}})}),(0,r.A)(this,"handleToggleClosed",()=>{const{vectorWidget:{vector:{points:U,closed:ne}}}=this.props;if(U.length<3)return;this.changeToVector();const{vectorWidget:me,dispatch:Ee}=this.props,{vector:Ue}=me;if(ne===!1){const at={...Ue,closed:!ne};Ee({type:"entry:vector:update:vector",payload:{vector:at}})}else ne===!0&&Ee({type:"entry:vector:open:path"})})}render(){const{vectorWidget:U,vectorEditor:ne}=this.props;if(!U||!ne)return null;const{selectedIndex:me,selectedAssistIndex:Ee}=ne,{vector:{points:Ue,closed:at},contextBoundingBox:{transform:Ht}}=U,xo=me.length<1;let Po="",nn="",is="",Bn="",$s="",qs=-1,Mi,Xi=0,na=!0;if(me.length===1&&Ue[me[0]]){Mi=Ue[me[0]];const{x:Qa,y:vr}=Mi;qs=Mi.type,Po=Ee?Qa+Mi[Ee].x:Qa,nn=Ee?vr+Mi[Ee].y:vr;const{x:al,y:mr}=Ht.apply({x:Po,y:nn});Po=al.toFixed(2),nn=mr.toFixed(2),Mi.type!==x0.pQ.Straight&&(na=!1),Xi=Mi.radius}else if(me.length>1){var Xa,Ga,xr,Br;const Qa=me.map(mr=>Ue[mr]),vr=(Xa=Cm(Qa,mr=>mr==null?void 0:mr.x))!=null?Xa:void 0,al=(Ga=Cm(Qa,mr=>mr==null?void 0:mr.y))!=null?Ga:void 0;Po=vr?Ht.apply({x:vr,y:0}).x:void 0,nn=al?Ht.apply({x:0,y:al}).y:void 0,qs=(xr=Ma(Qa,mr=>mr==null?void 0:mr.type))!=null?xr:-1,Xi=(Br=Cm(Qa,mr=>mr==null?void 0:mr.radius))!=null?Br:void 0,is=Po?"":I18N.SettingPanel.multiple_value,Bn=nn?"":I18N.SettingPanel.multiple_value,$s=Xi?"":I18N.SettingPanel.multiple_value}return(0,a.jsxs)(bm,{children:[(0,a.jsxs)("div",{className:f()("general-line","height-32"),style:{marginBottom:8},children:[(0,a.jsx)(pt.A,{className:"general-input",title:"X",attr:"X",value:Po,disabled:xo,min:-99999,max:99999,isNotVerify:!!is,placeholder:is,onConfirm:this.handleChangePosition}),(0,a.jsx)(pt.A,{className:"general-input",title:"Y",attr:"Y",value:nn,disabled:xo,min:-99999,max:99999,isNotVerify:!!Bn,placeholder:Bn,onConfirm:this.handleChangePosition})]}),(0,a.jsxs)("div",{className:f()({"is-disabled-setting":xo},"rows with-line"),children:[(0,a.jsx)("span",{className:"rows-title",children:I18N.SettingPanel.vectorSetting.type}),(0,a.jsx)("div",{className:"rows-content point",children:this.pointTypeList.map((Qa,vr)=>(0,a.jsx)(N.A,{content:Qa.title,direction:"down",children:(0,a.jsx)("div",{"data-point-type":Qa.type,className:f()({active:qs===Qa.type,disabled:xo},"point-type"),onClick:this.handlePointType,children:(0,a.jsx)(S.C,{name:Qa.icon,isDisabled:xo})})},vr))})]}),(0,a.jsxs)("div",{className:f()({"is-disabled-setting":xo},"rows","normal-h"),children:[(0,a.jsx)("span",{className:"rows-title",children:I18N.SettingPanel.inspector.radius}),(0,a.jsx)("div",{className:f()("rows-content flex",{"hide-radius":!na}),children:(0,a.jsx)(pt.A,{className:"input-with-no-title",value:Xi,showCursorResize:!0,disabled:!na,min:0,max:9999,isNotVerify:!!$s,placeholder:$s,onChange:this.changeRadiusValue,onConfirm:this.changeRadiusValue})})]}),(0,a.jsxs)("div",{className:"rows normal-h",style:{marginTop:8},children:[(0,a.jsx)(gt.Oc,{type:"secondary",size:"tiny",corner:"soft",className:"setting-btn",disabled:Ue.length<3||me.length===0,onClick:this.handleToggleClosed,children:at?I18N.SettingPanel.vectorSetting.openPath:I18N.SettingPanel.vectorSetting.closePath}),(0,a.jsx)(gt.Oc,{type:"primary",size:"tiny",corner:"soft",className:"setting-btn active",onClick:this.handleExitVectorEditor,children:I18N.SettingPanel.vectorSetting.closeEdit})]})]})}}const wf={component:Cf,params:{},getter:[L=>{let{selectedTrees:U,vectorEditor:ne}=L;const me=U[0];let Ee=(0,x0.YW)(me.key);const Ue=sdkStore.locUpColdCanvasKey(me.key);if(Ue){const at=sdkStore.getHotItem(Ue),{x:Ht,y:xo,w:Po,h:nn}=at.hotAttr,is=Ht-Po/2,Bn=xo-nn/2;Ee=Ee.clone().translate({x:-is,y:-Bn})}return{vectorEditor:ne,vectorWidget:{...me.widget,contextBoundingBox:{transform:Ee}}}}]},qm=()=>[vy,[wf]];var S1=e(78081);const Sf=u.Ay.section.withConfig({displayName:"style__StyledTableCellInfo",componentId:"sc-yvxhym-0"})([".general-line{border-top:1px solid ",";height:48px;align-items:center;&.tableCellWH{display:flex;border-top:none;padding:0 8px;label{&:first-child{margin-right:10px;}}}&.colorBtnWarp{display:flex;[type=color-btn]{margin-left:20px;}.thumbnail{width:14px;}}}"],L=>L.theme.color_bg_border_01),wm=L=>{let{width:U,height:ne,dispatch:me}=L;const Ee=(Ue,at)=>{Ue&&me({type:"entry:flow:change:width-height",payload:{value:Ue,attr:at}})};return(0,a.jsxs)("div",{className:"general-line tableCellWH",children:[(0,a.jsx)(pt.A,{className:"general-input step-input-width-72",title:"W",attr:"width",value:U,min:16,max:999,onConfirm:Ee}),(0,a.jsx)(pt.A,{className:"general-input step-input-width-72",title:"H",attr:"height",value:ne,min:16,max:999,onConfirm:Ee})]})},G1=(0,p.memo)(wm),Sm=L=>{let{children:U}=L;return(0,a.jsx)(Sf,{children:U})},oc={component:G1,params:{},getter:[L=>{let{selectedTrees:U,swimlaneSelectedCellsInfo:ne}=L;const me=U.map(is=>is.widget)[0],{tl:Ee}=ne,{database:Ue,swimlaneType:at}=me,{heightList:Ht,widthList:xo}=Ue;let Po=xo[Ee.x],nn=Ht[Ee.y];return Ee.x===0&&Ee.y===0?at==="topBottom"?(Po=xo[0],nn=(0,S1.PM)(Ht)):(Po=(0,S1.PM)(xo),nn=Ht[0]):at==="topBottom"&&(nn=Ht[Ee.y-1],Po=xo[Ee.x+1]),{width:Po,height:nn}}],setter:{}},If=()=>[Sm,[oc]],Am=u.Ay.div.withConfig({displayName:"style__StyledInputContainer",componentId:"sc-zosjl3-0"})(["border-top:1px solid ",";display:flex;padding:8px 16px;flex-direction:column;.appearance-line{display:flex;align-items:center;justify-content:space-between;color:",";.left-label{height:14px;color:",";line-height:14px;white-space:nowrap;}.right-content{width:140px;}.placeholder-color{width:136px;}.input-type-select{width:140px;}}"],L=>L.theme.color_bg_border_01,L=>L.theme.color_text_L2,L=>L.theme.color_text_L2),Mf=(0,p.memo)(L=>{let{inputType:U,onChange:ne,dispatch:me,supAttr:Ee,selections:Ue}=L;const at=(xo,Po)=>{ne({value:xo,attr:Po,dispatch:me,supAttr:Ee,selections:Ue})},Ht=[{label:I18N.SettingPanel.text,value:"text"},{label:I18N.SettingPanel.password,value:"password"},{label:I18N.SettingPanel.number,value:"tel"},{label:"Email",value:"email"},{label:I18N.SettingPanel.date,value:"date"},{label:I18N.SettingPanel.time,value:"time"},{label:I18N.SettingPanel.datetime,value:"datetime-local"}];return(0,a.jsx)(Am,{children:(0,a.jsxs)("div",{className:"appearance-line height-32",children:[(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.input_type}),(0,a.jsx)("div",{className:"right-content input-type",children:(0,a.jsx)(ri.mq,{className:"select input-type-select",attr:"inputTypes",optionList:Ht,value:U,onChange:at})})]})})});class Im extends p.PureComponent{render(){return(0,a.jsx)("div",{children:this.props.children})}}const Mm={component:Mf,params:{},getter:[L=>{let{selectedTrees:U}=L;const ne=U.map(Ee=>Ee.widget),{inputTypes:me}=(0,Ze.i)(ne,"textInput");return{inputType:me,supAttr:"textInput"}}],setter:{onChange:bi.c}},Tf=()=>[Im,[Mm]];var eg=e(13974);const Ef=u.Ay.input.withConfig({displayName:"style__StyledPlacerholderInput",componentId:"sc-19ob3f5-0"})(["width:140px;height:28px;border-radius:4px;padding:0 6px;color:",";border:1px solid transparent;&:hover{border:1px solid ",";}&:focus{border:1px solid ",";outline:1px solid ",";outline-offset:-2px;}"],L=>L.theme.color_text_L1,L=>L.theme.color_bg_border_02,L=>L.theme.color_proto,L=>L.theme.color_proto),_f={component:(0,p.memo)(L=>{let{text:U,textColor:ne,onChange:me,dispatch:Ee,inputTypes:Ue,selections:at}=L;const Ht=(nn,is)=>{me({value:nn,attr:is,dispatch:Ee,supAttr:"textV0",selections:at})},xo=nn=>{me({value:nn.target.value,attr:"text",dispatch:Ee,supAttr:"textV0",selections:at})},Po=nn=>{if(!(0,st.RC)(at[0])){var is;(is=nn.target)==null||is.blur()}};return(0,a.jsxs)(Am,{children:[!(0,eg.PD)({textInput:{inputTypes:Ue}})&&(0,a.jsxs)("div",{className:"appearance-line first-row height-32",children:[(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.textInput.defaultPrompt}),(0,a.jsx)("div",{className:"right-content placeholder-text",children:(0,a.jsx)(Ef,{onFocus:Po,type:"text",value:U,onChange:xo})})]}),(0,a.jsxs)("div",{className:"appearance-line height-32",children:[(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.textInput.promptColor}),(0,a.jsx)("div",{className:"right-content placeholder-color",children:(0,a.jsx)(Qn.R_,{className:Qn.Fw,attr:"textColor",color:ne,pIsSolidColorOnly:!0,onChange:Ht})})]})]})}),params:{},getter:[L=>{let{selectedTrees:U}=L;const ne=U.map(at=>at.widget),{inputTypes:me}=(0,Ze.i)(ne,"textInput"),{text:Ee,textColor:Ue}=(0,Ze.i)(ne,"textV0");return{text:Ee,textColor:Ue,inputTypes:me}}],setter:{onChange:bi.c}},Tm=()=>[Im,[_f]],tg="icon_flip",Pf=(0,p.memo)(L=>{const[U,ne]=(0,p.useState)((0,Vo.Yt)(tg,!0,Vo.qW.Boolean)),me=(0,p.useCallback)(()=>{(0,Vo.a0)(tg,!U,Vo.qW.Boolean),ne(!U)},[U,ne]);return(0,a.jsx)(ho.A,{collapse:!U,title:I18N.SettingPanel.icon,onChange:me,children:L.children})});var Nf=e(15335);const e1=u.Ay.div.withConfig({displayName:"styles__StyledIconFlipSettingsPanel",componentId:"sc-cx5zaf-0"})(["display:flex;flex-direction:column;transition:height 200ms ease-in-out 0s;padding:0 16px;&.isMuban{padding-bottom:14px;}.line{display:flex;justify-content:space-between;align-items:center;min-height:",";.left-label{height:14px;color:",";line-height:14px;}.panel-icon-info{display:flex;align-items:center;width:140px;color:",";border:1px solid ",";padding-right:6px;border-radius:4px;height:28px;cursor:pointer;&:hover{background-color:",";}&:active{background-color:",";}.icon{width:16px;height:16px;margin:0 6px;&.svg-icon-path-icon{",";}}.ant-icon{width:16px;height:16px;margin:0 6px;}.panel-icon-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}}.icon-flip-buttons{display:flex;align-items:center;svg{width:24px;height:24px;border-radius:4px;&:first-child{margin-right:6px;}&:hover{background-color:",";}&:active{background-color:",";}path:first-child{fill:",";};}}"],"22px",L=>L.theme.color_text_L2,L=>L.theme.color_text_L2,L=>L.theme.color_background_icon_active,L=>L.theme.color_background_icon_hover,L=>L.theme.color_background_icon_active,Nf.T,L=>L.theme.color_background_icon_hover,L=>L.theme.color_background_icon_active,L=>L.theme.color_text_L1);var og=e(9126),Df=e(25960);const ng={component:(0,p.memo)(L=>{let{view_box:U,path:ne,svgAttr:me,iconName:Ee,isMuBan:Ue,dispatch:at}=L;const[Ht,xo]=(0,p.useState)(!1),[Po,nn]=(0,p.useState)({top:null});(0,p.useEffect)(()=>{Ht&&at({type:"entry:toggle:icon-select-popup",payload:{iconName:Ee,source:ie.Z.iconWidgetSettingPanel}})},[Ht,at]);const is=(0,p.useCallback)((Mi,Xi)=>{const{iconName:na,iconDisplayName:Xa}=(0,Df.RU)(Mi);at({type:"entry:items:set:icon",payload:{icon:Mi,iconName:na,iconDisplayName:Xa,isMultiColorIcon:Xi}})},[at]),Bn=(0,p.useCallback)(Mi=>{Mi.nativeEvent.stopImmediatePropagation();const Xi=Mi.currentTarget.getBoundingClientRect();nn({top:Xi==null?void 0:Xi.top}),xo(!0),at({type:"entry:toggle:icon-select-popup",payload:{iconName:Ee,source:ie.Z.iconWidgetSettingPanel}}),(0,Ed.vT)({source:"icon"})},[at,Ee]),$s=(0,p.useCallback)(()=>{at({type:"entry:image-view:horizontal-flip",payload:{isImage:!1}})},[at]),qs=(0,p.useCallback)(()=>{at({type:"entry:image-view:vertically-flip",payload:{isImage:!1}})},[at]);return(0,a.jsxs)(e1,{className:Ue&&"isMuban",children:[(0,a.jsxs)("div",{className:"line height-32",children:[(0,a.jsx)("label",{className:"left-label",children:I18N.SettingPanel.replace_icon}),(0,a.jsxs)("div",{className:"panel-icon-info",onClick:Bn,children:[(0,a.jsx)(og.D,{view_box:U,path:ne,svgAttr:me}),(0,a.jsx)("span",{className:"panel-icon-content",children:Ee})]})]}),!Ue&&(0,a.jsxs)("div",{className:"icon-flip-buttons height-32",children:[(0,a.jsx)(ae.P,{name:"setting_panel/image_view/horizontal_flip",tagName:"SVGIcon",content:I18N.SettingPanel.horizontal_flip,direction:"down",onClick:$s,iconProps:{isColorPure:!0,size:24,className:"image_view_flipH"}}),(0,a.jsx)(ae.P,{name:"setting_panel/image_view/vertical_flip",tagName:"SVGIcon",content:I18N.SettingPanel.vertical_flip,direction:"down",onClick:qs,iconProps:{isColorPure:!0,size:24,className:"image_view_flipV"}})]}),Ht&&(0,a.jsx)(Y,{emitBaseRect:Po,onSetCurrentNodeIcon:is,onClose:()=>xo(!1)})]})}),params:{},getter:[L=>{let{selectedTrees:U}=L;const ne=U.map(at=>at.widget),me=(0,Ze.i)(ne,"iconData"),Ee=ne.map(at=>at.cid),Ue=(0,_.td)(Ee)||(0,_.bp)(ne);return{view_box:me==null?void 0:me.viewBox,path:me==null?void 0:me.path,svgAttr:me==null?void 0:me.svgAttr,iconName:(me==null?void 0:me.iconName)||"",isMuBan:Ue}}],setter:{}},Bf=()=>[Pf,[ng,"IconFlipPanel"]],Rf=u.Ay.section.withConfig({displayName:"styles__StyledTreeSettingPanel",componentId:"sc-58esba-0"})(['.sub-panel{[type="panel-body"]{.panelItem{display:flex;margin-bottom:16px;&.boxShowPanelItem{flex-direction:column;}&.otherMargin{margin-bottom:12px;}&:last-child{margin-bottom:0;}[type="color-btn"]{margin:0 10px 0 16px;}}}}.divider{height:1px;border-top:1px solid ',";}.select-node-setting{border-top:none;}"],L=>L.theme.color_bg_border_01),sg=["children"];class jf extends p.Component{shouldComponentUpdate(U,ne,me){var Ee;return(Ee=(0,ps.dP)())!=null&&Ee.flag.isDraggingItem?!1:(0,Le.N)(sg).call(this,U,ne)}render(){return(0,a.jsx)(Rf,{children:this.props.children})}}const Em="mp_"+"nav_selected_panel";class Of extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{show:(0,Vo.Yt)(Em,!0,Vo.qW.Boolean)}),(0,r.A)(this,"handleSubChange",()=>{const{show:U}=this.state;(0,Vo.a0)(Em,!U,Vo.qW.Boolean),this.setState({show:!U})}),(0,r.A)(this,"updateFamilyVersion",()=>{const{onChange:U,dispatch:ne,selections:me}=this.props;U({value:1,attr:"!ffVersion",dispatch:ne,selections:me})}),(0,r.A)(this,"handleChange",U=>{let{value:ne,attr:me}=U;if(me==="fontFamily"&&this.updateFamilyVersion(),me==="fontStyle"){const Ee=ne==="italic";this.props.handleChange(Ee,"italic");return}this.props.handleChange(ne,me)})}render(){const{selectNode:U,selections:ne,dispatch:me,onChange:Ee,cloudFontLocalList:Ue,isMissFont:at}=this.props,{show:Ht}=this.state,xo=U.bold?"bold":"regular",Po=Number(U.bold),nn=U.italic?"italic":"normal";return(0,a.jsx)(ho.A,{collapse:!Ht,title:"\u9009\u4E2D\u9879\u6587\u672C",onChange:this.handleSubChange,className:"select-node-setting",children:(0,a.jsxs)(Uo.M,{children:[(0,a.jsx)(Hs.X,{fontWeight:U.fontWeight,fontFamily:U.fontFamily,onChange:this.handleChange,wbiVersion:3,fontStyle:nn,isMissFont:at,supAttr:"wTree-selectNode",dispatch:me}),(0,a.jsx)(Nn,{textColor:U.textColor,boldType:Po,colorAttr:"textColor",fontSize:U.fontSize,fontStyle:nn,fontWeight:xo,isDisabledFontRadioLine:!1,isRichText:!1,isTextEditing:!1,newOverOld:!0,onChange:Ee,onFontDirectionChange:()=>{},supAttr:"selectNode",textDecoration:U.textDecoration,boldAttr:"boldType",canShowBIUS:!0,fontFamily:U.fontFamily,fontStyleAttr:"italic",isTableCell:!1,selections:ne,hasMissFontHi:at,cloudFontLocalList:Ue,dispatch:me}),(0,a.jsx)(rn,{isWRichText:!1,isDisalbeLineHeight:!0,lineHeight:20,hideLineHeight:!0,dispatch:me,onChange:this.handleChange,fontSize:U.fontSize,fontFamily:U.fontFamily,letterSpacing:U.letterSpacing,isMissFont:at})]})})}}const h2="nav_selected_panel",ig="mp_"+h2;class Ff extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{show:(0,Vo.Yt)(ig,!0,Vo.qW.Boolean)}),(0,r.A)(this,"handleSubChange",()=>{const{show:U}=this.state;(0,Vo.a0)(ig,!U,Vo.qW.Boolean),this.setState({show:!U})})}render(){const{selectNode:U,handleChange:ne}=this.props,{selectNodeBackground:me,isSelectNodeBackgroundVisible:Ee}=U,{show:Ue}=this.state;return(0,a.jsx)(ho.A,{collapse:!Ue,title:I18N.SettingPanel.inspector[h2],onChange:this.handleSubChange,children:(0,a.jsx)("section",{type:"panel-body",className:"navSelectPanelSetting",children:(0,a.jsxs)("div",{className:"panelItem otherMargin",children:[(0,a.jsx)(Ct.A,{attr:"isSelectNodeBackgroundVisible",isChecked:Ee,onChange:ne}),(0,a.jsx)(Qn.R_,{attr:"selectNodeBackground",attrPanel:"selectNode",color:me,onChange:ne}),(0,a.jsx)("label",{className:"rightLabel",children:I18N.SettingPanel.menu_setting.bg_color})]})})})}}class Uf extends p.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleChange",(U,ne)=>{const{onChange:me,dispatch:Ee,selections:Ue}=this.props;me({value:U,attr:ne,dispatch:Ee,supAttr:"selectNode",selections:Ue})})}render(){const{selectNode:U,onChange:ne,selections:me,dispatch:Ee,cloudFontLocalList:Ue,isMissFont:at}=this.props;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Ff,{selectNode:U,dispatch:Ee,handleChange:this.handleChange}),(0,a.jsx)("div",{className:"divider"}),(0,a.jsx)(Of,{selectNode:U,dispatch:Ee,onChange:ne,selections:me,handleChange:this.handleChange,isMissFont:at,cloudFontLocalList:Ue})]})}}const ag={component:Uf,params:{},getter:[L=>{let{selectedTrees:U,rootProject:ne,hasMissFontHi:me,cloudFontLocalList:Ee}=L;const Ue=U.map(Po=>Po.widget),at=sdkStore.getHotItem(Ue[0].cid).hotAttr,{selectNode:Ht}=at,xo=(0,st.QT)(Ht.fontFamily,Ht.fontWeight);return{selectNode:Ht,rootProject:ne,widgetHotAttr:at,hasMissFontHi:me,cloudFontLocalList:Ee,isMissFont:xo}}],setter:{onChange:bi.c}},zf=()=>[jf,[ag,"TreeSettingsPanel"]],Wf=u.Ay.section.withConfig({displayName:"styles__StyledTreeSwitche",componentId:"sc-hz4ggg-0"})(["padding:8px 16px 8px 14px;border-top:1px solid ",";color:",";display:flex;align-items:start;position:relative;flex-direction:column;box-sizing:content-box;.line{height:32px;.left-label{width:70px;}.right-content{width:90px;align-items:center;}.Check-label{margin-left:10px;}}.checkbox-color-container{display:flex;flex-direction:column;> div{display:flex;justify-content:space-between;align-items:center;width:96px;margin-left:22px;height:28px;}}"],L=>L.theme.color_bg_border_01,L=>L.theme.color_text_L2);var rg=e(56146);const Vf=u.Ay.div.withConfig({displayName:"styls__StyledDropMenuSelect",componentId:"sc-1gbqqv2-0"})(["position:relative;display:inline-flex;align-items:center;max-width:100%;min-width:3em;height:28px;font-size:12px;color:",";cursor:pointer;max-width:","px;border-radius:4px;border:1px solid transparent;justify-content:space-between;&.isSelecting,&:hover{width:218px;}span{color:",";margin-left:6px;width:24px;cursor:pointer;",";}.caret{color:",";}&.isSelecting,&:hover{border-color:",";.caret{margin-left:auto;visibility:visible;color:",";}}"],L=>L.theme.color_text_L2,L=>L.$width,L=>L.theme.color_text_L1,Ne.L9,L=>L.theme.color_text_L3,L=>L.theme.color_bg_border_02,L=>L.theme.color_text_L1),Hf=(0,u.Ay)(K.Ay).withConfig({displayName:"styls__StyledMenu",componentId:"sc-1gbqqv2-1"})(["",";& > ul:first-of-type{width:","px;min-width:","px;overflow-y:scroll;> li{width:100%;}}& > ul:nth-of-type(2){min-width:100px;max-width:100px;> li{max-width:100px;min-width:100px;}}.MenuItem{a{padding-left:32px;}&.hasIcon{> a{padding-left:15px;}}}"],Ne.ZJ,L=>L.$width,L=>L.$width);var Kf=e(10923);const Gf=(0,a.jsx)(rg.C,{name:"toolbar/selected",className:"selected-icon"}),Yf=L=>{let{handleChange:U,optionList:ne,displayLabel:me,width:Ee,selectedOption:Ue}=L;const at=(0,p.useRef)(null),{menuStatus:Ht,handleClose:xo,handleToggle:Po}=(0,Kf.x)({ref:at});return(0,a.jsxs)(Vf,{ref:at,className:f()({isSelecting:Ht.isOpenContextMenu}),$width:Ee,onClick:Po,children:[(0,a.jsx)("span",{children:me}),(0,a.jsx)(rg.C,{name:"common/expand@26",className:"caret",size:24}),Ht.isOpenContextMenu&&(0,a.jsx)(Hf,{$width:Ee,position:Ht.position,onClose:xo,children:ne.map((nn,is)=>(0,a.jsx)(K.Dr,{text:nn.text,icon:Ue===nn.value?Gf:null,onClick:()=>U(nn.value)},is))})]})},Zf=()=>[{text:I18N.SettingPanel.tree_fold_symbol.arrow,value:"arrow"},{text:I18N.SettingPanel.tree_fold_symbol.triangle,value:"triangle"},{text:I18N.SettingPanel.tree_fold_symbol.plus,value:"plus"}],Xf=(0,p.memo)(L=>{let{tree:U,onChange:ne,dispatch:me,selections:Ee}=L;const Ue=(nn,is)=>{ne({value:nn,attr:is,supAttr:"tree",dispatch:me,selections:Ee})},at=nn=>{Ue(nn,"isShowNodeIcon")},Ht=nn=>{Ue(nn,"isShowCheckbox")},xo=nn=>{Ue(nn,"isShowFoldSymbol")},Po=nn=>{Ue(nn,"foldSymbol")};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"line",children:(0,a.jsx)("div",{className:"right-content",children:(0,a.jsx)(Ct.A,{label:I18N.SettingPanel.display_icon,isChecked:U.isShowNodeIcon,onChange:at})})}),(0,a.jsx)("div",{className:"line",children:(0,a.jsx)("div",{className:"right-content checkbox-content",children:(0,a.jsx)(Ct.A,{label:I18N.SettingPanel.tree.show_checkbox,isChecked:U.isShowCheckbox,onChange:Ht})})}),U.isShowCheckbox&&(0,a.jsxs)("div",{className:"checkbox-color-container",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{children:I18N.SettingPanel.pointerBg}),(0,a.jsx)(Qn.R_,{attr:"checkboxNoColor",attrPanel:"selectNode",color:U.checkboxNoColor,onChange:Ue})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{children:I18N.SettingPanel.pointerFg}),(0,a.jsx)(Qn.R_,{attr:"checkboxSelectColor",attrPanel:"selectNode",color:U.checkboxSelectColor,onChange:Ue})]})]}),(0,a.jsxs)("div",{className:"line",children:[(0,a.jsx)("div",{className:"right-content",children:(0,a.jsx)(Ct.A,{label:I18N.SettingPanel.tree.fold_symbol,isChecked:U.isShowFoldSymbol,onChange:xo})}),U.isShowFoldSymbol&&(0,a.jsx)(Yf,{optionList:Zf(),displayLabel:I18N.SettingPanel.tree_fold_symbol[U.foldSymbol],handleChange:Po,selectedOption:U.foldSymbol,width:126})]})]})}),Qf=L=>{let{children:U}=L;return(0,a.jsx)(Wf,{children:U})},Jf={component:Xf,params:{},getter:[L=>{let{selectedTrees:U}=L;const ne=U.map(Ee=>Ee.widget);return{tree:(0,Ze.i)(ne,"tree")}}],setter:{onChange:bi.c}},ip=()=>[Qf,[Jf,"TreeSwitchPanel"]],jr={[D.x.WRichText]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[hr(L),R.Hy.Text],[Sr(L),R.Hy.Appearance],[(0,Mr.X)(),R.Hy.Animation]],[D.x.WRect]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[Sr(L),R.Hy.Appearance],[hr(L),R.Hy.Text],[(0,Mr.X)(),R.Hy.Animation]],[D.x.WOval]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[Sr(L),R.Hy.Appearance],[hr(L),R.Hy.Text],[(0,Mr.X)(),R.Hy.Animation]],[D.x.WWrap]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[(0,Mr.X)(),R.Hy.Animation]],[D.x.WGraph]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common]],[D.x.WStar]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[k0(L),R.Hy.PolygonInfo],[Sr(L),R.Hy.Appearance],[hr(L),R.Hy.Text],[(0,Mr.X)(),R.Hy.Animation]],[D.x.WPolygon]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[k0(L),R.Hy.PolygonInfo],[Sr(L),R.Hy.Appearance],[hr(L),R.Hy.Text],[(0,Mr.X)(),R.Hy.Animation]],[D.x.WPlaceholder]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[Sr(L),R.Hy.Appearance],[hr(L),R.Hy.Text],[(0,Mr.X)(),R.Hy.Animation]],[D.x.WMTooltip]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[Sr(L),R.Hy.Appearance],[hr(L),R.Hy.Text],[(0,Mr.X)(),R.Hy.Animation]],[D.x.WButton]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[Sr(L),R.Hy.Appearance],[hr(L),R.Hy.Text],[(0,Mr.X)(),R.Hy.Animation]],[D.x.WButtonSolid]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[Sr(L),R.Hy.Appearance],[hr(L),R.Hy.Text],[(0,Mr.X)(),R.Hy.Animation]],[D.x.WMTextInput]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[Tf(),R.Hy.InputTypePanel],[Tm(),R.Hy.InputPlaceholderPanel],[Sr(L),R.Hy.Appearance],[hr(L),R.Hy.Text]],[D.x.WMTextArea]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[Tm(),R.Hy.InputPlaceholderPanel],[Sr(L),R.Hy.Appearance],[hr(L),R.Hy.Text]],[D.x.WMSelect]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[Sr(L),R.Hy.Appearance],[hr(L),R.Hy.Text]],[D.x.WIosCB]:L=>[[Gs(L),R.Hy.General],[Sr(L),R.Hy.Appearance]],[D.x.WAndroidRadio]:L=>[[Gs(L),R.Hy.General],[Sr(L),R.Hy.Appearance]],[D.x.WAndroidCB]:L=>[[Gs(L),R.Hy.General],[Sr(L),R.Hy.Appearance]],[D.x.WLine]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[Sr(L),R.Hy.Appearance],[hr(L),R.Hy.Text],[(0,Mr.X)(),R.Hy.Animation]],[D.x.WArrow]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[Sr(L),R.Hy.Appearance],[hr(L),R.Hy.Text],[(0,Mr.X)(),R.Hy.Animation]],[D.x.WImage]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[lc(),R.Hy.ImageDrop],[Sr(L),R.Hy.Appearance],[(0,Mr.X)(),R.Hy.Animation]],[D.x.WTable]:(L,U)=>{const{isSelectTableCell:ne}=U;return ne?[[(0,du.h)(),R.Hy.TableCellPanel],[hr(L),R.Hy.Text]]:[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[Gd(),R.Hy.TablePanel]]},[D.x.WQRCode]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[cu(),R.Hy.QRCodePanel],[Sr(L),R.Hy.Appearance],[(0,Mr.X)(),R.Hy.Animation]],[D.x.WWebpage]:L=>[[Gs(L),R.Hy.General],[rr(),R.Hy.WebPagePanel]],[D.x.WAudio]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[Ph(),R.Hy.AudioPanel],[Sr(L),R.Hy.Appearance],[(0,Mr.X)(),R.Hy.Animation]],[D.x.WVideo]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[Ll(),R.Hy.VideoPanel],[Sr(L),R.Hy.Appearance],[(0,Mr.X)(),R.Hy.Animation]],[D.x.WMFileInput]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common]],[D.x.WCarousel]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[$a(),R.Hy.Carousel]],[D.x.WTriangleB]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[Sr(L),R.Hy.Appearance],[(0,Mr.X)(),R.Hy.Animation]],[D.x.WTriangleTL]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[Sr(L),R.Hy.Appearance],[(0,Mr.X)(),R.Hy.Animation]],[D.x.WMapView]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common]],[D.x.WLR]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common]],[D.x.WBasket]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[gf(),R.Hy.TemplatePanel]],[D.x.WIcon]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[Bf(),R.Hy.IconFlipPanel],[Sr(L),R.Hy.Appearance],[(0,Mr.X)(),R.Hy.Animation]],[D.x.WIconButton]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[Sr(L),R.Hy.Appearance],[(0,Mr.X)(),R.Hy.Animation]],[D.x.WDropMenu]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[H2(),R.Hy.DropMenuPanel],[Yi(),R.Hy.OptionDropMenuPanel],[gu(),R.Hy.DropMenuOptionColor],[Sr(L),R.Hy.Appearance],[hr(L),R.Hy.Text],[(0,Mr.X)(),R.Hy.Animation]],[D.x.WNavigationMenu]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[Cl(),R.Hy.NavigationMenuTypePanel],[fu(),R.Hy.NavigationMenuOtherOptionsPanel],[Yi(),R.Hy.OptionNavigationMenuPanel],[u1(),R.Hy.NavigationMenuSettingsPanel],[(0,Mr.X)(),R.Hy.Animation]],[D.x.WNavigationMenuH]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[Cl(),R.Hy.NavigationMenuTypePanel],[Yi(),R.Hy.OptionNavigationMenuHPanel],[u1(),R.Hy.NavigationMenuSettingsPanel],[(0,Mr.X)(),R.Hy.Animation]],[D.x.WNavigationMenuV]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[Cl(),R.Hy.NavigationMenuTypePanel],[Yi(),R.Hy.OptionNavigationMenuVPanel],[u1(),R.Hy.NavigationMenuSettingsPanel],[(0,Mr.X)(),R.Hy.Animation]],[D.x.WCollapse]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[O2(),R.Hy.CollapseSwitchOptionsPanel],[Yi(),R.Hy.OptionCollapsePanel],[Sr(L),R.Hy.Appearance],[rh(),R.Hy.CollapseSettingsPanel],[(0,Mr.X)(),R.Hy.Animation]],[D.x.WSegmentedControl]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[Yi(),R.Hy.OptionSegmentedControlPanel],[Sr(L),R.Hy.Appearance],[zu(),R.Hy.SegmentedControlPanel],[(0,Mr.X)(),R.Hy.Animation]],[D.x.WTabs]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[Yi(),R.Hy.OptionTabsPanel],[xu(),R.Hy.TabsPanel],[(0,Mr.X)(),R.Hy.Animation]],[D.x.WPaginationMobile]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[Sr(L),R.Hy.Appearance],[F0("paginationMobile"),R.Hy.MaxPageNumber],[tm(),R.Hy.PaginationMobilePanel],[(0,Mr.X)(),R.Hy.Animation]],[D.x.WPaginationWeb]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[Sr(L),R.Hy.Appearance],[F0("paginationWeb"),R.Hy.MaxPageNumber],[om(),R.Hy.PaginationWebPanel],[(0,Mr.X)(),R.Hy.Animation]],[D.x.WDigitalStepper]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[Zd(),R.Hy.DigitalStepperPanel],[Sr(L),R.Hy.Appearance],[(0,Mr.X)(),R.Hy.Animation]],[D.x.WSlider]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[cm(),R.Hy.SliderPanel],[(0,Mr.X)(),R.Hy.Animation]],[D.x.WMobileTabBars]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[Yu(),R.Hy.MobileTabBarsSwitchOptionsPanel],[Yi(),R.Hy.OptionTabsPanel],[Sr(L),R.Hy.Appearance],[hr(L),R.Hy.Text],[he(),R.Hy.MobileTabBarsPanel],[(0,Mr.X)(),R.Hy.Animation]],[D.x.WAndroidSwitch]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[yu(),R.Hy.SwitchOptionsPanel],[x1(),R.Hy.SwitchPanel],[(0,Mr.X)(),R.Hy.Animation]],[D.x.WIOSSwitch]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[yu(),R.Hy.SwitchOptionsPanel],[x1(),R.Hy.SwitchPanel],[(0,Mr.X)(),R.Hy.Animation]],[D.x.WSelectionControl]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[ot(),R.Hy.SelectionControlTypeSettingsPanel],[Ro(),R.Hy.SelectionControlAttrSettingsPanel],[Yi(),R.Hy.OptionTabsPanel],[zs(),R.Hy.SelectionControlColorSettingsPanel],[(0,Mr.X)(),R.Hy.Animation]],[D.x.WChart]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[Oh(),R.Hy.ChartSettingsPanel],[(0,Mr.X)(),R.Hy.Animation]],[D.x.Canvas]:L=>[[Gs(L),R.Hy.General],[o0(),R.Hy.CanvasColorPanel],[ni(),R.Hy.LayoutGrid],[$o(),R.Hy.StickyArea]],[D.x.CanvasAsOverlay]:L=>[[Gs(L),R.Hy.General],[Sr(L),R.Hy.Appearance]],[D.x.WElbow]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[hr(L),R.Hy.Text],[Sr(L),R.Hy.Appearance]],[D.x.WUnifiedKeyboard]:L=>[[Gs(L),R.Hy.General]],[D.x.WIphoneSB]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[Sr(L),R.Hy.Appearance]],[D.x.WIphoneXSB]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[Sr(L),R.Hy.Appearance]],[D.x.WAndroidSB]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[Sr(L),R.Hy.Appearance]],[D.x.WTabItem]:L=>[[Gs(L),R.Hy.General]],[D.x.WSearchBar]:L=>[[Gs(L),R.Hy.General]],[D.x.WVector]:(L,U)=>{let{vectorEditor:ne}=U;return ne?[[Vs(),R.Hy.General],[qm(),R.Hy.Common]]:[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[Sr(L),R.Hy.Appearance],[hr(L),R.Hy.Text],[(0,Mr.X)(),R.Hy.Animation]]},[D.x.WTriangle]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[Sr(L),R.Hy.Appearance],[hr(L),R.Hy.Text],[(0,Mr.X)(),R.Hy.Animation]],[D.x.WSwimlane]:(L,U)=>{const{swimlaneIsShallowEditing:ne}=U;return ne?[[If(),R.Hy.Common]]:[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common]]},[D.x.wFlowClosed]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[Sr(L),R.Hy.Appearance],[hr(L),R.Hy.Text],[(0,Mr.X)(),R.Hy.Animation]],[D.x.WFlowOpened]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[Sr(L),R.Hy.Appearance],[hr(L),R.Hy.Text],[(0,Mr.X)(),R.Hy.Animation]],[D.x.WTree]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common],[ip(),R.Hy.TreeSwitchPanel],[Yi(),R.Hy.OptionNavigationMenuVPanel],[Sr(L),R.Hy.Appearance],[hr(L),R.Hy.Text],[zf(),R.Hy.NavigationMenuSettingsPanel],[(0,Mr.X)(),R.Hy.Animation]],[R.m9]:L=>[[Gs(L),R.Hy.General],[Qt(L),R.Hy.Common]]},Or=L=>{let{selectedTrees:U,...ne}=L;const me=U[0].widget,Ee=(jr[(0,_.o9)(me)]||jr[R.m9])(U,{...ne});if(U.length===1)return Ee;{const Ue=(0,bi.k)({selectedTrees:U,settingPanelMap:jr,otherProps:ne});return hh({selectedTrees:U,baseSettingPanel:Ee,intersection:Ue})}},hh=L=>{let{selectedTrees:U,baseSettingPanel:ne,intersection:me}=L;const Ee=ne.filter(Ue=>{let[at,Ht]=Ue;return me.includes(Ht)});if(U.findIndex(Ue=>Ue.type===D.x.WImage)!==-1&&!me.includes(R.Hy.ImageDrop)){const Ue=Ee.findIndex(Ht=>{let[xo,Po]=Ht;return Po===R.Hy.Animation}),at=[lc(),R.Hy.ImageDrop];Ee.splice(Ue!==-1?Ue:Ee.length,0,at)}if(U.findIndex(Ue=>Fs.cX.includes(Ue.type))!==-1&&!me.includes(R.Hy.Text)){const Ue=Ee.findIndex(Po=>{let[nn,is]=Po;return is===R.Hy.Common}),at=Ee.findIndex(Po=>{let[nn,is]=Po;return is===R.Hy.General}),Ht=Ue!==-1?Ue:at!==-1?at:0,xo=[hr(U),R.Hy.Text];Ee.splice(Ht+1,0,xo)}if(U.findIndex(Ue=>ul.H3.includes((0,_.o9)(Ue.widget)))!==-1&&!me.includes(R.Hy.Appearance)){const Ue=Ee.findIndex(nn=>{let[is,Bn]=nn;return Bn===R.Hy.Common}),at=Ee.findIndex(nn=>{let[is,Bn]=nn;return Bn===R.Hy.General}),Ht=Ee.findIndex(nn=>{let[is,Bn]=nn;return Bn===R.Hy.Text}),xo=Ht!==-1?Ht:Ue!==-1?Ue:at!==-1?at:0,Po=[Sr(U),R.Hy.Appearance];Ee.splice(xo+1,0,Po)}if(U.findIndex(Ue=>Ue.type===D.x.WTable)!==-1&&!me.includes(R.Hy.TablePanel)){const Ue=[Gd(),R.Hy.TablePanel];Ee.splice(Ee.length,0,Ue)}return Ee};var Sy=e(33386),lg=e(15400);const Ay=u.Ay.div.withConfig({displayName:"styles__StyledWidgetOperationBox",componentId:"sc-2vi9jp-0"})([".widget-operation-icon-box{width:60px;height:28px;border:1px solid ",";&.disabled .svg-icon{color:",";}.svg-icon{width:24px;height:24px;color:",";}}.widget-operation-text{text-align:center;font-size:12px;line-height:16px;margin-top:6px;color:",";}"],L=>L.theme.color_bg_border_02,L=>L.theme.color_text_disabled01,L=>L.theme.color_text_L1,L=>L.theme.color_text_L1),cg=u.Ay.div.withConfig({displayName:"styles__StyledWidgetOperation",componentId:"sc-2vi9jp-1"})(["height:82px;display:flex;align-items:center;border-bottom:1px solid ",";padding:0 16px;justify-content:space-between;"],L=>L.theme.color_bg_border_01),t1=L=>{const{canMove:U,canGroup:ne,canUngroup:me,isWidgetOperationLayoutModalIsOpen:Ee,dispatch:Ue}=L;(0,p.useEffect)(()=>()=>{var Po;(Po=MB)==null||(Po=Po.commonGuideHelper)==null||Po.closeAndMarkGuideAsRead(Li.c.GUIDE_COMMON_V9_OPERATIONS_GUIDE)},[]);const at=()=>{Ue({type:"modal:update:state",payload:{widgetOperationLayoutModal:{isOpen:!Ee}}})},Ht=()=>{Ue({type:"entry:group:items"}),(0,y.$n)({operationType:y.VW.Combination})},xo=()=>{Ue({type:"entry:ungroup:items"}),(0,y.$n)({operationType:y.VW.BreakUp})};return(0,a.jsxs)(cg,{className:""+Li.c.GUIDE_COMMON_V9_OPERATIONS_GUIDE,children:[(0,a.jsx)(Y1,{name:I18N.ToolBar.layout,svgIconName:"setting_panel/widget_operation/layer",disabled:!U,active:Ee,toolTipDistance:8,onClick:at}),(0,a.jsx)(Y1,{name:I18N.ToolBar.group,svgIconName:"setting_panel/widget_operation/group",disabled:!ne,toolTipDistance:8,onClick:Ht}),(0,a.jsx)(Y1,{name:I18N.ToolBar.ungroup,svgIconName:"setting_panel/widget_operation/ungroup",disabled:!me,toolTipDistance:8,onClick:xo})]})},Y1=L=>{const{name:U,...ne}=L;return(0,a.jsxs)(Ay,{children:[(0,a.jsx)(W.A,{className:"widget-operation-icon-box",...ne}),(0,a.jsx)("div",{className:"widget-operation-text",children:U})]})},$f=t1,Z1=(0,m.Mz)([lg.X.query.getIsShallowEditing,A.p$,Ts.tP],(L,U,ne)=>{let me=!1,Ee=!1,Ue=!1;return U.length>0&&(me=(0,_.sQ)(U)&&!L,Ee=(0,_.kE)(U)&&!L,Ue=(0,_.P6)(U)&&!L),{canMove:me,canGroup:Ee,canUngroup:Ue,isWidgetOperationLayoutModalIsOpen:ne}}),qf=(0,o.Ng)(L=>Z1(L))($f),e4=(0,p.memo)(L=>{var U;const{selectedTrees:ne,selections:me,isSelectTableCell:Ee,swimlaneIsShallowEditing:Ue,layoutV9:at,dispatch:Ht,...xo}=L,Po=p.useRef(null),nn=(0,p.useMemo)(()=>Or({selections:me,selectedTrees:ne,isSelectTableCell:Ee,vectorEditor:xo.vectorEditor,swimlaneIsShallowEditing:Ue}),[Ee,xo.vectorEditor,me,Ue,(U=ne[0])==null?void 0:U.type]);return ne.length?(0,a.jsxs)(a.Fragment,{children:[!(Ee||Ue)&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(de,{})}),!(Ee||Ue)&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(qf,{})}),(0,a.jsxs)(se,{className:"widget-settings",children:[(0,a.jsx)("div",{className:"scroll-container",ref:Po,children:(0,a.jsx)("div",{className:"scroll-content",children:nn.map(is=>{let[[Bn,...$s],qs]=is;return(0,a.jsx)(Bn,{type:qs,children:$s.map((Mi,Xi)=>{const[{component:na,params:Xa,getter:Ga,setter:xr},Br]=Mi,[Qa,vr]=Ga;try{const al=Qa({selections:me,selectedTrees:ne,...xo});let mr={};return vr&&(mr=vr({selections:me,selectedTrees:ne,...xo})),(0,a.jsx)(na,{dispatch:Ht,selections:me,...xr,...Object.assign({},Xa,al,mr)},Br)}catch(al){return Ht({type:"entry:update:selection:select:items",payload:{type:"selection:clear"}}),console.log("[fatal]: widget settings error",al,"type:",Br,"data:",Mi,"selections:",me,"otherProps:",xo),(0,Sy.p)("[fatal]: widget settings",al),null}})},qs)})})}),(0,a.jsx)(J.yP,{type:"vertical",containerRef:Po,isAutoHideBar:!0})]}),(0,a.jsx)(ve.A,{})]}):null}),dg=(0,m.Mz)([A.x$,A.p$,g.PL,g.Mj,g.W4,k.zX,C.tR,T.nx,l.c,g.HW,g.wA,T.jI,T.bt,T.lY,lg.X.query.getIsShallowEditing,lg.X.query.getSelectedCellsInfo,Us.MZ,mn.y.query.getMissFontHiKeySet,mn.y.query.getCloudFontLocalList],(L,U,ne,me,Ee,Ue,at,Ht,xo,Po,nn,is,Bn,$s,qs,Mi,Xi,na,Xa)=>{let{isExperience:Ga,isLoggedExperience:xr,isDesign:Br}=Ee;const Qa=U.length>0,vr=Qa?sdkStore.getHotItem(U[0]):null,al=Ue&&(vr==null?void 0:vr.hotAttr.type)===D.x.WTable,mr=Qa&&xo&&(xo==null?void 0:xo.cid)===(vr==null?void 0:vr.key),dd=U.find(Ql=>na.has(Ql))||!1;return{selectedTrees:L,selections:U,isSelectTableCell:al,rootProject:ne,isDesign:Br,isExperience:Ga,isLoggedExperience:xr,selectionTableCell:Ue,isTextEditing:mr,selectionAttrs:Ht,richTextEditorState:me,currentUser:Po,currentOrg:nn,imageProps:{currentImageOperateType:at},editingPanelCid:is,editingPanelRefPage:Bn,vectorEditor:$s,swimlaneIsShallowEditing:qs,swimlaneSelectedCellsInfo:Mi,layoutV9:Xi,hasMissFontHi:dd,cloudFontLocalList:Xa}}),t4=(0,o.Ng)(L=>dg(L))(e4)},29516:(Et,ke,e)=>{"use strict";e.d(ke,{Hy:()=>o,m9:()=>m,n1:()=>g});let o=function(l){return l[l.General=0]="General",l[l.Common=1]="Common",l[l.Text=2]="Text",l[l.Appearance=3]="Appearance",l[l.PolygonInfo=4]="PolygonInfo",l[l.ImageDrop=5]="ImageDrop",l[l.Carousel=6]="Carousel",l[l.Canvas=7]="Canvas",l[l.LayoutGrid=8]="LayoutGrid",l[l.StickyArea=9]="StickyArea",l[l.WebPagePanel=10]="WebPagePanel",l[l.VideoPanel=11]="VideoPanel",l[l.AudioPanel=12]="AudioPanel",l[l.QRCodePanel=13]="QRCodePanel",l[l.TablePanel=14]="TablePanel",l[l.TableCellPanel=15]="TableCellPanel",l[l.DropMenuPanel=16]="DropMenuPanel",l[l.OptionDropMenuPanel=17]="OptionDropMenuPanel",l[l.OptionNavigationMenuPanel=18]="OptionNavigationMenuPanel",l[l.OptionNavigationMenuHPanel=19]="OptionNavigationMenuHPanel",l[l.OptionNavigationMenuVPanel=20]="OptionNavigationMenuVPanel",l[l.OptionCollapsePanel=21]="OptionCollapsePanel",l[l.OptionSegmentedControlPanel=22]="OptionSegmentedControlPanel",l[l.OptionTabsPanel=23]="OptionTabsPanel",l[l.NavigationMenuTypePanel=24]="NavigationMenuTypePanel",l[l.NavigationMenuOtherOptionsPanel=25]="NavigationMenuOtherOptionsPanel",l[l.NavigationMenuSettingsPanel=26]="NavigationMenuSettingsPanel",l[l.CollapseSettingsPanel=27]="CollapseSettingsPanel",l[l.CollapseSwitchOptionsPanel=28]="CollapseSwitchOptionsPanel",l[l.SegmentedControlPanel=29]="SegmentedControlPanel",l[l.TabsPanel=30]="TabsPanel",l[l.PaginationMobilePanel=31]="PaginationMobilePanel",l[l.PaginationWebPanel=32]="PaginationWebPanel",l[l.DigitalStepperPanel=33]="DigitalStepperPanel",l[l.SliderPanel=34]="SliderPanel",l[l.SwitchOptionsPanel=35]="SwitchOptionsPanel",l[l.SwitchPanel=36]="SwitchPanel",l[l.MobileTabBarsSwitchOptionsPanel=37]="MobileTabBarsSwitchOptionsPanel",l[l.MobileTabBarsPanel=38]="MobileTabBarsPanel",l[l.SelectionControlTypeSettingsPanel=39]="SelectionControlTypeSettingsPanel",l[l.SelectionControlAttrSettingsPanel=40]="SelectionControlAttrSettingsPanel",l[l.SelectionControlColorSettingsPanel=41]="SelectionControlColorSettingsPanel",l[l.ChartSettingsPanel=42]="ChartSettingsPanel",l[l.TemplatePanel=43]="TemplatePanel",l[l.Animation=44]="Animation",l[l.CanvasColorPanel=45]="CanvasColorPanel",l[l.InputTypePanel=46]="InputTypePanel",l[l.InputPlaceholderPanel=47]="InputPlaceholderPanel",l[l.IconFlipPanel=48]="IconFlipPanel",l[l.DropMenuOptionColor=49]="DropMenuOptionColor",l[l.MaxPageNumber=50]="MaxPageNumber",l[l.TreeSwitchPanel=51]="TreeSwitchPanel",l}({});const m="default",g="multiple"},15082:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>f});var o=e(74059),m=e(51044),g=e(6304),l=e(86634),C=e.n(l),T=e(89340),A=e(59844),k=e(11777),p=e(9376),r=e(7290),x=e(57464);class f extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleChange",b=>h=>{b||this.props.disabled||this.props.handleChange(h)}),(0,o.A)(this,"handleGetContent",(b,h)=>{const E=A.lk[h+"_mac"],N=A.lk[h+"_win"];return(0,k.u)({text:b,key:(0,p.cX)()?E:N})}),(0,o.A)(this,"handleRenderIcon",b=>(0,x.jsx)(r.C,{name:b})),(0,o.A)(this,"handleGetTipsClassName",b=>C()("arrangeTips",(0,p.cX)()?"mac":"windows",b))}render(){const{options:b,value:h,disabled:E,className:N,isToolTip:z}=this.props;return(0,x.jsx)(g.N,{className:C()("radio-line",N,{disabled:E}),children:z?b.map(S=>{let{title:_,keyName:y,icon:a,value:$,disabled:ce}=S;return(0,x.jsx)(T.Q,{icon:this.handleRenderIcon(a),content:this.handleGetContent(_,y),tipsClassName:this.handleGetTipsClassName(y),dataValue:$,onClick:this.handleChange(ce),disabled:ce,className:C()("radio-option","check-line",{active:!ce&&Array.isArray(h)?h.includes($):h===$},{disabled:ce})},$)}):b.map(S=>{let{label:_,value:y,disabled:a}=S;return(0,x.jsx)("li",{className:C()("radio-option","check-line",{active:!a&&Array.isArray(h)?h.includes(y):h===y},{disabled:a}),"data-value":y,onClick:this.handleChange(a),children:_},y)})})}}(0,o.A)(f,"defaultProps",{disabledRadioLine:[]})},72175:(Et,ke,e)=>{"use strict";e.d(ke,{k:()=>E,A:()=>h});var o=e(74059),m=e(86634),g=e.n(m),l=e(51044),C=e(19418),T=e(88223),A=e(73773),k=e(21676);const p=k.Ay.textarea.withConfig({displayName:"styles__StyledContentBox",componentId:"sc-1r0co2h-0"})(["&.batch-set-content-area{position:relative;width:100%;height:50px;padding:6px;border-radius:4px;outline:none;color:",";background-color:",";border:1px solid ",";overflow-y:auto;line-height:20px;user-select:text;resize:none;white-space:pre-line;transition:all 0.2s ease-out;cursor:auto;vertical-align:middle;&:hover{border-color:",";}&:focus{border-color:",";}}&::-webkit-scrollbar{width:4px;}"],N=>N.theme.color_text_L1,N=>N.theme.color_bg_white,N=>N.theme.color_bg_border_02,N=>N.theme.color_proto,N=>N.theme.color_proto),r=k.Ay.div.withConfig({displayName:"styles__StyledContainer",componentId:"sc-1r0co2h-1"})(["position:relative;.paste-icon{position:absolute;top:6px;right:6px;color:",";}"],N=>N.theme.color_text_L1);var x=e(19722),f=e(14672),u=e(89535),b=e(57464);class h extends l.PureComponent{constructor(z){super(z),(0,o.A)(this,"$contentBox",null),(0,o.A)(this,"handleFocus",()=>{const{disableModifyContentBox:S}=this.props;MB.f.editing=!0,S&&(this.$contentBox.blur(),MB.action("font:miss:modal:open"))}),(0,o.A)(this,"handleBlur",S=>{const{onBlur:_}=this.props;let y=S.target.value;this.props.canMultiline||(y=y.replace(/\n|\r|\r\n/gm," "));const a=y.split(/\n/);typeof _=="function"&&a&&_(a),MB.f.editing=!1}),(0,o.A)(this,"handleKeyDown",S=>{S.key===A._.Enter&&!this.props.canMultiline&&S.preventDefault()}),(0,o.A)(this,"handleChange",S=>{let _=S.target.value;this.props.canMultiline||(_=_.replace(/\n|\r|\r\n/gm," "));const y=_.split(/\n/);this.props.onChange(y)}),(0,o.A)(this,"handlePaste",S=>{(0,T.kI)(S)}),this.setRef=S=>{this.$contentBox=S}}componentWillUnmount(){MB.f.editing=!1}render(){const{content:z,placeholder:S}=this.props;return(0,b.jsx)(p,{ref:this.setRef,placeholder:S,className:g()("batch-set-content-area"),value:z,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onPaste:this.handlePaste})}}class E extends l.PureComponent{constructor(z){super(z),(0,o.A)(this,"$contentBox",null),(0,o.A)(this,"handleFocus",S=>{S.target.select(),MB.f.editing=!0}),(0,o.A)(this,"washText",S=>S.replace(/\n|\r|\r\n/gm," ")),(0,o.A)(this,"handleBlur",S=>{const{onBlur:_,onChange:y}=this.props;let a=S.target.value;this.props.canMultiline||(a=this.washText(a));const $=a.split(/\n/);typeof _=="function"&&_($),y($),MB.f.editing=!1}),(0,o.A)(this,"handleKeyDown",S=>{setTimeout(()=>{this.$contentBox.value.length===0?this.state.isShowPasteIcon||this.setState({isShowPasteIcon:!0}):this.state.isShowPasteIcon&&this.setState({isShowPasteIcon:!1})},4),S.key===A._.Enter&&!this.props.canMultiline&&S.preventDefault()}),(0,o.A)(this,"handlePaste",S=>{(0,T.kI)(S)}),(0,o.A)(this,"handleClickOutSide",S=>{this.$contentBox&&this.$contentBox.contains(S.target)||this.$contentBox.blur()}),(0,o.A)(this,"handleIconPaste",async()=>{const{onChange:S,onBlur:_}=this.props,y=await(0,f.Oi)({isShowPrompt:!0}),a=this.washText(y||"");if(!this.$contentBox)return;this.$contentBox.value=a;const $=a.split(/\n/);S($),this.setState({isShowPasteIcon:a.length===0}),_($)}),this.setRef=S=>{this.$contentBox=S},this.state={isShowPasteIcon:z.content.length===0}}componentDidUpdate(z){var S,_;((S=z.ita)==null?void 0:S.key)!==((_=this.props.ita)==null?void 0:_.key)&&this.setState({isShowPasteIcon:this.props.content.length===0})}render(){const{content:z,placeholder:S,ita:_}=this.props;return(0,b.jsxs)(r,{children:[(0,b.jsx)(p,{ref:this.setRef,placeholder:S,className:"batch-set-content-area",defaultValue:z,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onPaste:this.handlePaste,maxLength:"1000"},_==null?void 0:_.key),this.state.isShowPasteIcon&&(0,b.jsx)(u.A,{content:I18N.Interaction.paste_please,children:(0,b.jsx)(x.A,{name:"interaction/hyperlink_paste",className:"paste-icon",onClick:this.handleIconPaste})}),(0,b.jsx)(C.A,{target:document,onMouseDown:(0,C.t)(this.handleClickOutSide,{capture:!0})})]})}}},36603:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>E});var o=e(51044),m=e(86634),g=e.n(m),l=e(7290),C=e(76364),T=e(43859),A=e(21676);const k=A.Ay.div.withConfig({displayName:"style__StyledSelectNewSize",componentId:"sc-1vl390s-0"})(["label{width:100%;.changeNewDeviceSize{max-width:114px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;text-align:left;color:",";padding:5px 0;line-height:16px;}&.multiple{.changeNewDeviceSize,.arrow-icon{color:",";}}button{display:flex;align-items:center;border:1px solid transparent;border-radius:4px;padding-left:6px;&:hover{border:1px solid ",";.arrow-icon{color:",";}}.arrow-icon{width:24px;height:24px;color:",";&.is-expand{transform:rotateX(180deg);}}}}"],N=>N.theme.color_text_L1,N=>N.theme.color_text_L2,N=>N.theme.color_bg_border_02,N=>N.theme.color_text_L1,N=>N.theme.color_text_L3),p=(0,A.DU)(["#IBOT_DROPDOWN_MENU_ROOT{.screen-info-menu{border-radius:8px;overflow:hidden;&.x-center.is-open{transition:unset;}.content{padding:0;background:",";color:",";overflow:hidden;}}}"],N=>N.theme.color_bg_white,N=>N.theme.color_text_L1),r=A.Ay.ul.withConfig({displayName:"style__StyledSizeSelectMenu",componentId:"sc-1vl390s-1"})(["list-style:none;font-size:12px;padding:8px;width:296px;overflow-y:overlay;border-radius:8px;&::-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:transparent;}li{height:28px;padding:0 16px 0 32px;cursor:pointer;display:flex;align-items:center;justify-content:space-between;position:relative;span{color:",";}.checked{width:16px;height:16px;position:absolute;left:8px;}&:hover{background:",";}}.line{background:",";width:100%;height:1px;margin:8px 0;}li{border-radius:4px;}"],N=>N.theme.color_text_L3,N=>N.theme.color_btn_secondary_hover,N=>N.theme.color_bg_border_01);var x=e(57464);function f(N){const{model:z,renderList:S,isPageSize:_,onSelect:y,onToggle:a,contentHeight:$}=N,ce=o.useRef(null),de=o.useRef(null),fe=(0,o.useCallback)(se=>{const{key:J}=se.target.dataset,ve={...T.v2[J],key:J};y&&y(ve),a&&a(!1)},[y,a]);return(0,o.useLayoutEffect)(()=>{function se(){if(!(ce!=null&&ce.current)||!(de!=null&&de.current))return;const{top:J,height:ve}=ce.current.getBoundingClientRect(),{top:D}=de.current.getBoundingClientRect(),R=J+ve/2;D>R&&(ce.current.scrollTop=D-R)}requestAnimationFrame(se)},[]),(0,x.jsx)(r,{ref:ce,style:{maxHeight:$},children:S.map((se,J)=>{let{device:ve,modelList:D}=se;return(0,x.jsxs)(o.Fragment,{children:[D.map(R=>{let{width:V,height:O,key:Ce}=R;const ae=z===(Ce==="google_nexus"?"Android":Ce);return(0,x.jsxs)("li",{ref:ae?de:null,className:g()({active:ae}),"data-key":Ce,onClick:fe,children:[ae&&(0,x.jsx)(l.C,{name:"common/checked",className:"checked"}),Ce==="google_nexus"?"Android":(0,T.d0)({model:Ce,device:ve,isPageSize:_}),!(Ce==="customize"||Ce==="none")&&(0,x.jsxs)("span",{className:"sizeInfo","data-key":Ce,children:[V," \xD7 ",O]})]},Ce)}),J!==S.length-1&&(0,x.jsx)("div",{className:"line"})]},ve)})})}const u=(0,o.memo)(f),b=()=>{const N=document.querySelector(".changeNewDeviceSize");if(!N)return{};const{top:z}=N.getBoundingClientRect(),_=document.body.clientHeight-62-z;return{menuBaseStyle:{width:152},contentHeight:_}};function h(N){const{model:z,isPageSize:S}=N,[_,y]=(0,o.useState)(!1),{menuBaseStyle:a,contentHeight:$}=b(),ce=(0,T.d0)({model:z,isPageSize:S}),de=ce===I18N.SettingPanel.multiple_value,fe=(0,o.useCallback)(se=>y(se),[]);return(0,x.jsxs)(k,{className:"device-size-select",children:[(0,x.jsx)(p,{}),(0,x.jsx)(C.A,{menuY:"bottom",isOpen:_,className:g()("screen-info-menu-opener",{multiple:de}),onToggle:fe,shouldPreventScrollingPropagation:!1,menuBaseStyle:a,opener:(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("span",{className:"changeNewDeviceSize",children:ce}),(0,x.jsx)(l.C,{className:g()("arrow-icon",{"is-expand":_}),name:"common/expand@26"})]}),menuClassName:"screen-info-menu",menu:(0,x.jsx)(u,{...N,contentHeight:$,onToggle:fe})})]})}const E=(0,o.memo)(h)},41197:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>x});var o=e(74059),m=e(51044),g=e(7290),l=e(55624),C=e(8681),T=e(21676);const A=T.Ay.div.withConfig({displayName:"styles__StyledSubPanel",componentId:"sc-1srbvqh-0"})(["width:240px;border-top:1px solid ",";padding:8px 0;& > header{height:32px;font-weight:600;padding-left:16px;padding-right:10px;display:flex;align-items:center;justify-content:space-between;transition:all 0.2s ease-in-out;cursor:pointer;.title{color:",";font-weight:600;}.customize-title{display:flex;flex:1;& > a{transform:scaleY(-1);}}.reset-btn{margin-left:auto;margin-right:10px;color:#8d9ea7;}.angle-icon-wrap{display:flex;width:24px;height:24px;align-items:center;justify-content:center;border-radius:4px;&:hover{background-color:",";}&:active{background-color:",";}.icon{width:24px;height:24px;text-align:center;color:",";transform:rotate(180deg);transition:transform 0.2s ease-in-out;}}}&.md-foldable > header .icon{transform:rotate(0);}"],f=>f.theme.color_bg_border_01,f=>f.theme.color_text_L1,f=>f.theme.color_btn_secondary_hover,f=>f.theme.color_btn_secondary_active,f=>f.theme.color_text_L1);var k=e(86634),p=e.n(k),r=e(57464);class x extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleCollapse",()=>{const{onChange:u}=this.props;u&&u()}),(0,o.A)(this,"handleReset",u=>{u.stopPropagation(),this.props.onReset()})}render(){const{title:u,children:b,collapse:h,canReset:E,className:N,renderTips:z,headerChildren:S,rightHeader:_,style:y}=this.props,a=typeof h=="boolean";return(0,r.jsxs)(A,{className:p()("sub-panel",N,{"md-foldable":h}),style:y,children:[(0,r.jsxs)("header",{onClick:a?this.handleCollapse:null,style:{cursor:"default"},children:[(0,r.jsx)("p",{className:"title",children:u}),S&&S,E&&(0,r.jsx)("span",{className:"reset-btn",onClick:this.handleReset,children:I18N.SettingPanel.inspector.reset}),a&&(0,r.jsx)("div",{className:"angle-icon-wrap",children:(0,r.jsx)(g.C,{name:"common/expand@20"})}),z&&(0,r.jsx)("div",{className:"title customize-title",children:(0,r.jsx)(C.A,{renderContent:z})}),_&&_]}),a?(0,r.jsx)(l.A,{collapse:h,children:b}):b]})}}},89340:(Et,ke,e)=>{"use strict";e.d(ke,{Q:()=>r});var o=e(51044),m=e(11777),g=e(21676);const l=g.Ay.a.withConfig({displayName:"styles__StyledToolTipsIcon",componentId:"sc-aea6k3-0"})(["display:flex;align-items:center;width:24px;height:24px;justify-content:center;align-content:center;transition:background-color 0.2s ease-out 0s;position:relative;border-radius:4px;.svg-icon{width:24px;height:24px;color:",";}&[disabled]{cursor:not-allowed;.svg-icon{color:",";}}&:hover:not([disabled]){background:",";}&:not([disabled]):active{background:",";}&.widthSettings{width:24px;height:24px;display:flex;align-items:center;justify-content:center;color:",";border-radius:4px;&:hover{background:",";}&:active{background:",";}.options-icon{width:24px;height:24px;}}&.aspectRatioButton{position:relative;width:24px;height:24px;border-radius:4px;border:none;display:flex;align-items:center;justify-content:center;.svg-icon{width:24px;height:24px;color:",";}&.locked{background:",";}&:not(.locked):hover{background:",";}&.disabled.unLocked,&.disabled.locked{cursor:not-allowed;background:transparent;.svg-icon{color:",";}&:hover{background:transparent;}}}&.fontSettings{width:24px;height:24px;display:flex;align-items:center;justify-content:center;color:",";&:hover{background:",";}&:active{background:",";}.options-icon{width:24px;height:24px;}}"],x=>x.theme.color_text_L1,x=>x.theme.color_text_disabled01,x=>x.theme.color_btn_secondary_hover,x=>x.theme.color_btn_secondary_active,x=>x.theme.color_text_L1,x=>x.theme.color_btn_secondary_hover,x=>x.theme.color_btn_secondary_active,x=>x.theme.color_text_L1,x=>x.theme.color_btn_secondary_active,x=>x.theme.color_btn_secondary_hover,x=>x.theme.color_text_disabled01,x=>x.theme.color_text_L1,x=>x.theme.color_btn_secondary_active,x=>x.theme.color_btn_secondary_active),C=g.Ay.div.withConfig({displayName:"styles__StyledTips",componentId:"sc-aea6k3-1"})(["display:flex;flex-shrink:0;justify-content:center;align-items:center;flex-direction:column;position:absolute;background-color:",";color:",";width:auto;text-align:center;text-decoration:none;word-break:break-all;max-width:200px;padding:4px 8px;box-sizing:border-box;z-index:1101;border-radius:4px;line-height:14px;font-size:12px;&.arrangeTips.align_bottom,&.arrangeTips.windows.align_center_h{right:0;left:auto !important;transform:translateX(0) !important;}"],x=>x.theme.color_tips_black,x=>x.theme.color_text_btn);var T=e(86634),A=e.n(T),k=e(57464);const p=x=>{let{pointerEvents:f,icon:u,content:b,className:h="",tipsClassName:E="",disabled:N,onClick:z,dataValue:S,direction:_="down"}=x;const y=fe=>{z&&z(fe)},a=()=>null,$=A()(h,{disabled:N}),de={down:"bottom",up:"top",left:"left",right:"right"}[_];return(0,k.jsx)(m.A,{pointerEvents:f,tipClassName:E,content:b,direction:de,children:(0,k.jsx)(l,{"data-value":S,className:$,disabled:N,onClick:N?a:y,children:u})})},r=x=>(0,k.jsx)(m.A,{component:(0,k.jsx)(p,{...x})})},5241:(Et,ke,e)=>{"use strict";e.d(ke,{P:()=>p});var o=e(51044),m=e(11777),g=e(7290),l=e(9376),C=e(21676);const T=C.Ay.div.withConfig({displayName:"styles__StyledIconTips",componentId:"sc-g9m8f2-0"})(["display:flex;align-items:center;justify-content:center;flex-direction:row;.shortfont{color:#c8cdd0;margin-left:10px;white-space:nowrap;kbd{display:inline-block;text-align:center;min-width:12px;}}"]);var A=e(57464);const k=r=>{const{iconClassName:x,name:f,onClick:u,content:b,direction:h="down",hotKeyText:E,iconProps:N}=r,z=(0,o.useRef)(null),S=ce=>{u&&u(ce)},y={down:"bottom",up:"top",left:"left",right:"right"}[h],a=E&&E.length>0&&((0,l.cX)()?E.filter(ce=>ce!=="+"):E),$=()=>(0,A.jsx)(A.Fragment,{children:(0,A.jsxs)(T,{children:[b,a&&a.length>0&&(0,A.jsx)("div",{className:"shortfont",children:a.map((ce,de)=>(0,A.jsx)("kbd",{children:ce},de))})]})});return(0,A.jsx)(m.A,{content:$(),direction:y,children:(0,A.jsx)("a",{className:x,ref:z,onClick:S,children:(0,A.jsx)(g.C,{...N,name:f})})})},p=r=>(0,A.jsx)(m.A,{component:(0,A.jsx)(k,{...r})})},92365:(Et,ke,e)=>{"use strict";e.d(ke,{KP:()=>C,me:()=>l,xK:()=>A});var o=e(95230),m=e(36521),g=e(40778);const l="rightnav_collapse",C="ro_rightnav_collapse",T={show:(0,m.Yt)((0,g.OB)()?l:C,!0,m.qW.Boolean),resizedWidth:o.xM,resizeMaxWidth:1/0};function A(k,p){k===void 0&&(k=T);const{type:r,payload:x}=p;switch(r){case"right-side-panel:collapse:panel":{var f;const u=(x==null?void 0:x.show)!==void 0?x==null?void 0:x.show:!k.show;return((f=x==null?void 0:x.isMemorize)!=null?f:!0)&&(0,m.a0)((0,g.OB)()?l:C,u,m.qW.Boolean),{...k,show:u}}case"right-side-panel:show:panel":return(0,m.a0)((0,g.OB)()?l:C,!0,m.qW.Boolean),{...k,show:!0};case"right-side-panel:update:resize:width":return(0,m.a0)("ST_panel_width_"+x.projectCid,x.width,m.qW.Number),{...k,resizedWidth:x.width};case"right-side-panel:update:resize:maxWidth":return{...k,resizeMaxWidth:x.width}}return k}},67531:(Et,ke,e)=>{"use strict";e.d(ke,{D:()=>r});var o=e(51044),m=e(86634),g=e.n(m),l=e(7290),C=e(21676);const T=C.Ay.div.withConfig({displayName:"styles__StyledViewModeSwitch",componentId:"sc-m9643m-0"})(["display:flex;width:164px;height:36px;padding:2px;align-items:center;justify-content:center;flex-shrink:0;&:lang(en){width:212px;}&.compact{padding:4px;display:flex;position:absolute;top:16px;left:16px;width:64px;height:36px;padding:4px;background-color:",";color:",";z-index:106;pointer-events:auto;.switch-btn{width:28px;height:28px;padding:0;&.active{background-color:",";}.svg-icon{width:16px;height:16px;}}}&.small{width:120px;height:24px;.switch-btn{padding:1.5px 8px;font-size:12px;line-height:16px;.svg-icon{width:14px;height:14px;}}}&:not(.compact):not(.small){.switch-btn{border:1px solid transparent;&.active{border:1px solid ",";}}}border-radius:6px;background-color:",";color:",";.switch-btn{display:flex;padding:2px 10px;justify-content:center;align-items:center;gap:4px;flex:1 0 0;align-self:stretch;color:",";font-size:14px;cursor:pointer;.svg-icon{display:flex;width:16px;height:16px;padding:1px;justify-content:center;align-items:center;gap:10px;color:",";&.device{padding:1px 3px;> *{fill:transparent;stroke:",";}}}&.active{background-color:",";color:",";font-weight:500;border-radius:6px;.svg-icon{color:",";&.device > *{fill:transparent;stroke:",";}}}}"],x=>x.theme.color_bg_white,x=>x.theme.color_text_L3,x=>x.theme.color_btn_secondary_hover,x=>x.theme.color_bg_border_02,x=>x.theme.color_btn_secondary_hover,x=>x.theme.color_text_L3,x=>x.theme.color_text_L3,x=>x.theme.color_text_L3,x=>x.theme.color_text_L3,x=>x.theme.color_bg_white,x=>x.theme.color_text_L1,x=>x.theme.color_text_L1,x=>x.theme.color_text_L1),A=C.Ay.div.withConfig({displayName:"styles__StyledPreviewViewModeSwitch",componentId:"sc-m9643m-1"})(["display:flex;width:144px;height:36px;align-items:center;justify-content:space-between;flex-shrink:0;.preview-switch-btn{font-size:13px;font-weight:500;line-height:16px;color:",";width:32px;line-height:36px;text-align:center;height:100%;position:relative;cursor:pointer;&::after{content:'';display:inline-block;position:absolute;bottom:2px;left:3px;width:calc(100% - 6px);height:2px;opacity:0;}&:hover:not(.active){&::after{opacity:1;background-color:",";}}&.active{color:",";&::after{opacity:1;background-color:",";}}}"],x=>x.theme.color_text_L1,x=>x.theme.color_slider_normal,x=>x.theme.color_text_link_normal,x=>x.theme.color_text_link_normal);var k=e(57464);const p=x=>{let{mode:f,size:u,handleModeSwitch:b}=x;return(0,k.jsxs)(T,{className:u,children:[(0,k.jsxs)("div",{className:g()("switch-btn",{active:f==="read_only"}),onClick:()=>b("read_only"),children:[(0,k.jsx)(l.C,{name:"common/mode/read_only"}),u!=="compact"&&I18N.ToolBar.overview]}),(0,k.jsxs)("div",{className:g()("switch-btn",{active:f==="device"}),onClick:()=>b("device"),children:[(0,k.jsx)(l.C,{name:"common/mode/device",className:"device"}),u!=="compact"&&I18N.ToolBar.preview]})]})},r=(0,o.memo)(x=>{let{mode:f,size:u,isShowInspect:b,onSwitch:h}=x;const E=N=>{switch(h&&h(N),N){case"read_only":MB.switchToReadOnly();break;case"device":MB.switchToPreview();break;case"inspect":MB.switchToInspect();break;default:break}};return b?(0,k.jsxs)(A,{children:[(0,k.jsx)("div",{className:g()("preview-switch-btn",{active:f==="read_only"}),onClick:()=>E("read_only"),children:I18N.ToolBar.overview}),(0,k.jsx)("div",{className:g()("preview-switch-btn",{active:f==="device"}),onClick:()=>E("device"),children:I18N.ToolBar.preview}),(0,k.jsx)("div",{className:g()("preview-switch-btn",{active:f==="inspect"}),onClick:()=>E("inspect"),children:I18N.ToolBar.inspect})]}):(0,k.jsx)(p,{mode:f,size:u,handleModeSwitch:E})})},72996:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>x});var o=e(74059),m=e(51044),g=e(86634),l=e.n(g),C=e(71072),T=e(19722),A=e(33039),k=e(21676);const p=k.Ay.div.withConfig({displayName:"styles__StyledDesignZoomBoxExpand",componentId:"sc-125c6kt-0"})(["display:flex;align-items:center;.zoomBox{display:flex;align-items:center;margin:0 8px;width:111px;height:32px;border:1px solid ",";border-radius:6px;.zoom-control{width:30px;height:30px;&.zoom-out{border-radius:6px 0 0 6px;}&.zoom-in{border-radius:0 6px 6px 0;}svg{width:30px;height:30px;path{fill:",";}}}.zoomBoxExpand{flex:1;width:24px;height:32px;border-radius:0;.zoom-box{line-height:20px;.zoom-scale{flex:1 1 0%;margin-left:2px;font-size:13px;font-weight:400;transform:scale(1);}.zoom-arrow{width:7px;margin-left:7px;margin-right:6px;transform:translateY(0);}}.mac,.others{top:132%;}}&.is-embed-v2:not(.is-fullscreen-mode){width:96px;height:20px;.zoom-control{width:24px;height:20px;svg{width:16px;height:20px;}}.zoomBoxExpand{width:32px;height:20px;border-radius:0;.zoom-main > .zoom-box{.zoom-scale{transform:scale(0.8);}.zoom-arrow{width:5px;margin-left:4px;}}}}}.full-screen-button{width:38px;height:32px;&.small{width:24px !important;height:24px;align-items:center;.svg-icon{width:24px;height:24px;}}}"],f=>f.theme.color_bg_border_01,f=>f.theme.color_text_L1);var r=e(57464);class x extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleToggleFullScreenMode",()=>this.props.dispatch({type:"entry:toolbar:toggle:fullScreen"})),(0,o.A)(this,"handleExitFullScreenMode",async()=>{const{dispatch:u}=this.props;u({type:"entry:toolbar:toggle:fullScreen"})})}componentDidMount(){const{isEmbedV2Preview:u,onZoomInitialScale:b}=this.props;u&&b(null)}render(){const{scale:u,fullScreenMode:b,isShowZoomSelection:h,isEmbedV2Preview:E,onZoomSpecifiedScale:N,onZoomIn:z,onZoomOut:S,onZoomInitialScale:_,onZoomSelection:y}=this.props;return(0,r.jsxs)(p,{children:[(0,r.jsxs)("div",{className:l()("zoomBox",{"is-fullscreen-mode":b,"is-embed-v2":E}),children:[(0,r.jsx)(T.A,{className:"zoom-control zoom-out",onClick:S,name:"common/minus_bold"}),(0,r.jsx)(C.Pd,{scale:u,className:"zoomBoxExpand",isShowZoomSelection:h,onZoomIn:z,onZoomOut:S,onZoomInitialScale:_,onZoomSpecifiedScale:N,onZoomSelection:y,withDropdownMarker:!1}),(0,r.jsx)(T.A,{className:"zoom-control zoom-in",onClick:z,name:"common/add_bold"})]}),b?(0,r.jsx)(A.A,{size:32,className:l()("full-screen-button",{small:E&&!b}),svgIconName:"design/collapse_screen",toolTipName:I18N.pPreviewToolbar.exit_fullscreen,direction:"down",toolTipDistance:8,onClick:this.handleExitFullScreenMode}):(0,r.jsx)(A.A,{size:32,className:l()("full-screen-button",{small:E&&!b}),svgIconName:"design/fullscreen",toolTipName:I18N.pPreviewToolbar.fullscreen,direction:"down",toolTipDistance:8,onClick:this.handleToggleFullScreenMode})]})}}},87404:(Et,ke,e)=>{"use strict";e.d(ke,{N:()=>m});var o=e(78647);const m=()=>{var g;const l=(g=MB)==null?void 0:g.user;if(!!!(l!=null&&l.id)||ENV.IS_ON_PREMISES)return!1;const T=MB.commonGuideHelper.getState().commonGuidesHasShown||[];if(T.includes(o.c.GUIDE_NOVICE_2309_TASK_5)||T.includes(o.c.GUIDE_NOVICE_2309_TASK_5_DEVICE_MODE))return!1;const A=24*60*60*1e3,k=new Date().getTime(),p=new Date(l.created_at).getTime();return!(k-7*A>p)}},75422:(Et,ke,e)=>{"use strict";e.d(ke,{X:()=>de});var o=e(51044),m=e(72605),g=e(86634),l=e.n(g),C=e(63686),T=e(44057),A=e(8066),k=e(58283),p=e(33039),r=e(7290),x=e(90968),f=e(54386),u=e(47143),b=e(98386),h=e(5115),E=e(43391),N=e(54606),z=e(35592),S=e(52191),_=e(78570),y=e(20029),a=e(76445),$=e(24695),ce=e(57464);const de=(0,o.memo)(()=>{var se;const J=(0,m.wA)(),{onlyView:ve,isLeftShow:D,isShowRightPanel:R,isShowCommentInCanvas:V,isShowMultiCursor:O,fullScreenMode:Ce,canToggleSticky:ae,isShowSticky:q,isCommunityPreview:K,isEmbedV2Preview:xe,isHtmlZipPreview:te,isEditingCombo:H,isEmptyScreen:re,currentProject:be,isDisabledComment:Le}=(0,m.d4)(fe),Ve=(0,ce.jsx)(r.C,{name:"toolbar/selected",className:"selected-icon"}),Ne=()=>{J({type:"entry:update:preference",payload:{isShowMultiCursor:!O}}),ve?(0,f.A)({operation_type:f.D.CollaborationPointer}):(0,x.kX)({operation_type:x.mV.CollaborationPointer})},We=()=>{J({type:"entry:toggle:left-nav-panel"}),ve?(0,f.A)({operation_type:f.D.ShowLeftPanel}):(0,x.kX)({operation_type:x.mV.ShowLeftPanel})},ze=()=>{J({type:"entry:toggle:right-panel"}),ve?(0,f.A)({operation_type:f.D.ShowRightPanel}):(0,x.kX)({operation_type:x.mV.ShowRightPanel})},ft=()=>{J({type:"entry:isShowSticky:toggle"}),ve?(0,f.A)({operation_type:f.D.Sticky}):(0,x.kX)({operation_type:x.mV.Sticky})},mt=()=>{J({type:"comment:toggle:isShowCommentInCanvas"}),ve?(0,f.A)({operation_type:f.D.Comment}):(0,x.kX)({operation_type:x.mV.Comment})};return(0,ce.jsx)(A.A,{isDisabled:re,className:l()("save-tips-dropdown",{isEmbedV2Preview:xe},{NotFullScreen:!Ce},{isCommunity:K}),renderOpener:(0,ce.jsx)(p.A,{className:"fixed-layout-position",name:I18N.pPreviewToolbar.comment,toolTipName:I18N.ToolBar.view,svgIconName:"toolbar/layout",toolTipDistance:8,size:32}),onClickIcon:()=>(0,x.kX)({operation_type:x.mV.Layout}),renderMenu:(0,ce.jsx)(k.Sv,{className:l()("onlyRead",""+((be==null?void 0:be.category)||""),{fullScreen:Ce},{isCommunity:K},{isEmbedV2Preview:xe}),position:{top:46,left:void 0},onClose:()=>({}),style:{right:212},children:K||xe?(0,ce.jsx)(ce.Fragment,{children:(0,ce.jsx)(T.Dr,{text:I18N.PreferenceBar.note,className:"SelectOption",disabled:!ae,icon:q?Ve:void 0,onClick:ft})}):(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)(T.Dr,{text:I18N.PreferenceBar.left_panel,className:"SelectOption",disabled:!1,icon:D?Ve:void 0,onClick:We,hotKeyText:$.V.showLeftPanel}),(0,ce.jsx)(T.Dr,{text:I18N.PreferenceBar.right_panel,className:"SelectOption",disabled:!ae&&Le,icon:R?Ve:void 0,onClick:ze,hotKeyText:$.V.showRightPanel}),(0,ce.jsx)(T.Dr,{text:I18N.PreferenceBar.note,className:"SelectOption",disabled:!ae,icon:q?Ve:void 0,onClick:ft}),!H&&((se=MB)==null||(se=se.user)==null?void 0:se.id)&&(0,ce.jsx)(T.Dr,{text:I18N.PreferenceBar.comment,className:"SelectOption",disabled:Le,icon:!Le&&V?Ve:void 0,onClick:mt}),!te&&(0,ce.jsx)(T.Dr,{text:I18N.PreferenceBar.multi_user_mouse_pointer,className:"SelectOption",disabled:!1,icon:O?Ve:void 0,onClick:Ne})]})})})}),fe=(0,C.Mz)([y.jx,_.qT,_.O4,b.Xf,_.gf,h.UI,_.lU,y.T7,S.$7,S.I9,y.pH,y.rg,y.uu,u.PL,N.r,E.C,z.EH,u.z$],(se,J,ve,D,R,V,O,Ce,ae,q,K,xe,te,H,re,be,Le,Ve)=>{let{isEditingCombo:Ne}=re,{isEmptyScreen:We}=be;const ze=se===a.qi.OnlyView,ft=ze&&(Ve==null?void 0:Ve.comment_permission)==="off";return{onlyView:ze,showRuler:J,theme:ve,isLeftShow:D,isShowReferLine:R,isShowRightPanel:V,isShowMultiCursor:O,fullScreenMode:Ce,isShowSticky:ae,canToggleSticky:q,isCommunityPreview:K,isEmbedV2Preview:xe,isHtmlZipPreview:te,isEditingCombo:Ne,isEmptyScreen:We,isShowCommentInCanvas:Le,currentProject:H,isDisabledComment:ft}})},58283:(Et,ke,e)=>{"use strict";e.d(ke,{Sv:()=>C,kb:()=>T});var o=e(21676),m=e(44057),g=e(48590);const l=o.Ay.div.withConfig({displayName:"StyledMenuBox",componentId:"sc-17rvgl7-0"})(["padding:8px;min-width:160px;background:",";box-shadow:",";border-radius:8px;color:",";border:1px solid ",";a{height:24px;}li{list-style:none;}.menu-item{position:relative;height:32px;padding:0 20px;display:flex;align-items:center;cursor:pointer;&:hover{background:",";}}.menu-divider{height:1px;margin:8px 0;background-color:",";}&.group-content{min-width:200px;.group-icon .svg-icon{width:16px;height:16px;&.toolbar-z_front,&.toolbar-z_back,&.common-z_forward,&.common-z_backward{width:24px;height:24px;}}}.group-icon{&.version-history{.toolbar-feature-notice{left:95px;}}}"],A=>A.theme.color_bg_white,A=>A.theme.shadow_m,A=>A.theme.color_text_L1,A=>A.theme.color_bg_border_01,A=>A.theme.color_btn_secondary_hover,A=>A.theme.color_bg_border_01),C=(0,o.Ay)(m.Ay).withConfig({displayName:"StyledMenuBox__StyledMenuContent",componentId:"sc-17rvgl7-1"})(["ul{min-width:160px;}&.isCommunity{top:53px !important;&.fullScreen{top:48px !important;}&.onlyRead{&.project_basic{right:267px !important;&.fullScreen{right:233px !important;}}&.combo_group{right:226px !important;}}&.onlyPreview{&.combo_group{right:189px !important;}right:196px !important;}ul{width:160px;min-width:0;}}&.isEmbedV2Preview{top:32px !important;&.fullScreen{top:48px !important;}&.onlyRead{&.fullScreen{right:233px !important;}}&.onlyPreview{right:196px !important;}ul{width:160px;min-width:0;}}&.onlyPreview{> ul{left:initial;right:100%;}}li{list-style:none;}a{color:",";}.MenuItem{& > a{padding-left:32px;}&.hasIcon{> a{padding-left:15px;}}}.menu-divider{height:1px;margin:8px 0;background-color:",";}",";"],A=>A.theme.color_text_L1,A=>A.theme.color_bg_border_01,g.ZJ),T=(0,o.DU)([".context-menu-mask{z-index:1200 !important;}"])},59844:(Et,ke,e)=>{"use strict";e.d(ke,{Qc:()=>A,lk:()=>C});var o=e(4114),m=e(11777),g=e(24695),l=e(63555);const C={cut_mac:"<kbd>\u2318</kbd><kbd>X</kbd>",cut_win:"<kbd>Ctrl</kbd><kbd>+</kbd><kbd>X</kbd>",save_mac:"<kbd>\u2318</kbd><kbd>S</kbd>",save_win:"<kbd>Ctrl</kbd><kbd>+</kbd><kbd>S</kbd>",undo_mac:"<kbd>\u2318</kbd><kbd>Z</kbd>",undo_win:"<kbd>Ctrl</kbd><kbd>+</kbd><kbd>Z</kbd>",redo_mac:"<kbd>\u21E7</kbd><kbd>\u2318</kbd><kbd>Z</kbd>",redo_win:"<kbd>Shift</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>Z</kbd>",duplicate_mac:"<kbd>\u2318</kbd><kbd>C</kbd>",duplicate_win:"<kbd>Ctrl</kbd><kbd>+</kbd><kbd>C</kbd>",paste_mac:"<kbd>\u2318</kbd><kbd>V</kbd>",paste_win:"<kbd>Ctrl</kbd><kbd>+</kbd><kbd>V</kbd>",trash_mac:"<kbd>Del/Backspace</kbd>",trash_win:"<kbd>Del/Backspace</kbd>",play_toolbar_mac:"<kbd>\u2318</kbd><kbd>P</kbd>",play_toolbar_win:"<kbd>Ctrl</kbd><kbd>+</kbd><kbd>P</kbd>",align_left_mac:"<kbd>\u2325</kbd><kbd>\u2318</kbd><kbd>L</kbd>",align_left_win:"<kbd>Alt</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>L</kbd>",align_center_v_mac:"<kbd>\u2325</kbd><kbd>\u2318</kbd><kbd>C</kbd>",align_center_v_win:"<kbd>Alt</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>C</kbd>",align_right_mac:"<kbd>\u2325</kbd><kbd>\u2318</kbd><kbd>R</kbd>",align_right_win:"<kbd>Alt</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>R</kbd>",align_top_mac:"<kbd>\u2325</kbd><kbd>\u2318</kbd><kbd>T</kbd>",align_top_win:"<kbd>Alt</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>T</kbd>",align_center_h_mac:"<kbd>\u2325</kbd><kbd>\u2318</kbd><kbd>M</kbd>",align_center_h_win:"<kbd>Alt</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>M</kbd>",align_bottom_mac:"<kbd>\u2325</kbd><kbd>\u2318</kbd><kbd>B</kbd>",align_bottom_win:"<kbd>Alt</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>B</kbd>",dist_evenly_h_mac:"<kbd>\u2325</kbd><kbd>\u2318</kbd><kbd>H</kbd>",dist_evenly_h_win:"<kbd>Alt</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>H</kbd>",dist_evenly_v_mac:"<kbd>\u2325</kbd><kbd>\u2318</kbd><kbd>U</kbd>",dist_evenly_v_win:"<kbd>Alt</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>U</kbd>",z_front_mac:"<kbd>\u21E7</kbd><kbd>\u2318</kbd><kbd>\u2191</kbd>",z_front_win:"<kbd>Shift</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>\u2191</kbd>",z_back_mac:"<kbd>\u21E7</kbd><kbd>\u2318</kbd><kbd>\u2193</kbd>",z_back_win:"<kbd>Shift</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>\u2193</kbd>",z_forward_mac:"<kbd>\u2325</kbd><kbd>\u2318</kbd><kbd>\u2191</kbd>",z_forward_win:"<kbd>Alt</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>\u2191</kbd>",z_backward_mac:"<kbd>\u2325</kbd><kbd>\u2318</kbd><kbd>\u2193</kbd>",z_backward_win:"<kbd>Alt</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>\u2193</kbd>",group_mac:"<kbd>\u2318</kbd><kbd>G</kbd>",group_win:"<kbd>Ctrl</kbd><kbd>+</kbd><kbd>G</kbd>",ungroup_mac:"<kbd>\u21E7</kbd><kbd>\u2318</kbd><kbd>G</kbd>",ungroup_win:"<kbd>Shift</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>G</kbd>",text_bold_mac:"<kbd>\u2318</kbd><kbd>B</kbd>",text_bold_win:"<kbd>Ctrl</kbd><kbd>+</kbd><kbd>B</kbd>",text_italic_mac:"<kbd>\u2318</kbd><kbd>I</kbd>",text_italic_win:"<kbd>Ctrl</kbd><kbd>+</kbd><kbd>I</kbd>",text_underline_mac:"<kbd>\u2318</kbd><kbd>U</kbd>",text_underline_win:"<kbd>Ctrl</kbd><kbd>+</kbd><kbd>U</kbd>",text_lineThrough_mac:"<kbd>\u21E7</kbd><kbd>\u2318</kbd><kbd>S</kbd>",text_lineThrough_win:"<kbd>Shift</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>S</kbd>",catalogue_mac:"<kbd>\u2325</kbd><kbd>1</kbd>",catalogue_win:"<kbd>Alt</kbd><kbd>1</kbd>",layer_mac:"<kbd>\u2325</kbd><kbd>2</kbd>",layer_win:"<kbd>Alt</kbd><kbd>2</kbd>",basket_mac:"<kbd>\u2325</kbd><kbd>3</kbd>",basket_win:"<kbd>Alt</kbd><kbd>3</kbd>"},T=(0,o.R)(()=>({[l.x.Canvas]:{left:I18N.BasicWidgetsNav.add_artboard,right:["A"]},[l.x.WRichText]:{left:I18N.BasicWidgetsNav.text,right:["T"]},[l.x.WRect]:{left:I18N.BasicWidgetsNav.rounded_rect,right:["R"]},[l.x.WOval]:{left:I18N.BasicWidgetsNav.circle,right:["O"]},[l.x.WLine]:{left:I18N.w.wLine,right:["L"]},[l.x.WLR]:{left:I18N.BasicWidgetsNav.lr,right:["H"]},[l.x.WImage]:{left:I18N.BasicWidgetsNav.image_view,right:null},[l.x.WSticky]:{left:I18N.w.sticky,right:["N"]},[l.x.WElbow]:{left:I18N.BasicWidgetsNav.wired,right:["E"]},[l.x.WTear]:{left:I18N.w.annotate,right:["W"]},[l.x.WVector]:{left:I18N.BasicWidgetsNav.wVector,right:["P"]},preview:{left:I18N.ToolBar.preview,right:g.V.preview},comment:{left:I18N.pPreviewToolbar.comment,right:["C"]},handMode:{left:I18N.BasicWidgetsNav.hand_tool,right:null},AI:{left:I18N.BasicWidgetsNav.AI.MDAI,right:null},Pencil:{left:I18N.BasicWidgetsNav.pencil,right:["P"]}})),A=k=>{const p=T(),{left:r,right:x}=p[k]||{},f=x&&x.map(u=>"<kbd>"+u+"</kbd>").join("");return(0,m.u)({text:r,key:f})}},52191:(Et,ke,e)=>{"use strict";e.d(ke,{$7:()=>T,BM:()=>p,Er:()=>A,H5:()=>g,I9:()=>C,iJ:()=>l,wT:()=>r});var o=e(63686),m=e(20029);const g=x=>x.ui.toolbar.isShowSharingManager,l=x=>x.ui.toolbar.projShareToEdit,C=x=>x.ui.toolbar.canToggleSticky,T=x=>x.ui.toolbar.isShowSticky,A=x=>x.ui.toolbar.saving,k=x=>x.ui.toolbar.canPaste,p=x=>x.ui.toolbar.refresh,r=(0,o.Mz)([m.pH,m.YL],(x,f)=>x||f?0:48)},16526:(Et,ke,e)=>{"use strict";e.d(ke,{F2:()=>N,GN:()=>S,Jv:()=>z,b2:()=>p,f7:()=>x});var o=e(20592),m=e(63555),g=e(15101),l=e(37738),C=e(70999),T=e(21109),A=e(28868),k=e(66976);const p=_=>{var y;const a=_[0];if(a===void 0)return[];if(!((y=MB.getCurrentScreen())==null?void 0:y.cid))return[];const{hotAttr:{x:ce,y:de,w:fe,h:se,r:J},notTriggerAttachedUpdate:ve}=a;if(ve)return[];if(!(ce!==void 0||de!==void 0||fe!==void 0||se!==void 0||J!==void 0))return[];const D=new Set(_.map(K=>K.key)),R=new Set,V=new Set,O=[],Ce=MB.getWidgetStore();for(const{key:K}of _){const xe=sdkStore.getHotItem(K);if(!xe)continue;const{hotAttr:{type:te}}=xe;te===m.x.WElbow?V.add(K):Ce.getRelatedTypeWidgetKeys("wElbow",K).forEach(H=>R.add(H))}for(const K of R)h(K,O);for(const K of V)r(K,D,O);const ae=new Map;for(const K of O){const xe=K.key,te=ae.get(xe);te?te.push(K):ae.set(xe,[K])}const q=[];for(const K of ae.values()){const xe=K.at(-1);q.push(xe)}return sdkStore.updateHotItemBatch(q),q.map(K=>({...K.hotAttr,cid:K.key,key:K.key,sup:K.sup,sub:K.sub}))},r=(_,y,a)=>{const{hotAttr:{refFromKey:$,refToKey:ce}}=sdkStore.getHotItem(_);if(y.has($)||y.has(ce))return;const{isRefFromExist:de,isRefToExist:fe}=(0,C.v)(_,$,ce);de?a.push(b(_,"start")):fe&&a.push(b(_,"end"))},x=(_,y)=>{const{hotAttr:{refFromKey:a,refToKey:$}}=sdkStore.getHotItem(_),{isRefFromExist:ce,isRefToExist:de}=(0,C.v)(_,a,$);ce&&de&&y.push(u(_))},f=_=>{const{hotAttr:{refFromKey:y,refToKey:a,elbow:{fromDirection:$,toDirection:ce,elbowType:de,middleIsAdjusted:fe,dPathList:se}},sup:J}=sdkStore.getHotItem(_),{sup:ve}=sdkStore.getHotItem(y),{sup:D}=sdkStore.getHotItem(a);let R,V,O=J;if(ve===D)O=ve,R=sdkStore.getLocalBound(y),V=sdkStore.getLocalBound(a);else{const ae=MB.getCurrentScreen().cid;if(ve===ae||D===ae)O=ae,R=sdkStore.getHotBound(y),V=sdkStore.getHotBound(a);else{const q=sdkStore.locUpHotCanvasKey(y),K=sdkStore.locUpHotCanvasKey(a);q!==void 0&&q===K?(O=q,R=sdkStore.getRelocateLocalBound(y,q),V=sdkStore.getRelocateLocalBound(a,q)):(O=ae,R=sdkStore.getHotBound(y),V=sdkStore.getHotBound(a))}}const Ce=z({elbowKey:_,bound:R,direction:$,refKey:y,moveAnchor:"start"});if(de==="curve"){sdkStore.updateHotItem(Ce);const ae=z({elbowKey:_,bound:V,direction:ce,refKey:a,moveAnchor:"end",elbow:Ce});if(O!==J)if(fe){const q={x:se[1].x-se[2].x,y:se[1].y-se[2].y},K=ae.hotAttr.elbow.dPathList[2],xe={x:q.x+K.x,y:q.y+K.y},te=JSON.parse(JSON.stringify(ae.hotAttr.elbow.dPathList));te[1].x=xe.x,te[1].y=xe.y;const{x:H,y:re,r:be}=sdkStore.getRelocateLocalXYR(_,O);return{...ae,sup:O,hotAttr:{...ae.hotAttr,x:H,y:re,r:be,elbow:{...ae.hotAttr.elbow,dPathList:te}}}}else{const{x:q,y:K,r:xe}=sdkStore.getRelocateLocalXYR(_,O);return{...ae,sup:O,hotAttr:{...ae.hotAttr,x:q,y:K,r:xe}}}else return ae.sup=O,ae}else{const ae=z({elbowKey:_,bound:V,direction:ce,refKey:a,moveAnchor:"end",elbow:Ce});return ae.sup=O,ae}},u=_=>{const{hotAttr:{refFromKey:y,refToKey:a,elbow:{fromDirection:$,toDirection:ce,elbowType:de,middleIsAdjusted:fe,dPathList:se}},sup:J}=sdkStore.getHotItem(_),{sup:ve}=sdkStore.getHotItem(y),{sup:D}=sdkStore.getHotItem(a);let R,V,O=J;if(ve===D)O=ve,R=sdkStore.getLocalBound(y),V=sdkStore.getLocalBound(a);else{const q=MB.getCurrentScreen().cid;if(ve===q||D===q)O=q,R=sdkStore.getHotBound(y),V=sdkStore.getHotBound(a);else{const K=sdkStore.locUpHotCanvasKey(y),xe=sdkStore.locUpHotCanvasKey(a);K!==void 0&&K===xe?(O=K,R=sdkStore.getRelocateLocalBound(y,K),V=sdkStore.getRelocateLocalBound(a,K)):(O=q,R=sdkStore.getHotBound(y),V=sdkStore.getHotBound(a))}}const Ce=z({elbowKey:_,bound:R,direction:$,refKey:y,moveAnchor:"start"}),ae=(0,T.Us)();if(de==="curve"){sdkStore.updateHotItem(Ce);const q=z({elbowKey:_,bound:V,direction:ce,refKey:a,moveAnchor:"end",elbow:Ce});if(O!==J)if(fe){const K={x:se[1].x-se[2].x,y:se[1].y-se[2].y},xe=q.hotAttr.elbow.dPathList[2],te={x:K.x+xe.x,y:K.y+xe.y},H=JSON.parse(JSON.stringify(q.hotAttr.elbow.dPathList));H[1].x=te.x,H[1].y=te.y;const{x:re,y:be,r:Le}=sdkStore.getRelocateLocalXYR(_,O);return{...q,sup:O,hotAttr:{...q.hotAttr,x:re,y:be,r:Le,zIndex:ae(_,O),elbow:{...q.hotAttr.elbow,dPathList:H}}}}else{const{x:K,y:xe,r:te}=sdkStore.getRelocateLocalXYR(_,O);return{...q,sup:O,hotAttr:{...q.hotAttr,x:K,y:xe,r:te,zIndex:ae(_,O)}}}else return q.sup=O,q}else{const q=z({elbowKey:_,bound:V,direction:ce,refKey:a,moveAnchor:"end",elbow:Ce});return q.sup=O,O!==J&&(q.hotAttr.zIndex=ae(_,O)),q}},b=(_,y)=>{const{hotAttr:a,sup:$}=sdkStore.getHotItem(_);if(y==="start"){const ce=sdkStore.getRelocateLocalBound(a.refFromKey,$);return z({elbowKey:_,bound:ce,direction:a.elbow.fromDirection,refKey:a.refFromKey,moveAnchor:"start"})}else{const ce=sdkStore.getRelocateLocalBound(a.refToKey,$);return z({elbowKey:_,bound:ce,direction:a.elbow.toDirection,refKey:a.refToKey,moveAnchor:"end"})}},h=(_,y)=>{const{hotAttr:{refFromKey:a,refToKey:$,elbow:{fromDirection:ce,toDirection:de,dPathList:fe}},sup:se}=sdkStore.getHotItem(_),{isRefFromExist:J,isRefToExist:ve}=(0,C.v)(_,a,$),D=MB.getCurrentScreen().cid,R=sdkStore.getHotAABB(_),V={x:.5*(R[0]+R[2]),y:.5*(R[1]+R[3])},O={x:R[0],y:R[1]},Ce=(0,A.Ui)(O,[fe[0]])[0],ae=(0,A.Ui)(O,[fe[fe.length-1]])[0],q=(0,k.Tg)(Ce,D),K=(0,k.Tg)(ae,D),xe=(0,T.Us)();if(J&&ve){const H=u(_),re=(0,T.G9)(D),be={x:H.hotAttr.x,y:H.hotAttr.y},Le=(0,T.fW)(_,D,re);let Ve=H;if(H.sup!==Le){var te;const Ne=sdkStore.getHotAABB(a),We=sdkStore.getHotAABB($),ze=((te=sdkStore.getHotItem($))==null?void 0:te.hotAttr.type)===m.x.Canvas;(0,o.Pn)(ze?We:Ne,ze?Ne:We)&&(Ve={...H,sup:Le,hotAttr:{...H.hotAttr,...sdkStore.toAttrXY(be,_,Le),zIndex:xe(_,Le)}})}y.push(Ve)}else if(J){const H=sdkStore.getRelocateLocalBound(a,se);let re=z({elbowKey:_,bound:H,direction:ce,refKey:a,moveAnchor:"start"});const be=sdkStore.locUpHotCanvasKey(a),Le=be&&be===K?be:D;se!==Le&&(re={...re,sup:Le,hotAttr:{...re.hotAttr,...sdkStore.toAttrXY(V,_,Le),zIndex:xe(_,Le)}}),y.push(re)}else if(ve){const H=sdkStore.getRelocateLocalBound($,se);let re=z({elbowKey:_,bound:H,direction:de,refKey:$,moveAnchor:"end"});const be=sdkStore.locUpHotCanvasKey($),Le=be&&be===q?be:D;se!==Le&&(re={...re,sup:Le,hotAttr:{...re.hotAttr,...sdkStore.toAttrXY(V,_,Le),zIndex:xe(_,Le)}}),y.push(re)}},E=(_,y)=>{const{hotAttr:{refFromKey:a,refToKey:$,elbow:{fromDirection:ce,toDirection:de}},sup:fe}=sdkStore.getHotItem(_),{isRefFromExist:se,isRefToExist:J}=checkRefExistV2(_,a,$);if(se&&J)y.push(u(_));else if(se){const ve=sdkStore.getRelocateLocalBound(a,fe),D=z({elbowKey:_,bound:ve,direction:ce,refKey:a,moveAnchor:"start"});y.push(D)}else if(J){const ve=sdkStore.getRelocateLocalBound($,fe),D=z({elbowKey:_,bound:ve,direction:de,refKey:$,moveAnchor:"end"});y.push(D)}},N=(_,y)=>{const a=[],{sup:$,hotAttr:{refFromKey:ce,refToKey:de,elbow:{fromDirection:fe,toDirection:se}}}=sdkStore.getHotItem(_);if($!==y){const{isRefFromExist:J,isRefToExist:ve}=(0,C.v)(_,ce,de);if(J&&ve)a.push(u(_)),sdkStore.updateHotItemBatch(a);else if(J){const{sup:D}=sdkStore.getHotItem(ce);if(D!==$){if(D===y){const R=sdkStore.getLocalBound(ce);sdkStore.changeRndSup(_,y);const V=z({elbowKey:_,bound:R,direction:fe,refKey:ce,moveAnchor:"start"});sdkStore.updateHotItem(V)}}}else if(ve){const{sup:D}=sdkStore.getHotItem(de);if(D!==$){if(D===y){const R=sdkStore.getLocalBound(de);sdkStore.changeRndSup(_,y);const V=z({elbowKey:_,bound:R,direction:se,refKey:de,moveAnchor:"end"});sdkStore.updateHotItem(V)}}}else{const D=sdkStore.getHotAABB(_),R=sdkStore.getHotAABB(y);(0,o.Pn)(R,D)&&sdkStore.changeRndSup(_,y)}}},z=_=>{let{elbowKey:y,bound:a,moveAnchor:$,direction:ce,refKey:de,elbow:fe}=_;const se=sdkStore.getHotItem(y).hotAttr.elbow.elbowType==="curve"?sdkStore.getHotBound(de):a,J=(0,g.Nj)(se,ce);if(J===void 0)return fe;const ve={elbowKey:y,moveAnchor:$,worldPos:J,refKey:de,direction:ce,isUpdateByRef:!0};return(0,l.b)(ve,fe)},S=(_,y)=>{const{sup:a,hotAttr:{elbow:$}}=sdkStore.getHotItem(_),{hotAttr:{type:ce}}=sdkStore.getHotItem(a),{x:de,y:fe}=y;let se={x:de,y:fe},J=!1,ve;return[m.x.Canvas,m.x.WWrap,m.x.WBasket].includes(ce)&&$.elbowType!=="curve"&&(se=sdkStore.toAttrXY(y,"",a),J=!0,ve=a),{realPos:se,updated:J,offsetSup:ve}}},57488:(Et,ke,e)=>{"use strict";e.d(ke,{hC:()=>Ce,Mj:()=>V,Wz:()=>O,eQ:()=>ae,rD:()=>R});function o(q,K,xe,te){const H=[K];if(te.y<K.y){const re=(K.y+(te.y+xe.h))/2;xe.x+xe.w>=K.x&&te.x<K.x?(H.push({x:K.x,y:re}),H.push({x:xe.x+xe.w+20,y:re}),H.push({x:xe.x+xe.w+20,y:te.y-20}),H.push({x:te.x,y:te.y-20})):te.x>=K.x&&xe.x<K.x?(H.push({x:K.x,y:re}),H.push({x:xe.x-20,y:re}),H.push({x:xe.x-20,y:te.y-20}),H.push({x:te.x,y:te.y-20})):(H.push({x:K.x,y:te.y-20}),H.push({x:te.x,y:te.y-20}))}if(te.y>=K.y){const re=(te.y+(K.y+q.h))/2;te.x>=q.x&&te.x<q.x+q.w/2?(H.push({x:K.x,y:K.y-20}),H.push({x:q.x-20,y:K.y-20}),H.push({x:q.x-20,y:re}),H.push({x:te.x,y:re})):te.x>=q.x+q.w/2&&te.x<q.x+q.w?(H.push({x:K.x,y:K.y-20}),H.push({x:q.x+q.w+20,y:K.y-20}),H.push({x:q.x+q.w+20,y:re}),H.push({x:te.x,y:re})):(H.push({x:K.x,y:K.y-20}),H.push({x:te.x,y:K.y-20}))}return H.push(te),H}function m(q,K,xe,te){return C(xe,te,q,K).reverse()}function g(q,K,xe,te){const H=[K];if(te.y<K.y){const re=(K.y+te.y)/2;H.push({x:K.x,y:re}),H.push({x:te.x,y:re})}if(te.y>=K.y&&xe.y<=q.y+q.h)if(xe.x+xe.w<q.x){const re=(xe.x+xe.w+q.x)/2;H.push({x:K.x,y:K.y-20}),H.push({x:re,y:K.y-20}),H.push({x:re,y:te.y+20}),H.push({x:te.x,y:te.y+20})}else if(xe.x+xe.w>=q.x&&te.x<K.x){const re=q.y<xe.y?q.y-20:xe.y-20,be=q.x<xe.x?q.x-20:xe.x-20;H.push({x:K.x,y:re}),H.push({x:be,y:re}),H.push({x:be,y:te.y+20}),H.push({x:te.x,y:te.y+20})}else if(te.x>=K.x&&xe.x<=q.x+q.w){const re=q.y<xe.y?q.y-20:xe.y-20,be=q.x+q.w>xe.x+xe.w?q.x+q.w+20:xe.x+xe.w+20;H.push({x:K.x,y:re}),H.push({x:be,y:re}),H.push({x:be,y:te.y+20}),H.push({x:te.x,y:te.y+20})}else{const re=(q.x+q.w+xe.x)/2;H.push({x:K.x,y:K.y-20}),H.push({x:re,y:K.y-20}),H.push({x:re,y:te.y+20}),H.push({x:te.x,y:te.y+20})}if(xe.y>q.y+q.h)if(xe.x+xe.w<q.x){const re=(xe.x+xe.w+q.x)/2;H.push({x:K.x,y:K.y-20}),H.push({x:re,y:K.y-20}),H.push({x:re,y:te.y+20}),H.push({x:te.x,y:te.y+20})}else if(xe.x+xe.w>=q.x&&te.x<K.x){const re=(q.y+q.h+xe.y)/2;H.push({x:K.x,y:K.y-20}),H.push({x:q.x-20,y:K.y-20}),H.push({x:q.x-20,y:re}),H.push({x:xe.x+xe.w+20,y:re}),H.push({x:xe.x+xe.w+20,y:te.y+20}),H.push({x:te.x,y:te.y+20})}else if(te.x>=K.x&&xe.x<=q.x+q.w){const re=(q.y+q.h+xe.y)/2;H.push({x:K.x,y:K.y-20}),H.push({x:q.x+q.w+20,y:K.y-20}),H.push({x:q.x+q.w+20,y:re}),H.push({x:xe.x-20,y:re}),H.push({x:xe.x-20,y:te.y+20}),H.push({x:te.x,y:te.y+20})}else{const re=(q.x+q.w+xe.x)/2;H.push({x:K.x,y:K.y-20}),H.push({x:re,y:K.y-20}),H.push({x:re,y:te.y+20}),H.push({x:te.x,y:te.y+20})}return H.push(te),H}function l(q,K,xe,te){const H=[K];if(te.y<K.y&&(te.x>K.x&&H.push({x:K.x,y:te.y}),te.x<=K.x)){if(xe.y+xe.h<K.y){const re=(xe.y+xe.h+K.y)/2;H.push({x:K.x,y:re}),H.push({x:xe.x-20,y:re}),H.push({x:xe.x-20,y:te.y})}if(xe.y+xe.h>=K.y)if(xe.x+xe.w>=q.x)H.push({x:K.x,y:xe.y-20}),H.push({x:te.x-20,y:xe.y-20}),H.push({x:te.x-20,y:te.y});else{const re=(xe.x+xe.w+q.x)/2;H.push({x:K.x,y:K.y-20}),H.push({x:re,y:K.y-20}),H.push({x:re,y:xe.y+xe.h+20}),H.push({x:te.x-20,y:xe.y+xe.h+20}),H.push({x:te.x-20,y:te.y})}}if(te.y>=K.y)if(te.x<=K.x){const re=q.x<xe.x?q.x-20:xe.x-20,be=q.y<xe.y?q.y-20:xe.y-20;H.push({x:K.x,y:be}),H.push({x:re,y:be}),H.push({x:re,y:te.y})}else if(te.x>K.x&&te.x<=q.x+q.w)if(xe.y<=q.y+q.h)H.push({x:K.x,y:K.y-20}),H.push({x:q.x-20,y:K.y-20}),H.push({x:q.x-20,y:te.y});else{const re=(q.y+q.h+xe.y)/2;H.push({x:K.x,y:K.y-20}),H.push({x:q.x+q.w+20,y:K.y-20}),H.push({x:q.x+q.w+20,y:re}),H.push({x:te.x-20,y:re}),H.push({x:te.x-20,y:te.y})}else{const re=(q.x+q.w+te.x)/2;H.push({x:K.x,y:K.y-20}),H.push({x:re,y:K.y-20}),H.push({x:re,y:te.y})}return H.push(te),H}function C(q,K,xe,te){const H=[K];if(xe.x>K.x){const re=(K.x+xe.x)/2;te.y<=K.y?(H.push({x:re,y:K.y}),H.push({x:re,y:te.y-20}),H.push({x:te.x,y:te.y-20})):H.push({x:te.x,y:K.y})}if(xe.x<=K.x&&xe.x+xe.w>K.x&&(xe.y+xe.h<=K.y&&(H.push({x:xe.x+xe.w+20,y:K.y}),H.push({x:xe.x+xe.w+20,y:te.y-20}),H.push({x:te.x,y:te.y-20})),xe.y>=K.y&&xe.y<=q.y+q.h&&H.push({x:te.x,y:K.y}),xe.y>q.y+q.h))if(te.x>K.x)H.push({x:te.x,y:K.y});else{const re=(te.y+(q.y+q.h))/2;H.push({x:K.x+20,y:K.y}),H.push({x:K.x+20,y:re}),H.push({x:te.x,y:re})}if(xe.x+xe.w<=K.x)if(te.y>q.y+q.h){const re=(te.y+(q.y+q.h))/2;H.push({x:K.x+20,y:K.y}),H.push({x:K.x+20,y:re}),H.push({x:te.x,y:re})}else if(te.y>K.y&&te.y<=q.y+q.h)if(xe.x+xe.w>=q.x)H.push({x:K.x+20,y:K.y}),H.push({x:K.x+20,y:q.y-20}),H.push({x:te.x,y:q.y-20});else{const re=(xe.x+xe.w+q.x)/2;H.push({x:K.x+20,y:K.y}),H.push({x:K.x+20,y:q.y+q.h+20}),H.push({x:re,y:q.y+q.h+20}),H.push({x:re,y:te.y-20}),H.push({x:te.x,y:te.y-20})}else{const re=xe.y<q.y?xe.y-20:q.y-20;H.push({x:K.x+20,y:K.y}),H.push({x:K.x+20,y:re}),H.push({x:te.x,y:re})}return H.push(te),H}function T(q,K,xe,te){const H=[K];if(te.y>q.y+q.h){const re=te.x>K.x?te.x+20:K.x+20;if(xe.x>K.x&&xe.y<K.y){const be=(xe.x+K.x)/2;H.push({x:be,y:K.y}),H.push({x:be,y:xe.y-20}),H.push({x:te.x+20,y:xe.y-20}),H.push({x:te.x+20,y:te.y})}else H.push({x:re,y:K.y}),H.push({x:re,y:te.y})}if(te.y<=q.y+q.h&&te.y>K.y){if(te.x<q.x){const re=(te.x+q.x)/2;H.push({x:K.x+20,y:K.y}),H.push({x:K.x+20,y:q.y+q.h+20}),H.push({x:re,y:q.y+q.h+20}),H.push({x:re,y:te.y})}if(xe.x>K.x){const re=(xe.x+K.x)/2;H.push({x:re,y:K.y}),H.push({x:re,y:xe.y-20}),H.push({x:te.x+20,y:xe.y-20}),H.push({x:te.x+20,y:te.y})}}if(te.y<=K.y&&te.y>q.y){if(te.x<q.x){const re=(te.x+q.x)/2;H.push({x:K.x+20,y:K.y}),H.push({x:K.x+20,y:q.y-20}),H.push({x:re,y:q.y-20}),H.push({x:re,y:te.y})}if(xe.x>K.x){const re=(xe.x+K.x)/2;H.push({x:re,y:K.y}),H.push({x:re,y:xe.y+xe.h+20}),H.push({x:te.x+20,y:xe.y+xe.h+20}),H.push({x:te.x+20,y:te.y})}}if(te.y<=q.y){const re=te.x>K.x?te.x+20:K.x+20;if(xe.x>K.x&&xe.y+xe.h>K.y){const be=(xe.x+K.x)/2;H.push({x:be,y:K.y}),H.push({x:be,y:xe.y+xe.h+20}),H.push({x:te.x+20,y:xe.y+xe.h+20}),H.push({x:te.x+20,y:te.y})}else H.push({x:re,y:K.y}),H.push({x:re,y:te.y})}return H.push(te),H}function A(q,K,xe,te){const H=[K];if(te.y<q.y)if(te.x<K.x){const re=(te.y+q.y)/2;H.push({x:K.x+20,y:K.y}),H.push({x:K.x+20,y:re}),H.push({x:te.x,y:re})}else H.push({x:te.x,y:K.y});if(te.y>=q.y&&te.y<K.y){if(xe.x+xe.w<q.x){const re=(xe.x+xe.w+q.x)/2;H.push({x:K.x+20,y:K.y}),H.push({x:K.x+20,y:q.y-20}),H.push({x:re,y:q.y-20}),H.push({x:re,y:te.y+20}),H.push({x:te.x,y:te.y+20})}xe.x+xe.w>=q.x&&te.x<q.x&&(H.push({x:K.x+20,y:K.y}),H.push({x:K.x+20,y:q.y+q.h+20}),H.push({x:te.x,y:q.y+q.h+20})),te.x>K.x&&H.push({x:te.x,y:K.y})}if(te.y>=K.y){if(te.x<=K.x){const re=K.x>xe.x+xe.w?K.x+20:xe.x+xe.w+20,be=te.y>q.y+q.h?te.y+20:q.y+q.h+20;H.push({x:re,y:K.y}),H.push({x:re,y:be}),H.push({x:te.x,y:be})}if(te.x>K.x&&xe.x<=K.x)if(xe.y<=q.y+q.h)H.push({x:xe.x+xe.w+20,y:K.y}),H.push({x:xe.x+xe.w+20,y:te.y+20}),H.push({x:te.x,y:te.y+20});else{const re=(xe.y+(q.y+q.h))/2;H.push({x:K.x+20,y:K.y}),H.push({x:K.x+20,y:re}),H.push({x:xe.x-20,y:re}),H.push({x:xe.x-20,y:te.y+20}),H.push({x:te.x,y:te.y+20})}if(xe.x>K.x){const re=(K.x+xe.x)/2;H.push({x:re,y:K.y}),H.push({x:re,y:te.y+20}),H.push({x:te.x,y:te.y+20})}}return H.push(te),H}function k(q,K,xe,te){const H=[K];if(te.x>K.x){const re=(K.x+te.x)/2;H.push({x:re,y:K.y}),H.push({x:re,y:te.y})}if(te.x<=K.x){if(xe.y+xe.h<q.y){const re=(xe.y+xe.h+q.y)/2;H.push({x:K.x+20,y:K.y}),H.push({x:K.x+20,y:re}),H.push({x:te.x-20,y:re}),H.push({x:te.x-20,y:te.y})}if(xe.y+xe.h>=q.y&&te.y<q.y)if(xe.x+xe.w<q.x){const re=(xe.x+xe.w+q.x)/2;H.push({x:K.x+20,y:K.y}),H.push({x:K.x+20,y:q.y-20}),H.push({x:re,y:q.y-20}),H.push({x:re,y:xe.y+xe.h+20}),H.push({x:te.x-20,y:xe.y+xe.h+20}),H.push({x:te.x-20,y:te.y})}else{const re=xe.x+xe.w>q.x+q.w?xe.x+xe.w+20:q.x+q.w+20,be=xe.y<q.y?xe.y-20:q.y-20;H.push({x:re,y:K.y}),H.push({x:re,y:be}),H.push({x:te.x-20,y:be}),H.push({x:te.x-20,y:te.y})}if(te.y>=q.y&&te.y<q.y+q.h){const re=xe.y<q.y?xe.y-20:q.y-20;H.push({x:K.x+20,y:K.y}),H.push({x:K.x+20,y:re}),H.push({x:te.x-20,y:re}),H.push({x:te.x-20,y:te.y})}if(te.y>=q.y+q.h&&xe.y<q.y+q.h)if(xe.x+xe.w<q.x){const re=(xe.x+xe.w+q.x)/2;H.push({x:K.x+20,y:K.y}),H.push({x:K.x+20,y:q.y+q.h+20}),H.push({x:re,y:q.y+q.h+20}),H.push({x:re,y:xe.y-20}),H.push({x:te.x-20,y:xe.y-20}),H.push({x:te.x-20,y:te.y})}else{const re=xe.y<q.y?xe.y-20:q.y-20,be=xe.x<q.x?xe.x-20:q.x-20;H.push({x:K.x+20,y:K.y}),H.push({x:K.x+20,y:re}),H.push({x:be,y:re}),H.push({x:be,y:te.y})}if(xe.y>=q.y+q.h){const re=(xe.y+(q.y+q.h))/2;H.push({x:K.x+20,y:K.y}),H.push({x:K.x+20,y:re}),H.push({x:te.x-20,y:re}),H.push({x:te.x-20,y:te.y})}}return H.push(te),H}function p(q,K,xe,te){return g(xe,te,q,K).reverse()}function r(q,K,xe,te){return A(xe,te,q,K).reverse()}function x(q,K,xe,te){const H=[K];if(te.y>K.y){const re=(K.y+xe.y)/2;xe.x+xe.w>=K.x&&te.x<K.x?(H.push({x:K.x,y:re}),H.push({x:xe.x+xe.w+20,y:re}),H.push({x:xe.x+xe.w+20,y:te.y+20}),H.push({x:te.x,y:te.y+20})):te.x>=K.x&&xe.x<K.x?(H.push({x:K.x,y:re}),H.push({x:xe.x-20,y:re}),H.push({x:xe.x-20,y:te.y+20}),H.push({x:te.x,y:te.y+20})):(H.push({x:K.x,y:te.y+20}),H.push({x:te.x,y:te.y+20}))}if(te.y<=K.y){const re=(te.y+q.y)/2;te.x>=q.x&&te.x<q.x+q.w/2?(H.push({x:K.x,y:K.y+20}),H.push({x:q.x-20,y:K.y+20}),H.push({x:q.x-20,y:re}),H.push({x:te.x,y:re})):te.x>=q.x+q.w/2&&te.x<q.x+q.w?(H.push({x:K.x,y:K.y+20}),H.push({x:q.x+q.w+20,y:K.y+20}),H.push({x:q.x+q.w+20,y:re}),H.push({x:te.x,y:re})):(H.push({x:K.x,y:K.y+20}),H.push({x:te.x,y:K.y+20}))}return H.push(te),H}function f(q,K,xe,te){return h(xe,te,q,K).reverse()}function u(q,K,xe,te){return l(xe,te,q,K).reverse()}function b(q,K,xe,te){return k(xe,te,q,K).reverse()}function h(q,K,xe,te){const H=[K];if(te.y<K.y&&(te.x<K.x&&H.push({x:te.x,y:K.y}),te.x>=K.x)){if(te.y<q.y){const re=(te.y+q.y)/2;H.push({x:K.x-20,y:K.y}),H.push({x:K.x-20,y:re}),H.push({x:te.x,y:re})}if(te.y>=q.y&&(xe.x<=q.x+q.w&&(H.push({x:K.x-20,y:K.y}),H.push({x:K.x-20,y:q.y+q.h+20}),H.push({x:te.x,y:q.y+q.h+20})),xe.x>q.x+q.w)){const re=(xe.x+(q.x+q.w))/2;H.push({x:K.x-20,y:K.y}),H.push({x:K.x-20,y:q.y-20}),H.push({x:re,y:q.y-20}),H.push({x:re,y:te.y+20}),H.push({x:te.x,y:te.y+20})}}if(te.y>=K.y){if(xe.x+xe.w<K.x){const re=(xe.x+xe.w+K.x)/2;H.push({x:re,y:K.y}),H.push({x:re,y:te.y+20}),H.push({x:te.x,y:te.y+20})}if(xe.x+xe.w>=K.x&&te.x<K.x)if(xe.y<=q.y+q.h)H.push({x:xe.x-20,y:K.y}),H.push({x:xe.x-20,y:te.y+20}),H.push({x:te.x,y:te.y+20});else{const re=(xe.y+(q.y+q.h))/2;H.push({x:K.x-20,y:K.y}),H.push({x:K.x-20,y:re}),H.push({x:xe.x+xe.w+20,y:re}),H.push({x:xe.x+xe.w+20,y:te.y+20}),H.push({x:te.x,y:te.y+20})}if(te.x>=K.x){const re=q.x<xe.x?q.x-20:xe.x-20,be=q.y+q.h>xe.y+xe.h?q.y+q.h+20:xe.y+xe.h+20;H.push({x:re,y:K.y}),H.push({x:re,y:be}),H.push({x:te.x,y:be})}}return H.push(te),H}function E(q,K,xe,te){const H=[K];if(te.x<K.x){const re=(K.x+(xe.x+xe.w))/2;xe.y+xe.h>=K.y&&te.y<K.y?(H.push({x:re,y:K.y}),H.push({x:re,y:xe.y+xe.h+20}),H.push({x:te.x-20,y:xe.y+xe.h+20}),H.push({x:te.x-20,y:te.y})):te.y>=K.y&&xe.y<K.y?(H.push({x:re,y:K.y}),H.push({x:re,y:xe.y-20}),H.push({x:te.x-20,y:xe.y-20}),H.push({x:te.x-20,y:te.y})):(H.push({x:te.x-20,y:K.y}),H.push({x:te.x-20,y:te.y}))}if(te.x>=K.x){const re=(te.x+(q.x+q.w))/2;te.y>=q.y&&te.y<q.y+q.h/2?(H.push({x:K.x-20,y:K.y}),H.push({x:K.x-20,y:q.y-20}),H.push({x:re,y:q.y-20}),H.push({x:re,y:te.y})):te.y>=q.y+q.h/2&&te.y<q.y+q.h?(H.push({x:K.x-20,y:K.y}),H.push({x:K.x-20,y:q.y+q.h+20}),H.push({x:re,y:q.y+q.h+20}),H.push({x:re,y:te.y})):(H.push({x:K.x-20,y:K.y}),H.push({x:K.x-20,y:te.y}))}return H.push(te),H}const z={toptop:o,topright:m,topbottom:g,topleft:l,righttop:C,rightright:T,rightbottom:A,rightleft:k,bottomtop:p,bottomright:r,bottombottom:x,bottomleft:f,lefttop:u,leftright:b,leftbottom:h,leftleft:E};var S=e(28868);function _(q,K){const xe={};switch(K){case"top":xe.x=q.x+q.w/2,xe.y=q.y;break;case"right":xe.x=q.x+q.w,xe.y=q.y+q.h/2;break;case"bottom":xe.x=q.x+q.w/2,xe.y=q.y+q.h;break;case"left":xe.x=q.x,xe.y=q.y+q.h/2;break;default:break}return xe}function y(q,K){const xe={};switch(K){case"top":xe.x=q.x+q.w/2,xe.y=q.y-20;break;case"right":xe.x=q.x+q.w+20,xe.y=q.y+q.h/2;break;case"bottom":xe.x=q.x+q.w/2,xe.y=q.y+q.h+20;break;case"left":xe.x=q.x-20,xe.y=q.y+q.h/2;break;default:break}return xe}function a(q,K,xe){const te=Math.atan2(K.y-xe.y,xe.x-K.x)*(180/Math.PI),H=(K.x+xe.x)/2,re=(K.y+xe.y)/2,be=[K];switch(q){case"top":Math.abs(xe.x-K.x)>5?(te>=-135&&te<=-45?(be.push({x:K.x,y:re}),be.push({x:xe.x,y:re})):be.push({x:K.x,y:xe.y}),be.push(xe)):be.push({x:K.x,y:xe.y});break;case"right":Math.abs(xe.y-K.y)>5?(te>=-45&&te<=45?(be.push({x:H,y:K.y}),be.push({x:H,y:xe.y})):be.push({x:xe.x,y:K.y}),be.push(xe)):be.push({x:xe.x,y:K.y});break;case"bottom":Math.abs(xe.x-K.x)>5?(te>=45&&te<=135?(be.push({x:K.x,y:re}),be.push({x:xe.x,y:re})):be.push({x:K.x,y:xe.y}),be.push(xe)):be.push({x:K.x,y:xe.y});break;case"left":Math.abs(xe.y-K.y)>5?(te>=135&&te<=180||te>=-180&&te<=-135?(be.push({x:H,y:K.y}),be.push({x:H,y:xe.y})):be.push({x:xe.x,y:K.y}),be.push(xe)):be.push({x:xe.x,y:K.y});break;default:be.push(xe);break}return be}function $(q,K,xe,te){const H=Math.atan2(xe.y-te.y,te.x-xe.x)*(180/Math.PI),re=(xe.x+te.x)/2,be=(xe.y+te.y)/2,Le=[xe];switch(q){case"top":te.y<=xe.y-10&&(Math.abs(te.x-xe.x)>5?((H<45||H>135)&&Le.push({x:xe.x,y:te.y}),H>=45&&H<=135&&(Le.push({x:xe.x,y:be}),Le.push({x:te.x,y:be})),Le.push(te)):Le.push({x:xe.x,y:te.y})),te.y>xe.y-10&&te.y<=xe.y&&(Math.abs(te.x-xe.x)>5?(Le.push({x:xe.x,y:xe.y-10}),Le.push({x:te.x,y:xe.y-10})):Le.push({x:xe.x,y:xe.y-10})),te.y>xe.y&&(Le.push({x:xe.x,y:xe.y-20}),(te.x<=K.x-20||te.x>=K.x+K.w+20)&&Le.push({x:te.x,y:xe.y-20}),te.x>K.x-20&&te.x<=K.x+K.w/2&&(Le.push({x:K.x-20,y:xe.y-20}),Le.push({x:K.x-20,y:te.y})),te.x>K.x+K.w/2&&te.x<K.x+K.w+20&&(Le.push({x:K.x+K.w+20,y:xe.y-20}),Le.push({x:K.x+K.w+20,y:te.y})),Le.push(te));break;case"right":te.x>=xe.x+10&&(Math.abs(te.y-xe.y)>5?((H>45||H<-45)&&Le.push({x:te.x,y:xe.y}),H>=-45&&H<=45&&(Le.push({x:re,y:xe.y}),Le.push({x:re,y:te.y})),Le.push(te)):Le.push({x:te.x,y:xe.y})),te.x>=xe.x&&te.x<xe.x+10&&(Math.abs(te.y-xe.y)>5?(Le.push({x:xe.x+10,y:xe.y}),Le.push({x:xe.x+10,y:te.y})):Le.push({x:xe.x+10,y:xe.y})),te.x<xe.x&&(Le.push({x:xe.x+20,y:xe.y}),(te.y<=K.y-20||te.y>=K.y+K.h+20)&&Le.push({x:xe.x+20,y:te.y}),te.y>K.y-20&&te.y<=K.y+K.h/2&&(Le.push({x:xe.x+20,y:K.y-20}),Le.push({x:te.x,y:K.y-20})),te.y>K.y+K.h/2&&te.y<K.y+K.h+20&&(Le.push({x:xe.x+20,y:K.y+K.h+20}),Le.push({x:te.x,y:K.y+K.h+20})),Le.push(te));break;case"bottom":te.y>=xe.y+10&&(Math.abs(te.x-xe.x)>5?((H<-135||H>-45)&&Le.push({x:xe.x,y:te.y}),H>=-135&&H<=-45&&(Le.push({x:xe.x,y:be}),Le.push({x:te.x,y:be})),Le.push(te)):Le.push({x:xe.x,y:te.y})),te.y<xe.y+10&&te.y>=xe.y&&(Math.abs(te.x-xe.x)>5?(Le.push({x:xe.x,y:xe.y+10}),Le.push({x:te.x,y:xe.y+10})):Le.push({x:xe.x,y:xe.y+10})),te.y<xe.y&&(Le.push({x:xe.x,y:xe.y+20}),(te.x<=K.x-20||te.x>=K.x+K.w+20)&&Le.push({x:te.x,y:xe.y+20}),te.x>K.x-20&&te.x<=K.x+K.w/2&&(Le.push({x:K.x-20,y:xe.y+20}),Le.push({x:K.x-20,y:te.y})),te.x>K.x+K.w/2&&te.x<K.x+K.w+20&&(Le.push({x:K.x+K.w+20,y:xe.y+20}),Le.push({x:K.x+K.w+20,y:te.y})),Le.push(te));break;case"left":te.x<=xe.x-10&&(Math.abs(te.y-xe.y)>5?((H<135||H>-135)&&Le.push({x:te.x,y:xe.y}),(H>=135&&H<=180||H>=-180&&H<=-135)&&(Le.push({x:re,y:xe.y}),Le.push({x:re,y:te.y})),Le.push(te)):Le.push({x:te.x,y:xe.y})),te.x>xe.x-10&&te.x<=xe.x&&(Math.abs(te.y-xe.y)>5?(Le.push({x:xe.x-10,y:xe.y}),Le.push({x:xe.x-10,y:te.y})):Le.push({x:xe.x-10,y:xe.y})),te.x>xe.x&&(Le.push({x:xe.x-20,y:xe.y}),(te.y<=K.y-20||te.y>=K.y+K.h+20)&&Le.push({x:xe.x-20,y:te.y}),te.y>K.y-20&&te.y<=K.y+K.h/2&&(Le.push({x:xe.x-20,y:K.y-20}),Le.push({x:te.x,y:K.y-20})),te.y>K.y+K.h/2&&te.y<K.y+K.h+20&&(Le.push({x:xe.x-20,y:K.y+K.h+20}),Le.push({x:te.x,y:K.y+K.h+20})),Le.push(te));break;default:Le.push(te);break}return Le}function ce(q,K,xe,te){const H=[K],re=(K.x+te.x)/2,be=(K.y+te.y)/2;switch(q+"&"+xe){case"top&top":H.push({x:K.x,y:be}),H.push({x:te.x,y:be});break;case"top&right":H.push({x:K.x,y:te.y});break;case"top&bottom":H.push({x:K.x,y:be}),H.push({x:te.x,y:be});break;case"top&left":H.push({x:K.x,y:te.y});break;case"right&top":H.push({x:te.x,y:K.y});break;case"right&right":H.push({x:re,y:K.y}),H.push({x:re,y:te.y});break;case"right&bottom":H.push({x:te.x,y:K.y});break;case"right&left":H.push({x:re,y:K.y}),H.push({x:re,y:te.y});break;case"bottom&top":H.push({x:K.x,y:be}),H.push({x:te.x,y:be});break;case"bottom&right":H.push({x:K.x,y:te.y});break;case"bottom&bottom":H.push({x:K.x,y:be}),H.push({x:te.x,y:be});break;case"bottom&left":H.push({x:K.x,y:te.y});break;case"left&top":H.push({x:te.x,y:K.y});break;case"left&right":H.push({x:re,y:K.y}),H.push({x:re,y:te.y});break;case"left&bottom":H.push({x:te.x,y:K.y});break;case"left&left":H.push({x:re,y:K.y}),H.push({x:re,y:te.y});break;default:break}return H.push(te),H}function de(q,K,xe){const te=_(q,K),H=_(q,xe),re=y(q,"top"),be=y(q,"right"),Le=y(q,"bottom"),Ve=y(q,"left"),Ne=[te];switch(K+"&"+xe){case"top&right":Ne.push(re),Ne.push({x:be.x,y:re.y}),Ne.push(be);break;case"top&bottom":Ne.push(re),Ne.push({x:be.x,y:re.y}),Ne.push({x:be.x,y:Le.y}),Ne.push(Le);break;case"top&left":Ne.push(re),Ne.push({x:Ve.x,y:re.y}),Ne.push(Ve);break;case"right&top":Ne.push(be),Ne.push({x:be.x,y:re.y}),Ne.push(re);break;case"right&bottom":Ne.push(be),Ne.push({x:be.x,y:Le.y}),Ne.push(Le);break;case"right&left":Ne.push(be),Ne.push({x:be.x,y:Le.y}),Ne.push({x:Ve.x,y:Le.y}),Ne.push(Ve);break;case"bottom&top":Ne.push(Le),Ne.push({x:be.x,y:Le.y}),Ne.push({x:be.x,y:re.y}),Ne.push(re);break;case"bottom&right":Ne.push(Le),Ne.push({x:be.x,y:Le.y}),Ne.push(be);break;case"bottom&left":Ne.push(Le),Ne.push({x:Ve.x,y:Le.y}),Ne.push(Ve);break;case"left&top":Ne.push(Ve),Ne.push({x:Ve.x,y:re.y}),Ne.push(re);break;case"left&right":Ne.push(Ve),Ne.push({x:Ve.x,y:Le.y}),Ne.push({x:be.x,y:Le.y}),Ne.push(be);break;case"left&bottom":Ne.push(Ve),Ne.push({x:Ve.x,y:Le.y}),Ne.push(Le);break;default:break}return Ne.push(H),Ne}var fe=e(58197);function se(q,K,xe,te,H,re){if(xe)return H?(0,S.RR)(q,K,!0,!1):(0,S.RR)(q,K,re==="end",re==="start");if(te)return[q,K];const be=Math.atan2(q.y-K.y,K.x-q.x)*(180/Math.PI),Le=[];return Le.push(q),(be>-45&&be<=45||be>135&&be<=180||be>-180&&be<=-135)&&(Le.push({x:(q.x+K.x)/2,y:q.y}),Le.push({x:(q.x+K.x)/2,y:K.y})),(be>45&&be<=135||be>-135&&be<=-45)&&(Le.push({x:q.x,y:(q.y+K.y)/2}),Le.push({x:K.x,y:(q.y+K.y)/2})),Le.push(K),Le}function J(q,K,xe,te,H,re,be,Le){return H?be?(0,S.RR)(q,K,!0,!1):(0,S.RR)(q,K,!0,Le!=="end"):re?[q,K]:fe.rw.contains(te,K)?a(xe,q,K):$(xe,te,q,K)}function ve(q,K,xe,te,H,re,be,Le){return H?be?(0,S.RR)(q,K,!0,!0):(0,S.RR)(q,K,Le!=="start",!0):re?[q,K]:J(K,q,xe,te,!1,!1,!1,Le).reverse()}function D(q,K,xe,te,H,re,be,Le,Ve){if(Le||Ve)return[q,K];if(be)return de(H,xe,te);if(fe.rw.contains(H,K))return ce(xe,q,te,K);if(fe.rw.contains(re,q))return ce(te,K,xe,q).reverse();const ze=""+xe+te;return z[ze]?z[ze](H,q,re,K):[q,K]}function R(q){return(0,S.ZT)(q)}function V(q,K,xe,te,H,re,be,Le,Ve,Ne,We,ze,ft,mt){if(ft&&mt)return D(te,Le,K,re,xe,be,q===H,Ve,Ne);if(ft&&!mt)return J(te,Le,K,xe,Ve,Ne,We,ze);if(!ft&&mt)return ve(te,Le,re,be,Ve,Ne,We,ze);if(!mt&&!mt)return se(te,Le,Ve,Ne,We,ze)}function O(q,K,xe,te){const H=[],re=q;H.push(re);const be=Math.atan2(xe.y-te.y,te.x-xe.x)*(180/Math.PI),Ve=(0,S.b4)(be)==="horizontal"?"vertical":"horizontal",Ne=K;return Ve==="horizontal"?(Ne.x=K.x,Ne.y=re.y):(Ne.y=K.y,Ne.x=re.x),H.push(Ne),H}function Ce(q,K,xe,te){const H=[],re=q;H.push(re);const be=Math.atan2(K.y-xe.y,xe.x-K.x)*(180/Math.PI),Ve=(0,S.b4)(be)==="horizontal"?"vertical":"horizontal",Ne=te;return Ve==="horizontal"?(Ne.x=te.x,Ne.y=re.y):(Ne.y=te.y,Ne.x=re.x),H.push(Ne),H.reverse()}function ae(q,K,xe,te,H,re){const be=[],Le=JSON.parse(JSON.stringify(q)),Ve=Le.length;for(let ze=0;ze<Ve-1;ze+=1){const ft=Le[ze],mt=Le[ze+1],i=Math.atan2(ft.y-mt.y,mt.x-ft.x)*(180/Math.PI);be.push({from:ft,to:mt,fromIndex:ze,toIndex:ze+1,direction:(0,S.b4)(i)})}const Ne=Math.round(K.x),We=Math.round(K.y);return be.forEach((ze,ft)=>{if(ze.fromIndex===xe&&ze.toIndex===te){const mt=ze;let i=null,gt=null;if(ft-2>=0&&(i=be[ft-2]),ft+2<=be.length-1&&(gt=be[ft+2]),i&>){if(H==="vertical")if(i.to.y===gt.to.y)Math.abs(K.y-i.to.y)<=re?(mt.from.y=i.to.y,mt.to.y=i.to.y):(mt.from.y=We,mt.to.y=We);else{const Je=Math.abs(i.to.y-K.y),Pt=Math.abs(gt.to.y-K.y);Je<=Pt?Math.abs(K.y-i.to.y)<=re?(mt.from.y=i.to.y,mt.to.y=i.to.y):(mt.from.y=We,mt.to.y=We):Math.abs(K.y-gt.to.y)<=re?(mt.from.y=gt.to.y,mt.to.y=gt.to.y):(mt.from.y=We,mt.to.y=We)}if(H==="horizontal")if(i.to.x===gt.to.x)Math.abs(K.x-i.to.x)<=re?(mt.from.x=i.to.x,mt.to.x=i.to.x):(mt.from.x=Ne,mt.to.x=Ne);else{const Je=Math.abs(i.to.x-K.x),Pt=Math.abs(gt.to.x-K.x);Je<=Pt?Math.abs(K.x-i.to.x)<=re?(mt.from.x=i.to.x,mt.to.x=i.to.x):(mt.from.x=Ne,mt.to.x=Ne):Math.abs(K.x-gt.to.x)<=re?(mt.from.x=gt.to.x,mt.to.x=gt.to.x):(mt.from.x=Ne,mt.to.x=Ne)}}i&&!gt&&(H==="vertical"&&(Math.abs(K.y-i.to.y)<=re?(mt.from.y=i.to.y,mt.to.y=i.to.y):(mt.from.y=We,mt.to.y=We)),H==="horizontal"&&(Math.abs(K.x-i.to.x)<=re?(mt.from.x=i.to.x,mt.to.x=i.to.x):(mt.from.x=Ne,mt.to.x=Ne))),!i&>&&(H==="vertical"&&(Math.abs(K.y-gt.to.y)<=re?(mt.from.y=gt.to.y,mt.to.y=gt.to.y):(mt.from.y=We,mt.to.y=We)),H==="horizontal"&&(Math.abs(K.x-gt.to.x)<=re?(mt.from.x=gt.to.x,mt.to.x=gt.to.x):(mt.from.x=Ne,mt.to.x=Ne))),!i&&!gt&&(H==="vertical"&&(mt.from.y=We,mt.to.y=We),H==="horizontal"&&(mt.from.x=Ne,mt.to.x=Ne))}}),[be[0].from].concat(be.map(ze=>ze.to))}},60180:(Et,ke,e)=>{"use strict";e.d(ke,{X:()=>k});var o=e(58197),m=e(2302),g=e(57488),l=e(28868),C=e(70999),T=function(p){return p.Update="Update",p.Delete="Delete",p.None="None",p}(T||{});const A=p=>{let{refFromKey:r,refToKey:x,isUseWorldBound:f,isRefFromExist:u,isRefToExist:b}=p,h,E;if(u&&b){var N,z;if(((N=sdkStore.getHotItem(r))==null?void 0:N.sup)!==((z=sdkStore.getHotItem(x))==null?void 0:z.sup)){const{x:S,y:_,w:y,h:a}=sdkStore.getHotBound(x);E=(0,l.fL)(S,_,y,a);{const{x:$,y:ce,w:de,h:fe}=sdkStore.getHotBound(r);h=(0,l.fL)($,ce,de,fe)}}else if(f){const{x:S,y:_,w:y,h:a}=sdkStore.getHotBound(x);E=(0,l.fL)(S,_,y,a);{const{x:$,y:ce,w:de,h:fe}=sdkStore.getHotBound(r);h=(0,l.fL)($,ce,de,fe)}}else{const{x:S,y:_,w:y,h:a}=sdkStore.getLocalBound(x);E=(0,l.fL)(S,_,y,a);{const{x:$,y:ce,w:de,h:fe}=sdkStore.getLocalBound(r);h=(0,l.fL)($,ce,de,fe)}}}else if(u)if(f){const{x:S,y:_,w:y,h:a}=sdkStore.getHotBound(r);h=(0,l.fL)(S,_,y,a)}else{const{x:S,y:_,w:y,h:a}=sdkStore.getLocalBound(r);h=(0,l.fL)(S,_,y,a)}else if(b)if(f){const{x:S,y:_,w:y,h:a}=sdkStore.getHotBound(x);E=(0,l.fL)(S,_,y,a)}else{const{x:S,y:_,w:y,h:a}=sdkStore.getLocalBound(x);E=(0,l.fL)(S,_,y,a)}return{fromItemRect:h,toItemRect:E}},k=function(p,r){r===void 0&&(r=!1);const{currentElbowItem:x,startPickPoint:f,endPickPoint:u,isAdjust:b,moveAnchor:h,dragCid:E,elbowKey:N,isUpdateByRef:z}=p;if(!f||!u||!x)return;const S=!1,_=!1,{x:y,y:a,key:$,direction:ce}=f,{x:de,y:fe,key:se,direction:J}=u,ve={x:y,y:a},D={x:de,y:fe},{isRefFromExist:R,isRefToExist:V}=(0,C.v)(N,$,se),{fromItemRect:O,toItemRect:Ce}=A({refFromKey:$,refToKey:se,isUseWorldBound:r,isRefFromExist:R,isRefToExist:V});let ae=[];const{x:q,y:K,elbow:xe,w:te,h:H}=x.hotAttr,re=q-te*.5,be=K-H*.5,Le=(0,l.Ui)(m.Z.xy(re,be),xe.dPathList||[]),Ve=[],Ne=[];Le.forEach((bt,qt)=>{bt.isAdjusted&&(Ve.push(bt),Ne.push(qt))});const We=Le.length;if(Ve.length<2||b){const bt=(0,g.Mj)($,ce,O,ve,se,J,Ce,D,E?!1:_,xe.elbowType==="straight",S,h,R,V);ae=(0,g.rD)(bt).map(qt=>({...qt,x:Math.round(qt.x),y:Math.round(qt.y)}))}else{let bt,qt;if(h){if(h==="start"){const[pt,$t,go,Co]=Le;let Tt="1",mo,jo,Kt;if(!pt.isAdjusted&&!$t.isAdjusted?(mo=go,Kt=3,jo=Co,Tt="2"):pt.isAdjusted||(mo=$t,Kt=2,jo=go,Tt="1"),qt=Le.slice(Kt,Le.length),z&&Tt==="2"){let Ft,nt;pt.y===$t.y?nt={x:$t.x,y:ve.y,isAdjusted:!0}:pt.x===$t.x&&(nt={x:ve.x,y:$t.y,isAdjusted:!0}),$t.y===go.y?Ft={x:go.x,y:nt.y,isAdjusted:!0}:$t.x===go.x&&(Ft={x:nt.x,y:go.y,isAdjusted:!0}),bt=[ve,nt,Ft]}else{const Ft=Le[Kt+1],nt=(0,g.Wz)({...ve},mo,jo,Ft);bt=(0,g.rD)(nt).map(Rt=>{const yt=Rt;return{...Rt,x:Math.round(yt.x),y:Math.round(yt.y)}}),bt[bt.length-1].isAdjusted=!0}ae=bt.concat(qt)}if(h==="end"){let pt,$t,go;const[Co,Tt,mo,jo]=Le.slice(-4);let Kt="1";if(!jo.isAdjusted&&!mo.isAdjusted?(go=We-4,pt=Co,$t=Tt,Kt="2"):jo.isAdjusted||(go=We-3,pt=Tt,$t=mo,Kt="1"),bt=Le.slice(0,go+1),z&&Kt==="2"){let Ft,nt;jo.y===mo.y?nt={x:mo.x,y:D.y,isAdjusted:!0}:jo.x===mo.x&&(nt={x:D.x,y:mo.y,isAdjusted:!0}),mo.y===Tt.y?Ft={x:Tt.x,y:nt.y,isAdjusted:!0}:mo.x===Tt.x&&(Ft={x:nt.x,y:Tt.y,isAdjusted:!0}),qt=[Ft,nt,D]}else{const Ft=Le[go-1],nt=(0,g.hC)({...D},{...Ft},{...pt},{...$t});qt=(0,g.rD)(nt).map(Rt=>{const yt=Rt;return{...Rt,x:Math.round(yt.x),y:Math.round(yt.y)}}),qt[0].isAdjusted=!0}ae=bt.concat(qt)}}}if(ae.length<2)return{type:T.None,data:null};const ze=o.rw.enclosing(ae),ft=ze.w,mt=ze.h,i=ze.x+ft*.5,gt=ze.y+mt*.5,Je=(0,l.uK)(m.Z.xy(ze.x,ze.y),ae),Pt={...x,hotAttr:{...x.hotAttr,elbow:{...x.hotAttr.elbow,fromDirection:ce,toDirection:J,dPathList:Je},refToKey:se,refFromKey:$,x:i,y:gt,w:ft,h:mt}};return{type:T.Update,data:Pt}}},15101:(Et,ke,e)=>{"use strict";e.d(ke,{Nj:()=>g,av:()=>T});function o(A){return A*Math.PI/180}function m(A,k,p){const r=o(p),x=Math.cos(r),f=Math.sin(r),[u,b]=k,h=A.x-u,E=A.y-b;return{x:h*x-E*f+u,y:h*f+E*x+b}}const g=(A,k)=>{const{x:p,y:r,w:x,h:f,r:u}=A;let b;switch(k){case"top":b={x:p,y:r-f/2};break;case"bottom":b={x:p,y:r+f/2};break;case"left":b={x:p-x/2,y:r};break;case"right":b={x:p+x/2,y:r};break;default:break}if(b)return m(b,[p,r],u)};function l(A){return Math.abs(Math.sin(o(A)))}function C(A){return Math.abs(Math.cos(o(A)))}function T(A,k){k===void 0&&(k="deg");let p;if(k==="deg")p=A-A%45;else{let r=Math.round(A*(180/Math.PI));r=r-r%45,p=r*Math.PI/180}return p}},37738:(Et,ke,e)=>{"use strict";e.d(ke,{R:()=>b,Z1:()=>f,b:()=>u,eO:()=>S});var o=e(35332),m=e(75522),g=e(2302),l=e(37051),C=e(60180),T=e(28868),A=e(66802),k=e(72868),p=e(89104),r=e(2285),x=e(331);const f=(y,a)=>{const $=(0,m.rZ)("\u8FDE\u63A5\u7EBF",(0,l._)(a));$.x=y.x,$.y=y.y,$.w=50,$.h=50;const ce=(0,r.w)();$.elbow={...$.elbow,...ce},$.elbow.elbowType==="curve"?$.elbow.dPathList=[...x.XS]:$.elbow.dPathList=[{x:0,y:0,isAdjusted:!1},{x:50,y:50,isAdjusted:!1}],(0,A.rp)($);const de=(0,o.cF)(),fe={key:de,sup:a,hotAttr:$};return sdkStore.updateHotItem(fe),de},u=function(y,a){let{elbowKey:$,moveAnchor:ce,worldPos:de,refKey:fe,direction:se,isUseWroldBound:J=!1,isUpdateByRef:ve=!1}=y;a===void 0&&(a=sdkStore.getHotItem($));const D={...de,key:fe,direction:se};if(a.hotAttr.elbow.elbowType==="curve")return _({currentElbowItem:a,cursorWorldPos:D,moveAnchor:ce,nextPickPoint:D});const R=a.hotAttr,{x:V,y:O,elbow:Ce,w:ae,h:q,refFromKey:K,refToKey:xe}=R,te=V-ae*.5,H=O-q*.5,{dPathList:re,fromDirection:be,toDirection:Le}=Ce;let Ve;if(ce==="start"){const We=(0,T.Ui)(g.Z.xy(te,H),[re[re.length-1]])[0];Ve={elbowKey:$,currentElbowItem:a,moveAnchor:ce,startPickPoint:D,endPickPoint:{...We,key:xe,direction:Le},isUpdateByRef:ve}}else{const We=(0,T.Ui)(g.Z.xy(te,H),[re[0]])[0];Ve={elbowKey:$,currentElbowItem:a,moveAnchor:ce,startPickPoint:{...We,key:K,direction:be},endPickPoint:D,isUpdateByRef:ve}}const{data:Ne}=(0,C.X)(Ve,J);return Ne},b=(y,a)=>{let $,ce;return a==="curve"?($=y[0],ce=y.at(-1)):($=y.at(-2),ce=y.at(-1)),parseInt($.x)===parseInt(ce.x)?parseInt($.y)<parseInt(ce.y)?"down":"up":parseInt($.x)<parseInt(ce.x)?"right":"left"};function h(y,a,$){const ce=$*Math.PI/180,de=y*Math.cos(ce)-a*Math.sin(ce),fe=y*Math.sin(ce)+a*Math.cos(ce);return{x:de,y:fe}}const E=y=>{const{prev:a,next:$}=(0,k.wX)(y,1);y[1].prev=a,y[1].next=$},N=Math.cos(10*Math.PI/180),z=Math.sin(10*Math.PI/180),S=y=>{const a=y[0],$=y[2],ce={x:$.x-a.x,y:$.y-a.y};let de=Math.sqrt(ce.x*ce.x+ce.y*ce.y)/2/N*z;$.y<a.y&&(de=-de);const J={x:{x:Math.sqrt(ce.x*ce.x+ce.y*ce.y)/2,y:de}.x,y:de},ve=Math.atan2($.y-a.y,$.x-a.x)*(180/Math.PI),D=h(J.x,J.y,ve),R={x:D.x+a.x,y:D.y+a.y};y[1].x=R.x,y[1].y=R.y;const{prev:V,next:O}=(0,k.wX)(y,1);y[1].prev=V,y[1].next=O,y[1].type="mirrored"},_=y=>{let{currentElbowItem:a,moveAnchor:$,cursorWorldPos:ce,nextPickPoint:de}=y;const{dPathList:fe,middleIsAdjusted:se}=a.hotAttr.elbow,J=(0,k.YW)(a.key,{closed:!1,points:fe});let ve;if(de.key){const K=de;ve=J.inverted().apply({x:Math.round(K.x),y:Math.round(K.y)})}else ve=J.inverted().apply({x:Math.round(ce.x),y:Math.round(ce.y)});const D=JSON.parse(JSON.stringify(fe));$==="start"?(D[0].x=ve.x,D[0].y=ve.y,se?E(D):S(D)):$==="end"?(D[2].x=ve.x,D[2].y=ve.y,se?E(D):S(D)):(D[1].x=ve.x,D[1].y=ve.y);const R={closed:!1,points:D},{x:V,y:O,w:Ce,h:ae}=(0,p.zh)({key:a.key,vector:R}),q={x:V,y:O,w:Ce,h:ae,elbow:{...a.hotAttr.elbow,dPathList:D}};return $==="start"?(q.refFromKey=de.key,q.elbow.fromDirection=de.direction):$==="end"?(q.refToKey=de.key,q.elbow.toDirection=de.direction):q.elbow.middleIsAdjusted=!0,{...a,hotAttr:{...a.hotAttr,...q}}}},70999:(Et,ke,e)=>{"use strict";e.d(ke,{v:()=>o});const o=(m,g,l)=>{let C=!!g,T=!!l;const A=sdkStore.locUpRBPageKey(m);return C&&(C=sdkStore.locUpRBPageKey(g)===A),T&&(T=sdkStore.locUpRBPageKey(l)===A),{isRefFromExist:C,isRefToExist:T}}},56693:(Et,ke,e)=>{"use strict";e.d(ke,{NX:()=>f,XQ:()=>p,kY:()=>b,s3:()=>u,sV:()=>r});var o=e(68496),m=e(46927),g=e(63555),l=e(57465),C=e(88223),T=e(35473),A=e(45411),k=e(17383);const p=["text_view",g.x.WMTooltip,g.x.WPlaceholder];function r(h){if(m.VV.includes(h.type)){const N=(0,l.YZ)(h.textV1);return(0,C.wh)(N)}else{if(p.includes(h.type))return h.type===g.x.WPlaceholder?'<div class="text" style="background-color: ">'+(0,C.c1)(h.textV0.text)+"</div>":'<div class="text">'+(0,C.c1)(h.textV0.text)+"</div>";if([g.x.WMSelect,g.x.WElbow].includes(h.type))return(0,C.c1)(h.textV0.text);if(h.type===g.x.WWebpage)return(0,C.wh)(h.webpage.url);if(h.type===g.x.WMTextInput||h.type===g.x.WMTextArea)return h.type===g.x.WMTextArea?(0,C.c1)(h.textInput.prefillTextV0):(0,C.wh)(h.textInput.prefillTextV0||"");var E;return(0,C.wh)(((E=h.textV0)==null?void 0:E.text)||"")}}const x=h=>{let{w:E,needPlaceHolder:N}=h,z;return N?z=(0,o.t0)(E.textV0.textColor):z=(0,o.t0)(E.textInput.prefillTextColorV0),z};function f(h,E){var N,z,S,_,y,a,$,ce,de,fe,se,J,ve,D;const{widget:R}=h;let V=0,O=0,Ce=R.w,ae=R.h,q=(N=R.textV0)!=null&&N.paddingTuple?(0,A.JG)((z=R.textV0)==null?void 0:z.paddingTuple):{padding:((S=R.textV0)==null?void 0:S.padding)+"px"},K="transparent",xe="flex",te=R.textV0?(0,o.t0)(R.textV0.textColor):"rgb(102, 102, 102)",H=(_=R.textV0)==null?void 0:_.verticalAlign,re=(y=R.textV0)==null?void 0:y.horizontalAlign;const be=((a=R.textV0)==null?void 0:a.lineHeight)+"px";let Le=null,Ve={},Ne={};switch(R.type){case g.x.WMSelect:{O=-6,V=-2,ae=200,K="white",xe="block",re=void 0,Ne={boxShadow:"0px 2px 14px 0px rgba(0,0,0,0.08)",borderRadius:"6px"},Ce=Ce+4;break}case g.x.WMTextArea:{const We=Math.max(Math.round(R.textV0.padding-(R.textV0.lineHeight-R.textV0.fontSize)/2),0);q={padding:We+1+"px "+R.textV0.padding+"px "+We+"px "+(R.textV0.padding+1)+"px"},H=void 0,xe="block",V=1,te=x({w:R,needPlaceHolder:E});break}case g.x.WMTextInput:{const We=R.border.bdrWidth;E&&(Ne={lineHeight:ae-2*We+"px"}),q={padding:"0 8px"},te=x({w:R,needPlaceHolder:E}),V=1,Le="nowrap";break}case g.x.WWebpage:{ae=50,q={paddingTop:"11px",paddingRight:"0",paddingBottom:"0",paddingLeft:"86px"};break}case g.x.WElbow:{const{elbow:{dPathList:We,elbowType:ze}}=R,{x:ft,y:mt}=(0,T.zG)(We,ze),i=(0,T.X)(R,E);xe="block",V=ft,O=mt,q={paddingTop:"4px",paddingRight:"6px",paddingBottom:"4px",paddingLeft:"6px"},K=E?"transparent":"#fff",Ve={width:"max-content",height:"auto",transform:"translateX(-50%) translateY(-50%)",minWidth:i}}}return{display:xe,top:O+"px",left:V+"px",width:Ce+"px",height:ae+"px",backgroundColor:K,justifyContent:($=R.textV0)==null?void 0:$.horizontalAlign,fontSize:((ce=R.textV0)==null?void 0:ce.fontSize)+"px",lineHeight:be,color:te,alignItems:H,textAlign:re,...q,fontWeight:(0,k._y)(R==null||(de=R.textV0)==null?void 0:de.fontWeight,R==null||(fe=R.textV0)==null?void 0:fe.bold),fontStyle:(se=R.textV0)!=null&&se.italic?"italic":"",textDecoration:(J=R.textV0)==null?void 0:J.textDecoration,fontFamily:((ve=R.textV0)==null?void 0:ve.fontFamily)||"PingFangSC",whiteSpace:Le,cursor:"text",letterSpacing:((D=R.textV0)==null?void 0:D.letterSpacing)||0,...Ve,...Ne}}const u=h=>{const E=h.type===g.x.WElbow?I18N.Widget.text:h.textV0.text,N=h.type===g.x.WElbow?"#666666":(0,o.t0)(h.textV0.textColor),z=f({widget:h},!1);return z.overflowX="hidden",z.color=N,z.wordWrap="break-word",z.position="absolute",h.type===g.x.WMTextInput&&(z.overflowY="hidden"),{placeholderHTML:E,placeholderStyle:z}},b=h=>{let{type:E}=h;return[g.x.WMTextArea,g.x.WMTextInput].includes(E)}},39015:(Et,ke,e)=>{"use strict";e.d(ke,{p:()=>o});const o=g=>g<=20?m[g]:g>=21&&g<=24?24:g>=25&&g<=29?20:g>=30&&g<=31?17:g>=32&&g<=38?16:g>=39&&g<=45?13:g>=46&&g<=49?11:g>=50&&g<=62?10:g>=63&&g<=71?8:g>=72&&g<=83?7:g>=84&&g<=99?6:g>=100&&g<=124?5:g>=125&&g<=166?4:g>=167&&g<=249?3:g>=250&&g<=500?2:0,m=[334,270,170,137,112,92,75,75,56,50,50,49,41,41,34,34,34,28,28,27]},20154:(Et,ke,e)=>{"use strict";e.d(ke,{Uu:()=>A,dZ:()=>g,z9:()=>C});var o=e(51691),m=e(36820),g=function(k){return k[k.Toolbar=1]="Toolbar",k[k.ShortCut=2]="ShortCut",k[k.TransformDoubleClick=3]="TransformDoubleClick",k[k.TransformSettingPanel=4]="TransformSettingPanel",k}(g||{});const l={[g.Toolbar]:"\u9876\u90E8\u680F\u5355\u51FB",[g.ShortCut]:"\u5FEB\u6377\u952E",[g.TransformDoubleClick]:"\u7EC4\u4EF6\u8F6C\u6362-\u53CC\u51FB\u8DEF\u5F84",[g.TransformSettingPanel]:"\u7EC4\u4EF6\u8F6C\u6362-\u53F3\u4FA7\u9762\u677F\u6309\u94AE"};var C=function(k){return k[k.Enter=1]="Enter",k[k.Esc=2]="Esc",k[k.ClickBlank=3]="ClickBlank",k[k.Exit=4]="Exit",k[k.Other=5]="Other",k}(C||{});const T={[C.Enter]:"Enter",[C.Esc]:"Esc",[C.ClickBlank]:"\u70B9\u51FB\u7A7A\u767D",[C.Exit]:"\u70B9\u51FB\u5B8C\u6210\u7F16\u8F91",[C.Other]:"\u5176\u4ED6"},A=(k,p,r)=>{(0,m.kH)("add_vector_V8",{source:l[k],vector_type:p?"\u95ED\u5408":"\u975E\u95ED\u5408",vector_finish:T[r]}),o.Y4.editProjectNew("\u65B0\u5EFA\u77E2\u91CF")}},55793:(Et,ke,e)=>{"use strict";e.d(ke,{V:()=>k,X:()=>A});var o=e(29815),m=e(23567),g=e(51044),l=e(44622),C=e(29601),T=e(57464);const A=p=>{if((0,l.lB)(p))return k()},k=function(p){return p===void 0&&(p=!0),setTimeout(()=>{var r;return(r=MB)==null||(r=r.messageBucket)==null?void 0:r.send("mobileLoadProjectError",{errMsg:"\u753B\u5E03\u65E0\u9875\u9762\uFF0C\u65E0\u6CD5\u9884\u89C8"})},1e3),(0,T.jsx)(o.A,{errorType:404,locale:(0,C.w)(),isShowPrimaryBtn:p,customTitle:I18N.dModule.project_screen_err_title,customDes:I18N.ToolBar.ReEnter,isShowSecondaryBtn:!1,primaryClick:()=>(0,m.os)("zh-CN","\u539F\u578B-\u5206\u4EAB\u94FE\u63A5\u9875\u9762\u4E3A\u7A7A")})}},2123:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>Ft});var o=e(72605),m=e(63686),g=e(91560),l=e(95230),C=e(74059),T=e(51044),A=e(86634),k=e.n(A),p=e(19418),r=e(66965),x=e(7290),f=e(88512),u=e(52367),b=e(88223),h=e(89535),E=e(89099),N=e(44622),z=e(24016),S=e(21676),_=e(48590);const y=S.Ay.div.withConfig({displayName:"styles__StyledScreenItem",componentId:"sc-bxhybw-0"})([""," .expander{display:flex;align-items:center;justify-content:center;cursor:pointer;width:14px;height:14px;margin-left:-15px;margin-right:1px;.arrow-icon{color:#999;width:8px;height:8px;&:not(.is-expand){transform:rotate(-90deg);}}}.screen-name{display:flex;align-items:center;width:100%;padding-right:5px;.screen-item-icon{display:flex;flex-shrink:0;justify-content:center;align-items:center;width:24px;height:24px;margin-right:2px;color:",";}.editable-span{color:",";",";line-height:24px;border:none;span.highlight-keyword{font-weight:600;}}}&[disabled]{opacity:0.4;pointer-events:none;}.actions{padding:0 10px;.actions-ellipsis{font-size:14px;pointer-events:none;color:",";}&:hover{.actions-ellipsis{color:",";}}}.child-screens{position:relative;}&.wait-hover *{pointer-events:none;}&.linking{color:",";background:",";.actions{display:none;}}&:hover,&.hover{color:",";background:",";.screen-name .screen-item-icon .icon{color:",";}}&.dummy-select{background:",";border-radius:0;}&.active,&.is-active{color:",";background-color:",";.screen-name{.editable-span{font-weight:500;}.screen-item-icon .icon{color:",";}}.expander .arrow-icon{color:#999;}}.active-circle{position:absolute;right:11px;width:6px;height:6px;display:inline-block;border-radius:50%;background:",";}border-radius:6px;.editable-span,.editable-name{&.is-editing{textarea{margin-right:18px;border:1px solid #0077FF;border-radius:6px;line-height:16px;padding:3px 6px;}}}"],_.Aw,nt=>nt.theme.color_text_L1,nt=>nt.theme.color_text_L1,_.L9,nt=>nt.theme.color_text_L2,nt=>nt.theme.color_proto,nt=>nt.theme.color_text_L2,nt=>nt.theme.color_bg_select02,nt=>nt.theme.color_text_L1,nt=>nt.theme.color_directory_hover,nt=>nt.theme.color_text_L1,nt=>nt.theme.color_directory_hover,nt=>nt.theme.color_text_L1,nt=>nt.theme.color_directory_active,nt=>nt.theme.color_text_L1,nt=>nt.theme.color_text_link_normal);var a=e(57464);class $ extends T.PureComponent{constructor(){super(...arguments),(0,C.A)(this,"setElementRef",Rt=>this.$elem=Rt),(0,C.A)(this,"handleExpand",Rt=>{Rt.stopPropagation();const{screenMeta:yt,actionProps:{onExpand:Jt}}=this.props;Jt(yt)}),(0,C.A)(this,"handleClick",Rt=>{Rt.stopPropagation();const{screenMeta:yt,actionProps:{onSelect:Jt}}=this.props;Jt(Rt,yt)}),(0,C.A)(this,"onShowTipsByTarget",(Rt,yt)=>{const Jt=yt.querySelector(".editable-span");return Jt?Jt.offsetWidth<Jt.scrollWidth:!1}),(0,C.A)(this,"handleToggleHover",(Rt,yt)=>{Rt.stopPropagation();const{actionProps:{onToggleHover:Jt},screenMeta:{cid:vo}}=this.props;Jt&&Jt(yt?vo:"")})}stopPropagation(Rt){Rt.stopPropagation()}render(){const{screenMeta:Rt,depth:yt,isExpand:Jt,isDummySelect:vo,isActive:Yo,showExpander:Ho,isHTMLZip:kt,screenCommentThreadCountMap:Ze,theme:it,initPaddingLeft:st,paddingLeftLayout:dt,highlightKeyword:Ot,className:Ct}=this.props,wo=(0,z.N8)(yt,dt,st),ln=(0,N.Mo)(Rt),{cid:Io,name:Lo,icon:Ao}=Rt,Ut=(Ze&&Ze[Io]||0)>=1&&!kt;return(0,a.jsx)(h.A,{content:Lo,distance:5,direction:"right",onMouseEvent:"onDoubleClick",isShowTipsByTarget:this.onShowTipsByTarget,children:(0,a.jsxs)(y,{ref:this.setElementRef,"data-cid":Io,onClick:this.handleClick,onMouseEnter:Wo=>this.handleToggleHover(Wo,!0),onMouseLeave:Wo=>this.handleToggleHover(Wo,!1),style:{paddingLeft:wo},className:k()("rn-list-item",Ct,{"dummy-select":vo,active:Yo,select:Yo,folder:ln}),children:[Ho&&(0,a.jsx)("a",{className:"expander",onClick:this.handleExpand,onDoubleClick:this.stopPropagation,children:(0,a.jsx)(x.C,{className:k()("arrow-icon",{"is-expand":Jt}),name:"common/expand"})}),(0,a.jsxs)("div",{className:"screen-name",children:[(0,a.jsx)("div",{className:"screen-item-icon",children:(0,a.jsx)(E.k,{icon:Ao,theme:it,isExpand:Jt})}),(0,a.jsx)(f.O,{className:"editable-span",children:(0,a.jsx)(u.A,{value:(0,b.wh)(Lo),highlightKeyword:Ot})})]}),Ut&&(0,a.jsx)("span",{className:"toggle-comment",children:(0,a.jsx)(x.C,{name:"new_replace/comment"})}),Yo&&(0,a.jsx)("span",{className:"active-circle"})]})})}}var ce=e(33169),de=e(56207),fe=e(78647);let se=function(nt){return nt.community="community",nt.workspace="workspace",nt}({});var J=e(6637),ve=e(78869),D=e.n(ve);class R extends T.PureComponent{constructor(Rt){super(Rt),(0,C.A)(this,"setElementRef",yt=>this.$elem=yt),(0,C.A)(this,"autoScrollSelected",()=>{const{activePageKey:yt}=this.props;yt&&this.$elem&&(0,J.yA)(this.$elem,yt)}),(0,C.A)(this,"handleInitData",D()(()=>{const{activePageKey:yt,collapseKeySet:Jt}=this.props,{displayTreeData:vo,hoverCid:Yo}=this.state;if(!yt)return;const Ho=(0,N.he)([yt],vo),kt=(0,N.d4)(vo,Jt),Ze=[...Array.from(new Set([...Array.from(Ho)].concat([yt,Yo])))],it=(0,N.Z7)(kt,Ze);this.setState({dummySelect:Ho,continuousGroup:it})},10)),(0,C.A)(this,"handleScreenMetaExpand",yt=>{let{cid:Jt}=yt;const{collapseKeySet:vo,dispatch:Yo}=this.props,Ho=new Set(vo);vo.has(Jt)?Ho.delete(Jt):Ho.add(Jt),Yo({type:"preview:set:collapsedRBPageKeySet",payload:{collapsedRBPageKeySet:Ho}})}),(0,C.A)(this,"handleSelectScreenMeta",(yt,Jt)=>{const{activePageKey:vo,dispatch:Yo,toolbarActiveItem:Ho}=this.props;(0,N.Mo)(Jt)?this.handleScreenMetaExpand(Jt):vo===Jt.cid?this.handleScreenMetaExpand(Jt):(Yo({type:"entry:sync-runner:set-screen",payload:{cid:Jt.cid}}),Yo({type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}}),MB.runnerController.resetWidgetVisiblity(),Yo({type:"entry:auto-fit:preview:scale"}),Ho===de.YK&&Yo({type:"entry:state:update:previewUserCommonGuidesData",payload:{key:fe.c.GUIDE_PREVIEW_ADD_COMMENT}}))}),(0,C.A)(this,"handleSearch",yt=>{const{screenTreeData:Jt}=this.props,vo=yt==null?void 0:yt.toLowerCase(),[Yo]=(0,N.ZG)(Jt,vo);this.setState({displayTreeData:Yo,keyword:vo})}),(0,C.A)(this,"handleToggleExpanded",()=>{const{collapseKeySet:yt}=this.props;yt.size>0?this.unfoldAllScreen():this.foldAllScreen()}),(0,C.A)(this,"handleKeyDown",yt=>{(yt.ctrlKey||yt.metaKey)&&(yt.keyCode===186&&(yt.preventDefault(),this.unfoldAllScreen()),yt.keyCode===222&&(yt.preventDefault(),this.foldAllScreen()))}),(0,C.A)(this,"unfoldAllScreen",()=>{const{dispatch:yt}=this.props;yt({type:"preview:set:collapsedRBPageKeySet",payload:{collapsedRBPageKeySet:new Set}})}),(0,C.A)(this,"foldAllScreen",()=>{const{screenTreeData:yt,dispatch:Jt}=this.props,vo=(0,N.YU)(yt),Yo=new Set(vo.map(Ho=>Ho.cid));Jt({type:"preview:set:collapsedRBPageKeySet",payload:{collapsedRBPageKeySet:Yo}})}),(0,C.A)(this,"handleToggleHover",yt=>this.setState({hoverCid:yt})),(0,C.A)(this,"renderScreenMetaItem",yt=>{let{depth:Jt,screenMeta:vo,hasScreenMetaChildren:Yo,collapseScreenMetaCidSet:Ho,activeScreenMetaCid:kt,dummySelect:Ze,continuousGroup:it}=yt;const{isHTMLZip:st,screenCommentThreadCountMap:dt,theme:Ot,isSquare:Ct}=this.props,{keyword:wo}=this.state,{cid:ln}=vo,Io=kt===ln,Lo=Ze.has(ln),Ao=!Ho.has(ln),{isContinuousStart:xt,isContinuousEnd:Ut,isContinuousMiddle:Wo}=(0,N.M5)(ln,it),qo=Yo||(0,N.Mo)(vo),{initPaddingLeft:sn,paddingLeftLayout:Kn}=(0,z.zD)({isPreview:!0,isCommunityPreview:Ct});return(0,a.jsx)($,{className:k()({"is-continuous-start":xt},{"is-continuous-end":Ut,"is-continuous-middle":Wo}),theme:Ot,depth:Jt,screenMeta:vo,isActive:Io,isExpand:Ao,isDummySelect:Lo,showExpander:qo,actionProps:this.literalActionProps,isHTMLZip:st,screenCommentThreadCountMap:dt,paddingLeftLayout:Kn,initPaddingLeft:sn,highlightKeyword:wo,layoutV9:"recommend"})}),this.state={displayTreeData:Rt.screenTreeData,keyword:"",hoverCid:"",dummySelect:new Set,continuousGroup:[]},this.literalActionProps={onExpand:this.handleScreenMetaExpand,onSelect:this.handleSelectScreenMeta,onToggleHover:this.handleToggleHover},this.thumbnailActionProps={onClick:this.handleSelectScreenMeta}}componentDidMount(){this.autoScrollSelected(),this.handleInitData()}componentDidUpdate(Rt,yt){const{activePageKey:Jt,screenCommentThreadCountMap:vo,screenTreeData:Yo,collapseKeySet:Ho,dispatch:kt}=this.props,{keyword:Ze,displayTreeData:it,hoverCid:st}=this.state;if(Rt.screenTreeData!==Yo){const[dt]=(0,N.ZG)(Yo,Ze);this.setState({displayTreeData:dt})}if(Rt.activePageKey!==Jt){const dt=(0,N.e7)(Jt),Ot=new Set(Ho);dt.forEach(Ct=>{let{cid:wo}=Ct;return Ho.has(wo)&&Ot.delete(wo)}),Ot.size!==Ho.size&&kt({type:"preview:set:collapsedRBPageKeySet",payload:{collapsedRBPageKeySet:Ot}}),this.autoScrollSelected()}Rt.screenCommentThreadCountMap!==vo&&kt({type:"preview:set:collapsedRBPageKeySet",payload:{collapsedRBPageKeySet:new Set(Ho)}}),(Rt.activePageKey!==Jt||Rt.collapseKeySet!==Ho||yt.displayTreeData!==it||yt.hoverCid!==st)&&this.handleInitData()}render(){const{screenDataMap:Rt,activePageKey:yt,isSquare:Jt,collapseKeySet:vo}=this.props,{keyword:Yo,dummySelect:Ho,continuousGroup:kt}=this.state,{displayTreeData:Ze}=this.state,it=vo.size>0,st=Object.values(Rt).filter(dt=>!dt.hotAttr.asFolder).length;return(0,a.jsxs)("div",{className:"screen-panel",style:{minHeight:100},children:[(0,a.jsx)(ce.A,{onlyView:!1,keyword:Yo,hasFoldedScreen:it,isPreview:!0,isCommunityPreview:Jt,onSearch:this.handleSearch,nonFolderPGCount:st,onToggleExpanded:this.handleToggleExpanded}),(0,a.jsx)("div",{className:"screen-list-container",ref:this.setElementRef,children:Ze&&(0,a.jsx)(r.A,{screenTreeData:Ze,activeScreenMetaCid:yt,collapseScreenMetaCidSet:vo,dummySelect:Ho,continuousGroup:kt,renderScreenMetaItem:this.renderScreenMetaItem})}),(0,a.jsx)(p.A,{target:document,onKeyDown:(0,p.t)(this.handleKeyDown,{capture:!0})})]})}}(0,C.A)(R,"defaultProps",{from:se.workspace});var V=e(35078),O=e(40778);const Ce=new Set(["demo","cS1AXKF5jtrJePbEKiYcdcHosQPdzrk","workout","sI3GY2tDz76RrZ4MGFiIcZTZpAHyluC","UMQzYmknxWeHNvvVyeyJDuSkgyvi6Xw","9Py1L5RdC8ZPRSmnWEt4uuUUSDUAxkM"]),ae=(0,m.Mz)([g.hm,g.Br,g.PL,g.He,g.HA,g.jm,g.Ur,g.O4,g.UR,g.bm,g.mf,g.UB,g.bF,g.M2],(nt,Rt,yt,Jt,vo,Yo,Ho,kt,Ze,it,st,dt,Ot,Ct)=>{let{access_token:wo}=yt,{cid:ln}=Ho,{activePageKey:Io}=st,{isSquare:Lo}=Ot,Ao=vo,xt=Jt,Ut=it.length;if((0,O.St)()){const{screen_visible_list:Wo,screen_visible_switch:qo}=dt;if(qo){const{screenTreeData:sn,screenDataMap:Kn}=(0,V.wb)(Wo);Ao=sn,xt=Kn,Ut=Wo.length}else Ao=vo,Ut=it.length}return{designOptions:nt,toolbarActiveItem:Rt,isDemo:Ce.has(wo),screenTreeData:Ao,screenCommentThreadCountMap:Yo,activeCid:ln,theme:kt,panelHeight:Ze,screensCount:Ut,activePageKey:Io,projectShare:dt,isSquare:Lo,screenDataMap:xt,collapseKeySet:Ct}}),q=(0,o.Ng)(nt=>ae(nt))(R);var K=e(30973),xe=e(42205),te=e(63555),H=e(80627),re=e(24013),be=e(11777),Le=e(19722),Ve=e(94498),Ne=e(59475);const We=S.Ay.div.withConfig({displayName:"styles__StyledPreviewCanvasPanel",componentId:"sc-1o2w5ph-0"})(["position:relative;background:",";width:100%;height:100%;display:flex;flex-direction:column;overflow:hidden;.border-resizer.top{top:0;&:hover{background-color:rgba(22,132,252,.6);}&.active{background-color:rgba(22,132,252,.6);}}.canvas-scroll-list{flex:1;overflow-x:hidden;overflow-y:overlay;",";.canvas-sortable-list{position:relative;.layer-item{",";padding-left:19px;color:",";background-color:",";&.is-disabled{&.active{color:",";}}&.dummy-select{background:",";}&.active{background:",";}&:not(.active):not(.dummy-select):hover,&:not(.active):not(.dummy-select).hover{background:",";}.expander{display:flex;align-items:center;justify-content:center;margin-left:-15px;margin-right:1px;width:14px;height:14px;.arrow-icon{margin-right:0;color:#999;width:8px;&:not(.is-expand){transform:rotate(-90deg);}}}.layer-item-icon{",";}.homepage{width:20px;height:20px;color:",";margin-right:6px;}.group-icon{opacity:1;.main{fill:#1684fc;}}.ant-icon{width:16px;height:16px;color:#8d9ea7;}.editable-name{overflow:hidden;white-space:nowrap;flex:1;text-overflow:ellipsis;margin-right:0;border:none;}.action{width:20px;height:20px;display:flex;align-items:center;justify-content:center;visibility:hidden;cursor:pointer;.svg-icon{width:20px;height:20px;}}&:hover{.action{visibility:visible;}}&:hover,&.hover,&.active{.arrow-icon{color:#999;}.actions{background-color:transparent;}}&.is-disabled{& > *{opacity:0.4;}.actions{display:none;background:inherit;}}&.is-hidden{.eye-icon{visibility:visible;}}&.is-locked{.lock-icon{visibility:visible;}}&.is-linked{.link-icon{visibility:visible;color:",";}}&.is-hidden,&.is-locked,&.is-linked{.actions{display:flex;align-items:center;}}}}}.canvas-scroll-list{padding:8px;.canvas-sortable-list{.layer-item{border-radius:6px;.editable-span,.editable-name{&.is-editing{textarea{margin-right:18px;border:1px solid #0077FF;border-radius:6px;line-height:16px;padding:3px 6px;}}}}}}"],nt=>nt.theme.color_bg_white,_.eP,_.Aw,nt=>nt.theme.color_text_L1,nt=>nt.theme.color_bg_white,nt=>nt.theme.color_proto,nt=>nt.theme.color_directory_hover,nt=>nt.theme.color_directory_active,nt=>nt.theme.color_directory_hover,Ne.u6,nt=>nt.theme.color_text_L3,nt=>nt.theme.color_proto),ze=S.Ay.header.withConfig({displayName:"styles__StyledHeader",componentId:"sc-1o2w5ph-1"})(["width:100%;height:40px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid ",";border-bottom:1px solid ",";&:not(.is-search-mode){padding:0 9px 0 24px;&:lang(en){padding:0 9px 0 16px;}&.isCommunityPreview{padding:0 6px 0 14px;}}&.dark{.buttons .sticky-collapse svg path{stroke:rgb(242,244,245);}}.title{color:",";font-weight:500;&:lang(en){width:52px;text-align:center;}}&.has-drag{cursor:grab;}.header-icon{"," &:not(:first-child){margin-left:6px;}}.buttons{display:flex;.sticky-collapse{margin-left:4px;}}"],nt=>nt.theme.color_bg_border_01,nt=>nt.theme.color_bg_border_01,nt=>nt.theme.color_text_L1,_.n9);class ft extends T.PureComponent{constructor(Rt){super(Rt),(0,C.A)(this,"handleDown",yt=>{yt.stopPropagation();const{height:Jt,onChangeHeight:vo}=this.props,{isSearching:Yo}=this.state;if(Yo)return;const Ho=window.innerHeight-310,kt=yt.clientY,Ze=-1,it=dt=>{const Ct=(dt.clientY-kt)*Ze,wo=Math.max(Math.min(Jt+Ct,Ho),l.nG);vo(wo)},st=()=>{document.removeEventListener("mousemove",it),document.removeEventListener("mouseup",st)};document.addEventListener("mousemove",it),document.addEventListener("mouseup",st)}),(0,C.A)(this,"handleExitSearch",yt=>{yt.stopPropagation(),this.props.onChangeKeyword(""),this.setState({isSearching:!1})}),(0,C.A)(this,"handleOpenSearch",()=>{this.setState({isSearching:!0})}),this.state={isSearching:!1}}handStopPropagation(Rt){Rt.stopPropagation()}render(){const{isSearching:Rt}=this.state,{keyword:yt,onChangeKeyword:Jt,isCommunityPreview:vo,theme:Yo}=this.props;return(0,a.jsx)(ze,{className:k()({"has-drag":!Rt},{"is-search-mode":Rt},{isCommunityPreview:vo},""+Yo),onMouseDown:this.handleDown,children:Rt?(0,a.jsx)(Ve.A,{keyword:yt,placeholder:I18N.ScreenPanel.search_screen,onChangeKeyword:Jt,onExitSearch:this.handleExitSearch}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"title",children:I18N.LeftSidePanel.artboard}),(0,a.jsx)("div",{className:"buttons",children:(0,a.jsx)(be.A,{content:I18N.ScreenPanel.element_search,direction:"down",children:(0,a.jsx)("a",{className:"header-icon",onMouseDown:this.handStopPropagation,onClick:this.handleOpenSearch,children:(0,a.jsx)(Le.A,{name:"common/search"})})})})]})})}}class mt extends T.PureComponent{constructor(Rt){super(Rt),(0,C.A)(this,"handleHeightChange",yt=>{this.props.dispatch({type:"preview:panel:set:height",payload:{panelHeight:yt}})}),(0,C.A)(this,"handleChangeKeyword",yt=>this.setState({keyword:yt})),(0,C.A)(this,"handleClick",(yt,Jt)=>{const{activePageKey:vo,activeCanvasKey:Yo,dispatch:Ho}=this.props,kt=Jt.cid;kt!==Yo&&(Ho({type:"entry:runner:activate:canvas",payload:{pageKey:vo,canvasKey:kt}}),Ho({type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}}))}),(0,C.A)(this,"handleInitData",D()(()=>{const{canvasList:yt,activeCanvasKey:Jt}=this.props,{keyword:vo,hoverCid:Yo}=this.state;if(!Jt)return;const kt=(0,H.Lx)(yt.filter(it=>!it.hotAttr.asOverlay),vo).map(it=>{let{cid:st}=it;return st}),Ze=(0,N.Z7)(kt,[Jt,Yo]);this.setState({continuousGroup:Ze})},10)),this.state={keyword:"",hoverCid:"",continuousGroup:[]},this.treeProps={onClick:this.handleClick,onMouseEnter:yt=>{const{cid:Jt}=yt;this.setState({hoverCid:Jt})},onMouseLeave:()=>{this.setState({hoverCid:""})}}}componentDidMount(){this.handleInitData()}componentDidUpdate(Rt,yt){const{canvasList:Jt,activeCanvasKey:vo}=this.props,{keyword:Yo,hoverCid:Ho}=this.state;(Rt.canvasList!==Jt||Rt.activeCanvasKey!==vo||yt.keyword!==Yo||yt.hoverCid!==Ho)&&this.handleInitData()}render(){const{height:Rt,canvasList:yt,activeCanvasKey:Jt,history:vo,isSquare:Yo,theme:Ho}=this.props,{keyword:kt,continuousGroup:Ze}=this.state,it=(0,H.Lx)(yt.filter(wo=>!wo.hotAttr.asOverlay),kt),st=Yo?262:310,{initPaddingLeft:dt,paddingLeftLayout:Ot}=(0,z.zD)({isPreview:!0,isCommunityPreview:Yo,isCanvasSortableList:!0}),Ct=(0,re.Lf)(vo.at(-1)||"")[1];return(0,a.jsxs)(We,{style:{flexBasis:Rt},children:[(0,a.jsx)(K.A,{placement:"top",value:Rt,min:l.nG,max:window.innerHeight-st,onChange:this.handleHeightChange}),(0,a.jsx)(ft,{height:Rt,keyword:kt,isCommunityPreview:Yo,theme:Ho,onChangeKeyword:this.handleChangeKeyword,onChangeHeight:this.handleHeightChange}),it&&(0,a.jsx)("div",{className:"canvas-scroll-list",children:(0,a.jsx)("ul",{className:"canvas-sortable-list",children:it.map((wo,ln)=>(0,a.jsx)(xe.A,{depth:0,index:ln+1,treeNode:wo,hoverItem:"",newSelection:Jt?[Jt]:[],childrenSelect:!1,onlyView:!0,isHomepage:Io=>Ct===Io,treeProps:this.treeProps,showAction:!1,maxOrderDigit:it.length,initPaddingLeft:dt,paddingLeftLayout:Ot,isPreview:!0,continuousGroup:Ze},wo.cid))})})]})}}const i=(0,m.Mz)([g.De,g.UR,g.mf,g.bF,g.m5],(nt,Rt,yt,Jt,vo)=>{let{activePageKey:Yo,activeCanvasKey:Ho,history:kt}=yt,{isSquare:Ze}=Jt;return{canvasList:nt==null?void 0:nt.children.filter(st=>{let{type:dt}=st;return dt===te.x.Canvas}).map(st=>{const dt=st.dup();return dt.children=[],dt}).sort((st,dt)=>st.widget.order-dt.widget.order),height:Rt,activePageKey:Yo,activeCanvasKey:Ho,history:kt,isSquare:Ze,theme:vo}}),gt=(0,o.Ng)(nt=>i(nt))(mt);var Je=e(9376);const Pt=S.Ay.div.withConfig({displayName:"styles__StyledPreviewPanel",componentId:"sc-1ohehmd-0"})(["position:relative;width:100%;height:calc(100% - 48px);display:flex;flex-direction:column;font-size:12px;color:#525e71;background-color:",";box-shadow:1px 0 0 ",";overflow:hidden;.title{white-space:nowrap;}&.is-uichina{box-shadow:none;}&.is-community{height:100%;}header{.screen-count{color:",';padding:0 3px;font-weight:600;}.toggle-icon{width:20px;height:20px;display:flex;justify-content:center;align-items:center;color:#8d9ea7;cursor:pointer;.icon{height:12px;}}}.screen-panel{flex:1;display:flex;flex-direction:column;overflow:hidden;.screen-header{height:36px;padding:0 4px 0 10px;display:flex;align-items:center;[type="search"]{flex:1;margin-right:4px;}.header-icon{',";}}.screen-list-container{flex:1;overflow-x:hidden;overflow-y:auto;",";.toggle-comment{position:absolute;right:22px;top:50%;transform:translateX(100%) translateY(-50%);& > .icon{color:",";}& > .icon-comment{margin-right:2px;}}&.thumbnail{padding-left:10px;.toggle-comment{display:none;}}.thumbnail-list{width:calc(100% + 15px);.thumbnail-item{width:105px;margin-right:10px;.image-wrapper{height:105px;}}}}}.no-slice{display:flex;align-items:center;justify-content:center;flex-direction:column;height:calc(100% - 50px);> img{width:93px;margin:-100px 10px 0;}span{color:",";font-size:14px;&:nth-child(2){padding-top:21px;}&:nth-child(3){font-size:12px;padding-top:8px;}&:nth-child(4){padding-top:4px;font-size:12px;}}a{margin-top:31px;text-decoration:none;padding:4px 13px;font-size:12px;color:",";border:1px solid ",";border-radius:3px;background-color:",";&:hover{color:",";background-color:",";}&:active{color:",";background:",";}img{width:14px;display:inline-block;vertical-align:middle;margin-right:5px;}}}.screen-panel{.screen-list-container{padding:8px;}}"],nt=>nt.theme.color_bg_white,nt=>nt.theme.color_bg_border_01,nt=>nt.theme.color_text_L2,_.n9,_.eP,nt=>nt.theme.color_text_L3,nt=>nt.theme.color_text_L2,nt=>nt.theme.color_text_L2,nt=>nt.theme.color_bg_border_02,nt=>nt.theme.color_bg_white,nt=>nt.theme.color_text_L2,nt=>nt.theme.color_btn_secondary_active,nt=>nt.theme.color_text_L2,nt=>nt.theme.color_bg_canvas);class bt extends T.PureComponent{render(){const{isHTMLZip:Rt,isCommunityComboPreview:yt,isSquare:Jt}=this.props;return(0,a.jsxs)(Pt,{className:k()("preview-panel",{"is-uichina":(0,Je.II)()||(0,Je.uf)()},{"is-community":Jt}),children:[(0,a.jsx)(q,{isHTMLZip:Rt}),!yt&&(0,a.jsx)(gt,{})]})}}const qt=(0,m.Mz)([g.bF,g.ub],(nt,Rt)=>{let{isHTMLZip:yt,isSquare:Jt}=nt;return{isHTMLZip:yt,isCommunityComboPreview:Rt,isSquare:Jt}}),pt=(0,o.Ng)(nt=>qt(nt))(bt);var $t=e(1190),go=e(20571);const Co=S.Ay.div.withConfig({displayName:"styles__StyledLeftPane",componentId:"sc-1ryw8zy-0"})(["position:relative;top:48px;height:100%;z-index:100;&.isCommunity{top:0;transition:none;}.preview-panel-wrapper{position:absolute;top:0;right:0;height:100%;width:100%;}svg:not(.","):not(.","):not(.",") > *{fill:currentColor;}.nav-back-icon{svg:not(.","):not(.","):not(.",") > *{fill:none;}}.toggle-minimized-button{width:28px;height:28px;background:",";box-shadow:0 2px 6px rgba(0,0,0,0.08);border-radius:4px;position:absolute;left:calc(100% + 26px);bottom:30px;cursor:pointer;color:",";svg.svg-icon{width:28px;height:28px;}&.is-minimized{svg.svg-icon{transform:rotate(180deg);}}&:hover{background:",";}&:active{background:",";}&.isSquare{display:none;}}.border-resizer.right{position:absolute;right:-1px;&:hover{background-color:rgba(22,132,252,.6);}&.active{background-color:rgba(22,132,252,.6);}}"],go.Gd,go.pf,go.FQ,go.Gd,go.pf,go.FQ,nt=>nt.theme.color_bg_white,nt=>nt.theme.color_text_L1,nt=>nt.theme.color_btn_secondary_active,nt=>nt.theme.color_btn_secondary_active),Tt=(0,T.memo)(nt=>{let{isMinimized:Rt,leftPaneWidth:yt,maxLeftPaneWidth:Jt,handleWidthChange:vo}=nt;return Rt?null:(0,a.jsxs)("div",{style:{width:yt},children:[(0,a.jsx)("div",{className:"preview-panel-wrapper",children:(0,a.jsx)(pt,{})}),(0,a.jsx)(K.A,{placement:"right",className:"v-resizer",value:yt,min:de.CN,max:Jt,onChange:vo})]})}),mo=(0,$t.$)(Tt);class jo extends T.PureComponent{constructor(){super(...arguments),(0,C.A)(this,"handleWidthChange",Rt=>{const{dispatch:yt,currentProject:Jt}=this.props;yt({type:"preview:set:leftPaneWidth",payload:{leftPaneWidth:Rt,projectCid:Jt.cid}})}),(0,C.A)(this,"toggleLeftPane",()=>this.props.dispatch({type:"entry:preview-setting:toggle:isMinimized"}))}render(){const{isFullScreenMode:Rt,isMinimized:yt,isEmbedV2:Jt,isSquare:vo,leftPaneWidth:Yo,maxLeftPaneWidth:Ho}=this.props;return(0,a.jsx)(Co,{id:"mb-preview-leftpane",className:k()(Rt&&!Jt?"is-fullscreen-mode":"",{isCommunity:vo&&!Rt}),children:vo&&!Rt?(0,a.jsx)(Tt,{leftPaneWidth:Yo,maxLeftPaneWidth:Ho,isMinimized:yt,handleWidthChange:this.handleWidthChange}):(0,a.jsx)(mo,{orientation:"left",toggleFunc:this.toggleLeftPane,isVisible:!yt,leftPaneWidth:Yo,maxLeftPaneWidth:Ho,isMinimized:yt,handleWidthChange:this.handleWidthChange,guideKey:fe.c.INTER_SWITCHABLE_VIEW_MODE_PV_TOGGLE_PANE_BTN})})}}const Kt=(0,m.Mz)([g.Ph,g.Pf,g.bF,g.E1,g.zo,g.PL],(nt,Rt,yt,Jt,vo,Yo)=>{const{isEmbedV2:Ho,isSquare:kt}=yt;return{isFullScreenMode:nt,isMinimized:Rt,isEmbedV2:Ho,isSquare:kt,leftPaneWidth:Jt,maxLeftPaneWidth:window.innerWidth-l.K_-vo,currentProject:Yo}}),Ft=(0,o.Ng)(nt=>Kt(nt))(jo)},50881:(Et,ke,e)=>{"use strict";e.d(ke,{j:()=>z});var o=e(51044),m=e(86634),g=e.n(m),l=e(75422),C=e(3093),T=e(71072),A=e(72996),k=e(74059),p=e(7290),r=e(11777),x=e(35195),f=e(21676),u=e(31626);const b=f.Ay.div.withConfig({displayName:"styles__StyledFullScreenMode",componentId:"sc-1a8kzq2-0"})(["&{position:relative;",";border-radius:4px;transition:all 0.2s ease-in-out;cursor:pointer;}&.isEmbedV2Preview.NotFullScreen{.fullscreen{width:28px;height:24px;align-items:center;.svg-icon{width:24px;height:24px;}}}&.isCommunityPreview{.fullscreen .svg-icon{color:#666;}}.fullscreen{position:relative;display:flex;justify-content:center;width:38px;height:32px;.svg-icon{width:32px;height:32px;}}&:hover&:not(.active){background-color:",";}&.active{background-color:",";}"],u.o,S=>S.theme.color_btn_secondary_active,S=>S.theme.color_btn_secondary_active);var h=e(57464);class E extends o.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"handleFullScreen",async()=>{const{isFullScreenMode:_,dispatch:y}=this.props;_?(await x.A.exit(),y({type:"entry:exit:fill-screen-mode"})):y({type:"entry:enter:full-screen-mode"})})}render(){const{isFullScreenMode:_,isEmbedV2:y,isCommunityPreview:a}=this.props,$=_?"design/collapse_screen":"design/fullscreen";return(0,h.jsx)(b,{className:g()("fullscreen-box",{isEmbedV2Preview:y},{NotFullScreen:!_},{isCommunityPreview:a}),children:(0,h.jsx)(r.A,{direction:"down",content:I18N.pPreviewToolbar.fullscreen,children:(0,h.jsx)("div",{className:"fullscreen-wrapper",children:(0,h.jsx)("div",{className:"fullscreen",onClick:this.handleFullScreen,children:(0,h.jsx)(p.C,{name:$})})})})})}}(0,k.A)(E,"defaultProps",{isFullScreenMode:!1});const N=f.Ay.div.withConfig({displayName:"styles__StyledOperationBox",componentId:"sc-1448df2-0"})(["position:absolute;height:36px;border-radius:4px;box-shadow:0px 9px 28px rgba(0,0,0,0.05);display:flex;flex-direction:row;background:#fff;top:16px;right:16px;pointer-events:auto;align-items:center;padding:4px 6px 4px 4px;transition:right 0.2s ease-in-out;&.dark{background-color:#252626;svg{color:#F2F4F5 !important;}.communityZoomBox.isComboPreview{border:1px solid #454647;}& > div.divider{border-left:1px solid #454647;}}&.isCommunityComboPreview{right:24px;&.isPreviewOnly{.save-tips-dropdown{margin-right:10px;}}}.save-tips-dropdown.isCommunity .toolbar-icon-item{width:36px;height:28px;margin-top:1px;svg{color:#666666;}}& > div.divider{border-left:1px solid #e5e5e5;margin:0 6px;height:20px;}.fullscreen{width:36px;height:28px;align-items:center;.fullIcon{width:36px;height:28px;.svg-icon{width:32px;height:32px;color:#666666;}}}span.divider{margin-left:8px;height:20px;border-right:1px solid #e5e5e5;}.zoom-control{&.zoom-in{width:36px;height:28px;svg{path{stroke:#666666;}}}&.zoom-out{width:36px;height:28px;svg{path{stroke:#666666;}}}&.disabled{svg{path{stroke:#ccc;}}}}.communityZoomBox{width:71px;height:28px;&.isComboPreview{border:1px solid #E5E5E5;border-radius:3px;}.zoom-main > .zoom-box{.zoom-scale{font-size:13px;font-weight:400;}.zoom-arrow{width:7px;margin-left:12px;}}.mac,.others{top:120%;}}button.zoom-options-panel-toggle{width:47px;height:28px;border-radius:4px;margin:0 4px;text-align:center;&:hover{background-color:",";}}"],S=>S.theme.color_btn_secondary_active);class z extends o.PureComponent{render(){const{isReadOnly:_,isFullScreenMode:y,scale:a,theme:$,isEmbedV2Preview:ce,isCommunityPreview:de,isCommunityComboPreview:fe,handleZoomIn:se,handleZoomOut:J,handleZoomInitialScale:ve,handleZoomSpecifiedScale:D,handleZoomSelection:R,handleToggleFullScreenMode:V,dispatch:O}=this.props;return(0,h.jsxs)(N,{className:g()("operation-box",{isCommunityComboPreview:fe},{isPreviewOnly:!_},""+$),children:[_?(0,h.jsx)(l.X,{}):(0,h.jsx)(C.A,{}),!fe&&!_&&(0,h.jsx)("div",{className:"divider"}),_?(0,h.jsx)(A.A,{scale:a,fullScreenMode:y,isShowZoomSelection:!1,isEmbedV2Preview:ce,onZoomIn:se,onZoomOut:J,onZoomInitialScale:ve,onZoomSpecifiedScale:D,onZoomSelection:R,dispatch:O}):(0,h.jsx)(T.Pd,{onlyPreview:!_,className:g()("communityZoomBox",{isComboPreview:fe&&!_}),scale:a,isShowZoomSelection:!1,onZoomIn:se,onZoomOut:J,onZoomInitialScale:ve,onZoomSpecifiedScale:D,onZoomSelection:R}),!fe&&!_&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"divider"}),(0,h.jsx)(E,{dispatch:O,isFullScreenMode:y,isEmbedV2:ce,isCommunityPreview:de})]})]})}}},63231:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>qt});var o=e(72605),m=e(63686),g=e(91560),l=e(74059),C=e(51044),T=e(99059),A=e.n(T),k=e(86634),p=e.n(k),r=e(7290),x=e(88512),f=e(88223),u=e(89099),b=e(44622),h=e(63555),E=e(21676),N=e(48590);const z=E.Ay.div.withConfig({displayName:"styles__StyledScreenItem",componentId:"sc-1i9nu12-0"})(["display:flex;align-items:center;height:45px;padding-right:20px;position:relative;&.active{background:#f2f2f2;}.choosed{height:14px;min-width:14px;margin-right:16px;color:#999999;}.expander{height:22px;width:22px;margin-left:-16px;display:flex;justify-content:center;align-items:center;.arrow-icon{height:22px;width:22px;color:#8d9ea7;&.is-expand{transform:rotate(90deg);}}}.screen-name{display:flex;align-items:center;width:100%;height:100%;justify-content:space-between;flex-direction:row;align-items:center;.screen-left{display:flex;flex-direction:row;align-items:center;width:calc(100% - 70px);}.screen-item-icon{width:20px;height:20px;display:flex;justify-content:center;align-items:center;flex-shrink:0;margin-right:6px;}.editable-span{font-size:14px;color:#000000;width:calc(100% - 30px);",";}.screen-right{display:flex;flex-direction:row;align-items:center;width:62px;.page-number{width:40px;text-align:right;}.gray-number{color:#cccccc;}svg{width:22px;height:22px;margin-left:6px;}}}.item-line{height:1px;background:#f2f2f2;position:absolute;left:20px;right:20px;top:0;}"],N.L9);var S=e(57464);class _ extends C.PureComponent{constructor(){super(...arguments),(0,l.A)(this,"setElementRef",$t=>this.$elem=$t),(0,l.A)(this,"handleExpand",$t=>{$t.stopPropagation();const{screenMeta:go,actionProps:{onExpand:Co}}=this.props;Co(go)}),(0,l.A)(this,"handleClick",$t=>{$t.stopPropagation();const{screenMeta:go,actionProps:{onSelect:Co}}=this.props,Tt=(0,b.Mo)(go),{cid:mo}=go,jo=sdkStore.findAllTypeUnderNoSubPage(mo,h.x.Canvas).filter(Kt=>!Kt.hotAttr.asOverlay);!jo||jo.length===0||Tt||Co(go)})}componentDidMount(){if(!(0,f.zN)(this.$elem)){if(!this.$elem.classList.contains("active"))return;const go=document.querySelector(".rn-content-body");if(!go)return;const Co=go.getBoundingClientRect(),{bottom:Tt}=this.$elem.getBoundingClientRect();go.scrollTop+=Tt-Co.bottom+20}}stopPropagation($t){$t.stopPropagation()}render(){const{screenMeta:$t,depth:go,isExpand:Co,isActive:Tt,showExpander:mo,theme:jo}=this.props,Kt=10*(go+1)+25,Ft=(0,b.Mo)($t),{cid:nt,name:Rt,icon:yt}=$t,Jt=sdkStore.findAllTypeUnderNoSubPage(nt,h.x.Canvas).filter(Yo=>!Yo.hotAttr.asOverlay),vo=Jt&&Jt.length>0;return(0,S.jsxs)(z,{ref:this.setElementRef,"data-cid":nt,onClick:this.handleClick,style:{paddingLeft:Kt},className:p()("rn-list-item",{active:Tt,folder:Ft}),children:[mo&&(0,S.jsx)("a",{className:"expander",onClick:this.handleExpand,onDoubleClick:this.stopPropagation,children:(0,S.jsx)(r.C,{className:p()("arrow-icon",{"is-expand":!Co}),name:"common/mobile/expand"})}),(0,S.jsxs)("div",{className:"screen-name",children:[(0,S.jsxs)("div",{className:"screen-left",children:[(0,S.jsx)("div",{className:"screen-item-icon",children:(0,S.jsx)(u.k,{icon:yt,theme:jo,isExpand:Ft?!Co:Co})}),(0,S.jsx)(x.O,{className:"editable-span",children:(0,f.wh)(Rt)})]}),Ft?(0,S.jsx)(S.Fragment,{}):(0,S.jsxs)("div",{className:"screen-right",children:[(0,S.jsx)("div",{className:"page-number "+(vo?"":"gray-number"),children:(Jt==null?void 0:Jt.length)||0}),(0,S.jsx)(r.C,{isColorPure:!0,name:vo?"preview/scree/right-arror":"preview/scree/right-arror-gray"})]})]}),go===0&&(0,S.jsx)("div",{className:"item-line"})]})}}var y=e(66965),a=e(6637);const $=E.Ay.div.withConfig({displayName:"styles__StyledPageList",componentId:"sc-8jjx0w-0"})(["height:100%;width:100%;.page-item{height:45px;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;position:relative;width:100%;padding:0 20px;box-sizing:border-box;svg{width:20px;height:20px;margin-left:16px;}.page-name{font-size:14px;color:#000;margin-left:6px;display:flex;flex:1;span{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;-o-text-overflow:ellipsis;max-width:260px;}.invisible{width:20px;height:20px;margin-right:16px;}}.bottom-line{display:flex;position:absolute;left:20px;right:20px;bottom:0px;height:1px;background:#f2f2f2;}}"]);class ce extends C.PureComponent{constructor(){super(...arguments),(0,l.A)(this,"pageItemHandle",$t=>{const{runnerState:{activeCanvasKey:go},dispatch:Co,currentCanvasCid:Tt}=this.props;go!==$t&&Co({type:"entry:runner:activate:canvas",payload:{pageKey:Tt,canvasKey:$t}})}),(0,l.A)(this,"pageItem",($t,go)=>{const{runnerState:{activeCanvasKey:Co}}=this.props,{key:Tt,hotAttr:{name:mo,isVisible:jo}}=go,Kt=Co===Tt;return(0,S.jsxs)("div",{"data-cid":Tt,id:"mobile-page-item",className:"page-item",onClick:()=>this.pageItemHandle(Tt),onDoubleClick:Ft=>{Ft.stopPropagation()},style:{background:Kt?"#f2f2f2":""},children:[(0,S.jsx)(r.C,{name:"preview/share/part_page"}),(0,S.jsxs)("div",{className:"page-name",children:[(0,S.jsx)("span",{children:mo}),!jo&&(0,S.jsx)(r.C,{className:"invisible",name:"common/invisible"})]}),(0,S.jsx)("div",{className:"bottom-line"})]},$t)})}componentDidMount(){const{runnerState:{activeCanvasKey:$t}}=this.props;(0,a.H1)($t)}render(){const{currentCanvasCid:$t}=this.props,go=sdkStore.findAllTypeUnderNoSubPage($t,h.x.Canvas).filter(Co=>!Co.hotAttr.asOverlay).sort((Co,Tt)=>Co.hotAttr.order-Tt.hotAttr.order);return(0,S.jsx)($,{children:go&&go.map((Co,Tt)=>this.pageItem(Tt,Co))})}}var de=e(9376),fe=e(35078),se=e(40778);const J="sharing",ve="screen",D=pt=>{try{const $t=Co=>{let Tt=0;const mo=[];for(const jo in Co){const{hotAttr:{asFolder:Kt}}=Co[jo];Kt||(mo.push(Co[jo]),Tt=Tt+sdkStore.findAllTypeUnderNoSubPage(jo,h.x.Canvas).length)}return{canvas:mo.length,pages:Tt}};if((0,se.St)()){const{screen_visible_list:Co,screen_visible_switch:Tt}=pt;if(Tt){const{screenDataMap:mo}=(0,fe.wb)(Co);return $t(mo)}}const{screenDataMap:go}=(0,fe.tb)();return $t(go)}catch($t){return{canvas:0,pages:0}}},R=pt=>{try{const{screenDataMap:$t}=(0,fe.tb)();return $t[pt]}catch($t){console.warn("getCanvasInfo error:",$t)}return null},V=60,O=68,Ce=450,ae=E.Ay.div.withConfig({displayName:"styles__StyledPreviewMask",componentId:"sc-addbg1-0"})(["position:absolute;top:0;left:0;right:0;bottom:0;z-index:5;"]),q=E.Ay.div.withConfig({displayName:"styles__StyledPreviewSetting",componentId:"sc-addbg1-1"})(["position:fixed;bottom:-","px;display:flex;flex-direction:column;z-index:6;height:","px;width:100%;transition:bottom 0.3s ease-in-out;background:white;border-radius:14px 0;box-shadow:rgb(0 0 0 / 20%) 2px 0 6px;&.is-open{bottom:0;}.theContent{display:flex;flex-grow:1;flex-direction:column;.line{border-bottom:1px solid #F2F2F2;margin:0 20px;}.contentItem{display:flex;flex-direction:row;justify-content:flex-start;margin:0 20px;padding:20px 0;border-bottom:1px solid rgb(242,242,242);.menuBlock{display:flex;justify-content:center;align-items:center;flex-direction:column;margin-right:30px;.menuBlockIcon{border-radius:10px;background-color:white;height:60px;width:60px;margin-bottom:8px;border:1px solid #f2f2f2;display:flex;align-items:center;justify-content:center;.blockIcon{height:36px;width:36px;color:#ffffff;}}.menuBlockName{display:flex;align-items:center;font-size:12px;color:#84817a;.redDot{width:4px;height:4px;background:#eb5648;border-radius:50%;margin-right:2px;}}}}.highlight-blue{.menuBlockIcon .link-svg{fill:#1684FC;path{fill:#1684FC;}}svg{fill:#1684FC;path{fill:#1684FC;}}.menuBlockName .name{color:#1684FC;}}.highlight-gray{.menuBlockIcon .link-svg{fill:#35475D;path{fill:#35475D;}}svg{fill:#35475D;path{fill:#35475D;}}}.offline-blue{.menuBlockIcon .download-svg{fill:#4257ff;}.menuBlockName .name{color:#4257ff;}}.highlight-red{.menuBlockIcon .link-svg{fill:#fe5859;}.menuBlockName .name{color:#fe5859;}}.offline-red{.menuBlockIcon .download-svg{fill:#fe5859;}.menuBlockName .name{color:#fe5859;}}.theHeader{display:flex;align-items:center;justify-content:flex-start;height:","px;margin:0 20px;color:#415058;border-bottom:1px solid #F2F2F2;.headerIcon{height:40px;width:40px;margin-right:12px;border-radius:6px;img{height:40px;width:40px;}svg{width:40px;height:40px;}}.headerTitle{display:flex;flex-direction:column;justify-content:space-between;.headerName{font-weight:500;font-size:16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#415058;text-align:left;width:300px;}.headerIntro{margin-top:4px;color:#8d9ea7;font-size:12px;font-weight:400;text-align:left;}}}}.theFooter{display:flex;align-items:center;justify-content:center;height:","px;background-color:#fff;font-size:18px;color:#415058;padding-bottom:10px;margin:0 20px;}.top-line{border-top:1px solid #F2F2F2;}@supports (bottom:env(safe-area-inset-bottom)){&.is-open{margin-bottom:env(safe-area-inset-bottom);}}"],Ce+10,Ce,O,V),K=E.Ay.div.withConfig({displayName:"styles__StyledScreenSetting",componentId:"sc-50ucr4-0"})(["flex:1;width:100%;height:calc(100% - ","px);.theHeader{display:flex;align-items:center;justify-content:flex-start;height:","px;margin:0 20px;border-bottom:1px solid #f2f2f2;.backBtn{.backIcon{height:32px;width:32px;color:#fff;margin-top:4px;margin-left:-10px;}}.headerTitle{display:flex;flex-direction:column;justify-content:space-between;.headerName{font-size:14px;color:#000;font-weight:500;}}}.screen-list{width:100%;overflow-x:hidden;overflow-y:auto;height:calc(100% - ","px);}.when-ws .choosed path{fill:#4257ff;}"],V,O,O);class xe extends C.PureComponent{constructor($t){super($t),(0,l.A)(this,"initCollapseKeySet",()=>{const{activeCid:go}=this.props,Co=(0,b.e7)(go),Tt=new Set(Co.map(mo=>{let{cid:jo}=mo;return jo}));this.setState({collapseKeySet:Tt})}),(0,l.A)(this,"handleSelectScreenMeta",go=>{this.setState({showPageList:!0,currentCanvasCid:go.cid})}),(0,l.A)(this,"handleScreenMetaExpand",go=>{let{cid:Co}=go;const{collapseKeySet:Tt}=this.state,mo=new Set(Tt);Tt.has(Co)?mo.delete(Co):mo.add(Co),this.setState({collapseKeySet:mo})}),(0,l.A)(this,"backHeader",()=>{const{projectName:go,onBack:Co}=this.props,{showPageList:Tt,currentCanvasCid:mo}=this.state;let jo=go;if(Tt){const Kt=R(mo);if(Kt){const{hotAttr:{name:Ft}}=Kt;jo=Ft}}return(0,S.jsxs)("div",{className:"theHeader",children:[(0,S.jsx)("div",{className:"backBtn","data-value":"",onClick:()=>{if(Tt){this.setState({showPageList:!1});return}Co()},children:((0,de.Md)()||Tt)&&(0,S.jsx)(r.C,{name:"preview/menu/mobile-back",className:"backIcon"})}),(0,S.jsx)("div",{className:"headerTitle",children:(0,S.jsx)("div",{className:"headerName",children:jo})})]})}),(0,l.A)(this,"renderScreenMetaItem",go=>{let{depth:Co,screenMeta:Tt,hasScreenMetaChildren:mo,collapseScreenMetaCidSet:jo,activeScreenMetaCid:Kt,dispatch:Ft}=go;const{theme:nt}=this.props,{cid:Rt}=Tt,yt=Kt===Rt,Jt=jo.has(Rt),vo=mo||(0,b.Mo)(Tt);return(0,S.jsx)(_,{theme:nt,depth:Co,screenMeta:Tt,isActive:yt,isExpand:Jt,showExpander:vo,actionProps:this.literalActionProps})}),this.state={collapseKeySet:new Set,showPageList:!1,currentCanvasCid:""},this.literalActionProps={onExpand:this.handleScreenMetaExpand,onSelect:this.handleSelectScreenMeta}}componentDidMount(){const{activeCid:$t}=this.props;this.setState({currentCanvasCid:$t}),this.initCollapseKeySet(),(0,a.H1)($t)}render(){const{activeCid:$t,screenTreeData:go,runnerState:Co,dispatch:Tt,isStatePanelShow:mo}=this.props,{collapseKeySet:jo,showPageList:Kt,currentCanvasCid:Ft}=this.state;return(0,S.jsx)(S.Fragment,{children:!mo&&(0,S.jsxs)(K,{children:[this.backHeader(),(0,S.jsx)("div",{className:p()("screen-list",{"when-ws":!!ENV.IS_WONDER_SHARE}),id:"mobile-screen-tree",children:Kt?(0,S.jsx)(ce,{currentCanvasCid:Ft,runnerState:Co,dispatch:Tt}):(0,S.jsx)(y.A,{collapseScreenMetaCidSet:jo,activeScreenMetaCid:$t,screenTreeData:go,renderScreenMetaItem:this.renderScreenMetaItem,dispatch:Tt})})]})})}}const te=(0,m.Mz)([g.O4,g.oJ,g.Ur,g.mf,g.t$],(pt,$t,go,Co,Tt)=>{const mo=go.cid;return{screenTreeData:$t,activeCid:mo,runnerState:Co,isStatePanelShow:Tt,theme:pt}}),H=(0,o.Ng)(pt=>te(pt))(xe);var re=e(41449);const be=E.Ay.div.withConfig({displayName:"styles__StyledSharingSetting",componentId:"sc-1gzo5az-0"})(["flex:1;display:flex;flex-grow:1;flex-direction:column;height:100%;.theHeader{display:flex;align-items:center;justify-content:flex-start;height:","px;color:#415058;margin:0 20px;border-bottom:1px solid #F2F2F2;.backBtn{padding:10px 10px 10px 0;.backIcon{height:32px;width:32px;color:#fff;margin-top:4px;margin-left:-10px;}}}.headerTitle{display:flex;flex-direction:column;justify-content:space-between;.headerName{color:#353b48;font-weight:bold;font-size:16px;color:#415058;}.headerIntro{margin-top:4px;font-weight:none;font-size:12px;color:#8D9EA7;}}}.contentItem{display:flex;flex-direction:row;justify-content:flex-start;margin:0 20px;border-bottom:1px solid #F2F2F2;height:127px;.sharingBlock{display:flex;justify-content:center;align-items:center;flex-direction:column;margin:0 15px 0 15px;.sharingIconUp{border-radius:10px;height:56px;width:56px;margin-bottom:8px;display:flex;align-items:center;justify-content:center;margin-top:4px;&.wechat{background-color:#57BA40;}&.circle{background-color:#5CC0A5;}.blockIconUp{height:36px;width:36px;}}.sharingIcon{border-radius:10px;background-color:white;height:60px;width:60px;margin-bottom:8px;display:flex;align-items:center;justify-content:center;border:1px solid #F2F2F2;.icon-color{stroke:rgb(91,107,115);}.blockIcon{height:36px;width:36px;}}.sharingName{font-size:12px;color:#7D8694;}}}"],O),Le=E.Ay.div.withConfig({displayName:"styles__StyledOldVersion",componentId:"sc-1gzo5az-1"})(["display:flex;align-items:center;flex-direction:column;height:calc(100% - ","px);justify-content:center;.version-low{width:100px;}.center{color:#415058;font-size:16px;margin-top:24px;}.bottom{color:#7D8B94;font-size:12px;margin-top:8px;}"],O);class Ve extends C.PureComponent{constructor(){super(...arguments),(0,l.A)(this,"onBack",()=>{const{onBackSetting:$t}=this.props;$t()}),(0,l.A)(this,"circleIcon",($t,go,Co,Tt,mo)=>(0,S.jsxs)("div",{className:"sharingBlock",onClick:mo,children:[(0,S.jsx)("div",{className:"sharingIconUp "+Tt,children:(0,S.jsx)(r.C,{isColorPure:!0,name:Co,className:"blockIconUp"})}),(0,S.jsx)("div",{className:"sharingName",children:$t})]})),(0,l.A)(this,"appShareUrl",()=>{const{projectShare:$t}=this.props,go=($t==null?void 0:$t.access_token)||(0,re.H)(location),Co=($t==null?void 0:$t.type)==="default"?$t==null?void 0:$t.view_mode:$t==null?void 0:$t.device_model;return""+window.location.origin+re.o$+"/"+go+"/sharing?view_mode="+(Co||"read_only")}),(0,l.A)(this,"shareToWX",()=>{var $t;const{project:go}=this.props;($t=MB)!=null&&$t.messageBucket&&MB.messageBucket.send("shareToWX",JSON.stringify({url:this.appShareUrl(),project:go,shareName:""}))}),(0,l.A)(this,"shareToWXMoments",()=>{var $t;const{project:go}=this.props;($t=MB)!=null&&$t.messageBucket&&MB.messageBucket.send("shareToWXMoments",JSON.stringify({url:this.appShareUrl(),project:go,shareName:""}))}),(0,l.A)(this,"copyLinkAddress",()=>{var $t;($t=MB)!=null&&$t.messageBucket&&MB.messageBucket.send("copyLinkAddress",JSON.stringify({url:this.appShareUrl(),shareName:""}))}),(0,l.A)(this,"otherIcon",($t,go,Co)=>(0,S.jsxs)("div",{className:"sharingBlock",onClick:this.copyLinkAddress,children:[(0,S.jsx)("div",{className:"sharingIcon",children:(0,S.jsx)(r.C,{isColorPure:!0,name:Co,className:"blockIcon"})}),(0,S.jsx)("div",{className:"sharingName",children:$t})]})),(0,l.A)(this,"shareHeader",()=>(0,S.jsxs)("div",{className:"theHeader",children:[(0,S.jsx)("div",{className:"backBtn","data-value":"",onClick:this.onBack,children:(0,S.jsx)(r.C,{name:"preview/menu/mobile-back",className:"backIcon"})}),(0,S.jsxs)("div",{className:"headerTitle",children:[(0,S.jsx)("div",{className:"headerName",children:I18N.pPreview.mobileMenu.share}),(0,S.jsx)("div",{className:"headerIntro",children:I18N.pPreview.mobileMenu.shareTo})]})]}))}render(){const{isMultiLink:$t}=this.props;return(0,S.jsxs)(be,{children:[this.shareHeader(),$t?!ENV.IS_ON_PREMISES&&!ENV.IS_WONDER_SHARE&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)("div",{className:"contentItem",children:[this.circleIcon(I18N.pPreview.mobileMenu.weChat,null,"preview/menu/wechat","wechat",this.shareToWX),this.circleIcon(I18N.pPreview.mobileMenu.moments,null,"preview/menu/circle","circle",this.shareToWXMoments)]}),(0,S.jsx)("div",{className:"contentItem",children:this.otherIcon(I18N.pPreview.mobileMenu.copyUrl,null,"preview/menu/share_link")})]}):(0,S.jsx)(Ne,{})]})}}function Ne(){return(0,S.jsxs)(Le,{children:[(0,S.jsx)(r.C,{isColorPure:!0,name:"preview/menu/app_version_low",className:"version-low"}),(0,S.jsx)("span",{className:"center",children:"APP\u7248\u672C\u4F4E \u65E0\u6CD5\u5206\u4EAB"}),(0,S.jsx)("span",{className:"bottom",children:"\u8BF7\u5347\u7EA7\u81F3\u6700\u65B0\u7248\u672C"})]})}const We=E.Ay.div.withConfig({displayName:"styles__StyledSharingPanel",componentId:"sc-z94kjc-0"})(["flex:1;width:100%;height:calc(100% - ","px);.theHeader{display:flex;align-items:center;justify-content:flex-start;height:","px;margin:0 20px;border-bottom:1px solid #F2F2F2;.backBtn{padding:10px 10px 10px 0;.backIcon{height:32px;width:32px;color:#fff;margin-top:4px;margin-left:-10px;}}.headerTitle{display:flex;flex-direction:column;justify-content:space-between;.headerName{font-weight:500;font-size:15px;color:#000000;}.headerIntro{margin-top:4px;font-weight:none;font-size:12px;color:#8D9EA7;}}}.sharing-list{width:100%;overflow-x:hidden;overflow-y:auto;height:calc(100% - ","px);}"],V,O,O);function ze(pt){const{onBack:$t,project:go,projectShare:Co}=pt;return(0,S.jsx)(We,{children:(0,S.jsx)(Ve,{isMultiLink:!0,project:go,onBackSetting:$t,projectShare:Co})})}const ft="a1162497883172b3a4f79d1eb0f4b949";class mt extends C.PureComponent{constructor($t){super($t),(0,l.A)(this,"handleClickScreenSetting",()=>{const{onUpdateSetting:go}=this.props;go(ve)}),(0,l.A)(this,"handleClickSharingSetting",()=>{const{onUpdateSetting:go}=this.props;go(J)}),(0,l.A)(this,"refreshRenderTitle",()=>null),this.isDemo=ft===$t.project.access_token}render(){const{isDummyApk:$t,project:go,isHTMLZip:Co,onPreviewExit:Tt,onProjectPreviewReload:mo,onUpdateProjectHighlight:jo,isHighlight:Kt,projectShare:Ft}=this.props,{name:nt,icon:Rt}=go,yt=Rt?(Co?".":"")+Rt:"/images/app_icon.svg",{canvas:Jt,pages:vo}=D(Ft);return(0,S.jsxs)("div",{className:"theContent",children:[(0,S.jsxs)("div",{className:"theHeader",children:[(0,S.jsx)("div",{className:"headerIcon",children:Rt?(0,S.jsx)("img",{src:yt}):(0,S.jsx)(r.C,{name:"preview/menu/project_icon",isColorPure:!0})}),(0,S.jsxs)("div",{className:"headerTitle",children:[(0,S.jsx)("div",{className:"headerName",children:nt}),(0,S.jsx)("div",{className:"headerIntro",children:Jt+"\u4E2A\u753B\u5E03, "+vo+I18N.pPreview.mobileMenu.unitScreen})]})]}),(0,S.jsxs)("div",{className:"contentItem",children:[(0,S.jsx)(i,{name:I18N.pPreview.mobileMenu.screenList,icon:"preview/menu/list",onClick:this.handleClickScreenSetting}),(0,S.jsx)(i,{className:Kt?"highlight-blue":"highlight-gray",name:I18N.pPreview.mobileMenu.viewLink,icon:"preview/menu/link",onClick:jo}),(0,S.jsx)(i,{name:I18N.pPreview.mobileMenu.refresh,icon:"preview/menu/refresh",renderName:this.refreshRenderTitle,onClick:mo})]}),(0,S.jsxs)("div",{className:"contentItem",children:[(0,S.jsx)(i,{name:I18N.pPreview.mobileMenu.share,icon:"preview/menu/share",onClick:this.handleClickSharingSetting}),!$t&&(0,S.jsx)(i,{name:I18N.pPreview.mobileMenu.exitPreview,icon:"preview/menu/exit",onClick:Tt})]})]})}}const i=(0,C.memo)(pt=>{let{icon:$t,name:go,onClick:Co,renderName:Tt,className:mo}=pt;return(0,S.jsxs)("div",{className:p()("menuBlock",mo),onClick:Co,children:[(0,S.jsx)("div",{className:"menuBlockIcon",children:(0,S.jsx)(r.C,{name:$t,className:"blockIcon",isColorPure:!0})}),(0,S.jsxs)("div",{className:"menuBlockName",children:[Tt&&Tt(),(0,S.jsx)("p",{className:"name",children:go||""})]})]})});var gt=e(19418);class Je extends C.PureComponent{constructor($t){super($t),(0,l.A)(this,"setElementRef",go=>this.$elem=go),(0,l.A)(this,"handleBackPreviewSetting",()=>{this.setState({currentMenuType:""})}),(0,l.A)(this,"handleClosePreviewSetting",()=>{this.setState({isOpen:!1,currentMenuType:""}),MB.messageBucket.send("closePreviewSettingMenu")}),(0,l.A)(this,"handleUpdateProjectHighlight",()=>{const{isHighlight:go,dispatch:Co}=this.props;Co({type:"entry:preview-setting:update:is-highlight",payload:{isHighlight:!go}}),MB.messageBucket.send("setDisplayLinkOK",{isHighlight:!go})}),(0,l.A)(this,"handleProjectPreviewReload",()=>{MB.messageBucket.send("refreshPreview")}),(0,l.A)(this,"handlePreviewExit",()=>{MB.messageBucket.send("exitAppPreview")}),(0,l.A)(this,"handleUpdateSetting",go=>{this.setState({currentMenuType:go})}),(0,l.A)(this,"handleShowModal",()=>{MB.messageBucket.send("toggleOffline")}),(0,l.A)(this,"onClickOutside",go=>{let{target:Co}=go;this.$elem.contains(Co)||this.handleClosePreviewSetting()}),this.state={isOpen:!1,currentMenuType:""}}async componentDidMount(){const $t=this,go=document.querySelector("#workspace"),Co=new(A()).Manager(go);Co.add(new(A()).Tap({event:"doubletap",pointers:2})),Co.on("doubletap",function(Tt){$t.setState({isOpen:!0}),MB.messageBucket.send("openPreviewSettingMenu")})}render(){const{project:$t,isHTMLZip:go,isHighlight:Co,isDummyApk:Tt,isMultiLink:mo,projectShare:jo}=this.props,{isOpen:Kt,currentMenuType:Ft}=this.state;let nt=Ft===J,Rt=Ft===ve,yt=Ft==="";return(0,de.Md)()||(nt=!1,yt=!1,Rt=!0),(0,S.jsxs)(S.Fragment,{children:[Kt&&(0,S.jsx)(ae,{className:"mask"}),(0,S.jsxs)(q,{className:p()({"is-open":Kt}),ref:this.setElementRef,children:[yt&&(0,S.jsx)(mt,{project:$t,isHTMLZip:go,isHighlight:Co,isDummyApk:Tt,onUpdateSetting:this.handleUpdateSetting,onPreviewExit:this.handlePreviewExit,onProjectPreviewReload:this.handleProjectPreviewReload,onUpdateProjectHighlight:this.handleUpdateProjectHighlight,onShowModal:this.handleShowModal,projectShare:jo}),nt&&(0,S.jsx)(ze,{isMultiLink:mo,project:$t,onBack:this.handleBackPreviewSetting,projectShare:jo}),Rt&&(0,S.jsx)(H,{onBack:this.handleBackPreviewSetting,projectName:$t.name}),(0,S.jsx)(Pt,{onClose:this.handleClosePreviewSetting,isShowScreen:Rt}),Kt&&(0,S.jsx)(gt.A,{target:document,onClick:(0,gt.t)(this.onClickOutside,{capture:!0})})]})]})}}const Pt=(0,C.memo)(pt=>{let{onClose:$t,isShowScreen:go}=pt;return(0,S.jsx)("div",{className:"theFooter "+(go?"top-line":""),onClick:$t,children:I18N.pPreview.mobileMenu.cancel})}),bt=(0,m.Mz)([g.PL,g.Re,g.bF,g.ts,g.UB],(pt,$t,go,Co,Tt)=>{let{isHTMLZip:mo,isMultiLink:jo}=go;return{project:pt,isHighlight:$t,isHTMLZip:mo,isDummyApk:Co,isMultiLink:jo,projectShare:Tt}}),qt=(0,o.Ng)(pt=>bt(pt))(Je)},27683:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>k});var o=e(74059),m=e(51044),g=e(72605),l=e(93240),C=e(19994),T=e(57464);class A extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleCloseModal",r=>{if(typeof r=="string"){this.props.dispatch({type:"previewModal:reset:popup:state",payload:{modalName:r}});return}this.props.dispatch({type:"previewModal:reset:state"})})}render(){const{preOpenHyperlinkModal:r,imagePreviewModal:x}=this.props;return(0,T.jsxs)(T.Fragment,{children:[r.isOpen&&(0,T.jsx)(l.A,{...r,onClose:this.handleCloseModal}),x.isOpen&&(0,T.jsx)(C.A,{...x,onClose:()=>{this.handleCloseModal("imagePreviewModal")}})]})}}const k=(0,g.Ng)(p=>({...p.container.modals}))(A)},22813:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>Ce});var o=e(72605),m=e(63686),g=e(91560),l=e(35592),C=e(51044),T=e(63033),A=e(57464);const k=ae=>((0,C.useEffect)(()=>{const{dispatch:q}=ae;return q({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!1}}),()=>{q({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!0,isSetTimeout:!0}})}},[]),(0,A.jsx)(T.L,{...ae,commentPanelWidth:ae.rightPaneWidth})),p=(0,m.Mz)([l.VT,l.Cb,l.c1,l.M5,g.bF],(ae,q,K,xe,te)=>{let{isHTMLZip:H}=te;return{commentList:ae,activeCommentCid:q,selected:K,isShowCompletedComment:xe,viewType:new URLSearchParams(location.search).get("view_mode"),isHtmlZipPreview:H}}),r=(0,o.Ng)(ae=>p(ae))(k);var x=e(21676);const f=x.Ay.div.withConfig({displayName:"styles__StyledRightPane",componentId:"sc-14zoiba-0"})(["position:relative;display:flex;flex-direction:column;height:calc(100% - 48px);top:48px;border-left:1px solid ",";z-index:100;.border-resizer.left{left:-1px;&:hover{background-color:rgba(22,132,252,.6);}&.active{background-color:rgba(22,132,252,.6);}}.preview-panel-wrapper{position:absolute;top:0;left:0;height:100%;width:100%;}&:hover{.toggle-minimized-button{&:not(.is-minimized){opacity:1;pointer-events:auto;}}}"],ae=>ae.theme.color_bg_border_01);var u=e(30973),b=e(54608),h=e(95230),E=e(5173),N=e(5985);const z=null,S=()=>{},_=(0,m.Mz)([g.x,g.PL,g.bF,g.Ur,g.HW,g.wA],(ae,q,K,xe,te,H)=>{let{isHTMLZip:re}=K;return{newSelection:[],isST:!0,currentScreen:xe,isWidgetBeingExported:ae,isHtmlZipPreview:re,currentProject:q,currentUser:te,currentOrg:H}}),y=(ae,q)=>({updateExportSettings:S,exportItem:K=>ae({type:"entry:export:item",payload:{exportConfigList:K,itemToExportKeyList:q.itemToExportKeyList}})}),a=(0,o.Ng)(ae=>_(ae),y)(N.A);var $=e(36892),ce=e(81988),de=e(36450),fe=e(18265);const se=()=>{},J=ae=>{var q,K;let{rightPaneWidth:xe,maxRightPaneWidth:te}=ae;const{activeCanvasKey:H,overlayStack:re}=(0,o.d4)(g.mf),{isHTMLZip:be}=(0,o.d4)(g.bF),Le=(0,o.d4)(g.PL),Ve="recommend",Ne=re.length>0?(0,$.Je)(re[re.length-1].targetOverlayKey,sdkStore):(0,$.Je)(H,sdkStore),We=(0,o.wA)(),[ze,ft]=(0,C.useState)(""),[mt,i]=(0,C.useState)(!1),[gt,Je]=(0,C.useState)(new Set),[Pt,bt]=(0,C.useState)(new Set),qt=!Ne.every(nt=>{let{key:Rt}=nt;return Pt.has(Rt)}),pt=new Set([...Array.from(gt),...Array.from(Pt)]),$t=Ne.every(nt=>{let{key:Rt}=nt;return pt.has(Rt)}),go=nt=>{We({type:"preview:set:rightPaneWidth",payload:{rightPaneWidth:nt,projectCid:Le.cid}})},Co=nt=>{ft(nt)},Tt=()=>ft(""),mo=nt=>{const Rt=new Set(gt);Rt.has(nt)?Rt.delete(nt):Rt.add(nt),Je(Rt)},jo=nt=>{const Rt=new Set(Pt);Rt.add(nt),bt(Rt)},Kt=nt=>{const Rt=new Set(Pt);Pt.delete(nt),bt(Rt)},Ft=()=>{Je($t?new Set:new Set(Ne.map(nt=>{let{key:Rt}=nt;return Rt})))};return(0,A.jsxs)(ve,{style:{width:xe},children:[(0,A.jsx)(u.A,{placement:"left",className:"v-resizer",value:xe,min:h.xM,max:te,onChange:go}),(0,A.jsxs)(ce.b,{children:[(0,A.jsx)(ce.u,{activeIndex:0,onTabChange:se,layoutV9:Ve,children:(0,A.jsx)(b.n,{label:I18N.Note.note,active:!0})}),qt&&(0,A.jsx)("span",{className:"expandAll",onClick:Ft,children:$t?I18N.ScreenList.collapse_screens:I18N.ScreenList.expand_screens})]}),Ne.length===0?(0,A.jsx)(E.h,{}):(0,A.jsx)(fe.TV,{onClick:Tt,children:(0,A.jsx)("div",{className:"st-list",children:Ne.map((nt,Rt)=>(0,A.jsx)(de.i,{isActive:ze===nt.key,st:nt,isHtmlZipPreview:be,setIsExportOpenFromContainer:i,onMouseDown:se,editable:!1,selectST:Co,deleteST:se,isExpanded:gt.has(nt.key),isAlreadyExpanded:Pt.has(nt.key),STPanelWidth:xe,toggleExpandKeySet:mo,pushToAlreadyExpandKeySet:jo,deleteFromAlreadyExpandKeySet:Kt},Rt))})}),!be&&(0,A.jsx)(a,{selectedWidgetCount:ze?1:Ne.length,itemToExportKeyList:ze?[ze]:Ne.map(nt=>{let{key:Rt}=nt;return Rt}),exportWidgetTreeCids:ze||Ne.map(nt=>{let{key:Rt}=nt;return Rt}).join("-"),isLogin:!!(!((q=MB)==null||(q=q.user)==null)&&q.id),widgetDisplayName:ze?""+I18N.Note.note+(((K=Ne.find(nt=>{let{key:Rt}=nt;return Rt===ze}))==null||(K=K.hotAttr)==null?void 0:K.order)||""):I18N.Note.selected_notes,isExportOpenFromContainer:mt,setIsExportOpenFromContainer:i})]})},ve=x.Ay.div.withConfig({displayName:"STPanel__StyledSTPanelWrapper",componentId:"sc-rki154-0"})(["display:flex;flex-direction:column;height:100%;"]);var D=e(1190);const R=(0,D.$)(J),V=ae=>{let{isCommentPanelShow:q,isFullScreenMode:K}=ae;const xe=(0,o.d4)(g.E1),te=(0,o.d4)(g.zo),H=window.innerWidth-h.K_-xe,re=(0,o.d4)(g.UB),{isHTMLZip:be}=(0,o.d4)(g.bF),Le=(0,o.wA)(),Ve=(0,o.d4)(g.U4),Ne=()=>Le({type:"entry:preview-setting:toggle:rightPane"}),We=be||re&&(typeof re.view_sticky=="string"?re.view_sticky==="view_sticky":re.view_sticky);return(0,A.jsx)(f,{id:"mb-preview-rightpane",className:K?"is-fullscreen-mode":"",children:q?(0,A.jsx)(r,{rightPaneWidth:te}):We&&(0,A.jsx)(R,{isVisible:Ve,orientation:"right",toggleFunc:Ne,rightPaneWidth:te,maxRightPaneWidth:H})})},O=(0,m.Mz)([l.sI,g.Ph,g.ZR],(ae,q,K)=>{let{isShowRightPane:xe}=K;return{isCommentPanelShow:ae&&MB.user.id,isFullScreenMode:q,isShowRightPane:xe}}),Ce=(0,o.Ng)(ae=>O(ae))(V)},60310:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>Ho});var o=e(72605),m=e(63686),g=e(91560),l=e(74059),C=e(51044),T=e(86634),A=e.n(T),k=e(21676),p=e(43441),r=e(68496),x=e(62931),f=e(38537),u=e(54635);const b=k.Ay.div.withConfig({displayName:"styles__StyledCanvas",componentId:"sc-tbpc8w-0"})(["z-index:1;display:flex;position:absolute;flex-direction:column;width:100%;height:100%;&.active{z-index:3;}.screen-header,.screen-footer{position:relative;overflow:hidden;}.screen-footer{.footer-widgets{position:absolute;top:0;left:0;width:100%;height:100%;}}.screen-content{position:relative;flex:1;overflow:hidden;.widgets{position:relative;}.iScrollVerticalScrollbar,.iScrollHorizontalScrollbar{z-index:2147483647 !important;}}"]);var h=e(57464);const E={[u.Ci.hide]:"hide",[u.Ci.auto]:"auto",[u.Ci.horizontal]:"horizontal",[u.Ci.vertical]:"vertical"};class N extends C.PureComponent{constructor(){super(...arguments),(0,l.A)(this,"setElementRef",Ze=>this.$elem=Ze),(0,l.A)(this,"handleUpdateMouseEventHandler",()=>{const{transition:{delay:Ze,duration:it}}=this.props;setTimeout(()=>this.$elem&&MB.runnerController.initMouseEventHandler(this.$elem),Ze+it+100)})}componentDidMount(){this.$elem&&MB.runnerController.initMouseEventHandler(this.$elem)}componentDidUpdate(Ze){Ze.canvasKey!==this.props.canvasKey&&this.handleUpdateMouseEventHandler()}render(){const{pageKey:Ze,canvasKey:it,isShow:st,isActive:dt,style:Ot,transition:Ct,isPanelPreviewMode:wo,panelPreviewBasketKey:ln}=this.props,Io=sdkStore.getHotItem(it);if(!Io||sdkStore.isTrashed(it))return;const{hotAttr:{fill:Lo,orientation:Ao,asOverlay:xt}}=Io;let{hotAttr:{deviceScroll:Ut}}=sdkStore.getHotItem(Ze),Wo={display:st?"":"none",...Lo.fillIsVisible&&!xt&&!wo&&{backgroundColor:(0,r.t0)(Lo.solidColor)},...Ot};if(Ct.name==="auto"?Wo.transition="all "+Ct.duration+"ms linear, z-index 0s linear":Wo.transition="unset",wo&&ln){var qo;const ds=(qo=sdkStore.getHotItem(ln))==null?void 0:qo.hotAttr;if(ds&&(Ut=E[ds.scroll],it)){const _s=sdkStore.getSourceHotItem(it);if(_s){const{hotAttr:{x:Ls,y:gs,w:ns,h:Wn}}=_s;Wo={...Wo,top:Math.max(0,gs-Wn/2),left:Math.max(0,Ls-ns/2)}}}}const sn=A()("pcanvas",Ao,{active:dt,"as-overlay":xt}),Kn=dt&&Wo.display!=="none";return(0,h.jsxs)(b,{id:"pscreen"+it,"data-cid":it,"data-orientation":Ao,className:sn,style:Wo,ref:this.setElementRef,children:[(0,h.jsx)(S,{isPanelPreviewMode:wo,canvas:Io,transition:Ct,onUpdateMouseEventHandler:this.handleUpdateMouseEventHandler}),Kn&&(0,h.jsx)(z,{canvasId:it,deviceScroll:Ut,isPanelPreviewMode:wo})]})}}class z extends C.PureComponent{constructor(){super(...arguments),(0,l.A)(this,"handleGetScrollOption",()=>{const{deviceScroll:Ze,isPanelPreviewMode:it}=this.props,st=["auto","horizontal","hide"].includes(Ze),dt=["auto","vertical","hide"].includes(Ze);return{scrollX:it?!0:st,scrollY:it?!0:dt,scrollbars:it?Ze!=="hide":!0,fadeScrollbars:it?Ze==="hide":!0,mouseWheel:it?Ze!=="hide":!0}}),(0,l.A)(this,"handleRenderScrollbar",()=>{const{canvasId:Ze,deviceScroll:it,isPanelPreviewMode:st}=this.props,dt=it==="hide"&&!st,Ot=this.handleGetScrollOption();setTimeout(()=>{MB.runnerController.renderScrollbar(Ze,Ot),dt&&MB.runnerController.disableScrollBar(Ze)})})}componentDidMount(){this.handleRenderScrollbar()}componentDidUpdate(){this.handleRenderScrollbar()}componentWillUnmount(){const{canvasId:Ze}=this.props;MB.runnerController.destroyScrollBarByCid(Ze)}render(){return null}}class S extends C.PureComponent{constructor(){super(...arguments),(0,l.A)(this,"setElementRef",Ze=>this.$screenContent=Ze)}render(){const{transition:Ze,canvas:it,isPanelPreviewMode:st,onUpdateMouseEventHandler:dt}=this.props,{key:Ot,hotAttr:{stickyHeaderHeight:Ct,stickyFooterHeight:wo,h:ln,w:Io,fill:Lo,asOverlay:Ao}}=it,xt={height:!Ao&&st?ln:ln-(Ct+wo),width:Io,...Lo.fillIsVisible&&!Ao&&st&&{backgroundColor:(0,r.t0)(Lo.solidColor)}},Ut={height:ln,marginTop:st?0:-Ct};return(0,h.jsx)(x.Y,{canvasKey:Ot,transition:Ze,onUpdateMouseEventHandler:dt,children:Wo=>(0,h.jsxs)(h.Fragment,{children:[!st&&(0,h.jsx)("div",{className:"screen-header",style:{height:Ct},children:Ct>0&&(0,h.jsx)(C.Fragment,{children:(0,f.cg)(Wo,Ct).children.map(qo=>qo.render({isWithinHeader:!0}))})}),(0,h.jsx)("div",{className:"screen-content",ref:this.setElementRef,children:(0,h.jsx)("div",{className:"widgets",style:xt,children:(0,h.jsx)("div",{className:"scontainer",style:Ut,children:Wo.render()})})}),!st&&(0,h.jsx)("div",{className:"screen-footer",style:{height:wo},children:wo>0&&(0,h.jsx)("div",{className:"footer-widgets",style:{marginTop:wo-ln},children:(0,f.mm)(Wo,ln,wo).children.map(qo=>qo.render({isWithinFooter:!0}))})})]})})}}var _=e(15139);const y=(0,C.memo)(kt=>{let{overlayEntry:Ze,currPageKey:it,currCanvasKey:st,isPanelPreviewMode:dt,panelPreviewBasketKey:Ot}=kt;const{idx:Ct,tick:wo,isOverlayIn:ln,transition:Io,targetRBPageKey:Lo,targetOverlayKey:Ao,overlayRelativePosX:xt,overlayRelativePosY:Ut,addBackdrop:Wo,backdropColor:qo,backdropFilterBlurRadius:sn,closeWhenClickingOutside:Kn}=Ze,ds=(0,C.useRef)(null),_s=(0,C.useRef)(null),Ls=(0,o.wA)(),gs=sdkStore.getHotItem(Ao);if(!gs)return null;const ns=_.A.getOverlayRunnerViewport(it,st);if(!ns)return null;const Wn=()=>{Kn&&Ls({type:"entry:runner:close:overlay"})};return(0,h.jsxs)(a,{id:Ao+Ct,className:"overlay-runner",zIndex:Ct,transitionDuration:Io.duration,destXY:{x:xt,y:Ut},overlayWH:{w:gs.hotAttr.w,h:gs.hotAttr.h},overlayRunnerViewportBR:{r:ns.right,b:ns.bottom},addBackdrop:Wo,backdropColor:(0,r.t0)(qo),backdropFilterBlurRadius:sn,children:[(0,h.jsx)(p.A,{in:ln,appear:!0,timeout:Io.duration,nodeRef:ds,className:Io.name+" overlay",onEntered:Io.callback,children:(0,h.jsx)("div",{ref:ds,children:(0,h.jsx)(N,{pageKey:Lo,canvasKey:Ao,transition:Io,isShow:!0,style:{},isActive:!0,isPanelPreviewMode:dt,panelPreviewBasketKey:Ot})})},wo),(0,h.jsx)(p.A,{in:ln,appear:!0,nodeRef:_s,timeout:Io.duration,className:"fade overlay-backdrop",children:(0,h.jsx)("div",{ref:_s,onClick:Wn})})]})}),a=k.Ay.div.withConfig({displayName:"MBOverlayRunner__StyledMBOverlayRunner",componentId:"sc-k1n5f1-0"})(["position:absolute;top:0;left:0;width:100%;height:100%;z-index:",";.overlay{transform:translateY(","px) translateX(","px);}.slideleft2{&.appear,&.enter{transform:translateX(-100%) translateY(","px);}&.appear-active,&.enter-active{transform:translateX(","px) translateY(","px);}&.appear-done,&.enter-done{transform:translateX(","px) translateY(","px);}&.exit{transform:translateX(","px) translateY(","px);}&.exit-active{transform:translateX(-100%) translateY(","px);}&.exit-done{transform:translateX(-100%) translateY(","px);}&.appear-active,&.enter-active,&.exit-active{transition:transform ","ms linear;}}.slideright2{&.appear,&.enter{transform:translateX(","px) translateY(","px);}&.appear-active,&.enter-active{transform:translateX(","px) translateY(","px);}&.appear-done,&.enter-done{transform:translateX(","px) translateY(","px);}&.exit{transform:translateX(","px) translateY(","px);}&.exit-active{transform:translateX(","px) translateY(","px);}&.exit-done{transform:translateX(","px) translateY(","px);}&.appear-active,&.enter-active,&.exit-active{transition:transform ","ms linear;}}.topin{&.appear,&.enter{transform:translateY(-100%) translateX(","px);}&.appear-active,&.enter-active{transform:translateY(","px) translateX(","px);}&.appear-done,&.enter-done{transform:translateY(","px) translateX(","px);}&.exit{transform:translateY(","px) translateX(","px);}&.exit-active{transform:translateY(-100%) translateX(","px);}&.exit-done{transform:translateY(-100%) translateX(","px);}&.appear-active,&.enter-active,&.exit-active{transition:transform ","ms linear;}}.popin{&.appear,&.enter{transform:translateY(","px) translateX(","px);}&.appear-active,&.enter-active{transform:translateY(","px) translateX(","px);}&.appear-done,&.enter-done{transform:translateY(","px) translateX(","px);}&.exit{transform:translateY(","px) translateX(","px);}&.exit-active{transform:translateY(","px) translateX(","px);}&.exit-done{transform:translateY(","px) translateX(","px);}&.appear-active,&.enter-active,&.exit-active{transition:transform ","ms linear;}}.fade{&.appear,&.enter{opacity:0;}&.appear-active,&.enter-active{opacity:1;}&.appear-done,&.enter-done{opacity:1;}&.exit{opacity:1;}&.exit-active{opacity:0;}&.exit-done{opacity:0;}&.appear-active,&.enter-active,&.exit-active{transition-property:opacity,width,height,transform;transition-duration:","ms;transition-timing-function:linear;}}.auto{transition-property:opacity,width,height,transform;transition-duration:","ms;transition-timing-function:linear;&.appear,&.enter{opacity:0;}&.appear-active,&.enter-active{opacity:1;}&.appear-done,&.enter-done{opacity:1;}&.exit{opacity:1;}&.exit-active{opacity:0;}&.exit-done{opacity:0;}}.overlay{position:absolute;z-index:2;width:","px;height:","px;}.overlay-backdrop{z-index:1;position:absolute;width:100%;height:100%;","}"],kt=>kt.zIndex,kt=>kt.destXY.y,kt=>kt.destXY.x,kt=>kt.destXY.y,kt=>kt.destXY.x,kt=>kt.destXY.y,kt=>kt.destXY.x,kt=>kt.destXY.y,kt=>kt.destXY.x,kt=>kt.destXY.y,kt=>kt.destXY.y,kt=>kt.destXY.y,kt=>kt.transitionDuration,kt=>kt.overlayRunnerViewportBR.r,kt=>kt.destXY.y,kt=>kt.destXY.x,kt=>kt.destXY.y,kt=>kt.destXY.x,kt=>kt.destXY.y,kt=>kt.destXY.x,kt=>kt.destXY.y,kt=>kt.overlayRunnerViewportBR.r,kt=>kt.destXY.y,kt=>kt.overlayRunnerViewportBR.r,kt=>kt.destXY.y,kt=>kt.transitionDuration,kt=>kt.destXY.x,kt=>kt.destXY.y,kt=>kt.destXY.x,kt=>kt.destXY.y,kt=>kt.destXY.x,kt=>kt.destXY.y,kt=>kt.destXY.x,kt=>kt.destXY.x,kt=>kt.destXY.x,kt=>kt.transitionDuration,kt=>kt.overlayRunnerViewportBR.b,kt=>kt.destXY.x,kt=>kt.destXY.y,kt=>kt.destXY.x,kt=>kt.destXY.y,kt=>kt.destXY.x,kt=>kt.destXY.y,kt=>kt.destXY.x,kt=>kt.overlayRunnerViewportBR.b,kt=>kt.destXY.x,kt=>kt.overlayRunnerViewportBR.b,kt=>kt.destXY.x,kt=>kt.transitionDuration,kt=>kt.transitionDuration,kt=>kt.transitionDuration,kt=>kt.overlayWH.w,kt=>kt.overlayWH.h,kt=>kt.addBackdrop&&"\n background-color: "+kt.backdropColor+";\n backdrop-filter: blur("+kt.backdropFilterBlurRadius+"px);\n "),$=()=>{const kt=(0,o.d4)(g.mf),Ze=kt.overlayStack,{activePageKey:it,activeCanvasKey:st}=kt,dt=(0,o.d4)(g.KR),Ot=(0,o.d4)(g.Mo);return Ze.length===0?null:(0,h.jsx)(ce,{children:Ze.map((Ct,wo)=>(0,h.jsx)(y,{currPageKey:it,currCanvasKey:st,overlayEntry:Ct,isPanelPreviewMode:dt,panelPreviewBasketKey:Ot},wo+1))})},ce=k.Ay.div.withConfig({displayName:"MBOverlayRunner__StyledMBOverlayRunnerContainer",componentId:"sc-k1n5f1-1"})(["position:absolute;top:0;left:0;width:100%;height:100%;z-index:4;"]);var de=e(66748),fe=e.n(de),se=e(35176);const J=function(kt){return kt<.5?4*kt*kt*kt:(kt-1)*(2*kt-2)*(2*kt-2)+1};class ve extends C.PureComponent{static getDerivedStateFromProps(Ze,it){return Ze.activeCanvasKey!==it.currentCanvasKey?{currentCanvasKey:Ze.activeCanvasKey,percent:0}:null}constructor(Ze){super(Ze),(0,l.A)(this,"playAnimation",it=>{this.setState({percent:0});const st=Date.now(),dt=()=>{let Ot=(Date.now()-st)/it;isNaN(Ot)&&(Ot=1/0);const Ct=J(Ot),wo=Math.min(Ct,1);this.setState({percent:wo}),wo<1&&requestAnimationFrame(dt)};requestAnimationFrame(dt)}),this.state={currentCanvasKey:Ze.activeCanvasKey,percent:1}}componentDidMount(){this.props.onHomeScreenLoad(this.props.activeCanvasKey)}componentDidUpdate(Ze,it){const{transition:{name:st,duration:dt}}=this.props;it.currentCanvasKey!==this.state.currentCanvasKey&&st!=="auto"&&st!=="none"&&this.playAnimation(dt),it.percent<1&&this.state.percent===1&&this.props.onTransitionEnd(this.props.activeCanvasKey)}render(){const{children:Ze,transition:{name:it,offset:st}}=this.props,{percent:dt}=this.state,[Ot,Ct]=(0,se.q)(it,dt,st);return Ze(Ot,Ct)}}(0,l.A)(ve,"propTypes",{children:fe().func.isRequired,activeCanvasKey:fe().string.isRequired,transition:fe().object.isRequired,onHomeScreenLoad:fe().func,onTransitionEnd:fe().func});class D extends C.PureComponent{constructor(Ze){super(Ze),(0,l.A)(this,"handleHomeScreenLoad",it=>{const{activePageKey:st,transition:{callback:dt}}=this.props;MB.runnerController.doneTransition(st,it),dt&&dt()}),(0,l.A)(this,"handleTransitionEnd",it=>{const{activePageKey:st,transition:{name:dt,callback:Ot}}=this.props;/(menu|drawer)-reverse/.test(dt)&&(MB.runnerController.setCurrentCanvasAsMenuOrDrawerKey(""),MB.runnerController.setCurrentCanvasKey("")),MB.runnerController.doneTransition(st,it),Ot&&Ot()}),this.state={prevCanvasKey:"",currCanvasKey:Ze.activeCanvasKey}}render(){const{activePageKey:Ze,transition:it,isPanelPreviewMode:st,panelPreviewBasketKey:dt}=this.props,{prevCanvasKey:Ot,currCanvasKey:Ct}=this.state;return!Ct||sdkStore.isTrashed(Ct)?null:(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)($,{}),(0,h.jsx)(ve,{activeCanvasKey:Ct,transition:it,onHomeScreenLoad:this.handleHomeScreenLoad,onTransitionEnd:this.handleTransitionEnd,children:(wo,ln)=>(0,h.jsxs)(h.Fragment,{children:[Ot&&(0,h.jsx)(N,{pageKey:Ze,canvasKey:Ot,transition:it,isShow:!0,style:wo,isActive:!1,isPanelPreviewMode:st,panelPreviewBasketKey:dt}),Ct&&(0,h.jsx)(N,{pageKey:Ze,canvasKey:Ct,transition:it,isShow:!0,style:ln,isActive:!0,isPanelPreviewMode:st,panelPreviewBasketKey:dt})]})})]})}}(0,l.A)(D,"getDerivedStateFromProps",(kt,Ze)=>kt.activeCanvasKey!==Ze.currCanvasKey?{prevCanvasKey:Ze.currCanvasKey,currCanvasKey:kt.activeCanvasKey}:null);const R=(0,o.Ng)(kt=>{const{activePageKey:Ze,activeCanvasKey:it,transition:st}=(0,g.mf)(kt),dt=(0,g.KR)(kt),Ot=(0,g.Mo)(kt);return{activePageKey:Ze,activeCanvasKey:it,transition:st,isPanelPreviewMode:dt,panelPreviewBasketKey:Ot}})(D);var V=e(7233),O=e(48310),Ce=e(63555),ae=e(103),q=e(98236),K=e.n(q),xe=e(83728);const te=k.Ay.div.withConfig({displayName:"styles__StyledNonCanvas",componentId:"sc-2ntbrk-0"})(["z-index:1;display:flex;position:absolute;flex-direction:column;width:100%;height:100%;.screen-content{position:relative;flex:1;overflow:hidden;.widgets{width:100%;height:100%;position:relative;overflow:hidden;.scontainer{position:absolute;overflow:hidden;width:100%;height:100%;.non-canvas-wrapper{position:absolute;top:","px;left:","px;width:0px;height:0px;z-index:1;pointer-events:auto;}}}}"],kt=>-kt.top,kt=>-kt.left),H=kt=>{if(!kt)return null;const Ze=(0,O.v)(O.K.preview),it=new V.c(Ze,sdkStore);return it.buildWidgetTree({folderKey:kt,isEditingCombo:!0}),it.getNode(kt)};class re extends C.PureComponent{constructor(Ze){super(Ze),(0,l.A)(this,"setElementRef",it=>this.$elem=it),(0,l.A)(this,"handleUpdateMouseEventHandler",()=>{const{transition:{delay:it,duration:st,callback:dt},isPreviewCombo:Ot}=this.props;setTimeout(()=>this.$elem&&MB.runnerController.initMouseEventHandler(this.$elem),it+st+100),Ot&&dt&&dt()}),(0,l.A)(this,"subscribe",it=>{let{type:st,payload:dt}=it;st===ae.a&&this.repaint(dt.changedKeyList)}),(0,l.A)(this,"repaint",it=>{if(!(it!=null&&it.length))return;const{activePageKey:st,dispatch:dt}=this.props,{pageNode:Ot}=this.state;if(!Ot)return;if(it[0]===st&&sdkStore.isTrashed(st)){this.setState({pageNode:null});return}if(it.some(Ut=>{var Wo;return((Wo=sdkStore.getHotItem(Ut))==null||(Wo=Wo.hotAttr)==null?void 0:Wo.type)===Ce.x.WMindNode})){setTimeout(()=>{this.setState({pageNode:H(st)}),dt({type:"entry:preview:zoom-quick-preview"}),this.handleUpdateMouseEventHandler()});return}const Ct=[],wo=it.filter(Ut=>{const Wo=Ot.widgetStore.getNode(Ut);if(!sdkStore.getHotItem(Ut))return!1;const sn=sdkStore.locUpRBPageKey(Ut),Kn=st===sn;return!Kn&&Wo&&Ct.push(Ut),Kn});if(!(wo!=null&&wo.length)&&!(Ct!=null&&Ct.length))return;const ln=[],Io=[...Ct],Lo=[],Ao=[];if(wo.forEach(Ut=>{const Wo=Ot.widgetStore.getNode(Ut),qo=sdkStore.getHotItem(Ut);if(Wo)if(sdkStore.isTrashed(Ut))Io.push(Ut);else{var sn,Kn,ds,_s;Lo.push(qo),(!K()(Wo==null||(sn=Wo.hotAttr)==null?void 0:sn.optionData,qo==null||(Kn=qo.hotAttr)==null?void 0:Kn.optionData)||(Wo==null||(ds=Wo.hotAttr)==null||(ds=ds.switch)==null?void 0:ds.checked)!==(qo==null||(_s=qo.hotAttr)==null||(_s=_s.switch)==null?void 0:_s.checked))&&Ao.push(Ut)}else qo&&ln.push(qo)}),!ln.length&&!Lo.length&&!Io.length)return;const xt=(0,xe.ik)({canvasNode:Ot,creates:ln,updates:Lo,deletes:Io,runningData:{folderKey:Ot.key,isEditingCombo:!0,editingBasketRefPage:"",editingBDanliKey:""}});this.setState({pageNode:xt}),dt({type:"entry:preview:zoom-quick-preview"}),this.handleUpdateMouseEventHandler(),dt({type:"entry:runner:reset:widgetStatus",payload:{keys:Ao}})}),this.state={pageNode:H(Ze.activePageKey)}}componentDidMount(){this.setState({pageNode:H(this.props.activePageKey)}),this.handleUpdateMouseEventHandler(),sdkStore.subscribe(this.subscribe)}static getDerivedStateFromProps(Ze,it){const{activePageKey:st}=Ze,{pageNode:dt}=it;return st!==(dt==null?void 0:dt.key)?{pageNode:H(st)}:null}componentDidUpdate(Ze){Ze.activePageKey!==this.props.activePageKey&&this.handleUpdateMouseEventHandler()}componentWillUnmount(){sdkStore.unsubscribe(this.subscribe)}render(){const{pageNode:Ze}=this.state;if(!Ze)return null;const it=Ze.children.filter(dt=>![Ce.x.WSticky,Ce.x.WTear,Ce.x.Canvas].includes(dt.type)),st=sdkStore.getHotKeyListAABB(it.map(dt=>dt.key));return(0,h.jsx)(te,{className:"pnoncanvas",top:st[1],left:st[0],ref:this.setElementRef,children:(0,h.jsx)("div",{className:"screen-content",children:(0,h.jsx)("div",{className:"widgets",children:(0,h.jsx)("div",{className:"scontainer",children:(0,h.jsx)("div",{className:"non-canvas-wrapper",children:it.map(dt=>dt.render())})})})})})}}const be=(0,o.Ng)(kt=>{const{activePageKey:Ze,transition:it}=(0,g.mf)(kt),st=(0,g.hM)(kt);return{activePageKey:Ze,transition:it,isPreviewCombo:st}})(re);var Le=e(59742);const Ve=(kt,Ze)=>({...kt,getHotItem:dt=>{const Ot=kt.getHotItem(dt);return dt===Ze?{...Ot,hotAttr:{...Ot.hotAttr,x:Ot.hotAttr.w/2,y:Ot.hotAttr.h/2,r:0,fixPosTo:"none"}}:Ot},getCCSBound2308:dt=>{const Ot=kt.getCCSBound2308(dt);if(dt===Ze){const{hotAttr:{w:Ct,h:wo}}=kt.getHotItem(dt);return{x:Ct/2,y:wo/2,w:Ct,h:wo,r:0}}return Ot}}),Ne=kt=>{if(!kt)return null;const Ze=(0,O.v)(O.K.preview),it=Ve(sdkStore,kt),st=new V.c(Ze,it);return st.buildWidgetTree({folderKey:kt,isEditingCombo:!0}),st.getNode(kt)};class We extends C.PureComponent{constructor(){super(...arguments),(0,l.A)(this,"state",{node:null}),(0,l.A)(this,"subscribe",Ze=>{let{type:it,payload:st}=Ze;it===ae.a&&this.repaint(st.changedKeyList)}),(0,l.A)(this,"repaint",Ze=>{if(!(Ze!=null&&Ze.length))return;const{activeWidgetKey:it,dispatch:st}=this.props;if(!it)return;let dt=Ze[0]===it;(0,Le.OO)(it)&&(0,Le.QL)(it).includes(Ze[0])&&(dt=!0),dt&&(this.setState({node:Ne(it)}),st({type:"entry:preview:zoom-quick-preview"}))})}componentDidMount(){this.setState({node:Ne(this.props.activeWidgetKey)}),sdkStore.subscribe(this.subscribe)}static getDerivedStateFromProps(Ze,it){const{node:st}=it;return Ze.activeWidgetKey!==(st==null?void 0:st.key)?{node:Ne(Ze.activeWidgetKey)}:null}componentWillUnmount(){sdkStore.unsubscribe(this.subscribe)}render(){const{node:Ze}=this.state;return Ze?(0,h.jsx)(te,{className:"pnoncanvas",top:0,left:0,children:(0,h.jsx)("div",{className:"screen-content",children:(0,h.jsx)("div",{className:"widgets",children:(0,h.jsx)("div",{className:"scontainer",children:(0,h.jsx)("div",{className:"non-canvas-wrapper",children:Ze.render()})})})})}):null}}const ze=(0,o.Ng)(kt=>{const{activeWidgetKey:Ze}=(0,g.mf)(kt);return{activeWidgetKey:Ze}})(We);var ft=e(82081);class mt extends C.PureComponent{componentDidMount(){MB.webpackInterface.store.dispatch({type:"reducer:preview-toolbar:update",payload:{isShowSplash:!0}})}render(){const{runnerMode:Ze,runnerCacheTag:it}=this.props;switch(Ze){case ft.L.canvas:return(0,h.jsx)(R,{},it);case ft.L.nonCanvas:return(0,h.jsx)(be,{},it);case ft.L.code:return(0,h.jsx)(ze,{},it);default:return null}}}const i=(0,o.Ng)(kt=>{const{runnerCacheTag:Ze}=(0,g.mf)(kt),it=(0,g.wS)(kt);return{runnerCacheTag:Ze,runnerMode:it}})(mt);var gt=e(46479);const Je=k.Ay.div.withConfig({displayName:"style__StyledAppSplash",componentId:"sc-5h7nzf-0"})(["position:absolute;width:100%;height:100%;background:#f5f5f5;overflow:hidden;margin-bottom:500px;top:0;z-index:2;img{position:absolute;width:100%;height:100%;}.loading{display:flex;align-items:center;justify-content:center;position:absolute;top:calc(50% - 15px);width:100%;height:30px;.splash-loading{width:30px;height:30px;}&.common-loading{top:calc(50% - 25px);height:50px;.splash-loading{width:50px;height:50px;}}}&.landscape{img{transform:rotate(90deg);transform-origin:bottom left;}}"]);class Pt extends C.PureComponent{render(){const{homeScreen:Ze,url:it,isPanelPreviewMode:st,isQuickPreview:dt,isPreviewCombo:Ot}=this.props,Ct=st||dt||Ot,wo=0,ln=0;let Io;return Ze.width!==wo?Io={top:0-wo,width:ln,height:wo}:Io={top:0,width:wo,height:"101%"},(0,h.jsxs)(Je,{className:A()("splash",Ze.orientation),style:{backgroundColor:Ze.bgcolor},children:[it&&!Ct&&(0,h.jsx)("img",{src:it,style:Io}),(0,h.jsx)("div",{className:A()("loading",{"common-loading":Ct}),children:Ct?(0,h.jsx)(gt.ft,{className:"splash-loading"}):(0,h.jsx)(gt.Tw,{className:"splash-loading"})})]})}}var bt=e(27683),qt=e(63231),pt=e(44727),$t=e(58912);const go=(kt,Ze,it)=>{var st,dt;const Ot=(st=sdkStore.getHotItem(kt))==null?void 0:st.hotAttr,Ct=(dt=sdkStore.getHotItem(Ze))==null?void 0:dt.hotAttr;if(!Ot||!Ct)return{};const{isMobile:wo}=it,ln=wo;let Io;if(ln){const Lo={width:window.innerWidth,height:window.innerHeight},Ao=Lo.width,xt=Lo.height,Ut=Ao/Ct.w,Wo=Ct.w;let qo=xt,sn=0;Ct.h*Ut<xt&&(qo=Ct.h*Ut,sn=Math.floor(Math.max((xt-qo)/2,0))),Ct.w===Ot.w&&Lo.width<Lo.height&&(qo=Math.min(Ot.h*Ut,xt),sn=Math.floor(Math.max((xt-qo)/2,0))),Io={width:Wo,height:qo/Ut,transform:"scale("+Ut+")",marginTop:sn}}return Io};var Co=e(33520),Tt=e(62048),mo=e(39719),jo=e(74964),Kt=e(73734),Ft=e(62064);const nt=(0,k.AH)([".iScrollVerticalScrollbar{width:6px !important;}.iScrollHorizontalScrollbar{height:6px !important;}.iScrollIndicator{background-color:#d2d2d8 !important;border-radius:4px !important;border:none !important;&:hover{background-color:"," !important;}}"],kt=>kt.theme.color_background_split_hover),Rt=k.Ay.div.withConfig({displayName:"style__StyledSimulator",componentId:"sc-239cgm-0"})(["transform-origin:top left;background-size:100% 100%;position:relative;z-index:4;width:100%;height:100%;overflow:hidden;"," &.is-modal-preview{overflow:unset;}&.ios,&.android{cursor:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAABblBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBQX////////////////////////////////////////////////////////////////////////////+/v7///8CAgL///////////8AAAAAAAD///////////////////////////8AAAADAwP///////////8AAAD///////////8BAQH///8AAAD////t7e3///8DAwNDQ0MkJCQXFxcgICDl5eX8/Pz8/Pz19fW4uLj///+0tLSurq7////AwMChoaFZWVlAQECqqqqfn591dXVqampOTk4vLy/q6urx8fHr6+vg4ODa2trz8/POzs7CwsLKysr19fXg4OC7u7v////k5OT09PT///////+ysrL////39/fn5+eWlpbT09PLy8u5ubmamprS0tKzs7Obm5stLS1WVlbJycnX19dISEiZmZnPz8/R0dGZmZlISEjBwcG/v7/YpJ28AAAAenRSTlMAAwYLEg4XCS8tNzJEST81KiglIyBCR049OhgbTB0WVBMUGhBYVg4eC1EmIwlcBykcY14sOyBSBVovNzEtNZ6MhXx4dHRualxMPz0SYkdGMjCqo6Ccl5KMiYaFhXx7eXhvbWdgX19eU0pGOjIvLBwaFxMTBXBvZDwdHMsX0GIAAAKhSURBVEjHpZYHk5pAFICTCHheNP1OjSEGYnIRgmjQE3vv9XrvvbfUf59d6nkI7sx9w4yF/ea9XZb39skwnuoY7pkMf6aBYEnj7TYbLmGz2eySZimA8TiGUYQERWFAkyQrAcMImmQZXhB4hiVJGlgg1HBHFiia5LvlpYXszEx2Yanc5WM0ASTZMRogJTr2Z31+NpffKG1vlzbyudn59SZLEpgcyGhgBJkqzuVK1YhGtZSbK2ZiNIZLjtFg29l8NfJjgEg1n/3N0BR0jAZTXNzZ4zhR5EROQ+T2dhaLAvnQkYz+8mpEDAxBjKyupKADUtMNO04wKwXuiwlcYVkgMbhuelo4xZa3RL8p4laZp6FzLy3ysBCYhgSngyrgq/Y7UDhkCZiaEgSklVoLuC0JrGWk1LQgscq++4Ml7v0Ko4WBQZKbQdcI3JtNKYw6k4rfNTkCl78CZqMqFPPT5RyJ65dAYyAzqOBE48A5MRLnQUPKDE4Fo9uTLxCYbMdgZvJ67To9UU8UXB4z4P2JXUZVKLbm8UKi3ii4vGZ4ajyN22WFqUXHEYjWwPwVhT8af4nA+FFCV46fI3GsK8zJGBInemJsfcyBwFhdmz4WqzteIeCog0VWH2XH8RoBRwc+SmXDJM/eIHCmbGV5/qdvETjVtiXc/J13CHTh5tdesdR5eCoMrikD4E8I+DjX3mR5zRo+C8K+cNjna9x7kWGY9MX7EVzoQZTZJP9+tORfUy1KeulLXn+y4Dqplz69wPZuPpty01MK7GAZ53utrya0koJcxg3Not/6NpRW39AsVIdNXYW+GwhdZbSWZHRIIX0bDw0Qv00l1MZn0l4T6Uv7XVzhzn6ZTmjt1aKJJ9JgFI5TJJtOGJs4+lHhsQcS9GPP4w9X6Ee4/9WZxSosYtQDAAAAAElFTkSuQmCC') 25 25,default;&:active{cursor:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAA51BMVEUAAADu7u7t7e3s7Ozl5eXr6+vq6uro6OgAAAAAAADt7e3s7Ozq6uro6Ojs7Ozp6enm5ubk5OTv7+/n5+fv7+/v7+/q6uri4uLh4eHs7Ozp6enw8PDf39/v7+/h4eHx8fHw8PDi4uLd3d3v7+/o6Ojw8PDm5ubr6+soKCi/v7/l5eXx8fHw8PDa2trx8fHAwMCZmZlmZmbHx8e5ubnh4eHOzs66urro6Ojc3NzAwMDc3NzZ2dnm5ubk5OTW1tbS0tLLy8vQ0NC0tLSvr6+MjIyCgoLf39/i4uLs7Ozh4eHW1tbPz8/q6uojhl1DAAAATXRSTlMAgHlyVG1qWwcCfHRoYG9hV1GGXYOMZktJd2STRIhGlpBNQY5YmVJ/DGJNmoiGjmYoFHBbjHNgk4J4m5GMf316eXhKSB8cdp6Xko6GhVNXB78AAAI1SURBVEjH3ZZrd6IwEIa3oJKoKHZbVIpaVmRBF1FAvF/qrdf//3t2kGVDBJXPfTKZzHvkPTkcJMOP7w7GCOk6QhinvB4NnNHKfH83VyNngPBtw8EwF6zEaYqicRK7MI0Dvm4YGi6r1mT51wlZrqmsawyvmNDWZbUmXE+Qm1rJ3aKLDmOpVuUYNXVpXPDo04LWTKJWKWz0xD022UotgSrMSnaKEhxWtlINUKoxKkcr5sHbpaB0u0pXAbpBRLWw3OIzy3DCaRUaWnPm8GwTS8qEaBBhpWmQAiSL3mY/4TJCBiJEEE7an/80N9nTm4iqKqgCAAsARaiDCUmktkFrnrsJv0YRy+DI/6TgSfZToI4D4sBGkefLfEBYxLVoYGKxi+WyVP6PBCMIyS9DRJtY0KgoiREkUZIgwxLUgP97cYSI5SVXjCDCSCL3Qiz6KpeKlU4s62wq1sSCRmypBHEiVhEdvRebTYVNLNiuF1JQtzGxOHWmDsEw/upXydrBkT/MhGGYPHOd/GRAHPBg8imAx0LA3t3d7zAgwfDTmfYw9YqZdzcx9/SL7Hw9+Nw/EM70F9w8xdC8j9MIkw8cFzR45zYaf4LwEyy0dnc4dvR5i8crLJyk43L62O63n2Ge6Pfb4QDGNko+xsfPNE/+9PN4ql9qFuOnRMbe5Qazm7+1YrzNd+hq45u1er1Op9fqQG71Oq3ODBrfjfZqfbyCpQcWiNcP64DTNHFv8zmfzeafG4808fSfCt+cvwzTdVIzvwMmAAAAAElFTkSuQmCC') 25 25,default;}}.panel .tree-node{pointer-events:auto;}.invisible{*{visibility:hidden !important;animation-play-state:paused !important;}}.wBasket.tree-node{transform:translateX(0);}.panel{.panel-scroll-box{position:relative;width:100%;height:100%;overflow:hidden;}&.panelShow{overflow:visible;.panel-scroll-box{overflow:visible !important;.pstate{overflow:visible !important;}}}&.panelHidden{overflow:hidden;.panel-scroll-box{overflow:hidden;width:100% !important;height:100% !important;.pstate{overflow:hidden;}}}&.panelScrollX{overflow:hidden;.panel-scroll-box{overflow:hidden;height:100% !important;.pstate{overflow:hidden;}}}&.panelScrollY{overflow:hidden;.panel-scroll-box{overflow:hidden;width:100% !important;.pstate{overflow:hidden;}}}}.lr{background:transparent;opacity:1;border:none;}.clickable > .region{position:absolute;top:0;left:0;width:100%;height:100%;background-color:",";z-index:",";display:none;background-repeat:no-repeat;background-position:50%;border:1px solid ","}.pg{display:none;left:50%;margin-left:-20px;z-index:110;justify-content:center;align-items:center;&.stap{top:10px;}&.sleft{top:60px;}&.sright{top:120px;}&.sup{top:180px;}&.sdown{top:240px;}&.sshake{top:300px;}&.sdtap{top:300px;}}#app{width:100%;height:100%;position:absolute;background-size:100% auto;z-index:1;transform:translate(0,0);overflow:hidden;.pstate{position:absolute;overflow:hidden;width:100%;height:100%;z-index:1;}.pcanvas{display:flex;flex-direction:column;.screen-header,.screen-footer{position:relative;overflow:hidden;}.screen-footer{.footer-widgets{position:absolute;top:0;left:0;width:100%;height:100%;}}.screen-content{position:relative;flex:1;overflow:hidden;.iScrollVerticalScrollbar,.iScrollHorizontalScrollbar{z-index:2147483647 !important;}}}.pnoncanvas,.pcanvas,.pstate{z-index:1;width:100%;height:100%;position:absolute;left:0;top:0;background-color:transparent;background-repeat:repeat;background-position:top left;background-size:100% auto;overflow:hidden;&.as-overlay{overflow:visible;.screen-content{overflow:visible;.widgets{overflow:visible;.scontainer{overflow:visible;}}}}.widgets{width:100%;height:100%;position:relative;overflow:hidden;.scontainer{position:absolute;overflow:hidden;width:100%;height:100%;}}&.mouseIn,&.mouseOut{pointer-events:auto;}}.panel-preview-mode-scroll-container{width:100%;height:100%;.panel-preview-mode-scroll-box{position:relative;}}}&.is-outside-visible{#app{overflow:visible;.pcanvas{overflow:visible;.screen-header,.screen-footer{overflow:visible;}.screen-content{overflow:visible;.widgets{overflow:visible;.scontainer{overflow:visible;}}}}}}&.is-mobile{#app{overflow:visible;.pcanvas{overflow:visible;}}.panel{overflow:auto;&.panelShow{overflow:visible;}}.wMapView{.image{overflow:auto;}}}&.simulator-hide-shell{border-radius:0px;}&.is-panel-preview{#app{.pcanvas{.screen-content{","}}.panel-preview-mode-scroll-container{","}}&.overFlowX{#app{.pcanvas{.screen-content{.iScrollVerticalScrollbar{opacity:0;}}}.panel-preview-mode-scroll-container{.iScrollVerticalScrollbar{opacity:0;}}}}&.overFlowY{#app{.pcanvas{.screen-content{.iScrollHorizontalScrollbar{opacity:0;}}}.panel-preview-mode-scroll-container{.iScrollHorizontalScrollbar{opacity:0;}}}}}"],Ft.Jj,kt=>kt.theme.color_hotspot,Kt.Mh,kt=>kt.theme.color_comments,nt,nt);var yt=e(96834);class Jt extends C.PureComponent{constructor(Ze){super(Ze),(0,l.A)(this,"setRef",it=>this.ref=it),this.state={homeScreen:Ze.screen}}componentDidMount(){const{previewOptions:Ze,isImmersive:it}=this.props,{isMobile:st}=Ze;if(st){const dt=()=>{setTimeout(()=>{this.forceUpdate()},100)},Ot="onorientationchange"in window?"orientationchange":"resize";window.addEventListener(Ot,dt,!1)}MB.runnerController.initEventHandler(this.ref,{isImmersive:it,isMobile:st})}render(){const{project:Ze,screen:it,isShowSplash:st,isPanelPreviewMode:dt,previewOptions:Ot,activePageKey:Ct,activeCanvasKey:wo,isShellShow:ln,isPreviewCombo:Io,panelPreviewBasketKey:Lo,isQuickPreview:Ao}=this.props,{homeScreen:xt}=this.state,{isMobile:Ut}=Ot,{splash:Wo=""}=Ze,{deviceOrientation:qo,device:sn}=it,Kn=(0,pt.gE)({orientation:qo},sn),ds=Ct&&wo?go(Ct,wo,Ot):{},_s=ln?(0,$t.uQ)(sn):{};let Ls="",gs={};if(dt&&Lo){var ns;const Wn=(ns=sdkStore.getHotItem(Lo))==null?void 0:ns.hotAttr;if(Wn&&(Ls=Wn.scroll?jo.M[Wn.scroll]:"overflowHide",wo)){const Do=sdkStore.getSourceHotItem(wo);if(Do){const{w:Go,h:an}=Wn,{hotAttr:{x:Mo,y:Cn,w:Tn,h:cn}}=Do,bs=Mo-Tn/2>=0?Math.max(Mo+Tn/2,Go):Math.max(Tn,Go-Mo+Tn/2),Vn=Cn-cn/2>=0?Math.max(Cn+cn/2,an):Math.max(cn,an-Cn+cn/2);gs={width:bs+"px",height:Vn+"px"}}}}return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(Rt,{id:"simulator",className:A()({"is-mobile":Ut,"simulator-hide-shell":Ut||!ln,"is-modal-preview":Io||dt,"is-panel-preview":dt},Kn,Ls),style:ds,children:[(0,h.jsx)("div",{id:"app",style:_s,ref:this.setRef,children:dt?(0,h.jsx)("div",{className:"panel-preview-mode-scroll-container",children:(0,h.jsx)("div",{className:"panel-preview-mode-scroll-box",style:gs,children:(0,h.jsx)(i,{})})}):(0,h.jsx)(i,{})}),st&&(0,h.jsx)(Pt,{homeScreen:xt,url:Wo,isPanelPreviewMode:dt,isQuickPreview:Ao,isPreviewCombo:Io}),(0,h.jsx)(Tt.l,{}),(0,h.jsx)(yt.Sn,{}),Ut&&(0,h.jsx)(Co.l,{})]}),Ut&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(qt.A,{}),(0,h.jsx)(bt.A,{}),(0,h.jsx)(mo.Ay,{})]})]})}}const vo=kt=>kt.container.previewSetting.isShowSplash,Yo=(0,m.Mz)([g.Ur,g.PL,g.Kv,vo,g.bF,g.KR,g.mf,g.hM,g.Mo,g.k6],(kt,Ze,it,st,dt,Ot,Ct,wo,ln,Io)=>{let{activePageKey:Lo,activeCanvasKey:Ao}=Ct;return{screen:kt,project:Ze,isImmersive:it,isShowSplash:st,previewOptions:dt,isPanelPreviewMode:Ot,activePageKey:Lo,activeCanvasKey:Ao,isPreviewCombo:wo,panelPreviewBasketKey:ln,isQuickPreview:Io}}),Ho=(0,o.Ng)(kt=>Yo(kt))(Jt)},24858:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>z,r:()=>N});var o=e(74059),m=e(51044),g=e(19418),l=e(87387),C=e(51794),T=e(63555),A=e(7595),k=e(51343),p=e(57464);class r extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleClick",y=>{y.stopPropagation(),y.preventDefault();const{dispatch:a,tearHi:$}=this.props;a({type:"ST:update",payload:{activeTearPreview:$}})})}render(){const{scale:y,tearHi:a,pageKey:$,activeKey:ce,scrollTop:de,scrollLeft:fe,STBasketMap:se,basketScrollTopMap:J,basketScrollLeftMap:ve}=this.props,{key:D,hotAttr:R}=a,V=100/y;let O,Ce="visible";R.isInBasket?((0,C.xC)(R,$,de,fe,ce,se,J,ve)||(Ce="hidden"),O=(0,C.HN)(R,se,J,ve)):N(R.refWCKey)?((0,C.D)(R,$,ce)||(Ce="hidden"),O=(0,C.$S)(R,$,ce)):((0,C.Zb)(R,$,de,fe,ce)||(Ce="hidden"),O=(0,C.n2)(R,$));const ae="scale("+V+")";let q=R.isVisible?R.opacity:0;R.refWCKey&&(q=Number((0,k.R)(R.refWCKey,R.basketKey)));const K={left:O.left,top:O.top,transform:ae,opacity:q,position:O.position,visibility:Ce};return(0,p.jsx)("div",{"data-cid":D,"data-basket-key":R.basketKey,"data-basketcanvas-key":R.basketCanvasKey,id:"widget"+D+"p",style:K,onClick:this.handleClick,children:(0,p.jsx)(A._,{widget:{...R,cid:D},canHover:!0,newSelection:[],hoverKey:""})},D)}}var x=e(66131),f=e(98236),u=e.n(f),b=e(9199),h=e(21676);const E=h.Ay.div.withConfig({displayName:"styled__StyledStickyContainer",componentId:"sc-14e01np-0"})(["{overflow:visible;position:absolute;top:0;left:0;height:0;z-index:200;& > div{overflow:visible;position:relative;top:0;left:0;height:0;}.sticky{user-select:text;.arrow{pointer-events:none;}&:hover{.sideline,.arrow{opacity:0.7;}}}}"]);function N(_){const{fixedOnTop:y,fixedOnBottom:a}=(0,x.dI)(_);return y||a}class z extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"state",{stickyList:[],fixedStickyList:[],tearList:[],fixedTearList:[],animatingPageOffset:null}),(0,o.A)(this,"removeRanges",()=>{window.getSelection().removeAllRanges()}),(0,o.A)(this,"handleClickOutside",y=>{if(typeof y.clientX!="number"||typeof y.clientY!="number")return;const a=document.elementFromPoint(y.clientX,y.clientY);if((a&&a.closest(".STSticky"))!==null)return;const{dispatch:ce}=this.props;ce({type:"ST:update",payload:{activeTearPreview:null}})}),(0,o.A)(this,"getSTList",()=>{const{stList:y,basketSTList:a,STBasketMap:$,offset:ce,scale:de,dispatch:fe}=this.props,se=[],J=[],ve=[],D=[];y.forEach(O=>{O.hotAttr={...O.hotAttr,cid:O.key},O.hotAttr.type===T.x.WSticky?N(O.hotAttr.refWCKey)?J.push(O.hotAttr):se.push(O.hotAttr):O.hotAttr.type===T.x.WTear&&(N(O.hotAttr.refWCKey)?D.push(O):ve.push(O))}),a.forEach(O=>{O.hotAttr={...O.hotAttr,cid:O.key,isInBasket:!0,basketKey:O.basketKey,basketCanvasKey:O.basketCanvasKey},O.hotAttr.type===T.x.WSticky?se.push(O.hotAttr):O.hotAttr.type===T.x.WTear&&ve.push(O)}),this.setState({stickyList:se,fixedStickyList:J,tearList:ve,fixedTearList:D});const R=(0,C.vb)(y.concat(a),$),V=[R[0]+Math.abs(ce.x*100/de),R[1]+Math.abs(ce.y*100/de)];fe({type:"preview:set:STRenderArea",payload:{STRenderArea:V}})}),(0,o.A)(this,"componentDidMount",()=>{this.getSTList(),this.observeAppPageAnimating()}),(0,o.A)(this,"observeAppPageAnimating",()=>{const y=document.getElementById("app");if(y){const a=ce=>{for(const de of ce){const{attributeName:fe,target:se}=de;if(fe==="style"&&(se==null?void 0:se.id)==="pscreen"+this.props.pageKey){const J=(0,b.qg)(se);this.setState({animatingPageOffset:J})}}},$=new MutationObserver(a);$.observe(y,{subtree:!0,attributes:!0,attributeFilter:["style"]}),this._observer=$}}),(0,o.A)(this,"clearObserver",()=>{this._observer&&this._observer.disconnect(),this._observer=null}),(0,o.A)(this,"componentDidUpdate",y=>{(y.tearStickyCacheTag!==this.props.tearStickyCacheTag||y.pageKey!==this.props.pageKey||!u()(y.basketSTList,this.props.basketSTList)||!u()(y.stList,this.props.stList))&&this.getSTList()})}componentWillUnmount(){this.clearObserver()}render(){let{scrollTop:y,scale:a,dispatch:$,pageKey:ce,activeKey:de,scrollLeft:fe,STBasketMap:se,basketScrollTopMap:J,basketScrollLeftMap:ve}=this.props;const{stickyList:D,tearList:R,fixedStickyList:V,fixedTearList:O,animatingPageOffset:Ce}=this.state;return Ce&&(y+=Ce.translateY,fe+=Ce.translateX),(0,p.jsxs)(E,{id:"sticky-container",children:[(0,p.jsxs)("div",{style:{marginTop:y||0,marginLeft:fe},children:[D.map((ae,q)=>(0,p.jsx)(S,{sticky:ae,scrollTop:y,scrollLeft:fe,pageKey:ce,activeKey:de,STBasketMap:se,basketScrollTopMap:J,basketScrollLeftMap:ve},q)),R.map((ae,q)=>(0,p.jsx)(r,{tearHi:ae,scale:a,dispatch:$,pageKey:ce,activeKey:de,scrollTop:y,scrollLeft:fe,STBasketMap:se,basketScrollTopMap:J,basketScrollLeftMap:ve},q))]}),(0,p.jsxs)("div",{children:[V.map(ae=>(0,p.jsx)(S,{sticky:ae,scrollTop:0,scrollLeft:0,pageKey:ce,activeKey:de},ae.cid)),O.map((ae,q)=>(0,p.jsx)(r,{tearHi:ae,scale:a,dispatch:$,pageKey:ce,activeKey:de,scrollTop:0,scrollLeft:0},q))]}),(0,p.jsx)(g.A,{target:document,onClick:(0,g.t)(this.handleClickOutside,{capture:!0})}),(0,p.jsx)(g.A,{target:document,onMouseDown:(0,g.t)(this.removeRanges,{capture:!0})})]})}}class S extends m.PureComponent{render(){const{sticky:y,pageKey:a,scrollTop:$,activeKey:ce,scrollLeft:de,STBasketMap:fe,basketScrollTopMap:se,basketScrollLeftMap:J}=this.props,ve="widget "+y.type;let D,R="visible",V=[...sdkStore.getHotAABB(y.cid)];y.isInBasket?((0,C.xC)(y,a,$,de,ce,fe,se,J)||(R="hidden"),V=[...(0,C.ec)(y,fe)],D=(0,C.HN)(y,fe,se,J)):N(y.refWCKey)?((0,C.tv)(y,a,ce)||(R="hidden"),D=(0,C.$S)(y,a,ce)):((0,C.J3)(y,a,$,de,ce)||(R="hidden"),D=(0,C.n2)(y,a));let O=Number(y.isVisible);y.refWCKey&&(O=Number((0,k.R)(y.refWCKey,y.basketKey)));const Ce=O?"auto":"none",ae={...D,zIndex:y.zIndex,opacity:O,visibility:R,pointerEvents:Ce};return(0,p.jsx)("div",{"data-cid":y.cid,"data-basket-key":y.basketKey,"data-basketcanvas-key":y.basketCanvasKey,id:"widget"+y.cid+"p",className:ve,style:ae,children:(0,p.jsx)(l.l,{widget:y,aabb:V,isPreview:!0,sdk:sdkStore})},y.cid)}}},85880:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>Co});var o=e(72605),m=e(63686),g=e(91560),l=e(35592),C=e(76347),T=e(62643),A=e(74059),k=e(51044),p=e(86634),r=e.n(p),x=e(19418),f=e(94947),u=e(58912),b=e(21676);const h=b.Ay.div.withConfig({displayName:"styles__StyledShell",componentId:"sc-1kdv61o-0"})(["position:absolute;pointer-events:none;background-size:cover;z-index:4;"]);var E=e(57464);class N extends k.PureComponent{render(){const{page:mo}=this.props,jo=(0,u.MR)(mo.device);if(!jo)return null;const{shellStyle:Kt,topOffset:Ft,leftOffset:nt,imageUrl:Rt}=(0,u.eC)(jo,(mo==null?void 0:mo.orientation)==="landscape"),yt="url("+((0,f.FM)()?".":"")+Rt;return(0,E.jsx)(h,{className:"shell",id:"simulator-shell",style:{...Kt,top:-Ft,left:-nt,backgroundImage:yt}})}}var z=e(60310),S=e(39943);const _=(0,k.memo)(Tt=>{let{previewCommentCacheTag:mo,...jo}=Tt;return(0,E.jsx)(S.A,{mode:"preview",...jo},mo)}),y=(0,m.Mz)([g.X_,g.ER,l.Cb,l.YW,l.uX,l.QV,l.Ou,l.fd,l.RF,l.Li,l.V8,l.VT,g.mf,g.wA,g.O4,l.sT],(Tt,mo,jo,Kt,Ft,nt,Rt,yt,Jt,vo,Yo,Ho,kt,Ze,it,st)=>{let{runnerCacheTag:dt}=kt;return{viewport:{offset:mo,scale:Tt},activeCommentCid:jo,wigglingCommentCid:Kt,editorRawContentObject:Ft,commentIsEditing:nt,editingRecordCid:Rt,isCommentDragging:yt,emojiToastStyle:Jt,atStyle:vo,creatingComment:Yo,commentList:Ho,viewType:new URLSearchParams(location.search).get("view_mode"),runnerCacheTag:dt,currentOrg:Ze,theme:it,previewCommentCacheTag:st}}),a=(0,o.Ng)(Tt=>y(Tt))(_);var $=e(36892),ce=e(24858);const de=Tt=>{const{tearStickyCacheTag:mo,basketCanvasMap:jo,basketScrollTopMap:Kt,basketScrollLeftMap:Ft,overlayStack:nt}=(0,g.mf)(Tt),Rt=(0,g.X_)(Tt),yt=(0,T.Lc)(Tt),Jt=(0,g.A3)(Tt),vo=nt[nt.length-1];return{scrollTop:vo==null?void 0:vo.overlayRelativePosY,scrollLeft:vo==null?void 0:vo.overlayRelativePosX,scale:Rt,activePageKey:vo==null?void 0:vo.targetRBPageKey,activeCanvasKey:vo==null?void 0:vo.targetOverlayKey,overlayOnTop:vo,STMode:yt,tearStickyCacheTag:mo,basketCanvasMap:jo,basketScrollTopMap:Kt,basketScrollLeftMap:Ft,offset:Jt}},fe=Tt=>{let{scrollTop:mo,scale:jo,activePageKey:Kt,activeCanvasKey:Ft,dispatch:nt,STMode:Rt,scrollLeft:yt,tearStickyCacheTag:Jt,basketCanvasMap:vo,basketScrollTopMap:Yo,basketScrollLeftMap:Ho,offset:kt}=Tt;const[Ze,it]=(0,k.useState)([]),[st,dt]=(0,k.useState)([]),[Ot,Ct]=(0,k.useState)(new Map);return(0,k.useEffect)(()=>{if(!Rt||!Kt||!Ft)return;const wo=(0,$.GG)(Kt,Ft);it(wo)},[Rt,Kt,Ft,Jt]),(0,k.useEffect)(()=>{if(!Rt||!Kt||!Ft||!vo)return;const{basketSTList:wo,STBasketMap:ln}=(0,$.ej)(Ft,vo);dt(wo),Ct(ln)},[Rt,Ft,Kt,vo,Jt]),!Rt||!Kt||!Ft?null:(0,E.jsx)(ce.A,{activeKey:Kt,pageKey:Ft,stList:Ze,basketSTList:st,STBasketMap:Ot,scrollTop:mo,scrollLeft:yt,scale:jo,dispatch:nt,tearStickyCacheTag:Jt,basketScrollTopMap:Yo,basketScrollLeftMap:Ho,offset:kt},Kt)},se=(0,o.Ng)(de)(fe),J=Tt=>{const mo=(0,g.Ur)(Tt),{activePageKey:jo,activeCanvasKey:Kt,screenInfoMap:Ft,screenScrollTopMap:nt,screenScrollLeftMap:Rt,tearStickyCacheTag:yt,basketCanvasMap:Jt,basketScrollTopMap:vo,basketScrollLeftMap:Yo}=(0,g.mf)(Tt),Ho=(0,g.He)(Tt),kt=(0,g.X_)(Tt),Ze=(0,T.Lc)(Tt),it=(0,g.A3)(Tt);return{screenMeta:Ho[mo.cid],screenInfo:Ft[mo.cid],scrollTop:nt[Kt],scrollLeft:Rt[Kt],scale:kt,activePageKey:jo,activeCanvasKey:Kt,STMode:Ze,tearStickyCacheTag:yt,basketCanvasMap:Jt,basketScrollTopMap:vo,basketScrollLeftMap:Yo,offset:it}},ve=Tt=>{let{scrollTop:mo,scale:jo,activePageKey:Kt,activeCanvasKey:Ft,dispatch:nt,STMode:Rt,scrollLeft:yt,tearStickyCacheTag:Jt,basketCanvasMap:vo,basketScrollTopMap:Yo,basketScrollLeftMap:Ho,offset:kt}=Tt;const[Ze,it]=(0,k.useState)([]),[st,dt]=(0,k.useState)([]),[Ot,Ct]=(0,k.useState)(new Map);return(0,k.useEffect)(()=>{if(!Rt||!Kt||!Ft)return;const wo=(0,$.GG)(Kt,Ft);it(wo)},[Rt,Kt,Ft,Jt]),(0,k.useEffect)(()=>{if(!Rt||!Kt||!Ft||!vo)return;const{basketSTList:wo,STBasketMap:ln}=(0,$.ej)(Ft,vo);dt(wo),Ct(ln)},[Rt,Ft,Kt,vo,Jt]),!Rt||!Kt||!Ft?null:(0,E.jsx)(ce.A,{activeKey:Kt,pageKey:Ft,stList:Ze,basketSTList:st,STBasketMap:Ot,scrollTop:mo,scrollLeft:yt,scale:jo,dispatch:nt,tearStickyCacheTag:Jt,basketScrollTopMap:Yo,basketScrollLeftMap:Ho,offset:kt},Kt)},D=(0,o.Ng)(J)(ve),V=()=>{const{overlayStack:Tt}=(0,o.d4)(g.mf);return Tt.length>0?(0,E.jsx)(se,{}):(0,E.jsx)(D,{})};var O=e(82149);const Ce=Tt=>{const{show:mo,activeTear:jo,STMode:Kt,activePageKey:Ft,activeCanvasKey:nt,basketCanvasMap:Rt,tearStickyCacheTag:yt,...Jt}=Tt,[vo,Yo]=(0,k.useState)(new Map);return(0,k.useEffect)(()=>{if(!Kt||!Ft||!nt||!Rt)return;const{STBasketMap:Ho}=(0,$.ej)(nt,Rt);Yo(Ho)},[Kt,nt,Ft,Rt,yt]),!mo||!jo?null:(0,E.jsx)(O.s,{mode:"preview",activeTear:jo,STBasketMap:vo,activePageKey:Ft,activeCanvasKey:nt,...Jt})},ae=(0,m.Mz)([g.X_,T.nC,T.yc,g.mf,T.Lc],(Tt,mo,jo,Kt,Ft)=>{let{activePageKey:nt,activeCanvasKey:Rt,screenScrollTopMap:yt,screenScrollLeftMap:Jt,basketCanvasMap:vo,basketScrollTopMap:Yo,basketScrollLeftMap:Ho,tearStickyCacheTag:kt,overlayStack:Ze}=Kt;if(!mo)return{show:!1};const it=Ze[Ze.length-1];return it?{show:!0,activeTear:mo,scale:Tt,isReadonly:!0,tearOffset:jo,activePageKey:it==null?void 0:it.targetRBPageKey,activeCanvasKey:it==null?void 0:it.targetOverlayKey,scrollTop:it==null?void 0:it.overlayRelativePosY,scrollLeft:it==null?void 0:it.overlayRelativePosX,basketCanvasMap:vo,basketScrollTopMap:Yo,basketScrollLeftMap:Ho,STMode:Ft,tearStickyCacheTag:kt}:{show:!0,activeTear:mo,scale:Tt,isReadonly:!0,tearOffset:jo,activePageKey:nt,activeCanvasKey:Rt,scrollTop:yt[Rt],scrollLeft:Jt[Rt],basketCanvasMap:vo,basketScrollTopMap:Yo,basketScrollLeftMap:Ho,STMode:Ft,tearStickyCacheTag:kt}}),q=(0,o.Ng)(Tt=>ae(Tt))(Ce);var K=e(73807),xe=e(62427),te=e(103),H=e(53955),re=e(98236),be=e.n(re),Le=e(63555),Ve=e(19371),Ne=e(59742);const We=Tt=>{var mo,jo,Kt,Ft,nt;const Rt=(0,H.ll)();if(!Rt)return;const yt=sdkStore.getHotItem(Tt[0]),Jt=(0,g.Ur)(Rt),{activePageKey:vo,activeCanvasKey:Yo}=(0,g.mf)(Rt),Ho=(0,g.KR)(Rt),kt=(0,g.Mo)(Rt),Ze=(0,g.hM)(Rt),it=(0,Ne.OO)(Yo)?(0,Ne.QL)(Yo).pop():Yo;if((yt==null?void 0:yt.hotAttr.type)==="rResBunch"&&(yt==null?void 0:yt.hotAttr.bunch)===Le.x.RbPage){const Dn=Rt.container.current.screenDataMap[Tt[0]];if(!Dn)MB.webpackInterface.store.dispatch({type:"entry:update:preview:screenTreeData"}),!vo&&Ze&&MB.webpackInterface.store.dispatch({type:"entry:preview:reload:screen"});else if(sdkStore.isTrashed(Tt[0]))MB.webpackInterface.store.dispatch({type:"entry:update:preview:screenTreeData"}),MB.webpackInterface.store.dispatch({type:"entry:preview:reload:screen"});else if(yt){if(!be()(yt==null?void 0:yt.hotAttr,Dn==null?void 0:Dn.hotAttr)){var st,dt,Ot,Ct;if(((Dn==null||(st=Dn.hotAttr)==null?void 0:st.name)!==(yt==null||(dt=yt.hotAttr)==null?void 0:dt.name)||(Dn==null||(Ot=Dn.hotAttr)==null?void 0:Ot.zIndex)!==(yt==null||(Ct=yt.hotAttr)==null?void 0:Ct.zIndex))&&MB.webpackInterface.store.dispatch({type:"entry:update:preview:screenTreeData"}),(Jt==null?void 0:Jt.cid)===Tt[0]){var wo,ln,Io,Lo,Ao,xt,Ut,Wo,qo,sn,Kn,ds,_s,Ls,gs,ns;if((Dn==null||(wo=Dn.hotAttr)==null?void 0:wo.deviceOrientation)!==(yt==null||(ln=yt.hotAttr)==null?void 0:ln.deviceOrientation)||(Dn==null||(Io=Dn.hotAttr)==null?void 0:Io.device)!==(yt==null||(Lo=yt.hotAttr)==null?void 0:Lo.device)||(Dn==null||(Ao=Dn.hotAttr)==null?void 0:Ao.deviceW)!==(yt==null||(xt=yt.hotAttr)==null?void 0:xt.deviceW)||(Dn==null||(Ut=Dn.hotAttr)==null?void 0:Ut.deviceH)!==(yt==null||(Wo=yt.hotAttr)==null?void 0:Wo.deviceH)||(Dn==null||(qo=Dn.hotAttr)==null?void 0:qo.deviceScroll)!==(yt==null||(sn=yt.hotAttr)==null?void 0:sn.deviceScroll)||Ho&&((Dn==null||(Kn=Dn.hotAttr)==null?void 0:Kn.scroll)!==(yt==null||(ds=yt.hotAttr)==null?void 0:ds.scroll)||(Dn==null||(_s=Dn.hotAttr)==null?void 0:_s.w)!==(yt==null||(Ls=yt.hotAttr)==null?void 0:Ls.w)||(Dn==null||(gs=Dn.hotAttr)==null?void 0:gs.h)!==(yt==null||(ns=yt.hotAttr)==null?void 0:ns.h))){var Wn,Do,Go,an,Mo,Cn,Tn,cn,bs,Vn,ti,oi;MB.webpackInterface.store.dispatch({type:"entry:preview:reload"}),((Dn==null||(Wn=Dn.hotAttr)==null?void 0:Wn.deviceOrientation)!==(yt==null||(Do=yt.hotAttr)==null?void 0:Do.deviceOrientation)||(Dn==null||(Go=Dn.hotAttr)==null?void 0:Go.device)!==(yt==null||(an=yt.hotAttr)==null?void 0:an.device)||(Dn==null||(Mo=Dn.hotAttr)==null?void 0:Mo.deviceW)!==(yt==null||(Cn=yt.hotAttr)==null?void 0:Cn.deviceW)||(Dn==null||(Tn=Dn.hotAttr)==null?void 0:Tn.deviceH)!==(yt==null||(cn=yt.hotAttr)==null?void 0:cn.deviceH)||(Dn==null||(bs=Dn.hotAttr)==null?void 0:bs.w)!==(yt==null||(Vn=yt.hotAttr)==null?void 0:Vn.w)||(Dn==null||(ti=Dn.hotAttr)==null?void 0:ti.h)!==(yt==null||(oi=yt.hotAttr)==null?void 0:oi.h))&&(MB.webpackInterface.store.dispatch({type:"entry:preview:zoom-quick-preview"}),MB.webpackInterface.store.dispatch({type:"entry:runner:re:pos:overlay"}))}}}(Jt==null?void 0:Jt.cid)===Tt[0]&&MB.webpackInterface.store.dispatch({type:"entry:update:preview:data"})}}else if((yt==null||(mo=yt.hotAttr)==null?void 0:mo.type)===Le.x.Canvas){const Dn=Rt.container.current.folderTreeData.widgetStore.getNode(Tt[0]);if(!Dn)yt.sup===Jt.cid&&(it?MB.webpackInterface.store.dispatch({type:"entry:update:preview:data"}):MB.webpackInterface.store.dispatch({type:"entry:preview:reload:screen"}));else if(Dn.sup===Jt.cid){if(sdkStore.isTrashed(Tt[0]))it===Tt[0]?MB.webpackInterface.store.dispatch({type:"entry:preview:reload:screen"}):(MB.webpackInterface.store.dispatch({type:"entry:update:preview:data"}),Dn.hotAttr.asOverlay&&MB.webpackInterface.store.dispatch({type:"entry:runner:reset:overlay:stack",payload:{targetOverlayKey:Tt[0]}}));else if(!be()(yt==null?void 0:yt.hotAttr,Dn==null?void 0:Dn.hotAttr)){var Gt,Rs,Xs,Ti,di;if(((Dn==null||(Gt=Dn.hotAttr)==null?void 0:Gt.name)!==(yt==null||(Rs=yt.hotAttr)==null?void 0:Rs.name)||(Dn==null||(Xs=Dn.hotAttr)==null?void 0:Xs.order)!==(yt==null||(Ti=yt.hotAttr)==null?void 0:Ti.order))&&MB.webpackInterface.store.dispatch({type:"entry:update:preview:data"}),Dn!=null&&(di=Dn.hotAttr)!=null&&di.asOverlay){var vs;if(!(yt!=null&&(vs=yt.hotAttr)!=null&&vs.isVisible))MB.webpackInterface.store.dispatch({type:"entry:runner:reset:overlay:stack",payload:{targetOverlayKey:Tt[0]}});else{var ei,Si,Gs,Vs;((Dn==null||(ei=Dn.hotAttr)==null?void 0:ei.w)!==(yt==null||(Si=yt.hotAttr)==null?void 0:Si.w)||(Dn==null||(Gs=Dn.hotAttr)==null?void 0:Gs.h)!==(yt==null||(Vs=yt.hotAttr)==null?void 0:Vs.h))&&MB.webpackInterface.store.dispatch({type:"entry:runner:re:pos:overlay",payload:{targetOverlayKey:Tt[0]}})}}if(it===Tt[0]){var ps,kn,zn,hs,Ss,fi,ri,Li,ji,_t,Aa,Ki,bi,sa,Zi,Fa;if(!be()(Dn==null||(ps=Dn.hotAttr)==null?void 0:ps.fill,yt==null||(kn=yt.hotAttr)==null?void 0:kn.fill)||(Dn==null||(zn=Dn.hotAttr)==null?void 0:zn.orientation)!==(yt==null||(hs=yt.hotAttr)==null?void 0:hs.orientation)||(Dn==null||(Ss=Dn.hotAttr)==null?void 0:Ss.w)!==(yt==null||(fi=yt.hotAttr)==null?void 0:fi.w)||(Dn==null||(ri=Dn.hotAttr)==null?void 0:ri.h)!==(yt==null||(Li=yt.hotAttr)==null?void 0:Li.h)||(Dn==null||(ji=Dn.hotAttr)==null?void 0:ji.stickyHeaderHeight)!==(yt==null||(_t=yt.hotAttr)==null?void 0:_t.stickyHeaderHeight)||(Dn==null||(Aa=Dn.hotAttr)==null?void 0:Aa.stickyFooterHeight)!==(yt==null||(Ki=yt.hotAttr)==null?void 0:Ki.stickyFooterHeight)||Ho&&((Dn==null||(bi=Dn.hotAttr)==null?void 0:bi.x)!==(yt==null||(sa=yt.hotAttr)==null?void 0:sa.x)||(Dn==null||(Zi=Dn.hotAttr)==null?void 0:Zi.y)!==(yt==null||(Fa=yt.hotAttr)==null?void 0:Fa.y))){var to,Qt,Sn,Vo,ho,Uo;MB.webpackInterface.store.dispatch({type:"entry:update:preview:data"}),MB.webpackInterface.store.dispatch({type:"runner:update:state",payload:{runnerCacheTag:Math.random()}}),Jt.device==="none"&&((Dn==null||(to=Dn.hotAttr)==null?void 0:to.orientation)!==(yt==null||(Qt=yt.hotAttr)==null?void 0:Qt.orientation)||(Dn==null||(Sn=Dn.hotAttr)==null?void 0:Sn.w)!==(yt==null||(Vo=yt.hotAttr)==null?void 0:Vo.w)||(Dn==null||(ho=Dn.hotAttr)==null?void 0:ho.h)!==(yt==null||(Uo=yt.hotAttr)==null?void 0:Uo.h))&&(MB.webpackInterface.store.dispatch({type:"entry:preview:zoom-quick-preview"}),MB.webpackInterface.store.dispatch({type:"entry:runner:re:pos:overlay"}))}}}}}else(0,$.yT)(yt==null||(jo=yt.hotAttr)==null?void 0:jo.type)?MB.webpackInterface.store.dispatch({type:"runner:update:state",payload:{tearStickyCacheTag:Math.random()}}):(yt==null||(Kt=yt.hotAttr)==null?void 0:Kt.type)===Le.x.WAudio?(MB.webpackInterface.store.dispatch({type:"entry:runner:cleanup:audio"}),MB.webpackInterface.store.dispatch({type:"runner:update:state",payload:{audioList:[]}}),MB.webpackInterface.store.dispatch({type:"runner:update:state",payload:{runnerCacheTag:Math.random()}})):(yt==null||(Ft=yt.hotAttr)==null?void 0:Ft.type)===Le.x.WVideo?(MB.webpackInterface.store.dispatch({type:"runner:update:state",payload:{videoList:[]}}),MB.webpackInterface.store.dispatch({type:"runner:update:state",payload:{runnerCacheTag:Math.random()}})):(yt==null||(nt=yt.hotAttr)==null?void 0:nt.type)===Le.x.WBasket&&Ho&&((0,Ne.OO)(kt)?(0,Ne.QL)(kt).pop():kt)===Tt[0]&&(MB.webpackInterface.store.dispatch({type:"entry:preview:zoom-quick-preview"}),MB.webpackInterface.store.dispatch({type:"runner:update:state",payload:{runnerCacheTag:Math.random()}}));MB.webpackInterface.store.dispatch({type:"entry:runner:update:overlay:stack",payload:{keyItemUpdated:Tt[0]}});let pn=!1,ys=!1;if(Tt.forEach(Dn=>{const Hs=sdkStore.getHotItem(Dn);(0,$.yT)(Hs==null?void 0:Hs.hotAttr.type)?pn=!0:(Hs==null?void 0:Hs.hotAttr.type)===Le.x.WBasket&&(ys=!0)}),pn&&MB.webpackInterface.store.dispatch({type:"runner:update:state",payload:{tearStickyCacheTag:Math.random()}}),ys){const Dn=Ze?vo:Yo;Dn&&MB.webpackInterface.store.dispatch({type:"entry:runner:update:basket:status:under",payload:{key:Dn}}),MB.webpackInterface.store.dispatch({type:"entry:runner:update:basket:status:in:overlay"})}},ze=Tt=>{We(Tt)},ft={repaint:Tt=>{let{type:mo,payload:jo}=Tt;mo===te.a&&ze(jo.changedKeyList)}},mt=(0,xe.nF)(()=>{const Tt=(0,H.ll)();!Tt||!(0,l.sI)(Tt)||MB.webpackInterface.store.dispatch({type:"comment:update:state",payload:{previewCommentCacheTag:Math.random()}})},.5*1e3),i={repaint:Tt=>{let{type:mo,payload:jo}=Tt;mo===Ve.a&&mt()}},gt=(0,m.Mz)([g.bF,l.sI],(Tt,mo)=>{let{isHTMLZip:jo,isSquare:Kt}=Tt;return{isHTMLZip:jo,isSquare:Kt,isInCommentMode:mo}}),Je=(0,k.memo)(Tt=>{let{isHTMLZip:mo,isSquare:jo,isInCommentMode:Kt}=Tt;const Ft=Rt=>{roSdkStore.syncUpdate(),ft.repaint(Rt)},nt=Rt=>{i.repaint(Rt)};return(0,k.useEffect)(()=>{if(!(jo||mo))return sdkStore.subscribe(Ft),Kt&&rootSdk.cmtStore.subscribe(nt),()=>{rootSdk.sdkStore.unsubscribe(Ft),Kt&&rootSdk.cmtStore.unsubscribe(nt)}},[mo,jo,Kt]),null}),Pt=(0,o.Ng)(gt)(Je);var bt=e(27754),qt=e(17084);const pt=(0,b.Ay)(bt.A).withConfig({displayName:"styles__StyledSimulatorContainer",componentId:"sc-19u8nby-0"})(["transition:right 0.5s ease-in-out;z-index:0;position:absolute;top:0;left:0;right:0;bottom:0;display:flex;justify-content:center;align-items:center;overflow:hidden;&.wait-create-comment{.zoom-area .screen-content{cursor:",";*{pointer-events:none !important;}}}&.is-dragging{cursor:grabbing;}&.is-try-drag{cursor:grab;}.screen-viewport{position:relative;.zoom-area{position:absolute;width:100%;height:100%;}.no-zoom-area{position:absolute;}}"],qt.M.comment);class $t extends k.PureComponent{constructor(){super(...arguments),(0,A.A)(this,"state",{isCmdDown:!1,multiple:1,isDragging:!1}),(0,A.A)(this,"handleScaleAndOffsetChange",(mo,jo,Kt)=>{const{dispatch:Ft,scale:nt}=this.props;Kt-nt>=0?(Ft({type:"entry:preview:set:scale",payload:{scale:Kt}}),Kt<=400&&Kt>=20&&this.handleOffSet({x:mo,y:jo})):(Ft({type:"entry:preview:set:scale",payload:{scale:Kt}}),Kt<=400&&Kt>=20&&Ft({type:"entry:preview:zoom-out:center-position",payload:{nextScale:Kt,oldScale:nt}}))}),(0,A.A)(this,"handleOffsetChange",(mo,jo)=>{this.handleOffSet({x:mo,y:jo})}),(0,A.A)(this,"handleKeyDown",mo=>{const{dispatch:jo,isInCommentMode:Kt}=this.props,Ft=mo.target.matches("input")||mo.target.matches("textarea")||mo.target.ariaLabel==="rdw-editor";mo.keyCode===32&&(Ft||(mo.preventDefault(),jo({type:"preview:set:key:flags",payload:{isSpaceDown:!0}}))),mo.keyCode===16&&!Ft&&(mo.preventDefault(),jo({type:"preview:set:key:flags",payload:{isShiftDown:!0}})),mo.keyCode===27&&!Ft&&(mo.preventDefault(),Kt&&jo({type:"entry:comment:create:esc"})),(mo.keyCode===8||mo.keyCode===46)&&!Ft&&(mo.preventDefault(),Kt&&jo({type:"enter:comment:shortcut:del"})),(mo.keyCode===91||mo.keyCode===93||mo.keyCode===224)&&this.setState({isCmdDown:!0})}),(0,A.A)(this,"handleKeyUp",mo=>{this.props.dispatch({type:"preview:reset:key:flags"}),(mo.keyCode===91||mo.keyCode===93||mo.keyCode===224)&&this.setState({isCmdDown:!1})}),(0,A.A)(this,"handleOffSet",mo=>{const{STRenderArea:jo,scale:Kt,dispatch:Ft,offset:nt,STMode:Rt,isInCommentMode:yt,leftPaneWidth:Jt,isMinimized:vo}=this.props,[Yo,Ho]=jo,kt=document.querySelector("#simulator-shell")?document.querySelector("#simulator-shell").getBoundingClientRect():document.querySelector("#simulator-container .zoom-area").getBoundingClientRect(),{top:Ze,bottom:it,left:st,right:dt}=kt,{clientHeight:Ot,clientWidth:Ct}=document.body,wo=st-(vo?0:Jt),ln=Ct-dt-(yt?240:0),Io=Rt?Yo*Kt/100:0,Lo=(Rt?Ho*Kt/100:0)+48,Ao=mo.x-nt.x,xt=mo.y-nt.y;Ao>0?wo+Ao<=Io?Ft({type:"preview:set:canvas:offset:dev",payload:{offset:{x:mo.x}}}):wo+Ao>Io&&wo<Io&&Ft({type:"preview:set:canvas:offset:dev",payload:{offset:{x:mo.x-(wo+Ao-Io)}}}):Ao<0&&(ln-Ao<=Io?Ft({type:"preview:set:canvas:offset:dev",payload:{offset:{x:mo.x}}}):ln-Ao>Io&&ln<Io&&Ft({type:"preview:set:canvas:offset:dev",payload:{offset:{x:mo.x+(ln-Ao-Io)}}})),xt>0?Ze+xt<=Lo?Ft({type:"preview:set:canvas:offset:dev",payload:{offset:{y:mo.y}}}):Ze+xt>Lo&&Ze<Lo&&Ft({type:"preview:set:canvas:offset:dev",payload:{offset:{y:mo.y-(Ze+xt-Lo)}}}):xt<0&&(Ot-it-xt<=Lo?Ft({type:"preview:set:canvas:offset:dev",payload:{offset:{y:mo.y}}}):Ot-it-xt>Lo&&Ot-it<Lo&&Ft({type:"preview:set:canvas:offset:dev",payload:{offset:{y:mo.y+(Ot-it-xt-Lo)}}}))}),(0,A.A)(this,"handleMouseDown",mo=>{const{dispatch:jo,isSpaceDown:Kt}=this.props;if(mo.button===1||mo.button===0&&Kt){this.setState({isDragging:!0});const Ft=mo.target.closest(".panel");if(Ft&&(Ft.offsetWidth<Ft.scrollWidth||Ft.offsetHeight<Ft.scrollHeight))return;this.initDraggingCanvas(mo)}else jo({type:"entry:comment:mousedown",payload:{event:mo}})}),(0,A.A)(this,"handleMouseMove",mo=>{const{isInCommentMode:jo,dispatch:Kt}=this.props,{isDragging:Ft}=this.state;jo&&!Ft&&Kt({type:"entry:comment:create:mousemove",payload:{event:mo}}),Kt({type:K.k.EntryKey["entry:draft:screen:mousemove"],payload:{event:mo,from:"preview"}})}),(0,A.A)(this,"handleMouseUp",mo=>{const{isInCommentMode:jo,dispatch:Kt}=this.props,{isDragging:Ft}=this.state;jo&&!Ft&&Kt({type:"entry:comment:create:mouseup",payload:{event:mo}}),Ft&&this.setState({isDragging:!1})})}componentDidUpdate(mo,jo){const{dispatch:Kt}=this.props;mo.runnerCacheTag!==this.props.runnerCacheTag&&Kt({type:"entry:preview:set:shellContainer"})}initDraggingCanvas(mo){const jo=mo.clientX,Kt=mo.clientY,{offset:Ft}=this.props,{x:nt,y:Rt}=Ft,yt=vo=>{const Yo={x:nt+(vo.clientX-jo),y:Rt+(vo.clientY-Kt)};this.handleOffSet(Yo)},Jt=vo=>{document.removeEventListener("mousemove",yt),document.removeEventListener("mouseup",Jt)};document.addEventListener("mousemove",yt),document.addEventListener("mouseup",Jt)}render(){const{scale:mo,page:jo,showShell:Kt,isInCommentMode:Ft,offset:nt,isSpaceDown:Rt,isQuickPreview:yt,isPanelPreviewMode:Jt,isPreviewCombo:vo}=this.props,{isDragging:Yo}=this.state,Ho={transform:"scale("+mo/100+")"},kt={top:(100-mo)/2+"%",left:(100-mo)/2+"%"},{w:Ze,h:it,orientation:st}=jo,dt=st==="landscape",[Ot,Ct]=dt?[it,Ze]:[Ze,it],wo={width:Ot,height:Ct,minWidth:Ot,minHeight:Ct,transform:"matrix(1, 0, 0, 1, "+Math.round(nt.x)+", "+Math.round(nt.y)+")"},ln=r()("simulator-container",{"wait-create-comment":Ft&&!Yo},{"is-dragging":Yo},{"is-try-drag":Rt&&!Yo}),Io=!yt&&!Jt&&!vo,Lo=Kt&&Io;return(0,E.jsxs)(pt,{x:nt.x,y:nt.y,scale:mo,id:"simulator-container",className:ln,isDisabled:!Io,onScaleAndOffsetChange:this.handleScaleAndOffsetChange,onOffsetChange:this.handleOffsetChange,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onMouseMove:this.handleMouseMove,children:[(0,E.jsxs)("div",{className:"screen-viewport",style:wo,children:[(0,E.jsxs)("div",{className:"zoom-area",style:Ho,children:[(0,E.jsx)(z.A,{isShellShow:Lo}),Lo&&(0,E.jsx)(N,{page:jo}),Io&&(0,E.jsx)(V,{})]}),Io&&(0,E.jsxs)("div",{className:"no-zoom-area",style:kt,children:[Ft&&(0,E.jsx)(a,{}),(0,E.jsx)(q,{})]})]},"1"),(0,E.jsx)(Pt,{}),(0,E.jsx)(x.A,{target:document,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp})]})}}const go=(0,m.Mz)([g.St,g.Kv,g.m5,g.KR,g.mf,g.Mh,g.ub,g.hM,l.sI,g.PN,g.A3,T.Lc,g.p$,g.E1,g.Pf,g._v,g.k6,g.Mo],(Tt,mo,jo,Kt,Ft,nt,Rt,yt,Jt,vo,Yo,Ho,kt,Ze,it,st,dt,Ot)=>{var Ct,wo;let{activePageKey:ln,activeCanvasKey:Io,activeWidgetKey:Lo,runnerCacheTag:Ao}=Ft;const xt=sdkStore.getHotItem(ln);let Ut={};if(Kt){if(Ot){const Kn=sdkStore.getHotItem(Ot);Kn&&(Ut={...Kn.hotAttr,orientation:"portrait"})}}else if(xt){const{hotAttr:{deviceW:Kn,deviceH:ds,deviceOrientation:_s,device:Ls}}=xt;if(Ut={w:Kn,h:ds,orientation:_s,device:Ls},Ls==="none"&&Io){const gs=sdkStore.getHotItem(Io);Ut=Ls==="none"?{...Ut,w:gs==null?void 0:gs.hotAttr.w,h:gs==null?void 0:gs.hotAttr.h}:{...gs.hotAttr}}if(Rt||yt){let{w:gs,h:ns}=(0,C.lY)(xt,sdkStore,!0);if(Lo&&!sdkStore.isTrashed(Lo)){var Wo,qo;const Wn=sdkStore.getHotItem(Lo);gs=Wn==null||(Wo=Wn.hotAttr)==null?void 0:Wo.w,ns=Wn==null||(qo=Wn.hotAttr)==null?void 0:qo.h}Ut={device:"customize",orientation:"portrait",w:gs,h:ns}}}const sn=((Ct=Ut)==null?void 0:Ct.device)&&!["customize","none"].includes((wo=Ut)==null?void 0:wo.device);return{page:Ut,scale:Tt,isImmersive:mo,theme:jo,showShell:nt&&!Kt&&sn,runnerCacheTag:Ao,isInCommentMode:Jt,STRenderArea:vo,offset:Yo,STMode:Ho,isSpaceDown:kt,leftPaneWidth:Ze,isMinimized:it,shellContainer:st,isQuickPreview:dt,isPanelPreviewMode:Kt,isPreviewCombo:yt}}),Co=(0,o.Ng)(Tt=>go(Tt))($t)},37991:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>N});var o=e(74059),m=e(51044),g=e(72605),l=e(63686),C=e(86634),T=e.n(C),A=e(91560),k=e(19722),p=e(11777),r=e(24013),x=e(77511),f=e(21676);const u=f.Ay.div.withConfig({displayName:"styles__StyledPaging",componentId:"sc-1mu84yq-0"})(["position:absolute;display:flex;padding:0 6px;height:40px;left:50%;transform:translateX(-50%);bottom:24px;background:",";box-shadow:0 2px 6px rgba(39,54,78,0.08);display:flex;align-items:center;justify-content:center;border-radius:6px;pointer-events:auto;z-index:1;gap:6px;.next{transform:rotate(180deg);}.page{font-size:12px;color:",";}.divider{border-left:1px solid ",";height:24px;}.comment,.homepage,.prev,.next,.back{width:28px;height:28px;border-radius:6px;}.svg-icon{[fill]{fill:currentColor;stroke:none;}[stroke]{stroke:currentColor;fill:none;}}.comment{cursor:pointer;&.disabled{cursor:not-allowed;.svg-icon{color:",";}}.svg-icon{display:flex;width:24px;height:24px;justify-content:center;align-items:center;gap:10px;flex-shrink:0;color:",";}}"],z=>z.theme.color_bg_white,z=>z.theme.color_text_L1,z=>z.theme.color_bg_border_02,z=>z.theme.color_text_disabled01,z=>z.theme.color_text_L1);var b=e(57464);class h extends m.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleHomePage",()=>{const{activeCanvasKey:S,history:_,dispatch:y}=this.props,a=_.at(-1);if(!a)return;const[$,ce]=(0,r.Lf)(a);S!==ce&&(y({type:"entry:runner:activate:canvas",payload:{pageKey:$,canvasKey:ce}}),y({type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}})),(0,x.v)({operation_type:x.$.BackHome})}),(0,o.A)(this,"handleBack",S=>{S||(this.props.dispatch({type:"entry:runner:back-to-prev-canvas"}),this.props.dispatch({type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}}),(0,x.v)({operation_type:x.$.Back}))}),(0,o.A)(this,"handleGoto",S=>{const{dispatch:_}=this.props;_({type:"entry:preview:switch:page",payload:{isPrev:S}}),(0,x.v)({operation_type:S?x.$.previousPage:x.$.NextPage})})}render(){const{activeCanvasKey:S,canvasKeyList:_,history:y,isPanelPreviewMode:a}=this.props;if(a)return null;const $=_==null?void 0:_.length,ce=_.indexOf(S)+1,de=(y==null?void 0:y.length)<=1,fe=[0,1].includes(ce),se=[0,$].includes(ce);return(0,b.jsxs)(u,{children:[(0,b.jsx)(p.A,{content:I18N.w.home,direction:"up",children:(0,b.jsx)(k.A,{name:"toolbar/preview/homepage",className:"homepage",onClick:this.handleHomePage})}),(0,b.jsx)(p.A,{content:I18N.w.prev_page,direction:"up",children:(0,b.jsx)(k.A,{name:"toolbar/preview/arrow",className:T()("prev",{disabled:fe}),onClick:fe?void 0:()=>this.handleGoto(!0)})}),(0,b.jsxs)("div",{className:"page",children:[ce," / ",$]}),(0,b.jsx)(p.A,{content:I18N.w.next_page,direction:"up",children:(0,b.jsx)(k.A,{name:"toolbar/preview/arrow",className:T()("next",{disabled:se}),onClick:se?void 0:()=>this.handleGoto(!1)})}),(0,b.jsx)(p.A,{content:I18N.pPreviewToolbar.back,direction:"up",children:(0,b.jsx)(k.A,{name:"toolbar/preview/back",className:T()("back",{disabled:de}),onClick:()=>this.handleBack(de)})})]})}}const E=(0,l.Mz)([A.mf,A.lR,A.KR],(z,S,_)=>{let{activeCanvasKey:y,history:a}=z;return{activeCanvasKey:y,history:a,canvasKeyList:S,isPanelPreviewMode:_}}),N=(0,g.Ng)(z=>E(z))(h)},3093:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>a});var o=e(51044),m=e(72605),g=e(86634),l=e.n(g),C=e(63686),T=e(44057),A=e(8066),k=e(58283),p=e(33039),r=e(7290),x=e(78647),f=e(24695),u=e(91560),b=e(95230),h=e(77511),E=e(62643),N=e(63555),z=e(57464);class S extends o.PureComponent{render(){const{dispatch:ce,propsForMenu:de}=this.props;return(0,z.jsx)(_,{dispatch:ce,propsForMenu:de})}}const _=$=>{let{dispatch:ce,propsForMenu:de}=$;const fe=(0,z.jsx)(r.C,{name:"toolbar/selected",className:"selected-icon"}),{isFullScreenMode:se,isSquare:J,isEmbedV2:ve,theme:D,isHighlight:R,isPreviewAIComponent:V,isShowShell:O,isCommunityComboPreview:Ce,isPreviewCombo:ae,isPanelPreviewMode:q,STMode:K,isViewSticky:xe,isLeftShow:te,isRightShow:H}=de,re=!xe,be=(0,o.useRef)(null),[Le,Ve]=(0,o.useState)({left:-999,top:-999}),Ne=!Ce&&!ae&&!q;(0,o.useEffect)(()=>{Ne&&ce({type:"ST:update",payload:{STMode:!re}})},[ce,Ne,re]);const We=()=>{ce({type:"entry:preview-setting:update:is-highlight",payload:{isHighlight:!R}}),(0,h.v)({operation_type:h.$.HighLight})},ze=pt=>{pt&&ce({type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}}),ce({type:"entry:ST:STMode:toggle"}),(0,h.v)({operation_type:h.$.Sticky})},ft=()=>{ce({type:"entry:preview-setting:update:show:shell",payload:{isShowShell:!O}}),(0,h.v)({operation_type:h.$.ShowShell})},mt=pt=>{ce({type:"reducer:preview-toolbar:update",payload:{theme:pt}}),(0,h.v)({operation_type:pt===b.Sx.DARK?h.$.DarkBackground:h.$.LightBackground})},i=!ae&&!q&&!J&&!ve,gt=!ae&&!q&&!J&&!ve,Je=!V,Pt=pt=>{var $t,go,Co;if(be!=null&&($t=be.current)!=null&&$t.$element&&pt){var Tt;const mo=be==null||(Tt=be.current)==null||(Tt=Tt.$element)==null?void 0:Tt.getBoundingClientRect();if(mo){const jo=(48-mo.height)/2,Kt={left:mo.left-2+32,top:mo.bottom+jo-2};Ve(Kt)}}(go=MB)==null||(go=go.commonGuideHelper)==null||go.closeGuide(x.c.GUIDE_PREVIEW_VIEW_BTN),(Co=MB)==null||(Co=Co.commonGuideHelper)==null||Co.markGuideAsRead(x.c.GUIDE_PREVIEW_VIEW_BTN)},bt=()=>ce({type:"entry:preview-setting:toggle:isMinimized"}),qt=()=>ce({type:"entry:preview-setting:toggle:rightPane"});return(0,z.jsx)(A.A,{ref:be,onClick:Pt,className:l()("settings-dropdown",{isCommunity:J}),renderOpener:(0,z.jsx)(p.A,{className:l()("fixed-layout-position","preview-view-icon",{isEmbedV2Preview:ve},{NotFullScreen:!se}),name:I18N.pPreviewToolbar.comment,toolTipName:I18N.ToolBar.view,svgIconName:"toolbar/layout",toolTipDistance:8,size:32}),renderMenu:(0,z.jsxs)(k.Sv,{className:l()("onlyPreview",{fullScreen:se},{isCommunity:J},{isEmbedV2Preview:ve},{combo_group:Ce}),position:Le,onClose:()=>{},children:[i&&(0,z.jsx)(T.Dr,{text:I18N.PreferenceBar.left_panel,disabled:!1,icon:te?fe:void 0,onClick:bt,hotKeyText:f.V.showLeftPanel}),gt&&(0,z.jsx)(T.Dr,{text:I18N.PreferenceBar.right_panel,disabled:!xe,icon:H?fe:void 0,onClick:qt,hotKeyText:f.V.showRightPanel}),Je&&(0,z.jsx)(T.Dr,{text:I18N.ToolBar.lingLink,disabled:!1,icon:R?fe:void 0,onClick:We}),Ne&&(0,z.jsx)(T.Dr,{text:I18N.PreferenceBar.show_device_frame,disabled:!1,icon:O?fe:void 0,onClick:ft}),Ne&&(0,z.jsx)(T.Dr,{text:I18N.ToolBar.sticky,disabled:re,icon:K&&!re?fe:void 0,onClick:()=>ze(K)}),(Je||Ne)&&(0,z.jsx)("div",{className:"menu-divider"}),(0,z.jsx)(T.Dr,{text:I18N.PreferenceBar.dark_background,disabled:!1,icon:D===b.Sx.DARK?fe:void 0,onClick:()=>mt(b.Sx.DARK)}),(0,z.jsx)(T.Dr,{text:I18N.PreferenceBar.light_background,disabled:!1,icon:D===b.Sx.LIGHT?fe:void 0,onClick:()=>mt(b.Sx.LIGHT)}),(0,z.jsx)(k.kb,{})]})})},y=(0,C.Mz)([u.Ph,u.Pf,u.U4,u.bF,u.m5,u.Re,u.Mh,u.ub,u.hM,u.KR,E.Lc,u.UB,u.Cb],($,ce,de,fe,se,J,ve,D,R,V,O,Ce,ae)=>{var q;let{isSquare:K,isEmbedV2:xe,isHTMLZip:te}=fe,H=!0;return te||(H=Ce==null?void 0:Ce.view_sticky,Ce&&typeof Ce.view_sticky=="string"&&(H=Ce.view_sticky==="view_sticky")),{propsForMenu:{isPreviewAIComponent:ae&&((q=sdkStore.getHotItem(ae))==null?void 0:q.hotAttr.type)===N.x.WCode,isFullScreenMode:$,isLeftShow:!ce,isRightShow:de,isSquare:K,isEmbedV2:xe,theme:se,isHighlight:J,isShowShell:ve,isCommunityComboPreview:D,isPreviewCombo:R,isPanelPreviewMode:V,STMode:O,isViewSticky:H}}}),a=(0,m.Ng)($=>y($))(S)},75833:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>Ao});var o=e(51044),m=e(72605),g=e(63686),l=e(91560),C=e(74059),T=e(86634),A=e.n(T),k=e(19722),p=e(7290),r=e(11777),x=e(44057),f=e(58283),u=e(33039),b=e(78647),h=e(95230),E=e(77511),N=e(21676),z=e(8066);const S=N.Ay.div.withConfig({displayName:"styles__StyledCanvasPreviewToolbar",componentId:"sc-mefi91-0"})(["height:50px;display:flex;justify-content:space-between;padding:0 20px;background:",";border-bottom:1px solid ",";cursor:move;.toolbar-left{display:flex;align-items:center;.prev,.next{width:28px;height:28px;color:",";path{fill:none;stroke:currentColor;}&.disabled{color:",";}}.next{transform:rotate(180deg);margin-left:6px;}}.toolbar-right{display:flex;align-items:center;.open-in-device-mode{width:28px;height:28px;margin-left:6px;color:",";}.close{margin-left:6px;width:26px;height:26px;cursor:pointer;color:",";&:hover{color:",";}&:active{color:",";}}}.prev,.next,.open-in-device-mode{color:",";&:not(.disabled):hover{color:",";}&:not(.disabled):active{color:",";}}"],xt=>xt.theme.color_bg_white,xt=>xt.theme.color_bg_border_02,xt=>xt.theme.color_text_L2,xt=>xt.theme.color_text_disabled01,xt=>xt.theme.color_text_L2,xt=>xt.theme.color_text_L2,xt=>xt.theme.color_text_L1,xt=>xt.theme.color_text_L1,xt=>xt.theme.color_text_L2,xt=>xt.theme.color_text_L1,xt=>xt.theme.color_text_L1),_=(0,N.Ay)(z.A).withConfig({displayName:"styles__StyledViewMenu",componentId:"sc-mefi91-1"})([".toolbar-icon-item{width:28px;height:28px;color:",";cursor:pointer;&:hover{color:",";}}&.is-open{.toolbar-icon-item{color:",";}}"],xt=>xt.theme.color_text_L2,xt=>xt.theme.color_text_L1,xt=>xt.theme.color_text_L1);var y=e(57464);class a extends o.PureComponent{render(){const{dispatch:Ut,propsForMenu:Wo}=this.props;return(0,y.jsx)($,{dispatch:Ut,propsForMenu:Wo})}}const $=xt=>{let{dispatch:Ut,propsForMenu:Wo}=xt;const qo=(0,y.jsx)(p.C,{name:"toolbar/selected",className:"selected-icon"}),{theme:sn,isHighlight:Kn,isPreviewAIComponent:ds}=Wo,_s=(0,o.useRef)(null),[Ls,gs]=(0,o.useState)({left:-999,top:-999}),ns=()=>{Ut({type:"entry:preview-setting:update:is-highlight",payload:{isHighlight:!Kn}}),(0,E.v)({operation_type:E.$.HighLight})},Wn=Go=>{Ut({type:"reducer:preview-toolbar:update",payload:{theme:Go}}),(0,E.v)({operation_type:Go===h.Sx.DARK?E.$.DarkBackground:E.$.LightBackground})},Do=Go=>{var an,Mo,Cn;if(_s!=null&&(an=_s.current)!=null&&an.$element&&Go){var Tn;const cn=_s==null||(Tn=_s.current)==null||(Tn=Tn.$element)==null?void 0:Tn.getBoundingClientRect();if(cn){const bs=(48-cn.height)/2,Vn={left:cn.left-2+32,top:cn.bottom+bs-2};gs(Vn)}}(Mo=MB)==null||(Mo=Mo.commonGuideHelper)==null||Mo.closeGuide(b.c.GUIDE_PREVIEW_VIEW_BTN),(Cn=MB)==null||(Cn=Cn.commonGuideHelper)==null||Cn.markGuideAsRead(b.c.GUIDE_PREVIEW_VIEW_BTN)};return(0,y.jsx)(_,{ref:_s,onClick:Do,className:"canvas-preview-toolbar-view-menu",renderOpener:(0,y.jsx)(u.A,{name:I18N.pPreviewToolbar.comment,toolTipName:I18N.ToolBar.view,svgIconName:"toolbar/canvas_preview/view",toolTipDistance:8,size:24}),renderMenu:(0,y.jsxs)(f.Sv,{className:A()("onlyPreview"),position:Ls,onClose:()=>{},children:[!ds&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(x.Dr,{text:I18N.ToolBar.lingLink,disabled:!1,icon:Kn?qo:void 0,onClick:ns}),(0,y.jsx)("div",{className:"menu-divider"})]}),(0,y.jsx)(x.Dr,{text:I18N.PreferenceBar.dark_background,disabled:!1,icon:sn===h.Sx.DARK?qo:void 0,onClick:()=>Wn(h.Sx.DARK)}),(0,y.jsx)(x.Dr,{text:I18N.PreferenceBar.light_background,disabled:!1,icon:sn===h.Sx.LIGHT?qo:void 0,onClick:()=>Wn(h.Sx.LIGHT)}),(0,y.jsx)(f.kb,{})]})})},ce=(0,g.Mz)([l.m5,l.Re,l.ks],(xt,Ut,Wo)=>({propsForMenu:{theme:xt,isHighlight:Ut,isPreviewAIComponent:Wo}})),de=(0,m.Ng)(xt=>ce(xt))(a);class fe extends o.PureComponent{constructor(){super(...arguments),(0,C.A)(this,"handleGoto",Ut=>{const{dispatch:Wo}=this.props;Wo({type:"entry:preview:switch:page",payload:{isPrev:Ut}}),(0,E.v)({operation_type:Ut?E.$.previousPage:E.$.NextPage})})}render(){const{activeCanvasKey:Ut,activePageKey:Wo,canvasKeyList:qo,onCloseModal:sn,onLunch:Kn}=this.props,ds=qo==null?void 0:qo.length,_s=qo.indexOf(Ut)+1,Ls=[0,1].includes(_s),gs=[0,ds].includes(_s);return(0,y.jsxs)(S,{type:"draggable",children:[(0,y.jsxs)("div",{className:"toolbar-left",children:[(0,y.jsx)(r.A,{content:I18N.w.prev_page,direction:"down",children:(0,y.jsx)(k.A,{name:"toolbar/preview/arrow",className:A()("prev",{disabled:Ls}),onClick:Ls?void 0:()=>this.handleGoto(!0)})}),(0,y.jsx)(r.A,{content:I18N.w.next_page,direction:"down",children:(0,y.jsx)(k.A,{name:"toolbar/preview/arrow",className:A()("next",{disabled:gs}),onClick:gs?void 0:()=>this.handleGoto(!1)})})]}),(0,y.jsxs)("div",{className:"toolbar-right",children:[(0,y.jsx)(de,{}),(0,y.jsx)(r.A,{content:I18N.dModals.canvas_preview.open_in_device_mode,direction:"down",children:(0,y.jsx)(k.A,{className:"open-in-device-mode",name:"toolbar/canvas_preview/open_in_device_mode",onClick:()=>Kn({activePageKey:Wo,activeCanvasKey:Ut})})}),(0,y.jsx)(p.C,{name:"general/times",className:"close",onClick:sn})]})]})}}const se=(0,g.Mz)([l.mf,l.lR],(xt,Ut)=>{let{activeCanvasKey:Wo,activePageKey:qo}=xt;return{activeCanvasKey:Wo,activePageKey:qo,canvasKeyList:Ut}}),J=(0,m.Ng)(xt=>se(xt))(fe);var ve=e(89099),D=e(9126),R=e(63555),V=e(35078);const O=(0,N.Ay)(x.Ay).withConfig({displayName:"styles__StyledMenuContent",componentId:"sc-1nes2uf-0"})(["&.isFullScreen > ul{width:189px;}ul{width:160px;min-width:0;}.scroll{overflow-y:overlay;max-height:258px;&::-webkit-scrollbar{display:none;}}.padd{display:flex;flex-direction:row;align-items:center;li{&.rResBunch::after{top:11px;}a{height:24px;}}}li{list-style:none;&.canExpand{a{padding-left:6px;}}&.isFolder{a{padding-left:15px;}&.canExpand{a{padding-left:6px;}}a a .screen-icon{padding-left:2px;}}&.MenuItem.hasIcon.rResCanvas > a:first-child{padding-left:4px;}&.rResBunch.selected .arrow-right{}&.rResBunch::before{opacity:0;position:absolute;top:9.5px;right:25px;content:'';display:none;width:5px;height:5px;background-color:#999999;border-radius:50%;}&.rResBunch.selected:not(.isPreviewCombo):not(.isPanelPreview)::before{display:block;opacity:1;}&.rResBunch::after{opacity:0;position:absolute;top:13px;left:8px;content:'';width:7px;height:4px;display:none;border:1px solid #fff;border-width:0 0 2px 2px;transform:rotate(-45deg);}&.rResBunch.selected.isPreviewCombo::after{opacity:1;display:inline-block;}}a{height:24px;padding-left:16px;color:#fff;&>.expander{padding-left:4px;padding-right:8px !important;&.canExpand{}.arrow-icon{width:9px;height:6px;path{fill:#999999;}&:not(.is-expand){transform:rotate(-90deg);}}.screen-icon{padding-left:1px;.sm-folder-icon{width:23px;height:22px;color:#333 !important;path{stroke:#fff;fill:transparent !important;}}.page{path{fill:#fff;}}}.design-rResCanvas-new{width:20px;height:20px;path{fill:",";}}.arrow-right{position:absolute;right:7px;top:7px;width:10px;transform:rotate(-90deg);path{fill:#999;}}}span{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:0;}}.MenuItem{flex:1;width:100%;.is-selected{width:8px;height:6px;margin-right:8px;}&.isPanelPreview{& > a{padding-left:8px;}}.right-arrow{display:none;}}.SubMenu{border-radius:4px;min-width:200px;background:#333;color:#fff;box-shadow:",";border:1px solid #454647;}ul{padding:8px;border-radius:8px;border:1px solid ",";color:",";background:",";box-shadow:",";li.rResBunch::after{border-color:",";}li.MenuItem{a{border-radius:4px;background:",";color:",";svg path{fill:",";}.right-arrow svg > path{fill:",";}.shortfont kbd{color:",";}& > .expander .screen-icon .page path{fill:",";}& > .expander .screen-icon .sm-folder-icon path{stroke:",";}}&:not(.disabled).active{a{background:",";}}&.disabled{a{color:",";svg path{fill:",";}.shortfont kbd{color:",";}}}}}a{color:",";}.SubMenu{border-radius:8px;background:",";color:",";box-shadow:",";border:1px solid ",";}"],xt=>xt.theme.color_text_L1,xt=>xt.theme.menu_content_shadow,xt=>xt.theme.color_bg_border_01,xt=>xt.theme.color_text_L1,xt=>xt.theme.color_bg_white,xt=>xt.theme.shadow_m,xt=>xt.theme.color_text_L1,xt=>xt.theme.color_bg_white,xt=>xt.theme.color_text_L1,xt=>xt.theme.color_text_L1,xt=>xt.theme.color_text_L2,xt=>xt.theme.color_text_L2,xt=>xt.theme.color_text_L1,xt=>xt.theme.color_text_L1,xt=>xt.theme.color_btn_secondary_hover,xt=>xt.theme.color_text_disabled01,xt=>xt.theme.color_text_disabled01,xt=>xt.theme.color_text_disabled01,xt=>xt.theme.color_text_L1,xt=>xt.theme.color_bg_white,xt=>xt.theme.color_text_L1,xt=>xt.theme.shadow_m,xt=>xt.theme.color_bg_border_01),Ce=N.Ay.div.withConfig({displayName:"styles__StyledScreenMetaMenu",componentId:"sc-1nes2uf-1"})(["display:flex;align-items:center;cursor:pointer;.toolbar-menu-opener{display:flex;align-items:center;width:160px;height:28px;border:1px solid ",";border-radius:4px;transition:all 0.2s ease-in-out 0s;&:hover{background-color:",";}&.isFullScreen{width:189px;height:28px;}.title{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0 10px;font-weight:400;font-size:12px;color:",";}.arrow-right{margin-right:8px;color:",";width:9px;}}"],xt=>xt.theme.color_border_state,xt=>xt.theme.color_content_background_item_state_hover,xt=>xt.theme.color_content_text_item_state,xt=>xt.theme.color_content_text_item_state);class ae extends o.PureComponent{constructor(){super(...arguments),(0,C.A)(this,"state",{isOpen:!1,isShowMoreTips:!0,position:{left:90,top:48}}),(0,C.A)(this,"createRef",Ut=>this.$ref=Ut),(0,C.A)(this,"handleToggle",Ut=>{const{isOpen:Wo}=this.state,qo=Ut===void 0?!Wo:Ut;this.setState({isOpen:qo,isShowMoreTips:!this.state.isShowMoreTips}),this.handleSetPosition(qo)}),(0,C.A)(this,"handleSetPosition",Ut=>{if(!this.$ref||!Ut)return;const{isEmbedV2NotFull:Wo}=this.props,qo=this.$ref.getBoundingClientRect(),sn=Wo?32:48;if(qo){const Kn=(sn-qo.height)/2,ds={left:qo.left-2,top:qo.bottom+Kn-2};this.setState({position:ds})}}),(0,C.A)(this,"handleScreenList",(Ut,Wo,qo)=>{const sn=Wo.children;for(const Kn of sn){const ds={...Kn,depth:qo,canExpand:!1,expand:!1,show:!0};Kn.children&&Kn.children.length>0?(Ut.push({...ds,canExpand:!0,expand:!0}),this.handleScreenList(Ut,Kn,qo+1)):Ut.push(ds)}}),(0,C.A)(this,"handleClickScreen",(Ut,Wo)=>{const{dispatch:qo}=this.props;Wo||qo({type:"entry:sync-runner:set-screen",payload:{cid:Ut}}),this.handleToggle(!1)}),(0,C.A)(this,"handleClickCanvas",async(Ut,Wo)=>{let{screenCid:qo,asFolder:sn}=Wo;await this.handleClickScreen(qo,sn);const{activePageKey:Kn,activeCanvasKey:ds,dispatch:_s}=this.props;Ut!==ds&&(_s({type:"entry:runner:activate:canvas",payload:{pageKey:Kn,canvasKey:Ut}}),(0,E.v)({operation_type:E.$.SwitchPage}))})}render(){var Ut,Wo;const{screenTreeData:qo,activePageKey:sn,activeCanvasKey:Kn,isFullScreenMode:ds,theme:_s,isPreviewCombo:Ls}=this.props,{position:gs,isOpen:ns}=this.state,Wn=new URLSearchParams(location.search),Do=Kn||sn?((Wo=sdkStore.getHotItem(Kn||sn||""))==null||(Wo=Wo.hotAttr)==null?void 0:Wo.name)||"":((Ut=sdkStore.getHotItem(Wn.get("canvasId")||Wn.get("screen")||""))==null||(Ut=Ut.hotAttr)==null?void 0:Ut.name)||"",Go=[];return this.handleScreenList(Go,qo,0),Go.length===0?null:(0,y.jsxs)(Ce,{children:[(0,y.jsxs)("div",{className:A()("toolbar-menu-opener",{isFullScreen:ds},""+_s),onClick:()=>this.handleToggle(!ns),ref:this.createRef,children:[(0,y.jsx)("span",{className:"title",children:Do}),(0,y.jsx)(p.C,{className:"arrow-right",name:"common/expand"})]}),ns&&(0,y.jsxs)(O,{className:A()(ds?"isFullScreen":"canvas-menu-container"),position:gs,alwaysOpen:!0,onClose:()=>this.handleToggle(!1),children:[(0,y.jsx)(q,{activeScreenCid:sn,activeCanvasCid:Kn,screenList:Go,isPreviewCombo:Ls,onClickScreen:this.handleClickScreen,onClickCanvas:this.handleClickCanvas}),(0,y.jsx)(f.kb,{})]})]})}}(0,C.A)(ae,"defaultProps",{isEmbedV2NotFull:!1});const q=xt=>{let{activeScreenCid:Ut,activeCanvasCid:Wo,screenList:qo,isPreviewCombo:sn,onClickScreen:Kn,onClickCanvas:ds}=xt;const[_s,Ls]=(0,o.useState)(qo),[gs,ns]=(0,o.useState)(!1);(0,o.useEffect)(()=>{const an=document.querySelector(".scroll.rResBunch"),Mo=document.querySelector(".content-list.rResBunch");if(Ut){const Cn=document.querySelector(".padd."+Ut);if(an&&Mo&&Cn){const{top:Tn}=Mo.getBoundingClientRect(),{top:cn}=Cn.getBoundingClientRect();an.scrollTo(0,cn-Tn)}}},[Ut]);const Wn=(0,o.useCallback)(()=>{const an=document.querySelector(".scroll.rResCanvas"),Mo=document.querySelector(".content-list.rResCanvas");if(Wo){const Cn=document.querySelector(".rResCanvas."+Wo);if(an&&Mo&&Cn){const{top:Tn}=Mo.getBoundingClientRect(),{top:cn}=Cn.getBoundingClientRect();an.scrollTo(0,cn-Tn)}}},[Wo]);(0,o.useEffect)(()=>{gs&&setTimeout(()=>Wn(),10),ns(!1)},[gs,Wn]);const Do=(an,Mo,Cn,Tn,cn)=>{an.stopPropagation();let bs=1/0,Vn=0,ti=!1;const oi=[];_s.forEach((Gt,Rs)=>{let Xs=Gt;Gt.cid===Mo&&(Xs={...Gt,expand:!Gt.expand},bs=Rs),ti&&(Rs===Vn?ti=!1:Xs={...Gt,show:!1}),!ti&&Rs>bs&&(Gt.data.sup!==Cn&&Gt.depth>Tn?Xs={...Gt,show:!cn}:(Gt.data.sup===Cn||Gt.depth<=Tn)&&(bs=1/0),!cn&&!Gt.expand&&(Vn=_s.slice(Rs+1).findIndex(Ti=>Ti.data.sup===Gt.data.sup||Ti.depth<=Gt.depth)+(Rs+1),Vn!==-1&&(ti=!0))),oi.push(Xs)}),Ls(oi)},Go=an=>{let{type:Mo,canExpand:Cn,cid:Tn,supCid:cn,depth:bs,expand:Vn,icon:ti,hasSubCanvas:oi,isSelected:Gt}=an;return Mo==="rResBunch"?(0,y.jsxs)("a",{className:A()("expander rResBunch",{canExpand:Cn}),onClick:Rs=>Do(Rs,Tn,cn,bs,Vn),style:{paddingLeft:8*bs+"px"},children:[Cn&&(0,y.jsx)(p.C,{className:A()("arrow-icon",{"is-expand":Vn}),name:"common/triangle-filled-down"}),(0,y.jsx)(ve.k,{icon:ti,theme:"",isExpand:Vn}),oi&&(0,y.jsx)(p.C,{className:A()("arrow-right",{"is-expand":Vn}),name:"common/expand"})]}):(0,y.jsxs)("a",{className:A()("expander rResCanvas"),children:[Gt?(0,y.jsx)(p.C,{className:"is-selected",name:"toolbar/selected"}):(0,y.jsx)("i",{className:"is-selected"}),(0,y.jsx)(D.A,{widget:{type:R.x.Canvas}})]})};return(0,y.jsx)("div",{className:"scroll rResBunch",children:(0,y.jsx)("div",{className:"content-list rResBunch screen-menu",children:_s.map(an=>{let{cid:Mo,isVisible:Cn,data:{name:Tn,asFolder:cn,sup:bs,icon:Vn},depth:ti,show:oi,expand:Gt,canExpand:Rs}=an;const Xs=sdkStore.getSubHotItemList(Mo).filter(vs=>{let{hotAttr:{type:ei,asOverlay:Si}}=vs;return ei===R.x.Canvas&&!Si}),Ti=Xs.length>0,di=!Ti&&!sn&&!cn;if(oi)return(0,y.jsx)("div",{className:"padd "+Mo,children:(0,y.jsx)(x.Dr,{dataIndex:Mo,text:Tn,icon:Go({type:"rResBunch",canExpand:Rs,cid:Mo,supCid:bs,depth:ti,expand:Gt,icon:Vn,hasSubCanvas:Ti,isSelected:!1}),onClick:()=>Kn(Mo,cn),className:A()("rResBunch",Rs&&"canExpand",{isFolder:cn},{selected:Ut===Mo},{isPreviewCombo:sn,selected:Ut===Mo},{disabled:di}),disabled:di,onMouseEnter:()=>ns(!0),isAiry:!0,children:!cn&&Ti&&(0,y.jsx)("div",{className:"scroll rResCanvas",children:(0,y.jsx)("div",{className:"content-list rResCanvas",children:Xs.map(vs=>{let{key:ei,hotAttr:{name:Si,isVisible:Gs}}=vs;return(0,y.jsx)(x.Dr,{text:Si,dataIndex:ei,icon:Go({type:"rResCanvas",canExpand:Rs,cid:Mo,supCid:bs,depth:ti,expand:Gt,icon:Vn,hasSubCanvas:!1,isSelected:Wo===ei}),onClick:()=>ds(ei,{screenCid:Mo,asFolder:cn}),isVisible:!Gs,className:A()("rResCanvas "+ei,{selected:Wo===ei})},ei)})})})},Mo)},Mo)})})})},K=(0,g.Mz)([l.HA,l.mf,l.Ph,l.m5,l.bF,l.UB,l.hM],(xt,Ut,Wo,qo,sn,Kn,ds)=>{let{activePageKey:_s,activeCanvasKey:Ls}=Ut,{isEmbedV2:gs}=sn,ns=xt;if(Kn){const{screen_visible_list:Wn,screen_visible_switch:Do}=Kn;if(Do){const{screenTreeData:Go}=(0,V.wb)(Wn);ns=Go}}return{screenTreeData:ns,activePageKey:_s,activeCanvasKey:Ls,isFullScreenMode:Wo,theme:qo,isEmbedV2:gs,isPreviewCombo:ds}}),xe=(0,m.Ng)(xt=>K(xt))(ae);var te=e(59742),H=e(75391);class re extends o.PureComponent{constructor(){super(...arguments),(0,C.A)(this,"state",{isOpen:!1,isShowMoreTips:!0,position:{left:90,top:48}}),(0,C.A)(this,"createRef",Ut=>this.$ref=Ut),(0,C.A)(this,"handleToggle",Ut=>{const{isOpen:Wo}=this.state,qo=Ut===void 0?!Wo:Ut;this.setState({isOpen:qo,isShowMoreTips:!this.state.isShowMoreTips}),this.handleSetPosition(qo)}),(0,C.A)(this,"handleSetPosition",Ut=>{if(!this.$ref||!Ut)return;const Wo=this.$ref.getBoundingClientRect();if(Wo){const qo=(48-Wo.height)/2,sn={left:Wo.left-2,top:Wo.bottom+qo-2};this.setState({position:sn})}}),(0,C.A)(this,"handleActivate",Ut=>{const{activePageKey:Wo,dispatch:qo}=this.props;qo({type:"entry:runner:activate:canvas",payload:{pageKey:Wo,canvasKey:Ut}})})}render(){const{stateList:Ut,activeCanvasKey:Wo,activeWidgetKey:qo}=this.props,{position:sn,isOpen:Kn}=this.state;if((Ut==null?void 0:Ut.length)===0||qo)return null;const ds=Ut.find(_s=>_s.key===Wo);return(0,y.jsxs)(Ce,{children:[(0,y.jsxs)("div",{className:A()("toolbar-menu-opener state-list"),onClick:()=>this.handleToggle(!Kn),ref:this.createRef,children:[(0,y.jsx)("span",{className:"title",children:ds==null?void 0:ds.name}),(0,y.jsx)(p.C,{className:"arrow-right",name:"common/expand"})]}),Kn&&(0,y.jsxs)(O,{position:sn,alwaysOpen:!0,onClose:()=>this.handleToggle(!1),children:[(0,y.jsx)("div",{className:"scroll",children:Ut.map(_s=>{let{key:Ls,name:gs,isVisible:ns}=_s;return(0,y.jsx)("div",{className:"padd",children:(0,y.jsx)(x.Dr,{isVisible:!ns,icon:Wo===Ls?(0,y.jsx)(p.C,{className:"is-selected",name:"toolbar/selected"}):(0,y.jsx)("i",{className:"is-selected"}),dataIndex:Ls,text:gs,onClick:()=>this.handleActivate(Ls),className:A()("rResBunch","isPanelPreview",{selected:Wo===Ls})},Ls)},Ls)})}),(0,y.jsx)(f.kb,{})]})]})}}const be=(0,g.Mz)([l.mf,l.Mo],(xt,Ut)=>{let{activePageKey:Wo,activeCanvasKey:qo,activeWidgetKey:sn,panelPreviewStateListCacheTag:Kn}=xt;return{stateList:(Wo?(0,H.Y2)(Wo):[]).map(_s=>{var Ls;return{key:Ut&&((Ls=sdkStore.getHotItem(Ut))==null||(Ls=Ls.hotAttr)==null?void 0:Ls.type)==="wBasket"?(0,te.j_)([Ut,_s.key]):_s.key,..._s.hotAttr}}),activePageKey:Wo,activeCanvasKey:qo,activeWidgetKey:sn}}),Le=(0,m.Ng)(xt=>be(xt))(re),Ve=(0,o.memo)(()=>{const xt=(0,m.d4)(l.Cb),Ut=()=>{if(!xt)return;const Wo=sdkStore.getHotItem(xt);if(!(!Wo||Wo.hotAttr.type!==R.x.WCode))try{var qo;const sn=(qo=document.querySelector("#preview-combo-modal"))==null||(qo=qo.querySelector("#simulator-container"))==null||(qo=qo.querySelector('[data-cid="'+xt+'"]'))==null?void 0:qo.querySelector("iframe");if(!sn||!(sn!=null&&sn.contentWindow))return;sn.contentWindow.postMessage({type:"reloadWidget"},"*")}catch(sn){console.error(sn)}};return(0,y.jsx)(u.A,{className:"preview-view-icon preview-view-icon-refresh",name:"\u91CD\u65B0\u52A0\u8F7D",toolTipName:"\u91CD\u65B0\u52A0\u8F7D",svgIconName:"toolbar/reload",toolTipDistance:8,onClick:Ut,size:24})}),Ne=N.Ay.div.withConfig({displayName:"styles__StyledComboPreviewToolbar",componentId:"sc-1y80tqu-0"})(["height:50px;display:flex;justify-content:space-between;padding:0 20px;background:",";border-bottom:1px solid ",";cursor:move;.toolbar-left{display:flex;align-items:center;}.toolbar-right{display:flex;align-items:center;.preview-view-icon-refresh{width:28px;height:28px;margin-right:6px;color:",";cursor:pointer;svg.svg-icon{width:24px;height:24px;}&:hover{color:",";}&:active{color:",";}}.close{margin-left:6px;width:26px;height:26px;cursor:pointer;color:",";&:hover{color:",";}&:active{color:",";}}}"],xt=>xt.theme.color_bg_white,xt=>xt.theme.color_bg_border_02,xt=>xt.theme.color_text_L2,xt=>xt.theme.color_text_L1,xt=>xt.theme.color_text_L1,xt=>xt.theme.color_text_L2,xt=>xt.theme.color_text_L1,xt=>xt.theme.color_text_L1);class We extends o.PureComponent{render(){const{isPanelPreviewMode:Ut,isPreviewAIComponent:Wo,onCloseModal:qo}=this.props;return(0,y.jsxs)(Ne,{type:"draggable",children:[(0,y.jsx)("div",{className:"toolbar-left",children:Ut?(0,y.jsx)(Le,{}):Wo?null:(0,y.jsx)(xe,{})}),(0,y.jsxs)("div",{className:"toolbar-right",children:[Wo&&(0,y.jsx)(Ve,{}),(0,y.jsx)(de,{}),(0,y.jsx)(p.C,{name:"general/times",className:"close",onClick:qo})]})]})}}const ze=(0,g.Mz)([l.KR,l.ks],(xt,Ut)=>({isPanelPreviewMode:xt,isPreviewAIComponent:Ut})),ft=(0,m.Ng)(xt=>ze(xt))(We);var mt=e(35592),i=e(71072);class gt extends o.PureComponent{constructor(){super(...arguments),(0,C.A)(this,"handleZoomIn",()=>{const{dispatch:Ut}=this.props;Ut({type:"entry:preview:zoom-in"})}),(0,C.A)(this,"handleZoomOut",()=>{const{dispatch:Ut}=this.props;Ut({type:"entry:preview:zoom-out:set-offset"})}),(0,C.A)(this,"handleZoomSpecifiedScale",Ut=>{const{dispatch:Wo,scale:qo}=this.props;Wo({type:"entry:preview:set:scale",payload:{scale:Ut}}),qo>Ut&&Wo({type:"entry:preview:zoom-out:center-position",payload:{nextScale:Ut,oldScale:qo}})}),(0,C.A)(this,"handleZoomInitialScale",Ut=>{Ut==null||Ut.stopPropagation(),Ut==null||Ut.preventDefault();const{dispatch:Wo}=this.props;Wo({type:"preview:update:state",payload:{hasChangedScaleManually:!1}}),Wo({type:"entry:auto-fit:preview:scale"}),Wo({type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}})})}componentDidMount(){const{isEmbedV2:Ut}=this.props;Ut&&this.handleZoomInitialScale(null)}render(){const{scale:Ut,isEmbedV2:Wo,isSquare:qo,isHTMLZip:sn,isFullScreenMode:Kn}=this.props;return(0,y.jsx)("div",{className:A()("ZoomButton",{isEmbedV2Preview:Wo},{isCommunity:qo},{NotFullScreen:!Kn},{isBorder:qo||Wo||sn}),children:(0,y.jsx)(i.Pd,{onlyPreview:!0,scale:Ut,isShowZoomSelection:!1,onZoomIn:this.handleZoomIn,onZoomOut:this.handleZoomOut,onZoomInitialScale:this.handleZoomInitialScale,onZoomSpecifiedScale:this.handleZoomSpecifiedScale})})}}const Je=(0,g.Mz)([l.St,l.Ph,l.bF],(xt,Ut,Wo)=>{let{isEmbedV2:qo,isSquare:sn,isHTMLZip:Kn}=Wo;return{scale:xt,isFullScreenMode:Ut,isEmbedV2:qo,isSquare:sn,isHTMLZip:Kn}}),Pt=(0,m.Ng)(xt=>Je(xt))(gt);var bt=e(35372),qt=e(31900),pt=e(87404);const go=xt=>{const{user:Ut,dispatch:Wo}=xt,qo=(0,o.useContext)(qt.G),sn=(0,o.useContext)(qt.n),[Kn,ds]=(0,o.useState)((0,pt.N)()),[_s,Ls]=(0,o.useState)(!1),gs=async()=>{MB.global.experienceLoginModalHelper&&MB.global.experienceLoginModalHelper("isSave")||(Kn&&(MB.commonGuideHelper.closeGuide(b.c.GUIDE_2309_CLICK_SHARE),MB.commonGuideHelper.markGuideAsRead(b.c.GUIDE_NOVICE_2309_TASK_5_DEVICE_MODE),Ls(Kn),setTimeout(()=>{ds(!1),Ls(!1)},6e3)),Wo({type:"entry:preview:toggle:sharingManager"}))};return(0,o.useEffect)(()=>{qo!=="read_only"&&sn&&(0,bt.c)(I18N)[b.c.GUIDE_2309_CLICK_SHARE].howToShow({isInDesign:!1})},[qo,sn]),qo==="read_only"?null:(0,y.jsx)("div",{style:{fontSize:12},id:"preview-sharing-box",className:b.c.GUIDE_2309_CLICK_SHARE,children:(0,y.jsxs)("div",{className:A()("share-menu-wrapper",{fill:Ut==null?void 0:Ut.id,"show-animation":Kn}),onClick:gs,children:[(0,y.jsx)("span",{children:I18N.pPreviewToolbar.share}),Kn&&(0,y.jsx)("div",{className:A()("animation-list",{"is-hidding":Kn&&_s}),children:Array(12).fill(0).map((ns,Wn)=>(0,y.jsx)("div",{className:"circle circle-"+(Wn+1)},Wn))})]})})};var Co=e(3093),Tt=e(15668),mo=e(19418),jo=e(88223),Kt=e(41449),Ft=e(60482),nt=e(39271),Rt=e(36521),yt=e(83012),Jt=e(35195),vo=e(15336),Yo=e(6637),Ho=e(36820),kt=e(67531),Ze=e(40500),it=e(8580),st=e(59844),dt=e(62048);const Ot=N.Ay.header.withConfig({displayName:"styles__StyledPreviewToolbar",componentId:"sc-1jkr5iz-0"})(["position:absolute;display:flex;align-items:center;z-index:",";background:",";height:48px;width:100%;box-shadow:0 1px 0 ",";padding:0 8px;transition:all 0.3s ease-in-out;color:",";opacity:1;pointer-events:auto;top:0px;&.isHidden{opacity:0;> *{pointer-events:none;}}&.isEmbedV2NotFull{height:32px;.toolbar-left svg.modao-logo{width:51px;height:30px;}}.toolbar-left{.modao-logo{margin-left:8px;}.toolbar-logo-icon{width:32px;height:32px;margin-right:8px;path{fill:",";}}}&.isHTMLZip > .toolbar-left{.modao-logo{margin-right:13px}}.svg-icon{color:",';> *{fill:currentColor;}}.edit-btn{display:flex;align-items:center;justify-content:center;width:58px;max-height:32px;.btn-icon-text-container{font-weight:500;}}&.isCommunity,&.isEmbedV2{.toolbar-left svg.modao-logo{cursor:default;}}&.dark{.toolbar-right{.settings-dropdown,.fullscreen-box{svg{color:#f2f4f5 !important;}}.ZoomButton{&.isBorder,&.isEmbedV2Preview.NotFullScreen > div:first-child{outline:1px solid #454647;}}}}.toolbar-right{font-size:18px;display:flex;align-items:center;justify-content:flex-end;height:100%;&.toolbar-right-abar-import{padding-right:78px;}.new_version_artboard_guide{margin-right:15px;text-decoration:none;display:flex;align-items:flex-end;img{width:27px;}span{margin-bottom:2px;margin-left:6px;font-size:14px;line-height:16px;color:#FFFFFF;line-height:17px;background:linear-gradient(90.17deg,#FF6D20 4.49%,#FC1616 44.72%,#FC8D16 97.02%,#FCE516 158.98%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;}}.preview-seeting{width:21px;height:22px;}.login{margin-right:6px;&:lang(en){width:80px;}}.signup{margin-right:6px;width:96px;background:linear-gradient(230.47deg,#FFA41C -0.87%,#FE4141 25.89%,#F4153E 77.87%,#FF27C3 97.94%),#E73828;&:hover:not([class*="is-disabled"]){color:#d9d9d9;background:linear-gradient(230.47deg,#FFA41C -0.87%,#FE4141 25.89%,#F4153E 77.87%,#FF27C3 97.94%),#E73828;}&:active:not([class*="is-disabled"]){color:#d9d9d9;background:linear-gradient(230.47deg,#FFA41C -0.87%,#FE4141 25.89%,#F4153E 77.87%,#FF27C3 97.94%),#E73828;}&:lang(en){width:120px;}}.to-share{width:32px;height:32px;cursor:pointer;font-size:12px;.svg-icon{width:32px;height:32px;}}.share-menu-wrapper{display:flex;align-items:center;height:32px;padding:0 15px;font-weight:500;background:',";border:1px solid ",";border-radius:6px;font-size:13px;color:",";transition:all 0.2s ease-in-out;white-space:nowrap;cursor:pointer;&.fill{background:",";border:none;color:#fff;&:hover{background:",";}&:active{background:",";}}&:not(.fill):hover{color:",";background:",";border:1px solid ",";&:hover:not(.disabled){background:",";border:1px solid ",";&:lang(en){border:1px solid #000;}}&:active:not(.disabled){background:",";border:1px solid ",";&:lang(en){border:1px solid #000;}}}}.share-menu-wrapper.show-animation{",";}a,.svg-icon{&:active,&.active{cursor:pointer;}}label.Dropdown:not(:global(.is-disabled)){&:hover{.svg-icon{color:#415058;}}}span.share-icon:hover{color:",";}.full-screen-button{width:32px;height:32px;border-radius:6px;&.small{width:24px;height:24px;align-items:center;.svg-icon{width:24px;height:24px;}}svg.svg-icon{width:32px;height:32px;}}.ZoomButton{&.isBorder{outline:1px solid #e5e5e5;border-radius:3px;margin:0 6px;& > div:first-child{width:71px;height:28px;.zoom-main > .zoom-box{.zoom-scale{font-size:13px;font-weight:400;}.zoom-arrow{width:7px;margin-left:12px;}}}}&.isEmbedV2Preview{&.NotFullScreen{margin:0 4px;& > div:first-child{width:48px;height:20px;outline:1px solid #e5e5e5;border-radius:2px;.zoom-main > .zoom-box{width:100%;height:100%;.zoom-scale{flex:1;margin-left:2px;font-size:13px;font-weight:400;transform:scale(0.8);}.zoom-arrow{width:5px;margin-left:0;margin-right:6px;}}}}.mac,.others{top:132%;}}&.isCommunity{.mac,.others{top:132%;}}}.close{margin-left:8px;width:24px;height:24px;cursor:pointer;color:",";&:hover{color:",";}&:active{color:",";}}.settings-dropdown{margin-left:6px;cursor:pointer;.isEmbedV2Preview.toolbar-icon-item{width:38px;height:32px;svg{width:32px;height:32px;}&.NotFullScreen{width:28px;height:24px;svg{width:24px;height:24px;}}}}.preview-view-icon{width:32px;}.comment{cursor:pointer;width:32px;height:32px;border-radius:6px;margin-right:6px;&.disabled{cursor:not-allowed;.svg-icon{color:",";}}.svg-icon{display:flex;width:32px;height:32px;justify-content:center;align-items:center;gap:10px;flex-shrink:0;color:",";[fill]{fill:currentColor;stroke:none;}[stroke]{stroke:currentColor;fill:none;}}}}a{&[disabled]{cursor:not-allowed;color:#c8cdd0 !important;> span{color:#c8cdd0 !important;}}}.back-icon{display:flex;width:32px;height:100%;justify-content:center;align-items:center;margin-left:-8px;margin-right:-6px;color:",";font-size:16px;cursor:pointer;transition:all 0.1s linear;> div{width:32px;height:32px;}}.line{height:20px;width:1px;background:",";margin:0 25px;}.toolbar-left{flex-basis:510px;flex-shrink:0;}.toolbar-right{flex-basis:510px;flex-shrink:0;}.toolbar-left{position:relative;display:flex;height:100%;align-items:center;.modao-logo{height:32px;cursor:pointer;margin-right:","px;g{path:nth-child(2){fill:","}path:nth-child(3){fill:","}}}.mockitt-logo{width:106px;height:22px;cursor:pointer;margin-left:8px;}div.divider{border-left:1px solid ",";margin:0px 16px 0px 16px;height:24px;}.toolbar-item{width:38px;height:32px;border-radius:4px;}.arrow-back{margin-right:10px;}.project-name{padding:6px 0px;margin-right:12px;align-items:center;gap:10px;font-size:13px;font-weight:bold;color:",";max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;}}.toolbar-center{flex:1;max-width:calc(100% - 596px);min-width:334px;height:100%;}.toolbar-main{position:relative;height:100%;display:flex;align-items:center;justify-content:center;flex:1;.toolbar-center-dropDown{height:16px;width:16px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:4px;margin-left:4px;.svg-icon{color:",";width:7px;height:4px;}&.is-open,&:hover{.toolbar-dropDown{margin-top:5px;transition:margin-top ease-in-out 0.2s;}}}.project-name{font-size:14px;font-weight:500;color:",";overflow:hidden;text-overflow:ellipsis;white-space:nowrap;user-select:text;text-align:center;}.update{display:flex;align-items:center;justify-content:center;margin-right:4px;width:24px;height:24px;border-radius:4px;&:hover{background:",";}&:active{background:",";}.unRead{position:relative;top:auto;right:auto;}svg.svg-icon{width:14px;height:14px;cursor:pointer;color:#DE1E00;path{fill:#DE1E00;}}}}.preview-toolbar-nav{display:flex;height:100%;background:#fff;border-bottom:none;justify-content:space-between;.nav-icon{.svg-icon{width:28px;height:28px;}&:hover{color:#415058;}}.active .nav-icon,.active .nav-label{color:#f55d54;transition:none;.svg-icon{color:",";}}> li{width:260px;font-size:14px;border-bottom:2px solid transparent;&:not(.active){&:hover{overflow:visible;.icon{color:#415058;}}}}.background-cube{border:none;height:calc(100% + 1px);&::after{content:'';position:absolute;left:18px;bottom:-1px;width:52px;border-top:2px solid #f55d54;}}}.toolbar-main-wrapper{position:relative;display:flex;justify-content:space-around;width:200px;height:100%;}@media only screen and (max-width:985px){.toolbar-left{.project-name{max-width:140px;}}.toolbar-right{label.Dropdown:first-child,span.line:nth-child(2){display:none;}#preview-sharing-box{.share-menu-wrapper{font-size:12px;}}}}@media only screen and (max-width:1082px){&.isEmbedV2NotFull{.toolbar-left,.toolbar-right{flex-basis:calc(50% - 75px);}}}"],xt=>xt.isEmbedV2?198:1e3,xt=>xt.theme.color_bg_white,xt=>xt.theme.color_bg_border_01,xt=>xt.theme.color_text_L1,xt=>xt.theme.color_text_L1,xt=>xt.theme.color_text_L1,xt=>xt.theme.color_bg_white,xt=>xt.theme.color_bg_border_02,xt=>xt.theme.color_text_L1,xt=>xt.theme.color_btn_primary_normal,xt=>xt.theme.color_btn_primary_hover,xt=>xt.theme.color_btn_primary_clicked,xt=>xt.theme.color_text_L1,xt=>xt.theme.color_bg_white,xt=>xt.theme.color_bg_border_02,xt=>xt.theme.color_btn_secondary_hover,xt=>xt.theme.color_bg_border_02,xt=>xt.theme.color_btn_secondary_active,xt=>xt.theme.color_bg_border_02,dt.e,xt=>xt.theme.color_text_L2,xt=>xt.theme.color_text_L2,xt=>xt.theme.color_text_L1,xt=>xt.theme.color_text_L1,xt=>xt.theme.color_text_disabled01,xt=>xt.theme.color_text_L1,xt=>xt.theme.color_text_L3,xt=>xt.theme.color_bg_canvas,xt=>xt.isEmbedV2||xt.isSquare?13:0,xt=>xt.theme.color_text_L1,xt=>xt.theme.color_text_L1,xt=>xt.theme.color_bg_border_02,xt=>xt.theme.color_text_L1,xt=>xt.theme.color_text_L1,xt=>xt.theme.color_text_L1,xt=>xt.theme.color_btn_secondary_active,xt=>xt.theme.color_btn_secondary_active,xt=>xt.theme.color_primary_brand01);class Ct extends o.PureComponent{constructor(){super(...arguments),(0,C.A)(this,"handleTabChange",Ut=>{const{dispatch:Wo}=this.props;switch(Wo({type:"entry:preview:select",payload:{toolbarActiveItem:Ut}}),Ut){case"comment":{Wo({type:"entry:comment:toggle"});break}}}),(0,C.A)(this,"handleCloseGuide",()=>{(0,Rt.a0)("new_version_artboard_guide_has_shown",!0,Rt.qW.Boolean)}),(0,C.A)(this,"handleExitFullScreen",async()=>{Jt.A.isFullscreen&&await Jt.A.exit(),this.props.dispatch({type:"entry:exit:fill-screen-mode"})}),(0,C.A)(this,"handleEnterFullScreen",()=>{this.props.dispatch({type:"entry:enter:full-screen-mode"})}),(0,C.A)(this,"handleBackReadOnly",()=>{const{sharing:Ut}=this.props,{page_begin:Wo,canvas_begin:qo,screen_visible_list:sn}=Ut,Kn=(0,Ft.Uh)(sn),ds=(0,Kt.H)({search:"",pathname:location.pathname}),_s=(0,nt.s_)({accessToken:ds,viewMode:"read_only",pageId:Wo,canvasId:qo,selection:Kn});(0,vo.JW)(_s,"_self")}),(0,C.A)(this,"handleClickOutSide",Ut=>{let{target:Wo}=Ut;const qo=document.querySelector("#simulator"),sn=document.querySelector("#mb-toolbar.preview-toolbar"),Kn=document.querySelector(".preview-footer-toolbar"),ds=document.querySelector(".canvas-menu-container"),_s=document.querySelector(".context-menu-mask"),Ls=document.querySelector("#app-sharing");qo!=null&&qo.contains(Wo)||sn&&sn!=null&&sn.contains(Wo)||Kn&&Kn!=null&&Kn.contains(Wo)||ds&&ds!=null&&ds.contains(Wo)||_s&&_s!=null&&_s.contains(Wo)||Ls&&Ls!=null&&Ls.contains(Wo)||this.props.dispatch({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!0}})}),(0,C.A)(this,"handleMouseLeave",Ut=>{let{target:Wo}=Ut;const qo=document.querySelector(".context-menu-mask"),sn=document.querySelector("#preview-sharing-box"),Kn=document.querySelector("#app-sharing"),ds=document.querySelector(".sharingBoxV2"),_s=document.querySelector(".preview-zoom-options-panel"),Ls=document.querySelector(".ZoomButton"),gs=document.querySelector(".toolbar-center-dropDown-menu");qo&&qo!=null&&qo.contains(Wo)||(Kn||ds)&&sn!=null&&sn.contains(Wo)||_s&&Ls!=null&&Ls.contains(Wo)||gs&&gs!=null&&gs.contains(Wo)||this.props.dispatch({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!0,isSetTimeout:!0}})}),(0,C.A)(this,"handleToggleMinimized",()=>{const{dispatch:Ut,isMinimized:Wo,activeCanvasKey:qo,activePageKey:sn}=this.props;Ut({type:"entry:preview-setting:toggle:isMinimized"});const Kn=setTimeout(()=>{(0,Yo.cL)(qo),(0,Yo.fl)(sn),clearTimeout(Kn)},50);Wo?(0,E.v)({operation_type:E.$.OpenPageList}):(0,E.v)({operation_type:E.$.ClosePageList})}),(0,C.A)(this,"onClickLogo",()=>{var Ut;const{isSquare:Wo,isEmbedV2:qo,isHTMLZip:sn}=this.props;Wo||qo||(setTimeout(()=>(0,E.v)({operation_type:E.$.Logo}),0),sn?location.href="https://modao.cc/":(Ut=MB)!=null&&(Ut=Ut.user)!=null&&Ut.id?location.href=location.origin+"/dashboard/me":location.href=location.origin)}),(0,C.A)(this,"handleGoEdit",()=>{if((0,it.BG)())(0,it.sg)(it.ZW.enterEdit);else{const{project:Ut,sharing:Wo}=this.props,qo=new URLSearchParams(location.search),sn=(qo.get("selection")?"&selection="+qo.get("selection"):"")+(qo.get("screen")?"&screen="+qo.get("screen"):"")+(qo.get("canvasId")?"&canvasId="+qo.get("canvasId"):""),Kn=MB.canEditByCurrentUser?(0,Kt.Dw)("design/"+Ut.cid):(0,Kt.Dw)(Wo.access_token+"/sharing?view_mode=read_only"+sn);(0,Rt.a0)(h.NF+"-"+Ut.cid,qo.get("screen")+","+(qo.get("canvasId")||""),Rt.qW.String),location.href=""+location.origin+Kn}(0,Ho.kH)("model_change",{change_type:"\u6F14\u793A\u6A21\u5F0F\u5207\u6362\u7F16\u8F91\u6A21\u5F0F"})}),(0,C.A)(this,"handleSwitchPreviewViewMode",Ut=>{MB.action("entry:handle-tool:preview:view_mode",{previewViewMode:Ut})}),(0,C.A)(this,"handleToggleComment",()=>{const{sharing:Ut,dispatch:Wo}=this.props;(Ut==null?void 0:Ut.comment_permission)==="off"||Wo({type:"entry:comment:toggle"})})}get isShowNewVersionArtboardGuide(){const{toolbarActiveItem:Ut,isShowNewVersionArtboardGuide:Wo}=this.props;return Ut==="inspect"&&Wo}componentDidMount(){const{isSquare:Ut,isEmbedV2:Wo,isHTMLZip:qo,dispatch:sn,isFromAbar:Kn}=this.props;Kn&&sn({type:"entry:preview-setting:toggle:isMinimized"}),!(Ut||qo||Wo)&&setTimeout(()=>{(0,yt.jo)()||this.props.dispatch({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!0,isSetTimeout:!0}})},4e3)}render(){var Ut,Wo,qo;const{project:sn,dispatch:Kn,isHTMLZip:ds,isSquare:_s,isEmbedV2:Ls,isFullScreenMode:gs,theme:ns,user:Wn,isHiddenToolBar:Do,previewViewMode:Go,isInCommentMode:an,sharing:Mo}=this.props,{isShowNewVersionArtboardGuide:Cn,onClickLogo:Tn}=this,cn=sn.name||"",bs=Ls&&((Ut=new URLSearchParams(location.search))==null?void 0:Ut.get("from"))==="launch",Vn=Ls&&!gs||_s&&!Ze.isFullscreen,ti=(0,h.Y8)(ns),oi=ENV.IS_WONDER_SHARE?(0,y.jsx)("img",{onClick:this.onClickLogo,className:(0,h.ot)()+"-logo",src:ti}):(0,y.jsx)(p.C,{className:"toolbar-logo-icon",name:"toolbar/modao/logo",onClick:this.onClickLogo});return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(Ot,{id:"mb-toolbar",className:A()("preview-toolbar",""+ns,{"is-fullscreen-mode":gs,isEmbedV2NotFull:Ls&&!gs,isEmbedV2:Ls,isCommunity:_s,isHTMLZip:ds,isHidden:Do}),isEmbedV2:Ls,isSquare:_s,onMouseEnter:()=>Kn({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!1}}),onMouseLeave:this.handleMouseLeave,children:[(0,y.jsxs)("div",{className:"toolbar-left",children:[bs?(0,y.jsx)(k.A,{className:A()("arrow-back"),onClick:this.handleBackReadOnly,name:"common/back"}):oi,Vn&&(0,y.jsx)(xe,{isEmbedV2NotFull:Ls&&!gs}),(Ls||_s?gs:!0)&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("span",{className:A()("project-name"),children:(0,jo.qk)(cn)}),MB.canEditByCurrentUser&&!(Ls||_s)&&(0,y.jsx)(Tt.Oc,{className:"edit-btn "+b.c.GUIDE_NOVICE_2309_TIP_1,type:"secondary",size:"common",onClick:this.handleGoEdit,children:I18N.pPreviewToolbar.edit})]})]}),(0,y.jsx)("div",{className:"toolbar-center",children:(!_s||sn.category==="project_basic"&&gs)&&(0,y.jsx)("div",{className:"toolbar-main",children:(0,y.jsx)(kt.D,{size:Ls&&!gs?"small":"normal",isShowInspect:!Ls&&!_s,mode:Go,onSwitch:this.handleSwitchPreviewViewMode})})}),(0,y.jsxs)("div",{className:A()("toolbar-right",{"toolbar-right-abar-import":(0,it.Zt)()}),children:[!ENV.IS_ON_PREMISES&&Cn&&(0,y.jsxs)("a",{onClick:this.handleCloseGuide,className:"new_version_artboard_guide",href:"/feature/aboard/index.html",target:"_blank",children:[(0,y.jsx)("img",{src:"/mb-workspace/images/preview/toolbar-artboard-guide.png"}),(0,y.jsx)("span",{children:"\u4E0A\u65B0\uFF01\u5F00\u53D1\u6807\u6CE8\u66F4\u7CBE\u51C6\uFF0C\u62A2\u5148\u4F53\u9A8C"})]}),!((Wo=MB)!=null&&(Wo=Wo.user)!=null&&Wo.id)&&!ds&&!ENV.IS_ON_PREMISES&&!_s&&!Ls?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Tt.tA,{className:"login",onClick:()=>MB.global.popupHelper.loginAsync({onConfirm:()=>{setTimeout(()=>location.reload(),50),(0,vo.JW)("/dashboard/me","_blank","noreferrer"),ENV.IS_WONDER_SHARE&&(0,Ho.lW)("Readonly-Top-Signin")},type:"signin",source:"proto-preview"}),children:I18N.pPreviewToolbar.login}),(0,y.jsx)(Tt.jn,{className:"signup",onClick:()=>MB.global.popupHelper.loginAsync({onConfirm:()=>{setTimeout(()=>location.reload(),50),(0,vo.JW)("/dashboard/me","_blank","noreferrer"),ENV.IS_WONDER_SHARE&&(0,Ho.lW)("Readonly-Top-Start for Free")},type:"signup",source:"proto-preview"}),children:I18N.pPreviewToolbar.signup}),(0,y.jsx)(Co.A,{}),(0,y.jsx)(Pt,{}),gs?(0,y.jsx)(r.A,{direction:"down",content:I18N.pPreviewToolbar.exit_fullscreen,children:(0,y.jsx)(k.A,{className:A()("full-screen-button",{small:Ls&&!gs}),name:"design/collapse_screen",onClick:this.handleExitFullScreen})}):(0,y.jsx)(r.A,{direction:"down",content:I18N.pPreviewToolbar.fullscreen,children:(0,y.jsx)(k.A,{className:A()("full-screen-button",{small:Ls&&!gs}),name:"design/fullscreen",onClick:this.handleEnterFullScreen})})]}):(0,y.jsxs)(y.Fragment,{children:[!ds&&!Ls&&!_s&&((qo=MB)==null||(qo=qo.user)==null?void 0:qo.id)&&(0,y.jsx)(u.A,{svgIconName:"design/preview/comment",active:an,className:"comment",disabled:(Mo==null?void 0:Mo.comment_permission)==="off",toolTipName:(0,st.Qc)("comment"),direction:"down",toolTipDistance:8,onClick:this.handleToggleComment}),!(ds||Ls||_s||(0,it.BG)())&&(0,y.jsx)(go,{dispatch:Kn,user:Wn}),(0,y.jsx)(Co.A,{}),(0,y.jsx)(Pt,{}),gs?(0,y.jsx)(r.A,{direction:"down",content:I18N.pPreviewToolbar.exit_fullscreen,children:(0,y.jsx)(k.A,{className:A()("full-screen-button",{small:Ls&&!gs}),name:"design/collapse_screen",onClick:this.handleExitFullScreen})}):(0,y.jsx)(r.A,{direction:"down",content:I18N.pPreviewToolbar.fullscreen,children:(0,y.jsx)(k.A,{className:A()("full-screen-button",{small:Ls&&!gs}),name:"design/fullscreen",onClick:this.handleEnterFullScreen})})]})]})]}),(0,y.jsx)(mo.A,{target:document,onPointerDown:(0,mo.t)(this.handleClickOutSide,{capture:!0})})]})}}const wo=(0,g.Mz)([l.bF,l.Br,l.PL,l.Ph,l.m5,l.HW,l.H9,l.kM,l.Pf,l.UB,l.mf,l.Zr,l.tp,mt.sI],(xt,Ut,Wo,qo,sn,Kn,ds,_s,Ls,gs,ns,Wn,Do,Go)=>{let{isHTMLZip:an,isSquare:Mo,isEmbedV2:Cn}=xt,{isShowNewVersionArtboardGuide:Tn}=ds,{activePageKey:cn,activeCanvasKey:bs}=ns;return{project:Wo,isHTMLZip:an,isSquare:Mo,isEmbedV2:Cn,isFullScreenMode:qo,toolbarActiveItem:Ut,theme:sn,user:Kn,isShowNewVersionArtboardGuide:Tn,isHiddenToolBar:_s,isMinimized:Ls,sharing:gs,activePageKey:cn,activeCanvasKey:bs,isFromAbar:Wn,previewViewMode:Do,isInCommentMode:Go}}),ln=(0,m.Ng)(xt=>wo(xt))(Ct);class Io extends o.PureComponent{render(){const{isPanelPreviewMode:Ut,isPreviewCombo:Wo,isQuickPreview:qo,...sn}=this.props;return(0,y.jsx)(y.Fragment,{children:qo?(0,y.jsx)(J,{...sn}):Ut||Wo?(0,y.jsx)(ft,{...sn}):(0,y.jsx)(ln,{})})}}const Lo=(0,g.Mz)([l.KR,l.hM,l.k6],(xt,Ut,Wo)=>({isPanelPreviewMode:xt,isPreviewCombo:Ut,isQuickPreview:Wo})),Ao=(0,m.Ng)(Lo)(Io)},12201:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>Ve});var o=e(72605),m=e(91560),g=e(74059),l=e(51044),C=e(86634),T=e.n(C),A=e(37931),k=e(2123),p=e(22813),r=e(70522),x=e(21676);const f=x.Ay.div.withConfig({displayName:"styles__StyledMainContent",componentId:"sc-yjqvb1-0"})(["flex:1;position:relative;width:100%;height:100%;pointer-events:none;"]);var u=e(57464);class b extends l.PureComponent{constructor(){super(...arguments),(0,g.A)(this,"handleResize",()=>{const We=document.querySelector("#preview_scrollBar_viewport");if(!We)return;const{width:ze,height:ft,left:mt,top:i}=We.getBoundingClientRect();this.props.dispatch({type:"preview:scrollbar:viewport",payload:{width:ze,height:ft,left:mt,top:i}})})}componentDidMount(){this.handleResize()}render(){return(0,u.jsx)(f,{id:"preview_scrollBar_viewport",children:(0,u.jsx)(r.A,{onResize:this.handleResize})})}}var h=e(85880),E=e(63231),N=e(27683),z=e(75833),S=e(4578),_=e(73387),y=e(63686),a=e(60185),$=e(19418),ce=e(40432),de=e(35078);const fe=x.Ay.div.withConfig({displayName:"styles__StyledSharingManager",componentId:"sc-2qoxmh-0"})(["min-width:376px;background:",";color:",";position:absolute;transform:",";top:48px;border-radius:8px;border:1px solid ",";box-shadow:",";overflow:hidden;cursor:auto;z-index:100;&.isNotLogined{right:-88px;}"],Ne=>Ne.theme.color_bg_white,Ne=>Ne.theme.color_text_L2,Ne=>Ne.isLogined?"translateX(-80%)":"translateX(-48%)",Ne=>Ne.theme.color_bg_border_02,Ne=>Ne.theme.shadow_5),se=(0,y.Mz)([m.O4,m.H5,m.HW,m.wA,m.UB],(Ne,We,ze,ft,mt)=>({theme:Ne,isShowSharingManager:We,currentUser:ze,currentOrg:ft,currentProjectShare:mt}));function J(){var Ne;const{theme:We,isShowSharingManager:ze,currentUser:ft,currentProjectShare:mt,currentOrg:i}=(0,o.d4)(Tt=>se(Tt)),gt=!!((Ne=MB.user)!=null&&Ne.id),Je=MB.currentProject,Pt=(0,o.wA)(),[bt,qt]=(0,l.useState)(void 0),pt=Tt=>{const mo=document.elementFromPoint(Tt.clientX,Tt.clientY),jo=document.querySelector("#preview-sharing-box"),Kt=Tt.target.closest("#preview-sharing-box");document.querySelector("#IBOT_MODAL_ROOT").contains(mo)||Kt!==null||jo.contains(mo)||Tt.target.closest(".context-menu-mask")!==null||Tt.target.closest(".sharing--drop-canvas-list")!==null||Tt.target.closest(".dropmenu-no-exit")!==null||Pt({type:"entry:preview:toggle:sharingManager"})},{screenDataMap:$t,screenTreeData:go}=(0,de.tb)(),Co={pageAttrMap:$t,pageKeyList:Object.keys($t),treeData:go};return(0,l.useEffect)(()=>{ze&&qt(document.getElementById("preview-sharing-box"))},[ze,bt]),!bt||!ze?null:(0,a.createPortal)((0,u.jsxs)(fe,{id:"app-sharing",isLogined:gt,className:T()({isNotLogined:!gt}),children:[(0,u.jsx)(ce.n,{theme:We,user:ft,project:Je,hostType:"proto",org:i,screenMetaList:Co,hostSharingData:mt}),(0,u.jsx)($.A,{target:document,onClick:(0,$.t)(pt,{capture:!0})})]}),bt)}var ve=e(60310),D=e(37991),R=e(78647),V=e(39719),O=e(35195),Ce=e(2831),ae=e(18213),q=e(8580),K=e(33520),xe=e(15335),te=e(40942);const H=x.Ay.div.withConfig({displayName:"styles__StyledApp",componentId:"sc-17zn461-0"})(["",";&{width:100%;height:100%;display:flex;flex-direction:column;background:",";a{&.link-highlight,.link-highlight{background:#BAD7FB;}}.svg-icon{",";}.preview-content-container{position:relative;flex:1;display:flex;overflow:hidden;.center-main{position:relative;flex:1;.preview-footer-toolbar{bottom:0;opacity:1;transition:all 0.3s ease-in-out;&.hidden{opacity:0;}}}}&.full-screen{#preview_scrollBar_viewport{transition:opacity 0.5s ease-in-out;}}.download-client-tip{display:flex;justify-content:space-around;align-items:center;position:absolute;left:50%;bottom:26px;transform:translate(-50%);padding:0 12px 0 10px;height:34px;border-radius:22px;background:#fff;box-shadow:0 -2px 30px 0 rgba(39,54,78,0.11);.download-text{color:#415058;margin:0 10px;}span{color:#415058;a{color:",";}}.download-client-tip-icon{font-size:22px;color:",";}.download-client-close-icon{cursor:pointer;color:#c8cdd0;&:hover{color:#8d9ea7;}}}.marign-top-20{margin-top:20px;}&.is-offline-mode{.screen-actions .viewmode,.download-client-tip{display:none;}.event-gift{display:none;}.preview-sub-toolbar{.mode{min-width:initial;.picker{display:none;}}.param{margin-left:0;}}}&.is-uichina{header{background:transparent;.toolbar-main{order:1;flex:unset;flex-basis:240px;.toolbar-main-wrapper{display:none;flex:unset;}}.toolbar-left{flex:1;order:2;justify-content:center;.project-name{text-align:center;margin-left:0;}}.toolbar-right{order:3;}}}@media only screen and (max-width:985px){&.is-uichina{header{.toolbar-main{flex-basis:140px;padding:0;}}}}}"],te.c,Ne=>Ne.theme.color_bg_canvas,xe.T,Ne=>Ne.theme.color_primary_brand01,Ne=>Ne.theme.color_polyline_normal),re=(0,x.DU)([".context-menu-mask{z-index:1000;}"]);var be=e(40778);class Le extends l.PureComponent{constructor(){super(...arguments),(0,g.A)(this,"abarHandleOnMessage",We=>{(0,q.cS)(We,this.props.dispatch)}),(0,g.A)(this,"handleFullScreenChange",()=>{if(O.A.isFullscreen){(0,be.oK)()&&setTimeout(()=>MB.commonGuideHelper.tryToShowGuide(R.c.INTER_SWITCHABLE_VIEW_MODE_PV_TOGGLE_PANE_BTN),1e3);return}this.props.dispatch({type:"entry:exit:fill-screen-mode"}),this.props.dispatch({type:"entry:preview-setting:restore:leftrightpane"}),MB.commonGuideHelper.closeGuide(R.c.INTER_SWITCHABLE_VIEW_MODE_PV_TOGGLE_PANE_BTN),MB.commonGuideHelper.markGuideAsRead(R.c.INTER_SWITCHABLE_VIEW_MODE_PV_TOGGLE_PANE_BTN)})}componentDidMount(){O.A.on("change",this.handleFullScreenChange),(0,q.BG)()&&(0,q.sg)("currentTheme",{theme:this.props.theme}),(0,q.BG)()&&window.addEventListener("message",this.abarHandleOnMessage,!1)}componentWillUnmount(){O.A.off("change",this.handleFullScreenChange),(0,q.BG)()&&window.removeEventListener("message",this.abarHandleOnMessage,!1)}preventDefault(We){We.preventDefault()}render(){var We;const{previewOptions:ze,previewSetting:ft,user:mt,onCloseModal:i,isHiddenToolBar:gt,isPanelPreviewMode:Je,isQuickPreview:Pt,onLunch:bt,dispatch:qt}=this.props,{isMobile:pt,isEmbedV1:$t,isHTMLZip:go,isUIChina:Co,isForum:Tt}=ze;if(pt||$t){const{appVersion:yt}=ft,Jt=!!yt;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(ve.A,{}),Jt&&(0,u.jsx)(E.A,{}),(0,u.jsx)(N.A,{}),(0,u.jsx)(V.Ay,{})]})}const{isFullScreenMode:mo}=ft,jo=!Je&&!Pt,Kt=!Je&&!Pt,Ft=!Je&&!Pt,nt=T()("preview-app",{"is-offline-mode":go,"is-uichina":Co||Tt,"full-screen":mo}),Rt=!Je&&!Pt&&!ENV.IS_ON_PREMISES&&!go&&!(mt!=null&&mt.id||(We=MB)!=null&&(We=We.user)!=null&&We.id);return(0,u.jsxs)(H,{className:nt,onContextMenu:this.preventDefault,children:[Ft&&(0,u.jsx)(ae.Ad,{sheet:Ce.t,viewMode:"device"}),(0,u.jsx)(z.A,{onCloseModal:i,onLunch:bt}),(0,u.jsxs)("div",{id:"preview-content-container",className:"preview-content-container",children:[Kt&&(0,u.jsx)(k.A,{}),(0,u.jsxs)("div",{className:"center-main",children:[(0,u.jsx)(h.A,{}),!Pt&&!Je&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(b,{dispatch:qt}),(0,u.jsx)("div",{onMouseEnter:()=>qt({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!1}}),onMouseLeave:()=>qt({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!0,isSetTimeout:!0}}),className:T()("preview-footer-toolbar",{hidden:gt}),children:(0,u.jsx)(D.A,{})})]})]}),jo&&(0,u.jsx)(p.A,{}),(0,u.jsx)(_.d,{})]}),(0,u.jsxs)("div",{className:"fixed_area",children:[Rt&&(0,u.jsx)(S.v,{}),(0,u.jsx)(J,{}),(0,u.jsx)(A.A,{}),!Je&&(0,u.jsx)(V.Ay,{})]}),(0,u.jsx)(N.A,{}),!Je&&!Pt&&(0,u.jsx)(K.r,{}),(0,u.jsx)(re,{})]})}}const Ve=(0,o.Ng)(Ne=>{const We=(0,m.ZR)(Ne),ze=(0,m.bF)(Ne),ft=(0,m.Br)(Ne),mt=(0,m.HW)(Ne),i=(0,m.m5)(Ne),gt=(0,m.KR)(Ne),Je=(0,m.k6)(Ne);return{user:mt,mode:ft,theme:i,previewOptions:ze,previewSetting:We,isHiddenToolBar:(0,m.kM)(Ne),isPanelPreviewMode:gt,isQuickPreview:Je}})(Le)},66778:(Et,ke,e)=>{"use strict";e.d(ke,{_:()=>Ja});var o=e(74059),m=e(51044),g=e(72605),l=e(1790),C=e(63686),T=e(15139),A=e(99059),k=e.n(A);const p=()=>new Date().getTime(),r=["mouseIn","mouseOut","left","right","up","down"],x=No=>No.some(ct=>r.includes(ct));class f{constructor(){this.coolDownTime=p(),this.coolDownInterval=200}isCoolDown(ct){if(ct===void 0&&(ct=[]),x(ct))return!0;const Mt=p()-this.coolDownTime;return this.coolDownTime+=Mt,Mt>this.coolDownInterval}resetCoolDown(){this.coolDownTime-=this.coolDownInterval}}var u=e(9376),b=e(91560),h=e(35592),E=e(97788),N=e(21840);const{Shake:z}=window;class S{constructor(ct,Mt,ht){(0,o.A)(this,"highTimer",null),(0,o.A)(this,"swipeDownTarget",null),(0,o.A)(this,"swipeDownTargetCanvas",null),(0,o.A)(this,"_isMobile",!1),(0,o.A)(this,"onMouseIn",oo=>this.prepareJump(oo,["mouseIn"])),(0,o.A)(this,"onMouseOut",oo=>this.prepareJump(oo,["mouseOut"])),this.store=ct,this.timerHandler=Mt,this.runnerController=ht,this.store=ct,this.timerHandler=Mt,this.eventBucket=new f,this.runnerController=ht}get isMobile(){return this._isMobile}set isMobile(ct){this._isMobile=ct}init(ct,Mt){if(!ct)return;const{isImmersive:ht,isMobile:oo=!1}=Mt||{};this.isMobile=oo;const uo=new(k()).Manager(ct);uo.set({touchAction:"auto",inputClass:(0,u.Fr)()?k().TouchInput:null});const So=new(k()).Tap({event:"singletap",interval:0}),zo=new(k()).Tap({event:"doubletap",taps:2}),en=new(k()).Swipe({event:"swipe",direction:k().DIRECTION_ALL,velocity:.05,threshold:10}),mn=new(k()).Pan({event:"pan",direction:k().DIRECTION_ALL,threshold:10}),jn=new(k()).Press({event:"press"});uo.add([zo,So]),uo.add([mn,en]),uo.add(jn),zo.recognizeWith(So),So.requireFailure(zo),mn.recognizeWith(en),uo.on("panstart",Nn=>{switch(this.prepareJump(Nn,["panstart"]),Nn.additionalEvent){case"panleft":this.prepareJump(Nn,["left"]);break;case"panright":this.prepareJump(Nn,["right"]);break;case"panup":this.prepareJump(Nn,["up"]);break;case"pandown":this.prepareJump(Nn,["down"]);break;default:break}}),uo.on("panend",Nn=>{this.prepareJump(Nn,["panend"])}),uo.on("press",Nn=>{this.prepareJump(Nn,["hold","longpress"])}),uo.on("doubletap",Nn=>{this.prepareJump(Nn,["dtap","dbclick"])}),uo.on("singletap",Nn=>{this.prepareJump(Nn,["tap","click"])}),new z({threshold:15}).start(),window.addEventListener("shake",Nn=>{this.shakeHandle(Nn,["shake"])}),ct.addEventListener("mousedown",Nn=>{this.dragPanelEventHandler(Nn,{isImmersive:ht,isMobile:oo}),Nn.button===2&&this.prepareJump(Nn,["rightClick"])}),this.hammertime=uo}initMouseEvent(ct){var Mt,ht;(Mt=ct.querySelectorAll(".mouseIn"))==null||Mt.forEach(oo=>{oo.removeEventListener("mouseenter",this.onMouseIn),oo.addEventListener("mouseenter",this.onMouseIn)}),(ht=ct.querySelectorAll(".mouseOut"))==null||ht.forEach(oo=>{oo.removeEventListener("mouseleave",this.onMouseOut),oo.addEventListener("mouseleave",this.onMouseOut)})}prepareJump(ct,Mt,ht){var oo,uo,So,zo;ht===void 0&&(ht=!0);const en=this.store.getState();if(this.runnerController.isPreventEvent||(0,h.sI)(en))return;const mn=this.timerHandler.getIsCanvasTimerFired();if(!this.eventBucket.isCoolDown(Mt)&&mn||!(ct!=null&&(oo=ct.target)!=null&&oo.closest))return;let jn=ct.target.closest(".clickable");if((uo=jn)!=null&&uo.classList.contains("wElbow")){var Oo;(Oo=ct.target)!=null&&(Oo=Oo.classList)!=null&&Oo.contains("line-path-ghost")||(jn=null)}if(Mt.includes("mouseOut")?jn=ct.target.closest(".mouseOut"):Mt.includes("mouseIn")&&(jn=ct.target.closest(".mouseIn")),!this.isMobile&&(Mt.includes("left")||Mt.includes("right")||Mt.includes("up")||Mt.includes("down")))if(jn){if(!this.swipeDownTarget||this.swipeDownTarget&&this.swipeDownTarget!==jn)return}else this.swipeDownTarget&&(jn=this.swipeDownTarget);const Nn=ct.target.closest(".panel");let es;Mt.includes("shake")?this.runnerController.currentCanvasAsMenuOrDrawerKey?es=document.querySelector("#pscreen"+this.runnerController.currentCanvasAsMenuOrDrawerKey):es=document.querySelector(".pcanvas.active"):es=ct.target.closest(".pcanvas"),Mt.includes("panstart")&&(jn&&(this.swipeDownTarget=jn),es&&(this.swipeDownTargetCanvas=es)),Mt.includes("panend")&&(this.swipeDownTarget=null,this.swipeDownTargetCanvas=null);const zt=(0,b.hM)(en),po=(0,b.Re)(en),Fo=(0,b.ub)(en);if(!this.isMobile&&!es&&!zt&&!Fo)if(Mt.includes("left")||Mt.includes("right")||Mt.includes("up")||Mt.includes("down"))this.swipeDownTargetCanvas&&(es=this.swipeDownTargetCanvas);else return;const Mn=(So=es)==null||(So=So.attributes["data-cid"])==null?void 0:So.value;if(this.runnerController.currentCanvasAsMenuOrDrawerKey&&!ct.target.closest(".overlay-runner")&&((zo=ct.target.closest(".pcanvas"))==null||(zo=zo.attributes["data-cid"])==null?void 0:zo.value)!==this.runnerController.currentCanvasAsMenuOrDrawerKey&&!x(Mt))return this.runnerController.closeMenu();if(Nn){if(this.basketEventHandler(ct,Mt))return}else if(jn){var Fn,ts,As,Is;const io=((Fn=jn.attributes["data-cid"])==null?void 0:Fn.value)||((ts=jn.attributes["data-container-cid"])==null?void 0:ts.value),Jo=(As=jn.attributes["data-panel_cid"])==null?void 0:As.value,Zo=(Is=jn.attributes["data-link_cid"])==null?void 0:Is.value;if(!Zo)return;const Un=Zo.split(","),On=T.A.getInteractionsOnWidgetByTrigger(this.store,io,Mt,Un);if(On)if(Jo){On.forEach(us=>{this.clickInBasketWidget(Jo,jn,us)});return}else On.forEach(us=>this.runnerController.j(us));return}if(Mn){const io=T.A.getInteractionsOnCanvasByTrigger(Mn,Mt);if(io&&io.length>0){io.forEach(Jo=>{(0,b.KR)(this.store.getState())&&[1,2].includes(Jo.interactionType)||this.runnerController.j(Jo)});return}}ht&&po&&!x(Mt)&&!ct.target.closest(".play-pause")&&!ct.target.closest(".audio-progress")&&!ct.target.closest(".video")&&!ct.target.closest(".annotate")&&this.highlightClickables(ct)}shakeHandle(ct,Mt){var ht;const oo=this.store.getState();if(this.runnerController.isPreventEvent||(0,h.sI)(oo))return;const uo=this.timerHandler.getIsCanvasTimerFired();if(!this.eventBucket.isCoolDown(Mt)&&uo)return;let So;Mt.includes("shake")&&(this.runnerController.currentCanvasAsMenuOrDrawerKey?So=document.querySelector("#pscreen"+this.runnerController.currentCanvasAsMenuOrDrawerKey):So=document.querySelector(".pcanvas.active"));const zo=(ht=So)==null||(ht=ht.attributes["data-cid"])==null?void 0:ht.value;if(zo){const en=T.A.getInteractionsOnCanvasByTrigger(zo,Mt);en&&en.length>0&&en.forEach(mn=>{(0,b.KR)(this.store.getState())||this.runnerController.j(mn)}),this.setupHiShake(zo)}}basketEventHandler(ct,Mt){const ht=this.store.getState(),oo=ct.target.closest(".clickable"),uo=ct.target.closest(".panel").closest(".tree-node"),So=uo.attributes["data-cid"].value;if(oo){var zo,en;const Oo=((zo=oo.attributes["data-cid"])==null?void 0:zo.value)||((en=oo.attributes["data-container-cid"])==null?void 0:en.value),Nn=oo.attributes["data-link_cid"].value.split(","),es=T.A.getInteractionsOnWidgetByTrigger(this.store,Oo,Mt,Nn),zt=uo.attributes["data-link_cid"].value.split(","),po=T.A.getInteractionsOnWidgetByTrigger(this.store,So,Mt,zt),Fo=es||po;if(Fo.length===0)return!1;let Mn=!1;if(Fo.forEach(Fn=>{uo===oo?this.runnerController.j(Fn):this.clickInBasketWidget(So,oo,Fn),Mn=!0}),Mn)return!0}if(this.runnerController.getIsBasketTimerFired(So))return!1;const jn=(0,b.mf)(ht)[So];if(jn){const Nn=T.A.getInteractionsOnCanvasByTrigger(jn,Mt)[0];if(Nn)return this.runnerController.j(Nn),!0}return!1}highlightClickables(ct){if(ct.target.closest(".canClickableHighWidget"))return;let Mt=[];if(ct.target.closest(".pcanvas.as-overlay")){var ht;const oo=(ht=Array.from(document.querySelectorAll(".pcanvas.as-overlay")).at(-1))==null?void 0:ht.querySelectorAll(".region");Mt=Array.from(oo)}else{const oo=document.querySelectorAll(".pcanvas.active .region"),uo=document.querySelectorAll(".pnoncanvas .region");Mt=Array.from(oo).concat(Array.from(uo))}Mt.forEach(oo=>{oo.style.display="block"}),this.highTimer=setTimeout(()=>{Mt.forEach(oo=>{oo.style.display="none"})},400)}setupPageGesture(ct){const Mt=T.A.getInteractionsOnCanvasByTrigger(ct,["left","right","up","down"]);if(Mt.length===0)return;const ht=[];Mt.forEach(So=>{const{interactionTrigger:zo}=So;switch(zo){case"left":case"right":{ht.indexOf("pan-y")===-1&&ht.push("pan-y");break}case"up":case"down":{ht.indexOf("pan-x")===-1&&ht.push("pan-x");break}}});const oo=ht.length?ht.join(" "):"auto";this.hammertime.touchAction.actions=oo;const uo=document.querySelector(".pcanvas.active .widgets");uo&&(uo.style.touchAction=oo)}dragPanelEventHandler(ct,Mt){let{isImmersive:ht,isMobile:oo}=Mt;if(oo||ht)return;const uo=ct.target.closest(".wMapView div"),So=ct.target.closest(".panel"),zo=uo||So;if(!zo||zo.clientWidth===zo.scrollWidth&&zo.clientHeight===zo.scrollHeight)return;const{clientX:en,clientY:mn}=ct,{scrollTop:jn,scrollLeft:Oo}=zo;let Nn=0;const es=po=>{po.preventDefault(),Nn++,zo.scrollTop=jn-(po.clientY-mn),zo.scrollLeft=Oo-(po.clientX-en)},zt=()=>{Nn>5&&this.eventBucket.isCoolDown(),document.removeEventListener("mousemove",es),document.removeEventListener("mouseup",zt)};document.addEventListener("mousemove",es),document.addEventListener("mouseup",zt)}clickInBasketWidget(ct,Mt,ht){if(this.runnerController.getIsBasketTimerFired(ct))return!1;this.runnerController.resetBasketTimerFlag(ct),this.runnerController.switchInteraction(ht)}setupHiShake(ct){sdkStore.walkHotItemSubtree2(ct,Mt=>{if(ct===Mt.key)return;const{key:ht}=Mt,oo=ht,uo=T.A.getTimerItaOnHiByTrigger(this.store,oo,"shake"),So=zo=>{zo.forEach(en=>{this.runnerController.switchInteraction(en)})};if(Mt.hotAttr.type==="wCarousel"){So(uo.filter(zo=>!zo.subKey));for(const zo of Mt.hotAttr.carousel.slides)So(uo.filter(en=>zo.linkCids.includes(en.subKey)))}else E.FE.includes(Mt.hotAttr.type)?(So(uo.filter(zo=>!zo.subKey)),(0,N.sV)(Mt.hotAttr.optionData,zo=>{So(uo.filter(en=>{var mn;return(mn=zo.data)==null?void 0:mn.linkCids.includes(en.subKey)}))})):So(uo)})}}var _=e(59742);class y{constructor(){this.timeoutMap=new Map}setTimeout(ct,Mt,ht){const oo=setTimeout(()=>{Mt(),this.clearTimeout(ct,Mt)},ht);return this.setToken(ct,Mt,oo),oo}clearTimeout(ct,Mt){const ht=this.getToken(ct,Mt);ht!==void 0&&(clearTimeout(ht),this.clearToken(ct,Mt))}clearTimeoutByKey(ct){const Mt=this.timeoutMap.get(ct);Mt!==void 0&&(Mt.forEach((ht,oo)=>this.clearTimeout(ct,oo)),this.timeoutMap.delete(ct))}clear(){this.timeoutMap.forEach((ct,Mt)=>this.clearTimeoutByKey(Mt))}setToken(ct,Mt,ht){let oo=this.timeoutMap.get(ct);oo===void 0&&(oo=new Map,this.timeoutMap.set(ct,oo)),oo.set(Mt,ht)}getToken(ct,Mt){const ht=this.timeoutMap.get(ct);if(ht)return ht.get(Mt)}clearToken(ct,Mt){const ht=this.timeoutMap.get(ct);ht&&ht.delete(Mt)}}var a=e(36875),$=e(96828);class ce{constructor(ct,Mt){(0,o.A)(this,"timerFired",!1),(0,o.A)(this,"basketTimerMap",{}),(0,o.A)(this,"hiTimerMap",{}),this.store=ct,this.runnerController=Mt,this.timeoutBucket=new y,this.runnerController=Mt,this.store=ct}resetCanvasTimerFlag(){this.timerFired=!1}getIsCanvasTimerFired(){return this.timerFired}getIsBasketTimerFired(ct){return this.basketTimerMap[ct]}resetBasketTimerFlag(ct){this.basketTimerMap[ct]=!1}clear(){this.timerFired=!1,this.basketTimerMap={},this.hiTimerMap={},this.timeoutBucket.clear()}setupCanvasTimers(ct,Mt){var ht;Mt||this.timeoutBucket.clear();const oo=this.store.getState(),uo=(0,b.KR)(oo),So=(0,b.Mo)(oo),zo=So&&((ht=sdkStore.getHotItem(So))==null?void 0:ht.hotAttr.bunch)==="rbPage";if(uo&&!zo){T.A.getInteractionsOnCanvasByTrigger(ct,["timer"]).forEach(en=>this._canvasTimer(en));try{const en=(0,_.QL)(ct),mn=en.pop(),jn=en.length===1?en.shift():(0,_.jd)(en),Oo=sdkStore.findAllTypeUnder(mn,"wBasket").filter(Nn=>{let{key:es,hotAttr:{refRBPageKey:zt,refContentKey:po}}=Nn;return sdkStore.isActiveKey(es)&&sdkStore.isActiveKey(zt)&&sdkStore.isActiveKey(po)});this.setupHiTimers(mn,jn),Oo.forEach(Nn=>{const es=(0,_.iK)([So,Nn.key],Nn.hotAttr.refContentKey);this.setupBasketTimers((0,_.iK)([So],Nn.key),es)})}catch(en){(0,a.Cp)(en,{extra:{canvasKey:ct,basketItem:So&&JSON.stringify(sdkStore.getHotItem(So))}})}}else T.A.getInteractionsOnCanvasByTrigger(ct,["timer"]).forEach(mn=>this._canvasTimer(mn)),this.setupHiTimers(ct),sdkStore.findAllTypeUnder(ct,"wBasket").filter(mn=>{let{key:jn,hotAttr:{refRBPageKey:Oo,refContentKey:Nn}}=mn;return sdkStore.isActiveKey(jn)&&sdkStore.isActiveKey(Oo)&&sdkStore.isActiveKey(Nn)}).forEach(mn=>{const jn=(0,_.iK)([mn.key],mn.hotAttr.refContentKey);this.setupBasketTimers(mn.key,jn)})}setupBasketTimers(ct,Mt){this.basketTimerMap[ct]=!1,T.A.getInteractionsOnCanvasByTrigger(Mt,["timer"]).forEach(uo=>{this._basketTimer(uo,ct)}),this.setupHiTimers(Mt,ct),sdkStore.findAllTypeUnder((0,_.OO)(Mt)?(0,_.QL)(Mt).pop():Mt,"wBasket").filter(uo=>{let{key:So,hotAttr:{refRBPageKey:zo,refContentKey:en}}=uo;return sdkStore.isActiveKey(So)&&sdkStore.isActiveKey(zo)&&sdkStore.isActiveKey(en)}).forEach(uo=>{const So=(0,_.j_)([ct,uo.key,uo.hotAttr.refContentKey]);this.setupBasketTimers((0,_.j_)([ct,uo.key]),So)})}setupHiTimers(ct,Mt){sdkStore.walkHotItemSubtree2(ct,ht=>{if(ct===ht.key)return;const{key:oo}=ht,uo=(0,_.OO)(ht.key)?oo:Mt?(0,_.j_)([Mt,oo]):oo;ht.hotAttr.type==="wBasket"||(this.timeoutBucket.clearTimeoutByKey(uo),this.hiTimerMap[uo]=!1);const So=T.A.getTimerItaOnHiByTrigger(this.store,uo),zo=en=>{en.forEach(mn=>{this._hiTimer(mn,uo)})};if(ht.hotAttr.type==="wCarousel"){zo(So.filter(en=>!en.subKey));for(const en of ht.hotAttr.carousel.slides)zo(So.filter(mn=>{var jn;return(jn=en.linkCids)==null?void 0:jn.includes(mn.subKey)}))}else E.FE.includes(ht.hotAttr.type)?(zo(So.filter(en=>!en.subKey)),(0,N.sV)(ht.hotAttr.optionData,en=>{zo(So.filter(mn=>{var jn;return(jn=en.data)==null||(jn=jn.linkCids)==null?void 0:jn.includes(mn.subKey)}))})):zo(So);if(ht.hotAttr.type==="wBasket")return $.NU})}_canvasTimer(ct){this.timeoutBucket.setTimeout(ct.key,()=>{this.timerFired||T.A.checkIfSkipInteraction(this.store,ct)||(this.timerFired=!0,this.runnerController.j(ct),this.timerFired=!1)},parseFloat(ct.timerDuration)*1e3)}_basketTimer(ct,Mt){this.timeoutBucket.setTimeout(Mt,()=>{this.timerFired||this.basketTimerMap[Mt]||(this.basketTimerMap[Mt]=!0,this.runnerController.switchInteraction(ct),this.basketTimerMap[Mt]=!1)},parseFloat(ct.timerDuration)*1e3)}_hiTimer(ct,Mt){this.timeoutBucket.setTimeout(Mt,()=>{this.timerFired||this.hiTimerMap[Mt]||(this.hiTimerMap[Mt]=!0,this.runnerController.switchInteraction(ct),this.hiTimerMap[Mt]=!1)},parseFloat(ct.timerDuration)*1e3)}}var de=e(28497);class fe{constructor(ct){this.store=ct,this.store=ct}setCurrentScreen(ct){this.store.dispatch({type:"preview:current:update:state",payload:{screenMeta:ct}})}reloadScreen(ct){this.store.dispatch({type:"entry:runner:reload:screen",payload:{activeCid:ct}})}backToPrevCanvas(ct){let{callback:Mt,noDuration:ht,transition:oo}=ct;this.store.dispatch({type:"entry:runner:back-to-prev-canvas",payload:{callback:Mt,noDuration:ht,transition:oo}})}updateScrollTop(ct,Mt){this.store.dispatch({type:"runner:update:scroll-top",payload:{screenMetaCid:ct,scrollTop:Mt}});const{isInCommentMode:ht}=this.store.getState().comment;ht&&this.store.dispatch({type:"entry:comment:update:view-container-style"})}updateScrollLeft(ct,Mt){this.store.dispatch({type:"runner:update:scroll-left",payload:{screenMetaCid:ct,scrollLeft:Mt}});const{isInCommentMode:ht}=this.store.getState().comment;ht&&this.store.dispatch({type:"entry:comment:update:view-container-style"})}resetScreenScrollTopMap(){this.store.dispatch({type:"runner:update:state",payload:{screenScrollTopMap:{}}})}clear(){this.store.dispatch({type:"entry:runner:cleanup:audio"}),this.store.dispatch({type:"runner:reset:state"}),this.store.dispatch({type:"container:comment:reset:state"}),this.store.dispatch({type:"preview:previewPanel:navindex",payload:{previewPanelNavIndex:0}})}openCanvas(ct){switch(ct.interactionType){case de.O2.LinkToCanvas:{const Mt=parseFloat(ct.transitionDelay)*1e3;setTimeout(()=>{this.store.dispatch({type:"entry:runner:activate:canvas",payload:{pageKey:ct.targetRBPageKey,canvasKey:ct.targetResCanvasKey,resetTargetCanvasScrollOffset:ct.resetTargetCanvasScrollOffset,transition:{name:ct.transition,delay:Mt,duration:parseFloat(ct.transitionDuration)*1e3,offset:/drawer|menu/.test(ct.transition)?ct.menuOrDrawerOffset:100}}})},Mt);break}case de.O2.LinkToSourceCanvas:{const Mt=parseFloat(ct.transitionDelay)*1e3;setTimeout(()=>{this.store.dispatch({type:"entry:runner:back-to-prev-canvas",payload:{transition:{name:ct.transition,delay:Mt,duration:parseFloat(ct.transitionDuration)*1e3,offset:/drawer|menu/.test(ct.transition)?ct.menuOrDrawerOffset:100}}})},Mt);break}case de.O2.SetBasketCanvas:{const Mt=parseFloat(ct.transitionDelay)*1e3;setTimeout(()=>{this.store.dispatch({type:"entry:runner:activate:basket:canvas",payload:{basketKey:ct.targetBasketKey,basketActiveCanvas:ct.targetResCanvasKey,triggerItemKey:ct.triggerItemKey,transition:{name:ct.transition,delay:Mt,duration:parseFloat(ct.transitionDuration)*1e3,offset:100}}})},Mt);break}}}openOverlay(ct){this.store.dispatch({type:"entry:runner:open:overlay",payload:{interaction:ct}})}swapOverlay(ct){this.store.dispatch({type:"entry:runner:swap:overlay",payload:{interaction:ct}})}closeOverlay(){this.store.dispatch({type:"entry:runner:close:overlay"})}jumpHyperLink(ct){let{hyperlink:Mt,openIn:ht}=ct;this.store.dispatch({type:"entry:runner:open:hyperlink",payload:{hyperlink:Mt,openIn:ht}})}}var se=e(66131);const J={useTransform:!1,disableTouch:!1,disablePointer:!0,preventDefault:!0,probeType:3,ignoreEventException:No=>{if(No.metaKey||No.ctrlKey||No.buttons===4)return!0;const ct=No.target.closest(".widget");if(ct&&(ct.classList.contains("wWebpage")||ct.classList.contains("wMapView")||ct.querySelector("input")||ct.querySelector("textarea")&&!ct.classList.contains("wTable")))return!0;const Mt=No.target.closest(".panel");return!!(Mt&&(Mt.offsetWidth<Mt.scrollWidth||Mt.offsetHeight<Mt.scrollHeight)||No.touches&&No.touches.length===2)}},ve={...J,scrollbars:!0,mouseWheel:!0,disableMouse:!1,interactiveScrollbars:!0,shrinkScrollbars:"scale",fadeScrollbars:!0,HWCompositing:!1};class D{constructor(ct,Mt){this.store=ct,this.runner=Mt,this.iScrollMap={},this.stickyWidgetListMap={},this.stickyWidgetList=[]}toggleScrollBar(ct){Object.values(this.iScrollMap).forEach(Mt=>{ct?Mt.enable():Mt.disable()})}disableScrollBar(ct){const Mt=this.iScrollMap[ct];Mt&&Mt.disable()}renderScrollbar(ct,Mt){this.iScrollMap[ct]?this.refreshScrollBar(ct):this.initScrollBar(ct,Mt),this.resetPanelPreviewModeScrollPos(ct)}clear(){this.destroyScrollBar()}refreshScrollBar(ct){this.iScrollMap[ct]&&this.iScrollMap[ct].refresh()}initScrollBar(ct,Mt){if(this.iScrollMap[ct])return;const ht=this.store.getState(),uo=(0,b.KR)(ht)?"#simulator .panel-preview-mode-scroll-container":("#pscreen"+ct+" .screen-content").replaceAll("/","\\/"),So=document.querySelector(uo);if(!(So&&So.offsetParent))return;const zo=(0,u.Fr)()?J:ve,en=T.A.getScreenScrollTop(this.store,ct);zo.startY=en||0;const mn=new window.IScroll(So,{...zo,...Mt});(0,u.Fr)()||So.addEventListener("wheel",jn=>{var Oo;jn.metaKey||jn.ctrlKey||(So.offsetHeight!==So.scrollHeight||So.offsetWidth!==So.scrollWidth&&(Oo=jn.originalEvent)!=null&&Oo.deltaX)&&jn.stopPropagation()}),this.updateStickyWidgetList(ct),this.updateStickyBehavior(ct,en),mn.on("scroll",()=>{this.updateStickyBehavior(ct,mn.y),this.runner.updateScrollTop(ct,mn.y),this.runner.updateScrollLeft(ct,mn.x)}),this.iScrollMap[ct]=mn}resetScreenScrollState(ct){this.runner.updateScrollTop(ct,0),this.runner.updateScrollLeft(ct,0)}destroyScrollBar(){Object.values(this.iScrollMap).forEach(ct=>{ct.destroy()}),this.iScrollMap={}}destroyScrollBarByCid(ct){const Mt=this.iScrollMap[ct];Mt&&(Mt.destroy(),delete this.iScrollMap[ct])}resetCurrentScreenScrollState(ct){const Mt=this.iScrollMap[ct];Mt&&Mt.scrollTo(0,0)}resetScrollState(){Object.values(this.iScrollMap).forEach(ct=>ct.scrollTo(0,0)),this.runner.resetScreenScrollTopMap()}scrollTo(ct,Mt,ht,oo){oo===void 0&&(oo={delay:0,duration:0});const uo=this.iScrollMap[ct];if(!uo)return;const So=Mt!==null?Math.max(-Mt,uo.maxScrollX):uo.x,zo=ht!==null?Math.max(-ht,uo.maxScrollY):uo.y;setTimeout(()=>{uo.scrollTo(So,zo,oo.duration)},oo.delay)}updateStickyWidgetList(ct){const Mt=this.store.getState(),ht=(0,b.KR)(Mt),oo=(0,b.Mo)(Mt),uo=ht&&sdkStore.getHotItem(oo).hotAttr.type==="wBasket"?"shadow-sticky":"sticky",So=document.querySelectorAll("."+uo);this.stickyWidgetListMap[ct]=Array.from(So)}updateStickyBehavior(ct,Mt){var ht;if(!((ht=this.stickyWidgetListMap[ct])!=null&&ht.length))return;const oo=this.store.getState(),uo=(0,b.KR)(oo),So=(0,b.Mo)(oo),zo=Mt!==void 0?Mt:T.A.getScreenScrollTop(this.store,ct);(0,se.ZA)({stickyWidgetList:this.stickyWidgetListMap[ct],scrollTop:zo,returnFunc:en=>{if(uo)return(0,se.VG)(en,So)},runnerCanvasKey:ct})}resetStickyBehavior(ct){var Mt;if(!((Mt=this.stickyWidgetListMap[ct])!=null&&Mt.length))return;const ht=this.store.getState(),oo=(0,b.KR)(ht),uo=(0,b.Mo)(ht);(0,se.mC)({stickyWidgetList:this.stickyWidgetListMap[ct],returnFunc:So=>{if(oo)return(0,se.VG)(So,uo)},runnerCanvasKey:ct})}resetPanelPreviewModeScrollPos(ct){const Mt=this.iScrollMap[ct];if(!Mt)return;const ht=this.store.getState();if(!(0,b.KR)(ht)||!ct)return;const uo=sdkStore.getSourceHotItem(ct);if(!uo||!(uo!=null&&uo.hotAttr))return;const{hotAttr:{x:So,y:zo,w:en,h:mn}}=uo,jn=Math.max(0,-So+en/2),Oo=Math.max(0,-zo+mn/2);this.runner.updateScrollLeft(ct,-jn),this.runner.updateScrollTop(ct,-Oo),Mt.scrollTo(Math.max(-jn,Mt.maxScrollX),Math.max(-Oo,Mt.maxScrollY),0),this.updateStickyBehavior(ct,Mt.y)}}var R=e(44864),V=e(4098),O=e(35078),Ce=e(63555),ae=e(19216),q=e(36892),K=e(51343),xe=e(24013);class te{constructor(ct,Mt,ht){(0,o.A)(this,"linkQueryMap",null),(0,o.A)(this,"getCanChangeSTVisibility",(uo,So)=>{const zo=So.getBoundingClientRect();return zo.top>=uo.top&&zo.bottom<=uo.bottom&&zo.left>=uo.left&&zo.right<=uo.right}),this.runner=new fe(ct.store),this.timerHandler=new ce(ct.store,this),this.eventHandler=new S(ct.store,this.timerHandler,this),this.scrollHandler=new D(ct.store,this.runner),this.canvasTreeHandler=null,this.clearCallbackBucket={},this.currentCanvasKey="",this.currentCanvasAsMenuOrDrawerKey="",this.requestScreenCidSet=new Set,this.webpackInterface=ct,this.messageBucket=Mt,this.f=ht,this.isPreventEvent=!1,this.widgetVisibilityRecords=new Map,this.STKeyHiMap=new Map,this.currentPageSTList=[],this.hideItaTargetTimerMap=new WeakMap;const{isMobile:oo}=(0,b.bF)(this.webpackInterface.store.getState());oo&&this._bindMobileGlobalEvent()}setIsPreventEvent(ct){this.isPreventEvent=ct}get currentCanvasKey(){return this._currentCanvasKey}set currentCanvasKey(ct){this._currentCanvasKey=ct}setCurrentCanvasKey(ct){this._currentCanvasKey=ct}get currentCanvasAsMenuOrDrawerKey(){return this._currentCanvasAsMenuOrDrawerKey}set currentCanvasAsMenuOrDrawerKey(ct){this._currentCanvasAsMenuOrDrawerKey=ct}setCurrentCanvasAsMenuOrDrawerKey(ct){this._currentCanvasAsMenuOrDrawerKey=ct}_bindMobileGlobalEvent(){window.addEventListener("message",ct=>{try{if(JSON.parse(ct.data).event==="back"){const{history:ht}=this.webpackInterface.store.getState().container.runner;ht.length===1&&this.messageBucket?this.messageBucket.send("exit"):this.runner.backToPrevCanvas({transition:{name:"none",duration:0,delay:0}})}}catch(Mt){}},!1),window.onorientationchange&&window.addEventListener("orientationchange",()=>{this.reload()}),window.addEventListener("resize",()=>{document.activeElement.tagName!=="INPUT"&&this.reload()})}init(ct,Mt,ht,oo,uo,So,zo,en){let{rootProject:mn,activePageKey:jn,activeCanvasKey:Oo,basketKey:Nn,activeWidgetKey:es}=ct;uo===void 0&&(uo=null);const zt=new URLSearchParams(location.search);let po=jn,Fo=Oo||zt.get("canvasId");const Mn=zt.get("selection"),Fn=()=>{if(ht||So)return(0,O.tb)(ht&&jn?jn:R.$k);if(uo){if(uo.type==="advanced"&&uo.screen_visible_switch)return(0,O.wb)(uo.screen_visible_list);if(uo.type!=="advanced"&&Mn)return(0,O.wb)([Mn])}return(0,O.tb)()},{screenTreeData:ts,screenDataMap:As}=Fn();let Is=!!po,io=!!Fo;if(Is&&(Is=!sdkStore.isTrashed(po)&&sdkStore.getHotItem(po)),io&&(io=!sdkStore.isTrashed(Fo)&&sdkStore.getHotItem(Fo)),!Is&&uo&&uo.canvas_begin){Fo=uo.canvas_begin;const bn=sdkStore.getHotItem(Fo);if(bn&&!sdkStore.isTrashed(Fo))po=bn.sup;else{const{activePageKey:Gn,activeCanvasKey:xs}=(0,O.u1)(ts);po=Gn,Fo=xs}}else if(!Is||!io&&!(oo||So))if(Is&&!io){var Jo,Zo;Fo=(Jo=(Zo=sdkStore.getSubHotItemList(po))==null||(Zo=Zo.find(bn=>{let{hotAttr:Gn}=bn;return(Gn==null?void 0:Gn.type)===Ce.x.Canvas&&!(Gn!=null&&Gn.asOverlay)}))==null?void 0:Zo.key)!=null?Jo:""}else if(!Is&&io){const bn=sdkStore.getHotItem(Fo);bn&&(po=bn.sup)}else{const{activePageKey:bn,activeCanvasKey:Gn}=(0,O.u1)(ts);po=bn,Fo=Gn}const{hotAttr:Un}=sdkStore.getHotItem(po),On={...Un,cid:po};this.webpackInterface.store.dispatch({type:"entry:init:preview:related:data",payload:{rootProject:mn,screenMeta:On,previewMode:Mt,isPanelPreviewMode:ht,isCommunityComboPreview:oo,isPreviewCombo:So,basketKey:Nn,screenTreeData:ts,screenDataMap:As,isQuickPreview:zo,quickPreviewSize:en,isPreviewAIComponent:!!es}});const us=setTimeout(()=>{this.webpackInterface.store.dispatch({type:"reducer:preview-toolbar:update",payload:{isShowSplash:!1}});const{activePageKey:bn,activeCanvasKey:Gn}=(0,b.mf)(this.webpackInterface.store.getState());if(this.webpackInterface.store.dispatch({type:"entry:runner:activate:canvas",payload:{pageKey:bn||po,canvasKey:Gn||Fo,widgetKey:es}}),this.webpackInterface.store.dispatch({type:"entry:init:preview:scale"}),this.webpackInterface.store.dispatch({type:"entry:preview:check:location-hash"}),this.messageBucket){this.messageBucket.request({type:"message:set:record",payload:{key:"preview-ready",value:!0}}),this.messageBucket.send("ready");const Es=setTimeout(()=>{if(this.messageBucket.send("ready"),!Fo){var Ys;(Ys=MB)==null||(Ys=Ys.messageBucket)==null||Ys.send("mobileLoadProjectError",{errMsg:I18N.dUtils.no_artboard_cannot_be_previewed,onlyToast:!0})}},2e3);this.clearCallbackBucket.redundantReady=()=>clearTimeout(Es)}if(!Fo&&!(oo||So)){var xs;(xs=MB)==null||xs.notice({text:I18N.dUtils.no_artboard_cannot_be_previewed,type:"warning"})}},1e3);this.clearCallbackBucket.init=()=>clearTimeout(us)}setupCanvasTimers(ct,Mt){Mt===void 0&&(Mt=!1),this.timerHandler.setupCanvasTimers(ct,Mt)}getIsBasketTimerFired(ct){return this.timerHandler.getIsBasketTimerFired(ct)}clearTimerHandler(){this.timerHandler.clear()}resetBasketTimerFlag(ct){this.timerHandler.resetBasketTimerFlag(ct)}setupBasketTimers(ct,Mt){this.timerHandler.setupBasketTimers(ct,Mt)}initEventHandler(ct,Mt){this.eventHandler.init(ct,Mt)}initMouseEventHandler(ct){this.eventHandler.initMouseEvent(ct)}prepareJump(ct,Mt,ht){ht===void 0&&(ht=!0),this.eventHandler.prepareJump(ct,Mt,ht)}clear(){Object.values(this.clearCallbackBucket).forEach(ct=>ct()),this.currentCanvasKey="",this.currentCanvasAsMenuOrDrawerKey="",this.linkQueryMap=null,this.scrollHandler.clear(),this.timerHandler.clear(),this.requestScreenCidSet.clear(),this.runner.clear(),this.canvasTreeHandler=null}closeMenu(ct,Mt){ct===void 0&&(ct=null),Mt===void 0&&(Mt=!1),this.runner.backToPrevCanvas({callback:ct,noDuration:Mt})}j(ct){T.A.checkIfSkipInteraction(this.webpackInterface.store,ct)||(T.A.getInteractionTypeToClearTimersList(this.webpackInterface.store).some(Mt=>Mt===ct.interactionType)&&this.timerHandler.clear(),this.switchInteraction(ct))}switchInteraction(ct){var Mt=this;let ht;switch(ct.interactionType){case de.O2.LinkToCanvas:case de.O2.LinkToSourceCanvas:case de.O2.SetBasketCanvas:{this.runner.openCanvas(ct);break}case de.O2.OpenOverlay:{const{transitionDelay:en}=ct,mn=parseFloat(en)*1e3;ht&&clearTimeout(ht),ht=setTimeout(()=>{this.runner.openOverlay(ct);const jn=this.webpackInterface.store.getState(),{overlayStack:Oo}=(0,b.mf)(jn);T.A.isOpeningUniqueOverlay(Oo,ct.targetOverlayKey)&&this.appendSTListFromOverlay(ct.targetRBPageKey,ct.targetOverlayKey)},mn);break}case de.O2.SwapOverlay:{const{transitionDelay:en}=ct,mn=parseFloat(en)*1e3;ht&&clearTimeout(ht),ht=setTimeout(()=>{this.runner.swapOverlay(ct);const jn=this.webpackInterface.store.getState(),{overlayStack:Oo}=(0,b.mf)(jn);T.A.isOpeningUniqueOverlay(Oo,ct.targetOverlayKey)&&this.appendSTListFromOverlay(ct.targetRBPageKey,ct.targetOverlayKey)},mn);break}case de.O2.CloseOverlay:{const{transitionDelay:en}=ct,mn=parseFloat(en)*1e3;ht&&clearTimeout(ht),ht=setTimeout(()=>{this.runner.closeOverlay()},mn);break}case de.O2.ScrollTo:{const{transitionDelay:en,transitionDuration:mn,scrollToOffsetX:jn,scrollToOffsetY:Oo,scrollToDir:Nn}=ct,es=parseFloat(en)*1e3,zt=parseFloat(mn)*1e3,po=(0,xe.mO)(ct,this.webpackInterface);if(!document.querySelector('.scontainer [data-cid="'+po+'"]'))break;const Mn=(0,ae.Ik)(sdkStore,po)||(0,ae.ao)(sdkStore,po)||"",Fn=this.webpackInterface.store.getState(),ts=(0,b.KR)(Fn),As=(0,b.Mo)(Fn),Is=sdkStore.getHotItem(Mn);if(!Is||Mn&&Is.hotAttr.type==="rResCanvas"&&Is.hotAttr.asOverlay)break;if(Mn&&Is.hotAttr.type==="wBasket"){const Zo=Is.hotAttr.scroll===2||Is.hotAttr.scroll===3,Un=Is.hotAttr.scroll===2||Is.hotAttr.scroll===4;if(ts&&As===Mn){const On=this.webpackInterface.store.getState().container.runner.activeCanvasKey,[us,bn]=(0,V.Pb)(sdkStore.getRelocateLocalBound(po,sdkStore.locUpHotCanvasKey(po))),Gn=Zo&&Nn!=="horizontal"?bn+Oo:null,xs=Un&&Nn!=="vertical"?us+jn:null;this.scrollHandler.scrollTo(On,xs,Gn,{delay:es,duration:zt})}else{var oo;const On=document.querySelector('[data-cid="'+Mn+'"] > .wBasket');if(!On)break;const us=(oo=this.webpackInterface.store.getState().container.runner.basketCanvasMap.get(Mn))==null?void 0:oo.activeCanvas;if(!us)break;if(us===sdkStore.locUpHotCanvasKey(po)){const[bn,Gn]=(0,V.Pb)(sdkStore.getRelocateLocalBound(po,us)),xs=Zo&&Nn!=="horizontal"?Gn+Oo:null,Es=Un&&Nn!=="vertical"?bn+jn:null;if(Es===null&&xs===null)break;setTimeout(()=>{const Ys=xs!==null?(xs-On.scrollTop)/(zt/10):0,lo=Es!==null?(Es-On.scrollLeft)/(zt/10):0,Ko=setInterval(()=>{On.scrollTop=On.scrollTop+Ys,On.scrollLeft=On.scrollLeft+lo},10);setTimeout(()=>{clearInterval(Ko),xs!==null&&(On.scrollTop=xs),Es!==null&&(On.scrollLeft=Es)},zt)},es)}}}else{var uo;const Zo=this.webpackInterface.store.getState().container.runner.activeCanvasKey,Un=this.webpackInterface.store.getState().container.runner.activePageKey;if(!Zo||!Un)break;const On=sdkStore.getHotItem(Un);if(!On)break;let us=!0,bn=!0;On.sup===R.fW?(us=On.hotAttr.scroll===2||On.hotAttr.scroll===3,bn=On.hotAttr.scroll===2||On.hotAttr.scroll===4):(us=On.hotAttr.deviceScroll==="vertical"||On.hotAttr.deviceScroll==="auto",bn=On.hotAttr.deviceScroll==="horizontal"||On.hotAttr.deviceScroll==="auto");const Gn=((uo=sdkStore.getHotItem(Zo))==null||(uo=uo.hotAttr)==null?void 0:uo.stickyHeaderHeight)||0,[xs,Es]=(0,V.Pb)(sdkStore.getRelocateLocalBound(po,sdkStore.locUpColdCanvasKey(po))),Ys=us&&Nn!=="horizontal"?Es+Oo-Gn:null,lo=bn&&Nn!=="vertical"?xs+jn:null;this.scrollHandler.scrollTo(Zo,lo,Ys,{delay:es,duration:zt})}break}case de.O2.OpenExternalUrl:{const{transitionDelay:en}=ct,mn=parseFloat(en)*1e3;ht&&clearTimeout(ht),ht=setTimeout(()=>{this.runner.jumpHyperLink({hyperlink:ct.interactionExternalUrl,openIn:ct.openIn})},mn);break}case de.O2.SetVisibility:{var So,zo;const en=parseFloat(ct.transitionDelay)*1e3,mn=(0,xe.mO)(ct,this.webpackInterface),jn=T.A.getTargetElemList(mn),{opacity:Oo=0}=((So=sdkStore.getHotItem(mn))==null?void 0:So.hotAttr)||{},Nn=sdkStore.locTopRBMuDaPageKey(mn),es=sdkStore.getHotItem(mn),zt=!!Nn,po=es.hotAttr.type===Ce.x.WBasket,Fo=((zo=es.sub)==null?void 0:zo.length)>0,Mn=[Ce.x.WWrap,Ce.x.WBasket].includes(sdkStore.getHotItem(es.sup).hotAttr.type);let Fn,ts=[];const As=(0,q.HK)({type:"list",pageSTList:this.currentPageSTList,widgetKey:mn});if(zt){const bn=(0,_.OO)(mn)?(0,_.QL)(mn).pop():mn,Gn=sdkStore.locUpHotBasketKey(mn);let xs;Gn&&(xs=sdkStore.getHotItem(Gn).hotAttr.basket==="bMuban"?Gn:void 0),Fn=[...(0,q.HK)({type:"key",pageKey:Nn,widgetKey:bn}),...As].map(Es=>({...Es,mubanBasketKey:xs}))}else if(po){const bn=es.hotAttr.basket==="bMuban"?es.key:void 0;ts=(0,q.HK)({type:"key",pageKey:es.hotAttr.refRBPageKey,widgetKey:es.hotAttr.refRBPageKey}).map(Gn=>({...Gn,mubanBasketKey:bn})),Fn=[...ts,...As]}else Fn=As;const Is=new Map;for(const bn of Fn){const Gn=Is.get(bn.hotAttr.refWCKey)||[];Is.set(bn.hotAttr.refWCKey,[...Gn,bn.key]),this.STKeyHiMap.set(bn.key,bn),this.widgetVisibilityRecords.set(bn.key,!0)}const io=function(bn,Gn,xs,Es){Es===void 0&&(Es=!0),bn.classList.remove("invisible");const Ys=Mt.hideItaTargetTimerMap.get(bn);Ys&&clearTimeout(Ys),Object.assign(bn.style,{transition:Gn==="auto"?"opacity "+xs:"",visibility:Es?"visible":bn.style.visibility,opacity:String(Oo),pointerEvents:Oo?"auto":"none"})},Jo=document.querySelector("#app");if(!Jo)return;const Zo=Jo.getBoundingClientRect(),Un=function(bn,Gn,xs,Es){Es===void 0&&(Es=!0);const Ys=setTimeout(()=>bn.classList.add("invisible"),Gn==="auto"?parseFloat(xs)*1e3:0);Mt.hideItaTargetTimerMap.set(bn,Ys),Object.assign(bn.style,{transition:Gn==="auto"?"visibility 0s linear "+xs+", opacity "+xs:"",visibility:Es?"hidden":bn.style.visibility,opacity:"0",pointerEvents:"none"})},On=bn=>{if(!(Mn&&T.A.getTargetElemList(es.sup)[0].style.visibility==="hidden"))if(Fo){sdkStore.walkHotItemSubtree(mn,Gn=>{var xs,Es;const Ys=Is.get(Gn.key)||[];let lo=[];if((0,_.OO)(Gn.key)&&(lo=Is.get((0,_.QL)(Gn.key).pop())||[]),!(Ys.length>0||lo.length>0))return;const Ko=T.A.getTargetElemList(Gn.key)[0],eo=(Ko==null||(xs=Ko.style)==null?void 0:xs.visibility)==="visible"||(Ko==null||(Es=Ko.style)==null?void 0:Es.visibility)==="";for(const ro of Ys)if(ts=ts.filter(Yt=>Yt.key!==ro),eo){const Yt=T.A.getSTElement(this.STKeyHiMap.get(ro));Yt&&io(Yt,bn.setVisibleTransition,bn.setVisibleTransitionDuration,this.getCanChangeSTVisibility(Zo,Yt))}for(const ro of lo)if(ts=ts.filter(Yt=>Yt.key!==ro),eo){const Yt=T.A.getSTElement(this.STKeyHiMap.get(ro));Yt&&io(Yt,bn.setVisibleTransition,bn.setVisibleTransitionDuration,this.getCanChangeSTVisibility(Zo,Yt))}});for(const Gn of ts){const xs=T.A.getSTElement(Gn);xs&&io(xs,bn.setVisibleTransition,bn.setVisibleTransitionDuration,this.getCanChangeSTVisibility(Zo,xs))}}else for(const Gn of Fn){const xs=T.A.getSTElement(Gn);xs&&io(xs,bn.setVisibleTransition,bn.setVisibleTransitionDuration,this.getCanChangeSTVisibility(Zo,xs))}},us=bn=>{for(const Gn of Fn){const xs=T.A.getSTElement(Gn);xs&&Un(xs,bn.setHiddenTransition,bn.setHiddenTransitionDuration,this.getCanChangeSTVisibility(Zo,xs))}};switch(ct.actionType){case"setVisible":{for(const bn of jn)setTimeout(()=>{io(bn,ct.setVisibleTransition,ct.setVisibleTransitionDuration),On(ct)},en);this.widgetVisibilityRecords.set(mn,!0);break}case"setHidden":{for(const bn of jn)setTimeout(()=>{Un(bn,ct.setHiddenTransition,ct.setHiddenTransitionDuration),us(ct)},en);this.widgetVisibilityRecords.set(mn,!1);break}case"toggleVisibility":{for(const bn of jn)setTimeout(()=>{const Gn=bn.style.visibility;Gn==="visible"?(Un(bn,ct.setHiddenTransition,ct.setHiddenTransitionDuration),this.widgetVisibilityRecords.set(mn,!1),us(ct)):Gn==="hidden"&&(io(bn,ct.setVisibleTransition,ct.setVisibleTransitionDuration),this.widgetVisibilityRecords.set(mn,!0),On(ct))},en);break}default:break}this.webpackInterface.store.dispatch({type:"preview:refreshCount:update"});break}}}doneTransition(ct,Mt){(0,u.m0)()&&this.eventHandler.setupPageGesture(Mt),this.currentCanvasKey=Mt,this.runner.setCurrentScreen({cid:ct,...sdkStore.getHotItem(ct).hotAttr}),this.resetSTList(ct)}reload(){const ct=T.A.getCurrentScreen(this.webpackInterface.store);ct&&(this.runner.reloadScreen(ct.cid),this.scrollHandler.resetScrollState())}destroyScrollBarByCid(ct){this.scrollHandler.destroyScrollBarByCid(ct)}renderScrollbar(ct,Mt){this.scrollHandler.renderScrollbar(ct,Mt)}resetScreenScrollState(ct){this.scrollHandler.resetScreenScrollState(ct)}toggleScrollBar(ct){this.scrollHandler.toggleScrollBar(ct)}disableScrollBar(ct){this.scrollHandler.disableScrollBar(ct)}resetCurrentScreenScrollState(ct){this.scrollHandler.resetCurrentScreenScrollState(ct)}resetWidgetVisiblity(ct){const Mt=new Map,ht=document.querySelector("#app").getBoundingClientRect();for(const uo of this.widgetVisibilityRecords.keys()){var oo;if(ct&&sdkStore.locUpColdCanvasKey(uo)!==ct){Mt.set(uo,this.widgetVisibilityRecords.get(uo));continue}const{isVisible:So=!1,opacity:zo=0,type:en}=((oo=sdkStore.getHotItem(uo))==null?void 0:oo.hotAttr)||{};let mn,jn;const Oo=(0,q.yT)(en);if(Oo){const Nn=this.STKeyHiMap.get(uo),{refWCKey:es}=Nn.hotAttr,zt=T.A.getTargetElemList(es);jn=T.A.getSTElement(Nn),zt[0]&&this.getCanChangeSTVisibility(ht,zt[0])?mn=jn?[jn]:[]:mn=[]}else mn=T.A.getTargetElemList(uo);for(const Nn of mn)if(So){let es;if(Oo){const zt=this.STKeyHiMap.get(uo),po=jn.getAttribute("data-basket-key");es=String(Number((0,K.R)(zt.hotAttr.refWCKey,po)))}else es=zo;Object.assign(Nn.style,{transition:"",visibility:"visible",opacity:es,pointerEvents:"auto"}),Nn.classList.remove("invisible")}else Object.assign(Nn.style,{transition:"",visibility:"hidden",opacity:"0",pointerEvents:"none"}),Nn.classList.add("invisible");if(mn.length===0&&jn){const Nn=this.STKeyHiMap.get(uo),es=jn.getAttribute("data-basket-key"),po=String(Number((0,K.R)(Nn.hotAttr.refWCKey,es)));Object.assign(jn.style,{transition:"",opacity:po,pointerEvents:po?"auto":"none"}),So?jn.classList.remove("invisible"):jn.classList.add("invisible")}}this.widgetVisibilityRecords=Mt}resetSTList(ct){this.currentPageSTList=(0,q.UR)(ct)}appendSTListFromOverlay(ct,Mt){this.currentPageSTList=this.currentPageSTList.concat((0,q.GG)(ct,Mt))}}var H=e(37829),re=e(28055),be=e(82928),Le=e(94049),Ve=e(62643),Ne=e(36521),We=e(95230),ze=e(76347),ft=e(58912),mt=e(53485);const i=We.I,gt=No=>Number((0,Ne.kV)("preview_scale_"+No)),Je=(No,ct)=>(0,Ne.cH)("preview_scale_"+No,ct),Pt={"entry:init:preview:scale":No=>{let{getState:ct,dispatch:Mt}=No;const ht=ct(),oo=(0,b.PL)(ht),{isUIChina:uo,isForum:So,isSquare:zo}=(0,b.bF)(ht),en=(0,b.k6)(ht),mn=(0,b.KR)(ht),jn=(0,b.hM)(ht);if(en||mn||jn)Mt({type:"entry:preview:zoom-quick-preview"});else if(uo&&oo.model==="car_play")Mt({type:"preview:set:scale",payload:{scale:40}});else if(So||zo)Mt({type:"entry:auto-fit:preview:scale"});else{const Oo=gt(oo.cid);Mt(Oo?{type:"preview:set:scale",payload:{scale:Oo}}:{type:"entry:auto-fit:preview:scale"})}},"entry:auto-fit:preview:scale":No=>{let{getState:ct,dispatch:Mt}=No;Mt({type:"entry:preview:set:shellContainer"});const ht=ct(),oo=(0,b._v)(ht),uo=(0,b.Ph)(ht),{isForum:So,isSquare:zo}=(0,b.bF)(ht),en=(0,b.U4)(ht),mn=!zo&&en?(0,b.zo)(ht):0,Oo=(0,b.Pf)(ht)?0:(0,b.E1)(ht),Nn=(0,b.PL)(ht),es=(0,b.Ur)(ht),zt=(0,b.KR)(ht),po=(0,b.ub)(ht),Fo=(0,b.hM)(ht),Mn=(0,b.y3)(ht),Fn=po||Fo;if((0,b.k6)(ht)||zt||Fo){Mt({type:"entry:preview:zoom-quick-preview"});return}if(Mn)return;const{width:As,height:Is}=oo,io=es.orientation==="landscape",Jo={width:io?Is:As,height:io?As:Is};let Zo,Un,On;So?Zo=Un=On=0:zo?(Zo=100,Un=20,On=20):Fn||zt?(Zo=88,Un=20,On=20):(Zo=132,Un=20,On=20);let us=window.innerWidth-Oo-mn,bn=window.innerHeight;if(Fo||zt){const Ko=document.querySelector(Fo?".preview-combo-modal":".preview-modal");if(Ko){const eo=Ko.getBoundingClientRect();us=eo.width,bn=eo.height}}const Gn=us-(Un+On),xs=bn-Zo,Es=Math.min(xs/Jo.height,Gn/Jo.width)*100,Ys=zt?Math.min(Math.max(Es,20),100):Math.min(Math.max(Es,20),400);!zo&&!uo&&Je(Nn.cid,Ys),Mt({type:"preview:set:scale",payload:{scale:Ys}}),(0,h.sI)(ht)&&Mt({type:"entry:comment:update:view-container-style"})},"entry:preview:set:scale":(No,ct)=>{let{dispatch:Mt,getState:ht}=No,{payload:{scale:oo}}=ct;const uo=ht(),So=(0,b.PL)(uo);oo=Math.min(Math.max(oo,20),400);const{isFullScreenMode:zo}=uo.container.previewSetting;!zo&&Je(So.cid,oo),Mt({type:"preview:set:scale",payload:{scale:oo}}),Mt({type:"preview:update:state",payload:{hasChangedScaleManually:!0}}),(0,h.sI)(uo)&&Mt({type:"entry:comment:update:view-container-style"}),(0,mt.R)()},"entry:preview:zoom-in":No=>{let{getState:ct,dispatch:Mt}=No;const ht=ct(),oo=(0,b.St)(ht),uo=i.findIndex(zo=>zo>oo),So=i[uo]||i[i.length-1];Mt({type:"entry:preview:set:scale",payload:{scale:So}})},"entry:preview:zoom-out":No=>{let{getState:ct,dispatch:Mt}=No;const ht=ct(),oo=(0,b.St)(ht),uo=i.findIndex(zo=>zo>=oo),So=i[uo-1]||i[0];Mt({type:"entry:preview:set:scale",payload:{scale:So}})},"entry:preview:zoom-out:set-offset":No=>{let{getState:ct,dispatch:Mt}=No;const ht=ct(),oo=(0,b.St)(ht),uo=i.findIndex(zo=>zo>=oo),So=i[uo-1]||i[0];Mt({type:"entry:preview:set:scale",payload:{scale:So}}),Mt({type:"entry:preview:zoom-out:center-position",payload:{nextScale:So,oldScale:oo}})},"entry:preview:zoom-out:center-position":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:{nextScale:oo,oldScale:uo}}=ct;const So=Mt(),zo=(0,b.PN)(So),en=(0,b.A3)(So),mn=(0,Ve.Lc)(So),{width:jn,height:Oo}=document.getElementById("simulator-container")?document.getElementById("simulator-container").getBoundingClientRect():{height:null,width:null},{width:Nn,height:es}=document.querySelector("#simulator-shell")?document.querySelector("#simulator-shell").getBoundingClientRect():document.querySelector("#simulator-container .zoom-area").getBoundingClientRect(),[zt,po]=zo,Fo=mn?zt:0,Mn=mn?po:0,Fn=Math.min(Math.max(jn/(Nn*100/uo+Fo*2)*100,20),400),ts=Math.min(Math.max(Oo/(es*100/uo+Mn*2)*100,20),400),As=Math.min(1,Fn<uo?Math.abs(uo-oo)/(uo-Fn):0),Is=Math.min(1,ts<uo?Math.abs(uo-oo)/(uo-ts):0),io=en.x-As*en.x,Jo=en.y-Is*en.y;ht({type:"preview:set:canvas:offset:dev",payload:{offset:{x:io,y:Jo}}})},"entry:preview:set:shellContainer":No=>{let{getState:ct,dispatch:Mt}=No;const ht=ct(),oo=(0,b.Ur)(ht),{activePageKey:uo,activeCanvasKey:So}=(0,b.mf)(ht);let zo=0,en=0;const mn=sdkStore.getHotItem(uo),jn=mn?mn.hotAttr.device:oo.device;if(!So&&uo){const{w:Fo,h:Mn}=(0,ze.lY)(mn,sdkStore,!0);if(!Number.isFinite(Fo)||!Number.isFinite(Mn)){var Oo,Nn;const Fn=(0,ft.MR)(jn);zo=(Fn==null?void 0:Fn.width)||(mn==null||(Oo=mn.hotAttr)==null?void 0:Oo.deviceW)||0,en=(Fn==null?void 0:Fn.height)||(mn==null||(Nn=mn.hotAttr)==null?void 0:Nn.deviceH)||0}else zo=Fo,en=Mn}else if(jn==="none"&&So){var es;const Fo=(es=sdkStore.getHotItem(So))==null?void 0:es.hotAttr;zo=Fo==null?void 0:Fo.w,en=Fo==null?void 0:Fo.h}else if(jn==="customize")zo=mn?mn.hotAttr.deviceW:oo.deviceW,en=mn?mn.hotAttr.deviceH:oo.deviceH;else{var zt,po;const Fo=(0,ft.MR)(jn);zo=(Fo==null?void 0:Fo.width)||(mn==null||(zt=mn.hotAttr)==null?void 0:zt.deviceW)||0,en=(Fo==null?void 0:Fo.height)||(mn==null||(po=mn.hotAttr)==null?void 0:po.deviceH)||0}Mt({type:"preview:set:shellContainer",payload:{shellContainer:{width:zo,height:en}}})},"entry:preview:zoom-quick-preview":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:oo}=ct;const uo=Mt(),{activePageKey:So,activeCanvasKey:zo,activeWidgetKey:en}=(0,b.mf)(uo),mn=(0,b.B3)(uo),jn=(0,b.KR)(uo),Oo=(0,b.Mo)(uo),Nn=(0,b.hM)(uo),es=oo==null?void 0:oo.quickPreviewSize,zt=es||mn;if(!zt)return;let{width:po,height:Fo}=zt;if(jn){var Mn;const Zo=(Mn=sdkStore.getHotItem(Oo))==null?void 0:Mn.hotAttr;if(!Zo)return;po=Zo.w,Fo=Zo.h}else if(Nn){const Zo=sdkStore.getHotItem(So);if(!Zo)return;if(en){const Un=sdkStore.getHotItem(en);if(Un){var Fn,ts;po=Un==null||(Fn=Un.hotAttr)==null?void 0:Fn.w,Fo=Un==null||(ts=Un.hotAttr)==null?void 0:ts.h}}else{const{hotAttr:{device:Un,deviceW:On,deviceH:us}}=Zo,{w:bn,h:Gn}=(0,ze.lY)(Zo,sdkStore,!0);if(!Number.isFinite(bn)||!Number.isFinite(Gn)){const xs=(0,ft.MR)(Un);po=(xs==null?void 0:xs.width)||On||0,Fo=(xs==null?void 0:xs.height)||us||0}else po=bn,Fo=Gn}}else{var As,Is;const Zo=(As=sdkStore.getHotItem(So))==null?void 0:As.hotAttr,Un=(Is=sdkStore.getHotItem(zo))==null?void 0:Is.hotAttr;if(!Zo||!Un)return;const{deviceW:On,deviceH:us,deviceOrientation:bn,device:Gn}=Zo,{w:xs,h:Es}=Un;po=bn==="portrait"?On:us,Fo=bn==="portrait"?us:On,Gn==="none"&&(po=xs,Fo=Es)}const io=Math.min(zt.height/Fo,zt.width/po)*100,Jo=Math.min(io,400);ht({type:"preview:set:scale",payload:{scale:Jo}}),es&&ht({type:"preview:current:update:state",payload:{quickPreviewSize:es}})}};var bt=e(35176),qt=e(78013),pt=e(35556),$t=e(15336),go=e(6637),Co=e(25399);const Tt={name:"none",delay:0,duration:0,offset:100},mo={"entry:runner:reload:screen":(No,ct)=>{let{dispatch:Mt}=No,{payload:{activeCid:ht}}=ct;Mt({type:"entry:runner:activate:canvas",payload:{pageKey:ht}})},"entry:runner:activate:basket:canvas":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:{basketKey:oo,basketActiveCanvas:uo,triggerItemKey:So,transition:zo}}=ct;const en=Mt(),mn=(0,b.KR)(en),jn=(0,b.Mo)(en),Oo=oo===Co.VZ?mn&&sdkStore.locTopRBActiveKey(jn)==="B@ref-muban"?jn:(0,ae.Ik)(sdkStore,So):oo,Nn=sdkStore.getHotItem(Oo);if(!Nn)return;const{key:es,sup:zt,hotAttr:{refRBPageKey:po,bunch:Fo}}=Nn;if(mn&&Oo===jn){const{activeCanvasKey:Mn}=(0,b.mf)(en),Fn=T.A.getCanvasKeyByAlias(Oo,uo,Mn),ts=Fo===Ce.x.RbPage&&zt==="B@ref-muban"?es:po,{sub:As}=sdkStore.getHotItem(ts);As.includes((0,_.OO)(Fn)?Fn.split("/").at(-1):Fn)&&ht({type:"entry:runner:activate:canvas",payload:{pageKey:ts,canvasKey:Fn,resetTargetCanvasScrollOffset:!0,transition:zo}})}else{const{basketCanvasMap:Mn}=(0,b.mf)(en);if(!Mn.get(Oo))return;const{activeCanvas:Fn}=Mn.get(Oo),ts=T.A.getCanvasKeyByAlias(Oo,uo,Fn);if(Fn===uo||sdkStore.isTrashed(ts))return;zo=zo||Tt;const As=()=>{typeof zo.callback=="function"&&zo.callback(),MB.runnerController.setupBasketTimers(Oo,ts);const Zo=Mt(),{widgetStatusMap:Un,audioList:On,videoList:us}=(0,b.mf)(Zo),bn={...Un};for(const[Es,Ys]of Object.entries(Un))(0,_.OO)(Es)&&Es.includes(Oo)&&!T.A.isWidgetInBasketCanvas(Es,ts)&&Object.assign(bn,{[Es]:Object.assign(Ys,{status:Ys.defaultStatus})});const Gn=[];for(const Es of On)Es.keepAlive?Gn.push(Es):Es.key.includes(Oo)?T.A.isWidgetInBasketCanvas(Es.key,ts)?Gn.push(Es):Es.audioObj.pause():Gn.push(Es);const xs=[];for(const Es of us){const Ys=document.getElementById(Es.key);Ys&&(Es.key.includes(Oo)?T.A.isWidgetInBasketCanvas(Es.key,ts)?xs.push(Es):Ys.src="":xs.push(Es))}ht({type:"runner:update:state",payload:{widgetStatusMap:bn,audioList:Gn,videoList:xs}})};for(const Zo of T.A.findAllAVUnder(ts,"wAudio"))ht({type:"entry:runner:append:audio",payload:{audio:Zo}});for(const Zo of T.A.findAllAVUnder(ts,"wVideo"))ht({type:"entry:runner:append:video",payload:{video:Zo}});const Is={...zo,callback:As},io=new Map(Mn);io.set(Oo,{activeCanvas:ts,transition:Is}),ht({type:"runner:update:state",payload:{basketCanvasMap:io}}),ht({type:"entry:runner:update:basket:status:under",payload:{key:ts}});const Jo=[...Mn.keys()].filter(Zo=>Zo.startsWith("/"+Oo)||Zo===Oo).map(Zo=>(0,_.OO)(Zo)?(0,_.QL)(Zo).pop():Zo);ht({type:"runner:reset:basket:list:scroll",payload:{keys:Jo}})}},"entry:runner:open:hyperlink":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:{hyperlink:oo,openIn:uo}}=ct;const So=Mt(),{isMobile:zo}=(0,b.bF)(So),en=(0,u.vq)();let mn,jn;try{const Nn=new URL(oo);mn=Nn.href,jn=Nn.hostname.split(".").slice(-2).join(".")}catch(Nn){mn="https://"+oo,jn=""}const Oo=()=>{switch(uo){case"inPage":(0,$t.JW)(mn,"_self");break;case"newTab":window.ReactNativeWebView?MB.messageBucket.send("openLinkByBrowser",{link:oo}):(0,$t.JW)(mn,"_blank","noreferrer");break}};["wondershare.com","modao.cc"].includes(jn)?en&&uo==="newTab"?ht({type:"previewModal:update:state",payload:{preOpenHyperlinkModal:{isOpen:!0,hyperlink:oo,isMobile:zo,displayWeChatNewTabInternalUrlTip:!0,confirmText:I18N.Common.confirm,onConfirm:Oo}}}):Oo():ht({type:"previewModal:update:state",payload:{preOpenHyperlinkModal:{isOpen:!0,hyperlink:oo,isMobile:zo,displayWeChatNewTabExternalUrlTip:en&&uo==="newTab",confirmText:I18N.SettingPanel.continue,onConfirm:Oo}}})},"entry:runner:updateOrAppend:widgetStatus":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:{key:oo,defaultStatus:uo,status:So}}=ct;const zo=(0,b.mf)(Mt()),{widgetStatusMap:en}=zo,mn=en[oo];ht(mn?{type:"runner:update:state",payload:{widgetStatusMap:{...en,[oo]:Object.assign(mn,{status:So})}}}:{type:"runner:update:state",payload:{widgetStatusMap:{...en,[oo]:{defaultStatus:uo,status:So}}}})},"entry:runner:reset:widgetStatus":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:{keys:oo}}=ct;const uo=(0,b.mf)(Mt()),{widgetStatusMap:So}=uo,en=[...Object.keys(So)].filter(jn=>{const Oo=(0,_.OO)(jn)?(0,_.QL)(jn).pop():jn;return oo.includes(Oo)});if(!(en!=null&&en.length))return;const mn={...So};en.forEach(jn=>{delete mn[jn]}),ht({type:"runner:update:state",payload:{widgetStatusMap:mn}})},"entry:runner:activate:canvas":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:{pageKey:oo,canvasKey:uo,widgetKey:So,transition:zo,resetTargetCanvasScrollOffset:en=!0,saveHistory:mn=!0,forceInit:jn=!1,keepScale:Oo=!0,keepOverlayStack:Nn=!1}}=ct;const es=(0,pt.F)();if(es){ht({type:"entry:comment:wigglingCommentCid",payload:{wigglingCommentCid:es}});return}ht({type:"entry:comment:clear"});const zt=Mt(),{activeCanvasKey:po,history:Fo}=(0,b.mf)(zt);if(po&&po===uo){Nn||ht({type:"entry:runner:reset:overlay:stack"});return}if(!oo||sdkStore.isTrashed(oo))return;const Mn=(0,b.KR)(zt),Fn=(0,b.Mo)(zt),ts=(0,b.hM)(zt),As=(0,b.UB)(zt),Is=(0,b.ub)(zt),io=(0,b.k6)(zt);if(!(jn||(0,xe.pE)({isPanelPreviewMode:Mn,basketKey:Fn,canvasKey:uo,sharing:As})))return;zo=zo||Tt,/drawer|menu/.test(zo.name)?(MB.runnerController.setCurrentCanvasKey(po),MB.runnerController.setCurrentCanvasAsMenuOrDrawerKey(uo)):(MB.runnerController.setCurrentCanvasKey(null),MB.runnerController.setCurrentCanvasAsMenuOrDrawerKey(null));const Zo=T.A.getCanvasKeyByAlias(oo,uo,po)||(0,qt.XV)(oo),On={...zo,callback:()=>{typeof zo.callback=="function"&&zo.callback(),MB.runnerController.setupCanvasTimers(ts?oo:Zo),MB.runnerController.resetWidgetVisiblity(),MB.runnerController.resetSTList(oo);const Ys=Mt(),{widgetStatusMap:lo}=(0,b.mf)(Ys),Ko={...lo};for(const[eo,ro]of Object.entries(lo))sdkStore.locUpColdCanvasKey(eo)!==Zo&&Object.assign(Ko,{[eo]:Object.assign(ro,{status:ro.defaultStatus})});ht({type:"entry:media:update",payload:{canvasKey:Zo}}),ht({type:"runner:update:state",payload:{widgetStatusMap:Ko}})}},us=mn?[(0,xe.NG)(oo,Zo),...Fo]:Fo;MB.runnerController.destroyScrollBarByCid(po),en&&MB.runnerController.resetScreenScrollState(Zo);const bn=sdkStore.getHotItem(oo);bn!=null&&bn.hotAttr&&ht({type:"preview:current:update:state",payload:{screenMeta:{cid:oo,...bn.hotAttr}}}),ht({type:"entry:update:preview:data"}),ht(ts||Is?{type:"entry:runner:update:basket:status:under",payload:{key:oo}}:{type:"entry:runner:update:basket:status:under",payload:{key:Zo}}),ht({type:"entry:runner:reset:overlay:stack"}),ht({type:"runner:update:state",payload:{transition:On,activePageKey:oo,activeCanvasKey:Zo,activeWidgetKey:So,history:us}});const Gn=Mn||ts;if((0,xe.AT)(oo,Zo,Gn||io),Oo&&ht({type:"entry:auto-fit:preview:scale"}),ht({type:"runner:reset:basket:scroll"}),(0,go.fl)(oo),setTimeout(()=>{(0,go.cL)(Zo)},50),!Zo&&!(Is||Gn)){var xs,Es;(xs=MB)!=null&&xs.notice&&((Es=MB)==null||Es.notice({text:I18N.dUtils.no_artboard_cannot_be_previewed,type:"warning"}))}(io||Mn||ts)&&MB.previewModalActiveRunner&&MB.previewModalActiveRunner({activePageKey:oo,activeCanvasKey:Zo,resetTargetCanvasScrollOffset:en})},"entry:runner:back-to-prev-canvas":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:oo={}}=ct;const uo=(0,pt.F)();if(uo){ht({type:"entry:comment:wigglingCommentCid",payload:{wigglingCommentCid:uo}});return}ht({type:"entry:comment:clear"});const So=Mt(),{activeCanvasKey:zo,history:en,transition:{name:mn,duration:jn,offset:Oo}}=(0,b.mf)(So),Nn=(0,b.KR)(So),es=(0,b.Mo)(So),zt=(0,b.hM)(So),po=(0,b.k6)(So);if(en.length===1)return;let Fo;const[,Mn]=(0,xe.Lf)(en[0]),[Fn,ts]=(0,xe.Lf)(en[1]);if(sdkStore.isTrashed(ts))return;const As=sdkStore.getHotItem(Mn).hotAttr,Is=sdkStore.getHotItem(ts).hotAttr;MB.runnerController.setCurrentCanvasKey(null),MB.runnerController.setCurrentCanvasAsMenuOrDrawerKey(null),As.orientation!==Is.orientation?Fo=Tt:oo.transition?Fo=oo.transition:Fo={name:(0,bt.j)(mn),delay:0,duration:oo.noDuration?0:jn,offset:Oo,callback:oo.callback};const Jo={...Fo,callback:()=>{typeof Fo.callback=="function"&&Fo.callback(),MB.runnerController.setupCanvasTimers(ts);const us=Mt(),{widgetStatusMap:bn}=(0,b.mf)(us),Gn={...bn};for(const[xs,Es]of Object.entries(bn))sdkStore.locUpColdCanvasKey(xs)!==ts&&Object.assign(Gn,{[xs]:Object.assign(Es,{status:Es.defaultStatus})});ht({type:"entry:media:update",payload:{canvasKey:ts}}),ht({type:"runner:update:state",payload:{widgetStatusMap:Gn}})}},Zo=(0,b.UB)(So);if(!(0,xe.pE)({isPanelPreviewMode:Nn,basketKey:es,canvasKey:ts,sharing:Zo}))return;const On=en.slice(1);MB.runnerController.destroyScrollBarByCid(zo),ht({type:"entry:runner:reset:overlay:stack"}),ht({type:"runner:update:state",payload:{transition:Jo,history:On,activePageKey:Fn,activeCanvasKey:ts}}),ht({type:"entry:sync-runner:set-screen",payload:{cid:Fn}}),(0,xe.AT)(Fn,ts,Nn||zt),ht({type:"entry:update:preview:data"}),ht({type:"entry:runner:update:basket:status:under",payload:{key:ts}}),ht({type:"entry:auto-fit:preview:scale"}),ht({type:"runner:reset:basket:scroll"}),(0,go.cL)(ts),(po||Nn||zt)&&MB.previewModalActiveRunner&&MB.previewModalActiveRunner({activePageKey:Fn,activeCanvasKey:ts,resetTargetCanvasScrollOffset:!0})},"entry:runner:update:basket:status:under":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:{key:oo}}=ct;const uo=Mt(),{basketCanvasMap:So}=(0,b.mf)(uo),zo=T.A.findAllBasketsUnder(oo),en=new Map(So);for(const mn of zo)if(mn.sub.length!==0){en.set(mn.key,{activeCanvas:mn.sub[0],transition:Tt});for(const jn of T.A.findAllAVUnder(mn.sub[0],"wAudio"))ht({type:"entry:runner:append:audio",payload:{audio:jn}});for(const jn of T.A.findAllAVUnder(mn.sub[0],"wVideo"))ht({type:"entry:runner:append:video",payload:{video:jn}})}ht({type:"runner:update:state",payload:{basketCanvasMap:en}})},"entry:runner:update:basketCanvasMap:by:basketKey":(No,ct)=>{var Mt,ht;let{getState:oo,dispatch:uo}=No,{payload:{key:So}}=ct;const zo=oo(),{basketCanvasMap:en}=(0,b.mf)(zo),mn=new Map(en);if(!So||sdkStore.isTrashed(So))return;const jn=sdkStore.getHotItem(So);!jn||(jn==null||(Mt=jn.hotAttr)==null?void 0:Mt.type)!==Ce.x.WBasket||!(jn!=null&&(ht=jn.sub)!=null&&ht.length)||(mn.set(So,{activeCanvas:jn==null?void 0:jn.sub[0],transition:Tt}),uo({type:"runner:update:state",payload:{basketCanvasMap:mn}}))},"entry:runner:open:overlay":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:{interaction:oo}}=ct;const uo=Mt();if((0,b.KR)(uo))return;const zo=(0,b.UB)(uo),{targetRBPageKey:en,targetOverlayKey:mn,transition:jn,transitionDuration:Oo,transitionDelay:Nn,addBackdrop:es,backdropColor:zt,backdropFilterBlurRadius:po,closeWhenClickingOutside:Fo,overlayRelativePos:Mn,overlayRelativePosX:Fn,overlayRelativePosY:ts}=oo;if(!T.A.canOverlayBeOpened(mn,zo))return;const{activePageKey:As,activeCanvasKey:Is,overlayStack:io,basketCanvasMap:Jo}=(0,b.mf)(uo),Zo=()=>{typeof jn.callback=="function"&&jn.callback(),MB.runnerController.setupCanvasTimers(mn,!0),T.A.isOpeningUniqueOverlay(io,mn)&&ht({type:"entry:media:update",payload:{canvasKey:mn}})},Un=[...io,{idx:io.length+1,itaKey:oo.key,triggerItemKey:oo.triggerItemKey,tick:0,isOverlayIn:!0,targetRBPageKey:en,targetOverlayKey:mn,transition:{name:jn==="auto"?"fade":jn,duration:parseFloat(Oo)*1e3,delay:parseFloat(Nn)*1e3,callback:Zo},addBackdrop:es,backdropColor:zt,backdropFilterBlurRadius:po,overlayRelativePos:Mn,...T.A.getOverlayRelativePosXY(As,Is,mn,Mn,Fn,ts),closeWhenClickingOutside:Fo}];T.A.isOpeningUniqueOverlay(io,mn)&&ht({type:"entry:runner:update:basket:status:under",payload:{key:mn}}),ht({type:"runner:update:state",payload:{overlayStack:Un}})},"entry:runner:swap:overlay":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:{interaction:oo}}=ct;const uo=Mt();if((0,b.KR)(uo))return;const zo=(0,b.UB)(uo),{targetOverlayKey:en,transition:mn,transitionDuration:jn,transitionDelay:Oo}=oo;if(!T.A.canOverlayBeOpened(en,zo))return;const{activePageKey:Nn,activeCanvasKey:es,overlayStack:zt,basketCanvasMap:po,widgetStatusMap:Fo}=(0,b.mf)(uo),Mn=zt[zt.length-1];if(!Mn)return;const{overlayRelativePos:Fn,overlayRelativePosX:ts,overlayRelativePosY:As}=Mn,Is=()=>{typeof mn.callback=="function"&&mn.callback(),MB.runnerController.setupCanvasTimers(en,!0);const Jo=Mn.targetOverlayKey;if(T.A.isClosingUniqueOverlay(zt,Jo)){ht({type:"entry:runner:cleanup:audio:in:overlay",payload:{overlayKey:Jo}}),ht({type:"entry:runner:cleanup:video:in:overlay",payload:{overlayKey:Jo}}),MB.runnerController.resetWidgetVisiblity(Jo);const Un=Array.from(po.keys()).filter(us=>sdkStore.locUpColdCanvasKey(us)===Jo);ht({type:"runner:reset:basket:list:scroll",payload:{keys:Un}});const On={...Fo};for(const[us,bn]of Object.entries(Fo)){var Zo;const Gn=sdkStore.locUpColdCanvasKey(us)||"";((Zo=sdkStore.getHotItem(Gn))==null?void 0:Zo.hotAttr.asOverlay)&&Gn===Jo&&Object.assign(On,{[us]:Object.assign(bn,{status:bn.defaultStatus})})}ht({type:"runner:update:state",payload:{widgetStatusMap:On}}),ht({type:"entry:media:update",payload:{canvasKey:en}})}},io=zt.slice(0,-1).concat([{...Mn,itaKey:oo.key,triggerItemKey:oo.triggerItemKey,tick:mn!=="auto"?Mn.tick+1:Mn.tick,targetRBPageKey:oo.targetRBPageKey,targetOverlayKey:oo.targetOverlayKey,transition:{name:mn,duration:parseFloat(jn)*1e3,delay:parseFloat(Oo)*1e3,callback:Is},overlayRelativePos:Fn,...T.A.getOverlayRelativePosXY(Nn,es,en,Fn,ts,As)}]);T.A.isOpeningUniqueOverlay(zt,en)&&ht({type:"entry:runner:update:basket:status:under",payload:{key:en}}),ht({type:"runner:update:state",payload:{overlayStack:io}})},"entry:runner:close:overlay":No=>{let{getState:ct,dispatch:Mt}=No;const ht=ct(),{overlayStack:oo}=(0,b.mf)(ht),uo=oo.pop();if(!uo)return;const So=oo.concat({...uo,isOverlayIn:!1});Mt({type:"runner:update:state",payload:{overlayStack:So}}),setTimeout(()=>{const zo=ct(),en=uo.targetOverlayKey,{widgetStatusMap:mn,overlayStack:jn,basketCanvasMap:Oo}=(0,b.mf)(zo);let Nn=mn;if(T.A.isClosingUniqueOverlay(jn,en)){Mt({type:"entry:runner:cleanup:audio:in:overlay",payload:{overlayKey:en}}),Mt({type:"entry:runner:cleanup:video:in:overlay",payload:{overlayKey:en}}),MB.runnerController.resetWidgetVisiblity(en);const zt=Array.from(Oo.keys()).filter(po=>sdkStore.locUpColdCanvasKey(po)===en);Mt({type:"runner:reset:basket:list:scroll",payload:{keys:zt}}),Nn={...mn};for(const[po,Fo]of Object.entries(mn)){var es;const Mn=sdkStore.locUpColdCanvasKey(po)||"";((es=sdkStore.getHotItem(Mn))==null?void 0:es.hotAttr.asOverlay)&&Mn===en&&Object.assign(Nn,{[po]:Object.assign(Fo,{status:Fo.defaultStatus})})}}Mt({type:"runner:update:state",payload:{widgetStatusMap:Nn,overlayStack:jn.slice(0,-1)}})},uo.transition.duration)},"entry:runner:reset:overlay:stack":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:{targetOverlayKey:oo}={targetOverlayKey:""}}=ct;const uo=Mt(),{overlayStack:So,widgetStatusMap:zo,basketCanvasMap:en}=(0,b.mf)(uo);let mn=zo,jn=So;if(oo){const es=So.findIndex(zt=>zt.targetOverlayKey===oo);if(es!==-1){jn=So.slice(0,es);const zt=jn.map(Mn=>Mn.targetOverlayKey),po=So.slice(es,So.length).map(Mn=>Mn.targetOverlayKey);po.forEach(Mn=>{ht({type:"entry:runner:cleanup:audio:in:overlay",payload:{overlayKey:Mn}}),ht({type:"entry:runner:cleanup:video:in:overlay",payload:{overlayKey:Mn}}),MB.runnerController.resetWidgetVisiblity(Mn)});const Fo=Array.from(en.keys()).filter(Mn=>{const Fn=sdkStore.locUpColdCanvasKey(Mn)||"";return po.includes(Fn)&&!zt.includes(Fn)});ht({type:"runner:reset:basket:list:scroll",payload:{keys:Fo}}),mn={...zo};for(const[Mn,Fn]of Object.entries(zo)){var Nn;const ts=sdkStore.locUpColdCanvasKey(Mn)||"";((Nn=sdkStore.getHotItem(ts))==null?void 0:Nn.hotAttr.asOverlay)&&po.includes(ts)&&!zt.includes(ts)&&Object.assign(mn,{[Mn]:Object.assign(Fn,{status:Fn.defaultStatus})})}}}else{jn=[];const es=So.map(po=>po.targetOverlayKey);es.forEach(po=>{ht({type:"entry:runner:cleanup:audio:in:overlay",payload:{overlayKey:po}}),ht({type:"entry:runner:cleanup:video:in:overlay",payload:{overlayKey:po}}),MB.runnerController.resetWidgetVisiblity(po)});const zt=Array.from(en.keys()).filter(po=>es.includes(sdkStore.locUpColdCanvasKey(po)));ht({type:"runner:reset:basket:list:scroll",payload:{keys:zt}}),mn={...zo};for(const[po,Fo]of Object.entries(zo)){var Oo;const Mn=sdkStore.locUpColdCanvasKey(po)||"";((Oo=sdkStore.getHotItem(Mn))==null?void 0:Oo.hotAttr.asOverlay)&&es.includes(Mn)&&Object.assign(mn,{[po]:Object.assign(Fo,{status:Fo.defaultStatus})})}}ht({type:"runner:update:state",payload:{widgetStatusMap:mn,overlayStack:jn}})},"entry:runner:update:overlay:stack":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:{keyItemUpdated:oo}}=ct;const uo=Mt(),{overlayStack:So,activePageKey:zo,activeCanvasKey:en}=(0,b.mf)(uo),mn=So.map(jn=>{const{itaKey:Oo,triggerItemKey:Nn,targetOverlayKey:es}=jn,zt=sdkStore.getHotItem(oo);if(!zt)return jn;if(Nn===oo||zt.hotAttr.type==="wBasket"&&zt.hotAttr.basket==="bMuban"&&(0,_.OO)(Nn)&&(0,_.QL)(Nn).some(po=>po===oo)){const po=sdkStore.getHotItem(Nn);if(!po||!("interactions"in po.hotAttr))return jn;const Fo=po.hotAttr.interactions.find(Mn=>Mn.key===Oo);return!Fo||Fo.interactionType!==de.O2.OpenOverlay?jn:{...jn,addBackdrop:Fo.addBackdrop,backdropColor:Fo.backdropColor,backdropFilterBlurRadius:Fo.backdropFilterBlurRadius,overlayRelativePos:Fo.overlayRelativePos,...T.A.getOverlayRelativePosXY(zo,en,es,Fo.overlayRelativePos,Fo.overlayRelativePosX,Fo.overlayRelativePosY),closeWhenClickingOutside:Fo.closeWhenClickingOutside}}return jn});ht({type:"runner:update:state",payload:{overlayStack:mn}})},"entry:runner:re:pos:overlay":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:{targetOverlayKey:oo}={targetOverlayKey:""}}=ct;const uo=Mt(),{overlayStack:So,activePageKey:zo,activeCanvasKey:en}=(0,b.mf)(uo),mn=So.map(jn=>{if(oo===""||jn.targetOverlayKey===oo){const{targetOverlayKey:Oo,overlayRelativePos:Nn,overlayRelativePosX:es,overlayRelativePosY:zt}=jn;return{...jn,...T.A.getOverlayRelativePosXY(zo,en,Oo,Nn,es,zt)}}return jn});ht({type:"runner:update:state",payload:{overlayStack:mn}})},"entry:runner:update:basket:status:in:overlay":No=>{let{getState:ct,dispatch:Mt}=No;const ht=ct(),{overlayStack:oo}=(0,b.mf)(ht);oo.forEach(uo=>{const{targetOverlayKey:So}=uo;Mt({type:"entry:runner:update:basket:status:under",payload:{key:So}})})}};var jo=e(41449);const Kt=No=>/^\/app\/design\//.test(No)||/^\/mb-workspace\//.test(No)||No.startsWith((0,jo.Dw)("design/"));var Ft=e(40778);const nt="preview-is-stickyshow",Rt="preview-is-highlight",yt="preview-is-statePanel",Jt="preview-is-shell-type",vo=No=>"preview-simulator-type-"+No,Yo=(No,ct,Mt)=>{const{isSquare:ht,isMobile:oo,isEmbedV1:uo,isEmbedV2:So,isHTMLZip:zo}=ct;if(ht)return{simulatorType:No.device==="web"||No.category==="combo_group"?"long_page":"device",isStickyShow:!1,isStickyAvailable:!0,isHighlight:!0,isShowOutsideArtboardNav:!1};const en=(0,Ne.Yt)(nt,!0,Ne.qW.Boolean),mn=(0,Ne.Yt)(Rt,!0,Ne.qW.Boolean);if(oo||uo){const Nn=Mt?Mt.highlight:!0;return{simulatorType:"device",isStickyShow:en,isHighlight:Nn===void 0?!0:Nn,isShowOutsideArtboardNav:!1}}if(So)return{simulatorType:(Mt==null?void 0:Mt.simulator_type)||"device",isStickyShow:Mt==null?void 0:Mt.sticky,isStickyAvailable:Mt==null?void 0:Mt.view_sticky,isHighlight:!0,isShowOutsideArtboardNav:Mt==null?void 0:Mt.view_prd};if(Kt(location.pathname)||zo)return{simulatorType:(0,Ne.Yt)(vo(No.cid),"device",Ne.qW.String),isStickyShow:en,isHighlight:mn,isShowOutsideArtboardNav:zo?Mt==null?void 0:Mt.view_prd:!0,isStickyAvailable:!0};if((0,Ft.oK)()){const{simulator_type:Nn,sticky:es,from:zt}=Object.fromEntries(new URLSearchParams(location.search).entries()),po=es===""?!0:(0,Ne.Yt)(nt,!1,Ne.qW.Boolean),Fo=zt?Mt==null?void 0:Mt.highlight:mn,Mn=MB.canEditByCurrentUser||(Mt==null?void 0:Mt.view_prd);return Nn?{simulatorType:!Mn&&Nn==="outside_artboard"?"device":Nn,isStickyShow:po,isHighlight:Fo,isShowOutsideArtboardNav:Mn,isStickyAvailable:!0}:{simulatorType:(Mt==null?void 0:Mt.simulator_type)||"device",isStickyShow:Mt==null?void 0:Mt.sticky,isStickyAvailable:MB.canEditByCurrentUser||(Mt==null?void 0:Mt.view_sticky),isHighlight:Fo,isShowOutsideArtboardNav:Mn}}else return{simulatorType:No.device==="web"?"long_page":"device",isStickyShow:!1,isHighlight:!0,isStickyAvailable:!0,isShowOutsideArtboardNav:!1}};var Ho=e(43859),kt=e(78647);const Ze={"entry:init:preview-setting":No=>{let{getState:ct,dispatch:Mt}=No;const ht=ct(),oo=(0,b.PL)(ht),uo=(0,b.bF)(ht),So=(0,b.UB)(ht),zo=(0,b.Ur)(ht),{simulatorType:en,isStickyShow:mn,isHighlight:jn,isStickyAvailable:Oo,isShowOutsideArtboardNav:Nn}=Yo(oo,uo,So),{isSquare:es}=uo,zt=es?!1:(0,Ne.Yt)("is_minimized",!1,Ne.qW.Boolean),po=!Ho.CZ.includes(zo.device),Fo=(0,Ne.Yt)(Jt+"-"+oo.cid,po,Ne.qW.Boolean),Mn={simulatorType:en,isStickyShow:mn,isShowOutsideArtboardNav:Nn,isStickyAvailable:Oo,isStatePanelShow:(0,Ne.Yt)(yt,!1,Ne.qW.Boolean),isHighlight:jn,isMinimized:zt,isShowShell:Fo};Mt({type:"reducer:preview-toolbar:update",payload:Mn})},"entry:preview-setting:update:is-highlight":(No,ct)=>{let{dispatch:Mt}=No,{payload:ht}=ct;const{isHighlight:oo}=ht;(0,Ne.a0)(Rt,!!oo,Ne.qW.Boolean),Mt({type:"reducer:preview-toolbar:update",payload:{isHighlight:oo}})},"entry:preview-setting:update:show:shell":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:oo}=ct;const{isShowShell:uo}=oo,So=Mt(),zo=(0,b.PL)(So);(0,Ne.a0)(Jt+"-"+zo.cid,uo,Ne.qW.Boolean),ht({type:"reducer:preview-toolbar:update",payload:{isShowShell:uo}}),setTimeout(()=>{MB.runnerController.reload()})},"entry:preview-setting:update:simulatorType":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:oo}=ct;const{simulatorType:uo}=oo,So=Mt(),zo=(0,b.Ur)(So),en=(0,b.PL)(So);(0,Ne.a0)(vo(en.cid),uo,Ne.qW.String),MB.runnerController.resetCurrentScreenScrollState(zo.cid),ht({type:"reducer:preview-toolbar:update",payload:{simulatorType:uo}}),setTimeout(()=>{MB.runnerController.reload()})},"entry:preview-setting:update:is-sticky-show":(No,ct)=>{let{dispatch:Mt}=No,{payload:ht}=ct;const{isStickyShow:oo}=ht;(0,Ne.a0)(nt,oo,Ne.qW.Boolean),Mt({type:"reducer:preview-toolbar:update",payload:{isStickyShow:oo}})},"entry:preview-setting:update:is-statePanel-show":(No,ct)=>{let{dispatch:Mt}=No,{payload:ht}=ct;const{isStatePanelShow:oo}=ht;(0,Ne.a0)(yt,oo,Ne.qW.Boolean),Mt({type:"reducer:preview-toolbar:update",payload:{isStatePanelShow:oo}})},"entry:preview-setting:restore:leftrightpane":No=>{let{dispatch:ct}=No;const Mt=(0,Ne.Yt)("is_minimized",!1,Ne.qW.Boolean),ht=(0,Ne.Yt)("is_show_rightpane",!0,Ne.qW.Boolean);ct({type:"entry:preview-setting:toggle:isMinimized",payload:{isMinimized:Mt}}),ct({type:"entry:preview-setting:toggle:rightPane",payload:{isShowRightPane:ht}})},"entry:preview-setting:toggle:isMinimized":(No,ct)=>{var Mt,ht,oo;let{getState:uo,dispatch:So}=No,{payload:zo}=ct;const en=uo(),mn=(0,b.Pf)(en),jn=(0,b.U4)(en),Oo=(0,b.Ph)(en),Nn=(0,b.bF)(en),es=(Mt=zo==null?void 0:zo.isMinimized)!=null?Mt:!mn;So({type:"reducer:preview-toolbar:update",payload:{isMinimized:es}}),((ht=zo==null?void 0:zo.isMemorize)!=null?ht:!0)&&!Oo&&(0,Ne.a0)("is_minimized",es,Ne.qW.Boolean),es?jn||So({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!0,isSetTimeout:!0}}):So({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!1}});const{isSquare:po,isEmbedV2:Fo,isHTMLZip:Mn}=Nn;if(!(po||Fo||Mn)&&!((oo=MB)!=null&&(oo=oo.commonGuideHelper)!=null&&oo.checkGuideHasShown(kt.c.GUIDE_PREVIEW_VIEW_BTN))){var Fn;(Fn=MB)==null||(Fn=Fn.commonGuideHelper)==null||Fn.tryToShowGuide(kt.c.GUIDE_PREVIEW_VIEW_BTN)}},"entry:preview-setting:toggle:rightPane":(No,ct)=>{var Mt,ht;let{getState:oo,dispatch:uo}=No,{payload:So}=ct;const zo=oo(),en=(0,b.U4)(zo),mn=(0,b.Pf)(zo),jn=(0,b.Ph)(zo),Oo=(Mt=So==null?void 0:So.isShowRightPane)!=null?Mt:!en;uo({type:"reducer:preview-toolbar:update",payload:{isShowRightPane:Oo}}),((ht=So==null?void 0:So.isMemorize)!=null?ht:!0)&&!jn&&(0,Ne.a0)("is_show_rightpane",Oo,Ne.qW.Boolean),Oo?uo({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!1}}):mn&&uo({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!0,isSetTimeout:!0}})}};var it=e(43109),st=e(71394);const dt={"entry:media:update":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:{canvasKey:oo}}=ct;const uo=Mt(),So=(0,b.KR)(uo),{activeCanvasKey:zo,audioList:en,videoList:mn,overlayStack:jn}=(0,b.mf)(uo),Oo=[];for(const po of en){var Nn;const Fo=(Nn=sdkStore.getHotItem(po.coldCanvasKeyToAudio||""))==null?void 0:Nn.hotAttr.asOverlay;po.keepAlive||(So?T.A.isWidgetInBasketCanvas(po.key,zo):Fo?jn.some(Mn=>po.coldCanvasKeyToAudio===Mn.targetOverlayKey):po.coldCanvasKeyToAudio===zo)?Oo.push(po):po.audioObj.pause()}const es=[];for(const po of mn){const Fo=document.getElementById(po.key);if(Fo){var zt;const Mn=(zt=sdkStore.getHotItem(po.coldCanvasKeyToVideo||""))==null?void 0:zt.hotAttr.asOverlay;(So?T.A.isWidgetInBasketCanvas(po.key,zo):Mn?jn.some(Fn=>po.coldCanvasKeyToVideo===Fn.targetOverlayKey):po.coldCanvasKeyToVideo===zo)?es.push(po):Fo.src=""}}ht({type:"runner:update:state",payload:{audioList:Oo,videoList:es}});for(const po of T.A.findAllAVUnder(oo,"wAudio"))ht({type:"entry:runner:append:audio",payload:{audio:po}});for(const po of T.A.findAllAVUnder(oo,"wVideo"))ht({type:"entry:runner:append:video",payload:{video:po}})},"entry:runner:append:audio":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:{audio:oo}}=ct;const uo=(0,b.mf)(Mt()),{audioList:So}=uo;if(So.find(zt=>{let{key:po}=zt;return oo.key===po}))return;const{key:zo,hotAttr:{audio:{isAutoplay:en,isLoop:mn,isKeepAlive:jn,audioSrc:Oo}}}=oo,Nn=new Audio(Oo);Nn.preload="meta",Nn.autoplay=en,Nn.loop=mn;const es={key:zo,currentTime:0,duration:0,audioState:en?"play":"pause",audioObj:Nn,keepAlive:jn,previewAudioLoaded:!1,coldCanvasKeyToAudio:rootSdk.sdkStore.locUpColdCanvasKey(zo),hotCanvasKeyToAudio:rootSdk.sdkStore.locUpHotCanvasKey(zo)};Nn.onloadedmetadata=zt=>{ht({type:"entry:runner:update:audio",payload:{key:zo,duration:zt.target.duration}}),ht({type:"entry:runner:update:audio",payload:{key:zo,previewAudioLoaded:!0}})},Nn.ontimeupdate=zt=>{ht({type:"entry:runner:update:audio",payload:{key:zo,currentTime:zt.target.currentTime}})},Nn.onplay=()=>{ht({type:"entry:runner:update:audio",payload:{key:zo,audioState:"play"}})},Nn.onpause=()=>{ht({type:"entry:runner:update:audio",payload:{key:zo,audioState:"pause"}})},ht({type:"runner:update:state",payload:{audioList:[...So,es]}})},"entry:runner:cleanup:audio":No=>{let{getState:ct}=No;const Mt=(0,b.mf)(ct()),{audioList:ht}=Mt;ht.forEach(oo=>{oo.audioObj.src=null})},"entry:runner:cleanup:audio:in:overlay":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:{overlayKey:oo}}=ct;const uo=(0,b.mf)(Mt()),{audioList:So}=uo,zo=So.filter(en=>!en.keepAlive&&en.coldCanvasKeyToAudio===oo?(en.audioObj.src=null,!1):!0);ht({type:"runner:update:state",payload:{audioList:zo}})},"entry:runner:cleanup:video:in:overlay":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:{overlayKey:oo}}=ct;const uo=(0,b.mf)(Mt()),{videoList:So}=uo,zo=So.filter(en=>{if(en.coldCanvasKeyToVideo===oo){const mn=document.getElementById(en.key);if(mn)return mn.src=null,!1}return!0});ht({type:"runner:update:state",payload:{videoList:zo}})},"entry:runner:update:audio":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:{key:oo,...uo}}=ct;const So=(0,b.mf)(Mt()),{audioList:zo}=So,en=zo.find(mn=>mn.key===oo);en&&(Object.assign(en,uo),ht({type:"runner:update:state",payload:{audioList:[...zo.filter(mn=>mn.key!==oo),en]}}))},"entry:runner:append:video":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:{video:oo}}=ct;const uo=(0,b.mf)(Mt()),{videoList:So}=uo,{key:zo,hotAttr:{video:{videoSrc:en,isAutoplay:mn,isLoop:jn,isMuted:Oo,isHideControls:Nn}}}=oo,es=(0,it.dB)(en)&&(0,it.Je)(new URL(en))?(0,st.r)(new URL(en),zo,mn,jn,Oo,Nn).iframeSrc:en,zt={key:zo,src:es,isAutoplay:mn,coldCanvasKeyToVideo:rootSdk.sdkStore.locUpColdCanvasKey(zo),hotCanvasKeyToVideo:rootSdk.sdkStore.locUpHotCanvasKey(zo)};ht({type:"runner:update:state",payload:{videoList:[...So,zt]}})}};var Ot=e(35195),Ct=e(48310),wo=e(7233),ln=e(30108),Io=e.n(ln),Lo=e(83012),Ao=e(73807),xt=e(30127),Ut=e(93196);let Wo=null;const sn={...{...Pt,...mo,...Ze,...Ao.k.__entry,...dt,"entry:init:preview:leftPaneWidth":No=>{let{getState:ct,dispatch:Mt}=No;const ht=ct(),oo=(0,b.bF)(ht),uo=(0,b.PL)(ht);if(oo.isSquare)Mt({type:"preview:set:leftPaneWidth",payload:{leftPaneWidth:We.qE}});else{const So=(0,Ne.Yt)("preview_layer_left_panel_width_"+uo.cid,We.sR,Ne.qW.Number);So&&Mt({type:"preview:set:leftPaneWidth",payload:{leftPaneWidth:So,projectCid:uo.cid}})}},"entry:preview:check:location-hash":No=>{let{getState:ct,dispatch:Mt}=No;const ht=window.location.hash||"";if(ht.startsWith("#thread=")){const oo=ht.substr(8),uo=ct().model.commentThreads.find(So=>So.cid===oo);if(!uo)return console.warn("[checkLocationHash] missing commentThread: "+oo);Mt({type:"entry:sync-runner:set-screen",payload:{cid:uo.screen_cid}}),Mt({type:"entry:comment:set:active",payload:{isActive:!0}}),Mt({type:"container:comment:focus",payload:{focusCommentThreadCid:uo.cid}})}},"entry:init:preview:preference":(No,ct)=>{let{dispatch:Mt}=No,{payload:{preference:ht}}=ct;const oo=!ht.theme||ht.theme==="grey"?We.Ke.theme:ht.theme,uo={...ht,theme:oo,grid_size:ht.grid_size||We.Ke.grid_size};Mt({type:"preview:update:state",payload:{preference:uo}}),Mt({type:"reducer:preview-toolbar:update",payload:{theme:oo}})},"entry:init:preview:related:data":async(No,ct)=>{let{dispatch:Mt}=No,{payload:{rootProject:ht,previewMode:oo,screenMeta:uo,isPanelPreviewMode:So,isCommunityComboPreview:zo,isPreviewCombo:en,basketKey:mn,screenTreeData:jn,screenDataMap:Oo,isQuickPreview:Nn,quickPreviewSize:es,isPreviewAIComponent:zt}}=ct;Mt({type:"preview:current:update:state",payload:{rootProject:ht,screenMeta:uo,isPanelPreviewMode:So,isCommunityComboPreview:zo,isPreviewCombo:en,screenTreeData:jn,screenDataMap:Oo,panelPreviewBasketKey:mn,isQuickPreview:Nn,quickPreviewSize:es,isPreviewAIComponent:zt}}),Mt({type:"entry:update:preview:data"}),Mt({type:"entry:comment:init:projectShare"});const po=MB.global.designOptions||{isDesign:!0};Mt({type:"entry:init:preview-setting"}),Mt({type:"preview:update:state",payload:{designOptions:po}}),Mt({type:"entry:preview:update-mode",payload:{toolbarActiveItem:oo}}),Mt({type:"entry:init:preview:leftPaneWidth"})},"entry:preview:select":(No,ct)=>{let{dispatch:Mt,getState:ht}=No,{payload:{toolbarActiveItem:oo}}=ct;const uo=ht(),So=(0,b.Br)(uo);oo!==So&&Mt({type:"entry:preview:update-mode",payload:{toolbarActiveItem:oo}})},"entry:preview:update-mode":async(No,ct)=>{let{dispatch:Mt,getState:ht}=No,{payload:{toolbarActiveItem:oo}}=ct;const uo=ht();Mt({type:"reducer:preview-toolbar:update",payload:{toolbarActiveItem:oo}}),Mt({type:"preview:previewPanel:navindex",payload:{previewPanelNavIndex:0}}),setTimeout(()=>{(0,b.pW)(uo)&&MB.runnerController.reload()})},"entry:enter:full-screen-mode":async No=>{let{dispatch:ct}=No;await Ot.A.request(),ct({type:"entry:preview:select",payload:{toolbarActiveItem:"preview"}}),ct({type:"reducer:preview-toolbar:fullscreen",payload:{isFullScreenMode:!0}}),ct({type:"entry:auto-fit:preview:scale"}),ct({type:"preview:set:canvas:offset",payload:{offset:{x:0,y:0}}}),ct({type:"entry:preview-setting:toggle:isMinimized",payload:{isMinimized:!0,isMemorize:!1}}),ct({type:"entry:preview-setting:toggle:rightPane",payload:{isShowRightPane:!1,isMemorize:!1}})},"entry:exit:fill-screen-mode":No=>{let{dispatch:ct}=No;ct({type:"reducer:preview-toolbar:fullscreen",payload:{isFullScreenMode:!1}}),ct({type:"entry:init:preview:scale"})},"entry:update:preview:data":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:oo}=ct;const uo=Mt(),So=(0,b.Ur)(uo),zo=(0,b.hM)(uo),en=(0,b.ub)(uo),mn=(0,b.KR)(uo),jn=(0,Ct.v)(Ct.K.preview),Oo=new wo.c(jn,sdkStore),Nn=(oo==null?void 0:oo.pageKey)||So.cid;if(oo!=null&&oo.pageKey){const{hotAttr:zt}=sdkStore.getHotItem(oo==null?void 0:oo.pageKey),po={cid:oo==null?void 0:oo.pageKey,...zt};ht({type:"preview:current:update:state",payload:{screenMeta:po}})}Oo.buildWidgetTree({folderKey:Nn,isEditingCombo:zo||en});const es=Oo.widgetNode;ht({type:"preview:current:update:state",payload:{folderTreeData:es}}),mn&&ht({type:"runner:update:state",payload:{panelPreviewStateListCacheTag:Math.random()}})},"entry:update:preview:screenTreeData":No=>{let{getState:ct,dispatch:Mt}=No;const ht=ct(),oo=(0,b.KR)(ht),{activePageKey:uo}=(0,b.mf)(ht),{screenTreeData:So,screenDataMap:zo}=(0,O.tb)(oo&&uo?uo:R.$k);Mt({type:"preview:current:update:state",payload:{screenTreeData:So,screenDataMap:zo}})},"entry:preview:reload:screen":No=>{let{getState:ct,dispatch:Mt}=No;const ht=ct(),oo=(0,b.HA)(ht),{activePageKey:uo,activeCanvasKey:So}=(0,b.mf)(ht),zo=(0,b.KR)(ht),en=(0,b.Mo)(ht),mn=(0,b.hM)(ht),jn=uo&&!sdkStore.isTrashed(uo)&&sdkStore.getHotItem(uo),Oo=So&&!sdkStore.isTrashed(So)&&sdkStore.getHotItem(So);let Nn=So,es=uo;if(!jn||!Oo){if(jn&&!Oo){var zt,po;Nn=(zt=(po=sdkStore.getSubHotItemList(uo))==null||(po=po.filter(Fn=>{let{hotAttr:ts}=Fn;return(ts==null?void 0:ts.type)===Ce.x.Canvas&&!ts.asOverlay}).sort((Fn,ts)=>{var As,Is;return((As=Fn.hotAttr)==null?void 0:As.order)-((Is=ts.hotAttr)==null?void 0:Is.order)})[0])==null?void 0:po.key)!=null?zt:""}else if(!jn&&Oo){const Fn=sdkStore.getHotItem(Nn);Fn&&(es=Fn.sup)}else{const{activePageKey:Fn,activeCanvasKey:ts}=(0,O.u1)(oo);es=Fn,Nn=ts}if(!es){mn&&(setTimeout(()=>{var Fn;(Fn=MB)==null||Fn.notice({text:I18N.dUtils.no_canvas_cannot_be_previewed_on_combo,type:"warning"})},200),Mt({type:"runner:update:state",payload:{activePageKey:"",activeCanvasKey:""}}));return}if(Mt({type:"entry:runner:cleanup:audio"}),Mt({type:"runner:update:state",payload:{audioList:[],videoList:[],widgetStatusMap:{}}}),zo&&en&&(0,_.OO)(So)&&(Nn=(0,_.iK)([en],Nn)),Mt({type:"entry:runner:activate:canvas",payload:{pageKey:es,canvasKey:Nn}}),mn&&Mt({type:"entry:preview:zoom-quick-preview"}),!Nn){var Fo,Mn;const Fn=en&&((Fo=sdkStore.getHotItem(en))==null?void 0:Fo.hotAttr.bunch)==="rbPage";(Mn=MB)==null||Mn.notice({text:Fn?I18N.dUtils.no_canvas_cannot_be_previewed_on_muban:I18N.dUtils.no_artboard_cannot_be_previewed,type:"warning"})}}Nn&&(Mt({type:"entry:runner:update:basket:status:under",payload:{key:Nn}}),MB.runnerController.destroyScrollBarByCid(Nn)),Mt({type:"entry:update:preview:data",payload:{pageKey:es}})},"entry:preview:reload":async No=>{let{getState:ct,dispatch:Mt}=No;Mt({type:"entry:runner:cleanup:audio"}),Mt({type:"runner:update:state",payload:{audioList:[],videoList:[],widgetStatusMap:{}}}),Mt({type:"entry:update:preview:screenTreeData"});const ht=ct(),{activePageKey:oo,activeCanvasKey:uo}=(0,b.mf)(ht),So=(0,b.HA)(ht),zo=oo&&!sdkStore.isTrashed(oo)&&sdkStore.getHotItem(oo),en=uo&&!sdkStore.isTrashed(uo)&&sdkStore.getHotItem(uo);let mn=uo,jn=oo;if(!zo||!en){if(zo&&!en){var Oo,Nn;mn=(Oo=(Nn=sdkStore.getSubHotItemList(oo))==null||(Nn=Nn.find(zt=>{let{hotAttr:po}=zt;return(po==null?void 0:po.type)===Ce.x.Canvas&&!(po!=null&&po.asOverlay)}))==null?void 0:Nn.key)!=null?Oo:""}else if(!zo&&en){const zt=sdkStore.getHotItem(mn);zt&&(jn=zt.sup)}else{const{activePageKey:zt,activeCanvasKey:po}=(0,O.u1)(So);jn=zt,mn=po}if(Mt({type:"entry:runner:activate:canvas",payload:{pageKey:jn,canvasKey:mn}}),!mn){var es;(es=MB)==null||es.notice({text:"\u753B\u5E03\u65E0\u9875\u9762\uFF0C\u65E0\u6CD5\u9884\u89C8",type:"warning"})}}mn&&(Mt({type:"entry:runner:update:basket:status:under",payload:{key:mn}}),MB.runnerController.resetScreenScrollState(mn),MB.runnerController.destroyScrollBarByCid(mn)),Mt({type:"entry:update:preview:data",payload:{pageKey:jn}}),Mt({type:"runner:update:state",payload:{runnerCacheTag:Math.random()}})},"entry:preview:toggle:isHiddenToolBar":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:{value:oo,isSetTimeout:uo=!1}}=ct;const So=Mt(),{isSquare:zo,isEmbedV2:en,isHTMLZip:mn}=(0,b.bF)(So);if(!zo&&!en&&!mn&&(0,Lo.jo)())return;const jn=(0,h.sI)(So),Oo=(0,b.kM)(So),Nn=(0,b.KR)(So),es=(0,b.hM)(So),zt=(0,b.ub)(So),po=(0,b.Pf)(So),Fo=(0,b.U4)(So),Mn=(0,b.H5)(So);if(clearTimeout(Wo),Nn||es||zt||Mn||oo&&(!po||Fo))return;if(jn){ht({type:"preview:update:isHiddenToolBar",payload:!1});return}const Fn=Io()(oo)?oo:!Oo;if(uo&&Fn===!0){Wo=setTimeout(()=>{ht({type:"preview:update:isHiddenToolBar",payload:Fn})},2e3);return}ht({type:"preview:update:isHiddenToolBar",payload:Fn})},"entry:preview:update:current:sharing":(No,ct)=>{let{dispatch:Mt}=No,{payload:{sharing:ht}}=ct;const{screen_visible_switch:oo,screen_visible_list:uo}=ht;let So=uo;ht.type==="default"?(oo&&(So=(0,O.UG)(uo[0])),Mt({type:"preview:set:current-projectShare",payload:{projectShare:{...ht,screen_visible_list:So}}})):Mt({type:"preview:set:current-projectShare",payload:{projectShare:ht}})},"entry:preview:switch:page":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:oo}=ct;const uo=Mt(),{activePageKey:So,activeCanvasKey:zo}=(0,b.mf)(uo),en=(0,b.lR)(uo),mn=en.indexOf(zo);if(mn===-1)return;const jn=oo!=null&&oo.isPrev?mn-1:mn+1,Oo=en[jn];if(!Oo)return;ht({type:"entry:runner:activate:canvas",payload:{pageKey:So,canvasKey:Oo,transition:{name:"none",delay:0,duration:0,offset:100}}}),ht({type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}})},"entry:export:item":async(No,ct)=>{var Mt,ht;let{getState:oo,dispatch:uo}=No,{payload:{exportConfigList:So,itemToExportKeyList:zo}}=ct;uo({type:"preview:update:state",payload:{isWidgetBeingExported:!0}});const en=oo(),mn=(0,b.PL)(en).name,jn=(Mt=MB)!=null&&Mt.user||(ht=MB)!=null&&ht.currentOrg?(0,Ut.XB)(MB.user,MB.currentOrg,(0,b.PL)(en)):!0,Oo=[];for(const Nn of zo)for(const es of So)Oo.push({...es,hasWatermark:jn,itemKey:Nn});await(0,xt.WE)(Oo,mn,Nn=>(console.error(Nn),!0)),uo({type:"preview:update:state",payload:{isWidgetBeingExported:!1}})}},"entry:state:init":No=>{let{dispatch:ct}=No;ct({type:"user:set",payload:MB.user||void 0}),ct({type:"preview:current:update:state",payload:{org:MB.org}}),ct({type:"teams:refresh"})},"entry:sync-runner:set-screen":(No,ct)=>{let{dispatch:Mt,getState:ht}=No,{payload:{cid:oo}}=ct;const uo=ht(),{activePageKey:So}=(0,b.mf)(uo);if(oo===So)return;const{hotAttr:zo}=sdkStore.getHotItem(oo),en={cid:oo,...zo};Mt({type:"preview:current:update:state",payload:{screenMeta:en}}),MB.runnerController.clearTimerHandler(),Mt({type:"entry:runner:activate:canvas",payload:{pageKey:oo}})},"entry:preview:toggle:sharingManager":No=>{let{dispatch:ct,getState:Mt}=No;const ht=Mt(),oo=(0,b.H5)(ht);ct({type:"preview:sharingManager:update:state",payload:{isShowSharingManager:!oo}})}};var Kn=e(25813);const ds={id:null,name:"",email:"",avatar:"",plan:{state:"",type:"free",rawType:"free",daysLeft:""}},{getState:_s,setState:Ls,wrapEntry:gs}=(0,be.J$)(ds),ns={"user:set":gs((No,ct,Mt)=>{let{dispatch:ht}=ct,{payload:oo={}}=Mt;const{id:uo=null,name:So="",email:zo="",avatar:en="",created_at:mn}=oo;ht({type:"reducer:user:update",payload:(0,Kn.O1)(No,{id:uo,name:So,email:zo,avatar:en,plan:Wn(oo),created_at:mn})})})};function Wn(No){let{plan:ct,state:Mt,limitation:ht,days_left:oo}=No;return{state:Mt||"",type:Mt==="active"&&ct||"free",rawType:ct||"free",daysLeft:oo||""}}const Do={entryMap:ns,getState:_s,setState:Ls};var Go=e(10286),an=e(92907);const Mo={...Do.entryMap,"entry:comment:init:projectShare":async No=>{let{getState:ct,dispatch:Mt}=No;const ht=ct(),oo=(0,b.PL)(ht),uo=Kt(location.pathname);try{if(uo){const{sharing:So}=await(0,Go.J_)({project:oo});Mt({type:"preview:set:current-projectShare",payload:{projectShare:So}})}}catch(So){console.log("e",So)}},"entry:state:update:previewUserCommonGuidesData":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:{key:oo}}=ct;const uo=Mt(),So=(0,b.HW)(uo);if(!!(So!=null&&So.id)){let en=(0,b.Sy)(uo),mn=(0,b.sU)(uo);en.push(oo),en=Array.from(new Set(en)),(0,an.J)(JSON.stringify(en)),mn.includes(oo)&&(mn.splice(mn.findIndex(jn=>jn===oo),1),mn=Array.from(new Set(mn))),ht({type:"preview:current:update:state",payload:{previewCommonGuidesHasShown:en,previewCommonGuidesToBeShown:mn}})}}},Cn={user:(0,be.Tf)("reducer:user:update",Do)},Tn={activeCid:"",transition:{name:"slideleft",delay:0,duration:2e3,offset:100,callback:()=>null},history:[],currentScreenStateHistory:[],screenInfoMap:{},screenScrollTopMap:{},screenScrollLeftMap:{},audioList:[],videoList:[],widgetStatusMap:{},activeCanvasKey:"",activePageKey:"",basketCanvasMap:new Map,runnerCacheTag:0,tearStickyCacheTag:0,panelPreviewStateListCacheTag:0,basketScrollTopMap:{},basketScrollLeftMap:{},overlayStack:[]};function cn(No,ct){No===void 0&&(No=Tn);const{type:Mt,payload:ht}=ct;switch(Mt){case"runner:update:state":return{...No,...ht};case"runner:update:scroll-top":{const{screenMetaCid:oo,scrollTop:uo}=ht;return{...No,screenScrollTopMap:{...No.screenScrollTopMap,[oo]:uo}}}case"runner:update:scroll-left":{const{screenMetaCid:oo,scrollLeft:uo}=ht;return{...No,screenScrollLeftMap:{...No.screenScrollLeftMap,[oo]:uo}}}case"runner:update:basket:scroll-top":{const{basketKey:oo,scrollTop:uo}=ht;return{...No,basketScrollTopMap:{...No.basketScrollTopMap,[oo]:uo}}}case"runner:update:basket:scroll-left":{const{basketKey:oo,scrollLeft:uo}=ht;return{...No,basketScrollLeftMap:{...No.basketScrollLeftMap,[oo]:uo}}}case"runner:reset:basket:list:scroll":{const{keys:oo}=ht,uo=()=>{const So={};return oo.forEach(zo=>So[zo]=0),So};return{...No,basketScrollLeftMap:{...No.basketScrollLeftMap,...uo()},basketScrollTopMap:{...No.basketScrollTopMap,...uo()}}}case"runner:reset:basket:scroll":return{...No,basketScrollTopMap:{},basketScrollLeftMap:{}};case"runner:reset:state":return Tn;case"runner:reset:state:except:history":return{...Tn,history:No.history};default:return No}}const bs={rootProject:null,projectMeta:null,screenGlue:null,isPanelPreviewMode:!1,isPreviewCombo:!1,panelPreviewBasketKey:null,projectShare:null,previewCommonGuidesHasShown:[],previewCommonGuidesToBeShown:[],screenMetaList:[],folderTreeData:null,screenTreeData:null,refreshCount:0,STRenderArea:[0,0],org:null,isQuickPreview:!1,quickPreviewSize:null,isPreviewAIComponent:!1,previewViewMode:"device"};function Vn(No,ct){No===void 0&&(No=bs);const{type:Mt,payload:ht}=ct;switch(Mt){case"preview:current:update:state":return{...No,...ht};case"preview:set:root-project":return{...No,rootProject:ht.rootProject};case"preview:set:current-projectShare":return{...No,projectShare:ht.projectShare};case"preview:screenMetaList:set":return{...No,screenMetaList:ht.screenMetaList};case"preview:refreshCount:update":return{...No,refreshCount:No.refreshCount+1};case"preview:set:STRenderArea":return{...No,STRenderArea:ht.STRenderArea};case"update:org:member:list":{const{orgMembers:oo}=ht;return{...No,org:{...No.org,members:oo}}}case"current:update:previewViewMode":return{...No,previewViewMode:ht.previewViewMode};default:return No}}const ti={isSpaceDown:!1,isShiftDown:!1},oi={isDesktop:!0,isInApp:!1,isMobile:!1,isIOSClient:!1,isStandAlone:!1,isEmbedV1:!1,isHTMLZip:!1,isSquare:!1},Gt={isShowNewVersionArtboardGuide:!1},Rs="preview_layer_panel_height",Xs={previewOptions:oi,designOptions:{},guideOptions:Gt,offset:{x:0,y:0},currentScreenOriginOffset:{x:0,y:0},scale:100,hasChangedScaleManually:!1,keyFlags:ti,viewport:{width:0,height:0,left:0,top:0},preference:{},previewPanelNavIndex:0,screenCommentThreadCountMap:null,panelHeight:(0,Ne.Yt)(Rs,window.innerHeight*.6,Ne.qW.Number),isHiddenToolBar:!1,leftPaneWidth:We.sR,isWidgetBeingExported:!1,rightPaneWidth:We.xM,collapsedRBPageKeySet:new Set,shellContainer:{width:0,height:0}};function Ti(No,ct){No===void 0&&(No=Xs);const{type:Mt,payload:ht}=ct;switch(Mt){case"preview:update:state":return{...No,...ht};case"preview:set:canvas:offset":return{...No,offset:ht.offset};case"preview:set:canvas:currentScreenOriginOffset":return{...No,currentScreenOriginOffset:ht.currentScreenOriginOffset};case"preview:set:scale":return{...No,scale:ht.scale};case"preview:set:key:flags":return{...No,keyFlags:{...ti,...ht}};case"preview:reset:key:flags":return{...No,keyFlags:ti};case"preview:scrollbar:viewport":return{...No,viewport:ht};case"preview:previewPanel:navindex":return{...No,previewPanelNavIndex:ht.previewPanelNavIndex};case"preview:update:preference":return{...No,preference:{...No.preference,...ht}};case"preview:comment:update:screen_count_map":return{...No,screenCommentThreadCountMap:ht.screenCommentThreadCountMap||null};case"preview:panel:set:height":{const{panelHeight:oo}=ht;return(0,Ne.a0)(Rs,oo,Ne.qW.Number),{...No,panelHeight:oo}}case"preview:update:guideOptions":return{...No,guideOptions:{...No.guideOptions,...ht}};case"preview:update:isHiddenToolBar":return{...No,isHiddenToolBar:ht};case"preview:set:canvas:offset:dev":return{...No,offset:{...No.offset,...ht.offset}};case"preview:set:leftPaneWidth":return ht.projectCid&&(0,Ne.a0)("preview_layer_left_panel_width_"+ht.projectCid,ht.leftPaneWidth,Ne.qW.Number),{...No,leftPaneWidth:ht.leftPaneWidth};case"preview:set:rightPaneWidth":return ht.projectCid&&(0,Ne.a0)("preview_layer_right_panel_width_"+ht.projectCid,ht.rightPaneWidth,Ne.qW.Number),{...No,rightPaneWidth:ht.rightPaneWidth};case"preview:set:shellContainer":return{...No,shellContainer:ht.shellContainer};case"preview:set:collapsedRBPageKeySet":return{...No,collapsedRBPageKeySet:ht.collapsedRBPageKeySet};default:return No}}var di=e(56207),vs=e(8580);const ei={toolbarActiveItem:di.$y,isFullScreenMode:!1,simulatorType:"device",isShowShell:!0,isStickyShow:!0,isStickyAvailable:!0,isHighlight:!0,isStatePanelShow:!0,isOutsideVisible:!1,isShowOutsideArtboardNav:!1,isMinimized:(0,Ne.Yt)("is_minized",!1,Ne.qW.Boolean),isShowRightPane:(0,Ne.Yt)("is_show_rightpane",!0,Ne.qW.Boolean),appVersion:"",isDummyApk:!1,isShowSplash:!1,theme:We.Sx.LIGHT,isFromSharing:(0,Ft.IB)(),isFromAbar:(0,vs.BG)()};function Si(No,ct){No===void 0&&(No=ei);let{type:Mt,payload:ht}=ct;switch(Mt){case"reducer:preview-toolbar:update":return{...No,...ht};case"reducer:preview-toolbar:fullscreen":return{...No,isFullScreenMode:ht.isFullScreenMode};case"reducer:preview-toolbar:update:highlight":return{...No,isHighlight:ht.isHighlight};default:return No}}const Gs={preOpenHyperlinkModal:{isOpen:!1},imagePreviewModal:{isOpen:!1}};function Vs(No,ct){No===void 0&&(No=Gs);const{type:Mt,payload:ht}=ct;switch(Mt){case"previewModal:update:state":return{...No,...ht};case"previewModal:reset:state":return Gs;case"previewModal:reset:popup:state":{const{modalName:oo}=ht;return{...No,[oo]:Gs[oo]}}default:return No}}const ps={isShowSharingManager:!1};function kn(No,ct){No===void 0&&(No=ps);const{type:Mt,payload:ht}=ct;switch(Mt){case"preview:sharingManager:update:state":return{...No,...ht};default:return No}}var zn=e(90743);const hs={current:Vn,common:Ti,modals:Vs,previewSetting:Si,runner:cn,sharingManager:kn,draft:zn.A};var Ss=e(86899);const fi={STMode:!1,activeTearPreview:null,tearOffset:{left:0,top:0}};function ri(No,ct){No===void 0&&(No=fi);const{type:Mt,payload:ht}=ct;switch(Mt){case"ST:update":return Object.assign({},No,ht);default:return No}}const Li={"entry:ST:STMode:toggle":No=>{let{getState:ct,dispatch:Mt}=No;const ht=(0,Ve.Lc)(ct());Mt({type:"ST:update",payload:{STMode:!ht}})}};var ji=e(13780),_t=e(20592),Aa=e(17534),Ki=e(2302),bi=e(58197),sa=e(96343),Zi=e(8907),Fa=e(64726),to=e(88223),Qt=e(66976);const Sn=No=>{const ct=(0,b.X_)(No),Mt=(0,b.ER)(No);return{scale:ct/100,offset:Mt}},Vo={...pt.u,"entry:comment:rebuild:commentList":No=>{let{dispatch:ct}=No;const Mt=rootSdk.cmtStore.getSubHotItemList("C@main").filter(oo=>oo.hotAttr.type==="cCmtPack"),ht=[];Mt.forEach(oo=>{oo.sub.forEach(uo=>{const So=rootSdk.cmtStore.getHotItem(uo),zo=(0,sa.Bt)(So);So.sub.forEach(en=>{const mn=rootSdk.cmtStore.getHotItem(en);zo.comments.push((0,sa.gR)(mn))}),ht.push(zo)})}),ct({type:"comment:update:allCommentList",payload:{allCommentList:ht}})},"entry:comment:mousedown":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:{event:oo}}=ct;const uo=Mt(),So=(0,h.sI)(uo),zo=(0,b.mf)(uo);if(So){const en=document.querySelector("#preview-content-container .zoom-area");if(!en)return;const mn=en.getBoundingClientRect(),{x:jn,y:Oo,width:Nn,height:es}=mn,zt=bi.rw.xywh(jn,Oo,Nn,es),po=Ki.Z.xy(oo.clientX,oo.clientY);if(bi.rw.contains(zt,po)){const{activeCanvasKey:Fo}=zo,Mn=document.querySelector('#preview-content-container div[data-cid="'+Fo+'"]').getBoundingClientRect(),{x:Fn,y:ts,width:As,height:Is}=Mn,io=bi.rw.xywh(Fn,ts,As,Is),Jo=Ki.Z.xy(oo.clientX,oo.clientY);bi.rw.contains(io,Jo)?ht({type:"entry:comment:create:mousedown",payload:{event:oo}}):ht({type:"entry:comment:empty:mousedown",payload:{event:oo}})}else ht({type:"entry:comment:empty:mousedown",payload:{event:oo}})}},"entry:comment:create:mousedown":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:{event:oo}}=ct;const uo=Mt(),So=(0,h.sI)(uo),zo=(0,b.mf)(uo),en=(0,h.nO)(uo),mn=(0,h.fd)(uo),jn=(0,h.YW)(uo),Oo=(0,h.CI)(uo),Nn=(0,h.Cb)(uo),es=(0,h.V8)(uo);if((0,sa.m0)(oo)){en&&ht({type:"comment:update:startCommentAnchorPoint",payload:{startCommentAnchorPoint:null}}),mn&&ht({type:"entry:comment:benot-dragging"});return}if(jn)return;const zt=(0,pt.F)();if(zt){ht({type:"entry:comment:wigglingCommentCid",payload:{wigglingCommentCid:zt}});return}if(es){ht({type:"entry:comment:clear"});return}if(Nn){const us=Oo.find(bn=>bn.cid===Nn);if(us){const{comments:bn}=us,Gn=(0,h.Ou)(uo);[us,...bn].find(Es=>Es.cid===Gn)&&ht({type:"comment:update:editingRecordCid",payload:{editingRecordCid:""}})}ht({type:"comment:update:activeCommentCid",payload:{activeCommentCid:""}});return}if(!So)return;const po=Sn(uo),{activePageKey:Fo,activeCanvasKey:Mn,screenScrollLeftMap:Fn,screenScrollTopMap:ts}=zo,As=Ki.Z.xy(oo.clientX,oo.clientY),Is=Fn[Mn],io=ts[Mn],Jo=(0,sa.v0)(As,Mn,po,Is,io),Zo=(0,sa._p)(Jo,Mn,{offset:{x:0,y:0},scale:1}),{user:Un}=window.MB,On={threadType:"point",cid:(0,Aa.xc)(),isCompleted:!1,comments:[],screenCid:Fo,canvasCid:Mn,canvasVec2:Jo,message:"",x:Zo.x,y:Zo.y,w:0,h:0,z:1,userInfo:Un,userId:Un==null?void 0:Un.id,vec2:Zo,rect:null,status:"creating"};ht({type:"comment:update:startCommentAnchorPoint",payload:{startCommentAnchorPoint:Zo}}),ht({type:"comment:update:creatingComment",payload:{creatingComment:On}}),MB.runnerController.scrollHandler.toggleScrollBar(!1)},"entry:comment:create:mousemove":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:{event:oo}}=ct;const uo=Mt(),So=(0,h.nO)(uo),zo=Sn(uo),en=(0,b.mf)(uo);if(!So)return;let mn=(0,h.V8)(uo);if(!mn)return;const{activePageKey:jn,activeCanvasKey:Oo,screenScrollLeftMap:Nn,screenScrollTopMap:es}=en,zt=Ki.Z.xy(oo.clientX,oo.clientY),po=Nn[Oo],Fo=es[Oo],Mn=(0,sa.v0)(zt,Oo,zo,po,Fo),Fn=(0,sa._p)(Mn,Oo,{offset:{x:0,y:0},scale:1});if(Ki.Z.distance(So,Fn)<5)mn={threadType:"point",...mn,screenCid:jn,canvasVec2:Mn,vec2:Fn,rect:null,x:Fn.x,y:Fn.y,w:0,h:0,canvasCid:Oo||""};else{const{x:As,y:Is}=So,{x:io,y:Jo}=Fn,Zo={x:As<=io?As:io,y:Is<=Jo?Is:Jo,w:Math.abs(io-As),h:Math.abs(Jo-Is),rotate:0},Un=(0,sa.vl)(Zo,Oo);mn={...mn,threadType:"frame",vec2:null,rect:Zo,x:As<=io?As:io,y:Is<=Jo?Is:Jo,w:Math.abs(io-As),h:Math.abs(Jo-Is),canvasVec2:Un,canvasCid:Oo||""}}ht({type:"comment:update:creatingComment",payload:{creatingComment:mn}})},"entry:comment:create:mouseup":No=>{let{getState:ct,dispatch:Mt}=No;const ht=ct();if(!(0,h.nO)(ht))return;Mt({type:"comment:update:isCommentDragging",payload:{isCommentDragging:!1}});const uo=(0,h.V8)(ht);uo&&(Mt({type:"comment:update:activeCommentCid",payload:{activeCommentCid:uo.cid}}),Mt({type:"comment:update:editorRawContentObject",payload:{editorRawContentObject:{}}}),Mt({type:"comment:update:editorIsEditing",payload:{editorIsEditing:!0}}),Mt({type:"comment:update:editingCommentCid",payload:{editingCommentCid:uo.cid}})),Mt({type:"comment:update:startCommentAnchorPoint",payload:{startCommentAnchorPoint:null}})},"entry:comment:anchor:mousedown":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:{event:oo,comment:uo}}=ct;if(!uo||(uo==null?void 0:uo.status)==="creating")return;const So=Mt(),zo=(0,h.CI)(So),en=(0,h.Cb)(So),mn=(0,h.V8)(So),jn=(0,h.az)(So),Oo={x:oo.clientX,y:oo.clientY},Nn={...uo},es=(0,pt.F)();if(es){ht({type:"entry:comment:wigglingCommentCid",payload:{wigglingCommentCid:es}});return}mn&&ht({type:"comment:update:creatingComment",payload:{creatingComment:null}});let zt;(0,to.FJ)({onPointerDown:()=>{uo.cid===jn&&ht({type:"entry:comment:clear"}),zt=zo.find(po=>po.cid===uo.cid)},onDragStart:()=>{!(0,Ft.OB)()&&!MB.canEditByCurrentUser||ht({type:"entry:comment:be-dragging"})},onDrag:(po,Fo)=>{!(0,Ft.OB)()&&!MB.canEditByCurrentUser||ht({type:"entry:comment:drag",payload:{cid:uo.cid,prevComment:Nn,prevPoint:Oo,curPoint:{x:po,y:Fo}}})},onDrop:(po,Fo)=>{const Mn=Nn&&Nn.cid;if(Fo&&!en&&ht({type:"comment:update:activeCommentCid",payload:{activeCommentCid:uo.cid}}),Fo&&uo.cid===Mn&&["created","checked"].includes(uo.status)?uo.cid===en?ht({type:"comment:update:activeCommentCid",payload:{activeCommentCid:""}}):ht({type:"comment:update:activeCommentCid",payload:{activeCommentCid:uo.cid}}):ht({type:"comment:update:activeCommentCid",payload:{activeCommentCid:uo.cid}}),!zt)return;const{canvasCid:Fn,cid:ts,threadType:As}=zt;let Is=!1;if(As==="point"){const{hotAttr:{x:io,y:Jo}}=rootSdk.cmtStore.getHotItem(ts),Zo=Ki.Z.xy(io,Jo);Is=(0,Qt.Tg)(Zo,Fn)&&!0}else if(As==="frame"){const{hotAttr:{x:io,y:Jo,w:Zo,h:Un}}=rootSdk.cmtStore.getHotItem(ts),On=[io,Jo,io+Zo,Jo+Un];Is=(0,Qt.TW)(On,Fn)&&!0}if(!Is){const io={x:zt.x,y:zt.y,canvasVec2:zt.canvasVec2};ht({type:"entry:comment:update:item",payload:{cid:zt.cid,attr:io}})}setTimeout(()=>{ht({type:"entry:comment:benot-dragging",payload:{cid:uo.cid,undo:!0}})},16.7)}})},"entry:comment:be-dragging":No=>{let{dispatch:ct}=No;ct({type:"comment:update:isCommentDragging",payload:{isCommentDragging:!0}})},"entry:comment:drag":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:{cid:oo,prevComment:uo,prevPoint:So,curPoint:zo,vec2Delta:en}}=ct;const mn=Mt(),jn=(0,h.CI)(mn),Oo=Sn(mn),Nn=(0,b.dK)(mn),es=(0,b.mf)(mn);if(!jn.find(io=>io.cid===oo))return;const{activeCanvasKey:po}=es;let Fo,Mn;if(Nn){const[io,Jo]=(0,sa.RR)(So,zo,!0,!1);Fo=Jo.x-io.x,Mn=Jo.y-io.y}else Fo=zo.x-So.x,Mn=zo.y-So.y;const Fn=Ki.Z.xy(Fo,Mn),ts=ji.L.applyInverse(Oo,Ki.Z.add(ji.L.apply(Oo,uo.canvasVec2),Fn)),As=(0,sa._p)(ts,po,{offset:{x:0,y:0},scale:1}),Is={x:As.x,y:As.y,canvasVec2:ts};ht({type:"entry:comment:update:item",payload:{cid:oo,attr:Is}})},"entry:comment:benot-dragging":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:oo}=ct;ht({type:"comment:update:isCommentDragging",payload:{isCommentDragging:!1}})},"entry:comment:resize":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:{cid:oo,rect:uo,screenRect:So}}=ct;const zo=Mt(),en=(0,h.CI)(zo),mn=(0,b.mf)(zo);if(!en.find(As=>As.cid===oo))return;const{activeCanvasKey:Oo}=mn,{x:Nn,y:es,w:zt,h:po}=So,Fo=[Nn,es,Nn+zt,es+po],Mn=document.querySelector("#preview-content-container .zoom-area").getBoundingClientRect(),Fn=[0,0,Mn.width,Mn.height];if((0,_t.cj)(Fn,Fo)){const As=bi.rw.enclosingRects([uo]),Is=(0,sa.vl)(uo,Oo),io={x:As.x,y:As.y,w:As.w,h:As.h,canvasVec2:Is,canvasCid:Oo||""};ht({type:"entry:comment:update:item",payload:{cid:oo,attr:io}})}},"entry:comment:cancel":No=>{let{getState:ct,dispatch:Mt}=No;Mt({type:"entry:comment:clear"})},"entry:comment:confirm":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:{cid:oo}}=ct;const uo=Mt(),So=(0,h.V8)(uo),zo=(0,h.CI)(uo),en=(0,h.uX)(uo),mn=So||zo.find(Fn=>Fn.cid===oo);if(!mn)return;const{user:jn,members:Oo=[]}=window.MB,{content:Nn,replyUserCid:es,userCids:zt}=(0,sa.bL)(en);let po="";const Fo=zt.concat(es).filter(Boolean);if(So)po=Fo.length>0?"appointed":"comment";else{po=Fo.length>0?"replied_appoint":"replied_comment";const{userInfo:Fn}=mn;if(jn.cid!==Fn.cid){const ts=Oo.find(As=>As.user_cid===Fn.cid);ts&&(Fn.name=ts.name,Fn.avatar=ts.avatar,Fn.email=ts.email),Fn.cid}}const Mn=(0,Zi.qn)(en);ht({type:"entry:comment:noticeAtUsers",payload:{content:Nn,noticeType:po,userCids:Fo,commentCid:oo}}),ht(So?{type:"entry:comment:init:item",payload:{type:"thread",curComment:mn,message:Mn}}:{type:"entry:comment:init:item",payload:{type:"content",curComment:mn,message:Mn}}),ht({type:"comment:update:creatingComment",payload:{creatingComment:null}}),ht({type:"comment:update:editorRawContentObject",payload:{editorRawContentObject:{}}}),ht({type:"comment:update:editorIsEditing",payload:{editorIsEditing:!1}}),ht({type:"comment:update:editingCommentCid",payload:{editingCommentCid:""}}),ht({type:"comment:update:startCommentAnchorPoint",payload:{startCommentAnchorPoint:null}}),MB.runnerController.scrollHandler.toggleScrollBar(!0)},"entry:comment:delete":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:{cid:oo}}=ct;const uo=Mt(),So=(0,h.CI)(uo);if(!oo)return;const zo=So.find(jn=>jn.cid===oo);if(!zo)return;const{userInfo:en}=zo,{user:mn}=window.MB;if(mn.cid!==en.cid){MB.notice({text:"\u5220\u9664\u8BC4\u8BBA\u6743\u9650\u4E0D\u8DB3"});return}ht({type:"entry:comment:del:item",payload:{cid:oo}}),ht({type:"comment:update:activeCommentCid",payload:{activeCommentCid:""}}),ht({type:"comment:update:editingCommentCid",payload:{editingCommentCid:""}}),ht({type:"comment:update:editingRecordCid",payload:{editingRecordCid:""}})},"entry:comment:record:editing":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:{cid:oo,recordCid:uo}}=ct;const So=Mt(),en=(0,h.CI)(So).find(jn=>jn.cid===oo);!en||![...en.comments,en].find(jn=>jn.cid===uo)||(ht({type:"comment:update:editorIsEditing",payload:{editorIsEditing:!1}}),ht({type:"comment:update:editingCommentCid",payload:{editingCommentCid:""}}),ht({type:"comment:update:editingRecordCid",payload:{editingRecordCid:uo}}),MB.runnerController.scrollHandler.toggleScrollBar(!1))},"entry:comment:record:delete":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:{cid:oo,recordCid:uo}}=ct;const So=Mt(),en=(0,h.CI)(So).find(jn=>jn.cid===oo);!en||![...en.comments,en].find(jn=>jn.cid===uo)||(ht({type:"entry:comment:del:item",payload:{cid:uo||oo}}),ht({type:"comment:update:editingRecordCid",payload:{editingRecordCid:""}}))},"entry:comment:record:confirm":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:{cid:oo,recordCid:uo,rawContent:So}}=ct;const zo=Mt(),mn=(0,h.CI)(zo).find(Fn=>Fn.cid===oo);if(!mn)return;let jn=-1,Oo=null;if(mn.cid===uo?Oo=mn:mn.comments.forEach((Fn,ts)=>{Fn.cid===uo&&(jn=ts,Oo=Fn)}),!Oo)return;const{content:Nn,replyUserCid:es,userCids:zt}=(0,sa.bL)(So),po=zt.concat(es).filter(Boolean);let Fo="";jn===-1?(Fo="comment",po.length>0&&(Fo="appointed")):(Fo="replied_comment",po.length>0&&(Fo="replied_appoint")),ht({type:"entry:comment:noticeAtUsers",payload:{content:Nn,noticeType:Fo,userCids:po,commentCid:oo}});const Mn={message:So,mtime:rootSdk.fssCmt.getClockStore().getMtime()};ht({type:"entry:comment:update:item",payload:{cid:uo||oo,attr:Mn}}),ht({type:"comment:update:editingRecordCid",payload:{editingRecordCid:""}}),MB.runnerController.scrollHandler.toggleScrollBar(!0)},"entry:comment:record:cancel":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:{cid:oo,recordCid:uo}}=ct;const So=Mt(),en=(0,h.CI)(So).find(Oo=>Oo.cid===oo);!en||![en,...en.comments].find(Oo=>Oo.cid===uo)||!(0,h.Ou)(So)||(ht({type:"comment:update:editingRecordCid",payload:{editingRecordCid:""}}),MB.runnerController.scrollHandler.toggleScrollBar(!0))},"entry:comment:noticeAtUsers":(No,ct)=>{let{getState:Mt}=No,{payload:{content:ht,noticeType:oo,userCids:uo,commentCid:So}}=ct;const zo=Mt(),en=(0,b.PL)(zo),mn=(0,b.mf)(zo),{activePageKey:jn}=mn,Oo=en.cid;Fa.A.noticeCommentAtUsers({projectCid:Oo,noticeType:oo,userCids:uo,content:ht,screenCid:jn,commentCid:So})},"entry:comment:rightPanel:active":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:{commentCid:oo}}=ct;const uo=Mt();(0,h.CI)(uo).find(en=>en.cid===oo)&&ht({type:"comment:update:activeCommentCid",payload:{activeCommentCid:oo}})},"entry:comment:update:atStyle":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:{dom:oo}}=ct;const uo=document.querySelector("#preview-comment-view-container"),So=(0,sa.GY)(oo,uo),zo=So.left+16,en=So.top+16+20;ht({type:"comment:update:atStyle",payload:{atStyle:{top:en,left:zo}}})},"entry:comment:update:emojiToastStyle":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:{event:oo,scrollTop:uo,dom:So}}=ct;const zo=document.querySelector("#preview-comment-view-container"),en=(0,sa.GY)(So,zo),mn=en.left-20,jn=en.top-uo+59;ht({type:"comment:update:emojiToastStyle",payload:{emojiToastStyle:{left:mn,top:jn}}})},"entry:comment:update:view-container-style":No=>{let{getState:ct,dispatch:Mt}=No;const ht=document.getElementById("preview-comment-view-container");if(!ht)return;const oo=ct(),uo=(0,b.mf)(oo),So=(0,b.X_)(oo),{activeCanvasKey:zo,screenScrollTopMap:en,screenScrollLeftMap:mn}=uo,jn=en[zo],Oo=mn[zo];ht.style.transform="translateY("+jn*So/100+"px) translateX("+Oo*So/100+"px)",Mt({type:"entry:comment:show-or-hide:anchor-node"})},"entry:comment:show-or-hide:anchor-node":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:oo}=ct;const uo=document.querySelectorAll("#preview-comment-view-container .comment-anchor-container");if(uo.length===0)return;const So=Mt(),zo=(0,b.mf)(So),{activeCanvasKey:en}=zo,mn=document.querySelector("#pscreen"+en+" .screen-content"),jn=document.querySelector("#pscreen"+en+" .screen-content .widgets"),Oo=(0,b.X_)(So);if(!mn||!jn)return;const Nn=(parseFloat(jn==null?void 0:jn.style.top)||0)*Oo/100,es=(parseFloat(jn==null?void 0:jn.style.left)||0)*Oo/100,zt=mn.clientHeight*Oo/100,po=mn.clientWidth*Oo/100;uo.forEach(Fo=>{if(Fo.classList.contains("point")){const Mn=parseFloat(Fo.style.top),Fn=parseFloat(Fo.style.left);Nn+Mn+sa.xb<0||Nn+Mn-sa.xb>zt||es+Fn<0||es+Fn+sa.yG>po?Fo.style.display="none":Fo.style.display="block"}else{const Mn=parseFloat(Fo.style.top),Fn=parseFloat(Fo.style.left),ts=parseFloat(Fo.clientWidth),As=parseFloat(Fo.clientHeight);Nn+Mn<=0&&Nn+Mn+As<0||Nn+Mn>zt&&Nn+Mn+As>zt||es+Fn<0&&es+Fn+ts<0||es+Fn>po&&es+Fn+ts>po?Fo.style.visibility="hidden":Fo.style.visibility="inherit"}})},"entry:comment:empty:mousedown":(No,ct)=>{let{getState:Mt,dispatch:ht}=No,{payload:{event:oo}}=ct;const uo=Mt(),So=(0,h.nO)(uo),zo=(0,h.fd)(uo);if((0,sa.m0)(oo)){So&&ht({type:"comment:update:startCommentAnchorPoint",payload:{startCommentAnchorPoint:null}}),zo&&ht({type:"entry:comment:benot-dragging"});return}const en=(0,pt.F)();if(en){ht({type:"entry:comment:wigglingCommentCid",payload:{wigglingCommentCid:en}});return}ht({type:"entry:comment:clear"})}};var ho=e(60591),Uo=e(60875);const pn=(0,Le.tY)({}),ys=()=>{const No={...Mo,...Vo,...sn,...Li},ct={model:(0,re.HY)(Cn),comment:Ss.A,container:(0,re.HY)(hs),ST:ri,watermark:ho.A},{middleware:Mt,setEntryMap:ht}=(0,be.RZ)();return ht(No),{store:(0,re.y$)((0,re.HY)(ct),pn((0,re.Tw)(Mt,Uo.v)))}};var Dn=e(57716),Hs=e(21676),Qn=e(55793),Gi=e(54852),oa=e(44622),ta=e(39271),Sa=e(57464);const La=No=>{class ct extends m.PureComponent{constructor(oo){super(oo),(0,o.A)(this,"abarHandleOnMessage",Mn=>{(0,vs.cS)(Mn,null,!0)}),this.state={isZero:!1};const{previewMode:uo,projectAlike:So,activePageKey:zo,activeCanvasKey:en,isPanelPreviewMode:mn,isCommunityComboPreview:jn,basketKey:Oo,activeWidgetKey:Nn,projectShare:es,isPreviewCombo:zt,isQuickPreview:po,quickPreviewSize:Fo}=oo;MB.currentProject=So,(0,vs.et)(So);try{const Mn=(0,ta.rV)(zo);if(!mn&&!zt&&(0,oa.lB)(es)){this.state={isZero:!0};return}MB.runnerController.init({rootProject:So,activePageKey:Mn,activeCanvasKey:en,basketKey:Oo,activeWidgetKey:Nn},uo,mn,jn,es,zt,po,Fo)}catch(Mn){this.state={isZero:!0}}}componentDidMount(){(0,vs.KA)(),(0,vs.BG)()&&window.addEventListener("message",this.abarHandleOnMessage,!1)}componentWillUnmount(){var oo;(oo=MB.runnerController)==null||oo.clear(),(0,vs.BG)()&&window.removeEventListener("message",this.abarHandleOnMessage,!1)}render(){const{isZero:oo}=this.state;if(oo)return(0,Qn.V)();const{store:uo,theme:So,onCloseModal:zo,onLunch:en}=this.props;return(0,Sa.jsx)(g.Kq,{store:uo,children:(0,Sa.jsx)(Hs.NP,{theme:Dn.A[So],children:(0,Sa.jsx)(l.D.Provider,{value:So,children:(0,Sa.jsx)(No,{onCloseModal:zo,onLunch:en})})})})}}const Mt=(0,C.Mz)([b.m5,b.UB],(ht,oo)=>({theme:ht,projectShare:oo}));return(0,g.Ng)(ht=>Mt(ht))(ct)},ya=No=>{const ct=La(No);return ht=>(0,Sa.jsx)(Gi.A,{children:(0,Sa.jsx)(ct,{...ht})})},Ja=No=>{const ct=ys(),Mt=(0,H.e)(),ht=new te(ct,Mt,MB.f),oo=ya(No);return{runnerController:ht,messageBucket:Mt,webpackInterface:ct,PreviewApp:oo}}},62643:(Et,ke,e)=>{"use strict";e.d(ke,{Lc:()=>o,nC:()=>m,yc:()=>g});const o=l=>l.ST.STMode,m=l=>l.ST.activeTearPreview,g=l=>l.ST.tearOffset},64334:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>jo});var o=e(72605),m=e(91560),g=e(74059),l=e(51044),C=e(19418),T=e(86634),A=e.n(T),k=e(85880),p=e(73387),r=e(63686),x=e(50881),f=e(57464);const u=Kt=>{let{scale:Ft,dispatch:nt,isFullScreenMode:Rt,isSquare:yt,isEmbedV2:Jt,isCommunityComboPreview:vo,theme:Yo}=Kt;const Ho=()=>{nt({type:"entry:preview:zoom-in"})},kt=()=>{nt({type:"entry:preview:zoom-out"})},Ze=st=>{nt({type:"entry:preview:set:scale",payload:{scale:st}})},it=()=>{nt({type:"preview:update:state",payload:{hasChangedScaleManually:!1}}),nt({type:"entry:auto-fit:preview:scale"})};return(0,f.jsx)(x.j,{isReadOnly:!1,isFullScreenMode:Rt,scale:Ft,theme:Yo,isEmbedV2Preview:Jt,isCommunityPreview:yt,isCommunityComboPreview:vo,handleZoomIn:Ho,handleZoomOut:kt,handleZoomInitialScale:it,handleZoomSpecifiedScale:Ze,dispatch:nt})},b=(0,r.Mz)([m.St,m.Ph,m.ub,m.m5],(Kt,Ft,nt,Rt)=>({scale:Kt,isFullScreenMode:Ft,isCommunityComboPreview:nt,theme:Rt})),h=(0,o.Ng)(Kt=>b(Kt))(u);var E=e(7290),N=e(11777),z=e(89535),S=e(21676);const _=S.Ay.a.withConfig({displayName:"styles__StyledSimulatorDisplayModeNav",componentId:"sc-1moc13t-0"})(["position:relative;width:32px;height:36px;display:flex;justify-content:center;align-items:center;border:2px solid ",";background:",";transition:all 0.2s ease-out;cursor:pointer;.svg-icon{color:#fff;}"],Kt=>Kt.theme.color_proto,Kt=>Kt.theme.color_proto),y=S.Ay.ul.withConfig({displayName:"styles__StyledSimulatorDisplay",componentId:"sc-1moc13t-1"})(["list-style:none;position:absolute;padding:4px 0;width:108px;top:125px;left:calc(100% + 8px);background:",";box-shadow:0 2px 10px 0 rgba(39,54,78,0.08),0 12px 40px 0 rgba(39,54,78,0.1);border-radius:2px;.option{display:flex;align-items:center;height:32px;padding:0 12px;color:",";transition:all 0.2s ease-out;cursor:pointer;.outside_artboard-icon{width:19px;height:16px;}.option-icon-box{display:flex;align-items:center;justify-content:center;width:22px;height:22px;margin-right:2px;}.svg-icon{transition:all 0.2s ease-out;color:",";}:hover{background:",";color:",";}&.active{background:",";color:",";.svg-icon{color:",";}}}"],Kt=>Kt.theme.color_bg_white,Kt=>Kt.theme.color_text_L2,Kt=>Kt.theme.color_text_L2,Kt=>Kt.theme.color_btn_secondary_active,Kt=>Kt.theme.color_proto,Kt=>Kt.theme.color_bg_canvas,Kt=>Kt.theme.color_proto,Kt=>Kt.theme.color_proto);class a extends l.PureComponent{constructor(){var Ft;super(...arguments),Ft=this,(0,g.A)(this,"state",{isShowList:!1}),(0,g.A)(this,"OPTION_LIST",[{iconName:"art_board/preview/device",value:"device",label:I18N.pMainContent.prd_device,tooptipTitle:I18N.pMainContent.prd_device_des},{iconName:"art_board/preview/long_page",value:"long_page",label:I18N.pMainContent.prd_page,tooptipTitle:I18N.pMainContent.prd_page_des},{iconName:"art_board/preview/outside_artboard",value:"outside_artboard",label:I18N.pMainContent.prd_prd,tooptipTitle:I18N.pMainContent.prd_prd_des}]),(0,g.A)(this,"handleToggleDisplayMode",nt=>{nt.stopPropagation();const{dispatch:Rt}=this.props,yt=nt.currentTarget.dataset.value;Rt({type:"entry:preview-setting:update:simulatorType",payload:{simulatorType:yt}})}),(0,g.A)(this,"handleClickModeNav",nt=>{nt.stopPropagation(),this.handleToggleShow()}),(0,g.A)(this,"handleToggleShow",function(nt){nt===void 0&&(nt=void 0);const{isShowList:Rt}=Ft.state,yt=nt===void 0?!Rt:nt;Ft.setState({isShowList:yt})}),(0,g.A)(this,"handleClickOutSide",nt=>{let{target:Rt}=nt;const{isShowList:yt}=this.state;yt&&(Rt.closest(".modeNav")||Rt.closest(".display-mode-list")||this.handleToggleShow(!1))})}render(){const{simulatorType:Ft,isInspect:nt,isShowOutsideArtboardNav:Rt}=this.props,{OPTION_LIST:yt}=this,{isShowList:Jt}=this.state;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(N.A,{content:I18N.imockSharing.preview_mode,direction:"right",children:(0,f.jsx)(_,{className:"nav modeNav",onClick:this.handleClickModeNav,children:(0,f.jsx)(E.C,{name:"art_board/preview/"+Ft,className:"mode-icon "+Ft+"-icon"})})}),Jt&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(y,{className:"display-mode-list",children:yt.map(vo=>{const{iconName:Yo,value:Ho,label:kt,tooptipTitle:Ze}=vo;return nt&&Ho==="device"||!Rt&&Ho==="outside_artboard"?null:(0,f.jsx)(z.A,{content:Ze,direction:"right",distance:8,maxWidth:"230px",children:(0,f.jsxs)("li",{className:A()("option",{active:Ho===Ft}),"data-value":Ho,onClick:this.handleToggleDisplayMode,children:[(0,f.jsx)("div",{className:"option-icon-box",children:(0,f.jsx)(E.C,{name:Yo,className:Ho+"-icon"})}),(0,f.jsx)("p",{children:kt})]})},Ho)})}),(0,f.jsx)(C.A,{target:document,onMouseDown:(0,C.t)(this.handleClickOutSide,{capture:!0})})]})]})}}var $=e(60260),ce=e.n($),de=e(4114),fe=e(29601),se=e(43859);const J=(0,de.R)(()=>({"zh-CN":{android:{customize:I18N.pMainContent.customize},web:{desktop:I18N.pMainContent.desktop,smart_tv:I18N.pMainContent.smart_tv},smart_car:{car_play:I18N.pMainContent.car_play},customize:{customize:I18N.pMainContent.customize}},en:{android:{customize:"Customize"}}})),ve={name:"customize"},D=Kt=>{const{device:Ft,model:nt}=Kt,Rt=(0,fe.w)(),yt=se.v2[nt]||ve;return ce()(J(),[Rt,Ft,nt],yt.name)},V=S.Ay.div.withConfig({displayName:"style__StyledSquareOptionList",componentId:"sc-ixn107-0"})(["position:absolute;left:16px;top:16px;.option-list-wrapper{background:#fff;box-shadow:0 2px 6px rgba(39,54,78,0.08);border-radius:2px;pointer-events:auto;width:32px;height:36px;overflow-y:hidden;&.isExpand{height:100%;overflow:unset;}&.shell-wrapper{margin:16px 0 0 0;.svg-icon{width:24px;height:24px;}}}.nav{border-radius:0 0 2px 2px;&:hover{border:2px solid rgb(22,132,252);}.svg-icon{width:24px;height:24px;}& > .svg-icon path{fill:#fff;}}.expand-btn{display:flex;justify-content:center;width:32px;height:20px;margin:4px 0 0 0;background:#fff;box-shadow:0 2px 6px rgba(39,54,78,0.08);border-radius:4px;cursor:pointer;.svg-icon{transition:all 0.2s ease-in-out;&.isExpand{transform:rotate(-180deg);}}}.command-wrapper{height:36px;display:flex;justify-content:center;align-items:center;cursor:pointer;&:first-child{border-radius:2px 2px 0 0;}&:hover{background:#e8e8e8;}&.active{background:#1684fc;.svg-icon path{fill:#fff !important;}}}.wrapper-top{margin-bottom:8px;border-radius:2px;background:",";box-shadow:0 2px 10px 0 rgba(39,54,78,0.08),0 12px 40px 0 rgba(39,54,78,0.1);}.locate{width:12px;height:16px;}.rotate{width:16px;height:16px;}.link{width:11px;height:16px;}.sticky-icon{width:14px;height:16px;}"],Kt=>Kt.theme.color_bg_white);class O extends l.PureComponent{constructor(){super(...arguments),(0,g.A)(this,"state",{isExpand:!1}),(0,g.A)(this,"handleToggleHighlight",()=>{const{isHighlight:Ft}=this.props;this.props.dispatch({type:"entry:preview-setting:update:is-highlight",payload:{isHighlight:!Ft}})}),(0,g.A)(this,"handleToggleStatePanel",()=>{const{dispatch:Ft,isEmbedV2:nt,isStatePanelShow:Rt}=this.props;nt&&Ft({type:"entry:preview-setting:update:is-statePanel-show",payload:{isStatePanelShow:!Rt}})}),(0,g.A)(this,"handleToggleSticky",()=>{const{isStickyShow:Ft}=this.props;this.props.dispatch({type:"entry:preview-setting:update:is-sticky-show",payload:{isStickyShow:!Ft}})}),(0,g.A)(this,"handleExpandList",()=>{this.setState({isExpand:!this.state.isExpand})}),(0,g.A)(this,"handleToggleShellType",()=>{const{isShowShell:Ft,dispatch:nt}=this.props;nt({type:"entry:preview-setting:update:show:shell",payload:{isShowShell:!Ft}})})}render(){const{isHighlight:Ft,isStickyShow:nt,isStickyAvailable:Rt,dispatch:yt,simulatorType:Jt,isShowOutsideArtboardNav:vo,isShowShell:Yo,project:Ho,isEmbedV2:kt,isStatePanelShow:Ze}=this.props,{isExpand:it}=this.state,st=Jt==="device";return(0,f.jsxs)(V,{children:[kt&&(0,f.jsx)(N.A,{content:I18N.pMainContent.statePanel,direction:"right",children:(0,f.jsx)("a",{className:A()("command-wrapper wrapper-top",{active:Ze}),onClick:this.handleToggleStatePanel,children:(0,f.jsx)(E.C,{name:"art_board/state",style:{fontSize:"24px"}})})}),(0,f.jsxs)("div",{className:A()("option-list-wrapper",{isExpand:it}),children:[(0,f.jsx)(N.A,{content:I18N.pSquareOptionsList.highlighted,direction:"left",children:(0,f.jsx)("div",{className:A()("command-wrapper",{active:Ft}),onClick:this.handleToggleHighlight,children:(0,f.jsx)(E.C,{name:"square/preview/link",className:"link"})})}),Rt&&(0,f.jsx)(N.A,{content:I18N.pMainContent.sticky_visible,direction:"left",children:(0,f.jsx)("div",{className:A()("command-wrapper",{active:nt}),onClick:this.handleToggleSticky,children:(0,f.jsx)(E.C,{name:"square/preview/sticky",className:"sticky-icon"})})}),(0,f.jsx)(a,{isInspect:!1,simulatorType:Jt,isShowOutsideArtboardNav:vo,dispatch:yt})]}),it&&st&&(0,f.jsx)("div",{className:"option-list-wrapper shell-wrapper",children:(0,f.jsx)(N.A,{content:Yo?""+D(Ho):I18N.pMainContent.hide_border,direction:"right",children:(0,f.jsx)("div",{className:A()("command-wrapper","shell",{active:Yo}),onClick:this.handleToggleShellType,children:Yo?(0,f.jsx)(E.C,{name:"art_board/shell/open"}):(0,f.jsx)(E.C,{name:"art_board/shell/close"})})})}),(0,f.jsx)("div",{className:"expand-btn",onClick:this.handleExpandList,children:(0,f.jsx)(E.C,{name:"common/triangle-down",className:A()({isExpand:it})})})]})}}const Ce=(0,o.Ng)(Kt=>{const Ft=Kt.container.previewSetting.isHighlight,nt=Kt.container.previewSetting.isStickyShow,Rt=Kt.container.previewSetting.isStickyAvailable,yt=Kt.container.previewSetting.simulatorType,Jt=Kt.container.previewSetting.isShowOutsideArtboardNav,vo=Kt.container.previewSetting.isShowShell,Yo=Kt.container.current.rootProject,Ho=Kt.container.previewSetting.isStatePanelShow;return{isHighlight:Ft,isStickyShow:nt,isStickyAvailable:Rt,simulatorType:yt,isShowOutsideArtboardNav:Jt,isShowShell:vo,project:Yo,isStatePanelShow:Ho}})(O);var ae=e(37991),q=e(67531),K=e(58912);const xe=Kt=>!Kt.template&&!Kt.combo&&["android","ipad","iphone"].includes(Kt.device),te=Kt=>!!(0,K.MR)(Kt.model),H=Kt=>te(Kt)?"device":"none",re=(Kt,Ft,nt,Rt)=>{const yt=be(Kt,Ft),[Jt,vo]=nt?[yt.height,yt.width]:[yt.width,yt.height],Yo=Rt&&Kt.platform!=="web"?60:0;return{width:Jt,height:vo+Yo}},be=(Kt,Ft)=>Le(Kt,Ft)||Ve(Kt,Ft),Le=(Kt,Ft)=>{let{model:nt}=Kt;if(Ft!=="device")return null;const Rt=(0,K.MR)(nt);return Rt?{...Rt}:null},Ve=(Kt,Ft)=>{const nt=Ft==="none"?0:12,Rt=Kt.width+nt*2,yt=Kt.height+nt*2,[Jt,vo]=xe(Kt)?[Math.min(Rt,yt),Math.max(Rt,yt)]:[Rt,yt];return{device:"default",top:nt,left:nt,width:Jt,height:vo}};var Ne=e(95230);const We=S.Ay.div.withConfig({displayName:"styles__StyledAppContainer",componentId:"sc-pkjkb4-0"})(["flex:1;overflow:hidden;position:relative;.app-placeholder{min-width:100%;min-height:100%;display:flex;justify-content:center;align-items:center;.app-content{background:black;&.hide-back{background:inherit;}}&.wait-drag{cursor:grab;}}.layout{position:absolute;top:15px;right:180px;}.preview-footer-toolbar{bottom:0;opacity:1;transition:all 0.3s ease-in-out;&.hidden{opacity:0;}}"]);class ze extends l.PureComponent{constructor(){super(...arguments),(0,g.A)(this,"state",{isDraggingCanvas:!1}),(0,g.A)(this,"setElementRef",Ft=>this.$elem=Ft),(0,g.A)(this,"handleKeyDown",Ft=>{const{dispatch:nt}=this.props,Rt=Ft.target.matches("input")||Ft.target.matches("textarea");Ft.keyCode===32&&!Rt&&(Ft.preventDefault(),nt({type:"preview:set:key:flags",payload:{isSpaceDown:!0}})),Ft.keyCode===16&&!Rt&&(Ft.preventDefault(),nt({type:"preview:set:key:flags",payload:{isShiftDown:!0}}))}),(0,g.A)(this,"handleKeyUp",()=>{this.props.dispatch({type:"preview:reset:key:flags"})}),(0,g.A)(this,"handleWheel",Ft=>{const{scale:nt,dispatch:Rt,canvasOffset:{x:yt,y:Jt},isPreviewCombo:vo}=this.props;if(Ft.preventDefault(),vo)return;const Yo=Math.max(-1,Math.min(Ft.deltaY,1));if(Ft.ctrlKey||Ft.metaKey){const{top:Ho,left:kt,right:Ze,bottom:it}=this.$elem.getBoundingClientRect(),st=(kt+Ze)/2,dt=(Ho+it)/2;let Ot=nt<=100?nt-Yo*5:nt-nt*Yo*.05;const Ct=Ft.pageX-st,wo=Ft.pageY-dt;Ot=Math.min(Math.max(Ot,Ne.sI),Ne.sH);const ln=Ot/nt;if(ln===1)return;const Io=Ct+ln*(yt-Ct),Lo=wo+ln*(Jt-wo),Ao={x:Io,y:Lo};Rt({type:"entry:preview:set:scale",payload:{scale:Ot}}),Rt({type:"preview:set:canvas:offset",payload:{offset:Ao}})}else Rt({type:"preview:set:canvas:offset",payload:{offset:{x:yt-Ft.deltaX,y:Jt-Ft.deltaY}}})}),(0,g.A)(this,"handleMouseDown",Ft=>{const{isSpaceDown:nt}=this.props;Ft.button===1||Ft.button===2?this.initDraggingCanvas(Ft):nt&&this.initDraggingCanvas(Ft)})}componentDidMount(){this.$elem.addEventListener("wheel",this.handleWheel,{passive:!1}),this.$elem.addEventListener("mousedown",this.handleMouseDown,{passive:!1})}componentWillUnmount(){this.$elem.removeEventListener("wheel",this.handleWheel,{passive:!1}),this.$elem.removeEventListener("mouseDown",this.handleMouseDown,{passive:!1})}initDraggingCanvas(Ft){const nt=Ft.clientX,Rt=Ft.clientY,{canvasOffset:{x:yt,y:Jt},dispatch:vo}=this.props;this.setState({isDraggingCanvas:!0});const Yo=kt=>{const Ze={x:yt+(kt.clientX-nt),y:Jt+(kt.clientY-Rt)};vo({type:"preview:set:canvas:offset",payload:{offset:Ze}})},Ho=()=>{this.setState({isDraggingCanvas:!1}),document.removeEventListener("mousemove",Yo),document.removeEventListener("mouseup",Ho)};document.addEventListener("mousemove",Yo),document.addEventListener("mouseup",Ho)}render(){const{scale:Ft,project:nt,screen:Rt,isShowShell:yt,simulatorType:Jt,previewOptions:vo,isSpaceDown:Yo,isFullScreenMode:Ho,isCommunityComboPreview:kt,isPreviewCombo:Ze,isHiddenToolBar:it,dispatch:st}=this.props,{isDraggingCanvas:dt}=this.state,Ot=Ft/100,Ct=Rt.orientation==="landscape",wo=Jt==="device"&&yt?H(nt):"none",{width:ln,height:Io}=re(nt,wo,Ct,vo.isSquare),Lo={width:ln*Ot,height:Io*Ot},{isSquare:Ao,isEmbedV2:xt}=vo,Ut=!0,Wo=!(Ao||xt)&&!Ze,qo=Ao&&nt.category!=="screen_list"&&nt.category!=="combo_group"&&!Ho;return(0,f.jsxs)(We,{ref:this.setElementRef,children:[(0,f.jsx)("div",{className:A()("app-placeholder",{"wait-drag":Yo||dt}),style:Lo,children:(0,f.jsxs)("div",{className:A()("app-content",!Ut&&"hide-back"),children:[(0,f.jsx)(k.A,{}),(0,f.jsx)(p.d,{})]})}),Wo&&(0,f.jsx)(Ce,{isEmbedV2:xt}),qo&&(0,f.jsx)(q.D,{size:"compact",mode:"device",isShowInspect:!1}),!xt&&!Ho&&!Ze&&(0,f.jsx)(h,{isSquare:Ao,isEmbedV2:xt}),!kt&&!Ze&&(0,f.jsx)("div",{onMouseEnter:()=>st({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!1}}),onMouseLeave:()=>st({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!0,isSetTimeout:!0}}),className:A()("preview-footer-toolbar",{hidden:it}),children:(0,f.jsx)(ae.A,{})}),(0,f.jsx)(C.A,{target:document,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp})]})}}const ft=(0,o.Ng)(Kt=>{const Ft=(0,m.St)(Kt),nt=(0,m.Ur)(Kt),Rt=(0,m.PL)(Kt),yt=(0,m.J8)(Kt),Jt=(0,m.lB)(Kt),vo=(0,m.Mh)(Kt),Yo=(0,m.bF)(Kt),Ho=(0,m.lQ)(Kt),kt=(0,m.ER)(Kt),Ze=(0,m.p$)(Kt),it=(0,m.Nz)(Kt),st=!(kt.x===it.x&&kt.y===it.y),dt=16,{isFullScreenMode:Ot}=(0,m.ZR)(Kt),Ct=(0,m.ub)(Kt),wo=(0,m.hM)(Kt),ln=(0,m.kM)(Kt);return{scale:Ft,screen:nt,project:Rt,screenGlue:yt,simulatorType:Jt,isShowShell:vo,previewOptions:Yo,isStickyShow:Ho,canvasOffset:kt,isSpaceDown:Ze,isDisplaced:st,zoomOptionBarRight:dt,isFullScreenMode:Ot,isCommunityComboPreview:Ct,isPreviewCombo:wo,isHiddenToolBar:ln}})(ze);var mt=e(75833),i=e(2123),gt=e(22813),Je=e(27683),Pt=e(54852),bt=e(35195),qt=e(1694),pt=e(2831),$t=e(18213),go=e(21952),Co=e(33520);const Tt=S.Ay.div.withConfig({displayName:"styles__StyledApp",componentId:"sc-vzhfqv-0"})(["width:100%;height:100%;display:flex;flex-direction:",";background:",";"],Kt=>Kt.isPreviewCombo?"column":"row",Kt=>Kt.theme.color_bg_canvas);class mo extends l.PureComponent{constructor(){super(...arguments),(0,g.A)(this,"keyboardManager",new qt.Rr),(0,g.A)(this,"handleFullScreenChange",()=>{bt.A.isFullscreen||(this.props.dispatch({type:"entry:exit:fill-screen-mode"}),this.props.dispatch({type:"entry:preview-setting:restore:leftrightpane"}))})}preventDefault(Ft){Ft.preventDefault()}componentDidMount(){bt.A.on("change",this.handleFullScreenChange)}componentWillUnmount(){bt.A.off("change",this.handleFullScreenChange)}render(){const{previewOptions:Ft,previewSetting:nt,isCommunityComboPreview:Rt,isPreviewCombo:yt,onCloseModal:Jt}=this.props,{isSquare:vo,isEmbedV2:Yo}=Ft,{isFullScreenMode:Ho}=nt,kt=Yo&&Ho||vo&&!Rt,Ze=Yo&&Ho,it=Yo||vo&&Ho||yt,st=Yo||Rt||yt;return(0,f.jsx)(qt.M.Provider,{value:this.keyboardManager,children:(0,f.jsx)(go.$,{children:(0,f.jsx)(Pt.A,{children:(0,f.jsxs)(Tt,{onContextMenu:this.preventDefault,isPreviewCombo:yt,children:[it&&(0,f.jsx)(mt.A,{onCloseModal:Jt}),kt&&(0,f.jsx)(i.A,{}),(0,f.jsx)(ft,{}),Ze&&(0,f.jsx)(gt.A,{}),!yt&&(0,f.jsx)($t.Cd,{sheet:vo||Yo?pt.r:pt.t}),st&&(0,f.jsx)(Je.A,{}),!yt&&(0,f.jsx)(Co.r,{})]})})})})}}const jo=(0,o.Ng)(Kt=>{const Ft=(0,m.ZR)(Kt),nt=(0,m.bF)(Kt),Rt=(0,m.ub)(Kt),yt=(0,m.hM)(Kt);return{previewOptions:nt,previewSetting:Ft,isCommunityComboPreview:Rt,isPreviewCombo:yt}})(mo)},2831:(Et,ke,e)=>{"use strict";e.d(ke,{r:()=>m,t:()=>o});const o={keys:{"ctrl+enter":{type:"entry:enter:full-screen-mode"},"command+enter":{type:"entry:enter:full-screen-mode"},"ctrl+numpad_add":{type:"entry:preview:zoom-in"},"command+numpad_add":{type:"entry:preview:zoom-in"},"ctrl+=":{type:"entry:preview:zoom-in"},"command+=":{type:"entry:preview:zoom-in"},"ctrl+numpad_subtract":{type:"entry:preview:zoom-out"},"command+numpad_subtract":{type:"entry:preview:zoom-out"},"ctrl+-":{type:"entry:preview:zoom-out"},"command+-":{type:"entry:preview:zoom-out"},"ctrl+numpad_0":{type:"entry:preview:set:scale",payload:{scale:100}},"command+numpad_0":{type:"entry:preview:set:scale",payload:{scale:100}},"ctrl+0":{type:"entry:preview:set:scale",payload:{scale:100}},"command+0":{type:"entry:preview:set:scale",payload:{scale:100}},"ctrl+numpad_1":[{type:"preview:update:state",payload:{hasChangedScaleManually:!1}},{type:"entry:auto-fit:preview:scale"},{type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}}],"command+numpad_1":[{type:"preview:update:state",payload:{hasChangedScaleManually:!1}},{type:"entry:auto-fit:preview:scale"},{type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}}],"ctrl+1":[{type:"preview:update:state",payload:{hasChangedScaleManually:!1}},{type:"entry:auto-fit:preview:scale"},{type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}}],"command+1":[{type:"preview:update:state",payload:{hasChangedScaleManually:!1}},{type:"entry:auto-fit:preview:scale"},{type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}}],c:{type:"entry:comment:toggle"},left:{type:"entry:preview:switch:page",payload:{isPrev:!0}},right:{type:"entry:preview:switch:page"},"command+[":{type:"entry:preview-setting:toggle:isMinimized"},"ctrl+[":{type:"entry:preview-setting:toggle:isMinimized"},"command+]":{type:"entry:preview-setting:toggle:rightPane"},"ctrl+]":{type:"entry:preview-setting:toggle:rightPane"},"command+alt+a":{type:"entry:ST:STMode:toggle"},"ctrl+alt+a":{type:"entry:ST:STMode:toggle"}}},m={keys:{"ctrl+enter":{type:"entry:enter:full-screen-mode"},"command+enter":{type:"entry:enter:full-screen-mode"},"ctrl+numpad_add":{type:"entry:preview:zoom-in"},"command+numpad_add":{type:"entry:preview:zoom-in"},"ctrl+=":{type:"entry:preview:zoom-in"},"command+=":{type:"entry:preview:zoom-in"},"ctrl+numpad_subtract":{type:"entry:preview:zoom-out"},"command+numpad_subtract":{type:"entry:preview:zoom-out"},"ctrl+-":{type:"entry:preview:zoom-out"},"command+-":{type:"entry:preview:zoom-out"},"ctrl+numpad_0":{type:"entry:preview:set:scale",payload:{scale:100}},"command+numpad_0":{type:"entry:preview:set:scale",payload:{scale:100}},"ctrl+0":{type:"entry:preview:set:scale",payload:{scale:100}},"command+0":{type:"entry:preview:set:scale",payload:{scale:100}},"ctrl+numpad_1":[{type:"preview:update:state",payload:{hasChangedScaleManually:!1}},{type:"entry:auto-fit:preview:scale"},{type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}}],"command+numpad_1":[{type:"preview:update:state",payload:{hasChangedScaleManually:!1}},{type:"entry:auto-fit:preview:scale"},{type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}}],"ctrl+1":[{type:"preview:update:state",payload:{hasChangedScaleManually:!1}},{type:"entry:auto-fit:preview:scale"},{type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}}],"command+1":[{type:"preview:update:state",payload:{hasChangedScaleManually:!1}},{type:"entry:auto-fit:preview:scale"},{type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}}],c:{type:"entry:comment:toggle"},left:{type:"entry:preview:switch:page",payload:{isPrev:!0}},right:{type:"entry:preview:switch:page"}}}},23567:(Et,ke,e)=>{"use strict";e.d(ke,{f5:()=>u,os:()=>b,qM:()=>h,rj:()=>f});var o=e(29815),m=e(21676),g=e(51044),l=e(26114),C=e(60240),T=e(59896);if(e.j==907)var A=e(46795);if(e.j==907)var k=e(29601);var p=e(57464);const r=document.getElementById("workspace"),x=(0,m.Ay)(o.A).withConfig({displayName:"utils__CustomizedCrashedPageStyle",componentId:"sc-1m050bu-0"})([".btn-list{display:flex;flex-direction:row-reverse;justify-content:center;.primary{margin-left:20px;}.regular{margin-left:0 !important;}}"]),f=(E,N,z)=>{(0,l.createRoot)(r).render((0,p.jsx)(x,{locale:(0,k.w)(),errorType:E.status||401,customTitle:N,customDes:z}))},u=async E=>{var N;let z,S,_,y,a;try{({user:a}=await(0,A.DE)("/api/web/v3/initial"))}catch(ce){console.warn("[crashedPageWithUser]",ce);const de=ENV.IS_WONDER_SHARE?T.A:C.A,fe=document.getElementById("IBOT_MODAL_ROOT"),se=(0,l.createRoot)(fe);se.render((0,p.jsx)(de,{isOpen:!1,source:"proto-org-preview",onConfirm:()=>location.reload()},Math.random())),z=()=>{se.render((0,p.jsx)(de,{isOpen:!0,type:"signin",source:"proto-org-preview",onConfirm:()=>location.reload()},Math.random()))},S=I18N.Common.signin,y=()=>{se.render((0,p.jsx)(de,{isOpen:!0,type:"signup",source:"proto-org-preview",onConfirm:()=>location.reload()},Math.random()))},_=I18N.Common.signup,a={}}(0,l.createRoot)(r).render((0,p.jsx)(p.Fragment,{children:(0,p.jsx)(x,{locale:(0,k.w)(),errorType:E.status||401,identity:1,account:(N=a)==null?void 0:N.email,primaryBtnText:S,primaryBtnClick:z,secondaryBtnText:_,secondaryBtnClick:y})}))},b=(E,N)=>{let z="";E==="zh-CN"?z="/":E==="jp"?z="https://mockitt.wondershare.jp":z="https://mockitt.wondershare.com",location.replace(z)},h=()=>{const E=new URL(location.href);E.searchParams.set("screen",""),E.searchParams.set("canvasId",""),location.href=""+E}},48451:(Et,ke,e)=>{"use strict";e.d(ke,{EX:()=>l,WG:()=>m,WR:()=>C,av:()=>k,mk:()=>g});function o(p){return p*Math.PI/180}function m(p,r,x){const f=o(x),u=Math.cos(f),b=Math.sin(f),h=p.x-r.x,E=p.y-r.y;return{x:h*u-E*b+r.x,y:h*b+E*u+r.y}}function g(p,r,x){const{x:f,y:u,w:b,h,rotate:E}=p;let N;switch(x){case"t":N={x:f+b/2,y:u};break;case"b":N={x:f+b/2,y:u+h};break;case"l":N={x:f,y:u+h/2};break;case"r":N={x:f+b,y:u+h/2};break;case"tl":N={x:f,y:u};break;case"tr":N={x:f+b,y:u};break;case"bl":N={x:f,y:u+h};break;case"br":N={x:f+b,y:u+h};break;default:break}return m(N,r,E)}function l(p,r){return{x:p.x+(r.x-p.x)/2,y:p.y+(r.y-p.y)/2}}function C(p){return(p+360)%360}function T(p){return Math.abs(Math.sin(o(p)))}function A(p){return Math.abs(Math.cos(o(p)))}function k(p,r){r===void 0&&(r="deg");let x;if(r==="deg")x=p-p%45;else{let f=Math.round(p*(180/Math.PI));f=f-f%45,x=f*Math.PI/180}return x}},40942:(Et,ke,e)=>{"use strict";e.d(ke,{c:()=>m});var o=e(21676);const m=(0,o.AH)(["*::selection{background-color:",";text-shadow:none;}*::-webkit-selection{background-color:",";text-shadow:none;}*::-moz-selection{background-color:",";text-shadow:none;}"],g=>g.theme.color_textarea,g=>g.theme.color_textarea,g=>g.theme.color_textarea)},31626:(Et,ke,e)=>{"use strict";e.d(ke,{c:()=>g,o:()=>m});var o=e(21676);const m=(0,o.AH)(["display:flex;justify-content:center;align-items:center;"]),g=o.Ay.div.withConfig({displayName:"style__Divider",componentId:"sc-21etpd-0"})(["margin:8px 0;border-top:1px solid ",";"],l=>l.theme.color_bg_border_01)},62064:(Et,ke,e)=>{"use strict";e.d(ke,{H0:()=>m,Jj:()=>l,PE:()=>g});var o=e(21676);const m=(0,o.AH)(["&.mac{&.ios{font-family:-apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,'Pingfang SC','Microsoft Yahei','WenQuanYi Micro Hei',sans-serif;}&.android{font-family:Roboto,Arial,'Noto Sans CJK SC','Noto Sans CJK TC','Pingfang SC','Microsoft Yahei','WenQuanYi Micro Hei',sans-serif;}&.others{font-family:Roboto,-apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,'Pingfang SC','Microsoft Yahei','WenQuanYi Micro Hei',sans-serif;}}"]),g=(0,o.AH)(["&.windows,&.other-os{&.ios{font-family:BlinkMacSystemFont,'Helvetica Neue',Arial,'Microsoft Yahei','WenQuanYi Micro Hei','Pingfang SC',sans-serif;}&.android{font-family:Roboto,Arial,'Noto Sans CJK SC','Noto Sans CJK TC','Microsoft Yahei','WenQuanYi Micro Hei','Pingfang SC',sans-serif;}&.others{font-family:Roboto,BlinkMacSystemFont,'Helvetica Neue',Arial,'Microsoft Yahei','WenQuanYi Micro Hei','Pingfang SC',sans-serif;}}"]),l=(0,o.AH)(["&.mb-screen{color:#5b6b73;&.others{input,textarea{cursor:text;&[type='radio'],&[type='checkbox']{cursor:pointer;}}}"," ","}"],m,g)},63967:(Et,ke,e)=>{"use strict";e.d(ke,{DE:()=>m,uz:()=>z});const o=(S,_)=>{const y=new Error("[NO SENTRY] "+S);return Object.assign(y,_),y},m=async S=>{const _=await fetch(S,{credentials:"same-origin"});let y;try{y=await _.json()}catch(a){y={}}if(!_.ok)throw o("[fetchGetJSON] failed with "+_.status+": "+S,{...y,status:_.status});return y},g=async(S,_)=>{const y=await fetch(S,{credentials:"same-origin",body:JSON.stringify(_)});let a;try{a=await y.json()}catch($){a={}}if(!y.ok)throw o("[fetchGetJSON] failed with "+y.status+": "+S,{...a,status:y.status});return a},l=async S=>{const _=await fetch(S,{credentials:"same-origin",headers:{"content-type":"application/json",accept:"application/json"}});let y;try{y=await _.json()}catch(a){y={}}if(!_.ok)throw o("[fetchGetJSON] failed with "+_.status+": "+S,{...y,status:_.status});return y},C=async S=>{let _=await fetch(S,{credentials:"same-origin"});const y=_.headers;if(!_.ok)throw o("[fetchGetJSON] failed with "+_.status+": "+S,{...await _.json(),status:_.status});return _=await _.json(),{result:_,headers:y}},T=async S=>{const _=await fetch(S,{method:"DELETE",credentials:"same-origin"});if(!_.ok)throw o("[fetchDeleteHead] failed with "+_.status+": "+S,{status:_.status})},A=async S=>{const _=await fetch(S,{method:"DELETE",credentials:"same-origin",headers:{"content-type":"application/json",accept:"application/json"}});if(!_.ok)throw o("[fetchDeleteHead] failed with "+_.status+": "+S,{status:_.status})},k=async S=>{const _=await fetch(S,{method:"DELETE",credentials:"same-origin"});if(!_.ok)throw o("[fetchDeleteJSON] failed with "+_.status+": "+S,{...await _.json(),status:_.status});return _.json()},p=async(S,_)=>fetch(S,{method:"POST",credentials:"same-origin",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(_)}),r=async(S,_)=>{const y=await p(S,_);if(!y.ok)throw o("[fetchPostHead] failed with "+y.status+": "+S,{status:y.status})},x=async(S,_)=>{const y=await fetch(S,{method:"POST",credentials:"same-origin",headers:{"content-type":"application/json"},body:JSON.stringify(_)});if(!y.ok)throw o("[fetchPostJSON] failed with "+y.status+": "+S,{...await y.json(),status:y.status});return y.json()},f=async(S,_)=>{const y=await fetch(S,{method:"POST",credentials:"same-origin",headers:{"content-type":"application/json"},body:JSON.stringify(_)});if(!y.ok)throw o("[fetchPostText] failed with "+y.status+": "+S,{status:y.status});return y.json()},u=async(S,_)=>{const y=await fetch(S,{method:"POST",credentials:"same-origin",headers:{accept:"application/json","content-type":"application/json"},body:JSON.stringify(_)});if(!y.ok)throw o("[fetchPostJSON] failed with "+y.status+": "+S,{...await y.json(),status:y.status});return y.json()},b=async(S,_)=>{const y=await fetch(S,{method:"POST",headers:{"content-type":"application/json"},credentials:"same-origin",body:_});if(!y.ok)throw o("[fetchDeleteJSON] failed with "+y.status+": "+S,{url:S,status:y.status});return y.json()},h=async(S,_)=>{const y=await fetch(S,{method:"PUT",credentials:"same-origin",headers:{"content-type":"application/json"},body:JSON.stringify(_)});if(!y.ok)throw o("[fetchPutHead] failed with "+y.status+": "+S,{status:y.status})},E=async(S,_)=>{const y=await fetch(S,{method:"PUT",credentials:"same-origin",headers:{"content-type":"application/json"},body:JSON.stringify(_)});if(!y.ok)throw o("[fetchPutJSON] failed with "+y.status+": "+S,{...await y.json(),status:y.status});return y.json()},N=async(S,_)=>{const y=await fetch(S,{method:"PUT",credentials:"same-origin",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(_)});if(!y.ok)throw o("[fetchPutJSON] failed with "+y.status+": "+S,{...await y.json(),status:y.status});return y.json()},z=async(S,_)=>{const y=await fetch(S,{method:"DELETE",headers:{"content-type":"application/json"},body:JSON.stringify(_)});if(!y.ok)throw o("[fetchDeleteBodyHead] failed with "+y.status+": "+S)}},41725:(Et,ke,e)=>{"use strict";e.d(ke,{i3:()=>p,_E:()=>r,pD:()=>x,lO:()=>h});const{XMLHttpRequest:o}=window,m=function(E,N){let{method:z="GET",headers:S,body:_,timeout:y=0,credentials:a,onUploadProgress:$,onDownloadProgress:ce}=N===void 0?{}:N;return new Promise((de,fe)=>{const se=(ve,D)=>Object.assign(new Error(ve),{status:D,url:E,method:z}),J=new o;J.onerror=()=>fe(se("NETWORK_ERROR",-1)),J.ontimeout=()=>fe(se("NETWORK_TIMEOUT",-1)),J.onreadystatechange=()=>{const{readyState:ve,status:D}=J;ve!==2||D===0||de({status:D,ok:D>=200&&D<300,...g(J,se)})},$&&J.upload&&(J.upload.onprogress=$),ce&&(J.onprogress=ce),J.open(z,E),S&&Object.entries(S).forEach(ve=>{let[D,R]=ve;return J.setRequestHeader(D,R)}),J.responseType="text",J.timeout=y||0,J.withCredentials=a==="include",J.send(_||null)})},g=(E,N)=>{let z;setTimeout(()=>{z||(z="DROP",E.abort())});const S=()=>new Promise((y,a)=>{if(z)return a(N(z==="KEEP"?"PAYLOAD_ALREADY_USED":"PAYLOAD_ALREADY_DROPPED",-1));z="KEEP",E.onload=()=>y(E.response),E.onerror=()=>a(N("PAYLOAD_ERROR",-1)),E.ontimeout=()=>a(N("PAYLOAD_TIMEOUT",-1))});return{text:S,json:()=>S().then(l)}},l=E=>JSON.parse(E);var C=e(17534),T=e(63555),A=e(67122),k=e(29107);const p=async(E,N,z)=>{let{files:S,callback:_,isFilterSvg:y=!0,rootProject:a,isCreate:$=!1}=E;if($&&!(0,k._c)({type:T.x.WImage}))return;const ce=Array.from(S),de=y?ce.filter(se=>/\.svg$/.test(se.name)):[],fe=y?ce.filter(se=>!/\.svg$/.test(se.name)):ce;if(ce.length){if(MB.safeLoading&&MB.safeLoading(I18N.dUtils.image_progress_in),await x({svgFiles:de,allCount:ce.length,callback:_,rootProject:a},N,z),!fe.length){MB.safeLoading&&MB.safeLoading(!1);return}await r({imageFiles:fe,allCount:ce.length,svgFilesCount:de.length,rootProject:a,callback:_},!1,N,z)}},r=function(E,N,z,S){let{imageFiles:_,allCount:y,svgFilesCount:a,rootProject:$,callback:ce}=E;N===void 0&&(N=!1);const de="project_image",fe="",se="",J=MB.user.id,ve=($==null?void 0:$.cid)||"";f(_,{assetType:de,orgCid:se,groupCid:fe,userId:J,projectCid:ve,svgFilesCount:a},ce,z,S,"fileList").then(D=>{const R=D.length;MB.safeLoading&&MB.safeLoading(!1),R===_.length?N?MB.notice({text:I18N.dUtils.svg_style_upload_success}):MB.notice({text:I18N.dUtils.image_upload_success}):R>0&&R<y&&(N?MB.notice({text:I18N.dUtils.some_svg_style_upload_success}):MB.notice({text:I18N.dUtils.someimage_upload_success}))}).catch(D=>console.warn("[Asset]",D))},x=(E,N,z)=>{let{svgFiles:S,allCount:_,rootProject:y,callback:a}=E;if(!S.length)return;let $=0;const ce=function(de,fe,se){fe===void 0&&(fe=0),se===void 0&&(se=0),$=$+1,de&&a&&a(de,$===S.length,fe,se)};for(let de=0,fe=S.length;de<fe;de++)try{const se=S[de],J=new DOMParser,ve=new FileReader;ve.readAsText(se),ve.onload=async D=>{const R=D.target.result,V=J.parseFromString(R,"text/html");let O=V.querySelector("svg");const Ce=!!O.querySelector("style"),ae=parseInt(O.getAttribute("width")||24),q=parseInt(O.getAttribute("height")||24),K=O.getAttribute("viewBox"),xe=se.name.replace(".svg",""),te=O.childNodes;let H="unset";try{(0,A.rD)(O,(0,C.xc)())}catch(be){O=V.querySelector("svg"),console.error("errror:",be)}if(/<image/.test(R)||/<script/.test(R)||Ce){await r({imageFiles:[se],svgFilesCount:0,allCount:_,callback:be=>{ce(be,de,fe)},rootProject:y},Ce,N,z);return}te.length===1&&(H=te[0].getAttribute("fill")||te[0].getAttribute("stroke"));const re={name:xe,type:T.x.WIcon,iconData:{viewBox:K||"0 0 "+ae+" "+q,path:""+O.innerHTML,iconName:xe,iconSize:Math.min(ae,q),iconColor:H||"",svgAttr:{fill:O.getAttribute("fill"),stroke:O.getAttribute("stroke")}},width:ae,height:q,w:ae,h:q};ce(re,de,fe)}}catch(se){console.error(se),ce(null)}},f=async(E,N,z,S,_,y)=>{let{assetType:a,orgCid:$,groupCid:ce,userId:de,projectCid:fe,svgFilesCount:se}=N;const J=[],ve=se+E.length;for(let D=0,R=E.length;D<R;D++)try{const V=E[D],O=D===E.length-1;(0,A.XI)(V,"workspace",S,_,y);const Ce=await h(V,{assetType:a,orgCid:$,groupCid:ce,userId:de,projectCid:fe},ae=>{let{loaded:q,total:K}=ae;const xe=se+D;MB.safeLoading&&MB.safeLoading([I18N.dUtils.image_progress_in,q!==K&&"("+u(q)+"/"+u(K)+"KB)",ve!==1&&"["+(xe+1)+"/"+ve+"]"].filter(Boolean).join(" "))});Ce.group_cid=ce,Ce.name=V.name,z&&z(Ce,O,D,R),J.push(Ce)}catch(V){!MB.currentOrg&&(V==null?void 0:V.message)!=="NoErrorTips"&&(0,A.lK)(V)}return J},u=E=>(E/1024).toFixed(2),b="/nodekiq/process-asset-image",h=async(E,N,z)=>{let{assetType:S,orgCid:_,groupCid:y,userId:a,projectCid:$}=N;const ce=(0,C.xc)(),de=await(0,A.M2)(E);if(!de)return;const{width:fe,height:se}=de,J=await m(b,{credentials:"same-origin",method:"POST",headers:{"mb-asset-name":encodeURIComponent(E.name),"mb-asset-cid":ce,"mb-asset-type":S,"mb-asset-group-cid":y,"mb-project-cid":$,"mb-asset-width":fe,"mb-asset-height":se,"mb-user-id":a,"mb-org-cid":_},body:E,timeout:10*60*1e3,onUploadProgress:z});if(!J.ok)throw Object.assign(new Error(I18N.dUtils.damaged_file),{desc:I18N.dUtils.support_file_type,asset:E});return await J.json()}},86431:(Et,ke,e)=>{"use strict";e.d(ke,{X:()=>o});const o=()=>!1},79619:(Et,ke,e)=>{"use strict";e.d(ke,{Z:()=>o,n:()=>m});const o=function(g){let{flags:l}=g===void 0?MB.user:g;return!!(l&1<<21)},m=g=>{let{user:l,org:C}=g;const T=(C==null?void 0:C.otype)==="personal"?null:C;return{currentUser:l,currentOrg:T}}},77015:(Et,ke,e)=>{"use strict";e.d(ke,{FP:()=>l,Xb:()=>C});const o=T=>Math.cos(T*Math.PI/180),m=T=>Math.sin(T*Math.PI/180),g=(T,A,k)=>{const p=A*Math.PI/180,r={x:k.x-T.x,y:k.y-T.y},{x,y:f}=r,u=x*Math.cos(p)-f*Math.sin(p),b=f*Math.cos(p)+x*Math.sin(p);return{x:u+T.x,y:b+T.y}},l=(T,A)=>Math.atan2(A,T)/Math.PI*180,C=(T,A)=>Math.sqrt(Math.pow(T,2)+Math.pow(A,2))},28717:(Et,ke,e)=>{"use strict";e.d(ke,{$3:()=>z,Im:()=>f,KC:()=>u,N8:()=>r,cb:()=>p,jH:()=>k,kW:()=>N,no:()=>h,v_:()=>A});var o=e(33386),m=e(59742),g=e(63555),l=e(87383),C=e(2302),T=e(27420);const A=3,k=8,p=S=>S.map(_=>{const[y,a,$,ce]=sdkStore.getHotAABB(_.key),{x:de,y:fe,w:se,h:J}=sdkStore.getHotBound(_.key),ve={tl:{x:y,y:a},tr:{x:$,y:a},bl:{x:y,y:ce},br:{x:$,y:ce}};return{key:_.key,center:{x:de,y:fe},boundingPoints:ve,height:ce-a,width:$-y,w:_,wW:se,wH:J}}),r=function(S,_,y){y===void 0&&(y=!1);const a=S.sort((fe,se)=>fe.boundingPoints.tl.y-se.boundingPoints.tl.y)[0],$=S.sort((fe,se)=>fe.center.y-se.center.y).filter(fe=>fe.key!==a.key),ce=[{rowH:a.height,centerY:a.center.y,items:[a]}];let de=_;for(const fe of $){const{height:se,center:{y:J}}=fe;let ve=0,D=!1;for(;ve<ce.length&&!D;){const{centerY:R,rowH:V}=ce[ve],O=R+V*.5;J<O?(ce[ve].items.push(fe),ce[ve].rowH=Math.max(se,V),D=!0):ve++}if(!D){const{centerY:R,rowH:V}=ce[ve-1],O=R+V*.5;if(de===null){const Ce=Math.round(fe.boundingPoints.tl.y-O);y?de=Ce>=0?Ce:k:de=Ce}ce[ve]={rowH:se,centerY:fe.center.y,items:[fe]}}}return ce.forEach(fe=>{fe.items.sort((se,J)=>se.boundingPoints.tl.x-J.boundingPoints.tl.x)}),{result:ce,lineSpace:de}},x=function(S,_,y,a,$){a===void 0&&(a=!1),$===void 0&&($=!1);const ce=_;let de=S;if(typeof S!="number"){let ve=0;const D=[];for(;ve<y.length;){if(y[ve].items.length>1){const R=y[ve].items.map((V,O)=>{const Ce=y[ve].items[O+1];return Ce?Math.round(Ce.boundingPoints.tl.x-V.boundingPoints.tr.x):null}).filter(V=>V!==null);D.push(...R)}ve++}de=b(D)}const fe=[];let se=null,J=null;return y.forEach(ve=>{const{rowH:D,centerY:R,items:V}=ve,O=J===null?0:J+ce+D*.5-R;let Ce=null;V.forEach(ae=>{const{key:q,center:K,boundingPoints:xe,width:te,wW:H,wH:re}=ae;let be=0;$||(se===null?se=xe.tl.x:be=se-xe.tl.x);const Le=Ce===null?be:Ce+(de!=null?de:k)-xe.tl.x,Ve=$&&de!==null?0:R-K.y+O,Ne=C.Z.xy(Le,Ve),We=C.Z.add(xe.tl,Ne);if(Math.round(Le)!==0||Math.round(Ve)!==0){const ze={};(0,l.Ie)(q,ze);const ft=[],mt={x:K.x+Ne.x,y:K.y+Ne.y,w:H,h:re};(0,l.$O)(ft,q,mt,ze);const i=(0,T.TJ)(MB.getCurrentScreen().cid,[q],ze);(0,T.PB)(ft,q,mt,i,ze),fe.push(...ft)}Ce=We.x+te}),J=R+O+D*.5}),{result:y,changes:fe,lineSpace:ce,itemMargin:de}},f=function(S,_,y,a){a===void 0&&(a=!1);const{result:$,lineSpace:ce}=r(S,y,a),{result:de,changes:fe,lineSpace:se,itemMargin:J}=u(S,_,ce,$,a);return{result:de,changes:fe,lineSpace:se,itemMargin:J}},u=function(S,_,y,a,$){$===void 0&&($=!1);const ce=S.length===2,{result:de,changes:fe,lineSpace:se,itemMargin:J}=x(_,y,a,$,ce);return{result:de,changes:fe,lineSpace:se,itemMargin:J}},b=function(S){if(S.length===0)return null;if(S.length===1)return S[0];let _,y=1;const a=S.reduce(($,ce)=>($[ce]?$[ce]++:$[ce]=1,$[ce]>y&&(_=ce,y++),$),{});return _===void 0?S[0]>0?S[0]:k:_},h=function(S){const _=[];S.forEach(de=>de.items.length>1&&_.push(...de.items));const y=Math.min(..._.map(de=>de.width)),a=Math.round(1-y),$=Math.min(...S.map(de=>de.rowH)),ce=Math.round(1-$);return{minItemMargin:a,minLineSpace:ce}},E=function(S){if(S.length===2){const _=S[0].boundingPoints,y=S[1].boundingPoints,a=C.Z.average(_.tl,_.br),$=C.Z.average(y.tl,y.br);return!(a.x===$.x&&a.y===$.y)}return!1},N=(S,_)=>{const y=_.length>2,a=_.length===2&&E(S);return y||a},z=S=>S.filter(_=>{const{hotAttr:y,key:a,type:$,isLock:ce}=_||{},de=(y==null?void 0:y.type)||$,fe=(y==null?void 0:y.isLock)||ce;return y||(0,o.p)("[fatal]: widget hotAttr is undefined",void 0,JSON.stringify(_)),de!==g.x.WSticky&&de!==g.x.WTear&&!fe&&!(0,m.OO)(a)})},2313:(Et,ke,e)=>{"use strict";e.d(ke,{CU:()=>T,El:()=>k,H4:()=>A,Jz:()=>C,T7:()=>m,rn:()=>g,vI:()=>o});function o(x,f){var u,b,h;let E=(u=MB)==null?void 0:u.getCanvasRect();if(E)E={left:E.canvasLeft,top:E.canvasTop};else{var N;E=(N=document.querySelector("#canvas"))==null?void 0:N.getBoundingClientRect()}const z=((b=MB)==null?void 0:b.getCurrentToolBarHeight())||((h=document.querySelector("#screens"))==null||(h=h.getBoundingClientRect())==null?void 0:h.top);if(!E)return;const S=E.left,_=E.top-z,y=100/f;return l(x,{offsetX:S,offsetY:_,ratio:y})}function m(x,f,u){let{startX:b,startY:h,endX:E,endY:N}=x;f===void 0&&(f=90),u===void 0&&(u=0);const z=Math.atan2(N-h,E-b)/Math.PI*180,S=Math.hypot(E-b,N-h),_=u+f*Math.round((z-u)/f),y=S*Math.cos((z-_)/180*Math.PI);return{startX:b,startY:h,endX:b+Math.round(y*Math.cos(_/180*Math.PI).toFixed(2)),endY:h+Math.round(y*Math.sin(_/180*Math.PI).toFixed(2))}}function g(x){let{startX:f,startY:u,endX:b,endY:h}=x;const E=Math.min(u,h),N=Math.min(f,b),z=Math.abs(b-f),S=Math.abs(h-u);return{top:Math.round(E),left:Math.round(N),width:Math.round(z),height:Math.round(S)}}function l(x,f){let{startX:u,startY:b,endX:h,endY:E}=x,{offsetX:N,offsetY:z,ratio:S}=f;return{startX:Math.round((u-N)*S),startY:Math.round((b-z)*S),endX:Math.round((h-N)*S),endY:Math.round((E-z)*S)}}const C=(x,f)=>["top","left","width","height"].every(u=>x[u]===f[u]),T=(x,f)=>{const u=A(x,f);return u.width<x.width+f.width&&u.height<x.height+f.height},A=(x,f)=>{const u=Math.min(x.top||0,f.top||0),b=Math.max((x.top||0)+x.height,(f.top||0)+f.height),h=Math.min(x.left||0,f.left||0),E=Math.max((x.left||0)+x.width,(f.left||0)+f.width);return{top:u,left:h,width:E-h,height:b-u}},k=(x,f,u)=>p(x,u)&&r(f,u),p=(x,f)=>x>f.left&&x<f.left+f.width,r=(x,f)=>x>f.top&&x<f.top+f.height},85153:(Et,ke,e)=>{"use strict";e.d(ke,{n:()=>m});var o=e(17534);const m=g=>{const l=g.access_token||(0,o.kt)(),C=/iphone|android|apple_watch/.test(g.device)?200:100,T=g.png_scale||C,A=g.pngs_scale||C,k=!1,p=!1,r=g.device;let x;return r==="web"?x="web":r==="customize"?x="customize":x="device",{...g,access_token:l,png_scale:T,pngs_scale:A,template:k,combo:p,shell_type:x}}},88976:(Et,ke,e)=>{"use strict";e.d(ke,{M:()=>g,y:()=>m});var o=e(43859);const m=l=>{switch(l){case"iphone":case"ipad":case"apple_watch":return"ios";case"android":return"android";default:return"others"}},g=(l,C)=>{let{width:T,orientation:A}=C;const k=A==="landscape";let p="customize";return!k&&l.width===T||k&&l.height===T?p=l.device:Object.entries(o.v2).forEach(r=>{let[x]=r;(!k&&x.width===T||k&&x.height===T)&&(p=x.device)}),!l.template&&!l.combo&&["android","ipad","iphone"].includes(l.device)&&["android","ipad","iphone"].includes(p)}},5868:(Et,ke,e)=>{"use strict";e.d(ke,{$:()=>o});function o(m){return m.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}},44727:(Et,ke,e)=>{"use strict";e.d(ke,{Ep:()=>C,Km:()=>l,Qx:()=>T,gE:()=>A});var o=e(43859),m=e(9376),g=e(88976);const l=k=>{const p=(0,g.y)(k);return((0,m.cX)()?"mac":(0,m.uF)()?"windows":"other-os")+" "+p+" "+k},C=k=>{var p;const r=((p=Object.entries(o.Am).find(x=>{let[f,u]=x;return u.includes(k)}))==null?void 0:p[0])||"";return(0,g.y)(r)+" "+k},T=()=>(0,m.cX)()?"mac":(0,m.uF)()?"windows":"other-os",A=(k,p)=>{const r=k.orientation,x=C(p);return"mb-screen "+T()+" "+x+" "+r}},64792:(Et,ke,e)=>{"use strict";e.d(ke,{I:()=>T});var o=e(20592),m=e(66976),g=e(45309),l=e(63555),C=e(4098);const T=(A,k,p,r,x)=>{const f=[],u=E=>{const N=A.widgetStore.getNode(E);N&&f.push(N)},b=E=>{const N=sdkStore.getHotItem(E).hotAttr;if(N.isVisible===!0&&N.isLock===!1){if((N.type===l.x.WTear||N.type===l.x.WSticky)&&!r)return;if(p)switch(N.type){case"wElbow":{const z=N.elbow.elbowType;if(z==="straight")(0,m.s6)((0,m.pe)(sdkStore,E,N),h)&&u(E);else if(z==="curve")(0,o.cj)(h,(0,m.C0)(sdkStore,E,N))&&u(E);else for(const S of(0,m.wF)(sdkStore,E,x/100))if((0,o.cj)(h,S)){u(E);break}break}case"wArrow":case"wLine":{(0,m.s6)((0,m.pe)(sdkStore,E,N),h)&&u(E);break}case"wBasket":{sdkStore.isActiveKey(E)&&sdkStore.isActiveKey(N.refRBPageKey)&&sdkStore.isActiveKey(N.refContentKey)&&sdkStore.getHotItem(N.refContentKey).sup===N.refRBPageKey&&(0,o.cj)(h,(0,m.C0)(sdkStore,E,N))&&u(E);break}case"wWrap":{const z=(0,g.py)(E);if(z!==null){const S=(0,C.Pb)(z);(0,o.cj)(h,S)&&u(E)}break}default:{const z=l.Q.USE_CLIP_TEXT.includes(N.type)?(0,g.dU)(E):(0,m.C0)(sdkStore,E,N);(0,o.cj)(h,z)&&u(E);break}}else{const z=l.Q.USE_CLIP_TEXT.includes(N.type)?(0,g.dU)(E):(0,m.C0)(sdkStore,E,N);(0,o.Pn)(h,z)&&u(E)}}},h=[k.x,k.y,k.x+k.w,k.y+k.h];for(const E of sdkStore.getHotItem(A.key).sub){const N=sdkStore.getHotItem(E);if(!(N.hotAttr.isVisible===!1||N.hotAttr.isLock===!0))if(N.hotAttr.type==="rResCanvas"){const{hotAttr:{isClipContent:z}}=N,S=sdkStore.getHotAABB(E);if((0,o.Pn)(h,S))u(E);else if((0,o.cj)(h,S)||!z)for(const _ of N.sub)b(_)}else b(E)}return f.map(E=>E.ref)}},37829:(Et,ke,e)=>{"use strict";e.d(ke,{e:()=>T});var o=e(91560),m=e(35078),g=e(44622),l=e(9376);const C=r=>{const{screenTreeData:x,dataMap:f}=(0,m.tb)(r),u=[];(0,g.sV)(x,h=>{const E=h.data;E&&!(0,g.Mo)(E)&&u.push(E),E&&E.parent_cid&&f[E.parent_cid]&&(0,g.Mo)(f[E.parent_cid])&&(E.parent_cid=f[E.parent_cid].parent_cid)});const b={};for(const h of u){const E=f[h.parent_cid],N=E&&E.cid!==h.cid?E.cid:"root";b[N]=b[N]||[],b[N].push(h)}for(const h of Object.values(b))h.forEach((E,N)=>{E&&E.position!==0+N&&(E.position=0+N)});return u},T=()=>{const r=b=>{let{type:h,payload:E}=b;try{return k[h]&&k[h]({type:h,payload:E})}catch(N){console.warn("[request] error message data",N,h,E)}},x=function(b,h,E){h===void 0&&(h={}),E===void 0&&(E="*"),b&&window.ReactNativeWebView?window.ReactNativeWebView.postMessage(JSON.stringify({event:b,payload:h})):b&&window.parent.postMessage(JSON.stringify({event:b,payload:h}),E)},f=b=>{if(!(b.source===window||b.origin.includes("qiyukf")||!b.data||typeof b.data!="string"))try{const{event:h,type:E=h,payload:N={}}=JSON.parse(b.data),z=r({type:E,payload:N});z&&x(z.type,z.payload)}catch(h){console.warn("[receive] error message data",h,b)}},u=()=>window.removeEventListener("message",f);return(0,l.m0)()?document.addEventListener("message",f):window.addEventListener("message",f),{request:r,send:x,clear:u}},A={"preview-ready":!1},k={"message:get:record":()=>({type:"message:data:record",payload:A}),"message:set:record":r=>{let{payload:{key:x,value:f}}=r;A[x]=f},"message:get:preview-state":()=>{const{state:r,isHighlight:x}=p();return{type:"message:data:preview-state",payload:{screenCid:r.container.current.screenMeta.cid,isHighlight:x}}},"message:set:preview-state":r=>{let{payload:{isHighlight:x,screenCid:f}}=r;const{state:{model:{screens:u},container:{current:{screenMeta:b}}},dispatch:h}=p();if(x!==void 0&&h({type:"reducer:preview-toolbar:update:highlight",payload:{isHighlight:x}}),b.cid&&f!==void 0&&f!==b.cid){if(!u.find(E=>E.cid===f))return console.warn("[message:set:preview-state] invalid screenCid");h({type:"entry:sync-runner:set-screen",payload:{cid:f}})}},"message:get:screen-list":()=>{const r=MB.webpackInterface.store.getState(),x=(0,o.PL)(r).cid,f=(0,o.Qv)(r);return{type:"message:data:screen-list",payload:C(f.concat()).map(h=>{let{cid:E,name:N,position:z,parent_cid:S}=h;return{cid:E,name:N,position:z,parent_cid:S,project_cid:x}})}},"message:get:notification-state":()=>{const{notifications:r}=MB.notification&&MB.notification.store&&MB.notification.store.getState()||{};return{type:"message:data:notification-state",payload:{unreadCount:r?r.notifications.unreadNum:0}}},"message:get:notification-list":()=>{const{notifications:r}=MB.notification&&MB.notification.store&&MB.notification.store.getState()||{};return{type:"message:data:notification-list",payload:r?r.notifications.notifications:[]}},"message:get:app:init:status":r=>{let{payload:{version:x,isDummyApk:f=!1}}=r;MB.webpackInterface.store.dispatch({type:"reducer:preview-toolbar:update",payload:{appVersion:x,isDummyApk:f}})}},p=()=>{const{getState:r,dispatch:x}=MB.webpackInterface.store,f=r(),u=(0,o.Re)(f);return{dispatch:x,state:f,isHighlight:u}}},36290:(Et,ke,e)=>{"use strict";e.d(ke,{Et:()=>C,Kg:()=>g,Tn:()=>o,XB:()=>m});const o=T=>typeof T=="function",m=T=>typeof T>"u",g=T=>typeof T=="string",l=T=>typeof T=="boolean",C=T=>typeof T=="number"},35195:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>C});var o=e(40500),m=e.n(o);const g=()=>{},C=m().isEnabled?m():{isFullscreen:!1,on:g,off:g,request:g,exit:g}},8580:(Et,ke,e)=>{"use strict";e.d(ke,{$E:()=>T,BG:()=>C,KA:()=>A,M2:()=>l,S1:()=>k,Tk:()=>r,ZW:()=>m,Zt:()=>x,cS:()=>u,et:()=>p,sg:()=>f});var o=e(46664);const m={projectExit:"projectExit",enterPreview:"enterPreview",enterEdit:"enterEdit",projectNameChange:"projectNameChange",loadSuccess:"loadSuccess",abarSubProjectRefresh:"abarSubProjectRefresh"},g=b=>new URLSearchParams(location.search.slice(1)).get(b),l=()=>{var b;return(b=MB.abarSubProject)==null?void 0:b.is_sub_project},C=()=>g("from")==="zboard",T=()=>g("isPreview")==="1",A=()=>{try{C()&&MB.abarIframePostMessage&&MB.abarIframePostMessage(JSON.stringify({type:m.loadSuccess,payload:{from:"prototype"}}))}catch(b){console.log("### error:",b)}},k=()=>g("tabCid"),p=b=>{MB.abarSubProject=b,MB.abarIframePostMessage=h=>{window.top&&window.top.postMessage(h,"*")}},r=()=>g("abarReadOnly")==="1",x=()=>g("importZbar")==="1",f=function(b,h){h===void 0&&(h={}),C()&&MB.abarIframePostMessage&&MB.abarIframePostMessage(JSON.stringify({type:b,payload:h}))},u=function(b,h,E){E===void 0&&(E=!1);try{const{type:N,payload:z}=JSON.parse(b.data);switch(N){case m.projectNameChange:if(z&&z.name&&E){const S=MB.abarSubProject;(0,o.Yu)(S.cid,{name:z.name})}break;case m.abarSubProjectRefresh:{if(E)return;try{roSdkStore.syncUpdate(),h&&h({type:"entry:preview:reload"})}catch(S){console.log("##### abar refresh error:",S)}}break}}catch(N){console.log("##### error",N)}}},40323:(Et,ke,e)=>{"use strict";e.d(ke,{Z:()=>g});var o=e(27935),m=e(36820);const g=function(l,C){C===void 0&&(C=""),!(!o.Hy[l]||!m.kH)&&(0,m.kH)("ai_open",{source:C||o.Hy[l]})}},97772:(Et,ke,e)=>{"use strict";e.d(ke,{G:()=>o});let o=function(m){return m.RightClick="\u53F3\u952E\u83DC\u5355",m.TopBar="\u9876\u90E8\u680F",m.ImageMenu="\u56FE\u7247\u83DC\u5355",m.EmptyRightClick="\u7A7A\u767D\u5904\u53F3\u952E\u667A\u80FD\u586B\u5145",m}({})},11271:(Et,ke,e)=>{"use strict";e.d(ke,{IL:()=>g,Q1:()=>m,RW:()=>l});var o=e(36820);let m=function(C){return C.BackToCanvas="\u8FD4\u56DE\u753B\u5E03",C.Device="\u6F14\u793A",C.AddState="\u6DFB\u52A0\u72B6\u6001",C.col="\u6A2A\u6392",C.row="\u7AD6\u6392",C.StatePanel="\u72B6\u6001\u9762\u677F",C.CopyState="\u590D\u5236\u72B6\u6001",C.DeleteState="\u5220\u9664\u72B6\u6001",C}({}),g=function(C){return C.Dynamic="\u52A8\u6001\u7EC4\u4EF6",C.Muban="\u6BCD\u7248",C}({});const l=C=>{let{operation_type:T,operation_from:A}=C;(0,o.kH)("component_operation_V8",{operation_type:T,operation_from:A})}},66456:(Et,ke,e)=>{"use strict";e.d(ke,{HI:()=>C,ej:()=>l,i4:()=>T,nU:()=>g});var o=e(51691),m=e(36820);let g=function(A){return A.Create="\u65B0\u5EFA",A.Response="\u56DE\u590D",A.edit="\u7F16\u8F91",A.FinishInEditArea="\u5B8C\u6210",A.CancelFinishInEditArea="\u53D6\u6D88\u5B8C\u6210",A.deleteInEditArea="\u5220\u9664",A.SelectComment="\u9009\u4E2D\u8BC4\u8BBA-\u5217\u8868",A.FinishInPanel="\u5B8C\u6210-\u5217\u8868",A.CancelFinishInPanel="\u53D6\u6D88\u5B8C\u6210-\u5217\u8868",A.deleteInPanel="\u5220\u9664-\u5217\u8868",A.ShowFinishedComment="\u663E\u793A\u5DF2\u5B8C\u6210\u7684\u8BC4\u8BBA",A.me="\u6211\u521B\u5EFA\u7684",A["@me"]="\u63D0\u5230\u6211\u7684",A.all="\u5168\u90E8",A}({}),l=function(A){return A.point="\u6253\u70B9",A.frame="\u6846\u9009",A}({}),C=function(A){return A.edit="\u7F16\u8F91\u6A21\u5F0F",A.only_view="\u53EA\u8BFB\u6A21\u5F0F",A.device="\u771F\u673A\u6A21\u5F0F",A}({});const T=A=>{let{operation_type:k,comment_type:p,relation:r,operation_from:x}=A;k===void 0||p===void 0||r===void 0||x===void 0||((0,m.kH)("comment_operation_V8",{operation_type:k,comment_type:p,relation:r,operation_from:x}),o.Y4.editProjectNew("\u8BC4\u8BBA\u64CD\u4F5C"))}},28678:(Et,ke,e)=>{"use strict";e.d(ke,{$n:()=>f,MO:()=>A,O3:()=>p,VW:()=>C,Vi:()=>T,W0:()=>x,Ww:()=>k,Zf:()=>b,_Y:()=>l,m8:()=>r});var o=e(36820),m=e(63555),g=e(51691);let l=function(h){return h.CanvasRight="\u753B\u5E03\u53F3\u952E",h.SettingPanel="\u5C5E\u6027\u9762\u677F",h.PageList="\u76EE\u5F55\u5217\u8868",h.LayersList="\u56FE\u5C42\u5217\u8868",h.Toolbar="\u9876\u90E8\u680F",h.Other="\u5176\u4ED6",h}({}),C=function(h){return h.LeftAlign="\u5DE6\u5BF9\u9F50",h.HorizontalAlign="\u6C34\u5E73\u5C45\u4E2D",h.RightAlign="\u53F3\u5BF9\u9F50",h.JustifyAlign="\u4E24\u7AEF\u5BF9\u9F50",h.TopAlign="\u9876\u5BF9\u9F50",h.VerticalAlign="\u5782\u76F4\u5C45\u4E2D",h.BottomAlign="\u5E95\u5BF9\u9F50",h.HorizontalEquidistant="\u6C34\u5E73\u7B49\u95F4\u8DDD",h.VerticalEquidistant="\u5782\u76F4\u7B49\u95F4\u8DDD",h.SelectLayers="\u9009\u62E9\u56FE\u5C42",h.Combination="\u7EC4\u5408",h.BreakUp="\u6253\u6563",h.Locked="\u9501\u5B9A",h.UnLocked="\u89E3\u9501",h.MoveUp="\u4E0A\u79FB(\u4E0A\u79FB\u4E00\u5C42)",h.MoveDown="\u4E0B\u79FB(\u4E0B\u79FB\u4E00\u5C42)",h.Top="\u7F6E\u9876",h.Bottom="\u7F6E\u5E95",h.Copy="\u590D\u5236",h.Cut="\u526A\u5207",h.Paste="\u7C98\u8D34",h.PropertyPaste="\u5C5E\u6027\u7C98\u8D34",h.Delete="\u5220\u9664",h.Hide="\u9690\u85CF",h.Show="\u663E\u793A",h.SwitchMuban="\u8F6C\u6362\u4E3A\u6BCD\u7248",h.SwitchBasket="\u8F6C\u6362\u4E3A\u52A8\u6001\u7EC4\u4EF6",h.AddToMyCombo="\u6DFB\u52A0\u5230\u6211\u7684\u7EC4\u4EF6(\u6DFB\u52A0\u7EC4\u4EF6\u7D20\u6750\u5230\u6211\u7684\u7EC4\u4EF6)",h.AddToOrgCombo="\u6DFB\u52A0\u5230\u4F01\u4E1A\u7EC4\u4EF6(\u6DFB\u52A0\u7EC4\u4EF6\u7D20\u6750\u5230\u4F01\u4E1A\u7EC4\u4EF6)",h.AutoFill="\u667A\u80FD\u586B\u5145",h.CopySharingLink="\u590D\u5236\u5206\u4EAB\u94FE\u63A5",h.CopyAsPng="\u590D\u5236\u4E3A PNG",h.CopyIta="\u590D\u5236\u4E8B\u4EF6",h.SettingPanelExportToPNG="\u53F3\u4FA7\u9762\u677F\u5E95\u90E8\u5BFC\u51FA",h}({});const T={[m.Q.FIXED_TYPE.not_fixed]:"\u4E0D\u56FA\u5B9A",[m.Q.FIXED_TYPE.top]:"\u76F8\u5BF9\u9876\u90E8\u56FA\u5B9A",[m.Q.FIXED_TYPE.bottom]:"\u76F8\u5BF9\u5E95\u90E8\u56FA\u5B9A",[m.Q.FIXED_TYPE.sticky]:"\u5438\u9876\u56FA\u5B9A"},A={left:C.LeftAlign,right:C.RightAlign,center:C.HorizontalAlign,top:C.TopAlign,middle:C.VerticalAlign,bottom:C.BottomAlign},k={"flex-start":C.TopAlign,"flex-end":C.BottomAlign,center:C.VerticalAlign},p=h=>{let{operation_from:E,operation_type:N}=h;(0,o.kH)("common_operation_V8",{operation_from:E,operation_type:N}),g.Y4.editProjectNew("\u901A\u7528\u64CD\u4F5C")},r=h=>{let{operationType:E}=h;p({operation_from:l.CanvasRight,operation_type:E})},x=h=>{let{operationType:E}=h;p({operation_from:l.SettingPanel,operation_type:E})},f=h=>{let{operationType:E}=h;p({operation_from:l.Toolbar,operation_type:E})},u={rounded:"\u5706\u89D2\u6298\u7EBF",sharp:"\u76F4\u89D2\u6298\u7EBF",straight:"\u76F4\u7EBF",curve:"\u66F2\u7EBF"},b=h=>{(0,o.kH)("connectionline_type_click",{line_type:u[h]})}},34161:(Et,ke,e)=>{"use strict";e.d(ke,{BZ:()=>fe,Hq:()=>f,Ii:()=>a,Jj:()=>_,KR:()=>E,Mi:()=>de,RX:()=>N,SJ:()=>D,XG:()=>ve,Yp:()=>z,gJ:()=>R,k8:()=>h,lF:()=>se,mF:()=>V,ol:()=>b,un:()=>ce});var o=e(64835),m=e(36820),g=e(40684),l=e(63555),C=e(46927),T=e(43974),A=e(98195),k=e(80009),p=e(55561),r=e(48411),x=e(51691);let f=function(O){return O.ToolBar="toolbar",O.shortCut="shortcut",O}({});const u={[T.et]:"\u5E38\u7528",[T.l3]:"\u8868\u5355",[T.eC]:"\u5BFC\u822A",[T.Bz]:"\u56FE\u8868",[T.w5]:"\u591A\u5A92\u4F53",group:"\u7EC4\u5408",builtin:"\u5185\u7F6E"};let b=function(O){return O.Copy="\u590D\u5236\u521B\u5EFA",O.ToolBar="\u9876\u90E8\u680F",O.ShortCut="\u5FEB\u6377\u952E",O.BuiltPanel="\u7EC4\u4EF6\u9762\u677F",O.SearchPanel="\u641C\u7D22\u9762\u677F",O}({}),h=function(O){return O.Drag="\u62D6\u62FD",O.DoubleClick="\u53CC\u51FB",O.Click="\u5355\u51FB",O.Import="\u7F6E\u5165",O}({});const E=O=>{var Ce;return(Ce=I18N.w[O])==null?void 0:Ce.replace("Chart","")};function N(){var O,Ce;return typeof((O=MB)==null?void 0:O.getRootProject)!="function"?"":(0,p.Ow)((Ce=MB.getRootProject())==null?void 0:Ce.scene_tag)||""}const z=O=>{let{source:Ce,widgetName:ae,groupCid:q=T.et,type:K,popupsPanelName:xe,templateWidgetType:te,widgetTypeNew:H,isTotalWidget:re,keyword:be=""}=O;if(xe!=null&&xe.includes(A.lS.Flow))(0,k.W)({widget_source:Ce,widget_type:K});else if(u[q]){const Le=u[q],Ve=N();(0,m.kH)("add_widget_V8",{source:Ce,widget_name:ae,widget_type:te||Le,widget_type_new:H,is_total_widget:re,scene_tag:Ve,keyword:be}),x.Y4.editProjectNew("\u65B0\u5EFA\u7EC4\u4EF6")}},S={[g.C]:"\u4E0D\u533A\u5206",[g.WY]:"\u4E0D\u533A\u5206",[g.b4]:"\u4E0D\u533A\u5206",[g.R5]:"\u4E0D\u533A\u5206",[g.t_]:"\u672A\u8BC6\u522B",[g.Gd]:"\u672A\u8BC6\u522B",[g.RD]:"\u672A\u8BC6\u522B",mobile:"\u79FB\u52A8\u7AEF",web:"\u7F51\u9875\u7AEF",other:"\u5176\u4ED6",...r.GT},_={[g.C]:"\u56FE\u6807",[g.t_]:"\u7EC4\u4EF6",[g.Gd]:"\u9875\u9762",[g.b4]:"\u56FE\u7247",[g.RD]:"\u6587\u4EF6\u9875\u9762",[g.WY]:"\u5F69\u8272\u56FE\u6807",[g.R5]:"\u8D34\u7EB8"},y={user_made:"\u7528\u6237\u4E0A\u4F20",official_sort:"\u5B98\u65B9\u6574\u7406",official_made:"\u5B98\u65B9\u81EA\u5236"};let a=function(O){return O.User="\u6211\u7684",O.Star="\u6536\u85CF",O.Org="\u4F01\u4E1A",O.Find="\u53D1\u73B0",O.Square="\u7D20\u6750\u5E7F\u573A",O.PageFind="\u53D1\u73B0\uFF08\u65B0\uFF09",O.PageLibraryCommunity="\u9875\u9762\u5E93-\u7D20\u6750\u5E7F\u573A",O.PageLibraryStar="\u9875\u9762\u5E93-\u6536\u85CF",O.OtherSearchResults="\u5176\u4ED6\u641C\u7D22\u7ED3\u679C",O}({});const $={[A.lS.Builtin]:"\u7EC4\u4EF6\u9762\u677F",[A.lS.Icon]:"\u56FE\u6807\u9762\u677F",[A.lS.ColorIcon]:"\u56FE\u6807\u9762\u677F",[A.lS.Asset]:"\u56FE\u7247\u9762\u677F",[A.lS.Page]:"\u9875\u9762\u9762\u677F",[A.lS.Search]:"\u641C\u7D22\u9762\u677F",[A.lS.History]:"\u5386\u53F2\u9762\u677F",[A.lS.Template]:"\u6BCD\u7248\u9762\u677F",[A.lS.Library]:"\u7D20\u6750\u5E93\u9762\u677F",[A.lS.Dashboard]:"\u9879\u76EE\u7BA1\u7406\u9875",[A.lS.Detail]:"\u8BE6\u60C5",[A.lS.SearchDetail]:"\u641C\u7D22\u8BE6\u60C5"},ce="\u5168\u90E8",de=O=>{let{popupsName:Ce,addType:ae,source:q,category:K,policy:xe="",templateGroupName:te="",copyright:H="",name:re="",classify:be="",platform:Le="",rootProject:Ve,widgetType:Ne="",isTotalWidget:We=null,keyword:ze="",esSearchKey:ft="",templateGroupCid:mt=""}=O;const{isMdVipTemplate:i,isMktVipTemplate:gt}=(0,o.wY)(xe),{isMdMember:Je,isMktMember:Pt}=(0,o.sT)(MB.user),bt=$[Ce];if(bt){const qt=bt+"-"+q;if(_[K]){const{cid:pt}=Ve,$t=N();(0,m.kH)("add_template_V8",{source:qt,add_type:ae,template_type:_[K],vip_template:Number(i),is_scvip_template:gt,template_group_name:te,template_group_cid:mt,template_source_type:y[H]||"",project_id:pt,template_name:re,classify:be,platform:S[Le]||S[K],widget_type:Ne,is_total_widget:We,scene_tag:$t,keyword:ze,es_search_key:ft,is_scvip_user:Pt,is_VIP_user:Je}),x.Y4.editProjectNew("\u65B0\u5EFA\u7D20\u6750")}}},fe=O=>{let{tab:Ce=a.User,popupsName:ae,addType:q,category:K,name:xe,rootProject:te,currentOrg:H=null,currentUser:re,platform:be="",esSearchKey:Le="",resId:Ve=-1}=O;const{cid:Ne}=te,We=$[ae];if(We){let ze=We+"-"+Ce;const ft=Ce===a.Org?H==null?void 0:H.cid:re==null?void 0:re.cid,mt=_[K];if(mt){ae===A.lS.Search?ze=We+"-"+mt+"-"+Ce:ae===A.lS.History&&(ze=We+"-"+mt);const i=N();(0,m.kH)("add_template_V8",{source:ze,add_type:q,template_type:mt,project_id:Ne,template_name:xe,template_group_name:ft,platform:S[be]||S[K],scene_tag:i,es_search_key:Le,stickerResId:Ve}),x.Y4.editProjectNew("\u65B0\u5EFA\u7D20\u6750")}}},se=(O,Ce)=>{var ae;const{type:q,chartConfig:K}=O;let xe="",H=(ae=(0,C.eS)(!1).find(re=>{let{items:be}=re;return be.find(Le=>Le.type===q)}))==null?void 0:ae.cid;if(q===l.x.WChart){const{chartType:re}=K;H=T.Bz,xe=I18N.w[re]}else[...C.PL,...C.d6,...C.ZC].includes(q)&&(xe=I18N.w[q]);xe&&H&&z({source:b.Copy,widgetName:xe,groupCid:H,rootProject:Ce})},J=O=>{const{contentFlatTree:Ce}=sdkStore.parseSubtree(sdkStore.saveSubtree(O));return Ce.get("B@ref-danli").sub.length>0||Ce.get("B@ref-muban").sub.length>0},ve=function(O,Ce,ae){ae===void 0&&(ae=[]);const q=!!(Ce||ae.length>0&&J(ae));(0,m.kH)("add_component_v8",{add_v8_source:O,nest_v8_type:q?1:0})},D=function(O,Ce,ae){ae===void 0&&(ae=[]);const q=!!(Ce||ae.length>0&&J(ae));(0,m.kH)("add_master_v8",{add_v8_source:O,nest_v8_type:q?1:0}),x.Y4.editProjectNew("\u65B0\u5EFA\u6BCD\u7248")},R=O=>{(0,m.kH)("mind_V8",{create_type:O})},V=O=>{(0,m.kH)("scene_switch",{scene_type:O})}},77511:(Et,ke,e)=>{"use strict";e.d(ke,{$:()=>m,v:()=>g});var o=e(36820);let m=function(l){return l.Logo="logo",l.SwitchPage="\u5207\u6362\u9875\u9762",l.Edit="\u7F16\u8F91",l.Refresh="\u5237\u65B0",l.Zoom="\u7F29\u653E",l.HighLight="\u4EA4\u4E92\u94FE\u63A5\u9AD8\u4EAE",l.NotHighLight="\u4EA4\u4E92\u94FE\u63A5\u9AD8\u4EAE(\u5173)",l.ShowShell="\u663E\u793A\u771F\u673A\u5916\u58F3",l.HideShell="\u9690\u85CF\u771F\u673A\u5916\u58F3",l.DarkBackground="\u6DF1\u8272\u80CC\u666F",l.LightBackground="\u6D45\u8272\u80CC\u666F",l.FullScreen="\u5168\u5C4F",l.BackHome="\u56DE\u5230\u4E3B\u9875",l.previousPage="\u4E0A\u4E00\u9875",l.NextPage="\u4E0B\u4E00\u9875",l.Back="\u8FD4\u56DE",l.Event="\u89E6\u53D1\u4EA4\u4E92\u4E8B\u4EF6",l.OpenPageList="\u5C55\u5F00\u9875\u9762\u5217\u8868",l.ClosePageList="\u5173\u95ED\u9875\u9762\u5217\u8868",l.OpenSTList="\u5C55\u5F00\u6279\u6CE8\u5217\u8868",l.CloseSTList="\u5173\u95ED\u6279\u6CE8\u5217\u8868",l.Sticky="\u6279\u6CE8",l}({});const g=l=>{let{operation_type:C}=l;(0,o.kH)("function_click_present_V8",{operation_type:C})}},90968:(Et,ke,e)=>{"use strict";e.d(ke,{bZ:()=>l,kX:()=>C,mV:()=>g});var o=e(36820),m=e(98195);let g=function(T){return T.BackDropMenu="\u8FD4\u56DE\u4E0B\u62C9\u83DC\u5355",T.TitleDropMenu="\u6807\u9898\u4E0B\u62C9\u83DC\u5355",T.Sharing="\u5206\u4EAB",T.Download="\u4E0B\u8F7D",T.Device="\u6F14\u793A",T.Layout="\u5E03\u5C40",T.View="\u89C6\u56FE",T.FullScreen="\u5168\u5C4F",T.ExitFullScreen="\u9000\u51FA\u5168\u5C4F",T.ShowLeftPanel="\u663E\u793A\u5DE6\u4FA7\u9762\u677F",T.ShowRightPanel="\u663E\u793A\u53F3\u4FA7\u9762\u677F",T.Sticky="\u6279\u6CE8",T.Comment="\u8BC4\u8BBA",T.CollaborationPointer="\u591A\u4EBA\u6307\u9488",T.VersionToDropMenu="\u7248\u672C\u8BB0\u5F55-\u8FD4\u56DE\u4E0B\u62C9\u83DC\u5355",T.VersionToTitleMenu="\u7248\u672C\u8BB0\u5F55-\u6807\u9898\u4E0B\u62C9\u83DC\u5355",T.directory="\u76EE\u5F55",T.directoryPage="\u76EE\u5F55-\u9875\u9762",T.directoryLayer="\u76EE\u5F55-\u56FE\u5C42",T.Widget="\u7EC4\u4EF6",T.Icon="\u56FE\u6807",T.Image="\u56FE\u7247",T.Page="\u9875\u9762",T.Flow="\u6D41\u7A0B",T.Mind="\u8111\u56FE",T.Muban="\u6BCD\u7248",T.BasketPreview="\u52A8\u6001\u7EC4\u4EF6\u6F14\u793A",T.MubanPreview="\u6BCD\u7248\u6F14\u793A",T.PagePreview="\u9875\u9762\u6F14\u793A",T.AI="AI",T.NewbieVideo="\u5FEB\u901F\u5165\u95E8",T.EditMubanPreview="\u7F16\u8F91\u533A-\u6BCD\u7248\u9884\u89C8",T.EditBasketPreview="\u7F16\u8F91\u533A-\u52A8\u6001\u7EC4\u4EF6\u9884\u89C8",T.EditAIComponentPreview="\u7F16\u8F91\u533A-AI\u7EC4\u4EF6\u9884\u89C8",T}({});const l={[m.lS.Directory]:g.directory,[m.lS.Builtin]:g.Widget,[m.lS.Icon]:g.Icon,[m.lS.Page]:g.Page,[m.lS.Asset]:g.Image,[m.lS.Flow]:g.Flow,[m.lS.Mind]:g.Mind,[m.lS.Template]:g.Muban,[m.lS.AI]:g.AI},C=T=>{let{operation_type:A}=T;(0,o.kH)("edit_click_V8",{operation_type:A})}},80208:(Et,ke,e)=>{"use strict";e.d(ke,{Y:()=>g});var o=e(29107),m=e(36820);let g;(function(l){function C(b){m.kH&&(0,m.kH)("user_source",{page_address:b,btn_name:"\u539F\u578Bv8\u9884\u89C8\u672A\u767B\u5F55"})}l.userSourceTrack=C;function T(){m.kH&&(0,m.kH)("enter_proto")}l.enterProtoTrack=T;function A(){m.kH&&(0,m.kH)("show_v8newguide")}l.showNewGuideTrack=A;function k(b){let{step_num:h}=b;m.kH&&(0,m.kH)("click_v8newguide",{step_num:h})}l.clickNewGuideTrack=k;function p(b){let{step_num:h}=b;m.kH&&(0,m.kH)("close_newguide",{step_num:h})}l.closeNewGuideTrack=p;function r(b,h){const E=h.split("-")[0];m.kH&&(0,m.kH)("need_guide_click",{operation_type:b,guide_type:E==="MP"?"\u79FB\u52A8\u7AEF":E==="PC"?"PC\u7AEF":"\u5176\u4ED6"})}l.noviceGuide2309StartClick=r;function x(b,h){const E=h.split("-")[0];m.kH&&(0,m.kH)("guide_step_click",{operation_type:b,guide_type:E==="MP"?"\u79FB\u52A8\u7AEF":E==="PC"?"PC\u7AEF":"\u5176\u4ED6"})}l.noviceGuide2309StepClick=x;function f(b){m.kH&&(0,m.kH)("after_guide_click",{operation_type:b})}l.noviceGuide2309CouponClick=f;function u(){try{m.kH&&(0,m.kH)("canvas_page_count_V8",{page_number:(0,o.Uu)(),canvas_number:(0,o.$Q)()})}catch(b){}}l.designScreenCanvasCountTrack=u})(g||(g={}))},80009:(Et,ke,e)=>{"use strict";e.d(ke,{W:()=>l});var o=e(63555),m=e(36820);const g={[o.x.WFlowProcess]:"\u6D41\u7A0B",[o.x.WFlowDecision]:"\u5224\u65AD",[o.x.WFlowStartEnd]:"\u5F00\u59CB/\u7ED3\u675F",[o.x.WFlowDoc]:"\u6587\u6863",[o.x.WFlowData]:"\u6570\u636E",[o.x.WFlowSubProcess]:"\u5B50\u6D41\u7A0B",[o.x.WFlowOuterData]:"\u5916\u90E8\u6570\u636E",[o.x.WFlowInnerData]:"\u5185\u90E8\u5B58\u50A8",[o.x.WFlowQueueData]:"\u961F\u5217\u6570\u636E",[o.x.WFlowDatabase1]:"\u6570\u636E\u5E93\uFF08\u6A2A\uFF09",[o.x.WFlowDatabase2]:"\u6570\u636E\u5E93\uFF08\u7AD6\uFF09",[o.x.WFlowHumanInput]:"\u4EBA\u5DE5\u8F93\u5165",[o.x.WFlowCard]:"\u5361\u7247",[o.x.WFlowStrip]:"\u6761\u5E26",[o.x.WFlowShow]:"\u5C55\u793A",[o.x.WFlowHumanOp]:"\u4EBA\u5DE5\u64CD\u4F5C",[o.x.WFlowPrepare]:"\u9884\u5907",[o.x.WFlowLoop]:"\u5FAA\u73AF\u9650\u503C",[o.x.WFlowRefInPage]:"\u9875\u9762\u5185\u5F15\u7528",[o.x.WFlowOr]:"\u6216\u8005",[o.x.WFlowSum]:"\u6C42\u548C",[o.x.WFlowRefCrossPage]:"\u8DE8\u9875\u5F15\u7528",[o.x.WFlowSort]:"\u6392\u5E8F",[o.x.WFlowUnion]:"\u5408\u5E76",[o.x.WFlowConcurrent]:"\u5E76\u884C\u6A21\u5F0F",[o.x.WFlowCommentRight]:"\u6CE8\u91CA\uFF08\u5DE6\uFF09",[o.x.WFlowCommentLeft]:"\u6CE8\u91CA\uFF08\u53F3\uFF09",[o.x.WFlowNoteRight]:"\u5907\u6CE8\uFF08\u5DE6\uFF09",[o.x.WFlowNoteLeft]:"\u5907\u6CE8\uFF08\u53F3\uFF09",[o.x.WSwimlane]:"\u5782\u76F4\u6CF3\u9053",[o.x.WSwimlaneV]:"\u6C34\u5E73\u6CF3\u9053"},l=C=>{let{widget_source:T,widget_type:A}=C;(0,m.kH)("flowchart_V8",{widget_type:g[A],widget_source:T})}},42708:(Et,ke,e)=>{"use strict";e.d(ke,{A9:()=>z,Ig:()=>b,Se:()=>x,Yq:()=>N,lR:()=>f,ln:()=>l,mB:()=>r,s9:()=>u,wH:()=>h,wS:()=>E,yU:()=>S});var o=e(34161),m=e(36820),g=e(51691);let l=function(_){return _.Copy="\u590D\u5236\u521B\u5EFA",_.ToolBar="\u9876\u90E8\u680F",_.ShortCut="\u5FEB\u6377\u952E",_.PagePanel="\u9875\u9762\u9762\u677F",_.SearchPanel="\u641C\u7D22\u9762\u677F",_.PageList="\u9875\u9762\u5217\u8868",_.TopNavSizeSelectList="\u9876\u90E8\u5BFC\u822A\u680F\u4E0B\u62C9\u9009\u9879",_.LeftPanelSizeSelectList="\u5DE6\u4FA7\u9875\u9762\u9762\u677F\u65B0\u5EFA\u7A7A\u767D\u9875\u9762",_}({}),C=function(_){return _.Drag="\u62D6\u62FD",_.DoubleClick="\u53CC\u51FB",_.Click="\u5355\u51FB",_.Click_1="\u5355\u51FB\u81EA\u7531\u7ED8\u5236",_.Click_2="\u5355\u51FB\u9009\u62E9\u7C7B\u578B",_.Import="\u7F6E\u5165",_.Action_1="\u81EA\u7531\u7ED8\u5236",_.Action_2="\u9009\u62E9\u9875\u9762",_}({}),T=function(_){return _.ChangeShell="\u66F4\u6539\u5C3A\u5BF8",_.Open="\u5F00\u542F",_.Close="\u5173\u95ED",_.Adjust="\u8C03\u6574",_.Drag="\u62D6\u52A8",_}({}),A=function(_){return _.Shell="\u8FB9\u6846",_.WH="WH",_.CutDown="\u88C1\u51CF",_.DropDownMenu="\u4E0B\u62C9\u83DC\u5355",_.Color="\u989C\u8272",_.Opacity="\u900F\u660E\u5EA6",_.StickyHeader="\u9876\u90E8\u5C4F\u5E55\u56FA\u5B9A",_.StickyFooter="\u5E95\u90E8\u5C4F\u5E55\u56FA\u5B9A",_.Grid="\u7F51\u683C",_.HorizontalGrid="\u6A2A\u6805\u683C",_.VerticalGrid="\u7AD6\u6805\u683C",_}({});const k=_=>{let{source:y,page_type:a}=_;const $=(0,o.RX)();(0,m.kH)("add_page_V8",{source:y,page_type:a,scene_tag:$}),g.Y4.editProjectNew("\u65B0\u5EFA\u9875\u9762")},p=_=>{let{operation_type:y}=_;(0,m.kH)("page_operation_V8",{operation_type:y}),g.Y4.editProjectNew("\u9875\u9762\u64CD\u4F5C")},r=_=>{let{page:{device:y}}=_;k({source:l.Copy,page_type:y})},x=_=>{let{page:{device:y}}=_;k({source:""+l.ToolBar+C.Drag,page_type:y})},f=_=>{let{page:{device:y}}=_;k({source:""+l.ToolBar+C.Click_1,page_type:y})},u=_=>{let{page:{device:y}}=_;k({source:""+l.ToolBar+C.Click_2,page_type:y})},b=_=>{let{page:{device:y}}=_;k({source:""+l.ShortCut+C.Click_1,page_type:y})},h=_=>{let{page:{device:y}}=_;k({source:""+l.PageList,page_type:y})},E=(_,y)=>{k({source:_,page_type:y})},N=()=>{p({operation_type:T.ChangeShell+"-"+A.Shell})},z=_=>{let{attr:y,isOpen:a}=_;y==="device"?p({operation_type:T.ChangeShell+"-"+A.DropDownMenu}):["x","y","w","h"].includes(y)?p({operation_type:T.ChangeShell+"-"+A.WH}):y==="isClipContent"?p({operation_type:""+(a?T.Open:T.Close)+A.CutDown}):y==="fill"?p({operation_type:""+T.Adjust+A.Color}):y==="opacity"?p({operation_type:""+T.Adjust+A.Opacity}):y==="stickyHeaderHeight"?p({operation_type:""+T.Drag+A.StickyHeader}):y==="stickyFooterHeight"?p({operation_type:""+T.Drag+A.StickyFooter}):y==="isGridLayout"?p({operation_type:""+(a?T.Open:T.Close)+A.Grid}):y==="isColLayout"?p({operation_type:""+(a?T.Open:T.Close)+A.VerticalGrid}):y==="isRowLayout"&&p({operation_type:""+(a?T.Open:T.Close)+A.HorizontalGrid})},S=_=>{p({operation_type:_?"\u79FB\u52A8\u753B\u5E03\u5230\u5176\u4ED6\u9879\u76EE-\u521B\u5EFA\u526F\u672C":"\u79FB\u52A8\u753B\u5E03\u5230\u5176\u4ED6\u9879\u76EE-\u4E0D\u521B\u5EFA\u526F\u672C"})}},58277:(Et,ke,e)=>{"use strict";e.d(ke,{Qj:()=>T,bM:()=>k,vL:()=>A,vT:()=>p});var o=e(36820),m=e(98195);let g=null;const l={[m.lS.Directory]:"\u76EE\u5F55\u9762\u677F",[m.lS.Builtin]:"\u7EC4\u4EF6\u9762\u677F",[m.lS.Icon]:"\u56FE\u6807\u9762\u677F",[m.lS.Page]:"\u9875\u9762\u9762\u677F",[m.lS.Asset]:"\u56FE\u7247\u9762\u677F",[m.lS.Template]:"\u6BCD\u7248\u9762\u677F",[m.lS.AI]:"AI\u9762\u677F"},C={combo_group:"\u7EC4\u4EF6",icon_group:"\u56FE\u6807",screen_list:"\u9875\u9762",asset:"\u56FE\u7247"},T=r=>{let{isFromIconSelectPopup:x,panelName:f}=r;try{x?(0,o.kH)("widget_icon_search_start",{source:g}):(0,o.kH)("panel_search_start",{source:l[f]})}catch(u){console.log(u.message)}},A=r=>{let{isFromIconSelectPopup:x,panelName:f,keyword:u,sort:b,count:h,responseTime:E=null}=r;try{if(!u.trim())return;x?(0,o.kH)("widget_icon_search_result",{source:g,keyword:u,count:h}):(0,o.kH)("panel_search_result",{source:l[f],keyword:u,sort:C[b],count:h,response_time:E})}catch(N){console.log(N.message)}},k=r=>{let{source:x}=r;try{(0,o.kH)("setting_panel_image_click",{source:x})}catch(f){console.log(f.message)}},p=r=>{let{source:x}=r;try{g=x,(0,o.kH)("setting_panel_widget_icon_click",{source:x})}catch(f){console.log(f.message)}}},90579:(Et,ke,e)=>{"use strict";e.d(ke,{Mg:()=>C,W2:()=>T,bO:()=>k,fN:()=>A});var o=e(51691),m=e(36820),g=e(59318),l=function(p){return p.NoLogin="\u672A\u767B\u5F55\u7528\u6237",p.LoginButNotOrgMember="\u975E\u56E2\u961F\u767B\u5F55\u7528\u6237",p.ProjectMember="\u534F\u4F5C\u6210\u5458",p.TeamMember="\u56E2\u961F\u6210\u5458",p}(l||{});let C=function(p){return p.NotLogin="\u4EC5\u56E2\u961F\u6210\u5458-\u672A\u767B\u5F55",p.NotOrgMember="\u4EC5\u56E2\u961F\u6210\u5458-\u5DF2\u767B\u5F55\u4F46\u975E\u56E2\u961F\u6210\u5458",p.NeedPwd="\u5BC6\u7801\u67E5\u770B-\u9700\u8F93\u5165\u5BC6\u7801",p.NotPublicAccess="\u516C\u5F00\u8BBF\u95EE\u5173\u95ED",p.Delete="\u5DF2\u5220\u9664",p}({});const T=p=>{let{userId:r,orgPermissions:x,spacePermissions:f,projectPermissions:u}=p;if(!r)return l.NoLogin;const b=x?(0,g.ox)(r,x):!1,h=f?(0,g.ox)(r,f):!1,E=u?(0,g.ox)(r,u):!1;if(!b)return l.LoginButNotOrgMember;if(h||E)return l.ProjectMember;if(b)return l.TeamMember},A=p=>{let{access_success:r,no_access_reason:x,access_from:f,user_type:u}=p;(0,m.kH)("share_links_access_V8",{user_type:u,access_success:r,no_access_reason:x,access_from:f})},k=p=>{let{currentProject:r,preview_type:x=null,source:f="\u7F16\u8F91\u533A"}=p;(0,m.kH)("preview_project",{project_type:"\u539F\u578B V8",source:f,project_name:r.name,project_cid:r.cid,preview_type:x}),o.Y4.editProjectNew("\u9884\u89C8\u9879\u76EE")}},54386:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>g,D:()=>m});var o=e(36820);let m=function(l){return l.Logo="\u58A8\u5200logo",l.SearchCanvas="\u641C\u7D22\u753B\u5E03",l.CollapseCanvas="\u4E00\u952E\u6536\u8D77\u753B\u5E03",l.ExpandCanvas="\u4E00\u952E\u5C55\u5F00\u753B\u5E03",l.SearchPage="\u641C\u7D22\u9875\u9762",l.DoubleClickPageIcon="\u53CC\u51FB\u9875\u9762\u56FE\u6807",l.SearchLayers="\u641C\u7D22\u56FE\u5C42",l.Inspect="\u6807\u6CE8",l.TurnOnVersionControl="\u70B9\u51FB\u67E5\u770B\u7248\u672C\u8BB0\u5F55",l.TurnOffVersionControl="\u5173\u95ED\u67E5\u770B\u7248\u672C\u8BB0\u5F55",l.HandTool="\u624B\u578B\u5DE5\u5177",l.Edit="\u7F16\u8F91",l.Device="\u6F14\u793A",l.Zoom="\u7F29\u653E",l.FullScreen="\u5168\u5C4F",l.ShowLeftPanel="\u663E\u793A\u5DE6\u4FA7\u9762\u677F",l.ShowRightPanel="\u663E\u793A\u53F3\u4FA7\u9762\u677F",l.Sticky="\u6279\u6CE8",l.Comment="\u8BC4\u8BBA",l.CollaborationPointer="\u591A\u4EBA\u6307\u9488",l.BasketPreview="\u52A8\u6001\u7EC4\u4EF6\u6F14\u793A",l.MubanPreview="\u6BCD\u7248\u6F14\u793A",l.PagePreview="\u9875\u9762\u6F14\u793A",l.Login="\u767B\u5F55",l.FreeToUse="\u514D\u8D39\u4F7F\u7528",l.CloseRegisterTip="\u5173\u95ED\u6CE8\u518C\u63D0\u793A",l.ReadOnlyMubanPreview="\u603B\u89C8\u6A21\u5F0F-\u6BCD\u7248\u9884\u89C8",l.ReadOnlyBasketPreview="\u603B\u89C8\u6A21\u5F0F-\u52A8\u6001\u7EC4\u4EF6\u9884\u89C8",l.ReadOnlyAIComponentPreview="\u603B\u89C8\u6A21\u5F0F-AI\u7EC4\u4EF6\u9884\u89C8",l}({});const g=l=>{let{operation_type:C}=l;(0,o.kH)("read_click_V8",{operation_type:C})}},75221:(Et,ke,e)=>{"use strict";e.d(ke,{h:()=>m});var o=e(36820);const m=g=>{(0,o.kH)("mind_operation_V8",{operation_type:g})}},27806:(Et,ke,e)=>{"use strict";e.d(ke,{Ac:()=>l,Dn:()=>m,d0:()=>C,gQ:()=>g});var o=e(36820);const m={WIDGET_FIND:"\u7EC4\u4EF6-\u53D1\u73B0",WIDGET_SEARCH:"\u7EC4\u4EF6-\u641C\u7D22",PAGE_LIB:"\u9875\u9762-\u9875\u9762\u5E93",ICON_SEARCH:"\u56FE\u6807-\u641C\u7D22",PIC_FIND:"\u56FE\u7247-\u53D1\u73B0",STICKER_FIND:"\u8D34\u7EB8-\u53D1\u73B0",COLOR_ICON_SEARCH:"\u5F69\u8272\u56FE\u6807-\u641C\u7D22"},g=T=>{let{widget_file_name:A,keyword:k="",source:p,filter:r=""}=T;(0,o.kH)("template_viewall_click",{widget_file_name:A,keyword:k,source:p,filter:r})},l=T=>{let{source:A}=T;(0,o.kH)("tab_click",{source:A})},C=T=>{(0,o.kH)("template_exposure",T)}},72300:(Et,ke,e)=>{"use strict";e.d(ke,{$:()=>g,t:()=>o});const o=l=>{const C=m(l);return g(C)},m=l=>({top:l.includes("t"),left:l.includes("l"),bottom:l.includes("b"),right:l.includes("r")}),g=l=>{const C=[];return Object.entries(l).forEach(T=>{let[A,k]=T;return k&&C.push(A)}),C}},86913:(Et,ke,e)=>{"use strict";e.d(ke,{Eg:()=>m,jf:()=>o,k4:()=>g});const o=l=>{if(typeof l=="number")return{tl:l,tr:l,bl:l,br:l};{const{radiusTL:C,radiusTR:T,radiusBL:A,radiusBR:k}=l;return{tl:C,tr:T,bl:A,br:k}}},m=l=>l&&!!l.knobList,g=l=>typeof l!="number"},89345:(Et,ke,e)=>{"use strict";e.d(ke,{MP:()=>ae,hS:()=>q,vz:()=>xe});var o=e(39557),m=e(63555),g=e(10091);const l={screen_meta:["artboard_id","artboard_image_url","bgcolor","bgimage","expanded","name","orientation","parent_cid","position","project_meta_cid","screen_glue_cid","width","height"],[m.x.WCarousel]:["isVisible","isLock","bitFlag","top","left","width","height","isLockAspect","z","ro","opacity","fixPosTo","fixed","fixed_type","horizontalAlign","verticalAlign","data","display_name","borderRadius"],[m.x.WTable]:["isVisible","isLock","bitFlag","fontSize","br","width","height","isLockAspect","top","left","z","textDecoration","bold","italic","textColor","opacity","fixPosTo","fixed","fixed_type","display_name","tableData","innerBorderV","innerBorderH","outerBorder","styleType"],group:["isVisible","isLock","bitFlag","top","left","width","height","isLockAspect","z","ro","fixPosTo","aniName","aniDelay","aniCount","aniDuration","opacity","expanded","display_name","animation"],[m.x.WRichText]:["isVisible","isLock","font_direction","bitFlag","text","fontSize","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","th","lineHeight","textDecoration","bold","italic","textColor","opacity","shadow","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","clip","sizeType","display_name","animation"],label:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","th","lineHeight","textDecoration","bold","italic","background","border","textColor","opacity","ts","shadow","tsc","ds","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],text_view:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","th","lineHeight","textDecoration","bold","italic","background","border","textColor","opacity","ts","shadow","tsc","ds","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","clip","display_name","borderVisibility","animation"],[m.x.WSticky]:["isVisible","isLock","bitFlag","text","fontSize","horizontalAlign","lineHeight","bold","italic","textDecoration","width","height","isLockAspect","top","left","background","textColor","th","slw","slt","padding","point","display_name","fill"],[m.x.WButton]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","icon","is","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderVisibility","fill","animation"],icon_button:["isVisible","isLock","bitFlag","is","icon","br","borderRadius","top","left","width","height","isLockAspect","z","th","background","border","textColor","opacity","ds","shadow","sc","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],text_field:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","th","background","border","textColor","opacity","ds","shadow","sc","ro","textDecoration","bold","italic","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],[m.x.WMTextInput]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","width","height","isLockAspect","top","left","z","th","background","border","textColor","opacity","ds","shadow","sc","bold","italic","fixPosTo","fixed","fixed_type","input_type","display_name","borderVisibility","fill"],[m.x.WMTextArea]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","width","height","isLockAspect","top","left","z","th","lineHeight","background","border","textColor","opacity","ds","shadow","sc","bold","italic","fixPosTo","fixed","fixed_type","padding","display_name","borderVisibility","fill"],[m.x.WMSelect]:["isVisible","isLock","bitFlag","text","fontSize","width","height","isLockAspect","top","left","z","th","background","border","textColor","opacity","ds","shadow","sc","fixPosTo","fixed","fixed_type","display_name","fill"],switch:["isVisible","isLock","bitFlag","top","left","z","checked","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],[m.x.WIOSSwitch]:["isVisible","isLock","bitFlag","top","left","z","opacity","width","height","isLockAspect","checked","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","switch_disabled","thumb_checked_style","thumb_unchecked_style","track_checked_style","track_unchecked_style","animation"],[m.x.WAndroidSwitch]:["isVisible","isLock","bitFlag","top","left","z","opacity","width","height","isLockAspect","checked","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","switch_disabled","thumb_checked_style","thumb_unchecked_style","track_checked_style","track_unchecked_style","animation"],[m.x.WIosCB]:["isVisible","isLock","bitFlag","top","left","z","width","height","checked","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],[m.x.WAndroidCB]:["isVisible","isLock","bitFlag","top","left","z","width","height","checked","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],[m.x.WAndroidRadio]:["isVisible","isLock","bitFlag","top","left","z","width","height","checked","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],mcheckbox:["isVisible","isLock","bitFlag","top","left","width","height","z","opacity","checked","fixPosTo","fixed","fixed_type","display_name"],mradiobutton:["isVisible","isLock","bitFlag","top","left","width","height","isLockAspect","z","opacity","checked","fixPosTo","fixed","fixed_type","display_name"],[m.x.WMFileInput]:["isVisible","isLock","bitFlag","top","left","width","height","isLockAspect","z","opacity","fixPosTo","fixed","fixed_type","display_name"],image_view:["isVisible","isLock","bitFlag","br","borderRadius","width","height","isLockAspect","top","left","image","z","th","background","border","textColor","opacity","p","ds","shadow","sc","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],[m.x.WImage]:["isVisible","isLock","bitFlag","br","borderRadius","width","height","isLockAspect","top","left","image","z","th","background","border","textColor","opacity","p","ds","shadow","sc","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","clip","filter","display_name","clip_type","image","animation"],[m.x.WMapView]:["isVisible","isLock","bitFlag","width","height","isLockAspect","top","left","z","fixPosTo","fixed","fixed_type","display_name"],navigation_bar:["isVisible","isLock","bitFlag","text","fontSize","top","left","z","width","height","isLockAspect","th","textDecoration","bold","italic","background","textColor","border","opacity","ts","tsc","ds","shadow","sc","fixPosTo","fixed","fixed_type","display_name"],nav_bar:["isVisible","isLock","bitFlag","text","fontSize","top","left","z","width","height","isLockAspect","th","textDecoration","bold","italic","background","textColor","border","opacity","ts","tsc","ds","shadow","sc","fixPosTo","fixed","fixed_type","display_name"],[m.x.WSearchBar]:["isVisible","isLock","bitFlag","fontSize","top","left","width","horizontalAlign","z","th","isLockAspect","background","textColor","border","opacity","ds","shadow","sc","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],[m.x.WTabItem]:["isVisible","isLock","bitFlag","is","icon","width","left","top","fontSize","z","th","isLockAspect","background","textColor","opacity","ds","shadow","sc","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],tab_bar:["isVisible","isLock","bitFlag","height","isLockAspect","z","th","background","border","opacity","ds","shadow","sc","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],hr:["isVisible","isLock","bitFlag","width","height","isLockAspect","top","left","opacity","z","th","border","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],line:["isVisible","isLock","bitFlag","border","width","height","top","left","points","shadow","opacity","z","th","fixPosTo","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],[m.x.WLine]:["isVisible","isLock","bitFlag","arrow_stroke","width","height","top","left","points","shadow","arrow_types","opacity","z","th","fixPosTo","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],ve:["isVisible","isLock","bitFlag","width","height","top","left","opacity","z","th","border","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],[m.x.WUnifiedKeyboard]:["isVisible","isLock","bitFlag","width","height","top","left","z","numeric","fixPosTo","fixed","fixed_type","display_name"],legacy_iphone_status_bar:["isVisible","isLock","bitFlag","top","left","width","height","isLockAspect","text","th","background","textColor","opacity","z","fixPosTo","display_name"],legacy_iphone_x_status_bar:["isVisible","isLock","bitFlag","text","top","left","width","height","isLockAspect","th","background","textColor","opacity","z","fixPosTo","display_name"],legacy_android_status_bar:["isVisible","isLock","bitFlag","text","top","left","width","height","isLockAspect","th","background","textColor","opacity","z","fixPosTo","display_name"],legacy_ipad_status_bar:["isVisible","isLock","bitFlag","text","th","top","left","width","height","isLockAspect","background","textColor","opacity","z","fixPosTo","display_name"],[m.x.WAndroidSB]:["isVisible","isLock","bitFlag","th","background","textColor","border","opacity","width","height","isLockAspect","top","left","z","fixPosTo","fixed","fixed_type","display_name"],rectangle:["isVisible","isLock","bitFlag","height","isLockAspect","top","left","z","th","background","border","opacity","ds","shadow","sc","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],[m.x.WWrap]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderVisibility","animation"],[m.x.WOval]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderVisibility","fill","animation"],[m.x.WRect]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderVisibility","borderVisibility","fill","animation"],[m.x.WPolygon]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","sideNum","fill","animation","polygon"],[m.x.WStar]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","sideNum","radius","fill","animation","star"],circle_rect:["isVisible","isLock","bitFlag","text","fontSize","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","fill","animation"],[m.x.WTriangleB]:["isVisible","isLock","bitFlag","width","height","isLockAspect","top","left","z","th","background","opacity","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","fill","animation"],[m.x.WTriangleTL]:["isVisible","isLock","bitFlag","width","height","isLockAspect","top","left","z","th","background","opacity","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","fill","animation"],[m.x.WLR]:["isVisible","isLock","bitFlag","width","height","isLockAspect","top","left","z","fixPosTo","fixed","fixed_type","display_name"],[m.x.WWebpage]:["isVisible","isLock","bitFlag","width","height","isLockAspect","top","left","z","text","display_name"],pg:["left","top","display_name"],[m.x.WMTooltip]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","th","lineHeight","textDecoration","bold","italic","background","textColor","opacity","ts","tsc","ds","shadow","sc","border","ro","padding","_ttPlacement","_ttOffset","_ttArrowSize","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],svg_icon_button:["isVisible","isLock","bitFlag","is","icon","br","borderRadius","top","left","width","height","z","th","background","border","textColor","opacity","ds","shadow","sc","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","fill","animation"],svg_icon_path:["isVisible","isLock","bitFlag","is","icon","br","borderRadius","top","left","width","height","z","th","background","border","textColor","opacity","ds","shadow","sc","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","view_box","path","svgAttr","fill","animation"],wPanel:["states","left","top","width","height","isLockAspect","fixed","fixed_type","isVisible","screen_state_cid","screen_meta_cid","screen_glue_cid","isLock","fixPosTo","display_name","overflow_behavior","scroll"],[m.x.WBasket]:["states","left","top","width","height","isLockAspect","fixed","fixed_type","isVisible","screen_state_cid","screen_meta_cid","screen_glue_cid","isLock","fixPosTo","display_name","overflow_behavior","scroll"],[m.x.WChart]:["isVisible","z","opacity","left","top","width","height","isLockAspect","display_name","isLock","data","ro","fixPosTo","chartType","chartCategory","chartTheme","grid","unit","showAxis","textAngle","showToolTip","showHelpMark","smooth","legend","chartData","chartBorderRadius","chartInnerRadius","shLabel","progress","aniName","aniDelay","aniCount","aniDuration","animation"],[m.x.WAudio]:["v","locked","display_name","z","opacity","left","top","width","height","isLockAspect","ro","fixPosTo","text","borderRadius","shadow","aniName","aniDelay","aniCount","aniDuration","is_autoplay","is_keep_alive","is_loop","is_hidden","animation"],[m.x.WVideo]:["isVisible","isLock","display_name","z","opacity","left","top","width","height","isLockAspect","ro","fixPosTo","text","borderRadius","shadow","aniName","aniDelay","aniCount","aniDuration","is_autoplay","is_loop","is_muted","is_hide_controls","animation"],[m.x.WQRCode]:["isVisible","isLock","display_name","z","opacity","left","top","width","height","ro","fixPosTo","text","aniName","aniDelay","aniCount","aniDuration","background","foreground","animation"],[m.x.WSlider]:["isVisible","isLock","display_name","z","opacity","left","top","width","height","isLockAspect","ro","fixPosTo","aniName","aniDelay","aniCount","aniDuration","data","animation"],[m.x.WCollapse]:["isVisible","isLock","display_name","z","opacity","left","top","width","height","isLockAspect","ro","borderRadius","border","fixPosTo","aniName","aniDelay","aniCount","aniDuration","optionData","canExpandOneMenu","data","animation"],[m.x.WPlaceholder]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","fill","animation"],[m.x.WDigitalStepper]:["isVisible","isLock","bitFlag","number","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","min","max","sliderSize","is","ic","animation"],[m.x.WPaginationMobile]:["isVisible","isLock","bitFlag","number","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","pagesNumber","checkedTextSize","checkedTextColor","animation"],[m.x.WPaginationWeb]:["isVisible","isLock","bitFlag","number","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","pagesNumber","checkedTextSize","checkedTextColor","checkedBg","checkedBorder","animation"],[m.x.WDropMenu]:["isVisible","is_multiple","width","height","left","top","isLockAspect","isLock","bitFlag","gid","link_cids","opacity","z","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","background","border","shadow","borderRadius","textColor","fontSize","textDecoration","bold","italic","verticalAlign","horizontalAlign","th","text","mutualWay","optionData","dropMenuEcho","animation"],[m.x.WSegmentedControl]:["isVisible","width","height","left","top","isLockAspect","isLock","bitFlag","gid","link_cids","opacity","z","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","background","border","borderRadius","fontSize","textColor","checkedBg","checkedTextSize","checkedTextColor","optionData","animation"],[m.x.WSelectionControl]:["isVisible","width","height","left","top","isLockAspect","isLock","bitFlag","gid","link_cids","opacity","z","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderColor","border","borderRadius","disabled","fontSize","textColor","checkedBgColor","checkedTc","optionData","gap","layout","selectionControlType","animation"],[m.x.WNavigationMenu]:["isVisible","width","height","left","top","isLockAspect","isLock","opacity","ro","z","aniName","aniDelay","aniCount","aniDuration","fixPosTo","optionData","panelData","expandData","selectedData","isShowIcon","canExpandOneMenu","navigationMenuType","display_name","animation"],[m.x.WTabs]:["isVisible","isLock","bitFlag","fontSize","br","width","height","isLockAspect","top","left","z","th","background","border","textColor","opacity","ts","tsc","ds","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","checkedTextSize","checkedTextColor","checkedBg","checkedBorder","checkedBoldType","checkedFontStyle","checkedTextDecoration","optionData","animation"],[m.x.WMobileTabBars]:["isVisible","isLock","bitFlag","fontSize","br","width","height","isLockAspect","top","left","z","th","background","border","borderVisibility","textColor","opacity","ts","tsc","ds","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","optionData","isShowIcon","isShowText","iconSize","iconColor","selectedTextColor","selectedIconColor","isShowSelectedText","isShowSelectedIcon","animation"],[m.x.WButtonSolid]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","is","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderVisibility","fill","animation"],[m.x.WTear]:["cid","mtime","name","left","top","width","height","isLockAspect","data","bind_widget_cid","ctime","order"],[m.x.Canvas]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","is","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderVisibility","animation"],[m.x.WElbow]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderVisibility","borderVisibility","fill","animation"],[m.x.WIcon]:["iconData","fill","opacity","animation","aniName","aniDelay","aniCount","aniDuration"],[m.x.WVector]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderVisibility","borderVisibility","fill","animation","vector"],[m.x.WTriangle]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderVisibility","borderVisibility","fill","animation"],[m.x.WSwimlane]:["text","isVisible","isLock","bitFlag","fontSize","br","width","height","isLockAspect","top","left","z","textDecoration","bold","italic","textColor","opacity","fixPosTo","fixed","fixed_type","display_name","tableData","innerBorderV","innerBorderH","outerBorder","styleType"],[m.x.wFlowClosed]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderVisibility","fill","animation"],[m.x.WFlowOpened]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderVisibility","fill","animation"],[m.x.WMind]:["isVisible","isLock","bitFlag","borderRadius","width","height","isLockAspect","top","left","z","background","border","opacity","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderVisibility","borderVisibility","fill","animation"],[m.x.WMindNode]:["bitFlag","text","fontSize","br","width","height","isLockAspect","top","left","z","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","sc","ro","padding","fixPosTo","fixed","fixed_type","display_name","borderVisibility","fill"],[m.x.WIphoneXSB]:["isVisible","isLock","bitFlag","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","sc","ro","padding","fixPosTo","fixed","fixed_type","display_name","fill"],[m.x.WIconButton]:["isVisible","isLock","bitFlag","is","icon","br","borderRadius","top","left","width","height","z","th","background","border","textColor","opacity","ds","shadow","sc","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","fill","animation"],[m.x.WArrow]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderVisibility","borderVisibility","fill","animation","arrow"]},C=te=>{let{type:H}=te;return l[H]},T=["icon","is"],A=(te,H,re)=>{const be=new Set;return C(te).forEach(Le=>{te.type===m.x.WTable&&H||te.type===m.x.WMind&&re!=null&&re.length||te.type==="button"&&!te.icon&&T.includes(Le)||be.add(Le)}),be};var k=e(86913),p=e(29516),r=e(95057),x=e(36072),f=e(96958),u=e(37679),b=e(77411),h=e(72399);const E={[p.m9]:te=>{const H=r.U[x.q.OpacityInfoPanel][p.m9];return{animation:[b.L],appearance:[H,...(0,u.ae)(te)],text:(0,f.xR)(te)}},[m.x.WTable]:()=>({appearance:[h.p],text:(0,f.b5)()})},N=te=>(E[te]||E[p.m9])(te);var z=e(68496),S=e(46927),_=e(37401),y=e(57465),a=e(80504),$=e(14672),ce=e(70226),de=e(45411);const fe=te=>te&&parseFloat(te),se=["aniCount","aniDelay","aniDuration","aniName"],J=["opacity","text_shadow","box_shadow","background","border","borderRadius","borderVisibility","fill"],ve=["boldType","textColor","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paraSpacing","padding","sizeType","textDecoration","ha","va"],D=["fontSize","padding","lineHeight","paraSpacing","letterSpacing"],R=["arrowTypes","arrowStroke"],V=se.concat(J).concat(ve).concat(R),O={[m.x.WStar]:"star",[m.x.WPolygon]:"polygon"},Ce=[m.x.WMTextInput,m.x.WMTextArea,m.x.WMindNode,m.x.Canvas],ae=function(te,H,re,be){be===void 0&&(be=!1);const Le=(0,de.o9)(H),Ve=S.VV.includes(Le),Ne=!re.has("sideNum"),{animation:We,appearance:ze,text:ft}=te,mt=(0,$.Dy)(We,H.animation),{borderRadius:i,fill:gt,background:Je,tc:Pt,arrowTypes:bt,arrowStroke:qt}=ze,{boldType:pt,fontFamily:$t,textColor:go,fontSize:Co,fontStyle:Tt,fontWeight:mo,padding:jo,textDecoration:Kt,ha:Ft,va:nt,lineHeight:Rt,paraSpacing:yt,letterSpacing:Jt,sizeType:vo}=ft,Yo=(0,k.k4)(i||""),Ho=Ne?null:(0,g.i)([H],O[Le]),kt=Yo&&!Ne?Ho.cornerRadius:i,Ze=!Yo&&!Ne?{...ze,[O[Le]]:{...Ho,cornerRadius:kt}}:{...ze,borderRadius:kt},it=(0,k.Eg)(gt);if(Ze.fill=it&&Ce.includes(Le)?{...H.fill,fillIsVisible:gt.fillIsVisible,solidColor:Je?Je[1]:Pt}:gt,Le===m.x.WRichText){var st;((st=ze.shadow)==null?void 0:st.type)!=="text_shadow"&&Ze.shadow&&(Ze.shadow.type="text_shadow")}else ze.shadow&&ze.shadow.type!=="box_shadow"&&Ze.shadow&&(Ze.shadow.type="box_shadow",Ze.shadow.spreadRadius=0);Le===m.x.Canvas&&(Ze.shadow=null,Ze.border=null,Ze.borderRadius=null,Ze.borderVisibility=null);const dt=(0,ce.QT)($t,mo);let Ot=(0,$.Dy)({animation:mt,...Ze,ha:Ft,va:nt},H);if(Ve){const Ct=$t,wo=mo,ln=vo,Io=Jt,Lo=yt,Ao=typeof go=="number"?(0,z.t0)(go):go,xt=Tt==="italic",Ut=pt===1,Wo=Kt&&Kt.includes("underline"),qo=Kt&&Kt.includes("line-through"),sn={...Ot.richTextV1};if(Ao!==void 0&&(sn.textColor=Ao),xt!==void 0&&(sn.italic=xt),Ut!==void 0&&(sn.bold=Ut),Wo!==void 0&&(sn.underline=Wo),qo!==void 0&&(sn.strikethrough=qo),Co!==void 0&&(sn.fontSize=Co),Rt!==void 0&&(sn.lineHeight=Rt),jo!==void 0&&(sn.padding=jo),Ft!==void 0&&(sn.horizontalAlign=Ft),nt!==void 0&&(sn.verticalAlign=nt),dt&&(delete sn.fontFamily,delete sn.fontWeight),Le===m.x.WRichText)Ct!==void 0&&(sn.fontFamily=Ct),wo!==void 0&&(sn.fontWeight=wo),ln!==void 0&&(sn.sizeType=ln),Io!==void 0&&(sn.letterSpacing=Io),Lo!==void 0&&(sn.paraSpacing=Lo),dt&&(delete sn.fontFamily,delete sn.fontWeight),sn.padding&&delete sn.padding,(!dt||!be)&&(Ot={...Ot,richTextV1:{...Ot.richTextV1,...sn}},(0,ce.jv)(Ot,sn),(0,a.PQ)(Ot));else if(Le===m.x.WMindNode){const Kn={...Ot.richTextV1,...sn,padding:Ot.richTextV1.padding,horizontalAlign:Ot.richTextV1.horizontalAlign,verticalAlign:Ot.richTextV1.verticalAlign,lineHeight:Ot.richTextV1.lineHeight},ds=Kn.fontFamily;Kn.lineHeight=(0,y.qp)(ds,Kn.fontSize),Ot={...Ot,richTextV1:Kn}}else Ot={...Ot,richTextV1:{...Ot.richTextV1,...sn}},(0,ce.jv)(Ot,sn)}else if(JSON.stringify(ft)!=="{}"){const Ct=Tt?+(Tt==="italic"):void 0,wo=Kt&&Kt.includes("underline")?"underline":Kt&&Kt.includes("line-through")?"line-through":"normal";if(H.textV0){const ln={bold:pt?!!pt:void 0,fontSize:Co,horizontalAlign:Ft,italic:Ct?!!Ct:void 0,lineHeight:Rt,padding:jo,textColor:go,textDecoration:wo,verticalAlign:nt};Ot.textV0=(0,$.Dy)(ln,H.textV0)}}if(Le===m.x.WElbow){if(bt&&bt.length===2){const[Ct,wo]=bt;Ot={...Ot,elbow:{...Ot.elbow,startAnchor:_.pt[Ct||0],endAnchor:_.qs[wo||1]}}}qt&&qt.bdrStyle&&(Ot={...Ot,elbow:{...Ot.elbow,arrowStroke:{...Ot.arrowStroke,...qt}}})}return Ot},q=async(te,H,re,be)=>{const Le=await(0,$._d)({isShowPrompt:!0});return Le?te.map(Ve=>{let{key:Ne,hotAttr:We}=Ve;const ze=A(We,H,re);return{key:Ne,hotAttr:ae(Le,{...We,cid:Ne},ze,be.has(Ne))}}):null},K=te=>{let{selectedTrees:H,otherProps:re}=te;const be=H[0].widget,Le=(0,de.o9)(be),Ve=N(Le),Ne={};return Object.entries(Ve).forEach(We=>{let[ze,ft]=We;const i=ft.map(Pt=>Pt({selectedTrees:H,...re})).reduce((Pt,bt)=>Object.assign(Pt,bt),{}),gt=Object.entries(i).filter(Pt=>{let[bt,qt]=Pt;return!!qt}),Je={};gt.forEach(Pt=>{let[bt,qt]=Pt;if(ze==="text")V.includes(bt)&&(D.includes(bt)?Je[bt]=fe(qt):bt==="va"?i.canVa&&(Je[bt]=qt):bt==="ha"?i.canHa&&(Je[bt]=qt):bt==="textColor"?Je[bt]=typeof qt=="number"?qt:(0,o.K8)(qt):bt==="textDecoration"?i.noTd||(Je[bt]=qt):bt==="boldType"?i.noBold||(Je[bt]=qt):bt==="fontStyle"?i.noItalic||(Je[bt]=qt):bt==="sizeType"&&[m.x.WRect,m.x.WOval,m.x.WPolygon,m.x.WStar].includes(be.type)||(Je[bt]=qt));else if(V.includes(bt))if(bt==="background"){if(be.type!==m.x.WRichText){const pt=typeof qt=="string"?Number(qt):typeof qt=="object"?qt.solidColor:qt;Je[bt]=[1,pt],Je.fill=typeof qt=="string"?{fill:"solid",fillIsVisible:!0,solidColor:pt}:qt}}else if(bt==="fill"){Je[bt]=qt;const $t=qt.fill==="solid"?qt.solidColor:qt.knobList[0].color;m.Q.BACKGROUND_TO_FILLS.includes(be.name)&&(Je.background=[1,$t])}else Je[bt]=bt==="opacity"&&typeof qt=="number"?qt/100:qt;else if(bt==="shadowValue"){const pt="shadow";Je[pt]=qt}}),Ne[ze]=Je}),Ne},xe=async te=>{let{selectedTrees:H,...re}=te;const be=K({selectedTrees:H,otherProps:re});await(0,$.Sl)(be)}},25960:(Et,ke,e)=>{"use strict";e.d(ke,{If:()=>p,RU:()=>r,s4:()=>C});var o=e(5868),m=e(4114),g=e(63555),l=e(29601);const C=(x,f)=>{const b=f.trim().split(/\s+/).map(h=>({literal:h,regular:new RegExp("\\b"+(0,o.$)(h),"i"),chinese:new RegExp(""+(0,o.$)(h))}));return x.filter(h=>k(b,h))},T=/[\u4E00-\u9FFF]/,A=(0,m.R)(()=>({All:I18N.dConst.icons.all,"Web Application":I18N.dConst.icons.web_app,Medical:I18N.dConst.icons.medical,"Text Editor":I18N.dConst.icons.text_editor,Spinner:I18N.dConst.icons.spinner,"File Type":I18N.dConst.icons.file_type,Directional:I18N.dConst.icons.directional,"Video Player":I18N.dConst.icons.video_player,"Form Control":I18N.dConst.icons.form_control,Transportation:I18N.dConst.icons.transportation,Chart:I18N.dConst.icons.chart,Brand:I18N.dConst.icons.brand,Hand:I18N.dConst.icons.hand,Payment:I18N.dConst.icons.payment,Currency:I18N.dConst.icons.currency,Accessibility:I18N.dConst.icons.accessibility,Gender:I18N.dConst.icons.gender,AV:I18N.dConst.icons.av,Action:I18N.dConst.icons.action,Alert:I18N.dConst.icons.alert,Communication:I18N.dConst.icons.communication,Content:I18N.dConst.icons.content,Device:I18N.dConst.icons.device,Editor:I18N.dConst.icons.text_editor,File:I18N.dConst.icons.file,Hardware:I18N.dConst.icons.hardware,Image:I18N.dConst.icons.image,Maps:I18N.dConst.icons.maps,"Navi.":I18N.dConst.icons.navi,"Notif.":I18N.dConst.icons.notif,Places:I18N.dConst.icons.places,Social:I18N.dConst.icons.social,Toggle:I18N.dConst.icons.toggle,Widgets:I18N.dConst.icons.widgets,Tool:I18N.dConst.icons.tool,Arrow:I18N.dConst.icons.directional,Miscellaneous:I18N.dConst.icons.miscellaneous,"Brand and Logos":I18N.dConst.icons.brand,Application:"App",Data:I18N.dConst.icons.data,Suggested:I18N.dConst.icons.suggested})),k=(x,f)=>{const u=A((0,l.w)()),b=[f.id,f.keywords,f.aliases,f.cat,u[f.cat]].join();return x.some(h=>{let{literal:E,regular:N,chinese:z}=h;return N.test(b)||T.test(E)&&z.test(b)})},p=x=>[g.x.WIcon].includes(x),r=x=>{const{type:f,id:u,lib:b=""}=x,h=u.split("-")[0]===f?u.slice(u.indexOf("-")+1):u,E=f==="fa5"&&b?f+"-"+h+"-"+b:f+"-"+h,N=f==="fa5"?(b+" fa-"+h).trim():f+"-"+h;return{iconName:E,iconDisplayName:N}}},87812:(Et,ke,e)=>{"use strict";e.d(ke,{Z:()=>m,v:()=>o});const o=g=>{if(!g)return"default";const{imageFillType:l,imageClipType:C}=g;return l&&l!=="default"?l:C&&C!=="none"?"stretch":"default"},m=g=>{let{w:l,h:C,imageRectOriginalWidth:T,imageRectOriginalHeight:A}=g;const k=l/C,p=T/A;let r,x,f,u;return k>p?(r=l,x=r/p,f=r/2,u=C/2):(x=C,r=C*p,u=x/2,f=l/2),{imageRectWidth:r,imageRectHeight:x,imageRectCenterX:f,imageRectCenterY:u}}},10091:(Et,ke,e)=>{"use strict";e.d(ke,{i:()=>l});var o=e(45411),m=e(46927);const g=["background","border"];function l(C,T){if(C.length===0)return"";const[A,...k]=T.split(":"),p=C.find(x=>m.VV.includes(x.type)&&T==="textV0"?x.richTextV1!==void 0:x[A]!==void 0);if(!p)return;let r;if(k.length>0){const x=l([p],A);r=k.reduce((f,u)=>f[u],x)}else r=p[A];return r||(r===0||r===!1)&&!g.includes(A)?r:(0,o.BN)(p,A)}},24207:(Et,ke,e)=>{"use strict";e.d(ke,{K:()=>o});function o(m,g){return Number.parseFloat(m/g)}},78695:(Et,ke,e)=>{"use strict";e.d(ke,{dP:()=>p,nM:()=>r,q2:()=>k,zG:()=>x});var o=e(98620),m=e(70877),g=e(58197),l=e(21011),C=e(2313),T=e(63555),A=e(72866);const k=(f,u)=>[T.x.WLine,T.x.WArrow].includes(f)?(0,l.ne)([u.startX,u.startY],[u.endX,u.endY]):(0,C.rn)(u),p=f=>{const u=f.map(b=>{const h=o.o.toBoundingPoints((0,A.Oj)(b));return m.a.axisAligned(h)});return g.rw.enclosingRects(u)},r=f=>{const{x:u,y:b,w:h,h:E}=p(f);return{top:b,left:u,right:u+h,bottom:b+E,width:h,height:E}},x=f=>{let{key:u}=f;const b=(0,A.Oj)(u),{transform:h,rect:{w:E,h:N}}=b,z=h.clone().apply(g.rw.center(b.rect)),S=z.x-E/2,_=z.y-N/2;return{top:_,left:S,width:E,height:N,right:S+E,bottom:_+N}}},80627:(Et,ke,e)=>{"use strict";e.d(ke,{$q:()=>f,Lx:()=>r,Yf:()=>A,cP:()=>T});var o=e(14495),m=e(5868),g=e(71604),l=e(63555),C=e(44864);const T=u=>{const b=[],{type:h,widget:E,children:N}=u;return h===l.x.WWrap?N.forEach(z=>b.push(...T(z))):b.push(E),b},A=u=>{const b=[],{type:h,widget:E,children:N}=u;return b.push(E),h===l.x.WWrap&&N.forEach(z=>b.push(...A(z))),b},k=u=>{const b=[];return u!=null&&u.widget.isLock||(b.push(u==null?void 0:u.widget),(u==null?void 0:u.type)===WidgetType.WWrap&&(u==null||u.children.forEach(h=>b.push(...k(h))))),b},p=u=>{const b=[];return u.parent&&(b.push(u.parent),b.push(...p(u.parent))),b},r=(u,b)=>{if(b){const h=new RegExp((0,m.$)(b),"i");return u.map(E=>x(E,N=>h.test((0,g.WM)(N)))).filter(E=>E)}else return u},x=(u,b)=>{const{widget:h,children:E,type:N}=u,z=h?b(h):!0,S=[o.Z6.panel,l.x.WMind].includes(N)?[]:E.map(_=>x(_,b)).filter(_=>_);if(z||S.length){const _=u.dup();return _.children=S,_}return null},f=()=>{const u=new Map,b=h=>{if(u.has(h))return u.get(h);if(rootSdk.sdkStore.isTrashed(h))return u.set(h,!0),!0;if(rootSdk.sdkStore.locTopRBActiveKey(h)===C.W4){const E=rootSdk.sdkStore._calcIntActConnMapCached();return b(Array.from(E.refPageToBasket[rootSdk.sdkStore.locUpRBPageKey(h)]||[])[0]||"")}return u.set(h,!1),!1};return b}},55624:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>T});var o=e(74059),m=e(66748),g=e.n(m),l=e(51044),C=e(57464);class T extends l.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"setElementRef",k=>this.$elem=k),(0,o.A)(this,"setHeight",k=>{this.$elem&&(this.$elem.style.height=k)}),(0,o.A)(this,"resetHeight",()=>{this.setHeight(this.props.collapse?0:"")}),(0,o.A)(this,"getHeight",()=>{const{$elem:k}=this;return k?Math.min(this.props.maxTransitioningHeight,Array.prototype.reduce.call(k.children,(p,r)=>p+r.getBoundingClientRect().height,0)):0})}componentDidMount(){this.props.collapse&&this.setHeight(0),this.$elem.addEventListener("transitionend",this.resetHeight)}UNSAFE_componentWillReceiveProps(k){const{collapse:p}=this.props,{collapse:r}=k;p!==r&&r&&this.setHeight(this.getHeight()+"px")}componentDidUpdate(k){k.collapse!==this.props.collapse&&setTimeout(()=>{this.setHeight((this.props.collapse?0:this.getHeight())+"px")})}componentWillUnmount(){this.$elem.removeEventListener("transitionend",this.resetHeight)}render(){const{className:k,duration:p,children:r,collapse:x}=this.props,f={overflow:"hidden",transition:"height "+p+"ms ease-in-out"};return(0,C.jsx)("div",{ref:this.setElementRef,className:k,style:f,children:!x&&r})}}T.propTypes={duration:g().number,maxTransitioningHeight:g().number,className:g().string,collapse:g().bool.isRequired,children:g().oneOfType([g().element,g().array])},T.defaultProps={className:"",duration:200,maxTransitioningHeight:1/0}},71072:(Et,ke,e)=>{"use strict";e.d(ke,{Pd:()=>_});var o=e(74059),m=e(66748),g=e.n(m),l=e(51044),C=e(7290),T=e(60081),A=e(19418),k=e(11777),p=e(21676);const r=p.Ay.div.withConfig({displayName:"styles__CSSDesignZoomBoxDiv",componentId:"sc-ru8w0z-0"})(["position:relative;width:64px;height:32px;display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer;border-radius:6px;transition:all 0.2s ease-out;&.isBorder{outline:1px solid #E5E5E5;margin-right:6px;}.zoom-main{width:100%;height:100%;display:flex;align-items:center;justify-content:center;}.zoom-box{display:flex;align-items:center;line-height:16px;height:16px;font-size:13px;color:",";.zoom-arrow{width:7px;transform:translateY(-1px);margin-left:8px;}}.zoom-tip{margin-top:8px;color:#415058;height:12px;line-height:12px;font-size:12px;}&:hover{background:",";}&.active,&:active{background-color:",";}"],$=>$.theme.color_text_L1,$=>$.theme.color_btn_secondary_hover,$=>$.theme.color_btn_secondary_active),x=p.Ay.div.withConfig({displayName:"styles__StyledZoomOptionsPanel",componentId:"sc-ru8w0z-1"})(["position:absolute;padding:8px;",":",";right:0;border-radius:8px;min-width:178px;font-size:12px;background:",";box-shadow:",";border:1px solid ",";.zoom-input-number-wrap{height:32px;display:flex;align-items:center;justify-content:center;.zoom-input{width:140px;border-color:",";&:hover{border-color:",";}input,.suffix{color:",";}}}.divider{margin:8px 0;border-top:1px solid ",";}.zoom-item{display:flex;align-items:center;justify-content:space-between;height:28px;padding:0 16px 0 32px;border-radius:4px;color:",";.zoom-text{position:relative;}.kbd-size{white-space:nowrap;margin-left:auto;kbd{color:",";display:inline-block;text-align:center;min-width:12px;margin-right:2px;}kbd:first-child{margin-left:0;}.kbd:last-child{margin-right:0;}}&:not(.is-disabled):hover{background:",";}&.is-disabled{cursor:not-allowed;color:",";}.zoom-select{position:absolute;left:-20px;top:7px;width:8px;color:",";}}&.mac .others,&.others .mac{display:none;}"],$=>$.position==="top"?"top":"bottom",$=>$.position==="top"?"calc(100% + 8px)":"100%",$=>$.theme.color_bg_white,$=>$.theme.shadow_m,$=>$.theme.color_bg_border_01,$=>$.theme.color_bg_border_02,$=>$.theme.color_proto,$=>$.theme.color_text_L1,$=>$.theme.color_bg_border_01,$=>$.theme.color_text_L1,$=>$.theme.color_text_L2,$=>$.theme.color_btn_secondary_hover,$=>$.theme.color_text_disabled01,$=>$.theme.color_text_L1);var f=e(86634),u=e.n(f),b=e(9376),h=e(95230),E=e(90968),N=e(54386),z=e(77511),S=e(57464);class _ extends l.PureComponent{constructor(ce){super(ce),(0,o.A)(this,"handleToggleZoomContentShow",de=>{const{onlyView:fe,onlyPreview:se}=this.props;de.stopPropagation(),this.setState({isZoomContentShow:!this.state.isZoomContentShow}),se?(0,z.v)({operation_type:z.$.Zoom}):fe?(0,N.A)({operation_type:N.D.Zoom}):(0,E.kX)({operation_type:E.mV.View})}),(0,o.A)(this,"handleZoomIn",de=>{de.stopPropagation();const{onZoomIn:fe}=this.props;fe()}),(0,o.A)(this,"handleZoomOut",de=>{de.stopPropagation();const{onZoomOut:fe}=this.props;fe()}),this.state={isZoomContentShow:!1}}render(){const{scale:ce,onZoomInitialScale:de,onZoomSpecifiedScale:fe,onZoomSelection:se,isShowZoomSelection:J,className:ve,onlyPreview:D,isHtmlZipPreview:R,withDropdownMarker:V}=this.props,{isZoomContentShow:O}=this.state,Ce=h.I.indexOf(ce),ae=Ce!==h.I.length-1,q=Ce!==0;return(0,S.jsx)(k.A,{content:I18N.DesignZoomBox.zoom,direction:"down",distance:8,children:(0,S.jsxs)(r,{onClick:this.handleToggleZoomContentShow,className:u()(ve||"",{active:O},{isBorder:R}),children:[(0,S.jsx)("div",{className:"zoom-main",children:(0,S.jsxs)("div",{className:"zoom-box",children:[(0,S.jsx)("p",{className:"zoom-scale",children:Math.round(ce)+"%"}),V&&(0,S.jsx)(C.C,{className:"zoom-arrow",name:"toolbar/triangle-down"})]})}),O&&(0,S.jsx)(y,{position:"top",scale:ce,minScale:h.sI,maxScale:h.sH,canZoomIn:ae,handleZoomIn:this.handleZoomIn,canZoomOut:q,handleZoomOut:this.handleZoomOut,onZoomInitialScale:de,onZoomSpecifiedScale:fe,onZoomSelection:se,isShowZoomSelection:J,isZoomOptionPanelVisible:O,setIsZoomOptionPanelVisible:K=>this.setState({isZoomContentShow:K}),onlyPreview:D})]})})}}(0,o.A)(_,"propTypes",{scale:g().number,isShowZoomSelection:g().bool,onZoomSpecifiedScale:g().func,onZoomIn:g().func,onZoomOut:g().func,onZoomInitialScale:g().func,onZoomSelection:g().func,className:g().string,onlyPreview:g().bool,isHtmlZipPreview:g().bool,onlyView:g().bool,withDropdownMarker:g().bool}),(0,o.A)(_,"defaultProps",{isShowZoomSelection:!0,withDropdownMarker:!0});const y=$=>{let{position:ce,scale:de,minScale:fe,maxScale:se,canZoomIn:J,handleZoomIn:ve,canZoomOut:D,handleZoomOut:R,onZoomInitialScale:V,onZoomSpecifiedScale:O,onZoomSelection:Ce,isShowZoomSelection:ae,isZoomOptionPanelVisible:q,setIsZoomOptionPanelVisible:K,onlyPreview:xe}=$;if(!q)return null;const te=(0,b.cX)()?"mac":"others",H=(0,l.useRef)(null),re=Le=>{const{target:Ve}=Le;if(!Ve.closest(".zoom-main")&&q){var We;(We=H.current)!=null&&We.contains(Ve)||K(!1)}},be=Le=>{Le.stopPropagation();const Ve=Le.currentTarget.dataset.value;O(Ve)};return q&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)(x,{className:u()("preview-zoom-options-panel",te),position:ce,ref:H,children:[(0,S.jsx)("div",{className:"zoom-input-number-wrap",onClick:Le=>Le.stopPropagation(),children:(0,S.jsx)("form",{children:(0,S.jsx)(T.A,{className:"zoom-input",min:fe,max:se,precision:0,suffix:"%",actionButton:!1,value:Math.round(de),isSelect:!0,onConfirm:O,onlyPreview:xe})})}),(0,S.jsx)("div",{className:"divider"}),(0,S.jsxs)("div",{className:u()("zoom-item",{"is-disabled":!J}),onClick:ve,children:[(0,S.jsx)("p",{className:"zoom-text",children:I18N.DesignZoomBox.zoomin}),(0,S.jsx)("div",{className:"mac kbd-size",dangerouslySetInnerHTML:{__html:a[te].zoomIn}}),(0,S.jsx)("div",{className:"others kbd-size",dangerouslySetInnerHTML:{__html:a[te].zoomIn}})]}),(0,S.jsxs)("div",{className:u()("zoom-item",{"is-disabled":!D}),onClick:R,children:[(0,S.jsx)("p",{className:"zoom-text",children:I18N.DesignZoomBox.zoomout}),(0,S.jsx)("div",{className:"mac kbd-size",dangerouslySetInnerHTML:{__html:a[te].zoomOut}}),(0,S.jsx)("div",{className:"others kbd-size",dangerouslySetInnerHTML:{__html:a[te].zoomOut}})]}),(0,S.jsx)("div",{className:"divider"}),(0,S.jsx)("div",{className:"zoom-item","data-value":50,onClick:be,children:(0,S.jsxs)("p",{className:"zoom-text",children:[Math.round(de)===50&&(0,S.jsx)(C.C,{className:"zoom-select",name:"toolbar/selected"}),"50%"]})}),(0,S.jsxs)("div",{className:"zoom-item","data-value":100,onClick:be,children:[(0,S.jsxs)("p",{className:"zoom-text",children:[Math.round(de)===100&&(0,S.jsx)(C.C,{className:"zoom-select",name:"toolbar/selected"}),"100%"]}),(0,S.jsx)("div",{className:"mac kbd-size",dangerouslySetInnerHTML:{__html:a[te].zoomReset}}),(0,S.jsx)("div",{className:"others kbd-size",dangerouslySetInnerHTML:{__html:a[te].zoomReset}})]}),(0,S.jsx)("div",{className:"zoom-item","data-value":200,onClick:be,children:(0,S.jsxs)("p",{className:"zoom-text",children:[Math.round(de)===200&&(0,S.jsx)(C.C,{className:"zoom-select",name:"toolbar/selected"}),"200%"]})}),(0,S.jsx)("div",{className:"divider"}),(0,S.jsxs)("div",{className:"zoom-item",onClick:V,children:[(0,S.jsx)("p",{className:"zoom-text",children:I18N.DesignZoomBox.fit_canvas}),(0,S.jsx)("div",{className:"mac kbd-size",dangerouslySetInnerHTML:{__html:a[te].zoomFit}}),(0,S.jsx)("div",{className:"others kbd-size",dangerouslySetInnerHTML:{__html:a[te].zoomFit}})]}),ae&&(0,S.jsxs)("div",{className:"zoom-item",onClick:Ce,children:[(0,S.jsx)("p",{className:"zoom-text",children:I18N.DesignZoomBox.zoom_selection}),(0,S.jsx)("div",{className:"mac kbd-size",dangerouslySetInnerHTML:{__html:a[te].zoomSelect}}),(0,S.jsx)("div",{className:"others kbd-size",dangerouslySetInnerHTML:{__html:a[te].zoomSelect}})]})]}),(0,S.jsx)(A.A,{target:document,onClick:(0,A.t)(re,{capture:!0})})]})};y.propTypes={position:g().string,scale:g().number,minScale:g().number,maxScale:g().number,canZoomIn:g().bool,handleZoomIn:g().func,canZoomOut:g().bool,handleZoomOut:g().func,onZoomInitialScale:g().func,onZoomSpecifiedScale:g().func,onZoomSelection:g().func,isShowZoomSelection:g().bool,isZoomOptionPanelVisible:g().bool,setIsZoomOptionPanelVisible:g().func,onlyPreview:g().bool};const a={mac:{zoomOut:"<kbd>\u2318</kbd><kbd>-</kbd>",zoomIn:"<kbd>\u2318</kbd><kbd>+</kbd>",zoomReset:"<kbd>\u2318</kbd><kbd>0</kbd>",zoomFit:"<kbd>\u2318</kbd><kbd>1</kbd>",zoomSelect:"<kbd>\u2318</kbd><kbd>2</kbd>"},others:{zoomOut:"<kbd>Ctrl</kbd><kbd>-</kbd>",zoomIn:"<kbd>Ctrl</kbd><kbd>+</kbd>",zoomReset:"<kbd>Ctrl</kbd><kbd>0</kbd>",zoomFit:"<kbd>Ctrl</kbd><kbd>1</kbd>",zoomSelect:"<kbd>Ctrl</kbd><kbd>2</kbd>"}}},26437:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>r});function o(x,f,u){const b=f.getBoundingClientRect(),h=Math.min(b.left,document.documentElement.clientWidth-b.right);return x.offsetWidth+f.offsetWidth+u+h<document.documentElement.clientWidth}function m(x,f){const u=x.getBoundingClientRect(),b=u.bottom>window.innerHeight,h=u.top<0;if(h&&b)return!0;if(x.offsetHeight>f.offsetHeight){const E=x.offsetHeight/2,N=u.bottom-window.innerHeight,z=-u.top,S=E-N,_=E-z;return S>=0&&_>=0}return!b&&!h}function g(x,f,u,b,h){if(!u)return x;const E=u.getBoundingClientRect(),N=f.offsetHeight+b,z=window.innerHeight-E.bottom,S=E.top,_=z>=N,y=S>=N;switch(x){case"right":return!o(f,u,b)||!m(u,f)?g("up",f,u,b,!0):document.documentElement.clientWidth-E.right<f.offsetWidth+b?"left":"right";case"left":return!o(f,u,b)||!m(u,f)?g("up",f,u,b,!0):E.left<f.offsetWidth+b?"right":"left";case"up":if(!y){if(_)return"down";if(!h&&o(f,u,b))return g("right",f,u,b,!0)}return"up";case"down":default:if(!_){if(y)return"up";if(!h&&o(f,u,b))return g("right",f,u,b,!0)}return"down"}}function l(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function C(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0}function T(){return typeof document<"u"?document.documentElement.clientWidth:1e3}function A(x){const f=x.split("-");return f.length>1?f[1]:"middle"}function k(x,f,u,b,h){let E=-1e7,N;if(x){const z=C(),S=f.getBoundingClientRect(),_=S.left+z,y=Math.round(S.width/2),a=Math.min(T(),x.offsetWidth);if(b==="start")E=_;else if(b==="end"){const fe=_+f.offsetWidth;E=Math.max(fe-a,z)}else{const fe=_+y-Math.round(a/2);E=Math.max(fe,z)}const $=E+a,ce=z+document.documentElement.clientWidth,de=$-ce;de>0&&(E-=de),u==="up"?N=S.top+l()-(x.offsetHeight+h):N=S.bottom+l()+h}return{left:E,top:N}}function p(x,f,u,b,h){let E=-1e7,N=0;if(x){const z=l(),S=C(),_=f.getBoundingClientRect(),y=_.top+z,a=Math.round(f.offsetHeight/2),$=y+a,ce=_.top+z+a;if(b==="start")N=y;else if(b==="end")N=_.bottom+z-x.offsetHeight;else{const fe=Math.max(y+a-Math.round(x.offsetHeight/2),z);N=Math.min(fe,$)}const de=N-z+x.offsetHeight-window.innerHeight;de>0&&(N=Math.max(N-de,ce-x.offsetHeight)),u==="right"?E=_.right+h+S:E=_.left-h-x.offsetWidth+S}return{left:E,top:N}}function r(x,f,u){let{direction:b,distance:h,forceDirection:E}=u;const N=A(b),z=b.split("-")[0];let S=z;return!E&&f&&(S=g(z,f,x,h)),{sourceNodePosition:S==="up"||S==="down"?k(f,x,S,N,h):p(f,x,S,N,h),realDirection:S}}},29073:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>f});var o=e(74059),m=e(66748),g=e.n(m),l=e(51044),C=e(7290),T=e(86634),A=e.n(T),k=e(21676),p=e(76364);const r=(0,k.Ay)(p.A).withConfig({displayName:"styles__StyledDropdownList",componentId:"sc-1xo6v2t-0"})(['[type="button"]{display:flex;}.options-opener{width:202px;height:28px;border:1px solid transparent;display:flex;align-items:center;border-radius:6px;.opener-icon-container{width:24px;height:24px;display:flex;justify-content:center;align-items:center;margin-left:2px;flex-shrink:0;}.select-title{color:',";margin:0 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;&.has-icon{margin:0 6px 0 4px;}&.is-placeholder{color:",";}}.expand-icon.svg-icon{color:",";width:26px;height:26px;flex-shrink:0;}&:hover{border:1px solid ",";.expand-icon{color:",";margin-left:auto;}}.page1,.page2{&.icon-arrow-top{.icon{transform:rotate(-90deg);}}&.icon-arrow-left{.icon{transform:rotate(-180deg);}}&.icon-arrow-bottom{.icon{transform:rotate(90deg);}}&::before{display:none;}.icon{width:12px;height:7px;}}}&.is-open{.options-opener{border:1px solid ",";.expand-icon{transform:rotate(180deg);margin-left:auto;}}}&.is-disabled{.options-opener{&:hover{border-color:#e8e8e8;}.expand-icon{display:none;}}}"],b=>b.theme.color_text_L1,b=>b.theme.color_text_link_normal,b=>b.theme.color_text_L3,b=>b.theme.color_bg_border_02,b=>b.theme.color_text_L1,b=>b.theme.color_bg_border_02);var x=e(57464);class f extends l.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"setComponentRef",h=>this.dropdown=h),(0,o.A)(this,"close",()=>this.dropdown.close()),(0,o.A)(this,"open",()=>this.dropdown.open())}render(){const{forceDarkTheme:h=!1,isOpen:E=!1,renderMenu:N,className:z,title:S,icon:_,menux:y,isPlaceholder:a,renderTitle:$,isOpenerAttrDisabled:ce,shouldPreventScrollingPropagation:de,shouldCloseOnSelect:fe=!0,isPosition2:se=!1,customOpener:J}=this.props;return(0,x.jsx)(r,{isOpen:E,ref:this.setComponentRef,shouldPreventScrollingPropagation:de,isDisabled:ce,menuX:y,isPlaceholder:!0,className:"link-opener-wrapper",opener:J||(0,x.jsx)(u,{className:z,icon:_,title:S,isPlaceholder:a,renderTitle:$}),menuClassName:A()("link-wrapper",z),menu:N,forceDarkTheme:h,shouldCloseOnSelect:fe,isPosition2:se})}}f.propTypes={isOpen:g().bool,title:g().string,menux:g().string,isPlaceholder:g().bool,shouldPreventScrollingPropagation:g().bool,isOpenerAttrDisabled:g().bool,className:g().string,renderMenu:g().object,icon:g().object,renderTitle:g().func,forceDarkTheme:g().bool,shouldCloseOnSelect:g().bool};const u=b=>{let{className:h,title:E,icon:N,isPlaceholder:z,renderTitle:S}=b;return(0,x.jsxs)("div",{className:A()("options-opener",h),children:[N&&(0,x.jsx)("div",{className:"opener-icon-container",children:N}),S&&S(),E&&(0,x.jsx)("p",{className:A()("select-title",{"is-placeholder":z,"has-icon":N}),children:E}),(0,x.jsx)(C.C,{className:"expand-icon",name:"common/expand@26"})]})};u.propTypes={title:g().string,className:g().string,icon:g().object,isPlaceholder:g().bool,renderTitle:g().func}},13020:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>f});var o=e(74059),m=e(66748),g=e.n(m),l=e(51044),C=e(86634),T=e.n(C),A=e(22379),k=e(73773),p=e(52367),r=e(88512),x=e(57464);class f extends l.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"setElementRef",b=>this.textarea=b),(0,o.A)(this,"handleFocus",()=>{this.props.onFocus()}),(0,o.A)(this,"handleChange",b=>{const{onChange:h}=this.props,{value:E}=b.target;h(E)}),(0,o.A)(this,"handleBlur",()=>{this.props.onBlur()}),(0,o.A)(this,"handleKeyDown",b=>{b.key===k._.Enter?(b.preventDefault(),this.handleBlur()):b.key===k._.Escape&&(this.props.onChange(this.cacheValue),this.cacheValue=null,this.handleBlur())})}componentDidMount(){this.props.editing&&(this.cacheValue=this.props.value,this.textarea.select())}componentDidUpdate(b){!b.editing&&this.props.editing&&(this.cacheValue=this.props.value,this.textarea.select())}handleStopPropagation(b){b.stopPropagation()}render(){const{editing:b,value:h,className:E,isShowToolTips:N,highlightKeyword:z}=this.props;return b?(0,x.jsx)(r.O,{className:T()("is-editing",E),onClick:this.handleStopPropagation,children:(0,x.jsx)("textarea",{ref:this.setElementRef,value:h,onFocus:this.handleFocus,onChange:this.handleChange,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown})}):(0,x.jsx)(r.O,{className:E,children:N?(0,x.jsx)(A.A,{arrowed:!1,children:h}):(0,x.jsx)(p.A,{value:h,highlightKeyword:z})})}}(0,o.A)(f,"propTypes",{editing:g().bool,value:g().string,className:g().string,onFocus:g().func,onBlur:g().func,onChange:g().func,isShowToolTips:g().bool,highlightKeyword:g().string}),(0,o.A)(f,"defaultProps",{onFocus:()=>{},onChange:()=>{},isShowToolTips:!1})},8681:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>p});var o=e(51044),m=e(66748),g=e.n(m),l=e(7290),C=e(21676),T=e(57464);const A=r=>{let{className:x="",renderContent:f,customIconName:u}=r;return(0,T.jsxs)(k,{className:x,children:[(0,T.jsx)(l.C,{name:u||"design/warning",className:"tip-icon"}),(0,T.jsx)("div",{className:"reminder-tips",children:f()})]})};A.propTypes={renderContent:g().func};const k=C.Ay.a.withConfig({displayName:"HelpReminder__StyledHelpReminder",componentId:"sc-1r5piyy-0"})(["display:flex;align-items:center;margin-left:2px;position:relative;.tip-icon{width:16px;height:16px;color:",";&:hover{color:",";}}.svg-icon{.main{fill:",";}.secondary{fill:#ededed;}}&.fixed-reminder-tips{.reminder-tips{position:fixed;}}.reminder-tips{display:flex;visibility:hidden;transition-delay:0.3s;transition-property:visibility;}&:hover{.reminder-tips{visibility:visible;transition-delay:0s;transition-property:visibility;}}"],r=>r.theme.color_text_L2,r=>r.theme.color_text_L1,r=>r.theme.color_text_L3),p=A},89860:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>r});var o=e(74059),m=e(66748),g=e.n(m),l=e(51044),C=e(99267),T=e(57464);const{push:A}=(0,C.O)(),k=(x,f)=>{x.src=f},p="/mb-workspace/images/preview/image-load.png";class r extends l.PureComponent{constructor(){super(),(0,o.A)(this,"setElementRef",f=>this.$elem=f),this.isUnmounted=!1,this.retryTimer=null}componentDidMount(){this.props.isVisible&&this.generateSnapshotTask()}componentDidUpdate(f,u){!this.props.isVisible&&f.imageUrl===this.props.imageUrl||(clearTimeout(this.retryTimer),this.generateSnapshotTask())}componentWillUnmount(){this.isUnmounted=!0,clearTimeout(this.retryTimer)}generateSnapshotTask(f){f===void 0&&(f=5),A(async()=>{const{imageUrl:b,isVisible:h}=this.props;h&&(this.isUnmounted||k(this.$elem,b))}).catch(b=>{this.retryTimer=setTimeout(()=>{this.generateSnapshotTask(f*2)},f*1e3)})}render(){return(0,T.jsx)("img",{ref:this.setElementRef,src:p})}}(0,o.A)(r,"propTypes",{imageUrl:g().string.isRequired,isVisible:g().bool.isRequired})},36349:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>k});var o=e(74059),m=e(73518),g=e.n(m),l=e(66748),C=e.n(l),T=e(51044),A=e(57464);class k extends T.PureComponent{constructor(r){super(r),(0,o.A)(this,"setContainerRef",x=>this.$container=x),(0,o.A)(this,"updateContainerRect",()=>this.setState({containerRect:this.$container.getBoundingClientRect()})),(0,o.A)(this,"handleScroll",g()(x=>{const{onScrollChange:f}=this.props;this.updateContainerRect(),f&&f(x)},100,{trailing:!1})),this.state={containerRect:null}}componentDidMount(){this.props.show&&this.updateContainerRect()}componentDidUpdate(r){!r.show&&this.props.show&&this.updateContainerRect()}render(){const{children:r,show:x,onScrollChange:f,...u}=this.props,{containerRect:b}=this.state;return(0,A.jsx)("div",{ref:this.setContainerRef,onScroll:this.handleScroll,...u,children:r(b,x)})}}(0,o.A)(k,"propTypes",{show:C().bool,children:C().func,onScrollChange:C().func}),(0,o.A)(k,"defaultProps",{show:!0})},20769:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>u});var o=e(74059),m=e(66748),g=e.n(m),l=e(51044),C=e(7290),T=e(73773),A=e(35524),k=e(54909),p=e(21676);const r=(b,h)=>{var E,N;if(b.forceDarkTheme)switch(h){case"workspace_dropdown_menu_shadow":return"0 2px 7px 0 rgba(0, 0, 0, 0.26), 0 12px 36px 0 rgba(0, 0, 0, 0.1)";case"color_proto":return"#1684fc";case"interation_active_box_shadow":return"0 0 4px 0 rgba(41,141,248,0.50)";default:return((E=k.f[h])==null?void 0:E.value_dark)||((N=A.qY[h])==null?void 0:N.value)}return b.theme[h]},x=p.Ay.div.withConfig({displayName:"styles__StyledSearchBar",componentId:"sc-1nbdan2-0"})(["position:relative;height:24px;display:flex;justify-content:space-between;align-items:center;.search-icon{position:absolute;left:0;width:24px;height:24px;text-align:center;line-height:24px;font-size:12px;color:",";pointer-events:none;}.autoCompleteInput{position:absolute;width:1px;height:1px;top:-2000px;}input{width:100%;height:100%;padding-right:22px;background-color:",";border-width:1px;border-style:solid;border-color:",";border-radius:2px;transition:all 0.2s ease-out;text-indent:24px;color:",";&::placeholder{color:",";}&:hover{border-color:",";}&:focus{background-color:",";border-color:",";}}.clear-icon{position:absolute;right:0;width:24px;line-height:24px;text-align:center;color:",";transition:all 0.15s ease-in-out;cursor:pointer;&:hover{color:",";}g circle{fill:",";}}"],b=>r(b,"color_text_L3"),b=>r(b,"color_btn_secondary_active"),b=>r(b,"color_btn_secondary_active"),b=>r(b,"color_text_L2"),b=>r(b,"color_text_L3"),b=>r(b,"color_proto"),b=>r(b,"color_bg_white"),b=>r(b,"color_proto"),b=>r(b,"color_text_disabled01"),b=>r(b,"color_text_L3"),b=>b.theme.clear_icon_color);var f=e(57464);class u extends l.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"setInputRef",h=>this.$input=h),(0,o.A)(this,"focus",()=>this.$input.focus()),(0,o.A)(this,"handleChange",h=>this.props.onChange(h.target.value)),(0,o.A)(this,"handleClear",()=>this.props.onChange("")),(0,o.A)(this,"handleMouseDown",h=>h.preventDefault()),(0,o.A)(this,"handleKeyDown",h=>{const{shouldSearchOnEnter:E,onConfirm:N}=this.props;h.key===T._.Enter&&E&&N&&N()})}render(){const{value:h,placeholder:E,className:N,inputStyle:z,forceDarkTheme:S}=this.props;return(0,f.jsxs)(x,{type:"search",className:N,forceDarkTheme:S,children:[(0,f.jsx)(C.C,{name:"common/search",className:"search-icon"}),(0,f.jsx)("input",{className:"WorkspaceInput",ref:this.setInputRef,style:z,type:"text",value:h,placeholder:E,onChange:this.handleChange,onKeyDown:this.handleKeyDown,onFocus:()=>{MB.f.addActionInputFocus=!0},onBlur:()=>{MB.f.addActionInputFocus=!1}}),h.length>0&&(0,f.jsx)(C.C,{name:"new_replace/times_fc",className:"dropmenu-no-exit clear-icon",onMouseDown:this.handleMouseDown,onClick:this.handleClear})]})}}(0,o.A)(u,"propTypes",{value:g().string,inputStyle:g().object,placeholder:g().string,className:g().string,onChange:g().func,shouldSearchOnEnter:g().bool,onConfirm:g().func,forceDarkTheme:g().bool}),(0,o.A)(u,"defaultProps",{shouldSearchOnEnter:!1})},36037:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>p});var o=e(74059),m=e(66748),g=e.n(m),l=e(51044),C=e(21676);const T=9,A=C.Ay.div.withConfig({displayName:"styles__StyledSlider",componentId:"sc-1hg1r6p-0"})(["&.slider{position:relative;width:100%;height:10px;display:flex;align-items:center;cursor:pointer;.rail{position:absolute;top:3px;left:0;width:calc(100% - ","px);height:3px;&::before{content:'';position:absolute;left:0;right:-","px;height:100%;background:",";border-radius:3px;}.fill{position:absolute;left:0;height:100%;background:",";border-radius:3px;}.slider-btn{position:absolute;width:11px;height:11px;top:-4px;border-radius:50%;background:white;box-shadow:0 1px 2px rgba(34,34,34,0.36);&:hover{background:#ccc;}}}}"],T,T,r=>r.theme.color_btn_secondary_active,r=>r.theme.color_proto);var k=e(57464);class p extends l.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"setRef",x=>this.wrapper=x),(0,o.A)(this,"_calValue",x=>{const{min:f,max:u}=this.props,{left:b,width:h}=this.wrapper.getBoundingClientRect();let N=(Math.min(1,Math.max(0,(x-b)/h))*u).toFixed(1);return N<f?f:N}),(0,o.A)(this,"handleDown",x=>{const{attr:f,onChange:u,onConfirm:b,onMouseDown:h}=this.props,E=this._calValue(x.clientX);if(h&&h(f),u(E,f),!this.wrapper)return;this.wrapper.querySelector(".slider-btn").classList.add("slider-move");const N=S=>{if(!this.wrapper)return;const _=this._calValue(S.clientX);u(_,f)},z=S=>{if(document.removeEventListener("mousemove",N),document.removeEventListener("mouseup",z),!this.wrapper)return;this.wrapper.querySelector(".slider-btn").classList.remove("slider-move");const _=this._calValue(S.clientX);b(_,f)};N(x.nativeEvent),document.addEventListener("mousemove",N),document.addEventListener("mouseup",z)})}render(){const{value:x,max:f,min:u,width:b}=this.props,h=(x-u)/(f-u)*100+"%";return(0,k.jsx)(A,{type:"slider",ref:this.setRef,style:{width:b},className:"slider",onMouseDown:this.handleDown,children:(0,k.jsxs)("div",{className:"rail",children:[(0,k.jsx)("div",{className:"fill",style:{width:h}}),(0,k.jsx)("div",{className:"slider-btn",style:{left:h}})]})})}}(0,o.A)(p,"propTypes",{attr:g().string,value:g().oneOfType([g().number,g().string]).isRequired,max:g().number.isRequired,min:g().number,width:g().number,onChange:g().func,onConfirm:g().func,onMouseDown:g().func}),(0,o.A)(p,"defaultProps",{value:50,max:100,min:0})},8066:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>b});var o=e(74059),m=e(66748),g=e.n(m),l=e(51044),C=e(60185),T=e(26437),A=e(19418),k=e(86634),p=e.n(k),r=e(21676);const x=r.Ay.div.withConfig({displayName:"styles__CSSToolBarDropdown",componentId:"sc-98fdjx-0"})(["position:relative;.hover-box{position:absolute;height:20px;top:99%;width:100%;}&.is-open > a{background-color:",";}&.disabled{opacity:0.4;}"],E=>E.theme.color_btn_secondary_active),f=r.Ay.div.withConfig({displayName:"styles__CSSToolBarMenuBox",componentId:"sc-98fdjx-1"})(["position:absolute;z-index:1101;"]);var u=e(57464);class b extends l.PureComponent{constructor(N){super(N),(0,o.A)(this,"setElementRef",z=>this.$element=z),(0,o.A)(this,"handleToggleMenuShow",z=>{const{onClick:S,onClickIcon:_,isDisabled:y}=this.props;z.stopPropagation(),!y&&(this.setState({isMenuShow:!this.state.isMenuShow}),S&&S(!this.state.isMenuShow),_&&_())}),(0,o.A)(this,"handMouseEnter",z=>{z.stopPropagation();const{isDisabled:S}=this.props;S||this.setState({isMenuShow:!0})}),(0,o.A)(this,"handMouseLeave",z=>{z.stopPropagation();const{isDisabled:S}=this.props;S||this.setState({isMenuShow:!1})}),(0,o.A)(this,"handleCloseMenu",()=>{const{onClick:z}=this.props;this.setState({isMenuShow:!1}),z&&z(!1)}),this.state={isMenuShow:N.isDefaultOpen}}componentDidUpdate(N){const{isDefaultOpen:z}=this.props;z&&z!==N.isDefaultOpen&&this.setState({isMenuShow:!0})}render(){const{renderOpener:N,renderMenu:z,isHoverDropdown:S,className:_,menuClassName:y,direction:a,isDefaultOpen:$,isDisabled:ce,menuPosTop:de,menuPosLeft:fe,menuPosRight:se,offsetX:J,distance:ve}=this.props,{isMenuShow:D}=this.state;return(0,u.jsxs)(x,{ref:this.setElementRef,className:p()("toolbar-dropdown-opener",_,{"is-open":D,disabled:ce}),onClick:S?null:this.handleToggleMenuShow,onMouseEnter:S?this.handMouseEnter:null,onMouseLeave:S?this.handMouseLeave:null,children:[N,S&&(0,u.jsx)("div",{className:"hover-box"}),D&&(0,u.jsx)(h,{isDefaultOpen:$,targetNode:this.$element,renderMenu:z,direction:a,menuClassName:y,menuPosTop:de,menuPosLeft:fe,menuPosRight:se,offsetX:J,distance:ve,onClose:this.handleCloseMenu})]})}}(0,o.A)(b,"propTypes",{isDefaultOpen:g().bool,isHoverDropdown:g().bool,renderMenu:g().node,renderOpener:g().node,className:g().string,menuClassName:g().string,direction:g().string,onClick:g().func,onClickIcon:g().func,isDisabled:g().bool,menuPosTop:g().number,menuPosLeft:g().number,menuPosRight:g().number,offsetX:g().number,distance:g().number}),(0,o.A)(b,"defaultProps",{isCloseMenuItem:!0,direction:"down",isDefaultOpen:!1});class h extends l.PureComponent{constructor(){super(),(0,o.A)(this,"setMenuRef",N=>this.$menu=N),(0,o.A)(this,"updateMenuPosition",()=>{const{targetNode:N,direction:z,distance:S}=this.props,{sourceNodePosition:_}=N?(0,T.A)(N,this.$menu,{direction:z,distance:S||8,forceDirection:!1}):{};this.setState({menuPosition:_})}),(0,o.A)(this,"handleClickOutside",N=>{const{onClose:z}=this.props,S=!this.$menu.contains(N.target),_=N.target.closest(".SelectOption"),y=N.target.closest(".MenuItem");this.props.targetNode.contains(N.target)||_||y||S&&z()}),this.state={menuPosition:{}},this.el=document.createElement("div"),this.el.className="design-toolbar-menu"}componentDidMount(){document.body.appendChild(this.el),this.updateMenuPosition(),window.addEventListener("resize",this.updateMenuPosition)}componentWillUnmount(){document.body.removeChild(this.el),window.removeEventListener("resize",this.updateMenuPosition)}render(){const{renderMenu:N,menuClassName:z,isDefaultOpen:S,menuPosTop:_,menuPosLeft:y,menuPosRight:a,offsetX:$}=this.props,{menuPosition:ce}=this.state,de={...ce};return _&&Object.assign(de,{top:_}),y&&Object.assign(de,{left:y}),a&&Object.assign(de,{right:a,left:void 0}),$&&(de.left&&(de.left+=$),de.right&&(de.right-=$)),(0,C.createPortal)((0,u.jsxs)(f,{ref:this.setMenuRef,style:de,className:p()(z,S?"isDefaultOpen":""),children:[N,(0,u.jsx)(A.A,{target:document,onClick:(0,A.t)(this.handleClickOutside,{capture:!0})})]}),this.el)}}(0,o.A)(h,"propTypes",{direction:g().string,menuClassName:g().string,isDefaultOpen:g().bool,renderMenu:g().node,targetNode:g().object,menuPosTop:g().number,menuPosLeft:g().number,menuPosRight:g().number,offsetX:g().number,distance:g().number,onClose:g().func})},76364:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>se});var o=e(74059),m=e(30108),g=e.n(m),l=e(98236),C=e.n(l),T=e(51044),A=e(60185),k=e(66748),p=e.n(k),r=e(28149),x=e(19418);const f=9;function u(ve){let{$opener:D,$menuBase:R,menuX:V="left",menuY:O="bottom",menuBaseStyle:Ce={},inflexible:ae=!1,shouldSetMaxHeight:q=!1}=ve;if(!D||!R)return;const K=R.querySelector("*"),xe={styleFor$menuBase:{},styleFor$menu:{}},te=$t=>Object.assign(xe.styleFor$menuBase,$t),H=$t=>Object.assign(xe.styleFor$menu,$t),{offsetWidth:re,offsetHeight:be}=K,Le=Ce.width||D.offsetWidth,Ve=Ce.height||D.offsetHeight,Ne=D.getBoundingClientRect(),{top:We,right:ze,bottom:ft,left:mt}=Object.assign({top:Ne.top,right:Ne.right,bottom:Ne.bottom,left:Ne.left},Ce);te({top:We+"px",left:mt+"px",width:Le+"px",height:Ve+"px"});const{innerHeight:i}=window,gt=10,Je=i-10,Pt=O==="top"?1/3:2/3,bt=i*Pt,qt=We+Ve/2,pt=We+Ve;return(ae&&O==="bottom"||!ae&&bt>=qt)&&pt+be+f<i?(xe.isDownward=!0,q&&ft+be>Je&&H({maxHeight:Je-ft+"px"})):(xe.isDownward=!1,q&&We-be<gt&&H({maxHeight:We-gt+"px"})),Object.assign(R.style,xe.styleFor$menuBase),Object.assign(K.style,xe.styleFor$menu),xe}function b(ve){!ve||!(ve instanceof Element)||ve.addEventListener("wheel",D=>{const{scrollTop:R,scrollHeight:V}=ve,{height:O}=ve.getBoundingClientRect(),Ce=D.deltaY*-1,ae=Ce>0,q=()=>(D.stopPropagation(),D.preventDefault(),!1);if(!ae&&-Ce>V-O-R)return ve.scrollTop=V,q();if(ae&&Ce>R)return ve.scrollTop=0,q()})}function h(ve){let{$opener:D,$menuBase:R,menuBaseStyle:V={},$menuContainer:O}=ve;if(!D||!R)return;const Ce=R.querySelector("*"),q=((0,r.$)("li[role=option].is-active",Ce)||(0,r.$)("li[role=option]",Ce)||(0,r.$)("li[role=empty-msg]",Ce)).getBoundingClientRect(),K=Ce.getBoundingClientRect(),xe={styleFor$menuBase:{},styleFor$menu:{},styleFor$menuContainer:{},styleFor$fontTip:{}},te=i=>Object.assign(xe.styleFor$menuBase,i),H=i=>Object.assign(xe.styleFor$menuContainer,i),re=V.width||D.offsetWidth,be=V.height||D.offsetHeight,Le=D.getBoundingClientRect(),{top:Ve,bottom:Ne,left:We}=Object.assign({top:Le.top,right:Le.right,bottom:Le.bottom,left:Le.left},V);te({top:Ve+"px",left:We+"px",width:re+"px",height:be+"px"});const{innerHeight:ze}=window;let ft=0;const mt=q.top-K.top;if(ft=-Math.min(mt,Ve),Ve+ft+K.height>ze){const i=Ve+ft+K.height-ze;H({top:ft-i+"px"})}else H({top:ft+"px"});return Object.assign(R.style,xe.styleFor$menuBase),Object.assign(Ce.style,xe.styleFor$menu),Object.assign(O.style,xe.styleFor$menuContainer),xe}var E=e(35524),N=e(54909),z=e(21676);const S=z.Ay.label.withConfig({displayName:"styles__StyledDropdown",componentId:"sc-1wdr1xt-0"})(["&.is-disabled{opacity:0.5;& > button{cursor:not-allowed;}}"]),_=(ve,D)=>{var R,V;if(ve.forceDarkTheme)switch(D){case"workspace_dropdown_menu_shadow":return"0 2px 7px 0 rgba(0, 0, 0, 0.26), 0 12px 36px 0 rgba(0, 0, 0, 0.1)";default:return((R=N.f[D])==null?void 0:R.value_dark)||((V=E.qY[D])==null?void 0:V.value)}return ve.theme[D]},y=z.Ay.div.withConfig({displayName:"styles__StyledDropdownMenu",componentId:"sc-1wdr1xt-1"})(["&.DesignDropdownMenuBase{position:fixed;z-index:1100;pointer-events:none;}.DesignDropdownMenu{position:absolute;margin:0.25em 0;width:fit-content;min-width:7em;font-size:12px;pointer-events:none;opacity:0;transition:.2s ease-in-out;transition-property:transform,opacity;transform-origin:50% 0;transform:scale(0.9);box-shadow:",";border:1px solid ",";&.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;border-radius:8px;}&.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:calc(-0.375em + 1px);left:calc(50% - 0.5em);width:1em;height:0.375em;font-size:14px;line-height:0;fill:currentColor;fill-rule:evenodd;color:#fff;}&.dark .arrow{color:",";}&.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:calc(-0.375em + 1px);}.content{padding:8px;min-height:32px;background-color:",";border-radius:9px;}&.dark .content{background-color:",";color:",";button:hover{color:",";}}ul.MenuList{margin:0;padding:0;list-style:none;text-align:center;color:",";li{line-height:32px;border-radius:2px;cursor:pointer;&.is-active{color:#1e98ea;}&.is-disabled{cursor:not-allowed;opacity:0.5;}}}}"],ve=>ve.theme.shadow_m,ve=>ve.theme.color_bg_border_01,ve=>_(ve,"color_text_L1"),ve=>ve.theme.color_bg_white,ve=>_(ve,"color_text_L1"),ve=>_(ve,"color_bg_white"),ve=>_(ve,"color_bg_white"),ve=>_(ve,"color_text_L2"));var a=e(57464);const $="IBOT_DROPDOWN_MENU_ROOT",ce='<svg viewBox="0 0 8 3"><path d="M4.654.233L8 3H0L3.383.23c.37-.303.902-.302 1.27.003z" /></svg>',de=document.getElementById($)||Object.assign(document.createElement("div"),{id:$}),fe=document.body;fe.contains(de)||fe.appendChild(de);class se extends T.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"state",{prevProps:this.props,isOpen:this.props.isOpen,$opener:null,currentMenuListItemIdx:this.props.currentMenuListItemIdx}),(0,o.A)(this,"leaveTimeoutList",[]),(0,o.A)(this,"toggle",D=>{this.setState({isOpen:g()(D)?D:!this.state.isOpen})}),(0,o.A)(this,"open",()=>this.toggle(!0)),(0,o.A)(this,"close",()=>this.toggle(!1)),(0,o.A)(this,"onMouseEnter",()=>{const{shouldOpenOnHover:D}=this.props;D&&(clearTimeout(this.closeTimeout),Object.assign(this,{hoverTimeout:setTimeout(this.open,this.props.hoverDelay)}))}),(0,o.A)(this,"onMouseLeave",()=>{const{shouldOpenOnHover:D}=this.props;D&&clearTimeout(this.hoverTimeout)}),(0,o.A)(this,"onMouseMove",D=>{let{clientX:R,clientY:V}=D;const{shouldOpenOnHover:O,hoverDelay:Ce}=this.props,{$opener:ae}=this.state;if(!O)return;clearTimeout(this.hoverTimeout);const q=document.elementFromPoint(R,V),K=!ae.contains(q),xe=!q.closest(".DesignDropdownMenu");xe?K&&xe&&this.leaveTimeoutList.push(setTimeout(this.close,Math.max(Ce,300))):(this.leaveTimeoutList.forEach(clearTimeout),Object.assign(this,{leaveTimeoutList:[]}))}),(0,o.A)(this,"set$opener",D=>this.setState({$opener:D})),(0,o.A)(this,"onSelect",D=>{let{currentTarget:R}=D;const{menuList:V,onSelect:O,shouldCloseOnSelect:Ce}=this.props;if(typeof O!="function")return;const ae=R.dataset.idx,q=V[ae],K=typeof q=="string"?q:q&&q.value;O(ae,K),this.setState({currentMenuListItemIdx:ae}),Ce&&this.close()})}static getDerivedStateFromProps(D,R){let{prevProps:V}=R;return C()(D,V)?null:g()(D.isOpen)?{prevProps:D,isOpen:D.isOpen}:{prevProps:D}}componentDidUpdate(D,R){let{isOpen:V}=R;const{onOpen:O,onClose:Ce,onToggle:ae}=this.props,{isOpen:q}=this.state;V!==q&&(q?(O(),ae(!0)):(Ce(),ae(!1)))}render(){const{className:D,opener:R,openerType:V,shouldCloseOnClickOutside:O,onMouseEnter:Ce,onMouseLeave:ae,forceDarkTheme:q}=this.props,{isOpen:K,$opener:xe,currentMenuListItemIdx:te}=this.state,H=this.props.isDisabled||this.props.disabled,re=(0,r.Hn)(["WorkspaceDropdown",K&&"is-open",H&&"is-disabled",D]),be={onClick:this.toggle,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,disabled:H};return(0,a.jsxs)(S,{ref:this.set$opener,className:re,onMouseEnter:Ce,onMouseLeave:ae,children:[V!=="button"&&(0,T.isValidElement)(R)?(0,T.cloneElement)(R,be):(0,a.jsx)("button",{type:"button",...be,children:R}),K&&(0,a.jsx)(J,{...this.props,forceDarkTheme:q,isOpen:K,$opener:xe,onSelect:this.onSelect,onClose:this.close,shouldCloseOnClickOutside:O,currentMenuListItemIdx:te}),K&&(0,a.jsx)(x.A,{target:document,onMouseMove:this.onMouseMove})]})}}(0,o.A)(se,"positionMenu",u),(0,o.A)(se,"propTypes",{isOpen:p().bool,mode:p().oneOf(["light","dark"]),forceDarkTheme:p().bool,opener:p().node,openerType:p().oneOf(["button","custom"]),className:p().string,portalClassName:p().string,menuBaseClassName:p().string,menuClassName:p().string,menuBaseStyle:p().shape({top:p().number,right:p().number,bottom:p().number,width:p().number,height:p().number}),menu:p().node,menuList:p().arrayOf(p().oneOfType([p().node,p().shape({label:p().node,value:p().any,isDisabled:p().bool})])),currentMenuListItemIdx:p().oneOfType([p().number,p().string]),shouldPreventScrollingPropagation:p().bool,shouldOpenOnHover:p().bool,shouldCloseOnClickOutside:p().bool,hoverDelay:p().oneOfType([p().number,p().string]),arrowed:p().bool,inflexible:p().bool,menuX:p().oneOf(["left","center","right"]),menuY:p().oneOf(["top","bottom"]),menuBasedX:p().bool,isDisabled:p().bool,disabled:p().bool,onSelect:p().func,onMouseEnter:p().func,onMouseLeave:p().func,shouldCloseOnSelect:p().bool,onOpen:p().func.isRequired,onClose:p().func.isRequired,onToggle:p().func.isRequired}),(0,o.A)(se,"defaultProps",{arrowed:!1,openerType:"button",mode:"light",forceDarkTheme:!1,shouldPreventScrollingPropagation:!0,shouldCloseOnSelect:!0,shouldOpenOnHover:!1,shouldCloseOnClickOutside:!0,hoverDelay:200,menuX:"center",menuY:"bottom",inflexible:!1,menuBasedX:!1,onOpen:()=>null,onClose:()=>null,onToggle:()=>null,onMouseLeave:()=>null,onMouseEnter:()=>null});class J extends T.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"state",{isTransform:!1,isDownward:this.props.position==="bottom"}),(0,o.A)(this,"portal",(0,r.ep)(de,(0,r.Hn)(["DropdownMenuPortal",this.props.portalClassName]))),(0,o.A)(this,"menuBaseRef",(0,T.createRef)()),(0,o.A)(this,"menuContainerRef",(0,T.createRef)()),(0,o.A)(this,"onResizeWindow",()=>this.props.isOpen&&this.position()),(0,o.A)(this,"onClickOutside",D=>{let{target:R}=D;const{$opener:V,onClose:O,shouldCloseOnClickOutside:Ce}=this.props;if(!Ce||R.className==="icon dora clear-icon")return;if(R.closest(".dropmenu-exit")){O();return}if(R.closest(".dropmenu-no-exit"))return;const ae=!de.contains(R),q=R.closest("label"),K=q&&q.contains(V),xe=!!document.querySelector(".SelectMenu.is-open");ae&&!K&&!xe&&O()}),(0,o.A)(this,"position",()=>{const{$opener:D,menuX:R,menuY:V,menuBaseStyle:O,inflexible:Ce,isPosition2:ae}=this.props,{menuBaseRef:{current:q},menuContainerRef:{current:K}}=this;if(!q)return;let xe;if(ae){const{isDownward:te}=h({$menuBase:q,$opener:D,$menuContainer:K,menuX:R,menuY:V,menuBaseStyle:O,inflexible:Ce});xe=te}else{const{isDownward:te}=u({$menuBase:q,$opener:D,menuX:R,menuY:V,menuBaseStyle:O,inflexible:Ce});xe=te}this.setState({isDownward:xe,isTransform:!0})})}componentDidMount(){const{isOpen:D,shouldPreventScrollingPropagation:R}=this.props,{menuBaseRef:{current:V}}=this;D&&setTimeout(this.position),R&&b(V.querySelector(".content")),window.addEventListener("resize",this.onResizeWindow)}componentWillUnmount(){this.portal&&this.portal.remove(),window.removeEventListener("resize",this.onResizeWindow)}render(){const{portal:D,menu:R}=this;return(0,A.createPortal)(R,D)}get menu(){const{isOpen:D,mode:R,menuBaseClassName:V,menuClassName:O,menu:Ce,menuList:ae,arrowed:q,menuX:K,menuBasedX:xe,currentMenuListItemIdx:te,onSelect:H,forceDarkTheme:re,isPosition2:be}=this.props,{isDownward:Le,isTransform:Ve}=this.state,Ne=(0,r.Hn)(["DesignDropdownMenu",R,Ve&&"is-open",be?"":Le?"is-downward":"is-upward","x-"+K,q&&"arrowed "+(xe?"x-menu-based":"x-arrow-based"),O]);return(0,a.jsx)(y,{forceDarkTheme:re,ref:this.menuBaseRef,className:(0,r.Hn)(["DesignDropdownMenuBase",V]),children:(0,a.jsxs)("div",{className:Ne,ref:this.menuContainerRef,children:[q&&(0,a.jsx)("span",{className:"arrow",children:(0,a.jsx)("svg",{viewBox:"0 0 8 3",children:(0,a.jsx)("path",{d:"M4.654.233L8 3H0L3.383.23c.37-.303.902-.302 1.27.003z"})})}),(0,a.jsx)("div",{className:"content",children:ae?(0,a.jsx)("ul",{className:"MenuList",children:ae.map((We,ze)=>(0,a.jsx)("li",{role:"option","data-idx":ze,className:(0,r.Hn)([We.isDisabled&&"is-disabled",ze===Number(te)&&"is-active"]),onClick:We.isDisabled?void 0:H,children:We.label||We},ze))}):Ce}),D&&(0,a.jsx)(x.A,{target:document,onClick:(0,x.t)(this.onClickOutside,{capture:!0})}),D&&(0,a.jsx)(x.A,{target:document,onScroll:(0,x.t)(this.position,{capture:!0})})]})})}}(0,o.A)(J,"propTypes",{...se.propTypes,isOpen:p().bool,$opener:p().instanceOf(Element),onSelect:p().func,onClose:p().func})},1790:(Et,ke,e)=>{"use strict";e.d(ke,{D:()=>l});var o=e(51044),m=e(57464);const g={light:"plain",grey:"core",dark:"core"},l=o.createContext("light"),C=T=>{class A extends PureComponent{render(){const{forwardedRef:p,...r}=this.props;return _jsx(l.Consumer,{children:x=>React.createElement(T,{ref:p,theme:g[x],...r})})}}return _defineProperty(A,"propTypes",{forwardedRef:PropTypes.object}),React.forwardRef((k,p)=>_jsx(A,{...k,forwardedRef:p}))}},98148:(Et,ke,e)=>{"use strict";e.d(ke,{o:()=>kt});var o=e(51044),m=e(26114),g=e(21676),l=e(57716),C=e(47143),T=e(20029),A=e(91560),k=e(57464);const p=o.createContext("light"),x=Ze=>{var it,st,dt,Ot;let{Component:Ct,props:wo}=Ze;const ln=wo==null?void 0:wo.params.isDesign,Io=wo==null?void 0:wo.params.isPreview,Lo=wo.store.getState(),Ao=Io?(0,A.bF)(Lo):{},xt=ln?(0,T.uu)(Lo):Ao==null?void 0:Ao.isHTMLZip,Ut=ln?(0,T.pH)(Lo):Ao==null?void 0:Ao.isSquare,Wo=ln?(0,T.rg)(Lo):Ao==null?void 0:Ao.isEmbedV2,qo=ln?(0,C.HW)(Lo):(0,A.HW)(Lo),sn=ln?!1:(0,A.hM)(Lo),Kn=ln?!1:(0,A.KR)(Lo);if(xt||Ut||Wo||!qo||sn||Kn)return;let _s=document.querySelector("#GUIDES");_s||(_s=document.createElement("div"),_s.id="GUIDES",document.body.appendChild(_s));const Ls=document.createElement("div");_s.appendChild(Ls);const gs=(0,m.createRoot)(Ls),ns=()=>{gs.unmount(),Ls.remove()},Wn=ln?Lo==null||(it=Lo.ui)==null||(it=it.fixedLayout)==null?void 0:it.preference:Lo==null||(st=Lo.container)==null||(st=st.common)==null?void 0:st.preference,Do=(dt=Wn==null?void 0:Wn.theme)!=null?dt:"light",Go=(Ot=MB)==null?void 0:Ot.user;gs.render((0,k.jsx)(g.NP,{theme:l.A[Do],children:(0,k.jsx)(p.Provider,{value:Do,children:(0,k.jsx)(Ct,{onClose:ns,currentUser:Go,...wo})})}))};var f=e(78647),u=e(74059),b=e(86634),h=e.n(b),E=e(15336),N=e(7290),z=e(19722),S=e(9376),_=e(15668),y=e(54909);const a=g.Ay.div.withConfig({displayName:"styles__StyledGuideRectBox",componentId:"sc-1ucr0lj-0"})(["position:absolute;z-index:1049;pointer-events:none;&.grabbing{pointer-events:initial;cursor:grab;.grab-box{display:flex;}}.context{position:absolute;width:236px;padding:20px 16px 20px 20px;pointer-events:auto;background:#fff;border-radius:4px;box-shadow:0 0 20px 0 rgba(39,54,78,0.10);.content-title{position:relative;font-size:14px;font-weight:500;color:#1F292E;margin-bottom:10px;z-index:2;&.main-1{&::after{content:'';position:absolute;left:0;top:13px;width:32px;height:4px;background:#C8CDD0;z-index:-1;}}&.main-2{&::after{content:'';position:absolute;left:0;top:13px;width:28px;height:4px;background:#C8CDD0;z-index:-1;}}}.content-text{font-size:12px;color:#415058;margin-bottom:26px;}.close{margin-top:20px;margin-left:auto;width:80px;height:28px;display:flex;align-items:center;justify-content:center;background:#5B6B73;border-radius:2px;color:#FFFFFF;cursor:pointer;transition:all 0.2s ease-out;&:hover{background:#1F292E;color:#fff;}&:active{background:#1F292E;color:rgba(255,255,255,0.6);}}.icon-triangle{position:absolute;width:11px;height:6px;color:#fff;&.left{transform:rotate(-90deg);}&.right{transform:rotate(90deg);}}&:not(.grabbing){cursor:default;}.grab-box{display:none;position:absolute;top:0px;left:118px;cursor:grab;}&:hover{.grab-box{display:flex;}}}&#MD_",",&#MD_","{z-index:1102;.context{width:248px;border-radius:8px;border:2px solid ",";}.arrow-container{position:absolute;display:flex;align-items:center;justify-content:center;flex-direction:column;z-index:2;&.left{transform:rotate(270deg);}&.right{transform:rotate(90deg);}.circle{width:11px;height:11px;border-radius:50%;background-color:",";}.line{width:2px;background-color:",";}}.container-box{display:flex;align-items:center;justify-content:center;img{width:208px;border-radius:4px;}.title{display:block;color:",";font-weight:500;font-size:14px;margin-top:9px;}.desc{display:block;font-size:12px;color:",";margin-top:10px;}.btn-wrapper{display:flex;margin-top:22px;margin-left:auto;flex-direction:row;align-items:center;justify-content:flex-end;.btn{width:64px;}}}}&#MD_","{.container-box{.btn-wrapper{gap:6px;.btn{width:76px;font-weight:400;&.tutorial{border:1px solid ",";background:",";color:",";&:hover{background:",";}}}}}}&#MD_","{.container-box .box img{border-radius:4px;}.arrow-container .line{height:29px;}}&#MD_",",&#MD_",",&#MD_","{top:auto !important;bottom:40px !important;left:50% !important;transform:translateX(-50%);.context{background:rgba(21,21,21,0.8);border:1px solid #363738;position:relative;box-shadow:0 3px 6px rgba(0,0,0,0.02),0 6px 16px rgba(0,0,0,0.02),0 9px 28px rgba(0,0,0,0.09);border-radius:6px;width:auto;height:auto;padding:0;}}"],f.c.GUIDE_NEW_OVERLAY_ONCE,f.c.GUIDE_POSITION_STICKY_FEATURES,Ze=>Ze.theme.color_proto,Ze=>Ze.theme.color_proto,Ze=>Ze.theme.color_proto,Ze=>Ze.theme.color_proto,y.f.color_text_L2.value_light,f.c.GUIDE_NEW_OVERLAY_ONCE,y.f.color_bg_border_02.value_light,y.f.color_bg_white.value_light,y.f.color_text_L1.value_light,y.f.color_btn_secondary_hover.value_light,f.c.GUIDE_POSITION_STICKY_FEATURES,f.c.GUIDE_VECTOR_TASK_QUICK_CREATE,f.c.GUIDE_VECTOR_TASK_ENDING_EDITING,f.c.GUIDE_VECTOR_TASK_EDITING_EXIST_VECTOR),$=g.Ay.div.withConfig({displayName:"styles__StyledGuideRectBoxTips",componentId:"sc-1ucr0lj-1"})(["display:flex;align-items:center;width:100%;height:100%;padding:6px 10px;.vector{width:24px;margin-right:10px;path{&:not([fill]){fill:none;}}}span{font-size:12px;line-height:18px;color:rgba(255,255,255,0.9);white-space:nowrap;overflow:hidden;}.closeIcon{margin-left:10px;svg{path{fill:#b8bcbf;}}&:hover,&:active{background:#4f5052;}}"]),ce=(Ze,it)=>({selector:it,renderBox:st=>{let{close:dt}=st;return(0,k.jsxs)($,{children:[(0,k.jsx)(N.C,{name:"art_board/guide/vector",className:"vector"}),(0,k.jsx)("span",{dangerouslySetInnerHTML:{__html:Ze}}),(0,k.jsx)(z.A,{className:"closeIcon",name:"art_board/guide/vector/close",onClick:dt})]})}}),de=Ze=>{let{selector:it,title:st,desc:dt,getPosition:Ot,arrow:Ct,imgUrl:wo,subSelector:ln,isShowGrab:Io=!1,howToShow:Lo,hasTutorial:Ao=!1,tutorialUrl:xt=""}=Ze;return{selector:it,getPosition:Ot,subSelector:ln,isShowGrab:Io,hasTutorial:Ao,tutorialUrl:xt,renderBox:Ut=>{let{close:Wo}=Ut;return(0,k.jsxs)(k.Fragment,{children:[Ct&&(0,k.jsxs)("div",{className:"arrow-container "+Ct.position,style:Ct.offset,children:[(0,k.jsx)("div",{className:"circle"}),(0,k.jsx)("div",{className:"line"})]}),(0,k.jsx)("div",{className:"container-box",children:(0,k.jsxs)("div",{className:"box",children:[(0,k.jsx)("img",{src:wo,alt:""}),(0,k.jsx)("span",{className:"title",children:st}),(0,k.jsx)("span",{className:"desc",children:dt}),(0,k.jsxs)("div",{className:"btn-wrapper",children:[Ao&&(0,k.jsx)(_.Oc,{forceTheme:"light",type:"primary",size:"tiny",corner:"soft",className:"btn tutorial",onClick:()=>(0,E.Ix)(xt),children:I18N.CommonGuides.visit_tutorial}),(0,k.jsx)(_.Oc,{forceTheme:"light",type:"primary",size:"tiny",corner:"soft",className:"btn",onClick:Wo,children:I18N.CommonGuides.v8guide3})]})]})})]})},howToShow:Ut=>{Lo&&Lo(Ut)}}},fe=Ze=>({[f.c.GUIDE_VECTOR_TASK_QUICK_CREATE]:ce(Ze.CommonGuides.guide_vector_task_quick_create,"mb-viewport"),[f.c.GUIDE_VECTOR_TASK_ENDING_EDITING]:ce(Ze.CommonGuides.guide_vector_task_ending_editing,"mb-viewport"),[f.c.GUIDE_VECTOR_TASK_EDITING_EXIST_VECTOR]:ce(Ze.CommonGuides.guide_vector_task_editing_exist_vector.replace(/%shortcut%/,(0,S.cX)()?"\u2318":"ctrl"),"mb-viewport"),[f.c.GUIDE_POSITION_STICKY_FEATURES]:de({selector:f.c.GUIDE_POSITION_STICKY_FEATURES,subSelector:'[data-value="sticky"]',imgUrl:"/mb-proto2/images/guide/newGuides/guide_"+f.c.GUIDE_POSITION_STICKY_FEATURES+".gif",title:"\u65B0\u589E\u5438\u9876\u56FA\u5B9A",desc:"\u652F\u6301\u8BA9\u7EC4\u4EF6\u6EDA\u52A8\u5230\u7279\u5B9A\u4F4D\u7F6E\u65F6\u56FA\u5B9A",getPosition:()=>({top:-152,right:33}),arrow:{position:"right",offset:{top:143,right:-26}}}),[f.c.GUIDE_NEW_OVERLAY_ONCE]:de({selector:f.c.GUIDE_NEW_OVERLAY_ONCE,imgUrl:"/mb-proto2/images/guide/guide_new_overlay_once.png",title:Ze.CommonGuides.guide_new_overlay_once.title,desc:Ze.CommonGuides.guide_new_overlay_once.desc,hasTutorial:!0,tutorialUrl:"/hc/articles/441",getPosition:()=>({top:30,left:30})})});var se=e(85984);class J extends o.PureComponent{constructor(it){super(it),(0,u.A)(this,"minLeft",0),(0,u.A)(this,"minTop",0),(0,u.A)(this,"maxLeft",window.innerWidth),(0,u.A)(this,"maxTop",window.innerHeight),(0,u.A)(this,"setRef",dt=>this.$ref=dt),(0,u.A)(this,"handleResize",()=>{const dt=fe(I18N)[this.props.guideType];this.setState({style:(0,se.gd)("."+dt.selector+" "+(dt.subSelector?dt.subSelector:""))})}),(0,u.A)(this,"handleCloseGuide",()=>{const{guideType:dt}=this.props;setTimeout(this.props.onClose,250),MB.commonGuideHelper.markGuideAsRead(dt)}),(0,u.A)(this,"handleCustom",()=>{const{guideType:dt}=this.props;this.handleCustomAction(dt)}),(0,u.A)(this,"handleCustomAction",dt=>{({[f.c.GUIDE_TOOLBAR_EXPORT_TO_ABOARD]:()=>{MB.commonGuideHelper.closeGuide(f.c.GUIDE_TOOLBAR_EXPORT_TO_ABOARD),MB.commonGuideHelper.markGuideAsRead(f.c.GUIDE_TOOLBAR_EXPORT_TO_ABOARD)}})[dt]()}),(0,u.A)(this,"getLimitValue",()=>{if(!this.$ref)return;const{width:dt,height:Ot}=this.$ref.getBoundingClientRect();this.minLeft=0,this.minTop=66,this.maxLeft=window.innerWidth-dt,this.maxTop=window.innerHeight-Ot}),(0,u.A)(this,"validatePosition",(dt,Ot)=>(dt>this.maxLeft&&(dt=this.maxLeft),dt<this.minLeft&&(dt=this.minLeft),Ot>this.maxTop&&(Ot=this.maxTop),Ot<this.minTop&&(Ot=this.minTop),{left:dt,top:Ot})),(0,u.A)(this,"handleMouseDown",(dt,Ot)=>{const{style:Ct}=this.state;if(!Ct)return;this.setState({isGrabbing:!0});const{x:wo,y:ln}=Ct;this.getLimitValue();const{clientX:Io,clientY:Lo}=dt,Ao=(Ot==null?void 0:Ot.left)||0,xt=(Ot==null?void 0:Ot.top)||0,Ut=qo=>{const sn=qo.clientX-Io+Ao,Kn=qo.clientY-Lo+xt,{left:ds,top:_s}=this.validatePosition(wo+sn,ln+Kn),Ls=ds-Ao,gs=_s-xt;this.setState({style:{...Ct,x:Ls,y:gs}})},Wo=()=>{this.setState({isGrabbing:!1}),document.removeEventListener("mousemove",Ut),document.removeEventListener("mouseup",Ut)};document.addEventListener("mousemove",Ut),document.addEventListener("mouseup",Wo)});const st=fe(I18N)[this.props.guideType];this.state={style:(0,se.gd)("."+st.selector+" "+(st.subSelector?st.subSelector:"")),tabIndex:0,isGrabbing:!1}}componentDidMount(){window.addEventListener("resize",this.handleResize)}componentWillUnmount(){window.removeEventListener("resize",this.handleResize)}render(){const{guideType:it}=this.props,{style:st,isGrabbing:dt}=this.state;if(!st)return null;const{y:Ot,x:Ct,width:wo,height:ln}=st,Io=fe(I18N)[it],{getPosition:Lo,isShowGrab:Ao}=Io,xt=typeof Lo=="function"?Lo({width:wo,height:ln}):void 0;return(0,k.jsx)(a,{id:"MD_"+it,style:{top:Ot,left:Ct},className:h()(dt&&"grabbing"),children:(0,k.jsxs)("div",{className:h()("context",dt&&"grabbing"),style:{...xt},ref:this.setRef,children:[Ao&&(0,k.jsx)("div",{className:"grab-box",onMouseDown:Ut=>this.handleMouseDown(Ut,xt),children:(0,k.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"10",fill:"none",children:(0,k.jsx)("path",{stroke:"#fff",strokeLinecap:"round",d:"M1 3.5h10M1 6.5h10"})})}),Io.renderBox({close:this.handleCloseGuide,custom:this.handleCustom,tabIndex:this.state.tabIndex})]})})}}var ve=e(82821);const D=g.Ay.div.withConfig({displayName:"styles__StyledNewGuideText",componentId:"sc-13rt4x7-0"})(["position:absolute;&#MD_GUIDE_SELECT_STICKY{.context{margin-left:100%;}}.context{position:absolute;width:290px;min-height:136px;padding:17px 38px 13px 14px;pointer-events:auto;display:flex;background:linear-gradient(110.63deg,#1684FC -0.49%,#6C72FF 87.66%);border-radius:4px;color:#ffffff;z-index:1049;.context-background.svg-icon{position:absolute;width:120px;height:127px;bottom:0;right:0;z-index:1;> *{fill:none;}}.arrow-container{position:absolute;display:flex;align-items:center;justify-content:center;flex-direction:column;z-index:2;&.left{transform:rotate(270deg);}&.right{transform:rotate(90deg);}.circle{width:13px;height:13px;border-radius:50%;background-color:",";}.line{width:2px;height:13px;background-color:",";}}.content-container{flex:1;display:flex;flex-direction:column;justify-content:center;z-index:2;row-gap:6px;.content{flex:1;.title{font-size:14px;line-height:20px;font-weight:500;height:28px;display:flex;align-items:center;margin-bottom:6px;.title-icon{width:28px;height:100%;margin-right:6px;background:rgba(255,255,255,0.2);border-radius:50%;display:flex;align-items:center;justify-content:center;.svg-icon{&.GUIDE_MORE_PAGE,&.GUIDE_TO_PREVIEW_IN_SHARE{> *{fill:none;}}}}}}.bottom{display:flex;justify-content:end;.btn{width:69px;height:28px;background-color:#ffffff;color:#1684FC;display:flex;align-items:center;justify-content:center;border-radius:4px;cursor:pointer;&:hover{background-color:#F1F8FF;}&.more{background-color:inherit;border:1px solid #FFFFFF;color:#fff;margin-right:8px;&:hover{background:rgba(255,255,255,0.2);}}&.secondry{background-color:transparent;color:#ffffff;border:1px solid #ffffff;margin-right:8px;&:hover{background:rgba(255,255,255,0.2);}}}}}}"],Ze=>Ze.arrowColor,Ze=>Ze.arrowColor),R=Ze=>{const{guideType:it,onClose:st,store:dt,params:Ot}=Ze,Ct=(0,o.useMemo)(()=>{var Mo;return!Ot.isDesign||!dt||typeof(dt==null?void 0:dt.getState)!="function"?!1:((Mo=dt.getState().ui)==null?void 0:Mo.fixedLayout.preference.layoutV8)==="old_right"},[dt,Ot]),wo=(0,o.useMemo)(()=>{var Mo;return!Ot.isDesign||!dt||typeof(dt==null?void 0:dt.getState)!="function"?0:((Mo=dt.getState().ui)==null?void 0:Mo.leftLayout.leftPanel.width)+(Ct?0:48)},[dt,Ot,Ct]),[ln,Io]=(0,o.useState)(!1),Lo=(0,o.useCallback)(()=>(0,se.gd)("."+(0,ve.K)(I18N,Ct)[it].selector),[it,Ct]);(0,o.useEffect)(()=>{ln&&(MB.commonGuideHelper.closeGuide(it),MB.commonGuideHelper.markGuideAsRead(it))},[ln,it]);const Ao=Lo();if(!Ao)return null;const{y:xt,x:Ut,width:Wo,height:qo}=Ao,sn=(0,ve.K)(I18N,Ct)[it],{primaryBtnText:Kn,secondaryBtnText:ds,onClickPrimaryBtn:_s,onClickSecondryBtn:Ls}=sn,gs=sn==null?void 0:sn.guide;if(sn!=null&&sn.getPositionOffset){const Mo=sn.getPositionOffset(Ut,xt,Wo,qo,wo),Cn=(gs==null?void 0:gs.position)||{};for(const Tn in Cn)Cn[Tn]=Cn[Tn]+Mo[Tn]}const ns=sn==null?void 0:sn.arrow,Wn=sn==null?void 0:sn.icon,Do=async()=>{await MB.commonGuideHelper.markGuideAsRead(it),sn.callback&&sn.callback(),st(),Io(!0)},Go=async()=>{await Do(),_s&&_s()},an=async()=>{await Do(),Ls&&Ls()};return(0,k.jsx)(D,{id:"MD_"+it,style:{top:xt,left:Ut,width:Wo,height:qo},arrowColor:ns==null?void 0:ns.color,children:(0,k.jsxs)("div",{className:"context",style:{...gs==null?void 0:gs.position},children:[(0,k.jsx)(N.C,{name:"art_board/guide/text/background",className:"context-background"}),ns&&(0,k.jsxs)("div",{className:h()(ns==null?void 0:ns.direction,"arrow-container"),style:{...ns==null?void 0:ns.position},children:[(0,k.jsx)("div",{className:"circle"}),(0,k.jsx)("div",{className:"line"})]}),(0,k.jsxs)("div",{className:"content-container",children:[(0,k.jsxs)("div",{className:"content",children:[(0,k.jsxs)("div",{className:"title",children:[(0,k.jsx)("div",{className:"title-icon",children:(0,k.jsx)(N.C,{className:it,name:Wn==null?void 0:Wn.name,style:{width:Wn.width,height:Wn.height}})}),gs.title]}),(0,k.jsx)("div",{className:"text",dangerouslySetInnerHTML:{__html:gs==null?void 0:gs.content}})]}),(0,k.jsxs)("div",{className:"bottom",children:[(sn==null?void 0:sn.moreLink)&&(0,k.jsx)("a",{className:"btn more",href:sn==null?void 0:sn.moreLink,target:"_blank",rel:"noopener noreferrer",children:I18N.CommonGuides.version_guide_learn_more}),Ls&&(0,k.jsx)("div",{className:"btn secondry",onClick:an,children:ds||I18N.CommonGuides.v8guide3}),(0,k.jsx)("div",{className:"btn primary",onClick:Go,children:Kn||I18N.CommonGuides.v8guide3})]})]})]})})};var V=e(90424),O=e(36820),Ce=e(80208),ae=e(78570);const q=g.Ay.div.withConfig({displayName:"styles__StyledGuideRectBox",componentId:"sc-c63e9t-0"})(["position:absolute;.frame-border{position:absolute;border-radius:6px;border:1px solid #1684FC;outline:2px solid rgba(22,132,252,0.25);z-index:1;pointer-events:none;}.context{position:absolute;width:248px;height:320px;padding:20px 20px 24px;pointer-events:auto;background-color:#fff;border-radius:8px;display:flex;border:2px solid #1684FC;z-index:1049;.arrow-container{position:absolute;display:flex;align-items:center;justify-content:center;flex-direction:column;&.left{transform:rotate(270deg);}&.right{transform:rotate(90deg);}.circle{width:11px;height:11px;border-radius:50%;background-color:#1684FC;}.line{width:2px;height:13px;background-color:#1684FC;}}.content-container{display:flex;flex-direction:column;justify-content:center;.top-content{position:relative;width:208px;height:151px;border-radius:4px;overflow:hidden;img{width:100%;height:100%;}.close-btn{position:absolute;right:4px;top:4px;width:20px;height:20px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#ffffff;border-radius:4px;&:hover{background:rgba(0,0,0,0.2);}svg{width:20px;}}}.bottom-content{font-size:12px;color:#666;flex:1;display:flex;flex-direction:column;.content{flex:1;.title{color:#1684FC;font-size:14px;line-height:20px;font-weight:500;margin:9px 0 10px;}}.bottom{display:flex;justify-content:flex-end;align-items:center;.steps{color:#999999;}.steps-btn{display:flex;.btn{width:76px;height:24px;border-radius:4px;font-size:12px;line-height:14px;display:flex;align-items:center;justify-content:center;cursor:pointer;&.next{background-color:#1684FC;color:#ffffff;margin-left:6px;&:hover{background-color:#1169C9;}}&.prev{border:1px solid #DBDBDB;color:#333333;&:hover{background-color:#F2F2F2;}}}}}}}}"]),K=Ze=>{const{guideType:it,params:st,onClose:dt}=Ze,{store:{getState:Ot}}=Ze,Ct=st.isDesign,wo=Ot(),Io=(Ct&&(0,ae.bP)(wo))==="old_right",[Lo,Ao]=(0,o.useState)(!1),xt=(0,V.K)(I18N,Io)[it],Ut="."+xt.selector,Wo=!document.querySelector(Ut),qo=(0,o.useCallback)(()=>Wo?(0,se.gd)("."+f.c.GUIDE_TOOLBAR_COMMON):(0,se.gd)(Ut),[Wo,Ut]),sn=V.E;(0,o.useEffect)(()=>{Lo&&(MB.commonGuideHelper.closeGuide(it),MB.commonGuideHelper.markGuideAsRead(it))},[Lo,it]);const Kn=qo();if(!Kn)return null;const{y:ds,x:_s,width:Ls,height:gs}=Kn,ns=xt,Wn=ns==null?void 0:ns.guide,Do=ns==null?void 0:ns.imgUrl,Go=Wo||ns==null?void 0:ns.arrow,an=Wo||ns==null?void 0:ns.frame,Mo=sn.indexOf(it)+1,Cn=Wo?(0,V.K)(I18N)[f.c.GUIDE_TOOLBAR_COMMON].position:Wn==null?void 0:Wn.position,Tn=()=>{(0,O.kH)("step_guide_V8",{guide_number:Mo,guide_type:"\u8001\u7528\u6237"}),!ENV.IS_WONDER_SHARE&&(0,O.kH)("novice_task_V8",{operation_type:"\u5F00\u59CB"})},cn=()=>{MB.commonGuideHelper.batchMarkGuideAsRead(sn),dt(),Ao(!0),Tn(),Ce.Y.closeNewGuideTrack({step_num:Mo})},bs=async()=>{if(dt(),Ce.Y.clickNewGuideTrack({step_num:Mo}),MB.commonGuideHelper.markGuideAsRead(it),Mo===sn.length){Tn();return}const Vn=sn[Mo];MB.commonGuideHelper.tryToShowGuide(Vn)};return MB.commonGuideHelper.batchMarkGuideAsRead(sn),(0,k.jsxs)(q,{id:"MD_"+it,style:{top:ds,left:_s,width:Ls,height:gs},children:[an&&(0,k.jsx)("div",{className:"frame-border",style:{...an.position,width:an.width,height:an.height}}),(0,k.jsxs)("div",{className:"context",style:{...Cn},children:[Go&&(0,k.jsxs)("div",{className:h()(Go==null?void 0:Go.direction,"arrow-container"),style:{...Go==null?void 0:Go.position},children:[(0,k.jsx)("div",{className:"circle"}),(0,k.jsx)("div",{className:"line"})]}),(0,k.jsxs)("div",{className:"content-container",children:[(0,k.jsxs)("div",{className:"top-content",children:[(0,k.jsx)("img",{src:Do,alt:""}),(0,k.jsx)("div",{className:"close-btn",onClick:cn,children:(0,k.jsx)(N.C,{name:"common/close_weight"})})]}),(0,k.jsxs)("div",{className:"bottom-content",children:[(0,k.jsxs)("div",{className:"content",children:[(0,k.jsx)("div",{className:"title",children:Wn.title}),(0,k.jsx)("div",{className:"text",children:Wn.content})]}),(0,k.jsx)("div",{className:"bottom",children:(0,k.jsx)("div",{className:"steps-btn",children:(0,k.jsx)("div",{onClick:bs,className:"btn next",children:Mo===sn.length?I18N.CommonGuides.tryNow:I18N.CommonGuides.next})})})]})]})]})]})},xe=(0,o.memo)(K);var te=e(88711),H=e(42627),re=e(98195),be=e(64983),Le=e(65474),Ve=e(30797),Ne=e(11123);const We=Ze=>{const{guideType:it,guideConfig:st,currentStep:dt=1,totalStep:Ot,resizeFlag:Ct=0,sceneTag:wo,handleCloseGuide:ln,dispatch:Io,isOpenCreatePage:Lo}=Ze,[Ao,xt]=(0,o.useState)({x:0,y:0}),[Ut,Wo]=(0,o.useState)({x:0,y:0}),[qo,sn]=(0,o.useState)(dt),[Kn,ds]=(0,o.useState)(!1),[_s,Ls]=(0,o.useState)(!0),{guide:gs,imgUrl:ns,selector:Wn}=st||{},Do=gs==null?void 0:gs.offset,Go=(0,o.useMemo)(()=>{var bs,Vn;let ti=(0,se.gd)("."+Wn);if(it===f.c.GUIDE_NOVICE_2309_TIP_1&&(ti={x:0,y:0}),it===f.c.GUIDE_NOVICE_2309_STEP_3){var oi,Gt;const Ti=MB.__store__.getState(),di=(0,Ve.Z9)(Ti);if((0,H.VC)(wo)==="DS"||!di[0])ti={x:0,y:0};else{var Rs,Xs;const{x:ei=0,y:Si=0,w:Gs=0,h:Vs=0}=sdkStore.getLocalBound((Rs=di[0])==null?void 0:Rs.key)||{},ps=ei-Gs/2,kn=Si-Vs/2,zn=(Xs=di[0])==null?void 0:Xs.sup,{hotAttr:hs}=sdkStore.getHotItem(zn),{x:Ss,y:fi,w:ri,h:Li}=hs||{},ji=Ss-ri/2,_t=fi-Li/2,Aa=(0,C.X_)(Ti)/100,{startX:Ki,startY:bi}=(0,Ne.$U)(Ti);ti={x:(Ki-ji-ps)*Aa,y:(bi-_t-kn)*Aa}}return{top:-((oi=ti)==null?void 0:oi.y)+Do.y,left:-((Gt=ti)==null?void 0:Gt.x)+(Do==null?void 0:Do.x)}}return ti?{top:((bs=ti)==null?void 0:bs.y)+Do.y,left:((Vn=ti)==null?void 0:Vn.x)+(Do==null?void 0:Do.x)}:null},[Wn,it,Do,wo]),an=(0,o.useMemo)(()=>qo!==dt?Go:{...Go||{},transform:"translate("+(Ut.x+Ao.x)+"px, "+(Ut.y+Ao.y)+"px)"},[Go,Ut,Ao,dt,qo]),Mo=(0,o.useCallback)(bs=>{const{pageX:Vn,pageY:ti}=bs.nativeEvent;ds(!0);const oi=(Go==null?void 0:Go.top)||0,Gt=(Go==null?void 0:Go.left)||0,Rs=oi+Ut.y,Xs=Gt+Ut.x,Ti=ei=>{const Si=ei.pageX-Vn,Gs=ei.pageY-ti,Vs=Math.min(window.innerHeight-Rs-Le.mO-10,Math.max(-Rs+10,Gs));return{offsetX:Math.min(window.innerWidth-Xs-Le.NW-10,Math.max(-Xs+10,Si)),offsetY:Vs}},di=ei=>{const{offsetX:Si,offsetY:Gs}=Ti(ei);xt({x:Si,y:Gs})},vs=ei=>{const{offsetX:Si,offsetY:Gs}=Ti(ei);Wo({x:Ut.x+Si,y:Ut.y+Gs}),xt({x:0,y:0}),ds(!1),document.removeEventListener("mousemove",di),document.removeEventListener("mouseup",vs)};document.addEventListener("mousemove",di),document.addEventListener("mouseup",vs)},[Go,Ut]),Cn=(0,o.useMemo)(()=>(0,k.jsxs)(k.Fragment,{children:[dt===1&&(0,k.jsx)(Le.yP,{}),dt===3&&(0,k.jsx)(Le.id,{}),dt===4&&(0,k.jsx)(Le.ss,{})]}),[dt]),Tn=(0,o.useMemo)(()=>(0,k.jsxs)(k.Fragment,{children:[dt===1&&(0,k.jsx)(Le.$D,{}),(dt===2||dt===3)&&(0,k.jsx)(Le.no,{currentStep:dt}),dt===4&&(0,k.jsx)(Le.id,{}),dt===5&&(0,k.jsx)(Le.ss,{})]}),[dt]),cn=(0,o.useCallback)(()=>{if(!_s)return null;const bs=(0,H.VC)(wo);if(Lo)return(0,k.jsx)(Le.$D,{});switch(bs){case"MP":case"PC":return Cn;case"DS":return Tn;default:return null}},[Cn,Tn,_s,Lo,wo]);return(0,o.useEffect)(()=>{xt({x:0,y:0}),Wo({x:0,y:0}),sn(dt)},[dt]),!st||!dt||!Go?null:(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(Le.GT,{id:"MD_"+it,className:h()(Kn&&"grabbing"),children:(0,k.jsxs)("div",{className:h()("context",Kn&&"grabbing"),style:{...an},children:[(0,k.jsx)("div",{className:"grab-box",onMouseDown:Mo,children:(0,k.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"10",fill:"none",children:(0,k.jsx)("path",{stroke:"#fff",strokeLinecap:"round",d:"M1 3.5h10M1 6.5h10"})})}),(0,k.jsxs)("div",{className:"content",children:[(0,k.jsx)("div",{className:"top",children:(0,k.jsx)("img",{src:ns,alt:"",draggable:"false"})}),(0,k.jsxs)("div",{className:"bottom",children:[(0,k.jsx)("div",{className:"desc-guide",children:(0,k.jsx)(ze,{guideType:it,content:gs==null?void 0:gs.content})}),(0,k.jsxs)("div",{className:"steps-guide",children:[(0,k.jsx)("div",{className:"step-info",children:Ot&&dt+"/"+Ot}),(0,k.jsx)("div",{className:"action-btn",children:!Ot&&(0,k.jsx)("button",{onClick:ln,className:"btn know",children:I18N.CommonGuides.v8guide3})})]})]})]})]})}),cn()]})};function ze(Ze){const{guideType:it,content:st}=Ze;if(it===f.c.GUIDE_NOVICE_2309_STEP_3&&st!=null&&st.includes("\u3010\u26A1\uFE0F\u3011")){const dt=st==null?void 0:st.split("\u3010\u26A1\uFE0F\u3011");return(0,k.jsxs)("div",{className:"text",children:[dt[0],(0,k.jsx)("div",{className:"handler",children:(0,k.jsx)(N.C,{name:"new_replace/thunder"})}),dt[1]]})}return it===f.c.GUIDE_NOVICE_2408_CREATE_PAGE?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("div",{className:"guide-title",children:I18N.CommonGuides.v8guide_create_page}),(0,k.jsx)("div",{className:"text",children:I18N.CommonGuides.v8guide_novice_step1})]}):(0,k.jsx)("div",{className:"text",dangerouslySetInnerHTML:{__html:st}})}const ft=(0,o.memo)(We),mt=g.Ay.div.withConfig({displayName:"styles__StyledGuideStartModal",componentId:"sc-1woarnk-0"})(["position:fixed;left:0;right:0;top:0;bottom:0;background:rgba(0,0,0,0.4);z-index:9999;transition:all 0.3s;.modal-bg{z-index:10;opacity:1;cursor:initial;position:fixed;display:flex;flex-direction:column;align-items:center;justify-content:center;top:50%;right:50%;transform:translate(50%,-60%);transition:all 0.3s;width:400px;padding:20px 20px 14px 20px;background:#FFF;border-radius:10px;box-shadow:0px 9px 28px 0px rgba(0,0,0,0.09),0px 6px 16px 0px rgba(0,0,0,0.02),0px 3px 6px 0px rgba(0,0,0,0.02);.image{width:100%;height:180px;border-radius:10px;margin-bottom:20px;img{width:100%;}}.title{color:#333;font-size:18px;font-weight:700;margin-bottom:8px;}.description{color:#333;font-size:14px;font-weight:400;margin-bottom:14px;.step{color:#1684FC;font-weight:500;}.new-user-gift-tips{-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-image:linear-gradient(90deg,#366eff,#1abccb);}}.start-button{display:flex;width:180px;height:36px;justify-content:center;align-items:center;background-color:#1684FC;border-radius:6px;margin-bottom:10px;color:#ffffff;font-size:14px;font-weight:500;transition:background-color 0.3 ease-in;&:hover{background-color:#459DFD;}&:active{background-color:#1971D1;}.new-user-tips-icon{width:20px;height:20px;}}.guide-close{position:absolute;top:-30px;right:-30px;cursor:pointer;svg{width:24px;height:24px;rect{fill:",";&:hover{fill:",";}}}}}"],Ze=>Ze.theme.color_slider_normal,Ze=>Ze.theme.color_slider_hover);var i=e(29601);function gt(Ze){let{sceneTag:it="",handleStart:st,handleClose:dt}=Ze;const Ot=(0,H.VC)(it)==="DS";return(0,o.useEffect)(()=>{var Ct;(Ct=MB)==null||(Ct=Ct.commonGuideHelper)==null||Ct.markGuideAsRead(f.c.GUIDE_NOVICE_2309_START)},[]),(0,k.jsx)(mt,{children:(0,k.jsxs)("div",{className:"modal-bg",onClick:Ct=>Ct.stopPropagation(),children:[(0,k.jsx)("div",{className:"image",children:(0,k.jsx)("img",{src:"/mb-proto2/images/guide/noviceGuides2309/guide_start_background_image.png",alt:I18N.CommonGuides.guide_start_2309_title,draggable:"false"})}),(0,k.jsx)("div",{className:"title",children:Ot?I18N.CommonGuides.guide_start_2309_DS_title:I18N.CommonGuides.guide_start_2309_title}),(0,k.jsxs)("div",{className:"description",children:[I18N.CommonGuides.guide_start_2309_desc_1,(0,k.jsxs)("span",{className:"step",children:[" ",Ot?5:4," "]}),I18N.CommonGuides.guide_start_2309_desc_2,(0,k.jsx)("span",{className:"new-user-gift-tips",children:I18N.CommonGuides.guide_start_2309_desc_3})]}),(0,k.jsxs)("button",{className:"start-button",onClick:st,children:[I18N.CommonGuides.guide_start_2309_button_start,(0,i.w)()==="zh-CN"&&(0,k.jsx)("img",{className:"new-user-tips-icon",src:"https://cdn.modao.cc/dashboard/guide/new_user_gift_tips.png"})]}),(0,k.jsx)("div",{className:"guide-close",onClick:dt,children:(0,k.jsx)(N.C,{name:"design/guides/close"})})]})})}const Je=gt;var Pt=e(83012);const qt=Ze=>{const{dispatch:it,sceneTag:st="",onClose:dt}=Ze,[Ot,Ct]=(0,o.useState)(0),[wo,ln]=(0,o.useState)(0),Io=(0,H.VC)(st)==="DS",Lo=Io?H.H:H.bu,Ao=Lo[Ot-1],xt=(0,H.Dx)(st,I18N)[Ao],Ut=(0,o.useCallback)(async _s=>{const Ls=(0,H.VC)(st)==="DS";switch(_s){case 1:if(Ls)break;await it({type:"entry:prepare:novice:guide:screen:data",payload:{mtResourceCid:(0,H.xR)(st),marketTemplateKey:(0,H.jI)(st),sceneTag:st}}),await it({type:"set:current:popup:panel",payload:{name:re.lS.Builtin}});break;case 2:if(!Ls)break;it({type:"widget-panel:update:state",payload:{selectedSceTag:"DS-screen"}}),it({type:"widget-panel:update:selectedPLabel:by:name",payload:{name:"\u6846\u67B6\u80CC\u666F"}});break;case 3:Ls&&(it({type:"widget-panel:update:state",payload:{selectedSceTag:"DS-screen"}}),it({type:"widget-panel:update:selectedPLabel:by:name",payload:{name:"\u5730\u56FE"}}));break;default:break}},[st,it]),Wo=(0,o.useCallback)(()=>{MB.commonGuideHelper.markGuideAsRead(f.c.GUIDE_NOVICE_2309),dt()},[dt]),qo=(0,o.useCallback)(async()=>{await Ut(1),Ct(1),Ce.Y.noviceGuide2309StartClick("\u7ACB\u5373\u5F00\u59CB",st),["PC","DS"].includes((0,H.VC)(st))&&it({type:"entry:set:scale",payload:{scale:30}})},[it,Ut,st]),sn=(0,o.useCallback)(()=>{it({type:"entry:skip:novice:guide"}),MB.commonGuideHelper.markGuideAsRead(f.c.GUIDE_NOVICE_2309),MB.commonGuideHelper.markGuideAsRead(f.c.GUIDE_2407_PREVIEW_CLOSE);const _s=MB.commonGuideHelper.getState().commonGuidesHasShown;it({type:"update:taskList:data",payload:{completeList:_s}}),it({type:"update:taskList:isCollapse",payload:{isCollapse:!1}}),Ce.Y.noviceGuide2309StartClick("\u81EA\u884C\u63A2\u7D22",st),Wo()},[st,Wo,it]),Kn=(0,o.useCallback)(async _s=>{const Ls=Lo[Ot-1];if(_s&&_s!==Ls)return;if(Ls&&MB.commonGuideHelper.markGuideAsRead(Ls),Ce.Y.noviceGuide2309StepClick(Ot,st),Ot===Lo.length){try{await it({type:"entry:fetch:guideTask:award"})}catch(Wn){console.error("guide error:",Wn)}setTimeout(()=>Wo(),200);return}let gs=Ot;if(!Io)try{var ns;const Wn=(ns=MB)==null||(ns=ns.commonGuideHelper)==null?void 0:ns.getState().commonGuidesHasShown,Do=be._D.filter((Mo,Cn)=>Cn+1!==Ot).find(Mo=>!Wn.includes(Mo)),Go=be._D.indexOf(Do),an=Go<0?Lo.length:Go;gs=Math.max(Ot,an)}catch(Wn){console.log(Wn.message)}if(gs===Lo.length){try{await it({type:"entry:fetch:guideTask:award"})}catch(Wn){console.error("guide error:",Wn)}setTimeout(()=>Wo(),200);return}await Ut(gs+1),Ct(gs+1)},[Ot,Ut,Wo,st]),ds=(0,o.useCallback)(()=>ln(_s=>(_s+1)%10),[]);if((0,o.useEffect)(()=>{window.addEventListener("resize",ds)},[ds]),(0,o.useEffect)(()=>(MB.commonGuideHelper.registerMountGuideCallback(f.c.GUIDE_NOVICE_2309,{handleContinue:Kn,handleClose:Wo,handleResize:ds}),()=>{MB.commonGuideHelper.removeMountGuideCallback(f.c.GUIDE_NOVICE_2309)}),[Kn,Wo,ds]),(0,o.useEffect)(()=>{if((0,Pt.cz)())return;const _s=(0,H.VC)(st)==="DS"?H.g7:[(0,H.xR)(st)];it({type:"entry:resources:init:marketTemplateItemList:map",payload:{resourcesCids:_s}})},[st,it]),Ot===0){if((0,Pt.cz)()){it({type:"set:current:popup:panel",payload:{name:re.lS.AI}}),it({type:"entry:skip:novice:guide"}),MB.commonGuideHelper.markGuideAsRead(f.c.GUIDE_NOVICE_2309);const _s=MB.commonGuideHelper.getState().commonGuidesHasShown;it({type:"update:taskList:data",payload:{completeList:_s}});return}return(0,k.jsx)(Je,{sceneTag:st,handleStart:qo,handleClose:sn})}return xt?(0,k.jsx)(ft,{guideType:Ao,guideConfig:xt,currentStep:Ot,totalStep:Lo.length,sceneTag:st,resizeFlag:wo,dispatch:it}):null},pt=Ze=>{const{guideType:it,sceneTag:st,onClose:dt}=Ze,[Ot,Ct]=(0,o.useState)(!0),wo=(0,o.useCallback)(()=>{dt(),MB.commonGuideHelper.closeGuide(it),MB.commonGuideHelper.markGuideAsRead(it),Ct(!1)},[dt,it]),ln=(0,H.Dx)(st,I18N)[it];return(0,o.useEffect)(()=>(MB.commonGuideHelper.registerMountGuideCallback(f.c.GUIDE_NOVICE_2408_CREATE_PAGE,{handleClose:wo}),()=>{MB.commonGuideHelper.removeMountGuideCallback(f.c.GUIDE_NOVICE_2408_CREATE_PAGE)}),[wo]),(0,k.jsx)(ft,{guideType:it,guideConfig:ln,sceneTag:st,currentStep:5,handleCloseGuide:wo,isOpenCreatePage:Ot})},$t=(0,o.memo)(pt),go=Ze=>{const{onClose:it,guideType:st}=Ze,{store:{dispatch:dt,getState:Ot}}=Ze,Ct=Ot(),{scene_tag:wo}=(0,C.PL)(Ct),ln=(0,o.useCallback)(async()=>{var Io,Lo;(Io=MB)!=null&&(Io=Io.commonGuideHelper)!=null&&Io.checkGuideHasShown(st)||st&&((Lo=MB)==null||(Lo=Lo.commonGuideHelper)==null||Lo.markGuideAsRead(st))},[st]);return(0,o.useEffect)(()=>(window.addEventListener("beforeunload",ln),()=>{window.removeEventListener("beforeunload",ln)}),[ln]),(0,o.useEffect)(()=>{var Io;(0,se.BT)((Io=Object.values((0,H.Dx)(wo,I18N)))==null?void 0:Io.map(Lo=>Lo==null?void 0:Lo.imgUrl))},[wo]),st===f.c.GUIDE_NOVICE_2309_TIP_1||st===f.c.GUIDE_NOVICE_2408_CREATE_PAGE?(0,k.jsx)($t,{guideType:st,sceneTag:wo,onClose:it}):(0,k.jsx)(qt,{dispatch:dt,sceneTag:wo,onClose:it})},Co=(0,o.memo)(go);var Tt=e(35372);const mo=g.Ay.div.withConfig({displayName:"styles__StyledBubbleGuide",componentId:"sc-wol0v6-0"})(["position:absolute;padding:4px 4px;font-size:12px;line-height:20px;speak:none;transition-property:opacity,transform;transition-duration:0.15s;user-select:text;z-index:1049;& > .arrow{position:absolute;z-index:10;display:block;font-size:14px;line-height:0;svg{width:16px;height:14px;fill:",";}}&.on-top{left:50%;bottom:100%;transform:translate(-50%,-10%);& > .arrow{left:50%;bottom:1px;transform:translate(-50%,30%);svg{transform:rotate(180deg);}}}&.on-bottom{left:50%;top:100%;transform:translate(-50%,10%);& > .arrow{top:1px;left:50%;transform:translate(-50%,-30%) rotate(90deg);}}&.on-left{right:100%;top:50%;transform:translate(0%,-50%);& > .arrow{top:50%;right:0;transform:translate(30%,-50%);svg{transform:rotate(180deg);}}}&.on-right{left:100%;top:50%;transform:translate(0,-50%);& > .arrow{top:50%;left:0;transform:translate(-30%,-50%);}}> .content{position:relative;z-index:20;width:max-content;min-width:2em;min-height:2em;padding:8px 16px;background-color:",";border-radius:10px;color:#fff;display:flex;.text{max-width:156px;&:lang(en){max-width:max-content;}}.bottom{display:flex;justify-content:end;margin-top:8px;.btn{width:64px;height:28px;padding:6px 12px;border:1px solid transparent;border-radius:6px;background-color:#fff;color:",";font-weight:500;cursor:pointer;display:flex;align-items:center;justify-content:center;}}}.times-icon{margin-left:16px;cursor:pointer;width:18px;height:18px;}&#MD_GUIDE_DRAW_IO_NAV,&#MD_GUIDE_DRAW_IO_NAV_RIGHT_LAYOUT{width:300px;.content{padding:18px 20px 20px 20px;display:flex;flex-direction:column;width:100%;.text{max-width:max-content;.title{font-size:14px;font-weight:500;margin-bottom:10px;}.desc{font-size:12px;}}.times-icon{position:absolute;top:16px;right:19px;}}}&#MD_GUIDE_DRAW_IO_NAV_RIGHT_LAYOUT{.arrow{top:50%;right:0;transform:translate(30%,-50%);svg{transform:rotate(180deg);}}}"],Ze=>Ze.theme.color_proto,Ze=>Ze.theme.color_proto,Ze=>Ze.theme.color_proto),jo=(0,g.DU)(["#left-slide-panel{.left-nav-top{.drawio.GUIDE_DRAW_IO_NAV{",";}}}"],Le.K6),Kt=(0,g.DU)(["#fixed-area{.sideBar{.top{.drawio.GUIDE_DRAW_IO_NAV_RIGHT_LAYOUT{",";}}}}"],Le.K6),Ft=(Ze,it,st)=>{const dt=document.querySelector(Ze);if(!dt)return null;const{top:Ot,left:Ct,bottom:wo,right:ln,width:Io,height:Lo}=dt.getBoundingClientRect(),{x:Ao=0,y:xt=0}=st||{};switch(it){case"top":return{bottom:xt+window.innerHeight-Ot+4,left:Ao+Ct+Io/2};case"bottom":return{top:xt+wo+4,left:Ao+Ct+Io/2};case"left":return{top:xt+Ot+Lo/2,right:Ao+Ct+4};case"right":return{top:xt+Ot+Lo/2,left:Ao+ln+4}}},nt=Ze=>{let{guideType:it,onClose:st,store:dt}=Ze;const{dispatch:Ot}=dt,Ct=()=>{st(),it===f.c.GUIDE_2407_PREVIEW?MB.commonGuideHelper.markGuideAsRead(f.c.GUIDE_2407_PREVIEW_CLOSE):it===f.c.GUIDE_DRAW_IO_NAV_RIGHT_LAYOUT?MB.commonGuideHelper.markGuideAsRead(f.c.GUIDE_DRAW_IO_NAV):MB.commonGuideHelper.markGuideAsRead(it);const sn=MB.commonGuideHelper.getState().commonGuidesHasShown;Ot({type:"update:taskList:data",payload:{completeList:sn}})},wo=()=>it===f.c.GUIDE_DRAW_IO_NAV?(0,k.jsx)(jo,{}):it===f.c.GUIDE_DRAW_IO_NAV_RIGHT_LAYOUT?(0,k.jsx)(Kt,{}):null,ln=(0,Tt.c)(I18N)[it],{relativePos:Io,selector:Lo,content:Ao,offset:xt,arrowPosition:Ut,hasKnow:Wo=!1}=ln,qo=Ft(Lo,Io,xt);return qo?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)(mo,{id:"MD_"+it,className:h()("on-"+Io),style:qo,children:[(0,k.jsx)("div",{className:"arrow",style:Ut,children:(0,k.jsx)("svg",{width:"12",height:"16",fill:"none",viewBox:"0 0 12 16",children:(0,k.jsx)("path",{fill:"#07F",d:"M1.04 9.74a2 2 0 0 1 0-3.48L12 0v16z"})})}),(0,k.jsxs)("div",{className:"content",children:[(0,k.jsx)("div",{className:"text",dangerouslySetInnerHTML:{__html:Ao}}),(0,k.jsx)(N.C,{className:"times-icon",name:"general/times",onClick:Ct}),Wo&&(0,k.jsx)("div",{className:"bottom",children:(0,k.jsx)("div",{className:"btn primary",onClick:Ct,children:I18N.CommonGuides.v8guide3})})]})]}),wo()]}):null},Rt=()=>({[f.c.GUIDE_COMMON_V9_OPERATIONS_GUIDE]:{selector:"."+f.c.GUIDE_COMMON_V9_OPERATIONS_GUIDE,arrowPosition:{right:-8},relativePos:"left",offset:{x:312,y:-2},title:"\u5E38\u7528\u64CD\u4F5C",content:"\u5BF9\u9F50\u3001\u56FE\u5C42\u3001\u7EC4\u5408\u7B49\u5E38\u7528\u64CD\u4F5C\u805A\u5408\u5728\u53F3\u4FA7\u9762\u677F\u3002"}});var yt=e(31347);const Jt=(0,g.Ay)(yt.eA).withConfig({displayName:"styles__StyledToolTipGuide",componentId:"sc-124w038-0"})(["> .content{.footer{justify-content:flex-end;}}"]),vo=(Ze,it,st)=>{const dt=document.querySelector(Ze);if(!dt)return null;const{top:Ot,left:Ct,bottom:wo,right:ln,width:Io,height:Lo}=dt.getBoundingClientRect(),{x:Ao=0,y:xt=0}=st||{};switch(it){case"top":return{bottom:xt+window.innerHeight-Ot+4,left:Ao+Ct+Io/2};case"bottom":return{top:xt+wo+4,left:Ao+Ct+Io/2};case"left":return{top:xt+Ot+Lo/2,left:Ct-Ao-6};case"right":return{top:xt+Ot+Lo/2,left:ln-Ao+4}}},Yo=Ze=>{let{guideType:it,onClose:st,store:dt}=Ze;const{dispatch:Ot,getState:Ct}=dt,wo=Ct(),ln=Rt()[f.c.GUIDE_COMMON_V9_OPERATIONS_GUIDE],{relativePos:Io,selector:Lo,title:Ao,content:xt,arrowPosition:Ut,offset:Wo}=ln,qo=(0,Pt.XM)(),sn=(0,ae.MZ)(wo);(0,o.useEffect)(()=>{var _s;(_s=MB)==null||(_s=_s.commonGuideHelper)==null||_s.markGuideAsRead(it)},[]);const Kn=vo(Lo,Io,Wo),ds=()=>{var _s,Ls;st(),(_s=MB.commonGuideHelper)==null||_s.markGuideAsRead(f.c.GUIDE_COMMON_V9_OPERATIONS_GUIDE);const gs=((Ls=MB)==null||(Ls=Ls.commonGuideHelper)==null||(Ls=Ls.getState())==null?void 0:Ls.commonGuidesHasShown)||[];Ot({type:"update:taskList:data",payload:{completeList:gs}})};return qo||!Kn?null:(0,k.jsx)(k.Fragment,{children:(0,k.jsxs)(Jt,{id:"MD_"+it,className:h()("on-"+Io),style:Kn,children:[(0,k.jsx)("div",{className:"arrow",style:Ut,children:(0,k.jsx)("svg",{width:"12",height:"16",fill:"none",viewBox:"0 0 12 16",children:(0,k.jsx)("path",{fill:"#07F",d:"M1.04 9.74a2 2 0 0 1 0-3.48L12 0v16z"})})}),(0,k.jsxs)("div",{className:"content",children:[(0,k.jsx)("svg",{className:"close-icon",onClick:ds,width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:(0,k.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M8.11 7.4a.5.5 0 1 0-.7.71L11.28 12 7.4 15.89a.5.5 0 1 0 .71.7L12 12.72l3.89 3.89a.5.5 0 1 0 .7-.71L12.72 12l3.89-3.89a.5.5 0 1 0-.71-.7L12 11.28z",clipRule:"evenodd",opacity:".9"})}),(0,k.jsx)("span",{className:"title",children:Ao}),(0,k.jsx)("span",{className:"main-content",children:xt}),(0,k.jsx)("div",{className:"footer",children:(0,k.jsx)("span",{className:"btn-next",onClick:ds,children:"\u77E5\u9053\u4E86"})})]})]})})},Ho=(0,o.memo)(Yo),kt=(Ze,it,st)=>{switch(Ze){case f.c.GUIDE_POSITION_STICKY_FEATURES:case f.c.GUIDE_NEW_OVERLAY_ONCE:case f.c.GUIDE_VECTOR_TASK_QUICK_CREATE:case f.c.GUIDE_VECTOR_TASK_ENDING_EDITING:case f.c.GUIDE_VECTOR_TASK_EDITING_EXIST_VECTOR:x({Component:J,props:{store:it,guideType:Ze,params:st}});break;case f.c.GUIDE_NOVICE_2309:case f.c.GUIDE_NOVICE_2309_TIP_1:case f.c.GUIDE_NOVICE_2408_CREATE_PAGE:x({Component:Co,props:{store:it,guideType:Ze,params:st}});break;case f.c.GUIDE_OLD_NEW_CREATE_PAGE:case f.c.GUIDE_OLD_ADD_LINE_FEATURE:case f.c.GUIDE_OLD_UPGRADE_ANNOTATE:case f.c.GUIDE_OLD_USE_COMMENT:x({Component:xe,props:{store:it,guideType:Ze,params:st}});break;case f.c.GUIDE_NOVICE_V9_2408:case f.c.GUIDE_NOVICE_V9_2408_STEP_1:case f.c.GUIDE_NOVICE_V9_2408_STEP_2:case f.c.GUIDE_NOVICE_V9_2408_STEP_3:x({Component:te.A,props:{store:it,guideType:Ze,params:st}});break;case f.c.GUIDE_COMMON_V9_OPERATIONS_GUIDE:x({Component:Ho,props:{store:it,guideType:Ze,params:st}});break;case f.c.GUIDE_ALL_REPLACE_PAGE:case f.c.GUIDE_SELECT_STICKY:case f.c.GUIDE_BASKET_QUICK_COPY_CANVAS:case f.c.GUIDE_PAGE_CREAT_LINK:case f.c.GUIDE_PAGE_CREAT_LINK2:case f.c.GUIDE_TO_PREVIEW_IN_SHARE:case f.c.GUIDE_MORE_PAGE:case f.c.GUIDE_PREVIEW_VIEW_BTN:case f.c.GUIDE_BASKET_MUBAN_USE:case f.c.GUIDE_FIND_MORE_SCENE_COMBO:case f.c.GUIDE_PUBLISH_COMBO_TO_MKT:case f.c.GUIDE_COPY_AS_PNG:x({Component:R,props:{store:it,guideType:Ze,params:st}});break;case f.c.INTER_SWITCHABLE_VIEW_MODE_RELOCATED_INSPECT_TOGGLE:case f.c.INTER_SWITCHABLE_VIEW_MODE_OV_TOGGLE_PANE_BTN:case f.c.INTER_SWITCHABLE_VIEW_MODE_PV_TOGGLE_PANE_BTN:case f.c.GUIDE_2309_CLICK_SHARE:case f.c.GUIDE_2407_PREVIEW:case f.c.GUIDE_DRAW_IO_NAV:case f.c.GUIDE_DRAW_IO_NAV_RIGHT_LAYOUT:{x({Component:nt,props:{store:it,guideType:Ze,params:st}});break}default:break}}},99059:(Et,ke,e)=>{var o;/*! Hammer.JS - v2.0.7 - 2016-04-22
- * http://hammerjs.github.io/
- *
- * Copyright (c) 2016 Jorik Tangelder;
- * Licensed under the MIT license */(function(m,g,l,C){"use strict";var T=["","webkit","Moz","MS","ms","o"],A=g.createElement("div"),k="function",p=Math.round,r=Math.abs,x=Date.now;function f(to,Qt,Sn){return setTimeout(_(to,Sn),Qt)}function u(to,Qt,Sn){return Array.isArray(to)?(b(to,Sn[Qt],Sn),!0):!1}function b(to,Qt,Sn){var Vo;if(to)if(to.forEach)to.forEach(Qt,Sn);else if(to.length!==C)for(Vo=0;Vo<to.length;)Qt.call(Sn,to[Vo],Vo,to),Vo++;else for(Vo in to)to.hasOwnProperty(Vo)&&Qt.call(Sn,to[Vo],Vo,to)}function h(to,Qt,Sn){var Vo="DEPRECATED METHOD: "+Qt+"\n"+Sn+" AT \n";return function(){var ho=new Error("get-stack-trace"),Uo=ho&&ho.stack?ho.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",pn=m.console&&(m.console.warn||m.console.log);return pn&&pn.call(m.console,Vo,Uo),to.apply(this,arguments)}}var E;typeof Object.assign!="function"?E=function(Qt){if(Qt===C||Qt===null)throw new TypeError("Cannot convert undefined or null to object");for(var Sn=Object(Qt),Vo=1;Vo<arguments.length;Vo++){var ho=arguments[Vo];if(ho!==C&&ho!==null)for(var Uo in ho)ho.hasOwnProperty(Uo)&&(Sn[Uo]=ho[Uo])}return Sn}:E=Object.assign;var N=h(function(Qt,Sn,Vo){for(var ho=Object.keys(Sn),Uo=0;Uo<ho.length;)(!Vo||Vo&&Qt[ho[Uo]]===C)&&(Qt[ho[Uo]]=Sn[ho[Uo]]),Uo++;return Qt},"extend","Use `assign`."),z=h(function(Qt,Sn){return N(Qt,Sn,!0)},"merge","Use `assign`.");function S(to,Qt,Sn){var Vo=Qt.prototype,ho;ho=to.prototype=Object.create(Vo),ho.constructor=to,ho._super=Vo,Sn&&E(ho,Sn)}function _(to,Qt){return function(){return to.apply(Qt,arguments)}}function y(to,Qt){return typeof to===k?to.apply(Qt&&Qt[0]||C,Qt):to}function a(to,Qt){return to===C?Qt:to}function $(to,Qt,Sn){b(se(Qt),function(Vo){to.addEventListener(Vo,Sn,!1)})}function ce(to,Qt,Sn){b(se(Qt),function(Vo){to.removeEventListener(Vo,Sn,!1)})}function de(to,Qt){for(;to;){if(to==Qt)return!0;to=to.parentNode}return!1}function fe(to,Qt){return to.indexOf(Qt)>-1}function se(to){return to.trim().split(/\s+/g)}function J(to,Qt,Sn){if(to.indexOf&&!Sn)return to.indexOf(Qt);for(var Vo=0;Vo<to.length;){if(Sn&&to[Vo][Sn]==Qt||!Sn&&to[Vo]===Qt)return Vo;Vo++}return-1}function ve(to){return Array.prototype.slice.call(to,0)}function D(to,Qt,Sn){for(var Vo=[],ho=[],Uo=0;Uo<to.length;){var pn=Qt?to[Uo][Qt]:to[Uo];J(ho,pn)<0&&Vo.push(to[Uo]),ho[Uo]=pn,Uo++}return Sn&&(Qt?Vo=Vo.sort(function(Dn,Hs){return Dn[Qt]>Hs[Qt]}):Vo=Vo.sort()),Vo}function R(to,Qt){for(var Sn,Vo,ho=Qt[0].toUpperCase()+Qt.slice(1),Uo=0;Uo<T.length;){if(Sn=T[Uo],Vo=Sn?Sn+ho:Qt,Vo in to)return Vo;Uo++}return C}var V=1;function O(){return V++}function Ce(to){var Qt=to.ownerDocument||to;return Qt.defaultView||Qt.parentWindow||m}var ae=/mobile|tablet|ip(ad|hone|od)|android/i,q="ontouchstart"in m,K=R(m,"PointerEvent")!==C,xe=q&&ae.test(navigator.userAgent),te="touch",H="pen",re="mouse",be="kinect",Le=25,Ve=1,Ne=2,We=4,ze=8,ft=1,mt=2,i=4,gt=8,Je=16,Pt=mt|i,bt=gt|Je,qt=Pt|bt,pt=["x","y"],$t=["clientX","clientY"];function go(to,Qt){var Sn=this;this.manager=to,this.callback=Qt,this.element=to.element,this.target=to.options.inputTarget,this.domHandler=function(Vo){y(to.options.enable,[to])&&Sn.handler(Vo)},this.init()}go.prototype={handler:function(){},init:function(){this.evEl&&$(this.element,this.evEl,this.domHandler),this.evTarget&&$(this.target,this.evTarget,this.domHandler),this.evWin&&$(Ce(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&ce(this.element,this.evEl,this.domHandler),this.evTarget&&ce(this.target,this.evTarget,this.domHandler),this.evWin&&ce(Ce(this.element),this.evWin,this.domHandler)}};function Co(to){var Qt,Sn=to.options.inputClass;return Sn?Qt=Sn:K?Qt=ln:xe?Qt=sn:q?Qt=Ls:Qt=st,new Qt(to,Tt)}function Tt(to,Qt,Sn){var Vo=Sn.pointers.length,ho=Sn.changedPointers.length,Uo=Qt&Ve&&Vo-ho===0,pn=Qt&(We|ze)&&Vo-ho===0;Sn.isFirst=!!Uo,Sn.isFinal=!!pn,Uo&&(to.session={}),Sn.eventType=Qt,mo(to,Sn),to.emit("hammer.input",Sn),to.recognize(Sn),to.session.prevInput=Sn}function mo(to,Qt){var Sn=to.session,Vo=Qt.pointers,ho=Vo.length;Sn.firstInput||(Sn.firstInput=Ft(Qt)),ho>1&&!Sn.firstMultiple?Sn.firstMultiple=Ft(Qt):ho===1&&(Sn.firstMultiple=!1);var Uo=Sn.firstInput,pn=Sn.firstMultiple,ys=pn?pn.center:Uo.center,Dn=Qt.center=nt(Vo);Qt.timeStamp=x(),Qt.deltaTime=Qt.timeStamp-Uo.timeStamp,Qt.angle=vo(ys,Dn),Qt.distance=Jt(ys,Dn),jo(Sn,Qt),Qt.offsetDirection=yt(Qt.deltaX,Qt.deltaY);var Hs=Rt(Qt.deltaTime,Qt.deltaX,Qt.deltaY);Qt.overallVelocityX=Hs.x,Qt.overallVelocityY=Hs.y,Qt.overallVelocity=r(Hs.x)>r(Hs.y)?Hs.x:Hs.y,Qt.scale=pn?Ho(pn.pointers,Vo):1,Qt.rotation=pn?Yo(pn.pointers,Vo):0,Qt.maxPointers=Sn.prevInput?Qt.pointers.length>Sn.prevInput.maxPointers?Qt.pointers.length:Sn.prevInput.maxPointers:Qt.pointers.length,Kt(Sn,Qt);var Qn=to.element;de(Qt.srcEvent.target,Qn)&&(Qn=Qt.srcEvent.target),Qt.target=Qn}function jo(to,Qt){var Sn=Qt.center,Vo=to.offsetDelta||{},ho=to.prevDelta||{},Uo=to.prevInput||{};(Qt.eventType===Ve||Uo.eventType===We)&&(ho=to.prevDelta={x:Uo.deltaX||0,y:Uo.deltaY||0},Vo=to.offsetDelta={x:Sn.x,y:Sn.y}),Qt.deltaX=ho.x+(Sn.x-Vo.x),Qt.deltaY=ho.y+(Sn.y-Vo.y)}function Kt(to,Qt){var Sn=to.lastInterval||Qt,Vo=Qt.timeStamp-Sn.timeStamp,ho,Uo,pn,ys;if(Qt.eventType!=ze&&(Vo>Le||Sn.velocity===C)){var Dn=Qt.deltaX-Sn.deltaX,Hs=Qt.deltaY-Sn.deltaY,Qn=Rt(Vo,Dn,Hs);Uo=Qn.x,pn=Qn.y,ho=r(Qn.x)>r(Qn.y)?Qn.x:Qn.y,ys=yt(Dn,Hs),to.lastInterval=Qt}else ho=Sn.velocity,Uo=Sn.velocityX,pn=Sn.velocityY,ys=Sn.direction;Qt.velocity=ho,Qt.velocityX=Uo,Qt.velocityY=pn,Qt.direction=ys}function Ft(to){for(var Qt=[],Sn=0;Sn<to.pointers.length;)Qt[Sn]={clientX:p(to.pointers[Sn].clientX),clientY:p(to.pointers[Sn].clientY)},Sn++;return{timeStamp:x(),pointers:Qt,center:nt(Qt),deltaX:to.deltaX,deltaY:to.deltaY}}function nt(to){var Qt=to.length;if(Qt===1)return{x:p(to[0].clientX),y:p(to[0].clientY)};for(var Sn=0,Vo=0,ho=0;ho<Qt;)Sn+=to[ho].clientX,Vo+=to[ho].clientY,ho++;return{x:p(Sn/Qt),y:p(Vo/Qt)}}function Rt(to,Qt,Sn){return{x:Qt/to||0,y:Sn/to||0}}function yt(to,Qt){return to===Qt?ft:r(to)>=r(Qt)?to<0?mt:i:Qt<0?gt:Je}function Jt(to,Qt,Sn){Sn||(Sn=pt);var Vo=Qt[Sn[0]]-to[Sn[0]],ho=Qt[Sn[1]]-to[Sn[1]];return Math.sqrt(Vo*Vo+ho*ho)}function vo(to,Qt,Sn){Sn||(Sn=pt);var Vo=Qt[Sn[0]]-to[Sn[0]],ho=Qt[Sn[1]]-to[Sn[1]];return Math.atan2(ho,Vo)*180/Math.PI}function Yo(to,Qt){return vo(Qt[1],Qt[0],$t)+vo(to[1],to[0],$t)}function Ho(to,Qt){return Jt(Qt[0],Qt[1],$t)/Jt(to[0],to[1],$t)}var kt={mousedown:Ve,mousemove:Ne,mouseup:We},Ze="mousedown",it="mousemove mouseup";function st(){this.evEl=Ze,this.evWin=it,this.pressed=!1,go.apply(this,arguments)}S(st,go,{handler:function(Qt){var Sn=kt[Qt.type];Sn&Ve&&Qt.button===0&&(this.pressed=!0),Sn&Ne&&Qt.which!==1&&(Sn=We),this.pressed&&(Sn&We&&(this.pressed=!1),this.callback(this.manager,Sn,{pointers:[Qt],changedPointers:[Qt],pointerType:re,srcEvent:Qt}))}});var dt={pointerdown:Ve,pointermove:Ne,pointerup:We,pointercancel:ze,pointerout:ze},Ot={2:te,3:H,4:re,5:be},Ct="pointerdown",wo="pointermove pointerup pointercancel";m.MSPointerEvent&&!m.PointerEvent&&(Ct="MSPointerDown",wo="MSPointerMove MSPointerUp MSPointerCancel");function ln(){this.evEl=Ct,this.evWin=wo,go.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}S(ln,go,{handler:function(Qt){var Sn=this.store,Vo=!1,ho=Qt.type.toLowerCase().replace("ms",""),Uo=dt[ho],pn=Ot[Qt.pointerType]||Qt.pointerType,ys=pn==te,Dn=J(Sn,Qt.pointerId,"pointerId");Uo&Ve&&(Qt.button===0||ys)?Dn<0&&(Sn.push(Qt),Dn=Sn.length-1):Uo&(We|ze)&&(Vo=!0),!(Dn<0)&&(Sn[Dn]=Qt,this.callback(this.manager,Uo,{pointers:Sn,changedPointers:[Qt],pointerType:pn,srcEvent:Qt}),Vo&&Sn.splice(Dn,1))}});var Io={touchstart:Ve,touchmove:Ne,touchend:We,touchcancel:ze},Lo="touchstart",Ao="touchstart touchmove touchend touchcancel";function xt(){this.evTarget=Lo,this.evWin=Ao,this.started=!1,go.apply(this,arguments)}S(xt,go,{handler:function(Qt){var Sn=Io[Qt.type];if(Sn===Ve&&(this.started=!0),!!this.started){var Vo=Ut.call(this,Qt,Sn);Sn&(We|ze)&&Vo[0].length-Vo[1].length===0&&(this.started=!1),this.callback(this.manager,Sn,{pointers:Vo[0],changedPointers:Vo[1],pointerType:te,srcEvent:Qt})}}});function Ut(to,Qt){var Sn=ve(to.touches),Vo=ve(to.changedTouches);return Qt&(We|ze)&&(Sn=D(Sn.concat(Vo),"identifier",!0)),[Sn,Vo]}var Wo={touchstart:Ve,touchmove:Ne,touchend:We,touchcancel:ze},qo="touchstart touchmove touchend touchcancel";function sn(){this.evTarget=qo,this.targetIds={},go.apply(this,arguments)}S(sn,go,{handler:function(Qt){var Sn=Wo[Qt.type],Vo=Kn.call(this,Qt,Sn);Vo&&this.callback(this.manager,Sn,{pointers:Vo[0],changedPointers:Vo[1],pointerType:te,srcEvent:Qt})}});function Kn(to,Qt){var Sn=ve(to.touches),Vo=this.targetIds;if(Qt&(Ve|Ne)&&Sn.length===1)return Vo[Sn[0].identifier]=!0,[Sn,Sn];var ho,Uo,pn=ve(to.changedTouches),ys=[],Dn=this.target;if(Uo=Sn.filter(function(Hs){return de(Hs.target,Dn)}),Qt===Ve)for(ho=0;ho<Uo.length;)Vo[Uo[ho].identifier]=!0,ho++;for(ho=0;ho<pn.length;)Vo[pn[ho].identifier]&&ys.push(pn[ho]),Qt&(We|ze)&&delete Vo[pn[ho].identifier],ho++;if(ys.length)return[D(Uo.concat(ys),"identifier",!0),ys]}var ds=2500,_s=25;function Ls(){go.apply(this,arguments);var to=_(this.handler,this);this.touch=new sn(this.manager,to),this.mouse=new st(this.manager,to),this.primaryTouch=null,this.lastTouches=[]}S(Ls,go,{handler:function(Qt,Sn,Vo){var ho=Vo.pointerType==te,Uo=Vo.pointerType==re;if(!(Uo&&Vo.sourceCapabilities&&Vo.sourceCapabilities.firesTouchEvents)){if(ho)gs.call(this,Sn,Vo);else if(Uo&&Wn.call(this,Vo))return;this.callback(Qt,Sn,Vo)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function gs(to,Qt){to&Ve?(this.primaryTouch=Qt.changedPointers[0].identifier,ns.call(this,Qt)):to&(We|ze)&&ns.call(this,Qt)}function ns(to){var Qt=to.changedPointers[0];if(Qt.identifier===this.primaryTouch){var Sn={x:Qt.clientX,y:Qt.clientY};this.lastTouches.push(Sn);var Vo=this.lastTouches,ho=function(){var Uo=Vo.indexOf(Sn);Uo>-1&&Vo.splice(Uo,1)};setTimeout(ho,ds)}}function Wn(to){for(var Qt=to.srcEvent.clientX,Sn=to.srcEvent.clientY,Vo=0;Vo<this.lastTouches.length;Vo++){var ho=this.lastTouches[Vo],Uo=Math.abs(Qt-ho.x),pn=Math.abs(Sn-ho.y);if(Uo<=_s&&pn<=_s)return!0}return!1}var Do=R(A.style,"touchAction"),Go=Do!==C,an="compute",Mo="auto",Cn="manipulation",Tn="none",cn="pan-x",bs="pan-y",Vn=Gt();function ti(to,Qt){this.manager=to,this.set(Qt)}ti.prototype={set:function(to){to==an&&(to=this.compute()),Go&&this.manager.element.style&&Vn[to]&&(this.manager.element.style[Do]=to),this.actions=to.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var to=[];return b(this.manager.recognizers,function(Qt){y(Qt.options.enable,[Qt])&&(to=to.concat(Qt.getTouchAction()))}),oi(to.join(" "))},preventDefaults:function(to){var Qt=to.srcEvent,Sn=to.offsetDirection;if(this.manager.session.prevented){Qt.preventDefault();return}var Vo=this.actions,ho=fe(Vo,Tn)&&!Vn[Tn],Uo=fe(Vo,bs)&&!Vn[bs],pn=fe(Vo,cn)&&!Vn[cn];if(ho){var ys=to.pointers.length===1,Dn=to.distance<2,Hs=to.deltaTime<250;if(ys&&Dn&&Hs)return}if(!(pn&&Uo)&&(ho||Uo&&Sn&Pt||pn&&Sn&bt))return this.preventSrc(Qt)},preventSrc:function(to){this.manager.session.prevented=!0,to.preventDefault()}};function oi(to){if(fe(to,Tn))return Tn;var Qt=fe(to,cn),Sn=fe(to,bs);return Qt&&Sn?Tn:Qt||Sn?Qt?cn:bs:fe(to,Cn)?Cn:Mo}function Gt(){if(!Go)return!1;var to={},Qt=m.CSS&&m.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(Sn){to[Sn]=Qt?m.CSS.supports("touch-action",Sn):!0}),to}var Rs=1,Xs=2,Ti=4,di=8,vs=di,ei=16,Si=32;function Gs(to){this.options=E({},this.defaults,to||{}),this.id=O(),this.manager=null,this.options.enable=a(this.options.enable,!0),this.state=Rs,this.simultaneous={},this.requireFail=[]}Gs.prototype={defaults:{},set:function(to){return E(this.options,to),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(to){if(u(to,"recognizeWith",this))return this;var Qt=this.simultaneous;return to=kn(to,this),Qt[to.id]||(Qt[to.id]=to,to.recognizeWith(this)),this},dropRecognizeWith:function(to){return u(to,"dropRecognizeWith",this)?this:(to=kn(to,this),delete this.simultaneous[to.id],this)},requireFailure:function(to){if(u(to,"requireFailure",this))return this;var Qt=this.requireFail;return to=kn(to,this),J(Qt,to)===-1&&(Qt.push(to),to.requireFailure(this)),this},dropRequireFailure:function(to){if(u(to,"dropRequireFailure",this))return this;to=kn(to,this);var Qt=J(this.requireFail,to);return Qt>-1&&this.requireFail.splice(Qt,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(to){return!!this.simultaneous[to.id]},emit:function(to){var Qt=this,Sn=this.state;function Vo(ho){Qt.manager.emit(ho,to)}Sn<di&&Vo(Qt.options.event+Vs(Sn)),Vo(Qt.options.event),to.additionalEvent&&Vo(to.additionalEvent),Sn>=di&&Vo(Qt.options.event+Vs(Sn))},tryEmit:function(to){if(this.canEmit())return this.emit(to);this.state=Si},canEmit:function(){for(var to=0;to<this.requireFail.length;){if(!(this.requireFail[to].state&(Si|Rs)))return!1;to++}return!0},recognize:function(to){var Qt=E({},to);if(!y(this.options.enable,[this,Qt])){this.reset(),this.state=Si;return}this.state&(vs|ei|Si)&&(this.state=Rs),this.state=this.process(Qt),this.state&(Xs|Ti|di|ei)&&this.tryEmit(Qt)},process:function(to){},getTouchAction:function(){},reset:function(){}};function Vs(to){return to&ei?"cancel":to&di?"end":to&Ti?"move":to&Xs?"start":""}function ps(to){return to==Je?"down":to==gt?"up":to==mt?"left":to==i?"right":""}function kn(to,Qt){var Sn=Qt.manager;return Sn?Sn.get(to):to}function zn(){Gs.apply(this,arguments)}S(zn,Gs,{defaults:{pointers:1},attrTest:function(to){var Qt=this.options.pointers;return Qt===0||to.pointers.length===Qt},process:function(to){var Qt=this.state,Sn=to.eventType,Vo=Qt&(Xs|Ti),ho=this.attrTest(to);return Vo&&(Sn&ze||!ho)?Qt|ei:Vo||ho?Sn&We?Qt|di:Qt&Xs?Qt|Ti:Xs:Si}});function hs(){zn.apply(this,arguments),this.pX=null,this.pY=null}S(hs,zn,{defaults:{event:"pan",threshold:10,pointers:1,direction:qt},getTouchAction:function(){var to=this.options.direction,Qt=[];return to&Pt&&Qt.push(bs),to&bt&&Qt.push(cn),Qt},directionTest:function(to){var Qt=this.options,Sn=!0,Vo=to.distance,ho=to.direction,Uo=to.deltaX,pn=to.deltaY;return ho&Qt.direction||(Qt.direction&Pt?(ho=Uo===0?ft:Uo<0?mt:i,Sn=Uo!=this.pX,Vo=Math.abs(to.deltaX)):(ho=pn===0?ft:pn<0?gt:Je,Sn=pn!=this.pY,Vo=Math.abs(to.deltaY))),to.direction=ho,Sn&&Vo>Qt.threshold&&ho&Qt.direction},attrTest:function(to){return zn.prototype.attrTest.call(this,to)&&(this.state&Xs||!(this.state&Xs)&&this.directionTest(to))},emit:function(to){this.pX=to.deltaX,this.pY=to.deltaY;var Qt=ps(to.direction);Qt&&(to.additionalEvent=this.options.event+Qt),this._super.emit.call(this,to)}});function Ss(){zn.apply(this,arguments)}S(Ss,zn,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Tn]},attrTest:function(to){return this._super.attrTest.call(this,to)&&(Math.abs(to.scale-1)>this.options.threshold||this.state&Xs)},emit:function(to){if(to.scale!==1){var Qt=to.scale<1?"in":"out";to.additionalEvent=this.options.event+Qt}this._super.emit.call(this,to)}});function fi(){Gs.apply(this,arguments),this._timer=null,this._input=null}S(fi,Gs,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Mo]},process:function(to){var Qt=this.options,Sn=to.pointers.length===Qt.pointers,Vo=to.distance<Qt.threshold,ho=to.deltaTime>Qt.time;if(this._input=to,!Vo||!Sn||to.eventType&(We|ze)&&!ho)this.reset();else if(to.eventType&Ve)this.reset(),this._timer=f(function(){this.state=vs,this.tryEmit()},Qt.time,this);else if(to.eventType&We)return vs;return Si},reset:function(){clearTimeout(this._timer)},emit:function(to){this.state===vs&&(to&&to.eventType&We?this.manager.emit(this.options.event+"up",to):(this._input.timeStamp=x(),this.manager.emit(this.options.event,this._input)))}});function ri(){zn.apply(this,arguments)}S(ri,zn,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Tn]},attrTest:function(to){return this._super.attrTest.call(this,to)&&(Math.abs(to.rotation)>this.options.threshold||this.state&Xs)}});function Li(){zn.apply(this,arguments)}S(Li,zn,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Pt|bt,pointers:1},getTouchAction:function(){return hs.prototype.getTouchAction.call(this)},attrTest:function(to){var Qt=this.options.direction,Sn;return Qt&(Pt|bt)?Sn=to.overallVelocity:Qt&Pt?Sn=to.overallVelocityX:Qt&bt&&(Sn=to.overallVelocityY),this._super.attrTest.call(this,to)&&Qt&to.offsetDirection&&to.distance>this.options.threshold&&to.maxPointers==this.options.pointers&&r(Sn)>this.options.velocity&&to.eventType&We},emit:function(to){var Qt=ps(to.offsetDirection);Qt&&this.manager.emit(this.options.event+Qt,to),this.manager.emit(this.options.event,to)}});function ji(){Gs.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}S(ji,Gs,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Cn]},process:function(to){var Qt=this.options,Sn=to.pointers.length===Qt.pointers,Vo=to.distance<Qt.threshold,ho=to.deltaTime<Qt.time;if(this.reset(),to.eventType&Ve&&this.count===0)return this.failTimeout();if(Vo&&ho&&Sn){if(to.eventType!=We)return this.failTimeout();var Uo=this.pTime?to.timeStamp-this.pTime<Qt.interval:!0,pn=!this.pCenter||Jt(this.pCenter,to.center)<Qt.posThreshold;this.pTime=to.timeStamp,this.pCenter=to.center,!pn||!Uo?this.count=1:this.count+=1,this._input=to;var ys=this.count%Qt.taps;if(ys===0)return this.hasRequireFailures()?(this._timer=f(function(){this.state=vs,this.tryEmit()},Qt.interval,this),Xs):vs}return Si},failTimeout:function(){return this._timer=f(function(){this.state=Si},this.options.interval,this),Si},reset:function(){clearTimeout(this._timer)},tryEmit:function(to,Qt){return Qt===void 0&&(Qt={isForceEmit:!1}),this.emit(to)},emit:function(){this.state==vs&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function _t(to,Qt){return Qt=Qt||{},Qt.recognizers=a(Qt.recognizers,_t.defaults.preset),new bi(to,Qt)}_t.VERSION="2.0.7",_t.defaults={domEvents:!1,touchAction:an,enable:!0,inputTarget:null,inputClass:null,preset:[[ri,{enable:!1}],[Ss,{enable:!1},["rotate"]],[Li,{direction:Pt}],[hs,{direction:Pt},["swipe"]],[ji],[ji,{event:"doubletap",taps:2},["tap"]],[fi]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var Aa=1,Ki=2;function bi(to,Qt){this.options=E({},_t.defaults,Qt||{}),this.options.inputTarget=this.options.inputTarget||to,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=to,this.input=Co(this),this.touchAction=new ti(this,this.options.touchAction),sa(this,!0),b(this.options.recognizers,function(Sn){var Vo=this.add(new Sn[0](Sn[1]));Sn[2]&&Vo.recognizeWith(Sn[2]),Sn[3]&&Vo.requireFailure(Sn[3])},this)}bi.prototype={set:function(to){return E(this.options,to),to.touchAction&&this.touchAction.update(),to.inputTarget&&(this.input.destroy(),this.input.target=to.inputTarget,this.input.init()),this},stop:function(to){this.session.stopped=to?Ki:Aa},recognize:function(to){var Qt=this.session;if(!Qt.stopped){this.touchAction.preventDefaults(to);var Sn,Vo=this.recognizers,ho=Qt.curRecognizer;(!ho||ho&&ho.state&vs)&&(ho=Qt.curRecognizer=null);for(var Uo=0;Uo<Vo.length;)Sn=Vo[Uo],Qt.stopped!==Ki&&(!ho||Sn==ho||Sn.canRecognizeWith(ho))?Sn.recognize(to):Sn.reset(),!ho&&Sn.state&(Xs|Ti|di)&&(ho=Qt.curRecognizer=Sn),Uo++}},get:function(to){if(to instanceof Gs)return to;for(var Qt=this.recognizers,Sn=0;Sn<Qt.length;Sn++)if(Qt[Sn].options.event==to)return Qt[Sn];return null},add:function(to){if(u(to,"add",this))return this;var Qt=this.get(to.options.event);return Qt&&this.remove(Qt),this.recognizers.push(to),to.manager=this,this.touchAction.update(),to},remove:function(to){if(u(to,"remove",this))return this;if(to=this.get(to),to){var Qt=this.recognizers,Sn=J(Qt,to);Sn!==-1&&(Qt.splice(Sn,1),this.touchAction.update())}return this},on:function(to,Qt){if(to!==C&&Qt!==C){var Sn=this.handlers;return b(se(to),function(Vo){Sn[Vo]=Sn[Vo]||[],Sn[Vo].push(Qt)}),this}},off:function(to,Qt){if(to!==C){var Sn=this.handlers;return b(se(to),function(Vo){Qt?Sn[Vo]&&Sn[Vo].splice(J(Sn[Vo],Qt),1):delete Sn[Vo]}),this}},emit:function(to,Qt){this.options.domEvents&&Zi(to,Qt);var Sn=this.handlers[to]&&this.handlers[to].slice();if(!(!Sn||!Sn.length)){Qt.type=to,Qt.preventDefault=function(){Qt.srcEvent.preventDefault()};for(var Vo=0;Vo<Sn.length;)Sn[Vo](Qt),Vo++}},destroy:function(){this.element&&sa(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function sa(to,Qt){var Sn=to.element;if(Sn.style){var Vo;b(to.options.cssProps,function(ho,Uo){Vo=R(Sn.style,Uo),Qt?(to.oldCssProps[Vo]=Sn.style[Vo],Sn.style[Vo]=ho):Sn.style[Vo]=to.oldCssProps[Vo]||""}),Qt||(to.oldCssProps={})}}function Zi(to,Qt){var Sn=g.createEvent("Event");Sn.initEvent(to,!0,!0),Sn.gesture=Qt,Qt.target.dispatchEvent(Sn)}E(_t,{INPUT_START:Ve,INPUT_MOVE:Ne,INPUT_END:We,INPUT_CANCEL:ze,STATE_POSSIBLE:Rs,STATE_BEGAN:Xs,STATE_CHANGED:Ti,STATE_ENDED:di,STATE_RECOGNIZED:vs,STATE_CANCELLED:ei,STATE_FAILED:Si,DIRECTION_NONE:ft,DIRECTION_LEFT:mt,DIRECTION_RIGHT:i,DIRECTION_UP:gt,DIRECTION_DOWN:Je,DIRECTION_HORIZONTAL:Pt,DIRECTION_VERTICAL:bt,DIRECTION_ALL:qt,Manager:bi,Input:go,TouchAction:ti,TouchInput:sn,MouseInput:st,PointerEventInput:ln,TouchMouseInput:Ls,SingleTouchInput:xt,Recognizer:Gs,AttrRecognizer:zn,Tap:ji,Pan:hs,Swipe:Li,Pinch:Ss,Rotate:ri,Press:fi,on:$,off:ce,each:b,merge:z,extend:N,assign:E,inherit:S,bindFn:_,prefixed:R});var Fa=typeof m<"u"?m:typeof self<"u"?self:{};Fa.Hammer=_t,o=(function(){return _t}).call(ke,e,ke,Et),o!==C&&(Et.exports=o)})(window,document,"Hammer")},33039:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>u});var o=e(74059),m=e(66748),g=e.n(m),l=e(51044),C=e(86634),T=e.n(C),A=e(7290),k=e(11777),p=e(21676),r=e(31626);const x=p.Ay.a.withConfig({displayName:"styles__StyledIconBox",componentId:"sc-1pg70qp-0"})(["position:relative;",";height:32px;width:38px;border-radius:6px;transition:all 0.2s ease-in-out;.box-dropdown{margin-left:4px;}&:not(.disabled):not(.active):not(:active):hover{background-color:",";}&:not(.disabled):active,&:not(.disabled).active{background-color:",";}&.disabled{cursor:not-allowed;.svg-icon{color:",";}}&.is-dropdown{height:32px;width:48px;}"],r.o,b=>b.theme.color_btn_secondary_hover,b=>b.theme.color_btn_secondary_active,b=>b.theme.color_text_disabled01);var f=e(57464);class u extends l.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"handleClick",h=>{const{name:E,disabled:N,tempDisabled:z,onClick:S}=this.props;if(N){z&&MB.notice({text:I18N.Common.feature_is_not_available,type:"warning"});return}S&&S(E)}),(0,o.A)(this,"handleMouseDown",h=>{const{name:E,disabled:N,onMouseDown:z}=this.props;N||z&&z(h,E)}),(0,o.A)(this,"handleDoubleClick",()=>{const{name:h,disabled:E,onDoubleClick:N}=this.props;E||N&&N(h)})}render(){const{svgIconName:h,disabled:E,active:N,isShowDropDown:z,className:S,toolTipName:_,dropDownIconName:y,toolTipDistance:a,size:$,direction:ce,enterHoverTime:de,isColorPure:fe}=this.props;return(0,f.jsx)(k.A,{content:_,direction:ce||"down",distance:a,enterHoverTime:de,children:(0,f.jsxs)(x,{className:T()(S,"toolbar-icon-item",{disabled:E,active:N,"is-dropdown":z}),onClick:this.handleClick,onMouseDown:this.handleMouseDown,onDoubleClick:this.handleDoubleClick,children:[(0,f.jsx)(A.C,{className:h.replace("/","-"),name:h,size:$,isColorPure:fe}),z&&(0,f.jsx)(A.C,{className:"box-dropdown "+y.replace("/","-"),name:y})]})})}}(0,o.A)(u,"propTypes",{svgIconName:g().string,active:g().bool,disabled:g().bool,tempDisabled:g().bool,isShowDropDown:g().bool,className:g().string,name:g().string,toolTipName:g().oneOfType([g().string,g().object]),toolTipDistance:g().number,onClick:g().func,onMouseDown:g().func,onDoubleClick:g().func,dropDownIconName:g().string,size:g().number,direction:g().string,enterHoverTime:g().number,isColorPure:g().bool}),(0,o.A)(u,"defaultProps",{isShowDropDown:!1,toolTipDistance:0})},62048:(Et,ke,e)=>{"use strict";e.d(ke,{e:()=>g,l:()=>m});var o=e(21676);/*!
- NOTICE: 内含我们的改动, 请勿升级版本
- NOTICE: 内含我们的改动, 请勿升级版本
- NOTICE: 内含我们的改动, 请勿升级版本
- Animate.css - http://daneden.me/animate
- Licensed under the MIT license - http://opensource.org/licenses/MIT
- Copyright (c) 2015 Daniel Eden
- */const m=(0,o.DU)([".animated{animation-duration:1s;animation-fill-mode:backwards;}.animated.infinite{animation-iteration-count:infinite;}.animated.bounceIn{animation-duration:.75s;}@keyframes bounce{from,20%,53%,80%,to{animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);transform:translate3d(0,0,0);}40%,43%{animation-timing-function:cubic-bezier(0.755,0.050,0.855,0.060);transform:translate3d(0,-30px,0);}70%{animation-timing-function:cubic-bezier(0.755,0.050,0.855,0.060);transform:translate3d(0,-15px,0);}90%{transform:translate3d(0,-4px,0);}}.bounce{animation-name:bounce;transform-origin:center bottom;}@keyframes flash{from,50%,to{opacity:1;}25%,75%{opacity:0;}}.flash{animation-name:flash;}@keyframes pulse{from{transform:scale3d(1,1,1);}50%{transform:scale3d(1.05,1.05,1.05);}to{transform:scale3d(1,1,1);}}.pulse{animation-name:pulse;}@keyframes rubberBand{from{transform:scale3d(1,1,1);}30%{transform:scale3d(1.25,0.75,1);}40%{transform:scale3d(0.75,1.25,1);}50%{transform:scale3d(1.15,0.85,1);}65%{transform:scale3d(.95,1.05,1);}75%{transform:scale3d(1.05,.95,1);}to{transform:scale3d(1,1,1);}}.rubberBand{animation-name:rubberBand;}@keyframes shake{from,to{transform:translate3d(0,0,0);}10%,30%,50%,70%,90%{transform:translate3d(-10px,0,0);}20%,40%,60%,80%{transform:translate3d(10px,0,0);}}.shake{animation-name:shake;}@keyframes swing{20%{transform:rotate3d(0,0,1,15deg);}40%{transform:rotate3d(0,0,1,-10deg);}60%{transform:rotate3d(0,0,1,5deg);}80%{transform:rotate3d(0,0,1,-5deg);}to{transform:rotate3d(0,0,1,0deg);}}.swing{transform-origin:top center;animation-name:swing;}@keyframes tada{from{transform:scale3d(1,1,1);}10%,20%{transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg);}30%,50%,70%,90%{transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg);}40%,60%,80%{transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg);}to{transform:scale3d(1,1,1);}}.tada{animation-name:tada;}@keyframes wobble{from{transform:none;}15%{transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg);}30%{transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg);}45%{transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg);}60%{transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg);}75%{transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg);}to{transform:none;}}.wobble{animation-name:wobble;}@keyframes jello{from,11.1%,to{transform:none;}22.2%{transform:skewX(-12.5deg) skewY(-12.5deg);}33.3%{transform:skewX(6.25deg) skewY(6.25deg);}44.4%{transform:skewX(-3.125deg) skewY(-3.125deg);}55.5%{transform:skewX(1.5625deg) skewY(1.5625deg);}66.6%{transform:skewX(-0.78125deg) skewY(-0.78125deg);}77.7%{transform:skewX(0.390625deg) skewY(0.390625deg);}88.8%{transform:skewX(-0.1953125deg) skewY(-0.1953125deg);}}.jello{animation-name:jello;transform-origin:center;}@keyframes bounceIn{from,20%,40%,60%,80%,to{animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);}0%{opacity:0;transform:scale3d(.3,.3,.3);}20%{transform:scale3d(1.1,1.1,1.1);}40%{transform:scale3d(.9,.9,.9);}60%{opacity:1;transform:scale3d(1.03,1.03,1.03);}80%{transform:scale3d(.97,.97,.97);}to{opacity:1;transform:scale3d(1,1,1);}}.bounceIn{animation-name:bounceIn;}@keyframes bounceInDown{from,60%,75%,90%,to{animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);}0%{opacity:0;transform:translate3d(0,-3000px,0);}60%{opacity:1;transform:translate3d(0,25px,0);}75%{transform:translate3d(0,-10px,0);}90%{transform:translate3d(0,5px,0);}to{transform:none;}}.bounceInDown{animation-name:bounceInDown;}@keyframes bounceInLeft{from,60%,75%,90%,to{animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);}0%{opacity:0;transform:translate3d(-3000px,0,0);}60%{opacity:1;transform:translate3d(25px,0,0);}75%{transform:translate3d(-10px,0,0);}90%{transform:translate3d(5px,0,0);}to{transform:none;}}.bounceInLeft{animation-name:bounceInLeft;}@keyframes bounceInRight{from,60%,75%,90%,to{animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);}from{opacity:0;transform:translate3d(3000px,0,0);}60%{opacity:1;transform:translate3d(-25px,0,0);}75%{transform:translate3d(10px,0,0);}90%{transform:translate3d(-5px,0,0);}to{transform:none;}}.bounceInRight{animation-name:bounceInRight;}@keyframes bounceInUp{from,60%,75%,90%,to{animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);}from{opacity:0;transform:translate3d(0,3000px,0);}60%{opacity:1;transform:translate3d(0,-20px,0);}75%{transform:translate3d(0,10px,0);}90%{transform:translate3d(0,-5px,0);}to{transform:translate3d(0,0,0);}}.bounceInUp{animation-name:bounceInUp;}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}.fadeIn{animation-name:fadeIn;}@keyframes fadeOut{from{opacity:1;}to{opacity:0;}}.fadeOut{animation-name:fadeOut;}@keyframes flipInX{from{transform:perspective(400px) rotate3d(1,0,0,90deg);animation-timing-function:ease-in;opacity:0;}40%{transform:perspective(400px) rotate3d(1,0,0,-20deg);animation-timing-function:ease-in;}60%{transform:perspective(400px) rotate3d(1,0,0,10deg);opacity:1;}80%{transform:perspective(400px) rotate3d(1,0,0,-5deg);}to{transform:perspective(400px);}}.flipInX{backface-visibility:visible !important;animation-name:flipInX;}@keyframes flipInY{from{transform:perspective(400px) rotate3d(0,1,0,90deg);animation-timing-function:ease-in;opacity:0;}40%{transform:perspective(400px) rotate3d(0,1,0,-20deg);animation-timing-function:ease-in;}60%{transform:perspective(400px) rotate3d(0,1,0,10deg);opacity:1;}80%{transform:perspective(400px) rotate3d(0,1,0,-5deg);}to{transform:perspective(400px);}}.flipInY{backface-visibility:visible !important;animation-name:flipInY;}@keyframes spinning{0%{transform:rotate(0deg);}100%{transform:rotate(359deg);}}@keyframes spinning-reverse{0%{transform:rotate(359deg);}100%{transform:rotate(0deg);}}.spinning{animation-name:spinning;animation-timing-function:linear;}.spinning-reverse{animation-name:spinning-reverse;animation-timing-function:linear;}@keyframes rotateIn{from{transform-origin:center;transform:rotate3d(0,0,1,-200deg);opacity:0;}to{transform-origin:center;transform:none;opacity:1;}}.rotateIn{animation-name:rotateIn;}@keyframes rotateInDownLeft{from{transform-origin:left bottom;transform:rotate3d(0,0,1,-45deg);opacity:0;}to{transform-origin:left bottom;transform:none;opacity:1;}}.rotateInDownLeft{animation-name:rotateInDownLeft;}@keyframes rotateInDownRight{from{transform-origin:right bottom;transform:rotate3d(0,0,1,45deg);opacity:0;}to{transform-origin:right bottom;transform:none;opacity:1;}}.rotateInDownRight{animation-name:rotateInDownRight;}@keyframes rotateInUpLeft{from{transform-origin:left bottom;transform:rotate3d(0,0,1,45deg);opacity:0;}to{transform-origin:left bottom;transform:none;opacity:1;}}.rotateInUpLeft{animation-name:rotateInUpLeft;}@keyframes rotateInUpRight{from{transform-origin:right bottom;transform:rotate3d(0,0,1,-90deg);opacity:0;}to{transform-origin:right bottom;transform:none;opacity:1;}}.rotateInUpRight{animation-name:rotateInUpRight;}@keyframes rollIn{from{opacity:0;transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg);}to{opacity:1;transform:none;}}.rollIn{animation-name:rollIn;}@keyframes zoomIn{from{opacity:0;transform:scale3d(.3,.3,.3);}50%{opacity:1;}}.zoomIn{animation-name:zoomIn;}@keyframes zoomInDown{from{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);animation-timing-function:cubic-bezier(0.550,0.055,0.675,0.190);}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,60px,0);animation-timing-function:cubic-bezier(0.175,0.885,0.320,1);}}.zoomInDown{animation-name:zoomInDown;}@keyframes zoomInLeft{from{opacity:0;transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);animation-timing-function:cubic-bezier(0.550,0.055,0.675,0.190);}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(10px,0,0);animation-timing-function:cubic-bezier(0.175,0.885,0.320,1);}}.zoomInLeft{animation-name:zoomInLeft;}@keyframes zoomInRight{from{opacity:0;transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);animation-timing-function:cubic-bezier(0.550,0.055,0.675,0.190);}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);animation-timing-function:cubic-bezier(0.175,0.885,0.320,1);}}.zoomInRight{animation-name:zoomInRight;}@keyframes zoomInUp{from{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);animation-timing-function:cubic-bezier(0.550,0.055,0.675,0.190);}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);animation-timing-function:cubic-bezier(0.175,0.885,0.320,1);}}.zoomInUp{animation-name:zoomInUp;}@keyframes slideInDown{from{transform:translate3d(0,-100%,0);visibility:visible;}to{transform:translate3d(0,0,0);}}.slideInDown{animation-name:slideInDown;}@keyframes slideInLeft{from{transform:translate3d(-100%,0,0);visibility:visible;}to{transform:translate3d(0,0,0);}}.slideInLeft{animation-name:slideInLeft;}@keyframes slideInRight{from{transform:translate3d(100%,0,0);visibility:visible;}to{transform:translate3d(0,0,0);}}.slideInRight{animation-name:slideInRight;}@keyframes slideInUp{from{transform:translate3d(0,100%,0);visibility:visible;}to{transform:translate3d(0,0,0);}}.slideInUp{animation-name:slideInUp;}@keyframes lightSpeedIn{from{transform:translate3d(100%,0,0) skewX(-30deg);opacity:0;}60%{transform:skewX(20deg);opacity:1;}80%{transform:skewX(-5deg);opacity:1;}to{transform:none;opacity:1;}}.lightSpeedIn{animation-name:lightSpeedIn;animation-timing-function:ease-out;}"]),g=(0,o.AH)(['--duration:5s;--easing:linear;--c-color-1:#61acff;--c-color-2:#0058f7;--c-color-3:#1684FC;--c-color-4:#88eafe;@keyframes circle-1{33%{transform:translate(0px,10px);}66%{transform:translate(5px,42px);}}@keyframes circle-2{33%{transform:translate(34px,-6px);}66%{transform:translate(30px,-32px);}}@keyframes circle-3{33%{transform:translate(8px,8px);}66%{transform:translate(5px,2px);}}@keyframes circle-4{33%{transform:translate(32px,-8px);}66%{transform:translate(49px,-5px);}}@keyframes circle-5{33%{transform:translate(36px,18px);}66%{transform:translate(16px,-20px);}}@keyframes circle-6{33%{transform:translate(12px,-10px);}66%{transform:translate(32px,-36px);}}@keyframes circle-7{33%{transform:translate(3px,18px);}66%{transform:translate(8px,-40px);}}@keyframes circle-8{33%{transform:translate(8px,-2px);}66%{transform:translate(24px,-12px);}}@keyframes circle-9{33%{transform:translate(8px,-8px);}66%{transform:translate(34px,-5px);}}@keyframes circle-10{33%{transform:translate(28px,12px);}66%{transform:translate(42px,18px);}}@keyframes circle-11{33%{transform:translate(2px,3px);}66%{transform:translate(28px,12px);}}@keyframes circle-12{33%{transform:translate(24px,0px);}66%{transform:translate(26px,-21px);}}@keyframes opacity{100%{opacity:0;}}position:relative;overflow:hidden;&:before{content:"";pointer-events:none;position:absolute;z-index:1;left:0;top:0;right:0;bottom:0;border-radius:6px;}span{z-index:2;}.circle{position:absolute;left:0;top:0;width:16px;height:20px;border-radius:50%;filter:blur(var(--blur,6px));background:var(--background,transparent);transform:translate(var(--x,0),var(--y,0));animation:var(--animation,none) var(--duration) var(--easing) infinite;}.circle.circle-1,.circle.circle-9,.circle.circle-10{--background:var(--c-color-4);}.circle.circle-3,.circle.circle-4{--background:var(--c-color-2);--blur:5px;}.circle.circle-5,.circle.circle-6{--background:var(--c-color-3);}.circle.circle-2,.circle.circle-7,.circle.circle-8,.circle.circle-11,.circle.circle-12{--background:var(--c-color-1);}.circle.circle-1{--x:0;--y:-20px;--animation:circle-1;}.circle.circle-2{--x:40px;--y:5px;--animation:circle-2;}.circle.circle-3{--x:-6px;--y:-9px;--animation:circle-3;}.circle.circle-4{--x:40px;--y:-8px;--animation:circle-4;}.circle.circle-5{--x:5px;--y:-3px;--animation:circle-5;}.circle.circle-6{--x:24px;--y:10px;--animation:circle-6;}.circle.circle-7{--x:0px;--y:10px;--animation:circle-7;}.circle.circle-8{--x:18px;--y:-3px;--animation:circle-8;}.circle.circle-9{--x:0px;--y:-5px;--animation:circle-9;}.circle.circle-10{--x:20px;--y:6px;--animation:circle-10;}.circle.circle-11{--x:-8px;--y:-9px;--animation:circle-11;}.circle.circle-12{--blur:8px;--x:22px;--y:10px;--animation:circle-12;}.animation-list.is-hidding{animation:opacity var(--duration) var(--easing) forwards;}'])},50654:(Et,ke,e)=>{"use strict";e.d(ke,{K:()=>m});var o=e(21676);const m=(0,o.DU)(['[role~="tooltip"]{position:relative;}[role~="tooltip"]::before,[role~="tooltip"]::after{transform:translate3d(0,0,0);-webkit-backface-visibility:hidden;backface-visibility:hidden;will-change:transform;opacity:0;pointer-events:none;position:absolute;box-sizing:border-box;z-index:10;transform-origin:top;}[role~="tooltip"]::after{background:',";border-radius:2px;color:",';content:attr(aria-label);font-size:var(--microtip-font-size,13px);font-weight:var(--microtip-font-weight,normal);text-transform:var(--microtip-text-transform,none);padding:3px 7px;white-space:nowrap;box-sizing:content-box;}[role~="tooltip"]:hover::before,[role~="tooltip"]:hover::after,[role~="tooltip"]:focus::before,[role~="tooltip"]:focus::after{opacity:1;pointer-events:auto;}[role~="tooltip"][data-microtip-position|="top"]::before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%280%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;height:6px;width:18px;margin-bottom:5px;}[role~="tooltip"][data-microtip-position|="top"]::after{margin-bottom:11px;}[role~="tooltip"][data-microtip-position|="top"]::before{transform:translate3d(-50%,0,0);bottom:100%;left:50%;}[role~="tooltip"][data-microtip-position|="top"]:hover::before{transform:translate3d(-50%,-5px,0);}[role~="tooltip"][data-microtip-position|="top"]::after{transform:translate3d(-50%,0,0);bottom:100%;left:50%;}[role~="tooltip"][data-microtip-position="top"]:hover::after{transform:translate3d(-50%,-5px,0);}[role~="tooltip"][data-microtip-position="top-left"]::after{transform:translate3d(calc(-100% + 16px),0,0);bottom:100%;}[role~="tooltip"][data-microtip-position="top-left"]:hover::after{transform:translate3d(calc(-100% + 16px),-5px,0);}[role~="tooltip"][data-microtip-position="top-right"]::after{transform:translate3d(calc(0% + -16px),0,0);bottom:100%;}[role~="tooltip"][data-microtip-position="top-right"]:hover::after{transform:translate3d(calc(0% + -16px),-5px,0);}[role~="tooltip"][data-microtip-position|="bottom"]::before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%28180%2018%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;height:6px;width:18px;margin-top:5px;margin-bottom:0;}[role~="tooltip"][data-microtip-position|="bottom"]::after{margin-top:11px;}[role~="tooltip"][data-microtip-position|="bottom"]::before{transform:translate3d(-50%,-10px,0);bottom:auto;left:50%;top:100%;}[role~="tooltip"][data-microtip-position|="bottom"]:hover::before{transform:translate3d(-50%,0,0);}[role~="tooltip"][data-microtip-position|="bottom"]::after{transform:translate3d(-50%,-10px,0);top:100%;left:50%;}[role~="tooltip"][data-microtip-position="bottom"]:hover::after{transform:translate3d(-50%,0,0);}[role~="tooltip"][data-microtip-position="bottom-left"]::after{transform:translate3d(calc(-100% + 16px),-10px,0);top:100%;}[role~="tooltip"][data-microtip-position="bottom-left"]:hover::after{transform:translate3d(calc(-100% + 16px),0,0);}[role~="tooltip"][data-microtip-position="bottom-right"]::after{transform:translate3d(calc(0% + -16px),-10px,0);top:100%;}[role~="tooltip"][data-microtip-position="bottom-right"]:hover::after{transform:translate3d(calc(0% + -16px),0,0);}[role~="tooltip"][data-microtip-position="left"]::before,[role~="tooltip"][data-microtip-position="left"]::after{bottom:auto;left:auto;right:100%;top:50%;transform:translate3d(10px,-50%,0);}[role~="tooltip"][data-microtip-position="left"]::before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%28-90%2018%2018%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;height:18px;width:6px;margin-right:5px;margin-bottom:0;}[role~="tooltip"][data-microtip-position="left"]::after{margin-right:11px;}[role~="tooltip"][data-microtip-position="left"]:hover::before,[role~="tooltip"][data-microtip-position="left"]:hover::after{transform:translate3d(0,-50%,0);}[role~="tooltip"][data-microtip-position="right"]::before,[role~="tooltip"][data-microtip-position="right"]::after{bottom:auto;left:100%;top:50%;transform:translate3d(-10px,-50%,0);}[role~="tooltip"][data-microtip-position="right"]::before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%2890%206%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;height:18px;width:6px;margin-bottom:0;margin-left:5px;}[role~="tooltip"][data-microtip-position="right"]::after{margin-left:11px;}[role~="tooltip"][data-microtip-position="right"]:hover::before,[role~="tooltip"][data-microtip-position="right"]:hover::after{transform:translate3d(0,-50%,0);}[role~="tooltip"][data-microtip-size="small"]::after{white-space:initial;width:80px;}[role~="tooltip"][data-microtip-size="medium"]::after{white-space:initial;width:150px;}[role~="tooltip"][data-microtip-size="large"]::after{white-space:initial;width:260px;}'],g=>g.theme.color_tips_black,g=>g.theme.color_text_btn)},18087:(Et,ke,e)=>{"use strict";e.d(ke,{F:()=>b,R:()=>h});var o=e(26114),m=e(86634),g=e.n(m),l=e(46479),C=e(21676),T=e(95230),A=e(68496),k=e(53955),p=e(29601),r=e(86431),x=e(14941),f=e(57464);const u="loading",b=function(N){var z;N===void 0&&(N="");const S=document.createElement("div"),_=(z=(0,k.dP)())==null?void 0:z.ui.fixedLayout.preference.theme;S.id=u,S.style.backgroundColor=(0,A.t0)(T.kV[_||T.Sx.LIGHT]),document.body.insertBefore(S,document.body.firstChild),(0,o.createRoot)(S).render((0,f.jsxs)(E,{children:[(0,f.jsxs)("div",{className:"loading-container",children:[(0,f.jsx)(l.Tw,{className:g()("mb-loading",{noName:!N})}),(0,r.X)()&&(0,f.jsx)(x.n,{className:g()("chris-icon",{noName:!N})})]}),N&&(0,f.jsxs)("span",{id:"loading-text",children:[(0,p.k)()?"\u6B63\u5728\u52A0\u8F7D":"Loading","... ",N]})]}))},h=()=>{const N=document.getElementById(u);N&&(N.style.display="none")},E=C.Ay.div.withConfig({displayName:"loading__StyledLoadingContainer",componentId:"sc-wdqg9m-0"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;.loading-container{position:relative;width:100px;height:70px;display:flex;justify-content:center;align-items:center;.chris-icon{width:66px;height:44px;position:absolute;right:-48%;top:-10%;&.noName{right:-34%;top:-10%;}}.mb-loading{width:70px;height:70px;&:not(.noName){}&.noName{position:absolute;top:50%;left:50%;margin-top:-50px;margin-left:-50px;}}}#loading-text{margin-top:10px;color:rgba(0,0,0,0.9);font-size:16px;}"])},16708:function(){(function(Et,ke){Et.Shake=ke(Et,Et.document)})(typeof window<"u"?window:this,function(Et,ke){"use strict";function e(o){if(this.hasDeviceMotion="ondevicemotion"in Et,this.options={threshold:15,timeout:1e3},typeof o=="object")for(var m in o)o.hasOwnProperty(m)&&(this.options[m]=o[m]);if(this.lastTime=new Date,this.lastX=null,this.lastY=null,this.lastZ=null,typeof ke.CustomEvent=="function")this.event=new ke.CustomEvent("shake",{bubbles:!0,cancelable:!0});else if(typeof ke.createEvent=="function")this.event=ke.createEvent("Event"),this.event.initEvent("shake",!0,!0);else return!1}return e.prototype.reset=function(){this.lastTime=new Date,this.lastX=null,this.lastY=null,this.lastZ=null},e.prototype.start=function(){this.reset(),this.hasDeviceMotion&&Et.addEventListener("devicemotion",this,!1)},e.prototype.stop=function(){this.hasDeviceMotion&&Et.removeEventListener("devicemotion",this,!1),this.reset()},e.prototype.devicemotion=function(o){var m=o.accelerationIncludingGravity;if(m){var g,l,C=0,T=0,A=0;if(this.lastX===null&&this.lastY===null&&this.lastZ===null){this.lastX=m.x,this.lastY=m.y,this.lastZ=m.z;return}C=Math.abs(this.lastX-m.x),T=Math.abs(this.lastY-m.y),A=Math.abs(this.lastZ-m.z),(C>this.options.threshold&&T>this.options.threshold||C>this.options.threshold&&A>this.options.threshold||T>this.options.threshold&&A>this.options.threshold)&&(g=new Date,l=g.getTime()-this.lastTime.getTime(),l>this.options.timeout&&(Et.dispatchEvent(this.event),this.lastTime=new Date)),this.lastX=m.x,this.lastY=m.y,this.lastZ=m.z}},e.prototype.handleEvent=function(o){if(typeof this[o.type]=="function")return this[o.type](o)},e})},80766:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>R});var o=e(66748),m=e.n(o),g=e(51044),l=e(21676);function C(V,O){if(!(V instanceof O))throw new TypeError("Cannot call a class as a function")}function T(V,O){for(var Ce=0;Ce<O.length;Ce++){var ae=O[Ce];ae.enumerable=ae.enumerable||!1,ae.configurable=!0,"value"in ae&&(ae.writable=!0),Object.defineProperty(V,ae.key,ae)}}function A(V,O,Ce){return O&&T(V.prototype,O),Ce&&T(V,Ce),V}function k(V,O,Ce){return O in V?Object.defineProperty(V,O,{value:Ce,enumerable:!0,configurable:!0,writable:!0}):V[O]=Ce,V}function p(V){for(var O=1;O<arguments.length;O++){var Ce=arguments[O]!=null?arguments[O]:{},ae=Object.keys(Ce);typeof Object.getOwnPropertySymbols=="function"&&(ae=ae.concat(Object.getOwnPropertySymbols(Ce).filter(function(q){return Object.getOwnPropertyDescriptor(Ce,q).enumerable}))),ae.forEach(function(q){k(V,q,Ce[q])})}return V}function r(V,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function");V.prototype=Object.create(O&&O.prototype,{constructor:{value:V,writable:!0,configurable:!0}}),O&&f(V,O)}function x(V){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(Ce){return Ce.__proto__||Object.getPrototypeOf(Ce)},x(V)}function f(V,O){return f=Object.setPrototypeOf||function(ae,q){return ae.__proto__=q,ae},f(V,O)}function u(V){if(V===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return V}function b(V,O){return O&&(typeof O=="object"||typeof O=="function")?O:u(V)}var h=l.Ay.div.withConfig({displayName:"StyledRect",componentId:"sc-1uso172-0"})(["position:absolute;border:1px solid #eb5648;.square{position:absolute;width:7px;height:7px;background:white;border:1px solid #eb5648;border-radius:1px;}.resizable-handler{position:absolute;width:14px;height:14px;cursor:pointer;z-index:1;&.tl,&.t,&.tr{top:-7px;}&.tl,&.l,&.bl{left:-7px;}&.bl,&.b,&.br{bottom:-7px;}&.br,&.r,&.tr{right:-7px;}&.l,&.r{margin-top:-7px;}&.t,&.b{margin-left:-7px;}}.rotate{position:absolute;left:50%;top:-26px;width:18px;height:18px;margin-left:-9px;display:flex;justify-content:center;align-items:center;cursor:pointer;}.t,.tl,.tr{top:-3px;}.b,.bl,.br{bottom:-3px;}.r,.tr,.br{right:-3px;}.tl,.l,.bl{left:-3px;}.l,.r{top:50%;margin-top:-3px;}.t,.b{left:50%;margin-left:-3px;}"]),E=function(O,Ce){return Math.sqrt(O*O+Ce*Ce)},N=function(O,Ce){var ae=O.x,q=O.y,K=Ce.x,xe=Ce.y,te=ae*K+q*xe,H=ae*xe-q*K,re=Math.atan2(H,te)/Math.PI*180;return(re+360)%360},z=function(O){return O*Math.PI/180},S=function(O){return Math.cos(z(O))},_=function(O){return Math.sin(z(O))},y=function(O,Ce,ae){var q=O+Ce;return q>ae?O=q:(Ce=ae-O,O=ae),{width:O,deltaW:Ce}},a=function(O,Ce,ae){var q=O+Ce;return q>ae?O=q:(Ce=ae-O,O=ae),{height:O,deltaH:Ce}},$=function(O,Ce,ae,q,K,xe,te){var H=Ce.width,re=Ce.height,be=Ce.centerX,Le=Ce.centerY,Ve=Ce.rotateAngle,Ne=H<0?-1:1,We=re<0?-1:1;switch(H=Math.abs(H),re=Math.abs(re),O){case"r":{var ze=y(H,ae,xe);H=ze.width,ae=ze.deltaW,K?(q=ae/K,re=H/K,be+=ae/2*S(Ve)-q/2*_(Ve),Le+=ae/2*_(Ve)+q/2*S(Ve)):(be+=ae/2*S(Ve),Le+=ae/2*_(Ve));break}case"tr":{q=-q;var ft=y(H,ae,xe);H=ft.width,ae=ft.deltaW;var mt=a(re,q,te);re=mt.height,q=mt.deltaH,K&&(ae=q*K,H=re*K),be+=ae/2*S(Ve)+q/2*_(Ve),Le+=ae/2*_(Ve)-q/2*S(Ve);break}case"br":{var i=y(H,ae,xe);H=i.width,ae=i.deltaW;var gt=a(re,q,te);re=gt.height,q=gt.deltaH,K&&(ae=q*K,H=re*K),be+=ae/2*S(Ve)-q/2*_(Ve),Le+=ae/2*_(Ve)+q/2*S(Ve);break}case"b":{var Je=a(re,q,te);re=Je.height,q=Je.deltaH,K?(ae=q*K,H=re*K,be+=ae/2*S(Ve)-q/2*_(Ve),Le+=ae/2*_(Ve)+q/2*S(Ve)):(be-=q/2*_(Ve),Le+=q/2*S(Ve));break}case"bl":{ae=-ae;var Pt=y(H,ae,xe);H=Pt.width,ae=Pt.deltaW;var bt=a(re,q,te);re=bt.height,q=bt.deltaH,K&&(re=H/K,q=ae/K),be-=ae/2*S(Ve)+q/2*_(Ve),Le-=ae/2*_(Ve)-q/2*S(Ve);break}case"l":{ae=-ae;var qt=y(H,ae,xe);H=qt.width,ae=qt.deltaW,K?(re=H/K,q=ae/K,be-=ae/2*S(Ve)+q/2*_(Ve),Le-=ae/2*_(Ve)-q/2*S(Ve)):(be-=ae/2*S(Ve),Le-=ae/2*_(Ve));break}case"tl":{ae=-ae,q=-q;var pt=y(H,ae,xe);H=pt.width,ae=pt.deltaW;var $t=a(re,q,te);re=$t.height,q=$t.deltaH,K&&(H=re*K,ae=q*K),be-=ae/2*S(Ve)-q/2*_(Ve),Le-=ae/2*_(Ve)+q/2*S(Ve);break}case"t":{q=-q;var go=a(re,q,te);re=go.height,q=go.deltaH,K?(H=re*K,ae=q*K,be+=ae/2*S(Ve)+q/2*_(Ve),Le+=ae/2*_(Ve)-q/2*S(Ve)):(be+=q/2*_(Ve),Le-=q/2*S(Ve));break}}return{position:{centerX:be,centerY:Le},size:{width:H*Ne,height:re*We}}},ce=function(O){var Ce=O.centerX,ae=O.centerY,q=O.width,K=O.height,xe=O.rotateAngle;return{top:ae-K/2,left:Ce-q/2,width:q,height:K,rotateAngle:xe}},de=function(O){var Ce=O.top,ae=O.left,q=O.width,K=O.height,xe=O.rotateAngle;return{position:{centerX:ae+q/2,centerY:Ce+K/2},size:{width:q,height:K},transform:{rotateAngle:xe}}},fe={n:"t",s:"b",e:"r",w:"l",ne:"tr",nw:"tl",se:"br",sw:"bl"},se={RESIZE_ARROW_NORMAL:"url(\"data:image/svg+xml,%3Csvg width='31' height='31' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cfilter x='-52.3%25' y='-175.5%25' width='204.6%25' height='450.9%25' filterUnits='objectBoundingBox' id='a'%3E%3CfeOffset dy='1' in='SourceAlpha' result='shadowOffsetOuter1'/%3E%3CfeGaussianBlur stdDeviation='1.5' in='shadowOffsetOuter1' result='shadowBlurOuter1'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0' in='shadowBlurOuter1' result='shadowMatrixOuter1'/%3E%3CfeMerge%3E%3CfeMergeNode in='shadowMatrixOuter1'/%3E%3CfeMergeNode in='SourceGraphic'/%3E%3C/feMerge%3E%3C/filter%3E%3C/defs%3E%3Cg fill='%23000' fill-rule='nonzero' transform='rotate(__absAngle__,16,16)' %3E%3Cg filter='url(%23a)' stroke='%23FFF' transform='rotate(90 5.5 12.5)'%3E%3Crect x='7.5' y='.5' width='2' height='4' rx='.5'/%3E%3Cpath d='M1.5 1.5h14v2h-14z'/%3E%3Cpath d='M-.607 2.72L3.09-.82l.488 6.39L-.607 2.72zM17.607 2.28L13.91 5.82l-.488-6.39 4.185 2.852z'/%3E%3C/g%3E%3Cg transform='rotate(90 5.5 12.5)'%3E%3Crect x='8' y='1' width='1' height='3' rx='.5'/%3E%3Cpath d='M2 2h13v1H2z'/%3E%3Cpath d='M.184 2.346L2.672.273A.2.2 0 013 .427v4.146a.2.2 0 01-.328.154L.184 2.654a.2.2 0 010-.308zM16.816 2.654l-2.488 2.073A.2.2 0 0114 4.573V.427a.2.2 0 01.328-.154l2.488 2.073a.2.2 0 010 .308z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E\") 16 16,auto"},J={n:0,s:0,e:90,w:90,ne:45,nw:135,se:135,sw:45},ve=function(V){r(O,V);function O(){var Ce,ae;C(this,O);for(var q=arguments.length,K=new Array(q),xe=0;xe<q;xe++)K[xe]=arguments[xe];return ae=b(this,(Ce=x(O)).call.apply(Ce,[this].concat(K))),k(u(u(ae)),"setElementRef",function(te){ae.$element=te}),k(u(u(ae)),"startDrag",function(te){var H=te.clientX,re=te.clientY;ae.props.onDragStart&&ae.props.onDragStart(),ae._isMouseDown=!0;var be=function(Ne){if(ae._isMouseDown){Ne.stopImmediatePropagation();var We=Ne.clientX,ze=Ne.clientY,ft=We-H,mt=ze-re;ae.props.onDrag(ft,mt),H=We,re=ze}},Le=function Ve(){document.removeEventListener("mousemove",be),document.removeEventListener("mouseup",Ve),ae._isMouseDown&&(ae._isMouseDown=!1,ae.props.onDragEnd&&ae.props.onDragEnd())};document.addEventListener("mousemove",be),document.addEventListener("mouseup",Le)}),k(u(u(ae)),"startRotate",function(te){if(te.button===0){var H=te.clientX,re=te.clientY,be=ae.props.styles.transform.rotateAngle,Le=ae.$element.getBoundingClientRect(),Ve={x:Le.left+Le.width/2,y:Le.top+Le.height/2},Ne={x:H-Ve.x,y:re-Ve.y};ae.props.onRotateStart&&ae.props.onRotateStart(),ae._isMouseDown=!0;var We=function(mt){if(ae._isMouseDown){mt.stopImmediatePropagation();var i=mt.clientX,gt=mt.clientY,Je={x:i-Ve.x,y:gt-Ve.y},Pt=N(Ne,Je);ae.props.onRotate(Pt,be)}},ze=function ft(){document.removeEventListener("mousemove",We),document.removeEventListener("mouseup",ft),ae._isMouseDown&&(ae._isMouseDown=!1,ae.props.onRotateEnd&&ae.props.onRotateEnd())};document.addEventListener("mousemove",We),document.addEventListener("mouseup",ze)}}),k(u(u(ae)),"startResize",function(te,H){if(te.button===0){document.body.style.cursor=H;var re=ae.props,be=re.styles,Le=be.position,Ve=Le.centerX,Ne=Le.centerY,We=be.size,ze=We.width,ft=We.height,mt=re.cursorAngle,i=te.clientX,gt=te.clientY,Je={width:ze,height:ft,centerX:Ve,centerY:Ne,cursorAngle:mt},Pt=te.target.getAttribute("class").split(" ")[0];ae.props.onResizeStart&&ae.props.onResizeStart(),ae._isMouseDown=!0;var bt=function($t){if(ae._isMouseDown){$t.stopImmediatePropagation();var go=$t.clientX,Co=$t.clientY,Tt=go-i,mo=Co-gt,jo=Math.atan2(mo,Tt),Kt=E(Tt,mo),Ft=$t.shiftKey;ae.props.onResize(Kt,jo,Je,Pt,Ft)}},qt=function pt(){document.body.style.cursor="auto",document.removeEventListener("mousemove",bt),document.removeEventListener("mouseup",pt),ae._isMouseDown&&(ae._isMouseDown=!1,ae.props.onResizeEnd&&ae.props.onResizeEnd())};document.addEventListener("mousemove",bt),document.addEventListener("mouseup",qt)}}),ae}return A(O,[{key:"render",value:function(){var ae=this,q=this.props,K=q.styles,xe=K.position,te=xe.centerX,H=xe.centerY,re=K.size,be=re.width,Le=re.height,Ve=K.transform.rotateAngle,Ne=q.zoomable,We=q.rotatable,ze=q.cursorAngle,ft={width:Math.abs(be),height:Math.abs(Le),transform:"rotate(".concat(Ve,"deg)"),left:te-Math.abs(be)/2,top:H-Math.abs(Le)/2},mt=Ne.split(",").map(function(i){return i.trim()}).filter(function(i){return i});return g.createElement(h,{ref:this.setElementRef,onMouseDown:this.startDrag,className:"rect single-resizer",style:ft},We&&g.createElement("div",{className:"rotate",onMouseDown:this.startRotate},g.createElement("svg",{width:"14",height:"14",xmlns:"http://www.w3.org/2000/svg"},g.createElement("path",{d:"M10.536 3.464A5 5 0 1 0 11 10l1.424 1.425a7 7 0 1 1-.475-9.374L13.659.34A.2.2 0 0 1 14 .483V5.5a.5.5 0 0 1-.5.5H8.483a.2.2 0 0 1-.142-.341l2.195-2.195z",fill:"#eb5648",fillRule:"nonzero"}))),mt.map(function(i){var gt=ze+J[i],Je=se.RESIZE_ARROW_NORMAL.replace("__absAngle__","".concat(gt));return g.createElement("div",{key:i,style:{cursor:Je},className:"".concat(fe[i]," resizable-handler"),onMouseDown:function(bt){return ae.startResize(bt,Je)}})}),mt.map(function(i){return g.createElement("div",{key:i,className:"".concat(fe[i]," square")})}))}}]),O}(g.PureComponent);k(ve,"propTypes",{styles:m().object,zoomable:m().string,rotatable:m().bool,onResizeStart:m().func,onResize:m().func,onResizeEnd:m().func,onRotateStart:m().func,onRotate:m().func,onRotateEnd:m().func,onDragStart:m().func,onDrag:m().func,onDragEnd:m().func,parentRotateAngle:m().number,cursorAngle:m().number});var D=function(V){r(O,V);function O(){var Ce,ae;C(this,O);for(var q=arguments.length,K=new Array(q),xe=0;xe<q;xe++)K[xe]=arguments[xe];return ae=b(this,(Ce=x(O)).call.apply(Ce,[this].concat(K))),k(u(u(ae)),"handleRotate",function(te,H){if(ae.props.onRotate){var re=Math.round(H+te);re>=360?re-=360:re<0&&(re+=360),re>356||re<4?re=0:re>86&&re<94?re=90:re>176&&re<184?re=180:re>266&&re<274&&(re=270),ae.props.onRotate(re)}}),k(u(u(ae)),"handleResize",function(te,H,re,be,Le){if(ae.props.onResize){var Ve=ae.props,Ne=Ve.aspectRatio,We=Ve.minWidth,ze=Ve.minHeight,ft=Ve.parentRotateAngle,mt=Ve.cursorAngle,i=H-z(mt+ft),gt=te*Math.cos(i),Je=te*Math.sin(i),Pt=Le&&!Ne?re.width/re.height:Ne,bt=$(be,p({},re,{rotateAngle:mt}),gt,Je,Pt,We,ze),qt=bt.position,pt=qt.centerX,$t=qt.centerY,go=bt.size,Co=go.width,Tt=go.height;ae.props.onResize(ce({centerX:pt,centerY:$t,width:Co,height:Tt,rotateAngle:mt}),Le,be)}}),k(u(u(ae)),"handleDrag",function(te,H){ae.props.onDrag&&ae.props.onDrag(te,H)}),ae}return A(O,[{key:"render",value:function(){var ae=this.props,q=ae.top,K=ae.left,xe=ae.width,te=ae.height,H=ae.rotateAngle,re=ae.parentRotateAngle,be=ae.zoomable,Le=ae.rotatable,Ve=ae.onRotate,Ne=ae.onResizeStart,We=ae.onResizeEnd,ze=ae.onRotateStart,ft=ae.onRotateEnd,mt=ae.onDragStart,i=ae.onDragEnd,gt=ae.cursorAngle,Je=de({top:q,left:K,width:xe,height:te,rotateAngle:H});return g.createElement(ve,{styles:Je,zoomable:be,rotatable:!!(Le&&Ve),parentRotateAngle:re,cursorAngle:gt,onResizeStart:Ne,onResize:this.handleResize,onResizeEnd:We,onRotateStart:ze,onRotate:this.handleRotate,onRotateEnd:ft,onDragStart:mt,onDrag:this.handleDrag,onDragEnd:i})}}]),O}(g.Component);k(D,"propTypes",{left:m().number.isRequired,top:m().number.isRequired,width:m().number.isRequired,height:m().number.isRequired,rotatable:m().bool,rotateAngle:m().number,parentRotateAngle:m().number,zoomable:m().string,minWidth:m().number,minHeight:m().number,aspectRatio:m().oneOfType([m().number,m().bool]),onRotateStart:m().func,onRotate:m().func,onRotateEnd:m().func,onResizeStart:m().func,onResize:m().func,onResizeEnd:m().func,onDragStart:m().func,onDrag:m().func,onDragEnd:m().func,cursorAngle:m().number}),k(D,"defaultProps",{parentRotateAngle:0,rotateAngle:0,cursorAngle:0,rotatable:!0,zoomable:"",minWidth:10,minHeight:10});const R=D},17036:(Et,ke,e)=>{"use strict";e.d(ke,{G6:()=>C,Gg:()=>l,WL:()=>T});const{Blob:o,FileReader:m}=window,g=A=>k=>new Promise((p,r)=>{const x=new m;x.addEventListener("error",r),x.addEventListener("load",()=>p(x.result)),x[A](k)}),l=g("readAsText"),C=g("readAsDataURL"),T=g("readAsArrayBuffer")},72949:(Et,ke,e)=>{"use strict";e.d(ke,{G3:()=>m});const o=(r,x)=>(r.message&&r.stack&&(r.stack=r.stack.replace(r.message,x)),r.message=x,r),m=r=>{throw console.warn(r),r},g=function(r,x){try{for(var f=arguments.length,u=new Array(f>2?f-2:0),b=2;b<f;b++)u[b-2]=arguments[b];return x(...u)}catch(h){return r}},l=async function(r,x){try{for(var f=arguments.length,u=new Array(f>2?f-2:0),b=2;b<f;b++)u[b-2]=arguments[b];return await x(...u)}catch(h){return r}},C=function(r){let x,f;try{for(var u=arguments.length,b=new Array(u>1?u-1:0),h=1;h<u;h++)b[h-1]=arguments[h];x=r(...b)}catch(E){f=E||new Error}return{result:x,error:f}},T=async function(r){let x,f;try{for(var u=arguments.length,b=new Array(u>1?u-1:0),h=1;h<u;h++)b[h-1]=arguments[h];x=await r(...b)}catch(E){f=E||new Error}return{result:x,error:f}},A=r=>r.then(k,p),k=r=>({result:r,error:void 0}),p=r=>({result:void 0,error:r||new Error})},93698:(Et,ke,e)=>{"use strict";e.d(ke,{O9:()=>N,Y_:()=>u,Yj:()=>C,at:()=>J,it:()=>E,nd:()=>p});var o=e(57947),m=e(68380);const g=(V,O,Ce)=>{throw new Error("[verify|"+V+"]"+(O?" "+O+";":"")+" "+(Ce||""))},l=(V,O)=>(Ce,ae)=>{O(Ce)||g(V,ae,"get: "+(0,m.q0)(Ce))},C=l("String",o.Kg),T=l("Boolean",o.Lm),A=l("Truthy",o.zz),k=l("Number",o.Et),p=l("Integer",o.Fq),r=l("RegExp",o.gd),x=l("ArrayBuffer",o.mw),f=l("ObjectAlike",o.sw),u=l("BasicObject",o.wG),b=(V,O,Ce)=>{isObjectKey(V,O)||g("ObjectKey",Ce,"expect to have key: "+O)},h=(V,O,Ce)=>{isObjectContain(V,O)||g("ObjectContain",Ce,"expect to contain: "+describe(O))},E=l("Array",o.oI),N=(V,O,Ce)=>{(0,o.ut)(V,O)||g("ArrayLength",Ce,"expect length: "+O+", get: "+((0,o.oI)(V)?V.length:(0,m.q0)(V)))},z=l("Function",o.TP),S=l("PromiseAlike",o.qT),_=(V,O,Ce)=>{isOneOf(V,O)||g("OneOf",Ce,"expect one of: ["+O+"], get: "+describe(V))},y=(V,O)=>{isFunctionThrow(V)||g("DoThrow",O)},a=(V,O)=>{isFunctionThrow(V)&&g("DoNotThrow",O)},$=async(V,O)=>{await isFunctionThrowAsync(V)||g("DoThrowAsync",O)},ce=async(V,O)=>{await isFunctionThrowAsync(V)&&g("DoNotThrowAsync",O)},de=(V,O)=>"\nactual: "+(0,m.q0)(V)+"\nexpect: "+(0,m.q0)(O),fe=(V,O,Ce)=>{isStrictEqual(V,O)||g("StrictEqual",Ce,de(V,O))},se=(V,O,Ce)=>{isStrictEqual(V,O)&&g("NotStrictEqual",Ce,de(V,O))},J=function(V,O,Ce){Ce===void 0&&(Ce="should stringify equal"),(0,o.gI)(V,O)||g("StringifyEqual",Ce,de(V,O))},ve=function(V,O,Ce){Ce===void 0&&(Ce="should not stringify equal"),isStringifyEqual(V,O)&&g("NotStringifyEqual",Ce,de(V,O))},D=(V,O,Ce)=>{V&&V.includes&&V.includes(O)||g("Includes",Ce,"expect "+describe(V)+" to include "+O)},R=(V,O,Ce)=>{V&&V.includes&&!V.includes(O)||g("NotIncludes",Ce,"expect "+describe(V)+" to not include "+O)}},30973:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>u});var o=e(66748),m=e.n(o),g=e(51044),l=e(86634),C=e.n(l),T=e(21676);const A=T.Ay.div.withConfig({displayName:"styles__StyledBorderResizer",componentId:"sc-13o263g-0"})(["position:absolute;z-index:3;.v-resizer{z-index:11;}&.top,&.bottom{left:0;width:100%;height:3px;cursor:ns-resize;}&.top{top:1px;}&.bottom{bottom:-1px;}&.left,&.right{top:0;width:3px;height:100%;cursor:ew-resize;}&.left{left:1px;}&.right{right:0;}&:hover,&.active{background:#ff6161;}&.none-active-style{&:hover,&.active{background:none;}}"]),k=(0,T.DU)([".body-ns-resize{cursor:ns-resize !important;width:100%;height:100%;position:fixed;z-index:10000;}.body-ew-resize{cursor:ew-resize !important;width:100%;height:100%;position:fixed;z-index:10000;}"]);var p=e(57464);function r(b,h,E){return(h=x(h))in b?Object.defineProperty(b,h,{value:E,enumerable:!0,configurable:!0,writable:!0}):b[h]=E,b}function x(b){var h=f(b,"string");return typeof h=="symbol"?h:h+""}function f(b,h){if(typeof b!="object"||!b)return b;var E=b[Symbol.toPrimitive];if(E!==void 0){var N=E.call(b,h||"default");if(typeof N!="object")return N;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(b)}class u extends g.Component{constructor(){super(),r(this,"handleDown",h=>{h.preventDefault();const{placement:E,value:N,onResizeStart:z,onResizeEnd:S,onChange:_}=this.props,y=["left","right"].includes(E),a=y?h.clientX:h.clientY,$=["bottom","right"].includes(E)?1:-1;this.setState({active:!0}),z();const ce=document.createElement("div");document.body.appendChild(ce),ce.classList.add(y?"body-ew-resize":"body-ns-resize");const de=se=>{const{min:J,max:ve}=this.props,R=((y?se.clientX:se.clientY)-a)*$,V=Math.max(Math.min(N+R,ve),J);_(V)},fe=()=>{ce.remove(),document.removeEventListener("mousemove",de),document.removeEventListener("mouseup",fe),this.setState({active:!1}),S()};document.addEventListener("mousemove",de),document.addEventListener("mouseup",fe)}),this.state={active:!1}}render(){const{placement:h,className:E}=this.props,{active:N}=this.state;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(A,{className:C()("border-resizer",E,h,{active:N}),onMouseDown:this.handleDown}),(0,p.jsx)(k,{})]})}}r(u,"propTypes",{placement:m().oneOf(["top","left","right","bottom"]),min:m().number,max:m().number,className:m().string,value:m().number,onChange:m().func,onResizeStart:m().func,onResizeEnd:m().func}),r(u,"defaultProps",{onResizeStart:()=>null,onResizeEnd:()=>null})},37931:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>p});var o=e(51044),m=e(21676);const g=m.Ay.div.withConfig({displayName:"styles__StyledBrowserPrompt",componentId:"sc-lp9kv4-0"})(["display:flex;flex-direction:row;align-items:center;justify-content:center;padding:6px 12px;z-Index:10;position:absolute;height:36px;min-width:460px;bottom:40px;left:50%;transform:translateX(-50%);background:#FFFFFF;box-shadow:0 2px 6px rgba(39,54,78,0.08),0 6px 12px rgba(39,54,78,0.05);border-radius:100px;pointer-events:auto;svg.tik{color:#FF9000;}p{height:12px;font-size:12px;line-height:12px;color:#333333;margin:0 10px;}a{color:#1684fc;&:hover{text-decoration:underline;}}.clickble{cursor:pointer;}.close-btn{width:24px;height:24px;display:flex;align-items:center;justify-content:center;cursor:pointer;svg{width:20px;height:20px;}&:hover{background:#F2F2F2;border-radius:4px;}&:active{background:#E5E5E5;border-radius:4px;}}"]);var l=e(10259),C=e(91500),T=e(90503),A=e(57464);const k="local_browser_prompt_show";function p(){if((0,l.H8)())return null;const x=Date.parse((0,C.Yt)(k,"",C.qW.String));return x&&x>Date.now()?null:(0,A.jsx)(r,{})}const r=()=>{const[x,f]=(0,o.useState)(!0),u=()=>{const b=new Date;b.setUTCDate(b.getUTCDate()+1),(0,C.a0)(k,b.toISOString(),C.qW.String),f(!1)};return x&&(0,A.jsxs)(g,{children:[(0,A.jsx)(T.A,{name:"sigh",className:"tik"}),(0,A.jsxs)("p",{children:["\u5F53\u524D\u6D4F\u89C8\u5668\u517C\u5BB9\u6027\u5DEE\uFF0C\u8BF7\u4F7F\u7528 ",(0,A.jsx)("a",{href:"https://www.google.cn/chrome/",target:"_blank",rel:"noreferrer",children:" Chrome \u6D4F\u89C8\u5668"}),"\u6216 ",(0,A.jsx)("a",{className:"clickble",href:"https://modao.cc/feature/downloads.html",target:"_blank",rel:"noreferrer",children:"\u4E0B\u8F7D\u58A8\u5200\u5BA2\u6237\u7AEF"})," \u4F7F\u7528"]}),(0,A.jsx)("div",{className:"close-btn",onClick:u,children:(0,A.jsx)(T.A,{name:"close_sm"})})]})}},84780:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>A});var o=e(66748),m=e.n(o),g=e(51044);function l(k,p,r){return(p=C(p))in k?Object.defineProperty(k,p,{value:r,enumerable:!0,configurable:!0,writable:!0}):k[p]=r,k}function C(k){var p=T(k,"string");return typeof p=="symbol"?p:p+""}function T(k,p){if(typeof k!="object"||!k)return k;var r=k[Symbol.toPrimitive];if(r!==void 0){var x=r.call(k,p||"default");if(typeof x!="object")return x;throw new TypeError("@@toPrimitive must return a primitive value.")}return(p==="string"?String:Number)(k)}class A extends g.PureComponent{constructor(){super(...arguments),l(this,"setBodyRef",p=>this.$body=p),l(this,"handleMouseDown",p=>{const{onMouseDown:r}=g.Children.only(this.props.children).props;this.handleDown(p),r&&r(p)}),l(this,"handleDown",p=>{const{dragContainer:r="",onMoveStart:x,onMoveEnd:f}=this.props;if(p.target.getAttribute("type")!=="draggable")return;this.getLimitValue();const{pageX:u,pageY:b}=p.nativeEvent,{top:h,left:E}=(document.getElementById(r)||p.target).getBoundingClientRect(),N=u-E,z=b-h;x&&x();const S=y=>{const{left:a,top:$}=this.validatePosition(y.pageX-N,y.pageY-z);this.props.onMove(a,$)},_=()=>{f&&f(),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",S)};document.addEventListener("mousemove",S),document.addEventListener("mouseup",_)})}componentDidMount(){if(!this.$body.offsetParent)return;this.getLimitValue();const{left:p,top:r}=this.props.position,{left:x,top:f}=this.validatePosition(p,r);this.props.onMove(x,f,!0)}getLimitValue(){const{container:p}=this.props,{width:r,height:x}=this.$body.getBoundingClientRect();if(p==="window")this.minLeft=0,this.minTop=56,this.maxLeft=window.innerWidth-r,this.maxTop=window.innerHeight-25-x;else if(typeof p=="string"){const f=document.querySelector(p).getBoundingClientRect(),{left:u,top:b,right:h,bottom:E}=f;this.minLeft=u,this.minTop=b,this.maxLeft=h-r,this.maxTop=E-x-10}else this.minLeft=-1/0,this.minTop=-1/0,this.maxLeft=1/0,this.maxTop=1/0}validatePosition(p,r){return p>this.maxLeft&&(p=this.maxLeft),p<this.minLeft&&(p=this.minLeft),r>this.maxTop&&(r=this.maxTop),r<this.minTop&&(r=this.minTop),r=r>>0,p=p>>0,{left:p,top:r}}render(){const{position:p,children:r}=this.props,x=g.Children.only(r);return g.cloneElement(x,{ref:this.setBodyRef,onMouseDown:this.handleMouseDown,style:{...p,...x.props.style}})}}l(A,"propTypes",{children:m().element,container:m().string,dragContainer:m().string,position:m().object,onMove:m().func.isRequired,onMoveStart:m().func,onMoveEnd:m().func}),l(A,"defaultProps",{container:"#screens"})},70085:(Et,ke,e)=>{"use strict";e.d(ke,{FO:()=>z});var o=e(51044),m=e(60185),g=e(66748),l=e.n(g),C=e(28149),T=e(19418),A=e(38944),k=e(56507),p=e(57464);function r(y,a,$){return(a=x(a))in y?Object.defineProperty(y,a,{value:$,enumerable:!0,configurable:!0,writable:!0}):y[a]=$,y}function x(y){var a=f(y,"string");return typeof a=="symbol"?a:a+""}function f(y,a){if(typeof y!="object"||!y)return y;var $=y[Symbol.toPrimitive];if($!==void 0){var ce=$.call(y,a||"default");if(typeof ce!="object")return ce;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(y)}const u="ModalPortal",b="IBOT_MODAL_ROOT",h=document.body,E=document.getElementById(b)||Object.assign(document.createElement("div"),{id:b});h.contains(E)||h.appendChild(E);const N=y=>y.stopPropagation();class z extends o.PureComponent{constructor(){var a;super(...arguments),a=this,r(this,"state",{isLoad:this.props.isOpen}),r(this,"portal",(0,C.ep)(E,(0,C.Hn)([u,this.props.portalClassName]))),r(this,"toggle",$=>{$?(this.props.isAnimation?setTimeout(()=>this.portal.classList.add("is-open")):this.portal.classList.add("is-open"),this.bodyOverflow=document.body.style.overflow,document.body.style.overflow="hidden"):(this.portal.classList.remove("is-open"),document.body.style.overflow=this.bodyOverflow)}),r(this,"close",function($){var ce,de;$===void 0&&($=!0),a.toggle(!1),(0,C.NY)(a),$&&((ce=(de=a.props).onClose)==null||ce.call(de))}),r(this,"open",()=>{var $,ce;this.toggle(!0),(0,C.Er)(this),this.positionY(),this.focusOnInput(),($=(ce=this.props).onOpen)==null||$.call(ce)}),r(this,"positionY",()=>setTimeout(()=>{const{centered:$}=this.props;if($===!0||$===!1)return;const ce=(0,C.$)(".TransitionModal",this.portal);if(!ce)return;const{innerHeight:de}=window,{offsetHeight:fe}=ce,se=de<=fe||(de-fe)/2<de*.2?"add":"remove";ce.classList[se]("is-v-centered")})),r(this,"focusOnInput",()=>{const{isAutoFocus:$}=this.props;if(!$)return;const ce=(0,C.$)(".content input",this.portal);ce&&ce.focus()}),r(this,"onKeyDown",$=>{let{key:ce,target:de}=$;const{canClose:fe,canCloseOnEsc:se,canConfirmOnEnter:J,onConfirm:ve,onCancel:D,isOpen:R}=this.props,V=!!(0,C.$)("#IBOT_SELECT_MENU_ROOT .SelectMenu.is-open");if(ce==="Escape"&&!de.matches("input, textarea, select")&&!V&&R&&fe&&se&&!V&&(0,C.dI)(this)===0&&(D&&this.handleCancel(),this.close(!0)),ce==="Enter"&&!de.matches("textarea, button")&&!V&&R&&J&&(0,C.dI)(this)===0&&ve)return this.handleConfirm()}),r(this,"onClickMask",$=>{N($);const{canClose:ce,canCloseOnClickMask:de}=this.props,fe=!!(0,C.$)("#IBOT_SELECT_MENU_ROOT .SelectMenu.is-open");ce&&de&&!fe&&this.close(!0)}),r(this,"handleConfirm",()=>{var $;const{confirmBtnProps:ce,onConfirm:de,isConfirmDisabled:fe}=this.props,{onClick:se,disabled:J}=ce;if(typeof de=="function"&&!fe?de():typeof se=="function"&&!J&&se(),($=ce.shouldCloseOnAction)!=null?$:!0){var D;const R=(D=ce.callOnClose)!=null?D:!0;this.close(R)}}),r(this,"handleCancel",()=>{var $;const{cancelBtnProps:ce,onCancel:de,isCancelDisabled:fe}=this.props,{onClick:se,disabled:J}=ce;if(typeof de=="function"&&!fe&&de(),typeof se=="function"&&!J&&se(),($=ce.shouldCloseOnAction)!=null?$:!0){var D;const R=(D=ce.callOnClose)!=null?D:!0;this.close(R)}}),r(this,"handleCloseIcon",()=>{const{onClickCloseIcon:$}=this.props;typeof $=="function"&&$(),this.close(!0)}),r(this,"mergeCancelBtnProps",()=>{const{cancelBtnProps:$,isCancelDisabled:ce,cancelText:de}=this.props,{handleCancel:fe}=this;return{type:$.type||k.vU.type,className:(0,C.Hn)([$.className,k.vU.className]),disabled:ce||$.disabled||k.vU.disabled,children:de||$.children||k.vU.children,onClick:fe}}),r(this,"mergeConfirmBtnProps",()=>{const{confirmBtnProps:$,isConfirmDisabled:ce,confirmText:de}=this.props,{handleConfirm:fe}=this;return{type:$.type||k.tb.type,className:(0,C.Hn)([$.className,k.tb.className]),disabled:ce||$.disabled||k.tb.disabled,children:de||$.children||k.tb.children,onClick:fe}}),r(this,"getDefaultLayoutChildren",()=>{const $=this.getHeader(),ce=this.getFooter(),de=this.getCloseIcon(),{children:fe}=this.props;return(0,p.jsxs)(p.Fragment,{children:[$,(0,p.jsx)(A.xv,{className:"content",children:fe}),ce,de]})}),r(this,"mergeModalStyle",()=>{const{modalStyle:$,top:ce,width:de,borderRadius:fe}=this.props,se={};return ce!==void 0&&(se.top=ce),de!==void 0&&(se.width=de),fe!==void 0&&(se.borderRadius=fe),Object.assign({},se,$)})}componentDidMount(){this.props.isOpen&&this.open(),window.addEventListener("resize",this.positionY)}componentWillUnmount(){this.portal&&this.portal.remove(),this.close(!1),window.removeEventListener("resize",this.positionY)}componentDidUpdate(a){const{isOpen:$}=this.props;$!==a.isOpen&&($?this.open():this.close(!0))}static getDerivedStateFromProps(a,$){const{isOpen:ce}=a;return ce&&!$.isLoad?{isLoad:!0}:null}getFooter(){const{footer:a,onCancel:$,onConfirm:ce,renderFooterSide:de}=this.props;return(0,p.jsx)(k.jl,{footer:a,renderFooterSide:de,onConfirm:ce,onCancel:$,cancelBtnProps:this.mergeCancelBtnProps(),confirmBtnProps:this.mergeConfirmBtnProps()})}getHeader(){const{title:a}=this.props;return(0,p.jsx)(k.rQ,{title:a})}getCloseIcon(){const{canClose:a,closeIcon:$}=this.props;return(0,p.jsx)(k.v,{canClose:a,closeIcon:$,onClick:this.handleCloseIcon})}renderModalDOM(){const{canClose:a,modalRender:$,mask:ce,centered:de,maskChildren:fe,className:se,maskClassName:J,canCloseOnClickMask:ve}=this.props,{isLoad:D}=this.state;return D&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(A.En,{}),ce&&(0,p.jsx)(A.aJ,{className:(0,C.Hn)(["TransitionModalMask",a&&ve&&"can-close",J]),onClick:this.onClickMask,children:fe}),(0,p.jsx)(A.vq,{style:this.mergeModalStyle(),className:(0,C.Hn)(["TransitionModal",de&&"is-v-centered",se]),onClick:N,children:$?$():this.getDefaultLayoutChildren()}),(0,p.jsx)(T.A,{target:document,onKeyDown:this.onKeyDown})]})}render(){const{isOpen:a,savedDomOnClose:$}=this.props;return $||a?(0,m.createPortal)(this.renderModalDOM(),this.portal):null}}r(z,"propTypes",{children:l().node,title:l().node,footer:l().node,renderFooterSide:l().func,canClose:l().bool,closeIcon:l().node,shouldCloseOnAction:l().bool,confirmText:l().string,onConfirm:l().func,isConfirmDisabled:l().bool,cancelText:l().string,onCancel:l().func,isCancelDisabled:l().bool,cancelBtnProps:l().object,confirmBtnProps:l().object,modalRender:l().func,isOpen:l().bool,centered:l().bool,mask:l().bool,savedDomOnClose:l().bool,maskChildren:l().node,isAutoFocus:l().bool,isAnimation:l().bool,canCloseOnClickMask:l().bool,canCloseOnEsc:l().bool,canConfirmOnEnter:l().bool,className:l().string,maskClassName:l().string,portalClassName:l().string,onOpen:l().func,onClose:l().func,onClickCloseIcon:l().func,modalStyle:l().object,top:l().oneOfType([l().string,l().number]),width:l().number,borderRadius:l().number}),r(z,"defaultProps",{isOpen:!1,mask:!0,isAutoFocus:!0,isAnimation:!0,className:"",maskClassName:"",portalClassName:"",canCloseOnClickMask:!0,canCloseOnEsc:!0,canConfirmOnEnter:!0,savedDomOnClose:!1,onOpen:()=>null,onClose:()=>null,canClose:!0,closeIcon:void 0,shouldCloseOnAction:!0,footer:void 0,cancelText:"\u53D6\u6D88",confirmText:"\u786E\u8BA4",cancelBtnProps:{callOnClose:!0,shouldCloseOnAction:!0},confirmBtnProps:{callOnClose:!0,shouldCloseOnAction:!0}});const S=y=>{let{isOpen:a,title:$,children:ce,confirmText:de,cancelText:fe,onCancel:se,onConfirm:J,confirmBtnProps:ve,cancelBtnProps:D,onOpen:R,onClose:V,className:O}=y;return _jsx(ModalPro,{isOpen:a,title:$,children:ce,confirmText:de,cancelText:fe,onCancel:se,onConfirm:J,confirmBtnProps:ve,cancelBtnProps:D,onOpen:R,onClose:V,className:O})},_=y=>{let{isOpen:a,modalRender:$,onOpen:ce,onClose:de,className:fe}=y;return _jsx(ModalPro,{isOpen:a,modalRender:$,onOpen:ce,onClose:de,className:fe})}},38944:(Et,ke,e)=>{"use strict";e.d(ke,{En:()=>g,Tb:()=>p,aJ:()=>l,h9:()=>T,vq:()=>C,xP:()=>A,xv:()=>k});var o=e(21676),m=e(73542);const g=(0,o.DU)([".ModalPortal{position:fixed;top:0;left:0;z-index:1050;width:100vw;min-width:64rem;height:auto;min-height:100vh;transition:all 0.2s ease-out;&:not(.is-open){pointer-events:none;}&.is-open{.TransitionModalMask{opacity:1;}.TransitionModal{transition-delay:.175s;transform:translateY(0);opacity:1;}}@media (max-width:40rem){padding:unset;min-width:unset;}}"]),l=o.Ay.div.withConfig({displayName:"styled__StyledMask",componentId:"sc-13h1acb-0"})(["position:fixed;top:0;left:0;right:0;width:100vw;height:100vh;transition:all 0.2s ease-out;opacity:0;background-color:rgba(0,0,0,0.4);&.can-close{cursor:pointer;}&.mask-enter{opacity:0;}&.mask-exit-active{opacity:0;}"]),C=o.Ay.div.withConfig({displayName:"styled__StyledModal",componentId:"sc-13h1acb-1"})(["position:absolute;top:22vh;bottom:auto;right:0;left:0;margin:auto;height:fit-content;min-height:9.5rem;width:400px;font-size:0.875rem;background-color:rgb(255,255,255);box-shadow:rgba(0,0,0,0.1) 0px 2px 8px 0px;border-radius:10px;color:",";cursor:initial;transition:all 0.2s ease-out 0s;transform:translateY(-50vh);opacity:0;&.is-v-centered{top:0;bottom:0;}"],m.q.color_text_L1),T=o.Ay.header.withConfig({displayName:"styled__StyledHeader",componentId:"sc-13h1acb-2"})(["&.header{position:relative;display:flex;align-items:center;height:50px;border-bottom:1px solid ",";padding:0 20px;font-size:16px;font-weight:500;color:",";justify-content:space-between;}"],m.q.color_split_line,m.q.color_text_L1),A=o.Ay.button.withConfig({displayName:"styled__StyledCloseIcon",componentId:"sc-13h1acb-3"})(["&.close-btn{margin-left:auto;width:28px;height:28px;border:none;color:",";background:transparent;position:absolute;top:11px;right:20px;svg{width:100%;height:100%;}&:hover{color:",";}&:active{color:",";}}"],m.q.color_text_L2,m.q.color_text_L3,m.q.color_text_L1),k=o.Ay.div.withConfig({displayName:"styled__StyledContent",componentId:"sc-13h1acb-4"})(["color:",";padding:24px 20px;"],m.q.color_text_L1),p=o.Ay.footer.withConfig({displayName:"styled__StyledFooter",componentId:"sc-13h1acb-5"})(["display:flex;justify-content:flex-end;align-items:flex-start;padding:0 20px;height:56px;& .cancel-btn{margin:0 12px;}& .confirm-btn{border-color:transparent;}"])},72374:(Et,ke,e)=>{"use strict";e.d(ke,{_:()=>x,l:()=>f});var o=e(66748),m=e.n(o),g=e(28149),l=e(21676);const C=l.Ay.span.withConfig({displayName:"styled__StyledFormKey",componentId:"sc-1ecbqe2-0"})(["align-self:flex-start;display:flex;align-items:center;flex-basis:7em;height:34px;.required-sign{margin:0 0.25em;color:#eb5648;}"]),T=l.Ay.span.withConfig({displayName:"styled__StyledFormVal",componentId:"sc-1ecbqe2-1"})(["flex:1;& > .Input,.CoreInput{display:block;width:100%;.small{margin-top:12px;margin-bottom:12px;}}.Textarea,.CoreTextarea{display:block;width:100%;}.CoreCheck,.Radio,.CoreRadio,.CheckGroup,.CoreCheckGroup,.RadioGroup,.CoreRadioGroup{margin-top:calc((34px - 1.5em)/2);}"]),A=l.Ay.div.withConfig({displayName:"styled__StyledFormDiv",componentId:"sc-1ecbqe2-2"})(["display:flex;align-items:center;margin:0.5em 0;min-height:34px;"]),k=l.Ay.label.withConfig({displayName:"styled__StyledFormLabel",componentId:"sc-1ecbqe2-3"})(["display:flex;align-items:center;margin:0.5em 0;min-height:34px;"]);var p=e(57464);function r(u){let{name:b,children:h,isRequired:E}=u;return(0,p.jsxs)(p.Fragment,{children:[b&&(0,p.jsxs)(C,{className:"FormEntry-Key key",children:[b,E&&(0,p.jsx)("span",{className:"required-sign",children:"*"})]}),(0,p.jsx)(T,{className:"FormEntry-Val val",children:h})]})}r.propTypes={children:m().node,name:m().any,isRequired:m().bool};function x(u){const{className:b,type:h}=u;return(0,p.jsx)(A,{className:(0,g.Hn)(["FormEntry",b]),type:h,children:(0,p.jsx)(r,{...u})})}x.propTypes={className:m().string,type:m().string};function f(u){const{className:b,type:h}=u;return(0,p.jsx)(k,{className:(0,g.Hn)(["FormEntry",b]),type:h,children:(0,p.jsx)(r,{...u})})}f.propTypes={className:m().string,type:m().string}},93924:(Et,ke,e)=>{"use strict";e.d(ke,{A:()=>k});var o=e(66748),m=e.n(o),g=e(28149),l=e(21676);const C=l.Ay.label.withConfig({displayName:"styled__StyledInputLabel",componentId:"sc-p5wu1-0"})(["&.Textarea,&.CoreTextarea,&.Input,&.CoreInput{display:inline-block;color:#415058;input,textarea{font-size:inherit;color:inherit;&:disabled{opacity:0.5;cursor:not-allowed;}&[readonly]{color:#8d9ea7;}&:focus{outline:0;}&::placeholder{color:#8d9ea7;}}}&.is-invalid input,&.is-invalid textarea,& input:not([type=email]):invalid,& textarea:invalid{border-color:#ff6161 !important;box-shadow:0 0 6px 0 rgba(#ff6161,.5) !important;}&:not(.unstyled){input,textarea{background-color:#f6f7f8;border:1px solid #f2f2f3;border-radius:2px;caret-color:#298df8;transition:0.2s ease-out;transition-property:background,border,box-shadow,opacity;&:enabled:not([readonly]){:hover{border-color:#298df8;}:focus{background-color:#fff;border-color:#298df8;box-shadow:0 0 6px 0 rgba(41,141,248,.5);}}}}&.is-readonly{color:#8d9ea7;}&.Input,&.CoreInput{&.regular{height:34px;font-size:14px;}&.small{height:22px;font-size:12px;}input{padding:0 .5em;width:100%;height:100%;}}&.Textarea,&.CoreTextarea{&.regular{font-size:14px;}&.small{font-size:12px;}textarea{padding:.5em;width:100%;min-height:5em;max-height:10em;resize:vertical;&:disabled,&[readonly]{resize:none;}}}&.CoreInput:not(.unstyled) input,&.CoreTextarea:not(.unstyled) textarea{background-color:#fff;border-color:#c8cdd1;}&.InputEmail,&.CoreInputEmail{&:not(.unstyled).isnt-valid input{box-shadow:0 0 6px 0 rgba(255,97,97,.5) !important;border-color:#ff6161 !important;}}"]);var T=e(57464);function A(r){return x=>r(x.target.value,x)}function k(r){let{size:x,theme:f,isInvalid:u,unstyled:b,className:h,value:E,type:N,onChange:z,isAutoFocus:S,..._}=r;const y=(0,g.Hn)([f==="core"?"CoreInput":"Input",x,b&&"unstyled",u&&"is-invalid",h]);return(0,T.jsx)(C,{className:y,children:(0,T.jsx)("input",{type:N,value:E,onChange:A(z),autoFocus:S,..._})})}k.propTypes={type:m().string,size:m().oneOf(["regular","small"]),theme:m().oneOf(["core","plain"]),unstyled:m().bool,isInvalid:m().bool,className:m().string,value:m().string,onChange:m().func,isAutoFocus:m().bool},k.defaultProps={type:"text",size:"regular",theme:"plain",isAutoFocus:!1,onChange:()=>null};function p(r){let{size:x,theme:f,unstyled:u,className:b,value:h,onChange:E,...N}=r;const z=(0,g.Hn)([f==="core"?"CoreTextarea":"Textarea",x,u&&"unstyled",b]);return(0,T.jsx)(C,{className:z,children:(0,T.jsx)("textarea",{value:h,onChange:A(E),...N})})}p.propTypes={className:m().string,size:m().oneOf(["regular","small"]),theme:m().oneOf(["core","plain"]),unstyled:m().bool,value:m().string,onChange:m().func},p.defaultProps={size:"regular",theme:"plain",onChange:()=>null}},96975:Et=>{var ke={utf8:{stringToBytes:function(e){return ke.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(ke.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var o=[],m=0;m<e.length;m++)o.push(e.charCodeAt(m)&255);return o},bytesToString:function(e){for(var o=[],m=0;m<e.length;m++)o.push(String.fromCharCode(e[m]));return o.join("")}}};Et.exports=ke},22544:function(Et){/*!
- * clipboard.js v2.0.11
- * https://clipboardjs.com/
- *
- * Licensed MIT © Zeno Rocha
- */(function(e,o){Et.exports=o()})(this,function(){return function(){var ke={686:function(m,g,l){"use strict";l.d(g,{default:function(){return Ce}});var C=l(279),T=l.n(C),A=l(370),k=l.n(A),p=l(817),r=l.n(p);function x(ae){try{return document.execCommand(ae)}catch(q){return!1}}var f=function(q){var K=r()(q);return x("cut"),K},u=f;function b(ae){var q=document.documentElement.getAttribute("dir")==="rtl",K=document.createElement("textarea");K.style.fontSize="12pt",K.style.border="0",K.style.padding="0",K.style.margin="0",K.style.position="absolute",K.style[q?"right":"left"]="-9999px";var xe=window.pageYOffset||document.documentElement.scrollTop;return K.style.top="".concat(xe,"px"),K.setAttribute("readonly",""),K.value=ae,K}var h=function(q,K){var xe=b(q);K.container.appendChild(xe);var te=r()(xe);return x("copy"),xe.remove(),te},E=function(q){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},xe="";return typeof q=="string"?xe=h(q,K):q instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(q==null?void 0:q.type)?xe=h(q.value,K):(xe=r()(q),x("copy")),xe},N=E;function z(ae){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?z=function(K){return typeof K}:z=function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},z(ae)}var S=function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},K=q.action,xe=K===void 0?"copy":K,te=q.container,H=q.target,re=q.text;if(xe!=="copy"&&xe!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(H!==void 0)if(H&&z(H)==="object"&&H.nodeType===1){if(xe==="copy"&&H.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(xe==="cut"&&(H.hasAttribute("readonly")||H.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}else throw new Error('Invalid "target" value, use a valid Element');if(re)return N(re,{container:te});if(H)return xe==="cut"?u(H):N(H,{container:te})},_=S;function y(ae){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(K){return typeof K}:y=function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},y(ae)}function a(ae,q){if(!(ae instanceof q))throw new TypeError("Cannot call a class as a function")}function $(ae,q){for(var K=0;K<q.length;K++){var xe=q[K];xe.enumerable=xe.enumerable||!1,xe.configurable=!0,"value"in xe&&(xe.writable=!0),Object.defineProperty(ae,xe.key,xe)}}function ce(ae,q,K){return q&&$(ae.prototype,q),K&&$(ae,K),ae}function de(ae,q){if(typeof q!="function"&&q!==null)throw new TypeError("Super expression must either be null or a function");ae.prototype=Object.create(q&&q.prototype,{constructor:{value:ae,writable:!0,configurable:!0}}),q&&fe(ae,q)}function fe(ae,q){return fe=Object.setPrototypeOf||function(xe,te){return xe.__proto__=te,xe},fe(ae,q)}function se(ae){var q=D();return function(){var xe=R(ae),te;if(q){var H=R(this).constructor;te=Reflect.construct(xe,arguments,H)}else te=xe.apply(this,arguments);return J(this,te)}}function J(ae,q){return q&&(y(q)==="object"||typeof q=="function")?q:ve(ae)}function ve(ae){if(ae===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ae}function D(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(ae){return!1}}function R(ae){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(K){return K.__proto__||Object.getPrototypeOf(K)},R(ae)}function V(ae,q){var K="data-clipboard-".concat(ae);if(q.hasAttribute(K))return q.getAttribute(K)}var O=function(ae){de(K,ae);var q=se(K);function K(xe,te){var H;return a(this,K),H=q.call(this),H.resolveOptions(te),H.listenClick(xe),H}return ce(K,[{key:"resolveOptions",value:function(){var te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof te.action=="function"?te.action:this.defaultAction,this.target=typeof te.target=="function"?te.target:this.defaultTarget,this.text=typeof te.text=="function"?te.text:this.defaultText,this.container=y(te.container)==="object"?te.container:document.body}},{key:"listenClick",value:function(te){var H=this;this.listener=k()(te,"click",function(re){return H.onClick(re)})}},{key:"onClick",value:function(te){var H=te.delegateTarget||te.currentTarget,re=this.action(H)||"copy",be=_({action:re,container:this.container,target:this.target(H),text:this.text(H)});this.emit(be?"success":"error",{action:re,text:be,trigger:H,clearSelection:function(){H&&H.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(te){return V("action",te)}},{key:"defaultTarget",value:function(te){var H=V("target",te);if(H)return document.querySelector(H)}},{key:"defaultText",value:function(te){return V("text",te)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(te){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return N(te,H)}},{key:"cut",value:function(te){return u(te)}},{key:"isSupported",value:function(){var te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],H=typeof te=="string"?[te]:te,re=!!document.queryCommandSupported;return H.forEach(function(be){re=re&&!!document.queryCommandSupported(be)}),re}}]),K}(T()),Ce=O},828:function(m){var g=9;if(typeof Element<"u"&&!Element.prototype.matches){var l=Element.prototype;l.matches=l.matchesSelector||l.mozMatchesSelector||l.msMatchesSelector||l.oMatchesSelector||l.webkitMatchesSelector}function C(T,A){for(;T&&T.nodeType!==g;){if(typeof T.matches=="function"&&T.matches(A))return T;T=T.parentNode}}m.exports=C},438:function(m,g,l){var C=l(828);function T(p,r,x,f,u){var b=k.apply(this,arguments);return p.addEventListener(x,b,u),{destroy:function(){p.removeEventListener(x,b,u)}}}function A(p,r,x,f,u){return typeof p.addEventListener=="function"?T.apply(null,arguments):typeof x=="function"?T.bind(null,document).apply(null,arguments):(typeof p=="string"&&(p=document.querySelectorAll(p)),Array.prototype.map.call(p,function(b){return T(b,r,x,f,u)}))}function k(p,r,x,f){return function(u){u.delegateTarget=C(u.target,r),u.delegateTarget&&f.call(p,u)}}m.exports=A},879:function(m,g){g.node=function(l){return l!==void 0&&l instanceof HTMLElement&&l.nodeType===1},g.nodeList=function(l){var C=Object.prototype.toString.call(l);return l!==void 0&&(C==="[object NodeList]"||C==="[object HTMLCollection]")&&"length"in l&&(l.length===0||g.node(l[0]))},g.string=function(l){return typeof l=="string"||l instanceof String},g.fn=function(l){var C=Object.prototype.toString.call(l);return C==="[object Function]"}},370:function(m,g,l){var C=l(879),T=l(438);function A(x,f,u){if(!x&&!f&&!u)throw new Error("Missing required arguments");if(!C.string(f))throw new TypeError("Second argument must be a String");if(!C.fn(u))throw new TypeError("Third argument must be a Function");if(C.node(x))return k(x,f,u);if(C.nodeList(x))return p(x,f,u);if(C.string(x))return r(x,f,u);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function k(x,f,u){return x.addEventListener(f,u),{destroy:function(){x.removeEventListener(f,u)}}}function p(x,f,u){return Array.prototype.forEach.call(x,function(b){b.addEventListener(f,u)}),{destroy:function(){Array.prototype.forEach.call(x,function(b){b.removeEventListener(f,u)})}}}function r(x,f,u){return T(document.body,x,f,u)}m.exports=A},817:function(m){function g(l){var C;if(l.nodeName==="SELECT")l.focus(),C=l.value;else if(l.nodeName==="INPUT"||l.nodeName==="TEXTAREA"){var T=l.hasAttribute("readonly");T||l.setAttribute("readonly",""),l.select(),l.setSelectionRange(0,l.value.length),T||l.removeAttribute("readonly"),C=l.value}else{l.hasAttribute("contenteditable")&&l.focus();var A=window.getSelection(),k=document.createRange();k.selectNodeContents(l),A.removeAllRanges(),A.addRange(k),C=A.toString()}return C}m.exports=g},279:function(m){function g(){}g.prototype={on:function(l,C,T){var A=this.e||(this.e={});return(A[l]||(A[l]=[])).push({fn:C,ctx:T}),this},once:function(l,C,T){var A=this;function k(){A.off(l,k),C.apply(T,arguments)}return k._=C,this.on(l,k,T)},emit:function(l){var C=[].slice.call(arguments,1),T=((this.e||(this.e={}))[l]||[]).slice(),A=0,k=T.length;for(A;A<k;A++)T[A].fn.apply(T[A].ctx,C);return this},off:function(l,C){var T=this.e||(this.e={}),A=T[l],k=[];if(A&&C)for(var p=0,r=A.length;p<r;p++)A[p].fn!==C&&A[p].fn._!==C&&k.push(A[p]);return k.length?T[l]=k:delete T[l],this}},m.exports=g,m.exports.TinyEmitter=g}},e={};function o(m){if(e[m])return e[m].exports;var g=e[m]={exports:{}};return ke[m](g,g.exports,o),g.exports}return function(){o.n=function(m){var g=m&&m.__esModule?function(){return m.default}:function(){return m};return o.d(g,{a:g}),g}}(),function(){o.d=function(m,g){for(var l in g)o.o(g,l)&&!o.o(m,l)&&Object.defineProperty(m,l,{enumerable:!0,get:g[l]})}}(),function(){o.o=function(m,g){return Object.prototype.hasOwnProperty.call(m,g)}}(),o(686)}().default})},57992:Et=>{(function(){var ke="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e={rotl:function(o,m){return o<<m|o>>>32-m},rotr:function(o,m){return o<<32-m|o>>>m},endian:function(o){if(o.constructor==Number)return e.rotl(o,8)&16711935|e.rotl(o,24)&4278255360;for(var m=0;m<o.length;m++)o[m]=e.endian(o[m]);return o},randomBytes:function(o){for(var m=[];o>0;o--)m.push(Math.floor(Math.random()*256));return m},bytesToWords:function(o){for(var m=[],g=0,l=0;g<o.length;g++,l+=8)m[l>>>5]|=o[g]<<24-l%32;return m},wordsToBytes:function(o){for(var m=[],g=0;g<o.length*32;g+=8)m.push(o[g>>>5]>>>24-g%32&255);return m},bytesToHex:function(o){for(var m=[],g=0;g<o.length;g++)m.push((o[g]>>>4).toString(16)),m.push((o[g]&15).toString(16));return m.join("")},hexToBytes:function(o){for(var m=[],g=0;g<o.length;g+=2)m.push(parseInt(o.substr(g,2),16));return m},bytesToBase64:function(o){for(var m=[],g=0;g<o.length;g+=3)for(var l=o[g]<<16|o[g+1]<<8|o[g+2],C=0;C<4;C++)g*8+C*6<=o.length*8?m.push(ke.charAt(l>>>6*(3-C)&63)):m.push("=");return m.join("")},base64ToBytes:function(o){o=o.replace(/[^A-Z0-9+\/]/ig,"");for(var m=[],g=0,l=0;g<o.length;l=++g%4)l!=0&&m.push((ke.indexOf(o.charAt(g-1))&Math.pow(2,-2*l+8)-1)<<l*2|ke.indexOf(o.charAt(g))>>>6-l*2);return m}};Et.exports=e})()},26557:function(Et,ke,e){var o,m,g;(function(l,C){m=[],o=C,g=typeof o=="function"?o.apply(ke,m):o,g!==void 0&&(Et.exports=g)})(this,function(){"use strict";function l(x,f){return typeof f>"u"?f={autoBom:!1}:typeof f!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),f={autoBom:!f}),f.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(x.type)?new Blob(["\uFEFF",x],{type:x.type}):x}function C(x,f,u){var b=new XMLHttpRequest;b.open("GET",x),b.responseType="blob",b.onload=function(){r(b.response,f,u)},b.onerror=function(){console.error("could not download file")},b.send()}function T(x){var f=new XMLHttpRequest;f.open("HEAD",x,!1);try{f.send()}catch(u){}return 200<=f.status&&299>=f.status}function A(x){try{x.dispatchEvent(new MouseEvent("click"))}catch(u){var f=document.createEvent("MouseEvents");f.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),x.dispatchEvent(f)}}var k=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof e.g=="object"&&e.g.global===e.g?e.g:void 0,p=k.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),r=k.saveAs||(typeof window!="object"||window!==k?function(){}:"download"in HTMLAnchorElement.prototype&&!p?function(x,f,u){var b=k.URL||k.webkitURL,h=document.createElement("a");f=f||x.name||"download",h.download=f,h.rel="noopener",typeof x=="string"?(h.href=x,h.origin===location.origin?A(h):T(h.href)?C(x,f,u):A(h,h.target="_blank")):(h.href=b.createObjectURL(x),setTimeout(function(){b.revokeObjectURL(h.href)},4e4),setTimeout(function(){A(h)},0))}:"msSaveOrOpenBlob"in navigator?function(x,f,u){if(f=f||x.name||"download",typeof x!="string")navigator.msSaveOrOpenBlob(l(x,u),f);else if(T(x))C(x,f,u);else{var b=document.createElement("a");b.href=x,b.target="_blank",setTimeout(function(){A(b)})}}:function(x,f,u,b){if(b=b||open("","_blank"),b&&(b.document.title=b.document.body.innerText="downloading..."),typeof x=="string")return C(x,f,u);var h=x.type==="application/octet-stream",E=/constructor/i.test(k.HTMLElement)||k.safari,N=/CriOS\/[\d]+/.test(navigator.userAgent);if((N||h&&E||p)&&typeof FileReader<"u"){var z=new FileReader;z.onloadend=function(){var y=z.result;y=N?y:y.replace(/^data:[^;]*;/,"data:attachment/file;"),b?b.location.href=y:location=y,b=null},z.readAsDataURL(x)}else{var S=k.URL||k.webkitURL,_=S.createObjectURL(x);b?b.location=_:location.href=_,b=null,setTimeout(function(){S.revokeObjectURL(_)},4e4)}});k.saveAs=r.saveAs=r,Et.exports=r})},16112:Et=>{(function(){function ke(u,b){document.addEventListener?u.addEventListener("scroll",b,!1):u.attachEvent("scroll",b)}function e(u){document.body?u():document.addEventListener?document.addEventListener("DOMContentLoaded",function b(){document.removeEventListener("DOMContentLoaded",b),u()}):document.attachEvent("onreadystatechange",function b(){(document.readyState=="interactive"||document.readyState=="complete")&&(document.detachEvent("onreadystatechange",b),u())})}function o(u){this.g=document.createElement("div"),this.g.setAttribute("aria-hidden","true"),this.g.appendChild(document.createTextNode(u)),this.h=document.createElement("span"),this.i=document.createElement("span"),this.m=document.createElement("span"),this.j=document.createElement("span"),this.l=-1,this.h.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.i.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.j.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.m.style.cssText="display:inline-block;width:200%;height:200%;font-size:16px;max-width:none;",this.h.appendChild(this.m),this.i.appendChild(this.j),this.g.appendChild(this.h),this.g.appendChild(this.i)}function m(u,b){u.g.style.cssText="max-width:none;min-width:20px;min-height:20px;display:inline-block;overflow:hidden;position:absolute;width:auto;margin:0;padding:0;top:-999px;white-space:nowrap;font-synthesis:none;font:"+b+";"}function g(u){var b=u.g.offsetWidth,h=b+100;return u.j.style.width=h+"px",u.i.scrollLeft=h,u.h.scrollLeft=u.h.scrollWidth+100,u.l!==b?(u.l=b,!0):!1}function l(u,b){function h(){var N=E;g(N)&&N.g.parentNode!==null&&b(N.l)}var E=u;ke(u.h,h),ke(u.i,h),g(u)}function C(u,b,h){b=b||{},h=h||window,this.family=u,this.style=b.style||"normal",this.weight=b.weight||"normal",this.stretch=b.stretch||"normal",this.context=h}var T=null,A=null,k=null,p=null;function r(u){return A===null&&(x(u)&&/Apple/.test(window.navigator.vendor)?(u=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec(window.navigator.userAgent),A=!!u&&603>parseInt(u[1],10)):A=!1),A}function x(u){return p===null&&(p=!!u.document.fonts),p}function f(u,b){var h=u.style,E=u.weight;if(k===null){var N=document.createElement("div");try{N.style.font="condensed 100px sans-serif"}catch(z){}k=N.style.font!==""}return[h,E,k?u.stretch:"","100px",b].join(" ")}C.prototype.load=function(u,b){var h=this,E=u||"BESbswy",N=0,z=b||3e3,S=new Date().getTime();return new Promise(function(_,y){if(x(h.context)&&!r(h.context)){var a=new Promise(function(ce,de){function fe(){new Date().getTime()-S>=z?de(Error(""+z+"ms timeout exceeded")):h.context.document.fonts.load(f(h,'"'+h.family+'"'),E).then(function(se){1<=se.length?ce():setTimeout(fe,25)},de)}fe()}),$=new Promise(function(ce,de){N=setTimeout(function(){de(Error(""+z+"ms timeout exceeded"))},z)});Promise.race([$,a]).then(function(){clearTimeout(N),_(h)},y)}else e(function(){function ce(){var q;(q=ve!=-1&&D!=-1||ve!=-1&&R!=-1||D!=-1&&R!=-1)&&((q=ve!=D&&ve!=R&&D!=R)||(T===null&&(q=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),T=!!q&&(536>parseInt(q[1],10)||parseInt(q[1],10)===536&&11>=parseInt(q[2],10))),q=T&&(ve==V&&D==V&&R==V||ve==O&&D==O&&R==O||ve==Ce&&D==Ce&&R==Ce)),q=!q),q&&(ae.parentNode!==null&&ae.parentNode.removeChild(ae),clearTimeout(N),_(h))}function de(){if(new Date().getTime()-S>=z)ae.parentNode!==null&&ae.parentNode.removeChild(ae),y(Error(""+z+"ms timeout exceeded"));else{var q=h.context.document.hidden;(q===!0||q===void 0)&&(ve=fe.g.offsetWidth,D=se.g.offsetWidth,R=J.g.offsetWidth,ce()),N=setTimeout(de,50)}}var fe=new o(E),se=new o(E),J=new o(E),ve=-1,D=-1,R=-1,V=-1,O=-1,Ce=-1,ae=document.createElement("div");ae.dir="ltr",m(fe,f(h,"sans-serif")),m(se,f(h,"serif")),m(J,f(h,"monospace")),ae.appendChild(fe.g),ae.appendChild(se.g),ae.appendChild(J.g),h.context.document.body.appendChild(ae),V=fe.g.offsetWidth,O=se.g.offsetWidth,Ce=J.g.offsetWidth,de(),l(fe,function(q){ve=q,ce()}),m(fe,f(h,'"'+h.family+'",sans-serif')),l(se,function(q){D=q,ce()}),m(se,f(h,'"'+h.family+'",serif')),l(J,function(q){R=q,ce()}),m(J,f(h,'"'+h.family+'",monospace'))})})},Et.exports=C})()},14965:Et=>{function ke(Ze){return Ze instanceof Map?Ze.clear=Ze.delete=Ze.set=function(){throw new Error("map is read-only")}:Ze instanceof Set&&(Ze.add=Ze.clear=Ze.delete=function(){throw new Error("set is read-only")}),Object.freeze(Ze),Object.getOwnPropertyNames(Ze).forEach(function(it){var st=Ze[it];typeof st=="object"&&!Object.isFrozen(st)&&ke(st)}),Ze}var e=ke,o=ke;e.default=o;class m{constructor(it){it.data===void 0&&(it.data={}),this.data=it.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function g(Ze){return Ze.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function l(Ze){const it=Object.create(null);for(const Ct in Ze)it[Ct]=Ze[Ct];for(var st=arguments.length,dt=new Array(st>1?st-1:0),Ot=1;Ot<st;Ot++)dt[Ot-1]=arguments[Ot];return dt.forEach(function(Ct){for(const wo in Ct)it[wo]=Ct[wo]}),it}const C="</span>",T=Ze=>!!Ze.kind;class A{constructor(it,st){this.buffer="",this.classPrefix=st.classPrefix,it.walk(this)}addText(it){this.buffer+=g(it)}openNode(it){if(!T(it))return;let st=it.kind;it.sublanguage||(st=""+this.classPrefix+st),this.span(st)}closeNode(it){T(it)&&(this.buffer+=C)}value(){return this.buffer}span(it){this.buffer+='<span class="'+it+'">'}}class k{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(it){this.top.children.push(it)}openNode(it){const st={kind:it,children:[]};this.add(st),this.stack.push(st)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(it){return this.constructor._walk(it,this.rootNode)}static _walk(it,st){return typeof st=="string"?it.addText(st):st.children&&(it.openNode(st),st.children.forEach(dt=>this._walk(it,dt)),it.closeNode(st)),it}static _collapse(it){typeof it!="string"&&it.children&&(it.children.every(st=>typeof st=="string")?it.children=[it.children.join("")]:it.children.forEach(st=>{k._collapse(st)}))}}class p extends k{constructor(it){super(),this.options=it}addKeyword(it,st){it!==""&&(this.openNode(st),this.addText(it),this.closeNode())}addText(it){it!==""&&this.add(it)}addSublanguage(it,st){const dt=it.root;dt.kind=st,dt.sublanguage=!0,this.add(dt)}toHTML(){return new A(this,this.options).value()}finalize(){return!0}}function r(Ze){return new RegExp(Ze.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function x(Ze){return Ze?typeof Ze=="string"?Ze:Ze.source:null}function f(){for(var Ze=arguments.length,it=new Array(Ze),st=0;st<Ze;st++)it[st]=arguments[st];return it.map(Ot=>x(Ot)).join("")}function u(){for(var Ze=arguments.length,it=new Array(Ze),st=0;st<Ze;st++)it[st]=arguments[st];return"("+it.map(Ot=>x(Ot)).join("|")+")"}function b(Ze){return new RegExp(Ze.toString()+"|").exec("").length-1}function h(Ze,it){const st=Ze&&Ze.exec(it);return st&&st.index===0}const E=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function N(Ze,it){it===void 0&&(it="|");let st=0;return Ze.map(dt=>{st+=1;const Ot=st;let Ct=x(dt),wo="";for(;Ct.length>0;){const ln=E.exec(Ct);if(!ln){wo+=Ct;break}wo+=Ct.substring(0,ln.index),Ct=Ct.substring(ln.index+ln[0].length),ln[0][0]==="\\"&&ln[1]?wo+="\\"+String(Number(ln[1])+Ot):(wo+=ln[0],ln[0]==="("&&st++)}return wo}).map(dt=>"("+dt+")").join(it)}const z=/\b\B/,S="[a-zA-Z]\\w*",_="[a-zA-Z_]\\w*",y="\\b\\d+(\\.\\d+)?",a="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",$="\\b(0b[01]+)",ce="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",de=function(Ze){Ze===void 0&&(Ze={});const it=/^#![ ]*\//;return Ze.binary&&(Ze.begin=f(it,/.*\b/,Ze.binary,/\b.*/)),l({className:"meta",begin:it,end:/$/,relevance:0,"on:begin":(st,dt)=>{st.index!==0&&dt.ignoreMatch()}},Ze)},fe={begin:"\\\\[\\s\\S]",relevance:0},se={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[fe]},J={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[fe]},ve={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},D=function(Ze,it,st){st===void 0&&(st={});const dt=l({className:"comment",begin:Ze,end:it,contains:[]},st);return dt.contains.push(ve),dt.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),dt},R=D("//","$"),V=D("/\\*","\\*/"),O=D("#","$"),Ce={className:"number",begin:y,relevance:0},ae={className:"number",begin:a,relevance:0},q={className:"number",begin:$,relevance:0},K={className:"number",begin:y+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},xe={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[fe,{begin:/\[/,end:/\]/,relevance:0,contains:[fe]}]}]},te={className:"title",begin:S,relevance:0},H={className:"title",begin:_,relevance:0},re={begin:"\\.\\s*"+_,relevance:0};var Le=Object.freeze({__proto__:null,MATCH_NOTHING_RE:z,IDENT_RE:S,UNDERSCORE_IDENT_RE:_,NUMBER_RE:y,C_NUMBER_RE:a,BINARY_NUMBER_RE:$,RE_STARTERS_RE:ce,SHEBANG:de,BACKSLASH_ESCAPE:fe,APOS_STRING_MODE:se,QUOTE_STRING_MODE:J,PHRASAL_WORDS_MODE:ve,COMMENT:D,C_LINE_COMMENT_MODE:R,C_BLOCK_COMMENT_MODE:V,HASH_COMMENT_MODE:O,NUMBER_MODE:Ce,C_NUMBER_MODE:ae,BINARY_NUMBER_MODE:q,CSS_NUMBER_MODE:K,REGEXP_MODE:xe,TITLE_MODE:te,UNDERSCORE_TITLE_MODE:H,METHOD_GUARD:re,END_SAME_AS_BEGIN:function(Ze){return Object.assign(Ze,{"on:begin":(it,st)=>{st.data._beginMatch=it[1]},"on:end":(it,st)=>{st.data._beginMatch!==it[1]&&st.ignoreMatch()}})}});function Ve(Ze,it){Ze.input[Ze.index-1]==="."&&it.ignoreMatch()}function Ne(Ze,it){it&&Ze.beginKeywords&&(Ze.begin="\\b("+Ze.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",Ze.__beforeBegin=Ve,Ze.keywords=Ze.keywords||Ze.beginKeywords,delete Ze.beginKeywords,Ze.relevance===void 0&&(Ze.relevance=0))}function We(Ze,it){Array.isArray(Ze.illegal)&&(Ze.illegal=u(...Ze.illegal))}function ze(Ze,it){if(Ze.match){if(Ze.begin||Ze.end)throw new Error("begin & end are not supported with match");Ze.begin=Ze.match,delete Ze.match}}function ft(Ze,it){Ze.relevance===void 0&&(Ze.relevance=1)}const mt=["of","and","for","in","not","or","if","then","parent","list","value"],i="keyword";function gt(Ze,it,st){st===void 0&&(st=i);const dt={};return typeof Ze=="string"?Ot(st,Ze.split(" ")):Array.isArray(Ze)?Ot(st,Ze):Object.keys(Ze).forEach(function(Ct){Object.assign(dt,gt(Ze[Ct],it,Ct))}),dt;function Ot(Ct,wo){it&&(wo=wo.map(ln=>ln.toLowerCase())),wo.forEach(function(ln){const Io=ln.split("|");dt[Io[0]]=[Ct,Je(Io[0],Io[1])]})}}function Je(Ze,it){return it?Number(it):Pt(Ze)?0:1}function Pt(Ze){return mt.includes(Ze.toLowerCase())}function bt(Ze,it){let{plugins:st}=it;function dt(Io,Lo){return new RegExp(x(Io),"m"+(Ze.case_insensitive?"i":"")+(Lo?"g":""))}class Ot{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Lo,Ao){Ao.position=this.position++,this.matchIndexes[this.matchAt]=Ao,this.regexes.push([Ao,Lo]),this.matchAt+=b(Lo)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const Lo=this.regexes.map(Ao=>Ao[1]);this.matcherRe=dt(N(Lo),!0),this.lastIndex=0}exec(Lo){this.matcherRe.lastIndex=this.lastIndex;const Ao=this.matcherRe.exec(Lo);if(!Ao)return null;const xt=Ao.findIndex((Wo,qo)=>qo>0&&Wo!==void 0),Ut=this.matchIndexes[xt];return Ao.splice(0,xt),Object.assign(Ao,Ut)}}class Ct{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Lo){if(this.multiRegexes[Lo])return this.multiRegexes[Lo];const Ao=new Ot;return this.rules.slice(Lo).forEach(xt=>{let[Ut,Wo]=xt;return Ao.addRule(Ut,Wo)}),Ao.compile(),this.multiRegexes[Lo]=Ao,Ao}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(Lo,Ao){this.rules.push([Lo,Ao]),Ao.type==="begin"&&this.count++}exec(Lo){const Ao=this.getMatcher(this.regexIndex);Ao.lastIndex=this.lastIndex;let xt=Ao.exec(Lo);if(this.resumingScanAtSamePosition()&&!(xt&&xt.index===this.lastIndex)){const Ut=this.getMatcher(0);Ut.lastIndex=this.lastIndex+1,xt=Ut.exec(Lo)}return xt&&(this.regexIndex+=xt.position+1,this.regexIndex===this.count&&this.considerAll()),xt}}function wo(Io){const Lo=new Ct;return Io.contains.forEach(Ao=>Lo.addRule(Ao.begin,{rule:Ao,type:"begin"})),Io.terminatorEnd&&Lo.addRule(Io.terminatorEnd,{type:"end"}),Io.illegal&&Lo.addRule(Io.illegal,{type:"illegal"}),Lo}function ln(Io,Lo){const Ao=Io;if(Io.isCompiled)return Ao;[ze].forEach(Ut=>Ut(Io,Lo)),Ze.compilerExtensions.forEach(Ut=>Ut(Io,Lo)),Io.__beforeBegin=null,[Ne,We,ft].forEach(Ut=>Ut(Io,Lo)),Io.isCompiled=!0;let xt=null;if(typeof Io.keywords=="object"&&(xt=Io.keywords.$pattern,delete Io.keywords.$pattern),Io.keywords&&(Io.keywords=gt(Io.keywords,Ze.case_insensitive)),Io.lexemes&&xt)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return xt=xt||Io.lexemes||/\w+/,Ao.keywordPatternRe=dt(xt,!0),Lo&&(Io.begin||(Io.begin=/\B|\b/),Ao.beginRe=dt(Io.begin),Io.endSameAsBegin&&(Io.end=Io.begin),!Io.end&&!Io.endsWithParent&&(Io.end=/\B|\b/),Io.end&&(Ao.endRe=dt(Io.end)),Ao.terminatorEnd=x(Io.end)||"",Io.endsWithParent&&Lo.terminatorEnd&&(Ao.terminatorEnd+=(Io.end?"|":"")+Lo.terminatorEnd)),Io.illegal&&(Ao.illegalRe=dt(Io.illegal)),Io.contains||(Io.contains=[]),Io.contains=[].concat(...Io.contains.map(function(Ut){return pt(Ut==="self"?Io:Ut)})),Io.contains.forEach(function(Ut){ln(Ut,Ao)}),Io.starts&&ln(Io.starts,Lo),Ao.matcher=wo(Ao),Ao}if(Ze.compilerExtensions||(Ze.compilerExtensions=[]),Ze.contains&&Ze.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return Ze.classNameAliases=l(Ze.classNameAliases||{}),ln(Ze)}function qt(Ze){return Ze?Ze.endsWithParent||qt(Ze.starts):!1}function pt(Ze){return Ze.variants&&!Ze.cachedVariants&&(Ze.cachedVariants=Ze.variants.map(function(it){return l(Ze,{variants:null},it)})),Ze.cachedVariants?Ze.cachedVariants:qt(Ze)?l(Ze,{starts:Ze.starts?l(Ze.starts):null}):Object.isFrozen(Ze)?l(Ze):Ze}var $t="10.7.3";function go(Ze){return!!(Ze||Ze==="")}function Co(Ze){const it={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!Ze.getLanguage(this.language))return console.warn('The language "'+this.language+'" you specified could not be found.'),this.unknownLanguage=!0,g(this.code);let dt={};return this.autoDetect?(dt=Ze.highlightAuto(this.code),this.detectedLanguage=dt.language):(dt=Ze.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),dt.value},autoDetect(){return!this.language||go(this.autodetect)},ignoreIllegals(){return!0}},render(dt){return dt("pre",{},[dt("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:it,VuePlugin:{install(dt){dt.component("highlightjs",it)}}}}const Tt={"after:highlightElement":Ze=>{let{el:it,result:st,text:dt}=Ze;const Ot=jo(it);if(!Ot.length)return;const Ct=document.createElement("div");Ct.innerHTML=st.value,st.value=Kt(Ot,jo(Ct),dt)}};function mo(Ze){return Ze.nodeName.toLowerCase()}function jo(Ze){const it=[];return function st(dt,Ot){for(let Ct=dt.firstChild;Ct;Ct=Ct.nextSibling)Ct.nodeType===3?Ot+=Ct.nodeValue.length:Ct.nodeType===1&&(it.push({event:"start",offset:Ot,node:Ct}),Ot=st(Ct,Ot),mo(Ct).match(/br|hr|img|input/)||it.push({event:"stop",offset:Ot,node:Ct}));return Ot}(Ze,0),it}function Kt(Ze,it,st){let dt=0,Ot="";const Ct=[];function wo(){return!Ze.length||!it.length?Ze.length?Ze:it:Ze[0].offset!==it[0].offset?Ze[0].offset<it[0].offset?Ze:it:it[0].event==="start"?Ze:it}function ln(Ao){function xt(Ut){return" "+Ut.nodeName+'="'+g(Ut.value)+'"'}Ot+="<"+mo(Ao)+[].map.call(Ao.attributes,xt).join("")+">"}function Io(Ao){Ot+="</"+mo(Ao)+">"}function Lo(Ao){(Ao.event==="start"?ln:Io)(Ao.node)}for(;Ze.length||it.length;){let Ao=wo();if(Ot+=g(st.substring(dt,Ao[0].offset)),dt=Ao[0].offset,Ao===Ze){Ct.reverse().forEach(Io);do Lo(Ao.splice(0,1)[0]),Ao=wo();while(Ao===Ze&&Ao.length&&Ao[0].offset===dt);Ct.reverse().forEach(ln)}else Ao[0].event==="start"?Ct.push(Ao[0].node):Ct.pop(),Lo(Ao.splice(0,1)[0])}return Ot+g(st.substr(dt))}const Ft={},nt=Ze=>{console.error(Ze)},Rt=function(Ze){for(var it=arguments.length,st=new Array(it>1?it-1:0),dt=1;dt<it;dt++)st[dt-1]=arguments[dt];console.log("WARN: "+Ze,...st)},yt=(Ze,it)=>{Ft[Ze+"/"+it]||(console.log("Deprecated as of "+Ze+". "+it),Ft[Ze+"/"+it]=!0)},Jt=g,vo=l,Yo=Symbol("nomatch");var kt=function(Ze){const it=Object.create(null),st=Object.create(null),dt=[];let Ot=!0;const Ct=/(^(<[^>]+>|\t|)+|\n)/gm,wo="Could not find the language '{}', did you forget to load/include a language module?",ln={disableAutodetect:!0,name:"Plain text",contains:[]};let Io={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:p};function Lo(vs){return Io.noHighlightRe.test(vs)}function Ao(vs){let ei=vs.className+" ";ei+=vs.parentNode?vs.parentNode.className:"";const Si=Io.languageDetectRe.exec(ei);if(Si){const Gs=Vn(Si[1]);return Gs||(Rt(wo.replace("{}",Si[1])),Rt("Falling back to no-highlight mode for this block.",vs)),Gs?Si[1]:"no-highlight"}return ei.split(/\s+/).find(Gs=>Lo(Gs)||Vn(Gs))}function xt(vs,ei,Si,Gs){let Vs="",ps="";typeof ei=="object"?(Vs=vs,Si=ei.ignoreIllegals,ps=ei.language,Gs=void 0):(yt("10.7.0","highlight(lang, code, ...args) has been deprecated."),yt("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),ps=vs,Vs=ei);const kn={code:Vs,language:ps};Xs("before:highlight",kn);const zn=kn.result?kn.result:Ut(kn.language,kn.code,Si,Gs);return zn.code=kn.code,Xs("after:highlight",zn),zn}function Ut(vs,ei,Si,Gs){function Vs(pn,ys){const Dn=Ki.case_insensitive?ys[0].toLowerCase():ys[0];return Object.prototype.hasOwnProperty.call(pn.keywords,Dn)&&pn.keywords[Dn]}function ps(){if(!Zi.keywords){to.addText(Qt);return}let pn=0;Zi.keywordPatternRe.lastIndex=0;let ys=Zi.keywordPatternRe.exec(Qt),Dn="";for(;ys;){Dn+=Qt.substring(pn,ys.index);const Hs=Vs(Zi,ys);if(Hs){const[Qn,Gi]=Hs;if(to.addText(Dn),Dn="",Sn+=Gi,Qn.startsWith("_"))Dn+=ys[0];else{const oa=Ki.classNameAliases[Qn]||Qn;to.addKeyword(ys[0],oa)}}else Dn+=ys[0];pn=Zi.keywordPatternRe.lastIndex,ys=Zi.keywordPatternRe.exec(Qt)}Dn+=Qt.substr(pn),to.addText(Dn)}function kn(){if(Qt==="")return;let pn=null;if(typeof Zi.subLanguage=="string"){if(!it[Zi.subLanguage]){to.addText(Qt);return}pn=Ut(Zi.subLanguage,Qt,!0,Fa[Zi.subLanguage]),Fa[Zi.subLanguage]=pn.top}else pn=qo(Qt,Zi.subLanguage.length?Zi.subLanguage:null);Zi.relevance>0&&(Sn+=pn.relevance),to.addSublanguage(pn.emitter,pn.language)}function zn(){Zi.subLanguage!=null?kn():ps(),Qt=""}function hs(pn){return pn.className&&to.openNode(Ki.classNameAliases[pn.className]||pn.className),Zi=Object.create(pn,{parent:{value:Zi}}),Zi}function Ss(pn,ys,Dn){let Hs=h(pn.endRe,Dn);if(Hs){if(pn["on:end"]){const Qn=new m(pn);pn["on:end"](ys,Qn),Qn.isMatchIgnored&&(Hs=!1)}if(Hs){for(;pn.endsParent&&pn.parent;)pn=pn.parent;return pn}}if(pn.endsWithParent)return Ss(pn.parent,ys,Dn)}function fi(pn){return Zi.matcher.regexIndex===0?(Qt+=pn[0],1):(Uo=!0,0)}function ri(pn){const ys=pn[0],Dn=pn.rule,Hs=new m(Dn),Qn=[Dn.__beforeBegin,Dn["on:begin"]];for(const Gi of Qn)if(Gi&&(Gi(pn,Hs),Hs.isMatchIgnored))return fi(ys);return Dn&&Dn.endSameAsBegin&&(Dn.endRe=r(ys)),Dn.skip?Qt+=ys:(Dn.excludeBegin&&(Qt+=ys),zn(),!Dn.returnBegin&&!Dn.excludeBegin&&(Qt=ys)),hs(Dn),Dn.returnBegin?0:ys.length}function Li(pn){const ys=pn[0],Dn=ei.substr(pn.index),Hs=Ss(Zi,pn,Dn);if(!Hs)return Yo;const Qn=Zi;Qn.skip?Qt+=ys:(Qn.returnEnd||Qn.excludeEnd||(Qt+=ys),zn(),Qn.excludeEnd&&(Qt=ys));do Zi.className&&to.closeNode(),!Zi.skip&&!Zi.subLanguage&&(Sn+=Zi.relevance),Zi=Zi.parent;while(Zi!==Hs.parent);return Hs.starts&&(Hs.endSameAsBegin&&(Hs.starts.endRe=Hs.endRe),hs(Hs.starts)),Qn.returnEnd?0:ys.length}function ji(){const pn=[];for(let ys=Zi;ys!==Ki;ys=ys.parent)ys.className&&pn.unshift(ys.className);pn.forEach(ys=>to.openNode(ys))}let _t={};function Aa(pn,ys){const Dn=ys&&ys[0];if(Qt+=pn,Dn==null)return zn(),0;if(_t.type==="begin"&&ys.type==="end"&&_t.index===ys.index&&Dn===""){if(Qt+=ei.slice(ys.index,ys.index+1),!Ot){const Hs=new Error("0 width match regex");throw Hs.languageName=vs,Hs.badRule=_t.rule,Hs}return 1}if(_t=ys,ys.type==="begin")return ri(ys);if(ys.type==="illegal"&&!Si){const Hs=new Error('Illegal lexeme "'+Dn+'" for mode "'+(Zi.className||"<unnamed>")+'"');throw Hs.mode=Zi,Hs}else if(ys.type==="end"){const Hs=Li(ys);if(Hs!==Yo)return Hs}if(ys.type==="illegal"&&Dn==="")return 1;if(ho>1e5&&ho>ys.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Qt+=Dn,Dn.length}const Ki=Vn(vs);if(!Ki)throw nt(wo.replace("{}",vs)),new Error('Unknown language: "'+vs+'"');const bi=bt(Ki,{plugins:dt});let sa="",Zi=Gs||bi;const Fa={},to=new Io.__emitter(Io);ji();let Qt="",Sn=0,Vo=0,ho=0,Uo=!1;try{for(Zi.matcher.considerAll();;){ho++,Uo?Uo=!1:Zi.matcher.considerAll(),Zi.matcher.lastIndex=Vo;const pn=Zi.matcher.exec(ei);if(!pn)break;const ys=ei.substring(Vo,pn.index),Dn=Aa(ys,pn);Vo=pn.index+Dn}return Aa(ei.substr(Vo)),to.closeAllNodes(),to.finalize(),sa=to.toHTML(),{relevance:Math.floor(Sn),value:sa,language:vs,illegal:!1,emitter:to,top:Zi}}catch(pn){if(pn.message&&pn.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:pn.message,context:ei.slice(Vo-100,Vo+100),mode:pn.mode},sofar:sa,relevance:0,value:Jt(ei),emitter:to};if(Ot)return{illegal:!1,relevance:0,value:Jt(ei),emitter:to,language:vs,top:Zi,errorRaised:pn};throw pn}}function Wo(vs){const ei={relevance:0,emitter:new Io.__emitter(Io),value:Jt(vs),illegal:!1,top:ln};return ei.emitter.addText(vs),ei}function qo(vs,ei){ei=ei||Io.languages||Object.keys(it);const Si=Wo(vs),Gs=ei.filter(Vn).filter(oi).map(hs=>Ut(hs,vs,!1));Gs.unshift(Si);const Vs=Gs.sort((hs,Ss)=>{if(hs.relevance!==Ss.relevance)return Ss.relevance-hs.relevance;if(hs.language&&Ss.language){if(Vn(hs.language).supersetOf===Ss.language)return 1;if(Vn(Ss.language).supersetOf===hs.language)return-1}return 0}),[ps,kn]=Vs,zn=ps;return zn.second_best=kn,zn}function sn(vs){return Io.tabReplace||Io.useBR?vs.replace(Ct,ei=>ei==="\n"?Io.useBR?"<br>":ei:Io.tabReplace?ei.replace(/\t/g,Io.tabReplace):ei):vs}function Kn(vs,ei,Si){const Gs=ei?st[ei]:Si;vs.classList.add("hljs"),Gs&&vs.classList.add(Gs)}const ds={"before:highlightElement":vs=>{let{el:ei}=vs;Io.useBR&&(ei.innerHTML=ei.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,"\n"))},"after:highlightElement":vs=>{let{result:ei}=vs;Io.useBR&&(ei.value=ei.value.replace(/\n/g,"<br>"))}},_s=/^(<[^>]+>|\t)+/gm,Ls={"after:highlightElement":vs=>{let{result:ei}=vs;Io.tabReplace&&(ei.value=ei.value.replace(_s,Si=>Si.replace(/\t/g,Io.tabReplace)))}};function gs(vs){let ei=null;const Si=Ao(vs);if(Lo(Si))return;Xs("before:highlightElement",{el:vs,language:Si}),ei=vs;const Gs=ei.textContent,Vs=Si?xt(Gs,{language:Si,ignoreIllegals:!0}):qo(Gs);Xs("after:highlightElement",{el:vs,result:Vs,text:Gs}),vs.innerHTML=Vs.value,Kn(vs,Si,Vs.language),vs.result={language:Vs.language,re:Vs.relevance,relavance:Vs.relevance},Vs.second_best&&(vs.second_best={language:Vs.second_best.language,re:Vs.second_best.relevance,relavance:Vs.second_best.relevance})}function ns(vs){vs.useBR&&(yt("10.3.0","'useBR' will be removed entirely in v11.0"),yt("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),Io=vo(Io,vs)}const Wn=()=>{if(Wn.called)return;Wn.called=!0,yt("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead."),document.querySelectorAll("pre code").forEach(gs)};function Do(){yt("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),Go=!0}let Go=!1;function an(){if(document.readyState==="loading"){Go=!0;return}document.querySelectorAll("pre code").forEach(gs)}function Mo(){Go&&an()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",Mo,!1);function Cn(vs,ei){let Si=null;try{Si=ei(Ze)}catch(Gs){if(nt("Language definition for '{}' could not be registered.".replace("{}",vs)),Ot)nt(Gs);else throw Gs;Si=ln}Si.name||(Si.name=vs),it[vs]=Si,Si.rawDefinition=ei.bind(null,Ze),Si.aliases&&ti(Si.aliases,{languageName:vs})}function Tn(vs){delete it[vs];for(const ei of Object.keys(st))st[ei]===vs&&delete st[ei]}function cn(){return Object.keys(it)}function bs(vs){yt("10.4.0","requireLanguage will be removed entirely in v11."),yt("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const ei=Vn(vs);if(ei)return ei;throw new Error("The '{}' language is required, but not loaded.".replace("{}",vs))}function Vn(vs){return vs=(vs||"").toLowerCase(),it[vs]||it[st[vs]]}function ti(vs,ei){let{languageName:Si}=ei;typeof vs=="string"&&(vs=[vs]),vs.forEach(Gs=>{st[Gs.toLowerCase()]=Si})}function oi(vs){const ei=Vn(vs);return ei&&!ei.disableAutodetect}function Gt(vs){vs["before:highlightBlock"]&&!vs["before:highlightElement"]&&(vs["before:highlightElement"]=ei=>{vs["before:highlightBlock"](Object.assign({block:ei.el},ei))}),vs["after:highlightBlock"]&&!vs["after:highlightElement"]&&(vs["after:highlightElement"]=ei=>{vs["after:highlightBlock"](Object.assign({block:ei.el},ei))})}function Rs(vs){Gt(vs),dt.push(vs)}function Xs(vs,ei){const Si=vs;dt.forEach(function(Gs){Gs[Si]&&Gs[Si](ei)})}function Ti(vs){return yt("10.2.0","fixMarkup will be removed entirely in v11.0"),yt("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),sn(vs)}function di(vs){return yt("10.7.0","highlightBlock will be removed entirely in v12.0"),yt("10.7.0","Please use highlightElement now."),gs(vs)}Object.assign(Ze,{highlight:xt,highlightAuto:qo,highlightAll:an,fixMarkup:Ti,highlightElement:gs,highlightBlock:di,configure:ns,initHighlighting:Wn,initHighlightingOnLoad:Do,registerLanguage:Cn,unregisterLanguage:Tn,listLanguages:cn,getLanguage:Vn,registerAliases:ti,requireLanguage:bs,autoDetection:oi,inherit:vo,addPlugin:Rs,vuePlugin:Co(Ze).VuePlugin}),Ze.debugMode=function(){Ot=!1},Ze.safeMode=function(){Ot=!0},Ze.versionString=$t;for(const vs in Le)typeof Le[vs]=="object"&&e(Le[vs]);return Object.assign(Ze,Le),Ze.addPlugin(ds),Ze.addPlugin(Tt),Ze.addPlugin(Ls),Ze}({});Et.exports=kt},65355:Et=>{const ke=p=>({IMPORTANT:{className:"meta",begin:"!important"},HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[p.APOS_STRING_MODE,p.QUOTE_STRING_MODE]}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],o=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],m=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],g=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],l=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse();function C(p){return p?typeof p=="string"?p:p.source:null}function T(p){return A("(?=",p,")")}function A(){for(var p=arguments.length,r=new Array(p),x=0;x<p;x++)r[x]=arguments[x];return r.map(u=>C(u)).join("")}function k(p){const r=ke(p),x={className:"built_in",begin:/[\w-]+(?=\()/},f={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},u="and or not only",b=/@-?\w[\w]*(-\w+)*/,h="[a-zA-Z-][a-zA-Z0-9_-]*",E=[p.APOS_STRING_MODE,p.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[p.C_BLOCK_COMMENT_MODE,f,p.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+h,relevance:0},r.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+m.join("|")+")"},{begin:"::("+g.join("|")+")"}]},{className:"attribute",begin:"\\b("+l.join("|")+")\\b"},{begin:":",end:"[;}]",contains:[r.HEXCOLOR,r.IMPORTANT,p.CSS_NUMBER_MODE,...E,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},x]},{begin:T(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:b},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:u,attribute:o.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...E,p.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+e.join("|")+")\\b"}]}}Et.exports=k},43363:Et=>{const ke=A=>({IMPORTANT:{className:"meta",begin:"!important"},HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[A.APOS_STRING_MODE,A.QUOTE_STRING_MODE]}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],o=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],m=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],g=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],l=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse(),C=m.concat(g);function T(A){const k=ke(A),p=C,r="and or not only",x="[\\w-]+",f="("+x+"|@\\{"+x+"\\})",u=[],b=[],h=function(fe){return{className:"string",begin:"~?"+fe+".*?"+fe}},E=function(fe,se,J){return{className:fe,begin:se,relevance:J}},N={$pattern:/[a-z-]+/,keyword:r,attribute:o.join(" ")},z={begin:"\\(",end:"\\)",contains:b,keywords:N,relevance:0};b.push(A.C_LINE_COMMENT_MODE,A.C_BLOCK_COMMENT_MODE,h("'"),h('"'),A.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},k.HEXCOLOR,z,E("variable","@@?"+x,10),E("variable","@\\{"+x+"\\}"),E("built_in","~?`[^`]*?`"),{className:"attribute",begin:x+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},k.IMPORTANT);const S=b.concat({begin:/\{/,end:/\}/,contains:u}),_={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(b)},y={begin:f+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},{className:"attribute",begin:"\\b("+l.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:b}}]},a={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:N,returnEnd:!0,contains:b,relevance:0}},$={className:"variable",variants:[{begin:"@"+x+"\\s*:",relevance:15},{begin:"@"+x}],starts:{end:"[;}]",returnEnd:!0,contains:S}},ce={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:f,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:"[<='$\"]",relevance:0,contains:[A.C_LINE_COMMENT_MODE,A.C_BLOCK_COMMENT_MODE,_,E("keyword","all\\b"),E("variable","@\\{"+x+"\\}"),{begin:"\\b("+e.join("|")+")\\b",className:"selector-tag"},E("selector-tag",f+"%?",0),E("selector-id","#"+f),E("selector-class","\\."+f,0),E("selector-tag","&",0),k.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+m.join("|")+")"},{className:"selector-pseudo",begin:"::("+g.join("|")+")"},{begin:"\\(",end:"\\)",contains:S},{begin:"!important"}]},de={begin:x+":(:)?"+("("+p.join("|")+")"),returnBegin:!0,contains:[ce]};return u.push(A.C_LINE_COMMENT_MODE,A.C_BLOCK_COMMENT_MODE,a,$,de,y,ce),{name:"Less",case_insensitive:!0,illegal:"[=>'/<($\"]",contains:u}}Et.exports=T},3294:Et=>{const ke=T=>({IMPORTANT:{className:"meta",begin:"!important"},HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[T.APOS_STRING_MODE,T.QUOTE_STRING_MODE]}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],o=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],m=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],g=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],l=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse();function C(T){const A=ke(T),k=g,p=m,r="@[a-z-]+",x="and or not only",u={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b"};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[T.C_LINE_COMMENT_MODE,T.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},A.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+e.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+p.join("|")+")"},{className:"selector-pseudo",begin:"::("+k.join("|")+")"},u,{begin:/\(/,end:/\)/,contains:[T.CSS_NUMBER_MODE]},{className:"attribute",begin:"\\b("+l.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:":",end:";",contains:[u,A.HEXCOLOR,T.CSS_NUMBER_MODE,T.QUOTE_STRING_MODE,T.APOS_STRING_MODE,A.IMPORTANT]},{begin:"@(page|font-face)",lexemes:r,keywords:"@page @font-face"},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:x,attribute:o.join(" ")},contains:[{begin:r,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},u,T.QUOTE_STRING_MODE,T.APOS_STRING_MODE,A.HEXCOLOR,T.CSS_NUMBER_MODE]}]}}Et.exports=C},71624:Et=>{const ke=T=>({IMPORTANT:{className:"meta",begin:"!important"},HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[T.APOS_STRING_MODE,T.QUOTE_STRING_MODE]}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],o=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],m=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],g=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],l=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse();function C(T){const A=ke(T),k="and or not only",p={className:"variable",begin:"\\$"+T.IDENT_RE},r=["charset","css","debug","extend","font-face","for","import","include","keyframes","media","mixin","page","warn","while"],x="(?=[.\\s\\n[:,(])";return{name:"Stylus",aliases:["styl"],case_insensitive:!1,keywords:"if else for in",illegal:"("+["\\?","(\\bReturn\\b)","(\\bEnd\\b)","(\\bend\\b)","(\\bdef\\b)",";","#\\s","\\*\\s","===\\s","\\|","%"].join("|")+")",contains:[T.QUOTE_STRING_MODE,T.APOS_STRING_MODE,T.C_LINE_COMMENT_MODE,T.C_BLOCK_COMMENT_MODE,A.HEXCOLOR,{begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*"+x,className:"selector-class"},{begin:"#[a-zA-Z][a-zA-Z0-9_-]*"+x,className:"selector-id"},{begin:"\\b("+e.join("|")+")"+x,className:"selector-tag"},{className:"selector-pseudo",begin:"&?:("+m.join("|")+")"+x},{className:"selector-pseudo",begin:"&?::("+g.join("|")+")"+x},A.ATTRIBUTE_SELECTOR_MODE,{className:"keyword",begin:/@media/,starts:{end:/[{;}]/,keywords:{$pattern:/[a-z-]+/,keyword:k,attribute:o.join(" ")},contains:[T.CSS_NUMBER_MODE]}},{className:"keyword",begin:"@((-(o|moz|ms|webkit)-)?("+r.join("|")+"))\\b"},p,T.CSS_NUMBER_MODE,{className:"function",begin:"^[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)",illegal:"[\\n]",returnBegin:!0,contains:[{className:"title",begin:"\\b[a-zA-Z][a-zA-Z0-9_-]*"},{className:"params",begin:/\(/,end:/\)/,contains:[A.HEXCOLOR,p,T.APOS_STRING_MODE,T.CSS_NUMBER_MODE,T.QUOTE_STRING_MODE]}]},{className:"attribute",begin:"\\b("+l.join("|")+")\\b",starts:{end:/;|$/,contains:[A.HEXCOLOR,p,T.APOS_STRING_MODE,T.QUOTE_STRING_MODE,T.CSS_NUMBER_MODE,T.C_BLOCK_COMMENT_MODE,A.IMPORTANT],illegal:/\./,relevance:0}}]}}Et.exports=C},16259:Et=>{function ke(a){return a?typeof a=="string"?a:a.source:null}function e(a){return o("(?=",a,")")}function o(){for(var a=arguments.length,$=new Array(a),ce=0;ce<a;ce++)$[ce]=arguments[ce];return $.map(fe=>ke(fe)).join("")}function m(){for(var a=arguments.length,$=new Array(a),ce=0;ce<a;ce++)$[ce]=arguments[ce];return"("+$.map(fe=>ke(fe)).join("|")+")"}const g=a=>o(/\b/,a,/\w$/.test(a)?/\b/:/\B/),l=["Protocol","Type"].map(g),C=["init","self"].map(g),T=["Any","Self"],A=["associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","do","dynamic","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","lazy","let","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],k=["false","nil","true"],p=["assignment","associativity","higherThan","left","lowerThan","none","right"],r=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],x=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],f=m(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),u=m(f,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),b=o(f,u,"*"),h=m(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),E=m(h,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),N=o(h,E,"*"),z=o(/[A-Z]/,E,"*"),S=["autoclosure",o(/convention\(/,m("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",o(/objc\(/,N,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","testable","UIApplicationMain","unknown","usableFromInline"],_=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function y(a){const $={match:/\s+/,relevance:0},ce=a.COMMENT("/\\*","\\*/",{contains:["self"]}),de=[a.C_LINE_COMMENT_MODE,ce],fe={className:"keyword",begin:o(/\./,e(m(...l,...C))),end:m(...l,...C),excludeBegin:!0},se={match:o(/\./,m(...A)),relevance:0},J=A.filter(Jt=>typeof Jt=="string").concat(["_|0"]),ve=A.filter(Jt=>typeof Jt!="string").concat(T).map(g),D={variants:[{className:"keyword",match:m(...ve,...C)}]},R={$pattern:m(/\b\w+/,/#\w+/),keyword:J.concat(r),literal:k},V=[fe,se,D],O={match:o(/\./,m(...x)),relevance:0},Ce={className:"built_in",match:o(/\b/,m(...x),/(?=\()/)},ae=[O,Ce],q={match:/->/,relevance:0},K={className:"operator",relevance:0,variants:[{match:b},{match:"\\.(\\.|"+u+")+"}]},xe=[q,K],te="([0-9]_*)+",H="([0-9a-fA-F]_*)+",re={className:"number",relevance:0,variants:[{match:"\\b("+te+")(\\.("+te+"))?"+("([eE][+-]?("+te+"))?\\b")},{match:"\\b0x("+H+")(\\.("+H+"))?"+("([pP][+-]?("+te+"))?\\b")},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},be=function(Jt){return Jt===void 0&&(Jt=""),{className:"subst",variants:[{match:o(/\\/,Jt,/[0\\tnr"']/)},{match:o(/\\/,Jt,/u\{[0-9a-fA-F]{1,8}\}/)}]}},Le=function(Jt){return Jt===void 0&&(Jt=""),{className:"subst",match:o(/\\/,Jt,/[\t ]*(?:[\r\n]|\r\n)/)}},Ve=function(Jt){return Jt===void 0&&(Jt=""),{className:"subst",label:"interpol",begin:o(/\\/,Jt,/\(/),end:/\)/}},Ne=function(Jt){return Jt===void 0&&(Jt=""),{begin:o(Jt,/"""/),end:o(/"""/,Jt),contains:[be(Jt),Le(Jt),Ve(Jt)]}},We=function(Jt){return Jt===void 0&&(Jt=""),{begin:o(Jt,/"/),end:o(/"/,Jt),contains:[be(Jt),Ve(Jt)]}},ze={className:"string",variants:[Ne(),Ne("#"),Ne("##"),Ne("###"),We(),We("#"),We("##"),We("###")]},ft={match:o(/`/,N,/`/)},mt={className:"variable",match:/\$\d+/},i={className:"variable",match:"\\$"+E+"+"},gt=[ft,mt,i],Je={match:/(@|#)available/,className:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:_,contains:[...xe,re,ze]}]}},Pt={className:"keyword",match:o(/@/,m(...S))},bt={className:"meta",match:o(/@/,N)},qt=[Je,Pt,bt],pt={match:e(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:o(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,E,"+")},{className:"type",match:z,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:o(/\s+&\s+/,e(z)),relevance:0}]},$t={begin:/</,end:/>/,keywords:R,contains:[...de,...V,...qt,q,pt]};pt.contains.push($t);const go={match:o(N,/\s*:/),keywords:"_|0",relevance:0},Co={begin:/\(/,end:/\)/,relevance:0,keywords:R,contains:["self",go,...de,...V,...ae,...xe,re,ze,...gt,...qt,pt]},Tt={beginKeywords:"func",contains:[{className:"title",match:m(ft.match,N,b),endsParent:!0,relevance:0},$]},mo={begin:/</,end:/>/,contains:[...de,pt]},jo={begin:m(e(o(N,/\s*:/)),e(o(N,/\s+/,N,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:N}]},Kt={begin:/\(/,end:/\)/,keywords:R,contains:[jo,...de,...V,...xe,re,ze,...qt,pt,Co],endsParent:!0,illegal:/["']/},Ft={className:"function",match:e(/\bfunc\b/),contains:[Tt,mo,Kt,$],illegal:[/\[/,/%/]},nt={className:"function",match:/\b(subscript|init[?!]?)\s*(?=[<(])/,keywords:{keyword:"subscript init init? init!",$pattern:/\w+[?!]?/},contains:[mo,Kt,$],illegal:/\[|%/},Rt={beginKeywords:"operator",end:a.MATCH_NOTHING_RE,contains:[{className:"title",match:b,endsParent:!0,relevance:0}]},yt={beginKeywords:"precedencegroup",end:a.MATCH_NOTHING_RE,contains:[{className:"title",match:z,relevance:0},{begin:/{/,end:/}/,relevance:0,endsParent:!0,keywords:[...p,...k],contains:[pt]}]};for(const Jt of ze.variants){const vo=Jt.contains.find(Ho=>Ho.label==="interpol");vo.keywords=R;const Yo=[...V,...ae,...xe,re,ze,...gt];vo.contains=[...Yo,{begin:/\(/,end:/\)/,contains:["self",...Yo]}]}return{name:"Swift",keywords:R,contains:[...de,Ft,nt,{className:"class",beginKeywords:"struct protocol class extension enum",end:"\\{",excludeEnd:!0,keywords:R,contains:[a.inherit(a.TITLE_MODE,{begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...V]},Rt,yt,{beginKeywords:"import",end:/$/,contains:[...de],relevance:0},...V,...ae,...xe,re,ze,...gt,...qt,pt,Co]}}Et.exports=y},46269:Et=>{function ke(C){return C?typeof C=="string"?C:C.source:null}function e(C){return m("(?=",C,")")}function o(C){return m("(",C,")?")}function m(){for(var C=arguments.length,T=new Array(C),A=0;A<C;A++)T[A]=arguments[A];return T.map(p=>ke(p)).join("")}function g(){for(var C=arguments.length,T=new Array(C),A=0;A<C;A++)T[A]=arguments[A];return"("+T.map(p=>ke(p)).join("|")+")"}function l(C){const T=m(/[A-Z_]/,o(/[A-Z0-9_.-]*:/),/[A-Z0-9_.-]*/),A=/[A-Za-z0-9._:-]+/,k={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},p={begin:/\s/,contains:[{className:"meta-keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},r=C.inherit(p,{begin:/\(/,end:/\)/}),x=C.inherit(C.APOS_STRING_MODE,{className:"meta-string"}),f=C.inherit(C.QUOTE_STRING_MODE,{className:"meta-string"}),u={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:A,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[k]},{begin:/'/,end:/'/,contains:[k]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[p,f,x,r,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[p,r,f,x]}]}]},C.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},k,{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[u],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[u],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:m(/</,e(m(T,g(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:T,relevance:0,starts:u}]},{className:"tag",begin:m(/<\//,e(m(T,/>/))),contains:[{className:"name",begin:T,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}Et.exports=l},34095:()=>{(function(){"use strict";if(typeof window!="object")return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}function Et(N){try{return N.defaultView&&N.defaultView.frameElement||null}catch(z){return null}}var ke=function(N){for(var z=N,S=Et(z);S;)z=S.ownerDocument,S=Et(z);return z}(window.document),e=[],o=null,m=null;function g(N){this.time=N.time,this.target=N.target,this.rootBounds=f(N.rootBounds),this.boundingClientRect=f(N.boundingClientRect),this.intersectionRect=f(N.intersectionRect||x()),this.isIntersecting=!!N.intersectionRect;var z=this.boundingClientRect,S=z.width*z.height,_=this.intersectionRect,y=_.width*_.height;S?this.intersectionRatio=Number((y/S).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function l(N,z){var S=z||{};if(typeof N!="function")throw new Error("callback must be a function");if(S.root&&S.root.nodeType!=1&&S.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=T(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=N,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(S.rootMargin),this.thresholds=this._initThresholds(S.threshold),this.root=S.root||null,this.rootMargin=this._rootMarginValues.map(function(_){return _.value+_.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}l.prototype.THROTTLE_TIMEOUT=100,l.prototype.POLL_INTERVAL=null,l.prototype.USE_MUTATION_OBSERVER=!0,l._setupCrossOriginUpdater=function(){return o||(o=function(N,z){!N||!z?m=x():m=u(N,z),e.forEach(function(S){S._checkForIntersections()})}),o},l._resetCrossOriginUpdater=function(){o=null,m=null},l.prototype.observe=function(N){var z=this._observationTargets.some(function(S){return S.element==N});if(!z){if(!(N&&N.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:N,entry:null}),this._monitorIntersections(N.ownerDocument),this._checkForIntersections()}},l.prototype.unobserve=function(N){this._observationTargets=this._observationTargets.filter(function(z){return z.element!=N}),this._unmonitorIntersections(N.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},l.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},l.prototype.takeRecords=function(){var N=this._queuedEntries.slice();return this._queuedEntries=[],N},l.prototype._initThresholds=function(N){var z=N||[0];return Array.isArray(z)||(z=[z]),z.sort().filter(function(S,_,y){if(typeof S!="number"||isNaN(S)||S<0||S>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return S!==y[_-1]})},l.prototype._parseRootMargin=function(N){var z=N||"0px",S=z.split(/\s+/).map(function(_){var y=/^(-?\d*\.?\d+)(px|%)$/.exec(_);if(!y)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(y[1]),unit:y[2]}});return S[1]=S[1]||S[0],S[2]=S[2]||S[0],S[3]=S[3]||S[1],S},l.prototype._monitorIntersections=function(N){var z=N.defaultView;if(z&&this._monitoringDocuments.indexOf(N)==-1){var S=this._checkForIntersections,_=null,y=null;this.POLL_INTERVAL?_=z.setInterval(S,this.POLL_INTERVAL):(A(z,"resize",S,!0),A(N,"scroll",S,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in z&&(y=new z.MutationObserver(S),y.observe(N,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(N),this._monitoringUnsubscribes.push(function(){var ce=N.defaultView;ce&&(_&&ce.clearInterval(_),k(ce,"resize",S,!0)),k(N,"scroll",S,!0),y&&y.disconnect()});var a=this.root&&(this.root.ownerDocument||this.root)||ke;if(N!=a){var $=Et(N);$&&this._monitorIntersections($.ownerDocument)}}},l.prototype._unmonitorIntersections=function(N){var z=this._monitoringDocuments.indexOf(N);if(z!=-1){var S=this.root&&(this.root.ownerDocument||this.root)||ke,_=this._observationTargets.some(function($){var ce=$.element.ownerDocument;if(ce==N)return!0;for(;ce&&ce!=S;){var de=Et(ce);if(ce=de&&de.ownerDocument,ce==N)return!0}return!1});if(!_){var y=this._monitoringUnsubscribes[z];if(this._monitoringDocuments.splice(z,1),this._monitoringUnsubscribes.splice(z,1),y(),N!=S){var a=Et(N);a&&this._unmonitorIntersections(a.ownerDocument)}}}},l.prototype._unmonitorAllIntersections=function(){var N=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var z=0;z<N.length;z++)N[z]()},l.prototype._checkForIntersections=function(){if(!(!this.root&&o&&!m)){var N=this._rootIsInDom(),z=N?this._getRootRect():x();this._observationTargets.forEach(function(S){var _=S.element,y=r(_),a=this._rootContainsTarget(_),$=S.entry,ce=N&&a&&this._computeTargetAndRootIntersection(_,y,z),de=null;this._rootContainsTarget(_)?(!o||this.root)&&(de=z):de=x();var fe=S.entry=new g({time:C(),target:_,boundingClientRect:y,rootBounds:de,intersectionRect:ce});$?N&&a?this._hasCrossedThreshold($,fe)&&this._queuedEntries.push(fe):$&&$.isIntersecting&&this._queuedEntries.push(fe):this._queuedEntries.push(fe)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},l.prototype._computeTargetAndRootIntersection=function(N,z,S){if(window.getComputedStyle(N).display!="none"){for(var _=z,y=h(N),a=!1;!a&&y;){var $=null,ce=y.nodeType==1?window.getComputedStyle(y):{};if(ce.display=="none")return null;if(y==this.root||y.nodeType==9)if(a=!0,y==this.root||y==ke)o&&!this.root?!m||m.width==0&&m.height==0?(y=null,$=null,_=null):$=m:$=S;else{var de=h(y),fe=de&&r(de),se=de&&this._computeTargetAndRootIntersection(de,fe,S);fe&&se?(y=de,$=u(fe,se)):(y=null,_=null)}else{var J=y.ownerDocument;y!=J.body&&y!=J.documentElement&&ce.overflow!="visible"&&($=r(y))}if($&&(_=p($,_)),!_)break;y=y&&h(y)}return _}},l.prototype._getRootRect=function(){var N;if(this.root&&!E(this.root))N=r(this.root);else{var z=E(this.root)?this.root:ke,S=z.documentElement,_=z.body;N={top:0,left:0,right:S.clientWidth||_.clientWidth,width:S.clientWidth||_.clientWidth,bottom:S.clientHeight||_.clientHeight,height:S.clientHeight||_.clientHeight}}return this._expandRectByRootMargin(N)},l.prototype._expandRectByRootMargin=function(N){var z=this._rootMarginValues.map(function(_,y){return _.unit=="px"?_.value:_.value*(y%2?N.width:N.height)/100}),S={top:N.top-z[0],right:N.right+z[1],bottom:N.bottom+z[2],left:N.left-z[3]};return S.width=S.right-S.left,S.height=S.bottom-S.top,S},l.prototype._hasCrossedThreshold=function(N,z){var S=N&&N.isIntersecting?N.intersectionRatio||0:-1,_=z.isIntersecting?z.intersectionRatio||0:-1;if(S!==_)for(var y=0;y<this.thresholds.length;y++){var a=this.thresholds[y];if(a==S||a==_||a<S!=a<_)return!0}},l.prototype._rootIsInDom=function(){return!this.root||b(ke,this.root)},l.prototype._rootContainsTarget=function(N){var z=this.root&&(this.root.ownerDocument||this.root)||ke;return b(z,N)&&(!this.root||z==N.ownerDocument)},l.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},l.prototype._unregisterInstance=function(){var N=e.indexOf(this);N!=-1&&e.splice(N,1)};function C(){return window.performance&&performance.now&&performance.now()}function T(N,z){var S=null;return function(){S||(S=setTimeout(function(){N(),S=null},z))}}function A(N,z,S,_){typeof N.addEventListener=="function"?N.addEventListener(z,S,_||!1):typeof N.attachEvent=="function"&&N.attachEvent("on"+z,S)}function k(N,z,S,_){typeof N.removeEventListener=="function"?N.removeEventListener(z,S,_||!1):typeof N.detachEvent=="function"&&N.detachEvent("on"+z,S)}function p(N,z){var S=Math.max(N.top,z.top),_=Math.min(N.bottom,z.bottom),y=Math.max(N.left,z.left),a=Math.min(N.right,z.right),$=a-y,ce=_-S;return $>=0&&ce>=0&&{top:S,bottom:_,left:y,right:a,width:$,height:ce}||null}function r(N){var z;try{z=N.getBoundingClientRect()}catch(S){}return z?(z.width&&z.height||(z={top:z.top,right:z.right,bottom:z.bottom,left:z.left,width:z.right-z.left,height:z.bottom-z.top}),z):x()}function x(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function f(N){return!N||"x"in N?N:{top:N.top,y:N.top,bottom:N.bottom,left:N.left,x:N.left,right:N.right,width:N.width,height:N.height}}function u(N,z){var S=z.top-N.top,_=z.left-N.left;return{top:S,left:_,height:z.height,width:z.width,bottom:S+z.height,right:_+z.width}}function b(N,z){for(var S=z;S;){if(S==N)return!0;S=h(S)}return!1}function h(N){var z=N.parentNode;return N.nodeType==9&&N!=ke?Et(N):(z&&z.assignedSlot&&(z=z.assignedSlot.parentNode),z&&z.nodeType==11&&z.host?z.host:z)}function E(N){return N&&N.nodeType===9}window.IntersectionObserver=l,window.IntersectionObserverEntry=g})()},74734:Et=>{/*!
- * Determine if an object is a Buffer
- *
- * @author Feross Aboukhadijeh <https://feross.org>
- * @license MIT
- */Et.exports=function(o){return o!=null&&(ke(o)||e(o)||!!o._isBuffer)};function ke(o){return!!o.constructor&&typeof o.constructor.isBuffer=="function"&&o.constructor.isBuffer(o)}function e(o){return typeof o.readFloatLE=="function"&&typeof o.slice=="function"&&ke(o.slice(0,0))}},65267:(Et,ke,e)=>{var o=e(56867),m=e(46229),g=e(93577),l=e(79228),C=e(87549),T=e(73819),A=200;function k(p,r,x,f){var u=-1,b=m,h=!0,E=p.length,N=[],z=r.length;if(!E)return N;x&&(r=l(r,C(x))),f?(b=g,h=!1):r.length>=A&&(b=T,h=!1,r=new o(r));e:for(;++u<E;){var S=p[u],_=x==null?S:x(S);if(S=f||S!==0?S:0,h&&_===_){for(var y=z;y--;)if(r[y]===_)continue e;N.push(S)}else b(r,_,f)||N.push(S)}return N}Et.exports=k},99203:Et=>{var ke=Math.floor,e=Math.random;function o(m,g){return m+ke(e()*(g-m+1))}Et.exports=o},63645:(Et,ke,e)=>{var o=e(96213),m=e(96537),g=e(18086),l=e(67998),C=o.isFinite,T=Math.min;function A(k){var p=Math[k];return function(r,x){if(r=g(r),x=x==null?0:T(m(x),292),x&&C(r)){var f=(l(r)+"e").split("e"),u=p(f[0]+"e"+(+f[1]+x));return f=(l(u)+"e").split("e"),+(f[0]+"e"+(+f[1]-x))}return p(r)}}Et.exports=A},28749:(Et,ke,e)=>{var o=e(65267),m=e(72840),g=e(53534),l=e(43797),C=g(function(T,A){return l(T)?o(T,m(A,1,l,!0)):[]});Et.exports=C},69018:(Et,ke,e)=>{var o=e(35605),m=e(74131);function g(l,C){return l&&l.length?m(l,o(C,3),!0):[]}Et.exports=g},97958:(Et,ke,e)=>{var o=e(63645),m=o("floor");Et.exports=m},27749:(Et,ke,e)=>{var o=e(99203),m=e(3112),g=e(19168),l=parseFloat,C=Math.min,T=Math.random;function A(k,p,r){if(r&&typeof r!="boolean"&&m(k,p,r)&&(p=r=void 0),r===void 0&&(typeof p=="boolean"?(r=p,p=void 0):typeof k=="boolean"&&(r=k,k=void 0)),k===void 0&&p===void 0?(k=0,p=1):(k=g(k),p===void 0?(p=k,k=0):p=g(p)),k>p){var x=k;k=p,p=x}if(r||k%1||p%1){var f=T();return C(k+f*(p-k+l("1e-"+((f+"").length-1))),p)}return o(k,p)}Et.exports=A},19168:(Et,ke,e)=>{var o=e(18086),m=1/0,g=17976931348623157e292;function l(C){if(!C)return C===0?C:0;if(C=o(C),C===m||C===-m){var T=C<0?-1:1;return T*g}return C===C?C:0}Et.exports=l},96537:(Et,ke,e)=>{var o=e(19168);function m(g){var l=o(g),C=l%1;return l===l?C?l-C:l:0}Et.exports=m},50755:(Et,ke,e)=>{var o=e(72840),m=e(53534),g=e(73245),l=e(43797),C=m(function(T){return g(o(T,1,l,!0))});Et.exports=C},90056:(Et,ke,e)=>{var o=e(65267),m=e(53534),g=e(43797),l=m(function(C,T){return g(C)?o(C,T):[]});Et.exports=l},64199:(Et,ke,e)=>{(function(){var o=e(57992),m=e(96975).utf8,g=e(74734),l=e(96975).bin,C=function(T,A){T.constructor==String?A&&A.encoding==="binary"?T=l.stringToBytes(T):T=m.stringToBytes(T):g(T)?T=Array.prototype.slice.call(T,0):!Array.isArray(T)&&T.constructor!==Uint8Array&&(T=T.toString());for(var k=o.bytesToWords(T),p=T.length*8,r=1732584193,x=-271733879,f=-1732584194,u=271733878,b=0;b<k.length;b++)k[b]=(k[b]<<8|k[b]>>>24)&16711935|(k[b]<<24|k[b]>>>8)&4278255360;k[p>>>5]|=128<<p%32,k[(p+64>>>9<<4)+14]=p;for(var h=C._ff,E=C._gg,N=C._hh,z=C._ii,b=0;b<k.length;b+=16){var S=r,_=x,y=f,a=u;r=h(r,x,f,u,k[b+0],7,-680876936),u=h(u,r,x,f,k[b+1],12,-389564586),f=h(f,u,r,x,k[b+2],17,606105819),x=h(x,f,u,r,k[b+3],22,-1044525330),r=h(r,x,f,u,k[b+4],7,-176418897),u=h(u,r,x,f,k[b+5],12,1200080426),f=h(f,u,r,x,k[b+6],17,-1473231341),x=h(x,f,u,r,k[b+7],22,-45705983),r=h(r,x,f,u,k[b+8],7,1770035416),u=h(u,r,x,f,k[b+9],12,-1958414417),f=h(f,u,r,x,k[b+10],17,-42063),x=h(x,f,u,r,k[b+11],22,-1990404162),r=h(r,x,f,u,k[b+12],7,1804603682),u=h(u,r,x,f,k[b+13],12,-40341101),f=h(f,u,r,x,k[b+14],17,-1502002290),x=h(x,f,u,r,k[b+15],22,1236535329),r=E(r,x,f,u,k[b+1],5,-165796510),u=E(u,r,x,f,k[b+6],9,-1069501632),f=E(f,u,r,x,k[b+11],14,643717713),x=E(x,f,u,r,k[b+0],20,-373897302),r=E(r,x,f,u,k[b+5],5,-701558691),u=E(u,r,x,f,k[b+10],9,38016083),f=E(f,u,r,x,k[b+15],14,-660478335),x=E(x,f,u,r,k[b+4],20,-405537848),r=E(r,x,f,u,k[b+9],5,568446438),u=E(u,r,x,f,k[b+14],9,-1019803690),f=E(f,u,r,x,k[b+3],14,-187363961),x=E(x,f,u,r,k[b+8],20,1163531501),r=E(r,x,f,u,k[b+13],5,-1444681467),u=E(u,r,x,f,k[b+2],9,-51403784),f=E(f,u,r,x,k[b+7],14,1735328473),x=E(x,f,u,r,k[b+12],20,-1926607734),r=N(r,x,f,u,k[b+5],4,-378558),u=N(u,r,x,f,k[b+8],11,-2022574463),f=N(f,u,r,x,k[b+11],16,1839030562),x=N(x,f,u,r,k[b+14],23,-35309556),r=N(r,x,f,u,k[b+1],4,-1530992060),u=N(u,r,x,f,k[b+4],11,1272893353),f=N(f,u,r,x,k[b+7],16,-155497632),x=N(x,f,u,r,k[b+10],23,-1094730640),r=N(r,x,f,u,k[b+13],4,681279174),u=N(u,r,x,f,k[b+0],11,-358537222),f=N(f,u,r,x,k[b+3],16,-722521979),x=N(x,f,u,r,k[b+6],23,76029189),r=N(r,x,f,u,k[b+9],4,-640364487),u=N(u,r,x,f,k[b+12],11,-421815835),f=N(f,u,r,x,k[b+15],16,530742520),x=N(x,f,u,r,k[b+2],23,-995338651),r=z(r,x,f,u,k[b+0],6,-198630844),u=z(u,r,x,f,k[b+7],10,1126891415),f=z(f,u,r,x,k[b+14],15,-1416354905),x=z(x,f,u,r,k[b+5],21,-57434055),r=z(r,x,f,u,k[b+12],6,1700485571),u=z(u,r,x,f,k[b+3],10,-1894986606),f=z(f,u,r,x,k[b+10],15,-1051523),x=z(x,f,u,r,k[b+1],21,-2054922799),r=z(r,x,f,u,k[b+8],6,1873313359),u=z(u,r,x,f,k[b+15],10,-30611744),f=z(f,u,r,x,k[b+6],15,-1560198380),x=z(x,f,u,r,k[b+13],21,1309151649),r=z(r,x,f,u,k[b+4],6,-145523070),u=z(u,r,x,f,k[b+11],10,-1120210379),f=z(f,u,r,x,k[b+2],15,718787259),x=z(x,f,u,r,k[b+9],21,-343485551),r=r+S>>>0,x=x+_>>>0,f=f+y>>>0,u=u+a>>>0}return o.endian([r,x,f,u])};C._ff=function(T,A,k,p,r,x,f){var u=T+(A&k|~A&p)+(r>>>0)+f;return(u<<x|u>>>32-x)+A},C._gg=function(T,A,k,p,r,x,f){var u=T+(A&p|k&~p)+(r>>>0)+f;return(u<<x|u>>>32-x)+A},C._hh=function(T,A,k,p,r,x,f){var u=T+(A^k^p)+(r>>>0)+f;return(u<<x|u>>>32-x)+A},C._ii=function(T,A,k,p,r,x,f){var u=T+(k^(A|~p))+(r>>>0)+f;return(u<<x|u>>>32-x)+A},C._blocksize=16,C._digestsize=16,Et.exports=function(T,A){if(T==null)throw new Error("Illegal argument "+T);var k=o.wordsToBytes(C(T,A));return A&&A.asBytes?k:A&&A.asString?l.bytesToString(k):o.bytesToHex(k)}})()},89675:(Et,ke,e)=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});var o=Object.assign||function(b){for(var h=1;h<arguments.length;h++){var E=arguments[h];for(var N in E)Object.prototype.hasOwnProperty.call(E,N)&&(b[N]=E[N])}return b},m=function(){function b(h,E){for(var N=0;N<E.length;N++){var z=E[N];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(h,z.key,z)}}return function(h,E,N){return E&&b(h.prototype,E),N&&b(h,N),h}}(),g=e(51044),l=p(g),C=e(66748),T=p(C),A=e(91731),k=p(A);function p(b){return b&&b.__esModule?b:{default:b}}function r(b,h){if(!(b instanceof h))throw new TypeError("Cannot call a class as a function")}function x(b,h){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:b}function f(b,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);b.prototype=Object.create(h&&h.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(b,h):b.__proto__=h)}var u=function(b){f(h,b);function h(){return r(this,h),x(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return m(h,[{key:"render",value:function(){var N=this.props,z=N.cell,S=N.row,_=N.col,y=N.attributesRenderer,a=N.className,$=N.style,ce=N.onMouseDown,de=N.onMouseOver,fe=N.onDoubleClick,se=N.onContextMenu,J=z.colSpan,ve=z.rowSpan,D=y?y(z,S,_):{};return l.default.createElement("td",o({className:a,onMouseDown:ce,onMouseOver:de,onDoubleClick:fe,onTouchEnd:fe,onContextMenu:se,colSpan:J,rowSpan:ve,style:$},D),this.props.children)}}]),h}(g.PureComponent);ke.default=u,u.propTypes={row:T.default.number.isRequired,col:T.default.number.isRequired,cell:T.default.shape(k.default).isRequired,selected:T.default.bool,editing:T.default.bool,updated:T.default.bool,attributesRenderer:T.default.func,onMouseDown:T.default.func.isRequired,onMouseOver:T.default.func.isRequired,onDoubleClick:T.default.func.isRequired,onContextMenu:T.default.func.isRequired,className:T.default.string,style:T.default.object},u.defaultProps={selected:!1,editing:!1,updated:!1,attributesRenderer:function(){}}},91731:(Et,ke,e)=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});var o=e(66748),m=g(o);function g(C){return C&&C.__esModule?C:{default:C}}var l={readOnly:m.default.bool,key:m.default.string,className:m.default.string,component:m.default.oneOfType([m.default.element,m.default.func]),forceComponent:m.default.bool,disableEvents:m.default.bool,disableUpdatedFlag:m.default.bool,colSpan:m.default.number,rowSpan:m.default.number,width:m.default.oneOfType([m.default.number,m.default.string]),overflow:m.default.oneOf(["wrap","nowrap","clip"]),dataEditor:m.default.func,valueViewer:m.default.func};ke.default=l},98784:(Et,ke,e)=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});var o=function(){function ce(de,fe){for(var se=0;se<fe.length;se++){var J=fe[se];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(de,J.key,J)}}return function(de,fe,se){return fe&&ce(de.prototype,fe),se&&ce(de,se),de}}(),m=e(51044),g=E(m),l=e(66748),C=E(l),T=e(22364),A=e(89675),k=E(A),p=e(91731),r=E(p),x=e(71477),f=E(x),u=e(59977),b=E(u),h=e(42523);function E(ce){return ce&&ce.__esModule?ce:{default:ce}}function N(ce,de){if(!(ce instanceof de))throw new TypeError("Cannot call a class as a function")}function z(ce,de){if(!ce)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return de&&(typeof de=="object"||typeof de=="function")?de:ce}function S(ce,de){if(typeof de!="function"&&de!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof de);ce.prototype=Object.create(de&&de.prototype,{constructor:{value:ce,enumerable:!1,writable:!0,configurable:!0}}),de&&(Object.setPrototypeOf?Object.setPrototypeOf(ce,de):ce.__proto__=de)}function _(ce){var de=ce.cell,fe=ce.row,se=ce.col,J=ce.valueRenderer,ve=ce.dataRenderer;return(0,h.renderData)(de,fe,se,J,ve)}function y(ce){var de=ce.cell,fe=ce.row,se=ce.col,J=ce.valueRenderer;return(0,h.renderValue)(de,fe,se,J)}function a(ce){var de=typeof ce.width=="number"?ce.width+"px":ce.width;return de?{width:de}:null}var $=function(ce){S(de,ce);function de(fe){N(this,de);var se=z(this,(de.__proto__||Object.getPrototypeOf(de)).call(this,fe));return se.handleChange=se.handleChange.bind(se),se.handleCommit=se.handleCommit.bind(se),se.handleRevert=se.handleRevert.bind(se),se.handleKey=se.handleKey.bind(se),se.handleMouseDown=se.handleMouseDown.bind(se),se.handleMouseOver=se.handleMouseOver.bind(se),se.handleContextMenu=se.handleContextMenu.bind(se),se.handleDoubleClick=se.handleDoubleClick.bind(se),se.state={updated:!1,reverting:!1,committing:!1,value:""},se}return o(de,[{key:"componentDidUpdate",value:function(se){var J=this;if(!this.props.cell.disableUpdatedFlag&&y(se)!==y(this.props)&&(this.setState({updated:!0}),this.timeout=setTimeout(function(){return J.setState({updated:!1})},700)),this.props.editing===!0&&se.editing===!1){var ve=this.props.clearing?"":_(this.props);this.setState({value:ve,reverting:!1})}se.editing===!0&&this.props.editing===!1&&!this.state.reverting&&!this.state.committing&&this.state.value!==_(this.props)&&this.props.onChange(this.props.row,this.props.col,this.state.value)}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout)}},{key:"handleChange",value:function(se){this.setState({value:se,committing:!1})}},{key:"handleCommit",value:function(se,J){var ve=this.props,D=ve.onChange,R=ve.onNavigate;se!==_(this.props)?(this.setState({value:se,committing:!0}),D(this.props.row,this.props.col,se)):this.handleRevert(),J&&(J.preventDefault(),R(J,!0))}},{key:"handleRevert",value:function(){this.setState({reverting:!0}),this.props.onRevert()}},{key:"handleMouseDown",value:function(se){var J=this.props,ve=J.row,D=J.col,R=J.onMouseDown,V=J.cell;V.disableEvents||R(ve,D,se)}},{key:"handleMouseOver",value:function(se){var J=this.props,ve=J.row,D=J.col,R=J.onMouseOver,V=J.cell;V.disableEvents||R(ve,D)}},{key:"handleDoubleClick",value:function(se){var J=this.props,ve=J.row,D=J.col,R=J.onDoubleClick,V=J.cell;V.disableEvents||R(ve,D)}},{key:"handleContextMenu",value:function(se){var J=this.props,ve=J.row,D=J.col,R=J.onContextMenu,V=J.cell;V.disableEvents||R(se,ve,D)}},{key:"handleKey",value:function(se){var J=se.which||se.keyCode;if(J===T.ESCAPE_KEY)return this.handleRevert();var ve=this.props,D=ve.cell.component,R=ve.forceEdit,V=R||!!D,O=J===T.ENTER_KEY||J===T.TAB_KEY||!V&&[T.LEFT_KEY,T.RIGHT_KEY,T.UP_KEY,T.DOWN_KEY].includes(J);O&&this.handleCommit(this.state.value,se)}},{key:"renderComponent",value:function(se,J){var ve=J.component,D=J.readOnly,R=J.forceComponent;if(se&&!D||R)return ve}},{key:"renderEditor",value:function(se,J,ve,D,R){if(se){var V=J.dataEditor||R||f.default;return g.default.createElement(V,{cell:J,row:ve,col:D,value:this.state.value,onChange:this.handleChange,onCommit:this.handleCommit,onRevert:this.handleRevert,onKeyDown:this.handleKey})}}},{key:"renderViewer",value:function(se,J,ve,D,R){var V=se.valueViewer||R||b.default,O=(0,h.renderValue)(se,J,ve,D);return g.default.createElement(V,{cell:se,row:J,col:ve,value:O})}},{key:"render",value:function(){var se=this.props,J=se.row,ve=se.col,D=se.cell,R=se.cellRenderer,V=se.valueRenderer,O=se.dataEditor,Ce=se.valueViewer,ae=se.attributesRenderer,q=se.selected,K=se.editing,xe=se.onKeyUp,te=this.state.updated,H=this.renderComponent(K,D)||this.renderEditor(K,D,J,ve,O)||this.renderViewer(D,J,ve,V,Ce),re=[D.className,"cell",D.overflow,q&&"selected",K&&"editing",D.readOnly&&"read-only",te&&"updated"].filter(function(be){return be}).join(" ");return g.default.createElement(R,{row:J,col:ve,cell:D,selected:q,editing:K,updated:te,attributesRenderer:ae,className:re,style:a(D),onMouseDown:this.handleMouseDown,onMouseOver:this.handleMouseOver,onDoubleClick:this.handleDoubleClick,onContextMenu:this.handleContextMenu,onKeyUp:xe},H)}}]),de}(m.PureComponent);ke.default=$,$.propTypes={row:C.default.number.isRequired,col:C.default.number.isRequired,cell:C.default.shape(r.default).isRequired,forceEdit:C.default.bool,selected:C.default.bool,editing:C.default.bool,editValue:C.default.any,clearing:C.default.bool,cellRenderer:C.default.func,valueRenderer:C.default.func.isRequired,dataRenderer:C.default.func,valueViewer:C.default.func,dataEditor:C.default.func,attributesRenderer:C.default.func,onNavigate:C.default.func.isRequired,onMouseDown:C.default.func.isRequired,onMouseOver:C.default.func.isRequired,onDoubleClick:C.default.func.isRequired,onContextMenu:C.default.func.isRequired,onChange:C.default.func.isRequired,onRevert:C.default.func.isRequired,onEdit:C.default.func},$.defaultProps={forceEdit:!1,selected:!1,editing:!1,clearing:!1,cellRenderer:k.default}},71477:(Et,ke,e)=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});var o=function(){function u(b,h){for(var E=0;E<h.length;E++){var N=h[E];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(b,N.key,N)}}return function(b,h,E){return h&&u(b.prototype,h),E&&u(b,E),b}}(),m=e(51044),g=k(m),l=e(66748),C=k(l),T=e(91731),A=k(T);function k(u){return u&&u.__esModule?u:{default:u}}function p(u,b){if(!(u instanceof b))throw new TypeError("Cannot call a class as a function")}function r(u,b){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:u}function x(u,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);u.prototype=Object.create(b&&b.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(u,b):u.__proto__=b)}var f=function(u){x(b,u);function b(h){p(this,b);var E=r(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,h));return E.handleChange=E.handleChange.bind(E),E}return o(b,[{key:"componentDidMount",value:function(){this._input.focus()}},{key:"handleChange",value:function(E){this.props.onChange(E.target.value)}},{key:"render",value:function(){var E=this,N=this.props,z=N.value,S=N.onKeyDown;return g.default.createElement("input",{ref:function(y){E._input=y},className:"data-editor",value:z,onChange:this.handleChange,onKeyDown:S})}}]),b}(m.PureComponent);ke.default=f,f.propTypes={value:C.default.node.isRequired,row:C.default.number.isRequired,col:C.default.number.isRequired,cell:C.default.shape(A.default),onChange:C.default.func.isRequired,onCommit:C.default.func.isRequired,onRevert:C.default.func.isRequired,onKeyDown:C.default.func.isRequired}},16437:(Et,ke,e)=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});var o=Object.assign||function(ve){for(var D=1;D<arguments.length;D++){var R=arguments[D];for(var V in R)Object.prototype.hasOwnProperty.call(R,V)&&(ve[V]=R[V])}return ve},m=function(){function ve(D,R){for(var V=0;V<R.length;V++){var O=R[V];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(D,O.key,O)}}return function(D,R,V){return R&&ve(D.prototype,R),V&&ve(D,V),D}}(),g=e(51044),l=_(g),C=e(66748),T=_(C),A=e(61869),k=_(A),p=e(9726),r=_(p),x=e(89675),f=_(x),u=e(98784),b=_(u),h=e(71477),E=_(h),N=e(59977),z=_(N),S=e(22364);function _(ve){return ve&&ve.__esModule?ve:{default:ve}}function y(ve,D){var R={};for(var V in ve)D.indexOf(V)>=0||Object.prototype.hasOwnProperty.call(ve,V)&&(R[V]=ve[V]);return R}function a(ve,D){if(!(ve instanceof D))throw new TypeError("Cannot call a class as a function")}function $(ve,D){if(!ve)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D&&(typeof D=="object"||typeof D=="function")?D:ve}function ce(ve,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof D);ve.prototype=Object.create(D&&D.prototype,{constructor:{value:ve,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(ve,D):ve.__proto__=D)}var de=function(D){return Object.keys(D).length===0},fe=function(D,R){for(var V=[],O=R-D>0,Ce=D;O?Ce<=R:Ce>=R;O?Ce++:Ce--)O?V.push(Ce):V.unshift(Ce);return V},se=function(D){return D.split(/\r\n|\n|\r/).map(function(R){return R.split(" ")})},J=function(ve){ce(D,ve);function D(R){a(this,D);var V=$(this,(D.__proto__||Object.getPrototypeOf(D)).call(this,R));return V.onMouseDown=V.onMouseDown.bind(V),V.onMouseUp=V.onMouseUp.bind(V),V.onMouseOver=V.onMouseOver.bind(V),V.onDoubleClick=V.onDoubleClick.bind(V),V.onContextMenu=V.onContextMenu.bind(V),V.handleNavigate=V.handleNavigate.bind(V),V.handleKey=V.handleKey.bind(V).bind(V),V.handleCut=V.handleCut.bind(V),V.handleCopy=V.handleCopy.bind(V),V.handlePaste=V.handlePaste.bind(V),V.pageClick=V.pageClick.bind(V),V.onChange=V.onChange.bind(V),V.onRevert=V.onRevert.bind(V),V.isSelected=V.isSelected.bind(V),V.isEditing=V.isEditing.bind(V),V.isClearing=V.isClearing.bind(V),V.handleComponentKey=V.handleComponentKey.bind(V),V.handleKeyboardCellMovement=V.handleKeyboardCellMovement.bind(V),V.defaultState={start:{},end:{},selecting:!1,forceEdit:!1,editing:{},clear:{}},V.state=V.defaultState,V.removeAllListeners=V.removeAllListeners.bind(V),V.handleIEClipboardEvents=V.handleIEClipboardEvents.bind(V),V}return m(D,[{key:"removeAllListeners",value:function(){document.removeEventListener("mousedown",this.pageClick),document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("cut",this.handleCut),document.removeEventListener("copy",this.handleCopy),document.removeEventListener("paste",this.handlePaste),document.removeEventListener("keydown",this.handleIEClipboardEvents)}},{key:"componentDidMount",value:function(){this.dgDom&&this.dgDom.addEventListener("keydown",this.handleComponentKey)}},{key:"componentWillUnmount",value:function(){this.dgDom&&this.dgDom.removeEventListener("keydown",this.handleComponentKey),this.removeAllListeners()}},{key:"isSelectionControlled",value:function(){return"selected"in this.props}},{key:"getState",value:function(){var V=this.state;if(this.isSelectionControlled()){var O=this.props.selected||{},Ce=O.start,ae=O.end;Ce=Ce||this.defaultState.start,ae=ae||this.defaultState.end,V=o({},V,{start:Ce,end:ae})}return V}},{key:"_setState",value:function(V){var O=this.props.editModeChanged;if(O&&V.editing){var Ce=!de(this.state.editing),ae=!de(V.editing);Ce!=ae&&O(ae)}if(this.isSelectionControlled()&&("start"in V||"end"in V)){var q=V.start,K=V.end,xe=y(V,["start","end"]),te=this.props,H=te.selected,re=te.onSelect;H=H||{},q||(q="start"in H?H.start:this.defaultState.start),K||(K="end"in H?H.end:this.defaultState.end),re&&re({start:q,end:K}),this.setState(xe)}else this.setState(V)}},{key:"pageClick",value:function(V){if(!this.props.disablePageClick){var O=this.dgDom;O.contains(V.target)||(this.setState(this.defaultState),this.removeAllListeners())}}},{key:"handleCut",value:function(V){if(de(this.state.editing)){V.preventDefault(),this.handleCopy(V);var O=this.getState(),Ce=O.start,ae=O.end;this.clearSelectedCells(Ce,ae)}}},{key:"handleIEClipboardEvents",value:function(V){V.ctrlKey&&(V.keyCode===67?this.handleCopy(V):V.keyCode===88?this.handleCut(V):(V.keyCode===86||V.which===86)&&this.handlePaste(V))}},{key:"handleCopy",value:function(V){if(de(this.state.editing)){V.preventDefault();var O=this.props,Ce=O.dataRenderer,ae=O.valueRenderer,q=O.data,K=this.getState(),xe=K.start,te=K.end;if(this.props.handleCopy)this.props.handleCopy({event:V,dataRenderer:Ce,valueRenderer:ae,data:q,start:xe,end:te,range:fe});else{var H=fe(xe.i,te.i).map(function(re){return fe(xe.j,te.j).map(function(be){var Le=q[re][be],Ve=Ce?Ce(Le,re,be):null;return Ve===""||Ve===null||typeof Ve>"u"?ae(Le,re,be):Ve}).join(" ")}).join("\n");window.clipboardData&&window.clipboardData.setData?window.clipboardData.setData("Text",H):V.clipboardData.setData("text/plain",H)}}}},{key:"handlePaste",value:function(V){if(de(this.state.editing)){var O=this.getState(),Ce=O.start,ae=O.end;Ce={i:Math.min(Ce.i,ae.i),j:Math.min(Ce.j,ae.j)},ae={i:Math.max(Ce.i,ae.i),j:Math.max(Ce.j,ae.j)};var q=this.props.parsePaste||se,K=[],xe=[];window.clipboardData&&window.clipboardData.getData?xe=q(window.clipboardData.getData("Text")):V.clipboardData&&V.clipboardData.getData&&(xe=q(V.clipboardData.getData("text/plain")));var te=this.props,H=te.data,re=te.onCellsChanged,be=te.onPaste,Le=te.onChange;if(re){var Ve=[];xe.forEach(function(Ne,We){Ne.forEach(function(ze,ft){ae={i:Ce.i+We,j:Ce.j+ft};var mt=H[ae.i]&&H[ae.i][ae.j];mt?mt.readOnly||K.push({cell:mt,row:ae.i,col:ae.j,value:ze}):Ve.push({row:ae.i,col:ae.j,value:ze})})}),Ve.length?re(K,Ve):re(K)}else be?(xe.forEach(function(Ne,We){var ze=[];Ne.forEach(function(ft,mt){ae={i:Ce.i+We,j:Ce.j+mt};var i=H[ae.i]&&H[ae.i][ae.j];ze.push({cell:i,data:ft})}),K.push(ze)}),be(K)):Le&&xe.forEach(function(Ne,We){Ne.forEach(function(ze,ft){ae={i:Ce.i+We,j:Ce.j+ft};var mt=H[ae.i]&&H[ae.i][ae.j];mt&&!mt.readOnly&&Le(mt,ae.i,ae.j,ze)})});this._setState({end:ae})}}},{key:"handleKeyboardCellMovement",value:function(V){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ce=this.getState(),ae=Ce.start,q=Ce.editing,K=this.props.data,xe=q&&!de(q),te=K[ae.i]&&K[ae.i][ae.j];if(xe&&!O)return!1;var H=te&&te.component,re=V.which||V.keyCode;if(H&&xe){V.preventDefault();return}re===S.TAB_KEY?this.handleNavigate(V,{i:0,j:V.shiftKey?-1:1},!0):re===S.RIGHT_KEY?this.handleNavigate(V,{i:0,j:1}):re===S.LEFT_KEY?this.handleNavigate(V,{i:0,j:-1}):re===S.UP_KEY?this.handleNavigate(V,{i:-1,j:0}):re===S.DOWN_KEY?this.handleNavigate(V,{i:1,j:0}):O&&re===S.ENTER_KEY&&this.handleNavigate(V,{i:V.shiftKey?-1:1,j:0})}},{key:"handleKey",value:function(V){if(!(V.isPropagationStopped&&V.isPropagationStopped())){var O=V.which||V.keyCode,Ce=this.getState(),ae=Ce.start,q=Ce.end,K=Ce.editing,xe=K&&!de(K),te=!ae||de(ae),H=V.ctrlKey||V.metaKey,re=O===S.DELETE_KEY||O===S.BACKSPACE_KEY,be=O===S.ENTER_KEY,Le=O>=48&&O<=57,Ve=O>=65&&O<=90,Ne=O>=160&&O<=255,We=O>=96&&O<=105,ze=!te&&this.props.data[ae.i][ae.j],ft=[187,189,190,107,109,110].indexOf(O)>-1;if(te||H)return!0;xe||(this.handleKeyboardCellMovement(V),re?(V.preventDefault(),this.clearSelectedCells(ae,q)):ze&&!ze.readOnly&&(be?(this._setState({editing:ae,clear:{},forceEdit:!0}),V.preventDefault()):(Le||We||Ve||Ne||ft)&&this._setState({editing:ae,clear:ae,forceEdit:!1})))}}},{key:"getSelectedCells",value:function(V,O,Ce){var ae=[];return fe(O.i,Ce.i).map(function(q){fe(O.j,Ce.j).map(function(K){V[q]&&V[q][K]&&ae.push({cell:V[q][K],row:q,col:K})})}),ae}},{key:"clearSelectedCells",value:function(V,O){var Ce=this,ae=this.props,q=ae.data,K=ae.onCellsChanged,xe=ae.onChange,te=this.getSelectedCells(q,V,O).filter(function(H){return!H.cell.readOnly}).map(function(H){return o({},H,{value:""})});K?(K(te),this.onRevert()):xe&&setTimeout(function(){te.forEach(function(H){var re=H.cell,be=H.row,Le=H.col,Ve=H.value;xe(re,be,Le,Ve)}),Ce.onRevert()},0)}},{key:"updateLocationSingleCell",value:function(V){this._setState({start:V,end:V,editing:{}})}},{key:"updateLocationMultipleCells",value:function(V){var O=this.getState(),Ce=O.start,ae=O.end,q=this.props.data,K={i:Ce.i,j:Ce.j},xe={i:ae.i+V.i,j:Math.min(q[0].length-1,Math.max(0,ae.j+V.j))};this._setState({start:K,end:xe,editing:{}})}},{key:"searchForNextSelectablePos",value:function(V,O,Ce,ae,q){for(var K=function(Le){return{i:Le.i-1,j:O[0].length-1}},xe=function(Le){return{i:Le.i+1,j:0}},te=function(Le){return{i:Le.i+ae.i,j:Le.j+ae.j}},H=function(Le){var Ve=Le.i,Ne=Le.j;return O[Ve]&&typeof O[Ve][Ne]<"u"},re=te(Ce);H(re)&&!V(O[re.i][re.j],re.i,re.j);)re=te(re);if(!H(re)){if(!q)return null;ae.j<0?re=K(re):re=xe(re)}return H(re)&&!V(O[re.i][re.j],re.i,re.j)?this.searchForNextSelectablePos(V,O,re,ae,q):H(re)?re:null}},{key:"handleNavigate",value:function(V,O,Ce){if(O&&(O.i||O.j)){var ae=this.props.data,q=this.getState(),K=q.start,xe=V.shiftKey&&!Ce,te=this.props.isCellNavigable?this.props.isCellNavigable:function(){return!0};if(xe)this.updateLocationMultipleCells(O);else{var H=this.searchForNextSelectablePos(te,ae,K,O,Ce);H&&this.updateLocationSingleCell(H)}V.preventDefault()}}},{key:"handleComponentKey",value:function(V){var O=this,Ce=V.which||V.keyCode;if([S.ENTER_KEY,S.ESCAPE_KEY,S.TAB_KEY].includes(Ce)){var ae=this.state.editing,q=this.props.data,K=!de(ae);if(K){var xe=q[ae.i][ae.j],te=V.shiftKey?-1:1;if(xe&&xe.component&&!xe.forceComponent){V.preventDefault();var H=this.onRevert;Ce===S.ENTER_KEY?H=function(){return O.handleNavigate(V,{i:te,j:0})}:Ce===S.TAB_KEY&&(H=function(){return O.handleNavigate(V,{i:0,j:te},!0)}),setTimeout(function(){H(),O.dgDom&&O.dgDom.focus({preventScroll:!0})},1)}}}}},{key:"onContextMenu",value:function(V,O,Ce){var ae=this.props.data[O][Ce];this.props.onContextMenu&&this.props.onContextMenu(V,ae,O,Ce)}},{key:"onDoubleClick",value:function(V,O){var Ce=this.props.data[V][O];Ce.readOnly||this._setState({editing:{i:V,j:O},forceEdit:!0,clear:{}})}},{key:"onMouseDown",value:function(V,O,Ce){var ae=!de(this.state.editing)&&this.state.editing.i===V&&this.state.editing.j===O,q=de(this.state.editing)||this.state.editing.i!==V||this.state.editing.j!==O?{}:this.state.editing;this._setState({selecting:!ae,start:Ce.shiftKey?this.getState().start:{i:V,j:O},end:{i:V,j:O},editing:q,forceEdit:!!ae});var K=window.navigator.userAgent,xe=/MSIE|Trident/.test(K);xe&&document.addEventListener("keydown",this.handleIEClipboardEvents),document.addEventListener("mouseup",this.onMouseUp),document.addEventListener("mousedown",this.pageClick),document.addEventListener("cut",this.handleCut),document.addEventListener("copy",this.handleCopy),document.addEventListener("paste",this.handlePaste)}},{key:"onMouseOver",value:function(V,O){this.state.selecting&&de(this.state.editing)&&this._setState({end:{i:V,j:O}})}},{key:"onMouseUp",value:function(){this._setState({selecting:!1}),document.removeEventListener("mouseup",this.onMouseUp)}},{key:"onChange",value:function(V,O,Ce){var ae=this.props,q=ae.onChange,K=ae.onCellsChanged,xe=ae.data;K?K([{cell:xe[V][O],row:V,col:O,value:Ce}]):q&&q(xe[V][O],V,O,Ce),this.onRevert()}},{key:"onRevert",value:function(){var V=this;this._setState({editing:{}}),setTimeout(function(){V.dgDom&&V.dgDom.focus({preventScroll:!0})},1)}},{key:"componentDidUpdate",value:function(V,O){var Ce=this.state,ae=Ce.start,q=Ce.end,K=O.end;!de(q)&&!(q.i===K.i&&q.j===K.j)&&!this.isSelectionControlled()&&this.props.onSelect&&this.props.onSelect({start:ae,end:q})}},{key:"isSelectedRow",value:function(V){var O=this.getState(),Ce=O.start,ae=O.end,q=Ce.i,K=ae.i;return q<=K?V>=q&&V<=K:V<=q&&V>=K}},{key:"isSelected",value:function(V,O){var Ce=this.getState(),ae=Ce.start,q=Ce.end,K=O>=ae.j&&O<=q.j,xe=O<=ae.j&&O>=q.j,te=V>=ae.i&&V<=q.i,H=V<=ae.i&&V>=q.i;return K&&te||xe&&te||xe&&H||K&&H}},{key:"isEditing",value:function(V,O){return this.state.editing.i===V&&this.state.editing.j===O}},{key:"isClearing",value:function(V,O){return this.state.clear.i===V&&this.state.clear.j===O}},{key:"render",value:function(){var V=this,O=this.props,Ce=O.sheetRenderer,ae=O.rowRenderer,q=O.cellRenderer,K=O.dataRenderer,xe=O.valueRenderer,te=O.dataEditor,H=O.valueViewer,re=O.attributesRenderer,be=O.className,Le=O.overflow,Ve=O.data,Ne=O.keyFn,We=this.state.forceEdit;return l.default.createElement("span",{ref:function(ft){V.dgDom=ft},tabIndex:"0",className:"data-grid-container",onKeyDown:this.handleKey},l.default.createElement(Ce,{data:Ve,className:["data-grid",be,Le].filter(function(ze){return ze}).join(" ")},Ve.map(function(ze,ft){return l.default.createElement(ae,{key:Ne?Ne(ft):ft,row:ft,cells:ze,selected:V.isSelectedRow(ft)},ze.map(function(mt,i){var gt=V.isEditing(ft,i);return l.default.createElement(b.default,o({key:mt.key?mt.key:ft+"-"+i,row:ft,col:i,cell:mt,forceEdit:!1,onMouseDown:V.onMouseDown,onMouseOver:V.onMouseOver,onDoubleClick:V.onDoubleClick,onContextMenu:V.onContextMenu,onChange:V.onChange,onRevert:V.onRevert,onNavigate:V.handleKeyboardCellMovement,onKey:V.handleKey,selected:V.isSelected(ft,i),editing:gt,clearing:V.isClearing(ft,i),attributesRenderer:re,cellRenderer:q,valueRenderer:xe,dataRenderer:K,valueViewer:H,dataEditor:te},gt?{forceEdit:We}:{}))}))})))}}]),D}(g.PureComponent);ke.default=J,J.propTypes={data:T.default.array.isRequired,className:T.default.string,disablePageClick:T.default.bool,overflow:T.default.oneOf(["wrap","nowrap","clip"]),onChange:T.default.func,onCellsChanged:T.default.func,onContextMenu:T.default.func,onSelect:T.default.func,isCellNavigable:T.default.func,selected:T.default.shape({start:T.default.shape({i:T.default.number,j:T.default.number}),end:T.default.shape({i:T.default.number,j:T.default.number})}),valueRenderer:T.default.func.isRequired,dataRenderer:T.default.func,sheetRenderer:T.default.func.isRequired,rowRenderer:T.default.func.isRequired,cellRenderer:T.default.func.isRequired,valueViewer:T.default.func,dataEditor:T.default.func,parsePaste:T.default.func,attributesRenderer:T.default.func,keyFn:T.default.func,handleCopy:T.default.func,editModeChanged:T.default.func},J.defaultProps={sheetRenderer:k.default,rowRenderer:r.default,cellRenderer:f.default,valueViewer:z.default,dataEditor:E.default}},9726:(Et,ke,e)=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});var o=function(){function u(b,h){for(var E=0;E<h.length;E++){var N=h[E];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(b,N.key,N)}}return function(b,h,E){return h&&u(b.prototype,h),E&&u(b,E),b}}(),m=e(51044),g=k(m),l=e(66748),C=k(l),T=e(91731),A=k(T);function k(u){return u&&u.__esModule?u:{default:u}}function p(u,b){if(!(u instanceof b))throw new TypeError("Cannot call a class as a function")}function r(u,b){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:u}function x(u,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);u.prototype=Object.create(b&&b.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(u,b):u.__proto__=b)}var f=function(u){x(b,u);function b(){return p(this,b),r(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return o(b,[{key:"render",value:function(){return g.default.createElement("tr",null,this.props.children)}}]),b}(m.PureComponent);f.propTypes={row:C.default.number.isRequired,cells:C.default.arrayOf(C.default.shape(A.default)).isRequired},ke.default=f},61869:(Et,ke,e)=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});var o=function(){function x(f,u){for(var b=0;b<u.length;b++){var h=u[b];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(f,h.key,h)}}return function(f,u,b){return u&&x(f.prototype,u),b&&x(f,b),f}}(),m=e(51044),g=T(m),l=e(66748),C=T(l);function T(x){return x&&x.__esModule?x:{default:x}}function A(x,f){if(!(x instanceof f))throw new TypeError("Cannot call a class as a function")}function k(x,f){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:x}function p(x,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);x.prototype=Object.create(f&&f.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(x,f):x.__proto__=f)}var r=function(x){p(f,x);function f(){return A(this,f),k(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}return o(f,[{key:"render",value:function(){return g.default.createElement("table",{className:this.props.className},g.default.createElement("tbody",null,this.props.children))}}]),f}(m.PureComponent);r.propTypes={className:C.default.string,data:C.default.array.isRequired},ke.default=r},59977:(Et,ke,e)=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});var o=function(){function u(b,h){for(var E=0;E<h.length;E++){var N=h[E];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(b,N.key,N)}}return function(b,h,E){return h&&u(b.prototype,h),E&&u(b,E),b}}(),m=e(51044),g=k(m),l=e(66748),C=k(l),T=e(91731),A=k(T);function k(u){return u&&u.__esModule?u:{default:u}}function p(u,b){if(!(u instanceof b))throw new TypeError("Cannot call a class as a function")}function r(u,b){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:u}function x(u,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);u.prototype=Object.create(b&&b.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(u,b):u.__proto__=b)}var f=function(u){x(b,u);function b(){return p(this,b),r(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return o(b,[{key:"render",value:function(){var E=this.props.value;return g.default.createElement("span",{className:"value-viewer"},E)}}]),b}(m.PureComponent);ke.default=f,f.propTypes={row:C.default.number.isRequired,col:C.default.number.isRequired,cell:C.default.shape(A.default),value:C.default.node.isRequired}},32046:(Et,ke,e)=>{"use strict";var o;o={value:!0},o=o=o=o=o=o=o=void 0;var m=e(16437),g=h(m),l=e(61869),C=h(l),T=e(9726),A=h(T),k=e(89675),p=h(k),r=e(71477),x=h(r),f=e(59977),u=h(f),b=e(42523);function h(E){return E&&E.__esModule?E:{default:E}}ke.Ay=g.default,o=C.default,o=A.default,o=p.default,o=x.default,o=u.default,o=b.renderValue,o=b.renderData},22364:(Et,ke)=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});var e=ke.TAB_KEY=9,o=ke.ENTER_KEY=13,m=ke.ESCAPE_KEY=27,g=ke.LEFT_KEY=37,l=ke.UP_KEY=38,C=ke.RIGHT_KEY=39,T=ke.DOWN_KEY=40,A=ke.DELETE_KEY=46,k=ke.BACKSPACE_KEY=8},42523:(Et,ke)=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0}),ke.renderValue=e,ke.renderData=o;function e(m,g,l,C){var T=C(m,g,l);return T===null||typeof T>"u"?"":T}function o(m,g,l,C,T){var A=T?T(m,g,l):null;return A===null||typeof A>"u"?e(m,g,l,C):A}},8357:function(Et,ke,e){(function(o,m){Et.exports=m(e(51044))})(this,function(o){return(()=>{var m={703:(T,A,k)=>{"use strict";var p=k(414);function r(){}function x(){}x.resetWarningCache=r,T.exports=function(){function f(h,E,N,z,S,_){if(_!==p){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}function u(){return f}f.isRequired=f;var b={array:f,bool:f,func:f,number:f,object:f,string:f,symbol:f,any:f,arrayOf:u,element:f,elementType:f,instanceOf:u,node:f,objectOf:u,oneOf:u,oneOfType:u,shape:u,exact:u,checkPropTypes:x,resetWarningCache:r};return b.PropTypes=b,b}},697:(T,A,k)=>{T.exports=k(703)()},414:T=>{"use strict";T.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},427:T=>{"use strict";T.exports=o}},g={};function l(T){var A=g[T];if(A!==void 0)return A.exports;var k=g[T]={exports:{}};return m[T](k,k.exports,l),k.exports}l.n=T=>{var A=T&&T.__esModule?()=>T.default:()=>T;return l.d(A,{a:A}),A},l.d=(T,A)=>{for(var k in A)l.o(A,k)&&!l.o(T,k)&&Object.defineProperty(T,k,{enumerable:!0,get:A[k]})},l.o=(T,A)=>Object.prototype.hasOwnProperty.call(T,A),l.r=T=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(T,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(T,"__esModule",{value:!0})};var C={};return(()=>{"use strict";l.r(C),l.d(C,{Component:()=>ve,containCrop:()=>se,default:()=>ve,makeAspectCrop:()=>ce});var T=l(427),A=l.n(T),k=l(697),p=l.n(k);function r(D){var R,V,O="";if(typeof D=="string"||typeof D=="number")O+=D;else if(typeof D=="object")if(Array.isArray(D))for(R=0;R<D.length;R++)D[R]&&(V=r(D[R]))&&(O&&(O+=" "),O+=V);else for(R in D)D[R]&&(O&&(O+=" "),O+=R);return O}function x(D){return(x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(D)}function f(D,R){if(!(D instanceof R))throw new TypeError("Cannot call a class as a function")}function u(D,R){for(var V=0;V<R.length;V++){var O=R[V];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(D,O.key,O)}}function b(D,R){return(b=Object.setPrototypeOf||function(V,O){return V.__proto__=O,V})(D,R)}function h(D,R){return!R||x(R)!=="object"&&typeof R!="function"?E(D):R}function E(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function N(D){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)})(D)}function z(D,R){var V=Object.keys(D);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(D);R&&(O=O.filter(function(Ce){return Object.getOwnPropertyDescriptor(D,Ce).enumerable})),V.push.apply(V,O)}return V}function S(D){for(var R=1;R<arguments.length;R++){var V=arguments[R]!=null?arguments[R]:{};R%2?z(Object(V),!0).forEach(function(O){_(D,O,V[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(V)):z(Object(V)).forEach(function(O){Object.defineProperty(D,O,Object.getOwnPropertyDescriptor(V,O))})}return D}function _(D,R,V){return R in D?Object.defineProperty(D,R,{value:V,enumerable:!0,configurable:!0,writable:!0}):D[R]=V,D}function y(D,R,V){return Math.min(Math.max(D,R),V)}function a(D){return D&&!isNaN(D.width)&&!isNaN(D.height)}function $(D){return D==="n"?"s":D==="ne"?"sw":D==="e"?"w":D==="se"?"nw":D==="s"?"n":D==="sw"?"ne":D==="w"?"e":D==="nw"?"se":D}function ce(D,R,V){if(isNaN(D.aspect))return console.warn("`crop.aspect` should be a number in order to make an aspect crop",D),D;var O=S({unit:"px",x:0,y:0},D);return D.width&&(O.height=O.width/D.aspect),D.height&&(O.width=O.height*D.aspect),O.y+O.height>V&&(O.height=V-O.y,O.width=O.height*D.aspect),O.x+O.width>R&&(O.width=R-O.x,O.height=O.width/D.aspect),O}function de(D,R,V){return D.unit==="%"?D:{unit:"%",aspect:D.aspect,x:D.x/R*100,y:D.y/V*100,width:D.width/R*100,height:D.height/V*100}}function fe(D,R,V){return D.unit?D.unit==="px"?D:{unit:"px",aspect:D.aspect,x:D.x*R/100,y:D.y*V/100,width:D.width*R/100,height:D.height*V/100}:S(S({},D),{},{unit:"px"})}function se(D,R,V,O){var Ce=fe(R,V,O),ae=fe(D,V,O),q=S({},Ce);if(!Ce.aspect)return Ce.x<0?(q.x=0,q.width+=Ce.x):Ce.x+Ce.width>V&&(q.width=V-Ce.x),Ce.y+Ce.height>O&&(q.height=O-Ce.y),q;var K=!1;Ce.x<0?(q.x=0,q.width+=Ce.x,q.height=q.width/Ce.aspect,K=!0):Ce.x+Ce.width>V&&(q.width=V-Ce.x,q.height=q.width/Ce.aspect,K=!0),K&&ae.y>q.y&&(q.y=Ce.y+(Ce.height-q.height));var xe=!1;return q.y+q.height>O&&(q.height=O-Ce.y,q.width=q.height*Ce.aspect,xe=!0),xe&&ae.x>q.x&&(q.x=Ce.x+(Ce.width-q.width)),q}var J={capture:!0,passive:!1},ve=function(D){(function(K,xe){if(typeof xe!="function"&&xe!==null)throw new TypeError("Super expression must either be null or a function");K.prototype=Object.create(xe&&xe.prototype,{constructor:{value:K,writable:!0,configurable:!0}}),xe&&b(K,xe)})(q,D);var R,V,O,Ce,ae=(O=q,Ce=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(K){return!1}}(),function(){var K,xe=N(O);if(Ce){var te=N(this).constructor;K=Reflect.construct(xe,arguments,te)}else K=xe.apply(this,arguments);return h(this,K)});function q(){var K;f(this,q);for(var xe=arguments.length,te=new Array(xe),H=0;H<xe;H++)te[H]=arguments[H];return _(E(K=ae.call.apply(ae,[this].concat(te))),"window",typeof window<"u"?window:{}),_(E(K),"document",typeof document<"u"?document:{}),_(E(K),"state",{}),_(E(K),"keysDown",new Set),_(E(K),"onCropPointerDown",function(re){var be=K.props,Le=be.crop,Ve=be.disabled,Ne=K.mediaDimensions,We=fe(Le,Ne.width,Ne.height);if(!Ve){re.cancelable&&re.preventDefault(),K.bindDocMove(),K.componentRef.focus({preventScroll:!0});var ze=re.target.dataset.ord,ft=ze==="nw"||ze==="w"||ze==="sw",mt=ze==="nw"||ze==="n"||ze==="ne";K.evData={clientStartX:re.clientX,clientStartY:re.clientY,cropStartWidth:We.width,cropStartHeight:We.height,cropStartX:ft?We.x+We.width:We.x,cropStartY:mt?We.y+We.height:We.y,xInversed:ft,yInversed:mt,xCrossOver:ft,yCrossOver:mt,startXCrossOver:ft,startYCrossOver:mt,isResize:re.target.dataset.ord,ord:ze},K.mouseDownOnCrop=!0,K.setState({cropIsActive:!0})}}),_(E(K),"onComponentPointerDown",function(re){var be=K.props,Le=be.crop,Ve=be.disabled,Ne=be.locked,We=be.keepSelection,ze=be.onChange,ft=K.mediaWrapperRef.firstChild;if(re.target===ft&&ft.contains(re.target)&&!(Ve||Ne||We&&a(Le))){re.cancelable&&re.preventDefault(),K.bindDocMove(),K.componentRef.focus({preventScroll:!0});var mt=K.mediaWrapperRef.getBoundingClientRect(),i=re.clientX-mt.left,gt=re.clientY-mt.top,Je={unit:"px",aspect:Le?Le.aspect:void 0,x:i,y:gt,width:0,height:0};K.evData={clientStartX:re.clientX,clientStartY:re.clientY,cropStartWidth:Je.width,cropStartHeight:Je.height,cropStartX:Je.x,cropStartY:Je.y,xInversed:!1,yInversed:!1,xCrossOver:!1,yCrossOver:!1,startXCrossOver:!1,startYCrossOver:!1,isResize:!0,ord:"nw"},K.mouseDownOnCrop=!0;var Pt=K.mediaDimensions,bt=Pt.width,qt=Pt.height;ze(fe(Je,bt,qt),de(Je,bt,qt)),K.setState({cropIsActive:!0,newCropIsBeingDrawn:!0})}}),_(E(K),"onDocPointerMove",function(re){var be=K.props,Le=be.crop,Ve=be.disabled,Ne=be.onChange,We=be.onDragStart;if(!Ve&&K.mouseDownOnCrop){re.cancelable&&re.preventDefault(),K.dragStarted||(K.dragStarted=!0,We(re));var ze,ft=E(K).evData;if(ft.xDiff=re.clientX-ft.clientStartX,ft.yDiff=re.clientY-ft.clientStartY,(ze=ft.isResize?K.resizeCrop():K.dragCrop())!==Le){var mt=K.mediaDimensions,i=mt.width,gt=mt.height;Ne(fe(ze,i,gt),de(ze,i,gt))}}}),_(E(K),"onComponentKeyDown",function(re){var be=K.props,Le=be.crop,Ve=be.disabled,Ne=be.onChange,We=be.onComplete;if(!Ve){K.keysDown.add(re.key);var ze=!1;if(a(Le)){var ft=K.makeNewCrop(),mt=(navigator.platform.match("Mac")?re.metaKey:re.ctrlKey)?q.nudgeStepLarge:re.shiftKey?q.nudgeStepMedium:q.nudgeStep;if(K.keysDown.has("ArrowLeft")&&(ft.x-=mt,ze=!0),K.keysDown.has("ArrowRight")&&(ft.x+=mt,ze=!0),K.keysDown.has("ArrowUp")&&(ft.y-=mt,ze=!0),K.keysDown.has("ArrowDown")&&(ft.y+=mt,ze=!0),ze){re.cancelable&&re.preventDefault();var i=K.mediaDimensions,gt=i.width,Je=i.height;ft.x=y(ft.x,0,gt-ft.width),ft.y=y(ft.y,0,Je-ft.height);var Pt=fe(ft,gt,Je),bt=de(ft,gt,Je);Ne(Pt,bt),We(Pt,bt)}}}}),_(E(K),"onComponentKeyUp",function(re){K.keysDown.delete(re.key)}),_(E(K),"onDocPointerDone",function(re){var be=K.props,Le=be.crop,Ve=be.disabled,Ne=be.onComplete,We=be.onDragEnd;if(K.unbindDocMove(),!Ve&&K.mouseDownOnCrop){K.mouseDownOnCrop=!1,K.dragStarted=!1;var ze=K.mediaDimensions,ft=ze.width,mt=ze.height;We(re),Ne(fe(Le,ft,mt),de(Le,ft,mt)),K.setState({cropIsActive:!1,newCropIsBeingDrawn:!1})}}),_(E(K),"onMediaLoaded",function(){var re=K.props,be=re.onComplete,Le=re.onChange,Ve=K.createNewCrop(),Ne=Ve.pixelCrop,We=Ve.percentCrop;Le(Ne,We),be(Ne,We)}),_(E(K),"onImageLoad",function(re){var be=re.target,Le=K.props,Ve=Le.onComplete,Ne=Le.onChange;if((0,Le.onImageLoaded)(be)!==!1){var We=K.createNewCrop(),ze=We.pixelCrop,ft=We.percentCrop;Ne(ze,ft),Ve(ze,ft)}}),_(E(K),"bindComponentRef",function(re){K.componentRef=re}),_(E(K),"bindMediaWrapperRef",function(re){K.mediaWrapperRef=re}),_(E(K),"bindImageRef",function(re){K.imageRef=re}),_(E(K),"bindCropSelectionRef",function(re){K.cropSelectRef=re}),K}return R=q,(V=[{key:"componentDidMount",value:function(){this.componentRef.addEventListener&&this.componentRef.addEventListener("medialoaded",this.onMediaLoaded)}},{key:"componentWillUnmount",value:function(){this.componentRef.removeEventListener&&this.componentRef.removeEventListener("medialoaded",this.onMediaLoaded)}},{key:"componentDidUpdate",value:function(K){var xe=this.props.crop;if(this.imageRef&&K.crop!==xe&&xe.aspect&&(xe.width&&!xe.height||!xe.width&&xe.height)){var te=this.imageRef,H=te.width,re=te.height,be=ce(this.makeNewCrop(),H,re),Le=fe(be,H,re),Ve=de(be,H,re);this.props.onChange(Le,Ve),this.props.onComplete(Le,Ve)}}},{key:"bindDocMove",value:function(){this.docMoveBound||(this.document.addEventListener("pointermove",this.onDocPointerMove,J),this.document.addEventListener("pointerup",this.onDocPointerDone,J),this.document.addEventListener("pointercancel",this.onDocPointerDone,J),this.docMoveBound=!0)}},{key:"unbindDocMove",value:function(){this.docMoveBound&&(this.document.removeEventListener("pointermove",this.onDocPointerMove,J),this.document.removeEventListener("pointerup",this.onDocPointerDone,J),this.document.removeEventListener("pointercancel",this.onDocPointerDone,J),this.docMoveBound=!1)}},{key:"createNewCrop",value:function(){var K,xe,te,H=this.mediaDimensions,re=H.width,be=H.height,Le=(K=this.makeNewCrop(),xe=re,te=be,!K.aspect||K.width&&K.height?K:ce(K,xe,te));return{pixelCrop:fe(Le,re,be),percentCrop:de(Le,re,be)}}},{key:"mediaDimensions",get:function(){var K=this.mediaWrapperRef;return{width:K.clientWidth,height:K.clientHeight}}},{key:"getCropStyle",value:function(){var K=this.makeNewCrop(this.props.crop?this.props.crop.unit:"px");return{top:"".concat(K.y).concat(K.unit),left:"".concat(K.x).concat(K.unit),width:"".concat(K.width).concat(K.unit),height:"".concat(K.height).concat(K.unit)}}},{key:"getNewSize",value:function(){var K,xe=this.props,te=xe.crop,H=xe.minWidth,re=xe.maxWidth,be=xe.minHeight,Le=xe.maxHeight,Ve=this.evData,Ne=this.mediaDimensions,We=Ne.width,ze=Ne.height,ft=Ve.cropStartWidth+Ve.xDiff;return Ve.xCrossOver&&(ft=Math.abs(ft)),ft=y(ft,H,re||We),K=te.aspect?ft/te.aspect:Ve.cropStartHeight+Ve.yDiff,Ve.yCrossOver&&(K=Math.min(Math.abs(K),Ve.cropStartY)),K=y(K,be,Le||ze),te.aspect&&(ft=y(K*te.aspect,0,We)),{width:ft,height:K}}},{key:"dragCrop",value:function(){var K=this.makeNewCrop(),xe=this.evData,te=this.mediaDimensions,H=te.width,re=te.height;return K.x=y(xe.cropStartX+xe.xDiff,0,H-K.width),K.y=y(xe.cropStartY+xe.yDiff,0,re-K.height),K}},{key:"resizeCrop",value:function(){var K=this.evData,xe=this.makeNewCrop(),te=K.ord;K.xInversed&&(K.xDiff-=2*K.cropStartWidth),K.yInversed&&(K.yDiff-=2*K.cropStartHeight);var H=this.getNewSize(),re=K.cropStartX,be=K.cropStartY;K.xCrossOver&&(re=xe.x+(xe.width-H.width)),K.yCrossOver&&(be=K.lastYCrossover===!1?xe.y-H.height:xe.y+(xe.height-H.height));var Le=this.mediaDimensions,Ve=Le.width,Ne=Le.height,We=se(this.props.crop,{unit:xe.unit,x:re,y:be,width:H.width,height:H.height,aspect:xe.aspect},Ve,Ne);return xe.aspect||q.xyOrds.indexOf(te)>-1?(xe.x=We.x,xe.y=We.y,xe.width=We.width,xe.height=We.height):q.xOrds.indexOf(te)>-1?(xe.x=We.x,xe.width=We.width):q.yOrds.indexOf(te)>-1&&(xe.y=We.y,xe.height=We.height),K.lastYCrossover=K.yCrossOver,this.crossOverCheck(),xe.width<this.props.minWidth||xe.height<this.props.minHeight?this.props.crop:xe}},{key:"createCropSelection",value:function(){var K=this.props,xe=K.disabled,te=K.locked,H=K.renderSelectionAddon,re=K.ruleOfThirds,be=K.crop,Le=this.getCropStyle();return A().createElement("div",{ref:this.bindCropSelectionRef,style:Le,className:"ReactCrop__crop-selection",onPointerDown:this.onCropPointerDown},!xe&&!te&&A().createElement("div",{className:"ReactCrop__drag-elements"},A().createElement("div",{className:"ReactCrop__drag-bar ord-n","data-ord":"n"}),A().createElement("div",{className:"ReactCrop__drag-bar ord-e","data-ord":"e"}),A().createElement("div",{className:"ReactCrop__drag-bar ord-s","data-ord":"s"}),A().createElement("div",{className:"ReactCrop__drag-bar ord-w","data-ord":"w"}),A().createElement("div",{className:"ReactCrop__drag-handle ord-nw","data-ord":"nw"}),A().createElement("div",{className:"ReactCrop__drag-handle ord-n","data-ord":"n"}),A().createElement("div",{className:"ReactCrop__drag-handle ord-ne","data-ord":"ne"}),A().createElement("div",{className:"ReactCrop__drag-handle ord-e","data-ord":"e"}),A().createElement("div",{className:"ReactCrop__drag-handle ord-se","data-ord":"se"}),A().createElement("div",{className:"ReactCrop__drag-handle ord-s","data-ord":"s"}),A().createElement("div",{className:"ReactCrop__drag-handle ord-sw","data-ord":"sw"}),A().createElement("div",{className:"ReactCrop__drag-handle ord-w","data-ord":"w"})),H&&a(be)&&A().createElement("div",{className:"ReactCrop__selection-addon",onMouseDown:function(Ve){return Ve.stopPropagation()}},H(this.state)),re&&A().createElement(A().Fragment,null,A().createElement("div",{className:"ReactCrop__rule-of-thirds-hz"}),A().createElement("div",{className:"ReactCrop__rule-of-thirds-vt"})))}},{key:"makeNewCrop",value:function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"px",xe=S(S({},q.defaultCrop),this.props.crop||{}),te=this.mediaDimensions,H=te.width,re=te.height;return K==="px"?fe(xe,H,re):de(xe,H,re)}},{key:"crossOverCheck",value:function(){var K=this.evData,xe=this.props,te=xe.minWidth,H=xe.minHeight;!te&&(!K.xCrossOver&&-Math.abs(K.cropStartWidth)-K.xDiff>=0||K.xCrossOver&&-Math.abs(K.cropStartWidth)-K.xDiff<=0)&&(K.xCrossOver=!K.xCrossOver),!H&&(!K.yCrossOver&&-Math.abs(K.cropStartHeight)-K.yDiff>=0||K.yCrossOver&&-Math.abs(K.cropStartHeight)-K.yDiff<=0)&&(K.yCrossOver=!K.yCrossOver);var re=K.xCrossOver!==K.startXCrossOver,be=K.yCrossOver!==K.startYCrossOver;K.inversedXOrd=!!re&&$(K.ord),K.inversedYOrd=!!be&&$(K.ord)}},{key:"render",value:function(){var K=this.props,xe=K.children,te=K.circularCrop,H=K.className,re=K.crossorigin,be=K.crop,Le=K.disabled,Ve=K.locked,Ne=K.imageAlt,We=K.onImageError,ze=K.renderComponent,ft=K.src,mt=K.style,i=K.imageStyle,gt=K.ruleOfThirds,Je=this.state,Pt=Je.cropIsActive,bt=Je.newCropIsBeingDrawn,qt=a(be)&&this.componentRef?this.createCropSelection():null,pt=function(){for(var $t,go,Co=0,Tt="";Co<arguments.length;)($t=arguments[Co++])&&(go=r($t))&&(Tt&&(Tt+=" "),Tt+=go);return Tt}("ReactCrop",H,{"ReactCrop--active":Pt,"ReactCrop--disabled":Le,"ReactCrop--locked":Ve,"ReactCrop--new-crop":bt,"ReactCrop--fixed-aspect":be&&be.aspect,"ReactCrop--circular-crop":be&&te,"ReactCrop--rule-of-thirds":be&>,"ReactCrop--invisible-crop":!this.dragStarted&&be&&!be.width&&!be.height});return A().createElement("div",{ref:this.bindComponentRef,className:pt,style:mt,onPointerDown:this.onComponentPointerDown,tabIndex:0,onKeyDown:this.onComponentKeyDown,onKeyUp:this.onComponentKeyUp},A().createElement("div",{ref:this.bindMediaWrapperRef},ze||A().createElement("img",{ref:this.bindImageRef,crossOrigin:re,className:"ReactCrop__image",style:i,src:ft,onLoad:this.onImageLoad,onError:We,alt:Ne})),xe,qt)}}])&&u(R.prototype,V),q}(T.PureComponent);ve.xOrds=["e","w"],ve.yOrds=["n","s"],ve.xyOrds=["nw","ne","se","sw"],ve.nudgeStep=1,ve.nudgeStepMedium=10,ve.nudgeStepLarge=100,ve.defaultCrop={x:0,y:0,width:0,height:0,unit:"px"},ve.propTypes={className:p().string,children:p().oneOfType([p().arrayOf(p().node),p().node]),circularCrop:p().bool,crop:p().shape({aspect:p().number,x:p().number,y:p().number,width:p().number,height:p().number,unit:p().oneOf(["px","%"])}),crossorigin:p().string,disabled:p().bool,locked:p().bool,imageAlt:p().string,imageStyle:p().shape({}),keepSelection:p().bool,minWidth:p().number,minHeight:p().number,maxWidth:p().number,maxHeight:p().number,onChange:p().func.isRequired,onImageError:p().func,onComplete:p().func,onImageLoaded:p().func,onDragStart:p().func,onDragEnd:p().func,src:p().string.isRequired,style:p().shape({}),renderComponent:p().node,renderSelectionAddon:p().func,ruleOfThirds:p().bool},ve.defaultProps={circularCrop:!1,className:void 0,crop:void 0,crossorigin:void 0,disabled:!1,locked:!1,imageAlt:"",maxWidth:void 0,maxHeight:void 0,minWidth:0,minHeight:0,keepSelection:!1,onComplete:function(){},onImageError:function(){},onImageLoaded:function(){},onDragStart:function(){},onDragEnd:function(){},children:void 0,style:void 0,renderComponent:void 0,imageStyle:void 0,renderSelectionAddon:void 0,ruleOfThirds:!1}})(),C})()})},94049:(Et,ke,e)=>{"use strict";var o,m=e(28055).Zz;o=!0,ke.tY=function(){if(arguments.length!==0)return typeof arguments[0]=="object"?m:m.apply(null,arguments)},o=function(){return function(g){return g}}},40500:Et=>{/*!
- * screenfull
- * v5.2.0 - 2021-11-03
- * (c) Sindre Sorhus; MIT License
- */(function(){"use strict";var ke=typeof window<"u"&&typeof window.document<"u"?window.document:{},e=Et.exports,o=function(){for(var l,C=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],T=0,A=C.length,k={};T<A;T++)if(l=C[T],l&&l[1]in ke){for(T=0;T<l.length;T++)k[C[0][T]]=l[T];return k}return!1}(),m={change:o.fullscreenchange,error:o.fullscreenerror},g={request:function(l,C){return new Promise((function(T,A){var k=(function(){this.off("change",k),T()}).bind(this);this.on("change",k),l=l||ke.documentElement;var p=l[o.requestFullscreen](C);p instanceof Promise&&p.then(k).catch(A)}).bind(this))},exit:function(){return new Promise((function(l,C){if(!this.isFullscreen){l();return}var T=(function(){this.off("change",T),l()}).bind(this);this.on("change",T);var A=ke[o.exitFullscreen]();A instanceof Promise&&A.then(T).catch(C)}).bind(this))},toggle:function(l,C){return this.isFullscreen?this.exit():this.request(l,C)},onchange:function(l){this.on("change",l)},onerror:function(l){this.on("error",l)},on:function(l,C){var T=m[l];T&&ke.addEventListener(T,C,!1)},off:function(l,C){var T=m[l];T&&ke.removeEventListener(T,C,!1)},raw:o};if(!o){e?Et.exports={isEnabled:!1}:window.screenfull={isEnabled:!1};return}Object.defineProperties(g,{isFullscreen:{get:function(){return!!ke[o.fullscreenElement]}},element:{enumerable:!0,get:function(){return ke[o.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return!!ke[o.fullscreenEnabled]}}}),e?Et.exports=g:window.screenfull=g})()},17199:(Et,ke,e)=>{"use strict";/**
- * @license React
- * use-sync-external-store-shim.production.min.js
- *
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var o=e(51044);function m(f,u){return f===u&&(f!==0||1/f===1/u)||f!==f&&u!==u}var g=typeof Object.is=="function"?Object.is:m,l=o.useState,C=o.useEffect,T=o.useLayoutEffect,A=o.useDebugValue;function k(f,u){var b=u(),h=l({inst:{value:b,getSnapshot:u}}),E=h[0].inst,N=h[1];return T(function(){E.value=b,E.getSnapshot=u,p(E)&&N({inst:E})},[f,b,u]),C(function(){return p(E)&&N({inst:E}),f(function(){p(E)&&N({inst:E})})},[f]),A(b),b}function p(f){var u=f.getSnapshot;f=f.value;try{var b=u();return!g(f,b)}catch(h){return!0}}function r(f,u){return u()}var x=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:k;ke.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:x},52120:(Et,ke,e)=>{"use strict";Et.exports=e(17199)},7718:(Et,ke,e)=>{"use strict";e.d(ke,{tH:()=>h});var o=e(13237),m=e(40306),g=e(39154),l=e(64794),C=e(51044);const T=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var A=e(36875),k=e(59890);function p(N){const z=N.match(/^([^.]+)/);return z!==null&&parseInt(z[0])>=17}function r(N,z){const S=new WeakSet;function _(y,a){if(!S.has(y)){if(y.cause)return S.add(y),_(y.cause,a);y.cause=a}}_(N,z)}function x(N,z,S){let{componentStack:_}=z;if(p(C.version)&&(0,k.bJ)(N)&&_){const y=new Error(N.message);y.name="React ErrorBoundary "+N.name,y.stack=_,r(N,y)}return(0,A.Cp)(N,{...S,captureContext:{contexts:{react:{componentStack:_}}}})}function f(N){return(z,S)=>{const _=x(z,S);N&&N(z,S,_)}}const u="unknown",b={componentStack:null,error:null,eventId:null};class h extends C.Component{constructor(z){super(z),h.prototype.__init.call(this),this.state=b,this._openFallbackReportDialog=!0;const S=(0,o.KU)();S&&z.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=S.on("afterSendEvent",_=>{!_.type&&this._lastEventId&&_.event_id===this._lastEventId&&(0,m.mn)({...z.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(z,S){const{componentStack:_}=S,y=_==null?void 0:_,{beforeCapture:a,onError:$,showDialog:ce,dialogOptions:de}=this.props;(0,o.v4)(fe=>{a&&a(fe,z,y);const se=this.props.handled!=null?this.props.handled:!!this.props.fallback,J=x(z,S,{mechanism:{handled:se}});$&&$(z,y,J),ce&&(this._lastEventId=J,this._openFallbackReportDialog&&(0,m.mn)({...de,eventId:J})),this.setState({error:z,componentStack:_,eventId:J})})}componentDidMount(){const{onMount:z}=this.props;z&&z()}componentWillUnmount(){const{error:z,componentStack:S,eventId:_}=this.state,{onUnmount:y}=this.props;y&&y(z,S,_),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}__init(){this.resetErrorBoundary=()=>{const{onReset:z}=this.props,{error:S,componentStack:_,eventId:y}=this.state;z&&z(S,_,y),this.setState(b)}}render(){const{fallback:z,children:S}=this.props,_=this.state;if(_.error){let y;return typeof z=="function"?y=C.createElement(z,{error:_.error,componentStack:_.componentStack,resetError:this.resetErrorBoundary,eventId:_.eventId}):y=z,C.isValidElement(y)?y:(z&&T&&g.vF.warn("fallback did not produce a valid ReactElement"),null)}return typeof S=="function"?S():S}}function E(N,z){const S=N.displayName||N.name||u,_=y=>React.createElement(h,{...z},React.createElement(N,{...y}));return _.displayName="errorBoundary("+S+")",hoistNonReactStatics(_,N),_}}}]);
- //# sourceMappingURL=3.h4vam-vendor-4ab8f64ca2dc5974d535.js.map
|